@algolia/satellite 1.0.0-beta.171 → 1.0.0-beta.173

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 (223) 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 +17 -30
  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/cjs/index.d.ts +1 -0
  111. package/cjs/index.js +12 -0
  112. package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +5 -0
  113. package/esm/AnnouncementBadge/AnnouncementBadge.js +6 -0
  114. package/esm/AutoComplete/AutoComplete.d.ts +2 -13
  115. package/esm/AutoComplete/AutoComplete.js +17 -30
  116. package/esm/AutoComplete/utils.d.ts +1 -1
  117. package/esm/Avatars/ApplicationAvatar.d.ts +5 -1
  118. package/esm/Avatars/ApplicationAvatar.js +5 -1
  119. package/esm/Avatars/UserAvatar.d.ts +5 -1
  120. package/esm/Avatars/UserAvatar.js +5 -1
  121. package/esm/Badge/Badge.d.ts +2 -12
  122. package/esm/Badge/Badge.js +2 -12
  123. package/esm/Banners/Alert/Alert.d.ts +3 -48
  124. package/esm/Banners/Alert/Alert.js +3 -48
  125. package/esm/Banners/BigBertha/BigBertha.d.ts +3 -31
  126. package/esm/Banners/BigBertha/BigBertha.js +3 -31
  127. package/esm/Banners/Promote/Promote.d.ts +3 -26
  128. package/esm/Banners/Promote/Promote.js +3 -26
  129. package/esm/Button/Button.d.ts +2 -11
  130. package/esm/Button/Button.js +2 -11
  131. package/esm/Button/ButtonGroup.d.ts +3 -3
  132. package/esm/Button/ButtonGroup.js +3 -3
  133. package/esm/Button/IconButton.d.ts +2 -2
  134. package/esm/Button/IconButton.js +2 -2
  135. package/esm/Card/Card.d.ts +5 -1
  136. package/esm/Card/Card.js +5 -1
  137. package/esm/Checkbox/Checkbox.d.ts +2 -3
  138. package/esm/Checkbox/Checkbox.js +2 -3
  139. package/esm/DatePicker/DatePicker/DatePicker.d.ts +5 -0
  140. package/esm/DatePicker/DatePicker/DatePicker.js +5 -0
  141. package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +5 -0
  142. package/esm/DatePicker/DateRangePicker/DateRangePicker.js +6 -0
  143. package/esm/Dropdown/Dropdown.d.ts +3 -8
  144. package/esm/Dropdown/Dropdown.js +3 -8
  145. package/esm/Dropzone/Dropzone.d.ts +5 -0
  146. package/esm/Dropzone/Dropzone.js +6 -0
  147. package/esm/EmptyState/EmptyState.d.ts +2 -21
  148. package/esm/EmptyState/EmptyState.js +2 -21
  149. package/esm/Field/Field.d.ts +2 -31
  150. package/esm/Field/Field.js +2 -31
  151. package/esm/Flag/Flag.d.ts +5 -0
  152. package/esm/Flag/Flag.js +6 -0
  153. package/esm/FlexGrid/FlexGrid.d.ts +5 -0
  154. package/esm/FlexGrid/FlexGrid.js +6 -0
  155. package/esm/HelpUnderline/HelpUnderline.d.ts +5 -0
  156. package/esm/HelpUnderline/HelpUnderline.js +5 -0
  157. package/esm/Input/Input.d.ts +2 -4
  158. package/esm/Input/Input.js +2 -4
  159. package/esm/Insert/Insert.d.ts +3 -29
  160. package/esm/Insert/Insert.js +3 -29
  161. package/esm/KeyboardKey/KeyboardKey.d.ts +5 -0
  162. package/esm/KeyboardKey/KeyboardKey.js +5 -0
  163. package/esm/Link/ButtonLink.d.ts +5 -0
  164. package/esm/Link/ButtonLink.js +5 -0
  165. package/esm/Link/IconButtonLink.d.ts +5 -0
  166. package/esm/Link/IconButtonLink.js +5 -0
  167. package/esm/Link/Link.d.ts +5 -0
  168. package/esm/Link/Link.js +5 -0
  169. package/esm/Medallion/Medallion.d.ts +5 -0
  170. package/esm/Medallion/Medallion.js +6 -0
  171. package/esm/Modal/Modal.d.ts +5 -0
  172. package/esm/Modal/Modal.js +6 -0
  173. package/esm/Pagination/CompactPagination/CompactPagination.d.ts +5 -0
  174. package/esm/Pagination/CompactPagination/CompactPagination.js +6 -0
  175. package/esm/Pagination/DotPagination/DotPagination.d.ts +5 -0
  176. package/esm/Pagination/DotPagination/DotPagination.js +5 -0
  177. package/esm/Pagination/Pagination/Pagination.d.ts +2 -4
  178. package/esm/Pagination/Pagination/Pagination.js +2 -4
  179. package/esm/Popover/Popover.d.ts +5 -0
  180. package/esm/Popover/Popover.js +6 -0
  181. package/esm/ProgressBar/ProgressBar.d.ts +1 -1
  182. package/esm/ProgressBar/ProgressBar.js +1 -1
  183. package/esm/ProgressSpinner/ProgressSpinner.d.ts +5 -0
  184. package/esm/ProgressSpinner/ProgressSpinner.js +27 -19
  185. package/esm/RadioGroup/RadioGroup.d.ts +2 -12
  186. package/esm/RadioGroup/RadioGroup.js +2 -12
  187. package/esm/RangeSlider/RangeSlider.d.ts +2 -4
  188. package/esm/RangeSlider/RangeSlider.js +2 -4
  189. package/esm/ScrollIndicator/ScrollIndicator.d.ts +5 -0
  190. package/esm/ScrollIndicator/ScrollIndicator.js +6 -0
  191. package/esm/Select/Select.d.ts +2 -5
  192. package/esm/Select/Select.js +2 -5
  193. package/esm/Separator/Separator.d.ts +5 -0
  194. package/esm/Separator/Separator.js +5 -0
  195. package/esm/Sidebar/Sidebar.d.ts +5 -0
  196. package/esm/Sidebar/Sidebar.js +6 -0
  197. package/esm/Switch/Switch.d.ts +5 -0
  198. package/esm/Switch/Switch.js +5 -0
  199. package/esm/Tables/DataTable/DataTable.d.ts +2 -16
  200. package/esm/Tables/DataTable/DataTable.js +2 -16
  201. package/esm/Tables/Table/Table.d.ts +2 -16
  202. package/esm/Tables/Table/Table.js +2 -16
  203. package/esm/Tabs/LinkTabs.d.ts +2 -25
  204. package/esm/Tabs/LinkTabs.js +2 -25
  205. package/esm/Tag/Tag.d.ts +2 -19
  206. package/esm/Tag/Tag.js +2 -19
  207. package/esm/TextArea/TextArea.d.ts +5 -0
  208. package/esm/TextArea/TextArea.js +5 -0
  209. package/esm/TextWrap/TextWrap.d.ts +5 -0
  210. package/esm/TextWrap/TextWrap.js +6 -0
  211. package/esm/Toggle/Toggle.d.ts +2 -3
  212. package/esm/Toggle/Toggle.js +2 -3
  213. package/esm/Tooltip/OverflowTooltipWrapper.d.ts +5 -0
  214. package/esm/Tooltip/OverflowTooltipWrapper.js +5 -0
  215. package/esm/Tooltip/Tooltip.d.ts +2 -14
  216. package/esm/Tooltip/Tooltip.js +2 -14
  217. package/esm/Tooltip/TooltipWrapper.d.ts +5 -0
  218. package/esm/Tooltip/TooltipWrapper.js +5 -0
  219. package/esm/UserContent/UserContent.d.ts +5 -0
  220. package/esm/UserContent/UserContent.js +5 -0
  221. package/esm/index.d.ts +1 -0
  222. package/esm/index.js +1 -0
  223. package/package.json +2 -1
