@symbo.ls/uikit 2.11.241 → 2.11.243

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
@@ -99,7 +99,7 @@ var require_cjs = __commonJS({
99
99
  }
100
100
  });
101
101
  var require_key2 = __commonJS2({
102
- "../../../domql/packages/utils/dist/cjs/key.js"(exports2, module22) {
102
+ "../../node_modules/@domql/utils/dist/cjs/key.js"(exports2, module22) {
103
103
  "use strict";
104
104
  var __defProp22 = Object.defineProperty;
105
105
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -136,7 +136,7 @@ var require_cjs = __commonJS({
136
136
  }
137
137
  });
138
138
  var require_env2 = __commonJS2({
139
- "../../../domql/packages/utils/dist/cjs/env.js"(exports2, module22) {
139
+ "../../node_modules/@domql/utils/dist/cjs/env.js"(exports2, module22) {
140
140
  "use strict";
141
141
  var __defProp22 = Object.defineProperty;
142
142
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -172,7 +172,7 @@ var require_cjs = __commonJS({
172
172
  }
173
173
  });
174
174
  var require_globals2 = __commonJS2({
175
- "../../../domql/packages/utils/dist/cjs/globals.js"(exports2, module22) {
175
+ "../../node_modules/@domql/utils/dist/cjs/globals.js"(exports2, module22) {
176
176
  "use strict";
177
177
  var __defProp22 = Object.defineProperty;
178
178
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -206,7 +206,7 @@ var require_cjs = __commonJS({
206
206
  }
207
207
  });
208
208
  var require_node2 = __commonJS2({
209
- "../../../domql/packages/utils/dist/cjs/node.js"(exports2, module22) {
209
+ "../../node_modules/@domql/utils/dist/cjs/node.js"(exports2, module22) {
210
210
  "use strict";
211
211
  var __defProp22 = Object.defineProperty;
212
212
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -241,7 +241,7 @@ var require_cjs = __commonJS({
241
241
  }
242
242
  });
243
243
  var require_types2 = __commonJS2({
244
- "../../../domql/packages/utils/dist/cjs/types.js"(exports2, module22) {
244
+ "../../node_modules/@domql/utils/dist/cjs/types.js"(exports2, module22) {
245
245
  "use strict";
246
246
  var __defProp22 = Object.defineProperty;
247
247
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -271,7 +271,7 @@ var require_cjs = __commonJS({
271
271
  isFunction: () => isFunction22,
272
272
  isNot: () => isNot2,
273
273
  isNull: () => isNull,
274
- isNumber: () => isNumber2,
274
+ isNumber: () => isNumber3,
275
275
  isObject: () => isObject8,
276
276
  isObjectLike: () => isObjectLike3,
277
277
  isString: () => isString10,
@@ -285,7 +285,7 @@ var require_cjs = __commonJS({
285
285
  return typeof arg === "object" && arg.constructor === Object;
286
286
  };
287
287
  var isString10 = (arg) => typeof arg === "string";
288
- var isNumber2 = (arg) => typeof arg === "number";
288
+ var isNumber3 = (arg) => typeof arg === "number";
289
289
  var isFunction22 = (arg) => typeof arg === "function";
290
290
  var isBoolean = (arg) => arg === true || arg === false;
291
291
  var isNull = (arg) => arg === null;
@@ -297,7 +297,7 @@ var require_cjs = __commonJS({
297
297
  return typeof arg === "object";
298
298
  };
299
299
  var isDefined2 = (arg) => {
300
- return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber2(arg) || isFunction22(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
300
+ return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction22(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
301
301
  };
302
302
  var isUndefined3 = (arg) => {
303
303
  return arg === void 0;
@@ -308,7 +308,7 @@ var require_cjs = __commonJS({
308
308
  object: isObject8,
309
309
  string: isString10,
310
310
  date: isDate,
311
- number: isNumber2,
311
+ number: isNumber3,
312
312
  null: isNull,
313
313
  function: isFunction22,
314
314
  objectLike: isObjectLike3,
@@ -329,7 +329,7 @@ var require_cjs = __commonJS({
329
329
  }
330
330
  });
331
331
  var require_array2 = __commonJS2({
332
- "../../../domql/packages/utils/dist/cjs/array.js"(exports2, module22) {
332
+ "../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
333
333
  "use strict";
334
334
  var __defProp22 = Object.defineProperty;
335
335
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -440,7 +440,7 @@ var require_cjs = __commonJS({
440
440
  }
441
441
  });
442
442
  var require_string2 = __commonJS2({
443
- "../../../domql/packages/utils/dist/cjs/string.js"(exports2, module22) {
443
+ "../../node_modules/@domql/utils/dist/cjs/string.js"(exports2, module22) {
444
444
  "use strict";
445
445
  var __defProp22 = Object.defineProperty;
446
446
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -503,7 +503,7 @@ var require_cjs = __commonJS({
503
503
  }
504
504
  });
505
505
  var require_object2 = __commonJS2({
506
- "../../../domql/packages/utils/dist/cjs/object.js"(exports2, module22) {
506
+ "../../node_modules/@domql/utils/dist/cjs/object.js"(exports2, module22) {
507
507
  "use strict";
508
508
  var __defProp22 = Object.defineProperty;
509
509
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -1011,7 +1011,7 @@ var require_cjs = __commonJS({
1011
1011
  }
1012
1012
  });
1013
1013
  var require_function2 = __commonJS2({
1014
- "../../../domql/packages/utils/dist/cjs/function.js"(exports2, module22) {
1014
+ "../../node_modules/@domql/utils/dist/cjs/function.js"(exports2, module22) {
1015
1015
  "use strict";
1016
1016
  var __defProp22 = Object.defineProperty;
1017
1017
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -1084,7 +1084,7 @@ var require_cjs = __commonJS({
1084
1084
  }
1085
1085
  });
1086
1086
  var require_log2 = __commonJS2({
1087
- "../../../domql/packages/utils/dist/cjs/log.js"(exports2, module22) {
1087
+ "../../node_modules/@domql/utils/dist/cjs/log.js"(exports2, module22) {
1088
1088
  "use strict";
1089
1089
  var __defProp22 = Object.defineProperty;
1090
1090
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -1123,7 +1123,7 @@ var require_cjs = __commonJS({
1123
1123
  }
1124
1124
  });
1125
1125
  var require_cookie2 = __commonJS2({
1126
- "../../../domql/packages/utils/dist/cjs/cookie.js"(exports2, module22) {
1126
+ "../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports2, module22) {
1127
1127
  "use strict";
1128
1128
  var __defProp22 = Object.defineProperty;
1129
1129
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -1177,7 +1177,7 @@ var require_cjs = __commonJS({
1177
1177
  }
1178
1178
  });
1179
1179
  var require_tags2 = __commonJS2({
1180
- "../../../domql/packages/utils/dist/cjs/tags.js"(exports2, module22) {
1180
+ "../../node_modules/@domql/utils/dist/cjs/tags.js"(exports2, module22) {
1181
1181
  "use strict";
1182
1182
  var __defProp22 = Object.defineProperty;
1183
1183
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -1340,7 +1340,7 @@ var require_cjs = __commonJS({
1340
1340
  }
1341
1341
  });
1342
1342
  var require_cjs22 = __commonJS2({
1343
- "../../../domql/packages/utils/dist/cjs/index.js"(exports2, module22) {
1343
+ "../../node_modules/@domql/utils/dist/cjs/index.js"(exports2, module22) {
1344
1344
  "use strict";
1345
1345
  var __defProp22 = Object.defineProperty;
1346
1346
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -1752,6 +1752,8 @@ var require_cjs = __commonJS({
1752
1752
  return val.split(" ");
1753
1753
  if ((0, import_utils32.isObject)(val))
1754
1754
  return Object.keys(val).map((v) => val[v]);
1755
+ if ((0, import_utils32.isNumber)(val))
1756
+ return [val];
1755
1757
  if ((0, import_utils32.isArray)(val))
1756
1758
  return val;
1757
1759
  };
@@ -6725,6 +6727,46 @@ var import_state = __toESM(require_cjs5());
6725
6727
  var import_utils3 = __toESM(require_cjs2());
6726
6728
  var Collection = {
6727
6729
  define: {
6730
+ $collection: (param, el, state) => {
6731
+ if (!param)
6732
+ return;
6733
+ if ((0, import_utils3.isString)(param)) {
6734
+ if (param === "state")
6735
+ param = state.parse();
6736
+ else
6737
+ param = (0, import_state.getChildStateInKey)(param, state);
6738
+ }
6739
+ if ((0, import_state.isState)(param))
6740
+ param = param.parse();
6741
+ if ((0, import_utils3.isNot)(param)("array", "object"))
6742
+ return;
6743
+ const { __ref: ref } = el;
6744
+ if (ref.__stateCollectionCache) {
6745
+ const d = (0, import_utils3.deepDiff)(param, ref.__stateCollectionCache);
6746
+ if (Object.keys(d).length) {
6747
+ ref.__stateCollectionCache = (0, import_utils3.deepClone)(param);
6748
+ delete ref.__noCollectionDifference;
6749
+ } else {
6750
+ ref.__noCollectionDifference = true;
6751
+ return;
6752
+ }
6753
+ } else {
6754
+ ref.__stateCollectionCache = (0, import_utils3.deepClone)(param);
6755
+ }
6756
+ const obj = {
6757
+ tag: "fragment",
6758
+ props: {
6759
+ childProps: el.props && el.props.childProps
6760
+ }
6761
+ };
6762
+ for (const key in param) {
6763
+ const value = param[key];
6764
+ obj[key] = (0, import_utils3.isObjectLike)(value) ? value : { value };
6765
+ }
6766
+ el.removeContent();
6767
+ el.content = obj;
6768
+ return obj;
6769
+ },
6728
6770
  $setCollection: (param, el, state) => {
6729
6771
  if (!param)
6730
6772
  return;
@@ -8378,6 +8420,7 @@ var Text = {
8378
8420
  const { props: props4, deps } = el;
8379
8421
  return props4.fontSize ? deps.getFontSizeByKey(props4.fontSize) : null;
8380
8422
  },
8423
+ font: ({ props: props4 }) => !(0, import_utils7.isUndefined)(props4.font) && { font: props4.font },
8381
8424
  fontFamily: ({ props: props4, deps }) => !(0, import_utils7.isUndefined)(props4.fontFamily) && {
8382
8425
  fontFamily: deps.getFontFamily(props4.fontFamily) || props4.fontFamily
8383
8426
  },
@@ -8732,7 +8775,7 @@ var TitleParagraph = {
8732
8775
  props: {
8733
8776
  margin: "0",
8734
8777
  fontWeight: "400",
8735
- color: "gray4",
8778
+ color: "caption",
8736
8779
  "> p": { margin: "0" }
8737
8780
  }
8738
8781
  }
@@ -8769,7 +8812,7 @@ var TitleParagraphButton = {
8769
8812
  Button: {
8770
8813
  props: {
8771
8814
  background: "transparent",
8772
- color: "white",
8815
+ color: "currentColor",
8773
8816
  padding: "0",
8774
8817
  Icon: {
8775
8818
  name: "x",
@@ -8819,7 +8862,7 @@ var List = {
8819
8862
  position: "relative",
8820
8863
  cursor: "pointer",
8821
8864
  fontSize: "A1",
8822
- color: "gray4",
8865
+ color: "caption",
8823
8866
  ":hover": {
8824
8867
  background: "gray .92 +4"
8825
8868
  },
@@ -9078,7 +9121,7 @@ var CommonField = {
9078
9121
  text: "Label",
9079
9122
  lineHeight: "1em",
9080
9123
  padding: "- - - V2",
9081
- color: "gray4"
9124
+ color: "caption"
9082
9125
  }
9083
9126
  },
9084
9127
  Field: {
@@ -9087,7 +9130,7 @@ var CommonField = {
9087
9130
  Hint: {
9088
9131
  extend: IconText,
9089
9132
  props: {
9090
- color: "gray4",
9133
+ color: "caption",
9091
9134
  align: "center flex-start",
9092
9135
  text: "",
9093
9136
  fontSize: "Z1",
@@ -9419,7 +9462,7 @@ var Banner = {
9419
9462
  content: '""',
9420
9463
  position: "absolute",
9421
9464
  boxSize: "V 100%",
9422
- background: "white .1",
9465
+ theme: "dialog",
9423
9466
  top: "0",
9424
9467
  round: "C"
9425
9468
  }
@@ -9438,8 +9481,7 @@ var Banner = {
9438
9481
  Title: {
9439
9482
  tag: "h6",
9440
9483
  props: {
9441
- fontSize: "B",
9442
- color: "white .85"
9484
+ fontSize: "B"
9443
9485
  }
9444
9486
  },
9445
9487
  Paragraph: {
@@ -9454,9 +9496,7 @@ var Banner = {
9454
9496
  letterSpacing: ".1px",
9455
9497
  padding: "B - - Y",
9456
9498
  fontSize: "Z2",
9457
- color: "white .5",
9458
9499
  lineHeight: "1.6em"
9459
- // fontWeight: '100'
9460
9500
  }
9461
9501
  }
9462
9502
  };
@@ -10451,7 +10491,6 @@ var Label = {
10451
10491
  text: "-2.902x",
10452
10492
  fontSize: "X2",
10453
10493
  boxSize: "fit-content fit-content",
10454
- background: "#F4454E",
10455
10494
  padding: "W2 Y2",
10456
10495
  round: "Y1",
10457
10496
  fontWeight: "400"
@@ -10972,7 +11011,7 @@ var LineStepsWithTitleParagraph = {
10972
11011
  Paragraph: {
10973
11012
  text: "The easiest way to build your own website.",
10974
11013
  fontSize: "Z1",
10975
- color: "gray4"
11014
+ color: "caption"
10976
11015
  }
10977
11016
  },
10978
11017
  LineSteps: {
@@ -10994,7 +11033,7 @@ var ParagraphButton = {
10994
11033
  P: {
10995
11034
  props: {
10996
11035
  text: "Didn't get the code?",
10997
- color: "gray4",
11036
+ color: "caption",
10998
11037
  margin: "0"
10999
11038
  }
11000
11039
  },
@@ -11136,7 +11175,7 @@ var Modal = {
11136
11175
  Paragraph: {
11137
11176
  props: {
11138
11177
  fontSize: "Z",
11139
- color: "gray4",
11178
+ color: "caption",
11140
11179
  padding: "- Y"
11141
11180
  }
11142
11181
  }
@@ -11872,7 +11911,7 @@ var LogIn = {
11872
11911
  extend: SocialLink,
11873
11912
  props: {
11874
11913
  minWidth: "100%",
11875
- color: "gray4"
11914
+ color: "caption"
11876
11915
  }
11877
11916
  },
11878
11917
  ...[{}, {}]
@@ -12635,7 +12674,7 @@ var BalanceCard = {
12635
12674
  padding: "0",
12636
12675
  theme: "transparent",
12637
12676
  fontSize: "D",
12638
- color: "gray4",
12677
+ color: "caption",
12639
12678
  margin: "-X -W2 - -",
12640
12679
  Icon: { name: "arrowUpRight" }
12641
12680
  }
@@ -12653,7 +12692,7 @@ var BalanceCard = {
12653
12692
  },
12654
12693
  UnitValue: {
12655
12694
  flow: "row-reverse",
12656
- color: "white .75",
12695
+ color: "paragraph",
12657
12696
  fontWeight: "400",
12658
12697
  fontSize: "Z",
12659
12698
  gap: "Y",
@@ -12733,7 +12772,7 @@ var ConvertCard = {
12733
12772
  props: {
12734
12773
  justifyContent: "space-between",
12735
12774
  fontWeight: "400",
12736
- color: "gray4"
12775
+ color: "caption"
12737
12776
  },
12738
12777
  caption: {
12739
12778
  props: {