@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
@@ -10,9 +10,9 @@ export interface ButtonGroupProps {
10
10
  children: ReactNode;
11
11
  }
12
12
  /**
13
- * - Use grouped buttons when there is a close relationship between a number of buttons.
14
- * - Group buttons logically into sets based on usage and importance.
15
- * - Common placement of grouped buttons is the view switch (e.g. list vs grid view)
13
+ * The `ButtonGroup` component is used to group buttons together.
14
+ *
15
+ * See the [Button Group documentation page](https://satellite.algolia.com/components/actions/button-group) for more information.
16
16
  */
17
17
  export declare const ButtonGroup: VFC<ButtonGroupProps>;
18
18
  export default ButtonGroup;
@@ -4,9 +4,9 @@ import cx from "clsx";
4
4
  import stl from "../styles/helpers/satellitePrefixer";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  /**
7
- * - Use grouped buttons when there is a close relationship between a number of buttons.
8
- * - Group buttons logically into sets based on usage and importance.
9
- * - Common placement of grouped buttons is the view switch (e.g. list vs grid view)
7
+ * The `ButtonGroup` component is used to group buttons together.
8
+ *
9
+ * See the [Button Group documentation page](https://satellite.algolia.com/components/actions/button-group) for more information.
10
10
  */
11
11
  export var ButtonGroup = function ButtonGroup(_ref) {
12
12
  var className = _ref.className,
@@ -2,9 +2,9 @@
2
2
  import { type PolymorphicIconButtonProps } from "./PolymorphicIconButton";
3
3
  export declare type IconButtonProps = Omit<PolymorphicIconButtonProps<"button">, "as" | "ref">;
4
4
  /**
5
- * IconButtons are useful in situations where you are limited on space or the action is self-explanatory with just an icon.
5
+ * The `IconButton` component is used to trigger user actions (like "Add", "Close" or "Save"). It can only contain an icon.
6
6
  *
7
- * Please refer to the `Button` guidelines.
7
+ * See the [Icon Button documentation page](https://satellite.algolia.com/components/actions/icon-button) for more information.
8
8
  */
9
9
  export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
10
10
  export default IconButton;
@@ -5,9 +5,9 @@ import { forwardRef } from "react";
5
5
  import { PolymorphicIconButton } from "./PolymorphicIconButton";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  /**
8
- * IconButtons are useful in situations where you are limited on space or the action is self-explanatory with just an icon.
8
+ * The `IconButton` component is used to trigger user actions (like "Add", "Close" or "Save"). It can only contain an icon.
9
9
  *
10
- * Please refer to the `Button` guidelines.
10
+ * See the [Icon Button documentation page](https://satellite.algolia.com/components/actions/icon-button) for more information.
11
11
  */
12
12
  export var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
13
13
  return /*#__PURE__*/_jsx(PolymorphicIconButton, _objectSpread(_objectSpread({}, props), {}, {
@@ -27,6 +27,10 @@ export interface CardType extends ForwardRefExoticComponent<PropsWithoutRef<Card
27
27
  Header: typeof CardHeader;
28
28
  Title: typeof CardTitle;
29
29
  }
30
- /** The `Card` is a useful component for containing content within a page. */
30
+ /**
31
+ * The `Card` component is a useful for containing content within a page.
32
+ *
33
+ * See the [Card documentation page](https://satellite.algolia.com/layouts/card) for more information.
34
+ */
31
35
  export declare const Card: CardType;
32
36
  export default Card;
package/esm/Card/Card.js CHANGED
@@ -17,7 +17,11 @@ var ELEVATION_CLASSNAMES = {
17
17
  "400": stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["card-z400"]))),
18
18
  "500": stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["card-z500"])))
19
19
  };
20
- /** The `Card` is a useful component for containing content within a page. */
20
+ /**
21
+ * The `Card` component is a useful for containing content within a page.
22
+ *
23
+ * See the [Card documentation page](https://satellite.algolia.com/layouts/card) for more information.
24
+ */
21
25
  export var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
