@pixpilot/shadcn 0.10.0 → 0.11.0
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/components/index.d.ts +0 -1
- package/dist/components/ui/alert-dialog.d.ts +12 -12
- package/dist/components/ui/alert-dialog.js +0 -2
- package/dist/components/ui/alert.d.ts +4 -4
- package/dist/components/ui/alert.js +0 -1
- package/dist/components/ui/avatar.d.ts +4 -4
- package/dist/components/ui/avatar.js +0 -1
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/badge.js +0 -1
- package/dist/components/ui/button-group.d.ts +4 -4
- package/dist/components/ui/button-group.js +0 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +0 -1
- package/dist/components/ui/calendar.d.ts +3 -3
- package/dist/components/ui/calendar.js +0 -1
- package/dist/components/ui/card.d.ts +8 -8
- package/dist/components/ui/card.js +0 -1
- package/dist/components/ui/checkbox.d.ts +2 -2
- package/dist/components/ui/checkbox.js +0 -1
- package/dist/components/ui/color-picker.d.ts +11 -11
- package/dist/components/ui/color-picker.js +0 -1
- package/dist/components/ui/command.d.ts +10 -10
- package/dist/components/ui/command.js +0 -1
- package/dist/components/ui/dialog.d.ts +11 -11
- package/dist/components/ui/dialog.js +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/dropdown-menu.js +0 -1
- package/dist/components/ui/file-upload.d.ts +11 -11
- package/dist/components/ui/file-upload.js +0 -1
- package/dist/components/ui/form.d.ts +8 -8
- package/dist/components/ui/form.js +0 -1
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/input-group.js +0 -1
- package/dist/components/ui/input.js +0 -1
- package/dist/components/ui/label.js +0 -1
- package/dist/components/ui/pagination.js +0 -2
- package/dist/components/ui/popover.js +0 -1
- package/dist/components/ui/radio-group.js +0 -1
- package/dist/components/ui/select.js +0 -1
- package/dist/components/ui/separator.js +0 -1
- package/dist/components/ui/shadcn-io/tags/index.js +0 -1
- package/dist/components/ui/sheet.js +0 -1
- package/dist/components/ui/slider.js +0 -1
- package/dist/components/ui/switch.js +0 -1
- package/dist/components/ui/tabs.js +0 -1
- package/dist/components/ui/textarea.js +0 -1
- package/dist/components/ui/toggle-group.js +0 -1
- package/dist/components/ui/toggle.js +0 -1
- package/dist/components/ui/tooltip.d.ts +5 -5
- package/dist/components/ui/tooltip.js +0 -1
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +3 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -5
- package/package.json +6 -1
- package/dist/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/components/index.cjs +0 -35
- package/dist/components/index.d.cts +0 -35
- package/dist/components/index.js +0 -35
- package/dist/components/ui/OrContinueWithSeparator.cjs +0 -30
- package/dist/components/ui/OrContinueWithSeparator.d.cts +0 -11
- package/dist/components/ui/alert-dialog.cjs +0 -101
- package/dist/components/ui/alert-dialog.d.cts +0 -48
- package/dist/components/ui/alert.cjs +0 -45
- package/dist/components/ui/alert.d.cts +0 -24
- package/dist/components/ui/avatar.cjs +0 -37
- package/dist/components/ui/avatar.d.cts +0 -19
- package/dist/components/ui/badge.cjs +0 -33
- package/dist/components/ui/badge.d.cts +0 -19
- package/dist/components/ui/button-group.cjs +0 -48
- package/dist/components/ui/button-group.d.cts +0 -28
- package/dist/components/ui/button.cjs +0 -56
- package/dist/components/ui/button.d.cts +0 -21
- package/dist/components/ui/calendar.cjs +0 -113
- package/dist/components/ui/calendar.d.cts +0 -26
- package/dist/components/ui/card.cjs +0 -67
- package/dist/components/ui/card.d.cts +0 -34
- package/dist/components/ui/checkbox.cjs +0 -31
- package/dist/components/ui/checkbox.d.cts +0 -11
- package/dist/components/ui/color-picker.cjs +0 -1171
- package/dist/components/ui/color-picker.d.cts +0 -94
- package/dist/components/ui/command.cjs +0 -104
- package/dist/components/ui/command.d.cts +0 -52
- package/dist/components/ui/dialog.cjs +0 -102
- package/dist/components/ui/dialog.d.cts +0 -47
- package/dist/components/ui/dropdown-menu.cjs +0 -144
- package/dist/components/ui/dropdown-menu.d.cts +0 -77
- package/dist/components/ui/file-upload.cjs +0 -926
- package/dist/components/ui/file-upload.d.cts +0 -95
- package/dist/components/ui/form.cjs +0 -101
- package/dist/components/ui/form.d.cts +0 -45
- package/dist/components/ui/index.cjs +0 -34
- package/dist/components/ui/index.d.cts +0 -34
- package/dist/components/ui/index.js +0 -34
- package/dist/components/ui/input-group.cjs +0 -90
- package/dist/components/ui/input-group.d.cts +0 -43
- package/dist/components/ui/input.cjs +0 -20
- package/dist/components/ui/input.d.cts +0 -12
- package/dist/components/ui/label.cjs +0 -21
- package/dist/components/ui/label.d.cts +0 -11
- package/dist/components/ui/pagination.cjs +0 -92
- package/dist/components/ui/pagination.d.cts +0 -40
- package/dist/components/ui/popover.cjs +0 -44
- package/dist/components/ui/popover.d.cts +0 -22
- package/dist/components/ui/radio-group.cjs +0 -36
- package/dist/components/ui/radio-group.d.cts +0 -15
- package/dist/components/ui/select.cjs +0 -116
- package/dist/components/ui/select.d.cts +0 -52
- package/dist/components/ui/separator.cjs +0 -23
- package/dist/components/ui/separator.d.cts +0 -13
- package/dist/components/ui/shadcn-io/tags/index.cjs +0 -146
- package/dist/components/ui/shadcn-io/tags/index.d.cts +0 -70
- package/dist/components/ui/shadcn-io/tags-input-inline/index.cjs +0 -66
- package/dist/components/ui/shadcn-io/tags-input-inline/index.d.cts +0 -31
- package/dist/components/ui/sheet.cjs +0 -96
- package/dist/components/ui/sheet.d.cts +0 -40
- package/dist/components/ui/slider.cjs +0 -42
- package/dist/components/ui/slider.d.cts +0 -15
- package/dist/components/ui/switch.cjs +0 -28
- package/dist/components/ui/switch.d.cts +0 -11
- package/dist/components/ui/tabs.cjs +0 -65
- package/dist/components/ui/tabs.d.cts +0 -33
- package/dist/components/ui/textarea.cjs +0 -19
- package/dist/components/ui/textarea.d.cts +0 -10
- package/dist/components/ui/toggle-group.cjs +0 -59
- package/dist/components/ui/toggle-group.d.cts +0 -30
- package/dist/components/ui/toggle.cjs +0 -45
- package/dist/components/ui/toggle.d.cts +0 -19
- package/dist/components/ui/tooltip.cjs +0 -45
- package/dist/components/ui/tooltip.d.cts +0 -23
- package/dist/components/visually-hidden-input.cjs +0 -116
- package/dist/hooks/use-as-ref.cjs +0 -16
- package/dist/hooks/use-isomorphic-layout-effect.cjs +0 -9
- package/dist/hooks/use-lazy-ref.cjs +0 -13
- package/dist/index.cjs +0 -220
- package/dist/index.d.cts +0 -38
- package/dist/lib/compose-refs.cjs +0 -44
- package/dist/lib/index.cjs +0 -1
- package/dist/lib/index.d.cts +0 -1
- package/dist/lib/index.js +0 -1
- package/dist/lib/utils.cjs +0 -13
- package/dist/lib/utils.d.cts +0 -6
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_utils = require('../../lib/utils.cjs');
|
|
3
|
-
require('../../lib/index.cjs');
|
|
4
|
-
let react = require("react");
|
|
5
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
8
|
-
|
|
9
|
-
//#region src/components/ui/card.tsx
|
|
10
|
-
function Card({ className,...props }) {
|
|
11
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
12
|
-
"data-slot": "card",
|
|
13
|
-
className: require_utils.cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className),
|
|
14
|
-
...props
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
function CardHeader({ className,...props }) {
|
|
18
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19
|
-
"data-slot": "card-header",
|
|
20
|
-
className: require_utils.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className),
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function CardTitle({ className,...props }) {
|
|
25
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
26
|
-
"data-slot": "card-title",
|
|
27
|
-
className: require_utils.cn("leading-none font-semibold", className),
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function CardDescription({ className,...props }) {
|
|
32
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
33
|
-
"data-slot": "card-description",
|
|
34
|
-
className: require_utils.cn("text-muted-foreground text-sm", className),
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function CardAction({ className,...props }) {
|
|
39
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
40
|
-
"data-slot": "card-action",
|
|
41
|
-
className: require_utils.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
42
|
-
...props
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function CardContent({ className,...props }) {
|
|
46
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
47
|
-
"data-slot": "card-content",
|
|
48
|
-
className: require_utils.cn("px-6", className),
|
|
49
|
-
...props
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function CardFooter({ className,...props }) {
|
|
53
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
54
|
-
"data-slot": "card-footer",
|
|
55
|
-
className: require_utils.cn("flex items-center px-6 [.border-t]:pt-6", className),
|
|
56
|
-
...props
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
exports.Card = Card;
|
|
62
|
-
exports.CardAction = CardAction;
|
|
63
|
-
exports.CardContent = CardContent;
|
|
64
|
-
exports.CardDescription = CardDescription;
|
|
65
|
-
exports.CardFooter = CardFooter;
|
|
66
|
-
exports.CardHeader = CardHeader;
|
|
67
|
-
exports.CardTitle = CardTitle;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/ui/card.d.ts
|
|
5
|
-
declare function Card({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime23.JSX.Element;
|
|
9
|
-
declare function CardHeader({
|
|
10
|
-
className,
|
|
11
|
-
...props
|
|
12
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime23.JSX.Element;
|
|
13
|
-
declare function CardTitle({
|
|
14
|
-
className,
|
|
15
|
-
...props
|
|
16
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime23.JSX.Element;
|
|
17
|
-
declare function CardDescription({
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime23.JSX.Element;
|
|
21
|
-
declare function CardAction({
|
|
22
|
-
className,
|
|
23
|
-
...props
|
|
24
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime23.JSX.Element;
|
|
25
|
-
declare function CardContent({
|
|
26
|
-
className,
|
|
27
|
-
...props
|
|
28
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime23.JSX.Element;
|
|
29
|
-
declare function CardFooter({
|
|
30
|
-
className,
|
|
31
|
-
...props
|
|
32
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime23.JSX.Element;
|
|
33
|
-
//#endregion
|
|
34
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const require_utils = require('../../lib/utils.cjs');
|
|
6
|
-
require('../../lib/index.cjs');
|
|
7
|
-
let react = require("react");
|
|
8
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
9
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
11
|
-
let lucide_react = require("lucide-react");
|
|
12
|
-
lucide_react = require_rolldown_runtime.__toESM(lucide_react);
|
|
13
|
-
let __radix_ui_react_checkbox = require("@radix-ui/react-checkbox");
|
|
14
|
-
__radix_ui_react_checkbox = require_rolldown_runtime.__toESM(__radix_ui_react_checkbox);
|
|
15
|
-
|
|
16
|
-
//#region src/components/ui/checkbox.tsx
|
|
17
|
-
function Checkbox({ className,...props }) {
|
|
18
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_checkbox.Root, {
|
|
19
|
-
"data-slot": "checkbox",
|
|
20
|
-
className: require_utils.cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
21
|
-
...props,
|
|
22
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_checkbox.Indicator, {
|
|
23
|
-
"data-slot": "checkbox-indicator",
|
|
24
|
-
className: "grid place-content-center text-current transition-none",
|
|
25
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CheckIcon, { className: "size-3.5" })
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
exports.Checkbox = Checkbox;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
|
-
|
|
5
|
-
//#region src/components/ui/checkbox.d.ts
|
|
6
|
-
declare function Checkbox({
|
|
7
|
-
className,
|
|
8
|
-
...props
|
|
9
|
-
}: React.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime30.JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { Checkbox };
|