@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,23 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
function a(e) {
|
|
3
|
+
return /* @__PURE__ */ l(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: e.size ?? 24,
|
|
9
|
+
height: e.size ?? 24,
|
|
10
|
+
className: e.className,
|
|
11
|
+
id: e.id,
|
|
12
|
+
role: e.label ? "img" : void 0,
|
|
13
|
+
"aria-label": e.label,
|
|
14
|
+
"aria-hidden": !e.label,
|
|
15
|
+
fill: e.color ?? "currentColor",
|
|
16
|
+
"data-testid": e.dataTestId ?? "check_circle",
|
|
17
|
+
children: /* @__PURE__ */ l("path", { d: "m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
a as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function l(t) {
|
|
3
|
+
return /* @__PURE__ */ e(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: t.size ?? 24,
|
|
9
|
+
height: t.size ?? 24,
|
|
10
|
+
className: t.className,
|
|
11
|
+
id: t.id,
|
|
12
|
+
role: t.label ? "img" : void 0,
|
|
13
|
+
"aria-label": t.label,
|
|
14
|
+
"aria-hidden": !t.label,
|
|
15
|
+
fill: t.color ?? "currentColor",
|
|
16
|
+
"data-testid": t.dataTestId ?? "error",
|
|
17
|
+
children: /* @__PURE__ */ e("path", { d: "M508.5-291.5Q520-303 520-320t-11.5-28.5Q497-360 480-360t-28.5 11.5Q440-337 440-320t11.5 28.5Q463-280 480-280t28.5-11.5ZM440-440h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
l as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function l(a) {
|
|
3
|
+
return /* @__PURE__ */ e(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: a.size ?? 24,
|
|
9
|
+
height: a.size ?? 24,
|
|
10
|
+
className: a.className,
|
|
11
|
+
id: a.id,
|
|
12
|
+
role: a.label ? "img" : void 0,
|
|
13
|
+
"aria-label": a.label,
|
|
14
|
+
"aria-hidden": !a.label,
|
|
15
|
+
fill: a.color ?? "currentColor",
|
|
16
|
+
"data-testid": a.dataTestId ?? "first_page",
|
|
17
|
+
children: /* @__PURE__ */ e("path", { d: "M240-240v-480h80v480h-80Zm440 0L440-480l240-240 56 56-184 184 184 184-56 56Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
l as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
function i(t) {
|
|
3
|
+
return /* @__PURE__ */ a(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: t.size ?? 24,
|
|
9
|
+
height: t.size ?? 24,
|
|
10
|
+
className: t.className,
|
|
11
|
+
id: t.id,
|
|
12
|
+
role: t.label ? "img" : void 0,
|
|
13
|
+
"aria-label": t.label,
|
|
14
|
+
"aria-hidden": !t.label,
|
|
15
|
+
fill: t.color ?? "currentColor",
|
|
16
|
+
"data-testid": t.dataTestId ?? "info",
|
|
17
|
+
children: /* @__PURE__ */ a("path", { d: "M440-280h80v-240h-80v240Zm68.5-331.5Q520-623 520-640t-11.5-28.5Q497-680 480-680t-28.5 11.5Q440-657 440-640t11.5 28.5Q463-600 480-600t28.5-11.5ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
i as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
function t(e) {
|
|
3
|
+
return /* @__PURE__ */ a(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: e.size ?? 24,
|
|
9
|
+
height: e.size ?? 24,
|
|
10
|
+
className: e.className,
|
|
11
|
+
id: e.id,
|
|
12
|
+
role: e.label ? "img" : void 0,
|
|
13
|
+
"aria-label": e.label,
|
|
14
|
+
"aria-hidden": !e.label,
|
|
15
|
+
fill: e.color ?? "currentColor",
|
|
16
|
+
"data-testid": e.dataTestId ?? "keyboard_arrow_left",
|
|
17
|
+
children: /* @__PURE__ */ a("path", { d: "M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
t as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function l(a) {
|
|
3
|
+
return /* @__PURE__ */ e(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: a.size ?? 24,
|
|
9
|
+
height: a.size ?? 24,
|
|
10
|
+
className: a.className,
|
|
11
|
+
id: a.id,
|
|
12
|
+
role: a.label ? "img" : void 0,
|
|
13
|
+
"aria-label": a.label,
|
|
14
|
+
"aria-hidden": !a.label,
|
|
15
|
+
fill: a.color ?? "currentColor",
|
|
16
|
+
"data-testid": a.dataTestId ?? "keyboard_arrow_right",
|
|
17
|
+
children: /* @__PURE__ */ e("path", { d: "M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
l as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function t(a) {
|
|
3
|
+
return /* @__PURE__ */ e(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: a.size ?? 24,
|
|
9
|
+
height: a.size ?? 24,
|
|
10
|
+
className: a.className,
|
|
11
|
+
id: a.id,
|
|
12
|
+
role: a.label ? "img" : void 0,
|
|
13
|
+
"aria-label": a.label,
|
|
14
|
+
"aria-hidden": !a.label,
|
|
15
|
+
fill: a.color ?? "currentColor",
|
|
16
|
+
"data-testid": a.dataTestId ?? "last_page",
|
|
17
|
+
children: /* @__PURE__ */ e("path", { d: "m280-240-56-56 184-184-184-184 56-56 240 240-240 240Zm360 0v-480h80v480h-80Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
t as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
function i(a) {
|
|
3
|
+
return /* @__PURE__ */ t(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: a.size ?? 24,
|
|
9
|
+
height: a.size ?? 24,
|
|
10
|
+
className: a.className,
|
|
11
|
+
id: a.id,
|
|
12
|
+
role: a.label ? "img" : void 0,
|
|
13
|
+
"aria-label": a.label,
|
|
14
|
+
"aria-hidden": !a.label,
|
|
15
|
+
fill: a.color ?? "currentColor",
|
|
16
|
+
"data-testid": a.dataTestId ?? "warning",
|
|
17
|
+
children: /* @__PURE__ */ t("path", { d: "m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm330.5-51.5Q520-263 520-280t-11.5-28.5Q497-320 480-320t-28.5 11.5Q440-297 440-280t11.5 28.5Q463-240 480-240t28.5-11.5ZM440-360h80v-200h-80v200Zm40-100Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
i as default
|
|
23
|
+
};
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
export { default as KeyboardArrowDown } from './KeyboardArrowDown';
|
|
2
|
-
export { default as KeyboardArrowUp } from './KeyboardArrowUp';
|
|
3
1
|
export { default as Close } from './Close';
|
|
4
2
|
export { default as Visibility } from './Visibility';
|
|
5
3
|
export { default as VisibilityOff } from './VisibilityOff';
|
|
4
|
+
export { default as KeyboardArrowLeft } from './KeyboardArrowLeft';
|
|
5
|
+
export { default as KeyboardArrowRight } from './KeyboardArrowRight';
|
|
6
|
+
export { default as KeyboardArrowDown } from './KeyboardArrowDown';
|
|
7
|
+
export { default as KeyboardArrowUp } from './KeyboardArrowUp';
|
|
8
|
+
export { default as ArrowLeft } from './ArrowLeft';
|
|
9
|
+
export { default as ArrowRight } from './ArrowRight';
|
|
10
|
+
export { default as FirstPage } from './FirstPage';
|
|
11
|
+
export { default as LastPage } from './LastPage';
|
|
12
|
+
export { default as Info } from './Info';
|
|
13
|
+
export { default as Error } from './Error';
|
|
14
|
+
export { default as Warning } from './Warning';
|
|
15
|
+
export { default as CheckCircle } from './CheckCircle';
|
|
6
16
|
export * from './types';
|
|
@@ -1,12 +1,32 @@
|
|
|
1
|
-
import { default as e } from "./
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
1
|
+
import { default as e } from "./Close.js";
|
|
2
|
+
import { default as t } from "./Visibility.js";
|
|
3
|
+
import { default as s } from "./VisibilityOff.js";
|
|
4
|
+
import { default as l } from "./KeyboardArrowLeft.js";
|
|
5
|
+
import { default as m } from "./KeyboardArrowRight.js";
|
|
6
|
+
import { default as x } from "./KeyboardArrowDown.js";
|
|
7
|
+
import { default as w } from "./KeyboardArrowUp.js";
|
|
8
|
+
import { default as y } from "./ArrowLeft.js";
|
|
9
|
+
import { default as g } from "./ArrowRight.js";
|
|
10
|
+
import { default as K } from "./FirstPage.js";
|
|
11
|
+
import { default as C } from "./LastPage.js";
|
|
12
|
+
import { default as c } from "./Info.js";
|
|
13
|
+
import { default as R } from "./Error.js";
|
|
14
|
+
import { default as k } from "./Warning.js";
|
|
15
|
+
import { default as E } from "./CheckCircle.js";
|
|
6
16
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
y as ArrowLeft,
|
|
18
|
+
g as ArrowRight,
|
|
19
|
+
E as CheckCircle,
|
|
20
|
+
e as Close,
|
|
21
|
+
R as Error,
|
|
22
|
+
K as FirstPage,
|
|
23
|
+
c as Info,
|
|
24
|
+
x as KeyboardArrowDown,
|
|
25
|
+
l as KeyboardArrowLeft,
|
|
26
|
+
m as KeyboardArrowRight,
|
|
27
|
+
w as KeyboardArrowUp,
|
|
28
|
+
C as LastPage,
|
|
29
|
+
t as Visibility,
|
|
30
|
+
s as VisibilityOff,
|
|
31
|
+
k as Warning
|
|
12
32
|
};
|
package/dist/atoms/index.d.ts
CHANGED
package/dist/atoms/index.js
CHANGED
|
@@ -1,16 +1,52 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as o } from "./Button.js";
|
|
2
2
|
import { default as a } from "./InsetText.js";
|
|
3
|
-
import { default as s } from "./
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
3
|
+
import { default as s } from "./heading/H1.js";
|
|
4
|
+
import { default as l } from "./heading/H2.js";
|
|
5
|
+
import { default as x } from "./heading/H3.js";
|
|
6
|
+
import { default as u } from "./heading/H4.js";
|
|
7
|
+
import { default as g } from "./heading/H5.js";
|
|
8
|
+
import { default as w } from "./heading/H6.js";
|
|
9
|
+
import { default as b } from "./heading/styles.js";
|
|
10
|
+
import { getSize as H } from "./heading/utils.js";
|
|
11
|
+
import { default as K } from "./icons/Close.js";
|
|
12
|
+
import { default as L } from "./icons/Visibility.js";
|
|
13
|
+
import { default as I } from "./icons/VisibilityOff.js";
|
|
14
|
+
import { default as R } from "./icons/KeyboardArrowLeft.js";
|
|
15
|
+
import { default as V } from "./icons/KeyboardArrowRight.js";
|
|
16
|
+
import { default as z } from "./icons/KeyboardArrowDown.js";
|
|
17
|
+
import { default as D } from "./icons/KeyboardArrowUp.js";
|
|
18
|
+
import { default as F } from "./icons/ArrowLeft.js";
|
|
19
|
+
import { default as T } from "./icons/ArrowRight.js";
|
|
20
|
+
import { default as W } from "./icons/FirstPage.js";
|
|
21
|
+
import { default as q } from "./icons/LastPage.js";
|
|
22
|
+
import { default as G } from "./icons/Info.js";
|
|
23
|
+
import { default as M } from "./icons/Error.js";
|
|
24
|
+
import { default as Q } from "./icons/Warning.js";
|
|
25
|
+
import { default as Y } from "./icons/CheckCircle.js";
|
|
8
26
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
27
|
+
F as ArrowLeft,
|
|
28
|
+
T as ArrowRight,
|
|
29
|
+
o as Button,
|
|
30
|
+
Y as CheckCircle,
|
|
31
|
+
K as Close,
|
|
32
|
+
M as Error,
|
|
33
|
+
W as FirstPage,
|
|
34
|
+
s as H1,
|
|
35
|
+
l as H2,
|
|
36
|
+
x as H3,
|
|
37
|
+
u as H4,
|
|
38
|
+
g as H5,
|
|
39
|
+
w as H6,
|
|
40
|
+
G as Info,
|
|
11
41
|
a as InsetText,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
42
|
+
z as KeyboardArrowDown,
|
|
43
|
+
R as KeyboardArrowLeft,
|
|
44
|
+
V as KeyboardArrowRight,
|
|
45
|
+
D as KeyboardArrowUp,
|
|
46
|
+
q as LastPage,
|
|
47
|
+
L as Visibility,
|
|
48
|
+
I as VisibilityOff,
|
|
49
|
+
Q as Warning,
|
|
50
|
+
H as getSize,
|
|
51
|
+
b as headingStyles
|
|
16
52
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { StoryContext, Renderer } from '@storybook/types';
|
|
2
|
+
export declare const headingMeta: {
|
|
3
|
+
tags: string[];
|
|
4
|
+
title: string;
|
|
5
|
+
args: {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
argTypes: {
|
|
9
|
+
readonly size: {
|
|
10
|
+
readonly control: {
|
|
11
|
+
readonly type: "select";
|
|
12
|
+
};
|
|
13
|
+
readonly options: readonly ["", ...("sm" | "md" | "lg" | "xl" | "xs" | "2xs")[]];
|
|
14
|
+
readonly description: "Font size of the heading. Defaults to the size mapped to the heading level.";
|
|
15
|
+
readonly table: {
|
|
16
|
+
readonly type: {
|
|
17
|
+
readonly summary: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly id: {
|
|
22
|
+
readonly control: false;
|
|
23
|
+
readonly description: "Optional id for linking/targeting and aria references.";
|
|
24
|
+
};
|
|
25
|
+
readonly className: {
|
|
26
|
+
readonly control: false;
|
|
27
|
+
readonly description: "Additional CSS classes to apply to the heading element.";
|
|
28
|
+
readonly table: {
|
|
29
|
+
readonly type: {
|
|
30
|
+
readonly summary: "string";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly dataTestId: {
|
|
35
|
+
readonly control: false;
|
|
36
|
+
readonly description: "Test id for targeting the element in automated tests.";
|
|
37
|
+
readonly table: {
|
|
38
|
+
readonly type: {
|
|
39
|
+
readonly summary: "string";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
parameters: {
|
|
45
|
+
docs: {
|
|
46
|
+
description: {
|
|
47
|
+
component: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const Default: {
|
|
53
|
+
tags: string[];
|
|
54
|
+
args: {
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const AllHeadingLevels: {
|
|
59
|
+
play: ({ canvasElement, step }: StoryContext<Renderer>) => Promise<void>;
|
|
60
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { K as i, n as t } from "../../index-Bh2cTIps.js";
|
|
2
|
+
import { Size as s } from "../heading/types.js";
|
|
3
|
+
const o = {
|
|
4
|
+
tags: ["autodocs"],
|
|
5
|
+
title: "Typography/Heading",
|
|
6
|
+
args: {
|
|
7
|
+
id: "heading-id"
|
|
8
|
+
},
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
control: {
|
|
12
|
+
type: "select"
|
|
13
|
+
},
|
|
14
|
+
options: ["", ...Object.values(s)],
|
|
15
|
+
description: "Font size of the heading. Defaults to the size mapped to the heading level.",
|
|
16
|
+
table: {
|
|
17
|
+
type: {
|
|
18
|
+
summary: Object.values(s).map((a) => `"${a}"`).join(" | ")
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
id: {
|
|
23
|
+
control: !1,
|
|
24
|
+
description: "Optional id for linking/targeting and aria references."
|
|
25
|
+
},
|
|
26
|
+
className: {
|
|
27
|
+
control: !1,
|
|
28
|
+
description: "Additional CSS classes to apply to the heading element.",
|
|
29
|
+
table: {
|
|
30
|
+
type: {
|
|
31
|
+
summary: "string"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
dataTestId: {
|
|
36
|
+
control: !1,
|
|
37
|
+
description: "Test id for targeting the element in automated tests.",
|
|
38
|
+
table: {
|
|
39
|
+
type: {
|
|
40
|
+
summary: "string"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
parameters: {
|
|
46
|
+
docs: {
|
|
47
|
+
description: {
|
|
48
|
+
component: "Heading component for rendering semantic heading elements (h1–h6) with consistent typography styles."
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}, r = {
|
|
53
|
+
tags: ["skip-playwright"],
|
|
54
|
+
args: o.args
|
|
55
|
+
}, l = {
|
|
56
|
+
play: async ({
|
|
57
|
+
canvasElement: a,
|
|
58
|
+
step: n
|
|
59
|
+
}) => {
|
|
60
|
+
const e = i(a);
|
|
61
|
+
await n("renders h1 to h6 with the correct semantic tags", async () => {
|
|
62
|
+
t(e.getByTestId("heading-1").tagName).toBe("H1"), t(e.getByTestId("heading-2").tagName).toBe("H2"), t(e.getByTestId("heading-3").tagName).toBe("H3"), t(e.getByTestId("heading-4").tagName).toBe("H4"), t(e.getByTestId("heading-5").tagName).toBe("H5"), t(e.getByTestId("heading-6").tagName).toBe("H6");
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
l as AllHeadingLevels,
|
|
68
|
+
r as Default,
|
|
69
|
+
o as headingMeta
|
|
70
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { StoryContext, Renderer } from '@storybook/types';
|
|
2
|
+
import { default as ArrowLeft } from '../icons/ArrowLeft';
|
|
3
|
+
export declare const iconList: {
|
|
4
|
+
Component: typeof ArrowLeft;
|
|
5
|
+
name: string;
|
|
6
|
+
selector: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const iconsMeta: {
|
|
9
|
+
tags: string[];
|
|
10
|
+
title: string;
|
|
11
|
+
args: {
|
|
12
|
+
size: number;
|
|
13
|
+
color: string;
|
|
14
|
+
label: string;
|
|
15
|
+
className: string;
|
|
16
|
+
};
|
|
17
|
+
argTypes: {
|
|
18
|
+
size: {
|
|
19
|
+
control: "number";
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
color: {
|
|
23
|
+
control: "color";
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
label: {
|
|
27
|
+
control: "text";
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
className: {
|
|
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
|
+
size: number;
|
|
46
|
+
color: string;
|
|
47
|
+
label: string;
|
|
48
|
+
className: string;
|
|
49
|
+
};
|
|
50
|
+
play: ({ canvasElement, step }: StoryContext<Renderer>) => Promise<void>;
|
|
51
|
+
};
|