@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
@@ -136,8 +136,8 @@ function NavigationMenuContent({
136
136
  {
137
137
  "data-slot": "navigation-menu-content",
138
138
  className: (0, import_utils.cn)(
139
- "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",
140
- "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",
139
+ "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",
140
+ "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",
141
141
  className
142
142
  ),
143
143
  ...props
@@ -159,7 +159,7 @@ function NavigationMenuViewport({
159
159
  {
160
160
  "data-slot": "navigation-menu-viewport",
161
161
  className: (0, import_utils.cn)(
162
- "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)]",
162
+ "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)]",
163
163
  className
164
164
  ),
165
165
  ...props
@@ -9,7 +9,7 @@ import {
9
9
  NavigationMenuTrigger,
10
10
  NavigationMenuViewport,
11
11
  navigationMenuTriggerStyle
12
- } from "../../chunk-2PXD7LAX.js";
12
+ } from "../../chunk-U7JIOR7A.js";
13
13
  export {
14
14
  NavigationMenu,
15
15
  NavigationMenuContent,
@@ -63,7 +63,7 @@ function PopoverContent({
63
63
  align,
64
64
  sideOffset,
65
65
  className: (0, import_utils.cn)(
66
- "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",
66
+ "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",
67
67
  className
68
68
  ),
69
69
  ...props
@@ -4,7 +4,7 @@ import {
4
4
  PopoverAnchor,
5
5
  PopoverContent,
6
6
  PopoverTrigger
7
- } from "../../chunk-EDKSYP4L.js";
7
+ } from "../../chunk-G2YBCHWR.js";
8
8
  export {
9
9
  Popover,
10
10
  PopoverAnchor,
@@ -96,7 +96,7 @@ function SelectContent({
96
96
  {
97
97
  "data-slot": "select-content",
98
98
  className: (0, import_utils.cn)(
99
- "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",
99
+ "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",
100
100
  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",
101
101
  className
102
102
  ),
@@ -10,7 +10,7 @@ import {
10
10
  SelectSeparator,
11
11
  SelectTrigger,
12
12
  SelectValue
13
- } from "../../chunk-5OSYIETI.js";
13
+ } from "../../chunk-FRIOQFPE.js";
14
14
  export {
15
15
  Select,
16
16
  SelectContent,
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/components/sheet/index.tsx
32
+ var sheet_exports = {};
33
+ __export(sheet_exports, {
34
+ Sheet: () => Sheet,
35
+ SheetClose: () => SheetClose,
36
+ SheetContent: () => SheetContent,
37
+ SheetDescription: () => SheetDescription,
38
+ SheetFooter: () => SheetFooter,
39
+ SheetHeader: () => SheetHeader,
40
+ SheetTitle: () => SheetTitle,
41
+ SheetTrigger: () => SheetTrigger
42
+ });
43
+ module.exports = __toCommonJS(sheet_exports);
44
+ var import_utils = require("@foundrykit/utils");
45
+ var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
46
+ var import_lucide_react = require("lucide-react");
47
+ var import_jsx_runtime = require("react/jsx-runtime");
48
+ function Sheet({ ...props }) {
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
50
+ }
51
+ function SheetTrigger({
52
+ ...props
53
+ }) {
54
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
55
+ }
56
+ function SheetClose({
57
+ ...props
58
+ }) {
59
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
60
+ }
61
+ function SheetPortal({
62
+ ...props
63
+ }) {
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
65
+ }
66
+ function SheetOverlay({
67
+ className,
68
+ ...props
69
+ }) {
70
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
+ SheetPrimitive.Overlay,
72
+ {
73
+ "data-slot": "sheet-overlay",
74
+ className: (0, import_utils.cn)(
75
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
76
+ className
77
+ ),
78
+ ...props
79
+ }
80
+ );
81
+ }
82
+ function SheetContent({
83
+ className,
84
+ children,
85
+ side = "right",
86
+ ...props
87
+ }) {
88
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetPortal, { children: [
89
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetOverlay, {}),
90
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
91
+ SheetPrimitive.Content,
92
+ {
93
+ "data-slot": "sheet-content",
94
+ className: (0, import_utils.cn)(
95
+ "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",
96
+ 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",
97
+ 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",
98
+ 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",
99
+ 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",
100
+ className
101
+ ),
102
+ ...props,
103
+ children: [
104
+ children,
105
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.XIcon, { className: "size-4" }),
107
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
108
+ ] })
109
+ ]
110
+ }
111
+ )
112
+ ] });
113
+ }
114
+ function SheetHeader({ className, ...props }) {
115
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
116
+ "div",
117
+ {
118
+ "data-slot": "sheet-header",
119
+ className: (0, import_utils.cn)("flex flex-col gap-1.5 p-4", className),
120
+ ...props
121
+ }
122
+ );
123
+ }
124
+ function SheetFooter({ className, ...props }) {
125
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
126
+ "div",
127
+ {
128
+ "data-slot": "sheet-footer",
129
+ className: (0, import_utils.cn)("mt-auto flex flex-col gap-2 p-4", className),
130
+ ...props
131
+ }
132
+ );
133
+ }
134
+ function SheetTitle({
135
+ className,
136
+ ...props
137
+ }) {
138
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
139
+ SheetPrimitive.Title,
140
+ {
141
+ "data-slot": "sheet-title",
142
+ className: (0, import_utils.cn)("text-foreground font-semibold", className),
143
+ ...props
144
+ }
145
+ );
146
+ }
147
+ function SheetDescription({
148
+ className,
149
+ ...props
150
+ }) {
151
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
152
+ SheetPrimitive.Description,
153
+ {
154
+ "data-slot": "sheet-description",
155
+ className: (0, import_utils.cn)("text-muted-foreground text-sm", className),
156
+ ...props
157
+ }
158
+ );
159
+ }
160
+ // Annotate the CommonJS export names for ESM import in node:
161
+ 0 && (module.exports = {
162
+ Sheet,
163
+ SheetClose,
164
+ SheetContent,
165
+ SheetDescription,
166
+ SheetFooter,
167
+ SheetHeader,
168
+ SheetTitle,
169
+ SheetTrigger
170
+ });
@@ -0,0 +1,31 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ import * as React from 'react';
4
+
5
+ /**
6
+ * Slide-in panel (drawer) built on the Radix Dialog primitive. Compose with
7
+ * {@link SheetTrigger}, {@link SheetContent}, {@link SheetHeader},
8
+ * {@link SheetTitle}, {@link SheetDescription} and {@link SheetFooter}.
9
+ * {@link SheetContent} slides from a chosen `side` and includes a close button.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <Sheet>
14
+ * <SheetTrigger>Open</SheetTrigger>
15
+ * <SheetContent side="left">...</SheetContent>
16
+ * </Sheet>
17
+ * ```
18
+ */
19
+ declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
20
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
21
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
22
+ /** Portalled sheet panel that slides in from `side` (`top`/`right`/`bottom`/`left`, default `right`) over an overlay, with a built-in close button. */
23
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
24
+ side?: 'top' | 'right' | 'bottom' | 'left';
25
+ }): react_jsx_runtime.JSX.Element;
26
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
27
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
28
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
29
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
30
+
31
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
@@ -0,0 +1,31 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ import * as React from 'react';
4
+
5
+ /**
6
+ * Slide-in panel (drawer) built on the Radix Dialog primitive. Compose with
7
+ * {@link SheetTrigger}, {@link SheetContent}, {@link SheetHeader},
8
+ * {@link SheetTitle}, {@link SheetDescription} and {@link SheetFooter}.
9
+ * {@link SheetContent} slides from a chosen `side` and includes a close button.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <Sheet>
14
+ * <SheetTrigger>Open</SheetTrigger>
15
+ * <SheetContent side="left">...</SheetContent>
16
+ * </Sheet>
17
+ * ```
18
+ */
19
+ declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
20
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
21
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
22
+ /** Portalled sheet panel that slides in from `side` (`top`/`right`/`bottom`/`left`, default `right`) over an overlay, with a built-in close button. */
23
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
24
+ side?: 'top' | 'right' | 'bottom' | 'left';
25
+ }): react_jsx_runtime.JSX.Element;
26
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
27
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
28
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
29
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
30
+
31
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import {
3
+ Sheet,
4
+ SheetClose,
5
+ SheetContent,
6
+ SheetDescription,
7
+ SheetFooter,
8
+ SheetHeader,
9
+ SheetTitle,
10
+ SheetTrigger
11
+ } from "../../chunk-3NQR7JZR.js";
12
+ export {
13
+ Sheet,
14
+ SheetClose,
15
+ SheetContent,
16
+ SheetDescription,
17
+ SheetFooter,
18
+ SheetHeader,
19
+ SheetTitle,
20
+ SheetTrigger
21
+ };
@@ -44,6 +44,7 @@ function Slider({
44
44
  value,
45
45
  min = 0,
46
46
  max = 100,
47
+ "aria-label": ariaLabel,
47
48
  ...props
48
49
  }) {
49
50
  const _values = React.useMemo(
@@ -86,6 +87,7 @@ function Slider({
86
87
  SliderPrimitive.Thumb,
87
88
  {
88
89
  "data-slot": "slider-thumb",
90
+ "aria-label": ariaLabel,
89
91
  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"
90
92
  },
91
93
  index
@@ -5,7 +5,8 @@ import * as React from 'react';
5
5
  /**
6
6
  * Slider built on Radix `Slider.Root`. Supports single or multiple thumbs by
7
7
  * passing an array to `value`/`defaultValue`. Works horizontally or vertically
8
- * via the `orientation` prop.
8
+ * via the `orientation` prop. `aria-label` names each thumb (the focusable
9
+ * `role="slider"` element), not the root.
9
10
  *
10
11
  * @example
11
12
  * ```tsx
@@ -13,6 +14,6 @@ import * as React from 'react';
13
14
  * <Slider defaultValue={[25, 75]} max={100} step={1} />
14
15
  * ```
15
16
  */
16
- declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
17
+ declare function Slider({ className, defaultValue, value, min, max, 'aria-label': ariaLabel, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
17
18
 
18
19
  export { Slider };
@@ -5,7 +5,8 @@ import * as React from 'react';
5
5
  /**
6
6
  * Slider built on Radix `Slider.Root`. Supports single or multiple thumbs by
7
7
  * passing an array to `value`/`defaultValue`. Works horizontally or vertically
8
- * via the `orientation` prop.
8
+ * via the `orientation` prop. `aria-label` names each thumb (the focusable
9
+ * `role="slider"` element), not the root.
9
10
  *
10
11
  * @example
11
12
  * ```tsx
@@ -13,6 +14,6 @@ import * as React from 'react';
13
14
  * <Slider defaultValue={[25, 75]} max={100} step={1} />
14
15
  * ```
15
16
  */
16
- declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
17
+ declare function Slider({ className, defaultValue, value, min, max, 'aria-label': ariaLabel, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
17
18
 
18
19
  export { Slider };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Slider
4
- } from "../../chunk-DKBMAFIR.js";
4
+ } from "../../chunk-GKCBSG2W.js";
5
5
  export {
6
6
  Slider
7
7
  };
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/components/toggle/index.tsx
32
+ var toggle_exports = {};
33
+ __export(toggle_exports, {
34
+ Toggle: () => Toggle,
35
+ toggleVariants: () => toggleVariants
36
+ });
37
+ module.exports = __toCommonJS(toggle_exports);
38
+ var import_utils = require("@foundrykit/utils");
39
+ var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
40
+ var import_class_variance_authority = require("class-variance-authority");
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var toggleVariants = (0, import_class_variance_authority.cva)(
43
+ "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",
44
+ {
45
+ variants: {
46
+ variant: {
47
+ default: "bg-transparent",
48
+ outline: "border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs"
49
+ },
50
+ size: {
51
+ default: "h-9 min-w-9 px-2",
52
+ sm: "h-8 min-w-8 px-1.5",
53
+ lg: "h-10 min-w-10 px-2.5"
54
+ }
55
+ },
56
+ defaultVariants: {
57
+ variant: "default",
58
+ size: "default"
59
+ }
60
+ }
61
+ );
62
+ function Toggle({
63
+ className,
64
+ variant,
65
+ size,
66
+ ...props
67
+ }) {
68
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
69
+ TogglePrimitive.Root,
70
+ {
71
+ "data-slot": "toggle",
72
+ className: (0, import_utils.cn)(toggleVariants({ variant, size, className })),
73
+ ...props
74
+ }
75
+ );
76
+ }
77
+ // Annotate the CommonJS export names for ESM import in node:
78
+ 0 && (module.exports = {
79
+ Toggle,
80
+ toggleVariants
81
+ });
@@ -0,0 +1,26 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import * as TogglePrimitive from '@radix-ui/react-toggle';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as React from 'react';
6
+
7
+ declare const toggleVariants: (props?: ({
8
+ variant?: "default" | "outline" | null | undefined;
9
+ size?: "default" | "sm" | "lg" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ /**
12
+ * Two-state toggle button built on Radix `Toggle.Root`, styled via
13
+ * {@link toggleVariants} with a `variant` (default, outline) and `size`
14
+ * (default, sm, lg). Control the pressed state with Radix
15
+ * `pressed`/`onPressedChange`.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <Toggle variant="outline" pressed={bold} onPressedChange={setBold}>
20
+ * <BoldIcon />
21
+ * </Toggle>
22
+ * ```
23
+ */
24
+ declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
25
+
26
+ export { Toggle, toggleVariants };
@@ -0,0 +1,26 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import * as TogglePrimitive from '@radix-ui/react-toggle';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as React from 'react';
6
+
7
+ declare const toggleVariants: (props?: ({
8
+ variant?: "default" | "outline" | null | undefined;
9
+ size?: "default" | "sm" | "lg" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ /**
12
+ * Two-state toggle button built on Radix `Toggle.Root`, styled via
13
+ * {@link toggleVariants} with a `variant` (default, outline) and `size`
14
+ * (default, sm, lg). Control the pressed state with Radix
15
+ * `pressed`/`onPressedChange`.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <Toggle variant="outline" pressed={bold} onPressedChange={setBold}>
20
+ * <BoldIcon />
21
+ * </Toggle>
22
+ * ```
23
+ */
24
+ declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
25
+
26
+ export { Toggle, toggleVariants };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import {
3
+ Toggle,
4
+ toggleVariants
5
+ } from "../../chunk-SIQHWNPH.js";
6
+ export {
7
+ Toggle,
8
+ toggleVariants
9
+ };
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/components/tooltip/index.tsx
32
+ var tooltip_exports = {};
33
+ __export(tooltip_exports, {
34
+ Tooltip: () => Tooltip,
35
+ TooltipContent: () => TooltipContent,
36
+ TooltipProvider: () => TooltipProvider,
37
+ TooltipTrigger: () => TooltipTrigger
38
+ });
39
+ module.exports = __toCommonJS(tooltip_exports);
40
+ var import_utils = require("@foundrykit/utils");
41
+ var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
42
+ var import_jsx_runtime = require("react/jsx-runtime");
43
+ function TooltipProvider({
44
+ delayDuration = 0,
45
+ ...props
46
+ }) {
47
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
48
+ TooltipPrimitive.Provider,
49
+ {
50
+ "data-slot": "tooltip-provider",
51
+ delayDuration,
52
+ ...props
53
+ }
54
+ );
55
+ }
56
+ function Tooltip({
57
+ ...props
58
+ }) {
59
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
60
+ }
61
+ function TooltipTrigger({
62
+ ...props
63
+ }) {
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
65
+ }
66
+ function TooltipContent({
67
+ className,
68
+ sideOffset = 0,
69
+ children,
70
+ ...props
71
+ }) {
72
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
73
+ TooltipPrimitive.Content,
74
+ {
75
+ "data-slot": "tooltip-content",
76
+ sideOffset,
77
+ className: (0, import_utils.cn)(
78
+ "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",
79
+ className
80
+ ),
81
+ ...props,
82
+ children: [
83
+ children,
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
85
+ ]
86
+ }
87
+ ) });
88
+ }
89
+ // Annotate the CommonJS export names for ESM import in node:
90
+ 0 && (module.exports = {
91
+ Tooltip,
92
+ TooltipContent,
93
+ TooltipProvider,
94
+ TooltipTrigger
95
+ });