@heymantle/litho 0.0.4 → 0.0.5

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.
Files changed (146) hide show
  1. package/dist/cjs/components/Autocomplete.js +23 -12
  2. package/dist/cjs/components/Button.js +44 -6
  3. package/dist/cjs/components/Card.js +1 -0
  4. package/dist/cjs/components/ColorField.js +2 -2
  5. package/dist/cjs/components/EmptyState.js +2 -2
  6. package/dist/cjs/components/Filters.js +4 -3
  7. package/dist/cjs/components/Frame.js +9 -9
  8. package/dist/cjs/components/HorizontalStack.js +9 -2
  9. package/dist/cjs/components/Icon.js +1 -0
  10. package/dist/cjs/components/List.js +3 -3
  11. package/dist/cjs/components/Pane.js +61 -17
  12. package/dist/cjs/components/Stack.js +223 -0
  13. package/dist/cjs/components/Table.js +1 -1
  14. package/dist/cjs/components/Tabs.js +41 -11
  15. package/dist/cjs/components/VerticalStack.js +8 -2
  16. package/dist/cjs/index.js +4 -0
  17. package/dist/cjs/stories/ActionList.stories.js +1 -1
  18. package/dist/cjs/stories/Autocomplete.stories.js +20 -17
  19. package/dist/cjs/stories/Box.stories.js +14 -12
  20. package/dist/cjs/stories/ButtonGroup.stories.js +5 -5
  21. package/dist/cjs/stories/Card.stories.js +8 -8
  22. package/dist/cjs/stories/Checkbox.stories.js +3 -3
  23. package/dist/cjs/stories/ChoiceList.stories.js +13 -12
  24. package/dist/cjs/stories/Collapsible.stories.js +51 -39
  25. package/dist/cjs/stories/ColorField.stories.js +23 -19
  26. package/dist/cjs/stories/ContextualSaveBar.stories.js +15 -14
  27. package/dist/cjs/stories/DatePicker.stories.js +3 -3
  28. package/dist/cjs/stories/Divider.stories.js +64 -57
  29. package/dist/cjs/stories/DropZone.stories.js +25 -20
  30. package/dist/cjs/stories/Filters.stories.js +62 -60
  31. package/dist/cjs/stories/FooterHelp.stories.js +36 -31
  32. package/dist/cjs/stories/Form.stories.js +23 -20
  33. package/dist/cjs/stories/Grid.stories.js +58 -58
  34. package/dist/cjs/stories/Icon.stories.js +31 -28
  35. package/dist/cjs/stories/Image.stories.js +36 -36
  36. package/dist/cjs/stories/InlineError.stories.js +35 -34
  37. package/dist/cjs/stories/Label.stories.js +59 -59
  38. package/dist/cjs/stories/Layout.stories.js +44 -42
  39. package/dist/cjs/stories/LayoutSection.stories.js +114 -106
  40. package/dist/cjs/stories/Link.stories.js +14 -12
  41. package/dist/cjs/stories/List.stories.js +67 -50
  42. package/dist/cjs/stories/Listbox.stories.js +26 -22
  43. package/dist/cjs/stories/Loading.stories.js +59 -50
  44. package/dist/cjs/stories/Modal.stories.js +7 -7
  45. package/dist/cjs/stories/Page.stories.js +38 -29
  46. package/dist/cjs/stories/Pane.stories.js +135 -120
  47. package/dist/cjs/stories/Popover.stories.js +12 -8
  48. package/dist/cjs/stories/PopoverManager.stories.js +91 -83
  49. package/dist/cjs/stories/ProgressBar.stories.js +61 -54
  50. package/dist/cjs/stories/RadioButtonCard.stories.js +21 -21
  51. package/dist/cjs/stories/RangeSlider.stories.js +44 -40
  52. package/dist/cjs/stories/ResourceList.stories.js +46 -37
  53. package/dist/cjs/stories/SkeletonText.stories.js +23 -22
  54. package/dist/cjs/stories/Spinner.stories.js +46 -39
  55. package/dist/cjs/stories/Stack.stories.js +1397 -0
  56. package/dist/cjs/stories/Tabs.stories.js +1 -2
  57. package/dist/cjs/stories/Tag.stories.js +44 -36
  58. package/dist/cjs/stories/Thumbnail.stories.js +42 -38
  59. package/dist/cjs/stories/TimePicker.stories.js +33 -32
  60. package/dist/cjs/stories/Tip.stories.js +21 -21
  61. package/dist/cjs/stories/TopBar.stories.js +7 -5
  62. package/dist/esm/components/Autocomplete.js +23 -12
  63. package/dist/esm/components/Button.js +44 -6
  64. package/dist/esm/components/Card.js +1 -0
  65. package/dist/esm/components/ColorField.js +2 -2
  66. package/dist/esm/components/EmptyState.js +2 -2
  67. package/dist/esm/components/Filters.js +4 -3
  68. package/dist/esm/components/Frame.js +9 -9
  69. package/dist/esm/components/HorizontalStack.js +9 -2
  70. package/dist/esm/components/Icon.js +1 -0
  71. package/dist/esm/components/List.js +3 -3
  72. package/dist/esm/components/Pane.js +62 -18
  73. package/dist/esm/components/Stack.js +213 -0
  74. package/dist/esm/components/Table.js +1 -1
  75. package/dist/esm/components/Tabs.js +41 -11
  76. package/dist/esm/components/VerticalStack.js +8 -2
  77. package/dist/esm/index.js +1 -0
  78. package/dist/esm/stories/ActionList.stories.js +1 -1
  79. package/dist/esm/stories/Autocomplete.stories.js +20 -17
  80. package/dist/esm/stories/Box.stories.js +14 -12
  81. package/dist/esm/stories/ButtonGroup.stories.js +5 -5
  82. package/dist/esm/stories/Card.stories.js +8 -8
  83. package/dist/esm/stories/Checkbox.stories.js +3 -3
  84. package/dist/esm/stories/ChoiceList.stories.js +13 -12
  85. package/dist/esm/stories/Collapsible.stories.js +51 -39
  86. package/dist/esm/stories/ColorField.stories.js +23 -19
  87. package/dist/esm/stories/ContextualSaveBar.stories.js +15 -14
  88. package/dist/esm/stories/DatePicker.stories.js +3 -3
  89. package/dist/esm/stories/Divider.stories.js +64 -57
  90. package/dist/esm/stories/DropZone.stories.js +25 -20
  91. package/dist/esm/stories/Filters.stories.js +62 -60
  92. package/dist/esm/stories/FooterHelp.stories.js +36 -31
  93. package/dist/esm/stories/Form.stories.js +23 -20
  94. package/dist/esm/stories/Grid.stories.js +58 -58
  95. package/dist/esm/stories/Icon.stories.js +31 -28
  96. package/dist/esm/stories/Image.stories.js +36 -36
  97. package/dist/esm/stories/InlineError.stories.js +27 -26
  98. package/dist/esm/stories/Label.stories.js +59 -59
  99. package/dist/esm/stories/Layout.stories.js +44 -42
  100. package/dist/esm/stories/LayoutSection.stories.js +114 -106
  101. package/dist/esm/stories/Link.stories.js +14 -12
  102. package/dist/esm/stories/List.stories.js +67 -50
  103. package/dist/esm/stories/Listbox.stories.js +12 -8
  104. package/dist/esm/stories/Loading.stories.js +59 -50
  105. package/dist/esm/stories/Modal.stories.js +7 -7
  106. package/dist/esm/stories/Page.stories.js +7 -3
  107. package/dist/esm/stories/Pane.stories.js +95 -80
  108. package/dist/esm/stories/Popover.stories.js +12 -8
  109. package/dist/esm/stories/PopoverManager.stories.js +91 -83
  110. package/dist/esm/stories/ProgressBar.stories.js +61 -54
  111. package/dist/esm/stories/RadioButtonCard.stories.js +21 -21
  112. package/dist/esm/stories/RangeSlider.stories.js +34 -30
  113. package/dist/esm/stories/ResourceList.stories.js +46 -37
  114. package/dist/esm/stories/SkeletonText.stories.js +23 -22
  115. package/dist/esm/stories/Spinner.stories.js +40 -33
  116. package/dist/esm/stories/Stack.stories.js +1338 -0
  117. package/dist/esm/stories/Tabs.stories.js +1 -2
  118. package/dist/esm/stories/Tag.stories.js +27 -19
  119. package/dist/esm/stories/Thumbnail.stories.js +42 -38
  120. package/dist/esm/stories/TimePicker.stories.js +33 -32
  121. package/dist/esm/stories/Tip.stories.js +21 -21
  122. package/dist/esm/stories/TopBar.stories.js +7 -5
  123. package/dist/types/components/Autocomplete.d.ts +34 -29
  124. package/dist/types/components/Autocomplete.d.ts.map +1 -1
  125. package/dist/types/components/Button.d.ts +10 -0
  126. package/dist/types/components/Button.d.ts.map +1 -1
  127. package/dist/types/components/Card.d.ts +2 -0
  128. package/dist/types/components/Card.d.ts.map +1 -1
  129. package/dist/types/components/EmptyState.d.ts.map +1 -1
  130. package/dist/types/components/Filters.d.ts +3 -1
  131. package/dist/types/components/Filters.d.ts.map +1 -1
  132. package/dist/types/components/Frame.d.ts +3 -3
  133. package/dist/types/components/Frame.d.ts.map +1 -1
  134. package/dist/types/components/HorizontalStack.d.ts +2 -2
  135. package/dist/types/components/HorizontalStack.d.ts.map +1 -1
  136. package/dist/types/components/Icon.d.ts.map +1 -1
  137. package/dist/types/components/Pane.d.ts.map +1 -1
  138. package/dist/types/components/Stack.d.ts +49 -0
  139. package/dist/types/components/Stack.d.ts.map +1 -0
  140. package/dist/types/components/Tabs.d.ts +2 -0
  141. package/dist/types/components/Tabs.d.ts.map +1 -1
  142. package/dist/types/components/VerticalStack.d.ts +2 -2
  143. package/dist/types/components/VerticalStack.d.ts.map +1 -1
  144. package/dist/types/index.d.ts +1 -0
  145. package/index.css +11 -0
  146. package/package.json +2 -2
