@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
package/dist/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./constants-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./constants-DJz-xntC.js";
|
|
2
2
|
export { d as BREAKPOINTS, o as BREAKPOINT_DETAILS, l as FOCUSABLE_QUERY_SELECTOR, i as FORM_ELEMENT_WIDTHS, e as GRID_SIZE, s as HORIZONTAL_ALIGNS, u as MATERIAL_SYMBOLS, t as STATUSES, a as TEXT_ALIGNS, f as TOASTER_OFFSET_VAR, n as VERTICAL_ALIGNS, r as Z_INDEX, c as Z_INDEX_OFFSET_VAR };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e, f as t, i as n, m as r, o as i, p as a, r as o, t as s } from "./css-
|
|
2
|
-
import { t as c } from "./cx-
|
|
3
|
-
import { r as l, t as u } from "./cva-
|
|
1
|
+
import { a as e, f as t, i as n, m as r, o as i, p as a, r as o, t as s } from "./css-R34N3rft.js";
|
|
2
|
+
import { t as c } from "./cx-QcEwjve6.js";
|
|
3
|
+
import { r as l, t as u } from "./cva-DcOwIar2.js";
|
|
4
4
|
//#region src/styled-system/recipes/create-recipe.mjs
|
|
5
5
|
var d = (t, a, d) => {
|
|
6
6
|
let f = (n) => ({
|
|
@@ -28,7 +28,7 @@ function c(e) {
|
|
|
28
28
|
}
|
|
29
29
|
var l = /\s*!(important)?/i;
|
|
30
30
|
function u(e) {
|
|
31
|
-
return typeof e == "string"
|
|
31
|
+
return typeof e == "string" && l.test(e);
|
|
32
32
|
}
|
|
33
33
|
function d(e) {
|
|
34
34
|
return typeof e == "string" ? e.replace(l, "").trim() : e;
|
|
@@ -56,8 +56,8 @@ function h(...t) {
|
|
|
56
56
|
e(i) && e(a) ? t[r] = h(i, a) : t[r] = a;
|
|
57
57
|
}), t), {});
|
|
58
58
|
}
|
|
59
|
-
var
|
|
60
|
-
function
|
|
59
|
+
var g = (e) => e != null;
|
|
60
|
+
function _(e, n, r = {}) {
|
|
61
61
|
let { stop: i, getKey: a } = r;
|
|
62
62
|
function o(e, r = []) {
|
|
63
63
|
if (t(e)) {
|
|
@@ -66,7 +66,7 @@ function g(e, n, r = {}) {
|
|
|
66
66
|
let l = a?.(s, c) ?? s, u = [...r, l];
|
|
67
67
|
if (i?.(e, u)) return n(e, r);
|
|
68
68
|
let d = o(c, u);
|
|
69
|
-
|
|
69
|
+
g(d) && (t[l] = d);
|
|
70
70
|
}
|
|
71
71
|
return t;
|
|
72
72
|
}
|
|
@@ -74,26 +74,26 @@ function g(e, n, r = {}) {
|
|
|
74
74
|
}
|
|
75
75
|
return o(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function v(e, t) {
|
|
78
78
|
return e.reduce((e, n, r) => {
|
|
79
79
|
let i = t[r];
|
|
80
80
|
return n != null && (e[i] = n), e;
|
|
81
81
|
}, {});
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function y(e, t, n = !0) {
|
|
84
84
|
let { utility: r, conditions: i } = t, { hasShorthand: a, resolveShorthand: o } = r;
|
|
85
|
-
return
|
|
85
|
+
return _(e, (e) => Array.isArray(e) ? v(e, i.breakpoints.keys) : e, {
|
|
86
86
|
stop: (e) => Array.isArray(e),
|
|
87
87
|
getKey: n ? (e) => a ? o(e) : e : void 0
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var b = {
|
|
91
91
|
shift: (e) => e,
|
|
92
92
|
finalize: (e) => e,
|
|
93
93
|
breakpoints: { keys: [] }
|
|
94
|
-
},
|
|
95
|
-
function
|
|
96
|
-
let { utility: t, hash: n, conditions: r =
|
|
94
|
+
}, x = (e) => typeof e == "string" ? e.replaceAll(/[\n\s]+/g, " ") : e;
|
|
95
|
+
function S(e) {
|
|
96
|
+
let { utility: t, hash: n, conditions: r = b } = e, a = (e) => [t.prefix, e].filter(Boolean).join("-"), o = (e, i) => {
|
|
97
97
|
let o;
|
|
98
98
|
if (n) {
|
|
99
99
|
let n = [...r.finalize(e), i];
|
|
@@ -102,21 +102,21 @@ function x(e) {
|
|
|
102
102
|
return o;
|
|
103
103
|
};
|
|
104
104
|
return p(({ base: n, ...a } = {}) => {
|
|
105
|
-
let s =
|
|
106
|
-
return
|
|
105
|
+
let s = y(Object.assign(a, n), e), c = /* @__PURE__ */ new Set();
|
|
106
|
+
return _(s, (e, n) => {
|
|
107
107
|
if (e == null) return;
|
|
108
|
-
let a = u(e), [s, ...l] = r.shift(n), f =
|
|
109
|
-
a && (
|
|
108
|
+
let a = u(e), [s, ...l] = r.shift(n), f = i(l), p = t.transform(s, d(x(e))), m = o(f, p.className);
|
|
109
|
+
a && (m = `${m}!`), c.add(m);
|
|
110
110
|
}), Array.from(c).join(" ");
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function C(...t) {
|
|
114
114
|
return t.flat().filter((t) => e(t) && Object.keys(n(t)).length > 0);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function w(e) {
|
|
117
117
|
function t(t) {
|
|
118
|
-
let n =
|
|
119
|
-
return n.length === 1 ? n : n.map((t) =>
|
|
118
|
+
let n = C(...t);
|
|
119
|
+
return n.length === 1 ? n : n.map((t) => y(t, e));
|
|
120
120
|
}
|
|
121
121
|
function n(...e) {
|
|
122
122
|
return h(...t(e));
|
|
@@ -129,32 +129,32 @@ function C(e) {
|
|
|
129
129
|
assignCss: r
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var T = /([A-Z])/g, E = /^ms-/, D = p((e) => e.startsWith("--") ? e : e.replace(T, "-$1").replace(E, "-ms-").toLowerCase());
|
|
133
133
|
RegExp(`^(${[
|
|
134
134
|
"min",
|
|
135
135
|
"max",
|
|
136
136
|
"clamp",
|
|
137
137
|
"calc"
|
|
138
138
|
].join("|")})\\(.*\\)`);
|
|
139
|
-
var
|
|
140
|
-
RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${
|
|
141
|
-
var
|
|
139
|
+
var O = `(?:${"cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%".split(",").join("|")})`;
|
|
140
|
+
RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${O}$`);
|
|
141
|
+
var k = (e = {}) => {
|
|
142
142
|
let t = (t) => ({
|
|
143
143
|
className: [e.className, t].filter(Boolean).join("__"),
|
|
144
144
|
base: e.base?.[t] ?? {},
|
|
145
145
|
variants: {},
|
|
146
146
|
defaultVariants: e.defaultVariants ?? {},
|
|
147
|
-
compoundVariants: e.compoundVariants ?
|
|
147
|
+
compoundVariants: e.compoundVariants ? A(e.compoundVariants, t) : []
|
|
148
148
|
}), n = (e.slots ?? []).map((e) => [e, t(e)]);
|
|
149
149
|
for (let [t, r] of Object.entries(e.variants ?? {})) for (let [e, i] of Object.entries(r)) n.forEach(([n, r]) => {
|
|
150
150
|
r.variants[t] ??= {}, r.variants[t][e] = i[n] ?? {};
|
|
151
151
|
});
|
|
152
152
|
return Object.fromEntries(n);
|
|
153
|
-
},
|
|
153
|
+
}, A = (e, t) => e.filter((e) => e.css[t]).map((e) => ({
|
|
154
154
|
...e,
|
|
155
155
|
css: e.css[t]
|
|
156
156
|
}));
|
|
157
|
-
function
|
|
157
|
+
function j(e, ...t) {
|
|
158
158
|
let n = Object.getOwnPropertyDescriptors(e), r = Object.keys(n), i = (e) => {
|
|
159
159
|
let t = {};
|
|
160
160
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -165,7 +165,7 @@ function A(e, ...t) {
|
|
|
165
165
|
};
|
|
166
166
|
return t.map((e) => i(Array.isArray(e) ? e : r.filter(e))).concat(i(r));
|
|
167
167
|
}
|
|
168
|
-
var
|
|
168
|
+
var ee = (...e) => {
|
|
169
169
|
let t = e.reduce((e, t) => (t && t.forEach((t) => e.add(t)), e), /* @__PURE__ */ new Set([]));
|
|
170
170
|
return Array.from(t);
|
|
171
171
|
}, M = [
|
|
@@ -213,7 +213,7 @@ var H = {
|
|
|
213
213
|
"-md": "-spacing.4",
|
|
214
214
|
"-lg": "-spacing.6",
|
|
215
215
|
"-xl": "-spacing.10"
|
|
216
|
-
}, W = new Set([
|
|
216
|
+
}, W = /* @__PURE__ */ new Set([
|
|
217
217
|
"gap",
|
|
218
218
|
"columnGap",
|
|
219
219
|
"rowGap",
|
|
@@ -256,14 +256,14 @@ var Y = (e) => J.get(e) || e, X = {
|
|
|
256
256
|
utility: {
|
|
257
257
|
transform: (e, t) => {
|
|
258
258
|
let n = Y(e);
|
|
259
|
-
return { className: `${q.get(n) ||
|
|
259
|
+
return { className: `${q.get(n) || D(n)}_${f(G(n, t))}` };
|
|
260
260
|
},
|
|
261
261
|
hasShorthand: !0,
|
|
262
262
|
toHash: (e, t) => t(e.join(":")),
|
|
263
263
|
resolveShorthand: Y
|
|
264
264
|
}
|
|
265
|
-
}, Z =
|
|
265
|
+
}, Z = S(X), Q = (...e) => Z($(...e));
|
|
266
266
|
Q.raw = (...e) => $(...e);
|
|
267
|
-
var { mergeCss: $, assignCss: te } =
|
|
267
|
+
var { mergeCss: $, assignCss: te } = w(X);
|
|
268
268
|
//#endregion
|
|
269
|
-
export { n as a,
|
|
269
|
+
export { n as a, k as c, P as d, j as f, V as i, p as l, f as m, $ as n, S as o, ee as p, B as r, A as s, Q as t, h as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, f as t, l as n, n as r, p as i, t as a, u as o } from "./css-
|
|
1
|
+
import { a as e, f as t, l as n, n as r, p as i, t as a, u as o } from "./css-R34N3rft.js";
|
|
2
2
|
//#region src/styled-system/css/cva.mjs
|
|
3
3
|
var s = (e) => ({
|
|
4
4
|
base: {},
|
|
@@ -49,7 +49,7 @@ function c(u) {
|
|
|
49
49
|
function l(e, t) {
|
|
50
50
|
let n = {};
|
|
51
51
|
return e.forEach((e) => {
|
|
52
|
-
Object.entries(e).every(([e, n]) => e === "css"
|
|
52
|
+
Object.entries(e).every(([e, n]) => e === "css" || (Array.isArray(n) ? n : [n]).some((n) => t[e] === n)) && (n = r(n, e.css));
|
|
53
53
|
}), n;
|
|
54
54
|
}
|
|
55
55
|
function u(e, t, n, r) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as e, f as t, t as n } from "./css-
|
|
2
|
-
import { t as r } from "./cx-
|
|
3
|
-
import { n as i } from "./cva-
|
|
4
|
-
import { t as a } from "./is-valid-prop-
|
|
1
|
+
import { d as e, f as t, t as n } from "./css-R34N3rft.js";
|
|
2
|
+
import { t as r } from "./cx-QcEwjve6.js";
|
|
3
|
+
import { n as i } from "./cva-DcOwIar2.js";
|
|
4
|
+
import { t as a } from "./is-valid-prop-BVyYPT21.js";
|
|
5
5
|
import { createElement as o, forwardRef as s, useMemo as c } from "react";
|
|
6
6
|
//#region src/styled-system/jsx/factory-helper.mjs
|
|
7
7
|
var l = (e, t) => !t.includes(e) && !a(e), u = (e, t) => e.__shouldForwardProps__ && t ? (n) => e.__shouldForwardProps__(n) && t(n) : t, d = (e, t) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./index.esm-
|
|
1
|
+
import { n as e, r as t, t as n } from "./index.esm-CapMi3wi.js";
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { useLayoutEffect as i } from "react";
|
|
4
4
|
import * as a from "react-dom";
|
|
@@ -105,7 +105,7 @@ var P = [
|
|
|
105
105
|
"right",
|
|
106
106
|
"bottom",
|
|
107
107
|
"left"
|
|
108
|
-
], F = ["start", "end"], I =
|
|
108
|
+
], F = ["start", "end"], I = /*#__PURE__*/ P.reduce((e, t) => e.concat(t, t + "-" + F[0], t + "-" + F[1]), []), L = Math.min, R = Math.max, ee = Math.round, z = Math.floor, B = (e) => ({
|
|
109
109
|
x: e,
|
|
110
110
|
y: e
|
|
111
111
|
}), te = {
|
|
@@ -281,7 +281,7 @@ function Ie(e) {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
function Le(e) {
|
|
284
|
-
return e ? e.hasAttribute(we) ? e : e.querySelector("[
|
|
284
|
+
return e ? e.hasAttribute(we) ? e : e.querySelector("[data-floating-ui-focusable]") || e : null;
|
|
285
285
|
}
|
|
286
286
|
function Re(e, t, n) {
|
|
287
287
|
return n === void 0 && (n = !0), e.filter((e) => e.parentId === t && (!n || e.context?.open)).flatMap((t) => [t, ...Re(e, t.id, n)]);
|
|
@@ -597,7 +597,7 @@ var dt = 50, ft = async (e, t, n) => {
|
|
|
597
597
|
};
|
|
598
598
|
};
|
|
599
599
|
function pt(e, t, n) {
|
|
600
|
-
return (e ? [...n.filter((t) => U(t) === e), ...n.filter((t) => U(t) !== e)] : n.filter((e) => H(e) === e)).filter((n) => e
|
|
600
|
+
return (e ? [...n.filter((t) => U(t) === e), ...n.filter((t) => U(t) !== e)] : n.filter((e) => H(e) === e)).filter((n) => !e || U(n) === e || (t ? se(n) !== n : !1));
|
|
601
601
|
}
|
|
602
602
|
var mt = function(e) {
|
|
603
603
|
return e === void 0 && (e = {}), {
|
|
@@ -660,7 +660,7 @@ var mt = function(e) {
|
|
|
660
660
|
overflows: w
|
|
661
661
|
}], !w.every((e) => e <= 0)) {
|
|
662
662
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
663
|
-
if (t && (!(u === "alignment" && _ !== G(t)) || T.every((e) => G(e.placement)
|
|
663
|
+
if (t && (!(u === "alignment" && _ !== G(t)) || T.every((e) => G(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
664
664
|
data: {
|
|
665
665
|
index: e,
|
|
666
666
|
overflows: T
|
|
@@ -689,7 +689,7 @@ var mt = function(e) {
|
|
|
689
689
|
return {};
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
|
-
}, gt =
|
|
692
|
+
}, gt = /*#__PURE__*/ new Set(["left", "top"]);
|
|
693
693
|
async function _t(e, t) {
|
|
694
694
|
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = H(n), s = U(n), c = G(n) === "y", l = gt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = V(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
695
695
|
mainAxis: d,
|
|
@@ -811,7 +811,7 @@ function Ct(e) {
|
|
|
811
811
|
y: s
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
|
-
var wt =
|
|
814
|
+
var wt = /*#__PURE__*/ B(0);
|
|
815
815
|
function Tt(e) {
|
|
816
816
|
let t = d(e);
|
|
817
817
|
return !E() || !t.visualViewport ? wt : {
|
|
@@ -1317,10 +1317,10 @@ function gn(e, t) {
|
|
|
1317
1317
|
let n = e.compareDocumentPosition(t);
|
|
1318
1318
|
return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
|
|
1319
1319
|
}
|
|
1320
|
-
var _n =
|
|
1320
|
+
var _n = /*#__PURE__*/ r.createContext({
|
|
1321
1321
|
register: () => {},
|
|
1322
1322
|
unregister: () => {},
|
|
1323
|
-
map:
|
|
1323
|
+
map: /*#__PURE__*/ new Map(),
|
|
1324
1324
|
elementsRef: { current: [] }
|
|
1325
1325
|
});
|
|
1326
1326
|
function vn(e) {
|
|
@@ -1337,7 +1337,7 @@ function vn(e) {
|
|
|
1337
1337
|
e.set(t, n);
|
|
1338
1338
|
}), e;
|
|
1339
1339
|
}, [a]);
|
|
1340
|
-
return
|
|
1340
|
+
return /*#__PURE__*/ s(_n.Provider, {
|
|
1341
1341
|
value: r.useMemo(() => ({
|
|
1342
1342
|
register: c,
|
|
1343
1343
|
unregister: l,
|
|
@@ -1382,12 +1382,12 @@ function yn(e) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
var bn = "data-floating-ui-focusable", xn = "active", Sn = "selected", Cn = "ArrowLeft", wn = "ArrowRight", Tn = "ArrowUp", En = "ArrowDown";
|
|
1384
1384
|
function Dn(e, t) {
|
|
1385
|
-
return typeof e == "function" ? e(t) : e ?
|
|
1385
|
+
return typeof e == "function" ? e(t) : e ? /*#__PURE__*/ r.cloneElement(e, t) : /*#__PURE__*/ s("div", { ...t });
|
|
1386
1386
|
}
|
|
1387
|
-
var On =
|
|
1387
|
+
var On = /*#__PURE__*/ r.createContext({
|
|
1388
1388
|
activeIndex: 0,
|
|
1389
1389
|
onNavigate: () => {}
|
|
1390
|
-
}), kn = [Cn, wn], An = [Tn, En], jn = [...kn, ...An], Mn =
|
|
1390
|
+
}), kn = [Cn, wn], An = [Tn, En], jn = [...kn, ...An], Mn = /*#__PURE__*/ r.forwardRef(function(e, t) {
|
|
1391
1391
|
let { render: n, orientation: i = "both", loop: a = !0, rtl: o = !1, cols: c = 1, disabledIndices: l, activeIndex: u, onNavigate: d, itemSizes: f, dense: p = !1, ...m } = e, [h, g] = r.useState(0), _ = u ?? h, v = Z(d ?? g), y = r.useRef([]), b = n && typeof n != "function" ? n.props : {}, x = r.useMemo(() => ({
|
|
1392
1392
|
activeIndex: _,
|
|
1393
1393
|
onNavigate: v
|
|
@@ -1443,14 +1443,14 @@ var On = /* @__PURE__ */ r.createContext({
|
|
|
1443
1443
|
m.onKeyDown == null || m.onKeyDown(e), b.onKeyDown == null || b.onKeyDown(e), C(e);
|
|
1444
1444
|
}
|
|
1445
1445
|
};
|
|
1446
|
-
return
|
|
1446
|
+
return /*#__PURE__*/ s(On.Provider, {
|
|
1447
1447
|
value: x,
|
|
1448
|
-
children:
|
|
1448
|
+
children: /*#__PURE__*/ s(vn, {
|
|
1449
1449
|
elementsRef: y,
|
|
1450
1450
|
children: Dn(n, w)
|
|
1451
1451
|
})
|
|
1452
1452
|
});
|
|
1453
|
-
}), Nn =
|
|
1453
|
+
}), Nn = /*#__PURE__*/ r.forwardRef(function(e, t) {
|
|
1454
1454
|
let { render: n, ...i } = e, a = n && typeof n != "function" ? n.props : {}, { activeIndex: o, onNavigate: s } = r.useContext(On), { ref: c, index: l } = yn(), u = hn([
|
|
1455
1455
|
c,
|
|
1456
1456
|
t,
|
|
@@ -1476,7 +1476,7 @@ function Rn() {
|
|
|
1476
1476
|
}, []), e;
|
|
1477
1477
|
}
|
|
1478
1478
|
var zn = Pn.useId || Rn, Bn;
|
|
1479
|
-
process.env.NODE_ENV !== "production" && (Bn =
|
|
1479
|
+
process.env.NODE_ENV !== "production" && (Bn = /*#__PURE__*/ new Set());
|
|
1480
1480
|
function Vn() {
|
|
1481
1481
|
var e;
|
|
1482
1482
|
let t = "Floating UI: " + [...arguments].join(" ");
|
|
@@ -1509,7 +1509,7 @@ function Un() {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
};
|
|
1511
1511
|
}
|
|
1512
|
-
var Wn =
|
|
1512
|
+
var Wn = /*#__PURE__*/ r.createContext(null), Gn = /*#__PURE__*/ r.createContext(null), Kn = () => r.useContext(Wn)?.id || null, qn = () => r.useContext(Gn);
|
|
1513
1513
|
function Jn(e) {
|
|
1514
1514
|
let t = zn(), n = qn(), r = Kn(), i = e || r;
|
|
1515
1515
|
return Y(() => {
|
|
@@ -1529,7 +1529,7 @@ function Jn(e) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
function Yn(e) {
|
|
1531
1531
|
let { children: t, id: n } = e, i = Kn();
|
|
1532
|
-
return
|
|
1532
|
+
return /*#__PURE__*/ s(Wn.Provider, {
|
|
1533
1533
|
value: r.useMemo(() => ({
|
|
1534
1534
|
id: n,
|
|
1535
1535
|
parentId: i
|
|
@@ -1543,7 +1543,7 @@ function Xn(e) {
|
|
|
1543
1543
|
}, []), a = r.useCallback((e) => {
|
|
1544
1544
|
n.current = n.current.filter((t) => t !== e);
|
|
1545
1545
|
}, []), [o] = r.useState(() => Un());
|
|
1546
|
-
return
|
|
1546
|
+
return /*#__PURE__*/ s(Gn.Provider, {
|
|
1547
1547
|
value: r.useMemo(() => ({
|
|
1548
1548
|
nodesRef: n,
|
|
1549
1549
|
addNode: i,
|
|
@@ -1563,7 +1563,7 @@ function Zn(e) {
|
|
|
1563
1563
|
function $(e) {
|
|
1564
1564
|
e.current !== -1 && (clearTimeout(e.current), e.current = -1);
|
|
1565
1565
|
}
|
|
1566
|
-
var Qn =
|
|
1566
|
+
var Qn = /*#__PURE__*/ Zn("safe-polygon");
|
|
1567
1567
|
function $n(e, t, n) {
|
|
1568
1568
|
if (n && !We(n)) return 0;
|
|
1569
1569
|
if (typeof e == "number") return e;
|
|
@@ -1768,14 +1768,14 @@ function ir(e) {
|
|
|
1768
1768
|
return e?.ownerDocument || document;
|
|
1769
1769
|
}
|
|
1770
1770
|
var ar = {
|
|
1771
|
-
inert:
|
|
1772
|
-
"aria-hidden":
|
|
1773
|
-
none:
|
|
1771
|
+
inert: /*#__PURE__*/ new WeakMap(),
|
|
1772
|
+
"aria-hidden": /*#__PURE__*/ new WeakMap(),
|
|
1773
|
+
none: /*#__PURE__*/ new WeakMap()
|
|
1774
1774
|
};
|
|
1775
1775
|
function or(e) {
|
|
1776
1776
|
return e === "inert" ? ar.inert : e === "aria-hidden" ? ar["aria-hidden"] : ar.none;
|
|
1777
1777
|
}
|
|
1778
|
-
var sr =
|
|
1778
|
+
var sr = /*#__PURE__*/ new WeakSet(), cr = {}, lr = 0, ur = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
|
|
1779
1779
|
function dr(e) {
|
|
1780
1780
|
return e ? g(e) ? e.host : dr(e.parentNode) : null;
|
|
1781
1781
|
}
|
|
@@ -1825,7 +1825,7 @@ var hr = {
|
|
|
1825
1825
|
width: "1px",
|
|
1826
1826
|
top: 0,
|
|
1827
1827
|
left: 0
|
|
1828
|
-
}, gr =
|
|
1828
|
+
}, gr = /*#__PURE__*/ r.forwardRef(function(e, t) {
|
|
1829
1829
|
let [n, i] = r.useState();
|
|
1830
1830
|
Y(() => {
|
|
1831
1831
|
be() && i("button");
|
|
@@ -1834,11 +1834,11 @@ var hr = {
|
|
|
1834
1834
|
ref: t,
|
|
1835
1835
|
tabIndex: 0,
|
|
1836
1836
|
role: n,
|
|
1837
|
-
"aria-hidden": n
|
|
1837
|
+
"aria-hidden": !n || void 0,
|
|
1838
1838
|
[Zn("focus-guard")]: "",
|
|
1839
1839
|
style: hr
|
|
1840
1840
|
};
|
|
1841
|
-
return
|
|
1841
|
+
return /*#__PURE__*/ s("span", {
|
|
1842
1842
|
...e,
|
|
1843
1843
|
...a
|
|
1844
1844
|
});
|
|
@@ -1847,7 +1847,7 @@ var hr = {
|
|
|
1847
1847
|
position: "fixed",
|
|
1848
1848
|
top: 0,
|
|
1849
1849
|
left: 0
|
|
1850
|
-
}, vr =
|
|
1850
|
+
}, vr = /*#__PURE__*/ r.createContext(null), yr = /*#__PURE__*/ Zn("portal");
|
|
1851
1851
|
function br(e) {
|
|
1852
1852
|
e === void 0 && (e = {});
|
|
1853
1853
|
let { id: t, root: n } = e, i = zn(), a = Sr(), [o, s] = r.useState(null), c = r.useRef(null);
|
|
@@ -1895,7 +1895,7 @@ function xr(e) {
|
|
|
1895
1895
|
g
|
|
1896
1896
|
]), r.useEffect(() => {
|
|
1897
1897
|
l && (_ || ct(l));
|
|
1898
|
-
}, [_, l]),
|
|
1898
|
+
}, [_, l]), /*#__PURE__*/ c(vr.Provider, {
|
|
1899
1899
|
value: r.useMemo(() => ({
|
|
1900
1900
|
preserveTabOrder: o,
|
|
1901
1901
|
beforeOutsideRef: f,
|
|
@@ -1906,7 +1906,7 @@ function xr(e) {
|
|
|
1906
1906
|
setFocusManagerState: d
|
|
1907
1907
|
}), [o, l]),
|
|
1908
1908
|
children: [
|
|
1909
|
-
v && l &&
|
|
1909
|
+
v && l && /*#__PURE__*/ s(gr, {
|
|
1910
1910
|
"data-type": "outside",
|
|
1911
1911
|
ref: f,
|
|
1912
1912
|
onFocus: (e) => {
|
|
@@ -1916,12 +1916,12 @@ function xr(e) {
|
|
|
1916
1916
|
} else at(u ? u.domReference : null)?.focus();
|
|
1917
1917
|
}
|
|
1918
1918
|
}),
|
|
1919
|
-
v && l &&
|
|
1919
|
+
v && l && /*#__PURE__*/ s("span", {
|
|
1920
1920
|
"aria-owns": l.id,
|
|
1921
1921
|
style: _r
|
|
1922
1922
|
}),
|
|
1923
|
-
l &&
|
|
1924
|
-
v && l &&
|
|
1923
|
+
l && /*#__PURE__*/ a.createPortal(t, l),
|
|
1924
|
+
v && l && /*#__PURE__*/ s(gr, {
|
|
1925
1925
|
"data-type": "outside",
|
|
1926
1926
|
ref: p,
|
|
1927
1927
|
onFocus: (e) => {
|
|
@@ -1947,7 +1947,7 @@ function Er() {
|
|
|
1947
1947
|
Tr = Tr.filter((e) => e.deref()?.isConnected);
|
|
1948
1948
|
}
|
|
1949
1949
|
function Dr(e) {
|
|
1950
|
-
Er(), e && u(e) !== "body" && (Tr.push(new WeakRef(e)), Tr.length > wr && (Tr = Tr.slice(-
|
|
1950
|
+
Er(), e && u(e) !== "body" && (Tr.push(new WeakRef(e)), Tr.length > wr && (Tr = Tr.slice(-20)));
|
|
1951
1951
|
}
|
|
1952
1952
|
function Or() {
|
|
1953
1953
|
return Er(), Tr[Tr.length - 1]?.deref();
|
|
@@ -1965,8 +1965,8 @@ function Ar(t, r) {
|
|
|
1965
1965
|
}), s = t.getAttribute("tabindex");
|
|
1966
1966
|
r.current.includes("floating") || o.length === 0 ? s !== "0" && t.setAttribute("tabindex", "0") : (s !== "-1" || t.hasAttribute("data-tabindex") && t.getAttribute("data-tabindex") !== "-1") && (t.setAttribute("tabindex", "-1"), t.setAttribute("data-tabindex", "-1"));
|
|
1967
1967
|
}
|
|
1968
|
-
var jr =
|
|
1969
|
-
return
|
|
1968
|
+
var jr = /*#__PURE__*/ r.forwardRef(function(e, t) {
|
|
1969
|
+
return /*#__PURE__*/ s("button", {
|
|
1970
1970
|
...e,
|
|
1971
1971
|
type: "button",
|
|
1972
1972
|
ref: t,
|
|
@@ -1975,7 +1975,7 @@ var jr = /* @__PURE__ */ r.forwardRef(function(e, t) {
|
|
|
1975
1975
|
});
|
|
1976
1976
|
});
|
|
1977
1977
|
function Mr(e) {
|
|
1978
|
-
let { context: n, children: i, disabled: a = !1, order: l = ["content"], guards: u = !0, initialFocus: d = 0, returnFocus: f = !0, restoreFocus: p = !1, modal: m = !0, visuallyHiddenDismiss: g = !1, closeOnFocusOut: _ = !0, outsideElementsInert: v = !1, getInsideElements: y = () => [] } = e, { open: b, onOpenChange: x, events: S, dataRef: C, elements: { domReference: w, floating: T } } = n, E = Z(() => C.current.floatingContext?.nodeId), D = Z(y), O = typeof d == "number" && d < 0, k = Fe(w) && O, A = ur(), j = A
|
|
1978
|
+
let { context: n, children: i, disabled: a = !1, order: l = ["content"], guards: u = !0, initialFocus: d = 0, returnFocus: f = !0, restoreFocus: p = !1, modal: m = !0, visuallyHiddenDismiss: g = !1, closeOnFocusOut: _ = !0, outsideElementsInert: v = !1, getInsideElements: y = () => [] } = e, { open: b, onOpenChange: x, events: S, dataRef: C, elements: { domReference: w, floating: T } } = n, E = Z(() => C.current.floatingContext?.nodeId), D = Z(y), O = typeof d == "number" && d < 0, k = Fe(w) && O, A = ur(), j = !A || u, M = !j || A && v, N = X(l), P = X(d), F = X(f), I = qn(), L = Sr(), R = r.useRef(null), ee = r.useRef(null), z = r.useRef(!1), B = r.useRef(!1), te = r.useRef(-1), ne = r.useRef(-1), V = L != null, H = Le(T), U = Z(function(e) {
|
|
1979
1979
|
return e === void 0 && (e = H), e ? t(e, nt()) : [];
|
|
1980
1980
|
}), W = Z((e) => {
|
|
1981
1981
|
let t = U(e);
|
|
@@ -2069,9 +2069,9 @@ function Mr(e) {
|
|
|
2069
2069
|
r.useEffect(() => {
|
|
2070
2070
|
var e, t;
|
|
2071
2071
|
if (a || !T) return;
|
|
2072
|
-
let n = Array.from((L == null || (e = L.portalNode) == null ? void 0 : e.querySelectorAll("[" + Zn("portal") + "]")) || []), r = [
|
|
2072
|
+
let n = Array.from((L == null || (e = L.portalNode) == null ? void 0 : e.querySelectorAll("[" + Zn("portal") + "]")) || []), r = (t = (I ? Be(I.nodesRef.current, E()) : []).find((e) => Fe(e.context?.elements.domReference || null))) == null || (t = t.context) == null ? void 0 : t.elements.domReference, i = [
|
|
2073
2073
|
T,
|
|
2074
|
-
|
|
2074
|
+
r,
|
|
2075
2075
|
...n,
|
|
2076
2076
|
...D(),
|
|
2077
2077
|
R.current,
|
|
@@ -2081,9 +2081,9 @@ function Mr(e) {
|
|
|
2081
2081
|
L?.beforeOutsideRef.current,
|
|
2082
2082
|
L?.afterOutsideRef.current,
|
|
2083
2083
|
N.current.includes("reference") || k ? w : null
|
|
2084
|
-
].filter((e) => e != null),
|
|
2084
|
+
].filter((e) => e != null), o = m || k ? mr(i, !M, M) : mr(i);
|
|
2085
2085
|
return () => {
|
|
2086
|
-
|
|
2086
|
+
o();
|
|
2087
2087
|
};
|
|
2088
2088
|
}, [
|
|
2089
2089
|
a,
|
|
@@ -2186,15 +2186,15 @@ function Mr(e) {
|
|
|
2186
2186
|
N
|
|
2187
2187
|
]);
|
|
2188
2188
|
function oe(e) {
|
|
2189
|
-
return a || !g || !m ? null :
|
|
2189
|
+
return a || !g || !m ? null : /*#__PURE__*/ s(jr, {
|
|
2190
2190
|
ref: e === "start" ? R : ee,
|
|
2191
2191
|
onClick: (e) => x(!1, e.nativeEvent),
|
|
2192
2192
|
children: typeof g == "string" ? g : "Dismiss"
|
|
2193
2193
|
});
|
|
2194
2194
|
}
|
|
2195
|
-
let se = !a && j && (m
|
|
2196
|
-
return
|
|
2197
|
-
se &&
|
|
2195
|
+
let se = !a && j && (!m || !k) && (V || m);
|
|
2196
|
+
return /*#__PURE__*/ c(o, { children: [
|
|
2197
|
+
se && /*#__PURE__*/ s(gr, {
|
|
2198
2198
|
"data-type": "inside",
|
|
2199
2199
|
ref: ie,
|
|
2200
2200
|
onFocus: (e) => {
|
|
@@ -2211,7 +2211,7 @@ function Mr(e) {
|
|
|
2211
2211
|
!k && oe("start"),
|
|
2212
2212
|
i,
|
|
2213
2213
|
oe("end"),
|
|
2214
|
-
se &&
|
|
2214
|
+
se && /*#__PURE__*/ s(gr, {
|
|
2215
2215
|
"data-type": "inside",
|
|
2216
2216
|
ref: ae,
|
|
2217
2217
|
onFocus: (e) => {
|
|
@@ -2249,13 +2249,13 @@ function Fr() {
|
|
|
2249
2249
|
}), window.scrollTo(a, o));
|
|
2250
2250
|
};
|
|
2251
2251
|
}
|
|
2252
|
-
var Ir = () => {}, Lr =
|
|
2252
|
+
var Ir = () => {}, Lr = /*#__PURE__*/ r.forwardRef(function(e, t) {
|
|
2253
2253
|
let { lockScroll: n = !1, ...r } = e;
|
|
2254
2254
|
return Y(() => {
|
|
2255
2255
|
if (n) return Nr++, Nr === 1 && (Ir = Fr()), () => {
|
|
2256
2256
|
Nr--, Nr === 0 && Ir();
|
|
2257
2257
|
};
|
|
2258
|
-
}, [n]),
|
|
2258
|
+
}, [n]), /*#__PURE__*/ s("div", {
|
|
2259
2259
|
ref: t,
|
|
2260
2260
|
...r,
|
|
2261
2261
|
style: {
|
|
@@ -2996,7 +2996,7 @@ function ii(e, t) {
|
|
|
2996
2996
|
se
|
|
2997
2997
|
]);
|
|
2998
2998
|
}
|
|
2999
|
-
var ai =
|
|
2999
|
+
var ai = /*#__PURE__*/ new Map([
|
|
3000
3000
|
["select", "listbox"],
|
|
3001
3001
|
["combobox", "listbox"],
|
|
3002
3002
|
["label", !1]
|