@reportportal/ui-kit 0.0.1-alpha.17 → 0.0.1-alpha.170
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/README.md +28 -2
- package/dist/actionMenu-77a63b96.js +155 -0
- package/dist/actionMenu.js +30 -0
- package/dist/adaptiveTagList.js +189 -0
- package/dist/attachedFile.js +9 -0
- package/dist/autocompletes.js +780 -0
- package/dist/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +1 -1
- package/dist/breadcrumbs-9b38b89c.js +184 -0
- package/dist/breadcrumbs.js +13 -0
- package/dist/bubblesLoader-f3ffa240.js +28 -0
- package/dist/bubblesLoader.js +1 -1
- package/dist/bulkPanel.js +222 -0
- package/dist/button-97d9e587.js +66 -0
- package/dist/button.js +1 -1
- package/dist/calendarArrow-44c7e60e.js +5 -0
- package/dist/checkbox-493fdc63.js +73 -0
- package/dist/checkbox.js +1 -1
- package/dist/chevronDownDropdown-0260bb66.js +5 -0
- package/dist/chip.js +72 -0
- package/dist/clear-53660571.js +5 -0
- package/dist/close-4d480ef7.js +5 -0
- package/dist/common/constants/floatingUi.d.ts +8 -0
- package/dist/common/constants/sortable.d.ts +1 -0
- package/dist/common/hooks/index.d.ts +3 -0
- package/dist/common/hooks/useOnClickOutside.d.ts +5 -1
- package/dist/common/hooks/useSortable.d.ts +3 -0
- package/dist/common/hooks/useTreeDropValidation.d.ts +5 -0
- package/dist/common/hooks/useTreeSortable.d.ts +3 -0
- package/dist/common/hooks.js +67 -0
- package/dist/common/types/commonTypes.d.ts +4 -0
- package/dist/common/types/index.d.ts +2 -0
- package/dist/common/types/sortableTypes.d.ts +168 -0
- package/dist/common/utils/floatingUi.d.ts +3 -0
- package/dist/common/utils/getFileExtension.d.ts +1 -0
- package/dist/common/utils/htmlAttributes.d.ts +20 -0
- package/dist/common/utils/index.d.ts +4 -0
- package/dist/common/utils/isString.d.ts +1 -0
- package/dist/common/utils/testUtils.d.ts +3 -0
- package/dist/common.js +21 -0
- package/dist/components/actionMenu/actionMenu.d.ts +33 -0
- package/dist/components/actionMenu/constants.d.ts +3 -0
- package/dist/components/actionMenu/index.d.ts +18 -0
- package/dist/components/adaptiveTagList/adaptiveTagList.d.ts +11 -0
- package/dist/components/adaptiveTagList/constants.d.ts +6 -0
- package/dist/components/adaptiveTagList/index.d.ts +2 -0
- package/dist/components/attachedFile/attachedFile.d.ts +14 -0
- package/dist/components/attachedFile/index.d.ts +2 -0
- package/dist/components/autocompletes/common/autocompleteMenu/autocompleteMenu.d.ts +10 -0
- package/dist/components/autocompletes/common/autocompleteMenu/index.d.ts +1 -0
- package/dist/components/autocompletes/common/autocompleteOption/autocompleteOption.d.ts +13 -0
- package/dist/components/autocompletes/common/autocompleteOption/index.d.ts +1 -0
- package/dist/components/autocompletes/common/autocompleteOptions.d.ts +19 -0
- package/dist/components/autocompletes/common/autocompletePrompt/autocompletePrompt.d.ts +7 -0
- package/dist/components/autocompletes/common/autocompletePrompt/index.d.ts +1 -0
- package/dist/components/autocompletes/common/index.d.ts +19 -0
- package/dist/components/autocompletes/constants.d.ts +2 -0
- package/dist/components/autocompletes/index.d.ts +3 -0
- package/dist/components/autocompletes/multipleAutocomplete/index.d.ts +17 -0
- package/dist/components/autocompletes/multipleAutocomplete/multipleAutocomplete.d.ts +53 -0
- package/dist/components/autocompletes/multipleAutocomplete/multipleDownshift.d.ts +25 -0
- package/dist/components/autocompletes/multipleAutocomplete/selectedItems/index.d.ts +1 -0
- package/dist/components/autocompletes/multipleAutocomplete/selectedItems/selectedItems.d.ts +41 -0
- package/dist/components/autocompletes/singleAutocomplete/index.d.ts +1 -0
- package/dist/components/autocompletes/singleAutocomplete/singleAutocomplete.d.ts +42 -0
- package/dist/components/autocompletes/types.d.ts +8 -0
- package/dist/components/autocompletes/utils.d.ts +5 -0
- package/dist/components/{icons/baseIconButton → baseIconButton}/baseIconButton.d.ts +1 -0
- package/dist/components/{icons/baseIconButton → baseIconButton}/index.d.ts +1 -0
- package/dist/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +10 -0
- package/dist/components/breadcrumbs/breadcrumb/index.d.ts +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +3 -0
- package/dist/components/breadcrumbs/breadcrumbsProvider/breadcrumbsProvider.d.ts +13 -0
- package/dist/components/breadcrumbs/breadcrumbsProvider/hooks.d.ts +3 -0
- package/dist/components/breadcrumbs/breadcrumbsProvider/index.d.ts +1 -0
- package/dist/components/breadcrumbs/hiddenBreadcrumbs/hiddenBreadcrumbs.d.ts +6 -0
- package/dist/components/breadcrumbs/hiddenBreadcrumbs/index.d.ts +2 -0
- package/dist/components/breadcrumbs/index.d.ts +5 -0
- package/dist/components/breadcrumbs/tree/index.d.ts +1 -0
- package/dist/components/breadcrumbs/tree/tree.d.ts +7 -0
- package/dist/components/breadcrumbs/types.d.ts +24 -0
- package/dist/components/bubblesLoader/bubblesLoader.d.ts +2 -0
- package/dist/components/bubblesLoader/index.d.ts +1 -0
- package/dist/components/bulkPanel/bulkPanel.d.ts +3 -0
- package/dist/components/bulkPanel/index.d.ts +2 -0
- package/dist/components/bulkPanel/types.d.ts +46 -0
- package/dist/components/button/button.d.ts +5 -4
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/checkbox/checkbox.d.ts +2 -1
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/chip/chip.d.ts +15 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/datePicker/datePicker.d.ts +17 -7
- package/dist/components/datePicker/header/datePickerHeader.d.ts +1 -0
- package/dist/components/datePicker/header/index.d.ts +1 -0
- package/dist/components/datePicker/index.d.ts +3 -1
- package/dist/components/datePicker/utils.d.ts +2 -1
- package/dist/components/dropdown/constants.d.ts +4 -0
- package/dist/components/dropdown/dropdown.d.ts +36 -5
- package/dist/components/dropdown/dropdownOption/dropdownOption.d.ts +1 -0
- package/dist/components/dropdown/dropdownOption/index.d.ts +1 -0
- package/dist/components/dropdown/index.d.ts +2 -0
- package/dist/components/dropdown/types.d.ts +11 -0
- package/dist/components/dropdown/utils.d.ts +6 -2
- package/dist/components/fieldLabel/fieldLabel.d.ts +7 -0
- package/dist/components/fieldLabel/index.d.ts +1 -0
- package/dist/components/fieldNumber/constants.d.ts +1 -0
- package/dist/components/fieldNumber/fieldNumber.d.ts +3 -3
- package/dist/components/fieldNumber/index.d.ts +1 -0
- package/dist/components/fieldText/fieldText.d.ts +12 -4
- package/dist/components/fieldText/index.d.ts +3 -1
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +5 -2
- package/dist/components/fieldTextFlex/index.d.ts +1 -0
- package/dist/components/fileDropArea/attachedFilesList/attachedFilesList.d.ts +21 -0
- package/dist/components/fileDropArea/attachedFilesList/index.d.ts +5 -0
- package/dist/components/fileDropArea/browseButton/browseButton.d.ts +9 -0
- package/dist/components/fileDropArea/browseButton/index.d.ts +4 -0
- package/dist/components/fileDropArea/constants.d.ts +2 -0
- package/dist/components/fileDropArea/dropZone/dropZone.d.ts +10 -0
- package/dist/components/fileDropArea/dropZone/index.d.ts +4 -0
- package/dist/components/fileDropArea/errorMessage/errorMessage.d.ts +5 -0
- package/dist/components/fileDropArea/errorMessage/index.d.ts +4 -0
- package/dist/components/fileDropArea/fileDropArea.d.ts +19 -0
- package/dist/components/fileDropArea/fileDropAreaProvider/fileDropAreaProvider.d.ts +17 -0
- package/dist/components/fileDropArea/fileDropAreaProvider/index.d.ts +1 -0
- package/dist/components/fileDropArea/fileDropAreaProvider/useFileDropAreaContext.d.ts +3 -0
- package/dist/components/fileDropArea/hooks/index.d.ts +1 -0
- package/dist/components/fileDropArea/hooks/useFileDropArea.d.ts +13 -0
- package/dist/components/fileDropArea/hooks/useFileProcessing.d.ts +13 -0
- package/dist/components/fileDropArea/hooks/useOverlayDropArea.d.ts +22 -0
- package/dist/components/fileDropArea/index.d.ts +6 -0
- package/dist/components/fileDropArea/types.d.ts +58 -0
- package/dist/components/fileDropArea/utils/getValidationErrorMessage.d.ts +3 -0
- package/dist/components/fileDropArea/utils/index.d.ts +2 -0
- package/dist/components/fileDropArea/utils/validateFile.d.ts +3 -0
- package/dist/components/filterItem/filterItem.d.ts +18 -0
- package/dist/components/filterItem/index.d.ts +17 -0
- package/dist/components/filtersButton/filtersButton.d.ts +9 -0
- package/dist/components/filtersButton/index.d.ts +2 -0
- package/dist/components/icons/index.d.ts +63 -9
- package/dist/components/index.d.ts +32 -10
- package/dist/components/issueList/constants.d.ts +5 -0
- package/dist/components/issueList/index.d.ts +2 -0
- package/dist/components/issueList/issueList.d.ts +18 -0
- package/dist/components/maxValueDisplay/index.d.ts +4 -0
- package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +8 -0
- package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
- package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/modal/modal.d.ts +4 -4
- package/dist/components/modal/modalContent/modalContent.d.ts +3 -2
- package/dist/components/modal/modalFooter/modalFooter.d.ts +3 -1
- package/dist/components/modal/modalHeader/modalHeader.d.ts +1 -0
- package/dist/components/modal/types.d.ts +6 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/itemsCounter/itemCounter.d.ts +5 -2
- package/dist/components/pagination/pageControls/activePage/activePage.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageControls.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/bar.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/pageNavigator.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +1 -0
- package/dist/components/pagination/pagination.d.ts +6 -2
- package/dist/components/popover/index.d.ts +4 -1
- package/dist/components/popover/popover.d.ts +3 -2
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/radio.d.ts +1 -0
- package/dist/components/radio/radioGroup.d.ts +1 -0
- package/dist/components/segmentedControl/index.d.ts +17 -0
- package/dist/components/segmentedControl/segmentedControl.d.ts +4 -0
- package/dist/components/segmentedControl/types.d.ts +18 -0
- package/dist/components/selection/index.d.ts +5 -0
- package/dist/components/selection/selection.d.ts +12 -0
- package/dist/components/selection/types.d.ts +1 -0
- package/dist/components/sidePanel/index.d.ts +2 -0
- package/dist/components/sidePanel/sidePanel.d.ts +17 -0
- package/dist/components/sortable/dragLayer/dragLayer.d.ts +3 -0
- package/dist/components/sortable/dragLayer/index.d.ts +1 -0
- package/dist/components/sortable/helpers.d.ts +11 -0
- package/dist/components/sortable/index.d.ts +5 -0
- package/dist/components/sortable/sortableItem/index.d.ts +1 -0
- package/dist/components/sortable/sortableItem/sortableItem.d.ts +3 -0
- package/dist/components/sortable/sortableList/index.d.ts +1 -0
- package/dist/components/sortable/sortableList/sortableList.d.ts +5 -0
- package/dist/components/sortable/treeSortableContainer/TreeSortableContext.d.ts +11 -0
- package/dist/components/sortable/treeSortableContainer/index.d.ts +2 -0
- package/dist/components/sortable/treeSortableContainer/treeSortableContainer.d.ts +3 -0
- package/dist/components/sortable/treeSortableItem/index.d.ts +1 -0
- package/dist/components/sortable/treeSortableItem/treeSortableItem.d.ts +3 -0
- package/dist/components/spinLoader/index.d.ts +4 -0
- package/dist/components/spinLoader/spinLoader.d.ts +8 -0
- package/dist/components/systemAlert/index.d.ts +1 -0
- package/dist/components/systemAlert/systemAlert.d.ts +4 -0
- package/dist/components/systemAlert/types.d.ts +22 -0
- package/dist/components/systemMessage/index.d.ts +1 -0
- package/dist/components/systemMessage/systemMessage.d.ts +1 -0
- package/dist/components/table/constants.d.ts +6 -0
- package/dist/components/table/gradientOverlay/gradientOverlay.d.ts +19 -0
- package/dist/components/table/gradientOverlay/index.d.ts +2 -0
- package/dist/components/table/hooks/index.d.ts +8 -0
- package/dist/components/table/hooks/useCheckboxRowSync.d.ts +10 -0
- package/dist/components/table/hooks/useColumnResize.d.ts +21 -0
- package/dist/components/table/hooks/useColumnWidths.d.ts +8 -0
- package/dist/components/table/hooks/useGradientPosition.d.ts +24 -0
- package/dist/components/table/hooks/useTableColumns.d.ts +13 -0
- package/dist/components/table/hooks/useTableExpansion.d.ts +15 -0
- package/dist/components/table/hooks/useTableHover.d.ts +10 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/resizeHandle/index.d.ts +1 -0
- package/dist/components/table/resizeHandle/resizeHandle.d.ts +2 -0
- package/dist/components/table/table.d.ts +1 -0
- package/dist/components/table/types.d.ts +43 -9
- package/dist/components/table/utils.d.ts +10 -1
- package/dist/components/themeProvider/index.d.ts +1 -0
- package/dist/components/themeProvider/themeProvider.d.ts +1 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/toggle.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +10 -1
- package/dist/datePicker-412fb8e8.js +213 -0
- package/dist/datePicker.js +32 -0
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-7d024c49.js +642 -0
- package/dist/dropdown.js +13 -3
- package/dist/fieldLabel.js +18 -0
- package/dist/fieldNumber-d1b5a7a1.js +140 -0
- package/dist/fieldNumber.js +5 -2
- package/dist/fieldText-1749da7a.js +167 -0
- package/dist/fieldText.js +7 -2
- package/dist/fieldTextFlex-2f51c173.js +80 -0
- package/dist/fieldTextFlex.js +3 -1
- package/dist/fileDropArea.js +325 -0
- package/dist/filterItem.js +96 -0
- package/dist/filterOutline-819b4b0d.js +6 -0
- package/dist/filtersButton.js +25 -0
- package/dist/floatingUi-41f8c7b5.js +29 -0
- package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
- package/dist/icons.js +89 -0
- package/dist/index-1a874a8b.js +110 -0
- package/dist/index.js +188 -242
- package/dist/isEmpty-ccacb5ff.js +38 -0
- package/dist/issueList.js +125 -0
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/meatballMenu-535635a9.js +5 -0
- package/dist/minus-2857540f.js +5 -0
- package/dist/modal.js +170 -14
- package/dist/openEye-950159cb.js +6 -0
- package/dist/pagination-4ded0ec6.js +355 -0
- package/dist/pagination.js +12 -5
- package/dist/plus-199fb2a8.js +5 -0
- package/dist/popover.js +58 -73
- package/dist/prevPage-87faf576.js +6 -0
- package/dist/radio-62546efa.js +76 -0
- package/dist/radio.js +1 -1
- package/dist/resizeColumn-46b5b30f.js +7 -0
- package/dist/segmentedControl.js +62 -0
- package/dist/selection-9124d029.js +38 -0
- package/dist/selection.js +10 -0
- package/dist/sidePanel.js +88 -0
- package/dist/sortable.js +302 -0
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/style.css +15 -1
- package/dist/success-8fd8bd2c.js +7 -0
- package/dist/systemAlert.js +69 -0
- package/dist/systemMessage-924fdaa6.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-03bd209d.js +1099 -0
- package/dist/table.js +10 -3
- package/dist/toggle-304107fa.js +59 -0
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +90 -57
- package/dist/tree-e7a0ef42.js +5 -0
- package/dist/useOnClickOutside-8f7d68a1.js +25 -0
- package/dist/useTreeSortable-70a9c8f5.js +179 -0
- package/dist/useWindowResize-a7e1ac92.js +16 -0
- package/dist/warning-537ead32.js +5 -0
- package/dist/xls-995781cc.js +11 -0
- package/package.json +51 -17
- package/dist/baseIconButton-7bc53dec.js +0 -25
- package/dist/bubblesLoader-a7e709d4.js +0 -17
- package/dist/button-bb309472.js +0 -62
- package/dist/checkbox-6777be17.js +0 -73
- package/dist/dropdown-50124296.js +0 -215
- package/dist/fieldNumber-46fe79b9.js +0 -127
- package/dist/fieldText-49fe2895.js +0 -102
- package/dist/fieldTextFlex-5bddf46a.js +0 -67
- package/dist/index-2a2d261a.js +0 -145
- package/dist/pagination-39b1fa15.js +0 -346
- package/dist/radio-fd49a09c.js +0 -76
- package/dist/systemMessage-1ced6079.js +0 -30
- package/dist/table-83e050dc.js +0 -147
- package/dist/toggle-9284387b.js +0 -67
- package/dist/useOnClickOutside-c332f7d3.js +0 -16
package/dist/modal.js
CHANGED
|
@@ -1,16 +1,172 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "react
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "./
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
1
|
+
import { jsx as o, jsxs as r, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v, useRef as G, useEffect as x, useMemo as K } from "react";
|
|
3
|
+
import { Scrollbars as U } from "rc-scrollbars";
|
|
4
|
+
import { AnimatePresence as Y, motion as X } from "framer-motion";
|
|
5
|
+
import { c as w } from "./bind-06a7ff84.js";
|
|
6
|
+
import { u as q } from "./useOnClickOutside-8f7d68a1.js";
|
|
7
|
+
import "react-dnd";
|
|
8
|
+
import "react-dnd-html5-backend";
|
|
9
|
+
import { u as J } from "./useWindowResize-a7e1ac92.js";
|
|
10
|
+
import { a as Q } from "./dropdown-7d024c49.js";
|
|
11
|
+
import { K as V } from "./keyCodes-f63c0e11.js";
|
|
12
|
+
import { B as A } from "./button-97d9e587.js";
|
|
13
|
+
import { Tooltip as Z } from "./tooltip.js";
|
|
14
|
+
import { B as oo } from "./baseIconButton-251479f7.js";
|
|
15
|
+
import { S as to } from "./close-4d480ef7.js";
|
|
16
|
+
import "react-dom";
|
|
17
|
+
import "@floating-ui/react-dom";
|
|
18
|
+
import "downshift";
|
|
19
|
+
import "./clear-53660571.js";
|
|
20
|
+
import "./dropdown-0260bb66.js";
|
|
21
|
+
import "./fieldLabel.js";
|
|
22
|
+
import "./adaptiveTagList.js";
|
|
23
|
+
import "./isEmpty-ccacb5ff.js";
|
|
24
|
+
import "./checkbox-493fdc63.js";
|
|
25
|
+
import "@floating-ui/react";
|
|
26
|
+
import "./floatingUi-41f8c7b5.js";
|
|
27
|
+
const eo = {
|
|
28
|
+
"modal-content": "_modal-content_ppzcb_1"
|
|
29
|
+
}, no = w.bind(eo), T = ({ children: e }) => /* @__PURE__ */ o("div", { className: no("modal-content"), children: e }), ao = {
|
|
30
|
+
"buttons-block": "_buttons-block_1mwne_1",
|
|
31
|
+
"button-container": "_button-container_1mwne_7",
|
|
32
|
+
"modal-footer": "_modal-footer_1mwne_12",
|
|
33
|
+
"with-extra-node": "_with-extra-node_1mwne_19",
|
|
34
|
+
"size-small": "_size-small_1mwne_23"
|
|
35
|
+
}, h = w.bind(ao), lo = ({
|
|
36
|
+
footerNode: e,
|
|
37
|
+
closeHandler: n,
|
|
38
|
+
okButton: a,
|
|
39
|
+
cancelButton: p,
|
|
40
|
+
size: l
|
|
41
|
+
}) => {
|
|
42
|
+
const { tooltipNode: u, ...d } = a || {}, g = () => {
|
|
43
|
+
const m = /* @__PURE__ */ o(A, { adjustWidthOn: l === "small" ? "parent" : "min-width", ...d });
|
|
44
|
+
return u ? /* @__PURE__ */ o(Z, { content: u, placement: "top", width: 270, children: m }) : m;
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ r("div", { className: h("modal-footer", { "with-extra-node": e, [`size-${l}`]: l }), children: [
|
|
47
|
+
e && e,
|
|
48
|
+
/* @__PURE__ */ r("div", { className: h("buttons-block"), children: [
|
|
49
|
+
p && /* @__PURE__ */ o("div", { className: h("button-container"), children: /* @__PURE__ */ o(
|
|
50
|
+
A,
|
|
51
|
+
{
|
|
52
|
+
variant: "ghost",
|
|
53
|
+
adjustWidthOn: l === "small" ? "parent" : "min-width",
|
|
54
|
+
onClick: n,
|
|
55
|
+
...p
|
|
56
|
+
}
|
|
57
|
+
) }),
|
|
58
|
+
a && /* @__PURE__ */ o("div", { className: h("button-container"), children: g() })
|
|
59
|
+
] })
|
|
60
|
+
] });
|
|
61
|
+
}, so = {
|
|
62
|
+
"modal-header": "_modal-header_w4aaf_1",
|
|
63
|
+
"width-description": "_width-description_w4aaf_10",
|
|
64
|
+
"modal-header-content": "_modal-header-content_w4aaf_14",
|
|
65
|
+
"modal-title": "_modal-title_w4aaf_20",
|
|
66
|
+
"close-modal-icon": "_close-modal-icon_w4aaf_29"
|
|
67
|
+
}, f = w.bind(so), io = ({ title: e, onClose: n, withDescription: a = !1 }) => /* @__PURE__ */ r("div", { className: f("modal-header", { "width-description": a }), children: [
|
|
68
|
+
/* @__PURE__ */ o("div", { className: f("modal-header-content"), children: e && /* @__PURE__ */ o("div", { className: f("modal-title"), children: e }) }),
|
|
69
|
+
/* @__PURE__ */ o(oo, { className: f("close-modal-icon"), onClick: n, children: /* @__PURE__ */ o(to, {}) })
|
|
70
|
+
] }), co = "_modal_35896_1", ro = "_description_35896_43", mo = {
|
|
71
|
+
modal: co,
|
|
72
|
+
"overlay-default": "_overlay-default_35896_12",
|
|
73
|
+
"overlay-light-cyan": "_overlay-light-cyan_35896_16",
|
|
74
|
+
"scrolling-content": "_scrolling-content_35896_20",
|
|
75
|
+
"modal-window": "_modal-window_35896_26",
|
|
76
|
+
description: ro,
|
|
77
|
+
"scrollable-wrapper": "_scrollable-wrapper_35896_54",
|
|
78
|
+
"scrollable-content": "_scrollable-content_35896_58",
|
|
79
|
+
"size-default": "_size-default_35896_62",
|
|
80
|
+
"size-small": "_size-small_35896_74",
|
|
81
|
+
"size-large": "_size-large_35896_86"
|
|
82
|
+
}, c = w.bind(mo), _o = 0.9, po = 32 + 24, uo = 32 + 8, ho = 36 + 16, fo = 32 * 2, Fo = ({
|
|
83
|
+
title: e,
|
|
84
|
+
children: n,
|
|
85
|
+
footerNode: a,
|
|
86
|
+
okButton: p,
|
|
87
|
+
cancelButton: l,
|
|
88
|
+
className: u,
|
|
89
|
+
size: d = "default",
|
|
90
|
+
onClose: g = () => {
|
|
91
|
+
},
|
|
92
|
+
overlay: m = "default",
|
|
93
|
+
zIndex: D = 2,
|
|
94
|
+
allowCloseOutside: C = !0,
|
|
95
|
+
scrollable: k = !1,
|
|
96
|
+
withoutFooter: y = !1,
|
|
97
|
+
createFooter: N = null,
|
|
98
|
+
description: s = null
|
|
99
|
+
}) => {
|
|
100
|
+
const [I, O] = v(!1), [R, S] = v(0), [$, L] = v(!1), i = G(null), H = J(), M = H.height, z = M * _o, b = (M - R) / 2, P = () => {
|
|
101
|
+
let t = z - fo;
|
|
102
|
+
return y || (t = t - ho), s ? t = t - uo : t = t - po, t;
|
|
103
|
+
}, _ = () => {
|
|
104
|
+
O(!1);
|
|
105
|
+
}, E = (t) => {
|
|
106
|
+
const { keyCode: j } = t;
|
|
107
|
+
j === V.ESCAPE_KEY_CODE && _();
|
|
108
|
+
}, W = () => {
|
|
109
|
+
var t;
|
|
110
|
+
$ || ((t = i.current) == null || t.focus(), L(!0));
|
|
111
|
+
};
|
|
112
|
+
x(() => {
|
|
113
|
+
if (i && i.current) {
|
|
114
|
+
const { clientHeight: t } = i.current;
|
|
115
|
+
S(t);
|
|
116
|
+
}
|
|
117
|
+
}, [n, H]), x(() => (O(!0), document.addEventListener("keydown", E, !1), () => document.removeEventListener("keydown", E, !1)), []);
|
|
118
|
+
const B = K(
|
|
119
|
+
() => ({
|
|
120
|
+
ignoreSelectors: [`[${Q}]`]
|
|
121
|
+
}),
|
|
122
|
+
[]
|
|
123
|
+
);
|
|
124
|
+
return q(i, C ? _ : void 0, B), /* @__PURE__ */ o(Y, { onExitComplete: g, children: I && /* @__PURE__ */ o("div", { className: c("modal", { [`overlay-${m}`]: m }), style: { zIndex: D }, children: /* @__PURE__ */ r(
|
|
125
|
+
X.div,
|
|
126
|
+
{
|
|
127
|
+
className: c("modal-window", { [`size-${d}`]: d }, u),
|
|
128
|
+
ref: i,
|
|
129
|
+
tabIndex: 0,
|
|
130
|
+
initial: { opacity: 0, marginTop: -b },
|
|
131
|
+
animate: { opacity: 1, marginTop: b },
|
|
132
|
+
exit: { opacity: 0, marginTop: -b },
|
|
133
|
+
transition: { duration: 0.3 },
|
|
134
|
+
onAnimationStart: W,
|
|
135
|
+
children: [
|
|
136
|
+
/* @__PURE__ */ o(io, { title: e, onClose: _, withDescription: !!s }),
|
|
137
|
+
k ? /* @__PURE__ */ o("div", { className: c("scrollable-wrapper"), children: /* @__PURE__ */ o(
|
|
138
|
+
U,
|
|
139
|
+
{
|
|
140
|
+
autoHeight: !0,
|
|
141
|
+
autoHeightMax: P(),
|
|
142
|
+
hideTracksWhenNotNeeded: !0,
|
|
143
|
+
children: /* @__PURE__ */ r("div", { className: c("scrollable-content"), children: [
|
|
144
|
+
s && /* @__PURE__ */ o("span", { className: c("description"), children: s }),
|
|
145
|
+
/* @__PURE__ */ o(T, { children: n })
|
|
146
|
+
] })
|
|
147
|
+
}
|
|
148
|
+
) }) : /* @__PURE__ */ r(F, { children: [
|
|
149
|
+
s && /* @__PURE__ */ o("span", { className: c("description"), children: s }),
|
|
150
|
+
/* @__PURE__ */ o(T, { children: n })
|
|
151
|
+
] }),
|
|
152
|
+
!y && (N ? N(_) : /* @__PURE__ */ o(
|
|
153
|
+
lo,
|
|
154
|
+
{
|
|
155
|
+
size: d,
|
|
156
|
+
footerNode: a,
|
|
157
|
+
okButton: p,
|
|
158
|
+
cancelButton: l,
|
|
159
|
+
closeHandler: _
|
|
160
|
+
}
|
|
161
|
+
))
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"modal-window"
|
|
165
|
+
) }) });
|
|
166
|
+
};
|
|
11
167
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
168
|
+
Fo as Modal,
|
|
169
|
+
T as ModalContent,
|
|
170
|
+
lo as ModalFooter,
|
|
171
|
+
io as ModalHeader
|
|
16
172
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (C) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.09194 3.90153C8.73249 3.84853 8.36745 3.82135 7.99778 3.82135C5.24735 3.82135 2.75312 5.32613 0.912626 7.77031C0.762442 7.97055 0.762442 8.25031 0.912626 8.45055C1.96494 9.84971 3.23098 10.9408 4.63642 11.6187L5.59679 9.95532C5.16732 9.39694 4.92809 8.68447 4.97644 7.91459C5.07067 6.40686 6.29276 5.18478 7.80049 5.09055C8.00285 5.07782 8.2013 5.08498 8.39407 5.11028L9.09194 3.90153ZM7.56961 6.5383C6.91222 6.71981 6.41543 7.30478 6.37225 8.00589C6.36032 8.18701 6.37814 8.36223 6.42131 8.5272L7.56961 6.5383ZM8.40613 9.68939L9.57119 7.67146C9.61868 7.84288 9.6387 8.02571 9.62624 8.21497C9.58001 8.92637 9.07238 9.51681 8.40613 9.68939ZM7.58518 11.1113C7.78307 11.1384 7.98701 11.1463 8.19509 11.1332C9.69987 11.0361 10.922 9.81398 11.0191 8.3092C11.0679 7.53332 10.8245 6.81576 10.3887 6.25546L11.3454 4.59845C12.7563 5.27587 14.0272 6.36953 15.0829 7.77325C15.2331 7.9735 15.2331 8.25325 15.0829 8.4535C13.2424 10.8977 10.7482 12.4025 7.99778 12.4025C7.62256 12.4025 7.25211 12.3744 6.88743 12.3199L7.58518 11.1113Z", fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("path", { d: "M10.5051 2.25952C10.7122 1.9008 11.1709 1.7779 11.5296 1.985C11.8883 2.19211 12.0112 2.6508 11.8041 3.00952L5.35413 14.1812C5.14702 14.54 4.68833 14.6629 4.32961 14.4558C3.97089 14.2487 3.84798 13.79 4.05509 13.4312L10.5051 2.25952Z", fill: "#A2AAB5" })), t = (C) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.99778 3.82135C5.24735 3.82135 2.75312 5.32613 0.912626 7.77031C0.762442 7.97055 0.762442 8.25031 0.912626 8.45055C2.75312 10.8977 5.24735 12.4025 7.99778 12.4025C10.7482 12.4025 13.2424 10.8977 15.0829 8.4535C15.2331 8.25325 15.2331 7.9735 15.0829 7.77325C13.2424 5.32614 10.7482 3.82135 7.99778 3.82135ZM8.19509 11.1332C6.36932 11.2481 4.86159 9.74331 4.97644 7.91459C5.07067 6.40686 6.29276 5.18478 7.80049 5.09055C9.62625 4.9757 11.134 6.48048 11.0191 8.3092C10.922 9.81398 9.69987 11.0361 8.19509 11.1332ZM6.37225 8.00589C6.30746 8.98945 7.12022 9.79926 8.10378 9.73742C8.9136 9.68736 9.57323 9.03068 9.62624 8.21497C9.69102 7.23141 8.87826 6.4216 7.8947 6.48344C7.08194 6.53644 6.42231 7.19313 6.37225 8.00589Z", fill: "#A2AAB5" }));
|
|
3
|
+
export {
|
|
4
|
+
l as S,
|
|
5
|
+
t as a
|
|
6
|
+
};
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "./bind-06a7ff84.js";
|
|
3
|
+
import { useState as f } from "react";
|
|
4
|
+
import { Popover as I } from "./popover.js";
|
|
5
|
+
import { B as $ } from "./button-97d9e587.js";
|
|
6
|
+
import { F as j } from "./fieldText-1749da7a.js";
|
|
7
|
+
import { B as y } from "./baseIconButton-251479f7.js";
|
|
8
|
+
import { S as T, a as z } from "./prevPage-87faf576.js";
|
|
9
|
+
import { Tooltip as A } from "./tooltip.js";
|
|
10
|
+
const B = {
|
|
11
|
+
"item-counter": "_item-counter_1qk4p_1"
|
|
12
|
+
}, W = _.bind(B), P = ({
|
|
13
|
+
activePage: o,
|
|
14
|
+
pageSize: n,
|
|
15
|
+
totalItems: s,
|
|
16
|
+
ofText: r,
|
|
17
|
+
itemsText: a,
|
|
18
|
+
limitExceeded: i = !1,
|
|
19
|
+
warningContent: c = null
|
|
20
|
+
}) => {
|
|
21
|
+
const e = o * n, d = e - n;
|
|
22
|
+
return /* @__PURE__ */ p("div", { className: W("item-counter"), children: [
|
|
23
|
+
`${d + 1} - ${e < s ? e : s}`,
|
|
24
|
+
` ${r} ${s}${i ? "+" : ""} ${a}`,
|
|
25
|
+
c
|
|
26
|
+
] });
|
|
27
|
+
}, E = "_selected_cjnvy_23", M = {
|
|
28
|
+
"size-selector": "_size-selector_cjnvy_1",
|
|
29
|
+
"size-option": "_size-option_cjnvy_6",
|
|
30
|
+
selected: E
|
|
31
|
+
}, C = _.bind(M), V = ({
|
|
32
|
+
currentSize: o,
|
|
33
|
+
options: n,
|
|
34
|
+
onClickOption: s
|
|
35
|
+
}) => /* @__PURE__ */ t("div", { className: C("size-selector"), children: n.map((r) => /* @__PURE__ */ t(
|
|
36
|
+
"button",
|
|
37
|
+
{
|
|
38
|
+
className: C("size-option", { selected: r === o }),
|
|
39
|
+
onClick: () => {
|
|
40
|
+
s(r);
|
|
41
|
+
},
|
|
42
|
+
children: r
|
|
43
|
+
},
|
|
44
|
+
r
|
|
45
|
+
)) }), D = {
|
|
46
|
+
"page-size-control": "_page-size-control_8rb7p_1",
|
|
47
|
+
"page-size-options": "_page-size-options_8rb7p_8",
|
|
48
|
+
"size-selector-button": "_size-selector-button_8rb7p_12"
|
|
49
|
+
}, N = _.bind(D), F = ({
|
|
50
|
+
size: o,
|
|
51
|
+
sizeOptions: n,
|
|
52
|
+
perPageText: s,
|
|
53
|
+
changeSize: r
|
|
54
|
+
}) => {
|
|
55
|
+
const [a, i] = f(!1), c = (e) => {
|
|
56
|
+
r(e), i(!1);
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */ p("div", { className: N("page-size-control"), children: [
|
|
59
|
+
/* @__PURE__ */ t(
|
|
60
|
+
I,
|
|
61
|
+
{
|
|
62
|
+
content: /* @__PURE__ */ t(V, { options: n, onClickOption: c, currentSize: o }),
|
|
63
|
+
placement: "top",
|
|
64
|
+
isOpened: a,
|
|
65
|
+
setIsOpened: i,
|
|
66
|
+
className: N("page-size-options"),
|
|
67
|
+
children: /* @__PURE__ */ t($, { className: N("size-selector-button"), variant: "text", adjustWidthOn: "content", children: o })
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
` ${s}`
|
|
71
|
+
] });
|
|
72
|
+
}, G = {
|
|
73
|
+
"page-selector": "_page-selector_rtho4_1",
|
|
74
|
+
"field-wrapper": "_field-wrapper_rtho4_6",
|
|
75
|
+
"apply-button": "_apply-button_rtho4_10"
|
|
76
|
+
}, x = _.bind(G), H = ({
|
|
77
|
+
totalPages: o,
|
|
78
|
+
pageText: n,
|
|
79
|
+
goActionText: s,
|
|
80
|
+
selectPage: r
|
|
81
|
+
}) => {
|
|
82
|
+
const [a, i] = f(""), [c, e] = f(!0), d = (g) => {
|
|
83
|
+
const h = g.target.value.replace(/\D/g, ""), b = Number(h), k = b > 0 && b <= o;
|
|
84
|
+
e(k), i(h);
|
|
85
|
+
}, l = () => {
|
|
86
|
+
r(Number(a));
|
|
87
|
+
};
|
|
88
|
+
return /* @__PURE__ */ p("div", { className: x("page-selector"), children: [
|
|
89
|
+
/* @__PURE__ */ t("div", { className: x("field-wrapper"), children: /* @__PURE__ */ t(
|
|
90
|
+
j,
|
|
91
|
+
{
|
|
92
|
+
onChange: d,
|
|
93
|
+
value: a,
|
|
94
|
+
placeholder: n,
|
|
95
|
+
error: c ? "" : "Error",
|
|
96
|
+
touched: !0,
|
|
97
|
+
defaultWidth: !1,
|
|
98
|
+
displayError: !1
|
|
99
|
+
}
|
|
100
|
+
) }),
|
|
101
|
+
/* @__PURE__ */ t($, { onClick: l, disabled: !a || !c, className: x("apply-button"), children: s })
|
|
102
|
+
] });
|
|
103
|
+
}, q = {
|
|
104
|
+
"active-page": "_active-page_1gl9o_1",
|
|
105
|
+
"page-selector": "_page-selector_1gl9o_10",
|
|
106
|
+
"page-selector-button": "_page-selector-button_1gl9o_14"
|
|
107
|
+
}, v = _.bind(q), L = ({
|
|
108
|
+
activePage: o,
|
|
109
|
+
totalPages: n,
|
|
110
|
+
pageText: s,
|
|
111
|
+
goToText: r,
|
|
112
|
+
goActionText: a,
|
|
113
|
+
changePage: i
|
|
114
|
+
}) => {
|
|
115
|
+
const [c, e] = f(!1), d = (l) => {
|
|
116
|
+
i(l), e(!1);
|
|
117
|
+
};
|
|
118
|
+
return /* @__PURE__ */ p("div", { className: v("active-page"), children: [
|
|
119
|
+
`${s} `,
|
|
120
|
+
/* @__PURE__ */ t(
|
|
121
|
+
I,
|
|
122
|
+
{
|
|
123
|
+
content: /* @__PURE__ */ t(
|
|
124
|
+
H,
|
|
125
|
+
{
|
|
126
|
+
pageText: s,
|
|
127
|
+
goActionText: a,
|
|
128
|
+
selectPage: d,
|
|
129
|
+
totalPages: n
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
title: r,
|
|
133
|
+
placement: "top",
|
|
134
|
+
isOpened: c,
|
|
135
|
+
setIsOpened: e,
|
|
136
|
+
className: v("page-selector"),
|
|
137
|
+
children: /* @__PURE__ */ t($, { className: v("page-selector-button"), variant: "text", adjustWidthOn: "content", children: o })
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
] });
|
|
141
|
+
}, R = "_bar_y74hy_1", J = "_section_y74hy_9", K = "_selected_y74hy_33", Q = "_tooltip_y74hy_37", U = {
|
|
142
|
+
bar: R,
|
|
143
|
+
"section-with-tooltip": "_section-with-tooltip_y74hy_9",
|
|
144
|
+
section: J,
|
|
145
|
+
selected: K,
|
|
146
|
+
"tooltip-wrapper": "_tooltip-wrapper_y74hy_37",
|
|
147
|
+
tooltip: Q,
|
|
148
|
+
"tooltip-text": "_tooltip-text_y74hy_48",
|
|
149
|
+
"page-number": "_page-number_y74hy_52"
|
|
150
|
+
}, m = _.bind(U), S = 13, w = 260, X = ({
|
|
151
|
+
totalPages: o,
|
|
152
|
+
activePage: n,
|
|
153
|
+
changePage: s,
|
|
154
|
+
captions: r
|
|
155
|
+
}) => {
|
|
156
|
+
const a = w / o, i = Math.min(Math.ceil(w / S), o), c = Math.max(S, a), e = [];
|
|
157
|
+
for (let l = 1; l <= o; l++)
|
|
158
|
+
e.push({
|
|
159
|
+
end: l * a,
|
|
160
|
+
pageNumber: l
|
|
161
|
+
});
|
|
162
|
+
const d = Array.from({ length: i }, () => ({ pages: { from: void 0, to: void 0 } }));
|
|
163
|
+
return d.forEach((l, g) => {
|
|
164
|
+
for (l.pages.from = e[0].pageNumber; c * (g + 1) > e[0].end; )
|
|
165
|
+
e.shift();
|
|
166
|
+
l.pages.to = e[0].pageNumber, e.shift();
|
|
167
|
+
}), /* @__PURE__ */ t("div", { className: m("bar"), children: d.map((l, g) => /* @__PURE__ */ t(
|
|
168
|
+
"div",
|
|
169
|
+
{
|
|
170
|
+
className: m("section-with-tooltip"),
|
|
171
|
+
style: { width: c },
|
|
172
|
+
onClick: () => l.pages.from && s(l.pages.from),
|
|
173
|
+
children: /* @__PURE__ */ t(
|
|
174
|
+
A,
|
|
175
|
+
{
|
|
176
|
+
content: /* @__PURE__ */ p("div", { className: m("tooltip"), children: [
|
|
177
|
+
/* @__PURE__ */ t("div", { className: m("tooltip-text"), children: r.goTo }),
|
|
178
|
+
/* @__PURE__ */ t("div", { className: m("page-number"), children: l.pages.from })
|
|
179
|
+
] }),
|
|
180
|
+
wrapperClassName: m("tooltip-wrapper"),
|
|
181
|
+
placement: "top",
|
|
182
|
+
children: /* @__PURE__ */ t(
|
|
183
|
+
"div",
|
|
184
|
+
{
|
|
185
|
+
className: m("section", {
|
|
186
|
+
selected: l.pages.from && l.pages.to && l.pages.from <= n && n <= l.pages.to
|
|
187
|
+
})
|
|
188
|
+
}
|
|
189
|
+
)
|
|
190
|
+
}
|
|
191
|
+
)
|
|
192
|
+
},
|
|
193
|
+
g
|
|
194
|
+
)) });
|
|
195
|
+
}, Y = "_next_pyt8p_21", Z = {
|
|
196
|
+
"page-navigator": "_page-navigator_pyt8p_1",
|
|
197
|
+
"page-buttons": "_page-buttons_pyt8p_7",
|
|
198
|
+
"page-button": "_page-button_pyt8p_7",
|
|
199
|
+
next: Y
|
|
200
|
+
}, u = _.bind(Z), ee = ({
|
|
201
|
+
activePage: o,
|
|
202
|
+
changePage: n,
|
|
203
|
+
totalPages: s,
|
|
204
|
+
captions: r
|
|
205
|
+
}) => {
|
|
206
|
+
const a = () => {
|
|
207
|
+
n(1);
|
|
208
|
+
}, i = () => {
|
|
209
|
+
n(o - 1);
|
|
210
|
+
}, c = () => {
|
|
211
|
+
n(o + 1);
|
|
212
|
+
}, e = () => {
|
|
213
|
+
n(s);
|
|
214
|
+
};
|
|
215
|
+
return /* @__PURE__ */ p("div", { className: u("page-navigator"), children: [
|
|
216
|
+
/* @__PURE__ */ p("div", { className: u("page-buttons"), children: [
|
|
217
|
+
/* @__PURE__ */ t(
|
|
218
|
+
y,
|
|
219
|
+
{
|
|
220
|
+
className: u("page-button"),
|
|
221
|
+
onClick: a,
|
|
222
|
+
disabled: o === 1,
|
|
223
|
+
children: /* @__PURE__ */ t(T, {})
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
/* @__PURE__ */ t(
|
|
227
|
+
y,
|
|
228
|
+
{
|
|
229
|
+
className: u("page-button"),
|
|
230
|
+
onClick: i,
|
|
231
|
+
disabled: o === 1,
|
|
232
|
+
children: /* @__PURE__ */ t(z, {})
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
] }),
|
|
236
|
+
/* @__PURE__ */ t(
|
|
237
|
+
X,
|
|
238
|
+
{
|
|
239
|
+
totalPages: s,
|
|
240
|
+
activePage: o,
|
|
241
|
+
changePage: n,
|
|
242
|
+
captions: r
|
|
243
|
+
}
|
|
244
|
+
),
|
|
245
|
+
/* @__PURE__ */ p("div", { className: u("page-buttons"), children: [
|
|
246
|
+
/* @__PURE__ */ t(
|
|
247
|
+
y,
|
|
248
|
+
{
|
|
249
|
+
className: u("page-button", "next"),
|
|
250
|
+
onClick: c,
|
|
251
|
+
disabled: o === s,
|
|
252
|
+
children: /* @__PURE__ */ t(z, {})
|
|
253
|
+
}
|
|
254
|
+
),
|
|
255
|
+
/* @__PURE__ */ t(
|
|
256
|
+
y,
|
|
257
|
+
{
|
|
258
|
+
className: u("page-button", "next"),
|
|
259
|
+
onClick: e,
|
|
260
|
+
disabled: o === s,
|
|
261
|
+
children: /* @__PURE__ */ t(T, {})
|
|
262
|
+
}
|
|
263
|
+
)
|
|
264
|
+
] })
|
|
265
|
+
] });
|
|
266
|
+
}, te = {
|
|
267
|
+
"page-controls": "_page-controls_thyf8_1",
|
|
268
|
+
"total-pages": "_total-pages_thyf8_8"
|
|
269
|
+
}, O = _.bind(te), oe = ({
|
|
270
|
+
activePage: o,
|
|
271
|
+
changePage: n,
|
|
272
|
+
captions: s,
|
|
273
|
+
totalPages: r
|
|
274
|
+
}) => /* @__PURE__ */ p("div", { className: O("page-controls"), children: [
|
|
275
|
+
/* @__PURE__ */ t(
|
|
276
|
+
L,
|
|
277
|
+
{
|
|
278
|
+
activePage: o,
|
|
279
|
+
totalPages: r,
|
|
280
|
+
changePage: n,
|
|
281
|
+
pageText: s.page,
|
|
282
|
+
goToText: s.goTo,
|
|
283
|
+
goActionText: s.goAction
|
|
284
|
+
}
|
|
285
|
+
),
|
|
286
|
+
/* @__PURE__ */ t(
|
|
287
|
+
ee,
|
|
288
|
+
{
|
|
289
|
+
changePage: n,
|
|
290
|
+
activePage: o,
|
|
291
|
+
totalPages: r,
|
|
292
|
+
captions: { goTo: s.goTo }
|
|
293
|
+
}
|
|
294
|
+
),
|
|
295
|
+
/* @__PURE__ */ p("span", { className: O("total-pages"), children: [
|
|
296
|
+
`${s.of} `,
|
|
297
|
+
r
|
|
298
|
+
] })
|
|
299
|
+
] }), se = "_pagination_w2r3n_1", ne = {
|
|
300
|
+
pagination: se
|
|
301
|
+
}, re = _.bind(ne), ue = ({
|
|
302
|
+
activePage: o,
|
|
303
|
+
totalPages: n,
|
|
304
|
+
pageSize: s,
|
|
305
|
+
totalItems: r,
|
|
306
|
+
pageSizeOptions: a,
|
|
307
|
+
changePage: i,
|
|
308
|
+
changePageSize: c,
|
|
309
|
+
captions: e,
|
|
310
|
+
className: d,
|
|
311
|
+
warningContent: l,
|
|
312
|
+
limitExceeded: g = !1
|
|
313
|
+
}) => {
|
|
314
|
+
const h = (e == null ? void 0 : e.of) || "of", b = (e == null ? void 0 : e.page) || "Page";
|
|
315
|
+
return /* @__PURE__ */ p("div", { className: re("pagination", d), children: [
|
|
316
|
+
/* @__PURE__ */ t(
|
|
317
|
+
P,
|
|
318
|
+
{
|
|
319
|
+
activePage: o,
|
|
320
|
+
pageSize: s,
|
|
321
|
+
totalItems: r,
|
|
322
|
+
ofText: h,
|
|
323
|
+
itemsText: (e == null ? void 0 : e.items) || "items",
|
|
324
|
+
limitExceeded: g,
|
|
325
|
+
warningContent: l
|
|
326
|
+
}
|
|
327
|
+
),
|
|
328
|
+
n > 1 && /* @__PURE__ */ t(
|
|
329
|
+
oe,
|
|
330
|
+
{
|
|
331
|
+
activePage: o,
|
|
332
|
+
totalPages: n,
|
|
333
|
+
changePage: i,
|
|
334
|
+
captions: {
|
|
335
|
+
page: b,
|
|
336
|
+
of: h,
|
|
337
|
+
goTo: (e == null ? void 0 : e.goTo) || "Go to page",
|
|
338
|
+
goAction: (e == null ? void 0 : e.goAction) || "Go"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
),
|
|
342
|
+
/* @__PURE__ */ t(
|
|
343
|
+
F,
|
|
344
|
+
{
|
|
345
|
+
size: s,
|
|
346
|
+
sizeOptions: a,
|
|
347
|
+
changeSize: c,
|
|
348
|
+
perPageText: (e == null ? void 0 : e.perPage) || "per page"
|
|
349
|
+
}
|
|
350
|
+
)
|
|
351
|
+
] });
|
|
352
|
+
};
|
|
353
|
+
export {
|
|
354
|
+
ue as P
|
|
355
|
+
};
|
package/dist/pagination.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import { P as t } from "./pagination-
|
|
1
|
+
import { P as t } from "./pagination-4ded0ec6.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "./bind-06a7ff84.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "./popover.js";
|
|
6
6
|
import "@floating-ui/react";
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
7
|
+
import "./floatingUi-41f8c7b5.js";
|
|
8
|
+
import "./button-97d9e587.js";
|
|
9
|
+
import "./fieldText-1749da7a.js";
|
|
10
|
+
import "./clear-53660571.js";
|
|
11
|
+
import "./openEye-950159cb.js";
|
|
12
|
+
import "./baseIconButton-251479f7.js";
|
|
13
|
+
import "./spinLoader-c4a53718.js";
|
|
14
|
+
import "./maxValueDisplay-9be01a75.js";
|
|
15
|
+
import "./fieldLabel.js";
|
|
16
|
+
import "./prevPage-87faf576.js";
|
|
10
17
|
import "./tooltip.js";
|
|
11
|
-
import "
|
|
18
|
+
import "react-dom";
|
|
12
19
|
export {
|
|
13
20
|
t as Pagination,
|
|
14
21
|
t as default
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.00117 2.62046C7.63142 2.6189 7.33294 2.91738 7.3345 3.28712L7.35159 7.35159L3.28712 7.3345C2.91738 7.33295 2.6189 7.63142 2.62045 8.00117C2.62201 8.37091 2.92301 8.67191 3.29275 8.67346L7.35722 8.69056L7.37391 12.6599C7.37547 13.0296 7.67647 13.3306 8.04621 13.3322C8.41596 13.3337 8.71443 13.0352 8.71288 12.6655L8.69619 8.69619L12.6655 8.71288C13.0352 8.71444 13.3337 8.41596 13.3322 8.04621C13.3306 7.67647 13.0296 7.37547 12.6599 7.37392L8.69056 7.35722L8.67346 3.29275C8.67191 2.92301 8.37091 2.62201 8.00117 2.62046Z" }));
|
|
3
|
+
export {
|
|
4
|
+
l as S
|
|
5
|
+
};
|