@strapi/design-system 1.7.6 → 1.7.8

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 (143) hide show
  1. package/dist/BaseButton/BaseButton.cjs +3 -3
  2. package/dist/BaseButton/BaseButton.js +5 -5
  3. package/dist/Box/Box.cjs +2 -2
  4. package/dist/Box/Box.js +1 -1
  5. package/dist/CarouselInput/Carousel.cjs +6 -7
  6. package/dist/CarouselInput/Carousel.js +25 -79
  7. package/dist/CarouselInput/CarouselActions.cjs +1 -1
  8. package/dist/CarouselInput/CarouselActions.js +1 -14
  9. package/dist/CarouselInput/CarouselImage.cjs +3 -4
  10. package/dist/CarouselInput/CarouselImage.js +13 -23
  11. package/dist/CarouselInput/CarouselInput.cjs +1 -1
  12. package/dist/CarouselInput/CarouselInput.js +12 -75
  13. package/dist/CarouselInput/CarouselSlide.cjs +1 -3
  14. package/dist/CarouselInput/CarouselSlide.js +4 -29
  15. package/dist/Checkbox/Checkbox.cjs +3 -3
  16. package/dist/Checkbox/Checkbox.js +18 -40
  17. package/dist/Dialog/Dialog.cjs +5 -5
  18. package/dist/Dialog/Dialog.js +21 -49
  19. package/dist/Dialog/DialogBody.cjs +2 -2
  20. package/dist/Dialog/DialogBody.js +6 -19
  21. package/dist/Dialog/DialogFooter.cjs +2 -2
  22. package/dist/Dialog/DialogFooter.js +7 -21
  23. package/dist/Grid/Grid.cjs +3 -3
  24. package/dist/Grid/Grid.js +8 -22
  25. package/dist/Grid/GridItem.cjs +2 -2
  26. package/dist/Grid/GridItem.js +10 -27
  27. package/dist/Layout/ActionLayout.cjs +1 -9
  28. package/dist/Layout/ActionLayout.js +4 -27
  29. package/dist/Layout/ContentLayout.cjs +1 -1
  30. package/dist/Layout/ContentLayout.js +4 -9
  31. package/dist/Layout/GridLayout.cjs +3 -3
  32. package/dist/Layout/GridLayout.js +4 -8
  33. package/dist/Layout/HeaderLayout.cjs +4 -4
  34. package/dist/Layout/HeaderLayout.js +25 -120
  35. package/dist/Layout/Layout.cjs +4 -4
  36. package/dist/Layout/Layout.js +7 -19
  37. package/dist/Layout/TwoColsLayout.cjs +1 -1
  38. package/dist/Layout/TwoColsLayout.js +6 -15
  39. package/dist/ModalLayout/ModalBody.cjs +2 -2
  40. package/dist/ModalLayout/ModalBody.js +4 -5
  41. package/dist/ModalLayout/ModalContext.cjs +1 -1
  42. package/dist/ModalLayout/ModalContext.js +2 -1
  43. package/dist/ModalLayout/ModalFooter.cjs +2 -6
  44. package/dist/ModalLayout/ModalFooter.js +9 -26
  45. package/dist/ModalLayout/ModalHeader.cjs +2 -2
  46. package/dist/ModalLayout/ModalHeader.js +10 -22
  47. package/dist/ModalLayout/ModalLayout.cjs +3 -5
  48. package/dist/ModalLayout/ModalLayout.js +10 -30
  49. package/dist/NumberInput/NumberInput.cjs +2 -2
  50. package/dist/NumberInput/NumberInput.js +68 -168
  51. package/dist/Pagination/Pagination.cjs +1 -5
  52. package/dist/Pagination/Pagination.js +7 -21
  53. package/dist/Pagination/components.cjs +7 -10
  54. package/dist/Pagination/components.js +34 -81
  55. package/dist/Popover/Popover.cjs +3 -3
  56. package/dist/Popover/Popover.js +67 -66
  57. package/dist/ProgressBar/ProgressBar.cjs +5 -5
  58. package/dist/ProgressBar/ProgressBar.js +6 -37
  59. package/dist/Radio/Radio.cjs +1 -4
  60. package/dist/Radio/Radio.js +5 -18
  61. package/dist/Searchbar/SearchForm.cjs +1 -1
  62. package/dist/Searchbar/SearchForm.js +2 -3
  63. package/dist/Searchbar/Searchbar.cjs +10 -11
  64. package/dist/Searchbar/Searchbar.js +25 -54
  65. package/dist/Status/Status.cjs +6 -6
  66. package/dist/Status/Status.js +8 -46
  67. package/dist/Switch/Switch.cjs +5 -5
  68. package/dist/Switch/Switch.js +16 -52
  69. package/dist/Table/Cell.cjs +3 -3
  70. package/dist/Table/Cell.js +10 -23
  71. package/dist/Table/TFooter.cjs +3 -3
  72. package/dist/Table/TFooter.js +8 -20
  73. package/dist/Table/Table.cjs +12 -12
  74. package/dist/Table/Table.js +19 -31
  75. package/dist/Table/Tbody.cjs +2 -2
  76. package/dist/Table/Tbody.js +4 -5
  77. package/dist/Table/Thead.cjs +2 -2
  78. package/dist/Table/Thead.js +6 -7
  79. package/dist/Table/Tr.cjs +1 -1
  80. package/dist/Table/Tr.js +3 -4
  81. package/dist/Tabs/TabGroup.cjs +1 -1
  82. package/dist/Tabs/TabGroup.js +13 -37
  83. package/dist/Tabs/TabPanels.cjs +1 -1
  84. package/dist/Tabs/TabPanels.js +11 -22
  85. package/dist/Tabs/Tabs.cjs +2 -2
  86. package/dist/Tabs/Tabs.js +55 -110
  87. package/dist/Tabs/TabsContext.cjs +1 -1
  88. package/dist/Tabs/TabsContext.js +11 -4
  89. package/dist/Textarea/Textarea.cjs +14 -12
  90. package/dist/Textarea/Textarea.js +33 -55
  91. package/dist/ToggleCheckbox/ToggleCheckbox.cjs +8 -8
  92. package/dist/ToggleCheckbox/ToggleCheckbox.js +25 -121
  93. package/dist/ToggleInput/ToggleInput.cjs +3 -3
  94. package/dist/ToggleInput/ToggleInput.js +17 -70
  95. package/dist/Typography/Typography.cjs +1 -1
  96. package/dist/Typography/Typography.js +6 -6
  97. package/dist/hooks/useControllableState.cjs +1 -1
  98. package/dist/hooks/useControllableState.js +6 -6
  99. package/dist/themes/utils.cjs +2 -2
  100. package/dist/themes/utils.js +1 -1
  101. package/dist/v2/MainNav/MainNav.cjs +2 -2
  102. package/dist/v2/MainNav/MainNav.js +9 -31
  103. package/dist/v2/MainNav/MainNavContext.cjs +1 -1
  104. package/dist/v2/MainNav/MainNavContext.js +1 -1
  105. package/dist/v2/MainNav/NavBrand.cjs +3 -3
  106. package/dist/v2/MainNav/NavBrand.js +13 -36
  107. package/dist/v2/MainNav/NavCondense.cjs +2 -5
  108. package/dist/v2/MainNav/NavCondense.js +15 -22
  109. package/dist/v2/MainNav/NavFooter.cjs +1 -1
  110. package/dist/v2/MainNav/NavFooter.js +4 -10
  111. package/dist/v2/MainNav/NavLink.cjs +10 -10
  112. package/dist/v2/MainNav/NavLink.js +18 -39
  113. package/dist/v2/MainNav/NavSection.cjs +1 -1
  114. package/dist/v2/MainNav/NavSection.js +8 -42
  115. package/dist/v2/MainNav/NavSections.cjs +2 -2
  116. package/dist/v2/MainNav/NavSections.js +8 -22
  117. package/dist/v2/MainNav/NavUser.cjs +2 -2
  118. package/dist/v2/MainNav/NavUser.js +13 -27
  119. package/dist/v2/Pagination/Pagination.cjs +1 -5
  120. package/dist/v2/Pagination/Pagination.js +7 -21
  121. package/dist/v2/Pagination/components.cjs +7 -10
  122. package/dist/v2/Pagination/components.js +32 -65
  123. package/dist/v2/SubNav/SubNav.cjs +5 -5
  124. package/dist/v2/SubNav/SubNav.js +8 -13
  125. package/dist/v2/SubNav/SubNavHeader.cjs +3 -3
  126. package/dist/v2/SubNav/SubNavHeader.js +30 -77
  127. package/dist/v2/SubNav/SubNavLink.cjs +5 -5
  128. package/dist/v2/SubNav/SubNavLink.js +13 -47
  129. package/dist/v2/SubNav/SubNavLinkSection.cjs +4 -4
  130. package/dist/v2/SubNav/SubNavLinkSection.js +19 -34
  131. package/dist/v2/SubNav/SubNavSection.cjs +2 -2
  132. package/dist/v2/SubNav/SubNavSection.js +16 -55
  133. package/dist/v2/SubNav/SubNavSectionLabel.cjs +3 -3
  134. package/dist/v2/SubNav/SubNavSectionLabel.js +10 -38
  135. package/dist/v2/SubNav/SubNavSections.cjs +1 -1
  136. package/dist/v2/SubNav/SubNavSections.js +4 -18
  137. package/package.json +4 -4
  138. package/dist/Grid/GridContext.cjs +0 -1
  139. package/dist/Grid/GridContext.js +0 -6
  140. package/dist/Tabs/useTabsFocus.cjs +0 -1
  141. package/dist/Tabs/useTabsFocus.js +0 -17
  142. package/dist/Textarea/TextareaInput.cjs +0 -30
  143. package/dist/Textarea/TextareaInput.js +0 -65
