@preply/ds-web-core 0.50.0 → 0.52.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,6 +1,8 @@
|
|
|
1
|
-
/* AUTO GENERATED @Fri
|
|
1
|
+
/* AUTO GENERATED @Fri Jan 13 2023 14:34:37 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
@AVATAR_SIZE_OPTIONS: 2xs, xs, s, m, l, xl;
|
|
4
|
+
@BADGE_COLOR_OPTIONS: gray, teal, green, blue, yellow, red, magenta;
|
|
5
|
+
@BADGE_SIZE_OPTIONS: xs, s, m;
|
|
4
6
|
@BOX_PADDING_OPTIONS: none, 3xs, 2xs, xs, s, m, l, xl;
|
|
5
7
|
@BOX_RADIUS_OPTIONS: none, m, l;
|
|
6
8
|
@BUTTON_SIZE_OPTIONS: xs, s, m, l, xl;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED @Fri
|
|
1
|
+
/* AUTO GENERATED @Fri Jan 13 2023 14:34:37 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
@scheme-color: var(--aface6);
|
|
4
4
|
@scheme-bgColor: var(--786b9e);
|
|
@@ -181,6 +181,13 @@
|
|
|
181
181
|
@avatar-size-m-size: var(--b51334);
|
|
182
182
|
@avatar-size-l-size: var(--d318a5);
|
|
183
183
|
@avatar-size-xl-size: var(--6eb1c7);
|
|
184
|
+
@badge-base-borderRadius: var(--93d4a2);
|
|
185
|
+
@badge-size-xs-verticalPadding: var(--8feee9);
|
|
186
|
+
@badge-size-s-verticalPadding: var(--25e959);
|
|
187
|
+
@badge-size-m-verticalPadding: var(--0d8aa3);
|
|
188
|
+
@badge-size-xs-horizontalPadding: var(--62f094);
|
|
189
|
+
@badge-size-s-horizontalPadding: var(--796ab1);
|
|
190
|
+
@badge-size-m-horizontalPadding: var(--3d1d33);
|
|
184
191
|
@box-radius-none-borderRadius: var(--84e079);
|
|
185
192
|
@box-radius-m-borderRadius: var(--1c37d5);
|
|
186
193
|
@box-radius-l-borderRadius: var(--9e57e5);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@preply/ds-web-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.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.52.0",
|
|
23
|
+
"@preply/ds-core-types": "0.52.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@preply/ds-core": "0.
|
|
27
|
-
"@preply/ds-core-types": "0.
|
|
26
|
+
"@preply/ds-core": "0.52.0",
|
|
27
|
+
"@preply/ds-core-types": "0.52.0",
|
|
28
28
|
"react": "^16.8.3",
|
|
29
29
|
"react-dom": "^16.8.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "6a4770708988b14b65b7284104c367368c68b230"
|
|
32
32
|
}
|