@wealthx/shadcn 1.0.0 → 1.0.2
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/.turbo/turbo-build.log +34 -31
- package/CHANGELOG.md +12 -0
- package/README.md +128 -0
- package/dist/{chunk-2WZVSBAY.mjs → chunk-3NQGYJEZ.mjs} +1 -1
- package/dist/{chunk-ZN2QKLF6.mjs → chunk-46OFHMQA.mjs} +1 -1
- package/dist/{chunk-IAOOZCUY.mjs → chunk-4AJ5HWHD.mjs} +4 -1
- package/dist/{chunk-7LDIMXGM.mjs → chunk-DKZRJOMF.mjs} +1 -1
- package/dist/{chunk-AMJ23O53.mjs → chunk-FHNT55I5.mjs} +2 -2
- package/dist/{chunk-NGYG2EA6.mjs → chunk-I64K754C.mjs} +1 -1
- package/dist/chunk-K74JRTJR.mjs +105 -0
- package/dist/{chunk-MKFL5MNH.mjs → chunk-K76E2TQU.mjs} +1 -1
- package/dist/{chunk-NWZ46DJL.mjs → chunk-KQDD5MU3.mjs} +1 -1
- package/dist/components/ui/alert-dialog.js +4 -1
- package/dist/components/ui/alert-dialog.mjs +2 -2
- package/dist/components/ui/button.js +4 -1
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/calendar.js +4 -1
- package/dist/components/ui/calendar.mjs +2 -2
- package/dist/components/ui/data-table.js +4 -1
- package/dist/components/ui/data-table.mjs +2 -2
- package/dist/components/ui/date-picker.js +4 -1
- package/dist/components/ui/date-picker.mjs +3 -3
- package/dist/components/ui/dialog.js +4 -1
- package/dist/components/ui/dialog.mjs +2 -2
- package/dist/components/ui/input-group.js +4 -1
- package/dist/components/ui/input-group.mjs +2 -2
- package/dist/components/ui/pagination.js +4 -1
- package/dist/components/ui/pagination.mjs +2 -2
- package/dist/components/ui/slider.js +166 -0
- package/dist/components/ui/slider.mjs +8 -0
- package/dist/index.js +140 -41
- package/dist/index.mjs +12 -8
- package/dist/styles.css +1 -1
- package/package.json +6 -1
- package/src/components/index.tsx +3 -0
- package/src/components/ui/button.tsx +2 -0
- package/src/components/ui/slider.tsx +107 -0
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -207,6 +207,7 @@ __export(index_exports, {
|
|
|
207
207
|
SheetTitle: () => SheetTitle,
|
|
208
208
|
SheetTrigger: () => SheetTrigger,
|
|
209
209
|
Skeleton: () => Skeleton,
|
|
210
|
+
Slider: () => Slider,
|
|
210
211
|
Spinner: () => Spinner,
|
|
211
212
|
Switch: () => Switch,
|
|
212
213
|
SwitchCard: () => SwitchCard,
|
|
@@ -530,6 +531,7 @@ var Button = (0, import_react2.forwardRef)(function Button2(_a, ref) {
|
|
|
530
531
|
asChild = false,
|
|
531
532
|
loading = false,
|
|
532
533
|
disabled,
|
|
534
|
+
type = "button",
|
|
533
535
|
children
|
|
534
536
|
} = _b, props = __objRest(_b, [
|
|
535
537
|
"className",
|
|
@@ -538,6 +540,7 @@ var Button = (0, import_react2.forwardRef)(function Button2(_a, ref) {
|
|
|
538
540
|
"asChild",
|
|
539
541
|
"loading",
|
|
540
542
|
"disabled",
|
|
543
|
+
"type",
|
|
541
544
|
"children"
|
|
542
545
|
]);
|
|
543
546
|
const Comp = asChild ? Slot : "button";
|
|
@@ -550,7 +553,8 @@ var Button = (0, import_react2.forwardRef)(function Button2(_a, ref) {
|
|
|
550
553
|
"data-slot": "button",
|
|
551
554
|
"data-variant": variant,
|
|
552
555
|
disabled: loading || disabled,
|
|
553
|
-
ref
|
|
556
|
+
ref,
|
|
557
|
+
type
|
|
554
558
|
}, props), {
|
|
555
559
|
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
556
560
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
|
|
@@ -3747,22 +3751,116 @@ function SheetDescription(_a) {
|
|
|
3747
3751
|
);
|
|
3748
3752
|
}
|
|
3749
3753
|
|
|
3754
|
+
// src/components/ui/slider.tsx
|
|
3755
|
+
var React7 = __toESM(require("react"));
|
|
3756
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3757
|
+
var Slider = React7.forwardRef(
|
|
3758
|
+
(_a, ref) => {
|
|
3759
|
+
var _b = _a, {
|
|
3760
|
+
className,
|
|
3761
|
+
value,
|
|
3762
|
+
defaultValue = 0,
|
|
3763
|
+
min = 0,
|
|
3764
|
+
max = 100,
|
|
3765
|
+
step = 1,
|
|
3766
|
+
disabled = false,
|
|
3767
|
+
onValueChange
|
|
3768
|
+
} = _b, props = __objRest(_b, [
|
|
3769
|
+
"className",
|
|
3770
|
+
"value",
|
|
3771
|
+
"defaultValue",
|
|
3772
|
+
"min",
|
|
3773
|
+
"max",
|
|
3774
|
+
"step",
|
|
3775
|
+
"disabled",
|
|
3776
|
+
"onValueChange"
|
|
3777
|
+
]);
|
|
3778
|
+
const [internalValue, setInternalValue] = React7.useState(defaultValue);
|
|
3779
|
+
const currentValue = value !== void 0 ? value : internalValue;
|
|
3780
|
+
const percentage = (currentValue - min) / (max - min) * 100;
|
|
3781
|
+
const handleChange = (e) => {
|
|
3782
|
+
const newValue = Number(e.target.value);
|
|
3783
|
+
if (value === void 0) {
|
|
3784
|
+
setInternalValue(newValue);
|
|
3785
|
+
}
|
|
3786
|
+
onValueChange == null ? void 0 : onValueChange(newValue);
|
|
3787
|
+
};
|
|
3788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
3789
|
+
"div",
|
|
3790
|
+
{
|
|
3791
|
+
"data-slot": "slider",
|
|
3792
|
+
className: cn(
|
|
3793
|
+
"relative flex w-full touch-none items-center select-none",
|
|
3794
|
+
disabled && "opacity-50",
|
|
3795
|
+
className
|
|
3796
|
+
),
|
|
3797
|
+
children: [
|
|
3798
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3799
|
+
"div",
|
|
3800
|
+
{
|
|
3801
|
+
"data-slot": "slider-track",
|
|
3802
|
+
className: "relative h-2 w-full overflow-hidden rounded-full bg-muted",
|
|
3803
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3804
|
+
"div",
|
|
3805
|
+
{
|
|
3806
|
+
"data-slot": "slider-range",
|
|
3807
|
+
className: "absolute h-full rounded-full bg-primary",
|
|
3808
|
+
style: { width: `${percentage}%` }
|
|
3809
|
+
}
|
|
3810
|
+
)
|
|
3811
|
+
}
|
|
3812
|
+
),
|
|
3813
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3814
|
+
"input",
|
|
3815
|
+
__spreadValues({
|
|
3816
|
+
ref,
|
|
3817
|
+
type: "range",
|
|
3818
|
+
min,
|
|
3819
|
+
max,
|
|
3820
|
+
step,
|
|
3821
|
+
value: currentValue,
|
|
3822
|
+
disabled,
|
|
3823
|
+
onChange: handleChange,
|
|
3824
|
+
className: cn(
|
|
3825
|
+
"absolute inset-0 h-full w-full cursor-pointer opacity-0",
|
|
3826
|
+
disabled && "cursor-not-allowed"
|
|
3827
|
+
)
|
|
3828
|
+
}, props)
|
|
3829
|
+
),
|
|
3830
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3831
|
+
"div",
|
|
3832
|
+
{
|
|
3833
|
+
"data-slot": "slider-thumb",
|
|
3834
|
+
className: cn(
|
|
3835
|
+
"pointer-events-none absolute top-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
3836
|
+
"block size-5 rounded-full border-2 border-primary bg-background shadow-sm"
|
|
3837
|
+
),
|
|
3838
|
+
style: { left: `${percentage}%` }
|
|
3839
|
+
}
|
|
3840
|
+
)
|
|
3841
|
+
]
|
|
3842
|
+
}
|
|
3843
|
+
);
|
|
3844
|
+
}
|
|
3845
|
+
);
|
|
3846
|
+
Slider.displayName = "Slider";
|
|
3847
|
+
|
|
3750
3848
|
// src/components/ui/sonner.tsx
|
|
3751
3849
|
var import_lucide_react15 = require("lucide-react");
|
|
3752
3850
|
var import_sonner = require("sonner");
|
|
3753
|
-
var
|
|
3851
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3754
3852
|
function Toaster(_a) {
|
|
3755
3853
|
var _b = _a, { theme = "light" } = _b, props = __objRest(_b, ["theme"]);
|
|
3756
|
-
return /* @__PURE__ */ (0,
|
|
3854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3757
3855
|
import_sonner.Toaster,
|
|
3758
3856
|
__spreadValues({
|
|
3759
3857
|
className: "toaster group",
|
|
3760
3858
|
icons: {
|
|
3761
|
-
success: /* @__PURE__ */ (0,
|
|
3762
|
-
info: /* @__PURE__ */ (0,
|
|
3763
|
-
warning: /* @__PURE__ */ (0,
|
|
3764
|
-
error: /* @__PURE__ */ (0,
|
|
3765
|
-
loading: /* @__PURE__ */ (0,
|
|
3859
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react15.CircleCheckIcon, { className: "size-4" }),
|
|
3860
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react15.InfoIcon, { className: "size-4" }),
|
|
3861
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react15.TriangleAlertIcon, { className: "size-4" }),
|
|
3862
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react15.OctagonXIcon, { className: "size-4" }),
|
|
3863
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react15.Loader2Icon, { className: "size-4 animate-spin" })
|
|
3766
3864
|
},
|
|
3767
3865
|
style: {
|
|
3768
3866
|
"--normal-bg": "var(--popover)",
|
|
@@ -3783,7 +3881,7 @@ function Toaster(_a) {
|
|
|
3783
3881
|
// src/components/ui/spinner.tsx
|
|
3784
3882
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
3785
3883
|
var import_lucide_react16 = require("lucide-react");
|
|
3786
|
-
var
|
|
3884
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3787
3885
|
var spinnerVariants = (0, import_class_variance_authority7.cva)("animate-spin shrink-0", {
|
|
3788
3886
|
variants: {
|
|
3789
3887
|
size: {
|
|
@@ -3799,7 +3897,7 @@ var spinnerVariants = (0, import_class_variance_authority7.cva)("animate-spin sh
|
|
|
3799
3897
|
});
|
|
3800
3898
|
function Spinner(_a) {
|
|
3801
3899
|
var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
|
|
3802
|
-
return /* @__PURE__ */ (0,
|
|
3900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3803
3901
|
import_lucide_react16.LoaderCircle,
|
|
3804
3902
|
__spreadValues({
|
|
3805
3903
|
"aria-hidden": "true",
|
|
@@ -3812,7 +3910,7 @@ function Spinner(_a) {
|
|
|
3812
3910
|
// src/components/ui/switch.tsx
|
|
3813
3911
|
var import_react5 = require("react");
|
|
3814
3912
|
var import_switch = require("@base-ui/react/switch");
|
|
3815
|
-
var
|
|
3913
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3816
3914
|
function Switch(_a) {
|
|
3817
3915
|
var _b = _a, {
|
|
3818
3916
|
className,
|
|
@@ -3821,7 +3919,7 @@ function Switch(_a) {
|
|
|
3821
3919
|
"className",
|
|
3822
3920
|
"size"
|
|
3823
3921
|
]);
|
|
3824
|
-
return /* @__PURE__ */ (0,
|
|
3922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3825
3923
|
import_switch.Switch.Root,
|
|
3826
3924
|
__spreadProps(__spreadValues({
|
|
3827
3925
|
className: cn(
|
|
@@ -3838,7 +3936,7 @@ function Switch(_a) {
|
|
|
3838
3936
|
"data-size": size,
|
|
3839
3937
|
"data-slot": "switch"
|
|
3840
3938
|
}, props), {
|
|
3841
|
-
children: /* @__PURE__ */ (0,
|
|
3939
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3842
3940
|
import_switch.Switch.Thumb,
|
|
3843
3941
|
{
|
|
3844
3942
|
className: cn(
|
|
@@ -3879,7 +3977,7 @@ function SwitchCard(_a) {
|
|
|
3879
3977
|
]);
|
|
3880
3978
|
const [internalChecked, setInternalChecked] = (0, import_react5.useState)(defaultChecked != null ? defaultChecked : false);
|
|
3881
3979
|
const isChecked = checked != null ? checked : internalChecked;
|
|
3882
|
-
const switchElement = /* @__PURE__ */ (0,
|
|
3980
|
+
const switchElement = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3883
3981
|
Switch,
|
|
3884
3982
|
__spreadValues({
|
|
3885
3983
|
"aria-invalid": error || void 0,
|
|
@@ -3893,11 +3991,11 @@ function SwitchCard(_a) {
|
|
|
3893
3991
|
size
|
|
3894
3992
|
}, props)
|
|
3895
3993
|
);
|
|
3896
|
-
const contentElement = /* @__PURE__ */ (0,
|
|
3897
|
-
/* @__PURE__ */ (0,
|
|
3898
|
-
description ? /* @__PURE__ */ (0,
|
|
3994
|
+
const contentElement = /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
3995
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-sm font-medium leading-none", children: label }),
|
|
3996
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-sm text-muted-foreground", children: description }) : null
|
|
3899
3997
|
] });
|
|
3900
|
-
return /* @__PURE__ */ (0,
|
|
3998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3901
3999
|
"label",
|
|
3902
4000
|
{
|
|
3903
4001
|
className: cn(
|
|
@@ -3908,10 +4006,10 @@ function SwitchCard(_a) {
|
|
|
3908
4006
|
className
|
|
3909
4007
|
),
|
|
3910
4008
|
"data-slot": "switch-card",
|
|
3911
|
-
children: switchPosition === "left" ? /* @__PURE__ */ (0,
|
|
4009
|
+
children: switchPosition === "left" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
3912
4010
|
switchElement,
|
|
3913
4011
|
contentElement
|
|
3914
|
-
] }) : /* @__PURE__ */ (0,
|
|
4012
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
3915
4013
|
contentElement,
|
|
3916
4014
|
switchElement
|
|
3917
4015
|
] })
|
|
@@ -3922,7 +4020,7 @@ function SwitchCard(_a) {
|
|
|
3922
4020
|
// src/components/ui/tabs.tsx
|
|
3923
4021
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
3924
4022
|
var import_tabs = require("@base-ui/react/tabs");
|
|
3925
|
-
var
|
|
4023
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3926
4024
|
function Tabs(_a) {
|
|
3927
4025
|
var _b = _a, {
|
|
3928
4026
|
className,
|
|
@@ -3931,7 +4029,7 @@ function Tabs(_a) {
|
|
|
3931
4029
|
"className",
|
|
3932
4030
|
"orientation"
|
|
3933
4031
|
]);
|
|
3934
|
-
return /* @__PURE__ */ (0,
|
|
4032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3935
4033
|
import_tabs.Tabs.Root,
|
|
3936
4034
|
__spreadValues({
|
|
3937
4035
|
className: cn(
|
|
@@ -3965,7 +4063,7 @@ function TabsList(_a) {
|
|
|
3965
4063
|
"className",
|
|
3966
4064
|
"variant"
|
|
3967
4065
|
]);
|
|
3968
|
-
return /* @__PURE__ */ (0,
|
|
4066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3969
4067
|
import_tabs.Tabs.List,
|
|
3970
4068
|
__spreadValues({
|
|
3971
4069
|
className: cn(tabsListVariants({ variant }), className),
|
|
@@ -3980,7 +4078,7 @@ function TabsTrigger(_a) {
|
|
|
3980
4078
|
} = _b, props = __objRest(_b, [
|
|
3981
4079
|
"className"
|
|
3982
4080
|
]);
|
|
3983
|
-
return /* @__PURE__ */ (0,
|
|
4081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3984
4082
|
import_tabs.Tabs.Tab,
|
|
3985
4083
|
__spreadValues({
|
|
3986
4084
|
className: cn(
|
|
@@ -4021,7 +4119,7 @@ function TabsContent(_a) {
|
|
|
4021
4119
|
} = _b, props = __objRest(_b, [
|
|
4022
4120
|
"className"
|
|
4023
4121
|
]);
|
|
4024
|
-
return /* @__PURE__ */ (0,
|
|
4122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4025
4123
|
import_tabs.Tabs.Panel,
|
|
4026
4124
|
__spreadValues({
|
|
4027
4125
|
className: cn("flex-1 outline-none", className),
|
|
@@ -4031,14 +4129,14 @@ function TabsContent(_a) {
|
|
|
4031
4129
|
}
|
|
4032
4130
|
|
|
4033
4131
|
// src/components/ui/toggle-group.tsx
|
|
4034
|
-
var
|
|
4132
|
+
var React8 = __toESM(require("react"));
|
|
4035
4133
|
var import_toggle_group = require("@base-ui/react/toggle-group");
|
|
4036
4134
|
var import_toggle2 = require("@base-ui/react/toggle");
|
|
4037
4135
|
|
|
4038
4136
|
// src/components/ui/toggle.tsx
|
|
4039
4137
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
4040
4138
|
var import_toggle = require("@base-ui/react/toggle");
|
|
4041
|
-
var
|
|
4139
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4042
4140
|
var toggleVariants = (0, import_class_variance_authority9.cva)(
|
|
4043
4141
|
"inline-flex items-center justify-center gap-2 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-pressed:bg-primary/10 data-pressed:inset-ring data-pressed:inset-ring-primary data-pressed:text-foreground data-pressed:hover:bg-primary/10 data-pressed:hover:text-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
4044
4142
|
{
|
|
@@ -4069,7 +4167,7 @@ function Toggle(_a) {
|
|
|
4069
4167
|
"variant",
|
|
4070
4168
|
"size"
|
|
4071
4169
|
]);
|
|
4072
|
-
return /* @__PURE__ */ (0,
|
|
4170
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4073
4171
|
import_toggle.Toggle,
|
|
4074
4172
|
__spreadValues({
|
|
4075
4173
|
className: cn(toggleVariants({ variant, size, className })),
|
|
@@ -4079,8 +4177,8 @@ function Toggle(_a) {
|
|
|
4079
4177
|
}
|
|
4080
4178
|
|
|
4081
4179
|
// src/components/ui/toggle-group.tsx
|
|
4082
|
-
var
|
|
4083
|
-
var ToggleGroupContext =
|
|
4180
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4181
|
+
var ToggleGroupContext = React8.createContext({
|
|
4084
4182
|
size: "default",
|
|
4085
4183
|
variant: "default",
|
|
4086
4184
|
spacing: 0
|
|
@@ -4101,7 +4199,7 @@ function ToggleGroup(_a) {
|
|
|
4101
4199
|
"type",
|
|
4102
4200
|
"children"
|
|
4103
4201
|
]);
|
|
4104
|
-
return /* @__PURE__ */ (0,
|
|
4202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4105
4203
|
import_toggle_group.ToggleGroup,
|
|
4106
4204
|
__spreadProps(__spreadValues({
|
|
4107
4205
|
className: cn(
|
|
@@ -4116,7 +4214,7 @@ function ToggleGroup(_a) {
|
|
|
4116
4214
|
multiple: type === "multiple",
|
|
4117
4215
|
style: { "--gap": spacing }
|
|
4118
4216
|
}, props), {
|
|
4119
|
-
children: /* @__PURE__ */ (0,
|
|
4217
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
4120
4218
|
})
|
|
4121
4219
|
);
|
|
4122
4220
|
}
|
|
@@ -4132,8 +4230,8 @@ function ToggleGroupItem(_a) {
|
|
|
4132
4230
|
"variant",
|
|
4133
4231
|
"size"
|
|
4134
4232
|
]);
|
|
4135
|
-
const context =
|
|
4136
|
-
return /* @__PURE__ */ (0,
|
|
4233
|
+
const context = React8.useContext(ToggleGroupContext);
|
|
4234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4137
4235
|
import_toggle2.Toggle,
|
|
4138
4236
|
__spreadProps(__spreadValues({
|
|
4139
4237
|
className: cn(
|
|
@@ -4158,14 +4256,14 @@ function ToggleGroupItem(_a) {
|
|
|
4158
4256
|
|
|
4159
4257
|
// src/components/ui/tooltip.tsx
|
|
4160
4258
|
var import_tooltip = require("@base-ui/react/tooltip");
|
|
4161
|
-
var
|
|
4259
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4162
4260
|
function TooltipProvider(_a) {
|
|
4163
4261
|
var _b = _a, {
|
|
4164
4262
|
delay = 0
|
|
4165
4263
|
} = _b, props = __objRest(_b, [
|
|
4166
4264
|
"delay"
|
|
4167
4265
|
]);
|
|
4168
|
-
return /* @__PURE__ */ (0,
|
|
4266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4169
4267
|
import_tooltip.Tooltip.Provider,
|
|
4170
4268
|
__spreadValues({
|
|
4171
4269
|
"data-slot": "tooltip-provider",
|
|
@@ -4175,11 +4273,11 @@ function TooltipProvider(_a) {
|
|
|
4175
4273
|
}
|
|
4176
4274
|
function Tooltip(_a) {
|
|
4177
4275
|
var props = __objRest(_a, []);
|
|
4178
|
-
return /* @__PURE__ */ (0,
|
|
4276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_tooltip.Tooltip.Root, __spreadValues({ "data-slot": "tooltip" }, props));
|
|
4179
4277
|
}
|
|
4180
4278
|
function TooltipTrigger(_a) {
|
|
4181
4279
|
var props = __objRest(_a, []);
|
|
4182
|
-
return /* @__PURE__ */ (0,
|
|
4280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_tooltip.Tooltip.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
|
|
4183
4281
|
}
|
|
4184
4282
|
function TooltipContent(_a) {
|
|
4185
4283
|
var _b = _a, {
|
|
@@ -4194,8 +4292,8 @@ function TooltipContent(_a) {
|
|
|
4194
4292
|
"style"
|
|
4195
4293
|
]);
|
|
4196
4294
|
const themeVars = useThemeVars();
|
|
4197
|
-
return /* @__PURE__ */ (0,
|
|
4198
|
-
/* @__PURE__ */ (0,
|
|
4295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_tooltip.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_tooltip.Tooltip.Positioner, { sideOffset, children: [
|
|
4296
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4199
4297
|
import_tooltip.Tooltip.Popup,
|
|
4200
4298
|
__spreadProps(__spreadValues({
|
|
4201
4299
|
className: cn(
|
|
@@ -4208,7 +4306,7 @@ function TooltipContent(_a) {
|
|
|
4208
4306
|
children
|
|
4209
4307
|
})
|
|
4210
4308
|
),
|
|
4211
|
-
/* @__PURE__ */ (0,
|
|
4309
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4212
4310
|
import_tooltip.Tooltip.Arrow,
|
|
4213
4311
|
{
|
|
4214
4312
|
className: "z-50 size-2.5 rotate-45 bg-brand-secondary"
|
|
@@ -4366,6 +4464,7 @@ function TooltipContent(_a) {
|
|
|
4366
4464
|
SheetTitle,
|
|
4367
4465
|
SheetTrigger,
|
|
4368
4466
|
Skeleton,
|
|
4467
|
+
Slider,
|
|
4369
4468
|
Spinner,
|
|
4370
4469
|
Switch,
|
|
4371
4470
|
SwitchCard,
|
package/dist/index.mjs
CHANGED
|
@@ -23,6 +23,9 @@ import {
|
|
|
23
23
|
SheetTitle,
|
|
24
24
|
SheetTrigger
|
|
25
25
|
} from "./chunk-PMKODV6M.mjs";
|
|
26
|
+
import {
|
|
27
|
+
Slider
|
|
28
|
+
} from "./chunk-K74JRTJR.mjs";
|
|
26
29
|
import {
|
|
27
30
|
Toaster
|
|
28
31
|
} from "./chunk-2Y7YJKPE.mjs";
|
|
@@ -49,7 +52,7 @@ import {
|
|
|
49
52
|
PaginationLink,
|
|
50
53
|
PaginationNext,
|
|
51
54
|
PaginationPrevious
|
|
52
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-I64K754C.mjs";
|
|
53
56
|
import {
|
|
54
57
|
Progress
|
|
55
58
|
} from "./chunk-BBJBJSXQ.mjs";
|
|
@@ -60,7 +63,7 @@ import {
|
|
|
60
63
|
} from "./chunk-JU2RUWHF.mjs";
|
|
61
64
|
import {
|
|
62
65
|
DatePicker
|
|
63
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-FHNT55I5.mjs";
|
|
64
67
|
import {
|
|
65
68
|
Popover,
|
|
66
69
|
PopoverAnchor,
|
|
@@ -81,7 +84,7 @@ import {
|
|
|
81
84
|
DialogPortal,
|
|
82
85
|
DialogTitle,
|
|
83
86
|
DialogTrigger
|
|
84
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-DKZRJOMF.mjs";
|
|
85
88
|
import {
|
|
86
89
|
Drawer,
|
|
87
90
|
DrawerClose,
|
|
@@ -127,7 +130,7 @@ import {
|
|
|
127
130
|
InputGroupInput,
|
|
128
131
|
InputGroupText,
|
|
129
132
|
InputGroupTextarea
|
|
130
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-46OFHMQA.mjs";
|
|
131
134
|
import {
|
|
132
135
|
Textarea
|
|
133
136
|
} from "./chunk-GPRJQ24C.mjs";
|
|
@@ -148,7 +151,7 @@ import {
|
|
|
148
151
|
import {
|
|
149
152
|
Calendar,
|
|
150
153
|
CalendarDayButton
|
|
151
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-3NQGYJEZ.mjs";
|
|
152
155
|
import {
|
|
153
156
|
Card,
|
|
154
157
|
CardAction,
|
|
@@ -172,7 +175,7 @@ import {
|
|
|
172
175
|
DataTableSkeleton,
|
|
173
176
|
DataTableToolbar,
|
|
174
177
|
getSelectionColumn
|
|
175
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-K76E2TQU.mjs";
|
|
176
179
|
import {
|
|
177
180
|
Skeleton
|
|
178
181
|
} from "./chunk-HS7TFG7V.mjs";
|
|
@@ -253,11 +256,11 @@ import {
|
|
|
253
256
|
AlertDialogPortal,
|
|
254
257
|
AlertDialogTitle,
|
|
255
258
|
AlertDialogTrigger
|
|
256
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-KQDD5MU3.mjs";
|
|
257
260
|
import {
|
|
258
261
|
Button,
|
|
259
262
|
buttonVariants
|
|
260
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-4AJ5HWHD.mjs";
|
|
261
264
|
import "./chunk-DBHJ5KC3.mjs";
|
|
262
265
|
import "./chunk-OXQQNQZI.mjs";
|
|
263
266
|
import "./chunk-QOJ2DQD6.mjs";
|
|
@@ -419,6 +422,7 @@ export {
|
|
|
419
422
|
SheetTitle,
|
|
420
423
|
SheetTrigger,
|
|
421
424
|
Skeleton,
|
|
425
|
+
Slider,
|
|
422
426
|
Spinner,
|
|
423
427
|
Switch,
|
|
424
428
|
SwitchCard,
|