@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
package/cjs/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/cjs/Tabs/LinkTabs.js
CHANGED
@@ -20,32 +20,9 @@ var defaultUrlMatcher = exports.defaultUrlMatcher = function defaultUrlMatcher(t
|
|
20
20
|
};
|
21
21
|
|
22
22
|
/**
|
23
|
-
* Tabs
|
23
|
+
* 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.
|
24
24
|
*
|
25
|
-
*
|
26
|
-
* - **Selected**: currently active tab
|
27
|
-
* - **Unselected**: other available tabs
|
28
|
-
* - **Divider**: separates the tab navigation and content
|
29
|
-
*
|
30
|
-
* #### With badges
|
31
|
-
* Use when you have to indicate the number of performed actions or operations as well as their status, e.g. success, error, failure
|
32
|
-
*
|
33
|
-
* ## Content guidelines
|
34
|
-
* - Make them clear to help differentiate the sections beneath
|
35
|
-
* - Write short tab labels and use plain language, rather than made-up terms. Tab labels should usually be 1–2 words
|
36
|
-
* - Do not use ALL CAPS for tab labels. ALL CAPS is rarely a good idea because it's harder to read
|
37
|
-
*
|
38
|
-
* ## Usability best practices
|
39
|
-
* #### Do
|
40
|
-
* - Use tabs to alternate between views within the same context
|
41
|
-
* - Logically chunk the content behind the tabs so users can easily predict what they'll find when they select a given tab
|
42
|
-
* - Use tabs only when users don't need to see content from multiple tabs simultaneously or compare the info behind different tabs
|
43
|
-
*
|
44
|
-
* #### Do not
|
45
|
-
* - Use tabs to navigate to different context areas
|
46
|
-
* - Use tabs for primary navigation
|
47
|
-
* - 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
|
48
|
-
* - Place the tab on the sides or bottom of the page, where users often overlook them
|
25
|
+
* See the [Tabs documentation page](https://satellite.algolia.com/components/navigation/tabs) for more information.
|
49
26
|
*/
|
50
27
|
var LinkTabs = exports.LinkTabs = function LinkTabs(_ref) {
|
51
28
|
var className = _ref.className,
|
package/cjs/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/cjs/Tag/Tag.js
CHANGED
@@ -48,26 +48,9 @@ var BUTTON_VARIANT_CLASSNAMES = {
|
|
48
48
|
};
|
49
49
|
|
50
50
|
/**
|
51
|
-
*
|
52
|
-
* 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.
|
51
|
+
* The `Tag` component is an interactive and customizable text label with varied color options.
|
53
52
|
*
|
54
|
-
*
|
55
|
-
* - For tallies or counts, use badges
|
56
|
-
*
|
57
|
-
* ## Variations
|
58
|
-
* Consider the context and implied severity to choose from the following range:
|
59
|
-
*
|
60
|
-
* - **Accent**: `variant="accent"`
|
61
|
-
* - **Informational**: `variant="grey"` & `variant="blue"`
|
62
|
-
* - **Success**: `variant="green"`
|
63
|
-
* - **Warning**: `variant="orange"`
|
64
|
-
* - **Error**: `variant="red"`
|
65
|
-
* - **Admin**: `variant="pink"`
|
66
|
-
*
|
67
|
-
* ## Usability best practices
|
68
|
-
* - Present tags close to or within the input control to allow users to add and remove tags
|
69
|
-
* - When writing tags, avoid line-wrapping
|
70
|
-
* - Define the max width of text within a tag. Once the text reaches the max, truncate with ellipses
|
53
|
+
* See the [Tag documentation page](https://satellite.algolia.com/components/forms/tag) for more information.
|
71
54
|
*/
|
72
55
|
var Tag = exports.Tag = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
73
56
|
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/cjs/TextArea/TextArea.js
CHANGED
@@ -16,6 +16,11 @@ var _templateObject;
|
|
16
16
|
var _excluded = ["className"];
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
19
|
+
/**
|
20
|
+
* The `TextArea` component is a multiline input field for extensive text, ideal for detailed feedback, descriptions, or comments.
|
21
|
+
*
|
22
|
+
* See the [Text Area documentation page](https://satellite.algolia.com/components/forms/text-area) for more information.
|
23
|
+
*/
|
19
24
|
var TextArea = exports.TextArea = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
20
25
|
var className = _ref.className,
|
21
26
|
otherProps = (0, _objectWithoutProperties2["default"])(_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/cjs/TextWrap/TextWrap.js
CHANGED
@@ -26,6 +26,12 @@ var SEPARATOR_ELEMENT = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
26
26
|
"aria-hidden": "true",
|
27
27
|
children: "\u200B"
|
28
28
|
});
|
29
|
+
|
30
|
+
/**
|
31
|
+
* The `TextWrap` component is used to wrap text and truncate it with an ellipsis if it overflows.
|
32
|
+
*
|
33
|
+
* See the [Text Wrap documentation page](https://satellite.algolia.com/components/misc/text-wrap) for more information.
|
34
|
+
*/
|
29
35
|
var TextWrap = exports.TextWrap = function TextWrap(_ref) {
|
30
36
|
var text = _ref.children,
|
31
37
|
maxLines = _ref.maxLines,
|
package/cjs/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/cjs/Toggle/Toggle.js
CHANGED
@@ -18,10 +18,9 @@ var _excluded = ["className", "checked", "decorative", "defaultChecked"];
|
|
18
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
20
20
|
/**
|
21
|
-
*
|
21
|
+
* The `Toggle` component is used to view or switch between enabled or disabled states.
|
22
22
|
*
|
23
|
-
*
|
24
|
-
* - If a Save button is needed, try using Radio groups or Checkboxes instead
|
23
|
+
* See the [Toggle documentation page](https://satellite.algolia.com/components/controls/toggle) for more information.
|
25
24
|
*/
|
26
25
|
var Toggle = exports.Toggle = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
27
26
|
var className = _ref.className,
|
@@ -2,4 +2,9 @@ import type { VFC } from "react";
|
|
2
2
|
import type { TooltipWrapperBaseProps } from "./types";
|
3
3
|
export interface OverflowTooltipWrapperProps extends TooltipWrapperBaseProps {
|
4
4
|
}
|
5
|
+
/**
|
6
|
+
* The `OverflowTooltipWrapper` component is used to wrap text that may overflow its container and display a tooltip with the full text on hover.
|
7
|
+
*
|
8
|
+
* See the [Tooltip documentation page](https://satellite.algolia.com/components/overlay/tooltip) for more information.
|
9
|
+
*/
|
5
10
|
export declare const OverflowTooltipWrapper: VFC<OverflowTooltipWrapperProps>;
|
@@ -21,6 +21,11 @@ var _templateObject;
|
|
21
21
|
var _excluded = ["children"];
|
22
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
23
23
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
24
|
+
/**
|
25
|
+
* The `OverflowTooltipWrapper` component is used to wrap text that may overflow its container and display a tooltip with the full text on hover.
|
26
|
+
*
|
27
|
+
* See the [Tooltip documentation page](https://satellite.algolia.com/components/overlay/tooltip) for more information.
|
28
|
+
*/
|
24
29
|
var OverflowTooltipWrapper = exports.OverflowTooltipWrapper = function OverflowTooltipWrapper(_ref) {
|
25
30
|
var children = _ref.children,
|
26
31
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
package/cjs/Tooltip/Tooltip.d.ts
CHANGED
@@ -4,21 +4,9 @@ export interface TooltipProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivEl
|
|
4
4
|
variant?: TooltipVariant;
|
5
5
|
}
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* The `Tooltip` component displays additional information when hovering/focusing on an element. It is used to provide clarification or identify the purpose of UI elements.
|
8
8
|
*
|
9
|
-
*
|
10
|
-
* When writing tooltips, be short and concise. When you need to add more than a single line of extra information, consider using inline dialogs instead.
|
11
|
-
*
|
12
|
-
* The position of tooltips is flexible and will change depending on how close the element is to the edge of the screen.
|
13
|
-
*
|
14
|
-
* ## Best practices
|
15
|
-
* Tooltips should:
|
16
|
-
*
|
17
|
-
* - Provide useful, additional information or clarification.
|
18
|
-
* - Succinctly describe or expand on the element they point to.
|
19
|
-
* - Not be used to communicate critical information, including errors in forms or other interaction feedback.
|
20
|
-
* - Not contain any links, inputs, or buttons.
|
21
|
-
* - Be used sparingly. If you're building something that requires a lot of tooltips, work on clarifying the design and the language in the experience.
|
9
|
+
* See the [Tooltip documentation page](https://satellite.algolia.com/components/overlay/tooltip) for more information.
|
22
10
|
*/
|
23
11
|
export declare const Tooltip: import("react").ForwardRefExoticComponent<Pick<TooltipProps, "dir" | "slot" | "style" | "title" | "children" | "id" | "variant" | "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"> & import("react").RefAttributes<HTMLDivElement>>;
|
24
12
|
export default Tooltip;
|
package/cjs/Tooltip/Tooltip.js
CHANGED
@@ -22,21 +22,9 @@ var VARIANT_CLASSNAMES = {
|
|
22
22
|
};
|
23
23
|
|
24
24
|
/**
|
25
|
-
*
|
25
|
+
* The `Tooltip` component displays additional information when hovering/focusing on an element. It is used to provide clarification or identify the purpose of UI elements.
|
26
26
|
*
|
27
|
-
*
|
28
|
-
* When writing tooltips, be short and concise. When you need to add more than a single line of extra information, consider using inline dialogs instead.
|
29
|
-
*
|
30
|
-
* The position of tooltips is flexible and will change depending on how close the element is to the edge of the screen.
|
31
|
-
*
|
32
|
-
* ## Best practices
|
33
|
-
* Tooltips should:
|
34
|
-
*
|
35
|
-
* - Provide useful, additional information or clarification.
|
36
|
-
* - Succinctly describe or expand on the element they point to.
|
37
|
-
* - Not be used to communicate critical information, including errors in forms or other interaction feedback.
|
38
|
-
* - Not contain any links, inputs, or buttons.
|
39
|
-
* - Be used sparingly. If you're building something that requires a lot of tooltips, work on clarifying the design and the language in the experience.
|
27
|
+
* See the [Tooltip documentation page](https://satellite.algolia.com/components/overlay/tooltip) for more information.
|
40
28
|
*/
|
41
29
|
var Tooltip = exports.Tooltip = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
42
30
|
var className = _ref.className,
|
@@ -11,4 +11,9 @@ export interface TooltipWrapperProps extends TooltipWrapperBaseProps {
|
|
11
11
|
*/
|
12
12
|
content: ReactNode;
|
13
13
|
}
|
14
|
+
/**
|
15
|
+
* The `TooltipWrapper` component is used to wrap content and display a tooltip on hover.
|
16
|
+
*
|
17
|
+
* See the [Tooltip documentation page](https://satellite.algolia.com/components/overlay/tooltip) for more information.
|
18
|
+
*/
|
14
19
|
export declare const TooltipWrapper: VFC<TooltipWrapperProps>;
|
@@ -18,6 +18,11 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
var _templateObject, _templateObject2, _templateObject3;
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
21
|
+
/**
|
22
|
+
* The `TooltipWrapper` component is used to wrap content and display a tooltip on hover.
|
23
|
+
*
|
24
|
+
* See the [Tooltip documentation page](https://satellite.algolia.com/components/overlay/tooltip) for more information.
|
25
|
+
*/
|
21
26
|
var TooltipWrapper = exports.TooltipWrapper = function TooltipWrapper(_ref) {
|
22
27
|
var show = _ref.show,
|
23
28
|
_ref$delay = _ref.delay,
|
@@ -5,5 +5,10 @@ export interface UserContentProps {
|
|
5
5
|
className?: string;
|
6
6
|
content?: string;
|
7
7
|
}
|
8
|
+
/**
|
9
|
+
* The `UserContent` component is used to style user generated content that comes as HTML, often from a markdown source.
|
10
|
+
*
|
11
|
+
* See the [User Content documentation page](https://satellite.algolia.com/layouts/user-content) for more information.
|
12
|
+
*/
|
8
13
|
export declare const UserContent: VFC<UserContentProps>;
|
9
14
|
export default UserContent;
|
@@ -10,6 +10,11 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
10
10
|
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
12
12
|
var _templateObject;
|
13
|
+
/**
|
14
|
+
* The `UserContent` component is used to style user generated content that comes as HTML, often from a markdown source.
|
15
|
+
*
|
16
|
+
* See the [User Content documentation page](https://satellite.algolia.com/layouts/user-content) for more information.
|
17
|
+
*/
|
13
18
|
var UserContent = exports.UserContent = function UserContent(_ref) {
|
14
19
|
var className = _ref.className,
|
15
20
|
content = _ref.content,
|
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
@@ -374,6 +374,18 @@ Object.keys(_Pagination).forEach(function (key) {
|
|
374
374
|
}
|
375
375
|
});
|
376
376
|
});
|
377
|
+
var _Popover = require("./Popover");
|
378
|
+
Object.keys(_Popover).forEach(function (key) {
|
379
|
+
if (key === "default" || key === "__esModule") return;
|
380
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
381
|
+
if (key in exports && exports[key] === _Popover[key]) return;
|
382
|
+
Object.defineProperty(exports, key, {
|
383
|
+
enumerable: true,
|
384
|
+
get: function get() {
|
385
|
+
return _Popover[key];
|
386
|
+
}
|
387
|
+
});
|
388
|
+
});
|
377
389
|
var _ProgressBar = require("./ProgressBar");
|
378
390
|
Object.keys(_ProgressBar).forEach(function (key) {
|
379
391
|
if (key === "default" || key === "__esModule") return;
|
@@ -17,5 +17,10 @@ export interface AnnouncementBadgeProps extends HTMLAttributes<HTMLSpanElement>
|
|
17
17
|
locale?: AnnouncementBadgeLocale;
|
18
18
|
children?: never;
|
19
19
|
}
|
20
|
+
/**
|
21
|
+
* The `AnnouncementBadge` component is used to display a small badge with a text on it.
|
22
|
+
*
|
23
|
+
* See the [Announcement Badge documentation page](https://satellite.algolia.com/components/feedback/announcement-badge) for more information.
|
24
|
+
*/
|
20
25
|
export declare const AnnouncementBadge: import("react").ForwardRefExoticComponent<AnnouncementBadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
|
21
26
|
export default AnnouncementBadge;
|
@@ -21,6 +21,12 @@ var SIZE_CLASSNAMES = {
|
|
21
21
|
"default": stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["display-body h-6 leading-md px-2"]))),
|
22
22
|
small: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["display-caption px-1"])))
|
23
23
|
};
|
24
|
+
|
25
|
+
/**
|
26
|
+
* The `AnnouncementBadge` component is used to display a small badge with a text on it.
|
27
|
+
*
|
28
|
+
* See the [Announcement Badge documentation page](https://satellite.algolia.com/components/feedback/announcement-badge) for more information.
|
29
|
+
*/
|
24
30
|
export var AnnouncementBadge = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
25
31
|
var _ref$size = _ref.size,
|
26
32
|
size = _ref$size === void 0 ? "default" : _ref$size,
|
@@ -1,20 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { AutoCompleteProps, Option } from "./types";
|
3
3
|
/**
|
4
|
-
* Autocomplete
|
4
|
+
* The `Autocomplete` component enables users to search and select from a list using real-time input matching.
|
5
5
|
*
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* ## Menu Size Variations
|
9
|
-
* - **Medium (default)**: the standard dropdown menu height for most use cases
|
10
|
-
* - **Large**: when numerous results should be displayed in the dropdown to ease selection
|
11
|
-
*
|
12
|
-
* ## Best practices
|
13
|
-
*
|
14
|
-
* - Provide an empty state if there is no result
|
15
|
-
* - Highlight letters in results matching the query
|
16
|
-
* - Provide matching results quickly
|
17
|
-
* - Style different data
|
6
|
+
* See the [Autocomplete documentation page](https://satellite.algolia.com/components/forms/autocomplete) for more information.
|
18
7
|
*/
|
19
8
|
export declare const AutoComplete: <O extends Option = Option>({ locale: localeProp, id, labelId, "aria-label": ariaLabel, name, placeholder, autoFocus, inputValue: inputValueProp, onTextChange, onFocus, onBlur, disabled, clearable, renderValueTemplate, noWrap, separatorKeys, multiple, value, selectOnBlur, onChange, options, optionItemComponent, creatable, createFromInputValue, emptyState, maxResults: maxItems, menuFooter, menuSize, variant, icon: Icon, endItem, className, menuClassName, valuesClassName, internalsRef, }: AutoCompleteProps<O>) => JSX.Element;
|
20
9
|
export default AutoComplete;
|
@@ -11,6 +11,7 @@ import { useEffect, useMemo, useRef, useState } from "react";
|
|
11
11
|
import { X } from "react-feather";
|
12
12
|
import { usePopper } from "react-popper";
|
13
13
|
import useMeasure from "react-use/lib/useMeasure";
|
14
|
+
import usePrevious from "react-use/lib/usePrevious";
|
14
15
|
import { Card } from "../Card";
|
15
16
|
import { ClickAwayContainer } from "../ClickAwayContainer";
|
16
17
|
import { useField } from "../Field";
|
@@ -45,20 +46,9 @@ var updateRef = function updateRef(ref, value) {
|
|
45
46
|
};
|
46
47
|
|
47
48
|
/**
|
48
|
-
* Autocomplete
|
49
|
+
* The `Autocomplete` component enables users to search and select from a list using real-time input matching.
|
49
50
|
*
|
50
|
-
*
|
51
|
-
*
|
52
|
-
* ## Menu Size Variations
|
53
|
-
* - **Medium (default)**: the standard dropdown menu height for most use cases
|
54
|
-
* - **Large**: when numerous results should be displayed in the dropdown to ease selection
|
55
|
-
*
|
56
|
-
* ## Best practices
|
57
|
-
*
|
58
|
-
* - Provide an empty state if there is no result
|
59
|
-
* - Highlight letters in results matching the query
|
60
|
-
* - Provide matching results quickly
|
61
|
-
* - Style different data
|
51
|
+
* See the [Autocomplete documentation page](https://satellite.algolia.com/components/forms/autocomplete) for more information.
|
62
52
|
*/
|
63
53
|
export var AutoComplete = function AutoComplete(_ref) {
|
64
54
|
var localeProp = _ref.locale,
|
@@ -117,17 +107,12 @@ export var AutoComplete = function AutoComplete(_ref) {
|
|
117
107
|
_useState4 = _slicedToArray(_useState3, 2),
|
118
108
|
internalInputValue = _useState4[0],
|
119
109
|
setInternalInputValue = _useState4[1];
|
120
|
-
|
121
|
-
// See https://github.com/downshift-js/downshift/issues/1108
|
122
|
-
// as to why we manage the input value ourselves completely
|
123
|
-
var updateInputValue = function updateInputValue(value) {
|
124
|
-
setInternalInputValue(value);
|
125
|
-
onTextChange === null || onTextChange === void 0 || onTextChange(value);
|
126
|
-
};
|
110
|
+
var previousValue = usePrevious(value);
|
127
111
|
useEffect(function () {
|
128
112
|
if (multiple || typeof inputValueProp !== "undefined") return;
|
129
|
-
|
130
|
-
|
113
|
+
if (!Array.isArray(previousValue) && optionToString(previousValue) === optionToString(value)) return;
|
114
|
+
setInternalInputValue(optionToString(value));
|
115
|
+
}, [multiple, inputValueProp, previousValue, value]);
|
131
116
|
var inputValue = inputValueProp !== null && inputValueProp !== void 0 ? inputValueProp : internalInputValue;
|
132
117
|
var _useState5 = useState(null),
|
133
118
|
_useState6 = _slicedToArray(_useState5, 2),
|
@@ -226,11 +211,11 @@ export var AutoComplete = function AutoComplete(_ref) {
|
|
226
211
|
combobox.setHighlightedIndex(maxItems);
|
227
212
|
} else if (multiple) {
|
228
213
|
multipleSelection.addSelectedItem(selectedItem);
|
229
|
-
|
214
|
+
setInternalInputValue("");
|
230
215
|
setShowAllItems(false);
|
231
216
|
} else {
|
232
217
|
multipleSelection.setSelectedItems([selectedItem]);
|
233
|
-
|
218
|
+
setInternalInputValue(optionToString(selectedItem));
|
234
219
|
setShowAllItems(false);
|
235
220
|
}
|
236
221
|
break;
|
@@ -238,7 +223,7 @@ export var AutoComplete = function AutoComplete(_ref) {
|
|
238
223
|
case useCombobox.stateChangeTypes.InputKeyDownEscape:
|
239
224
|
{
|
240
225
|
if (!combobox.isOpen) {
|
241
|
-
|
226
|
+
setInternalInputValue("");
|
242
227
|
multipleSelection.setSelectedItems([]);
|
243
228
|
}
|
244
229
|
break;
|
@@ -255,10 +240,13 @@ export var AutoComplete = function AutoComplete(_ref) {
|
|
255
240
|
ref: inputRef,
|
256
241
|
autoFocus: autoFocus,
|
257
242
|
disabled: disabled,
|
243
|
+
// See https://github.com/downshift-js/downshift/issues/1108
|
244
|
+
// as to why we manage the input value ourselves completely
|
258
245
|
onChange: function onChange(evt) {
|
259
246
|
var _value, _menuPopper$update;
|
260
247
|
var newInputValue = (_value = evt.currentTarget.value) !== null && _value !== void 0 ? _value : "";
|
261
|
-
|
248
|
+
setInternalInputValue(newInputValue);
|
249
|
+
onTextChange === null || onTextChange === void 0 || onTextChange(newInputValue);
|
262
250
|
if (!multiple && value && !newInputValue) {
|
263
251
|
multipleSelection.setSelectedItems([]);
|
264
252
|
}
|
@@ -288,7 +276,7 @@ export var AutoComplete = function AutoComplete(_ref) {
|
|
288
276
|
newOption = _createFromInputValue2[0];
|
289
277
|
if (newOption && !newOption.disabled) {
|
290
278
|
multipleSelection.addSelectedItem(newOption);
|
291
|
-
|
279
|
+
setInternalInputValue("");
|
292
280
|
}
|
293
281
|
}
|
294
282
|
}
|
@@ -380,9 +368,8 @@ export var AutoComplete = function AutoComplete(_ref) {
|
|
380
368
|
}), showClearButton && /*#__PURE__*/_jsx("button", {
|
381
369
|
type: "button",
|
382
370
|
className: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["w-6 h-6 flex items-center justify-center text-grey-500"]))),
|
383
|
-
onClick: function onClick(
|
384
|
-
|
385
|
-
updateInputValue("");
|
371
|
+
onClick: function onClick() {
|
372
|
+
setInternalInputValue("");
|
386
373
|
multipleSelection.setSelectedItems([]);
|
387
374
|
},
|
388
375
|
"aria-label": locale.clearInputButton,
|
@@ -3,6 +3,6 @@ export declare function isAutoCompleteMultiProps<T extends Option = Option>(prop
|
|
3
3
|
export declare const defaultCreateFromInputValue: <T extends Option = Option>(options: T[] | undefined, inputValue: string) => Option[];
|
4
4
|
export declare const caseInsensitiveCreateFromInputValue: <T extends Option = Option>(options: T[] | undefined, inputValue: string) => Option[];
|
5
5
|
export declare const DEFAULT_AUTOCOMPLETE_LOCALE: Required<AutoCompleteLocale>;
|
6
|
-
export declare const optionToString: (option: Option | null) => string;
|
6
|
+
export declare const optionToString: (option: Option | null | undefined) => string;
|
7
7
|
export declare function filter<T extends Option = Option>(options: T[], selectedItems: T[], itemValue: string): T[];
|
8
8
|
export declare function inputValueFromProps<T extends Option = Option>(props: AutoCompleteProps<T>): string;
|
@@ -8,6 +8,10 @@ export interface ApplicationAvatarProps {
|
|
8
8
|
/** @ignore */
|
9
9
|
className?: string;
|
10
10
|
}
|
11
|
-
/**
|
11
|
+
/**
|
12
|
+
* The `ApplicationAvatar` component is used as a visual representation of an application.
|
13
|
+
*
|
14
|
+
* See the [Application Avatar documentation page](https://satellite.algolia.com/components/images/application-avatar) for more information.
|
15
|
+
*/
|
12
16
|
export declare const ApplicationAvatar: VFC<ApplicationAvatarProps>;
|
13
17
|
export default ApplicationAvatar;
|
@@ -8,7 +8,11 @@ var SIZE_CLASSNAMES = {
|
|
8
8
|
small: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["w-4 h-4"]))),
|
9
9
|
medium: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["w-8 h-8"])))
|
10
10
|
};
|
11
|
-
/**
|
11
|
+
/**
|
12
|
+
* The `ApplicationAvatar` component is used as a visual representation of an application.
|
13
|
+
*
|
14
|
+
* See the [Application Avatar documentation page](https://satellite.algolia.com/components/images/application-avatar) for more information.
|
15
|
+
*/
|
12
16
|
export var ApplicationAvatar = function ApplicationAvatar(_ref) {
|
13
17
|
var className = _ref.className,
|
14
18
|
application = _ref.application,
|
@@ -15,6 +15,10 @@ export interface UserAvatarProps {
|
|
15
15
|
className?: string;
|
16
16
|
locale?: UserAvatarLocale;
|
17
17
|
}
|
18
|
-
/**
|
18
|
+
/**
|
19
|
+
* The `UserAvatar` component is used as a visual representation of a user.
|
20
|
+
*
|
21
|
+
* See the [User Avatar documentation page](https://satellite.algolia.com/components/images/user-avatar) for more information.
|
22
|
+
*/
|
19
23
|
export declare const UserAvatar: VFC<UserAvatarProps>;
|
20
24
|
export default UserAvatar;
|