@cube-dev/ui-kit 0.7.13 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/components/content/Result/Result.d.ts +2 -1
- package/dist/cjs/components/forms/Checkbox/Checkbox.d.ts +6 -10
- package/dist/cjs/components/forms/Checkbox/CheckboxGroup.d.ts +1 -3
- package/dist/cjs/components/forms/FileInput/FileInput.d.ts +5 -1
- package/dist/cjs/components/forms/Form/Field.d.ts +2 -0
- package/dist/cjs/components/forms/NumberInput/NumberInput.d.ts +1 -3
- package/dist/cjs/components/forms/PasswordInput/PasswordInput.d.ts +1 -3
- package/dist/cjs/components/forms/RadioGroup/Radio.d.ts +9 -7
- package/dist/cjs/components/forms/RadioGroup/RadioGroup.d.ts +1 -3
- package/dist/cjs/components/forms/Switch/Switch.d.ts +1 -3
- package/dist/cjs/components/forms/TextArea/TextArea.d.ts +1 -3
- package/dist/cjs/components/forms/TextInput/TextInput.d.ts +1 -3
- package/dist/cjs/components/pickers/ComboBox/ComboBox.d.ts +5 -3
- package/dist/cjs/components/pickers/Select/Select.d.ts +2 -4
- package/dist/cjs/components/types.d.ts +2 -0
- package/dist/cjs/index.d.ts +4 -14
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/stories/FormFieldArgs.d.ts +131 -0
- package/dist/cjs/styles/gap.d.ts +1 -1
- package/dist/cjs/utils/dotize.d.ts +21 -0
- package/dist/cjs/utils/react/nullableValue.d.ts +1 -0
- package/dist/cjs/utils/styles.d.ts +3 -3
- package/dist/mjs/components/content/Result/Result.d.ts +2 -1
- package/dist/mjs/components/forms/Checkbox/Checkbox.d.ts +6 -10
- package/dist/mjs/components/forms/Checkbox/CheckboxGroup.d.ts +1 -3
- package/dist/mjs/components/forms/FileInput/FileInput.d.ts +5 -1
- package/dist/mjs/components/forms/Form/Field.d.ts +2 -0
- package/dist/mjs/components/forms/NumberInput/NumberInput.d.ts +1 -3
- package/dist/mjs/components/forms/PasswordInput/PasswordInput.d.ts +1 -3
- package/dist/mjs/components/forms/RadioGroup/Radio.d.ts +9 -7
- package/dist/mjs/components/forms/RadioGroup/RadioGroup.d.ts +1 -3
- package/dist/mjs/components/forms/Switch/Switch.d.ts +1 -3
- package/dist/mjs/components/forms/TextArea/TextArea.d.ts +1 -3
- package/dist/mjs/components/forms/TextInput/TextInput.d.ts +1 -3
- package/dist/mjs/components/pickers/ComboBox/ComboBox.d.ts +5 -3
- package/dist/mjs/components/pickers/Select/Select.d.ts +2 -4
- package/dist/mjs/components/types.d.ts +2 -0
- package/dist/mjs/index.d.ts +4 -14
- package/dist/mjs/index.js +7 -7
- package/dist/mjs/index.js.map +1 -1
- package/dist/mjs/stories/FormFieldArgs.d.ts +131 -0
- package/dist/mjs/styles/gap.d.ts +1 -1
- package/dist/mjs/utils/dotize.d.ts +21 -0
- package/dist/mjs/utils/react/nullableValue.d.ts +1 -0
- package/dist/mjs/utils/styles.d.ts +3 -3
- package/package.json +4 -5
@@ -192,3 +192,134 @@ export declare const REQUIRED_MARK_ARG: {
|
|
192
192
|
};
|
193
193
|
};
|
194
194
|
};
|
195
|
+
export declare const TEXT_VALUE_ARG: {
|
196
|
+
value: {
|
197
|
+
defaultValue: undefined;
|
198
|
+
description: string;
|
199
|
+
control: string;
|
200
|
+
table: {
|
201
|
+
type: {
|
202
|
+
summary: string;
|
203
|
+
};
|
204
|
+
};
|
205
|
+
};
|
206
|
+
defaultValue: {
|
207
|
+
defaultValue: undefined;
|
208
|
+
description: string;
|
209
|
+
control: string;
|
210
|
+
table: {
|
211
|
+
type: {
|
212
|
+
summary: string;
|
213
|
+
};
|
214
|
+
};
|
215
|
+
};
|
216
|
+
};
|
217
|
+
export declare const NUMBER_VALUE_ARG: {
|
218
|
+
value: {
|
219
|
+
defaultValue: undefined;
|
220
|
+
description: string;
|
221
|
+
control: string;
|
222
|
+
table: {
|
223
|
+
type: {
|
224
|
+
summary: string;
|
225
|
+
};
|
226
|
+
};
|
227
|
+
};
|
228
|
+
defaultValue: {
|
229
|
+
defaultValue: undefined;
|
230
|
+
description: string;
|
231
|
+
control: string;
|
232
|
+
table: {
|
233
|
+
type: {
|
234
|
+
summary: string;
|
235
|
+
};
|
236
|
+
};
|
237
|
+
};
|
238
|
+
};
|
239
|
+
export declare const MULTIPLE_VALUE_ARG: {
|
240
|
+
value: {
|
241
|
+
defaultValue: undefined;
|
242
|
+
description: string;
|
243
|
+
control: string;
|
244
|
+
table: {
|
245
|
+
type: {
|
246
|
+
summary: string;
|
247
|
+
};
|
248
|
+
};
|
249
|
+
};
|
250
|
+
defaultValue: {
|
251
|
+
defaultValue: undefined;
|
252
|
+
description: string;
|
253
|
+
control: string;
|
254
|
+
table: {
|
255
|
+
type: {
|
256
|
+
summary: string;
|
257
|
+
};
|
258
|
+
};
|
259
|
+
};
|
260
|
+
};
|
261
|
+
export declare const IS_SELECTED_ARG: {
|
262
|
+
isSelected: {
|
263
|
+
defaultValue: undefined;
|
264
|
+
description: string;
|
265
|
+
control: {
|
266
|
+
type: string;
|
267
|
+
options: (boolean | undefined)[];
|
268
|
+
};
|
269
|
+
table: {
|
270
|
+
type: {
|
271
|
+
summary: string;
|
272
|
+
};
|
273
|
+
};
|
274
|
+
};
|
275
|
+
defaultSelected: {
|
276
|
+
defaultValue: undefined;
|
277
|
+
description: string;
|
278
|
+
control: {
|
279
|
+
type: string;
|
280
|
+
options: (boolean | undefined)[];
|
281
|
+
};
|
282
|
+
table: {
|
283
|
+
type: {
|
284
|
+
summary: string;
|
285
|
+
};
|
286
|
+
};
|
287
|
+
};
|
288
|
+
};
|
289
|
+
export declare const IS_INDETERMINATE_ARG: {
|
290
|
+
isIndeterminate: {
|
291
|
+
defaultValue: undefined;
|
292
|
+
description: string;
|
293
|
+
control: {
|
294
|
+
type: string;
|
295
|
+
options: (boolean | undefined)[];
|
296
|
+
};
|
297
|
+
table: {
|
298
|
+
type: {
|
299
|
+
summary: string;
|
300
|
+
};
|
301
|
+
};
|
302
|
+
};
|
303
|
+
};
|
304
|
+
export declare const SELECTED_KEY_ARG: {
|
305
|
+
selectedKey: {
|
306
|
+
defaultValue: undefined;
|
307
|
+
description: string;
|
308
|
+
control: string;
|
309
|
+
table: {
|
310
|
+
type: {
|
311
|
+
summary: string;
|
312
|
+
};
|
313
|
+
};
|
314
|
+
};
|
315
|
+
defaultSelectedKey: {
|
316
|
+
defaultValue: undefined;
|
317
|
+
description: string;
|
318
|
+
control: string;
|
319
|
+
table: {
|
320
|
+
type: {
|
321
|
+
summary: string;
|
322
|
+
};
|
323
|
+
};
|
324
|
+
};
|
325
|
+
};
|
package/dist/mjs/styles/gap.d.ts
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
export declare const dotize: {
|
2
|
+
valTypes: {
|
3
|
+
none: string;
|
4
|
+
primitive: string;
|
5
|
+
object: string;
|
6
|
+
array: string;
|
7
|
+
};
|
8
|
+
getValType: (val: any) => string | undefined;
|
9
|
+
getPathType: (arrPath: any) => never[];
|
10
|
+
isUndefined: (obj: any) => boolean;
|
11
|
+
isNumber: (f: any) => boolean;
|
12
|
+
isEmptyObj: (obj: any) => boolean;
|
13
|
+
isNotObject: (obj: any) => boolean;
|
14
|
+
isEmptyArray: (arr: any) => boolean;
|
15
|
+
isNotArray: (arr: any) => boolean;
|
16
|
+
removeEmptyArrayItem: (arr: any) => any;
|
17
|
+
getFieldName: (field: any, prefix: any, isRoot: any, isArrayItem: any, isArray: any) => string;
|
18
|
+
startsWith: (val: any, valToSearch: any) => boolean;
|
19
|
+
convert: (obj: any, prefix?: string) => any;
|
20
|
+
backward: (obj: any, prefix: any) => any;
|
21
|
+
};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Props } from '../../components/types';
|
2
2
|
export declare function castNullableStringValue<T>(props: T): T;
|
3
3
|
export declare function castNullableNumberValue<T>(props: T): T;
|
4
|
+
export declare function castNullableArrayValue<T>(props: T): T;
|
4
5
|
export declare function castNullableIsSelected<T>(props: T): T;
|
5
6
|
export declare function castNullableSelectedKey<T>(props: T): T;
|
6
7
|
export declare function castNullableField<T>(props: T, keys: string[], type?: string, cast?: (k: any) => any): T;
|
@@ -132,7 +132,7 @@ export declare function renderStylesToSC(styles: CSSMap | CSSMap[], selector?: s
|
|
132
132
|
* @param {string} suffix
|
133
133
|
*/
|
134
134
|
export declare function applyStates(selector: string, states: any, suffix?: string): any;
|
135
|
-
export declare function styleHandlerCacheWrapper(styleHandler: any, limit?: number): ((
|
135
|
+
export declare function styleHandlerCacheWrapper(styleHandler: any, limit?: number): ((firstArg: any, secondArg?: string | undefined) => any) & {
|
136
136
|
__lookupStyles: any;
|
137
137
|
};
|
138
138
|
/**
|
@@ -166,7 +166,7 @@ export declare const STATE_OPERATORS: {
|
|
166
166
|
XOR: string;
|
167
167
|
};
|
168
168
|
export declare const STATE_OPERATOR_LIST: string[];
|
169
|
-
export declare const parseStateNotation: (
|
169
|
+
export declare const parseStateNotation: (firstArg: any, secondArg?: string | undefined) => any;
|
170
170
|
/**
|
171
171
|
*
|
172
172
|
* @param {StyleStateMap|string|number|boolean|null|undefined} styleStateMap
|
@@ -195,4 +195,4 @@ export declare const COMPUTE_FUNC_MAP: {
|
|
195
195
|
export declare function computeState(computeModel: ComputeModel, valueMap: (number | boolean)[] | {
|
196
196
|
[key: string]: boolean;
|
197
197
|
} | Function): any;
|
198
|
-
export declare function cacheWrapper(handler: Function, limit?: number): (
|
198
|
+
export declare function cacheWrapper(handler: Function, limit?: number): (firstArg: any, secondArg?: string | undefined) => any;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cube-dev/ui-kit",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.8.0",
|
4
4
|
"description": "UIKit for Cube Projects",
|
5
5
|
"main": "dist/cjs/index.js",
|
6
6
|
"module": "dist/mjs/index.js",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@commitlint/config-conventional": "16.0.0",
|
46
46
|
"@open-wc/testing": "^3.0.3",
|
47
47
|
"@react-aria/button": "^3.3.4",
|
48
|
-
"@react-aria/checkbox": "^3.
|
48
|
+
"@react-aria/checkbox": "^3.3.1",
|
49
49
|
"@react-aria/combobox": "^3.2.1",
|
50
50
|
"@react-aria/dialog": "^3.1.4",
|
51
51
|
"@react-aria/focus": "^3.5.0",
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"@react-aria/tooltip": "^3.1.3",
|
64
64
|
"@react-aria/utils": "^3.11.0",
|
65
65
|
"@react-spectrum/utils": "^3.6.3",
|
66
|
-
"@react-stately/checkbox": "^3.0.
|
66
|
+
"@react-stately/checkbox": "^3.0.5",
|
67
67
|
"@react-stately/collections": "^3.3.4",
|
68
68
|
"@react-stately/combobox": "^3.0.1",
|
69
69
|
"@react-stately/numberfield": "^3.0.2",
|
@@ -75,7 +75,7 @@
|
|
75
75
|
"@react-stately/tooltip": "^3.0.5",
|
76
76
|
"@react-stately/utils": "^3.3.0",
|
77
77
|
"@react-types/button": "^3.4.1",
|
78
|
-
"@react-types/checkbox": "^3.2.
|
78
|
+
"@react-types/checkbox": "^3.2.5",
|
79
79
|
"@react-types/combobox": "^3.2.1",
|
80
80
|
"@react-types/dialog": "^3.3.1",
|
81
81
|
"@react-types/numberfield": "^3.1.0",
|
@@ -115,7 +115,6 @@
|
|
115
115
|
"clsx": "^1.1.1",
|
116
116
|
"cross-env": "^7.0.3",
|
117
117
|
"css-loader": "^6.5.1",
|
118
|
-
"dotize": "^0.3.0",
|
119
118
|
"email-validator": "^2.0.4",
|
120
119
|
"eslint": "^8.5.0",
|
121
120
|
"eslint-config-prettier": "^8.3.0",
|