onekijs-ui 0.19.21 → 0.19.22

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.
Files changed (44) hide show
  1. package/dist/components/alert/components/AlertComponent.d.ts +4 -0
  2. package/dist/components/alert/index.d.ts +2 -0
  3. package/dist/components/alert/style.d.ts +4 -0
  4. package/dist/components/alert/typings.d.ts +11 -0
  5. package/dist/components/card/typings.d.ts +1 -0
  6. package/dist/components/icon/CrossIcon.d.ts +2 -1
  7. package/dist/components/icon/typings.d.ts +3 -1
  8. package/dist/components/wizard/typings.d.ts +1 -0
  9. package/dist/index.d.ts +4 -0
  10. package/dist/index.js +237 -112
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.module.js +235 -113
  13. package/dist/index.module.js.map +1 -1
  14. package/package.json +3 -3
  15. package/src/components/alert/components/AlertComponent.tsx +56 -0
  16. package/src/components/alert/index.tsx +9 -0
  17. package/src/components/alert/style.ts +57 -0
  18. package/src/components/alert/typings.ts +12 -0
  19. package/src/components/card/FormCard.tsx +8 -2
  20. package/src/components/card/typings.ts +1 -0
  21. package/src/components/icon/CloseAllIcon.tsx +4 -1
  22. package/src/components/icon/CloseIcon.tsx +4 -1
  23. package/src/components/icon/CrossIcon.tsx +4 -1
  24. package/src/components/icon/DebugIcon.tsx +4 -1
  25. package/src/components/icon/ErrorIcon.tsx +4 -1
  26. package/src/components/icon/FileIcon.tsx +4 -1
  27. package/src/components/icon/FilterIcon.tsx +4 -1
  28. package/src/components/icon/FolderIcon.tsx +4 -1
  29. package/src/components/icon/HelpIcon.tsx +4 -1
  30. package/src/components/icon/HideIcon.tsx +4 -1
  31. package/src/components/icon/InfoIcon.tsx +7 -3
  32. package/src/components/icon/LoadingIcon.tsx +5 -0
  33. package/src/components/icon/MenuIcon.tsx +4 -1
  34. package/src/components/icon/RefreshIcon.tsx +4 -1
  35. package/src/components/icon/RemoveIcon.tsx +4 -1
  36. package/src/components/icon/SearchIcon.tsx +4 -1
  37. package/src/components/icon/ShowIcon.tsx +4 -1
  38. package/src/components/icon/SuccessIcon.tsx +4 -1
  39. package/src/components/icon/TogglerIcon.tsx +5 -1
  40. package/src/components/icon/WarningIcon.tsx +4 -1
  41. package/src/components/icon/typings.ts +3 -1
  42. package/src/components/wizard/components/Step.tsx +3 -0
  43. package/src/components/wizard/typings.ts +1 -0
  44. package/src/index.ts +5 -0
@@ -0,0 +1,4 @@
1
+ import { FCC } from 'onekijs-framework';
2
+ import { AlertProps } from '../typings';
3
+ declare const AlertComponent: FCC<AlertProps>;
4
+ export default AlertComponent;
@@ -0,0 +1,2 @@
1
+ declare const Alert: import("styled-components").StyledComponent<import("onekijs-framework").FCC<import("./typings").AlertProps>, import("styled-components").DefaultTheme, {}, never>;
2
+ export default Alert;
@@ -0,0 +1,4 @@
1
+ import { ComponentStyle } from '../../styles/typings';
2
+ import { AlertProps } from './typings';
3
+ declare const alertStyle: ComponentStyle<AlertProps>;
4
+ export default alertStyle;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { SpacingPropertyTheme, StylableProps } from '../../styles/typings';
3
+ import { IconProps } from '../icon/typings';
4
+ export type AlertProps = StylableProps & {
5
+ kind?: 'success' | 'info' | 'warning' | 'error' | 'debug';
6
+ icon?: boolean;
7
+ IconComponent?: React.FC<IconProps>;
8
+ marginBottom?: SpacingPropertyTheme;
9
+ marginTop?: SpacingPropertyTheme;
10
+ size?: 'small' | 'medium' | 'large';
11
+ };
@@ -21,4 +21,5 @@ export type CardTitleProps = {
21
21
  };
22
22
  export type FormCardProps = CardProps & FormDecoratorOptions & {
23
23
  name: string;
24
+ help?: ReactNode;
24
25
  };
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const CrossIcon: import("styled-components").StyledComponent<React.FC<React.InputHTMLAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
2
+ import { IconProps } from './typings';
3
+ declare const CrossIcon: import("styled-components").StyledComponent<React.FC<IconProps>, import("styled-components").DefaultTheme, {}, never>;
3
4
  export default CrossIcon;
@@ -1,8 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { Property } from 'csstype';
3
- import { ColorPropertyTheme } from '../../styles/typings';
3
+ import { ColorPropertyTheme, SpacingPropertyTheme, TLength } from '../../styles/typings';
4
4
  export type IconProps = React.InputHTMLAttributes<HTMLDivElement> & {
5
5
  color?: ColorPropertyTheme | Property.Color;
6
+ marginRight?: SpacingPropertyTheme | Property.MarginRight<TLength>;
7
+ marginLeft?: SpacingPropertyTheme | Property.MarginLeft<TLength>;
6
8
  };
