@algolia/satellite 1.0.0-beta.170 → 1.0.0-beta.172

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 (219) hide show
  1. package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +5 -0
  2. package/cjs/AnnouncementBadge/AnnouncementBadge.js +6 -0
  3. package/cjs/AutoComplete/AutoComplete.d.ts +2 -13
  4. package/cjs/AutoComplete/AutoComplete.js +52 -67
  5. package/cjs/AutoComplete/utils.d.ts +1 -1
  6. package/cjs/Avatars/ApplicationAvatar.d.ts +5 -1
  7. package/cjs/Avatars/ApplicationAvatar.js +5 -1
  8. package/cjs/Avatars/UserAvatar.d.ts +5 -1
  9. package/cjs/Avatars/UserAvatar.js +5 -1
  10. package/cjs/Badge/Badge.d.ts +2 -12
  11. package/cjs/Badge/Badge.js +2 -12
  12. package/cjs/Banners/Alert/Alert.d.ts +3 -48
  13. package/cjs/Banners/Alert/Alert.js +3 -48
  14. package/cjs/Banners/BigBertha/BigBertha.d.ts +3 -31
  15. package/cjs/Banners/BigBertha/BigBertha.js +3 -31
  16. package/cjs/Banners/Promote/Promote.d.ts +3 -26
  17. package/cjs/Banners/Promote/Promote.js +3 -26
  18. package/cjs/Button/Button.d.ts +2 -11
  19. package/cjs/Button/Button.js +2 -11
  20. package/cjs/Button/ButtonGroup.d.ts +3 -3
  21. package/cjs/Button/ButtonGroup.js +3 -3
  22. package/cjs/Button/IconButton.d.ts +2 -2
  23. package/cjs/Button/IconButton.js +2 -2
  24. package/cjs/Card/Card.d.ts +5 -1
  25. package/cjs/Card/Card.js +5 -1
  26. package/cjs/Checkbox/Checkbox.d.ts +2 -3
  27. package/cjs/Checkbox/Checkbox.js +2 -3
  28. package/cjs/DatePicker/DatePicker/DatePicker.d.ts +5 -0
  29. package/cjs/DatePicker/DatePicker/DatePicker.js +5 -0
  30. package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +5 -0
  31. package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +6 -0
  32. package/cjs/Dropdown/Dropdown.d.ts +3 -8
  33. package/cjs/Dropdown/Dropdown.js +3 -8
  34. package/cjs/Dropzone/Dropzone.d.ts +5 -0
  35. package/cjs/Dropzone/Dropzone.js +6 -0
  36. package/cjs/EmptyState/EmptyState.d.ts +2 -21
  37. package/cjs/EmptyState/EmptyState.js +2 -21
  38. package/cjs/Field/Field.d.ts +2 -31
  39. package/cjs/Field/Field.js +2 -31
  40. package/cjs/Flag/Flag.d.ts +5 -0
  41. package/cjs/Flag/Flag.js +6 -0
  42. package/cjs/FlexGrid/FlexGrid.d.ts +5 -0
  43. package/cjs/FlexGrid/FlexGrid.js +6 -0
  44. package/cjs/HelpUnderline/HelpUnderline.d.ts +5 -0
  45. package/cjs/HelpUnderline/HelpUnderline.js +5 -0
  46. package/cjs/Input/Input.d.ts +2 -4
  47. package/cjs/Input/Input.js +2 -4
  48. package/cjs/Insert/Insert.d.ts +3 -29
  49. package/cjs/Insert/Insert.js +3 -29
  50. package/cjs/KeyboardKey/KeyboardKey.d.ts +5 -0
  51. package/cjs/KeyboardKey/KeyboardKey.js +5 -0
  52. package/cjs/Link/ButtonLink.d.ts +5 -0
  53. package/cjs/Link/ButtonLink.js +5 -0
  54. package/cjs/Link/IconButtonLink.d.ts +5 -0
  55. package/cjs/Link/IconButtonLink.js +5 -0
  56. package/cjs/Link/Link.d.ts +5 -0
  57. package/cjs/Link/Link.js +5 -0
  58. package/cjs/Medallion/Medallion.d.ts +5 -0
  59. package/cjs/Medallion/Medallion.js +6 -0
  60. package/cjs/Modal/Modal.d.ts +5 -0
  61. package/cjs/Modal/Modal.js +6 -0
  62. package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +5 -0
  63. package/cjs/Pagination/CompactPagination/CompactPagination.js +6 -0
  64. package/cjs/Pagination/DotPagination/DotPagination.d.ts +5 -0
  65. package/cjs/Pagination/DotPagination/DotPagination.js +5 -0
  66. package/cjs/Pagination/Pagination/Pagination.d.ts +2 -4
  67. package/cjs/Pagination/Pagination/Pagination.js +2 -4
  68. package/cjs/Popover/Popover.d.ts +5 -0
  69. package/cjs/Popover/Popover.js +6 -0
  70. package/cjs/ProgressBar/ProgressBar.d.ts +1 -1
  71. package/cjs/ProgressBar/ProgressBar.js +1 -1
  72. package/cjs/ProgressSpinner/ProgressSpinner.d.ts +5 -0
  73. package/cjs/ProgressSpinner/ProgressSpinner.js +27 -19
  74. package/cjs/RadioGroup/RadioGroup.d.ts +2 -12
  75. package/cjs/RadioGroup/RadioGroup.js +2 -12
  76. package/cjs/RangeSlider/RangeSlider.d.ts +2 -4
  77. package/cjs/RangeSlider/RangeSlider.js +2 -4
  78. package/cjs/ScrollIndicator/ScrollIndicator.d.ts +5 -0
  79. package/cjs/ScrollIndicator/ScrollIndicator.js +6 -0
  80. package/cjs/Select/Select.d.ts +2 -5
  81. package/cjs/Select/Select.js +2 -5
  82. package/cjs/Separator/Separator.d.ts +5 -0
  83. package/cjs/Separator/Separator.js +5 -0
  84. package/cjs/Sidebar/Sidebar.d.ts +5 -0
  85. package/cjs/Sidebar/Sidebar.js +6 -0
  86. package/cjs/Switch/Switch.d.ts +5 -0
  87. package/cjs/Switch/Switch.js +5 -0
  88. package/cjs/Tables/DataTable/DataTable.d.ts +2 -16
  89. package/cjs/Tables/DataTable/DataTable.js +2 -16
  90. package/cjs/Tables/Table/Table.d.ts +2 -16
  91. package/cjs/Tables/Table/Table.js +2 -16
  92. package/cjs/Tabs/LinkTabs.d.ts +2 -25
  93. package/cjs/Tabs/LinkTabs.js +2 -25
  94. package/cjs/Tag/Tag.d.ts +2 -19
  95. package/cjs/Tag/Tag.js +2 -19
  96. package/cjs/TextArea/TextArea.d.ts +5 -0
  97. package/cjs/TextArea/TextArea.js +5 -0
  98. package/cjs/TextWrap/TextWrap.d.ts +5 -0
  99. package/cjs/TextWrap/TextWrap.js +6 -0
  100. package/cjs/Toggle/Toggle.d.ts +2 -3
  101. package/cjs/Toggle/Toggle.js +2 -3
  102. package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +5 -0
  103. package/cjs/Tooltip/OverflowTooltipWrapper.js +5 -0
  104. package/cjs/Tooltip/Tooltip.d.ts +2 -14
  105. package/cjs/Tooltip/Tooltip.js +2 -14
  106. package/cjs/Tooltip/TooltipWrapper.d.ts +5 -0
  107. package/cjs/Tooltip/TooltipWrapper.js +5 -0
  108. package/cjs/UserContent/UserContent.d.ts +5 -0
  109. package/cjs/UserContent/UserContent.js +5 -0
  110. package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +5 -0
  111. package/esm/AnnouncementBadge/AnnouncementBadge.js +6 -0
  112. package/esm/AutoComplete/AutoComplete.d.ts +2 -13
  113. package/esm/AutoComplete/AutoComplete.js +52 -68
  114. package/esm/AutoComplete/utils.d.ts +1 -1
  115. package/esm/Avatars/ApplicationAvatar.d.ts +5 -1
  116. package/esm/Avatars/ApplicationAvatar.js +5 -1
  117. package/esm/Avatars/UserAvatar.d.ts +5 -1
  118. package/esm/Avatars/UserAvatar.js +5 -1
  119. package/esm/Badge/Badge.d.ts +2 -12
  120. package/esm/Badge/Badge.js +2 -12
  121. package/esm/Banners/Alert/Alert.d.ts +3 -48
  122. package/esm/Banners/Alert/Alert.js +3 -48
  123. package/esm/Banners/BigBertha/BigBertha.d.ts +3 -31
  124. package/esm/Banners/BigBertha/BigBertha.js +3 -31
  125. package/esm/Banners/Promote/Promote.d.ts +3 -26
  126. package/esm/Banners/Promote/Promote.js +3 -26
  127. package/esm/Button/Button.d.ts +2 -11
  128. package/esm/Button/Button.js +2 -11
  129. package/esm/Button/ButtonGroup.d.ts +3 -3
  130. package/esm/Button/ButtonGroup.js +3 -3
  131. package/esm/Button/IconButton.d.ts +2 -2
  132. package/esm/Button/IconButton.js +2 -2
  133. package/esm/Card/Card.d.ts +5 -1
  134. package/esm/Card/Card.js +5 -1
  135. package/esm/Checkbox/Checkbox.d.ts +2 -3
  136. package/esm/Checkbox/Checkbox.js +2 -3
  137. package/esm/DatePicker/DatePicker/DatePicker.d.ts +5 -0
  138. package/esm/DatePicker/DatePicker/DatePicker.js +5 -0
  139. package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +5 -0
  140. package/esm/DatePicker/DateRangePicker/DateRangePicker.js +6 -0
  141. package/esm/Dropdown/Dropdown.d.ts +3 -8
  142. package/esm/Dropdown/Dropdown.js +3 -8
  143. package/esm/Dropzone/Dropzone.d.ts +5 -0
  144. package/esm/Dropzone/Dropzone.js +6 -0
  145. package/esm/EmptyState/EmptyState.d.ts +2 -21
  146. package/esm/EmptyState/EmptyState.js +2 -21
  147. package/esm/Field/Field.d.ts +2 -31
  148. package/esm/Field/Field.js +2 -31
  149. package/esm/Flag/Flag.d.ts +5 -0
  150. package/esm/Flag/Flag.js +6 -0
  151. package/esm/FlexGrid/FlexGrid.d.ts +5 -0
  152. package/esm/FlexGrid/FlexGrid.js +6 -0
  153. package/esm/HelpUnderline/HelpUnderline.d.ts +5 -0
  154. package/esm/HelpUnderline/HelpUnderline.js +5 -0
  155. package/esm/Input/Input.d.ts +2 -4
  156. package/esm/Input/Input.js +2 -4
  157. package/esm/Insert/Insert.d.ts +3 -29
  158. package/esm/Insert/Insert.js +3 -29
  159. package/esm/KeyboardKey/KeyboardKey.d.ts +5 -0
  160. package/esm/KeyboardKey/KeyboardKey.js +5 -0
  161. package/esm/Link/ButtonLink.d.ts +5 -0
  162. package/esm/Link/ButtonLink.js +5 -0
  163. package/esm/Link/IconButtonLink.d.ts +5 -0
  164. package/esm/Link/IconButtonLink.js +5 -0
  165. package/esm/Link/Link.d.ts +5 -0
  166. package/esm/Link/Link.js +5 -0
  167. package/esm/Medallion/Medallion.d.ts +5 -0
  168. package/esm/Medallion/Medallion.js +6 -0
  169. package/esm/Modal/Modal.d.ts +5 -0
  170. package/esm/Modal/Modal.js +6 -0
  171. package/esm/Pagination/CompactPagination/CompactPagination.d.ts +5 -0
  172. package/esm/Pagination/CompactPagination/CompactPagination.js +6 -0
  173. package/esm/Pagination/DotPagination/DotPagination.d.ts +5 -0
  174. package/esm/Pagination/DotPagination/DotPagination.js +5 -0
  175. package/esm/Pagination/Pagination/Pagination.d.ts +2 -4
  176. package/esm/Pagination/Pagination/Pagination.js +2 -4
  177. package/esm/Popover/Popover.d.ts +5 -0
  178. package/esm/Popover/Popover.js +6 -0
  179. package/esm/ProgressBar/ProgressBar.d.ts +1 -1
  180. package/esm/ProgressBar/ProgressBar.js +1 -1
  181. package/esm/ProgressSpinner/ProgressSpinner.d.ts +5 -0
  182. package/esm/ProgressSpinner/ProgressSpinner.js +27 -19
  183. package/esm/RadioGroup/RadioGroup.d.ts +2 -12
  184. package/esm/RadioGroup/RadioGroup.js +2 -12
  185. package/esm/RangeSlider/RangeSlider.d.ts +2 -4
  186. package/esm/RangeSlider/RangeSlider.js +2 -4
  187. package/esm/ScrollIndicator/ScrollIndicator.d.ts +5 -0
  188. package/esm/ScrollIndicator/ScrollIndicator.js +6 -0
  189. package/esm/Select/Select.d.ts +2 -5
  190. package/esm/Select/Select.js +2 -5
  191. package/esm/Separator/Separator.d.ts +5 -0
  192. package/esm/Separator/Separator.js +5 -0
  193. package/esm/Sidebar/Sidebar.d.ts +5 -0
  194. package/esm/Sidebar/Sidebar.js +6 -0
  195. package/esm/Switch/Switch.d.ts +5 -0
  196. package/esm/Switch/Switch.js +5 -0
  197. package/esm/Tables/DataTable/DataTable.d.ts +2 -16
  198. package/esm/Tables/DataTable/DataTable.js +2 -16
  199. package/esm/Tables/Table/Table.d.ts +2 -16
  200. package/esm/Tables/Table/Table.js +2 -16
  201. package/esm/Tabs/LinkTabs.d.ts +2 -25
  202. package/esm/Tabs/LinkTabs.js +2 -25
  203. package/esm/Tag/Tag.d.ts +2 -19
  204. package/esm/Tag/Tag.js +2 -19
  205. package/esm/TextArea/TextArea.d.ts +5 -0
  206. package/esm/TextArea/TextArea.js +5 -0
  207. package/esm/TextWrap/TextWrap.d.ts +5 -0
  208. package/esm/TextWrap/TextWrap.js +6 -0
  209. package/esm/Toggle/Toggle.d.ts +2 -3
  210. package/esm/Toggle/Toggle.js +2 -3
  211. package/esm/Tooltip/OverflowTooltipWrapper.d.ts +5 -0
  212. package/esm/Tooltip/OverflowTooltipWrapper.js +5 -0
  213. package/esm/Tooltip/Tooltip.d.ts +2 -14
  214. package/esm/Tooltip/Tooltip.js +2 -14
  215. package/esm/Tooltip/TooltipWrapper.d.ts +5 -0
  216. package/esm/Tooltip/TooltipWrapper.js +5 -0
  217. package/esm/UserContent/UserContent.d.ts +5 -0
  218. package/esm/UserContent/UserContent.js +5 -0
  219. package/package.json +1 -1
