@iress-oss/ids-components 6.1.0 → 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-D2KoVwxD.js → Shadow-DAfthdT2.js} +3 -3
- 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 +5 -5
- package/dist/components/Field/Field.styles.js +1 -1
- package/dist/components/Field/components/FieldFooter.js +3 -3
- package/dist/components/Field/components/FieldHint.js +3 -3
- package/dist/components/FieldGroup/FieldGroup.js +4 -4
- package/dist/components/FieldGroup/FieldGroup.styles.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/Menu/Menu.js +3 -3
- package/dist/components/Menu/Menu.styles.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +1 -1
- package/dist/components/Menu/MenuGroup/MenuGroup.js +2 -2
- package/dist/components/Menu/MenuGroup/MenuGroup.styles.js +1 -1
- package/dist/components/Menu/MenuHeading/MenuHeading.js +1 -1
- package/dist/components/Menu/MenuItem/MenuItem.js +4 -4
- package/dist/components/Menu/MenuItem/MenuItem.styles.js +1 -1
- package/dist/components/Menu/MenuText/MenuText.js +3 -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 +2 -2
- 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 +2 -2
- 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 +78 -72
- 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 +1 -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.js +5 -5
- package/dist/components/TabSet/TabSet.styles.js +1 -1
- 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.js +1 -1
- package/dist/components/TagInput/TagInput.styles.js +1 -1
- 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.js +3 -3
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/ValidationMessage/ValidationLink/ValidationLink.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +3 -3
- 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.js +10 -10
- 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 +86 -85
- package/dist/patterns/DropdownMenu/DropdownMenu.styles.js +1 -1
- package/dist/patterns/Form/Form.styles.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 +1 -1
- package/dist/patterns/Form/HookForm/HookForm.js +2 -2
- package/dist/patterns/Form/components/LongForm.js +1 -1
- package/dist/patterns/Form/components/ShortForm.js +1 -1
- package/dist/patterns/Loading/Loading.styles.js +1 -1
- 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 +2 -2
- 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.js +4 -4
- package/dist/patterns/SideNav/SideNav.styles.js +1 -1
- 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-DxKxs6HH.js → useAutocompleteSearch-BYzUn7Ag.js} +45 -44
- package/package.json +16 -16
- package/dist/Autocomplete-BRGD9dSh.js +0 -321
- package/dist/highlightQueryInLabel-BLIy9JHT.js +0 -386
- package/dist/index.d-CLYyYDIv.js +0 -4
- /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
|
-
import { t as e } from "../../css-
|
|
2
|
-
import { t } from "../../cx-
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
4
|
-
import { t as r } from "../../factory-
|
|
1
|
+
import { t as e } from "../../css-R34N3rft.js";
|
|
2
|
+
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
+
import { n } from "../../is-valid-prop-BVyYPT21.js";
|
|
4
|
+
import { t as r } from "../../factory-BKr3zaf6.js";
|
|
5
5
|
import { GlobalCSSClass as i } from "../../enums.js";
|
|
6
6
|
import { stringReplacer as a } from "../../helpers/formatting/stringReplacer.js";
|
|
7
7
|
import { progress as o } from "./Progress.styles.js";
|
|
8
|
-
import { t as s } from "../../tokens-
|
|
8
|
+
import { t as s } from "../../tokens-DQsbW5to.js";
|
|
9
9
|
import { jsx as c } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/Progress/Progress.tsx
|
|
11
11
|
var l = ({ backgroundImage: l, borderRadius: u, className: d, max: f = 100, min: p, sectionTitle: m = "Progress is {{current}} of {{max}}", style: h, value: g = 0, ..._ }) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Provider-
|
|
1
|
+
import { t as e } from "../../Provider-BNuRw7ck.js";
|
|
2
2
|
export { e as IressProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Provider-
|
|
1
|
+
import { t as e } from "../../Provider-BNuRw7ck.js";
|
|
2
2
|
export { e as IressProvider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
2
|
-
import { t } from "../../cx-
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
4
|
-
import { t as r } from "../../factory-
|
|
1
|
+
import { t as e } from "../../css-R34N3rft.js";
|
|
2
|
+
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
+
import { n } from "../../is-valid-prop-BVyYPT21.js";
|
|
4
|
+
import { t as r } from "../../factory-BKr3zaf6.js";
|
|
5
5
|
import { GlobalCSSClass as i } from "../../enums.js";
|
|
6
6
|
import { IressText as a } from "../Text/Text.js";
|
|
7
7
|
import { propagateTestid as o } from "../../helpers/utility/propagateTestid.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 { GlobalCSSClass as n } from "../../enums.js";
|
|
4
4
|
import { useControlledState as r } from "../../hooks/useControlledState.js";
|
|
5
5
|
import { useNoDefaultValueInForms as i } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
2
|
-
import { t } from "../../cx-
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
1
|
+
import { t as e } from "../../css-R34N3rft.js";
|
|
2
|
+
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
+
import { n } from "../../is-valid-prop-BVyYPT21.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../enums.js";
|
|
5
5
|
import { radioMark as i } from "./RadioMark.styles.js";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
2
|
-
import { t } from "../../cx-
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
1
|
+
import { t as e } from "../../css-R34N3rft.js";
|
|
2
|
+
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
+
import { n } from "../../is-valid-prop-BVyYPT21.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../enums.js";
|
|
5
|
-
import { t as i } from "../../Button-
|
|
5
|
+
import { t as i } from "../../Button-BY2qzshw.js";
|
|
6
6
|
import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
|
|
7
7
|
import { IressSpinner as o } from "../Spinner/Spinner.js";
|
|
8
8
|
import { getFormControlValueAsStringIfDefined as s } from "../../helpers/form/getFormControlValueAsStringIfDefined.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 { GlobalCSSClass as n } from "../../enums.js";
|
|
4
4
|
import { row as r } from "./Row.styles.js";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
@@ -101,6 +101,12 @@ export type IressSelectProps<TMultiple extends boolean = false, TNative extends
|
|
|
101
101
|
*/
|
|
102
102
|
value?: SelectValue<TMultiple, TNative>;
|
|
103
103
|
virtualFocus?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Text to be displayed when the options function errors out. It is not used when the options are provided as an array.
|
|
106
|
+
* Can be a ReactNode or a render function that receives the error value.
|
|
107
|
+
* @default <IressAlert status="danger" variant="full-width" mb="none">An unknown error occurred. Please contact support if the error persists.</IressAlert>
|
|
108
|
+
*/
|
|
109
|
+
errorText?: ((error: boolean | string) => ReactNode) | ReactNode;
|
|
104
110
|
/**
|
|
105
111
|
* Header showed in option panel when expanded.
|
|
106
112
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e } from "../../Autocomplete-
|
|
1
|
+
import { n as e } from "../../Autocomplete-DKufjQU5.js";
|
|
2
2
|
export { e as IressSelect };
|
|
@@ -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 { selectBody as r } from "./SelectBody.styles.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 { usePopoverItem as r } from "../../Popover/hooks/usePopoverItem.js";
|
|
5
5
|
import { select as i } from "../Select.styles.js";
|
|
6
6
|
import { IressMenuHeading as a } from "../../Menu/MenuHeading/MenuHeading.js";
|
|
@@ -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 { toArray as r } from "../../../helpers/formatting/toArray.js";
|
|
@@ -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 { propagateTestid as n } from "../../../helpers/utility/propagateTestid.js";
|
|
4
4
|
import { toArray as r } from "../../../helpers/formatting/toArray.js";
|
|
@@ -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 { IressMenuDivider as r } from "../../Menu/MenuDivider/MenuDivider.js";
|
|
@@ -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 { usePopover as n } from "../../Popover/hooks/usePopover.js";
|
|
4
4
|
import { handlePopoverTabKey as r } from "../../Popover/helpers/handlePopoverTabKey.js";
|
|
@@ -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 { IressIcon as n } from "../../Icon/Icon.js";
|
|
4
4
|
import { usePopoverItem as r } from "../../Popover/hooks/usePopoverItem.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { IressIcon as n } from "../../Icon/Icon.js";
|
|
4
|
-
import { t as r } from "../../../Button-
|
|
4
|
+
import { t as r } from "../../../Button-BY2qzshw.js";
|
|
5
5
|
import { IressText as i } from "../../Text/Text.js";
|
|
6
6
|
import { propagateTestid as a } from "../../../helpers/utility/propagateTestid.js";
|
|
7
7
|
import { toArray as o } from "../../../helpers/formatting/toArray.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../../css-
|
|
2
|
-
import { t } from "../../../cx-
|
|
3
|
-
import { n } from "../../../is-valid-prop-
|
|
1
|
+
import { t as e } from "../../../css-R34N3rft.js";
|
|
2
|
+
import { t } from "../../../cx-QcEwjve6.js";
|
|
3
|
+
import { n } from "../../../is-valid-prop-BVyYPT21.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../../enums.js";
|
|
5
5
|
import { propagateTestid as i } from "../../../helpers/utility/propagateTestid.js";
|
|
6
6
|
import { useIdIfNeeded as a } from "../../../hooks/useIdIfNeeded.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../../sva-
|
|
1
|
+
import { t as e } from "../../../sva-DGhdmNso.js";
|
|
2
2
|
var t = e({
|
|
3
3
|
slots: [
|
|
4
4
|
"wrapper",
|
|
@@ -33,7 +33,7 @@ var t = e({
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
variants: {
|
|
36
|
-
showingPlaceholder: { true: { element: { color: "colour.neutral.
|
|
36
|
+
showingPlaceholder: { true: { element: { color: "colour.neutral.60" } } },
|
|
37
37
|
width: {
|
|
38
38
|
2: {
|
|
39
39
|
wrapper: { width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.2})]" },
|
|
@@ -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 {};
|
|
@@ -28,58 +28,60 @@ var y = ({ debouncedQuery: e, minSearchLength: t, multiSelect: n, onChange: r, q
|
|
|
28
28
|
hideSelectedItems: n
|
|
29
29
|
});
|
|
30
30
|
y.displayName = "SelectAsyncResults";
|
|
31
|
-
var b = ({ error: e }) => e ? /* @__PURE__ */ _(r, {
|
|
31
|
+
var b = ({ error: e, errorText: t }) => e ? t === void 0 ? /* @__PURE__ */ _(r, {
|
|
32
32
|
status: "danger",
|
|
33
|
+
variant: "full-width",
|
|
34
|
+
mb: "none",
|
|
33
35
|
children: typeof e == "string" ? e : /* @__PURE__ */ v(g, { children: [
|
|
34
36
|
"An unknown error occurred.",
|
|
35
37
|
/* @__PURE__ */ _("br", {}),
|
|
36
38
|
" Please contact support if the error persists."
|
|
37
39
|
] })
|
|
38
|
-
}) : null;
|
|
40
|
+
}) : typeof t == "function" ? t(e) : t : null;
|
|
39
41
|
b.displayName = "SelectAsyncError";
|
|
40
|
-
var x = ({ autoHighlight: r, debouncedQuery: i, error: s,
|
|
41
|
-
let
|
|
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) => {
|
|
42
44
|
let { formattedLabel: t, ...n } = e;
|
|
43
45
|
return n;
|
|
44
|
-
}),
|
|
46
|
+
}), N = !s && (!!E?.length || T && !g), P = !!M.length && S, F = N && P, I = h(null), L = m();
|
|
45
47
|
p(() => {
|
|
46
|
-
|
|
47
|
-
}, [
|
|
48
|
-
let
|
|
48
|
+
O || D?.("");
|
|
49
|
+
}, [O, D]);
|
|
50
|
+
let R = P ? M.length + 1 : 0;
|
|
49
51
|
return /* @__PURE__ */ v(c, {
|
|
50
52
|
activator: /* @__PURE__ */ _(d, {
|
|
51
53
|
"aria-label": "Search",
|
|
52
|
-
onChange: (e) =>
|
|
53
|
-
ref:
|
|
54
|
+
onChange: (e) => D?.(e.target.value),
|
|
55
|
+
ref: I,
|
|
54
56
|
placeholder: "Search and select",
|
|
55
|
-
value:
|
|
57
|
+
value: T
|
|
56
58
|
}),
|
|
57
59
|
autoHighlight: r,
|
|
58
|
-
focusStartIndex: r ?
|
|
60
|
+
focusStartIndex: r ? T && N ? R : +!!P : void 0,
|
|
59
61
|
children: [
|
|
60
|
-
|
|
61
|
-
"aria-labelledby":
|
|
62
|
+
P && /* @__PURE__ */ _(u, {
|
|
63
|
+
"aria-labelledby": L,
|
|
62
64
|
heading: /* @__PURE__ */ _(l, {
|
|
63
65
|
clearAll: !0,
|
|
64
66
|
onClearAll: (e) => {
|
|
65
|
-
|
|
67
|
+
w?.(e), I.current?.focus();
|
|
66
68
|
},
|
|
67
69
|
children: /* @__PURE__ */ v("span", {
|
|
68
|
-
id:
|
|
70
|
+
id: L,
|
|
69
71
|
children: [
|
|
70
72
|
"Selected (",
|
|
71
|
-
|
|
73
|
+
M.length,
|
|
72
74
|
")"
|
|
73
75
|
]
|
|
74
76
|
})
|
|
75
77
|
}),
|
|
76
|
-
items:
|
|
77
|
-
multiSelect:
|
|
78
|
-
onChange:
|
|
79
|
-
selected:
|
|
78
|
+
items: M,
|
|
79
|
+
multiSelect: S,
|
|
80
|
+
onChange: C,
|
|
81
|
+
selected: k
|
|
80
82
|
}),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
F && /* @__PURE__ */ _(a, {}),
|
|
84
|
+
g && !E.length && /* @__PURE__ */ v(o, {
|
|
83
85
|
gap: "sm",
|
|
84
86
|
verticalAlign: "middle",
|
|
85
87
|
p: "spacing.3",
|
|
@@ -88,73 +90,77 @@ var x = ({ autoHighlight: r, debouncedQuery: i, error: s, loading: f, minSearchL
|
|
|
88
90
|
children: "Loading results..."
|
|
89
91
|
})]
|
|
90
92
|
}),
|
|
91
|
-
|
|
93
|
+
N && /* @__PURE__ */ _(y, {
|
|
92
94
|
debouncedQuery: i,
|
|
93
|
-
minSearchLength:
|
|
94
|
-
multiSelect:
|
|
95
|
-
onChange:
|
|
96
|
-
query:
|
|
97
|
-
results:
|
|
98
|
-
value:
|
|
99
|
-
shouldShowInstructions:
|
|
100
|
-
shouldShowNoResults:
|
|
95
|
+
minSearchLength: x,
|
|
96
|
+
multiSelect: S,
|
|
97
|
+
onChange: C,
|
|
98
|
+
query: T,
|
|
99
|
+
results: E,
|
|
100
|
+
value: k,
|
|
101
|
+
shouldShowInstructions: A,
|
|
102
|
+
shouldShowNoResults: j
|
|
101
103
|
}),
|
|
102
|
-
/* @__PURE__ */ _(b, {
|
|
104
|
+
/* @__PURE__ */ _(b, {
|
|
105
|
+
error: s,
|
|
106
|
+
errorText: f
|
|
107
|
+
})
|
|
103
108
|
]
|
|
104
109
|
});
|
|
105
110
|
};
|
|
106
111
|
x.displayName = "SelectAsyncOptions";
|
|
107
|
-
var S = ({ autoHighlight: e, debouncedQuery: t, error: n,
|
|
108
|
-
let
|
|
109
|
-
|
|
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) => {
|
|
114
|
+
b(e);
|
|
110
115
|
let t = s(e);
|
|
111
|
-
|
|
116
|
+
d?.(i(t), t, e), l || y(!1);
|
|
112
117
|
}, [
|
|
113
|
-
v,
|
|
114
118
|
y,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
b,
|
|
120
|
+
d,
|
|
121
|
+
l
|
|
122
|
+
]), A = f((e) => {
|
|
118
123
|
e.stopPropagation();
|
|
119
124
|
let t = [];
|
|
120
|
-
|
|
125
|
+
b(t);
|
|
121
126
|
let n = s(t);
|
|
122
|
-
|
|
123
|
-
}, [
|
|
124
|
-
return
|
|
125
|
-
close: () =>
|
|
127
|
+
d?.(i(n), n, t);
|
|
128
|
+
}, [b, d]);
|
|
129
|
+
return h ? h({
|
|
130
|
+
close: () => y(!1),
|
|
126
131
|
debouncedQuery: t,
|
|
127
132
|
error: n,
|
|
128
|
-
handleClear:
|
|
129
|
-
handleMenuChange:
|
|
130
|
-
loading:
|
|
131
|
-
query:
|
|
132
|
-
results:
|
|
133
|
-
setValue:
|
|
134
|
-
setQuery:
|
|
135
|
-
show:
|
|
136
|
-
value:
|
|
137
|
-
}) :
|
|
133
|
+
handleClear: A,
|
|
134
|
+
handleMenuChange: k,
|
|
135
|
+
loading: o,
|
|
136
|
+
query: m,
|
|
137
|
+
results: O,
|
|
138
|
+
setValue: b,
|
|
139
|
+
setQuery: v,
|
|
140
|
+
show: S,
|
|
141
|
+
value: T
|
|
142
|
+
}) : E ? /* @__PURE__ */ _(x, {
|
|
138
143
|
autoHighlight: e,
|
|
139
144
|
debouncedQuery: t,
|
|
140
145
|
error: n,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
146
|
+
errorText: r,
|
|
147
|
+
loading: o,
|
|
148
|
+
minSearchLength: c,
|
|
149
|
+
multiSelect: l,
|
|
150
|
+
onChange: k,
|
|
151
|
+
onClear: A,
|
|
152
|
+
query: m,
|
|
153
|
+
results: g,
|
|
154
|
+
setQuery: v,
|
|
155
|
+
show: S,
|
|
156
|
+
value: T,
|
|
157
|
+
shouldShowInstructions: C,
|
|
158
|
+
shouldShowNoResults: w
|
|
153
159
|
}) : /* @__PURE__ */ _(u, {
|
|
154
|
-
items:
|
|
155
|
-
multiSelect:
|
|
156
|
-
onChange:
|
|
157
|
-
selected:
|
|
160
|
+
items: O,
|
|
161
|
+
multiSelect: l,
|
|
162
|
+
onChange: k,
|
|
163
|
+
selected: T
|
|
158
164
|
});
|
|
159
165
|
};
|
|
160
166
|
S.displayName = "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,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";
|