@ogcio/design-system-react 1.29.0 → 1.31.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.
Files changed (109) hide show
  1. package/README.md +11 -33
  2. package/dist/alert/variants.d.ts +78 -2
  3. package/dist/atoms/DsButton.d.ts +194 -0
  4. package/dist/atoms/DsButton.js +330 -0
  5. package/dist/atoms/InsetText.d.ts +14 -0
  6. package/dist/atoms/InsetText.js +17 -0
  7. package/dist/atoms/icons/Close.d.ts +3 -0
  8. package/dist/atoms/icons/Close.js +23 -0
  9. package/dist/atoms/icons/KeyboardArrowDown.d.ts +3 -0
  10. package/dist/atoms/icons/KeyboardArrowDown.js +23 -0
  11. package/dist/atoms/icons/KeyboardArrowUp.d.ts +3 -0
  12. package/dist/atoms/icons/KeyboardArrowUp.js +23 -0
  13. package/dist/atoms/icons/Visibility.d.ts +3 -0
  14. package/dist/atoms/icons/Visibility.js +23 -0
  15. package/dist/atoms/icons/VisibilityOff.d.ts +3 -0
  16. package/dist/atoms/icons/VisibilityOff.js +23 -0
  17. package/dist/atoms/icons/index.d.ts +6 -0
  18. package/dist/atoms/icons/index.js +12 -0
  19. package/dist/atoms/icons/logos/LogoBlack.d.ts +3 -0
  20. package/dist/atoms/icons/logos/LogoBlack.js +327 -0
  21. package/dist/atoms/icons/logos/LogoGoldGreen.d.ts +3 -0
  22. package/dist/atoms/icons/logos/LogoGoldGreen.js +327 -0
  23. package/dist/atoms/icons/logos/LogoGoldWhite.d.ts +3 -0
  24. package/dist/atoms/icons/logos/LogoGoldWhite.js +87 -0
  25. package/dist/atoms/icons/logos/LogoHarpBlack.d.ts +3 -0
  26. package/dist/atoms/icons/logos/LogoHarpBlack.js +68 -0
  27. package/dist/atoms/icons/logos/LogoHarpWhite.d.ts +3 -0
  28. package/dist/{assets/logos/LogoHarpBlack.js → atoms/icons/logos/LogoHarpWhite.js} +33 -31
  29. package/dist/atoms/icons/logos/LogoWhite.d.ts +3 -0
  30. package/dist/atoms/icons/logos/LogoWhite.js +327 -0
  31. package/dist/atoms/icons/logos/index.d.ts +6 -0
  32. package/dist/atoms/icons/logos/index.js +14 -0
  33. package/dist/atoms/icons/types.d.ts +10 -0
  34. package/dist/atoms/icons/types.js +1 -0
  35. package/dist/atoms/index.d.ts +3 -0
  36. package/dist/atoms/index.js +16 -0
  37. package/dist/autocomplete/autocomplete.js +131 -115
  38. package/dist/blockquote/blockquote.d.ts +4 -1
  39. package/dist/blockquote/blockquote.js +18 -4
  40. package/dist/breadcrumbs/breadcrumbs.js +54 -33
  41. package/dist/button-group/button-group.js +31 -28
  42. package/dist/character-count/character-count.js +5 -5
  43. package/dist/chip/chip.js +41 -19
  44. package/dist/combo-box/combo-box.js +6 -13
  45. package/dist/combo-box/dropdown-item.js +39 -40
  46. package/dist/cookie-banner/cookie-banner.js +28 -20
  47. package/dist/data-table/data-table-footer.js +57 -51
  48. package/dist/data-table/data-table-header.d.ts +7 -7
  49. package/dist/data-table/data-table-header.js +97 -110
  50. package/dist/data-table/data-table-selected-rows.d.ts +1 -0
  51. package/dist/data-table/data-table-selected-rows.js +15 -19
  52. package/dist/details/details.js +43 -23
  53. package/dist/drawer/drawer.js +35 -32
  54. package/dist/footer/footer.js +54 -46
  55. package/dist/forms/form-field/form-field.d.ts +2 -2
  56. package/dist/forms/form-field/form-field.js +40 -30
  57. package/dist/forms/form-field/types.d.ts +10 -3
  58. package/dist/header/components/header-slot.js +33 -32
  59. package/dist/header/header-legacy.js +8 -8
  60. package/dist/header/variants.d.ts +220 -20
  61. package/dist/heading/heading.d.ts +70 -2
  62. package/dist/hooks/use-aria-hider.d.ts +1 -1
  63. package/dist/hooks/use-aria-hider.js +14 -13
  64. package/dist/hooks/use-breakpoint.js +15 -12
  65. package/dist/hooks/use-focus-trap.d.ts +1 -1
  66. package/dist/hooks/use-focus-trap.js +179 -179
  67. package/dist/icon/icon.d.ts +10 -0
  68. package/dist/icon/icon.js +64 -52
  69. package/dist/icon/icons.d.ts +1 -1
  70. package/dist/icons/index.d.ts +1 -0
  71. package/dist/icons/index.js +12 -0
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +144 -142
  74. package/dist/input-file/input-file.js +15 -12
  75. package/dist/input-password/input-password.js +13 -12
  76. package/dist/input-text/input-text.js +18 -16
  77. package/dist/label/label.d.ts +43 -0
  78. package/dist/label/label.js +7 -6
  79. package/dist/logos/index.d.ts +1 -0
  80. package/dist/logos/index.js +14 -0
  81. package/dist/modal/modal.js +125 -127
  82. package/dist/popover/popover.js +67 -64
  83. package/dist/score-select/score-select.js +20 -20
  84. package/dist/select/select-next.js +45 -45
  85. package/dist/spinner/spinner.d.ts +30 -2
  86. package/dist/styles.css +12 -2
  87. package/dist/table/table-row.js +14 -7
  88. package/dist/table/table.d.ts +22 -2
  89. package/dist/tabs/tab-item.d.ts +2 -2
  90. package/dist/tabs/tab-panel.js +6 -6
  91. package/dist/tabs/tabs.js +19 -19
  92. package/dist/text-input/text-input.d.ts +1 -1
  93. package/dist/textarea/textarea.js +27 -28
  94. package/dist/toast/ds-toast.d.ts +78 -2
  95. package/fonts.css +10 -0
  96. package/package.json +17 -12
  97. package/dist/assets/logos/LogoBlack.d.ts +0 -3
  98. package/dist/assets/logos/LogoBlack.js +0 -322
  99. package/dist/assets/logos/LogoGoldGreen.d.ts +0 -3
  100. package/dist/assets/logos/LogoGoldGreen.js +0 -322
  101. package/dist/assets/logos/LogoGoldWhite.d.ts +0 -3
  102. package/dist/assets/logos/LogoGoldWhite.js +0 -82
  103. package/dist/assets/logos/LogoHarpBlack.d.ts +0 -3
  104. package/dist/assets/logos/LogoHarpWhite.d.ts +0 -3
  105. package/dist/assets/logos/LogoHarpWhite.js +0 -60
  106. package/dist/assets/logos/LogoWhite.d.ts +0 -3
  107. package/dist/assets/logos/LogoWhite.js +0 -322
  108. package/dist/assets/logos/index.d.ts +0 -6
  109. package/dist/assets/logos/index.js +0 -14
