@stackone/malachite 2.11.0 → 2.13.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 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: {
@@ -1441,6 +1447,12 @@ export declare interface MalachiteTheme {
1441
1447
  border: string;
1442
1448
  shadow: string;
1443
1449
  };
1450
+ info: {
1451
+ background: string;
1452
+ foreground: string;
1453
+ border: string;
1454
+ shadow: string;
1455
+ };
1444
1456
  };
1445
1457
  numberTag: {
1446
1458
  background: string;
@@ -1508,6 +1520,7 @@ export declare interface MalachiteTheme {
1508
1520
  warning: string;
1509
1521
  warningMuted: string;
1510
1522
  error: string;
1523
+ info: string;
1511
1524
  linkForeground: string;
1512
1525
  linkForegroundHover: string;
1513
1526
  rightSideText: {
@@ -1870,17 +1883,53 @@ declare interface PreviewTreeRowProps {
1870
1883
 
1871
1884
  export declare const Progress: default_2.FC<ProgressProps>;
1872
1885
 
1873
- export declare interface ProgressProps {
1874
- value: number;
1875
- color?: string;
1876
- trackColor?: string;
1886
+ declare interface ProgressCommonProps {
1877
1887
  height?: number;
1878
1888
  'aria-label'?: string;
1879
1889
  'aria-labelledby'?: string;
1890
+ /** Spoken instead of the range, which reads as 100% once segments fill the track. */
1891
+ 'aria-valuetext'?: string;
1880
1892
  className?: string;
1881
1893
  style?: default_2.CSSProperties;
1882
1894
  }
1883
1895
 
1896
+ /** One fill or a list of segments, never both — `color`/`trackColor` mean nothing to segments. */
1897
+ export declare type ProgressProps = ProgressValueProps | ProgressSegmentsProps;
1898
+
1899
+ export declare interface ProgressSegment {
1900
+ /** Portion of `max` this segment covers, in the same units. */
1901
+ value: number;
1902
+ variant?: ProgressSegmentVariant;
1903
+ fill?: ProgressSegmentFill;
1904
+ }
1905
+
1906
+ /** `hatched` reads as claimed-but-unpaid-for — usage past an allowance, not more of it. */
1907
+ export declare type ProgressSegmentFill = 'solid' | 'hatched';
1908
+
1909
+ declare interface ProgressSegmentsProps extends ProgressCommonProps {
1910
+ segments: ProgressSegment[];
1911
+ /** Scale the segments measure against. Defaults to their sum, and a larger sum wins. */
1912
+ max?: number;
1913
+ value?: never;
1914
+ color?: never;
1915
+ trackColor?: never;
1916
+ }
1917
+
1918
+ /**
1919
+ * Semantic colour role for a segment. Colours come from theme tokens by design — unlike
1920
+ * `color`/`trackColor`, which predate that rule, there is no free-form colour here. To
1921
+ * restyle a role, override its token via `applyTheme` / `applyCustomTheme`.
1922
+ */
1923
+ export declare type ProgressSegmentVariant = 'default' | 'success' | 'warning' | 'error' | 'info';
1924
+
1925
+ declare interface ProgressValueProps extends ProgressCommonProps {
1926
+ value: number;
1927
+ color?: string;
1928
+ trackColor?: string;
1929
+ segments?: never;
1930
+ max?: never;
1931
+ }
1932
+
1884
1933
  export declare const Radio: default_2.FC<RadioProps>;
1885
1934
 
1886
1935
  export declare interface RadioProps {
@@ -2631,7 +2680,7 @@ export declare interface TagProps {
2631
2680
  className?: string;
2632
2681
  }
2633
2682
 
2634
- export declare type TagType = 'primary' | 'secondary' | 'default' | 'error' | 'warning' | 'success' | 'emphasis';
2683
+ export declare type TagType = 'primary' | 'secondary' | 'default' | 'error' | 'warning' | 'success' | 'emphasis' | 'info';
2635
2684
 
2636
2685
  declare interface TerminalTextProps {
2637
2686
  bold?: boolean;
@@ -2686,7 +2735,7 @@ declare interface TextAreaProps {
2686
2735
 
2687
2736
  declare type TextAreaSize = 'small' | 'medium' | 'large';
2688
2737
 
2689
- export declare type TextColor = 'primary' | 'secondary' | 'dimmed' | 'placeholder' | 'emphasis' | 'muted' | 'destructive' | 'success' | 'highlight' | 'warning' | 'error' | 'link' | 'inherit';
2738
+ export declare type TextColor = 'primary' | 'secondary' | 'dimmed' | 'placeholder' | 'emphasis' | 'muted' | 'destructive' | 'success' | 'highlight' | 'warning' | 'error' | 'info' | 'link' | 'inherit';
2690
2739
 
2691
2740
  export declare interface TextProps {
2692
2741
  color?: TextColor;
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-CUPTnbPi.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-DEtNVums.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.11.0",
3
+ "version": "2.13.0",
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",