@stackone/malachite 2.12.0 → 2.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -697,7 +697,7 @@ export declare enum DividerVariant {
697
697
  Emphasis = "emphasis"
698
698
  }
699
699
 
700
- export declare const Dropdown: ({ items, onItemSelected, defaultValue, value, disabled, error, label, hint, tooltip, name, required, requiredIndicator, loading, menuLoading, formControl, description, helperText, placeholder, search, showSubtitleInTrigger, subtitleLayout, clearable, size, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: DropdownProps) => JSX_2.Element;
700
+ export declare const Dropdown: ({ items, onItemSelected, defaultValue, value, disabled, error, tone, label, hint, tooltip, name, required, requiredIndicator, loading, menuLoading, formControl, description, helperText, placeholder, search, showSubtitleInTrigger, subtitleLayout, clearable, size, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: DropdownProps) => JSX_2.Element;
701
701
 
702
702
  declare interface DropdownBaseProps {
703
703
  label?: string;
@@ -714,6 +714,8 @@ declare interface DropdownBaseProps {
714
714
  value?: string;
715
715
  disabled?: boolean;
716
716
  error?: boolean;
717
+ /** `pending` marks a value the user still has to supply. Outranks open and selection. */
718
+ tone?: DropdownTone;
717
719
  className?: string;
718
720
  formControl?: Control<FieldValues, unknown>;
719
721
  description?: string;
@@ -754,6 +756,8 @@ export declare type DropdownProps = DropdownBaseProps & DropdownTriggerModeProps
754
756
  */
755
757
  export declare type DropdownSize = 'small' | 'medium' | 'large';
756
758
 
759
+ export declare type DropdownTone = 'default' | 'pending';
760
+
757
761
  /**
758
762
  * The search trigger is a single-line text input with nowhere for a second line, so
759
763
  * `showSubtitleInTrigger` is rejected alongside `search` rather than silently ignored.
@@ -1391,11 +1395,13 @@ export declare interface MalachiteTheme {
1391
1395
  borderActive: string;
1392
1396
  borderFilter: string;
1393
1397
  borderError: string;
1398
+ borderPending: string;
1394
1399
  shadow: string;
1395
1400
  shadowHover: string;
1396
1401
  shadowActive: string;
1397
1402
  shadowFilter: string;
1398
1403
  shadowError: string;
1404
+ shadowPending: string;
1399
1405
  disabledBackground: string;
1400
1406
  };
1401
1407
  tag: {
@@ -2465,9 +2471,14 @@ export declare interface SurfaceRowProps {
2465
2471
  onClick?: (event: default_2.MouseEvent) => void;
2466
2472
  /** Renders the clickable row as an anchor instead of a button. */
2467
2473
  href?: string;
2468
- /** Paints the row with `Table`'s selected treatment, and announces it — `aria-checked`
2469
- * under a `radio`/`checkbox` role, `aria-current` otherwise. */
2474
+ /** Announces the row as selected — `aria-checked` under a `radio`/`checkbox` role,
2475
+ * `aria-current` otherwise — and paints `Table`'s selected treatment unless `selection`
2476
+ * says not to. */
2470
2477
  selected?: boolean;
2478
+ /** How a `selected` row shows it. `highlight` paints the treatment; `announce` leaves the
2479
+ * visual to a control inside the row and only sets the ARIA state. Defaults to `announce`
2480
+ * under `role="checkbox"` and `highlight` otherwise. */
2481
+ selection?: 'highlight' | 'announce';
2471
2482
  /** Content pinned right, outside the row button, so it may hold its own control. */
2472
2483
  trailing?: default_2.ReactNode;
2473
2484
  /** `muted` tints a row whose subject is inactive — not disabled: it stays interactive. */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, c as o, d as t, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as m, l as S, m as T, n as u, o as g, p as h, q as C, r as F, s as B, t as y, D as w, u as f, v as x, w as A, F as L, x as b, y as P, z as k, E as v, G as D, H as M, I as z, J as I, K as R, L as N, M as G, N as H, O as V, P as E, Q as J, R as K, S as j, T as q, U as O, V as W, W as Q, X as U, Y as X, Z as Y, $ as Z, a0 as $, a1 as _, a2 as aa, a3 as ea, a4 as sa, a5 as oa, a6 as ta, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as ma, af as Sa, ag as Ta, ah as ua, ai as ga, aj as ha, ak as Ca, al as Fa, am as Ba, an as ya, ao as wa, ap as fa, aq as xa, ar as Aa, as as La, at as ba, au as Pa, av as ka, aw as va, ax as Da, ay as Ma, az as za, aA as Ia, aB as Ra, aC as Na, aD as Ga, aE as Ha, aF as Va, aG as Ea, aH as Ja, aI as Ka, aJ as ja, aK as qa, aL as Oa, aM as Wa, aN as Qa } from "./index-DFYatjfE.js";
1
+ import { A as s, c as o, d as t, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as m, l as S, m as T, n as u, o as g, p as h, q as C, r as F, s as B, t as y, D as w, u as f, v as x, w as A, F as L, x as b, y as P, z as k, E as v, G as D, H as M, I as z, J as I, K as R, L as N, M as G, N as H, O as V, P as E, Q as J, R as K, S as j, T as q, U as O, V as W, W as Q, X as U, Y as X, Z as Y, $ as Z, a0 as $, a1 as _, a2 as aa, a3 as ea, a4 as sa, a5 as oa, a6 as ta, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as ma, af as Sa, ag as Ta, ah as ua, ai as ga, aj as ha, ak as Ca, al as Fa, am as Ba, an as ya, ao as wa, ap as fa, aq as xa, ar as Aa, as as La, at as ba, au as Pa, av as ka, aw as va, ax as Da, ay as Ma, az as za, aA as Ia, aB as Ra, aC as Na, aD as Ga, aE as Ha, aF as Va, aG as Ea, aH as Ja, aI as Ka, aJ as ja, aK as qa, aL as Oa, aM as Wa, aN as Qa } from "./index-BscmsnkZ.js";
2
2
  export {
3
3
  s as Accordion,
4
4
  o as ActionBar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/malachite",
3
- "version": "2.12.0",
3
+ "version": "2.13.1",
4
4
  "description": "StackOne's themeable React component library — Shadow DOM isolated, scoped Tailwind, theme-token driven.",
5
5
  "license": "MIT",
6
6
  "author": "StackOne",