@symbo.ls/uikit 2.11.189 → 2.11.194
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 +270 -88
- package/dist/index.cjs.js.map +4 -4
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -9427,6 +9427,7 @@ __export(domql_exports, {
|
|
|
9427
9427
|
UnitValueWithTitle: () => UnitValueWithTitle,
|
|
9428
9428
|
UploadButton: () => UploadButton,
|
|
9429
9429
|
UploadButtonWithIcon: () => UploadButtonWithIcon,
|
|
9430
|
+
UploadIcon: () => UploadIcon,
|
|
9430
9431
|
UploadImage: () => UploadImage,
|
|
9431
9432
|
UploadLabel: () => UploadLabel,
|
|
9432
9433
|
UploadLabel2: () => UploadLabel2,
|
|
@@ -12534,7 +12535,7 @@ var Input = {
|
|
|
12534
12535
|
props: {
|
|
12535
12536
|
border: "none",
|
|
12536
12537
|
type: "input",
|
|
12537
|
-
|
|
12538
|
+
theme: "tertiary",
|
|
12538
12539
|
fontSize: "A",
|
|
12539
12540
|
round: "C",
|
|
12540
12541
|
lineHeight: 1,
|
|
@@ -12692,17 +12693,31 @@ var Textarea = {
|
|
|
12692
12693
|
tag: "textarea",
|
|
12693
12694
|
extend: [Input, Flex],
|
|
12694
12695
|
props: {
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12696
|
+
variant: "outlined"
|
|
12697
|
+
},
|
|
12698
|
+
".simple": {
|
|
12699
|
+
props: {
|
|
12700
|
+
theme: "tertiary",
|
|
12701
|
+
round: "Z2",
|
|
12702
|
+
width: "G1",
|
|
12703
|
+
height: "E1",
|
|
12704
|
+
lineHeight: 1.4
|
|
12705
|
+
}
|
|
12706
|
+
},
|
|
12707
|
+
".outlined": {
|
|
12708
|
+
props: {
|
|
12709
|
+
border: "1px solid #3F3F43",
|
|
12710
|
+
background: "transparent",
|
|
12711
|
+
round: "Y+W",
|
|
12712
|
+
width: "G1",
|
|
12713
|
+
height: "D2+W",
|
|
12714
|
+
lineHeight: 1.4,
|
|
12715
|
+
placeholder: "Leave us a message...",
|
|
12716
|
+
fontSize: "Y2",
|
|
12717
|
+
outline: "none !important",
|
|
12718
|
+
color: "white",
|
|
12719
|
+
resize: "none"
|
|
12720
|
+
}
|
|
12706
12721
|
}
|
|
12707
12722
|
};
|
|
12708
12723
|
var TextareaWithTitle = {
|
|
@@ -12865,12 +12880,7 @@ var NumberField = {
|
|
|
12865
12880
|
minWidth: "D+Y2",
|
|
12866
12881
|
maxWidth: "D+Y2",
|
|
12867
12882
|
minHeight: "D+Y2",
|
|
12868
|
-
padding: "0"
|
|
12869
|
-
style: {
|
|
12870
|
-
"input[type=number]::-webkit-inner-spin-button": {
|
|
12871
|
-
"-webkit-appearance": " none"
|
|
12872
|
-
}
|
|
12873
|
-
}
|
|
12883
|
+
padding: "0"
|
|
12874
12884
|
},
|
|
12875
12885
|
Input: null,
|
|
12876
12886
|
NumberInput: {
|
|
@@ -12878,10 +12888,12 @@ var NumberField = {
|
|
|
12878
12888
|
placeholder: "0",
|
|
12879
12889
|
boxSize: "100% 100%",
|
|
12880
12890
|
textAlign: "center",
|
|
12881
|
-
|
|
12891
|
+
round: "0",
|
|
12882
12892
|
background: "transparent",
|
|
12883
|
-
|
|
12884
|
-
|
|
12893
|
+
color: "white",
|
|
12894
|
+
"::-webkit-inner-spin-button": {
|
|
12895
|
+
"-webkit-appearance": " none"
|
|
12896
|
+
}
|
|
12885
12897
|
}
|
|
12886
12898
|
};
|
|
12887
12899
|
|
|
@@ -14174,6 +14186,50 @@ var Pracing = {
|
|
|
14174
14186
|
}
|
|
14175
14187
|
};
|
|
14176
14188
|
|
|
14189
|
+
// Modal/VerificationCode.js
|
|
14190
|
+
var VerificationCode = {
|
|
14191
|
+
extend: Modal,
|
|
14192
|
+
props: {
|
|
14193
|
+
maxWidth: "G3",
|
|
14194
|
+
gap: "A2"
|
|
14195
|
+
},
|
|
14196
|
+
Header: {
|
|
14197
|
+
props: { gap: "A" },
|
|
14198
|
+
Title: { h5: { text: "Verify your email" } },
|
|
14199
|
+
Paragraph: { p: { text: "Verification code has been sent to you. Enter the code below." } }
|
|
14200
|
+
},
|
|
14201
|
+
Content: {
|
|
14202
|
+
props: {
|
|
14203
|
+
flow: "column",
|
|
14204
|
+
gap: "A2"
|
|
14205
|
+
},
|
|
14206
|
+
Fields: {
|
|
14207
|
+
extend: Flex,
|
|
14208
|
+
props: {
|
|
14209
|
+
justifyContent: "space-between",
|
|
14210
|
+
flex: "1"
|
|
14211
|
+
},
|
|
14212
|
+
childExtend: NumberField,
|
|
14213
|
+
...[{}, {}, {}, {}]
|
|
14214
|
+
},
|
|
14215
|
+
ParagraphButton: { extend: ParagraphButton }
|
|
14216
|
+
},
|
|
14217
|
+
Footer: {
|
|
14218
|
+
props: {
|
|
14219
|
+
justifyContent: "flex-end",
|
|
14220
|
+
padding: "Y2 - - -"
|
|
14221
|
+
},
|
|
14222
|
+
Buttons: {
|
|
14223
|
+
extend: CancelConfirmButtons,
|
|
14224
|
+
props: { childProps: { ":first-child": { border: "none" } } },
|
|
14225
|
+
...[
|
|
14226
|
+
{},
|
|
14227
|
+
{ Caption: { text: "Verify" } }
|
|
14228
|
+
]
|
|
14229
|
+
}
|
|
14230
|
+
}
|
|
14231
|
+
};
|
|
14232
|
+
|
|
14177
14233
|
// List/List.js
|
|
14178
14234
|
var List = {
|
|
14179
14235
|
props: {
|
|
@@ -15036,6 +15092,137 @@ var TimePickerItem = {
|
|
|
15036
15092
|
Button_minus: { icon: "minus" }
|
|
15037
15093
|
};
|
|
15038
15094
|
|
|
15095
|
+
// TimePicker/node_modules/@symbo.ls/icon/index.js
|
|
15096
|
+
var Icon2 = {
|
|
15097
|
+
extend: Svg,
|
|
15098
|
+
props: ({ key, props: props4, parent, context }) => {
|
|
15099
|
+
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
15100
|
+
const { toCamelCase } = context && context.utils;
|
|
15101
|
+
const iconName = props4.inheritedString || props4.name || props4.icon || key;
|
|
15102
|
+
const camelCase = toCamelCase(iconName);
|
|
15103
|
+
const isArray3 = camelCase.split(/([a-z])([A-Z])/g);
|
|
15104
|
+
let activeIconName;
|
|
15105
|
+
if (props4.active) {
|
|
15106
|
+
activeIconName = props4[".active"].name || props4[".active"].icon;
|
|
15107
|
+
}
|
|
15108
|
+
if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
|
|
15109
|
+
activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
|
|
15110
|
+
}
|
|
15111
|
+
let validIconName;
|
|
15112
|
+
if (ICONS[activeIconName])
|
|
15113
|
+
validIconName = activeIconName;
|
|
15114
|
+
if (ICONS[camelCase])
|
|
15115
|
+
validIconName = camelCase;
|
|
15116
|
+
else if (ICONS[isArray3[0] + isArray3[1]])
|
|
15117
|
+
validIconName = isArray3[0] + isArray3[1];
|
|
15118
|
+
else if (ICONS[isArray3[0]])
|
|
15119
|
+
validIconName = isArray3[0];
|
|
15120
|
+
else {
|
|
15121
|
+
if (verbose)
|
|
15122
|
+
console.warn("Can't find icon:", iconName, validIconName);
|
|
15123
|
+
}
|
|
15124
|
+
const iconFromLibrary = ICONS[validIconName];
|
|
15125
|
+
const directSrc = parent && parent.props && parent.props.src || props4.src;
|
|
15126
|
+
return {
|
|
15127
|
+
width: "A",
|
|
15128
|
+
height: "A",
|
|
15129
|
+
display: "inline-block",
|
|
15130
|
+
spriteId: useIconSprite && validIconName,
|
|
15131
|
+
src: iconFromLibrary || directSrc || ICONS.noIcon,
|
|
15132
|
+
style: { fill: "currentColor" }
|
|
15133
|
+
};
|
|
15134
|
+
},
|
|
15135
|
+
attr: { viewBox: "0 0 24 24" }
|
|
15136
|
+
};
|
|
15137
|
+
var IconText2 = {
|
|
15138
|
+
extend: Flex,
|
|
15139
|
+
props: {
|
|
15140
|
+
align: "center center",
|
|
15141
|
+
lineHeight: 1
|
|
15142
|
+
},
|
|
15143
|
+
// TODO: remove this variant
|
|
15144
|
+
icon: {
|
|
15145
|
+
extend: Icon2,
|
|
15146
|
+
if: ({ parent }) => parent.props.icon
|
|
15147
|
+
},
|
|
15148
|
+
Icon: {
|
|
15149
|
+
props: {},
|
|
15150
|
+
if: ({ props: props4 }) => props4.name || props4.icon
|
|
15151
|
+
},
|
|
15152
|
+
text: ({ props: props4 }) => props4.text,
|
|
15153
|
+
".reversed": {
|
|
15154
|
+
props: { flow: "row-reverse" }
|
|
15155
|
+
},
|
|
15156
|
+
".vertical": {
|
|
15157
|
+
props: { flow: "column" }
|
|
15158
|
+
}
|
|
15159
|
+
};
|
|
15160
|
+
|
|
15161
|
+
// TimePicker/node_modules/@symbo.ls/button/index.js
|
|
15162
|
+
var Button2 = {
|
|
15163
|
+
extend: [FocusableComponent, IconText2],
|
|
15164
|
+
tag: "button",
|
|
15165
|
+
props: {
|
|
15166
|
+
fontSize: "A",
|
|
15167
|
+
type: "button",
|
|
15168
|
+
border: "none",
|
|
15169
|
+
display: "inline-flex",
|
|
15170
|
+
align: "center center",
|
|
15171
|
+
textDecoration: "none",
|
|
15172
|
+
lineHeight: "1",
|
|
15173
|
+
whiteSpace: "nowrap",
|
|
15174
|
+
padding: "Z A1",
|
|
15175
|
+
fontFamily: "inherit",
|
|
15176
|
+
round: "C2"
|
|
15177
|
+
},
|
|
15178
|
+
attr: {
|
|
15179
|
+
type: ({ props: props4 }) => props4.type
|
|
15180
|
+
}
|
|
15181
|
+
};
|
|
15182
|
+
var CommonButton2 = {
|
|
15183
|
+
extend: Button2,
|
|
15184
|
+
props: {
|
|
15185
|
+
color: "white",
|
|
15186
|
+
background: "blue",
|
|
15187
|
+
boxSize: "fit-content",
|
|
15188
|
+
padding: "A A2",
|
|
15189
|
+
round: "Z2",
|
|
15190
|
+
gap: "Y2",
|
|
15191
|
+
position: "relative"
|
|
15192
|
+
},
|
|
15193
|
+
icon: {
|
|
15194
|
+
props: { fontSize: "C" }
|
|
15195
|
+
},
|
|
15196
|
+
Caption: {
|
|
15197
|
+
props: {
|
|
15198
|
+
text: "Button",
|
|
15199
|
+
line_height: "1em"
|
|
15200
|
+
}
|
|
15201
|
+
}
|
|
15202
|
+
};
|
|
15203
|
+
var CancelConfirmButtons2 = {
|
|
15204
|
+
extend: Flex,
|
|
15205
|
+
childExtend: {
|
|
15206
|
+
extend: CommonButton2,
|
|
15207
|
+
props: {
|
|
15208
|
+
minWidth: "D2",
|
|
15209
|
+
":first-child": {
|
|
15210
|
+
background: "transparent",
|
|
15211
|
+
border: "1px solid #20202B"
|
|
15212
|
+
},
|
|
15213
|
+
":last-child": {}
|
|
15214
|
+
}
|
|
15215
|
+
},
|
|
15216
|
+
...[
|
|
15217
|
+
{ Caption: { text: "No" } },
|
|
15218
|
+
{ Caption: { text: "Yes" } }
|
|
15219
|
+
],
|
|
15220
|
+
props: {
|
|
15221
|
+
gap: "Z",
|
|
15222
|
+
maxWidth: "fit-content"
|
|
15223
|
+
}
|
|
15224
|
+
};
|
|
15225
|
+
|
|
15039
15226
|
// TimePicker/TimeSwitcher.js
|
|
15040
15227
|
var props3 = {
|
|
15041
15228
|
boxSize: "C B2",
|
|
@@ -15048,7 +15235,7 @@ var TimeSwitcher = {
|
|
|
15048
15235
|
props: props3,
|
|
15049
15236
|
extend: Flex,
|
|
15050
15237
|
childExtend: {
|
|
15051
|
-
extend:
|
|
15238
|
+
extend: Button2,
|
|
15052
15239
|
props: ({ state, key }) => ({
|
|
15053
15240
|
active: state.activeShift === key,
|
|
15054
15241
|
padding: "0",
|
|
@@ -15222,50 +15409,6 @@ var CommonForm = {
|
|
|
15222
15409
|
}
|
|
15223
15410
|
};
|
|
15224
15411
|
|
|
15225
|
-
// Form/VerificationCode.js
|
|
15226
|
-
var VerificationCode = {
|
|
15227
|
-
extend: Modal,
|
|
15228
|
-
props: {
|
|
15229
|
-
maxWidth: "G3",
|
|
15230
|
-
gap: "A2"
|
|
15231
|
-
},
|
|
15232
|
-
Header: {
|
|
15233
|
-
props: { gap: "A" },
|
|
15234
|
-
Title: { h5: { text: "Verify your email" } },
|
|
15235
|
-
Paragraph: { p: { text: "Verification code has been sent to you. Enter the code below." } }
|
|
15236
|
-
},
|
|
15237
|
-
Content: {
|
|
15238
|
-
props: {
|
|
15239
|
-
flow: "column",
|
|
15240
|
-
gap: "A2"
|
|
15241
|
-
},
|
|
15242
|
-
Fields: {
|
|
15243
|
-
extend: Flex,
|
|
15244
|
-
props: {
|
|
15245
|
-
justifyContent: "space-between",
|
|
15246
|
-
flex: "1"
|
|
15247
|
-
},
|
|
15248
|
-
childExtend: NumberField,
|
|
15249
|
-
...[{}, {}, {}, {}]
|
|
15250
|
-
},
|
|
15251
|
-
ParagraphButton: { extend: ParagraphButton }
|
|
15252
|
-
},
|
|
15253
|
-
Footer: {
|
|
15254
|
-
props: {
|
|
15255
|
-
justifyContent: "flex-end",
|
|
15256
|
-
padding: "Y2 - - -"
|
|
15257
|
-
},
|
|
15258
|
-
Buttons: {
|
|
15259
|
-
extend: CancelConfirmButtons,
|
|
15260
|
-
props: { childProps: { ":first-child": { border: "none" } } },
|
|
15261
|
-
...[
|
|
15262
|
-
{},
|
|
15263
|
-
{ Caption: { text: "Verify" } }
|
|
15264
|
-
]
|
|
15265
|
-
}
|
|
15266
|
-
}
|
|
15267
|
-
};
|
|
15268
|
-
|
|
15269
15412
|
// Form/ResetPassword.js
|
|
15270
15413
|
var ResetPassword = {
|
|
15271
15414
|
extend: Modal,
|
|
@@ -15281,29 +15424,25 @@ var ResetPassword = {
|
|
|
15281
15424
|
Content: {
|
|
15282
15425
|
extend: CommonForm,
|
|
15283
15426
|
props: { gap: "B1" },
|
|
15284
|
-
...[
|
|
15285
|
-
{
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
},
|
|
15290
|
-
{
|
|
15291
|
-
|
|
15292
|
-
|
|
15293
|
-
|
|
15294
|
-
Icon: { props: { name: "info" } },
|
|
15295
|
-
text: "8 character minimum"
|
|
15296
|
-
}
|
|
15297
|
-
},
|
|
15298
|
-
{
|
|
15299
|
-
Title: { text: "Confirm new password" },
|
|
15300
|
-
Field: {},
|
|
15301
|
-
Hint: {
|
|
15302
|
-
Icon: { props: { name: "info" } },
|
|
15303
|
-
text: "8 character minimum"
|
|
15304
|
-
}
|
|
15427
|
+
...[{
|
|
15428
|
+
Title: { text: "Old password" },
|
|
15429
|
+
Field: {},
|
|
15430
|
+
Hint: null
|
|
15431
|
+
}, {
|
|
15432
|
+
Title: { text: "New password" },
|
|
15433
|
+
Field: {},
|
|
15434
|
+
Hint: {
|
|
15435
|
+
Icon: { props: { name: "info" } },
|
|
15436
|
+
text: "8 character minimum"
|
|
15305
15437
|
}
|
|
15306
|
-
|
|
15438
|
+
}, {
|
|
15439
|
+
Title: { text: "Confirm new password" },
|
|
15440
|
+
Field: {},
|
|
15441
|
+
Hint: {
|
|
15442
|
+
Icon: { props: { name: "info" } },
|
|
15443
|
+
text: "8 character minimum"
|
|
15444
|
+
}
|
|
15445
|
+
}]
|
|
15307
15446
|
},
|
|
15308
15447
|
Footer: {
|
|
15309
15448
|
props: { justifyContent: "flex-end" },
|
|
@@ -15601,6 +15740,49 @@ var UploadImage = {
|
|
|
15601
15740
|
fontSize: "D"
|
|
15602
15741
|
}
|
|
15603
15742
|
};
|
|
15743
|
+
var UploadIcon = {
|
|
15744
|
+
extend: [Focusable, Flex],
|
|
15745
|
+
tag: "label",
|
|
15746
|
+
props: {
|
|
15747
|
+
position: "relative",
|
|
15748
|
+
theme: "tertiary",
|
|
15749
|
+
flow: "column",
|
|
15750
|
+
align: "center center",
|
|
15751
|
+
round: "A",
|
|
15752
|
+
cursor: "pointer",
|
|
15753
|
+
border: "1.6px, dashed, white 0.1",
|
|
15754
|
+
padding: "B B2"
|
|
15755
|
+
},
|
|
15756
|
+
Input: {
|
|
15757
|
+
props: {
|
|
15758
|
+
type: "file",
|
|
15759
|
+
position: "absolute",
|
|
15760
|
+
inset: "0 0 0 0",
|
|
15761
|
+
opacity: "0",
|
|
15762
|
+
visibility: "hidden"
|
|
15763
|
+
}
|
|
15764
|
+
},
|
|
15765
|
+
Icon: {
|
|
15766
|
+
props: {
|
|
15767
|
+
name: "upload",
|
|
15768
|
+
fontSize: "B",
|
|
15769
|
+
opacity: ".2"
|
|
15770
|
+
}
|
|
15771
|
+
},
|
|
15772
|
+
P: {
|
|
15773
|
+
props: {
|
|
15774
|
+
text: " or click and upload from your computer",
|
|
15775
|
+
flexFlow: "column",
|
|
15776
|
+
flexAlign: "center center",
|
|
15777
|
+
opacity: ".22",
|
|
15778
|
+
margin: "0"
|
|
15779
|
+
},
|
|
15780
|
+
Span: {
|
|
15781
|
+
text: "Drag and drop your font file",
|
|
15782
|
+
display: "block"
|
|
15783
|
+
}
|
|
15784
|
+
}
|
|
15785
|
+
};
|
|
15604
15786
|
|
|
15605
15787
|
// Upload/UploadButton.js
|
|
15606
15788
|
var UploadButton = {
|