@superdispatch/ui 0.38.1 → 0.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-node/index.js +50 -22
- package/dist-node/index.js.map +1 -1
- package/dist-src/Image/Image.js +17 -0
- package/dist-src/LightDark/LightDark.js +12 -0
- package/dist-src/index.js +2 -0
- package/dist-types/index.d.ts +13 -2
- package/dist-web/index.js +50 -24
- package/dist-web/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["srcDark", "src"];
|
|
4
|
+
import { useTheme } from '@material-ui/core';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export function Image(_ref) {
|
|
7
|
+
var {
|
|
8
|
+
srcDark,
|
|
9
|
+
src
|
|
10
|
+
} = _ref,
|
|
11
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
var theme = useTheme();
|
|
13
|
+
var value = theme.palette.type === 'dark' && srcDark ? srcDark : src;
|
|
14
|
+
return /*#__PURE__*/_jsx("img", _objectSpread(_objectSpread({}, props), {}, {
|
|
15
|
+
src: value
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useTheme } from '@material-ui/core';
|
|
2
|
+
import { renderChildren } from '@superdispatch/ui';
|
|
3
|
+
export function LightDark(_ref) {
|
|
4
|
+
var {
|
|
5
|
+
light,
|
|
6
|
+
dark
|
|
7
|
+
} = _ref;
|
|
8
|
+
var theme = useTheme();
|
|
9
|
+
var isDarkMode = theme.palette.type === 'dark';
|
|
10
|
+
var mode = isDarkMode ? dark : light;
|
|
11
|
+
return renderChildren(mode);
|
|
12
|
+
}
|
package/dist-src/index.js
CHANGED
|
@@ -15,9 +15,11 @@ export * from "./drawer/DrawerTitle.js";
|
|
|
15
15
|
export * from "./dropdown-button/DropdownButton.js";
|
|
16
16
|
export * from "./grid/GridStack.js";
|
|
17
17
|
export * from "./grid/InlineGrid.js";
|
|
18
|
+
export * from "./Image/Image.js";
|
|
18
19
|
export * from "./info-card/InfoCard.js";
|
|
19
20
|
export * from "./info-tooltip/InfoTooltip.js";
|
|
20
21
|
export * from "./inline/Inline.js";
|
|
22
|
+
export * from "./LightDark/LightDark.js";
|
|
21
23
|
export * from "./number-field/NumberField.js";
|
|
22
24
|
export * from "./overflow-text/OverflowText.js";
|
|
23
25
|
export * from "./pattern-field/PatternField.js";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps as ButtonProps$1, ToolbarProps, AvatarClassKey, AvatarTypeMap, ButtonBaseProps, CheckboxProps, FormControlLabelProps, FormControlProps, FormGroupProps, FormLabelProps, FormHelperTextProps, TypographyProps, TooltipProps, ListProps, ListTypeMap, MenuListProps, ButtonGroupProps, GridProps, CardClassKey, CardProps, CardContentProps, IconButtonProps, StandardTextFieldProps, InputProps, RadioProps, RadioGroupProps, SnackbarContentProps as SnackbarContentProps$1, SnackbarContentClassKey as SnackbarContentClassKey$1, SnackbarProps as SnackbarProps$1, Theme } from '@material-ui/core';
|
|
3
|
-
import { RefAttributes, ForwardRefExoticComponent, Key, ReactNode, MouseEvent, ReactElement, EventHandler, ButtonHTMLAttributes, Ref, ElementType, HTMLAttributes, InputHTMLAttributes, ConsumerProps } from 'react';
|
|
3
|
+
import { RefAttributes, ForwardRefExoticComponent, Key, ReactNode, MouseEvent, ReactElement, EventHandler, ButtonHTMLAttributes, Ref, ElementType, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, ConsumerProps } from 'react';
|
|
4
4
|
import { ClassNameMap } from '@material-ui/styles';
|
|
5
5
|
import { Property } from 'csstype';
|
|
6
6
|
import { CommonProps } from '@material-ui/core/OverridableComponent';
|
|
@@ -218,6 +218,11 @@ interface InlineGridProps extends RefAttributes<HTMLDivElement>, Pick<GridProps,
|
|
|
218
218
|
*/
|
|
219
219
|
declare const InlineGrid: ForwardRefExoticComponent<InlineGridProps>;
|
|
220
220
|
|
|
221
|
+
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
222
|
+
srcDark?: string;
|
|
223
|
+
}
|
|
224
|
+
declare function Image({ srcDark, src, ...props }: ImageProps): JSX.Element;
|
|
225
|
+
|
|
221
226
|
declare type InfoCardClassKey = 'sizeLarge' | 'content' | 'fullWidth' | CardClassKey;
|
|
222
227
|
interface InfoCardProps extends CardProps {
|
|
223
228
|
size?: 'medium' | 'large';
|
|
@@ -248,6 +253,12 @@ interface InlineProps {
|
|
|
248
253
|
}
|
|
249
254
|
declare const Inline: ForwardRefExoticComponent<InlineProps & RefAttributes<HTMLDivElement>>;
|
|
250
255
|
|
|
256
|
+
interface LightDarkProps {
|
|
257
|
+
light: ReactNode;
|
|
258
|
+
dark: ReactNode;
|
|
259
|
+
}
|
|
260
|
+
declare function LightDark({ light, dark, }: LightDarkProps): ReactElement<ReactNode> | null;
|
|
261
|
+
|
|
251
262
|
declare type SafeNumberFormatProps = Pick<NumericFormatProps, 'value' | 'onChange' | 'getInputRef' | 'decimalScale' | 'onValueChange' | 'valueIsNumericString' | 'decimalSeparator' | 'thousandSeparator' | 'fixedDecimalScale' | 'thousandsGroupStyle'>;
|
|
252
263
|
interface NumberFormatCustomProps extends Omit<SafeNumberFormatProps, 'getInputRef' | 'onValueChange'>, Omit<StandardTextFieldProps, 'ref' | keyof InputHTMLAttributes<HTMLInputElement>> {
|
|
253
264
|
disableValueParsing?: boolean;
|
|
@@ -779,4 +790,4 @@ interface VisibilityObserverProps extends VisibilityObserverOptions {
|
|
|
779
790
|
}
|
|
780
791
|
declare function VisibilityObserver({ render, onChange, ...options }: VisibilityObserverProps): null | ReactElement;
|
|
781
792
|
|
|
782
|
-
export { AdaptiveToolbar, AdaptiveToolbarDropdownItem, AdaptiveToolbarItem, AdaptiveToolbarProps, AdaptiveVerticalToolbar, AdaptiveVerticalToolbarItem, AdaptiveVerticalToolbarProps, AvatarButton, AvatarButtonClassKey, AvatarButtonProps, Button, ButtonProps, CardButton, CardButtonClassKey, CardButtonProps, CheckboxField, CheckboxFieldProps, CheckboxGroupField, CheckboxGroupFieldProps, CollapseBreakpoint, CollapseProp, Color, ColorDark, ColorDarkProp, ColorDynamic, ColorDynamicProp, 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, PatternField, PatternFieldProps, 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, isColorDynamicProp, isColorProp, isColorPropDark, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
793
|
+
export { AdaptiveToolbar, AdaptiveToolbarDropdownItem, AdaptiveToolbarItem, AdaptiveToolbarProps, AdaptiveVerticalToolbar, AdaptiveVerticalToolbarItem, AdaptiveVerticalToolbarProps, AvatarButton, AvatarButtonClassKey, AvatarButtonProps, Button, ButtonProps, CardButton, CardButtonClassKey, CardButtonProps, CheckboxField, CheckboxFieldProps, CheckboxGroupField, CheckboxGroupFieldProps, CollapseBreakpoint, CollapseProp, Color, ColorDark, ColorDarkProp, ColorDynamic, ColorDynamicProp, 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, Image, InfoCard, InfoCardClassKey, InfoCardProps, InfoTooltip, Inline, InlineGrid, InlineGridProps, InlineProps, LightDark, MinBreakpoint, NegativeSpaceProp, NumberField, NumberFieldProps, OverflowText, OverflowTextProps, PartialResponsivePropRecord, PatternField, PatternFieldProps, 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, isColorDynamicProp, isColorProp, isColorPropDark, 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, FormHelperText as FormHelperText$4, FormControlLabel as FormControlLabel$1, Checkbox, FormControl as FormControl$2, FormLabel as FormLabel$2, 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, alpha, 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, FormHelperText as FormHelperText$4, FormControlLabel as FormControlLabel$1, Checkbox, FormControl as FormControl$2, FormLabel as FormLabel$2, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, useTheme, Card as Card$1, CardContent, IconButton, TextField, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, Portal, Snackbar as Snackbar$1, Slide, alpha, CssBaseline, createTheme, createGenerateClassName } from '@material-ui/core';
|
|
4
4
|
import { MoreHoriz, Info, Close, Error, 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';
|
|
@@ -10,6 +10,7 @@ import { ResizeObserver } from '@juggle/resize-observer';
|
|
|
10
10
|
import { useEventHandler, useDeepEqualValue, useValueObserver, useDeepEqualMemo } from '@superdispatch/hooks';
|
|
11
11
|
import clsx from 'clsx';
|
|
12
12
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
13
|
+
import { renderChildren as renderChildren$1 } from '@superdispatch/ui';
|
|
13
14
|
import { NumericFormat, PatternFormat } from 'react-number-format';
|
|
14
15
|
import createBreakpoints from '@material-ui/core/styles/createBreakpoints';
|
|
15
16
|
|
|
@@ -1750,7 +1751,21 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1750
1751
|
});
|
|
1751
1752
|
if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
|
|
1752
1753
|
|
|
1753
|
-
var _excluded$g = ["
|
|
1754
|
+
var _excluded$g = ["srcDark", "src"];
|
|
1755
|
+
function Image(_ref) {
|
|
1756
|
+
var {
|
|
1757
|
+
srcDark,
|
|
1758
|
+
src
|
|
1759
|
+
} = _ref,
|
|
1760
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
1761
|
+
var theme = useTheme();
|
|
1762
|
+
var value = theme.palette.type === 'dark' && srcDark ? srcDark : src;
|
|
1763
|
+
return /*#__PURE__*/jsx("img", _objectSpread(_objectSpread({}, props), {}, {
|
|
1764
|
+
src: value
|
|
1765
|
+
}));
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
var _excluded$h = ["size", "square", "classes", "children", "className", "CardContentProps"],
|
|
1754
1769
|
_excluded2$2 = ["content", "sizeLarge", "fullWidth"];
|
|
1755
1770
|
var useStyles$a = /*#__PURE__*/makeStyles(theme => ({
|
|
1756
1771
|
root: {
|
|
@@ -1782,7 +1797,7 @@ var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
|
|
|
1782
1797
|
className,
|
|
1783
1798
|
CardContentProps: cardContentProps = {}
|
|
1784
1799
|
} = _ref,
|
|
1785
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1800
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
1786
1801
|
var _useStyles = useStyles$a({
|
|
1787
1802
|
classes
|
|
1788
1803
|
}),
|
|
@@ -1810,7 +1825,7 @@ var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
|
|
|
1810
1825
|
});
|
|
1811
1826
|
if (process.env.NODE_ENV !== "production") InfoCard.displayName = "InfoCard";
|
|
1812
1827
|
|
|
1813
|
-
var _excluded$
|
|
1828
|
+
var _excluded$i = ["children", "iconButtonProps", "fontSize", "TextProps", "title", "isOpen", "onClick", "onClose"];
|
|
1814
1829
|
var Root = /*#__PURE__*/styled.div.withConfig({
|
|
1815
1830
|
displayName: "InfoTooltip__Root",
|
|
1816
1831
|
componentId: "SD__sc-1emqpa9-0"
|
|
@@ -1826,7 +1841,7 @@ var InfoTooltip = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1826
1841
|
onClick,
|
|
1827
1842
|
onClose
|
|
1828
1843
|
} = _ref,
|
|
1829
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1844
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
1830
1845
|
var tooltip = /*#__PURE__*/jsx(Tooltip, _objectSpread(_objectSpread({
|
|
1831
1846
|
open: isOpen,
|
|
1832
1847
|
title: title,
|
|
@@ -1903,7 +1918,18 @@ var Inline = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1903
1918
|
});
|
|
1904
1919
|
if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
|
|
1905
1920
|
|
|
1906
|
-
|
|
1921
|
+
function LightDark(_ref) {
|
|
1922
|
+
var {
|
|
1923
|
+
light,
|
|
1924
|
+
dark
|
|
1925
|
+
} = _ref;
|
|
1926
|
+
var theme = useTheme();
|
|
1927
|
+
var isDarkMode = theme.palette.type === 'dark';
|
|
1928
|
+
var mode = isDarkMode ? dark : light;
|
|
1929
|
+
return renderChildren$1(mode);
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
var _excluded$j = ["value", "inputRef", "onChange", "valueIsNumericString", "thousandSeparator", "disableValueParsing"],
|
|
1907
1933
|
_excluded2$3 = ["value", "inputRef", "onChange", "valueIsNumericString", "thousandSeparator", "disableValueParsing"],
|
|
1908
1934
|
_excluded3 = ["id", "InputProps", "isText"];
|
|
1909
1935
|
function NumberInputComponent(_ref) {
|
|
@@ -1915,7 +1941,7 @@ function NumberInputComponent(_ref) {
|
|
|
1915
1941
|
thousandSeparator = true,
|
|
1916
1942
|
disableValueParsing
|
|
1917
1943
|
} = _ref,
|
|
1918
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1944
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
1919
1945
|
return /*#__PURE__*/jsx(NumericFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
1920
1946
|
value: value !== null && value !== void 0 ? value : '',
|
|
1921
1947
|
inputMode: "decimal",
|
|
@@ -1985,7 +2011,7 @@ var NumberField = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
1985
2011
|
if (process.env.NODE_ENV !== "production") NumberField.displayName = "NumberField";
|
|
1986
2012
|
NumberField.displayName = 'NumberField';
|
|
1987
2013
|
|
|
1988
|
-
var _excluded$
|
|
2014
|
+
var _excluded$k = ["id", "value", "onChange", "inputMode", "valueIsNumericString", "onValueChange"];
|
|
1989
2015
|
var PatternField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1990
2016
|
var {
|
|
1991
2017
|
id,
|
|
@@ -1995,7 +2021,7 @@ var PatternField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1995
2021
|
valueIsNumericString = true,
|
|
1996
2022
|
onValueChange: _onValueChange
|
|
1997
2023
|
} = _ref,
|
|
1998
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2024
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1999
2025
|
var uid = useUID(id);
|
|
2000
2026
|
return /*#__PURE__*/jsx(PatternFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
2001
2027
|
id: uid,
|
|
@@ -2022,7 +2048,7 @@ var PatternField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2022
2048
|
if (process.env.NODE_ENV !== "production") PatternField.displayName = "PatternField";
|
|
2023
2049
|
PatternField.displayName = 'PatternField';
|
|
2024
2050
|
|
|
2025
|
-
var _excluded$
|
|
2051
|
+
var _excluded$l = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlProps", "FormControlLabelProps"];
|
|
2026
2052
|
var FormControl$1 = /*#__PURE__*/styled(FormControl$2).withConfig({
|
|
2027
2053
|
displayName: "RadioField__FormControl",
|
|
2028
2054
|
componentId: "SD__sc-6ey4qt-0"
|
|
@@ -2042,7 +2068,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2042
2068
|
FormControlProps: formControlProps,
|
|
2043
2069
|
FormControlLabelProps: formControlLabelProps
|
|
2044
2070
|
} = _ref,
|
|
2045
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2071
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
2046
2072
|
return /*#__PURE__*/jsxs(FormControl$1, _objectSpread(_objectSpread({
|
|
2047
2073
|
error: error
|
|
2048
2074
|
}, formControlProps), {}, {
|
|
@@ -2062,7 +2088,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2062
2088
|
});
|
|
2063
2089
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
2064
2090
|
|
|
2065
|
-
var _excluded$
|
|
2091
|
+
var _excluded$m = ["name", "value", "label", "caption", "disabled", "icon", "checked", "onChange"];
|
|
2066
2092
|
var ClickableCard = /*#__PURE__*/styled(ButtonBase).withConfig({
|
|
2067
2093
|
displayName: "RadioFieldCard__ClickableCard",
|
|
2068
2094
|
componentId: "SD__sc-5etge2-0"
|
|
@@ -2099,7 +2125,7 @@ var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
2099
2125
|
checked,
|
|
2100
2126
|
onChange
|
|
2101
2127
|
} = _ref2,
|
|
2102
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
2128
|
+
props = _objectWithoutProperties(_ref2, _excluded$m);
|
|
2103
2129
|
return /*#__PURE__*/jsx(Card, {
|
|
2104
2130
|
disabled: disabled,
|
|
2105
2131
|
children: /*#__PURE__*/jsx(ClickableCard, _objectSpread(_objectSpread({
|
|
@@ -2140,7 +2166,7 @@ var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
2140
2166
|
});
|
|
2141
2167
|
if (process.env.NODE_ENV !== "production") RadioFieldCard.displayName = "RadioFieldCard";
|
|
2142
2168
|
|
|
2143
|
-
var _excluded$
|
|
2169
|
+
var _excluded$n = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
2144
2170
|
var FormLabel$1 = /*#__PURE__*/styled(FormLabel$2).withConfig({
|
|
2145
2171
|
displayName: "RadioGroupField__FormLabel",
|
|
2146
2172
|
componentId: "SD__sc-1udxviq-0"
|
|
@@ -2161,7 +2187,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2161
2187
|
FormHelperTextProps: formHelperTextProps,
|
|
2162
2188
|
children
|
|
2163
2189
|
} = _ref,
|
|
2164
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
2190
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
2165
2191
|
return /*#__PURE__*/jsxs(FormControl$2, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
2166
2192
|
hiddenLabel: !label,
|
|
2167
2193
|
children: [!!label && /*#__PURE__*/jsx(FormLabel$1, _objectSpread(_objectSpread({}, formLabelProps), {}, {
|
|
@@ -2206,7 +2232,7 @@ function useMinBreakpoint(minBreakpoint) {
|
|
|
2206
2232
|
return minBreakpointIDX < breakpointIDX;
|
|
2207
2233
|
}
|
|
2208
2234
|
|
|
2209
|
-
var _excluded$
|
|
2235
|
+
var _excluded$o = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
2210
2236
|
_excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
2211
2237
|
var PaddedContent = /*#__PURE__*/styled.span.withConfig({
|
|
2212
2238
|
displayName: "SnackbarContent__PaddedContent",
|
|
@@ -2264,7 +2290,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2264
2290
|
classes,
|
|
2265
2291
|
variant = 'default'
|
|
2266
2292
|
} = _ref,
|
|
2267
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2293
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
2268
2294
|
var _useStyles = useStyles$b({
|
|
2269
2295
|
classes
|
|
2270
2296
|
}),
|
|
@@ -2314,7 +2340,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2314
2340
|
});
|
|
2315
2341
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
2316
2342
|
|
|
2317
|
-
var _excluded$
|
|
2343
|
+
var _excluded$p = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
2318
2344
|
function SlideTransition(props) {
|
|
2319
2345
|
return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
2320
2346
|
direction: "up"
|
|
@@ -2331,7 +2357,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2331
2357
|
hasCloseButton = onClose != null,
|
|
2332
2358
|
TransitionComponent = SlideTransition
|
|
2333
2359
|
} = _ref,
|
|
2334
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2360
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
2335
2361
|
function handleClose(reason) {
|
|
2336
2362
|
if (reason !== 'clickaway') {
|
|
2337
2363
|
onClose === null || onClose === void 0 ? void 0 : onClose(reason === 'timeout' ? 'timeout' : 'explicit');
|
|
@@ -2358,7 +2384,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2358
2384
|
});
|
|
2359
2385
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
2360
2386
|
|
|
2361
|
-
var _excluded$
|
|
2387
|
+
var _excluded$q = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
2362
2388
|
function warnContext() {
|
|
2363
2389
|
// eslint-disable-next-line no-console
|
|
2364
2390
|
console.log('`useSnackbarStack` is used outside of `SnackbarStackProvider`.');
|
|
@@ -2403,7 +2429,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
2403
2429
|
id = String(key),
|
|
2404
2430
|
autoHideDuration = 5000
|
|
2405
2431
|
} = _ref3,
|
|
2406
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
2432
|
+
props = _objectWithoutProperties(_ref3, _excluded$q);
|
|
2407
2433
|
function removeSnackbar() {
|
|
2408
2434
|
setStack(prev => {
|
|
2409
2435
|
if (prev.has(key)) {
|
|
@@ -2494,7 +2520,7 @@ var Stack = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
2494
2520
|
});
|
|
2495
2521
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
2496
2522
|
|
|
2497
|
-
var _excluded$
|
|
2523
|
+
var _excluded$r = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
2498
2524
|
var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
|
|
2499
2525
|
root: {
|
|
2500
2526
|
maxWidth: '100%',
|
|
@@ -2588,7 +2614,7 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2588
2614
|
fontWeight = 'bold',
|
|
2589
2615
|
component = 'div'
|
|
2590
2616
|
} = _ref,
|
|
2591
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2617
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
2592
2618
|
var styles = useStyles$c({
|
|
2593
2619
|
classes
|
|
2594
2620
|
});
|
|
@@ -4286,5 +4312,5 @@ function ExitTransitionPlaceholder(_ref) {
|
|
|
4286
4312
|
return renderChildren(children);
|
|
4287
4313
|
}
|
|
4288
4314
|
|
|
4289
|
-
export { AdaptiveToolbar, AdaptiveVerticalToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, ColorDark, ColorDynamic, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, DropdownButton, ExitTransitionPlaceholder, GridStack, InfoCard, InfoTooltip, Inline, InlineGrid, NumberField, OverflowText, PatternField, RadioField, RadioFieldCard, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorDynamicProp, isColorProp, isColorPropDark, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
4315
|
+
export { AdaptiveToolbar, AdaptiveVerticalToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, ColorDark, ColorDynamic, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, DropdownButton, ExitTransitionPlaceholder, GridStack, Image, InfoCard, InfoTooltip, Inline, InlineGrid, LightDark, NumberField, OverflowText, PatternField, RadioField, RadioFieldCard, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorDynamicProp, isColorProp, isColorPropDark, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
4290
4316
|
//# sourceMappingURL=index.js.map
|