@reportportal/ui-kit 0.0.1-alpha.16 → 0.0.1-alpha.161
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/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-8e5ca8d7.js +183 -0
- package/dist/breadcrumbs.js +12 -0
- package/dist/bubblesLoader-f3ffa240.js +28 -0
- package/dist/bubblesLoader.js +1 -1
- package/dist/bulkPanel.js +92 -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 +1 -0
- package/dist/common/hooks/useOnClickOutside.d.ts +5 -1
- package/dist/common/hooks/useSortable.d.ts +3 -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 +84 -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 +11 -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 +16 -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 +2 -1
- 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 +1 -0
- package/dist/components/dropdown/constants.d.ts +4 -0
- package/dist/components/dropdown/dropdown.d.ts +37 -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 +1 -0
- 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/filtersButton/filtersButton.d.ts +9 -0
- package/dist/components/filtersButton/index.d.ts +2 -0
- package/dist/components/icons/index.d.ts +64 -9
- package/dist/components/index.d.ts +27 -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/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 +3 -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/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 +18 -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 +39 -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 +12 -2
- package/dist/datePicker-60b22314.js +194 -0
- package/dist/datePicker.js +32 -0
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-40fcc3ad.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/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 +87 -0
- package/dist/index-1a874a8b.js +110 -0
- package/dist/index.js +170 -241
- 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/minus-2857540f.js +5 -0
- package/dist/modal.js +180 -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/selection-9124d029.js +38 -0
- package/dist/selection.js +10 -0
- package/dist/sidePanel.js +88 -0
- package/dist/sortable.js +213 -0
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/style.css +1 -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-0adbac16.js +1059 -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 -56
- package/dist/tree-c3dd3d45.js +6 -0
- package/dist/useOnClickOutside-8f7d68a1.js +25 -0
- package/dist/xls-995781cc.js +11 -0
- package/package.json +49 -16
- 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-bbfa828e.js +0 -213
- package/dist/fieldNumber-46fe79b9.js +0 -127
- package/dist/fieldText-d80b29ba.js +0 -102
- package/dist/fieldTextFlex-5bddf46a.js +0 -67
- package/dist/index-2a2d261a.js +0 -145
- package/dist/pagination-761d3427.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
|
@@ -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
|
+
};
|
package/dist/popover.js
CHANGED
|
@@ -1,95 +1,80 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as H, useState as
|
|
3
|
-
import { useFloating as
|
|
4
|
-
import { c as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
popover:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"bottom-start",
|
|
25
|
-
"bottom-end",
|
|
26
|
-
"left",
|
|
27
|
-
"left-start",
|
|
28
|
-
"left-end"
|
|
29
|
-
], nt = ({
|
|
30
|
-
className: d,
|
|
31
|
-
content: g,
|
|
32
|
-
children: h,
|
|
33
|
-
placement: u = "bottom",
|
|
34
|
-
fallbackPlacements: v = $,
|
|
35
|
-
title: r,
|
|
36
|
-
arrowOffset: l = 16,
|
|
37
|
-
safeZone: _ = 4,
|
|
38
|
-
arrowColor: w = "white",
|
|
39
|
-
dataAutomationId: x,
|
|
40
|
-
isOpened: b,
|
|
41
|
-
setIsOpened: s
|
|
1
|
+
import { jsxs as f, Fragment as G, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as H, useState as O, useCallback as j } from "react";
|
|
3
|
+
import { useFloating as C, offset as L, flip as M, arrow as W, autoUpdate as U, useClick as q, useDismiss as z, useRole as B, useInteractions as J, FloatingFocusManager as K, FloatingArrow as Q } from "@floating-ui/react";
|
|
4
|
+
import { c as V } from "./bind-06a7ff84.js";
|
|
5
|
+
import { g as X, T as g, a as Y, m as Z, b as $, A as ee } from "./floatingUi-41f8c7b5.js";
|
|
6
|
+
const te = "_popover_n3nff_1", se = "_title_n3nff_28", oe = {
|
|
7
|
+
"popover-wrapper": "_popover-wrapper_n3nff_1",
|
|
8
|
+
popover: te,
|
|
9
|
+
title: se
|
|
10
|
+
}, l = V.bind(oe), ce = ({
|
|
11
|
+
className: u,
|
|
12
|
+
content: d,
|
|
13
|
+
children: _,
|
|
14
|
+
placement: v = "bottom",
|
|
15
|
+
fallbackPlacements: A = $,
|
|
16
|
+
title: i,
|
|
17
|
+
arrowOffset: o = ee,
|
|
18
|
+
safeZone: h = 4,
|
|
19
|
+
arrowColor: x = "white",
|
|
20
|
+
dataAutomationId: F,
|
|
21
|
+
isOpened: R,
|
|
22
|
+
setIsOpened: n,
|
|
23
|
+
isCentered: r = !0
|
|
42
24
|
}) => {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
25
|
+
const c = H(null), [w, N] = O(!1), p = n ? R : w, T = (e) => {
|
|
26
|
+
n ? n(e) : N(e);
|
|
27
|
+
}, b = j(
|
|
28
|
+
(e, a) => X(e, a, o, r),
|
|
29
|
+
[o, r]
|
|
30
|
+
), { placement: E, refs: m, floatingStyles: P, context: t } = C({
|
|
31
|
+
open: p,
|
|
32
|
+
onOpenChange: T,
|
|
33
|
+
placement: v,
|
|
49
34
|
middleware: [
|
|
50
|
-
|
|
51
|
-
mainAxis:
|
|
52
|
-
alignmentAxis: (
|
|
35
|
+
L(({ rects: e, placement: a }) => ({
|
|
36
|
+
mainAxis: h + g,
|
|
37
|
+
alignmentAxis: b(e, a)
|
|
53
38
|
})),
|
|
54
|
-
|
|
39
|
+
M({
|
|
55
40
|
fallbackAxisSideDirection: "start",
|
|
56
|
-
fallbackPlacements:
|
|
41
|
+
fallbackPlacements: A
|
|
57
42
|
}),
|
|
58
|
-
|
|
59
|
-
element:
|
|
43
|
+
W({
|
|
44
|
+
element: c
|
|
60
45
|
})
|
|
61
46
|
],
|
|
62
|
-
whileElementsMounted:
|
|
63
|
-
}),
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
47
|
+
whileElementsMounted: U
|
|
48
|
+
}), k = q(t), I = z(t), S = B(t), { getReferenceProps: y, getFloatingProps: D } = J([k, I, S]);
|
|
49
|
+
return /* @__PURE__ */ f(G, { children: [
|
|
50
|
+
/* @__PURE__ */ s("div", { ref: m.setReference, ...y(), className: l("popover-wrapper"), children: _ }),
|
|
51
|
+
p && /* @__PURE__ */ s(K, { context: t, modal: !1, children: /* @__PURE__ */ f(
|
|
67
52
|
"div",
|
|
68
53
|
{
|
|
69
|
-
className:
|
|
70
|
-
"data-automation-id":
|
|
71
|
-
ref:
|
|
54
|
+
className: l("popover", u),
|
|
55
|
+
"data-automation-id": F,
|
|
56
|
+
ref: m.setFloating,
|
|
72
57
|
style: P,
|
|
73
|
-
...
|
|
58
|
+
...D,
|
|
74
59
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
60
|
+
/* @__PURE__ */ s(
|
|
61
|
+
Q,
|
|
77
62
|
{
|
|
78
|
-
ref:
|
|
63
|
+
ref: c,
|
|
79
64
|
context: t,
|
|
80
|
-
width:
|
|
81
|
-
height:
|
|
82
|
-
fill:
|
|
83
|
-
staticOffset:
|
|
65
|
+
width: Y,
|
|
66
|
+
height: g,
|
|
67
|
+
fill: x,
|
|
68
|
+
staticOffset: Z.includes(E) ? null : o
|
|
84
69
|
}
|
|
85
70
|
),
|
|
86
|
-
|
|
87
|
-
|
|
71
|
+
i && /* @__PURE__ */ s("div", { className: l("title"), children: i }),
|
|
72
|
+
d
|
|
88
73
|
]
|
|
89
74
|
}
|
|
90
75
|
) })
|
|
91
76
|
] });
|
|
92
77
|
};
|
|
93
78
|
export {
|
|
94
|
-
|
|
79
|
+
ce as Popover
|
|
95
80
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 13, height: 12, viewBox: "0 0 13 12", fill: "#A2AAB5", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 12L2 12L2 2.38498e-08L1.90798e-07 0L0 12ZM13 1L5 6L13 11L13 1Z" })), a = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#A2AAB5", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M12 13L4 8L12 3L12 13Z" }));
|
|
3
|
+
export {
|
|
4
|
+
l as S,
|
|
5
|
+
a
|
|
6
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g, useId as k } from "react";
|
|
3
|
+
import { c as p } from "./bind-06a7ff84.js";
|
|
4
|
+
import { K as o } from "./keyCodes-f63c0e11.js";
|
|
5
|
+
const y = "_disabled_1fetm_9", E = "_toggler_1fetm_15", x = "_checked_1fetm_21", C = "_input_1fetm_28", D = {
|
|
6
|
+
"radio-button": "_radio-button_1fetm_1",
|
|
7
|
+
disabled: y,
|
|
8
|
+
"children-container": "_children-container_1fetm_12",
|
|
9
|
+
toggler: E,
|
|
10
|
+
checked: x,
|
|
11
|
+
input: C
|
|
12
|
+
}, a = p.bind(D), j = ({
|
|
13
|
+
option: e,
|
|
14
|
+
value: u,
|
|
15
|
+
onChange: b,
|
|
16
|
+
onFocus: K,
|
|
17
|
+
onBlur: N,
|
|
18
|
+
className: _,
|
|
19
|
+
...m
|
|
20
|
+
}) => {
|
|
21
|
+
const d = g(null), l = k(), s = String(e.value) === String(u), f = (c) => {
|
|
22
|
+
var n, i;
|
|
23
|
+
const { keyCode: r } = c;
|
|
24
|
+
if (r === o.SPACE_KEY_CODE) {
|
|
25
|
+
c.preventDefault(), (n = d.current) == null || n.click();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
r === o.ENTER_KEY_CODE && (c.preventDefault(), (i = d.current) == null || i.click());
|
|
29
|
+
};
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line
|
|
32
|
+
/* @__PURE__ */ h(
|
|
33
|
+
"label",
|
|
34
|
+
{
|
|
35
|
+
id: l,
|
|
36
|
+
className: a(_, "radio-button", {
|
|
37
|
+
disabled: e.disabled
|
|
38
|
+
}),
|
|
39
|
+
tabIndex: e.disabled ? -1 : 0,
|
|
40
|
+
onKeyDown: e.disabled ? void 0 : f,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ t(
|
|
43
|
+
"input",
|
|
44
|
+
{
|
|
45
|
+
tabIndex: -1,
|
|
46
|
+
ref: d,
|
|
47
|
+
type: "radio",
|
|
48
|
+
className: a("input"),
|
|
49
|
+
disabled: e.disabled,
|
|
50
|
+
onChange: b,
|
|
51
|
+
value: e.value,
|
|
52
|
+
checked: s,
|
|
53
|
+
...m
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ t(
|
|
57
|
+
"span",
|
|
58
|
+
{
|
|
59
|
+
role: "radio",
|
|
60
|
+
"aria-labelledby": l,
|
|
61
|
+
"aria-checked": s,
|
|
62
|
+
className: a("toggler", {
|
|
63
|
+
disabled: e.disabled,
|
|
64
|
+
checked: s
|
|
65
|
+
})
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ t("span", { className: a("children-container"), children: e.label })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
j as R
|
|
76
|
+
};
|
package/dist/radio.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536L4.14645 9.85355C3.95118 9.65829 3.95118 9.34171 4.14645 9.14645C4.34171 8.95118 4.65829 8.95118 4.85355 9.14645L7 11.2929L7 3.5C7 3.22386 7.22386 3 7.5 3C7.77614 3 8 3.22386 8 3.5L8 11.2929L10.1464 9.14645C10.3417 8.95119 10.6583 8.95118 10.8536 9.14645C11.0488 9.34171 11.0488 9.65829 10.8536 9.85355L7.85355 12.8536Z", fill: "#A2AAB5" })), i = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.14645 3.14645C7.34171 2.95118 7.65829 2.95118 7.85355 3.14645L10.8536 6.14645C11.0488 6.34171 11.0488 6.65829 10.8536 6.85355C10.6583 7.04882 10.3417 7.04882 10.1464 6.85355L8 4.70711V12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 4.70711L4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355C3.95118 6.65829 3.95118 6.34171 4.14645 6.14645L7.14645 3.14645Z", fill: "#A2AAB5" })), n = (t) => /* @__PURE__ */ e.createElement("svg", { width: 11, height: 24, viewBox: "0 0 11 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("rect", { x: 5, width: 1, height: 24, fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("rect", { x: 1, y: 4, width: 2, height: 16, rx: 1, fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("rect", { x: 8, y: 4, width: 2, height: 16, rx: 1, fill: "#A2AAB5" }));
|
|
3
|
+
export {
|
|
4
|
+
l as S,
|
|
5
|
+
i as a,
|
|
6
|
+
n as b
|
|
7
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { S as a } from "./close-4d480ef7.js";
|
|
4
|
+
import { c as l } from "./bind-06a7ff84.js";
|
|
5
|
+
import { B as r } from "./button-97d9e587.js";
|
|
6
|
+
const d = "_divider_p4emi_23", p = "_button_p4emi_30", m = {
|
|
7
|
+
"selection-wrapper": "_selection-wrapper_p4emi_1",
|
|
8
|
+
"selected-count-text": "_selected-count-text_p4emi_7",
|
|
9
|
+
"selected-count-caption": "_selected-count-caption_p4emi_16",
|
|
10
|
+
divider: d,
|
|
11
|
+
button: p
|
|
12
|
+
}, t = l.bind(m), _ = { selected: "selected", buttonCaption: "Clear Selection" }, C = ({
|
|
13
|
+
selectedCount: s,
|
|
14
|
+
onClearSelection: n,
|
|
15
|
+
captions: c = _,
|
|
16
|
+
icon: i = /* @__PURE__ */ e(a, {})
|
|
17
|
+
}) => /* @__PURE__ */ o("div", { className: t("selection-wrapper"), children: [
|
|
18
|
+
/* @__PURE__ */ o("p", { children: [
|
|
19
|
+
/* @__PURE__ */ e("span", { className: t("selected-count-text"), children: s }),
|
|
20
|
+
/* @__PURE__ */ e("span", { className: t("selected-count-caption"), children: c.selected })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ e("div", { className: t("divider") }),
|
|
23
|
+
/* @__PURE__ */ e(
|
|
24
|
+
r,
|
|
25
|
+
{
|
|
26
|
+
icon: i,
|
|
27
|
+
className: t("button"),
|
|
28
|
+
iconPlace: "start",
|
|
29
|
+
variant: "text",
|
|
30
|
+
onClick: n,
|
|
31
|
+
"aria-label": `${c.buttonCaption} - ${s} ${c.selected}`,
|
|
32
|
+
children: c.buttonCaption
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
] });
|
|
36
|
+
export {
|
|
37
|
+
C as S
|
|
38
|
+
};
|