@wix/editor-react-components 1.2762.0 → 1.2763.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/AnimatedIcon/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 +3 -3
- package/dist/site/components/BoxContainer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +3 -3
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Button/manifest.js +1 -1
- package/dist/site/components/Checkbox/component.js +1 -1
- package/dist/site/components/Checkbox/manifest.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +1 -1
- package/dist/site/components/CheckboxGroup/manifest.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +2 -2
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/DatePicker/component.js +2 -2
- package/dist/site/components/DatePicker/manifest.js +1 -1
- package/dist/site/components/Dropdown/component.js +2 -2
- package/dist/site/components/Dropdown/manifest.js +1 -1
- package/dist/site/components/GoogleMap/component.js +3 -3
- package/dist/site/components/HTMLComponent/component.js +2 -2
- package/dist/site/components/HeadingTextBlock/component.js +1 -1
- package/dist/site/components/HeadingTextBlock/manifest.js +1 -1
- package/dist/site/components/HipaaIcon/component.js +2 -2
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/Image3/component.js +2 -2
- package/dist/site/components/ImageReveal/component.js +2 -2
- package/dist/site/components/ImageReveal/manifest.js +1 -1
- package/dist/site/components/Line/component.js +1 -1
- package/dist/site/components/LinkBar/component.js +2 -2
- 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 +3 -3
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/MarkdownBlock/component.js +2 -2
- package/dist/site/components/MarkdownBlock/manifest.js +1 -1
- package/dist/site/components/Menu/component.js +3 -3
- 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/component.js +1 -1
- package/dist/site/components/RadioButtons/manifest.js +1 -1
- package/dist/site/components/Repeater/component.js +2 -2
- package/dist/site/components/Repeater/manifest.js +1 -1
- package/dist/site/components/ShareButtons/component.js +2 -2
- package/dist/site/components/ShareButtons/manifest.js +1 -1
- package/dist/site/components/Slideshow/component.js +1 -1
- package/dist/site/components/Tabs/component.js +1 -1
- package/dist/site/components/Tabs/manifest.js +1 -1
- package/dist/site/components/TextBox/component.js +1 -1
- package/dist/site/components/TextBox/manifest.js +1 -1
- package/dist/site/components/TextEffects3d/component.js +1 -1
- package/dist/site/components/TextEffects3d/manifest.js +1 -1
- package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
- package/dist/site/components/TextEffectsBauhaus/manifest.js +1 -1
- package/dist/site/components/TextEffectsGlass/component.js +1 -1
- package/dist/site/components/TextEffectsGlass/manifest.js +1 -1
- package/dist/site/components/TextEffectsGlitch/component.js +1 -1
- package/dist/site/components/TextEffectsGlitch/manifest.js +1 -1
- package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
- package/dist/site/components/TextEffectsLetterPress/manifest.js +1 -1
- package/dist/site/components/TextEffectsMatrix/component.js +1 -1
- package/dist/site/components/TextEffectsMatrix/manifest.js +1 -1
- package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
- package/dist/site/components/TextEffectsNeonSign/manifest.js +1 -1
- package/dist/site/components/TextEffectsNoisy/component.js +1 -1
- package/dist/site/components/TextEffectsNoisy/manifest.js +1 -1
- package/dist/site/components/TextEffectsOutlineOut/component.js +2 -2
- package/dist/site/components/TextEffectsOutlineOut/manifest.js +1 -1
- package/dist/site/components/TextEffectsRetro/component.js +1 -1
- package/dist/site/components/TextEffectsRetro/manifest.js +1 -1
- package/dist/site/components/TextEffectsShook/component.js +1 -1
- package/dist/site/components/TextEffectsShook/manifest.js +1 -1
- package/dist/site/components/TextEffectsSticker/component.js +1 -1
- package/dist/site/components/TextEffectsSticker/manifest.js +2 -2
- package/dist/site/components/TextEffectsStriped/component.js +1 -1
- package/dist/site/components/TextEffectsStriped/manifest.js +1 -1
- package/dist/site/components/TextInput/component.js +2 -2
- package/dist/site/components/TextInput/manifest.js +1 -1
- package/dist/site/components/TextMarquee/component.js +1 -1
- package/dist/site/components/TimePicker/component.js +2 -2
- package/dist/site/components/TimePicker/manifest.js +1 -1
- package/dist/site/components/TransparentVideo/component.js +2 -2
- package/dist/site/components/VideoScrub/VideoScrub.types.d.ts +28 -0
- package/dist/site/components/VideoScrub/component.js +295 -29
- package/dist/site/components/VideoScrub/constants.d.ts +5 -0
- package/dist/site/components/VideoScrub/css.css +21 -1
- package/dist/site/components/VideoScrub/hooks/useTimeframes.d.ts +23 -0
- package/dist/site/components/VideoScrub/manifest.js +102 -6
- package/dist/site/components/VideoScrub/timeframes/index.d.ts +1 -1
- package/dist/site/components/VideoScrub/timeframes/types.d.ts +1 -1
- package/dist/site/components/VideoScrub/timeframes/useActiveTimeframeIndex.d.ts +2 -0
- package/dist/site/components/chunks/AnimatedIcon.js +1 -1
- package/dist/site/components/chunks/Button.js +2 -2
- package/dist/site/components/chunks/Image.js +1 -1
- package/dist/site/components/chunks/Link.js +1 -1
- package/dist/site/components/chunks/Patterns.js +1 -1
- package/dist/site/components/chunks/ResponsiveBox.js +1 -1
- package/dist/site/components/chunks/TextEffectsShared.js +2 -2
- package/dist/site/components/chunks/a11y.js +4 -4
- package/dist/site/components/chunks/constants10.js +20 -65
- package/dist/site/components/chunks/constants11.js +12 -14
- package/dist/site/components/chunks/constants12.js +9 -9
- package/dist/site/components/chunks/constants13.js +8 -10
- package/dist/site/components/chunks/constants14.js +13 -9
- package/dist/site/components/chunks/constants15.js +17 -14
- package/dist/site/components/chunks/constants16.js +12 -17
- package/dist/site/components/chunks/constants17.js +13 -11
- package/dist/site/components/chunks/constants18.js +96 -21
- package/dist/site/components/chunks/constants19.js +50 -92
- package/dist/site/components/chunks/constants2.js +128 -34
- package/dist/site/components/chunks/constants20.js +50 -54
- package/dist/site/components/chunks/constants21.js +52 -49
- package/dist/site/components/chunks/constants22.js +310 -43
- package/dist/site/components/chunks/constants23.js +65 -310
- package/dist/site/components/chunks/constants24.js +99 -70
- package/dist/site/components/chunks/constants25.js +30 -101
- package/dist/site/components/chunks/constants26.js +17 -35
- package/dist/site/components/chunks/constants27.js +447 -16
- package/dist/site/components/chunks/constants28.js +29 -441
- package/dist/site/components/chunks/constants29.js +78 -26
- package/dist/site/components/chunks/constants3.js +84 -118
- package/dist/site/components/chunks/constants30.js +15 -85
- package/dist/site/components/chunks/constants31.js +42 -11
- package/dist/site/components/chunks/constants32.js +45 -41
- package/dist/site/components/chunks/constants33.js +24 -49
- package/dist/site/components/chunks/constants34.js +56 -25
- package/dist/site/components/chunks/constants35.js +13 -58
- package/dist/site/components/chunks/constants36.js +206 -14
- package/dist/site/components/chunks/constants37.js +153 -182
- package/dist/site/components/chunks/constants38.js +49 -162
- package/dist/site/components/chunks/constants39.js +102 -51
- package/dist/site/components/chunks/constants4.js +13 -88
- package/dist/site/components/chunks/constants40.js +39 -69
- package/dist/site/components/chunks/constants41.js +79 -72
- package/dist/site/components/chunks/constants42.js +77 -83
- package/dist/site/components/chunks/constants43.js +56 -75
- package/dist/site/components/chunks/constants5.js +19 -10
- package/dist/site/components/chunks/constants6.js +14 -14
- package/dist/site/components/chunks/constants7.js +10 -11
- package/dist/site/components/chunks/constants8.js +14 -14
- package/dist/site/components/chunks/constants9.js +65 -22
- package/dist/site/components/chunks/customElementInit.js +1 -1
- package/dist/site/components/chunks/index4.js +3 -2133
- package/dist/site/components/chunks/index5.js +2080 -1414
- package/dist/site/components/chunks/index6.js +1467 -3
- package/dist/site/components/chunks/manifestBase.js +1 -1
- package/dist/site/components/chunks/parseHtml.js +1 -1
- package/dist/site/components/chunks/parseSvg.js +1 -1
- package/dist/site/components/chunks/types.js +61 -0
- package/dist/site/components/chunks/useConsentPolicyProps.js +2 -2
- package/dist/site/components/chunks/utils2.js +1 -1
- package/dist/site/components/extensions.js +1 -1
- package/package.json +2 -2
- package/dist/site/components/chunks/constants44.js +0 -72
|
@@ -1,182 +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: "
|
|
8
|
+
elementDisplayName: "Collapsible Text",
|
|
9
|
+
actions: {
|
|
10
|
+
settings: "Settings",
|
|
11
|
+
design: "Design"
|
|
12
|
+
},
|
|
4
13
|
data: {
|
|
5
|
-
|
|
6
|
-
|
|
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",
|
|
14
|
+
expandMode: {
|
|
15
|
+
displayName: "Choose what the button does",
|
|
19
16
|
options: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
minute: "Date and time"
|
|
17
|
+
button: "Expands",
|
|
18
|
+
link: "Links"
|
|
23
19
|
}
|
|
24
20
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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"
|
|
39
|
-
},
|
|
40
|
-
designStates: {
|
|
41
|
-
hover: "Hover",
|
|
42
|
-
focus: "Focus",
|
|
43
|
-
disabled: "Disabled",
|
|
44
|
-
selected: "Selected"
|
|
21
|
+
text: "Text",
|
|
22
|
+
readMoreText: "Expand button text",
|
|
23
|
+
readLessText: "Collapse button text",
|
|
24
|
+
linkText: "Link text"
|
|
45
25
|
},
|
|
46
26
|
elements: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
dateInput: "Date input",
|
|
50
|
-
calendarButton: "Calendar button",
|
|
51
|
-
popover: "Popover",
|
|
52
|
-
calendar: "Calendar",
|
|
53
|
-
calendarDay: "Calendar day",
|
|
54
|
-
today: "Today"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const defaultValues = {
|
|
59
|
-
selectionMode: "single",
|
|
60
|
-
granularity: "day",
|
|
61
|
-
tooltip: "",
|
|
62
|
-
label: "",
|
|
63
|
-
description: "",
|
|
64
|
-
allowPastDates: true,
|
|
65
|
-
allowFutureDates: true,
|
|
66
|
-
required: false,
|
|
67
|
-
readOnly: false,
|
|
68
|
-
disabled: false,
|
|
69
|
-
clearable: false
|
|
70
|
-
};
|
|
71
|
-
var SelectionModeValues = /* @__PURE__ */ ((SelectionModeValues2) => {
|
|
72
|
-
SelectionModeValues2["Single"] = "single";
|
|
73
|
-
SelectionModeValues2["Range"] = "range";
|
|
74
|
-
return SelectionModeValues2;
|
|
75
|
-
})(SelectionModeValues || {});
|
|
76
|
-
var GranularityValues = /* @__PURE__ */ ((GranularityValues2) => {
|
|
77
|
-
GranularityValues2["Day"] = "day";
|
|
78
|
-
GranularityValues2["Hour"] = "hour";
|
|
79
|
-
GranularityValues2["Minute"] = "minute";
|
|
80
|
-
return GranularityValues2;
|
|
81
|
-
})(GranularityValues || {});
|
|
82
|
-
const DesignStates = {
|
|
83
|
-
root: {
|
|
84
|
-
hover: {
|
|
85
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
86
|
-
className: "datePicker--hover"
|
|
87
|
-
},
|
|
88
|
-
focus: {
|
|
89
|
-
displayName: DisplayNames.root.designStates.focus,
|
|
90
|
-
className: "datePicker--focus"
|
|
91
|
-
},
|
|
92
|
-
disabled: {
|
|
93
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
94
|
-
className: "datePicker--disabled"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
dateInput: {
|
|
98
|
-
hover: {
|
|
99
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
100
|
-
className: "datePicker__group--hover"
|
|
101
|
-
},
|
|
102
|
-
focus: {
|
|
103
|
-
displayName: DisplayNames.root.designStates.focus,
|
|
104
|
-
className: "datePicker__group--focus"
|
|
27
|
+
text: "Text",
|
|
28
|
+
button: "Button"
|
|
105
29
|
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
selected: {
|
|
117
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
118
|
-
className: "datePicker__calendar-button--selected"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
calendarDay: {
|
|
122
|
-
hover: {
|
|
123
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
124
|
-
className: "datePicker__day--hover"
|
|
125
|
-
},
|
|
126
|
-
selected: {
|
|
127
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
128
|
-
className: "datePicker__day--selected"
|
|
129
|
-
},
|
|
130
|
-
disabled: {
|
|
131
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
132
|
-
className: "datePicker__day--disabled"
|
|
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"
|
|
133
39
|
}
|
|
134
40
|
}
|
|
135
41
|
};
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
139
|
-
const AriaLabels = {
|
|
140
|
-
root: { key: "datePicker_aria_label", default: "Date picker" },
|
|
141
|
-
clear: { key: "datePicker_clear_button", default: "Clear" },
|
|
142
|
-
openCalendar: { key: "datePicker_open_calendar", default: "Open calendar" }
|
|
42
|
+
const defaultValues = {
|
|
43
|
+
expandMode: "button"
|
|
143
44
|
};
|
|
45
|
+
var ExpandModeValues = /* @__PURE__ */ ((ExpandModeValues2) => {
|
|
46
|
+
ExpandModeValues2["Link"] = "link";
|
|
47
|
+
ExpandModeValues2["Expand"] = "button";
|
|
48
|
+
return ExpandModeValues2;
|
|
49
|
+
})(ExpandModeValues || {});
|
|
144
50
|
const TestIds = {
|
|
145
|
-
root: "
|
|
146
|
-
|
|
147
|
-
field: "datepicker-field",
|
|
148
|
-
endField: "datepicker-end-field",
|
|
149
|
-
calendarButton: "datepicker-calendar-button",
|
|
150
|
-
clearButton: "datepicker-clear-button",
|
|
151
|
-
calendar: "datepicker-calendar",
|
|
152
|
-
tooltipButton: "datepicker-tooltip-button",
|
|
153
|
-
errorMessage: "datepicker-error-message",
|
|
154
|
-
requiredIndicator: "datepicker-required-indicator"
|
|
51
|
+
root: "collapsible-text-root",
|
|
52
|
+
textWrapper: "collapsible-text-text-wrapper"
|
|
155
53
|
};
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
group: "datePicker__group",
|
|
162
|
-
calendarButton: "datePicker__calendar-button",
|
|
163
|
-
popover: "datePicker__popover",
|
|
164
|
-
calendar: "datePicker__calendar",
|
|
165
|
-
day: "datePicker__day",
|
|
166
|
-
errorMessage: "datePicker__error-message"
|
|
54
|
+
const FALLBACK_LINE_HEIGHT = 22.4;
|
|
55
|
+
const LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE = 1;
|
|
56
|
+
const semanticClassNames = {
|
|
57
|
+
root: "collapsible-text",
|
|
58
|
+
text: "collapsible-text__text"
|
|
167
59
|
};
|
|
168
|
-
const VALUE_MISSING_MESSAGE = "This field is required";
|
|
169
60
|
export {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
PREVIEW_CALENDAR_OPEN as P,
|
|
175
|
-
SelectionModeValues as S,
|
|
61
|
+
DisplayNames as D,
|
|
62
|
+
ExpandModeValues as E,
|
|
63
|
+
FALLBACK_LINE_HEIGHT as F,
|
|
64
|
+
LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE as L,
|
|
176
65
|
TestIds as T,
|
|
177
|
-
VALUE_MISSING_MESSAGE as V,
|
|
178
|
-
AriaLabels as a,
|
|
179
|
-
DisplayNames as b,
|
|
180
66
|
defaultValues as d,
|
|
181
|
-
|
|
67
|
+
manifestClasses as m,
|
|
68
|
+
semanticClassNames as s
|
|
182
69
|
};
|
|
@@ -1,69 +1,120 @@
|
|
|
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: "Checkbox Group",
|
|
13
4
|
data: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
button: "Button"
|
|
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",
|
|
14
|
+
required: "Required",
|
|
15
|
+
readOnly: "Read only",
|
|
16
|
+
disabled: "Disabled",
|
|
17
|
+
selectAll: "Select all",
|
|
18
|
+
selectAllLabel: "Select all label"
|
|
29
19
|
},
|
|
30
20
|
cssCustomProperties: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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"
|
|
52
|
+
},
|
|
53
|
+
focus: {
|
|
54
|
+
displayName: "Focus",
|
|
55
|
+
className: "checkbox-group__indicator--focus"
|
|
56
|
+
},
|
|
57
|
+
disabled: {
|
|
58
|
+
displayName: "Disabled",
|
|
59
|
+
className: "checkbox-group__indicator--disabled"
|
|
60
|
+
},
|
|
61
|
+
invalid: {
|
|
62
|
+
displayName: "Invalid",
|
|
63
|
+
className: "checkbox-group__indicator--invalid"
|
|
39
64
|
}
|
|
40
65
|
}
|
|
41
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
|
+
];
|
|
42
72
|
const defaultValues = {
|
|
43
|
-
|
|
73
|
+
label: "Label",
|
|
74
|
+
tooltip: "",
|
|
75
|
+
displayLabel: true,
|
|
76
|
+
selectAllLabel: "Select all",
|
|
77
|
+
required: false,
|
|
78
|
+
readOnly: false,
|
|
79
|
+
disabled: false,
|
|
80
|
+
selectAll: false
|
|
44
81
|
};
|
|
45
|
-
|
|
46
|
-
ExpandModeValues2["Link"] = "link";
|
|
47
|
-
ExpandModeValues2["Expand"] = "button";
|
|
48
|
-
return ExpandModeValues2;
|
|
49
|
-
})(ExpandModeValues || {});
|
|
82
|
+
const VALUE_MISSING_MESSAGE = "This field is required";
|
|
50
83
|
const TestIds = {
|
|
51
|
-
root: "
|
|
52
|
-
|
|
84
|
+
root: "checkbox-group-root",
|
|
85
|
+
group: "checkbox-group-group",
|
|
86
|
+
legend: "checkbox-group-legend",
|
|
87
|
+
requiredIndicator: "checkbox-group-required-indicator",
|
|
88
|
+
selectAll: "checkbox-group-select-all",
|
|
89
|
+
option: "checkbox-group-option",
|
|
90
|
+
control: "checkbox-group-control",
|
|
91
|
+
indicator: "checkbox-group-indicator",
|
|
92
|
+
optionLabel: "checkbox-group-option-label",
|
|
93
|
+
tooltipButton: "checkbox-group-tooltip-button",
|
|
94
|
+
errorMessage: "checkbox-group-error-message"
|
|
95
|
+
};
|
|
96
|
+
const selectors = {
|
|
97
|
+
root: "checkbox-group",
|
|
98
|
+
indicator: "checkbox-group__indicator",
|
|
99
|
+
label: "checkbox-group__label",
|
|
100
|
+
groupLabel: "checkbox-group__group-label"
|
|
53
101
|
};
|
|
54
|
-
const FALLBACK_LINE_HEIGHT = 22.4;
|
|
55
|
-
const LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE = 1;
|
|
56
102
|
const semanticClassNames = {
|
|
57
|
-
|
|
58
|
-
|
|
103
|
+
groupLabel: "checkbox-group__group-label",
|
|
104
|
+
option: "checkbox-group__option",
|
|
105
|
+
control: "checkbox-group__control",
|
|
106
|
+
indicator: "checkbox-group__indicator",
|
|
107
|
+
label: "checkbox-group__label",
|
|
108
|
+
requiredIndicator: "checkbox-group__required-indicator",
|
|
109
|
+
errorMessage: "checkbox-group__error-message"
|
|
59
110
|
};
|
|
60
111
|
export {
|
|
61
|
-
|
|
62
|
-
ExpandModeValues as E,
|
|
63
|
-
FALLBACK_LINE_HEIGHT as F,
|
|
64
|
-
LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE as L,
|
|
112
|
+
DesignStates as D,
|
|
65
113
|
TestIds as T,
|
|
114
|
+
VALUE_MISSING_MESSAGE as V,
|
|
115
|
+
defaultOptions as a,
|
|
116
|
+
semanticClassNames as b,
|
|
117
|
+
DisplayNames as c,
|
|
66
118
|
defaultValues as d,
|
|
67
|
-
|
|
68
|
-
semanticClassNames as s
|
|
119
|
+
selectors as s
|
|
69
120
|
};
|
|
@@ -1,97 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
root: "textInput",
|
|
3
|
-
label: "textInput__label",
|
|
4
|
-
input: "textInput__input",
|
|
5
|
-
prefix: "textInput__prefix",
|
|
6
|
-
helperText: "textInput__helper",
|
|
7
|
-
requiredIndicator: "textInput__required-indicator"
|
|
8
|
-
};
|
|
1
|
+
import { S as SharedDisplayNames } from "./constants9.js";
|
|
9
2
|
const TestIds = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const VALUE_MISSING_MESSAGE = "This field is required";
|
|
14
|
-
const DesignStates = {
|
|
15
|
-
input: {
|
|
16
|
-
hover: { displayName: "Hover", className: "textInput__input--hover" },
|
|
17
|
-
focus: { displayName: "Focus", className: "textInput__input--focus" },
|
|
18
|
-
error: { displayName: "Error", className: "textInput__input--error" },
|
|
19
|
-
disabled: {
|
|
20
|
-
displayName: "Disabled",
|
|
21
|
-
className: "textInput__input--disabled"
|
|
22
|
-
}
|
|
3
|
+
viewer: {
|
|
4
|
+
container: "TextEffectsStriped-container",
|
|
5
|
+
text: "TextEffectsStriped-text"
|
|
23
6
|
}
|
|
24
7
|
};
|
|
25
8
|
const DisplayNames = {
|
|
26
|
-
|
|
27
|
-
elementDisplayName: "TextInput",
|
|
28
|
-
elements: {
|
|
29
|
-
label: "Label",
|
|
30
|
-
input: "Input",
|
|
31
|
-
prefix: "Prefix",
|
|
32
|
-
helperText: "Helper text"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
9
|
+
...SharedDisplayNames,
|
|
35
10
|
cssCustomProperties: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
labelFont: "Label font",
|
|
43
|
-
labelTextColor: "Label text color",
|
|
44
|
-
labelMarginBottom: "Label bottom margin",
|
|
45
|
-
labelPaddingInlineStart: "Label left padding",
|
|
46
|
-
labelPaddingInlineEnd: "Label right padding",
|
|
47
|
-
labelAlign: "Label alignment",
|
|
48
|
-
inputAlign: "Input alignment"
|
|
49
|
-
},
|
|
50
|
-
data: {
|
|
51
|
-
value: "Value",
|
|
52
|
-
defaultValue: "Default value",
|
|
53
|
-
isDisabled: "Disabled",
|
|
54
|
-
name: "Name",
|
|
55
|
-
minLength: "Minimum length",
|
|
56
|
-
autocompleteToken: "Autocomplete type",
|
|
57
|
-
numberSpinnerHidden: "Hide number spinner",
|
|
58
|
-
labelDirection: "Label direction",
|
|
59
|
-
inputDirection: "Input direction",
|
|
60
|
-
inputType: "Input type",
|
|
61
|
-
maxLength: "Maximum length",
|
|
62
|
-
min: "Minimum value",
|
|
63
|
-
max: "Maximum value",
|
|
64
|
-
pattern: "Pattern validation",
|
|
65
|
-
phoneFormat: "Phone format",
|
|
66
|
-
label: "Label text",
|
|
67
|
-
placeholder: "Placeholder text",
|
|
68
|
-
tooltip: "Tooltip",
|
|
69
|
-
description: "Helper text",
|
|
70
|
-
autoComplete: "Autocomplete",
|
|
71
|
-
readOnly: "Read only",
|
|
72
|
-
required: "Required",
|
|
73
|
-
errorMessageType: "Error message format",
|
|
74
|
-
prefix: "Prefix",
|
|
75
|
-
step: "Step"
|
|
76
|
-
},
|
|
77
|
-
options: {
|
|
78
|
-
text: "Text",
|
|
79
|
-
number: "Number",
|
|
80
|
-
email: "Email",
|
|
81
|
-
url: "URL",
|
|
82
|
-
tel: "Phone number",
|
|
83
|
-
password: "Password",
|
|
84
|
-
center: "Center",
|
|
85
|
-
start: "Left",
|
|
86
|
-
end: "Right",
|
|
87
|
-
inline: "Inline",
|
|
88
|
-
tooltip: "Tooltip"
|
|
11
|
+
stripeAngle: "Angle",
|
|
12
|
+
stripeSize: "Size",
|
|
13
|
+
innerAnimationSpeed: "Speed",
|
|
14
|
+
disableInnerAnimation: "Animation",
|
|
15
|
+
textEffectsColor1: "Color 1",
|
|
16
|
+
textEffectsColor2: "Color 2"
|
|
89
17
|
}
|
|
90
18
|
};
|
|
91
19
|
export {
|
|
92
|
-
|
|
93
|
-
TestIds as T
|
|
94
|
-
VALUE_MISSING_MESSAGE as V,
|
|
95
|
-
DisplayNames as a,
|
|
96
|
-
selectors as s
|
|
20
|
+
DisplayNames as D,
|
|
21
|
+
TestIds as T
|
|
97
22
|
};
|
|
@@ -1,120 +1,90 @@
|
|
|
1
1
|
const DisplayNames = {
|
|
2
2
|
root: {
|
|
3
|
-
elementDisplayName: "Checkbox
|
|
3
|
+
elementDisplayName: "Checkbox",
|
|
4
4
|
data: {
|
|
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",
|
|
5
|
+
checked: "Checked",
|
|
6
|
+
defaultChecked: "Checked by default",
|
|
14
7
|
required: "Required",
|
|
15
8
|
readOnly: "Read only",
|
|
16
9
|
disabled: "Disabled",
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
indeterminate: "Indeterminate",
|
|
11
|
+
label: "Label",
|
|
12
|
+
tooltip: "Tooltip"
|
|
19
13
|
},
|
|
20
14
|
cssCustomProperties: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
checkboxTextSpacing: "Space between checkbox and text",
|
|
24
|
-
alignment: "Alignment",
|
|
25
|
-
labelAlignment: "Label alignment"
|
|
15
|
+
gap: "Spacing",
|
|
16
|
+
alignment: "Alignment"
|
|
26
17
|
}
|
|
27
18
|
},
|
|
28
19
|
indicator: {
|
|
29
20
|
elementDisplayName: "Indicator",
|
|
30
21
|
cssCustomProperties: {
|
|
31
|
-
checkedBackgroundColor: "Checked background color",
|
|
32
22
|
uncheckedBackgroundColor: "Unchecked background color",
|
|
33
|
-
checkedBorderColor: "Checked border color",
|
|
34
23
|
uncheckedBorderColor: "Unchecked border color",
|
|
24
|
+
checkedBackgroundColor: "Checked background color",
|
|
25
|
+
checkedBorderColor: "Checked border color",
|
|
35
26
|
borderWidth: "Border width",
|
|
36
|
-
|
|
27
|
+
checkmarkColor: "Checkmark color",
|
|
37
28
|
size: "Checkbox size"
|
|
38
29
|
}
|
|
39
30
|
},
|
|
40
|
-
|
|
41
|
-
elementDisplayName: "
|
|
42
|
-
},
|
|
43
|
-
groupLabel: {
|
|
44
|
-
elementDisplayName: "Group label"
|
|
31
|
+
label: {
|
|
32
|
+
elementDisplayName: "Label"
|
|
45
33
|
}
|
|
46
34
|
};
|
|
47
35
|
const DesignStates = {
|
|
48
36
|
indicator: {
|
|
49
|
-
hover: {
|
|
50
|
-
|
|
51
|
-
className: "checkbox-group__indicator--hover"
|
|
52
|
-
},
|
|
53
|
-
focus: {
|
|
54
|
-
displayName: "Focus",
|
|
55
|
-
className: "checkbox-group__indicator--focus"
|
|
56
|
-
},
|
|
37
|
+
hover: { displayName: "Hover", className: "checkbox__indicator--hover" },
|
|
38
|
+
focus: { displayName: "Focus", className: "checkbox__indicator--focus" },
|
|
57
39
|
disabled: {
|
|
58
40
|
displayName: "Disabled",
|
|
59
|
-
className: "
|
|
41
|
+
className: "checkbox__indicator--disabled"
|
|
60
42
|
},
|
|
61
43
|
invalid: {
|
|
62
44
|
displayName: "Invalid",
|
|
63
|
-
className: "
|
|
45
|
+
className: "checkbox__indicator--invalid"
|
|
64
46
|
}
|
|
65
47
|
}
|
|
66
48
|
};
|
|
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
49
|
const defaultValues = {
|
|
73
50
|
label: "Label",
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
selectAllLabel: "Select all",
|
|
51
|
+
checked: false,
|
|
52
|
+
defaultChecked: false,
|
|
77
53
|
required: false,
|
|
78
54
|
readOnly: false,
|
|
79
55
|
disabled: false,
|
|
80
|
-
|
|
56
|
+
indeterminate: false,
|
|
57
|
+
tooltip: ""
|
|
81
58
|
};
|
|
82
59
|
const VALUE_MISSING_MESSAGE = "This field is required";
|
|
83
60
|
const TestIds = {
|
|
84
|
-
root: "checkbox-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
indicator: "checkbox-group-indicator",
|
|
92
|
-
optionLabel: "checkbox-group-option-label",
|
|
93
|
-
tooltipButton: "checkbox-group-tooltip-button",
|
|
94
|
-
errorMessage: "checkbox-group-error-message"
|
|
61
|
+
root: "checkbox-root",
|
|
62
|
+
control: "checkbox-control",
|
|
63
|
+
indicator: "checkbox-indicator",
|
|
64
|
+
label: "checkbox-label",
|
|
65
|
+
requiredIndicator: "checkbox-required-indicator",
|
|
66
|
+
tooltipButton: "checkbox-tooltip-button",
|
|
67
|
+
errorMessage: "checkbox-error-message"
|
|
95
68
|
};
|
|
96
69
|
const selectors = {
|
|
97
|
-
root: "checkbox
|
|
98
|
-
indicator: "
|
|
99
|
-
label: "
|
|
100
|
-
groupLabel: "checkbox-group__group-label"
|
|
70
|
+
root: "checkbox",
|
|
71
|
+
indicator: "checkbox__indicator",
|
|
72
|
+
label: "checkbox__label"
|
|
101
73
|
};
|
|
102
74
|
const semanticClassNames = {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
errorMessage: "checkbox-group__error-message"
|
|
75
|
+
root: "checkbox",
|
|
76
|
+
control: "checkbox__control",
|
|
77
|
+
indicator: "checkbox__indicator",
|
|
78
|
+
label: "checkbox__label",
|
|
79
|
+
requiredIndicator: "checkbox__required-indicator",
|
|
80
|
+
errorMessage: "checkbox__error-message"
|
|
110
81
|
};
|
|
111
82
|
export {
|
|
112
83
|
DesignStates as D,
|
|
113
84
|
TestIds as T,
|
|
114
85
|
VALUE_MISSING_MESSAGE as V,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
DisplayNames as c,
|
|
86
|
+
semanticClassNames as a,
|
|
87
|
+
DisplayNames as b,
|
|
118
88
|
defaultValues as d,
|
|
119
89
|
selectors as s
|
|
120
90
|
};
|