@ogcio/design-system-react 1.31.1 → 1.32.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.
- package/dist/Heading.d.ts +5 -0
- package/dist/Heading.js +22 -0
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +46 -61
- package/dist/atoms/{DsButton.d.ts → Button.d.ts} +3 -3
- package/dist/atoms/{DsButton.js → Button.js} +20 -35
- package/dist/atoms/heading/H1.d.ts +3 -0
- package/dist/atoms/heading/H1.js +20 -0
- package/dist/atoms/heading/H2.d.ts +3 -0
- package/dist/atoms/heading/H2.js +20 -0
- package/dist/atoms/heading/H3.d.ts +3 -0
- package/dist/atoms/heading/H3.js +20 -0
- package/dist/atoms/heading/H4.d.ts +3 -0
- package/dist/atoms/heading/H4.js +20 -0
- package/dist/atoms/heading/H5.d.ts +3 -0
- package/dist/atoms/heading/H5.js +20 -0
- package/dist/atoms/heading/H6.d.ts +3 -0
- package/dist/atoms/heading/H6.js +20 -0
- package/dist/atoms/heading/index.d.ts +9 -0
- package/dist/atoms/heading/index.js +18 -0
- package/dist/atoms/heading/styles.d.ts +65 -0
- package/dist/atoms/heading/styles.js +17 -0
- package/dist/atoms/heading/types.d.ts +15 -0
- package/dist/atoms/heading/types.js +11 -0
- package/dist/atoms/heading/utils.d.ts +2 -0
- package/dist/atoms/heading/utils.js +5 -0
- package/dist/atoms/icons/ArrowLeft.d.ts +3 -0
- package/dist/atoms/icons/ArrowLeft.js +23 -0
- package/dist/atoms/icons/ArrowRight.d.ts +3 -0
- package/dist/atoms/icons/ArrowRight.js +23 -0
- package/dist/atoms/icons/CheckCircle.d.ts +3 -0
- package/dist/atoms/icons/CheckCircle.js +23 -0
- package/dist/atoms/icons/Error.d.ts +3 -0
- package/dist/atoms/icons/Error.js +23 -0
- package/dist/atoms/icons/FirstPage.d.ts +3 -0
- package/dist/atoms/icons/FirstPage.js +23 -0
- package/dist/atoms/icons/Info.d.ts +3 -0
- package/dist/atoms/icons/Info.js +23 -0
- package/dist/atoms/icons/KeyboardArrowLeft.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowLeft.js +23 -0
- package/dist/atoms/icons/KeyboardArrowRight.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowRight.js +23 -0
- package/dist/atoms/icons/LastPage.d.ts +3 -0
- package/dist/atoms/icons/LastPage.js +23 -0
- package/dist/atoms/icons/Warning.d.ts +3 -0
- package/dist/atoms/icons/Warning.js +23 -0
- package/dist/atoms/icons/index.d.ts +12 -2
- package/dist/atoms/icons/index.js +30 -10
- package/dist/atoms/index.d.ts +2 -1
- package/dist/atoms/index.js +48 -12
- package/dist/atoms/storybook/Heading.meta.d.ts +60 -0
- package/dist/atoms/storybook/Heading.meta.js +70 -0
- package/dist/atoms/storybook/Icons.meta.d.ts +51 -0
- package/dist/atoms/storybook/Icons.meta.js +130 -0
- package/dist/atoms/storybook/InsetText.meta.d.ts +52 -0
- package/dist/atoms/storybook/InsetText.meta.js +64 -0
- package/dist/atoms/storybook/Logos.meta.d.ts +35 -0
- package/dist/atoms/storybook/Logos.meta.js +54 -0
- package/dist/breadcrumbs/breadcrumbs.js +20 -19
- package/dist/header/components/header-menu.js +21 -21
- package/dist/header/components/header-search.js +4 -4
- package/dist/icon/icon.js +85 -63
- package/dist/icon/icons.d.ts +1 -1
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +19 -10
- package/dist/index-Bh2cTIps.js +33899 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/input-text/input-text.js +1 -1
- package/dist/input-text/type.d.ts +1 -1
- package/dist/modal/modal.d.ts +1 -1
- package/dist/modal/modal.js +1 -1
- package/dist/pagination/pagination.js +139 -135
- package/dist/paragraph/paragraph.d.ts +1 -1
- package/dist/paragraph/paragraph.js +13 -11
- package/dist/side-nav/side-nav.js +4 -4
- package/dist/side-nav/types.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/dist/table/table-pagination.js +17 -13
- package/package.json +7 -6
- package/dist/heading/heading.d.ts +0 -150
- package/dist/heading/heading.js +0 -50
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { K as n, n as i } from "../../index-Bh2cTIps.js";
|
|
2
|
+
import a from "../icons/ArrowLeft.js";
|
|
3
|
+
import s from "../icons/ArrowRight.js";
|
|
4
|
+
import c from "../icons/CheckCircle.js";
|
|
5
|
+
import m from "../icons/Close.js";
|
|
6
|
+
import l from "../icons/Error.js";
|
|
7
|
+
import p from "../icons/FirstPage.js";
|
|
8
|
+
import f from "../icons/Info.js";
|
|
9
|
+
import d from "../icons/KeyboardArrowDown.js";
|
|
10
|
+
import y from "../icons/KeyboardArrowLeft.js";
|
|
11
|
+
import b from "../icons/KeyboardArrowRight.js";
|
|
12
|
+
import g from "../icons/KeyboardArrowUp.js";
|
|
13
|
+
import C from "../icons/LastPage.js";
|
|
14
|
+
import w from "../icons/Visibility.js";
|
|
15
|
+
import h from "../icons/VisibilityOff.js";
|
|
16
|
+
import A from "../icons/Warning.js";
|
|
17
|
+
const u = [{
|
|
18
|
+
Component: a,
|
|
19
|
+
name: "ArrowLeft",
|
|
20
|
+
selector: "arrow-left"
|
|
21
|
+
}, {
|
|
22
|
+
Component: s,
|
|
23
|
+
name: "ArrowRight",
|
|
24
|
+
selector: "arrow-right"
|
|
25
|
+
}, {
|
|
26
|
+
Component: c,
|
|
27
|
+
name: "CheckCircle",
|
|
28
|
+
selector: "check-circle"
|
|
29
|
+
}, {
|
|
30
|
+
Component: m,
|
|
31
|
+
name: "Close",
|
|
32
|
+
selector: "close"
|
|
33
|
+
}, {
|
|
34
|
+
Component: l,
|
|
35
|
+
name: "Error",
|
|
36
|
+
selector: "error"
|
|
37
|
+
}, {
|
|
38
|
+
Component: p,
|
|
39
|
+
name: "FirstPage",
|
|
40
|
+
selector: "first-page"
|
|
41
|
+
}, {
|
|
42
|
+
Component: f,
|
|
43
|
+
name: "Info",
|
|
44
|
+
selector: "info"
|
|
45
|
+
}, {
|
|
46
|
+
Component: d,
|
|
47
|
+
name: "KeyboardArrowDown",
|
|
48
|
+
selector: "keyboard-arrow-down"
|
|
49
|
+
}, {
|
|
50
|
+
Component: y,
|
|
51
|
+
name: "KeyboardArrowLeft",
|
|
52
|
+
selector: "keyboard-arrow-left"
|
|
53
|
+
}, {
|
|
54
|
+
Component: b,
|
|
55
|
+
name: "KeyboardArrowRight",
|
|
56
|
+
selector: "keyboard-arrow-right"
|
|
57
|
+
}, {
|
|
58
|
+
Component: g,
|
|
59
|
+
name: "KeyboardArrowUp",
|
|
60
|
+
selector: "keyboard-arrow-up"
|
|
61
|
+
}, {
|
|
62
|
+
Component: C,
|
|
63
|
+
name: "LastPage",
|
|
64
|
+
selector: "last-page"
|
|
65
|
+
}, {
|
|
66
|
+
Component: w,
|
|
67
|
+
name: "Visibility",
|
|
68
|
+
selector: "visibility"
|
|
69
|
+
}, {
|
|
70
|
+
Component: h,
|
|
71
|
+
name: "VisibilityOff",
|
|
72
|
+
selector: "visibility-off"
|
|
73
|
+
}, {
|
|
74
|
+
Component: A,
|
|
75
|
+
name: "Warning",
|
|
76
|
+
selector: "warning"
|
|
77
|
+
}], K = {
|
|
78
|
+
tags: ["autodocs"],
|
|
79
|
+
title: "Foundation/Icons",
|
|
80
|
+
args: {
|
|
81
|
+
size: 48,
|
|
82
|
+
color: "currentColor",
|
|
83
|
+
label: "",
|
|
84
|
+
className: ""
|
|
85
|
+
},
|
|
86
|
+
argTypes: {
|
|
87
|
+
size: {
|
|
88
|
+
control: "number",
|
|
89
|
+
description: "Width and height of the icon in pixels."
|
|
90
|
+
},
|
|
91
|
+
color: {
|
|
92
|
+
control: "color",
|
|
93
|
+
description: "Fill colour — defaults to `currentColor`."
|
|
94
|
+
},
|
|
95
|
+
label: {
|
|
96
|
+
control: "text",
|
|
97
|
+
description: 'Accessible label. When set, renders `role="img"` and `aria-label`. When empty, the icon is hidden from assistive technology via `aria-hidden`.'
|
|
98
|
+
},
|
|
99
|
+
className: {
|
|
100
|
+
control: "text",
|
|
101
|
+
description: "Additional CSS class names."
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
parameters: {
|
|
105
|
+
docs: {
|
|
106
|
+
description: {
|
|
107
|
+
component: "Use icons to visually reinforce actions, status, and navigation. Icons accept a `size` prop (in pixels), an optional `color`, and a `label` for accessibility."
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}, E = {
|
|
112
|
+
args: K.args,
|
|
113
|
+
play: async ({
|
|
114
|
+
canvasElement: e,
|
|
115
|
+
step: r
|
|
116
|
+
}) => {
|
|
117
|
+
const t = n(e);
|
|
118
|
+
for (const {
|
|
119
|
+
selector: o
|
|
120
|
+
} of u)
|
|
121
|
+
await r(`renders ${o} icon`, async () => {
|
|
122
|
+
i(t.getByTestId(o)).toBeInTheDocument();
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
export {
|
|
127
|
+
E as Default,
|
|
128
|
+
u as iconList,
|
|
129
|
+
K as iconsMeta
|
|
130
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { StoryContext, Renderer } from '@storybook/types';
|
|
2
|
+
export declare const insetTextMeta: {
|
|
3
|
+
tags: string[];
|
|
4
|
+
title: string;
|
|
5
|
+
args: {
|
|
6
|
+
id: string;
|
|
7
|
+
cite: string;
|
|
8
|
+
describedBy: string;
|
|
9
|
+
labelledBy: string;
|
|
10
|
+
children: string;
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
children: {
|
|
14
|
+
table: {
|
|
15
|
+
disable: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
id: {
|
|
19
|
+
control: "text";
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
cite: {
|
|
23
|
+
control: "text";
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
describedBy: {
|
|
27
|
+
control: "text";
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
labelledBy: {
|
|
31
|
+
control: "text";
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
parameters: {
|
|
36
|
+
docs: {
|
|
37
|
+
description: {
|
|
38
|
+
component: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const Default: {
|
|
44
|
+
args: {
|
|
45
|
+
id: string;
|
|
46
|
+
cite: string;
|
|
47
|
+
describedBy: string;
|
|
48
|
+
labelledBy: string;
|
|
49
|
+
children: string;
|
|
50
|
+
};
|
|
51
|
+
play: ({ canvasElement, step }: StoryContext<Renderer>) => Promise<void>;
|
|
52
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { K as r, n as t } from "../../index-Bh2cTIps.js";
|
|
2
|
+
const s = {
|
|
3
|
+
tags: ["autodocs"],
|
|
4
|
+
title: "Typography/InsetText",
|
|
5
|
+
args: {
|
|
6
|
+
id: "inset-text-default",
|
|
7
|
+
cite: "https://example.com/source",
|
|
8
|
+
describedBy: "",
|
|
9
|
+
labelledBy: "",
|
|
10
|
+
children: "It can take up to 8 weeks to register a lasting power of attorney if there are no mistakes in the application."
|
|
11
|
+
},
|
|
12
|
+
argTypes: {
|
|
13
|
+
children: {
|
|
14
|
+
table: {
|
|
15
|
+
disable: !0
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
id: {
|
|
19
|
+
control: "text",
|
|
20
|
+
description: "Optional id for linking/targeting and aria references."
|
|
21
|
+
},
|
|
22
|
+
cite: {
|
|
23
|
+
control: "text",
|
|
24
|
+
description: "The source URL or description for the quotation."
|
|
25
|
+
},
|
|
26
|
+
describedBy: {
|
|
27
|
+
control: "text",
|
|
28
|
+
description: "Points to element id(s) whose content describes the inset text. Maps to `aria-describedby`."
|
|
29
|
+
},
|
|
30
|
+
labelledBy: {
|
|
31
|
+
control: "text",
|
|
32
|
+
description: "Points to element id(s) whose content labels the inset text. Maps to `aria-labelledby`."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
parameters: {
|
|
36
|
+
docs: {
|
|
37
|
+
description: {
|
|
38
|
+
component: "Inset text component to differentiate a block of text from the content that surrounds it."
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, l = {
|
|
43
|
+
args: s.args,
|
|
44
|
+
play: async ({
|
|
45
|
+
canvasElement: i,
|
|
46
|
+
step: o
|
|
47
|
+
}) => {
|
|
48
|
+
const n = r(i), a = s.args.children;
|
|
49
|
+
await o("renders content and tag", async () => {
|
|
50
|
+
const e = n.getByText(a);
|
|
51
|
+
t(e).toBeInTheDocument(), t(e.tagName.toLowerCase()).toBe("blockquote");
|
|
52
|
+
}), await o("renders cite attribute when provided", async () => {
|
|
53
|
+
const e = n.getByText(a);
|
|
54
|
+
t(e).toHaveAttribute("cite", s.args.cite);
|
|
55
|
+
}), await o("renders inset text styles", async () => {
|
|
56
|
+
const e = n.getByText(a);
|
|
57
|
+
t(e).toHaveClass("gi-p-4"), t(e).toHaveClass("gi-border-l-2xl"), t(e).toHaveClass("gi-border-gray-500");
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
l as Default,
|
|
63
|
+
s as insetTextMeta
|
|
64
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { StoryContext, Renderer } from '@storybook/types';
|
|
2
|
+
export declare const logosMeta: {
|
|
3
|
+
tags: string[];
|
|
4
|
+
title: string;
|
|
5
|
+
args: {
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
argTypes: {
|
|
9
|
+
size: {
|
|
10
|
+
control: "number";
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
className: {
|
|
14
|
+
control: "text";
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
label: {
|
|
18
|
+
control: "text";
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
parameters: {
|
|
23
|
+
docs: {
|
|
24
|
+
description: {
|
|
25
|
+
component: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const Default: {
|
|
31
|
+
args: {
|
|
32
|
+
label: string;
|
|
33
|
+
};
|
|
34
|
+
play: ({ canvasElement, step }: StoryContext<Renderer>) => Promise<void>;
|
|
35
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { K as n, n as t } from "../../index-Bh2cTIps.js";
|
|
2
|
+
const s = {
|
|
3
|
+
tags: ["autodocs"],
|
|
4
|
+
title: "Foundation/Logos",
|
|
5
|
+
args: {
|
|
6
|
+
label: ""
|
|
7
|
+
},
|
|
8
|
+
argTypes: {
|
|
9
|
+
size: {
|
|
10
|
+
control: "number",
|
|
11
|
+
description: "Size of the Logo in pixels."
|
|
12
|
+
},
|
|
13
|
+
className: {
|
|
14
|
+
control: "text",
|
|
15
|
+
description: "Additional CSS class names."
|
|
16
|
+
},
|
|
17
|
+
label: {
|
|
18
|
+
control: "text",
|
|
19
|
+
description: 'Accessible label. When set, renders `role="img"` and `aria-label`. When empty, the icon is hidden from assistive technology via `aria-hidden`.'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
parameters: {
|
|
23
|
+
docs: {
|
|
24
|
+
description: {
|
|
25
|
+
component: "Use the logo component to display the Government of Ireland brand mark."
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, i = {
|
|
30
|
+
args: s.args,
|
|
31
|
+
play: async ({
|
|
32
|
+
canvasElement: a,
|
|
33
|
+
step: e
|
|
34
|
+
}) => {
|
|
35
|
+
const o = n(a);
|
|
36
|
+
await e("renders Logo Black", async () => {
|
|
37
|
+
t(o.getByTestId("logo-black")).toBeInTheDocument();
|
|
38
|
+
}), await e("renders Logo Gold Green", async () => {
|
|
39
|
+
t(o.getByTestId("logo-gold-green")).toBeInTheDocument();
|
|
40
|
+
}), await e("renders Logo White", async () => {
|
|
41
|
+
t(o.getByTestId("logo-white")).toBeInTheDocument();
|
|
42
|
+
}), await e("renders Logo Harp Black", async () => {
|
|
43
|
+
t(o.getByTestId("logo-harp-black")).toBeInTheDocument();
|
|
44
|
+
}), await e("renders Logo Harp White", async () => {
|
|
45
|
+
t(o.getByTestId("logo-harp-white")).toBeInTheDocument();
|
|
46
|
+
}), await e("renders Logo Gold White", async () => {
|
|
47
|
+
t(o.getByTestId("logo-gold-white")).toBeInTheDocument();
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
i as Default,
|
|
53
|
+
s as logosMeta
|
|
54
|
+
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import m from "../atoms/icons/KeyboardArrowLeft.js";
|
|
3
|
+
import { translate as n } from "../i18n/utility.js";
|
|
4
|
+
import { Icon as c } from "../icon/icon.js";
|
|
5
|
+
import { Link as o } from "../link/link.js";
|
|
6
|
+
const h = () => /* @__PURE__ */ r("div", { "aria-hidden": "true", children: /* @__PURE__ */ r(c, { className: "gi-text-gray-700", icon: "more_horiz" }) }), g = ({
|
|
7
|
+
href: e,
|
|
7
8
|
children: i,
|
|
8
9
|
asChild: a,
|
|
9
10
|
...s
|
|
10
|
-
}) => /* @__PURE__ */
|
|
11
|
-
|
|
11
|
+
}) => /* @__PURE__ */ r(
|
|
12
|
+
o,
|
|
12
13
|
{
|
|
13
14
|
noColor: !0,
|
|
14
15
|
asChild: a,
|
|
15
|
-
href:
|
|
16
|
+
href: e,
|
|
16
17
|
"aria-label": `${i} page`,
|
|
17
18
|
size: "sm",
|
|
18
19
|
className: "gi-text-ellipsis gi-whitespace-nowrap gi-line-clamp-1",
|
|
19
20
|
...s,
|
|
20
21
|
children: i
|
|
21
22
|
}
|
|
22
|
-
),
|
|
23
|
-
const a = Array.isArray(
|
|
24
|
-
return /* @__PURE__ */
|
|
23
|
+
), N = (e) => /* @__PURE__ */ r(g, { ...e, "aria-current": "page" }), p = () => /* @__PURE__ */ r("span", { className: "gi-px-3 gi-text-gray-500", children: "/" }), B = ({ children: e, iconStart: i }) => {
|
|
24
|
+
const a = Array.isArray(e) ? e : [e];
|
|
25
|
+
return /* @__PURE__ */ r(
|
|
25
26
|
"nav",
|
|
26
27
|
{
|
|
27
|
-
"aria-label":
|
|
28
|
+
"aria-label": n("breadcrumbs.breadcrumbs", { defaultValue: "Breadcrumbs" }),
|
|
28
29
|
className: "gi-flex gi-items-center gi-gap-1",
|
|
29
30
|
children: /* @__PURE__ */ t(
|
|
30
31
|
"ol",
|
|
@@ -38,7 +39,7 @@ const f = () => /* @__PURE__ */ e("div", { "aria-hidden": "true", children: /* @
|
|
|
38
39
|
[&>li]:gi-items-center
|
|
39
40
|
`,
|
|
40
41
|
children: [
|
|
41
|
-
i && /* @__PURE__ */
|
|
42
|
+
i && /* @__PURE__ */ r("li", { role: "listitem", className: "gi-pr-1", children: /* @__PURE__ */ r(m, { className: "gi-block gi-shrink-0", size: 16 }) }),
|
|
42
43
|
a.map((s, l) => /* @__PURE__ */ t(
|
|
43
44
|
"li",
|
|
44
45
|
{
|
|
@@ -46,7 +47,7 @@ const f = () => /* @__PURE__ */ e("div", { "aria-hidden": "true", children: /* @
|
|
|
46
47
|
role: "listitem",
|
|
47
48
|
children: [
|
|
48
49
|
s,
|
|
49
|
-
l < a.length - 1 && /* @__PURE__ */
|
|
50
|
+
l < a.length - 1 && /* @__PURE__ */ r(p, {})
|
|
50
51
|
]
|
|
51
52
|
},
|
|
52
53
|
`breadcrumb_item_${l}`
|
|
@@ -58,8 +59,8 @@ const f = () => /* @__PURE__ */ e("div", { "aria-hidden": "true", children: /* @
|
|
|
58
59
|
);
|
|
59
60
|
};
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
N as BreadcrumbCurrentLink,
|
|
63
|
+
h as BreadcrumbEllipsis,
|
|
64
|
+
g as BreadcrumbLink,
|
|
65
|
+
B as Breadcrumbs
|
|
65
66
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as i, jsx as
|
|
2
|
+
import { jsxs as i, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { useState as h } from "react";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import f from "../../atoms/icons/KeyboardArrowRight.js";
|
|
5
|
+
import { cn as g } from "../../cn.js";
|
|
6
6
|
import { ListItem as s } from "../../list-item/list-item.js";
|
|
7
|
-
const p = ({ index:
|
|
7
|
+
const p = ({ index: n, item: e }) => {
|
|
8
8
|
const [r, c] = h(!1), o = () => {
|
|
9
9
|
c((a) => !a);
|
|
10
10
|
}, t = (a) => {
|
|
@@ -13,35 +13,35 @@ const p = ({ index: l, item: e }) => {
|
|
|
13
13
|
return /* @__PURE__ */ i(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
|
-
id: `Accordion-item-${
|
|
16
|
+
id: `Accordion-item-${n}`,
|
|
17
17
|
className: "gi-accordion-item-container",
|
|
18
18
|
"data-open": r.toString(),
|
|
19
19
|
role: "presentation",
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ l(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
24
|
"aria-label": e.label,
|
|
25
|
-
id: `Accordion-header-${
|
|
25
|
+
id: `Accordion-header-${n}`,
|
|
26
26
|
role: "button",
|
|
27
27
|
"aria-expanded": r,
|
|
28
|
-
"aria-controls": `Accordion-slot-${
|
|
28
|
+
"aria-controls": `Accordion-slot-${n}`,
|
|
29
29
|
className: "gi-header-accordion-item-toggle",
|
|
30
30
|
tabIndex: 0,
|
|
31
31
|
onClick: o,
|
|
32
32
|
onKeyDown: t,
|
|
33
33
|
children: /* @__PURE__ */ i("div", { children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ l("span", { className: "gi-text-sm gi-font-bold gi-ml-1", children: e.label }),
|
|
35
|
+
/* @__PURE__ */ l(f, { className: "gi-block gi-shrink-0 gi-accordion-item-icon" })
|
|
36
36
|
] })
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ l(
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
|
-
id: `Accordion-slot-${
|
|
42
|
+
id: `Accordion-slot-${n}`,
|
|
43
43
|
role: "region",
|
|
44
|
-
className:
|
|
44
|
+
className: g("gi-accordion-item-slot", {
|
|
45
45
|
"gi-hidden": !r
|
|
46
46
|
}),
|
|
47
47
|
children: e.slot
|
|
@@ -49,13 +49,13 @@ const p = ({ index: l, item: e }) => {
|
|
|
49
49
|
)
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
|
-
`Accordion-item-${
|
|
52
|
+
`Accordion-item-${n}`
|
|
53
53
|
);
|
|
54
|
-
},
|
|
55
|
-
items:
|
|
54
|
+
}, I = ({
|
|
55
|
+
items: n,
|
|
56
56
|
secondaryLinks: e
|
|
57
57
|
}) => /* @__PURE__ */ i("ul", { children: [
|
|
58
|
-
|
|
58
|
+
n == null ? void 0 : n.map(({ itemType: r, label: c, ...o }, t) => {
|
|
59
59
|
const [a, d] = [
|
|
60
60
|
r === "link" || r === "custom-link",
|
|
61
61
|
r === "slot"
|
|
@@ -63,7 +63,7 @@ const p = ({ index: l, item: e }) => {
|
|
|
63
63
|
if (!c)
|
|
64
64
|
return null;
|
|
65
65
|
if (a)
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
|
|
67
67
|
s,
|
|
68
68
|
{
|
|
69
69
|
href: o == null ? void 0 : o.href,
|
|
@@ -73,7 +73,7 @@ const p = ({ index: l, item: e }) => {
|
|
|
73
73
|
}
|
|
74
74
|
) }, `navLink-${c}-${t}`);
|
|
75
75
|
if (d)
|
|
76
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
|
|
77
77
|
p,
|
|
78
78
|
{
|
|
79
79
|
index: t,
|
|
@@ -84,7 +84,7 @@ const p = ({ index: l, item: e }) => {
|
|
|
84
84
|
}
|
|
85
85
|
) }, `toolItems-${c}-${t}`);
|
|
86
86
|
}),
|
|
87
|
-
e == null ? void 0 : e.map((r, c) => /* @__PURE__ */
|
|
87
|
+
e == null ? void 0 : e.map((r, c) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
|
|
88
88
|
s,
|
|
89
89
|
{
|
|
90
90
|
href: r.href,
|
|
@@ -96,5 +96,5 @@ const p = ({ index: l, item: e }) => {
|
|
|
96
96
|
] });
|
|
97
97
|
export {
|
|
98
98
|
p as MenuItemAccordion,
|
|
99
|
-
|
|
99
|
+
I as MobileHeaderMenuItems
|
|
100
100
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import c from "../../Heading.js";
|
|
3
|
+
import { Button as h } from "../../button/button.js";
|
|
4
4
|
import { translate as a } from "../../i18n/utility.js";
|
|
5
5
|
import { IconButton as d } from "../../icon-button/icon-button.js";
|
|
6
6
|
import { InputText as m } from "../../input-text/input-text.js";
|
|
@@ -17,7 +17,7 @@ function b({
|
|
|
17
17
|
"data-testid": "header-search-form",
|
|
18
18
|
"aria-label": a("header.searchForm", { defaultValue: "Search Form" }),
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */ e(
|
|
20
|
+
/* @__PURE__ */ e(c, { as: "h4", children: "Search the website" }),
|
|
21
21
|
/* @__PURE__ */ r("div", { className: "gi-flex gi-items-end gi-mt-4", children: [
|
|
22
22
|
/* @__PURE__ */ e(
|
|
23
23
|
m,
|
|
@@ -33,7 +33,7 @@ function b({
|
|
|
33
33
|
}
|
|
34
34
|
),
|
|
35
35
|
/* @__PURE__ */ e("div", { className: "gi-ml-1 gi-flex-none gi-hidden md:gi-block", children: /* @__PURE__ */ e(
|
|
36
|
-
|
|
36
|
+
h,
|
|
37
37
|
{
|
|
38
38
|
"aria-label": a("header.submitSearch", {
|
|
39
39
|
defaultValue: "Submit Search"
|