@sberbusiness/triplex-next 0.1.5 → 0.1.6
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/chunks/{AlertProcessSpoiler-Dz7CKApv.js → AlertProcessSpoiler-BuN7zhGO.js} +14 -14
- package/chunks/Card.module-ByP22Mc4.js +17 -0
- package/chunks/{DropdownListItem-CwqothNf.js → DropdownListItem-CM0DOekv.js} +13 -13
- package/chunks/DropdownMobile.module-gjHocEKh.js +19 -0
- package/chunks/Footer.module-B1rO0bcd.js +11 -0
- package/chunks/{FormFieldInput-Cmc0beZ5.js → FormFieldInput-3TmHcNY0.js} +18 -18
- package/chunks/HeaderLayoutSidebar.module-CEXHjsmH.js +9 -0
- package/chunks/HeaderTabs.module-YFm2izz6.js +9 -0
- package/chunks/HeaderTitle.module-lv649tnz.js +9 -0
- package/chunks/{ListItemControlsButton-Bn_onrHQ.js → ListItemControlsButton-BpUzyKya.js} +7 -7
- package/chunks/ListItemTail.module-D7Oa-l-5.js +12 -0
- package/chunks/ListMasterFooter.module-1LjIdZNa.js +10 -0
- package/chunks/Overlay.module-BbpDNlm7.js +18 -0
- package/chunks/Page.module-DAinpecX.js +16 -0
- package/chunks/TabsExtended.module-CQBdl7x1.js +13 -0
- package/chunks/{TabsExtendedUtils-CZCrojKY.js → TabsExtendedUtils-BT4b2wK1.js} +2 -2
- package/chunks/TooltipDesktop.module-BRkBuup-.js +19 -0
- package/chunks/{index-1QUfI5kD.js → index-CLQ4mLUp.js} +168 -168
- package/chunks/utils-VD40Qwop.js +36 -0
- package/components/Alert/AlertContext/AlertContext.js +21 -21
- package/components/Alert/AlertProcess/AlertProcess.js +26 -26
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +1 -1
- package/components/Body/Body.js +7 -7
- package/components/Button/Button.js +1 -1
- package/components/Button/ButtonBase.js +3 -3
- package/components/Button/ButtonDropdown.js +2 -2
- package/components/Button/ButtonDropdownExtended.js +1 -1
- package/components/Button/ButtonIcon.js +2 -2
- package/components/Button/index.js +1 -1
- package/components/Card/CardAction.js +24 -24
- package/components/Card/CardStatic.js +17 -17
- package/components/Card/components/CardContent/CardContent.js +1 -1
- package/components/Card/components/CardContent/components/CardContentBody.js +1 -1
- package/components/Card/components/CardContent/components/CardContentFooter.js +1 -1
- package/components/Card/components/CardContent/components/CardContentHeader.js +1 -1
- package/components/Card/components/CardMedia.js +1 -1
- package/components/Card/utils.js +1 -1
- package/components/Checkbox/Checkbox.js +11 -11
- package/components/Checkbox/CheckboxXGroup.js +10 -10
- package/components/Checkbox/CheckboxYGroup.js +3 -3
- package/components/Col/Col.js +136 -136
- package/components/DesignTokens/DesignTokenUtils.js +34 -34
- package/components/Dropdown/Dropdown.js +1 -1
- package/components/Dropdown/desktop/DropdownDesktop.js +2 -2
- package/components/Dropdown/desktop/DropdownList.js +4 -4
- package/components/Dropdown/desktop/DropdownListItem.js +1 -1
- package/components/Dropdown/index.js +2 -2
- package/components/Dropdown/mobile/DropdownMobile.js +8 -8
- package/components/Dropdown/mobile/DropdownMobileBody.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileClose.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileFooter.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileHeader.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInner.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInput.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileList.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileListItem.js +1 -1
- package/components/Footer/Footer.js +13 -13
- package/components/Footer/components/FooterDescription.js +1 -1
- package/components/Footer/components/FooterDescriptionContent.js +1 -1
- package/components/Footer/components/FooterDescriptionControls.js +1 -1
- package/components/FormField/FormField.js +26 -26
- package/components/FormField/components/FormFieldClear.js +10 -10
- package/components/FormField/components/FormFieldCounter.js +3 -3
- package/components/FormField/components/FormFieldDescription.js +3 -3
- package/components/FormField/components/FormFieldInput.js +1 -1
- package/components/FormField/components/FormFieldLabel.js +12 -12
- package/components/FormField/components/FormFieldMaskedInput.js +4 -4
- package/components/FormField/components/FormFieldPostfix.js +1 -1
- package/components/FormField/components/FormFieldPrefix.js +7 -7
- package/components/FormField/components/FormFieldTextarea.js +9 -9
- package/components/FormField/index.js +2 -2
- package/components/Header/Header.js +14 -14
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +1 -1
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +5 -5
- package/components/Header/components/HeaderTabs/HeaderTabs.js +1 -1
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +1 -1
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitle.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +1 -1
- package/components/Link/Link.js +36 -36
- package/components/List/List.js +12 -12
- package/components/List/components/ListEmptyState.js +3 -3
- package/components/List/components/ListItem.js +10 -10
- package/components/List/components/ListItemContent.js +10 -10
- package/components/List/components/ListItemControls.js +5 -5
- package/components/List/components/ListItemControlsButton.js +1 -1
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +5 -5
- package/components/List/components/ListItemSelectable.js +8 -8
- package/components/List/components/ListItemTable.js +2 -2
- package/components/List/components/ListItemTailLeft.js +1 -1
- package/components/List/components/ListItemTailRight.js +1 -1
- package/components/List/components/ListSortableItem.js +2 -2
- package/components/List/components/ListSortableItemControls.js +5 -5
- package/components/List/components/ListSortableItemTarget.js +9 -9
- package/components/List/index.js +2 -2
- package/components/ListMaster/ListMaster.js +8 -8
- package/components/ListMaster/components/ListMasterBody.js +9 -9
- package/components/ListMaster/components/ListMasterChipGroup.js +6 -6
- package/components/ListMaster/components/ListMasterFooter.js +1 -1
- package/components/ListMaster/components/ListMasterFooterControls.js +1 -1
- package/components/ListMaster/components/ListMasterFooterDescription.js +1 -1
- package/components/ListMaster/components/ListMasterHeader.js +5 -5
- package/components/ListMaster/components/SelectionControls.js +10 -10
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +6 -6
- package/components/Loader/LoaderSmall/LoaderSmall.js +18 -18
- package/components/LoaderWidget/LoaderWidget.js +4 -4
- package/components/Overlay/Overlay.js +1 -1
- package/components/Overlay/OverlayMask.js +1 -1
- package/components/Overlay/OverlayPanel.js +1 -1
- package/components/Page/Page.js +1 -1
- package/components/Page/components/BodyPage.js +1 -1
- package/components/Page/components/FooterPage.js +1 -1
- package/components/Page/components/HeaderPage.js +1 -1
- package/components/Pagination/components/PaginationExtended.js +14 -14
- package/components/Pagination/components/PaginationNavigationButton.js +4 -4
- package/components/Pagination/components/PaginationNavigationExtended.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +1 -1
- package/components/Pagination/components/PaginationPageEllipsis.js +1 -1
- package/components/Pagination/components/PaginationSelect.js +12 -12
- package/components/Radio/Radio.js +12 -12
- package/components/Radio/RadioXGroup.js +7 -7
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Row/Row.js +9 -9
- package/components/SegmentedControl/SegmentedControl.js +1 -1
- package/components/SegmentedControl/SegmentedControlSegment.js +1 -1
- package/components/SegmentedControl/index.js +1 -1
- package/components/Skeleton/Skeleton.js +12 -12
- package/components/SwipeableArea/SwipeableArea.js +19 -19
- package/components/TabsExtended/TabsExtended.js +1 -1
- package/components/TabsExtended/TabsExtendedUtils.js +1 -1
- package/components/TabsExtended/components/TabsExtendedContent.js +1 -1
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTab.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTabButton.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +1 -1
- package/components/TextField/MaskedField.js +4 -4
- package/components/TextField/TextField.js +4 -4
- package/components/TextField/TextFieldBase.js +4 -4
- package/components/TextField/index.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +1 -1
- package/components/Tooltip/components/common/TooltipLink.js +18 -18
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +1 -1
- package/components/Tooltip/components/mobile/TooltipMobile.js +8 -8
- package/components/Typography/Caption.js +9 -9
- package/components/Typography/Text.js +7 -7
- package/components/Typography/Title.js +15 -15
- package/components/Typography/utils.js +1 -1
- package/components/UploadZone/components/UploadZoneInput.js +37 -37
- package/components/index.js +4 -4
- package/index.js +4 -4
- package/package.json +1 -1
- package/styles/triplex-next.css +333 -333
- package/chunks/Card.module-BVAy3tJd.js +0 -17
- package/chunks/DropdownMobile.module-zLTfuu5W.js +0 -19
- package/chunks/Footer.module-C8ediOIN.js +0 -11
- package/chunks/HeaderLayoutSidebar.module-DUesMumi.js +0 -9
- package/chunks/HeaderTabs.module-B8b_Vmmv.js +0 -9
- package/chunks/HeaderTitle.module-CS0vKAYw.js +0 -9
- package/chunks/ListItemTail.module-8r8-WRy-.js +0 -12
- package/chunks/ListMasterFooter.module-Bylyf04G.js +0 -10
- package/chunks/Overlay.module-BfeGcilV.js +0 -18
- package/chunks/Page.module-DI3KI2pW.js +0 -16
- package/chunks/TabsExtended.module-De1gs7fV.js +0 -13
- package/chunks/TooltipDesktop.module-0Me4J_t3.js +0 -19
- package/chunks/utils-DUlFnyF3.js +0 -36
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import x, { useContext as d } from "react";
|
|
3
|
-
import { s as o } from "../../../chunks/TabsExtended.module-
|
|
3
|
+
import { s as o } from "../../../chunks/TabsExtended.module-CQBdl7x1.js";
|
|
4
4
|
import { c as I } from "../../../chunks/vendor-CF2m175I.js";
|
|
5
5
|
import { TabsExtendedContext as u } from "../TabsExtendedContext.js";
|
|
6
6
|
import { TabsExtendedTabContext as E } from "./TabsExtendedTabContext.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { s, t as b, a as x } from "../../../chunks/TabsExtendedUtils-
|
|
3
|
+
import { s, t as b, a as x } from "../../../chunks/TabsExtendedUtils-BT4b2wK1.js";
|
|
4
4
|
import { c as T } from "../../../chunks/vendor-CF2m175I.js";
|
|
5
5
|
import { Text as l } from "../../Typography/Text.js";
|
|
6
6
|
import { ETabsExtendedTabButtonSize as p } from "../enums.js";
|
|
@@ -3,7 +3,7 @@ import a, { useContext as A, useState as D, useRef as g, useLayoutEffect as R, i
|
|
|
3
3
|
import { h as F, c as N, p as z } from "../../../chunks/vendor-CF2m175I.js";
|
|
4
4
|
import { TabsExtendedContext as _ } from "../TabsExtendedContext.js";
|
|
5
5
|
import { TabsExtendedTabContext as j } from "./TabsExtendedTabContext.js";
|
|
6
|
-
import { s as l } from "../../../chunks/TabsExtended.module-
|
|
6
|
+
import { s as l } from "../../../chunks/TabsExtended.module-CQBdl7x1.js";
|
|
7
7
|
const G = ({
|
|
8
8
|
children: s,
|
|
9
9
|
className: C,
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../Alert/AlertContext/AlertContext.js";
|
|
3
3
|
import "../Alert/AlertProcess/AlertProcess.js";
|
|
4
4
|
import "../Alert/AlertTypeUtils.js";
|
|
5
|
-
import { M as Jo } from "../../chunks/index-
|
|
5
|
+
import { M as Jo } from "../../chunks/index-CLQ4mLUp.js";
|
|
6
6
|
import "../Button/ButtonBase.js";
|
|
7
7
|
import "../Button/ButtonIcon.js";
|
|
8
8
|
import "../Col/Col.js";
|
|
@@ -14,7 +14,7 @@ import "../FormField/components/FormFieldDescription.js";
|
|
|
14
14
|
import "../FormField/components/FormFieldCounter.js";
|
|
15
15
|
import "../FormField/components/FormFieldLabel.js";
|
|
16
16
|
import "../FormField/components/FormFieldClear.js";
|
|
17
|
-
import "../../chunks/FormFieldInput-
|
|
17
|
+
import "../../chunks/FormFieldInput-3TmHcNY0.js";
|
|
18
18
|
import "../FormField/components/FormFieldPostfix.js";
|
|
19
19
|
import "../FormField/components/FormFieldPrefix.js";
|
|
20
20
|
import "../FormField/components/FormFieldTextarea.js";
|
|
@@ -35,7 +35,7 @@ import "../ThemeProvider/ThemeProviderContext.js";
|
|
|
35
35
|
import "../Typography/Title.js";
|
|
36
36
|
import "../Typography/Text.js";
|
|
37
37
|
import "../Typography/Caption.js";
|
|
38
|
-
import "../../chunks/DropdownListItem-
|
|
38
|
+
import "../../chunks/DropdownListItem-CM0DOekv.js";
|
|
39
39
|
import "../Dropdown/mobile/DropdownMobile.js";
|
|
40
40
|
import "../Dropdown/mobile/DropdownMobileBody.js";
|
|
41
41
|
import "../Dropdown/mobile/DropdownMobileClose.js";
|
|
@@ -50,7 +50,7 @@ import "../List/ListSortable.js";
|
|
|
50
50
|
import "../List/components/ListItem.js";
|
|
51
51
|
import "../List/components/ListItemControls.js";
|
|
52
52
|
import "../List/components/ListItemContent.js";
|
|
53
|
-
import "../../chunks/ListItemControlsButton-
|
|
53
|
+
import "../../chunks/ListItemControlsButton-BpUzyKya.js";
|
|
54
54
|
import "../List/components/ListEmptyState.js";
|
|
55
55
|
import "../List/components/ListItemLoading.js";
|
|
56
56
|
import "../List/components/ListItemSelectable.js";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../Alert/AlertContext/AlertContext.js";
|
|
3
3
|
import "../Alert/AlertProcess/AlertProcess.js";
|
|
4
4
|
import "../Alert/AlertTypeUtils.js";
|
|
5
|
-
import { T as Jo } from "../../chunks/index-
|
|
5
|
+
import { T as Jo } from "../../chunks/index-CLQ4mLUp.js";
|
|
6
6
|
import "../Button/ButtonBase.js";
|
|
7
7
|
import "../Button/ButtonIcon.js";
|
|
8
8
|
import "../Col/Col.js";
|
|
@@ -14,7 +14,7 @@ import "../FormField/components/FormFieldDescription.js";
|
|
|
14
14
|
import "../FormField/components/FormFieldCounter.js";
|
|
15
15
|
import "../FormField/components/FormFieldLabel.js";
|
|
16
16
|
import "../FormField/components/FormFieldClear.js";
|
|
17
|
-
import "../../chunks/FormFieldInput-
|
|
17
|
+
import "../../chunks/FormFieldInput-3TmHcNY0.js";
|
|
18
18
|
import "../FormField/components/FormFieldPostfix.js";
|
|
19
19
|
import "../FormField/components/FormFieldPrefix.js";
|
|
20
20
|
import "../FormField/components/FormFieldTextarea.js";
|
|
@@ -35,7 +35,7 @@ import "../ThemeProvider/ThemeProviderContext.js";
|
|
|
35
35
|
import "../Typography/Title.js";
|
|
36
36
|
import "../Typography/Text.js";
|
|
37
37
|
import "../Typography/Caption.js";
|
|
38
|
-
import "../../chunks/DropdownListItem-
|
|
38
|
+
import "../../chunks/DropdownListItem-CM0DOekv.js";
|
|
39
39
|
import "../Dropdown/mobile/DropdownMobile.js";
|
|
40
40
|
import "../Dropdown/mobile/DropdownMobileBody.js";
|
|
41
41
|
import "../Dropdown/mobile/DropdownMobileClose.js";
|
|
@@ -50,7 +50,7 @@ import "../List/ListSortable.js";
|
|
|
50
50
|
import "../List/components/ListItem.js";
|
|
51
51
|
import "../List/components/ListItemControls.js";
|
|
52
52
|
import "../List/components/ListItemContent.js";
|
|
53
|
-
import "../../chunks/ListItemControlsButton-
|
|
53
|
+
import "../../chunks/ListItemControlsButton-BpUzyKya.js";
|
|
54
54
|
import "../List/components/ListEmptyState.js";
|
|
55
55
|
import "../List/components/ListItemLoading.js";
|
|
56
56
|
import "../List/components/ListItemSelectable.js";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../Alert/AlertContext/AlertContext.js";
|
|
3
3
|
import "../Alert/AlertProcess/AlertProcess.js";
|
|
4
4
|
import "../Alert/AlertTypeUtils.js";
|
|
5
|
-
import { j as Jo } from "../../chunks/index-
|
|
5
|
+
import { j as Jo } from "../../chunks/index-CLQ4mLUp.js";
|
|
6
6
|
import "../Button/ButtonBase.js";
|
|
7
7
|
import "../Button/ButtonIcon.js";
|
|
8
8
|
import "../Col/Col.js";
|
|
@@ -14,7 +14,7 @@ import "../FormField/components/FormFieldDescription.js";
|
|
|
14
14
|
import "../FormField/components/FormFieldCounter.js";
|
|
15
15
|
import "../FormField/components/FormFieldLabel.js";
|
|
16
16
|
import "../FormField/components/FormFieldClear.js";
|
|
17
|
-
import "../../chunks/FormFieldInput-
|
|
17
|
+
import "../../chunks/FormFieldInput-3TmHcNY0.js";
|
|
18
18
|
import "../FormField/components/FormFieldPostfix.js";
|
|
19
19
|
import "../FormField/components/FormFieldPrefix.js";
|
|
20
20
|
import "../FormField/components/FormFieldTextarea.js";
|
|
@@ -35,7 +35,7 @@ import "../ThemeProvider/ThemeProviderContext.js";
|
|
|
35
35
|
import "../Typography/Title.js";
|
|
36
36
|
import "../Typography/Text.js";
|
|
37
37
|
import "../Typography/Caption.js";
|
|
38
|
-
import "../../chunks/DropdownListItem-
|
|
38
|
+
import "../../chunks/DropdownListItem-CM0DOekv.js";
|
|
39
39
|
import "../Dropdown/mobile/DropdownMobile.js";
|
|
40
40
|
import "../Dropdown/mobile/DropdownMobileBody.js";
|
|
41
41
|
import "../Dropdown/mobile/DropdownMobileClose.js";
|
|
@@ -50,7 +50,7 @@ import "../List/ListSortable.js";
|
|
|
50
50
|
import "../List/components/ListItem.js";
|
|
51
51
|
import "../List/components/ListItemControls.js";
|
|
52
52
|
import "../List/components/ListItemContent.js";
|
|
53
|
-
import "../../chunks/ListItemControlsButton-
|
|
53
|
+
import "../../chunks/ListItemControlsButton-BpUzyKya.js";
|
|
54
54
|
import "../List/components/ListEmptyState.js";
|
|
55
55
|
import "../List/components/ListItemLoading.js";
|
|
56
56
|
import "../List/components/ListItemSelectable.js";
|
|
@@ -4,7 +4,7 @@ import { MobileView as s } from "../../../MobileView/MobileView.js";
|
|
|
4
4
|
import { Text as a } from "../../../Typography/Text.js";
|
|
5
5
|
import { ELineType as l, ETextSize as p } from "../../../Typography/enums.js";
|
|
6
6
|
import { c } from "../../../../chunks/vendor-CF2m175I.js";
|
|
7
|
-
import { s as f } from "../../../../chunks/TooltipDesktop.module-
|
|
7
|
+
import { s as f } from "../../../../chunks/TooltipDesktop.module-BRkBuup-.js";
|
|
8
8
|
const d = r.forwardRef(({ className: m, ...i }, t) => {
|
|
9
9
|
const e = c(f.tooltipBody, m);
|
|
10
10
|
return /* @__PURE__ */ o(s, { fallback: /* @__PURE__ */ o("div", { className: e, ...i, ref: t }), children: /* @__PURE__ */ o(a, { className: e, size: p.B3, line: l.NORMAL, tag: "div", ...i, ref: t }) });
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import { MobileView as
|
|
5
|
-
const
|
|
6
|
-
tooltipLink:
|
|
7
|
-
desktop:
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { c as s } from "../../../../chunks/vendor-CF2m175I.js";
|
|
4
|
+
import { MobileView as a } from "../../../MobileView/MobileView.js";
|
|
5
|
+
const k = "tooltipLink__97250ef3", r = "desktop__d60bfd8c", c = "mobile__766c8fc7", o = {
|
|
6
|
+
tooltipLink: k,
|
|
7
|
+
desktop: r,
|
|
8
8
|
mobile: c
|
|
9
|
-
}, m =
|
|
10
|
-
({ children:
|
|
9
|
+
}, m = n.forwardRef(
|
|
10
|
+
({ children: i, className: e, ...l }, p) => /* @__PURE__ */ t(a, { fallback: /* @__PURE__ */ t(
|
|
11
11
|
"a",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
14
|
-
...
|
|
15
|
-
"data-tx":
|
|
16
|
-
ref:
|
|
17
|
-
children:
|
|
13
|
+
className: s(o.tooltipLink, o.desktop, e),
|
|
14
|
+
...l,
|
|
15
|
+
"data-tx": "0.1.6",
|
|
16
|
+
ref: p,
|
|
17
|
+
children: i
|
|
18
18
|
}
|
|
19
19
|
), children: /* @__PURE__ */ t(
|
|
20
20
|
"a",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
23
|
-
...
|
|
24
|
-
"data-tx":
|
|
25
|
-
ref:
|
|
26
|
-
children:
|
|
22
|
+
className: s(o.tooltipLink, o.mobile, e),
|
|
23
|
+
...l,
|
|
24
|
+
"data-tx": "0.1.6",
|
|
25
|
+
ref: p,
|
|
26
|
+
children: i
|
|
27
27
|
}
|
|
28
28
|
) })
|
|
29
29
|
);
|
|
@@ -3,7 +3,7 @@ import { useContext as p } from "react";
|
|
|
3
3
|
import { CrossStrokeSrvIcon16 as n } from "@sberbusiness/icons-next";
|
|
4
4
|
import { TooltipContext as i } from "../../TootlipContext.js";
|
|
5
5
|
import { ButtonIcon as l } from "../../../Button/ButtonIcon.js";
|
|
6
|
-
import { s as f } from "../../../../chunks/TooltipDesktop.module-
|
|
6
|
+
import { s as f } from "../../../../chunks/TooltipDesktop.module-BRkBuup-.js";
|
|
7
7
|
const I = ({ onClick: t, ...r }) => {
|
|
8
8
|
const { setTooltipOpen: e } = p(i), s = (m) => {
|
|
9
9
|
e(!1), t == null || t(m);
|
|
@@ -9,7 +9,7 @@ import { Portal as Y } from "../../../../Portal/Portal.js";
|
|
|
9
9
|
import { ETooltipPreferPlace as u, ETooltipDirection as B, ETooltipAlign as z, ETooltipFlowTypes as I, ETooltipSizeParameter as r, ETooltipTypeName as C, ETooltipEndCoordinates as N, ETooltipStartCoordinates as R, ETooltipAxesType as G, ETooltipSize as U } from "../../../enums.js";
|
|
10
10
|
import { TooltipDesktopTip as V } from "./TooltipDesktopTip.js";
|
|
11
11
|
import { pickZone as j, axes as q, calcRelPos as K, centerOfBoundsFromBounds as Z, calcBounds as L, equalCoords as J } from "../../../utils/Positioning.js";
|
|
12
|
-
import { s as f } from "../../../../../chunks/TooltipDesktop.module-
|
|
12
|
+
import { s as f } from "../../../../../chunks/TooltipDesktop.module-BRkBuup-.js";
|
|
13
13
|
const Q = {
|
|
14
14
|
column: "translateX",
|
|
15
15
|
row: "translateY"
|
|
@@ -2,7 +2,7 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import p from "react";
|
|
3
3
|
import { ETooltipDirection as e } from "../../../enums.js";
|
|
4
4
|
import { c } from "../../../../../chunks/vendor-CF2m175I.js";
|
|
5
|
-
import { s as t } from "../../../../../chunks/TooltipDesktop.module-
|
|
5
|
+
import { s as t } from "../../../../../chunks/TooltipDesktop.module-BRkBuup-.js";
|
|
6
6
|
const l = p.forwardRef((r, i) => {
|
|
7
7
|
const { direction: s } = r;
|
|
8
8
|
let o;
|
|
@@ -6,25 +6,25 @@ import { DropdownMobile as _ } from "../../../Dropdown/mobile/DropdownMobile.js"
|
|
|
6
6
|
import { DropdownMobileBody as h } from "../../../Dropdown/mobile/DropdownMobileBody.js";
|
|
7
7
|
import { TooltipMobileCloseButton as y } from "./components/TooltipMobileCloseButton.js";
|
|
8
8
|
import { c as B } from "../../../../chunks/vendor-CF2m175I.js";
|
|
9
|
-
const T = "
|
|
9
|
+
const T = "tooltipMobile__47897569", g = "tooltipMobileContent__d269bb2b", H = "headerless__2937d68e", r = {
|
|
10
10
|
tooltipMobile: T,
|
|
11
11
|
tooltipMobileContent: g,
|
|
12
12
|
headerless: H
|
|
13
13
|
}, z = ({
|
|
14
14
|
children: N,
|
|
15
|
-
className:
|
|
15
|
+
className: d,
|
|
16
16
|
renderContainer: R,
|
|
17
17
|
targetRef: j,
|
|
18
18
|
disableAdaptiveMode: D,
|
|
19
19
|
isOpen: o,
|
|
20
20
|
onShow: t,
|
|
21
|
-
...
|
|
21
|
+
...p
|
|
22
22
|
}) => {
|
|
23
|
-
const { elements: e, setTooltipOpen:
|
|
23
|
+
const { elements: e, setTooltipOpen: m } = f(C), i = u(null), c = B(r.tooltipMobile, { [r.headerless]: e.mobileHeader === null }, d);
|
|
24
24
|
M(() => {
|
|
25
25
|
o && (t == null || t(i.current));
|
|
26
26
|
}, [o]);
|
|
27
|
-
const
|
|
27
|
+
const a = () => {
|
|
28
28
|
var n;
|
|
29
29
|
return /* @__PURE__ */ s(y, { ...(n = e.closeButton) == null ? void 0 : n.props });
|
|
30
30
|
};
|
|
@@ -36,15 +36,15 @@ const T = "tooltipMobile__2a9a24f0", g = "tooltipMobileContent__ca0ef015", H = "
|
|
|
36
36
|
className: c,
|
|
37
37
|
tabIndex: -1,
|
|
38
38
|
opened: o,
|
|
39
|
-
setOpened:
|
|
40
|
-
...
|
|
39
|
+
setOpened: m,
|
|
40
|
+
...p,
|
|
41
41
|
ref: i,
|
|
42
42
|
children: [
|
|
43
43
|
e.mobileHeader,
|
|
44
44
|
/* @__PURE__ */ l(h, { className: r.tooltipMobileContent, children: [
|
|
45
45
|
e.body,
|
|
46
46
|
e.link,
|
|
47
|
-
e.mobileHeader === null &&
|
|
47
|
+
e.mobileHeader === null && a()
|
|
48
48
|
] })
|
|
49
49
|
]
|
|
50
50
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
3
|
import { c as y } from "../../chunks/vendor-CF2m175I.js";
|
|
4
4
|
import { EFontWeightText as e, ECaptionSize as c, EFontType as T } from "./enums.js";
|
|
5
|
-
import { t as s, m as b } from "../../chunks/utils-
|
|
6
|
-
const R = "
|
|
5
|
+
import { t as s, m as b } from "../../chunks/utils-VD40Qwop.js";
|
|
6
|
+
const R = "caption__13694852", E = "regular__5eaf5817", u = "semibold__ebfbc5a3", x = "c1__d90aca22", S = "c2__7618a56e", h = "d1__afe3b41b", o = {
|
|
7
7
|
caption: R,
|
|
8
8
|
regular: E,
|
|
9
9
|
semibold: u,
|
|
@@ -17,7 +17,7 @@ const R = "caption__15304f5d", E = "regular__bd340e80", u = "semibold__adc50824"
|
|
|
17
17
|
[c.C1]: o.c1,
|
|
18
18
|
[c.C2]: o.c2,
|
|
19
19
|
[c.D1]: o.d1
|
|
20
|
-
}, L =
|
|
20
|
+
}, L = g(
|
|
21
21
|
({
|
|
22
22
|
children: n,
|
|
23
23
|
className: p,
|
|
@@ -27,9 +27,9 @@ const R = "caption__15304f5d", E = "regular__bd340e80", u = "semibold__adc50824"
|
|
|
27
27
|
weight: l = e.REGULAR,
|
|
28
28
|
underline: t,
|
|
29
29
|
strikethrough: a,
|
|
30
|
-
...
|
|
31
|
-
},
|
|
32
|
-
const
|
|
30
|
+
...C
|
|
31
|
+
}, _) => {
|
|
32
|
+
const d = y(
|
|
33
33
|
s.typography,
|
|
34
34
|
o.caption,
|
|
35
35
|
A[r],
|
|
@@ -42,7 +42,7 @@ const R = "caption__15304f5d", E = "regular__bd340e80", u = "semibold__adc50824"
|
|
|
42
42
|
},
|
|
43
43
|
p
|
|
44
44
|
);
|
|
45
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ f(i, { ref: _, className: d, ...C, children: n });
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
L.displayName = "Caption";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
3
|
import { c as g } from "../../chunks/vendor-CF2m175I.js";
|
|
4
4
|
import { ETextSize as e, EFontWeightText as b, ELineType as r, EFontType as C } from "./enums.js";
|
|
5
|
-
import { t, m as R } from "../../chunks/utils-
|
|
6
|
-
const E = "
|
|
5
|
+
import { t, m as R } from "../../chunks/utils-VD40Qwop.js";
|
|
6
|
+
const E = "text__db5a2ad3", L = "regular__5eaf5817", A = "semibold__ebfbc5a3", u = "b1__5fd5e8bd", B = "b2__e0cd448c", M = "b3__e2605073", S = "b4__d61c0f6b", s = {
|
|
7
7
|
text: E,
|
|
8
8
|
regular: L,
|
|
9
9
|
semibold: A,
|
|
@@ -22,7 +22,7 @@ const E = "text__be09efb8", L = "regular__bd340e80", A = "semibold__adc50824", u
|
|
|
22
22
|
}, N = {
|
|
23
23
|
[r.NORMAL]: "",
|
|
24
24
|
[r.COMPACT]: t.compact
|
|
25
|
-
}, O =
|
|
25
|
+
}, O = y(
|
|
26
26
|
({
|
|
27
27
|
children: c,
|
|
28
28
|
className: m,
|
|
@@ -35,7 +35,7 @@ const E = "text__be09efb8", L = "regular__bd340e80", A = "semibold__adc50824", u
|
|
|
35
35
|
strikethrough: a,
|
|
36
36
|
...x
|
|
37
37
|
}, _) => {
|
|
38
|
-
const
|
|
38
|
+
const d = g(
|
|
39
39
|
t.typography,
|
|
40
40
|
s.text,
|
|
41
41
|
h[n],
|
|
@@ -49,7 +49,7 @@ const E = "text__be09efb8", L = "regular__bd340e80", A = "semibold__adc50824", u
|
|
|
49
49
|
},
|
|
50
50
|
m
|
|
51
51
|
);
|
|
52
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ f(p, { ref: _, className: d, ...x, children: c });
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
55
|
O.displayName = "Text";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as T } from "react";
|
|
3
3
|
import { c as b } from "../../chunks/vendor-CF2m175I.js";
|
|
4
|
-
import { ETitleSize as
|
|
5
|
-
import { t as s, m as u } from "../../chunks/utils-
|
|
6
|
-
const y = "
|
|
4
|
+
import { ETitleSize as a, EFontWeightTitle as o, EFontType as g } from "./enums.js";
|
|
5
|
+
import { t as s, m as u } from "../../chunks/utils-VD40Qwop.js";
|
|
6
|
+
const y = "title__cb52ba0a", E = "regular__5eaf5817", C = "semibold__ebfbc5a3", S = "medium__ffa29861", M = "bold__2346c450", R = "h1__3f84978c", D = "h2__5c65e98c", F = "h3__03e6f499", t = {
|
|
7
7
|
title: y,
|
|
8
8
|
regular: E,
|
|
9
9
|
semibold: C,
|
|
@@ -13,9 +13,9 @@ const y = "title__08c0f612", E = "regular__bd340e80", C = "semibold__adc50824",
|
|
|
13
13
|
h2: D,
|
|
14
14
|
h3: F
|
|
15
15
|
}, I = {
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
16
|
+
[a.H1]: t.h1,
|
|
17
|
+
[a.H2]: t.h2,
|
|
18
|
+
[a.H3]: t.h3
|
|
19
19
|
}, L = {
|
|
20
20
|
[o.MEDIUM]: t.medium,
|
|
21
21
|
[o.REGULAR]: t.regular,
|
|
@@ -25,20 +25,20 @@ const y = "title__08c0f612", E = "regular__bd340e80", C = "semibold__adc50824",
|
|
|
25
25
|
({
|
|
26
26
|
children: i,
|
|
27
27
|
className: r,
|
|
28
|
-
size:
|
|
29
|
-
tag: c = `${
|
|
28
|
+
size: m,
|
|
29
|
+
tag: c = `${m}`,
|
|
30
30
|
type: n = g.PRIMARY,
|
|
31
|
-
weight:
|
|
31
|
+
weight: h = o.SEMIBOLD,
|
|
32
32
|
underline: e,
|
|
33
33
|
strikethrough: l,
|
|
34
|
-
...
|
|
35
|
-
},
|
|
36
|
-
const
|
|
34
|
+
...p
|
|
35
|
+
}, _) => {
|
|
36
|
+
const d = b(
|
|
37
37
|
s.typography,
|
|
38
38
|
t.title,
|
|
39
|
-
I[
|
|
39
|
+
I[m],
|
|
40
40
|
u[n],
|
|
41
|
-
L[
|
|
41
|
+
L[h],
|
|
42
42
|
{
|
|
43
43
|
[s.strikethrough]: !!l && !e,
|
|
44
44
|
[s.underline]: !!e && !l,
|
|
@@ -46,7 +46,7 @@ const y = "title__08c0f612", E = "regular__bd340e80", C = "semibold__adc50824",
|
|
|
46
46
|
},
|
|
47
47
|
r
|
|
48
48
|
);
|
|
49
|
-
return /* @__PURE__ */ f(c, { ref:
|
|
49
|
+
return /* @__PURE__ */ f(c, { ref: _, className: d, ...p, children: i });
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
x.displayName = "Title";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var f = (s, r, e) => r in s ?
|
|
3
|
-
var
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var f = (s, r, e) => r in s ? m(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
3
|
+
var o = (s, r, e) => f(s, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jsx as C, jsxs as A } from "react/jsx-runtime";
|
|
5
|
-
import c, { createElement as
|
|
5
|
+
import c, { createElement as l } from "react";
|
|
6
6
|
import { createRoot as L } from "react-dom/client";
|
|
7
7
|
import { c as h } from "../../../chunks/vendor-CF2m175I.js";
|
|
8
|
-
const U = "
|
|
8
|
+
const U = "uploadZone__4d93ecba", N = "uploadZoneDragArea__78ab5ceb", x = "uploadZoneContainerDragArea__d4f231c2", _ = "uploadZoneInput__442dd692", p = {
|
|
9
9
|
uploadZone: U,
|
|
10
10
|
uploadZoneDragArea: N,
|
|
11
|
-
uploadZoneContainerDragArea:
|
|
12
|
-
uploadZoneInput:
|
|
11
|
+
uploadZoneContainerDragArea: x,
|
|
12
|
+
uploadZoneInput: _
|
|
13
13
|
}, D = ({ className: s, ...r }) => {
|
|
14
14
|
const e = c.useContext(g), t = (a) => {
|
|
15
15
|
e.onChange(a.target.files, a);
|
|
16
|
-
},
|
|
16
|
+
}, n = (a) => {
|
|
17
17
|
a.currentTarget.value = "";
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ l(
|
|
20
20
|
"input",
|
|
21
21
|
{
|
|
22
22
|
...r,
|
|
23
23
|
type: "file",
|
|
24
24
|
className: h(s, p.uploadZoneInput),
|
|
25
25
|
onChange: t,
|
|
26
|
-
onClick:
|
|
26
|
+
onClick: n,
|
|
27
27
|
ref: e.setInputNode,
|
|
28
28
|
key: "uploadZoneInput"
|
|
29
29
|
}
|
|
@@ -42,29 +42,29 @@ class u extends c.PureComponent {
|
|
|
42
42
|
// Описание - https://stackoverflow.com/questions/7110353/html5-dragleave-fired-when-hovering-a-child-element.
|
|
43
43
|
// Если counter > 0 - означает, что перетаскиваемый объект в пределах окна браузера.
|
|
44
44
|
/** Каунтер для подсчёта drag-перемещений по странице. */
|
|
45
|
-
|
|
45
|
+
o(this, "counter", 0);
|
|
46
46
|
/** Элемент-обёртка для дроп-зоны. */
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
o(this, "dropZoneWrapperDiv", null);
|
|
48
|
+
o(this, "state", {
|
|
49
49
|
hoverOnDrag: !1,
|
|
50
50
|
inputNode: void 0
|
|
51
51
|
});
|
|
52
|
-
|
|
52
|
+
o(this, "addListeners", (e) => {
|
|
53
53
|
e && (e.addEventListener("dragenter", this.handleDragEnter), e.addEventListener("dragleave", this.handleDragLeave));
|
|
54
54
|
});
|
|
55
|
-
|
|
55
|
+
o(this, "removeListeners", (e) => {
|
|
56
56
|
e && (e.removeEventListener("dragenter", this.handleDragEnter), e.removeEventListener("dragleave", this.handleDragLeave));
|
|
57
57
|
});
|
|
58
|
-
|
|
59
|
-
const { children: e, className: t, onChange:
|
|
58
|
+
o(this, "createDropZoneDiv", () => {
|
|
59
|
+
const { children: e, className: t, onChange: n, renderContainerContent: a, dropZoneContainer: v, ...d } = this.props, i = document.createElement("div");
|
|
60
60
|
return L(i).render(
|
|
61
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ l(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
64
|
className: h(p.uploadZoneContainerDragArea, t),
|
|
65
65
|
onDragOver: this.handlePreventDefault,
|
|
66
66
|
onDrop: this.fileDrop,
|
|
67
|
-
...
|
|
67
|
+
...d,
|
|
68
68
|
key: "uploadZoneDragArea",
|
|
69
69
|
role: "none"
|
|
70
70
|
},
|
|
@@ -72,58 +72,58 @@ class u extends c.PureComponent {
|
|
|
72
72
|
)
|
|
73
73
|
), i;
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
o(this, "handleAreaClick", (e) => {
|
|
76
76
|
e.stopPropagation(), this.openUploadDialog();
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
o(this, "openUploadDialog", () => {
|
|
79
79
|
const { inputNode: e } = this.state;
|
|
80
80
|
e == null || e.click();
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
o(this, "handlePreventDefault", (e) => {
|
|
83
83
|
const { onDragOver: t } = this.props;
|
|
84
84
|
e.preventDefault(), t == null || t(e);
|
|
85
85
|
});
|
|
86
|
-
|
|
86
|
+
o(this, "handleDragEnter", () => {
|
|
87
87
|
this.counter++, this.counter === 1 && this.setState({ hoverOnDrag: !0 });
|
|
88
88
|
});
|
|
89
|
-
|
|
89
|
+
o(this, "handleDragLeave", () => {
|
|
90
90
|
this.counter--, this.counter === 0 && this.setState({ hoverOnDrag: !1 });
|
|
91
91
|
});
|
|
92
|
-
|
|
93
|
-
const { onDrop: t, onChange:
|
|
94
|
-
e.preventDefault(), t == null || t(e),
|
|
92
|
+
o(this, "fileDrop", (e) => {
|
|
93
|
+
const { onDrop: t, onChange: n } = this.props;
|
|
94
|
+
e.preventDefault(), t == null || t(e), n(e.dataTransfer.files, e), this.setState({ hoverOnDrag: !1 }), this.counter = 0;
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
componentDidMount() {
|
|
98
98
|
this.addListeners(this.props.dropZoneContainer);
|
|
99
99
|
}
|
|
100
100
|
componentDidUpdate(e, t) {
|
|
101
|
-
const { dropZoneContainer:
|
|
102
|
-
|
|
101
|
+
const { dropZoneContainer: n } = this.props, { hoverOnDrag: a } = this.state;
|
|
102
|
+
n !== e.dropZoneContainer && (this.removeListeners(e.dropZoneContainer), this.addListeners(n)), a !== t.hoverOnDrag && n && (a ? (this.dropZoneWrapperDiv = this.createDropZoneDiv(), n.appendChild(this.dropZoneWrapperDiv)) : this.dropZoneWrapperDiv && n.removeChild(this.dropZoneWrapperDiv));
|
|
103
103
|
}
|
|
104
104
|
componentWillUnmount() {
|
|
105
105
|
this.removeListeners(this.props.dropZoneContainer);
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
|
-
const { children: e, className: t, onChange:
|
|
108
|
+
const { children: e, className: t, onChange: n, renderContainerContent: a, dropZoneContainer: v, ...d } = this.props, { inputNode: i } = this.state;
|
|
109
109
|
return /* @__PURE__ */ C(
|
|
110
110
|
g.Provider,
|
|
111
111
|
{
|
|
112
112
|
value: {
|
|
113
113
|
inputNode: i,
|
|
114
|
-
onChange:
|
|
114
|
+
onChange: n,
|
|
115
115
|
openUploadDialog: this.openUploadDialog,
|
|
116
|
-
setInputNode: (
|
|
117
|
-
this.setState({ inputNode:
|
|
116
|
+
setInputNode: (Z) => {
|
|
117
|
+
this.setState({ inputNode: Z });
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
children: /* @__PURE__ */ A("div", { className: p.uploadZone, "data-tx":
|
|
121
|
-
/* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ A("div", { className: p.uploadZone, "data-tx": "0.1.6", children: [
|
|
121
|
+
/* @__PURE__ */ l(
|
|
122
122
|
"div",
|
|
123
123
|
{
|
|
124
124
|
className: h(p.uploadZoneDragArea, t),
|
|
125
125
|
onClick: this.handleAreaClick,
|
|
126
|
-
...
|
|
126
|
+
...d,
|
|
127
127
|
key: "uploadZoneDragArea",
|
|
128
128
|
role: "none"
|
|
129
129
|
}
|
|
@@ -134,7 +134,7 @@ class u extends c.PureComponent {
|
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
o(u, "displayName", "UploadZone"), o(u, "Input", D);
|
|
138
138
|
export {
|
|
139
139
|
g as U,
|
|
140
140
|
D as UploadZoneInput,
|