@stackone/malachite 0.11.0 → 0.13.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 +28 -6
- package/dist/index.js +512 -461
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -243,8 +243,15 @@ export declare const defaultTheme: MalachiteTheme;
|
|
|
243
243
|
/**
|
|
244
244
|
* A 1px horizontal divider component that uses the card border style from the theme.
|
|
245
245
|
* The divider spans edge to edge of its container.
|
|
246
|
+
* Supports configurable margin and padding using predefined spacing sizes.
|
|
246
247
|
*/
|
|
247
|
-
export declare const Divider: default_2.FC
|
|
248
|
+
export declare const Divider: default_2.FC<DividerProps>;
|
|
249
|
+
|
|
250
|
+
declare interface DividerProps {
|
|
251
|
+
margin?: SpacingSize;
|
|
252
|
+
padding?: PaddingSize;
|
|
253
|
+
className?: string;
|
|
254
|
+
}
|
|
248
255
|
|
|
249
256
|
export declare const Dropdown: default_2.FC<DropdownProps>;
|
|
250
257
|
|
|
@@ -295,6 +302,7 @@ export declare enum FlexDirection {
|
|
|
295
302
|
}
|
|
296
303
|
|
|
297
304
|
export declare enum FlexGapSize {
|
|
305
|
+
XSmall = "xsmall",
|
|
298
306
|
Small = "small",
|
|
299
307
|
Medium = "medium",
|
|
300
308
|
Large = "large"
|
|
@@ -668,16 +676,23 @@ declare interface MarkdownProps {
|
|
|
668
676
|
export declare const Padded: default_2.FC<PaddedProps>;
|
|
669
677
|
|
|
670
678
|
declare interface PaddedProps {
|
|
671
|
-
vertical:
|
|
672
|
-
horizontal:
|
|
679
|
+
vertical: PaddingSize_2;
|
|
680
|
+
horizontal: PaddingSize_2;
|
|
673
681
|
children: default_2.ReactNode;
|
|
674
682
|
fullHeight?: boolean;
|
|
675
683
|
className?: string;
|
|
676
684
|
}
|
|
677
685
|
|
|
678
|
-
declare
|
|
686
|
+
declare enum PaddingSize {
|
|
687
|
+
XSmall = "xsmall",
|
|
688
|
+
Small = "small",
|
|
689
|
+
Medium = "medium",
|
|
690
|
+
Large = "large"
|
|
691
|
+
}
|
|
679
692
|
|
|
680
|
-
declare type PaddingSize_2 = '
|
|
693
|
+
declare type PaddingSize_2 = 'small' | 'medium' | 'large' | 'none';
|
|
694
|
+
|
|
695
|
+
declare type PaddingSize_3 = 'default' | 'compact';
|
|
681
696
|
|
|
682
697
|
declare interface PageTitleProps {
|
|
683
698
|
children: default_2.ReactNode;
|
|
@@ -769,6 +784,13 @@ declare interface SpacerProps {
|
|
|
769
784
|
className?: string;
|
|
770
785
|
}
|
|
771
786
|
|
|
787
|
+
declare enum SpacingSize {
|
|
788
|
+
XSmall = "xsmall",
|
|
789
|
+
Small = "small",
|
|
790
|
+
Medium = "medium",
|
|
791
|
+
Large = "large"
|
|
792
|
+
}
|
|
793
|
+
|
|
772
794
|
export declare const Spinner: default_2.FC<SpinnerProps>;
|
|
773
795
|
|
|
774
796
|
declare interface SpinnerProps {
|
|
@@ -888,7 +910,7 @@ export declare interface TagProps {
|
|
|
888
910
|
shadow?: boolean;
|
|
889
911
|
textTransform?: 'none' | 'uppercase';
|
|
890
912
|
width?: WidthSize;
|
|
891
|
-
paddingSize?:
|
|
913
|
+
paddingSize?: PaddingSize_3;
|
|
892
914
|
icon?: default_2.ReactNode;
|
|
893
915
|
iconPosition?: 'left' | 'right';
|
|
894
916
|
pointerType?: 'pointer' | 'default';
|