@stackone/malachite 0.31.2 → 0.33.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 +23 -0
- package/dist/index.js +2762 -2678
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -138,6 +138,7 @@ declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonE
|
|
|
138
138
|
flexGrow?: boolean;
|
|
139
139
|
fill?: boolean;
|
|
140
140
|
tooltip?: string;
|
|
141
|
+
tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
|
|
141
142
|
iconOnly?: boolean;
|
|
142
143
|
children?: default_2.ReactNode;
|
|
143
144
|
onClick?: default_2.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -687,6 +688,11 @@ export declare interface MalachiteTheme {
|
|
|
687
688
|
invertedPressedBackground: string;
|
|
688
689
|
invertedPressedForeground: string;
|
|
689
690
|
};
|
|
691
|
+
toggle: {
|
|
692
|
+
track: string;
|
|
693
|
+
trackChecked: string;
|
|
694
|
+
knob: string;
|
|
695
|
+
};
|
|
690
696
|
tag: {
|
|
691
697
|
primary: {
|
|
692
698
|
background: string;
|
|
@@ -889,6 +895,7 @@ export declare interface PartialMalachiteTheme {
|
|
|
889
895
|
error?: Partial<MalachiteTheme['colors']['error']>;
|
|
890
896
|
buttonList?: Partial<MalachiteTheme['colors']['buttonList']>;
|
|
891
897
|
pillButton?: Partial<MalachiteTheme['colors']['pillButton']>;
|
|
898
|
+
toggle?: Partial<MalachiteTheme['colors']['toggle']>;
|
|
892
899
|
tag?: Partial<MalachiteTheme['colors']['tag']>;
|
|
893
900
|
table?: Partial<MalachiteTheme['colors']['table']>;
|
|
894
901
|
text?: Partial<MalachiteTheme['colors']['text']>;
|
|
@@ -1275,6 +1282,21 @@ declare interface TextProps {
|
|
|
1275
1282
|
style?: default_2.CSSProperties;
|
|
1276
1283
|
}
|
|
1277
1284
|
|
|
1285
|
+
export declare const Toggle: default_2.FC<ToggleProps>;
|
|
1286
|
+
|
|
1287
|
+
declare interface ToggleProps {
|
|
1288
|
+
checked: boolean;
|
|
1289
|
+
onChange: (checked: boolean) => void;
|
|
1290
|
+
disabled?: boolean;
|
|
1291
|
+
size?: ToggleSize;
|
|
1292
|
+
'aria-label'?: string;
|
|
1293
|
+
'aria-labelledby'?: string;
|
|
1294
|
+
className?: string;
|
|
1295
|
+
id?: string;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
declare type ToggleSize = 'small' | 'medium';
|
|
1299
|
+
|
|
1278
1300
|
/**
|
|
1279
1301
|
* Toggle between light and dark themes
|
|
1280
1302
|
*/
|
|
@@ -1289,6 +1311,7 @@ declare interface TooltipProps {
|
|
|
1289
1311
|
wrapChildren?: boolean;
|
|
1290
1312
|
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
1291
1313
|
isShrinkable?: boolean;
|
|
1314
|
+
fill?: boolean;
|
|
1292
1315
|
}
|
|
1293
1316
|
|
|
1294
1317
|
/**
|