@nexub/react 1.0.0 → 1.1.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 (199) hide show
  1. package/dist/chunk-24CZFBTG.js +83 -0
  2. package/dist/chunk-2MKB5FQI.js +122 -0
  3. package/dist/chunk-2RLSIOGB.js +173 -0
  4. package/dist/chunk-2VDP2ML4.js +105 -0
  5. package/dist/chunk-3CSKW56L.js +44 -0
  6. package/dist/chunk-3U54QLYB.js +87 -0
  7. package/dist/chunk-46CFSBEO.js +48 -0
  8. package/dist/chunk-4BTP4464.js +92 -0
  9. package/dist/chunk-4NGB7XIM.js +88 -0
  10. package/dist/chunk-4OCXGNP3.js +85 -0
  11. package/dist/chunk-52KTX5A7.js +119 -0
  12. package/dist/chunk-6AZP6VBM.js +62 -0
  13. package/dist/chunk-6Y734SXN.js +51 -0
  14. package/dist/chunk-7B4FS7VQ.js +150 -0
  15. package/dist/chunk-7W2YDJ5W.js +128 -0
  16. package/dist/chunk-A7L75YXY.js +61 -0
  17. package/dist/chunk-ADO2DB6Q.js +1 -0
  18. package/dist/chunk-AHZQQ7OT.js +83 -0
  19. package/dist/chunk-AT6RPKU3.js +12 -0
  20. package/dist/chunk-BBVOB4EC.js +36 -0
  21. package/dist/chunk-BGY23Y5O.js +104 -0
  22. package/dist/chunk-BJKW3G2L.js +99 -0
  23. package/dist/chunk-BMVAZIAJ.js +187 -0
  24. package/dist/chunk-BTZW34TX.js +76 -0
  25. package/dist/chunk-BUBYXAJK.js +20 -0
  26. package/dist/chunk-BV3U3ATL.js +1 -0
  27. package/dist/chunk-BYCTJHXY.js +75 -0
  28. package/dist/chunk-BYF223HT.js +92 -0
  29. package/dist/chunk-CPV367VS.js +106 -0
  30. package/dist/chunk-CVBAWKNG.js +124 -0
  31. package/dist/chunk-CZUNTABW.js +25 -0
  32. package/dist/chunk-DAXDAFNG.js +92 -0
  33. package/dist/chunk-DD6XCW6R.js +53 -0
  34. package/dist/chunk-DEH2Z27F.js +50 -0
  35. package/dist/chunk-DOHXBNOP.js +119 -0
  36. package/dist/chunk-DR2Y3PIT.js +91 -0
  37. package/dist/chunk-ELC2NBGH.js +89 -0
  38. package/dist/chunk-EV43I5J6.js +1 -0
  39. package/dist/chunk-FS4XKWFA.js +308 -0
  40. package/dist/chunk-FUJOSPNQ.js +38 -0
  41. package/dist/chunk-GTQIA62H.js +60 -0
  42. package/dist/chunk-H4MXRAXP.js +37 -0
  43. package/dist/chunk-HW3I7I3R.js +29 -0
  44. package/dist/chunk-HY3JWSG4.js +1 -0
  45. package/dist/chunk-I5Z3A7N3.js +40 -0
  46. package/dist/chunk-IBCYG6HR.js +55 -0
  47. package/dist/chunk-IHW2L532.js +175 -0
  48. package/dist/chunk-IU76LV3W.js +101 -0
  49. package/dist/chunk-IZ6ZPEZ2.js +1 -0
  50. package/dist/chunk-JCUVWDUC.js +57 -0
  51. package/dist/chunk-JKTZMWWC.js +63 -0
  52. package/dist/chunk-JQDLCN5D.js +66 -0
  53. package/dist/chunk-K7CUCLLI.js +43 -0
  54. package/dist/chunk-KBB7M6WO.js +65 -0
  55. package/dist/chunk-KLTQJZOX.js +1 -0
  56. package/dist/chunk-KWWV3CM3.js +62 -0
  57. package/dist/chunk-KZW37FQZ.js +40 -0
  58. package/dist/chunk-L6GBZ2HB.js +145 -0
  59. package/dist/chunk-LAWZQ6R6.js +76 -0
  60. package/dist/chunk-LOP63AVE.js +49 -0
  61. package/dist/chunk-MY6XUJ5P.js +216 -0
  62. package/dist/chunk-N2GIMMTF.js +98 -0
  63. package/dist/chunk-NAIZ7R2L.js +59 -0
  64. package/dist/chunk-NHUQLIHL.js +9 -0
  65. package/dist/chunk-NZ7UK3G6.js +1 -0
  66. package/dist/chunk-OUBBOOZE.js +34 -0
  67. package/dist/chunk-OZPPL76D.js +82 -0
  68. package/dist/chunk-P6BZNFVU.js +38 -0
  69. package/dist/chunk-PANDAMD2.js +54 -0
  70. package/dist/chunk-PBLEGOLM.js +71 -0
  71. package/dist/chunk-PER3O4FD.js +33 -0
  72. package/dist/chunk-PICMOOAZ.js +1 -0
  73. package/dist/chunk-POBSY7EZ.js +155 -0
  74. package/dist/chunk-POFKKYHY.js +37 -0
  75. package/dist/chunk-QF7GUDOE.js +67 -0
  76. package/dist/chunk-QHJ43Q2T.js +70 -0
  77. package/dist/chunk-QURKXXNS.js +46 -0
  78. package/dist/chunk-ROZVVWPV.js +8 -0
  79. package/dist/chunk-S344IRK4.js +63 -0
  80. package/dist/chunk-SZKUSLHI.js +176 -0
  81. package/dist/chunk-T4IVMVMQ.js +32 -0
  82. package/dist/chunk-TCTFQYLH.js +115 -0
  83. package/dist/chunk-U3AEA4BZ.js +56 -0
  84. package/dist/chunk-U3EGB3JL.js +43 -0
  85. package/dist/chunk-UALYS4XI.js +67 -0
  86. package/dist/chunk-UTBUIBEP.js +153 -0
  87. package/dist/chunk-UWWL5FPC.js +80 -0
  88. package/dist/chunk-V3FZHIEB.js +52 -0
  89. package/dist/chunk-V6GZZFTV.js +106 -0
  90. package/dist/chunk-VPZCQFVY.js +33 -0
  91. package/dist/chunk-VT7RKY46.js +49 -0
  92. package/dist/chunk-W4IEXUD4.js +127 -0
  93. package/dist/chunk-WPPNDU2E.js +36 -0
  94. package/dist/chunk-XNDCVVNE.js +45 -0
  95. package/dist/chunk-Y45JAJKW.js +44 -0
  96. package/dist/chunk-YAGVMERC.js +81 -0
  97. package/dist/chunk-YGOR3KT7.js +46 -0
  98. package/dist/chunk-YJD66LTV.js +54 -0
  99. package/dist/chunk-YJU4ZRQZ.js +1 -0
  100. package/dist/chunk-YUFCNHZF.js +27 -0
  101. package/dist/chunk-YUNWZAAD.js +57 -0
  102. package/dist/chunk-ZFVBFCYV.js +84 -0
  103. package/dist/chunk-ZXLACKEB.js +8 -0
  104. package/dist/components/Accordion/index.js +8 -0
  105. package/dist/components/Alert/index.js +10 -0
  106. package/dist/components/AlertDialog/index.js +8 -0
  107. package/dist/components/AppShell/index.js +8 -0
  108. package/dist/components/AspectRatio/index.js +8 -0
  109. package/dist/components/Autocomplete/index.js +9 -0
  110. package/dist/components/Avatar/index.js +11 -0
  111. package/dist/components/AvatarGroup/index.js +11 -0
  112. package/dist/components/Badge/index.js +10 -0
  113. package/dist/components/Banner/index.js +10 -0
  114. package/dist/components/Box/index.js +8 -0
  115. package/dist/components/Breadcrumb/index.js +8 -0
  116. package/dist/components/Button/index.js +10 -0
  117. package/dist/components/ButtonGroup/index.js +8 -0
  118. package/dist/components/Callout/index.js +10 -0
  119. package/dist/components/Card/index.js +11 -0
  120. package/dist/components/CheckList/index.js +10 -0
  121. package/dist/components/Checkbox/index.js +8 -0
  122. package/dist/components/Chip/index.js +10 -0
  123. package/dist/components/Code/index.js +8 -0
  124. package/dist/components/Collapsible/index.js +8 -0
  125. package/dist/components/Combobox/index.js +9 -0
  126. package/dist/components/CommandPalette/index.js +8 -0
  127. package/dist/components/Container/index.js +10 -0
  128. package/dist/components/ContextMenu/index.js +8 -0
  129. package/dist/components/CountryBadge/index.js +9 -0
  130. package/dist/components/DataTable/index.js +8 -0
  131. package/dist/components/DatePicker/index.js +8 -0
  132. package/dist/components/DateRangePicker/index.js +8 -0
  133. package/dist/components/Dialog/index.js +9 -0
  134. package/dist/components/Drawer/index.js +11 -0
  135. package/dist/components/DropdownMenu/index.js +8 -0
  136. package/dist/components/EmptyState/index.js +8 -0
  137. package/dist/components/ErrorState/index.js +8 -0
  138. package/dist/components/EyebrowChip/index.js +8 -0
  139. package/dist/components/FileUpload/index.js +8 -0
  140. package/dist/components/FilterChip/index.js +8 -0
  141. package/dist/components/Flag/index.js +9 -0
  142. package/dist/components/Flex/index.js +8 -0
  143. package/dist/components/FormError/index.js +9 -0
  144. package/dist/components/FormField/index.js +11 -0
  145. package/dist/components/GradientDivider/index.js +8 -0
  146. package/dist/components/Grid/index.js +8 -0
  147. package/dist/components/Heading/index.js +10 -0
  148. package/dist/components/HelperText/index.js +9 -0
  149. package/dist/components/HoverCard/index.js +8 -0
  150. package/dist/components/IconButton/index.js +10 -0
  151. package/dist/components/Input/index.js +15 -0
  152. package/dist/components/Kbd/index.js +9 -0
  153. package/dist/components/KeyboardShortcut/index.js +9 -0
  154. package/dist/components/Label/index.js +11 -0
  155. package/dist/components/Link/index.js +10 -0
  156. package/dist/components/Logo/index.js +10 -0
  157. package/dist/components/Menubar/index.js +8 -0
  158. package/dist/components/Motion/index.js +13 -0
  159. package/dist/components/NavigationMenu/index.js +8 -0
  160. package/dist/components/NumberInput/index.js +9 -0
  161. package/dist/components/PageHeader/index.js +8 -0
  162. package/dist/components/Pagination/index.js +8 -0
  163. package/dist/components/PasswordInput/index.js +9 -0
  164. package/dist/components/Popover/index.js +9 -0
  165. package/dist/components/Progress/index.js +12 -0
  166. package/dist/components/RadioGroup/index.js +8 -0
  167. package/dist/components/Rating/index.js +11 -0
  168. package/dist/components/ScrollArea/index.js +8 -0
  169. package/dist/components/SearchInput/index.js +9 -0
  170. package/dist/components/Section/index.js +10 -0
  171. package/dist/components/SegmentedControl/index.js +8 -0
  172. package/dist/components/Select/index.js +8 -0
  173. package/dist/components/Separator/index.js +10 -0
  174. package/dist/components/Sidebar/index.js +8 -0
  175. package/dist/components/Skeleton/index.js +10 -0
  176. package/dist/components/Slider/index.js +8 -0
  177. package/dist/components/Spinner/index.js +10 -0
  178. package/dist/components/Stack/index.js +8 -0
  179. package/dist/components/StatusPill/index.js +10 -0
  180. package/dist/components/Switch/index.js +8 -0
  181. package/dist/components/Table/index.js +8 -0
  182. package/dist/components/Tabs/index.js +8 -0
  183. package/dist/components/Tag/index.js +10 -0
  184. package/dist/components/Text/index.js +10 -0
  185. package/dist/components/TextGradient/index.js +8 -0
  186. package/dist/components/Textarea/index.js +10 -0
  187. package/dist/components/ThemeProvider/index.js +10 -0
  188. package/dist/components/Toast/index.js +14 -0
  189. package/dist/components/Toggle/index.js +11 -0
  190. package/dist/components/ToggleGroup/index.js +9 -0
  191. package/dist/components/Toolbar/index.js +8 -0
  192. package/dist/components/Tooltip/index.js +16 -0
  193. package/dist/components/TopNav/index.js +9 -0
  194. package/dist/components/VisuallyHidden/index.js +7 -0
  195. package/dist/index.d.ts +28 -11
  196. package/dist/index.js +479 -5896
  197. package/package.json +12 -12
  198. package/dist/index.cjs +0 -6112
  199. package/dist/index.d.cts +0 -1245
