@preply/ds-web-core 0.51.0 → 0.53.0
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/field/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Dataset } from '@preply/ds-core';
|
|
2
2
|
import type { MouseEventHandler, ReactNode } from 'react';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
import { IconProps } from '../icon/types';
|
|
4
5
|
import type { AutoCompletePasswordOptions, SimpleTextInputType, SingleLineInputType } from '../input/private/types';
|
|
5
6
|
import type { CombinableInputProps, InputPasswordProps, InputTextProps } from '../input/types';
|
|
@@ -10,10 +11,10 @@ export declare type FieldValue = string | number | boolean;
|
|
|
10
11
|
*/
|
|
11
12
|
export interface FieldLabelProps {
|
|
12
13
|
id: string;
|
|
13
|
-
label?: string;
|
|
14
|
+
label?: ReactNode | string;
|
|
14
15
|
hideLabel?: boolean;
|
|
15
16
|
required?: boolean;
|
|
16
|
-
requiredLabel?: string;
|
|
17
|
+
requiredLabel?: ReactNode | string;
|
|
17
18
|
}
|
|
18
19
|
export interface FieldButtonProps {
|
|
19
20
|
svg: ReactSVGComponentType;
|
|
@@ -24,11 +25,11 @@ export interface FieldButtonProps {
|
|
|
24
25
|
export interface FieldLayoutBaseProps {
|
|
25
26
|
id: string;
|
|
26
27
|
className?: string;
|
|
27
|
-
label: string;
|
|
28
|
+
label: ReactNode | string;
|
|
28
29
|
hideLabel?: boolean;
|
|
29
30
|
required?: boolean;
|
|
30
|
-
requiredLabel?: string;
|
|
31
|
-
additionalText?: string;
|
|
31
|
+
requiredLabel?: ReactNode | string;
|
|
32
|
+
additionalText?: ReactNode | string;
|
|
32
33
|
preserveSpace?: boolean;
|
|
33
34
|
disabled?: boolean;
|
|
34
35
|
isFocused?: boolean;
|
|
@@ -59,13 +60,13 @@ export interface FieldAdditionalTextProps {
|
|
|
59
60
|
*/
|
|
60
61
|
export interface FieldCommonProps {
|
|
61
62
|
id?: string;
|
|
62
|
-
label: string;
|
|
63
|
-
requiredLabel?: string;
|
|
63
|
+
label: ReactNode | string;
|
|
64
|
+
requiredLabel?: ReactNode | string;
|
|
64
65
|
hideLabel?: boolean;
|
|
65
|
-
additionalText?: string;
|
|
66
|
+
additionalText?: ReactNode | string;
|
|
66
67
|
preserveSpace?: boolean;
|
|
67
68
|
hasError?: boolean;
|
|
68
|
-
errorMessage?: string;
|
|
69
|
+
errorMessage?: ReactNode | string;
|
|
69
70
|
dataset?: Dataset;
|
|
70
71
|
inputDataset?: Dataset;
|
|
71
72
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED @
|
|
1
|
+
/* AUTO GENERATED @Thu Jan 26 2023 10:39:43 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
@AVATAR_SIZE_OPTIONS: 2xs, xs, s, m, l, xl;
|
|
4
4
|
@BADGE_COLOR_OPTIONS: gray, teal, green, blue, yellow, red, magenta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED @
|
|
1
|
+
/* AUTO GENERATED @Thu Jan 26 2023 10:39:43 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
@scheme-color: var(--aface6);
|
|
4
4
|
@scheme-bgColor: var(--786b9e);
|
|
@@ -400,6 +400,12 @@
|
|
|
400
400
|
@text-weight-normal-fontWeight: var(--5ea101);
|
|
401
401
|
@text-weight-medium-fontWeight: var(--2734e9);
|
|
402
402
|
@text-weight-bold-fontWeight: var(--800787);
|
|
403
|
+
@input-base-color: var(--41d493);
|
|
404
|
+
@input-base-bgColor: var(--211bc0);
|
|
405
|
+
@input-placeholder-color: var(--d9209f);
|
|
406
|
+
@input-icon-color: var(--cbc724);
|
|
407
|
+
@input-error-color: var(--7b0f41);
|
|
408
|
+
@input-error-bgColor: var(--95df5b);
|
|
403
409
|
@input-base-borderWidth: var(--d9baa3);
|
|
404
410
|
@input-base-borderRadius: var(--c4b051);
|
|
405
411
|
@root-size-none: var(--c12f10);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@preply/ds-web-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"dev": "run build:rollup -w"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@preply/ds-core": "0.
|
|
23
|
-
"@preply/ds-core-types": "0.
|
|
22
|
+
"@preply/ds-core": "0.53.0",
|
|
23
|
+
"@preply/ds-core-types": "0.53.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@preply/ds-core": "0.
|
|
27
|
-
"@preply/ds-core-types": "0.
|
|
26
|
+
"@preply/ds-core": "0.53.0",
|
|
27
|
+
"@preply/ds-core-types": "0.53.0",
|
|
28
28
|
"react": "^16.8.3",
|
|
29
29
|
"react-dom": "^16.8.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "1578281eb5bb15d95d943e6a6c109381de37f0ad"
|
|
32
32
|
}
|