@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,102 +1,106 @@
|
|
|
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 { toArray as r } from "../../helpers/formatting/toArray.js";
|
|
5
5
|
import { useControlledState as i } from "../../hooks/useControlledState.js";
|
|
6
6
|
import { useIdIfNeeded as a } from "../../hooks/useIdIfNeeded.js";
|
|
7
|
-
import { t as o } from "../../floating-ui.react-
|
|
7
|
+
import { t as o } from "../../floating-ui.react-TDMXDOBr.js";
|
|
8
8
|
import { usePopover as s } from "../Popover/hooks/usePopover.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { IressTooltipProvider as c } from "../Tooltip/TooltipProvider.js";
|
|
10
|
+
import { menu as l } from "./Menu.styles.js";
|
|
11
|
+
import { createContext as u, useCallback as d, useEffect as f, useMemo as p, useRef as m } from "react";
|
|
12
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
12
13
|
//#region src/components/Menu/Menu.tsx
|
|
13
|
-
function
|
|
14
|
-
return
|
|
14
|
+
function v() {
|
|
15
|
+
return u(void 0);
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
-
return
|
|
17
|
+
function y() {
|
|
18
|
+
return b;
|
|
18
19
|
}
|
|
19
|
-
var
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
]),
|
|
25
|
-
"aria-multiselectable":
|
|
26
|
-
"aria-orientation":
|
|
20
|
+
var b = v(), x = ({ changeOnBlur: u, className: v, defaultSelected: b, fluid: x, id: S, layout: C = "stack", maxWidth: w = "12/12", multiSelect: T, noWrap: E, numbered: D, onChange: O, role: k = "list", selected: A, variant: j, ...M }) => {
|
|
21
|
+
let N = a({ id: S }), P = s(), F = m(null), I = p(() => P?.type === "listbox" || P?.type === "menu" ? (P.setHasInnerRole(!0), P.type) : T ? "listbox" : k, [
|
|
22
|
+
T,
|
|
23
|
+
P,
|
|
24
|
+
k
|
|
25
|
+
]), L = p(() => ({
|
|
26
|
+
"aria-multiselectable": I === "listbox" && T ? !0 : void 0,
|
|
27
|
+
"aria-orientation": I === "menu" ? C === "stack" ? "vertical" : "horizontal" : void 0
|
|
27
28
|
}), [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
]),
|
|
29
|
+
C,
|
|
30
|
+
T,
|
|
31
|
+
I
|
|
32
|
+
]), R = p(() => I && ["menu", "listbox"].includes(I), [I]), z = p(() => !P && R, [P, R]), B = p(() => I === "listbox" || !!T, [I, T]), { toggleValue: V, value: H } = i({
|
|
32
33
|
component: "IressMenu",
|
|
33
|
-
defaultValue:
|
|
34
|
-
multiple:
|
|
35
|
-
onChange:
|
|
34
|
+
defaultValue: b,
|
|
35
|
+
multiple: T,
|
|
36
|
+
onChange: O,
|
|
36
37
|
propName: "selected",
|
|
37
|
-
value:
|
|
38
|
-
}),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
]),
|
|
43
|
-
changeOnBlur:
|
|
44
|
-
hasArrowKeyNav:
|
|
45
|
-
isComposite:
|
|
46
|
-
isSelected:
|
|
47
|
-
layout:
|
|
48
|
-
multiSelect:
|
|
49
|
-
noWrap:
|
|
50
|
-
numbered:
|
|
51
|
-
role:
|
|
52
|
-
supportsSelection:
|
|
53
|
-
toggle:
|
|
54
|
-
variant:
|
|
38
|
+
value: A
|
|
39
|
+
}), U = d((e) => !B || e === void 0 ? !1 : T ? r(H).includes(e) : H === e, [
|
|
40
|
+
T,
|
|
41
|
+
H,
|
|
42
|
+
B
|
|
43
|
+
]), W = p(() => ({
|
|
44
|
+
changeOnBlur: u && I === "listbox",
|
|
45
|
+
hasArrowKeyNav: R,
|
|
46
|
+
isComposite: z,
|
|
47
|
+
isSelected: U,
|
|
48
|
+
layout: C,
|
|
49
|
+
multiSelect: T,
|
|
50
|
+
noWrap: E,
|
|
51
|
+
numbered: D,
|
|
52
|
+
role: I,
|
|
53
|
+
supportsSelection: B,
|
|
54
|
+
toggle: V,
|
|
55
|
+
variant: j
|
|
55
56
|
}), [
|
|
56
|
-
|
|
57
|
-
N,
|
|
58
|
-
P,
|
|
57
|
+
u,
|
|
59
58
|
R,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
S,
|
|
59
|
+
z,
|
|
60
|
+
U,
|
|
63
61
|
C,
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
T,
|
|
63
|
+
E,
|
|
64
|
+
D,
|
|
66
65
|
I,
|
|
67
|
-
|
|
66
|
+
B,
|
|
67
|
+
V,
|
|
68
|
+
j
|
|
68
69
|
]);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}), [
|
|
72
|
-
let
|
|
73
|
-
fluid:
|
|
74
|
-
layout:
|
|
75
|
-
noWrap:
|
|
76
|
-
numbered:
|
|
77
|
-
insidePopover: !!
|
|
78
|
-
variant:
|
|
79
|
-
}),
|
|
80
|
-
...O,
|
|
70
|
+
f(() => (P?.toggleAriaControls && N && P.toggleAriaControls(N, !0), () => {
|
|
71
|
+
P?.toggleAriaControls && N && P.toggleAriaControls(N, !1);
|
|
72
|
+
}), [N, P]);
|
|
73
|
+
let G = l({
|
|
74
|
+
fluid: x,
|
|
75
|
+
layout: C,
|
|
76
|
+
noWrap: E,
|
|
77
|
+
numbered: D,
|
|
78
|
+
insidePopover: !!P,
|
|
79
|
+
variant: j
|
|
80
|
+
}), K = {
|
|
81
81
|
...M,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
value:
|
|
88
|
-
children:
|
|
89
|
-
loop:
|
|
90
|
-
render: /* @__PURE__ */
|
|
91
|
-
...
|
|
92
|
-
maxWidth:
|
|
82
|
+
...L,
|
|
83
|
+
className: e(v, G.root, n.Menu),
|
|
84
|
+
id: N,
|
|
85
|
+
role: I
|
|
86
|
+
}, { Provider: q } = y(), J = /* @__PURE__ */ g(q, {
|
|
87
|
+
value: W,
|
|
88
|
+
children: z ? /* @__PURE__ */ g(o, {
|
|
89
|
+
loop: I === "menu",
|
|
90
|
+
render: /* @__PURE__ */ g(t.div, {
|
|
91
|
+
...K,
|
|
92
|
+
maxWidth: w
|
|
93
93
|
})
|
|
94
|
-
}) : /* @__PURE__ */
|
|
95
|
-
...
|
|
96
|
-
maxWidth:
|
|
94
|
+
}) : /* @__PURE__ */ g(t.div, {
|
|
95
|
+
...K,
|
|
96
|
+
maxWidth: w
|
|
97
97
|
})
|
|
98
98
|
});
|
|
99
|
+
return j == "rail" ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(c, {
|
|
100
|
+
container: F,
|
|
101
|
+
children: J
|
|
102
|
+
}), /* @__PURE__ */ g("div", { ref: F })] }) : J;
|
|
99
103
|
};
|
|
100
|
-
|
|
104
|
+
x.displayName = "IressMenu";
|
|
101
105
|
//#endregion
|
|
102
|
-
export {
|
|
106
|
+
export { x as IressMenu, b as MenuContext };
|
|
@@ -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/Menu/Menu.styles.ts
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: ["root"],
|
|
@@ -50,6 +50,13 @@ var t = e({
|
|
|
50
50
|
display: "flex",
|
|
51
51
|
flexDirection: "column"
|
|
52
52
|
} }
|
|
53
|
+
}, {
|
|
54
|
+
layout: "stack",
|
|
55
|
+
variant: ["rail", "side"],
|
|
56
|
+
css: { root: {
|
|
57
|
+
flexWrap: "nowrap",
|
|
58
|
+
scrollable: "y"
|
|
59
|
+
} }
|
|
53
60
|
}],
|
|
54
61
|
defaultVariants: { layout: "stack" }
|
|
55
62
|
});
|
|
@@ -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 { MenuContext as n } from "../Menu.js";
|
|
4
4
|
import { IressDivider as r } from "../../Divider/Divider.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ElementType, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { TextElements } from '../../Text';
|
|
3
3
|
import { IressMenuTextProps } from '../MenuText/MenuText';
|
|
4
4
|
import { IressPopoverProps } from '../../Popover';
|
|
5
5
|
import { MenuVariants } from '../Menu';
|
|
6
|
-
type MenuGroupRestProps<TLabel extends TextElements = 'h2', TVariant extends MenuVariants = undefined> = TVariant extends 'subdraw' ? Omit<IressPopoverProps, 'children' | 'activator'> : Omit<IressMenuTextProps<TLabel>, 'children'>;
|
|
6
|
+
type MenuGroupRestProps<TLabel extends TextElements = 'h2', TVariant extends MenuVariants = undefined> = TVariant extends 'subdraw' ? Omit<IressPopoverProps, 'children' | 'activator'> : Omit<IressMenuTextProps<TLabel>, 'children' | 'element'>;
|
|
7
7
|
export type IressMenuGroupProps<TLabel extends TextElements = 'h2', TVariant extends MenuVariants = undefined> = MenuGroupRestProps<TLabel, TVariant> & {
|
|
8
8
|
/**
|
|
9
9
|
* Whether this header is active/expanded, revealing child drawer items.
|
|
@@ -32,11 +32,26 @@ export type IressMenuGroupProps<TLabel extends TextElements = 'h2', TVariant ext
|
|
|
32
32
|
* Adds a divider after the group.
|
|
33
33
|
*/
|
|
34
34
|
divider?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Custom element type for the activator (e.g. for third-party routing).
|
|
37
|
+
* Only used when parent Menu has variant="side".
|
|
38
|
+
*/
|
|
39
|
+
element?: ElementType;
|
|
40
|
+
/**
|
|
41
|
+
* URL for the group activator link.
|
|
42
|
+
* Only used when parent Menu has variant="side".
|
|
43
|
+
*/
|
|
44
|
+
href?: string;
|
|
35
45
|
/**
|
|
36
46
|
* Callback fired when the active/expanded state changes.
|
|
37
47
|
* Only used when parent Menu has variant="side".
|
|
38
48
|
*/
|
|
39
49
|
onActiveChange?: (active?: boolean) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Click handler for the group activator.
|
|
52
|
+
* Only used when parent Menu has variant="side".
|
|
53
|
+
*/
|
|
54
|
+
onClick?: MouseEventHandler;
|
|
40
55
|
/**
|
|
41
56
|
* Variant of the menu group.
|
|
42
57
|
* - `undefined` (default): Renders inline with label as heading and children below.
|
|
@@ -53,7 +68,7 @@ export type IressMenuGroupProps<TLabel extends TextElements = 'h2', TVariant ext
|
|
|
53
68
|
* a fly-over submenu containing the group's children.
|
|
54
69
|
*/
|
|
55
70
|
export declare const IressMenuGroup: {
|
|
56
|
-
<E extends TextElements = "div", TVariant extends MenuVariants = undefined>({ append, active: activeProp, children, className, defaultActive, divider, label, onActiveChange, variant: variantProp, "data-testid": dataTestId, ...restProps }: IressMenuGroupProps<E, TVariant>): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
<E extends TextElements = "div", TVariant extends MenuVariants = undefined>({ append, active: activeProp, children, className, defaultActive, divider, element, href, label, onActiveChange, onClick, variant: variantProp, "data-testid": dataTestId, ...restProps }: IressMenuGroupProps<E, TVariant>): import("react/jsx-runtime").JSX.Element;
|
|
57
72
|
displayName: string;
|
|
58
73
|
};
|
|
59
74
|
export {};
|
|
@@ -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 { propagateTestid as r } from "../../../helpers/utility/propagateTestid.js";
|
|
@@ -9,40 +9,44 @@ import { IressPopover as s } from "../../Popover/Popover.js";
|
|
|
9
9
|
import { IressMenu as c, MenuContext as l } from "../Menu.js";
|
|
10
10
|
import { menuGroup as u } from "./MenuGroup.styles.js";
|
|
11
11
|
import { IressMenuDivider as d } from "../MenuDivider/MenuDivider.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { IressMenuItem as f } from "../MenuItem/MenuItem.js";
|
|
13
|
+
import { IressMenuHeading as p } from "../MenuHeading/MenuHeading.js";
|
|
14
14
|
import { useContext as m } from "react";
|
|
15
15
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
16
16
|
//#region src/components/Menu/MenuGroup/MenuGroup.tsx
|
|
17
|
-
var v = ({ append: v, active: y, children: b, className: x, defaultActive: S, divider: C,
|
|
18
|
-
let
|
|
19
|
-
if (
|
|
20
|
-
let { value:
|
|
17
|
+
var v = ({ append: v, active: y, children: b, className: x, defaultActive: S, divider: C, element: w, href: T, label: E, onActiveChange: D, onClick: O, variant: k, "data-testid": A, ...j }) => {
|
|
18
|
+
let M = a(j), N = m(l), P = o(), F = k ?? N?.variant;
|
|
19
|
+
if (F && (P?.type === "listbox" || N?.role === "listbox")) throw Error("[IressMenuGroup] IressMenu with variants cannot be used within a Menu with role=\"listbox\" or Popover with type=\"listbox\", as it is not intended for that use case. Please unset the variant for grouping in listbox contexts.");
|
|
20
|
+
let { value: I, setValue: L } = i({
|
|
21
21
|
component: "IressMenuGroup",
|
|
22
22
|
defaultValue: S,
|
|
23
|
-
onChange:
|
|
23
|
+
onChange: D,
|
|
24
24
|
value: y
|
|
25
25
|
});
|
|
26
|
-
if (
|
|
26
|
+
if (F == "side") {
|
|
27
27
|
let n = u({
|
|
28
|
-
numbered:
|
|
29
|
-
open:
|
|
28
|
+
numbered: N?.numbered,
|
|
29
|
+
open: I
|
|
30
30
|
});
|
|
31
31
|
return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
|
|
32
32
|
className: e(n.root, x),
|
|
33
|
-
...
|
|
34
|
-
"data-testid":
|
|
35
|
-
children: [/* @__PURE__ */ g(
|
|
33
|
+
...j,
|
|
34
|
+
"data-testid": A,
|
|
35
|
+
children: [/* @__PURE__ */ g(f, {
|
|
36
36
|
className: e(n.activator, t.MenuGroupActivator),
|
|
37
|
-
"data-testid": r(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
"data-testid": r(A, "activator"),
|
|
38
|
+
href: T,
|
|
39
|
+
element: w,
|
|
40
|
+
onClick: (e) => {
|
|
41
|
+
L(!I), O?.(e);
|
|
42
|
+
},
|
|
43
|
+
"aria-expanded": I,
|
|
44
|
+
id: M,
|
|
45
|
+
"aria-controls": `${M}-content`,
|
|
46
|
+
children: E
|
|
43
47
|
}), /* @__PURE__ */ g("div", {
|
|
44
48
|
className: e(n.wrapper, t.MenuGroup),
|
|
45
|
-
id: `${
|
|
49
|
+
id: `${M}-content`,
|
|
46
50
|
children: /* @__PURE__ */ g("div", {
|
|
47
51
|
className: n.content,
|
|
48
52
|
children: b
|
|
@@ -50,34 +54,34 @@ var v = ({ append: v, active: y, children: b, className: x, defaultActive: S, di
|
|
|
50
54
|
})]
|
|
51
55
|
}), C && /* @__PURE__ */ g(d, {})] });
|
|
52
56
|
}
|
|
53
|
-
return
|
|
57
|
+
return F == "subdraw" ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(s, {
|
|
54
58
|
align: "right-start",
|
|
55
59
|
nested: !0,
|
|
56
60
|
offset: {
|
|
57
61
|
mainAxis: 0,
|
|
58
62
|
crossAxis: 0
|
|
59
63
|
},
|
|
60
|
-
type:
|
|
61
|
-
virtualFocus:
|
|
64
|
+
type: N?.role === "list" ? void 0 : N?.role,
|
|
65
|
+
virtualFocus: P?.isVirtualFocus,
|
|
62
66
|
contentStyle: { p: "none" },
|
|
63
|
-
...
|
|
67
|
+
...j,
|
|
64
68
|
className: e(t.MenuGroup, x),
|
|
65
|
-
"data-testid": r(
|
|
66
|
-
activator: /* @__PURE__ */ g(
|
|
69
|
+
"data-testid": r(A, "subdraw"),
|
|
70
|
+
activator: /* @__PURE__ */ g(f, {
|
|
67
71
|
append: v ?? /* @__PURE__ */ g(n, { name: "keyboard_arrow_right" }),
|
|
68
72
|
className: t.MenuGroupActivator,
|
|
69
|
-
"data-testid": r(
|
|
70
|
-
children:
|
|
73
|
+
"data-testid": r(A, "subdraw__trigger"),
|
|
74
|
+
children: E
|
|
71
75
|
}),
|
|
72
76
|
children: /* @__PURE__ */ g(c, { children: b })
|
|
73
77
|
}), C && /* @__PURE__ */ g(d, {})] }) : /* @__PURE__ */ _(h, { children: [
|
|
74
|
-
/* @__PURE__ */ g(
|
|
75
|
-
"data-testid":
|
|
76
|
-
...
|
|
78
|
+
/* @__PURE__ */ g(p, {
|
|
79
|
+
"data-testid": A,
|
|
80
|
+
...j,
|
|
77
81
|
className: e(t.MenuGroup, x),
|
|
78
|
-
srOnly:
|
|
79
|
-
width:
|
|
80
|
-
children:
|
|
82
|
+
srOnly: F == "rail" || void 0,
|
|
83
|
+
width: F == "rail" ? "auto" : void 0,
|
|
84
|
+
children: E
|
|
81
85
|
}),
|
|
82
86
|
b,
|
|
83
87
|
C && /* @__PURE__ */ g(d, {})
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TextElements } from '../../Text';
|
|
2
|
+
import { IressMenuTextProps } from '../MenuText/MenuText';
|
|
3
|
+
export type { IressMenuTextProps as IressMenuHeadingProps } from '../MenuText/MenuText';
|
|
4
|
+
/**
|
|
5
|
+
* A heading element within a menu, used to label groups of menu items.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { IressMenu, IressMenuHeading, IressMenuItem } from '@iress-oss/ids-components';
|
|
10
|
+
*
|
|
11
|
+
* <IressMenu>
|
|
12
|
+
* <IressMenuHeading>Actions</IressMenuHeading>
|
|
13
|
+
* <IressMenuItem>Edit</IressMenuItem>
|
|
14
|
+
* </IressMenu>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const IressMenuHeading: {
|
|
18
|
+
<E extends TextElements = "h2">({ className, element, textStyle, ...restProps }: IressMenuTextProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { t as e } from "../../../cx-QcEwjve6.js";
|
|
2
|
+
import { GlobalCSSClass as t } from "../../../enums.js";
|
|
3
|
+
import { IressMenuText as n } from "../MenuText/MenuText.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Menu/MenuHeading/MenuHeading.tsx
|
|
6
|
+
var i = ({ className: i, element: a = "h2", textStyle: o = "typography.body.md.medium", ...s }) => /* @__PURE__ */ r(n, {
|
|
7
|
+
element: a,
|
|
8
|
+
textStyle: o,
|
|
9
|
+
...s,
|
|
10
|
+
className: e(i, t.MenuHeading)
|
|
11
|
+
});
|
|
12
|
+
i.displayName = "IressMenuHeading";
|
|
13
|
+
//#endregion
|
|
14
|
+
export { i as IressMenuHeading };
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { idsLogger as ee } from "../../../helpers/utility/idsLogger.js";
|
|
6
6
|
import { IressIcon as i } from "../../Icon/Icon.js";
|
|
7
7
|
import { propagateTestid as a } from "../../../helpers/utility/propagateTestid.js";
|
|
8
|
-
import { n as te } from "../../../floating-ui.react-
|
|
8
|
+
import { n as te } from "../../../floating-ui.react-TDMXDOBr.js";
|
|
9
9
|
import { usePopover as o } from "../../Popover/hooks/usePopover.js";
|
|
10
10
|
import { usePopoverItem as s } from "../../Popover/hooks/usePopoverItem.js";
|
|
11
11
|
import { IressTooltip as ne } from "../../Tooltip/Tooltip.js";
|
|
@@ -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/Menu/MenuItem/MenuItem.styles.ts
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: [
|
|
@@ -194,6 +194,15 @@ var t = e({
|
|
|
194
194
|
"option"
|
|
195
195
|
],
|
|
196
196
|
css: { root: { focusable: "colour.primary.onFill" } }
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
variant: "side",
|
|
200
|
+
selected: !0,
|
|
201
|
+
css: { root: {
|
|
202
|
+
bg: "colour.neutral.20",
|
|
203
|
+
color: "colour.primary.text",
|
|
204
|
+
_after: { width: "menu.indicator" }
|
|
205
|
+
} }
|
|
197
206
|
}
|
|
198
207
|
],
|
|
199
208
|
defaultVariants: { layout: "stack" }
|
|
@@ -16,10 +16,6 @@ export type IressMenuTextProps<E extends TextElements = 'div'> = IressTextProps<
|
|
|
16
16
|
prepend?: ReactNode;
|
|
17
17
|
};
|
|
18
18
|
export declare const IressMenuText: {
|
|
19
|
-
<E extends TextElements = "div">({ append, children, className, "data-testid": dataTestid, divider, element, prepend, role, textStyle, ...restProps }: IressMenuTextProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
displayName: string;
|
|
21
|
-
};
|
|
22
|
-
export declare const IressMenuHeading: {
|
|
23
|
-
<E extends TextElements = "h2">({ className, element, textStyle, ...restProps }: IressMenuTextProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
<E extends TextElements = "div">({ append, children, className, "data-testid": dataTestid, divider, element, prepend, role, textStyle, width, ...restProps }: IressMenuTextProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
24
20
|
displayName: string;
|
|
25
21
|
};
|
|
@@ -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 { IressText as i } from "../../Text/Text.js";
|
|
6
6
|
import { MenuContext as a } from "../Menu.js";
|
|
@@ -23,39 +23,33 @@ var p = (e, t) => (e && [
|
|
|
23
23
|
"typography.heading.3",
|
|
24
24
|
"typography.heading.4",
|
|
25
25
|
"typography.heading.5"
|
|
26
|
-
].includes(t)), m = ({ append: m, children: h, className: g, "data-testid": _, divider: v, element: y, prepend: b, role: x, textStyle: S,
|
|
27
|
-
let
|
|
28
|
-
layout:
|
|
26
|
+
].includes(t)), m = ({ append: m, children: h, className: g, "data-testid": _, divider: v, element: y, prepend: b, role: x, textStyle: S, width: C = "12/12", ...w }) => {
|
|
27
|
+
let T = l(a), E = c() ?? x, D = o.raw({
|
|
28
|
+
layout: T?.layout,
|
|
29
29
|
isHeading: p(y, S),
|
|
30
30
|
hasAppendOrPrepend: !!(m ?? b)
|
|
31
|
-
}), [
|
|
31
|
+
}), [O, k] = n(w);
|
|
32
32
|
return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
|
|
33
|
-
className: t(g, e(
|
|
33
|
+
className: t(g, e(D.root, O, { width: C }), r.MenuText),
|
|
34
34
|
"data-testid": _,
|
|
35
|
-
role:
|
|
35
|
+
role: E,
|
|
36
36
|
children: [
|
|
37
37
|
b && /* @__PURE__ */ d("div", { children: b }),
|
|
38
38
|
/* @__PURE__ */ d(i, {
|
|
39
|
-
...
|
|
40
|
-
className: e(
|
|
39
|
+
...k,
|
|
40
|
+
className: e(D.contents),
|
|
41
41
|
element: y,
|
|
42
42
|
textStyle: S,
|
|
43
|
+
width: C,
|
|
43
44
|
children: h
|
|
44
45
|
}),
|
|
45
46
|
m && /* @__PURE__ */ d("div", {
|
|
46
|
-
className: e(
|
|
47
|
+
className: e(D.append),
|
|
47
48
|
children: m
|
|
48
49
|
})
|
|
49
50
|
]
|
|
50
51
|
}), v && /* @__PURE__ */ d(s, { mt: "spacing.1" })] });
|
|
51
52
|
};
|
|
52
53
|
m.displayName = "IressMenuText";
|
|
53
|
-
var h = ({ className: e, element: n = "h2", textStyle: i = "typography.body.md.medium", ...a }) => /* @__PURE__ */ d(m, {
|
|
54
|
-
element: n,
|
|
55
|
-
textStyle: i,
|
|
56
|
-
...a,
|
|
57
|
-
className: t(e, r.MenuHeading)
|
|
58
|
-
});
|
|
59
|
-
h.displayName = "IressMenuHeading";
|
|
60
54
|
//#endregion
|
|
61
|
-
export {
|
|
55
|
+
export { m as IressMenuText };
|
|
@@ -3,7 +3,8 @@ import { IressMenu as t } from "./Menu.js";
|
|
|
3
3
|
import { menuItem as n } from "./MenuItem/MenuItem.styles.js";
|
|
4
4
|
import { menuGroup as r } from "./MenuGroup/MenuGroup.styles.js";
|
|
5
5
|
import { IressMenuDivider as i } from "./MenuDivider/MenuDivider.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { IressMenuItem as a } from "./MenuItem/MenuItem.js";
|
|
7
|
+
import { IressMenuText as o } from "./MenuText/MenuText.js";
|
|
8
|
+
import { IressMenuHeading as s } from "./MenuHeading/MenuHeading.js";
|
|
8
9
|
import { IressMenuGroup as c } from "./MenuGroup/MenuGroup.js";
|
|
9
|
-
export { t as IressMenu, i as IressMenuDivider, c as IressMenuGroup,
|
|
10
|
+
export { t as IressMenu, i as IressMenuDivider, c as IressMenuGroup, s as IressMenuHeading, a as IressMenuItem, o as IressMenuText, e as menu, r as menuGroup, n as menuItem };
|
|
@@ -1,16 +1,16 @@
|
|
|
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 { idsLogger as i } from "../../helpers/utility/idsLogger.js";
|
|
6
6
|
import { IressIcon as ee } from "../Icon/Icon.js";
|
|
7
|
-
import { t as te } from "../../Button-
|
|
8
|
-
import { t as ne } from "../../Text.styles-
|
|
7
|
+
import { t as te } from "../../Button-BY2qzshw.js";
|
|
8
|
+
import { t as ne } from "../../Text.styles-DUvXBRio.js";
|
|
9
9
|
import { IressText as a } from "../Text/Text.js";
|
|
10
10
|
import { propagateTestid as o } from "../../helpers/utility/propagateTestid.js";
|
|
11
11
|
import { alert as s } from "../Alert/Alert.styles.js";
|
|
12
12
|
import { useIdIfNeeded as c } from "../../hooks/useIdIfNeeded.js";
|
|
13
|
-
import { b as l, d as u, g as re, o as ie, r as ae, s as oe, u as se, y as ce } from "../../floating-ui.react-
|
|
13
|
+
import { b as l, d as u, g as re, o as ie, r as ae, s as oe, u as se, y as ce } from "../../floating-ui.react-TDMXDOBr.js";
|
|
14
14
|
import { IressCloseButton as le } from "../Button/CloseButton/CloseButton.js";
|
|
15
15
|
import { modal as d } from "./Modal.styles.js";
|
|
16
16
|
import { useProviderModal as f } from "./hooks/useProviderModal.js";
|
|
@@ -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 { pill as a } from "./Pill.styles.js";
|
|
7
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
@@ -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";
|