@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@true-engineering/true-react-common-ui-kit",
3
- "version": "3.0.0-alpha.7",
3
+ "version": "3.0.0-alpha.9",
4
4
  "description": "True Engineering React UI Kit with theming support",
5
5
  "author": "True Engineering (https://trueengineering.ru)",
6
6
  "keywords": [
@@ -12,7 +12,7 @@ import { useStyles, ICheckboxStyles } from './Checkbox.styles';
12
12
 
13
13
  export interface ICheckboxProps<V> extends ICommonProps<ICheckboxStyles> {
14
14
  children?: ReactNode;
15
- isChecked?: boolean;
15
+ isChecked: boolean | undefined;
16
16
  isSemiChecked?: boolean;
17
17
  isDisabled?: boolean;
18
18
  isReadonly?: boolean;
@@ -102,10 +102,13 @@ export const searchInputStyles: ISearchInputStyles = {
102
102
  export const checkboxStyles: ICheckboxStyles = {
103
103
  root: {
104
104
  padding: [11, 16],
105
+ boxSizing: 'border-box',
106
+ width: '100%',
105
107
  },
106
108
 
107
109
  children: {
108
110
  marginRight: 'auto',
111
+ overflow: 'hidden',
109
112
  },
110
113
  };
111
114
 
@@ -9,7 +9,7 @@ import { useStyles, ISwitchStyles } from './Switch.styles';
9
9
  export interface ISwitchProps<V extends string> extends ICommonProps<ISwitchStyles> {
10
10
  children?: ReactNode;
11
11
  value: V;
12
- isChecked: boolean;
12
+ isChecked: boolean | undefined;
13
13
  isDisabled?: boolean;
14
14
  isInvalid?: boolean;
15
15
  /**
@@ -25,7 +25,7 @@ export interface ISwitchProps<V extends string> extends ICommonProps<ISwitchStyl
25
25
 
26
26
  export const Switch = <V extends string>({
27
27
  isDisabled,
28
- isChecked,
28
+ isChecked = false,
29
29
  isInvalid,
30
30
  value,
31
31
  children,