@@ -3,6 +3,11 @@ import { type PolymorphicIconButtonProps } from "../Button/PolymorphicIconButton
3
3
  export declare type IconButtonLinkProps = Omit<PolymorphicIconButtonProps<"a">, "as" | "ref"> & {
4
4
  href: string;
5
5
  };
6
+ /**
7
+ * The `ButtonLink` component is used to display a link as an icon button.
8
+ *
9
+ * See the [Link documentation page](https://satellite.algolia.com/components/navigation/link) for more information.
10
+ */
6
11
  export declare const IconButtonLink: import("react").ForwardRefExoticComponent<Omit<PolymorphicIconButtonProps<"a">, "ref" | "as"> & {
7
12
  href: string;
8
13
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -7,6 +7,11 @@ import { forwardRef } from "react";
7
7
  import { PolymorphicIconButton } from "../Button/PolymorphicIconButton";
8
8
  import useLinkProps from "../utils/useLinkProps";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
+ /**
11
+ * The `ButtonLink` component is used to display a link as an icon button.
12
+ *
13
+ * See the [Link documentation page](https://satellite.algolia.com/components/navigation/link) for more information.
14
+ */
10
15
  export var IconButtonLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
11
16
  var href = _ref.href,
12
17
  onClick = _ref.onClick,
@@ -5,6 +5,11 @@ export declare type LinkProps = {
5
5
  startIcon?: IconComponentType;
6
6
  endIcon?: IconComponentType;
7
7
  } & AnchorHTMLAttributes<HTMLAnchorElement>;
8
+ /**
9
+ * The `Link` component is used to display a link.
10
+ *
11
+ * See the [Link documentation page](https://satellite.algolia.com/components/navigation/link) for more information.
12
+ */
8
13
  export declare const Link: import("react").ForwardRefExoticComponent<{
9
14
  href: string;
10
15
  startIcon?: IconComponentType | undefined;
package/esm/Link/Link.js CHANGED
@@ -12,6 +12,11 @@ import stl from "../styles/helpers/satellitePrefixer";
12
12
  import useLinkProps from "../utils/useLinkProps";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ /**
16
+ * The `Link` component is used to display a link.
17
+ *
18
+ * See the [Link documentation page](https://satellite.algolia.com/components/navigation/link) for more information.
19
+ */
15
20
  export var Link = /*#__PURE__*/forwardRef(function (_ref, ref) {
16
21
  var className = _ref.className,
17
22
  children = _ref.children,
@@ -8,5 +8,10 @@ export interface MedallionProps {
8
8
  /** @ignore */
9
9
  className?: string;
10
10
  }
11
+ /**
12
+ * The `Medallion` component is used to display a medallion.
13
+ *
14
+ * See the [Medallion documentation page](https://satellite.algolia.com/components/images/medallion) for more information.
15
+ */
11
16
  export declare const Medallion: VFC<MedallionProps>;
12
17
  export default Medallion;
@@ -14,6 +14,12 @@ var VARIANT_CLASSNAMES = {
14
14
  // eslint-disable-next-line @algolia/satellite/prefer-accent -- here we're definitely refering to the color itself
15
15
  white: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["medallion-white text-nebula-500"])))
16
16
  };
17
+
18
+ /**
19
+ * The `Medallion` component is used to display a medallion.
20
+ *
21
+ * See the [Medallion documentation page](https://satellite.algolia.com/components/images/medallion) for more information.
22
+ */
17
23
  export var Medallion = function Medallion(_ref) {
18
24
  var Icon = _ref.icon,
19
25
  _ref$variant = _ref.variant,
@@ -52,5 +52,10 @@ declare type ModalSubComponents = {
52
52
  Footer: typeof ModalFooter;
53
53
  Section: typeof ModalSection;
54
54
  };
55
+ /**
56
+ * The `Modal` component is a dialog window that is used to display content on top of an application.
57
+ *
58
+ * See the [Modal documentation page](https://satellite.algolia.com/components/overlay/modal) for more information.
59
+ */
55
60
  export declare const Modal: VFC<ModalProps> & ModalSubComponents;
56
61
  export default Modal;
@@ -24,6 +24,12 @@ var SIZE_CLASSNAMES = {
24
24
  medium: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["modal-dialog-medium"]))),
