@hewnui/ui 0.1.0 → 0.1.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 (257) hide show
  1. package/dist/chart/axes.js +1 -1
  2. package/dist/chart/frame.js +2 -2
  3. package/dist/chart/interaction.d.ts +1 -1
  4. package/dist/chart/path.d.ts +1 -1
  5. package/dist/chart/scales.d.ts +1 -1
  6. package/dist/chart/scales.js +1 -1
  7. package/dist/chart/status.d.ts +1 -1
  8. package/dist/components/area-chart/area-chart.d.ts +2 -2
  9. package/dist/components/area-chart/area-chart.js +8 -8
  10. package/dist/components/area-chart/index.d.ts +1 -1
  11. package/dist/components/area-chart/index.js +1 -1
  12. package/dist/components/badge/badge.d.ts +1 -1
  13. package/dist/components/badge/badge.js +1 -1
  14. package/dist/components/badge/badge.styles.d.ts +1 -1
  15. package/dist/components/badge/badge.styles.js +1 -1
  16. package/dist/components/badge/index.d.ts +3 -3
  17. package/dist/components/badge/index.js +2 -2
  18. package/dist/components/bar-chart/bar-chart.d.ts +2 -2
  19. package/dist/components/bar-chart/bar-chart.js +7 -7
  20. package/dist/components/bar-chart/index.d.ts +1 -1
  21. package/dist/components/bar-chart/index.js +1 -1
  22. package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -1
  23. package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
  24. package/dist/components/breadcrumbs/breadcrumbs.styles.js +1 -1
  25. package/dist/components/breadcrumbs/index.d.ts +2 -2
  26. package/dist/components/breadcrumbs/index.js +1 -1
  27. package/dist/components/button/button.d.ts +1 -1
  28. package/dist/components/button/button.js +3 -3
  29. package/dist/components/button/button.styles.d.ts +1 -1
  30. package/dist/components/button/button.styles.js +1 -1
  31. package/dist/components/button/index.d.ts +2 -2
  32. package/dist/components/button/index.js +1 -1
  33. package/dist/components/card/card.d.ts +1 -1
  34. package/dist/components/card/card.js +1 -1
  35. package/dist/components/card/card.styles.js +1 -1
  36. package/dist/components/card/index.d.ts +2 -2
  37. package/dist/components/card/index.js +1 -1
  38. package/dist/components/checkbox/checkbox.d.ts +1 -1
  39. package/dist/components/checkbox/checkbox.js +2 -2
  40. package/dist/components/checkbox/checkbox.styles.js +1 -1
  41. package/dist/components/checkbox/index.d.ts +2 -2
  42. package/dist/components/checkbox/index.js +1 -1
  43. package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
  44. package/dist/components/checkbox-group/checkbox-group.js +2 -2
  45. package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
  46. package/dist/components/checkbox-group/index.d.ts +2 -2
  47. package/dist/components/checkbox-group/index.js +1 -1
  48. package/dist/components/color-picker/color-picker.d.ts +1 -1
  49. package/dist/components/color-picker/color-picker.js +3 -3
  50. package/dist/components/color-picker/color-picker.panel.d.ts +1 -1
  51. package/dist/components/color-picker/color-picker.panel.js +3 -3
  52. package/dist/components/color-picker/color-picker.styles.js +1 -1
  53. package/dist/components/color-picker/index.d.ts +4 -4
  54. package/dist/components/color-picker/index.js +3 -3
  55. package/dist/components/combobox/combobox.js +2 -2
  56. package/dist/components/combobox/index.d.ts +1 -1
  57. package/dist/components/combobox/index.js +1 -1
  58. package/dist/components/command-palette/command-palette-items.d.ts +1 -1
  59. package/dist/components/command-palette/command-palette-items.js +1 -1
  60. package/dist/components/command-palette/command-palette.d.ts +2 -2
  61. package/dist/components/command-palette/command-palette.hotkey.d.ts +1 -1
  62. package/dist/components/command-palette/command-palette.js +3 -3
  63. package/dist/components/command-palette/command-palette.styles.js +2 -2
  64. package/dist/components/command-palette/index.d.ts +3 -3
  65. package/dist/components/command-palette/index.js +2 -2
  66. package/dist/components/data-table/data-table.js +1 -1
  67. package/dist/components/data-table/index.d.ts +1 -1
  68. package/dist/components/data-table/index.js +1 -1
  69. package/dist/components/date-picker/date-picker.js +2 -2
  70. package/dist/components/date-picker/index.d.ts +1 -1
  71. package/dist/components/date-picker/index.js +1 -1
  72. package/dist/components/date-range-picker/date-range-picker.calendar.d.ts +1 -1
  73. package/dist/components/date-range-picker/date-range-picker.calendar.js +2 -2
  74. package/dist/components/date-range-picker/date-range-picker.d.ts +1 -1
  75. package/dist/components/date-range-picker/date-range-picker.js +3 -3
  76. package/dist/components/date-range-picker/date-range-picker.presets.d.ts +1 -1
  77. package/dist/components/date-range-picker/date-range-picker.styles.js +1 -1
  78. package/dist/components/date-range-picker/index.d.ts +2 -2
  79. package/dist/components/date-range-picker/index.js +1 -1
  80. package/dist/components/dialog/dialog.js +1 -1
  81. package/dist/components/dialog/dialog.styles.js +1 -1
  82. package/dist/components/dialog/index.d.ts +1 -1
  83. package/dist/components/dialog/index.js +1 -1
  84. package/dist/components/donut-chart/donut-chart.d.ts +2 -2
  85. package/dist/components/donut-chart/donut-chart.js +4 -4
  86. package/dist/components/donut-chart/index.d.ts +1 -1
  87. package/dist/components/donut-chart/index.js +1 -1
  88. package/dist/components/drawer/drawer.js +2 -2
  89. package/dist/components/drawer/index.d.ts +1 -1
  90. package/dist/components/drawer/index.js +1 -1
  91. package/dist/components/empty/empty.js +1 -1
  92. package/dist/components/empty/index.d.ts +1 -1
  93. package/dist/components/empty/index.js +1 -1
  94. package/dist/components/file-upload/file-upload.d.ts +1 -1
  95. package/dist/components/file-upload/file-upload.js +3 -3
  96. package/dist/components/file-upload/file-upload.styles.js +1 -1
  97. package/dist/components/file-upload/index.d.ts +2 -2
  98. package/dist/components/file-upload/index.js +1 -1
  99. package/dist/components/form/form.d.ts +1 -1
  100. package/dist/components/form/form.js +1 -1
  101. package/dist/components/form/form.styles.js +1 -1
  102. package/dist/components/form/index.d.ts +2 -2
  103. package/dist/components/form/index.js +1 -1
  104. package/dist/components/input-group/index.d.ts +2 -2
  105. package/dist/components/input-group/index.js +1 -1
  106. package/dist/components/input-group/input-group.d.ts +1 -1
  107. package/dist/components/input-group/input-group.js +3 -3
  108. package/dist/components/input-group/input-group.styles.d.ts +1 -1
  109. package/dist/components/input-group/input-group.styles.js +2 -2
  110. package/dist/components/input-group/input-group.types.d.ts +1 -1
  111. package/dist/components/input-otp/index.d.ts +2 -2
  112. package/dist/components/input-otp/index.js +1 -1
  113. package/dist/components/input-otp/input-otp.d.ts +1 -1
  114. package/dist/components/input-otp/input-otp.js +3 -3
  115. package/dist/components/input-otp/input-otp.styles.d.ts +1 -1
  116. package/dist/components/input-otp/input-otp.styles.js +2 -2
  117. package/dist/components/input-otp/input-otp.types.d.ts +1 -1
  118. package/dist/components/line-chart/index.d.ts +1 -1
  119. package/dist/components/line-chart/index.js +1 -1
  120. package/dist/components/line-chart/line-chart.d.ts +2 -2
  121. package/dist/components/line-chart/line-chart.js +8 -8
  122. package/dist/components/link/index.d.ts +2 -2
  123. package/dist/components/link/index.js +1 -1
  124. package/dist/components/link/link.d.ts +1 -1
  125. package/dist/components/link/link.js +1 -1
  126. package/dist/components/link/link.styles.d.ts +1 -1
  127. package/dist/components/link/link.styles.js +1 -1
  128. package/dist/components/menu/index.d.ts +1 -1
  129. package/dist/components/menu/index.js +1 -1
  130. package/dist/components/menu/menu.js +3 -3
  131. package/dist/components/number-field/index.d.ts +2 -2
  132. package/dist/components/number-field/index.js +1 -1
  133. package/dist/components/number-field/number-field.d.ts +1 -1
  134. package/dist/components/number-field/number-field.js +3 -3
  135. package/dist/components/number-field/number-field.styles.d.ts +1 -1
  136. package/dist/components/number-field/number-field.styles.js +2 -2
  137. package/dist/components/number-field/number-field.types.d.ts +1 -1
  138. package/dist/components/pagination/index.d.ts +3 -3
  139. package/dist/components/pagination/index.js +2 -2
  140. package/dist/components/pagination/pagination.d.ts +1 -1
  141. package/dist/components/pagination/pagination.js +3 -3
  142. package/dist/components/pagination/pagination.styles.d.ts +1 -1
  143. package/dist/components/pagination/pagination.styles.js +1 -1
  144. package/dist/components/pagination/pagination.utils.d.ts +1 -1
  145. package/dist/components/password-field/index.d.ts +2 -2
  146. package/dist/components/password-field/index.js +1 -1
  147. package/dist/components/password-field/password-field.d.ts +1 -1
  148. package/dist/components/password-field/password-field.js +3 -3
  149. package/dist/components/password-field/password-field.styles.d.ts +1 -1
  150. package/dist/components/password-field/password-field.styles.js +2 -2
  151. package/dist/components/password-field/password-field.types.d.ts +1 -1
  152. package/dist/components/popover/index.d.ts +2 -2
  153. package/dist/components/popover/index.js +1 -1
  154. package/dist/components/popover/popover.d.ts +1 -1
  155. package/dist/components/popover/popover.js +1 -1
  156. package/dist/components/popover/popover.styles.js +2 -2
  157. package/dist/components/popover/popover.types.d.ts +1 -1
  158. package/dist/components/progress/index.d.ts +2 -2
  159. package/dist/components/progress/index.js +1 -1
  160. package/dist/components/progress/progress.js +1 -1
  161. package/dist/components/radio-group/index.d.ts +2 -2
  162. package/dist/components/radio-group/index.js +1 -1
  163. package/dist/components/radio-group/radio-group.d.ts +1 -1
  164. package/dist/components/radio-group/radio-group.js +3 -3
  165. package/dist/components/radio-group/radio-group.styles.js +1 -1
  166. package/dist/components/search-field/index.d.ts +2 -2
  167. package/dist/components/search-field/index.js +1 -1
  168. package/dist/components/search-field/search-field.d.ts +1 -1
  169. package/dist/components/search-field/search-field.js +3 -3
  170. package/dist/components/search-field/search-field.styles.d.ts +1 -1
  171. package/dist/components/search-field/search-field.styles.js +2 -2
  172. package/dist/components/search-field/search-field.types.d.ts +1 -1
  173. package/dist/components/select/index.d.ts +1 -1
  174. package/dist/components/select/index.js +1 -1
  175. package/dist/components/select/select.d.ts +1 -1
  176. package/dist/components/select/select.js +2 -2
  177. package/dist/components/select/select.styles.js +1 -1
  178. package/dist/components/skeleton/index.d.ts +1 -1
  179. package/dist/components/skeleton/index.js +1 -1
  180. package/dist/components/skeleton/skeleton.js +1 -1
  181. package/dist/components/slider/index.d.ts +2 -2
  182. package/dist/components/slider/index.js +1 -1
  183. package/dist/components/slider/slider.d.ts +1 -1
  184. package/dist/components/slider/slider.js +2 -2
  185. package/dist/components/slider/slider.styles.js +1 -1
  186. package/dist/components/sparkline/index.d.ts +1 -1
  187. package/dist/components/sparkline/index.js +1 -1
  188. package/dist/components/sparkline/sparkline.d.ts +1 -1
  189. package/dist/components/sparkline/sparkline.js +6 -6
  190. package/dist/components/spinner/index.d.ts +1 -1
  191. package/dist/components/spinner/index.js +1 -1
  192. package/dist/components/spinner/spinner.js +1 -1
  193. package/dist/components/stepper/index.d.ts +3 -3
  194. package/dist/components/stepper/index.js +2 -2
  195. package/dist/components/stepper/stepper-step.d.ts +1 -1
  196. package/dist/components/stepper/stepper-step.js +1 -1
  197. package/dist/components/stepper/stepper.d.ts +2 -2
  198. package/dist/components/stepper/stepper.js +2 -2
  199. package/dist/components/stepper/stepper.styles.d.ts +1 -1
  200. package/dist/components/stepper/stepper.styles.js +1 -1
  201. package/dist/components/stepper/use-stepper.d.ts +1 -1
  202. package/dist/components/switch/index.d.ts +2 -2
  203. package/dist/components/switch/index.js +1 -1
  204. package/dist/components/switch/switch.d.ts +1 -1
  205. package/dist/components/switch/switch.js +1 -1
  206. package/dist/components/switch/switch.styles.js +1 -1
  207. package/dist/components/table/index.d.ts +1 -1
  208. package/dist/components/table/index.js +1 -1
  209. package/dist/components/table/table-sort-glyph.js +1 -1
  210. package/dist/components/table/table.js +4 -4
  211. package/dist/components/table/table.styles.js +1 -1
  212. package/dist/components/tabs/index.d.ts +1 -1
  213. package/dist/components/tabs/index.js +1 -1
  214. package/dist/components/tabs/tabs.d.ts +1 -1
  215. package/dist/components/tabs/tabs.js +2 -2
  216. package/dist/components/tabs/tabs.styles.js +1 -1
  217. package/dist/components/tag-field/index.d.ts +2 -2
  218. package/dist/components/tag-field/index.js +1 -1
  219. package/dist/components/tag-field/tag-field-tags.js +2 -2
  220. package/dist/components/tag-field/tag-field.d.ts +1 -1
  221. package/dist/components/tag-field/tag-field.js +5 -5
  222. package/dist/components/tag-field/tag-field.styles.d.ts +2 -2
  223. package/dist/components/tag-field/tag-field.styles.js +3 -3
  224. package/dist/components/tag-field/tag-field.types.d.ts +1 -1
  225. package/dist/components/text-area/index.d.ts +2 -2
  226. package/dist/components/text-area/index.js +1 -1
  227. package/dist/components/text-area/text-area.d.ts +1 -1
  228. package/dist/components/text-area/text-area.js +3 -3
  229. package/dist/components/text-area/text-area.styles.d.ts +1 -1
  230. package/dist/components/text-area/text-area.styles.js +2 -2
  231. package/dist/components/text-area/text-area.types.d.ts +1 -1
  232. package/dist/components/text-field/index.d.ts +2 -2
  233. package/dist/components/text-field/index.js +1 -1
  234. package/dist/components/text-field/text-field.d.ts +1 -1
  235. package/dist/components/text-field/text-field.js +2 -2
  236. package/dist/components/text-field/text-field.styles.d.ts +1 -1
  237. package/dist/components/text-field/text-field.styles.js +1 -1
  238. package/dist/components/text-field/text-field.types.d.ts +1 -1
  239. package/dist/components/toast/index.d.ts +2 -2
  240. package/dist/components/toast/index.js +1 -1
  241. package/dist/components/toast/toast-glyph.d.ts +1 -1
  242. package/dist/components/toast/toast-glyph.js +1 -1
  243. package/dist/components/toast/toast-item.d.ts +1 -1
  244. package/dist/components/toast/toast-item.js +3 -3
  245. package/dist/components/toast/toast.d.ts +1 -1
  246. package/dist/components/toast/toast.js +2 -2
  247. package/dist/components/toast/toast.styles.js +1 -1
  248. package/dist/components/tooltip/index.d.ts +2 -2
  249. package/dist/components/tooltip/index.js +1 -1
  250. package/dist/components/tooltip/tooltip.d.ts +1 -1
  251. package/dist/components/tooltip/tooltip.js +1 -1
  252. package/dist/components/tooltip/tooltip.styles.js +1 -1
  253. package/dist/index.d.ts +51 -51
  254. package/dist/index.js +50 -50
  255. package/dist/styles/field.js +1 -1
  256. package/dist/styles/overlays.js +1 -1
  257. package/package.json +110 -301
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Button, Calendar, CalendarCell, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell, DateInput, DatePicker as AriaDatePicker, DateSegment, Dialog, Group, Heading, Label, Popover, } from "react-aria-components";
4
- import { fieldTriggerClass, popoverSurfaceClass } from "../../styles/overlays";
5
- import { cn } from "../../utils/cn";
4
+ import { fieldTriggerClass, popoverSurfaceClass } from "../../styles/overlays.js";
5
+ import { cn } from "../../utils/cn.js";
6
6
  export function DatePicker({ className, label = "Date", ...props }) {
7
7
  return (_jsxs(AriaDatePicker, { ...props, className: cn("flex w-full max-w-sm flex-col gap-1.5 text-sm", className), children: [_jsx(Label, { className: "font-medium", children: label }), _jsxs(Group, { className: fieldTriggerClass, "data-kp-surface": true, children: [_jsx(DateInput, { className: "flex flex-1 gap-0.5 tabular-nums outline-none", children: (segment) => (_jsx(DateSegment, { segment: segment, className: "rounded px-0.5 outline-none data-[placeholder]:text-muted-foreground data-[focused]:bg-muted" })) }), _jsx(Button, { className: "min-h-10 min-w-10 rounded-[var(--kp-radius-sm)] text-muted-foreground outline-none data-[pressed]:scale-[0.96] data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring", children: "\u25A2" })] }), _jsx(Popover, { className: cn(popoverSurfaceClass, "p-3"), "data-kp-surface": true, children: _jsx(Dialog, { className: "outline-none", children: _jsxs(Calendar, { className: "text-sm", children: [_jsxs("header", { className: "mb-3 flex items-center justify-between gap-2", children: [_jsx(Button, { slot: "previous", className: "min-h-10 min-w-10 rounded-[var(--kp-radius-sm)] outline-none data-[pressed]:scale-[0.96] data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring", children: "\u2039" }), _jsx(Heading, { className: "text-sm font-semibold" }), _jsx(Button, { slot: "next", className: "min-h-10 min-w-10 rounded-[var(--kp-radius-sm)] outline-none data-[pressed]:scale-[0.96] data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring", children: "\u203A" })] }), _jsxs(CalendarGrid, { className: "w-full border-separate border-spacing-1", children: [_jsx(CalendarGridHeader, { children: (day) => (_jsx(CalendarHeaderCell, { className: "size-9 text-xs font-medium text-muted-foreground", children: day })) }), _jsx(CalendarGridBody, { children: (date) => (_jsx(CalendarCell, { date: date, className: "size-9 rounded-[var(--kp-radius-sm)] text-center outline-none tabular-nums data-[hovered]:bg-muted data-[selected]:bg-accent data-[selected]:text-accent-foreground data-[disabled]:opacity-35 data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring" })) })] })] }) }) })] }));
8
8
  }
