@symbo.ls/uikit 2.11.237 → 2.11.239

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
@@ -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)) {
@@ -3693,7 +3716,8 @@ var require_string = __commonJS({
3693
3716
  var string_exports = {};
3694
3717
  __export2(string_exports, {
3695
3718
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields2,
3696
- stringIncludesAny: () => stringIncludesAny
3719
+ stringIncludesAny: () => stringIncludesAny,
3720
+ trimStringFromSymbols: () => trimStringFromSymbols
3697
3721
  });
3698
3722
  module2.exports = __toCommonJS2(string_exports);
3699
3723
  var stringIncludesAny = (str, characters2) => {
@@ -3704,6 +3728,10 @@ var require_string = __commonJS({
3704
3728
  }
3705
3729
  return false;
3706
3730
  };
3731
+ var trimStringFromSymbols = (str, characters2) => {
3732
+ const pattern = new RegExp(`[${characters2.join("\\")}]`, "g");
3733
+ return str.replace(pattern, "");
3734
+ };
3707
3735
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
3708
3736
  var replaceLiteralsWithObjectFields2 = (str, state) => {
3709
3737
  if (!str.includes("{{"))
@@ -3755,6 +3783,7 @@ var require_object = __commonJS({
3755
3783
  clone: () => clone,
3756
3784
  deepClone: () => deepClone3,
3757
3785
  deepCloneExclude: () => deepCloneExclude,
3786
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
3758
3787
  deepContains: () => deepContains,
3759
3788
  deepDestringify: () => deepDestringify,
3760
3789
  deepDiff: () => deepDiff2,
@@ -3885,6 +3914,23 @@ var require_object = __commonJS({
3885
3914
  }
3886
3915
  return o;
3887
3916
  };
3917
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
3918
+ const o = (0, import_types.isArray)(obj) ? [] : {};
3919
+ for (const prop in obj) {
3920
+ if (prop === "__proto__")
3921
+ continue;
3922
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
3923
+ continue;
3924
+ const objProp = obj[prop];
3925
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
3926
+ continue;
3927
+ if ((0, import_types.isObjectLike)(objProp)) {
3928
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
3929
+ } else
3930
+ o[prop] = objProp;
3931
+ }
3932
+ return o;
3933
+ };
3888
3934
  var deepStringify = (obj, stringified = {}) => {
3889
3935
  for (const prop in obj) {
3890
3936
  const objProp = obj[prop];
@@ -3915,7 +3961,7 @@ var require_object = __commonJS({
3915
3961
  const spaces = " ".repeat(indent);
3916
3962
  let str = "{\n";
3917
3963
  for (const [key, value] of Object.entries(obj)) {
3918
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
3964
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
3919
3965
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
3920
3966
  str += `${spaces} ${stringedKey}: `;
3921
3967
  if ((0, import_types.isArray)(value)) {
@@ -5003,12 +5049,12 @@ var require_methods = __commonJS({
5003
5049
  };
5004
5050
  var set3 = function(val, options = {}) {
5005
5051
  const state = this;
5006
- const value = (0, import_utils14.deepClone)(val);
5052
+ const value = (0, import_utils14.deepCloneWithExtnd)(val);
5007
5053
  return state.clean({ preventStateUpdate: true, ...options }).update(value, { replace: true, ...options });
5008
5054
  };
5009
5055
  var reset = function(options = {}) {
5010
5056
  const state = this;
5011
- const value = (0, import_utils14.deepClone)(state.parse());
5057
+ const value = (0, import_utils14.deepCloneWithExtnd)(state.parse());
5012
5058
  return state.set(value, { replace: true, ...options });
5013
5059
  };
5014
5060
  var apply = function(func, options = {}) {
@@ -5108,7 +5154,7 @@ var require_inherit = __commonJS({
5108
5154
  if ((0, import_utils14.isUndefined)(inheritedState))
5109
5155
  return element.state;
5110
5156
  if ((0, import_utils14.is)(inheritedState)("object", "array")) {
5111
- return (0, import_utils14.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
5157
+ return (0, import_utils14.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
5112
5158
  } else if ((0, import_utils14.is)(inheritedState)("string", "number", "boolean")) {
5113
5159
  ref.__stateType = typeof inheritedState;
5114
5160
  return { value: inheritedState };
@@ -5323,7 +5369,7 @@ var require_create = __commonJS({
5323
5369
  if (objectizeState === false)
5324
5370
  return parent.state || {};
5325
5371
  else
5326
- element.state = (0, import_utils14.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
5372
+ element.state = (0, import_utils14.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
5327
5373
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
5328
5374
  if (whatInitReturns === false)
5329
5375
  return element.state;
@@ -5342,7 +5388,7 @@ var require_create = __commonJS({
5342
5388
  const { __ref: ref } = state;
5343
5389
  if (!ref)
5344
5390
  return;
5345
- const dependentState = (0, import_utils14.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
5391
+ const dependentState = (0, import_utils14.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
5346
5392
  const newDepends = { [element.key]: dependentState };
5347
5393
  ref.__depends = (0, import_utils14.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
5348
5394
  return dependentState;
@@ -5556,6 +5602,7 @@ __export(uikit_exports, {
5556
5602
  AvatarChooser: () => AvatarChooser,
5557
5603
  AvatarIndicator: () => AvatarIndicator,
5558
5604
  BalanceCard: () => BalanceCard,
5605
+ Banner: () => Banner,
5559
5606
  Block: () => Block,
5560
5607
  Box: () => Box,
5561
5608
  Br: () => Br,
@@ -5588,6 +5635,7 @@ __export(uikit_exports, {
5588
5635
  Dialog: () => Dialog,
5589
5636
  DialogFooter: () => DialogFooter,
5590
5637
  Direction: () => Direction,
5638
+ DotList: () => DotList,
5591
5639
  DoubleHr: () => DoubleHr,
5592
5640
  DoubleUnitValue: () => DoubleUnitValue,
5593
5641
  DropDownButton: () => DropDownButton,
@@ -6658,7 +6706,9 @@ var FocusableComponent = {
6658
6706
  // Atoms/Overflow.js
6659
6707
  var Overflow = {
6660
6708
  class: {
6661
- overflow: ({ props: props4 }) => props4.overflow && { overflow: props4.overflow }
6709
+ overflow: ({ props: props4 }) => props4.overflow && { overflow: props4.overflow },
6710
+ overflowX: ({ props: props4 }) => props4.overflowX && { overflowX: props4.overflowX },
6711
+ overflowY: ({ props: props4 }) => props4.overflowY && { overflowY: props4.overflowY }
6662
6712
  }
6663
6713
  };
6664
6714
 
@@ -8327,6 +8377,7 @@ var Text = {
8327
8377
  textDecoration: ({ props: props4 }) => props4.textDecoration && { textDecoration: props4.textDecoration },
8328
8378
  textTransform: ({ props: props4 }) => props4.textTransform && { textTransform: props4.textTransform },
8329
8379
  whiteSpace: ({ props: props4 }) => props4.whiteSpace && { whiteSpace: props4.whiteSpace },
8380
+ wordWrap: ({ props: props4 }) => props4.wordWrap && { wordWrap: props4.wordWrap },
8330
8381
  letterSpacing: ({ props: props4 }) => props4.letterSpacing && { letterSpacing: props4.letterSpacing },
8331
8382
  textAlign: ({ props: props4 }) => props4.textAlign && { textAlign: props4.textAlign },
8332
8383
  fontWeight: ({ props: props4 }) => props4.fontWeight && {
@@ -8718,144 +8769,824 @@ var TitleParagraphButton = {
8718
8769
  Paragraph: {}
8719
8770
  };
8720
8771
 
8721
- // UnitValue/index.js
8722
- var UnitValue = {
8723
- extend: Flex,
8724
- props: {
8725
- color: "gray2",
8726
- align: "center flex-start",
8727
- gap: "V",
8728
- fontWeight: "400",
8729
- "> *": { lineHeight: "1em" }
8730
- },
8731
- Value: { props: { text: "72" } },
8732
- Unit: { props: { text: "%" } }
8733
- };
8734
- var DoubleUnitValue = {
8735
- extend: Flex,
8772
+ // List/List.js
8773
+ var List = {
8736
8774
  props: {
8737
- align: "center flex-start",
8738
- gap: "Y"
8739
- },
8740
- UnitValue: {
8741
- Value: { text: "72" },
8742
- Unit: { text: "%" }
8775
+ position: "relative",
8776
+ overflow: "hidden",
8777
+ round: "A",
8778
+ minWidth: "F1",
8779
+ theme: "dialog",
8780
+ ":before, &:after": {
8781
+ content: '""',
8782
+ position: "absolute",
8783
+ boxSize: "A2 100%",
8784
+ zIndex: "2",
8785
+ left: "0",
8786
+ pointerEvents: "none"
8787
+ },
8788
+ ":before": {
8789
+ top: "0",
8790
+ background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
8791
+ },
8792
+ ":after": {
8793
+ bottom: "0",
8794
+ background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
8795
+ }
8743
8796
  },
8744
- dot: {
8797
+ Flex: {
8745
8798
  props: {
8746
- boxSize: "W W",
8747
- round: "100%",
8748
- background: "#A3A3A8"
8799
+ flow: "column",
8800
+ maxHeight: "F+C",
8801
+ overflow: "auto",
8802
+ "::-webkit-scrollbar": { display: "none" }
8803
+ },
8804
+ childExtend: {
8805
+ props: {
8806
+ padding: "Z1 A1",
8807
+ position: "relative",
8808
+ cursor: "pointer",
8809
+ fontSize: "A1",
8810
+ color: "gray4",
8811
+ ":hover": {
8812
+ background: "gray .92 +4"
8813
+ },
8814
+ childProps: { position: "relative" }
8815
+ }
8749
8816
  }
8750
- },
8751
- UnitValue2: {
8752
- extend: UnitValue,
8753
- props: { gap: "X+W" },
8754
- Value: { text: "2" },
8755
- Unit: { text: "Second left" }
8756
8817
  }
8757
8818
  };
8758
- var UnitValueWithLabel = {
8759
- extend: DoubleUnitValue,
8760
- props: { gap: "Y2" },
8761
- UnitValue: {
8762
- flow: "row-reverse",
8763
- fontSize: "D1",
8764
- fontWeight: "700",
8765
- color: "white",
8766
- Value: { text: "12,759" },
8767
- Unit: { text: "$" }
8768
- },
8769
- dot: null,
8770
- UnitValue2: {
8771
- props: {
8772
- background: "purple",
8773
- padding: "Z",
8774
- round: "Y1",
8775
- fontSize: "Y2",
8776
- gap: "0",
8777
- color: "white"
8778
- },
8779
- Value: { text: "+8.8" },
8780
- Unit: { text: "%" }
8819
+ var ListTemplate = {
8820
+ extend: List,
8821
+ props: { maxWidth: "F" },
8822
+ Flex: {
8823
+ ...[
8824
+ { span: { text: "Item" } },
8825
+ { span: { text: "Item" } },
8826
+ { span: { text: "Item" } },
8827
+ { span: { text: "Item" } },
8828
+ { span: { text: "Item" } },
8829
+ { span: { text: "Item" } },
8830
+ { span: { text: "Item" } },
8831
+ { span: { text: "Item" } },
8832
+ { span: { text: "Item" } },
8833
+ { span: { text: "Item" } },
8834
+ { span: { text: "Item" } },
8835
+ { span: { text: "Item" } },
8836
+ { span: { text: "Item" } }
8837
+ ]
8781
8838
  }
8782
8839
  };
8783
- var UnitValueWithTitle = {
8840
+ var DotList = {
8784
8841
  extend: Flex,
8785
8842
  props: {
8786
- align: "center flex-start",
8787
- gap: "Y",
8788
- fontSize: "Z1"
8843
+ flow: "column",
8844
+ gap: "Y"
8789
8845
  },
8790
- Title: {
8791
- tag: "caption",
8846
+ childExtend: {
8847
+ extend: Flex,
8792
8848
  props: {
8793
- text: "balance :",
8794
- textTransform: "capitalize"
8849
+ align: "center flex-start",
8850
+ gap: "Z",
8851
+ ":before": {
8852
+ content: '""',
8853
+ boxSize: "W",
8854
+ background: "white",
8855
+ display: "block",
8856
+ zIndex: "20"
8857
+ }
8795
8858
  }
8796
8859
  },
8797
- UnitValue: {
8798
- textTransform: "uppercase",
8799
- gap: "Y",
8800
- color: "currentColor",
8801
- Value: { text: "0" },
8802
- Unit: { text: "bnb" }
8803
- }
8860
+ ...[{ props: { text: "Brat font" } }]
8804
8861
  };
8805
8862
 
8806
- // Link/index.js
8807
- var import_router = __toESM(require_cjs6());
8808
- var Link = {
8809
- extend: Focusable,
8810
- tag: "a",
8863
+ // List/ListWithTitle.js
8864
+ var ListWithTitle = {
8865
+ extend: Flex,
8811
8866
  props: {
8812
- aria: {},
8813
- fontWeight: "bold",
8814
- textDecoration: "none",
8815
- color: "currentColor",
8816
- draggable: false
8867
+ flow: "column",
8868
+ overflow: "hidden",
8869
+ round: "A",
8870
+ maxWidth: "F1"
8817
8871
  },
8818
- attr: {
8819
- href: (el) => {
8820
- const { context: ctx } = el;
8821
- const { exec: exec2 } = ctx.utils;
8822
- return exec2(el.props.href, el) || exec2(el.props, el).href;
8823
- },
8824
- target: ({ props: props4 }) => props4.target,
8825
- "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
8826
- draggable: ({ props: props4 }) => props4.draggable
8872
+ Title: {
8873
+ tag: "h5",
8874
+ props: {
8875
+ position: "sticky",
8876
+ top: "0",
8877
+ zIndex: "3",
8878
+ text: "Group name",
8879
+ fontSize: "Z",
8880
+ color: "gray .92 +68",
8881
+ fontWeight: "400",
8882
+ theme: "dialog",
8883
+ padding: "A"
8884
+ }
8885
+ },
8886
+ List: {
8887
+ extend: List,
8888
+ props: {
8889
+ round: "0",
8890
+ minWidth: "100%"
8891
+ // theme: 'tertiary'
8892
+ }
8827
8893
  }
8828
8894
  };
8829
- var RouterLink = {
8830
- on: {
8831
- click: (event, el) => {
8832
- const { props: props4, context: ctx } = el;
8833
- const { href } = props4;
8834
- if (!href)
8835
- return;
8836
- const { utils, snippets, routerOptions } = ctx;
8837
- const root = el.__ref.__root;
8838
- const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
8839
- const options = props4.routerOptions || routerOptions || {
8840
- scrollToOptions: { behaviour: "instant" }
8841
- };
8842
- if (href && !linkIsExternal) {
8843
- (snippets.router || utils.router || import_router.router)(href, root, {}, options);
8844
- event.preventDefault();
8845
- }
8895
+ var ListWithTitleTemplate = {
8896
+ extend: ListWithTitle,
8897
+ Title: {},
8898
+ List: {
8899
+ Flex: {
8900
+ ...[
8901
+ { span: { text: "Item" } },
8902
+ { span: { text: "Item" } },
8903
+ { span: { text: "Item" } },
8904
+ { span: { text: "Item" } },
8905
+ { span: { text: "Item" } }
8906
+ ]
8846
8907
  }
8847
8908
  }
8848
8909
  };
8849
- var RouteLink = {
8850
- extend: [Link, RouterLink]
8851
- };
8852
8910
 
8853
- // Video/index.js
8854
- var Video = {
8855
- tag: "video",
8856
- childExtend: {
8857
- tag: "source",
8858
- attr: {
8911
+ // List/GroupList.js
8912
+ var GroupList = {
8913
+ extend: Flex,
8914
+ props: {
8915
+ flow: "column",
8916
+ overflow: "hidden",
8917
+ theme: "dialog",
8918
+ maxHeight: "H",
8919
+ round: "A",
8920
+ maxWidth: "G"
8921
+ },
8922
+ Header: {
8923
+ extend: Flex,
8924
+ props: {
8925
+ text: "Header",
8926
+ padding: "Z2 A",
8927
+ fontSize: "A2",
8928
+ fontWeight: "500",
8929
+ color: "white"
8930
+ }
8931
+ },
8932
+ Groups: {
8933
+ props: {
8934
+ position: "relative",
8935
+ ":before, &:after": {
8936
+ content: '""',
8937
+ position: "absolute",
8938
+ boxSize: "A2 100%",
8939
+ zIndex: "2",
8940
+ left: "0",
8941
+ pointerEvents: "none"
8942
+ },
8943
+ ":before": {
8944
+ top: "0",
8945
+ background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
8946
+ },
8947
+ ":after": {
8948
+ bottom: "0",
8949
+ background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
8950
+ }
8951
+ },
8952
+ Flex: {
8953
+ extend: Flex,
8954
+ props: {
8955
+ flow: "column",
8956
+ maxHeight: "G2",
8957
+ overflow: "auto",
8958
+ "::-webkit-scrollbar": { display: "none" }
8959
+ },
8960
+ childExtend: {
8961
+ extend: ListWithTitle,
8962
+ props: {
8963
+ round: "0",
8964
+ minWidth: "100%",
8965
+ overflow: "visible",
8966
+ background: "transparent"
8967
+ },
8968
+ Title: { props: { theme: "transparent" } },
8969
+ List: {
8970
+ props: {
8971
+ overflow: "visible",
8972
+ theme: "transparent",
8973
+ ":before": { display: "none" },
8974
+ ":after": { display: "none" }
8975
+ },
8976
+ Flex: {
8977
+ props: {
8978
+ style: { overflowY: "visible" },
8979
+ minHeight: "fit-content",
8980
+ maxHeight: "fit-content",
8981
+ childProps: {
8982
+ ":after": { background: "gray" }
8983
+ }
8984
+ }
8985
+ }
8986
+ }
8987
+ }
8988
+ }
8989
+ }
8990
+ };
8991
+ var GroupListTemplate = {
8992
+ extend: GroupList,
8993
+ Header: {},
8994
+ Groups: {
8995
+ props: {},
8996
+ Flex: {
8997
+ props: {},
8998
+ ...[
8999
+ {
9000
+ Title: null,
9001
+ List: {
9002
+ props: {},
9003
+ Flex: {
9004
+ props: {},
9005
+ ...[
9006
+ { span: { text: "Item" } },
9007
+ { span: { text: "Item" } }
9008
+ ]
9009
+ }
9010
+ }
9011
+ },
9012
+ {
9013
+ Title: {},
9014
+ List: {
9015
+ props: {},
9016
+ Flex: {
9017
+ props: {},
9018
+ ...[
9019
+ { span: { text: "Item" } },
9020
+ { span: { text: "Item" } },
9021
+ { span: { text: "Item" } }
9022
+ ]
9023
+ }
9024
+ }
9025
+ },
9026
+ {
9027
+ Title: {},
9028
+ List: {
9029
+ props: {},
9030
+ Flex: {
9031
+ props: {},
9032
+ ...[
9033
+ { span: { text: "Item" } },
9034
+ { span: { text: "Item" } },
9035
+ { span: { text: "Item" } },
9036
+ { span: { text: "Item" } },
9037
+ { span: { text: "Item" } },
9038
+ { span: { text: "Item" } },
9039
+ { span: { text: "Item" } },
9040
+ { span: { text: "Item" } },
9041
+ { span: { text: "Item" } },
9042
+ { span: { text: "Item" } },
9043
+ { span: { text: "Item" } },
9044
+ { span: { text: "Item" } },
9045
+ { span: { text: "Item" } }
9046
+ ]
9047
+ }
9048
+ }
9049
+ }
9050
+ ]
9051
+ }
9052
+ }
9053
+ };
9054
+
9055
+ // Field/CommonField.js
9056
+ var CommonField = {
9057
+ extend: Flex,
9058
+ tag: "label",
9059
+ props: {
9060
+ flow: "column",
9061
+ boxSize: "fit-content fit-content",
9062
+ gap: "Z"
9063
+ },
9064
+ Title: {
9065
+ props: {
9066
+ text: "Label",
9067
+ lineHeight: "1em",
9068
+ padding: "- - - V2",
9069
+ color: "gray4"
9070
+ }
9071
+ },
9072
+ Field: {
9073
+ tag: "div"
9074
+ },
9075
+ Hint: {
9076
+ extend: IconText,
9077
+ props: {
9078
+ color: "gray4",
9079
+ align: "center flex-start",
9080
+ text: "",
9081
+ fontSize: "Z1",
9082
+ gap: "Y",
9083
+ padding: "W - - W"
9084
+ }
9085
+ }
9086
+ };
9087
+ var CommonFieldTemplate = {
9088
+ extend: CommonField,
9089
+ Title: {},
9090
+ Field: {
9091
+ Icon: { props: { name: "info" } },
9092
+ Input: {},
9093
+ Button: { icon: "eye" }
9094
+ },
9095
+ Hint: {
9096
+ Icon: { props: { name: "info" } },
9097
+ text: "Description"
9098
+ }
9099
+ };
9100
+
9101
+ // Field/Field.js
9102
+ var Field = {
9103
+ tag: "label",
9104
+ extend: [Focusable, IconText],
9105
+ props: {
9106
+ minWidth: "F2+Z2",
9107
+ maxWidth: "F2+Z2",
9108
+ minHeight: "C+V",
9109
+ align: "center flex-start",
9110
+ gap: "Y",
9111
+ boxSizing: "border-box",
9112
+ padding: "- A - Z2",
9113
+ round: "Z1",
9114
+ border: "solid, gray .45 +80",
9115
+ borderWidth: ".8px",
9116
+ position: "relative",
9117
+ ":focus-within": { outline: "1px solid #0474F2" },
9118
+ Icon: {
9119
+ fontSize: "Z2"
9120
+ },
9121
+ Button: {
9122
+ padding: "0",
9123
+ background: "transparent",
9124
+ margin: "- - - auto",
9125
+ fontSize: "Z2"
9126
+ }
9127
+ },
9128
+ Input: {
9129
+ props: {
9130
+ fontSize: "Z",
9131
+ fontWeight: "400",
9132
+ padding: "0",
9133
+ background: "rgba(0, 0, 0, 0)",
9134
+ round: "0",
9135
+ color: "title",
9136
+ fontFamily: "avenir",
9137
+ placeholder: "Placeholder",
9138
+ flex: "1",
9139
+ minHeight: "100%",
9140
+ outline: "none !important",
9141
+ "::placeholder": { color: "gray 1 +64" }
9142
+ }
9143
+ }
9144
+ };
9145
+ var FieldTemplate = {
9146
+ extend: Field,
9147
+ Icon: { props: { name: "info" } },
9148
+ Input: {},
9149
+ Button: { Icon: { name: "eye" } }
9150
+ };
9151
+ var FieldWithTitle = {
9152
+ extend: Flex,
9153
+ props: {
9154
+ flow: "column",
9155
+ boxSize: "fit-content fit-content",
9156
+ gap: "Y1",
9157
+ // border: '.05px solid red',
9158
+ Hint: {
9159
+ color: "gray 1 +64",
9160
+ align: "center flex-start",
9161
+ fontSize: "Y",
9162
+ gap: "Y",
9163
+ padding: "W Y2 - Y2"
9164
+ }
9165
+ },
9166
+ Title: {
9167
+ props: {
9168
+ text: "Label",
9169
+ fontSize: "Z",
9170
+ lineHeight: "1em",
9171
+ color: "title",
9172
+ fontWeight: "400",
9173
+ padding: "- Y1"
9174
+ }
9175
+ },
9176
+ Field: {
9177
+ extend: Field
9178
+ }
9179
+ };
9180
+ var FieldWithTitleTemplate = {
9181
+ extend: FieldWithTitle,
9182
+ Title: {},
9183
+ Field: {
9184
+ Icon: { props: { name: "info" } },
9185
+ Input: {},
9186
+ Button: { icon: "eye" }
9187
+ },
9188
+ Hint: {
9189
+ extend: IconText,
9190
+ props: {
9191
+ icon: "info",
9192
+ text: "Description"
9193
+ }
9194
+ }
9195
+ };
9196
+
9197
+ // Field/Search.js
9198
+ var Search = {
9199
+ extend: Field,
9200
+ props: {
9201
+ maxWidth: "G3",
9202
+ gap: "Z",
9203
+ theme: "dialog",
9204
+ padding: "Z+V Z+V2",
9205
+ Icon: {
9206
+ name: "search",
9207
+ fontSize: "C",
9208
+ color: "title",
9209
+ margin: "V - - -"
9210
+ }
9211
+ },
9212
+ Icon: {},
9213
+ Input: {
9214
+ props: {
9215
+ placeholder: "type a command or search",
9216
+ fontSize: "Z",
9217
+ "::placeholder": { color: "gray 1 +68" }
9218
+ }
9219
+ }
9220
+ };
9221
+ var SearchWithButton = {
9222
+ extend: Search,
9223
+ props: {
9224
+ Button: { fontSize: "B" }
9225
+ },
9226
+ Icon: {},
9227
+ Input: { props: { ":focus ~ button": { opacity: "1" } } },
9228
+ Button: {
9229
+ props: {
9230
+ opacity: "0",
9231
+ icon: "x"
9232
+ },
9233
+ Icon: {
9234
+ on: {
9235
+ click: (e, el) => {
9236
+ el.parent.parent.Input.node.value = "";
9237
+ }
9238
+ }
9239
+ }
9240
+ }
9241
+ };
9242
+ var SearchWithDropDownButton = {
9243
+ extend: SearchWithButton,
9244
+ props: {
9245
+ theme: "tertiary",
9246
+ maxWidth: "G3+C",
9247
+ padding: "0 A 0 0",
9248
+ gap: "Z"
9249
+ },
9250
+ DropDownButton: {},
9251
+ Input: { props: { padding: "- - - X" } },
9252
+ Button: {},
9253
+ Icon: {}
9254
+ };
9255
+
9256
+ // Field/TextAreaField.js
9257
+ var TextAreaField = {
9258
+ tag: "label",
9259
+ extend: Focusable,
9260
+ props: {
9261
+ boxSize: "fit-content",
9262
+ border: "solid, gray .45 +80",
9263
+ borderWidth: ".8px",
9264
+ overflow: "hidden",
9265
+ round: "Z1",
9266
+ ":focus-within": { outline: "1px solid #0474F2" }
9267
+ },
9268
+ TextArea: {
9269
+ tag: "textarea",
9270
+ attr: { placeholder: "Leave us a message..." },
9271
+ props: {
9272
+ fontSize: "Z",
9273
+ minWidth: "H",
9274
+ minHeight: "D2+Y1",
9275
+ padding: "A",
9276
+ fontFamily: "avenir",
9277
+ theme: "transparent",
9278
+ border: "none",
9279
+ outline: "none",
9280
+ style: { resize: "none" },
9281
+ "::placeholder": { color: "gray 1 +64" }
9282
+ }
9283
+ }
9284
+ };
9285
+
9286
+ // List/GroupListWithSearch.js
9287
+ var GroupListWithSearch = {
9288
+ extend: GroupList,
9289
+ props: {
9290
+ maxWidth: "G1"
9291
+ },
9292
+ Header: {},
9293
+ SearchContainer: {
9294
+ extend: Flex,
9295
+ props: {
9296
+ padding: "0 Z1 Y2 Z1",
9297
+ background: "transparent"
9298
+ },
9299
+ Search: {
9300
+ extend: Search,
9301
+ props: {
9302
+ maxWidth: "100%",
9303
+ minWidth: "100%",
9304
+ minHeight: "C",
9305
+ theme: "transparent",
9306
+ round: "Z1"
9307
+ },
9308
+ Icon: {
9309
+ props: {
9310
+ fontSize: "C",
9311
+ color: "title"
9312
+ }
9313
+ },
9314
+ Input: { fontSize: "Z" }
9315
+ }
9316
+ },
9317
+ Groups: {
9318
+ Flex: {
9319
+ childExtend: {
9320
+ Title: {},
9321
+ List: {
9322
+ Flex: {
9323
+ childExtend: {
9324
+ props: {}
9325
+ }
9326
+ }
9327
+ }
9328
+ }
9329
+ }
9330
+ }
9331
+ };
9332
+ var GroupListWithSearchTemplate = {
9333
+ extend: GroupListWithSearch,
9334
+ Header: {},
9335
+ SearchContainer: {},
9336
+ Groups: {
9337
+ Flex: {
9338
+ ...[
9339
+ {
9340
+ Title: null,
9341
+ List: {
9342
+ Flex: {
9343
+ ...[
9344
+ { span: { text: "Item" } },
9345
+ { span: { text: "Item" } }
9346
+ ]
9347
+ }
9348
+ }
9349
+ },
9350
+ {
9351
+ Title: {},
9352
+ List: {
9353
+ Flex: {
9354
+ ...[
9355
+ { span: { text: "Item" } },
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
+ { span: { text: "Item" } },
9371
+ { span: { text: "Item" } }
9372
+ ]
9373
+ }
9374
+ }
9375
+ }
9376
+ ]
9377
+ }
9378
+ }
9379
+ };
9380
+
9381
+ // Banner/index.js
9382
+ var Banner = {
9383
+ extend: TitleParagraph,
9384
+ props: {
9385
+ height: "fit-content",
9386
+ padding: "D1 C2 C2 C1",
9387
+ width: "100%",
9388
+ theme: "dialog",
9389
+ round: "0 0 Z 0"
9390
+ },
9391
+ Title: {
9392
+ tag: "h1",
9393
+ props: {
9394
+ textTransform: "capitalize",
9395
+ fontSize: `${120 / 16}em`,
9396
+ fontWeight: "900",
9397
+ padding: "- - X2 -"
9398
+ }
9399
+ },
9400
+ Paragraph: {
9401
+ props: {
9402
+ justifyContent: "space-between",
9403
+ // gap: 'I',
9404
+ padding: "B1 - - -",
9405
+ position: "relative",
9406
+ ":before": {
9407
+ content: '""',
9408
+ position: "absolute",
9409
+ boxSize: "V 100%",
9410
+ background: "white .1",
9411
+ top: "0",
9412
+ round: "C"
9413
+ }
9414
+ },
9415
+ list: {
9416
+ extend: TitleParagraph,
9417
+ props: {
9418
+ gap: "Z2",
9419
+ margin: "0 - - Y",
9420
+ Paragraph: {
9421
+ childProps: {
9422
+ fontSize: "Z1"
9423
+ }
9424
+ }
9425
+ },
9426
+ Title: {
9427
+ tag: "h6",
9428
+ props: {
9429
+ fontSize: "B",
9430
+ color: "white .85"
9431
+ }
9432
+ },
9433
+ Paragraph: {
9434
+ ...DotList,
9435
+ ...[{}]
9436
+ }
9437
+ },
9438
+ P: {
9439
+ 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.",
9440
+ maxWidth: "G3+C",
9441
+ margin: "0",
9442
+ letterSpacing: ".1px",
9443
+ padding: "B - - Y",
9444
+ fontSize: "Z2",
9445
+ color: "white .5",
9446
+ lineHeight: "1.6em"
9447
+ // fontWeight: '100'
9448
+ }
9449
+ }
9450
+ };
9451
+
9452
+ // UnitValue/index.js
9453
+ var UnitValue = {
9454
+ extend: Flex,
9455
+ props: {
9456
+ color: "title",
9457
+ align: "center flex-start",
9458
+ gap: "V",
9459
+ fontWeight: "400",
9460
+ "> *": { lineHeight: "1em" }
9461
+ },
9462
+ Value: { props: { text: "72" } },
9463
+ Unit: { props: { text: "%" } }
9464
+ };
9465
+ var DoubleUnitValue = {
9466
+ extend: Flex,
9467
+ props: {
9468
+ align: "center flex-start",
9469
+ gap: "Y"
9470
+ },
9471
+ UnitValue: {
9472
+ Value: { text: "72" },
9473
+ Unit: { text: "%" }
9474
+ },
9475
+ dot: {
9476
+ props: {
9477
+ boxSize: "W W",
9478
+ round: "100%",
9479
+ background: "#A3A3A8"
9480
+ }
9481
+ },
9482
+ UnitValue2: {
9483
+ extend: UnitValue,
9484
+ props: { gap: "X+W" },
9485
+ Value: { text: "2" },
9486
+ Unit: { text: "Second left" }
9487
+ }
9488
+ };
9489
+ var UnitValueWithLabel = {
9490
+ extend: DoubleUnitValue,
9491
+ props: { gap: "Y2" },
9492
+ UnitValue: {
9493
+ flow: "row-reverse",
9494
+ fontSize: "D1",
9495
+ fontWeight: "700",
9496
+ color: "white",
9497
+ Value: { text: "12,759" },
9498
+ Unit: { text: "$" }
9499
+ },
9500
+ dot: null,
9501
+ UnitValue2: {
9502
+ props: {
9503
+ background: "purple",
9504
+ padding: "Z",
9505
+ round: "Y1",
9506
+ fontSize: "Y2",
9507
+ gap: "0",
9508
+ color: "white"
9509
+ },
9510
+ Value: { text: "+8.8" },
9511
+ Unit: { text: "%" }
9512
+ }
9513
+ };
9514
+ var UnitValueWithTitle = {
9515
+ extend: Flex,
9516
+ props: {
9517
+ align: "center flex-start",
9518
+ gap: "Y",
9519
+ fontSize: "Z1"
9520
+ },
9521
+ Title: {
9522
+ tag: "caption",
9523
+ props: {
9524
+ text: "balance :",
9525
+ textTransform: "capitalize"
9526
+ }
9527
+ },
9528
+ UnitValue: {
9529
+ textTransform: "uppercase",
9530
+ gap: "Y",
9531
+ color: "currentColor",
9532
+ Value: { text: "0" },
9533
+ Unit: { text: "bnb" }
9534
+ }
9535
+ };
9536
+
9537
+ // Link/index.js
9538
+ var import_router = __toESM(require_cjs6());
9539
+ var Link = {
9540
+ extend: Focusable,
9541
+ tag: "a",
9542
+ props: {
9543
+ aria: {},
9544
+ fontWeight: "bold",
9545
+ textDecoration: "none",
9546
+ color: "currentColor",
9547
+ draggable: false
9548
+ },
9549
+ attr: {
9550
+ href: (el) => {
9551
+ const { context: ctx } = el;
9552
+ const { exec: exec2 } = ctx.utils;
9553
+ return exec2(el.props.href, el) || exec2(el.props, el).href;
9554
+ },
9555
+ target: ({ props: props4 }) => props4.target,
9556
+ "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
9557
+ draggable: ({ props: props4 }) => props4.draggable
9558
+ }
9559
+ };
9560
+ var RouterLink = {
9561
+ on: {
9562
+ click: (event, el) => {
9563
+ const { props: props4, context: ctx } = el;
9564
+ const { href } = props4;
9565
+ if (!href)
9566
+ return;
9567
+ const { utils, snippets, routerOptions } = ctx;
9568
+ const root = el.__ref.__root;
9569
+ const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
9570
+ const options = props4.routerOptions || routerOptions || {
9571
+ scrollToOptions: { behaviour: "instant" }
9572
+ };
9573
+ if (href && !linkIsExternal) {
9574
+ (snippets.router || utils.router || import_router.router)(href, root, {}, options);
9575
+ event.preventDefault();
9576
+ }
9577
+ }
9578
+ }
9579
+ };
9580
+ var RouteLink = {
9581
+ extend: [Link, RouterLink]
9582
+ };
9583
+
9584
+ // Video/index.js
9585
+ var Video = {
9586
+ tag: "video",
9587
+ childExtend: {
9588
+ tag: "source",
9589
+ attr: {
8859
9590
  src: ({ props: props4 }) => props4.src,
8860
9591
  controls: ({ props: props4 }) => props4.controls
8861
9592
  }
@@ -9129,277 +9860,44 @@ var TextareaWithButton = {
9129
9860
  padding: "A",
9130
9861
  fontSize: "Z1",
9131
9862
  color: "white",
9132
- round: "Z2",
9133
- minHeight: "dit-content"
9134
- },
9135
- IconCommonButton: {
9136
- props: {
9137
- background: "blue",
9138
- Icon: { name: "send" }
9139
- }
9140
- }
9141
- };
9142
-
9143
- // Select/index.js
9144
- var Select = {
9145
- extend: Focusable,
9146
- tag: "select",
9147
- props: {
9148
- fontSize: "A",
9149
- border: "none",
9150
- boxSizing: "border-box",
9151
- theme: "field",
9152
- cursor: "pointer"
9153
- },
9154
- childExtend: {
9155
- tag: "option",
9156
- props: {
9157
- value: "",
9158
- selected: "",
9159
- disabled: ""
9160
- },
9161
- attr: {
9162
- value: ({ props: props4 }) => props4.value,
9163
- selected: ({ props: props4 }) => props4.selected,
9164
- disabled: ({ props: props4 }) => props4.disabled
9165
- }
9166
- },
9167
- attr: {
9168
- name: ({ props: props4 }) => props4.name,
9169
- disabled: ({ props: props4 }) => props4.disabled
9170
- }
9171
- };
9172
-
9173
- // Field/CommonField.js
9174
- var CommonField = {
9175
- extend: Flex,
9176
- tag: "label",
9177
- props: {
9178
- flow: "column",
9179
- boxSize: "fit-content fit-content",
9180
- gap: "Z"
9181
- },
9182
- Title: {
9183
- props: {
9184
- text: "Label",
9185
- lineHeight: "1em",
9186
- padding: "- - - V2",
9187
- color: "gray4"
9188
- }
9189
- },
9190
- Field: {
9191
- tag: "div"
9192
- },
9193
- Hint: {
9194
- extend: IconText,
9195
- props: {
9196
- color: "gray4",
9197
- align: "center flex-start",
9198
- text: "",
9199
- fontSize: "Z1",
9200
- gap: "Y",
9201
- padding: "W - - W"
9202
- }
9203
- }
9204
- };
9205
- var CommonFieldTemplate = {
9206
- extend: CommonField,
9207
- Title: {},
9208
- Field: {
9209
- Icon: { props: { name: "info" } },
9210
- Input: {},
9211
- Button: { icon: "eye" }
9212
- },
9213
- Hint: {
9214
- Icon: { props: { name: "info" } },
9215
- text: "Description"
9216
- }
9217
- };
9218
-
9219
- // Field/Field.js
9220
- var Field = {
9221
- tag: "label",
9222
- extend: [Focusable, IconText],
9223
- props: {
9224
- minWidth: "F2+Z2",
9225
- maxWidth: "F2+Z2",
9226
- minHeight: "C+V",
9227
- align: "center flex-start",
9228
- gap: "Y",
9229
- boxSizing: "border-box",
9230
- padding: "- A - Z2",
9231
- round: "Z1",
9232
- border: "solid, gray .45 +80",
9233
- borderWidth: ".8px",
9234
- position: "relative",
9235
- ":focus-within": { outline: "1px solid #0474F2" },
9236
- Icon: {
9237
- color: "gray2",
9238
- fontSize: "Z2"
9239
- },
9240
- Button: {
9241
- padding: "0",
9242
- background: "transparent",
9243
- color: "gray2",
9244
- margin: "- - - auto",
9245
- fontSize: "Z2"
9246
- }
9247
- },
9248
- Input: {
9249
- props: {
9250
- fontSize: "Z",
9251
- fontWeight: "400",
9252
- padding: "0",
9253
- background: "rgba(0, 0, 0, 0)",
9254
- round: "0",
9255
- color: "gray2",
9256
- fontFamily: "avenir",
9257
- placeholder: "Placeholder",
9258
- flex: "1",
9259
- minHeight: "100%",
9260
- outline: "none !important",
9261
- "::placeholder": { color: "gray 1 +64" }
9262
- }
9263
- }
9264
- };
9265
- var FieldTemplate = {
9266
- extend: Field,
9267
- Icon: { props: { name: "info" } },
9268
- Input: {},
9269
- Button: { Icon: { name: "eye" } }
9270
- };
9271
- var FieldWithTitle = {
9272
- extend: Flex,
9273
- props: {
9274
- flow: "column",
9275
- boxSize: "fit-content fit-content",
9276
- gap: "Y1",
9277
- // border: '.05px solid red',
9278
- Hint: {
9279
- color: "gray 1 +64",
9280
- align: "center flex-start",
9281
- fontSize: "Y",
9282
- gap: "Y",
9283
- padding: "W Y2 - Y2"
9284
- }
9285
- },
9286
- Title: {
9287
- props: {
9288
- text: "Label",
9289
- fontSize: "Z",
9290
- lineHeight: "1em",
9291
- color: "gray2",
9292
- fontWeight: "400",
9293
- padding: "- Y1"
9294
- }
9295
- },
9296
- Field: {
9297
- extend: Field
9298
- }
9299
- };
9300
- var FieldWithTitleTemplate = {
9301
- extend: FieldWithTitle,
9302
- Title: {},
9303
- Field: {
9304
- Icon: { props: { name: "info" } },
9305
- Input: {},
9306
- Button: { icon: "eye" }
9307
- },
9308
- Hint: {
9309
- extend: IconText,
9310
- props: {
9311
- icon: "info",
9312
- text: "Description"
9313
- }
9314
- }
9315
- };
9316
-
9317
- // Field/Search.js
9318
- var Search = {
9319
- extend: Field,
9320
- props: {
9321
- maxWidth: "G3",
9322
- gap: "Z",
9323
- theme: "dialog",
9324
- padding: "Z+V Z+V2",
9325
- Icon: {
9326
- name: "search",
9327
- fontSize: "C",
9328
- color: "gray2",
9329
- margin: "V - - -"
9330
- }
9331
- },
9332
- Icon: {},
9333
- Input: {
9334
- props: {
9335
- placeholder: "type a command or search",
9336
- fontSize: "Z",
9337
- "::placeholder": { color: "gray 1 +68" }
9338
- }
9339
- }
9340
- };
9341
- var SearchWithButton = {
9342
- extend: Search,
9343
- props: {
9344
- Button: { fontSize: "B" }
9345
- },
9346
- Icon: {},
9347
- Input: { props: { ":focus ~ button": { opacity: "1" } } },
9348
- Button: {
9349
- props: {
9350
- opacity: "0",
9351
- icon: "x"
9352
- },
9353
- Icon: {
9354
- on: {
9355
- click: (e, el) => {
9356
- el.parent.parent.Input.node.value = "";
9357
- }
9358
- }
9359
- }
9360
- }
9361
- };
9362
- var SearchWithDropDownButton = {
9363
- extend: SearchWithButton,
9364
- props: {
9365
- theme: "tertiary",
9366
- maxWidth: "G3+C",
9367
- padding: "0 A 0 0",
9368
- gap: "Z"
9369
- },
9370
- DropDownButton: {},
9371
- Input: { props: { padding: "- - - X" } },
9372
- Button: {},
9373
- Icon: {}
9863
+ round: "Z2",
9864
+ minHeight: "dit-content"
9865
+ },
9866
+ IconCommonButton: {
9867
+ props: {
9868
+ background: "blue",
9869
+ Icon: { name: "send" }
9870
+ }
9871
+ }
9374
9872
  };
9375
9873
 
9376
- // Field/TextAreaField.js
9377
- var TextAreaField = {
9378
- tag: "label",
9874
+ // Select/index.js
9875
+ var Select = {
9379
9876
  extend: Focusable,
9877
+ tag: "select",
9380
9878
  props: {
9381
- boxSize: "fit-content",
9382
- border: "solid, gray .45 +80",
9383
- borderWidth: ".8px",
9384
- overflow: "hidden",
9385
- round: "Z1",
9386
- ":focus-within": { outline: "1px solid #0474F2" }
9879
+ fontSize: "A",
9880
+ border: "none",
9881
+ boxSizing: "border-box",
9882
+ theme: "field",
9883
+ cursor: "pointer"
9387
9884
  },
9388
- TextArea: {
9389
- tag: "textarea",
9390
- attr: { placeholder: "Leave us a message..." },
9885
+ childExtend: {
9886
+ tag: "option",
9391
9887
  props: {
9392
- fontSize: "Z",
9393
- minWidth: "H",
9394
- minHeight: "D2+Y1",
9395
- padding: "A",
9396
- fontFamily: "avenir",
9397
- theme: "transparent",
9398
- border: "none",
9399
- outline: "none",
9400
- style: { resize: "none" },
9401
- "::placeholder": { color: "gray 1 +64" }
9888
+ value: "",
9889
+ selected: "",
9890
+ disabled: ""
9891
+ },
9892
+ attr: {
9893
+ value: ({ props: props4 }) => props4.value,
9894
+ selected: ({ props: props4 }) => props4.selected,
9895
+ disabled: ({ props: props4 }) => props4.disabled
9402
9896
  }
9897
+ },
9898
+ attr: {
9899
+ name: ({ props: props4 }) => props4.name,
9900
+ disabled: ({ props: props4 }) => props4.disabled
9403
9901
  }
9404
9902
  };
9405
9903
 
@@ -10659,7 +11157,7 @@ var CompleteProcess = {
10659
11157
  Paragraph: {
10660
11158
  text: "Your request has been approved!",
10661
11159
  fontSize: "Z",
10662
- color: "gray2"
11160
+ color: "title"
10663
11161
  }
10664
11162
  },
10665
11163
  CommonButton: {
@@ -10680,435 +11178,79 @@ var Message = {
10680
11178
  padding: "Z1 Z2 Z2 Z2"
10681
11179
  },
10682
11180
  Header: {
10683
- Title: {
10684
- caption: {
10685
- props: { text: "Message", fontSize: "C2" }
10686
- },
10687
- x: {
10688
- props: { padding: "V2" }
10689
- }
10690
- },
10691
- Paragraph: {
10692
- props: {
10693
- 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."
10694
- }
10695
- }
10696
- }
10697
- };
10698
-
10699
- // Modal/Pricing.js
10700
- var Pricing = {
10701
- extend: Modal,
10702
- props: {
10703
- background: "gray3",
10704
- gap: "B",
10705
- minWidth: "G+B",
10706
- maxWidth: "G+B",
10707
- padding: "A1"
10708
- },
10709
- Header: null,
10710
- Content: {
10711
- props: {
10712
- flow: "column",
10713
- gap: "A1"
10714
- },
10715
- childExtend: {
10716
- extend: UnitValue,
10717
- props: {
10718
- justifyContent: "space-between",
10719
- textTransform: "capitalize",
10720
- color: "white"
10721
- }
10722
- },
10723
- ...[
10724
- {
10725
- Unit: { props: { text: "subtotal" } },
10726
- Value: { props: { text: "$5,499.00" } }
10727
- },
10728
- {
10729
- Unit: { props: { text: "Shipping" } },
10730
- Value: { props: { text: "Free" } }
10731
- },
10732
- {
10733
- Unit: { props: { text: "Savings" } },
10734
- Value: { props: { text: "$1,600.00" } }
10735
- }
10736
- ]
10737
- },
10738
- Footer: {
10739
- props: {
10740
- margin: "- -X -X"
10741
- },
10742
- CommonButton: {
10743
- flex: "1",
10744
- padding: "Z2 -",
10745
- round: "Y2",
10746
- theme: "secondary",
10747
- margin: "- -X -X",
10748
- Caption: {
10749
- text: "Add promo code",
10750
- fontSize: "Z",
10751
- fontWeight: "500"
10752
- }
10753
- }
10754
- }
10755
- };
10756
-
10757
- // List/List.js
10758
- var List = {
10759
- props: {
10760
- position: "relative",
10761
- overflow: "hidden",
10762
- round: "A",
10763
- minWidth: "F1",
10764
- theme: "dialog",
10765
- ":before, &:after": {
10766
- content: '""',
10767
- position: "absolute",
10768
- boxSize: "A2 100%",
10769
- zIndex: "2",
10770
- left: "0",
10771
- pointerEvents: "none"
10772
- },
10773
- ":before": {
10774
- top: "0",
10775
- background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
10776
- },
10777
- ":after": {
10778
- bottom: "0",
10779
- background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
10780
- }
10781
- },
10782
- Flex: {
10783
- props: {
10784
- flow: "column",
10785
- maxHeight: "F+C",
10786
- overflow: "auto",
10787
- "::-webkit-scrollbar": { display: "none" }
10788
- },
10789
- childExtend: {
10790
- props: {
10791
- padding: "Z1 A1",
10792
- position: "relative",
10793
- cursor: "pointer",
10794
- fontSize: "A1",
10795
- color: "gray4",
10796
- ":hover": {
10797
- background: "gray .92 +4"
10798
- },
10799
- childProps: { position: "relative" }
10800
- }
10801
- }
10802
- }
10803
- };
10804
- var ListTemplate = {
10805
- extend: List,
10806
- props: { maxWidth: "F" },
10807
- Flex: {
10808
- ...[
10809
- { span: { text: "Item" } },
10810
- { span: { text: "Item" } },
10811
- { span: { text: "Item" } },
10812
- { span: { text: "Item" } },
10813
- { span: { text: "Item" } },
10814
- { span: { text: "Item" } },
10815
- { span: { text: "Item" } },
10816
- { span: { text: "Item" } },
10817
- { span: { text: "Item" } },
10818
- { span: { text: "Item" } },
10819
- { span: { text: "Item" } },
10820
- { span: { text: "Item" } },
10821
- { span: { text: "Item" } }
10822
- ]
10823
- }
10824
- };
10825
-
10826
- // List/ListWithTitle.js
10827
- var ListWithTitle = {
10828
- extend: Flex,
10829
- props: {
10830
- flow: "column",
10831
- overflow: "hidden",
10832
- round: "A",
10833
- maxWidth: "F1"
10834
- },
10835
- Title: {
10836
- tag: "h5",
10837
- props: {
10838
- position: "sticky",
10839
- top: "0",
10840
- zIndex: "3",
10841
- text: "Group name",
10842
- fontSize: "Z",
10843
- color: "gray .92 +68",
10844
- fontWeight: "400",
10845
- theme: "dialog",
10846
- padding: "A"
10847
- }
10848
- },
10849
- List: {
10850
- extend: List,
10851
- props: {
10852
- round: "0",
10853
- minWidth: "100%"
10854
- // theme: 'tertiary'
10855
- }
10856
- }
10857
- };
10858
- var ListWithTitleTemplate = {
10859
- extend: ListWithTitle,
10860
- Title: {},
10861
- List: {
10862
- Flex: {
10863
- ...[
10864
- { span: { text: "Item" } },
10865
- { span: { text: "Item" } },
10866
- { span: { text: "Item" } },
10867
- { span: { text: "Item" } },
10868
- { span: { text: "Item" } }
10869
- ]
10870
- }
10871
- }
10872
- };
10873
-
10874
- // List/GroupList.js
10875
- var GroupList = {
10876
- extend: Flex,
10877
- props: {
10878
- flow: "column",
10879
- overflow: "hidden",
10880
- theme: "dialog",
10881
- maxHeight: "H",
10882
- round: "A",
10883
- maxWidth: "G"
10884
- },
10885
- Header: {
10886
- extend: Flex,
10887
- props: {
10888
- text: "Header",
10889
- padding: "Z2 A",
10890
- fontSize: "A2",
10891
- fontWeight: "500",
10892
- color: "white"
10893
- }
10894
- },
10895
- Groups: {
10896
- props: {
10897
- position: "relative",
10898
- ":before, &:after": {
10899
- content: '""',
10900
- position: "absolute",
10901
- boxSize: "A2 100%",
10902
- zIndex: "2",
10903
- left: "0",
10904
- pointerEvents: "none"
10905
- },
10906
- ":before": {
10907
- top: "0",
10908
- background: "linear-gradient(to bottom, var(--theme-dialog-dark-background) 0%, transparent 100%)"
11181
+ Title: {
11182
+ caption: {
11183
+ props: { text: "Message", fontSize: "C2" }
10909
11184
  },
10910
- ":after": {
10911
- bottom: "0",
10912
- background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
11185
+ x: {
11186
+ props: { padding: "V2" }
10913
11187
  }
10914
11188
  },
10915
- Flex: {
10916
- extend: Flex,
11189
+ Paragraph: {
10917
11190
  props: {
10918
- flow: "column",
10919
- maxHeight: "G2",
10920
- overflow: "auto",
10921
- "::-webkit-scrollbar": { display: "none" }
10922
- },
10923
- childExtend: {
10924
- extend: ListWithTitle,
10925
- props: {
10926
- round: "0",
10927
- minWidth: "100%",
10928
- overflow: "visible",
10929
- background: "transparent"
10930
- },
10931
- Title: { props: { theme: "transparent" } },
10932
- List: {
10933
- props: {
10934
- overflow: "visible",
10935
- theme: "transparent",
10936
- ":before": { display: "none" },
10937
- ":after": { display: "none" }
10938
- },
10939
- Flex: {
10940
- props: {
10941
- style: { overflowY: "visible" },
10942
- minHeight: "fit-content",
10943
- maxHeight: "fit-content",
10944
- childProps: {
10945
- ":after": { background: "gray" }
10946
- }
10947
- }
10948
- }
10949
- }
11191
+ 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."
10950
11192
  }
10951
11193
  }
10952
11194
  }
10953
11195
  };
10954
- var GroupListTemplate = {
10955
- extend: GroupList,
10956
- Header: {},
10957
- Groups: {
10958
- props: {},
10959
- Flex: {
10960
- props: {},
10961
- ...[
10962
- {
10963
- Title: null,
10964
- List: {
10965
- props: {},
10966
- Flex: {
10967
- props: {},
10968
- ...[
10969
- { span: { text: "Item" } },
10970
- { span: { text: "Item" } }
10971
- ]
10972
- }
10973
- }
10974
- },
10975
- {
10976
- Title: {},
10977
- List: {
10978
- props: {},
10979
- Flex: {
10980
- props: {},
10981
- ...[
10982
- { span: { text: "Item" } },
10983
- { span: { text: "Item" } },
10984
- { span: { text: "Item" } }
10985
- ]
10986
- }
10987
- }
10988
- },
10989
- {
10990
- Title: {},
10991
- List: {
10992
- props: {},
10993
- Flex: {
10994
- props: {},
10995
- ...[
10996
- { span: { text: "Item" } },
10997
- { span: { text: "Item" } },
10998
- { span: { text: "Item" } },
10999
- { span: { text: "Item" } },
11000
- { span: { text: "Item" } },
11001
- { span: { text: "Item" } },
11002
- { span: { text: "Item" } },
11003
- { span: { text: "Item" } },
11004
- { span: { text: "Item" } },
11005
- { span: { text: "Item" } },
11006
- { span: { text: "Item" } },
11007
- { span: { text: "Item" } },
11008
- { span: { text: "Item" } }
11009
- ]
11010
- }
11011
- }
11012
- }
11013
- ]
11014
- }
11015
- }
11016
- };
11017
11196
 
11018
- // List/GroupListWithSearch.js
11019
- var GroupListWithSearch = {
11020
- extend: GroupList,
11197
+ // Modal/Pricing.js
11198
+ var Pricing = {
11199
+ extend: Modal,
11021
11200
  props: {
11022
- maxWidth: "G1"
11201
+ background: "gray3",
11202
+ gap: "B",
11203
+ minWidth: "G+B",
11204
+ maxWidth: "G+B",
11205
+ padding: "A1"
11023
11206
  },
11024
- Header: {},
11025
- SearchContainer: {
11026
- extend: Flex,
11207
+ Header: null,
11208
+ Content: {
11027
11209
  props: {
11028
- padding: "0 Z1 Y2 Z1",
11029
- background: "transparent"
11210
+ flow: "column",
11211
+ gap: "A1"
11030
11212
  },
11031
- Search: {
11032
- extend: Search,
11213
+ childExtend: {
11214
+ extend: UnitValue,
11033
11215
  props: {
11034
- maxWidth: "100%",
11035
- minWidth: "100%",
11036
- minHeight: "C",
11037
- theme: "transparent",
11038
- round: "Z1"
11216
+ justifyContent: "space-between",
11217
+ textTransform: "capitalize",
11218
+ color: "white"
11219
+ }
11220
+ },
11221
+ ...[
11222
+ {
11223
+ Unit: { props: { text: "subtotal" } },
11224
+ Value: { props: { text: "$5,499.00" } }
11039
11225
  },
11040
- Icon: {
11041
- props: {
11042
- fontSize: "C",
11043
- color: "gray2"
11044
- }
11226
+ {
11227
+ Unit: { props: { text: "Shipping" } },
11228
+ Value: { props: { text: "Free" } }
11045
11229
  },
11046
- Input: { fontSize: "Z" }
11047
- }
11230
+ {
11231
+ Unit: { props: { text: "Savings" } },
11232
+ Value: { props: { text: "$1,600.00" } }
11233
+ }
11234
+ ]
11048
11235
  },
11049
- Groups: {
11050
- Flex: {
11051
- childExtend: {
11052
- Title: {},
11053
- List: {
11054
- Flex: {
11055
- childExtend: {
11056
- props: {}
11057
- }
11058
- }
11059
- }
11236
+ Footer: {
11237
+ props: {
11238
+ margin: "- -X -X"
11239
+ },
11240
+ CommonButton: {
11241
+ flex: "1",
11242
+ padding: "Z2 -",
11243
+ round: "Y2",
11244
+ theme: "secondary",
11245
+ margin: "- -X -X",
11246
+ Caption: {
11247
+ text: "Add promo code",
11248
+ fontSize: "Z",
11249
+ fontWeight: "500"
11060
11250
  }
11061
11251
  }
11062
11252
  }
11063
11253
  };
11064
- var GroupListWithSearchTemplate = {
11065
- extend: GroupListWithSearch,
11066
- Header: {},
11067
- SearchContainer: {},
11068
- Groups: {
11069
- Flex: {
11070
- ...[
11071
- {
11072
- Title: null,
11073
- List: {
11074
- Flex: {
11075
- ...[
11076
- { span: { text: "Item" } },
11077
- { span: { text: "Item" } }
11078
- ]
11079
- }
11080
- }
11081
- },
11082
- {
11083
- Title: {},
11084
- List: {
11085
- Flex: {
11086
- ...[
11087
- { span: { text: "Item" } },
11088
- { span: { text: "Item" } },
11089
- { span: { text: "Item" } }
11090
- ]
11091
- }
11092
- }
11093
- },
11094
- {
11095
- Title: {},
11096
- List: {
11097
- Flex: {
11098
- ...[
11099
- { span: { text: "Item" } },
11100
- { span: { text: "Item" } },
11101
- { span: { text: "Item" } },
11102
- { span: { text: "Item" } },
11103
- { span: { text: "Item" } }
11104
- ]
11105
- }
11106
- }
11107
- }
11108
- ]
11109
- }
11110
- }
11111
- };
11112
11254
 
11113
11255
  // TimePicker/TimePickerItem.js
11114
11256
  var props2 = {
@@ -11854,7 +11996,7 @@ var UploadLabel = {
11854
11996
  gap: "Y2",
11855
11997
  align: "center flex-start",
11856
11998
  fontSize: "Z1",
11857
- color: "gray2"
11999
+ color: "title"
11858
12000
  },
11859
12001
  UploadButton: {
11860
12002
  caption: {
@@ -12052,7 +12194,7 @@ var UploadedProcess = {
12052
12194
  text: "Done",
12053
12195
  fontSize: "Y",
12054
12196
  lineHeight: "1em",
12055
- color: "gray2",
12197
+ color: "title",
12056
12198
  display: "block"
12057
12199
  }
12058
12200
  },
@@ -12183,7 +12325,7 @@ var UploadingProcess4 = {
12183
12325
  margin: "0",
12184
12326
  padding: "0",
12185
12327
  fontSize: "Y1",
12186
- color: "gray2"
12328
+ color: "title"
12187
12329
  },
12188
12330
  ProgressCircleWithSideUnitValue: null
12189
12331
  }