25
25
  large: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["modal-dialog-large"])))
26
26
  };
27
+
28
+ /**
29
+ * The `Modal` component is a dialog window that is used to display content on top of an application.
30
+ *
31
+ * See the [Modal documentation page](https://satellite.algolia.com/components/overlay/modal) for more information.
32
+ */
27
33
  export var Modal = function Modal(_ref) {
28
34
  var title = _ref.title,
29
35
  className = _ref.className,
@@ -27,5 +27,10 @@ export declare type CompactPaginationProps = DeterminateCompactPaginationProps |
27
27
  export declare const isDeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is DeterminateCompactPaginationProps;
28
28
  /** @ignore */
29
29
  export declare const isIndeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is IndeterminateCompactPaginationProps;
30
+ /**
31
+ * The `CompactPagination` component is used to help our users to move through an ordered collection of items represented by a page number and arrows.
32
+ *
33
+ * See the [Compact Pagination documentation page](https://satellite.algolia.com/components/navigation/compact-pagination) for more information.
34
+ */
30
35
  export declare const CompactPagination: VFC<CompactPaginationProps>;
31
36
  export default CompactPagination;
@@ -27,6 +27,12 @@ export var isDeterminateCompactPaginationProps = function isDeterminateCompactPa
27
27
  export var isIndeterminateCompactPaginationProps = function isIndeterminateCompactPaginationProps(props) {
28
28
  return !isDeterminateCompactPaginationProps(props);
29
29
  };
30
+
31
+ /**
32
+ * The `CompactPagination` component is used to help our users to move through an ordered collection of items represented by a page number and arrows.
33
+ *
34
+ * See the [Compact Pagination documentation page](https://satellite.algolia.com/components/navigation/compact-pagination) for more information.
35
+ */
30
36
  export var CompactPagination = function CompactPagination(props) {
31
37
  var _props$label;
32
38
  var contextLocale = useLocale("compactPagination");
@@ -11,5 +11,10 @@ export declare type DotPaginationProps<T extends number> = {
11
11
  size?: "small" | "medium";
12
12
  locale?: DotPaginationLocale;
13
13
  };
14
+ /**
15
+ * The `DotPagination` component is used to help our users to move through an ordered collection of items represented by dots.
16
+ *
17
+ * See the [Dot Pagination documentation page](https://satellite.algolia.com/components/navigation/dot-pagination) for more information.
18
+ */
14
19
  export declare const DotPagination: <T extends number>({ currentPage, onChange, nbPages, size, locale: propsLocale, }: DotPaginationProps<T>) => JSX.Element;
15
20
  export default DotPagination;
@@ -11,6 +11,11 @@ var DEFAULT_DOT_PAGINATION_LOCALE = {
11
11
  return "Go to page ".concat(pageIdx);
12
12
  }
13
13
  };
14
+ /**
15
+ * The `DotPagination` component is used to help our users to move through an ordered collection of items represented by dots.
16
+ *
17
+ * See the [Dot Pagination documentation page](https://satellite.algolia.com/components/navigation/dot-pagination) for more information.
18
+ */
14
19
  export var DotPagination = function DotPagination(_ref) {
15
20
  var currentPage = _ref.currentPage,
16
21
  onChange = _ref.onChange,
@@ -12,11 +12,9 @@ export interface PaginationProps {
12
12
  locale?: PaginationLocale;
13
13
  }
14
14
  /**
15
- * Use pagination to help our users to move through an ordered collection of items.
15
+ * The `Pagination` component is used to help our users to move through an ordered collection of items.
16
16
  *
17
- * ## Best practices
18
- * - Don't use on list with less than 20 items
19
- * - Place the pagination at the bottom of the split item
17
+ * See the [Pagination documentation page](https://satellite.algolia.com/components/navigation/pagination) for more information.
20
18
  */
21
19
  export declare const Pagination: VFC<PaginationProps>;
22
20
  export default Pagination;
@@ -47,11 +47,9 @@ var Group = function Group(_ref) {
47
47
  };
48
48
 
49
49
  /**
50
- * Use pagination to help our users to move through an ordered collection of items.
50
+ * The `Pagination` component is used to help our users to move through an ordered collection of items.
51
51
  *
52
- * ## Best practices
53
- * - Don't use on list with less than 20 items
54
- * - Place the pagination at the bottom of the split item
52
+ * See the [Pagination documentation page](https://satellite.algolia.com/components/navigation/pagination) for more information.
55
53
  */
56
54
  export var Pagination = function Pagination(_ref2) {
57
55
  var currentPage = _ref2.currentPage,
@@ -1,5 +1,10 @@
1
1
  import type { VFC } from "react";
2
2
  import type { PopoverProps } from "./types";
3
3
  export declare const POPOVER_ARROW_TEST_ID = "arrow";
4
+ /**
5
+ * The `Popover` component is an interactive contextual overlay that provides additional content or actions.
6
+ *
7
+ * See the [Popover documentation page](https://satellite.algolia.com/components/overlay/popover) for more information.
8
+ */
4
9
  export declare const Popover: VFC<PopoverProps>;
5
10
  export default Popover;
@@ -20,6 +20,12 @@ var DEFAULT_POPOVER_LOCALE = {
20
20
  dismissText: "Dismiss"
21
21
  };
22
22
  export var POPOVER_ARROW_TEST_ID = "arrow";
23
+
24
+ /**
25
+ * The `Popover` component is an interactive contextual overlay that provides additional content or actions.
26
+ *
27
+ * See the [Popover documentation page](https://satellite.algolia.com/components/overlay/popover) for more information.
28
+ */
23
29
  export var Popover = function Popover(_ref) {
24
30
  var children = _ref.children,
25
31
  title = _ref.title,
@@ -8,7 +8,7 @@ export interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
8
8
  barClassName?: string;
9
9
  }
10
10
  /**
11
- * A progress bar visually indicates the completion status of a task, updating in real-time to guide users.
11
+ * The `ProgressBar` component visually indicates the completion status of a task, updating in real-time to guide users.
12
12
  *
13
13
  * See the [Progress Bar documentation page](https://satellite.algolia.com/components/feedback/progress-bar) for more information.
14
14
  */
@@ -13,7 +13,7 @@ import { clamp } from "../utils/clamp";
13
13
  import { prefersReducedMotion } from "../utils/prefersReducedMotion";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  /**
16
- * A progress bar visually indicates the completion status of a task, updating in real-time to guide users.
16
+ * The `ProgressBar` component visually indicates the completion status of a task, updating in real-time to guide users.
17
17
  *
18
18
  * See the [Progress Bar documentation page](https://satellite.algolia.com/components/feedback/progress-bar) for more information.
19
19
  */
@@ -5,5 +5,10 @@ export interface ProgressSpinnerProps extends SVGAttributes<SVGSVGElement> {
5
5
  thickness?: number;
6
6
  align?: ProgressSpinnerAlign;
7
7
  }
8
+ /**
9
+ * The `ProgressSpinner` component is used for loading data or performing actions without an instant effect. Spinners reassure we're processing their actions without revealing what's going on behind-the-scenes.
10
+ *
11
+ * See the [Progress Spinner documentation page](https://satellite.algolia.com/components/feedback/progress-spinner) for more information.
12
+ */
8
13
  export declare const ProgressSpinner: VFC<ProgressSpinnerProps>;
9
14
  export default ProgressSpinner;
@@ -15,7 +15,11 @@ var ALIGN_CLASSNAMES = {
15
15
  right: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["ml-auto"])))
16
16
  };
