@foundrykit/primitives 2.0.8 → 2.0.10

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 (175) hide show
  1. package/dist/{chunk-D4X2ZO5T.js → chunk-2SBGU5XA.js} +2 -2
  2. package/dist/chunk-3NQR7JZR.js +128 -0
  3. package/dist/{chunk-3MEIDBWZ.js → chunk-3QUMCM5K.js} +2 -2
  4. package/dist/chunk-B5YCE3UP.js +57 -0
  5. package/dist/chunk-F2TEA6ER.js +138 -0
  6. package/dist/{chunk-5OSYIETI.js → chunk-FRIOQFPE.js} +1 -1
  7. package/dist/{chunk-EDKSYP4L.js → chunk-G2YBCHWR.js} +1 -1
  8. package/dist/{chunk-DKBMAFIR.js → chunk-GKCBSG2W.js} +2 -0
  9. package/dist/chunk-HS46TIMU.js +75 -0
  10. package/dist/{chunk-R3IEOV2B.js → chunk-P5KEJOBH.js} +1 -1
  11. package/dist/{chunk-FIRYLO5W.js → chunk-SDYKJVXX.js} +2 -2
  12. package/dist/chunk-SIQHWNPH.js +45 -0
  13. package/dist/{chunk-2PXD7LAX.js → chunk-U7JIOR7A.js} +3 -3
  14. package/dist/{chunk-VA4MKQN7.js → chunk-W4XY3SNY.js} +1 -1
  15. package/dist/chunk-XCPGTXEJ.js +23 -0
  16. package/dist/components/alert-dialog/index.cjs +1 -1
  17. package/dist/components/alert-dialog/index.js +1 -1
  18. package/dist/components/card/index.cjs +63 -61
  19. package/dist/components/card/index.d.cts +8 -7
  20. package/dist/components/card/index.d.ts +8 -7
  21. package/dist/components/card/index.js +1 -1
  22. package/dist/components/context-menu/index.cjs +2 -2
  23. package/dist/components/context-menu/index.js +1 -1
  24. package/dist/components/dialog/index.cjs +182 -0
  25. package/dist/components/dialog/index.d.cts +38 -0
  26. package/dist/components/dialog/index.d.ts +38 -0
  27. package/dist/components/dialog/index.js +25 -0
  28. package/dist/components/dropdown/index.cjs +2 -2
  29. package/dist/components/dropdown/index.js +1 -1
  30. package/dist/components/hover-card/index.cjs +1 -1
  31. package/dist/components/hover-card/index.js +1 -1
  32. package/dist/components/input/index.cjs +16 -28
  33. package/dist/components/input/index.d.cts +6 -5
  34. package/dist/components/input/index.d.ts +6 -5
  35. package/dist/components/input/index.js +1 -1
  36. package/dist/components/input-group/index.cjs +270 -0
  37. package/dist/components/input-group/index.d.cts +44 -0
  38. package/dist/components/input-group/index.d.ts +44 -0
  39. package/dist/components/input-group/index.js +153 -0
  40. package/dist/components/menubar/index.cjs +2 -2
  41. package/dist/components/menubar/index.js +1 -1
  42. package/dist/components/navigation-menu/index.cjs +3 -3
  43. package/dist/components/navigation-menu/index.js +1 -1
  44. package/dist/components/popover/index.cjs +1 -1
  45. package/dist/components/popover/index.js +1 -1
  46. package/dist/components/select/index.cjs +1 -1
  47. package/dist/components/select/index.js +1 -1
  48. package/dist/components/sheet/index.cjs +170 -0
  49. package/dist/components/sheet/index.d.cts +31 -0
  50. package/dist/components/sheet/index.d.ts +31 -0
  51. package/dist/components/sheet/index.js +21 -0
  52. package/dist/components/slider/index.cjs +2 -0
  53. package/dist/components/slider/index.d.cts +3 -2
  54. package/dist/components/slider/index.d.ts +3 -2
  55. package/dist/components/slider/index.js +1 -1
  56. package/dist/components/toggle/index.cjs +81 -0
  57. package/dist/components/toggle/index.d.cts +26 -0
  58. package/dist/components/toggle/index.d.ts +26 -0
  59. package/dist/components/toggle/index.js +9 -0
  60. package/dist/components/tooltip/index.cjs +95 -0
  61. package/dist/components/tooltip/index.d.cts +25 -0
  62. package/dist/components/tooltip/index.d.ts +25 -0
  63. package/dist/components/tooltip/index.js +13 -0
  64. package/dist/index.cjs +107 -95
  65. package/dist/index.d.cts +11 -105
  66. package/dist/index.d.ts +11 -105
  67. package/dist/index.js +108 -414
  68. package/package.json +200 -8
  69. package/.turbo/turbo-build.log +0 -235
  70. package/.turbo/turbo-type-check.log +0 -4
  71. package/CHANGELOG.md +0 -224
  72. package/dist/chunk-DFGLEAZI.js +0 -63
  73. package/dist/chunk-RDQF3IQE.js +0 -25
  74. package/postcss.config.mjs +0 -6
  75. package/registry.json +0 -64
  76. package/src/components/accordion/config.ts +0 -28
  77. package/src/components/accordion/index.tsx +0 -80
  78. package/src/components/alert/config.ts +0 -40
  79. package/src/components/alert/index.tsx +0 -80
  80. package/src/components/alert-dialog/config.ts +0 -28
  81. package/src/components/alert-dialog/index.tsx +0 -188
  82. package/src/components/aspect-ratio/config.ts +0 -27
  83. package/src/components/aspect-ratio/index.tsx +0 -24
  84. package/src/components/avatar/config.ts +0 -46
  85. package/src/components/avatar/index.tsx +0 -67
  86. package/src/components/badge/config.ts +0 -56
  87. package/src/components/badge/index.tsx +0 -56
  88. package/src/components/breadcrumb/config.ts +0 -121
  89. package/src/components/breadcrumb/index.tsx +0 -127
  90. package/src/components/button/config.ts +0 -97
  91. package/src/components/button/index.tsx +0 -86
  92. package/src/components/button-group/config.ts +0 -39
  93. package/src/components/button-group/index.tsx +0 -99
  94. package/src/components/card/config.ts +0 -89
  95. package/src/components/card/index.tsx +0 -98
  96. package/src/components/checkbox/config.ts +0 -46
  97. package/src/components/checkbox/index.tsx +0 -41
  98. package/src/components/collapsible/config.ts +0 -27
  99. package/src/components/collapsible/index.tsx +0 -47
  100. package/src/components/context-menu/config.ts +0 -28
  101. package/src/components/context-menu/index.tsx +0 -271
  102. package/src/components/dialog/config.ts +0 -582
  103. package/src/components/dialog/index.tsx +0 -162
  104. package/src/components/direction/config.ts +0 -28
  105. package/src/components/direction/index.tsx +0 -27
  106. package/src/components/drawer/config.ts +0 -28
  107. package/src/components/drawer/index.tsx +0 -153
  108. package/src/components/dropdown/config.ts +0 -262
  109. package/src/components/dropdown/index.tsx +0 -280
  110. package/src/components/empty/config.ts +0 -38
  111. package/src/components/empty/index.tsx +0 -127
  112. package/src/components/field/config.ts +0 -40
  113. package/src/components/field/index.tsx +0 -252
  114. package/src/components/hover-card/config.ts +0 -27
  115. package/src/components/hover-card/index.tsx +0 -56
  116. package/src/components/input/config.ts +0 -64
  117. package/src/components/input/index.tsx +0 -33
  118. package/src/components/input-group/config.ts +0 -209
  119. package/src/components/input-group/index.tsx +0 -177
  120. package/src/components/item/config.ts +0 -52
  121. package/src/components/item/index.tsx +0 -215
  122. package/src/components/kbd/config.ts +0 -38
  123. package/src/components/kbd/index.tsx +0 -40
  124. package/src/components/label/config.ts +0 -72
  125. package/src/components/label/index.tsx +0 -32
  126. package/src/components/menubar/config.ts +0 -28
  127. package/src/components/menubar/index.tsx +0 -295
  128. package/src/components/native-select/config.ts +0 -40
  129. package/src/components/native-select/index.tsx +0 -40
  130. package/src/components/navigation-menu/config.ts +0 -32
  131. package/src/components/navigation-menu/index.tsx +0 -188
  132. package/src/components/popover/config.ts +0 -222
  133. package/src/components/popover/index.tsx +0 -60
  134. package/src/components/progress/config.ts +0 -42
  135. package/src/components/progress/index.tsx +0 -39
  136. package/src/components/radio-group/config.ts +0 -303
  137. package/src/components/radio-group/index.tsx +0 -58
  138. package/src/components/resizable/config.ts +0 -28
  139. package/src/components/resizable/index.tsx +0 -67
  140. package/src/components/scroll-area/config.ts +0 -17
  141. package/src/components/scroll-area/index.tsx +0 -70
  142. package/src/components/select/config.ts +0 -277
  143. package/src/components/select/index.tsx +0 -202
  144. package/src/components/separator/config.ts +0 -63
  145. package/src/components/separator/index.tsx +0 -38
  146. package/src/components/sheet/config.ts +0 -16
  147. package/src/components/sheet/index.tsx +0 -153
  148. package/src/components/skeleton/config.ts +0 -77
  149. package/src/components/skeleton/index.tsx +0 -22
  150. package/src/components/slider/config.ts +0 -46
  151. package/src/components/slider/index.tsx +0 -73
  152. package/src/components/sonner/config.ts +0 -27
  153. package/src/components/sonner/index.tsx +0 -37
  154. package/src/components/spinner/config.ts +0 -40
  155. package/src/components/spinner/index.tsx +0 -30
  156. package/src/components/switch/config.ts +0 -171
  157. package/src/components/switch/index.tsx +0 -40
  158. package/src/components/table/config.ts +0 -38
  159. package/src/components/table/index.tsx +0 -135
  160. package/src/components/tabs/config.ts +0 -335
  161. package/src/components/tabs/index.tsx +0 -82
  162. package/src/components/textarea/config.ts +0 -117
  163. package/src/components/textarea/index.tsx +0 -26
  164. package/src/components/toggle/config.ts +0 -67
  165. package/src/components/toggle/index.tsx +0 -59
  166. package/src/components/toggle-group/config.ts +0 -46
  167. package/src/components/toggle-group/index.tsx +0 -106
  168. package/src/components/tooltip/config.ts +0 -16
  169. package/src/components/tooltip/index.tsx +0 -75
  170. package/src/components/typography/config.ts +0 -38
  171. package/src/components/typography/index.tsx +0 -172
  172. package/src/index.ts +0 -291
  173. package/tsconfig.json +0 -9
  174. package/tsconfig.lint.json +0 -8
  175. package/tsup.config.ts +0 -55