@@ -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/cjs/Link/Link.js CHANGED
@@ -18,6 +18,11 @@ var _templateObject, _templateObject2, _templateObject3;
18
18
  var _excluded = ["className", "children", "startIcon", "endIcon", "href", "onClick"];
19
19
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
20
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
+ /**
22
+ * The `Link` component is used to display a link.
23
+ *
24
+ * See the [Link documentation page](https://satellite.algolia.com/components/navigation/link) for more information.
25
+ */
21
26
  var Link = exports.Link = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
22
27
  var className = _ref.className,
23
28
  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;
@@ -21,6 +21,12 @@ var VARIANT_CLASSNAMES = {
21
21
  // eslint-disable-next-line @algolia/satellite/prefer-accent -- here we're definitely refering to the color itself
22
22
  white: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["medallion-white text-nebula-500"])))
23
23
  };
24
+
25
+ /**
26
+ * The `Medallion` component is used to display a medallion.
27
+ *
28
+ * See the [Medallion documentation page](https://satellite.algolia.com/components/images/medallion) for more information.
29
+ */
24
30
  var Medallion = exports.Medallion = function Medallion(_ref) {
25
31
  var Icon = _ref.icon,
26
32
  _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;
@@ -33,6 +33,12 @@ var SIZE_CLASSNAMES = {
33
33
  medium: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["modal-dialog-medium"]))),