17
17
 
18
- // Took heavy inspiration from https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/CircularProgress/CircularProgress.js
18
+ /**
19
+ * The `ProgressSpinner` component is used for loading data or performing actions without an instant effect. Spinners reassure we're processing their actions without revealing what's going on behind-the-scenes.
20
+ *
21
+ * See the [Progress Spinner documentation page](https://satellite.algolia.com/components/feedback/progress-spinner) for more information.
22
+ */
19
23
  export var ProgressSpinner = function ProgressSpinner(_ref) {
20
24
  var className = _ref.className,
21
25
  _ref$size = _ref.size,
@@ -24,23 +28,27 @@ export var ProgressSpinner = function ProgressSpinner(_ref) {
24
28
  thickness = _ref$thickness === void 0 ? 2 : _ref$thickness,
25
29
  align = _ref.align,
26
30
  svgProps = _objectWithoutProperties(_ref, _excluded);
27
- return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({}, svgProps), {}, {
28
- className: cx(stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["progress-spinner"]))), align && ALIGN_CLASSNAMES[align], className),
29
- viewBox: "".concat(size / 2, " ").concat(size / 2, " ").concat(size, " ").concat(size),
30
- width: size,
31
- height: size,
32
- role: "status",
33
- "aria-busy": true,
34
- "aria-live": "polite",
35
- children: [/*#__PURE__*/_jsx("title", {
36
- children: "Loading spinner"
37
- }), /*#__PURE__*/_jsx("circle", {
38
- cx: size,
39
- cy: size,
40
- r: (size - thickness) / 2,
41
- fill: "none",
42
- strokeWidth: thickness
43
- })]
44
- }));
31
+ return (
32
+ /*#__PURE__*/
33
+ // Took heavy inspiration from https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/CircularProgress/CircularProgress.js
34
+ _jsxs("svg", _objectSpread(_objectSpread({}, svgProps), {}, {
35
+ className: cx(stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["progress-spinner"]))), align && ALIGN_CLASSNAMES[align], className),
36
+ viewBox: "".concat(size / 2, " ").concat(size / 2, " ").concat(size, " ").concat(size),
37
+ width: size,
38
+ height: size,
39
+ role: "status",
40
+ "aria-busy": true,
41
+ "aria-live": "polite",
42
+ children: [/*#__PURE__*/_jsx("title", {
43
+ children: "Loading spinner"
44
+ }), /*#__PURE__*/_jsx("circle", {
45
+ cx: size,
46
+ cy: size,
47
+ r: (size - thickness) / 2,
48
+ fill: "none",
49
+ strokeWidth: thickness
50
+ })]
51
+ }))
52
+ );
45
53
  };
