forked from PrestaShop/autoupgrade
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
329 additions
and
25 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// For later |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
from { | ||
transform: rotate(0deg); | ||
} | ||
|
||
to { | ||
transform: rotate(360deg); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
@use "form"; | ||
@use "radio"; | ||
@use "render-field"; | ||
@use "switch"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@use "../../variables" as *; | ||
|
||
$e: ".render-field"; | ||
|
||
#{$ua-id} { | ||
#{$e} { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 1rem; | ||
align-items: flex-start; | ||
padding-block-end: 1rem; | ||
margin-block-end: 1rem; | ||
border-block-end: 0.0625rem solid var(--#{$ua-prefix}border-color); | ||
container-type: inline-size; | ||
container-name: render-field; | ||
|
||
&__title { | ||
margin-block-end: 0; | ||
font-size: 0.875rem; | ||
font-weight: 500; | ||
line-height: 1.4; | ||
} | ||
|
||
&__desc { | ||
margin-block-end: 0; | ||
font-size: 0.875rem; | ||
line-height: 1.4; | ||
} | ||
|
||
&__infos { | ||
display: flex; | ||
flex-basis: 0; | ||
flex-direction: column; | ||
flex-grow: 1; | ||
gap: 0.25rem; | ||
} | ||
|
||
@container render-field (max-width: 400px) { | ||
#{$e}__infos { | ||
flex-basis: 100%; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
@use "../../variables" as *; | ||
|
||
$e: ".prestashop-switch"; | ||
|
||
#{$ua-id} { | ||
#{$e} { | ||
display: flex; | ||
gap: 1rem; | ||
align-items: center; | ||
margin: 0; | ||
background-color: transparent; | ||
box-shadow: none; | ||
|
||
// Custom switch ugly harmonization | ||
input { | ||
inset: 0; | ||
z-index: 1; | ||
margin: 0; | ||
cursor: pointer; | ||
|
||
&:checked { | ||
z-index: 0; | ||
} | ||
|
||
&:first-of-type:checked ~ label:first-of-type { | ||
display: block; | ||
} | ||
|
||
&:last-of-type:checked ~ label:last-of-type { | ||
display: block; | ||
} | ||
|
||
&:first-of-type:checked ~ .slide-button::after { | ||
transform: translateX(0.875rem); | ||
} | ||
} | ||
|
||
label { | ||
position: static; | ||
inset: auto; | ||
display: none; | ||
height: auto; | ||
padding: 0; | ||
margin: 0; | ||
font-weight: 500; | ||
color: var(--#{$ua-prefix}base-text-color); | ||
pointer-events: none; | ||
transform: none; | ||
} | ||
|
||
.slide-button { | ||
position: relative; | ||
inset: auto; | ||
z-index: 0; | ||
display: block; | ||
flex-shrink: 0; | ||
width: 2.25rem; | ||
height: 1.375rem; | ||
padding: 0.5rem 1rem; | ||
border: none; | ||
border-radius: 999px; | ||
transform: none; | ||
|
||
&::after { | ||
content: ""; | ||
position: absolute; | ||
top: 0.125rem; | ||
left: 0.125rem; | ||
width: 1.125rem; | ||
height: 1.125rem; | ||
background: var(--#{$ua-prefix}white); | ||
border-radius: 999px; | ||
transform: none; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* Copyright since 2007 PrestaShop SA and Contributors | ||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0) | ||
* that is bundled with this package in the file LICENSE.md. | ||
* It is also available through the world-wide-web at this URL: | ||
* https://opensource.org/licenses/AFL-3.0 | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer | ||
* versions in the future. If you wish to customize PrestaShop for your | ||
* needs please refer to https://devdocs.prestashop.com/ for more information. | ||
* | ||
* @author PrestaShop SA and Contributors <[email protected]> | ||
* @copyright Since 2007 PrestaShop SA and Contributors | ||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) | ||
*/ | ||
|
||
import RenderBool from "../../../views/templates/components/render-bool.html.twig"; | ||
|
||
export default { | ||
title: "Components/Render Fields/RenderBool", | ||
component: RenderBool, | ||
argTypes: { | ||
type: { | ||
control: 'select', | ||
options: ['disabled', 'bool', 'radio', 'select', 'textarea', 'container', 'container_end', 'text'], | ||
defaultValue: 'bool', | ||
}, | ||
}, | ||
args: { | ||
field: { | ||
id: "deactivate_modules", | ||
title: "Deactivate non-native modules", | ||
desc: "All the modules installed after creating your store are considered non-native modules. They might be incompatible with the new version of PrestaShop. We recommend deactivating them during the update.", | ||
js: { | ||
on: 'onclick="enableFeature()"', | ||
off: 'onclick="disableFeature()"', | ||
}, | ||
type: 'bool', | ||
required: true, | ||
disabled: true, | ||
}, | ||
key: "PS_AUTOUP_CUSTOM_MOD_DESACT", | ||
val: true, | ||
}, | ||
}; | ||
|
||
export const Default = {}; |
Oops, something went wrong.