@@ -1 +1 @@
1
- export { DatePicker } from "./date-picker";
1
+ export { DatePicker } from "./date-picker.js";
@@ -1 +1 @@
1
- export { DatePicker } from "./date-picker";
1
+ export { DatePicker } from "./date-picker.js";
@@ -1,4 +1,4 @@
1
- import type { DateRangePreset, DateRangePresetId } from "./date-range-picker.types";
1
+ import type { DateRangePreset, DateRangePresetId } from "./date-range-picker.types.js";
2
2
  export declare function DateRangePickerPopoverBody({ showPresets, presets, }: {
3
3
  showPresets: boolean;
4
4
  presets: DateRangePresetId[] | DateRangePreset[] | undefined;
@@ -2,8 +2,8 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Button, CalendarCell, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell, DateRangePickerStateContext, Heading, RangeCalendar, } from "react-aria-components";
4
4
  import { useContext } from "react";
5
- import { resolvePresets } from "./date-range-picker.presets";
6
- import { dateRangeCellClass, dateRangeDialogClass, dateRangeNavButtonClass, dateRangePresetButtonClass, dateRangePresetsClass, } from "./date-range-picker.styles";
5
+ import { resolvePresets } from "./date-range-picker.presets.js";
6
+ import { dateRangeCellClass, dateRangeDialogClass, dateRangeNavButtonClass, dateRangePresetButtonClass, dateRangePresetsClass, } from "./date-range-picker.styles.js";
7
7
  function PresetList({ presets, }) {
8
8
  const state = useContext(DateRangePickerStateContext);
9
9
  const items = resolvePresets(presets);
@@ -1,2 +1,2 @@
1
- import type { DateRangePickerProps } from "./date-range-picker.types";
1
+ import type { DateRangePickerProps } from "./date-range-picker.types.js";
2
2
  export declare function DateRangePicker({ className, description, errorMessage, label, presets, showPresets, ...props }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Button, DateInput, DateRangePicker as AriaDateRangePicker, DateSegment, Dialog, FieldError, Group, Label, Popover, Text, } from "react-aria-components";
4
- import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, } from "../../styles/field";
5
- import { DateRangePickerPopoverBody } from "./date-range-picker.calendar";
6
- import { dateRangeGroupClass, dateRangeInputClass, dateRangePickerClassName, dateRangePopoverClass, dateRangeSegmentClass, dateRangeTriggerClass, } from "./date-range-picker.styles";
4
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, } from "../../styles/field.js";
5
+ import { DateRangePickerPopoverBody } from "./date-range-picker.calendar.js";
6
+ import { dateRangeGroupClass, dateRangeInputClass, dateRangePickerClassName, dateRangePopoverClass, dateRangeSegmentClass, dateRangeTriggerClass, } from "./date-range-picker.styles.js";
7
7
  export function DateRangePicker({ className, description, errorMessage, label, presets, showPresets = true, ...props }) {
8
8
  return (_jsxs(AriaDateRangePicker, { ...props, className: dateRangePickerClassName(className), children: [label ? _jsx(Label, { className: fieldLabelClass, children: label }) : null, _jsxs(Group, { className: dateRangeGroupClass, "data-kp-surface": true, children: [_jsx(DateInput, { slot: "start", className: dateRangeInputClass, children: (segment) => (_jsx(DateSegment, { segment: segment, className: dateRangeSegmentClass })) }), _jsx("span", { "aria-hidden": "true", className: "px-0.5 text-muted-foreground", children: "\u2013" }), _jsx(DateInput, { slot: "end", className: dateRangeInputClass, children: (segment) => (_jsx(DateSegment, { segment: segment, className: dateRangeSegmentClass })) }), _jsx(Button, { className: dateRangeTriggerClass, "aria-label": "Open calendar", children: "\u25A2" })] }), description ? (_jsx(Text, { slot: "description", className: fieldDescriptionClass, children: description })) : null, _jsx(FieldError, { className: fieldErrorClass, children: errorMessage }), _jsx(Popover, { className: dateRangePopoverClass, "data-kp-surface": true, children: _jsx(Dialog, { className: "outline-none", "aria-label": "Choose date range", children: _jsx(DateRangePickerPopoverBody, { showPresets: showPresets, presets: presets }) }) })] }));
9
9
  }
