ui-beyable 1.1.0-beta.1 → 1.1.0-beta.11

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.
@@ -1,13 +1,14 @@
1
1
  /// <reference types="react" />
2
+ type stepType = number | string;
2
3
  interface BreadcrumbType {
3
4
  items: {
4
5
  index: number;
5
- step: number;
6
+ step: stepType;
6
7
  title: string;
7
8
  className?: string;
8
9
  }[];
9
- onClick?: (step: number) => void;
10
- activeStep?: number;
10
+ onClick?: (step: stepType) => void;
11
+ activeStep?: stepType;
11
12
  direction?: 'horizontal' | 'vertical';
12
13
  }
13
14
  declare function Breadcrumb({ items, onClick, activeStep, direction }: BreadcrumbType): JSX.Element;
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
+ type sizeType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
3
+ type horizontalSizeType = 'xs' | 's' | 'm' | 'l';
4
+ type fontSizeType = 's' | 'm' | 'l' | 'xl' | 'xxl';
2
5
  interface IBtn {
3
6
  children?: React.ReactNode;
4
7
  type?: "button" | "submit" | "reset" | undefined;
@@ -13,17 +16,21 @@ interface IBtn {
13
16
  style?: 'fill' | 'outline' | 'ghost' | 'ghost_outline' | 'reverse' | 'link';
14
17
  rounded?: boolean;
15
18
  disabled?: boolean;
19
+ readonly?: boolean;
16
20
  className?: string;
17
21
  strong?: boolean;
18
22
  light?: boolean;
19
23
  isActive?: boolean;
20
24
  isLoading?: boolean;
21
- size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
22
- horizontalSize?: 'xs' | 's' | 'm' | 'l';
23
- fontSize?: 'l' | 'm';
25
+ size?: sizeType;
26
+ horizontalSize?: horizontalSizeType;
27
+ fontSize?: fontSizeType;
24
28
  fullWidth?: boolean;
25
29
  fullHeight?: boolean;
30
+ hasMinWith?: boolean;
26
31
  icon?: string;
32
+ customIcon?: React.ReactElement;
33
+ lucideIcon?: React.ReactElement;
27
34
  iconPosition?: string;
28
35
  arrow?: boolean;
29
36
  tooltip?: string;
@@ -34,4 +41,4 @@ interface IBtnGroup {
34
41
  children?: React.ReactNode;
35
42
  gap?: 'm' | 'l' | 'xl' | 'none';
36
43
  }
37
- export { IBtn, IBtnGroup };
44
+ export { IBtn, IBtnGroup, sizeType as BtnSizeType, horizontalSizeType as BtnHorizontalSizeType, fontSizeType as BtnFontSizeType };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { BtnSizeType, BtnHorizontalSizeType } from '../Btn/types';
3
+ type valueType = string | boolean | number;
4
+ interface BtnGroupProps {
5
+ value: valueType;
6
+ optionsList: Array<{
7
+ value: valueType;
8
+ label?: string;
9
+ icon?: string;
10
+ }>;
11
+ onChange: (value: valueType) => void;
12
+ appearance?: 'outline' | 'ghost';
13
+ className?: string;
14
+ size?: BtnSizeType;
15
+ btnHorizontalSize?: BtnHorizontalSizeType;
16
+ btnIsLight?: boolean;
17
+ }
18
+ declare const BtnGroup: React.FC<BtnGroupProps>;
19
+ export { BtnGroup, valueType as BtnGroupValueType };
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { BtnSizeType, BtnHorizontalSizeType } from '../Btn/types';
3
+ type valueType = string | boolean | number;
4
+ type optionType = {
5
+ value: valueType;
6
+ label?: string;
7
+ tooltip?: string;
8
+ tooltipHTML?: React.ReactNode;
9
+ icon?: string;
10
+ customIcon?: React.ReactElement;
11
+ lucideIcon?: React.ReactElement;
12
+ disabled?: boolean;
13
+ };
14
+ interface BtnSwitchProps {
15
+ value: valueType;
16
+ optionsList: Array<optionType>;
17
+ onChange: (value: valueType) => void;
18
+ appearance?: 'outline' | 'ghost';
19
+ className?: string;
20
+ size?: BtnSizeType;
21
+ btnHorizontalSize?: BtnHorizontalSizeType;
22
+ btnIsLight?: boolean;
23
+ }
24
+ declare const BtnSwitch: React.FC<BtnSwitchProps>;
25
+ export { BtnSwitch, valueType as BtnSwitchValueType };
@@ -1,4 +1,24 @@
1
- /// <reference types="react" />
2
- import { IPicto } from './types';
3
- declare function Picto({ icon, color, size }: IPicto): JSX.Element;
1
+ import React from 'react';
2
+ type colorType = 'dark_blue' | 'blue' | 'green' | 'apple_green' | 'yellow' | 'orange' | 'red' | 'pink' | 'purple' | 'turquoise';
3
+ type brightnessType = 'high' | 'low' | 'mix';
4
+ type sizeType = 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs';
5
+ type shapeType = 'round' | 'square';
6
+ interface PictoType {
7
+ icon?: string;
8
+ color?: colorType;
9
+ brightness?: brightnessType;
10
+ size?: sizeType;
11
+ shape?: shapeType;
12
+ hasBorder?: boolean;
13
+ customIcon?: React.ReactElement;
14
+ lucideIcon?: React.ReactElement;
15
+ tooltip?: string;
16
+ tooltipHTML?: React.ReactNode;
17
+ href?: string;
18
+ target?: React.HTMLAttributeAnchorTarget;
19
+ rel?: string;
20
+ className?: string;
21
+ onClick?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
22
+ }
23
+ declare function Picto({ icon, customIcon, lucideIcon, color, brightness, size, shape, hasBorder, tooltip, tooltipHTML, href, target, rel, className, onClick }: PictoType): JSX.Element;
4
24
  export { Picto };
@@ -3,6 +3,7 @@ import { Article, ArticleFoldable } from './components/Article/Article';
3
3
  import { Box } from './components/Box/Box';
4
4
  import { Breadcrumb } from './components/Breadcrumb/Breadcrumb';
5
5
  import { Btn, BtnGroup } from './components/Btn/Btn';
6
+ import { BtnSwitch } from './components/BtnSwitch/BtnSwitch';
6
7
  import { Checkbox, Radio, Switch, CheckboxList } from './components/Checkbox/Checkbox';
7
8
  import Collapse from './components/Collapse/Collapse';
8
9
  import { Confirm } from './components/Confirm/Confirm';
@@ -13,7 +14,7 @@ import { EmptyState } from './components/EmptyState/EmptyState';
13
14
  import { Fieldset } from './components/Fieldset/Fieldset';
14
15
  import { Hr } from './components/Hr/Hr';
15
16
  import { IconBtn } from './components/IconBtn/IconBtn';
16
- import { Inline } from './components/Inline/Inline';
17
+ import { Inline, InlineColumn } from './components/Inline/Inline';
17
18
  import { KpiList, KpiItem } from './components/Kpi/Kpi';
18
19
  import { List, ListItem } from './components/List/List';
19
20
  import { Listbox, ListboxItem, ListboxSep } from './components/Listbox/Listbox';
@@ -23,7 +24,7 @@ import { Modal, ModalHeader, ModalBody, ModalFooter } from './components/Modal/M
23
24
  import { Panel, PanelClose, PanelHeader, PanelBody, PanelSection } from './components/Panel/Panel';
24
25
  import { Picto } from './components/Picto/Picto';
25
26
  import { Portal } from './components/Portal/Portal';
26
- import { Stack } from './components/Stack/Stack';
27
+ import { Stack, StackRow } from './components/Stack/Stack';
27
28
  import { Section } from './components/Section/Section';
28
29
  import { Select } from './components/Select/Select';
29
30
  import { Spinner } from './components/Spinner/Spinner';
@@ -31,5 +32,5 @@ import { TabBar, TabItem } from './components/Tabs/Tabs';
31
32
  import { Textfield, TextfieldIcon, SearchBar } from './components/Textfield/Textfield';
32
33
  declare const Theme: any;
33
34
  declare const Utils: any;
34
- export { Theme, Utils, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, ArticleFoldable, Box, Breadcrumb, Btn, BtnGroup, Checkbox, CheckboxList, Collapse, // Not OK, use ArticleFoldable instead
35
- Confirm, Container, Dropdown, DropdownSection, EditorHeader, EmptyState, Fieldset, Hr, IconBtn, Inline, KpiList, KpiItem, List, ListItem, Listbox, ListboxItem, ListboxSep, Mask, Message, Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelClose, PanelHeader, PanelBody, PanelSection, Picto, Portal, Stack, Radio, SearchBar, Section, Select, Spinner, Switch, TabBar, TabItem, Textfield, TextfieldIcon, };
35
+ export { Theme, Utils, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, ArticleFoldable, Box, Breadcrumb, Btn, BtnGroup, BtnSwitch, Checkbox, CheckboxList, Collapse, // Not OK, use ArticleFoldable instead
36
+ Confirm, Container, Dropdown, DropdownSection, EditorHeader, EmptyState, Fieldset, Hr, IconBtn, Inline, InlineColumn, KpiList, KpiItem, List, ListItem, Listbox, ListboxItem, ListboxSep, Mask, Message, Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelClose, PanelHeader, PanelBody, PanelSection, Picto, Portal, Stack, StackRow, Radio, SearchBar, Section, Select, Spinner, Switch, TabBar, TabItem, Textfield, TextfieldIcon, };