@dapplelight/signet-ui 0.0.0-stage → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +49 -2
  3. package/dist/components/domain/trend-chip.d.ts +7 -0
  4. package/dist/components/domain/trend-chip.d.ts.map +1 -0
  5. package/dist/components/domain/trend-chip.js +14 -0
  6. package/dist/components/domain/trend-chip.js.map +1 -0
  7. package/dist/components/ui/alert.d.ts +10 -0
  8. package/dist/components/ui/alert.d.ts.map +1 -0
  9. package/dist/components/ui/alert.js +26 -0
  10. package/dist/components/ui/alert.js.map +1 -0
  11. package/dist/components/ui/answer-headline.d.ts +19 -0
  12. package/dist/components/ui/answer-headline.d.ts.map +1 -0
  13. package/dist/components/ui/answer-headline.js +18 -0
  14. package/dist/components/ui/answer-headline.js.map +1 -0
  15. package/dist/components/ui/badge.d.ts +8 -0
  16. package/dist/components/ui/badge.d.ts.map +1 -0
  17. package/dist/components/ui/badge.js +34 -0
  18. package/dist/components/ui/badge.js.map +1 -0
  19. package/dist/components/ui/button.d.ts +9 -0
  20. package/dist/components/ui/button.d.ts.map +1 -0
  21. package/dist/components/ui/button.js +37 -0
  22. package/dist/components/ui/button.js.map +1 -0
  23. package/dist/components/ui/calendar.d.ts +11 -0
  24. package/dist/components/ui/calendar.d.ts.map +1 -0
  25. package/dist/components/ui/calendar.js +76 -0
  26. package/dist/components/ui/calendar.js.map +1 -0
  27. package/dist/components/ui/card.d.ts +12 -0
  28. package/dist/components/ui/card.d.ts.map +1 -0
  29. package/dist/components/ui/card.js +25 -0
  30. package/dist/components/ui/card.js.map +1 -0
  31. package/dist/components/ui/chart.d.ts +40 -0
  32. package/dist/components/ui/chart.d.ts.map +1 -0
  33. package/dist/components/ui/chart.js +126 -0
  34. package/dist/components/ui/chart.js.map +1 -0
  35. package/dist/components/ui/checkbox.d.ts +5 -0
  36. package/dist/components/ui/checkbox.d.ts.map +1 -0
  37. package/dist/components/ui/checkbox.js +9 -0
  38. package/dist/components/ui/checkbox.js.map +1 -0
  39. package/dist/components/ui/combobox.d.ts +25 -0
  40. package/dist/components/ui/combobox.d.ts.map +1 -0
  41. package/dist/components/ui/combobox.js +59 -0
  42. package/dist/components/ui/combobox.js.map +1 -0
  43. package/dist/components/ui/data-table.d.ts +90 -0
  44. package/dist/components/ui/data-table.d.ts.map +1 -0
  45. package/dist/components/ui/data-table.js +368 -0
  46. package/dist/components/ui/data-table.js.map +1 -0
  47. package/dist/components/ui/dialog.d.ts +18 -0
  48. package/dist/components/ui/dialog.d.ts.map +1 -0
  49. package/dist/components/ui/dialog.js +37 -0
  50. package/dist/components/ui/dialog.js.map +1 -0
  51. package/dist/components/ui/drawer.d.ts +17 -0
  52. package/dist/components/ui/drawer.d.ts.map +1 -0
  53. package/dist/components/ui/drawer.js +51 -0
  54. package/dist/components/ui/drawer.js.map +1 -0
  55. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  56. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  57. package/dist/components/ui/dropdown-menu.js +39 -0
  58. package/dist/components/ui/dropdown-menu.js.map +1 -0
  59. package/dist/components/ui/emoji-picker.d.ts +11 -0
  60. package/dist/components/ui/emoji-picker.d.ts.map +1 -0
  61. package/dist/components/ui/emoji-picker.js +58 -0
  62. package/dist/components/ui/emoji-picker.js.map +1 -0
  63. package/dist/components/ui/empty-state.d.ts +10 -0
  64. package/dist/components/ui/empty-state.d.ts.map +1 -0
  65. package/dist/components/ui/empty-state.js +6 -0
  66. package/dist/components/ui/empty-state.js.map +1 -0
  67. package/dist/components/ui/error-state.d.ts +7 -0
  68. package/dist/components/ui/error-state.d.ts.map +1 -0
  69. package/dist/components/ui/error-state.js +6 -0
  70. package/dist/components/ui/error-state.js.map +1 -0
  71. package/dist/components/ui/input-group.d.ts +19 -0
  72. package/dist/components/ui/input-group.d.ts.map +1 -0
  73. package/dist/components/ui/input-group.js +57 -0
  74. package/dist/components/ui/input-group.js.map +1 -0
  75. package/dist/components/ui/input-otp.d.ts +12 -0
  76. package/dist/components/ui/input-otp.d.ts.map +1 -0
  77. package/dist/components/ui/input-otp.js +21 -0
  78. package/dist/components/ui/input-otp.js.map +1 -0
  79. package/dist/components/ui/input.d.ts +4 -0
  80. package/dist/components/ui/input.d.ts.map +1 -0
  81. package/dist/components/ui/input.js +8 -0
  82. package/dist/components/ui/input.js.map +1 -0
  83. package/dist/components/ui/kbd.d.ts +12 -0
  84. package/dist/components/ui/kbd.d.ts.map +1 -0
  85. package/dist/components/ui/kbd.js +11 -0
  86. package/dist/components/ui/kbd.js.map +1 -0
  87. package/dist/components/ui/label.d.ts +4 -0
  88. package/dist/components/ui/label.d.ts.map +1 -0
  89. package/dist/components/ui/label.js +7 -0
  90. package/dist/components/ui/label.js.map +1 -0
  91. package/dist/components/ui/markdown.d.ts +28 -0
  92. package/dist/components/ui/markdown.d.ts.map +1 -0
  93. package/dist/components/ui/markdown.js +104 -0
  94. package/dist/components/ui/markdown.js.map +1 -0
  95. package/dist/components/ui/pagination.d.ts +9 -0
  96. package/dist/components/ui/pagination.d.ts.map +1 -0
  97. package/dist/components/ui/pagination.js +10 -0
  98. package/dist/components/ui/pagination.js.map +1 -0
  99. package/dist/components/ui/pill-group.d.ts +14 -0
  100. package/dist/components/ui/pill-group.d.ts.map +1 -0
  101. package/dist/components/ui/pill-group.js +10 -0
  102. package/dist/components/ui/pill-group.js.map +1 -0
  103. package/dist/components/ui/popover.d.ts +7 -0
  104. package/dist/components/ui/popover.d.ts.map +1 -0
  105. package/dist/components/ui/popover.js +11 -0
  106. package/dist/components/ui/popover.js.map +1 -0
  107. package/dist/components/ui/privacy-mask.d.ts +45 -0
  108. package/dist/components/ui/privacy-mask.d.ts.map +1 -0
  109. package/dist/components/ui/privacy-mask.js +82 -0
  110. package/dist/components/ui/privacy-mask.js.map +1 -0
  111. package/dist/components/ui/progress.d.ts +8 -0
  112. package/dist/components/ui/progress.d.ts.map +1 -0
  113. package/dist/components/ui/progress.js +21 -0
  114. package/dist/components/ui/progress.js.map +1 -0
  115. package/dist/components/ui/responsive-sheet.d.ts +13 -0
  116. package/dist/components/ui/responsive-sheet.d.ts.map +1 -0
  117. package/dist/components/ui/responsive-sheet.js +19 -0
  118. package/dist/components/ui/responsive-sheet.js.map +1 -0
  119. package/dist/components/ui/search-input.d.ts +7 -0
  120. package/dist/components/ui/search-input.d.ts.map +1 -0
  121. package/dist/components/ui/search-input.js +10 -0
  122. package/dist/components/ui/search-input.js.map +1 -0
  123. package/dist/components/ui/select.d.ts +16 -0
  124. package/dist/components/ui/select.d.ts.map +1 -0
  125. package/dist/components/ui/select.js +56 -0
  126. package/dist/components/ui/select.js.map +1 -0
  127. package/dist/components/ui/shortcuts.d.ts +28 -0
  128. package/dist/components/ui/shortcuts.d.ts.map +1 -0
  129. package/dist/components/ui/shortcuts.js +91 -0
  130. package/dist/components/ui/shortcuts.js.map +1 -0
  131. package/dist/components/ui/skeleton.d.ts +4 -0
  132. package/dist/components/ui/skeleton.d.ts.map +1 -0
  133. package/dist/components/ui/skeleton.js +7 -0
  134. package/dist/components/ui/skeleton.js.map +1 -0
  135. package/dist/components/ui/slider.d.ts +7 -0
  136. package/dist/components/ui/slider.d.ts.map +1 -0
  137. package/dist/components/ui/slider.js +15 -0
  138. package/dist/components/ui/slider.js.map +1 -0
  139. package/dist/components/ui/stat-strip.d.ts +14 -0
  140. package/dist/components/ui/stat-strip.d.ts.map +1 -0
  141. package/dist/components/ui/stat-strip.js +26 -0
  142. package/dist/components/ui/stat-strip.js.map +1 -0
  143. package/dist/components/ui/switch.d.ts +6 -0
  144. package/dist/components/ui/switch.d.ts.map +1 -0
  145. package/dist/components/ui/switch.js +8 -0
  146. package/dist/components/ui/switch.js.map +1 -0
  147. package/dist/components/ui/table.d.ts +10 -0
  148. package/dist/components/ui/table.d.ts.map +1 -0
  149. package/dist/components/ui/table.js +25 -0
  150. package/dist/components/ui/table.js.map +1 -0
  151. package/dist/components/ui/tabs.d.ts +11 -0
  152. package/dist/components/ui/tabs.d.ts.map +1 -0
  153. package/dist/components/ui/tabs.js +30 -0
  154. package/dist/components/ui/tabs.js.map +1 -0
  155. package/dist/components/ui/textarea.d.ts +4 -0
  156. package/dist/components/ui/textarea.d.ts.map +1 -0
  157. package/dist/components/ui/textarea.js +7 -0
  158. package/dist/components/ui/textarea.js.map +1 -0
  159. package/dist/components/ui/theme-provider.d.ts +20 -0
  160. package/dist/components/ui/theme-provider.d.ts.map +1 -0
  161. package/dist/components/ui/theme-provider.js +82 -0
  162. package/dist/components/ui/theme-provider.js.map +1 -0
  163. package/dist/components/ui/theme-toggle.d.ts +8 -0
  164. package/dist/components/ui/theme-toggle.d.ts.map +1 -0
  165. package/dist/components/ui/theme-toggle.js +20 -0
  166. package/dist/components/ui/theme-toggle.js.map +1 -0
  167. package/dist/components/ui/tooltip.d.ts +7 -0
  168. package/dist/components/ui/tooltip.d.ts.map +1 -0
  169. package/dist/components/ui/tooltip.js +13 -0
  170. package/dist/components/ui/tooltip.js.map +1 -0
  171. package/dist/hooks/use-media-query.d.ts +3 -0
  172. package/dist/hooks/use-media-query.d.ts.map +1 -0
  173. package/dist/hooks/use-media-query.js +17 -0
  174. package/dist/hooks/use-media-query.js.map +1 -0
  175. package/dist/index.d.ts +40 -0
  176. package/dist/index.d.ts.map +1 -0
  177. package/dist/index.js +40 -0
  178. package/dist/index.js.map +1 -0
  179. package/dist/lib/utils.d.ts +4 -0
  180. package/dist/lib/utils.d.ts.map +1 -0
  181. package/dist/lib/utils.js +21 -0
  182. package/dist/lib/utils.js.map +1 -0
  183. package/package.json +284 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The Signet authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,50 @@
