@wix/editor-react-components 1.2637.0 → 1.2638.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.
Files changed (49) hide show
  1. package/dist/site/components/AccordionComponent/component.js +1 -1
  2. package/dist/site/components/AccordionComponent/manifest.js +1 -1
  3. package/dist/site/components/AudioPlayer/component.js +1 -1
  4. package/dist/site/components/AudioPlayer/manifest.js +1 -1
  5. package/dist/site/components/BoxContainer/component.js +1 -1
  6. package/dist/site/components/BoxContainer/manifest.js +1 -1
  7. package/dist/site/components/Breadcrumbs/component.js +1 -1
  8. package/dist/site/components/Breadcrumbs/manifest.js +1 -1
  9. package/dist/site/components/Checkbox/component.js +1 -1
  10. package/dist/site/components/Checkbox/manifest.js +1 -1
  11. package/dist/site/components/CheckboxGroup/component.js +1 -1
  12. package/dist/site/components/CheckboxGroup/manifest.js +1 -1
  13. package/dist/site/components/CollapsibleText/component.js +1 -1
  14. package/dist/site/components/CollapsibleText/manifest.js +1 -1
  15. package/dist/site/components/DatePicker/component.js +1 -1
  16. package/dist/site/components/DatePicker/manifest.js +1 -1
  17. package/dist/site/components/Dropdown/component.js +1 -1
  18. package/dist/site/components/Dropdown/manifest.js +1 -1
  19. package/dist/site/components/HTMLComponent/component.js +1 -1
  20. package/dist/site/components/HeadingTextBlock/component.js +3 -42
  21. package/dist/site/components/HeadingTextBlock/css.css +20 -21
  22. package/dist/site/components/HeadingTextBlock/manifest.js +1 -1
  23. package/dist/site/components/HipaaIcon/component.js +1 -1
  24. package/dist/site/components/HipaaIcon/manifest.js +1 -1
  25. package/dist/site/components/ImageReveal/ImageReveal.d.ts +4 -0
  26. package/dist/site/components/ImageReveal/component.d.ts +2 -0
  27. package/dist/site/components/ImageReveal/component.js +317 -0
  28. package/dist/site/components/ImageReveal/constants.d.ts +49 -0
  29. package/dist/site/components/ImageReveal/css.css +364 -0
  30. package/dist/site/components/ImageReveal/index.d.ts +2 -0
  31. package/dist/site/components/ImageReveal/index.js +6 -0
  32. package/dist/site/components/ImageReveal/manifest.d.ts +5 -0
  33. package/dist/site/components/ImageReveal/manifest.js +330 -0
  34. package/dist/site/components/ImageReveal/types.d.ts +27 -0
  35. package/dist/site/components/chunks/constants32.js +49 -24
  36. package/dist/site/components/chunks/constants33.js +25 -56
  37. package/dist/site/components/chunks/constants34.js +59 -10
  38. package/dist/site/components/chunks/constants35.js +10 -206
  39. package/dist/site/components/chunks/constants36.js +182 -153
  40. package/dist/site/components/chunks/constants37.js +162 -49
  41. package/dist/site/components/chunks/constants38.js +51 -102
  42. package/dist/site/components/chunks/constants39.js +69 -39
  43. package/dist/site/components/chunks/constants40.js +72 -69
  44. package/dist/site/components/chunks/constants41.js +73 -77
  45. package/dist/site/components/chunks/constants42.js +75 -56
  46. package/dist/site/components/chunks/constants43.js +72 -0
  47. package/dist/site/components/chunks/index14.js +46 -0
  48. package/dist/site/components/extensions.js +35 -33
  49. package/package.json +2 -2
