@wealth-os/design-system 0.1.0 → 0.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,36 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0 — release candidate (prepared 2026-11-17; unpublished)
4
+
5
+ This release updates the existing WealthOS design system using the approved landing reference. It is an intentional visual migration from 0.1.0; applications should adopt it explicitly and review their screens.
6
+
7
+ ### Foundations
8
+
9
+ - Replace dominant violet actions with landing navy (`#061b31`) and the landing-derived hover/selection/surface mixes. Keep meaningful informational, success, warning, error and categorical chart colors.
10
+ - Separate action, link, focus, selection, control-border and overlay roles. Keep existing primary/accent and shadcn compatibility names; primary overrides no longer recolor unrelated focus, selection or charts.
11
+ - Use 8px main control radii and opt-in Surface/Card radii of 16px and 24px. Embedded controls use a named 4px inner-radius token; select popups now use the shared 8px control radius.
12
+ - Add explicit compact product typography and medium-weight financial figures with tabular numerals. Marketing headings remain opt-in; hero sizes are not applied globally.
13
+
14
+ ### Components
15
+
16
+ - Add optional `density="compact" | "comfortable"` (36px/14px and 44px/15px) to supported controls. Omission preserves legacy heights, including 32px small/compact variants. Composite chip fields and wrapped rows can grow.
17
+ - Apply consistent neutral interaction roles across advanced choices, tabs, navigation, tables, menus, command palette, progress and calendar selection. Keep semantic feedback independent.
18
+ - Wrap tabs within narrow columns and retain visible invalid/disabled/focus states. Calendar unavailable dates use the shared disabled opacity.
19
+ - Restore focus to a connected, enabled external CommandMenu launcher after Escape or item-selection closure. Respect deliberate post-close focus destinations; no new required prop or keyboard/value model is introduced.
20
+ - Keep non-destructive confirmation actions on action tokens, including host primary-color overrides; destructive confirmations keep their semantic error treatment.
21
+
22
+ ### Compatibility
23
+
24
+ - No existing runtime export, public subpath, required component prop, peer range or dependency version is removed or changed. `ControlDensity` and `TabsTriggerProps` are additive type exports.
25
+ - Financial formatting, numeric/date parsing, precision, unavailable/estimate meaning, native form values and default Button submission intent are unchanged.
26
+ - Appearance is intentionally different: action/selection colors, control radii, type weights, surface borders and narrow tab wrapping change. Consumers that theme everything through `--primary` must adopt the separate roles.
27
+ - `AllocationBar` retains its public color name `primary`, now mapped to `--chart-1` rather than action primary. Theme chart series separately.
28
+ - No application migration or dark theme is included. See [migration guidance](docs/migration.md), [tokens](docs/tokens.md), and [accessibility](docs/accessibility.md).
29
+
30
+ ### Packaging
31
+
32
+ - Include this changelog and the migration guide in the public npm archive. Keep release operations, agent instructions, review evidence, tests, playground, Lab and diagnostics outside the archive.
33
+
34
+ ## 0.1.0
35
+
36
+ Previous published baseline, with the existing public component families and optional module exports.
package/README.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Standalone React component library and token package for WealthOS products. It provides typed, presentation-focused components, design tokens, and optional integrations for React applications.
4
4
 
5
+ ## 0.2.0 refresh (release candidate)
6
+
7
+ Landing-derived navy actions, independent interaction roles, shared typography, optional compact/comfortable densities and opt-in larger surfaces update the existing system. Semantic/chart colors and financial formatting remain intact. Component APIs are additive, but visual/theme output intentionally changes; this is not an appearance-preserving patch.
8
+
9
+ Read the [changelog](CHANGELOG.md) and [migration guide](docs/migration.md) before adoption. Source version metadata is 0.2.0 for review; npm publication is pending separate approval. No warm-charcoal or dark palette is included.
10
+
5
11
  ## Requirements
6
12
 
7
13
  - React 19 and React DOM 19 or later
