@wix/editor-react-components 1.2836.0 → 1.2838.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/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Button/manifest.js +1 -1
- package/dist/site/components/Checkbox/Checkbox.types.d.ts +11 -11
- package/dist/site/components/Checkbox/component.js +67 -119
- package/dist/site/components/Checkbox/constants.d.ts +21 -24
- package/dist/site/components/Checkbox/css.css +48 -164
- package/dist/site/components/Checkbox/manifest.js +178 -89
- package/dist/site/components/CheckboxGroup/manifest.js +1 -1
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/GoogleMap/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/manifest.js +1 -1
- package/dist/site/components/LinkBar/manifest.js +1 -1
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/Menu/manifest.js +1 -1
- package/dist/site/components/MultiStateBox/manifest.js +1 -1
- package/dist/site/components/RadioButtons/manifest.js +1 -1
- package/dist/site/components/ShareButtons/manifest.js +1 -1
- package/dist/site/components/Slideshow/manifest.js +1 -1
- package/dist/site/components/Tabs/manifest.js +1 -1
- package/dist/site/components/TestComp/manifest.js +1 -1
- package/dist/site/components/TextBox/manifest.js +1 -1
- package/dist/site/components/TextInput/manifest.js +2 -16
- package/dist/site/components/VideoScrub/constants.d.ts +9 -4
- package/dist/site/components/VideoScrub/css.css +1 -0
- package/dist/site/components/VideoScrub/manifest.js +17 -14
- package/dist/site/components/VideoScrub/panels/videoScaling/extension.d.ts +4 -0
- package/dist/site/components/VideoScrub/panels/videoScaling/panel.d.ts +3 -0
- package/dist/site/components/VideoScrub/panels/videoScaling/translations/consts.d.ts +7 -0
- package/dist/site/components/chunks/constants40.js +29 -31
- package/dist/site/components/chunks/manifestSdkMixins.js +25 -7
- package/dist/site/components/chunks/types.js +3 -6
- package/dist/site/components/extensions.js +14 -0
- package/package.json +2 -2
- package/dist/site/components/Checkbox/component.preview.d.ts +0 -4
|
@@ -6,106 +6,61 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.field__R0D8f {
|
|
9
|
+
flex: 1;
|
|
9
10
|
display: flex;
|
|
10
11
|
flex-direction: column;
|
|
11
|
-
align-items: flex-start;
|
|
12
|
-
row-gap: 4px;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
.item__EzhwB {
|
|
16
15
|
display: inline-flex;
|
|
17
16
|
align-items: center;
|
|
18
|
-
column-gap: var(--gap,
|
|
19
|
-
justify-content: var(--alignment, flex-start);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.control__7-RJh {
|
|
23
|
-
display: inline-flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
margin: 0;
|
|
28
|
-
padding: 0;
|
|
29
|
-
border: none;
|
|
30
|
-
background: none;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
}
|
|
33
|
-
.control__7-RJh:hover, .control__7-RJh:focus-within {
|
|
34
|
-
outline: none;
|
|
35
|
-
}
|
|
36
|
-
.control__7-RJh[data-disabled] {
|
|
37
|
-
cursor: default;
|
|
38
|
-
pointer-events: none;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.control__7-RJh:focus-visible .indicator__dzBy2,
|
|
42
|
-
.control__7-RJh:has(:focus-visible) .indicator__dzBy2,
|
|
43
|
-
.indicator__dzBy2.checkbox__indicator--focus {
|
|
44
|
-
outline: 2px solid #116dff;
|
|
45
|
-
outline-offset: 2px;
|
|
17
|
+
column-gap: var(--gap, 4px);
|
|
46
18
|
}
|
|
47
19
|
|
|
48
20
|
.indicator__dzBy2 {
|
|
49
21
|
box-sizing: content-box;
|
|
50
|
-
position: relative;
|
|
51
22
|
display: inline-flex;
|
|
52
23
|
align-items: center;
|
|
53
24
|
justify-content: center;
|
|
54
25
|
flex-shrink: 0;
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
55
28
|
width: var(--checkboxSize, 16px);
|
|
56
29
|
height: var(--checkboxSize, 16px);
|
|
57
30
|
border-style: solid;
|
|
58
|
-
border-
|
|
59
|
-
border-
|
|
60
|
-
background-color: var(--
|
|
61
|
-
|
|
62
|
-
--indicator-bg: var(--uncheckedBackgroundColor, #fff);
|
|
63
|
-
--indicator-border: var(
|
|
64
|
-
--uncheckedBorderColor,
|
|
65
|
-
color-mix(in srgb, #000 60%, transparent)
|
|
66
|
-
);
|
|
31
|
+
border-width: 1px;
|
|
32
|
+
border-color: var(--uncheckedBorderColor, #000);
|
|
33
|
+
background-color: var(--uncheckedBackgroundColor, #fff);
|
|
34
|
+
cursor: pointer;
|
|
67
35
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.control__7-RJh:not([data-checked]):not([data-indeterminate]) .indicator__dzBy2.checkbox__indicator--hover {
|
|
72
|
-
--indicator-border: var(--uncheckedBorderColor, #000);
|
|
36
|
+
.indicator__dzBy2[data-checked] {
|
|
37
|
+
border-color: var(--checkedBorderColor, #000);
|
|
38
|
+
background-color: var(--checkedBackgroundColor, #000);
|
|
73
39
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
.control__7-RJh[data-checked] .indicator__dzBy2.checkbox__indicator--hover,
|
|
78
|
-
.control__7-RJh[data-indeterminate]:hover .indicator__dzBy2,
|
|
79
|
-
.control__7-RJh[data-indeterminate]:focus-within .indicator__dzBy2,
|
|
80
|
-
.control__7-RJh[data-indeterminate] .indicator__dzBy2.checkbox__indicator--hover {
|
|
81
|
-
--indicator-border: var(--checkedBorderColor, #000);
|
|
40
|
+
.indicator__dzBy2[data-disabled] {
|
|
41
|
+
cursor: default;
|
|
42
|
+
pointer-events: none;
|
|
82
43
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
--indicator-bg: var(--checkedBackgroundColor, #116dff);
|
|
88
|
-
--indicator-border: var(
|
|
89
|
-
--checkedBorderColor,
|
|
90
|
-
var(--checkedBackgroundColor, #116dff)
|
|
91
|
-
);
|
|
44
|
+
#SITE_CONTAINER.focus-ring-active.keyboard-tabbing-on .indicator__dzBy2:focus {
|
|
45
|
+
outline: 2px solid #116dff;
|
|
46
|
+
outline-offset: 1px;
|
|
47
|
+
box-shadow: 0 0 1px 2px #ffffff;
|
|
92
48
|
}
|
|
93
|
-
|
|
94
|
-
.
|
|
95
|
-
|
|
96
|
-
|
|
49
|
+
@media (forced-colors: active) {
|
|
50
|
+
.indicator__dzBy2:focus {
|
|
51
|
+
outline: 3px solid Highlight !important;
|
|
52
|
+
outline-offset: 1px !important;
|
|
53
|
+
box-shadow: none;
|
|
54
|
+
}
|
|
97
55
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
56
|
+
.indicator__dzBy2.checkbox__indicator--focus {
|
|
57
|
+
outline: 2px solid #116dff;
|
|
58
|
+
outline-offset: 1px;
|
|
59
|
+
box-shadow: 0 0 1px 2px #ffffff;
|
|
102
60
|
}
|
|
103
61
|
|
|
104
|
-
.
|
|
105
|
-
|
|
106
|
-
.control__7-RJh[data-checked] .indicator__dzBy2.checkbox__indicator--invalid,
|
|
107
|
-
.control__7-RJh[data-indeterminate] .indicator__dzBy2.checkbox__indicator--invalid {
|
|
108
|
-
--indicator-border: var(--checkedBorderColor, #ff4040);
|
|
62
|
+
.checkmarkWrapper__DXeX5 {
|
|
63
|
+
display: contents;
|
|
109
64
|
}
|
|
110
65
|
|
|
111
66
|
.checkmark__SY2jU {
|
|
@@ -114,108 +69,31 @@
|
|
|
114
69
|
}
|
|
115
70
|
.checkmark__SY2jU path {
|
|
116
71
|
fill: transparent;
|
|
117
|
-
transition: fill 0.2s linear;
|
|
118
72
|
}
|
|
119
73
|
|
|
120
|
-
.
|
|
74
|
+
.indicator__dzBy2[data-checked] .checkmark__SY2jU path {
|
|
121
75
|
fill: var(--checkmarkColor, #fff);
|
|
122
76
|
}
|
|
123
77
|
|
|
124
|
-
/* Indeterminate: hide the tick and draw a centered dash instead. */
|
|
125
|
-
.control__7-RJh[data-indeterminate] .checkmark__SY2jU,
|
|
126
|
-
.indicator__dzBy2.checkbox__indicator--indeterminate .checkmark__SY2jU {
|
|
127
|
-
display: none;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.control__7-RJh[data-indeterminate] .indicator__dzBy2::after,
|
|
131
|
-
.indicator__dzBy2.checkbox__indicator--indeterminate::after {
|
|
132
|
-
content: "";
|
|
133
|
-
position: absolute;
|
|
134
|
-
top: 50%;
|
|
135
|
-
left: 50%;
|
|
136
|
-
transform: translate(-50%, -50%);
|
|
137
|
-
width: 60%;
|
|
138
|
-
height: 2px;
|
|
139
|
-
border-radius: 1px;
|
|
140
|
-
background: var(--checkmarkColor, #fff);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
78
|
.label__Y3ciV {
|
|
144
79
|
cursor: pointer;
|
|
145
80
|
margin-bottom: 0;
|
|
146
81
|
}
|
|
82
|
+
.label__Y3ciV[data-disabled] {
|
|
83
|
+
cursor: default;
|
|
84
|
+
}
|
|
147
85
|
|
|
148
86
|
.errorMessage__PtMqM {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
87
|
+
contain: inline-size;
|
|
88
|
+
display: -webkit-box;
|
|
89
|
+
-webkit-box-orient: vertical;
|
|
90
|
+
-webkit-line-clamp: 2;
|
|
91
|
+
max-height: 2lh;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
text-overflow: ellipsis;
|
|
155
94
|
}
|
|
156
95
|
.errorMessage__PtMqM svg {
|
|
157
|
-
|
|
158
|
-
width: 18px;
|
|
159
|
-
height: 18px;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.tooltipButton__EXd4N {
|
|
163
|
-
flex: none;
|
|
164
|
-
box-sizing: border-box;
|
|
165
|
-
display: inline-flex;
|
|
166
|
-
align-items: center;
|
|
167
|
-
justify-content: center;
|
|
168
|
-
width: 16px;
|
|
169
|
-
height: 16px;
|
|
170
|
-
margin: 0;
|
|
171
|
-
padding: 0;
|
|
172
|
-
border: none;
|
|
173
|
-
background: transparent;
|
|
174
|
-
color: inherit;
|
|
175
|
-
cursor: pointer;
|
|
176
|
-
opacity: 0.65;
|
|
177
|
-
}
|
|
178
|
-
.tooltipButton__EXd4N:hover, .tooltipButton__EXd4N:focus-visible {
|
|
179
|
-
opacity: 1;
|
|
180
|
-
}
|
|
181
|
-
.tooltipButton__EXd4N:focus-visible {
|
|
182
|
-
outline: none;
|
|
183
|
-
border-radius: 50%;
|
|
184
|
-
box-shadow: 0 0 0 2px #116dff;
|
|
185
|
-
}
|
|
186
|
-
.tooltipButton__EXd4N svg {
|
|
187
|
-
width: 16px;
|
|
188
|
-
height: 16px;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.tooltip__Eudyd {
|
|
192
|
-
max-width: 220px;
|
|
193
|
-
padding: 6px 10px;
|
|
194
|
-
font: normal normal normal 12px/1.4em madefor-text, sans-serif;
|
|
195
|
-
color: #fff;
|
|
196
|
-
background: #2b2b2b;
|
|
197
|
-
border-radius: 6px;
|
|
198
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
199
|
-
}.checkbox {
|
|
200
|
-
--gap: 8px;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.checkbox__indicator {
|
|
204
|
-
border-radius: 2px;
|
|
205
|
-
}
|
|
206
|
-
.requiredIndicator__j5mIH {
|
|
207
|
-
display: inline-block;
|
|
208
|
-
width: 0.6em;
|
|
209
|
-
height: 0.6em;
|
|
210
|
-
margin-inline-start: 0.2em;
|
|
211
|
-
vertical-align: super;
|
|
212
|
-
color: inherit;
|
|
213
|
-
}
|
|
214
|
-
.fallbackDirection__HeRgn:not([dir]) {
|
|
215
|
-
direction: var(--wix-opt-in-direction);
|
|
216
|
-
}
|
|
217
|
-
.presetWrapper__J1yzj {
|
|
218
|
-
display: contents;
|
|
96
|
+
display: none;
|
|
219
97
|
}
|
|
220
98
|
.visuallyHidden__Md84p {
|
|
221
99
|
position: absolute;
|
|
@@ -227,4 +105,10 @@
|
|
|
227
105
|
clip-path: inset(50%);
|
|
228
106
|
white-space: nowrap;
|
|
229
107
|
border: 0;
|
|
108
|
+
}
|
|
109
|
+
.fallbackDirection__HeRgn:not([dir]) {
|
|
110
|
+
direction: var(--wix-opt-in-direction);
|
|
111
|
+
}
|
|
112
|
+
.presetWrapper__J1yzj {
|
|
113
|
+
display: contents;
|
|
230
114
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES,
|
|
2
|
-
import {
|
|
1
|
+
import { D as DATA, b as DISPLAY_GROUPS, E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
2
|
+
import { d as defaultValues, a as DisplayNames, b as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, F as FunctionalStateKeys, D as DesignStates, s as selectors } from "../chunks/constants40.js";
|
|
3
|
+
import { b as manifestFocusable, m as manifestKeyboard } from "../chunks/manifestSdkMixins.js";
|
|
3
4
|
import { g as getSelector } from "../chunks/manifest.js";
|
|
4
|
-
|
|
5
|
-
import { m as manifestValidation } from "../chunks/manifest2.js";
|
|
5
|
+
const basePresetName = "baseCheckbox";
|
|
6
6
|
const manifest = {
|
|
7
|
-
id: "
|
|
8
|
-
type: "wixEditorElements.
|
|
7
|
+
id: "f98a2212-26c9-4403-ba6b-47a73d504152",
|
|
8
|
+
type: "wixEditorElements.Checkbox__DEV__v9",
|
|
9
9
|
description: "A single checkbox input with label",
|
|
10
10
|
installation: {
|
|
11
|
+
presets: {
|
|
12
|
+
small: basePresetName,
|
|
13
|
+
large: basePresetName
|
|
14
|
+
},
|
|
11
15
|
initialSize: {
|
|
12
16
|
width: {
|
|
13
17
|
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
@@ -22,75 +26,71 @@ const manifest = {
|
|
|
22
26
|
selector: getSelector(selectors.root),
|
|
23
27
|
displayName: DisplayNames.root.elementDisplayName,
|
|
24
28
|
archetype: Archetype.Checkbox,
|
|
29
|
+
presets: {
|
|
30
|
+
[basePresetName]: {
|
|
31
|
+
presetCssUrl: `./site/components/Checkbox/presets/${basePresetName}.css`,
|
|
32
|
+
displayName: DisplayNames.root.presets.baseCheckbox,
|
|
33
|
+
presetDefaults: {
|
|
34
|
+
elements: {
|
|
35
|
+
indicator: {
|
|
36
|
+
cssProperties: {
|
|
37
|
+
borderRadius: { defaultValue: "2px" },
|
|
38
|
+
borderWidth: { defaultValue: "1px" },
|
|
39
|
+
boxShadow: { defaultValue: "none" }
|
|
40
|
+
},
|
|
41
|
+
cssCustomProperties: {
|
|
42
|
+
uncheckedBackgroundColor: { defaultValue: "#ffffff" },
|
|
43
|
+
uncheckedBorderColor: { defaultValue: "rgba(0, 0, 0, 1)" },
|
|
44
|
+
checkedBackgroundColor: { defaultValue: "rgba(0, 0, 0, 1)" },
|
|
45
|
+
checkedBorderColor: { defaultValue: "rgba(0, 0, 0, 1)" },
|
|
46
|
+
checkmarkColor: { defaultValue: "#ffffff" },
|
|
47
|
+
checkboxSize: { defaultValue: "16px" }
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
label: {
|
|
51
|
+
cssProperties: {
|
|
52
|
+
textAlign: { defaultValue: "start" },
|
|
53
|
+
font: {
|
|
54
|
+
defaultValue: "normal normal 400 16px/1.3em 'Wix Madefor Text', sans-serif"
|
|
55
|
+
},
|
|
56
|
+
color: { defaultValue: "rgba(0, 0, 0, 1)" }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
errorMessage: {
|
|
60
|
+
cssProperties: {
|
|
61
|
+
marginTop: { defaultValue: "0px" },
|
|
62
|
+
textAlign: { defaultValue: "start" },
|
|
63
|
+
font: {
|
|
64
|
+
defaultValue: "normal normal 400 14px/1.3em 'Wix Madefor Text', sans-serif"
|
|
65
|
+
},
|
|
66
|
+
color: { defaultValue: "rgba(0, 0, 0, 1)" }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
25
73
|
layout: {
|
|
26
|
-
resizeDirection: LAYOUT.RESIZE_DIRECTION.
|
|
74
|
+
resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontal,
|
|
27
75
|
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.horizontalAndVertical,
|
|
28
76
|
disableStretching: true,
|
|
29
77
|
disablePositioning: false
|
|
30
78
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
defaultValue: defaultValues.tooltip
|
|
41
|
-
},
|
|
42
|
-
checked: {
|
|
43
|
-
dataType: DATA.DATA_TYPE.booleanValue,
|
|
44
|
-
displayName: DisplayNames.root.data.checked,
|
|
45
|
-
defaultValue: defaultValues.checked
|
|
46
|
-
},
|
|
47
|
-
defaultChecked: {
|
|
48
|
-
dataType: DATA.DATA_TYPE.booleanValue,
|
|
49
|
-
displayName: DisplayNames.root.data.defaultChecked,
|
|
50
|
-
defaultValue: defaultValues.defaultChecked
|
|
51
|
-
},
|
|
52
|
-
required: {
|
|
53
|
-
dataType: DATA.DATA_TYPE.booleanValue,
|
|
54
|
-
displayName: DisplayNames.root.data.required,
|
|
55
|
-
defaultValue: defaultValues.required
|
|
56
|
-
},
|
|
57
|
-
readOnly: {
|
|
58
|
-
dataType: DATA.DATA_TYPE.booleanValue,
|
|
59
|
-
displayName: DisplayNames.root.data.readOnly,
|
|
60
|
-
defaultValue: defaultValues.readOnly
|
|
61
|
-
},
|
|
62
|
-
disabled: {
|
|
63
|
-
dataType: DATA.DATA_TYPE.booleanValue,
|
|
64
|
-
displayName: DisplayNames.root.data.disabled,
|
|
65
|
-
defaultValue: defaultValues.disabled
|
|
66
|
-
},
|
|
67
|
-
indeterminate: {
|
|
68
|
-
dataType: DATA.DATA_TYPE.booleanValue,
|
|
69
|
-
displayName: DisplayNames.root.data.indeterminate,
|
|
70
|
-
defaultValue: defaultValues.indeterminate
|
|
71
|
-
},
|
|
72
|
-
a11y: {
|
|
73
|
-
dataType: DATA.DATA_TYPE.a11y,
|
|
74
|
-
[DATA.DATA_TYPE.a11y]: {
|
|
75
|
-
attributes: [DATA.A11Y_ATTRIBUTES.ariaLabel]
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
direction: {
|
|
79
|
-
dataType: DATA.DATA_TYPE.direction
|
|
80
|
-
},
|
|
81
|
-
...manifestChangeable(),
|
|
82
|
-
...manifestFocusable(),
|
|
83
|
-
...manifestValidation({ valueDataType: DATA.DATA_TYPE.booleanValue })
|
|
79
|
+
states: {
|
|
80
|
+
[FunctionalStateKeys.previewError]: {
|
|
81
|
+
props: { previewError: true }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
displayFilters: {
|
|
85
|
+
states: {
|
|
86
|
+
hide: [FunctionalStateKeys.previewError]
|
|
87
|
+
}
|
|
84
88
|
},
|
|
85
89
|
cssCustomProperties: {
|
|
86
90
|
gap: {
|
|
87
91
|
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.columnGap,
|
|
88
92
|
displayName: DisplayNames.root.cssCustomProperties.gap,
|
|
89
|
-
defaultValue: "
|
|
90
|
-
},
|
|
91
|
-
alignment: {
|
|
92
|
-
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.justifyContent,
|
|
93
|
-
displayName: DisplayNames.root.cssCustomProperties.alignment
|
|
93
|
+
defaultValue: "4px"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
elements: {
|
|
@@ -104,9 +104,8 @@ const manifest = {
|
|
|
104
104
|
removable: false
|
|
105
105
|
},
|
|
106
106
|
cssProperties: {
|
|
107
|
-
borderRadius: {
|
|
108
|
-
|
|
109
|
-
},
|
|
107
|
+
borderRadius: {},
|
|
108
|
+
borderWidth: {},
|
|
110
109
|
boxShadow: {}
|
|
111
110
|
},
|
|
112
111
|
cssCustomProperties: {
|
|
@@ -126,19 +125,13 @@ const manifest = {
|
|
|
126
125
|
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderColor,
|
|
127
126
|
displayName: DisplayNames.indicator.cssCustomProperties.checkedBorderColor
|
|
128
127
|
},
|
|
129
|
-
borderWidth: {
|
|
130
|
-
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderWidth,
|
|
131
|
-
displayName: DisplayNames.indicator.cssCustomProperties.borderWidth,
|
|
132
|
-
defaultValue: "1px"
|
|
133
|
-
},
|
|
134
128
|
checkmarkColor: {
|
|
135
129
|
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.fill,
|
|
136
130
|
displayName: DisplayNames.indicator.cssCustomProperties.checkmarkColor
|
|
137
131
|
},
|
|
138
132
|
checkboxSize: {
|
|
139
133
|
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.width,
|
|
140
|
-
displayName: DisplayNames.indicator.cssCustomProperties.
|
|
141
|
-
defaultValue: "16px"
|
|
134
|
+
displayName: DisplayNames.indicator.cssCustomProperties.checkboxSize
|
|
142
135
|
}
|
|
143
136
|
},
|
|
144
137
|
states: {
|
|
@@ -158,10 +151,9 @@ const manifest = {
|
|
|
158
151
|
pseudoClass: NativeStateType.disabled,
|
|
159
152
|
props: { disabled: true }
|
|
160
153
|
},
|
|
161
|
-
|
|
162
|
-
displayName: DesignStates.indicator.
|
|
163
|
-
className: DesignStates.indicator.
|
|
164
|
-
pseudoClass: NativeStateType.invalid
|
|
154
|
+
error: {
|
|
155
|
+
displayName: DesignStates.indicator.error.displayName,
|
|
156
|
+
className: DesignStates.indicator.error.className
|
|
165
157
|
}
|
|
166
158
|
}
|
|
167
159
|
}
|
|
@@ -176,11 +168,117 @@ const manifest = {
|
|
|
176
168
|
removable: false
|
|
177
169
|
},
|
|
178
170
|
cssProperties: {
|
|
171
|
+
textAlign: {},
|
|
172
|
+
font: {},
|
|
179
173
|
color: {},
|
|
180
|
-
|
|
174
|
+
textDecorationLine: {},
|
|
175
|
+
textTransform: {}
|
|
181
176
|
}
|
|
182
177
|
}
|
|
178
|
+
},
|
|
179
|
+
errorMessage: {
|
|
180
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
181
|
+
inlineElement: {
|
|
182
|
+
displayName: DisplayNames.errorMessage.elementDisplayName,
|
|
183
|
+
selector: getSelector(selectors.errorMessage),
|
|
184
|
+
behaviors: {
|
|
185
|
+
selectable: false,
|
|
186
|
+
removable: false
|
|
187
|
+
},
|
|
188
|
+
cssProperties: {
|
|
189
|
+
marginTop: {},
|
|
190
|
+
textAlign: {},
|
|
191
|
+
font: {},
|
|
192
|
+
color: {},
|
|
193
|
+
textDecorationLine: {},
|
|
194
|
+
textTransform: {}
|
|
195
|
+
},
|
|
196
|
+
visibleState: {
|
|
197
|
+
stateKey: FunctionalStateKeys.previewError,
|
|
198
|
+
elementPath: ".root"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
displayGroups: {
|
|
204
|
+
partsOrder: {
|
|
205
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.elements,
|
|
206
|
+
elements: {
|
|
207
|
+
items: ["indicator", "label", "errorMessage"]
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
orderedDataGroup: {
|
|
211
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.data,
|
|
212
|
+
data: {
|
|
213
|
+
items: ["label", "errorMessage", "readOnly", "disabled", "checked"]
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
orderedEventsGroup: {
|
|
217
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.data,
|
|
218
|
+
data: {
|
|
219
|
+
items: [
|
|
220
|
+
"onCheckedChange",
|
|
221
|
+
"onKeyDown",
|
|
222
|
+
"onKeyUp",
|
|
223
|
+
"onFocus",
|
|
224
|
+
"onBlur"
|
|
225
|
+
]
|
|
226
|
+
}
|
|
183
227
|
}
|
|
228
|
+
},
|
|
229
|
+
data: {
|
|
230
|
+
label: {
|
|
231
|
+
dataType: DATA.DATA_TYPE.text,
|
|
232
|
+
displayName: DisplayNames.root.data.label,
|
|
233
|
+
defaultValue: defaultValues.label,
|
|
234
|
+
[DATA.DATA_TYPE.text]: {
|
|
235
|
+
maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
errorMessage: {
|
|
239
|
+
dataType: DATA.DATA_TYPE.text,
|
|
240
|
+
displayName: DisplayNames.root.data.errorMessage,
|
|
241
|
+
description: DisplayNames.root.descriptions.errorMessage,
|
|
242
|
+
[DATA.DATA_TYPE.text]: {
|
|
243
|
+
maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
readOnly: {
|
|
247
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
248
|
+
displayName: DisplayNames.root.data.readOnly,
|
|
249
|
+
defaultValue: defaultValues.readOnly
|
|
250
|
+
},
|
|
251
|
+
disabled: {
|
|
252
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
253
|
+
displayName: DisplayNames.root.data.disabled,
|
|
254
|
+
defaultValue: defaultValues.disabled
|
|
255
|
+
},
|
|
256
|
+
checked: {
|
|
257
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
258
|
+
displayName: DisplayNames.root.data.checked,
|
|
259
|
+
description: DisplayNames.root.descriptions.checked,
|
|
260
|
+
defaultValue: defaultValues.checked
|
|
261
|
+
},
|
|
262
|
+
a11y: {
|
|
263
|
+
dataType: DATA.DATA_TYPE.a11y,
|
|
264
|
+
[DATA.DATA_TYPE.a11y]: {
|
|
265
|
+
attributes: [DATA.A11Y_ATTRIBUTES.ariaLabel]
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
direction: {
|
|
269
|
+
dataType: DATA.DATA_TYPE.direction
|
|
270
|
+
},
|
|
271
|
+
onCheckedChange: {
|
|
272
|
+
dataType: DATA.DATA_TYPE.function,
|
|
273
|
+
displayName: "On Checked Change",
|
|
274
|
+
[DATA.DATA_TYPE.function]: {
|
|
275
|
+
parameters: [
|
|
276
|
+
{ dataType: DATA.DATA_TYPE.booleanValue, displayName: "Checked" }
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
...manifestKeyboard(),
|
|
281
|
+
...manifestFocusable()
|
|
184
282
|
}
|
|
185
283
|
},
|
|
186
284
|
resources: {
|
|
@@ -192,15 +290,6 @@ const manifest = {
|
|
|
192
290
|
"@wix/viewer-service-multilingual"
|
|
193
291
|
]
|
|
194
292
|
}
|
|
195
|
-
},
|
|
196
|
-
editor: {
|
|
197
|
-
componentUrl: "./site/components/Checkbox/component.preview.tsx",
|
|
198
|
-
dependencies: {
|
|
199
|
-
serviceDependencies: [
|
|
200
|
-
"@wix/site-service-locale",
|
|
201
|
-
"@wix/viewer-service-multilingual"
|
|
202
|
-
]
|
|
203
|
-
}
|
|
204
293
|
}
|
|
205
294
|
},
|
|
206
295
|
moduleConfiguration: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as ELEMENTS, C as CSS_PROPERTIES, N as NativeStateType, b as DISPLAY_GROUPS, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
2
2
|
import { D as DisplayNames, c as DesignStates, d as defaultValues, s as selectors } from "../chunks/constants39.js";
|
|
3
3
|
import { g as getSelector } from "../chunks/manifest.js";
|
|
4
|
-
import {
|
|
4
|
+
import { b as manifestFocusable, c as manifestChangeable } from "../chunks/manifestSdkMixins.js";
|
|
5
5
|
import { m as manifestValidation } from "../chunks/manifest2.js";
|
|
6
6
|
const manifest = {
|
|
7
7
|
id: "aa224b85-e2af-462b-9a15-5de3a753bea8",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as CSS_PROPERTIES, E as ELEMENTS, D as DATA, b as DISPLAY_GROUPS, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
2
2
|
import { D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/constants38.js";
|
|
3
3
|
import { g as getSelector } from "../chunks/manifest.js";
|
|
4
|
-
import {
|
|
4
|
+
import { d as manifestMouseHover, e as manifestClickable } from "../chunks/manifestSdkMixins.js";
|
|
5
5
|
const manifest = {
|
|
6
6
|
id: "1392cc2d-20e7-411a-8b60-6e0af55b8ece",
|
|
7
7
|
type: "wixEditorElements.CollapsibleText",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as DISPLAY_GROUPS, D as DATA, M as MEDIA, a as ACTIONS, I as INTERACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
2
2
|
import { g as getTranslationResources } from "../chunks/translationResources.js";
|
|
3
3
|
import { n as DisplayNames, o as MAP_STYLE_KEYS, p as defaultValues, a as MAX_ZOOM, M as MIN_ZOOM, C as COMPONENT_TYPE } from "../chunks/consts2.js";
|
|
4
|
-
import {
|
|
4
|
+
import { d as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
5
5
|
const manifest = {
|
|
6
6
|
id: "bf8a38af-5784-47d5-92d3-3627a6a60bc6",
|
|
7
7
|
type: COMPONENT_TYPE,
|
|
@@ -2,7 +2,7 @@ var _a, _b;
|
|
|
2
2
|
import { D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
3
3
|
import { g as getTranslationResources } from "../chunks/translationResources.js";
|
|
4
4
|
import { C as COMPONENT_TYPE } from "../chunks/constants35.js";
|
|
5
|
-
import {
|
|
5
|
+
import { d as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
6
6
|
const DisplayNames = {
|
|
7
7
|
root: {
|
|
8
8
|
elementDisplayName: "HTML Element",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as ACTIONS, D as DATA, M as MEDIA, N as NativeStateType, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
2
2
|
import { g as getTranslationResources } from "../chunks/translationResources.js";
|
|
3
3
|
import { p as presets, a as DisplayNames, b as DesignStates, C as COMPONENT_TYPE } from "../chunks/constants31.js";
|
|
4
|
-
import {
|
|
4
|
+
import { d as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
5
5
|
const manifest = {
|
|
6
6
|
id: "241afef1-74bd-4a10-843f-ac4928c25882",
|
|
7
7
|
type: COMPONENT_TYPE,
|
|
@@ -2,7 +2,7 @@ import { b as DISPLAY_GROUPS, E as ELEMENTS, D as DATA, L as LAYOUT, A as Archet
|
|
|
2
2
|
import { g as getTranslationResources } from "../chunks/translationResources.js";
|
|
3
3
|
import { g as getSelector } from "../chunks/manifest.js";
|
|
4
4
|
import { c as speedConstraints, d as playButtonDefaults, e as DisplayNames, r as rootDataDefaults, b as showButtonOnHoverDefaults, f as borderDefaultValue, i as initialSize, C as COMPONENT_TYPE, s as semanticSelectors } from "../chunks/constants29.js";
|
|
5
|
-
import {
|
|
5
|
+
import { b as manifestFocusable, d as manifestMouseHover, e as manifestClickable } from "../chunks/manifestSdkMixins.js";
|
|
6
6
|
const manifest = {
|
|
7
7
|
id: "13165477-8205-4050-b078-424a1479159e",
|
|
8
8
|
type: COMPONENT_TYPE,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as ELEMENTS, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, N as NativeStateType, a as ACTIONS, D as DATA, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
2
2
|
import { g as getTranslationResources } from "../chunks/translationResources.js";
|
|
3
3
|
import { c as DesignStates, f as DisplayNames, s as selectors, g as DropdownAnchorPositions, h as DropdownAppliedStyleProperties, i as elementKeys, j as customActionKeys, k as MENU_ANIMATED_ICON_SPEC, m as states, p as presets, n as menuBuiltInActions, C as COMPONENT_TYPE } from "../chunks/constants27.js";
|
|
4
|
-
import {
|
|
4
|
+
import { d as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
5
5
|
const dropdownItemConfig = {
|
|
6
6
|
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
7
7
|
[ELEMENTS.ELEMENT_TYPE.inlineElement]: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as DISPLAY_GROUPS, a as ACTIONS, D as DATA, L as LAYOUT, c as ContainerType, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
|
|
2
2
|
import { D as DESCRIPTIONS, a as DISPLAY_NAMES, s as selectors } from "../chunks/constants26.js";
|
|
3
|
-
import {
|
|
3
|
+
import { b as manifestFocusable, d as manifestMouseHover, e as manifestClickable, c as manifestChangeable } from "../chunks/manifestSdkMixins.js";
|
|
4
4
|
import { g as getSelector } from "../chunks/manifest.js";
|
|
5
5
|
const manifest = {
|
|
6
6
|
id: "32d6f6fe-72ef-4490-82aa-d3b13cce6ef1",
|