@wix/editor-react-components 1.2349.0 → 1.2351.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/component.js +1 -1
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +1 -1
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/BoxContainer/component.js +1 -1
- package/dist/site/components/BoxContainer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +1 -1
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Checkbox/component.js +2 -2
- package/dist/site/components/Checkbox/manifest.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +2 -2
- package/dist/site/components/CheckboxGroup/manifest.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +1 -1
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/DatePicker/component.js +1 -1
- package/dist/site/components/DatePicker/manifest.js +1 -1
- package/dist/site/components/Dropdown/component.js +1 -1
- package/dist/site/components/Dropdown/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/component.js +1 -1
- package/dist/site/components/HipaaIcon/component.js +1 -1
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/LinkBar/component.js +1 -1
- package/dist/site/components/LinkBar/manifest.js +1 -1
- package/dist/site/components/Logo/component.js +1 -1
- package/dist/site/components/Logo/manifest.js +1 -1
- package/dist/site/components/Logo/sdk.js +1 -1
- package/dist/site/components/Lottie/component.js +1 -1
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/Menu/component.js +1 -1
- package/dist/site/components/Menu/manifest.js +1 -1
- package/dist/site/components/MultiStateBox/component.js +1 -1
- package/dist/site/components/MultiStateBox/manifest.js +1 -1
- package/dist/site/components/ProgressBar/component.js +1 -1
- package/dist/site/components/ProgressBar/manifest.js +1 -1
- package/dist/site/components/ProgressBar/sdk.js +1 -1
- package/dist/site/components/RadioButtons/RadioButtons.d.ts +3 -0
- package/dist/site/components/RadioButtons/RadioButtons.types.d.ts +22 -0
- package/dist/site/components/RadioButtons/component.d.ts +2 -0
- package/dist/site/components/RadioButtons/component.js +201 -0
- package/dist/site/components/RadioButtons/component.preview.d.ts +4 -0
- package/dist/site/components/RadioButtons/constants.d.ts +108 -0
- package/dist/site/components/RadioButtons/css.css +181 -0
- package/dist/site/components/RadioButtons/index.d.ts +2 -0
- package/dist/site/components/RadioButtons/index.js +6 -0
- package/dist/site/components/RadioButtons/manifest.d.ts +5 -0
- package/dist/site/components/RadioButtons/manifest.js +284 -0
- package/dist/site/components/chunks/constants24.js +97 -27
- package/dist/site/components/chunks/constants25.js +32 -17
- package/dist/site/components/chunks/constants26.js +16 -417
- package/dist/site/components/chunks/constants27.js +408 -73
- package/dist/site/components/chunks/constants28.js +80 -15
- package/dist/site/components/chunks/constants29.js +11 -42
- package/dist/site/components/chunks/constants30.js +44 -23
- package/dist/site/components/chunks/constants31.js +28 -10
- package/dist/site/components/chunks/constants32.js +10 -198
- package/dist/site/components/chunks/constants33.js +175 -152
- package/dist/site/components/chunks/constants34.js +160 -49
- package/dist/site/components/chunks/constants35.js +51 -98
- package/dist/site/components/chunks/constants36.js +67 -37
- package/dist/site/components/chunks/constants37.js +68 -69
- package/dist/site/components/chunks/constants38.js +73 -77
- package/dist/site/components/chunks/constants39.js +76 -57
- package/dist/site/components/chunks/constants40.js +72 -0
- package/dist/site/components/chunks/index10.js +4 -2
- package/dist/site/components/chunks/utils.js +1 -1
- package/dist/site/components/extensions.js +53 -51
- package/package.json +5 -5
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export declare const DisplayNames: {
|
|
2
|
+
root: {
|
|
3
|
+
elementDisplayName: string;
|
|
4
|
+
data: {
|
|
5
|
+
options: string;
|
|
6
|
+
option: string;
|
|
7
|
+
optionLabel: string;
|
|
8
|
+
optionValue: string;
|
|
9
|
+
optionDisabled: string;
|
|
10
|
+
value: string;
|
|
11
|
+
firstSelectedByDefault: string;
|
|
12
|
+
firstSelectedByDefaultNone: string;
|
|
13
|
+
firstSelectedByDefaultFirst: string;
|
|
14
|
+
label: string;
|
|
15
|
+
tooltip: string;
|
|
16
|
+
required: string;
|
|
17
|
+
readOnly: string;
|
|
18
|
+
disabled: string;
|
|
19
|
+
};
|
|
20
|
+
cssCustomProperties: {
|
|
21
|
+
orientation: string;
|
|
22
|
+
radiosSpacing: string;
|
|
23
|
+
labelSpacing: string;
|
|
24
|
+
radioTextSpacing: string;
|
|
25
|
+
alignment: string;
|
|
26
|
+
labelAlignment: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
radio: {
|
|
30
|
+
elementDisplayName: string;
|
|
31
|
+
cssCustomProperties: {
|
|
32
|
+
unselectedBackgroundColor: string;
|
|
33
|
+
unselectedBorderColor: string;
|
|
34
|
+
selectedBackgroundColor: string;
|
|
35
|
+
selectedBorderColor: string;
|
|
36
|
+
dotColor: string;
|
|
37
|
+
size: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
optionLabel: {
|
|
41
|
+
elementDisplayName: string;
|
|
42
|
+
};
|
|
43
|
+
groupLabel: {
|
|
44
|
+
elementDisplayName: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const DesignStates: {
|
|
48
|
+
readonly radio: {
|
|
49
|
+
readonly hover: {
|
|
50
|
+
readonly displayName: "Hover";
|
|
51
|
+
readonly className: "radio-buttons__radio--hover";
|
|
52
|
+
};
|
|
53
|
+
readonly focus: {
|
|
54
|
+
readonly displayName: "Focus";
|
|
55
|
+
readonly className: "radio-buttons__radio--focus";
|
|
56
|
+
};
|
|
57
|
+
readonly disabled: {
|
|
58
|
+
readonly displayName: "Disabled";
|
|
59
|
+
readonly className: "radio-buttons__radio--disabled";
|
|
60
|
+
};
|
|
61
|
+
readonly invalid: {
|
|
62
|
+
readonly displayName: "Invalid";
|
|
63
|
+
readonly className: "radio-buttons__radio--invalid";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export type RadioButtonsDefaultSelection = 'none' | 'first';
|
|
68
|
+
export type RadioButtonsOption = {
|
|
69
|
+
value?: string;
|
|
70
|
+
label: string;
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
};
|
|
73
|
+
export declare const defaultOptions: ReadonlyArray<RadioButtonsOption>;
|
|
74
|
+
export declare const defaultValues: {
|
|
75
|
+
readonly label: "Label";
|
|
76
|
+
readonly tooltip: "";
|
|
77
|
+
readonly firstSelectedByDefault: "none";
|
|
78
|
+
readonly required: false;
|
|
79
|
+
readonly readOnly: false;
|
|
80
|
+
readonly disabled: false;
|
|
81
|
+
};
|
|
82
|
+
export declare const TestIds: {
|
|
83
|
+
readonly root: "radio-buttons-root";
|
|
84
|
+
readonly group: "radio-buttons-group";
|
|
85
|
+
readonly legend: "radio-buttons-legend";
|
|
86
|
+
readonly requiredIndicator: "radio-buttons-required-indicator";
|
|
87
|
+
readonly tooltipButton: "radio-buttons-tooltip-button";
|
|
88
|
+
readonly option: "radio-buttons-option";
|
|
89
|
+
readonly control: "radio-buttons-control";
|
|
90
|
+
readonly indicator: "radio-buttons-indicator";
|
|
91
|
+
readonly optionLabel: "radio-buttons-option-label";
|
|
92
|
+
};
|
|
93
|
+
export declare const selectors: {
|
|
94
|
+
readonly root: "radio-buttons";
|
|
95
|
+
readonly radio: "radio-buttons__radio";
|
|
96
|
+
readonly indicator: "radio-buttons__indicator";
|
|
97
|
+
readonly label: "radio-buttons__label";
|
|
98
|
+
readonly groupLabel: "radio-buttons__group-label";
|
|
99
|
+
};
|
|
100
|
+
export declare const semanticClassNames: {
|
|
101
|
+
readonly root: "radio-buttons";
|
|
102
|
+
readonly groupLabel: "radio-buttons__group-label";
|
|
103
|
+
readonly requiredIndicator: "radio-buttons__required-indicator";
|
|
104
|
+
readonly option: "radio-buttons__option";
|
|
105
|
+
readonly radio: "radio-buttons__radio";
|
|
106
|
+
readonly indicator: "radio-buttons__indicator";
|
|
107
|
+
readonly label: "radio-buttons__label";
|
|
108
|
+
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
.root__4SkBh {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.fieldset__2OxuS {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
row-gap: var(--labelSpacing, 16px);
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
border: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.labelRow__xKUgE {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: var(--labelAlignment, flex-start);
|
|
22
|
+
gap: 6px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.groupLabel__7aJZW {
|
|
26
|
+
width: fit-content;
|
|
27
|
+
max-width: 100%;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tooltipButton__qejF7 {
|
|
33
|
+
flex: none;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
width: 16px;
|
|
39
|
+
height: 16px;
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0;
|
|
42
|
+
border: none;
|
|
43
|
+
background: transparent;
|
|
44
|
+
color: inherit;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
opacity: 0.65;
|
|
47
|
+
}
|
|
48
|
+
.tooltipButton__qejF7:hover, .tooltipButton__qejF7:focus-visible {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
.tooltipButton__qejF7:focus-visible {
|
|
52
|
+
outline: none;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
box-shadow: 0 0 0 2px #116dff;
|
|
55
|
+
}
|
|
56
|
+
.tooltipButton__qejF7 svg {
|
|
57
|
+
width: 16px;
|
|
58
|
+
height: 16px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tooltip__syq4d {
|
|
62
|
+
max-width: 220px;
|
|
63
|
+
padding: 6px 10px;
|
|
64
|
+
font: var(--wst-paragraph-2-font, normal normal normal 12px/1.4em madefor-text, sans-serif);
|
|
65
|
+
color: var(--wst-primary-background-color, #fff);
|
|
66
|
+
background: var(--wst-paragraph-2-color, #2b2b2b);
|
|
67
|
+
border-radius: 6px;
|
|
68
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.group__M3q8w {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: var(--orientation, column);
|
|
74
|
+
flex-wrap: wrap;
|
|
75
|
+
align-self: stretch;
|
|
76
|
+
align-items: var(--alignment, flex-start);
|
|
77
|
+
justify-content: var(--alignment, flex-start);
|
|
78
|
+
column-gap: var(--radiosSpacing, 6px);
|
|
79
|
+
row-gap: var(--radiosSpacing, 6px);
|
|
80
|
+
margin: 0;
|
|
81
|
+
padding: 0;
|
|
82
|
+
border: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.option__hEAm9 {
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
column-gap: var(--radioTextSpacing, 13px);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.control__w6l6- {
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
display: inline-flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
width: var(--radioSize, 16px);
|
|
98
|
+
height: var(--radioSize, 16px);
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding: 0;
|
|
101
|
+
border-style: solid;
|
|
102
|
+
border-width: var(--borderWidth, 1px);
|
|
103
|
+
border-color: var(--radio-border);
|
|
104
|
+
border-radius: 50%;
|
|
105
|
+
background-color: var(--radio-bg);
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
transition: background-color 0.2s linear, border-color 0.2s linear;
|
|
108
|
+
--radio-bg: var(--unselectedBackgroundColor, #fff);
|
|
109
|
+
--radio-border: var(
|
|
110
|
+
--unselectedBorderColor,
|
|
111
|
+
color-mix(in srgb, #000 60%, transparent)
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
.control__w6l6-:hover, .control__w6l6-:focus-within {
|
|
115
|
+
outline: none;
|
|
116
|
+
}
|
|
117
|
+
.control__w6l6-[data-disabled] {
|
|
118
|
+
cursor: default;
|
|
119
|
+
pointer-events: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.control__w6l6-:hover,
|
|
123
|
+
.control__w6l6-:focus-within,
|
|
124
|
+
.control__w6l6-.radio-buttons__radio--hover,
|
|
125
|
+
.control__w6l6-.radio-buttons__radio--focus {
|
|
126
|
+
--radio-border: var(--unselectedBorderColor, #000);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.control__w6l6-[data-checked] {
|
|
130
|
+
--radio-bg: var(--selectedBackgroundColor, #fff);
|
|
131
|
+
--radio-border: var(--selectedBorderColor, #116dff);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.control__w6l6-[data-invalid],
|
|
135
|
+
.control__w6l6-.radio-buttons__radio--invalid {
|
|
136
|
+
--radio-border: var(--unselectedBorderColor, #e62214);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.control__w6l6-[data-disabled],
|
|
140
|
+
.control__w6l6-.radio-buttons__radio--disabled {
|
|
141
|
+
opacity: 0.55;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.indicator__m9-hW {
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
width: calc(var(--radioSize, 16px) * 0.5);
|
|
147
|
+
height: calc(var(--radioSize, 16px) * 0.5);
|
|
148
|
+
border-radius: 50%;
|
|
149
|
+
background-color: var(--dotColor, #116dff);
|
|
150
|
+
transform: scale(0);
|
|
151
|
+
opacity: 0;
|
|
152
|
+
transition: transform 0.2s linear, opacity 0.2s linear, background-color 0.2s linear;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.indicator__m9-hW[data-checked] {
|
|
156
|
+
transform: scale(1);
|
|
157
|
+
opacity: 1;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.label__bJi-o {
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
margin-bottom: 0;
|
|
163
|
+
}.radio-buttons {
|
|
164
|
+
--radiosSpacing: 6px;
|
|
165
|
+
--labelSpacing: 16px;
|
|
166
|
+
--radioTextSpacing: 13px;
|
|
167
|
+
}
|
|
168
|
+
.requiredIndicator__j5mIH {
|
|
169
|
+
display: inline-block;
|
|
170
|
+
width: 0.6em;
|
|
171
|
+
height: 0.6em;
|
|
172
|
+
margin-inline-start: 0.2em;
|
|
173
|
+
vertical-align: super;
|
|
174
|
+
color: inherit;
|
|
175
|
+
}
|
|
176
|
+
.fallbackDirection__HeRgn:not([dir]) {
|
|
177
|
+
direction: var(--wix-opt-in-direction);
|
|
178
|
+
}
|
|
179
|
+
.presetWrapper__J1yzj {
|
|
180
|
+
display: contents;
|
|
181
|
+
}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
|
+
import { D as DesignStates, c as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants24.js";
|
|
3
|
+
import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
|
|
4
|
+
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
5
|
+
import { m as manifestFocusable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
|
|
6
|
+
const manifest = {
|
|
7
|
+
id: "01a3965d-95d7-49e2-903a-3a496de97054",
|
|
8
|
+
type: "wixEditorElements.RadioButtons__DEV__v3",
|
|
9
|
+
description: "A group of radio buttons where visitors pick a single option. Options can be set in the editor or fed by a connected data source, and the selected value can be bound to a text field.",
|
|
10
|
+
installation: {
|
|
11
|
+
initialSize: {
|
|
12
|
+
width: {
|
|
13
|
+
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
14
|
+
pixels: 240
|
|
15
|
+
},
|
|
16
|
+
height: {
|
|
17
|
+
sizingType: LAYOUT.SIZING_TYPE.content
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
editorElement: {
|
|
22
|
+
selector: getSelector(selectors.root),
|
|
23
|
+
displayName: DisplayNames.root.elementDisplayName,
|
|
24
|
+
archetype: Archetype.RadioGroup,
|
|
25
|
+
layout: {
|
|
26
|
+
resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontalAndVertical,
|
|
27
|
+
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.horizontalAndVertical,
|
|
28
|
+
disableStretching: true,
|
|
29
|
+
disablePositioning: false
|
|
30
|
+
},
|
|
31
|
+
actions: {
|
|
32
|
+
manageItems: {
|
|
33
|
+
displayName: DisplayNames.root.data.options,
|
|
34
|
+
execution: {
|
|
35
|
+
actionType: ACTIONS.ACTION_TYPE.data,
|
|
36
|
+
data: {
|
|
37
|
+
dataItemKey: "options"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
data: {
|
|
43
|
+
options: {
|
|
44
|
+
dataType: DATA.DATA_TYPE.arrayItems,
|
|
45
|
+
displayName: DisplayNames.root.data.options,
|
|
46
|
+
[DATA.DATA_TYPE.arrayItems]: {
|
|
47
|
+
data: {
|
|
48
|
+
items: {
|
|
49
|
+
label: {
|
|
50
|
+
dataType: DATA.DATA_TYPE.text,
|
|
51
|
+
displayName: DisplayNames.root.data.optionLabel
|
|
52
|
+
},
|
|
53
|
+
value: {
|
|
54
|
+
dataType: DATA.DATA_TYPE.text,
|
|
55
|
+
displayName: DisplayNames.root.data.optionValue
|
|
56
|
+
},
|
|
57
|
+
disabled: {
|
|
58
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
59
|
+
displayName: DisplayNames.root.data.optionDisabled,
|
|
60
|
+
defaultValue: false
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
value: {
|
|
67
|
+
dataType: DATA.DATA_TYPE.text,
|
|
68
|
+
displayName: DisplayNames.root.data.value
|
|
69
|
+
},
|
|
70
|
+
firstSelectedByDefault: {
|
|
71
|
+
dataType: DATA.DATA_TYPE.textEnum,
|
|
72
|
+
displayName: DisplayNames.root.data.firstSelectedByDefault,
|
|
73
|
+
[DATA.DATA_TYPE.textEnum]: {
|
|
74
|
+
options: [
|
|
75
|
+
{
|
|
76
|
+
value: "none",
|
|
77
|
+
displayName: DisplayNames.root.data.firstSelectedByDefaultNone
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
value: "first",
|
|
81
|
+
displayName: DisplayNames.root.data.firstSelectedByDefaultFirst
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
defaultValue: defaultValues.firstSelectedByDefault
|
|
86
|
+
},
|
|
87
|
+
label: {
|
|
88
|
+
dataType: DATA.DATA_TYPE.text,
|
|
89
|
+
displayName: DisplayNames.root.data.label,
|
|
90
|
+
defaultValue: defaultValues.label
|
|
91
|
+
},
|
|
92
|
+
tooltip: {
|
|
93
|
+
dataType: DATA.DATA_TYPE.text,
|
|
94
|
+
displayName: DisplayNames.root.data.tooltip,
|
|
95
|
+
defaultValue: defaultValues.tooltip
|
|
96
|
+
},
|
|
97
|
+
required: {
|
|
98
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
99
|
+
displayName: DisplayNames.root.data.required,
|
|
100
|
+
defaultValue: defaultValues.required
|
|
101
|
+
},
|
|
102
|
+
readOnly: {
|
|
103
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
104
|
+
displayName: DisplayNames.root.data.readOnly,
|
|
105
|
+
defaultValue: defaultValues.readOnly
|
|
106
|
+
},
|
|
107
|
+
disabled: {
|
|
108
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
109
|
+
displayName: DisplayNames.root.data.disabled,
|
|
110
|
+
defaultValue: defaultValues.disabled
|
|
111
|
+
},
|
|
112
|
+
a11y: {
|
|
113
|
+
dataType: DATA.DATA_TYPE.a11y,
|
|
114
|
+
[DATA.DATA_TYPE.a11y]: {
|
|
115
|
+
attributes: [DATA.A11Y_ATTRIBUTES.ariaLabel]
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
direction: {
|
|
119
|
+
dataType: DATA.DATA_TYPE.direction
|
|
120
|
+
},
|
|
121
|
+
...manifestChangeable(),
|
|
122
|
+
...manifestFocusable()
|
|
123
|
+
},
|
|
124
|
+
displayGroups: {
|
|
125
|
+
optionsGroup: {
|
|
126
|
+
displayName: DisplayNames.root.data.options,
|
|
127
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.listItem,
|
|
128
|
+
listItem: {
|
|
129
|
+
arrayItems: "options",
|
|
130
|
+
label: "label"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
cssCustomProperties: {
|
|
135
|
+
orientation: {
|
|
136
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.flexDirection,
|
|
137
|
+
displayName: DisplayNames.root.cssCustomProperties.orientation,
|
|
138
|
+
defaultValue: "column"
|
|
139
|
+
},
|
|
140
|
+
radiosSpacing: {
|
|
141
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.rowGap,
|
|
142
|
+
displayName: DisplayNames.root.cssCustomProperties.radiosSpacing,
|
|
143
|
+
defaultValue: "6px"
|
|
144
|
+
},
|
|
145
|
+
labelSpacing: {
|
|
146
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.rowGap,
|
|
147
|
+
displayName: DisplayNames.root.cssCustomProperties.labelSpacing,
|
|
148
|
+
defaultValue: "16px"
|
|
149
|
+
},
|
|
150
|
+
radioTextSpacing: {
|
|
151
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.columnGap,
|
|
152
|
+
displayName: DisplayNames.root.cssCustomProperties.radioTextSpacing,
|
|
153
|
+
defaultValue: "13px"
|
|
154
|
+
},
|
|
155
|
+
alignment: {
|
|
156
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.justifyContent,
|
|
157
|
+
displayName: DisplayNames.root.cssCustomProperties.alignment
|
|
158
|
+
},
|
|
159
|
+
labelAlignment: {
|
|
160
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.justifyContent,
|
|
161
|
+
displayName: DisplayNames.root.cssCustomProperties.labelAlignment
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
elements: {
|
|
165
|
+
radio: {
|
|
166
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
167
|
+
inlineElement: {
|
|
168
|
+
displayName: DisplayNames.radio.elementDisplayName,
|
|
169
|
+
selector: getSelector(selectors.radio),
|
|
170
|
+
behaviors: {
|
|
171
|
+
selectable: false,
|
|
172
|
+
removable: false
|
|
173
|
+
},
|
|
174
|
+
cssProperties: {
|
|
175
|
+
boxShadow: {},
|
|
176
|
+
borderWidth: {}
|
|
177
|
+
},
|
|
178
|
+
cssCustomProperties: {
|
|
179
|
+
unselectedBackgroundColor: {
|
|
180
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.backgroundColor,
|
|
181
|
+
displayName: DisplayNames.radio.cssCustomProperties.unselectedBackgroundColor
|
|
182
|
+
},
|
|
183
|
+
unselectedBorderColor: {
|
|
184
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderColor,
|
|
185
|
+
displayName: DisplayNames.radio.cssCustomProperties.unselectedBorderColor
|
|
186
|
+
},
|
|
187
|
+
selectedBackgroundColor: {
|
|
188
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.backgroundColor,
|
|
189
|
+
displayName: DisplayNames.radio.cssCustomProperties.selectedBackgroundColor
|
|
190
|
+
},
|
|
191
|
+
selectedBorderColor: {
|
|
192
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderColor,
|
|
193
|
+
displayName: DisplayNames.radio.cssCustomProperties.selectedBorderColor
|
|
194
|
+
},
|
|
195
|
+
dotColor: {
|
|
196
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.backgroundColor,
|
|
197
|
+
displayName: DisplayNames.radio.cssCustomProperties.dotColor
|
|
198
|
+
},
|
|
199
|
+
radioSize: {
|
|
200
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.width,
|
|
201
|
+
displayName: DisplayNames.radio.cssCustomProperties.size,
|
|
202
|
+
defaultValue: "16px"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
states: {
|
|
206
|
+
hover: withSpec({
|
|
207
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
208
|
+
displayName: DesignStates.radio.hover.displayName,
|
|
209
|
+
className: DesignStates.radio.hover.className,
|
|
210
|
+
pseudoClass: NativeStateType.hover
|
|
211
|
+
}),
|
|
212
|
+
focus: withSpec({
|
|
213
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
214
|
+
displayName: DesignStates.radio.focus.displayName,
|
|
215
|
+
className: DesignStates.radio.focus.className,
|
|
216
|
+
pseudoClass: NativeStateType.focus
|
|
217
|
+
}),
|
|
218
|
+
disabled: withSpec({
|
|
219
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
220
|
+
displayName: DesignStates.radio.disabled.displayName,
|
|
221
|
+
className: DesignStates.radio.disabled.className,
|
|
222
|
+
pseudoClass: NativeStateType.disabled,
|
|
223
|
+
props: { disabled: true }
|
|
224
|
+
}),
|
|
225
|
+
invalid: withSpec({
|
|
226
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
227
|
+
displayName: DesignStates.radio.invalid.displayName,
|
|
228
|
+
className: DesignStates.radio.invalid.className,
|
|
229
|
+
pseudoClass: NativeStateType.invalid
|
|
230
|
+
})
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
optionLabel: {
|
|
235
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
236
|
+
inlineElement: {
|
|
237
|
+
displayName: DisplayNames.optionLabel.elementDisplayName,
|
|
238
|
+
selector: getSelector(selectors.label),
|
|
239
|
+
behaviors: {
|
|
240
|
+
selectable: false,
|
|
241
|
+
removable: false
|
|
242
|
+
},
|
|
243
|
+
cssProperties: {
|
|
244
|
+
color: {},
|
|
245
|
+
font: {}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
groupLabel: {
|
|
250
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
251
|
+
inlineElement: {
|
|
252
|
+
displayName: DisplayNames.groupLabel.elementDisplayName,
|
|
253
|
+
selector: getSelector(selectors.groupLabel),
|
|
254
|
+
behaviors: {
|
|
255
|
+
selectable: false,
|
|
256
|
+
removable: false
|
|
257
|
+
},
|
|
258
|
+
cssProperties: {
|
|
259
|
+
color: {},
|
|
260
|
+
font: {}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
resources: {
|
|
267
|
+
client: {
|
|
268
|
+
componentUrl: "./site/components/RadioButtons/component.tsx",
|
|
269
|
+
dependencies: {
|
|
270
|
+
serviceDependencies: ["@wix/viewer-service-environment"]
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
editor: {
|
|
274
|
+
componentUrl: "./site/components/RadioButtons/component.preview.tsx"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
moduleConfiguration: {
|
|
278
|
+
package: { name: "@wix/editor-react-components", version: "^1.0.0" },
|
|
279
|
+
component: { path: "site/components/RadioButtons" }
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
export {
|
|
283
|
+
manifest as default
|
|
284
|
+
};
|