@@ -19,10 +25,10 @@ Import the host application's Tailwind stylesheet first, then the consumer-safe
19
25
  ```css
20
26
  /* app.css */
21
27
  @import "tailwindcss";
22
- @import "@wealth-os/design-system/styles.css";
28
+ @import "@wealth-os/design-system/styles.css" layer(components);
23
29
 
24
30
  /* Optional host-specific token overrides come after the package. */
25
- :root { --primary: #0f766e; }
31
+ :root { --action-background: #0f766e; }
26
32
  ```
27
33
 
28
34
  Import the package stylesheet once. Add `@import "@wealth-os/design-system/reset.css";` only when you explicitly want WealthOS document defaults (canvas, text, font, and root minimum height). That optional file does not include preflight and does not set global focus styles. Do not import it when the host owns those values. `@wealth-os/design-system/tokens.css` exposes only canonical custom properties for non-Tailwind contexts; do not import it alongside `styles.css` because the package stylesheet already includes it.
@@ -30,7 +36,7 @@ Import the package stylesheet once. Add `@import "@wealth-os/design-system/reset
30
36
  Then import typed public components:
31
37
 
32
38
  ```tsx
33
- import "@wealth-os/design-system/styles.css";
39
+ // The stylesheet is already imported once through app.css above.
34
40
  import { Button, Field, TextInput, Surface, StatusBadge } from "@wealth-os/design-system";
35
41
 