@@ -1,69 +1,182 @@
1
- const manifestClasses = {
2
- root: "collapsible-text",
3
- text: "text",
4
- expandControl: "expand-control"
5
- };
6
1
  const DisplayNames = {
7
2
  root: {
8
- elementDisplayName: "Collapsible Text",
9
- actions: {
10
- settings: "Settings",
11
- design: "Design"
12
- },
3
+ elementDisplayName: "Date Picker",
13
4
  data: {
14
- expandMode: {
15
- displayName: "Choose what the button does",
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
- button: "Expands",
18
- link: "Links"
20
+ day: "Date only",
21
+ hour: "Date and hour",
22
+ minute: "Date and time"
19
23
  }
20
24
  },
21
- text: "Text",
22
- readMoreText: "Expand button text",
23
- readLessText: "Collapse button text",
24
- linkText: "Link text"
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
- elements: {
27
- text: "Text",
28
- button: "Button"
40
+ designStates: {
41
+ hover: "Hover",
42
+ focus: "Focus",
43
+ disabled: "Disabled",
44
+ selected: "Selected"
29
45
  },
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"
46
+ elements: {
47
+ label: "Label",
48
+ description: "Helper text",
49
+ dateInput: "Date input",
50
+ calendarButton: "Calendar button",
51
+ popover: "Popover",
52
+ calendar: "Calendar",
53
+ calendarDay: "Calendar day",
54
+ today: "Today"
39
55
  }
40
56
  }
41
57
  };
42
58
  const defaultValues = {
43
- expandMode: "button"
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"
105
+ },
106
+ disabled: {
107
+ displayName: DisplayNames.root.designStates.disabled,
108
+ className: "datePicker__group--disabled"
109
+ }
110
+ },
111
+ calendarButton: {
112
+ hover: {
113
+ displayName: DisplayNames.root.designStates.hover,
114
+ className: "datePicker__calendar-button--hover"
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"
133
+ }
134
+ }
135
+ };
136
+ const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
137
+ const EMPTY_VALUE = "";
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" }
44
143
  };
45
- var ExpandModeValues = /* @__PURE__ */ ((ExpandModeValues2) => {
46
- ExpandModeValues2["Link"] = "link";
47
- ExpandModeValues2["Expand"] = "button";
48
- return ExpandModeValues2;
49
- })(ExpandModeValues || {});
50
144
  const TestIds = {
51
- root: "collapsible-text-root",
52
- textWrapper: "collapsible-text-text-wrapper"
145
+ root: "datepicker-root",
146
+ group: "datepicker-group",
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"
53
155
  };
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"
156
+ const selectors = {
157
+ root: "datePicker",
158
+ label: "datePicker__label",
159
+ description: "datePicker__description",
160
+ requiredIndicator: "datePicker__required-indicator",
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"
59
167
  };
168
+ const VALUE_MISSING_MESSAGE = "This field is required";
60
169
  export {
61
- DisplayNames as D,
62
- ExpandModeValues as E,
63
- FALLBACK_LINE_HEIGHT as F,
64
- LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE as L,
170
+ ARIA_LABEL_NAMESPACE as A,
171
+ DesignStates as D,
172
+ EMPTY_VALUE as E,
173
+ GranularityValues as G,
174
+ PREVIEW_CALENDAR_OPEN as P,
175
+ SelectionModeValues as S,
65
176
  TestIds as T,
177
+ VALUE_MISSING_MESSAGE as V,
178
+ AriaLabels as a,
179
+ DisplayNames as b,
66
180
  defaultValues as d,
67
- manifestClasses as m,
68
- semanticClassNames as s
181
+ selectors as s
69
182
  };
