@ogcio/design-system-react 1.31.1 → 1.33.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 (114) hide show
  1. package/dist/Heading.d.ts +5 -0
  2. package/dist/Heading.js +22 -0
  3. package/dist/accordion/accordion-item.js +62 -57
  4. package/dist/alert/alert.d.ts +3 -0
  5. package/dist/alert/alert.js +40 -57
  6. package/dist/alert/variants.d.ts +49 -52
  7. package/dist/alert/variants.js +17 -18
  8. package/dist/atoms/{DsButton.d.ts → Button.d.ts} +5 -5
  9. package/dist/atoms/{DsButton.js → Button.js} +22 -36
  10. package/dist/atoms/heading/H1.d.ts +3 -0
  11. package/dist/atoms/heading/H1.js +20 -0
  12. package/dist/atoms/heading/H2.d.ts +3 -0
  13. package/dist/atoms/heading/H2.js +20 -0
  14. package/dist/atoms/heading/H3.d.ts +3 -0
  15. package/dist/atoms/heading/H3.js +20 -0
  16. package/dist/atoms/heading/H4.d.ts +3 -0
  17. package/dist/atoms/heading/H4.js +20 -0
  18. package/dist/atoms/heading/H5.d.ts +3 -0
  19. package/dist/atoms/heading/H5.js +20 -0
  20. package/dist/atoms/heading/H6.d.ts +3 -0
  21. package/dist/atoms/heading/H6.js +20 -0
  22. package/dist/atoms/heading/index.d.ts +9 -0
  23. package/dist/atoms/heading/index.js +18 -0
  24. package/dist/atoms/heading/styles.d.ts +65 -0
  25. package/dist/atoms/heading/styles.js +17 -0
  26. package/dist/atoms/heading/types.d.ts +15 -0
  27. package/dist/atoms/heading/types.js +11 -0
  28. package/dist/atoms/heading/utils.d.ts +2 -0
  29. package/dist/atoms/heading/utils.js +5 -0
  30. package/dist/atoms/icons/ArrowLeft.d.ts +3 -0
  31. package/dist/atoms/icons/ArrowLeft.js +23 -0
  32. package/dist/atoms/icons/ArrowRight.d.ts +3 -0
  33. package/dist/atoms/icons/ArrowRight.js +23 -0
  34. package/dist/atoms/icons/CheckCircle.d.ts +3 -0
  35. package/dist/atoms/icons/CheckCircle.js +23 -0
  36. package/dist/atoms/icons/Error.d.ts +3 -0
  37. package/dist/atoms/icons/Error.js +23 -0
  38. package/dist/atoms/icons/FirstPage.d.ts +3 -0
  39. package/dist/atoms/icons/FirstPage.js +23 -0
  40. package/dist/atoms/icons/Info.d.ts +3 -0
  41. package/dist/atoms/icons/Info.js +23 -0
  42. package/dist/atoms/icons/KeyboardArrowLeft.d.ts +3 -0
  43. package/dist/atoms/icons/KeyboardArrowLeft.js +23 -0
  44. package/dist/atoms/icons/KeyboardArrowRight.d.ts +3 -0
  45. package/dist/atoms/icons/KeyboardArrowRight.js +23 -0
  46. package/dist/atoms/icons/LastPage.d.ts +3 -0
  47. package/dist/atoms/icons/LastPage.js +23 -0
  48. package/dist/atoms/icons/Warning.d.ts +3 -0
  49. package/dist/atoms/icons/Warning.js +23 -0
  50. package/dist/atoms/icons/index.d.ts +12 -2
  51. package/dist/atoms/icons/index.js +30 -10
  52. package/dist/atoms/index.d.ts +2 -1
  53. package/dist/atoms/index.js +48 -12
  54. package/dist/atoms/storybook/Heading.meta.d.ts +60 -0
  55. package/dist/atoms/storybook/Heading.meta.js +70 -0
  56. package/dist/atoms/storybook/Icons.meta.d.ts +51 -0
  57. package/dist/atoms/storybook/Icons.meta.js +130 -0
  58. package/dist/atoms/storybook/InsetText.meta.d.ts +52 -0
  59. package/dist/atoms/storybook/InsetText.meta.js +64 -0
  60. package/dist/atoms/storybook/Logos.meta.d.ts +35 -0
  61. package/dist/atoms/storybook/Logos.meta.js +54 -0
  62. package/dist/breadcrumbs/breadcrumbs.js +20 -19
  63. package/dist/button/button.d.ts +2 -9
  64. package/dist/button/button.js +65 -32
  65. package/dist/button/helpers.d.ts +2 -1
  66. package/dist/button/types.d.ts +25 -8
  67. package/dist/button-group/button-group.js +43 -45
  68. package/dist/button-group/types.d.ts +5 -5
  69. package/dist/card/card-legacy.js +1 -1
  70. package/dist/card/types.d.ts +1 -1
  71. package/dist/combo-box/dropdown-item.js +1 -1
  72. package/dist/cookie-banner/cookie-banner.d.ts +1 -1
  73. package/dist/data-table/data-table-header.js +1 -1
  74. package/dist/drawer/drawer.d.ts +1 -1
  75. package/dist/drawer/drawer.js +17 -17
  76. package/dist/error-text/error-text.js +28 -27
  77. package/dist/forms/form-field/form-field.js +24 -25
  78. package/dist/header/components/header-menu.js +21 -21
  79. package/dist/header/components/header-search.js +5 -5
  80. package/dist/hint-text/hint-text.js +26 -20
  81. package/dist/icon/icon.js +85 -63
  82. package/dist/icon/icons.d.ts +1 -1
  83. package/dist/icon-button/icon-button.d.ts +3 -5
  84. package/dist/icons/index.d.ts +1 -1
  85. package/dist/icons/index.js +19 -10
  86. package/dist/index-Bh2cTIps.js +33899 -0
  87. package/dist/index.d.ts +2 -2
  88. package/dist/index.js +1 -1
  89. package/dist/input-text/input-text.js +1 -1
  90. package/dist/input-text/type.d.ts +1 -1
  91. package/dist/label/label.d.ts +78 -30
  92. package/dist/label/label.js +29 -14
  93. package/dist/modal/modal.content.js +1 -1
  94. package/dist/modal/modal.d.ts +1 -1
  95. package/dist/modal/modal.js +39 -39
  96. package/dist/modal/types.d.ts +5 -4
  97. package/dist/pagination/pagination.js +137 -134
  98. package/dist/paragraph/paragraph.d.ts +1 -1
  99. package/dist/paragraph/paragraph.js +13 -11
  100. package/dist/score-select/type.d.ts +2 -2
  101. package/dist/select/select-next.js +87 -87
  102. package/dist/side-nav/side-nav.js +4 -4
  103. package/dist/side-nav/types.d.ts +1 -1
  104. package/dist/styles.css +1 -1
  105. package/dist/table/table-pagination.js +17 -13
  106. package/dist/tabs/tab-item.js +53 -71
  107. package/dist/tabs/variants.d.ts +269 -0
  108. package/dist/tabs/variants.js +87 -0
  109. package/dist/tooltip/tooltip.js +27 -35
  110. package/dist/tooltip/variants.d.ts +115 -0
  111. package/dist/tooltip/variants.js +59 -0
  112. package/package.json +7 -6
  113. package/dist/heading/heading.d.ts +0 -150
  114. 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,61 +1,46 @@
