@strapi/design-system 1.4.2 → 1.5.0

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 (277) hide show
  1. package/dist/Accordion/AccordionContent.cjs +1 -1
  2. package/dist/Accordion/AccordionContent.js +17 -37
  3. package/dist/Accordion/AccordionToggle.cjs +6 -6
  4. package/dist/Accordion/AccordionToggle.js +75 -96
  5. package/dist/Alert/Alert.cjs +12 -12
  6. package/dist/Alert/Alert.js +83 -102
  7. package/dist/Badge/Badge.cjs +4 -4
  8. package/dist/Badge/Badge.js +29 -49
  9. package/dist/BaseButton/BaseButton.cjs +3 -3
  10. package/dist/BaseButton/BaseButton.js +20 -42
  11. package/dist/BaseCheckbox/BaseCheckbox.cjs +6 -6
  12. package/dist/BaseCheckbox/BaseCheckbox.js +35 -55
  13. package/dist/BaseLink/BaseLink.cjs +2 -2
  14. package/dist/BaseLink/BaseLink.js +21 -43
  15. package/dist/BaseRadio/BaseRadio.cjs +8 -8
  16. package/dist/BaseRadio/BaseRadio.js +31 -51
  17. package/dist/BaseRadio/RadioGroup.cjs +1 -1
  18. package/dist/BaseRadio/RadioGroup.js +24 -44
  19. package/dist/Box/BoxProps.cjs +1 -1
  20. package/dist/Box/BoxProps.js +10 -19
  21. package/dist/Breadcrumbs/Breadcrumbs.cjs +4 -4
  22. package/dist/Breadcrumbs/Breadcrumbs.js +29 -50
  23. package/dist/Button/Button.cjs +14 -14
  24. package/dist/Button/Button.js +53 -73
  25. package/dist/Card/Card.cjs +1 -1
  26. package/dist/Card/Card.js +17 -37
  27. package/dist/Card/CardAsset.cjs +4 -4
  28. package/dist/Card/CardAsset.js +19 -42
  29. package/dist/Card/CardBadge.cjs +3 -3
  30. package/dist/Card/CardBadge.js +9 -18
  31. package/dist/Card/CardBody.cjs +1 -1
  32. package/dist/Card/CardBody.js +8 -19
  33. package/dist/Card/CardCheckbox.cjs +1 -1
  34. package/dist/Card/CardCheckbox.js +12 -22
  35. package/dist/Card/CardContent.cjs +2 -2
  36. package/dist/Card/CardContent.js +11 -32
  37. package/dist/Card/CardHeader.cjs +2 -2
  38. package/dist/Card/CardHeader.js +9 -19
  39. package/dist/Card/CardTimer.cjs +2 -2
  40. package/dist/Card/CardTimer.js +20 -42
  41. package/dist/Card/CardTitle.cjs +1 -1
  42. package/dist/Card/CardTitle.js +16 -27
  43. package/dist/CarouselInput/Carousel.cjs +6 -6
  44. package/dist/CarouselInput/Carousel.js +77 -107
  45. package/dist/CarouselInput/CarouselActions.cjs +1 -1
  46. package/dist/CarouselInput/CarouselActions.js +7 -17
  47. package/dist/CarouselInput/CarouselImage.cjs +3 -3
  48. package/dist/CarouselInput/CarouselImage.js +26 -38
  49. package/dist/CarouselInput/CarouselInput.cjs +1 -1
  50. package/dist/CarouselInput/CarouselInput.js +49 -83
  51. package/dist/CarouselInput/CarouselSlide.cjs +2 -2
  52. package/dist/CarouselInput/CarouselSlide.js +20 -42
  53. package/dist/Checkbox/Checkbox.cjs +2 -2
  54. package/dist/Checkbox/Checkbox.js +44 -63
  55. package/dist/Combobox/Combobox.cjs +1 -1
  56. package/dist/Combobox/Combobox.js +196 -246
  57. package/dist/Combobox/ComboboxOption.cjs +1 -1
  58. package/dist/Combobox/ComboboxOption.js +25 -47
  59. package/dist/Combobox/utils.cjs +1 -1
  60. package/dist/Combobox/utils.js +21 -21
  61. package/dist/DatePicker/DatePicker.cjs +1 -1
  62. package/dist/DatePicker/DatePicker.js +85 -117
  63. package/dist/DatePicker/DatePickerCalendar.cjs +1 -1
  64. package/dist/DatePicker/DatePickerCalendar.js +1 -1
  65. package/dist/DatePicker/DatePickerTd.cjs +4 -4
  66. package/dist/DatePicker/DatePickerTd.js +23 -42
  67. package/dist/DatePicker/DatePickerTh.cjs +3 -3
  68. package/dist/DatePicker/DatePickerTh.js +23 -44
  69. package/dist/DatePicker/utils/getYears.cjs +1 -1
  70. package/dist/DatePicker/utils/getYears.js +6 -7
  71. package/dist/DateTimePicker/DateTimePicker.cjs +1 -1
  72. package/dist/DateTimePicker/DateTimePicker.js +92 -126
  73. package/dist/DateTimePicker/DateTimePickerProps.cjs +1 -1
  74. package/dist/DateTimePicker/DateTimePickerProps.js +10 -19
  75. package/dist/Dialog/Dialog.cjs +5 -5
  76. package/dist/Dialog/Dialog.js +39 -58
  77. package/dist/Divider/Divider.cjs +4 -2
  78. package/dist/Divider/Divider.js +17 -38
  79. package/dist/Field/Field.cjs +1 -1
  80. package/dist/Field/Field.js +20 -39
  81. package/dist/Field/FieldAction.cjs +2 -2
  82. package/dist/Field/FieldAction.js +13 -35
  83. package/dist/Field/FieldInput.cjs +6 -6
  84. package/dist/Field/FieldInput.js +47 -67
  85. package/dist/Field/FieldLabel.cjs +3 -3
  86. package/dist/Field/FieldLabel.js +26 -46
  87. package/dist/Flex/FlexProps.cjs +1 -1
  88. package/dist/Flex/FlexProps.js +10 -19
  89. package/dist/FocusTrap/FocusTrap.cjs +1 -1
  90. package/dist/FocusTrap/FocusTrap.js +32 -52
  91. package/dist/Grid/Grid.cjs +3 -3
  92. package/dist/Grid/Grid.js +20 -42
  93. package/dist/Grid/GridItem.cjs +2 -2
  94. package/dist/Grid/GridItem.js +22 -41
  95. package/dist/Icon/Icon.cjs +2 -2
  96. package/dist/Icon/Icon.js +17 -27
  97. package/dist/IconButton/IconButton.cjs +4 -4
  98. package/dist/IconButton/IconButton.js +44 -64
  99. package/dist/KeyboardNavigable/KeyboardNavigable.cjs +1 -1
  100. package/dist/KeyboardNavigable/KeyboardNavigable.js +38 -58
  101. package/dist/Layout/HeaderLayout.cjs +2 -2
  102. package/dist/Layout/HeaderLayout.js +78 -96
  103. package/dist/Link/Link.cjs +6 -6
  104. package/dist/Link/Link.js +34 -54
  105. package/dist/LinkButton/LinkButton.cjs +10 -10
  106. package/dist/LinkButton/LinkButton.js +47 -69
  107. package/dist/Loader/Loader.cjs +4 -4
  108. package/dist/Loader/Loader.js +25 -47
  109. package/dist/Main/Main.cjs +2 -2
  110. package/dist/Main/Main.js +15 -35
  111. package/dist/MainNav/MainNav.cjs +2 -2
  112. package/dist/MainNav/MainNav.js +19 -40
  113. package/dist/MainNav/NavCondense.cjs +3 -3
  114. package/dist/MainNav/NavCondense.js +20 -40
  115. package/dist/MainNav/NavFooter.cjs +3 -0
  116. package/dist/MainNav/NavFooter.js +14 -0
  117. package/dist/MainNav/NavLink.cjs +13 -13
  118. package/dist/MainNav/NavLink.js +57 -76
  119. package/dist/MainNav/NavSection.cjs +1 -1
  120. package/dist/MainNav/NavSection.js +46 -67
  121. package/dist/MainNav/NavSections.cjs +4 -1
  122. package/dist/MainNav/NavSections.js +23 -40
  123. package/dist/MainNav/NavUser.cjs +2 -6
  124. package/dist/MainNav/NavUser.js +31 -55
  125. package/dist/MainNav/index.cjs +1 -1
  126. package/dist/MainNav/index.js +14 -12
  127. package/dist/ModalLayout/ModalBody.cjs +2 -2
  128. package/dist/ModalLayout/ModalBody.js +9 -19
  129. package/dist/ModalLayout/ModalLayout.cjs +3 -3
  130. package/dist/ModalLayout/ModalLayout.js +30 -52
  131. package/dist/NumberInput/NumberInput.cjs +6 -6
  132. package/dist/NumberInput/NumberInput.js +123 -157
  133. package/dist/Pagination/components.cjs +7 -7
  134. package/dist/Pagination/components.js +65 -88
  135. package/dist/Popover/Popover.cjs +3 -3
  136. package/dist/Popover/Popover.js +65 -91
  137. package/dist/Portal/Portal.cjs +1 -1
  138. package/dist/Portal/Portal.js +11 -12
  139. package/dist/ProgressBar/ProgressBar.cjs +2 -2
  140. package/dist/ProgressBar/ProgressBar.js +27 -49
  141. package/dist/Radio/Radio.cjs +2 -2
  142. package/dist/Radio/Radio.js +19 -40
  143. package/dist/RawTable/RawCell.cjs +1 -1
  144. package/dist/RawTable/RawCell.js +69 -89
  145. package/dist/RawTable/RawTable.cjs +1 -1
  146. package/dist/RawTable/RawTable.js +46 -66
  147. package/dist/RawTable/RawTbody.cjs +1 -1
  148. package/dist/RawTable/RawTbody.js +11 -30
  149. package/dist/RawTable/RawThead.cjs +1 -1
  150. package/dist/RawTable/RawThead.js +10 -29
  151. package/dist/RawTable/RawTr.cjs +1 -1
  152. package/dist/RawTable/RawTr.js +14 -34
  153. package/dist/Searchbar/SearchForm.cjs +1 -1
  154. package/dist/Searchbar/SearchForm.js +5 -16
  155. package/dist/Searchbar/Searchbar.cjs +7 -7
  156. package/dist/Searchbar/Searchbar.js +45 -65
  157. package/dist/Select/MultiSelectNested.cjs +1 -1
  158. package/dist/Select/MultiSelectNested.js +23 -45
  159. package/dist/Select/OptGroup.cjs +1 -1
  160. package/dist/Select/OptGroup.js +15 -35
  161. package/dist/Select/Option.cjs +7 -7
  162. package/dist/Select/Option.js +37 -57
  163. package/dist/Select/Select.cjs +2 -2
  164. package/dist/Select/Select.js +145 -186
  165. package/dist/Select/SelectButton.cjs +2 -2
  166. package/dist/Select/SelectButton.js +33 -53
  167. package/dist/SimpleMenu/SimpleMenu.cjs +9 -9
  168. package/dist/SimpleMenu/SimpleMenu.js +137 -163
  169. package/dist/Stack/Stack.cjs +3 -3
  170. package/dist/Stack/Stack.js +29 -50
  171. package/dist/Status/Status.cjs +4 -4
  172. package/dist/Status/Status.js +30 -50
  173. package/dist/SubNav/SubNav.cjs +3 -3
  174. package/dist/SubNav/SubNav.js +15 -37
  175. package/dist/SubNav/SubNavHeader.cjs +2 -2
  176. package/dist/SubNav/SubNavHeader.js +38 -39
  177. package/dist/SubNav/SubNavLink.cjs +6 -6
  178. package/dist/SubNav/SubNavLink.js +39 -61
  179. package/dist/SubNav/SubNavSections.cjs +1 -1
  180. package/dist/SubNav/SubNavSections.js +17 -39
  181. package/dist/Switch/Switch.cjs +5 -5
  182. package/dist/Switch/Switch.js +35 -57
  183. package/dist/Table/Cell.cjs +3 -3
  184. package/dist/Table/Cell.js +20 -40
  185. package/dist/Table/TFooter.cjs +3 -3
  186. package/dist/Table/TFooter.js +28 -50
  187. package/dist/Table/Table.cjs +5 -5
  188. package/dist/Table/Table.js +35 -55
  189. package/dist/Table/Tbody.cjs +2 -2
  190. package/dist/Table/Tbody.js +8 -17
  191. package/dist/Table/Thead.cjs +2 -2
  192. package/dist/Table/Thead.js +8 -17
  193. package/dist/Table/Tr.cjs +2 -2
  194. package/dist/Table/Tr.js +8 -17
  195. package/dist/Tabs/TabGroup.cjs +1 -1
  196. package/dist/Tabs/TabGroup.js +26 -45
  197. package/dist/Tabs/TabPanels.cjs +1 -1
  198. package/dist/Tabs/TabPanels.js +24 -43
  199. package/dist/Tabs/Tabs.cjs +2 -2
  200. package/dist/Tabs/Tabs.js +94 -112
  201. package/dist/Tag/Tag.cjs +4 -4
  202. package/dist/Tag/Tag.js +27 -50
  203. package/dist/TextButton/TextButton.cjs +6 -6
  204. package/dist/TextButton/TextButton.js +39 -59
  205. package/dist/TextInput/TextInput.cjs +1 -1
  206. package/dist/TextInput/TextInput.js +49 -69
  207. package/dist/Textarea/Textarea.cjs +3 -3
  208. package/dist/Textarea/Textarea.js +43 -63
  209. package/dist/Textarea/TextareaInput.cjs +4 -4
  210. package/dist/Textarea/TextareaInput.js +30 -50
  211. package/dist/TimePicker/TimePicker.cjs +3 -3
  212. package/dist/TimePicker/TimePicker.js +62 -95
  213. package/dist/ToggleCheckbox/ToggleCheckbox.cjs +8 -8
  214. package/dist/ToggleCheckbox/ToggleCheckbox.js +56 -78
  215. package/dist/ToggleInput/ToggleInput.cjs +3 -3
  216. package/dist/ToggleInput/ToggleInput.js +65 -97
  217. package/dist/Tooltip/Tooltip.cjs +2 -2
  218. package/dist/Tooltip/Tooltip.js +38 -57
  219. package/dist/Typography/TypographyProps.cjs +1 -1
  220. package/dist/Typography/TypographyProps.js +13 -22
  221. package/dist/helpers/getDefaultLocale.cjs +1 -1
  222. package/dist/helpers/getDefaultLocale.js +1 -1
  223. package/dist/helpers/handleResponsiveValues.cjs +5 -5
  224. package/dist/helpers/handleResponsiveValues.js +14 -14
  225. package/dist/index.cjs +1 -1
  226. package/dist/index.js +150 -148
  227. package/dist/themes/darkTheme/index.cjs +1 -1
  228. package/dist/themes/darkTheme/index.js +8 -18
  229. package/dist/themes/extendTheme.cjs +4 -4
  230. package/dist/themes/extendTheme.js +18 -29
  231. package/dist/themes/lightTheme/index.cjs +1 -1
  232. package/dist/themes/lightTheme/index.js +8 -18
  233. package/dist/v2/Breadcrumbs/Breadcrumbs.cjs +2 -2
  234. package/dist/v2/Breadcrumbs/Breadcrumbs.js +23 -43
  235. package/dist/v2/Breadcrumbs/Crumb.cjs +1 -1
  236. package/dist/v2/Breadcrumbs/Crumb.js +22 -44
  237. package/dist/v2/Breadcrumbs/CrumbLink.cjs +2 -2
  238. package/dist/v2/Breadcrumbs/CrumbLink.js +14 -35
  239. package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +2 -2
  240. package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +19 -41
  241. package/dist/v2/Link/Link.cjs +5 -5
  242. package/dist/v2/Link/Link.js +42 -64
  243. package/dist/v2/LinkButton/LinkButton.cjs +10 -10
  244. package/dist/v2/LinkButton/LinkButton.js +51 -75
  245. package/dist/v2/MainNav/MainNav.cjs +2 -2
  246. package/dist/v2/MainNav/MainNav.js +19 -40
  247. package/dist/v2/MainNav/NavBrand.cjs +3 -3
  248. package/dist/v2/MainNav/NavBrand.js +57 -78
  249. package/dist/v2/MainNav/NavCondense.cjs +3 -3
  250. package/dist/v2/MainNav/NavCondense.js +20 -40
  251. package/dist/v2/MainNav/NavFooter.cjs +3 -0
  252. package/dist/v2/MainNav/NavFooter.js +14 -0
  253. package/dist/v2/MainNav/NavLink.cjs +13 -13
  254. package/dist/v2/MainNav/NavLink.js +60 -81
  255. package/dist/v2/MainNav/NavSection.cjs +1 -1
  256. package/dist/v2/MainNav/NavSection.js +46 -67
  257. package/dist/v2/MainNav/NavSections.cjs +4 -1
  258. package/dist/v2/MainNav/NavSections.js +23 -40
  259. package/dist/v2/MainNav/NavUser.cjs +2 -6
  260. package/dist/v2/MainNav/NavUser.js +31 -55
  261. package/dist/v2/MainNav/index.cjs +1 -1
  262. package/dist/v2/MainNav/index.js +14 -12
  263. package/dist/v2/Pagination/components.cjs +7 -7
  264. package/dist/v2/Pagination/components.js +65 -89
  265. package/dist/v2/SimpleMenu/SimpleMenu.cjs +9 -9
  266. package/dist/v2/SimpleMenu/SimpleMenu.js +131 -156
  267. package/dist/v2/SubNav/SubNav.cjs +3 -3
  268. package/dist/v2/SubNav/SubNav.js +15 -37
  269. package/dist/v2/SubNav/SubNavHeader.cjs +2 -2
  270. package/dist/v2/SubNav/SubNavHeader.js +38 -39
  271. package/dist/v2/SubNav/SubNavLink.cjs +6 -6
  272. package/dist/v2/SubNav/SubNavLink.js +42 -64
  273. package/dist/v2/SubNav/SubNavSections.cjs +1 -1
  274. package/dist/v2/SubNav/SubNavSections.js +17 -39
  275. package/dist/v2/index.cjs +1 -1
  276. package/dist/v2/index.js +37 -35
  277. package/package.json +3 -3
