@pixpilot/shadcn 0.3.0 → 0.3.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.
Files changed (72) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +25 -1
  2. package/dist/components/index.cjs +30 -1
  3. package/dist/components/index.js +30 -1
  4. package/dist/components/ui/OrContinueWithSeparator.cjs +30 -1
  5. package/dist/components/ui/OrContinueWithSeparator.js +27 -1
  6. package/dist/components/ui/alert-dialog.cjs +101 -1
  7. package/dist/components/ui/alert-dialog.js +87 -1
  8. package/dist/components/ui/alert.cjs +45 -1
  9. package/dist/components/ui/alert.d.cts +4 -4
  10. package/dist/components/ui/alert.js +39 -1
  11. package/dist/components/ui/avatar.cjs +37 -1
  12. package/dist/components/ui/avatar.js +31 -1
  13. package/dist/components/ui/badge.cjs +33 -1
  14. package/dist/components/ui/badge.js +27 -1
  15. package/dist/components/ui/button.cjs +52 -1
  16. package/dist/components/ui/button.js +46 -1
  17. package/dist/components/ui/calendar.cjs +113 -1
  18. package/dist/components/ui/calendar.js +107 -1
  19. package/dist/components/ui/card.cjs +67 -1
  20. package/dist/components/ui/card.js +58 -1
  21. package/dist/components/ui/checkbox.cjs +31 -1
  22. package/dist/components/ui/checkbox.js +26 -1
  23. package/dist/components/ui/command.cjs +104 -1
  24. package/dist/components/ui/command.js +91 -1
  25. package/dist/components/ui/dialog.cjs +102 -1
  26. package/dist/components/ui/dialog.js +88 -1
  27. package/dist/components/ui/dropdown-menu.cjs +144 -1
  28. package/dist/components/ui/dropdown-menu.js +125 -1
  29. package/dist/components/ui/file-upload.cjs +926 -1
  30. package/dist/components/ui/file-upload.js +910 -1
  31. package/dist/components/ui/form.cjs +101 -1
  32. package/dist/components/ui/form.js +89 -1
  33. package/dist/components/ui/index.cjs +29 -1
  34. package/dist/components/ui/index.js +29 -1
  35. package/dist/components/ui/input.cjs +20 -1
  36. package/dist/components/ui/input.js +17 -1
  37. package/dist/components/ui/label.cjs +21 -1
  38. package/dist/components/ui/label.js +17 -1
  39. package/dist/components/ui/pagination.cjs +92 -1
  40. package/dist/components/ui/pagination.js +82 -1
  41. package/dist/components/ui/popover.cjs +44 -1
  42. package/dist/components/ui/popover.js +37 -1
  43. package/dist/components/ui/radio-group.cjs +36 -1
  44. package/dist/components/ui/radio-group.js +30 -1
  45. package/dist/components/ui/select.cjs +116 -1
  46. package/dist/components/ui/select.js +102 -1
  47. package/dist/components/ui/separator.cjs +23 -1
  48. package/dist/components/ui/separator.js +19 -1
  49. package/dist/components/ui/shadcn-io/tags/index.cjs +146 -1
  50. package/dist/components/ui/shadcn-io/tags/index.js +134 -1
  51. package/dist/components/ui/shadcn-io/tags-input-inline/index.cjs +66 -1
  52. package/dist/components/ui/shadcn-io/tags-input-inline/index.js +57 -1
  53. package/dist/components/ui/sheet.cjs +96 -1
  54. package/dist/components/ui/sheet.js +84 -1
  55. package/dist/components/ui/slider.cjs +42 -1
  56. package/dist/components/ui/slider.js +38 -1
  57. package/dist/components/ui/switch.cjs +28 -1
  58. package/dist/components/ui/switch.js +24 -1
  59. package/dist/components/ui/tabs.cjs +45 -1
  60. package/dist/components/ui/tabs.js +38 -1
  61. package/dist/components/ui/textarea.cjs +19 -1
  62. package/dist/components/ui/textarea.js +16 -1
  63. package/dist/components/ui/tooltip.cjs +45 -1
  64. package/dist/components/ui/tooltip.d.cts +5 -5
  65. package/dist/components/ui/tooltip.js +38 -1
  66. package/dist/index.cjs +189 -1
  67. package/dist/index.js +34 -1
  68. package/dist/lib/index.cjs +1 -1
  69. package/dist/lib/index.js +1 -1
  70. package/dist/lib/utils.cjs +13 -1
  71. package/dist/lib/utils.js +10 -1
  72. package/package.json +1 -1