46
54
  export default ProgressSpinner;
@@ -23,19 +23,9 @@ declare type RadioGroupSubComponents = {
23
23
  };
24
24
  export declare const RadioGroupItem: VFC<RadioGroupItemProps>;
25
25
  /**
26
- * Use radio buttons when users have to make a single selection from a list of options.
26
+ * The `RadioGroup` component presents mutually exclusive options, allowing users to make a single selection from a list.
27
27
  *
28
- * - Use radio buttons when a user has to choose from at least 2 options.
29
- * - Whenever possible, provide a default, preselected option.
30
- * - Choices provided in the list of options should be mutually exclusive so that a user doesn't struggle between two values. Provide a clear distinction.
31
- * - Radio groups are always stacked vertically.
32
- * - List options in a radio group in a logical order, for example:
33
- * - Most likely to least likely to be selected.
34
- * - Simplest to most complex operation.
35
- * - Least to most risk.
36
- * - etc.
37
- * - If you need to have an unselected state, just add a radio button with a *None* option.
38
- * - Sometimes, you might want to include an *Other* option (Usually followed by a text input if a user needs to provide a specific answer)
28
+ * See the [Radio Group documentation page](https://satellite.algolia.com/components/controls/radio-group) for more information.
39
29
  */
40
30
  export declare const RadioGroup: VFC<RadioGroupProps> & RadioGroupSubComponents;