@@ -1,59 +1,31 @@
1
- import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
- import "react";
3
- import r from "prop-types";
1
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
4
2
  import e from "styled-components";
5
- import { DismissibleLayer as f } from "../DismissibleLayer/index.js";
6
- import { setOpacity as g } from "../helpers/setOpacity.js";
7
- import { useId as h } from "../hooks/useId.js";
8
- import y from "../hooks/useLockScroll.js";
9
- import { FocusTrap as b } from "../FocusTrap/FocusTrap.js";
10
- import { Box as t } from "../Box/Box.js";
11
- import { Flex as x } from "../Flex/Flex.js";
12
- import { Portal as D } from "../Portal/Portal.js";
13
- import { Typography as w } from "../Typography/Typography.js";
14
- const T = e(t)`
3
+ import { DismissibleLayer as c } from "../DismissibleLayer/index.js";
4
+ import { setOpacity as u } from "../helpers/setOpacity.js";
5
+ import { useId as f } from "../hooks/useId.js";
6
+ import h from "../hooks/useLockScroll.js";
7
+ import { FocusTrap as g } from "../FocusTrap/FocusTrap.js";
8
+ import { Box as i } from "../Box/Box.js";
9
+ import { Flex as b } from "../Flex/Flex.js";
10
+ import { Portal as x } from "../Portal/Portal.js";
11
+ import { Typography as y } from "../Typography/Typography.js";
12
+ const D = e(i)`
15
13
  inset: 0;
16
- background: ${({ theme: i }) => g(i.colors.neutral800, 0.2)};
17
- `, P = e(t)`
14
+ background: ${({ theme: r }) => u(r.colors.neutral800, 0.2)};
15
+ `, w = e(i)`
18
16
  max-width: ${412 / 16}rem;
19
17
  margin: 0 auto;
20
18
  overflow: hidden;
21
19
  margin-top: 10%;
