@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/COMPONENTS.md +2 -1
- package/dist/{CodeBlockHighlighter-CmjV96RB.js → CodeBlockHighlighter-jdfArBeY.js} +2 -2
- package/dist/{CodeBlockHighlighter-CmjV96RB.js.map → CodeBlockHighlighter-jdfArBeY.js.map} +1 -1
- package/dist/{index-DU-6w0rG.js → index-CAu3SySY.js} +1732 -1589
- package/dist/index-CAu3SySY.js.map +1 -0
- package/dist/index.d.ts +40 -2
- package/dist/index.js +57 -56
- package/package.json +2 -1
- package/dist/index-DU-6w0rG.js.map +0 -1
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
|
-
/**
|
|
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
|
|
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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
35
|
-
M as
|
|
36
|
-
I as
|
|
37
|
-
N as
|
|
38
|
-
V as
|
|
39
|
-
j as
|
|
40
|
-
q as
|
|
41
|
-
E as
|
|
42
|
-
G as
|
|
43
|
-
H as
|
|
44
|
-
J as
|
|
45
|
-
K as
|
|
46
|
-
O as
|
|
47
|
-
W as
|
|
48
|
-
Q as
|
|
49
|
-
U as
|
|
50
|
-
X as
|
|
51
|
-
Y as
|
|
52
|
-
Z as
|
|
53
|
-
$ as
|
|
54
|
-
_ as
|
|
55
|
-
aa as
|
|
56
|
-
ea as
|
|
57
|
-
sa as
|
|
58
|
-
ta as
|
|
59
|
-
oa as
|
|
60
|
-
ia as
|
|
61
|
-
ra as
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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.
|
|
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"
|