34
34
  large: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["modal-dialog-large"])))
35
35
  };
36
+
37
+ /**
38
+ * The `Modal` component is a dialog window that is used to display content on top of an application.
39
+ *
40
+ * See the [Modal documentation page](https://satellite.algolia.com/components/overlay/modal) for more information.
41
+ */
36
42
  var Modal = exports.Modal = function Modal(_ref) {
37
43
  var title = _ref.title,
38
44
  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;
@@ -33,6 +33,12 @@ var isDeterminateCompactPaginationProps = exports.isDeterminateCompactPagination
33
33
  var isIndeterminateCompactPaginationProps = exports.isIndeterminateCompactPaginationProps = function isIndeterminateCompactPaginationProps(props) {
34
34
  return !isDeterminateCompactPaginationProps(props);
35
35
  };
36
+
37
+ /**
38
+ * The `CompactPagination` component is used to help our users to move through an ordered collection of items represented by a page number and arrows.
39
+ *
40
+ * See the [Compact Pagination documentation page](https://satellite.algolia.com/components/navigation/compact-pagination) for more information.
41
+ */
36
42
  var CompactPagination = exports.CompactPagination = function CompactPagination(props) {
37
43
  var _props$label;
38
44
  var contextLocale = (0, _Satellite.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;
@@ -18,6 +18,11 @@ var DEFAULT_DOT_PAGINATION_LOCALE = {
18
18
  return "Go to page ".concat(pageIdx);
19
19
  }
20
20
  };
21
+ /**
22
+ * The `DotPagination` component is used to help our users to move through an ordered collection of items represented by dots.
23
+ *
24
+ * See the [Dot Pagination documentation page](https://satellite.algolia.com/components/navigation/dot-pagination) for more information.
25
+ */
21
26
  var DotPagination = exports.DotPagination = function DotPagination(_ref) {
22
27
  var currentPage = _ref.currentPage,
23
28
  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;
@@ -55,11 +55,9 @@ var Group = function Group(_ref) {
55
55
  };
56
56
 
57
57
  /**
58
- * Use pagination to help our users to move through an ordered collection of items.
58
+ * The `Pagination` component is used to help our users to move through an ordered collection of items.
59
59
  *
60
- * ## Best practices
61
- * - Don't use on list with less than 20 items
62
- * - Place the pagination at the bottom of the split item
60
+ * See the [Pagination documentation page](https://satellite.algolia.com/components/navigation/pagination) for more information.
63
61
  */
64
62
  var Pagination = exports.Pagination = function Pagination(_ref2) {
65
63
  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;
@@ -28,6 +28,12 @@ var DEFAULT_POPOVER_LOCALE = {
28
28
  dismissText: "Dismiss"
29
29
  };
30
30
  var POPOVER_ARROW_TEST_ID = exports.POPOVER_ARROW_TEST_ID = "arrow";
31
+
32
+ /**
33
+ * The `Popover` component is an interactive contextual overlay that provides additional content or actions.
34
+ *
35
+ * See the [Popover documentation page](https://satellite.algolia.com/components/overlay/popover) for more information.
36
+ */
31
37
  var Popover = exports.Popover = function Popover(_ref) {
32
38
  var children = _ref.children,
33
39
  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
  */
@@ -23,7 +23,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
23
23
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
24
24
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
25
25
  /**
26
- * A progress bar visually indicates the completion status of a task, updating in real-time to guide users.
26
+ * The `ProgressBar` component visually indicates the completion status of a task, updating in real-time to guide users.
27
27
  *
28
28
  * See the [Progress Bar documentation page](https://satellite.algolia.com/components/feedback/progress-bar) for more information.
29
29
  */
@@ -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;
@@ -21,7 +21,11 @@ var ALIGN_CLASSNAMES = {
21
21
  right: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["ml-auto"])))
22
22
  };
23
23
 
24
- // Took heavy inspiration from https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/CircularProgress/CircularProgress.js
24
+ /**
25
+ * 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.
26
+ *
27
+ * See the [Progress Spinner documentation page](https://satellite.algolia.com/components/feedback/progress-spinner) for more information.
28
+ */
25
29
  var ProgressSpinner = exports.ProgressSpinner = function ProgressSpinner(_ref) {
26
30
  var className = _ref.className,
27
31
  _ref$size = _ref.size,
@@ -30,23 +34,27 @@ var ProgressSpinner = exports.ProgressSpinner = function ProgressSpinner(_ref) {
30
34
  thickness = _ref$thickness === void 0 ? 2 : _ref$thickness,
31
35
  align = _ref.align,
32
36
  svgProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
33
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", _objectSpread(_objectSpread({}, svgProps), {}, {
34
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["progress-spinner"]))), align && ALIGN_CLASSNAMES[align], className),
35
- viewBox: "".concat(size / 2, " ").concat(size / 2, " ").concat(size, " ").concat(size),
36
- width: size,
37
- height: size,
38
- role: "status",
39
- "aria-busy": true,
40
- "aria-live": "polite",
41
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("title", {
42
- children: "Loading spinner"
43
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
44
- cx: size,
45
- cy: size,
46
- r: (size - thickness) / 2,
47
- fill: "none",
48
- strokeWidth: thickness
49
- })]
50
- }));
37
+ return (
38
+ /*#__PURE__*/
39
+ // Took heavy inspiration from https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/CircularProgress/CircularProgress.js
40
+ (0, _jsxRuntime.jsxs)("svg", _objectSpread(_objectSpread({}, svgProps), {}, {
41
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["progress-spinner"]))), align && ALIGN_CLASSNAMES[align], className),
42
+ viewBox: "".concat(size / 2, " ").concat(size / 2, " ").concat(size, " ").concat(size),
43
+ width: size,
44
+ height: size,
45
+ role: "status",
46
+ "aria-busy": true,
47
+ "aria-live": "polite",
48
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("title", {
49
+ children: "Loading spinner"
50
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
51
+ cx: size,
52
+ cy: size,
53
+ r: (size - thickness) / 2,
54
+ fill: "none",
55
+ strokeWidth: thickness
56
+ })]
57
+ }))
58
+ );
51
59
  };
