@adgytec/adgytec-web-ui-components 0.0.14 → 0.0.16

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 (144) hide show
  1. package/dist/Button-D2HmL9lT.js +34 -0
  2. package/dist/ButtonLink-Bj0h692A.js +36 -0
  3. package/dist/Disclosure-Dmi6UFSF.js +28 -0
  4. package/dist/FilledButton-SnAf5REc.js +10 -0
  5. package/dist/{Link-EXFlPw9F.js → Link-wdtV3-eC.js} +2 -2
  6. package/dist/Menu-B3oiOXZP.js +36 -0
  7. package/dist/MenuLabel-sb6mKBOL.js +14 -0
  8. package/dist/ModalBase-B6E_69dY.js +25 -0
  9. package/dist/{NavigationMenu-C1AJ6mt-.js → NavigationMenu-C64WpZpH.js} +5 -5
  10. package/dist/{NavigationSidebar-DWmAgVuG.js → NavigationSidebar-CdQlKp5A.js} +13 -13
  11. package/dist/OutlinedButton-Bna2lY_l.js +10 -0
  12. package/dist/{Popover-D3iGWJwQ.js → Popover-sX7uB5r0.js} +1 -1
  13. package/dist/Sidebar-BWZan2PF.js +50 -0
  14. package/dist/Splash-DnaqZnSX.js +46 -0
  15. package/dist/TextButton-CoRHw1vC.js +10 -0
  16. package/dist/ToggleButton-DuG32EKD.js +31 -0
  17. package/dist/{Tooltip-D6naAVUi.js → Tooltip-B2vjUO40.js} +1 -1
  18. package/dist/assets/Menu.css +1 -0
  19. package/dist/assets/MenuLabel.css +1 -1
  20. package/dist/assets/ModalBase.css +1 -1
  21. package/dist/assets/Popover.css +1 -1
  22. package/dist/assets/Sidebar.css +1 -1
  23. package/dist/assets/index2.css +1 -0
  24. package/dist/assets/index5.css +1 -0
  25. package/dist/assets/index6.css +1 -0
  26. package/dist/components/Avatar/index.js +33 -4
  27. package/dist/components/Button/ButtonBase/index.d.ts +1 -0
  28. package/dist/components/Button/ButtonBase/index.js +5 -0
  29. package/dist/components/Button/{types.d.ts → ButtonBase/types.d.ts} +1 -1
  30. package/dist/components/Button/ButtonChild/index.js +50 -0
  31. package/dist/components/Button/{FilledButton.d.ts → FilledButton/FilledButton.d.ts} +1 -1
  32. package/dist/components/Button/FilledButton/index.d.ts +1 -0
  33. package/dist/components/Button/FilledButton/index.js +4 -0
  34. package/dist/components/Button/{OutlinedButton.d.ts → OutlinedButton/OutlinedButton.d.ts} +1 -1
  35. package/dist/components/Button/OutlinedButton/index.d.ts +1 -0
  36. package/dist/components/Button/OutlinedButton/index.js +4 -0
  37. package/dist/components/Button/{TextButton.d.ts → TextButton/TextButton.d.ts} +1 -1
  38. package/dist/components/Button/TextButton/index.d.ts +1 -0
  39. package/dist/components/Button/TextButton/index.js +4 -0
  40. package/dist/components/Button/{ToggleButton.d.ts → ToggleButton/ToggleButton.d.ts} +1 -1
  41. package/dist/components/Button/ToggleButton/index.d.ts +1 -0
  42. package/dist/components/Button/ToggleButton/index.js +4 -0
  43. package/dist/components/Disclosure/Disclosure/index.js +1 -1
  44. package/dist/components/Disclosure/DisclousureGroup/index.js +7 -2
  45. package/dist/components/Error/index.js +5 -2
  46. package/dist/components/Form/Form/index.js +46 -3
  47. package/dist/components/Form/Input/index.js +31 -2
  48. package/dist/components/Form/TextArea/index.js +31 -2
  49. package/dist/components/Link/{FilledButtonLink.d.ts → FilledButtonLink/FilledButtonLink.d.ts} +1 -1
  50. package/dist/components/Link/FilledButtonLink/index.d.ts +1 -0
  51. package/dist/components/Link/FilledButtonLink/index.js +7 -0
  52. package/dist/components/Link/LinkBase/index.d.ts +2 -0
  53. package/dist/components/Link/LinkBase/index.js +4 -0
  54. package/dist/components/Link/{types.d.ts → LinkBase/types.d.ts} +1 -1
  55. package/dist/components/Link/{OutlinedButtonLink.d.ts → OutlinedButtonLink/OutlinedButtonLink.d.ts} +1 -1
  56. package/dist/components/Link/OutlinedButtonLink/index.d.ts +1 -0
  57. package/dist/components/Link/OutlinedButtonLink/index.js +7 -0
  58. package/dist/components/Menu/MenuBase/index.d.ts +1 -0
  59. package/dist/components/Menu/MenuBase/index.js +1 -0
  60. package/dist/components/Menu/{types.d.ts → MenuBase/types.d.ts} +2 -2
  61. package/dist/components/Menu/{MenuButton.d.ts → MenuButton/MenuButton.d.ts} +1 -1
  62. package/dist/components/Menu/MenuButton/index.d.ts +1 -0
  63. package/dist/components/Menu/MenuButton/index.js +6 -0
  64. package/dist/components/Menu/{MenuLabel.d.ts → MenuLabel/MenuLabel.d.ts} +1 -1
  65. package/dist/components/Menu/MenuLabel/index.d.ts +1 -0
  66. package/dist/components/Menu/MenuLabel/index.js +4 -0
  67. package/dist/components/Modal/ModalAction/index.js +49 -4
  68. package/dist/components/Modal/ModalAction/types.d.ts +2 -6
  69. package/dist/components/Modal/ModalBase/index.js +1 -1
  70. package/dist/components/Modal/ModalBase/types.d.ts +1 -1
  71. package/dist/components/Navigation/NavigationMenu/index.js +1 -1
  72. package/dist/components/Navigation/NavigationResponsive/index.js +10 -2
  73. package/dist/components/Navigation/NavigationSidebar/index.js +1 -1
  74. package/dist/components/Popover/{index.d.ts → PopoverBase/index.d.ts} +0 -1
  75. package/dist/components/Popover/PopoverBase/index.js +4 -0
  76. package/dist/components/Popover/{types.d.ts → PopoverBase/types.d.ts} +1 -1
  77. package/dist/components/Popover/{PopoverDialog.d.ts → PopoverDialog/PopoverDialog.d.ts} +1 -1
  78. package/dist/components/Popover/PopoverDialog/index.d.ts +1 -0
  79. package/dist/components/Popover/PopoverDialog/index.js +15 -0
  80. package/dist/components/Select/index.js +86 -2
  81. package/dist/components/Select/types.d.ts +1 -1
  82. package/dist/components/Sidebar/index.js +1 -1
  83. package/dist/components/Sidebar/types.d.ts +1 -1
  84. package/dist/components/Success/index.js +5 -2
  85. package/dist/components/ToggleButtonGroup/index.js +27 -2
  86. package/dist/components/Tooltip/index.js +1 -1
  87. package/dist/index.d.ts +0 -26
  88. package/dist/index.js +2 -71
  89. package/package.json +204 -70
  90. package/dist/Avatar-BRt91J0i.js +0 -35
  91. package/dist/ButtonChild-BTPuUMU5.js +0 -50
  92. package/dist/Disclosure-CL9F01im.js +0 -28
  93. package/dist/DisclousreGroup-BfpSfSQm.js +0 -9
  94. package/dist/Error--Jbz8Uoy.js +0 -7
  95. package/dist/Form-B7w2oUTu.js +0 -48
  96. package/dist/Input-fPkzWJI-.js +0 -33
  97. package/dist/MenuButton-KQA8EJUq.js +0 -6
  98. package/dist/MenuLabel-J8M7UwkA.js +0 -43
  99. package/dist/ModalAction-BGTO18jV.js +0 -52
  100. package/dist/ModalBase-DQHNXJXh.js +0 -25
  101. package/dist/NavigationResponsive-CET-JF26.js +0 -12
  102. package/dist/OutlinedButton-gr4wDzFi.js +0 -14
  103. package/dist/OutlinedButtonLink-DlQkc-PA.js +0 -36
  104. package/dist/PopoverDialog-DHJavBLj.js +0 -15
  105. package/dist/Select-pUuSraok.js +0 -85
  106. package/dist/Sidebar-LlVvowsG.js +0 -50
  107. package/dist/Success-FBfAAtBv.js +0 -7
  108. package/dist/TextArea-BqYpfMqm.js +0 -33
  109. package/dist/TextButton-BmQL4LNA.js +0 -37
  110. package/dist/ToggleButtonGroup-BhCWMTxP.js +0 -51
  111. package/dist/assets/Error.css +0 -1
  112. package/dist/assets/Input.css +0 -1
  113. package/dist/assets/Success.css +0 -1
  114. package/dist/components/Button/index.d.ts +0 -4
  115. package/dist/components/Button/index.js +0 -10
  116. package/dist/components/ButtonChild/index.js +0 -5
  117. package/dist/components/Link/index.d.ts +0 -4
  118. package/dist/components/Link/index.js +0 -7
  119. package/dist/components/Menu/index.d.ts +0 -3
  120. package/dist/components/Menu/index.js +0 -6
  121. package/dist/components/Modal/index.d.ts +0 -2
  122. package/dist/components/Modal/index.js +0 -8
  123. package/dist/components/Navigation/index.d.ts +0 -3
  124. package/dist/components/Navigation/index.js +0 -8
  125. package/dist/components/Popover/index.js +0 -6
  126. package/dist/types-C1YOMbh5.js +0 -4
  127. package/dist/useSplash-DOL9j-2c.js +0 -49
  128. /package/dist/assets/{useSplash.css → Splash.css} +0 -0
  129. /package/dist/assets/{ToggleButtonGroup.css → index.css} +0 -0
  130. /package/dist/assets/{ButtonChild.css → index10.css} +0 -0
  131. /package/dist/assets/{Avatar.css → index11.css} +0 -0
  132. /package/dist/assets/{Select.css → index3.css} +0 -0
  133. /package/dist/assets/{TextArea.css → index4.css} +0 -0
  134. /package/dist/assets/{DisclousreGroup.css → index7.css} +0 -0
  135. /package/dist/assets/{ModalAction.css → index8.css} +0 -0
  136. /package/dist/assets/{Form.css → index9.css} +0 -0
  137. /package/dist/components/Button/{Button.d.ts → ButtonBase/Button.d.ts} +0 -0
  138. /package/dist/components/Button/{ButtonLink.d.ts → ButtonBase/ButtonLink.d.ts} +0 -0
  139. /package/dist/components/{ButtonChild → Button/ButtonChild}/ButtonChild.d.ts +0 -0
  140. /package/dist/components/{ButtonChild → Button/ButtonChild}/index.d.ts +0 -0
  141. /package/dist/components/{ButtonChild → Button/ButtonChild}/types.d.ts +0 -0
  142. /package/dist/components/Link/{Link.d.ts → LinkBase/Link.d.ts} +0 -0
  143. /package/dist/components/Menu/{Menu.d.ts → MenuBase/Menu.d.ts} +0 -0
  144. /package/dist/components/Popover/{Popover.d.ts → PopoverBase/Popover.d.ts} +0 -0
