@algolia/satellite 1.2.0 → 1.3.0
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/dist/cjs/Actions/Button/Button.tailwind.js +3 -12
- package/dist/cjs/Actions/Button/PolymorphicButton.js +2 -2
- package/dist/cjs/Actions/Button/PolymorphicIconButton.js +1 -1
- package/dist/cjs/Actions/Switch/Switch.js +1 -1
- package/dist/cjs/Actions/Switch/Switch.tailwind.js +2 -8
- package/dist/cjs/Actions/ToggleButton/ToggleButton.d.ts +27 -0
- package/dist/cjs/Actions/ToggleButton/ToggleButton.js +56 -0
- package/dist/cjs/Actions/index.d.ts +1 -0
- package/dist/cjs/Actions/index.js +11 -0
- package/dist/cjs/Fields/AutoComplete/AutoComplete.js +1 -1
- package/dist/cjs/Fields/AutoComplete/AutoComplete.tailwind.js +1 -10
- package/dist/cjs/Fields/AutoComplete/utils.js +1 -1
- package/dist/cjs/Fields/Checkbox/Checkbox.d.ts +1 -1
- package/dist/cjs/Fields/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/Fields/Checkbox/Checkbox.tailwind.js +3 -11
- package/dist/cjs/Fields/DatePicker/DatePicker.tailwind.js +22 -23
- package/dist/cjs/Fields/DatePicker/components/Calendar.js +0 -1
- package/dist/cjs/Fields/Dropzone/Dropzone.js +3 -13
- package/dist/cjs/Fields/Form/Form.js +2 -2
- package/dist/cjs/Fields/Form/stories/AsynchronousValidation.js +1 -1
- package/dist/cjs/Fields/Form/stories/Complex.js +1 -1
- package/dist/cjs/Fields/Form/stories/DependentFieldsValidation.js +1 -1
- package/dist/cjs/Fields/Form/stories/DirtyFields.js +1 -1
- package/dist/cjs/Fields/Form/stories/DynamicFieldsValidation.js +1 -1
- package/dist/cjs/Fields/Form/stories/FieldArrays.js +1 -1
- package/dist/cjs/Fields/Form/stories/ValidationStrategies.js +3 -3
- package/dist/cjs/Fields/Input/Input.js +1 -1
- package/dist/cjs/Fields/Input/Input.tailwind.js +1 -12
- package/dist/cjs/Fields/RadioGroup/RadioButton.d.ts +1 -1
- package/dist/cjs/Fields/RadioGroup/RadioButton.js +1 -1
- package/dist/cjs/Fields/RadioGroup/RadioButton.tailwind.js +0 -11
- package/dist/cjs/Fields/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/cjs/Fields/RangeSlider/RangeSlider.js +1 -1
- package/dist/cjs/Fields/Select/Select.js +1 -1
- package/dist/cjs/Fields/Select/Select.tailwind.js +0 -10
- package/dist/cjs/Fields/TextArea/TextArea.js +1 -1
- package/dist/cjs/Fields/TextArea/TextArea.tailwind.js +0 -8
- package/dist/cjs/Fields/Toggle/Toggle.d.ts +1 -1
- package/dist/cjs/Fields/Toggle/Toggle.js +1 -1
- package/dist/cjs/Fields/Toggle/Toggle.tailwind.js +0 -7
- package/dist/cjs/Helpers/Separator/Separator.js +1 -1
- package/dist/cjs/Helpers/utilities/focusable.tailwind.d.ts +5 -0
- package/dist/cjs/Helpers/utilities/focusable.tailwind.js +14 -0
- package/dist/cjs/Icons/index.d.ts +1 -1
- package/dist/cjs/Icons/index.js +6 -0
- package/dist/cjs/Indicators/ProgressBar/ProgressBar.js +1 -1
- package/dist/cjs/Indicators/Tag/Tag.d.ts +1 -1
- package/dist/cjs/Indicators/Tag/Tag.js +2 -2
- package/dist/cjs/Indicators/Tag/Tag.tailwind.js +4 -19
- package/dist/cjs/Indicators/Toast/Toast.js +1 -1
- package/dist/cjs/Indicators/Toast/Toasts.js +4 -3
- package/dist/cjs/Layout/Tables/DataTable/DataTable.d.ts +1 -1
- package/dist/cjs/Layout/Tables/DataTable/components/Body.d.ts +1 -1
- package/dist/cjs/Layout/Tables/DataTable/components/Header.d.ts +1 -2
- package/dist/cjs/Layout/Tables/DataTable/components/HeaderCell.d.ts +1 -1
- package/dist/cjs/Navigation/Link/BaseLink.js +7 -2
- package/dist/cjs/Navigation/Link/Link.js +1 -1
- package/dist/cjs/Navigation/Pagination/DotPagination/DotPagination.d.ts +1 -2
- package/dist/cjs/Navigation/Pagination/DotPagination/DotPagination.js +1 -1
- package/dist/cjs/Navigation/Stepper/Step.js +3 -1
- package/dist/cjs/Overlay/Dropdown/components/DropdownDivider.d.ts +1 -2
- package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +2 -2
- package/dist/cjs/Overlay/MenuButton/MenuButton.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/DefaultTrigger.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/Divider.d.ts +1 -2
- package/dist/cjs/Overlay/MenuButton/components/Divider.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/Label.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItem.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/items/Item.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/items/LinkItem.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/items/RadioItem.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/items/ToggleItem.js +1 -1
- package/dist/cjs/Overlay/Modal/Modal.js +1 -1
- package/dist/cjs/Overlay/Modal/Modal.tailwind.js +0 -1
- package/dist/cjs/Overlay/Popover/Popover.js +1 -1
- package/dist/cjs/Overlay/Popover/types.d.ts +1 -1
- package/dist/cjs/Overlay/Tooltip/Tooltip.d.ts +1 -1
- package/dist/cjs/Overlay/Tooltip/TooltipWrapper.js +1 -1
- package/dist/cjs/Satellite/SatelliteRouter.js +1 -2
- package/dist/cjs/styles/tailwind.config.js +1 -2
- package/dist/cjs/utils/hashCode.js +0 -1
- package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/esm/Actions/Button/Button.tailwind.js +3 -12
- package/dist/esm/Actions/Button/PolymorphicButton.js +2 -3
- package/dist/esm/Actions/Button/PolymorphicIconButton.js +2 -4
- package/dist/esm/Actions/Switch/Switch.js +2 -3
- package/dist/esm/Actions/Switch/Switch.tailwind.js +2 -8
- package/dist/esm/Actions/Switch/SwitchOption.js +1 -2
- package/dist/esm/Actions/ToggleButton/ToggleButton.d.ts +27 -0
- package/dist/esm/Actions/ToggleButton/ToggleButton.js +49 -0
- package/dist/esm/Actions/index.d.ts +1 -0
- package/dist/esm/Actions/index.js +1 -0
- package/dist/esm/Avatars/UserAvatar/UserAvatar.js +1 -2
- package/dist/esm/Fields/AutoComplete/AutoComplete.js +2 -3
- package/dist/esm/Fields/AutoComplete/AutoComplete.tailwind.js +1 -10
- package/dist/esm/Fields/AutoComplete/components/AutoCompleteEmptyState.js +1 -2
- package/dist/esm/Fields/AutoComplete/components/DefaultOptionItem.js +1 -2
- package/dist/esm/Fields/AutoComplete/utils.js +1 -1
- package/dist/esm/Fields/Checkbox/Checkbox.d.ts +1 -1
- package/dist/esm/Fields/Checkbox/Checkbox.js +2 -3
- package/dist/esm/Fields/Checkbox/Checkbox.tailwind.js +3 -11
- package/dist/esm/Fields/DatePicker/DatePicker/DatePicker.js +1 -3
- package/dist/esm/Fields/DatePicker/DatePicker.tailwind.js +22 -23
- package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePicker.js +1 -3
- package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePickerDisplay.js +1 -3
- package/dist/esm/Fields/DatePicker/components/Calendar.js +0 -1
- package/dist/esm/Fields/DatePicker/components/FooterActions.js +1 -2
- package/dist/esm/Fields/DatePicker/components/NavBar.js +1 -2
- package/dist/esm/Fields/Dropzone/Dropzone.js +4 -15
- package/dist/esm/Fields/Field/Field.js +1 -2
- package/dist/esm/Fields/Form/Form.js +3 -5
- package/dist/esm/Fields/Form/stories/AsynchronousValidation.js +1 -2
- package/dist/esm/Fields/Form/stories/Complex.js +1 -2
- package/dist/esm/Fields/Form/stories/DependentFieldsValidation.js +1 -2
- package/dist/esm/Fields/Form/stories/DirtyFields.js +1 -2
- package/dist/esm/Fields/Form/stories/DynamicFieldsValidation.js +1 -2
- package/dist/esm/Fields/Form/stories/FieldArrays.js +1 -3
- package/dist/esm/Fields/Form/stories/ValidationStrategies.js +3 -4
- package/dist/esm/Fields/Input/Input.js +2 -3
- package/dist/esm/Fields/Input/Input.tailwind.js +1 -12
- package/dist/esm/Fields/RadioGroup/RadioButton.d.ts +1 -1
- package/dist/esm/Fields/RadioGroup/RadioButton.js +1 -1
- package/dist/esm/Fields/RadioGroup/RadioButton.tailwind.js +0 -11
- package/dist/esm/Fields/RadioGroup/RadioGroup.js +1 -2
- package/dist/esm/Fields/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/esm/Fields/RangeSlider/RangeSlider.js +2 -3
- package/dist/esm/Fields/Select/Select.js +2 -3
- package/dist/esm/Fields/Select/Select.tailwind.js +0 -10
- package/dist/esm/Fields/TextArea/TextArea.js +2 -3
- package/dist/esm/Fields/TextArea/TextArea.tailwind.js +0 -8
- package/dist/esm/Fields/Toggle/Toggle.d.ts +1 -1
- package/dist/esm/Fields/Toggle/Toggle.js +2 -3
- package/dist/esm/Fields/Toggle/Toggle.tailwind.js +0 -7
- package/dist/esm/Helpers/TextWrap/TextWrap.js +1 -2
- package/dist/esm/Helpers/utilities/focusable.tailwind.d.ts +5 -0
- package/dist/esm/Helpers/utilities/focusable.tailwind.js +12 -0
- package/dist/esm/Icons/AlgoliaRecommendIcon.js +1 -2
- package/dist/esm/Icons/AlgoliaSearchIcon.js +1 -2
- package/dist/esm/Icons/ContextIcon.js +1 -2
- package/dist/esm/Icons/CrawlerIcon.js +1 -2
- package/dist/esm/Icons/DragHandleIcon.js +1 -2
- package/dist/esm/Icons/NoFiltersIcon.js +1 -2
- package/dist/esm/Icons/PinIcon.js +1 -2
- package/dist/esm/Icons/QueryBreakdownIcon.js +1 -2
- package/dist/esm/Icons/SettingsConsequencesIcon.js +1 -2
- package/dist/esm/Icons/UnpinIcon.js +1 -2
- package/dist/esm/Icons/index.d.ts +1 -1
- package/dist/esm/Icons/index.js +2 -3
- package/dist/esm/Indicators/Badge/Badge.js +1 -2
- package/dist/esm/Indicators/Banners/Alert/Alert.js +1 -2
- package/dist/esm/Indicators/Banners/Promote/Promote.js +1 -2
- package/dist/esm/Indicators/Banners/SystemNotification/SystemNotification.js +1 -2
- package/dist/esm/Indicators/EmptyState/EmptyState.js +1 -2
- package/dist/esm/Indicators/ProgressSpinner/ProgressSpinner.js +1 -2
- package/dist/esm/Indicators/Tag/Tag.d.ts +1 -1
- package/dist/esm/Indicators/Tag/Tag.js +3 -4
- package/dist/esm/Indicators/Tag/Tag.tailwind.js +4 -19
- package/dist/esm/Indicators/Toast/Toast.js +1 -2
- package/dist/esm/Indicators/Toast/Toasts.js +4 -4
- package/dist/esm/Layout/Insert/Insert.js +1 -2
- package/dist/esm/Layout/Sidebar/SidebarButtonLink.js +1 -2
- package/dist/esm/Layout/Sidebar/SidebarLink.js +1 -2
- package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +1 -2
- package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +1 -2
- package/dist/esm/Layout/Tables/DataTable/DataTable.d.ts +1 -1
- package/dist/esm/Layout/Tables/DataTable/DataTable.js +1 -2
- package/dist/esm/Layout/Tables/DataTable/components/Body.d.ts +1 -1
- package/dist/esm/Layout/Tables/DataTable/components/Header.d.ts +1 -2
- package/dist/esm/Layout/Tables/DataTable/components/HeaderCell.d.ts +1 -1
- package/dist/esm/Layout/Tables/DataTable/components/HeaderCell.js +1 -2
- package/dist/esm/Layout/Tables/Table/Table.js +1 -2
- package/dist/esm/Navigation/Link/BaseLink.js +7 -2
- package/dist/esm/Navigation/Link/Link.js +2 -3
- package/dist/esm/Navigation/Pagination/CompactPagination/CompactPagination.js +1 -2
- package/dist/esm/Navigation/Pagination/DotPagination/DotPagination.d.ts +1 -2
- package/dist/esm/Navigation/Pagination/DotPagination/DotPagination.js +1 -1
- package/dist/esm/Navigation/Pagination/Pagination/Pagination.js +1 -3
- package/dist/esm/Navigation/Stepper/Step.js +4 -3
- package/dist/esm/Navigation/Tabs/ContentTabs/ContentTabs.js +1 -2
- package/dist/esm/Navigation/Tabs/components/LinkTab.js +1 -2
- package/dist/esm/Overlay/Dropdown/Dropdown.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownButtonItem.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownDivider.d.ts +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownLinkItem.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownRadioItem.js +1 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownToggleItem.js +1 -2
- package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +2 -2
- package/dist/esm/Overlay/MenuButton/components/Divider.d.ts +1 -2
- package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItem.js +1 -2
- package/dist/esm/Overlay/MenuButton/components/items/Item.js +1 -2
- package/dist/esm/Overlay/MenuButton/components/items/LinkItem.js +1 -2
- package/dist/esm/Overlay/MenuButton/components/items/RadioItem.js +1 -2
- package/dist/esm/Overlay/MenuButton/components/items/ToggleItem.js +1 -2
- package/dist/esm/Overlay/Modal/Modal.js +1 -2
- package/dist/esm/Overlay/Popover/Popover.js +1 -2
- package/dist/esm/Overlay/Popover/types.d.ts +1 -1
- package/dist/esm/Overlay/Tooltip/Tooltip.d.ts +1 -1
- package/dist/esm/Overlay/Tooltip/TooltipWrapper.js +1 -3
- package/dist/esm/Satellite/SatelliteRouter.js +1 -2
- package/dist/esm/styles/tailwind.config.js +1 -2
- package/dist/esm/utils/hashCode.js +0 -1
- package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/satellite.min.css +1 -1
- package/package.json +19 -15
@@ -27,4 +27,4 @@ export interface TagProps extends DetailedHTMLProps<HTMLAttributes<HTMLSpanEleme
|
|
27
27
|
*
|
28
28
|
* See the [Tag documentation page](https://satellite.algolia.com/components/forms/tag) for more information.
|
29
29
|
*/
|
30
|
-
export declare const Tag: import("react").ForwardRefExoticComponent<
|
30
|
+
export declare const Tag: import("react").ForwardRefExoticComponent<Omit<TagProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
@@ -12,8 +12,7 @@ import { PlusIcon, XIcon } from "../../Icons";
|
|
12
12
|
import { TooltipWrapper } from "../../Overlay";
|
13
13
|
import { useLocale } from "../../Satellite";
|
14
14
|
import stl from "../../styles/helpers/satellitePrefixer";
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
17
16
|
var DEFAULT_TAG_LOCALE = {
|
18
17
|
addButton: function addButton(title) {
|
19
18
|
return "Add \"".concat(title, "\"");
|
@@ -87,7 +86,7 @@ export var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
87
86
|
hideDelay: 0,
|
88
87
|
side: "bottom",
|
89
88
|
children: /*#__PURE__*/_jsxs("button", _objectSpread(_objectSpread({}, tabIndexProps), {}, {
|
90
|
-
className: cx(stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["tag-add-button"]))), !removable && stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["-mr-2"]))), BUTTON_VARIANT_CLASSNAMES[variant]),
|
89
|
+
className: cx(stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["tag-add-button focusable-visible"]))), !removable && stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["-mr-2"]))), BUTTON_VARIANT_CLASSNAMES[variant]),
|
91
90
|
type: "button",
|
92
91
|
onClick: handleAdd,
|
93
92
|
"aria-label": typeof locale.addButton === "function" ? locale.addButton(title) : locale.addButton,
|
@@ -101,7 +100,7 @@ export var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
101
100
|
side: "bottom",
|
102
101
|
align: "start",
|
103
102
|
children: /*#__PURE__*/_jsx("button", _objectSpread(_objectSpread({}, tabIndexProps), {}, {
|
104
|
-
className: cx(stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["tag-close-button p-1"]))), !addable && stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["ml-2"]))), BUTTON_VARIANT_CLASSNAMES[variant]),
|
103
|
+
className: cx(stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["tag-close-button focusable-visible p-1"]))), !addable && stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["ml-2"]))), BUTTON_VARIANT_CLASSNAMES[variant]),
|
105
104
|
type: "button",
|
106
105
|
onClick: handleRemove,
|
107
106
|
"aria-label": typeof locale.removeButton === "function" ? locale.removeButton(title) : locale.removeButton,
|
@@ -10,7 +10,6 @@ var tagPlugin = plugin(function (_ref) {
|
|
10
10
|
alignItems: "center",
|
11
11
|
borderRadius: theme("borderRadius.DEFAULT"),
|
12
12
|
border: "1px solid transparent",
|
13
|
-
overflow: "hidden",
|
14
13
|
height: theme("spacing.6"),
|
15
14
|
padding: "0 ".concat(theme("spacing.2")),
|
16
15
|
fontSize: theme("fontSize.base"),
|
@@ -20,33 +19,19 @@ var tagPlugin = plugin(function (_ref) {
|
|
20
19
|
display: "inline-flex",
|
21
20
|
alignItems: "center",
|
22
21
|
height: "100%",
|
22
|
+
borderRadius: theme("borderRadius.DEFAULT"),
|
23
23
|
paddingLeft: theme("spacing.2"),
|
24
24
|
paddingRight: theme("spacing.2"),
|
25
25
|
marginLeft: "-".concat(theme("spacing.2")),
|
26
|
-
columnGap: theme("spacing.2")
|
27
|
-
"&, &:focus": {
|
28
|
-
outlineWidth: "0px"
|
29
|
-
},
|
30
|
-
"&:focus-visible": {
|
31
|
-
outlineOffset: "-2px",
|
32
|
-
outlineWidth: "3px",
|
33
|
-
outlineColor: theme("colors.accent.600")
|
34
|
-
}
|
26
|
+
columnGap: theme("spacing.2")
|
35
27
|
},
|
36
28
|
".tag-close-button": {
|
37
29
|
height: "100%",
|
30
|
+
borderRadius: theme("borderRadius.DEFAULT"),
|
38
31
|
paddingLeft: theme("spacing.1"),
|
39
32
|
paddingRight: theme("spacing.1"),
|
40
33
|
marginRight: "-".concat(theme("spacing.2")),
|
41
|
-
borderLeft: "1px solid transparent"
|
42
|
-
"&, &:focus": {
|
43
|
-
outlineWidth: "0px"
|
44
|
-
},
|
45
|
-
"&:focus-visible": {
|
46
|
-
outlineOffset: "-2px",
|
47
|
-
outlineWidth: "3px",
|
48
|
-
outlineColor: theme("colors.accent.600")
|
49
|
-
}
|
34
|
+
borderLeft: "1px solid transparent"
|
50
35
|
}
|
51
36
|
});
|
52
37
|
});
|
@@ -14,8 +14,7 @@ import { useLocale } from "../../Satellite";
|
|
14
14
|
import stl from "../../styles/helpers/satellitePrefixer";
|
15
15
|
import { isRenderedChild } from "../../utils/isRenderedChild";
|
16
16
|
import { ProgressSpinner } from "../ProgressSpinner";
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
19
18
|
var DEFAULT_TOAST_LOCALE = {
|
20
19
|
dismissText: "Dismiss"
|
21
20
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
4
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
4
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
5
5
|
var _excluded = ["content", "id", "autoDismissAfter"];
|
6
6
|
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; }
|
7
7
|
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) { _defineProperty(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; }
|
@@ -11,8 +11,7 @@ import { useCreatePortal, useLocale } from "../../Satellite";
|
|
11
11
|
import stl from "../../styles/helpers/satellitePrefixer";
|
12
12
|
import { prefersReducedMotion } from "../../utils/prefersReducedMotion";
|
13
13
|
import { Toast } from "./Toast";
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
16
15
|
var DEFAULT_TOASTS_LOCALE = {
|
17
16
|
hotkeyLabel: "Notifications"
|
18
17
|
};
|
@@ -74,6 +73,7 @@ export var Toasts = function Toasts(_ref) {
|
|
74
73
|
role: "listitem",
|
75
74
|
"aria-live": undefined,
|
76
75
|
"aria-atomic": undefined,
|
76
|
+
className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["focusable-visible rounded"]))),
|
77
77
|
children: /*#__PURE__*/_jsx(Toast, _objectSpread(_objectSpread({}, rest), {}, {
|
78
78
|
role: "status",
|
79
79
|
"aria-live": "polite",
|
@@ -86,7 +86,7 @@ export var Toasts = function Toasts(_ref) {
|
|
86
86
|
}), /*#__PURE__*/_jsx(ToastPrimitive.Viewport, {
|
87
87
|
hotkey: ["metaKey", "F8"],
|
88
88
|
label: "".concat(locale.hotkeyLabel, " (CmdKey+F8/WinKey+F8)}"),
|
89
|
-
className: stl(
|
89
|
+
className: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["z-notification bottom-0 right-0 fixed flex flex-col items-end p-4 gap-4"])))
|
90
90
|
})]
|
91
91
|
}));
|
92
92
|
};
|
@@ -3,8 +3,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
3
|
import { Badge } from "../../Indicators";
|
4
4
|
import stl from "../../styles/helpers/satellitePrefixer";
|
5
5
|
import { onlyText } from "../../utils/onlyText";
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
8
7
|
/**
|
9
8
|
* The `Insert` component is used to give extra information to the user about the flow they are in or to highlight and define some terms used.
|
10
9
|
*
|
@@ -10,8 +10,7 @@ import { TooltipWrapper } from "../../Overlay";
|
|
10
10
|
import stl from "../../styles/helpers/satellitePrefixer";
|
11
11
|
import { useLinkProps } from "../../utils/useLinkProps";
|
12
12
|
import { useSidebarContext } from "./SidebarContext";
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
15
14
|
var Tooltip = function Tooltip(_ref) {
|
16
15
|
var content = _ref.content,
|
17
16
|
children = _ref.children;
|
@@ -8,8 +8,7 @@ import { ExternalLinkIcon } from "../../Icons";
|
|
8
8
|
import stl from "../../styles/helpers/satellitePrefixer";
|
9
9
|
import { useLinkProps } from "../../utils/useLinkProps";
|
10
10
|
import { useSidebarContext } from "./SidebarContext";
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
12
|
export var SidebarLink = function SidebarLink(props) {
|
14
13
|
var _linkProps$href;
|
15
14
|
var _useSidebarContext = useSidebarContext(),
|
@@ -6,8 +6,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
6
6
|
import { ExternalLinkIcon } from "../../../Icons";
|
7
7
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
8
8
|
import { useLinkProps } from "../../../utils/useLinkProps";
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
11
10
|
export var SidebarGroupLink = function SidebarGroupLink(props) {
|
12
11
|
var label = props.label,
|
13
12
|
active = props.active,
|
@@ -12,8 +12,7 @@ import stl from "../../../styles/helpers/satellitePrefixer";
|
|
12
12
|
import { useSidebarContext } from "../SidebarContext";
|
13
13
|
import { ActiveLinkIndicator } from "./ActiveLinkIndicator";
|
14
14
|
import { SidebarGroupLink } from "./SidebarGroupLink";
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
17
16
|
var isCollapsibleSidebarLinksGroupProps = function isCollapsibleSidebarLinksGroupProps(props) {
|
18
17
|
return "title" in props && "icon" in props;
|
19
18
|
};
|
@@ -51,5 +51,5 @@ export declare type DataTableProps<Item> = BaseDataTableProps<Item> & (DataTable
|
|
51
51
|
*
|
52
52
|
* See the [Data Table documentation page](https://satellite.algolia.com/layouts/data-table) for more information.
|
53
53
|
*/
|
54
|
-
export declare const DataTable: <Item extends {}>({ data, itemId, columns, onChange, status, noDataContent, errorContent, sorting, sortMode, pagination, selectMode, selection, onSelectionChange, canSelectItem, canHoverRow, onRowHoveredChanged, locale, }: DataTableProps<Item>) => JSX.Element;
|
54
|
+
export declare const DataTable: <Item extends {}>({ data, itemId, columns, onChange, status, noDataContent, errorContent, sorting, sortMode, pagination, selectMode, selection, onSelectionChange, canSelectItem, canHoverRow, onRowHoveredChanged, locale, }: DataTableProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
55
55
|
export {};
|
@@ -18,8 +18,7 @@ import { DataTableFooter } from "./components/Footer";
|
|
18
18
|
import { DataTableHeader } from "./components/Header";
|
19
19
|
import { DataTableLoader } from "./components/Loader";
|
20
20
|
import { isDeterminatePagination, isIndeterminatePagination } from "./utils";
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
23
22
|
var DEFAULT_DATATABLE_LOCALE = {
|
24
23
|
selectAllButton: "Select all",
|
25
24
|
noDataTitle: "Empty",
|
@@ -11,4 +11,4 @@ export interface DataTableBodyProps<Item> extends Pick<DataTableProps<Item>, "se
|
|
11
11
|
selectMode: SelectMode;
|
12
12
|
locale: Required<DataTableLocale>;
|
13
13
|
}
|
14
|
-
export declare const DataTableBody: <Item extends {}>({ rows, columns, status, noDataContent, errorContent, selectMode, selection, onSelectionChange, onRowHoverChange, canHoverRow, locale, }: DataTableBodyProps<Item>) => JSX.Element;
|
14
|
+
export declare const DataTableBody: <Item extends {}>({ rows, columns, status, noDataContent, errorContent, selectMode, selection, onSelectionChange, onRowHoverChange, canHoverRow, locale, }: DataTableBodyProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import type { AdvancedColumnDefinition, Sorting, SortingDirection } from "../types";
|
3
2
|
export interface DataTableHeaderProps<Item> {
|
4
3
|
columns: AdvancedColumnDefinition<Item>[];
|
@@ -6,4 +5,4 @@ export interface DataTableHeaderProps<Item> {
|
|
6
5
|
onToggleSort: (columnId: string, direction: SortingDirection) => void;
|
7
6
|
disabled?: boolean;
|
8
7
|
}
|
9
|
-
export declare const DataTableHeader: <Item extends {}>({ columns, sorting, onToggleSort, disabled, }: DataTableHeaderProps<Item>) => JSX.Element;
|
8
|
+
export declare const DataTableHeader: <Item extends {}>({ columns, sorting, onToggleSort, disabled, }: DataTableHeaderProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
@@ -8,4 +8,4 @@ export interface DataTableHeaderCellProps<Item> extends HTMLAttributes<HTMLTable
|
|
8
8
|
onToggleSort: (columnId: string, sortingDirection: SortingDirection) => void;
|
9
9
|
children: ReactNode;
|
10
10
|
}
|
11
|
-
export declare const DataTableHeaderCell: <Item extends {}>({ sortingDirection, onToggleSort, column: { id, className, sort }, disabled, children, ...props }: DataTableHeaderCellProps<Item>) => JSX.Element;
|
11
|
+
export declare const DataTableHeaderCell: <Item extends {}>({ sortingDirection, onToggleSort, column: { id, className, sort }, disabled, children, ...props }: DataTableHeaderCellProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
@@ -8,8 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
8
8
|
import cx from "clsx";
|
9
9
|
import { ChevronDownIcon, ChevronUpIcon } from "../../../../Icons";
|
10
10
|
import stl from "../../../../styles/helpers/satellitePrefixer";
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
12
|
var iconClassName = stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["h-4 inline ml-1"])));
|
14
13
|
export var DataTableHeaderCell = function DataTableHeaderCell(_ref) {
|
15
14
|
var _ref$sortingDirection = _ref.sortingDirection,
|
@@ -8,8 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
8
8
|
import cx from "clsx";
|
9
9
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
10
10
|
import { TableFooter } from "./components/TableFooter";
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
12
|
/**
|
14
13
|
* The `Table` component is used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
|
15
14
|
*
|
@@ -1,21 +1,26 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
3
|
-
var
|
4
|
+
var _templateObject;
|
5
|
+
var _excluded = ["href", "onClick", "className"];
|
4
6
|
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; }
|
5
7
|
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) { _defineProperty(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; }
|
6
8
|
import { forwardRef } from "react";
|
9
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
7
10
|
import { useLinkProps } from "../../utils/useLinkProps";
|
8
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
12
|
export var BaseLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
10
13
|
var href = _ref.href,
|
11
14
|
onClick = _ref.onClick,
|
15
|
+
className = _ref.className,
|
12
16
|
anchorProps = _objectWithoutProperties(_ref, _excluded);
|
13
17
|
var linkProps = useLinkProps(_objectSpread(_objectSpread({}, anchorProps), {}, {
|
14
18
|
href: href,
|
15
19
|
onClick: onClick
|
16
20
|
}));
|
17
21
|
return /*#__PURE__*/_jsx("a", _objectSpread(_objectSpread(_objectSpread({}, anchorProps), linkProps), {}, {
|
18
|
-
ref: ref
|
22
|
+
ref: ref,
|
23
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["focusable-visible"])))
|
19
24
|
}));
|
20
25
|
});
|
21
26
|
BaseLink.displayName = "BaseLink";
|
@@ -10,8 +10,7 @@ import { forwardRef } from "react";
|
|
10
10
|
import { ExternalLinkIcon } from "../../Icons";
|
11
11
|
import stl from "../../styles/helpers/satellitePrefixer";
|
12
12
|
import { useLinkProps } from "../../utils/useLinkProps";
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
15
14
|
/**
|
16
15
|
* The `Link` component is used to display a link.
|
17
16
|
*
|
@@ -35,7 +34,7 @@ export var Link = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
35
34
|
}
|
36
35
|
return /*#__PURE__*/_jsxs("a", _objectSpread(_objectSpread(_objectSpread({}, anchorProps), linkProps), {}, {
|
37
36
|
ref: ref,
|
38
|
-
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["typo-link inline-flex items-center"]))), className),
|
37
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["typo-link inline-flex items-center focusable-visible"]))), className),
|
39
38
|
children: [StartIcon && /*#__PURE__*/_jsx(StartIcon, {
|
40
39
|
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["mr-1 shrink-0"]))),
|
41
40
|
width: "1em",
|
@@ -7,8 +7,7 @@ import { IconButton } from "../../../Actions";
|
|
7
7
|
import { ArrowLeftIcon, ArrowRightIcon, ChevronsLeftIcon, ChevronsRightIcon } from "../../../Icons";
|
8
8
|
import { useLocale } from "../../../Satellite";
|
9
9
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
12
11
|
var DEFAULT_COMPACT_PAGINATION_LOCALE = {
|
13
12
|
goToFirstPage: "Go to first page",
|
14
13
|
goToPreviousPage: "Go to previous page",
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import type { NumberUnion } from "utils/NumberUnion";
|
3
2
|
export declare type DotPaginationLocale = {
|
4
3
|
goToPageText?(page: number): string;
|
@@ -16,4 +15,4 @@ export declare type DotPaginationProps<T extends number> = {
|
|
16
15
|
*
|
17
16
|
* See the [Dot Pagination documentation page](https://satellite.algolia.com/components/navigation/dot-pagination) for more information.
|
18
17
|
*/
|
19
|
-
export declare const DotPagination: <T extends number>({ currentPage, onChange, nbPages, size, locale, }: DotPaginationProps<T>) => JSX.Element;
|
18
|
+
export declare const DotPagination: <T extends number>({ currentPage, onChange, nbPages, size, locale, }: DotPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
|
@@ -33,7 +33,7 @@ export var DotPagination = function DotPagination(_ref) {
|
|
33
33
|
children: /*#__PURE__*/_jsx("button", {
|
34
34
|
type: "button",
|
35
35
|
"aria-label": locale.goToPageText(pageIdx),
|
36
|
-
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n rounded-full mx-1 border\n ", "\n ", "\n "])), currentPage === pageIdx ? "bg-accent-600 border-transparent" : "bg-grey-200 border-grey-500", size === "medium" ? "h-3 w-3" : "h-2 w-2"),
|
36
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n rounded-full mx-1 border focusable-visible\n ", "\n ", "\n "])), currentPage === pageIdx ? "bg-accent-600 border-transparent" : "bg-grey-200 border-grey-500", size === "medium" ? "h-3 w-3" : "h-2 w-2"),
|
37
37
|
onClick: function onClick() {
|
38
38
|
return onChange(pageIdx);
|
39
39
|
}
|
@@ -8,9 +8,7 @@ import { ArrowLeftIcon, ArrowRightIcon } from "../../../Icons";
|
|
8
8
|
import { useLocale } from "../../../Satellite";
|
9
9
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
10
10
|
import { range } from "../../../utils/range";
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
11
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
14
12
|
var DEFAULT_PAGINATION_LOCALE = {
|
15
13
|
goToPage: function goToPage(index) {
|
16
14
|
return "Go to page ".concat(index);
|
@@ -12,8 +12,7 @@ import stl from "../../styles/helpers/satellitePrefixer";
|
|
12
12
|
import { getTextFromReactNode } from "../../utils/getTextFromReactNode";
|
13
13
|
import { uniqueId } from "../../utils/uniqueId";
|
14
14
|
import { useStepperContext } from "./StepperContext";
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
17
16
|
var BUTTON_SIZE_CLASSNAMES = {
|
18
17
|
small: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["px-2.5 py-2"]))),
|
19
18
|
"default": stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["px-3 py-2.5"]))),
|
@@ -66,7 +65,9 @@ export var Step = function Step(_ref) {
|
|
66
65
|
children: /*#__PURE__*/_jsxs("button", {
|
67
66
|
type: "button",
|
68
67
|
id: buttonId,
|
69
|
-
className: cx(stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["relative w-full flex items-center text-left gap-2 rounded border group/button"]))), stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["-outline-offset-2
|
68
|
+
className: cx(stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["relative w-full flex items-center text-left gap-2 rounded border group/button"]))), stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["focusable-visible !-outline-offset-2"]))),
|
69
|
+
// Avoid hover overlap
|
70
|
+
disabled ? stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["cursor-not-allowed"]))) : stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["hover:bg-grey-100"]))), active ? stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["border-grey-200 bg-white"]))) : stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["border-transparent"]))), BUTTON_SIZE_CLASSNAMES[context.size]),
|
70
71
|
"aria-label": disabled ? disabledLocale : active ? activeLocale : completed ? completedLocale : incompletedLocale,
|
71
72
|
"aria-current": active ? "step" : undefined,
|
72
73
|
disabled: disabled,
|
@@ -5,8 +5,7 @@ import cx from "clsx";
|
|
5
5
|
import { Badge } from "../../../Indicators";
|
6
6
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
7
7
|
import { ACTIVE_UNDERLINE_VARIANT_CLASSNAMES } from "../utils";
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
10
9
|
export var ContentTabs = function ContentTabs(_ref) {
|
11
10
|
var className = _ref.className,
|
12
11
|
tabs = _ref.tabs,
|
@@ -8,8 +8,7 @@ import { Badge } from "../../../Indicators";
|
|
8
8
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
9
9
|
import { useLinkProps } from "../../../utils/useLinkProps";
|
10
10
|
import { ACTIVE_UNDERLINE_VARIANT_CLASSNAMES } from "../utils";
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
12
|
var getNextNonDisabledSibling = function getNextNonDisabledSibling(el) {
|
14
13
|
var _ref;
|
15
14
|
if (!el) return null;
|
@@ -21,8 +21,7 @@ import { DropdownRadioItem } from "./components/DropdownRadioItem";
|
|
21
21
|
import { DropdownTitle } from "./components/DropdownTitle";
|
22
22
|
import { DropdownToggleItem } from "./components/DropdownToggleItem";
|
23
23
|
import { DropdownContext } from "./DropdownContext";
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
26
25
|
var DEFAULT_DROPDOWN_POPPER_MODIFIERS = [{
|
27
26
|
name: "offset",
|
28
27
|
options: {
|
@@ -8,8 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
8
8
|
import cx from "clsx";
|
9
9
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
10
10
|
import { useDropdownItemProps } from "../useDropdownItemProps";
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
12
|
var _DropdownButtonItem = function _DropdownButtonItem(props) {
|
14
13
|
var dropdownItemProps = useDropdownItemProps(props);
|
15
14
|
// `toggle` is destructured here because we don't want it passed to the `button`
|
package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js
CHANGED
@@ -6,8 +6,7 @@ import { ChevronDownIcon, ChevronRightIcon } from "../../../../Icons";
|
|
6
6
|
import stl from "../../../../styles/helpers/satellitePrefixer";
|
7
7
|
import { uniqueId } from "../../../../utils";
|
8
8
|
import { useDropdownCollapsibleItemsGroup } from "./DropdownCollapsibleItemsGroupContext";
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
11
10
|
/** @deprecated */
|
12
11
|
export var DropdownCollapsibleItem = function DropdownCollapsibleItem(_ref) {
|
13
12
|
var title = _ref.title,
|
@@ -10,8 +10,7 @@ import { ExternalLinkIcon } from "../../../Icons";
|
|
10
10
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
11
11
|
import { useLinkProps } from "../../../utils/useLinkProps";
|
12
12
|
import { useDropdownItemProps } from "../useDropdownItemProps";
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
15
14
|
var _DropdownLinkItem = function _DropdownLinkItem(props) {
|
16
15
|
var dropdownItemProps = useDropdownItemProps(props);
|
17
16
|
var linkProps = useLinkProps(_objectSpread(_objectSpread({}, props), dropdownItemProps));
|
@@ -8,8 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
8
8
|
import { RadioButton } from "../../../Fields";
|
9
9
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
10
10
|
import { useDropdownItemProps } from "../useDropdownItemProps";
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
12
|
/** @deprecated */
|
14
13
|
var _DropdownRadioItem = function _DropdownRadioItem(props) {
|
15
14
|
var dropdownItemProps = useDropdownItemProps(props);
|
@@ -9,8 +9,7 @@ import cx from "clsx";
|
|
9
9
|
import { Toggle } from "../../../Fields";
|
10
10
|
import stl from "../../../styles/helpers/satellitePrefixer";
|
11
11
|
import { useDropdownItemProps } from "../useDropdownItemProps";
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
14
13
|
/** @deprecated */
|
15
14
|
var _DropdownToggleItem = function _DropdownToggleItem(props) {
|
16
15
|
var dropdownItemProps = useDropdownItemProps(props);
|
@@ -8,13 +8,13 @@ export declare type MenuButtonProps = DropdownMenuProps;
|
|
8
8
|
* See the [MenuButton documentation page](https://satellite.algolia.com/components/actions/dropdown) for more information.
|
9
9
|
*/
|
10
10
|
export declare const MenuButton: {
|
11
|
-
(props: MenuButtonProps): JSX.Element;
|
11
|
+
(props: MenuButtonProps): import("react/jsx-runtime").JSX.Element;
|
12
12
|
CollapsibleItem: import("react").FC<import("./components/collapsible").CollapsibleItemProps>;
|
13
13
|
CollapsibleItemsMultipleGroup: import("react").FC<import("./components/collapsible").CollapsibleItemsMultiGroupProps>;
|
14
14
|
CollapsibleItemsSingleGroup: import("react").FC<import("./components/collapsible").CollapsibleItemsExclusiveGroupProps>;
|
15
15
|
Content: ({ children, className, ...rest }: import("./components/Content").MenuButtonContentProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
16
16
|
CustomTrigger: import("react").FC<import("./components/CustomTrigger").CustomTriggerProps>;
|
17
|
-
Divider: () => JSX.Element;
|
17
|
+
Divider: () => import("react/jsx-runtime").JSX.Element;
|
18
18
|
Item: import("react").FC<import("./components/items").ItemProps>;
|
19
19
|
Label: import("react").FC<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
20
20
|
LinkItem: import("react").FC<import("./components/items").LinkItemProps>;
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export declare const Divider: () => JSX.Element;
|
1
|
+
export declare const Divider: () => import("react/jsx-runtime").JSX.Element;
|
@@ -7,8 +7,7 @@ import { ChevronDownIcon, ChevronRightIcon } from "../../../../Icons";
|
|
7
7
|
import stl from "../../../../styles/helpers/satellitePrefixer";
|
8
8
|
import { uniqueId } from "../../../../utils";
|
9
9
|
import { useCollapsibleItemsGroup } from "./CollapsibleItemsGroupContext";
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
12
11
|
export var CollapsibleItem = function CollapsibleItem(_ref) {
|
13
12
|
var title = _ref.title,
|
14
13
|
name = _ref.name,
|
@@ -9,8 +9,7 @@ import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
9
9
|
import cx from "clsx";
|
10
10
|
import stl from "../../../../styles/helpers/satellitePrefixer";
|
11
11
|
import { useMenuItemProps } from "../../useMenuItemProps";
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
14
13
|
export var Item = function Item(props) {
|
15
14
|
var itemProps = useMenuItemProps(props);
|
16
15
|
var _props$itemProps = _objectSpread(_objectSpread({}, props), itemProps),
|
@@ -13,8 +13,7 @@ import { useSatelliteContext } from "../../../../Satellite";
|
|
13
13
|
import stl from "../../../../styles/helpers/satellitePrefixer";
|
14
14
|
import { parseURL } from "../../../../utils/parseUrl";
|
15
15
|
import { useMenuItemProps } from "../../useMenuItemProps";
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
18
17
|
export var LinkItem = function LinkItem(props) {
|
19
18
|
var _useSatelliteContext = useSatelliteContext(),
|
20
19
|
router = _useSatelliteContext.router;
|
@@ -10,8 +10,7 @@ import cx from "clsx";
|
|
10
10
|
import { CheckIcon } from "../../../../Icons";
|
11
11
|
import stl from "../../../../styles/helpers/satellitePrefixer";
|
12
12
|
import { useMenuItemProps } from "../../useMenuItemProps";
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
15
14
|
export var RadioItem = function RadioItem(props) {
|
16
15
|
var itemProps = useMenuItemProps(props);
|
17
16
|
var _props$itemProps = _objectSpread(_objectSpread({}, props), itemProps),
|
@@ -12,8 +12,7 @@ import { useState } from "react";
|
|
12
12
|
import { Toggle } from "../../../../Fields";
|
13
13
|
import stl from "../../../../styles/helpers/satellitePrefixer";
|
14
14
|
import { useMenuItemProps } from "../../useMenuItemProps";
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
17
16
|
export var ToggleItem = function ToggleItem(props) {
|
18
17
|
var itemProps = useMenuItemProps(props);
|
19
18
|
var _props$itemProps = _objectSpread(_objectSpread({}, props), itemProps),
|
@@ -14,8 +14,7 @@ import stl from "../../styles/helpers/satellitePrefixer";
|
|
14
14
|
import { prefersReducedMotion } from "../../utils/prefersReducedMotion";
|
15
15
|
import { ModalFooter } from "./components/ModalFooter";
|
16
16
|
import { ModalSection } from "./components/ModalSection";
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
19
18
|
var DEFAULT_MODAL_LOCALE = {
|
20
19
|
dismissText: "Dismiss",
|
21
20
|
modalTitle: "Modal"
|
@@ -14,8 +14,7 @@ import { XIcon } from "../../Icons";
|
|
14
14
|
import { useCreatePortal, useLocale } from "../../Satellite";
|
15
15
|
import stl from "../../styles/helpers/satellitePrefixer";
|
16
16
|
import { uniqueId } from "../../utils";
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
19
18
|
var DEFAULT_POPOVER_LOCALE = {
|
20
19
|
dismissText: "Dismiss"
|
21
20
|
};
|
@@ -3,7 +3,7 @@ import type { HTMLAttributes, ReactElement, ReactNode } from "react";
|
|
3
3
|
export declare type PopoverLocale = {
|
4
4
|
dismissText?: string;
|
5
5
|
};
|
6
|
-
export interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
6
|
+
export interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "content"> {
|
7
7
|
/**
|
8
8
|
* Defines the trigger element of the `Popover`.
|
9
9
|
* It should be a button element.
|