@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.
Files changed (161) 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/AnimatedIcon/manifest.js +1 -1
  4. package/dist/site/components/AudioPlayer/component.js +1 -1
  5. package/dist/site/components/AudioPlayer/manifest.js +1 -1
  6. package/dist/site/components/BoxContainer/component.js +3 -3
  7. package/dist/site/components/BoxContainer/manifest.js +1 -1
  8. package/dist/site/components/Breadcrumbs/component.js +3 -3
  9. package/dist/site/components/Breadcrumbs/manifest.js +1 -1
  10. package/dist/site/components/Button/manifest.js +1 -1
  11. package/dist/site/components/Checkbox/component.js +1 -1
  12. package/dist/site/components/Checkbox/manifest.js +1 -1
  13. package/dist/site/components/CheckboxGroup/component.js +1 -1
  14. package/dist/site/components/CheckboxGroup/manifest.js +1 -1
  15. package/dist/site/components/CollapsibleText/component.js +2 -2
  16. package/dist/site/components/CollapsibleText/manifest.js +1 -1
  17. package/dist/site/components/DatePicker/component.js +2 -2
  18. package/dist/site/components/DatePicker/manifest.js +1 -1
  19. package/dist/site/components/Dropdown/component.js +2 -2
  20. package/dist/site/components/Dropdown/manifest.js +1 -1
  21. package/dist/site/components/GoogleMap/component.js +3 -3
  22. package/dist/site/components/HTMLComponent/component.js +2 -2
  23. package/dist/site/components/HeadingTextBlock/component.js +1 -1
  24. package/dist/site/components/HeadingTextBlock/manifest.js +1 -1
  25. package/dist/site/components/HipaaIcon/component.js +2 -2
  26. package/dist/site/components/HipaaIcon/manifest.js +1 -1
  27. package/dist/site/components/Image3/component.js +2 -2
  28. package/dist/site/components/ImageReveal/component.js +2 -2
  29. package/dist/site/components/ImageReveal/manifest.js +1 -1
  30. package/dist/site/components/Line/component.js +1 -1
  31. package/dist/site/components/LinkBar/component.js +2 -2
  32. package/dist/site/components/LinkBar/manifest.js +1 -1
  33. package/dist/site/components/Logo/component.js +1 -1
  34. package/dist/site/components/Logo/manifest.js +1 -1
  35. package/dist/site/components/Logo/sdk.js +1 -1
  36. package/dist/site/components/Lottie/component.js +3 -3
  37. package/dist/site/components/Lottie/manifest.js +1 -1
  38. package/dist/site/components/MarkdownBlock/component.js +2 -2
  39. package/dist/site/components/MarkdownBlock/manifest.js +1 -1
  40. package/dist/site/components/Menu/component.js +3 -3
  41. package/dist/site/components/Menu/manifest.js +1 -1
  42. package/dist/site/components/MultiStateBox/component.js +1 -1
  43. package/dist/site/components/MultiStateBox/manifest.js +1 -1
  44. package/dist/site/components/ProgressBar/component.js +1 -1
  45. package/dist/site/components/ProgressBar/manifest.js +1 -1
  46. package/dist/site/components/ProgressBar/sdk.js +1 -1
  47. package/dist/site/components/RadioButtons/component.js +1 -1
  48. package/dist/site/components/RadioButtons/manifest.js +1 -1
  49. package/dist/site/components/Repeater/component.js +2 -2
  50. package/dist/site/components/Repeater/manifest.js +1 -1
  51. package/dist/site/components/ShareButtons/component.js +2 -2
  52. package/dist/site/components/ShareButtons/manifest.js +1 -1
  53. package/dist/site/components/Slideshow/component.js +1 -1
  54. package/dist/site/components/Tabs/component.js +1 -1
  55. package/dist/site/components/Tabs/manifest.js +1 -1
  56. package/dist/site/components/TextBox/component.js +1 -1
  57. package/dist/site/components/TextBox/manifest.js +1 -1
  58. package/dist/site/components/TextEffects3d/component.js +1 -1
  59. package/dist/site/components/TextEffects3d/manifest.js +1 -1
  60. package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
  61. package/dist/site/components/TextEffectsBauhaus/manifest.js +1 -1
  62. package/dist/site/components/TextEffectsGlass/component.js +1 -1
  63. package/dist/site/components/TextEffectsGlass/manifest.js +1 -1
  64. package/dist/site/components/TextEffectsGlitch/component.js +1 -1
  65. package/dist/site/components/TextEffectsGlitch/manifest.js +1 -1
  66. package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
  67. package/dist/site/components/TextEffectsLetterPress/manifest.js +1 -1
  68. package/dist/site/components/TextEffectsMatrix/component.js +1 -1
  69. package/dist/site/components/TextEffectsMatrix/manifest.js +1 -1
  70. package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
  71. package/dist/site/components/TextEffectsNeonSign/manifest.js +1 -1
  72. package/dist/site/components/TextEffectsNoisy/component.js +1 -1
  73. package/dist/site/components/TextEffectsNoisy/manifest.js +1 -1
  74. package/dist/site/components/TextEffectsOutlineOut/component.js +2 -2
  75. package/dist/site/components/TextEffectsOutlineOut/manifest.js +1 -1
  76. package/dist/site/components/TextEffectsRetro/component.js +1 -1
  77. package/dist/site/components/TextEffectsRetro/manifest.js +1 -1
  78. package/dist/site/components/TextEffectsShook/component.js +1 -1
  79. package/dist/site/components/TextEffectsShook/manifest.js +1 -1
  80. package/dist/site/components/TextEffectsSticker/component.js +1 -1
  81. package/dist/site/components/TextEffectsSticker/manifest.js +2 -2
  82. package/dist/site/components/TextEffectsStriped/component.js +1 -1
  83. package/dist/site/components/TextEffectsStriped/manifest.js +1 -1
  84. package/dist/site/components/TextInput/component.js +2 -2
  85. package/dist/site/components/TextInput/manifest.js +1 -1
  86. package/dist/site/components/TextMarquee/component.js +1 -1
  87. package/dist/site/components/TimePicker/component.js +2 -2
  88. package/dist/site/components/TimePicker/manifest.js +1 -1
  89. package/dist/site/components/TransparentVideo/component.js +2 -2
  90. package/dist/site/components/VideoScrub/VideoScrub.types.d.ts +28 -0
  91. package/dist/site/components/VideoScrub/component.js +295 -29
  92. package/dist/site/components/VideoScrub/constants.d.ts +5 -0
  93. package/dist/site/components/VideoScrub/css.css +21 -1
  94. package/dist/site/components/VideoScrub/hooks/useTimeframes.d.ts +23 -0
  95. package/dist/site/components/VideoScrub/manifest.js +102 -6
  96. package/dist/site/components/VideoScrub/timeframes/index.d.ts +1 -1
  97. package/dist/site/components/VideoScrub/timeframes/types.d.ts +1 -1
  98. package/dist/site/components/VideoScrub/timeframes/useActiveTimeframeIndex.d.ts +2 -0
  99. package/dist/site/components/chunks/AnimatedIcon.js +1 -1
  100. package/dist/site/components/chunks/Button.js +2 -2
  101. package/dist/site/components/chunks/Image.js +1 -1
  102. package/dist/site/components/chunks/Link.js +1 -1
  103. package/dist/site/components/chunks/Patterns.js +1 -1
  104. package/dist/site/components/chunks/ResponsiveBox.js +1 -1
  105. package/dist/site/components/chunks/TextEffectsShared.js +2 -2
  106. package/dist/site/components/chunks/a11y.js +4 -4
  107. package/dist/site/components/chunks/constants10.js +20 -65
  108. package/dist/site/components/chunks/constants11.js +12 -14
  109. package/dist/site/components/chunks/constants12.js +9 -9
  110. package/dist/site/components/chunks/constants13.js +8 -10
  111. package/dist/site/components/chunks/constants14.js +13 -9
  112. package/dist/site/components/chunks/constants15.js +17 -14
  113. package/dist/site/components/chunks/constants16.js +12 -17
  114. package/dist/site/components/chunks/constants17.js +13 -11
  115. package/dist/site/components/chunks/constants18.js +96 -21
  116. package/dist/site/components/chunks/constants19.js +50 -92
  117. package/dist/site/components/chunks/constants2.js +128 -34
  118. package/dist/site/components/chunks/constants20.js +50 -54
  119. package/dist/site/components/chunks/constants21.js +52 -49
  120. package/dist/site/components/chunks/constants22.js +310 -43
  121. package/dist/site/components/chunks/constants23.js +65 -310
  122. package/dist/site/components/chunks/constants24.js +99 -70
  123. package/dist/site/components/chunks/constants25.js +30 -101
  124. package/dist/site/components/chunks/constants26.js +17 -35
  125. package/dist/site/components/chunks/constants27.js +447 -16
  126. package/dist/site/components/chunks/constants28.js +29 -441
  127. package/dist/site/components/chunks/constants29.js +78 -26
  128. package/dist/site/components/chunks/constants3.js +84 -118
  129. package/dist/site/components/chunks/constants30.js +15 -85
  130. package/dist/site/components/chunks/constants31.js +42 -11
  131. package/dist/site/components/chunks/constants32.js +45 -41
  132. package/dist/site/components/chunks/constants33.js +24 -49
  133. package/dist/site/components/chunks/constants34.js +56 -25
  134. package/dist/site/components/chunks/constants35.js +13 -58
  135. package/dist/site/components/chunks/constants36.js +206 -14
  136. package/dist/site/components/chunks/constants37.js +153 -182
  137. package/dist/site/components/chunks/constants38.js +49 -162
  138. package/dist/site/components/chunks/constants39.js +102 -51
  139. package/dist/site/components/chunks/constants4.js +13 -88
  140. package/dist/site/components/chunks/constants40.js +39 -69
  141. package/dist/site/components/chunks/constants41.js +79 -72
  142. package/dist/site/components/chunks/constants42.js +77 -83
  143. package/dist/site/components/chunks/constants43.js +56 -75
  144. package/dist/site/components/chunks/constants5.js +19 -10
  145. package/dist/site/components/chunks/constants6.js +14 -14
  146. package/dist/site/components/chunks/constants7.js +10 -11
  147. package/dist/site/components/chunks/constants8.js +14 -14
  148. package/dist/site/components/chunks/constants9.js +65 -22
  149. package/dist/site/components/chunks/customElementInit.js +1 -1
  150. package/dist/site/components/chunks/index4.js +3 -2133
  151. package/dist/site/components/chunks/index5.js +2080 -1414
  152. package/dist/site/components/chunks/index6.js +1467 -3
  153. package/dist/site/components/chunks/manifestBase.js +1 -1
  154. package/dist/site/components/chunks/parseHtml.js +1 -1
  155. package/dist/site/components/chunks/parseSvg.js +1 -1
  156. package/dist/site/components/chunks/types.js +61 -0
  157. package/dist/site/components/chunks/useConsentPolicyProps.js +2 -2
  158. package/dist/site/components/chunks/utils2.js +1 -1
  159. package/dist/site/components/extensions.js +1 -1
  160. package/package.json +2 -2
  161. package/dist/site/components/chunks/constants44.js +0 -72