41
31
  export default RadioGroup;
@@ -43,19 +43,9 @@ export var RadioGroupItem = function RadioGroupItem(_ref) {
43
43
  };
44
44
 
45
45
  /**
46
- * Use radio buttons when users have to make a single selection from a list of options.
46
+ * The `RadioGroup` component presents mutually exclusive options, allowing users to make a single selection from a list.
47
47
  *
48
- * - Use radio buttons when a user has to choose from at least 2 options.
49
- * - Whenever possible, provide a default, preselected option.
50
- * - Choices provided in the list of options should be mutually exclusive so that a user doesn't struggle between two values. Provide a clear distinction.
51
- * - Radio groups are always stacked vertically.
52
- * - List options in a radio group in a logical order, for example:
53
- * - Most likely to least likely to be selected.
54
- * - Simplest to most complex operation.
55
- * - Least to most risk.
56
- * - etc.
57
- * - If you need to have an unselected state, just add a radio button with a *None* option.
58
- * - Sometimes, you might want to include an *Other* option (Usually followed by a text input if a user needs to provide a specific answer)
48
+ * See the [Radio Group documentation page](https://satellite.algolia.com/components/controls/radio-group) for more information.
59
49
  */
60
50
  export var RadioGroup = function RadioGroup(_ref2) {
61
51
  var className = _ref2.className,
@@ -24,11 +24,9 @@ export interface RangeSliderProps<Value extends RangeSliderValue = number> {
24
24
  }
25
25
  declare const RangeSliderInternal: <Value extends RangeSliderValue = number>({ className, value, defaultValue, onChange, onCommit, disabled, min, max, track1Color, track2Color, ...otherProps }: RangeSliderProps<Value>, ref: ForwardedRef<HTMLSpanElement>) => JSX.Element;
26
26
  /**
27
- * A range slider is an input field where users select one or two numeric values within a given range (minimum and maximum values).
27
+ * The `RangeSlider` component is an input field where users select one or two numeric values within a given range (minimum and maximum values).
28
28
  *
29
- * - Range sliders should always be used with a label
30
- * - Provide min and max value whenever possible
31
- * - Provide text input for better accessibility
29
+ * See the [Range Slider documentation page](https://satellite.algolia.com/components/controls/range-slider) for more information.
32
30
  */
33
31
  export declare const RangeSlider: (<Value extends RangeSliderValue>(props: RangeSliderProps<Value> & {
34
32
  ref?: ForwardedRef<HTMLSpanElement> | undefined;
@@ -90,11 +90,9 @@ var RangeSliderInternal = function RangeSliderInternal(_ref2, ref) {
90
90
  };
91
91
 
92
92
  /**
93
- * A range slider is an input field where users select one or two numeric values within a given range (minimum and maximum values).
93
+ * The `RangeSlider` component is an input field where users select one or two numeric values within a given range (minimum and maximum values).
94
94
  *
95
- * - Range sliders should always be used with a label
96
- * - Provide min and max value whenever possible
97
- * - Provide text input for better accessibility
95
+ * See the [Range Slider documentation page](https://satellite.algolia.com/components/controls/range-slider) for more information.
98
96
  */
99
97
  export var RangeSlider = /*#__PURE__*/forwardRef(RangeSliderInternal);
100
98
  RangeSlider.displayName = "RangeSlider";
@@ -10,5 +10,10 @@ export interface ScrollIndicatorProps {
10
10
  variant?: ScrollIndicatorVariant;
11
11
  children: ReactNode;
12
12
  }
13
+ /**
14
+ * The `ScrollIndicator` component is used to display a top and bottom color gradient depending on the scroll position.
15
+ *
16
+ * See the [Scroll Indicator documentation page](https://satellite.algolia.com/layouts/scroll-indicator) for more information.
17
+ */
13
18
  export declare const ScrollIndicator: VFC<ScrollIndicatorProps>;
14
19
  export default ScrollIndicator;
@@ -53,6 +53,12 @@ var VARIANT_CLASSNAMES = {
53
53
  light: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["scroll-indicator"]))),
54
54
  dark: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["scroll-indicator scroll-indicator-dark"])))
