@true-engineering/true-react-common-ui-kit 3.0.0-alpha.7 → 3.0.0-alpha.9
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/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/true-react-common-ui-kit.js +6 -3
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +6 -3
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +3 -0
- package/src/components/Switch/Switch.tsx +2 -2
|
@@ -3,7 +3,7 @@ import { ICommonProps } from '../../types';
|
|
|
3
3
|
import { ICheckboxStyles } from './Checkbox.styles';
|
|
4
4
|
export interface ICheckboxProps<V> extends ICommonProps<ICheckboxStyles> {
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
isChecked
|
|
6
|
+
isChecked: boolean | undefined;
|
|
7
7
|
isSemiChecked?: boolean;
|
|
8
8
|
isDisabled?: boolean;
|
|
9
9
|
isReadonly?: boolean;
|
|
@@ -5,7 +5,7 @@ import { ISwitchStyles } from './Switch.styles';
|
|
|
5
5
|
export interface ISwitchProps<V extends string> extends ICommonProps<ISwitchStyles> {
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
value: V;
|
|
8
|
-
isChecked: boolean;
|
|
8
|
+
isChecked: boolean | undefined;
|
|
9
9
|
isDisabled?: boolean;
|
|
10
10
|
isInvalid?: boolean;
|
|
11
11
|
/**
|
|
@@ -11057,10 +11057,13 @@ var checkboxStyles = {
|
|
|
11057
11057
|
padding: [
|
|
11058
11058
|
11,
|
|
11059
11059
|
16
|
|
11060
|
-
]
|
|
11060
|
+
],
|
|
11061
|
+
boxSizing: "border-box",
|
|
11062
|
+
width: "100%"
|
|
11061
11063
|
},
|
|
11062
11064
|
children: {
|
|
11063
|
-
marginRight: "auto"
|
|
11065
|
+
marginRight: "auto",
|
|
11066
|
+
overflow: "hidden"
|
|
11064
11067
|
}
|
|
11065
11068
|
};
|
|
11066
11069
|
var clearButtonStyles$2 = {
|
|
@@ -27696,7 +27699,7 @@ function _object_spread_props$5(target, source) {
|
|
|
27696
27699
|
return target;
|
|
27697
27700
|
}
|
|
27698
27701
|
var Switch = function(param) {
|
|
27699
|
-
var isDisabled = param.isDisabled,
|
|
27702
|
+
var isDisabled = param.isDisabled, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, isInvalid = param.isInvalid, value = param.value, children = param.children, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, _param_color = param.color, color = _param_color === void 0 ? "primary" : _param_color, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId, onChange = param.onChange;
|
|
27700
27703
|
var classes = useStyles$5({
|
|
27701
27704
|
theme: tweakStyles
|
|
27702
27705
|
});
|