@assure-one/design-system 0.16.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +49 -12
- package/dist/index.js +147 -57
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tokens/index.d.ts +17 -4
- package/dist/tokens/index.js +16 -3
- package/dist/tokens/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefA
|
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Blockquote — semantic quote with optional attribution. Uses `font-display`
|
|
111
|
-
* (
|
|
111
|
+
* (Inter) at a comfortable reading scale; smart quotes are wrapped automatically.
|
|
112
112
|
*/
|
|
113
113
|
interface BlockquoteProps extends React.BlockquoteHTMLAttributes<HTMLQuoteElement> {
|
|
114
114
|
author?: string;
|
|
@@ -227,6 +227,8 @@ interface CheckboxProps extends Omit<React$1.ComponentPropsWithoutRef<typeof Che
|
|
|
227
227
|
defaultChecked?: boolean | "indeterminate";
|
|
228
228
|
/** Convenience: render with indeterminate state. Mirrors legacy prop. */
|
|
229
229
|
indeterminate?: boolean;
|
|
230
|
+
/** Box shape. Defaults to "square". */
|
|
231
|
+
shape?: "square" | "circle";
|
|
230
232
|
}
|
|
231
233
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
232
234
|
|
|
@@ -287,11 +289,17 @@ interface CommandPaletteProps {
|
|
|
287
289
|
declare function CommandPalette({ items, open: controlledOpen, onOpenChange, placeholder, }: CommandPaletteProps): react_jsx_runtime.JSX.Element;
|
|
288
290
|
|
|
289
291
|
interface ConfirmActionButtonProps {
|
|
290
|
-
/** Element rendered as the dialog trigger via `<AlertDialogTrigger asChild>`.
|
|
291
|
-
|
|
292
|
+
/** Element rendered as the dialog trigger via `<AlertDialogTrigger asChild>`.
|
|
293
|
+
* Optional: omit it when the dialog is driven entirely by `open` /
|
|
294
|
+
* `onOpenChange` (e.g. a menu item hoists the dialog out of a closing
|
|
295
|
+
* DropdownMenu). With no trigger, nothing renders until `open` is set. */
|
|
296
|
+
trigger?: React$1.ReactNode;
|
|
292
297
|
title: React$1.ReactNode;
|
|
293
298
|
description?: React$1.ReactNode;
|
|
294
299
|
confirmLabel?: React$1.ReactNode;
|
|
300
|
+
/** Shown on the confirm button while `onConfirm` is awaiting. Falls back to
|
|
301
|
+
* `confirmLabel` when omitted, so existing callers are unaffected. */
|
|
302
|
+
pendingLabel?: React$1.ReactNode;
|
|
295
303
|
cancelLabel?: React$1.ReactNode;
|
|
296
304
|
/** Awaited; dialog closes after resolve, stays open on reject. */
|
|
297
305
|
onConfirm: () => void | Promise<void>;
|
|
@@ -307,7 +315,7 @@ interface ConfirmActionButtonProps {
|
|
|
307
315
|
/** Called when the dialog requests an open-state change. */
|
|
308
316
|
onOpenChange?: (open: boolean) => void;
|
|
309
317
|
}
|
|
310
|
-
declare function ConfirmActionButton({ trigger, title, description, confirmLabel, cancelLabel, onConfirm, destructive, contentClassName, open, defaultOpen, onOpenChange, }: ConfirmActionButtonProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
declare function ConfirmActionButton({ trigger, title, description, confirmLabel, pendingLabel, cancelLabel, onConfirm, destructive, contentClassName, open, defaultOpen, onOpenChange, }: ConfirmActionButtonProps): react_jsx_runtime.JSX.Element;
|
|
311
319
|
|
|
312
320
|
declare const ContextMenu: React$1.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
313
321
|
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
@@ -508,7 +516,7 @@ declare const DropdownMenuShortcut: {
|
|
|
508
516
|
};
|
|
509
517
|
|
|
510
518
|
/**
|
|
511
|
-
* EmptyState — display headline (
|
|
519
|
+
* EmptyState — display headline (Inter), fg-3 description, neutral icon halo on bg-2.
|
|
512
520
|
*
|
|
513
521
|
* Public API preserved: `icon`, `title`, `description`, `action`.
|
|
514
522
|
*/
|
|
@@ -847,7 +855,7 @@ declare const LoadingRows: React$1.ForwardRefExoticComponent<LoadingRowsProps &
|
|
|
847
855
|
|
|
848
856
|
/**
|
|
849
857
|
* Logo — Assure suite wordmark. Renders "Assure" in `fg` plus an optional
|
|
850
|
-
* product suffix in `pro-fg` (e.g., "Pro", "Tax"), set in
|
|
858
|
+
* product suffix in `pro-fg` (e.g., "Pro", "Tax"), set in Inter (font-display).
|
|
851
859
|
*
|
|
852
860
|
* The product suffix is configurable so the same component serves every
|
|
853
861
|
* Assure product. The default preserves the original "Assure Pro" output —
|
|
@@ -1161,15 +1169,23 @@ interface SearchSelectProps {
|
|
|
1161
1169
|
*/
|
|
1162
1170
|
onCreateNew?: () => void;
|
|
1163
1171
|
createNewLabel?: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* How the collapsed single-value display renders the picked option's
|
|
1174
|
+
* `description`. "inline" (default) appends it as muted "· text" after the
|
|
1175
|
+
* label — the existing behaviour. "pill" renders it as a discrete rounded
|
|
1176
|
+
* badge after the label, so dense metadata (e.g. "1040 · 2025", "todo")
|
|
1177
|
+
* reads as a tag instead of running into the label. Single-mode only.
|
|
1178
|
+
*/
|
|
1179
|
+
descriptionVariant?: "inline" | "pill";
|
|
1164
1180
|
}
|
|
1165
|
-
declare function SearchSelect({ options, selected: selectedProp, onSelect: onSelectProp, onRemove: onRemoveProp, value, onValueChange, onCreate, placeholder, className, disabled, groupFilter, pinnedGroups, closeOnSelect: closeOnSelectProp, showGroupCounts, onCreateNew, createNewLabel, }: SearchSelectProps): react_jsx_runtime.JSX.Element;
|
|
1181
|
+
declare function SearchSelect({ options, selected: selectedProp, onSelect: onSelectProp, onRemove: onRemoveProp, value, onValueChange, onCreate, placeholder, className, disabled, groupFilter, pinnedGroups, closeOnSelect: closeOnSelectProp, showGroupCounts, onCreateNew, createNewLabel, descriptionVariant, }: SearchSelectProps): react_jsx_runtime.JSX.Element;
|
|
1166
1182
|
declare namespace SearchSelect {
|
|
1167
1183
|
var displayName: string;
|
|
1168
1184
|
}
|
|
1169
1185
|
|
|
1170
1186
|
/**
|
|
1171
1187
|
* SectionHeader — title + description block for marketing-style sections.
|
|
1172
|
-
* Uses
|
|
1188
|
+
* Uses Inter (`font-display`) with the spec's `-0.022em` letterspacing.
|
|
1173
1189
|
*/
|
|
1174
1190
|
interface SectionHeaderProps {
|
|
1175
1191
|
title: string;
|
|
@@ -1409,7 +1425,7 @@ declare const StarRating: React$1.ForwardRefExoticComponent<StarRatingProps & Re
|
|
|
1409
1425
|
|
|
1410
1426
|
/**
|
|
1411
1427
|
* Stat — paired numeric display + caption (the StatNum primitive).
|
|
1412
|
-
* Numerals are set in `font-display` (
|
|
1428
|
+
* Numerals are set in `font-display` (Inter) at a fluid clamp size with
|
|
1413
1429
|
* `font-variant-numeric: tabular-nums` for vertical alignment.
|
|
1414
1430
|
*/
|
|
1415
1431
|
interface StatProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -1680,6 +1696,16 @@ interface SidebarProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
|
1680
1696
|
* `collapsible` alone is a no-op.
|
|
1681
1697
|
*/
|
|
1682
1698
|
collapsible?: boolean;
|
|
1699
|
+
/**
|
|
1700
|
+
* Visual treatment.
|
|
1701
|
+
* - `"classic"` (default) — full-height column flush to the left
|
|
1702
|
+
* edge with a right rule. The legacy look; unchanged.
|
|
1703
|
+
* - `"floating"` — a detached, rounded card inset from the viewport
|
|
1704
|
+
* with a soft shadow (modern SaaS pattern). Nav rows get larger
|
|
1705
|
+
* hit areas and a pill active state. Exposed as `data-variant` so
|
|
1706
|
+
* descendant atoms restyle via `group-data-[variant=floating]`.
|
|
1707
|
+
*/
|
|
1708
|
+
variant?: "classic" | "floating";
|
|
1683
1709
|
}
|
|
1684
1710
|
declare const Sidebar: React$1.ForwardRefExoticComponent<SidebarProps & React$1.RefAttributes<HTMLElement>>;
|
|
1685
1711
|
interface SidebarTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -1946,7 +1972,7 @@ interface PageHeaderProps extends Omit<React.HTMLAttributes<HTMLElement>, "title
|
|
|
1946
1972
|
declare const PageHeader: React$1.ForwardRefExoticComponent<PageHeaderProps & React$1.RefAttributes<HTMLElement>>;
|
|
1947
1973
|
type PageHeaderSpecProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
1948
1974
|
/**
|
|
1949
|
-
* PageHeaderSpec — small `.spec`-style span (
|
|
1975
|
+
* PageHeaderSpec — small `.spec`-style span (Inter w/ tnum/lnum/ss01).
|
|
1950
1976
|
* Used inside the `meta` slot for numeric facts ("4 due today",
|
|
1951
1977
|
* "EIN ·· 12-3456789").
|
|
1952
1978
|
*/
|
|
@@ -2162,7 +2188,7 @@ declare const DataTableCell: React$1.ForwardRefExoticComponent<DataTableCellProp
|
|
|
2162
2188
|
*/
|
|
2163
2189
|
declare const DataTableCellName: React$1.ForwardRefExoticComponent<DataTableCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
2164
2190
|
/**
|
|
2165
|
-
* DataTableCellMono — currency / IDs / numerics.
|
|
2191
|
+
* DataTableCellMono — currency / IDs / numerics. Inter with
|
|
2166
2192
|
* tabular numerals and tight tracking.
|
|
2167
2193
|
*/
|
|
2168
2194
|
declare const DataTableCellMono: React$1.ForwardRefExoticComponent<DataTableCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
@@ -2617,7 +2643,18 @@ interface UseStopwatchReturn {
|
|
|
2617
2643
|
reset: () => void;
|
|
2618
2644
|
}
|
|
2619
2645
|
declare function useStopwatch(): UseStopwatchReturn;
|
|
2620
|
-
|
|
2646
|
+
interface TimeLoggerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2647
|
+
/**
|
|
2648
|
+
* Layout direction.
|
|
2649
|
+
* - `"vertical"` (default) — the stacked panel; rows separated by top
|
|
2650
|
+
* rules. For popovers and side panels.
|
|
2651
|
+
* - `"horizontal"` — a single compact bar; segments sit side by side,
|
|
2652
|
+
* separated by left rules. For an app top/bottom bar. Exposed as
|
|
2653
|
+
* `data-orientation` so segment atoms flip their divider via
|
|
2654
|
+
* `group-data-[orientation=horizontal]/timelogger`.
|
|
2655
|
+
*/
|
|
2656
|
+
orientation?: "vertical" | "horizontal";
|
|
2657
|
+
}
|
|
2621
2658
|
declare const TimeLogger: React$1.ForwardRefExoticComponent<TimeLoggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2622
2659
|
interface TimeLoggerHeaderProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
2623
2660
|
title?: React$1.ReactNode;
|