22
26
  var className = _ref.className,
23
27
  _ref$as = _ref.as,
@@ -15,10 +15,9 @@ declare type CheckboxCustomProps = {
15
15
  declare type CheckboxInputProps = Omit<HTMLAttributes<HTMLInputElement>, "onChange"> & Pick<InputHTMLAttributes<HTMLInputElement>, "onChange" | "required" | "autoFocus" | "disabled" | "checked" | "defaultChecked">;
16
16
  export declare type CheckboxProps = CheckboxInputProps & CheckboxCustomProps;
17
17
  /**
18
- * When users need to make a range of selections (none, one, or several), checkboxes are a good input control.
18
+ * The `Checkbox` component is a control that allows single or multiple selections from a set of options.
19
19
  *
20
- * - A checkbox control has two primary states: selected and unselected. If required, there's an additional visual state for indeterminate (usually for a parent checkbox, when some children checkboxes are selected, but not all of them)
21
- * - Checkboxes require the use of a button to apply the settings once they are selected
20
+ * See the [Checkbox documentation page](https://satellite.algolia.com/components/controls/checkbox) for more information.
22
21
  */
23
22
  export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLInputElement>, "onChange"> & Pick<InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "onChange" | "autoFocus" | "disabled" | "checked" | "required"> & CheckboxCustomProps & import("react").RefAttributes<HTMLInputElement>>;
24
23
  export default Checkbox;
@@ -24,10 +24,9 @@ var STATUS_CLASSNAMES = {
24
24
  };
25
25
 
26
26
  /**
27
- * When users need to make a range of selections (none, one, or several), checkboxes are a good input control.
27
+ * The `Checkbox` component is a control that allows single or multiple selections from a set of options.
28
28
  *
29
- * - A checkbox control has two primary states: selected and unselected. If required, there's an additional visual state for indeterminate (usually for a parent checkbox, when some children checkboxes are selected, but not all of them)
30
- * - Checkboxes require the use of a button to apply the settings once they are selected
29
+ * See the [Checkbox documentation page](https://satellite.algolia.com/components/controls/checkbox) for more information.
31
30
  */
32
31
  export var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
33
32
  var children = _ref.children,
@@ -30,5 +30,10 @@ export declare type DatePickerProps = {
30
30
  initialValue?: Date | null;
31
31
  buttonSize?: DisplayProps["size"];
32
32
  } & SharedDatePickerProps;
33
+ /**
34
+ * The `DatePicker` component allows users to easily select a date, featuring a calendar view, month/year navigation, and custom options.
35
+ *
36
+ * See the [Date Picker documentation page](https://satellite.algolia.com/layouts/date-picker) for more information.
37
+ */
33
38
  export declare const DatePicker: VFC<DatePickerProps>;
34
39
  export default DatePicker;
@@ -18,6 +18,11 @@ import { DatePickerActionTypes, datePickerReducer, initDatePickerReducer } from
18
18
  import { jsx as _jsx } from "react/jsx-runtime";
19
19
  import { jsxs as _jsxs } from "react/jsx-runtime";
20
20
  import { Fragment as _Fragment } from "react/jsx-runtime";
21
+ /**
22
+ * The `DatePicker` component allows users to easily select a date, featuring a calendar view, month/year navigation, and custom options.
23
+ *
24
+ * See the [Date Picker documentation page](https://satellite.algolia.com/layouts/date-picker) for more information.
25
+ */
21
26
  export var DatePicker = function DatePicker(props) {
22
27
  var _props$initialValue, _props$validate, _props$calendarProps;
23
28
  var contextLocale = useLocale("datePicker");
@@ -31,5 +31,10 @@ export declare type DateRangePickerProps = {
31
31
  renderRightPanel?: (args: RightSidePanelComponentArgs) => ReactNode;
32
32
  buttonSize?: DateRangePickerDisplayProps["buttonSize"];
33
33
  } & SharedDatePickerProps;
34
+ /**
35
+ * The `DateRangePicker` component allows selection of start and end dates using two calendars, ideal for planning and scheduling.
36
+ *
37
+ * See the [Date Range Picker documentation page](https://satellite.algolia.com/layouts/date-range-picker) for more information.
38
+ */
34
39
  export declare const DateRangePicker: VFC<DateRangePickerProps>;
35
40
  export default DateRangePicker;
@@ -28,6 +28,12 @@ var defaultValidator = function defaultValidator(_ref) {
28
28
  var DEFAULT_DATE_RANGE_PICKER_LOCALE = _objectSpread(_objectSpread({}, DEFAULT_DATE_PICKER_LOCALE), {}, {
29
29
  openButton: "Enter a date period..."
30
30
  });
31
+
32
+ /**
33
+ * The `DateRangePicker` component allows selection of start and end dates using two calendars, ideal for planning and scheduling.
34
+ *
35
+ * See the [Date Range Picker documentation page](https://satellite.algolia.com/layouts/date-range-picker) for more information.
36
+ */
31
37
  export var DateRangePicker = function DateRangePicker(_ref2) {
32
38
  var _validate, _displayedRange$start, _initialRange$start;
33
39
  var id = _ref2.id,
@@ -36,14 +36,9 @@ declare type DropdownSubComponents = {
36
36
  };
37
37
  export declare const DEFAULT_DROPDOWN_POPPER_MODIFIERS: StrictModifier[];
38
38
  /**
39
- * ## Best practices
40
- * - Sort list of options in a way that will make the most sense to the user. You can order:
41
- * - alphabetically
42
- * - numerically
43
- * - by most commonly selected option
44
- * - Write in sentence case (the first word capitalized, the rest lowercase) and avoid using commas or semicolons at the end of each option
45
- * - Clearly label options based on what each one will do
46
- * - Make sure the most common options are listed. These can be grouped into sub-categories under headings
39
+ * The `Dropdown` component helps users select an item from a list of available options.
40
+ *
41
+ * See the [Dropdown documentation page](https://satellite.algolia.com/components/actions/dropdown) for more information.
47
42
  */
48
43
  export declare const Dropdown: VFC<DropdownProps> & DropdownSubComponents;
49
44
  export default Dropdown;
@@ -31,14 +31,9 @@ export var DEFAULT_DROPDOWN_POPPER_MODIFIERS = [{
31
31
  }];
32
32
 
33
33
  /**
34
- * ## Best practices
35
- * - Sort list of options in a way that will make the most sense to the user. You can order:
36
- * - alphabetically
37
- * - numerically
38
- * - by most commonly selected option
39
- * - Write in sentence case (the first word capitalized, the rest lowercase) and avoid using commas or semicolons at the end of each option
40
- * - Clearly label options based on what each one will do
41
- * - Make sure the most common options are listed. These can be grouped into sub-categories under headings
34
+ * The `Dropdown` component helps users select an item from a list of available options.
35
+ *
36
+ * See the [Dropdown documentation page](https://satellite.algolia.com/components/actions/dropdown) for more information.
42
37
  */
43
38
  export var Dropdown = function Dropdown(_ref) {
44
39
  var _renderFooter;
@@ -17,5 +17,10 @@ export interface DropzoneBaseProps {
17
17
  locale?: DropzoneLocale;
18
18
  }
19
19
  export declare type DropzoneProps = DropzoneBaseProps & Omit<ReactDropZoneProps, "onDrop" | "onDropAccepted" | "onDropRejected" | "multiple">;
20
+ /**
21
+ * The `Dropzone` component is used to upload files.
22
+ *
23
+ * See the [Dropzone documentation page](https://satellite.algolia.com/components/forms/dropzone) for more information.
24
+ */
20
25
  export declare const Dropzone: VFC<DropzoneProps>;
21
26
  export default Dropzone;
@@ -42,6 +42,12 @@ var ValidatedIcon = function ValidatedIcon() {
42
42
  className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["mr-4 h-4 w-4 text-white bg-accent-600 p-px rounded-full"])))
43
43
  });
44
44
  };
