@pixpilot/shadcn 0.1.3 → 0.1.4

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.
Files changed (131) hide show
  1. package/dist/index-ygHlSc0_.d.ts +795 -0
  2. package/dist/index.js +2276 -30
  3. package/package.json +7 -15
  4. package/dist/OrContinueWithSeparator-BDH-vep4.d.ts +0 -11
  5. package/dist/OrContinueWithSeparator-CkITP0NT.js +0 -27
  6. package/dist/alert-CKr0C0yG.d.ts +0 -24
  7. package/dist/alert-DgTy4F7t.js +0 -38
  8. package/dist/alert-dialog-BIYOf1qe.d.ts +0 -48
  9. package/dist/avatar-DomHDuSM.d.ts +0 -19
  10. package/dist/avatar-ggnaPAdx.js +0 -30
  11. package/dist/badge-DaNELwZ4.d.ts +0 -19
  12. package/dist/badge-OxgStuN-.js +0 -26
  13. package/dist/button-Ct22vvF2.js +0 -45
  14. package/dist/button-Qk5_S2q2.d.ts +0 -21
  15. package/dist/calendar-CtMOHJjw.d.ts +0 -26
  16. package/dist/calendar-SVLTPCYN.js +0 -106
  17. package/dist/card-7m__j7pN.d.ts +0 -34
  18. package/dist/card-mGJMSXR3.js +0 -57
  19. package/dist/checkbox-C2ohGs66.d.ts +0 -11
  20. package/dist/checkbox-Car6S-YU.js +0 -22
  21. package/dist/command-Bh0lIHth.js +0 -87
  22. package/dist/command-J-Z7237Z.d.ts +0 -52
  23. package/dist/components/index-CjxDeDgS.d.ts +0 -30
  24. package/dist/components/index.js +0 -32
  25. package/dist/components/ui/OrContinueWithSeparator-CHwqvVjX.d.ts +0 -2
  26. package/dist/components/ui/OrContinueWithSeparator.js +0 -6
  27. package/dist/components/ui/alert-1G0clvys.d.ts +0 -2
  28. package/dist/components/ui/alert-dialog-B4l6hBX8.d.ts +0 -2
  29. package/dist/components/ui/alert-dialog.js +0 -34
  30. package/dist/components/ui/alert.js +0 -5
  31. package/dist/components/ui/avatar-utP6R-Uq.d.ts +0 -2
  32. package/dist/components/ui/avatar.js +0 -5
  33. package/dist/components/ui/badge-DwySSPk7.d.ts +0 -2
  34. package/dist/components/ui/badge.js +0 -5
  35. package/dist/components/ui/button-fWXid_Jg.d.ts +0 -2
  36. package/dist/components/ui/button.js +0 -5
  37. package/dist/components/ui/calendar-DxgOZaJG.d.ts +0 -2
  38. package/dist/components/ui/calendar.js +0 -6
  39. package/dist/components/ui/card-CEc4KDWR.d.ts +0 -2
  40. package/dist/components/ui/card.js +0 -5
  41. package/dist/components/ui/checkbox-Db1hdfQh.d.ts +0 -2
  42. package/dist/components/ui/checkbox.js +0 -7
  43. package/dist/components/ui/command-D5yDsetf.d.ts +0 -2
  44. package/dist/components/ui/command.js +0 -8
  45. package/dist/components/ui/dialog-C9hWg6Jo.d.ts +0 -2
  46. package/dist/components/ui/dialog.js +0 -5
  47. package/dist/components/ui/dropdown-menu-CZQe3gdP.d.ts +0 -2
  48. package/dist/components/ui/dropdown-menu.js +0 -5
  49. package/dist/components/ui/file-upload-DE4ndg6D.d.ts +0 -2
  50. package/dist/components/ui/file-upload.js +0 -7
  51. package/dist/components/ui/form-_IonQq2g.d.ts +0 -2
  52. package/dist/components/ui/form.js +0 -6
  53. package/dist/components/ui/index-ByU7Ea3g.d.ts +0 -30
  54. package/dist/components/ui/index.js +0 -32
  55. package/dist/components/ui/input-nIiKz0t3.d.ts +0 -2
  56. package/dist/components/ui/input.js +0 -5
  57. package/dist/components/ui/label-DcYFARJv.d.ts +0 -2
  58. package/dist/components/ui/label.js +0 -5
  59. package/dist/components/ui/pagination-BzA2nvm7.d.ts +0 -2
  60. package/dist/components/ui/pagination.js +0 -32
  61. package/dist/components/ui/popover-CWkbXPIs.d.ts +0 -2
  62. package/dist/components/ui/popover.js +0 -5
  63. package/dist/components/ui/radio-group-B8uVaLcH.d.ts +0 -2
  64. package/dist/components/ui/radio-group.js +0 -5
  65. package/dist/components/ui/select-Thz3wmNR.d.ts +0 -2
  66. package/dist/components/ui/select.js +0 -7
  67. package/dist/components/ui/separator-nDjbz769.d.ts +0 -2
  68. package/dist/components/ui/separator.js +0 -5
  69. package/dist/components/ui/shadcn-io/tags/index-ByG1DLSH.d.ts +0 -2
  70. package/dist/components/ui/shadcn-io/tags/index.js +0 -12
  71. package/dist/components/ui/shadcn-io/tags-input-inline/index-Z-lSeFdH.d.ts +0 -2
  72. package/dist/components/ui/shadcn-io/tags-input-inline/index.js +0 -4
  73. package/dist/components/ui/sheet-DG1hOjV0.d.ts +0 -2
  74. package/dist/components/ui/sheet.js +0 -5
  75. package/dist/components/ui/slider-BQpp3iiy.d.ts +0 -2
  76. package/dist/components/ui/slider.js +0 -5
  77. package/dist/components/ui/switch-nWOTZVXx.d.ts +0 -2
  78. package/dist/components/ui/switch.js +0 -7
  79. package/dist/components/ui/tabs-k3ha4bbs.d.ts +0 -2
  80. package/dist/components/ui/tabs.js +0 -5
  81. package/dist/components/ui/textarea-BV_2NNxa.d.ts +0 -2
  82. package/dist/components/ui/textarea.js +0 -5
  83. package/dist/components/ui/tooltip--Q9yXR4z.d.ts +0 -2
  84. package/dist/components/ui/tooltip.js +0 -5
  85. package/dist/dialog-GHzqCUyY.d.ts +0 -47
  86. package/dist/dialog-O7j71U82.js +0 -87
  87. package/dist/dropdown-menu-B7IpNRT1.d.ts +0 -77
  88. package/dist/dropdown-menu-ChXZkLy7.js +0 -124
  89. package/dist/file-upload-DPXO1W1r.js +0 -906
  90. package/dist/file-upload-DtI7t48f.d.ts +0 -94
  91. package/dist/form-B1wa9dSK.d.ts +0 -45
  92. package/dist/form-DITfwajn.js +0 -88
  93. package/dist/index-BBg42y-x.d.ts +0 -31
  94. package/dist/index-CCggO_hw.d.ts +0 -1
  95. package/dist/index-CbEoBXve.d.ts +0 -39
  96. package/dist/index-DAxEKRyQ.d.ts +0 -31
  97. package/dist/index-nhYidbaI.d.ts +0 -70
  98. package/dist/input-BOo0lKrd.d.ts +0 -11
  99. package/dist/input-Yyz-T5fE.js +0 -16
  100. package/dist/label-CAjd9Y0A.js +0 -16
  101. package/dist/label-VBeDhZRS.d.ts +0 -11
  102. package/dist/lib/index-BBZGfoI7.d.ts +0 -2
  103. package/dist/lib/index.js +0 -4
  104. package/dist/lib/utils-COdFh0eZ.d.ts +0 -2
  105. package/dist/lib/utils.js +0 -3
  106. package/dist/lib-IiLuXmGR.js +0 -0
  107. package/dist/popover-B6K6dK1G.js +0 -36
  108. package/dist/popover-BSOEEHRm.d.ts +0 -22
  109. package/dist/radio-group-2z7Wk4bX.d.ts +0 -15
  110. package/dist/radio-group-CN-7YDqF.js +0 -29
  111. package/dist/select-BLcUSgPc.d.ts +0 -52
  112. package/dist/select-D1s3F0et.js +0 -98
  113. package/dist/separator-BVBCxKBW.js +0 -18
  114. package/dist/separator-CQdurlbm.d.ts +0 -13
  115. package/dist/sheet-BBjl1baR.d.ts +0 -40
  116. package/dist/sheet-DrR3eH28.js +0 -83
  117. package/dist/slider-BlL5lT8d.js +0 -37
  118. package/dist/slider-CYGuuC8k.d.ts +0 -15
  119. package/dist/src-8ePG_tPo.js +0 -156
  120. package/dist/switch-BXSa0MEU.js +0 -20
  121. package/dist/switch-Y5FN07nj.d.ts +0 -11
  122. package/dist/tabs-C-Tv9y7L.d.ts +0 -23
  123. package/dist/tabs-DbvqqMZV.js +0 -37
  124. package/dist/tags-BACevgr_.js +0 -130
  125. package/dist/tags-input-inline-Bz5h19zx.js +0 -57
  126. package/dist/textarea-C3eFh4Vd.d.ts +0 -10
  127. package/dist/textarea-DTGK7cx-.js +0 -15
  128. package/dist/tooltip-CGDnGnPt.d.ts +0 -23
  129. package/dist/tooltip-CX3NbXUu.js +0 -37
  130. package/dist/utils-Bgl9doaU.d.ts +0 -6
  131. package/dist/utils-CeuVg6RA.js +0 -10
