@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.
Files changed (38) hide show
  1. package/dist/accordion/accordion-item.js +0 -1
  2. package/dist/alert/alert.d.ts +2 -1
  3. package/dist/alert/alert.js +32 -31
  4. package/dist/autocomplete/use-autocomplete-controller.js +55 -54
  5. package/dist/breadcrumbs/breadcrumbs.js +29 -23
  6. package/dist/card/card-next.js +1 -1
  7. package/dist/data-table/data-table-footer.d.ts +12 -0
  8. package/dist/data-table/data-table-footer.js +66 -0
  9. package/dist/data-table/data-table-header.d.ts +28 -0
  10. package/dist/data-table/data-table-header.js +157 -0
  11. package/dist/data-table/data-table-selected-rows.d.ts +6 -0
  12. package/dist/data-table/data-table-selected-rows.js +23 -0
  13. package/dist/{data-grid → data-table}/tanstack/tanstack-helpers.d.ts +1 -0
  14. package/dist/{data-grid → data-table}/tanstack/tanstack-helpers.js +27 -25
  15. package/dist/drawer/drawer.js +19 -12
  16. package/dist/forms/form-field/form-field.js +18 -18
  17. package/dist/header/components/header-menu.js +26 -27
  18. package/dist/icon-button/icon-button.js +18 -16
  19. package/dist/index.d.ts +4 -4
  20. package/dist/index.js +43 -43
  21. package/dist/input-radio/input-radio.js +31 -31
  22. package/dist/modal/modal.d.ts +2 -1
  23. package/dist/modal/modal.js +162 -149
  24. package/dist/popover/popover.js +10 -1
  25. package/dist/select/select-menu.js +27 -27
  26. package/dist/styles.css +1 -1
  27. package/dist/table/table-pagination.js +2 -2
  28. package/dist/utils/utilities.d.ts +2 -0
  29. package/dist/utils/utilities.js +26 -15
  30. package/package.json +4 -4
  31. package/dist/data-grid/data-grid-footer.d.ts +0 -12
  32. package/dist/data-grid/data-grid-footer.js +0 -66
  33. package/dist/data-grid/data-grid-header.d.ts +0 -12
  34. package/dist/data-grid/data-grid-header.js +0 -82
  35. /package/dist/{data-grid → data-table}/editable-table-cell.d.ts +0 -0
  36. /package/dist/{data-grid → data-table}/editable-table-cell.js +0 -0
  37. /package/dist/{data-grid → data-table}/types.d.ts +0 -0
  38. /package/dist/{data-grid → data-table}/types.js +0 -0
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- import { jsx as s, jsxs as x, Fragment as y } from "react/jsx-runtime";
3
- import { useState as D, cloneElement as O } from "react";
4
- import { cn as a } from "../cn.js";
5
- import { ModalBody as F, ModalFooter as M, ModalWrapper as N } from "../modal/modal.js";
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
- ...r
10
- }) => /* @__PURE__ */ s(N, { className: a("gi-drawer-container", e), ...r, children: o }), I = ({
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: r,
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(!!r), w = () => n(!0), C = () => n(!1), h = O(e, {
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__ */ s(
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__ */ s(F, { className: a("gi-drawer-body", e), children: o }), T = ({
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: r
46
- }) => /* @__PURE__ */ s(M, { stacked: r, className: a("gi-drawer-footer", e), children: o });
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 o, jsxs as a } from "react/jsx-runtime";
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 T } from "../../label/label.js";
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.__mdxType)) || null;
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 H(e) {
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__ */ o(c.Provider, { value: !0, children: /* @__PURE__ */ a(y, { ...e, children: [
25
- e.label && /* @__PURE__ */ o(F, { ...e.label }),
26
- e.hint && /* @__PURE__ */ o(u, { ...e.hint }),
27
- e.error && /* @__PURE__ */ o(f, { ...e.error }),
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__ */ o(c.Provider, { value: !0, children: /* @__PURE__ */ o(y, { ...e, children: e.children }) }), y = ({
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
- (t) => m(t) === "FormFieldLabel"
35
+ (o) => m(o) === "FormFieldLabel"
36
36
  ), p = l.find(
37
- (t) => m(t) === "FormFieldHint"
37
+ (o) => m(o) === "FormFieldHint"
38
38
  ), b = l.find(
39
- (t) => m(t) === "FormFieldError"
40
- ), h = l.filter((t) => !H(t));
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__ */ o(g, { children: h })
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__ */ o(
65
- T,
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__ */ o(N, { text: r, size: i, className: d("gi-mb-1", l), children: e }));
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__ */ o(
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 b = ({ index: r, item: a }) => {
9
- const [l, n] = g(!1), e = () => {
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-${r}`,
17
+ id: `Accordion-item-${l}`,
18
18
  className: "gi-accordion-item-container",
19
- "data-open": l.toString(),
20
- role: "region",
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-${r}`,
26
+ id: `Accordion-header-${l}`,
28
27
  role: "button",
29
- "aria-expanded": l,
30
- "aria-controls": `Accordion-slot-${r}`,
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-${r}`,
43
+ id: `Accordion-slot-${l}`,
45
44
  role: "region",
46
45
  className: f("gi-accordion-item-slot", {
47
- "gi-hidden": !l
46
+ "gi-hidden": !r
48
47
  }),
49
48
  children: a.slot
50
49
  }
51
50
  )
52
51
  ]
53
52
  },
54
- `Accordion-item-${r}`
53
+ `Accordion-item-${l}`
55
54
  );
56
- }, m = ({
57
- items: r,
55
+ }, p = ({
56
+ items: l,
58
57
  secondaryLinks: a
59
58
  }) => /* @__PURE__ */ t("ul", { children: [
60
- r == null ? void 0 : r.map(({ itemType: l, label: n, ...e }, c) => {
59
+ l == null ? void 0 : l.map(({ itemType: r, label: n, ...e }, c) => {
61
60
  const [i, u] = [
62
- l === "link" || l === "custom-link",
63
- l === "slot"
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
- b,
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((l, n) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
88
+ a == null ? void 0 : a.map((r, n) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
90
89
  s,
91
90
  {
92
- href: l.href,
93
- label: l.label,
91
+ href: r.href,
92
+ label: r.label,
94
93
  bold: !1,
95
- slot: l.slot
94
+ slot: r.slot
96
95
  }
97
- ) }, `secondary-${l.label}-${n}`))
96
+ ) }, `secondary-${r.label}-${n}`))
98
97
  ] });
99
- function I({ ...r }) {
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(m, { ...r })
122
+ /* @__PURE__ */ o(p, { ...l })
124
123
  ]
125
124
  }
126
125
  );
127
126
  }
128
127
  export {
129
- b as MenuItemAccordion,
130
- m as MobileHeaderMenuItems,
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 f } from "react";
4
- import { isButtonDisabled as p, getButtonIconSizeClass as B, getVariantAppearanceClass as I } from "../button/helpers.js";
5
- import { cn as b } from "../cn.js";
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 = f(
7
+ const x = p(
8
8
  ({
9
9
  icon: i,
10
- variant: t,
10
+ variant: o,
11
11
  appearance: n,
12
12
  size: r,
13
- disabled: o,
13
+ disabled: t,
14
14
  onClick: s,
15
15
  className: e = "",
16
16
  type: c = "button",
17
+ dataTestid: a,
17
18
  ...u
18
- }, a) => {
19
- const l = r === "small" ? "sm" : "md";
19
+ }, l) => {
20
+ const f = r === "small" ? "sm" : "md";
20
21
  return /* @__PURE__ */ m(
21
22
  "button",
22
23
  {
23
- ref: a,
24
+ ref: l,
24
25
  type: c,
25
- "aria-disabled": o,
26
- disabled: o,
26
+ "aria-disabled": t,
27
+ disabled: t,
27
28
  role: "button",
28
29
  onClick: s,
30
+ "data-testid": a,
29
31
  ...u,
30
- className: b(
32
+ className: d(
31
33
  "gi-btn",
32
- I({ disabled: o, variant: t, appearance: n }),
33
- B(r),
34
- p({ disabled: o, variant: t, appearance: n }),
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: l, ...i })
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 { DataGridFooterProps, DataGridFooterTypeProps, } from './data-grid/data-grid-footer.js';
101
- export { DataGridFooter, DataGridFooterStart, DataGridFooterCenter, DataGridFooterEnd, } from './data-grid/data-grid-footer.js';
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-grid/editable-table-cell.js';
109
- export type { EditorTableCellConfig, EditorTableCellProps, } from './data-grid/types.js';
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 i } from "./autocomplete/autocomplete.js";
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 C } from "./breadcrumbs/breadcrumbs.js";
7
- import { ButtonGroup as T, ButtonGroupItem as S } from "./button-group/button-group.js";
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 G, CardDescription as D, CardHeader as h, CardMedia as L, CardSubtitle as g, CardTag as P, CardTitle as w } from "./card/card-next.js";
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 io, FormFieldLabel as lo } from "./forms/form-field/form-field.js";
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 Io } from "./header/header.js";
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 Do } from "./icon/icon.js";
31
- import { Icons as Lo } from "./icon/icons.js";
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 ir } from "./paragraph/paragraph.js";
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 Ir, Step as Tr, StepItem as Sr } from "./progress-stepper/progress-stepper.js";
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 Dr } from "./score-select/score-select.js";
54
- import { SectionBreak as Lr } from "./section-break/section-break.js";
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 ie } from "./table/table-row.js";
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 Ie } from "./tabs/tab-panel.js";
73
+ import { TabPanel as Ce } from "./tabs/tab-panel.js";
74
74
  import { Tabs as Se } from "./tabs/tabs.js";
75
- import { DataGridFooter as Fe, DataGridFooterCenter as Be, DataGridFooterEnd as ke, DataGridFooterStart as Ge } from "./data-grid/data-grid-footer.js";
76
- import { Tag as he, TagTypeEnum as Le } from "./tag/tag.js";
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-grid/editable-table-cell.js";
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
- i as AutocompleteItem,
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
- C as Breadcrumbs,
94
+ T as Breadcrumbs,
95
95
  F as Button,
96
- T as ButtonGroup,
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
- G as CardContainer,
102
- D as CardDescription,
103
- h as CardHeader,
104
- L as CardMedia,
105
- g as CardSubtitle,
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 DataGridFooter,
117
- Be as DataGridFooterCenter,
118
- ke as DataGridFooterEnd,
119
- Ge as DataGridFooterStart,
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
- io as FormFieldHint,
133
- lo as FormFieldLabel,
132
+ lo as FormFieldHint,
133
+ io as FormFieldLabel,
134
134
  mo as FormFieldWithTag,
135
- Io as Header,
135
+ Co as Header,
136
136
  bo as HeaderSearch,
137
137
  So as Heading,
138
- Do as Icon,
138
+ ho as Icon,
139
139
  ko as IconButton,
140
- Lo as Icons,
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
- ir as Paragraph,
161
+ lr as Paragraph,
162
162
  nr as PhaseBanner,
163
163
  ur as Popover,
164
164
  br as ProgressBar,
165
- Ir as ProgressStepper,
165
+ Cr as ProgressStepper,
166
166
  kr as Radio,
167
167
  Fr as RadioGroup,
168
- Dr as ScoreSelect,
169
- Lr as SectionBreak,
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
- Tr as Step,
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
- Ie as TabPanel,
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
- ie as TableRow,
196
+ le as TableRow,
197
197
  Se as Tabs,
198
- he as Tag,
199
- Le as TagTypeEnum,
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 t, Fragment as c, jsxs as o } from "react/jsx-runtime";
3
- import { useId as p } from "react";
4
- import { cn as n } from "../cn.js";
5
- import { HintText as u } from "../hint-text/hint-text.js";
6
- import { InputText as f } from "../input-text/input-text.js";
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
- }, y = (r) => {
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
- }, C = ({
16
+ }, y = ({
17
17
  label: r,
18
18
  hint: i,
19
19
  id: s,
20
- size: e = "md",
20
+ size: t = "md",
21
21
  conditionalInput: a,
22
- checked: l,
23
- ...g
22
+ checked: m,
23
+ ...o
24
24
  }) => {
25
- const m = s ?? p();
26
- return /* @__PURE__ */ t(c, { children: /* @__PURE__ */ o("div", { className: "gi-input-radio-container", children: [
27
- /* @__PURE__ */ t(
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: m,
32
- checked: l,
33
- className: x(e),
34
- "aria-describedby": i ? `${m}-hint` : void 0,
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
- ...g
36
+ ...o
37
37
  }
38
38
  ),
39
- /* @__PURE__ */ o(
39
+ /* @__PURE__ */ n(
40
40
  "div",
41
41
  {
42
- className: n({
43
- "gi-mt-1": e === "md",
44
- "gi-mt-2": e === "lg"
42
+ className: g({
43
+ "gi-mt-1": t === "md",
44
+ "gi-mt-2": t === "lg"
45
45
  }),
46
46
  children: [
47
- /* @__PURE__ */ t(h, { htmlFor: m, text: r || "", size: e }),
48
- (i || a) && /* @__PURE__ */ t("div", { className: "gi-radio-conditional-divider-container", children: /* @__PURE__ */ o("div", { children: [
49
- i && /* @__PURE__ */ t(u, { text: i, size: e }),
50
- a && /* @__PURE__ */ t(
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: n("gi-mt-3", {
54
- "gi-hidden": !l
53
+ className: g("gi-mt-3", {
54
+ "gi-hidden": !m
55
55
  }),
56
- children: /* @__PURE__ */ t(f, { ...a })
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
- C as InputRadio,
67
- y as getRadioWidth
66
+ y as InputRadio,
67
+ j as getRadioWidth
68
68
  };