@cube-dev/ui-kit 0.7.8 → 0.7.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/cjs/components/forms/Checkbox/Checkbox.d.ts +8 -2
  2. package/dist/cjs/components/forms/Checkbox/CheckboxGroup.d.ts +4 -1
  3. package/dist/cjs/components/forms/FileInput/FileInput.d.ts +5 -0
  4. package/dist/cjs/components/forms/NumberInput/NumberInput.d.ts +6 -1
  5. package/dist/cjs/components/forms/PasswordInput/PasswordInput.d.ts +4 -1
  6. package/dist/cjs/components/forms/RadioGroup/Radio.d.ts +4 -1
  7. package/dist/cjs/components/forms/RadioGroup/RadioGroup.d.ts +11 -1
  8. package/dist/cjs/components/forms/SearchInput/SearchInput.d.ts +4 -1
  9. package/dist/cjs/components/forms/Switch/Switch.d.ts +4 -1
  10. package/dist/cjs/components/forms/TextArea/TextArea.d.ts +4 -1
  11. package/dist/cjs/components/forms/TextInput/TextInput.d.ts +4 -1
  12. package/dist/cjs/components/forms/TextInput/TextInputBase.d.ts +1 -0
  13. package/dist/cjs/index.d.ts +20 -5
  14. package/dist/cjs/index.js +5 -5
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/cjs/utils/react/nullableValue.d.ts +18 -0
  17. package/dist/cjs/utils/warnings.d.ts +2 -0
  18. package/dist/mjs/components/forms/Checkbox/Checkbox.d.ts +8 -2
  19. package/dist/mjs/components/forms/Checkbox/CheckboxGroup.d.ts +4 -1
  20. package/dist/mjs/components/forms/FileInput/FileInput.d.ts +5 -0
  21. package/dist/mjs/components/forms/NumberInput/NumberInput.d.ts +6 -1
  22. package/dist/mjs/components/forms/PasswordInput/PasswordInput.d.ts +4 -1
  23. package/dist/mjs/components/forms/RadioGroup/Radio.d.ts +4 -1
  24. package/dist/mjs/components/forms/RadioGroup/RadioGroup.d.ts +11 -1
  25. package/dist/mjs/components/forms/SearchInput/SearchInput.d.ts +4 -1
  26. package/dist/mjs/components/forms/Switch/Switch.d.ts +4 -1
  27. package/dist/mjs/components/forms/TextArea/TextArea.d.ts +4 -1
  28. package/dist/mjs/components/forms/TextInput/TextInput.d.ts +4 -1
  29. package/dist/mjs/components/forms/TextInput/TextInputBase.d.ts +1 -0
  30. package/dist/mjs/index.d.ts +20 -5
  31. package/dist/mjs/index.js +4 -4
  32. package/dist/mjs/index.js.map +1 -1
  33. package/dist/mjs/utils/react/nullableValue.d.ts +18 -0
  34. package/dist/mjs/utils/warnings.d.ts +2 -0
  35. 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
+ };
@@ -1 +1,3 @@
1
1
  export declare function propDeprecationWarning(name: any, props: any, propList: any): void;
2
+ export declare function accessibilityWarning(...args: any[]): void;
3
+ export declare function warn(...args: any[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cube-dev/ui-kit",
3
- "version": "0.7.8",
3
+ "version": "0.7.12",
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",