@@ -0,0 +1,25 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+ import * as React from 'react';
4
+
5
+ /** Radix `Tooltip.Provider` wrapper (default `delayDuration` 0); wrap the app to share tooltip timing. */
6
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
7
+ /**
8
+ * Tooltip root built on Radix `Tooltip.Root`. Wraps itself in a
9
+ * {@link TooltipProvider} (default `delayDuration` 0), so it works standalone.
10
+ * Compose with {@link TooltipTrigger} and {@link TooltipContent} (portalled,
11
+ * animated, with an arrow).
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <Tooltip>
16
+ * <TooltipTrigger>Hover</TooltipTrigger>
17
+ * <TooltipContent>Details</TooltipContent>
18
+ * </Tooltip>
19
+ * ```
20
+ */
21
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
22
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
23
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
24
+
25
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,25 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+ import * as React from 'react';
4
+
5
+ /** Radix `Tooltip.Provider` wrapper (default `delayDuration` 0); wrap the app to share tooltip timing. */
6
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
7
+ /**
8
+ * Tooltip root built on Radix `Tooltip.Root`. Wraps itself in a
9
+ * {@link TooltipProvider} (default `delayDuration` 0), so it works standalone.
10
+ * Compose with {@link TooltipTrigger} and {@link TooltipContent} (portalled,
11
+ * animated, with an arrow).
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <Tooltip>
16
+ * <TooltipTrigger>Hover</TooltipTrigger>
17
+ * <TooltipContent>Details</TooltipContent>
18
+ * </Tooltip>
19
+ * ```
20
+ */
21
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
22
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
23
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
24
+
25
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import {
3
+ Tooltip,
4
+ TooltipContent,
5
+ TooltipProvider,
6
+ TooltipTrigger
7
+ } from "../../chunk-B5YCE3UP.js";
8
+ export {
9
+ Tooltip,
10
+ TooltipContent,
11
+ TooltipProvider,
12
+ TooltipTrigger
13
+ };
package/dist/index.cjs CHANGED
@@ -436,7 +436,7 @@ function AlertDialogContent({
436
436
  {
437
437
  "data-slot": "alert-dialog-content",
438
438
  className: (0, import_utils3.cn)(
439
- "bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
439
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
440
440
  className
441
441
  ),
442
442
  ...props
@@ -884,58 +884,70 @@ function ButtonGroupSeparator({
884
884
 
885
885
  // src/components/card/index.tsx
886
886
  var import_utils10 = require("@foundrykit/utils");
887
- var React = __toESM(require("react"), 1);
888
887
  var import_jsx_runtime11 = require("react/jsx-runtime");
889
- var Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
890
- "div",
891
- {
892
- ref,
893
- className: (0, import_utils10.cn)(
894
- "bg-card text-card-foreground rounded-xl border shadow",
895
- className
896
- ),
897
- ...props
898
- }
899
- ));
900
- Card.displayName = "Card";
901
- var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
902
- "div",
903
- {
904
- ref,
905
- className: (0, import_utils10.cn)("flex flex-col space-y-1.5 p-6", className),
906
- ...props
907
- }
908
- ));
909
- CardHeader.displayName = "CardHeader";
910
- var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
911
- "h3",
912
- {
913
- ref,
914
- className: (0, import_utils10.cn)("leading-none font-semibold tracking-tight", className),
915
- ...props
916
- }
917
- ));
918
- CardTitle.displayName = "CardTitle";
919
- var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
920
- "p",
921
- {
922
- ref,
923
- className: (0, import_utils10.cn)("text-muted-foreground text-sm", className),
924
- ...props
925
- }
926
- ));
927
- CardDescription.displayName = "CardDescription";
928
- var CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { ref, className: (0, import_utils10.cn)("p-6 pt-0", className), ...props }));
929
- CardContent.displayName = "CardContent";
930
- var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
931
- "div",
932
- {
933
- ref,
934
- className: (0, import_utils10.cn)("flex items-center p-6 pt-0", className),
935
- ...props
936
- }
937
- ));
938
- CardFooter.displayName = "CardFooter";
888
+ function Card({ className, ...props }) {
889
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
890
+ "div",
891
+ {
892
+ "data-slot": "card",
893
+ className: (0, import_utils10.cn)(
894
+ "bg-card text-card-foreground rounded-xl border shadow",
895
+ className
896
+ ),
897
+ ...props
898
+ }
899
+ );
900
+ }
901
+ function CardHeader({ className, ...props }) {
902
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
903
+ "div",
904
+ {
905
+ "data-slot": "card-header",
906
+ className: (0, import_utils10.cn)("flex flex-col space-y-1.5 p-6", className),
907
+ ...props
908
+ }
909
+ );
910
+ }
911
+ function CardTitle({ className, ...props }) {
912
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
913
+ "h3",
914
+ {
915
+ "data-slot": "card-title",
916
+ className: (0, import_utils10.cn)("leading-none font-semibold tracking-tight", className),
917
+ ...props
918
+ }
919
+ );
920
+ }
921
+ function CardDescription({ className, ...props }) {
922
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
923
+ "p",
924
+ {
925
+ "data-slot": "card-description",
926
+ className: (0, import_utils10.cn)("text-muted-foreground text-sm", className),
927
+ ...props
928
+ }
929
+ );
930
+ }
931
+ function CardContent({ className, ...props }) {
932
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
933
+ "div",
934
+ {
935
+ "data-slot": "card-content",
936
+ className: (0, import_utils10.cn)("p-6 pt-0", className),
937
+ ...props
938
+ }
939
+ );
940
+ }
941
+ function CardFooter({ className, ...props }) {
942
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
943
+ "div",
944
+ {
945
+ "data-slot": "card-footer",
946
+ className: (0, import_utils10.cn)("flex items-center p-6 pt-0", className),
947
+ ...props
948
+ }
949
+ );
950
+ }
939
951
 
