@stackone/malachite 0.3.1 → 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 -1
- package/dist/index.js +946 -836
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,6 @@ declare interface BaseFormComponentProps {
|
|
|
48
48
|
hint?: string;
|
|
49
49
|
tooltip?: string;
|
|
50
50
|
required?: boolean;
|
|
51
|
-
key?: string;
|
|
52
51
|
name: FieldPath<FieldValues>;
|
|
53
52
|
defaultValue?: string;
|
|
54
53
|
loading?: boolean;
|
|
@@ -218,6 +217,12 @@ export declare const darkTheme: MalachiteTheme;
|
|
|
218
217
|
|
|
219
218
|
export declare const defaultTheme: MalachiteTheme;
|
|
220
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
|
+
|
|
221
226
|
export declare const Dropdown: default_2.FC<DropdownProps>;
|
|
222
227
|
|
|
223
228
|
export declare interface DropdownItem {
|
|
@@ -394,6 +399,7 @@ declare interface InputProps {
|
|
|
394
399
|
type?: InputType;
|
|
395
400
|
description?: string;
|
|
396
401
|
size?: InputSize;
|
|
402
|
+
variant?: InputVariant;
|
|
397
403
|
required?: boolean;
|
|
398
404
|
error?: boolean;
|
|
399
405
|
loading?: boolean;
|
|
@@ -413,6 +419,8 @@ declare type InputSize = 'small' | 'medium' | 'large';
|
|
|
413
419
|
|
|
414
420
|
declare type InputType = 'text' | 'password' | 'number' | 'email' | 'tel' | 'url';
|
|
415
421
|
|
|
422
|
+
declare type InputVariant = 'default' | 'ghost';
|
|
423
|
+
|
|
416
424
|
declare interface LinkProps {
|
|
417
425
|
href: string;
|
|
418
426
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
@@ -549,6 +557,17 @@ export declare interface MalachiteTheme {
|
|
|
549
557
|
hoverBackground: string;
|
|
550
558
|
hoverForeground: string;
|
|
551
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
|
+
};
|
|
552
571
|
text: {
|
|
553
572
|
primary: string;
|
|
554
573
|
secondary: string;
|
|
@@ -605,10 +624,21 @@ export declare interface PartialMalachiteTheme {
|
|
|
605
624
|
warning?: Partial<MalachiteTheme['colors']['warning']>;
|
|
606
625
|
error?: Partial<MalachiteTheme['colors']['error']>;
|
|
607
626
|
buttonList?: Partial<MalachiteTheme['colors']['buttonList']>;
|
|
627
|
+
pillButton?: Partial<MalachiteTheme['colors']['pillButton']>;
|
|
608
628
|
text?: Partial<MalachiteTheme['colors']['text']>;
|
|
609
629
|
};
|
|
610
630
|
}
|
|
611
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
|
+
|
|
612
642
|
/**
|
|
613
643
|
* Reset theme to default values
|
|
614
644
|
*/
|