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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BreadcrumbItemProps } from '../../../interfaces/atomProps';
3
+ declare const BreadcrumbItem: React.FC<BreadcrumbItemProps>;
4
+ export default BreadcrumbItem;
@@ -13,3 +13,4 @@ export { default as Select } from './Select';
13
13
  export { default as File } from './File';
14
14
  export { default as Checkbox } from './Checkbox';
15
15
  export { default as RadioButton } from './RadioButton';
16
+ export { default as BreadcrumbItem } from './BreadcrumbItem';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BreadcrumbsProps } from '../../../interfaces/moleculeProps';
3
+ declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
4
+ export default Breadcrumbs;
@@ -1,3 +1,4 @@
1
1
  export { default as ButtonGroup } from './ButtonGroup';
2
2
  export { default as ColumnGroup } from './ColumnGroup';
3
3
  export { default as Notification } from './Notification';
4
+ export { default as Breadcrumbs } from './Breadcrumbs';
@@ -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';