@zendeskgarden/react-dropdowns 9.0.0 → 9.1.1

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 (62) hide show
  1. package/LICENSE.md +176 -0
  2. package/dist/esm/elements/combobox/Combobox.js +45 -45
  3. package/dist/esm/elements/combobox/Listbox.js +6 -6
  4. package/dist/esm/elements/combobox/OptGroup.js +3 -3
  5. package/dist/esm/elements/combobox/Option.js +2 -2
  6. package/dist/esm/elements/combobox/OptionMeta.js +1 -1
  7. package/dist/esm/elements/combobox/utils.js +1 -1
  8. package/dist/esm/elements/menu/Item.js +2 -2
  9. package/dist/esm/elements/menu/ItemGroup.js +3 -3
  10. package/dist/esm/elements/menu/ItemMeta.js +1 -1
  11. package/dist/esm/elements/menu/MenuList.js +7 -7
  12. package/dist/esm/elements/menu/utils.js +1 -1
  13. package/dist/esm/views/combobox/StyledCombobox.js +3 -3
  14. package/dist/esm/views/combobox/StyledContainer.js +1 -1
  15. package/dist/esm/views/combobox/StyledField.js +1 -1
  16. package/dist/esm/views/combobox/StyledFloatingListbox.js +4 -4
  17. package/dist/esm/views/combobox/StyledHint.js +1 -1
  18. package/dist/esm/views/combobox/StyledInput.js +4 -4
  19. package/dist/esm/views/combobox/StyledInputGroup.js +1 -1
  20. package/dist/esm/views/combobox/StyledInputIcon.js +1 -1
  21. package/dist/esm/views/combobox/StyledLabel.js +1 -1
  22. package/dist/esm/views/combobox/StyledListbox.js +3 -3
  23. package/dist/esm/views/combobox/StyledListboxSeparator.js +1 -1
  24. package/dist/esm/views/combobox/StyledMessage.js +1 -1
  25. package/dist/esm/views/combobox/StyledOptGroup.js +1 -1
  26. package/dist/esm/views/combobox/StyledOption.js +4 -4
  27. package/dist/esm/views/combobox/StyledOptionContent.js +1 -1
  28. package/dist/esm/views/combobox/StyledOptionIcon.js +1 -1
  29. package/dist/esm/views/combobox/StyledOptionMeta.js +3 -3
  30. package/dist/esm/views/combobox/StyledOptionTypeIcon.js +1 -1
  31. package/dist/esm/views/combobox/StyledTag.js +1 -1
  32. package/dist/esm/views/combobox/StyledTagsButton.js +1 -1
  33. package/dist/esm/views/combobox/StyledTrigger.js +21 -21
  34. package/dist/esm/views/combobox/StyledValue.js +5 -5
  35. package/dist/esm/views/menu/StyledFloatingMenu.js +1 -1
  36. package/dist/esm/views/menu/StyledItem.js +1 -1
  37. package/dist/esm/views/menu/StyledItemContent.js +1 -1
  38. package/dist/esm/views/menu/StyledItemGroup.js +1 -1
  39. package/dist/esm/views/menu/StyledItemIcon.js +1 -1
  40. package/dist/esm/views/menu/StyledItemMeta.js +1 -1
  41. package/dist/esm/views/menu/StyledItemTypeIcon.js +1 -1
  42. package/dist/esm/views/menu/StyledMenu.js +2 -2
  43. package/dist/esm/views/menu/StyledSeparator.js +1 -1
  44. package/dist/index.cjs.js +143 -143
  45. package/dist/typings/elements/combobox/TagAvatar.d.ts +1 -1
  46. package/dist/typings/views/combobox/StyledCombobox.d.ts +1 -1
  47. package/dist/typings/views/combobox/StyledFloatingListbox.d.ts +3 -3
  48. package/dist/typings/views/combobox/StyledInput.d.ts +4 -4
  49. package/dist/typings/views/combobox/StyledInputIcon.d.ts +1 -1
  50. package/dist/typings/views/combobox/StyledListbox.d.ts +3 -3
  51. package/dist/typings/views/combobox/StyledOptGroup.d.ts +1 -1
  52. package/dist/typings/views/combobox/StyledOption.d.ts +2 -2
  53. package/dist/typings/views/combobox/StyledOptionIcon.d.ts +1 -1
  54. package/dist/typings/views/combobox/StyledOptionMeta.d.ts +1 -1
  55. package/dist/typings/views/combobox/StyledOptionTypeIcon.d.ts +1 -1
  56. package/dist/typings/views/combobox/StyledTagsButton.d.ts +1 -1
  57. package/dist/typings/views/combobox/StyledTrigger.d.ts +9 -9
  58. package/dist/typings/views/combobox/StyledValue.d.ts +7 -7
  59. package/dist/typings/views/menu/StyledItemIcon.d.ts +1 -1
  60. package/dist/typings/views/menu/StyledItemTypeIcon.d.ts +1 -1
  61. package/dist/typings/views/menu/StyledMenu.d.ts +1 -1
  62. package/package.json +10 -9
