onekijs-ui 0.19.21 → 0.19.23
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/dist/components/alert/components/AlertComponent.d.ts +4 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/style.d.ts +4 -0
- package/dist/components/alert/typings.d.ts +11 -0
- package/dist/components/card/typings.d.ts +1 -0
- package/dist/components/icon/CrossIcon.d.ts +2 -1
- package/dist/components/icon/typings.d.ts +3 -1
- package/dist/components/properties/typings.d.ts +2 -1
- package/dist/components/wizard/typings.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +279 -114
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +277 -115
- package/dist/index.module.js.map +1 -1
- package/package.json +3 -3
- package/src/components/alert/components/AlertComponent.tsx +56 -0
- package/src/components/alert/index.tsx +9 -0
- package/src/components/alert/style.ts +57 -0
- package/src/components/alert/typings.ts +12 -0
- package/src/components/card/FormCard.tsx +8 -2
- package/src/components/card/typings.ts +1 -0
- package/src/components/icon/CloseAllIcon.tsx +4 -1
- package/src/components/icon/CloseIcon.tsx +4 -1
- package/src/components/icon/CrossIcon.tsx +4 -1
- package/src/components/icon/DebugIcon.tsx +4 -1
- package/src/components/icon/ErrorIcon.tsx +4 -1
- package/src/components/icon/FileIcon.tsx +4 -1
- package/src/components/icon/FilterIcon.tsx +4 -1
- package/src/components/icon/FolderIcon.tsx +4 -1
- package/src/components/icon/HelpIcon.tsx +4 -1
- package/src/components/icon/HideIcon.tsx +4 -1
- package/src/components/icon/InfoIcon.tsx +7 -3
- package/src/components/icon/LoadingIcon.tsx +5 -0
- package/src/components/icon/MenuIcon.tsx +4 -1
- package/src/components/icon/RefreshIcon.tsx +4 -1
- package/src/components/icon/RemoveIcon.tsx +4 -1
- package/src/components/icon/SearchIcon.tsx +4 -1
- package/src/components/icon/ShowIcon.tsx +4 -1
- package/src/components/icon/SuccessIcon.tsx +4 -1
- package/src/components/icon/TogglerIcon.tsx +5 -1
- package/src/components/icon/WarningIcon.tsx +4 -1
- package/src/components/icon/typings.ts +3 -1
- package/src/components/properties/components/PropertiesComponent.tsx +17 -5
- package/src/components/properties/components/Property.tsx +9 -2
- package/src/components/properties/style.ts +24 -2
- package/src/components/properties/typings.ts +2 -1
- package/src/components/table/style.ts +5 -0
- package/src/components/wizard/components/Step.tsx +3 -0
- package/src/components/wizard/typings.ts +1 -0
- package/src/index.ts +5 -0
package/dist/index.module.js
CHANGED
|
@@ -763,10 +763,12 @@ const iconCircleKeyFrame = keyframes `
|
|
|
763
763
|
transform: rotate(360deg);
|
|
764
764
|
}
|
|
765
765
|
`;
|
|
766
|
-
const iconStyle = ({ width: cssWidth = '16px', height: cssHeight = '16px', color: cssColor = 'primary', }) => {
|
|
766
|
+
const iconStyle = ({ width: cssWidth = '16px', height: cssHeight = '16px', color: cssColor = 'primary', marginLeft: ml = '0', marginRight: mr = '0', }) => {
|
|
767
767
|
return css `
|
|
768
768
|
height: ${cssHeight};
|
|
769
769
|
width: ${cssWidth};
|
|
770
|
+
${marginLeft(ml)}
|
|
771
|
+
${marginRight(mr)}
|
|
770
772
|
display: inline-flex;
|
|
771
773
|
align-items: center;
|
|
772
774
|
|
|
@@ -818,9 +820,11 @@ const IconComponent$9 = ({ className, onClick, open, loading, model = 'arrow', c
|
|
|
818
820
|
}
|
|
819
821
|
};
|
|
820
822
|
const TogglerIcon = styled(IconComponent$9) `
|
|
821
|
-
${({ width = '24px', height = '24px', color: cssColor = 'inherit', visible = true }) => css `
|
|
823
|
+
${({ width = '24px', height = '24px', color: cssColor = 'inherit', visible = true, marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
822
824
|
width: ${width};
|
|
823
825
|
height: ${height};
|
|
826
|
+
${marginLeft(ml)}
|
|
827
|
+
${marginRight(mr)}
|
|
824
828
|
${display('inline-flex')};
|
|
825
829
|
${alignItems('center')};
|
|
826
830
|
${color(cssColor)}
|
|
@@ -1698,7 +1702,193 @@ const FormCardDisplayer = styled(FormCardDisplayerComponent) `
|
|
|
1698
1702
|
${formCardDisplayerStyle}
|
|
1699
1703
|
`;
|
|
1700
1704
|
|
|
1701
|
-
const
|
|
1705
|
+
const InfoIconComponent = (props) => {
|
|
1706
|
+
return (React.createElement("div", { ...props },
|
|
1707
|
+
React.createElement("svg", { className: "o-icon-info-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg" },
|
|
1708
|
+
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" }))));
|
|
1709
|
+
};
|
|
1710
|
+
var InfoIcon = styled(InfoIconComponent) `
|
|
1711
|
+
${({ width = '16px', height = '16px', color: cssColor = 'info', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
1712
|
+
width: ${width};
|
|
1713
|
+
height: ${height};
|
|
1714
|
+
${marginLeft(ml)}
|
|
1715
|
+
${marginRight(mr)}
|
|
1716
|
+
${display('flex')};
|
|
1717
|
+
${alignItems('center')};
|
|
1718
|
+
${color(cssColor)}
|
|
1719
|
+
.o-icon-info-svg {
|
|
1720
|
+
display: inline-block;
|
|
1721
|
+
${fill('currentColor')}
|
|
1722
|
+
}
|
|
1723
|
+
`}
|
|
1724
|
+
`;
|
|
1725
|
+
|
|
1726
|
+
const DebugIconComponent = (props) => {
|
|
1727
|
+
return (React.createElement("div", { ...props },
|
|
1728
|
+
React.createElement("svg", { className: "o-icon-debug-svg", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
|
|
1729
|
+
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" }),
|
|
1730
|
+
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" }))));
|
|
1731
|
+
};
|
|
1732
|
+
var DebugIcon = styled(DebugIconComponent) `
|
|
1733
|
+
${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
1734
|
+
width: ${width};
|
|
1735
|
+
height: ${height};
|
|
1736
|
+
${marginLeft(ml)}
|
|
1737
|
+
${marginRight(mr)}
|
|
1738
|
+
${display('flex')};
|
|
1739
|
+
${alignItems('center')};
|
|
1740
|
+
${color(cssColor)}
|
|
1741
|
+
.o-icon-debug-svg {
|
|
1742
|
+
display: inline-block;
|
|
1743
|
+
fill: currentColor;
|
|
1744
|
+
}
|
|
1745
|
+
`}
|
|
1746
|
+
`;
|
|
1747
|
+
|
|
1748
|
+
const ErrorIconComponent = (props) => {
|
|
1749
|
+
return (React.createElement("div", { ...props },
|
|
1750
|
+
React.createElement("svg", { className: "o-icon-error-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
|
|
1751
|
+
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" }))));
|
|
1752
|
+
};
|
|
1753
|
+
var ErrorIcon = styled(ErrorIconComponent) `
|
|
1754
|
+
${({ width = '16px', height = '16px', color: cssColor = 'danger', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
1755
|
+
width: ${width};
|
|
1756
|
+
height: ${height};
|
|
1757
|
+
${marginLeft(ml)}
|
|
1758
|
+
${marginRight(mr)}
|
|
1759
|
+
${display('flex')};
|
|
1760
|
+
${alignItems('center')};
|
|
1761
|
+
${color(cssColor)}
|
|
1762
|
+
.o-icon-error-svg {
|
|
1763
|
+
display: inline-block;
|
|
1764
|
+
fill: currentColor;
|
|
1765
|
+
}
|
|
1766
|
+
`}
|
|
1767
|
+
`;
|
|
1768
|
+
|
|
1769
|
+
const WarningIconComponent = (props) => {
|
|
1770
|
+
return (React.createElement("div", { ...props },
|
|
1771
|
+
React.createElement("svg", { className: "o-icon-warning-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
|
|
1772
|
+
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" }))));
|
|
1773
|
+
};
|
|
1774
|
+
var WarningIcon = styled(WarningIconComponent) `
|
|
1775
|
+
${({ width = '16px', height = '16px', color: cssColor = 'warning', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
1776
|
+
width: ${width};
|
|
1777
|
+
height: ${height};
|
|
1778
|
+
${display('flex')};
|
|
1779
|
+
${alignItems('center')};
|
|
1780
|
+
${color(cssColor)}
|
|
1781
|
+
${marginLeft(ml)}
|
|
1782
|
+
${marginRight(mr)}
|
|
1783
|
+
.o-icon-warning-svg {
|
|
1784
|
+
display: inline-block;
|
|
1785
|
+
fill: currentColor;
|
|
1786
|
+
}
|
|
1787
|
+
`}
|
|
1788
|
+
`;
|
|
1789
|
+
|
|
1790
|
+
const SuccessIconComponent = (props) => {
|
|
1791
|
+
return (React.createElement("div", { ...props },
|
|
1792
|
+
React.createElement("svg", { className: "o-icon-success-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16", fill: "currentColor" },
|
|
1793
|
+
React.createElement("path", { fillRule: "evenodd", d: "M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z" }))));
|
|
1794
|
+
};
|
|
1795
|
+
var SuccessIcon = styled(SuccessIconComponent) `
|
|
1796
|
+
${({ width = '16px', height = '16px', color: cssColor = 'success', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
1797
|
+
width: ${width};
|
|
1798
|
+
height: ${height};
|
|
1799
|
+
${display('flex')};
|
|
1800
|
+
${alignItems('center')};
|
|
1801
|
+
${color(cssColor)}
|
|
1802
|
+
${marginLeft(ml)}
|
|
1803
|
+
${marginRight(mr)}
|
|
1804
|
+
.o-icon-success-svg {
|
|
1805
|
+
display: inline-block;
|
|
1806
|
+
fill: currentColor;
|
|
1807
|
+
}
|
|
1808
|
+
`}
|
|
1809
|
+
`;
|
|
1810
|
+
|
|
1811
|
+
const getDefautltIconComponent = (kind) => {
|
|
1812
|
+
switch (kind) {
|
|
1813
|
+
case 'debug':
|
|
1814
|
+
return DebugIcon;
|
|
1815
|
+
case 'error':
|
|
1816
|
+
return ErrorIcon;
|
|
1817
|
+
case 'warning':
|
|
1818
|
+
return WarningIcon;
|
|
1819
|
+
case 'success':
|
|
1820
|
+
return SuccessIcon;
|
|
1821
|
+
default:
|
|
1822
|
+
return InfoIcon;
|
|
1823
|
+
}
|
|
1824
|
+
};
|
|
1825
|
+
const getIconSize = (size) => {
|
|
1826
|
+
switch (size) {
|
|
1827
|
+
case 'small':
|
|
1828
|
+
return '24px';
|
|
1829
|
+
case 'large':
|
|
1830
|
+
return '48px';
|
|
1831
|
+
default:
|
|
1832
|
+
return '36px';
|
|
1833
|
+
}
|
|
1834
|
+
};
|
|
1835
|
+
const AlertComponent = ({ kind = 'info', icon = true, IconComponent, className, children, size, }) => {
|
|
1836
|
+
if (IconComponent === undefined) {
|
|
1837
|
+
IconComponent = getDefautltIconComponent(kind);
|
|
1838
|
+
}
|
|
1839
|
+
return (React.createElement("div", { className: addClassname(`o-alert o-alert-${kind}`, className) },
|
|
1840
|
+
icon && React.createElement(IconComponent, { width: getIconSize(size), height: getIconSize(size), marginRight: '20px', marginLeft: '20px' }),
|
|
1841
|
+
React.createElement("div", null, children)));
|
|
1842
|
+
};
|
|
1843
|
+
|
|
1844
|
+
const getBackgroundColor = (kind) => {
|
|
1845
|
+
switch (kind) {
|
|
1846
|
+
case 'success': return 'green-100';
|
|
1847
|
+
case 'info': return 'blue-100';
|
|
1848
|
+
case 'warning': return 'orange-200';
|
|
1849
|
+
case 'error': return 'red-100';
|
|
1850
|
+
default: return 'lighter';
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1853
|
+
const getBorderColor = (kind) => {
|
|
1854
|
+
switch (kind) {
|
|
1855
|
+
case 'success': return 'success';
|
|
1856
|
+
case 'info': return 'info';
|
|
1857
|
+
case 'warning': return 'warning';
|
|
1858
|
+
case 'error': return 'danger';
|
|
1859
|
+
default: return 'darker';
|
|
1860
|
+
}
|
|
1861
|
+
};
|
|
1862
|
+
const getFontColor = (kind) => {
|
|
1863
|
+
switch (kind) {
|
|
1864
|
+
case 'success': return 'green-800';
|
|
1865
|
+
case 'info': return 'blue-800';
|
|
1866
|
+
case 'warning': return 'orange-800';
|
|
1867
|
+
case 'error': return 'red-800';
|
|
1868
|
+
default: return 'darkest';
|
|
1869
|
+
}
|
|
1870
|
+
};
|
|
1871
|
+
const alertStyle = ({ kind = 'info', marginTop: mTop = '0px', marginBottom: mBottom = '0px', size = 'medium' }) => {
|
|
1872
|
+
return css `
|
|
1873
|
+
${display('flex')}
|
|
1874
|
+
${alignItems('center')}
|
|
1875
|
+
${backgroundColor(getBackgroundColor(kind))}
|
|
1876
|
+
${borderColor(getBorderColor(kind))}
|
|
1877
|
+
${color(getFontColor(kind))}
|
|
1878
|
+
${padding(size === 'large' ? 'lg' : size === 'small' ? 'sm' : 'md')}
|
|
1879
|
+
${borderStyle('solid')}
|
|
1880
|
+
${borderWidth('1px')}
|
|
1881
|
+
${borderRadius('sm')}
|
|
1882
|
+
${marginTop(mTop)}
|
|
1883
|
+
${marginBottom(mBottom)}
|
|
1884
|
+
`;
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
const Alert = styled(AlertComponent) `
|
|
1888
|
+
${alertStyle}
|
|
1889
|
+
`;
|
|
1890
|
+
|
|
1891
|
+
const FormCard = ({ name, help, children, ...cardProps }) => {
|
|
1702
1892
|
const decorator = useFormDecorator(name, {
|
|
1703
1893
|
Displayer: (displayerProps) => {
|
|
1704
1894
|
return React.createElement(FormCardDisplayer, { ...displayerProps, name: typeof cardProps.title === 'string' ? cardProps.title : titlelize(name) });
|
|
@@ -1747,7 +1937,10 @@ const FormCard = ({ name, ...cardProps }) => {
|
|
|
1747
1937
|
return null;
|
|
1748
1938
|
}
|
|
1749
1939
|
return (React.createElement(FormContext.Provider, { value: fieldContainer.context },
|
|
1750
|
-
React.createElement(Card, { ...cardProps, open: !metadata.disabled, onToggle: () => (metadata.disabled ? form.enable(decorator.name) : form.disable(decorator.name)) }
|
|
1940
|
+
React.createElement(Card, { ...cardProps, open: !metadata.disabled, onToggle: () => (metadata.disabled ? form.enable(decorator.name) : form.disable(decorator.name)) },
|
|
1941
|
+
React.createElement(React.Fragment, null,
|
|
1942
|
+
help && React.createElement(Alert, { kind: "info", size: "small", marginBottom: "2xl" }, help),
|
|
1943
|
+
children))));
|
|
1751
1944
|
};
|
|
1752
1945
|
|
|
1753
1946
|
const CheckboxComponent = ({ label, className = '', onChange, value = false, bordered = true, status, ...checkboxProps }) => {
|
|
@@ -2098,9 +2291,11 @@ const IconComponent$8 = ({ className, onClick, style }) => {
|
|
|
2098
2291
|
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" }))));
|
|
2099
2292
|
};
|
|
2100
2293
|
var HelpIcon = styled(IconComponent$8) `
|
|
2101
|
-
${({ width = '24px', height = '24px', color: cssColor = 'inherit' }) => css `
|
|
2294
|
+
${({ width = '24px', height = '24px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
2102
2295
|
width: ${width};
|
|
2103
2296
|
height: ${height};
|
|
2297
|
+
${marginLeft(ml)}
|
|
2298
|
+
${marginRight(mr)}
|
|
2104
2299
|
${display('flex')};
|
|
2105
2300
|
${alignItems('center')};
|
|
2106
2301
|
${color(cssColor)}
|
|
@@ -2376,31 +2571,14 @@ const RemoveIcon = ({ className, onClick }) => {
|
|
|
2376
2571
|
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" }))));
|
|
2377
2572
|
};
|
|
2378
2573
|
var RemoveIcon$1 = styled(RemoveIcon) `
|
|
2379
|
-
${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => css `
|
|
2380
|
-
width: ${width};
|
|
2381
|
-
height: ${height};
|
|
2382
|
-
${display('flex')};
|
|
2383
|
-
${alignItems('center')};
|
|
2384
|
-
${color(cssColor)}
|
|
2385
|
-
`}
|
|
2386
|
-
`;
|
|
2387
|
-
|
|
2388
|
-
const SuccessIconComponent = (props) => {
|
|
2389
|
-
return (React.createElement("div", { ...props },
|
|
2390
|
-
React.createElement("svg", { className: "o-icon-success-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16", fill: "currentColor" },
|
|
2391
|
-
React.createElement("path", { fillRule: "evenodd", d: "M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z" }))));
|
|
2392
|
-
};
|
|
2393
|
-
var SuccessIcon = styled(SuccessIconComponent) `
|
|
2394
|
-
${({ width = '16px', height = '16px', color: cssColor = 'success' }) => css `
|
|
2574
|
+
${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
2395
2575
|
width: ${width};
|
|
2396
2576
|
height: ${height};
|
|
2577
|
+
${marginLeft(ml)}
|
|
2578
|
+
${marginRight(mr)}
|
|
2397
2579
|
${display('flex')};
|
|
2398
2580
|
${alignItems('center')};
|
|
2399
2581
|
${color(cssColor)}
|
|
2400
|
-
.o-icon-success-svg {
|
|
2401
|
-
display: inline-block;
|
|
2402
|
-
fill: currentColor;
|
|
2403
|
-
}
|
|
2404
2582
|
`}
|
|
2405
2583
|
`;
|
|
2406
2584
|
|
|
@@ -3827,9 +4005,11 @@ const IconComponent$7 = (props) => {
|
|
|
3827
4005
|
React.createElement("rect", { y: "80", width: "100", height: "15", rx: "15", ry: "15" }))));
|
|
3828
4006
|
};
|
|
3829
4007
|
var MenuIcon = styled(IconComponent$7) `
|
|
3830
|
-
${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => css `
|
|
4008
|
+
${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
3831
4009
|
width: ${width};
|
|
3832
4010
|
height: ${height};
|
|
4011
|
+
${marginLeft(ml)}
|
|
4012
|
+
${marginRight(mr)}
|
|
3833
4013
|
${display('flex')};
|
|
3834
4014
|
${alignItems('center')};
|
|
3835
4015
|
${color(cssColor)}
|
|
@@ -3866,9 +4046,11 @@ const RefreshIconComponent = (props) => {
|
|
|
3866
4046
|
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" }))));
|
|
3867
4047
|
};
|
|
3868
4048
|
var RefreshIcon = styled(RefreshIconComponent) `
|
|
3869
|
-
${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => css `
|
|
4049
|
+
${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
3870
4050
|
width: ${width};
|
|
3871
4051
|
height: ${height};
|
|
4052
|
+
${marginLeft(ml)}
|
|
4053
|
+
${marginRight(mr)}
|
|
3872
4054
|
${display('flex')};
|
|
3873
4055
|
${alignItems('center')};
|
|
3874
4056
|
${color(cssColor)}
|
|
@@ -3898,9 +4080,11 @@ const IconComponent$6 = ({ className, onClick }) => {
|
|
|
3898
4080
|
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z" }))));
|
|
3899
4081
|
};
|
|
3900
4082
|
var CloseAllIcon = styled(IconComponent$6) `
|
|
3901
|
-
${({ width, height, color: cssColor = 'inherit' }) => css `
|
|
4083
|
+
${({ width, height, color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
3902
4084
|
width: ${width};
|
|
3903
4085
|
height: ${height};
|
|
4086
|
+
${marginLeft(ml)}
|
|
4087
|
+
${marginRight(mr)}
|
|
3904
4088
|
${display('flex')};
|
|
3905
4089
|
${alignItems('center')};
|
|
3906
4090
|
${color(cssColor)}
|
|
@@ -3920,6 +4104,8 @@ const IconComponent$5 = ({ className }) => {
|
|
|
3920
4104
|
const CrossIcon = styled(IconComponent$5) `
|
|
3921
4105
|
width: ${(props) => props.width || '32px'};
|
|
3922
4106
|
height: ${(props) => props.height || '32px'};
|
|
4107
|
+
margin-top: ${(props) => props.marginRight || '0px'};
|
|
4108
|
+
margin-left: ${(props) => props.marginLeft || '0px'};
|
|
3923
4109
|
.o-icon-close-svg {
|
|
3924
4110
|
display: inline-block;
|
|
3925
4111
|
stroke-width: 0;
|
|
@@ -3931,25 +4117,6 @@ const CrossIcon = styled(IconComponent$5) `
|
|
|
3931
4117
|
}
|
|
3932
4118
|
`;
|
|
3933
4119
|
|
|
3934
|
-
const ErrorIconComponent = (props) => {
|
|
3935
|
-
return (React.createElement("div", { ...props },
|
|
3936
|
-
React.createElement("svg", { className: "o-icon-error-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
|
|
3937
|
-
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" }))));
|
|
3938
|
-
};
|
|
3939
|
-
var ErrorIcon = styled(ErrorIconComponent) `
|
|
3940
|
-
${({ width = '16px', height = '16px', color: cssColor = 'danger' }) => css `
|
|
3941
|
-
width: ${width};
|
|
3942
|
-
height: ${height};
|
|
3943
|
-
${display('flex')};
|
|
3944
|
-
${alignItems('center')};
|
|
3945
|
-
${color(cssColor)}
|
|
3946
|
-
.o-icon-error-svg {
|
|
3947
|
-
display: inline-block;
|
|
3948
|
-
fill: currentColor;
|
|
3949
|
-
}
|
|
3950
|
-
`}
|
|
3951
|
-
`;
|
|
3952
|
-
|
|
3953
4120
|
const IconComponent$4 = (props) => {
|
|
3954
4121
|
const className = addClassname('o-icon-file', props.className);
|
|
3955
4122
|
return (React.createElement("div", { ...props, className: className },
|
|
@@ -3957,9 +4124,11 @@ const IconComponent$4 = (props) => {
|
|
|
3957
4124
|
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" }))));
|
|
3958
4125
|
};
|
|
3959
4126
|
var FileIcon = styled(IconComponent$4) `
|
|
3960
|
-
${({ width = '16px', height = '16px', color: cssColor = 'currentColor' }) => css `
|
|
4127
|
+
${({ width = '16px', height = '16px', color: cssColor = 'currentColor', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
3961
4128
|
width: ${width};
|
|
3962
4129
|
height: ${height};
|
|
4130
|
+
${marginLeft(ml)}
|
|
4131
|
+
${marginRight(mr)}
|
|
3963
4132
|
${display('flex')};
|
|
3964
4133
|
${alignItems('center')};
|
|
3965
4134
|
.o-icon-file-svg {
|
|
@@ -3976,9 +4145,11 @@ const IconComponent$3 = (props) => {
|
|
|
3976
4145
|
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" }))));
|
|
3977
4146
|
};
|
|
3978
4147
|
var FolderIcon = styled(IconComponent$3) `
|
|
3979
|
-
${({ width = '24px', height = '24px', color: cssColor = 'currentColor' }) => css `
|
|
4148
|
+
${({ width = '24px', height = '24px', color: cssColor = 'currentColor', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
3980
4149
|
width: ${width};
|
|
3981
4150
|
height: ${height};
|
|
4151
|
+
${marginLeft(ml)}
|
|
4152
|
+
${marginRight(mr)}
|
|
3982
4153
|
${display('flex')};
|
|
3983
4154
|
${alignItems('center')};
|
|
3984
4155
|
.o-icon-folder-svg {
|
|
@@ -3994,9 +4165,11 @@ const IconComponent$2 = ({ className, onClick }) => {
|
|
|
3994
4165
|
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" }))));
|
|
3995
4166
|
};
|
|
3996
4167
|
var SearchIcon = styled(IconComponent$2) `
|
|
3997
|
-
${({ width, height, color: cssColor = 'inherit' }) => css `
|
|
4168
|
+
${({ width, height, color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
3998
4169
|
width: ${width};
|
|
3999
4170
|
height: ${height};
|
|
4171
|
+
${marginLeft(ml)}
|
|
4172
|
+
${marginRight(mr)}
|
|
4000
4173
|
${display('flex')};
|
|
4001
4174
|
${alignItems('center')};
|
|
4002
4175
|
${color(cssColor)}
|
|
@@ -4123,9 +4296,11 @@ const IconComponent$1 = (props) => {
|
|
|
4123
4296
|
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" }))));
|
|
4124
4297
|
};
|
|
4125
4298
|
var HideIcon = styled(IconComponent$1) `
|
|
4126
|
-
${({ width = '16px', height = '16px', color: cssColor = 'currentColor' }) => css `
|
|
4299
|
+
${({ width = '16px', height = '16px', color: cssColor = 'currentColor', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
4127
4300
|
width: ${width};
|
|
4128
4301
|
height: ${height};
|
|
4302
|
+
${marginLeft(ml)}
|
|
4303
|
+
${marginRight(mr)}
|
|
4129
4304
|
${display('flex')};
|
|
4130
4305
|
${alignItems('center')};
|
|
4131
4306
|
.o-icon-hide-svg {
|
|
@@ -4142,9 +4317,11 @@ const IconComponent = (props) => {
|
|
|
4142
4317
|
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" }))));
|
|
4143
4318
|
};
|
|
4144
4319
|
var ShowIcon = styled(IconComponent) `
|
|
4145
|
-
${({ width = '16px', height = '16px', color: cssColor = 'currentColor' }) => css `
|
|
4320
|
+
${({ width = '16px', height = '16px', color: cssColor = 'currentColor', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
4146
4321
|
width: ${width};
|
|
4147
4322
|
height: ${height};
|
|
4323
|
+
${marginLeft(ml)}
|
|
4324
|
+
${marginRight(mr)}
|
|
4148
4325
|
${display('flex')};
|
|
4149
4326
|
${alignItems('center')};
|
|
4150
4327
|
.o-icon-show-svg {
|
|
@@ -5603,9 +5780,11 @@ const CloseIconComponent = (props) => {
|
|
|
5603
5780
|
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" }))));
|
|
5604
5781
|
};
|
|
5605
5782
|
var CloseIcon = styled(CloseIconComponent) `
|
|
5606
|
-
${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => css `
|
|
5783
|
+
${({ width = '16px', height = '16px', color: cssColor = 'inherit', marginLeft: ml = '0', marginRight: mr = '0' }) => css `
|
|
5607
5784
|
width: ${width};
|
|
5608
5785
|
height: ${height};
|
|
5786
|
+
${marginLeft(ml)}
|
|
5787
|
+
${marginRight(mr)}
|
|
5609
5788
|
${display('flex')};
|
|
5610
5789
|
${alignItems('center')};
|
|
5611
5790
|
${color(cssColor)}
|
|
@@ -5616,64 +5795,6 @@ var CloseIcon = styled(CloseIconComponent) `
|
|
|
5616
5795
|
`}
|
|
5617
5796
|
`;
|
|
5618
5797
|
|
|
5619
|
-
const DebugIconComponent = (props) => {
|
|
5620
|
-
return (React.createElement("div", { ...props },
|
|
5621
|
-
React.createElement("svg", { className: "o-icon-debug-svg", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
|
|
5622
|
-
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" }),
|
|
5623
|
-
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" }))));
|
|
5624
|
-
};
|
|
5625
|
-
var DebugIcon = styled(DebugIconComponent) `
|
|
5626
|
-
${({ width = '16px', height = '16px', color: cssColor = 'inherit' }) => css `
|
|
5627
|
-
width: ${width};
|
|
5628
|
-
height: ${height};
|
|
5629
|
-
${display('flex')};
|
|
5630
|
-
${alignItems('center')};
|
|
5631
|
-
${color(cssColor)}
|
|
5632
|
-
.o-icon-debug-svg {
|
|
5633
|
-
display: inline-block;
|
|
5634
|
-
fill: currentColor;
|
|
5635
|
-
}
|
|
5636
|
-
`}
|
|
5637
|
-
`;
|
|
5638
|
-
|
|
5639
|
-
const InfoIconComponent = (props) => {
|
|
5640
|
-
return (React.createElement("div", { ...props },
|
|
5641
|
-
React.createElement("svg", { className: "o-icon-success-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
|
|
5642
|
-
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" }))));
|
|
5643
|
-
};
|
|
5644
|
-
var InfoIcon = styled(InfoIconComponent) `
|
|
5645
|
-
${({ width = '16px', height = '16px', color: cssColor = 'info' }) => css `
|
|
5646
|
-
width: ${width};
|
|
5647
|
-
height: ${height};
|
|
5648
|
-
${display('flex')};
|
|
5649
|
-
${alignItems('center')};
|
|
5650
|
-
${color(cssColor)}
|
|
5651
|
-
.o-icon-info-svg {
|
|
5652
|
-
display: inline-block;
|
|
5653
|
-
fill: currentColor;
|
|
5654
|
-
}
|
|
5655
|
-
`}
|
|
5656
|
-
`;
|
|
5657
|
-
|
|
5658
|
-
const WarningIconComponent = (props) => {
|
|
5659
|
-
return (React.createElement("div", { ...props },
|
|
5660
|
-
React.createElement("svg", { className: "o-icon-warning-svg", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor" },
|
|
5661
|
-
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" }))));
|
|
5662
|
-
};
|
|
5663
|
-
var WarningIcon = styled(WarningIconComponent) `
|
|
5664
|
-
${({ width = '16px', height = '16px', color: cssColor = 'warning' }) => css `
|
|
5665
|
-
width: ${width};
|
|
5666
|
-
height: ${height};
|
|
5667
|
-
${display('flex')};
|
|
5668
|
-
${alignItems('center')};
|
|
5669
|
-
${color(cssColor)}
|
|
5670
|
-
.o-icon-warning-svg {
|
|
5671
|
-
display: inline-block;
|
|
5672
|
-
fill: currentColor;
|
|
5673
|
-
}
|
|
5674
|
-
`}
|
|
5675
|
-
`;
|
|
5676
|
-
|
|
5677
5798
|
const defaultFormat = (ttlMs) => Math.ceil(ttlMs / 1000);
|
|
5678
5799
|
const ControlledTimerComponent = ({ autoStart = true, className, controller, format = defaultFormat, }) => {
|
|
5679
5800
|
const { timeMs, ttlMs } = controller.state;
|
|
@@ -6080,13 +6201,24 @@ const Property = React.memo((props) => {
|
|
|
6080
6201
|
nameSize === undefined ? undefined : (nameSize === 12 ? 12 : 12 - nameSize);
|
|
6081
6202
|
});
|
|
6082
6203
|
return (React.createElement(Row, { className: "o-property", gapX: "10px", gapY: "0px" },
|
|
6083
|
-
React.createElement(Col, { size: nameSize, sm: context.sm, md: context.md, lg: context.lg, xl: context.xl, className: "o-property-
|
|
6204
|
+
React.createElement(Col, { size: nameSize, sm: context.sm, md: context.md, lg: context.lg, xl: context.xl, className: "o-property-key" },
|
|
6205
|
+
React.createElement("span", { className: "o-property-name" }, name),
|
|
6206
|
+
props.help && (React.createElement(Tooltip, { content: props.help, placement: "top" },
|
|
6207
|
+
React.createElement(HelpIcon, null)))),
|
|
6084
6208
|
React.createElement(Col, { size: valueSize, sm: variantValueSize.sm, md: variantValueSize.md, lg: variantValueSize.lg, xl: variantValueSize.xl, className: "o-property-value" },
|
|
6085
6209
|
ErrorBoundaryComponent && React.createElement(ErrorBoundaryComponent, { ...props }, value),
|
|
6086
6210
|
!ErrorBoundaryComponent && React.createElement(React.Fragment, null, value))));
|
|
6087
6211
|
});
|
|
6088
6212
|
Property.displayName = 'Property';
|
|
6089
6213
|
|
|
6214
|
+
const isReactNode = (value) => {
|
|
6215
|
+
if (value === null || value === undefined)
|
|
6216
|
+
return true;
|
|
6217
|
+
if (Object.keys(value).includes('value')) {
|
|
6218
|
+
return false;
|
|
6219
|
+
}
|
|
6220
|
+
return true;
|
|
6221
|
+
};
|
|
6090
6222
|
const PropertiesComponent = ({ className, properties, PropertyComponent = Property, ErrorBoundaryComponent, order = false, size, sm, md, lg, xl, }) => {
|
|
6091
6223
|
const classNames = addClassname('o-properties', className);
|
|
6092
6224
|
const keys = Object.keys(properties);
|
|
@@ -6103,7 +6235,13 @@ const PropertiesComponent = ({ className, properties, PropertyComponent = Proper
|
|
|
6103
6235
|
};
|
|
6104
6236
|
}, [size, sm, md, lg, xl]);
|
|
6105
6237
|
return (React.createElement(DefaultPropertiesContext.Provider, { value: context },
|
|
6106
|
-
React.createElement("div", { className: classNames }, keys.map((key) =>
|
|
6238
|
+
React.createElement("div", { className: classNames }, keys.map((key) => {
|
|
6239
|
+
const property = properties[key];
|
|
6240
|
+
const value = isReactNode(property) ? property : property.value;
|
|
6241
|
+
const help = isReactNode(property) ? undefined : property.help;
|
|
6242
|
+
const name = isReactNode(property) ? key : property.name ?? key;
|
|
6243
|
+
return React.createElement(PropertyComponent, { key: key, name: name, value: value, help: help, ErrorBoundaryComponent: ErrorBoundaryComponent });
|
|
6244
|
+
}))));
|
|
6107
6245
|
};
|
|
6108
6246
|
|
|
6109
6247
|
const propertiesStyle = ({ theme }) => {
|
|
@@ -6116,6 +6254,24 @@ const propertiesStyle = ({ theme }) => {
|
|
|
6116
6254
|
.o-property-name {
|
|
6117
6255
|
${fontWeight(t.fontWeight)}
|
|
6118
6256
|
}
|
|
6257
|
+
.o-property-help {
|
|
6258
|
+
${textDecoration('underline')}
|
|
6259
|
+
${textDecorationStyle('dashed')}
|
|
6260
|
+
${textUnderlineOffset('0.25rem')}
|
|
6261
|
+
${cursor('help')}
|
|
6262
|
+
}
|
|
6263
|
+
.o-property-key {
|
|
6264
|
+
${display('flex')}
|
|
6265
|
+
${alignItems('center')}
|
|
6266
|
+
}
|
|
6267
|
+
|
|
6268
|
+
.o-tooltip {
|
|
6269
|
+
${cursor('pointer')}
|
|
6270
|
+
${width(5)}
|
|
6271
|
+
${marginBottom('2px')}
|
|
6272
|
+
${color('pink')}
|
|
6273
|
+
${marginLeft('xs')}
|
|
6274
|
+
}
|
|
6119
6275
|
`;
|
|
6120
6276
|
};
|
|
6121
6277
|
|
|
@@ -9744,7 +9900,12 @@ const tableStyle = ({ theme, fit = true }) => {
|
|
|
9744
9900
|
.o-table-header-title-container {
|
|
9745
9901
|
${borderBottomWidth(0)}
|
|
9746
9902
|
${paddingBottom(0)}
|
|
9903
|
+
.o-helper-icon {
|
|
9904
|
+
${marginLeft('xs')}
|
|
9905
|
+
${marginTop('-2px')}
|
|
9906
|
+
}
|
|
9747
9907
|
}
|
|
9908
|
+
|
|
9748
9909
|
}
|
|
9749
9910
|
|
|
9750
9911
|
.o-table-header-row-title, .o-table-header-row-filter {
|
|
@@ -11452,7 +11613,7 @@ const useStep = (props) => {
|
|
|
11452
11613
|
return step;
|
|
11453
11614
|
};
|
|
11454
11615
|
|
|
11455
|
-
const Step = ({ title, active = false, disabled = false, visible = true, closable = false, children, icon, uid, optional = false, showTitle = true, className, onTouch, }) => {
|
|
11616
|
+
const Step = ({ title, active = false, disabled = false, visible = true, closable = false, children, icon, uid, optional = false, showTitle = true, className, onTouch, help, }) => {
|
|
11456
11617
|
const { animate, forwardOnly } = useWizardState();
|
|
11457
11618
|
const step = useStep({
|
|
11458
11619
|
title,
|
|
@@ -11488,6 +11649,7 @@ const Step = ({ title, active = false, disabled = false, visible = true, closabl
|
|
|
11488
11649
|
return (React.createElement(CSSTransition, { in: true, timeout: animate, appear: true, onEnter: onEnter, onEntering: onEntering },
|
|
11489
11650
|
React.createElement("div", { className: addClassname('o-step-content', className) },
|
|
11490
11651
|
showTitle && React.createElement("div", { className: "o-step-content-title" }, title),
|
|
11652
|
+
help && React.createElement(Alert, { kind: "info", marginBottom: 'lg' }, help),
|
|
11491
11653
|
children)));
|
|
11492
11654
|
};
|
|
11493
11655
|
|
|
@@ -12461,5 +12623,5 @@ const TailwindTheme = (props) => {
|
|
|
12461
12623
|
return React.createElement(BaseTheme, { theme: tailwindTheme(), ...props });
|
|
12462
12624
|
};
|
|
12463
12625
|
|
|
12464
|
-
export { Accordion, AccordionComponent, AccordionContainer, AccordionPanel, ArraySelectComponent, ArrayTreeComponent, ArrayTreeSelectComponent, BaseTheme, BreakpointKeys, Button, Card, CardComponent, CardTitle, Checkbox, CheckboxCellComponent, CheckboxComponent, CloseAllIcon, Col, ColorKeys, ControlledSelectComponent, ControlledTimerComponent, ControlledWizardComponent, ControllerTreeComponent, CrossIcon, Dashboard, DashboardBody, DashboardContainer, DashboardFooter, DashboardHeader, DashboardKeys, DashboardLeft, DashboardOverlay, DashboardRight, DashboardService, DashboardServiceContext, DashboardStateContext, DashboardToggler, DefaultCellComponent, DefaultFormCellDisplayer as DefaultCellDisplayer, DefaultSelectBroker, Dropdown, DropdownButton, DropdownComponent, DropdownList, ErrorIcon, ExpandedCellComponent, FieldDescription, FieldDescriptionComponent, FieldDisplayer, FieldHelp, FieldHelpComponent, FieldLayout, FieldLayoutComponent, FileIcon, FolderIcon, FontFamiliesKeys, FontLineHeightKeys, FontSizeKeys, FontSpacingKeys, FontWeightKeys, FormCard, FormCardDisplayer, FormCheckbox, FormInput, FormSelect$1 as FormSelect, FormStep, FormTable, FormTableItemDisplayer, FormTableValueDisplayer$1 as FormTableValueDisplayer, FormTextarea, HelpIcon, Input, InputCellComponent, InputComponent, Label, List, ListItemComponent$1 as ListItemComponent, ListItemContent, ListStatus, LoadingIcon, LoadingItem$1 as LoadingItem, MenuIcon, Modal, ModalComponent, NotificationComponent, Notifications, NotificationsComponent, Password, PasswordComponent$1 as PasswordComponent, Properties, PropertiesComponent, Property, RadiusKeys, RefreshIcon, Row, SearchIcon, Select, SelectCellComponent, SelectComponent$1 as SelectComponent, SelectIconComponent, SelectInputComponent$1 as SelectInputComponent, SelectNotFoundComponent, SelectOptionComponent$1 as SelectOptionComponent, SelectService$1 as SelectService, SelectTokensComponent$1 as SelectTokensComponent, ShadowKeys, SizeKeys, SpacingKeys, Step, StepTitle, SubmitButton, SuccessIcon, Tab, TabTitle, Table, TableBodyRowComponent, TableFilterOperatorComponent, TableInputFilterComponent, TableNumberFilterComponent, TableTextFilterComponent, Tabs, Tag, TagComponent, TailwindTheme, Textarea, TextareaCellComponent, TextareaComponent, Timer, TimerComponent, TogglerIcon, Tooltip, Tree, TreeBodyComponent, TreeComponent$1 as TreeComponent, TreeConfigContext, TreeItemComponent$1 as TreeItemComponent, TreeItemContent, TreeItemToggler, TreeListComponent, TreeSelect, TreeSelectComponent$1 as TreeSelectComponent, TreeService$1 as TreeService, TreeServiceContext, TreeStateContext, TshirtKeys, UncontrolledTimerComponent, UncontrolledWizardComponent, VirtualTreeBodyComponent, VirtualTreeListComponent, Wizard, WizardComponent, WizardContainer, WizardModal, WizardModalComponent, WizardService, WizardSummary, WizardSummaryComponent, accordionStyle, addClassname, addStyle, alignContent, alignItems, alignSelf, animation, animationDelay, animationDirection, animationDuration, animationFillMode, animationIterationCount, animationName, animationPlayState, animationTimingFunction, appearance, applyOpacity, aspectRatio, backgroundAttachment, backgroundClip, backgroundColor, backgroundImage, backgroundOpacity, backgroundOrigin, backgroundPosition, backgroundRepeat, backgroundSize, baseTheme, booleanFormatter, border, borderBottom, borderBottomColor, borderBottomLeftRadius, borderBottomOpacity, borderBottomRightRadius, borderBottomStyle, borderBottomWidth, borderCollapse, borderColor, borderImage, borderImageOutset, borderImageRepeat, borderImageSlice, borderImageSource, borderImageWidth, borderLeft, borderLeftColor, borderLeftOpacity, borderLeftStyle, borderLeftWidth, borderOpacity, borderRadius, borderRight, borderRightColor, borderRightOpacity, borderRightStyle, borderRightWidth, borderSpacing, borderStyle, borderTop, borderTopColor, borderTopLeftRadius, borderTopOpacity, borderTopRightRadius, borderTopStyle, borderTopWidth, borderWidth, bottom, boxShadow, boxSizing, breakAfter, breakBefore, breakInside, buttonStyle, captionSide, cardStyle, caretColor, checkboxColumn, checkboxStyle, clear, colStyle, color, colorFormatter, columnCount, columnFill, columnGap, columnRule, columnRuleColor, columnRuleStyle, columnRuleWidth, columnSpan, columnWidth, columns, container, cssProperty, cursor, darken, dashboardOverlayStyle, defaultCellSerializer, defaultTreeQueryEngine, deriveColor, display, dropdownButtonStyle, dropdownStyle, emptyCells, enumColumn, enumFormatter, escapeCsvValue, fieldDescriptionStyle, fieldDisplayerStyle, fieldHelpStyle, fieldStyle, fill, filterListStyle, findSelectItem, findSelectItemIndex, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, float, font, fontFamily, fontFeatureSettings, fontKerning, fontLanguageOverride, fontOpticalSizing, fontSize, fontSizeAdjust, fontStretch, fontStyle, fontSynthesis, fontVariant, fontVariantAlternates, fontVariantCaps, fontVariantEastAsian, fontVariantLigatures, fontVariantNumeric, fontVariantPosition, fontVariationSettings, fontWeight, gap, grid, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnEnd, gridColumnGap, gridColumnStart, gridGap, gridRow, gridRowEnd, gridRowGap, gridRowStart, gridTemplate, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, hexToRgb, hyphens, iconHeight, iconWidth, imageRendering, inputColumn, justifyContent, justifySelf, left, letterSpacing, lighten, lineHeight, lineHeightStep, linkColumn, listStyle, listStyleImage, listStylePosition, listStyleType, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxHeight, maxWidth, maxWidthPopperModifier, minHeight, minWidth, minWidthPopperModifier, modalStyle, notifcationsStyle, numberColumn, objectFit, objectPosition, opacity, order, orphans, outline, outlineColor, outlineOffset, outlineStyle, outlineWidth, overflow, overflowBlock, overflowInline, overflowWrap, overflowX, overflowY, overscrollBehavior, overscrollBehaviorBlock, overscrollBehaviorInline, overscrollBehaviorX, overscrollBehaviorY, padding, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, passwordStyle, perspective, perspectiveOrigin, placeContent, placeItems, placeSelf, pointerEvents, position, preflight, propertiesStyle, pxFormatter, resize, rgbToHex, right, rotate, rowGap, rowStyle, sameWidthPopperModifier, scale, selectColumn, shouldCheckSelect, stroke, strokeWidth, tableLayout, tableStyle, tagStyle, tailwindPalette, tailwindTheme, textAlign, textColumn, textDecoration, textDecorationColor, textDecorationLine, textDecorationStyle, textDecorationThickness, textEmphasis, textEmphasisColor, textEmphasisPosition, textEmphasisStyle, textIdent, textJustify, textOpacity, textOverflow, textShadow, textTransform, textUnderlineOffset, textUnderlinePosition, textareaColumn, themeFormatter, timerStyle, titlelize, toCss, top, touchAction, transform, transformOrigin, transition, transitionDelay, transitionDuration, transitionProperty, transitionTimingFunction, useCheckboxColumn, useClickOutside, useColumns, useDashboard, useDashboardHorizontalPanel, useDashboardService, useDashboardState, useDashboardVerticalPanel, useDashoardBodyPanel, useDropdown, useEnumColumn, useFieldLayout, useFocusOutside, useFormTableContext, useInputColumn$1 as useInputColumn, useLinkColumn, useListController, useInputColumn as useNumberColumn, useSelectColumn, useSelectController, useSelectService, useTab, useTableController, useTableService, useTabsController, useTabsService, useTabsState, useTextColumn, useTextareaColumn, useTreeConfig, useTreeController, useTreeInitialState, useTreeItemContext, useTreeSelectController, useTreeService, useTreeState, userSelect, verticalAlign, visibility, whiteSpace, widows, width, wizardModalStyle, wizardStyle, wizardSummaryStyle, wordBreak, wordSpacing, zIndex, zoom };
|
|
12626
|
+
export { Accordion, AccordionComponent, AccordionContainer, AccordionPanel, Alert, AlertComponent, ArraySelectComponent, ArrayTreeComponent, ArrayTreeSelectComponent, BaseTheme, BreakpointKeys, Button, Card, CardComponent, CardTitle, Checkbox, CheckboxCellComponent, CheckboxComponent, CloseAllIcon, Col, ColorKeys, ControlledSelectComponent, ControlledTimerComponent, ControlledWizardComponent, ControllerTreeComponent, CrossIcon, Dashboard, DashboardBody, DashboardContainer, DashboardFooter, DashboardHeader, DashboardKeys, DashboardLeft, DashboardOverlay, DashboardRight, DashboardService, DashboardServiceContext, DashboardStateContext, DashboardToggler, DefaultCellComponent, DefaultFormCellDisplayer as DefaultCellDisplayer, DefaultSelectBroker, Dropdown, DropdownButton, DropdownComponent, DropdownList, ErrorIcon, ExpandedCellComponent, FieldDescription, FieldDescriptionComponent, FieldDisplayer, FieldHelp, FieldHelpComponent, FieldLayout, FieldLayoutComponent, FileIcon, FolderIcon, FontFamiliesKeys, FontLineHeightKeys, FontSizeKeys, FontSpacingKeys, FontWeightKeys, FormCard, FormCardDisplayer, FormCheckbox, FormInput, FormSelect$1 as FormSelect, FormStep, FormTable, FormTableItemDisplayer, FormTableValueDisplayer$1 as FormTableValueDisplayer, FormTextarea, HelpIcon, Input, InputCellComponent, InputComponent, Label, List, ListItemComponent$1 as ListItemComponent, ListItemContent, ListStatus, LoadingIcon, LoadingItem$1 as LoadingItem, MenuIcon, Modal, ModalComponent, NotificationComponent, Notifications, NotificationsComponent, Password, PasswordComponent$1 as PasswordComponent, Properties, PropertiesComponent, Property, RadiusKeys, RefreshIcon, Row, SearchIcon, Select, SelectCellComponent, SelectComponent$1 as SelectComponent, SelectIconComponent, SelectInputComponent$1 as SelectInputComponent, SelectNotFoundComponent, SelectOptionComponent$1 as SelectOptionComponent, SelectService$1 as SelectService, SelectTokensComponent$1 as SelectTokensComponent, ShadowKeys, SizeKeys, SpacingKeys, Step, StepTitle, SubmitButton, SuccessIcon, Tab, TabTitle, Table, TableBodyRowComponent, TableFilterOperatorComponent, TableInputFilterComponent, TableNumberFilterComponent, TableTextFilterComponent, Tabs, Tag, TagComponent, TailwindTheme, Textarea, TextareaCellComponent, TextareaComponent, Timer, TimerComponent, TogglerIcon, Tooltip, Tree, TreeBodyComponent, TreeComponent$1 as TreeComponent, TreeConfigContext, TreeItemComponent$1 as TreeItemComponent, TreeItemContent, TreeItemToggler, TreeListComponent, TreeSelect, TreeSelectComponent$1 as TreeSelectComponent, TreeService$1 as TreeService, TreeServiceContext, TreeStateContext, TshirtKeys, UncontrolledTimerComponent, UncontrolledWizardComponent, VirtualTreeBodyComponent, VirtualTreeListComponent, Wizard, WizardComponent, WizardContainer, WizardModal, WizardModalComponent, WizardService, WizardSummary, WizardSummaryComponent, accordionStyle, addClassname, addStyle, alertStyle, alignContent, alignItems, alignSelf, animation, animationDelay, animationDirection, animationDuration, animationFillMode, animationIterationCount, animationName, animationPlayState, animationTimingFunction, appearance, applyOpacity, aspectRatio, backgroundAttachment, backgroundClip, backgroundColor, backgroundImage, backgroundOpacity, backgroundOrigin, backgroundPosition, backgroundRepeat, backgroundSize, baseTheme, booleanFormatter, border, borderBottom, borderBottomColor, borderBottomLeftRadius, borderBottomOpacity, borderBottomRightRadius, borderBottomStyle, borderBottomWidth, borderCollapse, borderColor, borderImage, borderImageOutset, borderImageRepeat, borderImageSlice, borderImageSource, borderImageWidth, borderLeft, borderLeftColor, borderLeftOpacity, borderLeftStyle, borderLeftWidth, borderOpacity, borderRadius, borderRight, borderRightColor, borderRightOpacity, borderRightStyle, borderRightWidth, borderSpacing, borderStyle, borderTop, borderTopColor, borderTopLeftRadius, borderTopOpacity, borderTopRightRadius, borderTopStyle, borderTopWidth, borderWidth, bottom, boxShadow, boxSizing, breakAfter, breakBefore, breakInside, buttonStyle, captionSide, cardStyle, caretColor, checkboxColumn, checkboxStyle, clear, colStyle, color, colorFormatter, columnCount, columnFill, columnGap, columnRule, columnRuleColor, columnRuleStyle, columnRuleWidth, columnSpan, columnWidth, columns, container, cssProperty, cursor, darken, dashboardOverlayStyle, defaultCellSerializer, defaultTreeQueryEngine, deriveColor, display, dropdownButtonStyle, dropdownStyle, emptyCells, enumColumn, enumFormatter, escapeCsvValue, fieldDescriptionStyle, fieldDisplayerStyle, fieldHelpStyle, fieldStyle, fill, filterListStyle, findSelectItem, findSelectItemIndex, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, float, font, fontFamily, fontFeatureSettings, fontKerning, fontLanguageOverride, fontOpticalSizing, fontSize, fontSizeAdjust, fontStretch, fontStyle, fontSynthesis, fontVariant, fontVariantAlternates, fontVariantCaps, fontVariantEastAsian, fontVariantLigatures, fontVariantNumeric, fontVariantPosition, fontVariationSettings, fontWeight, gap, grid, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnEnd, gridColumnGap, gridColumnStart, gridGap, gridRow, gridRowEnd, gridRowGap, gridRowStart, gridTemplate, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, hexToRgb, hyphens, iconHeight, iconWidth, imageRendering, inputColumn, justifyContent, justifySelf, left, letterSpacing, lighten, lineHeight, lineHeightStep, linkColumn, listStyle, listStyleImage, listStylePosition, listStyleType, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxHeight, maxWidth, maxWidthPopperModifier, minHeight, minWidth, minWidthPopperModifier, modalStyle, notifcationsStyle, numberColumn, objectFit, objectPosition, opacity, order, orphans, outline, outlineColor, outlineOffset, outlineStyle, outlineWidth, overflow, overflowBlock, overflowInline, overflowWrap, overflowX, overflowY, overscrollBehavior, overscrollBehaviorBlock, overscrollBehaviorInline, overscrollBehaviorX, overscrollBehaviorY, padding, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, passwordStyle, perspective, perspectiveOrigin, placeContent, placeItems, placeSelf, pointerEvents, position, preflight, propertiesStyle, pxFormatter, resize, rgbToHex, right, rotate, rowGap, rowStyle, sameWidthPopperModifier, scale, selectColumn, shouldCheckSelect, stroke, strokeWidth, tableLayout, tableStyle, tagStyle, tailwindPalette, tailwindTheme, textAlign, textColumn, textDecoration, textDecorationColor, textDecorationLine, textDecorationStyle, textDecorationThickness, textEmphasis, textEmphasisColor, textEmphasisPosition, textEmphasisStyle, textIdent, textJustify, textOpacity, textOverflow, textShadow, textTransform, textUnderlineOffset, textUnderlinePosition, textareaColumn, themeFormatter, timerStyle, titlelize, toCss, top, touchAction, transform, transformOrigin, transition, transitionDelay, transitionDuration, transitionProperty, transitionTimingFunction, useCheckboxColumn, useClickOutside, useColumns, useDashboard, useDashboardHorizontalPanel, useDashboardService, useDashboardState, useDashboardVerticalPanel, useDashoardBodyPanel, useDropdown, useEnumColumn, useFieldLayout, useFocusOutside, useFormTableContext, useInputColumn$1 as useInputColumn, useLinkColumn, useListController, useInputColumn as useNumberColumn, useSelectColumn, useSelectController, useSelectService, useTab, useTableController, useTableService, useTabsController, useTabsService, useTabsState, useTextColumn, useTextareaColumn, useTreeConfig, useTreeController, useTreeInitialState, useTreeItemContext, useTreeSelectController, useTreeService, useTreeState, userSelect, verticalAlign, visibility, whiteSpace, widows, width, wizardModalStyle, wizardStyle, wizardSummaryStyle, wordBreak, wordSpacing, zIndex, zoom };
|
|
12465
12627
|
//# sourceMappingURL=index.module.js.map
|