@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.
- package/dist/BaseButton/BaseButton.cjs +3 -3
- package/dist/BaseButton/BaseButton.js +5 -5
- package/dist/Box/Box.cjs +2 -2
- package/dist/Box/Box.js +1 -1
- package/dist/CarouselInput/Carousel.cjs +6 -7
- package/dist/CarouselInput/Carousel.js +25 -79
- package/dist/CarouselInput/CarouselActions.cjs +1 -1
- package/dist/CarouselInput/CarouselActions.js +1 -14
- package/dist/CarouselInput/CarouselImage.cjs +3 -4
- package/dist/CarouselInput/CarouselImage.js +13 -23
- package/dist/CarouselInput/CarouselInput.cjs +1 -1
- package/dist/CarouselInput/CarouselInput.js +12 -75
- package/dist/CarouselInput/CarouselSlide.cjs +1 -3
- package/dist/CarouselInput/CarouselSlide.js +4 -29
- package/dist/Checkbox/Checkbox.cjs +3 -3
- package/dist/Checkbox/Checkbox.js +18 -40
- package/dist/Dialog/Dialog.cjs +5 -5
- package/dist/Dialog/Dialog.js +21 -49
- package/dist/Dialog/DialogBody.cjs +2 -2
- package/dist/Dialog/DialogBody.js +6 -19
- package/dist/Dialog/DialogFooter.cjs +2 -2
- package/dist/Dialog/DialogFooter.js +7 -21
- package/dist/Grid/Grid.cjs +3 -3
- package/dist/Grid/Grid.js +8 -22
- package/dist/Grid/GridItem.cjs +2 -2
- package/dist/Grid/GridItem.js +10 -27
- package/dist/Layout/ActionLayout.cjs +1 -9
- package/dist/Layout/ActionLayout.js +4 -27
- package/dist/Layout/ContentLayout.cjs +1 -1
- package/dist/Layout/ContentLayout.js +4 -9
- package/dist/Layout/GridLayout.cjs +3 -3
- package/dist/Layout/GridLayout.js +4 -8
- package/dist/Layout/HeaderLayout.cjs +4 -4
- package/dist/Layout/HeaderLayout.js +25 -120
- package/dist/Layout/Layout.cjs +4 -4
- package/dist/Layout/Layout.js +7 -19
- package/dist/Layout/TwoColsLayout.cjs +1 -1
- package/dist/Layout/TwoColsLayout.js +6 -15
- package/dist/ModalLayout/ModalBody.cjs +2 -2
- package/dist/ModalLayout/ModalBody.js +4 -5
- package/dist/ModalLayout/ModalContext.cjs +1 -1
- package/dist/ModalLayout/ModalContext.js +2 -1
- package/dist/ModalLayout/ModalFooter.cjs +2 -6
- package/dist/ModalLayout/ModalFooter.js +9 -26
- package/dist/ModalLayout/ModalHeader.cjs +2 -2
- package/dist/ModalLayout/ModalHeader.js +10 -22
- package/dist/ModalLayout/ModalLayout.cjs +3 -5
- package/dist/ModalLayout/ModalLayout.js +10 -30
- package/dist/NumberInput/NumberInput.cjs +2 -2
- package/dist/NumberInput/NumberInput.js +68 -168
- package/dist/Pagination/Pagination.cjs +1 -5
- package/dist/Pagination/Pagination.js +7 -21
- package/dist/Pagination/components.cjs +7 -10
- package/dist/Pagination/components.js +34 -81
- package/dist/Popover/Popover.cjs +3 -3
- package/dist/Popover/Popover.js +67 -66
- package/dist/ProgressBar/ProgressBar.cjs +5 -5
- package/dist/ProgressBar/ProgressBar.js +6 -37
- package/dist/Radio/Radio.cjs +1 -4
- package/dist/Radio/Radio.js +5 -18
- package/dist/Searchbar/SearchForm.cjs +1 -1
- package/dist/Searchbar/SearchForm.js +2 -3
- package/dist/Searchbar/Searchbar.cjs +10 -11
- package/dist/Searchbar/Searchbar.js +25 -54
- package/dist/Status/Status.cjs +6 -6
- package/dist/Status/Status.js +8 -46
- package/dist/Switch/Switch.cjs +5 -5
- package/dist/Switch/Switch.js +16 -52
- package/dist/Table/Cell.cjs +3 -3
- package/dist/Table/Cell.js +10 -23
- package/dist/Table/TFooter.cjs +3 -3
- package/dist/Table/TFooter.js +8 -20
- package/dist/Table/Table.cjs +12 -12
- package/dist/Table/Table.js +19 -31
- package/dist/Table/Tbody.cjs +2 -2
- package/dist/Table/Tbody.js +4 -5
- package/dist/Table/Thead.cjs +2 -2
- package/dist/Table/Thead.js +6 -7
- package/dist/Table/Tr.cjs +1 -1
- package/dist/Table/Tr.js +3 -4
- package/dist/Tabs/TabGroup.cjs +1 -1
- package/dist/Tabs/TabGroup.js +13 -37
- package/dist/Tabs/TabPanels.cjs +1 -1
- package/dist/Tabs/TabPanels.js +11 -22
- package/dist/Tabs/Tabs.cjs +2 -2
- package/dist/Tabs/Tabs.js +55 -110
- package/dist/Tabs/TabsContext.cjs +1 -1
- package/dist/Tabs/TabsContext.js +11 -4
- package/dist/Textarea/Textarea.cjs +14 -12
- package/dist/Textarea/Textarea.js +33 -55
- package/dist/ToggleCheckbox/ToggleCheckbox.cjs +8 -8
- package/dist/ToggleCheckbox/ToggleCheckbox.js +25 -121
- package/dist/ToggleInput/ToggleInput.cjs +3 -3
- package/dist/ToggleInput/ToggleInput.js +17 -70
- package/dist/Typography/Typography.cjs +1 -1
- package/dist/Typography/Typography.js +6 -6
- package/dist/hooks/useControllableState.cjs +1 -1
- package/dist/hooks/useControllableState.js +6 -6
- package/dist/themes/utils.cjs +2 -2
- package/dist/themes/utils.js +1 -1
- package/dist/v2/MainNav/MainNav.cjs +2 -2
- package/dist/v2/MainNav/MainNav.js +9 -31
- package/dist/v2/MainNav/MainNavContext.cjs +1 -1
- package/dist/v2/MainNav/MainNavContext.js +1 -1
- package/dist/v2/MainNav/NavBrand.cjs +3 -3
- package/dist/v2/MainNav/NavBrand.js +13 -36
- package/dist/v2/MainNav/NavCondense.cjs +2 -5
- package/dist/v2/MainNav/NavCondense.js +15 -22
- package/dist/v2/MainNav/NavFooter.cjs +1 -1
- package/dist/v2/MainNav/NavFooter.js +4 -10
- package/dist/v2/MainNav/NavLink.cjs +10 -10
- package/dist/v2/MainNav/NavLink.js +18 -39
- package/dist/v2/MainNav/NavSection.cjs +1 -1
- package/dist/v2/MainNav/NavSection.js +8 -42
- package/dist/v2/MainNav/NavSections.cjs +2 -2
- package/dist/v2/MainNav/NavSections.js +8 -22
- package/dist/v2/MainNav/NavUser.cjs +2 -2
- package/dist/v2/MainNav/NavUser.js +13 -27
- package/dist/v2/Pagination/Pagination.cjs +1 -5
- package/dist/v2/Pagination/Pagination.js +7 -21
- package/dist/v2/Pagination/components.cjs +7 -10
- package/dist/v2/Pagination/components.js +32 -65
- package/dist/v2/SubNav/SubNav.cjs +5 -5
- package/dist/v2/SubNav/SubNav.js +8 -13
- package/dist/v2/SubNav/SubNavHeader.cjs +3 -3
- package/dist/v2/SubNav/SubNavHeader.js +30 -77
- package/dist/v2/SubNav/SubNavLink.cjs +5 -5
- package/dist/v2/SubNav/SubNavLink.js +13 -47
- package/dist/v2/SubNav/SubNavLinkSection.cjs +4 -4
- package/dist/v2/SubNav/SubNavLinkSection.js +19 -34
- package/dist/v2/SubNav/SubNavSection.cjs +2 -2
- package/dist/v2/SubNav/SubNavSection.js +16 -55
- package/dist/v2/SubNav/SubNavSectionLabel.cjs +3 -3
- package/dist/v2/SubNav/SubNavSectionLabel.js +10 -38
- package/dist/v2/SubNav/SubNavSections.cjs +1 -1
- package/dist/v2/SubNav/SubNavSections.js +4 -18
- package/package.json +4 -4
- package/dist/Grid/GridContext.cjs +0 -1
- package/dist/Grid/GridContext.js +0 -6
- package/dist/Tabs/useTabsFocus.cjs +0 -1
- package/dist/Tabs/useTabsFocus.js +0 -17
- package/dist/Textarea/TextareaInput.cjs +0 -30
- package/dist/Textarea/TextareaInput.js +0 -65
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
import { Box as i } from "../../Box/Box.js";
|
|
5
|
-
const o = ({ children: r }) => /* @__PURE__ */ e(i, { position: "relative", children: r });
|
|
6
|
-
o.displayName = "NavFooter";
|
|
7
|
-
o.propTypes = {
|
|
8
|
-
children: p.node.isRequired
|
|
9
|
-
};
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Box as t } from "../../Box/Box.js";
|
|
3
|
+
const m = ({ children: o }) => r(t, { position: "relative", children: o });
|
|
10
4
|
export {
|
|
11
|
-
|
|
5
|
+
m as NavFooter
|
|
12
6
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),$=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),$=require("react"),y=require("styled-components"),f=require("./MainNavContext.cjs"),x=require("../../Box/Box.cjs"),j=require("../../BaseLink/BaseLink.cjs"),s=require("../../Typography/Typography.cjs"),h=require("../../Flex/Flex.cjs"),v=require("../../Badge/Badge.cjs"),m=require("../../Tooltip/Tooltip.cjs"),g=e=>e&&e.__esModule?e:{default:e},b=g($),a=g(y),c=a.default(x.Box)`
|
|
2
2
|
svg {
|
|
3
3
|
width: 1rem;
|
|
4
4
|
height: 1rem;
|
|
5
5
|
}
|
|
6
|
-
`,
|
|
6
|
+
`,d=a.default(j.BaseLink)`
|
|
7
7
|
position: relative;
|
|
8
8
|
text-decoration: none;
|
|
9
9
|
display: block;
|
|
10
10
|
border-radius: ${({theme:e})=>e.borderRadius};
|
|
11
11
|
background: ${({theme:e})=>e.colors.neutral0};
|
|
12
12
|
|
|
13
|
-
${
|
|
13
|
+
${s.Typography} {
|
|
14
14
|
color: ${({theme:e})=>e.colors.neutral600};
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
&:hover {
|
|
22
22
|
background: ${({theme:e})=>e.colors.neutral100};
|
|
23
23
|
|
|
24
|
-
${
|
|
24
|
+
${s.Typography} {
|
|
25
25
|
color: ${({theme:e})=>e.colors.neutral700};
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
fill: ${({theme:e})=>e.colors.primary600};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
${
|
|
40
|
+
${s.Typography} {
|
|
41
41
|
color: ${({theme:e})=>e.colors.primary600};
|
|
42
42
|
font-weight: 500;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`,u=a.default(h.Flex)`
|
|
46
46
|
padding: ${({theme:e})=>`${e.spaces[2]} ${e.spaces[3]}`};
|
|
47
|
-
`,
|
|
48
|
-
${({theme:e,condensed:
|
|
47
|
+
`,p=a.default(v.Badge)`
|
|
48
|
+
${({theme:e,condensed:o})=>o&&`
|
|
49
49
|
position: absolute;
|
|
50
50
|
// Values based on visual aspect
|
|
51
51
|
top: -${e.spaces[3]};
|
|
52
52
|
right: -${e.spaces[1]};
|
|
53
53
|
`}
|
|
54
54
|
|
|
55
|
-
${
|
|
55
|
+
${s.Typography} {
|
|
56
56
|
//find a solution to remove !important
|
|
57
57
|
color: ${({theme:e})=>e.colors.neutral0} !important;
|
|
58
58
|
line-height: 0;
|
|
@@ -66,4 +66,4 @@
|
|
|
66
66
|
padding: ${({theme:e})=>`0 ${e.spaces[2]}`};
|
|
67
67
|
border-radius: ${({theme:e})=>e.spaces[10]};
|
|
68
68
|
background: ${({theme:e})=>e.colors.primary600};
|
|
69
|
-
`,
|
|
69
|
+
`,k=b.default.forwardRef(({children:e,icon:o,badgeContent:t,badgeAriaLabel:n,...i},l)=>f.useMainNav()?r.jsx(d,{ref:l,...i,children:r.jsx(m.Tooltip,{position:"right",label:e,children:r.jsxs(u,{as:"span",justifyContent:"center",children:[r.jsx(c,{"aria-hidden":!0,paddingRight:0,as:"span",children:o}),t&&r.jsx(p,{condensed:!0,"aria-label":n,children:t})]})})}):r.jsx(d,{ref:l,...i,children:r.jsxs(u,{as:"span",justifyContent:"space-between",children:[r.jsxs(h.Flex,{children:[r.jsx(c,{"aria-hidden":!0,paddingRight:3,as:"span",children:o}),r.jsx(s.Typography,{children:e})]}),t&&r.jsx(p,{justifyContent:"center","aria-label":n,children:t})]})}));exports.NavLink=k;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import e from "prop-types";
|
|
2
|
+
import $ from "react";
|
|
4
3
|
import t from "styled-components";
|
|
5
|
-
import { useMainNav as
|
|
6
|
-
import { Box as
|
|
4
|
+
import { useMainNav as f } from "./MainNavContext.js";
|
|
5
|
+
import { Box as g } from "../../Box/Box.js";
|
|
7
6
|
import { BaseLink as v } from "../../BaseLink/BaseLink.js";
|
|
8
|
-
import { Typography as
|
|
9
|
-
import { Flex as
|
|
10
|
-
import { Badge as
|
|
11
|
-
import { Tooltip as
|
|
12
|
-
const
|
|
7
|
+
import { Typography as e } from "../../Typography/Typography.js";
|
|
8
|
+
import { Flex as h } from "../../Flex/Flex.js";
|
|
9
|
+
import { Badge as y } from "../../Badge/Badge.js";
|
|
10
|
+
import { Tooltip as b } from "../../Tooltip/Tooltip.js";
|
|
11
|
+
const p = t(g)`
|
|
13
12
|
svg {
|
|
14
13
|
width: 1rem;
|
|
15
14
|
height: 1rem;
|
|
16
15
|
}
|
|
17
|
-
`,
|
|
16
|
+
`, d = t(v)`
|
|
18
17
|
position: relative;
|
|
19
18
|
text-decoration: none;
|
|
20
19
|
display: block;
|
|
21
20
|
border-radius: ${({ theme: r }) => r.borderRadius};
|
|
22
21
|
background: ${({ theme: r }) => r.colors.neutral0};
|
|
23
22
|
|
|
24
|
-
${
|
|
23
|
+
${e} {
|
|
25
24
|
color: ${({ theme: r }) => r.colors.neutral600};
|
|
26
25
|
}
|
|
27
26
|
|
|
@@ -32,7 +31,7 @@ const m = t(b)`
|
|
|
32
31
|
&:hover {
|
|
33
32
|
background: ${({ theme: r }) => r.colors.neutral100};
|
|
34
33
|
|
|
35
|
-
${
|
|
34
|
+
${e} {
|
|
36
35
|
color: ${({ theme: r }) => r.colors.neutral700};
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -48,22 +47,22 @@ const m = t(b)`
|
|
|
48
47
|
fill: ${({ theme: r }) => r.colors.primary600};
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
${
|
|
50
|
+
${e} {
|
|
52
51
|
color: ${({ theme: r }) => r.colors.primary600};
|
|
53
52
|
font-weight: 500;
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
|
-
`,
|
|
55
|
+
`, m = t(h)`
|
|
57
56
|
padding: ${({ theme: r }) => `${r.spaces[2]} ${r.spaces[3]}`};
|
|
58
|
-
`,
|
|
59
|
-
${({ theme: r, condensed:
|
|
57
|
+
`, u = t(y)`
|
|
58
|
+
${({ theme: r, condensed: i }) => i && `
|
|
60
59
|
position: absolute;
|
|
61
60
|
// Values based on visual aspect
|
|
62
61
|
top: -${r.spaces[3]};
|
|
63
62
|
right: -${r.spaces[1]};
|
|
64
63
|
`}
|
|
65
64
|
|
|
66
|
-
${
|
|
65
|
+
${e} {
|
|
67
66
|
//find a solution to remove !important
|
|
68
67
|
color: ${({ theme: r }) => r.colors.neutral0} !important;
|
|
69
68
|
line-height: 0;
|
|
@@ -77,27 +76,7 @@ const m = t(b)`
|
|
|
77
76
|
padding: ${({ theme: r }) => `0 ${r.spaces[2]}`};
|
|
78
77
|
border-radius: ${({ theme: r }) => r.spaces[10]};
|
|
79
78
|
background: ${({ theme: r }) => r.colors.primary600};
|
|
80
|
-
`,
|
|
81
|
-
/* @__PURE__ */ o(m, { "aria-hidden": !0, paddingRight: 0, as: "span", children: a }),
|
|
82
|
-
n && /* @__PURE__ */ o(g, { condensed: !0, "aria-label": c, children: n })
|
|
83
|
-
] }) }) }) : /* @__PURE__ */ o(u, { ref: p, ...d, children: /* @__PURE__ */ s(h, { as: "span", justifyContent: "space-between", children: [
|
|
84
|
-
/* @__PURE__ */ s($, { children: [
|
|
85
|
-
/* @__PURE__ */ o(m, { "aria-hidden": !0, paddingRight: 3, as: "span", children: a }),
|
|
86
|
-
/* @__PURE__ */ o(i, { children: r })
|
|
87
|
-
] }),
|
|
88
|
-
n && /* @__PURE__ */ o(g, { justifyContent: "center", "aria-label": c, children: n })
|
|
89
|
-
] }) }));
|
|
90
|
-
l.displayName = "NavLink";
|
|
91
|
-
l.defaultProps = {
|
|
92
|
-
badgeContent: void 0,
|
|
93
|
-
badgeAriaLabel: void 0
|
|
94
|
-
};
|
|
95
|
-
l.propTypes = {
|
|
96
|
-
badgeAriaLabel: e.string,
|
|
97
|
-
badgeContent: e.oneOfType([e.string, e.number]),
|
|
98
|
-
children: e.string.isRequired,
|
|
99
|
-
icon: e.node.isRequired
|
|
100
|
-
};
|
|
79
|
+
`, C = $.forwardRef(({ children: r, icon: i, badgeContent: a, badgeAriaLabel: n, ...l }, c) => f() ? o(d, { ref: c, ...l, children: o(b, { position: "right", label: r, children: s(m, { as: "span", justifyContent: "center", children: [o(p, { "aria-hidden": !0, paddingRight: 0, as: "span", children: i }), a && o(u, { condensed: !0, "aria-label": n, children: a })] }) }) }) : o(d, { ref: c, ...l, children: s(m, { as: "span", justifyContent: "space-between", children: [s(h, { children: [o(p, { "aria-hidden": !0, paddingRight: 3, as: "span", children: i }), o(e, { children: r })] }), a && o(u, { justifyContent: "center", "aria-label": n, children: a })] }) }));
|
|
101
80
|
export {
|
|
102
|
-
|
|
81
|
+
C as NavLink
|
|
103
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),u=require("./MainNavContext.cjs"),r=require("../../Flex/Flex.cjs"),l=require("../../Box/Box.cjs"),x=require("../../Divider/Divider.cjs"),g=require("../../VisuallyHidden/VisuallyHidden.cjs"),p=require("../../Typography/Typography.cjs"),h=({label:s,children:a,horizontal:n=!1,spacing:d=2,...c})=>u.useMainNav()?e.jsxs(r.Flex,{direction:"column",alignItems:"stretch",gap:2,children:[e.jsxs(l.Box,{paddingTop:1,paddingBottom:1,background:"neutral0",hasRadius:!0,as:"span",children:[e.jsx(x.Divider,{}),e.jsx(g.VisuallyHidden,{children:e.jsx("span",{children:s})})]}),e.jsx(r.Flex,{as:"ul",gap:d,direction:n?"row":"column",alignItems:n?"center":"stretch",...c,children:o.Children.map(a,(i,t)=>e.jsx("li",{children:i},t))})]}):e.jsxs(r.Flex,{direction:"column",alignItems:"stretch",gap:2,children:[e.jsx(l.Box,{paddingTop:1,paddingBottom:1,background:"neutral0",paddingRight:3,paddingLeft:3,hasRadius:!0,as:"span",children:e.jsx(p.Typography,{variant:"sigma",textColor:"neutral600",children:s})}),e.jsx(r.Flex,{as:"ul",gap:d,direction:n?"row":"column",alignItems:n?"center":"stretch",...c,children:o.Children.map(a,(i,t)=>e.jsx("li",{children:i},t))})]});exports.NavSection=h;
|
|
@@ -1,46 +1,12 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Children as
|
|
3
|
-
import p from "
|
|
4
|
-
import {
|
|
5
|
-
import { Flex as i } from "../../Flex/Flex.js";
|
|
2
|
+
import { Children as s } from "react";
|
|
3
|
+
import { useMainNav as p } from "./MainNavContext.js";
|
|
4
|
+
import { Flex as e } from "../../Flex/Flex.js";
|
|
6
5
|
import { Box as l } from "../../Box/Box.js";
|
|
7
|
-
import { Divider as
|
|
8
|
-
import { VisuallyHidden as
|
|
9
|
-
import { Typography as
|
|
10
|
-
const
|
|
11
|
-
/* @__PURE__ */ d(l, { paddingTop: 1, paddingBottom: 1, background: "neutral0", hasRadius: !0, as: "span", children: [
|
|
12
|
-
/* @__PURE__ */ r(g, {}),
|
|
13
|
-
/* @__PURE__ */ r(h, { children: /* @__PURE__ */ r("span", { children: o }) })
|
|
14
|
-
] }),
|
|
15
|
-
/* @__PURE__ */ r(
|
|
16
|
-
i,
|
|
17
|
-
{
|
|
18
|
-
as: "ul",
|
|
19
|
-
gap: s,
|
|
20
|
-
direction: e ? "row" : "column",
|
|
21
|
-
alignItems: e ? "center" : "stretch",
|
|
22
|
-
...c,
|
|
23
|
-
children: m.map(a, (n, t) => /* @__PURE__ */ r("li", { children: n }, t))
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
] }) : /* @__PURE__ */ d(i, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
|
27
|
-
/* @__PURE__ */ r(l, { paddingTop: 1, paddingBottom: 1, background: "neutral0", paddingRight: 3, paddingLeft: 3, hasRadius: !0, as: "span", children: /* @__PURE__ */ r(f, { variant: "sigma", textColor: "neutral600", children: o }) }),
|
|
28
|
-
/* @__PURE__ */ r(
|
|
29
|
-
i,
|
|
30
|
-
{
|
|
31
|
-
as: "ul",
|
|
32
|
-
gap: s,
|
|
33
|
-
direction: e ? "row" : "column",
|
|
34
|
-
alignItems: e ? "center" : "stretch",
|
|
35
|
-
...c,
|
|
36
|
-
children: m.map(a, (n, t) => /* @__PURE__ */ r("li", { children: n }, t))
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
] });
|
|
40
|
-
x.propTypes = {
|
|
41
|
-
children: p.node.isRequired,
|
|
42
|
-
label: p.string.isRequired
|
|
43
|
-
};
|
|
6
|
+
import { Divider as u } from "../../Divider/Divider.js";
|
|
7
|
+
import { VisuallyHidden as g } from "../../VisuallyHidden/VisuallyHidden.js";
|
|
8
|
+
import { Typography as h } from "../../Typography/Typography.js";
|
|
9
|
+
const k = ({ label: o, children: a, horizontal: n = !1, spacing: c = 2, ...m }) => p() ? d(e, { direction: "column", alignItems: "stretch", gap: 2, children: [d(l, { paddingTop: 1, paddingBottom: 1, background: "neutral0", hasRadius: !0, as: "span", children: [r(u, {}), r(g, { children: r("span", { children: o }) })] }), r(e, { as: "ul", gap: c, direction: n ? "row" : "column", alignItems: n ? "center" : "stretch", ...m, children: s.map(a, (i, t) => r("li", { children: i }, t)) })] }) : d(e, { direction: "column", alignItems: "stretch", gap: 2, children: [r(l, { paddingTop: 1, paddingBottom: 1, background: "neutral0", paddingRight: 3, paddingLeft: 3, hasRadius: !0, as: "span", children: r(h, { variant: "sigma", textColor: "neutral600", children: o }) }), r(e, { as: "ul", gap: c, direction: n ? "row" : "column", alignItems: n ? "center" : "stretch", ...m, children: s.map(a, (i, t) => r("li", { children: i }, t)) })] });
|
|
44
10
|
export {
|
|
45
|
-
|
|
11
|
+
k as NavSection
|
|
46
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),c=require("styled-components"),d=require("../../Box/Box.cjs"),u=require("../../Flex/Flex.cjs"),a=e=>e&&e.__esModule?e:{default:e},g=a(c),x=g.default(d.Box)`
|
|
2
2
|
flex-grow: 1;
|
|
3
3
|
overflow-y: auto;
|
|
4
|
-
`,
|
|
4
|
+
`,f=({children:e,spacing:r=4,horizontal:o=!1,...n})=>t.jsx(x,{paddingLeft:3,paddingRight:2,paddingTop:3,paddingBottom:8,children:t.jsx(u.Flex,{as:"ul",gap:r,direction:o?"row":"column",alignItems:o?"center":"stretch",...n,children:l.Children.map(e,(i,s)=>t.jsx("li",{children:i},s))})});exports.NavSections=f;
|
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Children as
|
|
3
|
-
import
|
|
4
|
-
import l from "
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const a = l(s)`
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Children as m } from "react";
|
|
3
|
+
import p from "styled-components";
|
|
4
|
+
import { Box as l } from "../../Box/Box.js";
|
|
5
|
+
import { Flex as a } from "../../Flex/Flex.js";
|
|
6
|
+
const c = p(l)`
|
|
8
7
|
flex-grow: 1;
|
|
9
8
|
overflow-y: auto;
|
|
10
|
-
`,
|
|
11
|
-
c,
|
|
12
|
-
{
|
|
13
|
-
as: "ul",
|
|
14
|
-
gap: i,
|
|
15
|
-
direction: o ? "row" : "column",
|
|
16
|
-
alignItems: o ? "center" : "stretch",
|
|
17
|
-
...t,
|
|
18
|
-
children: d.map(e, (p, n) => /* @__PURE__ */ r("li", { children: p }, n))
|
|
19
|
-
}
|
|
20
|
-
) });
|
|
21
|
-
f.propTypes = {
|
|
22
|
-
children: m.node.isRequired
|
|
23
|
-
};
|
|
9
|
+
`, u = ({ children: t, spacing: e = 4, horizontal: r = !1, ...i }) => o(c, { paddingLeft: 3, paddingRight: 2, paddingTop: 3, paddingBottom: 8, children: o(a, { as: "ul", gap: e, direction: r ? "row" : "column", alignItems: r ? "center" : "stretch", ...i, children: m.map(t, (n, d) => o("li", { children: n }, d)) }) });
|
|
24
10
|
export {
|
|
25
|
-
|
|
11
|
+
u as NavSections
|
|
26
12
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("react"),c=require("styled-components"),x=require("./MainNavContext.cjs"),i=require("../../Box/Box.cjs"),p=require("../../Flex/Flex.cjs"),s=require("../../Avatar/Avatar.cjs"),f=require("../../VisuallyHidden/VisuallyHidden.cjs"),h=require("../../Typography/Typography.cjs"),o=e=>e&&e.__esModule?e:{default:e},j=o(u),y=o(c),g=y.default(i.Box)`
|
|
2
2
|
border-top: 1px solid ${({theme:e})=>e.colors.neutral150};
|
|
3
|
-
`,
|
|
3
|
+
`,q=j.default.forwardRef(({src:e,children:r,initials:a,...d},l)=>{const n=x.useMainNav();return t.jsx(g,{paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5,...d,children:t.jsxs(p.Flex,{as:"button",justifyContent:n?"center":void 0,ref:l,children:[e?t.jsx(s.Avatar,{src:e,alt:"","aria-hidden":!0}):t.jsx(s.Initials,{children:a}),n?t.jsx(f.VisuallyHidden,{children:t.jsx("span",{children:r})}):t.jsx(i.Box,{width:`${130/16}rem`,paddingLeft:2,as:"span",children:t.jsx(h.Typography,{ellipsis:!0,textColor:"neutral600",children:r})})]})})});exports.NavUser=q;
|
|
@@ -1,32 +1,18 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { VisuallyHidden as v } from "../../VisuallyHidden/VisuallyHidden.js";
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import s from "react";
|
|
3
|
+
import l from "styled-components";
|
|
4
|
+
import { useMainNav as m } from "./MainNavContext.js";
|
|
5
|
+
import { Box as i } from "../../Box/Box.js";
|
|
6
|
+
import { Flex as f } from "../../Flex/Flex.js";
|
|
7
|
+
import { Avatar as c, Initials as u } from "../../Avatar/Avatar.js";
|
|
8
|
+
import { VisuallyHidden as h } from "../../VisuallyHidden/VisuallyHidden.js";
|
|
10
9
|
import { Typography as x } from "../../Typography/Typography.js";
|
|
11
|
-
const
|
|
10
|
+
const g = l(i)`
|
|
12
11
|
border-top: 1px solid ${({ theme: o }) => o.colors.neutral150};
|
|
13
|
-
`,
|
|
14
|
-
const
|
|
15
|
-
return
|
|
16
|
-
o ? /* @__PURE__ */ r(h, { src: o, alt: "", "aria-hidden": !0 }) : /* @__PURE__ */ r(g, { children: a }),
|
|
17
|
-
d ? /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r("span", { children: e }) }) : /* @__PURE__ */ r(n, { width: `${130 / 16}rem`, paddingLeft: 2, as: "span", children: /* @__PURE__ */ r(x, { ellipsis: !0, textColor: "neutral600", children: e }) })
|
|
18
|
-
] }) });
|
|
12
|
+
`, L = s.forwardRef(({ src: o, children: t, initials: n, ...d }, a) => {
|
|
13
|
+
const e = m();
|
|
14
|
+
return r(g, { paddingTop: 3, paddingBottom: 3, paddingLeft: 5, paddingRight: 5, ...d, children: p(f, { as: "button", justifyContent: e ? "center" : void 0, ref: a, children: [o ? r(c, { src: o, alt: "", "aria-hidden": !0 }) : r(u, { children: n }), e ? r(h, { children: r("span", { children: t }) }) : r(i, { width: `${130 / 16}rem`, paddingLeft: 2, as: "span", children: r(x, { ellipsis: !0, textColor: "neutral600", children: t }) })] }) });
|
|
19
15
|
});
|
|
20
|
-
t.displayName = "NavUser";
|
|
21
|
-
t.defaultProps = {
|
|
22
|
-
src: void 0,
|
|
23
|
-
initials: void 0
|
|
24
|
-
};
|
|
25
|
-
t.propTypes = {
|
|
26
|
-
children: i.node.isRequired,
|
|
27
|
-
initials: i.node,
|
|
28
|
-
src: i.string
|
|
29
|
-
};
|
|
30
16
|
export {
|
|
31
|
-
|
|
17
|
+
L as NavUser
|
|
32
18
|
};
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
& > * + * {
|
|
3
|
-
margin-left: ${({theme:e})=>e.spaces[1]};
|
|
4
|
-
}
|
|
5
|
-
`,o=({children:e,label:n,activePage:t,pageCount:r})=>{const c=l.useMemo(()=>({activePage:t,pageCount:r}),[t,r]);return i.jsx(P.PaginationContext.Provider,{value:c,children:i.jsx(j,{"aria-label":n,children:i.jsx(x,{as:"ul",children:l.Children.map(e,(d,f)=>i.jsx("li",{children:d},f))})})})};o.defaultProps={label:"pagination"};o.propTypes={activePage:a.default.number.isRequired,children:a.default.node.isRequired,label:a.default.string,pageCount:a.default.number.isRequired};exports.Pagination=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),l=require("react"),u=require("./PaginationContext.cjs"),d=require("../../Box/Box.cjs"),x=require("../../Flex/Flex.cjs");function g(e){if(e&&e.__esModule)return e;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const i=g(l),f=({children:e,label:n="Pagination",activePage:t,pageCount:r})=>{const a=i.useMemo(()=>({activePage:t,pageCount:r}),[t,r]);return o.jsx(u.PaginationContext.Provider,{value:a,children:o.jsx(d.Box,{"aria-label":n,as:"nav",children:o.jsx(x.Flex,{as:"ol",gap:1,children:i.Children.map(e,(c,s)=>o.jsx("li",{children:c},s))})})})};exports.Pagination=f;
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import e from "prop-types";
|
|
4
|
-
import a from "styled-components";
|
|
2
|
+
import * as n from "react";
|
|
5
3
|
import { PaginationContext as c } from "./PaginationContext.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
`, l = ({ children: i, label: s, activePage: n, pageCount: o }) => {
|
|
12
|
-
const p = t.useMemo(() => ({ activePage: n, pageCount: o }), [n, o]);
|
|
13
|
-
return /* @__PURE__ */ r(c.Provider, { value: p, children: /* @__PURE__ */ r(f, { "aria-label": s, children: /* @__PURE__ */ r(g, { as: "ul", children: t.Children.map(i, (m, d) => /* @__PURE__ */ r("li", { children: m }, d)) }) }) });
|
|
14
|
-
};
|
|
15
|
-
l.defaultProps = {
|
|
16
|
-
label: "pagination"
|
|
17
|
-
};
|
|
18
|
-
l.propTypes = {
|
|
19
|
-
activePage: e.number.isRequired,
|
|
20
|
-
children: e.node.isRequired,
|
|
21
|
-
label: e.string,
|
|
22
|
-
pageCount: e.number.isRequired
|
|
4
|
+
import { Box as p } from "../../Box/Box.js";
|
|
5
|
+
import { Flex as s } from "../../Flex/Flex.js";
|
|
6
|
+
const u = ({ children: t, label: a = "Pagination", activePage: o, pageCount: i }) => {
|
|
7
|
+
const e = n.useMemo(() => ({ activePage: o, pageCount: i }), [o, i]);
|
|
8
|
+
return r(c.Provider, { value: e, children: r(p, { "aria-label": a, as: "nav", children: r(s, { as: "ol", gap: 1, children: n.Children.map(t, (m, l) => r("li", { children: m }, l)) }) }) });
|
|
23
9
|
};
|
|
24
10
|
export {
|
|
25
|
-
|
|
11
|
+
u as Pagination
|
|
26
12
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
line-height: revert;
|
|
3
|
-
`,T={active:!0},h=n.default(w.BaseLink).withConfig({shouldForwardProp:(e,i)=>!T[e]&&i(e)})`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),p=require("react"),c=require("@strapi/icons"),v=require("styled-components"),d=require("./PaginationContext.cjs"),y=require("../../themes/utils.cjs"),b=require("../../BaseLink/BaseLink.cjs"),s=require("../../VisuallyHidden/VisuallyHidden.cjs"),h=require("../../Typography/Typography.cjs"),P=require("../../Box/Box.cjs"),f=e=>e&&e.__esModule?e:{default:e},l=f(p),u=f(v),j={active:!0},g=u.default(b.BaseLink).withConfig({shouldForwardProp:(e,i)=>!j[e]&&i(e)})`
|
|
4
2
|
padding: ${({theme:e})=>e.spaces[3]};
|
|
5
3
|
border-radius: ${({theme:e})=>e.borderRadius};
|
|
6
4
|
box-shadow: ${({active:e,theme:i})=>e?i.shadows.filterShadow:void 0};
|
|
7
5
|
text-decoration: none;
|
|
8
6
|
display: flex;
|
|
9
7
|
|
|
10
|
-
${
|
|
11
|
-
|
|
8
|
+
${y.buttonFocusStyle}
|
|
9
|
+
`,k=u.default(g)`
|
|
12
10
|
color: ${({theme:e,active:i})=>i?e.colors.primary700:e.colors.neutral800};
|
|
13
11
|
background: ${({theme:e,active:i})=>i?e.colors.neutral0:void 0};
|
|
14
12
|
|
|
15
13
|
&:hover {
|
|
16
14
|
box-shadow: ${({theme:e})=>e.shadows.filterShadow};
|
|
17
15
|
}
|
|
18
|
-
`,
|
|
19
|
-
font-size:
|
|
16
|
+
`,x=u.default(g)`
|
|
17
|
+
font-size: ${11/16}rem;
|
|
18
|
+
|
|
20
19
|
svg path {
|
|
21
20
|
fill: ${e=>e["aria-disabled"]?e.theme.colors.neutral300:e.theme.colors.neutral600};
|
|
22
21
|
}
|
|
@@ -31,6 +30,4 @@
|
|
|
31
30
|
${e=>e["aria-disabled"]?`
|
|
32
31
|
pointer-events: none;
|
|
33
32
|
`:void 0}
|
|
34
|
-
`,
|
|
35
|
-
color: ${({theme:e})=>e.colors.neutral800};
|
|
36
|
-
`,f=p.default.forwardRef(({children:e,...i},a)=>{const{activePage:s}=u.usePagination(),t=s===1;return r.jsxs(P,{ref:a,"aria-disabled":t,tabIndex:t?-1:void 0,...i,children:[r.jsx(l.VisuallyHidden,{children:e}),r.jsx(g.ChevronLeft,{"aria-hidden":!0})]})});f.displayName="PreviousLink";const v=p.default.forwardRef(({children:e,...i},a)=>{const{activePage:s,pageCount:t}=u.usePagination(),o=s===t;return r.jsxs(P,{ref:a,"aria-disabled":o,tabIndex:o?-1:void 0,...i,children:[r.jsx(l.VisuallyHidden,{children:e}),r.jsx(g.ChevronRight,{"aria-hidden":!0})]})});v.displayName="NextLink";const y=p.default.forwardRef(({number:e,children:i,...a},s)=>{const{activePage:t}=u.usePagination(),o=t===e;return r.jsxs($,{ref:s,...a,active:o,children:[r.jsx(l.VisuallyHidden,{children:i}),r.jsx(x,{"aria-hidden":!0,variant:"pi",fontWeight:o?"bold":null,children:e})]})});y.displayName="PageLink";const b=({children:e,...i})=>r.jsxs(_,{...i,as:"div",children:[r.jsx(l.VisuallyHidden,{children:e}),r.jsx(x,{"aria-hidden":!0,variant:"pi",children:"…"})]});y.propTypes={children:d.default.node.isRequired,number:d.default.number.isRequired};const k={children:d.default.node.isRequired};v.propTypes=k;f.propTypes=k;b.propTypes={children:d.default.node.isRequired};exports.Dots=b;exports.NextLink=v;exports.PageLink=y;exports.PreviousLink=f;
|
|
33
|
+
`,L=l.default.forwardRef(({children:e,...i},t)=>{const{activePage:a}=d.usePagination(),r=a===1;return n.jsxs(x,{ref:t,"aria-disabled":r,tabIndex:r?-1:void 0,...i,children:[n.jsx(s.VisuallyHidden,{children:e}),n.jsx(c.ChevronLeft,{"aria-hidden":!0})]})}),w=l.default.forwardRef(({children:e,...i},t)=>{const{activePage:a,pageCount:r}=d.usePagination(),o=a===r;return n.jsxs(x,{ref:t,"aria-disabled":o,tabIndex:o?-1:void 0,...i,children:[n.jsx(s.VisuallyHidden,{children:e}),n.jsx(c.ChevronRight,{"aria-hidden":!0})]})}),$=l.default.forwardRef(({number:e,children:i,...t},a)=>{const{activePage:r}=d.usePagination(),o=r===e;return n.jsxs(k,{ref:a,...t,active:o,children:[n.jsx(s.VisuallyHidden,{children:i}),n.jsx(h.Typography,{"aria-hidden":!0,fontWeight:o?"bold":void 0,lineHeight:"revert",variant:"pi",children:e})]})}),q=({children:e,...i})=>n.jsxs(P.Box,{...i,children:[n.jsx(s.VisuallyHidden,{children:e}),n.jsx(h.Typography,{"aria-hidden":!0,lineHeight:"revert",textColor:"neutral800",variant:"pi",children:"…"})]});exports.Dots=q;exports.NextLink=w;exports.PageLink=$;exports.PreviousLink=L;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { ChevronLeft as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
const
|
|
12
|
-
line-height: revert;
|
|
13
|
-
`, $ = {
|
|
1
|
+
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import { ChevronLeft as m, ChevronRight as v } from "@strapi/icons";
|
|
4
|
+
import c from "styled-components";
|
|
5
|
+
import { usePagination as f } from "./PaginationContext.js";
|
|
6
|
+
import { buttonFocusStyle as g } from "../../themes/utils.js";
|
|
7
|
+
import { BaseLink as b } from "../../BaseLink/BaseLink.js";
|
|
8
|
+
import { VisuallyHidden as s } from "../../VisuallyHidden/VisuallyHidden.js";
|
|
9
|
+
import { Typography as h } from "../../Typography/Typography.js";
|
|
10
|
+
import { Box as x } from "../../Box/Box.js";
|
|
11
|
+
const w = {
|
|
14
12
|
active: !0
|
|
15
|
-
}, u =
|
|
16
|
-
shouldForwardProp: (e, r) =>
|
|
13
|
+
}, u = c(b).withConfig({
|
|
14
|
+
shouldForwardProp: (e, r) => !w[e] && r(e)
|
|
17
15
|
})`
|
|
18
16
|
padding: ${({ theme: e }) => e.spaces[3]};
|
|
19
17
|
border-radius: ${({ theme: e }) => e.borderRadius};
|
|
@@ -21,16 +19,17 @@ const m = s(w)`
|
|
|
21
19
|
text-decoration: none;
|
|
22
20
|
display: flex;
|
|
23
21
|
|
|
24
|
-
${
|
|
25
|
-
`,
|
|
22
|
+
${g}
|
|
23
|
+
`, $ = c(u)`
|
|
26
24
|
color: ${({ theme: e, active: r }) => r ? e.colors.primary700 : e.colors.neutral800};
|
|
27
25
|
background: ${({ theme: e, active: r }) => r ? e.colors.neutral0 : void 0};
|
|
28
26
|
|
|
29
27
|
&:hover {
|
|
30
28
|
box-shadow: ${({ theme: e }) => e.shadows.filterShadow};
|
|
31
29
|
}
|
|
32
|
-
`,
|
|
33
|
-
font-size:
|
|
30
|
+
`, p = c(u)`
|
|
31
|
+
font-size: ${11 / 16}rem;
|
|
32
|
+
|
|
34
33
|
svg path {
|
|
35
34
|
fill: ${(e) => e["aria-disabled"] ? e.theme.colors.neutral300 : e.theme.colors.neutral600};
|
|
36
35
|
}
|
|
@@ -45,51 +44,19 @@ const m = s(w)`
|
|
|
45
44
|
${(e) => e["aria-disabled"] ? `
|
|
46
45
|
pointer-events: none;
|
|
47
46
|
` : void 0}
|
|
48
|
-
`,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
const g = p.forwardRef(({ children: e, ...r }, a) => {
|
|
59
|
-
const { activePage: t, pageCount: i } = h(), n = t === i;
|
|
60
|
-
return /* @__PURE__ */ l(f, { ref: a, "aria-disabled": n, tabIndex: n ? -1 : void 0, ...r, children: [
|
|
61
|
-
/* @__PURE__ */ o(c, { children: e }),
|
|
62
|
-
/* @__PURE__ */ o(x, { "aria-hidden": !0 })
|
|
63
|
-
] });
|
|
64
|
-
});
|
|
65
|
-
g.displayName = "NextLink";
|
|
66
|
-
const b = p.forwardRef(({ number: e, children: r, ...a }, t) => {
|
|
67
|
-
const { activePage: i } = h(), n = i === e;
|
|
68
|
-
return /* @__PURE__ */ l(R, { ref: t, ...a, active: n, children: [
|
|
69
|
-
/* @__PURE__ */ o(c, { children: r }),
|
|
70
|
-
/* @__PURE__ */ o(m, { "aria-hidden": !0, variant: "pi", fontWeight: n ? "bold" : null, children: e })
|
|
71
|
-
] });
|
|
72
|
-
});
|
|
73
|
-
b.displayName = "PageLink";
|
|
74
|
-
const N = ({ children: e, ...r }) => /* @__PURE__ */ l(T, { ...r, as: "div", children: [
|
|
75
|
-
/* @__PURE__ */ o(c, { children: e }),
|
|
76
|
-
/* @__PURE__ */ o(m, { "aria-hidden": !0, variant: "pi", children: "…" })
|
|
77
|
-
] });
|
|
78
|
-
b.propTypes = {
|
|
79
|
-
children: d.node.isRequired,
|
|
80
|
-
number: d.number.isRequired
|
|
81
|
-
};
|
|
82
|
-
const y = {
|
|
83
|
-
children: d.node.isRequired
|
|
84
|
-
};
|
|
85
|
-
g.propTypes = y;
|
|
86
|
-
v.propTypes = y;
|
|
87
|
-
N.propTypes = {
|
|
88
|
-
children: d.node.isRequired
|
|
89
|
-
};
|
|
47
|
+
`, A = l.forwardRef(({ children: e, ...r }, t) => {
|
|
48
|
+
const { activePage: n } = f(), i = n === 1;
|
|
49
|
+
return d(p, { ref: t, "aria-disabled": i, tabIndex: i ? -1 : void 0, ...r, children: [o(s, { children: e }), o(m, { "aria-hidden": !0 })] });
|
|
50
|
+
}), B = l.forwardRef(({ children: e, ...r }, t) => {
|
|
51
|
+
const { activePage: n, pageCount: i } = f(), a = n === i;
|
|
52
|
+
return d(p, { ref: t, "aria-disabled": a, tabIndex: a ? -1 : void 0, ...r, children: [o(s, { children: e }), o(v, { "aria-hidden": !0 })] });
|
|
53
|
+
}), F = l.forwardRef(({ number: e, children: r, ...t }, n) => {
|
|
54
|
+
const { activePage: i } = f(), a = i === e;
|
|
55
|
+
return d($, { ref: n, ...t, active: a, children: [o(s, { children: r }), o(h, { "aria-hidden": !0, fontWeight: a ? "bold" : void 0, lineHeight: "revert", variant: "pi", children: e })] });
|
|
56
|
+
}), I = ({ children: e, ...r }) => d(x, { ...r, children: [o(s, { children: e }), o(h, { "aria-hidden": !0, lineHeight: "revert", textColor: "neutral800", variant: "pi", children: "…" })] });
|
|
90
57
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
58
|
+
I as Dots,
|
|
59
|
+
B as NextLink,
|
|
60
|
+
F as PageLink,
|
|
61
|
+
A as PreviousLink
|
|
95
62
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
width: ${
|
|
3
|
-
background: ${({theme:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("styled-components"),u=require("../../Grid/Grid.cjs"),a=t=>t&&t.__esModule?t:{default:t},i=a(s),e=`${232/16}rem`,n=i.default(u.Grid)`
|
|
2
|
+
width: ${e};
|
|
3
|
+
background: ${({theme:t})=>t.colors.neutral100};
|
|
4
4
|
position: sticky;
|
|
5
5
|
top: 0;
|
|
6
6
|
height: 100vh;
|
|
7
7
|
overflow-y: auto;
|
|
8
|
-
border-right: 1px solid ${({theme:
|
|
8
|
+
border-right: 1px solid ${({theme:t})=>t.colors.neutral200};
|
|
9
9
|
z-index: 1;
|
|
10
|
-
`,
|
|
10
|
+
`,l=({ariaLabel:t,...r})=>o.jsx(n,{"aria-label":t,as:"nav",...r});exports.SubNav=l;exports.subNavWidth=e;
|