@ogcio/design-system-react 1.16.0 → 1.17.1
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 +0 -1
- package/dist/alert/alert.d.ts +2 -1
- package/dist/alert/alert.js +32 -31
- package/dist/autocomplete/use-autocomplete-controller.js +55 -54
- package/dist/breadcrumbs/breadcrumbs.js +29 -23
- package/dist/card/card-next.js +1 -1
- package/dist/data-table/data-table-footer.d.ts +12 -0
- package/dist/data-table/data-table-footer.js +66 -0
- package/dist/data-table/data-table-header.d.ts +28 -0
- package/dist/data-table/data-table-header.js +157 -0
- package/dist/data-table/data-table-selected-rows.d.ts +6 -0
- package/dist/data-table/data-table-selected-rows.js +23 -0
- package/dist/{data-grid → data-table}/tanstack/tanstack-helpers.d.ts +1 -0
- package/dist/{data-grid → data-table}/tanstack/tanstack-helpers.js +27 -25
- package/dist/drawer/drawer.js +19 -12
- package/dist/forms/form-field/form-field.js +18 -18
- package/dist/header/components/header-menu.js +26 -27
- package/dist/icon-button/icon-button.js +18 -16
- package/dist/index.d.ts +4 -4
- package/dist/index.js +43 -43
- package/dist/input-radio/input-radio.js +31 -31
- package/dist/modal/modal.d.ts +2 -1
- package/dist/modal/modal.js +162 -149
- package/dist/popover/popover.js +10 -1
- package/dist/select/select-menu.js +27 -27
- package/dist/styles.css +1 -1
- package/dist/table/table-pagination.js +2 -2
- package/dist/utils/utilities.d.ts +2 -0
- package/dist/utils/utilities.js +26 -15
- package/package.json +4 -4
- package/dist/data-grid/data-grid-footer.d.ts +0 -12
- package/dist/data-grid/data-grid-footer.js +0 -66
- package/dist/data-grid/data-grid-header.d.ts +0 -12
- package/dist/data-grid/data-grid-header.js +0 -82
- /package/dist/{data-grid → data-table}/editable-table-cell.d.ts +0 -0
- /package/dist/{data-grid → data-table}/editable-table-cell.js +0 -0
- /package/dist/{data-grid → data-table}/types.d.ts +0 -0
- /package/dist/{data-grid → data-table}/types.js +0 -0
package/dist/drawer/drawer.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as D, cloneElement as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { ModalBody as
|
|
2
|
+
import { jsx as a, jsxs as x, Fragment as y } from "react/jsx-runtime";
|
|
3
|
+
import { useState as D, cloneElement as M } from "react";
|
|
4
|
+
import { cn as r } from "../cn.js";
|
|
5
|
+
import { ModalBody as O, ModalFooter as F, ModalWrapper as N } from "../modal/modal.js";
|
|
6
6
|
const b = ({
|
|
7
7
|
children: o,
|
|
8
8
|
className: e,
|
|
9
|
-
...
|
|
10
|
-
}) => /* @__PURE__ */
|
|
9
|
+
...s
|
|
10
|
+
}) => /* @__PURE__ */ a(N, { className: r("gi-drawer-container", e), ...s, children: o }), I = ({
|
|
11
11
|
children: o,
|
|
12
12
|
triggerButton: e,
|
|
13
|
-
startsOpen:
|
|
13
|
+
startsOpen: s,
|
|
14
14
|
closeButtonLabel: p,
|
|
15
15
|
position: i = "right",
|
|
16
16
|
className: m,
|
|
17
17
|
closeButtonSize: f
|
|
18
18
|
}) => {
|
|
19
|
-
const [t, n] = D(!!
|
|
19
|
+
const [t, n] = D(!!s), w = () => n(!0), C = () => n(!1), h = M(e, {
|
|
20
20
|
"data-testid": "drawer-trigger-button-container",
|
|
21
21
|
onClick: (k) => {
|
|
22
22
|
var l, d;
|
|
@@ -26,7 +26,7 @@ const b = ({
|
|
|
26
26
|
});
|
|
27
27
|
return /* @__PURE__ */ x(y, { children: [
|
|
28
28
|
h,
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ a(
|
|
30
30
|
b,
|
|
31
31
|
{
|
|
32
32
|
children: o,
|
|
@@ -39,11 +39,18 @@ const b = ({
|
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] });
|
|
42
|
-
}, S = ({ children: o, className: e }) => /* @__PURE__ */
|
|
42
|
+
}, S = ({ children: o, className: e }) => /* @__PURE__ */ a(
|
|
43
|
+
O,
|
|
44
|
+
{
|
|
45
|
+
includeModalClass: !1,
|
|
46
|
+
className: r("gi-drawer-body", e),
|
|
47
|
+
children: o
|
|
48
|
+
}
|
|
49
|
+
), T = ({
|
|
43
50
|
children: o,
|
|
44
51
|
className: e,
|
|
45
|
-
stacked:
|
|
46
|
-
}) => /* @__PURE__ */
|
|
52
|
+
stacked: s
|
|
53
|
+
}) => /* @__PURE__ */ a(F, { stacked: s, className: r("gi-drawer-footer", e), children: o });
|
|
47
54
|
export {
|
|
48
55
|
I as Drawer,
|
|
49
56
|
S as DrawerBody,
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
3
3
|
import { S as g } from "../../index-2sRBqKFV.js";
|
|
4
4
|
import { createContext as x, useContext as v, Children as L, isValidElement as C } from "react";
|
|
5
5
|
import { cn as d } from "../../cn.js";
|
|
6
6
|
import { ErrorText as E } from "../../error-text/error-text.js";
|
|
7
7
|
import { HintText as N } from "../../hint-text/hint-text.js";
|
|
8
|
-
import { Label as
|
|
8
|
+
import { Label as H } from "../../label/label.js";
|
|
9
9
|
const c = x(null);
|
|
10
10
|
function s(e) {
|
|
11
11
|
v(c) || console.error(`[${e}] must be used within a <FormField>.`);
|
|
12
12
|
}
|
|
13
13
|
function m(e) {
|
|
14
14
|
var r, i;
|
|
15
|
-
return C(e) && (((r = e.type) == null ? void 0 : r.componentType) || ((i = e.props) == null ? void 0 : i.
|
|
15
|
+
return C(e) && (((r = e.type) == null ? void 0 : r.componentType) || ((i = e.props) == null ? void 0 : i.__type)) || null;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function P(e) {
|
|
18
18
|
return ["FormFieldLabel", "FormFieldHint", "FormFieldError"].includes(
|
|
19
19
|
m(e) ?? ""
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
const _ = (e) => ["error", "hint", "label"].some((l) => l in e) ? (console.warn(
|
|
23
23
|
"[FormField] Using legacy props. Please migrate to the new composable API."
|
|
24
|
-
), /* @__PURE__ */
|
|
25
|
-
e.label && /* @__PURE__ */
|
|
26
|
-
e.hint && /* @__PURE__ */
|
|
27
|
-
e.error && /* @__PURE__ */
|
|
24
|
+
), /* @__PURE__ */ t(c.Provider, { value: !0, children: /* @__PURE__ */ a(y, { ...e, children: [
|
|
25
|
+
e.label && /* @__PURE__ */ t(F, { ...e.label }),
|
|
26
|
+
e.hint && /* @__PURE__ */ t(u, { ...e.hint }),
|
|
27
|
+
e.error && /* @__PURE__ */ t(f, { ...e.error }),
|
|
28
28
|
e.children
|
|
29
|
-
] }) })) : /* @__PURE__ */
|
|
29
|
+
] }) })) : /* @__PURE__ */ t(c.Provider, { value: !0, children: /* @__PURE__ */ t(y, { ...e, children: e.children }) }), y = ({
|
|
30
30
|
children: e,
|
|
31
31
|
className: r,
|
|
32
32
|
...i
|
|
33
33
|
}) => {
|
|
34
34
|
const l = L.toArray(e), n = l.find(
|
|
35
|
-
(
|
|
35
|
+
(o) => m(o) === "FormFieldLabel"
|
|
36
36
|
), p = l.find(
|
|
37
|
-
(
|
|
37
|
+
(o) => m(o) === "FormFieldHint"
|
|
38
38
|
), b = l.find(
|
|
39
|
-
(
|
|
40
|
-
), h = l.filter((
|
|
39
|
+
(o) => m(o) === "FormFieldError"
|
|
40
|
+
), h = l.filter((o) => !P(o));
|
|
41
41
|
return /* @__PURE__ */ a(
|
|
42
42
|
"fieldset",
|
|
43
43
|
{
|
|
@@ -51,7 +51,7 @@ const _ = (e) => ["error", "hint", "label"].some((l) => l in e) ? (console.warn(
|
|
|
51
51
|
] }),
|
|
52
52
|
b
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ t(g, { children: h })
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
);
|
|
@@ -61,8 +61,8 @@ const _ = (e) => ["error", "hint", "label"].some((l) => l in e) ? (console.warn(
|
|
|
61
61
|
size: i,
|
|
62
62
|
htmlFor: l,
|
|
63
63
|
className: n
|
|
64
|
-
}) => (s("FormFieldLabel"), /* @__PURE__ */
|
|
65
|
-
|
|
64
|
+
}) => (s("FormFieldLabel"), /* @__PURE__ */ t(
|
|
65
|
+
H,
|
|
66
66
|
{
|
|
67
67
|
text: r,
|
|
68
68
|
size: i,
|
|
@@ -77,7 +77,7 @@ Object.defineProperty(F, "componentType", {
|
|
|
77
77
|
enumerable: !1
|
|
78
78
|
});
|
|
79
79
|
F.displayName = "FormFieldLabel";
|
|
80
|
-
const u = ({ children: e, text: r, size: i, className: l }) => (s("FormFieldHint"), /* @__PURE__ */
|
|
80
|
+
const u = ({ children: e, text: r, size: i, className: l }) => (s("FormFieldHint"), /* @__PURE__ */ t(N, { text: r, size: i, className: d("gi-mb-1", l), children: e }));
|
|
81
81
|
Object.defineProperty(u, "componentType", {
|
|
82
82
|
value: "FormFieldHint",
|
|
83
83
|
writable: !1,
|
|
@@ -90,7 +90,7 @@ const f = ({
|
|
|
90
90
|
size: i,
|
|
91
91
|
className: l,
|
|
92
92
|
...n
|
|
93
|
-
}) => (s("FormFieldError"), /* @__PURE__ */
|
|
93
|
+
}) => (s("FormFieldError"), /* @__PURE__ */ t(
|
|
94
94
|
E,
|
|
95
95
|
{
|
|
96
96
|
text: r,
|
|
@@ -5,8 +5,8 @@ import { cn as f } from "../../cn.js";
|
|
|
5
5
|
import { translate as d } from "../../i18n/utility.js";
|
|
6
6
|
import { Icon as h } from "../../icon/icon.js";
|
|
7
7
|
import { ListItem as s } from "../../list-item/list-item.js";
|
|
8
|
-
const
|
|
9
|
-
const [
|
|
8
|
+
const m = ({ index: l, item: a }) => {
|
|
9
|
+
const [r, n] = g(!1), e = () => {
|
|
10
10
|
n((i) => !i);
|
|
11
11
|
}, c = (i) => {
|
|
12
12
|
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), e());
|
|
@@ -14,20 +14,19 @@ const b = ({ index: r, item: a }) => {
|
|
|
14
14
|
return /* @__PURE__ */ t(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
|
-
id: `Accordion-item-${
|
|
17
|
+
id: `Accordion-item-${l}`,
|
|
18
18
|
className: "gi-accordion-item-container",
|
|
19
|
-
"data-open":
|
|
20
|
-
role: "
|
|
21
|
-
"aria-labelledby": `Accordion-header-${r}`,
|
|
19
|
+
"data-open": r.toString(),
|
|
20
|
+
role: "presentation",
|
|
22
21
|
children: [
|
|
23
22
|
/* @__PURE__ */ o(
|
|
24
23
|
"div",
|
|
25
24
|
{
|
|
26
25
|
"aria-label": a.label,
|
|
27
|
-
id: `Accordion-header-${
|
|
26
|
+
id: `Accordion-header-${l}`,
|
|
28
27
|
role: "button",
|
|
29
|
-
"aria-expanded":
|
|
30
|
-
"aria-controls": `Accordion-slot-${
|
|
28
|
+
"aria-expanded": r,
|
|
29
|
+
"aria-controls": `Accordion-slot-${l}`,
|
|
31
30
|
className: "gi-header-accordion-item-toggle",
|
|
32
31
|
tabIndex: 0,
|
|
33
32
|
onClick: e,
|
|
@@ -41,26 +40,26 @@ const b = ({ index: r, item: a }) => {
|
|
|
41
40
|
/* @__PURE__ */ o(
|
|
42
41
|
"div",
|
|
43
42
|
{
|
|
44
|
-
id: `Accordion-slot-${
|
|
43
|
+
id: `Accordion-slot-${l}`,
|
|
45
44
|
role: "region",
|
|
46
45
|
className: f("gi-accordion-item-slot", {
|
|
47
|
-
"gi-hidden": !
|
|
46
|
+
"gi-hidden": !r
|
|
48
47
|
}),
|
|
49
48
|
children: a.slot
|
|
50
49
|
}
|
|
51
50
|
)
|
|
52
51
|
]
|
|
53
52
|
},
|
|
54
|
-
`Accordion-item-${
|
|
53
|
+
`Accordion-item-${l}`
|
|
55
54
|
);
|
|
56
|
-
},
|
|
57
|
-
items:
|
|
55
|
+
}, p = ({
|
|
56
|
+
items: l,
|
|
58
57
|
secondaryLinks: a
|
|
59
58
|
}) => /* @__PURE__ */ t("ul", { children: [
|
|
60
|
-
|
|
59
|
+
l == null ? void 0 : l.map(({ itemType: r, label: n, ...e }, c) => {
|
|
61
60
|
const [i, u] = [
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
r === "link" || r === "custom-link",
|
|
62
|
+
r === "slot"
|
|
64
63
|
];
|
|
65
64
|
if (!n)
|
|
66
65
|
return null;
|
|
@@ -76,7 +75,7 @@ const b = ({ index: r, item: a }) => {
|
|
|
76
75
|
) }, `navLink-${n}-${c}`);
|
|
77
76
|
if (u)
|
|
78
77
|
return /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
|
|
79
|
-
|
|
78
|
+
m,
|
|
80
79
|
{
|
|
81
80
|
index: c,
|
|
82
81
|
item: {
|
|
@@ -86,17 +85,17 @@ const b = ({ index: r, item: a }) => {
|
|
|
86
85
|
}
|
|
87
86
|
) }, `toolItems-${n}-${c}`);
|
|
88
87
|
}),
|
|
89
|
-
a == null ? void 0 : a.map((
|
|
88
|
+
a == null ? void 0 : a.map((r, n) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
|
|
90
89
|
s,
|
|
91
90
|
{
|
|
92
|
-
href:
|
|
93
|
-
label:
|
|
91
|
+
href: r.href,
|
|
92
|
+
label: r.label,
|
|
94
93
|
bold: !1,
|
|
95
|
-
slot:
|
|
94
|
+
slot: r.slot
|
|
96
95
|
}
|
|
97
|
-
) }, `secondary-${
|
|
96
|
+
) }, `secondary-${r.label}-${n}`))
|
|
98
97
|
] });
|
|
99
|
-
function I({ ...
|
|
98
|
+
function I({ ...l }) {
|
|
100
99
|
return /* @__PURE__ */ t(
|
|
101
100
|
"div",
|
|
102
101
|
{
|
|
@@ -120,13 +119,13 @@ function I({ ...r }) {
|
|
|
120
119
|
]
|
|
121
120
|
}
|
|
122
121
|
) }) }),
|
|
123
|
-
/* @__PURE__ */ o(
|
|
122
|
+
/* @__PURE__ */ o(p, { ...l })
|
|
124
123
|
]
|
|
125
124
|
}
|
|
126
125
|
);
|
|
127
126
|
}
|
|
128
127
|
export {
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
m as MenuItemAccordion,
|
|
129
|
+
p as MobileHeaderMenuItems,
|
|
131
130
|
I as default
|
|
132
131
|
};
|
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { isButtonDisabled as
|
|
5
|
-
import { cn as
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
|
+
import { isButtonDisabled as B, getButtonIconSizeClass as I, getVariantAppearanceClass as b } from "../button/helpers.js";
|
|
5
|
+
import { cn as d } from "../cn.js";
|
|
6
6
|
import { Icon as g } from "../icon/icon.js";
|
|
7
|
-
const x =
|
|
7
|
+
const x = p(
|
|
8
8
|
({
|
|
9
9
|
icon: i,
|
|
10
|
-
variant:
|
|
10
|
+
variant: o,
|
|
11
11
|
appearance: n,
|
|
12
12
|
size: r,
|
|
13
|
-
disabled:
|
|
13
|
+
disabled: t,
|
|
14
14
|
onClick: s,
|
|
15
15
|
className: e = "",
|
|
16
16
|
type: c = "button",
|
|
17
|
+
dataTestid: a,
|
|
17
18
|
...u
|
|
18
|
-
},
|
|
19
|
-
const
|
|
19
|
+
}, l) => {
|
|
20
|
+
const f = r === "small" ? "sm" : "md";
|
|
20
21
|
return /* @__PURE__ */ m(
|
|
21
22
|
"button",
|
|
22
23
|
{
|
|
23
|
-
ref:
|
|
24
|
+
ref: l,
|
|
24
25
|
type: c,
|
|
25
|
-
"aria-disabled":
|
|
26
|
-
disabled:
|
|
26
|
+
"aria-disabled": t,
|
|
27
|
+
disabled: t,
|
|
27
28
|
role: "button",
|
|
28
29
|
onClick: s,
|
|
30
|
+
"data-testid": a,
|
|
29
31
|
...u,
|
|
30
|
-
className:
|
|
32
|
+
className: d(
|
|
31
33
|
"gi-btn",
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
b({ disabled: t, variant: o, appearance: n }),
|
|
35
|
+
I(r),
|
|
36
|
+
B({ disabled: t, variant: o, appearance: n }),
|
|
35
37
|
e
|
|
36
38
|
),
|
|
37
|
-
children: /* @__PURE__ */ m(g, { size:
|
|
39
|
+
children: /* @__PURE__ */ m(g, { size: f, ...i })
|
|
38
40
|
}
|
|
39
41
|
);
|
|
40
42
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -97,13 +97,13 @@ export { TabList } from './tabs/tab-list.js';
|
|
|
97
97
|
export { TabPanel } from './tabs/tab-panel.js';
|
|
98
98
|
export { Tabs } from './tabs/tabs.js';
|
|
99
99
|
export type { TabItemProps, TabsProps, TabPanelProps } from './tabs/types.js';
|
|
100
|
-
export type {
|
|
101
|
-
export {
|
|
100
|
+
export type { DataTableFooterProps, DataTableFooterTypeProps, } from './data-table/data-table-footer.js';
|
|
101
|
+
export { DataTableFooter, DataTableFooterStart, DataTableFooterCenter, DataTableFooterEnd, } from './data-table/data-table-footer.js';
|
|
102
102
|
export { Tag, TagTypeEnum, type TagProps, type TagType } from './tag/tag.js';
|
|
103
103
|
export { TextInput, type TextInputProps } from './text-input/text-input.js';
|
|
104
104
|
export { TextArea, type TextAreaProps } from './textarea/textarea.js';
|
|
105
105
|
export { toaster, ToastProvider } from './toast/toast.js';
|
|
106
106
|
export type { ToastHorizontalPosition, ToastPosition, ToastProps, ToastVariant, ToastVerticalPosition, } from './toast/types.js';
|
|
107
107
|
export { Tooltip, type TooltipProps } from './tooltip/tooltip.js';
|
|
108
|
-
export { EditableTableCell } from './data-
|
|
109
|
-
export type { EditorTableCellConfig, EditorTableCellProps, } from './data-
|
|
108
|
+
export { EditableTableCell } from './data-table/editable-table-cell.js';
|
|
109
|
+
export type { EditorTableCellConfig, EditorTableCellProps, } from './data-table/types.js';
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AccordionItem as e } from "./accordion/accordion-item.js";
|
|
2
2
|
import { Accordion as p } from "./accordion/accordion.js";
|
|
3
3
|
import { Alert as a } from "./alert/alert.js";
|
|
4
|
-
import { Autocomplete as f, AutocompleteItem as
|
|
4
|
+
import { Autocomplete as f, AutocompleteItem as l } from "./autocomplete/autocomplete.js";
|
|
5
5
|
import { Blockquote as n } from "./blockquote/blockquote.js";
|
|
6
|
-
import { BreadcrumbCurrentLink as u, BreadcrumbEllipsis as c, BreadcrumbLink as b, Breadcrumbs as
|
|
7
|
-
import { ButtonGroup as
|
|
6
|
+
import { BreadcrumbCurrentLink as u, BreadcrumbEllipsis as c, BreadcrumbLink as b, Breadcrumbs as T } from "./breadcrumbs/breadcrumbs.js";
|
|
7
|
+
import { ButtonGroup as I, ButtonGroupItem as S } from "./button-group/button-group.js";
|
|
8
8
|
import { Button as F } from "./button/button.js";
|
|
9
|
-
import { CardAction as k, CardContainer as
|
|
9
|
+
import { CardAction as k, CardContainer as D, CardDescription as h, CardHeader as L, CardMedia as g, CardSubtitle as G, CardTag as P, CardTitle as w } from "./card/card-next.js";
|
|
10
10
|
import { Card as A } from "./card/card.js";
|
|
11
11
|
import { CheckboxGroup as H } from "./checkbox/checkbox-group.js";
|
|
12
12
|
import { Checkbox as M } from "./checkbox/checkbox.js";
|
|
@@ -20,15 +20,15 @@ import { Drawer as Y, DrawerBody as Z, DrawerFooter as _, DrawerWrapper as $ } f
|
|
|
20
20
|
import { FileUpload as ro } from "./file-upload/file-upload.js";
|
|
21
21
|
import { Footer as to } from "./footer/footer.js";
|
|
22
22
|
import { FormFieldWithTag as mo } from "./forms/form-field-with-tag/form-field-with-tag.js";
|
|
23
|
-
import { FormField as xo, FormFieldError as fo, FormFieldHint as
|
|
23
|
+
import { FormField as xo, FormFieldError as fo, FormFieldHint as lo, FormFieldLabel as io } from "./forms/form-field/form-field.js";
|
|
24
24
|
import { Form as uo } from "./forms/form.js";
|
|
25
25
|
import { HeaderSearch as bo } from "./header/components/header-search.js";
|
|
26
|
-
import { Header as
|
|
26
|
+
import { Header as Co } from "./header/header.js";
|
|
27
27
|
import { Heading as So } from "./heading/heading.js";
|
|
28
28
|
import { initI18n as Fo } from "./i18n/config.js";
|
|
29
29
|
import { IconButton as ko } from "./icon-button/icon-button.js";
|
|
30
|
-
import { Icon as
|
|
31
|
-
import { Icons as
|
|
30
|
+
import { Icon as ho } from "./icon/icon.js";
|
|
31
|
+
import { Icons as go } from "./icon/icons.js";
|
|
32
32
|
import { InputCheckboxGroup as Po } from "./input-checkbox-group/input-checkbox-group.js";
|
|
33
33
|
import { InputCheckbox as yo, InputCheckboxTableCell as Ao } from "./input-checkbox/input-checkbox.js";
|
|
34
34
|
import { InputCheckboxSizeEnum as Ho } from "./input-checkbox/types.js";
|
|
@@ -43,15 +43,15 @@ import { ListItem as Zo } from "./list-item/list-item.js";
|
|
|
43
43
|
import { List as $o } from "./list/list.js";
|
|
44
44
|
import { Modal as rr, ModalBody as er, ModalFooter as tr, ModalTitle as pr, ModalWrapper as mr } from "./modal/modal.js";
|
|
45
45
|
import { Pagination as xr } from "./pagination/pagination.js";
|
|
46
|
-
import { Paragraph as
|
|
46
|
+
import { Paragraph as lr } from "./paragraph/paragraph.js";
|
|
47
47
|
import { PhaseBanner as nr } from "./phase-banner/phase-banner.js";
|
|
48
48
|
import { Popover as ur } from "./popover/popover.js";
|
|
49
49
|
import { ProgressBar as br } from "./progress-bar/progress-bar.js";
|
|
50
|
-
import { ProgressStepper as
|
|
50
|
+
import { ProgressStepper as Cr, Step as Ir, StepItem as Sr } from "./progress-stepper/progress-stepper.js";
|
|
51
51
|
import { RadioGroup as Fr } from "./radio/radio-group.js";
|
|
52
52
|
import { Radio as kr } from "./radio/radio.js";
|
|
53
|
-
import { ScoreSelect as
|
|
54
|
-
import { SectionBreak as
|
|
53
|
+
import { ScoreSelect as hr } from "./score-select/score-select.js";
|
|
54
|
+
import { SectionBreak as gr } from "./section-break/section-break.js";
|
|
55
55
|
import { Select as Pr } from "./select/select.js";
|
|
56
56
|
import { SelectGroupItemNext as yr, SelectItemNext as Ar, SelectNext as Er } from "./select/select-next.js";
|
|
57
57
|
import { SideNav as Rr, SideNavItem as Mr } from "./side-nav/side-nav.js";
|
|
@@ -66,19 +66,19 @@ import { TableData as re } from "./table/table-data.js";
|
|
|
66
66
|
import { TableFoot as te } from "./table/table-foot.js";
|
|
67
67
|
import { TableHead as me } from "./table/table-head.js";
|
|
68
68
|
import { TableHeader as xe } from "./table/table-header.js";
|
|
69
|
-
import { TableRow as
|
|
69
|
+
import { TableRow as le } from "./table/table-row.js";
|
|
70
70
|
import { Table as ne } from "./table/table.js";
|
|
71
71
|
import { TabItem as ue } from "./tabs/tab-item.js";
|
|
72
72
|
import { TabList as be } from "./tabs/tab-list.js";
|
|
73
|
-
import { TabPanel as
|
|
73
|
+
import { TabPanel as Ce } from "./tabs/tab-panel.js";
|
|
74
74
|
import { Tabs as Se } from "./tabs/tabs.js";
|
|
75
|
-
import {
|
|
76
|
-
import { Tag as
|
|
75
|
+
import { DataTableFooter as Fe, DataTableFooterCenter as Be, DataTableFooterEnd as ke, DataTableFooterStart as De } from "./data-table/data-table-footer.js";
|
|
76
|
+
import { Tag as Le, TagTypeEnum as ge } from "./tag/tag.js";
|
|
77
77
|
import { TextInput as Pe } from "./text-input/text-input.js";
|
|
78
78
|
import { TextArea as ye } from "./textarea/textarea.js";
|
|
79
79
|
import { ToastProvider as Ee, toaster as He } from "./toast/toast.js";
|
|
80
80
|
import { Tooltip as Me } from "./tooltip/tooltip.js";
|
|
81
|
-
import { EditableTableCell as ve } from "./data-
|
|
81
|
+
import { EditableTableCell as ve } from "./data-table/editable-table-cell.js";
|
|
82
82
|
import { SelectGroupItem as ze, SelectItem as qe, SelectTableCell as Ue } from "./select/select-native.js";
|
|
83
83
|
import { i as je } from "./i18next-DxWa09nx.js";
|
|
84
84
|
export {
|
|
@@ -86,23 +86,23 @@ export {
|
|
|
86
86
|
e as AccordionItem,
|
|
87
87
|
a as Alert,
|
|
88
88
|
f as Autocomplete,
|
|
89
|
-
|
|
89
|
+
l as AutocompleteItem,
|
|
90
90
|
n as Blockquote,
|
|
91
91
|
u as BreadcrumbCurrentLink,
|
|
92
92
|
c as BreadcrumbEllipsis,
|
|
93
93
|
b as BreadcrumbLink,
|
|
94
|
-
|
|
94
|
+
T as Breadcrumbs,
|
|
95
95
|
F as Button,
|
|
96
|
-
|
|
96
|
+
I as ButtonGroup,
|
|
97
97
|
S as ButtonGroupItem,
|
|
98
98
|
Or as Caption,
|
|
99
99
|
A as Card,
|
|
100
100
|
k as CardAction,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
D as CardContainer,
|
|
102
|
+
h as CardDescription,
|
|
103
|
+
L as CardHeader,
|
|
104
|
+
g as CardMedia,
|
|
105
|
+
G as CardSubtitle,
|
|
106
106
|
P as CardTag,
|
|
107
107
|
w as CardTitle,
|
|
108
108
|
M as Checkbox,
|
|
@@ -113,10 +113,10 @@ export {
|
|
|
113
113
|
z as Combobox,
|
|
114
114
|
j as Container,
|
|
115
115
|
K as CookieBanner,
|
|
116
|
-
Fe as
|
|
117
|
-
Be as
|
|
118
|
-
ke as
|
|
119
|
-
|
|
116
|
+
Fe as DataTableFooter,
|
|
117
|
+
Be as DataTableFooterCenter,
|
|
118
|
+
ke as DataTableFooterEnd,
|
|
119
|
+
De as DataTableFooterStart,
|
|
120
120
|
Q as Details,
|
|
121
121
|
Y as Drawer,
|
|
122
122
|
Z as DrawerBody,
|
|
@@ -129,15 +129,15 @@ export {
|
|
|
129
129
|
uo as Form,
|
|
130
130
|
xo as FormField,
|
|
131
131
|
fo as FormFieldError,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
lo as FormFieldHint,
|
|
133
|
+
io as FormFieldLabel,
|
|
134
134
|
mo as FormFieldWithTag,
|
|
135
|
-
|
|
135
|
+
Co as Header,
|
|
136
136
|
bo as HeaderSearch,
|
|
137
137
|
So as Heading,
|
|
138
|
-
|
|
138
|
+
ho as Icon,
|
|
139
139
|
ko as IconButton,
|
|
140
|
-
|
|
140
|
+
go as Icons,
|
|
141
141
|
yo as InputCheckbox,
|
|
142
142
|
Po as InputCheckboxGroup,
|
|
143
143
|
Ho as InputCheckboxSizeEnum,
|
|
@@ -158,15 +158,15 @@ export {
|
|
|
158
158
|
pr as ModalTitle,
|
|
159
159
|
mr as ModalWrapper,
|
|
160
160
|
xr as Pagination,
|
|
161
|
-
|
|
161
|
+
lr as Paragraph,
|
|
162
162
|
nr as PhaseBanner,
|
|
163
163
|
ur as Popover,
|
|
164
164
|
br as ProgressBar,
|
|
165
|
-
|
|
165
|
+
Cr as ProgressStepper,
|
|
166
166
|
kr as Radio,
|
|
167
167
|
Fr as RadioGroup,
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
hr as ScoreSelect,
|
|
169
|
+
gr as SectionBreak,
|
|
170
170
|
Pr as Select,
|
|
171
171
|
ze as SelectGroupItem,
|
|
172
172
|
yr as SelectGroupItemNext,
|
|
@@ -178,7 +178,7 @@ export {
|
|
|
178
178
|
Mr as SideNavItem,
|
|
179
179
|
vr as Spinner,
|
|
180
180
|
zr as Stack,
|
|
181
|
-
|
|
181
|
+
Ir as Step,
|
|
182
182
|
Sr as StepItem,
|
|
183
183
|
Ur as SummaryList,
|
|
184
184
|
Vr as SummaryListAction,
|
|
@@ -186,17 +186,17 @@ export {
|
|
|
186
186
|
Jr as SummaryListValue,
|
|
187
187
|
ue as TabItem,
|
|
188
188
|
be as TabList,
|
|
189
|
-
|
|
189
|
+
Ce as TabPanel,
|
|
190
190
|
ne as Table,
|
|
191
191
|
$r as TableBody,
|
|
192
192
|
re as TableData,
|
|
193
193
|
te as TableFoot,
|
|
194
194
|
me as TableHead,
|
|
195
195
|
xe as TableHeader,
|
|
196
|
-
|
|
196
|
+
le as TableRow,
|
|
197
197
|
Se as Tabs,
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
Le as Tag,
|
|
199
|
+
ge as TagTypeEnum,
|
|
200
200
|
ye as TextArea,
|
|
201
201
|
Pe as TextInput,
|
|
202
202
|
Ee as ToastProvider,
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { HintText as
|
|
6
|
-
import { InputText as
|
|
2
|
+
import { jsx as e, Fragment as c, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { useId as u } from "react";
|
|
4
|
+
import { cn as g } from "../cn.js";
|
|
5
|
+
import { HintText as f } from "../hint-text/hint-text.js";
|
|
6
|
+
import { InputText as p } from "../input-text/input-text.js";
|
|
7
7
|
import { Label as h } from "../label/label.js";
|
|
8
8
|
import { Input as v } from "../primitives/input.js";
|
|
9
9
|
import { InputRadioSizeEnum as d } from "./types.js";
|
|
10
10
|
const x = (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
|
+
}, j = (r) => {
|
|
14
14
|
let i = "gi-w-8";
|
|
15
15
|
return r === d.Large && (i = "gi-w-11"), r === d.Small && (i = "gi-w-6"), i;
|
|
16
|
-
},
|
|
16
|
+
}, y = ({
|
|
17
17
|
label: r,
|
|
18
18
|
hint: i,
|
|
19
19
|
id: s,
|
|
20
|
-
size:
|
|
20
|
+
size: t = "md",
|
|
21
21
|
conditionalInput: a,
|
|
22
|
-
checked:
|
|
23
|
-
...
|
|
22
|
+
checked: m,
|
|
23
|
+
...o
|
|
24
24
|
}) => {
|
|
25
|
-
const
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
25
|
+
const l = s ?? u();
|
|
26
|
+
return /* @__PURE__ */ e(c, { children: /* @__PURE__ */ n("div", { className: "gi-input-radio-container", children: [
|
|
27
|
+
/* @__PURE__ */ e(
|
|
28
28
|
v,
|
|
29
29
|
{
|
|
30
30
|
type: "radio",
|
|
31
|
-
id:
|
|
32
|
-
checked:
|
|
33
|
-
className: x(
|
|
34
|
-
"aria-describedby": i ? `${
|
|
31
|
+
id: l,
|
|
32
|
+
...m === void 0 ? { defaultChecked: o.defaultChecked } : { checked: m, onChange: o.onChange },
|
|
33
|
+
className: x(t),
|
|
34
|
+
"aria-describedby": i ? `${l}-hint` : void 0,
|
|
35
35
|
"aria-required": a ? "true" : "false",
|
|
36
|
-
...
|
|
36
|
+
...o
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ n(
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
|
-
className:
|
|
43
|
-
"gi-mt-1":
|
|
44
|
-
"gi-mt-2":
|
|
42
|
+
className: g({
|
|
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: l, text: r || "", size: t }),
|
|
48
|
+
(i || a) && /* @__PURE__ */ e("div", { className: "gi-radio-conditional-divider-container", children: /* @__PURE__ */ n("div", { children: [
|
|
49
|
+
i && /* @__PURE__ */ e(f, { text: i, size: t }),
|
|
50
|
+
a && /* @__PURE__ */ e(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
|
-
className:
|
|
54
|
-
"gi-hidden": !
|
|
53
|
+
className: g("gi-mt-3", {
|
|
54
|
+
"gi-hidden": !m
|
|
55
55
|
}),
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ e(p, { ...a })
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
] }) })
|
|
@@ -63,6 +63,6 @@ const x = (r) => {
|
|
|
63
63
|
] }) });
|
|
64
64
|
};
|
|
65
65
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
y as InputRadio,
|
|
67
|
+
j as getRadioWidth
|
|
68
68
|
};
|