@zendeskgarden/react-dropdowns 9.0.0-next.1 → 9.0.0-next.11

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 (159) hide show
  1. package/README.md +73 -69
  2. package/dist/esm/context/useComboboxContext.js +18 -0
  3. package/dist/esm/context/useFieldContext.js +18 -0
  4. package/dist/esm/context/useItemContext.js +18 -0
  5. package/dist/esm/context/useItemGroupContext.js +14 -0
  6. package/dist/esm/context/useMenuContext.js +18 -0
  7. package/dist/esm/context/useOptionContext.js +18 -0
  8. package/dist/esm/elements/combobox/Combobox.js +330 -0
  9. package/dist/esm/elements/combobox/Field.js +75 -0
  10. package/dist/esm/elements/combobox/Hint.js +57 -0
  11. package/dist/esm/elements/combobox/Label.js +68 -0
  12. package/dist/esm/elements/combobox/Listbox.js +155 -0
  13. package/dist/esm/elements/combobox/Message.js +63 -0
  14. package/dist/esm/elements/combobox/OptGroup.js +93 -0
  15. package/dist/esm/elements/combobox/Option.js +133 -0
  16. package/dist/esm/elements/combobox/OptionMeta.js +55 -0
  17. package/dist/esm/elements/combobox/Tag.js +98 -0
  18. package/dist/esm/elements/combobox/TagAvatar.js +13 -0
  19. package/dist/esm/elements/combobox/TagGroup.js +35 -0
  20. package/dist/esm/elements/combobox/utils.js +36 -0
  21. package/dist/esm/elements/menu/Item.js +140 -0
  22. package/dist/esm/elements/menu/ItemGroup.js +96 -0
  23. package/dist/esm/elements/menu/ItemMeta.js +55 -0
  24. package/dist/esm/elements/menu/Menu.js +157 -0
  25. package/dist/esm/elements/menu/MenuList.js +170 -0
  26. package/dist/esm/elements/menu/Separator.js +58 -0
  27. package/dist/esm/elements/menu/utils.js +55 -0
  28. package/dist/esm/index.js +19 -0
  29. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-lg-stroke.svg.js +28 -0
  30. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +25 -0
  31. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js +25 -0
  32. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js +25 -0
  33. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/plus-stroke.svg.js +26 -0
  34. package/dist/esm/types/index.js +12 -0
  35. package/dist/esm/views/combobox/StyledCombobox.js +30 -0
  36. package/dist/esm/views/combobox/StyledContainer.js +22 -0
  37. package/dist/esm/views/combobox/StyledField.js +22 -0
  38. package/dist/esm/views/combobox/StyledFloatingListbox.js +27 -0
  39. package/dist/esm/views/combobox/StyledHint.js +23 -0
  40. package/dist/esm/views/combobox/StyledInput.js +41 -0
  41. package/dist/esm/views/combobox/StyledInputGroup.js +26 -0
  42. package/dist/esm/views/combobox/StyledInputIcon.js +43 -0
  43. package/dist/esm/views/combobox/StyledLabel.js +23 -0
  44. package/dist/esm/views/combobox/StyledListbox.js +31 -0
  45. package/dist/esm/views/combobox/StyledListboxSeparator.js +31 -0
  46. package/dist/esm/views/combobox/StyledMessage.js +23 -0
  47. package/dist/esm/views/combobox/StyledOptGroup.js +22 -0
  48. package/dist/esm/views/combobox/StyledOption.js +48 -0
  49. package/dist/esm/views/combobox/StyledOptionContent.js +22 -0
  50. package/dist/esm/views/combobox/StyledOptionIcon.js +29 -0
  51. package/dist/esm/views/combobox/StyledOptionMeta.js +31 -0
  52. package/dist/esm/views/combobox/StyledOptionTypeIcon.js +48 -0
  53. package/dist/esm/views/combobox/StyledTag.js +24 -0
  54. package/dist/esm/views/combobox/StyledTagsButton.js +28 -0
  55. package/dist/esm/views/combobox/StyledTrigger.js +94 -0
  56. package/dist/esm/views/combobox/StyledValue.js +32 -0
  57. package/dist/esm/views/menu/StyledButton.js +23 -0
  58. package/dist/esm/views/menu/StyledFloatingMenu.js +23 -0
  59. package/dist/esm/views/menu/StyledItem.js +23 -0
  60. package/dist/esm/views/menu/StyledItemContent.js +23 -0
  61. package/dist/esm/views/menu/StyledItemGroup.js +23 -0
  62. package/dist/esm/views/menu/StyledItemIcon.js +23 -0
  63. package/dist/esm/views/menu/StyledItemMeta.js +23 -0
  64. package/dist/esm/views/menu/StyledItemTypeIcon.js +24 -0
  65. package/dist/esm/views/menu/StyledMenu.js +27 -0
  66. package/dist/esm/views/menu/StyledSeparator.js +23 -0
  67. package/dist/index.cjs.js +1620 -1736
  68. package/dist/typings/context/useComboboxContext.d.ts +25 -0
  69. package/dist/typings/context/useFieldContext.d.ts +32 -0
  70. package/dist/typings/context/useItemContext.d.ts +14 -0
  71. package/dist/typings/context/useItemGroupContext.d.ts +15 -0
  72. package/dist/typings/context/useMenuContext.d.ts +23 -0
  73. package/dist/typings/context/useOptionContext.d.ts +14 -0
  74. package/dist/typings/elements/{Combobox → combobox}/Combobox.d.ts +0 -2
  75. package/dist/typings/elements/{Fields → combobox}/Field.d.ts +8 -1
  76. package/dist/typings/elements/{Fields → combobox}/Hint.d.ts +2 -0
  77. package/dist/typings/elements/{Fields → combobox}/Label.d.ts +3 -1
  78. package/dist/typings/elements/{Menu/Items/MediaBody.d.ts → combobox/Listbox.d.ts} +2 -4
  79. package/dist/typings/elements/{Fields → combobox}/Message.d.ts +3 -1
  80. package/dist/typings/elements/{Menu/Items/HeaderItem.d.ts → combobox/OptGroup.d.ts} +2 -2
  81. package/dist/typings/elements/{Menu/Items/MediaItem.d.ts → combobox/Option.d.ts} +5 -2
  82. package/dist/typings/elements/{Menu/Items/HeaderIcon.d.ts → combobox/OptionMeta.d.ts} +1 -1
  83. package/dist/typings/elements/combobox/Tag.d.ts +15 -0
  84. package/dist/typings/elements/combobox/TagAvatar.d.ts +14 -0
  85. package/dist/typings/elements/combobox/TagGroup.d.ts +12 -0
  86. package/dist/typings/elements/combobox/utils.d.ts +30 -0
  87. package/dist/typings/elements/{Menu/Items → menu}/Item.d.ts +5 -2
  88. package/dist/typings/elements/{Menu/Items/AddItem.d.ts → menu/ItemGroup.d.ts} +2 -2
  89. package/dist/typings/elements/{Menu/Items → menu}/ItemMeta.d.ts +2 -2
  90. package/dist/typings/elements/{Menu → menu}/Menu.d.ts +0 -2
  91. package/dist/typings/elements/menu/MenuList.d.ts +12 -0
  92. package/dist/typings/elements/{Menu → menu}/Separator.d.ts +1 -1
  93. package/dist/typings/elements/menu/utils.d.ts +29 -0
  94. package/dist/typings/index.d.ts +18 -25
  95. package/dist/typings/types/index.d.ts +242 -121
  96. package/dist/typings/{styled/items/StyledItemIcon.d.ts → views/combobox/StyledCombobox.d.ts} +4 -6
  97. package/dist/typings/{styled/multiselect/StyledMultiselectItemWrapper.d.ts → views/combobox/StyledContainer.d.ts} +1 -1
  98. package/dist/typings/{styled/select/StyledSelect.d.ts → views/combobox/StyledField.d.ts} +1 -1
  99. package/dist/typings/views/combobox/StyledFloatingListbox.d.ts +18 -0
  100. package/dist/typings/views/combobox/StyledHint.d.ts +11 -0
  101. package/dist/typings/views/combobox/StyledInput.d.ts +20 -0
  102. package/dist/typings/{styled/items/StyledAddItem.d.ts → views/combobox/StyledInputGroup.d.ts} +2 -4
  103. package/dist/typings/views/combobox/StyledInputIcon.d.ts +20 -0
  104. package/dist/typings/views/combobox/StyledLabel.d.ts +11 -0
  105. package/dist/typings/views/combobox/StyledListbox.d.ts +17 -0
  106. package/dist/typings/{styled/items/StyledNextItem.d.ts → views/combobox/StyledListboxSeparator.d.ts} +2 -4
  107. package/dist/typings/views/combobox/StyledMessage.d.ts +11 -0
  108. package/dist/typings/views/combobox/StyledOptGroup.d.ts +14 -0
  109. package/dist/typings/views/combobox/StyledOption.d.ts +18 -0
  110. package/dist/typings/views/combobox/StyledOptionContent.d.ts +10 -0
  111. package/dist/typings/views/combobox/StyledOptionIcon.d.ts +12 -0
  112. package/dist/typings/views/combobox/StyledOptionMeta.d.ts +14 -0
  113. package/dist/typings/views/combobox/StyledOptionTypeIcon.d.ts +17 -0
  114. package/dist/typings/views/combobox/StyledTag.d.ts +17 -0
  115. package/dist/typings/views/combobox/StyledTagsButton.d.ts +16 -0
  116. package/dist/typings/views/combobox/StyledTrigger.d.ts +24 -0
  117. package/dist/typings/views/combobox/StyledValue.d.ts +21 -0
  118. package/dist/typings/views/index.d.ts +38 -0
  119. package/dist/typings/views/menu/StyledButton.d.ts +20 -0
  120. package/dist/typings/views/menu/StyledFloatingMenu.d.ts +13 -0
  121. package/dist/typings/{styled/items/StyledPreviousItem.d.ts → views/menu/StyledItem.d.ts} +4 -4
  122. package/dist/typings/views/menu/StyledItemContent.d.ts +13 -0
  123. package/dist/typings/views/menu/StyledItemGroup.d.ts +13 -0
  124. package/dist/typings/views/menu/StyledItemIcon.d.ts +14 -0
  125. package/dist/typings/{styled/items → views/menu}/StyledItemMeta.d.ts +5 -10
  126. package/dist/typings/views/menu/StyledItemTypeIcon.d.ts +14 -0
  127. package/dist/typings/views/menu/StyledMenu.d.ts +19 -0
  128. package/dist/typings/{styled → views}/menu/StyledSeparator.d.ts +7 -4
  129. package/package.json +19 -17
  130. package/dist/index.esm.js +0 -2032
  131. package/dist/typings/elements/Autocomplete/Autocomplete.d.ts +0 -14
  132. package/dist/typings/elements/Dropdown/Dropdown.d.ts +0 -26
  133. package/dist/typings/elements/Menu/Items/MediaFigure.d.ts +0 -11
  134. package/dist/typings/elements/Menu/Items/NextItem.d.ts +0 -12
  135. package/dist/typings/elements/Menu/Items/PreviousItem.d.ts +0 -12
  136. package/dist/typings/elements/Multiselect/Multiselect.d.ts +0 -14
  137. package/dist/typings/elements/Select/Select.d.ts +0 -14
  138. package/dist/typings/elements/Trigger/Trigger.d.ts +0 -24
  139. package/dist/typings/styled/index.d.ts +0 -29
  140. package/dist/typings/styled/items/StyledItem.d.ts +0 -20
  141. package/dist/typings/styled/items/StyledNextIcon.d.ts +0 -12
  142. package/dist/typings/styled/items/StyledPreviousIcon.d.ts +0 -12
  143. package/dist/typings/styled/items/header/StyledHeaderIcon.d.ts +0 -14
  144. package/dist/typings/styled/items/header/StyledHeaderItem.d.ts +0 -16
  145. package/dist/typings/styled/items/media/StyledMediaBody.d.ts +0 -17
  146. package/dist/typings/styled/items/media/StyledMediaFigure.d.ts +0 -287
  147. package/dist/typings/styled/items/media/StyledMediaItem.d.ts +0 -13
  148. package/dist/typings/styled/menu/StyledMenu.d.ts +0 -20
  149. package/dist/typings/styled/menu/StyledMenuWrapper.d.ts +0 -16
  150. package/dist/typings/styled/multiselect/StyledMultiselectInput.d.ts +0 -22
  151. package/dist/typings/styled/multiselect/StyledMultiselectItemsContainer.d.ts +0 -16
  152. package/dist/typings/styled/multiselect/StyledMultiselectMoreAnchor.d.ts +0 -15
  153. package/dist/typings/styled/select/StyledFauxInput.d.ts +0 -22
  154. package/dist/typings/styled/select/StyledInput.d.ts +0 -15
  155. package/dist/typings/utils/garden-placements.d.ts +0 -26
  156. package/dist/typings/utils/useDropdownContext.d.ts +0 -28
  157. package/dist/typings/utils/useFieldContext.d.ts +0 -17
  158. package/dist/typings/utils/useItemContext.d.ts +0 -16
  159. package/dist/typings/utils/useMenuContext.d.ts +0 -17
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+
10
+ const COMPONENT_ID = 'dropdowns.combobox.field';
11
+ const StyledField = styled.div.attrs({
12
+ 'data-garden-id': COMPONENT_ID,
13
+ 'data-garden-version': '9.0.0-next.11'
14
+ }).withConfig({
15
+ displayName: "StyledField",
16
+ componentId: "sc-zc57xl-0"
17
+ })(["direction:", ";", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', props => retrieveComponentStyles(COMPONENT_ID, props));
18
+ StyledField.defaultProps = {
19
+ theme: DEFAULT_THEME
20
+ };
21
+
22
+ export { StyledField };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { menuStyles, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+
10
+ const COMPONENT_ID = 'dropdowns.combobox.floating';
11
+ const StyledFloatingListbox = styled.div.attrs({
12
+ 'data-garden-id': COMPONENT_ID,
13
+ 'data-garden-version': '9.0.0-next.11'
14
+ }).withConfig({
15
+ displayName: "StyledFloatingListbox",
16
+ componentId: "sc-1cp6spf-0"
17
+ })(["top:0;left:0;", ";", ";"], props => menuStyles(props.position, {
18
+ theme: props.theme,
19
+ hidden: props.isHidden,
20
+ animationModifier: '[data-garden-animate="true"]',
21
+ zIndex: props.zIndex
22
+ }), props => retrieveComponentStyles(COMPONENT_ID, props));
23
+ StyledFloatingListbox.defaultProps = {
24
+ theme: DEFAULT_THEME
25
+ };
26
+
27
+ export { StyledFloatingListbox };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+ import { Field } from '@zendeskgarden/react-forms';
10
+
11
+ const COMPONENT_ID = 'dropdowns.combobox.hint';
12
+ const StyledHint = styled(Field.Hint).attrs({
13
+ 'data-garden-id': COMPONENT_ID,
14
+ 'data-garden-version': '9.0.0-next.11'
15
+ }).withConfig({
16
+ displayName: "StyledHint",
17
+ componentId: "sc-106qvqx-0"
18
+ })(["", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
19
+ StyledHint.defaultProps = {
20
+ theme: DEFAULT_THEME
21
+ };
22
+
23
+ export { StyledHint };
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { hideVisually, math } from 'polished';
9
+ import { retrieveComponentStyles, DEFAULT_THEME, getColorV8, getLineHeight } from '@zendeskgarden/react-theming';
10
+
11
+ const COMPONENT_ID = 'dropdowns.combobox.input';
12
+ const colorStyles = props => {
13
+ const placeholderColor = getColorV8('neutralHue', 400, props.theme);
14
+ return css(["background-color:inherit;color:inherit;&::placeholder{opacity:1;color:", ";}"], placeholderColor);
15
+ };
16
+ const getHeight = props => {
17
+ if (props.isBare && !props.isMultiselectable) {
18
+ return props.theme.space.base * 5;
19
+ }
20
+ return props.theme.space.base * (props.isCompact ? 5 : 8);
21
+ };
22
+ const sizeStyles = props => {
23
+ const height = props.theme.space.base * 5;
24
+ const fontSize = props.theme.fontSizes.md;
25
+ const lineHeight = getLineHeight(height, fontSize);
26
+ const margin = math(`${props.theme.shadowWidths.sm} + ${(getHeight(props) - height) / 2}`);
27
+ const minWidth = `${props.theme.space.base * 8}px`;
28
+ return css(["min-width:", ";height:", "px;line-height:", ";font-size:", ";&&{margin-top:", ";margin-bottom:", ";}"], minWidth, height, lineHeight, fontSize, margin, margin);
29
+ };
30
+ const StyledInput = styled.input.attrs({
31
+ 'data-garden-id': COMPONENT_ID,
32
+ 'data-garden-version': '9.0.0-next.11'
33
+ }).withConfig({
34
+ displayName: "StyledInput",
35
+ componentId: "sc-1lkqdg-0"
36
+ })(["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));
37
+ StyledInput.defaultProps = {
38
+ theme: DEFAULT_THEME
39
+ };
40
+
41
+ export { StyledInput, getHeight, sizeStyles };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+
10
+ const COMPONENT_ID = 'dropdowns.combobox.input_group';
11
+ const sizeStyles = props => {
12
+ const margin = props.theme.shadowWidths.sm;
13
+ return css(["margin:-", ";min-width:0;& > *{margin:", ";}"], margin, margin);
14
+ };
15
+ const StyledInputGroup = styled.div.attrs({
16
+ 'data-garden-id': COMPONENT_ID,
17
+ 'data-garden-version': '9.0.0-next.11'
18
+ }).withConfig({
19
+ displayName: "StyledInputGroup",
20
+ componentId: "sc-yx3q7u-0"
21
+ })(["display:flex;flex-grow:1;flex-wrap:wrap;", ";", ";"], sizeStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
22
+ StyledInputGroup.defaultProps = {
23
+ theme: DEFAULT_THEME
24
+ };
25
+
26
+ export { StyledInputGroup };
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { math } from 'polished';
9
+ import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
10
+ import { getHeight } from './StyledInput.js';
11
+ import { StyledTrigger } from './StyledTrigger.js';
12
+
13
+ const COMPONENT_ID = 'dropdowns.combobox.input_icon';
14
+ const colorStyles = props => {
15
+ const color = getColorV8('neutralHue', 600, props.theme);
16
+ const focusColor = getColorV8('neutralHue', 700, props.theme);
17
+ const disabledColor = getColorV8('neutralHue', 400, props.theme);
18
+ return css(["color:", ";", ":hover &,", ":focus-within &,", ":focus &{color:", ";}", "[aria-disabled='true'] &{color:", ";}"], props.$isLabelHovered ? focusColor : color, StyledTrigger, StyledTrigger, StyledTrigger, focusColor, StyledTrigger, disabledColor);
19
+ };
20
+ const sizeStyles = props => {
21
+ const size = props.theme.iconSizes.md;
22
+ const position = math(`(${getHeight(props)} - ${size}) / 2`);
23
+ const margin = `${props.theme.space.base * 2}px`;
24
+ let side;
25
+ if (props.$isEnd) {
26
+ side = props.theme.rtl ? 'right' : 'left';
27
+ } else {
28
+ side = props.theme.rtl ? 'left' : 'right';
29
+ }
30
+ return css(["top:", ";margin-", ":", ";width:", ";height:", ";"], position, side, margin, size, size);
31
+ };
32
+ const StyledInputIcon = styled(StyledBaseIcon).attrs({
33
+ 'data-garden-id': COMPONENT_ID,
34
+ 'data-garden-version': '9.0.0-next.11'
35
+ }).withConfig({
36
+ displayName: "StyledInputIcon",
37
+ componentId: "sc-gqbs1s-0"
38
+ })(["position:sticky;flex-shrink:0;transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", ";", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
39
+ StyledInputIcon.defaultProps = {
40
+ theme: DEFAULT_THEME
41
+ };
42
+
43
+ export { StyledInputIcon };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+ import { Field } from '@zendeskgarden/react-forms';
10
+
11
+ const COMPONENT_ID = 'dropdowns.combobox.label';
12
+ const StyledLabel = styled(Field.Label).attrs({
13
+ 'data-garden-id': COMPONENT_ID,
14
+ 'data-garden-version': '9.0.0-next.11'
15
+ }).withConfig({
16
+ displayName: "StyledLabel",
17
+ componentId: "sc-az6now-0"
18
+ })(["vertical-align:revert;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
19
+ StyledLabel.defaultProps = {
20
+ theme: DEFAULT_THEME
21
+ };
22
+
23
+ export { StyledLabel };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+ import { StyledOption, getMinHeight } from './StyledOption.js';
10
+ import { StyledOptionContent } from './StyledOptionContent.js';
11
+ import { StyledOptGroup } from './StyledOptGroup.js';
12
+ import { StyledListboxSeparator } from './StyledListboxSeparator.js';
13
+
14
+ const COMPONENT_ID = 'dropdowns.combobox.listbox';
15
+ const sizeStyles = props => {
16
+ const padding = props.theme.space.base;
17
+ const minHeight = props.minHeight === undefined ? `${getMinHeight(props) + padding * 2}px` : props.minHeight;
18
+ return css(["min-height:", ";max-height:", ";&&&{padding-top:", "px;padding-bottom:", "px;}"], minHeight, props.maxHeight, padding, padding);
19
+ };
20
+ const StyledListbox = styled.ul.attrs({
21
+ 'data-garden-id': COMPONENT_ID,
22
+ 'data-garden-version': '9.0.0-next.11'
23
+ }).withConfig({
24
+ displayName: "StyledListbox",
25
+ componentId: "sc-1k13ba7-0"
26
+ })(["overflow-y:auto;list-style-type:none;", ";&&&{display:block;}", ":first-child ", " ", ":first-child ", "[role='none']:first-child{display:none;}"], sizeStyles, StyledOption, StyledOptionContent, StyledOptGroup, StyledListboxSeparator);
27
+ StyledListbox.defaultProps = {
28
+ theme: DEFAULT_THEME
29
+ };
30
+
31
+ export { StyledListbox };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
9
+
10
+ const COMPONENT_ID = 'dropdowns.combobox.separator';
11
+ const colorStyles = props => {
12
+ const backgroundColor = getColorV8('neutralHue', 200, props.theme);
13
+ return css(["background-color:", ";"], backgroundColor);
14
+ };
15
+ const sizeStyles = props => {
16
+ const margin = `${props.theme.space.base}px`;
17
+ const height = props.theme.borderWidths.sm;
18
+ return css(["margin:", " 0;height:", ";"], margin, height);
19
+ };
20
+ const StyledListboxSeparator = styled.li.attrs({
21
+ 'data-garden-id': COMPONENT_ID,
22
+ 'data-garden-version': '9.0.0-next.11'
23
+ }).withConfig({
24
+ displayName: "StyledListboxSeparator",
25
+ componentId: "sc-1p6toh2-0"
26
+ })(["cursor:default;", ";", ";", ";"], sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
27
+ StyledListboxSeparator.defaultProps = {
28
+ theme: DEFAULT_THEME
29
+ };
30
+
31
+ export { StyledListboxSeparator };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+ import { Field } from '@zendeskgarden/react-forms';
10
+
11
+ const COMPONENT_ID = 'dropdowns.combobox.message';
12
+ const StyledMessage = styled(Field.Message).attrs({
13
+ 'data-garden-id': COMPONENT_ID,
14
+ 'data-garden-version': '9.0.0-next.11'
15
+ }).withConfig({
16
+ displayName: "StyledMessage",
17
+ componentId: "sc-jux8m5-0"
18
+ })(["", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
19
+ StyledMessage.defaultProps = {
20
+ theme: DEFAULT_THEME
21
+ };
22
+
23
+ export { StyledMessage };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+
10
+ const COMPONENT_ID = 'dropdowns.combobox.optgroup';
11
+ const StyledOptGroup = styled.ul.attrs({
12
+ 'data-garden-id': COMPONENT_ID,
13
+ 'data-garden-version': '9.0.0-next.11'
14
+ }).withConfig({
15
+ displayName: "StyledOptGroup",
16
+ componentId: "sc-1kavqsx-0"
17
+ })(["margin:0;padding:0;list-style-type:none;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
18
+ StyledOptGroup.defaultProps = {
19
+ theme: DEFAULT_THEME
20
+ };
21
+
22
+ export { StyledOptGroup };
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { hideVisually, math } from 'polished';
9
+ import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
10
+
11
+ const COMPONENT_ID = 'dropdowns.combobox.option';
12
+ const colorStyles = props => {
13
+ let backgroundColor;
14
+ let boxShadow;
15
+ if (props.isActive && props.$type !== 'group' && props.$type !== 'header') {
16
+ const hue = props.$type === 'danger' ? 'dangerHue' : 'primaryHue';
17
+ backgroundColor = getColorV8(hue, 600, props.theme, 0.08);
18
+ boxShadow = `inset ${props.theme.rtl ? `-${props.theme.shadowWidths.md}` : props.theme.shadowWidths.md} 0 ${getColorV8(hue, 600, props.theme)}`;
19
+ }
20
+ const disabledForegroundColor = getColorV8('neutralHue', 400, props.theme);
21
+ let foregroundColor = getColorV8('foreground', 600 , props.theme);
22
+ if (props.$type === 'add') {
23
+ foregroundColor = getColorV8('primaryHue', 600, props.theme);
24
+ } else if (props.$type === 'danger') {
25
+ foregroundColor = getColorV8('dangerHue', 600, props.theme);
26
+ }
27
+ return css(["box-shadow:", ";background-color:", ";color:", ";&[aria-disabled='true']{background-color:transparent;color:", ";}"], boxShadow, backgroundColor, foregroundColor, disabledForegroundColor);
28
+ };
29
+ const getMinHeight = props => props.theme.space.base * (props.isCompact ? 7 : 9);
30
+ const sizeStyles = props => {
31
+ const lineHeight = props.theme.lineHeights.md;
32
+ const minHeight = getMinHeight(props);
33
+ const paddingHorizontal = props.$type === 'group' ? 0 : `${props.theme.space.base * 9}px`;
34
+ const paddingVertical = props.$type === 'group' ? 0 : math(`(${minHeight} - ${lineHeight}) / 2`);
35
+ return css(["box-sizing:border-box;padding:", " ", ";min-height:", "px;line-height:", ";"], paddingVertical, paddingHorizontal, minHeight, lineHeight);
36
+ };
37
+ const StyledOption = styled.li.attrs({
38
+ 'data-garden-id': COMPONENT_ID,
39
+ 'data-garden-version': '9.0.0-next.11'
40
+ }).withConfig({
41
+ displayName: "StyledOption",
42
+ componentId: "sc-jl4wn6-0"
43
+ })(["display:flex;position:relative;transition:color 0.25s ease-in-out;cursor:", ";overflow-wrap:anywhere;font-weight:", ";user-select:none;&:focus{outline:none;}", ";", ";&[aria-disabled='true']{cursor:default;}&[aria-hidden='true']{", ";}", ";"], props => props.$type === 'group' || props.$type === 'header' ? 'default' : 'pointer', props => props.$type === 'header' || props.$type === 'previous' ? props.theme.fontWeights.semibold : props.theme.fontWeights.regular, sizeStyles, colorStyles, hideVisually(), props => retrieveComponentStyles(COMPONENT_ID, props));
44
+ StyledOption.defaultProps = {
45
+ theme: DEFAULT_THEME
46
+ };
47
+
48
+ export { StyledOption, getMinHeight };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+
10
+ const COMPONENT_ID = 'dropdowns.combobox.option.content';
11
+ const StyledOptionContent = styled.div.attrs({
12
+ 'data-garden-id': COMPONENT_ID,
13
+ 'data-garden-version': '9.0.0-next.11'
14
+ }).withConfig({
15
+ displayName: "StyledOptionContent",
16
+ componentId: "sc-121ujpu-0"
17
+ })(["display:flex;flex-direction:column;flex-grow:1;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
18
+ StyledOptionContent.defaultProps = {
19
+ theme: DEFAULT_THEME
20
+ };
21
+
22
+ export { StyledOptionContent };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { math } from 'polished';
9
+ import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
10
+
11
+ const COMPONENT_ID = 'dropdowns.combobox.option.icon';
12
+ const sizeStyles = props => {
13
+ const size = props.theme.iconSizes.md;
14
+ const marginTop = math(`(${props.theme.lineHeights.md} - ${size}) / 2`);
15
+ const marginHorizontal = `${props.theme.space.base * 2}px`;
16
+ return css(["margin-top:", ";margin-", ":", ";width:", ";height:", ";"], marginTop, props.theme.rtl ? 'left' : 'right', marginHorizontal, size, size);
17
+ };
18
+ const StyledOptionIcon = styled(StyledBaseIcon).attrs({
19
+ 'data-garden-id': COMPONENT_ID,
20
+ 'data-garden-version': '9.0.0-next.11'
21
+ }).withConfig({
22
+ displayName: "StyledOptionIcon",
23
+ componentId: "sc-qsab3y-0"
24
+ })(["flex-shrink:0;", ";", ";"], sizeStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
25
+ StyledOptionIcon.defaultProps = {
26
+ theme: DEFAULT_THEME
27
+ };
28
+
29
+ export { StyledOptionIcon };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
9
+
10
+ const COMPONENT_ID = 'dropdowns.combobox.option.meta';
11
+ const colorStyles = props => {
12
+ const color = getColorV8('neutralHue', props.isDisabled ? 400 : 600, props.theme);
13
+ return css(["color:", ";"], color);
14
+ };
15
+ const sizeStyles = props => {
16
+ const lineHeight = props.theme.lineHeights.sm;
17
+ const fontSize = props.theme.fontSizes.sm;
18
+ return css(["line-height:", ";font-size:", ";"], lineHeight, fontSize);
19
+ };
20
+ const StyledOptionMeta = styled.div.attrs({
21
+ 'data-garden-id': COMPONENT_ID,
22
+ 'data-garden-version': '9.0.0-next.11'
23
+ }).withConfig({
24
+ displayName: "StyledOptionMeta",
25
+ componentId: "sc-j6pu10-0"
26
+ })(["transition:color 0.25s ease-in-out;font-weight:", ";", ";", ";", ";"], props => props.theme.fontWeights.regular, sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
27
+ StyledOptionMeta.defaultProps = {
28
+ theme: DEFAULT_THEME
29
+ };
30
+
31
+ export { StyledOptionMeta };
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { math } from 'polished';
9
+ import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
10
+ import { StyledOption, getMinHeight } from './StyledOption.js';
11
+
12
+ const COMPONENT_ID = 'dropdowns.combobox.option.type_icon';
13
+ const colorStyles = props => {
14
+ const opacity = props.$type && props.$type !== 'danger' ? 1 : 0;
15
+ let color;
16
+ if (props.$type === 'add' || props.$type === 'danger') {
17
+ color = 'inherit';
18
+ } else if (props.$type === 'header' || props.$type === 'next' || props.$type === 'previous') {
19
+ color = getColorV8('neutralHue', 600, props.theme);
20
+ } else {
21
+ color = getColorV8('primaryHue', 600, props.theme);
22
+ }
23
+ return css(["opacity:", ";color:", ";", "[aria-selected='true'] > &{opacity:1;}", "[aria-disabled='true'] > &{color:inherit;}"], opacity, color, StyledOption, StyledOption);
24
+ };
25
+ const sizeStyles = props => {
26
+ const size = props.theme.iconSizes.md;
27
+ const position = `${props.theme.space.base * 3}px`;
28
+ const top = math(`(${getMinHeight(props)} - ${size}) / 2`);
29
+ let side;
30
+ if (props.$type === 'next') {
31
+ side = props.theme.rtl ? 'left' : 'right';
32
+ } else {
33
+ side = props.theme.rtl ? 'right' : 'left';
34
+ }
35
+ return css(["top:", ";", ":", ";width:", ";height:", ";"], top, side, position, size, size);
36
+ };
37
+ const StyledOptionTypeIcon = styled(StyledBaseIcon).attrs({
38
+ 'data-garden-id': COMPONENT_ID,
39
+ 'data-garden-version': '9.0.0-next.11'
40
+ }).withConfig({
41
+ displayName: "StyledOptionTypeIcon",
42
+ componentId: "sc-xpink2-0"
43
+ })(["position:absolute;transform:", ";transition:opacity 0.1s ease-in-out;", ";", ";", ";"], props => props.theme.rtl && (props.$type === 'next' || props.$type === 'previous') && 'rotate(180deg)', sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
44
+ StyledOptionTypeIcon.defaultProps = {
45
+ theme: DEFAULT_THEME
46
+ };
47
+
48
+ export { StyledOptionTypeIcon };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { hideVisually } from 'polished';
9
+ import { getColorV8, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
10
+ import { Tag } from '@zendeskgarden/react-tags';
11
+
12
+ const COMPONENT_ID = 'dropdowns.combobox.tag';
13
+ const StyledTag = styled(Tag).attrs({
14
+ 'data-garden-id': COMPONENT_ID,
15
+ 'data-garden-version': '9.0.0-next.11'
16
+ }).withConfig({
17
+ displayName: "StyledTag",
18
+ componentId: "sc-1alam0r-0"
19
+ })(["&[aria-disabled='true']{color:", ";}&[hidden]{display:revert;", "}", ";"], props => props.hue ? undefined : getColorV8('neutralHue', 400, props.theme), hideVisually(), props => retrieveComponentStyles(COMPONENT_ID, props));
20
+ StyledTag.defaultProps = {
21
+ theme: DEFAULT_THEME
22
+ };
23
+
24
+ export { StyledTag };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
9
+ import { StyledValue } from './StyledValue.js';
10
+
11
+ const COMPONENT_ID = 'dropdowns.combobox.tags_button';
12
+ const colorStyles = props => {
13
+ const color = getColorV8('primaryHue', 600, props.theme);
14
+ return css(["color:", ";&:disabled{color:inherit;}"], color);
15
+ };
16
+ const StyledTagsButton = styled(StyledValue).attrs({
17
+ as: 'button',
18
+ 'data-garden-id': COMPONENT_ID,
19
+ 'data-garden-version': '9.0.0-next.11'
20
+ }).withConfig({
21
+ displayName: "StyledTagsButton",
22
+ componentId: "sc-6q5w33-0"
23
+ })(["display:inline-flex;flex:0 1 auto;align-items:center;border:none;background-color:transparent;cursor:pointer;min-width:auto;font-family:inherit;&:hover{text-decoration:underline;}", ";&:disabled{cursor:default;text-decoration:none;}", ";"], colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
24
+ StyledTagsButton.defaultProps = {
25
+ theme: DEFAULT_THEME
26
+ };
27
+
28
+ export { StyledTagsButton };
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { math } from 'polished';
9
+ import { retrieveComponentStyles, DEFAULT_THEME, getColorV8, focusStyles } from '@zendeskgarden/react-theming';
10
+ import { getHeight } from './StyledInput.js';
11
+
12
+ const COMPONENT_ID = 'dropdowns.combobox.trigger';
13
+ const colorStyles = props => {
14
+ const SHADE = 600;
15
+ let hue = 'neutralHue';
16
+ if (props.validation === 'success') {
17
+ hue = 'successHue';
18
+ } else if (props.validation === 'warning') {
19
+ hue = 'warningHue';
20
+ } else if (props.validation === 'error') {
21
+ hue = 'dangerHue';
22
+ }
23
+ const backgroundColor = props.isBare ? 'transparent' : getColorV8('background', 600 , props.theme);
24
+ let borderColor;
25
+ let hoverBorderColor;
26
+ let focusBorderColor;
27
+ let focusShade;
28
+ if (props.validation) {
29
+ borderColor = getColorV8(hue, SHADE, props.theme);
30
+ hoverBorderColor = borderColor;
31
+ if (props.validation === 'warning') {
32
+ focusBorderColor = getColorV8(hue, SHADE + 100, props.theme);
33
+ focusShade = SHADE + 100;
34
+ } else {
35
+ focusBorderColor = borderColor;
36
+ }
37
+ } else {
38
+ borderColor = getColorV8('neutralHue', SHADE - 300, props.theme);
39
+ hoverBorderColor = getColorV8('primaryHue', SHADE, props.theme);
40
+ focusBorderColor = hoverBorderColor;
41
+ }
42
+ const disabledBackgroundColor = props.isBare ? undefined : getColorV8('neutralHue', SHADE - 500, props.theme);
43
+ const disabledBorderColor = getColorV8('neutralHue', SHADE - 400, props.theme);
44
+ const disabledForegroundColor = getColorV8('neutralHue', SHADE - 200, props.theme);
45
+ const focusSelector = `
46
+ &:focus-within:not([aria-disabled='true']),
47
+ &:focus-visible
48
+ `;
49
+ return css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";}", " &[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], props.isLabelHovered ? hoverBorderColor : borderColor, backgroundColor, getColorV8('foreground', 600 , props.theme), hoverBorderColor, focusStyles({
50
+ theme: props.theme,
51
+ inset: props.focusInset,
52
+ color: {
53
+ hue: focusBorderColor,
54
+ shade: focusShade
55
+ },
56
+ selector: focusSelector,
57
+ styles: {
58
+ borderColor: focusBorderColor
59
+ },
60
+ condition: !props.isBare
61
+ }), disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
62
+ };
63
+ const sizeStyles = props => {
64
+ const inputHeight = getHeight(props);
65
+ let minHeight;
66
+ let horizontalPadding;
67
+ if (props.isBare) {
68
+ if (props.isMultiselectable) {
69
+ minHeight = math(`${props.theme.shadowWidths.sm} * 2 + ${inputHeight}`);
70
+ horizontalPadding = props.theme.shadowWidths.sm;
71
+ } else {
72
+ minHeight = `${inputHeight}px`;
73
+ horizontalPadding = '0';
74
+ }
75
+ } else {
76
+ minHeight = `${props.theme.space.base * (props.isCompact ? 3 : 2) + inputHeight}px`;
77
+ horizontalPadding = `${props.theme.space.base * 3}px`;
78
+ }
79
+ const maxHeight = props.maxHeight || minHeight;
80
+ const verticalPadding = math(`(${minHeight} - ${inputHeight} - (${props.isBare ? 0 : props.theme.borderWidths.sm} * 2)) / 2`);
81
+ return css(["padding:", " ", ";min-height:", ";max-height:", ";font-size:", ";"], verticalPadding, horizontalPadding, minHeight, maxHeight, props.theme.fontSizes.md);
82
+ };
83
+ const StyledTrigger = styled.div.attrs({
84
+ 'data-garden-id': COMPONENT_ID,
85
+ 'data-garden-version': '9.0.0-next.11'
86
+ }).withConfig({
87
+ displayName: "StyledTrigger",
88
+ componentId: "sc-116nftk-0"
89
+ })(["overflow-y:auto;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:", ";border-radius:", ";cursor:", ";box-sizing:border-box;", ";&:focus{outline:none;}", ";&[aria-disabled='true']{cursor:default;}", ";"], props => props.isBare ? 'none' : props.theme.borders.sm, props => props.isBare ? '0' : props.theme.borderRadii.md, props => !props.isAutocomplete && props.isEditable ? 'text' : 'pointer', sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
90
+ StyledTrigger.defaultProps = {
91
+ theme: DEFAULT_THEME
92
+ };
93
+
94
+ export { StyledTrigger };