@@ -1,120 +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: "Checkbox Group",
4
- data: {
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"
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
- focus: {
54
- displayName: "Focus",
55
- className: "checkbox-group__indicator--focus"
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
- disabled: {
58
- displayName: "Disabled",
59
- className: "checkbox-group__indicator--disabled"
26
+ elements: {
27
+ text: "Text",
28
+ button: "Button"
60
29
  },
61
- invalid: {
62
- displayName: "Invalid",
63
- className: "checkbox-group__indicator--invalid"
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
- label: "Label",
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
  };
82
- const VALUE_MISSING_MESSAGE = "This field is required";
45
+ var ExpandModeValues = /* @__PURE__ */ ((ExpandModeValues2) => {
46
+ ExpandModeValues2["Link"] = "link";
47
+ ExpandModeValues2["Expand"] = "button";
48
+ return ExpandModeValues2;
49
+ })(ExpandModeValues || {});
83
50
  const TestIds = {
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"
51
+ root: "collapsible-text-root",
52
+ textWrapper: "collapsible-text-text-wrapper"
101
53
  };
54
+ const FALLBACK_LINE_HEIGHT = 22.4;
55
+ const LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE = 1;
102
56
  const semanticClassNames = {
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"
57
+ root: "collapsible-text",
58
+ text: "collapsible-text__text"
110
59
  };
111
60
  export {
112
- DesignStates as D,
61
+ DisplayNames as D,
62
+ ExpandModeValues as E,
63
+ FALLBACK_LINE_HEIGHT as F,
64
+ LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE as L,
113
65
  TestIds as T,
114
- VALUE_MISSING_MESSAGE as V,
115
- defaultOptions as a,
116
- semanticClassNames as b,
117
- DisplayNames as c,
118
66
  defaultValues as d,
119
- selectors as s
67
+ manifestClasses as m,
68
+ semanticClassNames as s
120
69
  };
@@ -1,90 +1,120 @@
1
1
  const DisplayNames = {
2
2
  root: {
3
- elementDisplayName: "Checkbox",
3
+ elementDisplayName: "Checkbox Group",
4
4
  data: {
5
- checked: "Checked",
6
- defaultChecked: "Checked by default",
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
- indeterminate: "Indeterminate",
11
- label: "Label",
12
- tooltip: "Tooltip"
17
+ selectAll: "Select all",
18
+ selectAllLabel: "Select all label"
13
19
  },
14
20
  cssCustomProperties: {
15
- gap: "Spacing",
16
- alignment: "Alignment"
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
- checkmarkColor: "Checkmark color",
36
+ checkMarkColor: "Checkmark color",
28
37
  size: "Checkbox size"
29
38
  }
30
39
  },
31
- label: {
32
- elementDisplayName: "Label"
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: { displayName: "Hover", className: "checkbox__indicator--hover" },
38
- focus: { displayName: "Focus", className: "checkbox__indicator--focus" },
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: "checkbox__indicator--disabled"
59
+ className: "checkbox-group__indicator--disabled"
42
60
  },
43
61
  invalid: {
44
62
  displayName: "Invalid",
45
- className: "checkbox__indicator--invalid"
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
- checked: false,
52
- defaultChecked: false,
74
+ tooltip: "",
75
+ displayLabel: true,
76
+ selectAllLabel: "Select all",
53
77
  required: false,
54
78
  readOnly: false,
55
79
  disabled: false,
56
- indeterminate: false,
57
- tooltip: ""
80
+ selectAll: false
58
81
  };
59
82
  const VALUE_MISSING_MESSAGE = "This field is required";
60
83
  const TestIds = {
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"
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"
68
95
  };
69
96
  const selectors = {
70
- root: "checkbox",
71
- indicator: "checkbox__indicator",
72
- label: "checkbox__label"
97
+ root: "checkbox-group",
98
+ indicator: "checkbox-group__indicator",
99
+ label: "checkbox-group__label",
100
+ groupLabel: "checkbox-group__group-label"
73
101
  };
74
102
  const semanticClassNames = {
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"
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"
81
110
  };
82
111
  export {
83
112
  DesignStates as D,
84
113
  TestIds as T,
85
114
  VALUE_MISSING_MESSAGE as V,
86
- semanticClassNames as a,
87
- DisplayNames as b,
115
+ defaultOptions as a,
116
+ semanticClassNames as b,
117
+ DisplayNames as c,
88
118
  defaultValues as d,
89
119
  selectors as s
90
120
  };