@revealui/presentation 0.2.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +146 -42
  2. package/dist/Text-BWMs9_wn.js +196 -0
  3. package/dist/Text-BWMs9_wn.js.map +1 -0
  4. package/dist/client.d.ts +3 -1
  5. package/dist/client.d.ts.map +1 -1
  6. package/dist/client.js +89 -2938
  7. package/dist/client.js.map +1 -1
  8. package/dist/components/BuiltWithRevealUI.d.ts +13 -0
  9. package/dist/components/BuiltWithRevealUI.d.ts.map +1 -0
  10. package/dist/components/Button.d.ts +3 -1
  11. package/dist/components/Button.d.ts.map +1 -1
  12. package/dist/components/Card.d.ts +18 -6
  13. package/dist/components/Card.d.ts.map +1 -1
  14. package/dist/components/Checkbox.d.ts +6 -3
  15. package/dist/components/Checkbox.d.ts.map +1 -1
  16. package/dist/components/FormLabel.d.ts +5 -1
  17. package/dist/components/FormLabel.d.ts.map +1 -1
  18. package/dist/components/Input.d.ts +4 -2
  19. package/dist/components/Input.d.ts.map +1 -1
  20. package/dist/components/Label.d.ts +7 -2
  21. package/dist/components/Label.d.ts.map +1 -1
  22. package/dist/components/Pagination.d.ts +12 -23
  23. package/dist/components/Pagination.d.ts.map +1 -1
  24. package/dist/components/Select.d.ts +36 -13
  25. package/dist/components/Select.d.ts.map +1 -1
  26. package/dist/components/Textarea.d.ts +4 -2
  27. package/dist/components/Textarea.d.ts.map +1 -1
  28. package/dist/components/accordion.d.ts.map +1 -1
  29. package/dist/components/alert.d.ts.map +1 -1
  30. package/dist/components/auth-layout.d.ts +7 -2
  31. package/dist/components/auth-layout.d.ts.map +1 -1
  32. package/dist/components/avatar-group.d.ts.map +1 -1
  33. package/dist/components/avatar.d.ts +6 -5
  34. package/dist/components/avatar.d.ts.map +1 -1
  35. package/dist/components/badge.d.ts +5 -5
  36. package/dist/components/badge.d.ts.map +1 -1
  37. package/dist/components/breadcrumb.d.ts.map +1 -1
  38. package/dist/components/button-headless.d.ts +2 -1
  39. package/dist/components/button-headless.d.ts.map +1 -1
  40. package/dist/components/callout.d.ts.map +1 -1
  41. package/dist/components/checkbox-headless.d.ts.map +1 -1
  42. package/dist/components/code-block.d.ts.map +1 -1
  43. package/dist/components/combobox.d.ts.map +1 -1
  44. package/dist/components/dialog.d.ts.map +1 -1
  45. package/dist/components/drawer.d.ts.map +1 -1
  46. package/dist/components/dropdown.d.ts.map +1 -1
  47. package/dist/components/empty-state.d.ts.map +1 -1
  48. package/dist/components/fieldset.d.ts.map +1 -1
  49. package/dist/components/form-field.d.ts +23 -0
  50. package/dist/components/form-field.d.ts.map +1 -0
  51. package/dist/components/heading.d.ts.map +1 -1
  52. package/dist/components/index.d.ts +20 -1
  53. package/dist/components/index.d.ts.map +1 -1
  54. package/dist/components/input-headless.d.ts +5 -3
  55. package/dist/components/input-headless.d.ts.map +1 -1
  56. package/dist/components/kbd.d.ts.map +1 -1
  57. package/dist/components/link.d.ts +3 -2
  58. package/dist/components/link.d.ts.map +1 -1
  59. package/dist/components/listbox.d.ts.map +1 -1
  60. package/dist/components/navbar.d.ts +5 -5
  61. package/dist/components/navbar.d.ts.map +1 -1
  62. package/dist/components/pricing-table.d.ts +23 -0
  63. package/dist/components/pricing-table.d.ts.map +1 -0
  64. package/dist/components/progress.d.ts.map +1 -1
  65. package/dist/components/radio.d.ts.map +1 -1
  66. package/dist/components/rating.d.ts.map +1 -1
  67. package/dist/components/select-headless.d.ts +5 -2
  68. package/dist/components/select-headless.d.ts.map +1 -1
  69. package/dist/components/sidebar-layout.d.ts.map +1 -1
  70. package/dist/components/sidebar.d.ts +5 -5
  71. package/dist/components/sidebar.d.ts.map +1 -1
  72. package/dist/components/skeleton.d.ts.map +1 -1
  73. package/dist/components/slider.d.ts.map +1 -1
  74. package/dist/components/stacked-layout.d.ts.map +1 -1
  75. package/dist/components/stat.d.ts.map +1 -1
  76. package/dist/components/stepper.d.ts.map +1 -1
  77. package/dist/components/switch.d.ts.map +1 -1
  78. package/dist/components/table.d.ts.map +1 -1
  79. package/dist/components/tabs.d.ts.map +1 -1
  80. package/dist/components/text.d.ts.map +1 -1
  81. package/dist/components/textarea-headless.d.ts +5 -2
  82. package/dist/components/textarea-headless.d.ts.map +1 -1
  83. package/dist/components/timeline.d.ts.map +1 -1
  84. package/dist/components/toast.d.ts.map +1 -1
  85. package/dist/components/tooltip.d.ts +7 -5
  86. package/dist/components/tooltip.d.ts.map +1 -1
  87. package/dist/hooks/index.d.ts.map +1 -1
  88. package/dist/hooks/use-click-outside.d.ts.map +1 -1
  89. package/dist/hooks/use-close-context.d.ts.map +1 -1
  90. package/dist/hooks/use-controllable-state.d.ts.map +1 -1
  91. package/dist/hooks/use-data-interactive.d.ts.map +1 -1
  92. package/dist/hooks/use-field-context.d.ts.map +1 -1
  93. package/dist/hooks/use-focus-trap.d.ts.map +1 -1
  94. package/dist/hooks/use-layout-animation.d.ts.map +1 -1
  95. package/dist/hooks/use-popover.d.ts.map +1 -1
  96. package/dist/hooks/use-roving-tabindex.d.ts.map +1 -1
  97. package/dist/hooks/use-toggle.d.ts.map +1 -1
  98. package/dist/hooks/use-transition.d.ts.map +1 -1
  99. package/dist/hooks/use-type-ahead.d.ts.map +1 -1
  100. package/dist/index.d.ts +1 -0
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +67 -85
  103. package/dist/index.js.map +1 -1
  104. package/dist/primitives/Box.d.ts +3 -1
  105. package/dist/primitives/Box.d.ts.map +1 -1
  106. package/dist/primitives/Flex.d.ts +3 -1
  107. package/dist/primitives/Flex.d.ts.map +1 -1
  108. package/dist/primitives/Grid.d.ts +3 -1
  109. package/dist/primitives/Grid.d.ts.map +1 -1
  110. package/dist/primitives/Heading.d.ts +3 -1
  111. package/dist/primitives/Heading.d.ts.map +1 -1
  112. package/dist/primitives/Slot.d.ts +3 -1
  113. package/dist/primitives/Slot.d.ts.map +1 -1
  114. package/dist/primitives/Text.d.ts +3 -1
  115. package/dist/primitives/Text.d.ts.map +1 -1
  116. package/dist/primitives/index.d.ts.map +1 -1
  117. package/dist/server.d.ts +6 -1
  118. package/dist/server.d.ts.map +1 -1
  119. package/dist/server.js +3 -32
  120. package/dist/skeleton-Bb51IWbG.js +520 -0
  121. package/dist/skeleton-Bb51IWbG.js.map +1 -0
  122. package/dist/tokens.css +265 -0
  123. package/dist/tooltip-DZGP3hO_.js +3893 -0
  124. package/dist/tooltip-DZGP3hO_.js.map +1 -0
  125. package/dist/utils/cn.d.ts.map +1 -1
  126. package/dist/utils/index.d.ts.map +1 -1
  127. package/package.json +16 -12
  128. package/dist/Box-DDhRNK02.js +0 -45
  129. package/dist/Box-DDhRNK02.js.map +0 -1
  130. package/dist/Text-BIym7IhD.js +0 -425
  131. package/dist/Text-BIym7IhD.js.map +0 -1
  132. package/dist/server.js.map +0 -1
  133. package/dist/tooltip-oH4lAnkn.js +0 -2277
  134. package/dist/tooltip-oH4lAnkn.js.map +0 -1
