@sberbusiness/triplex-next 0.1.4 → 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.
Files changed (291) hide show
  1. package/README.md +145 -0
  2. package/chunks/AlertProcessSpoiler-BuN7zhGO.js +39 -0
  3. package/chunks/Card.module-ByP22Mc4.js +17 -0
  4. package/chunks/DropdownListItem-CM0DOekv.js +56 -0
  5. package/chunks/DropdownMobile.module-gjHocEKh.js +19 -0
  6. package/chunks/Footer.module-B1rO0bcd.js +11 -0
  7. package/chunks/FormFieldInput-3TmHcNY0.js +62 -0
  8. package/chunks/HeaderLayoutSidebar.module-CEXHjsmH.js +9 -0
  9. package/chunks/HeaderTabs.module-YFm2izz6.js +9 -0
  10. package/chunks/HeaderTitle.module-lv649tnz.js +9 -0
  11. package/chunks/ListItemControlsButton-BpUzyKya.js +43 -0
  12. package/chunks/ListItemTail.module-D7Oa-l-5.js +12 -0
  13. package/chunks/ListMasterFooter.module-1LjIdZNa.js +10 -0
  14. package/chunks/Overlay.module-BbpDNlm7.js +18 -0
  15. package/chunks/Page.module-DAinpecX.js +16 -0
  16. package/chunks/TabsExtended.module-CQBdl7x1.js +13 -0
  17. package/chunks/TabsExtendedUtils-BT4b2wK1.js +23 -0
  18. package/chunks/TooltipDesktop.module-BRkBuup-.js +19 -0
  19. package/chunks/index-CLQ4mLUp.js +931 -0
  20. package/chunks/utils-VD40Qwop.js +36 -0
  21. package/chunks/vendor-CF2m175I.js +5891 -0
  22. package/components/Alert/AlertContext/AlertContext.js +52 -0
  23. package/components/Alert/AlertProcess/AlertProcess.js +60 -0
  24. package/components/Alert/AlertProcess/AlertProcessContext.js +10 -0
  25. package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +11 -0
  26. package/components/Alert/AlertTypeUtils.js +12 -0
  27. package/components/Alert/EAlertType.js +5 -0
  28. package/components/Alert/index.js +11 -0
  29. package/components/Body/Body.js +12 -0
  30. package/components/Body/index.js +5 -0
  31. package/components/Button/Button.js +14 -0
  32. package/components/Button/ButtonBase.js +8 -0
  33. package/components/Button/ButtonDropdown.js +26 -0
  34. package/components/Button/ButtonDropdownExtended.js +9 -0
  35. package/components/Button/ButtonIcon.js +29 -0
  36. package/components/Button/enums.js +7 -0
  37. package/components/Button/index.js +16 -0
  38. package/components/Card/CardAction.js +109 -0
  39. package/components/Card/CardStatic.js +34 -0
  40. package/components/Card/components/CardContent/CardContent.js +31 -0
  41. package/components/Card/components/CardContent/components/CardContentBody.js +9 -0
  42. package/components/Card/components/CardContent/components/CardContentFooter.js +9 -0
  43. package/components/Card/components/CardContent/components/CardContentHeader.js +9 -0
  44. package/components/Card/components/CardMedia.js +12 -0
  45. package/components/Card/enums.js +7 -0
  46. package/components/Card/index.js +11 -0
  47. package/components/Card/types.js +2 -0
  48. package/components/Card/utils.js +14 -0
  49. package/components/Checkbox/Checkbox.js +36 -0
  50. package/components/Checkbox/CheckboxXGroup.js +20 -0
  51. package/components/Checkbox/CheckboxYGroup.js +13 -0
  52. package/components/Checkbox/enum.js +5 -0
  53. package/components/Checkbox/index.js +11 -0
  54. package/components/Col/Col.js +183 -0
  55. package/components/Col/index.js +5 -0
  56. package/components/DesignTokens/DesignTokenUtils.js +82 -0
  57. package/components/DesignTokens/DesignTokensComponents.js +111 -0
  58. package/components/DesignTokens/DesignTokensComponentsThemeDark.js +111 -0
  59. package/components/DesignTokens/DesignTokensCore.js +466 -0
  60. package/components/DesignTokens/DesignTokensCoreThemeDark.js +6 -0
  61. package/components/DesignTokens/GetTokensValueByTheme.js +11 -0
  62. package/components/DesignTokens/components/AlertContext.js +20 -0
  63. package/components/DesignTokens/components/AlertProcess.js +23 -0
  64. package/components/DesignTokens/components/Button.js +107 -0
  65. package/components/DesignTokens/components/Card.js +53 -0
  66. package/components/DesignTokens/components/Checkbox.js +35 -0
  67. package/components/DesignTokens/components/Dropdown.js +11 -0
  68. package/components/DesignTokens/components/DropdownList.js +20 -0
  69. package/components/DesignTokens/components/DropdownMobile.js +23 -0
  70. package/components/DesignTokens/components/DropdownMobileList.js +11 -0
  71. package/components/DesignTokens/components/FooterPage.js +9 -0
  72. package/components/DesignTokens/components/FormField.js +50 -0
  73. package/components/DesignTokens/components/HeaderPage.js +9 -0
  74. package/components/DesignTokens/components/Link.js +20 -0
  75. package/components/DesignTokens/components/ListItem.js +20 -0
  76. package/components/DesignTokens/components/ListItemControlsButton.js +11 -0
  77. package/components/DesignTokens/components/ListMaster.js +23 -0
  78. package/components/DesignTokens/components/Loader.js +11 -0
  79. package/components/DesignTokens/components/LoaderWidget.js +17 -0
  80. package/components/DesignTokens/components/Overlay.js +11 -0
  81. package/components/DesignTokens/components/Page.js +9 -0
  82. package/components/DesignTokens/components/Pagination.js +23 -0
  83. package/components/DesignTokens/components/Radio.js +41 -0
  84. package/components/DesignTokens/components/SegmentedControl.js +20 -0
  85. package/components/DesignTokens/components/SegmentedControlSegment.js +158 -0
  86. package/components/DesignTokens/components/Skeleton.js +20 -0
  87. package/components/DesignTokens/components/Tabs.js +26 -0
  88. package/components/DesignTokens/components/Tooltip.js +40 -0
  89. package/components/DesignTokens/components/Typography.js +41 -0
  90. package/components/DesignTokens/components/UploadZone.js +23 -0
  91. package/components/DesignTokens/components/index.js +90 -0
  92. package/components/DesignTokens/index.js +11 -0
  93. package/components/DesignTokens/types/DesignTokenTypes.js +2 -0
  94. package/components/DesignTokens/types/DesignTokensTypes.js +134 -0
  95. package/components/Dropdown/Dropdown.js +10 -0
  96. package/components/Dropdown/DropdownListContext.js +10 -0
  97. package/components/Dropdown/desktop/DropdownDesktop.js +21 -0
  98. package/components/Dropdown/desktop/DropdownList.js +97 -0
  99. package/components/Dropdown/desktop/DropdownListItem.js +9 -0
  100. package/components/Dropdown/enums.js +8 -0
  101. package/components/Dropdown/index.js +32 -0
  102. package/components/Dropdown/mobile/DropdownMobile.js +22 -0
  103. package/components/Dropdown/mobile/DropdownMobileBody.js +12 -0
  104. package/components/Dropdown/mobile/DropdownMobileClose.js +14 -0
  105. package/components/Dropdown/mobile/DropdownMobileFooter.js +12 -0
  106. package/components/Dropdown/mobile/DropdownMobileHeader.js +15 -0
  107. package/components/Dropdown/mobile/DropdownMobileInner.js +56 -0
  108. package/components/Dropdown/mobile/DropdownMobileInput.js +12 -0
  109. package/components/Dropdown/mobile/DropdownMobileList.js +21 -0
  110. package/components/Dropdown/mobile/DropdownMobileListItem.js +37 -0
  111. package/components/Dropdown/mobile/index.js +21 -0
  112. package/components/Footer/Footer.js +29 -0
  113. package/components/Footer/components/FooterDescription.js +20 -0
  114. package/components/Footer/components/FooterDescriptionContent.js +12 -0
  115. package/components/Footer/components/FooterDescriptionControls.js +12 -0
  116. package/components/Footer/index.js +11 -0
  117. package/components/FormField/FormField.js +76 -0
  118. package/components/FormField/FormFieldContext.js +27 -0
  119. package/components/FormField/FormFieldDescriptionContext.js +13 -0
  120. package/components/FormField/components/FormFieldClear.js +29 -0
  121. package/components/FormField/components/FormFieldCounter.js +16 -0
  122. package/components/FormField/components/FormFieldDescription.js +16 -0
  123. package/components/FormField/components/FormFieldInput.js +9 -0
  124. package/components/FormField/components/FormFieldLabel.js +42 -0
  125. package/components/FormField/components/FormFieldMaskedInput.js +95 -0
  126. package/components/FormField/components/FormFieldMaskedInputPresets.js +168 -0
  127. package/components/FormField/components/FormFieldPostfix.js +24 -0
  128. package/components/FormField/components/FormFieldPrefix.js +24 -0
  129. package/components/FormField/components/FormFieldTextarea.js +42 -0
  130. package/components/FormField/consts.js +5 -0
  131. package/components/FormField/enums.js +5 -0
  132. package/components/FormField/index.js +25 -0
  133. package/components/FormGroup/FormGroup.js +8 -0
  134. package/components/FormGroup/index.js +5 -0
  135. package/components/Gap/Gap.js +8 -0
  136. package/components/Gap/index.js +5 -0
  137. package/components/Header/Header.js +40 -0
  138. package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +20 -0
  139. package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +12 -0
  140. package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +12 -0
  141. package/components/Header/components/HeaderSubheader/HeaderSubheader.js +22 -0
  142. package/components/Header/components/HeaderTabs/HeaderTabs.js +20 -0
  143. package/components/Header/components/HeaderTabs/HeaderTabsContent.js +12 -0
  144. package/components/Header/components/HeaderTabs/HeaderTabsControls.js +12 -0
  145. package/components/Header/components/HeaderTitle/HeaderTitle.js +20 -0
  146. package/components/Header/components/HeaderTitle/HeaderTitleContent.js +12 -0
  147. package/components/Header/components/HeaderTitle/HeaderTitleControls.js +12 -0
  148. package/components/Header/index.js +25 -0
  149. package/components/Link/Link.js +72 -0
  150. package/components/Link/index.js +5 -0
  151. package/components/List/List.js +23 -0
  152. package/components/List/ListSortable.js +75 -0
  153. package/components/List/components/ListEmptyState.js +13 -0
  154. package/components/List/components/ListItem.js +21 -0
  155. package/components/List/components/ListItemContent.js +27 -0
  156. package/components/List/components/ListItemContext.js +10 -0
  157. package/components/List/components/ListItemControls.js +13 -0
  158. package/components/List/components/ListItemControlsButton.js +10 -0
  159. package/components/List/components/ListItemControlsButtonDropdown.js +22 -0
  160. package/components/List/components/ListItemLoading.js +13 -0
  161. package/components/List/components/ListItemSelectable.js +46 -0
  162. package/components/List/components/ListItemTable.js +22 -0
  163. package/components/List/components/ListItemTailLeft.js +24 -0
  164. package/components/List/components/ListItemTailRight.js +24 -0
  165. package/components/List/components/ListSortableItem.js +21 -0
  166. package/components/List/components/ListSortableItemControls.js +21 -0
  167. package/components/List/components/ListSortableItemTarget.js +28 -0
  168. package/components/List/index.js +35 -0
  169. package/components/ListMaster/ListMaster.js +21 -0
  170. package/components/ListMaster/components/ListMasterBody.js +19 -0
  171. package/components/ListMaster/components/ListMasterChipGroup.js +18 -0
  172. package/components/ListMaster/components/ListMasterFooter.js +26 -0
  173. package/components/ListMaster/components/ListMasterFooterControls.js +12 -0
  174. package/components/ListMaster/components/ListMasterFooterDescription.js +12 -0
  175. package/components/ListMaster/components/ListMasterHeader.js +40 -0
  176. package/components/ListMaster/components/SelectionControls.js +22 -0
  177. package/components/ListMaster/index.js +19 -0
  178. package/components/Loader/LoaderMiddle/LoaderMiddle.js +22 -0
  179. package/components/Loader/LoaderSmall/LoaderSmall.js +48 -0
  180. package/components/Loader/LoaderSmall/enum.js +6 -0
  181. package/components/Loader/index.js +10 -0
  182. package/components/LoaderWidget/LoaderWidget.js +28 -0
  183. package/components/LoaderWidget/index.js +5 -0
  184. package/components/MediaWidth/MediaBetweenWidth.js +9 -0
  185. package/components/MediaWidth/MediaMaxWidth.js +6 -0
  186. package/components/MediaWidth/MediaMinWidth.js +6 -0
  187. package/components/MediaWidth/MediaWidth.js +10 -0
  188. package/components/MediaWidth/index.js +13 -0
  189. package/components/MediaWidth/useMatchMedia.js +14 -0
  190. package/components/MobileView/MobileView.js +8 -0
  191. package/components/MobileView/index.js +5 -0
  192. package/components/Overlay/Overlay.js +57 -0
  193. package/components/Overlay/OverlayBase.js +28 -0
  194. package/components/Overlay/OverlayMask.js +19 -0
  195. package/components/Overlay/OverlayPanel.js +46 -0
  196. package/components/Page/Page.js +23 -0
  197. package/components/Page/components/BodyPage.js +11 -0
  198. package/components/Page/components/FooterPage.js +39 -0
  199. package/components/Page/components/HeaderPage.js +42 -0
  200. package/components/Page/components/enums.js +6 -0
  201. package/components/Page/index.js +8 -0
  202. package/components/Pagination/Pagination.js +22 -0
  203. package/components/Pagination/components/PaginationExtended.js +22 -0
  204. package/components/Pagination/components/PaginationNavigation.js +67 -0
  205. package/components/Pagination/components/PaginationNavigationButton.js +29 -0
  206. package/components/Pagination/components/PaginationNavigationExtended.js +13 -0
  207. package/components/Pagination/components/PaginationNavigationExtendedItem.js +10 -0
  208. package/components/Pagination/components/PaginationPageButton.js +29 -0
  209. package/components/Pagination/components/PaginationPageEllipsis.js +13 -0
  210. package/components/Pagination/components/PaginationSelect.js +35 -0
  211. package/components/Pagination/enums.js +5 -0
  212. package/components/Pagination/index.js +23 -0
  213. package/components/Pagination/utils/paginationUtils.js +34 -0
  214. package/components/Portal/Portal.js +6 -0
  215. package/components/Radio/Radio.js +30 -0
  216. package/components/Radio/RadioXGroup.js +20 -0
  217. package/components/Radio/RadioYGroup.js +13 -0
  218. package/components/Radio/enum.js +5 -0
  219. package/components/Radio/index.js +11 -0
  220. package/components/Row/Row.js +14 -0
  221. package/components/Row/index.js +5 -0
  222. package/components/SegmentedControl/SegmentedControl.js +10 -0
  223. package/components/SegmentedControl/SegmentedControlSegment.js +11 -0
  224. package/components/SegmentedControl/enums.js +7 -0
  225. package/components/SegmentedControl/index.js +11 -0
  226. package/components/SegmentedControl/types.js +2 -0
  227. package/components/Skeleton/Skeleton.js +22 -0
  228. package/components/Skeleton/enums.js +5 -0
  229. package/components/Skeleton/index.js +7 -0
  230. package/components/SwipeableArea/SwipeableArea.js +140 -0
  231. package/components/SwipeableArea/index.js +5 -0
  232. package/components/TabsExtended/TabsExtended.js +38 -0
  233. package/components/TabsExtended/TabsExtendedContext.js +17 -0
  234. package/components/TabsExtended/TabsExtendedUtils.js +8 -0
  235. package/components/TabsExtended/components/TabsExtendedContent.js +20 -0
  236. package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +26 -0
  237. package/components/TabsExtended/components/TabsExtendedTab.js +38 -0
  238. package/components/TabsExtended/components/TabsExtendedTabButton.js +22 -0
  239. package/components/TabsExtended/components/TabsExtendedTabContext.js +8 -0
  240. package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +70 -0
  241. package/components/TabsExtended/enums.js +5 -0
  242. package/components/TabsExtended/index.js +7 -0
  243. package/components/TextField/MaskedField.js +92 -0
  244. package/components/TextField/TextField.js +92 -0
  245. package/components/TextField/TextFieldBase.js +92 -0
  246. package/components/TextField/index.js +6 -0
  247. package/components/ThemeProvider/ETriplexNextTheme.js +5 -0
  248. package/components/ThemeProvider/ThemeProvider.js +28 -0
  249. package/components/ThemeProvider/ThemeProviderContext.js +14 -0
  250. package/components/ThemeProvider/components/ThemeProviderView.js +36 -0
  251. package/components/ThemeProvider/index.js +11 -0
  252. package/components/ThemeProvider/useToken.js +10 -0
  253. package/components/Tooltip/Tooltip.js +68 -0
  254. package/components/Tooltip/TootlipContext.js +18 -0
  255. package/components/Tooltip/components/common/TooltipBody.js +16 -0
  256. package/components/Tooltip/components/common/TooltipLink.js +34 -0
  257. package/components/Tooltip/components/common/TooltipTarget.js +19 -0
  258. package/components/Tooltip/components/common/TooltipXButton.js +16 -0
  259. package/components/Tooltip/components/desktop/TooltipDesktop.js +69 -0
  260. package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +241 -0
  261. package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +29 -0
  262. package/components/Tooltip/components/mobile/TooltipMobile.js +57 -0
  263. package/components/Tooltip/components/mobile/components/TooltipMobileCloseButton.js +14 -0
  264. package/components/Tooltip/components/mobile/components/TooltipMobileHeader.js +18 -0
  265. package/components/Tooltip/enums.js +14 -0
  266. package/components/Tooltip/index.js +8 -0
  267. package/components/Tooltip/types.js +2 -0
  268. package/components/Tooltip/utils/Positioning.js +124 -0
  269. package/components/Tooltip/utils/useTooltipTheme.js +31 -0
  270. package/components/Typography/Caption.js +54 -0
  271. package/components/Typography/Text.js +62 -0
  272. package/components/Typography/Title.js +58 -0
  273. package/components/Typography/enums.js +11 -0
  274. package/components/Typography/index.js +17 -0
  275. package/components/Typography/types.js +2 -0
  276. package/components/Typography/utils.js +6 -0
  277. package/components/UploadZone/UploadZone.js +10 -0
  278. package/components/UploadZone/components/UploadZoneInput.js +143 -0
  279. package/components/UploadZone/index.js +6 -0
  280. package/components/index.js +256 -0
  281. package/consts/IndentConst.js +2 -0
  282. package/enums/EFocusSource.js +5 -0
  283. package/generated/refTokenTypes.js +5 -0
  284. package/helpers/breakpoints.js +5 -0
  285. package/helpers/less/breakpoints.less +9 -0
  286. package/helpers/less/z-indexes.less +39 -0
  287. package/index.d.ts +4406 -0
  288. package/index.js +257 -0
  289. package/package.json +32 -94
  290. package/styles/triplex-next.css +333 -0
  291. package/utils/keyboard.js +50 -0
