@stackone/malachite 0.31.1 → 0.32.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 +27 -0
- package/dist/index.js +2299 -2181
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare type ActionMenuItem = {
|
|
|
24
24
|
disabled?: boolean;
|
|
25
25
|
danger?: boolean;
|
|
26
26
|
tooltip?: string;
|
|
27
|
+
icon?: default_2.ReactNode;
|
|
27
28
|
} | {
|
|
28
29
|
type: 'divider';
|
|
29
30
|
key: string;
|
|
@@ -550,6 +551,12 @@ export declare interface MalachiteTheme {
|
|
|
550
551
|
large: string;
|
|
551
552
|
xlarge: string;
|
|
552
553
|
};
|
|
554
|
+
iconSizes: {
|
|
555
|
+
xsmall: string;
|
|
556
|
+
small: string;
|
|
557
|
+
medium: string;
|
|
558
|
+
large: string;
|
|
559
|
+
};
|
|
553
560
|
radius: {
|
|
554
561
|
sm: string;
|
|
555
562
|
md: string;
|
|
@@ -680,6 +687,11 @@ export declare interface MalachiteTheme {
|
|
|
680
687
|
invertedPressedBackground: string;
|
|
681
688
|
invertedPressedForeground: string;
|
|
682
689
|
};
|
|
690
|
+
toggle: {
|
|
691
|
+
track: string;
|
|
692
|
+
trackChecked: string;
|
|
693
|
+
knob: string;
|
|
694
|
+
};
|
|
683
695
|
tag: {
|
|
684
696
|
primary: {
|
|
685
697
|
background: string;
|
|
@@ -864,6 +876,7 @@ declare interface PageTitleProps {
|
|
|
864
876
|
|
|
865
877
|
export declare interface PartialMalachiteTheme {
|
|
866
878
|
fontSizes?: Partial<MalachiteTheme['fontSizes']>;
|
|
879
|
+
iconSizes?: Partial<MalachiteTheme['iconSizes']>;
|
|
867
880
|
radius?: Partial<MalachiteTheme['radius']>;
|
|
868
881
|
shadows?: Partial<MalachiteTheme['shadows']>;
|
|
869
882
|
colors?: {
|
|
@@ -1267,6 +1280,20 @@ declare interface TextProps {
|
|
|
1267
1280
|
style?: default_2.CSSProperties;
|
|
1268
1281
|
}
|
|
1269
1282
|
|
|
1283
|
+
export declare const Toggle: default_2.FC<ToggleProps>;
|
|
1284
|
+
|
|
1285
|
+
declare interface ToggleProps {
|
|
1286
|
+
checked: boolean;
|
|
1287
|
+
onChange: (checked: boolean) => void;
|
|
1288
|
+
disabled?: boolean;
|
|
1289
|
+
size?: ToggleSize;
|
|
1290
|
+
ariaLabel?: string;
|
|
1291
|
+
className?: string;
|
|
1292
|
+
id?: string;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
declare type ToggleSize = 'small' | 'medium';
|
|
1296
|
+
|
|
1270
1297
|
/**
|
|
1271
1298
|
* Toggle between light and dark themes
|
|
1272
1299
|
*/
|