@@ -1,130 +0,0 @@
1
- import { t as cn } from "./utils-CeuVg6RA.js";
2
- import { t as Badge } from "./badge-OxgStuN-.js";
3
- import { t as Button } from "./button-Ct22vvF2.js";
4
- import { a as CommandInput, i as CommandGroup, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "./command-Bh0lIHth.js";
5
- import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "./popover-B6K6dK1G.js";
6
- import { createContext, use, useEffect, useRef, useState } from "react";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
- import { XIcon } from "lucide-react";
9
-
10
- //#region src/components/ui/shadcn-io/tags/index.tsx
11
- const TagsContext = createContext({
12
- value: void 0,
13
- setValue: void 0,
14
- open: false,
15
- onOpenChange: () => {},
16
- width: void 0,
17
- setWidth: void 0
18
- });
19
- function useTagsContext() {
20
- const context = use(TagsContext);
21
- if (!context) throw new Error("useTagsContext must be used within a TagsProvider");
22
- return context;
23
- }
24
- function Tags({ value, setValue, open: controlledOpen, onOpenChange: controlledOnOpenChange, children, className }) {
25
- const [uncontrolledOpen, setUncontrolledOpen] = useState(false);
26
- const [width, setWidth] = useState();
27
- const ref = useRef(null);
28
- const open = controlledOpen ?? uncontrolledOpen;
29
- const onOpenChange = controlledOnOpenChange ?? setUncontrolledOpen;
30
- useEffect(() => {
31
- if (!ref.current) return;
32
- const resizeObserver = new ResizeObserver((entries) => {
33
- if (entries[0]) setWidth(entries[0].contentRect.width);
34
- });
35
- resizeObserver.observe(ref.current);
36
- return () => {
37
- resizeObserver.disconnect();
38
- };
39
- }, []);
40
- return /* @__PURE__ */ jsx(TagsContext.Provider, {
41
- value: {
42
- value,
43
- setValue,
44
- open,
45
- onOpenChange,
46
- width,
47
- setWidth
48
- },
49
- children: /* @__PURE__ */ jsx(Popover, {
50
- onOpenChange,
51
- open,
52
- children: /* @__PURE__ */ jsx("div", {
53
- className: cn("relative w-full", className),
54
- ref,
55
- children
56
- })
57
- })
58
- });
59
- }
60
- function TagsTrigger({ className, children, ...props }) {
61
- return /* @__PURE__ */ jsx(PopoverTrigger, {
62
- asChild: true,
63
- children: /* @__PURE__ */ jsx(Button, {
64
- className: cn("h-auto w-full justify-between p-2", className),
65
- role: "combobox",
66
- variant: "outline",
67
- ...props,
68
- children: /* @__PURE__ */ jsxs("div", {
69
- className: "flex flex-wrap items-center gap-1",
70
- children: [children, /* @__PURE__ */ jsx("span", {
71
- className: "px-2 py-px text-muted-foreground",
72
- children: "Select a tag..."
73
- })]
74
- })
75
- })
76
- });
77
- }
78
- function TagsValue({ className, children, onRemove, ...props }) {
79
- const handleRemove = (event) => {
80
- event.preventDefault();
81
- event.stopPropagation();
82
- onRemove?.();
83
- };
84
- return /* @__PURE__ */ jsxs(Badge, {
85
- className: cn("flex items-center gap-2", className),
86
- ...props,
87
- children: [children, onRemove && /* @__PURE__ */ jsx("div", {
88
- className: "size-auto cursor-pointer hover:text-muted-foreground",
89
- onClick: handleRemove,
90
- children: /* @__PURE__ */ jsx(XIcon, { size: 12 })
91
- })]
92
- });
93
- }
94
- function TagsContent({ className, children, ...props }) {
95
- const { width } = useTagsContext();
96
- return /* @__PURE__ */ jsx(PopoverContent, {
97
- className: cn("p-0", className),
98
- style: { width },
99
- ...props,
100
- children: /* @__PURE__ */ jsx(Command, { children })
101
- });
102
- }
103
- function TagsInput({ className, ...props }) {
104
- return /* @__PURE__ */ jsx(CommandInput, {
105
- className: cn("h-9", className),
106
- ...props
107
- });
108
- }
109
- function TagsList({ className, ...props }) {
110
- return /* @__PURE__ */ jsx(CommandList, {
111
- className: cn("max-h-[200px]", className),
112
- ...props
113
- });
114
- }
115
- function TagsEmpty({ children, className, ...props }) {
116
- return /* @__PURE__ */ jsx(CommandEmpty, {
117
- ...props,
118
- children: children ?? "No tags found."
119
- });
120
- }
121
- const TagsGroup = CommandGroup;
122
- function TagsItem({ className, ...props }) {
123
- return /* @__PURE__ */ jsx(CommandItem, {
124
- className: cn("cursor-pointer items-center justify-between", className),
125
- ...props
126
- });
127
- }
128
-
129
- //#endregion
130
- export { TagsInput as a, TagsTrigger as c, TagsGroup as i, TagsValue as l, TagsContent as n, TagsItem as o, TagsEmpty as r, TagsList as s, Tags as t };
@@ -1,57 +0,0 @@
1
- import { t as cn } from "./utils-CeuVg6RA.js";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { X } from "lucide-react";
4
- import * as TagsInputPrimitive from "@diceui/tags-input";
5
-
6
- //#region src/components/ui/shadcn-io/tags-input-inline/index.tsx
7
- function TagsInputInLineRoot({ className, ...props }) {
8
- return /* @__PURE__ */ jsx(TagsInputPrimitive.Root, {
9
- "data-slot": "tags-input",
10
- className: cn("flex w-full flex-col", className),
11
- ...props
12
- });
13
- }
14
- function TagsInputInLineLabel({ className, ...props }) {
15
- return /* @__PURE__ */ jsx(TagsInputPrimitive.Label, {
16
- "data-slot": "tags-input-label",
17
- className: cn("font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className),
18
- ...props
19
- });
20
- }
21
- function TagsInputInLineList({ className, ...props }) {
22
- return /* @__PURE__ */ jsx("div", {
23
- "data-slot": "tags-input-list",
24
- className: cn("flex min-h-10 w-full flex-wrap items-center gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm focus-within:ring-1 focus-within:ring-ring disabled:cursor-not-allowed disabled:opacity-50", className),
25
- ...props
26
- });
27
- }
28
- function TagsInputInLineInput({ className, ...props }) {
29
- return /* @__PURE__ */ jsx(TagsInputPrimitive.Input, {
30
- "data-slot": "tags-input-input",
31
- className: cn("flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
32
- ...props
33
- });
34
- }
35
- function TagsInputInLineItem({ className, children, ...props }) {
36
- return /* @__PURE__ */ jsxs(TagsInputPrimitive.Item, {
37
- "data-slot": "tags-input-item",
38
- className: cn("inline-flex max-w-[calc(100%-8px)] items-center gap-1.5 rounded border bg-transparent px-2.5 py-1 text-sm focus:outline-hidden data-disabled:cursor-not-allowed data-editable:select-none data-editing:bg-transparent data-disabled:opacity-50 data-editing:ring-1 data-editing:ring-ring [&:not([data-editing])]:pr-1.5 [&[data-highlighted]:not([data-editing])]:bg-accent [&[data-highlighted]:not([data-editing])]:text-accent-foreground", className),
39
- ...props,
40
- children: [/* @__PURE__ */ jsx(TagsInputPrimitive.ItemText, {
41
- className: "truncate",
42
- children
43
- }), /* @__PURE__ */ jsx(TagsInputPrimitive.ItemDelete, {
44
- className: "size-4 shrink-0 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100",
45
- children: /* @__PURE__ */ jsx(X, { className: "size-3.5" })
46
- })]
47
- });
48
- }
49
- function TagsInputInLineClear({ ...props }) {
50
- return /* @__PURE__ */ jsx(TagsInputPrimitive.Clear, {
51
- "data-slot": "tags-input-clear",
52
- ...props
53
- });
54
- }
55
-
56
- //#endregion
57
- export { TagsInputInLineList as a, TagsInputInLineLabel as i, TagsInputInLineInput as n, TagsInputInLineRoot as o, TagsInputInLineItem as r, TagsInputInLineClear as t };
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- import * as react_jsx_runtime88 from "react/jsx-runtime";
3
-
4
- //#region src/components/ui/textarea.d.ts
5
- declare function Textarea({
6
- className,
7
- ...props
8
- }: React.ComponentProps<'textarea'>): react_jsx_runtime88.JSX.Element;
9
- //#endregion
10
- export { Textarea as t };
@@ -1,15 +0,0 @@
1
- import { t as cn } from "./utils-CeuVg6RA.js";
2
- import "react";
3
- import { jsx } from "react/jsx-runtime";
4
-
5
- //#region src/components/ui/textarea.tsx
6
- function Textarea({ className, ...props }) {
7
- return /* @__PURE__ */ jsx("textarea", {
8
- "data-slot": "textarea",
9
- className: cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
10
- ...props
11
- });
12
- }
13
-
14
- //#endregion
15
- export { Textarea as t };
@@ -1,23 +0,0 @@
1
- import * as React from "react";
2
- import * as react_jsx_runtime29 from "react/jsx-runtime";
3
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
4
-
5
- //#region src/components/ui/tooltip.d.ts
6
- declare function TooltipProvider({
7
- delayDuration,
8
- ...props
9
- }: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime29.JSX.Element;
10
- declare function Tooltip({
11
- ...props
12
- }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime29.JSX.Element;
13
- declare function TooltipTrigger({
14
- ...props
15
- }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime29.JSX.Element;
16
- declare function TooltipContent({
17
- className,
18
- sideOffset,
19
- children,
20
- ...props
21
- }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime29.JSX.Element;
22
- //#endregion
23
- export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip as t };
@@ -1,37 +0,0 @@
1
- import { t as cn } from "./utils-CeuVg6RA.js";
2
- import "react";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
5
-
6
- //#region src/components/ui/tooltip.tsx
7
- function TooltipProvider({ delayDuration = 0, ...props }) {
8
- return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, {
9
- "data-slot": "tooltip-provider",
10
- delayDuration,
11
- ...props
12
- });
13
- }
14
- function Tooltip({ ...props }) {
15
- return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, {
16
- "data-slot": "tooltip",
17
- ...props
18
- }) });
19
- }
20
- function TooltipTrigger({ ...props }) {
21
- return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, {
22
- "data-slot": "tooltip-trigger",
23
- ...props
24
- });
25
- }
26
- function TooltipContent({ className, sideOffset = 0, children, ...props }) {
27
- return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(TooltipPrimitive.Content, {
28
- "data-slot": "tooltip-content",
29
- sideOffset,
30
- className: cn("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", className),
31
- ...props,
32
- children: [children, /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
33
- }) });
34
- }
35
-
36
- //#endregion
37
- export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip as t };
@@ -1,6 +0,0 @@
1
- import { ClassValue } from "clsx";
2
-
3
- //#region src/lib/utils.d.ts
4
- declare function cn(...inputs: ClassValue[]): string;
5
- //#endregion
6
- export { cn as t };
@@ -1,10 +0,0 @@
1
- import { clsx } from "clsx";
2
- import { twMerge } from "tailwind-merge";
3
-
4
- //#region src/lib/utils.ts
5
- function cn(...inputs) {
6
- return twMerge(clsx(inputs));
7
- }
8
-
9
- //#endregion
10
- export { cn as t };