@@ -0,0 +1,29 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import c from "react";
3
+ import { ButtonIcon as p } from "../../Button/ButtonIcon.js";
4
+ import { EButtonIconShape as m } from "../../Button/enums.js";
5
+ import { EPaginationNavigationIconDirection as s } from "../enums.js";
6
+ import o from "@sberbusiness/icons-next/CaretleftStrokeSrvIcon24";
7
+ const g = "paginationNavigationButton__7d7a91aa", N = "directionIconNext__ce86a01b", n = {
8
+ paginationNavigationButton: g,
9
+ directionIconNext: N
10
+ }, d = c.forwardRef(
11
+ ({ direction: i, ...a }, e) => {
12
+ const r = i === s.BACK;
13
+ return /* @__PURE__ */ t(
14
+ p,
15
+ {
16
+ className: n.paginationNavigationButton,
17
+ shape: m.SQUIRCLE,
18
+ ...a,
19
+ ref: e,
20
+ children: r ? /* @__PURE__ */ t(o, { paletteIndex: 5 }) : /* @__PURE__ */ t(o, { paletteIndex: 5, className: n.directionIconNext })
21
+ }
22
+ );
23
+ }
24
+ );
25
+ d.displayName = "PaginationNavigationButton";
26
+ export {
27
+ d as PaginationNavigationButton
28
+ };
29
+ //# sourceMappingURL=PaginationNavigationButton.js.map
@@ -0,0 +1,13 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import e from "react";
3
+ import { c as d } from "../../../chunks/vendor-CF2m175I.js";
4
+ const g = "paginationNavigationExtended__3b9e40c1", r = {
5
+ paginationNavigationExtended: g
6
+ }, s = e.forwardRef(
7
+ ({ children: a, className: t, ...i }, n) => /* @__PURE__ */ o("ul", { className: d(r.paginationNavigationExtended, t), ...i, ref: n, children: a })
8
+ );
9
+ s.displayName = "PaginationNavigationExtended";
10
+ export {
11
+ s as PaginationNavigationExtended
12
+ };
13
+ //# sourceMappingURL=PaginationNavigationExtended.js.map
@@ -0,0 +1,10 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import n from "react";
3
+ const r = n.forwardRef(
4
+ ({ children: t, className: a, ...e }, i) => /* @__PURE__ */ o("li", { className: a, ...e, ref: i, children: t })
5
+ );
6
+ r.displayName = "PaginationNavigationExtendedItem";
7
+ export {
8
+ r as PaginationNavigationExtendedItem
9
+ };
10
+ //# sourceMappingURL=PaginationNavigationExtendedItem.js.map
@@ -0,0 +1,29 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import g from "react";
3
+ import { c } from "../../../chunks/vendor-CF2m175I.js";
4
+ const s = "paginationPageButton__f646ef64", u = "currentPage__d40ff357", a = {
5
+ paginationPageButton: s,
6
+ currentPage: u
7
+ }, P = g.forwardRef(
8
+ ({ isCurrent: t = !1, children: n, className: o, ...e }, i) => /* @__PURE__ */ r(
9
+ "button",
10
+ {
11
+ className: c(
12
+ a.paginationPageButton,
13
+ {
14
+ [a.currentPage]: t
15
+ },
16
+ o
17
+ ),
18
+ "aria-live": t ? "polite" : void 0,
19
+ ...e,
20
+ ref: i,
21
+ children: n
22
+ }
23
+ )
24
+ );
25
+ P.displayName = "PaginationPageButton";
26
+ export {
27
+ P as PaginationPageButton
28
+ };
29
+ //# sourceMappingURL=PaginationPageButton.js.map
@@ -0,0 +1,13 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { c as e } from "../../../chunks/vendor-CF2m175I.js";
3
+ import o from "react";
4
+ const t = "pageEllipsis__259712b8", r = {
5
+ pageEllipsis: t
6
+ }, n = o.forwardRef(
7
+ ({ children: s, className: i, ...a }, l) => /* @__PURE__ */ p("span", { className: e(r.pageEllipsis, i), ...a, ref: l, children: s })
8
+ );
9
+ n.displayName = "PaginationPageEllipsis";
10
+ export {
11
+ n as PaginationPageEllipsis
12
+ };
13
+ //# sourceMappingURL=PaginationPageEllipsis.js.map
@@ -0,0 +1,35 @@
1
+ import { jsxs as g, jsx as t } from "react/jsx-runtime";
2
+ import S, { useRef as f } from "react";
3
+ import { j as x, c as N } from "../../../chunks/vendor-CF2m175I.js";
4
+ import "../../Typography/Title.js";
5
+ import { Text as v } from "../../Typography/Text.js";
6
+ import "../../Typography/Caption.js";
7
+ import { ETextSize as _ } from "../../Typography/enums.js";
8
+ const h = "paginationSelect__e9289870", b = "paginationSelectControl__2ec4d515", o = {
9
+ paginationSelect: h,
10
+ paginationSelectControl: b
11
+ }, j = S.forwardRef(
12
+ ({ paginationLabel: c, className: s, hidden: d, options: i, value: a, onChange: n }, m) => {
13
+ const l = f(`Pagination-${x()}`), p = i && i.length > 0 ? i : [10, 20, 50, 100], u = (e) => {
14
+ const r = Number(e.target.value);
15
+ Number.isNaN(r) || n == null || n(r);
16
+ };
17
+ return d ? null : /* @__PURE__ */ g("div", { className: N(o.paginationSelect, s), ref: m, children: [
18
+ /* @__PURE__ */ t(v, { size: _.B3, id: l.current, children: c }),
19
+ /* @__PURE__ */ t("div", { className: o.paginationSelectControl, children: /* @__PURE__ */ t(
20
+ "select",
21
+ {
22
+ "aria-labelledby": l.current,
23
+ value: a !== void 0 ? String(a) : void 0,
24
+ onChange: u,
25
+ children: p.map((e) => /* @__PURE__ */ t("option", { value: e, children: e }, e))
26
+ }
27
+ ) })
28
+ ] });
29
+ }
30
+ );
31
+ j.displayName = "PaginationSelect";
32
+ export {
33
+ j as PaginationSelect
34
+ };
35
+ //# sourceMappingURL=PaginationSelect.js.map
@@ -0,0 +1,5 @@
1
+ var B = /* @__PURE__ */ ((A) => (A[A.BACK = 0] = "BACK", A[A.NEXT = 1] = "NEXT", A))(B || {});
2
+ export {
3
+ B as EPaginationNavigationIconDirection
4
+ };
5
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1,23 @@
1
+ import { PaginationExtended as i } from "./components/PaginationExtended.js";
2
+ import { PaginationNavigation as n } from "./components/PaginationNavigation.js";
3
+ import { PaginationNavigationButton as r } from "./components/PaginationNavigationButton.js";
4
+ import { PaginationNavigationExtended as x } from "./components/PaginationNavigationExtended.js";
5
+ import { PaginationNavigationExtendedItem as m } from "./components/PaginationNavigationExtendedItem.js";
6
+ import { PaginationPageButton as f } from "./components/PaginationPageButton.js";
7
+ import { PaginationPageEllipsis as v } from "./components/PaginationPageEllipsis.js";
8
+ import { PaginationSelect as N } from "./components/PaginationSelect.js";
9
+ import { EPaginationNavigationIconDirection as l } from "./enums.js";
10
+ import { Pagination as u } from "./Pagination.js";
11
+ export {
12
+ l as EPaginationNavigationIconDirection,
13
+ u as Pagination,
14
+ i as PaginationExtended,
15
+ n as PaginationNavigation,
16
+ r as PaginationNavigationButton,
17
+ x as PaginationNavigationExtended,
18
+ m as PaginationNavigationExtendedItem,
19
+ f as PaginationPageButton,
20
+ v as PaginationPageEllipsis,
21
+ N as PaginationSelect
22
+ };
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,34 @@
1
+ import { g as R } from "../../../chunks/vendor-CF2m175I.js";
2
+ const m = -1, h = {
3
+ // Создание массива чисел в заданном диапазоне с заданным шагом.
4
+ generateRange: (g, i, e = 1) => g > i ? [] : R(g, i + 1, e),
5
+ // Создание массивов страниц в начале, конце и вокруг текущей.
6
+ generatePageRanges: (g, i, e, s) => {
7
+ const n = h.generateRange(1, Math.min(e, s)), a = h.generateRange(
8
+ Math.max(s - e + 1, e + 1),
9
+ s
10
+ ), c = s - e - 1 - i * 2, r = Math.max(
11
+ Math.min(g - i, c),
12
+ e + 2
13
+ ), S = e + 2 + i * 2, M = Math.min(
14
+ Math.max(g + i, S),
15
+ s - e - 1
16
+ );
17
+ return { boundaryDivider: 2, endPages: a, siblingsEnd: M, siblingsStart: r, startPages: n };
18
+ },
19
+ // Создание итогового массива страниц для отображения.
20
+ createPagesArray: ({
21
+ currentPage: g,
22
+ siblingCount: i,
23
+ boundaryCount: e,
24
+ totalPages: s
25
+ }) => {
26
+ const { boundaryDivider: p, endPages: t, siblingsEnd: n, siblingsStart: a, startPages: c } = h.generatePageRanges(g, i, e, s), r = c;
27
+ return a > e + p ? r.push(m) : e + 1 < s - e && r.push(e + 1), r.push(...h.generateRange(a, n)), n < s - e - 1 ? r.push(m) : s - e > e && r.push(s - e), r.push(...t), r;
28
+ }
29
+ };
30
+ export {
31
+ m as PAGINATION_ELLIPSIS_VALUE,
32
+ h as PaginationUtils
33
+ };
34
+ //# sourceMappingURL=paginationUtils.js.map
@@ -0,0 +1,6 @@
1
+ import r from "react-dom";
2
+ const e = ({ children: t, container: o }) => r.createPortal(t, o);
3
+ export {
4
+ e as Portal
5
+ };
6
+ //# sourceMappingURL=Portal.js.map
@@ -0,0 +1,30 @@
1
+ import { jsxs as b, jsx as c } from "react/jsx-runtime";
2
+ import p from "react";
3
+ import { ERadioSize as f } from "./enum.js";
4
+ import { c as l } from "../../chunks/vendor-CF2m175I.js";
5
+ const N = "label__7fa2b61e", y = "md__94944cdc", x = "lg__1975bdef", R = "nonempty__eff1c0f4", u = "disabled__352d1fa7", I = "radio__18cee38c", g = "radioIcon__0ea1ebb2", a = {
6
+ label: N,
7
+ md: y,
8
+ lg: x,
9
+ nonempty: R,
10
+ disabled: u,
11
+ radio: I,
12
+ radioIcon: g
13
+ }, h = p.forwardRef((n, t) => {
14
+ const { children: o, className: i, disabled: e, labelAttributes: s, size: d = f.MD, ...r } = n, m = l(a.radio, i, a[d]), _ = l(
15
+ a.label,
16
+ a[d],
17
+ { [a.disabled]: !!e, [a.nonempty]: !!o },
18
+ s == null ? void 0 : s.className
19
+ );
20
+ return /* @__PURE__ */ b("label", { ...s, className: _, "data-tx": "0.1.6", children: [
21
+ /* @__PURE__ */ c("input", { type: "radio", className: m, disabled: e, ...r, ref: t }),
22
+ /* @__PURE__ */ c("span", { className: a.radioIcon }),
23
+ o
24
+ ] });
25
+ });
26
+ h.displayName = "Radio";
27
+ export {
28
+ h as Radio
29
+ };
30
+ //# sourceMappingURL=Radio.js.map
@@ -0,0 +1,20 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as s } from "../../chunks/vendor-CF2m175I.js";
3
+ const c = "radioXGroup__d46efdc3", _ = "label__7fa2b61e", n = {
4
+ radioXGroup: c,
5
+ "indent-12": "indent-12__f8607f37",
6
+ label: _,
7
+ "indent-16": "indent-16__573c2fce",
8
+ "indent-20": "indent-20__f23ca316",
9
+ "indent-24": "indent-24__f327057d",
10
+ "indent-28": "indent-28__fd8924ea",
11
+ "indent-32": "indent-32__68592f09"
12
+ }, l = (e) => {
13
+ const { children: d, className: i, indent: o = 12, ...t } = e, a = s(n.radioXGroup, n[`indent-${o}`], i);
14
+ return /* @__PURE__ */ r("div", { className: a, role: "radiogroup", ...t, children: d });
15
+ };
16
+ l.displayName = "RadioXGroup";
17
+ export {
18
+ l as RadioXGroup
19
+ };
20
+ //# sourceMappingURL=RadioXGroup.js.map
@@ -0,0 +1,13 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { c as e } from "../../chunks/vendor-CF2m175I.js";
3
+ const p = "radioYGroup__bea526c7", t = {
4
+ radioYGroup: p
5
+ }, d = (o) => {
6
+ const { children: r, className: s, ...a } = o, c = e(t.radioYGroup, s);
7
+ return /* @__PURE__ */ i("div", { className: c, role: "radiogroup", ...a, children: r });
8
+ };
9
+ d.displayName = "RadioYGroup";
10
+ export {
11
+ d as RadioYGroup
12
+ };
13
+ //# sourceMappingURL=RadioYGroup.js.map
@@ -0,0 +1,5 @@
1
+ var t = /* @__PURE__ */ ((r) => (r.MD = "md", r.LG = "lg", r))(t || {});
2
+ export {
3
+ t as ERadioSize
4
+ };
5
+ //# sourceMappingURL=enum.js.map
@@ -0,0 +1,11 @@
1
+ import { Radio as p } from "./Radio.js";
2
+ import { RadioXGroup as i } from "./RadioXGroup.js";
3
+ import { RadioYGroup as d } from "./RadioYGroup.js";
4
+ import { ERadioSize as m } from "./enum.js";
5
+ export {
6
+ m as ERadioSize,
7
+ p as Radio,
8
+ i as RadioXGroup,
9
+ d as RadioYGroup
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,14 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { c as m } from "../../chunks/vendor-CF2m175I.js";
3
+ const c = "row__5a568991", i = "noPaddingBottom__369507d3", o = {
4
+ row: c,
5
+ noPaddingBottom: i
6
+ }, e = ({ children: t, className: n, paddingBottom: s = !0, ...r }) => {
7
+ const d = m(n, o.row, { [o.noPaddingBottom]: !s });
8
+ return /* @__PURE__ */ a("div", { className: d, ...r, children: t });
9
+ };
10
+ e.displayName = "Row";
11
+ export {
12
+ e as Row
13
+ };
14
+ //# sourceMappingURL=Row.js.map
@@ -0,0 +1,5 @@
1
+ import { Row as e } from "./Row.js";
2
+ export {
3
+ e as Row
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../chunks/vendor-CF2m175I.js";
4
+ import "./enums.js";
5
+ import { i as n, h as p } from "../../chunks/index-CLQ4mLUp.js";
6
+ export {
7
+ n as SegmentedControl,
8
+ p as SegmentedControlContext
9
+ };
10
+ //# sourceMappingURL=SegmentedControl.js.map
@@ -0,0 +1,11 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../chunks/vendor-CF2m175I.js";
4
+ import { S } from "../../chunks/index-CLQ4mLUp.js";
5
+ import "../Button/ButtonBase.js";
6
+ import "../Button/ButtonIcon.js";
7
+ import "./enums.js";
8
+ export {
9
+ S as SegmentedControlSegment
10
+ };
11
+ //# sourceMappingURL=SegmentedControlSegment.js.map
@@ -0,0 +1,7 @@
1
+ var _ = /* @__PURE__ */ ((r) => (r.SINGLE = "single", r.MULTIPLE = "multiple", r))(_ || {}), a = /* @__PURE__ */ ((r) => (r.GENERAL_1 = "general_1", r.GENERAL_2 = "general_2", r.SECONDARY_1 = "secondary_1", r.SECONDARY_2 = "secondary_2", r))(a || {}), L = /* @__PURE__ */ ((r) => (r.SM = "sm", r.MD = "md", r.LG = "lg", r))(L || {});
2
+ export {
3
+ L as ESegmentedControlSize,
4
+ a as ESegmentedControlTheme,
5
+ _ as ESegmentedControlType
6
+ };
7
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1,11 @@
1
+ import { ESegmentedControlSize as t, ESegmentedControlTheme as n, ESegmentedControlType as m } from "./enums.js";
2
+ import { i as S, h as g, S as C } from "../../chunks/index-CLQ4mLUp.js";
3
+ export {
4
+ t as ESegmentedControlSize,
5
+ n as ESegmentedControlTheme,
6
+ m as ESegmentedControlType,
7
+ S as SegmentedControl,
8
+ g as SegmentedControlContext,
9
+ C as SegmentedControlSegment
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,22 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { c as a } from "../../chunks/vendor-CF2m175I.js";
3
+ import { ESkeletonType as t } from "./enums.js";
4
+ const n = "skeleton__1ac998db", r = "light__c3990409", k = "dark__a2cc664b", o = {
5
+ skeleton: n,
6
+ light: r,
7
+ dark: k
8
+ }, _ = ({ className: e, type: s = t.DARK, ...l }) => /* @__PURE__ */ c(
9
+ "div",
10
+ {
11
+ className: a(o.skeleton, e, {
12
+ [o.dark]: s === t.DARK,
13
+ [o.light]: s === t.LIGHT
14
+ }),
15
+ ...l,
16
+ "data-tx": "0.1.6"
17
+ }
18
+ );
19
+ export {
20
+ _ as Skeleton
21
+ };
22
+ //# sourceMappingURL=Skeleton.js.map
@@ -0,0 +1,5 @@
1
+ var a = /* @__PURE__ */ ((r) => (r.DARK = "dark", r.LIGHT = "light", r))(a || {});
2
+ export {
3
+ a as ESkeletonType
4
+ };
5
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1,7 @@
1
+ import { Skeleton as r } from "./Skeleton.js";
2
+ import { ESkeletonType as p } from "./enums.js";
3
+ export {
4
+ p as ESkeletonType,
5
+ r as Skeleton
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,140 @@
1
+ import { jsxs as j, jsx as w } from "react/jsx-runtime";
2
+ import z, { useState as A, useRef as u, useEffect as M, useImperativeHandle as W } from "react";
3
+ import { c as g } from "../../chunks/vendor-CF2m175I.js";
4
+ const H = "swipeableArea__eda757f2", V = "content__499400e1", $ = "disableScroll__d8947d1e", k = "disablePointerEvents__4b8dd7a9", q = "swipeAnimationFinish__43809657", G = "leftContent__ffc088ed", J = "rightContent__762288b8", s = {
5
+ swipeableArea: H,
6
+ content: V,
7
+ disableScroll: $,
8
+ disablePointerEvents: k,
9
+ swipeAnimationFinish: q,
10
+ leftContent: G,
11
+ rightContent: J
12
+ }, p = 24, E = s.swipeAnimationFinish, K = s.disableScroll, Q = s.disablePointerEvents, N = { clientX: 0, clientY: 0 }, U = z.forwardRef(
13
+ ({ children: L, className: I, leftSwipeableArea: m, rightSwipeableArea: C, ...y }, B) => {
14
+ const [S, a] = A(!1), [l, d] = A(), [o, e] = A(0), i = u(null), r = u(null), n = u(0), h = u(N), _ = u(null), X = () => {
15
+ a(!0);
16
+ const t = n.current - o;
17
+ n.current === 0 ? t > 0 ? e(
18
+ t > p ? -r.current.getBoundingClientRect().width : 0
19
+ ) : e(
20
+ Math.abs(t) > p ? i.current.getBoundingClientRect().width : 0
21
+ ) : n.current > 0 ? t > 0 && e(
22
+ t > p ? 0 : i.current.getBoundingClientRect().width
23
+ ) : n.current < 0 && t < 0 && e(
24
+ Math.abs(t) > p ? 0 : -r.current.getBoundingClientRect().width
25
+ );
26
+ }, R = () => {
27
+ h.current = N, d(void 0), document.removeEventListener("touchend", R);
28
+ };
29
+ M(() => {
30
+ !l && o !== n.current && X();
31
+ }, [l]);
32
+ const x = (t) => {
33
+ h.current = { clientX: t.touches[0].clientX, clientY: t.touches[0].clientY }, n.current = o, document.addEventListener("touchend", R);
34
+ }, O = (t) => {
35
+ if (t.touches.length != 1)
36
+ return;
37
+ const c = t.touches[0].clientX - h.current.clientX, F = t.touches[0].clientY - h.current.clientY;
38
+ if (!l) {
39
+ Math.abs(F) > Math.abs(c) ? d(
40
+ "vertical"
41
+ /* vertical */
42
+ ) : d(
43
+ "horizontal"
44
+ /* horizontal */
45
+ );
46
+ return;
47
+ }
48
+ if (l === "vertical")
49
+ return;
50
+ const f = n.current + c;
51
+ n.current === 0 ? c > 0 && m ? e(
52
+ Math.min(f, i.current.getBoundingClientRect().width)
53
+ ) : c < 0 && C && e(
54
+ Math.max(f, -r.current.getBoundingClientRect().width)
55
+ ) : n.current > 0 ? c < 0 && e(Math.max(0, f)) : n.current < 0 && c > 0 && e(Math.min(0, f));
56
+ }, D = () => a(!1), P = () => r.current ? Math.abs(o) / r.current.getBoundingClientRect().width : 1, Y = () => i.current ? Math.abs(o) / i.current.getBoundingClientRect().width : 1;
57
+ M(() => {
58
+ const t = (c) => {
59
+ c.touches.length == 1 && _.current && !_.current.contains(c.target) && (a(!0), e(0), d(void 0));
60
+ };
61
+ return document.addEventListener("touchstart", t), () => document.removeEventListener("touchstart", t);
62
+ }, []);
63
+ const b = () => {
64
+ i.current && (a(!0), e(i.current.getBoundingClientRect().width));
65
+ }, T = () => {
66
+ r.current && (a(!0), e(-r.current.getBoundingClientRect().width));
67
+ }, v = () => {
68
+ (r.current || i.current) && (a(!0), e(0));
69
+ };
70
+ return W(
71
+ B,
72
+ () => ({
73
+ closeSwipe: () => {
74
+ v();
75
+ },
76
+ swipeLeft: () => {
77
+ T();
78
+ },
79
+ swipeRight: () => {
80
+ b();
81
+ }
82
+ }),
83
+ [v, T, b]
84
+ ), /* @__PURE__ */ j(
85
+ "div",
86
+ {
87
+ className: g(s.swipeableArea, I),
88
+ ...y,
89
+ "data-tx": "0.1.6",
90
+ ref: _,
91
+ children: [
92
+ typeof m < "u" ? /* @__PURE__ */ w(
93
+ "div",
94
+ {
95
+ className: g(s.leftContent, {
96
+ [E]: S
97
+ }),
98
+ ref: i,
99
+ style: { opacity: Y() },
100
+ children: m
101
+ }
102
+ ) : null,
103
+ typeof C < "u" ? /* @__PURE__ */ w(
104
+ "div",
105
+ {
106
+ className: g(s.rightContent, {
107
+ [E]: S
108
+ }),
109
+ ref: r,
110
+ style: { opacity: P() },
111
+ children: C
112
+ }
113
+ ) : null,
114
+ /* @__PURE__ */ w(
115
+ "div",
116
+ {
117
+ className: g(s.content, {
118
+ [Q]: o !== 0,
119
+ [K]: l === "horizontal",
120
+ [E]: S
121
+ }),
122
+ onTouchStart: x,
123
+ onTouchMove: O,
124
+ style: {
125
+ transform: `translateX(${o}px)`
126
+ },
127
+ onTransitionEnd: D,
128
+ children: L
129
+ }
130
+ )
131
+ ]
132
+ }
133
+ );
134
+ }
135
+ );
136
+ U.displayName = "SwipeableArea";
137
+ export {
138
+ U as SwipeableArea
139
+ };
140
+ //# sourceMappingURL=SwipeableArea.js.map
@@ -0,0 +1,5 @@
1
+ import { SwipeableArea as a } from "./SwipeableArea.js";
2
+ export {
3
+ a as SwipeableArea
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,38 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useState as s, useRef as x } from "react";
3
+ import { TabsExtendedContext as I } from "./TabsExtendedContext.js";
4
+ import { TabsExtendedContent as b } from "./components/TabsExtendedContent.js";
5
+ import { s as u } from "../../chunks/TabsExtended.module-CQBdl7x1.js";
6
+ import { c as T } from "../../chunks/vendor-CF2m175I.js";
7
+ import "./enums.js";
8
+ const E = ({
9
+ children: n,
10
+ className: r,
11
+ selectedId: t,
12
+ onSelectTab: d,
13
+ ...m
14
+ }) => {
15
+ const [a, i] = s([]), [l, p] = s([]), c = x(null), f = (e) => {
16
+ t !== e && d(e);
17
+ };
18
+ return /* @__PURE__ */ o(
19
+ I.Provider,
20
+ {
21
+ value: {
22
+ dropdownItemsIds: l,
23
+ dropdownRef: c,
24
+ inlineItemsIds: a,
25
+ onSelectTab: f,
26
+ selectedId: t,
27
+ setDropdownItemsIds: p,
28
+ setInlineItemsIds: i
29
+ },
30
+ children: /* @__PURE__ */ o("div", { className: T(u.tabsExtended, r), role: "tablist", ...m, children: n })
31
+ }
32
+ );
33
+ };
34
+ E.Content = b;
35
+ export {
36
+ E as TabsExtended
37
+ };
38
+ //# sourceMappingURL=TabsExtended.js.map
@@ -0,0 +1,17 @@
1
+ import e from "react";
2
+ const t = {
3
+ dropdownItemsIds: [],
4
+ dropdownRef: { current: null },
5
+ inlineItemsIds: [],
6
+ onSelectTab: () => {
7
+ },
8
+ selectedId: "",
9
+ setDropdownItemsIds: () => {
10
+ },
11
+ setInlineItemsIds: () => {
12
+ }
13
+ }, o = e.createContext(t);
14
+ export {
15
+ o as TabsExtendedContext
16
+ };
17
+ //# sourceMappingURL=TabsExtendedContext.js.map
@@ -0,0 +1,8 @@
1
+ import "./enums.js";
2
+ import "../Typography/enums.js";
3
+ import { t as o, a as i } from "../../chunks/TabsExtendedUtils-BT4b2wK1.js";
4
+ export {
5
+ o as tabsExtendedSizeToCssClassMap,
6
+ i as tabsExtendedSizeToTextSizeMap
7
+ };
8
+ //# sourceMappingURL=TabsExtendedUtils.js.map
@@ -0,0 +1,20 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { TabsExtendedTabsWrapper as p } from "./TabsExtendedTabsWrapper.js";
3
+ import { TabsExtendedTab as s } from "./TabsExtendedTab.js";
4
+ import { TabsExtendedTabButton as d } from "./TabsExtendedTabButton.js";
5
+ import { TabsExtendedDropdownWrapper as m } from "./TabsExtendedDropdownWrapper.js";
6
+ import { s as n } from "../../../chunks/TabsExtended.module-CQBdl7x1.js";
7
+ import { c as b } from "../../../chunks/vendor-CF2m175I.js";
8
+ const r = ({
9
+ children: t,
10
+ className: o,
11
+ ...e
12
+ }) => /* @__PURE__ */ a("div", { className: b(n.tabsExtendedContent, o), ...e, children: t });
13
+ r.TabsWrapper = p;
14
+ r.Tab = s;
15
+ r.TabButton = d;
16
+ r.DropdownWrapper = m;
17
+ export {
18
+ r as TabsExtendedContent
19
+ };
20
+ //# sourceMappingURL=TabsExtendedContent.js.map