@pago-sh/ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/.turbo/turbo-build.log +195 -0
  2. package/CHANGELOG.md +47 -0
  3. package/README.md +22 -0
  4. package/components.json +17 -0
  5. package/dist/chunk-2RCGDEGJ.mjs +1 -0
  6. package/dist/chunk-3GDNSYGJ.mjs +1 -0
  7. package/dist/chunk-4TCUGB6E.mjs +1 -0
  8. package/dist/chunk-6XCXQA5L.mjs +1 -0
  9. package/dist/chunk-BBYR3CIF.mjs +1 -0
  10. package/dist/chunk-CFBUY7KY.mjs +1 -0
  11. package/dist/chunk-CHG2VB73.mjs +1 -0
  12. package/dist/chunk-GCVBVZU7.mjs +1 -0
  13. package/dist/chunk-HRGUR4R2.mjs +1 -0
  14. package/dist/chunk-IVU4SSCD.mjs +1 -0
  15. package/dist/chunk-N6WI5TGM.mjs +1 -0
  16. package/dist/chunk-OTKGECM3.mjs +1 -0
  17. package/dist/chunk-SRZFZUN4.mjs +1 -0
  18. package/dist/chunk-VPECET7P.mjs +1 -0
  19. package/dist/chunk-WQPSZXQS.mjs +1 -0
  20. package/dist/chunk-YXNT3UEO.mjs +1 -0
  21. package/dist/components/atoms/Accordion.d.mts +20 -0
  22. package/dist/components/atoms/Accordion.d.ts +20 -0
  23. package/dist/components/atoms/Accordion.js +1 -0
  24. package/dist/components/atoms/Accordion.mjs +1 -0
  25. package/dist/components/atoms/Card.d.mts +18 -0
  26. package/dist/components/atoms/Card.d.ts +18 -0
  27. package/dist/components/atoms/Card.js +1 -0
  28. package/dist/components/atoms/Card.mjs +1 -0
  29. package/dist/components/atoms/Combobox.d.mts +24 -0
  30. package/dist/components/atoms/Combobox.d.ts +24 -0
  31. package/dist/components/atoms/Combobox.js +1 -0
  32. package/dist/components/atoms/Combobox.mjs +1 -0
  33. package/dist/components/atoms/CopyToClipboardInput.d.mts +12 -0
  34. package/dist/components/atoms/CopyToClipboardInput.d.ts +12 -0
  35. package/dist/components/atoms/CopyToClipboardInput.js +1 -0
  36. package/dist/components/atoms/CopyToClipboardInput.mjs +1 -0
  37. package/dist/components/atoms/CountryPicker.d.mts +16 -0
  38. package/dist/components/atoms/CountryPicker.d.ts +16 -0
  39. package/dist/components/atoms/CountryPicker.js +1 -0
  40. package/dist/components/atoms/CountryPicker.mjs +1 -0
  41. package/dist/components/atoms/CountryStatePicker.d.mts +18 -0
  42. package/dist/components/atoms/CountryStatePicker.d.ts +18 -0
  43. package/dist/components/atoms/CountryStatePicker.js +1 -0
  44. package/dist/components/atoms/CountryStatePicker.mjs +1 -0
  45. package/dist/components/atoms/DateTimePicker.d.mts +10 -0
  46. package/dist/components/atoms/DateTimePicker.d.ts +10 -0
  47. package/dist/components/atoms/DateTimePicker.js +1 -0
  48. package/dist/components/atoms/DateTimePicker.mjs +1 -0
  49. package/dist/components/atoms/DropdownMenu.d.mts +22 -0
  50. package/dist/components/atoms/DropdownMenu.d.ts +22 -0
  51. package/dist/components/atoms/DropdownMenu.js +1 -0
  52. package/dist/components/atoms/DropdownMenu.mjs +1 -0
  53. package/dist/components/atoms/FormattedDateTime.d.mts +10 -0
  54. package/dist/components/atoms/FormattedDateTime.d.ts +10 -0
  55. package/dist/components/atoms/FormattedDateTime.js +1 -0
  56. package/dist/components/atoms/FormattedDateTime.mjs +1 -0
  57. package/dist/components/atoms/FormattedInterval.d.mts +9 -0
  58. package/dist/components/atoms/FormattedInterval.d.ts +9 -0
  59. package/dist/components/atoms/FormattedInterval.js +1 -0
  60. package/dist/components/atoms/FormattedInterval.mjs +1 -0
  61. package/dist/components/atoms/InputOTP.d.mts +4 -0
  62. package/dist/components/atoms/InputOTP.d.ts +4 -0
  63. package/dist/components/atoms/InputOTP.js +1 -0
  64. package/dist/components/atoms/InputOTP.mjs +1 -0
  65. package/dist/components/atoms/MoneyInput.d.mts +21 -0
  66. package/dist/components/atoms/MoneyInput.d.ts +21 -0
  67. package/dist/components/atoms/MoneyInput.js +1 -0
  68. package/dist/components/atoms/MoneyInput.mjs +1 -0
  69. package/dist/components/atoms/Paginator.d.mts +21 -0
  70. package/dist/components/atoms/Paginator.d.ts +21 -0
  71. package/dist/components/atoms/Paginator.js +1 -0
  72. package/dist/components/atoms/Paginator.mjs +1 -0
  73. package/dist/components/atoms/PagoTimeAgo.d.mts +8 -0
  74. package/dist/components/atoms/PagoTimeAgo.d.ts +8 -0
  75. package/dist/components/atoms/PagoTimeAgo.js +1 -0
  76. package/dist/components/atoms/PagoTimeAgo.mjs +1 -0
  77. package/dist/components/atoms/PercentageInput.d.mts +19 -0
  78. package/dist/components/atoms/PercentageInput.d.ts +19 -0
  79. package/dist/components/atoms/PercentageInput.js +1 -0
  80. package/dist/components/atoms/PercentageInput.mjs +1 -0
  81. package/dist/components/atoms/ShadowBox.d.mts +14 -0
  82. package/dist/components/atoms/ShadowBox.d.ts +14 -0
  83. package/dist/components/atoms/ShadowBox.js +1 -0
  84. package/dist/components/atoms/ShadowBox.mjs +1 -0
  85. package/dist/components/atoms/ShadowBoxOnMd.d.mts +6 -0
  86. package/dist/components/atoms/ShadowBoxOnMd.d.ts +6 -0
  87. package/dist/components/atoms/ShadowBoxOnMd.js +1 -0
  88. package/dist/components/atoms/ShadowBoxOnMd.mjs +1 -0
  89. package/dist/components/atoms/Sidebar.d.mts +11 -0
  90. package/dist/components/atoms/Sidebar.d.ts +11 -0
  91. package/dist/components/atoms/Sidebar.js +1 -0
  92. package/dist/components/atoms/Sidebar.mjs +1 -0
  93. package/dist/components/molecules/Banner.d.mts +11 -0
  94. package/dist/components/molecules/Banner.d.ts +11 -0
  95. package/dist/components/molecules/Banner.js +1 -0
  96. package/dist/components/molecules/Banner.mjs +1 -0
  97. package/dist/components/ui/accordion.d.mts +19 -0
  98. package/dist/components/ui/accordion.d.ts +19 -0
  99. package/dist/components/ui/accordion.js +1 -0
  100. package/dist/components/ui/accordion.mjs +1 -0
  101. package/dist/components/ui/alert-dialog.d.mts +41 -0
  102. package/dist/components/ui/alert-dialog.d.ts +41 -0
  103. package/dist/components/ui/alert-dialog.js +1 -0
  104. package/dist/components/ui/alert-dialog.mjs +1 -0
  105. package/dist/components/ui/calendar.d.mts +12 -0
  106. package/dist/components/ui/calendar.d.ts +12 -0
  107. package/dist/components/ui/calendar.js +1 -0
  108. package/dist/components/ui/calendar.mjs +1 -0
  109. package/dist/components/ui/card.d.mts +23 -0
  110. package/dist/components/ui/card.d.ts +23 -0
  111. package/dist/components/ui/card.js +1 -0
  112. package/dist/components/ui/card.mjs +1 -0
  113. package/dist/components/ui/chart.d.mts +55 -0
  114. package/dist/components/ui/chart.d.ts +55 -0
  115. package/dist/components/ui/chart.js +7 -0
  116. package/dist/components/ui/chart.mjs +7 -0
  117. package/dist/components/ui/checkbox.d.mts +2 -0
  118. package/dist/components/ui/checkbox.d.ts +2 -0
  119. package/dist/components/ui/checkbox.js +1 -0
  120. package/dist/components/ui/checkbox.mjs +1 -0
  121. package/dist/components/ui/command.d.mts +36 -0
  122. package/dist/components/ui/command.d.ts +36 -0
  123. package/dist/components/ui/command.js +1 -0
  124. package/dist/components/ui/command.mjs +1 -0
  125. package/dist/components/ui/dialog.d.mts +34 -0
  126. package/dist/components/ui/dialog.d.ts +34 -0
  127. package/dist/components/ui/dialog.js +1 -0
  128. package/dist/components/ui/dialog.mjs +1 -0
  129. package/dist/components/ui/dropdown-menu.d.mts +23 -0
  130. package/dist/components/ui/dropdown-menu.d.ts +23 -0
  131. package/dist/components/ui/dropdown-menu.js +1 -0
  132. package/dist/components/ui/dropdown-menu.mjs +1 -0
  133. package/dist/components/ui/form.d.mts +43 -0
  134. package/dist/components/ui/form.d.ts +43 -0
  135. package/dist/components/ui/form.js +1 -0
  136. package/dist/components/ui/form.mjs +1 -0
  137. package/dist/components/ui/input-otp.d.mts +21 -0
  138. package/dist/components/ui/input-otp.d.ts +21 -0
  139. package/dist/components/ui/input-otp.js +1 -0
  140. package/dist/components/ui/input-otp.mjs +1 -0
  141. package/dist/components/ui/label.d.mts +9 -0
  142. package/dist/components/ui/label.d.ts +9 -0
  143. package/dist/components/ui/label.js +1 -0
  144. package/dist/components/ui/label.mjs +1 -0
  145. package/dist/components/ui/popover.d.mts +12 -0
  146. package/dist/components/ui/popover.d.ts +12 -0
  147. package/dist/components/ui/popover.js +1 -0
  148. package/dist/components/ui/popover.mjs +1 -0
  149. package/dist/components/ui/radio-group.d.mts +14 -0
  150. package/dist/components/ui/radio-group.d.ts +14 -0
  151. package/dist/components/ui/radio-group.js +1 -0
  152. package/dist/components/ui/radio-group.mjs +1 -0
  153. package/dist/components/ui/separator.d.mts +10 -0
  154. package/dist/components/ui/separator.d.ts +10 -0
  155. package/dist/components/ui/separator.js +1 -0
  156. package/dist/components/ui/separator.mjs +1 -0
  157. package/dist/components/ui/sheet.d.mts +43 -0
  158. package/dist/components/ui/sheet.d.ts +43 -0
  159. package/dist/components/ui/sheet.js +1 -0
  160. package/dist/components/ui/sheet.mjs +1 -0
  161. package/dist/components/ui/sidebar.d.mts +149 -0
  162. package/dist/components/ui/sidebar.d.ts +149 -0
  163. package/dist/components/ui/sidebar.js +1 -0
  164. package/dist/components/ui/sidebar.mjs +1 -0
  165. package/dist/components/ui/tooltip.d.mts +1 -0
  166. package/dist/components/ui/tooltip.d.ts +1 -0
  167. package/dist/components/ui/tooltip.js +1 -0
  168. package/dist/components/ui/tooltip.mjs +1 -0
  169. package/dist/hooks/theming.d.mts +76 -0
  170. package/dist/hooks/theming.d.ts +76 -0
  171. package/dist/hooks/theming.js +1 -0
  172. package/dist/hooks/theming.mjs +1 -0
  173. package/dist/hooks/use-mobile.d.mts +3 -0
  174. package/dist/hooks/use-mobile.d.ts +3 -0
  175. package/dist/hooks/use-mobile.js +1 -0
  176. package/dist/hooks/use-mobile.mjs +1 -0
  177. package/dist/lib/meterUnit.d.mts +34 -0
  178. package/dist/lib/meterUnit.d.ts +34 -0
  179. package/dist/lib/meterUnit.js +1 -0
  180. package/dist/lib/meterUnit.mjs +1 -0
  181. package/dist/lib/utils.d.mts +5 -0
  182. package/dist/lib/utils.d.ts +5 -0
  183. package/dist/lib/utils.js +1 -0
  184. package/dist/lib/utils.mjs +1 -0
  185. package/eslint.config.mjs +18 -0
  186. package/package.json +74 -0
  187. package/src/components/atoms/Accordion.tsx +56 -0
  188. package/src/components/atoms/Card.tsx +52 -0
  189. package/src/components/atoms/Combobox.tsx +166 -0
  190. package/src/components/atoms/CopyToClipboardInput.tsx +72 -0
  191. package/src/components/atoms/CountryPicker.tsx +81 -0
  192. package/src/components/atoms/CountryStatePicker.tsx +155 -0
  193. package/src/components/atoms/DateTimePicker.tsx +69 -0
  194. package/src/components/atoms/DropdownMenu.tsx +68 -0
  195. package/src/components/atoms/FormattedDateTime.tsx +58 -0
  196. package/src/components/atoms/FormattedInterval.tsx +81 -0
  197. package/src/components/atoms/InputOTP.tsx +7 -0
  198. package/src/components/atoms/MoneyInput.tsx +297 -0
  199. package/src/components/atoms/Paginator.tsx +227 -0
  200. package/src/components/atoms/PagoTimeAgo.tsx +19 -0
  201. package/src/components/atoms/PercentageInput.tsx +97 -0
  202. package/src/components/atoms/ShadowBox.tsx +26 -0
  203. package/src/components/atoms/ShadowBoxOnMd.tsx +20 -0
  204. package/src/components/atoms/Sidebar.tsx +1 -0
  205. package/src/components/molecules/Banner.tsx +42 -0
  206. package/src/components/ui/accordion.tsx +63 -0
  207. package/src/components/ui/alert-dialog.tsx +147 -0
  208. package/src/components/ui/calendar.tsx +81 -0
  209. package/src/components/ui/card.tsx +47 -0
  210. package/src/components/ui/chart.tsx +372 -0
  211. package/src/components/ui/checkbox.tsx +3 -0
  212. package/src/components/ui/command.tsx +133 -0
  213. package/src/components/ui/dialog.tsx +127 -0
  214. package/src/components/ui/dropdown-menu.tsx +74 -0
  215. package/src/components/ui/form.tsx +180 -0
  216. package/src/components/ui/input-otp.tsx +68 -0
  217. package/src/components/ui/label.tsx +25 -0
  218. package/src/components/ui/popover.tsx +34 -0
  219. package/src/components/ui/radio-group.tsx +46 -0
  220. package/src/components/ui/separator.tsx +29 -0
  221. package/src/components/ui/sheet.tsx +149 -0
  222. package/src/components/ui/sidebar.tsx +742 -0
  223. package/src/components/ui/tooltip.tsx +8 -0
  224. package/src/hooks/theming.ts +87 -0
  225. package/src/hooks/use-mobile.ts +19 -0
  226. package/src/lib/meterUnit.ts +52 -0
  227. package/src/lib/utils.ts +6 -0
  228. package/tsconfig.json +15 -0
  229. package/tsup.config.ts +11 -0
