@cube-dev/ui-kit 0.7.8 → 0.7.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/cjs/components/forms/Checkbox/Checkbox.d.ts +8 -2
- package/dist/cjs/components/forms/Checkbox/CheckboxGroup.d.ts +4 -1
- package/dist/cjs/components/forms/NumberInput/NumberInput.d.ts +6 -1
- package/dist/cjs/components/forms/PasswordInput/PasswordInput.d.ts +4 -1
- package/dist/cjs/components/forms/RadioGroup/Radio.d.ts +4 -1
- package/dist/cjs/components/forms/RadioGroup/RadioGroup.d.ts +11 -1
- package/dist/cjs/components/forms/SearchInput/SearchInput.d.ts +4 -1
- package/dist/cjs/components/forms/Switch/Switch.d.ts +4 -1
- package/dist/cjs/components/forms/TextArea/TextArea.d.ts +4 -1
- package/dist/cjs/components/forms/TextInput/TextInput.d.ts +4 -1
- package/dist/cjs/components/forms/TextInput/TextInputBase.d.ts +1 -0
- package/dist/cjs/index.d.ts +20 -5
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/react/nullableValue.d.ts +18 -0
- package/dist/cjs/utils/warnings.d.ts +2 -0
- package/dist/mjs/components/forms/Checkbox/Checkbox.d.ts +8 -2
- package/dist/mjs/components/forms/Checkbox/CheckboxGroup.d.ts +4 -1
- package/dist/mjs/components/forms/NumberInput/NumberInput.d.ts +6 -1
- package/dist/mjs/components/forms/PasswordInput/PasswordInput.d.ts +4 -1
- package/dist/mjs/components/forms/RadioGroup/Radio.d.ts +4 -1
- package/dist/mjs/components/forms/RadioGroup/RadioGroup.d.ts +11 -1
- package/dist/mjs/components/forms/SearchInput/SearchInput.d.ts +4 -1
- package/dist/mjs/components/forms/Switch/Switch.d.ts +4 -1
- package/dist/mjs/components/forms/TextArea/TextArea.d.ts +4 -1
- package/dist/mjs/components/forms/TextInput/TextInput.d.ts +4 -1
- package/dist/mjs/components/forms/TextInput/TextInputBase.d.ts +1 -0
- package/dist/mjs/index.d.ts +20 -5
- package/dist/mjs/index.js +4 -4
- package/dist/mjs/index.js.map +1 -1
- package/dist/mjs/utils/react/nullableValue.d.ts +18 -0
- package/dist/mjs/utils/warnings.d.ts +2 -0
- package/package.json +2 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Props } from '../../components/types';
|
2
|
+
export declare function castNullableStringValue<T>(props: T): T;
|
3
|
+
export declare function castNullableNumberValue<T>(props: T): T;
|
4
|
+
export declare function castNullableIsSelected<T>(props: T): T;
|
5
|
+
export declare function castNullableSelectedKey<T>(props: T): T;
|
6
|
+
export declare function castNullableField<T>(props: T, keys: string[], type?: string, cast?: (k: any) => any): T;
|
7
|
+
export declare type WithNullableValue<T extends Props> = Omit<T, 'value' | 'defaultValue'> & {
|
8
|
+
value?: T['value'] | any;
|
9
|
+
defaultValue?: T['defaultValue'] | any;
|
10
|
+
};
|
11
|
+
export declare type WithNullableSelected<T extends Props> = Omit<T, 'isSelected' | 'defaultSelected'> & {
|
12
|
+
isSelected?: T['isSelected'] | any;
|
13
|
+
defaultSelected?: T['defaultSelected'] | any;
|
14
|
+
};
|
15
|
+
export declare type WithNullableSelectedKey<T extends Props> = Omit<T, 'selectedKey' | 'defaultSelectedKey'> & {
|
16
|
+
selectedKey?: T['selectedKey'] | any;
|
17
|
+
defaultSelectedKey?: T['defaultSelectedKey'] | any;
|
18
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cube-dev/ui-kit",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.9",
|
4
4
|
"description": "UIKit for Cube Projects",
|
5
5
|
"main": "dist/cjs/index.js",
|
6
6
|
"module": "dist/mjs/index.js",
|
@@ -20,6 +20,7 @@
|
|
20
20
|
"scripts": {
|
21
21
|
"start": "PARCEL_AUTOINSTALL=false parcel src/storybook.html",
|
22
22
|
"build": "NODE_ENV=production rollup -c",
|
23
|
+
"build:esm": "NODE_ENV=production ESM_BUILD_ONLY=true rollup -c",
|
23
24
|
"watch": "rollup -c -w",
|
24
25
|
"test": "jest",
|
25
26
|
"test-cover": "jest --coverage",
|