45
+
46
+ /**
47
+ * The `Dropzone` component is used to upload files.
48
+ *
49
+ * See the [Dropzone documentation page](https://satellite.algolia.com/components/forms/dropzone) for more information.
50
+ */
45
51
  export var Dropzone = function Dropzone(_ref2) {
46
52
  var id = _ref2.id,
47
53
  placeholder = _ref2.placeholder,
@@ -1,28 +1,9 @@
1
1
  import type { VFC } from "react";
2
2
  import type { EmptyStateProps } from "./types";
3
3
  /**
4
- * Empty states are used when a list, table, chart or page has no items or data to show. This is an opportunity to provide explanation or guidance to help users progress. This can also be shown when a features hasn't been enable.
4
+ * The `EmptyState` component informs users when there's no content or data, providing clear actions and guidance to help them proceed or populate the area.
5
5
  *
6
- * #### Features empty state
7
- * - Use when the CTA will unlock a key feature in the dashboard. The copy and the illustration need to sell the feature and be clear on the value for the user
8
- *
9
- * #### Cards empty state
10
- * - Use when the CTA will unlock a new set of features inside an already activated feature. Use the context of the interface to help users understand the value of these features and the copy to give further informations
11
- *
12
- * #### Results/Data empty states
13
- * - Use when the query lead to no result or when there is no data to show based on the user filters. Always make sure to give the user suggestions to fix it in the copy
14
- *
15
- * ## Best practices
16
- *
17
- * Empty states should:
18
- *
19
- * - Orient users by clearly explaining the benefit and utility of a product or feature
20
- * - Simplify a complicated experience by focusing on a few key features and benefits
21
- * - Use simple and clear language that empowers users to move their business forward
22
- * - Be encouraging and never make users feel unsuccessful or guilty because they haven't used a product or feature
23
- * - Explain the steps users need to take to activate a product or feature
24
- * - Use illustrations thoughtfully
25
- * - Use only one primary call-to-action button
6
+ * See the [Empty State documentation page](https://satellite.algolia.com/layouts/empty-state) for more information.
26
7
  */
27
8
  export declare const EmptyState: VFC<EmptyStateProps>;
28
9
  export default EmptyState;
@@ -88,28 +88,9 @@ var renderEmptyState = function renderEmptyState(_ref) {
88
88
  };
89
89
 
90
90
  /**
91
- * Empty states are used when a list, table, chart or page has no items or data to show. This is an opportunity to provide explanation or guidance to help users progress. This can also be shown when a features hasn't been enable.
91
+ * The `EmptyState` component informs users when there's no content or data, providing clear actions and guidance to help them proceed or populate the area.
92
92
  *
93
- * #### Features empty state
94
- * - Use when the CTA will unlock a key feature in the dashboard. The copy and the illustration need to sell the feature and be clear on the value for the user
95
- *
96
- * #### Cards empty state
97
- * - Use when the CTA will unlock a new set of features inside an already activated feature. Use the context of the interface to help users understand the value of these features and the copy to give further informations
98
- *
99
- * #### Results/Data empty states
100
- * - Use when the query lead to no result or when there is no data to show based on the user filters. Always make sure to give the user suggestions to fix it in the copy
101
- *
102
- * ## Best practices
103
- *
104
- * Empty states should:
105
- *
106
- * - Orient users by clearly explaining the benefit and utility of a product or feature
107
- * - Simplify a complicated experience by focusing on a few key features and benefits
108
- * - Use simple and clear language that empowers users to move their business forward
109
- * - Be encouraging and never make users feel unsuccessful or guilty because they haven't used a product or feature
110
- * - Explain the steps users need to take to activate a product or feature
111
- * - Use illustrations thoughtfully
112
- * - Use only one primary call-to-action button
93
+ * See the [Empty State documentation page](https://satellite.algolia.com/layouts/empty-state) for more information.
113
94
  */
114
95
  export var EmptyState = function EmptyState(props) {
115
96
  return renderEmptyState(props);
@@ -17,38 +17,9 @@ export interface FieldProps {
17
17
  children: ReactNode;
18
18
  }
19
19
  /**
20
- * Use text fields to help users enter, select, and search for text. Text fields are normally found within a form but can also be part of a modal, search, or card
20
+ * The `Field` component is a helper that wraps inputs to streamline labeling, validation, integration into a form.
21
21
  *
22
- * ## Structure
23
- * - **Label**: Use the label to provide instructions critical to using the text field. Labels should indicate what sort of information the field requires, be concise and actionable. Consider starting with action verbs (e.g. enter; fill; select). Put labels directly above their input and align them to the left
24
- * - **Placeholder text**: Use to provide additional, non-critical instructions around how they should use the field. Try using examples over instructions whenever possible
25
- * - **Helper text**: Use to give additional context or extra guidance. Only use this where clarification is required, and try not to overuse it
26
- * - When you provide help text via the helpText prop or an inline error message via the error prop, the help or error content is conveyed to screen reader users with the aria-describedby attribute. This attribute causes the content to be read along with the label, either immediately or after a short delay
27
- *
28
- * ## Validation behavior
29
- * - **Validation icon**: helps indicate what state the field has. This can manifest as validation (error, success) or utility (show/hide password, clear)
30
- * - **Error text**: is activated after the input is deselected and communicates more information signified by the input icon. This typically displays an error message related to the field. Keep this text as short as possible and make sure it helps the user to recover from an error
31
- *
32
- * ## Content guidelines
33
- * #### Field label
34
- * - Place above the form field
35
- * - Keep it short and succinct (1–3 words)
36
- * - Write in sentence case (the first word capitalized, the rest lowercase)
37
- *
38
- * #### Field placeholder
39
- * - Mandatory to use, however is supplementary in terms of information importance (because the text has low contrast and is not visible when text is entered)
40
- * - Use examples instead of instructions whenever possible
41
- * - Include “E.g.:” before an example
42
- *
43
- * #### Help / error text
44
- * - Clearly explain what is expected (help) or what went wrong and how to fix it (error)
45
- * - Be short and concise, no more than a single sentence
46
- * - Use passive voice so users don't feel like they're being blamed for the error
47
- *
48
- * #### Designating optional fields
49
- * - Try to only ask for information that's required
50
- * - If you need to ask users to provide optional information, mark the field optional by placing the text “(optional)” at the end of the field's label
51
- * - Don't mark required fields with asterisks
22
+ * See the [Field documentation page](https://satellite.algolia.com/components/forms/field) for more information.
52
23
  */
53
24
  export declare const Field: VFC<FieldProps>;
54
25
  export default Field;
@@ -9,38 +9,9 @@ import { DEFAULT_FIELD_STATE, FieldContext } from "./FieldContext";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
11
  /**
12
- * Use text fields to help users enter, select, and search for text. Text fields are normally found within a form but can also be part of a modal, search, or card
12
+ * The `Field` component is a helper that wraps inputs to streamline labeling, validation, integration into a form.
13
13
  *
14
- * ## Structure
15
- * - **Label**: Use the label to provide instructions critical to using the text field. Labels should indicate what sort of information the field requires, be concise and actionable. Consider starting with action verbs (e.g. enter; fill; select). Put labels directly above their input and align them to the left
16
- * - **Placeholder text**: Use to provide additional, non-critical instructions around how they should use the field. Try using examples over instructions whenever possible
17
- * - **Helper text**: Use to give additional context or extra guidance. Only use this where clarification is required, and try not to overuse it
18
- * - When you provide help text via the helpText prop or an inline error message via the error prop, the help or error content is conveyed to screen reader users with the aria-describedby attribute. This attribute causes the content to be read along with the label, either immediately or after a short delay
19
- *
20
- * ## Validation behavior
21
- * - **Validation icon**: helps indicate what state the field has. This can manifest as validation (error, success) or utility (show/hide password, clear)
22
- * - **Error text**: is activated after the input is deselected and communicates more information signified by the input icon. This typically displays an error message related to the field. Keep this text as short as possible and make sure it helps the user to recover from an error
23
- *
24
- * ## Content guidelines
25
- * #### Field label
26
- * - Place above the form field
27
- * - Keep it short and succinct (1–3 words)
28
- * - Write in sentence case (the first word capitalized, the rest lowercase)
29
- *
30
- * #### Field placeholder
31
- * - Mandatory to use, however is supplementary in terms of information importance (because the text has low contrast and is not visible when text is entered)
32
- * - Use examples instead of instructions whenever possible
33
- * - Include “E.g.:” before an example
34
- *
35
- * #### Help / error text
36
- * - Clearly explain what is expected (help) or what went wrong and how to fix it (error)
37
- * - Be short and concise, no more than a single sentence
38
- * - Use passive voice so users don't feel like they're being blamed for the error
39
- *
40
- * #### Designating optional fields
41
- * - Try to only ask for information that's required
42
- * - If you need to ask users to provide optional information, mark the field optional by placing the text “(optional)” at the end of the field's label
43
- * - Don't mark required fields with asterisks
14
+ * See the [Field documentation page](https://satellite.algolia.com/components/forms/field) for more information.
44
15
  */
45
16
  export var Field = function Field(_ref) {
46
17
  var className = _ref.className,
@@ -2,5 +2,10 @@ import type { VFC } from "react";
2
2
  import type { Notification } from "./types";
3
3
  export declare type FlagLocale = Notification["locale"];
4
4
  export declare type FlagProps = Omit<Notification, "id" | "content">;
5
+ /**
6
+ * The `Toast` component is a brief notification that providing timely feedback to users before vanishing after a short duration.
7
+ *
8
+ * See the [Toast documentation page](https://satellite.algolia.com/components/feedback/toast) for more information.
9
+ */
5
10
  export declare const Flag: VFC<FlagProps>;
6
11
  export default Flag;
package/esm/Flag/Flag.js CHANGED
@@ -34,6 +34,12 @@ var VARIANT_SPINNER_CLASSNAMES = {
34
34
  orange: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["border-orange-500"]))),
35
35
  red: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["border-red-500"])))