package/dist/chip/chip.js CHANGED
@@ -1,37 +1,59 @@
1
1
  "use client";
2
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
3
3
  import { useId as l } from "react";
4
- import { cn as p } from "../cn.js";
5
- import { translate as c } from "../i18n/utility.js";
6
- import { Icon as s } from "../icon/icon.js";
7
- const m = ({ label: i, className: t, onClose: n = () => null }) => {
8
- const o = `chip-description-${l()}`, a = (e) => {
9
- ["Enter", " "].includes(e.key) && (e.preventDefault(), n(e));
4
+ import { c as p } from "../index-CB-zPpNk.js";
5
+ import { cn as g } from "../cn.js";
6
+ import { translate as t } from "../i18n/utility.js";
7
+ import { Icon as u } from "../icon/icon.js";
8
+ const d = ({ label: i, className: c, onClose: r = () => null }) => {
9
+ const s = `chip-description-${l()}`, n = (e) => {
10
+ ["Enter", " "].includes(e.key) && (e.preventDefault(), r(e));
10
11
  };
11
- return /* @__PURE__ */ d(
12
+ return /* @__PURE__ */ a(
12
13
  "div",
13
14
  {
14
- className: p(t, "gi-chip"),
15
- "aria-label": c("chip.label", { label: i, defaultValue: `chip: ${i}` }),
16
- "aria-describedby": o,
15
+ className: g(c, m()),
16
+ "aria-label": t("chip.label", { label: i, defaultValue: `chip: ${i}` }),
17
+ "aria-describedby": s,
17
18
  tabIndex: 0,
18
- onKeyDown: a,
19
+ onKeyDown: n,
19
20
  children: [
20
- /* @__PURE__ */ r("span", { id: o, children: i }),
21
- /* @__PURE__ */ r(
21
+ /* @__PURE__ */ o("span", { id: s, children: i }),
22
+ /* @__PURE__ */ o(
22
23
  "div",
23
24
  {
24
25
  role: "button",
25
- "aria-label": c("chip.removeChip", { defaultValue: "remove chip" }),
26
- onClick: n,
27
- children: /* @__PURE__ */ r(s, { icon: "close", size: "sm" })
26
+ "aria-label": t("chip.removeChip", { defaultValue: "remove chip" }),
27
+ onClick: r,
28
+ children: /* @__PURE__ */ o(u, { icon: "close", size: "sm" })
28
29
  }
29
30
  )
30
31
  ]
31
32
  }
32
33
  );
33
34
  };
34
- m.displayName = "Chip";
35
+ d.displayName = "Chip";
36
+ const m = p({
37
+ base: [
38
+ "gi-flex",
39
+ "gi-items-center",
40
+ "gi-gap-1",
41
+ "gi-pl-1.5",
42
+ "gi-pr-1",
43
+ "gi-py-0.5",
44
+ "gi-bg-gray-100",
45
+ "gi-w-fit",
46
+ "gi-rounded-sm",
47
+ "gi-cursor-default",
48
+ "gi-text-xs",
49
+ "hover:gi-bg-gray-200",
50
+ "focus:gi-bg-gray-200",
51
+ "focus:gi-outline",
52
+ "focus:gi-outline-gray-950",
53
+ "focus:gi-outline-2",
54
+ "focus:gi-shadow-[inset_0_0_0_1px_white,0_0_0_5px_var(--gieds-color-yellow-400)]"
55
+ ]
56
+ });
35
57
  export {
36
- m as Chip
58
+ d as Chip
37
59
  };
@@ -1,17 +1,10 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { cn as i } from "../cn.js";
3
- const e = ({
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { cn as a } from "../cn.js";
3
+ const x = ({
4
4
  children: o,
5
5
  className: t,
6
- dataTestid: r
7
- }) => /* @__PURE__ */ m(
8
- "div",
9
- {
10
- className: i("gi-combobox-container", t),
11
- "data-testid": r,
12
- children: o
13
- }
14
- );
6
+ dataTestid: m
7
+ }) => /* @__PURE__ */ r("div", { className: a("gi-max-w-[400px]", t), "data-testid": m, children: o });
15
8
  export {
16
- e as Combobox
9
+ x as Combobox
17
10
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
+ import { jsxs as n, jsx as a } from "react/jsx-runtime";
3
3
  import { useState as u, useId as j, useEffect as q } from "react";
4
4
  import { Button as B } from "../button/button.js";
5
5
  import { cn as x } from "../cn.js";
@@ -11,33 +11,33 @@ import { InputText as O } from "../input-text/input-text.js";
11
11
  import { Paragraph as y } from "../paragraph/paragraph.js";
12
12
  import { Tag as A, TagTypeEnum as F } from "../tag/tag.js";
13
13
  import { slugify as P } from "../utilities.js";
14
- const oo = ({
14
+ const ee = ({
15
15
  children: c,
16
16
  noSearch: h,
17
17
  options: p,
18
18
  value: v,
19
- defaultValue: k = [],
19
+ defaultValue: C = [],
20
20
  onChange: g,
21
21
  onSearch: l
22
22
  }) => {
23
- const [m, C] = u(!1), [d, $] = u(""), [I, _] = u(!1), [T, V] = u(k), r = c ? `${P(`${c}-${j()}`)}` : "", w = v !== void 0, t = w ? v : T, z = () => [
23
+ const [m, k] = u(!1), [d, $] = u(""), [I, _] = u(!1), [T, V] = u(C), r = c ? `${P(`${c}-${j()}`)}` : "", w = v !== void 0, t = w ? v : T, z = () => [
24
24
  ...globalThis.window.document.querySelectorAll(
25
25
  `div.gi-combobox-checkbox.gi-combobox-key-${r}`
26
26
  )
27
27
  ];
28
28
  q(() => {
29
- var a, i;
30
- let o = 0;
31
- const e = z();
32
- for (const b of e) {
33
- const f = (a = b.querySelector("label")) == null ? void 0 : a.textContent;
34
- (i = f == null ? void 0 : f.toLowerCase()) != null && i.includes(d.toLowerCase()) ? b.style.display = "flex" : (b.style.display = "none", o++);
29
+ var s, i;
30
+ let e = 0;
31
+ const o = z();
32
+ for (const b of o) {
33
+ const f = (s = b.querySelector("label")) == null ? void 0 : s.textContent;
34
+ (i = f == null ? void 0 : f.toLowerCase()) != null && i.includes(d.toLowerCase()) ? b.style.display = "flex" : (b.style.display = "none", e++);
35
35
  }
36
- _(o === p.length);
36
+ _(e === p.length);
37
37
  }, [d, p.length]);
38
- const R = (o, e) => {
39
- const a = e ? [...t || [], o] : (t || []).filter((i) => i !== o);
40
- w || V(a), g == null || g(a);
38
+ const R = (e, o) => {
39
+ const s = o ? [...t || [], e] : (t || []).filter((i) => i !== e);
40
+ w || V(s), g == null || g(s);
41
41
  };
42
42
  return /* @__PURE__ */ n(
43
43
  "div",
@@ -52,18 +52,18 @@ const oo = ({
52
52
  variant: "flat",
53
53
  appearance: "dark",
54
54
  size: "large",
55
- onClick: (o) => {
56
- o.preventDefault(), C(!m);
55
+ onClick: (e) => {
56
+ e.preventDefault(), k(!m);
57
57
  },
58
58
  className: x("gi-combobox-toggle", {
59
59
  "gi-combobox-toggle-open": m
60
60
  }),
61
61
  children: [
62
62
  /* @__PURE__ */ n("div", { className: "gi-combobox-toggle-content", children: [
63
- /* @__PURE__ */ s(y, { size: "md", children: c }),
64
- (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ s(A, { type: F.Counter, text: t.length.toString() })
63
+ /* @__PURE__ */ a(y, { size: "md", children: c }),
64
+ (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ a(A, { type: F.Counter, text: t.length.toString() })
65
65
  ] }),
66
- /* @__PURE__ */ s(
66
+ /* @__PURE__ */ a(
67
67
  D,
68
68
  {
69
69
  className: x({ "gi-rotate-180": m }),
@@ -80,19 +80,19 @@ const oo = ({
80
80
  id: `${r}-search`,
81
81
  children: [
82
82
  !h && /* @__PURE__ */ n("div", { className: "gi-combobox-search", children: [
83
- /* @__PURE__ */ s(
83
+ /* @__PURE__ */ a(
84
84
  O,
85
85
  {
86
86
  placeholder: N("dropdownItem.search", { defaultValue: "Search" }),
87
87
  className: "gi-combobox-search-input",
88
88
  value: d,
89
- onChange: (o) => {
90
- const e = o.target.value;
91
- $(e), l == null || l(e);
89
+ onChange: (e) => {
90
+ const o = e.target.value;
91
+ $(o), l == null || l(o);
92
92
  }
93
93
  }
94
94
  ),
95
- d && /* @__PURE__ */ s(
95
+ d && /* @__PURE__ */ a(
96
96
  E,
97
97
  {
98
98
  variant: "flat",
@@ -102,9 +102,8 @@ const oo = ({
102
102
  onClick: () => {
103
103
  l == null || l(""), $("");
104
104
  },
105
- icon: {
106
- icon: "close"
107
- }
105
+ icon: { icon: "close" },
106
+ "aria-label": "Clear input"
108
107
  }
109
108
  )
110
109
  ] }),
@@ -115,29 +114,29 @@ const oo = ({
115
114
  "gi-h-64": !h
116
115
  }),
117
116
  children: [
118
- I && /* @__PURE__ */ s(y, { className: "gi-combobox-checkbox-paragraph", children: N("dropdownItem.noResultFound", {
117
+ I && /* @__PURE__ */ a(y, { className: "gi-combobox-checkbox-paragraph", children: N("dropdownItem.noResultFound", {
119
118
  defaultValue: "No results found."
120
119
  }) }),
121
- p.map((o, e) => {
122
- const a = t == null ? void 0 : t.includes(o.value);
123
- return /* @__PURE__ */ s(
120
+ p.map((e, o) => {
121
+ const s = t == null ? void 0 : t.includes(e.value);
122
+ return /* @__PURE__ */ a(
124
123
  "div",
125
124
  {
126
125
  className: `gi-combobox-checkbox gi-combobox-key-${r}`,
127
- children: /* @__PURE__ */ s(
126
+ children: /* @__PURE__ */ a(
128
127
  L,
129
128
  {
130
- onChange: (i) => R(o.value, i.target.checked),
131
- checked: a,
132
- id: `${e}_${r}_${o.value}`,
133
- label: o.label,
134
- name: `${e}_${o.label}_${r}`,
135
- value: o.value,
129
+ onChange: (i) => R(e.value, i.target.checked),
130
+ checked: s,
131
+ id: `${o}_${r}_${e.value}`,
132
+ label: e.label,
133
+ name: `${o}_${e.label}_${r}`,
134
+ value: e.value,
136
135
  size: "sm"
137
136
  }
138
137
  )
139
138
  },
140
- `${e}_${r}_${o.value}`
139
+ `${o}_${r}_${e.value}`
141
140
  );
142
141
  })
143
142
  ]
@@ -151,5 +150,5 @@ const oo = ({
151
150
  );
152
151
  };
153
152
  export {
154
- oo as DropdownItem
153
+ ee as DropdownItem
155
154
  };
@@ -1,31 +1,39 @@
1
1
  "use client";
2
- import { jsx as e, Fragment as s, jsxs as o } from "react/jsx-runtime";
3
- import { Container as c } from "../container/container.js";
4
- const m = ({
5
- showConsent: a = !0,
6
- children: d,
7
- accept: i,
8
- reject: n,
9
- cookieLink: r,
10
- dataTestid: t
11
- }) => /* @__PURE__ */ e(s, { children: a && /* @__PURE__ */ e(
2
+ import { jsx as i, Fragment as s, jsxs as t } from "react/jsx-runtime";
3
+ import { Container as d } from "../container/container.js";
4
+ const b = ({
5
+ showConsent: o = !0,
6
+ children: a,
7
+ accept: e,
8
+ reject: r,
9
+ cookieLink: n,
10
+ dataTestid: l
11
+ }) => /* @__PURE__ */ i(s, { children: o && /* @__PURE__ */ i(
12
12
  "div",
13
13
  {
14
- className: "gi-cookie-banner-container",
14
+ className: "gi-bg-gray-100",
15
15
  role: "dialog",
16
16
  "aria-labelledby": "cookie-banner-title",
17
17
  "aria-describedby": "cookie-banner-description",
18
- "data-testid": t,
19
- children: /* @__PURE__ */ e("div", { className: "gi-py-5", children: /* @__PURE__ */ o(c, { children: [
20
- /* @__PURE__ */ e("div", { id: "cookie-banner-description", children: d }),
21
- /* @__PURE__ */ o("div", { className: "gi-cookie-banner-buttons", children: [
22
- i && i,
23
- n && n,
24
- r && r
25
- ] })
18
+ "data-testid": l,
19
+ children: /* @__PURE__ */ i("div", { className: "gi-py-5", children: /* @__PURE__ */ t(d, { children: [
20
+ /* @__PURE__ */ i("div", { id: "cookie-banner-description", children: a }),
21
+ /* @__PURE__ */ t(
22
+ "div",
23
+ {
24
+ className: `
25
+ gi-flex gi-gap-4 gi-items-center gi-flex-col xs:gi-flex-row gi-my-4
26
+ [&_button]:gi-w-full [&_button]:gi-justify-center [&_button]:xs:gi-w-auto`,
27
+ children: [
28
+ e && e,
29
+ r && r,
30
+ n && n
31
+ ]
32
+ }
33
+ )
26
34
  ] }) })
27
35
  }
28
36
  ) });
29
37
  export {
30
- m as CookieBanner
38
+ b as CookieBanner
31
39
  };
@@ -1,66 +1,72 @@
1
- import { jsx as a, jsxs as E } from "react/jsx-runtime";
2
- import i from "react";
3
- import { cn as o } from "../cn.js";
4
- const r = (e, t) => i.isValidElement(e) && e.type === t, l = (e, t, s) => e ? /* @__PURE__ */ a(
5
- "div",
6
- {
7
- className: o(
8
- t,
9
- s,
10
- e.props.className
11
- ),
12
- style: e.props.style,
13
- children: e.props.children
14
- }
15
- ) : null, T = ({
1
+ import { jsx as o, jsxs as v } from "react/jsx-runtime";
2
+ import c from "react";
3
+ import { c as x } from "../index-CB-zPpNk.js";
4
+ import { cn as i } from "../cn.js";
5
+ const b = ({
16
6
  children: e,
17
7
  ...t
18
- }) => /* @__PURE__ */ a("div", { ...t, children: e });
19
- T.displayName = "DataTableFooterStart";
20
- const h = ({
8
+ }) => /* @__PURE__ */ o("div", { ...t, children: e });
9
+ b.displayName = "DataTableFooterStart";
10
+ const S = ({
21
11
  children: e,
22
12
  ...t
23
- }) => /* @__PURE__ */ a("div", { ...t, children: e });
24
- h.displayName = "DataTableFooterCenter";
25
- const D = ({
13
+ }) => /* @__PURE__ */ o("div", { ...t, children: e });
14
+ S.displayName = "DataTableFooterCenter";
15
+ const y = ({
26
16
  children: e,
27
17
  ...t
28
- }) => /* @__PURE__ */ a("div", { ...t, children: e });
29
- D.displayName = "DataTableFooterEnd";
30
- const v = ({
18
+ }) => /* @__PURE__ */ o("div", { ...t, children: e });
19
+ y.displayName = "DataTableFooterEnd";
20
+ const C = ({
31
21
  children: e,
32
22
  className: t,
33
- standalone: s = !1,
34
- ...c
23
+ standalone: F = !1,
24
+ ...d
35
25
  }) => {
36
- const S = i.useMemo(() => {
37
- let g = null, y = null, F = null;
38
- return i.Children.forEach(e, (n) => {
39
- r(n, T) ? g = n : r(n, h) ? y = n : r(n, D) && (F = n);
40
- }), { start: g, center: y, end: F };
41
- }, [e]), { start: d, center: p, end: m } = S, f = !!!d && !!!p && !!m, b = "gi-data-table-footer-base", C = `${b} gi-text-center`, N = o("gi-min-w-0", {
42
- "gi-basis-1/2 gi-text-right": !f
43
- }), u = /* @__PURE__ */ E(
26
+ const h = c.useMemo(() => {
27
+ let n = null, r = null, u = null;
28
+ return c.Children.forEach(e, (a) => {
29
+ l(a, b) ? n = a : l(a, S) ? r = a : l(a, y) && (u = a);
30
+ }), { start: n, center: r, end: u };
31
+ }, [e]), { start: f, center: g, end: m } = h, D = !!!f && !!!g && !!m, { footer: T, baseSection: w, centerSection: E, endSection: N } = j({
32
+ onlyEnd: D
33
+ }), s = (n, r) => n ? /* @__PURE__ */ o(
44
34
  "div",
45
35
  {
46
- className: o(
47
- "gi-data-table-footer",
48
- f ? "gi-justify-end" : "gi-gap-2",
49
- t
50
- ),
51
- children: [
52
- l(d, b),
53
- l(p, C),
54
- l(m, N)
55
- ]
36
+ className: i(r, n.props.className),
37
+ style: n.props.style,
38
+ children: n.props.children
56
39
  }
57
- );
58
- return s ? /* @__PURE__ */ a("div", { ...c, className: o("gi-w-full gi-p-2", t), children: u }) : /* @__PURE__ */ a("tfoot", { ...c, children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: 999, className: "gi-p-2", children: u }) }) });
40
+ ) : null, p = /* @__PURE__ */ v("div", { className: i(T(), t), children: [
41
+ s(f, w()),
42
+ s(g, E()),
43
+ s(m, N())
44
+ ] });
45
+ return F ? /* @__PURE__ */ o("div", { ...d, className: i("gi-w-full gi-p-2", t), children: p }) : /* @__PURE__ */ o("tfoot", { ...d, children: /* @__PURE__ */ o("tr", { children: /* @__PURE__ */ o("td", { colSpan: 999, className: "gi-p-2", children: p }) }) });
59
46
  };
60
- v.displayName = "DataTableFooter";
47
+ C.displayName = "DataTableFooter";
48
+ const j = x({
49
+ slots: {
50
+ footer: "gi-flex gi-flex-row gi-w-full gi-items-center",
51
+ baseSection: "gi-grow gi-basis-0 gi-min-w-0",
52
+ centerSection: "gi-grow gi-basis-0 gi-min-w-0 gi-text-center",
53
+ endSection: "gi-min-w-0"
54
+ },
55
+ variants: {
56
+ onlyEnd: {
57
+ true: {
58
+ footer: "gi-justify-end"
59
+ },
60
+ false: {
61
+ footer: "gi-gap-2",
62
+ endSection: "gi-basis-1/2 gi-text-right"
63
+ }
64
+ }
65
+ }
66
+ }), l = (e, t) => c.isValidElement(e) && e.type === t;
61
67
  export {
62
- v as DataTableFooter,
63
- h as DataTableFooterCenter,
64
- D as DataTableFooterEnd,
65
- T as DataTableFooterStart
68
+ C as DataTableFooter,
69
+ S as DataTableFooterCenter,
70
+ y as DataTableFooterEnd,
71
+ b as DataTableFooterStart
66
72
  };
@@ -7,13 +7,6 @@ interface DataTableHeaderProps extends HTMLAttributes<HTMLDivElement> {
7
7
  showHeader?: boolean;
8
8
  showFilter?: boolean;
9
9
  }
10
- export declare const DataTableHeader: React.FC<DataTableHeaderProps>;
11
- export declare const DataTableHeaderSearch: React.FC<DataTableHeaderTypeProps>;
12
- export declare const DataTableHeaderActions: React.FC<DataTableHeaderTypeProps>;
13
- export declare const DataTableHeaderFilter: React.FC<DataTableHeaderTypeProps>;
14
- export declare const DataTableHeaderFilterContent: React.FC<DataTableHeaderTypeProps>;
15
- export declare const DataTableHeaderFilterContentTitle: React.FC<DataTableHeaderTypeProps>;
16
- export declare const DataTableHeaderFilterActions: React.FC<DataTableHeaderTypeProps>;
17
10
  type DataTableHeaderFilterListProps = {
18
11
  filters: {
19
12
  id: string;
@@ -23,5 +16,12 @@ type DataTableHeaderFilterListProps = {
23
16
  onClear?: () => void;
24
17
  className?: string;
25
18
  };
19
+ export declare const DataTableHeader: React.FC<DataTableHeaderProps>;
20
+ export declare const DataTableHeaderSearch: React.FC<DataTableHeaderTypeProps>;
21
+ export declare const DataTableHeaderActions: React.FC<DataTableHeaderTypeProps>;
22
+ export declare const DataTableHeaderFilter: React.FC<DataTableHeaderTypeProps>;
23
+ export declare const DataTableHeaderFilterContent: React.FC<DataTableHeaderTypeProps>;
24
+ export declare const DataTableHeaderFilterContentTitle: React.FC<DataTableHeaderTypeProps>;
25
+ export declare const DataTableHeaderFilterActions: React.FC<DataTableHeaderTypeProps>;
26
26
  export declare const DataTableHeaderFilterList: React.FC<DataTableHeaderFilterListProps>;
27
27
  export {};