@stackone/malachite 0.59.1 → 0.61.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
@@ -740,6 +740,32 @@ declare interface LinkProps_2 {
740
740
  fontSize?: 'sm' | 'base';
741
741
  }
742
742
 
743
+ export declare const LoadingBar: default_2.FC<LoadingBarProps>;
744
+
745
+ export declare interface LoadingBarProps {
746
+ /**
747
+ * Whether the bar is animating. When false the line is hidden but its height
748
+ * is preserved, so toggling it doesn't shift the layout underneath.
749
+ */
750
+ active?: boolean;
751
+ /**
752
+ * Semantic colour role. Colours come from theme tokens by design — there is no
753
+ * free-form colour prop, so a consumer can't paint the bar off-palette. To
754
+ * restyle a variant, override its tokens via `applyTheme` / `applyCustomTheme`.
755
+ */
756
+ variant?: LoadingBarVariant;
757
+ /** Line thickness. Fixed steps rather than a free px value, to keep bars consistent. */
758
+ size?: LoadingBarSize;
759
+ 'aria-label'?: string;
760
+ 'aria-labelledby'?: string;
761
+ className?: string;
762
+ style?: default_2.CSSProperties;
763
+ }
764
+
765
+ export declare type LoadingBarSize = 'small' | 'medium' | 'large';
766
+
767
+ export declare type LoadingBarVariant = 'default' | 'warning' | 'error';
768
+
743
769
  /**
744
770
  * MalachiteContext provides a Shadow DOM context with theme setup for Malachite components.
745
771
  * Use this to wrap groups of Malachite components instead of each component managing its own Shadow DOM.
@@ -1838,7 +1864,13 @@ declare interface ToggleProps {
1838
1864
  size?: ToggleSize;
1839
1865
  /** Visible text shown before the switch (e.g. a filter label). */
1840
1866
  label?: string;
1841
- /** Wrap the label + switch in a bordered, rounded card-style pill (filter-bar look). */
1867
+ /**
1868
+ * Chrome for a toolbar filter — pick the family it sits beside. `pill` is the
1869
+ * filter-bar look that matches `Search`/`MultiSelect`; `button` renders the whole
1870
+ * control as an outline `Button`. Setting this implies `bordered`.
1871
+ */
1872
+ variant?: ToggleVariant;
1873
+ /** Shorthand for `variant="pill"`. */
1842
1874
  bordered?: boolean;
1843
1875
  'aria-label'?: string;
1844
1876
  'aria-labelledby'?: string;
@@ -1846,13 +1878,19 @@ declare interface ToggleProps {
1846
1878
  id?: string;
1847
1879
  }
1848
1880
 
1849
- declare type ToggleSize = 'small' | 'medium';
1881
+ export declare type ToggleSize = 'small' | 'medium';
1850
1882
 
1851
1883
  /**
1852
1884
  * Toggle between light and dark themes
1853
1885
  */
1854
1886
  export declare function toggleTheme(): 'light' | 'dark';
1855
1887
 