@@ -1,3 +1,3 @@
1
- import type { DateRangePreset, DateRangePresetId } from "./date-range-picker.types";
1
+ import type { DateRangePreset, DateRangePresetId } from "./date-range-picker.types.js";
2
2
  export declare const defaultPresetIds: DateRangePresetId[];
3
3
  export declare function resolvePresets(presets: DateRangePresetId[] | DateRangePreset[] | undefined): DateRangePreset[];
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  export function dateRangePickerClassName(className) {
3
3
  return cn("flex w-full max-w-md flex-col gap-1.5 text-sm text-foreground", className);
4
4
  }
@@ -1,2 +1,2 @@
1
- export { DateRangePicker } from "./date-range-picker";
2
- export type { CalendarDate, DateRangePreset, DateRangePresetId, DateRangePickerProps, DateRangeValue, DateValue, } from "./date-range-picker.types";
1
+ export { DateRangePicker } from "./date-range-picker.js";
2
+ export type { CalendarDate, DateRangePreset, DateRangePresetId, DateRangePickerProps, DateRangeValue, DateValue, } from "./date-range-picker.types.js";
@@ -1 +1 @@
1
- export { DateRangePicker } from "./date-range-picker";
1
+ export { DateRangePicker } from "./date-range-picker.js";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Dialog as AriaDialog, DialogTrigger as AriaDialogTrigger, Heading, Modal, ModalOverlay, } from "react-aria-components";
4
- import { dialogActionsClass, dialogBodyClass, dialogModalClass, dialogOverlayClass, dialogPanelClass, dialogTitleClass, } from "./dialog.styles";
4
+ import { dialogActionsClass, dialogBodyClass, dialogModalClass, dialogOverlayClass, dialogPanelClass, dialogTitleClass, } from "./dialog.styles.js";
5
5
  export function DialogTrigger(props) {
6
6
  return _jsx(AriaDialogTrigger, { ...props });
7
7
  }
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  export const dialogOverlayClass = "fixed inset-0 z-50 bg-[color-mix(in_oklch,var(--kp-foreground)_28%,transparent)]";
3
3
  export const dialogModalClass = "fixed inset-0 z-50 flex items-center justify-center p-4";
