@ogcio/design-system-react 1.31.0 → 1.32.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/Heading.d.ts +5 -0
- package/dist/Heading.js +22 -0
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +46 -61
- package/dist/atoms/{DsButton.d.ts → Button.d.ts} +3 -3
- package/dist/atoms/{DsButton.js → Button.js} +20 -35
- package/dist/atoms/heading/H1.d.ts +3 -0
- package/dist/atoms/heading/H1.js +20 -0
- package/dist/atoms/heading/H2.d.ts +3 -0
- package/dist/atoms/heading/H2.js +20 -0
- package/dist/atoms/heading/H3.d.ts +3 -0
- package/dist/atoms/heading/H3.js +20 -0
- package/dist/atoms/heading/H4.d.ts +3 -0
- package/dist/atoms/heading/H4.js +20 -0
- package/dist/atoms/heading/H5.d.ts +3 -0
- package/dist/atoms/heading/H5.js +20 -0
- package/dist/atoms/heading/H6.d.ts +3 -0
- package/dist/atoms/heading/H6.js +20 -0
- package/dist/atoms/heading/index.d.ts +9 -0
- package/dist/atoms/heading/index.js +18 -0
- package/dist/atoms/heading/styles.d.ts +65 -0
- package/dist/atoms/heading/styles.js +17 -0
- package/dist/atoms/heading/types.d.ts +15 -0
- package/dist/atoms/heading/types.js +11 -0
- package/dist/atoms/heading/utils.d.ts +2 -0
- package/dist/atoms/heading/utils.js +5 -0
- package/dist/atoms/icons/ArrowLeft.d.ts +3 -0
- package/dist/atoms/icons/ArrowLeft.js +23 -0
- package/dist/atoms/icons/ArrowRight.d.ts +3 -0
- package/dist/atoms/icons/ArrowRight.js +23 -0
- package/dist/atoms/icons/CheckCircle.d.ts +3 -0
- package/dist/atoms/icons/CheckCircle.js +23 -0
- package/dist/atoms/icons/Error.d.ts +3 -0
- package/dist/atoms/icons/Error.js +23 -0
- package/dist/atoms/icons/FirstPage.d.ts +3 -0
- package/dist/atoms/icons/FirstPage.js +23 -0
- package/dist/atoms/icons/Info.d.ts +3 -0
- package/dist/atoms/icons/Info.js +23 -0
- package/dist/atoms/icons/KeyboardArrowLeft.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowLeft.js +23 -0
- package/dist/atoms/icons/KeyboardArrowRight.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowRight.js +23 -0
- package/dist/atoms/icons/LastPage.d.ts +3 -0
- package/dist/atoms/icons/LastPage.js +23 -0
- package/dist/atoms/icons/Warning.d.ts +3 -0
- package/dist/atoms/icons/Warning.js +23 -0
- package/dist/atoms/icons/index.d.ts +12 -2
- package/dist/atoms/icons/index.js +30 -10
- package/dist/atoms/icons/logos/LogoBlack.js +1 -1
- package/dist/atoms/icons/logos/LogoGoldGreen.js +1 -1
- package/dist/atoms/icons/logos/LogoGoldWhite.js +8 -8
- package/dist/atoms/icons/logos/LogoHarpBlack.js +1 -1
- package/dist/atoms/icons/logos/LogoWhite.js +1 -1
- package/dist/atoms/index.d.ts +2 -1
- package/dist/atoms/index.js +48 -12
- package/dist/atoms/storybook/Heading.meta.d.ts +60 -0
- package/dist/atoms/storybook/Heading.meta.js +70 -0
- package/dist/atoms/storybook/Icons.meta.d.ts +51 -0
- package/dist/atoms/storybook/Icons.meta.js +130 -0
- package/dist/atoms/storybook/InsetText.meta.d.ts +52 -0
- package/dist/atoms/storybook/InsetText.meta.js +64 -0
- package/dist/atoms/storybook/Logos.meta.d.ts +35 -0
- package/dist/atoms/storybook/Logos.meta.js +54 -0
- package/dist/breadcrumbs/breadcrumbs.js +20 -19
- package/dist/header/components/header-menu.js +21 -21
- package/dist/header/components/header-search.js +4 -4
- package/dist/icon/icon.js +85 -63
- package/dist/icon/icons.d.ts +1 -1
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +19 -10
- package/dist/index-Bh2cTIps.js +33899 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/input-text/input-text.js +1 -1
- package/dist/input-text/type.d.ts +1 -1
- package/dist/modal/modal.d.ts +1 -1
- package/dist/modal/modal.js +1 -1
- package/dist/pagination/pagination.js +139 -135
- package/dist/paragraph/paragraph.d.ts +1 -1
- package/dist/paragraph/paragraph.js +13 -11
- package/dist/side-nav/side-nav.js +4 -4
- package/dist/side-nav/types.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/dist/table/table-pagination.js +17 -13
- package/package.json +6 -5
- package/dist/heading/heading.d.ts +0 -150
- package/dist/heading/heading.js +0 -50
package/dist/Heading.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import p from "./atoms/heading/H1.js";
|
|
3
|
+
import f from "./atoms/heading/H2.js";
|
|
4
|
+
import i from "./atoms/heading/H3.js";
|
|
5
|
+
import n from "./atoms/heading/H4.js";
|
|
6
|
+
import h from "./atoms/heading/H5.js";
|
|
7
|
+
import H from "./atoms/heading/H6.js";
|
|
8
|
+
const e = {
|
|
9
|
+
h1: p,
|
|
10
|
+
h2: f,
|
|
11
|
+
h3: i,
|
|
12
|
+
h4: n,
|
|
13
|
+
h5: h,
|
|
14
|
+
h6: H
|
|
15
|
+
};
|
|
16
|
+
function j({ as: o = "h1", ...r }) {
|
|
17
|
+
const m = e[o];
|
|
18
|
+
return /* @__PURE__ */ t(m, { ...r });
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
j as default
|
|
22
|
+
};
|
package/dist/alert/alert.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { IconProps } from '../atoms/icons';
|
|
1
3
|
import { AlertProps } from './types.js';
|
|
4
|
+
export declare const ALERT_VARIANT_ICONS: Record<string, ComponentType<IconProps>>;
|
|
2
5
|
declare function Alert({ title, children, variant, showIcon, dismissible, onClose, className, ...props }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
6
|
export { Alert };
|
package/dist/alert/alert.js
CHANGED
|
@@ -1,85 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useState as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
a = "check_circle";
|
|
18
|
-
break;
|
|
19
|
-
}
|
|
20
|
-
case "danger": {
|
|
21
|
-
a = "error";
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
default:
|
|
25
|
-
a = "info";
|
|
26
|
-
}
|
|
27
|
-
return a;
|
|
2
|
+
import { jsx as i, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
import { useState as k } from "react";
|
|
4
|
+
import v from "../atoms/icons/Info.js";
|
|
5
|
+
import D from "../atoms/icons/Error.js";
|
|
6
|
+
import V from "../atoms/icons/Warning.js";
|
|
7
|
+
import x from "../atoms/icons/CheckCircle.js";
|
|
8
|
+
import { cn as n } from "../cn.js";
|
|
9
|
+
import { translate as j } from "../i18n/utility.js";
|
|
10
|
+
import { IconButton as E } from "../icon-button/icon-button.js";
|
|
11
|
+
import { alertVariants as R } from "./variants.js";
|
|
12
|
+
const S = {
|
|
13
|
+
warning: (r) => /* @__PURE__ */ i(V, { ...r }),
|
|
14
|
+
success: (r) => /* @__PURE__ */ i(x, { ...r }),
|
|
15
|
+
danger: (r) => /* @__PURE__ */ i(D, { ...r }),
|
|
16
|
+
info: (r) => /* @__PURE__ */ i(v, { ...r })
|
|
28
17
|
};
|
|
29
|
-
function
|
|
30
|
-
title:
|
|
31
|
-
children:
|
|
32
|
-
variant:
|
|
33
|
-
showIcon:
|
|
34
|
-
dismissible:
|
|
18
|
+
function C({
|
|
19
|
+
title: r,
|
|
20
|
+
children: o,
|
|
21
|
+
variant: a = "info",
|
|
22
|
+
showIcon: m = !0,
|
|
23
|
+
dismissible: e,
|
|
35
24
|
onClose: s,
|
|
36
|
-
className:
|
|
37
|
-
...
|
|
25
|
+
className: c,
|
|
26
|
+
...l
|
|
38
27
|
}) {
|
|
39
|
-
const [
|
|
40
|
-
variant:
|
|
41
|
-
}),
|
|
42
|
-
|
|
28
|
+
const [f, p] = k(!1), { base: u, heading: d, container: g, dismiss: N, baseDismissible: h } = R({
|
|
29
|
+
variant: a
|
|
30
|
+
}), A = e ? h : u;
|
|
31
|
+
if (f)
|
|
32
|
+
return null;
|
|
33
|
+
const I = S[a ?? "info"];
|
|
34
|
+
return /* @__PURE__ */ t(
|
|
43
35
|
"div",
|
|
44
36
|
{
|
|
45
|
-
className:
|
|
37
|
+
className: n(A(), c, "gi-not-prose"),
|
|
46
38
|
role: "alert",
|
|
47
39
|
"aria-live": "assertive",
|
|
48
|
-
...
|
|
40
|
+
...l,
|
|
49
41
|
children: [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
{
|
|
53
|
-
icon: V({ variant: r }),
|
|
54
|
-
ariaHidden: !0,
|
|
55
|
-
className: "gi-alert-icon",
|
|
56
|
-
"data-variant": r
|
|
57
|
-
}
|
|
58
|
-
) : null,
|
|
59
|
-
/* @__PURE__ */ n(
|
|
42
|
+
m ? /* @__PURE__ */ i(I, { className: "gi-shrink-0 gi-block" }) : null,
|
|
43
|
+
/* @__PURE__ */ t(
|
|
60
44
|
"div",
|
|
61
45
|
{
|
|
62
|
-
className:
|
|
63
|
-
"gi-gap-1":
|
|
46
|
+
className: n(g(), {
|
|
47
|
+
"gi-gap-1": r
|
|
64
48
|
}),
|
|
65
49
|
children: [
|
|
66
|
-
|
|
67
|
-
|
|
50
|
+
r && /* @__PURE__ */ i("p", { className: d(), children: r }),
|
|
51
|
+
o
|
|
68
52
|
]
|
|
69
53
|
}
|
|
70
54
|
),
|
|
71
|
-
|
|
72
|
-
|
|
55
|
+
e && /* @__PURE__ */ i(
|
|
56
|
+
E,
|
|
73
57
|
{
|
|
74
|
-
onClick: (
|
|
75
|
-
|
|
58
|
+
onClick: (b) => {
|
|
59
|
+
p(!0), s == null || s(b);
|
|
76
60
|
},
|
|
77
|
-
className:
|
|
61
|
+
className: N(),
|
|
78
62
|
size: "small",
|
|
79
63
|
appearance: "dark",
|
|
80
64
|
variant: "flat",
|
|
81
65
|
icon: { icon: "close" },
|
|
82
|
-
"aria-label":
|
|
66
|
+
"aria-label": j("alert.dismissAlert", {
|
|
83
67
|
defaultValue: "Dismiss alert"
|
|
84
68
|
})
|
|
85
69
|
}
|
|
@@ -89,5 +73,6 @@ function q({
|
|
|
89
73
|
);
|
|
90
74
|
}
|
|
91
75
|
export {
|
|
92
|
-
|
|
76
|
+
S as ALERT_VARIANT_ICONS,
|
|
77
|
+
C as Alert
|
|
93
78
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mitosis automatically generates this file.
|
|
3
3
|
* Do not edit this file directly.
|
|
4
|
-
* The file source is in `packages/core/atoms/
|
|
4
|
+
* The file source is in `packages/core/atoms/Button.lite.tsx`
|
|
5
5
|
*/
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
type Props = {
|
|
@@ -190,5 +190,5 @@ export declare const styles: import('tailwind-variants').TVReturnType<{
|
|
|
190
190
|
false: string;
|
|
191
191
|
};
|
|
192
192
|
}>, unknown, unknown, undefined>>;
|
|
193
|
-
declare const
|
|
194
|
-
export default
|
|
193
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<any>>;
|
|
194
|
+
export default Button;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c } from "../index-CB-zPpNk.js";
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { c as s } from "../index-CB-zPpNk.js";
|
|
5
5
|
const r = {
|
|
6
6
|
PRIMARY: "primary",
|
|
7
7
|
SECONDARY: "secondary",
|
|
8
8
|
FLAT: "flat"
|
|
9
|
-
},
|
|
9
|
+
}, l = {
|
|
10
10
|
DEFAULT: "default",
|
|
11
11
|
DARK: "dark",
|
|
12
12
|
LIGHT: "light"
|
|
@@ -14,7 +14,7 @@ const r = {
|
|
|
14
14
|
SMALL: "small",
|
|
15
15
|
MEDIUM: "medium",
|
|
16
16
|
LARGE: "large"
|
|
17
|
-
},
|
|
17
|
+
}, c = s({
|
|
18
18
|
base: [
|
|
19
19
|
"gi-font-primary",
|
|
20
20
|
"gi-border-solid",
|
|
@@ -269,40 +269,25 @@ const r = {
|
|
|
269
269
|
size: "medium",
|
|
270
270
|
disabled: !1
|
|
271
271
|
}
|
|
272
|
-
}),
|
|
273
|
-
return /* @__PURE__ */
|
|
272
|
+
}), g = (a = r.PRIMARY) => Object.values(r).includes(a) ? a : r.PRIMARY, f = (a) => a === l.LIGHT || a === l.DARK ? a : l.DEFAULT, u = (a) => a === o.SMALL || a === o.LARGE ? a : o.MEDIUM, x = n(function(e, i) {
|
|
273
|
+
return /* @__PURE__ */ d(
|
|
274
274
|
"button",
|
|
275
275
|
{
|
|
276
|
-
ref:
|
|
276
|
+
ref: i,
|
|
277
277
|
id: e.id,
|
|
278
|
-
className:
|
|
279
|
-
variant:
|
|
280
|
-
appearance:
|
|
281
|
-
size:
|
|
278
|
+
className: c({
|
|
279
|
+
variant: g(e.variant),
|
|
280
|
+
appearance: f(e.appearance),
|
|
281
|
+
size: u(e.size),
|
|
282
282
|
disabled: !!e.disabled,
|
|
283
283
|
class: e.className
|
|
284
284
|
}),
|
|
285
285
|
disabled: e.disabled || void 0,
|
|
286
|
-
onClick: (
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
var a;
|
|
292
|
-
return (a = e.onFocus) == null ? void 0 : a.call(e, l);
|
|
293
|
-
},
|
|
294
|
-
onBlur: (l) => {
|
|
295
|
-
var a;
|
|
296
|
-
return (a = e.onBlur) == null ? void 0 : a.call(e, l);
|
|
297
|
-
},
|
|
298
|
-
onKeyDown: (l) => {
|
|
299
|
-
var a;
|
|
300
|
-
return (a = e.onKeyDown) == null ? void 0 : a.call(e, l);
|
|
301
|
-
},
|
|
302
|
-
onKeyUp: (l) => {
|
|
303
|
-
var a;
|
|
304
|
-
return (a = e.onKeyUp) == null ? void 0 : a.call(e, l);
|
|
305
|
-
},
|
|
286
|
+
onClick: (t) => e.onClick && e.onClick(t),
|
|
287
|
+
onFocus: (t) => e.onFocus && e.onFocus(t),
|
|
288
|
+
onBlur: (t) => e.onBlur && e.onBlur(t),
|
|
289
|
+
onKeyDown: (t) => e.onKeyDown && e.onKeyDown(t),
|
|
290
|
+
onKeyUp: (t) => e.onKeyUp && e.onKeyUp(t),
|
|
306
291
|
"aria-label": e.ariaLabel,
|
|
307
292
|
"aria-labelledby": e.ariaLabelledBy,
|
|
308
293
|
"aria-describedby": e.ariaDescribedBy,
|
|
@@ -322,9 +307,9 @@ const r = {
|
|
|
322
307
|
);
|
|
323
308
|
});
|
|
324
309
|
export {
|
|
325
|
-
|
|
310
|
+
l as Appearance,
|
|
326
311
|
o as Size,
|
|
327
312
|
r as Variant,
|
|
328
|
-
|
|
329
|
-
|
|
313
|
+
x as default,
|
|
314
|
+
c as styles
|
|
330
315
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import i from "./styles.js";
|
|
3
|
+
import { getSize as a } from "./utils.js";
|
|
4
|
+
function m(e) {
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
"h1",
|
|
7
|
+
{
|
|
8
|
+
id: e.id,
|
|
9
|
+
className: i({
|
|
10
|
+
size: a(e.size, "xl"),
|
|
11
|
+
class: e.className
|
|
12
|
+
}),
|
|
13
|
+
"data-testid": e.dataTestId,
|
|
14
|
+
children: e.children
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
m as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import i from "./styles.js";
|
|
3
|
+
import { getSize as a } from "./utils.js";
|
|
4
|
+
function m(e) {
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
"h2",
|
|
7
|
+
{
|
|
8
|
+
id: e.id,
|
|
9
|
+
className: i({
|
|
10
|
+
size: a(e.size, "lg"),
|
|
11
|
+
class: e.className
|
|
12
|
+
}),
|
|
13
|
+
"data-testid": e.dataTestId,
|
|
14
|
+
children: e.children
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
m as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import i from "./styles.js";
|
|
3
|
+
import { getSize as a } from "./utils.js";
|
|
4
|
+
function l(e) {
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
"h3",
|
|
7
|
+
{
|
|
8
|
+
id: e.id,
|
|
9
|
+
className: i({
|
|
10
|
+
size: a(e.size, "md"),
|
|
11
|
+
class: e.className
|
|
12
|
+
}),
|
|
13
|
+
"data-testid": e.dataTestId,
|
|
14
|
+
children: e.children
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
l as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import i from "./styles.js";
|
|
3
|
+
import { getSize as a } from "./utils.js";
|
|
4
|
+
function l(e) {
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
"h4",
|
|
7
|
+
{
|
|
8
|
+
id: e.id,
|
|
9
|
+
className: i({
|
|
10
|
+
size: a(e.size, "sm"),
|
|
11
|
+
class: e.className
|
|
12
|
+
}),
|
|
13
|
+
"data-testid": e.dataTestId,
|
|
14
|
+
children: e.children
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
l as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import i from "./styles.js";
|
|
3
|
+
import { getSize as a } from "./utils.js";
|
|
4
|
+
function l(e) {
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
"h5",
|
|
7
|
+
{
|
|
8
|
+
id: e.id,
|
|
9
|
+
className: i({
|
|
10
|
+
size: a(e.size, "xs"),
|
|
11
|
+
class: e.className
|
|
12
|
+
}),
|
|
13
|
+
"data-testid": e.dataTestId,
|
|
14
|
+
children: e.children
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
l as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import i from "./styles.js";
|
|
3
|
+
import { getSize as a } from "./utils.js";
|
|
4
|
+
function l(e) {
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
"h6",
|
|
7
|
+
{
|
|
8
|
+
id: e.id,
|
|
9
|
+
className: i({
|
|
10
|
+
size: a(e.size, "2xs"),
|
|
11
|
+
class: e.className
|
|
12
|
+
}),
|
|
13
|
+
"data-testid": e.dataTestId,
|
|
14
|
+
children: e.children
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
l as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as H1 } from './H1';
|
|
2
|
+
export { default as H2 } from './H2';
|
|
3
|
+
export { default as H3 } from './H3';
|
|
4
|
+
export { default as H4 } from './H4';
|
|
5
|
+
export { default as H5 } from './H5';
|
|
6
|
+
export { default as H6 } from './H6';
|
|
7
|
+
export { default as headingStyles } from './styles';
|
|
8
|
+
export type { Size, Props } from './types';
|
|
9
|
+
export { getSize } from './utils';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as o } from "./H1.js";
|
|
2
|
+
import { default as a } from "./H2.js";
|
|
3
|
+
import { default as d } from "./H3.js";
|
|
4
|
+
import { default as m } from "./H4.js";
|
|
5
|
+
import { default as s } from "./H5.js";
|
|
6
|
+
import { default as u } from "./H6.js";
|
|
7
|
+
import { default as g } from "./styles.js";
|
|
8
|
+
import { getSize as S } from "./utils.js";
|
|
9
|
+
export {
|
|
10
|
+
o as H1,
|
|
11
|
+
a as H2,
|
|
12
|
+
d as H3,
|
|
13
|
+
m as H4,
|
|
14
|
+
s as H5,
|
|
15
|
+
u as H6,
|
|
16
|
+
S as getSize,
|
|
17
|
+
g as headingStyles
|
|
18
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const styles: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
xl: string;
|
|
4
|
+
lg: string;
|
|
5
|
+
md: string;
|
|
6
|
+
sm: string;
|
|
7
|
+
xs: string;
|
|
8
|
+
'2xs': string;
|
|
9
|
+
};
|
|
10
|
+
}, undefined, "gi-font-bold gi-font-primary", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
11
|
+
size: {
|
|
12
|
+
xl: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
md: string;
|
|
15
|
+
sm: string;
|
|
16
|
+
xs: string;
|
|
17
|
+
'2xs': string;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
size: {
|
|
21
|
+
xl: string;
|
|
22
|
+
lg: string;
|
|
23
|
+
md: string;
|
|
24
|
+
sm: string;
|
|
25
|
+
xs: string;
|
|
26
|
+
'2xs': string;
|
|
27
|
+
};
|
|
28
|
+
}>, {
|
|
29
|
+
size: {
|
|
30
|
+
xl: string;
|
|
31
|
+
lg: string;
|
|
32
|
+
md: string;
|
|
33
|
+
sm: string;
|
|
34
|
+
xs: string;
|
|
35
|
+
'2xs': string;
|
|
36
|
+
};
|
|
37
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
38
|
+
size: {
|
|
39
|
+
xl: string;
|
|
40
|
+
lg: string;
|
|
41
|
+
md: string;
|
|
42
|
+
sm: string;
|
|
43
|
+
xs: string;
|
|
44
|
+
'2xs': string;
|
|
45
|
+
};
|
|
46
|
+
}, undefined, "gi-font-bold gi-font-primary", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
47
|
+
size: {
|
|
48
|
+
xl: string;
|
|
49
|
+
lg: string;
|
|
50
|
+
md: string;
|
|
51
|
+
sm: string;
|
|
52
|
+
xs: string;
|
|
53
|
+
'2xs': string;
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
size: {
|
|
57
|
+
xl: string;
|
|
58
|
+
lg: string;
|
|
59
|
+
md: string;
|
|
60
|
+
sm: string;
|
|
61
|
+
xs: string;
|
|
62
|
+
'2xs': string;
|
|
63
|
+
};
|
|
64
|
+
}>, unknown, unknown, undefined>>;
|
|
65
|
+
export default styles;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { c as t } from "../../index-CB-zPpNk.js";
|
|
2
|
+
const l = t({
|
|
3
|
+
base: "gi-font-bold gi-font-primary",
|
|
4
|
+
variants: {
|
|
5
|
+
size: {
|
|
6
|
+
xl: "gi-text-4xl md:gi-text-5xl xl:gi-text-6xl",
|
|
7
|
+
lg: "gi-text-2xl md:gi-text-3xl xl:gi-text-4xl",
|
|
8
|
+
md: "gi-text-lg md:gi-text-xl xl:gi-text-2xl",
|
|
9
|
+
sm: "gi-text-lg xl:gi-text-xl",
|
|
10
|
+
xs: "gi-text-md",
|
|
11
|
+
"2xs": "gi-text-sm"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
l as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const Size: {
|
|
2
|
+
readonly XL: "xl";
|
|
3
|
+
readonly LG: "lg";
|
|
4
|
+
readonly MD: "md";
|
|
5
|
+
readonly SM: "sm";
|
|
6
|
+
readonly XS: "xs";
|
|
7
|
+
readonly XXS: "2xs";
|
|
8
|
+
};
|
|
9
|
+
export type Props = {
|
|
10
|
+
id?: string;
|
|
11
|
+
size?: (typeof Size)[keyof typeof Size];
|
|
12
|
+
className?: string;
|
|
13
|
+
children: any;
|
|
14
|
+
dataTestId?: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
function t(e) {
|
|
3
|
+
return /* @__PURE__ */ l(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: e.size ?? 24,
|
|
9
|
+
height: e.size ?? 24,
|
|
10
|
+
className: e.className,
|
|
11
|
+
id: e.id,
|
|
12
|
+
role: e.label ? "img" : void 0,
|
|
13
|
+
"aria-label": e.label,
|
|
14
|
+
"aria-hidden": !e.label,
|
|
15
|
+
fill: e.color ?? "currentColor",
|
|
16
|
+
"data-testid": e.dataTestId ?? "arrow_left",
|
|
17
|
+
children: /* @__PURE__ */ l("path", { d: "M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
t as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function l(a) {
|
|
3
|
+
return /* @__PURE__ */ e(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: a.size ?? 24,
|
|
9
|
+
height: a.size ?? 24,
|
|
10
|
+
className: a.className,
|
|
11
|
+
id: a.id,
|
|
12
|
+
role: a.label ? "img" : void 0,
|
|
13
|
+
"aria-label": a.label,
|
|
14
|
+
"aria-hidden": !a.label,
|
|
15
|
+
fill: a.color ?? "currentColor",
|
|
16
|
+
"data-testid": a.dataTestId ?? "arrow_right",
|
|
17
|
+
children: /* @__PURE__ */ e("path", { d: "m560-240-56-58 142-142H160v-80h486L504-662l56-58 240 240-240 240Z" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
l as default
|
|
23
|
+
};
|