@konstructio/ui 0.1.2-alpha.101 → 0.1.2-alpha.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialogTrigger-CgcsW_ta.js +109 -0
- package/dist/{Breadcrumb-Bmv0vzgt.js → Breadcrumb-Cp3abB2w.js} +1 -1
- package/dist/Checkbox-DzAx7n67.js +249 -0
- package/dist/{CommandInput-CYYsk_31.js → CommandInput-BnvRMfLI.js} +2 -2
- package/dist/{Counter-DWKyr569.js → Counter-CY0xGnVM.js} +2 -2
- package/dist/{DayPicker-CwO8Zff5.js → DayPicker-kweJz134.js} +750 -746
- package/dist/{DropdownButton-Beel5_gN.js → DropdownButton-DnlwdPmb.js} +1 -1
- package/dist/FlagSelectorList-BoYG-_It.js +852 -0
- package/dist/{HamburgerTrigger-7a4POUaM.js → HamburgerTrigger-1vOTrm8-.js} +2 -2
- package/dist/{Input-DG3snJf_.js → Input-CW0VwW2T.js} +4 -4
- package/dist/{Modal-Bcu6LLAp.js → Modal-Bfzggwlr.js} +2 -2
- package/dist/{Spinner-BegZ5yd7.js → Spinner-Lw9mZYhg.js} +1 -1
- package/dist/Switch-WBRr8uOJ.js +196 -0
- package/dist/Toast-ByH-l4XK.js +459 -0
- package/dist/{Wrapper-DwxJAkNQ.js → Wrapper-ClJ_Mham.js} +2 -2
- package/dist/{Wrapper-DtT29fc5.js → Wrapper-XeeD3av7.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +2 -3
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +4 -3
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +23 -24
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +60 -65
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +35 -43
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +40 -45
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +33 -34
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +45 -51
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +56 -61
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -34
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +70 -75
- package/dist/components/Filter/contexts/filter.provider.js +8 -5
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +2 -2
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PieChart/PieChart.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/components/List/List.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +87 -87
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +19 -19
- package/dist/components/VirtualizedTable/components/Body/Body.js +50 -49
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +67 -21
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +53 -63
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +10 -10
- package/dist/components/VirtualizedTable/components/Header/Header.js +47 -34
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +19 -15
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +10 -10
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +8 -8
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +10 -10
- package/dist/{components-CYt24H4n.js → components-BIHlj4yH.js} +1 -1
- package/dist/{debounce-KoeGNmnW.js → debounce-C5Ycjilj.js} +14 -14
- package/dist/dist-2bGlmy8N2.js +165 -0
- package/dist/dist-BiJrNvNo.js +193 -0
- package/dist/dist-BuFiu480.js +13 -0
- package/dist/dist-C2aTw0m62.js +1320 -0
- package/dist/{dist-DvoMuWKO2.js → dist-C2s4VX-42.js} +4 -4
- package/dist/dist-CT6d9xe7.js +441 -0
- package/dist/dist-CTvBzxW8.js +31 -0
- package/dist/dist-CVDFmWf2.js +358 -0
- package/dist/dist-D4FePjTS.js +194 -0
- package/dist/dist-DISvWx7U.js +99 -0
- package/dist/dist-Db6UeFo4.js +291 -0
- package/dist/{dist-DGO9opgu.js → dist-Dse3gSmZ.js} +49 -49
- package/dist/dist-j7FOUrFU.js +206 -0
- package/dist/{dist-C8NWUTUh.js → dist-l-aDnQZC.js} +1 -1
- package/dist/es2015-BWf6xQHm.js +222 -0
- package/dist/index.js +10 -10
- package/dist/{isObject-1ZmdWuhC.js → isObject-BeFFiVJK.js} +8 -8
- package/dist/lib/components/Alert/Alert.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +2 -2
- package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/Button/Button.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
- package/dist/lib/components/Card/Card.types.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/lib/components/Command/Command.types.d.ts +1 -1
- package/dist/lib/components/Counter/Counter.types.d.ts +1 -1
- package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +1 -1
- package/dist/lib/components/Drawer/Drawer.types.d.ts +1 -1
- package/dist/lib/components/Filter/Filter.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
- package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +1 -0
- package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +1 -1
- package/dist/lib/components/Input/Input.types.d.ts +1 -1
- package/dist/lib/components/LineChart/LineChart.types.d.ts +1 -1
- package/dist/lib/components/Loading/Loading.types.d.ts +1 -1
- package/dist/lib/components/Modal/Modal.types.d.ts +1 -1
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +1 -1
- package/dist/lib/components/Radio/Radio.types.d.ts +1 -1
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +1 -1
- package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +1 -1
- package/dist/lib/components/Range/Range.types.d.ts +1 -1
- package/dist/lib/components/Select/Select.types.d.ts +1 -1
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -2
- package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
- package/dist/lib/components/Slider/Slider.types.d.ts +1 -1
- package/dist/lib/components/Spinner/Spinner.types.d.ts +2 -2
- package/dist/lib/components/Stepper/Stepper.types.d.ts +1 -1
- package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +1 -1
- package/dist/lib/components/Switch/Switch.types.d.ts +1 -1
- package/dist/lib/components/Table/Table.types.d.ts +1 -1
- package/dist/lib/components/Tabs/Tabs.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +2 -2
- package/dist/lib/components/TagSelect/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TextArea/TextArea.types.d.ts +1 -1
- package/dist/lib/components/Toast/Toast.types.d.ts +1 -1
- package/dist/lib/components/Typography/Typography.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +27 -3
- package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +1 -0
- package/dist/lib/contexts/theme.context.d.ts +1 -1
- package/dist/lib/contexts/theme.hook.d.ts +1 -1
- package/dist/package.json +34 -33
- package/dist/{phone-number.provider-CJJOFYk-.js → phone-number.provider-BxQCTxp8.js} +457 -457
- package/dist/{prop-types-CaJpPVsa.js → prop-types-CfEYxTbR.js} +52 -52
- package/dist/styles.css +1 -1
- package/dist/{table.provider-9uUt5a-s.js → table.provider-2sAkE7z_.js} +395 -368
- package/dist/{utils-B6A9pnrH.js → utils-B-BTGYA5.js} +193 -193
- package/dist/{x-CESTrenk.js → x-BI9jmc7e.js} +1 -1
- package/package.json +34 -33
- package/dist/AlertDialogTrigger-HhbFOOUE.js +0 -124
- package/dist/Checkbox-B1rTwzR3.js +0 -240
- package/dist/FlagSelectorList-BARhzfj2.js +0 -848
- package/dist/Switch-1RGhhTtg.js +0 -178
- package/dist/Toast-CS-igZor.js +0 -467
- package/dist/dist-7edduNXi.js +0 -398
- package/dist/dist-BkYHh2kH.js +0 -408
- package/dist/dist-C6Cif8-U.js +0 -28
- package/dist/dist-CeuUxVmT.js +0 -13
- package/dist/dist-CfYOvauX.js +0 -125
- package/dist/dist-CktbIsHq.js +0 -264
- package/dist/dist-DGqWMRtc.js +0 -183
- package/dist/dist-DdFwUrO22.js +0 -11
- package/dist/dist-DnGj9MTf.js +0 -1692
- package/dist/dist-eAwtFCCA.js +0 -87
- /package/dist/{dist-AihTpWdF2.js → dist-AihTpWdF.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as R } from "../../../../rolldown-runtime-Ck3dxwZt.js";
|
|
2
2
|
import { t as i } from "../../../../utils-Cx-WzRZF.js";
|
|
3
3
|
import { Typography as l } from "../../../Typography/Typography.js";
|
|
4
|
-
import { t as _ } from "../../../../debounce-
|
|
4
|
+
import { t as _ } from "../../../../debounce-C5Ycjilj.js";
|
|
5
5
|
import { Tooltip as g } from "../../../Tooltip/Tooltip.js";
|
|
6
6
|
import { useCallback as v, useEffect as a, useRef as z, useState as E } from "react";
|
|
7
7
|
import { jsx as n } from "react/jsx-runtime";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as n } from "../../../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { useTableContext as
|
|
3
|
-
import { isPaginationBarVisible as
|
|
4
|
-
import { jsx as
|
|
5
|
-
var
|
|
6
|
-
const {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
className: n("shadow rounded-t-lg overflow-hidden", { "rounded-lg": !e || !
|
|
2
|
+
import { useTableContext as d } from "../../contexts/table.hook.js";
|
|
3
|
+
import { isPaginationBarVisible as m } from "../../utils/pagination.js";
|
|
4
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
+
var u = ({ children: o, classNameWrapperTable: r, isLoading: t, showPagination: e }) => {
|
|
6
|
+
const { tableLoading: a, totalItems: i = -1 / 0 } = d();
|
|
7
|
+
return /* @__PURE__ */ s("div", {
|
|
8
|
+
className: n("kvt-wrapper", "shadow rounded-t-lg overflow-hidden", { "rounded-lg": !e || !m(i) || a || t }, r),
|
|
9
9
|
children: o
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
u as WrapperBody
|
|
14
14
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as o } from "../Checkbox-
|
|
2
|
-
import { t as m } from "../DropdownButton-
|
|
3
|
-
import { t as p } from "../Breadcrumb-
|
|
4
|
-
import { t as a } from "../Input-
|
|
5
|
-
import { t as n } from "../Counter-
|
|
1
|
+
import { t as o } from "../Checkbox-DzAx7n67.js";
|
|
2
|
+
import { t as m } from "../DropdownButton-DnlwdPmb.js";
|
|
3
|
+
import { t as p } from "../Breadcrumb-Cp3abB2w.js";
|
|
4
|
+
import { t as a } from "../Input-CW0VwW2T.js";
|
|
5
|
+
import { t as n } from "../Counter-CY0xGnVM.js";
|
|
6
6
|
import { Alert as l } from "./Alert/Alert.js";
|
|
7
7
|
import { Button as g } from "./Button/Button.js";
|
|
8
8
|
import { AlertDialog as c } from "./AlertDialog/AlertDialog.js";
|
|
@@ -27,8 +27,8 @@ import { TimeFilterDropdown as Z } from "./Filter/components/TimeFilterDropdown/
|
|
|
27
27
|
import { Filter as $ } from "./Filter/Filter.js";
|
|
28
28
|
import { t as or } from "../ImageUpload-DZTm4SBB.js";
|
|
29
29
|
import { LineChart as mr } from "./LineChart/LineChart.js";
|
|
30
|
-
import { t as pr } from "../Modal-
|
|
31
|
-
import { t as ar } from "../components-
|
|
30
|
+
import { t as pr } from "../Modal-Bfzggwlr.js";
|
|
31
|
+
import { t as ar } from "../components-BIHlj4yH.js";
|
|
32
32
|
import { PhoneNumberInput as nr } from "./PhoneNumberInput/PhoneNumberInput.js";
|
|
33
33
|
import { PieChart as lr } from "./PieChart/PieChart.js";
|
|
34
34
|
import { ProgressBar as gr } from "./ProgressBar/ProgressBar.js";
|
|
@@ -45,10 +45,10 @@ import { NavigationSeparator as Pr } from "./Sidebar/components/NavigationSepara
|
|
|
45
45
|
import { Navigation as Ar } from "./Sidebar/components/Navigation/Navigation.js";
|
|
46
46
|
import { Sidebar as Mr } from "./Sidebar/Sidebar.js";
|
|
47
47
|
import { Slider as yr } from "./Slider/Slider.js";
|
|
48
|
-
import { t as Ur } from "../Spinner-
|
|
48
|
+
import { t as Ur } from "../Spinner-Lw9mZYhg.js";
|
|
49
49
|
import { horizontalConnectorWrapperVariants as jr, stepConnectorVariants as qr, stepContentVariants as Hr, stepDescriptionVariants as Jr, stepIndicatorVariants as Kr, stepItemVariants as Qr, stepLabelVariants as Xr, stepListVariants as Yr, stepVariants as Zr, stepperVariants as _r } from "./Stepper/Stepper.variants.js";
|
|
50
50
|
import { Stepper as ro } from "./Stepper/Stepper.js";
|
|
51
|
-
import { t as to } from "../Switch-
|
|
51
|
+
import { t as to } from "../Switch-WBRr8uOJ.js";
|
|
52
52
|
import { Table as io } from "./Table/Table.js";
|
|
53
53
|
import { Content as eo } from "./Tabs/components/Content.js";
|
|
54
54
|
import { List as fo } from "./Tabs/components/List.js";
|
|
@@ -57,7 +57,7 @@ import { Tabs as go } from "./Tabs/Tabs.js";
|
|
|
57
57
|
import { Tag as co } from "./Tag/Tag.js";
|
|
58
58
|
import { TagSelect as Do } from "./TagSelect/TagSelect.js";
|
|
59
59
|
import { TextArea as Vo } from "./TextArea/TextArea.js";
|
|
60
|
-
import { t as wo } from "../Toast-
|
|
60
|
+
import { t as wo } from "../Toast-ByH-l4XK.js";
|
|
61
61
|
import { Tooltip as So } from "./Tooltip/Tooltip.js";
|
|
62
62
|
import { VirtualizedTableEvent as ho, sendCollapseRowEvent as Bo, sendExpandRowEvent as Lo, sendResetFiltersEvent as xo, sendToggleRowEvent as Eo } from "./VirtualizedTable/events/index.js";
|
|
63
63
|
import { TruncateText as Io } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as b } from "./rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
-
import { n as R, o as $, t as A } from "./isObject-
|
|
2
|
+
import { n as R, o as $, t as A } from "./isObject-BeFFiVJK.js";
|
|
3
3
|
var F = /* @__PURE__ */ b(((T, s) => {
|
|
4
4
|
var u = $(), i = function() {
|
|
5
5
|
return u.Date.now();
|
|
@@ -36,23 +36,23 @@ var F = /* @__PURE__ */ b(((T, s) => {
|
|
|
36
36
|
})), X = /* @__PURE__ */ b(((T, s) => {
|
|
37
37
|
var u = A(), i = F(), m = J(), t = "Expected a function", h = Math.max, y = Math.min;
|
|
38
38
|
function E(g, a, r) {
|
|
39
|
-
var o, f, _,
|
|
39
|
+
var o, f, _, d, n, v, x = 0, O = !1, l = !1, q = !0;
|
|
40
40
|
if (typeof g != "function") throw new TypeError(t);
|
|
41
41
|
a = m(a) || 0, u(r) && (O = !!r.leading, l = "maxWait" in r, _ = l ? h(m(r.maxWait) || 0, a) : _, q = "trailing" in r ? !!r.trailing : q);
|
|
42
42
|
function N(e) {
|
|
43
43
|
var c = o, p = f;
|
|
44
|
-
return o = f = void 0, x = e,
|
|
44
|
+
return o = f = void 0, x = e, d = g.apply(p, c), d;
|
|
45
45
|
}
|
|
46
46
|
function C(e) {
|
|
47
|
-
return x = e, n = setTimeout(I, a), O ? N(e) :
|
|
47
|
+
return x = e, n = setTimeout(I, a), O ? N(e) : d;
|
|
48
48
|
}
|
|
49
49
|
function L(e) {
|
|
50
|
-
var c = e -
|
|
50
|
+
var c = e - v, p = e - x, M = a - c;
|
|
51
51
|
return l ? y(M, _ - p) : M;
|
|
52
52
|
}
|
|
53
53
|
function k(e) {
|
|
54
|
-
var c = e -
|
|
55
|
-
return
|
|
54
|
+
var c = e - v, p = e - x;
|
|
55
|
+
return v === void 0 || c >= a || c < 0 || l && p >= _;
|
|
56
56
|
}
|
|
57
57
|
function I() {
|
|
58
58
|
var e = i();
|
|
@@ -60,22 +60,22 @@ var F = /* @__PURE__ */ b(((T, s) => {
|
|
|
60
60
|
n = setTimeout(I, L(e));
|
|
61
61
|
}
|
|
62
62
|
function W(e) {
|
|
63
|
-
return n = void 0, q && o ? N(e) : (o = f = void 0,
|
|
63
|
+
return n = void 0, q && o ? N(e) : (o = f = void 0, d);
|
|
64
64
|
}
|
|
65
65
|
function j() {
|
|
66
|
-
n !== void 0 && clearTimeout(n), x = 0, o =
|
|
66
|
+
n !== void 0 && clearTimeout(n), x = 0, o = v = f = n = void 0;
|
|
67
67
|
}
|
|
68
68
|
function B() {
|
|
69
|
-
return n === void 0 ?
|
|
69
|
+
return n === void 0 ? d : W(i());
|
|
70
70
|
}
|
|
71
71
|
function S() {
|
|
72
72
|
var e = i(), c = k(e);
|
|
73
|
-
if (o = arguments, f = this,
|
|
74
|
-
if (n === void 0) return C(
|
|
73
|
+
if (o = arguments, f = this, v = e, c) {
|
|
74
|
+
if (n === void 0) return C(v);
|
|
75
75
|
if (l)
|
|
76
|
-
return clearTimeout(n), n = setTimeout(I, a), N(
|
|
76
|
+
return clearTimeout(n), n = setTimeout(I, a), N(v);
|
|
77
77
|
}
|
|
78
|
-
return n === void 0 && (n = setTimeout(I, a)),
|
|
78
|
+
return n === void 0 && (n = setTimeout(I, a)), d;
|
|
79
79
|
}
|
|
80
80
|
return S.cancel = j, S.flush = B, S;
|
|
81
81
|
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { a as _, n as D } from "./dist-DqKFpce5.js";
|
|
2
|
+
import { t as M } from "./dist-CVy-ulDZ.js";
|
|
3
|
+
import { i as I, r as C, t as T } from "./dist-D4FePjTS.js";
|
|
4
|
+
import { t as k } from "./dist-BuFiu480.js";
|
|
5
|
+
import { r as y, t as N } from "./dist-j7FOUrFU.js";
|
|
6
|
+
import { n as $, r as G, t as L } from "./es2015-BWf6xQHm.js";
|
|
7
|
+
import { t as A } from "./dist-DISvWx7U.js";
|
|
8
|
+
import { t as j } from "./Combination-cjXRJS03.js";
|
|
9
|
+
import { a as b, i as H, r as K, t as U } from "./dist-C2aTw0m62.js";
|
|
10
|
+
import * as i from "react";
|
|
11
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
12
|
+
var V = Object.defineProperty, l = (p, e) => V(p, "name", {
|
|
13
|
+
value: e,
|
|
14
|
+
configurable: !0
|
|
15
|
+
}), R = "Popover", [F, de] = I(R, [b]), O = b(), [Z, v] = F(R), q = /* @__PURE__ */ l((p) => {
|
|
16
|
+
const { __scopePopover: e, children: c, open: r, defaultOpen: n, onOpenChange: t, modal: o = !1 } = p, a = O(e), u = i.useRef(null), [P, d] = i.useState(!1), [m, f] = T({
|
|
17
|
+
prop: r,
|
|
18
|
+
defaultProp: n ?? !1,
|
|
19
|
+
onChange: t,
|
|
20
|
+
caller: R
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ s(H, {
|
|
23
|
+
...a,
|
|
24
|
+
children: /* @__PURE__ */ s(Z, {
|
|
25
|
+
scope: e,
|
|
26
|
+
contentId: k(),
|
|
27
|
+
triggerRef: u,
|
|
28
|
+
open: m,
|
|
29
|
+
onOpenChange: f,
|
|
30
|
+
onOpenToggle: i.useCallback(() => f((g) => !g), [f]),
|
|
31
|
+
hasCustomAnchor: P,
|
|
32
|
+
onCustomAnchorAdd: i.useCallback(() => d(!0), []),
|
|
33
|
+
onCustomAnchorRemove: i.useCallback(() => d(!1), []),
|
|
34
|
+
modal: o,
|
|
35
|
+
children: c
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}, "Popover"), z = "PopoverTrigger", B = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
39
|
+
const { __scopePopover: r, ...n } = e, t = v(z, r), o = O(r), a = _(c, t.triggerRef), u = /* @__PURE__ */ s(M.button, {
|
|
40
|
+
type: "button",
|
|
41
|
+
"aria-haspopup": "dialog",
|
|
42
|
+
"aria-expanded": t.open,
|
|
43
|
+
"aria-controls": t.open ? t.contentId : void 0,
|
|
44
|
+
"data-state": x(t.open),
|
|
45
|
+
...n,
|
|
46
|
+
ref: a,
|
|
47
|
+
onClick: C(e.onClick, t.onOpenToggle)
|
|
48
|
+
});
|
|
49
|
+
return t.hasCustomAnchor ? u : /* @__PURE__ */ s(U, {
|
|
50
|
+
asChild: !0,
|
|
51
|
+
...o,
|
|
52
|
+
children: u
|
|
53
|
+
});
|
|
54
|
+
}, "PopoverTrigger")), E = "PopoverPortal", [J, Q] = F(E, { forceMount: void 0 }), W = /* @__PURE__ */ l((p) => {
|
|
55
|
+
const { __scopePopover: e, forceMount: c, children: r, container: n } = p, t = v(E, e);
|
|
56
|
+
return /* @__PURE__ */ s(J, {
|
|
57
|
+
scope: e,
|
|
58
|
+
forceMount: c,
|
|
59
|
+
children: /* @__PURE__ */ s(A, {
|
|
60
|
+
present: c || t.open,
|
|
61
|
+
children: /* @__PURE__ */ s(N, {
|
|
62
|
+
asChild: !0,
|
|
63
|
+
container: n,
|
|
64
|
+
children: r
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
}, "PopoverPortal"), h = "PopoverContent", X = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
69
|
+
const r = Q(h, e.__scopePopover), { forceMount: n = r.forceMount, ...t } = e, o = v(h, e.__scopePopover);
|
|
70
|
+
return /* @__PURE__ */ s(A, {
|
|
71
|
+
present: n || o.open,
|
|
72
|
+
children: o.modal ? /* @__PURE__ */ s(ee, {
|
|
73
|
+
...t,
|
|
74
|
+
ref: c
|
|
75
|
+
}) : /* @__PURE__ */ s(oe, {
|
|
76
|
+
...t,
|
|
77
|
+
ref: c
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
}, "PopoverContent")), Y = D("PopoverContent.RemoveScroll"), ee = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
81
|
+
const r = v(h, e.__scopePopover), n = i.useRef(null), t = _(c, n), o = i.useRef(!1);
|
|
82
|
+
return i.useEffect(() => {
|
|
83
|
+
const a = n.current;
|
|
84
|
+
if (a) return L(a);
|
|
85
|
+
}, []), /* @__PURE__ */ s(j, {
|
|
86
|
+
as: Y,
|
|
87
|
+
allowPinchZoom: !0,
|
|
88
|
+
children: /* @__PURE__ */ s(w, {
|
|
89
|
+
...e,
|
|
90
|
+
ref: t,
|
|
91
|
+
trapFocus: r.open,
|
|
92
|
+
disableOutsidePointerEvents: !0,
|
|
93
|
+
onCloseAutoFocus: C(e.onCloseAutoFocus, (a) => {
|
|
94
|
+
a.preventDefault(), o.current || r.triggerRef.current?.focus();
|
|
95
|
+
}),
|
|
96
|
+
onPointerDownOutside: C(e.onPointerDownOutside, (a) => {
|
|
97
|
+
const u = a.detail.originalEvent, P = u.button === 0 && u.ctrlKey === !0, d = u.button === 2 || P;
|
|
98
|
+
o.current = d;
|
|
99
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
100
|
+
onFocusOutside: C(e.onFocusOutside, (a) => a.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
}, "PopoverContentModal")), oe = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
104
|
+
const r = v(h, e.__scopePopover), n = i.useRef(!1), t = i.useRef(!1);
|
|
105
|
+
return /* @__PURE__ */ s(w, {
|
|
106
|
+
...e,
|
|
107
|
+
ref: c,
|
|
108
|
+
trapFocus: !1,
|
|
109
|
+
disableOutsidePointerEvents: !1,
|
|
110
|
+
onCloseAutoFocus: (o) => {
|
|
111
|
+
e.onCloseAutoFocus?.(o), o.defaultPrevented || (n.current || r.triggerRef.current?.focus(), o.preventDefault()), n.current = !1, t.current = !1;
|
|
112
|
+
},
|
|
113
|
+
onInteractOutside: (o) => {
|
|
114
|
+
e.onInteractOutside?.(o), o.defaultPrevented || (n.current = !0, o.detail.originalEvent.type === "pointerdown" && (t.current = !0));
|
|
115
|
+
const a = o.target;
|
|
116
|
+
r.triggerRef.current?.contains(a) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && t.current && o.preventDefault();
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}, "PopoverContentNonModal")), w = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ l(function(e, c) {
|
|
120
|
+
const { __scopePopover: r, trapFocus: n, onOpenAutoFocus: t, onCloseAutoFocus: o, disableOutsidePointerEvents: a, onEscapeKeyDown: u, onPointerDownOutside: P, onFocusOutside: d, onInteractOutside: m, ...f } = e, g = v(h, r), S = O(r);
|
|
121
|
+
return $(), /* @__PURE__ */ s(G, {
|
|
122
|
+
asChild: !0,
|
|
123
|
+
loop: !0,
|
|
124
|
+
trapped: n,
|
|
125
|
+
onMountAutoFocus: t,
|
|
126
|
+
onUnmountAutoFocus: o,
|
|
127
|
+
children: /* @__PURE__ */ s(y, {
|
|
128
|
+
asChild: !0,
|
|
129
|
+
disableOutsidePointerEvents: a,
|
|
130
|
+
onInteractOutside: m,
|
|
131
|
+
onEscapeKeyDown: u,
|
|
132
|
+
onPointerDownOutside: P,
|
|
133
|
+
onFocusOutside: d,
|
|
134
|
+
onDismiss: () => g.onOpenChange(!1),
|
|
135
|
+
deferPointerDownOutside: !0,
|
|
136
|
+
children: /* @__PURE__ */ s(K, {
|
|
137
|
+
"data-state": x(g.open),
|
|
138
|
+
role: "dialog",
|
|
139
|
+
id: g.contentId,
|
|
140
|
+
...S,
|
|
141
|
+
...f,
|
|
142
|
+
ref: c,
|
|
143
|
+
style: {
|
|
144
|
+
...f.style,
|
|
145
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
146
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
147
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
148
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
149
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
150
|
+
}
|
|
151
|
+
})
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
}, "PopoverContentImpl"));
|
|
155
|
+
function x(p) {
|
|
156
|
+
return p ? "open" : "closed";
|
|
157
|
+
}
|
|
158
|
+
l(x, "getState");
|
|
159
|
+
var fe = q, ve = B, Pe = W, ge = X;
|
|
160
|
+
export {
|
|
161
|
+
ve as i,
|
|
162
|
+
Pe as n,
|
|
163
|
+
fe as r,
|
|
164
|
+
ge as t
|
|
165
|
+
};
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { a as R, n as S } from "./dist-DqKFpce5.js";
|
|
2
|
+
import { t as D } from "./dist-CVy-ulDZ.js";
|
|
3
|
+
import { i as N, n as h, r as d, t as L } from "./dist-D4FePjTS.js";
|
|
4
|
+
import { t as m } from "./dist-BuFiu480.js";
|
|
5
|
+
import { a as k, r as G, t as $ } from "./dist-j7FOUrFU.js";
|
|
6
|
+
import { n as j, r as H, t as K } from "./es2015-BWf6xQHm.js";
|
|
7
|
+
import { t as P } from "./dist-DISvWx7U.js";
|
|
8
|
+
import { t as U } from "./Combination-cjXRJS03.js";
|
|
9
|
+
import * as i from "react";
|
|
10
|
+
import { Fragment as V, jsx as s } from "react/jsx-runtime";
|
|
11
|
+
var Y = Object.defineProperty, u = (l, o) => Y(l, "name", {
|
|
12
|
+
value: o,
|
|
13
|
+
configurable: !0
|
|
14
|
+
}), O = "Dialog", [E, fe] = N(O), [Z, g] = E(O), ge = /* @__PURE__ */ u((l) => {
|
|
15
|
+
const { __scopeDialog: o, children: a, open: n, defaultOpen: r, onOpenChange: t, modal: e = !0 } = l, c = i.useRef(null), f = i.useRef(null), [x, C] = L({
|
|
16
|
+
prop: n,
|
|
17
|
+
defaultProp: r ?? !1,
|
|
18
|
+
onChange: t,
|
|
19
|
+
caller: O
|
|
20
|
+
}), [T, A] = i.useState(0), [b, F] = i.useState(0);
|
|
21
|
+
return /* @__PURE__ */ s(Z, {
|
|
22
|
+
scope: o,
|
|
23
|
+
triggerRef: c,
|
|
24
|
+
contentRef: f,
|
|
25
|
+
contentId: m(),
|
|
26
|
+
titleId: m(),
|
|
27
|
+
descriptionId: m(),
|
|
28
|
+
titlePresent: T > 0,
|
|
29
|
+
descriptionPresent: b > 0,
|
|
30
|
+
setTitleCount: A,
|
|
31
|
+
setDescriptionCount: F,
|
|
32
|
+
open: x,
|
|
33
|
+
onOpenChange: C,
|
|
34
|
+
onOpenToggle: i.useCallback(() => C((w) => !w), [C]),
|
|
35
|
+
modal: e,
|
|
36
|
+
children: a
|
|
37
|
+
});
|
|
38
|
+
}, "Dialog"), q = "DialogTrigger", de = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
39
|
+
const { __scopeDialog: n, ...r } = o, t = g(q, n), e = R(a, t.triggerRef);
|
|
40
|
+
return /* @__PURE__ */ s(D.button, {
|
|
41
|
+
type: "button",
|
|
42
|
+
"aria-haspopup": "dialog",
|
|
43
|
+
"aria-expanded": t.open,
|
|
44
|
+
"aria-controls": t.open ? t.contentId : void 0,
|
|
45
|
+
"data-state": v(t.open),
|
|
46
|
+
...r,
|
|
47
|
+
ref: e,
|
|
48
|
+
onClick: d(o.onClick, t.onOpenToggle)
|
|
49
|
+
});
|
|
50
|
+
}, "DialogTrigger")), I = "DialogPortal", [z, y] = E(I, { forceMount: void 0 }), pe = /* @__PURE__ */ u((l) => {
|
|
51
|
+
const { __scopeDialog: o, forceMount: a, children: n, container: r } = l, t = g(I, o);
|
|
52
|
+
return /* @__PURE__ */ s(z, {
|
|
53
|
+
scope: o,
|
|
54
|
+
forceMount: a,
|
|
55
|
+
children: i.Children.map(n, (e) => /* @__PURE__ */ s(P, {
|
|
56
|
+
present: a || t.open,
|
|
57
|
+
children: /* @__PURE__ */ s($, {
|
|
58
|
+
asChild: !0,
|
|
59
|
+
container: r,
|
|
60
|
+
children: e
|
|
61
|
+
})
|
|
62
|
+
}))
|
|
63
|
+
});
|
|
64
|
+
}, "DialogPortal"), _ = "DialogOverlay", De = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
65
|
+
const n = y(_, o.__scopeDialog), { forceMount: r = n.forceMount, ...t } = o, e = g(_, o.__scopeDialog);
|
|
66
|
+
return e.modal ? /* @__PURE__ */ s(P, {
|
|
67
|
+
present: r || e.open,
|
|
68
|
+
children: /* @__PURE__ */ s(J, {
|
|
69
|
+
...t,
|
|
70
|
+
ref: a
|
|
71
|
+
})
|
|
72
|
+
}) : null;
|
|
73
|
+
}, "DialogOverlay")), B = S("DialogOverlay.RemoveScroll"), J = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
74
|
+
const { __scopeDialog: n, ...r } = o, t = g(_, n), e = R(a, k());
|
|
75
|
+
return /* @__PURE__ */ s(U, {
|
|
76
|
+
as: B,
|
|
77
|
+
allowPinchZoom: !0,
|
|
78
|
+
shards: [t.contentRef],
|
|
79
|
+
children: /* @__PURE__ */ s(D.div, {
|
|
80
|
+
"data-state": v(t.open),
|
|
81
|
+
...r,
|
|
82
|
+
ref: e,
|
|
83
|
+
style: {
|
|
84
|
+
pointerEvents: "auto",
|
|
85
|
+
...r.style
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
}, "DialogOverlayImpl")), p = "DialogContent", ve = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
90
|
+
const n = y(p, o.__scopeDialog), { forceMount: r = n.forceMount, ...t } = o, e = g(p, o.__scopeDialog);
|
|
91
|
+
return /* @__PURE__ */ s(P, {
|
|
92
|
+
present: r || e.open,
|
|
93
|
+
children: e.modal ? /* @__PURE__ */ s(Q, {
|
|
94
|
+
...t,
|
|
95
|
+
ref: a
|
|
96
|
+
}) : /* @__PURE__ */ s(W, {
|
|
97
|
+
...t,
|
|
98
|
+
ref: a
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}, "DialogContent")), Q = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
102
|
+
const n = g(p, o.__scopeDialog), r = i.useRef(null), t = R(a, n.contentRef, r);
|
|
103
|
+
return i.useEffect(() => {
|
|
104
|
+
const e = r.current;
|
|
105
|
+
if (e) return K(e);
|
|
106
|
+
}, []), /* @__PURE__ */ s(M, {
|
|
107
|
+
...o,
|
|
108
|
+
ref: t,
|
|
109
|
+
trapFocus: n.open,
|
|
110
|
+
disableOutsidePointerEvents: n.open,
|
|
111
|
+
onCloseAutoFocus: d(o.onCloseAutoFocus, (e) => {
|
|
112
|
+
e.preventDefault(), n.triggerRef.current?.focus();
|
|
113
|
+
}),
|
|
114
|
+
onPointerDownOutside: d(o.onPointerDownOutside, (e) => {
|
|
115
|
+
const c = e.detail.originalEvent, f = c.button === 0 && c.ctrlKey === !0;
|
|
116
|
+
(c.button === 2 || f) && e.preventDefault();
|
|
117
|
+
}),
|
|
118
|
+
onFocusOutside: d(o.onFocusOutside, (e) => e.preventDefault())
|
|
119
|
+
});
|
|
120
|
+
}, "DialogContentModal")), W = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
121
|
+
const n = g(p, o.__scopeDialog), r = i.useRef(!1), t = i.useRef(!1);
|
|
122
|
+
return /* @__PURE__ */ s(M, {
|
|
123
|
+
...o,
|
|
124
|
+
ref: a,
|
|
125
|
+
trapFocus: !1,
|
|
126
|
+
disableOutsidePointerEvents: !1,
|
|
127
|
+
onCloseAutoFocus: (e) => {
|
|
128
|
+
o.onCloseAutoFocus?.(e), e.defaultPrevented || (r.current || n.triggerRef.current?.focus(), e.preventDefault()), r.current = !1, t.current = !1;
|
|
129
|
+
},
|
|
130
|
+
onInteractOutside: (e) => {
|
|
131
|
+
o.onInteractOutside?.(e), e.defaultPrevented || (r.current = !0, e.detail.originalEvent.type === "pointerdown" && (t.current = !0));
|
|
132
|
+
const c = e.target;
|
|
133
|
+
n.triggerRef.current?.contains(c) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && t.current && e.preventDefault();
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}, "DialogContentNonModal")), M = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
137
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: t, onCloseAutoFocus: e, ...c } = o, f = g(p, n);
|
|
138
|
+
return j(), /* @__PURE__ */ s(V, { children: /* @__PURE__ */ s(H, {
|
|
139
|
+
asChild: !0,
|
|
140
|
+
loop: !0,
|
|
141
|
+
trapped: r,
|
|
142
|
+
onMountAutoFocus: t,
|
|
143
|
+
onUnmountAutoFocus: e,
|
|
144
|
+
children: /* @__PURE__ */ s(G, {
|
|
145
|
+
role: "dialog",
|
|
146
|
+
id: f.contentId,
|
|
147
|
+
"aria-describedby": f.descriptionPresent ? f.descriptionId : void 0,
|
|
148
|
+
"aria-labelledby": f.titlePresent ? f.titleId : void 0,
|
|
149
|
+
"data-state": v(f.open),
|
|
150
|
+
...c,
|
|
151
|
+
ref: a,
|
|
152
|
+
deferPointerDownOutside: !0,
|
|
153
|
+
onDismiss: () => f.onOpenChange(!1)
|
|
154
|
+
})
|
|
155
|
+
}) });
|
|
156
|
+
}, "DialogContentImpl")), X = "DialogTitle", Ce = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
157
|
+
const { __scopeDialog: n, ...r } = o, t = g(X, n), { setTitleCount: e } = t;
|
|
158
|
+
return h(() => (e((c) => c + 1), () => e((c) => c - 1)), [e]), /* @__PURE__ */ s(D.h2, {
|
|
159
|
+
id: t.titleId,
|
|
160
|
+
...r,
|
|
161
|
+
ref: a
|
|
162
|
+
});
|
|
163
|
+
}, "DialogTitle")), ee = "DialogDescription", me = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
164
|
+
const { __scopeDialog: n, ...r } = o, t = g(ee, n), { setDescriptionCount: e } = t;
|
|
165
|
+
return h(() => (e((c) => c + 1), () => e((c) => c - 1)), [e]), /* @__PURE__ */ s(D.p, {
|
|
166
|
+
id: t.descriptionId,
|
|
167
|
+
...r,
|
|
168
|
+
ref: a
|
|
169
|
+
});
|
|
170
|
+
}, "DialogDescription")), oe = "DialogClose", _e = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
171
|
+
const { __scopeDialog: n, ...r } = o, t = g(oe, n);
|
|
172
|
+
return /* @__PURE__ */ s(D.button, {
|
|
173
|
+
type: "button",
|
|
174
|
+
...r,
|
|
175
|
+
ref: a,
|
|
176
|
+
onClick: d(o.onClick, () => t.onOpenChange(!1))
|
|
177
|
+
});
|
|
178
|
+
}, "DialogClose"));
|
|
179
|
+
function v(l) {
|
|
180
|
+
return l ? "open" : "closed";
|
|
181
|
+
}
|
|
182
|
+
u(v, "getState");
|
|
183
|
+
export {
|
|
184
|
+
De as a,
|
|
185
|
+
de as c,
|
|
186
|
+
me as i,
|
|
187
|
+
fe as l,
|
|
188
|
+
_e as n,
|
|
189
|
+
pe as o,
|
|
190
|
+
ve as r,
|
|
191
|
+
Ce as s,
|
|
192
|
+
ge as t
|
|
193
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { n as e } from "./dist-D4FePjTS.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
var s = r[" useId ".trim().toString()] || (() => {
|
|
4
|
+
}), f = 0;
|
|
5
|
+
function c(t) {
|
|
6
|
+
const [o, a] = r.useState(s());
|
|
7
|
+
return e(() => {
|
|
8
|
+
t || a((u) => u ?? String(f++));
|
|
9
|
+
}, [t]), t || (o ? `radix-${o}` : "");
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as t
|
|
13
|
+
};
|