reactive-bulma 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +20 -3
- package/dist/cjs/index.js +82 -38
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/BreadcrumbItem/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +1 -0
- package/dist/cjs/types/components/molecules/Breadcrumbs/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/index.d.ts +1 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +8 -0
- package/dist/cjs/types/interfaces/moleculeProps.d.ts +13 -3
- package/dist/cjs/types/types/styleTypes.d.ts +2 -0
- package/dist/esm/index.js +81 -39
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/BreadcrumbItem/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +1 -0
- package/dist/esm/types/components/molecules/Breadcrumbs/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/index.d.ts +1 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +8 -0
- package/dist/esm/types/interfaces/moleculeProps.d.ts +13 -3
- package/dist/esm/types/types/styleTypes.d.ts +2 -0
- package/dist/index.d.ts +25 -1
- package/package.json +28 -26
@@ -229,3 +229,11 @@ export interface RadioButtonProps extends ComposedElementProps {
|
|
229
229
|
/** `Function` Click function, alone does not nothing, but can be reused for other components */
|
230
230
|
onChange?: () => void;
|
231
231
|
}
|
232
|
+
export interface BreadcrumbItemProps extends ComposedElementProps {
|
233
|
+
/** `Attribute` `Required` Indicates item text that will be shown */
|
234
|
+
text: string;
|
235
|
+
/** `Styling` Marks the item as the one where user is located (based on breadcrumb hierarchy) */
|
236
|
+
isActiveItem?: boolean;
|
237
|
+
/** `Function` Click function, alone does not nothing, but can be reused for other components */
|
238
|
+
onClick?: () => void;
|
239
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { ElementProps } from './commonProps';
|
3
|
-
import { ButtonProps, ColumnProps, DeleteProps } from './atomProps';
|
4
|
-
import { basicColorType, columnGapType } from '../types/styleTypes';
|
2
|
+
import { ComposedElementProps, ElementProps } from './commonProps';
|
3
|
+
import { BreadcrumbItemProps, ButtonProps, ColumnProps, DeleteProps } from './atomProps';
|
4
|
+
import { basicColorType, basicSizeType, breadcrumbAlignType, breadcrumbSeparatorType, columnGapType } from '../types/styleTypes';
|
5
5
|
export interface ButtonGroupProps extends ElementProps {
|
6
6
|
/** `Atribute` `Required` Array of `Button` objects that will be shown */
|
7
7
|
buttonList: ButtonProps[];
|
@@ -34,3 +34,13 @@ export interface NotificationProps extends ElementProps {
|
|
34
34
|
/** `Styling` Will adjust the selected color with a ligther style */
|
35
35
|
isLightColor?: boolean;
|
36
36
|
}
|
37
|
+
export interface BreadcrumbsProps extends ComposedElementProps {
|
38
|
+
/** `Atribute` `Required` Array of `BreadcrumbItems` objects that will be shown */
|
39
|
+
items: BreadcrumbItemProps[];
|
40
|
+
/** `Styling` Will adjust element position on screen */
|
41
|
+
alignment?: breadcrumbAlignType | null;
|
42
|
+
/** `Styling` Will adjust element position on screen */
|
43
|
+
separator?: breadcrumbSeparatorType | null;
|
44
|
+
/** `Styling` Set button's size on bulma's size tokens */
|
45
|
+
size?: Exclude<basicSizeType, 'is-normal'>;
|
46
|
+
}
|
@@ -7,3 +7,5 @@ export type fixedImageSizeType = 'is-16x16' | 'is-24x24' | 'is-32x32' | 'is-48x4
|
|
7
7
|
export type basicSizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
|
8
8
|
export type iconColorModeType = 'light' | 'dark';
|
9
9
|
export type columnGapType = 'is-0' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8';
|
10
|
+
export type breadcrumbAlignType = 'is-centered' | 'is-right';
|
11
|
+
export type breadcrumbSeparatorType = 'has-arrow-separator' | 'has-bullet-separator' | 'has-dot-separator' | 'has-succeeds-separator';
|