36
36
  };
37
+
38
+ /**
39
+ * The `Toast` component is a brief notification that providing timely feedback to users before vanishing after a short duration.
40
+ *
41
+ * See the [Toast documentation page](https://satellite.algolia.com/components/feedback/toast) for more information.
42
+ */
37
43
  export var Flag = function Flag(_ref) {
38
44
  var onDismiss = _ref.onDismiss,
39
45
  title = _ref.title,
@@ -36,5 +36,10 @@ export interface FlexGridProps {
36
36
  spacing?: FlexGridSpacing;
37
37
  children: ReactNode;
38
38
  }
39
+ /**
40
+ * The `FlexGrid` component is a wrapper component that allows you to easily create a flexbox layout.
41
+ *
42
+ * See the [Flex Grid documentation page](https://satellite.algolia.com/layouts/flex-grid) for more information.
43
+ */
39
44
  export declare const FlexGrid: VFC<FlexGridProps>;
40
45
  export default FlexGrid;
@@ -32,6 +32,12 @@ var DISTRIBUTION_CLASSNAMES = {
32
32
  fill: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["flex-grid-d-fill"]))),
33
33
  fillEvenly: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["flex-grid-d-fill-even"])))
34
34
  };
35
+
36
+ /**
37
+ * The `FlexGrid` component is a wrapper component that allows you to easily create a flexbox layout.
38
+ *
39
+ * See the [Flex Grid documentation page](https://satellite.algolia.com/layouts/flex-grid) for more information.
40
+ */
35
41
  export var FlexGrid = function FlexGrid(_ref) {
36
42
  var className = _ref.className,
37
43
  _ref$direction = _ref.direction,
@@ -7,5 +7,10 @@ export declare type HelpUnderlineProps = {
7
7
  tooltipContent: TooltipWrapperProps["content"];
8
8
  children: string;
9
9
  } & Omit<TooltipWrapperBaseProps, "children">;
10
+ /**
11
+ * The `HelpUnderline` component is used to display a help underline with a tooltip.
12
+ *
13
+ * See the [Help Underline documentation page](https://satellite.algolia.com/components/misc/help-underline) for more information.
14
+ */
10
15
  export declare const HelpUnderline: VFC<HelpUnderlineProps>;
11
16
  export default HelpUnderline;
@@ -9,6 +9,11 @@ import cx from "clsx";
9
9
  import stl from "../styles/helpers/satellitePrefixer";
10
10
  import { TooltipWrapper } from "../Tooltip";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
+ /**
13
+ * The `HelpUnderline` component is used to display a help underline with a tooltip.
14
+ *
15
+ * See the [Help Underline documentation page](https://satellite.algolia.com/components/misc/help-underline) for more information.
16
+ */
12
17
  export var HelpUnderline = function HelpUnderline(_ref) {
13
18
  var className = _ref.className,
14
19
  children = _ref.children,
@@ -20,11 +20,9 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
20
20
  locale?: InputPropsLocale;
21
21
  }
22
22
  /**
23
- * Use text fields to help users enter, select, and search for text. Text fields are normally found within a form but can also be part of a modal, search, or card
23
+ * The `Input` component is a flexible, user-friendly component for efficient text and number entry across forms and applications.
24
24
  *
25
- * ## Variations
26
- * #### Number input
27
- * - **Stepper (optional)**: consider using a stepper (number control) to let users increase or decrease the value of the input. This is an optional part of the number field so only use based on what you think will help the user
25
+ * See the [Input documentation page](https://satellite.algolia.com/components/forms/input) for more information.
28
26
  */
29
27
  export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
30
28
  export default Input;
@@ -51,11 +51,9 @@ var ValidatedIcon = function ValidatedIcon() {
51
51
  };
52
52
 
53
53
  /**
54
- * Use text fields to help users enter, select, and search for text. Text fields are normally found within a form but can also be part of a modal, search, or card
54
+ * The `Input` component is a flexible, user-friendly component for efficient text and number entry across forms and applications.
55
55
  *
56
- * ## Variations
57
- * #### Number input
58
- * - **Stepper (optional)**: consider using a stepper (number control) to let users increase or decrease the value of the input. This is an optional part of the number field so only use based on what you think will help the user
56
+ * See the [Input documentation page](https://satellite.algolia.com/components/forms/input) for more information.
59
57
  */
60
58
  export var Input = /*#__PURE__*/forwardRef(function (_ref, externalRef) {
61
59
  var className = _ref.className,
@@ -11,35 +11,9 @@ export interface InsertProps {
11
11
  children: ReactNode;
12
12
  }
13
13
  /**
14
- * Put more emphasis on side content.
15
-
16
- * ## Examples
17
- * [See the component in Figma](https://www.figma.com/file/99l59il97k2n5y4n6Jucal/%5BSatellite%5D-Components?node-id=2912%3A279499)
18
-
19
- * ## Current Status
20
- * - [x] Figma
21
- * - [x] React
22
- * - [ ] Documentation
23
-
24
- * ## Component structure
25
- * The component is a simple and flexible container. It should include a Title and a short text. To give more context you can use optional badges and an optional link to forward users in the right direction.
26
-
27
- * ## Guidelines
28
-
29
- * ### How to use it?
30
- * Use the `Insert` if you want to give extra information to the user about the flow they are in or to highlight and define some terms used. This component can be use on the side of existing content or as a block.
31
-
32
- * ### How to NOT use it?
33
- * - Don't use this component to display temporary and/or critical information, use an Alert instead.
34
-
35
- * ### Variants
36
- * - Grey background
37
-
38
- * ### Do's and Don't
39
- * TODO
40
-
41
- * ## Accessibility
42
- * TODO
14
+ * The `Insert` component is used to give extra information to the user about the flow they are in or to highlight and define some terms used.
15
+ *
16
+ * See the [Insert documentation page](https://satellite.algolia.com/layouts/insert) for more information.
43
17
  */
44
18
  export declare const Insert: VFC<InsertProps>;
45
19
  export default Insert;
@@ -6,35 +6,9 @@ import onlyText from "../utils/onlyText";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  /**
9
- * Put more emphasis on side content.
10
-
11
- * ## Examples
12
- * [See the component in Figma](https://www.figma.com/file/99l59il97k2n5y4n6Jucal/%5BSatellite%5D-Components?node-id=2912%3A279499)
13
-
14
- * ## Current Status
15
- * - [x] Figma
16
- * - [x] React
17
- * - [ ] Documentation
18
-
19
- * ## Component structure
20
- * The component is a simple and flexible container. It should include a Title and a short text. To give more context you can use optional badges and an optional link to forward users in the right direction.
21
-
22
- * ## Guidelines
23
-
24
- * ### How to use it?
25
- * Use the `Insert` if you want to give extra information to the user about the flow they are in or to highlight and define some terms used. This component can be use on the side of existing content or as a block.
26
-
27
- * ### How to NOT use it?
28
- * - Don't use this component to display temporary and/or critical information, use an Alert instead.
29
-
30
- * ### Variants
31
- * - Grey background
32
-
33
- * ### Do's and Don't
34
- * TODO
35
-
36
- * ## Accessibility
37
- * TODO
9
+ * The `Insert` component is used to give extra information to the user about the flow they are in or to highlight and define some terms used.
10
+ *
11
+ * See the [Insert documentation page](https://satellite.algolia.com/layouts/insert) for more information.
38
12
  */
39
13
  export var Insert = function Insert(_ref) {
40
14
  var title = _ref.title,
@@ -4,4 +4,9 @@ export interface KeyboardKeyProps {
4
4
  className?: string;
5
5
  value: string;
6
6
  }
7
+ /**
8
+ * The `KeyboardKey` component is used to display a keyboard key.
9
+ *
10
+ * See the [Keyboard Key documentation page](https://satellite.algolia.com/components/misc/keyboard-key) for more information.
11
+ */
7
12
  export declare const KeyboardKey: VFC<KeyboardKeyProps>;
@@ -13,6 +13,11 @@ var KEY_MAPPINGS = {
13
13
  enter: CornerDownLeft,
14
14
  escape: "esc"
15
15
  };
16
+ /**
17
+ * The `KeyboardKey` component is used to display a keyboard key.
18
+ *
19
+ * See the [Keyboard Key documentation page](https://satellite.algolia.com/components/misc/keyboard-key) for more information.
20
+ */
16
21
  export var KeyboardKey = function KeyboardKey(_ref) {
17
22
  var className = _ref.className,
18
23
  value = _ref.value;
@@ -3,6 +3,11 @@ import { type PolymorphicButtonProps } from "../Button/PolymorphicButton";
3
3
  export declare type ButtonLinkProps = Omit<PolymorphicButtonProps<"a">, "as" | "ref"> & {
4
4
  href: string;
5
5
  };
6
+ /**
7
+ * The `ButtonLink` component is used to display a link as a button.
8
+ *
9
+ * See the [Link documentation page](https://satellite.algolia.com/components/navigation/link) for more information.
10
+ */
6
11
  export declare const ButtonLink: import("react").ForwardRefExoticComponent<Omit<PolymorphicButtonProps<"a">, "ref" | "as"> & {
7
12
  href: string;
8
13
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -8,6 +8,11 @@ import { ExternalLink } from "react-feather";
8
8
  import { PolymorphicButton } from "../Button/PolymorphicButton";
9
9
  import useLinkProps from "../utils/useLinkProps";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
+ /**
12
+ * The `ButtonLink` component is used to display a link as a button.
13
+ *
14
+ * See the [Link documentation page](https://satellite.algolia.com/components/navigation/link) for more information.
15
+ */
11
16
  export var ButtonLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
12
17
  var EndIcon = _ref.endIcon,
13
18
  href = _ref.href,