@@ -1 +1,125 @@
1
- import{cn as e}from"../../lib/utils.js";import"../../lib/index.js";import"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{CheckIcon as r,ChevronRightIcon as i,CircleIcon as a}from"lucide-react";import*as o from"@radix-ui/react-dropdown-menu";function s({...e}){return t(o.Root,{"data-slot":`dropdown-menu`,...e})}function c({...e}){return t(o.Portal,{"data-slot":`dropdown-menu-portal`,...e})}function l({...e}){return t(o.Trigger,{"data-slot":`dropdown-menu-trigger`,...e})}function u({className:n,sideOffset:r=4,...i}){return t(o.Portal,{children:t(o.Content,{"data-slot":`dropdown-menu-content`,sideOffset:r,className:e(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,n),...i})})}function d({...e}){return t(o.Group,{"data-slot":`dropdown-menu-group`,...e})}function f({className:n,inset:r,variant:i=`default`,...a}){return t(o.Item,{"data-slot":`dropdown-menu-item`,"data-inset":r,"data-variant":i,className:e(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,n),...a})}function p({className:i,children:a,checked:s,...c}){return n(o.CheckboxItem,{"data-slot":`dropdown-menu-checkbox-item`,className:e(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,i),checked:s,...c,children:[t(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:t(o.ItemIndicator,{children:t(r,{className:`size-4`})})}),a]})}function m({...e}){return t(o.RadioGroup,{"data-slot":`dropdown-menu-radio-group`,...e})}function h({className:r,children:i,...s}){return n(o.RadioItem,{"data-slot":`dropdown-menu-radio-item`,className:e(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r),...s,children:[t(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:t(o.ItemIndicator,{children:t(a,{className:`size-2 fill-current`})})}),i]})}function g({className:n,inset:r,...i}){return t(o.Label,{"data-slot":`dropdown-menu-label`,"data-inset":r,className:e(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n),...i})}function _({className:n,...r}){return t(o.Separator,{"data-slot":`dropdown-menu-separator`,className:e(`bg-border -mx-1 my-1 h-px`,n),...r})}function v({className:n,...r}){return t(`span`,{"data-slot":`dropdown-menu-shortcut`,className:e(`text-muted-foreground ml-auto text-xs tracking-widest`,n),...r})}function y({...e}){return t(o.Sub,{"data-slot":`dropdown-menu-sub`,...e})}function b({className:r,inset:a,children:s,...c}){return n(o.SubTrigger,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":a,className:e(`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r),...c,children:[s,t(i,{className:`ml-auto size-4`})]})}function x({className:n,...r}){return t(o.SubContent,{"data-slot":`dropdown-menu-sub-content`,className:e(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg`,n),...r})}export{s as DropdownMenu,p as DropdownMenuCheckboxItem,u as DropdownMenuContent,d as DropdownMenuGroup,f as DropdownMenuItem,g as DropdownMenuLabel,c as DropdownMenuPortal,m as DropdownMenuRadioGroup,h as DropdownMenuRadioItem,_ as DropdownMenuSeparator,v as DropdownMenuShortcut,y as DropdownMenuSub,x as DropdownMenuSubContent,b as DropdownMenuSubTrigger,l as DropdownMenuTrigger};
1
+ import { cn } from "../../lib/utils.js";
2
+ import "../../lib/index.js";
3
+ import "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
6
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
7
+
8
+ //#region src/components/ui/dropdown-menu.tsx
9
+ function DropdownMenu({ ...props }) {
10
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, {
11
+ "data-slot": "dropdown-menu",
12
+ ...props
13
+ });
14
+ }
15
+ function DropdownMenuPortal({ ...props }) {
16
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, {
17
+ "data-slot": "dropdown-menu-portal",
18
+ ...props
19
+ });
20
+ }
21
+ function DropdownMenuTrigger({ ...props }) {
22
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Trigger, {
23
+ "data-slot": "dropdown-menu-trigger",
24
+ ...props
25
+ });
26
+ }
27
+ function DropdownMenuContent({ className, sideOffset = 4,...props }) {
28
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.Content, {
29
+ "data-slot": "dropdown-menu-content",
30
+ sideOffset,
31
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className),
32
+ ...props
33
+ }) });
34
+ }
35
+ function DropdownMenuGroup({ ...props }) {
36
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, {
37
+ "data-slot": "dropdown-menu-group",
38
+ ...props
39
+ });
40
+ }
41
+ function DropdownMenuItem({ className, inset, variant = "default",...props }) {
42
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Item, {
43
+ "data-slot": "dropdown-menu-item",
44
+ "data-inset": inset,
45
+ "data-variant": variant,
46
+ className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
47
+ ...props
48
+ });
49
+ }
50
+ function DropdownMenuCheckboxItem({ className, children, checked,...props }) {
51
+ return /* @__PURE__ */ jsxs(DropdownMenuPrimitive.CheckboxItem, {
52
+ "data-slot": "dropdown-menu-checkbox-item",
53
+ className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
54
+ checked,
55
+ ...props,
56
+ children: [/* @__PURE__ */ jsx("span", {
57
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
58
+ children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
59
+ }), children]
60
+ });
61
+ }
62
+ function DropdownMenuRadioGroup({ ...props }) {
63
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.RadioGroup, {
64
+ "data-slot": "dropdown-menu-radio-group",
65
+ ...props
66
+ });
67
+ }
68
+ function DropdownMenuRadioItem({ className, children,...props }) {
69
+ return /* @__PURE__ */ jsxs(DropdownMenuPrimitive.RadioItem, {
70
+ "data-slot": "dropdown-menu-radio-item",
71
+ className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
72
+ ...props,
73
+ children: [/* @__PURE__ */ jsx("span", {
74
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
75
+ children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) })
76
+ }), children]
77
+ });
78
+ }
79
+ function DropdownMenuLabel({ className, inset,...props }) {
80
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Label, {
81
+ "data-slot": "dropdown-menu-label",
82
+ "data-inset": inset,
83
+ className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
84
+ ...props
85
+ });
86
+ }
87
+ function DropdownMenuSeparator({ className,...props }) {
88
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Separator, {
89
+ "data-slot": "dropdown-menu-separator",
90
+ className: cn("bg-border -mx-1 my-1 h-px", className),
91
+ ...props
92
+ });
93
+ }
94
+ function DropdownMenuShortcut({ className,...props }) {
95
+ return /* @__PURE__ */ jsx("span", {
96
+ "data-slot": "dropdown-menu-shortcut",
97
+ className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
98
+ ...props
99
+ });
100
+ }
101
+ function DropdownMenuSub({ ...props }) {
102
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, {
103
+ "data-slot": "dropdown-menu-sub",
104
+ ...props
105
+ });
106
+ }
107
+ function DropdownMenuSubTrigger({ className, inset, children,...props }) {
108
+ return /* @__PURE__ */ jsxs(DropdownMenuPrimitive.SubTrigger, {
109
+ "data-slot": "dropdown-menu-sub-trigger",
110
+ "data-inset": inset,
111
+ className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
112
+ ...props,
113
+ children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })]
114
+ });
115
+ }
116
+ function DropdownMenuSubContent({ className,...props }) {
117
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.SubContent, {
118
+ "data-slot": "dropdown-menu-sub-content",
119
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className),
120
+ ...props
121
+ });
122
+ }
123
+
124
+ //#endregion
125
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };