@superdispatch/ui 0.24.9 → 0.25.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 +77 -26
- package/dist-node/index.js.map +1 -1
- package/dist-src/index.js +1 -0
- package/dist-src/number-field/NumberField.js +17 -12
- package/dist-src/pattern-field/PatternField.js +43 -0
- package/dist-src/typography/TypographyOverrides.js +9 -0
- package/dist-types/index.d.ts +9 -4
- package/dist-web/index.js +77 -27
- 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,27 +13,32 @@ 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
|
-
onValueChange: values => {
|
|
30
|
-
var floatValue
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
onValueChange: (values, sourceInfo) => {
|
|
30
|
+
var _values$floatValue;
|
|
31
|
+
|
|
32
|
+
var floatValue = (_values$floatValue = values.floatValue) !== null && _values$floatValue !== void 0 ? _values$floatValue : null;
|
|
33
|
+
var {
|
|
34
|
+
event
|
|
35
|
+
} = sourceInfo; // eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
36
|
+
|
|
37
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
|
|
38
|
+
target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
|
|
33
39
|
value: disableValueParsing ? values.value : floatValue
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
40
|
+
})
|
|
41
|
+
}));
|
|
37
42
|
}
|
|
38
43
|
}));
|
|
39
44
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["id", "value", "onChange", "inputMode", "valueIsNumericString", "onValueChange"];
|
|
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
|
+
onValueChange: _onValueChange
|
|
17
|
+
} = _ref,
|
|
18
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
|
|
20
|
+
var uid = useUID(id);
|
|
21
|
+
return /*#__PURE__*/_jsx(PatternFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
22
|
+
id: uid,
|
|
23
|
+
value: value !== null && value !== void 0 ? value : '' // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
24
|
+
,
|
|
25
|
+
inputMode: inputMode,
|
|
26
|
+
getInputRef: ref,
|
|
27
|
+
valueIsNumericString: valueIsNumericString,
|
|
28
|
+
customInput: TextField,
|
|
29
|
+
onValueChange: (values, sourceInfo) => {
|
|
30
|
+
var {
|
|
31
|
+
event
|
|
32
|
+
} = sourceInfo;
|
|
33
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
|
|
34
|
+
target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
|
|
35
|
+
value: values.value
|
|
36
|
+
})
|
|
37
|
+
}));
|
|
38
|
+
_onValueChange === null || _onValueChange === void 0 ? void 0 : _onValueChange(values, sourceInfo);
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
});
|
|
42
|
+
if (process.env.NODE_ENV !== "production") PatternField.displayName = "PatternField";
|
|
43
|
+
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,27 +1788,32 @@ 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
|
-
onValueChange: values => {
|
|
1805
|
-
var floatValue
|
|
1806
|
-
|
|
1807
|
-
|
|
1804
|
+
onValueChange: (values, sourceInfo) => {
|
|
1805
|
+
var _values$floatValue;
|
|
1806
|
+
|
|
1807
|
+
var floatValue = (_values$floatValue = values.floatValue) !== null && _values$floatValue !== void 0 ? _values$floatValue : null;
|
|
1808
|
+
var {
|
|
1809
|
+
event
|
|
1810
|
+
} = sourceInfo; // eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
1811
|
+
|
|
1812
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
|
|
1813
|
+
target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
|
|
1808
1814
|
value: disableValueParsing ? values.value : floatValue
|
|
1809
|
-
}
|
|
1810
|
-
};
|
|
1811
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
1815
|
+
})
|
|
1816
|
+
}));
|
|
1812
1817
|
}
|
|
1813
1818
|
}));
|
|
1814
1819
|
}
|
|
@@ -1832,7 +1837,44 @@ var NumberField = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1832
1837
|
if (process.env.NODE_ENV !== "production") NumberField.displayName = "NumberField";
|
|
1833
1838
|
NumberField.displayName = 'NumberField';
|
|
1834
1839
|
|
|
1835
|
-
var _excluded$j = ["
|
|
1840
|
+
var _excluded$j = ["id", "value", "onChange", "inputMode", "valueIsNumericString", "onValueChange"];
|
|
1841
|
+
var PatternField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1842
|
+
var {
|
|
1843
|
+
id,
|
|
1844
|
+
value,
|
|
1845
|
+
onChange,
|
|
1846
|
+
inputMode = 'decimal',
|
|
1847
|
+
valueIsNumericString = true,
|
|
1848
|
+
onValueChange: _onValueChange
|
|
1849
|
+
} = _ref,
|
|
1850
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
1851
|
+
|
|
1852
|
+
var uid = useUID(id);
|
|
1853
|
+
return /*#__PURE__*/jsx(PatternFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
1854
|
+
id: uid,
|
|
1855
|
+
value: value !== null && value !== void 0 ? value : '' // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
1856
|
+
,
|
|
1857
|
+
inputMode: inputMode,
|
|
1858
|
+
getInputRef: ref,
|
|
1859
|
+
valueIsNumericString: valueIsNumericString,
|
|
1860
|
+
customInput: TextField,
|
|
1861
|
+
onValueChange: (values, sourceInfo) => {
|
|
1862
|
+
var {
|
|
1863
|
+
event
|
|
1864
|
+
} = sourceInfo;
|
|
1865
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
|
|
1866
|
+
target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
|
|
1867
|
+
value: values.value
|
|
1868
|
+
})
|
|
1869
|
+
}));
|
|
1870
|
+
_onValueChange === null || _onValueChange === void 0 ? void 0 : _onValueChange(values, sourceInfo);
|
|
1871
|
+
}
|
|
1872
|
+
}));
|
|
1873
|
+
});
|
|
1874
|
+
if (process.env.NODE_ENV !== "production") PatternField.displayName = "PatternField";
|
|
1875
|
+
PatternField.displayName = 'PatternField';
|
|
1876
|
+
|
|
1877
|
+
var _excluded$k = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
1836
1878
|
var FormControl$1 = /*#__PURE__*/styled(FormControl$2).withConfig({
|
|
1837
1879
|
displayName: "RadioField__FormControl",
|
|
1838
1880
|
componentId: "SD__sc-6ey4qt-0"
|
|
@@ -1851,7 +1893,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1851
1893
|
helperText,
|
|
1852
1894
|
FormControlLabelProps: formControlLabelProps
|
|
1853
1895
|
} = _ref,
|
|
1854
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1896
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1855
1897
|
|
|
1856
1898
|
return /*#__PURE__*/jsxs(FormControl$1, {
|
|
1857
1899
|
error: error,
|
|
@@ -1871,7 +1913,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1871
1913
|
});
|
|
1872
1914
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
1873
1915
|
|
|
1874
|
-
var _excluded$
|
|
1916
|
+
var _excluded$l = ["name", "value", "label", "caption", "disabled", "icon", "checked", "onChange"];
|
|
1875
1917
|
var ClickableCard = /*#__PURE__*/styled(ButtonBase).withConfig({
|
|
1876
1918
|
displayName: "RadioFieldCard__ClickableCard",
|
|
1877
1919
|
componentId: "SD__sc-5etge2-0"
|
|
@@ -1908,7 +1950,7 @@ var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1908
1950
|
checked,
|
|
1909
1951
|
onChange
|
|
1910
1952
|
} = _ref2,
|
|
1911
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
1953
|
+
props = _objectWithoutProperties(_ref2, _excluded$l);
|
|
1912
1954
|
|
|
1913
1955
|
return /*#__PURE__*/jsx(Card, {
|
|
1914
1956
|
disabled: disabled,
|
|
@@ -1950,7 +1992,7 @@ var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1950
1992
|
});
|
|
1951
1993
|
if (process.env.NODE_ENV !== "production") RadioFieldCard.displayName = "RadioFieldCard";
|
|
1952
1994
|
|
|
1953
|
-
var _excluded$
|
|
1995
|
+
var _excluded$m = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
1954
1996
|
var FormLabel$1 = /*#__PURE__*/styled(FormLabel$2).withConfig({
|
|
1955
1997
|
displayName: "RadioGroupField__FormLabel",
|
|
1956
1998
|
componentId: "SD__sc-1udxviq-0"
|
|
@@ -1971,7 +2013,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1971
2013
|
FormHelperTextProps: formHelperTextProps,
|
|
1972
2014
|
children
|
|
1973
2015
|
} = _ref,
|
|
1974
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
2016
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
1975
2017
|
|
|
1976
2018
|
return /*#__PURE__*/jsxs(FormControl$2, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1977
2019
|
hiddenLabel: !label,
|
|
@@ -2021,7 +2063,7 @@ function useMinBreakpoint(minBreakpoint) {
|
|
|
2021
2063
|
return minBreakpointIDX < breakpointIDX;
|
|
2022
2064
|
}
|
|
2023
2065
|
|
|
2024
|
-
var _excluded$
|
|
2066
|
+
var _excluded$n = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
2025
2067
|
_excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
2026
2068
|
var PaddedContent = /*#__PURE__*/styled.span.withConfig({
|
|
2027
2069
|
displayName: "SnackbarContent__PaddedContent",
|
|
@@ -2079,7 +2121,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2079
2121
|
classes,
|
|
2080
2122
|
variant = 'default'
|
|
2081
2123
|
} = _ref,
|
|
2082
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2124
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
2083
2125
|
|
|
2084
2126
|
var _useStyles = useStyles$b({
|
|
2085
2127
|
classes
|
|
@@ -2131,7 +2173,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2131
2173
|
});
|
|
2132
2174
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
2133
2175
|
|
|
2134
|
-
var _excluded$
|
|
2176
|
+
var _excluded$o = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
2135
2177
|
|
|
2136
2178
|
function SlideTransition(props) {
|
|
2137
2179
|
return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -2150,7 +2192,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2150
2192
|
hasCloseButton = onClose != null,
|
|
2151
2193
|
TransitionComponent = SlideTransition
|
|
2152
2194
|
} = _ref,
|
|
2153
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2195
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
2154
2196
|
|
|
2155
2197
|
function handleClose(reason) {
|
|
2156
2198
|
if (reason !== 'clickaway') {
|
|
@@ -2179,7 +2221,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2179
2221
|
});
|
|
2180
2222
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
2181
2223
|
|
|
2182
|
-
var _excluded$
|
|
2224
|
+
var _excluded$p = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
2183
2225
|
|
|
2184
2226
|
function warnContext() {
|
|
2185
2227
|
// eslint-disable-next-line no-console
|
|
@@ -2225,7 +2267,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
2225
2267
|
id = String(key),
|
|
2226
2268
|
autoHideDuration = 5000
|
|
2227
2269
|
} = _ref3,
|
|
2228
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
2270
|
+
props = _objectWithoutProperties(_ref3, _excluded$p);
|
|
2229
2271
|
|
|
2230
2272
|
function removeSnackbar() {
|
|
2231
2273
|
setStack(prev => {
|
|
@@ -2322,7 +2364,7 @@ var Stack = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
2322
2364
|
});
|
|
2323
2365
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
2324
2366
|
|
|
2325
|
-
var _excluded$
|
|
2367
|
+
var _excluded$q = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
2326
2368
|
var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
|
|
2327
2369
|
root: {
|
|
2328
2370
|
maxWidth: '100%',
|
|
@@ -2406,7 +2448,7 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2406
2448
|
fontWeight = 'bold',
|
|
2407
2449
|
component = 'div'
|
|
2408
2450
|
} = _ref,
|
|
2409
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2451
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
2410
2452
|
|
|
2411
2453
|
var styles = useStyles$c({
|
|
2412
2454
|
classes
|
|
@@ -3837,6 +3879,14 @@ function overrideTypography(theme) {
|
|
|
3837
3879
|
theme.props.MuiTypography = {
|
|
3838
3880
|
variant: 'body2'
|
|
3839
3881
|
};
|
|
3882
|
+
theme.overrides.MuiTypography = {
|
|
3883
|
+
colorError: {
|
|
3884
|
+
color: Color.Red500
|
|
3885
|
+
},
|
|
3886
|
+
colorPrimary: {
|
|
3887
|
+
color: Color.Blue500
|
|
3888
|
+
}
|
|
3889
|
+
};
|
|
3840
3890
|
}
|
|
3841
3891
|
|
|
3842
3892
|
function createSuperDispatchTheme() {
|
|
@@ -4057,5 +4107,5 @@ function ExitTransitionPlaceholder(_ref) {
|
|
|
4057
4107
|
return renderChildren(children);
|
|
4058
4108
|
}
|
|
4059
4109
|
|
|
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 };
|
|
4110
|
+
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
4111
|
//# sourceMappingURL=index.js.map
|