@clasing/ui 2.7.4 → 2.7.5
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.
- package/dist/{badge-aFyTFGVU.js → badge-DnN1HZI0.js} +2 -2
- package/dist/{button-BMh8vaQL.js → button-C8ApjC1N.js} +4 -4
- package/dist/{card-aAzRmGVH.js → card-zTCfwTcL.js} +1 -1
- package/dist/{chip-BmqvnZuy.js → chip-DOCdEBBS.js} +8 -8
- package/dist/{clasing-icon-CJQQN554.js → clasing-icon-zhfWTLFn.js} +1 -1
- package/dist/{command-peXi2dFX.js → command-Cq3FhQXv.js} +2 -2
- package/dist/components/{accordion.es.js → accordion.js} +1 -1
- package/dist/components/{alert-dialog.es.js → alert-dialog.js} +2 -2
- package/dist/components/{alert.es.js → alert.js} +2 -2
- package/dist/components/{avatar.es.js → avatar.js} +1 -1
- package/dist/components/badge.js +4 -0
- package/dist/components/blocks/{interactive-card.es.js → interactive-card.js} +12 -12
- package/dist/components/blocks/{selectable-chips.es.js → selectable-chips.js} +3 -3
- package/dist/components/{breadcrumb.es.js → breadcrumb.js} +1 -1
- package/dist/components/{button-group.es.js → button-group.js} +6 -6
- package/dist/components/button.js +5 -0
- package/dist/components/{calendar.es.js → calendar.js} +2 -2
- package/dist/components/{card.es.js → card.js} +1 -1
- package/dist/components/{chart.es.js → chart.js} +1 -1
- package/dist/components/{checkbox.es.js → checkbox.js} +1 -1
- package/dist/components/chip.js +5 -0
- package/dist/components/clasing-icon.js +4 -0
- package/dist/components/{collapsible.es.js → collapsible.js} +1 -1
- package/dist/components/{command.es.js → command.js} +1 -1
- package/dist/components/{context-menu.es.js → context-menu.js} +1 -1
- package/dist/components/{dialog.es.js → dialog.js} +1 -1
- package/dist/components/divider.js +4 -0
- package/dist/components/{drawer.es.js → drawer.js} +1 -1
- package/dist/components/{dropdown-menu.es.js → dropdown-menu.js} +1 -1
- package/dist/components/{form.es.js → form.js} +2 -2
- package/dist/components/{hover-card.es.js → hover-card.js} +1 -1
- package/dist/components/{input-otp.es.js → input-otp.js} +1 -1
- package/dist/components/input.js +4 -0
- package/dist/components/{kbd.es.js → kbd.js} +1 -1
- package/dist/components/label.js +4 -0
- package/dist/components/{menubar.es.js → menubar.js} +1 -1
- package/dist/components/{multi-select.es.js → multi-select.js} +5 -5
- package/dist/components/{navigation-menu.es.js → navigation-menu.js} +2 -2
- package/dist/components/{phone-input.es.js → phone-input.js} +5 -5
- package/dist/components/{popover.es.js → popover.js} +1 -1
- package/dist/components/{progress.es.js → progress.js} +1 -1
- package/dist/components/{resizable.es.js → resizable.js} +1 -1
- package/dist/components/scroll-area.js +5 -0
- package/dist/components/{select.es.js → select.js} +1 -1
- package/dist/components/{sheet.es.js → sheet.js} +1 -1
- package/dist/components/{skeleton.es.js → skeleton.js} +1 -1
- package/dist/components/{slider.es.js → slider.js} +1 -1
- package/dist/components/{sonner.es.js → sonner.js} +2 -2
- package/dist/components/{switch.es.js → switch.js} +8 -8
- package/dist/components/{table.es.js → table.js} +1 -1
- package/dist/components/{textarea.es.js → textarea.js} +8 -8
- package/dist/components/{toggle-group.es.js → toggle-group.js} +2 -2
- package/dist/components/toggle.js +5 -0
- package/dist/components/{tooltip.es.js → tooltip.js} +1 -1
- package/dist/{dialog-CdmsVmRe.js → dialog-BcR6vjTs.js} +1 -1
- package/dist/{divider-DumyhJI_.js → divider-DnPsAXol.js} +1 -1
- package/dist/index-C_XDkVGm.js +270 -0
- package/dist/{input-9_pd3W-1.js → input-EFdg0T-Q.js} +4 -4
- package/dist/{label-BteX4MEt.js → label-CnZHCbRc.js} +1 -1
- package/dist/{popover-eQq2Is-I.js → popover-CLQxfbEi.js} +1 -1
- package/dist/{scroll-area-CJy_EOqT.js → scroll-area-DQenuQib.js} +1 -1
- package/dist/{toggle-DuhnqdDT.js → toggle-Bj6sVNqF.js} +5 -5
- package/dist/{tooltip-BYeLeBei.js → tooltip-CC_kyHTm.js} +1 -1
- package/dist/ui.css +2 -2
- package/package.json +53 -106
- package/dist/badge-DK9gdPpu.cjs +0 -91
- package/dist/button-CBGIJZh6.cjs +0 -70
- package/dist/card-DkYKwjsA.cjs +0 -12
- package/dist/chip-BlWb6w16.cjs +0 -17
- package/dist/clasing-icon-CHt2Otn8.cjs +0 -1
- package/dist/command-DNjJookC.cjs +0 -35
- package/dist/components/accordion.cjs.js +0 -20
- package/dist/components/alert-dialog.cjs.js +0 -17
- package/dist/components/alert.cjs.js +0 -6
- package/dist/components/avatar.cjs.js +0 -1
- package/dist/components/badge.cjs.js +0 -1
- package/dist/components/badge.es.js +0 -4
- package/dist/components/blocks/interactive-card.cjs.js +0 -5
- package/dist/components/blocks/selectable-chips.cjs.js +0 -1
- package/dist/components/breadcrumb.cjs.js +0 -1
- package/dist/components/button-group.cjs.js +0 -1
- package/dist/components/button.cjs.js +0 -1
- package/dist/components/button.es.js +0 -5
- package/dist/components/calendar.cjs.js +0 -73
- package/dist/components/card.cjs.js +0 -1
- package/dist/components/chart.cjs.js +0 -32
- package/dist/components/checkbox.cjs.js +0 -15
- package/dist/components/chip.cjs.js +0 -1
- package/dist/components/chip.es.js +0 -5
- package/dist/components/clasing-icon.cjs.js +0 -1
- package/dist/components/clasing-icon.es.js +0 -4
- package/dist/components/collapsible.cjs.js +0 -10
- package/dist/components/command.cjs.js +0 -1
- package/dist/components/context-menu.cjs.js +0 -70
- package/dist/components/dialog.cjs.js +0 -1
- package/dist/components/divider.cjs.js +0 -1
- package/dist/components/divider.es.js +0 -4
- package/dist/components/drawer.cjs.js +0 -42
- package/dist/components/dropdown-menu.cjs.js +0 -70
- package/dist/components/form.cjs.js +0 -1
- package/dist/components/hover-card.cjs.js +0 -13
- package/dist/components/input-otp.cjs.js +0 -19
- package/dist/components/input.cjs.js +0 -1
- package/dist/components/input.es.js +0 -4
- package/dist/components/kbd.cjs.js +0 -9
- package/dist/components/label.cjs.js +0 -1
- package/dist/components/label.es.js +0 -4
- package/dist/components/menubar.cjs.js +0 -74
- package/dist/components/multi-select.cjs.js +0 -22
- package/dist/components/navigation-menu.cjs.js +0 -70
- package/dist/components/phone-input.cjs.js +0 -21
- package/dist/components/popover.cjs.js +0 -1
- package/dist/components/progress.cjs.js +0 -1
- package/dist/components/resizable.cjs.js +0 -22
- package/dist/components/scroll-area.cjs.js +0 -1
- package/dist/components/scroll-area.es.js +0 -5
- package/dist/components/select.cjs.js +0 -56
- package/dist/components/sheet.cjs.js +0 -36
- package/dist/components/skeleton.cjs.js +0 -1
- package/dist/components/slider.cjs.js +0 -23
- package/dist/components/sonner.cjs.js +0 -15
- package/dist/components/switch.cjs.js +0 -19
- package/dist/components/table.cjs.js +0 -20
- package/dist/components/textarea.cjs.js +0 -22
- package/dist/components/toggle-group.cjs.js +0 -12
- package/dist/components/toggle.cjs.js +0 -1
- package/dist/components/toggle.es.js +0 -5
- package/dist/components/tooltip.cjs.js +0 -1
- package/dist/dialog-BUaX7IId.cjs +0 -28
- package/dist/divider-D4EfIlt3.cjs +0 -1
- package/dist/hooks/useOutsideClick.cjs.js +0 -1
- package/dist/index-Bfismeyo.cjs +0 -6
- package/dist/index-BmhzhLcV.cjs +0 -1
- package/dist/index-CnqageB2.js +0 -34
- package/dist/index-CwFDnnd3.js +0 -3197
- package/dist/input-DKYrdSsU.cjs +0 -28
- package/dist/label-O3mSiGyx.cjs +0 -7
- package/dist/popover-A1-x5q-F.cjs +0 -13
- package/dist/scroll-area-DFyIQG6Z.cjs +0 -6
- package/dist/toggle-BdWGPLza.cjs +0 -21
- package/dist/tooltip-BZWEHWmU.cjs +0 -14
- package/dist/utils/types.cjs.js +0 -1
- /package/dist/hooks/{useOutsideClick.es.js → useOutsideClick.js} +0 -0
- /package/dist/utils/{types.es.js → types.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as u, c as b } from "./index-
|
|
1
|
+
import { j as u, c as b } from "./index-C_XDkVGm.js";
|
|
2
2
|
import { Slot as c } from "@radix-ui/react-slot";
|
|
3
|
-
import {
|
|
3
|
+
import { cva as v } from "class-variance-authority";
|
|
4
4
|
const l = v(
|
|
5
5
|
`
|
|
6
6
|
box-border inline-flex w-fit shrink-0 items-center justify-center gap-2
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as o, j as e } from "./index-
|
|
1
|
+
import { c as o, j as e } from "./index-C_XDkVGm.js";
|
|
2
2
|
import { Slot as _ } from "@radix-ui/react-slot";
|
|
3
|
-
import {
|
|
3
|
+
import { cva as k } from "class-variance-authority";
|
|
4
4
|
import w from "react";
|
|
5
|
-
import { C } from "./clasing-icon-
|
|
6
|
-
import { b, T as c, c as g, a as f } from "./tooltip-
|
|
5
|
+
import { C } from "./clasing-icon-zhfWTLFn.js";
|
|
6
|
+
import { b, T as c, c as g, a as f } from "./tooltip-CC_kyHTm.js";
|
|
7
7
|
const T = k(
|
|
8
8
|
`
|
|
9
9
|
relative z-0 flex items-center justify-center rounded-full
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as e, c as l } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { j as e, c as l } from "./index-C_XDkVGm.js";
|
|
2
|
+
import { cva as m } from "class-variance-authority";
|
|
3
3
|
import { forwardRef as c } from "react";
|
|
4
4
|
const g = m(
|
|
5
5
|
`
|
|
@@ -58,8 +58,8 @@ const g = m(
|
|
|
58
58
|
className: o,
|
|
59
59
|
variant: t,
|
|
60
60
|
size: i,
|
|
61
|
-
weight:
|
|
62
|
-
children:
|
|
61
|
+
weight: d,
|
|
62
|
+
children: s,
|
|
63
63
|
notification: n,
|
|
64
64
|
onClick: a,
|
|
65
65
|
disabled: r,
|
|
@@ -69,14 +69,14 @@ const g = m(
|
|
|
69
69
|
{
|
|
70
70
|
ref: f,
|
|
71
71
|
className: l(
|
|
72
|
-
g({ variant: t, size: i, weight:
|
|
72
|
+
g({ variant: t, size: i, weight: d, className: o, disabled: r })
|
|
73
73
|
),
|
|
74
74
|
type: "button",
|
|
75
75
|
disabled: r ?? void 0,
|
|
76
76
|
onClick: a,
|
|
77
77
|
...u,
|
|
78
78
|
children: [
|
|
79
|
-
|
|
79
|
+
s,
|
|
80
80
|
n && /* @__PURE__ */ e.jsx(
|
|
81
81
|
"span",
|
|
82
82
|
{
|
|
@@ -92,11 +92,11 @@ const g = m(
|
|
|
92
92
|
{
|
|
93
93
|
ref: f,
|
|
94
94
|
className: l(
|
|
95
|
-
g({ variant: t, size: i, weight:
|
|
95
|
+
g({ variant: t, size: i, weight: d, className: o, disabled: r })
|
|
96
96
|
),
|
|
97
97
|
...u,
|
|
98
98
|
children: [
|
|
99
|
-
|
|
99
|
+
s,
|
|
100
100
|
n && /* @__PURE__ */ e.jsx(
|
|
101
101
|
"span",
|
|
102
102
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, c as t } from "./index-
|
|
1
|
+
import { j as e, c as t } from "./index-C_XDkVGm.js";
|
|
2
2
|
import { Command as r } from "cmdk";
|
|
3
|
-
import { D as i, e as c, h as p, c as l, b as u } from "./dialog-
|
|
3
|
+
import { D as i, e as c, h as p, c as l, b as u } from "./dialog-BcR6vjTs.js";
|
|
4
4
|
import { MagnifyingGlassIcon as g } from "@phosphor-icons/react";
|
|
5
5
|
function x({
|
|
6
6
|
className: a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, c as l } from "../index-
|
|
1
|
+
import { j as e, c as l } from "../index-C_XDkVGm.js";
|
|
2
2
|
import * as o from "@radix-ui/react-alert-dialog";
|
|
3
|
-
import { b as r } from "../button-
|
|
3
|
+
import { b as r } from "../button-C8ApjC1N.js";
|
|
4
4
|
function c({
|
|
5
5
|
...t
|
|
6
6
|
}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as r, c as n } from "../index-
|
|
1
|
+
import { j as r, c as n } from "../index-C_XDkVGm.js";
|
|
2
2
|
import { QuestionIcon as d, WarningCircleIcon as g, WarningIcon as u, CheckCircleIcon as f, InfoIcon as m } from "@phosphor-icons/react";
|
|
3
|
-
import {
|
|
3
|
+
import { cva as p } from "class-variance-authority";
|
|
4
4
|
const x = p(
|
|
5
5
|
`
|
|
6
6
|
relative grid w-full grid-cols-[0_1fr] items-start gap-y-2 rounded-2xl
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as r, c as n } from "../../index-
|
|
2
|
-
import { B as v } from "../../badge-
|
|
3
|
-
import { C as I, e as w, b as y, d as k } from "../../card-
|
|
4
|
-
import { T as z, c as B, a as R } from "../../tooltip-
|
|
1
|
+
import { j as r, c as n } from "../../index-C_XDkVGm.js";
|
|
2
|
+
import { B as v } from "../../badge-DnN1HZI0.js";
|
|
3
|
+
import { C as I, e as w, b as y, d as k } from "../../card-zTCfwTcL.js";
|
|
4
|
+
import { T as z, c as B, a as R } from "../../tooltip-CC_kyHTm.js";
|
|
5
5
|
import { InfoIcon as E } from "@phosphor-icons/react";
|
|
6
|
-
import {
|
|
6
|
+
import { cva as F } from "class-variance-authority";
|
|
7
7
|
import { forwardRef as H } from "react";
|
|
8
8
|
const O = F(
|
|
9
9
|
`
|
|
@@ -25,12 +25,12 @@ const O = F(
|
|
|
25
25
|
icon: l,
|
|
26
26
|
tooltipIcon: p,
|
|
27
27
|
tooltipText: o,
|
|
28
|
-
tooltipTitle:
|
|
28
|
+
tooltipTitle: d,
|
|
29
29
|
tooltipSide: h,
|
|
30
30
|
tooltipSideOffset: j,
|
|
31
31
|
tooltipAlign: C,
|
|
32
32
|
children: N,
|
|
33
|
-
...
|
|
33
|
+
...c
|
|
34
34
|
}, b) => /* @__PURE__ */ r.jsxs(
|
|
35
35
|
I,
|
|
36
36
|
{
|
|
@@ -38,12 +38,12 @@ const O = F(
|
|
|
38
38
|
className: n(O({ className: u }), {
|
|
39
39
|
"border-info-foreground bg-info/50": s,
|
|
40
40
|
"border-muted-foreground bg-muted": e,
|
|
41
|
-
"cursor-pointer active:bg-info/30":
|
|
42
|
-
"cursor-pointer active:bg-info/15":
|
|
41
|
+
"cursor-pointer active:bg-info/30": c.onClick && s && !e,
|
|
42
|
+
"cursor-pointer active:bg-info/15": c.onClick && !s && !e
|
|
43
43
|
}),
|
|
44
44
|
role: "button",
|
|
45
45
|
tabIndex: 0,
|
|
46
|
-
...
|
|
46
|
+
...c,
|
|
47
47
|
children: [
|
|
48
48
|
a || l ? /* @__PURE__ */ r.jsxs(w, { className: "flex items-center justify-between gap-2", children: [
|
|
49
49
|
l ? /* @__PURE__ */ r.jsx(
|
|
@@ -78,8 +78,8 @@ const O = F(
|
|
|
78
78
|
side: h,
|
|
79
79
|
sideOffset: j,
|
|
80
80
|
align: C,
|
|
81
|
-
children:
|
|
82
|
-
|
|
81
|
+
children: d || o && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
82
|
+
d && /* @__PURE__ */ r.jsx("p", { className: "paragraph-md font-semibold", children: d }),
|
|
83
83
|
o && /* @__PURE__ */ r.jsx("p", { className: "paragraph-md", children: o })
|
|
84
84
|
] })
|
|
85
85
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as s, c as n } from "../../index-
|
|
2
|
-
import { C as R } from "../../chip-
|
|
3
|
-
import { L as k } from "../../label-
|
|
1
|
+
import { j as s, c as n } from "../../index-C_XDkVGm.js";
|
|
2
|
+
import { C as R } from "../../chip-DOCdEBBS.js";
|
|
3
|
+
import { L as k } from "../../label-CnZHCbRc.js";
|
|
4
4
|
import { CheckIcon as I } from "@phosphor-icons/react";
|
|
5
5
|
import * as u from "react";
|
|
6
6
|
const L = u.forwardRef(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as r, c as n } from "../index-
|
|
2
|
-
import { Slot as
|
|
3
|
-
import {
|
|
4
|
-
import { D as l } from "../divider-
|
|
5
|
-
const d =
|
|
1
|
+
import { j as r, c as n } from "../index-C_XDkVGm.js";
|
|
2
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as a } from "class-variance-authority";
|
|
4
|
+
import { D as l } from "../divider-DnPsAXol.js";
|
|
5
|
+
const d = a(
|
|
6
6
|
"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-full [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
@@ -37,7 +37,7 @@ function h({
|
|
|
37
37
|
asChild: t = !1,
|
|
38
38
|
...e
|
|
39
39
|
}) {
|
|
40
|
-
const s = t ?
|
|
40
|
+
const s = t ? i : "div";
|
|
41
41
|
return /* @__PURE__ */ r.jsx(
|
|
42
42
|
s,
|
|
43
43
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as n, c as e } from "../index-
|
|
1
|
+
import { j as n, c as e } from "../index-C_XDkVGm.js";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { getDefaultClassNames as p, DayPicker as x } from "react-day-picker";
|
|
4
|
-
import { b as m, B as h } from "../button-
|
|
4
|
+
import { b as m, B as h } from "../button-C8ApjC1N.js";
|
|
5
5
|
import { CaretLeftIcon as w, CaretRightIcon as _, CaretDownIcon as y } from "@phosphor-icons/react";
|
|
6
6
|
function C({
|
|
7
7
|
className: c,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as o, a as d, b as n, c as s, d as C, e as t, f as r, g as p, h as e } from "../command-
|
|
1
|
+
import { C as o, a as d, b as n, c as s, d as C, e as t, f as r, g as p, h as e } from "../command-Cq3FhQXv.js";
|
|
2
2
|
export {
|
|
3
3
|
o as Command,
|
|
4
4
|
d as CommandDialog,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e, c as s } from "../index-
|
|
1
|
+
import { j as e, c as s } from "../index-C_XDkVGm.js";
|
|
2
2
|
import * as a from "@radix-ui/react-context-menu";
|
|
3
3
|
import { CheckIcon as i, CircleIcon as d, CaretRightIcon as c } from "@phosphor-icons/react";
|
|
4
4
|
function m({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as i, a as l, b as g, c as s, d as D, e, f as r, g as t, h as n, i as c } from "../dialog-
|
|
1
|
+
import { D as i, a as l, b as g, c as s, d as D, e, f as r, g as t, h as n, i as c } from "../dialog-BcR6vjTs.js";
|
|
2
2
|
export {
|
|
3
3
|
i as Dialog,
|
|
4
4
|
l as DialogClose,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t, c as r } from "../index-
|
|
1
|
+
import { j as t, c as r } from "../index-C_XDkVGm.js";
|
|
2
2
|
import * as o from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
import { CheckIcon as d, CircleIcon as i, CaretRightIcon as u } from "@phosphor-icons/react";
|
|
4
4
|
function p({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as n, c as a } from "../index-
|
|
1
|
+
import { j as n, c as a } from "../index-C_XDkVGm.js";
|
|
2
2
|
import { Slot as f } from "@radix-ui/react-slot";
|
|
3
3
|
import * as m from "react";
|
|
4
4
|
import { FormProvider as u, Controller as x, useFormContext as F, useFormState as I } from "react-hook-form";
|
|
5
|
-
import { L as g } from "../label-
|
|
5
|
+
import { L as g } from "../label-CnZHCbRc.js";
|
|
6
6
|
const v = u, c = m.createContext(
|
|
7
7
|
{}
|
|
8
8
|
), h = ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as e, c as I } from "../index-
|
|
2
|
-
import { B as z } from "../badge-
|
|
3
|
-
import { C as E, f as P, d as O, b as _, c as A, e as F, g as L } from "../command-
|
|
4
|
-
import { P as T, b as W, c as G } from "../popover-
|
|
1
|
+
import { j as e, c as I } from "../index-C_XDkVGm.js";
|
|
2
|
+
import { B as z } from "../badge-DnN1HZI0.js";
|
|
3
|
+
import { C as E, f as P, d as O, b as _, c as A, e as F, g as L } from "../command-Cq3FhQXv.js";
|
|
4
|
+
import { P as T, b as W, c as G } from "../popover-CLQxfbEi.js";
|
|
5
5
|
import { CheckIcon as B, CaretUpDownIcon as D, XIcon as U } from "@phosphor-icons/react";
|
|
6
6
|
import { createContext as X, useState as y, useCallback as V, useEffect as k, useRef as M, useLayoutEffect as q, useContext as H } from "react";
|
|
7
|
-
import { C as J } from "../clasing-icon-
|
|
7
|
+
import { C as J } from "../clasing-icon-zhfWTLFn.js";
|
|
8
8
|
const R = X(null);
|
|
9
9
|
function ne({
|
|
10
10
|
children: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, c as o } from "../index-
|
|
1
|
+
import { j as e, c as o } from "../index-C_XDkVGm.js";
|
|
2
2
|
import * as n from "@radix-ui/react-navigation-menu";
|
|
3
|
-
import {
|
|
3
|
+
import { cva as s } from "class-variance-authority";
|
|
4
4
|
import { CaretDownIcon as u } from "@phosphor-icons/react";
|
|
5
5
|
function v({
|
|
6
6
|
className: t,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as e, c as p } from "../index-
|
|
2
|
-
import { C as k, d as A, f as F, b as L, c as D, e as N } from "../command-
|
|
3
|
-
import { I as M } from "../input-
|
|
4
|
-
import { P as q, c as H, b as G } from "../popover-
|
|
5
|
-
import { S as W } from "../scroll-area-
|
|
1
|
+
import { j as e, c as p } from "../index-C_XDkVGm.js";
|
|
2
|
+
import { C as k, d as A, f as F, b as L, c as D, e as N } from "../command-Cq3FhQXv.js";
|
|
3
|
+
import { I as M } from "../input-EFdg0T-Q.js";
|
|
4
|
+
import { P as q, c as H, b as G } from "../popover-CLQxfbEi.js";
|
|
5
|
+
import { S as W } from "../scroll-area-DQenuQib.js";
|
|
6
6
|
import { CaretDownIcon as $, CheckIcon as B } from "@phosphor-icons/react";
|
|
7
7
|
import * as t from "react";
|
|
8
8
|
import * as I from "react-phone-number-input";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as s, c as o } from "../index-
|
|
1
|
+
import { j as s, c as o } from "../index-C_XDkVGm.js";
|
|
2
2
|
import { XIcon as w, WarningIcon as j, CheckCircleIcon as k, InfoIcon as I, WarningCircleIcon as N } from "@phosphor-icons/react";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import { Toaster as z } from "sonner";
|
|
5
|
-
import { C } from "../clasing-icon-
|
|
5
|
+
import { C } from "../clasing-icon-zhfWTLFn.js";
|
|
6
6
|
var S = (r, a, m, c, i, t, g, f) => {
|
|
7
7
|
let n = document.documentElement, p = ["light", "dark"];
|
|
8
8
|
function l(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as o, c as w } from "../index-
|
|
2
|
-
import {
|
|
1
|
+
import { j as o, c as w } from "../index-C_XDkVGm.js";
|
|
2
|
+
import { cva as r } from "class-variance-authority";
|
|
3
3
|
import { forwardRef as b, useState as x } from "react";
|
|
4
4
|
const g = r(
|
|
5
5
|
`
|
|
@@ -51,14 +51,14 @@ const g = r(
|
|
|
51
51
|
defaultChecked: h,
|
|
52
52
|
checked: a,
|
|
53
53
|
onCheckedChange: l,
|
|
54
|
-
disabled:
|
|
55
|
-
switchSize:
|
|
54
|
+
disabled: n,
|
|
55
|
+
switchSize: s,
|
|
56
56
|
...u
|
|
57
57
|
}, f) => {
|
|
58
58
|
const [k, m] = x(
|
|
59
59
|
h || !1
|
|
60
60
|
), c = a !== void 0, t = c ? a : k, i = () => {
|
|
61
|
-
if (
|
|
61
|
+
if (n) return;
|
|
62
62
|
const e = !t;
|
|
63
63
|
c || m(e), l?.(e);
|
|
64
64
|
}, p = (e) => {
|
|
@@ -74,10 +74,10 @@ const g = r(
|
|
|
74
74
|
"data-state": t ? "checked" : "unchecked",
|
|
75
75
|
onClick: i,
|
|
76
76
|
onKeyDown: p,
|
|
77
|
-
disabled:
|
|
77
|
+
disabled: n,
|
|
78
78
|
className: w(
|
|
79
79
|
g({
|
|
80
|
-
switchSize:
|
|
80
|
+
switchSize: s,
|
|
81
81
|
className: d
|
|
82
82
|
})
|
|
83
83
|
),
|
|
@@ -86,7 +86,7 @@ const g = r(
|
|
|
86
86
|
"span",
|
|
87
87
|
{
|
|
88
88
|
"data-state": t ? "checked" : "unchecked",
|
|
89
|
-
className: v({ switchSize:
|
|
89
|
+
className: v({ switchSize: s })
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
92
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as r, c as
|
|
2
|
-
import {
|
|
1
|
+
import { j as r, c as s } from "../index-C_XDkVGm.js";
|
|
2
|
+
import { cva as v } from "class-variance-authority";
|
|
3
3
|
const u = v(
|
|
4
4
|
`
|
|
5
5
|
flex w-full min-w-0 rounded-md border border-input bg-transparent
|
|
@@ -39,13 +39,13 @@ function b({
|
|
|
39
39
|
showCharacterCount: c = !1,
|
|
40
40
|
...a
|
|
41
41
|
}) {
|
|
42
|
-
const
|
|
42
|
+
const t = a.value ? String(a.value).length : 0, d = c || e;
|
|
43
43
|
return !i && !d ? /* @__PURE__ */ r.jsx(
|
|
44
44
|
"textarea",
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "textarea",
|
|
47
47
|
maxLength: e,
|
|
48
|
-
className:
|
|
48
|
+
className: s(
|
|
49
49
|
u({ size: l, resize: o }),
|
|
50
50
|
`
|
|
51
51
|
focus-visible:border-ring focus-visible:ring-[3px]
|
|
@@ -67,7 +67,7 @@ function b({
|
|
|
67
67
|
{
|
|
68
68
|
"data-slot": "textarea",
|
|
69
69
|
maxLength: e,
|
|
70
|
-
className:
|
|
70
|
+
className: s(
|
|
71
71
|
u({ size: l, resize: o }),
|
|
72
72
|
`
|
|
73
73
|
focus-visible:border-ring focus-visible:ring-[3px]
|
|
@@ -89,10 +89,10 @@ function b({
|
|
|
89
89
|
d && /* @__PURE__ */ r.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ r.jsx(
|
|
90
90
|
"span",
|
|
91
91
|
{
|
|
92
|
-
className:
|
|
93
|
-
"text-destructive": e &&
|
|
92
|
+
className: s("paragraph-xs text-muted-foreground", {
|
|
93
|
+
"text-destructive": e && t > e
|
|
94
94
|
}),
|
|
95
|
-
children: e ? `${
|
|
95
|
+
children: e ? `${t}/${e}` : t
|
|
96
96
|
}
|
|
97
97
|
) })
|
|
98
98
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as i, c as s } from "../index-
|
|
1
|
+
import { j as i, c as s } from "../index-C_XDkVGm.js";
|
|
2
2
|
import * as d from "@radix-ui/react-toggle-group";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import { t as m } from "../toggle-
|
|
4
|
+
import { t as m } from "../toggle-Bj6sVNqF.js";
|
|
5
5
|
const u = l.createContext({
|
|
6
6
|
size: "md",
|
|
7
7
|
variant: "default"
|