7
9
  export type TogglerIconProps = IconProps & {
8
10
  open?: boolean;
@@ -10,6 +10,7 @@ export type ControlledWizardProps = WizardProps & {
10
10
  export type StepProps = TabProps & {
11
11
  optional?: boolean;
12
12
  showTitle?: boolean;
13
+ help?: ReactNode;
13
14
  onTouch?: () => void;
14
15
  };
15
16
  export type FormStepProps = StepProps & {
package/dist/index.d.ts CHANGED
@@ -158,6 +158,10 @@ export { default as useTableController } from './components/table/hooks/useTable
158
158
  export { default as useTableService } from './components/table/hooks/useTableService';
159
159
  export { default as useTextColumn } from './components/table/hooks/useTextColumn';
160
160
  export { default as useTextareaColumn } from './components/table/hooks/useTextareaColumn';
161
+ export { default as AlertComponent } from './components/alert/components/AlertComponent';
162
+ export { default as Alert } from './components/alert';
163
+ export { default as alertStyle } from './components/alert/style';
164
+ export { AlertProps } from './components/alert/typings';
161
165
  export { default as FormCardDisplayer } from './components/card/FormCardDisplayer';
162
166
  export { filterListStyle, tableStyle } from './components/table/style';
163
167
  export { ArrayTableProps, Cell, CheckboxColumn, CheckboxColumnOptions, ControllerTableProps, EnumColumnOptions, FormCellDisplayerProps, FormTableContext, FormTableItemDisplayerProps, FormTableProps, TableValueDisplayerProps, InputColumn, InputColumnOptions, LinkColumnOptions, SelectCell, SelectColumn, SelectColumnOptions, TableBodyCellProps, TableBodyProps, TableBodyRowProps, TableCellDisplayerProps, TableColumn, TableColumnComputedWidth, TableColumnOptions, TableColumnSpec, TableColumnWidth, TableColumnsState, TableConfig, TableController, TableExpandedProps, TableFilterOperator, TableFilterOperatorProps, TableFooterCellProps, TableFooterProps, TableHeaderCellProps, TableHeaderProps, TableItem, TableItemAdaptee, TableItemAdapter, TableItems, TableNotFoundProps, TableProps, TableRowHandler, TableSortProps, TableState, TextareaColumn, TextareaColumnOptions, UseTableController, UseTableOptions, TableCellSerializer, TableSerializerFormat } from './components/table/typings';
package/dist/index.js CHANGED
@@ -765,10 +765,12 @@ const iconCircleKeyFrame = styled.keyframes `
765
765
  transform: rotate(360deg);
766
766
  }
767
767
  `;
768
- const iconStyle = ({ width: cssWidth = '16px', height: cssHeight = '16px', color: cssColor = 'primary', }) => {
768
+ const iconStyle = ({ width: cssWidth = '16px', height: cssHeight = '16px', color: cssColor = 'primary', marginLeft: ml = '0', marginRight: mr = '0', }) => {
769
769
  return styled.css `
770
770
  height: ${cssHeight};
771
771
  width: ${cssWidth};
772
+ ${marginLeft(ml)}
773
+ ${marginRight(mr)}
772
774
  display: inline-flex;
773
775
  align-items: center;
774
776
 
@@ -820,9 +822,11 @@ const IconComponent$9 = ({ className, onClick, open, loading, model = 'arrow', c
820
822
  }
821
823
  };
822
824
  const TogglerIcon = styled(IconComponent$9) `
823
- ${({ width = '24px', height = '24px', color: cssColor = 'inherit', visible = true }) => styled.css `
825
+ ${({ width = '24px', height = '24px', color: cssColor = 'inherit', visible = true, marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
824
826
  width: ${width};
825
827
  height: ${height};
828
+ ${marginLeft(ml)}
829
+ ${marginRight(mr)}
826
830
  ${display('inline-flex')};
827
831
  ${alignItems('center')};
828
832
  ${color(cssColor)}
@@ -1700,7 +1704,193 @@ const FormCardDisplayer = styled(FormCardDisplayerComponent) `
1700
1704
  ${formCardDisplayerStyle}
1701
1705
  `;
1702
1706
 
1703
- const FormCard = ({ name, ...cardProps }) => {
1707
+ const InfoIconComponent = (props) => {
1708
+ return (React.createElement("div", { ...props },
1709
+ React.createElement("svg", { className: "o-icon-info-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg" },
1710
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.568 1.031A6.8 6.8 0 0 1 12.76 3.05a7.06 7.06 0 0 1 .46 9.39 6.85 6.85 0 0 1-8.58 1.74 7 7 0 0 1-3.12-3.5 7.12 7.12 0 0 1-.23-4.71 7 7 0 0 1 2.77-3.79 6.8 6.8 0 0 1 4.508-1.149zM9.04 13.88a5.89 5.89 0 0 0 3.41-2.07 6.07 6.07 0 0 0-.4-8.06 5.82 5.82 0 0 0-7.43-.74 6.06 6.06 0 0 0 .5 10.29 5.81 5.81 0 0 0 3.92.58zM7.375 6h1.25V5h-1.25v1zm1.25 1v4h-1.25V7h1.25z" }))));
1711
+ };
1712
+ var InfoIcon = styled(InfoIconComponent) `
1713
+ ${({ width = '16px', height = '16px', color: cssColor = 'info', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
1714
+ width: ${width};
1715
+ height: ${height};
1716
+ ${marginLeft(ml)}
1717
+ ${marginRight(mr)}
1718
+ ${display('flex')};
1719
+ ${alignItems('center')};
1720
+ ${color(cssColor)}
1721
+ .o-icon-info-svg {
1722
+ display: inline-block;
1723
+ ${fill('currentColor')}
1724
+ }
1725
+ `}
1726
+ `;
1727
+
1728
+ const DebugIconComponent = (props) => {
1729
+ return (React.createElement("div", { ...props },
1730
+ React.createElement("svg", { className: "o-icon-debug-svg", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
1731
+ React.createElement("path", { d: "M3.463 12.86l-.005-.07.005.07zm7.264.69l-3.034-3.049 1.014-1.014 3.209 3.225 3.163-3.163 1.014 1.014-3.034 3.034 3.034 3.05-1.014 1.014-3.209-3.225L8.707 17.6l-1.014-1.014 3.034-3.034z" }),
1732
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.933 5.003V6h1.345l2.843-2.842 1.014 1.014-2.692 2.691.033.085a13.75 13.75 0 0 1 .885 4.912c0 .335-.011.667-.034.995l-.005.075h3.54v1.434h-3.72l-.01.058c-.303 1.653-.891 3.16-1.692 4.429l-.06.094 3.423 3.44-1.017 1.012-3.274-3.29-.099.11c-1.479 1.654-3.395 2.646-5.483 2.646-2.12 0-4.063-1.023-5.552-2.723l-.098-.113-3.209 3.208-1.014-1.014 3.366-3.365-.059-.095c-.772-1.25-1.34-2.725-1.636-4.34l-.01-.057H0V12.93h3.538l-.005-.075a14.23 14.23 0 0 1-.034-.995c0-1.743.31-3.39.863-4.854l.032-.084-2.762-2.776L2.65 3.135 5.5 6h1.427v-.997a5.003 5.003 0 0 1 10.006 0zm-8.572 0V6H15.5v-.997a3.569 3.569 0 0 0-7.138 0zm9.8 2.522l-.034-.09H5.733l-.034.09a12.328 12.328 0 0 0-.766 4.335c0 2.76.862 5.201 2.184 6.92 1.32 1.716 3.036 2.649 4.813 2.649 1.777 0 3.492-.933 4.813-2.65 1.322-1.718 2.184-4.16 2.184-6.919 0-1.574-.28-3.044-.766-4.335z" }))));
1733
+ };
1734
+ var DebugIcon = styled(DebugIconComponent) `
1735
+ ${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
1736
+ width: ${width};
1737
+ height: ${height};
1738
+ ${marginLeft(ml)}
1739
+ ${marginRight(mr)}
1740
+ ${display('flex')};
1741
+ ${alignItems('center')};
1742
+ ${color(cssColor)}
1743
+ .o-icon-debug-svg {
1744
+ display: inline-block;
1745
+ fill: currentColor;
1746
+ }
1747
+ `}
1748
+ `;
1749
+
1750
+ const ErrorIconComponent = (props) => {
1751
+ return (React.createElement("div", { ...props },
1752
+ React.createElement("svg", { className: "o-icon-error-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
1753
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6zM7.9 7.5L10.3 5l.7.7-2.4 2.5 2.4 2.5-.7.7-2.4-2.5-2.4 2.5-.7-.7 2.4-2.5-2.4-2.5.7-.7 2.4 2.5z" }))));
1754
+ };
1755
+ var ErrorIcon = styled(ErrorIconComponent) `
1756
+ ${({ width = '16px', height = '16px', color: cssColor = 'danger', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
1757
+ width: ${width};
1758
+ height: ${height};
1759
+ ${marginLeft(ml)}
1760
+ ${marginRight(mr)}
1761
+ ${display('flex')};
1762
+ ${alignItems('center')};
1763
+ ${color(cssColor)}
1764
+ .o-icon-error-svg {
1765
+ display: inline-block;
1766
+ fill: currentColor;
1767
+ }
1768
+ `}
1769
+ `;
1770
+
1771
+ const WarningIconComponent = (props) => {
1772
+ return (React.createElement("div", { ...props },
1773
+ React.createElement("svg", { className: "o-icon-warning-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
1774
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.56 1h.88l6.54 12.26-.44.74H1.44L1 13.26 7.56 1zM8 2.28L2.28 13H13.7L8 2.28zM8.625 12v-1h-1.25v1h1.25zm-1.25-2V6h1.25v4h-1.25z" }))));
1775
+ };
1776
+ var WarningIcon = styled(WarningIconComponent) `
1777
+ ${({ width = '16px', height = '16px', color: cssColor = 'warning', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
1778
+ width: ${width};
1779
+ height: ${height};
1780
+ ${display('flex')};
1781
+ ${alignItems('center')};
1782
+ ${color(cssColor)}
1783
+ ${marginLeft(ml)}
1784
+ ${marginRight(mr)}
1785
+ .o-icon-warning-svg {
1786
+ display: inline-block;
1787
+ fill: currentColor;
1788
+ }
1789
+ `}
1790
+ `;
1791
+
1792
+ const SuccessIconComponent = (props) => {
1793
+ return (React.createElement("div", { ...props },
1794
+ React.createElement("svg", { className: "o-icon-success-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16", fill: "currentColor" },
1795
+ React.createElement("path", { fillRule: "evenodd", d: "M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z" }))));
1796
+ };
1797
+ var SuccessIcon = styled(SuccessIconComponent) `
1798
+ ${({ width = '16px', height = '16px', color: cssColor = 'success', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
1799
+ width: ${width};
1800
+ height: ${height};
1801
+ ${display('flex')};
1802
+ ${alignItems('center')};
1803
+ ${color(cssColor)}
1804
+ ${marginLeft(ml)}
1805
+ ${marginRight(mr)}
1806
+ .o-icon-success-svg {
1807
+ display: inline-block;
1808
+ fill: currentColor;
1809
+ }
1810
+ `}
1811
+ `;
1812
+
1813
+ const getDefautltIconComponent = (kind) => {
1814
+ switch (kind) {
1815
+ case 'debug':
1816
+ return DebugIcon;
1817
+ case 'error':
1818
+ return ErrorIcon;
1819
+ case 'warning':
1820
+ return WarningIcon;
1821
+ case 'success':
1822
+ return SuccessIcon;
1823
+ default:
1824
+ return InfoIcon;
1825
+ }
1826
+ };
1827
+ const getIconSize = (size) => {
1828
+ switch (size) {
1829
+ case 'small':
1830
+ return '24px';
1831
+ case 'large':
1832
+ return '48px';
1833
+ default:
1834
+ return '36px';
1835
+ }
1836
+ };
1837
+ const AlertComponent = ({ kind = 'info', icon = true, IconComponent, className, children, size, }) => {
1838
+ if (IconComponent === undefined) {
1839
+ IconComponent = getDefautltIconComponent(kind);
1840
+ }
1841
+ return (React.createElement("div", { className: addClassname(`g-alert g-alert-${kind}`, className) },
1842
+ icon && React.createElement(IconComponent, { width: getIconSize(size), height: getIconSize(size), marginRight: '20px', marginLeft: '20px' }),
1843
+ React.createElement("div", null, children)));
1844
+ };
1845
+
1846
+ const getBackgroundColor = (kind) => {
1847
+ switch (kind) {
1848
+ case 'success': return 'green-100';
1849
+ case 'info': return 'blue-100';
1850
+ case 'warning': return 'orange-200';
1851
+ case 'error': return 'red-100';
1852
+ default: return 'lighter';
1853
+ }
1854
+ };
1855
+ const getBorderColor = (kind) => {
1856
+ switch (kind) {
1857
+ case 'success': return 'success';
1858
+ case 'info': return 'info';
1859
+ case 'warning': return 'warning';
1860
+ case 'error': return 'danger';
1861
+ default: return 'darker';
1862
+ }
1863
+ };
1864
+ const getFontColor = (kind) => {
1865
+ switch (kind) {
1866
+ case 'success': return 'green-800';
1867
+ case 'info': return 'blue-800';
1868
+ case 'warning': return 'orange-800';
1869
+ case 'error': return 'red-800';
1870
+ default: return 'darkest';
1871
+ }
1872
+ };
1873
+ const alertStyle = ({ kind = 'info', marginTop: mTop = '0px', marginBottom: mBottom = '0px', size = 'medium' }) => {
1874
+ return styled.css `
1875
+ ${display('flex')}
1876
+ ${alignItems('center')}
1877
+ ${backgroundColor(getBackgroundColor(kind))}
1878
+ ${borderColor(getBorderColor(kind))}
1879
+ ${color(getFontColor(kind))}
1880
+ ${padding(size === 'large' ? 'lg' : size === 'small' ? 'sm' : 'md')}
1881
+ ${borderStyle('solid')}
1882
+ ${borderWidth('1px')}
1883
+ ${borderRadius('sm')}
1884
+ ${marginTop(mTop)}
1885
+ ${marginBottom(mBottom)}
1886
+ `;
1887
+ };
1888
+
1889
+ const Alert = styled(AlertComponent) `
1890
+ ${alertStyle}
1891
+ `;
1892
+
1893
+ const FormCard = ({ name, help, children, ...cardProps }) => {
1704
1894
  const decorator = onekijsFramework.useFormDecorator(name, {
1705
1895
  Displayer: (displayerProps) => {
1706
1896
  return React.createElement(FormCardDisplayer, { ...displayerProps, name: typeof cardProps.title === 'string' ? cardProps.title : titlelize(name) });
@@ -1749,7 +1939,10 @@ const FormCard = ({ name, ...cardProps }) => {
1749
1939
  return null;
1750
1940
  }
1751
1941
  return (React.createElement(onekijsFramework.FormContext.Provider, { value: fieldContainer.context },
1752
- React.createElement(Card, { ...cardProps, open: !metadata.disabled, onToggle: () => (metadata.disabled ? form.enable(decorator.name) : form.disable(decorator.name)) })));
1942
+ React.createElement(Card, { ...cardProps, open: !metadata.disabled, onToggle: () => (metadata.disabled ? form.enable(decorator.name) : form.disable(decorator.name)) },
1943
+ React.createElement(React.Fragment, null,
1944
+ help && React.createElement(Alert, { kind: "info", size: "small", marginBottom: "2xl" }, help),
1945
+ children))));
1753
1946
  };
1754
1947
 
1755
1948
  const CheckboxComponent = ({ label, className = '', onChange, value = false, bordered = true, status, ...checkboxProps }) => {
@@ -2100,9 +2293,11 @@ const IconComponent$8 = ({ className, onClick, style }) => {
2100
2293
  React.createElement("path", { d: "M235 339h42v42h-42zM276.8 318h-41.6c0-67 62.4-62.2 62.4-103.8 0-22.9-18.7-41.7-41.6-41.7S214.4 192 214.4 214h-41.6c0-46 37.2-83 83.2-83s83.2 37.1 83.2 83.1c0 52-62.4 57.9-62.4 103.9z" }))));
2101
2294
  };
2102
2295
  var HelpIcon = styled(IconComponent$8) `
2103
- ${({ width = '24px', height = '24px', color: cssColor = 'inherit' }) => styled.css `
2296
+ ${({ width = '24px', height = '24px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
2104
2297
  width: ${width};
2105
2298
  height: ${height};
2299
+ ${marginLeft(ml)}
2300
+ ${marginRight(mr)}
2106
2301
  ${display('flex')};
2107
2302
  ${alignItems('center')};
2108
2303
  ${color(cssColor)}
@@ -2378,31 +2573,14 @@ const RemoveIcon = ({ className, onClick }) => {
2378
2573
  React.createElement("path", { fill: "currentColor", d: "M15.854 12.854c-0-0-0-0-0-0l-4.854-4.854 4.854-4.854c0-0 0-0 0-0 0.052-0.052 0.090-0.113 0.114-0.178 0.066-0.178 0.028-0.386-0.114-0.529l-2.293-2.293c-0.143-0.143-0.351-0.181-0.529-0.114-0.065 0.024-0.126 0.062-0.178 0.114 0 0-0 0-0 0l-4.854 4.854-4.854-4.854c-0-0-0-0-0-0-0.052-0.052-0.113-0.090-0.178-0.114-0.178-0.066-0.386-0.029-0.529 0.114l-2.293 2.293c-0.143 0.143-0.181 0.351-0.114 0.529 0.024 0.065 0.062 0.126 0.114 0.178 0 0 0 0 0 0l4.854 4.854-4.854 4.854c-0 0-0 0-0 0-0.052 0.052-0.090 0.113-0.114 0.178-0.066 0.178-0.029 0.386 0.114 0.529l2.293 2.293c0.143 0.143 0.351 0.181 0.529 0.114 0.065-0.024 0.126-0.062 0.178-0.114 0-0 0-0 0-0l4.854-4.854 4.854 4.854c0 0 0 0 0 0 0.052 0.052 0.113 0.090 0.178 0.114 0.178 0.066 0.386 0.029 0.529-0.114l2.293-2.293c0.143-0.143 0.181-0.351 0.114-0.529-0.024-0.065-0.062-0.126-0.114-0.178z" }))));
2379
2574
  };
2380
2575
  var RemoveIcon$1 = styled(RemoveIcon) `
2381
- ${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => styled.css `
2382
- width: ${width};
2383
- height: ${height};
2384
- ${display('flex')};
2385
- ${alignItems('center')};
2386
- ${color(cssColor)}
2387
- `}
2388
- `;
2389
-
2390
- const SuccessIconComponent = (props) => {
2391
- return (React.createElement("div", { ...props },
2392
- React.createElement("svg", { className: "o-icon-success-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16", fill: "currentColor" },
2393
- React.createElement("path", { fillRule: "evenodd", d: "M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z" }))));
2394
- };
2395
- var SuccessIcon = styled(SuccessIconComponent) `
2396
- ${({ width = '16px', height = '16px', color: cssColor = 'success' }) => styled.css `
2576
+ ${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
2397
2577
  width: ${width};
2398
2578
  height: ${height};
2579
+ ${marginLeft(ml)}
2580
+ ${marginRight(mr)}
2399
2581
  ${display('flex')};
2400
2582
  ${alignItems('center')};
2401
2583
  ${color(cssColor)}
2402
- .o-icon-success-svg {
2403
- display: inline-block;
2404
- fill: currentColor;
2405
- }
2406
2584
  `}
2407
2585
  `;
2408
2586
 
@@ -3829,9 +4007,11 @@ const IconComponent$7 = (props) => {
3829
4007
  React.createElement("rect", { y: "80", width: "100", height: "15", rx: "15", ry: "15" }))));
3830
4008
  };
3831
4009
  var MenuIcon = styled(IconComponent$7) `
3832
- ${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => styled.css `
4010
+ ${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
3833
4011
  width: ${width};
3834
4012
  height: ${height};
4013
+ ${marginLeft(ml)}
4014
+ ${marginRight(mr)}
3835
4015
  ${display('flex')};
3836
4016
  ${alignItems('center')};
3837
4017
  ${color(cssColor)}
@@ -3868,9 +4048,11 @@ const RefreshIconComponent = (props) => {
3868
4048
  React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" }))));
3869
4049
  };
3870
4050
  var RefreshIcon = styled(RefreshIconComponent) `
3871
- ${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => styled.css `
4051
+ ${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
3872
4052
  width: ${width};
3873
4053
  height: ${height};
4054
+ ${marginLeft(ml)}
4055
+ ${marginRight(mr)}
3874
4056
  ${display('flex')};
3875
4057
  ${alignItems('center')};
3876
4058
  ${color(cssColor)}
@@ -3900,9 +4082,11 @@ const IconComponent$6 = ({ className, onClick }) => {
3900
4082
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z" }))));
3901
4083
  };
3902
4084
  var CloseAllIcon = styled(IconComponent$6) `
3903
- ${({ width, height, color: cssColor = 'inherit' }) => styled.css `
4085
+ ${({ width, height, color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
3904
4086
  width: ${width};
3905
4087
  height: ${height};
4088
+ ${marginLeft(ml)}
4089
+ ${marginRight(mr)}
3906
4090
  ${display('flex')};
3907
4091
  ${alignItems('center')};
3908
4092
  ${color(cssColor)}
@@ -3922,6 +4106,8 @@ const IconComponent$5 = ({ className }) => {
3922
4106
  const CrossIcon = styled(IconComponent$5) `
3923
4107
  width: ${(props) => props.width || '32px'};
3924
4108
  height: ${(props) => props.height || '32px'};
4109
+ margin-top: ${(props) => props.marginRight || '0px'};
4110
+ margin-left: ${(props) => props.marginLeft || '0px'};
3925
4111
  .o-icon-close-svg {
3926
4112
  display: inline-block;
3927
4113
  stroke-width: 0;
@@ -3933,25 +4119,6 @@ const CrossIcon = styled(IconComponent$5) `
3933
4119
  }
3934
4120
  `;
3935
4121
 
3936
- const ErrorIconComponent = (props) => {
3937
- return (React.createElement("div", { ...props },
3938
- React.createElement("svg", { className: "o-icon-error-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
3939
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6zM7.9 7.5L10.3 5l.7.7-2.4 2.5 2.4 2.5-.7.7-2.4-2.5-2.4 2.5-.7-.7 2.4-2.5-2.4-2.5.7-.7 2.4 2.5z" }))));
3940
- };
3941
- var ErrorIcon = styled(ErrorIconComponent) `
3942
- ${({ width = '16px', height = '16px', color: cssColor = 'danger' }) => styled.css `
3943
- width: ${width};
3944
- height: ${height};
3945
- ${display('flex')};
3946
- ${alignItems('center')};
3947
- ${color(cssColor)}
3948
- .o-icon-error-svg {
3949
- display: inline-block;
3950
- fill: currentColor;
3951
- }
3952
- `}
3953
- `;
3954
-
3955
4122
  const IconComponent$4 = (props) => {
3956
4123
  const className = addClassname('o-icon-file', props.className);
3957
4124
  return (React.createElement("div", { ...props, className: className },
@@ -3959,9 +4126,11 @@ const IconComponent$4 = (props) => {
3959
4126
  React.createElement("path", { d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z" }))));
3960
4127
  };
3961
4128
  var FileIcon = styled(IconComponent$4) `
3962
- ${({ width = '16px', height = '16px', color: cssColor = 'currentColor' }) => styled.css `
4129
+ ${({ width = '16px', height = '16px', color: cssColor = 'currentColor', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
3963
4130
  width: ${width};
3964
4131
  height: ${height};
4132
+ ${marginLeft(ml)}
4133
+ ${marginRight(mr)}
3965
4134
  ${display('flex')};
3966
4135
  ${alignItems('center')};
3967
4136
  .o-icon-file-svg {
@@ -3978,9 +4147,11 @@ const IconComponent$3 = (props) => {
3978
4147
  React.createElement("path", { d: "M20,6h-8l-2-2H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V8C22,6.9,21.1,6,20,6z" }))));
3979
4148
  };
3980
4149
  var FolderIcon = styled(IconComponent$3) `
3981
- ${({ width = '24px', height = '24px', color: cssColor = 'currentColor' }) => styled.css `
4150
+ ${({ width = '24px', height = '24px', color: cssColor = 'currentColor', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
3982
4151
  width: ${width};
3983
4152
  height: ${height};
4153
+ ${marginLeft(ml)}
4154
+ ${marginRight(mr)}
3984
4155
  ${display('flex')};
3985
4156
  ${alignItems('center')};
3986
4157
  .o-icon-folder-svg {
@@ -3996,9 +4167,11 @@ const IconComponent$2 = ({ className, onClick }) => {
3996
4167
  React.createElement("path", { d: "M115.97,101.597L88.661,74.286c4.64-7.387,7.333-16.118,7.333-25.488c0-26.509-21.49-47.996-47.998-47.996\n\t\tS0,22.289,0,48.798c0,26.51,21.487,47.995,47.996,47.995c10.197,0,19.642-3.188,27.414-8.605l26.984,26.986\n\t\tc1.875,1.873,4.333,2.806,6.788,2.806c2.458,0,4.913-0.933,6.791-2.806C119.72,111.423,119.72,105.347,115.97,101.597z\n\t\t M47.996,81.243c-17.917,0-32.443-14.525-32.443-32.443s14.526-32.444,32.443-32.444c17.918,0,32.443,14.526,32.443,32.444\n\t\tS65.914,81.243,47.996,81.243z" }))));
3997
4168
  };
3998
4169
  var SearchIcon = styled(IconComponent$2) `
3999
- ${({ width, height, color: cssColor = 'inherit' }) => styled.css `
4170
+ ${({ width, height, color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
4000
4171
  width: ${width};
4001
4172
  height: ${height};
4173
+ ${marginLeft(ml)}
4174
+ ${marginRight(mr)}
4002
4175
  ${display('flex')};
4003
4176
  ${alignItems('center')};
4004
4177
  ${color(cssColor)}
@@ -4125,9 +4298,11 @@ const IconComponent$1 = (props) => {
4125
4298
  React.createElement("path", { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z" }))));
4126
4299
  };
4127
4300
  var HideIcon = styled(IconComponent$1) `
4128
- ${({ width = '16px', height = '16px', color: cssColor = 'currentColor' }) => styled.css `
4301
+ ${({ width = '16px', height = '16px', color: cssColor = 'currentColor', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
4129
4302
  width: ${width};
4130
4303
  height: ${height};
4304
+ ${marginLeft(ml)}
4305
+ ${marginRight(mr)}
4131
4306
  ${display('flex')};
4132
4307
  ${alignItems('center')};
4133
4308
  .o-icon-hide-svg {
@@ -4144,9 +4319,11 @@ const IconComponent = (props) => {
4144
4319
  React.createElement("path", { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" }))));
4145
4320
  };
4146
4321
  var ShowIcon = styled(IconComponent) `
4147
- ${({ width = '16px', height = '16px', color: cssColor = 'currentColor' }) => styled.css `
4322
+ ${({ width = '16px', height = '16px', color: cssColor = 'currentColor', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
4148
4323
  width: ${width};
4149
4324
  height: ${height};
4325
+ ${marginLeft(ml)}
4326
+ ${marginRight(mr)}
4150
4327
  ${display('flex')};
4151
4328
  ${alignItems('center')};
4152
4329
  .o-icon-show-svg {
@@ -5605,9 +5782,11 @@ const CloseIconComponent = (props) => {
5605
5782
  React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 8.707l3.646 3.647.708-.707L8.707 8l3.647-3.646-.707-.708L8 7.293 4.354 3.646l-.707.708L7.293 8l-3.646 3.646.707.708L8 8.707z" }))));
5606
5783
  };
5607
5784
  var CloseIcon = styled(CloseIconComponent) `
5608
- ${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => styled.css `
5785
+ ${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => styled.css `
5609
5786
  width: ${width};
5610
5787
  height: ${height};
5788
+ ${marginLeft(ml)}
5789
+ ${marginRight(mr)}
5611
5790
  ${display('flex')};
5612
5791
  ${alignItems('center')};
5613
5792
  ${color(cssColor)}
@@ -5618,64 +5797,6 @@ var CloseIcon = styled(CloseIconComponent) `
5618
5797
  `}
5619
5798
  `;
5620
5799
 
5621
- const DebugIconComponent = (props) => {
5622
- return (React.createElement("div", { ...props },
5623
- React.createElement("svg", { className: "o-icon-debug-svg", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
5624
- React.createElement("path", { d: "M3.463 12.86l-.005-.07.005.07zm7.264.69l-3.034-3.049 1.014-1.014 3.209 3.225 3.163-3.163 1.014 1.014-3.034 3.034 3.034 3.05-1.014 1.014-3.209-3.225L8.707 17.6l-1.014-1.014 3.034-3.034z" }),
5625
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.933 5.003V6h1.345l2.843-2.842 1.014 1.014-2.692 2.691.033.085a13.75 13.75 0 0 1 .885 4.912c0 .335-.011.667-.034.995l-.005.075h3.54v1.434h-3.72l-.01.058c-.303 1.653-.891 3.16-1.692 4.429l-.06.094 3.423 3.44-1.017 1.012-3.274-3.29-.099.11c-1.479 1.654-3.395 2.646-5.483 2.646-2.12 0-4.063-1.023-5.552-2.723l-.098-.113-3.209 3.208-1.014-1.014 3.366-3.365-.059-.095c-.772-1.25-1.34-2.725-1.636-4.34l-.01-.057H0V12.93h3.538l-.005-.075a14.23 14.23 0 0 1-.034-.995c0-1.743.31-3.39.863-4.854l.032-.084-2.762-2.776L2.65 3.135 5.5 6h1.427v-.997a5.003 5.003 0 0 1 10.006 0zm-8.572 0V6H15.5v-.997a3.569 3.569 0 0 0-7.138 0zm9.8 2.522l-.034-.09H5.733l-.034.09a12.328 12.328 0 0 0-.766 4.335c0 2.76.862 5.201 2.184 6.92 1.32 1.716 3.036 2.649 4.813 2.649 1.777 0 3.492-.933 4.813-2.65 1.322-1.718 2.184-4.16 2.184-6.919 0-1.574-.28-3.044-.766-4.335z" }))));
5626
- };
5627
- var DebugIcon = styled(DebugIconComponent) `
5628
- ${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => styled.css `
5629
- width: ${width};
5630
- height: ${height};
5631
- ${display('flex')};
5632
- ${alignItems('center')};
5633
- ${color(cssColor)}
5634
- .o-icon-debug-svg {
5635
- display: inline-block;
5636
- fill: currentColor;
5637
- }
5638
- `}
5639
- `;
5640
-
5641
- const InfoIconComponent = (props) => {
5642
- return (React.createElement("div", { ...props },
5643
- React.createElement("svg", { className: "o-icon-success-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
5644
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.568 1.031A6.8 6.8 0 0 1 12.76 3.05a7.06 7.06 0 0 1 .46 9.39 6.85 6.85 0 0 1-8.58 1.74 7 7 0 0 1-3.12-3.5 7.12 7.12 0 0 1-.23-4.71 7 7 0 0 1 2.77-3.79 6.8 6.8 0 0 1 4.508-1.149zM9.04 13.88a5.89 5.89 0 0 0 3.41-2.07 6.07 6.07 0 0 0-.4-8.06 5.82 5.82 0 0 0-7.43-.74 6.06 6.06 0 0 0 .5 10.29 5.81 5.81 0 0 0 3.92.58zM7.375 6h1.25V5h-1.25v1zm1.25 1v4h-1.25V7h1.25z" }))));
5645
- };
5646
- var InfoIcon = styled(InfoIconComponent) `
5647
- ${({ width = '16px', height = '16px', color: cssColor = 'info' }) => styled.css `
5648
- width: ${width};
5649
- height: ${height};
5650
- ${display('flex')};
5651
- ${alignItems('center')};
5652
- ${color(cssColor)}
5653
- .o-icon-info-svg {
5654
- display: inline-block;
5655
- fill: currentColor;
5656
- }
5657
- `}
5658
- `;
5659
-
5660
- const WarningIconComponent = (props) => {
5661
- return (React.createElement("div", { ...props },
5662
- React.createElement("svg", { className: "o-icon-warning-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
5663
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.56 1h.88l6.54 12.26-.44.74H1.44L1 13.26 7.56 1zM8 2.28L2.28 13H13.7L8 2.28zM8.625 12v-1h-1.25v1h1.25zm-1.25-2V6h1.25v4h-1.25z" }))));
5664
- };
5665
- var WarningIcon = styled(WarningIconComponent) `
5666
- ${({ width = '16px', height = '16px', color: cssColor = 'warning' }) => styled.css `
5667
- width: ${width};
5668
- height: ${height};
5669
- ${display('flex')};
5670
- ${alignItems('center')};
5671
- ${color(cssColor)}
5672
- .o-icon-warning-svg {
5673
- display: inline-block;
5674
- fill: currentColor;
5675
- }
5676
- `}
5677
- `;
5678
-
5679
5800
  const defaultFormat = (ttlMs) => Math.ceil(ttlMs / 1000);
5680
5801
  const ControlledTimerComponent = ({ autoStart = true, className, controller, format = defaultFormat, }) => {
5681
5802
  const { timeMs, ttlMs } = controller.state;
@@ -11454,7 +11575,7 @@ const useStep = (props) => {
11454
11575
  return step;
11455
11576
  };
11456
11577
 
11457
- const Step = ({ title, active = false, disabled = false, visible = true, closable = false, children, icon, uid, optional = false, showTitle = true, className, onTouch, }) => {
11578
+ const Step = ({ title, active = false, disabled = false, visible = true, closable = false, children, icon, uid, optional = false, showTitle = true, className, onTouch, help, }) => {
11458
11579
  const { animate, forwardOnly } = useWizardState();
11459
11580
  const step = useStep({
11460
11581
  title,
@@ -11490,6 +11611,7 @@ const Step = ({ title, active = false, disabled = false, visible = true, closabl
11490
11611
  return (React.createElement(reactTransitionGroup.CSSTransition, { in: true, timeout: animate, appear: true, onEnter: onEnter, onEntering: onEntering },
11491
11612
  React.createElement("div", { className: addClassname('o-step-content', className) },
11492
11613
  showTitle && React.createElement("div", { className: "o-step-content-title" }, title),
11614
+ help && React.createElement(Alert, { kind: "info", marginBottom: 'lg' }, help),
11493
11615
  children)));
11494
11616
  };
11495
11617
 
@@ -12467,6 +12589,8 @@ exports.Accordion = Accordion;
12467
12589
  exports.AccordionComponent = AccordionComponent;
12468
12590
  exports.AccordionContainer = AccordionContainer;
12469
12591
  exports.AccordionPanel = AccordionPanel;
12592
+ exports.Alert = Alert;
12593
+ exports.AlertComponent = AlertComponent;
12470
12594
  exports.ArraySelectComponent = ArraySelectComponent;
12471
12595
  exports.ArrayTreeComponent = ArrayTreeComponent;
12472
12596
  exports.ArrayTreeSelectComponent = ArrayTreeSelectComponent;
@@ -12607,6 +12731,7 @@ exports.WizardSummaryComponent = WizardSummaryComponent;
12607
12731
  exports.accordionStyle = accordionStyle;
12608
12732
  exports.addClassname = addClassname;
12609
12733
  exports.addStyle = addStyle;
12734
+ exports.alertStyle = alertStyle;
12610
12735
  exports.alignContent = alignContent;
12611
12736
  exports.alignItems = alignItems;
12612
12737
  exports.alignSelf = alignSelf;