@ogcio/design-system-react 1.12.0 → 1.12.2
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/accordion/accordion-item.js +1 -1
- package/dist/alert/alert.js +1 -1
- package/dist/autocomplete/autocomplete.js +4 -4
- package/dist/button-group/button-group.js +44 -44
- package/dist/card/card-next.js +28 -28
- package/dist/combo-box/dropdown-item.js +30 -30
- package/dist/drawer/drawer.content.js +6 -6
- package/dist/drawer/drawer.js +8 -8
- package/dist/error-text/error-text.js +1 -1
- package/dist/forms/form-field/form-field.js +1 -1
- package/dist/forms/form-field-with-tag/form-field-with-tag.js +1 -1
- package/dist/heading/heading.js +1 -1
- package/dist/hint-text/hint-text.js +1 -1
- package/dist/icon/icon.js +32 -32
- package/dist/{index-CB-zPpNk.js → index-DNkhmzZp.js} +44 -44
- package/dist/index-ntYL1VRC.js +64 -0
- package/dist/input-checkbox/input-checkbox.js +13 -13
- package/dist/input-password/input-password.d.ts +2 -1
- package/dist/input-password/input-password.js +30 -26
- package/dist/input-radio/input-radio.js +15 -15
- package/dist/label/label.js +1 -1
- package/dist/link/link.js +1 -1
- package/dist/list/list.js +2 -2
- package/dist/modal/modal.content.js +1 -1
- package/dist/modal/modal.js +3 -3
- package/dist/popover/popover.js +466 -464
- package/dist/primitives/anchor.js +1 -1
- package/dist/progress-bar/progress-bar.js +8 -8
- package/dist/progress-stepper/progress-stepper.js +10 -10
- package/dist/score-select/score-select.js +29 -29
- package/dist/side-nav/side-nav.js +23 -23
- package/dist/spinner/spinner.js +1 -1
- package/dist/stack/stack.js +2 -2
- package/dist/table/table.js +1 -1
- package/dist/textarea/textarea.js +7 -7
- package/dist/toast/ds-toast.js +1 -1
- package/dist/tooltip/tooltip.js +1 -1
- package/package.json +5 -6
- package/dist/index-2sRBqKFV.js +0 -78
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as e, Fragment as c, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import { useId as p } from "react";
|
|
4
4
|
import { cn as n } from "../cn.js";
|
|
5
5
|
import { HintText as u } from "../hint-text/hint-text.js";
|
|
6
6
|
import { InputText as f } from "../input-text/input-text.js";
|
|
7
7
|
import { Label as h } from "../label/label.js";
|
|
8
|
-
import { Input as
|
|
8
|
+
import { Input as x } from "../primitives/input.js";
|
|
9
9
|
import { InputRadioSizeEnum as d } from "./types.js";
|
|
10
|
-
const
|
|
10
|
+
const v = (r) => {
|
|
11
11
|
let i = "gi-input-radio-medium";
|
|
12
12
|
return r === d.Large && (i = "gi-input-radio-large"), r === d.Small && (i = "gi-input-radio-small"), i;
|
|
13
13
|
}, y = (r) => {
|
|
@@ -17,20 +17,20 @@ const x = (r) => {
|
|
|
17
17
|
label: r,
|
|
18
18
|
hint: i,
|
|
19
19
|
id: s,
|
|
20
|
-
size:
|
|
20
|
+
size: t = "md",
|
|
21
21
|
conditionalInput: a,
|
|
22
22
|
checked: l,
|
|
23
23
|
...g
|
|
24
24
|
}) => {
|
|
25
25
|
const m = s ?? p();
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
26
|
+
return /* @__PURE__ */ e(c, { children: /* @__PURE__ */ o("div", { className: "gi-input-radio-container", children: [
|
|
27
|
+
/* @__PURE__ */ e(
|
|
28
|
+
x,
|
|
29
29
|
{
|
|
30
30
|
type: "radio",
|
|
31
31
|
id: m,
|
|
32
32
|
checked: l,
|
|
33
|
-
className:
|
|
33
|
+
className: v(t),
|
|
34
34
|
"aria-describedby": i ? `${m}-hint` : void 0,
|
|
35
35
|
"aria-required": a ? "true" : "false",
|
|
36
36
|
...g
|
|
@@ -40,20 +40,20 @@ const x = (r) => {
|
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
42
|
className: n({
|
|
43
|
-
"gi-mt-1":
|
|
44
|
-
"gi-mt-2":
|
|
43
|
+
"gi-mt-1": t === "md",
|
|
44
|
+
"gi-mt-2": t === "lg"
|
|
45
45
|
}),
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
(i || a) && /* @__PURE__ */
|
|
49
|
-
i && /* @__PURE__ */
|
|
50
|
-
a && /* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ e(h, { htmlFor: m, text: r || "", size: t }),
|
|
48
|
+
(i || a) && /* @__PURE__ */ e("div", { className: "gi-radio-conditional-divider-container", children: /* @__PURE__ */ o("div", { children: [
|
|
49
|
+
i && /* @__PURE__ */ e(u, { text: i, size: t }),
|
|
50
|
+
a && /* @__PURE__ */ e(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
53
|
className: n("gi-mt-3", {
|
|
54
54
|
"gi-hidden": !l
|
|
55
55
|
}),
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ e(f, { ...a })
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
] }) })
|
package/dist/label/label.js
CHANGED
package/dist/link/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as S, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import { a as j } from "../index-
|
|
2
|
+
import { a as j } from "../index-ntYL1VRC.js";
|
|
3
3
|
import { forwardRef as w } from "react";
|
|
4
4
|
import { getVariantAppearanceClass as I, getSizeClass as L } from "../button/helpers.js";
|
|
5
5
|
import { cn as A } from "../cn.js";
|
package/dist/list/list.js
CHANGED
|
@@ -21,7 +21,7 @@ const s = {
|
|
|
21
21
|
}
|
|
22
22
|
return i && e.push("gi-list-spaced"), e.join(" ");
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function o({
|
|
25
25
|
items: i,
|
|
26
26
|
type: t = s.None,
|
|
27
27
|
spaced: e,
|
|
@@ -39,6 +39,6 @@ function c({
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
o as List,
|
|
43
43
|
s as ListTypeEnum
|
|
44
44
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as i,
|
|
1
|
+
import { jsxs as i, Fragment as r, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Button as o } from "../button/button.js";
|
|
3
3
|
import { ModalTitle as e, ModalBody as a, ModalFooter as n } from "./modal.js";
|
|
4
4
|
const c = /* @__PURE__ */ i(r, { children: [
|
package/dist/modal/modal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r, jsxs as p, Fragment as T } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { Children as x, cloneElement as f, isValidElement as k, useState as F } from "react";
|
|
4
4
|
import { Button as A } from "../button/button.js";
|
|
5
5
|
import { cn as s } from "../cn.js";
|
|
6
6
|
import { Heading as I } from "../heading/heading.js";
|
|
@@ -63,7 +63,7 @@ const v = (e, a, t) => {
|
|
|
63
63
|
dataTestId: u,
|
|
64
64
|
...y
|
|
65
65
|
}) => {
|
|
66
|
-
const h =
|
|
66
|
+
const h = x.toArray(o), C = h.find(
|
|
67
67
|
(l) => v(M, "ModalTitle", l)
|
|
68
68
|
), N = h.find(
|
|
69
69
|
(l) => v(_, "ModalFooter", l)
|
|
@@ -194,7 +194,7 @@ const v = (e, a, t) => {
|
|
|
194
194
|
startsOpen: t,
|
|
195
195
|
...n
|
|
196
196
|
}) => {
|
|
197
|
-
const [i, c] =
|
|
197
|
+
const [i, c] = F(!!t), d = () => c(!0), m = () => c(!1), o = f(a, {
|
|
198
198
|
"data-testid": "modal-trigger-button-container",
|
|
199
199
|
"aria-haspopup": "dialog",
|
|
200
200
|
onClick: d
|