ui-beyable 1.0.44 → 1.1.0-beta.1

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/README.md CHANGED
@@ -55,7 +55,12 @@ Pre publish
55
55
  npm run prepublishOnly
56
56
  ```
57
57
 
58
- To publish the module to NPM :
58
+ To connect to NPM:
59
+ ```bash
60
+ npm login
61
+ ```
62
+
63
+ To publish the module to NPM:
59
64
  ```bash
60
65
  npm publish
61
66
  ```
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { spaceType } from '../Tokens/Tokens';
3
+ interface BoxType {
4
+ children?: React.ReactNode;
5
+ className?: string;
6
+ style?: React.CSSProperties;
7
+ padding?: spaceType;
8
+ paddingBlock?: spaceType;
9
+ paddingBlockStart?: spaceType;
10
+ paddingBlockEnd?: spaceType;
11
+ paddingInline?: spaceType;
12
+ paddingInlineStart?: spaceType;
13
+ paddingInlineEnd?: spaceType;
14
+ }
15
+ declare function Box({ children, className, style, padding, paddingBlock, paddingBlockStart, paddingBlockEnd, paddingInline, paddingInlineStart, paddingInlineEnd, }: BoxType): JSX.Element;
16
+ export { Box, BoxType };
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ interface BreadcrumbType {
3
+ items: {
4
+ index: number;
5
+ step: number;
6
+ title: string;
7
+ className?: string;
8
+ }[];
9
+ onClick?: (step: number) => void;
10
+ activeStep?: number;
11
+ direction?: 'horizontal' | 'vertical';
12
+ }
13
+ declare function Breadcrumb({ items, onClick, activeStep, direction }: BreadcrumbType): JSX.Element;
14
+ export { Breadcrumb };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ContainerType {
3
+ children: React.ReactNode;
4
+ width?: 'full' | 'x' | 'l' | 'm' | 'ms' | 's' | 'xs' | 'xxs';
5
+ }
6
+ declare function Container({ children, width, }: ContainerType): JSX.Element;
7
+ export { Container };
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface EditorHeaderType {
3
+ left?: React.ReactNode;
4
+ leftTitle?: string | React.ReactNode;
5
+ center?: React.ReactNode;
6
+ right?: React.ReactNode;
7
+ hasBorder?: boolean;
8
+ hasBackButton?: boolean;
9
+ backTitle?: string;
10
+ backOnClick?: (ev: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
11
+ }
12
+ declare function EditorHeader({ left, leftTitle, center, right, hasBorder, hasBackButton, backTitle, backOnClick }: EditorHeaderType): JSX.Element;
13
+ export { EditorHeader };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { spaceType } from '../Tokens/Tokens';
3
+ interface HrType {
4
+ className?: string;
5
+ margin?: spaceType;
6
+ style?: React.CSSProperties;
7
+ }
8
+ declare function Hr({ margin, className, style }: HrType): JSX.Element;
9
+ export { Hr };
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { spaceType } from '../Tokens/Tokens';
3
+ type alignType = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
4
+ type justifyType = 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ type flexType = 'none' | 'auto' | 'shrink' | 'grow';
6
+ type growType = 'hug' | 'fill';
7
+ interface InlineType {
8
+ children?: React.ReactNode;
9
+ className?: string;
10
+ gap?: spaceType;
11
+ shouldWrap?: boolean;
12
+ align?: alignType;
13
+ justify?: justifyType;
14
+ grow?: growType;
15
+ style?: React.CSSProperties;
16
+ }
17
+ interface InlineColumnType {
18
+ children?: React.ReactNode;
19
+ className?: string;
20
+ align?: alignType | '';
21
+ flex?: flexType;
22
+ style?: React.CSSProperties;
23
+ }
24
+ declare function Inline({ children, className, gap, shouldWrap, align, justify, grow, style }: InlineType): JSX.Element;
25
+ declare function InlineColumn({ children, className, align, flex, style }: InlineColumnType): JSX.Element;
26
+ export { Inline, InlineColumn };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { spaceType } from '../Tokens/Tokens';
3
+ type alignInlineType = 'stretch' | 'start' | 'center' | 'end';
4
+ type flexType = 'none' | 'auto' | 'shrink' | 'grow';
5
+ interface StackType {
6
+ children?: React.ReactNode;
7
+ className?: string;
8
+ gap?: spaceType;
9
+ shouldWrap?: boolean;
10
+ alignInline?: alignInlineType;
11
+ }
12
+ interface StackRowType {
13
+ children?: React.ReactNode;
14
+ className?: string;
15
+ flex?: flexType;
16
+ }
17
+ declare function Stack({ children, className, gap, alignInline }: StackType): JSX.Element;
18
+ declare function StackRow({ children, className, flex }: StackRowType): JSX.Element;
19
+ export { Stack, StackRow };
@@ -0,0 +1,4 @@
1
+ type spaceType = 'space.0' | 'space.025' | 'space.050' | 'space.075' | 'space.100' | 'space.150' | 'space.200' | 'space.250' | 'space.300' | 'space.400' | 'space.500' | 'space.600' | 'space.800' | 'space.1000' | 'space.negative.100' | 'space.negative.150' | 'space.negative.200';
2
+ type tokenType = spaceType;
3
+ declare const token: (token: tokenType) => string;
4
+ export { spaceType, token };
@@ -1,13 +1,19 @@
1
1
  import { AppRoot, AppHeader, AppLinkWrapper, AppLogo } from './components/App/App';
2
2
  import { Article, ArticleFoldable } from './components/Article/Article';
3
+ import { Box } from './components/Box/Box';
4
+ import { Breadcrumb } from './components/Breadcrumb/Breadcrumb';
3
5
  import { Btn, BtnGroup } from './components/Btn/Btn';
4
6
  import { Checkbox, Radio, Switch, CheckboxList } from './components/Checkbox/Checkbox';
5
7
  import Collapse from './components/Collapse/Collapse';
6
8
  import { Confirm } from './components/Confirm/Confirm';
9
+ import { Container } from './components/Container/Container';
7
10
  import { Dropdown, DropdownSection } from './components/Dropdown/Dropdown';
11
+ import { EditorHeader } from './components/EditorHeader/EditorHeader';
8
12
  import { EmptyState } from './components/EmptyState/EmptyState';
9
13
  import { Fieldset } from './components/Fieldset/Fieldset';
14
+ import { Hr } from './components/Hr/Hr';
10
15
  import { IconBtn } from './components/IconBtn/IconBtn';
16
+ import { Inline } from './components/Inline/Inline';
11
17
  import { KpiList, KpiItem } from './components/Kpi/Kpi';
12
18
  import { List, ListItem } from './components/List/List';
13
19
  import { Listbox, ListboxItem, ListboxSep } from './components/Listbox/Listbox';
@@ -17,11 +23,13 @@ import { Modal, ModalHeader, ModalBody, ModalFooter } from './components/Modal/M
17
23
  import { Panel, PanelClose, PanelHeader, PanelBody, PanelSection } from './components/Panel/Panel';
18
24
  import { Picto } from './components/Picto/Picto';
19
25
  import { Portal } from './components/Portal/Portal';
26
+ import { Stack } from './components/Stack/Stack';
20
27
  import { Section } from './components/Section/Section';
21
28
  import { Select } from './components/Select/Select';
22
29
  import { Spinner } from './components/Spinner/Spinner';
23
30
  import { TabBar, TabItem } from './components/Tabs/Tabs';
24
31
  import { Textfield, TextfieldIcon, SearchBar } from './components/Textfield/Textfield';
25
32
  declare const Theme: any;
26
- export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, ArticleFoldable, Btn, BtnGroup, Checkbox, CheckboxList, Collapse, // Not OK, use ArticleFoldable instead
27
- Confirm, Dropdown, DropdownSection, EmptyState, Fieldset, IconBtn, KpiList, KpiItem, List, ListItem, Listbox, ListboxItem, ListboxSep, Mask, Message, Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelClose, PanelHeader, PanelBody, PanelSection, Picto, Portal, Radio, SearchBar, Section, Select, Spinner, Switch, TabBar, TabItem, Textfield, TextfieldIcon };
33
+ 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, };