@@ -1,64 +1,19 @@
1
- const presets = {
2
- horizontal: "horizontal",
3
- vertical: "vertical"
4
- };
5
- const manifestClasses = {
6
- root: "heading-text-block",
7
- heading: "heading-text-block-heading",
8
- title: "heading-text-block-title",
9
- subtitle: "heading-text-block-subtitle",
10
- caption: "heading-text-block-caption"
11
- };
12
- const defaultValues = {
13
- headingTag: "h1",
14
- heading: "",
15
- title: "",
16
- subtitle: "",
17
- caption: "",
18
- partsRowGap: "12px",
19
- partsColumnGap: "12px"
20
- };
1
+ const ARIA_LABEL_NAMESPACE = "ariaLabels";
2
+ const BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT = "boxContainerMinHeightFix";
3
+ const BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT = "boxContainerMinHeightFixViewer";
21
4
  const DisplayNames = {
22
- root: {
23
- elementDisplayName: "Heading Text Block",
24
- data: {
25
- headingTag: {
26
- displayName: "Heading Tag",
27
- options: {
28
- h1: "H1",
29
- h2: "H2",
30
- h3: "H3",
31
- h4: "H4",
32
- h5: "H5",
33
- h6: "H6"
34
- }
35
- },
36
- heading: "Heading",
37
- title: "Title",
38
- subtitle: "Subtitle",
39
- caption: "Caption"
40
- },
41
- elements: {
42
- heading: "Heading",
43
- title: "Title",
44
- subtitle: "Subtitle",
45
- caption: "Caption"
46
- },
47
- displayGroups: {
48
- partsSpacing: "Parts Spacing"
49
- },
50
- presets: {
51
- horizontal: "Row",
52
- vertical: "Stacked"
53
- },
54
- customActions: {
55
- layout: "Layout"
56
- }
5
+ data: {
6
+ onClick: "On Click",
7
+ onDblClick: "On Double Click",
8
+ onMouseIn: "On Mouse In",
9
+ onMouseOut: "On Mouse Out",
10
+ onFocus: "On Focus",
11
+ onBlur: "On Blur"
57
12
  }
58
13
  };
59
14
  export {
15
+ ARIA_LABEL_NAMESPACE as A,
16
+ BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT as B,
60
17
  DisplayNames as D,
61
- defaultValues as d,
62
- manifestClasses as m,
63
- presets as p
18
+ BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT as a
64
19
  };
@@ -1,19 +1,211 @@
1
- const ARIA_LABEL_NAMESPACE = "ariaLabels";
2
- const BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT = "boxContainerMinHeightFix";
3
- const BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT = "boxContainerMinHeightFixViewer";
1
+ const DesignStates = {
2
+ root: {
3
+ hover: { displayName: "Hover", className: "dropdown--hover" },
4
+ disabled: { displayName: "Disabled", className: "dropdown--disabled" }
5
+ },
6
+ input: {
7
+ hover: { displayName: "Hover", className: "dropdown__input--hover" },
8
+ focus: { displayName: "Focus", className: "dropdown__input--focus" },
9
+ disabled: {
10
+ displayName: "Disabled",
11
+ className: "dropdown__input--disabled"
12
+ }
13
+ },
14
+ trigger: {
15
+ hover: { displayName: "Hover", className: "dropdown__trigger--hover" },
16
+ selected: {
17
+ displayName: "Selected",
18
+ className: "dropdown__trigger--selected"
19
+ }
20
+ },
21
+ clearButton: {
22
+ hover: { displayName: "Hover", className: "dropdown__clear--hover" },
23
+ selected: {
24
+ displayName: "Selected",
25
+ className: "dropdown__clear--selected"
26
+ }
27
+ },
28
+ option: {
29
+ hover: { displayName: "Hover", className: "dropdown__option--hover" },
30
+ selected: {
31
+ displayName: "Selected",
32
+ className: "dropdown__option--selected"
33
+ }
34
+ },
35
+ chip: {
36
+ hover: { displayName: "Hover", className: "dropdown__chip--hover" },
37
+ selected: {
38
+ displayName: "Selected",
39
+ className: "dropdown__chip--selected"
40
+ }
41
+ }
42
+ };
43
+ const FunctionalStateKeys = {
44
+ previewList: "previewList",
45
+ previewChips: "previewChips"
46
+ };
4
47
  const DisplayNames = {
5
- data: {
6
- onClick: "On Click",
7
- onDblClick: "On Double Click",
8
- onMouseIn: "On Mouse In",
9
- onMouseOut: "On Mouse Out",
10
- onFocus: "On Focus",
11
- onBlur: "On Blur"
48
+ root: {
49
+ elementDisplayName: "Dropdown",
50
+ data: {
51
+ options: "Options",
52
+ optionLabel: "Label",
53
+ optionValue: "Value",
54
+ value: "Selected value",
55
+ values: "Selected values",
56
+ defaultValue: "Default value",
57
+ defaultValues: "Default values",
58
+ inputValue: "Search query",
59
+ open: "Open",
60
+ isDisabled: "Disabled",
61
+ placeholder: "Placeholder",
62
+ searchable: "Allow search",
63
+ multiple: "Allow multiple selection",
64
+ clearable: "Show clear button",
65
+ autoHighlight: "Highlight first match",
66
+ openOnInputClick: "Open list on click",
67
+ inline: "Show options inline",
68
+ grid: "Show options in a grid",
69
+ columns: "Columns",
70
+ limit: "Max visible options",
71
+ label: "Label",
72
+ required: "Required",
73
+ readOnly: "Read only",
74
+ description: "Helper text",
75
+ triggerMode: {
76
+ displayName: "Apply filter",
77
+ options: {
78
+ onSelection: "On selection",
79
+ onApply: "On button click"
80
+ }
81
+ },
82
+ applyButtonLabel: "Apply button text"
83
+ },
84
+ cssCustomProperties: {
85
+ width: "Width",
86
+ maxWidth: "Max width",
87
+ backgroundColor: "Background",
88
+ borderColor: "Border color",
89
+ borderWidth: "Border width",
90
+ paddingTop: "Padding top",
91
+ paddingBottom: "Padding bottom",
92
+ paddingInlineStart: "Padding start",
93
+ paddingInlineEnd: "Padding end",
94
+ gap: "Spacing",
95
+ boxShadow: "Shadow",
96
+ textAlign: "Value alignment",
97
+ font: "Value font",
98
+ textColor: "Value color",
99
+ labelFont: "Label font",
100
+ labelColor: "Label color",
101
+ helperFont: "Helper text font",
102
+ helperColor: "Helper text color",
103
+ optionTextColor: "Option text color",
104
+ optionHoverBackgroundColor: "Option hover background",
105
+ placeholderColor: "Placeholder color",
106
+ chipBackgroundColor: "Chip background",
107
+ chipTextColor: "Chip text color"
108
+ },
109
+ elements: {
110
+ label: "Label",
111
+ input: "Input",
112
+ trigger: "Button",
113
+ clearButton: "Clear button",
114
+ list: "List",
115
+ option: "Option",
116
+ chip: "Chip"
117
+ },
118
+ displayGroups: {
119
+ optionsGroup: "Manage options",
120
+ sizeGroup: "Size",
121
+ backgroundGroup: "Background",
122
+ cornersGroup: "Corner radius",
123
+ paddingGroup: "Padding"
124
+ }
12
125
  }
13
126
  };
127
+ const defaultValues = {
128
+ placeholder: "Select a value",
129
+ inputValue: "",
130
+ open: false,
131
+ isDisabled: false,
132
+ searchable: false,
133
+ multiple: false,
134
+ clearable: false,
135
+ autoHighlight: false,
136
+ openOnInputClick: true,
137
+ inline: false,
138
+ grid: false,
139
+ columns: 2,
140
+ limit: -1,
141
+ label: "",
142
+ required: false,
143
+ readOnly: false,
144
+ name: "",
145
+ description: "",
146
+ triggerMode: "onSelection",
147
+ applyButtonLabel: "Apply",
148
+ noResultsText: "No results"
149
+ };
150
+ var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
151
+ TriggerModeValues2["OnSelection"] = "onSelection";
152
+ TriggerModeValues2["OnApply"] = "onApply";
153
+ return TriggerModeValues2;
154
+ })(TriggerModeValues || {});
155
+ const ALL_VALUE = "";
156
+ const TestIds = {
157
+ root: "dropdown-root",
158
+ label: "dropdown-label",
159
+ requiredIndicator: "dropdown-required-indicator",
160
+ trigger: "dropdown-trigger",
161
+ listbox: "dropdown-listbox",
162
+ clear: "dropdown-clear",
163
+ applyButton: "dropdown-apply-button",
164
+ description: "dropdown-description",
165
+ errorMessage: "dropdown-error-message"
166
+ };
167
+ const selectors = {
168
+ root: "dropdown",
169
+ label: "dropdown-label",
170
+ input: "dropdown-input",
171
+ trigger: "dropdown-trigger",
172
+ clear: "dropdown-clear",
173
+ list: "dropdown-list",
174
+ option: "dropdown-option",
175
+ chip: "dropdown-chip"
176
+ };
177
+ const semanticClassNames = {
178
+ root: "dropdown",
179
+ label: "dropdown__label",
180
+ requiredIndicator: "dropdown__required-indicator",
181
+ input: "dropdown__input",
182
+ trigger: "dropdown__trigger",
183
+ clear: "dropdown__clear",
184
+ listbox: "dropdown__listbox",
185
+ option: "dropdown__option",
186
+ chips: "dropdown__chips",
187
+ chip: "dropdown__chip",
188
+ applyButton: "dropdown__apply-button",
189
+ errorMessage: "dropdown__error-message"
190
+ };
191
+ const ARIA_LABEL_NAMESPACE = "ariaLabels";
192
+ const AriaLabels = {
193
+ root: { key: "Dropdown_AriaLabel", default: "Dropdown" },
194
+ clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
195
+ removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
196
+ };
197
+ const VALUE_MISSING_MESSAGE = "Please select an option.";
14
198
  export {
15
- ARIA_LABEL_NAMESPACE as A,
16
- BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT as B,
17
- DisplayNames as D,
18
- BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT as a
199
+ ALL_VALUE as A,
200
+ DesignStates as D,
201
+ FunctionalStateKeys as F,
202
+ TestIds as T,
203
+ VALUE_MISSING_MESSAGE as V,
204
+ semanticClassNames as a,
205
+ TriggerModeValues as b,
206
+ ARIA_LABEL_NAMESPACE as c,
207
+ defaultValues as d,
208
+ AriaLabels as e,
209
+ DisplayNames as f,
210
+ selectors as s
19
211
  };