22
- `, R = e(x)`
23
- border-bottom: 1px solid ${({ theme: i }) => i.colors.neutral150};
24
- `, a = ({ onClose: i, title: l, as: s, isOpen: n, id: p, ...m }) => {
25
- const c = h(p);
26
- if (y(n), !n)
20
+ `, $ = e(b)`
21
+ border-bottom: 1px solid ${({ theme: r }) => r.colors.neutral150};
22
+ `, C = ({ onClose: r, title: n, as: l = "h2", isOpen: t, id: d, ...m }) => {
23
+ const s = f(d);
24
+ if (h(t), !t)
27
25
  return null;
28
- const d = `${c}-label`;
29
- return /* @__PURE__ */ o(D, { children: /* @__PURE__ */ o(T, { padding: 8, position: "fixed", zIndex: 4, children: /* @__PURE__ */ o(b, { children: /* @__PURE__ */ o(f, { onEscapeKeyDown: i, onPointerDownOutside: i, children: /* @__PURE__ */ u(
30
- P,
31
- {
32
- "aria-labelledby": d,
33
- "aria-modal": !0,
34
- background: "neutral0",
35
- hasRadius: !0,
36
- shadow: "popupShadow",
37
- role: "dialog",
38
- children: [
39
- /* @__PURE__ */ o(R, { padding: 6, justifyContent: "center", children: /* @__PURE__ */ o(w, { variant: "beta", as: s || "h2", id: d, children: l }) }),
40
- /* @__PURE__ */ o(t, { ...m })
41
- ]
42
- }
43
- ) }) }) }) });
44
- };
45
- a.displayName = "Dialog";
46
- a.defaultProps = {
47
- as: "h2",
48
- id: void 0
49
- };
50
- a.propTypes = {
51
- as: r.string,
52
- id: r.oneOfType([r.string, r.number]),
53
- isOpen: r.bool.isRequired,
54
- onClose: r.func.isRequired,
55
- title: r.string.isRequired
26
+ const a = `${s}-label`;
27
+ return o(x, { children: o(D, { padding: 8, position: "fixed", zIndex: 4, children: o(g, { children: o(c, { onEscapeKeyDown: r, onPointerDownOutside: r, children: p(w, { "aria-labelledby": a, "aria-modal": !0, background: "neutral0", hasRadius: !0, shadow: "popupShadow", role: "dialog", children: [o($, { padding: 6, justifyContent: "center", children: o(y, { variant: "beta", as: l, id: a, children: n }) }), o(i, { ...m })] }) }) }) }) });
56
28
  };
57
29
  export {
58
- a as Dialog
30
+ C as Dialog
59
31
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const r=require("prop-types"),l=require("styled-components"),n=require("../Box/Box.cjs"),a=require("../Flex/Flex.cjs"),s=e=>e&&e.__esModule?e:{default:e},i=s(r),c=s(l),u=c.default(n.Box)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),d=require("styled-components"),n=require("../Box/Box.cjs"),s=require("../Flex/Flex.cjs"),i=e=>e&&e.__esModule?e:{default:e},r=i(d),l=r.default(n.Box)`
2
2
  svg {
3
3
  width: ${({theme:e})=>e.spaces[6]};
4
4
  height: ${({theme:e})=>e.spaces[6]};
@@ -7,4 +7,4 @@
7
7
  fill: ${({theme:e})=>e.colors.danger600};
8
8
  }
9
9
  }
10
- `,o=({children:e,icon:d})=>t.jsxs(n.Box,{paddingTop:8,paddingBottom:8,paddingLeft:6,paddingRight:6,children:[d&&t.jsx(u,{paddingBottom:2,children:t.jsx(a.Flex,{justifyContent:"center",children:d})}),e]});o.displayName="DialogBody";o.defaultProps={icon:void 0};o.propTypes={children:i.default.node.isRequired,icon:i.default.node};exports.DialogBody=o;
10
+ `,a=({children:e,icon:o})=>t.jsxs(n.Box,{paddingTop:8,paddingBottom:8,paddingLeft:6,paddingRight:6,children:[o&&t.jsx(l,{paddingBottom:2,children:t.jsx(s.Flex,{justifyContent:"center",children:o})}),e]});exports.DialogBody=a;
@@ -1,10 +1,8 @@
1
- import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
- import "react";
3
- import d from "prop-types";
1
+ import { jsxs as d, jsx as i } from "react/jsx-runtime";
4
2
  import n from "styled-components";
5
- import { Box as e } from "../Box/Box.js";
6
- import { Flex as s } from "../Flex/Flex.js";
7
- const a = n(e)`
3
+ import { Box as r } from "../Box/Box.js";
4
+ import { Flex as e } from "../Flex/Flex.js";
5
+ const p = n(r)`
8
6
  svg {
9
7
  width: ${({ theme: o }) => o.spaces[6]};
10
8
  height: ${({ theme: o }) => o.spaces[6]};
@@ -13,18 +11,7 @@ const a = n(e)`
13
11
  fill: ${({ theme: o }) => o.colors.danger600};
14
12
  }
15
13
  }
16
- `, i = ({ children: o, icon: r }) => /* @__PURE__ */ p(e, { paddingTop: 8, paddingBottom: 8, paddingLeft: 6, paddingRight: 6, children: [
17
- r && /* @__PURE__ */ t(a, { paddingBottom: 2, children: /* @__PURE__ */ t(s, { justifyContent: "center", children: r }) }),
18
- o
19
- ] });
20
- i.displayName = "DialogBody";
21
- i.defaultProps = {
22
- icon: void 0
23
- };
24
- i.propTypes = {
25
- children: d.node.isRequired,
26
- icon: d.node
27
- };
14
+ `, c = ({ children: o, icon: t }) => d(r, { paddingTop: 8, paddingBottom: 8, paddingLeft: 6, paddingRight: 6, children: [t && i(p, { paddingBottom: 2, children: i(e, { justifyContent: "center", children: t }) }), o] });
28
15
  export {
29
- i as DialogBody
16
+ c as DialogBody
30
17
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("react");const s=require("prop-types"),l=require("styled-components"),d=require("../Box/Box.cjs"),u=require("../Flex/Flex.cjs"),n=e=>e&&e.__esModule?e:{default:e},r=n(s),a=n(l),c=a.default(d.Box)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("styled-components"),n=require("../Box/Box.cjs"),l=require("../Flex/Flex.cjs"),s=e=>e&&e.__esModule?e:{default:e},i=s(r),u=i.default(n.Box)`
2
2
  border-top: 1px solid ${({theme:e})=>e.colors.neutral150};
3
3
 
4
4
  button {
@@ -6,4 +6,4 @@
6
6
  display: inline-flex;
7
7
  justify-content: center;
8
8
  }
9
- `,t=({startAction:e,endAction:i})=>o.jsx(c,{padding:4,children:o.jsxs(u.Flex,{gap:2,children:[e,i]})});t.displayName="DialogFooter";t.defaultProps={endAction:void 0,startAction:void 0};t.propTypes={endAction:r.default.node,startAction:r.default.node};exports.DialogFooter=t;
9
+ `,d=({startAction:e,endAction:o})=>t.jsx(u,{padding:4,children:t.jsxs(l.Flex,{gap:2,children:[e,o]})});exports.DialogFooter=d;
@@ -1,10 +1,8 @@
1
- import { jsx as i, jsxs as n } from "react/jsx-runtime";
2
- import "react";
3
- import r from "prop-types";
4
- import p from "styled-components";
5
- import { Box as d } from "../Box/Box.js";
6
- import { Flex as s } from "../Flex/Flex.js";
7
- const l = p(d)`
1
+ import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
+ import i from "styled-components";
3
+ import { Box as n } from "../Box/Box.js";
4
+ import { Flex as p } from "../Flex/Flex.js";
5
+ const l = i(n)`
8
6
  border-top: 1px solid ${({ theme: o }) => o.colors.neutral150};
9
7
 
10
8
  button {
@@ -12,19 +10,7 @@ const l = p(d)`
12
10
  display: inline-flex;
13
11
  justify-content: center;
14
12
  }
