@adgytec/adgytec-web-ui-components 0.0.3 → 0.0.4

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 (46) hide show
  1. package/dist/{Disclosure-D54TpT8k.js → Disclosure-D79gqK4z.js} +2 -2
  2. package/dist/{DisclousreGroup-hDvE41ba.js → DisclousreGroup-BSUcVzWX.js} +1 -1
  3. package/dist/Error-y2dIWjyb.js +7 -0
  4. package/dist/{ModalAction-CcT9ATFz.js → ModalAction-DjHBeAOr.js} +1 -1
  5. package/dist/{NavigationMenu-aB6IfIug.js → NavigationMenu-DTqKWY2F.js} +2 -2
  6. package/dist/{NavigationResponsive-CGmgof-7.js → NavigationResponsive-BPybSnJ4.js} +2 -2
  7. package/dist/{NavigationSidebar-CDGXjM6z.js → NavigationSidebar-ByWsLISI.js} +3 -3
  8. package/dist/{OutlinedButton-BgW0LT_v.js → OutlinedButton-DaLKO8zx.js} +2 -2
  9. package/dist/{OutlinedButtonLink-Wlrb7MFQ.js → OutlinedButtonLink-BvCiAZyQ.js} +1 -1
  10. package/dist/{Select-BRcK4tUB.js → Select-D0U2rIL2.js} +3 -3
  11. package/dist/Sidebar-LlVvowsG.js +50 -0
  12. package/dist/Success-Bh3pb5T7.js +7 -0
  13. package/dist/{TextButton-BXui1LB0.js → TextButton-BJRez1un.js} +1 -1
  14. package/dist/ToggleButtonGroup-BnNsIJX5.js +51 -0
  15. package/dist/assets/Sidebar.css +1 -1
  16. package/dist/assets/ToggleButtonGroup.css +1 -0
  17. package/dist/assets/useSplash.css +1 -1
  18. package/dist/components/Button/ToggleButton.d.ts +2 -0
  19. package/dist/components/Button/index.js +3 -3
  20. package/dist/components/Button/types.d.ts +8 -1
  21. package/dist/components/Disclosure/Disclosure/index.js +1 -1
  22. package/dist/components/Disclosure/DisclousureGroup/index.js +1 -1
  23. package/dist/components/Error/index.js +2 -5
  24. package/dist/components/Link/index.js +1 -1
  25. package/dist/components/Modal/ModalAction/index.js +1 -1
  26. package/dist/components/Modal/index.js +1 -1
  27. package/dist/components/Navigation/NavigationMenu/index.js +1 -1
  28. package/dist/components/Navigation/NavigationResponsive/index.js +1 -1
  29. package/dist/components/Navigation/NavigationSidebar/index.js +1 -1
  30. package/dist/components/Navigation/index.js +3 -3
  31. package/dist/components/Select/index.js +1 -1
  32. package/dist/components/Sidebar/index.js +1 -1
  33. package/dist/components/Success/index.js +2 -5
  34. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -0
  35. package/dist/components/ToggleButtonGroup/index.d.ts +2 -0
  36. package/dist/components/ToggleButtonGroup/index.js +4 -0
  37. package/dist/components/ToggleButtonGroup/types.d.ts +12 -0
  38. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  39. package/dist/index.d.ts +9 -2
  40. package/dist/index.js +53 -45
  41. package/dist/useSplash-7h6ni4l2.js +49 -0
  42. package/package.json +18 -5
  43. package/dist/Sidebar-Dk_3EG71.js +0 -50
  44. package/dist/useSplash-B9tAzNGg.js +0 -49
  45. /package/dist/assets/{index2.css → Error.css} +0 -0
  46. /package/dist/assets/{index.css → Success.css} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
2
  import { Disclosure as c, DisclosurePanel as l } from "react-aria-components";
3
3
  import { ChevronRight as a } from "lucide-react";
4
- import { T as n } from "./TextButton-BXui1LB0.js";
4
+ import { T as n } from "./TextButton-BJRez1un.js";
5
5
  import { C as m } from "./types-C1YOMbh5.js";
