@incognia/cosmik 0.40.2 → 1.0.0-beta.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.
Files changed (160) hide show
  1. package/dist/Alert/index.d.ts +7 -6
  2. package/dist/Alert/index.d.ts.map +1 -1
  3. package/dist/AlertDialog/index.d.ts +16 -22
  4. package/dist/AlertDialog/index.d.ts.map +1 -1
  5. package/dist/Calendar/index.d.ts +4 -7
  6. package/dist/Calendar/index.d.ts.map +1 -1
  7. package/dist/Card/index.d.ts +8 -7
  8. package/dist/Card/index.d.ts.map +1 -1
  9. package/dist/Checkbox/index.d.ts +1 -1
  10. package/dist/Checkbox/index.d.ts.map +1 -1
  11. package/dist/Command/index.d.ts +17 -49
  12. package/dist/Command/index.d.ts.map +1 -1
  13. package/dist/Dialog/index.d.ts +13 -18
  14. package/dist/Dialog/index.d.ts.map +1 -1
  15. package/dist/DropdownMenu/index.d.ts +19 -21
  16. package/dist/DropdownMenu/index.d.ts.map +1 -1
  17. package/dist/Input/index.d.ts +1 -3
  18. package/dist/Input/index.d.ts.map +1 -1
  19. package/dist/Label/index.d.ts +1 -2
  20. package/dist/Label/index.d.ts.map +1 -1
  21. package/dist/Pagination/index.d.ts +11 -26
  22. package/dist/Pagination/index.d.ts.map +1 -1
  23. package/dist/Popover/index.d.ts +5 -5
  24. package/dist/Popover/index.d.ts.map +1 -1
  25. package/dist/Progress/index.d.ts +1 -1
  26. package/dist/Progress/index.d.ts.map +1 -1
  27. package/dist/RadioGroup/index.d.ts +2 -2
  28. package/dist/RadioGroup/index.d.ts.map +1 -1
  29. package/dist/Select/index.d.ts +12 -10
  30. package/dist/Select/index.d.ts.map +1 -1
  31. package/dist/Separator/index.d.ts +1 -1
  32. package/dist/Separator/index.d.ts.map +1 -1
  33. package/dist/Switch/index.d.ts +2 -2
  34. package/dist/Switch/index.d.ts.map +1 -1
  35. package/dist/Table/index.d.ts +11 -11
  36. package/dist/Table/index.d.ts.map +1 -1
  37. package/dist/Tabs/index.d.ts +4 -4
  38. package/dist/Tabs/index.d.ts.map +1 -1
  39. package/dist/TagInput/index.d.ts +4 -5
  40. package/dist/TagInput/index.d.ts.map +1 -1
  41. package/dist/Textarea/index.d.ts +1 -3
  42. package/dist/Textarea/index.d.ts.map +1 -1
  43. package/dist/Toggle/index.d.ts +1 -6
  44. package/dist/Toggle/index.d.ts.map +1 -1
  45. package/dist/VerticalNavigationMenu/index.d.ts +8 -6
  46. package/dist/VerticalNavigationMenu/index.d.ts.map +1 -1
  47. package/dist/cosmik.css +1 -1
  48. package/dist/index.cjs +1 -1
  49. package/dist/index.d.ts +1 -1
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +148 -147
  52. package/dist/index10.cjs +1 -1
  53. package/dist/index10.cjs.map +1 -1
  54. package/dist/index10.js +181 -128
  55. package/dist/index10.js.map +1 -1
  56. package/dist/index11.cjs +1 -1
  57. package/dist/index11.cjs.map +1 -1
  58. package/dist/index11.js +121 -93
  59. package/dist/index11.js.map +1 -1
  60. package/dist/index12.cjs +1 -1
  61. package/dist/index12.cjs.map +1 -1
  62. package/dist/index12.js +224 -139
  63. package/dist/index12.js.map +1 -1
  64. package/dist/index15.cjs +1 -1
  65. package/dist/index15.cjs.map +1 -1
  66. package/dist/index15.js +9 -11
  67. package/dist/index15.js.map +1 -1
  68. package/dist/index16.cjs +1 -1
  69. package/dist/index16.cjs.map +1 -1
  70. package/dist/index16.js +20 -17
  71. package/dist/index16.js.map +1 -1
  72. package/dist/index19.cjs +1 -1
  73. package/dist/index19.cjs.map +1 -1
  74. package/dist/index19.js +102 -92
  75. package/dist/index19.js.map +1 -1
  76. package/dist/index20.cjs +1 -1
  77. package/dist/index20.cjs.map +1 -1
  78. package/dist/index20.js +42 -22
  79. package/dist/index20.js.map +1 -1
  80. package/dist/index21.cjs +1 -1
  81. package/dist/index21.cjs.map +1 -1
  82. package/dist/index21.js +29 -24
  83. package/dist/index21.js.map +1 -1
  84. package/dist/index22.cjs +1 -1
  85. package/dist/index22.cjs.map +1 -1
  86. package/dist/index22.js +43 -29
  87. package/dist/index22.js.map +1 -1
  88. package/dist/index23.cjs +1 -1
  89. package/dist/index23.cjs.map +1 -1
  90. package/dist/index23.js +180 -128
  91. package/dist/index23.js.map +1 -1
  92. package/dist/index24.cjs +1 -1
  93. package/dist/index24.cjs.map +1 -1
  94. package/dist/index24.js +23 -20
  95. package/dist/index24.js.map +1 -1
  96. package/dist/index27.cjs +1 -1
  97. package/dist/index27.cjs.map +1 -1
  98. package/dist/index27.js +6 -6
  99. package/dist/index27.js.map +1 -1
  100. package/dist/index28.cjs +1 -1
  101. package/dist/index28.cjs.map +1 -1
  102. package/dist/index28.js +27 -23
  103. package/dist/index28.js.map +1 -1
  104. package/dist/index29.cjs +1 -1
  105. package/dist/index29.cjs.map +1 -1
  106. package/dist/index29.js +124 -104
  107. package/dist/index29.js.map +1 -1
  108. package/dist/index3.cjs +1 -1
  109. package/dist/index3.cjs.map +1 -1
  110. package/dist/index3.js +60 -30
  111. package/dist/index3.js.map +1 -1
  112. package/dist/index30.cjs +1 -1
  113. package/dist/index30.cjs.map +1 -1
  114. package/dist/index30.js +62 -42
  115. package/dist/index30.js.map +1 -1
  116. package/dist/index31.cjs +1 -1
  117. package/dist/index31.cjs.map +1 -1
  118. package/dist/index31.js +72 -69
  119. package/dist/index31.js.map +1 -1
  120. package/dist/index32.cjs +1 -1
  121. package/dist/index32.cjs.map +1 -1
  122. package/dist/index32.js +9 -11
  123. package/dist/index32.js.map +1 -1
  124. package/dist/index33.cjs +1 -1
  125. package/dist/index33.cjs.map +1 -1
  126. package/dist/index33.js +27 -19
  127. package/dist/index33.js.map +1 -1
  128. package/dist/index36.cjs +1 -1
  129. package/dist/index36.cjs.map +1 -1
  130. package/dist/index36.js +77 -49
  131. package/dist/index36.js.map +1 -1
  132. package/dist/index4.cjs +1 -1
  133. package/dist/index4.cjs.map +1 -1
  134. package/dist/index4.js +141 -99
  135. package/dist/index4.js.map +1 -1
  136. package/dist/index42.cjs +1 -1
  137. package/dist/index42.cjs.map +1 -1
  138. package/dist/index42.js +3 -3
  139. package/dist/index42.js.map +1 -1
  140. package/dist/index44.cjs +4 -4
  141. package/dist/index44.cjs.map +1 -1
  142. package/dist/index44.js +24 -17
  143. package/dist/index44.js.map +1 -1
  144. package/dist/index45.cjs +4 -12
  145. package/dist/index45.cjs.map +1 -1
  146. package/dist/index45.js +193 -550
  147. package/dist/index45.js.map +1 -1
  148. package/dist/index7.cjs +1 -1
  149. package/dist/index7.cjs.map +1 -1
  150. package/dist/index7.js +173 -51
  151. package/dist/index7.js.map +1 -1
  152. package/dist/index8.cjs +1 -1
  153. package/dist/index8.cjs.map +1 -1
  154. package/dist/index8.js +87 -44
  155. package/dist/index8.js.map +1 -1
  156. package/dist/index9.cjs +1 -1
  157. package/dist/index9.cjs.map +1 -1
  158. package/dist/index9.js +36 -32
  159. package/dist/index9.js.map +1 -1
  160. package/package.json +15 -15
