@symbo.ls/uikit 2.11.192 → 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 CHANGED
@@ -12693,17 +12693,31 @@ var Textarea = {
12693
12693
  tag: "textarea",
12694
12694
  extend: [Input, Flex],
12695
12695
  props: {
12696
- border: "1px solid #3F3F43",
12697
- background: "transparent",
12698
- round: "Y+W",
12699
- width: "G1",
12700
- height: "D2+W",
12701
- lineHeight: 1.4,
12702
- placeholder: "Leave us a message...",
12703
- fontSize: "Y2",
12704
- outline: "none !important",
12705
- color: "white",
12706
- style: { resize: "none" }
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
+ }
12707
12721
  }
12708
12722
  };
12709
12723
  var TextareaWithTitle = {
@@ -12777,9 +12791,16 @@ var Select = {
12777
12791
  var Field = {
12778
12792
  extend: IconText,
12779
12793
  props: {
12794
+ minWidth: "G",
12795
+ maxWidth: "G",
12796
+ minHeight: "C+X",
12780
12797
  align: "center flex-start",
12781
12798
  gap: "Y+W",
12782
12799
  boxSizing: "border-box",
12800
+ padding: "- Z+W",
12801
+ round: "Y+W",
12802
+ border: "1px solid #3F3F43",
12803
+ overflow: "hidden",
12783
12804
  position: "relative",
12784
12805
  Button: {
12785
12806
  padding: "0",
@@ -12789,18 +12810,15 @@ var Field = {
12789
12810
  }
12790
12811
  },
12791
12812
  Input: {
12792
- padding: "- Z+W",
12793
- round: "Y+W",
12794
- border: "1px solid #3F3F43",
12795
- minWidth: "G",
12796
- maxWidth: "100%",
12797
- minHeight: "C+X",
12798
- width: "100%",
12813
+ padding: "0",
12799
12814
  background: "transparent",
12815
+ round: "0",
12800
12816
  color: "white",
12801
12817
  fontFamily: "avenir",
12802
12818
  placeholder: "Placeholder",
12803
12819
  flex: "1",
12820
+ minHeight: "100%",
12821
+ outline: "none !important",
12804
12822
  fontWeight: "400"
12805
12823
  }
12806
12824
  };
@@ -14168,6 +14186,50 @@ var Pracing = {
14168
14186
  }
14169
14187
  };
14170
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
+
14171
14233
  // List/List.js
14172
14234
  var List = {
14173
14235
  props: {
@@ -15030,6 +15092,137 @@ var TimePickerItem = {
15030
15092
  Button_minus: { icon: "minus" }
15031
15093
  };
15032
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
+
15033
15226
  // TimePicker/TimeSwitcher.js
15034
15227
  var props3 = {
15035
15228
  boxSize: "C B2",
@@ -15042,7 +15235,7 @@ var TimeSwitcher = {
15042
15235
  props: props3,
15043
15236
  extend: Flex,
15044
15237
  childExtend: {
15045
- extend: Button,
15238
+ extend: Button2,
15046
15239
  props: ({ state, key }) => ({
15047
15240
  active: state.activeShift === key,
15048
15241
  padding: "0",
@@ -15216,50 +15409,6 @@ var CommonForm = {
15216
15409
  }
15217
15410
  };
15218
15411
 
15219
- // Form/VerificationCode.js
15220
- var VerificationCode = {
15221
- extend: Modal,
15222
- props: {
15223
- maxWidth: "G3",
15224
- gap: "A2"
15225
- },
15226
- Header: {
15227
- props: { gap: "A" },
15228
- Title: { h5: { text: "Verify your email" } },
15229
- Paragraph: { p: { text: "Verification code has been sent to you. Enter the code below." } }
15230
- },
15231
- Content: {
15232
- props: {
15233
- flow: "column",
15234
- gap: "A2"
15235
- },
15236
- Fields: {
15237
- extend: Flex,
15238
- props: {
15239
- justifyContent: "space-between",
15240
- flex: "1"
15241
- },
15242
- childExtend: NumberField,
15243
- ...[{}, {}, {}, {}]
15244
- },
15245
- ParagraphButton: { extend: ParagraphButton }
15246
- },
15247
- Footer: {
15248
- props: {
15249
- justifyContent: "flex-end",
15250
- padding: "Y2 - - -"
15251
- },
15252
- Buttons: {
15253
- extend: CancelConfirmButtons,
15254
- props: { childProps: { ":first-child": { border: "none" } } },
15255
- ...[
15256
- {},
15257
- { Caption: { text: "Verify" } }
15258
- ]
15259
- }
15260
- }
15261
- };
15262
-
15263
15412
  // Form/ResetPassword.js
15264
15413
  var ResetPassword = {
15265
15414
  extend: Modal,