@foundrykit/primitives 2.1.3 → 2.3.0

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 (196) hide show
  1. package/README.md +11 -0
  2. package/dist/{chunk-SEDTBIZW.js → chunk-OMPTY5WQ.js} +1 -1
  3. package/dist/components/accordion/index.js +60 -6
  4. package/dist/components/alert/index.js +62 -6
  5. package/dist/components/alert-dialog/index.js +142 -13
  6. package/dist/components/aspect-ratio/index.js +9 -3
  7. package/dist/components/avatar/index.js +50 -5
  8. package/dist/components/badge/index.js +37 -4
  9. package/dist/components/breadcrumb/index.js +95 -9
  10. package/dist/components/button/index.js +1 -1
  11. package/dist/components/button-group/index.js +74 -6
  12. package/dist/components/card/index.js +66 -8
  13. package/dist/components/checkbox/index.js +30 -3
  14. package/dist/components/collapsible/index.js +33 -7
  15. package/dist/components/context-menu/index.js +208 -17
  16. package/dist/components/dialog/index.js +126 -12
  17. package/dist/components/direction/index.js +10 -2
  18. package/dist/components/drawer/index.js +118 -12
  19. package/dist/components/dropdown/index.js +216 -17
  20. package/dist/components/empty/index.js +95 -9
  21. package/dist/components/field/index.js +211 -13
  22. package/dist/components/hover-card/index.js +35 -5
  23. package/dist/components/input-group/index.d.ts +1 -1
  24. package/dist/components/input-group/index.js +1 -1
  25. package/dist/components/item/index.js +178 -14
  26. package/dist/components/kbd/index.js +27 -4
  27. package/dist/components/label/index.js +21 -3
  28. package/dist/components/menubar/index.js +235 -18
  29. package/dist/components/native-select/index.js +25 -3
  30. package/dist/components/navigation-menu/index.js +161 -11
  31. package/dist/components/popover/index.js +40 -6
  32. package/dist/components/progress/index.js +30 -3
  33. package/dist/components/radio-group/index.js +43 -4
  34. package/dist/components/resizable/index.js +43 -5
  35. package/dist/components/scroll-area/index.js +58 -4
  36. package/dist/components/section/index.js +13 -3
  37. package/dist/components/select/index.js +159 -12
  38. package/dist/components/sheet/index.js +118 -10
  39. package/dist/components/skeleton/index.js +13 -3
  40. package/dist/components/slider/index.js +64 -3
  41. package/dist/components/sonner/index.js +21 -4
  42. package/dist/components/spinner/index.js +19 -3
  43. package/dist/components/switch/index.js +30 -3
  44. package/dist/components/table/index.js +105 -10
  45. package/dist/components/tabs/index.js +63 -6
  46. package/dist/components/toggle/index.js +41 -4
  47. package/dist/components/toggle-group/index.js +80 -4
  48. package/dist/components/tooltip/index.js +51 -6
  49. package/dist/components/typography/index.js +147 -14
  50. package/dist/index.d.ts +1 -0
  51. package/dist/index.js +221 -254
  52. package/package.json +3 -3
  53. package/dist/chunk-25N35Z5M.js +0 -42
  54. package/dist/chunk-2JOT4DV4.js +0 -66
  55. package/dist/chunk-2SBGU5XA.js +0 -233
  56. package/dist/chunk-2UG6OCGA.js +0 -75
  57. package/dist/chunk-3BAO7TAS.js +0 -105
  58. package/dist/chunk-3NQR7JZR.js +0 -128
  59. package/dist/chunk-3QUMCM5K.js +0 -225
  60. package/dist/chunk-3TZXV53R.js +0 -55
  61. package/dist/chunk-3UKWAM5M.js +0 -33
  62. package/dist/chunk-44I6VK3H.js +0 -105
  63. package/dist/chunk-67UXTT4O.js +0 -116
  64. package/dist/chunk-727ACUWN.js +0 -82
  65. package/dist/chunk-76APYFRN.js +0 -29
  66. package/dist/chunk-AJAAMJYH.js +0 -12
  67. package/dist/chunk-B5YCE3UP.js +0 -57
  68. package/dist/chunk-BIFBYERK.js +0 -69
  69. package/dist/chunk-DXZ4GUQO.js +0 -33
  70. package/dist/chunk-ED6T7ZZN.js +0 -130
  71. package/dist/chunk-EEAK2RWF.js +0 -23
  72. package/dist/chunk-F2TEA6ER.js +0 -138
  73. package/dist/chunk-FF5D53KL.js +0 -69
  74. package/dist/chunk-FRIOQFPE.js +0 -171
  75. package/dist/chunk-G2YBCHWR.js +0 -46
  76. package/dist/chunk-GKCBSG2W.js +0 -67
  77. package/dist/chunk-GPEL656S.js +0 -84
  78. package/dist/chunk-JKKCRFYB.js +0 -36
  79. package/dist/chunk-JTSIBZS4.js +0 -194
  80. package/dist/chunk-MCXSVXO4.js +0 -24
  81. package/dist/chunk-MMZJQ7RW.js +0 -33
  82. package/dist/chunk-MYIUX3DT.js +0 -62
  83. package/dist/chunk-P5KEJOBH.js +0 -155
  84. package/dist/chunk-PAO3DSEF.js +0 -48
  85. package/dist/chunk-PLLG76QJ.js +0 -32
  86. package/dist/chunk-SDYKJVXX.js +0 -253
  87. package/dist/chunk-SIQHWNPH.js +0 -45
  88. package/dist/chunk-SKR3J46C.js +0 -17
  89. package/dist/chunk-STRBREHN.js +0 -17
  90. package/dist/chunk-SUEPE6OX.js +0 -47
  91. package/dist/chunk-TA23RNS4.js +0 -162
  92. package/dist/chunk-TRXU4SOJ.js +0 -224
  93. package/dist/chunk-U7JIOR7A.js +0 -172
  94. package/dist/chunk-VPBVKBZ7.js +0 -25
  95. package/dist/chunk-W4XY3SNY.js +0 -40
  96. package/dist/chunk-YT2ZIMZI.js +0 -16
  97. package/dist/components/accordion/index.cjs +0 -104
  98. package/dist/components/accordion/index.d.cts +0 -25
  99. package/dist/components/alert/index.cjs +0 -96
  100. package/dist/components/alert/index.d.cts +0 -28
  101. package/dist/components/alert-dialog/index.cjs +0 -200
  102. package/dist/components/alert-dialog/index.d.cts +0 -42
  103. package/dist/components/aspect-ratio/index.cjs +0 -47
  104. package/dist/components/aspect-ratio/index.d.cts +0 -19
  105. package/dist/components/avatar/index.cjs +0 -92
  106. package/dist/components/avatar/index.d.cts +0 -24
  107. package/dist/components/badge/index.cjs +0 -67
  108. package/dist/components/badge/index.d.cts +0 -24
  109. package/dist/components/breadcrumb/index.cjs +0 -135
  110. package/dist/components/breadcrumb/index.d.cts +0 -33
  111. package/dist/components/button/index.cjs +0 -87
  112. package/dist/components/button/index.d.cts +0 -28
  113. package/dist/components/button-group/index.cjs +0 -142
  114. package/dist/components/button-group/index.d.cts +0 -33
  115. package/dist/components/card/index.cjs +0 -104
  116. package/dist/components/card/index.d.cts +0 -27
  117. package/dist/components/checkbox/index.cjs +0 -68
  118. package/dist/components/checkbox/index.d.cts +0 -17
  119. package/dist/components/collapsible/index.cjs +0 -73
  120. package/dist/components/collapsible/index.d.cts +0 -22
  121. package/dist/components/context-menu/index.cjs +0 -274
  122. package/dist/components/context-menu/index.d.cts +0 -48
  123. package/dist/components/dialog/index.cjs +0 -182
  124. package/dist/components/dialog/index.d.cts +0 -38
  125. package/dist/components/direction/index.cjs +0 -39
  126. package/dist/components/direction/index.d.cts +0 -20
  127. package/dist/components/drawer/index.cjs +0 -164
  128. package/dist/components/drawer/index.d.cts +0 -35
  129. package/dist/components/dropdown/index.cjs +0 -282
  130. package/dist/components/dropdown/index.d.cts +0 -52
  131. package/dist/components/empty/index.cjs +0 -135
  132. package/dist/components/empty/index.d.cts +0 -38
  133. package/dist/components/field/index.cjs +0 -269
  134. package/dist/components/field/index.d.cts +0 -42
  135. package/dist/components/hover-card/index.cjs +0 -77
  136. package/dist/components/hover-card/index.d.cts +0 -22
  137. package/dist/components/input/index.cjs +0 -47
  138. package/dist/components/input/index.d.cts +0 -17
  139. package/dist/components/input-group/index.cjs +0 -270
  140. package/dist/components/input-group/index.d.cts +0 -44
  141. package/dist/components/item/index.cjs +0 -262
  142. package/dist/components/item/index.d.cts +0 -47
  143. package/dist/components/kbd/index.cjs +0 -57
  144. package/dist/components/kbd/index.d.cts +0 -19
  145. package/dist/components/label/index.cjs +0 -59
  146. package/dist/components/label/index.d.cts +0 -16
  147. package/dist/components/menubar/index.cjs +0 -303
  148. package/dist/components/menubar/index.d.cts +0 -49
  149. package/dist/components/native-select/index.cjs +0 -53
  150. package/dist/components/native-select/index.d.cts +0 -19
  151. package/dist/components/navigation-menu/index.cjs +0 -215
  152. package/dist/components/navigation-menu/index.d.cts +0 -37
  153. package/dist/components/popover/index.cjs +0 -84
  154. package/dist/components/popover/index.d.cts +0 -23
  155. package/dist/components/progress/index.cjs +0 -68
  156. package/dist/components/progress/index.d.cts +0 -16
  157. package/dist/components/radio-group/index.cjs +0 -83
  158. package/dist/components/radio-group/index.d.cts +0 -22
  159. package/dist/components/resizable/index.cjs +0 -75
  160. package/dist/components/resizable/index.d.cts +0 -25
  161. package/dist/components/scroll-area/index.cjs +0 -98
  162. package/dist/components/scroll-area/index.d.cts +0 -21
  163. package/dist/components/section/index.cjs +0 -41
  164. package/dist/components/section/index.d.cts +0 -27
  165. package/dist/components/select/index.cjs +0 -215
  166. package/dist/components/select/index.d.cts +0 -36
  167. package/dist/components/separator/index.cjs +0 -63
  168. package/dist/components/separator/index.d.cts +0 -18
  169. package/dist/components/sheet/index.cjs +0 -170
  170. package/dist/components/sheet/index.d.cts +0 -31
  171. package/dist/components/skeleton/index.cjs +0 -41
  172. package/dist/components/skeleton/index.d.cts +0 -14
  173. package/dist/components/slider/index.cjs +0 -102
  174. package/dist/components/slider/index.d.cts +0 -19
  175. package/dist/components/sonner/index.cjs +0 -51
  176. package/dist/components/sonner/index.d.cts +0 -18
  177. package/dist/components/spinner/index.cjs +0 -47
  178. package/dist/components/spinner/index.d.cts +0 -17
  179. package/dist/components/switch/index.cjs +0 -68
  180. package/dist/components/switch/index.d.cts +0 -17
  181. package/dist/components/table/index.cjs +0 -147
  182. package/dist/components/table/index.d.cts +0 -35
  183. package/dist/components/tabs/index.cjs +0 -107
  184. package/dist/components/tabs/index.d.cts +0 -27
  185. package/dist/components/textarea/index.cjs +0 -44
  186. package/dist/components/textarea/index.d.cts +0 -15
  187. package/dist/components/toggle/index.cjs +0 -81
  188. package/dist/components/toggle/index.d.cts +0 -26
  189. package/dist/components/toggle-group/index.cjs +0 -120
  190. package/dist/components/toggle-group/index.d.cts +0 -27
  191. package/dist/components/tooltip/index.cjs +0 -95
  192. package/dist/components/tooltip/index.d.cts +0 -25
  193. package/dist/components/typography/index.cjs +0 -197
  194. package/dist/components/typography/index.d.cts +0 -28
  195. package/dist/index.cjs +0 -4094
  196. package/dist/index.d.cts +0 -83