52
60
  var _default = exports["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;
@@ -49,19 +49,9 @@ var RadioGroupItem = exports.RadioGroupItem = function RadioGroupItem(_ref) {
49
49
  };
50
50
 
51
51
  /**
52
- * Use radio buttons when users have to make a single selection from a list of options.
52
+ * The `RadioGroup` component presents mutually exclusive options, allowing users to make a single selection from a list.
53
53
  *
54
- * - Use radio buttons when a user has to choose from at least 2 options.
55
- * - Whenever possible, provide a default, preselected option.
56
- * - 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.
57
- * - Radio groups are always stacked vertically.
58
- * - List options in a radio group in a logical order, for example:
59
- * - Most likely to least likely to be selected.
60
- * - Simplest to most complex operation.
61
- * - Least to most risk.
62
- * - etc.
63
- * - If you need to have an unselected state, just add a radio button with a *None* option.
64
- * - Sometimes, you might want to include an *Other* option (Usually followed by a text input if a user needs to provide a specific answer)
54
+ * See the [Radio Group documentation page](https://satellite.algolia.com/components/controls/radio-group) for more information.
65
55
  */
66
56
  var RadioGroup = exports.RadioGroup = function RadioGroup(_ref2) {
67
57
  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;
@@ -94,11 +94,9 @@ var RangeSliderInternal = function RangeSliderInternal(_ref2, ref) {
94
94
  };
95
95
 
96
96
  /**
97
- * A range slider is an input field where users select one or two numeric values within a given range (minimum and maximum values).
97
+ * The `RangeSlider` component is an input field where users select one or two numeric values within a given range (minimum and maximum values).
98
98
  *
99
- * - Range sliders should always be used with a label
100
- * - Provide min and max value whenever possible
101
- * - Provide text input for better accessibility
99
+ * See the [Range Slider documentation page](https://satellite.algolia.com/components/controls/range-slider) for more information.
102
100
  */
103
101
  var RangeSlider = exports.RangeSlider = /*#__PURE__*/(0, _react.forwardRef)(RangeSliderInternal);
104
102
  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;
@@ -60,6 +60,12 @@ var VARIANT_CLASSNAMES = {
60
60
  light: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["scroll-indicator"]))),
61
61
  dark: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["scroll-indicator scroll-indicator-dark"])))
62
62
  };
