@iress-oss/ids-components 6.0.1 → 6.2.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/.ai/components/select.md +16 -0
- package/dist/Autocomplete-DKufjQU5.js +324 -0
- package/dist/{Button-bZPKq0ue.js → Button-BY2qzshw.js} +4 -4
- package/dist/{Provider-DvnuqPfQ.js → Provider-BNuRw7ck.js} +2 -2
- package/dist/Shadow-DAfthdT2.js +57 -0
- package/dist/{Slideout-RnRSkJsj.js → Slideout-BOH2gwIN.js} +3 -3
- package/dist/{Table.styles-BLO9zGfS.js → Table.styles-CKD_vWqh.js} +3 -3
- package/dist/TableProvider-C8bDaWu2.js +80 -0
- package/dist/{TableRows-B3nZnazw.js → TableRows-DXoiLfwt.js} +3 -4
- package/dist/{Text.styles-C0D5aEE_.js → Text.styles-DUvXBRio.js} +2 -2
- package/dist/components/Alert/Alert.js +4 -4
- package/dist/components/Alert/Alert.styles.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
- package/dist/components/Autocomplete/components/AutocompleteInstructions.js +4 -1
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +7 -2
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +1 -1
- package/dist/components/Autocomplete/index.js +2 -2
- package/dist/components/Avatar/Avatar.js +3 -3
- package/dist/components/Avatar/Avatar.styles.js +1 -1
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.js +3 -3
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.styles.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/CloseButton/CloseButton.js +2 -2
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +4 -4
- package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
- package/dist/components/Card/Card.js +3 -3
- package/dist/components/Card/Card.styles.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +4 -4
- package/dist/components/Checkbox/Checkbox.styles.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +1 -1
- package/dist/components/CheckboxMark/CheckboxMark.js +3 -3
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +1 -1
- package/dist/components/Col/Col.js +2 -2
- package/dist/components/Col/Col.styles.js +1 -1
- package/dist/components/Container/Container.js +2 -2
- package/dist/components/Container/Container.styles.js +1 -1
- package/dist/components/Divider/Divider.js +3 -3
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.js +4 -4
- package/dist/components/Expander/Expander.styles.js +1 -1
- package/dist/components/ExpanderChevron/ExpanderChevron.js +1 -1
- package/dist/components/ExpanderChevron/ExpanderChevron.styles.js +1 -1
- package/dist/components/Field/Field.js +51 -51
- package/dist/components/Field/Field.styles.d.ts +1 -1
- package/dist/components/Field/Field.styles.js +7 -1
- package/dist/components/Field/components/FieldFooter.js +3 -3
- package/dist/components/Field/components/FieldHint.js +29 -21
- package/dist/components/Field/index.d.ts +0 -2
- package/dist/components/Field/index.js +1 -3
- package/dist/components/{Field/FieldGroup → FieldGroup}/FieldGroup.js +9 -9
- package/dist/components/{Field/FieldGroup → FieldGroup}/FieldGroup.styles.d.ts +1 -1
- package/dist/components/{Field/FieldGroup → FieldGroup}/FieldGroup.styles.js +2 -2
- package/dist/components/FieldGroup/index.d.ts +2 -0
- package/dist/components/FieldGroup/index.js +3 -0
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Hide/helpers/normaliseHideValues.js +1 -1
- package/dist/components/Icon/Icon.constants.js +1 -1
- package/dist/components/Icon/Icon.js +5 -5
- package/dist/components/Icon/Icon.styles.js +1 -1
- package/dist/components/Icon/IconProvider.js +2 -2
- package/dist/components/Icon/helpers/getMaterialSymbolsList.js +1 -1
- package/dist/components/Icon/hooks/useDynamicFontSubsetting.js +56 -39
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Image/Image.js +2 -2
- package/dist/components/Image/Image.styles.js +1 -1
- package/dist/components/Inline/Inline.js +2 -2
- package/dist/components/Inline/Inline.styles.js +1 -1
- package/dist/components/Input/Input.js +4 -4
- package/dist/components/Input/Input.styles.d.ts +4 -4
- package/dist/components/Input/Input.styles.js +5 -5
- package/dist/components/Input/InputBase/InputBase.js +1 -1
- package/dist/components/InputCurrency/InputCurrency.js +1 -1
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +2 -2
- package/dist/components/Link/Link.js +3 -3
- package/dist/components/Link/Link.styles.d.ts +1 -0
- package/dist/components/Link/Link.styles.js +5 -2
- package/dist/components/Menu/Menu.js +84 -80
- package/dist/components/Menu/Menu.styles.js +8 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +1 -1
- package/dist/components/Menu/MenuGroup/MenuGroup.d.ts +18 -3
- package/dist/components/Menu/MenuGroup/MenuGroup.js +39 -35
- package/dist/components/Menu/MenuGroup/MenuGroup.styles.js +1 -1
- package/dist/components/Menu/MenuHeading/MenuHeading.d.ts +20 -0
- package/dist/components/Menu/MenuHeading/MenuHeading.js +14 -0
- package/dist/components/Menu/MenuItem/MenuItem.js +4 -4
- package/dist/components/Menu/MenuItem/MenuItem.styles.js +10 -1
- package/dist/components/Menu/MenuText/MenuText.d.ts +1 -5
- package/dist/components/Menu/MenuText/MenuText.js +14 -20
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/Menu/index.js +4 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal.styles.js +1 -1
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Pill/Pill.js +4 -4
- package/dist/components/Pill/Pill.styles.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Placeholder/Placeholder.styles.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +2 -2
- package/dist/components/Popover/Popover.js +4 -4
- package/dist/components/Popover/Popover.styles.js +1 -1
- package/dist/components/Popover/components/PopoverContent.js +54 -44
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +2 -2
- package/dist/components/Popover/hooks/useFloatingPopover.js +1 -1
- package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
- package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
- package/dist/components/Progress/Progress.js +5 -5
- package/dist/components/Progress/Progress.styles.js +1 -1
- package/dist/components/Provider/Provider.js +1 -1
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +4 -4
- package/dist/components/Radio/Radio.styles.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/RadioGroup/RadioGroup.styles.js +1 -1
- package/dist/components/RadioMark/RadioMark.js +3 -3
- package/dist/components/RadioMark/RadioMark.styles.js +1 -1
- package/dist/components/Readonly/Readonly.js +4 -4
- package/dist/components/Readonly/Readonly.styles.js +1 -1
- package/dist/components/Row/Row.js +2 -2
- package/dist/components/Row/Row.styles.js +1 -1
- package/dist/components/Select/Select.d.ts +6 -0
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/Select.styles.js +1 -1
- package/dist/components/Select/SelectBody/SelectBody.js +1 -1
- package/dist/components/Select/SelectBody/SelectBody.styles.js +1 -1
- package/dist/components/Select/SelectHeading/SelectHeading.js +7 -7
- package/dist/components/Select/SelectLabel/SelectLabel.js +1 -1
- package/dist/components/Select/SelectLabel/SelectLabel.styles.js +1 -1
- package/dist/components/Select/SelectMenu/SelectMenu.js +1 -1
- package/dist/components/Select/SelectMenu/SelectMenu.styles.js +1 -1
- package/dist/components/Select/SelectMenu/SelectMenuItem.js +1 -1
- package/dist/components/Select/SelectSearch/SelectSearch.js +1 -1
- package/dist/components/Select/SelectSearch/SelectSearch.styles.js +1 -1
- package/dist/components/Select/SelectSearchInput/SelectSearchInput.js +1 -1
- package/dist/components/Select/SelectSearchInput/SelectSearchInput.styles.js +1 -1
- package/dist/components/Select/SelectTags/SelectTags.js +17 -17
- package/dist/components/Select/SelectTags/SelectTags.styles.js +1 -1
- package/dist/components/Select/components/NativeSelect.js +3 -3
- package/dist/components/Select/components/NativeSelect.styles.d.ts +1 -1
- package/dist/components/Select/components/NativeSelect.styles.js +2 -2
- package/dist/components/Select/components/SelectOptions.d.ts +2 -2
- package/dist/components/Select/components/SelectOptions.js +117 -98
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/Skeleton.styles.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +2 -2
- package/dist/components/SkipLink/SkipLink.styles.js +1 -1
- package/dist/components/Slideout/Slideout.js +1 -1
- package/dist/components/Slideout/Slideout.styles.js +2 -1
- package/dist/components/Slideout/components/SlideoutInner.js +2 -2
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +3 -3
- package/dist/components/Slider/Slider.styles.js +1 -1
- package/dist/components/Slider/components/SliderTicks.js +2 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/Spinner.styles.js +2 -2
- package/dist/components/Stack/Stack.js +2 -2
- package/dist/components/Stack/Stack.styles.js +1 -1
- package/dist/components/Styled/Styled.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +3 -3
- package/dist/components/TabSet/Tab/Tab.styles.js +1 -1
- package/dist/components/TabSet/TabSet.d.ts +6 -1
- package/dist/components/TabSet/TabSet.js +39 -35
- package/dist/components/TabSet/TabSet.styles.d.ts +1 -1
- package/dist/components/TabSet/TabSet.styles.js +14 -2
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.styles.js +1 -1
- package/dist/components/Table/TableBody/TableBody.js +1 -1
- package/dist/components/Table/TableProvider.js +2 -43
- package/dist/components/Table/components/TableEmpty.js +1 -1
- package/dist/components/Table/components/TableFilterButton.js +1 -1
- package/dist/components/Table/components/TableHeader.js +1 -1
- package/dist/components/Table/components/TableHeaderCell.js +1 -1
- package/dist/components/Table/components/TableRows.js +1 -1
- package/dist/components/Table/components/TableSortButton.js +1 -1
- package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
- package/dist/components/Table/helpers/composeTableInitialColumnFilters.js +1 -1
- package/dist/components/Table/hooks/useTable.js +1 -1
- package/dist/components/Table/hooks/useTableColumnFilter.js +2 -2
- package/dist/components/Table/hooks/useTableColumnSort.js +1 -1
- package/dist/components/Table/hooks/useTableColumnStyles.js +4 -4
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Tag/Tag.js +3 -3
- package/dist/components/Tag/Tag.styles.d.ts +14 -14
- package/dist/components/Tag/Tag.styles.js +17 -17
- package/dist/components/Tag/index.d.ts +0 -1
- package/dist/components/Tag/index.js +1 -2
- package/dist/components/{Tag/TagInput → TagInput}/TagInput.d.ts +1 -1
- package/dist/components/{Tag/TagInput → TagInput}/TagInput.js +7 -7
- package/dist/components/TagInput/TagInput.styles.d.ts +1 -0
- package/dist/components/{Tag/TagInput → TagInput}/TagInput.styles.js +2 -2
- package/dist/components/TagInput/index.d.ts +2 -0
- package/dist/components/TagInput/index.js +3 -0
- package/dist/components/Text/Text.js +3 -3
- package/dist/components/Text/Text.styles.js +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Toaster/Toaster.js +3 -3
- package/dist/components/Toaster/Toaster.styles.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.js +2 -2
- package/dist/components/Toaster/components/Toast/Toast.styles.js +1 -1
- package/dist/components/Toggle/Toggle.js +3 -3
- package/dist/components/Toggle/Toggle.styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +7 -2
- package/dist/components/Tooltip/Tooltip.js +50 -44
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/Tooltip/TooltipProvider.d.ts +27 -0
- package/dist/components/Tooltip/TooltipProvider.js +14 -0
- package/dist/components/Tooltip/hooks/useTooltipContainer.d.ts +17 -0
- package/dist/components/Tooltip/hooks/useTooltipContainer.js +5 -0
- package/dist/components/Tooltip/index.d.ts +4 -0
- package/dist/components/Tooltip/index.js +4 -2
- package/dist/components/ValidationMessage/ValidationLink/ValidationLink.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +5 -5
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +2 -2
- package/dist/{composeTableColumnDefs-B1U_Snxq.js → composeTableColumnDefs-DzUn8D5f.js} +230 -266
- package/dist/constants.js +1 -1
- package/dist/{create-recipe-CYwSzH6a.js → create-recipe-A316lnq3.js} +3 -3
- package/dist/{css-D3KwXbP0.js → css-R34N3rft.js} +32 -32
- package/dist/{cva-BWFp4eLV.js → cva-DcOwIar2.js} +2 -2
- package/dist/{factory-sKbby7-S.js → factory-BKr3zaf6.js} +4 -4
- package/dist/{floating-ui.react-COiJC198.js → floating-ui.react-TDMXDOBr.js} +50 -50
- package/dist/helpers/dom/focusableElements.js +1 -1
- package/dist/helpers/label-value/highlightQueryInLabel.js +378 -2
- package/dist/helpers/label-value/highlightQueryInLabelValue.js +1 -1
- package/dist/helpers/label-value/searchLabelValues.js +3 -2
- package/dist/helpers/styling/iressCss.js +1 -1
- package/dist/hooks/useBreakpoint.js +1 -1
- package/dist/hooks/useResponsiveProps.js +1 -1
- package/dist/index.d-BITk11Vr.js +4 -0
- package/dist/{index.esm-CmxdHJYy.js → index.esm-CapMi3wi.js} +2 -2
- package/dist/{is-valid-prop-BoZ7GJt2.js → is-valid-prop-BVyYPT21.js} +1 -1
- package/dist/{main-BpD96KHv.js → main-TklToXNs.js} +24 -25
- package/dist/main.d.ts +2 -0
- package/dist/main.js +130 -126
- package/dist/patterns/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/patterns/Breadcrumbs/Breadcrumbs.styles.js +1 -1
- package/dist/patterns/ContextualMenu/ContextualMenu.js +5 -5
- package/dist/patterns/ContextualMenu/ContextualMenu.styles.js +1 -1
- package/dist/patterns/DropdownMenu/DropdownMenu.js +119 -107
- package/dist/patterns/DropdownMenu/DropdownMenu.styles.js +1 -1
- package/dist/patterns/DropdownMenu/hooks/useDropdownMenuFlags.d.ts +1 -0
- package/dist/patterns/DropdownMenu/hooks/useDropdownMenuFlags.js +1 -0
- package/dist/patterns/Form/Form.styles.js +1 -1
- package/dist/patterns/Form/FormField/FormFieldset.d.ts +1 -1
- package/dist/patterns/Form/FormField/FormFieldset.js +1 -1
- package/dist/patterns/Form/FormField/helpers/getErrorTypeMessage.js +2 -2
- package/dist/patterns/Form/FormField/helpers/transformCustomRulesToValidateRule.js +5 -5
- package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +2 -1
- package/dist/patterns/Form/HookForm/HookForm.js +2 -2
- package/dist/patterns/Form/components/LongForm.js +4 -2
- package/dist/patterns/Form/components/ShortForm.js +2 -1
- package/dist/patterns/Loading/Loading.styles.d.ts +3 -0
- package/dist/patterns/Loading/Loading.styles.js +5 -2
- package/dist/patterns/Loading/components/ComponentLoading.js +4 -4
- package/dist/patterns/Loading/components/DefaultLoading.js +2 -2
- package/dist/patterns/Loading/components/LongLoading.js +4 -4
- package/dist/patterns/Loading/components/PageLoading.js +6 -6
- package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
- package/dist/patterns/Loading/components/ValidateLoading.js +3 -3
- package/dist/patterns/Shadow/Shadow.js +1 -1
- package/dist/patterns/Shadow/index.js +1 -1
- package/dist/patterns/SideNav/SideNav.d.ts +6 -0
- package/dist/patterns/SideNav/SideNav.js +78 -72
- package/dist/patterns/SideNav/SideNav.styles.js +7 -3
- package/dist/rolldown-runtime-3b4jIN3o.js +13 -0
- package/dist/style.css +1 -1
- package/dist/{sva-DOLIp5Dd.js → sva-DGhdmNso.js} +3 -3
- package/dist/{useAutocompleteSearch-BJ_hhoKp.js → useAutocompleteSearch-BYzUn7Ag.js} +49 -43
- package/package.json +16 -16
- package/dist/Autocomplete-CuUjmIAw.js +0 -308
- package/dist/Shadow-OHZiBoEb.js +0 -57
- package/dist/components/Tag/TagInput/TagInput.styles.d.ts +0 -1
- package/dist/highlightQueryInLabel-BLIy9JHT.js +0 -386
- package/dist/index.d-CLYyYDIv.js +0 -4
- /package/dist/components/{Field/FieldGroup → FieldGroup}/FieldGroup.d.ts +0 -0
- /package/dist/{constants-D0UW4Ewm.js → constants-DJz-xntC.js} +0 -0
- /package/dist/{cx-CZ8IJJTy.js → cx-QcEwjve6.js} +0 -0
- /package/dist/{tokens-CG_Rn1W3.js → tokens-DQsbW5to.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IressSelectProps, SelectOptionsRenderProps } from '../Select';
|
|
2
|
-
interface SelectOptionsProps<TMultiple extends boolean = false> extends Pick<IressSelectProps<TMultiple, false>, 'autoHighlight' | 'minSearchLength' | 'multiSelect' | 'onChange' | 'options' | 'renderOptions' | 'initialOptions'>, Omit<SelectOptionsRenderProps<TMultiple>, 'close' | 'handleClear' | 'handleMenuChange'> {
|
|
2
|
+
interface SelectOptionsProps<TMultiple extends boolean = false> extends Pick<IressSelectProps<TMultiple, false>, 'autoHighlight' | 'errorText' | 'minSearchLength' | 'multiSelect' | 'onChange' | 'options' | 'renderOptions' | 'initialOptions'>, Omit<SelectOptionsRenderProps<TMultiple>, 'close' | 'handleClear' | 'handleMenuChange'> {
|
|
3
3
|
setShow: (show: boolean) => void;
|
|
4
4
|
shouldShowInstructions?: boolean;
|
|
5
5
|
shouldShowNoResults?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const SelectOptions: {
|
|
8
|
-
<TMultiple extends boolean = false>({ autoHighlight, debouncedQuery, error, initialOptions: initialOptionsProp, loading, minSearchLength, multiSelect, onChange, options, query, renderOptions, results, setQuery, setShow, setValue, show, shouldShowInstructions, shouldShowNoResults, value, }: SelectOptionsProps<TMultiple>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
8
|
+
<TMultiple extends boolean = false>({ autoHighlight, debouncedQuery, error, errorText, initialOptions: initialOptionsProp, loading, minSearchLength, multiSelect, onChange, options, query, renderOptions, results, setQuery, setShow, setValue, show, shouldShowInstructions, shouldShowNoResults, value, }: SelectOptionsProps<TMultiple>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
export {};
|
|
@@ -1,149 +1,168 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { IressText as e } from "../../Text/Text.js";
|
|
2
|
+
import { IressSpinner as t } from "../../Spinner/Spinner.js";
|
|
3
|
+
import { toArray as n } from "../../../helpers/formatting/toArray.js";
|
|
4
|
+
import { IressAlert as r } from "../../Alert/Alert.js";
|
|
5
|
+
import { getValueAsEvent as i } from "../../../helpers/form/getValueAsEvent.js";
|
|
6
|
+
import { IressMenuDivider as a } from "../../Menu/MenuDivider/MenuDivider.js";
|
|
7
|
+
import { IressInline as o } from "../../Inline/Inline.js";
|
|
8
|
+
import { toPrimitiveValue as s } from "../helpers/toPrimitiveValue.js";
|
|
9
|
+
import { IressSelectSearch as c } from "../SelectSearch/SelectSearch.js";
|
|
10
|
+
import { IressSelectHeading as l } from "../SelectHeading/SelectHeading.js";
|
|
11
|
+
import { IressSelectMenu as u } from "../SelectMenu/SelectMenu.js";
|
|
12
|
+
import { IressSelectSearchInput as d } from "../SelectSearchInput/SelectSearchInput.js";
|
|
13
|
+
import { useCallback as f, useEffect as p, useId as m, useRef as h } from "react";
|
|
14
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
12
15
|
//#region src/components/Select/components/SelectOptions.tsx
|
|
13
|
-
var
|
|
14
|
-
heading:
|
|
15
|
-
items:
|
|
16
|
-
multiSelect:
|
|
16
|
+
var y = ({ debouncedQuery: e, minSearchLength: t, multiSelect: n, onChange: r, query: i, results: a, shouldShowInstructions: o, shouldShowNoResults: s, value: c }) => /* @__PURE__ */ _(u, {
|
|
17
|
+
heading: n && a.length && e ? `Search results (${a.length})` : void 0,
|
|
18
|
+
items: a,
|
|
19
|
+
multiSelect: n,
|
|
17
20
|
noResults: (() => {
|
|
18
|
-
if (
|
|
19
|
-
if (
|
|
20
|
-
if (
|
|
21
|
+
if (i) {
|
|
22
|
+
if (o) return `Type at least ${t} character${t === 1 ? "" : "s"} to search`;
|
|
23
|
+
if (s) return "No results found";
|
|
21
24
|
}
|
|
22
25
|
})(),
|
|
23
|
-
onChange:
|
|
26
|
+
onChange: r,
|
|
24
27
|
selected: c,
|
|
25
|
-
hideSelectedItems:
|
|
28
|
+
hideSelectedItems: n
|
|
26
29
|
});
|
|
27
|
-
|
|
28
|
-
var
|
|
30
|
+
y.displayName = "SelectAsyncResults";
|
|
31
|
+
var b = ({ error: e, errorText: t }) => e ? t === void 0 ? /* @__PURE__ */ _(r, {
|
|
29
32
|
status: "danger",
|
|
30
|
-
|
|
33
|
+
variant: "full-width",
|
|
34
|
+
mb: "none",
|
|
35
|
+
children: typeof e == "string" ? e : /* @__PURE__ */ v(g, { children: [
|
|
31
36
|
"An unknown error occurred.",
|
|
32
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ _("br", {}),
|
|
33
38
|
" Please contact support if the error persists."
|
|
34
39
|
] })
|
|
35
|
-
}) : null;
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
let
|
|
40
|
+
}) : typeof t == "function" ? t(e) : t : null;
|
|
41
|
+
b.displayName = "SelectAsyncError";
|
|
42
|
+
var x = ({ autoHighlight: r, debouncedQuery: i, error: s, errorText: f, loading: g, minSearchLength: x, multiSelect: S, onChange: C, onClear: w, query: T, results: E, setQuery: D, show: O, value: k, shouldShowInstructions: A, shouldShowNoResults: j }) => {
|
|
43
|
+
let M = n(k).map((e) => {
|
|
39
44
|
let { formattedLabel: t, ...n } = e;
|
|
40
45
|
return n;
|
|
41
|
-
}),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}, [
|
|
45
|
-
let
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
activator: /* @__PURE__ */
|
|
46
|
+
}), N = !s && (!!E?.length || T && !g), P = !!M.length && S, F = N && P, I = h(null), L = m();
|
|
47
|
+
p(() => {
|
|
48
|
+
O || D?.("");
|
|
49
|
+
}, [O, D]);
|
|
50
|
+
let R = P ? M.length + 1 : 0;
|
|
51
|
+
return /* @__PURE__ */ v(c, {
|
|
52
|
+
activator: /* @__PURE__ */ _(d, {
|
|
48
53
|
"aria-label": "Search",
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
ref: j,
|
|
54
|
+
onChange: (e) => D?.(e.target.value),
|
|
55
|
+
ref: I,
|
|
52
56
|
placeholder: "Search and select",
|
|
53
|
-
value:
|
|
57
|
+
value: T
|
|
54
58
|
}),
|
|
55
|
-
autoHighlight:
|
|
56
|
-
focusStartIndex:
|
|
59
|
+
autoHighlight: r,
|
|
60
|
+
focusStartIndex: r ? T && N ? R : +!!P : void 0,
|
|
57
61
|
children: [
|
|
58
|
-
|
|
59
|
-
"aria-labelledby":
|
|
60
|
-
heading: /* @__PURE__ */
|
|
62
|
+
P && /* @__PURE__ */ _(u, {
|
|
63
|
+
"aria-labelledby": L,
|
|
64
|
+
heading: /* @__PURE__ */ _(l, {
|
|
61
65
|
clearAll: !0,
|
|
62
66
|
onClearAll: (e) => {
|
|
63
|
-
|
|
67
|
+
w?.(e), I.current?.focus();
|
|
64
68
|
},
|
|
65
|
-
children: /* @__PURE__ */
|
|
66
|
-
id:
|
|
69
|
+
children: /* @__PURE__ */ v("span", {
|
|
70
|
+
id: L,
|
|
67
71
|
children: [
|
|
68
72
|
"Selected (",
|
|
69
|
-
|
|
73
|
+
M.length,
|
|
70
74
|
")"
|
|
71
75
|
]
|
|
72
76
|
})
|
|
73
77
|
}),
|
|
74
|
-
items:
|
|
75
|
-
multiSelect:
|
|
76
|
-
onChange:
|
|
77
|
-
selected:
|
|
78
|
+
items: M,
|
|
79
|
+
multiSelect: S,
|
|
80
|
+
onChange: C,
|
|
81
|
+
selected: k
|
|
78
82
|
}),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
shouldShowNoResults: E
|
|
83
|
+
F && /* @__PURE__ */ _(a, {}),
|
|
84
|
+
g && !E.length && /* @__PURE__ */ v(o, {
|
|
85
|
+
gap: "sm",
|
|
86
|
+
verticalAlign: "middle",
|
|
87
|
+
p: "spacing.3",
|
|
88
|
+
children: [/* @__PURE__ */ _(t, { color: "colour.neutral.70" }), /* @__PURE__ */ _(e, {
|
|
89
|
+
color: "colour.neutral.70",
|
|
90
|
+
children: "Loading results..."
|
|
91
|
+
})]
|
|
89
92
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
93
|
+
N && /* @__PURE__ */ _(y, {
|
|
94
|
+
debouncedQuery: i,
|
|
95
|
+
minSearchLength: x,
|
|
96
|
+
multiSelect: S,
|
|
97
|
+
onChange: C,
|
|
98
|
+
query: T,
|
|
99
|
+
results: E,
|
|
100
|
+
value: k,
|
|
101
|
+
shouldShowInstructions: A,
|
|
102
|
+
shouldShowNoResults: j
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ _(b, {
|
|
105
|
+
error: s,
|
|
106
|
+
errorText: f
|
|
107
|
+
})
|
|
91
108
|
]
|
|
92
109
|
});
|
|
93
110
|
};
|
|
94
|
-
|
|
95
|
-
var
|
|
96
|
-
let
|
|
111
|
+
x.displayName = "SelectAsyncOptions";
|
|
112
|
+
var S = ({ autoHighlight: e, debouncedQuery: t, error: n, errorText: r, initialOptions: a, loading: o, minSearchLength: c, multiSelect: l, onChange: d, options: p, query: m, renderOptions: h, results: g, setQuery: v, setShow: y, setValue: b, show: S, shouldShowInstructions: C, shouldShowNoResults: w, value: T }) => {
|
|
113
|
+
let E = typeof p == "function", D = a ?? (E ? [] : p), O = g.length ? g : D, k = f((e) => {
|
|
97
114
|
b(e);
|
|
98
|
-
let t =
|
|
99
|
-
d?.(
|
|
115
|
+
let t = s(e);
|
|
116
|
+
d?.(i(t), t, e), l || y(!1);
|
|
100
117
|
}, [
|
|
101
118
|
y,
|
|
102
119
|
b,
|
|
103
120
|
d,
|
|
104
|
-
|
|
105
|
-
]),
|
|
121
|
+
l
|
|
122
|
+
]), A = f((e) => {
|
|
106
123
|
e.stopPropagation();
|
|
107
124
|
let t = [];
|
|
108
125
|
b(t);
|
|
109
|
-
let
|
|
110
|
-
d?.(n
|
|
126
|
+
let n = s(t);
|
|
127
|
+
d?.(i(n), n, t);
|
|
111
128
|
}, [b, d]);
|
|
112
129
|
return h ? h({
|
|
113
130
|
close: () => y(!1),
|
|
114
131
|
debouncedQuery: t,
|
|
115
|
-
error:
|
|
116
|
-
handleClear:
|
|
117
|
-
handleMenuChange:
|
|
132
|
+
error: n,
|
|
133
|
+
handleClear: A,
|
|
134
|
+
handleMenuChange: k,
|
|
118
135
|
loading: o,
|
|
119
|
-
query:
|
|
120
|
-
results:
|
|
136
|
+
query: m,
|
|
137
|
+
results: O,
|
|
121
138
|
setValue: b,
|
|
122
|
-
setQuery:
|
|
123
|
-
show:
|
|
124
|
-
value:
|
|
125
|
-
}) :
|
|
139
|
+
setQuery: v,
|
|
140
|
+
show: S,
|
|
141
|
+
value: T
|
|
142
|
+
}) : E ? /* @__PURE__ */ _(x, {
|
|
126
143
|
autoHighlight: e,
|
|
127
|
-
|
|
144
|
+
debouncedQuery: t,
|
|
145
|
+
error: n,
|
|
146
|
+
errorText: r,
|
|
128
147
|
loading: o,
|
|
129
148
|
minSearchLength: c,
|
|
130
|
-
multiSelect:
|
|
131
|
-
onChange:
|
|
132
|
-
onClear:
|
|
133
|
-
query:
|
|
149
|
+
multiSelect: l,
|
|
150
|
+
onChange: k,
|
|
151
|
+
onClear: A,
|
|
152
|
+
query: m,
|
|
134
153
|
results: g,
|
|
135
|
-
setQuery:
|
|
136
|
-
show:
|
|
137
|
-
value:
|
|
138
|
-
shouldShowInstructions:
|
|
139
|
-
shouldShowNoResults:
|
|
140
|
-
}) : /* @__PURE__ */
|
|
141
|
-
items:
|
|
142
|
-
multiSelect:
|
|
143
|
-
onChange:
|
|
144
|
-
selected:
|
|
154
|
+
setQuery: v,
|
|
155
|
+
show: S,
|
|
156
|
+
value: T,
|
|
157
|
+
shouldShowInstructions: C,
|
|
158
|
+
shouldShowNoResults: w
|
|
159
|
+
}) : /* @__PURE__ */ _(u, {
|
|
160
|
+
items: O,
|
|
161
|
+
multiSelect: l,
|
|
162
|
+
onChange: k,
|
|
163
|
+
selected: T
|
|
145
164
|
});
|
|
146
165
|
};
|
|
147
|
-
|
|
166
|
+
S.displayName = "SelectOptions";
|
|
148
167
|
//#endregion
|
|
149
|
-
export {
|
|
168
|
+
export { S as SelectOptions };
|
|
@@ -6,7 +6,7 @@ import { IressSelectHeading as i } from "./SelectHeading/SelectHeading.js";
|
|
|
6
6
|
import { IressSelectMenu as a } from "./SelectMenu/SelectMenu.js";
|
|
7
7
|
import { IressSelectSearchInput as o } from "./SelectSearchInput/SelectSearchInput.js";
|
|
8
8
|
import { nativeSelect as s } from "./components/NativeSelect.styles.js";
|
|
9
|
-
import { n as c } from "../../Autocomplete-
|
|
9
|
+
import { n as c } from "../../Autocomplete-DKufjQU5.js";
|
|
10
10
|
import { IressSelectBody as l } from "./SelectBody/SelectBody.js";
|
|
11
11
|
import { IressSelectCreate as u } from "./SelectCreate/SelectCreate.js";
|
|
12
12
|
export { c as IressSelect, l as IressSelectBody, u as IressSelectCreate, i as IressSelectHeading, t as IressSelectLabel, a as IressSelectMenu, r as IressSelectSearch, o as IressSelectSearchInput, n as IressSelectTags, s as nativeSelect, e as select };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../cx-
|
|
1
|
+
import { t as e } from "../../cx-QcEwjve6.js";
|
|
2
2
|
import { GlobalCSSClass as t } from "../../enums.js";
|
|
3
3
|
import { IressText as n } from "../Text/Text.js";
|
|
4
4
|
import { toCSSLengthValue as r } from "../../helpers/formatting/toCSSLengthValue.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../cx-
|
|
1
|
+
import { t as e } from "../../cx-QcEwjve6.js";
|
|
2
2
|
import { GlobalCSSClass as t } from "../../enums.js";
|
|
3
|
-
import { t as n } from "../../Button-
|
|
3
|
+
import { t as n } from "../../Button-BY2qzshw.js";
|
|
4
4
|
import { skipLink as r } from "./SkipLink.styles.js";
|
|
5
5
|
import { forwardRef as i } from "react";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Slideout-
|
|
1
|
+
import { t as e } from "../../Slideout-BOH2gwIN.js";
|
|
2
2
|
export { e as IressSlideout };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../sva-
|
|
1
|
+
import { t as e } from "../../sva-DGhdmNso.js";
|
|
2
2
|
//#region src/components/Slideout/Slideout.styles.ts
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: [
|
|
@@ -33,6 +33,7 @@ var t = e({
|
|
|
33
33
|
footer: { borderBlockStart: "divider" },
|
|
34
34
|
closeButton: {
|
|
35
35
|
position: "absolute",
|
|
36
|
+
zIndex: "[1]",
|
|
36
37
|
insetInlineEnd: "spacing.1",
|
|
37
38
|
insetBlockStart: "spacing.1"
|
|
38
39
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "../../../is-valid-prop-
|
|
2
|
-
import { t } from "../../../factory-
|
|
1
|
+
import { n as e } from "../../../is-valid-prop-BVyYPT21.js";
|
|
2
|
+
import { t } from "../../../factory-BKr3zaf6.js";
|
|
3
3
|
import { IressText as n } from "../../Text/Text.js";
|
|
4
4
|
import { propagateTestid as r } from "../../../helpers/utility/propagateTestid.js";
|
|
5
5
|
import { IressCloseButton as i } from "../../Button/CloseButton/CloseButton.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GlobalCSSClass as e } from "../../../enums.js";
|
|
2
2
|
import { useBreakpoint as t } from "../../../hooks/useBreakpoint.js";
|
|
3
|
-
import { t as n } from "../../../tokens-
|
|
3
|
+
import { t as n } from "../../../tokens-DQsbW5to.js";
|
|
4
4
|
import { useEffect as r, useRef as i } from "react";
|
|
5
5
|
//#region src/components/Slideout/hooks/usePushElement.tsx
|
|
6
6
|
function a({ element: a, isActive: o, position: s, size: c, status: l, onOpen: u, onClose: d }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../Slideout-
|
|
1
|
+
import { t as e } from "../../Slideout-BOH2gwIN.js";
|
|
2
2
|
import { slideout as t } from "./Slideout.styles.js";
|
|
3
3
|
import { SlideoutContext as n, useSlideout as r } from "./hooks/useSlideout.js";
|
|
4
4
|
import { IressSlideoutProvider as i } from "./SlideoutProvider.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../cx-
|
|
2
|
-
import { n as t } from "../../is-valid-prop-
|
|
3
|
-
import { t as n } from "../../factory-
|
|
1
|
+
import { t as e } from "../../cx-QcEwjve6.js";
|
|
2
|
+
import { n as t } from "../../is-valid-prop-BVyYPT21.js";
|
|
3
|
+
import { t as n } from "../../factory-BKr3zaf6.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../enums.js";
|
|
5
5
|
import { propagateTestid as i } from "../../helpers/utility/propagateTestid.js";
|
|
6
6
|
import { useControlledState as a } from "../../hooks/useControlledState.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../../../cx-
|
|
2
|
-
import { t } from "../../../factory-
|
|
1
|
+
import { t as e } from "../../../cx-QcEwjve6.js";
|
|
2
|
+
import { t } from "../../../factory-BKr3zaf6.js";
|
|
3
3
|
import { propagateTestid as n } from "../../../helpers/utility/propagateTestid.js";
|
|
4
4
|
import { slider as r } from "../Slider.styles.js";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "../../cva-
|
|
2
|
-
import { t } from "../../sva-
|
|
1
|
+
import { n as e } from "../../cva-DcOwIar2.js";
|
|
2
|
+
import { t } from "../../sva-DGhdmNso.js";
|
|
3
3
|
//#region src/components/Spinner/Spinner.styles.ts
|
|
4
4
|
var n = e({
|
|
5
5
|
base: { boxSizing: "border-box" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../../cx-
|
|
2
|
-
import { t } from "../../factory-
|
|
1
|
+
import { t as e } from "../../cx-QcEwjve6.js";
|
|
2
|
+
import { t } from "../../factory-BKr3zaf6.js";
|
|
3
3
|
import { GlobalCSSClass as n } from "../../enums.js";
|
|
4
4
|
import { stack as r } from "./Stack.styles.js";
|
|
5
5
|
import { useMemo as i } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "../../../cx-
|
|
2
|
-
import { t } from "../../../factory-
|
|
1
|
+
import { t as e } from "../../../cx-QcEwjve6.js";
|
|
2
|
+
import { t } from "../../../factory-BKr3zaf6.js";
|
|
3
3
|
import { GlobalCSSClass as n } from "../../../enums.js";
|
|
4
4
|
import { idsLogger as r } from "../../../helpers/utility/idsLogger.js";
|
|
5
5
|
import { useIdIfNeeded as i } from "../../../hooks/useIdIfNeeded.js";
|
|
6
6
|
import { focusableElements as a } from "../../../helpers/dom/focusableElements.js";
|
|
7
|
-
import { n as o } from "../../../floating-ui.react-
|
|
7
|
+
import { n as o } from "../../../floating-ui.react-TDMXDOBr.js";
|
|
8
8
|
import { TabSetContext as s } from "../TabSetProvider.js";
|
|
9
9
|
import { tab as c } from "./Tab.styles.js";
|
|
10
10
|
import { forwardRef as l, useCallback as u, useContext as d, useEffect as f, useImperativeHandle as p, useLayoutEffect as m, useMemo as h, useRef as g } from "react";
|
|
@@ -3,6 +3,11 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { FormControlValue, IressStyledProps } from '../../types';
|
|
4
4
|
import { IressCustomiseSlot } from '../../interfaces';
|
|
5
5
|
export interface IressTabSetProps extends Omit<IressStyledProps, 'onChange'> {
|
|
6
|
+
/**
|
|
7
|
+
* Content rendered alongside the tablist in the tab bar row, but outside the tablist itself.
|
|
8
|
+
* Useful for placing action buttons (e.g. "Add tab") at the end of the tab bar.
|
|
9
|
+
*/
|
|
10
|
+
append?: ReactNode;
|
|
6
11
|
/**
|
|
7
12
|
* Content to be displayed inside the IressTabs, usually multiple `IressTab`.
|
|
8
13
|
*/
|
|
@@ -43,6 +48,6 @@ export interface IressTabSetProps extends Omit<IressStyledProps, 'onChange'> {
|
|
|
43
48
|
type?: 'primary' | 'secondary';
|
|
44
49
|
}
|
|
45
50
|
export declare const IressTabSet: {
|
|
46
|
-
({ children, className, defaultSelected, layout, onChange, panelStyle, selected, tabHolderStyle, type, ...restProps }: IressTabSetProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
({ append, children, className, defaultSelected, layout, onChange, panelStyle, selected, tabHolderStyle, type, ...restProps }: IressTabSetProps): import("react/jsx-runtime").JSX.Element;
|
|
47
52
|
displayName: string;
|
|
48
53
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "../../cx-
|
|
2
|
-
import { t } from "../../factory-
|
|
1
|
+
import { t as e } from "../../cx-QcEwjve6.js";
|
|
2
|
+
import { t } from "../../factory-BKr3zaf6.js";
|
|
3
3
|
import { GlobalCSSClass as n } from "../../enums.js";
|
|
4
4
|
import { propagateTestid as r } from "../../helpers/utility/propagateTestid.js";
|
|
5
|
-
import { t as i } from "../../floating-ui.react-
|
|
5
|
+
import { t as i } from "../../floating-ui.react-TDMXDOBr.js";
|
|
6
6
|
import { TabSetContext as a, TabSetProvider as o } from "./TabSetProvider.js";
|
|
7
7
|
import { tabSet as s } from "./TabSet.styles.js";
|
|
8
8
|
import { useContext as c, useEffect as l, useLayoutEffect as u, useRef as d, useState as f } from "react";
|
|
@@ -38,9 +38,9 @@ var g = (e) => {
|
|
|
38
38
|
if (e && i.current) {
|
|
39
39
|
let t = i.current.parentElement;
|
|
40
40
|
if (t) {
|
|
41
|
-
let r = t.getBoundingClientRect(), i = e.getBoundingClientRect();
|
|
41
|
+
let r = t.getBoundingClientRect(), i = e.getBoundingClientRect(), a = i.left - r.left + t.scrollLeft;
|
|
42
42
|
n({
|
|
43
|
-
left: `${
|
|
43
|
+
left: `${a}px`,
|
|
44
44
|
width: `${i.width}px`
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -62,18 +62,18 @@ var g = (e) => {
|
|
|
62
62
|
ref: i,
|
|
63
63
|
style: t
|
|
64
64
|
});
|
|
65
|
-
}, v = ({
|
|
66
|
-
let [
|
|
67
|
-
layout:
|
|
68
|
-
overflowStart:
|
|
69
|
-
overflowEnd:
|
|
70
|
-
type:
|
|
65
|
+
}, v = ({ append: a, children: c, className: u, defaultSelected: v, layout: y = "top-left", onChange: b, panelStyle: x, selected: S, tabHolderStyle: C, type: w, ...T }) => {
|
|
66
|
+
let [E, D] = f(null), [O, k] = f(!1), [A, j] = f(!1), M = d(null), N = s({
|
|
67
|
+
layout: y,
|
|
68
|
+
overflowStart: O,
|
|
69
|
+
overflowEnd: A,
|
|
70
|
+
type: w
|
|
71
71
|
});
|
|
72
72
|
return l(() => {
|
|
73
|
-
let e =
|
|
73
|
+
let e = M.current?.querySelector("[role=\"tablist\"]"), t = () => {
|
|
74
74
|
if (e) {
|
|
75
75
|
let { scrollWidth: t, clientWidth: n, scrollLeft: r } = e;
|
|
76
|
-
t > n ? (
|
|
76
|
+
t > n ? (k(r > 1), j(r < t - n - 1)) : (k(!1), j(!1));
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
t(), e?.addEventListener("scroll", t);
|
|
@@ -81,40 +81,44 @@ var g = (e) => {
|
|
|
81
81
|
return e && typeof ResizeObserver < "u" && (n = new ResizeObserver(t), n.observe(e)), () => {
|
|
82
82
|
e?.removeEventListener("scroll", t), n?.disconnect();
|
|
83
83
|
};
|
|
84
|
-
}, [
|
|
85
|
-
defaultSelected:
|
|
86
|
-
onChange:
|
|
87
|
-
panel:
|
|
88
|
-
selected:
|
|
89
|
-
type:
|
|
84
|
+
}, [c]), /* @__PURE__ */ m(o, {
|
|
85
|
+
defaultSelected: v,
|
|
86
|
+
onChange: b,
|
|
87
|
+
panel: E,
|
|
88
|
+
selected: S,
|
|
89
|
+
type: w,
|
|
90
90
|
children: /* @__PURE__ */ m(t.div, {
|
|
91
|
-
className: e(
|
|
92
|
-
...
|
|
93
|
-
children:
|
|
94
|
-
...
|
|
95
|
-
ref:
|
|
96
|
-
className: e(
|
|
91
|
+
className: e(u, N.root, n.TabSet),
|
|
92
|
+
...T,
|
|
93
|
+
children: c && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h(t.div, {
|
|
94
|
+
...C,
|
|
95
|
+
ref: M,
|
|
96
|
+
className: e(N.listHolder, C?.className),
|
|
97
97
|
children: [
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
O && /* @__PURE__ */ m("div", { className: N.overflowStartIndicator }),
|
|
99
|
+
A && /* @__PURE__ */ m("div", { className: N.overflowEndIndicator }),
|
|
100
100
|
/* @__PURE__ */ h(i, {
|
|
101
101
|
render: /* @__PURE__ */ m("div", {
|
|
102
|
-
className:
|
|
102
|
+
className: N.list,
|
|
103
103
|
role: "tablist"
|
|
104
104
|
}),
|
|
105
105
|
loop: !1,
|
|
106
106
|
children: [
|
|
107
|
-
/* @__PURE__ */ m(_, { className:
|
|
108
|
-
/* @__PURE__ */ m(g, { className:
|
|
109
|
-
|
|
107
|
+
/* @__PURE__ */ m(_, { className: N.activeIndicator }),
|
|
108
|
+
/* @__PURE__ */ m(g, { className: N.hoverIndicator }),
|
|
109
|
+
c
|
|
110
110
|
]
|
|
111
|
+
}),
|
|
112
|
+
a && /* @__PURE__ */ m("div", {
|
|
113
|
+
className: N.append,
|
|
114
|
+
children: a
|
|
111
115
|
})
|
|
112
116
|
]
|
|
113
117
|
}), /* @__PURE__ */ m(t.div, {
|
|
114
|
-
...
|
|
115
|
-
className: e(
|
|
116
|
-
"data-testid":
|
|
117
|
-
ref:
|
|
118
|
+
...x,
|
|
119
|
+
className: e(N.panel, x?.className),
|
|
120
|
+
"data-testid": x?.["data-testid"] ?? r(T["data-testid"], "panel"),
|
|
121
|
+
ref: D
|
|
118
122
|
})] })
|
|
119
123
|
})
|
|
120
124
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const tabSet: import('../../styled-system/types').SlotRecipeRuntimeFn<"list" | "root" | "hoverIndicator" | "panel" | "listHolder" | "activeIndicator" | "overflowEndIndicator" | "overflowStartIndicator", {
|
|
1
|
+
export declare const tabSet: import('../../styled-system/types').SlotRecipeRuntimeFn<"append" | "list" | "root" | "hoverIndicator" | "panel" | "listHolder" | "activeIndicator" | "overflowEndIndicator" | "overflowStartIndicator", {
|
|
2
2
|
layout: {
|
|
3
3
|
'top-left': {
|
|
4
4
|
list: {
|