@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
|
@@ -1,69 +1,180 @@
|
|
|
1
|
-
const manifestClasses = {
|
|
2
|
-
root: "collapsible-text",
|
|
3
|
-
text: "text",
|
|
4
|
-
expandControl: "expand-control"
|
|
5
|
-
};
|
|
6
1
|
const DisplayNames = {
|
|
7
2
|
root: {
|
|
8
|
-
elementDisplayName: "
|
|
9
|
-
actions: {
|
|
10
|
-
settings: "Settings",
|
|
11
|
-
design: "Design"
|
|
12
|
-
},
|
|
3
|
+
elementDisplayName: "Date Picker",
|
|
13
4
|
data: {
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
value: "Selected date",
|
|
6
|
+
endValue: "Selected end date",
|
|
7
|
+
defaultValue: "Default date",
|
|
8
|
+
defaultEndValue: "Default end date",
|
|
9
|
+
onEndChange: "On End Change",
|
|
10
|
+
selectionMode: {
|
|
11
|
+
displayName: "Selection",
|
|
12
|
+
options: {
|
|
13
|
+
single: "Single date",
|
|
14
|
+
range: "Date range"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
granularity: {
|
|
18
|
+
displayName: "Time precision",
|
|
16
19
|
options: {
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
day: "Date only",
|
|
21
|
+
hour: "Date and hour",
|
|
22
|
+
minute: "Date and time"
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
tooltip: "Tooltip",
|
|
26
|
+
label: "Label",
|
|
27
|
+
description: "Helper text",
|
|
28
|
+
minDate: "Earliest date",
|
|
29
|
+
maxDate: "Latest date",
|
|
30
|
+
unavailableDates: "Unavailable dates",
|
|
31
|
+
unavailableFrom: "From",
|
|
32
|
+
unavailableTo: "To",
|
|
33
|
+
allowPastDates: "Allow past dates",
|
|
34
|
+
allowFutureDates: "Allow future dates",
|
|
35
|
+
required: "Required",
|
|
36
|
+
readOnly: "Read only",
|
|
37
|
+
disabled: "Disabled",
|
|
38
|
+
clearable: "Show clear button"
|
|
25
39
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
40
|
+
designStates: {
|
|
41
|
+
hover: "Hover",
|
|
42
|
+
focus: "Focus",
|
|
43
|
+
disabled: "Disabled",
|
|
44
|
+
selected: "Selected"
|
|
29
45
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
textTextTransform: "Case"
|
|
46
|
+
elements: {
|
|
47
|
+
label: "Label",
|
|
48
|
+
dateInput: "Date input",
|
|
49
|
+
calendarButton: "Calendar button",
|
|
50
|
+
popover: "Popover",
|
|
51
|
+
calendar: "Calendar",
|
|
52
|
+
calendarDay: "Calendar day",
|
|
53
|
+
today: "Today"
|
|
39
54
|
}
|
|
40
55
|
}
|
|
41
56
|
};
|
|
42
57
|
const defaultValues = {
|
|
43
|
-
|
|
58
|
+
selectionMode: "single",
|
|
59
|
+
granularity: "day",
|
|
60
|
+
tooltip: "",
|
|
61
|
+
label: "",
|
|
62
|
+
description: "",
|
|
63
|
+
allowPastDates: true,
|
|
64
|
+
allowFutureDates: true,
|
|
65
|
+
required: false,
|
|
66
|
+
readOnly: false,
|
|
67
|
+
disabled: false,
|
|
68
|
+
clearable: false
|
|
69
|
+
};
|
|
70
|
+
var SelectionModeValues = /* @__PURE__ */ ((SelectionModeValues2) => {
|
|
71
|
+
SelectionModeValues2["Single"] = "single";
|
|
72
|
+
SelectionModeValues2["Range"] = "range";
|
|
73
|
+
return SelectionModeValues2;
|
|
74
|
+
})(SelectionModeValues || {});
|
|
75
|
+
var GranularityValues = /* @__PURE__ */ ((GranularityValues2) => {
|
|
76
|
+
GranularityValues2["Day"] = "day";
|
|
77
|
+
GranularityValues2["Hour"] = "hour";
|
|
78
|
+
GranularityValues2["Minute"] = "minute";
|
|
79
|
+
return GranularityValues2;
|
|
80
|
+
})(GranularityValues || {});
|
|
81
|
+
const DesignStates = {
|
|
82
|
+
root: {
|
|
83
|
+
hover: {
|
|
84
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
85
|
+
className: "datePicker--hover"
|
|
86
|
+
},
|
|
87
|
+
focus: {
|
|
88
|
+
displayName: DisplayNames.root.designStates.focus,
|
|
89
|
+
className: "datePicker--focus"
|
|
90
|
+
},
|
|
91
|
+
disabled: {
|
|
92
|
+
displayName: DisplayNames.root.designStates.disabled,
|
|
93
|
+
className: "datePicker--disabled"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
dateInput: {
|
|
97
|
+
hover: {
|
|
98
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
99
|
+
className: "datePicker__group--hover"
|
|
100
|
+
},
|
|
101
|
+
focus: {
|
|
102
|
+
displayName: DisplayNames.root.designStates.focus,
|
|
103
|
+
className: "datePicker__group--focus"
|
|
104
|
+
},
|
|
105
|
+
disabled: {
|
|
106
|
+
displayName: DisplayNames.root.designStates.disabled,
|
|
107
|
+
className: "datePicker__group--disabled"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
calendarButton: {
|
|
111
|
+
hover: {
|
|
112
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
113
|
+
className: "datePicker__calendar-button--hover"
|
|
114
|
+
},
|
|
115
|
+
selected: {
|
|
116
|
+
displayName: DisplayNames.root.designStates.selected,
|
|
117
|
+
className: "datePicker__calendar-button--selected"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
calendarDay: {
|
|
121
|
+
hover: {
|
|
122
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
123
|
+
className: "datePicker__day--hover"
|
|
124
|
+
},
|
|
125
|
+
selected: {
|
|
126
|
+
displayName: DisplayNames.root.designStates.selected,
|
|
127
|
+
className: "datePicker__day--selected"
|
|
128
|
+
},
|
|
129
|
+
disabled: {
|
|
130
|
+
displayName: DisplayNames.root.designStates.disabled,
|
|
131
|
+
className: "datePicker__day--disabled"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
|
|
136
|
+
const EMPTY_VALUE = "";
|
|
137
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
138
|
+
const AriaLabels = {
|
|
139
|
+
root: { key: "datePicker_aria_label", default: "Date picker" },
|
|
140
|
+
clear: { key: "datePicker_clear_button", default: "Clear" },
|
|
141
|
+
openCalendar: { key: "datePicker_open_calendar", default: "Open calendar" }
|
|
44
142
|
};
|
|
45
|
-
var ExpandModeValues = /* @__PURE__ */ ((ExpandModeValues2) => {
|
|
46
|
-
ExpandModeValues2["Link"] = "link";
|
|
47
|
-
ExpandModeValues2["Expand"] = "button";
|
|
48
|
-
return ExpandModeValues2;
|
|
49
|
-
})(ExpandModeValues || {});
|
|
50
143
|
const TestIds = {
|
|
51
|
-
root: "
|
|
52
|
-
|
|
144
|
+
root: "datepicker-root",
|
|
145
|
+
group: "datepicker-group",
|
|
146
|
+
field: "datepicker-field",
|
|
147
|
+
endField: "datepicker-end-field",
|
|
148
|
+
calendarButton: "datepicker-calendar-button",
|
|
149
|
+
clearButton: "datepicker-clear-button",
|
|
150
|
+
calendar: "datepicker-calendar",
|
|
151
|
+
tooltipButton: "datepicker-tooltip-button",
|
|
152
|
+
errorMessage: "datepicker-error-message",
|
|
153
|
+
requiredIndicator: "datepicker-required-indicator"
|
|
53
154
|
};
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
155
|
+
const selectors = {
|
|
156
|
+
root: "datePicker",
|
|
157
|
+
label: "datePicker__label",
|
|
158
|
+
requiredIndicator: "datePicker__required-indicator",
|
|
159
|
+
group: "datePicker__group",
|
|
160
|
+
calendarButton: "datePicker__calendar-button",
|
|
161
|
+
popover: "datePicker__popover",
|
|
162
|
+
calendar: "datePicker__calendar",
|
|
163
|
+
day: "datePicker__day",
|
|
164
|
+
errorMessage: "datePicker__error-message"
|
|
59
165
|
};
|
|
166
|
+
const VALUE_MISSING_MESSAGE = "This field is required";
|
|
60
167
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
168
|
+
ARIA_LABEL_NAMESPACE as A,
|
|
169
|
+
DesignStates as D,
|
|
170
|
+
EMPTY_VALUE as E,
|
|
171
|
+
GranularityValues as G,
|
|
172
|
+
PREVIEW_CALENDAR_OPEN as P,
|
|
173
|
+
SelectionModeValues as S,
|
|
65
174
|
TestIds as T,
|
|
175
|
+
VALUE_MISSING_MESSAGE as V,
|
|
176
|
+
AriaLabels as a,
|
|
177
|
+
DisplayNames as b,
|
|
66
178
|
defaultValues as d,
|
|
67
|
-
|
|
68
|
-
semanticClassNames as s
|
|
179
|
+
selectors as s
|
|
69
180
|
};
|
|
@@ -1,116 +1,69 @@
|
|
|
1
|
+
const manifestClasses = {
|
|
2
|
+
root: "collapsible-text",
|
|
3
|
+
text: "text",
|
|
4
|
+
expandControl: "expand-control"
|
|
5
|
+
};
|
|
1
6
|
const DisplayNames = {
|
|
2
7
|
root: {
|
|
3
|
-
elementDisplayName: "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
optionValue: "Value",
|
|
8
|
-
optionChecked: "Checked by default",
|
|
9
|
-
optionDisabled: "Disabled",
|
|
10
|
-
value: "Selected values",
|
|
11
|
-
label: "Label",
|
|
12
|
-
tooltip: "Tooltip",
|
|
13
|
-
displayLabel: "Show label",
|
|
14
|
-
required: "Required",
|
|
15
|
-
readOnly: "Read only",
|
|
16
|
-
disabled: "Disabled",
|
|
17
|
-
selectAll: "Select all",
|
|
18
|
-
selectAllLabel: "Select all label"
|
|
19
|
-
},
|
|
20
|
-
cssCustomProperties: {
|
|
21
|
-
checkboxesSpacing: "Space between checkboxes",
|
|
22
|
-
labelSpacing: "Space between field and field title",
|
|
23
|
-
checkboxTextSpacing: "Space between checkbox and text",
|
|
24
|
-
alignment: "Alignment",
|
|
25
|
-
labelAlignment: "Label alignment"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
indicator: {
|
|
29
|
-
elementDisplayName: "Indicator",
|
|
30
|
-
cssCustomProperties: {
|
|
31
|
-
checkedBackgroundColor: "Checked background color",
|
|
32
|
-
uncheckedBackgroundColor: "Unchecked background color",
|
|
33
|
-
checkedBorderColor: "Checked border color",
|
|
34
|
-
uncheckedBorderColor: "Unchecked border color",
|
|
35
|
-
borderWidth: "Border width",
|
|
36
|
-
checkMarkColor: "Checkmark color",
|
|
37
|
-
size: "Checkbox size"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
optionLabel: {
|
|
41
|
-
elementDisplayName: "Option label"
|
|
42
|
-
},
|
|
43
|
-
groupLabel: {
|
|
44
|
-
elementDisplayName: "Group label"
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const DesignStates = {
|
|
48
|
-
indicator: {
|
|
49
|
-
hover: {
|
|
50
|
-
displayName: "Hover",
|
|
51
|
-
className: "checkbox-group__indicator--hover"
|
|
8
|
+
elementDisplayName: "Collapsible Text",
|
|
9
|
+
actions: {
|
|
10
|
+
settings: "Settings",
|
|
11
|
+
design: "Design"
|
|
52
12
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
13
|
+
data: {
|
|
14
|
+
expandMode: {
|
|
15
|
+
displayName: "Choose what the button does",
|
|
16
|
+
options: {
|
|
17
|
+
button: "Expands",
|
|
18
|
+
link: "Links"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
text: "Text",
|
|
22
|
+
readMoreText: "Expand button text",
|
|
23
|
+
readLessText: "Collapse button text",
|
|
24
|
+
linkText: "Link text"
|
|
56
25
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
26
|
+
elements: {
|
|
27
|
+
text: "Text",
|
|
28
|
+
button: "Button"
|
|
60
29
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
30
|
+
cssCustomProperties: {
|
|
31
|
+
maxLines: "Lines displayed",
|
|
32
|
+
expandControlSpacing: "Space between text and button",
|
|
33
|
+
paragraphAlign: "Paragraph Alignment",
|
|
34
|
+
textColor: "Text color",
|
|
35
|
+
textFont: "Font",
|
|
36
|
+
textLineHeight: "Line spacing",
|
|
37
|
+
textTextDecoration: "Text Decoration",
|
|
38
|
+
textTextTransform: "Case"
|
|
64
39
|
}
|
|
65
40
|
}
|
|
66
41
|
};
|
|
67
|
-
const defaultOptions = [
|
|
68
|
-
{ value: "option-1", label: "Option 1", checked: false, disabled: false },
|
|
69
|
-
{ value: "option-2", label: "Option 2", checked: false, disabled: false },
|
|
70
|
-
{ value: "option-3", label: "Option 3", checked: false, disabled: false }
|
|
71
|
-
];
|
|
72
42
|
const defaultValues = {
|
|
73
|
-
|
|
74
|
-
tooltip: "",
|
|
75
|
-
displayLabel: true,
|
|
76
|
-
selectAllLabel: "Select all",
|
|
77
|
-
required: false,
|
|
78
|
-
readOnly: false,
|
|
79
|
-
disabled: false,
|
|
80
|
-
selectAll: false
|
|
43
|
+
expandMode: "button"
|
|
81
44
|
};
|
|
45
|
+
var ExpandModeValues = /* @__PURE__ */ ((ExpandModeValues2) => {
|
|
46
|
+
ExpandModeValues2["Link"] = "link";
|
|
47
|
+
ExpandModeValues2["Expand"] = "button";
|
|
48
|
+
return ExpandModeValues2;
|
|
49
|
+
})(ExpandModeValues || {});
|
|
82
50
|
const TestIds = {
|
|
83
|
-
root: "
|
|
84
|
-
|
|
85
|
-
legend: "checkbox-group-legend",
|
|
86
|
-
requiredIndicator: "checkbox-group-required-indicator",
|
|
87
|
-
selectAll: "checkbox-group-select-all",
|
|
88
|
-
option: "checkbox-group-option",
|
|
89
|
-
control: "checkbox-group-control",
|
|
90
|
-
indicator: "checkbox-group-indicator",
|
|
91
|
-
optionLabel: "checkbox-group-option-label",
|
|
92
|
-
tooltipButton: "checkbox-group-tooltip-button"
|
|
93
|
-
};
|
|
94
|
-
const selectors = {
|
|
95
|
-
root: "checkbox-group",
|
|
96
|
-
indicator: "checkbox-group__indicator",
|
|
97
|
-
label: "checkbox-group__label",
|
|
98
|
-
groupLabel: "checkbox-group__group-label"
|
|
51
|
+
root: "collapsible-text-root",
|
|
52
|
+
textWrapper: "collapsible-text-text-wrapper"
|
|
99
53
|
};
|
|
54
|
+
const FALLBACK_LINE_HEIGHT = 22.4;
|
|
55
|
+
const LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE = 1;
|
|
100
56
|
const semanticClassNames = {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
control: "checkbox-group__control",
|
|
104
|
-
indicator: "checkbox-group__indicator",
|
|
105
|
-
label: "checkbox-group__label",
|
|
106
|
-
requiredIndicator: "checkbox-group__required-indicator"
|
|
57
|
+
root: "collapsible-text",
|
|
58
|
+
text: "collapsible-text__text"
|
|
107
59
|
};
|
|
108
60
|
export {
|
|
109
|
-
|
|
61
|
+
DisplayNames as D,
|
|
62
|
+
ExpandModeValues as E,
|
|
63
|
+
FALLBACK_LINE_HEIGHT as F,
|
|
64
|
+
LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE as L,
|
|
110
65
|
TestIds as T,
|
|
111
|
-
defaultOptions as a,
|
|
112
|
-
semanticClassNames as b,
|
|
113
|
-
DisplayNames as c,
|
|
114
66
|
defaultValues as d,
|
|
115
|
-
|
|
67
|
+
manifestClasses as m,
|
|
68
|
+
semanticClassNames as s
|
|
116
69
|
};
|
|
@@ -1,86 +1,116 @@
|
|
|
1
1
|
const DisplayNames = {
|
|
2
2
|
root: {
|
|
3
|
-
elementDisplayName: "Checkbox",
|
|
3
|
+
elementDisplayName: "Checkbox Group",
|
|
4
4
|
data: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
options: "Options",
|
|
6
|
+
optionLabel: "Label",
|
|
7
|
+
optionValue: "Value",
|
|
8
|
+
optionChecked: "Checked by default",
|
|
9
|
+
optionDisabled: "Disabled",
|
|
10
|
+
value: "Selected values",
|
|
11
|
+
label: "Label",
|
|
12
|
+
tooltip: "Tooltip",
|
|
13
|
+
displayLabel: "Show label",
|
|
7
14
|
required: "Required",
|
|
8
15
|
readOnly: "Read only",
|
|
9
16
|
disabled: "Disabled",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
tooltip: "Tooltip"
|
|
17
|
+
selectAll: "Select all",
|
|
18
|
+
selectAllLabel: "Select all label"
|
|
13
19
|
},
|
|
14
20
|
cssCustomProperties: {
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
checkboxesSpacing: "Space between checkboxes",
|
|
22
|
+
labelSpacing: "Space between field and field title",
|
|
23
|
+
checkboxTextSpacing: "Space between checkbox and text",
|
|
24
|
+
alignment: "Alignment",
|
|
25
|
+
labelAlignment: "Label alignment"
|
|
17
26
|
}
|
|
18
27
|
},
|
|
19
28
|
indicator: {
|
|
20
29
|
elementDisplayName: "Indicator",
|
|
21
30
|
cssCustomProperties: {
|
|
22
|
-
uncheckedBackgroundColor: "Unchecked background color",
|
|
23
|
-
uncheckedBorderColor: "Unchecked border color",
|
|
24
31
|
checkedBackgroundColor: "Checked background color",
|
|
32
|
+
uncheckedBackgroundColor: "Unchecked background color",
|
|
25
33
|
checkedBorderColor: "Checked border color",
|
|
34
|
+
uncheckedBorderColor: "Unchecked border color",
|
|
26
35
|
borderWidth: "Border width",
|
|
27
|
-
|
|
36
|
+
checkMarkColor: "Checkmark color",
|
|
28
37
|
size: "Checkbox size"
|
|
29
38
|
}
|
|
30
39
|
},
|
|
31
|
-
|
|
32
|
-
elementDisplayName: "
|
|
40
|
+
optionLabel: {
|
|
41
|
+
elementDisplayName: "Option label"
|
|
42
|
+
},
|
|
43
|
+
groupLabel: {
|
|
44
|
+
elementDisplayName: "Group label"
|
|
33
45
|
}
|
|
34
46
|
};
|
|
35
47
|
const DesignStates = {
|
|
36
48
|
indicator: {
|
|
37
|
-
hover: {
|
|
38
|
-
|
|
49
|
+
hover: {
|
|
50
|
+
displayName: "Hover",
|
|
51
|
+
className: "checkbox-group__indicator--hover"
|
|
52
|
+
},
|
|
53
|
+
focus: {
|
|
54
|
+
displayName: "Focus",
|
|
55
|
+
className: "checkbox-group__indicator--focus"
|
|
56
|
+
},
|
|
39
57
|
disabled: {
|
|
40
58
|
displayName: "Disabled",
|
|
41
|
-
className: "
|
|
59
|
+
className: "checkbox-group__indicator--disabled"
|
|
42
60
|
},
|
|
43
61
|
invalid: {
|
|
44
62
|
displayName: "Invalid",
|
|
45
|
-
className: "
|
|
63
|
+
className: "checkbox-group__indicator--invalid"
|
|
46
64
|
}
|
|
47
65
|
}
|
|
48
66
|
};
|
|
67
|
+
const defaultOptions = [
|
|
68
|
+
{ value: "option-1", label: "Option 1", checked: false, disabled: false },
|
|
69
|
+
{ value: "option-2", label: "Option 2", checked: false, disabled: false },
|
|
70
|
+
{ value: "option-3", label: "Option 3", checked: false, disabled: false }
|
|
71
|
+
];
|
|
49
72
|
const defaultValues = {
|
|
50
73
|
label: "Label",
|
|
51
|
-
|
|
52
|
-
|
|
74
|
+
tooltip: "",
|
|
75
|
+
displayLabel: true,
|
|
76
|
+
selectAllLabel: "Select all",
|
|
53
77
|
required: false,
|
|
54
78
|
readOnly: false,
|
|
55
79
|
disabled: false,
|
|
56
|
-
|
|
57
|
-
tooltip: ""
|
|
80
|
+
selectAll: false
|
|
58
81
|
};
|
|
59
82
|
const TestIds = {
|
|
60
|
-
root: "checkbox-root",
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
83
|
+
root: "checkbox-group-root",
|
|
84
|
+
group: "checkbox-group-group",
|
|
85
|
+
legend: "checkbox-group-legend",
|
|
86
|
+
requiredIndicator: "checkbox-group-required-indicator",
|
|
87
|
+
selectAll: "checkbox-group-select-all",
|
|
88
|
+
option: "checkbox-group-option",
|
|
89
|
+
control: "checkbox-group-control",
|
|
90
|
+
indicator: "checkbox-group-indicator",
|
|
91
|
+
optionLabel: "checkbox-group-option-label",
|
|
92
|
+
tooltipButton: "checkbox-group-tooltip-button"
|
|
66
93
|
};
|
|
67
94
|
const selectors = {
|
|
68
|
-
root: "checkbox",
|
|
69
|
-
indicator: "
|
|
70
|
-
label: "
|
|
95
|
+
root: "checkbox-group",
|
|
96
|
+
indicator: "checkbox-group__indicator",
|
|
97
|
+
label: "checkbox-group__label",
|
|
98
|
+
groupLabel: "checkbox-group__group-label"
|
|
71
99
|
};
|
|
72
100
|
const semanticClassNames = {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
101
|
+
groupLabel: "checkbox-group__group-label",
|
|
102
|
+
option: "checkbox-group__option",
|
|
103
|
+
control: "checkbox-group__control",
|
|
104
|
+
indicator: "checkbox-group__indicator",
|
|
105
|
+
label: "checkbox-group__label",
|
|
106
|
+
requiredIndicator: "checkbox-group__required-indicator"
|
|
78
107
|
};
|
|
79
108
|
export {
|
|
80
109
|
DesignStates as D,
|
|
81
110
|
TestIds as T,
|
|
82
|
-
|
|
83
|
-
|
|
111
|
+
defaultOptions as a,
|
|
112
|
+
semanticClassNames as b,
|
|
113
|
+
DisplayNames as c,
|
|
84
114
|
defaultValues as d,
|
|
85
115
|
selectors as s
|
|
86
116
|
};
|