shadcn-ui-react 0.3.1 → 0.3.3
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/index.cjs +28 -11
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.js +28 -11
- package/dist/style.css +25 -2
- package/package.json +52 -51
package/dist/index.cjs
CHANGED
|
@@ -580,10 +580,11 @@ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
|
580
580
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
581
581
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
582
582
|
var React5 = __toESM(require("react"), 1);
|
|
583
|
+
var import_framer_motion = require("framer-motion");
|
|
583
584
|
var import_lucide_react = require("lucide-react");
|
|
584
585
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
585
586
|
var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
586
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
587
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors transition-transform active:scale-95 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 cursor-pointer",
|
|
587
588
|
{
|
|
588
589
|
variants: {
|
|
589
590
|
variant: {
|
|
@@ -616,7 +617,9 @@ var Button = React5.forwardRef(
|
|
|
616
617
|
asChild = false,
|
|
617
618
|
loading = false,
|
|
618
619
|
loaderClassName,
|
|
619
|
-
children
|
|
620
|
+
children,
|
|
621
|
+
scale = 0.95,
|
|
622
|
+
duration = 0.1
|
|
620
623
|
} = _b, props = __objRest(_b, [
|
|
621
624
|
"className",
|
|
622
625
|
"variant",
|
|
@@ -624,12 +627,18 @@ var Button = React5.forwardRef(
|
|
|
624
627
|
"asChild",
|
|
625
628
|
"loading",
|
|
626
629
|
"loaderClassName",
|
|
627
|
-
"children"
|
|
630
|
+
"children",
|
|
631
|
+
"scale",
|
|
632
|
+
"duration"
|
|
628
633
|
]);
|
|
629
|
-
const Comp = asChild ? import_react_slot2.Slot :
|
|
634
|
+
const Comp = asChild ? import_react_slot2.Slot : import_framer_motion.motion.button;
|
|
635
|
+
const motionProps = !asChild ? {
|
|
636
|
+
whileTap: { scale },
|
|
637
|
+
transition: { duration }
|
|
638
|
+
} : {};
|
|
630
639
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
631
640
|
Comp,
|
|
632
|
-
__spreadProps(__spreadValues({
|
|
641
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, motionProps), {
|
|
633
642
|
className: cn(
|
|
634
643
|
buttonVariants({ variant, size }),
|
|
635
644
|
className,
|
|
@@ -637,7 +646,7 @@ var Button = React5.forwardRef(
|
|
|
637
646
|
),
|
|
638
647
|
ref,
|
|
639
648
|
disabled: loading || props.disabled
|
|
640
|
-
}, props), {
|
|
649
|
+
}), props), {
|
|
641
650
|
children: [
|
|
642
651
|
loading ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.Loader2, { className: cn(loaderClassName, "animate-spin mr-2") }) : null,
|
|
643
652
|
children
|
|
@@ -5909,9 +5918,8 @@ var HoverCardContent = React44.forwardRef((_a, ref) => {
|
|
|
5909
5918
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
5910
5919
|
|
|
5911
5920
|
// src/components/icons.tsx
|
|
5912
|
-
var icon = __toESM(require("lucide-react"), 1);
|
|
5913
5921
|
var import_lucide_react3 = require("lucide-react");
|
|
5914
|
-
var IconsApp =
|
|
5922
|
+
var IconsApp = {
|
|
5915
5923
|
dashboard: import_lucide_react3.LayoutDashboardIcon,
|
|
5916
5924
|
logo: import_lucide_react3.Command,
|
|
5917
5925
|
login: import_lucide_react3.LogIn,
|
|
@@ -5939,7 +5947,7 @@ var IconsApp = __spreadValues({
|
|
|
5939
5947
|
moon: import_lucide_react3.Moon,
|
|
5940
5948
|
laptop: import_lucide_react3.Laptop,
|
|
5941
5949
|
check: import_lucide_react3.Check
|
|
5942
|
-
}
|
|
5950
|
+
};
|
|
5943
5951
|
var Icons = IconsApp;
|
|
5944
5952
|
|
|
5945
5953
|
// src/components/input-otp.tsx
|
|
@@ -7559,7 +7567,16 @@ var AlertModal = ({
|
|
|
7559
7567
|
className,
|
|
7560
7568
|
children: children ? children : /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
|
|
7561
7569
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { disabled: loading, variant: "outline", onClick: onClose, children: cancelText }),
|
|
7562
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
7570
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
7571
|
+
Button,
|
|
7572
|
+
{
|
|
7573
|
+
disabled: loading,
|
|
7574
|
+
variant: "destructive",
|
|
7575
|
+
className: cn("text-white"),
|
|
7576
|
+
onClick: onConfirm,
|
|
7577
|
+
children: confirmText
|
|
7578
|
+
}
|
|
7579
|
+
)
|
|
7563
7580
|
] })
|
|
7564
7581
|
}
|
|
7565
7582
|
);
|
|
@@ -7872,7 +7889,7 @@ function ImagePreview({ file }) {
|
|
|
7872
7889
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
7873
7890
|
function Heading({ title, description, className }) {
|
|
7874
7891
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className, children: [
|
|
7875
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("
|
|
7892
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "text-lg font-bold tracking-tight text-primary sm:text-3xl", children: title }),
|
|
7876
7893
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-sm text-muted-foreground", children: description })
|
|
7877
7894
|
] });
|
|
7878
7895
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -91,9 +91,12 @@ declare const buttonVariants: (props?: ({
|
|
|
91
91
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
92
92
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
93
93
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
94
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null;
|
|
94
95
|
asChild?: boolean;
|
|
95
96
|
loading?: boolean;
|
|
96
97
|
loaderClassName?: string;
|
|
98
|
+
scale?: number;
|
|
99
|
+
duration?: number;
|
|
97
100
|
}
|
|
98
101
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
99
102
|
|
|
@@ -520,21 +523,21 @@ declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupP
|
|
|
520
523
|
|
|
521
524
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => react_jsx_runtime.JSX.Element;
|
|
522
525
|
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLMapElement | HTMLAnchorElement | HTMLButtonElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
523
|
-
className?: string
|
|
526
|
+
className?: string;
|
|
524
527
|
collapsedSize?: number | undefined;
|
|
525
528
|
collapsible?: boolean | undefined;
|
|
526
529
|
defaultSize?: number | undefined;
|
|
527
|
-
id?: string
|
|
530
|
+
id?: string;
|
|
528
531
|
maxSize?: number | undefined;
|
|
529
532
|
minSize?: number | undefined;
|
|
530
|
-
onCollapse?: ResizablePrimitive.PanelOnCollapse
|
|
531
|
-
onExpand?: ResizablePrimitive.PanelOnExpand
|
|
532
|
-
onResize?: ResizablePrimitive.PanelOnResize
|
|
533
|
-
order?: number
|
|
534
|
-
style?: object
|
|
533
|
+
onCollapse?: ResizablePrimitive.PanelOnCollapse;
|
|
534
|
+
onExpand?: ResizablePrimitive.PanelOnExpand;
|
|
535
|
+
onResize?: ResizablePrimitive.PanelOnResize;
|
|
536
|
+
order?: number;
|
|
537
|
+
style?: object;
|
|
535
538
|
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
536
539
|
} & {
|
|
537
|
-
children?: React$1.ReactNode;
|
|
540
|
+
children?: React$1.ReactNode | undefined;
|
|
538
541
|
} & React$1.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
539
542
|
declare const ResizableHandle: ({ withHandle, className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
540
543
|
withHandle?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -91,9 +91,12 @@ declare const buttonVariants: (props?: ({
|
|
|
91
91
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
92
92
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
93
93
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
94
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null;
|
|
94
95
|
asChild?: boolean;
|
|
95
96
|
loading?: boolean;
|
|
96
97
|
loaderClassName?: string;
|
|
98
|
+
scale?: number;
|
|
99
|
+
duration?: number;
|
|
97
100
|
}
|
|
98
101
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
99
102
|
|
|
@@ -520,21 +523,21 @@ declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupP
|
|
|
520
523
|
|
|
521
524
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => react_jsx_runtime.JSX.Element;
|
|
522
525
|
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLMapElement | HTMLAnchorElement | HTMLButtonElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
523
|
-
className?: string
|
|
526
|
+
className?: string;
|
|
524
527
|
collapsedSize?: number | undefined;
|
|
525
528
|
collapsible?: boolean | undefined;
|
|
526
529
|
defaultSize?: number | undefined;
|
|
527
|
-
id?: string
|
|
530
|
+
id?: string;
|
|
528
531
|
maxSize?: number | undefined;
|
|
529
532
|
minSize?: number | undefined;
|
|
530
|
-
onCollapse?: ResizablePrimitive.PanelOnCollapse
|
|
531
|
-
onExpand?: ResizablePrimitive.PanelOnExpand
|
|
532
|
-
onResize?: ResizablePrimitive.PanelOnResize
|
|
533
|
-
order?: number
|
|
534
|
-
style?: object
|
|
533
|
+
onCollapse?: ResizablePrimitive.PanelOnCollapse;
|
|
534
|
+
onExpand?: ResizablePrimitive.PanelOnExpand;
|
|
535
|
+
onResize?: ResizablePrimitive.PanelOnResize;
|
|
536
|
+
order?: number;
|
|
537
|
+
style?: object;
|
|
535
538
|
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
536
539
|
} & {
|
|
537
|
-
children?: React$1.ReactNode;
|
|
540
|
+
children?: React$1.ReactNode | undefined;
|
|
538
541
|
} & React$1.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
539
542
|
declare const ResizableHandle: ({ withHandle, className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
540
543
|
withHandle?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -323,10 +323,11 @@ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
|
323
323
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
324
324
|
import { cva as cva3 } from "class-variance-authority";
|
|
325
325
|
import * as React5 from "react";
|
|
326
|
+
import { motion } from "framer-motion";
|
|
326
327
|
import { Loader2 } from "lucide-react";
|
|
327
328
|
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
328
329
|
var buttonVariants = cva3(
|
|
329
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
330
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors transition-transform active:scale-95 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 cursor-pointer",
|
|
330
331
|
{
|
|
331
332
|
variants: {
|
|
332
333
|
variant: {
|
|
@@ -359,7 +360,9 @@ var Button = React5.forwardRef(
|
|
|
359
360
|
asChild = false,
|
|
360
361
|
loading = false,
|
|
361
362
|
loaderClassName,
|
|
362
|
-
children
|
|
363
|
+
children,
|
|
364
|
+
scale = 0.95,
|
|
365
|
+
duration = 0.1
|
|
363
366
|
} = _b, props = __objRest(_b, [
|
|
364
367
|
"className",
|
|
365
368
|
"variant",
|
|
@@ -367,12 +370,18 @@ var Button = React5.forwardRef(
|
|
|
367
370
|
"asChild",
|
|
368
371
|
"loading",
|
|
369
372
|
"loaderClassName",
|
|
370
|
-
"children"
|
|
373
|
+
"children",
|
|
374
|
+
"scale",
|
|
375
|
+
"duration"
|
|
371
376
|
]);
|
|
372
|
-
const Comp = asChild ? Slot2 :
|
|
377
|
+
const Comp = asChild ? Slot2 : motion.button;
|
|
378
|
+
const motionProps = !asChild ? {
|
|
379
|
+
whileTap: { scale },
|
|
380
|
+
transition: { duration }
|
|
381
|
+
} : {};
|
|
373
382
|
return /* @__PURE__ */ jsxs3(
|
|
374
383
|
Comp,
|
|
375
|
-
__spreadProps(__spreadValues({
|
|
384
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, motionProps), {
|
|
376
385
|
className: cn(
|
|
377
386
|
buttonVariants({ variant, size }),
|
|
378
387
|
className,
|
|
@@ -380,7 +389,7 @@ var Button = React5.forwardRef(
|
|
|
380
389
|
),
|
|
381
390
|
ref,
|
|
382
391
|
disabled: loading || props.disabled
|
|
383
|
-
}, props), {
|
|
392
|
+
}), props), {
|
|
384
393
|
children: [
|
|
385
394
|
loading ? /* @__PURE__ */ jsx6(Loader2, { className: cn(loaderClassName, "animate-spin mr-2") }) : null,
|
|
386
395
|
children
|
|
@@ -5665,7 +5674,6 @@ var HoverCardContent = React44.forwardRef((_a, ref) => {
|
|
|
5665
5674
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
5666
5675
|
|
|
5667
5676
|
// src/components/icons.tsx
|
|
5668
|
-
import * as icon from "lucide-react";
|
|
5669
5677
|
import {
|
|
5670
5678
|
AlertTriangle,
|
|
5671
5679
|
ArrowRight,
|
|
@@ -5695,7 +5703,7 @@ import {
|
|
|
5695
5703
|
UserX2Icon,
|
|
5696
5704
|
X
|
|
5697
5705
|
} from "lucide-react";
|
|
5698
|
-
var IconsApp =
|
|
5706
|
+
var IconsApp = {
|
|
5699
5707
|
dashboard: LayoutDashboardIcon,
|
|
5700
5708
|
logo: Command2,
|
|
5701
5709
|
login: LogIn,
|
|
@@ -5723,7 +5731,7 @@ var IconsApp = __spreadValues({
|
|
|
5723
5731
|
moon: Moon,
|
|
5724
5732
|
laptop: Laptop,
|
|
5725
5733
|
check: Check
|
|
5726
|
-
}
|
|
5734
|
+
};
|
|
5727
5735
|
var Icons = IconsApp;
|
|
5728
5736
|
|
|
5729
5737
|
// src/components/input-otp.tsx
|
|
@@ -7356,7 +7364,16 @@ var AlertModal = ({
|
|
|
7356
7364
|
className,
|
|
7357
7365
|
children: children ? children : /* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
|
|
7358
7366
|
/* @__PURE__ */ jsx46(Button, { disabled: loading, variant: "outline", onClick: onClose, children: cancelText }),
|
|
7359
|
-
/* @__PURE__ */ jsx46(
|
|
7367
|
+
/* @__PURE__ */ jsx46(
|
|
7368
|
+
Button,
|
|
7369
|
+
{
|
|
7370
|
+
disabled: loading,
|
|
7371
|
+
variant: "destructive",
|
|
7372
|
+
className: cn("text-white"),
|
|
7373
|
+
onClick: onConfirm,
|
|
7374
|
+
children: confirmText
|
|
7375
|
+
}
|
|
7376
|
+
)
|
|
7360
7377
|
] })
|
|
7361
7378
|
}
|
|
7362
7379
|
);
|
|
@@ -7678,7 +7695,7 @@ function ImagePreview({ file }) {
|
|
|
7678
7695
|
import { jsx as jsx51, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
7679
7696
|
function Heading({ title, description, className }) {
|
|
7680
7697
|
return /* @__PURE__ */ jsxs25("div", { className, children: [
|
|
7681
|
-
/* @__PURE__ */ jsx51("
|
|
7698
|
+
/* @__PURE__ */ jsx51("div", { className: "text-lg font-bold tracking-tight text-primary sm:text-3xl", children: title }),
|
|
7682
7699
|
/* @__PURE__ */ jsx51("p", { className: "text-sm text-muted-foreground", children: description })
|
|
7683
7700
|
] });
|
|
7684
7701
|
}
|
package/dist/style.css
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
--color-gray-200: oklch(92.8% 0.006 264.531);
|
|
31
31
|
--color-gray-300: oklch(87.2% 0.01 258.338);
|
|
32
32
|
--color-black: #000;
|
|
33
|
+
--color-white: #fff;
|
|
33
34
|
--spacing: 0.25rem;
|
|
34
35
|
--container-sm: 24rem;
|
|
35
36
|
--container-lg: 32rem;
|
|
@@ -1171,6 +1172,9 @@
|
|
|
1171
1172
|
.text-secondary-foreground {
|
|
1172
1173
|
color: var(--secondary-foreground);
|
|
1173
1174
|
}
|
|
1175
|
+
.text-white {
|
|
1176
|
+
color: var(--color-white);
|
|
1177
|
+
}
|
|
1174
1178
|
.underline-offset-4 {
|
|
1175
1179
|
text-underline-offset: 4px;
|
|
1176
1180
|
}
|
|
@@ -1296,7 +1300,12 @@
|
|
|
1296
1300
|
rotate,
|
|
1297
1301
|
filter,
|
|
1298
1302
|
-webkit-backdrop-filter,
|
|
1299
|
-
backdrop-filter
|
|
1303
|
+
backdrop-filter,
|
|
1304
|
+
display,
|
|
1305
|
+
visibility,
|
|
1306
|
+
content-visibility,
|
|
1307
|
+
overlay,
|
|
1308
|
+
pointer-events;
|
|
1300
1309
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1301
1310
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1302
1311
|
}
|
|
@@ -1875,6 +1884,14 @@
|
|
|
1875
1884
|
outline-style: none;
|
|
1876
1885
|
}
|
|
1877
1886
|
}
|
|
1887
|
+
.active\:scale-95 {
|
|
1888
|
+
&:active {
|
|
1889
|
+
--tw-scale-x: 95%;
|
|
1890
|
+
--tw-scale-y: 95%;
|
|
1891
|
+
--tw-scale-z: 95%;
|
|
1892
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1878
1895
|
.disabled\:pointer-events-none {
|
|
1879
1896
|
&:disabled {
|
|
1880
1897
|
pointer-events: none;
|
|
@@ -2927,6 +2944,9 @@
|
|
|
2927
2944
|
@property --tw-duration { syntax: "*"; inherits: false; }
|
|
2928
2945
|
@property --tw-ease { syntax: "*"; inherits: false; }
|
|
2929
2946
|
@property --tw-content { syntax: "*"; initial-value: ""; inherits: false; }
|
|
2947
|
+
@property --tw-scale-x { syntax: "*"; inherits: false; initial-value: 1; }
|
|
2948
|
+
@property --tw-scale-y { syntax: "*"; inherits: false; initial-value: 1; }
|
|
2949
|
+
@property --tw-scale-z { syntax: "*"; inherits: false; initial-value: 1; }
|
|
2930
2950
|
@keyframes spin {
|
|
2931
2951
|
to {
|
|
2932
2952
|
transform: rotate(360deg);
|
|
@@ -2988,7 +3008,10 @@
|
|
|
2988
3008
|
--tw-duration: initial;
|
|
2989
3009
|
--tw-ease: initial;
|
|
2990
3010
|
--tw-content: "";
|
|
3011
|
+
--tw-scale-x: 1;
|
|
3012
|
+
--tw-scale-y: 1;
|
|
3013
|
+
--tw-scale-z: 1;
|
|
2991
3014
|
}
|
|
2992
3015
|
}
|
|
2993
3016
|
}
|
|
2994
|
-
/*! tailwindcss v4.1.
|
|
3017
|
+
/*! tailwindcss v4.1.6 | MIT License | https://tailwindcss.com */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shadcn-ui-react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Bleker Cordova <bleker@gliyen.com>",
|
|
6
6
|
"description": "A collection of components for building beautiful and accessible user interfaces with React and Tailwind CSS.",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"*.{js,jsx,ts,tsx}": "eslint --fix"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
|
+
"shadcn-ui-react",
|
|
26
27
|
"react",
|
|
27
28
|
"react-component",
|
|
28
29
|
"ui",
|
|
29
30
|
"shadcn",
|
|
30
|
-
"shadcn-ui"
|
|
31
|
-
"shadcn-ui-react"
|
|
31
|
+
"shadcn-ui"
|
|
32
32
|
],
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
|
@@ -46,31 +46,31 @@
|
|
|
46
46
|
"test:watch": "jest --watch"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.
|
|
50
|
-
"@babel/preset-env": "^7.
|
|
51
|
-
"@babel/preset-react": "^7.
|
|
52
|
-
"@babel/preset-typescript": "^7.27.
|
|
49
|
+
"@babel/core": "^7.27.1",
|
|
50
|
+
"@babel/preset-env": "^7.27.2",
|
|
51
|
+
"@babel/preset-react": "^7.27.1",
|
|
52
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
53
53
|
"@eslint/config-array": "^0.20.0",
|
|
54
54
|
"@eslint/object-schema": "^2.1.6",
|
|
55
55
|
"@hookform/resolvers": "^5.0.1",
|
|
56
|
-
"@tailwindcss/postcss": "^4.1.
|
|
57
|
-
"@tailwindcss/vite": "^4.1.
|
|
56
|
+
"@tailwindcss/postcss": "^4.1.6",
|
|
57
|
+
"@tailwindcss/vite": "^4.1.6",
|
|
58
58
|
"@testing-library/dom": "^10.4.0",
|
|
59
59
|
"@testing-library/jest-dom": "^6.6.3",
|
|
60
60
|
"@testing-library/react": "^16.3.0",
|
|
61
61
|
"@testing-library/user-event": "^14.6.1",
|
|
62
62
|
"@types/jest": "^29.5.14",
|
|
63
|
-
"@types/node": "^22.
|
|
64
|
-
"@types/react": "^19.1.
|
|
65
|
-
"@types/react-dom": "^19.1.
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
67
|
-
"@typescript-eslint/parser": "^8.
|
|
63
|
+
"@types/node": "^22.15.17",
|
|
64
|
+
"@types/react": "^19.1.3",
|
|
65
|
+
"@types/react-dom": "^19.1.3",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
|
67
|
+
"@typescript-eslint/parser": "^8.32.0",
|
|
68
68
|
"autoprefixer": "^10.4.21",
|
|
69
69
|
"babel-jest": "^29.7.0",
|
|
70
70
|
"cross-env": "^7.0.3",
|
|
71
|
-
"eslint": "^9.
|
|
71
|
+
"eslint": "^9.26.0",
|
|
72
72
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
73
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
73
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
74
74
|
"identity-obj-proxy": "^3.0.0",
|
|
75
75
|
"jest": "^29.7.0",
|
|
76
76
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -79,52 +79,52 @@
|
|
|
79
79
|
"react-dom": "^19.1.0",
|
|
80
80
|
"react-test-renderer": "^19.1.0",
|
|
81
81
|
"rimraf": "^6.0.1",
|
|
82
|
-
"tailwindcss": "^4.1.
|
|
82
|
+
"tailwindcss": "^4.1.6",
|
|
83
83
|
"tailwindcss-animate": "^1.0.7",
|
|
84
84
|
"tsup": "^8.4.0",
|
|
85
85
|
"typescript": "^5.8.3",
|
|
86
86
|
"vaul": "^1.1.2",
|
|
87
|
-
"vite": "^6.3.
|
|
87
|
+
"vite": "^6.3.5",
|
|
88
88
|
"vite-plugin-dts": "^4.5.3",
|
|
89
89
|
"vite-plugin-ts-alias": "^0.1.1",
|
|
90
|
-
"zod": "^3.24.
|
|
90
|
+
"zod": "^3.24.4"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"react": "^17.0.0 || ^18.3.1 || ^19.
|
|
94
|
-
"react-dom": "^17.0.0 || ^18.3.1 || ^19.
|
|
93
|
+
"react": "^17.0.0 || ^18.3.1 || ^19.1.0 || ^20.0.0",
|
|
94
|
+
"react-dom": "^17.0.0 || ^18.3.1 || ^19.1.0 || ^20.0.0"
|
|
95
95
|
},
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@radix-ui/react-accordion": "^1.2.
|
|
101
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
102
|
-
"@radix-ui/react-aspect-ratio": "^1.1.
|
|
103
|
-
"@radix-ui/react-avatar": "^1.1.
|
|
104
|
-
"@radix-ui/react-checkbox": "^1.
|
|
105
|
-
"@radix-ui/react-collapsible": "^1.1.
|
|
106
|
-
"@radix-ui/react-context-menu": "^2.2.
|
|
107
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
108
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
109
|
-
"@radix-ui/react-hover-card": "^1.1.
|
|
100
|
+
"@radix-ui/react-accordion": "^1.2.10",
|
|
101
|
+
"@radix-ui/react-alert-dialog": "^1.1.13",
|
|
102
|
+
"@radix-ui/react-aspect-ratio": "^1.1.6",
|
|
103
|
+
"@radix-ui/react-avatar": "^1.1.9",
|
|
104
|
+
"@radix-ui/react-checkbox": "^1.3.1",
|
|
105
|
+
"@radix-ui/react-collapsible": "^1.1.10",
|
|
106
|
+
"@radix-ui/react-context-menu": "^2.2.14",
|
|
107
|
+
"@radix-ui/react-dialog": "^1.1.13",
|
|
108
|
+
"@radix-ui/react-dropdown-menu": "^2.1.14",
|
|
109
|
+
"@radix-ui/react-hover-card": "^1.1.13",
|
|
110
110
|
"@radix-ui/react-icons": "^1.3.2",
|
|
111
|
-
"@radix-ui/react-label": "^2.1.
|
|
112
|
-
"@radix-ui/react-menubar": "^1.1.
|
|
113
|
-
"@radix-ui/react-navigation-menu": "^1.2.
|
|
114
|
-
"@radix-ui/react-popover": "^1.1.
|
|
115
|
-
"@radix-ui/react-progress": "^1.1.
|
|
116
|
-
"@radix-ui/react-radio-group": "^1.3.
|
|
117
|
-
"@radix-ui/react-scroll-area": "^1.2.
|
|
118
|
-
"@radix-ui/react-select": "^2.2.
|
|
119
|
-
"@radix-ui/react-separator": "^1.1.
|
|
120
|
-
"@radix-ui/react-slider": "^1.3.
|
|
121
|
-
"@radix-ui/react-slot": "^1.2.
|
|
122
|
-
"@radix-ui/react-switch": "^1.2.
|
|
123
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
124
|
-
"@radix-ui/react-toast": "^1.2.
|
|
125
|
-
"@radix-ui/react-toggle": "^1.1.
|
|
126
|
-
"@radix-ui/react-toggle-group": "^1.1.
|
|
127
|
-
"@radix-ui/react-tooltip": "^1.2.
|
|
111
|
+
"@radix-ui/react-label": "^2.1.6",
|
|
112
|
+
"@radix-ui/react-menubar": "^1.1.14",
|
|
113
|
+
"@radix-ui/react-navigation-menu": "^1.2.12",
|
|
114
|
+
"@radix-ui/react-popover": "^1.1.13",
|
|
115
|
+
"@radix-ui/react-progress": "^1.1.6",
|
|
116
|
+
"@radix-ui/react-radio-group": "^1.3.6",
|
|
117
|
+
"@radix-ui/react-scroll-area": "^1.2.8",
|
|
118
|
+
"@radix-ui/react-select": "^2.2.4",
|
|
119
|
+
"@radix-ui/react-separator": "^1.1.6",
|
|
120
|
+
"@radix-ui/react-slider": "^1.3.4",
|
|
121
|
+
"@radix-ui/react-slot": "^1.2.2",
|
|
122
|
+
"@radix-ui/react-switch": "^1.2.4",
|
|
123
|
+
"@radix-ui/react-tabs": "^1.1.11",
|
|
124
|
+
"@radix-ui/react-toast": "^1.2.13",
|
|
125
|
+
"@radix-ui/react-toggle": "^1.1.8",
|
|
126
|
+
"@radix-ui/react-toggle-group": "^1.1.9",
|
|
127
|
+
"@radix-ui/react-tooltip": "^1.2.6",
|
|
128
128
|
"@tanstack/react-table": "^8.21.3",
|
|
129
129
|
"@vitejs/plugin-react": "^4.4.1",
|
|
130
130
|
"@vitejs/plugin-react-swc": "^3.9.0",
|
|
@@ -132,13 +132,14 @@
|
|
|
132
132
|
"clsx": "^2.1.1",
|
|
133
133
|
"cmdk": "^1.1.1",
|
|
134
134
|
"embla-carousel-react": "^8.6.0",
|
|
135
|
+
"framer-motion": "^12.10.5",
|
|
135
136
|
"input-otp": "^1.4.2",
|
|
136
|
-
"lucide-react": "^0.
|
|
137
|
+
"lucide-react": "^0.509.0",
|
|
137
138
|
"next-themes": "^0.4.6",
|
|
138
139
|
"react-dropzone": "^14.3.8",
|
|
139
140
|
"react-helmet-next": "^0.0.1",
|
|
140
|
-
"react-hook-form": "^7.56.
|
|
141
|
-
"react-resizable-panels": "^
|
|
141
|
+
"react-hook-form": "^7.56.3",
|
|
142
|
+
"react-resizable-panels": "^3.0.1",
|
|
142
143
|
"sonner": "^2.0.3",
|
|
143
144
|
"tailwind-merge": "^3.2.0",
|
|
144
145
|
"tailwind-variants": "^1.0.0",
|