@superdispatch/ui 0.21.8 → 0.21.14
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-node/index.js +62 -14
- package/dist-node/index.js.map +1 -1
- package/dist-src/index.js +1 -0
- package/dist-src/info-tooltip/InfoTooltip.js +54 -0
- package/dist-types/index.d.ts +378 -366
- package/dist-web/index.js +64 -17
- package/dist-web/index.js.map +1 -1
- package/package.json +39 -39
package/dist-node/index.js
CHANGED
|
@@ -1660,6 +1660,53 @@ var InfoCard = /*#__PURE__*/React.forwardRef((_ref, _ref2) => {
|
|
|
1660
1660
|
});
|
|
1661
1661
|
if (process.env.NODE_ENV !== "production") InfoCard.displayName = "InfoCard";
|
|
1662
1662
|
|
|
1663
|
+
var _excluded$h = ["children", "iconButtonProps", "fontSize", "TextProps", "title", "isOpen", "onClick", "onClose"];
|
|
1664
|
+
var Root = /*#__PURE__*/styled__default.div.withConfig({
|
|
1665
|
+
displayName: "InfoTooltip__Root",
|
|
1666
|
+
componentId: "SD__sc-1emqpa9-0"
|
|
1667
|
+
})(["display:flex;align-items:center;"]);
|
|
1668
|
+
var InfoTooltip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1669
|
+
var {
|
|
1670
|
+
children,
|
|
1671
|
+
iconButtonProps,
|
|
1672
|
+
fontSize = 'small',
|
|
1673
|
+
TextProps,
|
|
1674
|
+
title,
|
|
1675
|
+
isOpen,
|
|
1676
|
+
onClick,
|
|
1677
|
+
onClose
|
|
1678
|
+
} = _ref,
|
|
1679
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
1680
|
+
|
|
1681
|
+
var tooltip = /*#__PURE__*/jsxRuntime.jsx(core.Tooltip, _objectSpread(_objectSpread({
|
|
1682
|
+
open: isOpen,
|
|
1683
|
+
title: title,
|
|
1684
|
+
placement: "top",
|
|
1685
|
+
onClose: onClose,
|
|
1686
|
+
disableFocusListener: true,
|
|
1687
|
+
disableTouchListener: true,
|
|
1688
|
+
onClick: onClick,
|
|
1689
|
+
ref: ref
|
|
1690
|
+
}, props), {}, {
|
|
1691
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.IconButton, _objectSpread(_objectSpread({}, iconButtonProps), {}, {
|
|
1692
|
+
size: "small",
|
|
1693
|
+
onMouseOver: onClick,
|
|
1694
|
+
children: /*#__PURE__*/jsxRuntime.jsx(icons.Info, {
|
|
1695
|
+
color: "action",
|
|
1696
|
+
fontSize: fontSize
|
|
1697
|
+
})
|
|
1698
|
+
}))
|
|
1699
|
+
}));
|
|
1700
|
+
|
|
1701
|
+
if (!children) return tooltip;
|
|
1702
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Root, {
|
|
1703
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, TextProps), {}, {
|
|
1704
|
+
children: children
|
|
1705
|
+
})), tooltip]
|
|
1706
|
+
});
|
|
1707
|
+
});
|
|
1708
|
+
if (process.env.NODE_ENV !== "production") InfoTooltip.displayName = "InfoTooltip";
|
|
1709
|
+
|
|
1663
1710
|
function inlineRootMixin(spaceProp, noWrap, verticalAlign, horizontalAlign) {
|
|
1664
1711
|
var space = parseSpaceProp(spaceProp);
|
|
1665
1712
|
return styled.css(["&:before{margin-top:", "px;}& > div{display:flex;margin-left:-", "px;flex-wrap:", ";align-items:", ";justify-content:", ";& > div{&:empty{display:none;}min-width:0;flex-shrink:0;max-width:100%;margin-top:", "px;margin-left:", "px;}}"], -space - 1, space, noWrap ? 'nowrap' : 'wrap', parseAlignProp(verticalAlign), parseAlignProp(horizontalAlign), space, space);
|
|
@@ -1709,7 +1756,7 @@ var Inline = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
1709
1756
|
});
|
|
1710
1757
|
if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
|
|
1711
1758
|
|
|
1712
|
-
var _excluded$
|
|
1759
|
+
var _excluded$i = ["value", "inputRef", "onChange", "isNumericString", "thousandSeparator", "disableValueParsing"],
|
|
1713
1760
|
_excluded2$3 = ["id", "InputProps"];
|
|
1714
1761
|
|
|
1715
1762
|
function NumberInputComponent(_ref) {
|
|
@@ -1721,7 +1768,7 @@ function NumberInputComponent(_ref) {
|
|
|
1721
1768
|
thousandSeparator = true,
|
|
1722
1769
|
disableValueParsing
|
|
1723
1770
|
} = _ref,
|
|
1724
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1771
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
1725
1772
|
|
|
1726
1773
|
return /*#__PURE__*/jsxRuntime.jsx(NumberFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
1727
1774
|
value: value !== null && value !== void 0 ? value : '',
|
|
@@ -1761,7 +1808,7 @@ var NumberField = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
1761
1808
|
if (process.env.NODE_ENV !== "production") NumberField.displayName = "NumberField";
|
|
1762
1809
|
NumberField.displayName = 'NumberField';
|
|
1763
1810
|
|
|
1764
|
-
var _excluded$
|
|
1811
|
+
var _excluded$j = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
1765
1812
|
var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1766
1813
|
var {
|
|
1767
1814
|
label,
|
|
@@ -1772,7 +1819,7 @@ var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1772
1819
|
helperText,
|
|
1773
1820
|
FormControlLabelProps: formControlLabelProps
|
|
1774
1821
|
} = _ref,
|
|
1775
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1822
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
1776
1823
|
|
|
1777
1824
|
return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
|
|
1778
1825
|
error: error,
|
|
@@ -1792,7 +1839,7 @@ var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1792
1839
|
});
|
|
1793
1840
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
1794
1841
|
|
|
1795
|
-
var _excluded$
|
|
1842
|
+
var _excluded$k = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
1796
1843
|
var RadioGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1797
1844
|
var {
|
|
1798
1845
|
name,
|
|
@@ -1805,7 +1852,7 @@ var RadioGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1805
1852
|
FormHelperTextProps: formHelperTextProps,
|
|
1806
1853
|
children
|
|
1807
1854
|
} = _ref,
|
|
1808
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
1855
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
1809
1856
|
|
|
1810
1857
|
return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1811
1858
|
hiddenLabel: !label,
|
|
@@ -1855,7 +1902,7 @@ function useMinBreakpoint(minBreakpoint) {
|
|
|
1855
1902
|
return minBreakpointIDX < breakpointIDX;
|
|
1856
1903
|
}
|
|
1857
1904
|
|
|
1858
|
-
var _excluded$
|
|
1905
|
+
var _excluded$l = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
1859
1906
|
_excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
1860
1907
|
var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
1861
1908
|
root: {
|
|
@@ -1900,7 +1947,7 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1900
1947
|
classes,
|
|
1901
1948
|
variant = 'default'
|
|
1902
1949
|
} = _ref,
|
|
1903
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1950
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
1904
1951
|
|
|
1905
1952
|
var _useStyles = useStyles$b({
|
|
1906
1953
|
classes
|
|
@@ -1950,7 +1997,7 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1950
1997
|
});
|
|
1951
1998
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
1952
1999
|
|
|
1953
|
-
var _excluded$
|
|
2000
|
+
var _excluded$m = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
1954
2001
|
|
|
1955
2002
|
function SlideTransition(props) {
|
|
1956
2003
|
return /*#__PURE__*/jsxRuntime.jsx(core.Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1969,7 +2016,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1969
2016
|
hasCloseButton = onClose != null,
|
|
1970
2017
|
TransitionComponent = SlideTransition
|
|
1971
2018
|
} = _ref,
|
|
1972
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2019
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
1973
2020
|
|
|
1974
2021
|
function handleClose(reason) {
|
|
1975
2022
|
if (reason !== 'clickaway') {
|
|
@@ -1998,7 +2045,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1998
2045
|
});
|
|
1999
2046
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
2000
2047
|
|
|
2001
|
-
var _excluded$
|
|
2048
|
+
var _excluded$n = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
2002
2049
|
|
|
2003
2050
|
function warnContext() {
|
|
2004
2051
|
// eslint-disable-next-line no-console
|
|
@@ -2044,7 +2091,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
2044
2091
|
id = String(key),
|
|
2045
2092
|
autoHideDuration = 5000
|
|
2046
2093
|
} = _ref3,
|
|
2047
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
2094
|
+
props = _objectWithoutProperties(_ref3, _excluded$n);
|
|
2048
2095
|
|
|
2049
2096
|
function removeSnackbar() {
|
|
2050
2097
|
setStack(prev => {
|
|
@@ -2141,7 +2188,7 @@ var Stack = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
2141
2188
|
});
|
|
2142
2189
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
2143
2190
|
|
|
2144
|
-
var _excluded$
|
|
2191
|
+
var _excluded$o = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
2145
2192
|
var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
2146
2193
|
root: {
|
|
2147
2194
|
maxWidth: '100%',
|
|
@@ -2225,7 +2272,7 @@ var Tag = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2225
2272
|
fontWeight = 'bold',
|
|
2226
2273
|
component = 'div'
|
|
2227
2274
|
} = _ref,
|
|
2228
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2275
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
2229
2276
|
|
|
2230
2277
|
var styles = useStyles$c({
|
|
2231
2278
|
classes
|
|
@@ -3771,6 +3818,7 @@ exports.DropdownButton = DropdownButton;
|
|
|
3771
3818
|
exports.ExitTransitionPlaceholder = ExitTransitionPlaceholder;
|
|
3772
3819
|
exports.GridStack = GridStack;
|
|
3773
3820
|
exports.InfoCard = InfoCard;
|
|
3821
|
+
exports.InfoTooltip = InfoTooltip;
|
|
3774
3822
|
exports.Inline = Inline;
|
|
3775
3823
|
exports.InlineGrid = InlineGrid;
|
|
3776
3824
|
exports.NumberField = NumberField;
|