@@ -1,48 +1,28 @@
1
- var Y = Object.defineProperty;
2
- var C = Object.getOwnPropertySymbols;
3
- var F = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
4
- var N = (e, r, t) => r in e ? Y(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, p = (e, r) => {
5
- for (var t in r || (r = {}))
6
- F.call(r, t) && N(e, t, r[t]);
7
- if (C)
8
- for (var t of C(r))
9
- V.call(r, t) && N(e, t, r[t]);
10
- return e;
11
- };
12
- var b = (e, r) => {
13
- var t = {};
14
- for (var s in e)
15
- F.call(e, s) && r.indexOf(s) < 0 && (t[s] = e[s]);
16
- if (e != null && C)
17
- for (var s of C(e))
18
- r.indexOf(s) < 0 && V.call(e, s) && (t[s] = e[s]);
19
- return t;
20
- };
21
- import i, { useRef as w, useEffect as P, useState as q, Children as Z, cloneElement as ee } from "react";
22
- import n from "prop-types";
23
- import h from "styled-components";
24
- import { NavLink as ne } from "react-router-dom";
25
- import { useCallbackRef as W } from "@radix-ui/react-use-callback-ref";
26
- import te from "@strapi/icons/CarretDown";
27
- import { Typography as S } from "../Typography/Typography.js";
28
- import { Link as oe } from "../Link/Link.js";
29
- import { Box as R } from "../Box/Box.js";
30
- import { Flex as re } from "../Flex/Flex.js";
31
- import { Button as _ } from "../Button/Button.js";
32
- import { POPOVER_PLACEMENTS as ie, Popover as se } from "../Popover/Popover.js";
33
- import { getOptionStyle as M } from "./utils.js";
34
- import { useId as ae } from "../helpers/useId.js";
35
- import { KeyboardKeys as c } from "../helpers/keyboardKeys.js";
36
- const le = h.button`
1
+ import t, { useRef as T, useEffect as v, useState as B, Children as z, cloneElement as j } from "react";
2
+ import e from "prop-types";
3
+ import y from "styled-components";
4
+ import { NavLink as H } from "react-router-dom";
5
+ import { useCallbackRef as K } from "@radix-ui/react-use-callback-ref";
6
+ import U from "@strapi/icons/CarretDown";
7
+ import { Typography as O } from "../Typography/Typography.js";
8
+ import { Link as G } from "../Link/Link.js";
9
+ import { Box as k } from "../Box/Box.js";
10
+ import { Flex as J } from "../Flex/Flex.js";
11
+ import { Button as $ } from "../Button/Button.js";
12
+ import { POPOVER_PLACEMENTS as Q, Popover as X } from "../Popover/Popover.js";
13
+ import { getOptionStyle as b } from "./utils.js";
14
+ import { useId as Y } from "../helpers/useId.js";
15
+ import { KeyboardKeys as i } from "../helpers/keyboardKeys.js";
16
+ const Z = y.button`
37
17
  border: none;
38
18
  padding: 0;
39
19
  background: transparent;
40
20
  cursor: pointer;
41
- ${M}
42
- `, ce = h(ne)`
21
+ ${b}
22
+ `, ee = y(H)`
43
23
  text-decoration: none;
44
- ${M}
45
- `, pe = h(oe)`
24
+ ${b}
25
+ `, ne = y(G)`
46
26
  /* Removing Link hover effect */
47
27
  &:hover {
48
28
  color: currentColor;
@@ -50,54 +30,57 @@ const le = h.button`
50
30
 
51
31
  &:focus-visible {
52
32
  /* Removing Link focus-visible after properties and reset to global outline */
53
- outline: 2px solid ${({ theme: e }) => e.colors.primary600};
33
+ outline: 2px solid ${({ theme: o }) => o.colors.primary600};
54
34
  outline-offset: 2px;
55
35
  &:after {
56
36
  content: none;
57
37
  }
58
38
  }
59
39
 
60
- ${M}
61
- `, ue = h.span`
40
+ ${b}
41
+ `, te = y.span`
62
42
  display: flex;
63
43
  align-items: center;
64
44
  svg {
65
45
  height: 4px;
66
46
  width: 6px;
67
47
  }
68
- `, me = h(_)`
69
- padding: ${({ theme: e }) => `${e.spaces[1]} ${e.spaces[3]}`};
70
- `, z = (B) => {
71
- var v = B, { children: e, onClick: r, to: t, isFocused: s, href: u } = v, D = b(v, ["children", "onClick", "to", "isFocused", "href"]);
72
- const l = w();
73
- P(() => {
74
- s && l.current && l.current.focus();
75
- }, [s]);
76
- const m = p({
77
- tabIndex: s ? 0 : -1,
78
- ref: l,
79
- role: "menuitem"
80
- }, D), K = (f) => {
81
- (f.key === c.SPACE || f.key === c.ENTER) && r();
48
+ `, oe = y($)`
49
+ padding: ${({ theme: o }) => `${o.spaces[1]} ${o.spaces[3]}`};
50
+ `, L = ({ children: o, onClick: E, to: s, isFocused: a, href: l, ...P }) => {
51
+ const c = T();
52
+ v(() => {
53
+ a && c.current && c.current.focus();
54
+ }, [a]);
55
+ const p = {
56
+ tabIndex: a ? 0 : -1,
57
+ ref: c,
58
+ role: "menuitem",
59
+ ...P
60
+ }, u = (g) => {
61
+ (g.key === i.SPACE || g.key === i.ENTER) && E();
82
62
  };
83
- return t && !u ? /* @__PURE__ */ i.createElement(ce, p({
84
- to: t
85
- }, m), /* @__PURE__ */ i.createElement(R, {
63
+ return s && !l ? /* @__PURE__ */ t.createElement(ee, {
64
+ to: s,
65
+ ...p
66
+ }, /* @__PURE__ */ t.createElement(k, {
86
67
  padding: 2
87
- }, /* @__PURE__ */ i.createElement(S, null, e))) : u && !t ? /* @__PURE__ */ i.createElement(pe, p({
68
+ }, /* @__PURE__ */ t.createElement(O, null, o))) : l && !s ? /* @__PURE__ */ t.createElement(ne, {
88
69
  isExternal: !0,
89
- href: u
90
- }, m), /* @__PURE__ */ i.createElement(R, {
70
+ href: l,
71
+ ...p
72
+ }, /* @__PURE__ */ t.createElement(k, {
91
73
  padding: 2
92
- }, /* @__PURE__ */ i.createElement(S, null, e))) : /* @__PURE__ */ i.createElement(le, p({
93
- onKeyDown: K,
94
- onMouseDown: r,
95
- type: "button"
96
- }, m), /* @__PURE__ */ i.createElement(R, {
74
+ }, /* @__PURE__ */ t.createElement(O, null, o))) : /* @__PURE__ */ t.createElement(Z, {
75
+ onKeyDown: u,
76
+ onMouseDown: E,
77
+ type: "button",
78
+ ...p
79
+ }, /* @__PURE__ */ t.createElement(k, {
97
80
  padding: 2
98
- }, /* @__PURE__ */ i.createElement(S, null, e)));
81
+ }, /* @__PURE__ */ t.createElement(O, null, o)));
99
82
  };
100
- z.defaultProps = {
83
+ L.defaultProps = {
101
84
  as: void 0,
102
85
  href: void 0,
103
86
  isFocused: !1,
@@ -105,106 +88,97 @@ z.defaultProps = {
105
88
  },
106
89
  to: void 0
107
90
  };
108
- z.propTypes = {
109
- as: n.elementType,
110
- children: n.node.isRequired,
111
- href: n.string,
112
- isFocused: n.bool,
113
- onClick: n.func,
114
- to: n.string
91
+ L.propTypes = {
92
+ as: e.elementType,
93
+ children: e.node.isRequired,
94
+ href: e.string,
95
+ isFocused: e.bool,
96
+ onClick: e.func,
97
+ to: e.string
115
98
  };
116
- const x = (K) => {
117
- var f = K, {
118
- label: e,
119
- children: r,
120
- id: t,
121
- as: s,
122
- onOpen: u = () => {
123
- },
124
- onClose: D = () => {
125
- },
126
- size: B,
127
- popoverPlacement: v,
128
- onReachEnd: l
129
- } = f, m = b(f, [
130
- "label",
131
- "children",
132
- "id",
133
- "as",
134
- "onOpen",
135
- "onClose",
136
- "size",
137
- "popoverPlacement",
138
- "onReachEnd"
139
- ]);
140
- const d = w(), I = ae("simplemenu", t), y = w(!1), [E, g] = q(!1), [O, T] = q(0), k = Z.toArray(r), j = s || (B === "S" ? me : _), $ = !!l && typeof l == "function";
141
- P(() => {
142
- if (["string", "number"].includes(typeof e)) {
143
- const o = k.findIndex((a) => a.props.children === e);
144
- o !== -1 && T(o);
99
+ const C = ({
100
+ label: o,
101
+ children: E,
102
+ id: s,
103
+ as: a,
104
+ onOpen: l = () => {
105
+ },
106
+ onClose: P = () => {
107
+ },
108
+ size: c,
109
+ popoverPlacement: p,
110
+ onReachEnd: u,
111
+ ...g
112
+ }) => {
113
+ const m = T(), R = Y("simplemenu", s), x = T(!1), [d, f] = B(!1), [D, I] = B(0), h = z.toArray(E), A = a || (c === "S" ? oe : $), S = !!u && typeof u == "function";
114
+ v(() => {
115
+ if (["string", "number"].includes(typeof o)) {
116
+ const n = h.findIndex((r) => r.props.children === o);
117
+ n !== -1 && I(n);
145
118
  }
146
- }, [e]);
147
- const L = W(u), A = W(D);
148
- P(() => {
149
- y != null && y.current ? E ? L() : A() : y.current = !0;
150
- }, [y, A, L, E]), P(() => {
151
- i.isValidElement(e) && O === -1 && d.current.focus();
152
- }, [e, O]);
153
- const H = (o) => {
154
- E && (o.key === c.ESCAPE && (o.stopPropagation(), g(!1), d.current.focus()), o.key === c.DOWN && T((a) => a === k.length - 1 ? 0 : a + 1), o.key === c.UP && T((a) => a === 0 ? k.length - 1 : a - 1));
155
- }, U = (o) => {
156
- (o.key === c.ENTER || o.key === c.SPACE) && g((a) => !a);
157
- }, G = (o) => {
158
- o.preventDefault(), o.currentTarget.contains(o.relatedTarget) || g(!1);
159
- }, J = (o) => {
160
- o.preventDefault(), g((a) => !a);
161
- }, Q = () => {
162
- $ && l();
163
- }, X = k.map((o, a) => /* @__PURE__ */ i.createElement(re, {
119
+ }, [o]);
120
+ const w = K(l), M = K(P);
121
+ v(() => {
122
+ x?.current ? d ? w() : M() : x.current = !0;
123
+ }, [x, M, w, d]), v(() => {
124
+ t.isValidElement(o) && D === -1 && m.current.focus();
125
+ }, [o, D]);
126
+ const N = (n) => {
127
+ d && (n.key === i.ESCAPE && (n.stopPropagation(), f(!1), m.current.focus()), n.key === i.DOWN && I((r) => r === h.length - 1 ? 0 : r + 1), n.key === i.UP && I((r) => r === 0 ? h.length - 1 : r - 1));
128
+ }, F = (n) => {
129
+ (n.key === i.ENTER || n.key === i.SPACE) && f((r) => !r);
130
+ }, V = (n) => {
131
+ n.preventDefault(), n.currentTarget.contains(n.relatedTarget) || f(!1);
132
+ }, q = (n) => {
133
+ n.preventDefault(), f((r) => !r);
134
+ }, W = () => {
135
+ S && u();
136
+ }, _ = h.map((n, r) => /* @__PURE__ */ t.createElement(J, {
164
137
  as: "li",
165
- key: a,
138
+ key: r,
166
139
  justifyContent: "center",
167
140
  role: "menuitem"
168
- }, ee(o, {
141
+ }, j(n, {
169
142
  onClick() {
170
- o.props.onClick(), g(!1), d.current.focus();
143
+ n.props.onClick(), f(!1), m.current.focus();
171
144
  },
172
- isFocused: O === a
145
+ isFocused: D === r
173
146
  })));
174
- return /* @__PURE__ */ i.createElement("div", {
175
- onKeyDown: H
176
- }, /* @__PURE__ */ i.createElement(j, p({
177
- label: i.isValidElement(e) ? null : e,
147
+ return /* @__PURE__ */ t.createElement("div", {
148
+ onKeyDown: N
149
+ }, /* @__PURE__ */ t.createElement(A, {
150
+ label: t.isValidElement(o) ? null : o,
178
151
  "aria-haspopup": !0,
179
- "aria-expanded": E,
180
- "aria-controls": I,
181
- onKeyDown: U,
182
- onMouseDown: J,
183
- ref: d,
152
+ "aria-expanded": d,
153
+ "aria-controls": R,
154
+ onKeyDown: F,
155
+ onMouseDown: q,
156
+ ref: m,
184
157
  type: "button",
185
158
  variant: "ghost",
186
- endIcon: /* @__PURE__ */ i.createElement(ue, null, /* @__PURE__ */ i.createElement(te, {
159
+ endIcon: /* @__PURE__ */ t.createElement(te, null, /* @__PURE__ */ t.createElement(U, {
187
160
  "aria-hidden": !0
188
- }))
189
- }, m), e), E && /* @__PURE__ */ i.createElement(se, {
190
- onBlur: G,
191
- placement: v,
192
- source: d,
193
- onReachEnd: Q,
194
- intersectionId: $ ? `popover-${I}` : void 0,
161
+ })),
162
+ ...g
163
+ }, o), d && /* @__PURE__ */ t.createElement(X, {
164
+ onBlur: V,
165
+ placement: p,
166
+ source: m,
167
+ onReachEnd: W,
168
+ intersectionId: S ? `popover-${R}` : void 0,
195
169
  spacing: 4
196
- }, /* @__PURE__ */ i.createElement(R, {
170
+ }, /* @__PURE__ */ t.createElement(k, {
197
171
  role: "menu",
198
172
  as: "ul",
199
173
  padding: 1,
200
- id: I
201
- }, X)));
174
+ id: R
175
+ }, _)));
202
176
  };
203
- x.defaultProps = {
177
+ C.defaultProps = {
204
178
  as: void 0
205
179
  };
206
- x.displayName = "SimpleMenu";
207
- x.defaultProps = {
180
+ C.displayName = "SimpleMenu";
181
+ C.defaultProps = {
208
182
  id: void 0,
209
183
  onOpen: void 0,
210
184
  onClose: void 0,
@@ -212,18 +186,18 @@ x.defaultProps = {
212
186
  popoverPlacement: "bottom-start",
213
187
  size: "M"
214
188
  };
215
- x.propTypes = {
216
- as: n.any,
217
- children: n.oneOfType([n.arrayOf(n.node), n.node]).isRequired,
218
- id: n.string,
219
- label: n.oneOfType([n.string, n.number, n.element]).isRequired,
220
- onClose: n.func,
221
- onOpen: n.func,
222
- onReachEnd: n.func,
223
- popoverPlacement: n.oneOf(ie),
224
- size: n.oneOf(["S", "M"])
189
+ C.propTypes = {
190
+ as: e.any,
191
+ children: e.oneOfType([e.arrayOf(e.node), e.node]).isRequired,
192
+ id: e.string,
193
+ label: e.oneOfType([e.string, e.number, e.element]).isRequired,
194
+ onClose: e.func,
195
+ onOpen: e.func,
196
+ onReachEnd: e.func,
197
+ popoverPlacement: e.oneOf(Q),
198
+ size: e.oneOf(["S", "M"])
225
199
  };
226
200
  export {
227
- z as MenuItem,
228
- x as SimpleMenu
201
+ L as MenuItem,
202
+ C as SimpleMenu
229
203
  };
@@ -1,4 +1,4 @@
1
- "use strict";var w=Object.defineProperty;var n=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var u=(e,t,a)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,s=(e,t)=>{for(var a in t||(t={}))p.call(t,a)&&u(e,a,t[a]);if(n)for(var a of n(t))f.call(t,a)&&u(e,a,t[a]);return e};var g=(e,t)=>{var a={};for(var o in e)p.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&n)for(var o of n(e))t.indexOf(o)<0&&f.call(e,o)&&(a[o]=e[o]);return a};Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("react"),P=require("prop-types"),S=require("styled-components"),h=require("../Flex/Flex.cjs"),l=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},m=l(y),i=l(P),_=l(S),b={size:!0},F=_.default(h.Flex).withConfig({shouldForwardProp:(e,t)=>!b[e]&&t(e)})`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),f=require("prop-types"),g=require("styled-components"),d=require("../Flex/Flex.cjs"),r=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},l=r(c),n=r(f),u=r(g),p={size:!0},m=u.default(d.Flex).withConfig({shouldForwardProp:(e,t)=>!p[e]&&t(e)})`
2
2
  & > * {
3
3
  margin-top: 0;
4
4
  margin-bottom: 0;
@@ -7,7 +7,7 @@
7
7
  & > * + * {
8
8
  margin-top: ${({theme:e,spacing:t})=>e.spaces[t]};
9
9
  }
10
- `,k=_.default(h.Flex).withConfig({shouldForwardProp:(e,t)=>!b[e]&&t(e)})`
10
+ `,y=u.default(d.Flex).withConfig({shouldForwardProp:(e,t)=>!p[e]&&t(e)})`
11
11
  & > * {
12
12
  margin-left: 0;
13
13
  margin-right: 0;
@@ -16,4 +16,4 @@
16
16
  & > * + * {
17
17
  margin-left: ${({theme:e,spacing:t})=>e.spaces[t]};
18
18
  }
19
- `,r=y.forwardRef((x,c)=>{var d=x,{horizontal:e,spacing:t,size:a}=d,o=g(d,["horizontal","spacing","size"]);return a&&console.warn('Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'),e?m.default.createElement(k,s({ref:c,spacing:t||a},o)):m.default.createElement(F,s({direction:"column",alignItems:"stretch",ref:c,spacing:t||a},o))});r.displayName="Stack";r.defaultProps={horizontal:!1,size:void 0,spacing:void 0};r.propTypes={horizontal:i.default.bool,size:i.default.number,spacing:i.default.number};exports.Stack=r;
19
+ `,a=c.forwardRef(({horizontal:e,spacing:t,size:o,...s},i)=>(o&&console.warn('Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'),e?l.default.createElement(y,{ref:i,spacing:t||o,...s}):l.default.createElement(m,{direction:"column",alignItems:"stretch",ref:i,spacing:t||o,...s})));a.displayName="Stack";a.defaultProps={horizontal:!1,size:void 0,spacing:void 0};a.propTypes={horizontal:n.default.bool,size:n.default.number,spacing:n.default.number};exports.Stack=a;
@@ -1,31 +1,11 @@
1
- var P = Object.defineProperty;
2
- var a = Object.getOwnPropertySymbols;
3
- var p = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
- var l = (e, t, o) => t in e ? P(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, i = (e, t) => {
5
- for (var o in t || (t = {}))
6
- p.call(t, o) && l(e, o, t[o]);
7
- if (a)
8
- for (var o of a(t))
9
- d.call(t, o) && l(e, o, t[o]);
10
- return e;
11
- };
12
- var g = (e, t) => {
13
- var o = {};
14
- for (var r in e)
15
- p.call(e, r) && t.indexOf(r) < 0 && (o[r] = e[r]);
16
- if (e != null && a)
17
- for (var r of a(e))
18
- t.indexOf(r) < 0 && d.call(e, r) && (o[r] = e[r]);
19
- return o;
20
- };
21
- import f, { forwardRef as b } from "react";
22
- import n from "prop-types";
23
- import u from "styled-components";
24
- import { Flex as h } from "../Flex/Flex.js";
25
- const w = {
1
+ import s, { forwardRef as p } from "react";
2
+ import r from "prop-types";
3
+ import c from "styled-components";
4
+ import { Flex as m } from "../Flex/Flex.js";
5
+ const l = {
26
6
  size: !0
27
- }, k = u(h).withConfig({
28
- shouldForwardProp: (e, t) => !w[e] && t(e)
7
+ }, d = c(m).withConfig({
8
+ shouldForwardProp: (e, t) => !l[e] && t(e)
29
9
  })`
30
10
  & > * {
31
11
  margin-top: 0;
@@ -35,8 +15,8 @@ const w = {
35
15
  & > * + * {
36
16
  margin-top: ${({ theme: e, spacing: t }) => e.spaces[t]};
37
17
  }
38
- `, S = u(h).withConfig({
39
- shouldForwardProp: (e, t) => !w[e] && t(e)
18
+ `, g = c(m).withConfig({
19
+ shouldForwardProp: (e, t) => !l[e] && t(e)
40
20
  })`
41
21
  & > * {
42
22
  margin-left: 0;
@@ -46,31 +26,30 @@ const w = {
46
26
  & > * + * {
47
27
  margin-left: ${({ theme: e, spacing: t }) => e.spaces[t]};
48
28
  }
49
- `, s = b((y, c) => {
50
- var m = y, { horizontal: e, spacing: t, size: o } = m, r = g(m, ["horizontal", "spacing", "size"]);
51
- return o && console.warn(
52
- 'Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'
53
- ), e ? /* @__PURE__ */ f.createElement(S, i({
54
- ref: c,
55
- spacing: t || o
56
- }, r)) : /* @__PURE__ */ f.createElement(k, i({
57
- direction: "column",
58
- alignItems: "stretch",
59
- ref: c,
60
- spacing: t || o
61
- }, r));
62
- });
63
- s.displayName = "Stack";
64
- s.defaultProps = {
29
+ `, a = p(({ horizontal: e, spacing: t, size: o, ...i }, n) => (o && console.warn(
30
+ 'Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'
31
+ ), e ? /* @__PURE__ */ s.createElement(g, {
32
+ ref: n,
33
+ spacing: t || o,
34
+ ...i
35
+ }) : /* @__PURE__ */ s.createElement(d, {
36
+ direction: "column",
37
+ alignItems: "stretch",
38
+ ref: n,
39
+ spacing: t || o,
40
+ ...i
41
+ })));
42
+ a.displayName = "Stack";
43
+ a.defaultProps = {
65
44
  horizontal: !1,
66
45
  size: void 0,
67
46
  spacing: void 0
68
47
  };
69
- s.propTypes = {
70
- horizontal: n.bool,
71
- size: n.number,
72
- spacing: n.number
48
+ a.propTypes = {
49
+ horizontal: r.bool,
50
+ size: r.number,
51
+ spacing: r.number
73
52
  };
74
53
  export {
75
- s as Stack
54
+ a as Stack
76
55
  };
@@ -1,11 +1,11 @@
1
- "use strict";var B=Object.defineProperty;var a=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var i=(e,t,o)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,y=(e,t)=>{for(var o in t||(t={}))g.call(t,o)&&i(e,o,t[o]);if(a)for(var o of a(t))f.call(t,o)&&i(e,o,t[o]);return e};var h=(e,t)=>{var o={};for(var r in e)g.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&a)for(var r of a(e))t.indexOf(r)<0&&f.call(e,r)&&(o[r]=e[r]);return o};Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("react"),q=require("prop-types"),j=require("styled-components"),C=require("../Box/Box.cjs"),R=require("../Flex/Flex.cjs"),k=require("../Typography/Typography.cjs"),n=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},l=n(S),s=n(q),b=n(j),w=b.default.div`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("react"),b=require("prop-types"),m=require("styled-components"),$=require("../Box/Box.cjs"),x=require("../Flex/Flex.cjs"),T=require("../Typography/Typography.cjs"),a=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},r=a(h),o=a(b),c=a(m),_=c.default.div`
2
2
  margin-right: ${({theme:e})=>e.spaces[3]};
3
3
  width: ${6/16}rem;
4
4
  height: ${6/16}rem;
5
5
  border-radius: 50%;
6
6
  background: ${({theme:e,backgroundColor:t})=>e.colors[t]};
7
- `,F=b.default(C.Box)`
8
- ${k.Typography} {
7
+ `,B=c.default($.Box)`
8
+ ${T.Typography} {
9
9
  color: ${({theme:e,textColor:t})=>e.colors[t]};
10
10
  }
11
- `,u=M=>{var d=M,{variant:e,showBullet:t,size:o,children:r}=d,m=h(d,["variant","showBullet","size","children"]);const $=`${e}100`,x=`${e}200`,T=`${e}600`,_=`${e}600`,c=o==="S"?2:5,p=o==="S"?1:4;return l.default.createElement(F,y({borderColor:x,textColor:_,background:$,hasRadius:!0,paddingTop:p,paddingBottom:p,paddingLeft:c,paddingRight:c},m),t?l.default.createElement(R.Flex,null,l.default.createElement(w,{backgroundColor:T}),r):r)};u.defaultProps={showBullet:!0,size:"M",variant:"primary"};u.propTypes={children:s.default.node.isRequired,showBullet:s.default.bool,size:s.default.oneOf(["S","M"]),variant:s.default.oneOf(["alternative","danger","neutral","primary","secondary","success","warning"])};exports.Status=u;
11
+ `,s=({variant:e,showBullet:t,size:l,children:n,...p})=>{const i=`${e}100`,g=`${e}200`,f=`${e}600`,y=`${e}600`,u=l==="S"?2:5,d=l==="S"?1:4;return r.default.createElement(B,{borderColor:g,textColor:y,background:i,hasRadius:!0,paddingTop:d,paddingBottom:d,paddingLeft:u,paddingRight:u,...p},t?r.default.createElement(x.Flex,null,r.default.createElement(_,{backgroundColor:f}),n):n)};s.defaultProps={showBullet:!0,size:"M",variant:"primary"};s.propTypes={children:o.default.node.isRequired,showBullet:o.default.bool,size:o.default.oneOf(["S","M"]),variant:o.default.oneOf(["alternative","danger","neutral","primary","secondary","success","warning"])};exports.Status=s;
@@ -1,66 +1,46 @@
1
- var S = Object.defineProperty;
2
- var n = Object.getOwnPropertySymbols;
3
- var c = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
- var i = (o, r, e) => r in o ? S(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e, u = (o, r) => {
5
- for (var e in r || (r = {}))
6
- c.call(r, e) && i(o, e, r[e]);
7
- if (n)
8
- for (var e of n(r))
9
- m.call(r, e) && i(o, e, r[e]);
10
- return o;
11
- };
12
- var g = (o, r) => {
13
- var e = {};
14
- for (var t in o)
15
- c.call(o, t) && r.indexOf(t) < 0 && (e[t] = o[t]);
16
- if (o != null && n)
17
- for (var t of n(o))
18
- r.indexOf(t) < 0 && m.call(o, t) && (e[t] = o[t]);
19
- return e;
20
- };
21
- import s from "react";
22
- import a from "prop-types";
23
- import f from "styled-components";
24
- import { Box as k } from "../Box/Box.js";
25
- import { Flex as w } from "../Flex/Flex.js";
26
- import { Typography as x } from "../Typography/Typography.js";
27
- const R = f.div`
1
+ import t from "react";
2
+ import e from "prop-types";
3
+ import l from "styled-components";
4
+ import { Box as f } from "../Box/Box.js";
5
+ import { Flex as $ } from "../Flex/Flex.js";
6
+ import { Typography as h } from "../Typography/Typography.js";
7
+ const b = l.div`
28
8
  margin-right: ${({ theme: o }) => o.spaces[3]};
29
9
  width: ${6 / 16}rem;
30
10
  height: ${6 / 16}rem;
31
11
  border-radius: 50%;
32
12
  background: ${({ theme: o, backgroundColor: r }) => o.colors[r]};
33
- `, T = f(k)`
34
- ${x} {
13
+ `, y = l(f)`
14
+ ${h} {
35
15
  color: ${({ theme: o, textColor: r }) => o.colors[r]};
36
16
  }
37
- `, $ = (E) => {
38
- var d = E, { variant: o, showBullet: r, size: e, children: t } = d, h = g(d, ["variant", "showBullet", "size", "children"]);
39
- const b = `${o}100`, y = `${o}200`, B = `${o}600`, C = `${o}600`, l = e === "S" ? 2 : 5, p = e === "S" ? 1 : 4;
40
- return /* @__PURE__ */ s.createElement(T, u({
41
- borderColor: y,
42
- textColor: C,
43
- background: b,
17
+ `, p = ({ variant: o, showBullet: r, size: n, children: a, ...i }) => {
18
+ const c = `${o}100`, m = `${o}200`, u = `${o}600`, g = `${o}600`, s = n === "S" ? 2 : 5, d = n === "S" ? 1 : 4;
19
+ return /* @__PURE__ */ t.createElement(y, {
20
+ borderColor: m,
21
+ textColor: g,
22
+ background: c,
44
23
  hasRadius: !0,
45
- paddingTop: p,
46
- paddingBottom: p,
47
- paddingLeft: l,
48
- paddingRight: l
49
- }, h), r ? /* @__PURE__ */ s.createElement(w, null, /* @__PURE__ */ s.createElement(R, {
50
- backgroundColor: B
51
- }), t) : t);
24
+ paddingTop: d,
25
+ paddingBottom: d,
26
+ paddingLeft: s,
27
+ paddingRight: s,
28
+ ...i
29
+ }, r ? /* @__PURE__ */ t.createElement($, null, /* @__PURE__ */ t.createElement(b, {
30
+ backgroundColor: u
31
+ }), a) : a);
52
32
  };
53
- $.defaultProps = {
33
+ p.defaultProps = {
54
34
  showBullet: !0,
55
35
  size: "M",
56
36
  variant: "primary"
57
37
  };
58
- $.propTypes = {
59
- children: a.node.isRequired,
60
- showBullet: a.bool,
61
- size: a.oneOf(["S", "M"]),
62
- variant: a.oneOf(["alternative", "danger", "neutral", "primary", "secondary", "success", "warning"])
38
+ p.propTypes = {
39
+ children: e.node.isRequired,
40
+ showBullet: e.bool,
41
+ size: e.oneOf(["S", "M"]),
42
+ variant: e.oneOf(["alternative", "danger", "neutral", "primary", "secondary", "success", "warning"])
63
43
  };
64
44
  export {
65
- $ as Status
45
+ p as Status
66
46
  };
@@ -1,5 +1,5 @@
1
- "use strict";var b=Object.defineProperty;var a=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var i=(e,t,r)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&i(e,r,t[r]);if(a)for(var r of a(t))d.call(t,r)&&i(e,r,t[r]);return e};var c=(e,t)=>{var r={};for(var o in e)u.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&a)for(var o of a(e))t.indexOf(o)<0&&d.call(e,o)&&(r[o]=e[o]);return r};Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react"),y=require("styled-components"),v=require("prop-types"),_=require("../Grid/Grid.cjs");require("../Grid/GridItem.cjs");const s=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},g=s(f),h=s(y),q=s(v),n=`${232/16}rem`,G=h.default(_.Grid)`
2
- width: ${n};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react"),i=require("styled-components"),u=require("prop-types"),d=require("../Grid/Grid.cjs");require("../Grid/GridItem.cjs");const t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},l=t(s),c=t(i),n=t(u),r=`${232/16}rem`,p=c.default(d.Grid)`
2
+ width: ${r};
3
3
  background: ${({theme:e})=>e.colors.neutral100};
4
4
  position: sticky;
5
5
  top: 0;
@@ -7,4 +7,4 @@
7
7
  overflow-y: auto;
8
8
  border-right: 1px solid ${({theme:e})=>e.colors.neutral200};
9
9
  z-index: 1;
10
- `,p=r=>{var o=r,{ariaLabel:e}=o,t=c(o,["ariaLabel"]);return g.default.createElement(G,l({"aria-label":e,as:"nav"},t))};p.propTypes={ariaLabel:q.default.string.isRequired};exports.SubNav=p;exports.subNavWidth=n;
10
+ `,o=({ariaLabel:e,...a})=>l.default.createElement(p,{"aria-label":e,as:"nav",...a});o.propTypes={ariaLabel:n.default.string.isRequired};exports.SubNav=o;exports.subNavWidth=r;