@ogcio/design-system-react 1.30.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.
- package/dist/atoms/DsButton.js +3 -2
- package/dist/atoms/InsetText.d.ts +14 -0
- package/dist/atoms/InsetText.js +17 -0
- package/dist/atoms/icons/Close.js +9 -8
- package/dist/atoms/icons/KeyboardArrowDown.js +6 -5
- package/dist/atoms/icons/KeyboardArrowUp.js +6 -5
- package/dist/atoms/icons/Visibility.js +15 -14
- package/dist/atoms/icons/VisibilityOff.js +9 -8
- package/dist/atoms/icons/logos/LogoBlack.d.ts +3 -0
- package/dist/atoms/icons/logos/LogoBlack.js +327 -0
- package/dist/atoms/icons/logos/LogoGoldGreen.d.ts +3 -0
- package/dist/atoms/icons/logos/LogoGoldGreen.js +327 -0
- package/dist/atoms/icons/logos/LogoGoldWhite.d.ts +3 -0
- package/dist/atoms/icons/logos/LogoGoldWhite.js +87 -0
- package/dist/atoms/icons/logos/LogoHarpBlack.d.ts +3 -0
- package/dist/atoms/icons/logos/LogoHarpBlack.js +68 -0
- package/dist/atoms/icons/logos/LogoHarpWhite.d.ts +3 -0
- package/dist/{assets/logos/LogoHarpBlack.js → atoms/icons/logos/LogoHarpWhite.js} +33 -31
- package/dist/atoms/icons/logos/LogoWhite.d.ts +3 -0
- package/dist/atoms/icons/logos/LogoWhite.js +327 -0
- package/dist/atoms/icons/logos/index.d.ts +6 -0
- package/dist/atoms/icons/logos/index.js +14 -0
- package/dist/atoms/icons/types.d.ts +5 -5
- package/dist/atoms/index.d.ts +1 -0
- package/dist/atoms/index.js +12 -10
- package/dist/blockquote/blockquote.d.ts +4 -1
- package/dist/blockquote/blockquote.js +18 -4
- package/dist/breadcrumbs/breadcrumbs.js +54 -33
- package/dist/button-group/button-group.js +31 -28
- package/dist/character-count/character-count.js +5 -5
- package/dist/chip/chip.js +41 -19
- package/dist/combo-box/combo-box.js +6 -13
- package/dist/cookie-banner/cookie-banner.js +28 -20
- package/dist/details/details.js +43 -23
- package/dist/drawer/drawer.js +35 -32
- package/dist/footer/footer.js +54 -46
- package/dist/header/header-legacy.js +8 -8
- package/dist/hooks/use-aria-hider.d.ts +1 -1
- package/dist/hooks/use-aria-hider.js +14 -13
- package/dist/hooks/use-focus-trap.d.ts +1 -1
- package/dist/hooks/use-focus-trap.js +179 -179
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +144 -142
- package/dist/input-file/input-file.js +15 -12
- package/dist/logos/index.d.ts +1 -0
- package/dist/logos/index.js +14 -0
- package/dist/modal/modal.js +125 -128
- package/dist/popover/popover.js +67 -64
- package/dist/score-select/score-select.js +20 -20
- package/dist/select/select-next.js +45 -45
- package/dist/styles.css +1 -1
- package/dist/table/table-row.js +14 -7
- package/dist/tabs/tab-panel.js +6 -6
- package/dist/tabs/tabs.js +19 -19
- package/package.json +10 -10
- package/dist/assets/logos/LogoBlack.d.ts +0 -3
- package/dist/assets/logos/LogoBlack.js +0 -322
- package/dist/assets/logos/LogoGoldGreen.d.ts +0 -3
- package/dist/assets/logos/LogoGoldGreen.js +0 -322
- package/dist/assets/logos/LogoGoldWhite.d.ts +0 -3
- package/dist/assets/logos/LogoGoldWhite.js +0 -82
- package/dist/assets/logos/LogoHarpBlack.d.ts +0 -3
- package/dist/assets/logos/LogoHarpWhite.d.ts +0 -3
- package/dist/assets/logos/LogoHarpWhite.js +0 -60
- package/dist/assets/logos/LogoWhite.d.ts +0 -3
- package/dist/assets/logos/LogoWhite.js +0 -322
- package/dist/assets/logos/index.d.ts +0 -6
- package/dist/assets/logos/index.js +0 -14
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { createContext as G, useState as V, useEffect as k, useContext as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { useDomId as
|
|
7
|
-
const
|
|
2
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as G, useState as V, useEffect as k, useContext as w } from "react";
|
|
4
|
+
import { Button as S } from "../button/button.js";
|
|
5
|
+
import { cn as g } from "../cn.js";
|
|
6
|
+
import { useDomId as j } from "../hooks/use-dom-id.js";
|
|
7
|
+
const I = G(
|
|
8
8
|
void 0
|
|
9
|
-
),
|
|
9
|
+
), D = ({
|
|
10
10
|
value: r,
|
|
11
|
-
children:
|
|
12
|
-
role:
|
|
11
|
+
children: s,
|
|
12
|
+
role: d,
|
|
13
13
|
"aria-checked": e,
|
|
14
14
|
"aria-label": a,
|
|
15
15
|
...t
|
|
16
16
|
}) => {
|
|
17
|
-
const c =
|
|
17
|
+
const c = w(I);
|
|
18
18
|
if (!c)
|
|
19
19
|
throw new Error("ButtonGroupItem must be used within a ButtonGroup");
|
|
20
20
|
const {
|
|
@@ -27,26 +27,26 @@ const x = G(
|
|
|
27
27
|
} = c, i = n === r, b = () => {
|
|
28
28
|
l(r), o == null || o(r);
|
|
29
29
|
}, f = `${m}-${r}`;
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
30
|
+
return /* @__PURE__ */ x(
|
|
31
|
+
S,
|
|
32
32
|
{
|
|
33
33
|
variant: i ? "primary" : "secondary",
|
|
34
34
|
size: u,
|
|
35
35
|
appearance: p,
|
|
36
36
|
onClick: b,
|
|
37
37
|
id: f,
|
|
38
|
-
role:
|
|
38
|
+
role: d || "radio",
|
|
39
39
|
"aria-checked": e === void 0 ? i : e,
|
|
40
40
|
"aria-label": a,
|
|
41
41
|
type: "button",
|
|
42
42
|
...t,
|
|
43
|
-
children:
|
|
43
|
+
children: s
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
|
-
},
|
|
46
|
+
}, N = ({
|
|
47
47
|
name: r,
|
|
48
|
-
size:
|
|
49
|
-
appearance:
|
|
48
|
+
size: s = "medium",
|
|
49
|
+
appearance: d = "dark",
|
|
50
50
|
onChange: e,
|
|
51
51
|
defaultValue: a,
|
|
52
52
|
value: t,
|
|
@@ -63,26 +63,29 @@ const x = G(
|
|
|
63
63
|
k(() => {
|
|
64
64
|
t !== void 0 && i(t);
|
|
65
65
|
}, [t]);
|
|
66
|
-
const f = (
|
|
67
|
-
t === void 0 && i(
|
|
68
|
-
}, B =
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
|
|
66
|
+
const f = (y) => {
|
|
67
|
+
t === void 0 && i(y), e == null || e(y);
|
|
68
|
+
}, B = j();
|
|
69
|
+
return /* @__PURE__ */ x(
|
|
70
|
+
I.Provider,
|
|
71
71
|
{
|
|
72
72
|
value: {
|
|
73
73
|
selectedValue: b,
|
|
74
74
|
setSelectedValue: f,
|
|
75
75
|
name: r,
|
|
76
|
-
size:
|
|
76
|
+
size: s,
|
|
77
77
|
onChange: e,
|
|
78
78
|
groupId: B,
|
|
79
|
-
appearance:
|
|
79
|
+
appearance: d,
|
|
80
80
|
...m
|
|
81
81
|
},
|
|
82
|
-
children: /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ x(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
|
-
className:
|
|
85
|
+
className: g(
|
|
86
|
+
"gi-flex gi-flex-wrap gi-gap-3 [&_button]:gi-min-w-12 [&_button]:gi-justify-center",
|
|
87
|
+
o
|
|
88
|
+
),
|
|
86
89
|
role: n || "radiogroup",
|
|
87
90
|
"aria-labelledby": l,
|
|
88
91
|
"aria-describedby": u,
|
|
@@ -93,6 +96,6 @@ const x = G(
|
|
|
93
96
|
);
|
|
94
97
|
};
|
|
95
98
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
N as ButtonGroup,
|
|
100
|
+
D as ButtonGroupItem
|
|
98
101
|
};
|
|
@@ -4,15 +4,15 @@ import { HintText as n } from "../hint-text/hint-text.js";
|
|
|
4
4
|
import { translate as i } from "../i18n/utility.js";
|
|
5
5
|
const m = ({
|
|
6
6
|
maxChars: e,
|
|
7
|
-
value:
|
|
7
|
+
value: t
|
|
8
8
|
}) => {
|
|
9
|
-
const
|
|
10
|
-
return /* @__PURE__ */ a("div", { className: "gi-
|
|
9
|
+
const r = Math.max(0, e - ((t == null ? void 0 : t.length) ?? 0));
|
|
10
|
+
return /* @__PURE__ */ a("div", { className: "gi-mt-2", children: /* @__PURE__ */ a(
|
|
11
11
|
n,
|
|
12
12
|
{
|
|
13
13
|
text: i("textarea.remainingChars", {
|
|
14
|
-
remainingChars:
|
|
15
|
-
defaultValue: `You have ${
|
|
14
|
+
remainingChars: r,
|
|
15
|
+
defaultValue: `You have ${r} characters remaining`
|
|
16
16
|
})
|
|
17
17
|
}
|
|
18
18
|
) });
|
package/dist/chip/chip.js
CHANGED
|
@@ -1,37 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { useId as l } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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__ */
|
|
12
|
+
return /* @__PURE__ */ a(
|
|
12
13
|
"div",
|
|
13
14
|
{
|
|
14
|
-
className:
|
|
15
|
-
"aria-label":
|
|
16
|
-
"aria-describedby":
|
|
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:
|
|
19
|
+
onKeyDown: n,
|
|
19
20
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ o("span", { id: s, children: i }),
|
|
22
|
+
/* @__PURE__ */ o(
|
|
22
23
|
"div",
|
|
23
24
|
{
|
|
24
25
|
role: "button",
|
|
25
|
-
"aria-label":
|
|
26
|
-
onClick:
|
|
27
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
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
|
-
|
|
58
|
+
d as Chip
|
|
37
59
|
};
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
const
|
|
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:
|
|
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
|
-
|
|
9
|
+
x as Combobox
|
|
17
10
|
};
|
|
@@ -1,31 +1,39 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Container as
|
|
4
|
-
const
|
|
5
|
-
showConsent:
|
|
6
|
-
children:
|
|
7
|
-
accept:
|
|
8
|
-
reject:
|
|
9
|
-
cookieLink:
|
|
10
|
-
dataTestid:
|
|
11
|
-
}) => /* @__PURE__ */
|
|
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-
|
|
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":
|
|
19
|
-
children: /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
38
|
+
b as CookieBanner
|
|
31
39
|
};
|
package/dist/details/details.js
CHANGED
|
@@ -1,55 +1,75 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
9
|
-
((
|
|
10
|
-
}, []), /* @__PURE__ */
|
|
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:
|
|
14
|
+
ref: s,
|
|
14
15
|
onToggle: () => {
|
|
15
|
-
var
|
|
16
|
-
|
|
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-
|
|
20
|
+
className: "gi-block gi-text-md gi-text-gray-950",
|
|
20
21
|
"data-module": "gi-details",
|
|
21
|
-
name:
|
|
22
|
+
name: l,
|
|
22
23
|
"aria-expanded": e ? "true" : "false",
|
|
23
24
|
"aria-details": "details-content",
|
|
24
25
|
...c,
|
|
25
26
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ t(
|
|
27
28
|
"summary",
|
|
28
29
|
{
|
|
29
|
-
className:
|
|
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__ */
|
|
36
|
-
/* @__PURE__ */
|
|
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__ */
|
|
41
|
+
/* @__PURE__ */ o(
|
|
41
42
|
"div",
|
|
42
43
|
{
|
|
43
44
|
id: "details-content",
|
|
44
|
-
className: "gi-
|
|
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:
|
|
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
|
-
|
|
74
|
+
w as Details
|
|
55
75
|
};
|
package/dist/drawer/drawer.js
CHANGED
|
@@ -1,61 +1,64 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as
|
|
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
|
|
6
|
-
const
|
|
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
|
-
...
|
|
10
|
-
}) => /* @__PURE__ */
|
|
11
|
-
|
|
9
|
+
...r
|
|
10
|
+
}) => /* @__PURE__ */ a(
|
|
11
|
+
v,
|
|
12
12
|
{
|
|
13
|
-
className: l("gi-
|
|
13
|
+
className: l("gi-flex gi-flex-col", e),
|
|
14
14
|
closeButtonSize: "large",
|
|
15
|
-
...
|
|
15
|
+
...r,
|
|
16
16
|
children: o
|
|
17
17
|
}
|
|
18
|
-
),
|
|
18
|
+
), k = ({
|
|
19
19
|
children: o,
|
|
20
20
|
triggerButton: e,
|
|
21
|
-
startsOpen:
|
|
22
|
-
closeButtonLabel:
|
|
23
|
-
position:
|
|
24
|
-
className:
|
|
21
|
+
startsOpen: r,
|
|
22
|
+
closeButtonLabel: p,
|
|
23
|
+
position: t = "right",
|
|
24
|
+
className: f
|
|
25
25
|
}) => {
|
|
26
|
-
const [
|
|
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,
|
|
30
|
-
const
|
|
31
|
-
|
|
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
|
|
34
|
+
return /* @__PURE__ */ x(C, { children: [
|
|
35
35
|
b,
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
/* @__PURE__ */ a(
|
|
37
|
+
h,
|
|
38
38
|
{
|
|
39
39
|
children: o,
|
|
40
|
-
closeButtonLabel:
|
|
41
|
-
position:
|
|
42
|
-
className:
|
|
43
|
-
isOpen:
|
|
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(
|
|
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__ */
|
|
54
|
+
const F = ({ children: o, className: e }) => /* @__PURE__ */ a(
|
|
55
55
|
u,
|
|
56
56
|
{
|
|
57
57
|
includeModalClass: !1,
|
|
58
|
-
className: l(
|
|
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:
|
|
71
|
-
}) => /* @__PURE__ */
|
|
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
|
-
|
|
81
|
+
k as Drawer,
|
|
79
82
|
F as DrawerBody,
|
|
80
83
|
M as DrawerFooter,
|
|
81
|
-
|
|
84
|
+
h as DrawerWrapper
|
|
82
85
|
};
|