@cube-dev/ui-kit 0.7.7 → 0.7.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/components/Root.d.ts +1 -0
- 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/Root.d.ts +1 -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 +5 -3
@@ -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.11",
|
4
4
|
"description": "UIKit for Cube Projects",
|
5
5
|
"main": "dist/cjs/index.js",
|
6
6
|
"module": "dist/mjs/index.js",
|
@@ -18,8 +18,9 @@
|
|
18
18
|
"dist/**/*.d.ts"
|
19
19
|
],
|
20
20
|
"scripts": {
|
21
|
-
"start": "PARCEL_AUTOINSTALL=false parcel src/storybook.html",
|
22
|
-
"build": "NODE_ENV=production rollup -c",
|
21
|
+
"start": "cross-env PARCEL_AUTOINSTALL=false parcel src/storybook.html",
|
22
|
+
"build": "cross-env NODE_ENV=production rollup -c",
|
23
|
+
"build:esm": "cross-env 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",
|
@@ -112,6 +113,7 @@
|
|
112
113
|
"chromatic": "^6.3.3",
|
113
114
|
"clipboard-copy": "^4.0.1",
|
114
115
|
"clsx": "^1.1.1",
|
116
|
+
"cross-env": "^7.0.3",
|
115
117
|
"css-loader": "^6.5.1",
|
116
118
|
"dotize": "^0.3.0",
|
117
119
|
"email-validator": "^2.0.4",
|