1
- # Temporary Holding Version
1
+ <p align="center"><img src="https://raw.githubusercontent.com/dapplelight/signet/main/docs/brand/mark-color.svg" width="72" height="72" alt="Signet"></p>
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # @dapplelight/signet-ui
4
+
5
+ 41 React components on Tailwind v4, in the shadcn style, styled only through
6
+ [Signet theme tokens](https://www.npmjs.com/package/@dapplelight/signet-tokens).
7
+ Swap the theme file and every component changes; no component is edited.
8
+
9
+ Part of [Signet](https://github.com/dapplelight/signet). Docs:
10
+ https://dapplelight.github.io/signet/
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ bun add @dapplelight/signet-ui @dapplelight/signet-tokens
16
+ ```
17
+
18
+ ```css
19
+ /* app.css */
20
+ @import "tailwindcss";
21
+ @import "@dapplelight/signet-tokens/editorial.css";
22
+ @import "@dapplelight/signet-tokens/base.css";
23
+ /* Tailwind does not scan node_modules; the kit's class names must be seen. */
24
+ @source "../node_modules/@dapplelight/signet-ui/dist";
25
+ ```
26
+
27
+ ```tsx
28
+ import { Button, DataTable, EmptyState } from "@dapplelight/signet-ui"
29
+ // or one component at a time, to keep the module graph small:
30
+ import { Button } from "@dapplelight/signet-ui/components/button"
31
+ ```
32
+
33
+ Peer dependencies: React 19, Base UI, Radix primitives, TanStack Table and a
34
+ few more. recharts, TanStack Hotkeys and the Markdown stack are optional.
35
+
36
+ ## What is in it
37
+
38
+ - The shadcn set: button, input, dialog, sheet, popover, select, tabs, table,
39
+ toast and the rest.
40
+ - Extras: a virtualised `data-table`, `combobox`, `stat-strip`,
41
+ `responsive-sheet`, `markdown` (safe by default), `emoji-picker`.
42
+ - `domain/` components that carry product vocabulary, such as `trend-chip`,
43
+ kept out of the main barrel.
44
+
45
+ The full export list is in
46
+ [API.md](https://github.com/dapplelight/signet/blob/main/API.md).
47
+
48
+ ## License
49
+
50
+ MIT
@@ -0,0 +1,7 @@
1
+ interface TrendChipProps {
2
+ value: number | string;
3
+ className?: string;
4
+ }
5
+ declare function TrendChip({ value, className }: TrendChipProps): import("react").JSX.Element;
6
+ export { TrendChip };
7
+ //# sourceMappingURL=trend-chip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trend-chip.d.ts","sourceRoot":"","sources":["../../../src/components/domain/trend-chip.tsx"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,iBAAS,SAAS,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,cAAc,+BAmBtD;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils.js";
3
+ function TrendChip({ value, className }) {
4
+ const num = typeof value === "string" ? parseFloat(value) : value;
5
+ if (Number.isNaN(num)) {
6
+ return _jsx("span", { className: cn("text-[11px] text-text-muted", className), children: "\u2014" });
7
+ }
8
+ const isPositive = num >= 0;
9
+ const sign = isPositive ? "+" : "";
10
+ const formatted = `${sign}${num.toFixed(1)}%`;
11
+ return (_jsxs("span", { className: cn("text-[11px]", isPositive ? "text-accent-green" : "text-accent-red", className), children: [formatted, " ", isPositive ? "↑" : "↓"] }));
12
+ }
13
+ export { TrendChip };
14
+ //# sourceMappingURL=trend-chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trend-chip.js","sourceRoot":"","sources":["../../../src/components/domain/trend-chip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAOvC,SAAS,SAAS,CAAC,EAAE,KAAK,EAAE,SAAS,EAAkB;IACrD,MAAM,GAAG,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IAGjE,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACtB,OAAO,eAAM,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,uBAAU,CAAA;IAChF,CAAC;IAED,MAAM,UAAU,GAAG,GAAG,IAAI,CAAC,CAAA;IAC3B,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;IAClC,MAAM,SAAS,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAA;IAE7C,OAAO,CACL,gBACE,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,iBAAiB,EAAE,SAAS,CAAC,aAE5F,SAAS,OAAG,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAC9B,CACR,CAAA;AACH,CAAC;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import type * as React from "react";
3
+ declare const alertVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "warning" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare function Alert({ className, variant, ...props }: React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>): React.JSX.Element;
7
+ declare function AlertTitle({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): React.JSX.Element;
8
+ declare function AlertDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): React.JSX.Element;
9
+ export { Alert, AlertDescription, AlertTitle };
10
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAGnC,QAAA,MAAM,aAAa;;8EAgBlB,CAAA;AAED,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,qBAE3E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,qBAEtF;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,qBAE5F;AAED,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cva } from "class-variance-authority";
3
+ import { cn } from "../../lib/utils.js";
4
+ const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-3 [&>svg]:text-text-primary", {
5
+ variants: {
6
+ variant: {
7
+ default: "border-border-default bg-bg-surface text-text-primary",
8
+ destructive: "border-destructive/50 bg-accent-red/10 text-accent-red [&>svg]:text-accent-red",
9
+ warning: "border-accent-amber/50 bg-accent-amber/10 text-accent-amber [&>svg]:text-accent-amber",
10
+ },
11
+ },
12
+ defaultVariants: {
13
+ variant: "default",
14
+ },
15
+ });
16
+ function Alert({ className, variant, ...props }) {
17
+ return _jsx("div", { role: "alert", className: cn(alertVariants({ variant }), className), ...props });
18
+ }
19
+ function AlertTitle({ className, ...props }) {
20
+ return _jsx("h5", { className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props });
21
+ }
22
+ function AlertDescription({ className, ...props }) {
23
+ return _jsx("div", { className: cn("text-[12px] [&_p]:leading-relaxed", className), ...props });
24
+ }
25
+ export { Alert, AlertDescription, AlertTitle };
26
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAA;AAEjE,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,aAAa,GAAG,GAAG,CACvB,2KAA2K,EAC3K;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,uDAAuD;YAChE,WAAW,EACT,gFAAgF;YAClF,OAAO,EACL,uFAAuF;SAC1F;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;CACF,CACF,CAAA;AAED,SAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACkE;IAC1E,OAAO,cAAK,IAAI,EAAC,OAAO,EAAC,SAAS,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAA;AAC9F,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA8C;IACrF,OAAO,aAAI,SAAS,EAAE,EAAE,CAAC,8CAA8C,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAA;AACpG,CAAC;AAED,SAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA8C;IAC3F,OAAO,cAAK,SAAS,EAAE,EAAE,CAAC,mCAAmC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAA;AAC1F,CAAC;AAED,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type * as React from "react";
2
+ type AnswerSegment = string | {
3
+ value: number;
4
+ };
5
+ interface AnswerHeadlineData {
6
+ question: string;
7
+ sentence: AnswerSegment[];
8
+ detail?: AnswerSegment[];
9
+ tone: "neutral" | "good" | "warn";
10
+ }
11
+ declare function answerText(segments: AnswerSegment[], format?: (value: number) => string): string;
12
+ declare function AnswerHeadline({ headline, renderValue, className, children, }: {
13
+ headline: AnswerHeadlineData;
14
+ renderValue?: (value: number) => React.ReactNode;
15
+ className?: string;
16
+ children?: React.ReactNode;
17
+ }): React.JSX.Element;
18
+ export { AnswerHeadline, type AnswerHeadlineData, type AnswerSegment, answerText };
19
+ //# sourceMappingURL=answer-headline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"answer-headline.d.ts","sourceRoot":"","sources":["../../../src/components/ui/answer-headline.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAMnC,KAAK,aAAa,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/C,UAAU,kBAAkB;IAE1B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,aAAa,EAAE,CAAA;IAEzB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAA;IAExB,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;CAClC;AAMD,iBAAS,UAAU,CACjB,QAAQ,EAAE,aAAa,EAAE,EACzB,MAAM,GAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAkC,GAC5D,MAAM,CAER;AA8BD,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,WAAW,EACX,SAAS,EACT,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,qBA+BA;AAED,OAAO,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "../../lib/utils.js";
4
+ import { MASKED_VALUE, useMaskedRatio } from "./privacy-mask.js";
5
+ function answerText(segments, format = (n) => n.toLocaleString()) {
6
+ return segments.map((s) => (typeof s === "string" ? s : format(s.value))).join("");
7
+ }
8
+ function Segments({ segments, renderValue, }) {
9
+ const ratio = useMaskedRatio();
10
+ return segments.map((seg, i) => typeof seg === "string" ? (_jsx("span", { children: ratio.text(seg) }, i)) : (_jsx("strong", { className: "font-semibold", children: renderValue(seg.value) }, i)));
11
+ }
12
+ function AnswerHeadline({ headline, renderValue, className, children, }) {
13
+ const { masked } = useMaskedRatio();
14
+ const render = renderValue ?? ((n) => (masked ? MASKED_VALUE : n.toLocaleString()));
15
+ return (_jsxs("section", { "data-slot": "answer-headline", "data-tone": headline.tone, "aria-label": headline.question, className: cn("flex min-w-0 flex-col gap-2 rounded-xl bg-bg-surface p-4 ring-1 ring-border-subtle md:p-5", className), children: [_jsx("h2", { className: "text-body font-medium text-text-muted", children: headline.question }), _jsx("p", { "data-slot": "answer-headline-sentence", className: cn("text-subhead font-medium leading-snug tracking-tight text-text-primary md:text-title", headline.tone === "warn" && "text-accent-amber"), children: _jsx(Segments, { segments: headline.sentence, renderValue: render }) }), headline.detail && (_jsx("p", { "data-slot": "answer-headline-detail", className: "text-caption text-text-secondary", children: _jsx(Segments, { segments: headline.detail, renderValue: render }) })), children] }));
16
+ }
17
+ export { AnswerHeadline, answerText };
18
+ //# sourceMappingURL=answer-headline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"answer-headline.js","sourceRoot":"","sources":["../../../src/components/ui/answer-headline.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAIZ,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAmBhE,SAAS,UAAU,CACjB,QAAyB,EACzB,MAAM,GAA8B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE;IAE7D,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACpF,CAAC;AAED,SAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,WAAW,GAIZ;IACC,MAAM,KAAK,GAAG,cAAc,EAAE,CAAA;IAC9B,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAC7B,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,CACxB,yBAAe,KAAK,CAAC,I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} from "class-variance-authority";
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
7
+ export { Badge, badgeVariants };
8
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;8EAmBlB,CAAA;AAED,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAmB,EACnB,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,8FAevE;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,34 @@
1
+ import { mergeProps } from "@base-ui/react/merge-props";
2
+ import { useRender } from "@base-ui/react/use-render";
3
+ import { cva } from "class-variance-authority";
4
+ import { cn } from "../../lib/utils.js";
5
+ const badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
6
+ variants: {
7
+ variant: {
8
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
9
+ secondary: "bg-bg-elevated text-text-primary [a]:hover:bg-bg-elevated/80",
10
+ destructive: "bg-accent-red/10 text-accent-red focus-visible:ring-destructive/20 dark:bg-accent-red/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-accent-red/20",
11
+ outline: "border-border-default text-text-primary [a]:hover:bg-bg-elevated [a]:hover:text-text-muted",
12
+ ghost: "hover:bg-bg-elevated hover:text-text-muted dark:hover:bg-bg-elevated/50",
13
+ link: "text-primary underline-offset-4 hover:underline",
14
+ },
15
+ },
16
+ defaultVariants: {
17
+ variant: "default",
18
+ },
19
+ });
20
+ function Badge({ className, variant = "default", render, ...props }) {
21
+ return useRender({
22
+ defaultTagName: "span",
23
+ props: mergeProps({
24
+ className: cn(badgeVariants({ variant }), className),
25
+ }, props),
26
+ render,
27
+ state: {
28
+ slot: "badge",
29
+ variant,
30
+ },
31
+ });
32
+ }
33
+ export { Badge, badgeVariants };
34
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAA;AAEjE,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,aAAa,GAAG,GAAG,CACvB,0eAA0e,EAC1e;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,4DAA4D;YACrE,SAAS,EAAE,8DAA8D;YACzE,WAAW,EACT,4JAA4J;YAC9J,OAAO,EACL,4FAA4F;YAC9F,KAAK,EAAE,yEAAyE;YAChF,IAAI,EAAE,iDAAiD;SACxD;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;CACF,CACF,CAAA;AAED,SAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,MAAM,EACN,GAAG,KAAK,EAC8D;IACtE,OAAO,SAAS,CAAC;QACf,cAAc,EAAE,MAAM;QACtB,KAAK,EAAE,UAAU,CACf;YACE,SAAS,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC;SACrD,EACD,KAAK,CACN;QACD,MAAM;QACN,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,OAAO;SACR;KACF,CAAC,CAAA;AACJ,CAAC;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Button as ButtonPrimitive } from "@base-ui/react/button";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
5
+ size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-touch" | "icon-xs" | "lg" | "sm" | "touch" | "xs" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ declare function Button({ className, variant, size, ...props }: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>): import("react").JSX.Element;
8
+ export { Button, buttonVariants };
9
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,cAAc;;;8EAuCnB,CAAA;AAED,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,KAAK,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,+BAQ7D;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button as ButtonPrimitive } from "@base-ui/react/button";
3
+ import { cva } from "class-variance-authority";
4
+ import { cn } from "../../lib/utils.js";
5
+ const buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
6
+ variants: {
7
+ variant: {
8
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
9
+ outline: "border-border-default bg-bg-base hover:bg-bg-elevated hover:text-text-primary aria-expanded:bg-bg-elevated aria-expanded:text-text-primary dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
10
+ secondary: "bg-bg-elevated text-text-primary hover:bg-bg-elevated/80 aria-expanded:bg-bg-elevated aria-expanded:text-text-primary",
11
+ ghost: "hover:bg-bg-elevated hover:text-text-primary aria-expanded:bg-bg-elevated aria-expanded:text-text-primary dark:hover:bg-bg-elevated/50",
12
+ destructive: "bg-accent-red/10 text-accent-red hover:bg-accent-red/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-accent-red/20 dark:hover:bg-accent-red/30 dark:focus-visible:ring-destructive/40",
13
+ link: "text-primary underline-offset-4 hover:underline",
14
+ },
15
+ size: {
16
+ default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
17
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
18
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
19
+ lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
20
+ icon: "size-8",
21
+ "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
22
+ "icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
23
+ "icon-lg": "size-9",
24
+ touch: "h-11 gap-2 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
25
+ "icon-touch": "size-11",
26
+ },
27
+ },
28
+ defaultVariants: {
29
+ variant: "default",
30
+ size: "default",
31
+ },
32
+ });
33
+ function Button({ className, variant = "default", size = "default", ...props }) {
34
+ return (_jsx(ButtonPrimitive, { "data-slot": "button", className: cn(buttonVariants({ variant, size, className })), ...props }));
35
+ }
36
+ export { Button, buttonVariants };
37
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,cAAc,GAAG,GAAG,CACxB,ylBAAylB,EACzlB;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,4DAA4D;YACrE,OAAO,EACL,sMAAsM;YACxM,SAAS,EACP,uHAAuH;YACzH,KAAK,EACH,wIAAwI;YAC1I,WAAW,EACT,wNAAwN;YAC1N,IAAI,EAAE,iDAAiD;SACxD;QACD,IAAI,EAAE;YACJ,OAAO,EACL,sFAAsF;YACxF,EAAE,EAAE,+MAA+M;YACnN,EAAE,EAAE,yNAAyN;YAC7N,EAAE,EAAE,sFAAsF;YAC1F,IAAI,EAAE,QAAQ;YACd,SAAS,EACP,yHAAyH;YAC3H,SAAS,EACP,oFAAoF;YACtF,SAAS,EAAE,QAAQ;YAGnB,KAAK,EAAE,mFAAmF;YAC1F,YAAY,EAAE,SAAS;SACxB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,SAAS;KAChB;CACF,CACF,CAAA;AAED,SAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,SAAS,EAChB,GAAG,KAAK,EACoD;IAC5D,OAAO,CACL,KAAC,eAAe,iBACJ,QAAQ,EAClB,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,KACvD,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { type DayButton, DayPicker, type Locale } from "react-day-picker";
3
+ import { Button } from "./button.js";
4
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];
6
+ }): React.JSX.Element;
7
+ declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React.ComponentProps<typeof DayButton> & {
8
+ locale?: Partial<Locale>;
9
+ }): React.JSX.Element;
10
+ export { Calendar, CalendarDayButton };
11
+ //# sourceMappingURL=calendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,SAAS,EAAE,SAAS,EAAwB,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE/F,OAAO,EAAE,MAAM,EAAkB,MAAM,aAAa,CAAA;AAEpD,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,aAAuB,EACvB,aAAuB,EACvB,MAAM,EACN,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAC1C,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAA;CAC/D,qBAsHA;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,EACH,SAAS,EACT,MAAM,EACN,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;CAAE,qBA8BvE;AAED,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAA"}
@@ -0,0 +1,76 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
3
+ import * as React from "react";
4
+ import { DayPicker, getDefaultClassNames } from "react-day-picker";
5
+ import { cn } from "../../lib/utils.js";
6
+ import { Button, buttonVariants } from "./button.js";
7
+ function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", locale, formatters, components, ...props }) {
8
+ const defaultClassNames = getDefaultClassNames();
9
+ return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn("group/calendar bg-bg-base p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(10)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent", String.raw `rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw `rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className), captionLayout: captionLayout, locale: locale, formatters: {
10
+ formatMonthDropdown: (date) => date.toLocaleString(locale?.code, { month: "short" }),
11
+ ...formatters,
12
+ }, classNames: {
13
+ root: cn("w-fit", defaultClassNames.root),
14
+ months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
15
+ month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
16
+ nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
17
+ button_previous: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_previous),
18
+ button_next: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_next),
19
+ month_caption: cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaultClassNames.month_caption),
20
+ dropdowns: cn("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns),
21
+ dropdown_root: cn("relative rounded-(--cell-radius)", defaultClassNames.dropdown_root),
22
+ dropdown: cn("absolute inset-0 bg-bg-surface opacity-0", defaultClassNames.dropdown),
23
+ caption_label: cn("font-medium select-none", captionLayout === "label"
24
+ ? "text-sm"
25
+ : "flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-text-muted", defaultClassNames.caption_label),
26
+ month_grid: cn("w-full border-collapse", defaultClassNames.month_grid),
27
+ weekdays: cn("flex", defaultClassNames.weekdays),
28
+ weekday: cn("flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-text-muted select-none", defaultClassNames.weekday),
29
+ week: cn("mt-2 flex w-full", defaultClassNames.week),
30
+ week_number_header: cn("w-(--cell-size) select-none", defaultClassNames.week_number_header),
31
+ week_number: cn("text-[0.8rem] text-text-muted select-none", defaultClassNames.week_number),
32
+ day: cn("group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)", props.showWeekNumber
33
+ ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)"
34
+ : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)", defaultClassNames.day),
35
+ range_start: cn("relative isolate z-0 rounded-l-(--cell-radius) bg-bg-elevated after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-bg-elevated", defaultClassNames.range_start),
36
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
37
+ range_end: cn("relative isolate z-0 rounded-r-(--cell-radius) bg-bg-elevated after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-bg-elevated", defaultClassNames.range_end),
38
+ today: cn("rounded-(--cell-radius) bg-bg-elevated text-text-primary data-[selected=true]:rounded-none", defaultClassNames.today),
39
+ outside: cn("text-text-muted aria-selected:text-text-muted", defaultClassNames.outside),
40
+ disabled: cn("text-text-muted opacity-50", defaultClassNames.disabled),
41
+ hidden: cn("invisible", defaultClassNames.hidden),
42
+ ...classNames,
43
+ }, components: {
44
+ Root: ({ className, rootRef, ...props }) => {
45
+ return _jsx("div", { "data-slot": "calendar", ref: rootRef, className: cn(className), ...props });
46
+ },
47
+ Chevron: ({ className, orientation, ...props }) => {
48
+ if (orientation === "left") {
49
+ return _jsx(ChevronLeftIcon, { className: cn("size-4", className), ...props });
50
+ }
51
+ if (orientation === "right") {
52
+ return _jsx(ChevronRightIcon, { className: cn("size-4", className), ...props });
53
+ }
54
+ return _jsx(ChevronDownIcon, { className: cn("size-4", className), ...props });
55
+ },
56
+ DayButton: ({ ...props }) => _jsx(CalendarDayButton, { locale: locale, ...props }),
57
+ WeekNumber: ({ children, ...props }) => {
58
+ return (_jsx("td", { ...props, children: _jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: children }) }));
59
+ },
60
+ ...components,
61
+ }, ...props }));
62
+ }
63
+ function CalendarDayButton({ className, day, modifiers, locale, ...props }) {
64
+ const defaultClassNames = getDefaultClassNames();
65
+ const ref = React.useRef(null);
66
+ React.useEffect(() => {
67
+ if (modifiers.focused)
68
+ ref.current?.focus();
69
+ }, [modifiers.focused]);
70
+ return (_jsx(Button, { variant: "ghost", size: "icon", "data-day": day.date.toLocaleDateString(locale?.code), "data-selected-single": modifiers.selected &&
71
+ !modifiers.range_start &&
72
+ !modifiers.range_end &&
73
+ !modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn("relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-bg-elevated data-[range-middle=true]:text-text-primary data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-text-primary [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className), ...props }));
74
+ }
75
+ export { Calendar, CalendarDayButton };
76
+ //# sourceMappingURL=calendar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;A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EAAE,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type * as React from "react";
2
+ declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
3
+ size?: "default" | "sm";
4
+ }): React.JSX.Element;
5
+ declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
6
+ declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
7
+ declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
9
+ declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
12
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;CAAE,qBAY3D;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils.js";
3
+ function Card({ className, size = "default", ...props }) {
4
+ return (_jsx("div", { "data-slot": "card", "data-size": size, className: cn("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-bg-surface py-4 text-sm text-text-primary ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", className), ...props }));
5
+ }
6
+ function CardHeader({ className, ...props }) {
7
+ return (_jsx("div", { "data-slot": "card-header", className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3", className), ...props }));
8
+ }
9
+ function CardTitle({ className, ...props }) {
10
+ return (_jsx("div", { "data-slot": "card-title", className: cn("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm", className), ...props }));
11
+ }
12
+ function CardDescription({ className, ...props }) {
13
+ return (_jsx("div", { "data-slot": "card-description", className: cn("text-sm text-text-muted", className), ...props }));
14
+ }
15
+ function CardAction({ className, ...props }) {
16
+ return (_jsx("div", { "data-slot": "card-action", className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className), ...props }));
17
+ }
18
+ function CardContent({ className, ...props }) {
19
+ return (_jsx("div", { "data-slot": "card-content", className: cn("px-4 group-data-[size=sm]/card:px-3", className), ...props }));
20
+ }
21
+ function CardFooter({ className, ...props }) {
22
+ return (_jsx("div", { "data-slot": "card-footer", className: cn("flex items-center rounded-b-xl border-t bg-bg-elevated/50 p-4 group-data-[size=sm]/card:p-3", className), ...props }));
23
+ }
24
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
25
+ //# sourceMappingURL=card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,SAAS,IAAI,CAAC,EACZ,SAAS,EACT,IAAI,GAAG,SAAS,EAChB,GAAG,KAAK,EACkD;IAC1D,OAAO,CACL,2BACY,MAAM,eACL,IAAI,EACf,SAAS,EAAE,EAAE,CACX,yVAAyV,EACzV,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACtE,OAAO,CACL,2BACY,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,oSAAoS,EACpS,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACrE,OAAO,CACL,2BACY,YAAY,EACtB,SAAS,EAAE,EAAE,CACX,sEAAsE,EACtE,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IAC3E,OAAO,CACL,2BACY,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,KAC/C,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACtE,OAAO,CACL,2BACY,aAAa,EACvB,SAAS,EAAE,EAAE,CAAC,gEAAgE,EAAE,SAAS,CAAC,KACtF,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACvE,OAAO,CACL,2BACY,cAAc,EACxB,SAAS,EAAE,EAAE,CAAC,qCAAqC,EAAE,SAAS,CAAC,KAC3D,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACtE,OAAO,CACL,2BACY,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,6FAA6F,EAC7F,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1,40 @@
1
+ import * as React from "react";
2
+ import * as RechartsPrimitive from "recharts";
3
+ declare const THEMES: {
4
+ readonly light: "";
5
+ readonly dark: ".dark";
6
+ };
7
+ export type ChartConfig = Record<string, {
8
+ label?: React.ReactNode;
9
+ icon?: React.ComponentType;
10
+ } & ({
11
+ color?: string;
12
+ theme?: never;
13
+ } | {
14
+ color?: never;
15
+ theme: Record<keyof typeof THEMES, string>;
16
+ })>;
17
+ declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<"div"> & {
18
+ config: ChartConfig;
19
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
20
+ }): React.JSX.Element;
21
+ declare const CHART_COLORS: readonly ["var(--chart-1, var(--color-primary))", "var(--chart-2, var(--color-accent-blue))", "var(--chart-3, var(--color-accent-green))", "var(--chart-4, var(--color-accent-amber))", "var(--chart-5, var(--color-accent-red))", "var(--chart-6, var(--color-text-muted))"];
22
+ declare const ChartStyle: ({ id, config }: {
23
+ id: string;
24
+ config: ChartConfig;
25
+ }) => React.JSX.Element | null;
26
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
27
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
28
+ hideLabel?: boolean;
29
+ hideIndicator?: boolean;
30
+ indicator?: "line" | "dot" | "dashed";
31
+ nameKey?: string;
32
+ labelKey?: string;
33
+ }): React.JSX.Element | null;
34
+ declare const ChartLegend: typeof RechartsPrimitive.Legend;
35
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & {
36
+ hideIcon?: boolean;
37
+ nameKey?: string;
38
+ } & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign">): React.JSX.Element | null;
39
+ export { CHART_COLORS, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, };
40
+ //# sourceMappingURL=chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAA;AAI7C,QAAA,MAAM,MAAM;aAAK,KAAK,EAAE,EAAE;aAAE,IAAI,EAAE,OAAO;CAAW,CAAA;AAEpD,MAAM,MAAM,WAAW,GAAG,MAAM,CAC9B,MAAM,EACN;IACE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,IAAI,CAAC,EA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