@@ -0,0 +1,149 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { ComponentProps } from 'react';
4
+ import { Button } from '@pago-sh/orbit/ui/button';
5
+ import { Input } from '@pago-sh/orbit/ui/input';
6
+ import { Separator } from './separator.mjs';
7
+ import { SheetContent, Sheet } from './sheet.mjs';
8
+ import '@radix-ui/react-separator';
9
+ import 'class-variance-authority/types';
10
+ import '@radix-ui/react-dialog';
11
+ import 'class-variance-authority';
12
+
13
+ type SidebarContext = {
14
+ state: 'expanded' | 'collapsed';
15
+ open: boolean;
16
+ setOpen: (open: boolean) => void;
17
+ openMobile: boolean;
18
+ setOpenMobile: (open: boolean) => void;
19
+ isMobile: boolean;
20
+ toggleSidebar: () => void;
21
+ };
22
+ declare const SidebarContext: React.Context<SidebarContext | null>;
23
+ declare function useSidebar(): SidebarContext;
24
+ declare const SidebarProvider: {
25
+ ({ ref, defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: {
26
+ ref?: React.RefObject<HTMLDivElement>;
27
+ defaultOpen?: boolean;
28
+ open?: boolean;
29
+ onOpenChange?: (open: boolean) => void;
30
+ className?: string;
31
+ style?: React.CSSProperties;
32
+ children: React.ReactNode;
33
+ } & React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
34
+ displayName: string;
35
+ };
36
+ declare const Sidebar: {
37
+ ({ ref, side, variant, collapsible, className, children, ...props }: {
38
+ ref?: React.RefObject<HTMLDivElement>;
39
+ side?: ComponentProps<typeof SheetContent>["side"];
40
+ variant?: "sidebar" | "floating" | "inset";
41
+ collapsible?: "none" | "offcanvas" | "icon";
42
+ className?: string;
43
+ children: React.ReactNode;
44
+ } & React.ComponentProps<typeof Sheet>): react_jsx_runtime.JSX.Element;
45
+ displayName: string;
46
+ };
47
+ declare const SidebarTrigger: {
48
+ ({ ref, className, onClick, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
49
+ displayName: string;
50
+ };
51
+ declare const SidebarRail: {
52
+ ({ ref, className, ...props }: React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
53
+ displayName: string;
54
+ };
55
+ declare const SidebarInset: {
56
+ ({ ref, className, ...props }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
57
+ displayName: string;
58
+ };
59
+ declare const SidebarInput: {
60
+ ({ ref, className, ...props }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
61
+ displayName: string;
62
+ };
63
+ declare const SidebarHeader: {
64
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
65
+ displayName: string;
66
+ };
67
+ declare const SidebarFooter: {
68
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
69
+ displayName: string;
70
+ };
71
+ declare const SidebarSeparator: {
72
+ ({ ref, className, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
73
+ displayName: string;
74
+ };
75
+ declare const SidebarContent: {
76
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
77
+ displayName: string;
78
+ };
79
+ declare const SidebarGroup: {
80
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
81
+ displayName: string;
82
+ };
83
+ declare const SidebarGroupLabel: {
84
+ ({ ref, className, asChild, ...props }: {
85
+ asChild?: boolean;
86
+ } & React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
87
+ displayName: string;
88
+ };
89
+ declare const SidebarGroupAction: {
90
+ ({ ref, className, asChild, ...props }: {
91
+ asChild?: boolean;
92
+ } & React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
93
+ displayName: string;
94
+ };
95
+ declare const SidebarGroupContent: {
96
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
97
+ displayName: string;
98
+ };
99
+ declare const SidebarMenu: {
100
+ ({ ref, className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
101
+ displayName: string;
102
+ };
103
+ declare const SidebarMenuItem: {
104
+ ({ ref, className, ...props }: React.ComponentProps<"li"> & {
105
+ ref?: React.RefObject<HTMLLIElement>;
106
+ }): react_jsx_runtime.JSX.Element;
107
+ displayName: string;
108
+ };
109
+ declare const SidebarMenuButton: {
110
+ ({ ref, asChild, isActive, variant, size, tooltip, className, ...props }: {
111
+ asChild?: boolean;
112
+ isActive?: boolean;
113
+ variant?: "default" | "outline";
114
+ size?: "default" | "sm" | "lg";
115
+ tooltip?: string | {
116
+ children: string;
117
+ };
118
+ } & React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
119
+ displayName: string;
120
+ };
121
+ declare const SidebarMenuAction: {
122
+ ({ ref, className, asChild, showOnHover, ...props }: {
123
+ asChild?: boolean;
124
+ showOnHover?: boolean;
125
+ } & React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
126
+ displayName: string;
127
+ };
128
+ declare const SidebarMenuBadge: {
129
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
130
+ displayName: string;
131
+ };
132
+ declare const SidebarMenuSub: {
133
+ ({ ref, className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
134
+ displayName: string;
135
+ };
136
+ declare const SidebarMenuSubItem: {
137
+ ({ ref, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
138
+ displayName: string;
139
+ };
140
+ declare const SidebarMenuSubButton: {
141
+ ({ ref, asChild, size, isActive, className, ...props }: {
142
+ asChild?: boolean;
143
+ size?: "sm" | "md";
144
+ isActive?: boolean;
145
+ } & React.ComponentProps<"a">): react_jsx_runtime.JSX.Element;
146
+ displayName: string;
147
+ };
148
+
149
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
@@ -0,0 +1,149 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { ComponentProps } from 'react';
4
+ import { Button } from '@pago-sh/orbit/ui/button';
5
+ import { Input } from '@pago-sh/orbit/ui/input';
6
+ import { Separator } from './separator.js';
7
+ import { SheetContent, Sheet } from './sheet.js';
8
+ import '@radix-ui/react-separator';
9
+ import 'class-variance-authority/types';
10
+ import '@radix-ui/react-dialog';
11
+ import 'class-variance-authority';
12
+
13
+ type SidebarContext = {
14
+ state: 'expanded' | 'collapsed';
15
+ open: boolean;
16
+ setOpen: (open: boolean) => void;
17
+ openMobile: boolean;
18
+ setOpenMobile: (open: boolean) => void;
19
+ isMobile: boolean;
20
+ toggleSidebar: () => void;
21
+ };
22
+ declare const SidebarContext: React.Context<SidebarContext | null>;
23
+ declare function useSidebar(): SidebarContext;
24
+ declare const SidebarProvider: {
25
+ ({ ref, defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: {
26
+ ref?: React.RefObject<HTMLDivElement>;
27
+ defaultOpen?: boolean;
28
+ open?: boolean;
29
+ onOpenChange?: (open: boolean) => void;
30
+ className?: string;
31
+ style?: React.CSSProperties;
32
+ children: React.ReactNode;
33
+ } & React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
34
+ displayName: string;
35
+ };
36
+ declare const Sidebar: {
37
+ ({ ref, side, variant, collapsible, className, children, ...props }: {
38
+ ref?: React.RefObject<HTMLDivElement>;
39
+ side?: ComponentProps<typeof SheetContent>["side"];
40
+ variant?: "sidebar" | "floating" | "inset";
41
+ collapsible?: "none" | "offcanvas" | "icon";
42
+ className?: string;
43
+ children: React.ReactNode;
44
+ } & React.ComponentProps<typeof Sheet>): react_jsx_runtime.JSX.Element;
45
+ displayName: string;
46
+ };
47
+ declare const SidebarTrigger: {
48
+ ({ ref, className, onClick, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
49
+ displayName: string;
50
+ };
51
+ declare const SidebarRail: {
52
+ ({ ref, className, ...props }: React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
53
+ displayName: string;
54
+ };
55
+ declare const SidebarInset: {
56
+ ({ ref, className, ...props }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
57
+ displayName: string;
58
+ };
59
+ declare const SidebarInput: {
60
+ ({ ref, className, ...props }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
61
+ displayName: string;
62
+ };
63
+ declare const SidebarHeader: {
64
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
65
+ displayName: string;
66
+ };
67
+ declare const SidebarFooter: {
68
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
69
+ displayName: string;
70
+ };
71
+ declare const SidebarSeparator: {
72
+ ({ ref, className, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
73
+ displayName: string;
74
+ };
75
+ declare const SidebarContent: {
76
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
77
+ displayName: string;
78
+ };
79
+ declare const SidebarGroup: {
80
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
81
+ displayName: string;
82
+ };
83
+ declare const SidebarGroupLabel: {
84
+ ({ ref, className, asChild, ...props }: {
85
+ asChild?: boolean;
86
+ } & React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
87
+ displayName: string;
88
+ };
89
+ declare const SidebarGroupAction: {
90
+ ({ ref, className, asChild, ...props }: {
91
+ asChild?: boolean;
92
+ } & React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
93
+ displayName: string;
94
+ };
95
+ declare const SidebarGroupContent: {
96
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
97
+ displayName: string;
98
+ };
99
+ declare const SidebarMenu: {
100
+ ({ ref, className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
101
+ displayName: string;
102
+ };
103
+ declare const SidebarMenuItem: {
104
+ ({ ref, className, ...props }: React.ComponentProps<"li"> & {
105
+ ref?: React.RefObject<HTMLLIElement>;
106
+ }): react_jsx_runtime.JSX.Element;
107
+ displayName: string;
108
+ };
109
+ declare const SidebarMenuButton: {
110
+ ({ ref, asChild, isActive, variant, size, tooltip, className, ...props }: {
111
+ asChild?: boolean;
112
+ isActive?: boolean;
113
+ variant?: "default" | "outline";
114
+ size?: "default" | "sm" | "lg";
115
+ tooltip?: string | {
116
+ children: string;
117
+ };
118
+ } & React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
119
+ displayName: string;
120
+ };
121
+ declare const SidebarMenuAction: {
122
+ ({ ref, className, asChild, showOnHover, ...props }: {
123
+ asChild?: boolean;
124
+ showOnHover?: boolean;
125
+ } & React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
126
+ displayName: string;
127
+ };
128
+ declare const SidebarMenuBadge: {
129
+ ({ ref, className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
130
+ displayName: string;
131
+ };
132
+ declare const SidebarMenuSub: {
133
+ ({ ref, className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
134
+ displayName: string;
135
+ };
136
+ declare const SidebarMenuSubItem: {
137
+ ({ ref, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
138
+ displayName: string;
139
+ };
140
+ declare const SidebarMenuSubButton: {
141
+ ({ ref, asChild, size, isActive, className, ...props }: {
142
+ asChild?: boolean;
143
+ size?: "sm" | "md";
144
+ isActive?: boolean;
145
+ } & React.ComponentProps<"a">): react_jsx_runtime.JSX.Element;
146
+ displayName: string;
147
+ };
148
+
149
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
@@ -0,0 +1 @@
1
+ "use strict";"use client";var ge=Object.create;var R=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var ve=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty;var ye=(e,t)=>{for(var a in t)R(e,a,{get:t[a],enumerable:!0})},O=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ve(t))!xe.call(e,n)&&n!==a&&R(e,n,{get:()=>t[n],enumerable:!(i=he(t,n))||i.enumerable});return e};var P=(e,t,a)=>(a=e!=null?ge(Se(e)):{},O(t||!e||!e.__esModule?R(a,"default",{value:e,enumerable:!0}):a,e)),Ce=e=>O(R({},"__esModule",{value:!0}),e);var Be={};ye(Be,{Sidebar:()=>q,SidebarContent:()=>te,SidebarFooter:()=>Z,SidebarGroup:()=>ae,SidebarGroupAction:()=>re,SidebarGroupContent:()=>ie,SidebarGroupLabel:()=>oe,SidebarHeader:()=>Q,SidebarInput:()=>J,SidebarInset:()=>Y,SidebarMenu:()=>ne,SidebarMenuAction:()=>le,SidebarMenuBadge:()=>ce,SidebarMenuButton:()=>de,SidebarMenuItem:()=>se,SidebarMenuSub:()=>pe,SidebarMenuSubButton:()=>ue,SidebarMenuSubItem:()=>be,SidebarProvider:()=>$,SidebarRail:()=>U,SidebarSeparator:()=>ee,SidebarTrigger:()=>X,useSidebar:()=>y});module.exports=Ce(Be);var v=require("@radix-ui/react-slot"),G=require("class-variance-authority"),K=require("lucide-react"),l=P(require("react")),W=require("@pago-sh/orbit/ui/button"),j=require("@pago-sh/orbit/ui/input");var T=P(require("@radix-ui/react-separator"));var k=require("tailwind-merge");function r(...e){return(0,k.twMerge)(e)}var D=require("react/jsx-runtime"),I=({ref:e,className:t,orientation:a="horizontal",decorative:i=!0,...n})=>(0,D.jsx)(T.Root,{ref:e,decorative:i,orientation:a,className:r("bg-border shrink-0",a==="horizontal"?"h-px w-full":"h-full w-px",t),...n});I.displayName=T.Root.displayName;var s=P(require("@radix-ui/react-dialog")),B=require("class-variance-authority"),A=require("lucide-react");var c=require("react/jsx-runtime"),L=s.Root;var we=s.Portal,H=({ref:e,className:t,...a})=>(0,c.jsx)(s.Overlay,{className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t),...a,ref:e});H.displayName=s.Overlay.displayName;var Ne=(0,B.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),_=({ref:e,side:t="right",className:a,children:i,...n})=>(0,c.jsxs)(we,{children:[(0,c.jsx)(H,{}),(0,c.jsxs)(s.Content,{ref:e,className:r(Ne({side:t}),a),...n,children:[(0,c.jsxs)(s.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,c.jsx)(A.X,{className:"h-4 w-4"}),(0,c.jsx)("span",{className:"sr-only",children:"Close"})]}),i]})]});_.displayName=s.Content.displayName;var Re=({className:e,...t})=>(0,c.jsx)("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});Re.displayName="SheetHeader";var Pe=({className:e,...t})=>(0,c.jsx)("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Pe.displayName="SheetFooter";var Me=({ref:e,className:t,...a})=>(0,c.jsx)(s.Title,{ref:e,className:r("text-foreground text-lg font-semibold",t),...a});Me.displayName=s.Title.displayName;var Te=({ref:e,className:t,...a})=>(0,c.jsx)(s.Description,{ref:e,className:r("text-muted-foreground text-sm",t),...a});Te.displayName=s.Description.displayName;var p=require("@pago-sh/orbit/Tooltip");var M=P(require("react")),E=768;function V(){let[e,t]=M.useState(void 0);return M.useEffect(()=>{let a=window.matchMedia(`(max-width: ${E-1}px)`),i=()=>{t(window.innerWidth<E)};return a.addEventListener("change",i),t(window.innerWidth<E),()=>a.removeEventListener("change",i)},[]),!!e}var o=require("react/jsx-runtime"),Ie="sidebar_state",_e=3600*24*7,Ee="14rem",ze="18rem",Oe="3rem",ke="b",F=l.createContext(null);function y(){let e=l.useContext(F);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var $=({ref:e,defaultOpen:t=!0,open:a,onOpenChange:i,className:n,style:d,children:m,...S})=>{let u=V(),[h,f]=l.useState(!1),[C,me]=l.useState(t),x=a??C,w=l.useCallback(b=>{let g=typeof b=="function"?b(x):b;i?i(g):me(g),document.cookie=`${Ie}=${g}; path=/; max-age=${_e}`},[i,x]),N=l.useCallback(()=>u?f(b=>!b):w(b=>!b),[u,w,f]);l.useEffect(()=>{let b=g=>{g.key===ke&&(g.metaKey||g.ctrlKey)&&(g.preventDefault(),N())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[N]);let z=x?"expanded":"collapsed",fe=l.useMemo(()=>({state:z,open:x,setOpen:w,isMobile:u,openMobile:h,setOpenMobile:f,toggleSidebar:N}),[z,x,w,u,h,f,N]);return(0,o.jsx)(F.Provider,{value:fe,children:(0,o.jsx)(p.TooltipProvider,{delayDuration:0,children:(0,o.jsx)("div",{style:{"--sidebar-width":Ee,"--sidebar-width-icon":Oe,...d},className:r("group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full lg:overflow-clip",n),ref:e,...S,children:m})})})};$.displayName="SidebarProvider";var q=({ref:e,side:t="left",variant:a="sidebar",collapsible:i="offcanvas",className:n,children:d,...m})=>{let{isMobile:S,state:u,openMobile:h,setOpenMobile:f}=y();return i==="none"?(0,o.jsx)("div",{className:r("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),ref:e,...m,children:d}):S?(0,o.jsx)(L,{open:h,onOpenChange:f,...m,children:(0,o.jsx)(_,{"data-sidebar":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":ze},side:t,children:(0,o.jsx)("div",{className:"flex h-full w-full flex-col",children:d})})}):(0,o.jsxs)("div",{ref:e,className:"text-sidebar-foreground group peer hidden md:block","data-state":u,"data-collapsible":u==="collapsed"?i:"","data-variant":a,"data-side":t,children:[(0,o.jsx)("div",{className:r("relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,o.jsx)("div",{className:r("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...m,children:(0,o.jsx)("div",{"data-sidebar":"sidebar",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:d})})]})};q.displayName="Sidebar";var X=({ref:e,className:t,onClick:a,...i})=>{let{toggleSidebar:n}=y();return(0,o.jsxs)(W.Button,{ref:e,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:r("h-7 w-7",t),onClick:d=>{a?.(d),n()},...i,children:[(0,o.jsx)(K.PanelLeft,{}),(0,o.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})};X.displayName="SidebarTrigger";var U=({ref:e,className:t,...a})=>{let{toggleSidebar:i}=y();return(0,o.jsx)("button",{ref:e,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:r("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...a})};U.displayName="SidebarRail";var Y=({ref:e,className:t,...a})=>(0,o.jsx)("main",{ref:e,className:r("bg-background relative flex min-h-svh flex-1 flex-col","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2",t),...a});Y.displayName="SidebarInset";var J=({ref:e,className:t,...a})=>(0,o.jsx)(j.Input,{ref:e,"data-sidebar":"input",className:r("bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2",t),...a});J.displayName="SidebarInput";var Q=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"header",className:r("flex flex-col gap-2 p-2",t),...a});Q.displayName="SidebarHeader";var Z=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"footer",className:r("flex flex-col gap-2 p-2",t),...a});Z.displayName="SidebarFooter";var ee=({ref:e,className:t,...a})=>(0,o.jsx)(I,{ref:e,"data-sidebar":"separator",className:r("bg-sidebar-border mx-2 w-auto",t),...a});ee.displayName="SidebarSeparator";var te=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"content",className:r("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a});te.displayName="SidebarContent";var ae=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"group",className:r("relative flex w-full min-w-0 flex-col p-2",t),...a});ae.displayName="SidebarGroup";var oe=({ref:e,className:t,asChild:a=!1,...i})=>(0,o.jsx)(a?v.Slot:"div",{ref:e,"data-sidebar":"group-label",className:r("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...i});oe.displayName="SidebarGroupLabel";var re=({ref:e,className:t,asChild:a=!1,...i})=>(0,o.jsx)(a?v.Slot:"button",{ref:e,"data-sidebar":"group-action",className:r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t),...i});re.displayName="SidebarGroupAction";var ie=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"group-content",className:r("w-full text-sm",t),...a});ie.displayName="SidebarGroupContent";var ne=({ref:e,className:t,...a})=>(0,o.jsx)("ul",{ref:e,"data-sidebar":"menu",className:r("flex w-full min-w-0 flex-col gap-1",t),...a});ne.displayName="SidebarMenu";var se=({ref:e,className:t,...a})=>(0,o.jsx)("li",{ref:e,"data-sidebar":"menu-item",className:r("group/menu-item relative",t),...a});se.displayName="SidebarMenuItem";var De=(0,G.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white dark:data-[active=true]:bg-transparent dark:data-[active=true]:border-transparent dark:data-[active=true]:text-white data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"[&:not([data-active=true])]:hover:bg-sidebar-accent [&:not([data-active=true])]:hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),de=({ref:e,asChild:t=!1,isActive:a=!1,variant:i="default",size:n="default",tooltip:d,className:m,...S})=>{let u=t?v.Slot:"button",{isMobile:h,state:f}=y(),C=(0,o.jsx)(u,{ref:e,"data-sidebar":"menu-button","data-size":n,"data-active":a,className:r(De({variant:i,size:n}),m),...S});return d?(typeof d=="string"&&(d={children:d}),(0,o.jsxs)(p.Tooltip,{children:[(0,o.jsx)(p.TooltipTrigger,{asChild:!0,children:C}),(0,o.jsx)(p.TooltipContent,{side:"right",align:"center",hidden:f!=="collapsed"||h,...d})]})):C};de.displayName="SidebarMenuButton";var le=({ref:e,className:t,asChild:a=!1,showOnHover:i=!1,...n})=>(0,o.jsx)(a?v.Slot:"button",{ref:e,"data-sidebar":"menu-action",className:r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",i&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),...n});le.displayName="SidebarMenuAction";var ce=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"menu-badge",className:r("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),...a});ce.displayName="SidebarMenuBadge";var pe=({ref:e,className:t,...a})=>(0,o.jsx)("ul",{ref:e,"data-sidebar":"menu-sub",className:r("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...a});pe.displayName="SidebarMenuSub";var be=({ref:e,...t})=>(0,o.jsx)("li",{ref:e,...t});be.displayName="SidebarMenuSubItem";var ue=({ref:e,asChild:t=!1,size:a="md",isActive:i,className:n,...d})=>(0,o.jsx)(t?v.Slot:"a",{ref:e,"data-sidebar":"menu-sub-button","data-size":a,"data-active":i,className:r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...d});ue.displayName="SidebarMenuSubButton";0&&(module.exports={Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarSeparator,SidebarTrigger,useSidebar});
@@ -0,0 +1 @@
1
+ "use client";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w}from"../../chunk-VPECET7P.mjs";import"../../chunk-N6WI5TGM.mjs";import"../../chunk-OTKGECM3.mjs";import"../../chunk-HRGUR4R2.mjs";import"../../chunk-6XCXQA5L.mjs";import"../../chunk-CFBUY7KY.mjs";export{c as Sidebar,k as SidebarContent,i as SidebarFooter,l as SidebarGroup,n as SidebarGroupAction,o as SidebarGroupContent,m as SidebarGroupLabel,h as SidebarHeader,g as SidebarInput,f as SidebarInset,p as SidebarMenu,s as SidebarMenuAction,t as SidebarMenuBadge,r as SidebarMenuButton,q as SidebarMenuItem,u as SidebarMenuSub,w as SidebarMenuSubButton,v as SidebarMenuSubItem,b as SidebarProvider,e as SidebarRail,j as SidebarSeparator,d as SidebarTrigger,a as useSidebar};
@@ -0,0 +1 @@
1
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@pago-sh/orbit/Tooltip';
@@ -0,0 +1 @@
1
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@pago-sh/orbit/Tooltip';
@@ -0,0 +1 @@
1
+ "use strict";var T=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var d=(i,o)=>{for(var p in o)T(i,p,{get:o[p],enumerable:!0})},f=(i,o,p,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of g(o))!n.call(i,r)&&r!==p&&T(i,r,{get:()=>o[r],enumerable:!(e=l(o,r))||e.enumerable});return i};var m=i=>f(T({},"__esModule",{value:!0}),i);var v={};d(v,{Tooltip:()=>t.Tooltip,TooltipContent:()=>t.TooltipContent,TooltipProvider:()=>t.TooltipProvider,TooltipTrigger:()=>t.TooltipTrigger});module.exports=m(v);var t=require("@pago-sh/orbit/Tooltip");0&&(module.exports={Tooltip,TooltipContent,TooltipProvider,TooltipTrigger});
@@ -0,0 +1 @@
1
+ import{a,b,c,d}from"../../chunk-N6WI5TGM.mjs";export{a as Tooltip,b as TooltipContent,c as TooltipProvider,d as TooltipTrigger};
@@ -0,0 +1,76 @@
1
+ import { Appearance } from '@stripe/stripe-js';
2
+
3
+ interface ThemingPresetProps {
4
+ stripe: Appearance;
5
+ }
6
+ declare const getThemePreset: (theme: "light" | "dark") => {
7
+ stripe: {
8
+ theme: "night" | "stripe";
9
+ rules: {
10
+ '.Label': {
11
+ color: string;
12
+ fontWeight: string;
13
+ fontSize: string;
14
+ marginBottom: string;
15
+ };
16
+ '.PickerItem': {
17
+ padding: string;
18
+ backgroundColor: string;
19
+ color: string;
20
+ borderRadius: string;
21
+ boxShadow: string;
22
+ borderColor: string;
23
+ };
24
+ '.PickerItem--selected': {
25
+ backgroundColor: string;
26
+ borderColor: string;
27
+ borderWidth: string;
28
+ };
29
+ '.PickerItem--selected:hover': {
30
+ backgroundColor: string;
31
+ };
32
+ '.Input': {
33
+ padding: string;
34
+ backgroundColor: string;
35
+ color: string;
36
+ borderRadius: string;
37
+ borderColor: string;
38
+ boxShadow: string;
39
+ };
40
+ '.Input:focus': {
41
+ borderColor: string;
42
+ boxShadow: string;
43
+ };
44
+ '.Tab': {
45
+ backgroundColor: string;
46
+ borderColor: string;
47
+ };
48
+ '.Tab--selected': {
49
+ backgroundColor: string;
50
+ boxShadow: string;
51
+ border: string;
52
+ };
53
+ '.Tab:focus': {
54
+ boxShadow: string;
55
+ };
56
+ '.TabLabel--selected': {
57
+ color: string;
58
+ };
59
+ '.TabIcon--selected': {
60
+ fill: string;
61
+ };
62
+ '.Block': {
63
+ backgroundColor: string;
64
+ borderColor: string;
65
+ };
66
+ };
67
+ variables: {
68
+ borderRadius: string;
69
+ fontSizeBase: string;
70
+ spacingGridRow: string;
71
+ colorDanger: string;
72
+ };
73
+ };
74
+ };
75
+
76
+ export { type ThemingPresetProps, getThemePreset };
@@ -0,0 +1,76 @@
1
+ import { Appearance } from '@stripe/stripe-js';
2
+
3
+ interface ThemingPresetProps {
4
+ stripe: Appearance;
5
+ }
6
+ declare const getThemePreset: (theme: "light" | "dark") => {
7
+ stripe: {
8
+ theme: "night" | "stripe";
9
+ rules: {
10
+ '.Label': {
11
+ color: string;
12
+ fontWeight: string;
13
+ fontSize: string;
14
+ marginBottom: string;
15
+ };
16
+ '.PickerItem': {
17
+ padding: string;
18
+ backgroundColor: string;
19
+ color: string;
20
+ borderRadius: string;
21
+ boxShadow: string;
22
+ borderColor: string;
23
+ };
24
+ '.PickerItem--selected': {
25
+ backgroundColor: string;
26
+ borderColor: string;
27
+ borderWidth: string;
28
+ };
29
+ '.PickerItem--selected:hover': {
30
+ backgroundColor: string;
31
+ };
32
+ '.Input': {
33
+ padding: string;
34
+ backgroundColor: string;
35
+ color: string;
36
+ borderRadius: string;
37
+ borderColor: string;
38
+ boxShadow: string;
39
+ };
40
+ '.Input:focus': {
41
+ borderColor: string;
42
+ boxShadow: string;
43
+ };
44
+ '.Tab': {
45
+ backgroundColor: string;
46
+ borderColor: string;
47
+ };
48
+ '.Tab--selected': {
49
+ backgroundColor: string;
50
+ boxShadow: string;
51
+ border: string;
52
+ };
53
+ '.Tab:focus': {
54
+ boxShadow: string;
55
+ };
56
+ '.TabLabel--selected': {
57
+ color: string;
58
+ };
59
+ '.TabIcon--selected': {
60
+ fill: string;
61
+ };
62
+ '.Block': {
63
+ backgroundColor: string;
64
+ borderColor: string;
65
+ };
66
+ };
67
+ variables: {
68
+ borderRadius: string;
69
+ fontSizeBase: string;
70
+ spacingGridRow: string;
71
+ colorDanger: string;
72
+ };
73
+ };
74
+ };
75
+
76
+ export { type ThemingPresetProps, getThemePreset };
@@ -0,0 +1 @@
1
+ "use strict";var d=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var i=(r,o)=>{for(var a in o)d(r,a,{get:o[a],enumerable:!0})},n=(r,o,a,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of b(o))!g.call(r,p)&&p!==a&&d(r,p,{get:()=>o[p],enumerable:!(e=x(o,p))||e.enumerable});return r};var t=r=>n(d({},"__esModule",{value:!0}),r);var l={};i(l,{getThemePreset:()=>c});module.exports=t(l);var c=r=>{let o=r==="dark"?"none":"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px",a=r==="dark"?"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 71, 184, 0.4) 0px 0px 0px 3px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px":"rgb(255, 255, 255) 0px 0px 0px 0px, rgb(204, 224, 255) 0px 0px 0px 3px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px";return{stripe:{theme:r==="dark"?"night":"stripe",rules:{".Label":{color:r==="dark"?"white":"black",fontWeight:"500",fontSize:"14px",marginBottom:"8px"},".PickerItem":{padding:"12px",backgroundColor:r==="dark"?"rgb(23 23 25)":"white",color:r==="dark"?"#E5E5E1":"#181A1F",borderRadius:"0.75rem",boxShadow:o,borderColor:"transparent"},".PickerItem--selected":{backgroundColor:r==="dark"?"rgb(23 23 25)":"white",borderColor:"#0062FF",borderWidth:"2px"},".PickerItem--selected:hover":{backgroundColor:r==="dark"?"rgb(23 23 25)":"white"},".Input":{padding:"12px",backgroundColor:r==="dark"?"rgb(23 23 25)":"white",color:r==="dark"?"#E5E5E1":"#181A1F",borderRadius:"0.75rem",borderColor:r==="dark"?"rgb(36, 36.5, 40.5)":"#EEE",boxShadow:o},".Input:focus":{borderColor:r==="dark"?"rgb(0, 84, 219)":"rgb(102, 161, 255)",boxShadow:a},".Tab":{backgroundColor:r==="dark"?"rgb(23 23 25)":"white",borderColor:r==="dark"?"rgb(36, 36.5, 40.5)":"#EEE"},".Tab--selected":{backgroundColor:"rgb(51, 129, 255)",boxShadow:a,border:"none"},".Tab:focus":{boxShadow:a},".TabLabel--selected":{color:"white"},".TabIcon--selected":{fill:"white"},".Block":{backgroundColor:"transparent",borderColor:r==="dark"?"#353641":"#EEE"}},variables:{borderRadius:"8px",fontSizeBase:"1rem",spacingGridRow:"18px",colorDanger:r==="dark"?"#F17878":"#E64D4D"}}}};0&&(module.exports={getThemePreset});
@@ -0,0 +1 @@
1
+ var p=r=>{let a=r==="dark"?"none":"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px",o=r==="dark"?"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 71, 184, 0.4) 0px 0px 0px 3px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px":"rgb(255, 255, 255) 0px 0px 0px 0px, rgb(204, 224, 255) 0px 0px 0px 3px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px";return{stripe:{theme:r==="dark"?"night":"stripe",rules:{".Label":{color:r==="dark"?"white":"black",fontWeight:"500",fontSize:"14px",marginBottom:"8px"},".PickerItem":{padding:"12px",backgroundColor:r==="dark"?"rgb(23 23 25)":"white",color:r==="dark"?"#E5E5E1":"#181A1F",borderRadius:"0.75rem",boxShadow:a,borderColor:"transparent"},".PickerItem--selected":{backgroundColor:r==="dark"?"rgb(23 23 25)":"white",borderColor:"#0062FF",borderWidth:"2px"},".PickerItem--selected:hover":{backgroundColor:r==="dark"?"rgb(23 23 25)":"white"},".Input":{padding:"12px",backgroundColor:r==="dark"?"rgb(23 23 25)":"white",color:r==="dark"?"#E5E5E1":"#181A1F",borderRadius:"0.75rem",borderColor:r==="dark"?"rgb(36, 36.5, 40.5)":"#EEE",boxShadow:a},".Input:focus":{borderColor:r==="dark"?"rgb(0, 84, 219)":"rgb(102, 161, 255)",boxShadow:o},".Tab":{backgroundColor:r==="dark"?"rgb(23 23 25)":"white",borderColor:r==="dark"?"rgb(36, 36.5, 40.5)":"#EEE"},".Tab--selected":{backgroundColor:"rgb(51, 129, 255)",boxShadow:o,border:"none"},".Tab:focus":{boxShadow:o},".TabLabel--selected":{color:"white"},".TabIcon--selected":{fill:"white"},".Block":{backgroundColor:"transparent",borderColor:r==="dark"?"#353641":"#EEE"}},variables:{borderRadius:"8px",fontSizeBase:"1rem",spacingGridRow:"18px",colorDanger:r==="dark"?"#F17878":"#E64D4D"}}}};export{p as getThemePreset};
@@ -0,0 +1,3 @@
1
+ declare function useIsMobile(): boolean;
2
+
3
+ export { useIsMobile };
@@ -0,0 +1,3 @@
1
+ declare function useIsMobile(): boolean;
2
+
3
+ export { useIsMobile };
@@ -0,0 +1 @@
1
+ "use strict";var r=Object.create;var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var m=(e,n)=>{for(var t in n)s(e,t,{get:n[t],enumerable:!0})},c=(e,n,t,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of h(n))!f.call(e,o)&&o!==t&&s(e,o,{get:()=>n[o],enumerable:!(i=u(n,o))||i.enumerable});return e};var l=(e,n,t)=>(t=e!=null?r(w(e)):{},c(n||!e||!e.__esModule?s(t,"default",{value:e,enumerable:!0}):t,e)),E=e=>c(s({},"__esModule",{value:!0}),e);var b={};m(b,{useIsMobile:()=>M});module.exports=E(b);var a=l(require("react")),d=768;function M(){let[e,n]=a.useState(void 0);return a.useEffect(()=>{let t=window.matchMedia(`(max-width: ${d-1}px)`),i=()=>{n(window.innerWidth<d)};return t.addEventListener("change",i),n(window.innerWidth<d),()=>t.removeEventListener("change",i)},[]),!!e}0&&(module.exports={useIsMobile});
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-6XCXQA5L.mjs";export{a as useIsMobile};
@@ -0,0 +1,34 @@
1
+ type MeterUnit = 'scalar' | 'token' | 'custom';
2
+ interface MeterUnitFormat {
3
+ /**
4
+ * Factor to multiply unit_amount (in cents) by to get the price at display
5
+ * scale. For example, token uses 1_000_000 so "$0.00001/token" becomes
6
+ * "$10 / 1M tokens".
7
+ */
8
+ scale: number;
9
+ /** Human-readable denominator shown after the price, e.g. "1M tokens". */
10
+ label: string;
11
+ }
12
+ /**
13
+ * Returns the display scale and unit label for a given meter unit.
14
+ *
15
+ * For custom units, pass `customLabel` and `customMultiplier` to override the
16
+ * defaults. Without them, custom units fall back to scalar (scale=1, label="unit").
17
+ *
18
+ * @example
19
+ * // Token: $10 / 1M tokens
20
+ * const { scale, label } = getMeterUnitFormat('token')
21
+ * const displayAmount = unitAmountCents * scale // 0.001 * 1_000_000 = 1000 cents = $10
22
+ *
23
+ * @example
24
+ * // Custom: $5 / 1000 requests
25
+ * const { scale, label } = getMeterUnitFormat('custom', { customLabel: 'requests', customMultiplier: 1000 })
26
+ * const displayAmount = unitAmountCents * scale // 0.5 * 1000 = 500 cents = $5
27
+ */
28
+ declare function getMeterUnitFormat(unit: MeterUnit, options?: {
29
+ customLabel?: string | null;
30
+ customMultiplier?: number | null;
31
+ }): MeterUnitFormat;
32
+ declare const METER_UNIT_DISPLAY_NAMES: Record<MeterUnit, string>;
33
+
34
+ export { METER_UNIT_DISPLAY_NAMES, type MeterUnit, type MeterUnitFormat, getMeterUnitFormat };
@@ -0,0 +1,34 @@
1
+ type MeterUnit = 'scalar' | 'token' | 'custom';
2
+ interface MeterUnitFormat {
3
+ /**
4
+ * Factor to multiply unit_amount (in cents) by to get the price at display
5
+ * scale. For example, token uses 1_000_000 so "$0.00001/token" becomes
6
+ * "$10 / 1M tokens".
7
+ */
8
+ scale: number;
9
+ /** Human-readable denominator shown after the price, e.g. "1M tokens". */
10
+ label: string;
11
+ }
12
+ /**
13
+ * Returns the display scale and unit label for a given meter unit.
14
+ *
15
+ * For custom units, pass `customLabel` and `customMultiplier` to override the
16
+ * defaults. Without them, custom units fall back to scalar (scale=1, label="unit").
17
+ *
18
+ * @example
19
+ * // Token: $10 / 1M tokens
20
+ * const { scale, label } = getMeterUnitFormat('token')
21
+ * const displayAmount = unitAmountCents * scale // 0.001 * 1_000_000 = 1000 cents = $10
22
+ *
23
+ * @example
24
+ * // Custom: $5 / 1000 requests
25
+ * const { scale, label } = getMeterUnitFormat('custom', { customLabel: 'requests', customMultiplier: 1000 })
26
+ * const displayAmount = unitAmountCents * scale // 0.5 * 1000 = 500 cents = $5
27
+ */
28
+ declare function getMeterUnitFormat(unit: MeterUnit, options?: {
29
+ customLabel?: string | null;
30
+ customMultiplier?: number | null;
31
+ }): MeterUnitFormat;
32
+ declare const METER_UNIT_DISPLAY_NAMES: Record<MeterUnit, string>;
33
+
34
+ export { METER_UNIT_DISPLAY_NAMES, type MeterUnit, type MeterUnitFormat, getMeterUnitFormat };
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var i=(e,t)=>{for(var l in t)n(e,l,{get:t[l],enumerable:!0})},m=(e,t,l,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of s(t))!u.call(e,r)&&r!==l&&n(e,r,{get:()=>t[r],enumerable:!(a=c(t,r))||a.enumerable});return e};var M=e=>m(n({},"__esModule",{value:!0}),e);var p={};i(p,{METER_UNIT_DISPLAY_NAMES:()=>b,getMeterUnitFormat:()=>U});module.exports=M(p);var o={scalar:{scale:1,label:"unit"},token:{scale:1e6,label:"1M tokens"}};function U(e,t){return e==="custom"?{scale:t?.customMultiplier??1,label:t?.customLabel??"unit"}:o[e]??o.scalar}var b={scalar:"Scalar",token:"Token",custom:"Custom"};0&&(module.exports={METER_UNIT_DISPLAY_NAMES,getMeterUnitFormat});
@@ -0,0 +1 @@
1
+ var r={scalar:{scale:1,label:"unit"},token:{scale:1e6,label:"1M tokens"}};function l(t,e){return t==="custom"?{scale:e?.customMultiplier??1,label:e?.customLabel??"unit"}:r[t]??r.scalar}var n={scalar:"Scalar",token:"Token",custom:"Custom"};export{n as METER_UNIT_DISPLAY_NAMES,l as getMeterUnitFormat};
@@ -0,0 +1,5 @@
1
+ import { ClassNameValue } from 'tailwind-merge';
2
+
3
+ declare function cn(...inputs: ClassNameValue[]): string;
4
+
5
+ export { cn };
@@ -0,0 +1,5 @@
1
+ import { ClassNameValue } from 'tailwind-merge';
2
+
3
+ declare function cn(...inputs: ClassNameValue[]): string;
4
+
5
+ export { cn };
@@ -0,0 +1 @@
1
+ "use strict";var l=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var p=(e,a)=>{for(var t in a)l(e,t,{get:a[t],enumerable:!0})},c=(e,a,t,m)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of s(a))!u.call(e,r)&&r!==t&&l(e,r,{get:()=>a[r],enumerable:!(m=o(a,r))||m.enumerable});return e};var f=e=>c(l({},"__esModule",{value:!0}),e);var C={};p(C,{cn:()=>i});module.exports=f(C);var n=require("tailwind-merge");function i(...e){return(0,n.twMerge)(e)}0&&(module.exports={cn});
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-CFBUY7KY.mjs";export{a as cn};