@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
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
function w({
|
|
3
|
-
as:
|
|
4
|
-
size:
|
|
3
|
+
as: a = "p",
|
|
4
|
+
size: e = "md",
|
|
5
5
|
align: r = "start",
|
|
6
6
|
whitespace: t = "normal",
|
|
7
7
|
children: s,
|
|
8
|
-
style:
|
|
9
|
-
className:
|
|
8
|
+
style: p,
|
|
9
|
+
className: i,
|
|
10
10
|
id: n,
|
|
11
11
|
ariaLabel: c,
|
|
12
12
|
dataTestid: g
|
|
13
13
|
}) {
|
|
14
14
|
const u = (() => {
|
|
15
|
-
switch (
|
|
15
|
+
switch (e) {
|
|
16
|
+
case "xl":
|
|
17
|
+
return a === "p" ? "gi-paragraph-xl" : "gi-span-xl";
|
|
16
18
|
case "lg":
|
|
17
|
-
return
|
|
19
|
+
return a === "p" ? "gi-paragraph-lg" : "gi-span-lg";
|
|
18
20
|
case "sm":
|
|
19
|
-
return
|
|
21
|
+
return a === "p" ? "gi-paragraph-sm" : "gi-span-sm";
|
|
20
22
|
default:
|
|
21
|
-
return
|
|
23
|
+
return a === "p" ? "gi-paragraph-md" : "gi-span-md";
|
|
22
24
|
}
|
|
23
25
|
})(), l = (() => {
|
|
24
26
|
switch (r) {
|
|
@@ -44,11 +46,11 @@ function w({
|
|
|
44
46
|
}
|
|
45
47
|
})();
|
|
46
48
|
return /* @__PURE__ */ m(
|
|
47
|
-
|
|
49
|
+
a,
|
|
48
50
|
{
|
|
49
|
-
className: `${u} ${l} ${h} ${
|
|
51
|
+
className: `${u} ${l} ${h} ${i || ""}`,
|
|
50
52
|
"aria-label": c,
|
|
51
|
-
style:
|
|
53
|
+
style: p,
|
|
52
54
|
id: n,
|
|
53
55
|
"data-testid": g,
|
|
54
56
|
children: s
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as x, Fragment as R, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import r, { memo as k, useEffect as V, useCallback as g, useState as $ } from "react";
|
|
4
|
-
import
|
|
4
|
+
import q from "../Heading.js";
|
|
5
|
+
import { Button as A } from "../button/button.js";
|
|
5
6
|
import { cn as m } from "../cn.js";
|
|
6
|
-
import { Heading as A } from "../heading/heading.js";
|
|
7
7
|
import { Icon as z } from "../icon/icon.js";
|
|
8
8
|
import { Link as G } from "../link/link.js";
|
|
9
9
|
import { Paragraph as J } from "../paragraph/paragraph.js";
|
|
@@ -105,7 +105,7 @@ const C = r.createContext(
|
|
|
105
105
|
)
|
|
106
106
|
}
|
|
107
107
|
) : /* @__PURE__ */ s(
|
|
108
|
-
|
|
108
|
+
A,
|
|
109
109
|
{
|
|
110
110
|
variant: "flat",
|
|
111
111
|
appearance: "dark",
|
|
@@ -168,7 +168,7 @@ const C = r.createContext(
|
|
|
168
168
|
if (!r.useContext(C))
|
|
169
169
|
throw new Error("SideNavHeading must be used within a SideNav");
|
|
170
170
|
return /* @__PURE__ */ s(
|
|
171
|
-
|
|
171
|
+
q,
|
|
172
172
|
{
|
|
173
173
|
...e,
|
|
174
174
|
as: "h5",
|
package/dist/side-nav/types.d.ts
CHANGED