@algolia/satellite 1.0.0-beta.160 → 1.0.0-beta.162

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 (230) hide show
  1. package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +2 -2
  2. package/cjs/AutoComplete/AutoComplete.tailwind.js +4 -1
  3. package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +2 -2
  4. package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +2 -2
  5. package/cjs/Avatars/ApplicationAvatar.d.ts +2 -2
  6. package/cjs/Avatars/UserAvatar.d.ts +2 -2
  7. package/cjs/Badge/Badge.d.ts +3 -3
  8. package/cjs/Badge/Badge.js +6 -3
  9. package/cjs/Banners/Alert/Alert.d.ts +2 -2
  10. package/cjs/Banners/BigBertha/BigBertha.d.ts +2 -2
  11. package/cjs/Banners/Promote/Promote.d.ts +2 -2
  12. package/cjs/Button/ButtonGroup.d.ts +2 -2
  13. package/cjs/Button/PolymorphicIconButton.d.ts +1 -1
  14. package/cjs/Button/PolymorphicIconButton.js +4 -4
  15. package/cjs/Card/components/CardHeader.d.ts +2 -2
  16. package/cjs/Card/components/CardTitle.d.ts +2 -2
  17. package/cjs/Checkbox/Checkbox.js +3 -3
  18. package/cjs/Checkbox/Checkbox.tailwind.js +1 -1
  19. package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +2 -2
  20. package/cjs/DatePicker/DatePicker/DatePicker.d.ts +2 -2
  21. package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -2
  22. package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +2 -2
  23. package/cjs/DatePicker/components/Calendar.d.ts +2 -2
  24. package/cjs/DatePicker/components/Display.d.ts +2 -2
  25. package/cjs/DatePicker/components/Footer.d.ts +2 -2
  26. package/cjs/DatePicker/components/FooterActions.d.ts +2 -2
  27. package/cjs/DatePicker/components/Modal.d.ts +2 -2
  28. package/cjs/DatePicker/components/NavBar.d.ts +2 -2
  29. package/cjs/DatePicker/components/SidePanel.d.ts +2 -2
  30. package/cjs/Dropdown/Dropdown.d.ts +20 -34
  31. package/cjs/Dropdown/components/DropdownButtonItem.d.ts +2 -7
  32. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +2 -2
  33. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +2 -2
  34. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +2 -1
  35. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +2 -1
  36. package/cjs/Dropdown/components/DropdownFooterItem.d.ts +2 -2
  37. package/cjs/Dropdown/components/DropdownLinkItem.d.ts +2 -7
  38. package/cjs/Dropdown/components/DropdownRadioItem.d.ts +2 -7
  39. package/cjs/Dropdown/components/DropdownTitle.d.ts +2 -2
  40. package/cjs/Dropdown/components/DropdownToggleItem.d.ts +2 -7
  41. package/cjs/Dropzone/Dropzone.d.ts +2 -2
  42. package/cjs/EmptyState/EmptyState.d.ts +2 -2
  43. package/cjs/Field/Field.d.ts +2 -2
  44. package/cjs/Flag/Flag.d.ts +2 -2
  45. package/cjs/Flag/Flags.d.ts +2 -2
  46. package/cjs/FlexGrid/FlexGrid.d.ts +2 -2
  47. package/cjs/HelpUnderline/HelpUnderline.d.ts +5 -6
  48. package/cjs/HelpUnderline/HelpUnderline.js +13 -10
  49. package/cjs/Input/Input.tailwind.js +28 -4
  50. package/cjs/Insert/Insert.d.ts +2 -2
  51. package/cjs/KeyboardKey/KeyboardKey.d.ts +2 -2
  52. package/cjs/Medallion/Medallion.d.ts +2 -2
  53. package/cjs/Modal/Modal.d.ts +7 -5
  54. package/cjs/Modal/components/ModalFooter.d.ts +2 -2
  55. package/cjs/Modal/components/ModalSection.d.ts +2 -2
  56. package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +2 -2
  57. package/cjs/Pagination/Pagination/Pagination.d.ts +2 -2
  58. package/cjs/ProgressBar/ProgressBar.d.ts +2 -2
  59. package/cjs/ProgressSpinner/ProgressSpinner.d.ts +2 -2
  60. package/cjs/RadioGroup/RadioButton.tailwind.js +4 -1
  61. package/cjs/RadioGroup/RadioGroup.d.ts +6 -6
  62. package/cjs/RangeSlider/RangeSlider.js +2 -2
  63. package/cjs/Satellite/Satellite.d.ts +2 -3
  64. package/cjs/Satellite/Satellite.js +27 -16
  65. package/cjs/Satellite/SatelliteContext.d.ts +1 -1
  66. package/cjs/Satellite/SatelliteContext.js +2 -1
  67. package/cjs/ScrollIndicator/ScrollIndicator.d.ts +2 -2
  68. package/cjs/Select/Select.tailwind.js +2 -2
  69. package/cjs/Separator/Separator.d.ts +8 -0
  70. package/cjs/Separator/Separator.js +29 -0
  71. package/cjs/Separator/Separator.tailwind.d.ts +5 -0
  72. package/cjs/Separator/Separator.tailwind.js +25 -0
  73. package/cjs/Separator/index.d.ts +2 -0
  74. package/cjs/Separator/index.js +27 -0
  75. package/cjs/Sidebar/Sidebar.d.ts +2 -2
  76. package/cjs/Sidebar/SidebarButtonLink.d.ts +2 -2
  77. package/cjs/Sidebar/SidebarButtonLink.js +8 -14
  78. package/cjs/Sidebar/SidebarHeader.d.ts +2 -2
  79. package/cjs/Sidebar/SidebarHeading.d.ts +2 -2
  80. package/cjs/Sidebar/SidebarLink.d.ts +2 -2
  81. package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +2 -2
  82. package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +2 -2
  83. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +2 -2
  84. package/cjs/Sidebar/SidebarNav.d.ts +2 -2
  85. package/cjs/Switch/Switch.d.ts +2 -2
  86. package/cjs/Switch/SwitchOption.d.ts +2 -2
  87. package/cjs/Tables/DataTable/DataTable.d.ts +4 -2
  88. package/cjs/Tables/DataTable/DataTable.js +9 -4
  89. package/cjs/Tables/DataTable/components/Footer.d.ts +2 -2
  90. package/cjs/Tables/DataTable/components/Loader.d.ts +2 -2
  91. package/cjs/Tables/Table/Table.d.ts +2 -2
  92. package/cjs/Tables/Table/components/TableFooter.d.ts +2 -2
  93. package/cjs/Tabs/ContentTabs.d.ts +2 -2
  94. package/cjs/Tabs/LinkTabs.d.ts +2 -2
  95. package/cjs/Tabs/components/LinkTab.d.ts +2 -2
  96. package/cjs/Tag/Tag.js +7 -7
  97. package/cjs/TextWrap/TextWrap.d.ts +2 -2
  98. package/cjs/Toggle/Toggle.js +3 -13
  99. package/cjs/Toggle/Toggle.tailwind.js +8 -2
  100. package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +2 -5
  101. package/cjs/Tooltip/OverflowTooltipWrapper.js +20 -78
  102. package/cjs/Tooltip/Tooltip.d.ts +6 -6
  103. package/cjs/Tooltip/Tooltip.js +6 -6
  104. package/cjs/Tooltip/Tooltip.tailwind.js +85 -62
  105. package/cjs/Tooltip/TooltipWrapper.d.ts +8 -21
  106. package/cjs/Tooltip/TooltipWrapper.js +49 -158
  107. package/cjs/Tooltip/types.d.ts +57 -6
  108. package/cjs/Tooltip/utils.d.ts +1 -0
  109. package/cjs/Tooltip/utils.js +10 -0
  110. package/cjs/UserContent/UserContent.d.ts +2 -2
  111. package/cjs/index.d.ts +2 -1
  112. package/cjs/index.js +20 -8
  113. package/cjs/styles/tailwind.config.js +1 -1
  114. package/cjs/types.d.ts +6 -6
  115. package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +2 -2
  116. package/esm/AutoComplete/AutoComplete.tailwind.js +4 -1
  117. package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +2 -2
  118. package/esm/AutoComplete/components/DefaultOptionItem.d.ts +2 -2
  119. package/esm/Avatars/ApplicationAvatar.d.ts +2 -2
  120. package/esm/Avatars/UserAvatar.d.ts +2 -2
  121. package/esm/Badge/Badge.d.ts +3 -3
  122. package/esm/Badge/Badge.js +6 -3
  123. package/esm/Banners/Alert/Alert.d.ts +2 -2
  124. package/esm/Banners/BigBertha/BigBertha.d.ts +2 -2
  125. package/esm/Banners/Promote/Promote.d.ts +2 -2
  126. package/esm/Button/ButtonGroup.d.ts +2 -2
  127. package/esm/Button/PolymorphicIconButton.d.ts +1 -1
  128. package/esm/Button/PolymorphicIconButton.js +4 -4
  129. package/esm/Card/components/CardHeader.d.ts +2 -2
  130. package/esm/Card/components/CardTitle.d.ts +2 -2
  131. package/esm/Checkbox/Checkbox.js +3 -3
  132. package/esm/Checkbox/Checkbox.tailwind.js +1 -1
  133. package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +2 -2
  134. package/esm/DatePicker/DatePicker/DatePicker.d.ts +2 -2
  135. package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -2
  136. package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +2 -2
  137. package/esm/DatePicker/components/Calendar.d.ts +2 -2
  138. package/esm/DatePicker/components/Display.d.ts +2 -2
  139. package/esm/DatePicker/components/Footer.d.ts +2 -2
  140. package/esm/DatePicker/components/FooterActions.d.ts +2 -2
  141. package/esm/DatePicker/components/Modal.d.ts +2 -2
  142. package/esm/DatePicker/components/NavBar.d.ts +2 -2
  143. package/esm/DatePicker/components/SidePanel.d.ts +2 -2
  144. package/esm/Dropdown/Dropdown.d.ts +20 -34
  145. package/esm/Dropdown/components/DropdownButtonItem.d.ts +2 -7
  146. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +2 -2
  147. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +2 -2
  148. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +2 -1
  149. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +2 -1
  150. package/esm/Dropdown/components/DropdownFooterItem.d.ts +2 -2
  151. package/esm/Dropdown/components/DropdownLinkItem.d.ts +2 -7
  152. package/esm/Dropdown/components/DropdownRadioItem.d.ts +2 -7
  153. package/esm/Dropdown/components/DropdownTitle.d.ts +2 -2
  154. package/esm/Dropdown/components/DropdownToggleItem.d.ts +2 -7
  155. package/esm/Dropzone/Dropzone.d.ts +2 -2
  156. package/esm/EmptyState/EmptyState.d.ts +2 -2
  157. package/esm/Field/Field.d.ts +2 -2
  158. package/esm/Flag/Flag.d.ts +2 -2
  159. package/esm/Flag/Flags.d.ts +2 -2
  160. package/esm/FlexGrid/FlexGrid.d.ts +2 -2
  161. package/esm/HelpUnderline/HelpUnderline.d.ts +5 -6
  162. package/esm/HelpUnderline/HelpUnderline.js +13 -10
  163. package/esm/Input/Input.tailwind.js +28 -4
  164. package/esm/Insert/Insert.d.ts +2 -2
  165. package/esm/KeyboardKey/KeyboardKey.d.ts +2 -2
  166. package/esm/Medallion/Medallion.d.ts +2 -2
  167. package/esm/Modal/Modal.d.ts +7 -5
  168. package/esm/Modal/components/ModalFooter.d.ts +2 -2
  169. package/esm/Modal/components/ModalSection.d.ts +2 -2
  170. package/esm/Pagination/CompactPagination/CompactPagination.d.ts +2 -2
  171. package/esm/Pagination/Pagination/Pagination.d.ts +2 -2
  172. package/esm/ProgressBar/ProgressBar.d.ts +2 -2
  173. package/esm/ProgressSpinner/ProgressSpinner.d.ts +2 -2
  174. package/esm/RadioGroup/RadioButton.tailwind.js +4 -1
  175. package/esm/RadioGroup/RadioGroup.d.ts +6 -6
  176. package/esm/RangeSlider/RangeSlider.js +2 -2
  177. package/esm/Satellite/Satellite.d.ts +2 -3
  178. package/esm/Satellite/Satellite.js +26 -14
  179. package/esm/Satellite/SatelliteContext.d.ts +1 -1
  180. package/esm/Satellite/SatelliteContext.js +2 -1
  181. package/esm/ScrollIndicator/ScrollIndicator.d.ts +2 -2
  182. package/esm/Select/Select.tailwind.js +2 -2
  183. package/esm/Separator/Separator.d.ts +8 -0
  184. package/esm/Separator/Separator.js +17 -0
  185. package/esm/Separator/Separator.tailwind.d.ts +5 -0
  186. package/esm/Separator/Separator.tailwind.js +24 -0
  187. package/esm/Separator/index.d.ts +2 -0
  188. package/esm/Separator/index.js +2 -0
  189. package/esm/Sidebar/Sidebar.d.ts +2 -2
  190. package/esm/Sidebar/SidebarButtonLink.d.ts +2 -2
  191. package/esm/Sidebar/SidebarButtonLink.js +8 -14
  192. package/esm/Sidebar/SidebarHeader.d.ts +2 -2
  193. package/esm/Sidebar/SidebarHeading.d.ts +2 -2
  194. package/esm/Sidebar/SidebarLink.d.ts +2 -2
  195. package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +2 -2
  196. package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +2 -2
  197. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +2 -2
  198. package/esm/Sidebar/SidebarNav.d.ts +2 -2
  199. package/esm/Switch/Switch.d.ts +2 -2
  200. package/esm/Switch/SwitchOption.d.ts +2 -2
  201. package/esm/Tables/DataTable/DataTable.d.ts +4 -2
  202. package/esm/Tables/DataTable/DataTable.js +9 -4
  203. package/esm/Tables/DataTable/components/Footer.d.ts +2 -2
  204. package/esm/Tables/DataTable/components/Loader.d.ts +2 -2
  205. package/esm/Tables/Table/Table.d.ts +2 -2
  206. package/esm/Tables/Table/components/TableFooter.d.ts +2 -2
  207. package/esm/Tabs/ContentTabs.d.ts +2 -2
  208. package/esm/Tabs/LinkTabs.d.ts +2 -2
  209. package/esm/Tabs/components/LinkTab.d.ts +2 -2
  210. package/esm/Tag/Tag.js +7 -7
  211. package/esm/TextWrap/TextWrap.d.ts +2 -2
  212. package/esm/Toggle/Toggle.js +3 -13
  213. package/esm/Toggle/Toggle.tailwind.js +8 -2
  214. package/esm/Tooltip/OverflowTooltipWrapper.d.ts +2 -5
  215. package/esm/Tooltip/OverflowTooltipWrapper.js +20 -78
  216. package/esm/Tooltip/Tooltip.d.ts +6 -6
  217. package/esm/Tooltip/Tooltip.js +6 -6
  218. package/esm/Tooltip/Tooltip.tailwind.js +84 -62
  219. package/esm/Tooltip/TooltipWrapper.d.ts +8 -21
  220. package/esm/Tooltip/TooltipWrapper.js +47 -157
  221. package/esm/Tooltip/types.d.ts +57 -6
  222. package/esm/Tooltip/utils.d.ts +1 -0
  223. package/esm/Tooltip/utils.js +3 -0
  224. package/esm/UserContent/UserContent.d.ts +2 -2
  225. package/esm/index.d.ts +2 -1
  226. package/esm/index.js +2 -1
  227. package/esm/styles/tailwind.config.js +1 -1
  228. package/esm/types.d.ts +6 -6
  229. package/package.json +3 -1
  230. package/satellite.min.css +1 -1
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent, HTMLAttributes } from "react";
1
+ import type { HTMLAttributes, VFC } from "react";
2
2
  export declare type AnnouncementBadgeSizes = "default" | "small";
