@superdispatch/ui 0.24.9 → 0.25.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 +64 -20
- package/dist-node/index.js.map +1 -1
- package/dist-src/index.js +1 -0
- package/dist-src/number-field/NumberField.js +7 -6
- package/dist-src/pattern-field/PatternField.js +40 -0
- package/dist-src/typography/TypographyOverrides.js +9 -0
- package/dist-types/index.d.ts +9 -4
- package/dist-web/index.js +64 -21
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
package/dist-src/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./info-tooltip/InfoTooltip.js";
|
|
|
20
20
|
export * from "./inline/Inline.js";
|
|
21
21
|
export * from "./number-field/NumberField.js";
|
|
22
22
|
export * from "./overflow-text/OverflowText.js";
|
|
23
|
+
export * from "./pattern-field/PatternField.js";
|
|
23
24
|
export * from "./props/AlignProps.js";
|
|
24
25
|
export * from "./props/CollapseProp.js";
|
|
25
26
|
export * from "./props/ResponsiveProp.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["value", "inputRef", "onChange", "
|
|
3
|
+
var _excluded = ["value", "inputRef", "onChange", "valueIsNumericString", "thousandSeparator", "disableValueParsing"],
|
|
4
4
|
_excluded2 = ["id", "InputProps"];
|
|
5
5
|
import { TextField } from '@material-ui/core';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import
|
|
7
|
+
import { NumericFormat } from 'react-number-format';
|
|
8
8
|
import { useUID } from "../utils/useUID.js";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ function NumberInputComponent(_ref) {
|
|
|
13
13
|
value,
|
|
14
14
|
inputRef,
|
|
15
15
|
onChange,
|
|
16
|
-
|
|
16
|
+
valueIsNumericString = true,
|
|
17
17
|
thousandSeparator = true,
|
|
18
18
|
disableValueParsing
|
|
19
19
|
} = _ref,
|
|
20
20
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
21
|
|
|
22
|
-
return /*#__PURE__*/_jsx(
|
|
22
|
+
return /*#__PURE__*/_jsx(NumericFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
23
23
|
value: value !== null && value !== void 0 ? value : '',
|
|
24
24
|
inputMode: "decimal",
|
|
25
25
|
getInputRef: inputRef,
|
|
26
|
-
|
|
26
|
+
valueIsNumericString: valueIsNumericString,
|
|
27
27
|
thousandSeparator: thousandSeparator,
|
|
28
28
|
allowedDecimalSeparators: ['.', ','],
|
|
29
29
|
onValueChange: values => {
|
|
@@ -32,7 +32,8 @@ function NumberInputComponent(_ref) {
|
|
|
32
32
|
target: {
|
|
33
33
|
value: disableValueParsing ? values.value : floatValue
|
|
34
34
|
}
|
|
35
|
-
};
|
|
35
|
+
}; // eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
36
|
+
|
|
36
37
|
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
37
38
|
}
|
|
38
39
|
}));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["id", "value", "onChange", "inputMode", "valueIsNumericString"];
|
|
4
|
+
import { TextField } from '@material-ui/core';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import { PatternFormat } from 'react-number-format';
|
|
7
|
+
import { useUID } from "../utils/useUID.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export var PatternField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
10
|
+
var {
|
|
11
|
+
id,
|
|
12
|
+
value,
|
|
13
|
+
onChange,
|
|
14
|
+
inputMode = 'decimal',
|
|
15
|
+
valueIsNumericString = true
|
|
16
|
+
} = _ref,
|
|
17
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
|
|
19
|
+
var uid = useUID(id);
|
|
20
|
+
return /*#__PURE__*/_jsx(PatternFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
21
|
+
id: uid,
|
|
22
|
+
value: value !== null && value !== void 0 ? value : '' // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
23
|
+
,
|
|
24
|
+
inputMode: inputMode,
|
|
25
|
+
getInputRef: ref,
|
|
26
|
+
valueIsNumericString: valueIsNumericString,
|
|
27
|
+
customInput: TextField,
|
|
28
|
+
onValueChange: values => {
|
|
29
|
+
var event = {
|
|
30
|
+
target: {
|
|
31
|
+
name: props.name,
|
|
32
|
+
value: values.value
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
});
|
|
39
|
+
if (process.env.NODE_ENV !== "production") PatternField.displayName = "PatternField";
|
|
40
|
+
PatternField.displayName = 'PatternField';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Color } from "../theme/Color.js";
|
|
1
2
|
export function createTypographyOptions(breakpoints) {
|
|
2
3
|
var xsOnly = breakpoints.only('xs');
|
|
3
4
|
return {
|
|
@@ -106,4 +107,12 @@ export function overrideTypography(theme) {
|
|
|
106
107
|
theme.props.MuiTypography = {
|
|
107
108
|
variant: 'body2'
|
|
108
109
|
};
|
|
110
|
+
theme.overrides.MuiTypography = {
|
|
111
|
+
colorError: {
|
|
112
|
+
color: Color.Red500
|
|
113
|
+
},
|
|
114
|
+
colorPrimary: {
|
|
115
|
+
color: Color.Blue500
|
|
116
|
+
}
|
|
117
|
+
};
|
|
109
118
|
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { RefAttributes, ForwardRefExoticComponent, Key, ReactNode, MouseEvent, R
|
|
|
4
4
|
import { ClassNameMap } from '@material-ui/styles';
|
|
5
5
|
import { Property } from 'csstype';
|
|
6
6
|
import { CommonProps } from '@material-ui/core/OverridableComponent';
|
|
7
|
-
import {
|
|
7
|
+
import { NumericFormatProps, PatternFormatProps } from 'react-number-format';
|
|
8
8
|
import { Breakpoint } from '@material-ui/core/styles/createBreakpoints';
|
|
9
9
|
import { SkeletonClassKey } from '@material-ui/lab';
|
|
10
10
|
|
|
@@ -246,10 +246,9 @@ interface InlineProps {
|
|
|
246
246
|
}
|
|
247
247
|
declare const Inline: ForwardRefExoticComponent<InlineProps & RefAttributes<HTMLDivElement>>;
|
|
248
248
|
|
|
249
|
-
declare type SafeNumberFormatProps = Pick<
|
|
249
|
+
declare type SafeNumberFormatProps = Pick<NumericFormatProps, 'value' | 'onChange' | 'getInputRef' | 'decimalScale' | 'onValueChange' | 'valueIsNumericString' | 'decimalSeparator' | 'thousandSeparator' | 'fixedDecimalScale' | 'thousandsGroupStyle'>;
|
|
250
250
|
interface NumberFormatCustomProps extends Omit<SafeNumberFormatProps, 'getInputRef' | 'onValueChange'>, Omit<StandardTextFieldProps, 'ref' | keyof InputHTMLAttributes<HTMLInputElement>> {
|
|
251
251
|
disableValueParsing?: boolean;
|
|
252
|
-
format?: NumberFormatProps['format'];
|
|
253
252
|
}
|
|
254
253
|
interface NumberFieldProps extends Omit<StandardTextFieldProps, 'InputProps' | 'inputProps'>, Omit<SafeNumberFormatProps, keyof StandardTextFieldProps> {
|
|
255
254
|
InputProps?: Partial<Omit<InputProps, 'inputComponent'>>;
|
|
@@ -257,6 +256,12 @@ interface NumberFieldProps extends Omit<StandardTextFieldProps, 'InputProps' | '
|
|
|
257
256
|
}
|
|
258
257
|
declare const NumberField: ForwardRefExoticComponent<NumberFieldProps>;
|
|
259
258
|
|
|
259
|
+
declare type SafePatternFormatProps = Pick<PatternFormatProps, 'value' | 'defaultValue' | 'onValueChange' | 'format' | 'mask' | 'patternChar' | 'valueIsNumericString' | 'isAllowed' | 'inputMode' | 'renderText' | 'allowEmptyFormatting'>;
|
|
260
|
+
interface PatternFieldProps extends Omit<StandardTextFieldProps, keyof SafePatternFormatProps | 'defaultValue' | 'type' | 'inputRef' | 'inputProps'>, SafePatternFormatProps {
|
|
261
|
+
inputProps?: Omit<React.HTMLAttributes<HTMLInputElement>, keyof SafePatternFormatProps>;
|
|
262
|
+
}
|
|
263
|
+
declare const PatternField: ForwardRefExoticComponent<PatternFieldProps>;
|
|
264
|
+
|
|
260
265
|
interface RadioFieldProps extends Omit<RadioProps, 'onBlur' | 'onChange'>, Pick<FormControlLabelProps, 'label' | 'onBlur' | 'onChange'> {
|
|
261
266
|
error?: boolean;
|
|
262
267
|
helperText?: ReactNode;
|
|
@@ -531,4 +536,4 @@ interface VisibilityObserverProps extends VisibilityObserverOptions {
|
|
|
531
536
|
}
|
|
532
537
|
declare function VisibilityObserver({ render, onChange, ...options }: VisibilityObserverProps): null | ReactElement;
|
|
533
538
|
|
|
534
|
-
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 };
|
|
539
|
+
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, 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, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
package/dist-web/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { ResizeObserver } from '@juggle/resize-observer';
|
|
|
10
10
|
import { useEventHandler, useDeepEqualValue, useValueObserver, useDeepEqualMemo, useConstant } from '@superdispatch/hooks';
|
|
11
11
|
import clsx from 'clsx';
|
|
12
12
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
13
|
-
import
|
|
13
|
+
import { NumericFormat, PatternFormat } from 'react-number-format';
|
|
14
14
|
import createBreakpoints from '@material-ui/core/styles/createBreakpoints';
|
|
15
15
|
|
|
16
16
|
var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
|
|
@@ -1780,7 +1780,7 @@ var Inline = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1780
1780
|
});
|
|
1781
1781
|
if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
|
|
1782
1782
|
|
|
1783
|
-
var _excluded$i = ["value", "inputRef", "onChange", "
|
|
1783
|
+
var _excluded$i = ["value", "inputRef", "onChange", "valueIsNumericString", "thousandSeparator", "disableValueParsing"],
|
|
1784
1784
|
_excluded2$3 = ["id", "InputProps"];
|
|
1785
1785
|
|
|
1786
1786
|
function NumberInputComponent(_ref) {
|
|
@@ -1788,17 +1788,17 @@ function NumberInputComponent(_ref) {
|
|
|
1788
1788
|
value,
|
|
1789
1789
|
inputRef,
|
|
1790
1790
|
onChange,
|
|
1791
|
-
|
|
1791
|
+
valueIsNumericString = true,
|
|
1792
1792
|
thousandSeparator = true,
|
|
1793
1793
|
disableValueParsing
|
|
1794
1794
|
} = _ref,
|
|
1795
1795
|
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
1796
1796
|
|
|
1797
|
-
return /*#__PURE__*/jsx(
|
|
1797
|
+
return /*#__PURE__*/jsx(NumericFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
1798
1798
|
value: value !== null && value !== void 0 ? value : '',
|
|
1799
1799
|
inputMode: "decimal",
|
|
1800
1800
|
getInputRef: inputRef,
|
|
1801
|
-
|
|
1801
|
+
valueIsNumericString: valueIsNumericString,
|
|
1802
1802
|
thousandSeparator: thousandSeparator,
|
|
1803
1803
|
allowedDecimalSeparators: ['.', ','],
|
|
1804
1804
|
onValueChange: values => {
|
|
@@ -1807,7 +1807,8 @@ function NumberInputComponent(_ref) {
|
|
|
1807
1807
|
target: {
|
|
1808
1808
|
value: disableValueParsing ? values.value : floatValue
|
|
1809
1809
|
}
|
|
1810
|
-
};
|
|
1810
|
+
}; // eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
1811
|
+
|
|
1811
1812
|
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
1812
1813
|
}
|
|
1813
1814
|
}));
|
|
@@ -1832,7 +1833,41 @@ var NumberField = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1832
1833
|
if (process.env.NODE_ENV !== "production") NumberField.displayName = "NumberField";
|
|
1833
1834
|
NumberField.displayName = 'NumberField';
|
|
1834
1835
|
|
|
1835
|
-
var _excluded$j = ["
|
|
1836
|
+
var _excluded$j = ["id", "value", "onChange", "inputMode", "valueIsNumericString"];
|
|
1837
|
+
var PatternField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1838
|
+
var {
|
|
1839
|
+
id,
|
|
1840
|
+
value,
|
|
1841
|
+
onChange,
|
|
1842
|
+
inputMode = 'decimal',
|
|
1843
|
+
valueIsNumericString = true
|
|
1844
|
+
} = _ref,
|
|
1845
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
1846
|
+
|
|
1847
|
+
var uid = useUID(id);
|
|
1848
|
+
return /*#__PURE__*/jsx(PatternFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
1849
|
+
id: uid,
|
|
1850
|
+
value: value !== null && value !== void 0 ? value : '' // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
1851
|
+
,
|
|
1852
|
+
inputMode: inputMode,
|
|
1853
|
+
getInputRef: ref,
|
|
1854
|
+
valueIsNumericString: valueIsNumericString,
|
|
1855
|
+
customInput: TextField,
|
|
1856
|
+
onValueChange: values => {
|
|
1857
|
+
var event = {
|
|
1858
|
+
target: {
|
|
1859
|
+
name: props.name,
|
|
1860
|
+
value: values.value
|
|
1861
|
+
}
|
|
1862
|
+
};
|
|
1863
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
1864
|
+
}
|
|
1865
|
+
}));
|
|
1866
|
+
});
|
|
1867
|
+
if (process.env.NODE_ENV !== "production") PatternField.displayName = "PatternField";
|
|
1868
|
+
PatternField.displayName = 'PatternField';
|
|
1869
|
+
|
|
1870
|
+
var _excluded$k = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
1836
1871
|
var FormControl$1 = /*#__PURE__*/styled(FormControl$2).withConfig({
|
|
1837
1872
|
displayName: "RadioField__FormControl",
|
|
1838
1873
|
componentId: "SD__sc-6ey4qt-0"
|
|
@@ -1851,7 +1886,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1851
1886
|
helperText,
|
|
1852
1887
|
FormControlLabelProps: formControlLabelProps
|
|
1853
1888
|
} = _ref,
|
|
1854
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1889
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1855
1890
|
|
|
1856
1891
|
return /*#__PURE__*/jsxs(FormControl$1, {
|
|
1857
1892
|
error: error,
|
|
@@ -1871,7 +1906,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1871
1906
|
});
|
|
1872
1907
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
1873
1908
|
|
|
1874
|
-
var _excluded$
|
|
1909
|
+
var _excluded$l = ["name", "value", "label", "caption", "disabled", "icon", "checked", "onChange"];
|
|
1875
1910
|
var ClickableCard = /*#__PURE__*/styled(ButtonBase).withConfig({
|
|
1876
1911
|
displayName: "RadioFieldCard__ClickableCard",
|
|
1877
1912
|
componentId: "SD__sc-5etge2-0"
|
|
@@ -1908,7 +1943,7 @@ var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1908
1943
|
checked,
|
|
1909
1944
|
onChange
|
|
1910
1945
|
} = _ref2,
|
|
1911
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
1946
|
+
props = _objectWithoutProperties(_ref2, _excluded$l);
|
|
1912
1947
|
|
|
1913
1948
|
return /*#__PURE__*/jsx(Card, {
|
|
1914
1949
|
disabled: disabled,
|
|
@@ -1950,7 +1985,7 @@ var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1950
1985
|
});
|
|
1951
1986
|
if (process.env.NODE_ENV !== "production") RadioFieldCard.displayName = "RadioFieldCard";
|
|
1952
1987
|
|
|
1953
|
-
var _excluded$
|
|
1988
|
+
var _excluded$m = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
1954
1989
|
var FormLabel$1 = /*#__PURE__*/styled(FormLabel$2).withConfig({
|
|
1955
1990
|
displayName: "RadioGroupField__FormLabel",
|
|
1956
1991
|
componentId: "SD__sc-1udxviq-0"
|
|
@@ -1971,7 +2006,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1971
2006
|
FormHelperTextProps: formHelperTextProps,
|
|
1972
2007
|
children
|
|
1973
2008
|
} = _ref,
|
|
1974
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
2009
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
1975
2010
|
|
|
1976
2011
|
return /*#__PURE__*/jsxs(FormControl$2, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1977
2012
|
hiddenLabel: !label,
|
|
@@ -2021,7 +2056,7 @@ function useMinBreakpoint(minBreakpoint) {
|
|
|
2021
2056
|
return minBreakpointIDX < breakpointIDX;
|
|
2022
2057
|
}
|
|
2023
2058
|
|
|
2024
|
-
var _excluded$
|
|
2059
|
+
var _excluded$n = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
2025
2060
|
_excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
2026
2061
|
var PaddedContent = /*#__PURE__*/styled.span.withConfig({
|
|
2027
2062
|
displayName: "SnackbarContent__PaddedContent",
|
|
@@ -2079,7 +2114,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2079
2114
|
classes,
|
|
2080
2115
|
variant = 'default'
|
|
2081
2116
|
} = _ref,
|
|
2082
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2117
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
2083
2118
|
|
|
2084
2119
|
var _useStyles = useStyles$b({
|
|
2085
2120
|
classes
|
|
@@ -2131,7 +2166,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2131
2166
|
});
|
|
2132
2167
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
2133
2168
|
|
|
2134
|
-
var _excluded$
|
|
2169
|
+
var _excluded$o = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
2135
2170
|
|
|
2136
2171
|
function SlideTransition(props) {
|
|
2137
2172
|
return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -2150,7 +2185,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2150
2185
|
hasCloseButton = onClose != null,
|
|
2151
2186
|
TransitionComponent = SlideTransition
|
|
2152
2187
|
} = _ref,
|
|
2153
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2188
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
2154
2189
|
|
|
2155
2190
|
function handleClose(reason) {
|
|
2156
2191
|
if (reason !== 'clickaway') {
|
|
@@ -2179,7 +2214,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2179
2214
|
});
|
|
2180
2215
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
2181
2216
|
|
|
2182
|
-
var _excluded$
|
|
2217
|
+
var _excluded$p = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
2183
2218
|
|
|
2184
2219
|
function warnContext() {
|
|
2185
2220
|
// eslint-disable-next-line no-console
|
|
@@ -2225,7 +2260,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
2225
2260
|
id = String(key),
|
|
2226
2261
|
autoHideDuration = 5000
|
|
2227
2262
|
} = _ref3,
|
|
2228
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
2263
|
+
props = _objectWithoutProperties(_ref3, _excluded$p);
|
|
2229
2264
|
|
|
2230
2265
|
function removeSnackbar() {
|
|
2231
2266
|
setStack(prev => {
|
|
@@ -2322,7 +2357,7 @@ var Stack = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
2322
2357
|
});
|
|
2323
2358
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
2324
2359
|
|
|
2325
|
-
var _excluded$
|
|
2360
|
+
var _excluded$q = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
2326
2361
|
var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
|
|
2327
2362
|
root: {
|
|
2328
2363
|
maxWidth: '100%',
|
|
@@ -2406,7 +2441,7 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2406
2441
|
fontWeight = 'bold',
|
|
2407
2442
|
component = 'div'
|
|
2408
2443
|
} = _ref,
|
|
2409
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2444
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
2410
2445
|
|
|
2411
2446
|
var styles = useStyles$c({
|
|
2412
2447
|
classes
|
|
@@ -3837,6 +3872,14 @@ function overrideTypography(theme) {
|
|
|
3837
3872
|
theme.props.MuiTypography = {
|
|
3838
3873
|
variant: 'body2'
|
|
3839
3874
|
};
|
|
3875
|
+
theme.overrides.MuiTypography = {
|
|
3876
|
+
colorError: {
|
|
3877
|
+
color: Color.Red500
|
|
3878
|
+
},
|
|
3879
|
+
colorPrimary: {
|
|
3880
|
+
color: Color.Blue500
|
|
3881
|
+
}
|
|
3882
|
+
};
|
|
3840
3883
|
}
|
|
3841
3884
|
|
|
3842
3885
|
function createSuperDispatchTheme() {
|
|
@@ -4057,5 +4100,5 @@ function ExitTransitionPlaceholder(_ref) {
|
|
|
4057
4100
|
return renderChildren(children);
|
|
4058
4101
|
}
|
|
4059
4102
|
|
|
4060
|
-
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 };
|
|
4103
|
+
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, PatternField, 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 };
|
|
4061
4104
|
//# sourceMappingURL=index.js.map
|