@adgytec/adgytec-web-ui-components 1.0.0 → 1.1.1

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 (217) hide show
  1. package/dist/assets/Avatar.css +1 -0
  2. package/dist/assets/BaseCard.css +1 -1
  3. package/dist/assets/ButtonChild.css +1 -0
  4. package/dist/assets/Container.css +1 -0
  5. package/dist/assets/Disclosure.css +1 -1
  6. package/dist/assets/DisclousreGroup.css +1 -0
  7. package/dist/assets/Error.css +1 -0
  8. package/dist/assets/FieldError.css +1 -1
  9. package/dist/assets/Form.css +1 -0
  10. package/dist/assets/Input.css +1 -0
  11. package/dist/assets/Link.css +1 -1
  12. package/dist/assets/Loader.css +1 -1
  13. package/dist/assets/Menu.css +1 -1
  14. package/dist/assets/MenuLabel.css +1 -1
  15. package/dist/assets/ModalAction.css +1 -0
  16. package/dist/assets/ModalBase.css +1 -1
  17. package/dist/assets/NavigationMenu.css +1 -1
  18. package/dist/assets/NavigationSidebar.css +1 -1
  19. package/dist/assets/Popover.css +1 -1
  20. package/dist/assets/Select.css +1 -0
  21. package/dist/assets/Sidebar.css +1 -1
  22. package/dist/assets/Success.css +1 -0
  23. package/dist/assets/TextArea.css +1 -0
  24. package/dist/assets/Toast.css +1 -0
  25. package/dist/assets/ToggleButtonGroup.css +1 -0
  26. package/dist/assets/Tooltip.css +1 -1
  27. package/dist/assets/Tree.css +1 -1
  28. package/dist/assets/useSplash.css +1 -0
  29. package/dist/chunks/Avatar +42 -0
  30. package/dist/chunks/BaseCard +33 -0
  31. package/dist/chunks/Button +39 -0
  32. package/dist/chunks/ButtonChild +47 -0
  33. package/dist/chunks/ButtonLink +40 -0
  34. package/dist/chunks/ComponentShapeSwitcher +47 -0
  35. package/dist/chunks/Container +21 -0
  36. package/dist/chunks/Disclosure +25 -0
  37. package/dist/chunks/DisclousreGroup +18 -0
  38. package/dist/chunks/Error +8 -0
  39. package/dist/chunks/FieldError +25 -0
  40. package/dist/chunks/FilledButton +9 -0
  41. package/dist/chunks/FilledButtonLink +6 -0
  42. package/dist/chunks/Form +52 -0
  43. package/dist/chunks/GradientCard +6 -0
  44. package/dist/chunks/Image +32 -0
  45. package/dist/chunks/Input +34 -0
  46. package/dist/chunks/Link +31 -0
  47. package/dist/chunks/Loader +9 -0
  48. package/dist/chunks/Menu +56 -0
  49. package/dist/chunks/MenuButton +6 -0
  50. package/dist/chunks/MenuLabel +15 -0
  51. package/dist/chunks/ModalAction +52 -0
  52. package/dist/chunks/ModalBase +31 -0
  53. package/dist/chunks/NavigationMenu +48 -0
  54. package/dist/chunks/NavigationResponsive +12 -0
  55. package/dist/chunks/NavigationSidebar +34 -0
  56. package/dist/chunks/OutlinedButton +9 -0
  57. package/dist/chunks/OutlinedButtonLink +6 -0
  58. package/dist/chunks/Popover +15 -0
  59. package/dist/chunks/PopoverDialog +15 -0
  60. package/dist/chunks/Select +121 -0
  61. package/dist/chunks/Sidebar +54 -0
  62. package/dist/chunks/SolidCard +9 -0
  63. package/dist/chunks/Success +8 -0
  64. package/dist/chunks/TextArea +34 -0
  65. package/dist/chunks/TextButton +9 -0
  66. package/dist/chunks/ThemeSwitcher +53 -0
  67. package/dist/chunks/Toast +49 -0
  68. package/dist/chunks/ToggleButton +35 -0
  69. package/dist/chunks/ToggleButtonGroup +29 -0
  70. package/dist/chunks/Tooltip +29 -0
  71. package/dist/chunks/Tree +36 -0
  72. package/dist/chunks/Viewport +16 -0
  73. package/dist/chunks/useSplash +48 -0
  74. package/dist/components/Avatar/Avatar.d.ts +1 -1
  75. package/dist/components/Avatar/index.d.ts +1 -1
  76. package/dist/components/Avatar/index.js +2 -33
  77. package/dist/components/Avatar/types.d.ts +9 -14
  78. package/dist/components/Button/ButtonBase/ButtonLink.d.ts +1 -1
  79. package/dist/components/Button/ButtonBase/index.d.ts +1 -1
  80. package/dist/components/Button/ButtonBase/index.js +1 -5
  81. package/dist/components/Button/ButtonBase/types.d.ts +4 -16
  82. package/dist/components/Button/ButtonChild/ButtonChild.d.ts +1 -1
  83. package/dist/components/Button/ButtonChild/index.d.ts +1 -1
  84. package/dist/components/Button/ButtonChild/index.js +2 -48
  85. package/dist/components/Button/ButtonChild/types.d.ts +1 -7
  86. package/dist/components/Button/FilledButton/index.js +1 -1
  87. package/dist/components/Button/OutlinedButton/index.js +1 -1
  88. package/dist/components/Button/TextButton/index.js +1 -1
  89. package/dist/components/Button/ToggleButton/index.js +1 -1
  90. package/dist/components/Card/BaseCard/index.d.ts +1 -1
  91. package/dist/components/Card/BaseCard/index.js +2 -3
  92. package/dist/components/Card/BaseCard/types.d.ts +2 -9
  93. package/dist/components/Card/GradientCard/index.js +2 -4
  94. package/dist/components/Card/SolidCard/index.js +2 -7
  95. package/dist/components/Container/Container.d.ts +2 -0
  96. package/dist/components/Container/index.d.ts +2 -0
  97. package/dist/components/Container/index.js +4 -0
  98. package/dist/components/Container/types.d.ts +5 -0
  99. package/dist/components/Disclosure/Disclosure/Disclosure.d.ts +1 -1
  100. package/dist/components/Disclosure/Disclosure/index.d.ts +1 -1
  101. package/dist/components/Disclosure/Disclosure/index.js +1 -1
  102. package/dist/components/Disclosure/Disclosure/types.d.ts +2 -0
  103. package/dist/components/Disclosure/DisclousureGroup/index.d.ts +1 -1
  104. package/dist/components/Disclosure/DisclousureGroup/index.js +2 -7
  105. package/dist/components/Error/index.d.ts +1 -1
  106. package/dist/components/Error/index.js +2 -5
  107. package/dist/components/Form/Form/index.d.ts +1 -1
  108. package/dist/components/Form/Form/index.js +2 -46
  109. package/dist/components/Form/Input/index.d.ts +1 -1
  110. package/dist/components/Form/Input/index.js +2 -31
  111. package/dist/components/Form/TextArea/index.d.ts +1 -1
  112. package/dist/components/Form/TextArea/index.js +2 -31
  113. package/dist/components/Image/Image.d.ts +3 -0
  114. package/dist/components/Image/ImageSource.d.ts +3 -0
  115. package/dist/components/Image/ImageVariants.d.ts +3 -0
  116. package/dist/components/Image/index.d.ts +2 -0
  117. package/dist/components/Image/index.js +4 -0
  118. package/dist/components/Image/types.d.ts +17 -0
  119. package/dist/components/Link/FilledButtonLink/index.js +1 -4
  120. package/dist/components/Link/LinkBase/index.d.ts +1 -1
  121. package/dist/components/Link/LinkBase/index.js +1 -1
  122. package/dist/components/Link/OutlinedButtonLink/index.js +2 -5
  123. package/dist/components/Loader/index.js +1 -1
  124. package/dist/components/Menu/MenuBase/index.d.ts +1 -1
  125. package/dist/components/Menu/MenuButton/index.js +2 -4
  126. package/dist/components/Menu/MenuLabel/index.js +1 -1
  127. package/dist/components/Modal/ModalAction/index.d.ts +1 -1
  128. package/dist/components/Modal/ModalAction/index.js +2 -49
  129. package/dist/components/Modal/ModalAction/types.d.ts +1 -4
  130. package/dist/components/Modal/ModalBase/index.d.ts +1 -1
  131. package/dist/components/Modal/ModalBase/index.js +1 -1
  132. package/dist/components/Navigation/NavigationMenu/index.d.ts +1 -1
  133. package/dist/components/Navigation/NavigationMenu/index.js +1 -1
  134. package/dist/components/Navigation/NavigationResponsive/index.d.ts +1 -1
  135. package/dist/components/Navigation/NavigationResponsive/index.js +2 -10
  136. package/dist/components/Navigation/NavigationSidebar/index.d.ts +1 -1
  137. package/dist/components/Navigation/NavigationSidebar/index.js +1 -1
  138. package/dist/components/Popover/PopoverBase/index.d.ts +1 -1
  139. package/dist/components/Popover/PopoverBase/index.js +1 -1
  140. package/dist/components/Popover/PopoverDialog/index.js +2 -13
  141. package/dist/components/Select/index.d.ts +1 -1
  142. package/dist/components/Select/index.js +2 -89
  143. package/dist/components/Sidebar/index.d.ts +1 -1
  144. package/dist/components/Sidebar/index.js +2 -4
  145. package/dist/components/Sidebar/types.d.ts +2 -12
  146. package/dist/components/Success/index.d.ts +1 -1
  147. package/dist/components/Success/index.js +2 -5
  148. package/dist/components/Toast/Toast.d.ts +2 -0
  149. package/dist/components/Toast/index.d.ts +2 -0
  150. package/dist/components/Toast/index.js +4 -0
  151. package/dist/components/Toast/types.d.ts +12 -0
  152. package/dist/components/ToggleButtonGroup/index.d.ts +1 -1
  153. package/dist/components/ToggleButtonGroup/index.js +2 -27
  154. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  155. package/dist/components/Tooltip/index.d.ts +1 -1
  156. package/dist/components/Tooltip/index.js +1 -1
  157. package/dist/components/Tree/index.d.ts +1 -1
  158. package/dist/components/Tree/index.js +1 -1
  159. package/dist/components/Viewport/Viewport.d.ts +1 -0
  160. package/dist/components/Viewport/index.d.ts +1 -0
  161. package/dist/components/Viewport/index.js +4 -0
  162. package/dist/components/VisualSettings/ComponentShapeSwitcher/ComponentShapeSwitcher.d.ts +0 -1
  163. package/dist/components/VisualSettings/ComponentShapeSwitcher/index.d.ts +1 -1
  164. package/dist/components/VisualSettings/ComponentShapeSwitcher/index.js +2 -4
  165. package/dist/components/VisualSettings/ComponentShapeSwitcher/types.d.ts +7 -5
  166. package/dist/components/VisualSettings/ThemeSwitcher/ThemeSwitcher.d.ts +0 -1
  167. package/dist/components/VisualSettings/ThemeSwitcher/index.d.ts +1 -1
  168. package/dist/components/VisualSettings/ThemeSwitcher/index.js +1 -1
  169. package/dist/components/VisualSettings/ThemeSwitcher/types.d.ts +7 -1
  170. package/dist/index.d.ts +43 -1
  171. package/dist/index.js +80 -3
  172. package/dist/utils/types.d.ts +2 -13
  173. package/package.json +73 -226
  174. package/dist/BaseCard-DrG8XXVz.js +0 -30
  175. package/dist/Button-Dtvxu-co.js +0 -34
  176. package/dist/ButtonLink-fUZZI7JR.js +0 -36
  177. package/dist/ComponentShapeSwitcher-CY_93STw.js +0 -46
  178. package/dist/Disclosure-BGdAnqQv.js +0 -28
  179. package/dist/FieldError-CvUKcRtm.js +0 -17
  180. package/dist/FilledButton-SpEu55ES.js +0 -10
  181. package/dist/Link-Be6F1iXD.js +0 -31
  182. package/dist/Loader-CLMHp6L7.js +0 -8
  183. package/dist/Menu-DvZqs_yA.js +0 -55
  184. package/dist/MenuLabel-B0FrGXKS.js +0 -14
  185. package/dist/ModalBase-DOU0cBij.js +0 -27
  186. package/dist/NavigationMenu-DqDfWOnJ.js +0 -49
  187. package/dist/NavigationSidebar-Dx2ww8hp.js +0 -35
  188. package/dist/OutlinedButton-QAeXI3Dj.js +0 -10
  189. package/dist/Popover-CNBII_iI.js +0 -14
  190. package/dist/Sidebar-BqNH6hIl.js +0 -52
  191. package/dist/Splash-neeaI9j6.js +0 -46
  192. package/dist/TextButton-CWDZaF0c.js +0 -10
  193. package/dist/ThemeSwitcher-Nf1-Z_ql.js +0 -48
  194. package/dist/ToggleButton-DPy_Urwc.js +0 -31
  195. package/dist/Tooltip-D-jCnOvo.js +0 -29
  196. package/dist/Tree-DwJPCnFr.js +0 -35
  197. package/dist/assets/Splash.css +0 -1
  198. package/dist/assets/index.css +0 -1
  199. package/dist/assets/index10.css +0 -1
  200. package/dist/assets/index11.css +0 -1
  201. package/dist/assets/index12.css +0 -1
  202. package/dist/assets/index13.css +0 -1
  203. package/dist/assets/index2.css +0 -1
  204. package/dist/assets/index3.css +0 -1
  205. package/dist/assets/index4.css +0 -1
  206. package/dist/assets/index5.css +0 -1
  207. package/dist/assets/index6.css +0 -1
  208. package/dist/assets/index7.css +0 -1
  209. package/dist/assets/index8.css +0 -1
  210. package/dist/assets/index9.css +0 -1
  211. package/dist/components/VisualSettings/VisualSettings/VisualSettings.d.ts +0 -3
  212. package/dist/components/VisualSettings/VisualSettings/index.d.ts +0 -2
  213. package/dist/components/VisualSettings/VisualSettings/index.js +0 -124
  214. package/dist/components/VisualSettings/VisualSettings/types.d.ts +0 -3
  215. package/dist/index-BG6gd3OK.js +0 -118
  216. package/dist/styles/main.css +0 -208
  217. package/dist/vite.svg +0 -1