@@ -0,0 +1,34 @@
1
+ import { jsx as s, jsxs as l, Fragment as c } from "react/jsx-runtime";
2
+ import { u as $, s as t, S as u } from "./Splash-DnaqZnSX.js";
3
+ import { Button as d } from "react-aria-components";
4
+ import { T as x } from "./Tooltip-B2vjUO40.js";
5
+ import { ButtonShape as a, ButtonVariant as S } from "./components/Button/ButtonBase/index.js";
6
+ import { ColorTheme as g } from "./index.js";
7
+ const C = ({
8
+ variant: i,
9
+ theme: m = g.primary,
10
+ shape: r = a.rectangle,
11
+ description: f,
12
+ children: n,
13
+ ...e
14
+ }) => {
15
+ const { coords: o, handlePress: p } = $(e.onPress), h = typeof n == "function";
16
+ return r === a.shrink && i !== S.text && (r = a.rectangle), /* @__PURE__ */ s(x, { theme: m, description: f, children: /* @__PURE__ */ s(
17
+ d,
18
+ {
19
+ ...e,
20
+ className: e.className ?? `${t.button} ${t["button-link"]} ${t[i]} ${t[m]} ${t[r]}`,
21
+ onPress: p,
22
+ children: h ? (B) => /* @__PURE__ */ l(c, { children: [
23
+ o && /* @__PURE__ */ s(u, { ...o }),
24
+ n(B)
25
+ ] }) : /* @__PURE__ */ l(c, { children: [
26
+ o && /* @__PURE__ */ s(u, { ...o }),
27
+ n
28
+ ] })
29
+ }
30
+ ) });
31
+ };
32
+ export {
33
+ C as B
34
+ };
@@ -0,0 +1,36 @@
1
+ import { jsx as r, jsxs as i, Fragment as a } from "react/jsx-runtime";
2
+ import { u as $, s as o, S as l } from "./Splash-DnaqZnSX.js";
3
+ import { Link as B } from "react-aria-components";
4
+ import { T as S } from "./Tooltip-B2vjUO40.js";
5
+ import { ButtonVariant as k, ButtonShape as x } from "./components/Button/ButtonBase/index.js";
6
+ import { ColorTheme as y } from "./index.js";
7
+ const F = ({
8
+ variant: m = k.filled,
9
+ theme: n = y.primary,
10
+ shape: u = x.rectangle,
11
+ description: p,
12
+ underline: c = !0,
13
+ children: s,
14
+ ...e
15
+ }) => {
16
+ const { coords: t, handlePress: f } = $(e.onPress), d = typeof s == "function";
17
+ return /* @__PURE__ */ r(S, { theme: n, description: p, children: /* @__PURE__ */ r(
18
+ B,
19
+ {
20
+ ...e,
21
+ ...c && { "data-underline": !0 },
22
+ onPress: f,
23
+ className: `${o.button} ${o["button-link"]} ${o[m]} ${o[n]} ${o[u]}`,
24
+ children: d ? (h) => /* @__PURE__ */ i(a, { children: [
25
+ t && /* @__PURE__ */ r(l, { ...t }),
26
+ s(h)
27
+ ] }) : /* @__PURE__ */ i(a, { children: [
28
+ t && /* @__PURE__ */ r(l, { ...t }),
29
+ s
30
+ ] })
31
+ }
32
+ ) });
33
+ };
34
+ export {
35
+ F as B
36
+ };
@@ -0,0 +1,28 @@
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
+ import { Disclosure as c, DisclosurePanel as l } from "react-aria-components";
3
+ import { ChevronRight as n } from "lucide-react";
4
+ import { T as a } from "./TextButton-CoRHw1vC.js";
5
+ import { ColorTheme as m } from "./index.js";
6
+ import { ButtonShape as p } from "./components/Button/ButtonBase/index.js";
7
+ import './assets/Disclosure.css';const h = "_disclosure_1cz7p_1", u = "_trigger_1cz7p_23", g = "_panel_1cz7p_55", e = {
8
+ disclosure: h,
9
+ trigger: u,
10
+ panel: g
11
+ }, N = ({ heading: o, children: t, id: i }) => /* @__PURE__ */ s(c, { className: e.disclosure, id: i, children: [
12
+ /* @__PURE__ */ r("h2", { className: e.trigger, children: /* @__PURE__ */ s(
13
+ a,
14
+ {
15
+ slot: "trigger",
16
+ theme: m.inverseSurface,
17
+ shape: p.shrink,
18
+ children: [
19
+ /* @__PURE__ */ r(n, {}),
20
+ o
21
+ ]
22
+ }
23
+ ) }),
24
+ /* @__PURE__ */ r(l, { className: e.panel, children: /* @__PURE__ */ r("p", { children: t }) })
25
+ ] });
26
+ export {
27
+ N as D
28
+ };
@@ -0,0 +1,10 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ButtonVariant as n } from "./components/Button/ButtonBase/index.js";
3
+ import { B as i } from "./Button-D2HmL9lT.js";
4
+ const l = (t) => {
5
+ const { children: o } = t;
6
+ return /* @__PURE__ */ r(i, { ...t, variant: n.filled, children: o });
7
+ };
8
+ export {
9
+ l as F
10
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { Link as t } from "react-aria-components";
3
- import { C as _ } from "./types-C1YOMbh5.js";
4
- import { T as c } from "./Tooltip-D6naAVUi.js";
3
+ import { ColorTheme as _ } from "./index.js";
4
+ import { T as c } from "./Tooltip-B2vjUO40.js";
5
5
  import './assets/Link.css';const m = "_link_e0vn4_1", y = "_primary_e0vn4_65", v = "_secondary_e0vn4_81", l = "_tertiary_e0vn4_89", p = "_error_e0vn4_97", u = "_success_e0vn4_113", s = {
6
6
  link: m,
7
7
  primary: y,
@@ -0,0 +1,36 @@
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { MenuTrigger as c, Menu as u, Separator as l, MenuItem as p, SubmenuTrigger as d } from "react-aria-components";
3
+ import { P as i } from "./Popover-sX7uB5r0.js";
4
+ import { ChevronRight as h } from "lucide-react";
5
+ import './assets/Menu.css';const _ = "_menu_ul0b1_1", f = "_separator_ul0b1_85", t = {
6
+ menu: _,
7
+ "menu-item": "_menu-item_ul0b1_13",
8
+ "item-node": "_item-node_ul0b1_23",
9
+ separator: f
10
+ }, m = ({ menuItem: e }) => {
11
+ if (e.type === "separator")
12
+ return /* @__PURE__ */ r(l, { className: `${t.separator}` });
13
+ const s = !!e.subItems?.length, n = /* @__PURE__ */ o(
14
+ p,
15
+ {
16
+ className: `${t["menu-item"]} ${t[e.type]}`,
17
+ onAction: e.onPress,
18
+ href: e.href,
19
+ target: e.target,
20
+ children: [
21
+ e.node,
22
+ s && /* @__PURE__ */ r(h, {})
23
+ ]
24
+ }
25
+ );
26
+ return s ? /* @__PURE__ */ o(d, { children: [
27
+ n,
28
+ /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(u, { className: `${t.menu}`, children: e.subItems.map((a) => /* @__PURE__ */ r(m, { menuItem: a }, a.id)) }) })
29
+ ] }) : n;
30
+ }, N = ({ children: e, menuItems: s }) => /* @__PURE__ */ o(c, { children: [
31
+ e,
32
+ /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(u, { className: `${t.menu}`, children: s.map((n) => /* @__PURE__ */ r(m, { menuItem: n }, n.id)) }) })
33
+ ] });
34
+ export {
35
+ N as M
36
+ };
@@ -0,0 +1,14 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { M as l } from "./Menu-B3oiOXZP.js";
3
+ import { Pressable as t } from "react-aria-components";
4
+ import { T as a } from "./Tooltip-B2vjUO40.js";
5
+ import './assets/MenuLabel.css';const p = "_pressable_13cip_1", n = {
6
+ pressable: p
7
+ }, f = ({
8
+ children: e,
9
+ menuItems: r,
10
+ description: o
11
+ }) => /* @__PURE__ */ s(l, { menuItems: r, children: /* @__PURE__ */ s(a, { description: o, children: /* @__PURE__ */ s(t, { children: /* @__PURE__ */ s("span", { role: "button", className: n.pressable, children: e }) }) }) });
12
+ export {
13
+ f as M
14
+ };
@@ -0,0 +1,25 @@
1
+ import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
+ import { DialogTrigger as c, ModalOverlay as i, Modal as t, Dialog as n } from "react-aria-components";
3
+ import './assets/ModalBase.css';const g = "_modal_8gqed_1", o = {
4
+ "modal-overlay": "_modal-overlay_8gqed_1",
5
+ modal: g
6
+ }, M = ({
7
+ trigger: e,
8
+ modalOverlayProps: l,
9
+ dialogTriggerProps: s,
10
+ modalProps: d,
11
+ ...r
12
+ }) => /* @__PURE__ */ m(c, { ...s, children: [
13
+ e,
14
+ /* @__PURE__ */ a(
15
+ i,
16
+ {
17
+ ...l,
18
+ className: l?.className ?? o["modal-overlay"],
19
+ children: /* @__PURE__ */ a(t, { ...d, className: o.modal, children: /* @__PURE__ */ a(n, { ...r }) })
20
+ }
21
+ )
22
+ ] });
23
+ export {
24
+ M
25
+ };
@@ -1,9 +1,9 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
- import { M as u } from "./MenuLabel-J8M7UwkA.js";
3
- import { L as m } from "./Link-EXFlPw9F.js";
4
- import { T as i } from "./TextButton-BmQL4LNA.js";
5
- import { C as n } from "./types-C1YOMbh5.js";
6
- import { a as c } from "./useSplash-DOL9j-2c.js";
2
+ import { M as u } from "./MenuLabel-sb6mKBOL.js";
3
+ import { L as m } from "./Link-wdtV3-eC.js";
4
+ import { T as i } from "./TextButton-CoRHw1vC.js";
5
+ import { ColorTheme as n } from "./index.js";
6
+ import { ButtonShape as c } from "./components/Button/ButtonBase/index.js";
7
7
  import { ChevronDown as p } from "lucide-react";