15
- `, t = ({ startAction: o, endAction: e }) => /* @__PURE__ */ i(l, { padding: 4, children: /* @__PURE__ */ n(s, { gap: 2, children: [
16
- o,
17
- e
18
- ] }) });
19
- t.displayName = "DialogFooter";
20
- t.defaultProps = {
21
- endAction: void 0,
22
- startAction: void 0
23
- };
24
- t.propTypes = {
25
- endAction: r.node,
26
- startAction: r.node
27
- };
13
+ `, x = ({ startAction: o, endAction: r }) => t(l, { padding: 4, children: e(p, { gap: 2, children: [o, r] }) });
28
14
  export {
29
- t as DialogFooter
15
+ x as DialogFooter
30
16
  };
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),c=require("react"),l=require("prop-types"),d=require("styled-components"),i=require("./GridContext.cjs"),f=require("../helpers/handleResponsiveValues.cjs"),p=require("../Box/Box.cjs"),a=e=>e&&e.__esModule?e:{default:e};function y(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=y(c),o=a(l),_=a(d),b=_.default(p.Box)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("styled-components"),i=require("../helpers/handleResponsiveValues.cjs"),d=require("../Box/Box.cjs"),l=e=>e&&e.__esModule?e:{default:e},n=l(o),u=n.default(d.Box)`
2
2
  display: grid;
3
3
  grid-template-columns: repeat(${({gridCols:e})=>e}, 1fr);
4
- ${({theme:e,gap:t})=>f("gap",t,e)}
5
- `,u=({gap:e,gridCols:t,...r})=>{const n=m.useMemo(()=>({gap:e,gridCols:t}),[e,t]);return s.jsx(i.GridContext.Provider,{value:n,children:s.jsx(b,{gap:e,gridCols:t,...r})})};u.defaultProps={gap:0,gridCols:12};u.propTypes={gap:o.default.oneOfType([o.default.number,o.default.arrayOf(o.default.number)]),gridCols:o.default.number};exports.Grid=u;
4
+ ${({theme:e,gap:t})=>i("gap",t,e)}
5
+ `,a=({gap:e="0",gridCols:t=12,...r})=>s.jsx(u,{gap:e,gridCols:t,...r});exports.Grid=a;
package/dist/Grid/Grid.js CHANGED
@@ -1,26 +1,12 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import e from "prop-types";
4
- import n from "styled-components";
5
- import { GridContext as a } from "./GridContext.js";
6
- import d from "../helpers/handleResponsiveValues.js";
7
- import { Box as f } from "../Box/Box.js";
8
- const l = n(f)`
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import t from "styled-components";
3
+ import i from "../helpers/handleResponsiveValues.js";
4
+ import { Box as m } from "../Box/Box.js";
5
+ const s = t(m)`
9
6
  display: grid;
10
7
  grid-template-columns: repeat(${({ gridCols: r }) => r}, 1fr);
11
- ${({ theme: r, gap: o }) => d("gap", o, r)}
12
- `, t = ({ gap: r, gridCols: o, ...m }) => {
13
- const i = s.useMemo(() => ({ gap: r, gridCols: o }), [r, o]);
14
- return /* @__PURE__ */ p(a.Provider, { value: i, children: /* @__PURE__ */ p(l, { gap: r, gridCols: o, ...m }) });
15
- };
16
- t.defaultProps = {
17
- gap: 0,
18
- gridCols: 12
19
- };
20
- t.propTypes = {
21
- gap: e.oneOfType([e.number, e.arrayOf(e.number)]),
22
- gridCols: e.number
23
- };
8
+ ${({ theme: r, gap: o }) => i("gap", o, r)}
9
+ `, f = ({ gap: r = "0", gridCols: o = 12, ...p }) => e(s, { gap: r, gridCols: o, ...p });
24
10
  export {
25
- t as Grid
11
+ f as Grid
26
12
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("react");const a=require("prop-types"),c=require("styled-components"),p=require("./GridContext.cjs"),m=require("../Box/Box.cjs"),s=e=>e&&e.__esModule?e:{default:e},r=s(a),f=s(c),x=f.default.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),i=require("../Box/Box.cjs"),o=e=>e&&e.__esModule?e:{default:e},d=o(t),r=d.default(i.Box)`
2
2
  grid-column: span ${({col:e})=>e};
3
3
  max-width: 100%;
4
4
 
@@ -9,4 +9,4 @@
9
9
  ${({theme:e})=>e.mediaQueries.mobile} {
10
10
  grid-column: span ${({xs:e})=>e};
11
11
  }
12
- `,t=({col:e,xs:i,s:d,...u})=>{const{gap:n,gridCols:l}=p.useGrid();return o.jsx(x,{gap:n,gridCols:l,col:e,xs:i,s:d,children:o.jsx(m.Box,{...u})})};t.defaultProps={col:void 0,s:void 0,xs:void 0};t.propTypes={col:r.default.number,s:r.default.number,xs:r.default.number};exports.GridItem=t;
12
+ `;exports.GridItem=r;
@@ -1,34 +1,17 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import "react";
3
- import o from "prop-types";
4
- import n from "styled-components";
5
- import { useGrid as l } from "./GridContext.js";
6
- import { Box as u } from "../Box/Box.js";
7
- const a = n.div`
8
- grid-column: span ${({ col: r }) => r};
1
+ import m from "styled-components";
2
+ import { Box as e } from "../Box/Box.js";
3
+ const t = m(e)`
4
+ grid-column: span ${({ col: i }) => i};
9
5
  max-width: 100%;
10
6
 
11
- ${({ theme: r }) => r.mediaQueries.tablet} {
12
- grid-column: span ${({ s: r }) => r};
7
+ ${({ theme: i }) => i.mediaQueries.tablet} {
8
+ grid-column: span ${({ s: i }) => i};
13
9
  }
14
10
 
15
- ${({ theme: r }) => r.mediaQueries.mobile} {
16
- grid-column: span ${({ xs: r }) => r};
11
+ ${({ theme: i }) => i.mediaQueries.mobile} {
12
+ grid-column: span ${({ xs: i }) => i};
17
13
  }
18
- `, m = ({ col: r, xs: e, s: p, ...s }) => {
19
- const { gap: t, gridCols: d } = l();
20
- return /* @__PURE__ */ i(a, { gap: t, gridCols: d, col: r, xs: e, s: p, children: /* @__PURE__ */ i(u, { ...s }) });
21
- };
22
- m.defaultProps = {
23
- col: void 0,
24
- s: void 0,
25
- xs: void 0
26
- };
27
- m.propTypes = {
28
- col: o.number,
29
- s: o.number,
30
- xs: o.number
31
- };
14
+ `;
32
15
  export {
33
- m as GridItem
16
+ t as GridItem
34
17
  };
@@ -1,9 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const a=require("prop-types"),c=require("styled-components"),l=require("../Flex/Flex.cjs"),r=require("../Box/Box.cjs"),i=e=>e&&e.__esModule?e:{default:e},s=i(a),d=i(c),u=d.default(l.Flex)`
2
- & > * + * {
3
- margin-left: ${({theme:e})=>e.spaces[2]};
4
- }
5
-
6
- margin-left: ${({pullRight:e})=>e?"auto":void 0};
7
- `,p=d.default(u)`
8
- flex-shrink: 0;
9
- `,n=({startActions:e,endActions:o})=>e||o?t.jsx(r.Box,{paddingLeft:10,paddingRight:10,children:t.jsx(r.Box,{paddingBottom:4,children:t.jsxs(l.Flex,{justifyContent:"space-between",alignItems:"flex-start",children:[e&&t.jsx(u,{wrap:"wrap",children:e}),o&&t.jsx(p,{pullRight:!0,children:o})]})})}):null;n.defaultProps={endActions:void 0,startActions:void 0};n.propTypes={endActions:s.default.node,startActions:s.default.node};exports.ActionLayout=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../Flex/Flex.cjs"),i=({startActions:r,endActions:n})=>!r||!n?null:e.jsxs(t.Flex,{justifyContent:"space-between",alignItems:"flex-start",paddingBottom:4,paddingLeft:10,paddingRight:10,children:[e.jsx(t.Flex,{gap:2,wrap:"wrap",children:r}),e.jsx(t.Flex,{gap:2,shrink:0,wrap:"wrap",children:n})]});exports.ActionLayout=i;
@@ -1,29 +1,6 @@
1
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
2
- import "react";
3
- import e from "prop-types";
4
- import n from "styled-components";
5
- import { Flex as p } from "../Flex/Flex.js";
6
- import { Box as i } from "../Box/Box.js";
7
- const d = n(p)`
8
- & > * + * {
9
- margin-left: ${({ theme: t }) => t.spaces[2]};
10
- }
11
-
12
- margin-left: ${({ pullRight: t }) => t ? "auto" : void 0};
13
- `, a = n(d)`
14
- flex-shrink: 0;
15
- `, l = ({ startActions: t, endActions: r }) => t || r ? /* @__PURE__ */ o(i, { paddingLeft: 10, paddingRight: 10, children: /* @__PURE__ */ o(i, { paddingBottom: 4, children: /* @__PURE__ */ s(p, { justifyContent: "space-between", alignItems: "flex-start", children: [
16
- t && /* @__PURE__ */ o(d, { wrap: "wrap", children: t }),
17
- r && /* @__PURE__ */ o(a, { pullRight: !0, children: r })
18
- ] }) }) }) : null;
19
- l.defaultProps = {
20
- endActions: void 0,
21
- startActions: void 0
22
- };
23
- l.propTypes = {
24
- endActions: e.node,
25
- startActions: e.node
26
- };
1
+ import { jsxs as p, jsx as n } from "react/jsx-runtime";
2
+ import { Flex as r } from "../Flex/Flex.js";
3
+ const o = ({ startActions: t, endActions: e }) => !t || !e ? null : p(r, { justifyContent: "space-between", alignItems: "flex-start", paddingBottom: 4, paddingLeft: 10, paddingRight: 10, children: [n(r, { gap: 2, wrap: "wrap", children: t }), n(r, { gap: 2, shrink: 0, wrap: "wrap", children: e })] });
27
4
  export {
28
- l as ActionLayout
5
+ o as ActionLayout
29
6
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("react");const r=require("prop-types"),n=require("../Box/Box.cjs"),u=e=>e&&e.__esModule?e:{default:e},i=u(r),t=({children:e})=>o.jsx(n.Box,{paddingLeft:10,paddingRight:10,children:e});t.propTypes={children:i.default.node.isRequired};exports.ContentLayout=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../Box/Box.cjs"),o=({children:t})=>e.jsx(n.Box,{paddingLeft:10,paddingRight:10,children:t});exports.ContentLayout=o;
@@ -1,11 +1,6 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import "react";
3
- import p from "prop-types";
4
- import { Box as t } from "../Box/Box.js";
5
- const e = ({ children: o }) => /* @__PURE__ */ r(t, { paddingLeft: 10, paddingRight: 10, children: o });
6
- e.propTypes = {
7
- children: p.node.isRequired
8
- };
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Box as r } from "../Box/Box.js";
3
+ const d = ({ children: t }) => o(r, { paddingLeft: 10, paddingRight: 10, children: t });
9
4
  export {
10
- e as ContentLayout
5
+ d as ContentLayout
11
6
  };
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("prop-types"),o=require("styled-components"),t=e=>e&&e.__esModule?e:{default:e},s=t(d),i=t(o),r=i.default.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("styled-components"),a=t=>t&&t.__esModule?t:{default:t},d=a(e),i=d.default.div`
2
2
  display: grid;
3
3
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
4
- grid-gap: ${({theme:e})=>e.spaces[4]};
5
- `;r.propTypes={children:s.default.node.isRequired};exports.GridLayout=r;
4
+ grid-gap: ${({theme:t})=>t.spaces[4]};
5
+ `;exports.GridLayout=i;
@@ -1,13 +1,9 @@
1
- import p from "prop-types";
2
- import e from "styled-components";
3
- const i = e.div`
1
+ import i from "styled-components";
2
+ const a = i.div`
4
3
  display: grid;
5
4
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
6
- grid-gap: ${({ theme: r }) => r.spaces[4]};
5
+ grid-gap: ${({ theme: t }) => t.spaces[4]};
7
6
  `;
8
- i.propTypes = {
9
- children: p.node.isRequired
10
- };
11
7
  export {
12
- i as GridLayout
8
+ a as GridLayout
13
9
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("react"),v=require("prop-types"),B=require("styled-components"),R=require("../hooks/useElementOnScreen.cjs"),b=require("../hooks/useResizeObserver.cjs"),r=require("../Box/Box.cjs"),l=require("../Flex/Flex.cjs"),u=require("../Typography/Typography.cjs"),f=e=>e&&e.__esModule?e:{default:e},m=f(c),i=f(v),T=f(B),L=()=>{const e=c.useRef(null),[a,n]=c.useState(null),[d,o]=R.useElementOnScreen({root:null,rootMargin:"0px",threshold:0});return b.useResizeObserver(d,()=>{d.current&&n(d.current.getBoundingClientRect())}),c.useEffect(()=>{e.current&&n(e.current.getBoundingClientRect())},[e]),{containerRef:d,isVisible:o,baseHeaderLayoutRef:e,headerSize:a}},p=e=>{const{containerRef:a,isVisible:n,baseHeaderLayoutRef:d,headerSize:o}=L();return t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{height:o?.height},ref:a,children:n&&t.jsx(s,{ref:d,...e})}),!n&&t.jsx(s,{...e,sticky:!0,width:o?.width})]})};p.displayName="HeaderLayout";const S=T.default(r.Box)`
2
- width: ${e=>e.width}px;
3
- z-index: ${({theme:e})=>e.zIndices[1]};
4
- `,s=m.default.forwardRef(({navigationAction:e,primaryAction:a,secondaryAction:n,subtitle:d,title:o,sticky:y,width:g,...h},j)=>{const x=typeof d=="string";return y?t.jsx(S,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:g,"data-strapi-header-sticky":!0,children:t.jsxs(l.Flex,{justifyContent:"space-between",children:[t.jsxs(l.Flex,{children:[e&&t.jsx(r.Box,{paddingRight:3,children:e}),t.jsxs(r.Box,{children:[t.jsx(u.Typography,{variant:"beta",as:"h1",...h,children:o}),x?t.jsx(u.Typography,{variant:"pi",textColor:"neutral600",children:d}):d]}),n?t.jsx(r.Box,{paddingLeft:4,children:n}):null]}),t.jsx(l.Flex,{children:a?t.jsx(r.Box,{paddingLeft:2,children:a}):void 0})]})}):t.jsxs(r.Box,{ref:j,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:e?6:8,background:"neutral100","data-strapi-header":!0,children:[e?t.jsx(r.Box,{paddingBottom:2,children:e}):null,t.jsxs(l.Flex,{justifyContent:"space-between",children:[t.jsxs(l.Flex,{minWidth:0,children:[t.jsx(u.Typography,{as:"h1",variant:"alpha",...h,children:o}),n?t.jsx(r.Box,{paddingLeft:4,children:n}):null]}),a]}),x?t.jsx(u.Typography,{variant:"epsilon",textColor:"neutral600",as:"p",children:d}):d]})});s.displayName="BaseHeaderLayout";s.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0};s.propTypes={navigationAction:i.default.node,primaryAction:i.default.node,secondaryAction:i.default.node,sticky:i.default.bool,subtitle:i.default.oneOfType([i.default.string,i.default.node]),title:i.default.string.isRequired,width:i.default.number};p.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0};p.propTypes={navigationAction:i.default.node,primaryAction:i.default.node,secondaryAction:i.default.node,subtitle:i.default.oneOfType([i.default.string,i.default.node]),title:i.default.string.isRequired};exports.BaseHeaderLayout=s;exports.HeaderLayout=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),y=require("styled-components"),B=require("../hooks/useElementOnScreen.cjs"),R=require("../hooks/useResizeObserver.cjs"),d=require("../Box/Box.cjs"),a=require("../Flex/Flex.cjs"),o=require("../Typography/Typography.cjs"),p=t=>t&&t.__esModule?t:{default:t},L=p(u),S=p(y),g=t=>{const r=u.useRef(null),[s,n]=u.useState(null),[i,l]=B.useElementOnScreen({root:null,rootMargin:"0px",threshold:0});return R.useResizeObserver(i,()=>{i.current&&n(i.current.getBoundingClientRect())}),u.useEffect(()=>{r.current&&n(r.current.getBoundingClientRect())},[r]),e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{height:s?.height},ref:i,children:l&&e.jsx(c,{ref:r,...t})}),!l&&e.jsx(c,{...t,sticky:!0,width:s?.width})]})};g.displayName="HeaderLayout";const b=S.default(d.Box)`
2
+ width: ${({width:t})=>t?`${t/16}rem`:void 0};
3
+ z-index: ${({theme:t})=>t.zIndices[1]};
4
+ `,c=L.default.forwardRef(({navigationAction:t,primaryAction:r,secondaryAction:s,subtitle:n,title:i,sticky:l,width:f,...h},j)=>{const x=typeof n=="string";return l?e.jsx(b,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:f,"data-strapi-header-sticky":!0,children:e.jsxs(a.Flex,{justifyContent:"space-between",children:[e.jsxs(a.Flex,{children:[t&&e.jsx(d.Box,{paddingRight:3,children:t}),e.jsxs(d.Box,{children:[e.jsx(o.Typography,{variant:"beta",as:"h1",...h,children:i}),x?e.jsx(o.Typography,{variant:"pi",textColor:"neutral600",children:n}):n]}),s?e.jsx(d.Box,{paddingLeft:4,children:s}):null]}),e.jsx(a.Flex,{children:r?e.jsx(d.Box,{paddingLeft:2,children:r}):void 0})]})}):e.jsxs(d.Box,{ref:j,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:t?6:8,background:"neutral100","data-strapi-header":!0,children:[t?e.jsx(d.Box,{paddingBottom:2,children:t}):null,e.jsxs(a.Flex,{justifyContent:"space-between",children:[e.jsxs(a.Flex,{minWidth:0,children:[e.jsx(o.Typography,{as:"h1",variant:"alpha",...h,children:i}),s?e.jsx(d.Box,{paddingLeft:4,children:s}):null]}),r]}),x?e.jsx(o.Typography,{variant:"epsilon",textColor:"neutral600",as:"p",children:n}):n]})});exports.BaseHeaderLayout=c;exports.HeaderLayout=g;
@@ -1,127 +1,32 @@
1
- import { jsx as i, jsxs as s, Fragment as v } from "react/jsx-runtime";
2
- import R, { useRef as b, useState as x, useEffect as w } from "react";
3
- import t from "prop-types";
4
- import L from "styled-components";
5
- import { useElementOnScreen as S } from "../hooks/useElementOnScreen.js";
6
- import { useResizeObserver as B } from "../hooks/useResizeObserver.js";
7
- import { Box as d } from "../Box/Box.js";
8
- import { Flex as l } from "../Flex/Flex.js";
9
- import { Typography as p } from "../Typography/Typography.js";
10
- const H = () => {
11
- const e = b(null), [o, n] = x(null), [r, a] = S({
1
+ import { jsx as e, jsxs as l, Fragment as m } from "react/jsx-runtime";
2
+ import x, { useRef as R, useState as y, useEffect as L } from "react";
3
+ import w from "styled-components";
4
+ import { useElementOnScreen as B } from "../hooks/useElementOnScreen.js";
5
+ import { useResizeObserver as S } from "../hooks/useResizeObserver.js";
6
+ import { Box as n } from "../Box/Box.js";
7
+ import { Flex as o } from "../Flex/Flex.js";
8
+ import { Typography as u } from "../Typography/Typography.js";
9
+ const b = (r) => {
10
+ const t = R(null), [i, d] = y(null), [a, h] = B({
12
11
  root: null,
13
12
  rootMargin: "0px",
14
13
  threshold: 0
15
14
  });
16
- return B(r, () => {
17
- r.current && n(r.current.getBoundingClientRect());
18
- }), w(() => {
19
- e.current && n(e.current.getBoundingClientRect());
20
- }, [e]), {
21
- containerRef: r,
22
- isVisible: a,
23
- baseHeaderLayoutRef: e,
24
- headerSize: o
25
- };
26
- }, h = (e) => {
27
- const { containerRef: o, isVisible: n, baseHeaderLayoutRef: r, headerSize: a } = H();
28
- return /* @__PURE__ */ s(v, { children: [
29
- /* @__PURE__ */ i("div", { style: { height: a?.height }, ref: o, children: n && /* @__PURE__ */ i(c, { ref: r, ...e }) }),
30
- !n && /* @__PURE__ */ i(c, { ...e, sticky: !0, width: a?.width })
31
- ] });
32
- };
33
- h.displayName = "HeaderLayout";
34
- const T = L(d)`
35
- width: ${(e) => e.width}px;
36
- z-index: ${({ theme: e }) => e.zIndices[1]};
37
- `, c = R.forwardRef(
38
- ({ navigationAction: e, primaryAction: o, secondaryAction: n, subtitle: r, title: a, sticky: g, width: m, ...u }, y) => {
39
- const f = typeof r == "string";
40
- return g ? /* @__PURE__ */ i(
41
- T,
42
- {
43
- paddingLeft: 6,
44
- paddingRight: 6,
45
- paddingTop: 3,
46
- paddingBottom: 3,
47
- position: "fixed",
48
- top: 0,
49
- right: 0,
50
- background: "neutral0",
51
- shadow: "tableShadow",
52
- width: m,
53
- "data-strapi-header-sticky": !0,
54
- children: /* @__PURE__ */ s(l, { justifyContent: "space-between", children: [
55
- /* @__PURE__ */ s(l, { children: [
56
- e && /* @__PURE__ */ i(d, { paddingRight: 3, children: e }),
57
- /* @__PURE__ */ s(d, { children: [
58
- /* @__PURE__ */ i(p, { variant: "beta", as: "h1", ...u, children: a }),
59
- f ? /* @__PURE__ */ i(p, { variant: "pi", textColor: "neutral600", children: r }) : r
60
- ] }),
61
- n ? /* @__PURE__ */ i(d, { paddingLeft: 4, children: n }) : null
62
- ] }),
63
- /* @__PURE__ */ i(l, { children: o ? /* @__PURE__ */ i(d, { paddingLeft: 2, children: o }) : void 0 })
64
- ] })
65
- }
66
- ) : /* @__PURE__ */ s(
67
- d,
68
- {
69
- ref: y,
70
- paddingLeft: 10,
71
- paddingRight: 10,
72
- paddingBottom: 8,
73
- paddingTop: e ? 6 : 8,
74
- background: "neutral100",
75
- "data-strapi-header": !0,
76
- children: [
77
- e ? /* @__PURE__ */ i(d, { paddingBottom: 2, children: e }) : null,
78
- /* @__PURE__ */ s(l, { justifyContent: "space-between", children: [
79
- /* @__PURE__ */ s(l, { minWidth: 0, children: [
80
- /* @__PURE__ */ i(p, { as: "h1", variant: "alpha", ...u, children: a }),
81
- n ? /* @__PURE__ */ i(d, { paddingLeft: 4, children: n }) : null
82
- ] }),
83
- o
84
- ] }),
85
- f ? /* @__PURE__ */ i(p, { variant: "epsilon", textColor: "neutral600", as: "p", children: r }) : r
86
- ]
87
- }
88
- );
89
- }
90
- );
91
- c.displayName = "BaseHeaderLayout";
92
- c.defaultProps = {
93
- navigationAction: void 0,
94
- primaryAction: void 0,
95
- secondaryAction: void 0,
96
- subtitle: void 0,
97
- sticky: !1,
98
- width: void 0
99
- };
100
- c.propTypes = {
101
- navigationAction: t.node,
102
- primaryAction: t.node,
103
- secondaryAction: t.node,
104
- sticky: t.bool,
105
- // TODO V2: Remove the string fallback
106
- subtitle: t.oneOfType([t.string, t.node]),
107
- title: t.string.isRequired,
108
- width: t.number
109
- };
110
- h.defaultProps = {
111
- navigationAction: void 0,
112
- primaryAction: void 0,
113
- secondaryAction: void 0,
114
- subtitle: void 0
115
- };
116
- h.propTypes = {
117
- navigationAction: t.node,
118
- primaryAction: t.node,
119
- secondaryAction: t.node,
120
- // TODO V2: Remove the string fallback
121
- subtitle: t.oneOfType([t.string, t.node]),
122
- title: t.string.isRequired
15
+ return S(a, () => {
16
+ a.current && d(a.current.getBoundingClientRect());
17
+ }), L(() => {
18
+ t.current && d(t.current.getBoundingClientRect());
19
+ }, [t]), l(m, { children: [e("div", { style: { height: i?.height }, ref: a, children: h && e(p, { ref: t, ...r }) }), !h && e(p, { ...r, sticky: !0, width: i?.width })] });
123
20
  };
21
+ b.displayName = "HeaderLayout";
22
+ const C = w(n)`
23
+ width: ${({ width: r }) => r ? `${r / 16}rem` : void 0};
24
+ z-index: ${({ theme: r }) => r.zIndices[1]};
25
+ `, p = x.forwardRef(({ navigationAction: r, primaryAction: t, secondaryAction: i, subtitle: d, title: a, sticky: h, width: c, ...s }, g) => {
26
+ const f = typeof d == "string";
27
+ return h ? e(C, { paddingLeft: 6, paddingRight: 6, paddingTop: 3, paddingBottom: 3, position: "fixed", top: 0, right: 0, background: "neutral0", shadow: "tableShadow", width: c, "data-strapi-header-sticky": !0, children: l(o, { justifyContent: "space-between", children: [l(o, { children: [r && e(n, { paddingRight: 3, children: r }), l(n, { children: [e(u, { variant: "beta", as: "h1", ...s, children: a }), f ? e(u, { variant: "pi", textColor: "neutral600", children: d }) : d] }), i ? e(n, { paddingLeft: 4, children: i }) : null] }), e(o, { children: t ? e(n, { paddingLeft: 2, children: t }) : void 0 })] }) }) : l(n, { ref: g, paddingLeft: 10, paddingRight: 10, paddingBottom: 8, paddingTop: r ? 6 : 8, background: "neutral100", "data-strapi-header": !0, children: [r ? e(n, { paddingBottom: 2, children: r }) : null, l(o, { justifyContent: "space-between", children: [l(o, { minWidth: 0, children: [e(u, { as: "h1", variant: "alpha", ...s, children: a }), i ? e(n, { paddingLeft: 4, children: i }) : null] }), t] }), f ? e(u, { variant: "epsilon", textColor: "neutral600", as: "p", children: d }) : d] });
28
+ });
124
29
  export {
125
- c as BaseHeaderLayout,
126
- h as HeaderLayout
30
+ p as BaseHeaderLayout,
31
+ b as HeaderLayout
127
32
  };
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("react");const u=require("prop-types"),l=require("styled-components"),d=require("../Box/Box.cjs"),s=e=>e&&e.__esModule?e:{default:e},r=s(u),n=s(l),a=n.default(d.Box)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("styled-components"),o=require("../Box/Box.cjs"),l=t=>t&&t.__esModule?t:{default:t},r=l(d),s=r.default(o.Box)`
2
2
  display: grid;
3
- grid-template-columns: ${({hasSideNav:e})=>e?"auto 1fr":"1fr"};
4
- `,c=n.default(d.Box)`
3
+ grid-template-columns: ${({hasSideNav:t})=>t?"auto 1fr":"1fr"};
4
+ `,i=r.default(o.Box)`
5
5
  overflow-x: hidden;
6
- `,t=({sideNav:e,children:i})=>o.jsxs(a,{hasSideNav:!!e,children:[e,o.jsx(c,{paddingBottom:10,children:i})]});t.defaultProps={sideNav:void 0};t.propTypes={children:r.default.node.isRequired,sideNav:r.default.node};exports.Layout=t;
6
+ `,u=({sideNav:t,children:n})=>e.jsxs(s,{hasSideNav:!!t,children:[t,e.jsx(i,{paddingBottom:10,children:n})]});exports.Layout=u;
@@ -1,24 +1,12 @@
1
- import { jsxs as n, jsx as p } from "react/jsx-runtime";
2
- import "react";
3
- import r from "prop-types";
4
- import e from "styled-components";
5
- import { Box as i } from "../Box/Box.js";
6
- const s = e(i)`
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
+ import r from "styled-components";
3
+ import { Box as t } from "../Box/Box.js";
4
+ const d = r(t)`
7
5
  display: grid;
8
6
  grid-template-columns: ${({ hasSideNav: o }) => o ? "auto 1fr" : "1fr"};
9
- `, m = e(i)`
7
+ `, m = r(t)`
10
8
  overflow-x: hidden;
11
- `, t = ({ sideNav: o, children: d }) => /* @__PURE__ */ n(s, { hasSideNav: !!o, children: [
12
- o,
13
- /* @__PURE__ */ p(m, { paddingBottom: 10, children: d })
14
- ] });
15
- t.defaultProps = {
16
- sideNav: void 0
17
- };
18
- t.propTypes = {
19
- children: r.node.isRequired,
20
- sideNav: r.node
21
- };
9
+ `, f = ({ sideNav: o, children: e }) => i(d, { hasSideNav: !!o, children: [o, n(m, { paddingBottom: 10, children: e })] });
22
10
  export {
23
- t as Layout
11
+ f as Layout
24
12
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("react");const i=require("prop-types"),a=require("../Grid/Grid.cjs"),o=require("../Grid/GridItem.cjs"),t=require("../Box/Box.cjs"),n=e=>e&&e.__esModule?e:{default:e},s=n(i),d=({startCol:e,endCol:u})=>r.jsxs(a.Grid,{gap:4,children:[r.jsx(o.GridItem,{col:9,s:12,children:r.jsx(t.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow",children:e})}),r.jsx(o.GridItem,{col:3,s:12,children:r.jsx(t.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow",children:u})})]});d.propTypes={endCol:s.default.node.isRequired,startCol:s.default.node.isRequired};exports.TwoColsLayout=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../Grid/Grid.cjs"),r=require("../Grid/GridItem.cjs"),o=require("../Box/Box.cjs"),i=({startCol:s,endCol:t})=>e.jsxs(d.Grid,{gap:4,children:[e.jsx(r.GridItem,{col:9,s:12,children:e.jsx(o.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow",children:s})}),e.jsx(r.GridItem,{col:3,s:12,children:e.jsx(o.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow",children:t})})]});exports.TwoColsLayout=i;