@symbo.ls/uikit 2.11.238 → 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)) {
@@ -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
  }
@@ -5579,6 +5602,7 @@ __export(uikit_exports, {
5579
5602
  AvatarChooser: () => AvatarChooser,
5580
5603
  AvatarIndicator: () => AvatarIndicator,
5581
5604
  BalanceCard: () => BalanceCard,
5605
+ Banner: () => Banner,
5582
5606
  Block: () => Block,
5583
5607
  Box: () => Box,
5584
5608
  Br: () => Br,
@@ -5611,6 +5635,7 @@ __export(uikit_exports, {
5611
5635
  Dialog: () => Dialog,
5612
5636
  DialogFooter: () => DialogFooter,
5613
5637
  Direction: () => Direction,
5638
+ DotList: () => DotList,
5614
5639
  DoubleHr: () => DoubleHr,
5615
5640
  DoubleUnitValue: () => DoubleUnitValue,
5616
5641
  DropDownButton: () => DropDownButton,
@@ -8352,6 +8377,7 @@ var Text = {
8352
8377
  textDecoration: ({ props: props4 }) => props4.textDecoration && { textDecoration: props4.textDecoration },
8353
8378
  textTransform: ({ props: props4 }) => props4.textTransform && { textTransform: props4.textTransform },
8354
8379
  whiteSpace: ({ props: props4 }) => props4.whiteSpace && { whiteSpace: props4.whiteSpace },
8380
+ wordWrap: ({ props: props4 }) => props4.wordWrap && { wordWrap: props4.wordWrap },
8355
8381
  letterSpacing: ({ props: props4 }) => props4.letterSpacing && { letterSpacing: props4.letterSpacing },
8356
8382
  textAlign: ({ props: props4 }) => props4.textAlign && { textAlign: props4.textAlign },
8357
8383
  fontWeight: ({ props: props4 }) => props4.fontWeight && {
@@ -8743,150 +8769,830 @@ var TitleParagraphButton = {
8743
8769
  Paragraph: {}
8744
8770
  };
8745
8771
 
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,
8772
+ // List/List.js
8773
+ var List = {
8761
8774
  props: {
8762
- align: "center flex-start",
8763
- gap: "Y"
8764
- },
8765
- UnitValue: {
8766
- Value: { text: "72" },
8767
- 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
+ }
8768
8796
  },
8769
- dot: {
8797
+ Flex: {
8770
8798
  props: {
8771
- boxSize: "W W",
8772
- round: "100%",
8773
- 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
+ }
8774
8816
  }
8775
- },
8776
- UnitValue2: {
8777
- extend: UnitValue,
8778
- props: { gap: "X+W" },
8779
- Value: { text: "2" },
8780
- Unit: { text: "Second left" }
8781
8817
  }
8782
8818
  };
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: "%" }
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
+ ]
8806
8838
  }
8807
8839
  };
8808
- var UnitValueWithTitle = {
8840
+ var DotList = {
8809
8841
  extend: Flex,
8810
8842
  props: {
8811
- align: "center flex-start",
8812
- gap: "Y",
8813
- fontSize: "Z1"
8843
+ flow: "column",
8844
+ gap: "Y"
8814
8845
  },
8815
- Title: {
8816
- tag: "caption",
8846
+ childExtend: {
8847
+ extend: Flex,
8817
8848
  props: {
8818
- text: "balance :",
8819
- 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
+ }
8820
8858
  }
8821
8859
  },
8822
- UnitValue: {
8823
- textTransform: "uppercase",
8824
- gap: "Y",
8825
- color: "currentColor",
8826
- Value: { text: "0" },
8827
- Unit: { text: "bnb" }
8828
- }
8860
+ ...[{ props: { text: "Brat font" } }]
8829
8861
  };
8830
8862
 
8831
- // Link/index.js
8832
- var import_router = __toESM(require_cjs6());
8833
- var Link = {
8834
- extend: Focusable,
8835
- tag: "a",
8863
+ // List/ListWithTitle.js
8864
+ var ListWithTitle = {
8865
+ extend: Flex,
8836
8866
  props: {
8837
- aria: {},
8838
- fontWeight: "bold",
8839
- textDecoration: "none",
8840
- color: "currentColor",
8841
- draggable: false
8867
+ flow: "column",
8868
+ overflow: "hidden",
8869
+ round: "A",
8870
+ maxWidth: "F1"
8842
8871
  },
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
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
+ }
8852
8893
  }
8853
8894
  };
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
- }
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
+ ]
8871
8907
  }
8872
8908
  }
8873
8909
  };
8874
- var RouteLink = {
8875
- extend: [Link, RouterLink]
8876
- };
8877
8910
 
