@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,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { formatTick } from "./status";
2
+ import { formatTick } from "./status.js";
3
3
  export function GridLines({ x, y, width, height, pad, }) {
4
4
  const yTicks = y.ticks?.(4) ?? [];
5
5
  return (_jsxs("g", { "aria-hidden": true, children: [yTicks.map((tick) => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from "../utils/cn";
3
- import { Skeleton } from "../components/skeleton";
2
+ import { cn } from "../utils/cn.js";
3
+ import { Skeleton } from "../components/skeleton/index.js";
4
4
  export function ChartFrame({ className, width, height, summary, children, status = "ready", errorMessage = "Could not render chart.",
5
5
  /** When true, SVG uses role=group so focusable point controls are not nested in role=img. */
6
6
  interactive = false, }) {
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import type { ChartDatum, ChartSeries } from "./types";
2
+ import type { ChartDatum, ChartSeries } from "./types.js";
3
3
  export type ChartHover = {
4
4
  seriesId: string;
5
5
  label: string;
@@ -1,4 +1,4 @@
1
- import type { ChartDatum } from "./types";
1
+ import type { ChartDatum } from "./types.js";
2
2
  type XScale = {
3
3
  (value: number | string): number | undefined;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ChartDatum, ChartSeries, ChartSize } from "./types";
1
+ import type { ChartDatum, ChartSeries, ChartSize } from "./types.js";
2
2
  export declare function flattenSeries(series: ChartSeries[]): ChartDatum[];
3
3
  export declare function xDomain(data: ChartDatum[]): Array<number | string>;
4
4
  export declare function yDomain(data: ChartDatum[], includeZero?: boolean): [number, number];
@@ -1,6 +1,6 @@
1
1
  import { extent, max, min } from "d3-array";
2
2
  import { scaleBand, scaleLinear, scalePoint } from "d3-scale";
3
- import { DEFAULT_PADDING } from "./types";
3
+ import { DEFAULT_PADDING } from "./types.js";
4
4
  export function flattenSeries(series) {
5
5
  return series.flatMap((item) => item.data);
6
6
  }
@@ -1,3 +1,3 @@
1
- import type { ChartDatum, ChartSeries, ChartStatus } from "./types";
1
+ import type { ChartDatum, ChartSeries, ChartStatus } from "./types.js";
2
2
  export declare function resolveStatus(series: ChartSeries[] | ChartDatum[], status?: ChartStatus): ChartStatus;
3
3
  export declare function formatTick(value: number | string): string;
@@ -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 AreaChartProps = {
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, fadeIn } 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 { areaPath, 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 { areaPath, 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 AreaChartRoot({ series, summary, className, width = 480, height = 240, status, children, }) {
14
14
  const resolved = resolveStatus(series, status);
15
15
  if (resolved !== "ready") {
@@ -1 +1 @@
1
- export { AreaChart, type AreaChartProps } from "./area-chart";
1
+ export { AreaChart, type AreaChartProps } from "./area-chart.js";
@@ -1 +1 @@
1
- export { AreaChart } from "./area-chart";
1
+ export { AreaChart } from "./area-chart.js";
@@ -1,2 +1,2 @@
1
- import type { BadgeProps } from "./badge.types";
1
+ import type { BadgeProps } from "./badge.types.js";
2
2
  export declare function Badge({ children, className, color, size, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { badgeClassName, dotClassName } from "./badge.styles";
2
+ import { badgeClassName, dotClassName } from "./badge.styles.js";
3
3
  export function Badge({ children, className, color = "accent", size = "md", variant = "soft", ...props }) {
4
4
  return (_jsxs("span", { className: badgeClassName({ className, color, size, variant }), ...props, children: [variant === "dot" ? (_jsx("span", { "aria-hidden": true, className: dotClassName(color) })) : null, children] }));
5
5
  }
@@ -1,4 +1,4 @@
1
- import type { BadgeColor, BadgeSize, BadgeVariant } from "./badge.types";
1
+ import type { BadgeColor, BadgeSize, BadgeVariant } from "./badge.types.js";
2
2
  export declare function badgeClassName({ className, color, size, variant, }: {
3
3
  className?: string | undefined;
4
4
  color?: BadgeColor | undefined;
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  const colorStyles = {
3
3
  accent: {
4
4
  solid: "bg-accent text-accent-foreground",
@@ -1,3 +1,3 @@
1
- export { Badge } from "./badge";
2
- export { badgeClassName, dotClassName } from "./badge.styles";
3
- export type { BadgeColor, BadgeProps, BadgeSize, BadgeVariant, } from "./badge.types";
1
+ export { Badge } from "./badge.js";
2
+ export { badgeClassName, dotClassName } from "./badge.styles.js";
3
+ export type { BadgeColor, BadgeProps, BadgeSize, BadgeVariant, } from "./badge.types.js";
@@ -1,2 +1,2 @@
1
- export { Badge } from "./badge";
2
- export { badgeClassName, dotClassName } from "./badge.styles";
1
+ export { Badge } from "./badge.js";
2
+ export { badgeClassName, dotClassName } from "./badge.styles.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 BarChartProps = {
5
5
  series: ChartSeries[];
6
6
  summary: string;
@@ -2,13 +2,13 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { springs } 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 { createBandScales, flattenSeries } from "../../chart/scales";
10
- import { resolveStatus } from "../../chart/status";
11
- 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 { createBandScales, flattenSeries } from "../../chart/scales.js";
10
+ import { resolveStatus } from "../../chart/status.js";
11
+ import { useMotionMode } from "../../providers/motion-provider.js";
12
12
  function BarChartRoot({ series, summary, className, width = 480, height = 240, status, children, }) {
13
13
  const resolved = resolveStatus(series, status);
14
14
  if (resolved !== "ready") {
@@ -1 +1 @@
1
- export { BarChart, type BarChartProps } from "./bar-chart";
1
+ export { BarChart, type BarChartProps } from "./bar-chart.js";
@@ -1 +1 @@
1
- export { BarChart } from "./bar-chart";
1
+ export { BarChart } from "./bar-chart.js";
@@ -1,3 +1,3 @@
1
- import type { BreadcrumbItemProps, BreadcrumbsProps } from "./breadcrumbs.types";
1
+ import type { BreadcrumbItemProps, BreadcrumbsProps } from "./breadcrumbs.types.js";
2
2
  export declare function Breadcrumbs({ "aria-label": ariaLabel, children, className, ...props }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
3
3
  export declare function Breadcrumb({ children, className, href, id, isCurrent, }: BreadcrumbItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Breadcrumb as AriaBreadcrumb, Breadcrumbs as AriaBreadcrumbs, Link, } from "react-aria-components";
4
- import { breadcrumbCurrentClass, breadcrumbItemClassName, breadcrumbLinkClass, breadcrumbSeparatorClass, breadcrumbsClassName, } from "./breadcrumbs.styles";
4
+ import { breadcrumbCurrentClass, breadcrumbItemClassName, breadcrumbLinkClass, breadcrumbSeparatorClass, breadcrumbsClassName, } from "./breadcrumbs.styles.js";
5
5
  export function Breadcrumbs({ "aria-label": ariaLabel = "Breadcrumbs", children, className, ...props }) {
6
6
  return (_jsx(AriaBreadcrumbs, { "aria-label": ariaLabel, className: breadcrumbsClassName(className), ...props, 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 breadcrumbsClassName(className) {
3
3
  return cn("flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground", className);
4
4
  }
@@ -1,2 +1,2 @@
1
- export { Breadcrumb, Breadcrumbs } from "./breadcrumbs";
2
- export type { BreadcrumbItemProps, BreadcrumbsProps, } from "./breadcrumbs.types";
1
+ export { Breadcrumb, Breadcrumbs } from "./breadcrumbs.js";
2
+ export type { BreadcrumbItemProps, BreadcrumbsProps, } from "./breadcrumbs.types.js";
@@ -1 +1 @@
1
- export { Breadcrumb, Breadcrumbs } from "./breadcrumbs";
1
+ export { Breadcrumb, Breadcrumbs } from "./breadcrumbs.js";
@@ -1,2 +1,2 @@
1
- import type { ButtonProps } from "./button.types";
1
+ import type { ButtonProps } from "./button.types.js";
2
2
  export declare function Button({ children, className, isDisabled, isLoading, size, variant, ...props }: ButtonProps): 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 as AriaButton } from "react-aria-components";
4
- import { useMotionMode } from "../../providers/motion-provider";
5
- import { Spinner } from "../spinner";
6
- import { buttonClassName, buttonControlAttr } from "./button.styles";
4
+ import { useMotionMode } from "../../providers/motion-provider.js";
5
+ import { Spinner } from "../spinner/index.js";
6
+ import { buttonClassName, buttonControlAttr } from "./button.styles.js";
7
7
  export function Button({ children, className, isDisabled, isLoading = false, size = "md", variant = "primary", ...props }) {
8
8
  const { motionEnabled } = useMotionMode();
9
9
  const disabled = Boolean(isDisabled || isLoading);
@@ -1,4 +1,4 @@
1
- import type { ButtonSize, ButtonVariant } from "./button.types";
1
+ import type { ButtonSize, ButtonVariant } from "./button.types.js";
2
2
  export declare function buttonClassName({ className, isDisabled, isLoading, pressScale, size, variant, }: {
3
3
  className?: string | undefined;
4
4
  isDisabled?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  const variants = {
3
3
  primary: cn("bg-accent text-accent-foreground", "shadow-[0_1px_2px_oklch(0_0_0/14%),0_8px_20px_-12px_color-mix(in_oklch,var(--kp-accent)_55%,transparent),inset_0_1px_0_oklch(1_0_0/28%)]", "hover:brightness-[1.05] hover:shadow-[0_1px_2px_oklch(0_0_0/16%),0_12px_28px_-14px_color-mix(in_oklch,var(--kp-accent)_62%,transparent),inset_0_1px_0_oklch(1_0_0/34%)]"),
4
4
  secondary: cn("border border-[color-mix(in_oklch,var(--kp-foreground)_14%,transparent)]", "bg-[color-mix(in_oklch,var(--kp-surface)_94%,var(--kp-foreground)_3%)] text-foreground", "shadow-[0_1px_2px_oklch(0_0_0/8%),inset_0_1px_0_oklch(1_0_0/55%)]", "hover:bg-muted hover:border-[color-mix(in_oklch,var(--kp-foreground)_20%,transparent)]"),
@@ -1,2 +1,2 @@
1
- export { Button } from "./button";
2
- export type { ButtonProps, ButtonSize, ButtonVariant, } from "./button.types";
1
+ export { Button } from "./button.js";
2
+ export type { ButtonProps, ButtonSize, ButtonVariant, } from "./button.types.js";
@@ -1 +1 @@
1
- export { Button } from "./button";
1
+ export { Button } from "./button.js";
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { CardProps } from "./card.types";
2
+ import type { CardProps } from "./card.types.js";
3
3
  declare function CardRoot({ children, className, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
4
4
  export declare function CardHeader({ children, className, }: {
5
5
  children?: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cardBodyClassName, cardClassName, cardFooterClassName, cardHeaderClassName, } from "./card.styles";
2
+ import { cardBodyClassName, cardClassName, cardFooterClassName, cardHeaderClassName, } from "./card.styles.js";
3
3
  function CardRoot({ children, className, ...props }) {
4
4
  return (_jsx("div", { "data-kp-surface": true, className: cardClassName(className), ...props, children: children }));
5
5
  }
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  export function cardClassName(className) {
3
3
  return cn("rounded-[var(--kp-radius-lg)] border border-border bg-surface text-foreground", "shadow-[var(--kp-shadow-surface)]", className);
4
4
  }
@@ -1,2 +1,2 @@
1
- export { Card, CardBody, CardFooter, CardHeader, } from "./card";
2
- export type { CardProps } from "./card.types";
1
+ export { Card, CardBody, CardFooter, CardHeader, } from "./card.js";
2
+ export type { CardProps } from "./card.types.js";
@@ -1 +1 @@
1
- export { Card, CardBody, CardFooter, CardHeader, } from "./card";
1
+ export { Card, CardBody, CardFooter, CardHeader, } from "./card.js";
@@ -1,2 +1,2 @@
1
- import type { CheckboxProps } from "./checkbox.types";
1
+ import type { CheckboxProps } from "./checkbox.types.js";
2
2
  export declare function Checkbox({ children, className, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
@@ -3,8 +3,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
3
3
  import { AnimatePresence, m } from "motion/react";
4
4
  import { Checkbox as AriaCheckbox } from "react-aria-components";
5
5
  import { iconPop, iconState } from "@hewnui/motion";
6
- import { useMotionMode } from "../../providers/motion-provider";
7
- import { checkboxBoxClass, checkboxClassName, checkboxMarkClass, } from "./checkbox.styles";
6
+ import { useMotionMode } from "../../providers/motion-provider.js";
7
+ import { checkboxBoxClass, checkboxClassName, checkboxMarkClass, } from "./checkbox.styles.js";
8
8
  function CheckMark({ animate }) {
9
9
  const mark = (_jsx("svg", { viewBox: "0 0 12 12", className: checkboxMarkClass, "aria-hidden": true, children: _jsx("path", { d: "M2.5 6.2 4.8 8.5 9.5 3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) }));
10
10
  if (!animate)
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  export function checkboxClassName(className) {
3
3
  return cn("group flex min-h-10 items-center gap-3 text-sm text-foreground outline-none", "disabled:cursor-not-allowed disabled:opacity-45", className);
4
4
  }
@@ -1,2 +1,2 @@
1
- export { Checkbox } from "./checkbox";
2
- export type { CheckboxProps } from "./checkbox.types";
1
+ export { Checkbox } from "./checkbox.js";
2
+ export type { CheckboxProps } from "./checkbox.types.js";
@@ -1 +1 @@
1
- export { Checkbox } from "./checkbox";
1
+ export { Checkbox } from "./checkbox.js";
@@ -1,2 +1,2 @@
1
- import type { CheckboxGroupProps } from "./checkbox-group.types";
1
+ import type { CheckboxGroupProps } from "./checkbox-group.types.js";
2
2
  export declare function CheckboxGroup({ children, className, description, errorMessage, label, ...props }: CheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { CheckboxGroup as AriaCheckboxGroup, FieldError, Label, Text, } from "react-aria-components";
4
- import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, } from "../../styles/field";
5
- import { checkboxGroupClassName, checkboxGroupItemsClass, } from "./checkbox-group.styles";
4
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, } from "../../styles/field.js";
5
+ import { checkboxGroupClassName, checkboxGroupItemsClass, } from "./checkbox-group.styles.js";
6
6
  export function CheckboxGroup({ children, className, description, errorMessage, label, ...props }) {
7
7
  return (_jsxs(AriaCheckboxGroup, { ...props, className: checkboxGroupClassName(className), children: [label ? _jsx(Label, { className: fieldLabelClass, children: label }) : null, _jsx("div", { className: checkboxGroupItemsClass, children: children }), description ? (_jsx(Text, { slot: "description", className: fieldDescriptionClass, children: description })) : null, _jsx(FieldError, { className: fieldErrorClass, children: errorMessage })] }));
8
8
  }
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  export function checkboxGroupClassName(className) {
3
3
  return cn("flex w-full max-w-sm flex-col gap-2 text-sm text-foreground", className);
4
4
  }
@@ -1,2 +1,2 @@
1
- export { CheckboxGroup } from "./checkbox-group";
2
- export type { CheckboxGroupProps } from "./checkbox-group.types";
1
+ export { CheckboxGroup } from "./checkbox-group.js";
2
+ export type { CheckboxGroupProps } from "./checkbox-group.types.js";
@@ -1 +1 @@
1
- export { CheckboxGroup } from "./checkbox-group";
1
+ export { CheckboxGroup } from "./checkbox-group.js";
@@ -1,2 +1,2 @@
1
- import type { ColorPickerProps } from "./color-picker.types";
1
+ import type { ColorPickerProps } from "./color-picker.types.js";
2
2
  export declare function ColorPicker({ className, defaultValue, description, errorMessage, isDisabled, isRequired, label, name, onChange, presets, showAlpha, showOklch, value, variant, }: ColorPickerProps): 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, ColorPicker as AriaColorPicker, ColorSwatch, Dialog, DialogTrigger, Label, Popover, Text, parseColor, } from "react-aria-components";
4
- import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, } from "../../styles/field";
5
- import { ColorPickerPanel } from "./color-picker.panel";
6
- import { colorPickerClassName, colorPickerPopoverClass, colorPickerSwatchPreviewClass, colorPickerTriggerClass, defaultColorPresets, } from "./color-picker.styles";
4
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass, } from "../../styles/field.js";
5
+ import { ColorPickerPanel } from "./color-picker.panel.js";
6
+ import { colorPickerClassName, colorPickerPopoverClass, colorPickerSwatchPreviewClass, colorPickerTriggerClass, defaultColorPresets, } from "./color-picker.styles.js";
7
7
  function toHex(color) {
8
8
  if (typeof color === "string") {
9
9
  try {
@@ -1,2 +1,2 @@
1
- import type { ColorPickerPanelProps } from "./color-picker.types";
1
+ import type { ColorPickerPanelProps } from "./color-picker.types.js";
2
2
  export declare function ColorPickerPanel({ showAlpha, showOklch, presets, isDisabled, }: ColorPickerPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -2,9 +2,9 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useContext, useId } from "react";
4
4
  import { ColorArea, ColorField, ColorPickerStateContext, ColorSlider, ColorSwatch, ColorSwatchPicker, ColorSwatchPickerItem, ColorThumb, Input, Label, SliderTrack, } from "react-aria-components";
5
- import { fieldLabelClass } from "../../styles/field";
6
- import { hexToOklchDisplay } from "./color-picker.oklch";
7
- import { colorAreaClass, colorFieldClass, colorFieldInputClass, colorOklchReadoutClass, colorPickerPanelClass, colorSliderClass, colorSliderTrackClass, colorSwatchClass, colorSwatchItemClass, colorSwatchPickerClass, colorThumbClass, } from "./color-picker.styles";
5
+ import { fieldLabelClass } from "../../styles/field.js";
6
+ import { hexToOklchDisplay } from "./color-picker.oklch.js";
7
+ import { colorAreaClass, colorFieldClass, colorFieldInputClass, colorOklchReadoutClass, colorPickerPanelClass, colorSliderClass, colorSliderTrackClass, colorSwatchClass, colorSwatchItemClass, colorSwatchPickerClass, colorThumbClass, } from "./color-picker.styles.js";
8
8
  export function ColorPickerPanel({ showAlpha, showOklch, presets, isDisabled, }) {
9
9
  const oklchId = useId();
10
10
  const colorState = useContext(ColorPickerStateContext);
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../utils/cn.js";
2
2
  export function colorPickerClassName(className) {
3
3
  return cn("flex w-full max-w-sm flex-col gap-1.5 text-sm text-foreground", className);
4
4
  }
@@ -1,4 +1,4 @@
1
- export { ColorPicker } from "./color-picker";
2
- export type { ColorPickerProps, ColorPickerVariant, } from "./color-picker.types";
3
- export { hexToOklchDisplay } from "./color-picker.oklch";
4
- export { defaultColorPresets } from "./color-picker.styles";
1
+ export { ColorPicker } from "./color-picker.js";
2
+ export type { ColorPickerProps, ColorPickerVariant, } from "./color-picker.types.js";
3
+ export { hexToOklchDisplay } from "./color-picker.oklch.js";
4
+ export { defaultColorPresets } from "./color-picker.styles.js";
@@ -1,3 +1,3 @@
1
- export { ColorPicker } from "./color-picker";
2
- export { hexToOklchDisplay } from "./color-picker.oklch";
3
- export { defaultColorPresets } from "./color-picker.styles";
1
+ export { ColorPicker } from "./color-picker.js";
2
+ export { hexToOklchDisplay } from "./color-picker.oklch.js";
3
+ export { defaultColorPresets } from "./color-picker.styles.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 { Button, ComboBox as AriaComboBox, Input, Label, ListBox, ListBoxItem, Popover, } from "react-aria-components";
4
- import { fieldTriggerClass, menuItemClass, popoverSurfaceClass, } from "../../styles/overlays";
5
- import { cn } from "../../utils/cn";
4
+ import { fieldTriggerClass, menuItemClass, popoverSurfaceClass, } from "../../styles/overlays.js";
5
+ import { cn } from "../../utils/cn.js";
6
6
  export function Combobox({ children, className, label, placeholder = "Search…", ...props }) {
7
7
  return (_jsxs(AriaComboBox, { ...props, className: cn("flex w-full max-w-sm flex-col gap-1.5 text-sm", className), children: [label ? _jsx(Label, { className: "font-medium", children: label }) : null, _jsxs("div", { className: fieldTriggerClass, "data-kp-surface": true, children: [_jsx(Input, { placeholder: placeholder, className: "min-w-0 flex-1 bg-transparent outline-none placeholder:text-muted-foreground" }), _jsx(Button, { className: "min-h-10 min-w-10 text-muted-foreground outline-none data-[pressed]:scale-[0.96]", children: "\u25BE" })] }), _jsx(Popover, { className: cn(popoverSurfaceClass, "min-w-[var(--trigger-width)]"), "data-kp-surface": true, children: _jsx(ListBox, { className: "outline-none", children: children }) })] }));
8
8
  }
@@ -1 +1 @@
1
- export { Combobox, ComboboxItem } from "./combobox";
1
+ export { Combobox, ComboboxItem } from "./combobox.js";
@@ -1 +1 @@
1
- export { Combobox, ComboboxItem } from "./combobox";
1
+ export { Combobox, ComboboxItem } from "./combobox.js";
@@ -1,4 +1,4 @@
1
- import type { CommandPaletteGroupProps, CommandPaletteItemProps, CommandPaletteRecentProps } from "./command-palette.types";
1
+ import type { CommandPaletteGroupProps, CommandPaletteItemProps, CommandPaletteRecentProps } from "./command-palette.types.js";
2
2
  export declare function CommandPaletteGroup({ children, className, heading, id, }: CommandPaletteGroupProps): import("react/jsx-runtime").JSX.Element;
3
3
  export declare function CommandPaletteRecent({ children, className, heading, }: CommandPaletteRecentProps): import("react/jsx-runtime").JSX.Element;
4
4
  export declare function CommandPaletteItem({ children, className, icon, id, isDisabled, onAction, shortcut, textValue, }: CommandPaletteItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Header, Keyboard, MenuItem as AriaMenuItem, MenuSection, Text, } from "react-aria-components";
4
- import { commandGroupClass, commandGroupHeadingClass, commandItemClass, commandItemIconClass, commandItemLabelClass, commandShortcutClass, } from "./command-palette.styles";
4
+ import { commandGroupClass, commandGroupHeadingClass, commandItemClass, commandItemIconClass, commandItemLabelClass, commandShortcutClass, } from "./command-palette.styles.js";
5
5
  export function CommandPaletteGroup({ children, className, heading, id, }) {
6
6
  return (_jsxs(MenuSection, { className: commandGroupClass(className), ...(id !== undefined ? { id } : {}), children: [_jsx(Header, { className: commandGroupHeadingClass, children: heading }), children] }));
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
- import { CommandPaletteGroup, CommandPaletteItem, CommandPaletteRecent } from "./command-palette-items";
3
- import type { CommandPaletteInputProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteTriggerProps } from "./command-palette.types";
2
+ import { CommandPaletteGroup, CommandPaletteItem, CommandPaletteRecent } from "./command-palette-items.js";
3
+ import type { CommandPaletteInputProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteTriggerProps } from "./command-palette.types.js";
4
4
  export { CommandPaletteGroup, CommandPaletteItem, CommandPaletteRecent, };
5
5
  export declare function CommandPaletteTrigger(props: CommandPaletteTriggerProps): import("react/jsx-runtime").JSX.Element;
6
6
  export declare function CommandPalette({ children, className, "aria-label": ariaLabel, }: CommandPaletteProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { UseCommandPaletteHotkeyOptions } from "./command-palette.types";
1
+ import type { UseCommandPaletteHotkeyOptions } from "./command-palette.types.js";
2
2
  /**
3
3
  * Optional global ⌘K / Ctrl+K listener for opening a command palette.
4
4
  * Platform-aware (meta on Apple, ctrl elsewhere). Skips composing IME events.
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Autocomplete, Dialog as AriaDialog, DialogTrigger as AriaDialogTrigger, Input, Menu, Modal, ModalOverlay, SearchField, useFilter, } from "react-aria-components";
4
- import { Spinner } from "../spinner";
5
- import { CommandPaletteGroup, CommandPaletteItem, CommandPaletteRecent, } from "./command-palette-items";
6
- import { commandEmptyClass, commandInputClass, commandInputWrapClass, commandListClass, commandLoadingClass, commandOverlayClass, commandPanelClass, } from "./command-palette.styles";
4
+ import { Spinner } from "../spinner/index.js";
5
+ import { CommandPaletteGroup, CommandPaletteItem, CommandPaletteRecent, } from "./command-palette-items.js";
6
+ import { commandEmptyClass, commandInputClass, commandInputWrapClass, commandListClass, commandLoadingClass, commandOverlayClass, commandPanelClass, } from "./command-palette.styles.js";
7
7
  export { CommandPaletteGroup, CommandPaletteItem, CommandPaletteRecent, };
8
8
  export function CommandPaletteTrigger(props) {
9
9
  return _jsx(AriaDialogTrigger, { ...props });
@@ -1,5 +1,5 @@
1
- import { cn } from "../../utils/cn";
2
- import { menuItemClass } from "../../styles/overlays";
1
+ import { cn } from "../../utils/cn.js";
2
+ import { menuItemClass } from "../../styles/overlays.js";
3
3
  export const commandOverlayClass = cn("fixed inset-0 z-50 flex items-start justify-center", "bg-[color-mix(in_oklch,var(--kp-foreground)_28%,transparent)]", "px-4 pt-[min(20vh,8rem)]", "transition-[opacity] duration-[var(--kp-motion-duration)]", "ease-[cubic-bezier(0.2,0,0,1)]", "entering:opacity-100 exiting:opacity-0", "data-[entering]:opacity-100 data-[exiting]:opacity-0");
4
4
  export function commandPanelClass(className) {
5
5
  return cn("flex w-full max-w-lg flex-col overflow-hidden", "rounded-[var(--kp-radius-panel)] border bg-surface-raised", "shadow-[var(--kp-shadow-surface)] outline-none", "transition-[opacity,transform] duration-[var(--kp-motion-duration)]", "ease-[cubic-bezier(0.2,0,0,1)]", "data-[entering]:opacity-100 data-[entering]:translate-y-0", "data-[exiting]:opacity-0 data-[exiting]:-translate-y-1", "motion-reduce:transition-none motion-reduce:transform-none", className);
@@ -1,4 +1,4 @@
1
- import { CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteLoading, CommandPaletteRecent, CommandPaletteTrigger } from "./command-palette";
1
+ import { CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteLoading, CommandPaletteRecent, CommandPaletteTrigger } from "./command-palette.js";
2
2
  export declare const CommandPaletteRoot: typeof CommandPaletteTrigger & {
3
3
  Content: typeof CommandPalette;
4
4
  Input: typeof CommandPaletteInput;
@@ -10,5 +10,5 @@ export declare const CommandPaletteRoot: typeof CommandPaletteTrigger & {
10
10
  Loading: typeof CommandPaletteLoading;
11
11
  };
12
12
  export { CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteLoading, CommandPaletteRecent, CommandPaletteTrigger, };
13
- export { commandPaletteHotkeyLabel, useCommandPaletteHotkey, } from "./command-palette.hotkey";
14
- export type { CommandPaletteGroupProps, CommandPaletteInputProps, CommandPaletteItemProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteRecentProps, CommandPaletteTriggerProps, UseCommandPaletteHotkeyOptions, } from "./command-palette.types";
13
+ export { commandPaletteHotkeyLabel, useCommandPaletteHotkey, } from "./command-palette.hotkey.js";
14
+ export type { CommandPaletteGroupProps, CommandPaletteInputProps, CommandPaletteItemProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteRecentProps, CommandPaletteTriggerProps, UseCommandPaletteHotkeyOptions, } from "./command-palette.types.js";
@@ -1,4 +1,4 @@
1
- import { CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteLoading, CommandPaletteRecent, CommandPaletteTrigger, } from "./command-palette";
1
+ import { CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteLoading, CommandPaletteRecent, CommandPaletteTrigger, } from "./command-palette.js";
2
2
  export const CommandPaletteRoot = Object.assign(CommandPaletteTrigger, {
3
3
  Content: CommandPalette,
4
4
  Input: CommandPaletteInput,
@@ -10,4 +10,4 @@ export const CommandPaletteRoot = Object.assign(CommandPaletteTrigger, {
10
10
  Loading: CommandPaletteLoading,
11
11
  });
12
12
  export { CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteLoading, CommandPaletteRecent, CommandPaletteTrigger, };
13
- export { commandPaletteHotkeyLabel, useCommandPaletteHotkey, } from "./command-palette.hotkey";
13
+ export { commandPaletteHotkeyLabel, useCommandPaletteHotkey, } from "./command-palette.hotkey.js";
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { flexRender, getCoreRowModel, getSortedRowModel, useReactTable, } from "@tanstack/react-table";
4
4
  import { useState } from "react";
5
- import { Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, } from "../table";
5
+ import { Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, } from "../table/index.js";
6
6
  export function DataTable({ "aria-label": ariaLabel, columns, data, getRowId, }) {
7
7
  const [sorting, setSorting] = useState([]);
8
8
  const table = useReactTable({
@@ -1 +1 @@
1
- export { DataTable } from "./data-table";
1
+ export { DataTable } from "./data-table.js";
@@ -1 +1 @@
1
- export { DataTable } from "./data-table";
1
+ export { DataTable } from "./data-table.js";