1888
+ /**
1889
+ * Which family of toolbar controls the chrome should match. `pill` matches the
1890
+ * filter-bar inputs (`Search`, `MultiSelect`); `button` matches the buttons.
1891
+ */
1892
+ export declare type ToggleVariant = 'pill' | 'button';
1893
+
1856
1894
  /**
1857
1895
  * A flat, opaque horizontal bar — e.g. a toolbar/sub-header holding a Search or
1858
1896
  * filters. Owns its chrome (opaque `card-background` so scrolling content doesn't
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { A as s, b as t, c as o, d as i, B as r, e as l, f as n, C as p, g as T, h as d, i as m, j as c, k as S, l as h, m as u, D as g, n as C, o as y, p as F, F as w, q as x, r as f, s as k, t as v, u as P, v as b, w as B, x as L, I as A, K as D, L as z, M as R, y as M, N as I, O as N, P as V, z as j, E as q, G as E, H as G, J as H, R as J, S as K, Q as O, T as W, U as Q, V as U, W as X, X as Y, Y as Z, Z as $, $ as _, a0 as aa, a1 as ea, a2 as sa, a3 as ta, a4 as oa, a5 as ia, a6 as ra, a7 as la, a8 as na, a9 as pa, aa as Ta, ab as da, ac as ma, ad as ca, ae as Sa, af as ha, ag as ua, ah as ga, ai as Ca, aj as ya, ak as Fa, al as wa, am as xa, an as fa, ao as ka, ap as va, aq as Pa, ar as ba, as as Ba } from "./index-DU-6w0rG.js";
1
+ import { A as s, b as t, c as o, d as i, B as r, e as n, f as l, C as p, g as T, h as d, i as m, j as c, k as S, l as h, m as u, D as g, n as C, o as y, p as F, F as w, q as x, r as f, s as k, t as v, u as B, v as L, w as P, x as b, I as A, K as D, L as z, y as R, M, z as I, N, O as V, P as j, E as q, G as E, H as G, J as H, Q as J, R as K, S as O, T as W, U as Q, V as U, W as X, X as Y, Y as Z, Z as $, $ as _, a0 as aa, a1 as ea, a2 as sa, a3 as ta, a4 as oa, a5 as ia, a6 as ra, a7 as na, a8 as la, a9 as pa, aa as Ta, ab as da, ac as ma, ad as ca, ae as Sa, af as ha, ag as ua, ah as ga, ai as Ca, aj as ya, ak as Fa, al as wa, am as xa, an as fa, ao as ka, ap as va, aq as Ba, ar as La, as as Pa, at as ba } from "./index-CAu3SySY.js";
2
2
  export {
3
3
  s as Accordion,
4
4
  t as ActionMenu,
5
5
  o as Alert,
6
6
  i as Avatar,
7
7
  r as BaseFormComponent,
8
- l as Button,
9
- n as ButtonList,
8
+ n as Button,
9
+ l as ButtonList,
10
10
  p as Card,
11
11
  T as Checkbox,
12
12
  d as ClampText,
@@ -24,62 +24,63 @@ export {
24
24
  f as FlexDirection,
25
25
  k as FlexGapSize,
26
26
  v as FlexJustify,
27
- P as FooterLinks,
28
- b as FooterNav,
29
- B as Form,
30
- L as FormItem,
27
+ B as FooterLinks,
28
+ L as FooterNav,
29
+ P as Form,
30
+ b as FormItem,
31
31
  A as Input,
32
32
  D as KeyValueList,
33
33
  z as Link,
34
- R as MalachiteContext,
35
- M as MultiSelect,
36
- I as NumberTag,
37
- N as OverflowRow,
38
- V as Padded,
39
- j as PaddingSize,
40
- q as PillButton,
41
- E as PreviewTree,
42
- G as PreviewTreeRow,
43
- H as Progress,
44
- J as Radio,
45
- K as Search,
46
- O as ShadowEscape,
47
- W as SidePanel,
48
- Q as SidePanelNavFooter,
49
- U as Skeleton,
50
- X as Spacer,
51
- Y as SpacingSize,
52
- Z as Spinner,
53
- $ as SplitScreenLayout,
54
- _ as StatBadge,
55
- aa as Statistic,
56
- ea as StatusBadge,
57
- sa as Stepper,
58
- ta as Surface,
59
- oa as SurfaceRow,
60
- ia as Swatch,
61
- ra as Table,
34
+ R as LoadingBar,
35
+ M as MalachiteContext,
36
+ I as MultiSelect,
37
+ N as NumberTag,
38
+ V as OverflowRow,
39
+ j as Padded,
40
+ q as PaddingSize,
41
+ E as PillButton,
42
+ G as PreviewTree,
43
+ H as PreviewTreeRow,
44
+ J as Progress,
45
+ K as Radio,
46
+ O as Search,
47
+ W as ShadowEscape,
48
+ Q as SidePanel,
49
+ U as SidePanelNavFooter,
50
+ X as Skeleton,
51
+ Y as Spacer,
52
+ Z as SpacingSize,
53
+ $ as Spinner,
54
+ _ as SplitScreenLayout,
55
+ aa as StatBadge,
56
+ ea as Statistic,
57
+ sa as StatusBadge,
58
+ ta as Stepper,
59
+ oa as Surface,
60
+ ia as SurfaceRow,
61
+ ra as Swatch,
62
+ na as Table,
62
63
  la as Tabs,
63
- na as Tag,
64
- pa as TextArea,
65
- Ta as ThemeScope,
66
- da as Toggle,
67
- ma as Toolbar,
68
- ca as Tooltip,
69
- Sa as TruncatedTooltip,
70
- ha as Typography,
71
- ua as WizardLayout,
72
- ga as applyCustomTheme,
73
- Ca as applyDarkTheme,
74
- ya as applyLightTheme,
75
- Fa as applyTheme,
76
- wa as applyThemeVars,
77
- xa as darkTheme,
78
- fa as defaultTheme,
79
- ka as getCurrentTheme,
80
- va as getCurrentThemeMode,
81
- Pa as initializeTheme,
82
- ba as resetTheme,
83
- Ba as toggleTheme
64
+ pa as Tag,
65
+ Ta as TextArea,
66
+ da as ThemeScope,
67
+ ma as Toggle,
68
+ ca as Toolbar,
69
+ Sa as Tooltip,
70
+ ha as TruncatedTooltip,
71
+ ua as Typography,
72
+ ga as WizardLayout,
73
+ Ca as applyCustomTheme,
74
+ ya as applyDarkTheme,
75
+ Fa as applyLightTheme,
76
+ wa as applyTheme,
77
+ xa as applyThemeVars,
78
+ fa as darkTheme,
79
+ ka as defaultTheme,
80
+ va as getCurrentTheme,
81
+ Ba as getCurrentThemeMode,
82
+ La as initializeTheme,
83
+ Pa as resetTheme,
84
+ ba as toggleTheme
84
85
  };
85
86
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/malachite",
3
- "version": "0.59.1",
3
+ "version": "0.61.0",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -24,6 +24,7 @@
24
24
  "build": "vite build",
25
25
  "lint": "biome lint",
26
26
  "lint:fix": "biome lint --fix",
27
+ "typecheck": "tsc -p tsconfig.app.json --noEmit && tsc -p tsconfig.demo.json --noEmit",
27
28
  "docs:components": "node scripts/generate-components-doc.mjs",
28
29
  "docs:check": "node scripts/generate-components-doc.mjs --check",
29
30
  "publish-release": "npm publish --access=public"