@symbo.ls/uikit 2.11.155 → 2.11.156

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
@@ -12219,7 +12219,7 @@ __export(domql_exports, {
12219
12219
  Br: () => Br,
12220
12220
  Button: () => Button,
12221
12221
  ButtonSet: () => ButtonSet,
12222
- CancenConfirmButtons: () => CancenConfirmButtons,
12222
+ CancelConfirmButtons: () => CancelConfirmButtons,
12223
12223
  Caption: () => Caption,
12224
12224
  Card: () => Card,
12225
12225
  CardLabel: () => CardLabel,
@@ -12274,8 +12274,8 @@ __export(domql_exports, {
12274
12274
  Headline: () => Headline,
12275
12275
  Hoverable: () => Hoverable,
12276
12276
  Hr: () => Hr,
12277
- Icon: () => Icon4,
12278
- IconText: () => IconText3,
12277
+ Icon: () => Icon3,
12278
+ IconText: () => IconText2,
12279
12279
  IconTextWithNotification: () => IconTextWithNotification,
12280
12280
  Iframe: () => Iframe,
12281
12281
  Img: () => Img,
@@ -12291,6 +12291,9 @@ __export(domql_exports, {
12291
12291
  Media: () => Media,
12292
12292
  MessageModal: () => MessageModal,
12293
12293
  Modal: () => Modal,
12294
+ ModalContent: () => ModalContent,
12295
+ ModalFooter: () => ModalFooter,
12296
+ ModalHeader: () => ModalHeader,
12294
12297
  ModalWithTitleParagraph: () => ModalWithTitleParagraph,
12295
12298
  Notification: () => Notification,
12296
12299
  NotificationAlert: () => NotificationAlert,
@@ -15064,7 +15067,7 @@ var KangorooButton = {
15064
15067
  extend: Button,
15065
15068
  childExtend: IconText
15066
15069
  };
15067
- var CancenConfirmButtons = {
15070
+ var CancelConfirmButtons = {
15068
15071
  extend: Flex,
15069
15072
  childExtend: Button,
15070
15073
  ...[
@@ -16491,44 +16494,6 @@ var import_utils8 = __toESM(require_cjs2());
16491
16494
  // Modal/node_modules/@symbo.ls/atoms/Position.js
16492
16495
  var import_scratch15 = __toESM(require_cjs6());
16493
16496
 
16494
- // Modal/node_modules/@symbo.ls/atoms/Svg.js
16495
- var Svg2 = {
16496
- tag: "svg",
16497
- props: {
16498
- style: { "*": { fill: "currentColor" } }
16499
- },
16500
- attr: {
16501
- xmlns: "http://www.w3.org/2000/svg",
16502
- "xmlns:xlink": "http://www.w3.org/1999/xlink"
16503
- },
16504
- html: ({ key, props: props6, context, ...el }) => {
16505
- const { designSystem, utils } = context;
16506
- const SVG = designSystem && designSystem.SVG;
16507
- const useSvgSprite = props6.spriteId || context.designSystem && context.designSystem.useSvgSprite;
16508
- const useSVGSymbol = (icon) => `<use xlink:href="#${icon}" />`;
16509
- const init = utils && utils.init;
16510
- if (!useSvgSprite && props6.src)
16511
- return props6.src;
16512
- const spriteId = props6.spriteId;
16513
- if (spriteId)
16514
- return useSVGSymbol(spriteId);
16515
- const symbolId = Symbol.for(props6.src);
16516
- let SVGKey = SVG[symbolId];
16517
- if (SVGKey && SVG[SVGKey])
16518
- return useSVGSymbol(SVGKey);
16519
- SVGKey = SVG[symbolId] = Math.random();
16520
- if (props6.src) {
16521
- init({
16522
- svg: { [SVGKey]: props6.src }
16523
- }, {
16524
- document: context.document,
16525
- emotion: context.emotion
16526
- });
16527
- }
16528
- return useSVGSymbol(SVGKey);
16529
- }
16530
- };
16531
-
16532
16497
  // Modal/node_modules/@symbo.ls/atoms/Shape/index.js
16533
16498
  var import_utils9 = __toESM(require_cjs2());
16534
16499
  var import_scratch16 = __toESM(require_cjs6());
@@ -16985,126 +16950,77 @@ var CodeField = {
16985
16950
  };
16986
16951
  var FieldWithTitle = {
16987
16952
  extend: Flex3,
16988
- title: { tag: "h6", props: { text: "Old password" } },
16989
- field: { extend: CustomizedField },
16990
16953
  props: {
16991
16954
  flow: "column",
16992
- gap: "Y",
16993
- title: {
16955
+ gap: "Y"
16956
+ },
16957
+ Title: {
16958
+ tag: "h6",
16959
+ props: {
16960
+ text: "Old password",
16994
16961
  fontSize: "Z",
16995
16962
  color: "#CFCFD1",
16996
16963
  fontWeight: "400"
16997
- },
16998
- subTitle: {
16999
- fontSize: "Z",
17000
- gap: "X+V",
17001
- padding: "X - - -",
17002
- icon: { boxSize: "Z+X Z+X" }
17003
16964
  }
16965
+ },
16966
+ CustomizedField: {
16967
+ fontSize: "Z",
16968
+ gap: "X+V",
16969
+ padding: "X - - -",
16970
+ icon: { boxSize: "Z+X Z+X" }
17004
16971
  }
17005
16972
  };
17006
16973
 
17007
- // Modal/node_modules/@symbo.ls/icon/index.js
17008
- var Icon3 = {
17009
- extend: Svg2,
17010
- props: ({ key, props: props6, parent, context }) => {
17011
- const { ICONS, useIconSprite, verbose } = context && context.designSystem;
17012
- const { toCamelCase } = context && context.utils;
17013
- const iconName = props6.inheritedString || props6.name || props6.icon || key;
17014
- const camelCase = toCamelCase(iconName);
17015
- const isArray7 = camelCase.split(/([a-z])([A-Z])/g);
17016
- let activeIconName;
17017
- if (props6.active) {
17018
- activeIconName = props6[".active"].name || props6[".active"].icon;
17019
- }
17020
- if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
17021
- activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
17022
- }
17023
- let validIconName;
17024
- if (ICONS[activeIconName])
17025
- validIconName = activeIconName;
17026
- if (ICONS[camelCase])
17027
- validIconName = camelCase;
17028
- else if (ICONS[isArray7[0] + isArray7[1]])
17029
- validIconName = isArray7[0] + isArray7[1];
17030
- else if (ICONS[isArray7[0]])
17031
- validIconName = isArray7[0];
17032
- else {
17033
- if (verbose)
17034
- console.warn("Can't find icon:", iconName, validIconName);
16974
+ // Modal/index.js
16975
+ var ModalHeader = {
16976
+ extend: Flex2,
16977
+ props: {},
16978
+ title: {
16979
+ props: {
16980
+ fontSize: "B"
17035
16981
  }
17036
- const iconFromLibrary = ICONS[validIconName];
17037
- const directSrc = parent && parent.props && parent.props.src || props6.src;
17038
- return {
17039
- width: "A",
17040
- height: "A",
17041
- display: "inline-block",
17042
- spriteId: useIconSprite && validIconName,
17043
- src: iconFromLibrary || directSrc || ICONS.noIcon,
17044
- style: { fill: "currentColor" }
17045
- };
17046
16982
  },
17047
- attr: { viewBox: "0 0 24 24" }
16983
+ close: {
16984
+ extend: Button,
16985
+ props: {
16986
+ icon: "x",
16987
+ margin: "- - - auto",
16988
+ background: "transparent",
16989
+ color: "white",
16990
+ fontSize: "D",
16991
+ padding: "0"
16992
+ }
16993
+ }
17048
16994
  };
17049
- var IconText2 = {
16995
+ var ModalContent = {
17050
16996
  extend: Flex2,
17051
16997
  props: {
17052
- align: "center center",
17053
- lineHeight: 1
17054
- },
17055
- // TODO: remove this variant
17056
- icon: {
17057
- extend: Icon3,
17058
- if: ({ parent }) => parent.props.icon
17059
- },
17060
- Icon: {
17061
- props: {},
17062
- if: ({ props: props6 }) => props6.name || props6.icon
17063
- },
17064
- text: ({ props: props6 }) => props6.text,
17065
- ".reversed": {
17066
- props: { flow: "row-reverse" }
17067
- },
17068
- ".vertical": {
17069
- props: { flow: "column" }
16998
+ flow: "column"
16999
+ }
17000
+ };
17001
+ var ModalFooter = {
17002
+ extend: Flex2,
17003
+ props: {
17004
+ flow: "column"
17070
17005
  }
17071
17006
  };
17072
-
17073
- // Modal/index.js
17074
17007
  var Modal = {
17075
17008
  extend: Flex2,
17076
- header: {
17077
- extend: Flex2,
17078
- close: {
17079
- extend: Button,
17080
- props: { icon: "x" }
17081
- }
17082
- },
17083
- content: { extend: Flex2 },
17084
- footer: { extend: Flex2 },
17085
17009
  props: {
17086
17010
  background: "#1C1C1F",
17087
17011
  padding: "A",
17088
17012
  flow: "column",
17089
- round: "Z+V",
17090
- header: {
17091
- title: { fontSize: "B" },
17092
- close: {
17093
- margin: "- - - auto",
17094
- background: "transparent",
17095
- color: "white",
17096
- fontSize: "D",
17097
- padding: "0"
17098
- }
17099
- },
17100
- content: { flow: "column" }
17101
- }
17013
+ round: "Z+V"
17014
+ },
17015
+ ModalHeader: {},
17016
+ ModalContent: {},
17017
+ ModalFooter: {}
17102
17018
  };
17103
17019
  var ModalWithTitleParagraph = {
17104
17020
  extend: Modal,
17105
- header: { heading: { extend: TitleParagraph } },
17106
- props: {
17107
- header: {
17021
+ ModalHeader: {
17022
+ props: {},
17023
+ TitleParagraph: {
17108
17024
  alignItems: "flex-start",
17109
17025
  heading: {
17110
17026
  gap: "A",
@@ -17115,26 +17031,14 @@ var ModalWithTitleParagraph = {
17115
17031
  };
17116
17032
  var ResetCompleteModal = {
17117
17033
  extend: Modal,
17118
- header: {},
17119
- content: {
17120
- icon: { extend: CheckMark },
17121
- titleParagraph: {
17122
- extend: TitleParagraph,
17123
- title: { props: { text: "Reset complete!" } },
17124
- paragraph: { props: { text: "Your request has been approved!" } }
17125
- }
17126
- },
17127
- footer: {
17128
- button: {
17129
- extend: Button,
17130
- props: { text: "Done" }
17131
- }
17132
- },
17133
17034
  props: {
17134
17035
  minWidth: "G+E",
17135
17036
  maxWidth: "G+E",
17136
- gap: "B",
17137
- content: {
17037
+ gap: "B"
17038
+ },
17039
+ ModalHeader: {},
17040
+ ModalContent: {
17041
+ props: {
17138
17042
  flow: "column",
17139
17043
  align: "center center",
17140
17044
  gap: "B",
@@ -17143,7 +17047,14 @@ var ResetCompleteModal = {
17143
17047
  title: { fontSize: "B" }
17144
17048
  }
17145
17049
  },
17146
- footer: {
17050
+ CheckMark: {},
17051
+ TitleParagraph: {
17052
+ title: { text: "Reset complete!" },
17053
+ paragraph: { text: "Your request has been approved!" }
17054
+ }
17055
+ },
17056
+ ModalFooter: {
17057
+ props: {
17147
17058
  minWidth: "100%",
17148
17059
  button: {
17149
17060
  background: "#0474F2",
@@ -17152,42 +17063,63 @@ var ResetCompleteModal = {
17152
17063
  padding: "A -",
17153
17064
  round: "A"
17154
17065
  }
17066
+ },
17067
+ Button: {
17068
+ props: { text: "Done" }
17155
17069
  }
17156
17070
  }
17157
17071
  };
17158
17072
  var MessageModal = {
17159
17073
  extend: Modal,
17160
- header: {
17074
+ props: {
17075
+ minWidth: "G+E",
17076
+ maxWidth: "G+E"
17077
+ },
17078
+ ModalHeader: {
17161
17079
  title: {
17162
17080
  tag: "h5",
17163
17081
  props: { text: "Message" }
17164
17082
  },
17165
17083
  close: {}
17166
17084
  },
17167
- content: {
17085
+ ModalContent: {
17086
+ props: {
17087
+ p: { fontSize: "Z" }
17088
+ },
17168
17089
  p: {
17169
17090
  props: { 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 Apples Sales and Refunds Policy." }
17170
17091
  }
17171
17092
  },
17172
- footer: null,
17173
- props: {
17174
- minWidth: "G+E",
17175
- maxWidth: "G+E",
17176
- content: { p: { fontSize: "Z" } }
17177
- }
17093
+ ModalFooter: null
17178
17094
  };
17179
17095
  var ChangePasswordModal = {
17180
17096
  extend: ModalWithTitleParagraph,
17181
- header: {},
17182
- content: {
17183
- childExtend: { extend: FieldWithTitle },
17097
+ props: {
17098
+ minWidth: "H",
17099
+ maxWidth: "H",
17100
+ gap: "B"
17101
+ },
17102
+ ModalHeader: {},
17103
+ ModalContent: {
17104
+ props: {
17105
+ flow: "column",
17106
+ gap: "B",
17107
+ childProps: {
17108
+ field: {
17109
+ width: "100%",
17110
+ input: { type: "password" }
17111
+ }
17112
+ }
17113
+ },
17114
+ childExtend: FieldWithTitle,
17184
17115
  ...[
17185
- { title: { props: { text: "Old password" } } },
17186
17116
  {
17187
- title: { props: { text: "New password" } },
17188
- field: { input: {} },
17189
- subTitle: {
17190
- extend: IconText2,
17117
+ Title: { props: { text: "Old password" } }
17118
+ },
17119
+ {
17120
+ Title: { props: { text: "New password" } },
17121
+ CustomizedField: { input: {} },
17122
+ IconText: {
17191
17123
  props: {
17192
17124
  icon: { name: "info" },
17193
17125
  text: "8 character minimum",
@@ -17197,60 +17129,55 @@ var ChangePasswordModal = {
17197
17129
  }
17198
17130
  },
17199
17131
  {
17200
- title: { props: { text: "Confirm new password" } },
17201
- field: {
17132
+ Title: { props: { text: "Confirm new password" } },
17133
+ CustomizedField: {
17202
17134
  input: {}
17203
17135
  },
17204
- subTitle: {
17205
- extend: IconText2,
17206
- props: {
17207
- icon: { name: "info" },
17208
- text: "8 character minimum",
17209
- align: "center flex-start",
17210
- boxSize: "fit-content"
17211
- }
17136
+ IconText: {
17137
+ icon: { name: "info" },
17138
+ text: "8 character minimum",
17139
+ align: "center flex-start",
17140
+ boxSize: "fit-content"
17212
17141
  }
17213
17142
  }
17214
17143
  ]
17215
17144
  },
17216
- footer: { "CancenConfirmButtons.1": { ...[{}, { text: "Reset password" }] } },
17217
- props: {
17218
- minWidth: "H",
17219
- maxWidth: "H",
17220
- gap: "B",
17221
- content: {
17222
- flow: "column",
17223
- gap: "B",
17224
- childProps: {
17225
- field: {
17226
- width: "100%",
17227
- input: { type: "password" }
17228
- }
17229
- }
17145
+ ModalFooter: {
17146
+ props: {
17147
+ justifyContent: "flex-end"
17230
17148
  },
17231
- footer: { justifyContent: "flex-end" }
17149
+ CancelConfirmButtons: {
17150
+ ...[{}, { text: "Reset password" }]
17151
+ }
17232
17152
  }
17233
17153
  };
17234
17154
  var VerificationCodeModal = {
17235
17155
  extend: ModalWithTitleParagraph,
17236
- header: {
17156
+ props: {
17157
+ maxWidth: "G+E",
17158
+ minWidth: "G+E",
17159
+ gap: "B"
17160
+ },
17161
+ ModalHeader: {
17162
+ props: {},
17237
17163
  heading: {
17238
17164
  title: { props: { text: "Verify your email" } },
17239
17165
  paragraph: { props: { text: "Verification code has been sent to you. Enter the code below." } }
17240
17166
  }
17241
17167
  },
17242
- content: {
17243
- codeField: { extend: CodeField },
17244
- paragraph: { extend: ParagraphWithUnderlineButton }
17168
+ ModalContent: {
17169
+ props: {
17170
+ gap: "B"
17171
+ },
17172
+ CodeField: {},
17173
+ ParagraphWithUnderlineButton: {}
17245
17174
  },
17246
- footer: { "CancenConfirmButtons.1": { ...[{}, { text: "Verify" }] } },
17247
- props: {
17248
- maxWidth: "G+E",
17249
- minWidth: "G+E",
17250
- gap: "B",
17251
- content: { gap: "B" },
17252
- footer: {
17175
+ ModalFooter: {
17176
+ props: {
17253
17177
  justifyContent: "flex-end"
17178
+ },
17179
+ CancelConfirmButtons: {
17180
+ ...[{}, { text: "Verify" }]
17254
17181
  }
17255
17182
  }
17256
17183
  };
@@ -17386,7 +17313,7 @@ var ContactForm = {
17386
17313
  };
17387
17314
 
17388
17315
  // node_modules/@symbo.ls/icon/index.js
17389
- var Icon4 = {
17316
+ var Icon3 = {
17390
17317
  extend: Svg,
17391
17318
  props: ({ key, props: props6, parent, context }) => {
17392
17319
  const { ICONS, useIconSprite, verbose } = context && context.designSystem;
@@ -17427,7 +17354,7 @@ var Icon4 = {
17427
17354
  },
17428
17355
  attr: { viewBox: "0 0 24 24" }
17429
17356
  };
17430
- var IconText3 = {
17357
+ var IconText2 = {
17431
17358
  extend: Flex,
17432
17359
  props: {
17433
17360
  align: "center center",
@@ -17435,7 +17362,7 @@ var IconText3 = {
17435
17362
  },
17436
17363
  // TODO: remove this variant
17437
17364
  icon: {
17438
- extend: Icon4,
17365
+ extend: Icon3,
17439
17366
  if: ({ parent }) => parent.props.icon
17440
17367
  },
17441
17368
  Icon: {
@@ -18582,7 +18509,7 @@ var ConvertCard = {
18582
18509
  var IconTextWithNotification = {
18583
18510
  extend: Flex,
18584
18511
  iconText: {
18585
- extend: IconText3,
18512
+ extend: IconText2,
18586
18513
  props: {
18587
18514
  icon: { name: "trash" },
18588
18515
  text: "trash"
@@ -18615,7 +18542,7 @@ var IconTextWithNotification = {
18615
18542
  };
18616
18543
 
18617
18544
  // SlideTabs/node_modules/@symbo.ls/icon/index.js
18618
- var Icon5 = {
18545
+ var Icon4 = {
18619
18546
  extend: Svg,
18620
18547
  props: ({ key, props: props6, parent, context }) => {
18621
18548
  const { ICONS, useIconSprite, verbose } = context && context.designSystem;
@@ -18656,7 +18583,7 @@ var Icon5 = {
18656
18583
  },
18657
18584
  attr: { viewBox: "0 0 24 24" }
18658
18585
  };
18659
- var IconText4 = {
18586
+ var IconText3 = {
18660
18587
  extend: Flex,
18661
18588
  props: {
18662
18589
  align: "center center",
@@ -18664,7 +18591,7 @@ var IconText4 = {
18664
18591
  },
18665
18592
  // TODO: remove this variant
18666
18593
  icon: {
18667
- extend: Icon5,
18594
+ extend: Icon4,
18668
18595
  if: ({ parent }) => parent.props.icon
18669
18596
  },
18670
18597
  Icon: {
@@ -18682,7 +18609,7 @@ var IconText4 = {
18682
18609
 
18683
18610
  // SlideTabs/node_modules/@symbo.ls/button/index.js
18684
18611
  var Button2 = {
18685
- extend: [FocusableComponent, IconText4],
18612
+ extend: [FocusableComponent, IconText3],
18686
18613
  tag: "button",
18687
18614
  props: {
18688
18615
  fontSize: "A",
@@ -18701,7 +18628,7 @@ var Button2 = {
18701
18628
  type: ({ props: props6 }) => props6.type
18702
18629
  }
18703
18630
  };
18704
- var CancenConfirmButtons2 = {
18631
+ var CancenConfirmButtons = {
18705
18632
  extend: Flex,
18706
18633
  childExtend: Button2,
18707
18634
  ...[