@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.
Files changed (87) hide show
  1. package/dist/Heading.d.ts +5 -0
  2. package/dist/Heading.js +22 -0
  3. package/dist/alert/alert.d.ts +3 -0
  4. package/dist/alert/alert.js +46 -61
  5. package/dist/atoms/{DsButton.d.ts → Button.d.ts} +3 -3
  6. package/dist/atoms/{DsButton.js → Button.js} +20 -35
  7. package/dist/atoms/heading/H1.d.ts +3 -0
  8. package/dist/atoms/heading/H1.js +20 -0
  9. package/dist/atoms/heading/H2.d.ts +3 -0
  10. package/dist/atoms/heading/H2.js +20 -0
  11. package/dist/atoms/heading/H3.d.ts +3 -0
  12. package/dist/atoms/heading/H3.js +20 -0
  13. package/dist/atoms/heading/H4.d.ts +3 -0
  14. package/dist/atoms/heading/H4.js +20 -0
  15. package/dist/atoms/heading/H5.d.ts +3 -0
  16. package/dist/atoms/heading/H5.js +20 -0
  17. package/dist/atoms/heading/H6.d.ts +3 -0
  18. package/dist/atoms/heading/H6.js +20 -0
  19. package/dist/atoms/heading/index.d.ts +9 -0
  20. package/dist/atoms/heading/index.js +18 -0
  21. package/dist/atoms/heading/styles.d.ts +65 -0
  22. package/dist/atoms/heading/styles.js +17 -0
  23. package/dist/atoms/heading/types.d.ts +15 -0
  24. package/dist/atoms/heading/types.js +11 -0
  25. package/dist/atoms/heading/utils.d.ts +2 -0
  26. package/dist/atoms/heading/utils.js +5 -0
  27. package/dist/atoms/icons/ArrowLeft.d.ts +3 -0
  28. package/dist/atoms/icons/ArrowLeft.js +23 -0
  29. package/dist/atoms/icons/ArrowRight.d.ts +3 -0
  30. package/dist/atoms/icons/ArrowRight.js +23 -0
  31. package/dist/atoms/icons/CheckCircle.d.ts +3 -0
  32. package/dist/atoms/icons/CheckCircle.js +23 -0
  33. package/dist/atoms/icons/Error.d.ts +3 -0
  34. package/dist/atoms/icons/Error.js +23 -0
  35. package/dist/atoms/icons/FirstPage.d.ts +3 -0
  36. package/dist/atoms/icons/FirstPage.js +23 -0
  37. package/dist/atoms/icons/Info.d.ts +3 -0
  38. package/dist/atoms/icons/Info.js +23 -0
  39. package/dist/atoms/icons/KeyboardArrowLeft.d.ts +3 -0
  40. package/dist/atoms/icons/KeyboardArrowLeft.js +23 -0
  41. package/dist/atoms/icons/KeyboardArrowRight.d.ts +3 -0
  42. package/dist/atoms/icons/KeyboardArrowRight.js +23 -0
  43. package/dist/atoms/icons/LastPage.d.ts +3 -0
  44. package/dist/atoms/icons/LastPage.js +23 -0
  45. package/dist/atoms/icons/Warning.d.ts +3 -0
  46. package/dist/atoms/icons/Warning.js +23 -0
  47. package/dist/atoms/icons/index.d.ts +12 -2
  48. package/dist/atoms/icons/index.js +30 -10
  49. package/dist/atoms/icons/logos/LogoBlack.js +1 -1
  50. package/dist/atoms/icons/logos/LogoGoldGreen.js +1 -1
  51. package/dist/atoms/icons/logos/LogoGoldWhite.js +8 -8
  52. package/dist/atoms/icons/logos/LogoHarpBlack.js +1 -1
  53. package/dist/atoms/icons/logos/LogoWhite.js +1 -1
  54. package/dist/atoms/index.d.ts +2 -1
  55. package/dist/atoms/index.js +48 -12
  56. package/dist/atoms/storybook/Heading.meta.d.ts +60 -0
  57. package/dist/atoms/storybook/Heading.meta.js +70 -0
  58. package/dist/atoms/storybook/Icons.meta.d.ts +51 -0
  59. package/dist/atoms/storybook/Icons.meta.js +130 -0
  60. package/dist/atoms/storybook/InsetText.meta.d.ts +52 -0
  61. package/dist/atoms/storybook/InsetText.meta.js +64 -0
  62. package/dist/atoms/storybook/Logos.meta.d.ts +35 -0
  63. package/dist/atoms/storybook/Logos.meta.js +54 -0
  64. package/dist/breadcrumbs/breadcrumbs.js +20 -19
  65. package/dist/header/components/header-menu.js +21 -21
  66. package/dist/header/components/header-search.js +4 -4
  67. package/dist/icon/icon.js +85 -63
  68. package/dist/icon/icons.d.ts +1 -1
  69. package/dist/icons/index.d.ts +1 -1
  70. package/dist/icons/index.js +19 -10
  71. package/dist/index-Bh2cTIps.js +33899 -0
  72. package/dist/index.d.ts +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/input-text/input-text.js +1 -1
  75. package/dist/input-text/type.d.ts +1 -1
  76. package/dist/modal/modal.d.ts +1 -1
  77. package/dist/modal/modal.js +1 -1
  78. package/dist/pagination/pagination.js +139 -135
  79. package/dist/paragraph/paragraph.d.ts +1 -1
  80. package/dist/paragraph/paragraph.js +13 -11
  81. package/dist/side-nav/side-nav.js +4 -4
  82. package/dist/side-nav/types.d.ts +1 -1
  83. package/dist/styles.css +1 -1
  84. package/dist/table/table-pagination.js +17 -13
  85. package/package.json +6 -5
  86. package/dist/heading/heading.d.ts +0 -150
  87. package/dist/heading/heading.js +0 -50