36
42
  export function ContactField() {
@@ -71,6 +77,8 @@ The package keeps common components in the root entry and exposes heavier option
71
77
  ## Documentation
72
78
 
73
79
  - [Layout composition recipes](docs/layout-composition.md)
80
+ - [Migration from 0.1.0](docs/migration.md)
81
+ - [Changelog](CHANGELOG.md)
74
82
  - [Token reference](docs/tokens.md)
75
83
  - [Component catalog and usage](docs/components.md)
76
84
  - [Accessibility contracts](docs/accessibility.md)
@@ -0,0 +1,47 @@
1
+ import { t as e } from "./utils-CX-Pz5p6.js";
2
+ import * as t from "react";
3
+ import { Slot as n } from "@radix-ui/react-slot";
4
+ import { cva as r } from "class-variance-authority";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ //#region src/lib/control-density.ts
7
+ function a(e) {
8
+ return e === "compact" ? "wos-density-compact" : e === "comfortable" ? "wos-density-comfortable" : void 0;
9
+ }
10
+ //#endregion
11
+ //#region src/components/button.tsx
12
+ var o = r("wos-button inline-flex shrink-0 items-center gap-1.5 font-semibold transition-colors disabled:pointer-events-none", {
13
+ variants: {
14
+ variant: {
15
+ primary: "bg-primary text-primary-foreground hover:bg-primary-hover",
16
+ secondary: "border border-control-border bg-surface text-foreground hover:border-control-border-hover",
17
+ ghost: "bg-transparent text-secondary-foreground hover:bg-interaction-hover",
18
+ destructive: "bg-transparent text-destructive hover:bg-destructive-subtle",
19
+ outline: "border border-control-border bg-transparent text-foreground hover:border-control-border-hover hover:bg-interaction-hover",
20
+ link: "h-auto bg-transparent p-0 text-link hover:text-link-hover underline-offset-4 hover:underline"
21
+ },
22
+ size: {
23
+ sm: "h-8 px-2.5 text-[length:var(--type-size-caption)]",
24
+ md: "px-3.5",
25
+ lg: "h-10 px-5",
26
+ icon: "h-[var(--control-height)] w-[var(--control-height)] p-0",
27
+ "icon-sm": "h-8 w-8 p-0",
28
+ "icon-lg": "h-10 w-10 p-0"
29
+ }
30
+ },
31
+ defaultVariants: {
32
+ variant: "primary",
33
+ size: "md"
34
+ }
35
+ }), s = t.forwardRef(({ className: t, variant: r, size: s, asChild: c = !1, type: l, density: u, ...d }, f) => /* @__PURE__ */ i(c ? n : "button", {
36
+ className: e(o({
37
+ variant: r,
38
+ size: s
39
+ }), a(u), u && "text-[length:var(--wos-control-font-size)]", u && r !== "link" && "h-[var(--wos-control-height)]", u && s?.startsWith("icon") && "w-[var(--wos-control-height)]", t),
40
+ "data-density": u,
41
+ ref: f,
42
+ type: c ? void 0 : l ?? "button",
43
+ ...d
44
+ }));
45
+ s.displayName = "Button";
46
+ //#endregion
47
+ export { o as n, a as r, s as t };
@@ -1,41 +1,53 @@
1
1
  /* empty css */
2
2
  import { t as e } from "./utils-CX-Pz5p6.js";
3
- import { h as t, p as n } from "./overlays-9ArfwHJo.js";
4
- import "react";
5
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
- import { Command as a } from "cmdk";
3
+ import { h as t, p as n } from "./overlays-BleXRtz6.js";
4
+ import * as r from "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { Command as o } from "cmdk";
7
7
  //#region src/components/command-menu.tsx
8
- function o({ open: e, onOpenChange: o, label: s = "Command menu", placeholder: c = "Search commands…", emptyMessage: l = "No results found.", children: u }) {
9
- return /* @__PURE__ */ r(n, {
8
+ function s({ open: e, onOpenChange: s, label: c = "Command menu", placeholder: l = "Search commands…", emptyMessage: u = "No results found.", children: d }) {
9
+ let f = r.useRef(null), p = r.useRef(null);
10
+ return /* @__PURE__ */ i(n, {
10
11
  open: e,
11
- onOpenChange: o,
12
- children: /* @__PURE__ */ r(t, {
13
- "aria-label": s,
12
+ onOpenChange: s,
13
+ children: /* @__PURE__ */ i(t, {
14
+ ref: f,
15
+ onOpenAutoFocus: () => {
16
+ let e = f.current?.ownerDocument.activeElement;
17
+ p.current = e instanceof HTMLElement && !f.current?.contains(e) && e !== e.ownerDocument.body ? e : null;
18
+ },
19
+ onCloseAutoFocus: (e) => {
20
+ let t = p.current;
21
+ if (p.current = null, !t?.isConnected || t.matches(":disabled") || t.closest("[hidden], [inert]")) return;
22
+ let n = t.ownerDocument.activeElement;
23
+ n && n !== t.ownerDocument.body && n !== t && !f.current?.contains(n) ? e.preventDefault() : (e.preventDefault(), t.focus());
24
+ },
25
+ "aria-label": c,
14
26
  "aria-describedby": void 0,
15
27
  className: "overflow-hidden p-0",
16
- children: /* @__PURE__ */ i(a, {
17
- label: s,
18
- className: "flex max-h-[min(70dvh,32rem)] flex-col",
19
- children: [/* @__PURE__ */ r(a.Input, {
20
- placeholder: c,
28
+ children: /* @__PURE__ */ a(o, {
29
+ label: c,
30
+ className: "wos-command flex max-h-[min(70dvh,32rem)] flex-col",
31
+ children: [/* @__PURE__ */ i(o.Input, {
32
+ placeholder: l,
21
33
  className: "h-12 border-b border-border bg-transparent px-4 type-control outline-none placeholder:text-muted-foreground"
22
- }), /* @__PURE__ */ i(a.List, {
34
+ }), /* @__PURE__ */ a(o.List, {
23
35
  className: "overflow-y-auto p-2",
24
- children: [/* @__PURE__ */ r(a.Empty, {
36
+ children: [/* @__PURE__ */ i(o.Empty, {
25
37
  className: "p-4 text-center type-supporting text-muted-foreground",
26
- children: l
27
- }), u]
38
+ children: u
39
+ }), d]
28
40
  })]
29
41
  })
30
42
  })
31
43
  });
32
44
  }
33
- var s = a.Group, c = a.Item, l = a.Separator;
34
- function u({ className: t, ...n }) {
35
- return /* @__PURE__ */ r("span", {
45
+ var c = o.Group, l = o.Item, u = o.Separator;
46
+ function d({ className: t, ...n }) {
47
+ return /* @__PURE__ */ i("span", {
36
48
  className: e("ml-auto type-metadata tracking-wide text-muted-foreground", t),
37
49
  ...n
38
50
  });
39
51
  }
40
52
  //#endregion
41
- export { o as CommandMenu, s as CommandMenuGroup, c as CommandMenuItem, l as CommandMenuSeparator, u as CommandMenuShortcut };
53
+ export { s as CommandMenu, c as CommandMenuGroup, l as CommandMenuItem, u as CommandMenuSeparator, d as CommandMenuShortcut };
@@ -1,3 +1,4 @@
1
+ import { type ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  export type ChoiceOption<T extends string = string> = {
3
4
  value: T;
@@ -20,12 +21,13 @@ export interface ComboboxProps<T extends string = string> {
20
21
  loading?: boolean;
21
22
  className?: string;
22
23
  id?: string;
24
+ density?: ControlDensity;
23
25
  allowCustomValue?: boolean;
24
26
  onValueSubmit?: () => void;
25
27
  name?: string;
26
28
  }
27
29
  /** Searchable, controlled single-value listbox. Autocomplete and SearchInput share this engine. */
28
- export declare function Combobox<T extends string = string>({ label, value, onChange, options, help, error, placeholder, emptyMessage, disabled, required, clearable, loading, className, id, allowCustomValue, onValueSubmit, name }: ComboboxProps<T>): React.JSX.Element;
30
+ export declare function Combobox<T extends string = string>({ label, value, onChange, options, help, error, placeholder, emptyMessage, disabled, required, clearable, loading, className, id, allowCustomValue, onValueSubmit, name, density }: ComboboxProps<T>): React.JSX.Element;
29
31
  export type AutocompleteProps<T extends string = string> = ComboboxProps<T>;
30
32
  export declare function Autocomplete<T extends string = string>(props: AutocompleteProps<T>): React.JSX.Element;
31
33
  export interface SearchInputProps<T extends string = string> extends Omit<ComboboxProps<T>, "label" | "value" | "onChange" | "clearable" | "options" | "allowCustomValue" | "onValueSubmit"> {
@@ -38,6 +40,7 @@ export interface SearchInputProps<T extends string = string> extends Omit<Combob
38
40
  /** Search field built on the shared Combobox engine; options are optional suggestions. */
39
41
  export declare function SearchInput<T extends string = string>({ label, value, onChange, onSubmit, options, ...props }: SearchInputProps<T>): React.JSX.Element;
40
42
  export interface MultiSelectProps<T extends string = string> {
43
+ density?: ControlDensity;
41
44
  label: React.ReactNode;
42
45
  value: T[];
43
46
  onChange: (value: T[]) => void;
@@ -53,17 +56,19 @@ export interface MultiSelectProps<T extends string = string> {
53
56
  id?: string;
54
57
  }
55
58
  /** Controlled multi-value combobox with removable selected chips and a searchable list. */
56
- export declare function MultiSelect<T extends string = string>({ label, value, onChange, options, help, error, placeholder, emptyMessage, disabled, required, name, className, id }: MultiSelectProps<T>): React.JSX.Element;
59
+ export declare function MultiSelect<T extends string = string>({ label, value, onChange, options, help, error, placeholder, emptyMessage, disabled, required, name, className, id, density }: MultiSelectProps<T>): React.JSX.Element;
57
60
  export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> {
61
+ density?: ControlDensity;
58
62
  label: React.ReactNode;
59
63
  help?: React.ReactNode;
60
64
  error?: React.ReactNode;
61
65
  onChange?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
62
66
  }
63
- export declare function Checkbox({ label, help, error, className, onChange, ...props }: CheckboxProps): React.JSX.Element;
67
+ export declare function Checkbox({ label, help, error, className, onChange, density, ...props }: CheckboxProps): React.JSX.Element;
64
68
  export interface RadioOption<T extends string> extends ChoiceOption<T> {
65
69
  }
66
70
  export interface RadioGroupProps<T extends string> {
71
+ density?: ControlDensity;
67
72
  label: React.ReactNode;
68
73
  value: T | "";
69
74
  onChange: (value: T) => void;
@@ -76,7 +81,7 @@ export interface RadioGroupProps<T extends string> {
76
81
  name?: string;
77
82
  className?: string;
78
83
  }
79
- export declare function RadioGroup<T extends string>({ label, value, onChange, options, help, error, disabled, required, orientation, name, className }: RadioGroupProps<T>): React.JSX.Element;
84
+ export declare function RadioGroup<T extends string>({ label, value, onChange, options, help, error, disabled, required, orientation, name, className, density }: RadioGroupProps<T>): React.JSX.Element;
80
85
  export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> {
81
86
  label: React.ReactNode;
82
87
  description?: React.ReactNode;
@@ -93,11 +98,13 @@ export interface SliderProps extends Omit<React.InputHTMLAttributes<HTMLInputEle
93
98
  }
94
99
  export declare function Slider({ label, value, onChange, help, error, className, ...props }: SliderProps): React.JSX.Element;
95
100
  export interface ToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> {
101
+ density?: ControlDensity;
96
102
  pressed: boolean;
97
103
  onPressedChange: (pressed: boolean) => void;
98
104
  }
99
- export declare function Toggle({ pressed, onPressedChange, className, children, ...props }: ToggleProps): React.JSX.Element;
105
+ export declare function Toggle({ pressed, onPressedChange, className, children, density, ...props }: ToggleProps): React.JSX.Element;
100
106
  export interface ToggleGroupProps<T extends string> {
107
+ density?: ControlDensity;
101
108
  label: string;
102
109
  value: T | T[];
103
110
  onChange: (value: T | T[]) => void;
@@ -107,7 +114,7 @@ export interface ToggleGroupProps<T extends string> {
107
114
  className?: string;
108
115
  }
109
116
  /** Shared button group used for both ToggleGroup and SegmentedControl. */
110
- export declare function ToggleGroup<T extends string>({ label, value, onChange, options, type, disabled, className }: ToggleGroupProps<T>): React.JSX.Element;
117
+ export declare function ToggleGroup<T extends string>({ label, value, onChange, options, type, disabled, className, density }: ToggleGroupProps<T>): React.JSX.Element;
111
118
  export declare const SegmentedControl: typeof ToggleGroup;
112
119
  export interface InputOTPProps {
113
120
  label: React.ReactNode;
@@ -1,3 +1,4 @@
1
+ import { type ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  import { type VariantProps } from "class-variance-authority";
3
4
  export declare const buttonVariants: (props?: ({
@@ -6,6 +7,8 @@ export declare const buttonVariants: (props?: ({
6
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
8
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
9
  asChild?: boolean;
10
+ /** Omit to preserve size variants; explicit density controls height. */
11
+ density?: ControlDensity;
9
12
  }
10
13
  /** WealthOS action button. Use a link element with `asChild` for navigation. */
11
14
  export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,3 +1,4 @@
1
+ import { type ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  export interface DateInputProps {
3
4
  id?: string;
@@ -10,6 +11,7 @@ export interface DateInputProps {
10
11
  required?: boolean;
11
12
  invalid?: boolean;
12
13
  compact?: boolean;
14
+ density?: ControlDensity;
13
15
  longDisplay?: boolean;
14
16
  className?: string;
15
17
  "aria-describedby"?: string;
@@ -17,7 +19,7 @@ export interface DateInputProps {
17
19
  "aria-invalid"?: boolean | "true" | "false";
18
20
  }
19
21
  /** US date text entry + local calendar, with ISO strings at the component boundary. */
20
- export declare function DateInput({ id: providedId, value, onChange, ariaLabel, min, max, disabled, required, invalid, compact, longDisplay, className, "aria-describedby": describedBy, "aria-errormessage": errorMessage, "aria-invalid": ariaInvalid, }: DateInputProps): React.JSX.Element;
22
+ export declare function DateInput({ id: providedId, value, onChange, ariaLabel, min, max, disabled, required, invalid, compact, density, longDisplay, className, "aria-describedby": describedBy, "aria-errormessage": errorMessage, "aria-invalid": ariaInvalid, }: DateInputProps): React.JSX.Element;
21
23
  export declare namespace DateInput {
22
24
  var displayName: string;
23
25
  }
@@ -1,3 +1,4 @@
1
+ import type { ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  export interface DateRange {
3
4
  start: string;
@@ -11,11 +12,12 @@ export interface DateRangePickerProps {
11
12
  error?: React.ReactNode;
12
13
  min?: string;
13
14
  max?: string;
15
+ density?: ControlDensity;
14
16
  disabled?: boolean;
15
17
  required?: boolean;
16
18
  className?: string;
17
19
  id?: string;
18
20
  }
19
21
  /** Controlled ISO date range using the package's established keyboard calendar input. */
20
- export declare function DateRangePicker({ label, value, onChange, help, error, min, max, disabled, required, className, id }: DateRangePickerProps): React.JSX.Element;
22
+ export declare function DateRangePicker({ label, value, onChange, help, error, min, max, disabled, required, density, className, id }: DateRangePickerProps): React.JSX.Element;
21
23
  export declare function isDateRangeValid(value: DateRange, min?: string, max?: string): boolean;
@@ -1,9 +1,15 @@
1
+ import { type ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  import * as TabsPrimitive from "@radix-ui/react-tabs";
3
4
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
4
5
  export declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
5
6
  export declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
- export declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ export type TabsTriggerProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> & {
8
+ density?: ControlDensity;
9
+ };
10
+ export declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
11
+ density?: ControlDensity;
12
+ } & React.RefAttributes<HTMLButtonElement>>;
7
13
  export declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
14
  export interface BreadcrumbItem {
9
15
  label: string;
@@ -1,7 +1,9 @@
1
+ import { type ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  export type NumberInputFormat = "int" | "money";
3
4
  export interface NumberInputProps {
4
5
  label: React.ReactNode;
6
+ density?: ControlDensity;
5
7
  value: string;
6
8
  onChange: (value: string) => void;
7
9
  help?: React.ReactNode;
@@ -1,3 +1,4 @@
1
+ import { type ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  export type SelectOption<T extends string> = {
3
4
  value: T;
@@ -13,13 +14,14 @@ export interface SelectMenuProps<T extends string> {
13
14
  ariaLabel?: string;
14
15
  className?: string;
15
16
  compact?: boolean;
17
+ density?: ControlDensity;
16
18
  tone?: string;
17
19
  disabled?: boolean;
18
20
  "aria-describedby"?: string;
19
21
  "aria-invalid"?: boolean | "true" | "false";
20
22
  }
21
23
  /** Select-only combobox matching WealthOS's custom listbox behavior and controlled value contract. */
22
- export declare function SelectMenu<T extends string>({ id, value, onChange, options, placeholder, ariaLabel, className, compact, tone, disabled, "aria-describedby": describedBy, "aria-invalid": invalid, }: SelectMenuProps<T>): React.JSX.Element;
24
+ export declare function SelectMenu<T extends string>({ id, value, onChange, options, placeholder, ariaLabel, className, compact, density, tone, disabled, "aria-describedby": describedBy, "aria-invalid": invalid, }: SelectMenuProps<T>): React.JSX.Element;
23
25
  export declare namespace SelectMenu {
24
26
  var displayName: string;
25
27
  }
@@ -1,3 +1,4 @@
1
+ import type { ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  import { type SelectOption } from "./select-menu";
3
4
  export interface SelectProps<T extends string> {
@@ -9,13 +10,14 @@ export interface SelectProps<T extends string> {
9
10
  error?: React.ReactNode;
10
11
  placeholder?: string;
11
12
  compact?: boolean;
13
+ density?: ControlDensity;
12
14
  disabled?: boolean;
13
15
  className?: string;
14
16
  menuClassName?: string;
15
17
  id?: string;
16
18
  }
17
19
  /** Labeled select-only combobox. Searchable entity/company pickers remain a separate pattern. */
18
- export declare function Select<T extends string>({ label, value, onChange, options, help, error, placeholder, compact, disabled, className, menuClassName, id, }: SelectProps<T>): React.JSX.Element;
20
+ export declare function Select<T extends string>({ label, value, onChange, options, help, error, placeholder, compact, density, disabled, className, menuClassName, id, }: SelectProps<T>): React.JSX.Element;
19
21
  export declare namespace Select {
20
22
  var displayName: string;
21
23
  }
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  export declare const surfaceVariants: (props?: ({
4
4
  variant?: "working" | "quiet" | "raised" | null | undefined;
5
+ radius?: "lg" | "default" | "xl" | null | undefined;
5
6
  padding?: "none" | "sm" | "md" | "lg" | null | undefined;
6
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
8
  export interface SurfaceProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof surfaceVariants> {
@@ -1,6 +1,8 @@
1
+ import { type ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  export interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
4
  /** Adds the WealthOS invalid border without changing validation behavior. */
4
5
  invalid?: boolean;
6
+ density?: ControlDensity;
5
7
  }
6
8
  export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,7 @@
1
+ import { type ControlDensity } from "../lib/control-density";
1
2
  import * as React from "react";
2
3
  export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
4
  invalid?: boolean;
5
+ density?: ControlDensity;
4
6
  }
5
7
  export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -1,8 +1,8 @@
1
1
  /* empty css */
2
- import { t as e } from "./utils-CX-Pz5p6.js";
3
- import { t } from "./button-MVZPcSXf.js";
2
+ import { t as e } from "./button-yvMc7CT-.js";
3
+ import { t } from "./utils-CX-Pz5p6.js";
4
4
  import { S as n, b as r, g as ee, h as te, p as ne, s as re, v as i, x as ie } from "./data-display-BA7t1E4G.js";
5
- import { K as a, X as o, Y as s } from "./overlays-9ArfwHJo.js";
5
+ import { K as a, X as o, Y as s } from "./overlays-BleXRtz6.js";
6
6
  import * as c from "react";
7
7
  import { Fragment as ae, jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  import { columnFilteringFeature as d, columnPinningFeature as f, columnResizingFeature as p, columnSizingFeature as m, columnVisibilityFeature as h, createColumnHelper as g, createCoreRowModel as _, createExpandedRowModel as v, createFilteredRowModel as y, createPaginatedRowModel as b, createSortedRowModel as x, filterFn_includesString as S, globalFilteringFeature as C, rowExpandingFeature as w, rowPaginationFeature as T, rowSelectionFeature as E, rowSortingFeature as D, sortFn_alphanumeric as O, sortFn_text as k, tableFeatures as A, useTable as oe } from "@tanstack/react-table";
@@ -78,7 +78,7 @@ function N({ columns: d, data: f, getRowId: p, density: m = "comfortable", capti
78
78
  manualPagination: le || !b
79
79
  }), J = q.getRowModel().rows, Y = q.getVisibleLeafColumns(), X = v ? q.getAllLeafColumns().filter((e) => e.getCanFilter()) : [], Z = S ? q.getAllLeafColumns().filter((e) => e.getCanHide()) : [], Q = q.state.columnFilters?.length ?? 0, $ = Object.values(q.state.rowSelection ?? {}).filter(Boolean).length, pe = (e) => e.getIsSorted() === "asc" ? "Sorted ascending" : e.getIsSorted() === "desc" ? "Sorted descending" : "Not sorted";
80
80
  return /* @__PURE__ */ u("div", {
81
- className: e("wos-data-table", de),
81
+ className: t("wos-data-table", de),
82
82
  children: [
83
83
  (y || X.length > 0 || Z.length > 0 || K) && /* @__PURE__ */ u("div", {
84
84
  className: "wos-data-table-toolbar",
@@ -104,7 +104,7 @@ function N({ columns: d, data: f, getRowId: p, density: m = "comfortable", capti
104
104
  K,
105
105
  X.length > 0 && /* @__PURE__ */ u(a, { children: [/* @__PURE__ */ l(o, {
106
106
  asChild: !0,
107
- children: /* @__PURE__ */ u(t, {
107
+ children: /* @__PURE__ */ u(e, {
108
108
  variant: "outline",
109
109
  size: "sm",
110
110
  "aria-label": Q > 0 ? `Filters, ${Q} active` : "Filters",
@@ -126,7 +126,7 @@ function N({ columns: d, data: f, getRowId: p, density: m = "comfortable", capti
126
126
  "aria-label": `Filter ${e.id}`,
127
127
  value: e.getFilterValue() ?? "",
128
128
  onChange: (t) => e.setFilterValue(t.target.value)
129
- })] }, e.id)), Q > 0 && /* @__PURE__ */ l(t, {
129
+ })] }, e.id)), Q > 0 && /* @__PURE__ */ l(e, {
130
130
  variant: "ghost",
131
131
  size: "sm",
132
132
  className: "wos-data-table-clear-filters",
@@ -136,7 +136,7 @@ function N({ columns: d, data: f, getRowId: p, density: m = "comfortable", capti
136
136
  })] }),
137
137
  Z.length > 0 && /* @__PURE__ */ u(a, { children: [/* @__PURE__ */ l(o, {
138
138
  asChild: !0,
139
- children: /* @__PURE__ */ l(t, {
139
+ children: /* @__PURE__ */ l(e, {
140
140
  variant: "outline",
141
141
  size: "sm",
142
142
  children: "Columns"
@@ -310,7 +310,7 @@ function N({ columns: d, data: f, getRowId: p, density: m = "comfortable", capti
310
310
  }), /* @__PURE__ */ u("div", {
311
311
  className: "wos-data-table-page-actions",
312
312
  children: [
313
- /* @__PURE__ */ l(t, {
313
+ /* @__PURE__ */ l(e, {
314
314
  size: "sm",
315
315
  variant: "outline",
316
316
  onClick: () => q.previousPage(),
@@ -327,7 +327,7 @@ function N({ columns: d, data: f, getRowId: p, density: m = "comfortable", capti
327
327
  q.getPageCount() > 0 ? ` of ${q.getPageCount()}` : ""
328
328
  ]
329
329
  }),
330
- /* @__PURE__ */ l(t, {
330
+ /* @__PURE__ */ l(e, {
331
331
  size: "sm",
332
332
  variant: "outline",
333
333
  onClick: () => q.nextPage(),
package/dist/financial.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./utils-CX-Pz5p6.js";
2
- import { n as t, t as n } from "./notice-D5u9rkFU.js";
2
+ import { n as t, t as n } from "./notice-jbY9FQu_.js";
3
3
  import { S as r, b as i, g as a, h as o, v as s, x as c } from "./data-display-BA7t1E4G.js";
4
4
  import "react";
5
5
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
@@ -90,7 +90,7 @@ function g({ label: t, value: n, detail: r, state: i, stateLabel: a, className:
90
90
  });
91
91
  }
92
92
  var _ = {
93
- primary: "var(--primary)",
93
+ primary: "var(--chart-1)",
94
94
  "chart-2": "var(--chart-2)",
95
95
  "chart-3": "var(--chart-3)",
96
96
  "chart-4": "var(--chart-4)",
@@ -32,7 +32,7 @@ function o({ label: o, help: s, error: c, htmlFor: l, className: u, labelClassNa
32
32
  className: e(m === "horizontal" ? "wos-field-horizontal max-[639px]:space-y-1.5" : "space-y-1.5", u),
33
33
  children: [/* @__PURE__ */ r(i.Root, {
34
34
  htmlFor: y,
35
- className: e("block text-[length:var(--type-size-label)] font-semibold leading-[1.4] text-secondary-foreground", d),
35
+ className: e("block type-label text-secondary-foreground", d),
36
36
  children: [
37
37
  o,
38
38
  f && /* @__PURE__ */ n("span", {
package/dist/forms.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as e, t } from "./form-D3G5306m.js";
1
+ import { r as e, t } from "./form-Csxly6Es.js";
2
2
  import * as n from "react";
3
3
  import { jsx as r } from "react/jsx-runtime";
4
4
  //#region src/forms.tsx
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import "./styles.css";
2
+ export type { ControlDensity } from "./lib/control-density";
2
3
  export { Button, buttonVariants, type ButtonProps } from "./components/button";
3
4
  export { IconButton, type IconButtonProps } from "./components/icon-button";
4
5
  export { ButtonGroup, type ButtonGroupProps } from "./components/button-group";