@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
package/dist/icon/icon.js
CHANGED
|
@@ -1,98 +1,120 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as u } from "react";
|
|
4
|
-
import x from "../atoms/icons/
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
4
|
+
import x from "../atoms/icons/Close.js";
|
|
5
|
+
import A from "../atoms/icons/Visibility.js";
|
|
6
|
+
import I from "../atoms/icons/VisibilityOff.js";
|
|
7
|
+
import l from "../atoms/icons/KeyboardArrowLeft.js";
|
|
8
|
+
import p from "../atoms/icons/KeyboardArrowRight.js";
|
|
9
|
+
import v from "../atoms/icons/KeyboardArrowDown.js";
|
|
10
|
+
import R from "../atoms/icons/KeyboardArrowUp.js";
|
|
11
|
+
import L from "../atoms/icons/ArrowLeft.js";
|
|
12
|
+
import S from "../atoms/icons/ArrowRight.js";
|
|
13
|
+
import K from "../atoms/icons/FirstPage.js";
|
|
14
|
+
import P from "../atoms/icons/LastPage.js";
|
|
15
|
+
import z from "../atoms/icons/Info.js";
|
|
16
|
+
import E from "../atoms/icons/Error.js";
|
|
17
|
+
import F from "../atoms/icons/Warning.js";
|
|
18
|
+
import T from "../atoms/icons/CheckCircle.js";
|
|
19
|
+
import { cn as f } from "../cn.js";
|
|
20
|
+
import V from "./svgs/bluesky.js";
|
|
21
|
+
import D from "./svgs/facebook.js";
|
|
22
|
+
import G from "./svgs/instagram.js";
|
|
23
|
+
import N from "./svgs/linkedin.js";
|
|
24
|
+
import O from "./svgs/placeholder.js";
|
|
25
|
+
import Y from "./svgs/threads.js";
|
|
26
|
+
import $ from "./svgs/tiktok.js";
|
|
27
|
+
import j from "./svgs/x.js";
|
|
28
|
+
import B from "./svgs/youtube.js";
|
|
29
|
+
const g = {
|
|
20
30
|
sm: "16px",
|
|
21
31
|
md: "24px",
|
|
22
32
|
lg: "32px",
|
|
23
33
|
xl: "48px"
|
|
24
|
-
},
|
|
25
|
-
social_bluesky: { Component:
|
|
26
|
-
social_facebook: { Component:
|
|
34
|
+
}, M = {
|
|
35
|
+
social_bluesky: { Component: V, disabledClass: "gi-stroke-gray-700" },
|
|
36
|
+
social_facebook: { Component: D, disabledClass: "gi-stroke-gray-700" },
|
|
27
37
|
social_instagram: {
|
|
28
|
-
Component:
|
|
38
|
+
Component: G,
|
|
29
39
|
disabledClass: "gi-stroke-gray-700"
|
|
30
40
|
},
|
|
31
|
-
social_linkedin: { Component:
|
|
32
|
-
social_threads: { Component:
|
|
33
|
-
social_tiktok: { Component:
|
|
34
|
-
social_x: { Component:
|
|
35
|
-
social_youtube: { Component:
|
|
36
|
-
placeholder: { Component:
|
|
37
|
-
keyboard_arrow_down: { Component:
|
|
38
|
-
keyboard_arrow_up: { Component:
|
|
39
|
-
close: { Component:
|
|
40
|
-
visibility: { Component:
|
|
41
|
-
visibility_off: { Component:
|
|
42
|
-
|
|
41
|
+
social_linkedin: { Component: N, disabledClass: "gi-stroke-gray-700" },
|
|
42
|
+
social_threads: { Component: Y, disabledClass: "gi-stroke-gray-700" },
|
|
43
|
+
social_tiktok: { Component: $, disabledClass: "gi-stroke-gray-700" },
|
|
44
|
+
social_x: { Component: j, disabledClass: "gi-stroke-gray-700" },
|
|
45
|
+
social_youtube: { Component: B, disabledClass: "gi-stroke-gray-700" },
|
|
46
|
+
placeholder: { Component: O },
|
|
47
|
+
keyboard_arrow_down: { Component: v },
|
|
48
|
+
keyboard_arrow_up: { Component: R },
|
|
49
|
+
close: { Component: x },
|
|
50
|
+
visibility: { Component: A },
|
|
51
|
+
visibility_off: { Component: I },
|
|
52
|
+
info: { Component: z },
|
|
53
|
+
error: { Component: E },
|
|
54
|
+
warning: { Component: F },
|
|
55
|
+
check_circle: { Component: T },
|
|
56
|
+
keyboard_arrow_left: { Component: l },
|
|
57
|
+
keyboard_arrow_right: { Component: p },
|
|
58
|
+
chevron_left: { Component: l },
|
|
59
|
+
chevron_right: { Component: p },
|
|
60
|
+
arrow_left_alt: { Component: L },
|
|
61
|
+
arrow_right_alt: { Component: S },
|
|
62
|
+
first_page: { Component: K },
|
|
63
|
+
last_page: { Component: P }
|
|
64
|
+
}, ho = u(
|
|
43
65
|
({
|
|
44
|
-
icon:
|
|
45
|
-
size:
|
|
46
|
-
filled:
|
|
47
|
-
disabled:
|
|
66
|
+
icon: i,
|
|
67
|
+
size: d = "md",
|
|
68
|
+
filled: C,
|
|
69
|
+
disabled: e,
|
|
48
70
|
ariaHidden: c,
|
|
49
|
-
ariaLabel:
|
|
71
|
+
ariaLabel: n,
|
|
50
72
|
inline: o,
|
|
51
|
-
className:
|
|
52
|
-
onClick:
|
|
53
|
-
useFontIcon:
|
|
54
|
-
...
|
|
55
|
-
},
|
|
56
|
-
const t = d
|
|
57
|
-
if (
|
|
58
|
-
const { Component:
|
|
73
|
+
className: m,
|
|
74
|
+
onClick: b,
|
|
75
|
+
useFontIcon: k,
|
|
76
|
+
...r
|
|
77
|
+
}, y) => {
|
|
78
|
+
const t = g[d] ?? g.md, a = M[String(i)];
|
|
79
|
+
if (a && !k) {
|
|
80
|
+
const { Component: _, disabledClass: h } = a, w = f(
|
|
59
81
|
{ "gi-block": !o, "gi-inline-block": o },
|
|
60
82
|
"gi-shrink-0",
|
|
61
|
-
|
|
62
|
-
|
|
83
|
+
e && (h || "gi-fill-gray-700"),
|
|
84
|
+
m
|
|
63
85
|
);
|
|
64
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ s(_, { size: t, className: w });
|
|
65
87
|
}
|
|
66
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ s(
|
|
67
89
|
"span",
|
|
68
90
|
{
|
|
69
91
|
"aria-hidden": c,
|
|
70
|
-
"aria-label":
|
|
92
|
+
"aria-label": n,
|
|
71
93
|
"data-testid": "govie-icon",
|
|
72
|
-
...
|
|
73
|
-
ref:
|
|
74
|
-
onClick:
|
|
75
|
-
role:
|
|
76
|
-
className:
|
|
94
|
+
...r,
|
|
95
|
+
ref: y,
|
|
96
|
+
onClick: b,
|
|
97
|
+
role: n ? "img" : "presentation",
|
|
98
|
+
className: f(
|
|
77
99
|
{
|
|
78
100
|
"gi-block": !o,
|
|
79
101
|
"gi-inline-block": o,
|
|
80
|
-
"gi-text-gray-700":
|
|
102
|
+
"gi-text-gray-700": e
|
|
81
103
|
},
|
|
82
104
|
"material-symbols-outlined",
|
|
83
|
-
|
|
105
|
+
m
|
|
84
106
|
),
|
|
85
107
|
style: {
|
|
86
108
|
fontSize: t,
|
|
87
|
-
fontVariationSettings: `'FILL' ${
|
|
88
|
-
...
|
|
109
|
+
fontVariationSettings: `'FILL' ${C ? 1 : 0}, 'wght' 400, 'GRAD' 0, 'opsz' ${t}`,
|
|
110
|
+
...r == null ? void 0 : r.style
|
|
89
111
|
},
|
|
90
|
-
children:
|
|
112
|
+
children: i
|
|
91
113
|
}
|
|
92
114
|
);
|
|
93
115
|
}
|
|
94
116
|
);
|
|
95
117
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
118
|
+
ho as Icon,
|
|
119
|
+
ho as default
|
|
98
120
|
};
|
package/dist/icon/icons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const iconIds: readonly ["accessibility_new", "add_circle", "apps", "arrow_back", "arrow_downward", "arrow_drop_down", "arrow_drop_up", "arrow_forward", "arrow_left_alt", "arrow_outward", "arrow_right_alt", "arrow_upward", "attach_file", "block", "call", "cancel", "candlestick_chart", "chat_bubble", "check", "check_circle", "chevron_left", "chevron_right", "child_care", "close", "content_copy", "credit_card", "delete", "directions_car", "do_not_disturb_on", "download", "edit", "error", "event", "filter_list", "health_and_safety", "home", "info", "keyboard_arrow_down", "keyboard_arrow_up", "link", "location_on", "login", "logout", "mail", "menu", "mic", "more_horiz", "more_vert", "open_in_new", "person", "person_cancel", "person_check", "refresh", "search", "send", "settings", "sort", "space_dashboard", "sync", "swap_vert", "thumb_down", "thumb_up", "unfold_more", "upload", "visibility", "visibility_off", "warning", "work", "social_bluesky", "social_facebook", "social_instagram", "social_linkedin", "social_threads", "social_tiktok", "social_x", "social_youtube", "placeholder", "first_page", "last_page"];
|
|
2
|
-
export declare const Icons: ("search" | "link" | "sort" | "menu" | "keyboard_arrow_down" | "keyboard_arrow_up" | "
|
|
2
|
+
export declare const Icons: ("search" | "link" | "sort" | "menu" | "close" | "visibility" | "keyboard_arrow_down" | "keyboard_arrow_up" | "first_page" | "last_page" | "info" | "error" | "warning" | "check_circle" | "accessibility_new" | "add_circle" | "apps" | "arrow_back" | "arrow_downward" | "arrow_drop_down" | "arrow_drop_up" | "arrow_forward" | "arrow_left_alt" | "arrow_outward" | "arrow_right_alt" | "arrow_upward" | "attach_file" | "block" | "call" | "cancel" | "candlestick_chart" | "chat_bubble" | "check" | "chevron_left" | "chevron_right" | "child_care" | "content_copy" | "credit_card" | "delete" | "directions_car" | "do_not_disturb_on" | "download" | "edit" | "event" | "filter_list" | "health_and_safety" | "home" | "location_on" | "login" | "logout" | "mail" | "mic" | "more_horiz" | "more_vert" | "open_in_new" | "person" | "person_cancel" | "person_check" | "refresh" | "send" | "settings" | "space_dashboard" | "sync" | "swap_vert" | "thumb_down" | "thumb_up" | "unfold_more" | "upload" | "visibility_off" | "work" | "social_bluesky" | "social_facebook" | "social_instagram" | "social_linkedin" | "social_threads" | "social_tiktok" | "social_x" | "social_youtube" | "placeholder")[];
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Close, KeyboardArrowDown, KeyboardArrowUp, Visibility, VisibilityOff, } from '../atoms/icons';
|
|
1
|
+
export { Close, KeyboardArrowDown, KeyboardArrowUp, Visibility, VisibilityOff, CheckCircle, Error, Info, Warning, } from '../atoms/icons';
|
package/dist/icons/index.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import
|
|
5
|
-
import { default as
|
|
1
|
+
import { default as a } from "../atoms/icons/Close.js";
|
|
2
|
+
import { default as t } from "../atoms/icons/Visibility.js";
|
|
3
|
+
import { default as s } from "../atoms/icons/VisibilityOff.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import { default as i } from "../atoms/icons/KeyboardArrowDown.js";
|
|
6
|
+
import { default as m } from "../atoms/icons/KeyboardArrowUp.js";
|
|
7
|
+
import { default as x } from "../atoms/icons/Info.js";
|
|
8
|
+
import { default as n } from "../atoms/icons/Error.js";
|
|
9
|
+
import { default as w } from "../atoms/icons/Warning.js";
|
|
10
|
+
import { default as c } from "../atoms/icons/CheckCircle.js";
|
|
6
11
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
c as CheckCircle,
|
|
13
|
+
a as Close,
|
|
14
|
+
n as Error,
|
|
15
|
+
x as Info,
|
|
16
|
+
i as KeyboardArrowDown,
|
|
17
|
+
m as KeyboardArrowUp,
|
|
18
|
+
t as Visibility,
|
|
19
|
+
s as VisibilityOff,
|
|
20
|
+
w as Warning
|
|
12
21
|
};
|