@symbo.ls/uikit 2.11.238 → 2.11.240

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
@@ -275,7 +275,7 @@ var require_cjs = __commonJS({
275
275
  isObject: () => isObject8,
276
276
  isObjectLike: () => isObjectLike3,
277
277
  isString: () => isString10,
278
- isUndefined: () => isUndefined2
278
+ isUndefined: () => isUndefined3
279
279
  });
280
280
  module22.exports = __toCommonJS22(types_exports);
281
281
  var import_node = require_node2();
@@ -299,7 +299,7 @@ var require_cjs = __commonJS({
299
299
  var isDefined2 = (arg) => {
300
300
  return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber2(arg) || isFunction22(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
301
301
  };
302
- var isUndefined2 = (arg) => {
302
+ var isUndefined3 = (arg) => {
303
303
  return arg === void 0;
304
304
  };
305
305
  var TYPES = {
@@ -462,7 +462,8 @@ var require_cjs = __commonJS({
462
462
  var string_exports = {};
463
463
  __export22(string_exports, {
464
464
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields2,
465
- stringIncludesAny: () => stringIncludesAny
465
+ stringIncludesAny: () => stringIncludesAny,
466
+ trimStringFromSymbols: () => trimStringFromSymbols
466
467
  });
467
468
  module22.exports = __toCommonJS22(string_exports);
468
469
  var stringIncludesAny = (str, characters2) => {
@@ -473,6 +474,10 @@ var require_cjs = __commonJS({
473
474
  }
474
475
  return false;
475
476
  };
477
+ var trimStringFromSymbols = (str, characters2) => {
478
+ const pattern = new RegExp(`[${characters2.join("\\")}]`, "g");
479
+ return str.replace(pattern, "");
480
+ };
476
481
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
477
482
  var replaceLiteralsWithObjectFields2 = (str, state) => {
478
483
  if (!str.includes("{{"))
@@ -522,6 +527,7 @@ var require_cjs = __commonJS({
522
527
  clone: () => clone,
523
528
  deepClone: () => deepClone22,
524
529
  deepCloneExclude: () => deepCloneExclude,
530
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
525
531
  deepContains: () => deepContains,
526
532
  deepDestringify: () => deepDestringify,
527
533
  deepDiff: () => deepDiff2,
@@ -652,6 +658,23 @@ var require_cjs = __commonJS({
652
658
  }
653
659
  return o;
654
660
  };
661
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
662
+ const o = (0, import_types.isArray)(obj) ? [] : {};
663
+ for (const prop in obj) {
664
+ if (prop === "__proto__")
665
+ continue;
666
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
667
+ continue;
668
+ const objProp = obj[prop];
669
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
670
+ continue;
671
+ if ((0, import_types.isObjectLike)(objProp)) {
672
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
673
+ } else
674
+ o[prop] = objProp;
675
+ }
676
+ return o;
677
+ };
655
678
  var deepStringify = (obj, stringified = {}) => {
656
679
  for (const prop in obj) {
657
680
  const objProp = obj[prop];
@@ -682,7 +705,7 @@ var require_cjs = __commonJS({
682
705
  const spaces = " ".repeat(indent);
683
706
  let str = "{\n";
684
707
  for (const [key, value] of Object.entries(obj)) {
685
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
708
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
686
709
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
687
710
  str += `${spaces} ${stringedKey}: `;
688
711
  if ((0, import_types.isArray)(value)) {
@@ -1520,7 +1543,7 @@ var require_cjs = __commonJS({
1520
1543
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
1521
1544
  };
1522
1545
  var import_globals = __toESM2(require_cjs7(), 1);
1523
- var import_utils14 = __toESM2(require_cjs22(), 1);
1546
+ var import_utils15 = __toESM2(require_cjs22(), 1);
1524
1547
  var ENV = "development";
1525
1548
  var colorStringToRgbaArray = (color) => {
1526
1549
  if (color === "")
@@ -1648,11 +1671,11 @@ var require_cjs = __commonJS({
1648
1671
  return `rgba(${arr})`;
1649
1672
  };
1650
1673
  var getRgbTone = (rgb, tone) => {
1651
- if ((0, import_utils14.isString)(rgb) && rgb.includes("rgb"))
1674
+ if ((0, import_utils15.isString)(rgb) && rgb.includes("rgb"))
1652
1675
  rgb = colorStringToRgbaArray(rgb).join(", ");
1653
- if ((0, import_utils14.isString)(rgb))
1676
+ if ((0, import_utils15.isString)(rgb))
1654
1677
  rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
1655
- if ((0, import_utils14.isNumber)(tone))
1678
+ if ((0, import_utils15.isNumber)(tone))
1656
1679
  tone += "";
1657
1680
  const toHex = rgbArrayToHex(rgb);
1658
1681
  const abs2 = tone.slice(0, 1);
@@ -2676,7 +2699,7 @@ var require_cjs = __commonJS({
2676
2699
  const str = `${value.join(", ")}, ${FONT_FAMILY_TYPES2[type]}`;
2677
2700
  return { var: CSSvar, value: str, arr: value, type };
2678
2701
  };
2679
- var import_utils15 = __toESM2(require_cjs22(), 1);
2702
+ var import_utils152 = __toESM2(require_cjs22(), 1);
2680
2703
  var runThroughMedia = (FACTORY2) => {
2681
2704
  const CONFIG22 = getActiveConfig3();
2682
2705
  const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
@@ -2696,7 +2719,7 @@ var require_cjs = __commonJS({
2696
2719
  h1Matches,
2697
2720
  unit
2698
2721
  } = FACTORY2;
2699
- (0, import_utils15.merge)(mediaValue, {
2722
+ (0, import_utils152.merge)(mediaValue, {
2700
2723
  type,
2701
2724
  base,
2702
2725
  ratio,
@@ -2713,7 +2736,7 @@ var require_cjs = __commonJS({
2713
2736
  applyMediaSequenceVars(FACTORY2, prop);
2714
2737
  continue;
2715
2738
  }
2716
- (0, import_utils15.merge)(mediaValue, {
2739
+ (0, import_utils152.merge)(mediaValue, {
2717
2740
  sequence: {},
2718
2741
  scales: {},
2719
2742
  templates: {},
@@ -3502,7 +3525,7 @@ var require_types = __commonJS({
3502
3525
  isObject: () => isObject4,
3503
3526
  isObjectLike: () => isObjectLike2,
3504
3527
  isString: () => isString7,
3505
- isUndefined: () => isUndefined2
3528
+ isUndefined: () => isUndefined3
3506
3529
  });
3507
3530
  module2.exports = __toCommonJS2(types_exports);
3508
3531
  var import_node = require_node();
@@ -3526,7 +3549,7 @@ var require_types = __commonJS({
3526
3549
  var isDefined2 = (arg) => {
3527
3550
  return isObject4(arg) || isObjectLike2(arg) || isString7(arg) || isNumber(arg) || isFunction3(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
3528
3551
  };
3529
- var isUndefined2 = (arg) => {
3552
+ var isUndefined3 = (arg) => {
3530
3553
  return arg === void 0;
3531
3554
  };
3532
3555
  var TYPES = {
@@ -3902,7 +3925,7 @@ var require_object = __commonJS({
3902
3925
  if (cleanUndefined && (0, import_types.isUndefined)(objProp))
3903
3926
  continue;
3904
3927
  if ((0, import_types.isObjectLike)(objProp)) {
3905
- o[prop] = deepClone3(objProp, excludeFrom, cleanUndefined);
3928
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
3906
3929
  } else
3907
3930
  o[prop] = objProp;
3908
3931
  }
@@ -4696,12 +4719,12 @@ var require_on = __commonJS({
4696
4719
  triggerEventOnUpdate: () => triggerEventOnUpdate
4697
4720
  });
4698
4721
  module2.exports = __toCommonJS2(on_exports);
4699
- var import_utils14 = require_cjs2();
4722
+ var import_utils15 = require_cjs2();
4700
4723
  var applyEvent = (param, element, state, context, options) => {
4701
4724
  return param(element, state || element.state, context || element.context, options);
4702
4725
  };
4703
4726
  var triggerEventOn = (param, element, options) => {
4704
- if (element.on && (0, import_utils14.isFunction)(element.on[param])) {
4727
+ if (element.on && (0, import_utils15.isFunction)(element.on[param])) {
4705
4728
  const { state, context } = element;
4706
4729
  return applyEvent(element.on[param], element, state, context, options);
4707
4730
  }
@@ -4710,7 +4733,7 @@ var require_on = __commonJS({
4710
4733
  return param(updatedObj, element, state || element.state, context || element.context, options);
4711
4734
  };
4712
4735
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
4713
- if (element.on && (0, import_utils14.isFunction)(element.on[param])) {
4736
+ if (element.on && (0, import_utils15.isFunction)(element.on[param])) {
4714
4737
  const { state, context } = element;
4715
4738
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
4716
4739
  }
@@ -4721,7 +4744,7 @@ var require_on = __commonJS({
4721
4744
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
4722
4745
  continue;
4723
4746
  const appliedFunction = element.on[param];
4724
- if ((0, import_utils14.isFunction)(appliedFunction)) {
4747
+ if ((0, import_utils15.isFunction)(appliedFunction)) {
4725
4748
  node2.addEventListener(param, (event) => {
4726
4749
  const { state, context } = element;
4727
4750
  appliedFunction(event, element, state, context);
@@ -4856,10 +4879,10 @@ var require_can = __commonJS({
4856
4879
  });
4857
4880
  module2.exports = __toCommonJS2(can_exports);
4858
4881
  var import_report = require_cjs3();
4859
- var import_utils14 = require_cjs2();
4882
+ var import_utils15 = require_cjs2();
4860
4883
  var canRender = (element) => {
4861
4884
  const tag = element.tag || "div";
4862
- return (0, import_utils14.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
4885
+ return (0, import_utils15.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
4863
4886
  };
4864
4887
  }
4865
4888
  });
@@ -4925,11 +4948,11 @@ var require_methods = __commonJS({
4925
4948
  toggle: () => toggle
4926
4949
  });
4927
4950
  module2.exports = __toCommonJS2(methods_exports);
4928
- var import_utils14 = require_cjs2();
4951
+ var import_utils15 = require_cjs2();
4929
4952
  var import_ignore = require_ignore();
4930
4953
  var parse2 = function() {
4931
4954
  const state = this;
4932
- if ((0, import_utils14.isObject)(state)) {
4955
+ if ((0, import_utils15.isObject)(state)) {
4933
4956
  const obj = {};
4934
4957
  for (const param in state) {
4935
4958
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -4937,7 +4960,7 @@ var require_methods = __commonJS({
4937
4960
  }
4938
4961
  }
4939
4962
  return obj;
4940
- } else if ((0, import_utils14.isArray)(state)) {
4963
+ } else if ((0, import_utils15.isArray)(state)) {
4941
4964
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
4942
4965
  }
4943
4966
  };
@@ -4957,7 +4980,7 @@ var require_methods = __commonJS({
4957
4980
  const state = this;
4958
4981
  const element = state.__element;
4959
4982
  const stateKey = element.__ref.__state;
4960
- if ((0, import_utils14.isString)(stateKey)) {
4983
+ if ((0, import_utils15.isString)(stateKey)) {
4961
4984
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
4962
4985
  return element.state;
4963
4986
  }
@@ -4970,7 +4993,7 @@ var require_methods = __commonJS({
4970
4993
  for (const key in state.__children) {
4971
4994
  const child = state.__children[key];
4972
4995
  if (child.state) {
4973
- if ((0, import_utils14.isArray)(child.state)) {
4996
+ if ((0, import_utils15.isArray)(child.state)) {
4974
4997
  Object.defineProperty(child.state, "parent", {
4975
4998
  value: state.parent,
4976
4999
  enumerable: false,
@@ -5004,10 +5027,10 @@ var require_methods = __commonJS({
5004
5027
  };
5005
5028
  var add = function(value, options = {}) {
5006
5029
  const state = this;
5007
- if ((0, import_utils14.isArray)(state)) {
5030
+ if ((0, import_utils15.isArray)(state)) {
5008
5031
  state.push(value);
5009
5032
  state.update(state.parse(), { overwrite: "replace", ...options });
5010
- } else if ((0, import_utils14.isObject)(state)) {
5033
+ } else if ((0, import_utils15.isObject)(state)) {
5011
5034
  const key = Object.keys(state).length;
5012
5035
  state.update({ [key]: value }, options);
5013
5036
  }
@@ -5018,25 +5041,25 @@ var require_methods = __commonJS({
5018
5041
  };
5019
5042
  var remove = function(key, options = {}) {
5020
5043
  const state = this;
5021
- if ((0, import_utils14.isArray)(state))
5022
- (0, import_utils14.removeFromArray)(state, key);
5023
- if ((0, import_utils14.isObject)(state))
5024
- (0, import_utils14.removeFromObject)(state, key);
5044
+ if ((0, import_utils15.isArray)(state))
5045
+ (0, import_utils15.removeFromArray)(state, key);
5046
+ if ((0, import_utils15.isObject)(state))
5047
+ (0, import_utils15.removeFromObject)(state, key);
5025
5048
  return state.update(state.parse(), { replace: true, ...options });
5026
5049
  };
5027
5050
  var set3 = function(val, options = {}) {
5028
5051
  const state = this;
5029
- const value = (0, import_utils14.deepCloneWithExtnd)(val);
5052
+ const value = (0, import_utils15.deepCloneWithExtnd)(val);
5030
5053
  return state.clean({ preventStateUpdate: true, ...options }).update(value, { replace: true, ...options });
5031
5054
  };
5032
5055
  var reset = function(options = {}) {
5033
5056
  const state = this;
5034
- const value = (0, import_utils14.deepCloneWithExtnd)(state.parse());
5057
+ const value = (0, import_utils15.deepCloneWithExtnd)(state.parse());
5035
5058
  return state.set(value, { replace: true, ...options });
5036
5059
  };
5037
5060
  var apply = function(func, options = {}) {
5038
5061
  const state = this;
5039
- if ((0, import_utils14.isFunction)(func)) {
5062
+ if ((0, import_utils15.isFunction)(func)) {
5040
5063
  func(state);
5041
5064
  return state.update(state.parse(), { replace: true, ...options });
5042
5065
  }
@@ -5076,7 +5099,7 @@ var require_inherit = __commonJS({
5076
5099
  isState: () => isState2
5077
5100
  });
5078
5101
  module2.exports = __toCommonJS2(inherit_exports);
5079
- var import_utils14 = require_cjs2();
5102
+ var import_utils15 = require_cjs2();
5080
5103
  var import_ignore = require_ignore();
5081
5104
  var getParentStateInKey = (stateKey, parentState) => {
5082
5105
  if (!stateKey.includes("../"))
@@ -5128,11 +5151,11 @@ var require_inherit = __commonJS({
5128
5151
  var createInheritedState = (element, parent) => {
5129
5152
  const ref = element.__ref;
5130
5153
  const inheritedState = findInheritedState(element, parent);
5131
- if ((0, import_utils14.isUndefined)(inheritedState))
5154
+ if ((0, import_utils15.isUndefined)(inheritedState))
5132
5155
  return element.state;
5133
- if ((0, import_utils14.is)(inheritedState)("object", "array")) {
5134
- return (0, import_utils14.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
5135
- } else if ((0, import_utils14.is)(inheritedState)("string", "number", "boolean")) {
5156
+ if ((0, import_utils15.is)(inheritedState)("object", "array")) {
5157
+ return (0, import_utils15.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
5158
+ } else if ((0, import_utils15.is)(inheritedState)("string", "number", "boolean")) {
5136
5159
  ref.__stateType = typeof inheritedState;
5137
5160
  return { value: inheritedState };
5138
5161
  }
@@ -5141,12 +5164,12 @@ var require_inherit = __commonJS({
5141
5164
  var checkIfInherits = (element) => {
5142
5165
  const ref = element.__ref;
5143
5166
  const stateKey = ref.__state;
5144
- if (stateKey && (0, import_utils14.is)(stateKey)("number", "string", "boolean"))
5167
+ if (stateKey && (0, import_utils15.is)(stateKey)("number", "string", "boolean"))
5145
5168
  return true;
5146
5169
  return false;
5147
5170
  };
5148
5171
  var isState2 = function(state) {
5149
- if (!(0, import_utils14.isObjectLike)(state))
5172
+ if (!(0, import_utils15.isObjectLike)(state))
5150
5173
  return false;
5151
5174
  return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
5152
5175
  };
@@ -5195,7 +5218,7 @@ var require_updateState = __commonJS({
5195
5218
  var import_report = require_cjs3();
5196
5219
  var import_event = require_cjs4();
5197
5220
  var import_ignore = require_ignore();
5198
- var import_utils14 = require_cjs2();
5221
+ var import_utils15 = require_cjs2();
5199
5222
  var import_inherit = require_inherit();
5200
5223
  var STATE_UPDATE_OPTIONS = {
5201
5224
  overwrite: true,
@@ -5208,7 +5231,7 @@ var require_updateState = __commonJS({
5208
5231
  const state = this;
5209
5232
  const element = state.__element;
5210
5233
  if (!options.updateByState)
5211
- (0, import_utils14.merge)(options, STATE_UPDATE_OPTIONS);
5234
+ (0, import_utils15.merge)(options, STATE_UPDATE_OPTIONS);
5212
5235
  if (!state.__element)
5213
5236
  (0, import_report.report)("ElementOnStateIsNotDefined");
5214
5237
  if (options.preventInheritAtCurrentState === true) {
@@ -5238,10 +5261,10 @@ var require_updateState = __commonJS({
5238
5261
  const shallow = overwrite === "shallow";
5239
5262
  const merge22 = overwrite === "merge";
5240
5263
  if (merge22) {
5241
- (0, import_utils14.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
5264
+ (0, import_utils15.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
5242
5265
  return;
5243
5266
  }
5244
- const overwriteFunc = shallow ? import_utils14.overwriteShallow : import_utils14.overwriteDeep;
5267
+ const overwriteFunc = shallow ? import_utils15.overwriteShallow : import_utils15.overwriteDeep;
5245
5268
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
5246
5269
  };
5247
5270
  var hoistStateUpdate = (state, obj, options) => {
@@ -5263,7 +5286,7 @@ var require_updateState = __commonJS({
5263
5286
  const changesValue = (0, import_inherit.createChangesByKey)(stateKey, passedValue);
5264
5287
  const targetParent = findGrandParentState || parent.state;
5265
5288
  if (options.replace)
5266
- (0, import_utils14.overwriteDeep)(targetParent, changesValue || value);
5289
+ (0, import_utils15.overwriteDeep)(targetParent, changesValue || value);
5267
5290
  targetParent.update(changesValue, {
5268
5291
  execStateFunction: false,
5269
5292
  isHoisted: true,
@@ -5332,7 +5355,7 @@ var require_create = __commonJS({
5332
5355
  });
5333
5356
  module2.exports = __toCommonJS2(create_exports);
5334
5357
  var import_event = require_cjs4();
5335
- var import_utils14 = require_cjs2();
5358
+ var import_utils15 = require_cjs2();
5336
5359
  var import_ignore = require_ignore();
5337
5360
  var import_methods = require_methods();
5338
5361
  var import_updateState = require_updateState();
@@ -5346,13 +5369,13 @@ var require_create = __commonJS({
5346
5369
  if (objectizeState === false)
5347
5370
  return parent.state || {};
5348
5371
  else
5349
- element.state = (0, import_utils14.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
5372
+ element.state = (0, import_utils15.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
5350
5373
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
5351
5374
  if (whatInitReturns === false)
5352
5375
  return element.state;
5353
5376
  if ((0, import_inherit.checkIfInherits)(element)) {
5354
5377
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
5355
- element.state = (0, import_utils14.isUndefined)(inheritedState) ? {} : inheritedState;
5378
+ element.state = (0, import_utils15.isUndefined)(inheritedState) ? {} : inheritedState;
5356
5379
  }
5357
5380
  const dependentState = applyDependentState(element, element.state);
5358
5381
  if (dependentState)
@@ -5365,17 +5388,17 @@ var require_create = __commonJS({
5365
5388
  const { __ref: ref } = state;
5366
5389
  if (!ref)
5367
5390
  return;
5368
- const dependentState = (0, import_utils14.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
5391
+ const dependentState = (0, import_utils15.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
5369
5392
  const newDepends = { [element.key]: dependentState };
5370
- ref.__depends = (0, import_utils14.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
5393
+ ref.__depends = (0, import_utils15.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
5371
5394
  return dependentState;
5372
5395
  };
5373
5396
  var checkForTypes = (element) => {
5374
5397
  const { state, __ref: ref } = element;
5375
- if ((0, import_utils14.isFunction)(state)) {
5398
+ if ((0, import_utils15.isFunction)(state)) {
5376
5399
  ref.__state = state;
5377
- return (0, import_utils14.exec)(state, element);
5378
- } else if ((0, import_utils14.is)(state)("string", "number")) {
5400
+ return (0, import_utils15.exec)(state, element);
5401
+ } else if ((0, import_utils15.is)(state)("string", "number")) {
5379
5402
  ref.__state = state;
5380
5403
  return {};
5381
5404
  } else if (state === true) {
@@ -5423,7 +5446,7 @@ var require_create = __commonJS({
5423
5446
  __children: {},
5424
5447
  __root: ref.__root ? ref.__root.state : state
5425
5448
  };
5426
- if ((0, import_utils14.isArray)(state)) {
5449
+ if ((0, import_utils15.isArray)(state)) {
5427
5450
  addProtoToArray(state, proto);
5428
5451
  } else {
5429
5452
  Object.setPrototypeOf(state, proto);
@@ -5493,8 +5516,8 @@ var require_cjs6 = __commonJS({
5493
5516
  router: () => router
5494
5517
  });
5495
5518
  module2.exports = __toCommonJS2(router_exports);
5496
- var import_utils14 = require_cjs2();
5497
- var getActiveRoute = (level = 0, route = import_utils14.window.location.pathname) => {
5519
+ var import_utils15 = require_cjs2();
5520
+ var getActiveRoute = (level = 0, route = import_utils15.window.location.pathname) => {
5498
5521
  const routeArray = route.split("/");
5499
5522
  const activeRoute = routeArray[level + 1];
5500
5523
  if (activeRoute)
@@ -5508,7 +5531,7 @@ var require_cjs6 = __commonJS({
5508
5531
  initialRender: false,
5509
5532
  scrollToTop: true,
5510
5533
  scrollToNode: false,
5511
- scrollNode: import_utils14.document && import_utils14.document.documentElement,
5534
+ scrollNode: import_utils15.document && import_utils15.document.documentElement,
5512
5535
  scrollBody: false,
5513
5536
  useFragment: false,
5514
5537
  updateState: true,
@@ -5523,13 +5546,13 @@ var require_cjs6 = __commonJS({
5523
5546
  const route = getActiveRoute(options.level, pathname);
5524
5547
  const content = element.routes[route || "/"] || element.routes["/*"];
5525
5548
  const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
5526
- const hashChanged = hash2 && hash2 !== import_utils14.window.location.hash.slice(1);
5549
+ const hashChanged = hash2 && hash2 !== import_utils15.window.location.hash.slice(1);
5527
5550
  const pathChanged = pathname !== lastPathname;
5528
5551
  lastPathname = pathname;
5529
5552
  if (!content)
5530
5553
  return;
5531
5554
  if (options.pushState) {
5532
- import_utils14.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
5555
+ import_utils15.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
5533
5556
  }
5534
5557
  if (pathChanged || !hashChanged) {
5535
5558
  if (options.updateState) {
@@ -5555,7 +5578,7 @@ var require_cjs6 = __commonJS({
5555
5578
  });
5556
5579
  }
5557
5580
  if (hash2) {
5558
- const activeNode = import_utils14.document.getElementById(hash2);
5581
+ const activeNode = import_utils15.document.getElementById(hash2);
5559
5582
  if (activeNode) {
5560
5583
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
5561
5584
  scrollNode.scrollTo({
@@ -5578,7 +5601,9 @@ __export(uikit_exports, {
5578
5601
  AvatarBundle: () => AvatarBundle,
5579
5602
  AvatarChooser: () => AvatarChooser,
5580
5603
  AvatarIndicator: () => AvatarIndicator,
5604
+ B: () => B,
5581
5605
  BalanceCard: () => BalanceCard,
5606
+ Banner: () => Banner,
5582
5607
  Block: () => Block,
5583
5608
  Box: () => Box,
5584
5609
  Br: () => Br,
@@ -5611,6 +5636,7 @@ __export(uikit_exports, {
5611
5636
  Dialog: () => Dialog,
5612
5637
  DialogFooter: () => DialogFooter,
5613
5638
  Direction: () => Direction,
5639
+ DotList: () => DotList,
5614
5640
  DoubleHr: () => DoubleHr,
5615
5641
  DoubleUnitValue: () => DoubleUnitValue,
5616
5642
  DropDownButton: () => DropDownButton,
@@ -5642,6 +5668,7 @@ __export(uikit_exports, {
5642
5668
  Headline: () => Headline,
5643
5669
  Hoverable: () => Hoverable,
5644
5670
  Hr: () => Hr,
5671
+ I: () => I,
5645
5672
  Icon: () => Icon,
5646
5673
  IconCommonButton: () => IconCommonButton,
5647
5674
  IconTab: () => IconTab,
@@ -6378,6 +6405,12 @@ var Theme = {
6378
6405
  columnRule: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.columnRule) && {
6379
6406
  columnRule: deps.transformBorder(props4.columnRule)
6380
6407
  },
6408
+ filter: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.filter) && {
6409
+ filter: props4.filter
6410
+ },
6411
+ mixBlendMode: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.mixBlendMode) && {
6412
+ mixBlendMode: props4.mixBlendMode
6413
+ },
6381
6414
  appearance: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.appearance) && {
6382
6415
  appearance: props4.appearance
6383
6416
  }
@@ -8331,6 +8364,7 @@ var Shape = {
8331
8364
  };
8332
8365
 
8333
8366
  // Atoms/Text.js
8367
+ var import_utils7 = __toESM(require_cjs2());
8334
8368
  var import_scratch9 = __toESM(require_cjs());
8335
8369
  var Text = {
8336
8370
  deps: { getFontSizeByKey: import_scratch9.getFontSizeByKey, getFontFamily: import_scratch9.getFontFamily },
@@ -8344,17 +8378,18 @@ var Text = {
8344
8378
  const { props: props4, deps } = el;
8345
8379
  return props4.fontSize ? deps.getFontSizeByKey(props4.fontSize) : null;
8346
8380
  },
8347
- fontFamily: ({ props: props4, deps }) => props4.fontFamily && {
8381
+ fontFamily: ({ props: props4, deps }) => !(0, import_utils7.isUndefined)(props4.fontFamily) && {
8348
8382
  fontFamily: deps.getFontFamily(props4.fontFamily) || props4.fontFamily
8349
8383
  },
8350
- lineHeight: ({ props: props4 }) => props4.lineHeight && { lineHeight: props4.lineHeight },
8351
- // lineHeight: ({ props }) => props.lineHeight && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
8352
- textDecoration: ({ props: props4 }) => props4.textDecoration && { textDecoration: props4.textDecoration },
8353
- textTransform: ({ props: props4 }) => props4.textTransform && { textTransform: props4.textTransform },
8354
- whiteSpace: ({ props: props4 }) => props4.whiteSpace && { whiteSpace: props4.whiteSpace },
8355
- letterSpacing: ({ props: props4 }) => props4.letterSpacing && { letterSpacing: props4.letterSpacing },
8356
- textAlign: ({ props: props4 }) => props4.textAlign && { textAlign: props4.textAlign },
8357
- fontWeight: ({ props: props4 }) => props4.fontWeight && {
8384
+ lineHeight: ({ props: props4 }) => !(0, import_utils7.isUndefined)(props4.lineHeight) && { lineHeight: props4.lineHeight },
8385
+ // lineHeight: ({ props }) => !isUndefined(props.lineHeight) && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
8386
+ textDecoration: ({ props: props4 }) => !(0, import_utils7.isUndefined)(props4.textDecoration) && { textDecoration: props4.textDecoration },
8387
+ textTransform: ({ props: props4 }) => !(0, import_utils7.isUndefined)(props4.textTransform) && { textTransform: props4.textTransform },
8388
+ whiteSpace: ({ props: props4 }) => !(0, import_utils7.isUndefined)(props4.whiteSpace) && { whiteSpace: props4.whiteSpace },
8389
+ wordWrap: ({ props: props4 }) => !(0, import_utils7.isUndefined)(props4.wordWrap) && { wordWrap: props4.wordWrap },
8390
+ letterSpacing: ({ props: props4 }) => !(0, import_utils7.isUndefined)(props4.letterSpacing) && { letterSpacing: props4.letterSpacing },
8391
+ textAlign: ({ props: props4 }) => !(0, import_utils7.isUndefined)(props4.textAlign) && { textAlign: props4.textAlign },
8392
+ fontWeight: ({ props: props4 }) => !(0, import_utils7.isUndefined)(props4.fontWeight) && {
8358
8393
  fontWeight: props4.fontWeight,
8359
8394
  fontVariationSettings: '"wght" ' + props4.fontWeight
8360
8395
  }
@@ -8387,10 +8422,13 @@ var Footnote = {
8387
8422
  tag: "span",
8388
8423
  props: { fontSize: "Z" }
8389
8424
  };
8425
+ var B = { tag: "b" };
8426
+ var I = { tag: "i" };
8390
8427
 
8391
8428
  // Atoms/Transform.js
8392
8429
  var Transform = {
8393
8430
  class: {
8431
+ zoom: ({ props: props4 }) => props4.zoom && { zoom: props4.zoom },
8394
8432
  transform: ({ props: props4 }) => props4.transform && { transform: props4.transform },
8395
8433
  transformOrigin: ({ props: props4 }) => props4.transformOrigin && { transformOrigin: props4.transformOrigin }
8396
8434
  }
@@ -8405,18 +8443,18 @@ var XYZ = {
8405
8443
 
8406
8444
  // Atoms/Animation.js
8407
8445
  var import_scratch10 = __toESM(require_cjs());
8408
- var import_utils7 = __toESM(require_cjs2());
8446
+ var import_utils8 = __toESM(require_cjs2());
8409
8447
  var applyAnimationProps = (animation, element) => {
8410
8448
  const { emotion: ctxEmotion } = element.context;
8411
8449
  const { keyframes } = ctxEmotion || emotion;
8412
- if ((0, import_utils7.isObject)(animation))
8450
+ if ((0, import_utils8.isObject)(animation))
8413
8451
  return { animationName: keyframes(animation) };
8414
8452
  const { ANIMATION } = element.context && element.context.designSystem;
8415
8453
  const record = ANIMATION[animation];
8416
8454
  return keyframes(record);
8417
8455
  };
8418
8456
  var Animation = {
8419
- deps: { isObject: import_utils7.isObject, getTimingByKey: import_scratch10.getTimingByKey, getTimingFunction: import_scratch10.getTimingFunction, applyAnimationProps },
8457
+ deps: { isObject: import_utils8.isObject, getTimingByKey: import_scratch10.getTimingByKey, getTimingFunction: import_scratch10.getTimingFunction, applyAnimationProps },
8420
8458
  class: {
8421
8459
  animation: (el) => el.props.animation && {
8422
8460
  animationName: el.deps.applyAnimationProps(el.props.animation, el),
@@ -8455,7 +8493,7 @@ var Animation = {
8455
8493
  };
8456
8494
 
8457
8495
  // Box/index.js
8458
- var import_utils8 = __toESM(require_cjs2());
8496
+ var import_utils9 = __toESM(require_cjs2());
8459
8497
  var PropsCSS = {
8460
8498
  class: {
8461
8499
  style: ({ props: props4 }) => props4 && props4.style
@@ -8477,7 +8515,7 @@ var Box = {
8477
8515
  XYZ,
8478
8516
  Animation
8479
8517
  ],
8480
- deps: { isString: import_utils8.isString },
8518
+ deps: { isString: import_utils9.isString },
8481
8519
  attr: {
8482
8520
  id: ({ props: props4, deps }) => deps.isString(props4.id) && props4.id,
8483
8521
  title: ({ props: props4, deps }) => deps.isString(props4.title) && props4.title,
@@ -8498,10 +8536,10 @@ var Circle = {
8498
8536
  };
8499
8537
 
8500
8538
  // Icon/index.js
8501
- var import_utils9 = __toESM(require_cjs2());
8539
+ var import_utils10 = __toESM(require_cjs2());
8502
8540
  var Icon = {
8503
8541
  extend: Svg,
8504
- deps: { isString: import_utils9.isString },
8542
+ deps: { isString: import_utils10.isString },
8505
8543
  props: ({ key, props: props4, parent, context, deps }) => {
8506
8544
  const { ICONS, useIconSprite, verbose } = context && context.designSystem;
8507
8545
  const { toCamelCase } = context && context.utils;
@@ -8743,145 +8781,825 @@ var TitleParagraphButton = {
8743
8781
  Paragraph: {}
8744
8782
  };
8745
8783
 
8746
- // UnitValue/index.js
8747
- var UnitValue = {
8748
- extend: Flex,
8749
- props: {
8750
- color: "title",
8751
- align: "center flex-start",
8752
- gap: "V",
8753
- fontWeight: "400",
8754
- "> *": { lineHeight: "1em" }
8755
- },
8756
- Value: { props: { text: "72" } },
8757
- Unit: { props: { text: "%" } }
8758
- };
8759
- var DoubleUnitValue = {
8760
- extend: Flex,
8784
+ // List/List.js
8785
+ var List = {
8761
8786
  props: {
8762
- align: "center flex-start",
8763
- gap: "Y"
8764
- },
8765
- UnitValue: {
8766
- Value: { text: "72" },
8767
- Unit: { text: "%" }
8787
+ position: "relative",
8788
+ overflow: "hidden",
8789
+ round: "A",
8790
+ minWidth: "F1",
8791
+ theme: "dialog",
8792
+ ":before, &:after": {
8793
+ content: '""',
8794
+ position: "absolute",
8795
+ boxSize: "A2 100%",
8796
+ zIndex: "2",
8797
+ left: "0",
8798
+ pointerEvents: "none"
8799
+ },
8800
+ ":before": {
8801
+ top: "0",
8802
+ background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
8803
+ },
8804
+ ":after": {
8805
+ bottom: "0",
8806
+ background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
8807
+ }
8768
8808
  },
8769
- dot: {
8809
+ Flex: {
8770
8810
  props: {
8771
- boxSize: "W W",
8772
- round: "100%",
8773
- background: "#A3A3A8"
8811
+ flow: "column",
8812
+ maxHeight: "F+C",
8813
+ overflow: "auto",
8814
+ "::-webkit-scrollbar": { display: "none" }
8815
+ },
8816
+ childExtend: {
8817
+ props: {
8818
+ padding: "Z1 A1",
8819
+ position: "relative",
8820
+ cursor: "pointer",
8821
+ fontSize: "A1",
8822
+ color: "gray4",
8823
+ ":hover": {
8824
+ background: "gray .92 +4"
8825
+ },
8826
+ childProps: { position: "relative" }
8827
+ }
8774
8828
  }
8775
- },
8776
- UnitValue2: {
8777
- extend: UnitValue,
8778
- props: { gap: "X+W" },
8779
- Value: { text: "2" },
8780
- Unit: { text: "Second left" }
8781
8829
  }
8782
8830
  };
8783
- var UnitValueWithLabel = {
8784
- extend: DoubleUnitValue,
8785
- props: { gap: "Y2" },
8786
- UnitValue: {
8787
- flow: "row-reverse",
8788
- fontSize: "D1",
8789
- fontWeight: "700",
8790
- color: "white",
8791
- Value: { text: "12,759" },
8792
- Unit: { text: "$" }
8793
- },
8794
- dot: null,
8795
- UnitValue2: {
8796
- props: {
8797
- background: "purple",
8798
- padding: "Z",
8799
- round: "Y1",
8800
- fontSize: "Y2",
8801
- gap: "0",
8802
- color: "white"
8803
- },
8804
- Value: { text: "+8.8" },
8805
- Unit: { text: "%" }
8831
+ var ListTemplate = {
8832
+ extend: List,
8833
+ props: { maxWidth: "F" },
8834
+ Flex: {
8835
+ ...[
8836
+ { span: { text: "Item" } },
8837
+ { span: { text: "Item" } },
8838
+ { span: { text: "Item" } },
8839
+ { span: { text: "Item" } },
8840
+ { span: { text: "Item" } },
8841
+ { span: { text: "Item" } },
8842
+ { span: { text: "Item" } },
8843
+ { span: { text: "Item" } },
8844
+ { span: { text: "Item" } },
8845
+ { span: { text: "Item" } },
8846
+ { span: { text: "Item" } },
8847
+ { span: { text: "Item" } },
8848
+ { span: { text: "Item" } }
8849
+ ]
8806
8850
  }
8807
8851
  };
8808
- var UnitValueWithTitle = {
8852
+ var DotList = {
8809
8853
  extend: Flex,
8810
8854
  props: {
8811
- align: "center flex-start",
8812
- gap: "Y",
8813
- fontSize: "Z1"
8855
+ flow: "column",
8856
+ gap: "Y"
8814
8857
  },
8815
- Title: {
8816
- tag: "caption",
8858
+ childExtend: {
8859
+ extend: Flex,
8817
8860
  props: {
8818
- text: "balance :",
8819
- textTransform: "capitalize"
8861
+ align: "center flex-start",
8862
+ gap: "Z",
8863
+ ":before": {
8864
+ content: '""',
8865
+ boxSize: "W",
8866
+ background: "white",
8867
+ display: "block",
8868
+ zIndex: "20"
8869
+ }
8820
8870
  }
8821
8871
  },
8822
- UnitValue: {
8823
- textTransform: "uppercase",
8824
- gap: "Y",
8825
- color: "currentColor",
8826
- Value: { text: "0" },
8827
- Unit: { text: "bnb" }
8828
- }
8872
+ ...[{ props: { text: "Brat font" } }]
8829
8873
  };
8830
8874
 
8831
- // Link/index.js
8832
- var import_router = __toESM(require_cjs6());
8833
- var Link = {
8834
- extend: Focusable,
8835
- tag: "a",
8875
+ // List/ListWithTitle.js
8876
+ var ListWithTitle = {
8877
+ extend: Flex,
8836
8878
  props: {
8837
- aria: {},
8838
- fontWeight: "bold",
8839
- textDecoration: "none",
8840
- color: "currentColor",
8841
- draggable: false
8879
+ flow: "column",
8880
+ overflow: "hidden",
8881
+ round: "A",
8882
+ maxWidth: "F1"
8842
8883
  },
8843
- attr: {
8844
- href: (el) => {
8845
- const { context: ctx } = el;
8846
- const { exec: exec2 } = ctx.utils;
8847
- return exec2(el.props.href, el) || exec2(el.props, el).href;
8848
- },
8849
- target: ({ props: props4 }) => props4.target,
8850
- "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
8851
- draggable: ({ props: props4 }) => props4.draggable
8884
+ Title: {
8885
+ tag: "h5",
8886
+ props: {
8887
+ position: "sticky",
8888
+ top: "0",
8889
+ zIndex: "3",
8890
+ text: "Group name",
8891
+ fontSize: "Z",
8892
+ color: "gray .92 +68",
8893
+ fontWeight: "400",
8894
+ theme: "dialog",
8895
+ padding: "A"
8896
+ }
8897
+ },
8898
+ List: {
8899
+ extend: List,
8900
+ props: {
8901
+ round: "0",
8902
+ minWidth: "100%"
8903
+ // theme: 'tertiary'
8904
+ }
8852
8905
  }
8853
8906
  };
8854
- var RouterLink = {
8855
- on: {
8856
- click: (event, el) => {
8857
- const { props: props4, context: ctx } = el;
8858
- const { href } = props4;
8859
- if (!href)
8860
- return;
8861
- const { utils, snippets, routerOptions } = ctx;
8862
- const root = el.__ref.__root;
8863
- const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
8864
- const options = props4.routerOptions || routerOptions || {
8865
- scrollToOptions: { behaviour: "instant" }
8866
- };
8867
- if (href && !linkIsExternal) {
8868
- (snippets.router || utils.router || import_router.router)(href, root, {}, options);
8869
- event.preventDefault();
8870
- }
8907
+ var ListWithTitleTemplate = {
8908
+ extend: ListWithTitle,
8909
+ Title: {},
8910
+ List: {
8911
+ Flex: {
8912
+ ...[
8913
+ { span: { text: "Item" } },
8914
+ { span: { text: "Item" } },
8915
+ { span: { text: "Item" } },
8916
+ { span: { text: "Item" } },
8917
+ { span: { text: "Item" } }
8918
+ ]
8871
8919
  }
8872
8920
  }
8873
8921
  };
8874
- var RouteLink = {
8875
- extend: [Link, RouterLink]
8876
- };
8877
8922
 
8878
- // Video/index.js
8879
- var Video = {
8880
- tag: "video",
8881
- childExtend: {
8882
- tag: "source",
8883
- attr: {
8884
- src: ({ props: props4 }) => props4.src,
8923
+ // List/GroupList.js
8924
+ var GroupList = {
8925
+ extend: Flex,
8926
+ props: {
8927
+ flow: "column",
8928
+ overflow: "hidden",
8929
+ theme: "dialog",
8930
+ maxHeight: "H",
8931
+ round: "A",
8932
+ maxWidth: "G"
8933
+ },
8934
+ Header: {
8935
+ extend: Flex,
8936
+ props: {
8937
+ text: "Header",
8938
+ padding: "Z2 A",
8939
+ fontSize: "A2",
8940
+ fontWeight: "500",
8941
+ color: "white"
8942
+ }
8943
+ },
8944
+ Groups: {
8945
+ props: {
8946
+ position: "relative",
8947
+ ":before, &:after": {
8948
+ content: '""',
8949
+ position: "absolute",
8950
+ boxSize: "A2 100%",
8951
+ zIndex: "2",
8952
+ left: "0",
8953
+ pointerEvents: "none"
8954
+ },
8955
+ ":before": {
8956
+ top: "0",
8957
+ background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
8958
+ },
8959
+ ":after": {
8960
+ bottom: "0",
8961
+ background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
8962
+ }
8963
+ },
8964
+ Flex: {
8965
+ extend: Flex,
8966
+ props: {
8967
+ flow: "column",
8968
+ maxHeight: "G2",
8969
+ overflow: "auto",
8970
+ "::-webkit-scrollbar": { display: "none" }
8971
+ },
8972
+ childExtend: {
8973
+ extend: ListWithTitle,
8974
+ props: {
8975
+ round: "0",
8976
+ minWidth: "100%",
8977
+ overflow: "visible",
8978
+ background: "transparent"
8979
+ },
8980
+ Title: { props: { theme: "transparent" } },
8981
+ List: {
8982
+ props: {
8983
+ overflow: "visible",
8984
+ theme: "transparent",
8985
+ ":before": { display: "none" },
8986
+ ":after": { display: "none" }
8987
+ },
8988
+ Flex: {
8989
+ props: {
8990
+ style: { overflowY: "visible" },
8991
+ minHeight: "fit-content",
8992
+ maxHeight: "fit-content",
8993
+ childProps: {
8994
+ ":after": { background: "gray" }
8995
+ }
8996
+ }
8997
+ }
8998
+ }
8999
+ }
9000
+ }
9001
+ }
9002
+ };
9003
+ var GroupListTemplate = {
9004
+ extend: GroupList,
9005
+ Header: {},
9006
+ Groups: {
9007
+ props: {},
9008
+ Flex: {
9009
+ props: {},
9010
+ ...[
9011
+ {
9012
+ Title: null,
9013
+ List: {
9014
+ props: {},
9015
+ Flex: {
9016
+ props: {},
9017
+ ...[
9018
+ { span: { text: "Item" } },
9019
+ { span: { text: "Item" } }
9020
+ ]
9021
+ }
9022
+ }
9023
+ },
9024
+ {
9025
+ Title: {},
9026
+ List: {
9027
+ props: {},
9028
+ Flex: {
9029
+ props: {},
9030
+ ...[
9031
+ { span: { text: "Item" } },
9032
+ { span: { text: "Item" } },
9033
+ { span: { text: "Item" } }
9034
+ ]
9035
+ }
9036
+ }
9037
+ },
9038
+ {
9039
+ Title: {},
9040
+ List: {
9041
+ props: {},
9042
+ Flex: {
9043
+ props: {},
9044
+ ...[
9045
+ { span: { text: "Item" } },
9046
+ { span: { text: "Item" } },
9047
+ { span: { text: "Item" } },
9048
+ { span: { text: "Item" } },
9049
+ { span: { text: "Item" } },
9050
+ { span: { text: "Item" } },
9051
+ { span: { text: "Item" } },
9052
+ { span: { text: "Item" } },
9053
+ { span: { text: "Item" } },
9054
+ { span: { text: "Item" } },
9055
+ { span: { text: "Item" } },
9056
+ { span: { text: "Item" } },
9057
+ { span: { text: "Item" } }
9058
+ ]
9059
+ }
9060
+ }
9061
+ }
9062
+ ]
9063
+ }
9064
+ }
9065
+ };
9066
+
9067
+ // Field/CommonField.js
9068
+ var CommonField = {
9069
+ extend: Flex,
9070
+ tag: "label",
9071
+ props: {
9072
+ flow: "column",
9073
+ boxSize: "fit-content fit-content",
9074
+ gap: "Z"
9075
+ },
9076
+ Title: {
9077
+ props: {
9078
+ text: "Label",
9079
+ lineHeight: "1em",
9080
+ padding: "- - - V2",
9081
+ color: "gray4"
9082
+ }
9083
+ },
9084
+ Field: {
9085
+ tag: "div"
9086
+ },
9087
+ Hint: {
9088
+ extend: IconText,
9089
+ props: {
9090
+ color: "gray4",
9091
+ align: "center flex-start",
9092
+ text: "",
9093
+ fontSize: "Z1",
9094
+ gap: "Y",
9095
+ padding: "W - - W"
9096
+ }
9097
+ }
9098
+ };
9099
+ var CommonFieldTemplate = {
9100
+ extend: CommonField,
9101
+ Title: {},
9102
+ Field: {
9103
+ Icon: { props: { name: "info" } },
9104
+ Input: {},
9105
+ Button: { icon: "eye" }
9106
+ },
9107
+ Hint: {
9108
+ Icon: { props: { name: "info" } },
9109
+ text: "Description"
9110
+ }
9111
+ };
9112
+
9113
+ // Field/Field.js
9114
+ var Field = {
9115
+ tag: "label",
9116
+ extend: [Focusable, IconText],
9117
+ props: {
9118
+ minWidth: "F2+Z2",
9119
+ maxWidth: "F2+Z2",
9120
+ minHeight: "C+V",
9121
+ align: "center flex-start",
9122
+ gap: "Y",
9123
+ boxSizing: "border-box",
9124
+ padding: "- A - Z2",
9125
+ round: "Z1",
9126
+ border: "solid, gray .45 +80",
9127
+ borderWidth: ".8px",
9128
+ position: "relative",
9129
+ ":focus-within": { outline: "1px solid #0474F2" },
9130
+ Icon: {
9131
+ fontSize: "Z2"
9132
+ },
9133
+ Button: {
9134
+ padding: "0",
9135
+ background: "transparent",
9136
+ margin: "- - - auto",
9137
+ fontSize: "Z2"
9138
+ }
9139
+ },
9140
+ Input: {
9141
+ props: {
9142
+ fontSize: "Z",
9143
+ fontWeight: "400",
9144
+ padding: "0",
9145
+ background: "rgba(0, 0, 0, 0)",
9146
+ round: "0",
9147
+ color: "title",
9148
+ fontFamily: "avenir",
9149
+ placeholder: "Placeholder",
9150
+ flex: "1",
9151
+ minHeight: "100%",
9152
+ outline: "none !important",
9153
+ "::placeholder": { color: "gray 1 +64" }
9154
+ }
9155
+ }
9156
+ };
9157
+ var FieldTemplate = {
9158
+ extend: Field,
9159
+ Icon: { props: { name: "info" } },
9160
+ Input: {},
9161
+ Button: { Icon: { name: "eye" } }
9162
+ };
9163
+ var FieldWithTitle = {
9164
+ extend: Flex,
9165
+ props: {
9166
+ flow: "column",
9167
+ boxSize: "fit-content fit-content",
9168
+ gap: "Y1",
9169
+ // border: '.05px solid red',
9170
+ Hint: {
9171
+ color: "gray 1 +64",
9172
+ align: "center flex-start",
9173
+ fontSize: "Y",
9174
+ gap: "Y",
9175
+ padding: "W Y2 - Y2"
9176
+ }
9177
+ },
9178
+ Title: {
9179
+ props: {
9180
+ text: "Label",
9181
+ fontSize: "Z",
9182
+ lineHeight: "1em",
9183
+ color: "title",
9184
+ fontWeight: "400",
9185
+ padding: "- Y1"
9186
+ }
9187
+ },
9188
+ Field: {
9189
+ extend: Field
9190
+ }
9191
+ };
9192
+ var FieldWithTitleTemplate = {
9193
+ extend: FieldWithTitle,
9194
+ Title: {},
9195
+ Field: {
9196
+ Icon: { props: { name: "info" } },
9197
+ Input: {},
9198
+ Button: { icon: "eye" }
9199
+ },
9200
+ Hint: {
9201
+ extend: IconText,
9202
+ props: {
9203
+ icon: "info",
9204
+ text: "Description"
9205
+ }
9206
+ }
9207
+ };
9208
+
9209
+ // Field/Search.js
9210
+ var Search = {
9211
+ extend: Field,
9212
+ props: {
9213
+ maxWidth: "G3",
9214
+ gap: "Z",
9215
+ theme: "dialog",
9216
+ padding: "Z+V Z+V2",
9217
+ Icon: {
9218
+ name: "search",
9219
+ fontSize: "C",
9220
+ color: "title",
9221
+ margin: "V - - -"
9222
+ }
9223
+ },
9224
+ Icon: {},
9225
+ Input: {
9226
+ props: {
9227
+ placeholder: "type a command or search",
9228
+ fontSize: "Z",
9229
+ "::placeholder": { color: "gray 1 +68" }
9230
+ }
9231
+ }
9232
+ };
9233
+ var SearchWithButton = {
9234
+ extend: Search,
9235
+ props: {
9236
+ Button: { fontSize: "B" }
9237
+ },
9238
+ Icon: {},
9239
+ Input: { props: { ":focus ~ button": { opacity: "1" } } },
9240
+ Button: {
9241
+ props: {
9242
+ opacity: "0",
9243
+ icon: "x"
9244
+ },
9245
+ Icon: {
9246
+ on: {
9247
+ click: (e, el) => {
9248
+ el.parent.parent.Input.node.value = "";
9249
+ }
9250
+ }
9251
+ }
9252
+ }
9253
+ };
9254
+ var SearchWithDropDownButton = {
9255
+ extend: SearchWithButton,
9256
+ props: {
9257
+ theme: "tertiary",
9258
+ maxWidth: "G3+C",
9259
+ padding: "0 A 0 0",
9260
+ gap: "Z"
9261
+ },
9262
+ DropDownButton: {},
9263
+ Input: { props: { padding: "- - - X" } },
9264
+ Button: {},
9265
+ Icon: {}
9266
+ };
9267
+
9268
+ // Field/TextAreaField.js
9269
+ var TextAreaField = {
9270
+ tag: "label",
9271
+ extend: Focusable,
9272
+ props: {
9273
+ boxSize: "fit-content",
9274
+ border: "solid, gray .45 +80",
9275
+ borderWidth: ".8px",
9276
+ overflow: "hidden",
9277
+ round: "Z1",
9278
+ ":focus-within": { outline: "1px solid #0474F2" }
9279
+ },
9280
+ TextArea: {
9281
+ tag: "textarea",
9282
+ attr: { placeholder: "Leave us a message..." },
9283
+ props: {
9284
+ fontSize: "Z",
9285
+ minWidth: "H",
9286
+ minHeight: "D2+Y1",
9287
+ padding: "A",
9288
+ fontFamily: "avenir",
9289
+ theme: "transparent",
9290
+ border: "none",
9291
+ outline: "none",
9292
+ style: { resize: "none" },
9293
+ "::placeholder": { color: "gray 1 +64" }
9294
+ }
9295
+ }
9296
+ };
9297
+
9298
+ // List/GroupListWithSearch.js
9299
+ var GroupListWithSearch = {
9300
+ extend: GroupList,
9301
+ props: {
9302
+ maxWidth: "G1"
9303
+ },
9304
+ Header: {},
9305
+ SearchContainer: {
9306
+ extend: Flex,
9307
+ props: {
9308
+ padding: "0 Z1 Y2 Z1",
9309
+ background: "transparent"
9310
+ },
9311
+ Search: {
9312
+ extend: Search,
9313
+ props: {
9314
+ maxWidth: "100%",
9315
+ minWidth: "100%",
9316
+ minHeight: "C",
9317
+ theme: "transparent",
9318
+ round: "Z1"
9319
+ },
9320
+ Icon: {
9321
+ props: {
9322
+ fontSize: "C",
9323
+ color: "title"
9324
+ }
9325
+ },
9326
+ Input: { fontSize: "Z" }
9327
+ }
9328
+ },
9329
+ Groups: {
9330
+ Flex: {
9331
+ childExtend: {
9332
+ Title: {},
9333
+ List: {
9334
+ Flex: {
9335
+ childExtend: {
9336
+ props: {}
9337
+ }
9338
+ }
9339
+ }
9340
+ }
9341
+ }
9342
+ }
9343
+ };
9344
+ var GroupListWithSearchTemplate = {
9345
+ extend: GroupListWithSearch,
9346
+ Header: {},
9347
+ SearchContainer: {},
9348
+ Groups: {
9349
+ Flex: {
9350
+ ...[
9351
+ {
9352
+ Title: null,
9353
+ List: {
9354
+ Flex: {
9355
+ ...[
9356
+ { span: { text: "Item" } },
9357
+ { span: { text: "Item" } }
9358
+ ]
9359
+ }
9360
+ }
9361
+ },
9362
+ {
9363
+ Title: {},
9364
+ List: {
9365
+ Flex: {
9366
+ ...[
9367
+ { span: { text: "Item" } },
9368
+ { span: { text: "Item" } },
9369
+ { span: { text: "Item" } }
9370
+ ]
9371
+ }
9372
+ }
9373
+ },
9374
+ {
9375
+ Title: {},
9376
+ List: {
9377
+ Flex: {
9378
+ ...[
9379
+ { span: { text: "Item" } },
9380
+ { span: { text: "Item" } },
9381
+ { span: { text: "Item" } },
9382
+ { span: { text: "Item" } },
9383
+ { span: { text: "Item" } }
9384
+ ]
9385
+ }
9386
+ }
9387
+ }
9388
+ ]
9389
+ }
9390
+ }
9391
+ };
9392
+
9393
+ // Banner/index.js
9394
+ var Banner = {
9395
+ extend: TitleParagraph,
9396
+ props: {
9397
+ height: "fit-content",
9398
+ padding: "D1 C2 C2 C1",
9399
+ width: "100%",
9400
+ theme: "dialog",
9401
+ round: "0 0 Z 0"
9402
+ },
9403
+ Title: {
9404
+ tag: "h1",
9405
+ props: {
9406
+ textTransform: "capitalize",
9407
+ fontSize: `${120 / 16}em`,
9408
+ fontWeight: "900",
9409
+ padding: "- - X2 -"
9410
+ }
9411
+ },
9412
+ Paragraph: {
9413
+ props: {
9414
+ justifyContent: "space-between",
9415
+ // gap: 'I',
9416
+ padding: "B1 - - -",
9417
+ position: "relative",
9418
+ ":before": {
9419
+ content: '""',
9420
+ position: "absolute",
9421
+ boxSize: "V 100%",
9422
+ background: "white .1",
9423
+ top: "0",
9424
+ round: "C"
9425
+ }
9426
+ },
9427
+ list: {
9428
+ extend: TitleParagraph,
9429
+ props: {
9430
+ gap: "Z2",
9431
+ margin: "0 - - Y",
9432
+ Paragraph: {
9433
+ childProps: {
9434
+ fontSize: "Z1"
9435
+ }
9436
+ }
9437
+ },
9438
+ Title: {
9439
+ tag: "h6",
9440
+ props: {
9441
+ fontSize: "B",
9442
+ color: "white .85"
9443
+ }
9444
+ },
9445
+ Paragraph: {
9446
+ ...DotList,
9447
+ ...[{}]
9448
+ }
9449
+ },
9450
+ P: {
9451
+ text: "Our typography system ranges from impactful brand type used in marketing applications to functional type used in product. They come together to create a cohesive approach to how we communicate as a brand.",
9452
+ maxWidth: "G3+C",
9453
+ margin: "0",
9454
+ letterSpacing: ".1px",
9455
+ padding: "B - - Y",
9456
+ fontSize: "Z2",
9457
+ color: "white .5",
9458
+ lineHeight: "1.6em"
9459
+ // fontWeight: '100'
9460
+ }
9461
+ }
9462
+ };
9463
+
9464
+ // UnitValue/index.js
9465
+ var UnitValue = {
9466
+ extend: Flex,
9467
+ props: {
9468
+ color: "title",
9469
+ align: "center flex-start",
9470
+ gap: "V",
9471
+ fontWeight: "400",
9472
+ "> *": { lineHeight: "1em" }
9473
+ },
9474
+ Value: { props: { text: "72" } },
9475
+ Unit: { props: { text: "%" } }
9476
+ };
9477
+ var DoubleUnitValue = {
9478
+ extend: Flex,
9479
+ props: {
9480
+ align: "center flex-start",
9481
+ gap: "Y"
9482
+ },
9483
+ UnitValue: {
9484
+ Value: { text: "72" },
9485
+ Unit: { text: "%" }
9486
+ },
9487
+ dot: {
9488
+ props: {
9489
+ boxSize: "W W",
9490
+ round: "100%",
9491
+ background: "#A3A3A8"
9492
+ }
9493
+ },
9494
+ UnitValue2: {
9495
+ extend: UnitValue,
9496
+ props: { gap: "X+W" },
9497
+ Value: { text: "2" },
9498
+ Unit: { text: "Second left" }
9499
+ }
9500
+ };
9501
+ var UnitValueWithLabel = {
9502
+ extend: DoubleUnitValue,
9503
+ props: { gap: "Y2" },
9504
+ UnitValue: {
9505
+ flow: "row-reverse",
9506
+ fontSize: "D1",
9507
+ fontWeight: "700",
9508
+ color: "white",
9509
+ Value: { text: "12,759" },
9510
+ Unit: { text: "$" }
9511
+ },
9512
+ dot: null,
9513
+ UnitValue2: {
9514
+ props: {
9515
+ background: "purple",
9516
+ padding: "Z",
9517
+ round: "Y1",
9518
+ fontSize: "Y2",
9519
+ gap: "0",
9520
+ color: "white"
9521
+ },
9522
+ Value: { text: "+8.8" },
9523
+ Unit: { text: "%" }
9524
+ }
9525
+ };
9526
+ var UnitValueWithTitle = {
9527
+ extend: Flex,
9528
+ props: {
9529
+ align: "center flex-start",
9530
+ gap: "Y",
9531
+ fontSize: "Z1"
9532
+ },
9533
+ Title: {
9534
+ tag: "caption",
9535
+ props: {
9536
+ text: "balance :",
9537
+ textTransform: "capitalize"
9538
+ }
9539
+ },
9540
+ UnitValue: {
9541
+ textTransform: "uppercase",
9542
+ gap: "Y",
9543
+ color: "currentColor",
9544
+ Value: { text: "0" },
9545
+ Unit: { text: "bnb" }
9546
+ }
9547
+ };
9548
+
9549
+ // Link/index.js
9550
+ var import_router = __toESM(require_cjs6());
9551
+ var Link = {
9552
+ extend: Focusable,
9553
+ tag: "a",
9554
+ props: {
9555
+ aria: {},
9556
+ fontWeight: "bold",
9557
+ textDecoration: "none",
9558
+ color: "currentColor",
9559
+ draggable: false
9560
+ },
9561
+ attr: {
9562
+ href: (el) => {
9563
+ const { context: ctx } = el;
9564
+ const { exec: exec2 } = ctx.utils;
9565
+ return exec2(el.props.href, el) || exec2(el.props, el).href;
9566
+ },
9567
+ target: ({ props: props4 }) => props4.target,
9568
+ "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
9569
+ draggable: ({ props: props4 }) => props4.draggable
9570
+ }
9571
+ };
9572
+ var RouterLink = {
9573
+ on: {
9574
+ click: (event, el) => {
9575
+ const { props: props4, context: ctx } = el;
9576
+ const { href } = props4;
9577
+ if (!href)
9578
+ return;
9579
+ const { utils, snippets, routerOptions } = ctx;
9580
+ const root = el.__ref.__root;
9581
+ const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
9582
+ const options = props4.routerOptions || routerOptions || {
9583
+ scrollToOptions: { behaviour: "instant" }
9584
+ };
9585
+ if (href && !linkIsExternal) {
9586
+ (snippets.router || utils.router || import_router.router)(href, root, {}, options);
9587
+ event.preventDefault();
9588
+ }
9589
+ }
9590
+ }
9591
+ };
9592
+ var RouteLink = {
9593
+ extend: [Link, RouterLink]
9594
+ };
9595
+
9596
+ // Video/index.js
9597
+ var Video = {
9598
+ tag: "video",
9599
+ childExtend: {
9600
+ tag: "source",
9601
+ attr: {
9602
+ src: ({ props: props4 }) => props4.src,
8885
9603
  controls: ({ props: props4 }) => props4.controls
8886
9604
  }
8887
9605
  },
@@ -8924,11 +9642,11 @@ var DoubleHr = {
8924
9642
  };
8925
9643
 
8926
9644
  // Input/Input.js
8927
- var import_utils10 = __toESM(require_cjs2());
9645
+ var import_utils11 = __toESM(require_cjs2());
8928
9646
  var Input = {
8929
9647
  tag: "input",
8930
9648
  extend: [Focusable],
8931
- deps: { isString: import_utils10.isString, replaceLiteralsWithObjectFields: import_utils10.replaceLiteralsWithObjectFields },
9649
+ deps: { isString: import_utils11.isString, replaceLiteralsWithObjectFields: import_utils11.replaceLiteralsWithObjectFields },
8932
9650
  props: {
8933
9651
  border: "none",
8934
9652
  type: "input",
@@ -9171,258 +9889,27 @@ var Select = {
9171
9889
  tag: "select",
9172
9890
  props: {
9173
9891
  fontSize: "A",
9174
- border: "none",
9175
- boxSizing: "border-box",
9176
- theme: "field",
9177
- cursor: "pointer"
9178
- },
9179
- childExtend: {
9180
- tag: "option",
9181
- props: {
9182
- value: "",
9183
- selected: "",
9184
- disabled: ""
9185
- },
9186
- attr: {
9187
- value: ({ props: props4 }) => props4.value,
9188
- selected: ({ props: props4 }) => props4.selected,
9189
- disabled: ({ props: props4 }) => props4.disabled
9190
- }
9191
- },
9192
- attr: {
9193
- name: ({ props: props4 }) => props4.name,
9194
- disabled: ({ props: props4 }) => props4.disabled
9195
- }
9196
- };
9197
-
9198
- // Field/CommonField.js
9199
- var CommonField = {
9200
- extend: Flex,
9201
- tag: "label",
9202
- props: {
9203
- flow: "column",
9204
- boxSize: "fit-content fit-content",
9205
- gap: "Z"
9206
- },
9207
- Title: {
9208
- props: {
9209
- text: "Label",
9210
- lineHeight: "1em",
9211
- padding: "- - - V2",
9212
- color: "gray4"
9213
- }
9214
- },
9215
- Field: {
9216
- tag: "div"
9217
- },
9218
- Hint: {
9219
- extend: IconText,
9220
- props: {
9221
- color: "gray4",
9222
- align: "center flex-start",
9223
- text: "",
9224
- fontSize: "Z1",
9225
- gap: "Y",
9226
- padding: "W - - W"
9227
- }
9228
- }
9229
- };
9230
- var CommonFieldTemplate = {
9231
- extend: CommonField,
9232
- Title: {},
9233
- Field: {
9234
- Icon: { props: { name: "info" } },
9235
- Input: {},
9236
- Button: { icon: "eye" }
9237
- },
9238
- Hint: {
9239
- Icon: { props: { name: "info" } },
9240
- text: "Description"
9241
- }
9242
- };
9243
-
9244
- // Field/Field.js
9245
- var Field = {
9246
- tag: "label",
9247
- extend: [Focusable, IconText],
9248
- props: {
9249
- minWidth: "F2+Z2",
9250
- maxWidth: "F2+Z2",
9251
- minHeight: "C+V",
9252
- align: "center flex-start",
9253
- gap: "Y",
9254
- boxSizing: "border-box",
9255
- padding: "- A - Z2",
9256
- round: "Z1",
9257
- border: "solid, gray .45 +80",
9258
- borderWidth: ".8px",
9259
- position: "relative",
9260
- ":focus-within": { outline: "1px solid #0474F2" },
9261
- Icon: {
9262
- fontSize: "Z2"
9263
- },
9264
- Button: {
9265
- padding: "0",
9266
- background: "transparent",
9267
- margin: "- - - auto",
9268
- fontSize: "Z2"
9269
- }
9270
- },
9271
- Input: {
9272
- props: {
9273
- fontSize: "Z",
9274
- fontWeight: "400",
9275
- padding: "0",
9276
- background: "rgba(0, 0, 0, 0)",
9277
- round: "0",
9278
- color: "title",
9279
- fontFamily: "avenir",
9280
- placeholder: "Placeholder",
9281
- flex: "1",
9282
- minHeight: "100%",
9283
- outline: "none !important",
9284
- "::placeholder": { color: "gray 1 +64" }
9285
- }
9286
- }
9287
- };
9288
- var FieldTemplate = {
9289
- extend: Field,
9290
- Icon: { props: { name: "info" } },
9291
- Input: {},
9292
- Button: { Icon: { name: "eye" } }
9293
- };
9294
- var FieldWithTitle = {
9295
- extend: Flex,
9296
- props: {
9297
- flow: "column",
9298
- boxSize: "fit-content fit-content",
9299
- gap: "Y1",
9300
- // border: '.05px solid red',
9301
- Hint: {
9302
- color: "gray 1 +64",
9303
- align: "center flex-start",
9304
- fontSize: "Y",
9305
- gap: "Y",
9306
- padding: "W Y2 - Y2"
9307
- }
9308
- },
9309
- Title: {
9310
- props: {
9311
- text: "Label",
9312
- fontSize: "Z",
9313
- lineHeight: "1em",
9314
- color: "title",
9315
- fontWeight: "400",
9316
- padding: "- Y1"
9317
- }
9318
- },
9319
- Field: {
9320
- extend: Field
9321
- }
9322
- };
9323
- var FieldWithTitleTemplate = {
9324
- extend: FieldWithTitle,
9325
- Title: {},
9326
- Field: {
9327
- Icon: { props: { name: "info" } },
9328
- Input: {},
9329
- Button: { icon: "eye" }
9330
- },
9331
- Hint: {
9332
- extend: IconText,
9333
- props: {
9334
- icon: "info",
9335
- text: "Description"
9336
- }
9337
- }
9338
- };
9339
-
9340
- // Field/Search.js
9341
- var Search = {
9342
- extend: Field,
9343
- props: {
9344
- maxWidth: "G3",
9345
- gap: "Z",
9346
- theme: "dialog",
9347
- padding: "Z+V Z+V2",
9348
- Icon: {
9349
- name: "search",
9350
- fontSize: "C",
9351
- color: "title",
9352
- margin: "V - - -"
9353
- }
9354
- },
9355
- Icon: {},
9356
- Input: {
9357
- props: {
9358
- placeholder: "type a command or search",
9359
- fontSize: "Z",
9360
- "::placeholder": { color: "gray 1 +68" }
9361
- }
9362
- }
9363
- };
9364
- var SearchWithButton = {
9365
- extend: Search,
9366
- props: {
9367
- Button: { fontSize: "B" }
9368
- },
9369
- Icon: {},
9370
- Input: { props: { ":focus ~ button": { opacity: "1" } } },
9371
- Button: {
9372
- props: {
9373
- opacity: "0",
9374
- icon: "x"
9375
- },
9376
- Icon: {
9377
- on: {
9378
- click: (e, el) => {
9379
- el.parent.parent.Input.node.value = "";
9380
- }
9381
- }
9382
- }
9383
- }
9384
- };
9385
- var SearchWithDropDownButton = {
9386
- extend: SearchWithButton,
9387
- props: {
9388
- theme: "tertiary",
9389
- maxWidth: "G3+C",
9390
- padding: "0 A 0 0",
9391
- gap: "Z"
9392
- },
9393
- DropDownButton: {},
9394
- Input: { props: { padding: "- - - X" } },
9395
- Button: {},
9396
- Icon: {}
9397
- };
9398
-
9399
- // Field/TextAreaField.js
9400
- var TextAreaField = {
9401
- tag: "label",
9402
- extend: Focusable,
9403
- props: {
9404
- boxSize: "fit-content",
9405
- border: "solid, gray .45 +80",
9406
- borderWidth: ".8px",
9407
- overflow: "hidden",
9408
- round: "Z1",
9409
- ":focus-within": { outline: "1px solid #0474F2" }
9892
+ border: "none",
9893
+ boxSizing: "border-box",
9894
+ theme: "field",
9895
+ cursor: "pointer"
9410
9896
  },
9411
- TextArea: {
9412
- tag: "textarea",
9413
- attr: { placeholder: "Leave us a message..." },
9897
+ childExtend: {
9898
+ tag: "option",
9414
9899
  props: {
9415
- fontSize: "Z",
9416
- minWidth: "H",
9417
- minHeight: "D2+Y1",
9418
- padding: "A",
9419
- fontFamily: "avenir",
9420
- theme: "transparent",
9421
- border: "none",
9422
- outline: "none",
9423
- style: { resize: "none" },
9424
- "::placeholder": { color: "gray 1 +64" }
9900
+ value: "",
9901
+ selected: "",
9902
+ disabled: ""
9903
+ },
9904
+ attr: {
9905
+ value: ({ props: props4 }) => props4.value,
9906
+ selected: ({ props: props4 }) => props4.selected,
9907
+ disabled: ({ props: props4 }) => props4.disabled
9425
9908
  }
9909
+ },
9910
+ attr: {
9911
+ name: ({ props: props4 }) => props4.name,
9912
+ disabled: ({ props: props4 }) => props4.disabled
9426
9913
  }
9427
9914
  };
9428
9915
 
@@ -9699,7 +10186,7 @@ var ProgressCircleWithSideUnitValue = {
9699
10186
  };
9700
10187
 
9701
10188
  // Range/index.js
9702
- var import_utils11 = __toESM(require_cjs2());
10189
+ var import_utils12 = __toESM(require_cjs2());
9703
10190
  var import_scratch11 = __toESM(require_cjs());
9704
10191
  var props = {
9705
10192
  appearance: "none",
@@ -9767,7 +10254,7 @@ var Range = {
9767
10254
  };
9768
10255
  var returnPropertyValue = (el, property, def) => {
9769
10256
  const val = el.props && el.props[property];
9770
- const r = (0, import_utils11.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
10257
+ const r = (0, import_utils12.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
9771
10258
  return r + "";
9772
10259
  };
9773
10260
  var RangeWithButtons = {
@@ -9777,7 +10264,7 @@ var RangeWithButtons = {
9777
10264
  on: {
9778
10265
  click: (ev, el, s) => {
9779
10266
  const parentProps = el.parent.props;
9780
- if ((0, import_utils11.isFunction)(parentProps.onDecrease)) {
10267
+ if ((0, import_utils12.isFunction)(parentProps.onDecrease)) {
9781
10268
  parentProps.onDecrease(ev, el.parent, s);
9782
10269
  } else {
9783
10270
  const value = parseFloat(s.value);
@@ -9809,7 +10296,7 @@ var RangeWithButtons = {
9809
10296
  on: {
9810
10297
  input: (ev, el, s) => {
9811
10298
  const parentProps = el.parent.props;
9812
- if ((0, import_utils11.isFunction)(parentProps.onInput)) {
10299
+ if ((0, import_utils12.isFunction)(parentProps.onInput)) {
9813
10300
  parentProps.onInput(ev, el, s);
9814
10301
  } else {
9815
10302
  s.update({ value: parseFloat(el.node.value) });
@@ -9817,7 +10304,7 @@ var RangeWithButtons = {
9817
10304
  },
9818
10305
  change: (ev, el, s) => {
9819
10306
  const parentProps = el.parent.props;
9820
- if ((0, import_utils11.isFunction)(parentProps.onChange)) {
10307
+ if ((0, import_utils12.isFunction)(parentProps.onChange)) {
9821
10308
  parentProps.onChange(ev, el, s);
9822
10309
  } else {
9823
10310
  s.update({ value: parseFloat(el.node.value) });
@@ -9831,7 +10318,7 @@ var RangeWithButtons = {
9831
10318
  on: {
9832
10319
  click: (ev, el, s) => {
9833
10320
  const parentProps = el.parent.props;
9834
- if ((0, import_utils11.isFunction)(parentProps.onIncrease)) {
10321
+ if ((0, import_utils12.isFunction)(parentProps.onIncrease)) {
9835
10322
  parentProps.onIncrease(ev, el.parent, s);
9836
10323
  } else {
9837
10324
  const value = parseFloat(s.value);
@@ -9867,7 +10354,7 @@ var style_default = {
9867
10354
 
9868
10355
  // Slider/index.js
9869
10356
  var import_scratch12 = __toESM(require_cjs());
9870
- var import_utils12 = __toESM(require_cjs2());
10357
+ var import_utils13 = __toESM(require_cjs2());
9871
10358
  (0, import_scratch12.set)({
9872
10359
  theme: {
9873
10360
  sliderThumb: {
@@ -9899,7 +10386,7 @@ var RangeSlider = {
9899
10386
  };
9900
10387
  var listenProp = (el, prop, def) => {
9901
10388
  const val = el && el.props && el.props[prop];
9902
- const r = ((0, import_utils12.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
10389
+ const r = ((0, import_utils13.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
9903
10390
  return r;
9904
10391
  };
9905
10392
  var Slider = {
@@ -9910,10 +10397,10 @@ var Slider = {
9910
10397
  },
9911
10398
  on: {
9912
10399
  click: (ev, el, s) => {
9913
- el.props && (0, import_utils12.isFunction)(el.props.click) && el.props.click(ev, el, s);
10400
+ el.props && (0, import_utils13.isFunction)(el.props.click) && el.props.click(ev, el, s);
9914
10401
  const input = el.parent.input;
9915
10402
  const props4 = input.props;
9916
- const value = (0, import_utils12.isFunction)(props4.value) ? props4.value() : props4.value;
10403
+ const value = (0, import_utils13.isFunction)(props4.value) ? props4.value() : props4.value;
9917
10404
  input.node.value = value;
9918
10405
  }
9919
10406
  }
@@ -9936,8 +10423,8 @@ var Slider = {
9936
10423
  step: (el, s) => listenProp(el, "step", 1)
9937
10424
  },
9938
10425
  on: {
9939
- input: (ev, el, s) => el.props && (0, import_utils12.isFunction)(el.props.input) && el.props.input(ev, el, s),
9940
- change: (ev, el, s) => el.props && (0, import_utils12.isFunction)(el.props.change) && el.props.change(ev, el, s)
10426
+ input: (ev, el, s) => el.props && (0, import_utils13.isFunction)(el.props.input) && el.props.input(ev, el, s),
10427
+ change: (ev, el, s) => el.props && (0, import_utils13.isFunction)(el.props.change) && el.props.change(ev, el, s)
9941
10428
  }
9942
10429
  },
9943
10430
  button1: {
@@ -9947,10 +10434,10 @@ var Slider = {
9947
10434
  },
9948
10435
  on: {
9949
10436
  click: (ev, el, s) => {
9950
- el.props && (0, import_utils12.isFunction)(el.props.click) && el.props.click(ev, el, s);
10437
+ el.props && (0, import_utils13.isFunction)(el.props.click) && el.props.click(ev, el, s);
9951
10438
  const input = el.parent.input;
9952
10439
  const props4 = input.props;
9953
- const value = (0, import_utils12.isFunction)(props4.value) ? props4.value() : props4.value;
10440
+ const value = (0, import_utils13.isFunction)(props4.value) ? props4.value() : props4.value;
9954
10441
  input.node.value = value;
9955
10442
  }
9956
10443
  }
@@ -10167,7 +10654,7 @@ var NotificationIndicator = {
10167
10654
  };
10168
10655
 
10169
10656
  // Tooltip/index.js
10170
- var import_utils13 = __toESM(require_cjs2());
10657
+ var import_utils14 = __toESM(require_cjs2());
10171
10658
  var Tooltip = {
10172
10659
  extend: Flex,
10173
10660
  props: {
@@ -10186,7 +10673,7 @@ var Tooltip = {
10186
10673
  },
10187
10674
  attr: { tooltip: true },
10188
10675
  Title: {
10189
- if: ({ parent, props: props4 }) => (0, import_utils13.isDefined)(parent.props.title) || props4.text,
10676
+ if: ({ parent, props: props4 }) => (0, import_utils14.isDefined)(parent.props.title) || props4.text,
10190
10677
  props: ({ parent }) => ({
10191
10678
  width: "fit-content",
10192
10679
  fontWeight: 500,
@@ -10195,7 +10682,7 @@ var Tooltip = {
10195
10682
  })
10196
10683
  },
10197
10684
  P: {
10198
- if: ({ parent, props: props4 }) => (0, import_utils13.isDefined)(parent.props.description) || props4.text,
10685
+ if: ({ parent, props: props4 }) => (0, import_utils14.isDefined)(parent.props.description) || props4.text,
10199
10686
  props: ({ parent }) => ({
10200
10687
  width: "fit-content",
10201
10688
  fontSize: "Z2",
@@ -10694,444 +11181,88 @@ var CompleteProcess = {
10694
11181
  }
10695
11182
  }
10696
11183
  };
10697
-
10698
- // Modal/Message.js
10699
- var Message = {
10700
- extend: Modal,
10701
- props: {
10702
- maxWidth: "G3",
10703
- padding: "Z1 Z2 Z2 Z2"
10704
- },
10705
- Header: {
10706
- Title: {
10707
- caption: {
10708
- props: { text: "Message", fontSize: "C2" }
10709
- },
10710
- x: {
10711
- props: { padding: "V2" }
10712
- }
10713
- },
10714
- Paragraph: {
10715
- props: {
10716
- 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."
10717
- }
10718
- }
10719
- }
10720
- };
10721
-
10722
- // Modal/Pricing.js
10723
- var Pricing = {
10724
- extend: Modal,
10725
- props: {
10726
- background: "gray3",
10727
- gap: "B",
10728
- minWidth: "G+B",
10729
- maxWidth: "G+B",
10730
- padding: "A1"
10731
- },
10732
- Header: null,
10733
- Content: {
10734
- props: {
10735
- flow: "column",
10736
- gap: "A1"
10737
- },
10738
- childExtend: {
10739
- extend: UnitValue,
10740
- props: {
10741
- justifyContent: "space-between",
10742
- textTransform: "capitalize",
10743
- color: "white"
10744
- }
10745
- },
10746
- ...[
10747
- {
10748
- Unit: { props: { text: "subtotal" } },
10749
- Value: { props: { text: "$5,499.00" } }
10750
- },
10751
- {
10752
- Unit: { props: { text: "Shipping" } },
10753
- Value: { props: { text: "Free" } }
10754
- },
10755
- {
10756
- Unit: { props: { text: "Savings" } },
10757
- Value: { props: { text: "$1,600.00" } }
10758
- }
10759
- ]
10760
- },
10761
- Footer: {
10762
- props: {
10763
- margin: "- -X -X"
10764
- },
10765
- CommonButton: {
10766
- flex: "1",
10767
- padding: "Z2 -",
10768
- round: "Y2",
10769
- theme: "secondary",
10770
- margin: "- -X -X",
10771
- Caption: {
10772
- text: "Add promo code",
10773
- fontSize: "Z",
10774
- fontWeight: "500"
10775
- }
10776
- }
10777
- }
10778
- };
10779
-
10780
- // List/List.js
10781
- var List = {
10782
- props: {
10783
- position: "relative",
10784
- overflow: "hidden",
10785
- round: "A",
10786
- minWidth: "F1",
10787
- theme: "dialog",
10788
- ":before, &:after": {
10789
- content: '""',
10790
- position: "absolute",
10791
- boxSize: "A2 100%",
10792
- zIndex: "2",
10793
- left: "0",
10794
- pointerEvents: "none"
10795
- },
10796
- ":before": {
10797
- top: "0",
10798
- background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
10799
- },
10800
- ":after": {
10801
- bottom: "0",
10802
- background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
10803
- }
10804
- },
10805
- Flex: {
10806
- props: {
10807
- flow: "column",
10808
- maxHeight: "F+C",
10809
- overflow: "auto",
10810
- "::-webkit-scrollbar": { display: "none" }
10811
- },
10812
- childExtend: {
10813
- props: {
10814
- padding: "Z1 A1",
10815
- position: "relative",
10816
- cursor: "pointer",
10817
- fontSize: "A1",
10818
- color: "gray4",
10819
- ":hover": {
10820
- background: "gray .92 +4"
10821
- },
10822
- childProps: { position: "relative" }
10823
- }
10824
- }
10825
- }
10826
- };
10827
- var ListTemplate = {
10828
- extend: List,
10829
- props: { maxWidth: "F" },
10830
- Flex: {
10831
- ...[
10832
- { span: { text: "Item" } },
10833
- { span: { text: "Item" } },
10834
- { span: { text: "Item" } },
10835
- { span: { text: "Item" } },
10836
- { span: { text: "Item" } },
10837
- { span: { text: "Item" } },
10838
- { span: { text: "Item" } },
10839
- { span: { text: "Item" } },
10840
- { span: { text: "Item" } },
10841
- { span: { text: "Item" } },
10842
- { span: { text: "Item" } },
10843
- { span: { text: "Item" } },
10844
- { span: { text: "Item" } }
10845
- ]
10846
- }
10847
- };
10848
-
10849
- // List/ListWithTitle.js
10850
- var ListWithTitle = {
10851
- extend: Flex,
10852
- props: {
10853
- flow: "column",
10854
- overflow: "hidden",
10855
- round: "A",
10856
- maxWidth: "F1"
10857
- },
10858
- Title: {
10859
- tag: "h5",
10860
- props: {
10861
- position: "sticky",
10862
- top: "0",
10863
- zIndex: "3",
10864
- text: "Group name",
10865
- fontSize: "Z",
10866
- color: "gray .92 +68",
10867
- fontWeight: "400",
10868
- theme: "dialog",
10869
- padding: "A"
10870
- }
10871
- },
10872
- List: {
10873
- extend: List,
10874
- props: {
10875
- round: "0",
10876
- minWidth: "100%"
10877
- // theme: 'tertiary'
10878
- }
10879
- }
10880
- };
10881
- var ListWithTitleTemplate = {
10882
- extend: ListWithTitle,
10883
- Title: {},
10884
- List: {
10885
- Flex: {
10886
- ...[
10887
- { span: { text: "Item" } },
10888
- { span: { text: "Item" } },
10889
- { span: { text: "Item" } },
10890
- { span: { text: "Item" } },
10891
- { span: { text: "Item" } }
10892
- ]
10893
- }
10894
- }
10895
- };
10896
-
10897
- // List/GroupList.js
10898
- var GroupList = {
10899
- extend: Flex,
10900
- props: {
10901
- flow: "column",
10902
- overflow: "hidden",
10903
- theme: "dialog",
10904
- maxHeight: "H",
10905
- round: "A",
10906
- maxWidth: "G"
10907
- },
10908
- Header: {
10909
- extend: Flex,
10910
- props: {
10911
- text: "Header",
10912
- padding: "Z2 A",
10913
- fontSize: "A2",
10914
- fontWeight: "500",
10915
- color: "white"
10916
- }
11184
+
11185
+ // Modal/Message.js
11186
+ var Message = {
11187
+ extend: Modal,
11188
+ props: {
11189
+ maxWidth: "G3",
11190
+ padding: "Z1 Z2 Z2 Z2"
10917
11191
  },
10918
- Groups: {
10919
- props: {
10920
- position: "relative",
10921
- ":before, &:after": {
10922
- content: '""',
10923
- position: "absolute",
10924
- boxSize: "A2 100%",
10925
- zIndex: "2",
10926
- left: "0",
10927
- pointerEvents: "none"
10928
- },
10929
- ":before": {
10930
- top: "0",
10931
- background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
11192
+ Header: {
11193
+ Title: {
11194
+ caption: {
11195
+ props: { text: "Message", fontSize: "C2" }
10932
11196
  },
10933
- ":after": {
10934
- bottom: "0",
10935
- background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
11197
+ x: {
11198
+ props: { padding: "V2" }
10936
11199
  }
10937
11200
  },
10938
- Flex: {
10939
- extend: Flex,
11201
+ Paragraph: {
10940
11202
  props: {
10941
- flow: "column",
10942
- maxHeight: "G2",
10943
- overflow: "auto",
10944
- "::-webkit-scrollbar": { display: "none" }
10945
- },
10946
- childExtend: {
10947
- extend: ListWithTitle,
10948
- props: {
10949
- round: "0",
10950
- minWidth: "100%",
10951
- overflow: "visible",
10952
- background: "transparent"
10953
- },
10954
- Title: { props: { theme: "transparent" } },
10955
- List: {
10956
- props: {
10957
- overflow: "visible",
10958
- theme: "transparent",
10959
- ":before": { display: "none" },
10960
- ":after": { display: "none" }
10961
- },
10962
- Flex: {
10963
- props: {
10964
- style: { overflowY: "visible" },
10965
- minHeight: "fit-content",
10966
- maxHeight: "fit-content",
10967
- childProps: {
10968
- ":after": { background: "gray" }
10969
- }
10970
- }
10971
- }
10972
- }
11203
+ 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."
10973
11204
  }
10974
11205
  }
10975
11206
  }
10976
11207
  };
10977
- var GroupListTemplate = {
10978
- extend: GroupList,
10979
- Header: {},
10980
- Groups: {
10981
- props: {},
10982
- Flex: {
10983
- props: {},
10984
- ...[
10985
- {
10986
- Title: null,
10987
- List: {
10988
- props: {},
10989
- Flex: {
10990
- props: {},
10991
- ...[
10992
- { span: { text: "Item" } },
10993
- { span: { text: "Item" } }
10994
- ]
10995
- }
10996
- }
10997
- },
10998
- {
10999
- Title: {},
11000
- List: {
11001
- props: {},
11002
- Flex: {
11003
- props: {},
11004
- ...[
11005
- { span: { text: "Item" } },
11006
- { span: { text: "Item" } },
11007
- { span: { text: "Item" } }
11008
- ]
11009
- }
11010
- }
11011
- },
11012
- {
11013
- Title: {},
11014
- List: {
11015
- props: {},
11016
- Flex: {
11017
- props: {},
11018
- ...[
11019
- { span: { text: "Item" } },
11020
- { span: { text: "Item" } },
11021
- { span: { text: "Item" } },
11022
- { span: { text: "Item" } },
11023
- { span: { text: "Item" } },
11024
- { span: { text: "Item" } },
11025
- { span: { text: "Item" } },
11026
- { span: { text: "Item" } },
11027
- { span: { text: "Item" } },
11028
- { span: { text: "Item" } },
11029
- { span: { text: "Item" } },
11030
- { span: { text: "Item" } },
11031
- { span: { text: "Item" } }
11032
- ]
11033
- }
11034
- }
11035
- }
11036
- ]
11037
- }
11038
- }
11039
- };
11040
11208
 
11041
- // List/GroupListWithSearch.js
11042
- var GroupListWithSearch = {
11043
- extend: GroupList,
11209
+ // Modal/Pricing.js
11210
+ var Pricing = {
11211
+ extend: Modal,
11044
11212
  props: {
11045
- maxWidth: "G1"
11213
+ background: "gray3",
11214
+ gap: "B",
11215
+ minWidth: "G+B",
11216
+ maxWidth: "G+B",
11217
+ padding: "A1"
11046
11218
  },
11047
- Header: {},
11048
- SearchContainer: {
11049
- extend: Flex,
11219
+ Header: null,
11220
+ Content: {
11050
11221
  props: {
11051
- padding: "0 Z1 Y2 Z1",
11052
- background: "transparent"
11222
+ flow: "column",
11223
+ gap: "A1"
11053
11224
  },
11054
- Search: {
11055
- extend: Search,
11225
+ childExtend: {
11226
+ extend: UnitValue,
11056
11227
  props: {
11057
- maxWidth: "100%",
11058
- minWidth: "100%",
11059
- minHeight: "C",
11060
- theme: "transparent",
11061
- round: "Z1"
11228
+ justifyContent: "space-between",
11229
+ textTransform: "capitalize",
11230
+ color: "white"
11231
+ }
11232
+ },
11233
+ ...[
11234
+ {
11235
+ Unit: { props: { text: "subtotal" } },
11236
+ Value: { props: { text: "$5,499.00" } }
11062
11237
  },
11063
- Icon: {
11064
- props: {
11065
- fontSize: "C",
11066
- color: "title"
11067
- }
11238
+ {
11239
+ Unit: { props: { text: "Shipping" } },
11240
+ Value: { props: { text: "Free" } }
11068
11241
  },
11069
- Input: { fontSize: "Z" }
11070
- }
11242
+ {
11243
+ Unit: { props: { text: "Savings" } },
11244
+ Value: { props: { text: "$1,600.00" } }
11245
+ }
11246
+ ]
11071
11247
  },
11072
- Groups: {
11073
- Flex: {
11074
- childExtend: {
11075
- Title: {},
11076
- List: {
11077
- Flex: {
11078
- childExtend: {
11079
- props: {}
11080
- }
11081
- }
11082
- }
11248
+ Footer: {
11249
+ props: {
11250
+ margin: "- -X -X"
11251
+ },
11252
+ CommonButton: {
11253
+ flex: "1",
11254
+ padding: "Z2 -",
11255
+ round: "Y2",
11256
+ theme: "secondary",
11257
+ margin: "- -X -X",
11258
+ Caption: {
11259
+ text: "Add promo code",
11260
+ fontSize: "Z",
11261
+ fontWeight: "500"
11083
11262
  }
11084
11263
  }
11085
11264
  }
11086
11265
  };
11087
- var GroupListWithSearchTemplate = {
11088
- extend: GroupListWithSearch,
11089
- Header: {},
11090
- SearchContainer: {},
11091
- Groups: {
11092
- Flex: {
11093
- ...[
11094
- {
11095
- Title: null,
11096
- List: {
11097
- Flex: {
11098
- ...[
11099
- { span: { text: "Item" } },
11100
- { span: { text: "Item" } }
11101
- ]
11102
- }
11103
- }
11104
- },
11105
- {
11106
- Title: {},
11107
- List: {
11108
- Flex: {
11109
- ...[
11110
- { span: { text: "Item" } },
11111
- { span: { text: "Item" } },
11112
- { span: { text: "Item" } }
11113
- ]
11114
- }
11115
- }
11116
- },
11117
- {
11118
- Title: {},
11119
- List: {
11120
- Flex: {
11121
- ...[
11122
- { span: { text: "Item" } },
11123
- { span: { text: "Item" } },
11124
- { span: { text: "Item" } },
11125
- { span: { text: "Item" } },
11126
- { span: { text: "Item" } }
11127
- ]
11128
- }
11129
- }
11130
- }
11131
- ]
11132
- }
11133
- }
11134
- };
11135
11266
 
11136
11267
  // TimePicker/TimePickerItem.js
11137
11268
  var props2 = {