8
8
  import './assets/NavigationMenu.css';const h = "_menu_sata7_1", d = {
9
9
  menu: h
@@ -1,32 +1,32 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { T as r } from "./TextButton-BmQL4LNA.js";
3
- import { a as s } from "./useSplash-DOL9j-2c.js";
4
- import { S as m } from "./Sidebar-LlVvowsG.js";
2
+ import { T as r } from "./TextButton-CoRHw1vC.js";
3
+ import { ButtonShape as o } from "./components/Button/ButtonBase/index.js";
4
+ import { S as m } from "./Sidebar-BWZan2PF.js";
5
5
  import { T as c } from "./Tree-DwJPCnFr.js";
6
6
  import { X as l, Menu as h } from "lucide-react";
7
- import { C as p } from "./types-C1YOMbh5.js";
8
- import './assets/NavigationSidebar.css';const f = "_nav_1fjh5_1", d = "_close_1fjh5_15", o = {
7
+ import { ColorTheme as p } from "./index.js";
8
+ import './assets/NavigationSidebar.css';const f = "_nav_1fjh5_1", d = "_close_1fjh5_15", s = {
9
9
  nav: f,
10
10
  close: d
11
11
  }, N = ({
12
- items: a,
13
- ...t
12
+ items: t,
13
+ ...a
14
14
  }) => /* @__PURE__ */ e(
15
15
  m,
16
16
  {
17
- ...t,
18
- trigger: /* @__PURE__ */ e(r, { shape: s.square, children: /* @__PURE__ */ e(h, {}) }),
19
- children: ({ close: n }) => /* @__PURE__ */ i("div", { className: o.nav, children: [
20
- /* @__PURE__ */ e("div", { className: o.close, children: /* @__PURE__ */ e(
17
+ ...a,
18
+ trigger: /* @__PURE__ */ e(r, { shape: o.square, children: /* @__PURE__ */ e(h, {}) }),
19
+ children: ({ close: n }) => /* @__PURE__ */ i("div", { className: s.nav, children: [
20
+ /* @__PURE__ */ e("div", { className: s.close, children: /* @__PURE__ */ e(
21
21
  r,
22
22
  {
23
23
  onPress: n,
24
- shape: s.square,
24
+ shape: o.square,
25
25
  theme: p.inverseSurface,
26
26
  children: /* @__PURE__ */ e(l, {})
27
27
  }
28
28
  ) }),
29
- /* @__PURE__ */ e(c, { items: a })
29
+ /* @__PURE__ */ e(c, { items: t })
30
30
  ] })
31
31
  }
32
32
  );
@@ -0,0 +1,10 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { ButtonVariant as r } from "./components/Button/ButtonBase/index.js";
3
+ import { B as i } from "./Button-D2HmL9lT.js";
4
+ const e = (t) => {
5
+ const { children: o } = t;
6
+ return /* @__PURE__ */ n(i, { ...t, variant: r.outlined, children: o });
7
+ };
8
+ export {
9
+ e as O
10
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { Popover as e } from "react-aria-components";
3
- import './assets/Popover.css';const p = "_popover_1o45j_1", s = {
3
+ import './assets/Popover.css';const p = "_popover_1b6s0_1", s = {
4
4
  popover: p
5
5
  }, a = (o) => /* @__PURE__ */ r(
6
6
  e,
@@ -0,0 +1,50 @@
1
+ import { jsxs as u, jsx as a } from "react/jsx-runtime";
2
+ import { DialogTrigger as f, ModalOverlay as m, Modal as x, Dialog as h } from "react-aria-components";
3
+ import './assets/Sidebar.css';var r = /* @__PURE__ */ ((l) => (l.inlineStart = "inline-start", l.inlineEnd = "inline-end", l.blockStart = "block-start", l.blockEnd = "block-end", l))(r || {}), t = /* @__PURE__ */ ((l) => (l.full = "full", l.threeQuarters = "three-quarters", l.half = "half", l.quarter = "quarter", l))(t || {});
4
+ const k = "_modal_xld0i_1", b = "_full_xld0i_291", q = "_half_xld0i_313", y = "_quarter_xld0i_321", e = {
5
+ "modal-overlay": "_modal-overlay_xld0i_1",
6
+ "modal-fade": "_modal-fade_xld0i_1",
7
+ modal: k,
8
+ "inline-start": "_inline-start_xld0i_117",
9
+ "inline-slide": "_inline-slide_xld0i_1",
10
+ "inline-end": "_inline-end_xld0i_145",
11
+ "block-start": "_block-start_xld0i_173",
12
+ "block-slide": "_block-slide_xld0i_1",
13
+ "block-end": "_block-end_xld0i_201",
14
+ full: b,
15
+ "three-quarters": "_three-quarters_xld0i_305",
16
+ half: q,
17
+ quarter: y
18
+ }, p = ({
19
+ children: l,
20
+ trigger: n,
21
+ sidebarPosition: i = r.inlineStart,
22
+ sidebarSize: _ = t.full,
23
+ isDismissable: d,
24
+ isKeyboardDismissableDisabled: o
25
+ }) => {
26
+ const s = typeof l == "function";
27
+ return /* @__PURE__ */ u(f, { children: [
28
+ n,
29
+ /* @__PURE__ */ a(
30
+ m,
31
+ {
32
+ className: `${e["modal-overlay"]}`,
33
+ isDismissable: d,
34
+ isKeyboardDismissDisabled: o,
35
+ children: /* @__PURE__ */ a(
36
+ x,
37
+ {
38
+ className: `${e.modal} ${e[i]} ${e[_]}`,
39
+ children: /* @__PURE__ */ a(h, { children: s ? (c) => l(c) : l })
40
+ }
41
+ )
42
+ }
43
+ )
44
+ ] });
45
+ };
46
+ export {
47
+ p as S,
48
+ r as a,
49
+ t as b
50
+ };
@@ -0,0 +1,46 @@
1
+ import { useState as _, useRef as n, useEffect as o } from "react";
2
+ import { jsx as i } from "react/jsx-runtime";
3
+ import './assets/Splash.css';const u = "_button_c4lxb_1", x = "_square_c4lxb_115", b = "_avatar_c4lxb_131", y = "_rectangle_c4lxb_147", d = "_shrink_c4lxb_159", m = "_primary_c4lxb_171", p = "_secondary_c4lxb_191", f = "_tertiary_c4lxb_201", h = "_error_c4lxb_211", v = "_success_c4lxb_231", k = "_filled_c4lxb_243", S = "_outlined_c4lxb_253", g = "_text_c4lxb_263", j = {
4
+ button: u,
5
+ "button-link": "_button-link_c4lxb_83",
6
+ square: x,
7
+ avatar: b,
8
+ rectangle: y,
9
+ shrink: d,
10
+ primary: m,
11
+ "primary-variant": "_primary-variant_c4lxb_181",
12
+ secondary: p,
13
+ tertiary: f,
14
+ error: h,
15
+ "inverse-surface": "_inverse-surface_c4lxb_221",
16
+ success: v,
17
+ filled: k,
18
+ outlined: S,
19
+ text: g
20
+ }, w = (r) => {
21
+ const [e, s] = _(null), l = n(0);
22
+ let c = n(void 0), a = (t) => {
23
+ s({ id: l.current++, x: t.x, y: t.y }), t.x !== -1 && t.y !== -1 && (clearTimeout(c.current), c.current = setTimeout(() => s(null), 500)), r?.(t);
24
+ };
25
+ return o(() => () => {
26
+ clearTimeout(c.current);
27
+ }, []), { coords: e, handlePress: a };
28
+ }, q = "_splash_zhwi0_1", T = {
29
+ splash: q
30
+ }, z = ({ id: r, x: e, y: s }) => /* @__PURE__ */ i(
31
+ "div",
32
+ {
33
+ className: `${T.splash}`,
34
+ style: {
35
+ insetInlineStart: e,
36
+ insetBlockStart: s,
37
+ translate: "-50% -50%"
38
+ }
39
+ },
40
+ `${r}`
41
+ );
42
+ export {
43
+ z as S,
44
+ j as s,
45
+ w as u
46
+ };
@@ -0,0 +1,10 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ButtonVariant as n } from "./components/Button/ButtonBase/index.js";
3
+ import { B as a } from "./Button-D2HmL9lT.js";
4
+ const s = (t) => {
5
+ const { children: o } = t;
6
+ return /* @__PURE__ */ r(a, { ...t, variant: n.text, children: o });
7
+ };
8
+ export {
9
+ s as T
10
+ };
@@ -0,0 +1,31 @@
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { ToggleButton as p } from "react-aria-components";
3
+ import { u, s as o, S as c } from "./Splash-DnaqZnSX.js";
4
+ import { ColorTheme as g } from "./index.js";
5
+ import { T as h } from "./Tooltip-B2vjUO40.js";
6
+ import { ButtonVariant as T, ButtonShape as f } from "./components/Button/ButtonBase/index.js";
7
+ const y = ({
8
+ id: s,
9
+ value: e,
10
+ description: a,
11
+ isDisabled: n,
12
+ theme: m = g.primary
13
+ }) => {
14
+ const { coords: t, handlePress: l } = u();
15
+ return /* @__PURE__ */ r(h, { description: a, children: /* @__PURE__ */ i(
16
+ p,
17
+ {
18
+ id: s,
19
+ onPress: l,
20
+ className: `${o.button} ${o[m]} ${o[T.outlined]} ${o[f.rectangle]}`,
21
+ isDisabled: n,
22
+ children: [
23
+ t && /* @__PURE__ */ r(c, { ...t }),
24
+ e
25
+ ]
26
+ }
27
+ ) });
28
+ };
29
+ export {
30
+ y as T
31
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
2
  import { TooltipTrigger as c, Tooltip as g, OverlayArrow as n } from "react-aria-components";
3
- import { C as p } from "./types-C1YOMbh5.js";
3
+ import { ColorTheme as p } from "./index.js";
4
4
  import './assets/Tooltip.css';const l = "_tooltip_xgkug_1", u = "_primary_xgkug_133", m = "_secondary_xgkug_153", x = "_tertiary_xgkug_163", y = "_error_xgkug_173", k = "_success_xgkug_193", o = {
5
5
  tooltip: l,
6
6
  "tooltip-arrow": "_tooltip-arrow_xgkug_53",
@@ -0,0 +1 @@
1
+ ._menu_ul0b1_1{display:grid;gap:.5rem;border-radius:inherit}._menu-item_ul0b1_13{inline-size:100%;display:grid;border-radius:inherit}._menu-item_ul0b1_13:not(._item-node_ul0b1_23){padding-block:.375rem;padding-inline:.5rem;color:var(--_item-text);background-color:var(--_item-color);text-decoration:none;cursor:pointer}._menu-item_ul0b1_13:not(._item-node_ul0b1_23)[data-has-submenu]{display:flex;gap:.25rem;align-items:center;justify-content:space-between}._menu-item_ul0b1_13:not(._item-node_ul0b1_23)[data-hovered],._menu-item_ul0b1_13:not(._item-node_ul0b1_23)[data-focus-visible],._menu-item_ul0b1_13:not(._item-node_ul0b1_23)[data-open]{--_item-color: hsl(from var(--_popover-bg) h s calc(l + 10) );--_item-text: hsl(from var(--_popover-text) h s calc(l + 10) )}._menu-item_ul0b1_13:not(._item-node_ul0b1_23)[data-selected]{--_item-color: hsl(from var(--_popover-bg) h s calc(l - 10) );--_item-text: hsl(from var(--_popover-text) h s calc(l - 10) )}._separator_ul0b1_85{background-color:var(--color-outline);block-size:.075rem;margin-block:.25rem}
@@ -1 +1 @@
1
- ._menu_vx3e4_1{display:grid;gap:.5rem;border-radius:inherit}._menu-item_vx3e4_13{inline-size:100%;display:grid;border-radius:inherit}._menu-item_vx3e4_13:not(._item-node_vx3e4_23){padding-block:.375rem;padding-inline:.5rem;color:var(--_item-text);background-color:var(--_item-color);text-decoration:none;cursor:pointer}._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-has-submenu]{display:flex;gap:.25rem;align-items:center;justify-content:space-between}._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-hovered],._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-focus-visible],._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-open]{--_item-color: hsl(from var(--_popover-bg) h s calc(l + 10) );--_item-text: hsl(from var(--_popover-text) h s calc(l + 10) )}._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-selected]{--_item-color: hsl(from var(--_popover-bg) h s calc(l - 10) );--_item-text: hsl(from var(--_popover-text) h s calc(l - 10) )}._separator_vx3e4_85{background-color:var(--color-outline);block-size:.075rem;margin-block:.25rem}._pressable_vx3e4_99{display:flex;align-items:center;gap:.25rem;cursor:pointer}._pressable_vx3e4_99 svg{width:.875em}
1
+ ._pressable_13cip_1{display:flex;align-items:center;gap:.25rem;cursor:pointer}._pressable_13cip_1 svg{width:.875em}
@@ -1 +1 @@
1
- ._modal-overlay_nlxyg_1{background-color:hsl(from var(--color-surface) h s l / .5);-webkit-backdrop-filter:blur(.25rem);backdrop-filter:blur(.25rem);position:fixed;inset:0;display:flex;align-items:center;justify-content:center}._modal-overlay_nlxyg_1[data-entering]{animation:_modal-fade_nlxyg_1 .2s}._modal-overlay_nlxyg_1[data-exiting]{animation:_modal-fade_nlxyg_1 .15s reverse ease-in}._modal_nlxyg_1{--_modal-bg: var(--color-surface-container);--_modal-text: var(--colol-on-surface);max-inline-size:min(90dvi,60rem);max-block-size:90dvb;overflow:scroll;border-radius:var(--radius);box-shadow:var(--elevation-1);padding-inline:clamp(1rem,2vi,1.5rem);padding-block:clamp(1rem,2vi,1.5rem);background-color:var(--_modal-bg);color:var(--_modal-text)}._modal_nlxyg_1[data-entering]{animation:_modal-zoom_nlxyg_1 .3s cubic-bezier(.175,.885,.32,1.275)}@keyframes _modal-fade_nlxyg_1{0%{opacity:0}to{opacity:1}}@keyframes _modal-zoom_nlxyg_1{0%{transform:scale(.8)}to{transform:scale(1)}}
1
+ ._modal-overlay_8gqed_1{background-color:hsl(from var(--color-surface) h s l / .5);-webkit-backdrop-filter:blur(.25rem);backdrop-filter:blur(.25rem);position:fixed;inset:0;display:flex;align-items:center;justify-content:center}._modal-overlay_8gqed_1[data-entering]{animation:_modal-fade_8gqed_1 .2s}._modal-overlay_8gqed_1[data-exiting]{animation:_modal-fade_8gqed_1 .15s reverse ease-in}._modal_8gqed_1{--_modal-bg: var(--color-surface-container);--_modal-text: var(--colol-on-surface);max-inline-size:min(90dvi,60rem);max-block-size:90dvb;overflow:auto;border-radius:var(--radius);box-shadow:var(--elevation-1);padding-inline:clamp(1rem,2vi,1.5rem);padding-block:clamp(1rem,2vi,1.5rem);background-color:var(--_modal-bg);color:var(--_modal-text)}._modal_8gqed_1[data-entering]{animation:_modal-zoom_8gqed_1 .3s cubic-bezier(.175,.885,.32,1.275)}@keyframes _modal-fade_8gqed_1{0%{opacity:0}to{opacity:1}}@keyframes _modal-zoom_8gqed_1{0%{transform:scale(.8)}to{transform:scale(1)}}
@@ -1 +1 @@
1
- ._popover_1o45j_1{--_popover-bg: var(--color-surface-container);--_popover-color: var(--colol-on-surface);background-color:var(--_popover-bg);color:var(--_popover-color);padding-inline:.5em;padding-block:.5em;overflow:scroll;max-inline-size:min(90vi,50rem);min-inline-size:min(25vi,10rem);box-shadow:var(--elevation-2);border-radius:var(--radius);transition:transform .25s,opacity .25s;transform:translateZ(0)}._popover_1o45j_1[data-placement=bottom]{--_origin: translateY(-.25rem)}._popover_1o45j_1[data-placement=top]{--_origin: translateY(.25rem)}._popover_1o45j_1[data-placement=right]{--_origin: translateX(-.25rem)}._popover_1o45j_1[data-placement=left]{--_origin: translateX(.25rem)}._popover_1o45j_1[data-entering],._popover_1o45j_1[data-exiting]{transform:var(--_origin);opacity:0}
1
+ ._popover_1b6s0_1{--_popover-bg: var(--color-surface-container);--_popover-color: var(--colol-on-surface);background-color:var(--_popover-bg);color:var(--_popover-color);padding-inline:.5em;padding-block:.5em;overflow:auto;max-inline-size:min(90vi,50rem);min-inline-size:min(25vi,10rem);box-shadow:var(--elevation-2);border-radius:var(--radius);transition:transform .25s,opacity .25s;transform:translateZ(0)}._popover_1b6s0_1[data-placement=bottom]{--_origin: translateY(-.25rem)}._popover_1b6s0_1[data-placement=top]{--_origin: translateY(.25rem)}._popover_1b6s0_1[data-placement=right]{--_origin: translateX(-.25rem)}._popover_1b6s0_1[data-placement=left]{--_origin: translateX(.25rem)}._popover_1b6s0_1[data-entering],._popover_1b6s0_1[data-exiting]{transform:var(--_origin);opacity:0}
@@ -1 +1 @@
1
- ._modal-overlay_gp54h_1{--_animation-duration: .3s;background-color:hsl(from var(--color-surface) h s l / .5);-webkit-backdrop-filter:blur(.25rem);backdrop-filter:blur(.25rem);position:fixed;inset:0}._modal-overlay_gp54h_1[data-entering]{animation:_modal-fade_gp54h_1 var(--_animation-duration)}._modal-overlay_gp54h_1[data-exiting]{animation:_modal-fade_gp54h_1 var(--_animation-duration) reverse ease-in}._modal_gp54h_1{--_modal-bg: var(--color-surface-container);--_modal-text: var(--colol-on-surface);position:fixed;overflow:scroll;inset-inline-start:var(--_inline-start);inset-block-start:var(--_block-start);inset-inline-end:var(--_inline-end);inset-block-end:var(--_block-end);padding-inline:clamp(1.5rem,2.25vi,2rem);padding-block:clamp(1.5rem,2.25vi,2rem);background-color:var(--_modal-bg);color:var(--_modal-text);border-width:0;border-style:solid;border-color:var(--color-outline);box-shadow:var(--elevation-1)}._modal_gp54h_1[data-entering]{animation-duration:var(--_animation-duration);animation-name:var(--_slide-animation)}._modal_gp54h_1[data-exiting]{animation-duration:var(--_animation-duration);animation-timing-function:ease-in;animation-name:var(--_slide-animation);animation-direction:reverse}._inline-start_gp54h_117{--_inline-start: 0;--_block-start: 0;--_block-end: 0;--_inline-end: var(--_size);--_from: -100%;--_slide-animation: _inline-slide_gp54h_1;border-start-end-radius:var(--radius-sidebar);border-end-end-radius:var(--radius-sidebar)}._inline-end_gp54h_145{--_inline-end: 0;--_block-start: 0;--_block-end: 0;--_inline-start: var(--_size);--_from: 100%;--_slide-animation: _inline-slide_gp54h_1;border-start-start-radius:var(--radius-sidebar);border-end-start-radius:var(--radius-sidebar)}._block-start_gp54h_173{--_inline-end: 0;--_inline-start: 0;--_block-start: 0;--_block-end: var(--_size);--_from: -100%;--_slide-animation: _block-slide_gp54h_1;border-end-start-radius:var(--radius-sidebar);border-end-end-radius:var(--radius-sidebar)}._block-end_gp54h_201{--_inline-end: 0;--_inline-start: 0;--_block-end: 0;--_block-start: var(--_size);--_from: 100%;--_slide-animation: _block-slide_gp54h_1;border-start-end-radius:var(--radius-sidebar);border-start-start-radius:var(--radius-sidebar)}@keyframes _modal-fade_gp54h_1{0%{opacity:0}to{opacity:1}}@keyframes _inline-slide_gp54h_1{0%{transform:translate(var(--_from))}to{transform:translate(0)}}@keyframes _block-slide_gp54h_1{0%{transform:translateY(var(--_from))}to{transform:translateY(0)}}._full_gp54h_291{--_size: 0;border-radius:0;border:none}._three-quarters_gp54h_305{--_size: 25%}._half_gp54h_313{--_size: 50%}._quarter_gp54h_321{--_size: 75%}
1
+ ._modal-overlay_xld0i_1{--_animation-duration: .3s;background-color:hsl(from var(--color-surface) h s l / .5);-webkit-backdrop-filter:blur(.25rem);backdrop-filter:blur(.25rem);position:fixed;inset:0}._modal-overlay_xld0i_1[data-entering]{animation:_modal-fade_xld0i_1 var(--_animation-duration)}._modal-overlay_xld0i_1[data-exiting]{animation:_modal-fade_xld0i_1 var(--_animation-duration) reverse ease-in}._modal_xld0i_1{--_modal-bg: var(--color-surface-container);--_modal-text: var(--colol-on-surface);position:fixed;overflow:auto;inset-inline-start:var(--_inline-start);inset-block-start:var(--_block-start);inset-inline-end:var(--_inline-end);inset-block-end:var(--_block-end);padding-inline:clamp(1.5rem,2.25vi,2rem);padding-block:clamp(1.5rem,2.25vi,2rem);background-color:var(--_modal-bg);color:var(--_modal-text);border-width:0;border-style:solid;border-color:var(--color-outline);box-shadow:var(--elevation-1)}._modal_xld0i_1[data-entering]{animation-duration:var(--_animation-duration);animation-name:var(--_slide-animation)}._modal_xld0i_1[data-exiting]{animation-duration:var(--_animation-duration);animation-timing-function:ease-in;animation-name:var(--_slide-animation);animation-direction:reverse}._inline-start_xld0i_117{--_inline-start: 0;--_block-start: 0;--_block-end: 0;--_inline-end: var(--_size);--_from: -100%;--_slide-animation: _inline-slide_xld0i_1;border-start-end-radius:var(--radius-sidebar);border-end-end-radius:var(--radius-sidebar)}._inline-end_xld0i_145{--_inline-end: 0;--_block-start: 0;--_block-end: 0;--_inline-start: var(--_size);--_from: 100%;--_slide-animation: _inline-slide_xld0i_1;border-start-start-radius:var(--radius-sidebar);border-end-start-radius:var(--radius-sidebar)}._block-start_xld0i_173{--_inline-end: 0;--_inline-start: 0;--_block-start: 0;--_block-end: var(--_size);--_from: -100%;--_slide-animation: _block-slide_xld0i_1;border-end-start-radius:var(--radius-sidebar);border-end-end-radius:var(--radius-sidebar)}._block-end_xld0i_201{--_inline-end: 0;--_inline-start: 0;--_block-end: 0;--_block-start: var(--_size);--_from: 100%;--_slide-animation: _block-slide_xld0i_1;border-start-end-radius:var(--radius-sidebar);border-start-start-radius:var(--radius-sidebar)}@keyframes _modal-fade_xld0i_1{0%{opacity:0}to{opacity:1}}@keyframes _inline-slide_xld0i_1{0%{transform:translate(var(--_from))}to{transform:translate(0)}}@keyframes _block-slide_xld0i_1{0%{transform:translateY(var(--_from))}to{transform:translateY(0)}}._full_xld0i_291{--_size: 0;border-radius:0;border:none}._three-quarters_xld0i_305{--_size: 25%}._half_xld0i_313{--_size: 50%}._quarter_xld0i_321{--_size: 75%}
@@ -0,0 +1 @@
1
+ ._success_1r4la_1{font-size:.875rem;font-weight:var(--font-weight-bold);color:var(--color-success)}
@@ -0,0 +1 @@
1
+ ._input_1ksju_1{display:grid;gap:var(--form-input-gap, .25rem)}._editor_1ksju_11{outline:none;font-weight:var(--font-weight-medium);border-radius:var(--radius);padding-inline:.625em;padding-block:.625em;max-inline-size:100%;inline-size:100%;border:.125rem solid var(--color-outline);background-color:inherit;color:inherit;font-size:var(--form-input-text);transition:border-color .25s}._editor_1ksju_11[data-focused]{border-color:var(--color-primary)}._editor_1ksju_11[data-invalid]{border-color:var(--color-error)}
@@ -0,0 +1 @@
1
+ ._error_imsl6_1{font-size:.875rem;font-weight:var(--font-weight-bold);color:var(--color-error)}
@@ -1,6 +1,35 @@
1
- import { A as t, a as A, b as e } from "../../Avatar-BRt91J0i.js";
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { ColorTheme as c } from "../../index.js";
3
+ import '../../assets/index11.css';var m = /* @__PURE__ */ ((r) => (r.small = "small", r.normal = "normal", r.large = "large", r))(m || {}), n = /* @__PURE__ */ ((r) => (r.image = "image", r.node = "node", r))(n || {});
4
+ const g = "_avatar_4gio0_1", l = "_node_4gio0_37", y = "_image_4gio0_61", d = "_small_4gio0_79", p = "_normal_4gio0_89", u = "_large_4gio0_99", v = "_primary_4gio0_111", f = "_secondary_4gio0_131", $ = "_tertiary_4gio0_141", x = "_error_4gio0_151", j = "_success_4gio0_171", e = {
5
+ avatar: g,
6
+ node: l,
7
+ image: y,
8
+ small: d,
9
+ normal: p,
10
+ large: u,
11
+ primary: v,
12
+ "primary-variant": "_primary-variant_4gio0_121",
13
+ secondary: f,
14
+ tertiary: $,
15
+ error: x,
16
+ "inverse-surface": "_inverse-surface_4gio0_161",
17
+ success: j
18
+ }, i = ({ children: r, size: a, type: o, theme: _ }) => /* @__PURE__ */ s(
19
+ "div",
20
+ {
21
+ className: `${e.avatar} ${e[a]} ${e[o]} ${e[_]}`,
22
+ children: r
23
+ }
24
+ ), N = ({
25
+ src: r,
26
+ children: a,
27
+ size: o = m.normal,
28
+ label: _,
29
+ theme: t = c.primary
30
+ }) => a ? /* @__PURE__ */ s(i, { type: n.node, size: o, theme: t, children: a }) : /* @__PURE__ */ s(i, { size: o, type: n.image, theme: t, children: /* @__PURE__ */ s("img", { src: r, alt: _ }) });
2
31
  export {
3
- t as Avatar,
4
- A as AvatarSize,
5
- e as AvatarType
32
+ N as Avatar,
33
+ m as AvatarSize,
34
+ n as AvatarType
6
35
  };
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1,5 @@
1
+ var e = /* @__PURE__ */ ((r) => (r.filled = "filled", r.outlined = "outlined", r.text = "text", r))(e || {}), l = /* @__PURE__ */ ((r) => (r.rectangle = "rectangle", r.square = "square", r.avatar = "avatar", r.shrink = "shrink", r))(l || {});
2
+ export {
3
+ l as ButtonShape,
4
+ e as ButtonVariant
5
+ };
@@ -1,4 +1,4 @@
1
- import { ColorTheme } from '../../utils/types';
1
+ import { ColorTheme } from '../../../utils/types';
2
2
  import { ButtonProps as AriaButtonProps, LinkProps, Key } from 'react-aria-components';
3
3
  export declare enum ButtonVariant {
4
4
  filled = "filled",
@@ -0,0 +1,50 @@
1
+ import { jsx as n, Fragment as m, jsxs as s } from "react/jsx-runtime";
2
+ import { L as b } from "../../../Loader-CLMHp6L7.js";
3
+ import { TriangleAlert as t, Check as g } from "lucide-react";
4
+ import '../../../assets/index10.css';var a = /* @__PURE__ */ ((e) => (e.enabled = "enabled", e.disabled = "disabled", e.pending = "pending", e.completed = "completed", e.error = "error", e))(a || {});
5
+ const c = {
6
+ "with-icon": "_with-icon_1rah3_1"
7
+ }, x = ({ buttonState: e, value: d }) => {
8
+ const {
9
+ enabled: i,
10
+ disabled: l = i,
11
+ pending: o = i,
12
+ completed: p = i,
13
+ error: h = "Try again"
14
+ } = d;
15
+ let r;
16
+ switch (e) {
17
+ case a.enabled:
18
+ r = i;
19
+ break;
20
+ case a.disabled:
21
+ r = l;
22
+ break;
23
+ case a.pending:
24
+ r = /* @__PURE__ */ s("span", { className: c["with-icon"], children: [
25
+ /* @__PURE__ */ n(b, {}),
26
+ " ",
27
+ o
28
+ ] });
29
+ break;
30
+ case a.completed:
31
+ r = /* @__PURE__ */ s("span", { className: c["with-icon"], children: [
32
+ /* @__PURE__ */ n(g, {}),
33
+ " ",
34
+ p
35
+ ] });
36
+ break;
37
+ case a.error:
38
+ r = /* @__PURE__ */ s("span", { className: c["with-icon"], children: [
39
+ /* @__PURE__ */ n(t, {}),
40
+ " ",
41
+ h
42
+ ] });
43
+ break;
44
+ }
45
+ return /* @__PURE__ */ n(m, { children: r });
46
+ };
47
+ export {
48
+ x as ButtonChild,
49
+ a as ButtonState
50
+ };
@@ -1,2 +1,2 @@
1
- import { ButtonVariantProps } from './types';
1
+ import { ButtonVariantProps } from '../ButtonBase';
2
2
  export declare const FilledButton: (props: ButtonVariantProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './FilledButton';
@@ -0,0 +1,4 @@
1
+ import { F as e } from "../../../FilledButton-SnAf5REc.js";
2
+ export {
3
+ e as FilledButton
4
+ };
@@ -1,2 +1,2 @@
1
- import { ButtonVariantProps } from './types';
1
+ import { ButtonVariantProps } from '../ButtonBase';
2
2
  export declare const OutlinedButton: (props: ButtonVariantProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './OutlinedButton';
@@ -0,0 +1,4 @@
1
+ import { O as e } from "../../../OutlinedButton-Bna2lY_l.js";
2
+ export {
3
+ e as OutlinedButton
4
+ };
@@ -1,2 +1,2 @@
1
- import { ButtonVariantProps } from './types';
1
+ import { ButtonVariantProps } from '../ButtonBase';
2
2
  export declare const TextButton: (props: ButtonVariantProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TextButton';