55
55
  };
56
+
57
+ /**
58
+ * The `ScrollIndicator` component is used to display a top and bottom color gradient depending on the scroll position.
59
+ *
60
+ * See the [Scroll Indicator documentation page](https://satellite.algolia.com/layouts/scroll-indicator) for more information.
61
+ */
56
62
  export var ScrollIndicator = function ScrollIndicator(_ref) {
57
63
  var _ref$tagName = _ref.tagName,
58
64
  tagName = _ref$tagName === void 0 ? "div" : _ref$tagName,
@@ -4,12 +4,9 @@ export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
4
4
  variant?: SelectVariants;
5
5
  }
6
6
  /**
7
- * Select lets users choose one option from an options menu. Consider select when you have 3 or more options, to avoid cluttering the interface.
7
+ * The `Select` component provides a dropdown menu, allowing users to choose one option from a list.
8
8
  *
9
- * ## Usability best practices
10
- * - Use for selecting between 3 or more predefined options (consider radio buttons for less than 3 options)
11
- * - Have a default option selected whenever possible
12
- * - Use `Select` as a placeholder option only if there's no logical default option
9
+ * See the [Select documentation page](https://satellite.algolia.com/components/forms/select) for more information.
13
10
  */
14
11
  export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLSelectElement>>;
15
12
  export default Select;
@@ -16,12 +16,9 @@ var VARIANT_CLASSNAMES = {
16
16
  };
17
17
 
18
18
  /**
19
- * Select lets users choose one option from an options menu. Consider select when you have 3 or more options, to avoid cluttering the interface.
19
+ * The `Select` component provides a dropdown menu, allowing users to choose one option from a list.
20
20
  *
21
- * ## Usability best practices
22
- * - Use for selecting between 3 or more predefined options (consider radio buttons for less than 3 options)
23
- * - Have a default option selected whenever possible
24
- * - Use `Select` as a placeholder option only if there's no logical default option
21
+ * See the [Select documentation page](https://satellite.algolia.com/components/forms/select) for more information.
25
22
  */
