@stackone/malachite 0.3.2 → 0.4.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 +31 -0
- package/dist/index.js +893 -790
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -217,6 +217,12 @@ export declare const darkTheme: MalachiteTheme;
|
|
|
217
217
|
|
|
218
218
|
export declare const defaultTheme: MalachiteTheme;
|
|
219
219
|
|
|
220
|
+
/**
|
|
221
|
+
* A 1px horizontal divider component that uses the card border style from the theme.
|
|
222
|
+
* The divider spans edge to edge of its container.
|
|
223
|
+
*/
|
|
224
|
+
export declare const Divider: default_2.FC;
|
|
225
|
+
|
|
220
226
|
export declare const Dropdown: default_2.FC<DropdownProps>;
|
|
221
227
|
|
|
222
228
|
export declare interface DropdownItem {
|
|
@@ -393,6 +399,7 @@ declare interface InputProps {
|
|
|
393
399
|
type?: InputType;
|
|
394
400
|
description?: string;
|
|
395
401
|
size?: InputSize;
|
|
402
|
+
variant?: InputVariant;
|
|
396
403
|
required?: boolean;
|
|
397
404
|
error?: boolean;
|
|
398
405
|
loading?: boolean;
|
|
@@ -412,6 +419,8 @@ declare type InputSize = 'small' | 'medium' | 'large';
|
|
|
412
419
|
|
|
413
420
|
declare type InputType = 'text' | 'password' | 'number' | 'email' | 'tel' | 'url';
|
|
414
421
|
|
|
422
|
+
declare type InputVariant = 'default' | 'ghost';
|
|
423
|
+
|
|
415
424
|
declare interface LinkProps {
|
|
416
425
|
href: string;
|
|
417
426
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
@@ -548,6 +557,17 @@ export declare interface MalachiteTheme {
|
|
|
548
557
|
hoverBackground: string;
|
|
549
558
|
hoverForeground: string;
|
|
550
559
|
};
|
|
560
|
+
pillButton: {
|
|
561
|
+
background: string;
|
|
562
|
+
foreground: string;
|
|
563
|
+
hoverBackground: string;
|
|
564
|
+
hoverForeground: string;
|
|
565
|
+
pressedBackground: string;
|
|
566
|
+
pressedForeground: string;
|
|
567
|
+
pressedOpacity: string;
|
|
568
|
+
activeBackground: string;
|
|
569
|
+
activeForeground: string;
|
|
570
|
+
};
|
|
551
571
|
text: {
|
|
552
572
|
primary: string;
|
|
553
573
|
secondary: string;
|
|
@@ -604,10 +624,21 @@ export declare interface PartialMalachiteTheme {
|
|
|
604
624
|
warning?: Partial<MalachiteTheme['colors']['warning']>;
|
|
605
625
|
error?: Partial<MalachiteTheme['colors']['error']>;
|
|
606
626
|
buttonList?: Partial<MalachiteTheme['colors']['buttonList']>;
|
|
627
|
+
pillButton?: Partial<MalachiteTheme['colors']['pillButton']>;
|
|
607
628
|
text?: Partial<MalachiteTheme['colors']['text']>;
|
|
608
629
|
};
|
|
609
630
|
}
|
|
610
631
|
|
|
632
|
+
export declare const PillButton: default_2.FC<PillButtonProps>;
|
|
633
|
+
|
|
634
|
+
declare interface PillButtonProps {
|
|
635
|
+
label: string;
|
|
636
|
+
className?: string;
|
|
637
|
+
selected?: boolean;
|
|
638
|
+
disabled?: boolean;
|
|
639
|
+
onClick?: () => void;
|
|
640
|
+
}
|
|
641
|
+
|
|
611
642
|
/**
|
|
612
643
|
* Reset theme to default values
|
|
613
644
|
*/
|