8878
- // Video/index.js
8879
- var Video = {
8880
- tag: "video",
8881
- childExtend: {
8882
- tag: "source",
8883
- attr: {
8884
- src: ({ props: props4 }) => props4.src,
8885
- controls: ({ props: props4 }) => props4.controls
8886
- }
8887
- },
8911
+ // List/GroupList.js
8912
+ var GroupList = {
8913
+ extend: Flex,
8888
8914
  props: {
8889
- controls: true
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: {
9590
+ src: ({ props: props4 }) => props4.src,
9591
+ controls: ({ props: props4 }) => props4.controls
9592
+ }
9593
+ },
9594
+ props: {
9595
+ controls: true
8890
9596
  },
8891
9597
  attr: {
8892
9598
  src: ({ props: props4 }) => props4.src,
@@ -9166,263 +9872,32 @@ var TextareaWithButton = {
9166
9872
  };
9167
9873
 
9168
9874
  // Select/index.js
9169
- var Select = {
9170
- extend: Focusable,
9171
- tag: "select",
9172
- props: {
9173
- 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" }
9875
+ var Select = {
9876
+ extend: Focusable,
9877
+ tag: "select",
9878
+ props: {
9879
+ fontSize: "A",
9880
+ border: "none",
9881
+ boxSizing: "border-box",
9882
+ theme: "field",
9883
+ cursor: "pointer"
9410
9884
  },
9411
- TextArea: {
9412
- tag: "textarea",
9413
- attr: { placeholder: "Leave us a message..." },
9885
+ childExtend: {
9886
+ tag: "option",
9414
9887
  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" }
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
9425
9896
  }
9897
+ },
9898
+ attr: {
9899
+ name: ({ props: props4 }) => props4.name,
9900
+ disabled: ({ props: props4 }) => props4.disabled
9426
9901
  }
9427
9902
  };
9428
9903
 
@@ -10694,444 +11169,88 @@ var CompleteProcess = {
10694
11169
  }
10695
11170
  }
10696
11171
  };
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
- }
11172
+
11173
+ // Modal/Message.js
11174
+ var Message = {
11175
+ extend: Modal,
11176
+ props: {
11177
+ maxWidth: "G3",
11178
+ padding: "Z1 Z2 Z2 Z2"
10917
11179
  },
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%)"
11180
+ Header: {
11181
+ Title: {
11182
+ caption: {
11183
+ props: { text: "Message", fontSize: "C2" }
10932
11184
  },
10933
- ":after": {
10934
- bottom: "0",
10935
- background: "linear-gradient(to top, var(--theme-dialog-dark-background) 0%, transparent 100%)"
11185
+ x: {
11186
+ props: { padding: "V2" }
10936
11187
  }
10937
11188
  },
10938
- Flex: {
10939
- extend: Flex,
11189
+ Paragraph: {
10940
11190
  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
- }
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."
10973
11192
  }
10974
11193
  }
10975
11194
  }
10976
11195
  };
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
11196
 
11041
- // List/GroupListWithSearch.js
11042
- var GroupListWithSearch = {
11043
- extend: GroupList,
11197
+ // Modal/Pricing.js
11198
+ var Pricing = {
11199
+ extend: Modal,
11044
11200
  props: {
11045
- maxWidth: "G1"
11201
+ background: "gray3",
11202
+ gap: "B",
11203
+ minWidth: "G+B",
11204
+ maxWidth: "G+B",
11205
+ padding: "A1"
11046
11206
  },
11047
- Header: {},
11048
- SearchContainer: {
11049
- extend: Flex,
11207
+ Header: null,
11208
+ Content: {
11050
11209
  props: {
11051
- padding: "0 Z1 Y2 Z1",
11052
- background: "transparent"
11210
+ flow: "column",
11211
+ gap: "A1"
11053
11212
  },
11054
- Search: {
11055
- extend: Search,
11213
+ childExtend: {
11214
+ extend: UnitValue,
11056
11215
  props: {
11057
- maxWidth: "100%",
11058
- minWidth: "100%",
11059
- minHeight: "C",
11060
- theme: "transparent",
11061
- 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" } }
11062
11225
  },
11063
- Icon: {
11064
- props: {
11065
- fontSize: "C",
11066
- color: "title"
11067
- }
11226
+ {
11227
+ Unit: { props: { text: "Shipping" } },
11228
+ Value: { props: { text: "Free" } }
11068
11229
  },
11069
- Input: { fontSize: "Z" }
11070
- }
11230
+ {
11231
+ Unit: { props: { text: "Savings" } },
11232
+ Value: { props: { text: "$1,600.00" } }
11233
+ }
11234
+ ]
11071
11235
  },
11072
- Groups: {
11073
- Flex: {
11074
- childExtend: {
11075
- Title: {},
11076
- List: {
11077
- Flex: {
11078
- childExtend: {
11079
- props: {}
11080
- }
11081
- }
11082
- }
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"
11083
11250
  }
11084
11251
  }
11085
11252
  }
11086
11253
  };
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
11254
 
11136
11255
  // TimePicker/TimePickerItem.js
11137
11256
  var props2 = {