940
952
  // src/components/checkbox/index.tsx
941
953
  var import_utils11 = require("@foundrykit/utils");
@@ -1071,7 +1083,7 @@ function ContextMenuSubContent({
1071
1083
  {
1072
1084
  "data-slot": "context-menu-sub-content",
1073
1085
  className: (0, import_utils12.cn)(
1074
- "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-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
1086
+ "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 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
1075
1087
  className
1076
1088
  ),
1077
1089
  ...props
@@ -1087,7 +1099,7 @@ function ContextMenuContent({
1087
1099
  {
1088
1100
  "data-slot": "context-menu-content",
1089
1101
  className: (0, import_utils12.cn)(
1090
- "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-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1102
+ "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 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1091
1103
  className
1092
1104
  ),
1093
1105
  ...props
@@ -1260,7 +1272,7 @@ function DialogContent({
1260
1272
  {
1261
1273
  "data-slot": "dialog-content",
1262
1274
  className: (0, import_utils13.cn)(
1263
- "bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
1275
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
1264
1276
  className
1265
1277
  ),
1266
1278
  ...props,
@@ -1496,7 +1508,7 @@ function DropdownMenuContent({
1496
1508
  "data-slot": "dropdown-menu-content",
1497
1509
  sideOffset,
1498
1510
  className: (0, import_utils15.cn)(
1499
- "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",
1511
+ "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 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe: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",
1500
1512
  className
1501
1513
  ),
1502
1514
  ...props
@@ -1667,7 +1679,7 @@ function DropdownMenuSubContent({
1667
1679
  {
1668
1680
  "data-slot": "dropdown-menu-sub-content",
1669
1681
  className: (0, import_utils15.cn)(
1670
- "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",
1682
+ "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 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe: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",
1671
1683
  className
1672
1684
  ),
1673
1685
  ...props
@@ -1775,7 +1787,7 @@ function EmptyContent({ className, ...props }) {
1775
1787
  var import_utils17 = require("@foundrykit/utils");
1776
1788
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
1777
1789
  var import_class_variance_authority6 = require("class-variance-authority");
1778
- var React2 = __toESM(require("react"), 1);
1790
+ var React = __toESM(require("react"), 1);
1779
1791
  var import_jsx_runtime20 = require("react/jsx-runtime");
1780
1792
  var fieldVariants = (0, import_class_variance_authority6.cva)(
1781
1793
  "group/field data-[invalid=true]:text-destructive flex w-full gap-3",
@@ -1953,7 +1965,7 @@ function FieldError({
1953
1965
  errors,
1954
1966
  ...props
1955
1967
  }) {
1956
- const content = React2.useMemo(() => {
1968
+ const content = React.useMemo(() => {
1957
1969
  if (children) {
1958
1970
  return children;
1959
1971
  }
@@ -2009,7 +2021,7 @@ function HoverCardContent({
2009
2021
  align,
2010
2022
  sideOffset,
2011
2023
  className: (0, import_utils18.cn)(
2012
- "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 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2024
+ "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 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2013
2025
  className
2014
2026
  ),
2015
2027
  ...props
@@ -2019,25 +2031,23 @@ function HoverCardContent({
2019
2031
 
2020
2032
  // src/components/input/index.tsx
2021
2033
  var import_utils19 = require("@foundrykit/utils");
2022
- var React3 = __toESM(require("react"), 1);
2023
2034
  var import_jsx_runtime22 = require("react/jsx-runtime");
2024
- var Input = React3.forwardRef(
2025
- ({ className, type, ...props }, ref) => {
2026
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2027
- "input",
2028
- {
2029
- type,
2030
- className: (0, import_utils19.cn)(
2031
- "border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
2032
- className
2033
- ),
2034
- ref,
2035
- ...props
2036
- }
2037
- );
2038
- }
2039
- );
2040
- Input.displayName = "Input";
2035
+ function Input({ className, type, ...props }) {
2036
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2037
+ "input",
2038
+ {
2039
+ type,
2040
+ "data-slot": "input",
2041
+ className: (0, import_utils19.cn)(
2042
+ "border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
2043
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
2044
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
2045
+ className
2046
+ ),
2047
+ ...props
2048
+ }
2049
+ );
2050
+ }
2041
2051
 
2042
2052
  // src/components/item/index.tsx
2043
2053
  var import_utils20 = require("@foundrykit/utils");
@@ -2336,7 +2346,7 @@ function MenubarContent({
2336
2346
  alignOffset,
2337
2347
  sideOffset,
2338
2348
  className: (0, import_utils23.cn)(
2339
- "bg-popover text-popover-foreground data-[state=open]:animate-in 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-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
2349
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
2340
2350
  className
2341
2351
  ),
2342
2352
  ...props
@@ -2491,7 +2501,7 @@ function MenubarSubContent({
2491
2501
  {
2492
2502
  "data-slot": "menubar-sub-content",
2493
2503
  className: (0, import_utils23.cn)(
2494
- "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-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
2504
+ "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 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
2495
2505
  className
2496
2506
  ),
2497
2507
  ...props
@@ -2620,8 +2630,8 @@ function NavigationMenuContent({
2620
2630
  {
2621
2631
  "data-slot": "navigation-menu-content",
2622
2632
  className: (0, import_utils25.cn)(
2623
- "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
2624
- "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
2633
+ "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out motion-safe:data-[motion=from-end]:slide-in-from-right-52 motion-safe:data-[motion=from-start]:slide-in-from-left-52 motion-safe:data-[motion=to-end]:slide-out-to-right-52 motion-safe:data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
2634
+ "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out motion-safe:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 motion-safe:group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200",
2625
2635
  className
2626
2636
  ),
2627
2637
  ...props
@@ -2643,7 +2653,7 @@ function NavigationMenuViewport({
2643
2653
  {
2644
2654
  "data-slot": "navigation-menu-viewport",
2645
2655
  className: (0, import_utils25.cn)(
2646
- "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
2656
+ "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
2647
2657
  className
2648
2658
  ),
2649
2659
  ...props
@@ -2713,7 +2723,7 @@ function PopoverContent({
2713
2723
  align,
2714
2724
  sideOffset,
2715
2725
  className: (0, import_utils26.cn)(
2716
- "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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2726
+ "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 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2717
2727
  className
2718
2728
  ),
2719
2729
  ...props
@@ -2954,7 +2964,7 @@ function SelectContent({
2954
2964
  {
2955
2965
  "data-slot": "select-content",
2956
2966
  className: (0, import_utils31.cn)(
2957
- "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 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-md border shadow-md",
2967
+ "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 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe: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-md border shadow-md",
2958
2968
  position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
2959
2969
  className
2960
2970
  ),
@@ -3112,10 +3122,10 @@ function SheetContent({
3112
3122
  "data-slot": "sheet-content",
3113
3123
  className: (0, import_utils32.cn)(
3114
3124
  "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
3115
- side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
3116
- side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
3117
- side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
3118
- side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
3125
+ side === "right" && "motion-safe:data-[state=closed]:slide-out-to-right motion-safe:data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
3126
+ side === "left" && "motion-safe:data-[state=closed]:slide-out-to-left motion-safe:data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
3127
+ side === "top" && "motion-safe:data-[state=closed]:slide-out-to-top motion-safe:data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
3128
+ side === "bottom" && "motion-safe:data-[state=closed]:slide-out-to-bottom motion-safe:data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
3119
3129
  className
3120
3130
  ),
3121
3131
  ...props,
@@ -3194,7 +3204,7 @@ function Skeleton({ className, ...props }) {
3194
3204
  // src/components/slider/index.tsx
3195
3205
  var import_utils34 = require("@foundrykit/utils");
3196
3206
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
3197
- var React4 = __toESM(require("react"), 1);
3207
+ var React2 = __toESM(require("react"), 1);
3198
3208
  var import_jsx_runtime37 = require("react/jsx-runtime");
3199
3209
  function Slider({
3200
3210
  className,
@@ -3202,9 +3212,10 @@ function Slider({
3202
3212
  value,
3203
3213
  min = 0,
3204
3214
  max = 100,
3215
+ "aria-label": ariaLabel,
3205
3216
  ...props
3206
3217
  }) {
3207
- const _values = React4.useMemo(
3218
+ const _values = React2.useMemo(
3208
3219
  () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
3209
3220
  [value, defaultValue, min, max]
3210
3221
  );
@@ -3244,6 +3255,7 @@ function Slider({
3244
3255
  SliderPrimitive.Thumb,
3245
3256
  {
3246
3257
  "data-slot": "slider-thumb",
3258
+ "aria-label": ariaLabel,
3247
3259
  className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
3248
3260
  },
3249
3261
  index
@@ -3555,7 +3567,7 @@ function Toggle({
3555
3567
  var import_utils41 = require("@foundrykit/utils");
3556
3568
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
3557
3569
  var import_class_variance_authority10 = require("class-variance-authority");
3558
- var React5 = __toESM(require("react"), 1);
3570
+ var React3 = __toESM(require("react"), 1);
3559
3571
  var import_jsx_runtime45 = require("react/jsx-runtime");
3560
3572
  var toggleGroupItemVariants = (0, import_class_variance_authority10.cva)(
3561
3573
  "hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-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 inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
@@ -3577,7 +3589,7 @@ var toggleGroupItemVariants = (0, import_class_variance_authority10.cva)(
3577
3589
  }
3578
3590
  }
3579
3591
  );
3580
- var ToggleGroupContext = React5.createContext({
3592
+ var ToggleGroupContext = React3.createContext({
3581
3593
  size: "default",
3582
3594
  variant: "default"
3583
3595
  });
@@ -3610,7 +3622,7 @@ function ToggleGroupItem({
3610
3622
  size,
3611
3623
  ...props
3612
3624
  }) {
3613
- const context = React5.useContext(ToggleGroupContext);
3625
+ const context = React3.useContext(ToggleGroupContext);
3614
3626
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3615
3627
  ToggleGroupPrimitive.Item,
3616
3628
  {
@@ -3670,7 +3682,7 @@ function TooltipContent({
3670
3682
  "data-slot": "tooltip-content",
3671
3683
  sideOffset,
3672
3684
  className: (0, import_utils42.cn)(
3673
- "bg-primary text-primary-foreground 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",
3685
+ "bg-primary text-primary-foreground animate-in fade-in-0 motion-safe:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe: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",
3674
3686
  className
3675
3687
  ),
3676
3688
  ...props,
package/dist/index.d.cts CHANGED
@@ -12,9 +12,7 @@ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }
12
12
  export { Checkbox } from './components/checkbox/index.cjs';
13
13
  export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/collapsible/index.cjs';
14
14
  export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './components/context-menu/index.cjs';
15
- import * as react_jsx_runtime from 'react/jsx-runtime';
16
- import * as DialogPrimitive from '@radix-ui/react-dialog';
17
- import * as React from 'react';
15
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from './components/dialog/index.cjs';
18
16
  export { DirectionProvider } from './components/direction/index.cjs';
19
17
  export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './components/drawer/index.cjs';
20
18
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/dropdown/index.cjs';
@@ -35,6 +33,7 @@ export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './componen
35
33
  export { ScrollArea, ScrollBar } from './components/scroll-area/index.cjs';
36
34
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './components/select/index.cjs';
37
35
  export { Separator } from './components/separator/index.cjs';
36
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from './components/sheet/index.cjs';
38
37
  export { Skeleton } from './components/skeleton/index.cjs';
39
38
  export { Slider } from './components/slider/index.cjs';
40
39
  export { Toaster } from './components/sonner/index.cjs';
@@ -43,21 +42,24 @@ export { Switch } from './components/switch/index.cjs';
43
42
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './components/table/index.cjs';
44
43
  export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/tabs/index.cjs';
45
44
  export { Textarea } from './components/textarea/index.cjs';
46
- import * as class_variance_authority_types from 'class-variance-authority/types';
47
- import * as TogglePrimitive from '@radix-ui/react-toggle';
48
- import { VariantProps } from 'class-variance-authority';
45
+ export { Toggle, toggleVariants } from './components/toggle/index.cjs';
49
46
  export { ToggleGroup, ToggleGroupItem } from './components/toggle-group/index.cjs';
50
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
47
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/tooltip/index.cjs';
51
48
  export { TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyInlineCode, TypographyLarge, TypographyLead, TypographyList, TypographyMuted, TypographyP, TypographySmall } from './components/typography/index.cjs';
52
49
  export { useDirection } from '@radix-ui/react-direction';
53
50
  export { toast } from 'sonner';
51
+ import 'react/jsx-runtime';
54
52
  import '@radix-ui/react-accordion';
53
+ import 'react';
54
+ import 'class-variance-authority/types';
55
+ import 'class-variance-authority';
55
56
  import '@radix-ui/react-alert-dialog';
56
57
  import '@radix-ui/react-aspect-ratio';
57
58
  import '@radix-ui/react-avatar';
58
59
  import '@radix-ui/react-checkbox';
59
60
  import '@radix-ui/react-collapsible';
60
61
  import '@radix-ui/react-context-menu';
62
+ import '@radix-ui/react-dialog';
61
63
  import 'vaul';
62
64
  import '@radix-ui/react-dropdown-menu';
63
65
  import '@radix-ui/react-label';
@@ -75,102 +77,6 @@ import '@radix-ui/react-slider';
75
77
  import 'lucide-react';
76
78
  import '@radix-ui/react-switch';
77
79
  import '@radix-ui/react-tabs';
80
+ import '@radix-ui/react-toggle';
78
81
  import '@radix-ui/react-toggle-group';
79
-
80
- /**
81
- * Modal dialog root built on Radix `Dialog.Root`. Compose with
82
- * {@link DialogTrigger}, {@link DialogContent} (which renders the overlay and an
83
- * optional close button), {@link DialogHeader}, {@link DialogTitle},
84
- * {@link DialogDescription} and {@link DialogFooter}.
85
- *
86
- * @example
87
- * ```tsx
88
- * <Dialog>
89
- * <DialogTrigger>Open</DialogTrigger>
90
- * <DialogContent>
91
- * <DialogHeader><DialogTitle>Title</DialogTitle></DialogHeader>
92
- * </DialogContent>
93
- * </Dialog>
94
- * ```
95
- */
96
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
97
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
98
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
99
- /**
100
- * Centered, animated dialog panel rendered in a portal over a dark overlay.
101
- * Set `showCloseButton={false}` to hide the built-in top-right close button.
102
- */
103
- declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
104
- showCloseButton?: boolean;
105
- }): react_jsx_runtime.JSX.Element;
106
- declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
107
- declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
108
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
109
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
110
-
111
- /**
112
- * Slide-in panel (drawer) built on the Radix Dialog primitive. Compose with
113
- * {@link SheetTrigger}, {@link SheetContent}, {@link SheetHeader},
114
- * {@link SheetTitle}, {@link SheetDescription} and {@link SheetFooter}.
115
- * {@link SheetContent} slides from a chosen `side` and includes a close button.
116
- *
117
- * @example
118
- * ```tsx
119
- * <Sheet>
120
- * <SheetTrigger>Open</SheetTrigger>
121
- * <SheetContent side="left">...</SheetContent>
122
- * </Sheet>
123
- * ```
124
- */
125
- declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
126
- declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
127
- declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
128
- /** Portalled sheet panel that slides in from `side` (`top`/`right`/`bottom`/`left`, default `right`) over an overlay, with a built-in close button. */
129
- declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
130
- side?: 'top' | 'right' | 'bottom' | 'left';
131
- }): react_jsx_runtime.JSX.Element;
132
- declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
133
- declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
134
- declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
135
- declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
136
-
137
- declare const toggleVariants: (props?: ({
138
- variant?: "default" | "outline" | null | undefined;
139
- size?: "default" | "sm" | "lg" | null | undefined;
140
- } & class_variance_authority_types.ClassProp) | undefined) => string;
141
- /**
142
- * Two-state toggle button built on Radix `Toggle.Root`, styled via
143
- * {@link toggleVariants} with a `variant` (default, outline) and `size`
144
- * (default, sm, lg). Control the pressed state with Radix
145
- * `pressed`/`onPressedChange`.
146
- *
147
- * @example
148
- * ```tsx
149
- * <Toggle variant="outline" pressed={bold} onPressedChange={setBold}>
150
- * <BoldIcon />
151
- * </Toggle>
152
- * ```
153
- */
154
- declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
155
-
156
- /** Radix `Tooltip.Provider` wrapper (default `delayDuration` 0); wrap the app to share tooltip timing. */
157
- declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
158
- /**
159
- * Tooltip root built on Radix `Tooltip.Root`. Wraps itself in a
160
- * {@link TooltipProvider} (default `delayDuration` 0), so it works standalone.
161
- * Compose with {@link TooltipTrigger} and {@link TooltipContent} (portalled,
162
- * animated, with an arrow).
163
- *
164
- * @example
165
- * ```tsx
166
- * <Tooltip>
167
- * <TooltipTrigger>Hover</TooltipTrigger>
168
- * <TooltipContent>Details</TooltipContent>
169
- * </Tooltip>
170
- * ```
171
- */
172
- declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
173
- declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
174
- declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
175
-
176
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, toggleVariants };
82
+ import '@radix-ui/react-tooltip';