@@ -1,2 +1,2 @@
1
1
  export * from './DisclousreGroup';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,9 +1,4 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { D as i } from "../../../Disclosure-BGdAnqQv.js";
3
- import { DisclosureGroup as u } from "react-aria-components";
4
- import '../../../assets/index7.css';const e = {
5
- "disclosure-group": "_disclosure-group_vh6v0_1"
6
- }, p = ({ items: o }) => /* @__PURE__ */ s(u, { className: e["disclosure-group"], children: o.map((r) => /* @__PURE__ */ s(i, { heading: r.heading, id: r.id, children: r.children }, r.id)) });
1
+ import { D as s } from "../../../chunks/DisclousreGroup";
7
2
  export {
8
- p as DisclosureGroup
3
+ s as DisclosureGroup
9
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './Error';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,7 +1,4 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import '../../assets/index6.css';const s = "_error_imsl6_1", e = {
3
- error: s
4
- }, c = ({ children: r }) => /* @__PURE__ */ o("p", { className: `${e.error}`, children: r });
1
+ import { E } from "../../chunks/Error";
5
2
  export {
6
- c as Error
3
+ E as Error
7
4
  };
@@ -1,2 +1,2 @@
1
- export * from './types';
1
+ export type * from './types';
2
2
  export * from './Form';
@@ -1,48 +1,4 @@
1
- import * as f from "zod";
2
- import { jsx as i } from "react/jsx-runtime";
3
- import { Form as l } from "react-aria-components";
4
- import { useState as d } from "react";
5
- import '../../../assets/index9.css';const E = "_form_1k1fe_1", F = {
6
- form: E
7
- }, b = (s, t) => {
8
- const e = Object.fromEntries(new FormData(s)), r = t.safeParse(e);
9
- return r.success ? {
10
- success: !0,
11
- data: r.data
12
- } : {
13
- success: !1,
14
- errors: f.flattenError(r.error).fieldErrors
15
- };
16
- }, _ = ({
17
- schema: s,
18
- onSubmit: t,
19
- children: e,
20
- ...r
21
- }) => {
22
- const [u, o] = d({});
23
- return /* @__PURE__ */ i(
24
- l,
25
- {
26
- ...r,
27
- validationErrors: u,
28
- onSubmit: async (m) => {
29
- m.preventDefault(), o({});
30
- const n = m.currentTarget, a = b(n, s);
31
- if (!a.success) {
32
- o(a.errors);
33
- return;
34
- }
35
- const c = await t(a.data, () => n.reset());
36
- if (c) {
37
- o(c);
38
- return;
39
- }
40
- },
41
- className: r.className ?? F.form,
42
- children: e
43
- }
44
- );
45
- };
1
+ import { F as m } from "../../../chunks/Form";
46
2
  export {
47
- _ as Form
3
+ m as Form
48
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './Input';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,33 +1,4 @@
1
- import { jsxs as a, jsx as s } from "react/jsx-runtime";
2
- import { TextField as c, Input as m } from "react-aria-components";
3
- import { L as u, F as p } from "../../../FieldError-CvUKcRtm.js";
4
- import '../../../assets/index5.css';const d = "_input_1ksju_1", l = "_editor_1ksju_11", o = {
5
- input: d,
6
- editor: l
7
- }, f = ({
8
- label: t,
9
- textFieldProps: r,
10
- inputProps: e,
11
- labelProps: i,
12
- fieldErrorProps: n
13
- }) => /* @__PURE__ */ a(
14
- c,
15
- {
16
- ...r,
17
- className: r?.className ?? o.input,
18
- children: [
19
- t && /* @__PURE__ */ s(u, { ...i, children: t }),
20
- /* @__PURE__ */ s(
21
- m,
22
- {
23
- ...e,
24
- className: e?.className ?? o.editor
25
- }
26
- ),
27
- /* @__PURE__ */ s(p, { ...n })
28
- ]
29
- }
30
- );
1
+ import { I as r } from "../../../chunks/Input";
31
2
  export {
32
- f as Input
3
+ r as Input
33
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './TextArea';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,33 +1,4 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { TextField as m, TextArea as x } from "react-aria-components";
3
- import { L as d, F as l } from "../../../FieldError-CvUKcRtm.js";
4
- import '../../../assets/index4.css';const n = "_textarea_3agtk_1", _ = "_editor_3agtk_11", s = {
5
- textarea: n,
6
- editor: _
7
- }, g = ({
8
- label: t,
9
- textFieldProps: a,
10
- textAreaProps: r,
11
- labelProps: o,
12
- fieldErrorProps: c
13
- }) => /* @__PURE__ */ i(
14
- m,
15
- {
16
- ...a,
17
- className: a?.className ?? s.textarea,
18
- children: [
19
- t && /* @__PURE__ */ e(d, { ...o, children: t }),
20
- /* @__PURE__ */ e(
21
- x,
22
- {
23
- ...r,
24
- className: r?.className ?? s.editor
25
- }
26
- ),
27
- /* @__PURE__ */ e(l, { ...c })
28
- ]
29
- }
30
- );
1
+ import { T as a } from "../../../chunks/TextArea";
31
2
  export {
32
- g as TextArea
3
+ a as TextArea
33
4
  };
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ImageProps } from './types';
3
+ export declare const Image: React.FC<ImageProps>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ImageSourceProps } from './types';
3
+ export declare const ImageSource: React.FC<ImageSourceProps>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ImageVariantProps } from './types';
3
+ export declare const ImageVariants: React.FC<ImageVariantProps>;
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ export * from './Image';
@@ -0,0 +1,4 @@
1
+ import { I as m } from "../../chunks/Image";
2
+ export {
3
+ m as Image
4
+ };
@@ -0,0 +1,17 @@
1
+ export type ImageVariant = "thumbnail" | "small" | "medium" | "large" | "extraLarge";
2
+ export type ImageVariants = Record<ImageVariant, string>;
3
+ type NativeImageProps = Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src" | "srcSet">;
4
+ export type ImageSourceProps = NativeImageProps & {
5
+ type: "source";
6
+ src: string;
7
+ original?: never;
8
+ variants?: never;
9
+ };
10
+ export type ImageVariantProps = NativeImageProps & {
11
+ type: "variants";
12
+ src?: never;
13
+ original: string;
14
+ variants: ImageVariants;
15
+ };
16
+ export type ImageProps = ImageSourceProps | ImageVariantProps;
17
+ export {};
@@ -1,7 +1,4 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { B as r } from "../../../ButtonLink-fUZZI7JR.js";
3
- import { ButtonVariant as i } from "../../Button/ButtonBase/index.js";
4
- const e = (t) => /* @__PURE__ */ o(r, { ...t, variant: i.filled });
1
+ import { F as e } from "../../../chunks/FilledButtonLink";
5
2
  export {
6
3
  e as FilledButtonLink
7
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './Link';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,4 +1,4 @@
1
- import { L } from "../../../Link-Be6F1iXD.js";
1
+ import { L } from "../../../chunks/Link";
2
2
  export {
3
3
  L as Link
4
4
  };
@@ -1,7 +1,4 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { B as n } from "../../../ButtonLink-fUZZI7JR.js";
3
- import { ButtonVariant as r } from "../../Button/ButtonBase/index.js";
4
- const a = (t) => /* @__PURE__ */ o(n, { ...t, variant: r.outlined });
1
+ import { O as o } from "../../../chunks/OutlinedButtonLink";
5
2
  export {
6
- a as OutlinedButtonLink
3
+ o as OutlinedButtonLink
7
4
  };
@@ -1,4 +1,4 @@
1
- import { L as a } from "../../Loader-CLMHp6L7.js";
1
+ import { L as a } from "../../chunks/Loader";
2
2
  export {
3
3
  a as Loader
4
4
  };
@@ -1 +1 @@
1
- export * from './types';
1
+ export type * from './types';
@@ -1,6 +1,4 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { M as n } from "../../../Menu-DvZqs_yA.js";
3
- const u = ({ children: o, menuItems: r }) => /* @__PURE__ */ t(n, { menuItems: r, children: o });
1
+ import { M as e } from "../../../chunks/MenuButton";
4
2
  export {
5
- u as MenuButton
3
+ e as MenuButton
6
4
  };
@@ -1,4 +1,4 @@
1
- import { M as o } from "../../../MenuLabel-B0FrGXKS.js";
1
+ import { M as o } from "../../../chunks/MenuLabel";
2
2
  export {
3
3
  o as MenuLabel
4
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './ModalAction';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,51 +1,4 @@
1
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import { M as h } from "../../../ModalBase-DOU0cBij.js";
3
- import { T as p } from "../../../TextButton-CWDZaF0c.js";
4
- import { ColorTheme as u } from "../../../index.js";
5
- import '../../../assets/index8.css';var d = /* @__PURE__ */ ((o) => (o.start = "start", o.end = "end", o))(d || {});
6
- const v = "_modal_fqn0t_1", q = "_end_fqn0t_39", t = {
7
- modal: v,
8
- "modal-header": "_modal-header_fqn0t_11",
9
- "modal-content": "_modal-content_fqn0t_19",
10
- "modal-action": "_modal-action_fqn0t_29",
11
- end: q
12
- }, T = ({
13
- trigger: o,
14
- header: a,
15
- children: m,
16
- actionPlacement: l = d.start,
17
- modalAction: n,
18
- closeText: i,
19
- isDismissable: c,
20
- isKeyboardDismissableDisabled: _
21
- }) => {
22
- const f = typeof n == "function";
23
- return /* @__PURE__ */ e(
24
- h,
25
- {
26
- trigger: o,
27
- modalOverlayProps: {
28
- isDismissable: c,
29
- isKeyboardDismissDisabled: _
30
- },
31
- children: ({ close: r }) => /* @__PURE__ */ s("div", { className: `${t.modal}`, children: [
32
- a && /* @__PURE__ */ e("h2", { className: `${t["modal-header"]}`, children: a }),
33
- /* @__PURE__ */ e("div", { className: `${t["modal-content"]}`, children: m }),
34
- /* @__PURE__ */ s(
35
- "div",
36
- {
37
- className: `${t["modal-action"]} ${t[l]}`,
38
- children: [
39
- f ? n({ close: r }) : n,
40
- /* @__PURE__ */ e(p, { onPress: r, theme: u.inverseSurface, children: i })
41
- ]
42
- }
43
- )
44
- ] })
45
- }
46
- );
47
- };
1
+ import { M as r } from "../../../chunks/ModalAction";
48
2
  export {
49
- T as ModalAction,
50
- d as ModalActionPlacement
3
+ r as ModalAction
51
4
  };
@@ -1,10 +1,7 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import { ButtonVariantProps } from '../../Button/ButtonBase/types';
3
3
  import { DialogRenderProps } from 'react-aria-components';
4
- export declare enum ModalActionPlacement {
5
- start = "start",
6
- end = "end"
7
- }
4
+ export type ModalActionPlacement = "start" | "end";
8
5
  export interface ModalActionProps {
9
6
  trigger: ReactElement<ButtonVariantProps>;
10
7
  header?: string;
@@ -1,2 +1,2 @@
1
1
  export * from './ModalBase';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,4 +1,4 @@
1
- import { M as e } from "../../../ModalBase-DOU0cBij.js";
1
+ import { M as e } from "../../../chunks/ModalBase";
2
2
  export {
3
3
  e as ModalBase
4
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './NavigationMenu';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,4 +1,4 @@
1
- import { N as e } from "../../../NavigationMenu-DqDfWOnJ.js";
1
+ import { N as e } from "../../../chunks/NavigationMenu";
2
2
  export {
3
3
  e as NavigationMenu
4
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './NavigationResponsive';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,12 +1,4 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useMediaQuery as t } from "usehooks-ts";
3
- import { N as e } from "../../../NavigationMenu-DqDfWOnJ.js";
4
- import { N as m } from "../../../NavigationSidebar-Dx2ww8hp.js";
5
- const f = ({
6
- items: o,
7
- mediaQuery: a,
8
- ...i
9
- }) => t(`(${a})`) ? /* @__PURE__ */ r(e, { items: o }) : /* @__PURE__ */ r(m, { items: o, ...i });
1
+ import { N as e } from "../../../chunks/NavigationResponsive";
10
2
  export {
11
- f as NavigationResponsive
3
+ e as NavigationResponsive
12
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './NavigationSidebar';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,4 +1,4 @@
1
- import { N as o } from "../../../NavigationSidebar-Dx2ww8hp.js";
1
+ import { N as o } from "../../../chunks/NavigationSidebar";
2
2
  export {
3
3
  o as NavigationSidebar
4
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './Popover';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,4 +1,4 @@
1
- import { P as e } from "../../../Popover-CNBII_iI.js";
1
+ import { P as e } from "../../../chunks/Popover";
2
2
  export {
3
3
  e as Popover
4
4
  };
@@ -1,15 +1,4 @@
1
- import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
- import { DialogTrigger as t, Dialog as g } from "react-aria-components";
3
- import { P as l } from "../../../Popover-CNBII_iI.js";
4
- const c = ({
5
- trigger: r,
6
- popoverProps: i,
7
- dialogTriggerProps: e,
8
- ...m
9
- }) => /* @__PURE__ */ p(t, { ...e, children: [
10
- r,
11
- /* @__PURE__ */ o(l, { ...i, children: /* @__PURE__ */ o(g, { ...m }) })
12
- ] });
1
+ import { P as a } from "../../../chunks/PopoverDialog";
13
2
  export {
14
- c as PopoverDialog
3
+ a as PopoverDialog
15
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './Select';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,91 +1,4 @@
1
- import { jsxs as s, jsx as e, Fragment as m } from "react/jsx-runtime";
2
- import { F as d } from "../../FilledButton-SpEu55ES.js";
3
- import { ButtonVariant as o } from "../Button/ButtonBase/index.js";
4
- import { Select as b, SelectValue as p, ListBox as N, Text as h, ListBoxItem as T } from "react-aria-components";
5
- import { P as V } from "../../Popover-CNBII_iI.js";
6
- import { ChevronsUpDown as y, Check as F } from "lucide-react";
7
- import { O as S } from "../../OutlinedButton-QAeXI3Dj.js";
8
- import { T as $ } from "../../TextButton-CWDZaF0c.js";
9
- import { ColorTheme as L } from "../../index.js";
10
- import { T as D } from "../../Tooltip-D-jCnOvo.js";
11
- import { L as j, F as I } from "../../FieldError-CvUKcRtm.js";
12
- import { B as O, C as P } from "../../BaseCard-DrG8XXVz.js";
13
- import '../../assets/index3.css';const E = "_select_1tehw_1", U = "_trigger_1tehw_37", i = {
14
- select: E,
15
- "selected-value": "_selected-value_1tehw_11",
16
- "option-description": "_option-description_1tehw_19",
17
- trigger: U,
18
- "options-list": "_options-list_1tehw_51",
19
- "options-item-group": "_options-item-group_1tehw_63",
20
- "options-item": "_options-item_1tehw_63"
21
- }, Y = ({
22
- options: u,
23
- cardBackground: _ = P.gradient,
24
- triggerTheme: a = L.inverseSurface,
25
- label: n,
26
- name: f,
27
- disabled: g,
28
- isRequired: w,
29
- triggerVariant: x = o.filled,
30
- description: B,
31
- placeholder: c,
32
- selectedKey: k,
33
- onSelectionChange: v
34
- }) => {
35
- let r;
36
- switch (x) {
37
- case o.filled:
38
- r = d;
39
- break;
40
- case o.outlined:
41
- r = S;
42
- break;
43
- case o.text:
44
- r = $;
45
- break;
46
- default:
47
- r = d;
48
- }
49
- return /* @__PURE__ */ s(
50
- b,
51
- {
52
- className: i.select,
53
- isDisabled: g,
54
- isRequired: w,
55
- name: f,
56
- value: k,
57
- onChange: v,
58
- children: [
59
- n && /* @__PURE__ */ e(j, { children: n }),
60
- /* @__PURE__ */ e(D, { description: B, theme: a, children: /* @__PURE__ */ e(r, { theme: a, children: /* @__PURE__ */ s("span", { className: i.trigger, children: [
61
- c ? /* @__PURE__ */ e(p, { className: `${i["selected-value"]}`, children: ({ defaultChildren: t, isPlaceholder: l }) => l ? c : t }) : /* @__PURE__ */ e(p, {}),
62
- /* @__PURE__ */ e(y, {})
63
- ] }) }) }),
64
- /* @__PURE__ */ e(I, {}),
65
- /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(O, { background: _, children: /* @__PURE__ */ e(N, { className: `${i["options-list"]}`, items: u, children: (t) => {
66
- const l = /* @__PURE__ */ s(m, { children: [
67
- /* @__PURE__ */ e(h, { children: t.displayValue }),
68
- t.description && /* @__PURE__ */ e(h, { className: i["option-description"], children: t.description })
69
- ] });
70
- return /* @__PURE__ */ e(
71
- T,
72
- {
73
- className: `${i["options-item-group"]}`,
74
- id: t.key,
75
- textValue: t.displayValue,
76
- isDisabled: t.disabled,
77
- children: ({ isSelected: C }) => /* @__PURE__ */ s(m, { children: [
78
- /* @__PURE__ */ e("div", { className: `${i["options-item"]}`, children: l }),
79
- C && /* @__PURE__ */ e(F, {})
80
- ] })
81
- },
82
- t.key
83
- );
84
- } }) }) })
85
- ]
86
- }
87
- );
88
- };
1
+ import { S as r } from "../../chunks/Select";
89
2
  export {
90
- Y as Select
3
+ r as Select
91
4
  };
@@ -1,2 +1,2 @@
1
1
  export * from './Sidebar';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,6 +1,4 @@
1
- import { S as e, a as r, b as S } from "../../Sidebar-BqNH6hIl.js";
1
+ import { S as e } from "../../chunks/Sidebar";
2
2
  export {
3
- e as Sidebar,
4
- r as SidebarPosition,
5
- S as SidebarSize
3
+ e as Sidebar
6
4
  };
@@ -2,18 +2,8 @@ import { ReactNode, ReactElement } from 'react';
2
2
  import { DialogRenderProps } from 'react-aria-components';
3
3
  import { ButtonVariantProps } from '../Button/ButtonBase';
4
4
  import { CardBackground } from '../Card/BaseCard';
5
- export declare enum SidebarPosition {
6
- inlineStart = "inline-start",
7
- inlineEnd = "inline-end",
8
- blockStart = "block-start",
9
- blockEnd = "block-end"
10
- }
11
- export declare enum SidebarSize {
12
- full = "full",
13
- threeQuarters = "three-quarters",
14
- half = "half",
15
- quarter = "quarter"
16
- }
5
+ export type SidebarPosition = "inline-start" | "inline-end" | "block-start" | "block-end";
6
+ export type SidebarSize = "full" | "three-quarters" | "half" | "quarter";
17
7
  export interface SidebarProps {
18
8
  trigger: ReactElement<ButtonVariantProps>;
19
9
  children: ReactNode | ((opts: DialogRenderProps) => ReactNode);
@@ -1,2 +1,2 @@
1
1
  export * from './Success';
2
- export * from './types';
2
+ export type * from './types';
@@ -1,7 +1,4 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import '../../assets/index2.css';const e = "_success_1r4la_1", t = {
3
- success: e
4
- }, r = ({ children: s }) => /* @__PURE__ */ c("p", { className: `${t.success}`, children: s });
1
+ import { S as e } from "../../chunks/Success";
5
2
  export {
6
- r as Success
3
+ e as Success
7
4
  };
@@ -0,0 +1,2 @@
1
+ import { ToastProps } from './types';
2
+ export declare function toast(details: ToastProps): string | number;
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ export * from './Toast';
@@ -0,0 +1,4 @@
1
+ import { t as a } from "../../chunks/Toast";
2
+ export {
3
+ a as toast
4
+ };
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { CardBackground } from '../Card/BaseCard';
3
+ export type ToastProps = {
4
+ background?: CardBackground;
5
+ dismissable?: boolean;
6
+ closeButton?: boolean;
7
+ duration?: number;
8
+ toasterID?: string;
9
+ heading: string;
10
+ description?: string;
11
+ prefixIcon?: ReactNode;
12
+ };
@@ -1,2 +1,2 @@
1
1
  export * from './ToggleButtonGroup';
2
- export * from './types';
2
+ export type * from './types';