@@ -1,211 +1,182 @@
1
- const DesignStates = {
2
- root: {
3
- hover: { displayName: "Hover", className: "dropdown--hover" },
4
- disabled: { displayName: "Disabled", className: "dropdown--disabled" }
5
- },
6
- input: {
7
- hover: { displayName: "Hover", className: "dropdown__input--hover" },
8
- focus: { displayName: "Focus", className: "dropdown__input--focus" },
9
- disabled: {
10
- displayName: "Disabled",
11
- className: "dropdown__input--disabled"
12
- }
13
- },
14
- trigger: {
15
- hover: { displayName: "Hover", className: "dropdown__trigger--hover" },
16
- selected: {
17
- displayName: "Selected",
18
- className: "dropdown__trigger--selected"
19
- }
20
- },
21
- clearButton: {
22
- hover: { displayName: "Hover", className: "dropdown__clear--hover" },
23
- selected: {
24
- displayName: "Selected",
25
- className: "dropdown__clear--selected"
26
- }
27
- },
28
- option: {
29
- hover: { displayName: "Hover", className: "dropdown__option--hover" },
30
- selected: {
31
- displayName: "Selected",
32
- className: "dropdown__option--selected"
33
- }
34
- },
35
- chip: {
36
- hover: { displayName: "Hover", className: "dropdown__chip--hover" },
37
- selected: {
38
- displayName: "Selected",
39
- className: "dropdown__chip--selected"
40
- }
41
- }
42
- };
43
- const FunctionalStateKeys = {
44
- previewList: "previewList",
45
- previewChips: "previewChips"
46
- };
47
1
  const DisplayNames = {
48
2
  root: {
49
- elementDisplayName: "Dropdown",
3
+ elementDisplayName: "Date Picker",
50
4
  data: {
51
- options: "Options",
52
- optionLabel: "Label",
53
- optionValue: "Value",
54
- value: "Selected value",
55
- values: "Selected values",
56
- defaultValue: "Default value",
57
- defaultValues: "Default values",
58
- inputValue: "Search query",
59
- open: "Open",
60
- isDisabled: "Disabled",
61
- placeholder: "Placeholder",
62
- searchable: "Allow search",
63
- multiple: "Allow multiple selection",
64
- clearable: "Show clear button",
65
- autoHighlight: "Highlight first match",
66
- openOnInputClick: "Open list on click",
67
- inline: "Show options inline",
68
- grid: "Show options in a grid",
69
- columns: "Columns",
70
- limit: "Max visible options",
71
- label: "Label",
72
- required: "Required",
73
- readOnly: "Read only",
74
- description: "Helper text",
75
- triggerMode: {
76
- displayName: "Apply filter",
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",
77
19
  options: {
78
- onSelection: "On selection",
79
- onApply: "On button click"
20
+ day: "Date only",
21
+ hour: "Date and hour",
22
+ minute: "Date and time"
80
23
  }
81
24
  },
82
- applyButtonLabel: "Apply button 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"
83
39
  },
84
- cssCustomProperties: {
85
- width: "Width",
86
- maxWidth: "Max width",
87
- backgroundColor: "Background",
88
- borderColor: "Border color",
89
- borderWidth: "Border width",
90
- paddingTop: "Padding top",
91
- paddingBottom: "Padding bottom",
92
- paddingInlineStart: "Padding start",
93
- paddingInlineEnd: "Padding end",
94
- gap: "Spacing",
95
- boxShadow: "Shadow",
96
- textAlign: "Value alignment",
97
- font: "Value font",
98
- textColor: "Value color",
99
- labelFont: "Label font",
100
- labelColor: "Label color",
101
- helperFont: "Helper text font",
102
- helperColor: "Helper text color",
103
- optionTextColor: "Option text color",
104
- optionHoverBackgroundColor: "Option hover background",
105
- placeholderColor: "Placeholder color",
106
- chipBackgroundColor: "Chip background",
107
- chipTextColor: "Chip text color"
40
+ designStates: {
41
+ hover: "Hover",
42
+ focus: "Focus",
43
+ disabled: "Disabled",
44
+ selected: "Selected"
108
45
  },
109
46
  elements: {
110
47
  label: "Label",
111
- input: "Input",
112
- trigger: "Button",
113
- clearButton: "Clear button",
114
- list: "List",
115
- option: "Option",
116
- chip: "Chip"
117
- },
118
- displayGroups: {
119
- optionsGroup: "Manage options",
120
- sizeGroup: "Size",
121
- backgroundGroup: "Background",
122
- cornersGroup: "Corner radius",
123
- paddingGroup: "Padding"
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"
124
55
  }
125
56
  }
126
57
  };
127
58
  const defaultValues = {
128
- placeholder: "Select a value",
129
- inputValue: "",
130
- open: false,
131
- isDisabled: false,
132
- searchable: false,
133
- multiple: false,
134
- clearable: false,
135
- autoHighlight: false,
136
- openOnInputClick: true,
137
- inline: false,
138
- grid: false,
139
- columns: 2,
140
- limit: -1,
59
+ selectionMode: "single",
60
+ granularity: "day",
61
+ tooltip: "",
141
62
  label: "",
63
+ description: "",
64
+ allowPastDates: true,
65
+ allowFutureDates: true,
142
66
  required: false,
143
67
  readOnly: false,
144
- name: "",
145
- description: "",
146
- triggerMode: "onSelection",
147
- applyButtonLabel: "Apply",
148
- noResultsText: "No results"
149
- };
150
- var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
151
- TriggerModeValues2["OnSelection"] = "onSelection";
152
- TriggerModeValues2["OnApply"] = "onApply";
153
- return TriggerModeValues2;
154
- })(TriggerModeValues || {});
155
- const ALL_VALUE = "";
156
- const TestIds = {
157
- root: "dropdown-root",
158
- label: "dropdown-label",
159
- requiredIndicator: "dropdown-required-indicator",
160
- trigger: "dropdown-trigger",
161
- listbox: "dropdown-listbox",
162
- clear: "dropdown-clear",
163
- applyButton: "dropdown-apply-button",
164
- description: "dropdown-description",
165
- errorMessage: "dropdown-error-message"
68
+ disabled: false,
69
+ clearable: false
166
70
  };