@@ -0,0 +1,63 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-AT6RPKU3.js";
5
+
6
+ // src/components/Tabs/Tabs.tsx
7
+ import * as React from "react";
8
+ import * as RadixTabs from "@radix-ui/react-tabs";
9
+ import { jsx } from "react/jsx-runtime";
10
+ var Root2 = React.forwardRef(
11
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadixTabs.Root, { ref, className: cn("flex flex-col gap-2", className), ...props })
12
+ );
13
+ Root2.displayName = "Tabs.Root";
14
+ var List2 = React.forwardRef(
15
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
16
+ RadixTabs.List,
17
+ {
18
+ ref,
19
+ className: cn(
20
+ "flex h-9 w-full items-center justify-start overflow-x-auto rounded-lg bg-[var(--color-bg-subtle)] p-1 text-[var(--color-text-muted)] gap-0.5",
21
+ className
22
+ ),
23
+ ...props
24
+ }
25
+ )
26
+ );
27
+ List2.displayName = "Tabs.List";
28
+ var Trigger2 = React.forwardRef(
29
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
30
+ RadixTabs.Trigger,
31
+ {
32
+ ref,
33
+ className: cn(
34
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all",
35
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
36
+ "disabled:pointer-events-none disabled:opacity-50",
37
+ "data-[state=active]:bg-[var(--color-bg-default)] data-[state=active]:text-[var(--color-text-primary)] data-[state=active]:shadow-sm",
38
+ className
39
+ ),
40
+ ...props
41
+ }
42
+ )
43
+ );
44
+ Trigger2.displayName = "Tabs.Trigger";
45
+ var Content2 = React.forwardRef(
46
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
47
+ RadixTabs.Content,
48
+ {
49
+ ref,
50
+ className: cn(
51
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
52
+ className
53
+ ),
54
+ ...props
55
+ }
56
+ )
57
+ );
58
+ Content2.displayName = "Tabs.Content";
59
+ var Tabs = { Root: Root2, List: List2, Trigger: Trigger2, Content: Content2 };
60
+
61
+ export {
62
+ Tabs
63
+ };
@@ -0,0 +1,176 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-AT6RPKU3.js";
5
+
6
+ // src/components/DropdownMenu/DropdownMenu.tsx
7
+ import * as React from "react";
8
+ import * as RadixDropdownMenu from "@radix-ui/react-dropdown-menu";
9
+ import { Check, ChevronRight } from "@nexub/icons";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ var Root2 = RadixDropdownMenu.Root;
12
+ var Trigger2 = RadixDropdownMenu.Trigger;
13
+ var Portal2 = RadixDropdownMenu.Portal;
14
+ var Group2 = RadixDropdownMenu.Group;
15
+ var RadioGroup2 = RadixDropdownMenu.RadioGroup;
16
+ var Sub2 = RadixDropdownMenu.Sub;
17
+ var Content2 = React.forwardRef(
18
+ function DropdownMenuContent({ className, sideOffset = 4, ...props }, ref) {
19
+ return /* @__PURE__ */ jsx(
20
+ RadixDropdownMenu.Content,
21
+ {
22
+ ref,
23
+ sideOffset,
24
+ className: cn(
25
+ "z-[var(--z-popover)] min-w-48 rounded-lg border border-[var(--color-border-default)]",
26
+ "bg-[var(--color-bg-default)] p-1 shadow-md outline-none",
27
+ "data-[state=open]:animate-in data-[state=closed]:animate-out",
28
+ "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
29
+ "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
30
+ "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
31
+ "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
32
+ className
33
+ ),
34
+ ...props
35
+ }
36
+ );
37
+ }
38
+ );
39
+ Content2.displayName = "DropdownMenu.Content";
40
+ var itemBaseClasses = cn(
41
+ "relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none",
42
+ "transition-colors hover:bg-[var(--color-bg-subtle)] focus:bg-[var(--color-bg-subtle)]",
43
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
44
+ );
45
+ var Item2 = React.forwardRef(
46
+ function DropdownMenuItem({ className, ...props }, ref) {
47
+ return /* @__PURE__ */ jsx(
48
+ RadixDropdownMenu.Item,
49
+ {
50
+ ref,
51
+ className: cn(itemBaseClasses, className),
52
+ ...props
53
+ }
54
+ );
55
+ }
56
+ );
57
+ Item2.displayName = "DropdownMenu.Item";
58
+ var Label2 = React.forwardRef(
59
+ function DropdownMenuLabel({ className, ...props }, ref) {
60
+ return /* @__PURE__ */ jsx(
61
+ RadixDropdownMenu.Label,
62
+ {
63
+ ref,
64
+ className: cn(
65
+ "px-2 py-1 text-xs font-semibold text-[var(--color-text-muted)]",
66
+ className
67
+ ),
68
+ ...props
69
+ }
70
+ );
71
+ }
72
+ );
73
+ Label2.displayName = "DropdownMenu.Label";
74
+ var Separator2 = React.forwardRef(
75
+ function DropdownMenuSeparator({ className, ...props }, ref) {
76
+ return /* @__PURE__ */ jsx(
77
+ RadixDropdownMenu.Separator,
78
+ {
79
+ ref,
80
+ className: cn("-mx-1 my-1 h-px bg-[var(--color-border-default)]", className),
81
+ ...props
82
+ }
83
+ );
84
+ }
85
+ );
86
+ Separator2.displayName = "DropdownMenu.Separator";
87
+ var CheckboxItem2 = React.forwardRef(function DropdownMenuCheckboxItem({ className, children, checked, ...props }, ref) {
88
+ return /* @__PURE__ */ jsxs(
89
+ RadixDropdownMenu.CheckboxItem,
90
+ {
91
+ ref,
92
+ className: cn(itemBaseClasses, "pl-8", className),
93
+ checked,
94
+ ...props,
95
+ children: [
96
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx(RadixDropdownMenu.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
97
+ children
98
+ ]
99
+ }
100
+ );
101
+ });
102
+ CheckboxItem2.displayName = "DropdownMenu.CheckboxItem";
103
+ var RadioItem2 = React.forwardRef(function DropdownMenuRadioItem({ className, children, ...props }, ref) {
104
+ return /* @__PURE__ */ jsxs(
105
+ RadixDropdownMenu.RadioItem,
106
+ {
107
+ ref,
108
+ className: cn(itemBaseClasses, "pl-8", className),
109
+ ...props,
110
+ children: [
111
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx(RadixDropdownMenu.ItemIndicator, { children: /* @__PURE__ */ jsx("svg", { className: "h-2 w-2 fill-current", viewBox: "0 0 8 8", "aria-hidden": "true", children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" }) }) }) }),
112
+ children
113
+ ]
114
+ }
115
+ );
116
+ });
117
+ RadioItem2.displayName = "DropdownMenu.RadioItem";
118
+ var SubTrigger2 = React.forwardRef(function DropdownMenuSubTrigger({ className, children, ...props }, ref) {
119
+ return /* @__PURE__ */ jsxs(
120
+ RadixDropdownMenu.SubTrigger,
121
+ {
122
+ ref,
123
+ className: cn(
124
+ itemBaseClasses,
125
+ "data-[state=open]:bg-[var(--color-bg-subtle)]",
126
+ className
127
+ ),
128
+ ...props,
129
+ children: [
130
+ children,
131
+ /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })
132
+ ]
133
+ }
134
+ );
135
+ });
136
+ SubTrigger2.displayName = "DropdownMenu.SubTrigger";
137
+ var SubContent2 = React.forwardRef(function DropdownMenuSubContent({ className, ...props }, ref) {
138
+ return /* @__PURE__ */ jsx(
139
+ RadixDropdownMenu.SubContent,
140
+ {
141
+ ref,
142
+ className: cn(
143
+ "z-[var(--z-popover)] min-w-48 rounded-lg border border-[var(--color-border-default)]",
144
+ "bg-[var(--color-bg-default)] p-1 shadow-md outline-none",
145
+ "data-[state=open]:animate-in data-[state=closed]:animate-out",
146
+ "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
147
+ "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
148
+ "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
149
+ "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
150
+ className
151
+ ),
152
+ ...props
153
+ }
154
+ );
155
+ });
156
+ SubContent2.displayName = "DropdownMenu.SubContent";
157
+ var DropdownMenu = {
158
+ Root: Root2,
159
+ Trigger: Trigger2,
160
+ Portal: Portal2,
161
+ Content: Content2,
162
+ Item: Item2,
163
+ Group: Group2,
164
+ Label: Label2,
165
+ Separator: Separator2,
166
+ CheckboxItem: CheckboxItem2,
167
+ RadioGroup: RadioGroup2,
168
+ RadioItem: RadioItem2,
169
+ Sub: Sub2,
170
+ SubTrigger: SubTrigger2,
171
+ SubContent: SubContent2
172
+ };
173
+
174
+ export {
175
+ DropdownMenu
176
+ };
@@ -0,0 +1,32 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-AT6RPKU3.js";
5
+
6
+ // src/components/HelperText/HelperText.tsx
7
+ import * as React from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var HelperText = React.forwardRef(
10
+ ({ className, tone, style, children, ...props }, ref) => {
11
+ const toneStyle = tone ? { color: `var(--color-text-${tone})` } : {};
12
+ return /* @__PURE__ */ jsx(
13
+ "p",
14
+ {
15
+ ref,
16
+ "data-tone": tone,
17
+ style: { ...toneStyle, ...style },
18
+ className: cn(
19
+ "text-sm text-[var(--color-text-muted)] leading-snug",
20
+ className
21
+ ),
22
+ ...props,
23
+ children
24
+ }
25
+ );
26
+ }
27
+ );
28
+ HelperText.displayName = "HelperText";
29
+
30
+ export {
31
+ HelperText
32
+ };
@@ -0,0 +1,115 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-AT6RPKU3.js";
5
+
6
+ // src/components/DateRangePicker/DateRangePicker.tsx
7
+ import * as React from "react";
8
+ import * as RadixPopover from "@radix-ui/react-popover";
9
+ import { DayPicker } from "react-day-picker";
10
+ import { format } from "date-fns";
11
+ import { CalendarDays, ChevronLeft, ChevronRight } from "@nexub/icons";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ function formatRange(range, placeholder) {
14
+ if (!range) return placeholder;
15
+ if (range.from && range.to) {
16
+ return `${format(range.from, "PP")} \u2013 ${format(range.to, "PP")}`;
17
+ }
18
+ if (range.from) return `${format(range.from, "PP")} \u2013 \u2026`;
19
+ return placeholder;
20
+ }
21
+ var calendarClassNames = {
22
+ months: "flex flex-col sm:flex-row gap-4",
23
+ month: "flex flex-col gap-4",
24
+ month_caption: "flex justify-center pt-1 relative items-center",
25
+ caption_label: "text-sm font-medium",
26
+ nav: "flex items-center gap-1",
27
+ button_previous: "absolute left-1 inline-flex h-7 w-7 items-center justify-center rounded-md border border-[var(--color-border-default)] hover:bg-[var(--color-bg-subtle)] disabled:pointer-events-none disabled:opacity-50",
28
+ button_next: "absolute right-1 inline-flex h-7 w-7 items-center justify-center rounded-md border border-[var(--color-border-default)] hover:bg-[var(--color-bg-subtle)] disabled:pointer-events-none disabled:opacity-50",
29
+ month_grid: "w-full border-collapse",
30
+ weekdays: "flex",
31
+ weekday: "text-[var(--color-text-muted)] rounded-md w-8 font-normal text-[0.8rem] flex-1 text-center",
32
+ week: "flex w-full mt-2",
33
+ day: "relative p-0 text-center text-sm flex-1 focus-within:relative focus-within:z-20",
34
+ day_button: "inline-flex h-8 w-8 items-center justify-center rounded-md text-sm hover:bg-[var(--color-bg-subtle)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)]",
35
+ selected: "bg-[var(--color-fill-primary)] text-white hover:bg-[var(--color-fill-primary-hover)]",
36
+ range_start: "rounded-l-md",
37
+ range_end: "rounded-r-md",
38
+ range_middle: "aria-selected:bg-[var(--color-bg-subtle)] aria-selected:text-[var(--color-text-primary)] rounded-none",
39
+ today: "bg-[var(--color-bg-subtle)]",
40
+ outside: "opacity-50",
41
+ disabled: "opacity-50",
42
+ hidden: "invisible"
43
+ };
44
+ var DateRangePicker = React.forwardRef(function DateRangePicker2({
45
+ value,
46
+ onChange,
47
+ placeholder = "Pick a date range",
48
+ disabled = false,
49
+ minDate,
50
+ maxDate,
51
+ className,
52
+ id,
53
+ "aria-label": ariaLabel
54
+ }, ref) {
55
+ const [open, setOpen] = React.useState(false);
56
+ const display = formatRange(value, placeholder);
57
+ const label = ariaLabel ? `${ariaLabel}: ${display}` : display;
58
+ return /* @__PURE__ */ jsxs(RadixPopover.Root, { open, onOpenChange: setOpen, children: [
59
+ /* @__PURE__ */ jsx(RadixPopover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
60
+ "button",
61
+ {
62
+ ref,
63
+ id,
64
+ disabled,
65
+ "aria-label": label,
66
+ className: cn(
67
+ "inline-flex h-9 w-full items-center justify-start gap-2 rounded-md border border-[var(--color-border-input)] bg-[var(--color-bg-default)] px-3 py-2 text-sm",
68
+ "hover:bg-[var(--color-bg-subtle)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)]",
69
+ "disabled:cursor-not-allowed disabled:opacity-50",
70
+ !value && "text-[var(--color-text-muted)]",
71
+ className
72
+ ),
73
+ children: [
74
+ /* @__PURE__ */ jsx(CalendarDays, { size: "sm", "aria-hidden": "true" }),
75
+ display
76
+ ]
77
+ }
78
+ ) }),
79
+ /* @__PURE__ */ jsx(RadixPopover.Portal, { children: /* @__PURE__ */ jsx(
80
+ RadixPopover.Content,
81
+ {
82
+ align: "start",
83
+ className: cn(
84
+ "z-[var(--z-popover)] rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-default)] shadow-md",
85
+ "data-[state=open]:animate-in data-[state=closed]:animate-out",
86
+ "data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
87
+ "data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"
88
+ ),
89
+ children: /* @__PURE__ */ jsx(
90
+ DayPicker,
91
+ {
92
+ mode: "range",
93
+ selected: value,
94
+ onSelect: onChange,
95
+ numberOfMonths: 2,
96
+ startMonth: minDate,
97
+ endMonth: maxDate,
98
+ initialFocus: true,
99
+ showOutsideDays: true,
100
+ className: "p-3",
101
+ classNames: calendarClassNames,
102
+ components: {
103
+ Chevron: ({ orientation, ...rest }) => orientation === "left" ? /* @__PURE__ */ jsx(ChevronLeft, { size: "xs", "aria-hidden": "true" }) : orientation === "right" ? /* @__PURE__ */ jsx(ChevronRight, { size: "xs", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(ChevronRight, { size: "xs", "aria-hidden": "true", ...rest })
104
+ }
105
+ }
106
+ )
107
+ }
108
+ ) })
109
+ ] });
110
+ });
111
+ DateRangePicker.displayName = "DateRangePicker";
112
+
113
+ export {
114
+ DateRangePicker
115
+ };
@@ -0,0 +1,56 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-AT6RPKU3.js";
5
+
6
+ // src/components/Link/Link.tsx
7
+ import * as React from "react";
8
+ import { Slot } from "@radix-ui/react-slot";
9
+ import { ExternalLink } from "@nexub/icons";
10
+ import { cva } from "class-variance-authority";
11
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
+ var linkVariants = cva(
13
+ [
14
+ "inline-flex items-center gap-1 transition-colors",
15
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)] rounded-sm"
16
+ ],
17
+ {
18
+ variants: {
19
+ variant: {
20
+ default: "text-[var(--color-brand-primary-500)] hover:text-[var(--color-brand-primary-600)]",
21
+ muted: "text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)]",
22
+ underlined: "text-[var(--color-brand-primary-500)] underline underline-offset-4 hover:text-[var(--color-brand-primary-600)]"
23
+ }
24
+ },
25
+ defaultVariants: {
26
+ variant: "default"
27
+ }
28
+ }
29
+ );
30
+ var Link = React.forwardRef(
31
+ ({ variant, external = false, asChild, className, children, target, rel, ...rest }, ref) => {
32
+ const resolvedTarget = external ? "_blank" : target;
33
+ const resolvedRel = resolvedTarget === "_blank" ? [.../* @__PURE__ */ new Set([...rel?.split(/\s+/).filter(Boolean) ?? [], "noopener", "noreferrer"])].join(" ") : rel;
34
+ const Comp = asChild ? Slot : "a";
35
+ return /* @__PURE__ */ jsx(
36
+ Comp,
37
+ {
38
+ ref,
39
+ className: cn(linkVariants({ variant }), className),
40
+ ...rest,
41
+ target: resolvedTarget,
42
+ rel: resolvedRel,
43
+ children: asChild ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
44
+ children,
45
+ external && /* @__PURE__ */ jsx(ExternalLink, { className: "h-3.5 w-3.5 shrink-0", "aria-hidden": "true" })
46
+ ] })
47
+ }
48
+ );
49
+ }
50
+ );
51
+ Link.displayName = "Link";
52
+
53
+ export {
54
+ linkVariants,
55
+ Link
56
+ };
@@ -0,0 +1,43 @@
1
+ 'use client';
2
+ import {
3
+ cn
4
+ } from "./chunk-AT6RPKU3.js";
5
+
6
+ // src/components/Toggle/Toggle.tsx
7
+ import * as React from "react";
8
+ import * as RadixToggle from "@radix-ui/react-toggle";
9
+ import { cva } from "class-variance-authority";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var toggleVariants = cva(
12
+ "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)] disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-[var(--color-bg-subtle)] data-[state=on]:text-[var(--color-text-primary)]",
13
+ {
14
+ variants: {
15
+ variant: {
16
+ default: "bg-transparent hover:bg-[var(--color-bg-subtle)] hover:text-[var(--color-text-primary)]",
17
+ outline: "border border-[var(--color-border-default)] bg-transparent hover:bg-[var(--color-bg-subtle)]"
18
+ },
19
+ size: {
20
+ sm: "h-8 px-2.5",
21
+ md: "h-9 px-3",
22
+ lg: "h-10 px-4"
23
+ }
24
+ },
25
+ defaultVariants: { variant: "default", size: "md" }
26
+ }
27
+ );
28
+ var Toggle = React.forwardRef(
29
+ ({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
30
+ RadixToggle.Root,
31
+ {
32
+ ref,
33
+ className: cn(toggleVariants({ variant, size }), className),
34
+ ...props
35
+ }
36
+ )
37
+ );
38
+ Toggle.displayName = "Toggle";
39
+
40
+ export {
41
+ toggleVariants,
42
+ Toggle
43
+ };
@@ -0,0 +1,67 @@
1
+ 'use client';
2
+ import {
3
+ glassSurfaceClass
4
+ } from "./chunk-ROZVVWPV.js";
5
+ import {
6
+ cn
7
+ } from "./chunk-AT6RPKU3.js";
8
+
9
+ // src/components/Popover/Popover.tsx
10
+ import * as React from "react";
11
+ import * as RadixPopover from "@radix-ui/react-popover";
12
+ import { jsx } from "react/jsx-runtime";
13
+ var Root2 = RadixPopover.Root;
14
+ var Trigger2 = RadixPopover.Trigger;
15
+ var Portal2 = RadixPopover.Portal;
16
+ var Close2 = RadixPopover.Close;
17
+ var Content2 = React.forwardRef(
18
+ function PopoverContent({ className, sideOffset = 4, surface = "solid", ...props }, ref) {
19
+ return /* @__PURE__ */ jsx(
20
+ RadixPopover.Content,
21
+ {
22
+ ref,
23
+ sideOffset,
24
+ className: cn(
25
+ "z-[var(--z-popover)] rounded-lg border border-[var(--color-border-default)]",
26
+ "bg-[var(--color-bg-default)] p-4 shadow-md",
27
+ "outline-none",
28
+ "data-[state=open]:animate-in data-[state=closed]:animate-out",
29
+ "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
30
+ "data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
31
+ "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
32
+ "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
33
+ surface === "glass" && glassSurfaceClass,
34
+ className
35
+ ),
36
+ "data-material": surface === "glass" ? "glass" : void 0,
37
+ ...props
38
+ }
39
+ );
40
+ }
41
+ );
42
+ Content2.displayName = "Popover.Content";
43
+ var Arrow2 = React.forwardRef(
44
+ function PopoverArrow({ className, ...props }, ref) {
45
+ return /* @__PURE__ */ jsx(
46
+ RadixPopover.Arrow,
47
+ {
48
+ ref,
49
+ className: cn("fill-[var(--color-border-default)]", className),
50
+ ...props
51
+ }
52
+ );
53
+ }
54
+ );
55
+ Arrow2.displayName = "Popover.Arrow";
56
+ var Popover = {
57
+ Root: Root2,
58
+ Trigger: Trigger2,
59
+ Portal: Portal2,
60
+ Content: Content2,
61
+ Arrow: Arrow2,
62
+ Close: Close2
63
+ };
64
+
65
+ export {
66
+ Popover
67
+ };