shadcn-ui-react 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +54 -46
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +16 -8
- package/dist/style.css +9 -0
- package/package.json +32 -32
package/dist/index.cjs
CHANGED
|
@@ -5673,7 +5673,7 @@ var import_class_variance_authority4 = require("class-variance-authority");
|
|
|
5673
5673
|
var React41 = __toESM(require("react"), 1);
|
|
5674
5674
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
5675
5675
|
var labelVariants = (0, import_class_variance_authority4.cva)(
|
|
5676
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
5676
|
+
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-label"
|
|
5677
5677
|
);
|
|
5678
5678
|
var Label3 = React41.forwardRef((_a, ref) => {
|
|
5679
5679
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
@@ -5712,6 +5712,7 @@ var Input = React42.forwardRef(
|
|
|
5712
5712
|
Input.displayName = "Input";
|
|
5713
5713
|
|
|
5714
5714
|
// src/components/Form/form-field.tsx
|
|
5715
|
+
var import_lucide_react2 = require("lucide-react");
|
|
5715
5716
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
5716
5717
|
var FormFieldContext = import_react33.default.createContext(
|
|
5717
5718
|
null
|
|
@@ -5722,11 +5723,11 @@ var FormField = (_a) => {
|
|
|
5722
5723
|
control,
|
|
5723
5724
|
label,
|
|
5724
5725
|
placeholder,
|
|
5725
|
-
|
|
5726
|
+
requiredLabel,
|
|
5726
5727
|
className = "px-4 py-6 shadow-inner drop-shadow-xl",
|
|
5727
5728
|
labelClassName,
|
|
5728
5729
|
messageClassName,
|
|
5729
|
-
|
|
5730
|
+
requiredLabelClassName,
|
|
5730
5731
|
rules,
|
|
5731
5732
|
shouldUnregister,
|
|
5732
5733
|
defaultValue,
|
|
@@ -5736,11 +5737,11 @@ var FormField = (_a) => {
|
|
|
5736
5737
|
"control",
|
|
5737
5738
|
"label",
|
|
5738
5739
|
"placeholder",
|
|
5739
|
-
"
|
|
5740
|
+
"requiredLabel",
|
|
5740
5741
|
"className",
|
|
5741
5742
|
"labelClassName",
|
|
5742
5743
|
"messageClassName",
|
|
5743
|
-
"
|
|
5744
|
+
"requiredLabelClassName",
|
|
5744
5745
|
"rules",
|
|
5745
5746
|
"shouldUnregister",
|
|
5746
5747
|
"defaultValue",
|
|
@@ -5760,9 +5761,17 @@ var FormField = (_a) => {
|
|
|
5760
5761
|
shouldUnregister,
|
|
5761
5762
|
defaultValue,
|
|
5762
5763
|
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(FormItem, { children: [
|
|
5763
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(FormLabel, { className: labelClassName, children: [
|
|
5764
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(FormLabel, { className: cn("flex items-center self-center gap-0", labelClassName), children: [
|
|
5764
5765
|
label,
|
|
5765
|
-
|
|
5766
|
+
requiredLabel && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
5767
|
+
import_lucide_react2.Asterisk,
|
|
5768
|
+
{
|
|
5769
|
+
className: cn(
|
|
5770
|
+
"h-3 w-3 text-red-500 ml-[1px]",
|
|
5771
|
+
requiredLabelClassName
|
|
5772
|
+
)
|
|
5773
|
+
}
|
|
5774
|
+
)
|
|
5766
5775
|
] }),
|
|
5767
5776
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
5768
5777
|
Input,
|
|
@@ -5772,7 +5781,6 @@ var FormField = (_a) => {
|
|
|
5772
5781
|
onChange == null ? void 0 : onChange(e.target.value);
|
|
5773
5782
|
},
|
|
5774
5783
|
placeholder,
|
|
5775
|
-
required,
|
|
5776
5784
|
className
|
|
5777
5785
|
})
|
|
5778
5786
|
) }),
|
|
@@ -5902,35 +5910,35 @@ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
|
5902
5910
|
|
|
5903
5911
|
// src/components/icons.tsx
|
|
5904
5912
|
var icon = __toESM(require("lucide-react"), 1);
|
|
5905
|
-
var
|
|
5913
|
+
var import_lucide_react3 = require("lucide-react");
|
|
5906
5914
|
var IconsApp = __spreadValues({
|
|
5907
|
-
dashboard:
|
|
5908
|
-
logo:
|
|
5909
|
-
login:
|
|
5910
|
-
close:
|
|
5911
|
-
profile:
|
|
5912
|
-
spinner:
|
|
5913
|
-
kanban:
|
|
5914
|
-
chevronLeft:
|
|
5915
|
-
chevronRight:
|
|
5916
|
-
trash:
|
|
5917
|
-
employee:
|
|
5918
|
-
post:
|
|
5919
|
-
page:
|
|
5920
|
-
media:
|
|
5921
|
-
settings:
|
|
5922
|
-
billing:
|
|
5923
|
-
ellipsis:
|
|
5924
|
-
add:
|
|
5925
|
-
warning:
|
|
5926
|
-
user:
|
|
5927
|
-
arrowRight:
|
|
5928
|
-
help:
|
|
5929
|
-
pizza:
|
|
5930
|
-
sun:
|
|
5931
|
-
moon:
|
|
5932
|
-
laptop:
|
|
5933
|
-
check:
|
|
5915
|
+
dashboard: import_lucide_react3.LayoutDashboardIcon,
|
|
5916
|
+
logo: import_lucide_react3.Command,
|
|
5917
|
+
login: import_lucide_react3.LogIn,
|
|
5918
|
+
close: import_lucide_react3.X,
|
|
5919
|
+
profile: import_lucide_react3.User2Icon,
|
|
5920
|
+
spinner: import_lucide_react3.Loader2,
|
|
5921
|
+
kanban: import_lucide_react3.CircuitBoardIcon,
|
|
5922
|
+
chevronLeft: import_lucide_react3.ChevronLeft,
|
|
5923
|
+
chevronRight: import_lucide_react3.ChevronRight,
|
|
5924
|
+
trash: import_lucide_react3.Trash,
|
|
5925
|
+
employee: import_lucide_react3.UserX2Icon,
|
|
5926
|
+
post: import_lucide_react3.FileText,
|
|
5927
|
+
page: import_lucide_react3.File,
|
|
5928
|
+
media: import_lucide_react3.Image,
|
|
5929
|
+
settings: import_lucide_react3.Settings,
|
|
5930
|
+
billing: import_lucide_react3.CreditCard,
|
|
5931
|
+
ellipsis: import_lucide_react3.MoreVertical,
|
|
5932
|
+
add: import_lucide_react3.Plus,
|
|
5933
|
+
warning: import_lucide_react3.AlertTriangle,
|
|
5934
|
+
user: import_lucide_react3.User,
|
|
5935
|
+
arrowRight: import_lucide_react3.ArrowRight,
|
|
5936
|
+
help: import_lucide_react3.HelpCircle,
|
|
5937
|
+
pizza: import_lucide_react3.Pizza,
|
|
5938
|
+
sun: import_lucide_react3.SunMedium,
|
|
5939
|
+
moon: import_lucide_react3.Moon,
|
|
5940
|
+
laptop: import_lucide_react3.Laptop,
|
|
5941
|
+
check: import_lucide_react3.Check
|
|
5934
5942
|
}, icon);
|
|
5935
5943
|
var Icons = IconsApp;
|
|
5936
5944
|
|
|
@@ -6315,7 +6323,7 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
|
6315
6323
|
// src/components/pagination.tsx
|
|
6316
6324
|
var import_react_icons12 = require("@radix-ui/react-icons");
|
|
6317
6325
|
var React48 = __toESM(require("react"), 1);
|
|
6318
|
-
var
|
|
6326
|
+
var import_lucide_react4 = require("lucide-react");
|
|
6319
6327
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
6320
6328
|
var Pagination = (_a) => {
|
|
6321
6329
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
@@ -6384,7 +6392,7 @@ var PaginationPreviousLast = (_a) => {
|
|
|
6384
6392
|
className: cn("gap-1 pl-2.5", className)
|
|
6385
6393
|
}, props), {
|
|
6386
6394
|
children: [
|
|
6387
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
6395
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react4.ChevronLeft, { className: "h-4 w-4" }),
|
|
6388
6396
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "sr-only", children: "Previous Last" })
|
|
6389
6397
|
]
|
|
6390
6398
|
})
|
|
@@ -6448,7 +6456,7 @@ var PaginationNextLast = (_a) => {
|
|
|
6448
6456
|
}, props), {
|
|
6449
6457
|
children: [
|
|
6450
6458
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "sr-only", children: "Next Last" }),
|
|
6451
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
6459
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react4.ChevronRight, { className: "h-4 w-4" })
|
|
6452
6460
|
]
|
|
6453
6461
|
})
|
|
6454
6462
|
);
|
|
@@ -7558,13 +7566,13 @@ var AlertModal = ({
|
|
|
7558
7566
|
};
|
|
7559
7567
|
|
|
7560
7568
|
// src/shared/breadcrumbs.tsx
|
|
7561
|
-
var
|
|
7569
|
+
var import_lucide_react5 = require("lucide-react");
|
|
7562
7570
|
var import_react35 = require("react");
|
|
7563
7571
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
7564
7572
|
function Breadcrumbs({ items, className, classNameList }) {
|
|
7565
7573
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Breadcrumb, { className, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(BreadcrumbList, { className: classNameList, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react35.Fragment, { children: [
|
|
7566
7574
|
index !== items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(BreadcrumbLink, { href: item.link, children: item.title }) }),
|
|
7567
|
-
index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(BreadcrumbSeparator, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7575
|
+
index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(BreadcrumbSeparator, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react5.Slash, {}) }),
|
|
7568
7576
|
index === items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(BreadcrumbPage, { children: item.title })
|
|
7569
7577
|
] }, item.title)) }) });
|
|
7570
7578
|
}
|
|
@@ -7573,7 +7581,7 @@ function Breadcrumbs({ items, className, classNameList }) {
|
|
|
7573
7581
|
var import_react36 = __toESM(require("react"), 1);
|
|
7574
7582
|
var import_react_icons18 = require("@radix-ui/react-icons");
|
|
7575
7583
|
var import_react_table = require("@tanstack/react-table");
|
|
7576
|
-
var
|
|
7584
|
+
var import_lucide_react6 = require("lucide-react");
|
|
7577
7585
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
7578
7586
|
function DataTable({
|
|
7579
7587
|
columns,
|
|
@@ -7727,7 +7735,7 @@ function DataTable({
|
|
|
7727
7735
|
pageIndex: pagination.pageIndex - 1
|
|
7728
7736
|
})),
|
|
7729
7737
|
disabled: pagination.pageIndex === 0,
|
|
7730
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
7738
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react6.ChevronLeftIcon, { className: "h-4 w-4" })
|
|
7731
7739
|
}
|
|
7732
7740
|
),
|
|
7733
7741
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
@@ -7740,7 +7748,7 @@ function DataTable({
|
|
|
7740
7748
|
pageIndex: pagination.pageIndex + 1
|
|
7741
7749
|
})),
|
|
7742
7750
|
disabled: pagination.pageIndex + 1 >= pageCount,
|
|
7743
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
7751
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react6.ChevronRightIcon, { className: "h-4 w-4" })
|
|
7744
7752
|
}
|
|
7745
7753
|
),
|
|
7746
7754
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
@@ -7802,7 +7810,7 @@ function DataTableSkeleton({
|
|
|
7802
7810
|
|
|
7803
7811
|
// src/shared/fileupload.tsx
|
|
7804
7812
|
var import_react_icons19 = require("@radix-ui/react-icons");
|
|
7805
|
-
var
|
|
7813
|
+
var import_lucide_react7 = require("lucide-react");
|
|
7806
7814
|
var import_react37 = require("react");
|
|
7807
7815
|
var import_react_dropzone = require("react-dropzone");
|
|
7808
7816
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
@@ -7834,7 +7842,7 @@ function FileUpload({
|
|
|
7834
7842
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("input", __spreadValues({}, getInputProps())),
|
|
7835
7843
|
value && !!value.length ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ImagePreview, { file: value[0] }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons19.AvatarIcon, { className: "h-36 w-36 text-gray-100" }),
|
|
7836
7844
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("p", { className: "absolute -bottom-5 left-1/2 flex w-full -translate-x-1/2 -translate-y-1/2 transform flex-col items-center justify-center bg-gray-300 bg-opacity-50 py-1 text-xs font-normal text-muted-foreground ", children: [
|
|
7837
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7845
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react7.CameraIcon, { className: "h-4 w-4 text-muted-foreground" }),
|
|
7838
7846
|
label
|
|
7839
7847
|
] })
|
|
7840
7848
|
] }))
|
package/dist/index.d.cts
CHANGED
|
@@ -318,12 +318,12 @@ type CustomFormFieldProps<TFieldValues extends FieldValues, TName extends FieldP
|
|
|
318
318
|
className?: string;
|
|
319
319
|
labelClassName?: string;
|
|
320
320
|
messageClassName?: string;
|
|
321
|
-
|
|
321
|
+
requiredLabelClassName?: string;
|
|
322
322
|
label?: string;
|
|
323
|
-
|
|
323
|
+
requiredLabel?: boolean;
|
|
324
324
|
onChange?: (value: string) => void;
|
|
325
325
|
} & React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
326
|
-
declare const FormField: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, label, placeholder,
|
|
326
|
+
declare const FormField: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, label, placeholder, requiredLabel, className, labelClassName, messageClassName, requiredLabelClassName, rules, shouldUnregister, defaultValue, onChange, ...inputProps }: CustomFormFieldProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
327
327
|
declare const FormItem: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
328
328
|
declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & React__default.RefAttributes<HTMLLabelElement>>;
|
|
329
329
|
declare const useFormField: () => {
|
package/dist/index.d.ts
CHANGED
|
@@ -318,12 +318,12 @@ type CustomFormFieldProps<TFieldValues extends FieldValues, TName extends FieldP
|
|
|
318
318
|
className?: string;
|
|
319
319
|
labelClassName?: string;
|
|
320
320
|
messageClassName?: string;
|
|
321
|
-
|
|
321
|
+
requiredLabelClassName?: string;
|
|
322
322
|
label?: string;
|
|
323
|
-
|
|
323
|
+
requiredLabel?: boolean;
|
|
324
324
|
onChange?: (value: string) => void;
|
|
325
325
|
} & React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
326
|
-
declare const FormField: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, label, placeholder,
|
|
326
|
+
declare const FormField: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, label, placeholder, requiredLabel, className, labelClassName, messageClassName, requiredLabelClassName, rules, shouldUnregister, defaultValue, onChange, ...inputProps }: CustomFormFieldProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
327
327
|
declare const FormItem: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
328
328
|
declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & React__default.RefAttributes<HTMLLabelElement>>;
|
|
329
329
|
declare const useFormField: () => {
|
package/dist/index.js
CHANGED
|
@@ -5429,7 +5429,7 @@ import { cva as cva4 } from "class-variance-authority";
|
|
|
5429
5429
|
import * as React41 from "react";
|
|
5430
5430
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
5431
5431
|
var labelVariants = cva4(
|
|
5432
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
5432
|
+
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-label"
|
|
5433
5433
|
);
|
|
5434
5434
|
var Label3 = React41.forwardRef((_a, ref) => {
|
|
5435
5435
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
@@ -5468,6 +5468,7 @@ var Input = React42.forwardRef(
|
|
|
5468
5468
|
Input.displayName = "Input";
|
|
5469
5469
|
|
|
5470
5470
|
// src/components/Form/form-field.tsx
|
|
5471
|
+
import { Asterisk } from "lucide-react";
|
|
5471
5472
|
import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
5472
5473
|
var FormFieldContext = React43.createContext(
|
|
5473
5474
|
null
|
|
@@ -5478,11 +5479,11 @@ var FormField = (_a) => {
|
|
|
5478
5479
|
control,
|
|
5479
5480
|
label,
|
|
5480
5481
|
placeholder,
|
|
5481
|
-
|
|
5482
|
+
requiredLabel,
|
|
5482
5483
|
className = "px-4 py-6 shadow-inner drop-shadow-xl",
|
|
5483
5484
|
labelClassName,
|
|
5484
5485
|
messageClassName,
|
|
5485
|
-
|
|
5486
|
+
requiredLabelClassName,
|
|
5486
5487
|
rules,
|
|
5487
5488
|
shouldUnregister,
|
|
5488
5489
|
defaultValue,
|
|
@@ -5492,11 +5493,11 @@ var FormField = (_a) => {
|
|
|
5492
5493
|
"control",
|
|
5493
5494
|
"label",
|
|
5494
5495
|
"placeholder",
|
|
5495
|
-
"
|
|
5496
|
+
"requiredLabel",
|
|
5496
5497
|
"className",
|
|
5497
5498
|
"labelClassName",
|
|
5498
5499
|
"messageClassName",
|
|
5499
|
-
"
|
|
5500
|
+
"requiredLabelClassName",
|
|
5500
5501
|
"rules",
|
|
5501
5502
|
"shouldUnregister",
|
|
5502
5503
|
"defaultValue",
|
|
@@ -5516,9 +5517,17 @@ var FormField = (_a) => {
|
|
|
5516
5517
|
shouldUnregister,
|
|
5517
5518
|
defaultValue,
|
|
5518
5519
|
render: ({ field }) => /* @__PURE__ */ jsxs10(FormItem, { children: [
|
|
5519
|
-
label && /* @__PURE__ */ jsxs10(FormLabel, { className: labelClassName, children: [
|
|
5520
|
+
label && /* @__PURE__ */ jsxs10(FormLabel, { className: cn("flex items-center self-center gap-0", labelClassName), children: [
|
|
5520
5521
|
label,
|
|
5521
|
-
|
|
5522
|
+
requiredLabel && /* @__PURE__ */ jsx19(
|
|
5523
|
+
Asterisk,
|
|
5524
|
+
{
|
|
5525
|
+
className: cn(
|
|
5526
|
+
"h-3 w-3 text-red-500 ml-[1px]",
|
|
5527
|
+
requiredLabelClassName
|
|
5528
|
+
)
|
|
5529
|
+
}
|
|
5530
|
+
)
|
|
5522
5531
|
] }),
|
|
5523
5532
|
/* @__PURE__ */ jsx19(FormControl, { children: /* @__PURE__ */ jsx19(
|
|
5524
5533
|
Input,
|
|
@@ -5528,7 +5537,6 @@ var FormField = (_a) => {
|
|
|
5528
5537
|
onChange == null ? void 0 : onChange(e.target.value);
|
|
5529
5538
|
},
|
|
5530
5539
|
placeholder,
|
|
5531
|
-
required,
|
|
5532
5540
|
className
|
|
5533
5541
|
})
|
|
5534
5542
|
) }),
|
package/dist/style.css
CHANGED
|
@@ -443,6 +443,9 @@
|
|
|
443
443
|
.ml-2 {
|
|
444
444
|
margin-left: calc(var(--spacing) * 2);
|
|
445
445
|
}
|
|
446
|
+
.ml-\[1px\] {
|
|
447
|
+
margin-left: 1px;
|
|
448
|
+
}
|
|
446
449
|
.ml-auto {
|
|
447
450
|
margin-left: auto;
|
|
448
451
|
}
|
|
@@ -726,6 +729,9 @@
|
|
|
726
729
|
.justify-end {
|
|
727
730
|
justify-content: flex-end;
|
|
728
731
|
}
|
|
732
|
+
.gap-0 {
|
|
733
|
+
gap: calc(var(--spacing) * 0);
|
|
734
|
+
}
|
|
729
735
|
.gap-1 {
|
|
730
736
|
gap: calc(var(--spacing) * 1);
|
|
731
737
|
}
|
|
@@ -787,6 +793,9 @@
|
|
|
787
793
|
margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
|
|
788
794
|
}
|
|
789
795
|
}
|
|
796
|
+
.self-center {
|
|
797
|
+
align-self: center;
|
|
798
|
+
}
|
|
790
799
|
.overflow-auto {
|
|
791
800
|
overflow: auto;
|
|
792
801
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shadcn-ui-react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
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.",
|
|
@@ -68,7 +68,7 @@
|
|
|
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.25.0",
|
|
72
72
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
73
73
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
74
74
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -97,48 +97,48 @@
|
|
|
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.7",
|
|
101
|
+
"@radix-ui/react-alert-dialog": "^1.1.10",
|
|
102
|
+
"@radix-ui/react-aspect-ratio": "^1.1.4",
|
|
103
|
+
"@radix-ui/react-avatar": "^1.1.6",
|
|
104
|
+
"@radix-ui/react-checkbox": "^1.2.2",
|
|
105
|
+
"@radix-ui/react-collapsible": "^1.1.7",
|
|
106
|
+
"@radix-ui/react-context-menu": "^2.2.11",
|
|
107
|
+
"@radix-ui/react-dialog": "^1.1.10",
|
|
108
|
+
"@radix-ui/react-dropdown-menu": "^2.1.11",
|
|
109
|
+
"@radix-ui/react-hover-card": "^1.1.10",
|
|
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.
|
|
117
|
-
"@radix-ui/react-scroll-area": "^1.2.
|
|
118
|
-
"@radix-ui/react-select": "^2.
|
|
119
|
-
"@radix-ui/react-separator": "^1.1.
|
|
120
|
-
"@radix-ui/react-slider": "^1.2
|
|
111
|
+
"@radix-ui/react-label": "^2.1.4",
|
|
112
|
+
"@radix-ui/react-menubar": "^1.1.11",
|
|
113
|
+
"@radix-ui/react-navigation-menu": "^1.2.9",
|
|
114
|
+
"@radix-ui/react-popover": "^1.1.10",
|
|
115
|
+
"@radix-ui/react-progress": "^1.1.4",
|
|
116
|
+
"@radix-ui/react-radio-group": "^1.3.3",
|
|
117
|
+
"@radix-ui/react-scroll-area": "^1.2.5",
|
|
118
|
+
"@radix-ui/react-select": "^2.2.2",
|
|
119
|
+
"@radix-ui/react-separator": "^1.1.4",
|
|
120
|
+
"@radix-ui/react-slider": "^1.3.2",
|
|
121
121
|
"@radix-ui/react-slot": "^1.2.0",
|
|
122
|
-
"@radix-ui/react-switch": "^1.
|
|
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.
|
|
122
|
+
"@radix-ui/react-switch": "^1.2.2",
|
|
123
|
+
"@radix-ui/react-tabs": "^1.1.8",
|
|
124
|
+
"@radix-ui/react-toast": "^1.2.10",
|
|
125
|
+
"@radix-ui/react-toggle": "^1.1.6",
|
|
126
|
+
"@radix-ui/react-toggle-group": "^1.1.7",
|
|
127
|
+
"@radix-ui/react-tooltip": "^1.2.3",
|
|
128
128
|
"@tanstack/react-table": "^8.21.3",
|
|
129
|
-
"@vitejs/plugin-react": "^4.4.
|
|
129
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
130
130
|
"@vitejs/plugin-react-swc": "^3.9.0",
|
|
131
131
|
"class-variance-authority": "^0.7.1",
|
|
132
132
|
"clsx": "^2.1.1",
|
|
133
133
|
"cmdk": "^1.1.1",
|
|
134
134
|
"embla-carousel-react": "^8.6.0",
|
|
135
135
|
"input-otp": "^1.4.2",
|
|
136
|
-
"lucide-react": "^0.
|
|
136
|
+
"lucide-react": "^0.501.0",
|
|
137
137
|
"next-themes": "^0.4.6",
|
|
138
138
|
"react-dropzone": "^14.3.8",
|
|
139
139
|
"react-helmet-next": "^0.0.1",
|
|
140
|
-
"react-hook-form": "^7.
|
|
141
|
-
"react-resizable-panels": "^2.1.
|
|
140
|
+
"react-hook-form": "^7.56.0",
|
|
141
|
+
"react-resizable-panels": "^2.1.8",
|
|
142
142
|
"sonner": "^2.0.3",
|
|
143
143
|
"tailwind-merge": "^3.2.0",
|
|
144
144
|
"tailwind-variants": "^1.0.0",
|