@@ -0,0 +1,5 @@
1
+ import { Props as CoreProps } from './atoms/heading';
2
+ export type Props = CoreProps & {
3
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4
+ };
5
+ export default function Heading({ as, ...props }: Props): import("react/jsx-runtime").JSX.Element;
@@ -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
+ };
@@ -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 };
@@ -1,85 +1,69 @@
1
1
  "use client";
2
- import { jsxs as n, jsx as i } from "react/jsx-runtime";
3
- import { useState as v } from "react";
4
- import { cn as c } from "../cn.js";
5
- import { translate as D } from "../i18n/utility.js";
6
- import { Icon as w } from "../icon/icon.js";
7
- import { IconButton as x } from "../icon-button/icon-button.js";
8
- import { alertVariants as I } from "./variants.js";
9
- const V = ({ variant: e }) => {
10
- let a;
11
- switch (e) {
12
- case "warning": {
13
- a = "warning";
14
- break;
15
- }
16
- case "success": {
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 q({
30
- title: e,
31
- children: a,
32
- variant: r = "info",
33
- showIcon: l = !0,
34
- dismissible: t,
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: o,
37
- ...m
25
+ className: c,
26
+ ...l
38
27
  }) {
39
- const [d, u] = v(!1), { base: f, heading: p, container: g, dismiss: b, baseDismissible: h } = I({
40
- variant: r
41
- }), k = t ? h : f;
42
- return d ? null : /* @__PURE__ */ n(
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: c(k(), o, "gi-not-prose"),
37
+ className: n(A(), c, "gi-not-prose"),
46
38
  role: "alert",
47
39
  "aria-live": "assertive",
48
- ...m,
40
+ ...l,
49
41
  children: [
50
- l ? /* @__PURE__ */ i(
51
- w,
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: c(g(), {
63
- "gi-gap-1": e
46
+ className: n(g(), {
47
+ "gi-gap-1": r
64
48
  }),
65
49
  children: [
66
- e && /* @__PURE__ */ i("p", { className: p(), children: e }),
67
- a
50
+ r && /* @__PURE__ */ i("p", { className: d(), children: r }),
51
+ o
68
52
  ]
69
53
  }
70
54
  ),
71
- t && /* @__PURE__ */ i(
72
- x,
55
+ e && /* @__PURE__ */ i(
56
+ E,
73
57
  {
74
- onClick: (N) => {
75
- u(!0), s == null || s(N);
58
+ onClick: (b) => {
59
+ p(!0), s == null || s(b);
76
60
  },
77
- className: b(),
61
+ className: N(),
78
62
  size: "small",
79
63
  appearance: "dark",
80
64
  variant: "flat",
81
65
  icon: { icon: "close" },
82
- "aria-label": D("alert.dismissAlert", {
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
- q as Alert
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/DsButton.lite.tsx`
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 DsButton: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<any>>;
194
- export default DsButton;
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 n } from "react/jsx-runtime";
3
- import { forwardRef as s } from "react";
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
- }, i = {
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
- }, g = c({
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
- }), f = (t = r.PRIMARY) => Object.values(r).includes(t) ? t : r.PRIMARY, u = (t) => t === i.LIGHT || t === i.DARK ? t : i.DEFAULT, b = (t) => t === o.SMALL || t === o.LARGE ? t : o.MEDIUM, y = s(function(e, d) {
273
- return /* @__PURE__ */ n(
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: d,
276
+ ref: i,
277
277
  id: e.id,
278
- className: g({
279
- variant: f(e.variant),
280
- appearance: u(e.appearance),
281
- size: b(e.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: (l) => {
287
- var a;
288
- return (a = e.onClick) == null ? void 0 : a.call(e, l);
289
- },
290
- onFocus: (l) => {
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
- i as Appearance,
310
+ l as Appearance,
326
311
  o as Size,
327
312
  r as Variant,
328
- y as default,
329
- g as styles
313
+ x as default,
314
+ c as styles
330
315
  };
@@ -0,0 +1,3 @@
1
+ import { Props } from './types';
2
+ declare function H1(props: Props): import("react/jsx-runtime").JSX.Element;
3
+ export default H1;
@@ -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,3 @@
1
+ import { Props } from './types';
2
+ declare function H2(props: Props): import("react/jsx-runtime").JSX.Element;
3
+ export default H2;
@@ -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,3 @@
1
+ import { Props } from './types';
2
+ declare function H3(props: Props): import("react/jsx-runtime").JSX.Element;
3
+ export default H3;
@@ -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,3 @@
1
+ import { Props } from './types';
2
+ declare function H4(props: Props): import("react/jsx-runtime").JSX.Element;
3
+ export default H4;
@@ -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,3 @@
1
+ import { Props } from './types';
2
+ declare function H5(props: Props): import("react/jsx-runtime").JSX.Element;
3
+ export default H5;
@@ -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,3 @@
1
+ import { Props } from './types';
2
+ declare function H6(props: Props): import("react/jsx-runtime").JSX.Element;
3
+ export default H6;
@@ -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,11 @@
1
+ const s = {
2
+ XL: "xl",
3
+ LG: "lg",
4
+ MD: "md",
5
+ SM: "sm",
6
+ XS: "xs",
7
+ XXS: "2xs"
8
+ };
9
+ export {
10
+ s as Size
11
+ };
@@ -0,0 +1,2 @@
1
+ import { Props } from './types';
2
+ export declare const getSize: (size: Props["size"], defaultSize: Props["size"]) => Props["size"];
@@ -0,0 +1,5 @@
1
+ import { Size as o } from "./types.js";
2
+ const r = (e, t) => e && Object.values(o).includes(e) ? e : t;
3
+ export {
4
+ r as getSize
5
+ };
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './types';
2
+ declare function ArrowLeft(props: IconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default ArrowLeft;
@@ -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,3 @@
1
+ import { IconProps } from './types';
2
+ declare function ArrowRight(props: IconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default ArrowRight;
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './types';
2
+ declare function CheckCircle(props: IconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default CheckCircle;