3
3
  export declare type AnnouncementBadgeTexts = "new" | "beta" | "internal" | "pilot";
4
4
  export declare type AnnouncementBadgeLocale = {
@@ -17,5 +17,5 @@ export interface AnnouncementBadgeProps extends HTMLAttributes<HTMLSpanElement>
17
17
  locale?: AnnouncementBadgeLocale;
18
18
  children?: never;
19
19
  }
20
- export declare const AnnouncementBadge: FunctionComponent<AnnouncementBadgeProps>;
20
+ export declare const AnnouncementBadge: VFC<AnnouncementBadgeProps>;
21
21
  export default AnnouncementBadge;
@@ -20,9 +20,12 @@ var autoCompletePlugin = plugin(function (_ref) {
20
20
  cursor: "text",
21
21
  backgroundColor: theme("colors.white"),
22
22
  borderRadius: theme("borderRadius.DEFAULT"),
23
- border: "1px solid ".concat(theme("colors.grey.200")),
23
+ border: "1px solid ".concat(theme("colors.grey.500")),
24
24
  boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.500"), 0.3)),
25
25
  transition: "all 100ms ease-in-out",
26
+ "&:not(.autocomplete-disabled):hover": {
27
+ borderColor: theme("colors.grey.600")
28
+ },
26
29
  // Workaround for ie
27
30
  "&::after": {
28
31
  content: '" "',
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import { MedallionVariant } from "../../Medallion";
3
3
  import type { IconComponentType } from "../../types";
4
4
  export interface AutoCompleteEmptyStateProps {
@@ -9,5 +9,5 @@ export interface AutoCompleteEmptyStateProps {
9
9
  /** Optional description to explain why the screen is empty or define next steps */
10
10
  description?: ReactNode;
11
11
  }
12
- export declare const AutoCompleteEmptyState: ({ icon, variant, title, description, }: AutoCompleteEmptyStateProps) => JSX.Element;
12
+ export declare const AutoCompleteEmptyState: VFC<AutoCompleteEmptyStateProps>;
13
13
  export default AutoCompleteEmptyState;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  import type { AutoCompleteLocale, OptionItemProps } from "../types";
3
3
  declare type DefaultOptionItemProps = OptionItemProps & {
4
4
  locale?: AutoCompleteLocale;
5
5
  };
6
- declare const DefaultOptionItem: ({ option, multiple, locale }: DefaultOptionItemProps) => JSX.Element;
6
+ declare const DefaultOptionItem: VFC<DefaultOptionItemProps>;
7
7
  export default DefaultOptionItem;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  import type { ApplicationAvatarSize, MinimalApplication } from "./types";
3
3
  export interface ApplicationAvatarProps {
4
4
  /** A minimal application object containing `applicationID` and `name`. */
@@ -9,5 +9,5 @@ export interface ApplicationAvatarProps {
9
9
  className?: string;
10
10
  }
11
11
  /** The `ApplicationAvatar` is used as a visual representation of an application. */
12
- export declare const ApplicationAvatar: ({ className, application, size }: ApplicationAvatarProps) => JSX.Element;
12
+ export declare const ApplicationAvatar: VFC<ApplicationAvatarProps>;
13
13
  export default ApplicationAvatar;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  import type { MinimalUser } from "./types";
3
3
  export declare type UserAvatarLocale = {
4
4
  fallbackText?: string;
@@ -16,5 +16,5 @@ export interface UserAvatarProps {
16
16
  locale?: UserAvatarLocale;
17
17
  }
18
18
  /** The `UserAvatar` is used as a visual representation of a user. */
19
- export declare const UserAvatar: ({ className, user, size, locale: propsLocale }: UserAvatarProps) => JSX.Element;
19
+ export declare const UserAvatar: VFC<UserAvatarProps>;
20
20
  export default UserAvatar;
@@ -1,8 +1,8 @@
1
- import type { FunctionComponent, HTMLAttributes, ReactNode } from "react";
1
+ import { type HTMLAttributes, type ReactNode } from "react";
2
2
  import type { AtLeastOne, ColorVariant, IconComponentType } from "../types";
3
3
  export declare type BadgeSizes = "small" | "medium" | "large";
4
4
  export declare type BadgeVariants = ColorVariant | "pink";
5
- interface BaseBadgeProps extends HTMLAttributes<HTMLDivElement> {
5
+ interface BaseBadgeProps extends HTMLAttributes<HTMLSpanElement> {
6
6
  /** @default "grey" */
7
7
  variant?: BadgeVariants;
8
8
  /** @default "default" */
@@ -31,5 +31,5 @@ export declare type BadgeProps = BaseBadgeProps & AtLeastOne<BadgeContentProps>;
31
31
  * - To indicate problem with an index
32
32
  * - To display numeric values for multiple items (similar to a "tag cloud")
33
33
  */
34
- export declare const Badge: FunctionComponent<BadgeProps>;
34
+ export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
35
35
  export default Badge;
@@ -9,6 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
  var _clsx = _interopRequireDefault(require("clsx"));
12
+ var _react = require("react");
12
13
  var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
13
14
  var _isRenderedChild = _interopRequireDefault(require("../utils/isRenderedChild"));
14
15
  var _jsxRuntime = require("react/jsx-runtime");
@@ -47,7 +48,7 @@ var SIZE_CLASSNAMES = {
47
48
  * - To indicate problem with an index
48
49
  * - To display numeric values for multiple items (similar to a "tag cloud")
49
50
  */
50
- var Badge = function Badge(_ref) {
51
+ var Badge = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
51
52
  var children = _ref.children,
52
53
  value = _ref.value,
53
54
  Icon = _ref.icon,
@@ -58,7 +59,8 @@ var Badge = function Badge(_ref) {
58
59
  className = _ref.className,
59
60
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
60
61
  var badgeClassName = (0, _clsx["default"])(BASE_CLASSNAMES, VARIANT_CLASSNAMES[variant], SIZE_CLASSNAMES[size], className);
61
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({}, props), {}, {
62
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", _objectSpread(_objectSpread({}, props), {}, {
63
+ ref: ref,
62
64
  className: badgeClassName,
63
65
  children: [Icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
64
66
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
@@ -71,7 +73,8 @@ var Badge = function Badge(_ref) {
71
73
  children: value
72
74
  })]
73
75
  }));
74
- };
76
+ });
75
77
  exports.Badge = Badge;
78
+ Badge.displayName = "Badge";
76
79
  var _default = Badge;
77
80
  exports["default"] = _default;
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, FunctionComponent, ReactNode } from "react";
1
+ import type { CSSProperties, ReactNode, VFC } from "react";
2
2
  import type { ColorVariant, IconComponentType } from "../../types";
3
3
  export declare type AlertContextType = "page" | "section";
4
4
  export declare type AlertColorVariant = Exclude<ColorVariant, "blue">;
@@ -74,5 +74,5 @@ export interface AlertProps {
74
74
  * ## Accessibility
75
75
  * TODO
76
76
  */
77
- export declare const Alert: FunctionComponent<AlertProps>;
77
+ export declare const Alert: VFC<AlertProps>;
78
78
  export default Alert;
@@ -1,4 +1,4 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import type { IconComponentType } from "../../types";
3
3
  export interface BigBerthaProps {
4
4
  icon?: IconComponentType;
@@ -37,5 +37,5 @@ export interface BigBerthaProps {
37
37
  * ## Accessibility
38
38
  * TODO
39
39
  */
40
- export declare const BigBertha: FC<BigBerthaProps>;
40
+ export declare const BigBertha: VFC<BigBerthaProps>;
41
41
  export default BigBertha;
@@ -1,4 +1,4 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  declare type PromoteVariants = "large" | "compact";
3
3
  interface CompactPromoteProps {
4
4
  variant?: Extract<PromoteVariants, "compact">;
@@ -53,5 +53,5 @@ export declare type PromoteProps = {
53
53
  * ## Accessibility
54
54
  * TODO
55
55
  */
56
- export declare const Promote: FC<PromoteProps>;
56
+ export declare const Promote: VFC<PromoteProps>;
57
57
  export default Promote;
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export interface ButtonGroupProps {
3
3
  /**
4
4
  * Specify HTML element `ButtonGroup` should be presented as.
@@ -14,5 +14,5 @@ export interface ButtonGroupProps {
14
14
  * - Group buttons logically into sets based on usage and importance.
15
15
  * - Common placement of grouped buttons is the view switch (e.g. list vs grid view)
16
16
  */
17
- export declare const ButtonGroup: FunctionComponent<ButtonGroupProps>;
17
+ export declare const ButtonGroup: VFC<ButtonGroupProps>;
18
18
  export default ButtonGroup;
@@ -10,7 +10,7 @@ export interface IconButtonBaseProps {
10
10
  title: string;
11
11
  showTooltip?: boolean;
12
12
  /** @default "top" */
13
- tooltipPlacement?: TooltipWrapperBaseProps["placement"];
13
+ tooltipSide?: TooltipWrapperBaseProps["side"];
14
14
  loading?: boolean;
15
15
  }
16
16
  export declare type PolymorphicIconButtonProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, IconButtonBaseProps>;
@@ -16,7 +16,7 @@ var _Tooltip = require("../Tooltip");
16
16
  var _styles = require("./styles");
17
17
  var _types = require("./types");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
- var _excluded = ["as", "className", "variant", "size", "icon", "title", "showTooltip", "tooltipPlacement", "loading"];
19
+ var _excluded = ["as", "className", "variant", "size", "icon", "title", "showTooltip", "tooltipSide", "loading"];
20
20
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
21
21
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
22
22
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -43,8 +43,8 @@ var PolymorphicIconButton = /*#__PURE__*/(0, _react.forwardRef)(function (props,
43
43
  Icon = props.icon,
44
44
  title = props.title,
45
45
  showTooltip = props.showTooltip,
46
- _props$tooltipPlaceme = props.tooltipPlacement,
47
- tooltipPlacement = _props$tooltipPlaceme === void 0 ? "top" : _props$tooltipPlaceme,
46
+ _props$tooltipSide = props.tooltipSide,
47
+ tooltipSide = _props$tooltipSide === void 0 ? "top" : _props$tooltipSide,
48
48
  _props$loading = props.loading,
49
49
  loading = _props$loading === void 0 ? false : _props$loading,
50
50
  cleanedProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
@@ -61,7 +61,7 @@ var PolymorphicIconButton = /*#__PURE__*/(0, _react.forwardRef)(function (props,
61
61
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.TooltipWrapper, {
62
62
  delay: 500,
63
63
  show: showTooltip,
64
- placement: tooltipPlacement,
64
+ side: tooltipSide,
65
65
  content: title,
66
66
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, _objectSpread(_objectSpread({}, cleanedProps), {}, {
67
67
  className: iconButtonClassName,
@@ -1,6 +1,6 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type CardHeaderProps = JSX.IntrinsicElements["div"] & {
3
3
  children: ReactNode;
4
4
  };
5
- export declare const CardHeader: FunctionComponent<CardHeaderProps>;
5
+ export declare const CardHeader: VFC<CardHeaderProps>;
6
6
  export default CardHeader;
@@ -1,6 +1,6 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type CardTitleProps = JSX.IntrinsicElements["h2"] & {
3
3
  children: ReactNode;
4
4
  };
5
- export declare const CardTitle: FunctionComponent<CardTitleProps>;
5
+ export declare const CardTitle: VFC<CardTitleProps>;
6
6
  export default CardTitle;
@@ -67,9 +67,9 @@ var Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
67
67
  }
68
68
  };
69
69
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
70
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["inline-flex items-center ", ""])), textPosition === "left" && "flex-row-reverse"), className),
70
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["group inline-flex items-center ", ""])), textPosition === "left" && "flex-row-reverse"), className),
71
71
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
72
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n checkbox\n ", "\n ", "\n ", "\n "])), indeterminate && "checkbox-indeterminate", isChecked && "checkbox-checked", disabled && "checkbox-disabled"), STATUS_CLASSNAMES[status]),
72
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n checkbox\n ", "\n ", "\n ", "\n ", "\n "])), !disabled && "group-hover:border-grey-900", indeterminate && "checkbox-indeterminate", isChecked && "checkbox-checked", disabled && "checkbox-disabled"), STATUS_CLASSNAMES[status]),
73
73
  style: {
74
74
  color: checkedColor
75
75
  },
@@ -78,7 +78,7 @@ var Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
78
78
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread(_objectSpread({}, checkboxProps), {}, {
79
79
  "aria-checked": indeterminate ? "mixed" : isChecked,
80
80
  id: id,
81
- className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n opacity-0 absolute inset-0 cursor-pointer\n ", "\n "])), disabled && "cursor-not-allowed"),
81
+ className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n opacity-0 absolute inset-0\n ", "\n "])), disabled ? "cursor-not-allowed" : "cursor-pointer"),
82
82
  type: "checkbox",
83
83
  ref: ref,
84
84
  onChange: handleChange,
@@ -18,7 +18,7 @@ var checkboxPlugin = plugin(function (_ref) {
18
18
  overflow: "hidden",
19
19
  color: theme("colors.accent.600"),
20
20
  background: "linear-gradient(180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)"),
21
- border: "1px solid ".concat(theme("colors.grey.200")),
21
+ border: "1px solid ".concat(theme("colors.grey.500")),
22
22
  boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5")),
23
23
  borderRadius: theme("borderRadius.DEFAULT"),
24
24
  transition: "all 250ms cubic-bezier(0.23, 1, 0.32, 1)",
@@ -1,4 +1,4 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  interface ClickAwayContextType {
3
3
  registerElement(element: HTMLElement): void;
4
4
  unregisterElement(element: HTMLElement): void;
@@ -24,5 +24,5 @@ export interface ClickAwayContainerProps {
24
24
  * but it's not the case when using portals.
25
25
  * This component allows click-away functionality even when portals are involved.
26
26
  */
27
- export declare const ClickAwayContainer: FC<ClickAwayContainerProps>;
27
+ export declare const ClickAwayContainer: VFC<ClickAwayContainerProps>;
28
28
  export default ClickAwayContainer;
@@ -1,4 +1,4 @@
1
- import type { Dispatch, FunctionComponent, MouseEvent, ReactNode } from "react";
1
+ import type { Dispatch, MouseEvent, ReactNode, VFC } from "react";
2
2
  import type { CalendarProps } from "../components/Calendar";
3
3
  import type { DisplayProps } from "../components/Display";
4
4
  import type { FooterActionsProps } from "../components/FooterActions";
@@ -30,5 +30,5 @@ export declare type DatePickerProps = {
30
30
  initialValue?: Date | null;
31
31
  buttonSize?: DisplayProps["size"];
32
32
  } & SharedDatePickerProps;
33
- declare const DatePicker: FunctionComponent<DatePickerProps>;
33
+ declare const DatePicker: VFC<DatePickerProps>;
34
34
  export default DatePicker;
@@ -1,4 +1,4 @@
1
- import type { Dispatch, FunctionComponent, ReactNode } from "react";
1
+ import type { Dispatch, ReactNode, VFC } from "react";
2
2
  import type { CalendarProps } from "../components/Calendar";
3
3
  import type { SharedDatePickerProps } from "../types";
4
4
  import type { DateRangePickerDisplayProps } from "./DateRangePickerDisplay";
@@ -30,5 +30,5 @@ export declare type DateRangePickerProps = {
30
30
  renderRightPanel?: (args: RightSidePanelComponentArgs) => ReactNode;
31
31
  buttonSize?: DateRangePickerDisplayProps["buttonSize"];
32
32
  } & SharedDatePickerProps;
33
- export declare const DateRangePicker: FunctionComponent<DateRangePickerProps>;
33
+ export declare const DateRangePicker: VFC<DateRangePickerProps>;
34
34
  export default DateRangePicker;
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent } from "react";
1
+ import type { VFC } from "react";
2
2
  import type { WithRequiredProperty } from "../../types";
3
3
  import { DisplayProps } from "../components/Display";
4
4
  import type { DatePickerLocale } from "../types";
@@ -10,5 +10,5 @@ export interface DateRangePickerDisplayProps {
10
10
  buttonSize?: DisplayProps["size"];
11
11
  locale: WithRequiredProperty<DatePickerLocale, "openButton">;
12
12
  }
13
- declare const DateRangePickerDisplay: FunctionComponent<DateRangePickerDisplayProps>;
13
+ declare const DateRangePickerDisplay: VFC<DateRangePickerDisplayProps>;
14
14
  export default DateRangePickerDisplay;
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent } from "react";
1
+ import type { VFC } from "react";
2
2
  import { DayPickerDefaultProps, DayPickerRangeProps, DayPickerSingleProps } from "react-day-picker";
3
3
  import type { WithRequiredProperty } from "../../types";
4
4
  import type { DatePickerLocale } from "../types";
@@ -13,5 +13,5 @@ export declare type EditableYearProps = {
13
13
  export declare type CalendarProps = Omit<Omit<DayPickerSingleProps | DayPickerRangeProps | DayPickerDefaultProps, "locale">, ExcludedDayPickerProps> & EditableYearProps & {
14
14
  locale: WithRequiredProperty<DatePickerLocale, "nextMonth" | "previousMonth">;
15
15
  };
16
- declare const Calendar: FunctionComponent<CalendarProps>;
16
+ declare const Calendar: VFC<CalendarProps>;
17
17
  export default Calendar;
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import type { ButtonProps, ButtonSize } from "../../Button";
3
3
  export interface DisplayProps {
4
4
  id?: string;
@@ -6,5 +6,5 @@ export interface DisplayProps {
6
6
  children: ReactNode;
7
7
  size?: ButtonSize;
8
8
  }
9
- declare const Display: FunctionComponent<DisplayProps>;
9
+ declare const Display: VFC<DisplayProps>;
10
10
  export default Display;
@@ -1,6 +1,6 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type FooterProps = {
3
3
  children: ReactNode;
4
4
  };
5
- declare const Footer: FunctionComponent<FooterProps>;
5
+ declare const Footer: VFC<FooterProps>;
6
6
  export default Footer;
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent } from "react";
1
+ import type { VFC } from "react";
2
2
  import { ButtonProps } from "../../Button";
3
3
  import type { WithRequiredProperty } from "../../types";
4
4
  import type { DatePickerLocale } from "../types";
@@ -8,5 +8,5 @@ export interface FooterActionsProps {
8
8
  disableApply: boolean;
9
9
  locale: WithRequiredProperty<DatePickerLocale, "cancel" | "apply">;
10
10
  }
11
- declare const FooterActions: FunctionComponent<FooterActionsProps>;
11
+ declare const FooterActions: VFC<FooterActionsProps>;
12
12
  export default FooterActions;
@@ -1,5 +1,5 @@
1
1
  import type { Placement, StrictModifiers } from "@popperjs/core";
2
- import type { FC, ReactNode } from "react";
2
+ import type { ReactNode, VFC } from "react";
3
3
  import type { StrictModifier } from "react-popper";
4
4
  import type { ClickAwayContainerProps } from "../../ClickAwayContainer";
5
5
  export interface ModalProps {
@@ -12,5 +12,5 @@ export interface ModalProps {
12
12
  onClickAway?: ClickAwayContainerProps["onClickAway"];
13
13
  }
14
14
  export declare const DEFAULT_DATE_PICKER_MODAL_POPPER_MODIFIERS: StrictModifier[];
15
- declare const Modal: FC<ModalProps>;
15
+ declare const Modal: VFC<ModalProps>;
16
16
  export default Modal;
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent } from "react";
1
+ import type { VFC } from "react";
2
2
  import { CaptionProps } from "react-day-picker";
3
3
  import type { WithRequiredProperty } from "../../types";
4
4
  import type { DatePickerLocale } from "../types";
@@ -6,5 +6,5 @@ import type { EditableYearProps } from "./Calendar";
6
6
  export declare type NavBarProps = CaptionProps & EditableYearProps & {
7
7
  locale: WithRequiredProperty<DatePickerLocale, "nextMonth" | "previousMonth">;
8
8
  };
9
- declare const NavBar: FunctionComponent<NavBarProps>;
9
+ declare const NavBar: VFC<NavBarProps>;
10
10
  export default NavBar;
@@ -1,6 +1,6 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type SidePanelProps = {
3
3
  children: ReactNode;
4
4
  };
5
- declare const SidePanel: FunctionComponent<SidePanelProps>;
5
+ declare const SidePanel: VFC<SidePanelProps>;
6
6
  export default SidePanel;
@@ -1,6 +1,15 @@
1
1
  import type { StrictModifiers } from "@popperjs/core";
2
+ import { VFC } from "react";
2
3
  import type { ReactNode } from "react";
3
4
  import { StrictModifier } from "react-popper";
5
+ import DropdownButtonItem from "./components/DropdownButtonItem";
6
+ import { DropdownCollapsibleItem } from "./components/DropdownCollapsibleItem";
7
+ import DropdownDivider from "./components/DropdownDivider";
8
+ import DropdownFooterItem from "./components/DropdownFooterItem";
9
+ import DropdownLinkItem from "./components/DropdownLinkItem";
10
+ import DropdownRadioItem from "./components/DropdownRadioItem";
11
+ import DropdownTitle from "./components/DropdownTitle";
12
+ import DropdownToggleItem from "./components/DropdownToggleItem";
4
13
  export interface RenderTargetParams {
5
14
  toggle: (open?: boolean) => any;
6
15
  isShowingMenu: boolean;
@@ -16,6 +25,16 @@ export interface DropdownProps {
16
25
  renderFooter?: (params: RenderTargetParams) => ReactNode;
17
26
  children?: ReactNode;
18
27
  }
28
+ declare type DropdownSubComponents = {
29
+ ButtonItem: typeof DropdownButtonItem;
30
+ LinkItem: typeof DropdownLinkItem;
31
+ RadioItem: typeof DropdownRadioItem;
32
+ ToggleItem: typeof DropdownToggleItem;
33
+ CollapsibleItem: typeof DropdownCollapsibleItem;
34
+ FooterItem: typeof DropdownFooterItem;
35
+ Divider: typeof DropdownDivider;
36
+ Title: typeof DropdownTitle;
37
+ };
19
38
  export declare const DEFAULT_DROPDOWN_POPPER_MODIFIERS: StrictModifier[];
20
39
  /**
21
40
  * ## Best practices
@@ -27,38 +46,5 @@ export declare const DEFAULT_DROPDOWN_POPPER_MODIFIERS: StrictModifier[];
27
46
  * - Clearly label options based on what each one will do
28
47
  * - Make sure the most common options are listed. These can be grouped into sub-categories under headings
29
48
  */
30
- export declare const Dropdown: {
31
- ({ placement, menuClassName, modifiers, renderTarget, renderFooter, children, }: DropdownProps): JSX.Element;
32
- ButtonItem: {
33
- (props: import("./components/DropdownButtonItem").DropdownButtonItemProps): JSX.Element;
34
- defaultProps: {
35
- toggle: boolean;
36
- };
37
- };
38
- LinkItem: {
39
- (props: import("./components/DropdownLinkItem").DropdownLinkItemProps): JSX.Element;
40
- defaultProps: {
41
- toggle: boolean;
42
- };
43
- };
44
- RadioItem: {
45
- (props: import("./components/DropdownRadioItem").DropdownRadioItemProps): JSX.Element;
46
- defaultProps: {
47
- toggle: boolean;
48
- };
49
- };
50
- ToggleItem: {
51
- (props: import("./components/DropdownToggleItem").DropdownToggleItemProps): JSX.Element;
52
- defaultProps: {
53
- toggle: boolean;
54
- };
55
- };
56
- CollapsibleItem: import("react").FC<import("./components/DropdownCollapsibleItem").DropdownCollapsibleItemProps>;
57
- FooterItem: ({ children, className, ...props }: {
58
- className?: string | undefined;
59
- children: ReactNode;
60
- }) => JSX.Element | null;
61
- Divider: () => JSX.Element;
62
- Title: import("react").FunctionComponent<import("./components/DropdownTitle").DropdownTitleProps>;
63
- };
49
+ export declare const Dropdown: VFC<DropdownProps> & DropdownSubComponents;
64
50
  export default Dropdown;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  import type { IconComponentType } from "../../types";
3
3
  import { DropdownBaseItemProps } from "../useDropdownItemProps";
4
4
  export declare type DropdownButtonItemProps = DropdownBaseItemProps<HTMLButtonElement> & JSX.IntrinsicElements["button"] & {
@@ -10,10 +10,5 @@ export declare type DropdownButtonItemProps = DropdownBaseItemProps<HTMLButtonEl
10
10
  */
11
11
  variant?: "default" | "destructive";
12
12
  };
13
- export declare const DropdownButtonItem: {
14
- (props: DropdownButtonItemProps): JSX.Element;
15
- defaultProps: {
16
- toggle: boolean;
17
- };
18
- };
13
+ export declare const DropdownButtonItem: VFC<DropdownButtonItemProps>;
19
14
  export default DropdownButtonItem;
@@ -1,4 +1,4 @@
1
- import type { FC, MouseEvent, ReactNode } from "react";
1
+ import type { MouseEvent, ReactNode, VFC } from "react";
2
2
  export interface DropdownCollapsibleItemProps {
3
3
  title: ReactNode;
4
4
  name?: string;
@@ -6,5 +6,5 @@ export interface DropdownCollapsibleItemProps {
6
6
  onClick?: (evt: MouseEvent<HTMLElement>, name: string, expandedItems: readonly string[]) => void;
7
7
  children: ReactNode;
8
8
  }
9
- export declare const DropdownCollapsibleItem: FC<DropdownCollapsibleItemProps>;
9
+ export declare const DropdownCollapsibleItem: VFC<DropdownCollapsibleItemProps>;
10
10
  export default DropdownCollapsibleItem;
@@ -1,7 +1,7 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type DropdownCollapsibleItemsGroupProps = {
3
3
  expandedItems: string[];
4
4
  onItemClick(name: string): void;
5
5
  children: ReactNode;
6
6
  };
7
- export declare const DropdownCollapsibleItemsGroup: ({ expandedItems, onItemClick, children, }: DropdownCollapsibleItemsGroupProps) => JSX.Element;
7
+ export declare const DropdownCollapsibleItemsGroup: VFC<DropdownCollapsibleItemsGroupProps>;
@@ -1,3 +1,4 @@
1
+ import { VFC } from "react";
1
2
  import type { ReactNode } from "react";
2
3
  export declare type DropdownCollapsibleItemsMultiGroupProps = {
3
4
  initialExpandedItems?: string[];
@@ -6,4 +7,4 @@ export declare type DropdownCollapsibleItemsMultiGroupProps = {
6
7
  /**
7
8
  * Multiple collapsible item can be open at a given time
8
9
  */
9
- export declare const DropdownCollapsibleItemsMultiGroup: ({ initialExpandedItems, children, }: DropdownCollapsibleItemsMultiGroupProps) => JSX.Element;
10
+ export declare const DropdownCollapsibleItemsMultiGroup: VFC<DropdownCollapsibleItemsMultiGroupProps>;
@@ -1,3 +1,4 @@
1
+ import { VFC } from "react";
1
2
  import type { ReactNode } from "react";
2
3
  export declare type DropdownCollapsibleItemsExclusiveGroupProps = {
3
4
  initialExpandedItem?: string;
@@ -6,4 +7,4 @@ export declare type DropdownCollapsibleItemsExclusiveGroupProps = {
6
7
  /**
7
8
  * Only one collapsible item can be open at a given time (unless you manually override)
8
9
  */
9
- export declare const DropdownCollapsibleItemsSingleGroup: ({ initialExpandedItem, children, }: DropdownCollapsibleItemsExclusiveGroupProps) => JSX.Element;
10
+ export declare const DropdownCollapsibleItemsSingleGroup: VFC<DropdownCollapsibleItemsExclusiveGroupProps>;
@@ -1,7 +1,7 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  declare type DropdownFooterItemProps = {
3
3
  className?: string;
4
4
  children: ReactNode;
5
5
  };
6
- export declare const DropdownFooterItem: ({ children, className, ...props }: DropdownFooterItemProps) => JSX.Element | null;
6
+ export declare const DropdownFooterItem: VFC<DropdownFooterItemProps>;
7
7
  export default DropdownFooterItem;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  import type { IconComponentType } from "../../types";
3
3
  import { DropdownBaseItemProps } from "../useDropdownItemProps";
4
4
  export declare type DropdownLinkItemProps = DropdownBaseItemProps<HTMLAnchorElement> & JSX.IntrinsicElements["a"] & {
@@ -6,10 +6,5 @@ export declare type DropdownLinkItemProps = DropdownBaseItemProps<HTMLAnchorElem
6
6
  /** Left aligned icon */
7
7
  startIcon?: IconComponentType;
8
8
  };
9
- export declare const DropdownLinkItem: {
10
- (props: DropdownLinkItemProps): JSX.Element;
11
- defaultProps: {
12
- toggle: boolean;
13
- };
14
- };
9
+ export declare const DropdownLinkItem: VFC<DropdownLinkItemProps>;
15
10
  export default DropdownLinkItem;
@@ -1,13 +1,8 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import { RadioButtonProps } from "../../RadioGroup";
3
3
  import { DropdownBaseItemProps } from "../useDropdownItemProps";
4
4
  export interface DropdownRadioItemProps extends RadioButtonProps, DropdownBaseItemProps<HTMLInputElement> {
5
5
  children?: ReactNode;
6
6
  }
7
- export declare const DropdownRadioItem: {
8
- (props: DropdownRadioItemProps): JSX.Element;
9
- defaultProps: {
10
- toggle: boolean;
11
- };
12
- };
7
+ export declare const DropdownRadioItem: VFC<DropdownRadioItemProps>;
13
8
  export default DropdownRadioItem;