package/dist/index23.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index37.cjs"),w=require("@radix-ui/react-select"),i=require("lucide-react"),S=require("react"),l=require("./index39.cjs");function p(a){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>a[t]})}}return r.default=a,Object.freeze(r)}const e=p(w),n=p(S),y=e.Root,g=e.Group,b=e.Value,m=n.forwardRef(({className:a,children:r,...t},o)=>s.jsxRuntimeExports.jsxs(e.Trigger,{ref:o,className:l.cn("flex h-[36px] w-full items-center justify-between rounded bg-white border border-gray-900/24 pl-16 pr-12 text-left","disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none","[&>span]:line-clamp-1","hover:shadow-field-hover","focus-visible:outline-none focus:shadow-field-active","active:shadow-field-active","data-[state=open]:shadow-field-active","data-placeholder:text-gray-700",a),...t,children:[r,s.jsxRuntimeExports.jsx(e.Icon,{asChild:!0,children:s.jsxRuntimeExports.jsx(i.ChevronDown,{className:"h-16 w-16 opacity-64 ml-8 shrink-0"})})]}));m.displayName=e.Trigger.displayName;const c=n.forwardRef(({className:a,...r},t)=>s.jsxRuntimeExports.jsx(e.ScrollUpButton,{ref:t,className:l.cn("flex cursor-default items-center justify-center py-4",a),...r,children:s.jsxRuntimeExports.jsx(i.ChevronUp,{className:"h-16 w-16"})}));c.displayName=e.ScrollUpButton.displayName;const d=n.forwardRef(({className:a,...r},t)=>s.jsxRuntimeExports.jsx(e.ScrollDownButton,{ref:t,className:l.cn("flex cursor-default items-center justify-center py-4",a),...r,children:s.jsxRuntimeExports.jsx(i.ChevronDown,{className:"h-16 w-16"})}));d.displayName=e.ScrollDownButton.displayName;const u=n.forwardRef(({className:a,children:r,position:t="popper",...o},j)=>s.jsxRuntimeExports.jsx(e.Portal,{children:s.jsxRuntimeExports.jsxs(e.Content,{ref:j,className:l.cn("relative z-50 max-h-[300px] min-w-[8rem] overflow-hidden bg-white rounded border shadow-200","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",t==="popper"&&"data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4",a),position:t,...o,children:[s.jsxRuntimeExports.jsx(c,{}),s.jsxRuntimeExports.jsx(e.Viewport,{className:l.cn(t==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:r}),s.jsxRuntimeExports.jsx(d,{})]})}));u.displayName=e.Content.displayName;const x=n.forwardRef(({className:a,...r},t)=>s.jsxRuntimeExports.jsx(e.Label,{ref:t,className:l.cn("py-8 px-16 pr-8 font-medium",a),...r}));x.displayName=e.Label.displayName;const f=n.forwardRef(({className:a,children:r,...t},o)=>s.jsxRuntimeExports.jsxs(e.Item,{ref:o,className:l.cn("relative flex w-full cursor-default select-none items-center justify-between py-8 px-16 outline-none","hover:bg-gray-200","data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800","data-disabled:pointer-events-none data-disabled:opacity-64",a),...t,children:[s.jsxRuntimeExports.jsx(e.ItemText,{children:r}),s.jsxRuntimeExports.jsx(e.ItemIndicator,{children:s.jsxRuntimeExports.jsx(i.CheckIcon,{className:"h-16 w-16 ml-8"})})]}));f.displayName=e.Item.displayName;const h=n.forwardRef(({className:a,...r},t)=>s.jsxRuntimeExports.jsx(e.Separator,{ref:t,className:l.cn("-mx-4 my-4 h-px bg-gray-900/24",a),...r}));h.displayName=e.Separator.displayName;exports.Select=y;exports.SelectContent=u;exports.SelectGroup=g;exports.SelectItem=f;exports.SelectLabel=x;exports.SelectScrollDownButton=d;exports.SelectScrollUpButton=c;exports.SelectSeparator=h;exports.SelectTrigger=m;exports.SelectValue=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index37.cjs"),d=require("@radix-ui/react-select"),l=require("lucide-react"),o=require("./index39.cjs");function u(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(s,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return s.default=e,Object.freeze(s)}const a=u(d);function x({...e}){return t.jsxRuntimeExports.jsx(a.Root,{"data-slot":"select",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(a.Group,{"data-slot":"select-group",...e})}function m({...e}){return t.jsxRuntimeExports.jsx(a.Value,{"data-slot":"select-value",...e})}function f({className:e,children:s,...n}){return t.jsxRuntimeExports.jsxs(a.Trigger,{"data-slot":"select-trigger",className:o.cn("border border-gray-900/24 data-[placeholder]:text-gray-700 [&_svg:not([class*='text-'])]:text-gray-700","focus-visible:outline-none focus:shadow-field-active","flex h-[36px] w-full items-center justify-between rounded bg-white pl-16 pr-12 text-left whitespace-nowrap transition-[color,box-shadow]","disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none","*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-8","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16","hover:shadow-field-hover","active:shadow-field-active","data-[state=open]:shadow-field-active",e),...n,children:[s,t.jsxRuntimeExports.jsx(a.Icon,{asChild:!0,children:t.jsxRuntimeExports.jsx(l.ChevronDownIcon,{className:"size-16 opacity-64 shrink-0"})})]})}function j({className:e,children:s,position:n="popper",...r}){return t.jsxRuntimeExports.jsx(a.Portal,{children:t.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"select-content",className:o.cn("bg-white","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","relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded border shadow-200",n==="popper"&&"data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4",e),position:n,...r,children:[t.jsxRuntimeExports.jsx(i,{}),t.jsxRuntimeExports.jsx(a.Viewport,{className:o.cn(n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-4"),children:s}),t.jsxRuntimeExports.jsx(c,{})]})})}function h({className:e,...s}){return t.jsxRuntimeExports.jsx(a.Label,{"data-slot":"select-label",className:o.cn("px-16 py-8 pr-8 font-medium",e),...s})}function g({className:e,children:s,...n}){return t.jsxRuntimeExports.jsxs(a.Item,{"data-slot":"select-item",className:o.cn("relative flex w-full cursor-default items-center gap-8 py-8 px-16 outline-none select-none","hover:bg-gray-200","data-[disabled]:pointer-events-none data-[disabled]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0","data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800","[&_svg:not([class*='size-'])]:size-16 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-8",e),...n,children:[t.jsxRuntimeExports.jsx("span",{className:"absolute right-8 flex size-16 items-center justify-center",children:t.jsxRuntimeExports.jsx(a.ItemIndicator,{children:t.jsxRuntimeExports.jsx(l.CheckIcon,{className:"size-16"})})}),t.jsxRuntimeExports.jsx(a.ItemText,{children:s})]})}function v({className:e,...s}){return t.jsxRuntimeExports.jsx(a.Separator,{"data-slot":"select-separator",className:o.cn("bg-gray-900/24 pointer-events-none -mx-4 my-4 h-px",e),...s})}function i({className:e,...s}){return t.jsxRuntimeExports.jsx(a.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:o.cn("flex cursor-default items-center justify-center py-4",e),...s,children:t.jsxRuntimeExports.jsx(l.ChevronUpIcon,{className:"size-16"})})}function c({className:e,...s}){return t.jsxRuntimeExports.jsx(a.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:o.cn("flex cursor-default items-center justify-center py-4",e),...s,children:t.jsxRuntimeExports.jsx(l.ChevronDownIcon,{className:"size-16"})})}exports.Select=x;exports.SelectContent=j;exports.SelectGroup=p;exports.SelectItem=g;exports.SelectLabel=h;exports.SelectScrollDownButton=c;exports.SelectScrollUpButton=i;exports.SelectSeparator=v;exports.SelectTrigger=f;exports.SelectValue=m;
2
2
  //# sourceMappingURL=index23.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index23.cjs","sources":["../src/Select/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SelectPrimitive from '@radix-ui/react-select'\nimport { CheckIcon, ChevronDown, ChevronUp } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex h-[36px] w-full items-center justify-between rounded bg-white border border-gray-900/24 pl-16 pr-12 text-left',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n '[&>span]:line-clamp-1',\n 'hover:shadow-field-hover',\n 'focus-visible:outline-none focus:shadow-field-active',\n 'active:shadow-field-active',\n 'data-[state=open]:shadow-field-active',\n 'data-placeholder:text-gray-700',\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-16 w-16 opacity-64 ml-8 shrink-0\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronUp className=\"h-16 w-16\" />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronDown className=\"h-16 w-16\" />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n 'relative z-50 max-h-[300px] min-w-[8rem] overflow-hidden bg-white rounded border shadow-200',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n position === 'popper' &&\n 'h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('py-8 px-16 pr-8 font-medium', className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex w-full cursor-default select-none items-center justify-between py-8 px-16 outline-none',\n 'hover:bg-gray-200',\n 'data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800',\n 'data-disabled:pointer-events-none data-disabled:opacity-64',\n className\n )}\n {...props}\n >\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"h-16 w-16 ml-8\" />\n </SelectPrimitive.ItemIndicator>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn('-mx-4 my-4 h-px bg-gray-900/24', className)}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue\n}\n"],"names":["Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","React","className","children","props","ref","jsxs","cn","jsx","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"mappings":"8fAOMA,EAASC,EAAgB,KAEzBC,EAAcD,EAAgB,MAE9BE,EAAcF,EAAgB,MAE9BG,EAAgBC,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAASC,IACpCC,EAAAA,kBAAAA,KAACT,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+ {"version":3,"file":"index23.cjs","sources":["../src/Select/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SelectPrimitive from '@radix-ui/react-select'\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\n}\n\nfunction SelectTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: 'sm' | 'default'\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n className={cn(\n \"border border-gray-900/24 data-[placeholder]:text-gray-700 [&_svg:not([class*='text-'])]:text-gray-700\",\n 'focus-visible:outline-none focus:shadow-field-active',\n 'flex h-[36px] w-full items-center justify-between rounded bg-white pl-16 pr-12 text-left whitespace-nowrap transition-[color,box-shadow]',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n '*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-8',\n \"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16\",\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'data-[state=open]:shadow-field-active',\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-16 opacity-64 shrink-0\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n )\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'popper',\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n 'bg-white',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n 'relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded border shadow-200',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-4'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n )\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn('px-16 py-8 pr-8 font-medium', className)}\n {...props}\n />\n )\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n 'relative flex w-full cursor-default items-center gap-8 py-8 px-16 outline-none select-none',\n 'hover:bg-gray-200',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n 'data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800',\n \"[&_svg:not([class*='size-'])]:size-16 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-8\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-8 flex size-16 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-16\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n )\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(\n 'bg-gray-900/24 pointer-events-none -mx-4 my-4 h-px',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-16\" />\n </SelectPrimitive.ScrollUpButton>\n )\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-16\" />\n </SelectPrimitive.ScrollDownButton>\n )\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue\n}\n"],"names":["Select","props","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","className","children","jsxs","cn","jsx","ChevronDownIcon","SelectContent","position","SelectScrollUpButton","SelectScrollDownButton","SelectLabel","SelectItem","CheckIcon","SelectSeparator","ChevronUpIcon"],"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ACES,EAAAA,kBAAAA,IAACR,EAAgB,iBAAhB,CACC,YAAU,4BACV,UAAWO,EAAAA,GACT,uDACAH,CAAA,EAED,GAAGL,EAEJ,SAAAS,EAAAA,kBAAAA,IAACC,EAAAA,gBAAA,CAAgB,UAAU,SAAA,CAAU,CAAA,CAAA,CAG3C"}
package/dist/index23.js CHANGED
@@ -1,134 +1,186 @@
1
- import { j as t } from "./index37.js";
2
- import * as e from "@radix-ui/react-select";
3
- import { ChevronDown as i, ChevronUp as p, CheckIcon as f } from "lucide-react";
4
- import * as l from "react";
5
- import { cn as r } from "./index39.js";
6
- const b = e.Root, S = e.Group, v = e.Value, h = l.forwardRef(({ className: s, children: o, ...a }, d) => /* @__PURE__ */ t.jsxs(
7
- e.Trigger,
8
- {
9
- ref: d,
10
- className: r(
11
- "flex h-[36px] w-full items-center justify-between rounded bg-white border border-gray-900/24 pl-16 pr-12 text-left",
12
- "disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none",
13
- "[&>span]:line-clamp-1",
14
- "hover:shadow-field-hover",
15
- "focus-visible:outline-none focus:shadow-field-active",
16
- "active:shadow-field-active",
17
- "data-[state=open]:shadow-field-active",
18
- "data-placeholder:text-gray-700",
19
- s
20
- ),
21
- ...a,
22
- children: [
23
- o,
24
- /* @__PURE__ */ t.jsx(e.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(i, { className: "h-16 w-16 opacity-64 ml-8 shrink-0" }) })
25
- ]
26
- }
27
- ));
28
- h.displayName = e.Trigger.displayName;
29
- const n = l.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
30
- e.ScrollUpButton,
31
- {
32
- ref: a,
33
- className: r(
34
- "flex cursor-default items-center justify-center py-4",
35
- s
36
- ),
37
- ...o,
38
- children: /* @__PURE__ */ t.jsx(p, { className: "h-16 w-16" })
39
- }
40
- ));
41
- n.displayName = e.ScrollUpButton.displayName;
42
- const c = l.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
43
- e.ScrollDownButton,
44
- {
45
- ref: a,
46
- className: r(
47
- "flex cursor-default items-center justify-center py-4",
48
- s
49
- ),
50
- ...o,
51
- children: /* @__PURE__ */ t.jsx(i, { className: "h-16 w-16" })
52
- }
53
- ));
54
- c.displayName = e.ScrollDownButton.displayName;
55
- const x = l.forwardRef(({ className: s, children: o, position: a = "popper", ...d }, m) => /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsxs(
56
- e.Content,
57
- {
58
- ref: m,
59
- className: r(
60
- "relative z-50 max-h-[300px] min-w-[8rem] overflow-hidden bg-white rounded border shadow-200",
61
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
62
- "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2",
63
- "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
64
- a === "popper" && "data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4",
65
- s
66
- ),
67
- position: a,
68
- ...d,
69
- children: [
70
- /* @__PURE__ */ t.jsx(n, {}),
71
- /* @__PURE__ */ t.jsx(
72
- e.Viewport,
73
- {
74
- className: r(
75
- a === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"
76
- ),
77
- children: o
78
- }
1
+ import { j as e } from "./index37.js";
2
+ import * as a from "@radix-ui/react-select";
3
+ import { CheckIcon as i, ChevronDownIcon as r, ChevronUpIcon as c } from "lucide-react";
4
+ import { cn as l } from "./index39.js";
5
+ function f({
6
+ ...t
7
+ }) {
8
+ return /* @__PURE__ */ e.jsx(a.Root, { "data-slot": "select", ...t });
9
+ }
10
+ function h({
11
+ ...t
12
+ }) {
13
+ return /* @__PURE__ */ e.jsx(a.Group, { "data-slot": "select-group", ...t });
14
+ }
15
+ function g({
16
+ ...t
17
+ }) {
18
+ return /* @__PURE__ */ e.jsx(a.Value, { "data-slot": "select-value", ...t });
19
+ }
20
+ function v({
21
+ className: t,
22
+ children: s,
23
+ ...o
24
+ }) {
25
+ return /* @__PURE__ */ e.jsxs(
26
+ a.Trigger,
27
+ {
28
+ "data-slot": "select-trigger",
29
+ className: l(
30
+ "border border-gray-900/24 data-[placeholder]:text-gray-700 [&_svg:not([class*='text-'])]:text-gray-700",
31
+ "focus-visible:outline-none focus:shadow-field-active",
32
+ "flex h-[36px] w-full items-center justify-between rounded bg-white pl-16 pr-12 text-left whitespace-nowrap transition-[color,box-shadow]",
33
+ "disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none",
34
+ "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-8",
35
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16",
36
+ "hover:shadow-field-hover",
37
+ "active:shadow-field-active",
38
+ "data-[state=open]:shadow-field-active",
39
+ t
79
40
  ),
80
- /* @__PURE__ */ t.jsx(c, {})
81
- ]
82
- }
83
- ) }));
84
- x.displayName = e.Content.displayName;
85
- const u = l.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
86
- e.Label,
87
- {
88
- ref: a,
89
- className: r("py-8 px-16 pr-8 font-medium", s),
90
- ...o
91
- }
92
- ));
93
- u.displayName = e.Label.displayName;
94
- const w = l.forwardRef(({ className: s, children: o, ...a }, d) => /* @__PURE__ */ t.jsxs(
95
- e.Item,
96
- {
97
- ref: d,
98
- className: r(
99
- "relative flex w-full cursor-default select-none items-center justify-between py-8 px-16 outline-none",
100
- "hover:bg-gray-200",
101
- "data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800",
102
- "data-disabled:pointer-events-none data-disabled:opacity-64",
103
- s
104
- ),
105
- ...a,
106
- children: [
107
- /* @__PURE__ */ t.jsx(e.ItemText, { children: o }),
108
- /* @__PURE__ */ t.jsx(e.ItemIndicator, { children: /* @__PURE__ */ t.jsx(f, { className: "h-16 w-16 ml-8" }) })
109
- ]
110
- }
111
- ));
112
- w.displayName = e.Item.displayName;
113
- const y = l.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
114
- e.Separator,
115
- {
116
- ref: a,
117
- className: r("-mx-4 my-4 h-px bg-gray-900/24", s),
118
- ...o
119
- }
120
- ));
121
- y.displayName = e.Separator.displayName;
41
+ ...o,
42
+ children: [
43
+ s,
44
+ /* @__PURE__ */ e.jsx(a.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(r, { className: "size-16 opacity-64 shrink-0" }) })
45
+ ]
46
+ }
47
+ );
48
+ }
49
+ function j({
50
+ className: t,
51
+ children: s,
52
+ position: o = "popper",
53
+ ...n
54
+ }) {
55
+ return /* @__PURE__ */ e.jsx(a.Portal, { children: /* @__PURE__ */ e.jsxs(
56
+ a.Content,
57
+ {
58
+ "data-slot": "select-content",
59
+ className: l(
60
+ "bg-white",
61
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
62
+ "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2",
63
+ "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
64
+ "relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded border shadow-200",
65
+ o === "popper" && "data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4",
66
+ t
67
+ ),
68
+ position: o,
69
+ ...n,
70
+ children: [
71
+ /* @__PURE__ */ e.jsx(d, {}),
72
+ /* @__PURE__ */ e.jsx(
73
+ a.Viewport,
74
+ {
75
+ className: l(
76
+ o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-4"
77
+ ),
78
+ children: s
79
+ }
80
+ ),
81
+ /* @__PURE__ */ e.jsx(u, {})
82
+ ]
83
+ }
84
+ ) });
85
+ }
86
+ function b({
87
+ className: t,
88
+ ...s
89
+ }) {
90
+ return /* @__PURE__ */ e.jsx(
91
+ a.Label,
92
+ {
93
+ "data-slot": "select-label",
94
+ className: l("px-16 py-8 pr-8 font-medium", t),
95
+ ...s
96
+ }
97
+ );
98
+ }
99
+ function w({
100
+ className: t,
101
+ children: s,
102
+ ...o
103
+ }) {
104
+ return /* @__PURE__ */ e.jsxs(
105
+ a.Item,
106
+ {
107
+ "data-slot": "select-item",
108
+ className: l(
109
+ "relative flex w-full cursor-default items-center gap-8 py-8 px-16 outline-none select-none",
110
+ "hover:bg-gray-200",
111
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0",
112
+ "data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800",
113
+ "[&_svg:not([class*='size-'])]:size-16 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-8",
114
+ t
115
+ ),
116
+ ...o,
117
+ children: [
118
+ /* @__PURE__ */ e.jsx("span", { className: "absolute right-8 flex size-16 items-center justify-center", children: /* @__PURE__ */ e.jsx(a.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-16" }) }) }),
119
+ /* @__PURE__ */ e.jsx(a.ItemText, { children: s })
120
+ ]
121
+ }
122
+ );
123
+ }
124
+ function y({
125
+ className: t,
126
+ ...s
127
+ }) {
128
+ return /* @__PURE__ */ e.jsx(
129
+ a.Separator,
130
+ {
131
+ "data-slot": "select-separator",
132
+ className: l(
133
+ "bg-gray-900/24 pointer-events-none -mx-4 my-4 h-px",
134
+ t
135
+ ),
136
+ ...s
137
+ }
138
+ );
139
+ }
140
+ function d({
141
+ className: t,
142
+ ...s
143
+ }) {
144
+ return /* @__PURE__ */ e.jsx(
145
+ a.ScrollUpButton,
146
+ {
147
+ "data-slot": "select-scroll-up-button",
148
+ className: l(
149
+ "flex cursor-default items-center justify-center py-4",
150
+ t
151
+ ),
152
+ ...s,
153
+ children: /* @__PURE__ */ e.jsx(c, { className: "size-16" })
154
+ }
155
+ );
156
+ }
157
+ function u({
158
+ className: t,
159
+ ...s
160
+ }) {
161
+ return /* @__PURE__ */ e.jsx(
162
+ a.ScrollDownButton,
163
+ {
164
+ "data-slot": "select-scroll-down-button",
165
+ className: l(
166
+ "flex cursor-default items-center justify-center py-4",
167
+ t
168
+ ),
169
+ ...s,
170
+ children: /* @__PURE__ */ e.jsx(r, { className: "size-16" })
171
+ }
172
+ );
173
+ }
122
174
  export {
123
- b as Select,
124
- x as SelectContent,
125
- S as SelectGroup,
175
+ f as Select,
176
+ j as SelectContent,
177
+ h as SelectGroup,
126
178
  w as SelectItem,
127
- u as SelectLabel,
128
- c as SelectScrollDownButton,
129
- n as SelectScrollUpButton,
179
+ b as SelectLabel,
180
+ u as SelectScrollDownButton,
181
+ d as SelectScrollUpButton,
130
182
  y as SelectSeparator,
131
- h as SelectTrigger,
132
- v as SelectValue
183
+ v as SelectTrigger,
184
+ g as SelectValue
133
185
  };
134
186
  //# sourceMappingURL=index23.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index23.js","sources":["../src/Select/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SelectPrimitive from '@radix-ui/react-select'\nimport { CheckIcon, ChevronDown, ChevronUp } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex h-[36px] w-full items-center justify-between rounded bg-white border border-gray-900/24 pl-16 pr-12 text-left',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n '[&>span]:line-clamp-1',\n 'hover:shadow-field-hover',\n 'focus-visible:outline-none focus:shadow-field-active',\n 'active:shadow-field-active',\n 'data-[state=open]:shadow-field-active',\n 'data-placeholder:text-gray-700',\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-16 w-16 opacity-64 ml-8 shrink-0\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronUp className=\"h-16 w-16\" />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronDown className=\"h-16 w-16\" />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n 'relative z-50 max-h-[300px] min-w-[8rem] overflow-hidden bg-white rounded border shadow-200',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n position === 'popper' &&\n 'h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('py-8 px-16 pr-8 font-medium', className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex w-full cursor-default select-none items-center justify-between py-8 px-16 outline-none',\n 'hover:bg-gray-200',\n 'data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800',\n 'data-disabled:pointer-events-none data-disabled:opacity-64',\n className\n )}\n {...props}\n >\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"h-16 w-16 ml-8\" />\n </SelectPrimitive.ItemIndicator>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn('-mx-4 my-4 h-px bg-gray-900/24', className)}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue\n}\n"],"names":["Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","React","className","children","props","ref","jsxs","cn","jsx","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"mappings":";;;;;AAOA,MAAMA,IAASC,EAAgB,MAEzBC,IAAcD,EAAgB,OAE9BE,IAAcF,EAAgB,OAE9BG,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACT,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MACDK,gBAAAA,EAAAA,IAACX,EAAgB,MAAhB,EAAqB,SAAO,IAC3B,UAAAW,gBAAAA,EAAAA,IAACC,GAAA,EAAY,WAAU,qCAA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C,KAAAQ;AAAA,IACA,WAAWE,EAAG,kCAAkCL,CAAS;AAAA,IACxD,GAAGE;AAAA,EAAA;AACN,CACD;AACDc,EAAgB,cAAcrB,EAAgB,UAAU;"}
1
+ {"version":3,"file":"index23.js","sources":["../src/Select/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SelectPrimitive from '@radix-ui/react-select'\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\n}\n\nfunction SelectTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: 'sm' | 'default'\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n className={cn(\n \"border border-gray-900/24 data-[placeholder]:text-gray-700 [&_svg:not([class*='text-'])]:text-gray-700\",\n 'focus-visible:outline-none focus:shadow-field-active',\n 'flex h-[36px] w-full items-center justify-between rounded bg-white pl-16 pr-12 text-left whitespace-nowrap transition-[color,box-shadow]',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n '*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-8',\n \"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16\",\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'data-[state=open]:shadow-field-active',\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-16 opacity-64 shrink-0\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n )\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'popper',\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n 'bg-white',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n 'relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded border shadow-200',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-4'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n )\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn('px-16 py-8 pr-8 font-medium', className)}\n {...props}\n />\n )\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n 'relative flex w-full cursor-default items-center gap-8 py-8 px-16 outline-none select-none',\n 'hover:bg-gray-200',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n 'data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800',\n \"[&_svg:not([class*='size-'])]:size-16 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-8\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-8 flex size-16 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-16\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n )\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(\n 'bg-gray-900/24 pointer-events-none -mx-4 my-4 h-px',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-16\" />\n </SelectPrimitive.ScrollUpButton>\n )\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-16\" />\n </SelectPrimitive.ScrollDownButton>\n )\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue\n}\n"],"names":["Select","props","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","className","children","jsxs","cn","jsx","ChevronDownIcon","SelectContent","position","SelectScrollUpButton","SelectScrollDownButton","SelectLabel","SelectItem","CheckIcon","SelectSeparator","ChevronUpIcon"],"mappings":";;;;AAOA,SAASA,EAAO;AAAA,EACd,GAAGC;AACL,GAAsD;AACpD,+BAAQC,EAAgB,MAAhB,EAAqB,aAAU,UAAU,GAAGD,GAAO;AAC7D;AAEA,SAASE,EAAY;AAAA,EACnB,GAAGF;AACL,GAAuD;AACrD,+BAAQC,EAAgB,OAAhB,EAAsB,aAAU,gBAAgB,GAAGD,GAAO;AACpE;AAEA,SAASG,EAAY;AAAA,EACnB,GAAGH;AACL,GAAuD;AACrD,+BAAQC,EAAgB,OAAhB,EAAsB,aAAU,gBAAgB,GAAGD,GAAO;AACpE;AAEA,SAASI,EAAc;AAAA,EACrB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGN;AACL,GAEG;AACD,SACEO,gBAAAA,EAAAA;AAAAA,IAACN,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWO;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACAH;AAAA,MAAA;AAAA,MAED,GAAGL;AAAA,MAEH,UAAA;AAAA,QAAAM;AAAA,QACDG,gBAAAA,EAAAA,IAACR,EAAgB,MAAhB,EAAqB,SAAO,IAC3B,UAAAQ,gBAAAA,EAAAA,IAACC,GAAA,EAAgB,WAAU,8BAAA,CAA8B,EAAA,CAC3D;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAEA,SAASC,EAAc;AAAA,EACrB,WAAAN;AAAA,EACA,UAAAC;AAAA,EACA,UAAAM,IAAW;AAAA,EACX,GAAGZ;AACL,GAAyD;AACvD,SACES,gBAAAA,EAAAA,IAACR,EAAgB,QAAhB,EACC,UAAAM,gBAAAA,EAAAA;AAAAA,IAACN,E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AR,gBAAAA,EAAAA,IAACR,EAAgB,UAAhB,EAA0B,UAAAK,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG1C;AAEA,SAASY,EAAgB;AAAA,EACvB,WAAAb;AAAA,EACA,GAAGL;AACL,GAA2D;AACzD,SACES,gBAAAA,EAAAA;AAAAA,IAACR,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWO;AAAA,QACT;AAAA,QACAH;AAAA,MAAA;AAAA,MAED,GAAGL;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASa,EAAqB;AAAA,EAC5B,WAAAR;AAAA,EACA,GAAGL;AACL,GAAgE;AAC9D,SACES,gBAAAA,EAAAA;AAAAA,IAACR,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWO;AAAA,QACT;AAAA,QACAH;AAAA,MAAA;AAAA,MAED,GAAGL;AAAA,MAEJ,UAAAS,gBAAAA,EAAAA,IAACU,GAAA,EAAc,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AAGzC;AAEA,SAASL,EAAuB;AAAA,EAC9B,WAAAT;AAAA,EACA,GAAGL;AACL,GAAkE;AAChE,SACES,gBAAAA,EAAAA;AAAAA,IAACR,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWO;AAAA,QACT;AAAA,QACAH;AAAA,MAAA;AAAA,MAED,GAAGL;AAAA,MAEJ,UAAAS,gBAAAA,EAAAA,IAACC,GAAA,EAAgB,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AAG3C;"}
package/dist/index24.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index37.cjs"),u=require("@radix-ui/react-separator"),l=require("react"),p=require("./index39.cjs");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=a(u),f=a(l),i=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...o},s)=>c.jsxRuntimeExports.jsx(n.Root,{ref:s,decorative:r,orientation:t,className:p.cn("shrink-0 bg-gray-900/8",t==="horizontal"?"h-px w-full":"w-px",e),role:"separator",...o}));i.displayName=n.Root.displayName;exports.Separator=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index37.cjs"),n=require("@radix-ui/react-separator"),i=require("./index39.cjs");function l(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const u=l(n);function c({className:t,orientation:r="horizontal",decorative:e=!0,...a}){return o.jsxRuntimeExports.jsx(u.Root,{"data-slot":"separator",decorative:e,orientation:r,className:i.cn("bg-gray-900/24 shrink-0","data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...a})}exports.Separator=c;
2
2
  //# sourceMappingURL=index24.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index24.cjs","sources":["../src/Separator/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = 'horizontal', decorative = true, ...props },\n ref\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'shrink-0 bg-gray-900/8',\n orientation === 'horizontal' ? 'h-px w-full' : 'w-px',\n className\n )}\n role=\"separator\"\n {...props}\n />\n )\n)\nSeparator.displayName = SeparatorPrimitive.Root.displayName\n\nexport { Separator }\n"],"names":["Separator","React","className","orientation","decorative","props","ref","jsx","SeparatorPrimitive","cn"],"mappings":"ueAMMA,EAAYC,EAAM,WAItB,CACE,CAAE,UAAAC,EAAW,YAAAC,EAAc,aAAc,WAAAC,EAAa,GAAM,GAAGC,GAC/DC,IAEAC,EAAAA,kBAAAA,IAACC,EAAmB,KAAnB,CACC,IAAAF,EACA,WAAAF,EACA,YAAAD,EACA,UAAWM,EAAAA,GACT,yBACAN,IAAgB,aAAe,cAAgB,OAC/CD,CAAA,EAEF,KAAK,YACJ,GAAGG,CAAA,CAAA,CAGV,EACAL,EAAU,YAAcQ,EAAmB,KAAK"}
1
+ {"version":3,"file":"index24.cjs","sources":["../src/Separator/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Separator({\n className,\n orientation = 'horizontal',\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'bg-gray-900/24 shrink-0',\n 'data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full',\n 'data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Separator }\n"],"names":["Separator","className","orientation","decorative","props","jsx","SeparatorPrimitive","cn"],"mappings":"6cAMA,SAASA,EAAU,CACjB,UAAAC,EACA,YAAAC,EAAc,aACd,WAAAC,EAAa,GACb,GAAGC,CACL,EAAyD,CACvD,OACEC,EAAAA,kBAAAA,IAACC,EAAmB,KAAnB,CACC,YAAU,YACV,WAAAH,EACA,YAAAD,EACA,UAAWK,EAAAA,GACT,0BACA,0EACA,sEACAN,CAAA,EAED,GAAGG,CAAA,CAAA,CAGV"}
package/dist/index24.js CHANGED
@@ -1,26 +1,29 @@
1
- import { j as s } from "./index37.js";
2
- import * as o from "@radix-ui/react-separator";
3
- import * as e from "react";
4
- import { cn as i } from "./index39.js";
5
- const l = e.forwardRef(
6
- ({ className: a, orientation: r = "horizontal", decorative: t = !0, ...m }, p) => /* @__PURE__ */ s.jsx(
7
- o.Root,
1
+ import { j as i } from "./index37.js";
2
+ import * as n from "@radix-ui/react-separator";
3
+ import { cn as e } from "./index39.js";
4
+ function s({
5
+ className: t,
6
+ orientation: a = "horizontal",
7
+ decorative: o = !0,
8
+ ...r
9
+ }) {
10
+ return /* @__PURE__ */ i.jsx(
11
+ n.Root,
8
12
  {
9
- ref: p,
10
- decorative: t,
11
- orientation: r,
12
- className: i(
13
- "shrink-0 bg-gray-900/8",
14
- r === "horizontal" ? "h-px w-full" : "w-px",
15
- a
13
+ "data-slot": "separator",
14
+ decorative: o,
15
+ orientation: a,
16
+ className: e(
17
+ "bg-gray-900/24 shrink-0",
18
+ "data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full",
19
+ "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
20
+ t
16
21
  ),
17
- role: "separator",
18
- ...m
22
+ ...r
19
23
  }
20
- )
21
- );
22
- l.displayName = o.Root.displayName;
24
+ );
25
+ }
23
26
  export {
24
- l as Separator
27
+ s as Separator
25
28
  };
26
29
  //# sourceMappingURL=index24.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index24.js","sources":["../src/Separator/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = 'horizontal', decorative = true, ...props },\n ref\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'shrink-0 bg-gray-900/8',\n orientation === 'horizontal' ? 'h-px w-full' : 'w-px',\n className\n )}\n role=\"separator\"\n {...props}\n />\n )\n)\nSeparator.displayName = SeparatorPrimitive.Root.displayName\n\nexport { Separator }\n"],"names":["Separator","React","className","orientation","decorative","props","ref","jsx","SeparatorPrimitive","cn"],"mappings":";;;;AAMA,MAAMA,IAAYC,EAAM;AAAA,EAItB,CACE,EAAE,WAAAC,GAAW,aAAAC,IAAc,cAAc,YAAAC,IAAa,IAAM,GAAGC,KAC/DC,MAEAC,gBAAAA,EAAAA;AAAAA,IAACC,EAAmB;AAAA,IAAnB;AAAA,MACC,KAAAF;AAAA,MACA,YAAAF;AAAA,MACA,aAAAD;AAAA,MACA,WAAWM;AAAA,QACT;AAAA,QACAN,MAAgB,eAAe,gBAAgB;AAAA,QAC/CD;AAAA,MAAA;AAAA,MAEF,MAAK;AAAA,MACJ,GAAGG;AAAA,IAAA;AAAA,EAAA;AAGV;AACAL,EAAU,cAAcQ,EAAmB,KAAK;"}
1
+ {"version":3,"file":"index24.js","sources":["../src/Separator/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Separator({\n className,\n orientation = 'horizontal',\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'bg-gray-900/24 shrink-0',\n 'data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full',\n 'data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Separator }\n"],"names":["Separator","className","orientation","decorative","props","jsx","SeparatorPrimitive","cn"],"mappings":";;;AAMA,SAASA,EAAU;AAAA,EACjB,WAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AAAA,EACb,GAAGC;AACL,GAAyD;AACvD,SACEC,gBAAAA,EAAAA;AAAAA,IAACC,EAAmB;AAAA,IAAnB;AAAA,MACC,aAAU;AAAA,MACV,YAAAH;AAAA,MACA,aAAAD;AAAA,MACA,WAAWK;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACAN;AAAA,MAAA;AAAA,MAED,GAAGG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
package/dist/index27.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index37.cjs"),t=require("lucide-react"),o=require("sonner"),n=({className:s,...r})=>e.jsxRuntimeExports.jsx(o.Toaster,{className:s,position:"top-center",offset:16,gap:16,closeButton:!0,toastOptions:{unstyled:!0,classNames:{toast:"flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all",success:"bg-green-50",warning:"bg-yellow-50",error:"bg-magenta-50",title:"text-sm text-gray-900! font-medium!",description:"text-sm text-gray-800!",closeButton:"left-auto! right-0! top-16! w-24! h-24! inline-flex! items-center! justify-center! rounded-full! bg-gray-900/8! hover:bg-gray-900/12! focus:bg-gray-900/12! active:bg-gray-900/16!"}},icons:{success:e.jsxRuntimeExports.jsx(t.CheckIcon,{size:20,className:"text-green-800"}),warning:e.jsxRuntimeExports.jsx(t.AlertTriangleIcon,{size:20,className:"text-yellow-600"}),error:e.jsxRuntimeExports.jsx(t.AlertCircleIcon,{size:20,className:"text-magenta-600"}),close:e.jsxRuntimeExports.jsx(t.LucideX,{size:16})},...r});exports.Toaster=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index37.cjs"),t=require("lucide-react"),o=require("sonner"),n=({className:s,...r})=>e.jsxRuntimeExports.jsx(o.Toaster,{className:s,position:"top-center",offset:16,gap:16,closeButton:!0,toastOptions:{unstyled:!0,classNames:{toast:"flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all",success:"bg-green-50",warning:"bg-yellow-50",error:"bg-magenta-50",title:"text-sm text-gray-900! font-medium!",description:"text-sm text-gray-800!",closeButton:"absolute left-auto right-8 top-8 size-24 inline-flex items-center justify-center rounded-full bg-gray-900/8 hover:bg-gray-900/12 focus:bg-gray-900/12 active:bg-gray-900/16"}},icons:{success:e.jsxRuntimeExports.jsx(t.CheckIcon,{size:20,className:"text-green-800"}),warning:e.jsxRuntimeExports.jsx(t.AlertTriangleIcon,{size:20,className:"text-yellow-600"}),error:e.jsxRuntimeExports.jsx(t.AlertCircleIcon,{size:20,className:"text-magenta-600"}),close:e.jsxRuntimeExports.jsx(t.LucideX,{size:16})},...r});exports.Toaster=n;
2
2
  //# sourceMappingURL=index27.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index27.cjs","sources":["../src/Sonner/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n AlertCircleIcon,\n AlertTriangleIcon,\n CheckIcon,\n LucideX\n} from 'lucide-react'\nimport { Toaster as Sonner } from 'sonner'\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ className, ...props }: ToasterProps) => {\n return (\n <Sonner\n className={className}\n position=\"top-center\"\n offset={16}\n gap={16}\n closeButton={true}\n toastOptions={{\n unstyled: true,\n classNames: {\n toast:\n 'flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all',\n success: 'bg-green-50',\n warning: 'bg-yellow-50',\n error: 'bg-magenta-50',\n title: 'text-sm text-gray-900! font-medium!',\n description: 'text-sm text-gray-800!',\n closeButton:\n 'left-auto! right-0! top-16! w-24! h-24! inline-flex! items-center! justify-center! rounded-full! bg-gray-900/8! hover:bg-gray-900/12! focus:bg-gray-900/12! active:bg-gray-900/16!'\n }\n }}\n icons={{\n success: <CheckIcon size={20} className=\"text-green-800\" />,\n warning: <AlertTriangleIcon size={20} className=\"text-yellow-600\" />,\n error: <AlertCircleIcon size={20} className=\"text-magenta-600\" />,\n close: <LucideX size={16} />\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n"],"names":["Toaster","className","props","jsx","Sonner","CheckIcon","AlertTriangleIcon","AlertCircleIcon","LucideX"],"mappings":"+JAYMA,EAAU,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAE7BC,EAAAA,kBAAAA,IAACC,EAAAA,QAAA,CACC,UAAAH,EACA,SAAS,aACT,OAAQ,GACR,IAAK,GACL,YAAa,GACb,aAAc,CACZ,SAAU,GACV,WAAY,CACV,MACE,6IACF,QAAS,cACT,QAAS,eACT,MAAO,gBACP,MAAO,sCACP,YAAa,yBACb,YACE,oLAAA,CACJ,EAEF,MAAO,CACL,QAASE,EAAAA,kBAAAA,IAACE,YAAA,CAAU,KAAM,GAAI,UAAU,iBAAiB,EACzD,QAASF,EAAAA,kBAAAA,IAACG,oBAAA,CAAkB,KAAM,GAAI,UAAU,kBAAkB,EAClE,MAAOH,EAAAA,kBAAAA,IAACI,kBAAA,CAAgB,KAAM,GAAI,UAAU,mBAAmB,EAC/D,MAAOJ,EAAAA,kBAAAA,IAACK,EAAAA,QAAA,CAAQ,KAAM,EAAA,CAAI,CAAA,EAE3B,GAAGN,CAAA,CAAA"}
1
+ {"version":3,"file":"index27.cjs","sources":["../src/Sonner/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n AlertCircleIcon,\n AlertTriangleIcon,\n CheckIcon,\n LucideX\n} from 'lucide-react'\nimport { Toaster as Sonner } from 'sonner'\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ className, ...props }: ToasterProps) => {\n return (\n <Sonner\n className={className}\n position=\"top-center\"\n offset={16}\n gap={16}\n closeButton={true}\n toastOptions={{\n unstyled: true,\n classNames: {\n toast:\n 'flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all',\n success: 'bg-green-50',\n warning: 'bg-yellow-50',\n error: 'bg-magenta-50',\n title: 'text-sm text-gray-900! font-medium!',\n description: 'text-sm text-gray-800!',\n closeButton:\n 'absolute left-auto right-8 top-8 size-24 inline-flex items-center justify-center rounded-full bg-gray-900/8 hover:bg-gray-900/12 focus:bg-gray-900/12 active:bg-gray-900/16'\n }\n }}\n icons={{\n success: <CheckIcon size={20} className=\"text-green-800\" />,\n warning: <AlertTriangleIcon size={20} className=\"text-yellow-600\" />,\n error: <AlertCircleIcon size={20} className=\"text-magenta-600\" />,\n close: <LucideX size={16} />\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n"],"names":["Toaster","className","props","jsx","Sonner","CheckIcon","AlertTriangleIcon","AlertCircleIcon","LucideX"],"mappings":"+JAYMA,EAAU,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAE7BC,EAAAA,kBAAAA,IAACC,EAAAA,QAAA,CACC,UAAAH,EACA,SAAS,aACT,OAAQ,GACR,IAAK,GACL,YAAa,GACb,aAAc,CACZ,SAAU,GACV,WAAY,CACV,MACE,6IACF,QAAS,cACT,QAAS,eACT,MAAO,gBACP,MAAO,sCACP,YAAa,yBACb,YACE,6KAAA,CACJ,EAEF,MAAO,CACL,QAASE,EAAAA,kBAAAA,IAACE,YAAA,CAAU,KAAM,GAAI,UAAU,iBAAiB,EACzD,QAASF,EAAAA,kBAAAA,IAACG,oBAAA,CAAkB,KAAM,GAAI,UAAU,kBAAkB,EAClE,MAAOH,EAAAA,kBAAAA,IAACI,kBAAA,CAAgB,KAAM,GAAI,UAAU,mBAAmB,EAC/D,MAAOJ,EAAAA,kBAAAA,IAACK,EAAAA,QAAA,CAAQ,KAAM,EAAA,CAAI,CAAA,EAE3B,GAAGN,CAAA,CAAA"}