63
+
64
+ /**
65
+ * The `ScrollIndicator` component is used to display a top and bottom color gradient depending on the scroll position.
66
+ *
67
+ * See the [Scroll Indicator documentation page](https://satellite.algolia.com/layouts/scroll-indicator) for more information.
68
+ */
63
69
  var ScrollIndicator = exports.ScrollIndicator = function ScrollIndicator(_ref) {
64
70
  var _ref$tagName = _ref.tagName,
65
71
  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;
@@ -23,12 +23,9 @@ var VARIANT_CLASSNAMES = {
23
23
  };
24
24
 
25
25
  /**
26
- * Select lets users choose one option from an options menu. Consider select when you have 3 or more options, to avoid cluttering the interface.
26
+ * The `Select` component provides a dropdown menu, allowing users to choose one option from a list.
27
27
  *
28
- * ## Usability best practices
29
- * - Use for selecting between 3 or more predefined options (consider radio buttons for less than 3 options)
30
- * - Have a default option selected whenever possible
31
- * - Use `Select` as a placeholder option only if there's no logical default option
28
+ * See the [Select documentation page](https://satellite.algolia.com/components/forms/select) for more information.
32
29
  */
33
30
  var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
34
31
  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;
@@ -17,6 +17,11 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
19
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20
+ /**
21
+ * The `Separator` component is used to visually separate content.
22
+ *
23
+ * See the [Separator documentation page](https://satellite.algolia.com/components/misc/separator) for more information.
24
+ */
20
25
  var Separator = exports.Separator = function Separator(_ref) {
21
26
  var className = _ref.className,
22
27
  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>;
@@ -22,6 +22,12 @@ var DEFAULT_SIDEBAR_LOCALE = {
22
22
  primarySidebarLabel: "Primary Navigation Sidebar",
23
23
  secondarySidebarLabel: "Secondary Navigation Sidebar"
24
24
  };
25
+
26
+ /**
27
+ * The `Sidebar` component is used to display a sidebar of links.
28
+ *
29
+ * See the [Sidebar documentation page](https://satellite.algolia.com/layouts/sidebar) for more information.
30
+ */
25
31
  var Sidebar = exports.Sidebar = function Sidebar(_ref) {
26
32
  var id = _ref.id,
27
33
  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;
@@ -17,6 +17,11 @@ var _uniqueId = _interopRequireDefault(require("../utils/uniqueId"));
17
17
  var _utils = require("./utils");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  var _templateObject, _templateObject2;
20
+ /**
21
+ * The `Switch` component is used to select one option among a list of options.
22
+ *
23
+ * See the [Switch documentation page](https://satellite.algolia.com/components/controls/switch) for more information.
24
+ */
20
25
  var Switch = exports.Switch = function Switch(_ref) {
21
26
  var className = _ref.className,
22
27
  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;
@@ -44,23 +44,9 @@ var DEFAULT_GET_ITEM_ID = function DEFAULT_GET_ITEM_ID(_, idx) {
44
44
  };
45
45
 
46
46
  /**
47
- * Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
47
+ * 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.
48
48
  *
49
- * #### Do
50
- *
51
- * - 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
52
- * - Include units of measurement symbols in the header so you don't need to repeat them throughout the columns
53
- * - Indicate sorting capabilities of a column with a chevron in the cell header
54
- * - Start by columns with highest value to the user, and continue with less important ones
55
- *
56
- * #### Do not
57
- *
58
- * - Center align text in cells
59
- *
60
- * ## Best practices
61
- *
62
- * - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
63
- * - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
49
+ * See the [Data Table documentation page](https://satellite.algolia.com/layouts/data-table) for more information.
64
50
  */
65
51
  var DataTable = exports.DataTable = function DataTable(_ref) {
66
52
  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;
@@ -17,23 +17,9 @@ var _excluded = ["className", "footer", "smallFooter", "hasActions", "highlight"
17
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
19
  /**
20
- * Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
20
+ * The `Table` component is used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
21
21
  *
22
- * #### Do
23
- *
24
- * - 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
25
- * - Include units of measurement symbols in the header so you don't need to repeat them throughout the columns
26
- * - Indicate sorting capabilities of a column with a chevron in the cell header
27
- * - Start by columns with highest value to the user, and continue with less important ones
28
- *
29
- * #### Do not
30
- *
31
- * - Center align text in cells
32
- *
33
- * ## Best practices
34
- *
35
- * - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
36
- * - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
22
+ * See the [Table documentation page](https://satellite.algolia.com/layouts/table) for more information.
37
23
  */
38
24
  var Table = exports.Table = function Table(_ref) {
39
25
  var className = _ref.className,