@wix/site-ui 1.78.0 → 1.80.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/index.css +1 -47
- package/dist/Field/index.d.ts +0 -10
- package/dist/Field/index.js +4 -10
- package/dist/index.d.ts +0 -10
- package/package.json +3 -3
package/dist/Field/index.css
CHANGED
|
@@ -24,53 +24,7 @@
|
|
|
24
24
|
color: var(--wst-shade-3-color, #767676);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.control-fRhDZ8 {
|
|
28
|
-
width: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.control-fRhDZ8.controlLine-cAw0CF {
|
|
32
|
-
border: 0;
|
|
33
|
-
border-block-end-width: var(--wst-system-line-1-width, 1px);
|
|
34
|
-
border-block-end-style: solid;
|
|
35
|
-
border-block-end-color: color-mix(in srgb,
|
|
36
|
-
var(--wst-system-line-1-color, #000) 60%,
|
|
37
|
-
transparent);
|
|
38
|
-
border-radius: 0;
|
|
39
|
-
padding-inline: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.control-fRhDZ8.controlLine-cAw0CF:hover, .control-fRhDZ8.controlLine-cAw0CF:focus {
|
|
43
|
-
border-block-end-color: var(--wst-system-line-1-color, #000);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.root-ECdHfF:has(.labelFloating-io8BLN) {
|
|
47
|
-
position: relative;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.root-ECdHfF:has(.labelFloating-io8BLN) .control-fRhDZ8 {
|
|
51
|
-
block-size: 50px;
|
|
52
|
-
padding-block: 24px 6px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.labelFloating-io8BLN {
|
|
56
|
-
z-index: 2;
|
|
57
|
-
color: var(--wst-shade-3-color, #767676);
|
|
58
|
-
pointer-events: none;
|
|
59
|
-
margin: 0;
|
|
60
|
-
transition: inset-block-start .12s, transform .12s, font-size .12s;
|
|
61
|
-
position: absolute;
|
|
62
|
-
inset-block-start: 50%;
|
|
63
|
-
inset-inline-start: 12px;
|
|
64
|
-
transform: translateY(-50%);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.labelFloating-io8BLN[data-filled], .labelFloating-io8BLN[data-focused] {
|
|
68
|
-
font-size: 12px;
|
|
69
|
-
inset-block-start: 8px;
|
|
70
|
-
transform: translateY(0);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.item-kQeHOQ {
|
|
27
|
+
.control-fRhDZ8, .item-kQeHOQ {
|
|
74
28
|
width: 100%;
|
|
75
29
|
}
|
|
76
30
|
|
package/dist/Field/index.d.ts
CHANGED
|
@@ -106,8 +106,6 @@ declare const closeWatcher: "close-watcher";
|
|
|
106
106
|
*/
|
|
107
107
|
declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
|
|
108
108
|
|
|
109
|
-
declare type ControlVariant = 'box' | 'line';
|
|
110
|
-
|
|
111
109
|
declare const decrementPress: "decrement-press";
|
|
112
110
|
|
|
113
111
|
declare const disabled: "disabled";
|
|
@@ -124,9 +122,6 @@ export declare const Field: {
|
|
|
124
122
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
125
123
|
Label: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldLabelProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
126
124
|
className?: string | undefined;
|
|
127
|
-
} & {
|
|
128
|
-
/** `floating` lifts the label into the control until it is focused or filled. */
|
|
129
|
-
variant?: LabelVariant | undefined;
|
|
130
125
|
} & React_2.RefAttributes<HTMLElement>>;
|
|
131
126
|
Error: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldErrorProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
132
127
|
className?: string | undefined;
|
|
@@ -136,9 +131,6 @@ export declare const Field: {
|
|
|
136
131
|
} & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
137
132
|
Control: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldControlProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
138
133
|
className?: string | undefined;
|
|
139
|
-
} & {
|
|
140
|
-
/** `line` swaps the boxed border for a single bottom border. */
|
|
141
|
-
variant?: ControlVariant | undefined;
|
|
142
134
|
} & React_2.RefAttributes<HTMLElement>>;
|
|
143
135
|
Item: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldItemProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
144
136
|
className?: string | undefined;
|
|
@@ -558,8 +550,6 @@ declare const itemPress: "item-press";
|
|
|
558
550
|
|
|
559
551
|
declare const keyboard: "keyboard";
|
|
560
552
|
|
|
561
|
-
declare type LabelVariant = 'default' | 'floating';
|
|
562
|
-
|
|
563
553
|
declare const linkPress: "link-press";
|
|
564
554
|
|
|
565
555
|
declare const listNavigation: "list-navigation";
|
package/dist/Field/index.js
CHANGED
|
@@ -675,8 +675,6 @@ const Field_module = {
|
|
|
675
675
|
error: "error-BUDKWp",
|
|
676
676
|
description: "description-IVviYU",
|
|
677
677
|
control: "control-fRhDZ8",
|
|
678
|
-
controlLine: "controlLine-cAw0CF",
|
|
679
|
-
labelFloating: "labelFloating-io8BLN",
|
|
680
678
|
item: "item-kQeHOQ"
|
|
681
679
|
};
|
|
682
680
|
const Root = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(FieldRoot_FieldRoot, {
|
|
@@ -684,11 +682,9 @@ const Root = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...p
|
|
|
684
682
|
className: clsx(Field_module.root, className),
|
|
685
683
|
...props
|
|
686
684
|
}));
|
|
687
|
-
const Label = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className,
|
|
685
|
+
const Label = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(FieldLabel_FieldLabel, {
|
|
688
686
|
ref: ref,
|
|
689
|
-
className: clsx(Field_module.label,
|
|
690
|
-
[Field_module.labelFloating]: 'floating' === variant
|
|
691
|
-
}, className),
|
|
687
|
+
className: clsx(Field_module.label, className),
|
|
692
688
|
...props
|
|
693
689
|
}));
|
|
694
690
|
const Error = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(FieldError_FieldError, {
|
|
@@ -715,14 +711,12 @@ const TEXT_INPUT_TYPES = new Set([
|
|
|
715
711
|
'week',
|
|
716
712
|
'time'
|
|
717
713
|
]);
|
|
718
|
-
const Control = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, type = 'text',
|
|
714
|
+
const Control = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, type = 'text', ...props }, ref)=>/*#__PURE__*/ jsx(FieldControl_FieldControl, {
|
|
719
715
|
ref: ref,
|
|
720
716
|
type: type,
|
|
721
717
|
className: clsx({
|
|
722
718
|
[Input_module.root]: TEXT_INPUT_TYPES.has(type)
|
|
723
|
-
}, Field_module.control,
|
|
724
|
-
[Field_module.controlLine]: 'line' === variant
|
|
725
|
-
}, className),
|
|
719
|
+
}, Field_module.control, className),
|
|
726
720
|
...props
|
|
727
721
|
}));
|
|
728
722
|
const Item = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(FieldItem_FieldItem, {
|
package/dist/index.d.ts
CHANGED
|
@@ -3037,8 +3037,6 @@ export declare interface ContextMenuTriggerState {
|
|
|
3037
3037
|
open: boolean;
|
|
3038
3038
|
}
|
|
3039
3039
|
|
|
3040
|
-
declare type ControlVariant = 'box' | 'line';
|
|
3041
|
-
|
|
3042
3040
|
export declare type Coords = typeof DEFAULT_COORDS;
|
|
3043
3041
|
|
|
3044
3042
|
declare function createAlertDialogHandle<Payload>(): AlertDialogHandle<Payload>;
|
|
@@ -4180,9 +4178,6 @@ export declare const Field: {
|
|
|
4180
4178
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
4181
4179
|
Label: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldLabelProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
4182
4180
|
className?: string | undefined;
|
|
4183
|
-
} & {
|
|
4184
|
-
/** `floating` lifts the label into the control until it is focused or filled. */
|
|
4185
|
-
variant?: LabelVariant | undefined;
|
|
4186
4181
|
} & React_2.RefAttributes<HTMLElement>>;
|
|
4187
4182
|
Error: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldErrorProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
4188
4183
|
className?: string | undefined;
|
|
@@ -4192,9 +4187,6 @@ export declare const Field: {
|
|
|
4192
4187
|
} & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
4193
4188
|
Control: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldControlProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
4194
4189
|
className?: string | undefined;
|
|
4195
|
-
} & {
|
|
4196
|
-
/** `line` swaps the boxed border for a single bottom border. */
|
|
4197
|
-
variant?: ControlVariant | undefined;
|
|
4198
4190
|
} & React_2.RefAttributes<HTMLElement>>;
|
|
4199
4191
|
Item: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldItemProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
4200
4192
|
className?: string | undefined;
|
|
@@ -4922,8 +4914,6 @@ declare interface LabelableContext {
|
|
|
4922
4914
|
*/
|
|
4923
4915
|
declare const LabelableContext: React_2.Context<LabelableContext>;
|
|
4924
4916
|
|
|
4925
|
-
declare type LabelVariant = 'default' | 'floating';
|
|
4926
|
-
|
|
4927
4917
|
declare const linkPress: "link-press";
|
|
4928
4918
|
|
|
4929
4919
|
declare const listNavigation: "list-navigation";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.80.0",
|
|
4
4
|
"description": "Pure UI components for the Wix site builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"build-storybook": "NODE_OPTIONS=--max-old-space-size=8192 storybook build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@wix/wix-ui-icons-common": "^3.
|
|
40
|
+
"@wix/wix-ui-icons-common": "^3.114.0",
|
|
41
41
|
"clsx": "2.0.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"registry": "https://registry.npmjs.org/",
|
|
95
95
|
"access": "public"
|
|
96
96
|
},
|
|
97
|
-
"falconPackageHash": "
|
|
97
|
+
"falconPackageHash": "e347a80ebf6a2e3ee4559f91841cf111daa1085e5b929b2317eade74"
|
|
98
98
|
}
|