@@ -0,0 +1,520 @@
1
+ import React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
4
+ function r(e) {
5
+ var t, f, n = "";
6
+ if ("string" == typeof e || "number" == typeof e) n += e;
7
+ else if ("object" == typeof e) if (Array.isArray(e)) {
8
+ var o = e.length;
9
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
10
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
11
+ return n;
12
+ }
13
+ function clsx() {
14
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
15
+ return n;
16
+ }
17
+ //#endregion
18
+ //#region ../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
19
+ /**
20
+ * Copyright 2022 Joe Bell. All rights reserved.
21
+ *
22
+ * This file is licensed to you under the Apache License, Version 2.0
23
+ * (the "License"); you may not use this file except in compliance with the
24
+ * License. You may obtain a copy of the License at
25
+ *
26
+ * http://www.apache.org/licenses/LICENSE-2.0
27
+ *
28
+ * Unless required by applicable law or agreed to in writing, software
29
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
30
+ * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
31
+ * License for the specific language governing permissions and limitations under
32
+ * the License.
33
+ */ var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
34
+ var cx = clsx;
35
+ var cva = (base, config) => (props) => {
36
+ var _config_compoundVariants;
37
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
38
+ const { variants, defaultVariants } = config;
39
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
40
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
41
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
42
+ if (variantProp === null) return null;
43
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
44
+ return variants[variant][variantKey];
45
+ });
46
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
47
+ let [key, value] = param;
48
+ if (value === void 0) return acc;
49
+ acc[key] = value;
50
+ return acc;
51
+ }, {});
52
+ return cx(base, getVariantClassNames, config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
53
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
54
+ return Object.entries(compoundVariantOptions).every((param) => {
55
+ let [key, value] = param;
56
+ return Array.isArray(value) ? value.includes({
57
+ ...defaultVariants,
58
+ ...propsWithoutUndefined
59
+ }[key]) : {
60
+ ...defaultVariants,
61
+ ...propsWithoutUndefined
62
+ }[key] === value;
63
+ }) ? [
64
+ ...acc,
65
+ cvClass,
66
+ cvClassName
67
+ ] : acc;
68
+ }, []), props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
69
+ };
70
+ //#endregion
71
+ //#region src/utils/cn.ts
72
+ function cn(...inputs) {
73
+ const classes = [];
74
+ for (const input of inputs.flat()) {
75
+ if (!input) continue;
76
+ if (typeof input === "string" || typeof input === "number") {
77
+ classes.push(String(input));
78
+ continue;
79
+ }
80
+ if (typeof input === "object") {
81
+ for (const [key, value] of Object.entries(input)) if (value) classes.push(key);
82
+ }
83
+ }
84
+ return classes.join(" ").trim();
85
+ }
86
+ //#endregion
87
+ //#region src/primitives/Slot.tsx
88
+ /**
89
+ * Slot component for polymorphic composition
90
+ * Allows components to merge props with child elements
91
+ */
92
+ function Slot({ children, asChild, ref, ...slotProps }) {
93
+ if (asChild && React.isValidElement(children)) return React.cloneElement(children, {
94
+ ...slotProps,
95
+ ...children.props,
96
+ ref
97
+ });
98
+ return /* @__PURE__ */ jsx("div", {
99
+ ...slotProps,
100
+ ref,
101
+ children
102
+ });
103
+ }
104
+ //#endregion
105
+ //#region src/components/Button.tsx
106
+ var buttonVariants = cva("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", {
107
+ defaultVariants: {
108
+ size: "default",
109
+ variant: "default"
110
+ },
111
+ variants: {
112
+ size: {
113
+ clear: "",
114
+ default: "h-10 px-4 py-2",
115
+ icon: "size-10",
116
+ lg: "h-11 rounded px-8",
117
+ sm: "h-9 rounded px-3"
118
+ },
119
+ variant: {
120
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
121
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
122
+ ghost: "hover:bg-card hover:text-accent-foreground",
123
+ link: "text-primary items-start justify-start underline-offset-4 hover:underline",
124
+ outline: "border border-border bg-background hover:bg-card hover:text-accent-foreground",
125
+ primary: "bg-primary text-primary-foreground hover:bg-primary/90",
126
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80"
127
+ }
128
+ }
129
+ });
130
+ function Button({ asChild = false, className, isLoading, size, variant, ref, children, disabled, ...props }) {
131
+ return /* @__PURE__ */ jsxs(asChild ? Slot : "button", {
132
+ className: cn(buttonVariants({
133
+ className,
134
+ size,
135
+ variant
136
+ })),
137
+ ref,
138
+ disabled: disabled || isLoading,
139
+ "aria-busy": isLoading || void 0,
140
+ ...props,
141
+ children: [isLoading && /* @__PURE__ */ jsxs("svg", {
142
+ className: "mr-2 size-4 animate-spin",
143
+ xmlns: "http://www.w3.org/2000/svg",
144
+ fill: "none",
145
+ viewBox: "0 0 24 24",
146
+ "aria-hidden": "true",
147
+ children: [/* @__PURE__ */ jsx("circle", {
148
+ className: "opacity-25",
149
+ cx: "12",
150
+ cy: "12",
151
+ r: "10",
152
+ stroke: "currentColor",
153
+ strokeWidth: "4"
154
+ }), /* @__PURE__ */ jsx("path", {
155
+ className: "opacity-75",
156
+ fill: "currentColor",
157
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
158
+ })]
159
+ }), children]
160
+ });
161
+ }
162
+ //#endregion
163
+ //#region src/components/breadcrumb.tsx
164
+ function Breadcrumb({ items, separator, className }) {
165
+ const sep = separator ?? /* @__PURE__ */ jsx("svg", {
166
+ "aria-hidden": "true",
167
+ viewBox: "0 0 16 16",
168
+ fill: "none",
169
+ className: "size-3.5 text-zinc-400",
170
+ children: /* @__PURE__ */ jsx("path", {
171
+ d: "M6 4l4 4-4 4",
172
+ stroke: "currentColor",
173
+ strokeWidth: "1.5",
174
+ strokeLinecap: "round",
175
+ strokeLinejoin: "round"
176
+ })
177
+ });
178
+ return /* @__PURE__ */ jsx("nav", {
179
+ "aria-label": "Breadcrumb",
180
+ children: /* @__PURE__ */ jsx("ol", {
181
+ className: clsx("flex flex-wrap items-center gap-1.5 text-sm", className),
182
+ children: items.map((item, index) => {
183
+ const isLast = index === items.length - 1;
184
+ return /* @__PURE__ */ jsxs("li", {
185
+ className: "flex items-center gap-1.5",
186
+ children: [isLast || !item.href ? /* @__PURE__ */ jsx("span", {
187
+ "aria-current": isLast ? "page" : void 0,
188
+ className: clsx(isLast ? "font-medium text-zinc-950 dark:text-white" : "text-zinc-500 dark:text-zinc-400"),
189
+ children: item.label
190
+ }) : /* @__PURE__ */ jsx("a", {
191
+ href: item.href,
192
+ className: "text-zinc-500 transition-colors hover:text-zinc-950 dark:text-zinc-400 dark:hover:text-white",
193
+ children: item.label
194
+ }), !isLast && sep]
195
+ }, index);
196
+ })
197
+ })
198
+ });
199
+ }
200
+ //#endregion
201
+ //#region src/components/empty-state.tsx
202
+ function EmptyState({ icon, title, description, action, className }) {
203
+ return /* @__PURE__ */ jsxs("div", {
204
+ className: clsx("flex flex-col items-center justify-center rounded-xl border border-dashed border-zinc-300 px-6 py-16 text-center dark:border-zinc-700", className),
205
+ children: [
206
+ icon && /* @__PURE__ */ jsx("div", {
207
+ className: "mb-4 flex size-12 items-center justify-center rounded-full bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400",
208
+ children: icon
209
+ }),
210
+ /* @__PURE__ */ jsx("h3", {
211
+ className: "text-sm font-semibold text-zinc-950 dark:text-white",
212
+ children: title
213
+ }),
214
+ description && /* @__PURE__ */ jsx("p", {
215
+ className: "mt-1 max-w-sm text-sm text-zinc-500 dark:text-zinc-400",
216
+ children: description
217
+ }),
218
+ action && /* @__PURE__ */ jsx("div", {
219
+ className: "mt-6",
220
+ children: action
221
+ })
222
+ ]
223
+ });
224
+ }
225
+ //#endregion
226
+ //#region src/components/Pagination.tsx
227
+ var ChevronLeft = ({ className }) => {
228
+ return /* @__PURE__ */ jsxs("svg", {
229
+ xmlns: "http://www.w3.org/2000/svg",
230
+ fill: "none",
231
+ viewBox: "0 0 24 24",
232
+ strokeWidth: 1.5,
233
+ stroke: "currentColor",
234
+ className: cn("size-6", className),
235
+ children: [/* @__PURE__ */ jsx("title", { children: "Previous page" }), /* @__PURE__ */ jsx("path", {
236
+ strokeLinecap: "round",
237
+ strokeLinejoin: "round",
238
+ d: "M15.75 19.5 8.25 12l7.5-7.5"
239
+ })]
240
+ });
241
+ };
242
+ var ChevronRight = ({ className }) => {
243
+ return /* @__PURE__ */ jsxs("svg", {
244
+ xmlns: "http://www.w3.org/2000/svg",
245
+ fill: "none",
246
+ viewBox: "0 0 24 24",
247
+ strokeWidth: 1.5,
248
+ stroke: "currentColor",
249
+ className: cn("size-6", className),
250
+ children: [/* @__PURE__ */ jsx("title", { children: "Next page" }), /* @__PURE__ */ jsx("path", {
251
+ strokeLinecap: "round",
252
+ strokeLinejoin: "round",
253
+ d: "m8.25 4.5 7.5 7.5-7.5 7.5"
254
+ })]
255
+ });
256
+ };
257
+ var MoreHorizontal = ({ className }) => {
258
+ return /* @__PURE__ */ jsxs("svg", {
259
+ xmlns: "http://www.w3.org/2000/svg",
260
+ fill: "none",
261
+ viewBox: "0 0 24 6",
262
+ className: cn("size-6", className),
263
+ children: [
264
+ /* @__PURE__ */ jsx("title", { children: "More pages" }),
265
+ /* @__PURE__ */ jsx("circle", {
266
+ cx: "6",
267
+ cy: "3",
268
+ r: "3",
269
+ fill: "currentColor"
270
+ }),
271
+ /* @__PURE__ */ jsx("circle", {
272
+ cx: "12",
273
+ cy: "3",
274
+ r: "3",
275
+ fill: "currentColor"
276
+ }),
277
+ /* @__PURE__ */ jsx("circle", {
278
+ cx: "18",
279
+ cy: "3",
280
+ r: "3",
281
+ fill: "currentColor"
282
+ })
283
+ ]
284
+ });
285
+ };
286
+ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx("nav", {
287
+ "aria-label": "pagination",
288
+ className: cn("mx-auto flex w-full justify-center", className),
289
+ ...props
290
+ });
291
+ function PaginationContent({ className, ref, ...props }) {
292
+ return /* @__PURE__ */ jsx("ul", {
293
+ className: cn("flex flex-row items-center gap-1", className),
294
+ ref,
295
+ ...props
296
+ });
297
+ }
298
+ function PaginationItem({ className, ref, ...props }) {
299
+ return /* @__PURE__ */ jsx("li", {
300
+ className: cn("", className),
301
+ ref,
302
+ ...props
303
+ });
304
+ }
305
+ var PaginationLink = ({ className, isActive, size = "icon", disabled, ...props }) => /* @__PURE__ */ jsx("button", {
306
+ "aria-current": isActive ? "page" : void 0,
307
+ "aria-disabled": disabled ? true : void 0,
308
+ disabled,
309
+ className: cn(buttonVariants({
310
+ size,
311
+ variant: isActive ? "outline" : "ghost"
312
+ }), className),
313
+ ...props
314
+ });
315
+ var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
316
+ "aria-label": "Go to previous page",
317
+ className: cn("gap-1 pl-2.5", className),
318
+ size: "default",
319
+ ...props,
320
+ children: [/* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" }), /* @__PURE__ */ jsx("span", { children: "Previous" })]
321
+ });
322
+ var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
323
+ "aria-label": "Go to next page",
324
+ className: cn("gap-1 pr-2.5", className),
325
+ size: "default",
326
+ ...props,
327
+ children: [/* @__PURE__ */ jsx("span", { children: "Next" }), /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })]
328
+ });
329
+ var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("span", {
330
+ "aria-hidden": true,
331
+ className: cn("flex h-9 w-9 items-center justify-center", className),
332
+ ...props,
333
+ children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
334
+ className: "sr-only",
335
+ children: "More pages"
336
+ })]
337
+ });
338
+ //#endregion
339
+ //#region src/components/pricing-table.tsx
340
+ function CheckIcon() {
341
+ return /* @__PURE__ */ jsx("svg", {
342
+ className: "h-4 w-4 shrink-0 text-blue-600 mt-0.5",
343
+ fill: "currentColor",
344
+ viewBox: "0 0 20 20",
345
+ "aria-hidden": "true",
346
+ children: /* @__PURE__ */ jsx("path", {
347
+ fillRule: "evenodd",
348
+ d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
349
+ clipRule: "evenodd"
350
+ })
351
+ });
352
+ }
353
+ function PricingTable({ tiers, currentTier, compact = false, onSelectTier, className }) {
354
+ if (compact) return /* @__PURE__ */ jsx("div", {
355
+ className: cn("flex flex-col gap-4 sm:flex-row", className),
356
+ children: tiers.map((tier) => /* @__PURE__ */ jsx(PricingCardCompact, {
357
+ tier,
358
+ isCurrent: tier.id === currentTier,
359
+ onSelect: onSelectTier
360
+ }, tier.id))
361
+ });
362
+ return /* @__PURE__ */ jsx("div", {
363
+ className: cn("grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4", tiers.length === 3 && "lg:grid-cols-3", tiers.length === 2 && "lg:grid-cols-2 max-w-3xl mx-auto", className),
364
+ children: tiers.map((tier) => /* @__PURE__ */ jsx(PricingCardFull, {
365
+ tier,
366
+ isCurrent: tier.id === currentTier,
367
+ onSelect: onSelectTier
368
+ }, tier.id))
369
+ });
370
+ }
371
+ function PricingCardFull({ tier, isCurrent, onSelect }) {
372
+ const isHighlighted = tier.highlighted && !isCurrent;
373
+ return /* @__PURE__ */ jsxs("div", {
374
+ className: cn("relative rounded-2xl bg-white p-8 shadow-lg dark:bg-zinc-900", isHighlighted ? "ring-2 ring-blue-600" : isCurrent ? "ring-2 ring-emerald-500" : "ring-1 ring-zinc-200 dark:ring-zinc-800"),
375
+ children: [
376
+ isHighlighted && /* @__PURE__ */ jsx("div", {
377
+ className: "absolute -top-4 left-0 right-0 mx-auto w-32 rounded-full bg-gradient-to-r from-blue-600 to-indigo-600 px-3 py-1.5 text-sm font-semibold text-white text-center shadow-lg",
378
+ children: "Most Popular"
379
+ }),
380
+ isCurrent && /* @__PURE__ */ jsx("div", {
381
+ className: "absolute -top-4 left-0 right-0 mx-auto w-32 rounded-full bg-emerald-600 px-3 py-1.5 text-sm font-semibold text-white text-center shadow-lg",
382
+ children: "Current Plan"
383
+ }),
384
+ /* @__PURE__ */ jsxs("div", {
385
+ className: "mb-8",
386
+ children: [
387
+ /* @__PURE__ */ jsx("h3", {
388
+ className: "text-xl font-bold tracking-tight text-zinc-900 dark:text-white",
389
+ children: tier.name
390
+ }),
391
+ /* @__PURE__ */ jsx("p", {
392
+ className: "mt-2 text-sm text-zinc-600 dark:text-zinc-400",
393
+ children: tier.description
394
+ }),
395
+ /* @__PURE__ */ jsxs("p", {
396
+ className: "mt-6 flex items-baseline gap-x-1",
397
+ children: [/* @__PURE__ */ jsx("span", {
398
+ className: "text-4xl font-bold tracking-tight text-zinc-900 dark:text-white",
399
+ children: tier.price ?? "—"
400
+ }), tier.period && /* @__PURE__ */ jsx("span", {
401
+ className: "text-sm text-zinc-600 dark:text-zinc-400",
402
+ children: tier.period
403
+ })]
404
+ })
405
+ ]
406
+ }),
407
+ /* @__PURE__ */ jsx("ul", {
408
+ className: "mb-8 space-y-3",
409
+ children: tier.features.map((feature) => /* @__PURE__ */ jsxs("li", {
410
+ className: "flex items-start gap-x-3",
411
+ children: [/* @__PURE__ */ jsx(CheckIcon, {}), /* @__PURE__ */ jsx("span", {
412
+ className: "text-sm text-zinc-600 dark:text-zinc-400",
413
+ children: feature
414
+ })]
415
+ }, feature))
416
+ }),
417
+ onSelect ? /* @__PURE__ */ jsx("button", {
418
+ type: "button",
419
+ onClick: () => onSelect(tier.id),
420
+ disabled: isCurrent,
421
+ className: cn("block w-full rounded-md px-6 py-3 text-center text-sm font-semibold transition-colors", isCurrent ? "cursor-default bg-emerald-50 text-emerald-700 dark:bg-emerald-900/20 dark:text-emerald-400" : isHighlighted ? "bg-blue-600 text-white hover:bg-blue-500 shadow-sm" : "bg-zinc-100 text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700"),
422
+ children: isCurrent ? "Current Plan" : tier.cta
423
+ }) : /* @__PURE__ */ jsx("a", {
424
+ href: tier.ctaHref,
425
+ className: cn("block w-full rounded-md px-6 py-3 text-center text-sm font-semibold transition-colors", isHighlighted ? "bg-blue-600 text-white hover:bg-blue-500 shadow-sm" : "bg-zinc-100 text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700"),
426
+ children: tier.cta
427
+ })
428
+ ]
429
+ });
430
+ }
431
+ function PricingCardCompact({ tier, isCurrent, onSelect }) {
432
+ return /* @__PURE__ */ jsxs("div", {
433
+ className: cn("flex-1 rounded-xl p-5 shadow-sm dark:bg-zinc-900", isCurrent ? "ring-2 ring-emerald-500 bg-emerald-50/50 dark:bg-emerald-900/10" : tier.highlighted ? "ring-2 ring-blue-600 bg-blue-50/50 dark:bg-blue-900/10" : "ring-1 ring-zinc-200 bg-white dark:ring-zinc-800"),
434
+ children: [
435
+ /* @__PURE__ */ jsxs("div", {
436
+ className: "flex items-baseline justify-between gap-2",
437
+ children: [/* @__PURE__ */ jsx("h4", {
438
+ className: "text-sm font-bold text-zinc-900 dark:text-white",
439
+ children: tier.name
440
+ }), isCurrent && /* @__PURE__ */ jsx("span", {
441
+ className: "rounded-full bg-emerald-100 px-2 py-0.5 text-xs font-medium text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400",
442
+ children: "Current"
443
+ })]
444
+ }),
445
+ /* @__PURE__ */ jsxs("p", {
446
+ className: "mt-1 flex items-baseline gap-x-1",
447
+ children: [/* @__PURE__ */ jsx("span", {
448
+ className: "text-2xl font-bold text-zinc-900 dark:text-white",
449
+ children: tier.price ?? "—"
450
+ }), tier.period && /* @__PURE__ */ jsx("span", {
451
+ className: "text-xs text-zinc-500 dark:text-zinc-400",
452
+ children: tier.period
453
+ })]
454
+ }),
455
+ /* @__PURE__ */ jsx("p", {
456
+ className: "mt-1 text-xs text-zinc-500 dark:text-zinc-400 line-clamp-2",
457
+ children: tier.description
458
+ }),
459
+ onSelect ? /* @__PURE__ */ jsx("button", {
460
+ type: "button",
461
+ onClick: () => onSelect(tier.id),
462
+ disabled: isCurrent,
463
+ className: cn("mt-3 block w-full rounded-md px-3 py-2 text-center text-xs font-semibold transition-colors", isCurrent ? "cursor-default bg-emerald-50 text-emerald-700 dark:bg-emerald-900/20 dark:text-emerald-400" : tier.highlighted ? "bg-blue-600 text-white hover:bg-blue-500" : "bg-zinc-100 text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700"),
464
+ children: isCurrent ? "Current" : tier.cta
465
+ }) : /* @__PURE__ */ jsx("a", {
466
+ href: tier.ctaHref,
467
+ className: cn("mt-3 block w-full rounded-md px-3 py-2 text-center text-xs font-semibold transition-colors", tier.highlighted ? "bg-blue-600 text-white hover:bg-blue-500" : "bg-zinc-100 text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700"),
468
+ children: tier.cta
469
+ })
470
+ ]
471
+ });
472
+ }
473
+ //#endregion
474
+ //#region src/primitives/Box.tsx
475
+ /**
476
+ * Box primitive - Basic container component
477
+ */
478
+ function Box({ as: Component = "div", className, ref, ...props }) {
479
+ return /* @__PURE__ */ jsx(Component, {
480
+ ref,
481
+ className: cn(className),
482
+ ...props
483
+ });
484
+ }
485
+ //#endregion
486
+ //#region src/components/skeleton.tsx
487
+ function Skeleton({ className, ...props }) {
488
+ return /* @__PURE__ */ jsx("div", {
489
+ "aria-hidden": "true",
490
+ ...props,
491
+ className: clsx("animate-pulse rounded-md bg-zinc-200 dark:bg-zinc-700", className)
492
+ });
493
+ }
494
+ function SkeletonText({ lines = 3, className }) {
495
+ return /* @__PURE__ */ jsx("div", {
496
+ className: clsx("space-y-2", className),
497
+ children: Array.from({ length: lines }).map((_, i) => {
498
+ return /* @__PURE__ */ jsx(Skeleton, { className: clsx("h-4", i === lines - 1 && lines > 1 ? "w-4/5" : "w-full") }, i);
499
+ })
500
+ });
501
+ }
502
+ function SkeletonCard({ className }) {
503
+ return /* @__PURE__ */ jsxs("div", {
504
+ className: clsx("rounded-xl border border-zinc-200 p-4 dark:border-zinc-700", className),
505
+ children: [/* @__PURE__ */ jsxs("div", {
506
+ className: "flex items-center gap-3",
507
+ children: [/* @__PURE__ */ jsx(Skeleton, { className: "size-10 rounded-full" }), /* @__PURE__ */ jsxs("div", {
508
+ className: "flex-1 space-y-2",
509
+ children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-1/3" }), /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-1/2" })]
510
+ })]
511
+ }), /* @__PURE__ */ jsx(SkeletonText, {
512
+ lines: 3,
513
+ className: "mt-4"
514
+ })]
515
+ });
516
+ }
517
+ //#endregion
518
+ export { Slot as _, PricingTable as a, clsx as b, PaginationEllipsis as c, PaginationNext as d, PaginationPrevious as f, buttonVariants as g, Button as h, Box as i, PaginationItem as l, Breadcrumb as m, SkeletonCard as n, Pagination as o, EmptyState as p, SkeletonText as r, PaginationContent as s, Skeleton as t, PaginationLink as u, cn as v, cva as y };
519
+
520
+ //# sourceMappingURL=skeleton-Bb51IWbG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton-Bb51IWbG.js","names":[],"sources":["../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs","../src/utils/cn.ts","../src/primitives/Slot.tsx","../src/components/Button.tsx","../src/components/breadcrumb.tsx","../src/components/empty-state.tsx","../src/components/Pagination.tsx","../src/components/pricing-table.tsx","../src/primitives/Box.tsx","../src/components/skeleton.tsx"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n","/**\n * Utility function for conditionally joining classNames together\n * Similar to clsx/classnames but simpler for Tailwind CSS usage\n */\ntype ClassValue = string | number | boolean | undefined | null | { [key: string]: boolean };\n\nexport function cn(...inputs: ClassValue[]): string {\n const classes: string[] = [];\n\n for (const input of inputs.flat()) {\n if (!input) continue;\n\n if (typeof input === 'string' || typeof input === 'number') {\n classes.push(String(input));\n continue;\n }\n\n if (typeof input === 'object') {\n for (const [key, value] of Object.entries(input)) {\n if (value) {\n classes.push(key);\n }\n }\n }\n }\n\n return classes.join(' ').trim();\n}\n","import React, { type Ref } from 'react';\n\nexport interface SlotProps extends React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n asChild?: boolean;\n ref?: React.Ref<HTMLElement>;\n}\n\n/**\n * Slot component for polymorphic composition\n * Allows components to merge props with child elements\n */\nfunction Slot({ children, asChild, ref, ...slotProps }: SlotProps) {\n if (asChild && React.isValidElement(children)) {\n return React.cloneElement(children, {\n ...slotProps,\n ...(children.props as Record<string, unknown>),\n ref,\n } as unknown as React.HTMLAttributes<HTMLElement>);\n }\n\n return (\n <div {...slotProps} ref={ref as Ref<HTMLDivElement>}>\n {children}\n </div>\n );\n}\n\nexport { Slot };\n","import { cva, type VariantProps } from 'class-variance-authority';\nimport type React from 'react';\nimport { Slot } from '../primitives/Slot.js';\nimport { cn } from '../utils/cn.js';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',\n {\n defaultVariants: {\n size: 'default',\n variant: 'default',\n },\n variants: {\n size: {\n clear: '',\n default: 'h-10 px-4 py-2',\n icon: 'size-10',\n lg: 'h-11 rounded px-8',\n sm: 'h-9 rounded px-3',\n },\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n ghost: 'hover:bg-card hover:text-accent-foreground',\n link: 'text-primary items-start justify-start underline-offset-4 hover:underline',\n outline: 'border border-border bg-background hover:bg-card hover:text-accent-foreground',\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n },\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n isLoading?: boolean;\n ref?: React.Ref<HTMLButtonElement>;\n}\n\nfunction Button({\n asChild = false,\n className,\n isLoading,\n size,\n variant,\n ref,\n children,\n disabled,\n ...props\n}: ButtonProps) {\n const Comp = asChild ? Slot : 'button';\n return (\n <Comp\n className={cn(buttonVariants({ className, size, variant }))}\n ref={ref}\n disabled={disabled || isLoading}\n aria-busy={isLoading || undefined}\n {...props}\n >\n {isLoading && (\n <svg\n className=\"mr-2 size-4 animate-spin\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n aria-hidden=\"true\"\n >\n <circle\n className=\"opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n />\n <path\n className=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n />\n </svg>\n )}\n {children}\n </Comp>\n );\n}\n\nexport { Button, buttonVariants };\n","import clsx from 'clsx';\nimport type React from 'react';\n\nexport type BreadcrumbItem = {\n label: React.ReactNode;\n href?: string;\n};\n\nexport function Breadcrumb({\n items,\n separator,\n className,\n}: {\n items: BreadcrumbItem[];\n separator?: React.ReactNode;\n className?: string;\n}) {\n const sep = separator ?? (\n <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\" fill=\"none\" className=\"size-3.5 text-zinc-400\">\n <path\n d=\"M6 4l4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n\n return (\n <nav aria-label=\"Breadcrumb\">\n <ol className={clsx('flex flex-wrap items-center gap-1.5 text-sm', className)}>\n {items.map((item, index) => {\n const isLast = index === items.length - 1;\n return (\n // biome-ignore lint/suspicious/noArrayIndexKey: breadcrumb items are positionally ordered with no stable ID\n <li key={index} className=\"flex items-center gap-1.5\">\n {isLast || !item.href ? (\n <span\n aria-current={isLast ? 'page' : undefined}\n className={clsx(\n isLast\n ? 'font-medium text-zinc-950 dark:text-white'\n : 'text-zinc-500 dark:text-zinc-400',\n )}\n >\n {item.label}\n </span>\n ) : (\n <a\n href={item.href}\n className=\"text-zinc-500 transition-colors hover:text-zinc-950 dark:text-zinc-400 dark:hover:text-white\"\n >\n {item.label}\n </a>\n )}\n {!isLast && sep}\n </li>\n );\n })}\n </ol>\n </nav>\n );\n}\n","import clsx from 'clsx';\nimport type React from 'react';\n\nexport function EmptyState({\n icon,\n title,\n description,\n action,\n className,\n}: {\n icon?: React.ReactNode;\n title: string;\n description?: string;\n action?: React.ReactNode;\n className?: string;\n}) {\n return (\n <div\n className={clsx(\n 'flex flex-col items-center justify-center rounded-xl border border-dashed border-zinc-300 px-6 py-16 text-center dark:border-zinc-700',\n className,\n )}\n >\n {icon && (\n <div className=\"mb-4 flex size-12 items-center justify-center rounded-full bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400\">\n {icon}\n </div>\n )}\n <h3 className=\"text-sm font-semibold text-zinc-950 dark:text-white\">{title}</h3>\n {description && (\n <p className=\"mt-1 max-w-sm text-sm text-zinc-500 dark:text-zinc-400\">{description}</p>\n )}\n {action && <div className=\"mt-6\">{action}</div>}\n </div>\n );\n}\n","import type * as React from 'react';\nimport { cn } from '../utils/cn.js';\nimport type { ButtonProps } from './Button.js';\nimport { buttonVariants } from './Button.js';\n\nconst ChevronLeft = ({ className }: { className?: string }) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n strokeWidth={1.5}\n stroke=\"currentColor\"\n className={cn('size-6', className)}\n >\n <title>Previous page</title>\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M15.75 19.5 8.25 12l7.5-7.5\" />\n </svg>\n );\n};\n\nconst ChevronRight = ({ className }: { className?: string }) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n strokeWidth={1.5}\n stroke=\"currentColor\"\n className={cn('size-6', className)}\n >\n <title>Next page</title>\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"m8.25 4.5 7.5 7.5-7.5 7.5\" />\n </svg>\n );\n};\n\nconst MoreHorizontal = ({ className }: { className?: string }) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 6\"\n className={cn('size-6', className)}\n >\n <title>More pages</title>\n <circle cx=\"6\" cy=\"3\" r=\"3\" fill=\"currentColor\" />\n <circle cx=\"12\" cy=\"3\" r=\"3\" fill=\"currentColor\" />\n <circle cx=\"18\" cy=\"3\" r=\"3\" fill=\"currentColor\" />\n </svg>\n );\n};\n\nexport type PaginationProps = React.ComponentProps<'nav'>;\n\nconst Pagination = ({ className, ...props }: PaginationProps) => (\n <nav\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n);\n\nfunction PaginationContent({\n className,\n ref,\n ...props\n}: React.ComponentProps<'ul'> & { ref?: React.Ref<HTMLUListElement> }) {\n return <ul className={cn('flex flex-row items-center gap-1', className)} ref={ref} {...props} />;\n}\n\nfunction PaginationItem({\n className,\n ref,\n ...props\n}: React.ComponentProps<'li'> & { ref?: React.Ref<HTMLLIElement> }) {\n return <li className={cn('', className)} ref={ref} {...props} />;\n}\n\nexport interface PaginationLinkProps\n extends Pick<ButtonProps, 'size'>,\n React.ComponentProps<'button'> {\n isActive?: boolean;\n}\n\nconst PaginationLink = ({\n className,\n isActive,\n size = 'icon',\n disabled,\n ...props\n}: PaginationLinkProps) => (\n <button\n aria-current={isActive ? 'page' : undefined}\n aria-disabled={disabled ? true : undefined}\n disabled={disabled}\n className={cn(\n buttonVariants({\n size,\n variant: isActive ? 'outline' : 'ghost',\n }),\n className,\n )}\n {...props}\n />\n);\n\nexport type PaginationPreviousProps = React.ComponentProps<typeof PaginationLink>;\n\nconst PaginationPrevious = ({ className, ...props }: PaginationPreviousProps) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n className={cn('gap-1 pl-2.5', className)}\n size=\"default\"\n {...props}\n >\n <ChevronLeft className=\"size-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\n\nexport type PaginationNextProps = React.ComponentProps<typeof PaginationLink>;\n\nconst PaginationNext = ({ className, ...props }: PaginationNextProps) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n className={cn('gap-1 pr-2.5', className)}\n size=\"default\"\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"size-4\" />\n </PaginationLink>\n);\n\nexport type PaginationEllipsisProps = React.ComponentProps<'span'>;\n\nconst PaginationEllipsis = ({ className, ...props }: PaginationEllipsisProps) => (\n <span\n aria-hidden\n className={cn('flex h-9 w-9 items-center justify-center', className)}\n {...props}\n >\n <MoreHorizontal className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n","import { cn } from '../utils/cn.js';\n\n// =============================================================================\n// Types (mirrors @revealui/contracts/pricing — no import to avoid coupling)\n// =============================================================================\n\nexport interface PricingTier {\n id: string;\n name: string;\n price?: string;\n period?: string;\n description: string;\n features: string[];\n cta: string;\n ctaHref: string;\n highlighted: boolean;\n}\n\nexport interface PricingTableProps {\n tiers: PricingTier[];\n /** Highlights the active plan tier */\n currentTier?: string;\n /** Compact (horizontal row) vs full (grid) layout */\n compact?: boolean;\n /** Callback when a tier is selected */\n onSelectTier?: (id: string) => void;\n className?: string;\n}\n\n// =============================================================================\n// Check Icon (inline SVG — no external deps)\n// =============================================================================\n\nfunction CheckIcon() {\n return (\n <svg\n className=\"h-4 w-4 shrink-0 text-blue-600 mt-0.5\"\n fill=\"currentColor\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n >\n <path\n fillRule=\"evenodd\"\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n}\n\n// =============================================================================\n// PricingTable\n// =============================================================================\n\nexport function PricingTable({\n tiers,\n currentTier,\n compact = false,\n onSelectTier,\n className,\n}: PricingTableProps) {\n if (compact) {\n return (\n <div className={cn('flex flex-col gap-4 sm:flex-row', className)}>\n {tiers.map((tier) => (\n <PricingCardCompact\n key={tier.id}\n tier={tier}\n isCurrent={tier.id === currentTier}\n onSelect={onSelectTier}\n />\n ))}\n </div>\n );\n }\n\n return (\n <div\n className={cn(\n 'grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4',\n tiers.length === 3 && 'lg:grid-cols-3',\n tiers.length === 2 && 'lg:grid-cols-2 max-w-3xl mx-auto',\n className,\n )}\n >\n {tiers.map((tier) => (\n <PricingCardFull\n key={tier.id}\n tier={tier}\n isCurrent={tier.id === currentTier}\n onSelect={onSelectTier}\n />\n ))}\n </div>\n );\n}\n\n// =============================================================================\n// Full Card (marketing grid layout)\n// =============================================================================\n\nfunction PricingCardFull({\n tier,\n isCurrent,\n onSelect,\n}: {\n tier: PricingTier;\n isCurrent: boolean;\n onSelect?: (id: string) => void;\n}) {\n const isHighlighted = tier.highlighted && !isCurrent;\n\n return (\n <div\n className={cn(\n 'relative rounded-2xl bg-white p-8 shadow-lg dark:bg-zinc-900',\n isHighlighted\n ? 'ring-2 ring-blue-600'\n : isCurrent\n ? 'ring-2 ring-emerald-500'\n : 'ring-1 ring-zinc-200 dark:ring-zinc-800',\n )}\n >\n {isHighlighted && (\n <div className=\"absolute -top-4 left-0 right-0 mx-auto w-32 rounded-full bg-gradient-to-r from-blue-600 to-indigo-600 px-3 py-1.5 text-sm font-semibold text-white text-center shadow-lg\">\n Most Popular\n </div>\n )}\n {isCurrent && (\n <div className=\"absolute -top-4 left-0 right-0 mx-auto w-32 rounded-full bg-emerald-600 px-3 py-1.5 text-sm font-semibold text-white text-center shadow-lg\">\n Current Plan\n </div>\n )}\n\n <div className=\"mb-8\">\n <h3 className=\"text-xl font-bold tracking-tight text-zinc-900 dark:text-white\">\n {tier.name}\n </h3>\n <p className=\"mt-2 text-sm text-zinc-600 dark:text-zinc-400\">{tier.description}</p>\n <p className=\"mt-6 flex items-baseline gap-x-1\">\n <span className=\"text-4xl font-bold tracking-tight text-zinc-900 dark:text-white\">\n {tier.price ?? '—'}\n </span>\n {tier.period && (\n <span className=\"text-sm text-zinc-600 dark:text-zinc-400\">{tier.period}</span>\n )}\n </p>\n </div>\n\n <ul className=\"mb-8 space-y-3\">\n {tier.features.map((feature) => (\n <li key={feature} className=\"flex items-start gap-x-3\">\n <CheckIcon />\n <span className=\"text-sm text-zinc-600 dark:text-zinc-400\">{feature}</span>\n </li>\n ))}\n </ul>\n\n {onSelect ? (\n <button\n type=\"button\"\n onClick={() => onSelect(tier.id)}\n disabled={isCurrent}\n className={cn(\n 'block w-full rounded-md px-6 py-3 text-center text-sm font-semibold transition-colors',\n isCurrent\n ? 'cursor-default bg-emerald-50 text-emerald-700 dark:bg-emerald-900/20 dark:text-emerald-400'\n : isHighlighted\n ? 'bg-blue-600 text-white hover:bg-blue-500 shadow-sm'\n : 'bg-zinc-100 text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700',\n )}\n >\n {isCurrent ? 'Current Plan' : tier.cta}\n </button>\n ) : (\n <a\n href={tier.ctaHref}\n className={cn(\n 'block w-full rounded-md px-6 py-3 text-center text-sm font-semibold transition-colors',\n isHighlighted\n ? 'bg-blue-600 text-white hover:bg-blue-500 shadow-sm'\n : 'bg-zinc-100 text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700',\n )}\n >\n {tier.cta}\n </a>\n )}\n </div>\n );\n}\n\n// =============================================================================\n// Compact Card (embeddable in dialogs/prompts)\n// =============================================================================\n\nfunction PricingCardCompact({\n tier,\n isCurrent,\n onSelect,\n}: {\n tier: PricingTier;\n isCurrent: boolean;\n onSelect?: (id: string) => void;\n}) {\n return (\n <div\n className={cn(\n 'flex-1 rounded-xl p-5 shadow-sm dark:bg-zinc-900',\n isCurrent\n ? 'ring-2 ring-emerald-500 bg-emerald-50/50 dark:bg-emerald-900/10'\n : tier.highlighted\n ? 'ring-2 ring-blue-600 bg-blue-50/50 dark:bg-blue-900/10'\n : 'ring-1 ring-zinc-200 bg-white dark:ring-zinc-800',\n )}\n >\n <div className=\"flex items-baseline justify-between gap-2\">\n <h4 className=\"text-sm font-bold text-zinc-900 dark:text-white\">{tier.name}</h4>\n {isCurrent && (\n <span className=\"rounded-full bg-emerald-100 px-2 py-0.5 text-xs font-medium text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400\">\n Current\n </span>\n )}\n </div>\n <p className=\"mt-1 flex items-baseline gap-x-1\">\n <span className=\"text-2xl font-bold text-zinc-900 dark:text-white\">\n {tier.price ?? '—'}\n </span>\n {tier.period && (\n <span className=\"text-xs text-zinc-500 dark:text-zinc-400\">{tier.period}</span>\n )}\n </p>\n <p className=\"mt-1 text-xs text-zinc-500 dark:text-zinc-400 line-clamp-2\">\n {tier.description}\n </p>\n\n {onSelect ? (\n <button\n type=\"button\"\n onClick={() => onSelect(tier.id)}\n disabled={isCurrent}\n className={cn(\n 'mt-3 block w-full rounded-md px-3 py-2 text-center text-xs font-semibold transition-colors',\n isCurrent\n ? 'cursor-default bg-emerald-50 text-emerald-700 dark:bg-emerald-900/20 dark:text-emerald-400'\n : tier.highlighted\n ? 'bg-blue-600 text-white hover:bg-blue-500'\n : 'bg-zinc-100 text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700',\n )}\n >\n {isCurrent ? 'Current' : tier.cta}\n </button>\n ) : (\n <a\n href={tier.ctaHref}\n className={cn(\n 'mt-3 block w-full rounded-md px-3 py-2 text-center text-xs font-semibold transition-colors',\n tier.highlighted\n ? 'bg-blue-600 text-white hover:bg-blue-500'\n : 'bg-zinc-100 text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700',\n )}\n >\n {tier.cta}\n </a>\n )}\n </div>\n );\n}\n","import type React from 'react';\nimport { cn } from '../utils/cn.js';\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n as?: 'div' | 'span' | 'section' | 'article' | 'header' | 'footer' | 'main' | 'aside' | 'nav';\n ref?: React.Ref<HTMLDivElement>;\n}\n\n/**\n * Box primitive - Basic container component\n */\nfunction Box({ as: Component = 'div', className, ref, ...props }: BoxProps) {\n return <Component ref={ref} className={cn(className)} {...props} />;\n}\n\nexport { Box };\n","import clsx from 'clsx';\nimport type React from 'react';\n\nexport function Skeleton({ className, ...props }: React.ComponentPropsWithoutRef<'div'>) {\n return (\n <div\n aria-hidden=\"true\"\n {...props}\n className={clsx('animate-pulse rounded-md bg-zinc-200 dark:bg-zinc-700', className)}\n />\n );\n}\n\nexport function SkeletonText({ lines = 3, className }: { lines?: number; className?: string }) {\n return (\n <div className={clsx('space-y-2', className)}>\n {Array.from({ length: lines }).map((_, i) => {\n return (\n <Skeleton\n // biome-ignore lint/suspicious/noArrayIndexKey: skeleton lines are generated placeholders with no stable ID\n key={i}\n className={clsx('h-4', i === lines - 1 && lines > 1 ? 'w-4/5' : 'w-full')}\n />\n );\n })}\n </div>\n );\n}\n\nexport function SkeletonCard({ className }: { className?: string }) {\n return (\n <div className={clsx('rounded-xl border border-zinc-200 p-4 dark:border-zinc-700', className)}>\n <div className=\"flex items-center gap-3\">\n <Skeleton className=\"size-10 rounded-full\" />\n <div className=\"flex-1 space-y-2\">\n <Skeleton className=\"h-4 w-1/3\" />\n <Skeleton className=\"h-3 w-1/2\" />\n </div>\n </div>\n <SkeletonText lines={3} className=\"mt-4\" />\n </div>\n );\n}\n"],"x_google_ignoreList":[0,1],"mappings":";;;AAAA,SAAS,EAAE,GAAE;CAAC,IAAI,GAAE,GAAE,IAAE;AAAG,KAAG,YAAU,OAAO,KAAG,YAAU,OAAO,EAAE,MAAG;UAAU,YAAU,OAAO,EAAE,KAAG,MAAM,QAAQ,EAAE,EAAC;EAAC,IAAI,IAAE,EAAE;AAAO,OAAI,IAAE,GAAE,IAAE,GAAE,IAAI,GAAE,OAAK,IAAE,EAAE,EAAE,GAAG,MAAI,MAAI,KAAG,MAAK,KAAG;OAAQ,MAAI,KAAK,EAAE,GAAE,OAAK,MAAI,KAAG,MAAK,KAAG;AAAG,QAAO;;AAAE,SAAgB,OAAM;AAAC,MAAI,IAAI,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAAC,IAAE,UAAU,QAAM,IAAE,EAAE,EAAE,MAAI,MAAI,KAAG,MAAK,KAAG;AAAG,QAAO;;;;;;;;;;;;;;;;;;GCe9W,IAAM,iBAAiB,UAAQ,OA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