@stackone/malachite 0.31.2 → 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 CHANGED
@@ -687,6 +687,11 @@ export declare interface MalachiteTheme {
687
687
  invertedPressedBackground: string;
688
688
  invertedPressedForeground: string;
689
689
  };
690
+ toggle: {
691
+ track: string;
692
+ trackChecked: string;
693
+ knob: string;
694
+ };
690
695
  tag: {
691
696
  primary: {
692
697
  background: string;
@@ -1275,6 +1280,20 @@ declare interface TextProps {
1275
1280
  style?: default_2.CSSProperties;
1276
1281
  }
1277
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
+
1278
1297
  /**
1279
1298
  * Toggle between light and dark themes
1280
1299
  */