@@ -98,12 +98,11 @@ function _unsupported_iterable_to_array(o, minLen) {
98
98
  }
99
99
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
100
100
  import { transformStorySource } from "../utilities/transformers.js";
101
+ import Stack from "../components/Stack.js";
101
102
  import Image from "../components/Image.js";
102
103
  import Text from "../components/Text.js";
103
104
  import Card from "../components/Card.js";
104
105
  import Button from "../components/Button.js";
105
- import HorizontalStack from "../components/HorizontalStack.js";
106
- import VerticalStack from "../components/VerticalStack.js";
107
106
  import Box from "../components/Box.js";
108
107
  import Grid from "../components/Grid.js";
109
108
  import { useState } from "react";
@@ -188,8 +187,8 @@ export var BorderRadius = {
188
187
  minItemWidth: "200px",
189
188
  gap: "8",
190
189
  children: [
191
- /*#__PURE__*/ _jsxs(VerticalStack, {
192
- gap: "2",
190
+ /*#__PURE__*/ _jsxs(Stack, {
191
+ gap: "sm",
193
192
  inlineAlign: "center",
194
193
  children: [
195
194
  /*#__PURE__*/ _jsx(Image, {
@@ -208,8 +207,8 @@ export var BorderRadius = {
208
207
  })
209
208
  ]
210
209
  }),
211
- /*#__PURE__*/ _jsxs(VerticalStack, {
212
- gap: "2",
210
+ /*#__PURE__*/ _jsxs(Stack, {
211
+ gap: "sm",
213
212
  inlineAlign: "center",
214
213
  children: [
215
214
  /*#__PURE__*/ _jsx(Image, {
@@ -228,8 +227,8 @@ export var BorderRadius = {
228
227
  })
229
228
  ]
230
229
  }),
231
- /*#__PURE__*/ _jsxs(VerticalStack, {
232
- gap: "2",
230
+ /*#__PURE__*/ _jsxs(Stack, {
231
+ gap: "sm",
233
232
  inlineAlign: "center",
234
233
  children: [
235
234
  /*#__PURE__*/ _jsx(Image, {
@@ -248,8 +247,8 @@ export var BorderRadius = {
248
247
  })
249
248
  ]
250
249
  }),
251
- /*#__PURE__*/ _jsxs(VerticalStack, {
252
- gap: "2",
250
+ /*#__PURE__*/ _jsxs(Stack, {
251
+ gap: "sm",
253
252
  inlineAlign: "center",
254
253
  children: [
255
254
  /*#__PURE__*/ _jsx(Image, {
@@ -268,8 +267,8 @@ export var BorderRadius = {
268
267
  })
269
268
  ]
270
269
  }),
271
- /*#__PURE__*/ _jsxs(VerticalStack, {
272
- gap: "2",
270
+ /*#__PURE__*/ _jsxs(Stack, {
271
+ gap: "sm",
273
272
  inlineAlign: "center",
274
273
  children: [
275
274
  /*#__PURE__*/ _jsx(Image, {
@@ -288,8 +287,8 @@ export var BorderRadius = {
288
287
  })
289
288
  ]
290
289
  }),
291
- /*#__PURE__*/ _jsxs(VerticalStack, {
292
- gap: "2",
290
+ /*#__PURE__*/ _jsxs(Stack, {
291
+ gap: "sm",
293
292
  inlineAlign: "center",
294
293
  children: [
295
294
  /*#__PURE__*/ _jsx(Image, {
@@ -321,11 +320,12 @@ export var BorderRadius = {
321
320
  };
322
321
  export var RoundedProp = {
323
322
  render: function() {
324
- return /*#__PURE__*/ _jsxs(HorizontalStack, {
325
- gap: "4",
323
+ return /*#__PURE__*/ _jsxs(Stack, {
324
+ horizontal: true,
325
+ gap: "md",
326
326
  children: [
327
- /*#__PURE__*/ _jsxs(VerticalStack, {
328
- gap: "2",
327
+ /*#__PURE__*/ _jsxs(Stack, {
328
+ gap: "sm",
329
329
  inlineAlign: "center",
330
330
  children: [
331
331
  /*#__PURE__*/ _jsx(Image, {
@@ -343,8 +343,8 @@ export var RoundedProp = {
343
343
  })
344
344
  ]
345
345
  }),
346
- /*#__PURE__*/ _jsxs(VerticalStack, {
347
- gap: "2",
346
+ /*#__PURE__*/ _jsxs(Stack, {
347
+ gap: "sm",
348
348
  inlineAlign: "center",
349
349
  children: [
350
350
  /*#__PURE__*/ _jsx(Image, {
@@ -394,8 +394,8 @@ export var ResponsiveImage = {
394
394
  alt: 'Responsive image'
395
395
  },
396
396
  render: function(args) {
397
- return /*#__PURE__*/ _jsxs(VerticalStack, {
398
- gap: "2",
397
+ return /*#__PURE__*/ _jsxs(Stack, {
398
+ gap: "sm",
399
399
  children: [
400
400
  /*#__PURE__*/ _jsx(Image, _object_spread_props(_object_spread({}, args), {
401
401
  style: {
@@ -422,8 +422,8 @@ export var ResponsiveImage = {
422
422
  export var WithLoadCallback = {
423
423
  render: function() {
424
424
  var _useState = _sliced_to_array(useState('Loading...'), 2), loadStatus = _useState[0], setLoadStatus = _useState[1];
425
- return /*#__PURE__*/ _jsxs(VerticalStack, {
426
- gap: "4",
425
+ return /*#__PURE__*/ _jsxs(Stack, {
426
+ gap: "md",
427
427
  children: [
428
428
  /*#__PURE__*/ _jsx(Image, {
429
429
  source: "https://picsum.photos/400/300?random=11",
@@ -514,8 +514,8 @@ export var ProductShowcase = {
514
514
  }),
515
515
  /*#__PURE__*/ _jsx(Box, {
516
516
  padding: "4",
517
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
518
- gap: "2",
517
+ children: /*#__PURE__*/ _jsxs(Stack, {
518
+ gap: "sm",
519
519
  children: [
520
520
  /*#__PURE__*/ _jsx(Text, {
521
521
  variant: "headingSm",
@@ -575,7 +575,7 @@ export var ProfileCards = {
575
575
  minItemWidth: "200px",
576
576
  gap: "6",
577
577
  children: team.map(function(member, index) {
578
- return /*#__PURE__*/ _jsxs(VerticalStack, {
578
+ return /*#__PURE__*/ _jsxs(Stack, {
579
579
  gap: "4",
580
580
  inlineAlign: "center",
581
581
  as: Box,
@@ -594,8 +594,8 @@ export var ProfileCards = {
594
594
  objectFit: 'cover'
595
595
  }
596
596
  }),
597
- /*#__PURE__*/ _jsxs(VerticalStack, {
598
- gap: "1",
597
+ /*#__PURE__*/ _jsxs(Stack, {
598
+ gap: "xs",
599
599
  inlineAlign: "center",
600
600
  children: [
601
601
  /*#__PURE__*/ _jsx(Text, {
@@ -639,10 +639,10 @@ export var ImageGallery = {
639
639
  return /*#__PURE__*/ _jsx(Card, {
640
640
  title: "Photo Gallery",
641
641
  padded: true,
642
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
643
- gap: "8",
642
+ children: /*#__PURE__*/ _jsxs(Stack, {
643
+ gap: "lg",
644
644
  children: [
645
- selectedImage && /*#__PURE__*/ _jsxs(VerticalStack, {
645
+ selectedImage && /*#__PURE__*/ _jsxs(Stack, {
646
646
  gap: "4",
647
647
  inlineAlign: "center",
648
648
  as: Box,
@@ -708,8 +708,8 @@ export var ImageGallery = {
708
708
  };
709
709
  export var BannerImages = {
710
710
  render: function() {
711
- return /*#__PURE__*/ _jsxs(VerticalStack, {
712
- gap: "8",
711
+ return /*#__PURE__*/ _jsxs(Stack, {
712
+ gap: "lg",
713
713
  children: [
714
714
  /*#__PURE__*/ _jsx(Card, {
715
715
  title: "Hero Banner",
@@ -736,8 +736,8 @@ export var BannerImages = {
736
736
  color: 'white',
737
737
  textShadow: '2px 2px 4px rgba(0,0,0,0.7)'
738
738
  },
739
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
740
- gap: "2",
739
+ children: /*#__PURE__*/ _jsxs(Stack, {
740
+ gap: "sm",
741
741
  inlineAlign: "center",
742
742
  children: [
743
743
  /*#__PURE__*/ _jsx(Text, {
@@ -97,13 +97,13 @@ function _unsupported_iterable_to_array(o, minLen) {
97
97
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
98
98
  }
99
99
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
100
- import { transformStorySource } from "../utilities/transformers.js";
101
100
  import InlineError from "../components/InlineError.js";
102
101
  import Text from "../components/Text.js";
103
102
  import Card from "../components/Card.js";
104
103
  import TextField from "../components/TextField.js";
105
104
  import Button from "../components/Button.js";
106
- import { HorizontalStack, VerticalStack, Box } from "../dist/esm/index.js";
105
+ import Stack from "../components/Stack.js";
106
+ import Box from "../components/Box.js";
107
107
  import { AlertMinor, InfoMinor } from "@shopify/polaris-icons";
108
108
  import { useState } from "react";
109
109
  export default {
@@ -146,8 +146,8 @@ export var Default = {
146
146
  };
147
147
  export var DifferentMessages = {
148
148
  render: function() {
149
- return /*#__PURE__*/ _jsxs(VerticalStack, {
150
- gap: "4",
149
+ return /*#__PURE__*/ _jsxs(Stack, {
150
+ gap: "md",
151
151
  children: [
152
152
  /*#__PURE__*/ _jsx(InlineError, {
153
153
  message: "This field is required",
@@ -182,8 +182,8 @@ export var DifferentMessages = {
182
182
  };
183
183
  export var CustomIcons = {
184
184
  render: function() {
185
- return /*#__PURE__*/ _jsxs(VerticalStack, {
186
- gap: "4",
185
+ return /*#__PURE__*/ _jsxs(Stack, {
186
+ gap: "md",
187
187
  children: [
188
188
  /*#__PURE__*/ _jsx(InlineError, {
189
189
  message: "This is a critical error",
@@ -212,8 +212,8 @@ export var CustomIcons = {
212
212
  };
213
213
  export var WithFormField = {
214
214
  render: function() {
215
- return /*#__PURE__*/ _jsxs(VerticalStack, {
216
- gap: "2",
215
+ return /*#__PURE__*/ _jsxs(Stack, {
216
+ gap: "sm",
217
217
  children: [
218
218
  /*#__PURE__*/ _jsx(TextField, {
219
219
  label: "Email Address",
@@ -302,8 +302,8 @@ export var FormValidation = {
302
302
  padded: true,
303
303
  children: /*#__PURE__*/ _jsx("form", {
304
304
  onSubmit: handleSubmit,
305
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
306
- gap: "6",
305
+ children: /*#__PURE__*/ _jsxs(Stack, {
306
+ gap: "md",
307
307
  children: [
308
308
  /*#__PURE__*/ _jsxs("div", {
309
309
  children: [
@@ -423,16 +423,16 @@ export var MultipleErrors = {
423
423
  return /*#__PURE__*/ _jsx(Card, {
424
424
  title: "File Upload",
425
425
  padded: true,
426
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
427
- gap: "6",
426
+ children: /*#__PURE__*/ _jsxs(Stack, {
427
+ gap: "md",
428
428
  children: [
429
429
  /*#__PURE__*/ _jsx(TextField, {
430
430
  label: "Upload Files",
431
431
  placeholder: "Select files to upload",
432
432
  error: true
433
433
  }),
434
- /*#__PURE__*/ _jsxs(VerticalStack, {
435
- gap: "2",
434
+ /*#__PURE__*/ _jsxs(Stack, {
435
+ gap: "sm",
436
436
  children: [
437
437
  /*#__PURE__*/ _jsx(InlineError, {
438
438
  message: "File size must be less than 10MB",
@@ -448,8 +448,9 @@ export var MultipleErrors = {
448
448
  })
449
449
  ]
450
450
  }),
451
- /*#__PURE__*/ _jsxs(HorizontalStack, {
452
- gap: "4",
451
+ /*#__PURE__*/ _jsxs(Stack, {
452
+ horizontal: true,
453
+ gap: "md",
453
454
  children: [
454
455
  /*#__PURE__*/ _jsx(Button, {
455
456
  children: "Choose Files"
@@ -475,14 +476,14 @@ export var MultipleErrors = {
475
476
  };
476
477
  export var DifferentContexts = {
477
478
  render: function() {
478
- return /*#__PURE__*/ _jsxs(VerticalStack, {
479
- gap: "8",
479
+ return /*#__PURE__*/ _jsxs(Stack, {
480
+ gap: "lg",
480
481
  children: [
481
482
  /*#__PURE__*/ _jsx(Card, {
482
483
  title: "Login Form",
483
484
  padded: true,
484
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
485
- gap: "4",
485
+ children: /*#__PURE__*/ _jsxs(Stack, {
486
+ gap: "md",
486
487
  children: [
487
488
  /*#__PURE__*/ _jsx(TextField, {
488
489
  label: "Username",
@@ -509,8 +510,8 @@ export var DifferentContexts = {
509
510
  /*#__PURE__*/ _jsx(Card, {
510
511
  title: "Payment Information",
511
512
  padded: true,
512
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
513
- gap: "4",
513
+ children: /*#__PURE__*/ _jsxs(Stack, {
514
+ gap: "md",
514
515
  children: [
515
516
  /*#__PURE__*/ _jsx(TextField, {
516
517
  label: "Card Number",
@@ -565,8 +566,8 @@ export var DifferentContexts = {
565
566
  /*#__PURE__*/ _jsx(Card, {
566
567
  title: "Settings",
567
568
  padded: true,
568
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
569
- gap: "4",
569
+ children: /*#__PURE__*/ _jsxs(Stack, {
570
+ gap: "md",
570
571
  children: [
571
572
  /*#__PURE__*/ _jsx(TextField, {
572
573
  label: "API Endpoint",
@@ -605,8 +606,8 @@ export var AccessibilityExample = {
605
606
  return /*#__PURE__*/ _jsx(Card, {
606
607
  title: "Accessibility Features",
607
608
  padded: true,
608
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
609
- gap: "6",
609
+ children: /*#__PURE__*/ _jsxs(Stack, {
610
+ gap: "md",
610
611
  children: [
611
612
  /*#__PURE__*/ _jsx(Text, {
612
613
  variant: "headingSm",
@@ -28,11 +28,11 @@ function _object_spread(target) {
28
28
  }
29
29
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
30
  import { transformStorySource } from "../utilities/transformers.js";
31
+ import Stack from "../components/Stack.js";
31
32
  import Label from "../components/Label.js";
32
33
  import Text from "../components/Text.js";
33
34
  import Card from "../components/Card.js";
34
35
  import TextField from "../components/TextField.js";
35
- import VerticalStack from "../components/VerticalStack.js";
36
36
  import Box from "../components/Box.js";
37
37
  export default {
38
38
  title: 'Litho/Label',
@@ -150,8 +150,8 @@ export var Hidden = {
150
150
  hidden: true
151
151
  },
152
152
  render: function(args) {
153
- return /*#__PURE__*/ _jsxs(VerticalStack, {
154
- gap: "4",
153
+ return /*#__PURE__*/ _jsxs(Stack, {
154
+ gap: "md",
155
155
  children: [
156
156
  /*#__PURE__*/ _jsx(Label, _object_spread({}, args)),
157
157
  /*#__PURE__*/ _jsx(Text, {
@@ -183,8 +183,8 @@ export var Disabled = {
183
183
  };
184
184
  export var Variants = {
185
185
  render: function() {
186
- return /*#__PURE__*/ _jsxs(VerticalStack, {
187
- gap: "4",
186
+ return /*#__PURE__*/ _jsxs(Stack, {
187
+ gap: "md",
188
188
  children: [
189
189
  /*#__PURE__*/ _jsx(Label, {
190
190
  variant: "bodyXs",
@@ -215,8 +215,8 @@ export var Variants = {
215
215
  };
216
216
  export var FontWeights = {
217
217
  render: function() {
218
- return /*#__PURE__*/ _jsxs(VerticalStack, {
219
- gap: "4",
218
+ return /*#__PURE__*/ _jsxs(Stack, {
219
+ gap: "md",
220
220
  children: [
221
221
  /*#__PURE__*/ _jsx(Label, {
222
222
  fontWeight: "normal",
@@ -247,8 +247,8 @@ export var FontWeights = {
247
247
  };
248
248
  export var Colors = {
249
249
  render: function() {
250
- return /*#__PURE__*/ _jsxs(VerticalStack, {
251
- gap: "4",
250
+ return /*#__PURE__*/ _jsxs(Stack, {
251
+ gap: "md",
252
252
  children: [
253
253
  /*#__PURE__*/ _jsx(Label, {
254
254
  color: "subdued",
@@ -286,11 +286,11 @@ export var WithFormFields = {
286
286
  return /*#__PURE__*/ _jsx(Card, {
287
287
  title: "User Registration",
288
288
  padded: true,
289
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
290
- gap: "6",
289
+ children: /*#__PURE__*/ _jsxs(Stack, {
290
+ gap: "md",
291
291
  children: [
292
- /*#__PURE__*/ _jsxs(VerticalStack, {
293
- gap: "2",
292
+ /*#__PURE__*/ _jsxs(Stack, {
293
+ gap: "sm",
294
294
  children: [
295
295
  /*#__PURE__*/ _jsx(Label, {
296
296
  id: "firstName",
@@ -303,8 +303,8 @@ export var WithFormFields = {
303
303
  })
304
304
  ]
305
305
  }),
306
- /*#__PURE__*/ _jsxs(VerticalStack, {
307
- gap: "2",
306
+ /*#__PURE__*/ _jsxs(Stack, {
307
+ gap: "sm",
308
308
  children: [
309
309
  /*#__PURE__*/ _jsx(Label, {
310
310
  id: "lastName",
@@ -317,8 +317,8 @@ export var WithFormFields = {
317
317
  })
318
318
  ]
319
319
  }),
320
- /*#__PURE__*/ _jsxs(VerticalStack, {
321
- gap: "2",
320
+ /*#__PURE__*/ _jsxs(Stack, {
321
+ gap: "sm",
322
322
  children: [
323
323
  /*#__PURE__*/ _jsx(Label, {
324
324
  id: "email",
@@ -333,8 +333,8 @@ export var WithFormFields = {
333
333
  })
334
334
  ]
335
335
  }),
336
- /*#__PURE__*/ _jsxs(VerticalStack, {
337
- gap: "2",
336
+ /*#__PURE__*/ _jsxs(Stack, {
337
+ gap: "sm",
338
338
  children: [
339
339
  /*#__PURE__*/ _jsx(Label, {
340
340
  id: "phone",
@@ -347,8 +347,8 @@ export var WithFormFields = {
347
347
  })
348
348
  ]
349
349
  }),
350
- /*#__PURE__*/ _jsxs(VerticalStack, {
351
- gap: "2",
350
+ /*#__PURE__*/ _jsxs(Stack, {
351
+ gap: "sm",
352
352
  children: [
353
353
  /*#__PURE__*/ _jsx(Label, {
354
354
  id: "bio",
@@ -379,18 +379,18 @@ export var FormValidationStates = {
379
379
  return /*#__PURE__*/ _jsx(Card, {
380
380
  title: "Form Validation Examples",
381
381
  padded: true,
382
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
383
- gap: "8",
382
+ children: /*#__PURE__*/ _jsxs(Stack, {
383
+ gap: "lg",
384
384
  children: [
385
- /*#__PURE__*/ _jsxs(VerticalStack, {
386
- gap: "4",
385
+ /*#__PURE__*/ _jsxs(Stack, {
386
+ gap: "md",
387
387
  children: [
388
388
  /*#__PURE__*/ _jsx(Text, {
389
389
  variant: "headingSm",
390
390
  children: "Success State"
391
391
  }),
392
- /*#__PURE__*/ _jsxs(VerticalStack, {
393
- gap: "2",
392
+ /*#__PURE__*/ _jsxs(Stack, {
393
+ gap: "sm",
394
394
  children: [
395
395
  /*#__PURE__*/ _jsx(Label, {
396
396
  id: "validField",
@@ -406,15 +406,15 @@ export var FormValidationStates = {
406
406
  })
407
407
  ]
408
408
  }),
409
- /*#__PURE__*/ _jsxs(VerticalStack, {
410
- gap: "4",
409
+ /*#__PURE__*/ _jsxs(Stack, {
410
+ gap: "md",
411
411
  children: [
412
412
  /*#__PURE__*/ _jsx(Text, {
413
413
  variant: "headingSm",
414
414
  children: "Error State"
415
415
  }),
416
- /*#__PURE__*/ _jsxs(VerticalStack, {
417
- gap: "2",
416
+ /*#__PURE__*/ _jsxs(Stack, {
417
+ gap: "sm",
418
418
  children: [
419
419
  /*#__PURE__*/ _jsx(Label, {
420
420
  id: "errorField",
@@ -431,15 +431,15 @@ export var FormValidationStates = {
431
431
  })
432
432
  ]
433
433
  }),
434
- /*#__PURE__*/ _jsxs(VerticalStack, {
435
- gap: "4",
434
+ /*#__PURE__*/ _jsxs(Stack, {
435
+ gap: "md",
436
436
  children: [
437
437
  /*#__PURE__*/ _jsx(Text, {
438
438
  variant: "headingSm",
439
439
  children: "Warning State"
440
440
  }),
441
- /*#__PURE__*/ _jsxs(VerticalStack, {
442
- gap: "2",
441
+ /*#__PURE__*/ _jsxs(Stack, {
442
+ gap: "sm",
443
443
  children: [
444
444
  /*#__PURE__*/ _jsx(Label, {
445
445
  id: "warningField",
@@ -454,15 +454,15 @@ export var FormValidationStates = {
454
454
  })
455
455
  ]
456
456
  }),
457
- /*#__PURE__*/ _jsxs(VerticalStack, {
458
- gap: "4",
457
+ /*#__PURE__*/ _jsxs(Stack, {
458
+ gap: "md",
459
459
  children: [
460
460
  /*#__PURE__*/ _jsx(Text, {
461
461
  variant: "headingSm",
462
462
  children: "Disabled State"
463
463
  }),
464
- /*#__PURE__*/ _jsxs(VerticalStack, {
465
- gap: "2",
464
+ /*#__PURE__*/ _jsxs(Stack, {
465
+ gap: "sm",
466
466
  children: [
467
467
  /*#__PURE__*/ _jsx(Label, {
468
468
  id: "disabledField",
@@ -495,21 +495,21 @@ export var AccessibilityExample = {
495
495
  return /*#__PURE__*/ _jsx(Card, {
496
496
  title: "Accessibility Features",
497
497
  padded: true,
498
- children: /*#__PURE__*/ _jsxs(VerticalStack, {
499
- gap: "8",
498
+ children: /*#__PURE__*/ _jsxs(Stack, {
499
+ gap: "lg",
500
500
  children: [
501
- /*#__PURE__*/ _jsxs(VerticalStack, {
502
- gap: "4",
501
+ /*#__PURE__*/ _jsxs(Stack, {
502
+ gap: "md",
503
503
  children: [
504
504
  /*#__PURE__*/ _jsx(Text, {
505
505
  variant: "headingSm",
506
506
  children: "Proper Label Association"
507
507
  }),
508
- /*#__PURE__*/ _jsxs(VerticalStack, {
509
- gap: "4",
508
+ /*#__PURE__*/ _jsxs(Stack, {
509
+ gap: "md",
510
510
  children: [
511
- /*#__PURE__*/ _jsxs(VerticalStack, {
512
- gap: "2",
511
+ /*#__PURE__*/ _jsxs(Stack, {
512
+ gap: "sm",
513
513
  children: [
514
514
  /*#__PURE__*/ _jsx(Label, {
515
515
  id: "accessible-username",
@@ -531,18 +531,18 @@ export var AccessibilityExample = {
531
531
  })
532
532
  ]
533
533
  }),
534
- /*#__PURE__*/ _jsxs(VerticalStack, {
535
- gap: "4",
534
+ /*#__PURE__*/ _jsxs(Stack, {
535
+ gap: "md",
536
536
  children: [
537
537
  /*#__PURE__*/ _jsx(Text, {
538
538
  variant: "headingSm",
539
539
  children: "Screen Reader Only Label"
540
540
  }),
541
- /*#__PURE__*/ _jsxs(VerticalStack, {
542
- gap: "4",
541
+ /*#__PURE__*/ _jsxs(Stack, {
542
+ gap: "md",
543
543
  children: [
544
- /*#__PURE__*/ _jsxs(VerticalStack, {
545
- gap: "2",
544
+ /*#__PURE__*/ _jsxs(Stack, {
545
+ gap: "sm",
546
546
  children: [
547
547
  /*#__PURE__*/ _jsx(Label, {
548
548
  id: "sr-only-field",
@@ -564,18 +564,18 @@ export var AccessibilityExample = {
564
564
  })
565
565
  ]
566
566
  }),
567
- /*#__PURE__*/ _jsxs(VerticalStack, {
568
- gap: "4",
567
+ /*#__PURE__*/ _jsxs(Stack, {
568
+ gap: "md",
569
569
  children: [
570
570
  /*#__PURE__*/ _jsx(Text, {
571
571
  variant: "headingSm",
572
572
  children: "Label with Additional Context"
573
573
  }),
574
- /*#__PURE__*/ _jsxs(VerticalStack, {
575
- gap: "4",
574
+ /*#__PURE__*/ _jsxs(Stack, {
575
+ gap: "md",
576
576
  children: [
577
- /*#__PURE__*/ _jsxs(VerticalStack, {
578
- gap: "2",
577
+ /*#__PURE__*/ _jsxs(Stack, {
578
+ gap: "sm",
579
579
  children: [
580
580
  /*#__PURE__*/ _jsx(Label, {
581
581
  id: "context-field",