6
- import { a as p } from "./useSplash-B9tAzNGg.js";
6
+ import { a as p } from "./useSplash-7h6ni4l2.js";
7
7
  import './assets/Disclosure.css';const h = "_disclosure_1cz7p_1", u = "_trigger_1cz7p_23", g = "_panel_1cz7p_55", s = {
8
8
  disclosure: h,
9
9
  trigger: u,
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { D as i } from "./Disclosure-D54TpT8k.js";
2
+ import { D as i } from "./Disclosure-D79gqK4z.js";
3
3
  import { DisclosureGroup as u } from "react-aria-components";
4
4
  import './assets/DisclousreGroup.css';const e = {
5
5
  "disclosure-group": "_disclosure-group_vh6v0_1"
@@ -0,0 +1,7 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import './assets/Error.css';const s = "_error_tr7s5_1", e = {
3
+ error: s
4
+ }, c = ({ children: r }) => /* @__PURE__ */ o("p", { className: `${e.error}`, children: r });
5
+ export {
6
+ c as E
7
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
2
  import { M as u } from "./ModalBase-DLaR_yid.js";
3
- import { T as p } from "./TextButton-BXui1LB0.js";
3
+ import { T as p } from "./TextButton-BJRez1un.js";
4
4
  import { C as v } from "./types-C1YOMbh5.js";
5
5
  import './assets/ModalAction.css';var d = /* @__PURE__ */ ((n) => (n.start = "start", n.end = "end", n))(d || {}), c = /* @__PURE__ */ ((n) => (n.close = "Close", n.cancel = "Cancel", n))(c || {});
6
6
  const q = "_modal_fqn0t_1", $ = "_end_fqn0t_39", a = {
@@ -1,9 +1,9 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { M as u } from "./MenuLabel-ClmuA9_6.js";
3
3
  import { L as i } from "./Link-CbLEp2fF.js";
4
- import { T as m } from "./TextButton-BXui1LB0.js";
4
+ import { T as m } from "./TextButton-BJRez1un.js";
5
5
  import { C as n } from "./types-C1YOMbh5.js";
6
- import { a as c } from "./useSplash-B9tAzNGg.js";
6
+ import { a as c } from "./useSplash-7h6ni4l2.js";
7
7
  import { ChevronDown as h } from "lucide-react";
8
8
  import './assets/NavigationMenu.css';const p = "_menu_sata7_1", d = {
9
9
  menu: p
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { useMediaQuery as t } from "usehooks-ts";
3
- import { N as e } from "./NavigationMenu-aB6IfIug.js";
4
- import { N as s } from "./NavigationSidebar-CDGXjM6z.js";
3
+ import { N as e } from "./NavigationMenu-DTqKWY2F.js";
4
+ import { N as s } from "./NavigationSidebar-ByWsLISI.js";
5
5
  const f = ({
6
6
  items: o,
7
7
  mediaQuery: r,
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { T as r } from "./TextButton-BXui1LB0.js";
3
- import { a as s } from "./useSplash-B9tAzNGg.js";
4
- import { S as m } from "./Sidebar-Dk_3EG71.js";
2
+ import { T as r } from "./TextButton-BJRez1un.js";
3
+ import { a as s } from "./useSplash-7h6ni4l2.js";
4
+ import { S as m } from "./Sidebar-LlVvowsG.js";
5
5
  import { T as c } from "./Tree-BwmYvUlr.js";
6
6
  import { X as l, Menu as p } from "lucide-react";
7
7
  import { C as h } from "./types-C1YOMbh5.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { B as r } from "./TextButton-BXui1LB0.js";
3
- import { B as i } from "./useSplash-B9tAzNGg.js";
2
+ import { B as r } from "./TextButton-BJRez1un.js";
3
+ import { B as i } from "./useSplash-7h6ni4l2.js";
4
4
  const u = (t) => {
5
5
  const { children: n } = t;
6
6
  return /* @__PURE__ */ o(r, { ...t, variant: i.filled, children: n });
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as l, Fragment as u } from "react/jsx-runtime";
2
- import { u as $, s as o, S as m, B as a, a as F } from "./useSplash-B9tAzNGg.js";
2
+ import { u as $, s as o, S as m, B as a, a as F } from "./useSplash-7h6ni4l2.js";
3
3
  import { Link as L } from "react-aria-components";
4
4
  import { T as S } from "./Tooltip-DAYtebkl.js";
5
5
  import { C as x } from "./types-C1YOMbh5.js";
@@ -1,10 +1,10 @@
1
1
  import { jsxs as r, jsx as e, Fragment as n } from "react/jsx-runtime";
2
- import { O as q, F as B } from "./OutlinedButton-BgW0LT_v.js";
3
- import { B as l } from "./useSplash-B9tAzNGg.js";
2
+ import { O as q, F as B } from "./OutlinedButton-DaLKO8zx.js";
3
+ import { B as l } from "./useSplash-7h6ni4l2.js";
4
4
  import { Select as N, SelectValue as m, ListBox as S, Text as d, ListBoxItem as T } from "react-aria-components";
5
5
  import { P as b } from "./Popover-D3iGWJwQ.js";
6
6
  import { ChevronsUpDown as V, Check as y } from "lucide-react";
7
- import { T as C } from "./TextButton-BXui1LB0.js";
7
+ import { T as C } from "./TextButton-BJRez1un.js";
8
8
  import { C as p } from "./types-C1YOMbh5.js";
9
9
  import { T as F } from "./Tooltip-DAYtebkl.js";
10
10
  import { L as $, F as L } from "./FieldError-CZn24fiL.js";
@@ -0,0 +1,50 @@
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
+ import { DialogTrigger as u, ModalOverlay as f, Modal as g, Dialog as p } 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 m = "_modal_gp54h_1", k = "_full_gp54h_291", b = "_half_gp54h_313", q = "_quarter_gp54h_321", e = {
5
+ "modal-overlay": "_modal-overlay_gp54h_1",
6
+ "modal-fade": "_modal-fade_gp54h_1",
7
+ modal: m,
8
+ "inline-start": "_inline-start_gp54h_117",
9
+ "inline-slide": "_inline-slide_gp54h_1",
10
+ "inline-end": "_inline-end_gp54h_145",
11
+ "block-start": "_block-start_gp54h_173",
12
+ "block-slide": "_block-slide_gp54h_1",
13
+ "block-end": "_block-end_gp54h_201",
14
+ full: k,
15
+ "three-quarters": "_three-quarters_gp54h_305",
16
+ half: b,
17
+ quarter: q
18
+ }, D = ({
19
+ children: l,
20
+ trigger: n,
21
+ sidebarPosition: _ = r.inlineStart,
22
+ sidebarSize: o = t.full,
23
+ isDismissable: s,
24
+ isKeyboardDismissableDisabled: i
25
+ }) => {
26
+ const d = typeof l == "function";
27
+ return /* @__PURE__ */ c(u, { children: [
28
+ n,
29
+ /* @__PURE__ */ a(
30
+ f,
31
+ {
32
+ className: `${e["modal-overlay"]}`,
33
+ isDismissable: s,
34
+ isKeyboardDismissDisabled: i,
35
+ children: /* @__PURE__ */ a(
36
+ g,
37
+ {
38
+ className: `${e.modal} ${e[_]} ${e[o]}`,
39
+ children: /* @__PURE__ */ a(p, { children: d ? (h) => l(h) : l })
40
+ }
41
+ )
42
+ }
43
+ )
44
+ ] });
45
+ };
46
+ export {
47
+ D as S,
48
+ r as a,
49
+ t as b
50
+ };
@@ -0,0 +1,7 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import './assets/Success.css';const e = "_success_1k0k3_1", t = {
3
+ success: e
4
+ }, u = ({ children: s }) => /* @__PURE__ */ c("p", { className: `${t.success}`, children: s });
5
+ export {
6
+ u as S
7
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as l, Fragment as m } from "react/jsx-runtime";
2
- import { u as $, a as c, B as f, s, S as u } from "./useSplash-B9tAzNGg.js";
2
+ import { u as $, a as c, B as f, s, S as u } from "./useSplash-7h6ni4l2.js";
3
3
  import { Button as T } from "react-aria-components";
4
4
  import { T as p } from "./Tooltip-DAYtebkl.js";
5
5
  import { C as S } from "./types-C1YOMbh5.js";
@@ -0,0 +1,51 @@
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { ToggleButton as m, ToggleButtonGroup as p } from "react-aria-components";
3
+ import { u as c, s, S as d, B as T, a as B } from "./useSplash-7h6ni4l2.js";
4
+ import { T as b } from "./Tooltip-DAYtebkl.js";
5
+ import { C as l } from "./types-C1YOMbh5.js";
6
+ import './assets/ToggleButtonGroup.css';const h = {
7
+ "toggle-button-group": "_toggle-button-group_b7n8c_1"
8
+ }, $ = ({
9
+ id: e,
10
+ value: a,
11
+ description: o,
12
+ isDisabled: t,
13
+ theme: u = l.primary
14
+ }) => {
15
+ const { coords: n, handlePress: g } = c();
16
+ return /* @__PURE__ */ r(b, { description: o, children: /* @__PURE__ */ i(
17
+ m,
18
+ {
19
+ id: e,
20
+ onPress: g,
21
+ className: `${s.button} ${s[u]} ${s[T.outlined]} ${s[B.rectangle]}`,
22
+ isDisabled: t,
23
+ children: [
24
+ n && /* @__PURE__ */ r(d, { ...n }),
25
+ a
26
+ ]
27
+ }
28
+ ) });
29
+ }, G = ({
30
+ items: e,
31
+ theme: a = l.primary,
32
+ ...o
33
+ }) => /* @__PURE__ */ r(
34
+ p,
35
+ {
36
+ ...o,
37
+ className: o.className ?? h["toggle-button-group"],
38
+ children: e.map((t) => /* @__PURE__ */ r(
39
+ $,
40
+ {
41
+ ...t,
42
+ theme: a,
43
+ isDisabled: o.isDisabled || t.isDisabled
44
+ },
45
+ t.id
46
+ ))
47
+ }
48
+ );
49
+ export {
50
+ G as T
51
+ };
@@ -1 +1 @@
1
- ._modal-overlay_1vuul_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_1vuul_1[data-entering]{animation:_modal-fade_1vuul_1 var(--_animation-duration)}._modal-overlay_1vuul_1[data-exiting]{animation:_modal-fade_1vuul_1 var(--_animation-duration) reverse ease-in}._modal_1vuul_1{--_modal-bg: var(--color-surface-container);--_modal-text: var(--colol-on-surface);--_border-width: .025rem;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_1vuul_1[data-entering]{animation-duration:var(--_animation-duration);animation-name:var(--_slide-animation)}._modal_1vuul_1[data-exiting]{animation-duration:var(--_animation-duration);animation-timing-function:ease-in;animation-name:var(--_slide-animation);animation-direction:reverse}._inline-start_1vuul_117{--_inline-start: 0;--_block-start: 0;--_block-end: 0;--_inline-end: var(--_size);--_from: -100%;--_slide-animation: _inline-slide_1vuul_1;border-inline-end-width:var(--_border-width);border-start-end-radius:var(--radius-sidebar);border-end-end-radius:var(--radius-sidebar)}._inline-end_1vuul_145{--_inline-end: 0;--_block-start: 0;--_block-end: 0;--_inline-start: var(--_size);--_from: 100%;--_slide-animation: _inline-slide_1vuul_1;border-inline-start-width:var(--_border-width);border-start-start-radius:var(--radius-sidebar);border-end-start-radius:var(--radius-sidebar)}._block-start_1vuul_173{--_inline-end: 0;--_inline-start: 0;--_block-start: 0;--_block-end: var(--_size);--_from: -100%;--_slide-animation: _block-slide_1vuul_1;border-block-end-width:vaR(--_border-width);border-end-start-radius:var(--radius-sidebar);border-end-end-radius:var(--radius-sidebar)}._block-end_1vuul_201{--_inline-end: 0;--_inline-start: 0;--_block-end: 0;--_block-start: var(--_size);--_from: 100%;--_slide-animation: _block-slide_1vuul_1;border-block-start-width:vaR(--_border-width);border-start-end-radius:var(--radius-sidebar);border-start-start-radius:var(--radius-sidebar)}@keyframes _modal-fade_1vuul_1{0%{opacity:0}to{opacity:1}}@keyframes _inline-slide_1vuul_1{0%{transform:translate(var(--_from))}to{transform:translate(0)}}@keyframes _block-slide_1vuul_1{0%{transform:translateY(var(--_from))}to{transform:translateY(0)}}._full_1vuul_291{--_size: 0;border-radius:0;border:none}._three-quarters_1vuul_305{--_size: 25%}._half_1vuul_313{--_size: 50%}._quarter_1vuul_321{--_size: 75%}
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%}
@@ -0,0 +1 @@
1
+ ._toggle-button-group_b7n8c_1{--_flex-direction: row;--button-border-width: .075rem;display:flex;flex-direction:var(--_flex-direction)}._toggle-button-group_b7n8c_1>button{border-radius:0}._toggle-button-group_b7n8c_1[data-orientation=vertical]{--_flex-direction: column;--radius-button: var(--radius)}._toggle-button-group_b7n8c_1[data-orientation=vertical]>button{margin-block-start:calc(-1 * var(--button-border-width))}._toggle-button-group_b7n8c_1[data-orientation=vertical]>button:first-child{border-radius:var(--radius-button) var(--radius-button) 0 0;margin-block-start:0}._toggle-button-group_b7n8c_1[data-orientation=vertical]>button:last-child{border-radius:0 0 var(--radius-button) var(--radius-button)}._toggle-button-group_b7n8c_1[data-orientation=horizontal]>button{margin-inline-start:calc(-1 * var(--button-border-width))}._toggle-button-group_b7n8c_1[data-orientation=horizontal]>button:first-child{margin-inline-start:0;border-radius:var(--radius-button) 0 0 var(--radius-button)}._toggle-button-group_b7n8c_1[data-orientation=horizontal]>button:last-child{border-radius:0 var(--radius-button) var(--radius-button) 0}
@@ -1 +1 @@
1
- ._button_127bq_1{--_button-color: transparent;--_button-text: transparent;--_border-color: var(--_button-color);border-radius:var(--_radius);cursor:pointer;border:.125rem solid var(--_border-color);font-weight:500;text-align:center;padding-inline:var(--_pi);padding-block:var(--_pb);background-color:var(--_bg);color:var(--_color);position:relative;overflow:hidden;transition:background-color .25s,color .25s}._button_127bq_1[data-hovered],._button_127bq_1[data-focused]{--_bg: hsl(from var(--_button-color) h s calc(l + 10) );--_color: hsl(from var(--_button-text) h s calc(l + 10) )}._button_127bq_1[data-pressed]{--_bg: hsl(from var(--_button-color) h s calc(l - 5) );--_color: hsl(from var(--_button-text) h s calc(l - 5) )}._button-link_127bq_73{text-underline-offset:.125em;text-decoration-thickness:.075em;text-decoration-color:transparent}._button-link_127bq_73[data-hovered],._button-link_127bq_73[data-focused],._button-link_127bq_73[data-underline]{text-decoration-color:currentColor}._square_127bq_105{--_pi: .625em;--_pb: .625em;aspect-ratio:1/1;--_radius: var(--radius-circular)}._avatar_127bq_121{--_pi: .125em;--_pb: .125em;aspect-ratio:1/1;--_radius: var(--radius-circular)}._rectangle_127bq_137{--_pi: 1.125em;--_pb: .625em;--_radius: var(--radius-button)}._shrink_127bq_149{--_pi: 0;--_pb: 0}._primary_127bq_161{--_button-color: var(--color-primary);--_button-text: var(--color-on-primary)}._primary-variant_127bq_171{--_button-color: var(--color-primary-variant);--_button-text: var(--color-on-primary-variant)}._secondary_127bq_181{--_button-color: var(--color-secondary);--_button-text: var(--color-on-secondary)}._tertiary_127bq_191{--_button-color: var(--color-tertiary);--_button-text: var(--color-on-tertiary)}._error_127bq_201{--_button-color: var(--color-error);--_button-text: var(--color-on-error)}._inverse-surface_127bq_211{--_button-color: var(--color-inverse-surface);--_button-text: var(--color-inverse-on-surface)}._success_127bq_221{--_button-color: var(--color-success);--_button-text: var(--color-on-success)}._filled_127bq_233{--_bg: var(--_button-color);--_color: var(--_button-text)}._outlined_127bq_243{--_bg: transparent;--_color: var(--_button-color)}._text_127bq_253{--_bg: transparent;--_border-color: transparent;--_color: var(--_button-color)}._splash_zhwi0_1{position:absolute;inline-size:25%;aspect-ratio:1/1;border-radius:50%;background-color:hsl(from var(--color-surface-variant) h s l / .5);animation:_ripple_zhwi0_1 .5s linear;opacity:0}@keyframes _ripple_zhwi0_1{0%{scale:0;opacity:1}to{scale:8;opacity:0}}
1
+ ._button_kf7sn_1{--_button-color: transparent;--_button-text: transparent;--_border-color: var(--_button-color);border-radius:var(--_radius);cursor:pointer;border:var(--button-border-width) solid var(--_border-color);font-weight:500;text-align:center;padding-inline:var(--_pi);padding-block:var(--_pb);background-color:var(--_bg);color:var(--_color);position:relative;overflow:hidden;transition:background-color .25s,color .25s}._button_kf7sn_1[data-hovered],._button_kf7sn_1[data-focused]{--_bg: hsl(from var(--_button-color) h s calc(l + 10) );--_color: hsl(from var(--_button-text) h s calc(l + 10) )}._button_kf7sn_1[data-pressed]{--_bg: hsl(from var(--_button-color) h s calc(l - 5) );--_color: hsl(from var(--_button-text) h s calc(l - 5) )}._button_kf7sn_1[data-selected]{--_bg: var(--_button-color);--_color: var(--_button-text)}._button-link_kf7sn_83{text-underline-offset:.125em;text-decoration-thickness:.075em;text-decoration-color:transparent}._button-link_kf7sn_83[data-hovered],._button-link_kf7sn_83[data-focused],._button-link_kf7sn_83[data-underline]{text-decoration-color:currentColor}._square_kf7sn_115{--_pi: .625em;--_pb: .625em;aspect-ratio:1/1;--_radius: var(--radius-circular)}._avatar_kf7sn_131{--_pi: .125em;--_pb: .125em;aspect-ratio:1/1;--_radius: var(--radius-circular)}._rectangle_kf7sn_147{--_pi: 1.125em;--_pb: .625em;--_radius: var(--radius-button)}._shrink_kf7sn_159{--_pi: 0;--_pb: 0}._primary_kf7sn_171{--_button-color: var(--color-primary);--_button-text: var(--color-on-primary)}._primary-variant_kf7sn_181{--_button-color: var(--color-primary-variant);--_button-text: var(--color-on-primary-variant)}._secondary_kf7sn_191{--_button-color: var(--color-secondary);--_button-text: var(--color-on-secondary)}._tertiary_kf7sn_201{--_button-color: var(--color-tertiary);--_button-text: var(--color-on-tertiary)}._error_kf7sn_211{--_button-color: var(--color-error);--_button-text: var(--color-on-error)}._inverse-surface_kf7sn_221{--_button-color: var(--color-inverse-surface);--_button-text: var(--color-inverse-on-surface)}._success_kf7sn_231{--_button-color: var(--color-success);--_button-text: var(--color-on-success)}._filled_kf7sn_243{--_bg: var(--_button-color);--_color: var(--_button-text)}._outlined_kf7sn_253{--_bg: transparent;--_color: var(--_button-color)}._text_kf7sn_263{--_bg: transparent;--_border-color: transparent;--_color: var(--_button-color)}._splash_zhwi0_1{position:absolute;inline-size:25%;aspect-ratio:1/1;border-radius:50%;background-color:hsl(from var(--color-surface-variant) h s l / .5);animation:_ripple_zhwi0_1 .5s linear;opacity:0}@keyframes _ripple_zhwi0_1{0%{scale:0;opacity:1}to{scale:8;opacity:0}}
@@ -0,0 +1,2 @@
1
+ import { ToggleButtonProps } from './types';
2
+ export declare const ToggleButton: ({ id, value, description, isDisabled, theme, }: ToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { a, B as e } from "../../useSplash-B9tAzNGg.js";
2
- import { F as r, O as u } from "../../OutlinedButton-BgW0LT_v.js";
3
- import { T as s } from "../../TextButton-BXui1LB0.js";
1
+ import { a, B as e } from "../../useSplash-7h6ni4l2.js";
2
+ import { F as r, O as u } from "../../OutlinedButton-DaLKO8zx.js";
3
+ import { T as s } from "../../TextButton-BJRez1un.js";
4
4
  export {
5
5
  a as ButtonShape,
6
6
  e as ButtonVariant,
@@ -1,5 +1,5 @@
1
1
  import { ColorTheme } from '../../utils/types';
2
- import { ButtonProps as AriaButtonProps, LinkProps } from 'react-aria-components';
2
+ import { ButtonProps as AriaButtonProps, LinkProps, Key } from 'react-aria-components';
3
3
  export declare enum ButtonVariant {
4
4
  filled = "filled",
5
5
  outlined = "outlined",
@@ -26,3 +26,10 @@ export interface ButtonLinkProps extends LinkProps {
26
26
  description?: string;
27
27
  underline?: boolean;
28
28
  }
29
+ export interface ToggleButtonProps {
30
+ id: Key;
31
+ value: string;
32
+ description?: string;
33
+ theme?: ColorTheme;
34
+ isDisabled?: boolean;
35
+ }
@@ -1,4 +1,4 @@
1
- import { D as s } from "../../../Disclosure-D54TpT8k.js";
1
+ import { D as s } from "../../../Disclosure-D79gqK4z.js";
2
2
  export {
3
3
  s as Disclosure
4
4
  };
@@ -1,4 +1,4 @@
1
- import { D as s } from "../../../DisclousreGroup-hDvE41ba.js";
1
+ import { D as s } from "../../../DisclousreGroup-BSUcVzWX.js";
2
2
  export {
3
3
  s as DisclosureGroup
4
4
  };
@@ -1,7 +1,4 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import '../../assets/index2.css';const s = "_error_tr7s5_1", e = {
3
- error: s
4
- }, c = ({ children: r }) => /* @__PURE__ */ o("p", { className: `${e.error}`, children: r });
1
+ import { E } from "../../Error-y2dIWjyb.js";
5
2
  export {
6
- c as Error
3
+ E as Error
7
4
  };
@@ -1,4 +1,4 @@
1
- import { F as o, O as i } from "../../OutlinedButtonLink-Wlrb7MFQ.js";
1
+ import { F as o, O as i } from "../../OutlinedButtonLink-BvCiAZyQ.js";
2
2
  import { L as r } from "../../Link-CbLEp2fF.js";
3
3
  export {
4
4
  o as FilledButtonLink,
@@ -1,4 +1,4 @@
1
- import { M as e, a as l, b as t } from "../../../ModalAction-CcT9ATFz.js";
1
+ import { M as e, a as l, b as t } from "../../../ModalAction-DjHBeAOr.js";
2
2
  export {
3
3
  e as ModalAction,
4
4
  l as ModalActionPlacement,
@@ -1,4 +1,4 @@
1
- import { M as e, a as l, b as s } from "../../ModalAction-CcT9ATFz.js";
1
+ import { M as e, a as l, b as s } from "../../ModalAction-DjHBeAOr.js";
2
2
  import { M } from "../../ModalBase-DLaR_yid.js";
3
3
  export {
4
4
  e as ModalAction,
@@ -1,4 +1,4 @@
1
- import { N as e } from "../../../NavigationMenu-aB6IfIug.js";
1
+ import { N as e } from "../../../NavigationMenu-DTqKWY2F.js";
2
2
  export {
3
3
  e as NavigationMenu
4
4
  };
@@ -1,4 +1,4 @@
1
- import { N as e } from "../../../NavigationResponsive-CGmgof-7.js";
1
+ import { N as e } from "../../../NavigationResponsive-BPybSnJ4.js";
2
2
  export {
3
3
  e as NavigationResponsive
4
4
  };
@@ -1,4 +1,4 @@
1
- import { N as o } from "../../../NavigationSidebar-CDGXjM6z.js";
1
+ import { N as o } from "../../../NavigationSidebar-ByWsLISI.js";
2
2
  export {
3
3
  o as NavigationSidebar
4
4
  };
@@ -1,6 +1,6 @@
1
- import { N as i } from "../../NavigationResponsive-CGmgof-7.js";
2
- import { N as r } from "../../NavigationSidebar-CDGXjM6z.js";
3
- import { N } from "../../NavigationMenu-aB6IfIug.js";
1
+ import { N as i } from "../../NavigationResponsive-BPybSnJ4.js";
2
+ import { N as r } from "../../NavigationSidebar-ByWsLISI.js";
3
+ import { N } from "../../NavigationMenu-DTqKWY2F.js";
4
4
  export {
5
5
  N as NavigationMenu,
6
6
  i as NavigationResponsive,
@@ -1,4 +1,4 @@
1
- import { S as r } from "../../Select-BRcK4tUB.js";
1
+ import { S as r } from "../../Select-D0U2rIL2.js";
2
2
  export {
3
3
  r as Select
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as e, a as r, b as S } from "../../Sidebar-Dk_3EG71.js";
1
+ import { S as e, a as r, b as S } from "../../Sidebar-LlVvowsG.js";
2
2
  export {
3
3
  e as Sidebar,
4
4
  r as SidebarPosition,
@@ -1,7 +1,4 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import '../../assets/index.css';const e = "_success_1k0k3_1", t = {
3
- success: e
4
- }, u = ({ children: s }) => /* @__PURE__ */ c("p", { className: `${t.success}`, children: s });
1
+ import { S as e } from "../../Success-Bh3pb5T7.js";
5
2
  export {
6
- u as Success
3
+ e as Success
7
4
  };
@@ -0,0 +1,2 @@
1
+ import { ToggleButtonGroupProps } from './types';
2
+ export declare const ToggleButtonGroup: ({ items, theme, ...props }: ToggleButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './ToggleButtonGroup';
2
+ export * from './types';
@@ -0,0 +1,4 @@
1
+ import { T as t } from "../../ToggleButtonGroup-BnNsIJX5.js";
2
+ export {
3
+ t as ToggleButtonGroup
4
+ };
@@ -0,0 +1,12 @@
1
+ import { ToggleButtonGroupProps as AriaToggleButtonGroupProps, Key } from 'react-aria-components';
2
+ import { ColorTheme } from '../../utils/types';
3
+ export interface ToggleButtonGroupItem {
4
+ id: Key;
5
+ value: string;
6
+ description?: string;
7
+ isDisabled?: boolean;
8
+ }
9
+ export interface ToggleButtonGroupProps extends AriaToggleButtonGroupProps {
10
+ items: ToggleButtonGroupItem[];
11
+ theme?: ColorTheme;
12
+ }
@@ -1,2 +1,2 @@
1
1
  import { TooltipProps } from './types';
2
- export declare const Tooltip: ({ children, description, theme, }: TooltipProps) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | null | undefined;
2
+ export declare const Tooltip: ({ children, description, theme, }: TooltipProps) => string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
package/dist/index.d.ts CHANGED
@@ -1,17 +1,24 @@
1
1
  export * from './utils/types';
2
- export * from './components/Tree';
3
2
  export * from './components/Avatar';
4
3
  export * from './components/Button';
5
4
  export * from './components/Disclosure/Disclosure';
6
5
  export * from './components/Disclosure/DisclousureGroup';
6
+ export * from './components/Error';
7
7
  export * from './components/Form/Input';
8
8
  export * from './components/Form/TextArea';
9
9
  export * from './components/Link';
10
10
  export * from './components/Menu';
11
+ export * from './components/Modal';
11
12
  export * from './components/Modal/ModalAction';
12
13
  export * from './components/Modal/ModalBase';
14
+ export * from './components/Navigation';
15
+ export * from './components/Navigation/NavigationMenu';
13
16
  export * from './components/Navigation/NavigationResponsive';
14
17
  export * from './components/Navigation/NavigationSidebar';
15
- export * from './components/Navigation/NavigationMenu';
18
+ export * from './components/Popover';
16
19
  export * from './components/Select';
17
20
  export * from './components/Sidebar';
21
+ export * from './components/Success';
22
+ export * from './components/ToggleButtonGroup';
23
+ export * from './components/Tooltip';
24
+ export * from './components/Tree';
package/dist/index.js CHANGED
@@ -1,53 +1,61 @@
1
- import { C as r } from "./types-C1YOMbh5.js";
2
- import { T as t } from "./Tree-BwmYvUlr.js";
3
- import { A as i, a as n, b as p } from "./Avatar-vPRORJSz.js";
4
- import { a as m, B as f } from "./useSplash-B9tAzNGg.js";
5
- import { F as u, O as d } from "./OutlinedButton-BgW0LT_v.js";
6
- import { T as B } from "./TextButton-BXui1LB0.js";
7
- import { D as T } from "./Disclosure-D54TpT8k.js";
8
- import { D as v } from "./DisclousreGroup-hDvE41ba.js";
9
- import { I as c } from "./Input-KLfZufI4.js";
10
- import { T as L } from "./TextArea-DBZO5z2H.js";
11
- import { F, O } from "./OutlinedButtonLink-Wlrb7MFQ.js";
12
- import { L as k } from "./Link-CbLEp2fF.js";
13
- import { M as h } from "./MenuButton-BEwnL_jL.js";
14
- import { M as I } from "./MenuLabel-ClmuA9_6.js";
15
- import { M as y, a as G, b as R } from "./ModalAction-CcT9ATFz.js";
16
- import { M as j } from "./ModalBase-DLaR_yid.js";
17
- import { N as w } from "./NavigationResponsive-CGmgof-7.js";
18
- import { S as H, a as J, b as K } from "./Sidebar-Dk_3EG71.js";
19
- import { N as U } from "./NavigationSidebar-CDGXjM6z.js";
20
- import { N as X } from "./NavigationMenu-aB6IfIug.js";
21
- import { S as Z } from "./Select-BRcK4tUB.js";
1
+ import { C as a } from "./types-C1YOMbh5.js";
2
+ import { A as t, a as s, b as p } from "./Avatar-vPRORJSz.js";
3
+ import { a as i, B as m } from "./useSplash-7h6ni4l2.js";
4
+ import { F as f, O as u } from "./OutlinedButton-DaLKO8zx.js";
5
+ import { T as d } from "./TextButton-BJRez1un.js";
6
+ import { D as B } from "./Disclosure-D79gqK4z.js";
7
+ import { D as T } from "./DisclousreGroup-BSUcVzWX.js";
8
+ import { E as c } from "./Error-y2dIWjyb.js";
9
+ import { I as A } from "./Input-KLfZufI4.js";
10
+ import { T as g } from "./TextArea-DBZO5z2H.js";
11
+ import { F as D, O as F } from "./OutlinedButtonLink-BvCiAZyQ.js";
12
+ import { L as P } from "./Link-CbLEp2fF.js";
13
+ import { M as C } from "./MenuButton-BEwnL_jL.js";
14
+ import { M as z } from "./MenuLabel-ClmuA9_6.js";
15
+ import { M as G, a as I, b as y } from "./ModalAction-DjHBeAOr.js";
16
+ import { M as V } from "./ModalBase-DLaR_yid.js";
17
+ import { N as q } from "./NavigationResponsive-BPybSnJ4.js";
18
+ import { S as H, a as J, b as K } from "./Sidebar-LlVvowsG.js";
19
+ import { N as U } from "./NavigationSidebar-ByWsLISI.js";
20
+ import { N as X } from "./NavigationMenu-DTqKWY2F.js";
21
+ import { P as Z } from "./Popover-D3iGWJwQ.js";
22
+ import { S as $ } from "./Select-D0U2rIL2.js";
23
+ import { S as ro } from "./Success-Bh3pb5T7.js";
24
+ import { T as eo } from "./ToggleButtonGroup-BnNsIJX5.js";
25
+ import { T as so } from "./Tree-BwmYvUlr.js";
22
26
  export {
23
- i as Avatar,
24
- n as AvatarSize,
27
+ t as Avatar,
28
+ s as AvatarSize,
25
29
  p as AvatarType,
26
- m as ButtonShape,
27
- f as ButtonVariant,
28
- r as ColorTheme,
29
- T as Disclosure,
30
- v as DisclosureGroup,
31
- u as FilledButton,
32
- F as FilledButtonLink,
33
- c as Input,
34
- k as Link,
35
- h as MenuButton,
36
- I as MenuLabel,
37
- y as ModalAction,
38
- G as ModalActionPlacement,
39
- j as ModalBase,
40
- R as ModalCloseText,
30
+ i as ButtonShape,
31
+ m as ButtonVariant,
32
+ a as ColorTheme,
33
+ B as Disclosure,
34
+ T as DisclosureGroup,
35
+ c as Error,
36
+ f as FilledButton,
37
+ D as FilledButtonLink,
38
+ A as Input,
39
+ P as Link,
40
+ C as MenuButton,
41
+ z as MenuLabel,
42
+ G as ModalAction,
43
+ I as ModalActionPlacement,
44
+ V as ModalBase,
45
+ y as ModalCloseText,
41
46
  X as NavigationMenu,
42
- w as NavigationResponsive,
47
+ q as NavigationResponsive,
43
48
  U as NavigationSidebar,
44
- d as OutlinedButton,
45
- O as OutlinedButtonLink,
46
- Z as Select,
49
+ u as OutlinedButton,
50
+ F as OutlinedButtonLink,
51
+ Z as Popover,
52
+ $ as Select,
47
53
  H as Sidebar,
48
54
  J as SidebarPosition,
49
55
  K as SidebarSize,
50
- L as TextArea,
51
- B as TextButton,
52
- t as Tree
56
+ ro as Success,
57
+ g as TextArea,
58
+ d as TextButton,
59
+ eo as ToggleButtonGroup,
60
+ so as Tree
53
61
  };
@@ -0,0 +1,49 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useState as l, useRef as a, useEffect as i } from "react";
3
+ import './assets/useSplash.css';var u = /* @__PURE__ */ ((s) => (s.filled = "filled", s.outlined = "outlined", s.text = "text", s))(u || {}), f = /* @__PURE__ */ ((s) => (s.rectangle = "rectangle", s.square = "square", s.avatar = "avatar", s.shrink = "shrink", s))(f || {});
4
+ const k = "_button_kf7sn_1", d = "_square_kf7sn_115", y = "_avatar_kf7sn_131", m = "_rectangle_kf7sn_147", v = "_shrink_kf7sn_159", p = "_primary_kf7sn_171", h = "_secondary_kf7sn_191", x = "_tertiary_kf7sn_201", b = "_error_kf7sn_211", g = "_success_kf7sn_231", q = "_filled_kf7sn_243", S = "_outlined_kf7sn_253", T = "_text_kf7sn_263", z = {
5
+ button: k,
6
+ "button-link": "_button-link_kf7sn_83",
7
+ square: d,
8
+ avatar: y,
9
+ rectangle: m,
10
+ shrink: v,
11
+ primary: p,
12
+ "primary-variant": "_primary-variant_kf7sn_181",
13
+ secondary: h,
14
+ tertiary: x,
15
+ error: b,
16
+ "inverse-surface": "_inverse-surface_kf7sn_221",
17
+ success: g,
18
+ filled: q,
19
+ outlined: S,
20
+ text: T
21
+ }, $ = "_splash_zhwi0_1", R = {
22
+ splash: $
23
+ }, C = ({ id: s, x: e, y: r }) => /* @__PURE__ */ o(
24
+ "div",
25
+ {
26
+ className: `${R.splash}`,
27
+ style: {
28
+ insetInlineStart: e,
29
+ insetBlockStart: r,
30
+ translate: "-50% -50%"
31
+ }
32
+ },
33
+ `${s}`
34
+ ), E = (s) => {
35
+ const [e, r] = l(null), _ = a(0);
36
+ let n = a(void 0), c = (t) => {
37
+ r({ id: _.current++, x: t.x, y: t.y }), t.x !== -1 && t.y !== -1 && (clearTimeout(n.current), n.current = setTimeout(() => r(null), 500)), s?.(t);
38
+ };
39
+ return i(() => () => {
40
+ clearTimeout(n.current);
41
+ }, []), { coords: e, handlePress: c };
42
+ };
43
+ export {
44
+ u as B,
45
+ C as S,
46
+ f as a,
47
+ z as s,
48
+ E as u
49
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adgytec/adgytec-web-ui-components",
3
3
  "private": false,
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -14,11 +14,13 @@
14
14
  },
15
15
  "scripts": {
16
16
  "dev": "vite",
17
- "build": "tsc -b && vite build",
17
+ "build": "npm run generate:exports && tsc -b && vite build",
18
18
  "lint": "eslint .",
19
- "preview": "vite preview"
19
+ "preview": "vite preview",
20
+ "generate:exports": "node ./src/scripts/generate-exports.js",
21
+ "publish": "npm run build && npm publish --public"
20
22
  },
21
- "peerDependencies": {
23
+ "dependencies": {
22
24
  "lucide-react": "^0.525.0",
23
25
  "react": "^19.1.0",
24
26
  "react-aria-components": "^1.10.1",
@@ -43,5 +45,16 @@
43
45
  "vite": "^7.0.0",
44
46
  "vite-plugin-dts": "^4.5.4",
45
47
  "vite-plugin-lib-inject-css": "^2.2.2"
46
- }
48
+ },
49
+ "author": {
50
+ "name": "Adgytec",
51
+ "email": "rohan@adgytec.in",
52
+ "url": "https://adgytec.in"
53
+ },
54
+ "license": "MIT",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "https://github.com/Adgytec/adgytec-web-ui-components.git"
58
+ },
59
+ "homepage": "https://github.com/Adgytec/adgytec-web-ui-components/#/README.md"
47
60
  }
@@ -1,50 +0,0 @@
1
- import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
- import { DialogTrigger as v, ModalOverlay as f, Modal as m, 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 || {}), u = /* @__PURE__ */ ((l) => (l.full = "full", l.threeQuarters = "three-quarters", l.half = "half", l.quarter = "quarter", l))(u || {});
4
- const k = "_modal_1vuul_1", b = "_full_1vuul_291", q = "_half_1vuul_313", y = "_quarter_1vuul_321", e = {
5
- "modal-overlay": "_modal-overlay_1vuul_1",
6
- "modal-fade": "_modal-fade_1vuul_1",
7
- modal: k,
8
- "inline-start": "_inline-start_1vuul_117",
9
- "inline-slide": "_inline-slide_1vuul_1",
10
- "inline-end": "_inline-end_1vuul_145",
11
- "block-start": "_block-start_1vuul_173",
12
- "block-slide": "_block-slide_1vuul_1",
13
- "block-end": "_block-end_1vuul_201",
14
- full: b,
15
- "three-quarters": "_three-quarters_1vuul_305",
16
- half: q,
17
- quarter: y
18
- }, D = ({
19
- children: l,
20
- trigger: t,
21
- sidebarPosition: n = r.inlineStart,
22
- sidebarSize: _ = u.full,
23
- isDismissable: o,
24
- isKeyboardDismissableDisabled: s
25
- }) => {
26
- const i = typeof l == "function";
27
- return /* @__PURE__ */ c(v, { children: [
28
- t,
29
- /* @__PURE__ */ a(
30
- f,
31
- {
32
- className: `${e["modal-overlay"]}`,
33
- isDismissable: o,
34
- isKeyboardDismissDisabled: s,
35
- children: /* @__PURE__ */ a(
36
- m,
37
- {
38
- className: `${e.modal} ${e[n]} ${e[_]}`,
39
- children: /* @__PURE__ */ a(h, { children: i ? (d) => l(d) : l })
40
- }
41
- )
42
- }
43
- )
44
- ] });
45
- };
46
- export {
47
- D as S,
48
- r as a,
49
- u as b
50
- };
@@ -1,49 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useState as l, useRef as n, useEffect as i } from "react";
3
- import './assets/useSplash.css';var u = /* @__PURE__ */ ((t) => (t.filled = "filled", t.outlined = "outlined", t.text = "text", t))(u || {}), b = /* @__PURE__ */ ((t) => (t.rectangle = "rectangle", t.square = "square", t.avatar = "avatar", t.shrink = "shrink", t))(b || {});
4
- const q = "_button_127bq_1", d = "_square_127bq_105", y = "_avatar_127bq_121", f = "_rectangle_127bq_137", m = "_shrink_127bq_149", v = "_primary_127bq_161", p = "_secondary_127bq_181", h = "_tertiary_127bq_191", x = "_error_127bq_201", k = "_success_127bq_221", g = "_filled_127bq_233", S = "_outlined_127bq_243", T = "_text_127bq_253", z = {
5
- button: q,
6
- "button-link": "_button-link_127bq_73",
7
- square: d,
8
- avatar: y,
9
- rectangle: f,
10
- shrink: m,
11
- primary: v,
12
- "primary-variant": "_primary-variant_127bq_171",
13
- secondary: p,
14
- tertiary: h,
15
- error: x,
16
- "inverse-surface": "_inverse-surface_127bq_211",
17
- success: k,
18
- filled: g,
19
- outlined: S,
20
- text: T
21
- }, $ = "_splash_zhwi0_1", R = {
22
- splash: $
23
- }, C = ({ id: t, x: e, y: s }) => /* @__PURE__ */ o(
24
- "div",
25
- {
26
- className: `${R.splash}`,
27
- style: {
28
- insetInlineStart: e,
29
- insetBlockStart: s,
30
- translate: "-50% -50%"
31
- }
32
- },
33
- `${t}`
34
- ), E = (t) => {
35
- const [e, s] = l(null), _ = n(0);
36
- let a = n(void 0), c = (r) => {
37
- s({ id: _.current++, x: r.x, y: r.y }), r.x !== -1 && r.y !== -1 && (clearTimeout(a.current), a.current = setTimeout(() => s(null), 500)), t?.(r);
38
- };
39
- return i(() => () => {
40
- clearTimeout(a.current);
41
- }, []), { coords: e, handlePress: c };
42
- };
43
- export {
44
- u as B,
45
- C as S,
46
- b as a,
47
- z as s,
48
- E as u
49
- };
File without changes
File without changes