4
4
  export function dialogPanelClass(className) {
@@ -1,4 +1,4 @@
1
- import { Dialog, DialogActions, DialogBody, DialogTrigger } from "./dialog";
1
+ import { Dialog, DialogActions, DialogBody, DialogTrigger } from "./dialog.js";
2
2
  export declare const DialogRoot: typeof DialogTrigger & {
3
3
  Content: typeof Dialog;
4
4
  Body: typeof DialogBody;
@@ -1,4 +1,4 @@
1
- import { Dialog, DialogActions, DialogBody, DialogTrigger, } from "./dialog";
1
+ import { Dialog, DialogActions, DialogBody, DialogTrigger, } from "./dialog.js";
2
2
  export const DialogRoot = Object.assign(DialogTrigger, {
3
3
  Content: Dialog,
4
4
  Body: DialogBody,
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
- import { ChartTooltip } from "../../chart/interaction";
3
- import type { ChartStatus, DonutSlice } from "../../chart/types";
2
+ import { ChartTooltip } from "../../chart/interaction.js";
3
+ import type { ChartStatus, DonutSlice } from "../../chart/types.js";
4
4
  export type DonutChartProps = {
5
5
  slices: DonutSlice[];
6
6
  summary: string;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { pie as d3Pie, arc as d3Arc } from "d3-shape";
4
- import { seriesColor } from "../../chart/colors";
5
- import { ChartFrame } from "../../chart/frame";
6
- import { ChartInteractionProvider, ChartTooltip, useChartInteraction, } from "../../chart/interaction";
7
- import { useMotionMode } from "../../providers/motion-provider";
4
+ import { seriesColor } from "../../chart/colors.js";
5
+ import { ChartFrame } from "../../chart/frame.js";
6
+ import { ChartInteractionProvider, ChartTooltip, useChartInteraction, } from "../../chart/interaction.js";
7
+ import { useMotionMode } from "../../providers/motion-provider.js";
8
8
  function resolveDonutStatus(slices, status) {
9
9
  if (status)
10
10
  return status;
@@ -1 +1 @@
1
- export { DonutChart, type DonutChartProps } from "./donut-chart";
1
+ export { DonutChart, type DonutChartProps } from "./donut-chart.js";
@@ -1 +1 @@
1
- export { DonutChart } from "./donut-chart";
1
+ export { DonutChart } from "./donut-chart.js";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Dialog as AriaDialog, DialogTrigger as AriaDialogTrigger, Heading, Modal, ModalOverlay, } from "react-aria-components";
4
- import { Button } from "../button";
5
- import { cn } from "../../utils/cn";
4
+ import { Button } from "../button/index.js";
5
+ import { cn } from "../../utils/cn.js";
6
6
  export function DrawerTrigger(props) {
7
7
  return _jsx(AriaDialogTrigger, { ...props });
8
8
  }
@@ -1 +1 @@
1
- export { Drawer, DrawerTrigger } from "./drawer";
1
+ export { Drawer, DrawerTrigger } from "./drawer.js";
@@ -1 +1 @@
1
- export { Drawer, DrawerTrigger } from "./drawer";
1
+ export { Drawer, DrawerTrigger } from "./drawer.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from "../../utils/cn";
2
+ import { cn } from "../../utils/cn.js";
3
3
  export function Empty({ title, children, action, className, }) {
4
4
  return (_jsxs("div", { role: "status", className: cn("flex flex-col items-start gap-2 rounded-[var(--kp-radius-lg)] border border-dashed border-border px-4 py-6", "bg-[color-mix(in_oklch,var(--kp-muted)_35%,transparent)]", className), children: [_jsx("p", { className: "text-sm font-medium text-balance text-foreground", children: title }), children ? (_jsx("div", { className: "max-w-sm text-sm leading-relaxed text-muted-foreground text-pretty", children: children })) : null, action ? _jsx("div", { className: "pt-1", children: action }) : null] }));
5
5
  }
@@ -1 +1 @@
1
- export { Empty } from "./empty";
1
+ export { Empty } from "./empty.js";
@@ -1 +1 @@
1
- export { Empty } from "./empty";
1
+ export { Empty } from "./empty.js";
@@ -1,2 +1,2 @@
1
- import type { FileUploadProps } from "./file-upload.types";
1
+ import type { FileUploadProps } from "./file-upload.types.js";
2
2
  export declare function FileUpload({ acceptedFileTypes, allowsMultiple, buttonLabel, className, defaultFiles, description, emptyLabel, errorMessage, files, isDisabled, isInvalid, label, onFilesChange, ...props }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
@@ -2,9 +2,9 @@
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useState } from "react";
4
4
  import { Button, DropZone, FileTrigger, Text, } from "react-aria-components";
5
- import { Button as KpButton } from "../button";
6
- import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, } from "../../styles/field";
7
- import { dropZoneClassName, dropZoneHintClass, dropZoneIconClass, fileListClass, fileNameClass, fileRowClass, fileUploadRootClass, removeFileClass, } from "./file-upload.styles";
5
+ import { Button as KpButton } from "../button/index.js";
6
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, } from "../../styles/field.js";
7
+ import { dropZoneClassName, dropZoneHintClass, dropZoneIconClass, fileListClass, fileNameClass, fileRowClass, fileUploadRootClass, removeFileClass, } from "./file-upload.styles.js";
8
8
  function formatSize(bytes) {
9
9
  if (bytes < 1024)
10
10
  return `${bytes} B`;
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  export function fileUploadRootClass(className) {
3
3
  return cn("flex w-full max-w-md flex-col gap-2.5 text-sm text-foreground", className);
4
4
  }
@@ -1,2 +1,2 @@
1
- export { FileUpload } from "./file-upload";
2
- export type { FileUploadProps } from "./file-upload.types";
1
+ export { FileUpload } from "./file-upload.js";
2
+ export type { FileUploadProps } from "./file-upload.types.js";
@@ -1 +1 @@
1
- export { FileUpload } from "./file-upload";
1
+ export { FileUpload } from "./file-upload.js";
@@ -1,2 +1,2 @@
1
- import type { FormProps } from "./form.types";
1
+ import type { FormProps } from "./form.types.js";
2
2
  export declare function Form({ children, className, ...props }: FormProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Form as AriaForm } from "react-aria-components";
4
- import { formClassName } from "./form.styles";
4
+ import { formClassName } from "./form.styles.js";
5
5
  export function Form({ children, className, ...props }) {
6
6
  return (_jsx(AriaForm, { ...props, className: formClassName(className), children: children }));
7
7
  }
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  export function formClassName(className) {
3
3
  return cn("flex w-full max-w-sm flex-col gap-4", className);
4
4
  }
@@ -1,2 +1,2 @@
1
- export { Form } from "./form";
2
- export type { FormProps } from "./form.types";
1
+ export { Form } from "./form.js";
2
+ export type { FormProps } from "./form.types.js";
@@ -1 +1 @@
1
- export { Form } from "./form";
1
+ export { Form } from "./form.js";
@@ -1,2 +1,2 @@
1
- export { InputGroup } from "./input-group";
2
- export type { InputGroupAffixProps, InputGroupProps, InputGroupSize, InputGroupVariant, } from "./input-group.types";
1
+ export { InputGroup } from "./input-group.js";
2
+ export type { InputGroupAffixProps, InputGroupProps, InputGroupSize, InputGroupVariant, } from "./input-group.types.js";
@@ -1 +1 @@
1
- export { InputGroup } from "./input-group";
1
+ export { InputGroup } from "./input-group.js";
@@ -1,4 +1,4 @@
1
- import type { InputGroupAffixProps, InputGroupProps } from "./input-group.types";
1
+ import type { InputGroupAffixProps, InputGroupProps } from "./input-group.types.js";
2
2
  declare function Prefix({ children, className }: InputGroupAffixProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare function Suffix({ children, className }: InputGroupAffixProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare function InputGroupInput({ className, ...props }: {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { FieldError, Group, Input, Label, Text, TextField as AriaTextField, } from "react-aria-components";
4
- import { cn } from "../../utils/cn";
5
- import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldRootClass, fieldSurfaceProps, } from "../../styles/field";
6
- import { inputGroupAffixClass, inputGroupClassName, inputGroupInputClass, } from "./input-group.styles";
4
+ import { cn } from "../../utils/cn.js";
5
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldRootClass, fieldSurfaceProps, } from "../../styles/field.js";
6
+ import { inputGroupAffixClass, inputGroupClassName, inputGroupInputClass, } from "./input-group.styles.js";
7
7
  function Prefix({ children, className }) {
8
8
  return _jsx("span", { className: inputGroupAffixClass(className), children: children });
9
9
  }
@@ -1,4 +1,4 @@
1
- import { type FieldSize, type FieldVariant } from "../../styles/field";
1
+ import { type FieldSize, type FieldVariant } from "../../styles/field.js";
2
2
  export declare function inputGroupClassName({ className, size, variant, }?: {
3
3
  className?: string | undefined;
4
4
  size?: FieldSize | undefined;
@@ -1,5 +1,5 @@
1
- import { cn } from "../../utils/cn";
2
- import { inputSurfaceClassName, } from "../../styles/field";
1
+ import { cn } from "../../utils/cn.js";
2
+ import { inputSurfaceClassName, } from "../../styles/field.js";
3
3
  export function inputGroupClassName({ className, size = "md", variant = "outline", } = {}) {
4
4
  return cn(inputSurfaceClassName({ size, variant }), "flex items-center gap-2", className);
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import type { TextFieldProps as AriaTextFieldProps } from "react-aria-components";
2
2
  import type { ReactNode } from "react";
3
- import type { FieldSize, FieldVariant } from "../../styles/field";
3
+ import type { FieldSize, FieldVariant } from "../../styles/field.js";
4
4
  export type InputGroupVariant = FieldVariant;
5
5
  export type InputGroupSize = FieldSize;
6
6
  export type InputGroupProps = Omit<AriaTextFieldProps, "className" | "children"> & {
@@ -1,2 +1,2 @@
1
- export { InputOtp as InputOTP, InputOtp } from "./input-otp";
2
- export type { InputOtpProps as InputOTPProps, InputOtpProps, InputOtpSize as InputOTPSize, InputOtpSize, InputOtpVariant as InputOTPVariant, InputOtpVariant, } from "./input-otp.types";
1
+ export { InputOtp as InputOTP, InputOtp } from "./input-otp.js";
2
+ export type { InputOtpProps as InputOTPProps, InputOtpProps, InputOtpSize as InputOTPSize, InputOtpSize, InputOtpVariant as InputOTPVariant, InputOtpVariant, } from "./input-otp.types.js";
@@ -1 +1 @@
1
- export { InputOtp as InputOTP, InputOtp } from "./input-otp";
1
+ export { InputOtp as InputOTP, InputOtp } from "./input-otp.js";
@@ -1,2 +1,2 @@
1
- import type { InputOtpProps } from "./input-otp.types";
1
+ import type { InputOtpProps } from "./input-otp.types.js";
2
2
  export declare function InputOtp({ "aria-label": ariaLabel, autoFocus, className, defaultValue, description, errorMessage, isDisabled, isInvalid, isRequired, label, length, name, onChange, onComplete, size, value, variant, }: InputOtpProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useId, useRef, useState, } from "react";
4
- import { cn } from "../../utils/cn";
5
- import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldSurfaceProps, } from "../../styles/field";
6
- import { inputOtpRootClass, inputOtpSlotClassName, inputOtpSlotsClass, } from "./input-otp.styles";
4
+ import { cn } from "../../utils/cn.js";
5
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldSurfaceProps, } from "../../styles/field.js";
6
+ import { inputOtpRootClass, inputOtpSlotClassName, inputOtpSlotsClass, } from "./input-otp.styles.js";
7
7
  function normalize(value, length) {
8
8
  return value.replace(/\D/g, "").slice(0, length);
9
9
  }
@@ -1,4 +1,4 @@
1
- import { type FieldSize, type FieldVariant } from "../../styles/field";
1
+ import { type FieldSize, type FieldVariant } from "../../styles/field.js";
2
2
  export declare function inputOtpRootClass(className?: string | undefined): string;
3
3
  export declare const inputOtpSlotsClass = "flex flex-row flex-nowrap items-center gap-2";
4
4
  export declare function inputOtpSlotClassName({ className, size, variant, }?: {
@@ -1,5 +1,5 @@
1
- import { cn } from "../../utils/cn";
2
- import { inputSurfaceClassName, } from "../../styles/field";
1
+ import { cn } from "../../utils/cn.js";
2
+ import { inputSurfaceClassName, } from "../../styles/field.js";
3
3
  export function inputOtpRootClass(className) {
4
4
  return cn("flex w-full max-w-sm flex-col gap-1.5 text-sm text-foreground", className);
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { FieldSize, FieldVariant } from "../../styles/field";
2
+ import type { FieldSize, FieldVariant } from "../../styles/field.js";
3
3
  export type InputOtpVariant = FieldVariant;
4
4
  export type InputOtpSize = FieldSize;
5
5
  export type InputOtpProps = {
@@ -1 +1 @@
1
- export { LineChart, type LineChartProps } from "./line-chart";
1
+ export { LineChart, type LineChartProps } from "./line-chart.js";
@@ -1 +1 @@
1
- export { LineChart } from "./line-chart";
1
+ export { LineChart } from "./line-chart.js";
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
- import { ChartTooltip } from "../../chart/interaction";
3
- import type { ChartSeries, ChartStatus } from "../../chart/types";
2
+ import { ChartTooltip } from "../../chart/interaction.js";
3
+ import type { ChartSeries, ChartStatus } from "../../chart/types.js";
4
4
  export type LineChartProps = {
5
5
  series: ChartSeries[];
6
6
  summary: string;
@@ -2,14 +2,14 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { drawIn } from "@hewnui/motion";
4
4
  import { m } from "motion/react";
5
- import { AxisLabels, GridLines } from "../../chart/axes";
6
- import { seriesColor } from "../../chart/colors";
7
- import { ChartFrame } from "../../chart/frame";
8
- import { ChartInteractionProvider, ChartTooltip, useChartInteraction, } from "../../chart/interaction";
9
- import { linePath } from "../../chart/path";
10
- import { createLinearScales, flattenSeries } from "../../chart/scales";
11
- import { resolveStatus } from "../../chart/status";
12
- import { useMotionMode } from "../../providers/motion-provider";
5
+ import { AxisLabels, GridLines } from "../../chart/axes.js";
6
+ import { seriesColor } from "../../chart/colors.js";
7
+ import { ChartFrame } from "../../chart/frame.js";
8
+ import { ChartInteractionProvider, ChartTooltip, useChartInteraction, } from "../../chart/interaction.js";
9
+ import { linePath } from "../../chart/path.js";
10
+ import { createLinearScales, flattenSeries } from "../../chart/scales.js";
11
+ import { resolveStatus } from "../../chart/status.js";
12
+ import { useMotionMode } from "../../providers/motion-provider.js";
13
13
  function LineChartRoot({ series, summary, className, width = 480, height = 240, status, children, }) {
14
14
  const resolved = resolveStatus(series, status);
15
15
  if (resolved !== "ready") {
@@ -1,2 +1,2 @@
1
- export { Link } from "./link";
2
- export type { LinkProps, LinkVariant } from "./link.types";
1
+ export { Link } from "./link.js";
2
+ export type { LinkProps, LinkVariant } from "./link.types.js";
@@ -1 +1 @@
1
- export { Link } from "./link";
1
+ export { Link } from "./link.js";
@@ -1,2 +1,2 @@
1
- import type { LinkProps } from "./link.types";
1
+ import type { LinkProps } from "./link.types.js";
2
2
  export declare function Link({ children, className, variant, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Link as AriaLink } from "react-aria-components";
4
- import { linkClassName } from "./link.styles";
4
+ import { linkClassName } from "./link.styles.js";
5
5
  export function Link({ children, className, variant = "accent", ...props }) {
6
6
  return (_jsx(AriaLink, { ...props, className: linkClassName({ className, variant }), children: children }));
7
7
  }
@@ -1,4 +1,4 @@
1
- import type { LinkVariant } from "./link.types";
1
+ import type { LinkVariant } from "./link.types.js";
2
2
  export declare function linkClassName({ className, variant, }?: {
3
3
  className?: string | undefined;
4
4
  variant?: LinkVariant | undefined;
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  const variants = {
3
3
  accent: "text-accent hover:brightness-[1.08]",
4
4
  muted: "text-muted-foreground hover:text-foreground",
@@ -1,4 +1,4 @@
1
- import { Menu, MenuButton, MenuItem, MenuSeparator, MenuTrigger } from "./menu";
1
+ import { Menu, MenuButton, MenuItem, MenuSeparator, MenuTrigger } from "./menu.js";
2
2
  export declare const MenuRoot: typeof MenuTrigger & {
3
3
  Button: typeof MenuButton;
4
4
  Content: typeof Menu;
@@ -1,4 +1,4 @@
1
- import { Menu, MenuButton, MenuItem, MenuSeparator, MenuTrigger, } from "./menu";
1
+ import { Menu, MenuButton, MenuItem, MenuSeparator, MenuTrigger, } from "./menu.js";
2
2
  export const MenuRoot = Object.assign(MenuTrigger, {
3
3
  Button: MenuButton,
4
4
  Content: Menu,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Button, Menu as AriaMenu, MenuItem as AriaMenuItem, MenuTrigger as AriaMenuTrigger, Popover, Separator, } from "react-aria-components";
4
- import { menuItemClass, popoverSurfaceClass } from "../../styles/overlays";
5
- import { buttonClassName } from "../button/button.styles";
6
- import { useMotionMode } from "../../providers/motion-provider";
4
+ import { menuItemClass, popoverSurfaceClass } from "../../styles/overlays.js";
5
+ import { buttonClassName } from "../button/button.styles.js";
6
+ import { useMotionMode } from "../../providers/motion-provider.js";
7
7
  export function MenuTrigger({ children, ...props }) {
8
8
  return _jsx(AriaMenuTrigger, { ...props, children: children });
9
9
  }
@@ -1,2 +1,2 @@
1
- export { NumberField } from "./number-field";
2
- export type { NumberFieldProps, NumberFieldSize, NumberFieldVariant, } from "./number-field.types";
1
+ export { NumberField } from "./number-field.js";
2
+ export type { NumberFieldProps, NumberFieldSize, NumberFieldVariant, } from "./number-field.types.js";
@@ -1 +1 @@
1
- export { NumberField } from "./number-field";
1
+ export { NumberField } from "./number-field.js";
@@ -1,2 +1,2 @@
1
- import type { NumberFieldProps } from "./number-field.types";
1
+ import type { NumberFieldProps } from "./number-field.types.js";
2
2
  export declare function NumberField({ className, description, errorMessage, inputClassName: inputClass, label, size, variant, ...props }: NumberFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Button, FieldError, Group, Input, Label, NumberField as AriaNumberField, Text, } from "react-aria-components";
4
- import { cn } from "../../utils/cn";
5
- import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldRootClass, fieldSurfaceProps, } from "../../styles/field";
6
- import { numberGroupClassName, numberInputClass, numberStepperClass, } from "./number-field.styles";
4
+ import { cn } from "../../utils/cn.js";
5
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldRootClass, fieldSurfaceProps, } from "../../styles/field.js";
6
+ import { numberGroupClassName, numberInputClass, numberStepperClass, } from "./number-field.styles.js";
7
7
  function StepIcon({ direction }) {
8
8
  return (_jsx("svg", { viewBox: "0 0 12 12", className: "size-3.5", "aria-hidden": true, children: _jsx("path", { d: direction === "up"
9
9
  ? "M2.5 7.5 6 4l3.5 3.5"
@@ -1,4 +1,4 @@
1
- import { type FieldSize, type FieldVariant } from "../../styles/field";
1
+ import { type FieldSize, type FieldVariant } from "../../styles/field.js";
2
2
  export declare function numberGroupClassName({ className, size, variant, }?: {
3
3
  className?: string | undefined;
4
4
  size?: FieldSize | undefined;
@@ -1,5 +1,5 @@
1
- import { cn } from "../../utils/cn";
2
- import { inputSurfaceClassName, } from "../../styles/field";
1
+ import { cn } from "../../utils/cn.js";
2
+ import { inputSurfaceClassName, } from "../../styles/field.js";
3
3
  export function numberGroupClassName({ className, size = "md", variant = "outline", } = {}) {
4
4
  return cn(inputSurfaceClassName({ size, variant }), "flex items-stretch gap-0 p-0 tabular-nums", variant !== "flushed" && "overflow-hidden", className);
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import type { NumberFieldProps as AriaNumberFieldProps } from "react-aria-components";
2
2
  import type { ReactNode } from "react";
3
- import type { FieldSize, FieldVariant } from "../../styles/field";
3
+ import type { FieldSize, FieldVariant } from "../../styles/field.js";
4
4
  export type NumberFieldVariant = FieldVariant;
5
5
  export type NumberFieldSize = FieldSize;
6
6
  export type NumberFieldProps = Omit<AriaNumberFieldProps, "className" | "children"> & {
@@ -1,3 +1,3 @@
1
- export { Pagination } from "./pagination";
2
- export type { PaginationItem, PaginationProps, PaginationSize, } from "./pagination.types";
3
- export { getPaginationItems } from "./pagination.utils";
1
+ export { Pagination } from "./pagination.js";
2
+ export type { PaginationItem, PaginationProps, PaginationSize, } from "./pagination.types.js";
3
+ export { getPaginationItems } from "./pagination.utils.js";
@@ -1,2 +1,2 @@
1
- export { Pagination } from "./pagination";
2
- export { getPaginationItems } from "./pagination.utils";
1
+ export { Pagination } from "./pagination.js";
2
+ export { getPaginationItems } from "./pagination.utils.js";
@@ -1,2 +1,2 @@
1
- import type { PaginationProps } from "./pagination.types";
1
+ import type { PaginationProps } from "./pagination.types.js";
2
2
  export declare function Pagination({ "aria-label": ariaLabel, boundaryCount, className, defaultPage, getHref, isDisabled, nextLabel, onPageChange, page, previousLabel, siblingCount, size, total, }: PaginationProps): import("react/jsx-runtime").JSX.Element;