@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.
- package/dist/chart/axes.js +1 -1
- package/dist/chart/frame.js +2 -2
- package/dist/chart/interaction.d.ts +1 -1
- package/dist/chart/path.d.ts +1 -1
- package/dist/chart/scales.d.ts +1 -1
- package/dist/chart/scales.js +1 -1
- package/dist/chart/status.d.ts +1 -1
- package/dist/components/area-chart/area-chart.d.ts +2 -2
- package/dist/components/area-chart/area-chart.js +8 -8
- package/dist/components/area-chart/index.d.ts +1 -1
- package/dist/components/area-chart/index.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge.styles.d.ts +1 -1
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/index.js +2 -2
- package/dist/components/bar-chart/bar-chart.d.ts +2 -2
- package/dist/components/bar-chart/bar-chart.js +7 -7
- package/dist/components/bar-chart/index.d.ts +1 -1
- package/dist/components/bar-chart/index.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +1 -1
- package/dist/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/breadcrumbs/index.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +3 -3
- package/dist/components/button/button.styles.d.ts +1 -1
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/card.js +1 -1
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/card/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/checkbox-group/index.d.ts +2 -2
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/color-picker.js +3 -3
- package/dist/components/color-picker/color-picker.panel.d.ts +1 -1
- package/dist/components/color-picker/color-picker.panel.js +3 -3
- package/dist/components/color-picker/color-picker.styles.js +1 -1
- package/dist/components/color-picker/index.d.ts +4 -4
- package/dist/components/color-picker/index.js +3 -3
- package/dist/components/combobox/combobox.js +2 -2
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette-items.d.ts +1 -1
- package/dist/components/command-palette/command-palette-items.js +1 -1
- package/dist/components/command-palette/command-palette.d.ts +2 -2
- package/dist/components/command-palette/command-palette.hotkey.d.ts +1 -1
- package/dist/components/command-palette/command-palette.js +3 -3
- package/dist/components/command-palette/command-palette.styles.js +2 -2
- package/dist/components/command-palette/index.d.ts +3 -3
- package/dist/components/command-palette/index.js +2 -2
- package/dist/components/data-table/data-table.js +1 -1
- package/dist/components/data-table/index.d.ts +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.js +2 -2
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.calendar.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.calendar.js +2 -2
- package/dist/components/date-range-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +3 -3
- package/dist/components/date-range-picker/date-range-picker.presets.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.styles.js +1 -1
- package/dist/components/date-range-picker/index.d.ts +2 -2
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/donut-chart/donut-chart.d.ts +2 -2
- package/dist/components/donut-chart/donut-chart.js +4 -4
- package/dist/components/donut-chart/index.d.ts +1 -1
- package/dist/components/donut-chart/index.js +1 -1
- package/dist/components/drawer/drawer.js +2 -2
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.js +1 -1
- package/dist/components/empty/empty.js +1 -1
- package/dist/components/empty/index.d.ts +1 -1
- package/dist/components/empty/index.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts +1 -1
- package/dist/components/file-upload/file-upload.js +3 -3
- package/dist/components/file-upload/file-upload.styles.js +1 -1
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/form/form.d.ts +1 -1
- package/dist/components/form/form.js +1 -1
- package/dist/components/form/form.styles.js +1 -1
- package/dist/components/form/index.d.ts +2 -2
- package/dist/components/form/index.js +1 -1
- package/dist/components/input-group/index.d.ts +2 -2
- package/dist/components/input-group/index.js +1 -1
- package/dist/components/input-group/input-group.d.ts +1 -1
- package/dist/components/input-group/input-group.js +3 -3
- package/dist/components/input-group/input-group.styles.d.ts +1 -1
- package/dist/components/input-group/input-group.styles.js +2 -2
- package/dist/components/input-group/input-group.types.d.ts +1 -1
- package/dist/components/input-otp/index.d.ts +2 -2
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/input-otp/input-otp.d.ts +1 -1
- package/dist/components/input-otp/input-otp.js +3 -3
- package/dist/components/input-otp/input-otp.styles.d.ts +1 -1
- package/dist/components/input-otp/input-otp.styles.js +2 -2
- package/dist/components/input-otp/input-otp.types.d.ts +1 -1
- package/dist/components/line-chart/index.d.ts +1 -1
- package/dist/components/line-chart/index.js +1 -1
- package/dist/components/line-chart/line-chart.d.ts +2 -2
- package/dist/components/line-chart/line-chart.js +8 -8
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/link.styles.d.ts +1 -1
- package/dist/components/link/link.styles.js +1 -1
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/number-field/index.d.ts +2 -2
- package/dist/components/number-field/index.js +1 -1
- package/dist/components/number-field/number-field.d.ts +1 -1
- package/dist/components/number-field/number-field.js +3 -3
- package/dist/components/number-field/number-field.styles.d.ts +1 -1
- package/dist/components/number-field/number-field.styles.js +2 -2
- package/dist/components/number-field/number-field.types.d.ts +1 -1
- package/dist/components/pagination/index.d.ts +3 -3
- package/dist/components/pagination/index.js +2 -2
- package/dist/components/pagination/pagination.d.ts +1 -1
- package/dist/components/pagination/pagination.js +3 -3
- package/dist/components/pagination/pagination.styles.d.ts +1 -1
- package/dist/components/pagination/pagination.styles.js +1 -1
- package/dist/components/pagination/pagination.utils.d.ts +1 -1
- package/dist/components/password-field/index.d.ts +2 -2
- package/dist/components/password-field/index.js +1 -1
- package/dist/components/password-field/password-field.d.ts +1 -1
- package/dist/components/password-field/password-field.js +3 -3
- package/dist/components/password-field/password-field.styles.d.ts +1 -1
- package/dist/components/password-field/password-field.styles.js +2 -2
- package/dist/components/password-field/password-field.types.d.ts +1 -1
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/popover/popover.styles.js +2 -2
- package/dist/components/popover/popover.types.d.ts +1 -1
- package/dist/components/progress/index.d.ts +2 -2
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress.js +1 -1
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group.d.ts +1 -1
- package/dist/components/radio-group/radio-group.js +3 -3
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/search-field/index.d.ts +2 -2
- package/dist/components/search-field/index.js +1 -1
- package/dist/components/search-field/search-field.d.ts +1 -1
- package/dist/components/search-field/search-field.js +3 -3
- package/dist/components/search-field/search-field.styles.d.ts +1 -1
- package/dist/components/search-field/search-field.styles.js +2 -2
- package/dist/components/search-field/search-field.types.d.ts +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.js +2 -2
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/slider/slider.js +2 -2
- package/dist/components/slider/slider.styles.js +1 -1
- package/dist/components/sparkline/index.d.ts +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +1 -1
- package/dist/components/sparkline/sparkline.js +6 -6
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/stepper/index.d.ts +3 -3
- package/dist/components/stepper/index.js +2 -2
- package/dist/components/stepper/stepper-step.d.ts +1 -1
- package/dist/components/stepper/stepper-step.js +1 -1
- package/dist/components/stepper/stepper.d.ts +2 -2
- package/dist/components/stepper/stepper.js +2 -2
- package/dist/components/stepper/stepper.styles.d.ts +1 -1
- package/dist/components/stepper/stepper.styles.js +1 -1
- package/dist/components/stepper/use-stepper.d.ts +1 -1
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/table-sort-glyph.js +1 -1
- package/dist/components/table/table.js +4 -4
- package/dist/components/table/table.styles.js +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.js +2 -2
- package/dist/components/tabs/tabs.styles.js +1 -1
- package/dist/components/tag-field/index.d.ts +2 -2
- package/dist/components/tag-field/index.js +1 -1
- package/dist/components/tag-field/tag-field-tags.js +2 -2
- package/dist/components/tag-field/tag-field.d.ts +1 -1
- package/dist/components/tag-field/tag-field.js +5 -5
- package/dist/components/tag-field/tag-field.styles.d.ts +2 -2
- package/dist/components/tag-field/tag-field.styles.js +3 -3
- package/dist/components/tag-field/tag-field.types.d.ts +1 -1
- package/dist/components/text-area/index.d.ts +2 -2
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-area/text-area.js +3 -3
- package/dist/components/text-area/text-area.styles.d.ts +1 -1
- package/dist/components/text-area/text-area.styles.js +2 -2
- package/dist/components/text-area/text-area.types.d.ts +1 -1
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/text-field/index.js +1 -1
- package/dist/components/text-field/text-field.d.ts +1 -1
- package/dist/components/text-field/text-field.js +2 -2
- package/dist/components/text-field/text-field.styles.d.ts +1 -1
- package/dist/components/text-field/text-field.styles.js +1 -1
- package/dist/components/text-field/text-field.types.d.ts +1 -1
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast-glyph.d.ts +1 -1
- package/dist/components/toast/toast-glyph.js +1 -1
- package/dist/components/toast/toast-item.d.ts +1 -1
- package/dist/components/toast/toast-item.js +3 -3
- package/dist/components/toast/toast.d.ts +1 -1
- package/dist/components/toast/toast.js +2 -2
- package/dist/components/toast/toast.styles.js +1 -1
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/index.d.ts +51 -51
- package/dist/index.js +50 -50
- package/dist/styles/field.js +1 -1
- package/dist/styles/overlays.js +1 -1
- package/package.json +110 -301
package/dist/chart/axes.js
CHANGED
|
@@ -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) => {
|
package/dist/chart/frame.js
CHANGED
|
@@ -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, }) {
|
package/dist/chart/path.d.ts
CHANGED
package/dist/chart/scales.d.ts
CHANGED
|
@@ -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];
|
package/dist/chart/scales.js
CHANGED
|
@@ -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
|
}
|
package/dist/chart/status.d.ts
CHANGED
|
@@ -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,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,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,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,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
|
-
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";
|