@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
@@ -1,137 +1,124 @@
1
- import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
- import { useMemo as O, Children as P, isValidElement as C } from "react";
3
- import { Button as x } from "../button/button.js";
4
- import { Chip as L } from "../chip/chip.js";
5
- import { cn as i } from "../cn.js";
6
- import { translate as g } from "../i18n/utility.js";
7
- const d = (e, a) => C(e) && e.type === a, h = ({
1
+ import { jsxs as d, jsx as i } from "react/jsx-runtime";
2
+ import { useMemo as A, Children as L, isValidElement as O } from "react";
3
+ import { c as P } from "../index-CB-zPpNk.js";
4
+ import { Button as w } from "../button/button.js";
5
+ import { Chip as S } from "../chip/chip.js";
6
+ import { cn as n } from "../cn.js";
7
+ import { translate as x } from "../i18n/utility.js";
8
+ const N = ({
8
9
  children: e,
9
- className: a,
10
- showHeader: t = !0,
11
- showFilter: s = !0,
12
- ...c
10
+ className: t,
11
+ showHeader: a = !0,
12
+ showFilter: c = !0,
13
+ ...p
13
14
  }) => {
14
- const { search: n, filter: j, filterList: u, actions: A } = O(() => {
15
- let f = null, H = null, y = null, D = null;
16
- return P.forEach(e, (r) => {
17
- d(r, p) ? f = r : d(r, m) ? H = r : d(r, T) ? y = r : d(r, b) && (D = r);
18
- }), { search: f, filter: H, filterList: y, actions: D };
15
+ const { search: s, filter: j, filterList: T, actions: C } = A(() => {
16
+ let b = null, y = null, H = null, D = null;
17
+ return L.forEach(e, (r) => {
18
+ o(r, f) ? b = r : o(r, g) ? y = r : o(r, u) ? H = r : o(r, m) && (D = r);
19
+ }), { search: b, filter: y, filterList: H, actions: D };
19
20
  }, [e]);
20
- return /* @__PURE__ */ o("div", { ...c, className: i("gi-data-table-header", a), children: [
21
- t && /* @__PURE__ */ o("div", { className: "gi-flex gi-flex-1 gi-gap-4 gi-items-center", children: [
22
- n,
21
+ return /* @__PURE__ */ d("div", { ...p, className: n(l.root(), t), children: [
22
+ a && /* @__PURE__ */ d("div", { className: l.headerRow(), children: [
23
+ s,
23
24
  j,
24
- A
25
+ C
25
26
  ] }),
26
- u && s && /* @__PURE__ */ l("div", { className: "gi-w-full", children: u })
27
+ T && c && /* @__PURE__ */ i("div", { className: l.filterListWrapper(), children: T })
27
28
  ] });
28
- }, p = ({
29
+ }, f = ({
29
30
  children: e,
30
- className: a,
31
- ...t
32
- }) => /* @__PURE__ */ l("div", { className: i("gi-data-table-header-search", a), ...t, children: e }), b = ({
31
+ className: t,
32
+ ...a
33
+ }) => /* @__PURE__ */ i("div", { className: n(l.search(), t), ...a, children: e }), m = ({
33
34
  children: e,
34
- className: a,
35
- ...t
36
- }) => /* @__PURE__ */ l("div", { className: i("gi-data-table-header-actions", a), ...t, children: e }), m = ({
35
+ className: t,
36
+ ...a
37
+ }) => /* @__PURE__ */ i("div", { className: n(l.actions(), t), ...a, children: e }), g = ({
37
38
  children: e,
38
- className: a,
39
- ...t
40
- }) => /* @__PURE__ */ l("div", { className: i("gi-data-table-header-filter", a), ...t, children: e }), N = ({ children: e, className: a, ...t }) => /* @__PURE__ */ l(
41
- "div",
42
- {
43
- className: i("gi-data-table-header-filter-content", a),
44
- ...t,
45
- children: e
46
- }
47
- ), F = ({ children: e, className: a, ...t }) => /* @__PURE__ */ l(
48
- "div",
49
- {
50
- className: i("gi-data-table-header-filter-content-title", a),
51
- ...t,
52
- children: e
53
- }
54
- ), v = ({ children: e, className: a, ...t }) => /* @__PURE__ */ l(
55
- "div",
56
- {
57
- className: i("gi-data-table-header-filter-actions", a),
58
- ...t,
59
- children: e
60
- }
61
- ), T = ({ filters: e, onRemove: a, onClear: t, className: s, ...c }) => !e || e.length === 0 ? null : /* @__PURE__ */ o(
62
- "div",
63
- {
64
- className: i("gi-data-table-header-filter-list", s),
65
- ...c,
66
- children: [
67
- /* @__PURE__ */ l("span", { className: "gi-text-sm", children: g("dataTableHeader.filtersApplied", {
68
- length: e.length,
69
- defaultValue: `Filters applied ${e.length}:`
70
- }) }),
71
- e.map((n) => /* @__PURE__ */ l(
72
- L,
73
- {
74
- onClose: () => a == null ? void 0 : a(n.id),
75
- label: n.label
76
- },
77
- n.id
78
- )),
79
- /* @__PURE__ */ l(
80
- x,
81
- {
82
- appearance: "dark",
83
- size: "medium",
84
- variant: "flat",
85
- onClick: () => {
86
- t == null || t();
87
- },
88
- children: g("dataTableHeader.clearAllFilters", {
89
- defaultValue: "Clear all filters"
90
- })
91
- }
92
- )
93
- ]
94
- }
95
- );
96
- h.displayName = "DataTableHeader";
97
- p.displayName = "DataTableHeaderSearch";
98
- b.displayName = "DataTableHeaderActions";
99
- m.displayName = "DataTableHeaderFilter";
100
- T.displayName = "DataTableHeaderFilterList";
101
- N.displayName = "DataTableHeaderFilterContent";
102
- F.displayName = "DataTableHeaderFilterContentTitle";
103
- v.displayName = "DataTableHeaderFilterActions";
104
- Object.defineProperty(h, "componentType", {
39
+ className: t,
40
+ ...a
41
+ }) => /* @__PURE__ */ i("div", { className: n(l.filter(), t), ...a, children: e }), F = ({ children: e, className: t, ...a }) => /* @__PURE__ */ i("div", { className: n(l.filterContent(), t), ...a, children: e }), v = ({ children: e, className: t, ...a }) => /* @__PURE__ */ i("div", { className: n(l.filterContentTitle(), t), ...a, children: e }), h = ({ children: e, className: t, ...a }) => /* @__PURE__ */ i("div", { className: n(l.filterActions(), t), ...a, children: e }), u = ({ filters: e, onRemove: t, onClear: a, className: c, ...p }) => !e || e.length === 0 ? null : /* @__PURE__ */ d("div", { className: n(l.filterList(), c), ...p, children: [
42
+ /* @__PURE__ */ i("span", { className: "gi-text-sm", children: x("dataTableHeader.filtersApplied", {
43
+ length: e.length,
44
+ defaultValue: `Filters applied ${e.length}:`
45
+ }) }),
46
+ e.map((s) => /* @__PURE__ */ i(
47
+ S,
48
+ {
49
+ onClose: () => t == null ? void 0 : t(s.id),
50
+ label: s.label
51
+ },
52
+ s.id
53
+ )),
54
+ /* @__PURE__ */ i(
55
+ w,
56
+ {
57
+ appearance: "dark",
58
+ size: "medium",
59
+ variant: "flat",
60
+ onClick: () => {
61
+ a == null || a();
62
+ },
63
+ children: x("dataTableHeader.clearAllFilters", {
64
+ defaultValue: "Clear all filters"
65
+ })
66
+ }
67
+ )
68
+ ] });
69
+ N.displayName = "DataTableHeader";
70
+ f.displayName = "DataTableHeaderSearch";
71
+ m.displayName = "DataTableHeaderActions";
72
+ g.displayName = "DataTableHeaderFilter";
73
+ u.displayName = "DataTableHeaderFilterList";
74
+ F.displayName = "DataTableHeaderFilterContent";
75
+ v.displayName = "DataTableHeaderFilterContentTitle";
76
+ h.displayName = "DataTableHeaderFilterActions";
77
+ Object.defineProperty(N, "componentType", {
105
78
  value: "DataTableHeader"
106
79
  });
107
- Object.defineProperty(p, "componentType", {
80
+ Object.defineProperty(f, "componentType", {
108
81
  value: "DataTableHeaderSearch"
109
82
  });
110
- Object.defineProperty(b, "componentType", {
83
+ Object.defineProperty(m, "componentType", {
111
84
  value: "DataTableHeaderActions"
112
85
  });
113
- Object.defineProperty(m, "componentType", {
86
+ Object.defineProperty(g, "componentType", {
114
87
  value: "DataTableHeaderFilter"
115
88
  });
116
- Object.defineProperty(T, "componentType", {
89
+ Object.defineProperty(u, "componentType", {
117
90
  value: "DataTableHeaderFilterList"
118
91
  });
119
- Object.defineProperty(N, "componentType", {
92
+ Object.defineProperty(F, "componentType", {
120
93
  value: "DataTableHeaderFilterContent"
121
94
  });
122
- Object.defineProperty(F, "componentType", {
95
+ Object.defineProperty(v, "componentType", {
123
96
  value: "DataTableHeaderFilterContentTitle"
124
97
  });
125
- Object.defineProperty(v, "componentType", {
98
+ Object.defineProperty(h, "componentType", {
126
99
  value: "DataTableHeaderFilterActions"
127
100
  });
101
+ const l = P({
102
+ slots: {
103
+ root: "gi-flex gi-flex-wrap gi-items-center gi-w-full gi-gap-4 gi-mb-2",
104
+ headerRow: "gi-flex gi-flex-1 gi-gap-4 gi-items-center",
105
+ search: "gi-flex gi-flex-1",
106
+ filter: "gi-flex gi-items-center",
107
+ actions: "gi-flex gi-items-center gi-ml-auto gi-gap-4 gi-flex-shrink",
108
+ filterListWrapper: "gi-w-full",
109
+ filterList: "gi-flex gi-items-center gi-gap-2 gi-flex-wrap",
110
+ filterContentTitle: "gi-py-2 gi-font-medium",
111
+ filterContent: "gi-flex gi-flex-col gi-gap-2 gi-px-6 gi-py-4 gi-flex-1 gi-overflow-auto",
112
+ filterActions: "gi-flex gi-justify-end gi-gap-2 gi-p-6"
113
+ }
114
+ })(), o = (e, t) => O(e) && e.type === t;
128
115
  export {
129
- h as DataTableHeader,
130
- b as DataTableHeaderActions,
131
- m as DataTableHeaderFilter,
132
- v as DataTableHeaderFilterActions,
133
- N as DataTableHeaderFilterContent,
134
- F as DataTableHeaderFilterContentTitle,
135
- T as DataTableHeaderFilterList,
136
- p as DataTableHeaderSearch
116
+ N as DataTableHeader,
117
+ m as DataTableHeaderActions,
118
+ g as DataTableHeaderFilter,
119
+ h as DataTableHeaderFilterActions,
120
+ F as DataTableHeaderFilterContent,
121
+ v as DataTableHeaderFilterContentTitle,
122
+ u as DataTableHeaderFilterList,
123
+ f as DataTableHeaderSearch
137
124
  };
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  export type DataTableSelectedRowsBannerProps = {
2
3
  selectedCount: number;
3
4
  actions?: React.ReactNode;
@@ -1,23 +1,19 @@
1
- import { jsxs as r, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import { c as o } from "../index-CB-zPpNk.js";
2
3
  import { cn as g } from "../cn.js";
3
- import { translate as l } from "../i18n/utility.js";
4
- const o = ({ selectedCount: e, actions: t, className: a, ...s }) => /* @__PURE__ */ r(
5
- "div",
6
- {
7
- className: g(
8
- "gi-w-full gi-flex gi-items-center gi-justify-between gi-px-3 gi-py-2 gi-bg-gray-900 gi-rounded-md",
9
- a
10
- ),
11
- ...s,
12
- children: [
13
- /* @__PURE__ */ i("span", { className: "gi-text-sm gi-font-medium gi-text-white", children: l("dataTable.selectedRows", {
14
- count: e,
15
- defaultValue: ` (${e} Row${e === 1 ? "" : "s"} selected)`
16
- }) }),
17
- /* @__PURE__ */ i("div", { className: "gi-flex gi-gap-4", children: t })
18
- ]
4
+ import { translate as m } from "../i18n/utility.js";
5
+ const p = ({ selectedCount: e, actions: s, className: a, ...l }) => /* @__PURE__ */ r("div", { className: g(i.root(), a), ...l, children: [
6
+ /* @__PURE__ */ t("span", { className: i.label(), children: m("dataTable.selectedRows", {
7
+ count: e,
8
+ defaultValue: ` (${e} Row${e === 1 ? "" : "s"} selected)`
9
+ }) }),
10
+ /* @__PURE__ */ t("div", { className: "gi-flex gi-gap-4", children: s })
11
+ ] }), i = o({
12
+ slots: {
13
+ root: "gi-w-full gi-flex gi-items-center gi-justify-between gi-px-3 gi-py-2 gi-bg-gray-900 gi-rounded-md",
14
+ label: "gi-text-sm gi-font-medium gi-text-white"
19
15
  }
20
- );
16
+ })();
21
17
  export {
22
- o as DataTableSelectedRowsBanner
18
+ p as DataTableSelectedRowsBanner
23
19
  };
@@ -1,55 +1,75 @@
1
1
  "use client";
2
- import { jsxs as l, jsx as s } from "react/jsx-runtime";
3
- import { useRef as m, useState as u, useEffect as f } from "react";
4
- import { Icon as g } from "../icon/icon.js";
5
- const N = ({ label: n, name: d, children: o, ...c }) => {
6
- const t = m(null), [e, i] = u(!1);
2
+ import { jsxs as t, jsx as o } from "react/jsx-runtime";
3
+ import { useRef as g, useState as u, useEffect as f } from "react";
4
+ import { c as p } from "../index-CB-zPpNk.js";
5
+ import { Icon as m } from "../icon/icon.js";
6
+ const w = ({ label: n, name: l, children: d, ...c }) => {
7
+ const s = g(null), [e, a] = u(!1);
7
8
  return f(() => {
8
- var a, r;
9
- ((a = t.current) == null ? void 0 : a.open) !== e && i(((r = t.current) == null ? void 0 : r.open) ?? !1);
10
- }, []), /* @__PURE__ */ l(
9
+ var i, r;
10
+ ((i = s.current) == null ? void 0 : i.open) !== e && a(((r = s.current) == null ? void 0 : r.open) ?? !1);
11
+ }, []), /* @__PURE__ */ t(
11
12
  "details",
12
13
  {
13
- ref: t,
14
+ ref: s,
14
15
  onToggle: () => {
15
- var a;
16
- i(((a = t.current) == null ? void 0 : a.open) ?? !1);
16
+ var i;
17
+ a(((i = s.current) == null ? void 0 : i.open) ?? !1);
17
18
  },
18
19
  "data-testid": "govie-details",
19
- className: "gi-details",
20
+ className: "gi-block gi-text-md gi-text-gray-950",
20
21
  "data-module": "gi-details",
21
- name: d,
22
+ name: l,
22
23
  "aria-expanded": e ? "true" : "false",
23
24
  "aria-details": "details-content",
24
25
  ...c,
25
26
  children: [
26
- /* @__PURE__ */ l(
27
+ /* @__PURE__ */ t(
27
28
  "summary",
28
29
  {
29
- className: "gi-details-summary",
30
- "data-testid": "govie-details-summary",
30
+ className: _(),
31
31
  role: "button",
32
+ "data-testid": "govie-details-summary",
32
33
  "aria-controls": "details-content",
33
34
  "aria-expanded": e ? "true" : "false",
34
35
  children: [
35
- /* @__PURE__ */ s(g, { icon: e ? "keyboard_arrow_up" : "keyboard_arrow_down" }),
36
- /* @__PURE__ */ s("span", { className: "gi-details-summary-text", children: n })
36
+ /* @__PURE__ */ o(m, { icon: e ? "keyboard_arrow_up" : "keyboard_arrow_down" }),
37
+ /* @__PURE__ */ o("span", { className: "gi-underline gi-underline-offset-[0.1rem]", children: n })
37
38
  ]
38
39
  }
39
40
  ),
40
- /* @__PURE__ */ s(
41
+ /* @__PURE__ */ o(
41
42
  "div",
42
43
  {
43
44
  id: "details-content",
44
- className: "gi-details-text",
45
+ className: "gi-py-4 gi-pl-5 gi-border-l-[5px] gi-border-solid gi-border-l-gray-200",
45
46
  "aria-hidden": e ? "false" : "true",
46
- children: o
47
+ children: d
47
48
  }
48
49
  )
49
50
  ]
50
51
  }
51
52
  );
52
- };
53
+ }, _ = p({
54
+ base: [
55
+ "gi-flex",
56
+ "gi-items-center",
57
+ "gi-relative",
58
+ "gi-mb-1",
59
+ "gi-w-fit",
60
+ "gi-list-none",
61
+ "focus:gi-rounded-sm",
62
+ "focus-visible:gi-rounded-sm",
63
+ "focus:gi-shadow-[0_0_0_2px_var(--gieds-color-gray-950),0_0_0_5px_var(--gieds-color-yellow-400)]",
64
+ "focus-visible:gi-shadow-[0_0_0_2px_var(--gieds-color-gray-950),0_0_0_5px_var(--gieds-color-yellow-400)]",
65
+ "focus-visible:gi-outline-none",
66
+ "[&:focus>span]:gi-no-underline",
67
+ "[&:focus>span]:gi-select-none",
68
+ "[&:hover>span]:gi-underline-offset-[0.1rem]",
69
+ "[&:hover>span]:[text-decoration-thickness:max(3px)]",
70
+ "[&:hover>span]:[text-decoration-skip-ink:none]"
71
+ ]
72
+ });
53
73
  export {
54
- N as Details
74
+ w as Details
55
75
  };
@@ -1,61 +1,64 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as C, Fragment as D } from "react/jsx-runtime";
3
- import { useState as O, cloneElement as j } from "react";
2
+ import { jsx as a, jsxs as x, Fragment as C } from "react/jsx-runtime";
3
+ import { useState as D, cloneElement as O } from "react";
4
4
  import { cn as l } from "../cn.js";
5
- import { ModalBody as u, ModalFooter as h, ModalWrapper as k } from "../modal/modal.js";
6
- const v = ({
5
+ import { ModalBody as u, ModalFooter as j, ModalWrapper as v } from "../modal/modal.js";
6
+ const h = ({
7
7
  children: o,
8
8
  className: e,
9
- ...a
10
- }) => /* @__PURE__ */ r(
11
- k,
9
+ ...r
10
+ }) => /* @__PURE__ */ a(
11
+ v,
12
12
  {
13
- className: l("gi-drawer-container", e),
13
+ className: l("gi-flex gi-flex-col", e),
14
14
  closeButtonSize: "large",
15
- ...a,
15
+ ...r,
16
16
  children: o
17
17
  }
18
- ), x = ({
18
+ ), k = ({
19
19
  children: o,
20
20
  triggerButton: e,
21
- startsOpen: a,
22
- closeButtonLabel: d,
23
- position: i = "right",
24
- className: t
21
+ startsOpen: r,
22
+ closeButtonLabel: p,
23
+ position: t = "right",
24
+ className: f
25
25
  }) => {
26
- const [f, n] = O(!!a), m = () => n(!0), w = () => n(!1), b = j(e, {
26
+ const [d, s] = D(!!r), m = () => s(!0), w = () => s(!1), b = O(e, {
27
27
  "data-testid": "drawer-trigger-button-container",
28
28
  onClick: (y) => {
29
- var c, p;
30
- const s = typeof ((c = e == null ? void 0 : e.props) == null ? void 0 : c.onClick) == "function" ? (p = e == null ? void 0 : e.props) == null ? void 0 : p.onClick : void 0;
31
- s && s(y), m();
29
+ var c, i;
30
+ const n = typeof ((c = e == null ? void 0 : e.props) == null ? void 0 : c.onClick) == "function" ? (i = e == null ? void 0 : e.props) == null ? void 0 : i.onClick : void 0;
31
+ n && n(y), m();
32
32
  }
33
33
  });
34
- return /* @__PURE__ */ C(D, { children: [
34
+ return /* @__PURE__ */ x(C, { children: [
35
35
  b,
36
- /* @__PURE__ */ r(
37
- v,
36
+ /* @__PURE__ */ a(
37
+ h,
38
38
  {
39
39
  children: o,
40
- closeButtonLabel: d,
41
- position: i,
42
- className: t,
43
- isOpen: f,
40
+ closeButtonLabel: p,
41
+ position: t,
42
+ className: f,
43
+ isOpen: d,
44
44
  onClose: w
45
45
  }
46
46
  )
47
47
  ] });
48
48
  };
49
- Object.defineProperty(x, "componentType", {
49
+ Object.defineProperty(k, "componentType", {
50
50
  value: "Drawer",
51
51
  writable: !1,
52
52
  enumerable: !1
53
53
  });
54
- const F = ({ children: o, className: e }) => /* @__PURE__ */ r(
54
+ const F = ({ children: o, className: e }) => /* @__PURE__ */ a(
55
55
  u,
56
56
  {
57
57
  includeModalClass: !1,
58
- className: l("gi-drawer-body", e),
58
+ className: l(
59
+ "gi-px-6 gi-pt-1 gi-flex-1 gi-border-t-xs gi-border-gray-100 gi-overflow-y-auto",
60
+ e
61
+ ),
59
62
  children: o
60
63
  }
61
64
  );
@@ -67,16 +70,16 @@ Object.defineProperty(F, "componentType", {
67
70
  const M = ({
68
71
  children: o,
69
72
  className: e,
70
- stacked: a
71
- }) => /* @__PURE__ */ r(h, { stacked: a, className: l("gi-drawer-footer", e), children: o });
73
+ stacked: r
74
+ }) => /* @__PURE__ */ a(j, { stacked: r, className: l("gi-drawer-footer", e), children: o });
72
75
  Object.defineProperty(M, "componentType", {
73
76
  value: "DrawerFooter",
74
77
  writable: !1,
75
78
  enumerable: !1
76
79
  });
77
80
  export {
78
- x as Drawer,
81
+ k as Drawer,
79
82
  F as DrawerBody,
80
83
  M as DrawerFooter,
81
- v as DrawerWrapper
84
+ h as DrawerWrapper
82
85
  };