@superdispatch/ui 0.22.1 → 0.23.0
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 +90 -10
- package/dist-node/index.js.map +1 -1
- package/dist-src/index.js +1 -0
- package/dist-src/radio/RadioFieldCard.js +88 -0
- package/dist-types/index.d.ts +14 -1
- package/dist-web/index.js +94 -15
- package/dist-web/index.js.map +1 -1
- package/package.json +2 -2
package/dist-src/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export * from "./props/CollapseProp.js";
|
|
|
25
25
|
export * from "./props/ResponsiveProp.js";
|
|
26
26
|
export * from "./props/SpaceProp.js";
|
|
27
27
|
export * from "./radio/RadioField.js";
|
|
28
|
+
export * from "./radio/RadioFieldCard.js";
|
|
28
29
|
export * from "./radio/RadioGroupField.js";
|
|
29
30
|
export * from "./responsive/CollapseBreakpoint.js";
|
|
30
31
|
export * from "./responsive/MinBreakpoint.js";
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["name", "value", "label", "caption", "disabled", "icon", "checked", "onChange"];
|
|
4
|
+
import { ButtonBase, Card as MuiCard, FormControlLabel as MuiFormControlLabel, Radio, Typography } from '@material-ui/core';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import { Column } from "../columns/Column.js";
|
|
8
|
+
import { Columns } from "../columns/Columns.js";
|
|
9
|
+
import { Color } from "../theme/Color.js";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var ClickableCard = /*#__PURE__*/styled(ButtonBase).withConfig({
|
|
13
|
+
displayName: "RadioFieldCard__ClickableCard",
|
|
14
|
+
componentId: "SD__sc-5etge2-0"
|
|
15
|
+
})(["display:block;text-align:initial;width:100%;"]);
|
|
16
|
+
var Card = /*#__PURE__*/styled(MuiCard).withConfig({
|
|
17
|
+
displayName: "RadioFieldCard__Card",
|
|
18
|
+
componentId: "SD__sc-5etge2-1"
|
|
19
|
+
})(["width:100%;opacity:", ";"], props => props.disabled ? 0.5 : 1);
|
|
20
|
+
var FormControlLabel = /*#__PURE__*/styled(MuiFormControlLabel).withConfig({
|
|
21
|
+
displayName: "RadioFieldCard__FormControlLabel",
|
|
22
|
+
componentId: "SD__sc-5etge2-2"
|
|
23
|
+
})(["width:100%;"]);
|
|
24
|
+
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
25
|
+
displayName: "RadioFieldCard__Content",
|
|
26
|
+
componentId: "SD__sc-5etge2-3"
|
|
27
|
+
})(["padding:16px;width:100%;border-radius:4px;border:1px solid ", ";"], _ref => {
|
|
28
|
+
var {
|
|
29
|
+
active
|
|
30
|
+
} = _ref;
|
|
31
|
+
return active ? Color.Blue300 : Color.Silver500;
|
|
32
|
+
});
|
|
33
|
+
var Caption = /*#__PURE__*/styled.div.withConfig({
|
|
34
|
+
displayName: "RadioFieldCard__Caption",
|
|
35
|
+
componentId: "SD__sc-5etge2-4"
|
|
36
|
+
})(["padding-left:32px;"]);
|
|
37
|
+
export var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
38
|
+
var {
|
|
39
|
+
name,
|
|
40
|
+
value,
|
|
41
|
+
label,
|
|
42
|
+
caption,
|
|
43
|
+
disabled,
|
|
44
|
+
icon,
|
|
45
|
+
checked,
|
|
46
|
+
onChange
|
|
47
|
+
} = _ref2,
|
|
48
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
49
|
+
|
|
50
|
+
return /*#__PURE__*/_jsx(Card, {
|
|
51
|
+
disabled: disabled,
|
|
52
|
+
children: /*#__PURE__*/_jsx(ClickableCard, _objectSpread(_objectSpread({
|
|
53
|
+
name: name,
|
|
54
|
+
disabled: disabled
|
|
55
|
+
}, props), {}, {
|
|
56
|
+
children: /*#__PURE__*/_jsx(Content, {
|
|
57
|
+
active: checked,
|
|
58
|
+
children: /*#__PURE__*/_jsxs(Columns, {
|
|
59
|
+
space: "small",
|
|
60
|
+
children: [/*#__PURE__*/_jsxs(Column, {
|
|
61
|
+
children: [/*#__PURE__*/_jsx(FormControlLabel, {
|
|
62
|
+
value: value,
|
|
63
|
+
name: name,
|
|
64
|
+
control: /*#__PURE__*/_jsx(Radio, {
|
|
65
|
+
ref: ref,
|
|
66
|
+
checked: checked
|
|
67
|
+
}),
|
|
68
|
+
label: /*#__PURE__*/_jsx(Typography, {
|
|
69
|
+
variant: "h4",
|
|
70
|
+
children: label
|
|
71
|
+
})
|
|
72
|
+
}), /*#__PURE__*/_jsx(Caption, {
|
|
73
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
74
|
+
color: "textSecondary",
|
|
75
|
+
variant: "caption",
|
|
76
|
+
children: caption
|
|
77
|
+
})
|
|
78
|
+
})]
|
|
79
|
+
}), /*#__PURE__*/_jsx(Column, {
|
|
80
|
+
width: "content",
|
|
81
|
+
children: icon
|
|
82
|
+
})]
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
}))
|
|
86
|
+
}, value);
|
|
87
|
+
});
|
|
88
|
+
if (process.env.NODE_ENV !== "production") RadioFieldCard.displayName = "RadioFieldCard";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -263,6 +263,19 @@ interface RadioFieldProps extends Omit<RadioProps, 'onBlur' | 'onChange'>, Pick<
|
|
|
263
263
|
}
|
|
264
264
|
declare const RadioField: ForwardRefExoticComponent<RadioFieldProps>;
|
|
265
265
|
|
|
266
|
+
interface RadioCardItemProps {
|
|
267
|
+
value: string;
|
|
268
|
+
label: string;
|
|
269
|
+
name?: string;
|
|
270
|
+
caption?: string;
|
|
271
|
+
icon?: React.ReactNode;
|
|
272
|
+
}
|
|
273
|
+
interface RadioCardProps extends Omit<ButtonBaseProps, 'name' | 'value'>, RadioCardItemProps {
|
|
274
|
+
disabled?: boolean;
|
|
275
|
+
checked?: boolean;
|
|
276
|
+
}
|
|
277
|
+
declare const RadioFieldCard: ForwardRefExoticComponent<RadioCardProps>;
|
|
278
|
+
|
|
266
279
|
interface RadioGroupFieldProps extends Omit<FormControlProps, 'hiddenLabel' | 'onChange'>, Pick<RadioGroupProps, 'name' | 'value' | 'onChange'> {
|
|
267
280
|
RadioGroupProps?: Omit<RadioGroupProps, 'value' | 'onChange' | 'children'>;
|
|
268
281
|
label?: ReactNode;
|
|
@@ -503,4 +516,4 @@ interface VisibilityObserverProps extends VisibilityObserverOptions {
|
|
|
503
516
|
}
|
|
504
517
|
declare function VisibilityObserver({ render, onChange, ...options }: VisibilityObserverProps): null | ReactElement;
|
|
505
518
|
|
|
506
|
-
export { AdaptiveToolbar, AdaptiveToolbarDropdownItem, AdaptiveToolbarItem, AdaptiveToolbarProps, AdaptiveVerticalToolbar, AdaptiveVerticalToolbarItem, AdaptiveVerticalToolbarProps, AvatarButton, AvatarButtonClassKey, AvatarButtonProps, Button, ButtonProps, CardButton, CardButtonClassKey, CardButtonProps, CheckboxField, CheckboxFieldProps, CheckboxGroupField, CheckboxGroupFieldProps, CollapseBreakpoint, CollapseProp, Color, ColorProp, ColorVariant, Column, ColumnProps, ColumnWidth, Columns, ColumnsProps, DescriptionList, DescriptionListItem, DescriptionListItemProps, DescriptionListProps, DrawerActions, DrawerActionsProps, DrawerContent, DrawerContentProps, DrawerList, DrawerListProps, DrawerTitle, DrawerTitleProps, DropdownButton, ElementVisibility, ExitTransitionPlaceholder, GridStack, GridStackProps, HorizontalAlign, InfoCard, InfoCardClassKey, InfoCardProps, InfoTooltip, Inline, InlineGrid, InlineGridProps, InlineProps, MinBreakpoint, NegativeSpaceProp, NumberField, NumberFieldProps, OverflowText, OverflowTextProps, PartialResponsivePropRecord, RadioField, RadioFieldProps, RadioGroupField, RadioGroupFieldProps, ResponsiveContext, ResponsiveContextProvider, ResponsiveContextProviderProps, ResponsiveProp, ResponsivePropPrimitive, ResponsivePropRecord, ResponsivePropTuple, ResponsivePropTupleInit, Snackbar, SnackbarCloseReason, SnackbarContent, SnackbarContentProps, SnackbarProps, SnackbarStack, SnackbarStackConsumer, SnackbarStackOptions, SnackbarStackProvider, SnackbarStackProviderProps, SnackbarVariant, SpaceProp, Stack, StackProps, SuperDispatchTheme, Tag, TagClassKey, TagProps, ThemeProvider, ThemeProviderProps, Tiles, TilesColumns, TilesProps, TilesSpace, VerticalAlign, VisibilityObserver, VisibilityObserverOptions, VisibilityObserverProps, VisibilityObserverRenderProps, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
519
|
+
export { AdaptiveToolbar, AdaptiveToolbarDropdownItem, AdaptiveToolbarItem, AdaptiveToolbarProps, AdaptiveVerticalToolbar, AdaptiveVerticalToolbarItem, AdaptiveVerticalToolbarProps, AvatarButton, AvatarButtonClassKey, AvatarButtonProps, Button, ButtonProps, CardButton, CardButtonClassKey, CardButtonProps, CheckboxField, CheckboxFieldProps, CheckboxGroupField, CheckboxGroupFieldProps, CollapseBreakpoint, CollapseProp, Color, ColorProp, ColorVariant, Column, ColumnProps, ColumnWidth, Columns, ColumnsProps, DescriptionList, DescriptionListItem, DescriptionListItemProps, DescriptionListProps, DrawerActions, DrawerActionsProps, DrawerContent, DrawerContentProps, DrawerList, DrawerListProps, DrawerTitle, DrawerTitleProps, DropdownButton, ElementVisibility, ExitTransitionPlaceholder, GridStack, GridStackProps, HorizontalAlign, InfoCard, InfoCardClassKey, InfoCardProps, InfoTooltip, Inline, InlineGrid, InlineGridProps, InlineProps, MinBreakpoint, NegativeSpaceProp, NumberField, NumberFieldProps, OverflowText, OverflowTextProps, PartialResponsivePropRecord, RadioCardItemProps, RadioField, RadioFieldCard, RadioFieldProps, RadioGroupField, RadioGroupFieldProps, ResponsiveContext, ResponsiveContextProvider, ResponsiveContextProviderProps, ResponsiveProp, ResponsivePropPrimitive, ResponsivePropRecord, ResponsivePropTuple, ResponsivePropTupleInit, Snackbar, SnackbarCloseReason, SnackbarContent, SnackbarContentProps, SnackbarProps, SnackbarStack, SnackbarStackConsumer, SnackbarStackOptions, SnackbarStackProvider, SnackbarStackProviderProps, SnackbarVariant, SpaceProp, Stack, StackProps, SuperDispatchTheme, Tag, TagClassKey, TagProps, ThemeProvider, ThemeProviderProps, Tiles, TilesColumns, TilesProps, TilesSpace, VerticalAlign, VisibilityObserver, VisibilityObserverOptions, VisibilityObserverProps, VisibilityObserverRenderProps, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
package/dist-web/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import { Button as Button$1, CircularProgress, ButtonGroup, Popover, MenuList, Toolbar, Grid, MenuItem, Typography, Menu, Divider, ButtonBase, Avatar, FormControl, FormControlLabel, Checkbox, FormHelperText, FormLabel, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, Card, CardContent, IconButton, TextField, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, Portal, Snackbar as Snackbar$1, Slide, CssBaseline, createTheme, createGenerateClassName } from '@material-ui/core';
|
|
3
|
+
import { Button as Button$1, CircularProgress, ButtonGroup, Popover, MenuList, Toolbar, Grid, MenuItem, Typography, Menu, Divider, ButtonBase, Avatar, FormControl, FormControlLabel as FormControlLabel$1, Checkbox, FormHelperText, FormLabel, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, Card as Card$1, CardContent, IconButton, TextField, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, Portal, Snackbar as Snackbar$1, Slide, CssBaseline, createTheme, createGenerateClassName } from '@material-ui/core';
|
|
4
4
|
import { MoreHoriz, Info, Close, Warning, CheckCircle } from '@material-ui/icons';
|
|
5
5
|
import { makeStyles, StylesProvider, ThemeProvider as ThemeProvider$1 } from '@material-ui/styles';
|
|
6
6
|
import { forwardRef, useState, useRef, useLayoutEffect, cloneElement, useMemo, useContext, createContext, Children, useCallback, useEffect } from 'react';
|
|
@@ -800,7 +800,7 @@ var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
800
800
|
|
|
801
801
|
return /*#__PURE__*/jsxs(FormControl, {
|
|
802
802
|
error: error,
|
|
803
|
-
children: [/*#__PURE__*/jsx(FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
|
|
803
|
+
children: [/*#__PURE__*/jsx(FormControlLabel$1, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
|
|
804
804
|
label: label,
|
|
805
805
|
checked: checked,
|
|
806
806
|
onBlur: onBlur,
|
|
@@ -1640,7 +1640,7 @@ var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
|
|
|
1640
1640
|
var [rootNode, setRootNode] = useState(null);
|
|
1641
1641
|
var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
|
|
1642
1642
|
var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
|
|
1643
|
-
return /*#__PURE__*/jsx(Card, _objectSpread(_objectSpread({}, props), {}, {
|
|
1643
|
+
return /*#__PURE__*/jsx(Card$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
1644
1644
|
ref: node => {
|
|
1645
1645
|
assignRef(_ref2, node);
|
|
1646
1646
|
setRootNode(node);
|
|
@@ -1818,7 +1818,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1818
1818
|
|
|
1819
1819
|
return /*#__PURE__*/jsxs(FormControl, {
|
|
1820
1820
|
error: error,
|
|
1821
|
-
children: [/*#__PURE__*/jsx(FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
|
|
1821
|
+
children: [/*#__PURE__*/jsx(FormControlLabel$1, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
|
|
1822
1822
|
label: label,
|
|
1823
1823
|
checked: checked,
|
|
1824
1824
|
onBlur: onBlur,
|
|
@@ -1834,7 +1834,86 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1834
1834
|
});
|
|
1835
1835
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
1836
1836
|
|
|
1837
|
-
var _excluded$k = ["name", "value", "
|
|
1837
|
+
var _excluded$k = ["name", "value", "label", "caption", "disabled", "icon", "checked", "onChange"];
|
|
1838
|
+
var ClickableCard = /*#__PURE__*/styled(ButtonBase).withConfig({
|
|
1839
|
+
displayName: "RadioFieldCard__ClickableCard",
|
|
1840
|
+
componentId: "SD__sc-5etge2-0"
|
|
1841
|
+
})(["display:block;text-align:initial;width:100%;"]);
|
|
1842
|
+
var Card = /*#__PURE__*/styled(Card$1).withConfig({
|
|
1843
|
+
displayName: "RadioFieldCard__Card",
|
|
1844
|
+
componentId: "SD__sc-5etge2-1"
|
|
1845
|
+
})(["width:100%;opacity:", ";"], props => props.disabled ? 0.5 : 1);
|
|
1846
|
+
var FormControlLabel = /*#__PURE__*/styled(FormControlLabel$1).withConfig({
|
|
1847
|
+
displayName: "RadioFieldCard__FormControlLabel",
|
|
1848
|
+
componentId: "SD__sc-5etge2-2"
|
|
1849
|
+
})(["width:100%;"]);
|
|
1850
|
+
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
1851
|
+
displayName: "RadioFieldCard__Content",
|
|
1852
|
+
componentId: "SD__sc-5etge2-3"
|
|
1853
|
+
})(["padding:16px;width:100%;border-radius:4px;border:1px solid ", ";"], _ref => {
|
|
1854
|
+
var {
|
|
1855
|
+
active
|
|
1856
|
+
} = _ref;
|
|
1857
|
+
return active ? Color.Blue300 : Color.Silver500;
|
|
1858
|
+
});
|
|
1859
|
+
var Caption = /*#__PURE__*/styled.div.withConfig({
|
|
1860
|
+
displayName: "RadioFieldCard__Caption",
|
|
1861
|
+
componentId: "SD__sc-5etge2-4"
|
|
1862
|
+
})(["padding-left:32px;"]);
|
|
1863
|
+
var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
1864
|
+
var {
|
|
1865
|
+
name,
|
|
1866
|
+
value,
|
|
1867
|
+
label,
|
|
1868
|
+
caption,
|
|
1869
|
+
disabled,
|
|
1870
|
+
icon,
|
|
1871
|
+
checked,
|
|
1872
|
+
onChange
|
|
1873
|
+
} = _ref2,
|
|
1874
|
+
props = _objectWithoutProperties(_ref2, _excluded$k);
|
|
1875
|
+
|
|
1876
|
+
return /*#__PURE__*/jsx(Card, {
|
|
1877
|
+
disabled: disabled,
|
|
1878
|
+
children: /*#__PURE__*/jsx(ClickableCard, _objectSpread(_objectSpread({
|
|
1879
|
+
name: name,
|
|
1880
|
+
disabled: disabled
|
|
1881
|
+
}, props), {}, {
|
|
1882
|
+
children: /*#__PURE__*/jsx(Content, {
|
|
1883
|
+
active: checked,
|
|
1884
|
+
children: /*#__PURE__*/jsxs(Columns, {
|
|
1885
|
+
space: "small",
|
|
1886
|
+
children: [/*#__PURE__*/jsxs(Column, {
|
|
1887
|
+
children: [/*#__PURE__*/jsx(FormControlLabel, {
|
|
1888
|
+
value: value,
|
|
1889
|
+
name: name,
|
|
1890
|
+
control: /*#__PURE__*/jsx(Radio, {
|
|
1891
|
+
ref: ref,
|
|
1892
|
+
checked: checked
|
|
1893
|
+
}),
|
|
1894
|
+
label: /*#__PURE__*/jsx(Typography, {
|
|
1895
|
+
variant: "h4",
|
|
1896
|
+
children: label
|
|
1897
|
+
})
|
|
1898
|
+
}), /*#__PURE__*/jsx(Caption, {
|
|
1899
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
1900
|
+
color: "textSecondary",
|
|
1901
|
+
variant: "caption",
|
|
1902
|
+
children: caption
|
|
1903
|
+
})
|
|
1904
|
+
})]
|
|
1905
|
+
}), /*#__PURE__*/jsx(Column, {
|
|
1906
|
+
width: "content",
|
|
1907
|
+
children: icon
|
|
1908
|
+
})]
|
|
1909
|
+
})
|
|
1910
|
+
})
|
|
1911
|
+
}))
|
|
1912
|
+
}, value);
|
|
1913
|
+
});
|
|
1914
|
+
if (process.env.NODE_ENV !== "production") RadioFieldCard.displayName = "RadioFieldCard";
|
|
1915
|
+
|
|
1916
|
+
var _excluded$l = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
1838
1917
|
var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1839
1918
|
var {
|
|
1840
1919
|
name,
|
|
@@ -1847,7 +1926,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1847
1926
|
FormHelperTextProps: formHelperTextProps,
|
|
1848
1927
|
children
|
|
1849
1928
|
} = _ref,
|
|
1850
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
1929
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
1851
1930
|
|
|
1852
1931
|
return /*#__PURE__*/jsxs(FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1853
1932
|
hiddenLabel: !label,
|
|
@@ -1897,7 +1976,7 @@ function useMinBreakpoint(minBreakpoint) {
|
|
|
1897
1976
|
return minBreakpointIDX < breakpointIDX;
|
|
1898
1977
|
}
|
|
1899
1978
|
|
|
1900
|
-
var _excluded$
|
|
1979
|
+
var _excluded$m = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
1901
1980
|
_excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
1902
1981
|
var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
|
|
1903
1982
|
root: {
|
|
@@ -1942,7 +2021,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1942
2021
|
classes,
|
|
1943
2022
|
variant = 'default'
|
|
1944
2023
|
} = _ref,
|
|
1945
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2024
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
1946
2025
|
|
|
1947
2026
|
var _useStyles = useStyles$b({
|
|
1948
2027
|
classes
|
|
@@ -1992,7 +2071,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1992
2071
|
});
|
|
1993
2072
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
1994
2073
|
|
|
1995
|
-
var _excluded$
|
|
2074
|
+
var _excluded$n = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
1996
2075
|
|
|
1997
2076
|
function SlideTransition(props) {
|
|
1998
2077
|
return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -2011,7 +2090,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2011
2090
|
hasCloseButton = onClose != null,
|
|
2012
2091
|
TransitionComponent = SlideTransition
|
|
2013
2092
|
} = _ref,
|
|
2014
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2093
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
2015
2094
|
|
|
2016
2095
|
function handleClose(reason) {
|
|
2017
2096
|
if (reason !== 'clickaway') {
|
|
@@ -2040,7 +2119,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2040
2119
|
});
|
|
2041
2120
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
2042
2121
|
|
|
2043
|
-
var _excluded$
|
|
2122
|
+
var _excluded$o = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
2044
2123
|
|
|
2045
2124
|
function warnContext() {
|
|
2046
2125
|
// eslint-disable-next-line no-console
|
|
@@ -2086,7 +2165,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
2086
2165
|
id = String(key),
|
|
2087
2166
|
autoHideDuration = 5000
|
|
2088
2167
|
} = _ref3,
|
|
2089
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
2168
|
+
props = _objectWithoutProperties(_ref3, _excluded$o);
|
|
2090
2169
|
|
|
2091
2170
|
function removeSnackbar() {
|
|
2092
2171
|
setStack(prev => {
|
|
@@ -2183,7 +2262,7 @@ var Stack = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
2183
2262
|
});
|
|
2184
2263
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
2185
2264
|
|
|
2186
|
-
var _excluded$
|
|
2265
|
+
var _excluded$p = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
2187
2266
|
var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
|
|
2188
2267
|
root: {
|
|
2189
2268
|
maxWidth: '100%',
|
|
@@ -2267,7 +2346,7 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2267
2346
|
fontWeight = 'bold',
|
|
2268
2347
|
component = 'div'
|
|
2269
2348
|
} = _ref,
|
|
2270
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2349
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
2271
2350
|
|
|
2272
2351
|
var styles = useStyles$c({
|
|
2273
2352
|
classes
|
|
@@ -3794,5 +3873,5 @@ function ExitTransitionPlaceholder(_ref) {
|
|
|
3794
3873
|
return renderChildren(children);
|
|
3795
3874
|
}
|
|
3796
3875
|
|
|
3797
|
-
export { AdaptiveToolbar, AdaptiveVerticalToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, DropdownButton, ExitTransitionPlaceholder, GridStack, InfoCard, InfoTooltip, Inline, InlineGrid, NumberField, OverflowText, RadioField, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
3876
|
+
export { AdaptiveToolbar, AdaptiveVerticalToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, DropdownButton, ExitTransitionPlaceholder, GridStack, InfoCard, InfoTooltip, Inline, InlineGrid, NumberField, OverflowText, RadioField, RadioFieldCard, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
3798
3877
|
//# sourceMappingURL=index.js.map
|