26
23
  export var Select = /*#__PURE__*/forwardRef(function (_ref, ref) {
27
24
  var _ref$variant = _ref.variant,
@@ -5,5 +5,10 @@ export interface SeparatorProps {
5
5
  interactive?: boolean;
6
6
  orientation?: RadixSeparator.SeparatorProps["orientation"];
7
7
  }
8
+ /**
9
+ * The `Separator` component is used to visually separate content.
10
+ *
11
+ * See the [Separator documentation page](https://satellite.algolia.com/components/misc/separator) for more information.
12
+ */
8
13
  export declare const Separator: VFC<SeparatorProps>;
9
14
  export default Separator;
@@ -7,6 +7,11 @@ import * as RadixSeparator from "@radix-ui/react-separator";
7
7
  import cx from "clsx";
8
8
  import stl from "../styles/helpers/satellitePrefixer";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
+ /**
11
+ * The `Separator` component is used to visually separate content.
12
+ *
13
+ * See the [Separator documentation page](https://satellite.algolia.com/components/misc/separator) for more information.
14
+ */
10
15
  export var Separator = function Separator(_ref) {
11
16
  var className = _ref.className,
12
17
  interactive = _ref.interactive,
@@ -33,4 +33,9 @@ export interface SidebarProps {
33
33
  location: SidebarLocation;
34
34
  children?: ReactNode;
35
35
  }
36
+ /**
37
+ * The `Sidebar` component is used to display a sidebar of links.
38
+ *
39
+ * See the [Sidebar documentation page](https://satellite.algolia.com/layouts/sidebar) for more information.
40
+ */
36
41
  export declare const Sidebar: VFC<SidebarProps>;
@@ -15,6 +15,12 @@ var DEFAULT_SIDEBAR_LOCALE = {
15
15
  primarySidebarLabel: "Primary Navigation Sidebar",
16
16
  secondarySidebarLabel: "Secondary Navigation Sidebar"
17
17
  };
18
+
19
+ /**
20
+ * The `Sidebar` component is used to display a sidebar of links.
21
+ *
22
+ * See the [Sidebar documentation page](https://satellite.algolia.com/layouts/sidebar) for more information.
23
+ */
18
24
  export var Sidebar = function Sidebar(_ref) {
19
25
  var id = _ref.id,
20
26
  className = _ref.className,
@@ -10,5 +10,10 @@ export interface SwitchProps {
10
10
  size?: SwitchSize;
11
11
  name?: string;
12
12
  }
13
+ /**
14
+ * The `Switch` component is used to select one option among a list of options.
15
+ *
16
+ * See the [Switch documentation page](https://satellite.algolia.com/components/controls/switch) for more information.
17
+ */
13
18
  export declare const Switch: VFC<SwitchProps>;
14
19
  export default Switch;
@@ -11,6 +11,11 @@ import uniqueId from "../utils/uniqueId";
11
11
  import { buildAnimationKeySelector } from "./utils";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ /**
15
+ * The `Switch` component is used to select one option among a list of options.
16
+ *
17
+ * See the [Switch documentation page](https://satellite.algolia.com/components/controls/switch) for more information.
18
+ */
14
19
  export var Switch = function Switch(_ref) {
15
20
  var className = _ref.className,
16
21
  children = _ref.children,
@@ -47,23 +47,9 @@ declare type DataTableWithoutSelectMode = {
47
47
  };
48
48
  export declare type DataTableProps<Item> = BaseDataTableProps<Item> & (DataTableWithSelectMode<Item> | DataTableWithoutSelectMode);
49
49
  /**
50
- * Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
50
+ * The `DataTable` component displays tabular data in a grid layout. It allows users to view, sort, filter, and interact with data in a structured way.
51
51
  *
52
- * #### Do
53
- *
54
- * - Organize columns and rows based on the needs of your users. To help people read the table, order the columns by importance from left to right, with the key pieces of content opening the row
55
- * - Include units of measurement symbols in the header so you don't need to repeat them throughout the columns
56
- * - Indicate sorting capabilities of a column with a chevron in the cell header
57
- * - Start by columns with highest value to the user, and continue with less important ones
58
- *
59
- * #### Do not
60
- *
61
- * - Center align text in cells
62
- *
63
- * ## Best practices
64
- *
65
- * - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
66
- * - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
52
+ * See the [Data Table documentation page](https://satellite.algolia.com/layouts/data-table) for more information.
67
53
  */
68
54
  export declare const DataTable: <Item extends {}>({ data, itemId, columns, onChange, status, noDataContent, errorContent, sorting, sortMode, pagination, selectMode, selection, onSelectionChange, canSelectItem, canHoverRow, onRowHoveredChanged, locale: propsLocale, }: DataTableProps<Item>) => JSX.Element;
69
55
  export default DataTable;
@@ -38,23 +38,9 @@ var DEFAULT_GET_ITEM_ID = function DEFAULT_GET_ITEM_ID(_, idx) {
38
38
  };
39
39
 
40
40
  /**
41
- * Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
41
+ * The `DataTable` component displays tabular data in a grid layout. It allows users to view, sort, filter, and interact with data in a structured way.
42
42
  *
43
- * #### Do
44
- *
45
- * - Organize columns and rows based on the needs of your users. To help people read the table, order the columns by importance from left to right, with the key pieces of content opening the row
46
- * - Include units of measurement symbols in the header so you don't need to repeat them throughout the columns
47
- * - Indicate sorting capabilities of a column with a chevron in the cell header
48
- * - Start by columns with highest value to the user, and continue with less important ones
49
- *
50
- * #### Do not
51
- *
52
- * - Center align text in cells
53
- *
54
- * ## Best practices
55
- *
56
- * - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
57
- * - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
43
+ * See the [Data Table documentation page](https://satellite.algolia.com/layouts/data-table) for more information.
58
44
  */
59
45
  export var DataTable = function DataTable(_ref) {
60
46
  var data = _ref.data,
@@ -6,23 +6,9 @@ export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTa
6
6
  highlight?: boolean;
7
7
  }
8
8
  /**
9
- * Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
9
+ * The `Table` component is used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
10
10
  *
11
- * #### Do
12
- *
13
- * - Organize columns and rows based on the needs of your users. To help people read the table, order the columns by importance from left to right, with the key pieces of content opening the row
14
- * - Include units of measurement symbols in the header so you don't need to repeat them throughout the columns
15
- * - Indicate sorting capabilities of a column with a chevron in the cell header
16
- * - Start by columns with highest value to the user, and continue with less important ones
17
- *
18
- * #### Do not
19
- *
20
- * - Center align text in cells
21
- *
22
- * ## Best practices
23
- *
24
- * - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
25
- * - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
11
+ * See the [Table documentation page](https://satellite.algolia.com/layouts/table) for more information.
26
12
  */
27
13
  export declare const Table: VFC<TableProps>;
28
14
  export default Table;
@@ -11,23 +11,9 @@ import TableFooter from "./components/TableFooter";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
13
  /**
14
- * Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
14
+ * The `Table` component is used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
15
15
  *
16
- * #### Do
17
- *
18
- * - Organize columns and rows based on the needs of your users. To help people read the table, order the columns by importance from left to right, with the key pieces of content opening the row
19
- * - Include units of measurement symbols in the header so you don't need to repeat them throughout the columns
20
- * - Indicate sorting capabilities of a column with a chevron in the cell header
21
- * - Start by columns with highest value to the user, and continue with less important ones
22
- *
23
- * #### Do not
24
- *
25
- * - Center align text in cells
26
- *
27
- * ## Best practices
28
- *
29
- * - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
30
- * - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
16
+ * See the [Table documentation page](https://satellite.algolia.com/layouts/table) for more information.
31
17
  */
32
18
  export var Table = function Table(_ref) {
33
19
  var className = _ref.className,