@cube-dev/ui-kit 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) 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/NumberInput/NumberInput.d.ts +6 -1
  4. package/dist/cjs/components/forms/PasswordInput/PasswordInput.d.ts +4 -1
  5. package/dist/cjs/components/forms/RadioGroup/Radio.d.ts +4 -1
  6. package/dist/cjs/components/forms/RadioGroup/RadioGroup.d.ts +11 -1
  7. package/dist/cjs/components/forms/SearchInput/SearchInput.d.ts +4 -1
  8. package/dist/cjs/components/forms/Switch/Switch.d.ts +4 -1
  9. package/dist/cjs/components/forms/TextArea/TextArea.d.ts +4 -1
  10. package/dist/cjs/components/forms/TextInput/TextInput.d.ts +4 -1
  11. package/dist/cjs/components/forms/TextInput/TextInputBase.d.ts +1 -0
  12. package/dist/cjs/index.d.ts +20 -5
  13. package/dist/cjs/index.js +5 -5
  14. package/dist/cjs/index.js.map +1 -1
  15. package/dist/cjs/utils/react/nullableValue.d.ts +18 -0
  16. package/dist/cjs/utils/warnings.d.ts +2 -0
  17. package/dist/mjs/components/forms/Checkbox/Checkbox.d.ts +8 -2
  18. package/dist/mjs/components/forms/Checkbox/CheckboxGroup.d.ts +4 -1
  19. package/dist/mjs/components/forms/NumberInput/NumberInput.d.ts +6 -1
  20. package/dist/mjs/components/forms/PasswordInput/PasswordInput.d.ts +4 -1
  21. package/dist/mjs/components/forms/RadioGroup/Radio.d.ts +4 -1
  22. package/dist/mjs/components/forms/RadioGroup/RadioGroup.d.ts +11 -1
  23. package/dist/mjs/components/forms/SearchInput/SearchInput.d.ts +4 -1
  24. package/dist/mjs/components/forms/Switch/Switch.d.ts +4 -1
  25. package/dist/mjs/components/forms/TextArea/TextArea.d.ts +4 -1
  26. package/dist/mjs/components/forms/TextInput/TextInput.d.ts +4 -1
  27. package/dist/mjs/components/forms/TextInput/TextInputBase.d.ts +1 -0
  28. package/dist/mjs/index.d.ts +20 -5
  29. package/dist/mjs/index.js +4 -4
  30. package/dist/mjs/index.js.map +1 -1
  31. package/dist/mjs/utils/react/nullableValue.d.ts +18 -0
  32. package/dist/mjs/utils/warnings.d.ts +2 -0
  33. 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
+ };
@@ -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.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",