package/LICENSE.md ADDED
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -163,46 +163,31 @@ const Combobox = forwardRef((_ref, ref) => {
163
163
  const _listboxAriaLabel = useText(Combobox, {
164
164
  listboxAriaLabel
165
165
  }, 'listboxAriaLabel', 'Options');
166
- const triggerProps = {
167
- isAutocomplete,
168
- isBare,
169
- isCompact,
170
- isEditable,
171
- isLabelHovered,
172
- isMultiselectable,
173
- maxHeight,
174
- focusInset,
175
- validation,
176
- ...getTriggerProps({
177
- onFocus: () => {
178
- if (!isDisabled) {
179
- if (isEditable) {
180
- setIsInputHidden(false);
181
- }
182
- if (isMultiselectable) {
183
- setIsTagGroupExpanded(true);
184
- }
166
+ const triggerProps = getTriggerProps({
167
+ onFocus: () => {
168
+ if (!isDisabled) {
169
+ if (isEditable) {
170
+ setIsInputHidden(false);
185
171
  }
186
- },
187
- onBlur: event => {
188
- if (event.relatedTarget === null || !triggerRef.current?.contains(event.relatedTarget)) {
189
- if (isEditable) {
190
- setIsInputHidden(true);
191
- }
192
- if (isMultiselectable) {
193
- setIsTagGroupExpanded(false);
194
- }
172
+ if (isMultiselectable) {
173
+ setIsTagGroupExpanded(true);
195
174
  }
196
175
  }
197
- })
198
- };
176
+ },
177
+ onBlur: event => {
178
+ if (event.relatedTarget === null || !triggerRef.current?.contains(event.relatedTarget)) {
179
+ if (isEditable) {
180
+ setIsInputHidden(true);
181
+ }
182
+ if (isMultiselectable) {
183
+ setIsTagGroupExpanded(false);
184
+ }
185
+ }
186
+ }
187
+ });
199
188
  const inputProps = {
200
189
  'aria-invalid': validation === 'error' || validation === 'warning',
201
190
  hidden: isInputHidden,
202
- isBare,
203
- isCompact,
204
- isEditable,
205
- isMultiselectable,
206
191
  placeholder,
207
192
  ...getInputProps({
208
193
  ..._inputProps
@@ -238,11 +223,21 @@ const Combobox = forwardRef((_ref, ref) => {
238
223
  return React__default.createElement(ComboboxContext.Provider, {
239
224
  value: contextValue
240
225
  }, React__default.createElement(StyledCombobox, Object.assign({
241
- isCompact: isCompact,
226
+ $isCompact: isCompact,
242
227
  tabIndex: -1
243
228
  }, props, {
244
229
  ref: ref
245
- }), React__default.createElement(StyledTrigger, triggerProps, React__default.createElement(StyledContainer, null, !!startIcon && React__default.createElement(StyledInputIcon, {
230
+ }), React__default.createElement(StyledTrigger, Object.assign({
231
+ $isAutocomplete: isAutocomplete,
232
+ $isBare: isBare,
233
+ $isCompact: isCompact,
234
+ $isEditable: isEditable,
235
+ $isLabelHovered: isLabelHovered,
236
+ $isMultiselectable: isMultiselectable,
237
+ $maxHeight: maxHeight,
238
+ $focusInset: focusInset,
239
+ $validation: validation
240
+ }, triggerProps), React__default.createElement(StyledContainer, null, !!startIcon && React__default.createElement(StyledInputIcon, {
246
241
  $isLabelHovered: isLabelHovered,
247
242
  $isCompact: isCompact
248
243
  }, startIcon), React__default.createElement(StyledInputGroup, null, !!isMultiselectable && Array.isArray(selection) && React__default.createElement(TagGroup, {
@@ -254,7 +249,7 @@ const Combobox = forwardRef((_ref, ref) => {
254
249
  }, selection.length > maxTags && React__default.createElement(StyledTagsButton, {
255
250
  disabled: isDisabled,
256
251
  hidden: isTagGroupExpanded,
257
- isCompact: isCompact,
252
+ $isCompact: isCompact,
258
253
  tabIndex: -1,
259
254
  type: "button"
260
255
  }, (() => {
@@ -262,17 +257,22 @@ const Combobox = forwardRef((_ref, ref) => {
262
257
  return renderExpandTags ? renderExpandTags(value) : expandTags?.replace('{{value}}', value.toString());
263
258
  })())), React__default.createElement(StyledValue, {
264
259
  hidden: !isInputHidden,
265
- isAutocomplete: isAutocomplete,
266
- isBare: isBare,
267
- isCompact: isCompact,
268
- isDisabled: isDisabled,
269
- isEditable: isEditable,
270
- isMultiselectable: isMultiselectable,
271
- isPlaceholder: !(inputValue || renderValue)
260
+ $isAutocomplete: isAutocomplete,
261
+ $isBare: isBare,
262
+ $isCompact: isCompact,
263
+ $isDisabled: isDisabled,
264
+ $isEditable: isEditable,
265
+ $isMultiselectable: isMultiselectable,
266
+ $isPlaceholder: !(inputValue || renderValue)
272
267
  }, renderValue ? renderValue({
273
268
  selection,
274
269
  inputValue
275
- }) : inputValue || placeholder), React__default.createElement(StyledInput, inputProps)), !!(hasChevron || endIcon) && React__default.createElement(StyledInputIcon, {
270
+ }) : inputValue || placeholder), React__default.createElement(StyledInput, Object.assign({
271
+ $isBare: isBare,
272
+ $isCompact: isCompact,
273
+ $isEditable: isEditable,
274
+ $isMultiselectable: isMultiselectable
275
+ }, inputProps))), !!(hasChevron || endIcon) && React__default.createElement(StyledInputIcon, {
276
276
  $isCompact: isCompact,
277
277
  $isEnd: true,
278
278
  $isLabelHovered: isLabelHovered,
@@ -120,18 +120,18 @@ const Listbox = forwardRef((_ref, ref) => {
120
120
  children, update]);
121
121
  const Node = React__default.createElement(StyledFloatingListbox, {
122
122
  "data-garden-animate": isVisible ? 'true' : 'false',
123
- isHidden: !isExpanded,
124
- position: placement === 'bottom-start' ? 'bottom' : 'top',
123
+ $isHidden: !isExpanded,
124
+ $position: placement === 'bottom-start' ? 'bottom' : 'top',
125
125
  style: {
126
126
  transform,
127
127
  width
128
128
  },
129
- zIndex: zIndex,
129
+ $zIndex: zIndex,
130
130
  ref: floatingRef
131
131
  }, React__default.createElement(StyledListbox, Object.assign({
132
- isCompact: isCompact,
133
- maxHeight: maxHeight,
134
- minHeight: minHeight,
132
+ $isCompact: isCompact,
133
+ $maxHeight: maxHeight,
134
+ $minHeight: minHeight,
135
135
  onMouseDown: composeEventHandlers(onMouseDown, handleMouseDown),
136
136
  style: {
137
137
  height
@@ -63,7 +63,7 @@ const OptGroup = forwardRef((_ref, ref) => {
63
63
  'aria-label': groupAriaLabel || legend
64
64
  });
65
65
  return React__default.createElement(StyledOption, Object.assign({
66
- isCompact: isCompact,
66
+ $isCompact: isCompact,
67
67
  $type: "group",
68
68
  onMouseDown: composeEventHandlers(onMouseDown, handleMouseDown),
69
69
  role: "none"
@@ -71,13 +71,13 @@ const OptGroup = forwardRef((_ref, ref) => {
71
71
  ref: ref
72
72
  }), React__default.createElement(StyledOptionContent, null, !!(content || legend) && React__default.createElement(StyledOption, {
73
73
  as: "div",
74
- isCompact: isCompact,
74
+ $isCompact: isCompact,
75
75
  $type: "header"
76
76
  }, !!icon && React__default.createElement(StyledOptionTypeIcon, {
77
77
  $isCompact: isCompact,
78
78
  $type: "header"
79
79
  }, icon), content || legend), React__default.createElement(StyledOptGroup, Object.assign({
80
- isCompact: isCompact
80
+ $isCompact: isCompact
81
81
  }, optGroupProps), React__default.createElement(StyledListboxSeparator, {
82
82
  role: "none"
83
83
  }), children)));
@@ -108,8 +108,8 @@ const OptionComponent = forwardRef((_ref, ref) => {
108
108
  return React__default.createElement(OptionContext.Provider, {
109
109
  value: contextValue
110
110
  }, React__default.createElement(StyledOption, Object.assign({
111
- isActive: isActive,
112
- isCompact: isCompact,
111
+ $isActive: isActive,
112
+ $isCompact: isCompact,
113
113
  $type: type
114
114
  }, props, optionProps), React__default.createElement(StyledOptionTypeIcon, {
115
115
  $isCompact: isCompact,
@@ -43,7 +43,7 @@ const OptionMetaComponent = forwardRef((props, ref) => {
43
43
  isDisabled
44
44
  } = useOptionContext();
45
45
  return React__default.createElement(StyledOptionMeta, Object.assign({
46
- isDisabled: isDisabled
46
+ $isDisabled: isDisabled
47
47
  }, props, {
48
48
  ref: ref
49
49
  }));
@@ -17,7 +17,7 @@ const toOption = props => {
17
17
  };
18
18
  const toOptions = (children, optionTagProps) => Children.toArray(children).reduce((options, option) => {
19
19
  const retVal = options;
20
- if ( isValidElement(option)) {
20
+ if (isValidElement(option)) {
21
21
  if ('value' in option.props) {
22
22
  retVal.push(toOption(option.props));
23
23
  optionTagProps[option.props.value] = option.props.tagProps;
@@ -113,8 +113,8 @@ const ItemComponent = forwardRef((_ref, ref) => {
113
113
  value: contextValue
114
114
  }, React__default.createElement(StyledItem, Object.assign({
115
115
  $type: type,
116
- isCompact: isCompact,
117
- isActive: isActive
116
+ $isCompact: isCompact,
117
+ $isActive: isActive
118
118
  }, props, itemProps, {
119
119
  ref: mergeRefs([_itemRef, ref])
120
120
  }), React__default.createElement(StyledItemTypeIcon, {
@@ -67,20 +67,20 @@ const ItemGroup = forwardRef((_ref, ref) => {
67
67
  return React__default.createElement(ItemGroupContext.Provider, {
68
68
  value: contextValue
69
69
  }, React__default.createElement(StyledItem, Object.assign({
70
- isCompact: isCompact,
70
+ $isCompact: isCompact,
71
71
  $type: "group"
72
72
  }, props, {
73
73
  role: "none",
74
74
  ref: ref
75
75
  }), React__default.createElement(StyledItemContent, null, !!(content || legend) && React__default.createElement(StyledItem, {
76
76
  as: "div",
77
- isCompact: isCompact,
77
+ $isCompact: isCompact,
78
78
  $type: "header"
79
79
  }, !!icon && React__default.createElement(StyledItemTypeIcon, {
80
80
  $isCompact: isCompact,
81
81
  $type: "header"
82
82
  }, icon), content || legend), React__default.createElement(StyledItemGroup, Object.assign({
83
- isCompact: isCompact
83
+ $isCompact: isCompact
84
84
  }, groupProps), React__default.createElement(StyledSeparator, {
85
85
  role: "none"
86
86
  }), children))));
@@ -43,7 +43,7 @@ const ItemMetaComponent = forwardRef((props, ref) => {
43
43
  isDisabled
44
44
  } = useItemContext();
45
45
  return React__default.createElement(StyledItemMeta, Object.assign({
46
- isDisabled: isDisabled
46
+ $isDisabled: isDisabled
47
47
  }, props, {
48
48
  ref: ref
49
49
  }));
@@ -127,19 +127,19 @@ const MenuList = forwardRef((_ref, ref) => {
127
127
  children, update]);
128
128
  const Node = React__default.createElement(StyledFloatingMenu, {
129
129
  "data-garden-animate": isVisible,
130
- isHidden: !isExpanded || !isVisible ,
131
- position: getMenuPosition(placement),
132
- zIndex: zIndex,
130
+ $isHidden: !isExpanded || !isVisible ,
131
+ $position: getMenuPosition(placement),
132
+ $zIndex: zIndex,
133
133
  style: {
134
134
  transform
135
135
  },
136
136
  ref: floatingRef
137
137
  }, React__default.createElement(StyledMenu, Object.assign({
138
138
  "data-garden-animate-arrow": isVisible,
139
- arrowPosition: hasArrow ? getArrowPosition(theme, placement) : undefined,
140
- isCompact: isCompact,
141
- minHeight: minHeight,
142
- maxHeight: maxHeight,
139
+ $arrowPosition: hasArrow ? getArrowPosition(theme, placement) : undefined,
140
+ $isCompact: isCompact,
141
+ $minHeight: minHeight,
142
+ $maxHeight: maxHeight,
143
143
  style: {
144
144
  height
145
145
  }
@@ -30,7 +30,7 @@ const toItem = props => ({
30
30
  });
31
31
  const toItems = (children, type) => Children.toArray(children).reduce((items, item) => {
32
32
  const retVal = items;
33
- if ( isValidElement(item)) {
33
+ if (isValidElement(item)) {
34
34
  if ('value' in item.props) {
35
35
  retVal.push(toItem({
36
36
  ...item.props,
@@ -12,13 +12,13 @@ import { StyledMessage } from './StyledMessage.js';
12
12
 
13
13
  const COMPONENT_ID = 'dropdowns.combobox';
14
14
  const sizeStyles = props => {
15
- const minWidth = `${props.isCompact ? 100 : 144}px`;
16
- const marginTop = `${props.theme.space.base * (props.isCompact ? 1 : 2)}px`;
15
+ const minWidth = `${props.$isCompact ? 100 : 144}px`;
16
+ const marginTop = `${props.theme.space.base * (props.$isCompact ? 1 : 2)}px`;
17
17
  return css(["min-width:", ";", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", ";}"], minWidth, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, marginTop);
18
18
  };
19
19
  const StyledCombobox = styled.div.attrs({
20
20
  'data-garden-id': COMPONENT_ID,
21
- 'data-garden-version': '9.0.0'
21
+ 'data-garden-version': '9.1.1'
22
22
  }).withConfig({
23
23
  displayName: "StyledCombobox",
24
24
  componentId: "sc-13eybg8-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
10
10
  const COMPONENT_ID = 'dropdowns.combobox.container';
11
11
  const StyledContainer = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0'
13
+ 'data-garden-version': '9.1.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledContainer",
16
16
  componentId: "sc-14i9jid-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
10
10
  const COMPONENT_ID = 'dropdowns.combobox.field';
11
11
  const StyledField = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0'
13
+ 'data-garden-version': '9.1.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledField",
16
16
  componentId: "sc-zc57xl-0"
@@ -10,15 +10,15 @@ import { menuStyles, retrieveComponentStyles } from '@zendeskgarden/react-themin
10
10
  const COMPONENT_ID = 'dropdowns.combobox.floating';
11
11
  const StyledFloatingListbox = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0'
13
+ 'data-garden-version': '9.1.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledFloatingListbox",
16
16
  componentId: "sc-1cp6spf-0"
17
- })(["top:0;left:0;", ";", ";"], props => menuStyles(props.position, {
17
+ })(["top:0;left:0;", ";", ";"], props => menuStyles(props.$position, {
18
18
  theme: props.theme,
19
- hidden: props.isHidden,
19
+ hidden: props.$isHidden,
20
20
  animationModifier: '[data-garden-animate="true"]',
21
- zIndex: props.zIndex
21
+ zIndex: props.$zIndex
22
22
  }), props => retrieveComponentStyles(COMPONENT_ID, props));
23
23
 
24
24
  export { StyledFloatingListbox };
@@ -11,7 +11,7 @@ import { Field } from '@zendeskgarden/react-forms';
11
11
  const COMPONENT_ID = 'dropdowns.combobox.hint';
12
12
  const StyledHint = styled(Field.Hint).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0'
14
+ 'data-garden-version': '9.1.1'
15
15
  }).withConfig({
16
16
  displayName: "StyledHint",
17
17
  componentId: "sc-106qvqx-0"
@@ -20,10 +20,10 @@ const colorStyles = _ref => {
20
20
  return css(["background-color:inherit;color:inherit;&::placeholder{opacity:1;color:", ";}"], placeholderColor);
21
21
  };
22
22
  const getHeight = props => {
23
- if (props.isBare && !props.isMultiselectable) {
23
+ if (props.$isBare && !props.$isMultiselectable) {
24
24
  return props.theme.space.base * 5;
25
25
  }
26
- return props.theme.space.base * (props.isCompact ? 5 : 8);
26
+ return props.theme.space.base * (props.$isCompact ? 5 : 8);
27
27
  };
28
28
  const sizeStyles = props => {
29
29
  const height = props.theme.space.base * 5;
@@ -35,10 +35,10 @@ const sizeStyles = props => {
35
35
  };
36
36
  const StyledInput = styled.input.attrs({
37
37
  'data-garden-id': COMPONENT_ID,
38
- 'data-garden-version': '9.0.0'
38
+ 'data-garden-version': '9.1.1'
39
39
  }).withConfig({
40
40
  displayName: "StyledInput",
41
41
  componentId: "sc-1lkqdg-0"
42
- })(["flex-basis:0;flex-grow:1;border:none;padding:0;font-family:inherit;&:focus{outline:none;}", ";", ";&[hidden]{display:revert;", "}&[aria-hidden='true']{display:none;}", ";"], sizeStyles, colorStyles, props => props.isEditable && hideVisually(), props => retrieveComponentStyles(COMPONENT_ID, props));
42
+ })(["flex-basis:0;flex-grow:1;border:none;padding:0;font-family:inherit;&:focus{outline:none;}", ";", ";&[hidden]{display:revert;", "}&[aria-hidden='true']{display:none;}", ";"], sizeStyles, colorStyles, props => props.$isEditable && hideVisually(), props => retrieveComponentStyles(COMPONENT_ID, props));
43
43
 
44
44
  export { StyledInput, getHeight, sizeStyles };
@@ -14,7 +14,7 @@ const sizeStyles = props => {
14
14
  };
15
15
  const StyledInputGroup = styled.div.attrs({
16
16
  'data-garden-id': COMPONENT_ID,
17
- 'data-garden-version': '9.0.0'
17
+ 'data-garden-version': '9.1.1'
18
18
  }).withConfig({
19
19
  displayName: "StyledInputGroup",
20
20
  componentId: "sc-yx3q7u-0"
@@ -50,7 +50,7 @@ const sizeStyles = props => {
50
50
  };
51
51
  const StyledInputIcon = styled(StyledBaseIcon).attrs({
52
52
  'data-garden-id': COMPONENT_ID,
53
- 'data-garden-version': '9.0.0'
53
+ 'data-garden-version': '9.1.1'
54
54
  }).withConfig({
55
55
  displayName: "StyledInputIcon",
56
56
  componentId: "sc-gqbs1s-0"
@@ -11,7 +11,7 @@ import { Field } from '@zendeskgarden/react-forms';
11
11
  const COMPONENT_ID = 'dropdowns.combobox.label';
12
12
  const StyledLabel = styled(Field.Label).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0'
14
+ 'data-garden-version': '9.1.1'
15
15
  }).withConfig({
16
16
  displayName: "StyledLabel",
17
17
  componentId: "sc-az6now-0"
@@ -13,12 +13,12 @@ import { StyledListboxSeparator } from './StyledListboxSeparator.js';
13
13
  const COMPONENT_ID = 'dropdowns.combobox.listbox';
14
14
  const sizeStyles = props => {
15
15
  const padding = props.theme.space.base;
16
- const minHeight = props.minHeight === undefined ? `${getMinHeight(props) + padding * 2}px` : props.minHeight;
17
- return css(["min-height:", ";max-height:", ";&&&{padding-top:", "px;padding-bottom:", "px;}"], minHeight, props.maxHeight, padding, padding);
16
+ const $minHeight = props.$minHeight === undefined ? `${getMinHeight(props) + padding * 2}px` : props.$minHeight;
17
+ return css(["min-height:", ";max-height:", ";&&&{padding-top:", "px;padding-bottom:", "px;}"], $minHeight, props.$maxHeight, padding, padding);
18
18
  };
19
19
  const StyledListbox = styled.ul.attrs({
20
20
  'data-garden-id': COMPONENT_ID,
21
- 'data-garden-version': '9.0.0'
21
+ 'data-garden-version': '9.1.1'
22
22
  }).withConfig({
23
23
  displayName: "StyledListbox",
24
24
  componentId: "sc-1k13ba7-0"
@@ -25,7 +25,7 @@ const sizeStyles = props => {
25
25
  };
26
26
  const StyledListboxSeparator = styled.li.attrs({
27
27
  'data-garden-id': COMPONENT_ID,
28
- 'data-garden-version': '9.0.0'
28
+ 'data-garden-version': '9.1.1'
29
29
  }).withConfig({
30
30
  displayName: "StyledListboxSeparator",
31
31
  componentId: "sc-1p6toh2-0"
@@ -11,7 +11,7 @@ import { Field } from '@zendeskgarden/react-forms';
11
11
  const COMPONENT_ID = 'dropdowns.combobox.message';
12
12
  const StyledMessage = styled(Field.Message).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0'
14
+ 'data-garden-version': '9.1.1'
15
15
  }).withConfig({
16
16
  displayName: "StyledMessage",
17
17
  componentId: "sc-jux8m5-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
10
10
  const COMPONENT_ID = 'dropdowns.combobox.optgroup';
11
11
  const StyledOptGroup = styled.ul.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0'
13
+ 'data-garden-version': '9.1.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledOptGroup",
16
16
  componentId: "sc-1kavqsx-0"