@vaam-apps/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/CHANGELOG.md +25 -0
- package/dist/components/data/code.d.ts +0 -1
- package/dist/components/data/code.js +0 -1
- package/dist/components/data/copy-button.d.ts +0 -1
- package/dist/components/data/copy-button.js +0 -1
- package/dist/components/data/detail-row.d.ts +0 -1
- package/dist/components/data/detail-row.js +0 -1
- package/dist/components/data/id-display.d.ts +0 -1
- package/dist/components/data/id-display.js +0 -1
- package/dist/components/data/masked-value.d.ts +0 -1
- package/dist/components/data/masked-value.js +0 -1
- package/dist/components/data/money.d.ts +0 -1
- package/dist/components/data/money.js +0 -1
- package/dist/components/data/phone-display.d.ts +0 -1
- package/dist/components/data/phone-display.js +0 -1
- package/dist/components/data/stat-tile.d.ts +0 -1
- package/dist/components/data/stat-tile.js +0 -1
- package/dist/components/data/timestamp-display.d.ts +0 -1
- package/dist/components/data/timestamp-display.js +0 -1
- package/dist/components/patterns/inline-banner.d.ts +0 -1
- package/dist/components/patterns/inline-banner.js +0 -1
- package/dist/components/patterns/inline-empty-state.d.ts +0 -1
- package/dist/components/patterns/inline-empty-state.js +0 -1
- package/dist/components/patterns/live-row.d.ts +0 -1
- package/dist/components/patterns/live-row.js +0 -1
- package/dist/components/patterns/payload-inspector.d.ts +0 -1
- package/dist/components/patterns/payload-inspector.js +0 -1
- package/dist/components/patterns/route-skeleton.d.ts +0 -1
- package/dist/components/patterns/route-skeleton.js +0 -1
- package/dist/components/patterns/screen-layout.d.ts +0 -1
- package/dist/components/patterns/screen-layout.js +0 -1
- package/dist/components/patterns/stale-write-banner.d.ts +0 -1
- package/dist/components/patterns/stale-write-banner.js +0 -1
- package/dist/components/patterns/state-timeline.d.ts +0 -1
- package/dist/components/patterns/state-timeline.js +0 -1
- package/dist/components/primitives/badge.d.ts +0 -1
- package/dist/components/primitives/badge.js +0 -1
- package/dist/components/primitives/button.d.ts +0 -1
- package/dist/components/primitives/button.js +0 -1
- package/dist/components/primitives/calendar.d.ts +0 -1
- package/dist/components/primitives/calendar.js +0 -1
- package/dist/components/primitives/card.d.ts +0 -1
- package/dist/components/primitives/card.js +0 -1
- package/dist/components/primitives/checkbox.d.ts +0 -1
- package/dist/components/primitives/checkbox.js +0 -1
- package/dist/components/primitives/chip-select.d.ts +0 -1
- package/dist/components/primitives/chip-select.js +0 -1
- package/dist/components/primitives/command-menu.d.ts +0 -1
- package/dist/components/primitives/command-menu.js +0 -1
- package/dist/components/primitives/confirm-dialog.d.ts +0 -1
- package/dist/components/primitives/confirm-dialog.js +0 -1
- package/dist/components/primitives/date-picker.d.ts +0 -1
- package/dist/components/primitives/date-picker.js +0 -1
- package/dist/components/primitives/dialog.d.ts +0 -1
- package/dist/components/primitives/dialog.js +0 -1
- package/dist/components/primitives/drawer.d.ts +0 -1
- package/dist/components/primitives/drawer.js +0 -1
- package/dist/components/primitives/dropdown-menu.d.ts +0 -1
- package/dist/components/primitives/dropdown-menu.js +0 -1
- package/dist/components/primitives/form-field.d.ts +0 -1
- package/dist/components/primitives/form-field.js +0 -1
- package/dist/components/primitives/inline-confirm.d.ts +0 -1
- package/dist/components/primitives/inline-confirm.js +0 -1
- package/dist/components/primitives/input.d.ts +0 -1
- package/dist/components/primitives/input.js +0 -1
- package/dist/components/primitives/label.d.ts +0 -1
- package/dist/components/primitives/label.js +0 -1
- package/dist/components/primitives/pagination.d.ts +0 -1
- package/dist/components/primitives/pagination.js +0 -1
- package/dist/components/primitives/popover.d.ts +0 -1
- package/dist/components/primitives/popover.js +0 -1
- package/dist/components/primitives/progress.d.ts +0 -1
- package/dist/components/primitives/progress.js +0 -1
- package/dist/components/primitives/radio-group.d.ts +0 -1
- package/dist/components/primitives/radio-group.js +0 -1
- package/dist/components/primitives/select.d.ts +0 -1
- package/dist/components/primitives/select.js +0 -1
- package/dist/components/primitives/separator.d.ts +0 -1
- package/dist/components/primitives/separator.js +0 -1
- package/dist/components/primitives/side-nav.d.ts +0 -1
- package/dist/components/primitives/side-nav.js +0 -1
- package/dist/components/primitives/skeleton.d.ts +0 -1
- package/dist/components/primitives/skeleton.js +0 -1
- package/dist/components/primitives/spinner.d.ts +0 -1
- package/dist/components/primitives/spinner.js +0 -1
- package/dist/components/primitives/switch.d.ts +0 -1
- package/dist/components/primitives/switch.js +0 -1
- package/dist/components/primitives/table.d.ts +0 -1
- package/dist/components/primitives/table.js +0 -1
- package/dist/components/primitives/tabs.d.ts +0 -1
- package/dist/components/primitives/tabs.js +0 -1
- package/dist/components/primitives/textarea.d.ts +0 -1
- package/dist/components/primitives/textarea.js +0 -1
- package/dist/components/primitives/toast.d.ts +0 -1
- package/dist/components/primitives/toast.js +0 -1
- package/dist/components/primitives/tooltip.d.ts +0 -1
- package/dist/components/primitives/tooltip.js +0 -1
- package/dist/components/status/state-chip.d.ts +0 -1
- package/dist/components/status/state-chip.js +0 -1
- package/dist/components/status/state-mark.d.ts +0 -1
- package/dist/components/status/state-mark.js +0 -1
- package/dist/components/status/status-pill.d.ts +0 -1
- package/dist/components/status/status-pill.js +0 -1
- package/dist/components/status/status-tokens.d.ts +0 -1
- package/dist/components/status/status-tokens.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/lib/cn.d.ts +0 -1
- package/dist/lib/cn.js +0 -1
- package/dist/lib/money.d.ts +0 -1
- package/dist/lib/money.js +0 -1
- package/dist/lib/omit-undefined.d.ts +0 -1
- package/dist/lib/omit-undefined.js +0 -1
- package/package.json +3 -7
- package/dist/components/data/code.d.ts.map +0 -1
- package/dist/components/data/code.js.map +0 -1
- package/dist/components/data/copy-button.d.ts.map +0 -1
- package/dist/components/data/copy-button.js.map +0 -1
- package/dist/components/data/detail-row.d.ts.map +0 -1
- package/dist/components/data/detail-row.js.map +0 -1
- package/dist/components/data/id-display.d.ts.map +0 -1
- package/dist/components/data/id-display.js.map +0 -1
- package/dist/components/data/masked-value.d.ts.map +0 -1
- package/dist/components/data/masked-value.js.map +0 -1
- package/dist/components/data/money.d.ts.map +0 -1
- package/dist/components/data/money.js.map +0 -1
- package/dist/components/data/phone-display.d.ts.map +0 -1
- package/dist/components/data/phone-display.js.map +0 -1
- package/dist/components/data/stat-tile.d.ts.map +0 -1
- package/dist/components/data/stat-tile.js.map +0 -1
- package/dist/components/data/timestamp-display.d.ts.map +0 -1
- package/dist/components/data/timestamp-display.js.map +0 -1
- package/dist/components/patterns/inline-banner.d.ts.map +0 -1
- package/dist/components/patterns/inline-banner.js.map +0 -1
- package/dist/components/patterns/inline-empty-state.d.ts.map +0 -1
- package/dist/components/patterns/inline-empty-state.js.map +0 -1
- package/dist/components/patterns/live-row.d.ts.map +0 -1
- package/dist/components/patterns/live-row.js.map +0 -1
- package/dist/components/patterns/payload-inspector.d.ts.map +0 -1
- package/dist/components/patterns/payload-inspector.js.map +0 -1
- package/dist/components/patterns/route-skeleton.d.ts.map +0 -1
- package/dist/components/patterns/route-skeleton.js.map +0 -1
- package/dist/components/patterns/screen-layout.d.ts.map +0 -1
- package/dist/components/patterns/screen-layout.js.map +0 -1
- package/dist/components/patterns/stale-write-banner.d.ts.map +0 -1
- package/dist/components/patterns/stale-write-banner.js.map +0 -1
- package/dist/components/patterns/state-timeline.d.ts.map +0 -1
- package/dist/components/patterns/state-timeline.js.map +0 -1
- package/dist/components/primitives/badge.d.ts.map +0 -1
- package/dist/components/primitives/badge.js.map +0 -1
- package/dist/components/primitives/button.d.ts.map +0 -1
- package/dist/components/primitives/button.js.map +0 -1
- package/dist/components/primitives/calendar.d.ts.map +0 -1
- package/dist/components/primitives/calendar.js.map +0 -1
- package/dist/components/primitives/card.d.ts.map +0 -1
- package/dist/components/primitives/card.js.map +0 -1
- package/dist/components/primitives/checkbox.d.ts.map +0 -1
- package/dist/components/primitives/checkbox.js.map +0 -1
- package/dist/components/primitives/chip-select.d.ts.map +0 -1
- package/dist/components/primitives/chip-select.js.map +0 -1
- package/dist/components/primitives/command-menu.d.ts.map +0 -1
- package/dist/components/primitives/command-menu.js.map +0 -1
- package/dist/components/primitives/confirm-dialog.d.ts.map +0 -1
- package/dist/components/primitives/confirm-dialog.js.map +0 -1
- package/dist/components/primitives/date-picker.d.ts.map +0 -1
- package/dist/components/primitives/date-picker.js.map +0 -1
- package/dist/components/primitives/dialog.d.ts.map +0 -1
- package/dist/components/primitives/dialog.js.map +0 -1
- package/dist/components/primitives/drawer.d.ts.map +0 -1
- package/dist/components/primitives/drawer.js.map +0 -1
- package/dist/components/primitives/dropdown-menu.d.ts.map +0 -1
- package/dist/components/primitives/dropdown-menu.js.map +0 -1
- package/dist/components/primitives/form-field.d.ts.map +0 -1
- package/dist/components/primitives/form-field.js.map +0 -1
- package/dist/components/primitives/inline-confirm.d.ts.map +0 -1
- package/dist/components/primitives/inline-confirm.js.map +0 -1
- package/dist/components/primitives/input.d.ts.map +0 -1
- package/dist/components/primitives/input.js.map +0 -1
- package/dist/components/primitives/label.d.ts.map +0 -1
- package/dist/components/primitives/label.js.map +0 -1
- package/dist/components/primitives/pagination.d.ts.map +0 -1
- package/dist/components/primitives/pagination.js.map +0 -1
- package/dist/components/primitives/popover.d.ts.map +0 -1
- package/dist/components/primitives/popover.js.map +0 -1
- package/dist/components/primitives/progress.d.ts.map +0 -1
- package/dist/components/primitives/progress.js.map +0 -1
- package/dist/components/primitives/radio-group.d.ts.map +0 -1
- package/dist/components/primitives/radio-group.js.map +0 -1
- package/dist/components/primitives/select.d.ts.map +0 -1
- package/dist/components/primitives/select.js.map +0 -1
- package/dist/components/primitives/separator.d.ts.map +0 -1
- package/dist/components/primitives/separator.js.map +0 -1
- package/dist/components/primitives/side-nav.d.ts.map +0 -1
- package/dist/components/primitives/side-nav.js.map +0 -1
- package/dist/components/primitives/skeleton.d.ts.map +0 -1
- package/dist/components/primitives/skeleton.js.map +0 -1
- package/dist/components/primitives/spinner.d.ts.map +0 -1
- package/dist/components/primitives/spinner.js.map +0 -1
- package/dist/components/primitives/switch.d.ts.map +0 -1
- package/dist/components/primitives/switch.js.map +0 -1
- package/dist/components/primitives/table.d.ts.map +0 -1
- package/dist/components/primitives/table.js.map +0 -1
- package/dist/components/primitives/tabs.d.ts.map +0 -1
- package/dist/components/primitives/tabs.js.map +0 -1
- package/dist/components/primitives/textarea.d.ts.map +0 -1
- package/dist/components/primitives/textarea.js.map +0 -1
- package/dist/components/primitives/toast.d.ts.map +0 -1
- package/dist/components/primitives/toast.js.map +0 -1
- package/dist/components/primitives/tooltip.d.ts.map +0 -1
- package/dist/components/primitives/tooltip.js.map +0 -1
- package/dist/components/status/state-chip.d.ts.map +0 -1
- package/dist/components/status/state-chip.js.map +0 -1
- package/dist/components/status/state-mark.d.ts.map +0 -1
- package/dist/components/status/state-mark.js.map +0 -1
- package/dist/components/status/status-pill.d.ts.map +0 -1
- package/dist/components/status/status-pill.js.map +0 -1
- package/dist/components/status/status-tokens.d.ts.map +0 -1
- package/dist/components/status/status-tokens.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/cn.d.ts.map +0 -1
- package/dist/lib/cn.js.map +0 -1
- package/dist/lib/money.d.ts.map +0 -1
- package/dist/lib/money.js.map +0 -1
- package/dist/lib/omit-undefined.d.ts.map +0 -1
- package/dist/lib/omit-undefined.js.map +0 -1
- package/src/components/data/code.tsx +0 -43
- package/src/components/data/copy-button.tsx +0 -97
- package/src/components/data/detail-row.tsx +0 -113
- package/src/components/data/id-display.tsx +0 -49
- package/src/components/data/masked-value.tsx +0 -96
- package/src/components/data/money.tsx +0 -46
- package/src/components/data/phone-display.tsx +0 -60
- package/src/components/data/stat-tile.tsx +0 -68
- package/src/components/data/timestamp-display.tsx +0 -106
- package/src/components/patterns/inline-banner.tsx +0 -60
- package/src/components/patterns/inline-empty-state.tsx +0 -45
- package/src/components/patterns/live-row.tsx +0 -75
- package/src/components/patterns/payload-inspector.tsx +0 -157
- package/src/components/patterns/route-skeleton.tsx +0 -77
- package/src/components/patterns/screen-layout.tsx +0 -44
- package/src/components/patterns/stale-write-banner.tsx +0 -44
- package/src/components/patterns/state-timeline.tsx +0 -229
- package/src/components/primitives/badge.tsx +0 -40
- package/src/components/primitives/button.tsx +0 -54
- package/src/components/primitives/calendar.tsx +0 -136
- package/src/components/primitives/card.tsx +0 -70
- package/src/components/primitives/checkbox.tsx +0 -101
- package/src/components/primitives/chip-select.tsx +0 -105
- package/src/components/primitives/command-menu.tsx +0 -92
- package/src/components/primitives/confirm-dialog.tsx +0 -109
- package/src/components/primitives/date-picker.tsx +0 -271
- package/src/components/primitives/dialog.tsx +0 -195
- package/src/components/primitives/drawer.tsx +0 -326
- package/src/components/primitives/dropdown-menu.tsx +0 -128
- package/src/components/primitives/form-field.tsx +0 -136
- package/src/components/primitives/inline-confirm.tsx +0 -118
- package/src/components/primitives/input.tsx +0 -21
- package/src/components/primitives/label.tsx +0 -43
- package/src/components/primitives/pagination.tsx +0 -110
- package/src/components/primitives/popover.tsx +0 -41
- package/src/components/primitives/progress.tsx +0 -66
- package/src/components/primitives/radio-group.tsx +0 -90
- package/src/components/primitives/select.tsx +0 -254
- package/src/components/primitives/separator.tsx +0 -49
- package/src/components/primitives/side-nav.tsx +0 -253
- package/src/components/primitives/skeleton.tsx +0 -25
- package/src/components/primitives/spinner.tsx +0 -39
- package/src/components/primitives/switch.tsx +0 -74
- package/src/components/primitives/table.tsx +0 -157
- package/src/components/primitives/tabs.tsx +0 -163
- package/src/components/primitives/textarea.tsx +0 -21
- package/src/components/primitives/toast.tsx +0 -117
- package/src/components/primitives/tooltip.tsx +0 -38
- package/src/components/status/state-chip.tsx +0 -70
- package/src/components/status/state-mark.tsx +0 -154
- package/src/components/status/status-pill.tsx +0 -153
- package/src/components/status/status-tokens.ts +0 -173
- package/src/index.ts +0 -96
- package/src/lib/cn.ts +0 -168
- package/src/lib/money.ts +0 -164
- package/src/lib/omit-undefined.ts +0 -25
- /package/{src → dist}/styles/theme.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
**The 0.1.0 tarball shipped the whole source tree** — `dist/` plus a
|
|
6
|
+
second, complete copy of every component as `.tsx`, 285 files and 196KB
|
|
7
|
+
for a package whose runtime is 117 files and 88KB.
|
|
8
|
+
|
|
9
|
+
Two things had kept `src/` in `files`, and both are now addressed rather
|
|
10
|
+
than overridden: the theme stylesheet was exported from
|
|
11
|
+
`src/styles/theme.css`, so dropping the directory would have broken
|
|
12
|
+
`@vaam-apps/ui/styles/theme.css`; and `declarationMap`/`sourceMap`
|
|
13
|
+
emitted 112 maps pointing back into `src/`.
|
|
14
|
+
|
|
15
|
+
- The build copies `src/styles/` into `dist/styles/`, and the published
|
|
16
|
+
`exports` points there. Everything published now lives in one
|
|
17
|
+
directory — the same one the README already tells Tailwind to scan.
|
|
18
|
+
- Declaration and source maps are off. They are only useful when the
|
|
19
|
+
sources they reference are present, and a map pointing at an absent
|
|
20
|
+
`src/` is worse than none: a debugger reports it as broken rather than
|
|
21
|
+
falling back to the built output.
|
|
22
|
+
|
|
23
|
+
No API change. Verified against the real tarball, not the working tree:
|
|
24
|
+
both `@vaam-apps/ui` and `@vaam-apps/ui/styles/theme.css` resolve from a
|
|
25
|
+
clean install, and a consumer typechecks against the shipped
|
|
26
|
+
declarations.
|
|
27
|
+
|
|
3
28
|
## 0.1.0
|
|
4
29
|
|
|
5
30
|
First release as `@vaam-apps/ui`, in its own repository. Previously
|
|
@@ -36,4 +36,3 @@ export interface CopyButtonProps {
|
|
|
36
36
|
* which is at least honest, and reports the reason to the console.
|
|
37
37
|
*/
|
|
38
38
|
export declare function CopyButton({ value, label, revealOnGroupHover, size, className, }: CopyButtonProps): import("react").JSX.Element;
|
|
39
|
-
//# sourceMappingURL=copy-button.d.ts.map
|
|
@@ -47,4 +47,3 @@ export function CopyButton({ value, label, revealOnGroupHover = false, size = 12
|
|
|
47
47
|
}, [value]);
|
|
48
48
|
return (_jsx("button", { type: "button", onClick: copy, "aria-label": label ?? `Copy ${value}`, className: cn("shrink-0 text-subtle-foreground transition-opacity hover:text-foreground", revealOnGroupHover && "opacity-0 focus-visible:opacity-100 group-hover:opacity-100", className), children: copied ? (_jsx(Check, { size: size, strokeWidth: 1.5, className: "text-state-success-fg" })) : (_jsx(Copy, { size: size, strokeWidth: 1.5 })) }));
|
|
49
49
|
}
|
|
50
|
-
//# sourceMappingURL=copy-button.js.map
|
|
@@ -24,4 +24,3 @@ export function DetailRow({ label, children, variant = "inline", className }) {
|
|
|
24
24
|
export function DetailList({ children, variant = "inline", className, }) {
|
|
25
25
|
return (_jsx("dl", { className: cn("flex flex-col text-body", variant !== "divided" && "gap-3", className), children: children }));
|
|
26
26
|
}
|
|
27
|
-
//# sourceMappingURL=detail-row.js.map
|
|
@@ -30,4 +30,3 @@ export interface IdDisplayProps {
|
|
|
30
30
|
* for anything a human is meant to read rather than match.
|
|
31
31
|
*/
|
|
32
32
|
export declare function IdDisplay({ value, variant, truncateTo, className }: IdDisplayProps): import("react").JSX.Element;
|
|
33
|
-
//# sourceMappingURL=id-display.d.ts.map
|
|
@@ -22,4 +22,3 @@ export function IdDisplay({ value, variant = "table", truncateTo = 7, className
|
|
|
22
22
|
const shown = variant === "table" ? value.slice(0, truncateTo) : value;
|
|
23
23
|
return (_jsxs("span", { className: cn("group inline-flex items-center gap-1.5 font-mono tabular-nums", className), children: [_jsx("span", { className: variant === "full" ? "select-all" : undefined, title: value, children: shown }), _jsx(CopyButton, { value: value, revealOnGroupHover: variant === "table" })] }));
|
|
24
24
|
}
|
|
25
|
-
//# sourceMappingURL=id-display.js.map
|
|
@@ -44,4 +44,3 @@ export interface MaskedValueProps {
|
|
|
44
44
|
* enrolment secret as plain text because no such component existed.
|
|
45
45
|
*/
|
|
46
46
|
export declare function MaskedValue({ value, reveal, prefix, revealable, copyable, label, className, }: MaskedValueProps): import("react").JSX.Element;
|
|
47
|
-
//# sourceMappingURL=masked-value.d.ts.map
|
|
@@ -43,4 +43,3 @@ export function MaskedValue({ value, reveal = 4, prefix = 0, revealable = true,
|
|
|
43
43
|
const shown = revealed ? value : mask(value, prefix, reveal);
|
|
44
44
|
return (_jsxs("span", { className: cn("group inline-flex items-center gap-1.5", className), children: [_jsx("span", { className: cn("font-mono", revealed && "select-all break-all"), children: shown }), revealable && (_jsx("button", { type: "button", onClick: () => setRevealed((previous) => !previous), "aria-label": revealed ? `Hide ${label}` : `Reveal ${label}`, "aria-pressed": revealed, className: "shrink-0 text-subtle-foreground transition-colors hover:text-foreground", children: revealed ? _jsx(EyeOff, { size: 12, strokeWidth: 1.5 }) : _jsx(Eye, { size: 12, strokeWidth: 1.5 }) })), copyable && _jsx(CopyButton, { value: value, label: `Copy ${label}` })] }));
|
|
45
45
|
}
|
|
46
|
-
//# sourceMappingURL=masked-value.js.map
|
|
@@ -19,4 +19,3 @@ export function Money({ amount, currency, tone = "none", className, ...options }
|
|
|
19
19
|
const negative = String(amount).trim().startsWith("-");
|
|
20
20
|
return (_jsx("data", { value: `${String(amount)} ${currency}`, className: cn("font-mono tabular-nums whitespace-nowrap", tone === "signed" && (negative ? "text-state-danger-fg" : "text-state-success-fg"), className), children: formatted }));
|
|
21
21
|
}
|
|
22
|
-
//# sourceMappingURL=money.js.map
|
|
@@ -42,4 +42,3 @@ export interface PhoneDisplayProps {
|
|
|
42
42
|
* caller's: an application knows its market, a component library does not.
|
|
43
43
|
*/
|
|
44
44
|
export declare function PhoneDisplay({ value, format, tag, tagTitle, className }: PhoneDisplayProps): import("react").JSX.Element;
|
|
45
|
-
//# sourceMappingURL=phone-display.d.ts.map
|
|
@@ -20,4 +20,3 @@ export function PhoneDisplay({ value, format, tag, tagTitle, className }) {
|
|
|
20
20
|
const formatted = format?.(value) ?? value;
|
|
21
21
|
return (_jsxs("span", { className: cn("group inline-flex items-center gap-1.5 whitespace-nowrap", className), children: [_jsx("span", { className: "font-mono tabular-nums", children: formatted }), _jsx("span", { className: "font-mono text-micro text-subtle-foreground", title: tagTitle, children: tag ?? "—" }), _jsx(CopyButton, { value: value, revealOnGroupHover: true })] }));
|
|
22
22
|
}
|
|
23
|
-
//# sourceMappingURL=phone-display.js.map
|
|
@@ -30,4 +30,3 @@ export interface StatTileProps {
|
|
|
30
30
|
* an undifferentiated wall of text to a screen reader.
|
|
31
31
|
*/
|
|
32
32
|
export declare function StatTile({ label, value, caption, tone, action, className }: StatTileProps): import("react").JSX.Element;
|
|
33
|
-
//# sourceMappingURL=stat-tile.d.ts.map
|
|
@@ -15,4 +15,3 @@ import { HUE_CLASSES } from "../status/status-tokens.js";
|
|
|
15
15
|
export function StatTile({ label, value, caption, tone, action, className }) {
|
|
16
16
|
return (_jsxs("div", { className: cn("relative flex flex-col rounded-box border border-edge bg-base-300 p-4", className), children: [action != null && _jsx("div", { className: "absolute top-4 right-4", children: action }), _jsxs("dl", { className: "flex flex-col gap-1", children: [_jsx("dt", { className: cn("text-caption text-muted-foreground", action != null && "pr-20"), children: label }), _jsx("dd", { className: cn("font-mono text-metric tabular-nums", tone === undefined ? "text-foreground" : HUE_CLASSES[tone].fg), children: value }), caption != null && _jsx("dd", { className: "text-caption text-subtle-foreground", children: caption })] })] }));
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=stat-tile.js.map
|
|
@@ -74,4 +74,3 @@ export function TimestampDisplay({ value, className }) {
|
|
|
74
74
|
const display = diffMs >= 0 && diffMs < 24 * 3600 * 1000 ? formatRelative(diffMs) : absolute;
|
|
75
75
|
return (_jsx("span", { title: absolute, className: cn("font-mono text-subtle-foreground tabular-nums", className), children: display }));
|
|
76
76
|
}
|
|
77
|
-
//# sourceMappingURL=timestamp-display.js.map
|
|
@@ -8,4 +8,3 @@ export function InlineBanner({ variant = "neutral", children, className }) {
|
|
|
8
8
|
"rounded-sm border border-state-success-border bg-state-success-bg px-3 py-2 text-state-success-fg", variant === "uncertain" &&
|
|
9
9
|
"rounded-sm border border-state-uncertain-border bg-state-uncertain-bg px-3 py-2 text-state-uncertain-fg", variant === "plain" && "text-subtle-foreground", className), children: children }));
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=inline-banner.js.map
|
|
@@ -17,4 +17,3 @@ export interface InlineEmptyStateProps {
|
|
|
17
17
|
* the panel where the missing list would be.
|
|
18
18
|
*/
|
|
19
19
|
export declare function InlineEmptyState({ message, action, variant, className, }: InlineEmptyStateProps): import("react").JSX.Element;
|
|
20
|
-
//# sourceMappingURL=inline-empty-state.d.ts.map
|
|
@@ -8,4 +8,3 @@ import { cn } from "../../lib/cn.js";
|
|
|
8
8
|
export function InlineEmptyState({ message, action, variant = "inline", className, }) {
|
|
9
9
|
return (_jsxs("div", { className: cn("flex items-center gap-3 text-body text-muted-foreground", variant === "standalone" ? "justify-center py-16 text-center" : "py-3 text-left", className), children: [_jsx("span", { children: message }), action != null && (_jsx("button", { type: "button", onClick: action.onClick, className: "text-foreground underline decoration-edge-strong underline-offset-2 hover:decoration-foreground", children: action.label }))] }));
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=inline-empty-state.js.map
|
|
@@ -20,4 +20,3 @@ export interface LiveRowProps extends TableRowProps {
|
|
|
20
20
|
* a timed decay — the signal must survive, only the animation may not.
|
|
21
21
|
*/
|
|
22
22
|
export declare function LiveRow({ washTrigger, washHue, className, children, ...props }: LiveRowProps): import("react").JSX.Element;
|
|
23
|
-
//# sourceMappingURL=live-row.d.ts.map
|
|
@@ -22,4 +22,3 @@ export interface PayloadInspectorProps {
|
|
|
22
22
|
* no extra Radix dependency needed for a plain expand/collapse.
|
|
23
23
|
*/
|
|
24
24
|
export declare function PayloadInspector({ exchanges, defaultOpen, maxInlineBytes, }: PayloadInspectorProps): import("react").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=payload-inspector.d.ts.map
|
|
@@ -30,4 +30,3 @@ function ExchangeBody({ exchange, maxInlineBytes, }) {
|
|
|
30
30
|
export function PayloadInspector({ exchanges, defaultOpen = 0, maxInlineBytes = 262144, }) {
|
|
31
31
|
return (_jsx("div", { className: "flex flex-col gap-2", children: exchanges.map((exchange, i) => (_jsxs("details", { open: i === defaultOpen, className: "rounded-sm border border-edge bg-surface-2", children: [_jsxs("summary", { className: "flex cursor-pointer list-none items-center gap-2 px-3 py-2 text-body", children: [_jsx("span", { className: "font-mono text-micro text-muted-foreground", children: exchange.direction }), exchange.method != null && (_jsx("span", { className: "font-mono text-caption text-foreground", children: exchange.method })), exchange.url != null && (_jsx("span", { className: "truncate font-mono text-caption text-subtle-foreground", children: exchange.url })), _jsxs("span", { className: "ml-auto flex items-center gap-2", children: [_jsx(StatusChip, { status: exchange.status }), exchange.durationMs != null && (_jsxs("span", { className: "font-mono text-caption text-subtle-foreground", children: [exchange.durationMs, "ms"] }))] })] }), _jsx("div", { className: "border-edge border-t px-3 pb-3", children: _jsx(ExchangeBody, { exchange: exchange, maxInlineBytes: maxInlineBytes }) })] }, i))) }));
|
|
32
32
|
}
|
|
33
|
-
//# sourceMappingURL=payload-inspector.js.map
|
|
@@ -4,4 +4,3 @@ import { ScreenStack } from "./screen-layout.js";
|
|
|
4
4
|
export function RouteSkeleton({ rows = 6, withFilterBar = true }) {
|
|
5
5
|
return (_jsxs(ScreenStack, { children: [_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx(Skeleton, { className: "h-7 w-48" }), _jsx(Skeleton, { className: "h-4 w-80" })] }), withFilterBar && (_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(Skeleton, { className: "h-9 w-64" }), _jsx(Skeleton, { className: "h-9 w-32" }), _jsx(Skeleton, { className: "h-9 w-32" })] })), _jsx("div", { className: "flex flex-col gap-2", children: Array.from({ length: rows }, (_, i) => (_jsx(Skeleton, { className: "h-11 w-full" }, i))) })] }));
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=route-skeleton.js.map
|
|
@@ -8,4 +8,3 @@ export function ScreenStack({ children, className }) {
|
|
|
8
8
|
export function ScreenHeader({ title, description }) {
|
|
9
9
|
return (_jsxs("header", { className: "flex flex-col gap-1", children: [_jsx("h1", { className: "font-medium text-foreground text-title", children: title }), description != null && (_jsx("p", { className: "max-w-xl text-body text-muted-foreground", children: description }))] }));
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=screen-layout.js.map
|
|
@@ -25,4 +25,3 @@ import { InlineBanner } from "./inline-banner.js";
|
|
|
25
25
|
export function StaleWriteBanner({ message = "Someone else changed this row since it loaded. Reload to see their edit.", onReload, }) {
|
|
26
26
|
return (_jsxs(InlineBanner, { variant: "warning", className: "flex items-center justify-between gap-3", children: [_jsx("span", { children: message }), _jsx(Button, { type: "button", variant: "secondary", size: "sm", onClick: onReload, children: "Reload" })] }));
|
|
27
27
|
}
|
|
28
|
-
//# sourceMappingURL=stale-write-banner.js.map
|
|
@@ -55,4 +55,3 @@ export interface StateTimelineProps<S extends string = string> {
|
|
|
55
55
|
* two-value timezone union; all three are now the caller's.
|
|
56
56
|
*/
|
|
57
57
|
export declare function StateTimeline<S extends string>({ transitions, system, currentState, isTerminal, timezone, annotations, }: StateTimelineProps<S>): import("react").JSX.Element;
|
|
58
|
-
//# sourceMappingURL=state-timeline.d.ts.map
|
|
@@ -24,4 +24,3 @@ export type BadgeVariant = NonNullable<VariantProps<typeof badgeVariants>["varia
|
|
|
24
24
|
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
25
25
|
}
|
|
26
26
|
export declare function Badge({ className, variant, ...props }: BadgeProps): import("react").JSX.Element;
|
|
27
|
-
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -9,4 +9,3 @@ export type ButtonSize = NonNullable<VariantProps<typeof buttonVariants>["size"]
|
|
|
9
9
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
10
|
}
|
|
11
11
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
//# sourceMappingURL=button.d.ts.map
|
|
@@ -39,4 +39,3 @@ export const buttonVariants = cva("btn font-sans font-semibold rounded-field", {
|
|
|
39
39
|
});
|
|
40
40
|
export const Button = forwardRef(({ className, variant, size, ...props }, ref) => (_jsx("button", { ref: ref, className: cn(buttonVariants({ variant, size }), className), ...props })));
|
|
41
41
|
Button.displayName = "Button";
|
|
42
|
-
//# sourceMappingURL=button.js.map
|
|
@@ -99,4 +99,3 @@ export function Calendar({ className, classNames, showOutsideDays = true, ...pro
|
|
|
99
99
|
Chevron: ({ orientation, ...iconProps }) => orientation === "left" ? (_jsx(ChevronLeft, { size: 16, strokeWidth: 1.5, ...iconProps })) : (_jsx(ChevronRight, { size: 16, strokeWidth: 1.5, ...iconProps })),
|
|
100
100
|
}, ...props }));
|
|
101
101
|
}
|
|
102
|
-
//# sourceMappingURL=calendar.js.map
|
|
@@ -21,4 +21,3 @@ export interface CardHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "t
|
|
|
21
21
|
}
|
|
22
22
|
export declare function CardHeader({ title, meta, action, headingLevel, className, ...props }: CardHeaderProps): import("react").JSX.Element;
|
|
23
23
|
export declare function CardBody({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
24
|
-
//# sourceMappingURL=card.d.ts.map
|
|
@@ -39,4 +39,3 @@ export interface CheckboxFieldProps extends Omit<CheckboxProps, "aria-label" | "
|
|
|
39
39
|
* (`Field`/`Label` wiring rather than `htmlFor`).
|
|
40
40
|
*/
|
|
41
41
|
export declare function CheckboxField({ label, description, className, ...props }: CheckboxFieldProps): import("react").JSX.Element;
|
|
42
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -28,4 +28,3 @@ export function Checkbox({ checked, onCheckedChange, indeterminate = false, disa
|
|
|
28
28
|
export function CheckboxField({ label, description, className, ...props }) {
|
|
29
29
|
return (_jsxs(Field, { className: cn("flex items-start gap-2", className), children: [_jsx("span", { className: "mt-0.5", children: _jsx(Checkbox, { ...props }) }), _jsxs("span", { className: "flex flex-col gap-0.5", children: [_jsx(HeadlessLabel, { className: "cursor-pointer text-body text-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50", children: label }), description !== undefined && (_jsx("span", { className: "text-caption text-muted-foreground", children: description }))] })] }));
|
|
30
30
|
}
|
|
31
|
-
//# sourceMappingURL=checkbox.js.map
|
|
@@ -35,4 +35,3 @@ export interface ChipSelectProps<T extends string> {
|
|
|
35
35
|
className?: string | undefined;
|
|
36
36
|
}
|
|
37
37
|
export declare function ChipSelect<T extends string>({ value, onValueChange, options, disabled, className, ...aria }: ChipSelectProps<T>): import("react").JSX.Element;
|
|
38
|
-
//# sourceMappingURL=chip-select.d.ts.map
|
|
@@ -22,4 +22,3 @@ export function ChipSelect({ value, onValueChange, options, disabled, className,
|
|
|
22
22
|
}, className: cn("flex cursor-pointer items-start gap-2 rounded-sm border border-edge bg-surface-2 px-3 py-2 text-body text-muted-foreground", "data-checked:border-state-success-border data-checked:bg-state-success-bg data-checked:text-state-success-fg", "data-focus:outline-none data-focus:ring-1 data-focus:ring-state-success-border", "data-disabled:cursor-not-allowed data-disabled:opacity-50"), children: [_jsx("span", { className: cn("mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-xs border border-edge", checked && "border-state-success-fg"), children: checked && _jsx(Check, { className: "size-3", "aria-hidden": "true" }) }), _jsxs("span", { className: "flex flex-col gap-0.5", children: [_jsx(Label, { className: "cursor-pointer font-mono font-medium", children: option.label }), option.description !== undefined && (_jsx("span", { className: "text-caption text-subtle-foreground", children: option.description }))] })] }) }, option.value));
|
|
23
23
|
}) }));
|
|
24
24
|
}
|
|
25
|
-
//# sourceMappingURL=chip-select.js.map
|
|
@@ -51,4 +51,3 @@ export declare const CommandMenuItem: import("react").ForwardRefExoticComponent<
|
|
|
51
51
|
keywords?: string[];
|
|
52
52
|
forceMount?: boolean;
|
|
53
53
|
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
54
|
-
//# sourceMappingURL=command-menu.d.ts.map
|
|
@@ -21,4 +21,3 @@ export const CommandMenuGroup = forwardRef(({ className, ...props }, ref) => (_j
|
|
|
21
21
|
CommandMenuGroup.displayName = "CommandMenuGroup";
|
|
22
22
|
export const CommandMenuItem = forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Item, { ref: ref, className: cn("flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-body data-[selected=true]:bg-surface-3", className), ...props })));
|
|
23
23
|
CommandMenuItem.displayName = "CommandMenuItem";
|
|
24
|
-
//# sourceMappingURL=command-menu.js.map
|
|
@@ -49,4 +49,3 @@ export interface ConfirmDialogProps {
|
|
|
49
49
|
* to be missed.
|
|
50
50
|
*/
|
|
51
51
|
export declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, tone, onConfirm, busy, children, }: ConfirmDialogProps): import("react").JSX.Element;
|
|
52
|
-
//# sourceMappingURL=confirm-dialog.d.ts.map
|
|
@@ -27,4 +27,3 @@ import { Spinner } from "./spinner.js";
|
|
|
27
27
|
export function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel = "Cancel", tone = "default", onConfirm, busy = false, children, }) {
|
|
28
28
|
return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { className: "max-w-sm", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: title }), _jsx(DialogDescription, { children: description })] }), children, _jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "ghost", size: "sm", disabled: busy, onClick: () => onOpenChange(false), children: cancelLabel }), _jsxs(Button, { type: "button", variant: tone === "destructive" ? "destructive" : "primary", size: "sm", disabled: busy, onClick: onConfirm, children: [busy && _jsx(Spinner, { size: "xs" }), confirmLabel] })] })] }) }));
|
|
29
29
|
}
|
|
30
|
-
//# sourceMappingURL=confirm-dialog.js.map
|
|
@@ -65,4 +65,3 @@ export interface DateRangePickerProps {
|
|
|
65
65
|
* open) rather than being a validation error.
|
|
66
66
|
*/
|
|
67
67
|
export declare function DateRangePicker({ value, onValueChange, placeholder, min, max, disabled, clearable, numberOfMonths, className, }: DateRangePickerProps): import("react").JSX.Element;
|
|
68
|
-
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -47,4 +47,3 @@ export declare function DialogFooter({ className, ...props }: React.HTMLAttribut
|
|
|
47
47
|
export declare function DialogTitle({ className, ...props }: ComponentPropsWithoutRef<typeof HeadlessDialogTitle>): import("react").JSX.Element;
|
|
48
48
|
export declare function DialogDescription({ className, ...props }: ComponentPropsWithoutRef<typeof HeadlessDialogDescription>): import("react").JSX.Element;
|
|
49
49
|
export {};
|
|
50
|
-
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -87,4 +87,3 @@ export function DialogTitle({ className, ...props }) {
|
|
|
87
87
|
export function DialogDescription({ className, ...props }) {
|
|
88
88
|
return (_jsx(HeadlessDialogDescription, { className: cn("text-muted-foreground text-prose", className), ...props }));
|
|
89
89
|
}
|
|
90
|
-
//# sourceMappingURL=dialog.js.map
|
|
@@ -37,4 +37,3 @@ export declare function DropdownMenuCheckboxItem({ className, checked, children,
|
|
|
37
37
|
* demo menu opened, before this fix.
|
|
38
38
|
*/
|
|
39
39
|
export declare function DropdownMenuLabel({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
40
|
-
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -50,4 +50,3 @@ export function DropdownMenuCheckboxItem({ className, checked = false, children,
|
|
|
50
50
|
export function DropdownMenuLabel({ className, ...props }) {
|
|
51
51
|
return (_jsx("div", { className: cn("px-2 py-1.5 text-micro text-muted-foreground tracking-[0.03em]", className), ...props }));
|
|
52
52
|
}
|
|
53
|
-
//# sourceMappingURL=dropdown-menu.js.map
|
|
@@ -24,4 +24,3 @@ export function FormField({ label, htmlFor, error, hint, children, className, co
|
|
|
24
24
|
export function FieldError({ children, className, }) {
|
|
25
25
|
return (_jsx("p", { role: "alert", className: cn("text-caption text-state-danger-fg", className), children: children }));
|
|
26
26
|
}
|
|
27
|
-
//# sourceMappingURL=form-field.js.map
|
|
@@ -59,4 +59,3 @@ export interface InlineConfirmProps {
|
|
|
59
59
|
className?: string;
|
|
60
60
|
}
|
|
61
61
|
export declare function InlineConfirm({ title, description, children, confirmLabel, pendingLabel, cancelLabel, onConfirm, onCancel, pending, confirmDisabled, destructive, error, className, }: InlineConfirmProps): import("react").JSX.Element;
|
|
62
|
-
//# sourceMappingURL=inline-confirm.d.ts.map
|
|
@@ -8,4 +8,3 @@ export function InlineConfirm({ title, description, children, confirmLabel, pend
|
|
|
8
8
|
? "border-state-danger-border bg-state-danger-bg/30"
|
|
9
9
|
: "border-edge bg-surface-2", className), children: [_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("h3", { className: "font-medium text-foreground text-title-sm", children: title }), description != null && _jsx("p", { className: "text-body text-muted-foreground", children: description })] }), children != null && _jsx("div", { className: "flex flex-col gap-4", children: children }), error != null && _jsx(InlineBanner, { variant: "danger", children: error }), _jsxs("div", { className: "flex items-center justify-end gap-2", children: [_jsx(Button, { type: "button", variant: "ghost", size: "sm", disabled: pending, onClick: onCancel, children: cancelLabel }), _jsx(Button, { type: "button", variant: destructive ? "destructive" : "primary", size: "sm", disabled: pending || confirmDisabled, onClick: onConfirm, children: pending ? (pendingLabel ?? `${confirmLabel}…`) : confirmLabel })] })] }));
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=inline-confirm.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { InputHTMLAttributes } from "react";
|
|
2
2
|
export type InputProps = InputHTMLAttributes<HTMLInputElement>;
|
|
3
3
|
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
|
-
//# sourceMappingURL=input.d.ts.map
|
|
@@ -10,4 +10,3 @@ import { cn } from "../../lib/cn.js";
|
|
|
10
10
|
// touch — the intended effect of constraint 7 ("DaisyUI does the work").
|
|
11
11
|
export const Input = forwardRef(({ className, ...props }, ref) => (_jsx("input", { ref: ref, className: cn("input input-bordered w-full font-sans text-prose", className), ...props })));
|
|
12
12
|
Input.displayName = "Input";
|
|
13
|
-
//# sourceMappingURL=input.js.map
|
|
@@ -23,4 +23,3 @@
|
|
|
23
23
|
* hand-rolled `<label>`.
|
|
24
24
|
*/
|
|
25
25
|
export declare const Label: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
26
|
-
//# sourceMappingURL=label.d.ts.map
|
|
@@ -30,4 +30,3 @@ import { omitUndefined } from "../../lib/omit-undefined.js";
|
|
|
30
30
|
*/
|
|
31
31
|
export const Label = forwardRef(({ className, ...props }, ref) => (_jsx(Field, { as: Fragment, children: _jsx(HeadlessLabel, { ref: ref, className: cn("text-body font-medium text-foreground", className), ...omitUndefined(props) }) })));
|
|
32
32
|
Label.displayName = "Label";
|
|
33
|
-
//# sourceMappingURL=label.js.map
|
|
@@ -51,4 +51,3 @@ export type PaginationPosition = {
|
|
|
51
51
|
* silently dead button by omission.
|
|
52
52
|
*/
|
|
53
53
|
export declare function Pagination({ onPrevious, onNext, position, children, label, className, }: PaginationProps): import("react").JSX.Element;
|
|
54
|
-
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -28,4 +28,3 @@ export function Pagination({ onPrevious, onNext, position, children, label = "Pa
|
|
|
28
28
|
: position.offset + position.pageSize >= position.total;
|
|
29
29
|
return (_jsxs("nav", { "aria-label": label, className: cn("flex items-center justify-between gap-4 text-caption", className), children: [_jsx("p", { className: "font-mono text-subtle-foreground tabular-nums", children: positionLabel(position) }), _jsxs("div", { className: "flex items-center gap-2", children: [children, _jsxs(Button, { variant: "secondary", size: "sm", onClick: onPrevious, disabled: onPrevious === undefined, "aria-label": "Previous page", children: [_jsx(ChevronLeft, { size: 14, strokeWidth: 1.5 }), "Previous"] }), _jsxs(Button, { variant: "secondary", size: "sm", onClick: onNext, disabled: onNext === undefined || atEnd, "aria-label": "Next page", children: ["Next", _jsx(ChevronRight, { size: 14, strokeWidth: 1.5 })] })] })] }));
|
|
30
30
|
}
|
|
31
|
-
//# sourceMappingURL=pagination.js.map
|
|
@@ -9,4 +9,3 @@ export declare const Popover: import("@headlessui/react")._internal_ComponentPop
|
|
|
9
9
|
};
|
|
10
10
|
export declare const PopoverTrigger: import("@headlessui/react")._internal_ComponentPopoverButton;
|
|
11
11
|
export declare function PopoverContent({ className, anchor, ...props }: ComponentPropsWithoutRef<typeof PopoverPanel>): import("react").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -19,4 +19,3 @@ export const PopoverTrigger = PopoverButton;
|
|
|
19
19
|
export function PopoverContent({ className, anchor = "bottom start", ...props }) {
|
|
20
20
|
return (_jsx(PopoverPanel, { anchor: anchor, transition: true, className: cn("z-50 rounded-md border border-edge bg-surface-2 p-3 shadow-[var(--shadow-popover)] [--anchor-gap:6px] focus:outline-none", "origin-top transition duration-100 ease-out data-closed:scale-95 data-closed:opacity-0", className), ...props }));
|
|
21
21
|
}
|
|
22
|
-
//# sourceMappingURL=popover.js.map
|
|
@@ -22,4 +22,3 @@ export function Progress({ value, max = 100, tone = "neutral", label, showValue
|
|
|
22
22
|
// introducing a parallel set of bar colours.
|
|
23
23
|
className: cn("h-full rounded-full bg-current transition-[width] duration-300", hue.fg), style: { width: `${percent}%` } }) }), showValue && (_jsxs("span", { className: "shrink-0 font-mono text-caption text-subtle-foreground tabular-nums", children: [clamped, " / ", safeMax] }))] }));
|
|
24
24
|
}
|
|
25
|
-
//# sourceMappingURL=progress.js.map
|
|
@@ -44,4 +44,3 @@ export interface RadioGroupProps<T extends string> {
|
|
|
44
44
|
className?: string | undefined;
|
|
45
45
|
}
|
|
46
46
|
export declare function RadioGroup<T extends string>({ value, onValueChange, options, disabled, className, ...aria }: RadioGroupProps<T>): import("react").JSX.Element;
|
|
47
|
-
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -8,4 +8,3 @@ export function RadioGroup({ value, onValueChange, options, disabled, className,
|
|
|
8
8
|
onValueChange(next);
|
|
9
9
|
}, disabled: disabled ?? false, className: cn("flex flex-wrap gap-2", className), ...aria, children: options.map((option) => (_jsxs(Radio, { value: option.value, className: cn("flex cursor-pointer flex-col gap-0.5 rounded-sm border border-edge bg-surface-2 px-3 py-2 text-body text-muted-foreground", "data-checked:border-state-success-border data-checked:bg-state-success-bg data-checked:text-state-success-fg", "data-focus:outline-none data-focus:ring-1 data-focus:ring-state-success-border", "data-disabled:cursor-not-allowed data-disabled:opacity-50"), children: [_jsx("span", { className: "font-medium", children: option.label }), option.description !== undefined && (_jsx("span", { className: "text-caption text-subtle-foreground", children: option.description }))] }, option.value))) }));
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=radio-group.js.map
|
|
@@ -139,4 +139,3 @@ export function SelectContent({ className, children, }) {
|
|
|
139
139
|
export function SelectItem({ value, className, children, }) {
|
|
140
140
|
return (_jsx(ListboxOption, { value: value, className: cn("relative flex cursor-pointer items-center rounded-sm py-1.5 pr-2 pl-7 text-body text-foreground outline-none", "data-focus:bg-surface-3", className), children: ({ selected }) => (_jsxs(_Fragment, { children: [_jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: selected && _jsx(Check, { size: 14, strokeWidth: 1.5, "aria-hidden": "true" }) }), children] })) }));
|
|
141
141
|
}
|
|
142
|
-
//# sourceMappingURL=select.js.map
|
|
@@ -6,4 +6,3 @@ export interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
decorative?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -13,4 +13,3 @@ export const Separator = forwardRef(({ className, orientation = "horizontal", de
|
|
|
13
13
|
return (_jsx("hr", { ref: ref, "aria-orientation": orientation, className: sharedClassName, ...props }));
|
|
14
14
|
});
|
|
15
15
|
Separator.displayName = "Separator";
|
|
16
|
-
//# sourceMappingURL=separator.js.map
|
|
@@ -97,4 +97,3 @@ function GroupSection({ group, currentPath }) {
|
|
|
97
97
|
export function SideNav({ topItem, groups, footerItems, currentPath, accountSlot, className, }) {
|
|
98
98
|
return (_jsxs("nav", { "aria-label": "Primary", className: cn("flex h-full flex-col gap-4 overflow-y-auto bg-base-200 py-4", className), children: [_jsx("div", { className: "flex flex-col gap-0.5 px-2", children: _jsx(NavLink, { item: topItem, active: isActive(topItem.href, currentPath), variant: "responsive" }) }), _jsx("div", { className: "flex flex-1 flex-col gap-4 px-2", children: groups.map((group) => (_jsx(GroupSection, { group: group, currentPath: currentPath }, group.label))) }), _jsxs("div", { className: "flex flex-col gap-2 border-edge-subtle border-t px-2 pt-3", children: [_jsx("div", { className: "flex flex-col gap-0.5", children: footerItems.map((item) => (_jsx(NavLink, { item: item, active: isActive(item.href, currentPath), variant: "responsive", dim: true }, item.href))) }), accountSlot != null && _jsx("div", { className: "px-3 lg:hidden xl:block", children: accountSlot })] })] }));
|
|
99
99
|
}
|
|
100
|
-
//# sourceMappingURL=side-nav.js.map
|
|
@@ -18,4 +18,3 @@ const SIZE_CLASS = {
|
|
|
18
18
|
export function Spinner({ size = "sm", label, className }) {
|
|
19
19
|
return (_jsx("span", { className: cn("loading loading-spinner", SIZE_CLASS[size], className), role: label === undefined ? undefined : "status", "aria-hidden": label === undefined ? true : undefined, children: label !== undefined && _jsx("span", { className: "sr-only", children: label }) }));
|
|
20
20
|
}
|
|
21
|
-
//# sourceMappingURL=spinner.js.map
|