167
- const selectors = {
168
- root: "dropdown",
169
- label: "dropdown-label",
170
- input: "dropdown-input",
171
- trigger: "dropdown-trigger",
172
- clear: "dropdown-clear",
173
- list: "dropdown-list",
174
- option: "dropdown-option",
175
- chip: "dropdown-chip"
176
- };
177
- const semanticClassNames = {
178
- root: "dropdown",
179
- label: "dropdown__label",
180
- requiredIndicator: "dropdown__required-indicator",
181
- input: "dropdown__input",
182
- trigger: "dropdown__trigger",
183
- clear: "dropdown__clear",
184
- listbox: "dropdown__listbox",
185
- option: "dropdown__option",
186
- chips: "dropdown__chips",
187
- chip: "dropdown__chip",
188
- applyButton: "dropdown__apply-button",
189
- errorMessage: "dropdown__error-message"
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
+ }
190
135
  };
136
+ const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
137
+ const EMPTY_VALUE = "";
191
138
  const ARIA_LABEL_NAMESPACE = "ariaLabels";
192
139
  const AriaLabels = {
193
- root: { key: "Dropdown_AriaLabel", default: "Dropdown" },
194
- clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
195
- removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
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" }
143
+ };
144
+ const TestIds = {
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"
155
+ };
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"
196
167
  };
197
- const VALUE_MISSING_MESSAGE = "Please select an option.";
168
+ const VALUE_MISSING_MESSAGE = "This field is required";
198
169
  export {
199
- ALL_VALUE as A,
170
+ ARIA_LABEL_NAMESPACE as A,
200
171
  DesignStates as D,
201
- FunctionalStateKeys as F,
172
+ EMPTY_VALUE as E,
173
+ GranularityValues as G,
174
+ PREVIEW_CALENDAR_OPEN as P,
175
+ SelectionModeValues as S,
202
176
  TestIds as T,
203
177
  VALUE_MISSING_MESSAGE as V,
204
- semanticClassNames as a,
205
- TriggerModeValues as b,
206
- ARIA_LABEL_NAMESPACE as c,
178
+ AriaLabels as a,
179
+ DisplayNames as b,
207
180
  defaultValues as d,
208
- AriaLabels as e,
209
- DisplayNames as f,
210
181
  selectors as s
211
182
  };