@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.
- package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +5 -0
- package/cjs/AnnouncementBadge/AnnouncementBadge.js +6 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +2 -13
- package/cjs/AutoComplete/AutoComplete.js +17 -30
- package/cjs/AutoComplete/utils.d.ts +1 -1
- package/cjs/Avatars/ApplicationAvatar.d.ts +5 -1
- package/cjs/Avatars/ApplicationAvatar.js +5 -1
- package/cjs/Avatars/UserAvatar.d.ts +5 -1
- package/cjs/Avatars/UserAvatar.js +5 -1
- package/cjs/Badge/Badge.d.ts +2 -12
- package/cjs/Badge/Badge.js +2 -12
- package/cjs/Banners/Alert/Alert.d.ts +3 -48
- package/cjs/Banners/Alert/Alert.js +3 -48
- package/cjs/Banners/BigBertha/BigBertha.d.ts +3 -31
- package/cjs/Banners/BigBertha/BigBertha.js +3 -31
- package/cjs/Banners/Promote/Promote.d.ts +3 -26
- package/cjs/Banners/Promote/Promote.js +3 -26
- package/cjs/Button/Button.d.ts +2 -11
- package/cjs/Button/Button.js +2 -11
- package/cjs/Button/ButtonGroup.d.ts +3 -3
- package/cjs/Button/ButtonGroup.js +3 -3
- package/cjs/Button/IconButton.d.ts +2 -2
- package/cjs/Button/IconButton.js +2 -2
- package/cjs/Card/Card.d.ts +5 -1
- package/cjs/Card/Card.js +5 -1
- package/cjs/Checkbox/Checkbox.d.ts +2 -3
- package/cjs/Checkbox/Checkbox.js +2 -3
- package/cjs/DatePicker/DatePicker/DatePicker.d.ts +5 -0
- package/cjs/DatePicker/DatePicker/DatePicker.js +5 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +6 -0
- package/cjs/Dropdown/Dropdown.d.ts +3 -8
- package/cjs/Dropdown/Dropdown.js +3 -8
- package/cjs/Dropzone/Dropzone.d.ts +5 -0
- package/cjs/Dropzone/Dropzone.js +6 -0
- package/cjs/EmptyState/EmptyState.d.ts +2 -21
- package/cjs/EmptyState/EmptyState.js +2 -21
- package/cjs/Field/Field.d.ts +2 -31
- package/cjs/Field/Field.js +2 -31
- package/cjs/Flag/Flag.d.ts +5 -0
- package/cjs/Flag/Flag.js +6 -0
- package/cjs/FlexGrid/FlexGrid.d.ts +5 -0
- package/cjs/FlexGrid/FlexGrid.js +6 -0
- package/cjs/HelpUnderline/HelpUnderline.d.ts +5 -0
- package/cjs/HelpUnderline/HelpUnderline.js +5 -0
- package/cjs/Input/Input.d.ts +2 -4
- package/cjs/Input/Input.js +2 -4
- package/cjs/Insert/Insert.d.ts +3 -29
- package/cjs/Insert/Insert.js +3 -29
- package/cjs/KeyboardKey/KeyboardKey.d.ts +5 -0
- package/cjs/KeyboardKey/KeyboardKey.js +5 -0
- package/cjs/Link/ButtonLink.d.ts +5 -0
- package/cjs/Link/ButtonLink.js +5 -0
- package/cjs/Link/IconButtonLink.d.ts +5 -0
- package/cjs/Link/IconButtonLink.js +5 -0
- package/cjs/Link/Link.d.ts +5 -0
- package/cjs/Link/Link.js +5 -0
- package/cjs/Medallion/Medallion.d.ts +5 -0
- package/cjs/Medallion/Medallion.js +6 -0
- package/cjs/Modal/Modal.d.ts +5 -0
- package/cjs/Modal/Modal.js +6 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +5 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.js +6 -0
- package/cjs/Pagination/DotPagination/DotPagination.d.ts +5 -0
- package/cjs/Pagination/DotPagination/DotPagination.js +5 -0
- package/cjs/Pagination/Pagination/Pagination.d.ts +2 -4
- package/cjs/Pagination/Pagination/Pagination.js +2 -4
- package/cjs/Popover/Popover.d.ts +5 -0
- package/cjs/Popover/Popover.js +6 -0
- package/cjs/ProgressBar/ProgressBar.d.ts +1 -1
- package/cjs/ProgressBar/ProgressBar.js +1 -1
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +5 -0
- package/cjs/ProgressSpinner/ProgressSpinner.js +27 -19
- package/cjs/RadioGroup/RadioGroup.d.ts +2 -12
- package/cjs/RadioGroup/RadioGroup.js +2 -12
- package/cjs/RangeSlider/RangeSlider.d.ts +2 -4
- package/cjs/RangeSlider/RangeSlider.js +2 -4
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +5 -0
- package/cjs/ScrollIndicator/ScrollIndicator.js +6 -0
- package/cjs/Select/Select.d.ts +2 -5
- package/cjs/Select/Select.js +2 -5
- package/cjs/Separator/Separator.d.ts +5 -0
- package/cjs/Separator/Separator.js +5 -0
- package/cjs/Sidebar/Sidebar.d.ts +5 -0
- package/cjs/Sidebar/Sidebar.js +6 -0
- package/cjs/Switch/Switch.d.ts +5 -0
- package/cjs/Switch/Switch.js +5 -0
- package/cjs/Tables/DataTable/DataTable.d.ts +2 -16
- package/cjs/Tables/DataTable/DataTable.js +2 -16
- package/cjs/Tables/Table/Table.d.ts +2 -16
- package/cjs/Tables/Table/Table.js +2 -16
- package/cjs/Tabs/LinkTabs.d.ts +2 -25
- package/cjs/Tabs/LinkTabs.js +2 -25
- package/cjs/Tag/Tag.d.ts +2 -19
- package/cjs/Tag/Tag.js +2 -19
- package/cjs/TextArea/TextArea.d.ts +5 -0
- package/cjs/TextArea/TextArea.js +5 -0
- package/cjs/TextWrap/TextWrap.d.ts +5 -0
- package/cjs/TextWrap/TextWrap.js +6 -0
- package/cjs/Toggle/Toggle.d.ts +2 -3
- package/cjs/Toggle/Toggle.js +2 -3
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +5 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.js +5 -0
- package/cjs/Tooltip/Tooltip.d.ts +2 -14
- package/cjs/Tooltip/Tooltip.js +2 -14
- package/cjs/Tooltip/TooltipWrapper.d.ts +5 -0
- package/cjs/Tooltip/TooltipWrapper.js +5 -0
- package/cjs/UserContent/UserContent.d.ts +5 -0
- package/cjs/UserContent/UserContent.js +5 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +12 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +5 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.js +6 -0
- package/esm/AutoComplete/AutoComplete.d.ts +2 -13
- package/esm/AutoComplete/AutoComplete.js +17 -30
- package/esm/AutoComplete/utils.d.ts +1 -1
- package/esm/Avatars/ApplicationAvatar.d.ts +5 -1
- package/esm/Avatars/ApplicationAvatar.js +5 -1
- package/esm/Avatars/UserAvatar.d.ts +5 -1
- package/esm/Avatars/UserAvatar.js +5 -1
- package/esm/Badge/Badge.d.ts +2 -12
- package/esm/Badge/Badge.js +2 -12
- package/esm/Banners/Alert/Alert.d.ts +3 -48
- package/esm/Banners/Alert/Alert.js +3 -48
- package/esm/Banners/BigBertha/BigBertha.d.ts +3 -31
- package/esm/Banners/BigBertha/BigBertha.js +3 -31
- package/esm/Banners/Promote/Promote.d.ts +3 -26
- package/esm/Banners/Promote/Promote.js +3 -26
- package/esm/Button/Button.d.ts +2 -11
- package/esm/Button/Button.js +2 -11
- package/esm/Button/ButtonGroup.d.ts +3 -3
- package/esm/Button/ButtonGroup.js +3 -3
- package/esm/Button/IconButton.d.ts +2 -2
- package/esm/Button/IconButton.js +2 -2
- package/esm/Card/Card.d.ts +5 -1
- package/esm/Card/Card.js +5 -1
- package/esm/Checkbox/Checkbox.d.ts +2 -3
- package/esm/Checkbox/Checkbox.js +2 -3
- package/esm/DatePicker/DatePicker/DatePicker.d.ts +5 -0
- package/esm/DatePicker/DatePicker/DatePicker.js +5 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.js +6 -0
- package/esm/Dropdown/Dropdown.d.ts +3 -8
- package/esm/Dropdown/Dropdown.js +3 -8
- package/esm/Dropzone/Dropzone.d.ts +5 -0
- package/esm/Dropzone/Dropzone.js +6 -0
- package/esm/EmptyState/EmptyState.d.ts +2 -21
- package/esm/EmptyState/EmptyState.js +2 -21
- package/esm/Field/Field.d.ts +2 -31
- package/esm/Field/Field.js +2 -31
- package/esm/Flag/Flag.d.ts +5 -0
- package/esm/Flag/Flag.js +6 -0
- package/esm/FlexGrid/FlexGrid.d.ts +5 -0
- package/esm/FlexGrid/FlexGrid.js +6 -0
- package/esm/HelpUnderline/HelpUnderline.d.ts +5 -0
- package/esm/HelpUnderline/HelpUnderline.js +5 -0
- package/esm/Input/Input.d.ts +2 -4
- package/esm/Input/Input.js +2 -4
- package/esm/Insert/Insert.d.ts +3 -29
- package/esm/Insert/Insert.js +3 -29
- package/esm/KeyboardKey/KeyboardKey.d.ts +5 -0
- package/esm/KeyboardKey/KeyboardKey.js +5 -0
- package/esm/Link/ButtonLink.d.ts +5 -0
- package/esm/Link/ButtonLink.js +5 -0
- package/esm/Link/IconButtonLink.d.ts +5 -0
- package/esm/Link/IconButtonLink.js +5 -0
- package/esm/Link/Link.d.ts +5 -0
- package/esm/Link/Link.js +5 -0
- package/esm/Medallion/Medallion.d.ts +5 -0
- package/esm/Medallion/Medallion.js +6 -0
- package/esm/Modal/Modal.d.ts +5 -0
- package/esm/Modal/Modal.js +6 -0
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +5 -0
- package/esm/Pagination/CompactPagination/CompactPagination.js +6 -0
- package/esm/Pagination/DotPagination/DotPagination.d.ts +5 -0
- package/esm/Pagination/DotPagination/DotPagination.js +5 -0
- package/esm/Pagination/Pagination/Pagination.d.ts +2 -4
- package/esm/Pagination/Pagination/Pagination.js +2 -4
- package/esm/Popover/Popover.d.ts +5 -0
- package/esm/Popover/Popover.js +6 -0
- package/esm/ProgressBar/ProgressBar.d.ts +1 -1
- package/esm/ProgressBar/ProgressBar.js +1 -1
- package/esm/ProgressSpinner/ProgressSpinner.d.ts +5 -0
- package/esm/ProgressSpinner/ProgressSpinner.js +27 -19
- package/esm/RadioGroup/RadioGroup.d.ts +2 -12
- package/esm/RadioGroup/RadioGroup.js +2 -12
- package/esm/RangeSlider/RangeSlider.d.ts +2 -4
- package/esm/RangeSlider/RangeSlider.js +2 -4
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +5 -0
- package/esm/ScrollIndicator/ScrollIndicator.js +6 -0
- package/esm/Select/Select.d.ts +2 -5
- package/esm/Select/Select.js +2 -5
- package/esm/Separator/Separator.d.ts +5 -0
- package/esm/Separator/Separator.js +5 -0
- package/esm/Sidebar/Sidebar.d.ts +5 -0
- package/esm/Sidebar/Sidebar.js +6 -0
- package/esm/Switch/Switch.d.ts +5 -0
- package/esm/Switch/Switch.js +5 -0
- package/esm/Tables/DataTable/DataTable.d.ts +2 -16
- package/esm/Tables/DataTable/DataTable.js +2 -16
- package/esm/Tables/Table/Table.d.ts +2 -16
- package/esm/Tables/Table/Table.js +2 -16
- package/esm/Tabs/LinkTabs.d.ts +2 -25
- package/esm/Tabs/LinkTabs.js +2 -25
- package/esm/Tag/Tag.d.ts +2 -19
- package/esm/Tag/Tag.js +2 -19
- package/esm/TextArea/TextArea.d.ts +5 -0
- package/esm/TextArea/TextArea.js +5 -0
- package/esm/TextWrap/TextWrap.d.ts +5 -0
- package/esm/TextWrap/TextWrap.js +6 -0
- package/esm/Toggle/Toggle.d.ts +2 -3
- package/esm/Toggle/Toggle.js +2 -3
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +5 -0
- package/esm/Tooltip/OverflowTooltipWrapper.js +5 -0
- package/esm/Tooltip/Tooltip.d.ts +2 -14
- package/esm/Tooltip/Tooltip.js +2 -14
- package/esm/Tooltip/TooltipWrapper.d.ts +5 -0
- package/esm/Tooltip/TooltipWrapper.js +5 -0
- package/esm/UserContent/UserContent.d.ts +5 -0
- package/esm/UserContent/UserContent.js +5 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/package.json +2 -1
@@ -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
|
-
|
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
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
*
|
26
|
+
* The `RadioGroup` component presents mutually exclusive options, allowing users to make a single selection from a list.
|
27
27
|
*
|
28
|
-
*
|
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
|
-
*
|
46
|
+
* The `RadioGroup` component presents mutually exclusive options, allowing users to make a single selection from a list.
|
47
47
|
*
|
48
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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,
|
package/esm/Select/Select.d.ts
CHANGED
@@ -4,12 +4,9 @@ export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
4
4
|
variant?: SelectVariants;
|
5
5
|
}
|
6
6
|
/**
|
7
|
-
* Select
|
7
|
+
* The `Select` component provides a dropdown menu, allowing users to choose one option from a list.
|
8
8
|
*
|
9
|
-
*
|
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;
|
package/esm/Select/Select.js
CHANGED
@@ -16,12 +16,9 @@ var VARIANT_CLASSNAMES = {
|
|
16
16
|
};
|
17
17
|
|
18
18
|
/**
|
19
|
-
* Select
|
19
|
+
* The `Select` component provides a dropdown menu, allowing users to choose one option from a list.
|
20
20
|
*
|
21
|
-
*
|
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,
|
package/esm/Sidebar/Sidebar.d.ts
CHANGED
@@ -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>;
|
package/esm/Sidebar/Sidebar.js
CHANGED
@@ -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,
|
package/esm/Switch/Switch.d.ts
CHANGED
@@ -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;
|
package/esm/Switch/Switch.js
CHANGED
@@ -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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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,
|
package/esm/Tabs/LinkTabs.d.ts
CHANGED
@@ -2,32 +2,9 @@ import type { VFC } from "react";
|
|
2
2
|
import type { LinkTabsProps, UrlMatcher } from "./types";
|
3
3
|
export declare const defaultUrlMatcher: UrlMatcher;
|
4
4
|
/**
|
5
|
-
* Tabs
|
5
|
+
* The `Tabs` component is an easy way to organize content by grouping similar information on the same page. Use it to help users navigate between related views within the same context, especially when the number of views may be more than 3.
|
6
6
|
*
|
7
|
-
*
|
8
|
-
* - **Selected**: currently active tab
|
9
|
-
* - **Unselected**: other available tabs
|
10
|
-
* - **Divider**: separates the tab navigation and content
|
11
|
-
*
|
12
|
-
* #### With badges
|
13
|
-
* Use when you have to indicate the number of performed actions or operations as well as their status, e.g. success, error, failure
|
14
|
-
*
|
15
|
-
* ## Content guidelines
|
16
|
-
* - Make them clear to help differentiate the sections beneath
|
17
|
-
* - Write short tab labels and use plain language, rather than made-up terms. Tab labels should usually be 1–2 words
|
18
|
-
* - Do not use ALL CAPS for tab labels. ALL CAPS is rarely a good idea because it's harder to read
|
19
|
-
*
|
20
|
-
* ## Usability best practices
|
21
|
-
* #### Do
|
22
|
-
* - Use tabs to alternate between views within the same context
|
23
|
-
* - Logically chunk the content behind the tabs so users can easily predict what they'll find when they select a given tab
|
24
|
-
* - Use tabs only when users don't need to see content from multiple tabs simultaneously or compare the info behind different tabs
|
25
|
-
*
|
26
|
-
* #### Do not
|
27
|
-
* - Use tabs to navigate to different context areas
|
28
|
-
* - Use tabs for primary navigation
|
29
|
-
* - Use more than one row of tabs. Multiple rows create jumping UI elements, which make it impossible for users to remember which tabs they've already visited
|
30
|
-
* - Place the tab on the sides or bottom of the page, where users often overlook them
|
7
|
+
* See the [Tabs documentation page](https://satellite.algolia.com/components/navigation/tabs) for more information.
|
31
8
|
*/
|
32
9
|
export declare const LinkTabs: VFC<LinkTabsProps>;
|
33
10
|
export default LinkTabs;
|
package/esm/Tabs/LinkTabs.js
CHANGED
@@ -13,32 +13,9 @@ export var defaultUrlMatcher = function defaultUrlMatcher(tab, location) {
|
|
13
13
|
};
|
14
14
|
|
15
15
|
/**
|
16
|
-
* Tabs
|
16
|
+
* The `Tabs` component is an easy way to organize content by grouping similar information on the same page. Use it to help users navigate between related views within the same context, especially when the number of views may be more than 3.
|
17
17
|
*
|
18
|
-
*
|
19
|
-
* - **Selected**: currently active tab
|
20
|
-
* - **Unselected**: other available tabs
|
21
|
-
* - **Divider**: separates the tab navigation and content
|
22
|
-
*
|
23
|
-
* #### With badges
|
24
|
-
* Use when you have to indicate the number of performed actions or operations as well as their status, e.g. success, error, failure
|
25
|
-
*
|
26
|
-
* ## Content guidelines
|
27
|
-
* - Make them clear to help differentiate the sections beneath
|
28
|
-
* - Write short tab labels and use plain language, rather than made-up terms. Tab labels should usually be 1–2 words
|
29
|
-
* - Do not use ALL CAPS for tab labels. ALL CAPS is rarely a good idea because it's harder to read
|
30
|
-
*
|
31
|
-
* ## Usability best practices
|
32
|
-
* #### Do
|
33
|
-
* - Use tabs to alternate between views within the same context
|
34
|
-
* - Logically chunk the content behind the tabs so users can easily predict what they'll find when they select a given tab
|
35
|
-
* - Use tabs only when users don't need to see content from multiple tabs simultaneously or compare the info behind different tabs
|
36
|
-
*
|
37
|
-
* #### Do not
|
38
|
-
* - Use tabs to navigate to different context areas
|
39
|
-
* - Use tabs for primary navigation
|
40
|
-
* - Use more than one row of tabs. Multiple rows create jumping UI elements, which make it impossible for users to remember which tabs they've already visited
|
41
|
-
* - Place the tab on the sides or bottom of the page, where users often overlook them
|
18
|
+
* See the [Tabs documentation page](https://satellite.algolia.com/components/navigation/tabs) for more information.
|
42
19
|
*/
|
43
20
|
export var LinkTabs = function LinkTabs(_ref) {
|
44
21
|
var className = _ref.className,
|
package/esm/Tag/Tag.d.ts
CHANGED
@@ -23,26 +23,9 @@ export interface TagProps extends DetailedHTMLProps<HTMLAttributes<HTMLSpanEleme
|
|
23
23
|
locale?: TagLocale;
|
24
24
|
}
|
25
25
|
/**
|
26
|
-
*
|
27
|
-
* Keep in mind that tags increase the amount of visual noise, particularly when combined with other visual labelling elements, so use them in moderation. Tags can be added or removed from an object by users.
|
26
|
+
* The `Tag` component is an interactive and customizable text label with varied color options.
|
28
27
|
*
|
29
|
-
*
|
30
|
-
* - For tallies or counts, use badges
|
31
|
-
*
|
32
|
-
* ## Variations
|
33
|
-
* Consider the context and implied severity to choose from the following range:
|
34
|
-
*
|
35
|
-
* - **Accent**: `variant="accent"`
|
36
|
-
* - **Informational**: `variant="grey"` & `variant="blue"`
|
37
|
-
* - **Success**: `variant="green"`
|
38
|
-
* - **Warning**: `variant="orange"`
|
39
|
-
* - **Error**: `variant="red"`
|
40
|
-
* - **Admin**: `variant="pink"`
|
41
|
-
*
|
42
|
-
* ## Usability best practices
|
43
|
-
* - Present tags close to or within the input control to allow users to add and remove tags
|
44
|
-
* - When writing tags, avoid line-wrapping
|
45
|
-
* - Define the max width of text within a tag. Once the text reaches the max, truncate with ellipses
|
28
|
+
* See the [Tag documentation page](https://satellite.algolia.com/components/forms/tag) for more information.
|
46
29
|
*/
|
47
30
|
export declare const Tag: import("react").ForwardRefExoticComponent<Pick<TagProps, "dir" | "slot" | "style" | "title" | "children" | "id" | "variant" | "locale" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "onAdd" | "addTooltip" | "onRemove" | "removeTooltip"> & import("react").RefAttributes<HTMLSpanElement>>;
|
48
31
|
export default Tag;
|
package/esm/Tag/Tag.js
CHANGED
@@ -42,26 +42,9 @@ var BUTTON_VARIANT_CLASSNAMES = {
|
|
42
42
|
};
|
43
43
|
|
44
44
|
/**
|
45
|
-
*
|
46
|
-
* Keep in mind that tags increase the amount of visual noise, particularly when combined with other visual labelling elements, so use them in moderation. Tags can be added or removed from an object by users.
|
45
|
+
* The `Tag` component is an interactive and customizable text label with varied color options.
|
47
46
|
*
|
48
|
-
*
|
49
|
-
* - For tallies or counts, use badges
|
50
|
-
*
|
51
|
-
* ## Variations
|
52
|
-
* Consider the context and implied severity to choose from the following range:
|
53
|
-
*
|
54
|
-
* - **Accent**: `variant="accent"`
|
55
|
-
* - **Informational**: `variant="grey"` & `variant="blue"`
|
56
|
-
* - **Success**: `variant="green"`
|
57
|
-
* - **Warning**: `variant="orange"`
|
58
|
-
* - **Error**: `variant="red"`
|
59
|
-
* - **Admin**: `variant="pink"`
|
60
|
-
*
|
61
|
-
* ## Usability best practices
|
62
|
-
* - Present tags close to or within the input control to allow users to add and remove tags
|
63
|
-
* - When writing tags, avoid line-wrapping
|
64
|
-
* - Define the max width of text within a tag. Once the text reaches the max, truncate with ellipses
|
47
|
+
* See the [Tag documentation page](https://satellite.algolia.com/components/forms/tag) for more information.
|
65
48
|
*/
|
66
49
|
export var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
67
50
|
var children = _ref.children,
|
@@ -1,5 +1,10 @@
|
|
1
1
|
import type { TextareaHTMLAttributes } from "react";
|
2
2
|
export interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
3
3
|
}
|
4
|
+
/**
|
5
|
+
* The `TextArea` component is a multiline input field for extensive text, ideal for detailed feedback, descriptions, or comments.
|
6
|
+
*
|
7
|
+
* See the [Text Area documentation page](https://satellite.algolia.com/components/forms/text-area) for more information.
|
8
|
+
*/
|
4
9
|
export declare const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
5
10
|
export default TextArea;
|
package/esm/TextArea/TextArea.js
CHANGED
@@ -9,6 +9,11 @@ import cx from "clsx";
|
|
9
9
|
import { forwardRef } from "react";
|
10
10
|
import stl from "../styles/helpers/satellitePrefixer";
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
+
/**
|
13
|
+
* The `TextArea` component is a multiline input field for extensive text, ideal for detailed feedback, descriptions, or comments.
|
14
|
+
*
|
15
|
+
* See the [Text Area documentation page](https://satellite.algolia.com/components/forms/text-area) for more information.
|
16
|
+
*/
|
12
17
|
export var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
13
18
|
var className = _ref.className,
|
14
19
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
@@ -4,5 +4,10 @@ export interface TextWrapProps extends Omit<JSX.IntrinsicElements["span"], "chil
|
|
4
4
|
maxLines?: number;
|
5
5
|
children: string;
|
6
6
|
}
|
7
|
+
/**
|
8
|
+
* The `TextWrap` component is used to wrap text and truncate it with an ellipsis if it overflows.
|
9
|
+
*
|
10
|
+
* See the [Text Wrap documentation page](https://satellite.algolia.com/components/misc/text-wrap) for more information.
|
11
|
+
*/
|
7
12
|
export declare const TextWrap: VFC<TextWrapProps>;
|
8
13
|
export default TextWrap;
|
package/esm/TextWrap/TextWrap.js
CHANGED
@@ -20,6 +20,12 @@ var SEPARATOR_ELEMENT = /*#__PURE__*/_jsx("span", {
|
|
20
20
|
"aria-hidden": "true",
|
21
21
|
children: "\u200B"
|
22
22
|
});
|
23
|
+
|
24
|
+
/**
|
25
|
+
* The `TextWrap` component is used to wrap text and truncate it with an ellipsis if it overflows.
|
26
|
+
*
|
27
|
+
* See the [Text Wrap documentation page](https://satellite.algolia.com/components/misc/text-wrap) for more information.
|
28
|
+
*/
|
23
29
|
export var TextWrap = function TextWrap(_ref) {
|
24
30
|
var text = _ref.children,
|
25
31
|
maxLines = _ref.maxLines,
|
package/esm/Toggle/Toggle.d.ts
CHANGED
@@ -3,10 +3,9 @@ export declare type ToggleProps = Omit<HTMLAttributes<HTMLInputElement>, "childr
|
|
3
3
|
decorative?: boolean;
|
4
4
|
};
|
5
5
|
/**
|
6
|
-
*
|
6
|
+
* The `Toggle` component is used to view or switch between enabled or disabled states.
|
7
7
|
*
|
8
|
-
*
|
9
|
-
* - If a Save button is needed, try using Radio groups or Checkboxes instead
|
8
|
+
* See the [Toggle documentation page](https://satellite.algolia.com/components/controls/toggle) for more information.
|
10
9
|
*/
|
11
10
|
export declare const Toggle: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLInputElement>, "children" | "onChange"> & Pick<InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "onChange" | "autoFocus" | "disabled" | "checked" | "required"> & {
|
12
11
|
decorative?: boolean | undefined;
|
package/esm/Toggle/Toggle.js
CHANGED
@@ -12,10 +12,9 @@ import stl from "../styles/helpers/satellitePrefixer";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
14
14
|
/**
|
15
|
-
*
|
15
|
+
* The `Toggle` component is used to view or switch between enabled or disabled states.
|
16
16
|
*
|
17
|
-
*
|
18
|
-
* - If a Save button is needed, try using Radio groups or Checkboxes instead
|
17
|
+
* See the [Toggle documentation page](https://satellite.algolia.com/components/controls/toggle) for more information.
|
19
18
|
*/
|
20
19
|
export var Toggle = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
21
20
|
var className = _ref.className,
|