@@ -1,215 +0,0 @@
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/navigation-menu/index.tsx
32
- var navigation_menu_exports = {};
33
- __export(navigation_menu_exports, {
34
- NavigationMenu: () => NavigationMenu,
35
- NavigationMenuContent: () => NavigationMenuContent,
36
- NavigationMenuIndicator: () => NavigationMenuIndicator,
37
- NavigationMenuItem: () => NavigationMenuItem,
38
- NavigationMenuLink: () => NavigationMenuLink,
39
- NavigationMenuList: () => NavigationMenuList,
40
- NavigationMenuTrigger: () => NavigationMenuTrigger,
41
- NavigationMenuViewport: () => NavigationMenuViewport,
42
- navigationMenuTriggerStyle: () => navigationMenuTriggerStyle
43
- });
44
- module.exports = __toCommonJS(navigation_menu_exports);
45
- var import_utils = require("@foundrykit/utils");
46
- var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
47
- var import_class_variance_authority = require("class-variance-authority");
48
- var import_lucide_react = require("lucide-react");
49
- var import_jsx_runtime = require("react/jsx-runtime");
50
- function NavigationMenu({
51
- className,
52
- children,
53
- viewport = true,
54
- ...props
55
- }) {
56
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
57
- NavigationMenuPrimitive.Root,
58
- {
59
- "data-slot": "navigation-menu",
60
- "data-viewport": viewport,
61
- className: (0, import_utils.cn)(
62
- "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
63
- className
64
- ),
65
- ...props,
66
- children: [
67
- children,
68
- viewport && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NavigationMenuViewport, {})
69
- ]
70
- }
71
- );
72
- }
73
- function NavigationMenuList({
74
- className,
75
- ...props
76
- }) {
77
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
78
- NavigationMenuPrimitive.List,
79
- {
80
- "data-slot": "navigation-menu-list",
81
- className: (0, import_utils.cn)(
82
- "group flex flex-1 list-none items-center justify-center gap-1",
83
- className
84
- ),
85
- ...props
86
- }
87
- );
88
- }
89
- function NavigationMenuItem({
90
- className,
91
- ...props
92
- }) {
93
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
94
- NavigationMenuPrimitive.Item,
95
- {
96
- "data-slot": "navigation-menu-item",
97
- className: (0, import_utils.cn)("relative", className),
98
- ...props
99
- }
100
- );
101
- }
102
- var navigationMenuTriggerStyle = (0, import_class_variance_authority.cva)(
103
- "group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50"
104
- );
105
- function NavigationMenuTrigger({
106
- className,
107
- children,
108
- ...props
109
- }) {
110
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
111
- NavigationMenuPrimitive.Trigger,
112
- {
113
- "data-slot": "navigation-menu-trigger",
114
- className: (0, import_utils.cn)(navigationMenuTriggerStyle(), "group", className),
115
- ...props,
116
- children: [
117
- children,
118
- " ",
119
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
120
- import_lucide_react.ChevronDownIcon,
121
- {
122
- className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
123
- "aria-hidden": "true"
124
- }
125
- )
126
- ]
127
- }
128
- );
129
- }
130
- function NavigationMenuContent({
131
- className,
132
- ...props
133
- }) {
134
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
135
- NavigationMenuPrimitive.Content,
136
- {
137
- "data-slot": "navigation-menu-content",
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 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
- className
142
- ),
143
- ...props
144
- }
145
- );
146
- }
147
- function NavigationMenuViewport({
148
- className,
149
- ...props
150
- }) {
151
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
152
- "div",
153
- {
154
- className: (0, import_utils.cn)(
155
- "absolute top-full left-0 isolate z-50 flex justify-center"
156
- ),
157
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
158
- NavigationMenuPrimitive.Viewport,
159
- {
160
- "data-slot": "navigation-menu-viewport",
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 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
- className
164
- ),
165
- ...props
166
- }
167
- )
168
- }
169
- );
170
- }
171
- function NavigationMenuLink({
172
- className,
173
- ...props
174
- }) {
175
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
176
- NavigationMenuPrimitive.Link,
177
- {
178
- "data-slot": "navigation-menu-link",
179
- className: (0, import_utils.cn)(
180
- "data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
181
- className
182
- ),
183
- ...props
184
- }
185
- );
186
- }
187
- function NavigationMenuIndicator({
188
- className,
189
- ...props
190
- }) {
191
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
192
- NavigationMenuPrimitive.Indicator,
193
- {
194
- "data-slot": "navigation-menu-indicator",
195
- className: (0, import_utils.cn)(
196
- "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
197
- className
198
- ),
199
- ...props,
200
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "bg-border relative top-[60%] size-2 rotate-45 rounded-tl-sm shadow-md" })
201
- }
202
- );
203
- }
204
- // Annotate the CommonJS export names for ESM import in node:
205
- 0 && (module.exports = {
206
- NavigationMenu,
207
- NavigationMenuContent,
208
- NavigationMenuIndicator,
209
- NavigationMenuItem,
210
- NavigationMenuLink,
211
- NavigationMenuList,
212
- NavigationMenuTrigger,
213
- NavigationMenuViewport,
214
- navigationMenuTriggerStyle
215
- });
@@ -1,37 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
4
- import * as React from 'react';
5
-
6
- /**
7
- * Navigation menu built on Radix `NavigationMenu.Root`. Compose with
8
- * {@link NavigationMenuList}, {@link NavigationMenuItem},
9
- * {@link NavigationMenuTrigger}, {@link NavigationMenuContent} and
10
- * {@link NavigationMenuLink}. Use {@link navigationMenuTriggerStyle} to style
11
- * link triggers so they match menu triggers.
12
- *
13
- * @example
14
- * ```tsx
15
- * <NavigationMenu>
16
- * <NavigationMenuList>
17
- * <NavigationMenuItem>
18
- * <NavigationMenuTrigger>Products</NavigationMenuTrigger>
19
- * <NavigationMenuContent>...</NavigationMenuContent>
20
- * </NavigationMenuItem>
21
- * </NavigationMenuList>
22
- * </NavigationMenu>
23
- * ```
24
- */
25
- declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
26
- viewport?: boolean;
27
- }): react_jsx_runtime.JSX.Element;
28
- declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): react_jsx_runtime.JSX.Element;
29
- declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): react_jsx_runtime.JSX.Element;
30
- declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
31
- declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
32
- declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
33
- declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): react_jsx_runtime.JSX.Element;
34
- declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime.JSX.Element;
35
- declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime.JSX.Element;
36
-
37
- export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
@@ -1,84 +0,0 @@
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/popover/index.tsx
32
- var popover_exports = {};
33
- __export(popover_exports, {
34
- Popover: () => Popover,
35
- PopoverAnchor: () => PopoverAnchor,
36
- PopoverContent: () => PopoverContent,
37
- PopoverTrigger: () => PopoverTrigger
38
- });
39
- module.exports = __toCommonJS(popover_exports);
40
- var import_utils = require("@foundrykit/utils");
41
- var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
42
- var import_jsx_runtime = require("react/jsx-runtime");
43
- function Popover({
44
- ...props
45
- }) {
46
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
47
- }
48
- function PopoverTrigger({
49
- ...props
50
- }) {
51
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
52
- }
53
- function PopoverContent({
54
- className,
55
- align = "center",
56
- sideOffset = 4,
57
- ...props
58
- }) {
59
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
- PopoverPrimitive.Content,
61
- {
62
- "data-slot": "popover-content",
63
- align,
64
- sideOffset,
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 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
- className
68
- ),
69
- ...props
70
- }
71
- ) });
72
- }
73
- function PopoverAnchor({
74
- ...props
75
- }) {
76
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
77
- }
78
- // Annotate the CommonJS export names for ESM import in node:
79
- 0 && (module.exports = {
80
- Popover,
81
- PopoverAnchor,
82
- PopoverContent,
83
- PopoverTrigger
84
- });
@@ -1,23 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as PopoverPrimitive from '@radix-ui/react-popover';
3
- import * as React from 'react';
4
-
5
- /**
6
- * Popover root built on Radix `Popover.Root`. Compose with
7
- * {@link PopoverTrigger}, {@link PopoverContent} (portalled, animated floating
8
- * panel) and optionally {@link PopoverAnchor} to position against a custom element.
9
- *
10
- * @example
11
- * ```tsx
12
- * <Popover>
13
- * <PopoverTrigger>Open</PopoverTrigger>
14
- * <PopoverContent>Content</PopoverContent>
15
- * </Popover>
16
- * ```
17
- */
18
- declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
19
- declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
20
- declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
21
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
22
-
23
- export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
@@ -1,68 +0,0 @@
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/progress/index.tsx
32
- var progress_exports = {};
33
- __export(progress_exports, {
34
- Progress: () => Progress
35
- });
36
- module.exports = __toCommonJS(progress_exports);
37
- var import_utils = require("@foundrykit/utils");
38
- var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
39
- var import_jsx_runtime = require("react/jsx-runtime");
40
- function Progress({
41
- className,
42
- value,
43
- ...props
44
- }) {
45
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
46
- ProgressPrimitive.Root,
47
- {
48
- "data-slot": "progress",
49
- className: (0, import_utils.cn)(
50
- "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
51
- className
52
- ),
53
- ...props,
54
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
55
- ProgressPrimitive.Indicator,
56
- {
57
- "data-slot": "progress-indicator",
58
- className: "bg-primary h-full w-full flex-1 transition-all",
59
- style: { transform: `translateX(-${100 - (value || 0)}%)` }
60
- }
61
- )
62
- }
63
- );
64
- }
65
- // Annotate the CommonJS export names for ESM import in node:
66
- 0 && (module.exports = {
67
- Progress
68
- });
@@ -1,16 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as ProgressPrimitive from '@radix-ui/react-progress';
3
- import * as React from 'react';
4
-
5
- /**
6
- * Progress bar built on Radix `Progress.Root`. Pass `value` (0–100) to fill the
7
- * indicator; omit it for an indeterminate state.
8
- *
9
- * @example
10
- * ```tsx
11
- * <Progress value={66} />
12
- * ```
13
- */
14
- declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): react_jsx_runtime.JSX.Element;
15
-
16
- export { Progress };
@@ -1,83 +0,0 @@
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/radio-group/index.tsx
32
- var radio_group_exports = {};
33
- __export(radio_group_exports, {
34
- RadioGroup: () => RadioGroup,
35
- RadioGroupItem: () => RadioGroupItem
36
- });
37
- module.exports = __toCommonJS(radio_group_exports);
38
- var import_utils = require("@foundrykit/utils");
39
- var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
40
- var import_lucide_react = require("lucide-react");
41
- var import_jsx_runtime = require("react/jsx-runtime");
42
- function RadioGroup({
43
- className,
44
- ...props
45
- }) {
46
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
47
- RadioGroupPrimitive.Root,
48
- {
49
- "data-slot": "radio-group",
50
- className: (0, import_utils.cn)("grid gap-3", className),
51
- ...props
52
- }
53
- );
54
- }
55
- function RadioGroupItem({
56
- className,
57
- ...props
58
- }) {
59
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
- RadioGroupPrimitive.Item,
61
- {
62
- "data-slot": "radio-group-item",
63
- className: (0, import_utils.cn)(
64
- "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
65
- className
66
- ),
67
- ...props,
68
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
69
- RadioGroupPrimitive.Indicator,
70
- {
71
- "data-slot": "radio-group-indicator",
72
- className: "relative flex items-center justify-center",
73
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
74
- }
75
- )
76
- }
77
- );
78
- }
79
- // Annotate the CommonJS export names for ESM import in node:
80
- 0 && (module.exports = {
81
- RadioGroup,
82
- RadioGroupItem
83
- });
@@ -1,22 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
- import * as React from 'react';
4
-
5
- /**
6
- * Group of mutually exclusive radio options built on Radix `RadioGroup.Root`,
7
- * laid out as a grid. Compose with {@link RadioGroupItem} for each option and
8
- * manage selection via the underlying Radix `value`/`onValueChange` props.
9
- *
10
- * @example
11
- * ```tsx
12
- * <RadioGroup value={plan} onValueChange={setPlan}>
13
- * <RadioGroupItem value="free" />
14
- * <RadioGroupItem value="pro" />
15
- * </RadioGroup>
16
- * ```
17
- */
18
- declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element;
19
- /** Single radio option (Radix `RadioGroup.Item`) showing a filled dot when selected. */
20
- declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element;
21
-
22
- export { RadioGroup, RadioGroupItem };
@@ -1,75 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/components/resizable/index.tsx
22
- var resizable_exports = {};
23
- __export(resizable_exports, {
24
- ResizableHandle: () => ResizableHandle,
25
- ResizablePanel: () => ResizablePanel,
26
- ResizablePanelGroup: () => ResizablePanelGroup
27
- });
28
- module.exports = __toCommonJS(resizable_exports);
29
- var import_utils = require("@foundrykit/utils");
30
- var import_lucide_react = require("lucide-react");
31
- var import_react_resizable_panels = require("react-resizable-panels");
32
- var import_jsx_runtime = require("react/jsx-runtime");
33
- function ResizablePanelGroup({
34
- className,
35
- ...props
36
- }) {
37
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
- import_react_resizable_panels.Group,
39
- {
40
- "data-slot": "resizable-panel-group",
41
- className: (0, import_utils.cn)(
42
- "flex h-full w-full aria-[orientation=vertical]:flex-col",
43
- className
44
- ),
45
- ...props
46
- }
47
- );
48
- }
49
- function ResizablePanel({ ...props }) {
50
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_resizable_panels.Panel, { "data-slot": "resizable-panel", ...props });
51
- }
52
- function ResizableHandle({
53
- withHandle,
54
- className,
55
- ...props
56
- }) {
57
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
58
- import_react_resizable_panels.Separator,
59
- {
60
- "data-slot": "resizable-handle",
61
- className: (0, import_utils.cn)(
62
- "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=vertical]:h-px aria-[orientation=vertical]:w-full aria-[orientation=vertical]:after:left-0 aria-[orientation=vertical]:after:h-1 aria-[orientation=vertical]:after:w-full aria-[orientation=vertical]:after:translate-x-0 aria-[orientation=vertical]:after:-translate-y-1/2",
63
- className
64
- ),
65
- ...props,
66
- children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.GripVerticalIcon, { className: "size-2.5" }) })
67
- }
68
- );
69
- }
70
- // Annotate the CommonJS export names for ESM import in node:
71
- 0 && (module.exports = {
72
- ResizableHandle,
73
- ResizablePanel,
74
- ResizablePanelGroup
75
- });
@@ -1,25 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { Separator, Panel, Group } from 'react-resizable-panels';
4
-
5
- /**
6
- * Resizable split-pane layout built on `react-resizable-panels`. Wrap
7
- * {@link ResizablePanel} children in a {@link ResizablePanelGroup} and place a
8
- * {@link ResizableHandle} between them to let users drag the divider.
9
- *
10
- * @example
11
- * ```tsx
12
- * <ResizablePanelGroup orientation="horizontal">
13
- * <ResizablePanel defaultSize={50}>One</ResizablePanel>
14
- * <ResizableHandle withHandle />
15
- * <ResizablePanel defaultSize={50}>Two</ResizablePanel>
16
- * </ResizablePanelGroup>
17
- * ```
18
- */
19
- declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof Group>): react_jsx_runtime.JSX.Element;
20
- declare function ResizablePanel({ ...props }: React.ComponentProps<typeof Panel>): react_jsx_runtime.JSX.Element;
21
- declare function ResizableHandle({ withHandle, className, ...props }: React.ComponentProps<typeof Separator> & {
22
- withHandle?: boolean;
23
- }): react_jsx_runtime.JSX.Element;
24
-
25
- export { ResizableHandle, ResizablePanel, ResizablePanelGroup };