@gem-sdk/components 2.0.0-dev.294 → 2.0.0-dev.303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/accordion/components/common/index.js +2 -2
- package/dist/cjs/article/components/ArticleAuthor.js +1 -1
- package/dist/cjs/article/components/ArticleTitle.js +3 -1
- package/dist/cjs/article/components/ArticleTitle.liquid.js +5 -2
- package/dist/cjs/article/setting/ArticleList.js +0 -30
- package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +0 -9
- package/dist/cjs/article/setting/configs/ArticleAuthor/settings.js +9 -5
- package/dist/cjs/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
- package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +0 -9
- package/dist/cjs/article/setting/configs/ArticleCategory/settings.js +9 -5
- package/dist/cjs/article/setting/configs/ArticleDate/presets.js +0 -9
- package/dist/cjs/article/setting/configs/ArticleDate/settings.js +9 -5
- package/dist/cjs/article/setting/configs/ArticleImage/settings.js +22 -1
- package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +36 -7
- package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +47 -2
- package/dist/cjs/builder.js +6 -2
- package/dist/cjs/button/components/Button.js +1 -1
- package/dist/cjs/button/components/Button.liquid.js +1 -1
- package/dist/cjs/button/components/ButtonIcon.liquid.js +3 -1
- package/dist/cjs/button/components/ButtonLabel.liquid.js +3 -1
- package/dist/cjs/button/components/common/attributes.js +2 -2
- package/dist/cjs/button/components/common/classes.js +2 -1
- package/dist/cjs/button/components/common/styles.js +9 -11
- package/dist/cjs/button/setting/configs/settings.js +7 -8
- package/dist/cjs/button/setting/configs/uiV2.js +4 -50
- package/dist/cjs/dialog/components/Dialog.js +109 -394
- package/dist/cjs/dialog/components/Dialog.liquid.js +129 -153
- package/dist/cjs/dialog/components/common/common.js +130 -0
- package/dist/cjs/dialog/components/common/getAttr.js +27 -0
- package/dist/cjs/dialog/components/common/getClasses.js +88 -0
- package/dist/cjs/dialog/components/common/getStyle.js +107 -0
- package/dist/cjs/dialog/components/hooks/useDialog.js +233 -0
- package/dist/cjs/dialog/setting/configs/settings.js +1 -1
- package/dist/cjs/dialog/setting/configs/uiV2.js +35 -25
- package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +0 -4
- package/dist/cjs/form/components/textinput/TextInput.js +58 -0
- package/dist/cjs/form/components/textinput/TextInput.liquid.js +60 -0
- package/dist/cjs/form/components/textinput/common/composeClasses.js +33 -0
- package/dist/cjs/form/components/textinput/common/composeStyles.js +70 -0
- package/dist/cjs/form/next.js +5 -1
- package/dist/cjs/form/setting/index.js +3 -1
- package/dist/cjs/form/setting/newsletter/configs/settings.js +4 -2
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +2 -0
- package/dist/cjs/form/setting/text-input/TextInput.js +53 -0
- package/dist/cjs/form/setting/text-input/configs/settings.js +307 -0
- package/dist/cjs/form/setting/text-input/configs/uiV1.js +106 -0
- package/dist/cjs/form/setting/text-input/configs/uiV2.js +303 -0
- package/dist/cjs/grid/row/setting/configs/settings.js +6 -3
- package/dist/cjs/helpers.js +8 -0
- package/dist/cjs/icon-list/common/attrs.js +10 -0
- package/dist/cjs/icon-list/common/classes.js +9 -0
- package/dist/cjs/icon-list/common/styles.js +29 -0
- package/dist/cjs/icon-list/components/IconList.js +19 -30
- package/dist/cjs/icon-list/components/IconList.liquid.js +21 -24
- package/dist/cjs/icon-list/components/IconListItem.js +13 -7
- package/dist/cjs/icon-list/components/IconListItem.liquid.js +13 -7
- package/dist/cjs/icon-list-hoz/components/IconListHoz.js +37 -25
- package/dist/cjs/icon-list-hoz/components/IconListHoz.liquid.js +31 -25
- package/dist/cjs/icon-list-hoz/components/IconListHozItem.js +12 -6
- package/dist/cjs/icon-list-hoz/components/IconListIHozItem.liquid.js +26 -0
- package/dist/cjs/icon-list-hoz/components/common/getAttr.js +9 -0
- package/dist/cjs/icon-list-hoz/components/common/getClasses.js +24 -0
- package/dist/cjs/icon-list-hoz/components/common/getStyle.js +30 -0
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/index.liquid.js +7 -3
- package/dist/cjs/line/common/classes.js +66 -0
- package/dist/cjs/line/common/index.js +16 -0
- package/dist/cjs/line/common/styles.js +120 -0
- package/dist/cjs/line/components/Divider.js +26 -0
- package/dist/cjs/line/components/Divider.liquid.js +22 -0
- package/dist/cjs/line/components/Line.js +98 -0
- package/dist/cjs/line/components/Line.liquid.js +86 -0
- package/dist/cjs/line/next.js +1 -1
- package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +1 -1
- package/dist/cjs/post-purchase/link/setting/configs/settings.js +2 -1
- package/dist/cjs/post-purchase/link/setting/configs/uiV2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
- package/dist/cjs/product/components/FileUpload/components/config/setting.js +24 -26
- package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +12 -179
- package/dist/cjs/product/components/ProductList.js +1 -1
- package/dist/cjs/product/components/ProductVariants/index.js +2 -2
- package/dist/cjs/product/components/ProductVariants/index.liquid.js +2 -2
- package/dist/cjs/product/components/ProductVariants/variants/Dropdown.js +8 -3
- package/dist/cjs/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
- package/dist/cjs/product/setting/ProductVariants.js +8 -1374
- package/dist/cjs/product/setting/product-list/configs/uiV2.js +0 -3
- package/dist/cjs/product/setting/product-variant/configs/presets.js +168 -0
- package/dist/cjs/product/setting/product-variant/configs/settings.js +732 -0
- package/dist/cjs/product/setting/product-variant/configs/uiV1.js +509 -0
- package/dist/cjs/product/setting/product-variant/configs/uiV2.js +347 -0
- package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.js +33 -0
- package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +12 -0
- package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +12 -0
- package/dist/cjs/third-party/next.js +5 -0
- package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc.js +142 -0
- package/dist/cjs/third-party/setting/index.js +3 -1
- package/dist/esm/accordion/components/common/index.js +2 -2
- package/dist/esm/article/components/ArticleAuthor.js +1 -1
- package/dist/esm/article/components/ArticleTitle.js +3 -1
- package/dist/esm/article/components/ArticleTitle.liquid.js +5 -2
- package/dist/esm/article/setting/ArticleList.js +0 -30
- package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +0 -9
- package/dist/esm/article/setting/configs/ArticleAuthor/settings.js +9 -5
- package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
- package/dist/esm/article/setting/configs/ArticleCategory/presets.js +0 -9
- package/dist/esm/article/setting/configs/ArticleCategory/settings.js +9 -5
- package/dist/esm/article/setting/configs/ArticleDate/presets.js +0 -9
- package/dist/esm/article/setting/configs/ArticleDate/settings.js +9 -5
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +22 -1
- package/dist/esm/article/setting/configs/ArticleTitle/settings.js +36 -7
- package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +47 -2
- package/dist/esm/builder.js +6 -2
- package/dist/esm/button/components/Button.js +1 -1
- package/dist/esm/button/components/Button.liquid.js +1 -1
- package/dist/esm/button/components/ButtonIcon.liquid.js +3 -1
- package/dist/esm/button/components/ButtonLabel.liquid.js +3 -1
- package/dist/esm/button/components/common/attributes.js +2 -2
- package/dist/esm/button/components/common/classes.js +3 -2
- package/dist/esm/button/components/common/styles.js +10 -12
- package/dist/esm/button/setting/configs/settings.js +7 -8
- package/dist/esm/button/setting/configs/uiV2.js +4 -50
- package/dist/esm/dialog/components/Dialog.js +110 -395
- package/dist/esm/dialog/components/Dialog.liquid.js +130 -154
- package/dist/esm/dialog/components/common/common.js +117 -0
- package/dist/esm/dialog/components/common/getAttr.js +22 -0
- package/dist/esm/dialog/components/common/getClasses.js +79 -0
- package/dist/esm/dialog/components/common/getStyle.js +98 -0
- package/dist/esm/dialog/components/hooks/useDialog.js +231 -0
- package/dist/esm/dialog/setting/configs/settings.js +1 -1
- package/dist/esm/dialog/setting/configs/uiV2.js +35 -25
- package/dist/esm/form/components/form-checkbox/FormCheckbox.js +0 -4
- package/dist/esm/form/components/textinput/TextInput.js +54 -0
- package/dist/esm/form/components/textinput/TextInput.liquid.js +56 -0
- package/dist/esm/form/components/textinput/common/composeClasses.js +29 -0
- package/dist/esm/form/components/textinput/common/composeStyles.js +67 -0
- package/dist/esm/form/next.js +5 -1
- package/dist/esm/form/setting/index.js +3 -1
- package/dist/esm/form/setting/newsletter/configs/settings.js +4 -2
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +2 -0
- package/dist/esm/form/setting/text-input/TextInput.js +49 -0
- package/dist/esm/form/setting/text-input/configs/settings.js +305 -0
- package/dist/esm/form/setting/text-input/configs/uiV1.js +104 -0
- package/dist/esm/form/setting/text-input/configs/uiV2.js +301 -0
- package/dist/esm/grid/row/setting/configs/settings.js +6 -3
- package/dist/esm/helpers.js +8 -1
- package/dist/esm/icon-list/common/attrs.js +8 -0
- package/dist/esm/icon-list/common/classes.js +6 -0
- package/dist/esm/icon-list/common/styles.js +25 -0
- package/dist/esm/icon-list/components/IconList.js +21 -32
- package/dist/esm/icon-list/components/IconList.liquid.js +21 -24
- package/dist/esm/icon-list/components/IconListItem.js +13 -7
- package/dist/esm/icon-list/components/IconListItem.liquid.js +14 -8
- package/dist/esm/icon-list-hoz/components/IconListHoz.js +38 -26
- package/dist/esm/icon-list-hoz/components/IconListHoz.liquid.js +32 -26
- package/dist/esm/icon-list-hoz/components/IconListHozItem.js +12 -6
- package/dist/esm/icon-list-hoz/components/IconListIHozItem.liquid.js +22 -0
- package/dist/esm/icon-list-hoz/components/common/getAttr.js +7 -0
- package/dist/esm/icon-list-hoz/components/common/getClasses.js +21 -0
- package/dist/esm/icon-list-hoz/components/common/getStyle.js +27 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.liquid.js +4 -2
- package/dist/esm/line/common/classes.js +59 -0
- package/dist/esm/line/common/index.js +14 -0
- package/dist/esm/line/common/styles.js +114 -0
- package/dist/esm/line/components/Divider.js +22 -0
- package/dist/esm/line/components/Divider.liquid.js +18 -0
- package/dist/esm/line/components/Line.js +94 -0
- package/dist/esm/line/components/Line.liquid.js +82 -0
- package/dist/esm/line/next.js +1 -1
- package/dist/esm/post-purchase/line/setting/configs/uiV2.js +1 -1
- package/dist/esm/post-purchase/link/setting/configs/settings.js +2 -1
- package/dist/esm/post-purchase/link/setting/configs/uiV2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
- package/dist/esm/product/components/FileUpload/components/config/setting.js +24 -26
- package/dist/esm/product/components/FileUpload/components/config/uiV2.js +12 -179
- package/dist/esm/product/components/ProductList.js +1 -1
- package/dist/esm/product/components/ProductVariants/index.js +2 -2
- package/dist/esm/product/components/ProductVariants/index.liquid.js +2 -2
- package/dist/esm/product/components/ProductVariants/variants/Dropdown.js +8 -3
- package/dist/esm/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
- package/dist/esm/product/setting/ProductVariants.js +8 -1374
- package/dist/esm/product/setting/product-list/configs/uiV2.js +0 -3
- package/dist/esm/product/setting/product-variant/configs/presets.js +166 -0
- package/dist/esm/product/setting/product-variant/configs/settings.js +730 -0
- package/dist/esm/product/setting/product-variant/configs/uiV1.js +507 -0
- package/dist/esm/product/setting/product-variant/configs/uiV2.js +345 -0
- package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.js +29 -0
- package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +8 -0
- package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +8 -0
- package/dist/esm/third-party/next.js +5 -0
- package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc.js +138 -0
- package/dist/esm/third-party/setting/index.js +3 -1
- package/dist/types/index.d.ts +184 -166
- package/package.json +2 -2
- package/dist/cjs/dialog/helpers/common.js +0 -55
- package/dist/cjs/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -23
- package/dist/cjs/line/Divider.js +0 -35
- package/dist/cjs/line/Divider.liquid.js +0 -35
- package/dist/cjs/line/Line.js +0 -167
- package/dist/cjs/line/Line.liquid.js +0 -163
- package/dist/esm/dialog/helpers/common.js +0 -47
- package/dist/esm/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -19
- package/dist/esm/line/Divider.js +0 -31
- package/dist/esm/line/Divider.liquid.js +0 -31
- package/dist/esm/line/Line.js +0 -163
- package/dist/esm/line/Line.liquid.js +0 -159
- /package/dist/cjs/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
- /package/dist/esm/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { TextInputSettings } from './configs/settings.js';
|
|
2
|
+
import { SettingUIV1 } from './configs/uiV1.js';
|
|
3
|
+
import { SettingUIV2 } from './configs/uiV2.js';
|
|
4
|
+
|
|
5
|
+
const config = {
|
|
6
|
+
tag: 'TextInput',
|
|
7
|
+
label: 'Text Input',
|
|
8
|
+
icon: `
|
|
9
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.3322 10.8964L9.87367 9.66713H7.82073L7.36908 10.8964H6.5L8.38871 6H9.3399L11.2286 10.8964H10.3322ZM8.8472 6.89779L8.10814 8.90055H9.58625L8.8472 6.89779ZM12.7003 11C12.0023 11 11.5711 10.5166 11.5711 9.98481C11.5711 9.38398 12.0091 9.05249 12.5771 8.96961L13.4325 8.8384C13.6241 8.81077 13.6788 8.71409 13.6788 8.59669C13.6788 8.31354 13.4872 8.08564 13.0493 8.08564C12.6318 8.08564 12.3992 8.35497 12.3649 8.69337L11.6396 8.52762C11.7012 7.94751 12.2212 7.42956 13.0424 7.42956C14.0689 7.42956 14.4589 8.01657 14.4589 8.68646V10.3577C14.4589 10.6616 14.4932 10.8619 14.5 10.8964H13.7609C13.7541 10.8757 13.7267 10.7376 13.7267 10.4682C13.5693 10.7238 13.2409 11 12.7003 11ZM12.3649 9.93646C12.3649 10.1644 12.536 10.3715 12.8508 10.3715C13.2956 10.3715 13.6788 10.1575 13.6788 9.50138V9.34945L12.8097 9.48066C12.5634 9.5221 12.3649 9.66022 12.3649 9.93646ZM17.37 9.2467H19.5C20.2956 9.2467 21.0587 9.54118 21.6213 10.0653C22.1839 10.5895 22.5 11.3004 22.5 12.0417V15.9548C22.5 16.6961 22.1839 17.407 21.6213 17.9312C21.0587 18.4553 20.2956 18.7498 19.5 18.7498H4.5C3.70435 18.7498 2.94129 18.4553 2.37868 17.9312C1.81607 17.407 1.5 16.6961 1.5 15.9548V11.7622C1.51562 11.1035 1.80649 10.4765 2.31074 10.0145C2.81499 9.55253 3.49281 9.29211 4.2 9.28863C4.39891 9.28863 4.58968 9.36225 4.73033 9.49329C4.87098 9.62433 4.95 9.80206 4.95 9.98739C4.95 10.1727 4.87098 10.3504 4.73033 10.4815C4.58968 10.6125 4.39891 10.6861 4.2 10.6861C3.88174 10.6861 3.57652 10.8039 3.35147 11.0136C3.12643 11.2233 3 11.5076 3 11.8042V15.9967C3 16.3673 3.15804 16.7228 3.43934 16.9849C3.72064 17.247 4.10218 17.3942 4.5 17.3942H19.5C19.697 17.3942 19.892 17.3581 20.074 17.2878C20.256 17.2176 20.4214 17.1147 20.5607 16.9849C20.6999 16.8551 20.8104 16.7011 20.8858 16.5315C20.9612 16.362 21 16.1802 21 15.9967V12.0417C21 11.6711 20.842 11.3156 20.5607 11.0535C20.2794 10.7915 19.8978 10.6442 19.5 10.6442H17.37C17.1711 10.6442 16.9803 10.5706 16.8397 10.4396C16.699 10.3085 16.62 10.1308 16.62 9.94546C16.62 9.76014 16.699 9.58241 16.8397 9.45136C16.9803 9.32032 17.1711 9.2467 17.37 9.2467Z" fill="currentColor"/>
|
|
11
|
+
</svg>
|
|
12
|
+
|
|
13
|
+
`,
|
|
14
|
+
settings: TextInputSettings,
|
|
15
|
+
ui: SettingUIV1,
|
|
16
|
+
uiV2: SettingUIV2,
|
|
17
|
+
editorConfigs: {
|
|
18
|
+
placeholder: {
|
|
19
|
+
flowTag: [
|
|
20
|
+
'Newsletter',
|
|
21
|
+
'ContactForm'
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
presets: [
|
|
26
|
+
{
|
|
27
|
+
id: 'form-text-input',
|
|
28
|
+
name: {
|
|
29
|
+
en: 'Text Input'
|
|
30
|
+
},
|
|
31
|
+
icon: {
|
|
32
|
+
desktop: `
|
|
33
|
+
<svg width="96" height="36" viewBox="0 0 96 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
34
|
+
<rect x="0.5" y="0.5" width="95" height="35" rx="2.5" stroke="#474747"/>
|
|
35
|
+
<path d="M21.1049 14.2102V13.2727H27.6504V14.2102H24.9061V22H23.8493V14.2102H21.1049ZM30.9402 22.1364C30.3095 22.1364 29.7654 21.9972 29.3081 21.7188C28.8535 21.4375 28.5027 21.0455 28.2555 20.5426C28.0112 20.0369 27.889 19.4489 27.889 18.7784C27.889 18.108 28.0112 17.517 28.2555 17.0057C28.5027 16.4915 28.8464 16.0909 29.2868 15.804C29.7299 15.5142 30.247 15.3693 30.8379 15.3693C31.1788 15.3693 31.5154 15.4261 31.8478 15.5398C32.1802 15.6534 32.4828 15.8381 32.7555 16.0938C33.0282 16.3466 33.2456 16.6818 33.4075 17.0994C33.5694 17.517 33.6504 18.0312 33.6504 18.642V19.0682H28.6049V18.1989H32.6277C32.6277 17.8295 32.5538 17.5 32.4061 17.2102C32.2612 16.9205 32.0538 16.6918 31.7839 16.5241C31.5169 16.3565 31.2015 16.2727 30.8379 16.2727C30.4373 16.2727 30.0907 16.3722 29.7981 16.571C29.5083 16.767 29.2853 17.0227 29.1291 17.3381C28.9728 17.6534 28.8947 17.9915 28.8947 18.3523V18.9318C28.8947 19.4261 28.9799 19.8452 29.1504 20.1889C29.3237 20.5298 29.5637 20.7898 29.8706 20.9688C30.1774 21.1449 30.5339 21.233 30.9402 21.233C31.2044 21.233 31.443 21.196 31.6561 21.1222C31.872 21.0455 32.0581 20.9318 32.2143 20.7812C32.3706 20.6278 32.4913 20.4375 32.5765 20.2102L33.5481 20.483C33.4458 20.8125 33.274 21.1023 33.0325 21.3523C32.791 21.5994 32.4927 21.7926 32.1376 21.9318C31.7825 22.0682 31.3833 22.1364 30.9402 22.1364ZM35.7544 15.4545L37.3226 18.1307L38.8908 15.4545H40.0499L37.9363 18.7273L40.0499 22H38.8908L37.3226 19.4602L35.7544 22H34.5953L36.6749 18.7273L34.5953 15.4545H35.7544ZM44.3315 15.4545V16.3068H40.9395V15.4545H44.3315ZM41.9281 13.8864H42.9338V20.125C42.9338 20.4091 42.975 20.6222 43.0574 20.7642C43.1426 20.9034 43.2505 20.9972 43.3812 21.0455C43.5147 21.0909 43.6554 21.1136 43.8031 21.1136C43.9139 21.1136 44.0048 21.108 44.0758 21.0966C44.1468 21.0824 44.2037 21.071 44.2463 21.0625L44.4508 21.9659C44.3826 21.9915 44.2875 22.017 44.1653 22.0426C44.0431 22.071 43.8883 22.0852 43.7008 22.0852C43.4167 22.0852 43.1383 22.0241 42.8656 21.902C42.5957 21.7798 42.3713 21.5938 42.1923 21.3438C42.0162 21.0938 41.9281 20.7784 41.9281 20.3977V13.8864ZM49.3556 22V13.2727H54.5886V14.2102H50.4125V17.1591H54.1966V18.0966H50.4125V22H49.3556ZM56.2623 22V15.4545H57.2679V22H56.2623ZM56.7736 14.3636C56.5776 14.3636 56.4086 14.2969 56.2665 14.1634C56.1273 14.0298 56.0577 13.8693 56.0577 13.6818C56.0577 13.4943 56.1273 13.3338 56.2665 13.2003C56.4086 13.0668 56.5776 13 56.7736 13C56.9696 13 57.1373 13.0668 57.2765 13.2003C57.4185 13.3338 57.4895 13.4943 57.4895 13.6818C57.4895 13.8693 57.4185 14.0298 57.2765 14.1634C57.1373 14.2969 56.9696 14.3636 56.7736 14.3636ZM61.8542 22.1364C61.2235 22.1364 60.6795 21.9972 60.2221 21.7188C59.7676 21.4375 59.4167 21.0455 59.1696 20.5426C58.9252 20.0369 58.8031 19.4489 58.8031 18.7784C58.8031 18.108 58.9252 17.517 59.1696 17.0057C59.4167 16.4915 59.7605 16.0909 60.2008 15.804C60.644 15.5142 61.161 15.3693 61.752 15.3693C62.0929 15.3693 62.4295 15.4261 62.7619 15.5398C63.0943 15.6534 63.3968 15.8381 63.6696 16.0938C63.9423 16.3466 64.1596 16.6818 64.3216 17.0994C64.4835 17.517 64.5645 18.0312 64.5645 18.642V19.0682H59.519V18.1989H63.5417C63.5417 17.8295 63.4679 17.5 63.3201 17.2102C63.1752 16.9205 62.9679 16.6918 62.698 16.5241C62.4309 16.3565 62.1156 16.2727 61.752 16.2727C61.3514 16.2727 61.0048 16.3722 60.7122 16.571C60.4224 16.767 60.1994 17.0227 60.0431 17.3381C59.8869 17.6534 59.8088 17.9915 59.8088 18.3523V18.9318C59.8088 19.4261 59.894 19.8452 60.0645 20.1889C60.2377 20.5298 60.4778 20.7898 60.7846 20.9688C61.0914 21.1449 61.448 21.233 61.8542 21.233C62.1184 21.233 62.3571 21.196 62.5701 21.1222C62.786 21.0455 62.9721 20.9318 63.1284 20.7812C63.2846 20.6278 63.4054 20.4375 63.4906 20.2102L64.4622 20.483C64.3599 20.8125 64.188 21.1023 63.9466 21.3523C63.7051 21.5994 63.4068 21.7926 63.0517 21.9318C62.6966 22.0682 62.2974 22.1364 61.8542 22.1364ZM67.1 13.2727V22H66.0943V13.2727H67.1ZM71.4135 22.1364C70.8681 22.1364 70.3865 21.9986 69.9689 21.723C69.5513 21.4446 69.2246 21.0526 68.9888 20.5469C68.753 20.0384 68.6351 19.4375 68.6351 18.7443C68.6351 18.0568 68.753 17.4602 68.9888 16.9545C69.2246 16.4489 69.5527 16.0582 69.9732 15.7827C70.3936 15.5071 70.8794 15.3693 71.4306 15.3693C71.8567 15.3693 72.1934 15.4403 72.4405 15.5824C72.6905 15.7216 72.8809 15.8807 73.0115 16.0597C73.1451 16.2358 73.2488 16.3807 73.3226 16.4943H73.4078V13.2727H74.4135V22H73.4419V20.9943H73.3226C73.2488 21.1136 73.1436 21.2642 73.0073 21.446C72.8709 21.625 72.6763 21.7855 72.4235 21.9276C72.1706 22.0668 71.834 22.1364 71.4135 22.1364ZM71.5499 21.233C71.9533 21.233 72.2942 21.1278 72.5726 20.9176C72.851 20.7045 73.0627 20.4105 73.2076 20.0355C73.3525 19.6577 73.4249 19.2216 73.4249 18.7273C73.4249 18.2386 73.3539 17.8111 73.2118 17.4446C73.0698 17.0753 72.8596 16.7884 72.5811 16.5838C72.3027 16.3764 71.959 16.2727 71.5499 16.2727C71.1238 16.2727 70.7686 16.3821 70.4846 16.6009C70.2033 16.8168 69.9917 17.1108 69.8496 17.483C69.7104 17.8523 69.6408 18.267 69.6408 18.7273C69.6408 19.1932 69.7118 19.6165 69.8539 19.9972C69.9988 20.375 70.2118 20.6761 70.4931 20.9006C70.7772 21.1222 71.1294 21.233 71.5499 21.233Z" fill="#F9F9F9"/>
|
|
36
|
+
</svg>
|
|
37
|
+
`
|
|
38
|
+
},
|
|
39
|
+
components: [
|
|
40
|
+
{
|
|
41
|
+
tag: 'TextInput',
|
|
42
|
+
label: 'Text Input'
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { config as default };
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
const TextInputSettings = [
|
|
2
|
+
{
|
|
3
|
+
id: 'setting',
|
|
4
|
+
controls: [
|
|
5
|
+
{
|
|
6
|
+
id: 'name',
|
|
7
|
+
label: 'Name',
|
|
8
|
+
type: 'input',
|
|
9
|
+
placeholder: 'E.g. contact[first_name]',
|
|
10
|
+
default: {
|
|
11
|
+
text: 'contact[first_name]',
|
|
12
|
+
textarea: 'contact[note]',
|
|
13
|
+
email: 'contact[email]',
|
|
14
|
+
phone: 'contact[phone]',
|
|
15
|
+
number: 'contact[number]'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'placeholder',
|
|
20
|
+
label: 'Placeholder',
|
|
21
|
+
type: 'input',
|
|
22
|
+
info: 'Placeholder helps your buyers understand what to input',
|
|
23
|
+
placeholder: 'Enter text',
|
|
24
|
+
default: 'Enter text'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'translate',
|
|
28
|
+
type: 'input',
|
|
29
|
+
default: 'placeholder'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 'size',
|
|
33
|
+
label: 'Button Spacing',
|
|
34
|
+
type: 'size',
|
|
35
|
+
default: {
|
|
36
|
+
type: 'medium'
|
|
37
|
+
},
|
|
38
|
+
ignoreReRender: true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: 'required',
|
|
42
|
+
label: 'Required',
|
|
43
|
+
type: 'toggle',
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'formType',
|
|
48
|
+
type: 'select',
|
|
49
|
+
label: 'Type',
|
|
50
|
+
options: [
|
|
51
|
+
{
|
|
52
|
+
label: 'Short text',
|
|
53
|
+
value: 'text'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: 'Long text',
|
|
57
|
+
value: 'textarea'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: 'Email',
|
|
61
|
+
value: 'email'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'Number',
|
|
65
|
+
value: 'number'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Phone',
|
|
69
|
+
value: 'phone'
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
default: 'text'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'typo',
|
|
76
|
+
label: 'Text styles',
|
|
77
|
+
type: 'typography-v2',
|
|
78
|
+
default: {
|
|
79
|
+
type: 'paragraph-1'
|
|
80
|
+
},
|
|
81
|
+
hiddenSetting: {
|
|
82
|
+
color: true,
|
|
83
|
+
textAlign: true,
|
|
84
|
+
textShadow: true
|
|
85
|
+
},
|
|
86
|
+
ignoreReRender: true
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: 'color',
|
|
90
|
+
type: 'colorpicker',
|
|
91
|
+
label: 'Text Color',
|
|
92
|
+
default: 'text-1'
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: 'transform',
|
|
96
|
+
label: 'Text Transform',
|
|
97
|
+
type: 'select',
|
|
98
|
+
options: [
|
|
99
|
+
{
|
|
100
|
+
value: 'default',
|
|
101
|
+
label: 'None'
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
value: 'capitalize',
|
|
105
|
+
label: 'Capitalize'
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
value: 'uppercase',
|
|
109
|
+
label: 'Uppercase'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
value: 'lowercase',
|
|
113
|
+
label: 'Lowercase'
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
default: 'default'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: 'align',
|
|
120
|
+
label: 'Alignment',
|
|
121
|
+
type: 'option:value',
|
|
122
|
+
options: [
|
|
123
|
+
{
|
|
124
|
+
label: 'Left',
|
|
125
|
+
value: 'left',
|
|
126
|
+
type: 'align',
|
|
127
|
+
tooltip: 'Align left',
|
|
128
|
+
iconName: 'gp-align-left'
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
label: 'Center',
|
|
132
|
+
value: 'center',
|
|
133
|
+
type: 'align',
|
|
134
|
+
tooltip: 'Align center',
|
|
135
|
+
iconName: 'gp-align-center'
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
label: 'Right',
|
|
139
|
+
value: 'right',
|
|
140
|
+
type: 'align',
|
|
141
|
+
tooltip: 'Align right',
|
|
142
|
+
iconName: 'gp-align-right'
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
devices: {
|
|
146
|
+
desktop: {
|
|
147
|
+
default: 'left'
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: 'background',
|
|
153
|
+
type: 'background-media',
|
|
154
|
+
ignoreReRender: true,
|
|
155
|
+
devices: {
|
|
156
|
+
desktop: {
|
|
157
|
+
default: {
|
|
158
|
+
type: 'color',
|
|
159
|
+
color: 'transparent',
|
|
160
|
+
image: {
|
|
161
|
+
src: '',
|
|
162
|
+
width: 0,
|
|
163
|
+
height: 0
|
|
164
|
+
},
|
|
165
|
+
size: 'cover',
|
|
166
|
+
position: {
|
|
167
|
+
x: 50,
|
|
168
|
+
y: 50
|
|
169
|
+
},
|
|
170
|
+
repeat: 'no-repeat',
|
|
171
|
+
attachment: 'scroll'
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
compoDefaultValue: {
|
|
176
|
+
desktop: {
|
|
177
|
+
default: {
|
|
178
|
+
type: 'color',
|
|
179
|
+
color: '#DDDDDD',
|
|
180
|
+
image: {
|
|
181
|
+
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
182
|
+
width: 1200,
|
|
183
|
+
height: 480
|
|
184
|
+
},
|
|
185
|
+
size: 'cover',
|
|
186
|
+
position: {
|
|
187
|
+
x: 50,
|
|
188
|
+
y: 50
|
|
189
|
+
},
|
|
190
|
+
repeat: 'no-repeat',
|
|
191
|
+
attachment: 'scroll',
|
|
192
|
+
preload: false
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: 'style',
|
|
201
|
+
controls: [
|
|
202
|
+
{
|
|
203
|
+
id: 'globalSize',
|
|
204
|
+
type: 'size-setting',
|
|
205
|
+
devices: {
|
|
206
|
+
desktop: {
|
|
207
|
+
default: {
|
|
208
|
+
width: '100%',
|
|
209
|
+
height: 'Auto',
|
|
210
|
+
padding: {
|
|
211
|
+
type: 'medium',
|
|
212
|
+
top: '4px',
|
|
213
|
+
bottom: '4px',
|
|
214
|
+
left: '16px',
|
|
215
|
+
right: '16px'
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
settingConfig: {
|
|
221
|
+
width: {
|
|
222
|
+
displayOptions: [
|
|
223
|
+
'full',
|
|
224
|
+
'auto',
|
|
225
|
+
'small',
|
|
226
|
+
'large',
|
|
227
|
+
'medium'
|
|
228
|
+
],
|
|
229
|
+
sizeConfig: {
|
|
230
|
+
small: '100px',
|
|
231
|
+
medium: '116px',
|
|
232
|
+
large: '132px'
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
height: {
|
|
236
|
+
displayOptions: [
|
|
237
|
+
'auto',
|
|
238
|
+
'small',
|
|
239
|
+
'large',
|
|
240
|
+
'medium'
|
|
241
|
+
],
|
|
242
|
+
sizeConfig: {
|
|
243
|
+
small: '28px',
|
|
244
|
+
medium: '36px',
|
|
245
|
+
large: '44px'
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
hiddenSettings: [
|
|
250
|
+
'shape',
|
|
251
|
+
'gap'
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
id: 'wrapperBorder',
|
|
256
|
+
type: 'border',
|
|
257
|
+
label: 'Border',
|
|
258
|
+
default: {
|
|
259
|
+
border: 'solid',
|
|
260
|
+
width: '1px 1px 1px 1px',
|
|
261
|
+
position: 'all',
|
|
262
|
+
borderWidth: '1px',
|
|
263
|
+
color: '#A01414',
|
|
264
|
+
isCustom: true
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
id: 'borderRadius',
|
|
269
|
+
type: 'radius-preset',
|
|
270
|
+
label: 'Corner',
|
|
271
|
+
default: {
|
|
272
|
+
radiusType: 'none'
|
|
273
|
+
},
|
|
274
|
+
compoDefaultValue: {
|
|
275
|
+
bblr: '20px',
|
|
276
|
+
btrr: '20px',
|
|
277
|
+
bbrr: '20px',
|
|
278
|
+
btlr: '20px',
|
|
279
|
+
radiusType: 'rounded'
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
id: 'hasActiveShadow',
|
|
284
|
+
type: 'toggle',
|
|
285
|
+
label: 'Enable Button Shadow',
|
|
286
|
+
default: false
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
id: 'shadow',
|
|
290
|
+
type: 'boxShadow',
|
|
291
|
+
label: 'Button Shadow',
|
|
292
|
+
default: {
|
|
293
|
+
type: 'none',
|
|
294
|
+
distance: '10px',
|
|
295
|
+
blur: '12px',
|
|
296
|
+
spread: '10px',
|
|
297
|
+
color: 'rgba(18, 18, 18, 0.77)',
|
|
298
|
+
angle: 40
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
];
|
|
304
|
+
|
|
305
|
+
export { TextInputSettings };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
const SettingUIV1 = [
|
|
2
|
+
{
|
|
3
|
+
type: 'control',
|
|
4
|
+
label: {
|
|
5
|
+
en: 'Placeholder'
|
|
6
|
+
},
|
|
7
|
+
setting: {
|
|
8
|
+
id: 'placeholder'
|
|
9
|
+
},
|
|
10
|
+
options: {
|
|
11
|
+
label: 'large'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'control',
|
|
16
|
+
label: {
|
|
17
|
+
en: 'Required'
|
|
18
|
+
},
|
|
19
|
+
// info: {
|
|
20
|
+
// en: 'Your buyers must fill in this input to submit form.',
|
|
21
|
+
// },
|
|
22
|
+
setting: {
|
|
23
|
+
id: 'required'
|
|
24
|
+
},
|
|
25
|
+
options: {
|
|
26
|
+
label: 'large'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'group',
|
|
31
|
+
label: {
|
|
32
|
+
en: 'Size'
|
|
33
|
+
},
|
|
34
|
+
info: {
|
|
35
|
+
en: ''
|
|
36
|
+
},
|
|
37
|
+
controls: [
|
|
38
|
+
{
|
|
39
|
+
type: 'control',
|
|
40
|
+
label: {
|
|
41
|
+
en: 'Field size'
|
|
42
|
+
},
|
|
43
|
+
setting: {
|
|
44
|
+
id: 'size'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: 'control',
|
|
49
|
+
label: {
|
|
50
|
+
en: 'Full width'
|
|
51
|
+
},
|
|
52
|
+
setting: {
|
|
53
|
+
id: 'fullWidth'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: 'control',
|
|
58
|
+
label: {
|
|
59
|
+
en: 'Width'
|
|
60
|
+
},
|
|
61
|
+
condition: 'fullWidth == false',
|
|
62
|
+
setting: {
|
|
63
|
+
id: 'width'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
type: 'control',
|
|
70
|
+
label: {
|
|
71
|
+
en: 'Align'
|
|
72
|
+
},
|
|
73
|
+
setting: {
|
|
74
|
+
id: 'align'
|
|
75
|
+
},
|
|
76
|
+
condition: 'fullWidth == false'
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
type: 'group',
|
|
80
|
+
label: {
|
|
81
|
+
en: 'Text'
|
|
82
|
+
},
|
|
83
|
+
controls: [
|
|
84
|
+
{
|
|
85
|
+
type: 'control',
|
|
86
|
+
layout: 'vertical',
|
|
87
|
+
setting: {
|
|
88
|
+
id: 'typo'
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: 'control',
|
|
95
|
+
label: {
|
|
96
|
+
en: 'Name'
|
|
97
|
+
},
|
|
98
|
+
setting: {
|
|
99
|
+
id: 'name'
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
];
|
|
103
|
+
|
|
104
|
+
export { SettingUIV1 };
|