1
1
  "use client";
2
- import { jsxs as r, Fragment as u, jsx as a } from "react/jsx-runtime";
3
- import { c as t } from "../clsx-OuTLNxxd.js";
4
- import { useState as y, useRef as b } from "react";
5
- import { c as h } from "../index-CB-zPpNk.js";
6
- import { Icon as w } from "../icon/icon.js";
7
- const I = h({
8
- variants: {
9
- variant: {
10
- default: "gi-px-2 gi-py-4 gi-text-md gi-font-bold",
11
- small: "gi-py-2 gi-px-2 gi-text-sm gi-font-bold"
12
- }
13
- }
14
- }), j = ({
15
- defaultExpanded: s,
2
+ import { jsxs as n, Fragment as y, jsx as a } from "react/jsx-runtime";
3
+ import { c as s } from "../clsx-OuTLNxxd.js";
4
+ import { useState as w, useRef as I } from "react";
5
+ import { c as k } from "../index-CB-zPpNk.js";
6
+ import { Icon as v } from "../icon/icon.js";
7
+ const $ = ({
8
+ defaultExpanded: d,
16
9
  children: c,
17
- label: i,
18
- disabled: n,
10
+ label: o,
11
+ disabled: t,
19
12
  className: l,
20
- variant: e = "default",
21
- ...m
13
+ variant: i = "default",
14
+ ...g
22
15
  }) => {
23
- const [o, d] = y(s), g = b(null), p = `${i}-button`, f = `${i}-panel`;
24
- return /* @__PURE__ */ r(u, { children: [
16
+ const [e, r] = w(d), m = I(null), p = `${o}-button`, f = `${o}-panel`, u = (h) => {
17
+ h.key === "Enter" && !t && r(!e);
18
+ }, { base: x, header: b } = N({ variant: i, disabled: !!t });
19
+ return /* @__PURE__ */ n(y, { children: [
25
20
  /* @__PURE__ */ a(
26
21
  "div",
27
22
  {
28
- ...m,
29
- ref: g,
30
- "data-disabled": !!n,
31
- onClick: () => !n && d(!o),
32
- onKeyDown: (x) => {
33
- x.key === "Enter" && !n && d(!o);
34
- },
23
+ ...g,
24
+ ref: m,
25
+ "data-testid": "accordion-item",
26
+ "data-disabled": !!t,
27
+ onClick: () => !t && r(!e),
28
+ onKeyDown: u,
35
29
  tabIndex: 0,
36
- className: t("gi-accordion", l),
37
- children: /* @__PURE__ */ r(
38
- "div",
39
- {
40
- className: t(
41
- "gi-accordion-header",
42
- I({ variant: e })
43
- ),
44
- children: [
45
- i,
46
- /* @__PURE__ */ a(
47
- w,
48
- {
49
- icon: o ? "keyboard_arrow_up" : "keyboard_arrow_down",
50
- size: "md",
51
- className: t({
52
- "gi-pt-[1.5px]": e === "default"
53
- })
54
- }
55
- )
56
- ]
57
- }
58
- )
30
+ className: s(x(), l),
31
+ children: /* @__PURE__ */ n("div", { "data-testid": "accordion-header", className: b(), children: [
32
+ o,
33
+ /* @__PURE__ */ a(
34
+ v,
35
+ {
36
+ icon: e ? "keyboard_arrow_up" : "keyboard_arrow_down",
37
+ size: "md",
38
+ className: s({
39
+ "gi-pt-[1.5px]": i === "default"
40
+ })
41
+ }
42
+ )
43
+ ] })
59
44
  }
60
45
  ),
61
46
  /* @__PURE__ */ a(
@@ -64,17 +49,37 @@ const I = h({
64
49
  id: f,
65
50
  role: "region",
66
51
  "aria-labelledby": p,
67
- className: t("gi-px-2 gi-pb-4 gi-pt-2 gi-font-normal", {
68
- "gi-block": o,
69
- "gi-hidden": !o,
70
- "gi-text-md": e === "default",
71
- "gi-text-sm": e === "small"
52
+ className: s("gi-px-2 gi-pb-4 gi-pt-2 gi-font-normal", {
53
+ "gi-block": e,
54
+ "gi-hidden": !e,
55
+ "gi-text-md": i === "default",
56
+ "gi-text-sm": i === "small"
72
57
  }),
73
58
  children: c
74
59
  }
75
60
  )
76
61
  ] });
77
- };
62
+ }, N = k({
63
+ slots: {
64
+ base: "gi-focus-visible-state-outline-inner-shadow-sm",
65
+ header: " gi-flex gi-items-start gi-justify-between"
66
+ },
67
+ variants: {
68
+ variant: {
69
+ default: { header: "gi-px-2 gi-py-4 gi-text-md gi-font-bold" },
70
+ small: { header: "gi-py-2 gi-px-2 gi-text-sm gi-font-bold" }
71
+ },
72
+ disabled: {
73
+ false: {
74
+ base: "hover:gi-bg-gray-200 gi-focus-state-outline-inner-shadow-sm",
75
+ header: "gi-cursor-pointer"
76
+ },
77
+ true: {
78
+ header: "gi-cursor-not-allowed gi-text-gray-600"
79
+ }
80
+ }
81
+ }
82
+ });
78
83
  export {
79
- j as AccordionItem
84
+ $ as AccordionItem
80
85
  };
@@ -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,80 +1,62 @@
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";
2
+ import { jsx as i, jsxs as e } from "react/jsx-runtime";
3
+ import { useState as I } from "react";
4
+ import k from "../atoms/icons/Info.js";
5
+ import v from "../atoms/icons/Error.js";
6
+ import b from "../atoms/icons/Warning.js";
7
+ import x from "../atoms/icons/CheckCircle.js";
8
+ import { cn as t } from "../cn.js";
5
9
  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;
10
+ import { IconButton as V } from "../icon-button/icon-button.js";
11
+ import { alertVariants as j } from "./variants.js";
12
+ const E = {
13
+ warning: (r) => /* @__PURE__ */ i(b, { ...r }),
14
+ success: (r) => /* @__PURE__ */ i(x, { ...r }),
15
+ danger: (r) => /* @__PURE__ */ i(v, { ...r }),
16
+ info: (r) => /* @__PURE__ */ i(k, { ...r })
28
17
  };
29
18
  function q({
30
- title: e,
31
- children: a,
32
- variant: r = "info",
33
- showIcon: l = !0,
34
- dismissible: t,
19
+ title: r,
20
+ children: n,
21
+ variant: a = "info",
22
+ showIcon: o = !0,
23
+ dismissible: m,
35
24
  onClose: s,
36
- className: o,
37
- ...m
25
+ className: l,
26
+ ...c
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, d] = I(!1), { base: p, heading: u, container: g, dismiss: h } = j({ variant: a });
29
+ if (f)
30
+ return null;
31
+ const N = E[a ?? "info"];
32
+ return /* @__PURE__ */ e(
43
33
  "div",
44
34
  {
45
- className: c(k(), o, "gi-not-prose"),
35
+ className: t(p(), l, "gi-not-prose"),
46
36
  role: "alert",
47
37
  "aria-live": "assertive",
48
- ...m,
38
+ ...c,
49
39
  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(
40
+ o ? /* @__PURE__ */ i(N, { className: "gi-shrink-0 gi-block" }) : null,
41
+ /* @__PURE__ */ e(
60
42
  "div",
61
43
  {
62
- className: c(g(), {
63
- "gi-gap-1": e
44
+ className: t(g(), {
45
+ "gi-gap-1": r
64
46
  }),
65
47
  children: [
66
- e && /* @__PURE__ */ i("p", { className: p(), children: e }),
67
- a
48
+ r && /* @__PURE__ */ i("p", { className: u(), "data-testid": "alert-heading", children: r }),
49
+ n
68
50
  ]
69
51
  }
70
52
  ),
71
- t && /* @__PURE__ */ i(
72
- x,
53
+ m && /* @__PURE__ */ i(
54
+ V,
73
55
  {
74
- onClick: (N) => {
75
- u(!0), s == null || s(N);
56
+ onClick: (A) => {
57
+ d(!0), s == null || s(A);
76
58
  },
77
- className: b(),
59
+ className: h(),
78
60
  size: "small",
79
61
  appearance: "dark",
80
62
  variant: "flat",
@@ -89,5 +71,6 @@ function q({
89
71
  );
90
72
  }
91
73
  export {
74
+ E as ALERT_VARIANT_ICONS,
92
75
  q as Alert
93
76
  };
@@ -2,24 +2,23 @@ export declare const alertVariants: import('tailwind-variants').TVReturnType<{
2
2
  variant: {
3
3
  info: {
4
4
  base: string;
5
- baseDismissible: string;
6
- };
7
- danger: {
8
- base: string;
9
- baseDismissible: string;
5
+ icon: string;
10
6
  };
11
7
  success: {
12
8
  base: string;
13
- baseDismissible: string;
9
+ icon: string;
14
10
  };
15
11
  warning: {
16
12
  base: string;
17
- baseDismissible: string;
13
+ icon: string;
14
+ };
15
+ danger: {
16
+ base: string;
17
+ icon: string;
18
18
  };
19
19
  };
20
20
  }, {
21
21
  base: string;
22
- baseDismissible: string;
23
22
  container: string;
24
23
  heading: string;
25
24
  dismiss: string;
@@ -27,62 +26,61 @@ export declare const alertVariants: import('tailwind-variants').TVReturnType<{
27
26
  variant: {
28
27
  info: {
29
28
  base: string;
30
- baseDismissible: string;
31
- };
32
- danger: {
33
- base: string;
34
- baseDismissible: string;
29
+ icon: string;
35
30
  };
36
31
  success: {
37
32
  base: string;
38
- baseDismissible: string;
33
+ icon: string;
39
34
  };
40
35
  warning: {
41
36
  base: string;
42
- baseDismissible: string;
37
+ icon: string;
38
+ };
39
+ danger: {
40
+ base: string;
41
+ icon: string;
43
42
  };
44
43
  };
45
44
  }, {
46
45
  variant: {
47
46
  info: {
48
47
  base: string;
49
- baseDismissible: string;
50
- };
51
- danger: {
52
- base: string;
53
- baseDismissible: string;
48
+ icon: string;
54
49
  };
55
50
  success: {
56
51
  base: string;
57
- baseDismissible: string;
52
+ icon: string;
58
53
  };
59
54
  warning: {
60
55
  base: string;
61
- baseDismissible: string;
56
+ icon: string;
57
+ };
58
+ danger: {
59
+ base: string;
60
+ icon: string;
62
61
  };
63
62
  };
64
63
  }>, {
65
64
  variant: {
66
65
  info: {
67
66
  base: string;
68
- baseDismissible: string;
69
- };
70
- danger: {
71
- base: string;
72
- baseDismissible: string;
67
+ icon: string;
73
68
  };
74
69
  success: {
75
70
  base: string;
76
- baseDismissible: string;
71
+ icon: string;
77
72
  };
78
73
  warning: {
79
74
  base: string;
80
- baseDismissible: string;
75
+ icon: string;
76
+ };
77
+ danger: {
78
+ base: string;
79
+ icon: string;
81
80
  };
82
81
  };
83
82
  }, {
84
83
  base: string;
85
- baseDismissible: string;
86
84
  container: string;
87
85
  heading: string;
88
86
  dismiss: string;
@@ -90,24 +88,23 @@ export declare const alertVariants: import('tailwind-variants').TVReturnType<{
90
88
  variant: {
91
89
  info: {
92
90
  base: string;
93
- baseDismissible: string;
94
- };
95
- danger: {
96
- base: string;
97
- baseDismissible: string;
91
+ icon: string;
98
92
  };
99
93
  success: {
100
94
  base: string;
101
- baseDismissible: string;
95
+ icon: string;
102
96
  };
103
97
  warning: {
104
98
  base: string;
105
- baseDismissible: string;
99
+ icon: string;
100
+ };
101
+ danger: {
102
+ base: string;
103
+ icon: string;
106
104
  };
107
105
  };
108
106
  }, {
109
107
  base: string;
110
- baseDismissible: string;
111
108
  container: string;
112
109
  heading: string;
113
110
  dismiss: string;
@@ -115,38 +112,38 @@ export declare const alertVariants: import('tailwind-variants').TVReturnType<{
115
112
  variant: {
116
113
  info: {
117
114
  base: string;
118
- baseDismissible: string;
119
- };
120
- danger: {
121
- base: string;
122
- baseDismissible: string;
115
+ icon: string;
123
116
  };
124
117
  success: {
125
118
  base: string;
126
- baseDismissible: string;
119
+ icon: string;
127
120
  };
128
121
  warning: {
129
122
  base: string;
130
- baseDismissible: string;
123
+ icon: string;
124
+ };
125
+ danger: {
126
+ base: string;
127
+ icon: string;
131
128
  };
132
129
  };
133
130
  }, {
134
131
  variant: {
135
132
  info: {
136
133
  base: string;
137
- baseDismissible: string;
138
- };
139
- danger: {
140
- base: string;
141
- baseDismissible: string;
134
+ icon: string;
142
135
  };
143
136
  success: {
144
137
  base: string;
145
- baseDismissible: string;
138
+ icon: string;
146
139
  };
147
140
  warning: {
148
141
  base: string;
149
- baseDismissible: string;
142
+ icon: string;
143
+ };
144
+ danger: {
145
+ base: string;
146
+ icon: string;
150
147
  };
151
148
  };
152
149
  }>, unknown, unknown, undefined>>;
@@ -1,29 +1,28 @@
1
- import { c as i } from "../index-CB-zPpNk.js";
2
- const a = i({
1
+ import { c as t } from "../index-CB-zPpNk.js";
2
+ const i = t({
3
3
  slots: {
4
- base: "gi-alert-base",
5
- baseDismissible: "gi-alert-base-dismissible",
6
- container: "gi-alert-container",
7
- heading: "gi-alert-title",
8
- dismiss: "gi-alert-dismiss"
4
+ base: "gi-relative gi-flex gi-flex-row gi-p-3 gi-border-xs gi-rounded-sm gi-gap-2 gi-max-w-[640px] [width:inherit]",
5
+ container: "gi-flex gi-flex-col gi-items-start gi-grow gi-pr-2",
6
+ heading: "gi-text-2md gi-font-bold",
7
+ dismiss: "gi-absolute gi-top-2 gi-right-2"
9
8
  },
10
9
  variants: {
11
10
  variant: {
12
11
  info: {
13
- base: "gi-alert-info",
14
- baseDismissible: "gi-alert-info"
15
- },
16
- danger: {
17
- base: "gi-alert-danger",
18
- baseDismissible: "gi-alert-danger"
12
+ base: "gi-bg-color-surface-intent-info-default gi-border-color-border-intent-info-subtle gi-text-color-text-intent-info-default",
13
+ icon: "gi-text-color-icon-intent-info-default"
19
14
  },
20
15
  success: {
21
- base: "gi-alert-success",
22
- baseDismissible: "gi-alert-success"
16
+ base: "gi-bg-color-surface-intent-success-default gi-border-color-border-intent-success-subtle gi-text-color-text-intent-success-default",
17
+ icon: "gi-text-color-icon-intent-success-default"
23
18
  },
24
19
  warning: {
25
- base: "gi-alert-warning",
26
- baseDismissible: "gi-alert-warning"
20
+ base: "gi-bg-color-surface-intent-warning-default gi-border-color-border-intent-warning-subtle gi-text-color-text-intent-warning-default",
21
+ icon: "gi-text-color-icon-intent-warning-default"
22
+ },
23
+ danger: {
24
+ base: "gi-bg-color-surface-intent-error-default gi-border-color-border-intent-error-subtle gi-text-color-text-intent-error-default",
25
+ icon: "gi-text-color-icon-intent-error-default"
27
26
  }
28
27
  }
29
28
  },
@@ -32,5 +31,5 @@ const a = i({
32
31
  }
33
32
  });
34
33
  export {
35
- a as alertVariants
34
+ i as alertVariants
36
35
  };
@@ -1,10 +1,10 @@
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
- type Props = {
7
+ export type Props = {
8
8
  id?: string;
9
9
  variant?: (typeof Variant)[keyof typeof Variant];
10
10
  appearance?: (typeof Appearance)[keyof typeof Appearance];
@@ -20,6 +20,7 @@ type Props = {
20
20
  ariaLabel?: string;
21
21
  ariaLabelledBy?: string;
22
22
  ariaDescribedBy?: string;
23
+ ariaChecked?: boolean;
23
24
  ariaPressed?: boolean | 'mixed';
24
25
  ariaExpanded?: boolean;
25
26
  ariaControls?: string;
@@ -31,7 +32,6 @@ type Props = {
31
32
  value?: string;
32
33
  tabIndex?: number;
33
34
  dataTestId?: string;
34
- dataTestid?: string;
35
35
  ref?: any;
36
36
  };
37
37
  export declare const Variant: {
@@ -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;