@ogcio/design-system-react 1.15.3 → 1.16.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/assets/logos/gov-of-ireland/harp-black.d.ts +2 -0
- package/dist/assets/logos/gov-of-ireland/harp-black.js +322 -0
- package/dist/assets/logos/harp/harp-black.d.ts +2 -0
- package/dist/assets/logos/harp/harp-black.js +63 -0
- package/dist/autocomplete/autocomplete.js +1 -0
- package/dist/button/button.js +1 -1
- package/dist/drawer/drawer.content.js +29 -43
- package/dist/drawer/drawer.d.ts +2 -1
- package/dist/drawer/drawer.js +11 -7
- package/dist/file-upload/file-upload.d.ts +3 -1
- package/dist/forms/form-field/form-field.d.ts +1 -1
- package/dist/forms/form-field/form-field.js +29 -19
- package/dist/header/components/header-menu.js +53 -47
- package/dist/header/components/header-slot.d.ts +5 -3
- package/dist/header/components/header-slot.js +58 -47
- package/dist/header/header.d.ts +1 -1
- package/dist/header/header.js +128 -106
- package/dist/header/types.d.ts +2 -0
- package/dist/header/variants.d.ts +160 -0
- package/dist/header/variants.js +88 -0
- package/dist/input-file/input-file.d.ts +3 -2
- package/dist/input-file/input-file.js +13 -12
- package/dist/input-file/types.d.ts +3 -1
- package/dist/input-text/input-text.d.ts +2 -0
- package/dist/input-text/input-text.js +56 -55
- package/dist/input-text/type.d.ts +1 -0
- package/dist/modal/modal.d.ts +2 -2
- package/dist/modal/modal.js +185 -149
- package/dist/modal/types.d.ts +5 -0
- package/dist/phase-banner/phase-banner.d.ts +4 -2
- package/dist/phase-banner/phase-banner.js +30 -7
- package/dist/select/select-next.js +42 -40
- package/dist/styles.css +1 -1
- package/dist/table/table-pagination.js +63 -46
- package/dist/table/table.js +18 -18
- package/dist/text-input/text-input.d.ts +1 -0
- package/dist/textarea/textarea.js +52 -49
- package/package.json +4 -3
package/dist/header/header.js
CHANGED
|
@@ -1,26 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect as
|
|
4
|
-
import { renderToStaticMarkup as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import h from "../
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
import { useEffect as H, useMemo as T, createElement as I } from "react";
|
|
4
|
+
import { renderToStaticMarkup as v } from "react-dom/server";
|
|
5
|
+
import x from "../assets/logos/gov-of-ireland/harp-black.js";
|
|
6
|
+
import D from "../assets/logos/gov-of-ireland/harp-white.js";
|
|
7
|
+
import L from "../assets/logos/harp/harp-black.js";
|
|
8
|
+
import C from "../assets/logos/harp/harp-white.js";
|
|
9
|
+
import { cn as k } from "../cn.js";
|
|
10
|
+
import { Container as p } from "../container/container.js";
|
|
11
|
+
import { translate as h } from "../i18n/utility.js";
|
|
12
|
+
import { Icon as A } from "../icon/icon.js";
|
|
13
|
+
import u from "../primitives/anchor.js";
|
|
14
|
+
import { MobileHeaderMenuItems as j } from "./components/header-menu.js";
|
|
15
|
+
import { SlotContainer as E, SlotItemAction as G } from "./components/header-slot.js";
|
|
16
|
+
import { attachEventsToItemActionTriggers as B } from "./helper.js";
|
|
17
|
+
import { headerVariants as F, headerMenuVariants as O, headerLogoVariants as P, headerTitleVariants as U, headerSecondaryLinksVariants as W, headerDividerVariants as q, headerToolItemVariants as y, headerSecondaryLinkItemVariants as z, headerSecondaryLinkSlotItemVariants as J } from "./variants.js";
|
|
18
|
+
function S({ logo: r, appearance: n = "default" }) {
|
|
19
|
+
const t = {
|
|
20
|
+
harp: {
|
|
21
|
+
default: /* @__PURE__ */ e(C, {}),
|
|
22
|
+
light: /* @__PURE__ */ e(L, {})
|
|
23
|
+
},
|
|
24
|
+
withText: {
|
|
25
|
+
default: /* @__PURE__ */ e(D, {}),
|
|
26
|
+
light: /* @__PURE__ */ e(x, {})
|
|
27
|
+
}
|
|
28
|
+
}, o = `data:image/svg+xml;base64,${btoa(v(t.harp[n]))}`, b = `data:image/svg+xml;base64,${btoa(
|
|
29
|
+
v(t.withText[n])
|
|
18
30
|
)}`;
|
|
19
31
|
return /* @__PURE__ */ c("picture", { children: [
|
|
20
32
|
/* @__PURE__ */ e(
|
|
21
33
|
"source",
|
|
22
34
|
{
|
|
23
|
-
srcSet: (
|
|
35
|
+
srcSet: (r == null ? void 0 : r.imageLarge) || b,
|
|
24
36
|
media: "(min-width: 640px)"
|
|
25
37
|
}
|
|
26
38
|
),
|
|
@@ -28,165 +40,175 @@ function N({ logo: a }) {
|
|
|
28
40
|
"img",
|
|
29
41
|
{
|
|
30
42
|
className: "gi-h-10 sm:gi-h-14",
|
|
31
|
-
src: (
|
|
32
|
-
alt: (
|
|
43
|
+
src: (r == null ? void 0 : r.imageSmall) || o,
|
|
44
|
+
alt: (r == null ? void 0 : r.alt) || h("logo.govieLogo", { defaultValue: "Gov.ie logo" })
|
|
33
45
|
}
|
|
34
46
|
)
|
|
35
47
|
] });
|
|
36
48
|
}
|
|
37
|
-
const
|
|
38
|
-
label:
|
|
49
|
+
const K = (r, n, t) => [{
|
|
50
|
+
label: r,
|
|
39
51
|
icon: "menu",
|
|
40
52
|
itemType: "slot",
|
|
41
|
-
component: /* @__PURE__ */ e(
|
|
53
|
+
component: /* @__PURE__ */ e(j, { items: n, secondaryLinks: t }),
|
|
42
54
|
slotAppearance: "drawer",
|
|
43
55
|
showItemMode: "mobile-only"
|
|
44
|
-
}, ...
|
|
45
|
-
href:
|
|
46
|
-
label:
|
|
56
|
+
}, ...n], Q = ({
|
|
57
|
+
href: r,
|
|
58
|
+
label: n,
|
|
47
59
|
slot: t,
|
|
48
|
-
index:
|
|
49
|
-
|
|
50
|
-
|
|
60
|
+
index: l,
|
|
61
|
+
appearance: o = "default"
|
|
62
|
+
}) => /* @__PURE__ */ e("li", { children: r ? /* @__PURE__ */ e(
|
|
63
|
+
u,
|
|
64
|
+
{
|
|
65
|
+
"aria-label": n,
|
|
66
|
+
"data-testid": `secondary-link-desktop-${l}`,
|
|
67
|
+
href: r,
|
|
68
|
+
className: z({ appearance: o }),
|
|
69
|
+
children: n
|
|
70
|
+
}
|
|
71
|
+
) : /* @__PURE__ */ e(
|
|
72
|
+
"div",
|
|
51
73
|
{
|
|
52
|
-
|
|
53
|
-
"data-
|
|
54
|
-
|
|
55
|
-
className: "gi-header-secondary-item",
|
|
56
|
-
children: i
|
|
74
|
+
className: J({ appearance: o }),
|
|
75
|
+
"data-appearance": o,
|
|
76
|
+
children: t
|
|
57
77
|
}
|
|
58
|
-
)
|
|
59
|
-
|
|
78
|
+
) }), R = ({ links: r, appearance: n }) => /* @__PURE__ */ e("ul", { children: r == null ? void 0 : r.map((t, l) => /* @__PURE__ */ I(
|
|
79
|
+
Q,
|
|
60
80
|
{
|
|
61
|
-
...
|
|
62
|
-
index:
|
|
63
|
-
key: `secondary-${
|
|
81
|
+
...t,
|
|
82
|
+
index: l,
|
|
83
|
+
key: `secondary-${t.label}-${l}`,
|
|
84
|
+
appearance: n
|
|
64
85
|
}
|
|
65
86
|
)) });
|
|
66
|
-
function
|
|
67
|
-
title:
|
|
68
|
-
items:
|
|
87
|
+
function ue({
|
|
88
|
+
title: r,
|
|
89
|
+
items: n,
|
|
69
90
|
logo: t,
|
|
70
|
-
secondaryLinks:
|
|
71
|
-
fullWidth:
|
|
72
|
-
addDefaultMobileMenu:
|
|
73
|
-
mobileMenuLabel:
|
|
74
|
-
showMenuLabel:
|
|
75
|
-
showTitleOnMobile:
|
|
76
|
-
dataTestid:
|
|
91
|
+
secondaryLinks: l,
|
|
92
|
+
fullWidth: o = !1,
|
|
93
|
+
addDefaultMobileMenu: f,
|
|
94
|
+
mobileMenuLabel: b,
|
|
95
|
+
showMenuLabel: N = !0,
|
|
96
|
+
showTitleOnMobile: M,
|
|
97
|
+
dataTestid: V,
|
|
98
|
+
appearance: i = "default"
|
|
77
99
|
}) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
P();
|
|
100
|
+
H(() => {
|
|
101
|
+
B();
|
|
81
102
|
}, []);
|
|
82
|
-
const
|
|
83
|
-
item:
|
|
84
|
-
index:
|
|
103
|
+
const $ = ({
|
|
104
|
+
item: a,
|
|
105
|
+
index: s
|
|
85
106
|
}) => {
|
|
86
|
-
switch (
|
|
107
|
+
switch (a.itemType) {
|
|
87
108
|
case "slot":
|
|
88
|
-
return /* @__PURE__ */ e(
|
|
109
|
+
return /* @__PURE__ */ e(G, { index: s, item: a, appearance: i });
|
|
89
110
|
case "link":
|
|
90
111
|
return /* @__PURE__ */ c(
|
|
91
|
-
|
|
112
|
+
u,
|
|
92
113
|
{
|
|
93
|
-
className:
|
|
94
|
-
href:
|
|
95
|
-
onClick:
|
|
96
|
-
"aria-label":
|
|
97
|
-
"data-testid": `item-link-${
|
|
98
|
-
external:
|
|
114
|
+
className: y({ appearance: i }),
|
|
115
|
+
href: a.href,
|
|
116
|
+
onClick: a.onClick,
|
|
117
|
+
"aria-label": a.label || `link ${s}`,
|
|
118
|
+
"data-testid": `item-link-${s}`,
|
|
119
|
+
external: a.external,
|
|
99
120
|
children: [
|
|
100
|
-
|
|
101
|
-
|
|
121
|
+
a.label && a.label,
|
|
122
|
+
a.icon && /* @__PURE__ */ e(A, { icon: a.icon })
|
|
102
123
|
]
|
|
103
124
|
}
|
|
104
125
|
);
|
|
105
126
|
case "custom-link":
|
|
106
|
-
return /* @__PURE__ */ e(
|
|
127
|
+
return /* @__PURE__ */ e(u, { asChild: !0, className: y({ appearance: i }), children: a.component });
|
|
107
128
|
default:
|
|
108
|
-
return /* @__PURE__ */ e("div", { className:
|
|
129
|
+
return /* @__PURE__ */ e("div", { className: q({ appearance: i }) });
|
|
109
130
|
}
|
|
110
|
-
},
|
|
111
|
-
const
|
|
112
|
-
return
|
|
113
|
-
}, [
|
|
131
|
+
}, w = N ? b || h("header.menu", { defaultValue: "Menu" }) : "", d = T(() => {
|
|
132
|
+
const a = n || [];
|
|
133
|
+
return f ? K(w, a, l || []) : a;
|
|
134
|
+
}, [f]);
|
|
114
135
|
return /* @__PURE__ */ c(
|
|
115
136
|
"header",
|
|
116
137
|
{
|
|
117
138
|
id: "GovieHeader",
|
|
118
|
-
"aria-label":
|
|
119
|
-
className:
|
|
120
|
-
"data-testid":
|
|
139
|
+
"aria-label": h("header.siteHeader", { defaultValue: "Site Header" }),
|
|
140
|
+
className: F({ appearance: i }),
|
|
141
|
+
"data-testid": V,
|
|
121
142
|
children: [
|
|
122
143
|
/* @__PURE__ */ e(
|
|
123
|
-
|
|
144
|
+
p,
|
|
124
145
|
{
|
|
125
146
|
id: "HeaderContainer",
|
|
126
147
|
className: "gi-order-2",
|
|
127
|
-
fullWidth:
|
|
128
|
-
children: /* @__PURE__ */ c("div", { className:
|
|
129
|
-
/* @__PURE__ */ c("div", { className:
|
|
148
|
+
fullWidth: o,
|
|
149
|
+
children: /* @__PURE__ */ c("div", { className: O({ appearance: i }), children: [
|
|
150
|
+
/* @__PURE__ */ c("div", { className: P({ appearance: i }), children: [
|
|
130
151
|
(t == null ? void 0 : t.href) && /* @__PURE__ */ e(
|
|
131
|
-
|
|
152
|
+
u,
|
|
132
153
|
{
|
|
133
154
|
href: t.href,
|
|
134
|
-
"aria-label":
|
|
155
|
+
"aria-label": h("header.goToHomePage", {
|
|
135
156
|
defaultValue: "Go to Home Page"
|
|
136
157
|
}),
|
|
137
158
|
"data-testid": "logo-link",
|
|
138
159
|
external: t.external,
|
|
139
|
-
children:
|
|
160
|
+
children: S({ logo: t, appearance: i })
|
|
140
161
|
}
|
|
141
162
|
),
|
|
142
|
-
!(t != null && t.href) &&
|
|
163
|
+
!(t != null && t.href) && S({ logo: t, appearance: i })
|
|
143
164
|
] }),
|
|
144
165
|
/* @__PURE__ */ e(
|
|
145
166
|
"div",
|
|
146
167
|
{
|
|
147
|
-
className:
|
|
148
|
-
"gi-hidden": !
|
|
168
|
+
className: k(U({ appearance: i }), {
|
|
169
|
+
"gi-hidden": !M
|
|
149
170
|
}),
|
|
150
|
-
children:
|
|
171
|
+
children: r
|
|
151
172
|
}
|
|
152
173
|
),
|
|
153
|
-
/* @__PURE__ */ e("div", { className: "gi-flex gi-items-center gi-gap-2 md:gi-gap-4 gi-flex-none", children:
|
|
154
|
-
const { label:
|
|
174
|
+
/* @__PURE__ */ e("div", { className: "gi-flex gi-items-center gi-gap-2 md:gi-gap-4 gi-flex-none", children: d == null ? void 0 : d.map((a, s) => {
|
|
175
|
+
const { label: g, showItemMode: m = "desktop-only" } = a;
|
|
155
176
|
return /* @__PURE__ */ e(
|
|
156
177
|
"div",
|
|
157
178
|
{
|
|
158
|
-
"aria-label":
|
|
159
|
-
"data-testid": `header-item-${
|
|
160
|
-
className:
|
|
161
|
-
"gi-block":
|
|
162
|
-
"gi-block lg:gi-hidden":
|
|
163
|
-
"gi-hidden lg:gi-block":
|
|
179
|
+
"aria-label": a.ariaLabel,
|
|
180
|
+
"data-testid": `header-item-${s}`,
|
|
181
|
+
className: k({
|
|
182
|
+
"gi-block": m === "always",
|
|
183
|
+
"gi-block lg:gi-hidden": m === "mobile-only",
|
|
184
|
+
"gi-hidden lg:gi-block": m === "desktop-only"
|
|
164
185
|
}),
|
|
165
|
-
children: /* @__PURE__ */ e(
|
|
186
|
+
children: /* @__PURE__ */ e($, { item: a, index: s })
|
|
166
187
|
},
|
|
167
|
-
`item-${
|
|
188
|
+
`item-${g}-${s}`
|
|
168
189
|
);
|
|
169
190
|
}) })
|
|
170
191
|
] })
|
|
171
192
|
}
|
|
172
193
|
),
|
|
173
|
-
|
|
174
|
-
|
|
194
|
+
l && /* @__PURE__ */ e("div", { className: W({ appearance: i }), children: /* @__PURE__ */ e(
|
|
195
|
+
p,
|
|
175
196
|
{
|
|
176
197
|
className: "gi-flex gi-justify-end gi-items-center",
|
|
177
|
-
fullWidth:
|
|
178
|
-
children:
|
|
198
|
+
fullWidth: o,
|
|
199
|
+
children: l && /* @__PURE__ */ e(R, { links: l, appearance: i })
|
|
179
200
|
}
|
|
180
201
|
) }),
|
|
181
|
-
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
184
|
-
|
|
202
|
+
d == null ? void 0 : d.map(({ itemType: a, component: s, slotAppearance: g }, m) => {
|
|
203
|
+
if (a === "slot")
|
|
204
|
+
return s && g !== "drawer" ? /* @__PURE__ */ e(
|
|
205
|
+
E,
|
|
185
206
|
{
|
|
186
|
-
slot:
|
|
187
|
-
index:
|
|
207
|
+
slot: s,
|
|
208
|
+
index: m,
|
|
209
|
+
appearance: i
|
|
188
210
|
},
|
|
189
|
-
`slot-container-${
|
|
211
|
+
`slot-container-${m}`
|
|
190
212
|
) : null;
|
|
191
213
|
})
|
|
192
214
|
]
|
|
@@ -194,5 +216,5 @@ function ie({
|
|
|
194
216
|
);
|
|
195
217
|
}
|
|
196
218
|
export {
|
|
197
|
-
|
|
219
|
+
ue as Header
|
|
198
220
|
};
|
package/dist/header/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { IconId } from '../icon/icon.js';
|
|
|
4
4
|
export type HeaderItemMode = 'always' | 'mobile-only' | 'desktop-only';
|
|
5
5
|
export type HeaderItemAppearance = 'dropdown' | 'drawer';
|
|
6
6
|
export type HeaderItemType = 'slot' | 'divider' | 'link' | 'custom-link';
|
|
7
|
+
export type HeaderAppearance = 'default' | 'light';
|
|
7
8
|
type CommonProps = {
|
|
8
9
|
showItemMode?: HeaderItemMode;
|
|
9
10
|
};
|
|
@@ -73,5 +74,6 @@ export type HeaderProps = {
|
|
|
73
74
|
fullWidth?: boolean;
|
|
74
75
|
showTitleOnMobile?: boolean;
|
|
75
76
|
dataTestid?: string;
|
|
77
|
+
appearance?: HeaderAppearance;
|
|
76
78
|
};
|
|
77
79
|
export {};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export declare const headerVariants: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
appearance: {
|
|
3
|
+
default: string;
|
|
4
|
+
light: string;
|
|
5
|
+
};
|
|
6
|
+
}, undefined, "gi-header", TVConfig<V, EV>, {
|
|
7
|
+
appearance: {
|
|
8
|
+
default: string;
|
|
9
|
+
light: string;
|
|
10
|
+
};
|
|
11
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
12
|
+
appearance: {
|
|
13
|
+
default: string;
|
|
14
|
+
light: string;
|
|
15
|
+
};
|
|
16
|
+
}, undefined, "gi-header", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
17
|
+
export declare const headerMenuVariants: import('tailwind-variants').TVReturnType<{
|
|
18
|
+
appearance: {
|
|
19
|
+
default: string;
|
|
20
|
+
light: string;
|
|
21
|
+
};
|
|
22
|
+
}, undefined, "gi-header-menu", TVConfig<V, EV>, {
|
|
23
|
+
appearance: {
|
|
24
|
+
default: string;
|
|
25
|
+
light: string;
|
|
26
|
+
};
|
|
27
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
28
|
+
appearance: {
|
|
29
|
+
default: string;
|
|
30
|
+
light: string;
|
|
31
|
+
};
|
|
32
|
+
}, undefined, "gi-header-menu", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
33
|
+
export declare const headerToolItemVariants: import('tailwind-variants').TVReturnType<{
|
|
34
|
+
appearance: {
|
|
35
|
+
default: string;
|
|
36
|
+
light: string;
|
|
37
|
+
};
|
|
38
|
+
}, undefined, "gi-header-tool-item ", TVConfig<V, EV>, {
|
|
39
|
+
appearance: {
|
|
40
|
+
default: string;
|
|
41
|
+
light: string;
|
|
42
|
+
};
|
|
43
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
44
|
+
appearance: {
|
|
45
|
+
default: string;
|
|
46
|
+
light: string;
|
|
47
|
+
};
|
|
48
|
+
}, undefined, "gi-header-tool-item ", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
49
|
+
export declare const headerSecondaryLinksVariants: import('tailwind-variants').TVReturnType<{
|
|
50
|
+
appearance: {
|
|
51
|
+
default: string;
|
|
52
|
+
light: string;
|
|
53
|
+
};
|
|
54
|
+
}, undefined, "gi-header-secondary-bar gi-order-1", TVConfig<V, EV>, {
|
|
55
|
+
appearance: {
|
|
56
|
+
default: string;
|
|
57
|
+
light: string;
|
|
58
|
+
};
|
|
59
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
60
|
+
appearance: {
|
|
61
|
+
default: string;
|
|
62
|
+
light: string;
|
|
63
|
+
};
|
|
64
|
+
}, undefined, "gi-header-secondary-bar gi-order-1", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
65
|
+
export declare const headerSecondaryLinkItemVariants: import('tailwind-variants').TVReturnType<{
|
|
66
|
+
appearance: {
|
|
67
|
+
default: string;
|
|
68
|
+
light: string;
|
|
69
|
+
};
|
|
70
|
+
}, undefined, "gi-header-secondary-item", TVConfig<V, EV>, {
|
|
71
|
+
appearance: {
|
|
72
|
+
default: string;
|
|
73
|
+
light: string;
|
|
74
|
+
};
|
|
75
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
76
|
+
appearance: {
|
|
77
|
+
default: string;
|
|
78
|
+
light: string;
|
|
79
|
+
};
|
|
80
|
+
}, undefined, "gi-header-secondary-item", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
81
|
+
export declare const headerSecondaryLinkSlotItemVariants: import('tailwind-variants').TVReturnType<{
|
|
82
|
+
appearance: {
|
|
83
|
+
default: string;
|
|
84
|
+
light: string;
|
|
85
|
+
};
|
|
86
|
+
}, undefined, "gi-header-secondary-item-slot", TVConfig<V, EV>, {
|
|
87
|
+
appearance: {
|
|
88
|
+
default: string;
|
|
89
|
+
light: string;
|
|
90
|
+
};
|
|
91
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
92
|
+
appearance: {
|
|
93
|
+
default: string;
|
|
94
|
+
light: string;
|
|
95
|
+
};
|
|
96
|
+
}, undefined, "gi-header-secondary-item-slot", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
97
|
+
export declare const headerTitleVariants: import('tailwind-variants').TVReturnType<{
|
|
98
|
+
appearance: {
|
|
99
|
+
default: string;
|
|
100
|
+
light: string;
|
|
101
|
+
};
|
|
102
|
+
}, undefined, "gi-header-title", TVConfig<V, EV>, {
|
|
103
|
+
appearance: {
|
|
104
|
+
default: string;
|
|
105
|
+
light: string;
|
|
106
|
+
};
|
|
107
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
108
|
+
appearance: {
|
|
109
|
+
default: string;
|
|
110
|
+
light: string;
|
|
111
|
+
};
|
|
112
|
+
}, undefined, "gi-header-title", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
113
|
+
export declare const headerDividerVariants: import('tailwind-variants').TVReturnType<{
|
|
114
|
+
appearance: {
|
|
115
|
+
default: string;
|
|
116
|
+
light: string;
|
|
117
|
+
};
|
|
118
|
+
}, undefined, "gi-header-divider", TVConfig<V, EV>, {
|
|
119
|
+
appearance: {
|
|
120
|
+
default: string;
|
|
121
|
+
light: string;
|
|
122
|
+
};
|
|
123
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
124
|
+
appearance: {
|
|
125
|
+
default: string;
|
|
126
|
+
light: string;
|
|
127
|
+
};
|
|
128
|
+
}, undefined, "gi-header-divider", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
129
|
+
export declare const headerSlotContainerVariants: import('tailwind-variants').TVReturnType<{
|
|
130
|
+
appearance: {
|
|
131
|
+
default: string;
|
|
132
|
+
light: string;
|
|
133
|
+
};
|
|
134
|
+
}, undefined, "gi-header-slot-container", TVConfig<V, EV>, {
|
|
135
|
+
appearance: {
|
|
136
|
+
default: string;
|
|
137
|
+
light: string;
|
|
138
|
+
};
|
|
139
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
140
|
+
appearance: {
|
|
141
|
+
default: string;
|
|
142
|
+
light: string;
|
|
143
|
+
};
|
|
144
|
+
}, undefined, "gi-header-slot-container", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
145
|
+
export declare const headerLogoVariants: import('tailwind-variants').TVReturnType<{
|
|
146
|
+
appearance: {
|
|
147
|
+
default: string;
|
|
148
|
+
light: string;
|
|
149
|
+
};
|
|
150
|
+
}, undefined, "gi-header-logo", TVConfig<V, EV>, {
|
|
151
|
+
appearance: {
|
|
152
|
+
default: string;
|
|
153
|
+
light: string;
|
|
154
|
+
};
|
|
155
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
156
|
+
appearance: {
|
|
157
|
+
default: string;
|
|
158
|
+
light: string;
|
|
159
|
+
};
|
|
160
|
+
}, undefined, "gi-header-logo", TVConfig<V, EV>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { c as a } from "../index-CB-zPpNk.js";
|
|
2
|
+
const e = {
|
|
3
|
+
default: "gi-text-white gi-stroke-white",
|
|
4
|
+
light: "gi-text-gray-950"
|
|
5
|
+
}, r = {
|
|
6
|
+
default: "gi-bg-color-surface-system-primary-default",
|
|
7
|
+
light: "gi-bg-white"
|
|
8
|
+
}, i = a({
|
|
9
|
+
base: "gi-header",
|
|
10
|
+
variants: {
|
|
11
|
+
appearance: r
|
|
12
|
+
}
|
|
13
|
+
}), n = a({
|
|
14
|
+
base: "gi-header-menu",
|
|
15
|
+
variants: {
|
|
16
|
+
appearance: r
|
|
17
|
+
}
|
|
18
|
+
}), s = a({
|
|
19
|
+
base: "gi-header-tool-item ",
|
|
20
|
+
variants: {
|
|
21
|
+
appearance: {
|
|
22
|
+
default: `${e.default} gi-header-tool-item-default`,
|
|
23
|
+
light: `${e.light} gi-header-tool-item-light`
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}), d = a({
|
|
27
|
+
base: "gi-header-secondary-bar gi-order-1",
|
|
28
|
+
variants: {
|
|
29
|
+
appearance: {
|
|
30
|
+
default: "gi-bg-color-surface-system-primary-subtle",
|
|
31
|
+
light: "gi-bg-gray-50"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}), o = a({
|
|
35
|
+
base: "gi-header-secondary-item",
|
|
36
|
+
variants: {
|
|
37
|
+
appearance: {
|
|
38
|
+
default: `${e.default} gi-header-secondary-item-default`,
|
|
39
|
+
light: `${e.light} gi-header-secondary-item-light`
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}), g = a({
|
|
43
|
+
base: "gi-header-secondary-item-slot",
|
|
44
|
+
variants: {
|
|
45
|
+
appearance: e
|
|
46
|
+
}
|
|
47
|
+
}), l = a({
|
|
48
|
+
base: "gi-header-title",
|
|
49
|
+
variants: {
|
|
50
|
+
appearance: e
|
|
51
|
+
}
|
|
52
|
+
}), h = a({
|
|
53
|
+
base: "gi-header-divider",
|
|
54
|
+
variants: {
|
|
55
|
+
appearance: {
|
|
56
|
+
default: "gi-border-white",
|
|
57
|
+
light: "gi-border-gray-950"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}), c = a({
|
|
61
|
+
base: "gi-header-slot-container",
|
|
62
|
+
variants: {
|
|
63
|
+
appearance: {
|
|
64
|
+
default: "gi-border-b-color-surface-system-primary-default gi-bg-gray-50",
|
|
65
|
+
light: "gi-border-gray-950"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}), p = a({
|
|
69
|
+
base: "gi-header-logo",
|
|
70
|
+
variants: {
|
|
71
|
+
appearance: {
|
|
72
|
+
default: "gi-header-logo-default",
|
|
73
|
+
light: "gi-header-logo-light"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
h as headerDividerVariants,
|
|
79
|
+
p as headerLogoVariants,
|
|
80
|
+
n as headerMenuVariants,
|
|
81
|
+
o as headerSecondaryLinkItemVariants,
|
|
82
|
+
g as headerSecondaryLinkSlotItemVariants,
|
|
83
|
+
d as headerSecondaryLinksVariants,
|
|
84
|
+
c as headerSlotContainerVariants,
|
|
85
|
+
l as headerTitleVariants,
|
|
86
|
+
s as headerToolItemVariants,
|
|
87
|
+
i as headerVariants
|
|
88
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const InputFile: import('react').ForwardRefExoticComponent<{
|
|
2
|
+
dataTestid?: string;
|
|
3
|
+
} & import('react').InputHTMLAttributes<Omit<HTMLInputElement, "type">> & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Input as
|
|
5
|
-
const
|
|
6
|
-
({ className:
|
|
7
|
-
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as r } from "react";
|
|
3
|
+
import { cn as o } from "../cn.js";
|
|
4
|
+
import { Input as p } from "../primitives/input.js";
|
|
5
|
+
const a = r(
|
|
6
|
+
({ className: i, ...t }, e) => /* @__PURE__ */ m(
|
|
7
|
+
p,
|
|
8
8
|
{
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
"data-testid": t.dataTestid,
|
|
10
|
+
...t,
|
|
11
|
+
className: o(i, "gi-input-file"),
|
|
11
12
|
type: "file",
|
|
12
13
|
multiple: !0,
|
|
13
|
-
ref:
|
|
14
|
+
ref: e
|
|
14
15
|
}
|
|
15
16
|
)
|
|
16
17
|
);
|
|
17
|
-
|
|
18
|
+
a.displayName = "InputFile";
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
a as InputFile
|
|
20
21
|
};
|
|
@@ -17,6 +17,7 @@ export declare const InputText: import('react').ForwardRefExoticComponent<import
|
|
|
17
17
|
halfFluid?: boolean;
|
|
18
18
|
clearButtonEnabled?: boolean;
|
|
19
19
|
containerProps?: any;
|
|
20
|
+
dataTestId?: string;
|
|
20
21
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
21
22
|
export declare const InputTextTableCell: import('react').ForwardRefExoticComponent<import('react').InputHTMLAttributes<HTMLInputElement> & {
|
|
22
23
|
prefix?: React.ReactNode;
|
|
@@ -35,6 +36,7 @@ export declare const InputTextTableCell: import('react').ForwardRefExoticCompone
|
|
|
35
36
|
halfFluid?: boolean;
|
|
36
37
|
clearButtonEnabled?: boolean;
|
|
37
38
|
containerProps?: any;
|
|
39
|
+
dataTestId?: string;
|
|
38
40
|
} & {
|
|
39
41
|
error?: boolean;
|
|
40
42
|
disabled?: boolean;
|