@symbo.ls/uikit 2.11.165 → 2.11.166
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/index.cjs.js +222 -26
- package/dist/index.cjs.js.map +4 -4
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1302,7 +1302,7 @@ var require_cjs = __commonJS({
|
|
|
1302
1302
|
getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
|
|
1303
1303
|
getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
|
|
1304
1304
|
getSpacingByKey: () => getSpacingByKey3,
|
|
1305
|
-
getTheme: () =>
|
|
1305
|
+
getTheme: () => getTheme,
|
|
1306
1306
|
getTimingByKey: () => getTimingByKey2,
|
|
1307
1307
|
getTimingFunction: () => getTimingFunction3,
|
|
1308
1308
|
hexToRgb: () => hexToRgb,
|
|
@@ -2070,7 +2070,7 @@ var require_cjs = __commonJS({
|
|
|
2070
2070
|
getMediaTheme: () => getMediaTheme2,
|
|
2071
2071
|
getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
|
|
2072
2072
|
getSpacingByKey: () => getSpacingByKey3,
|
|
2073
|
-
getTheme: () =>
|
|
2073
|
+
getTheme: () => getTheme,
|
|
2074
2074
|
getTimingByKey: () => getTimingByKey2,
|
|
2075
2075
|
getTimingFunction: () => getTimingFunction3,
|
|
2076
2076
|
runThroughMedia: () => runThroughMedia,
|
|
@@ -2232,7 +2232,7 @@ var require_cjs = __commonJS({
|
|
|
2232
2232
|
theme.value = setThemeValue(theme);
|
|
2233
2233
|
return theme.value;
|
|
2234
2234
|
};
|
|
2235
|
-
var
|
|
2235
|
+
var getTheme = (value, modifier) => {
|
|
2236
2236
|
const CONFIG22 = getActiveConfig3();
|
|
2237
2237
|
if (CONFIG22.useVariable)
|
|
2238
2238
|
return getMediaTheme2(value, modifier);
|
|
@@ -2273,7 +2273,7 @@ var require_cjs = __commonJS({
|
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
2275
|
var setPseudo = (theme, key, variant, themeValue) => {
|
|
2276
|
-
const result =
|
|
2276
|
+
const result = getTheme(variant);
|
|
2277
2277
|
themeValue[`&:${key}`] = result;
|
|
2278
2278
|
if ((0, import_utils112.isObject)(variant) && !variant.value)
|
|
2279
2279
|
variant.value = result;
|
|
@@ -2291,7 +2291,7 @@ var require_cjs = __commonJS({
|
|
|
2291
2291
|
return theme;
|
|
2292
2292
|
};
|
|
2293
2293
|
var setPrefersScheme = (theme, key, variant, themeValue) => {
|
|
2294
|
-
const result =
|
|
2294
|
+
const result = getTheme(variant);
|
|
2295
2295
|
themeValue[`@media (prefers-color-scheme: ${key})`] = result;
|
|
2296
2296
|
if ((0, import_utils112.isObject)(variant) && !variant.value)
|
|
2297
2297
|
variant.value = result;
|
|
@@ -9330,7 +9330,7 @@ __export(domql_exports, {
|
|
|
9330
9330
|
Hoverable: () => Hoverable,
|
|
9331
9331
|
Hr: () => Hr,
|
|
9332
9332
|
Icon: () => Icon,
|
|
9333
|
-
|
|
9333
|
+
IconCommonButton: () => IconCommonButton,
|
|
9334
9334
|
IconTab: () => IconTab,
|
|
9335
9335
|
IconText: () => IconText,
|
|
9336
9336
|
IcontextButton: () => IcontextButton,
|
|
@@ -9363,7 +9363,9 @@ __export(domql_exports, {
|
|
|
9363
9363
|
ParagraphButtonWithCheckBox: () => ParagraphButtonWithCheckBox,
|
|
9364
9364
|
Picture: () => Picture,
|
|
9365
9365
|
Pills: () => Pills,
|
|
9366
|
+
PlusMinusButtons: () => PlusMinusButtons,
|
|
9366
9367
|
Position: () => Position,
|
|
9368
|
+
Pracing: () => Pracing,
|
|
9367
9369
|
ProgressCircle: () => ProgressCircle,
|
|
9368
9370
|
ProgressCircleWithIcon: () => ProgressCircleWithIcon,
|
|
9369
9371
|
ProgressCircleWithSideUnitValue: () => ProgressCircleWithSideUnitValue,
|
|
@@ -9887,7 +9889,6 @@ var SHAPES = {
|
|
|
9887
9889
|
}),
|
|
9888
9890
|
chevron: ({ props: props4, deps }) => ({
|
|
9889
9891
|
position: "relative",
|
|
9890
|
-
// overflow: 'hidden',
|
|
9891
9892
|
"&:before, &:after": {
|
|
9892
9893
|
content: '""',
|
|
9893
9894
|
display: "block",
|
|
@@ -12734,7 +12735,7 @@ var TextAreaWithButton = {
|
|
|
12734
12735
|
round: "Z2"
|
|
12735
12736
|
// background: 'gray'
|
|
12736
12737
|
},
|
|
12737
|
-
|
|
12738
|
+
IconCommonButton: {
|
|
12738
12739
|
props: {
|
|
12739
12740
|
background: "blue",
|
|
12740
12741
|
icon: { name: "send" }
|
|
@@ -12837,7 +12838,7 @@ var CommonField = {
|
|
|
12837
12838
|
color: "gray4"
|
|
12838
12839
|
}
|
|
12839
12840
|
},
|
|
12840
|
-
Field: {
|
|
12841
|
+
Field: {},
|
|
12841
12842
|
Hint: {
|
|
12842
12843
|
extend: IconText,
|
|
12843
12844
|
props: { color: "gray4" }
|
|
@@ -12984,9 +12985,14 @@ var CommonButton = {
|
|
|
12984
12985
|
icon: {
|
|
12985
12986
|
props: { fontSize: "C" }
|
|
12986
12987
|
},
|
|
12987
|
-
Caption: {
|
|
12988
|
+
Caption: {
|
|
12989
|
+
props: {
|
|
12990
|
+
text: "Button",
|
|
12991
|
+
line_height: "1em"
|
|
12992
|
+
}
|
|
12993
|
+
}
|
|
12988
12994
|
};
|
|
12989
|
-
var
|
|
12995
|
+
var IconCommonButton = {
|
|
12990
12996
|
extend: CommonButton,
|
|
12991
12997
|
props: {
|
|
12992
12998
|
icon: { name: "smile" },
|
|
@@ -12999,7 +13005,7 @@ var IconButton = {
|
|
|
12999
13005
|
var ButtonSet = {
|
|
13000
13006
|
tag: "nav",
|
|
13001
13007
|
extend: Flex,
|
|
13002
|
-
childExtend:
|
|
13008
|
+
childExtend: IconCommonButton
|
|
13003
13009
|
};
|
|
13004
13010
|
var CancelConfirmButtons = {
|
|
13005
13011
|
extend: Flex,
|
|
@@ -13066,6 +13072,22 @@ var DropDownButtonWithAvatar = {
|
|
|
13066
13072
|
}
|
|
13067
13073
|
}
|
|
13068
13074
|
};
|
|
13075
|
+
var PlusMinusButtons = {
|
|
13076
|
+
extend: Flex,
|
|
13077
|
+
props: {
|
|
13078
|
+
alignItems: "center",
|
|
13079
|
+
gap: "A"
|
|
13080
|
+
},
|
|
13081
|
+
Minus: {
|
|
13082
|
+
extend: IconButton,
|
|
13083
|
+
props: { icon: { name: "minus" } }
|
|
13084
|
+
},
|
|
13085
|
+
Value: { props: { text: "1" } },
|
|
13086
|
+
Plus: {
|
|
13087
|
+
extend: IconButton,
|
|
13088
|
+
props: { icon: { name: "plus" } }
|
|
13089
|
+
}
|
|
13090
|
+
};
|
|
13069
13091
|
|
|
13070
13092
|
// Progress/ProgressLine.js
|
|
13071
13093
|
var ProgressLine = {
|
|
@@ -13685,7 +13707,7 @@ var Tab = {
|
|
|
13685
13707
|
}
|
|
13686
13708
|
};
|
|
13687
13709
|
var IconTab = {
|
|
13688
|
-
extend:
|
|
13710
|
+
extend: IconCommonButton,
|
|
13689
13711
|
props: {},
|
|
13690
13712
|
Span: null,
|
|
13691
13713
|
CountIndicator: {
|
|
@@ -14083,21 +14105,69 @@ var Message = {
|
|
|
14083
14105
|
Title: { h5: { text: "Message" } },
|
|
14084
14106
|
Paragraph: {
|
|
14085
14107
|
p: {
|
|
14086
|
-
|
|
14108
|
+
props: {
|
|
14109
|
+
text: "Yes. If you change your mind and no longer wish to keep your iPhone, you have the option to return it to us. The returned iPhone must be in good condition and in the original packaging, which contains all accessories, manuals and instructions. Returns are subject to Apple\u2019s Sales and Refunds Policy.",
|
|
14110
|
+
lineHeight: "1.4em"
|
|
14111
|
+
}
|
|
14087
14112
|
}
|
|
14088
14113
|
}
|
|
14089
14114
|
},
|
|
14090
14115
|
Content: null,
|
|
14091
14116
|
Footer: null
|
|
14092
|
-
|
|
14093
|
-
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14117
|
+
};
|
|
14118
|
+
|
|
14119
|
+
// Modal/Pricing.js
|
|
14120
|
+
var Pracing = {
|
|
14121
|
+
extend: Modal,
|
|
14122
|
+
props: {
|
|
14123
|
+
background: "gray3",
|
|
14124
|
+
gap: "A",
|
|
14125
|
+
minWidth: "G+B",
|
|
14126
|
+
maxWidth: "G+B",
|
|
14127
|
+
padding: "A"
|
|
14128
|
+
},
|
|
14129
|
+
Header: null,
|
|
14130
|
+
Content: {
|
|
14131
|
+
props: {
|
|
14132
|
+
flow: "column",
|
|
14133
|
+
gap: "A"
|
|
14134
|
+
},
|
|
14135
|
+
childExtend: {
|
|
14136
|
+
extend: UnitValue,
|
|
14137
|
+
props: {
|
|
14138
|
+
justifyContent: "space-between",
|
|
14139
|
+
textTransform: "capitalize",
|
|
14140
|
+
color: "white"
|
|
14141
|
+
}
|
|
14142
|
+
},
|
|
14143
|
+
...[
|
|
14144
|
+
{
|
|
14145
|
+
Unit: { props: { text: "subtotal" } },
|
|
14146
|
+
Value: { props: { text: "$5,499.00" } }
|
|
14147
|
+
},
|
|
14148
|
+
{
|
|
14149
|
+
Unit: { props: { text: "Shipping" } },
|
|
14150
|
+
Value: { props: { text: "Free" } }
|
|
14151
|
+
},
|
|
14152
|
+
{
|
|
14153
|
+
Unit: { props: { text: "Savings" } },
|
|
14154
|
+
Value: { props: { text: "$1,600.00" } }
|
|
14155
|
+
}
|
|
14156
|
+
]
|
|
14157
|
+
},
|
|
14158
|
+
Footer: {
|
|
14159
|
+
CommonButton: {
|
|
14160
|
+
flex: "1",
|
|
14161
|
+
padding: "Z2 -",
|
|
14162
|
+
round: "Y2",
|
|
14163
|
+
background: "gray",
|
|
14164
|
+
Caption: {
|
|
14165
|
+
text: "Add promo code",
|
|
14166
|
+
fontSize: "Z",
|
|
14167
|
+
fontWeight: "500"
|
|
14168
|
+
}
|
|
14169
|
+
}
|
|
14170
|
+
}
|
|
14101
14171
|
};
|
|
14102
14172
|
|
|
14103
14173
|
// List/List.js
|
|
@@ -14962,6 +15032,132 @@ var TimePickerItem = {
|
|
|
14962
15032
|
Button_minus: { icon: "minus" }
|
|
14963
15033
|
};
|
|
14964
15034
|
|
|
15035
|
+
// TimePicker/node_modules/@symbo.ls/icon/index.js
|
|
15036
|
+
var Icon2 = {
|
|
15037
|
+
extend: Svg,
|
|
15038
|
+
props: ({ key, props: props4, parent, context }) => {
|
|
15039
|
+
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
15040
|
+
const { toCamelCase } = context && context.utils;
|
|
15041
|
+
const iconName = props4.inheritedString || props4.name || props4.icon || key;
|
|
15042
|
+
const camelCase = toCamelCase(iconName);
|
|
15043
|
+
const isArray3 = camelCase.split(/([a-z])([A-Z])/g);
|
|
15044
|
+
let activeIconName;
|
|
15045
|
+
if (props4.active) {
|
|
15046
|
+
activeIconName = props4[".active"].name || props4[".active"].icon;
|
|
15047
|
+
}
|
|
15048
|
+
if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
|
|
15049
|
+
activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
|
|
15050
|
+
}
|
|
15051
|
+
let validIconName;
|
|
15052
|
+
if (ICONS[activeIconName])
|
|
15053
|
+
validIconName = activeIconName;
|
|
15054
|
+
if (ICONS[camelCase])
|
|
15055
|
+
validIconName = camelCase;
|
|
15056
|
+
else if (ICONS[isArray3[0] + isArray3[1]])
|
|
15057
|
+
validIconName = isArray3[0] + isArray3[1];
|
|
15058
|
+
else if (ICONS[isArray3[0]])
|
|
15059
|
+
validIconName = isArray3[0];
|
|
15060
|
+
else {
|
|
15061
|
+
if (verbose)
|
|
15062
|
+
console.warn("Can't find icon:", iconName, validIconName);
|
|
15063
|
+
}
|
|
15064
|
+
const iconFromLibrary = ICONS[validIconName];
|
|
15065
|
+
const directSrc = parent && parent.props && parent.props.src || props4.src;
|
|
15066
|
+
return {
|
|
15067
|
+
width: "A",
|
|
15068
|
+
height: "A",
|
|
15069
|
+
display: "inline-block",
|
|
15070
|
+
spriteId: useIconSprite && validIconName,
|
|
15071
|
+
src: iconFromLibrary || directSrc || ICONS.noIcon,
|
|
15072
|
+
style: { fill: "currentColor" }
|
|
15073
|
+
};
|
|
15074
|
+
},
|
|
15075
|
+
attr: { viewBox: "0 0 24 24" }
|
|
15076
|
+
};
|
|
15077
|
+
var IconText2 = {
|
|
15078
|
+
extend: Flex,
|
|
15079
|
+
props: {
|
|
15080
|
+
align: "center center",
|
|
15081
|
+
lineHeight: 1
|
|
15082
|
+
},
|
|
15083
|
+
// TODO: remove this variant
|
|
15084
|
+
icon: {
|
|
15085
|
+
extend: Icon2,
|
|
15086
|
+
if: ({ parent }) => parent.props.icon
|
|
15087
|
+
},
|
|
15088
|
+
Icon: {
|
|
15089
|
+
props: {},
|
|
15090
|
+
if: ({ props: props4 }) => props4.name || props4.icon
|
|
15091
|
+
},
|
|
15092
|
+
text: ({ props: props4 }) => props4.text,
|
|
15093
|
+
".reversed": {
|
|
15094
|
+
props: { flow: "row-reverse" }
|
|
15095
|
+
},
|
|
15096
|
+
".vertical": {
|
|
15097
|
+
props: { flow: "column" }
|
|
15098
|
+
}
|
|
15099
|
+
};
|
|
15100
|
+
|
|
15101
|
+
// TimePicker/node_modules/@symbo.ls/button/index.js
|
|
15102
|
+
var Button2 = {
|
|
15103
|
+
extend: [FocusableComponent, IconText2],
|
|
15104
|
+
tag: "button",
|
|
15105
|
+
props: {
|
|
15106
|
+
fontSize: "A",
|
|
15107
|
+
type: "button",
|
|
15108
|
+
border: "none",
|
|
15109
|
+
display: "inline-flex",
|
|
15110
|
+
align: "center center",
|
|
15111
|
+
textDecoration: "none",
|
|
15112
|
+
lineHeight: "1",
|
|
15113
|
+
whiteSpace: "nowrap",
|
|
15114
|
+
padding: "Z A1",
|
|
15115
|
+
fontFamily: "inherit",
|
|
15116
|
+
round: "C2"
|
|
15117
|
+
},
|
|
15118
|
+
attr: {
|
|
15119
|
+
type: ({ props: props4 }) => props4.type
|
|
15120
|
+
}
|
|
15121
|
+
};
|
|
15122
|
+
var CommonButton2 = {
|
|
15123
|
+
extend: Button2,
|
|
15124
|
+
props: {
|
|
15125
|
+
color: "white",
|
|
15126
|
+
background: "blue",
|
|
15127
|
+
boxSize: "fit-content",
|
|
15128
|
+
padding: "A A2",
|
|
15129
|
+
round: "Z2",
|
|
15130
|
+
gap: "Y2",
|
|
15131
|
+
position: "relative"
|
|
15132
|
+
},
|
|
15133
|
+
icon: {
|
|
15134
|
+
props: { fontSize: "C" }
|
|
15135
|
+
},
|
|
15136
|
+
Caption: { props: { text: "Button", line_height: "1em" } }
|
|
15137
|
+
};
|
|
15138
|
+
var CancelConfirmButtons2 = {
|
|
15139
|
+
extend: Flex,
|
|
15140
|
+
childExtend: {
|
|
15141
|
+
extend: CommonButton2,
|
|
15142
|
+
props: {
|
|
15143
|
+
minWidth: "D2",
|
|
15144
|
+
":first-child": {
|
|
15145
|
+
background: "transparent",
|
|
15146
|
+
border: "1px solid #20202B"
|
|
15147
|
+
},
|
|
15148
|
+
":last-child": {}
|
|
15149
|
+
}
|
|
15150
|
+
},
|
|
15151
|
+
...[
|
|
15152
|
+
{ Caption: { text: "No" } },
|
|
15153
|
+
{ Caption: { text: "Yes" } }
|
|
15154
|
+
],
|
|
15155
|
+
props: {
|
|
15156
|
+
gap: "Z",
|
|
15157
|
+
maxWidth: "fit-content"
|
|
15158
|
+
}
|
|
15159
|
+
};
|
|
15160
|
+
|
|
14965
15161
|
// TimePicker/TimeSwitcher.js
|
|
14966
15162
|
var props3 = {
|
|
14967
15163
|
boxSize: "C B2",
|
|
@@ -14974,7 +15170,7 @@ var TimeSwitcher = {
|
|
|
14974
15170
|
props: props3,
|
|
14975
15171
|
extend: Flex,
|
|
14976
15172
|
childExtend: {
|
|
14977
|
-
extend:
|
|
15173
|
+
extend: Button2,
|
|
14978
15174
|
props: ({ state, key }) => ({
|
|
14979
15175
|
active: state.activeShift === key,
|
|
14980
15176
|
padding: "0",
|
|
@@ -16132,7 +16328,7 @@ var UserWithButton = {
|
|
|
16132
16328
|
}
|
|
16133
16329
|
}
|
|
16134
16330
|
},
|
|
16135
|
-
|
|
16331
|
+
IconCommonButton: {
|
|
16136
16332
|
round: "0",
|
|
16137
16333
|
background: "transparent",
|
|
16138
16334
|
icon: {
|
|
@@ -16291,7 +16487,7 @@ var CurrencyConvert = {
|
|
|
16291
16487
|
flex: "1",
|
|
16292
16488
|
padding: "Z1 -",
|
|
16293
16489
|
round: "Z",
|
|
16294
|
-
Caption: { text: "Convert" }
|
|
16490
|
+
Caption: { text: "Convert", fontWeight: "500" }
|
|
16295
16491
|
}
|
|
16296
16492
|
}
|
|
16297
16493
|
};
|