@sberbusiness/triplex-next 1.0.0 → 1.1.1

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 (209) hide show
  1. package/chunks/{AlertProcessSpoiler-JRcPtVtX.js → AlertProcessSpoiler-Caa0745n.js} +11 -11
  2. package/chunks/Card.module-BRANBAxP.js +17 -0
  3. package/chunks/{DropdownListItem-Be_BBAWh.js → DropdownListItem-DIIAnvmw.js} +17 -17
  4. package/chunks/DropdownMobile.module-BUeZuAYr.js +19 -0
  5. package/chunks/Footer.module-BFo05t5_.js +11 -0
  6. package/chunks/FormFieldInput-rV5ZVe9k.js +63 -0
  7. package/chunks/HeaderLayoutSidebar.module-CEqBuRNu.js +9 -0
  8. package/chunks/HeaderTabs.module-BEaVu2Hx.js +9 -0
  9. package/chunks/HeaderTitle.module-Db-1fcNm.js +9 -0
  10. package/chunks/{ListItemControlsButton-DWU_FtH8.js → ListItemControlsButton-Ch-5PQYH.js} +7 -7
  11. package/chunks/ListItemTail.module-C5-4SAqt.js +12 -0
  12. package/chunks/ListMasterFooter.module-Dph-_lLg.js +10 -0
  13. package/chunks/Overlay.module-D6LEz1jT.js +18 -0
  14. package/chunks/Page.module-Ct9ky9ko.js +16 -0
  15. package/chunks/TabsExtended.module-CmU9j8zG.js +13 -0
  16. package/chunks/{TabsExtendedUtils-BLpZL63j.js → TabsExtendedUtils-CkAvE1fA.js} +2 -2
  17. package/chunks/TooltipDesktop.module-KrPZMfQD.js +19 -0
  18. package/chunks/UploadZoneInput-CXjerIVV.js +33 -0
  19. package/chunks/{utils-Ck6y6vsC.js → utils-bbbspEnw.js} +7 -7
  20. package/chunks/{vendor-CF2m175I.js → vendor-D-uL_icH.js} +38 -34
  21. package/components/Alert/AlertContext/AlertContext.js +9 -9
  22. package/components/Alert/AlertProcess/AlertProcess.js +3 -3
  23. package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
  24. package/components/Body/Body.js +8 -8
  25. package/components/Button/Button.js +95 -10
  26. package/components/Button/ButtonBase.js +1 -1
  27. package/components/Button/ButtonDropdown.js +184 -23
  28. package/components/Button/ButtonDropdownExtended.js +50 -6
  29. package/components/Button/ButtonIcon.js +5 -5
  30. package/components/Button/enums.js +5 -4
  31. package/components/Button/index.js +14 -12
  32. package/components/Card/CardAction.js +20 -20
  33. package/components/Card/CardStatic.js +3 -3
  34. package/components/Card/components/CardContent/CardContent.js +2 -2
  35. package/components/Card/components/CardContent/components/CardContentBody.js +2 -2
  36. package/components/Card/components/CardContent/components/CardContentFooter.js +2 -2
  37. package/components/Card/components/CardContent/components/CardContentHeader.js +2 -2
  38. package/components/Card/components/CardMedia.js +2 -2
  39. package/components/Card/utils.js +1 -1
  40. package/components/Checkbox/Checkbox.js +9 -9
  41. package/components/Checkbox/CheckboxXGroup.js +13 -13
  42. package/components/Checkbox/CheckboxYGroup.js +2 -2
  43. package/components/Col/Col.js +143 -143
  44. package/components/DesignTokens/DesignTokenUtils.js +2 -2
  45. package/components/DesignTokens/DesignTokensComponents.js +9 -7
  46. package/components/DesignTokens/DesignTokensComponentsThemeDark.js +15 -13
  47. package/components/DesignTokens/components/Button.js +27 -0
  48. package/components/DesignTokens/components/FormField.js +22 -4
  49. package/components/DesignTokens/components/Island.js +26 -0
  50. package/components/DesignTokens/components/index.js +17 -14
  51. package/components/Dropdown/Dropdown.js +22 -7
  52. package/components/Dropdown/desktop/DropdownDesktop.js +94 -18
  53. package/components/Dropdown/desktop/DropdownList.js +65 -94
  54. package/components/Dropdown/desktop/DropdownListItem.js +2 -2
  55. package/components/Dropdown/index.js +27 -25
  56. package/components/Dropdown/mobile/DropdownMobile.js +2 -2
  57. package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
  58. package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
  59. package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
  60. package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
  61. package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
  62. package/components/Dropdown/mobile/DropdownMobileInput.js +2 -2
  63. package/components/Dropdown/mobile/DropdownMobileList.js +2 -2
  64. package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
  65. package/components/Footer/Footer.js +3 -3
  66. package/components/Footer/components/FooterDescription.js +2 -2
  67. package/components/Footer/components/FooterDescriptionContent.js +2 -2
  68. package/components/Footer/components/FooterDescriptionControls.js +2 -2
  69. package/components/FormField/FormField.js +52 -51
  70. package/components/FormField/FormFieldContext.js +8 -8
  71. package/components/FormField/components/FormFieldClear.js +16 -15
  72. package/components/FormField/components/FormFieldCounter.js +4 -4
  73. package/components/FormField/components/FormFieldDescription.js +9 -9
  74. package/components/FormField/components/FormFieldInput.js +4 -3
  75. package/components/FormField/components/FormFieldLabel.js +32 -31
  76. package/components/FormField/components/FormFieldMaskedInput.js +102 -92
  77. package/components/FormField/components/FormFieldPostfix.js +6 -6
  78. package/components/FormField/components/FormFieldPrefix.js +8 -8
  79. package/components/FormField/components/FormFieldTarget.js +49 -0
  80. package/components/FormField/components/FormFieldTextarea.js +25 -24
  81. package/components/FormField/enums.js +3 -2
  82. package/components/FormField/index.js +19 -16
  83. package/components/FormField/types.js +2 -0
  84. package/components/Header/Header.js +10 -10
  85. package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
  86. package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
  87. package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
  88. package/components/Header/components/HeaderSubheader/HeaderSubheader.js +6 -6
  89. package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
  90. package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
  91. package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
  92. package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
  93. package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
  94. package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
  95. package/components/Island/Island.js +78 -0
  96. package/components/Island/components/IslandBody.js +10 -0
  97. package/components/Island/components/IslandFooter.js +10 -0
  98. package/components/Island/components/IslandHeader.js +10 -0
  99. package/components/Island/enums.js +7 -0
  100. package/components/Island/index.js +9 -0
  101. package/components/KeyDownListener/ComposedKeyDownListener.js +13 -0
  102. package/components/KeyDownListener/KeyDownListener.js +27 -0
  103. package/components/KeyDownListener/index.js +7 -0
  104. package/components/Link/Link.js +17 -17
  105. package/components/List/List.js +9 -9
  106. package/components/List/ListSortable.js +1 -1
  107. package/components/List/components/ListEmptyState.js +2 -2
  108. package/components/List/components/ListItem.js +1 -1
  109. package/components/List/components/ListItemContent.js +7 -7
  110. package/components/List/components/ListItemControls.js +8 -8
  111. package/components/List/components/ListItemControlsButton.js +2 -2
  112. package/components/List/components/ListItemControlsButtonDropdown.js +98 -15
  113. package/components/List/components/ListItemLoading.js +5 -5
  114. package/components/List/components/ListItemSelectable.js +6 -6
  115. package/components/List/components/ListItemTable.js +29 -19
  116. package/components/List/components/ListItemTailLeft.js +2 -2
  117. package/components/List/components/ListItemTailRight.js +2 -2
  118. package/components/List/components/ListSortableItem.js +37 -18
  119. package/components/List/components/ListSortableItemControls.js +2 -2
  120. package/components/List/components/ListSortableItemTarget.js +9 -9
  121. package/components/List/index.js +22 -20
  122. package/components/ListMaster/ListMaster.js +1 -1
  123. package/components/ListMaster/components/ListMasterBody.js +1 -1
  124. package/components/ListMaster/components/ListMasterChipGroup.js +6 -6
  125. package/components/ListMaster/components/ListMasterFooter.js +2 -2
  126. package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
  127. package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
  128. package/components/ListMaster/components/ListMasterHeader.js +11 -11
  129. package/components/ListMaster/components/SelectionControls.js +3 -3
  130. package/components/Loader/LoaderMiddle/LoaderMiddle.js +2 -2
  131. package/components/Loader/LoaderSmall/LoaderSmall.js +10 -10
  132. package/components/LoaderWidget/LoaderWidget.js +5 -5
  133. package/components/Overlay/Overlay.js +2 -2
  134. package/components/Overlay/OverlayMask.js +2 -2
  135. package/components/Overlay/OverlayPanel.js +2 -2
  136. package/components/Page/Page.js +2 -2
  137. package/components/Page/components/BodyPage.js +2 -2
  138. package/components/Page/components/FooterPage.js +2 -2
  139. package/components/Page/components/HeaderPage.js +2 -2
  140. package/components/Pagination/components/PaginationExtended.js +3 -3
  141. package/components/Pagination/components/PaginationNavigationButton.js +5 -5
  142. package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
  143. package/components/Pagination/components/PaginationPageButton.js +2 -2
  144. package/components/Pagination/components/PaginationPageEllipsis.js +2 -2
  145. package/components/Pagination/components/PaginationSelect.js +17 -17
  146. package/components/Pagination/utils/paginationUtils.js +10 -10
  147. package/components/Radio/Radio.js +3 -3
  148. package/components/Radio/RadioXGroup.js +12 -12
  149. package/components/Radio/RadioYGroup.js +7 -7
  150. package/components/Row/Row.js +6 -6
  151. package/components/SegmentedControl/SegmentedControl.js +64 -7
  152. package/components/SegmentedControl/SegmentedControlContext.js +13 -0
  153. package/components/SegmentedControl/SegmentedControlSegment.js +68 -8
  154. package/components/SegmentedControl/index.js +6 -6
  155. package/components/SelectExtendedField/SelectExtendedField.js +57 -0
  156. package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +25 -0
  157. package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +86 -0
  158. package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +101 -0
  159. package/components/SelectExtendedField/index.js +9 -0
  160. package/components/Skeleton/Skeleton.js +8 -8
  161. package/components/SwipeableArea/SwipeableArea.js +19 -19
  162. package/components/TabsExtended/TabsExtended.js +7 -7
  163. package/components/TabsExtended/TabsExtendedUtils.js +1 -1
  164. package/components/TabsExtended/components/TabsExtendedContent.js +11 -11
  165. package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
  166. package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
  167. package/components/TabsExtended/components/TabsExtendedTabButton.js +2 -2
  168. package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +7 -7
  169. package/components/TabsExtended/types.js +2 -0
  170. package/components/TextField/MaskedField.js +6 -89
  171. package/components/TextField/TextField.js +6 -89
  172. package/components/TextField/TextFieldBase.js +30 -89
  173. package/components/TextField/index.js +4 -3
  174. package/components/ThemeProvider/ThemeProvider.js +8 -8
  175. package/components/ThemeProvider/components/ThemeProviderView.js +8 -8
  176. package/components/Tooltip/components/common/TooltipBody.js +7 -7
  177. package/components/Tooltip/components/common/TooltipLink.js +14 -14
  178. package/components/Tooltip/components/common/TooltipXButton.js +1 -1
  179. package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
  180. package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
  181. package/components/Tooltip/components/mobile/TooltipMobile.js +9 -9
  182. package/components/Typography/Caption.js +12 -12
  183. package/components/Typography/Text.js +22 -22
  184. package/components/Typography/Title.js +18 -18
  185. package/components/Typography/utils.js +1 -1
  186. package/components/UploadZone/UploadZone.js +109 -7
  187. package/components/UploadZone/UploadZoneContext.js +11 -0
  188. package/components/UploadZone/components/UploadZoneInput.js +5 -140
  189. package/components/UploadZone/index.js +2 -3
  190. package/components/UploadZone/types.js +2 -0
  191. package/components/index.js +279 -248
  192. package/index.d.ts +212 -27
  193. package/index.js +277 -246
  194. package/package.json +13 -1
  195. package/styles/triplex-next.css +354 -333
  196. package/chunks/Card.module-Cr47sRot.js +0 -17
  197. package/chunks/DropdownMobile.module-PWShExJh.js +0 -19
  198. package/chunks/Footer.module-Gh9uBYjc.js +0 -11
  199. package/chunks/FormFieldInput-H-fZrt84.js +0 -62
  200. package/chunks/HeaderLayoutSidebar.module-MHb8aSSn.js +0 -9
  201. package/chunks/HeaderTabs.module-Bfiwon3k.js +0 -9
  202. package/chunks/HeaderTitle.module-xLu0Kmjc.js +0 -9
  203. package/chunks/ListItemTail.module-DZnDKE1u.js +0 -12
  204. package/chunks/ListMasterFooter.module-DVmdCqc9.js +0 -10
  205. package/chunks/Overlay.module-C1GsZR5Z.js +0 -18
  206. package/chunks/Page.module-kOw5fybr.js +0 -16
  207. package/chunks/TabsExtended.module-lHzNgwBX.js +0 -13
  208. package/chunks/TooltipDesktop.module-HNPcWO41.js +0 -19
  209. package/chunks/index-CgNJLkzr.js +0 -931
@@ -1,9 +1,9 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import d from "react";
3
- import { c as i } from "../../../../chunks/vendor-CF2m175I.js";
3
+ import { c as i } from "../../../../chunks/vendor-D-uL_icH.js";
4
4
  import { HeaderLayoutSidebarContent as m } from "./HeaderLayoutSidebarContent.js";
5
5
  import { HeaderLayoutSidebarSidebar as s } from "./HeaderLayoutSidebarSidebar.js";
6
- import { s as f } from "../../../../chunks/HeaderLayoutSidebar.module-MHb8aSSn.js";
6
+ import { s as f } from "../../../../chunks/HeaderLayoutSidebar.module-CEqBuRNu.js";
7
7
  const b = Object.assign(
8
8
  d.forwardRef(function({ children: e, className: r, ...a }, o) {
9
9
  return /* @__PURE__ */ t("div", { className: i(f.headerLayoutSidebar, r), ...a, ref: o, children: e });
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import s from "react";
3
- import { c as d } from "../../../../chunks/vendor-CF2m175I.js";
4
- import { s as m } from "../../../../chunks/HeaderLayoutSidebar.module-MHb8aSSn.js";
3
+ import { c as d } from "../../../../chunks/vendor-D-uL_icH.js";
4
+ import { s as m } from "../../../../chunks/HeaderLayoutSidebar.module-CEqBuRNu.js";
5
5
  const i = s.forwardRef(
6
6
  ({ children: e, className: a, ...t }, o) => /* @__PURE__ */ r("div", { className: d(m.headerLayoutSidebarContent, a), ...t, ref: o, children: e })
7
7
  );
@@ -1,7 +1,7 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import i from "react";
3
- import { c as t } from "../../../../chunks/vendor-CF2m175I.js";
4
- import { s } from "../../../../chunks/HeaderLayoutSidebar.module-MHb8aSSn.js";
3
+ import { c as t } from "../../../../chunks/vendor-D-uL_icH.js";
4
+ import { s } from "../../../../chunks/HeaderLayoutSidebar.module-CEqBuRNu.js";
5
5
  const m = i.forwardRef(
6
6
  ({ children: a, className: r, ...e }, o) => /* @__PURE__ */ d("div", { className: t(s.headerLayoutSidebarSidebar, r), ...e, ref: o, children: a })
7
7
  );
@@ -1,10 +1,10 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import h from "react";
3
- import { c as i } from "../../../../chunks/vendor-CF2m175I.js";
4
- const u = "headerSubheader__fcd84f69", c = "withoutPaddings__9ba85f37", e = {
3
+ import { c as i } from "../../../../chunks/vendor-D-uL_icH.js";
4
+ const u = "headerSubheader__a90e6eb1", n = "withoutPaddings__7140d3b9", e = {
5
5
  headerSubheader: u,
6
- withoutPaddings: c
7
- }, f = h.forwardRef(
6
+ withoutPaddings: n
7
+ }, b = h.forwardRef(
8
8
  ({ children: a, className: d, withoutPaddings: r, ...t }, o) => /* @__PURE__ */ s(
9
9
  "div",
10
10
  {
@@ -15,8 +15,8 @@ const u = "headerSubheader__fcd84f69", c = "withoutPaddings__9ba85f37", e = {
15
15
  }
16
16
  )
17
17
  );
18
- f.displayName = "HeaderSubheader";
18
+ b.displayName = "HeaderSubheader";
19
19
  export {
20
- f as HeaderSubheader
20
+ b as HeaderSubheader
21
21
  };
22
22
  //# sourceMappingURL=HeaderSubheader.js.map
@@ -2,8 +2,8 @@ import { jsx as s } from "react/jsx-runtime";
2
2
  import t from "react";
3
3
  import { HeaderTabsContent as m } from "./HeaderTabsContent.js";
4
4
  import { HeaderTabsControls as n } from "./HeaderTabsControls.js";
5
- import { c as d } from "../../../../chunks/vendor-CF2m175I.js";
6
- import { s as f } from "../../../../chunks/HeaderTabs.module-Bfiwon3k.js";
5
+ import { c as d } from "../../../../chunks/vendor-D-uL_icH.js";
6
+ import { s as f } from "../../../../chunks/HeaderTabs.module-BEaVu2Hx.js";
7
7
  const i = Object.assign(
8
8
  t.forwardRef(function({ children: r, className: e, ...a }, o) {
9
9
  return /* @__PURE__ */ s("div", { className: d(f.headerTabs, e), ...a, ref: o, children: r });
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import s from "react";
3
- import { c as m } from "../../../../chunks/vendor-CF2m175I.js";
4
- import { s as n } from "../../../../chunks/HeaderTabs.module-Bfiwon3k.js";
3
+ import { c as m } from "../../../../chunks/vendor-D-uL_icH.js";
4
+ import { s as n } from "../../../../chunks/HeaderTabs.module-BEaVu2Hx.js";
5
5
  const d = s.forwardRef(
6
6
  ({ children: e, className: r, ...t }, a) => /* @__PURE__ */ o("div", { className: m(n.headerTabsContent, r), ...t, ref: a, children: e })
7
7
  );
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import t from "react";
3
- import { c as m } from "../../../../chunks/vendor-CF2m175I.js";
4
- import { s as l } from "../../../../chunks/HeaderTabs.module-Bfiwon3k.js";
3
+ import { c as m } from "../../../../chunks/vendor-D-uL_icH.js";
4
+ import { s as l } from "../../../../chunks/HeaderTabs.module-BEaVu2Hx.js";
5
5
  const d = t.forwardRef(
6
6
  ({ children: o, className: r, ...s }, a) => /* @__PURE__ */ e("div", { className: m(l.headerTabsControls, r), ...s, ref: a, children: o })
7
7
  );
@@ -2,8 +2,8 @@ import { jsx as a } from "react/jsx-runtime";
2
2
  import i from "react";
3
3
  import { HeaderTitleContent as s } from "./HeaderTitleContent.js";
4
4
  import { HeaderTitleControls as m } from "./HeaderTitleControls.js";
5
- import { c as l } from "../../../../chunks/vendor-CF2m175I.js";
6
- import { s as n } from "../../../../chunks/HeaderTitle.module-xLu0Kmjc.js";
5
+ import { c as l } from "../../../../chunks/vendor-D-uL_icH.js";
6
+ import { s as n } from "../../../../chunks/HeaderTitle.module-Db-1fcNm.js";
7
7
  const d = Object.assign(
8
8
  i.forwardRef(function({ children: e, className: t, ...r }, o) {
9
9
  return /* @__PURE__ */ a("div", { className: l(n.headerTitle, t), ...r, ref: o, children: e });
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import s from "react";
3
- import { c as m } from "../../../../chunks/vendor-CF2m175I.js";
4
- import { s as i } from "../../../../chunks/HeaderTitle.module-xLu0Kmjc.js";
3
+ import { c as m } from "../../../../chunks/vendor-D-uL_icH.js";
4
+ import { s as i } from "../../../../chunks/HeaderTitle.module-Db-1fcNm.js";
5
5
  const l = s.forwardRef(
6
6
  ({ children: e, className: t, ...r }, o) => /* @__PURE__ */ a("div", { className: m(t, i.headerTitleContent), ...r, ref: o, children: e })
7
7
  );
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import a from "react";
3
- import { c as l } from "../../../../chunks/vendor-CF2m175I.js";
4
- import { s as m } from "../../../../chunks/HeaderTitle.module-xLu0Kmjc.js";
3
+ import { c as l } from "../../../../chunks/vendor-D-uL_icH.js";
4
+ import { s as m } from "../../../../chunks/HeaderTitle.module-Db-1fcNm.js";
5
5
  const i = a.forwardRef(
6
6
  ({ children: o, className: r, ...e }, t) => /* @__PURE__ */ s("div", { className: l(m.headerTitleControls, r), ...e, ref: t, children: o })
7
7
  );
@@ -0,0 +1,78 @@
1
+ import { jsx as _ } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import { c as M } from "../../chunks/vendor-D-uL_icH.js";
4
+ import { EIslandType as e, EIslandBorderRadius as r, EIslandPaddingSize as s } from "./enums.js";
5
+ import { IslandBody as l } from "./components/IslandBody.js";
6
+ import { IslandHeader as u } from "./components/IslandHeader.js";
7
+ import { IslandFooter as y } from "./components/IslandFooter.js";
8
+ const g = "island__025957ca", f = "type1__a4c4b464", b = "type2__3c080eef", D = "type3__14db6b2e", R = "borderRadiusMD__c7556d55", S = "borderRadiusSM__d0f1ec29", T = "paddingLG__283f66d4", I = "paddingMD__32b33386", E = "paddingSM__f72671e2", d = {
9
+ island: g,
10
+ type1: f,
11
+ type2: b,
12
+ type3: D,
13
+ borderRadiusMD: R,
14
+ borderRadiusSM: S,
15
+ paddingLG: T,
16
+ paddingMD: I,
17
+ paddingSM: E
18
+ }, P = (a) => {
19
+ switch (a) {
20
+ case r.MD:
21
+ return d.borderRadiusMD;
22
+ case r.SM:
23
+ return d.borderRadiusSM;
24
+ }
25
+ }, G = (a) => {
26
+ switch (a) {
27
+ case s.MD:
28
+ return d.paddingMD;
29
+ case s.SM:
30
+ return d.paddingSM;
31
+ case s.LG:
32
+ return d.paddingLG;
33
+ }
34
+ }, L = (a) => {
35
+ switch (a) {
36
+ case e.TYPE_1:
37
+ return d.type1;
38
+ case e.TYPE_2:
39
+ return d.type2;
40
+ case e.TYPE_3:
41
+ return d.type3;
42
+ }
43
+ }, N = Object.assign(
44
+ m.forwardRef(
45
+ ({
46
+ type: a = e.TYPE_1,
47
+ borderRadius: t = r.MD,
48
+ paddingSize: n = s.MD,
49
+ className: o,
50
+ children: i,
51
+ ...p
52
+ }, c) => /* @__PURE__ */ _(
53
+ "div",
54
+ {
55
+ className: M(
56
+ d.island,
57
+ L(a),
58
+ P(t),
59
+ G(n),
60
+ o
61
+ ),
62
+ ref: c,
63
+ ...p,
64
+ children: i
65
+ }
66
+ )
67
+ ),
68
+ {
69
+ Body: l,
70
+ Header: u,
71
+ Footer: y
72
+ }
73
+ );
74
+ N.displayName = "Island";
75
+ export {
76
+ N as Island
77
+ };
78
+ //# sourceMappingURL=Island.js.map
@@ -0,0 +1,10 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import r from "react";
3
+ import { c as t } from "../../../chunks/vendor-D-uL_icH.js";
4
+ const l = "islandBody__3d25ea83", n = {
5
+ islandBody: l
6
+ }, m = r.forwardRef(({ children: o, ...s }, d) => /* @__PURE__ */ a("div", { className: t(n.islandBody), ref: d, ...s, children: o }));
7
+ export {
8
+ m as IslandBody
9
+ };
10
+ //# sourceMappingURL=IslandBody.js.map
@@ -0,0 +1,10 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import e from "react";
3
+ import { c as a } from "../../../chunks/vendor-D-uL_icH.js";
4
+ const d = "islandFooter__4bd1bb46", l = {
5
+ islandFooter: d
6
+ }, m = e.forwardRef(({ children: o, ...r }, t) => /* @__PURE__ */ s("div", { className: a(l.islandFooter), ref: t, ...r, children: o }));
7
+ export {
8
+ m as IslandFooter
9
+ };
10
+ //# sourceMappingURL=IslandFooter.js.map
@@ -0,0 +1,10 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import d from "react";
3
+ import { c as o } from "../../../chunks/vendor-D-uL_icH.js";
4
+ const t = "islandHeader__0d3b9afa", l = {
5
+ islandHeader: t
6
+ }, f = d.forwardRef(({ children: a, ...e }, r) => /* @__PURE__ */ s("div", { className: o(l.islandHeader), ref: r, ...e, children: a }));
7
+ export {
8
+ f as IslandHeader
9
+ };
10
+ //# sourceMappingURL=IslandHeader.js.map
@@ -0,0 +1,7 @@
1
+ var t = /* @__PURE__ */ ((r) => (r.TYPE_1 = "type_1", r.TYPE_2 = "type_2", r.TYPE_3 = "type_3", r))(t || {}), _ = /* @__PURE__ */ ((r) => (r.MD = "md", r.SM = "sm", r))(_ || {}), m = /* @__PURE__ */ ((r) => (r.LG = "lg", r.MD = "md", r.SM = "sm", r))(m || {});
2
+ export {
3
+ _ as EIslandBorderRadius,
4
+ m as EIslandPaddingSize,
5
+ t as EIslandType
6
+ };
7
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1,9 @@
1
+ import { Island as r } from "./Island.js";
2
+ import { EIslandBorderRadius as n, EIslandPaddingSize as o, EIslandType as s } from "./enums.js";
3
+ export {
4
+ n as EIslandBorderRadius,
5
+ o as EIslandPaddingSize,
6
+ s as EIslandType,
7
+ r as Island
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,13 @@
1
+ import { KeyDownListener as r } from "./KeyDownListener.js";
2
+ import { jsx as l } from "react/jsx-runtime";
3
+ const d = ({ keyDownListeners: e, children: n }) => {
4
+ let o = n;
5
+ if (e.length)
6
+ for (let t = 0; t < e.length; t++)
7
+ o = /* @__PURE__ */ l(r, { onMatch: e[t].onMatch, eventKeyCode: e[t].eventKeyCode, children: o });
8
+ return o;
9
+ };
10
+ export {
11
+ d as ComposedKeyDownListener
12
+ };
13
+ //# sourceMappingURL=ComposedKeyDownListener.js.map
@@ -0,0 +1,27 @@
1
+ var r = Object.defineProperty;
2
+ var s = (o, n, e) => n in o ? r(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
3
+ var i = (o, n, e) => s(o, typeof n != "symbol" ? n + "" : n, e);
4
+ import l from "react";
5
+ class y extends l.Component {
6
+ constructor() {
7
+ super(...arguments);
8
+ /** Обработчик для нажатия клавиш. */
9
+ i(this, "handleKeyDown", (e) => {
10
+ const { eventKeyCode: t, onMatch: d } = this.props;
11
+ typeof t == "number" ? t === e.keyCode && d(e) : t.includes(e.keyCode) && d(e);
12
+ });
13
+ }
14
+ componentDidMount() {
15
+ window.addEventListener("keydown", this.handleKeyDown);
16
+ }
17
+ componentWillUnmount() {
18
+ window.removeEventListener("keydown", this.handleKeyDown);
19
+ }
20
+ render() {
21
+ return this.props.children || null;
22
+ }
23
+ }
24
+ export {
25
+ y as KeyDownListener
26
+ };
27
+ //# sourceMappingURL=KeyDownListener.js.map
@@ -0,0 +1,7 @@
1
+ import { KeyDownListener as r } from "./KeyDownListener.js";
2
+ import { ComposedKeyDownListener as t } from "./ComposedKeyDownListener.js";
3
+ export {
4
+ t as ComposedKeyDownListener,
5
+ r as KeyDownListener
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -1,17 +1,17 @@
1
- import { jsx as R, jsxs as t, Fragment as i } from "react/jsx-runtime";
1
+ import { jsx as R, jsxs as t, Fragment as d } from "react/jsx-runtime";
2
2
  import L from "react";
3
- import { c as a } from "../../chunks/vendor-CF2m175I.js";
4
- const v = "link__b0b95b56", F = "wordWithContent__440efff8", S = "before__21f34387", T = "after__41bac89b", e = {
3
+ import { c as a } from "../../chunks/vendor-D-uL_icH.js";
4
+ const v = "link__c8803354", F = "wordWithContent__89d8855c", S = "before__9da7c18b", T = "after__34db8420", e = {
5
5
  link: v,
6
6
  wordWithContent: F,
7
7
  before: S,
8
8
  after: T
9
9
  }, q = L.forwardRef(
10
- ({ children: d, className: f, onBlur: N, onMouseDown: b, contentAfter: s, contentBefore: o, ...p }, C) => {
11
- const c = () => o ? /* @__PURE__ */ t(i, { children: [
10
+ ({ children: i, className: N, onBlur: p, onMouseDown: C, contentAfter: s, contentBefore: o, ..._ }, f) => {
11
+ const c = () => o ? /* @__PURE__ */ t(d, { children: [
12
12
  "​",
13
13
  o()
14
- ] }) : null, m = () => s ? s() : null, _ = (n) => {
14
+ ] }) : null, m = () => s ? s() : null, u = (n) => {
15
15
  const r = n.split(" ");
16
16
  if (r.length < 2 || r.length < 3 && o && s) {
17
17
  const y = a(e.wordWithContent, {
@@ -35,32 +35,32 @@ const v = "link__b0b95b56", F = "wordWithContent__440efff8", S = "before__21f343
35
35
  h,
36
36
  m()
37
37
  ] }) : h;
38
- return /* @__PURE__ */ t(i, { children: [
38
+ return /* @__PURE__ */ t(d, { children: [
39
39
  g,
40
40
  " ",
41
41
  w,
42
42
  " ",
43
43
  j
44
44
  ] });
45
- }, u = (n) => {
45
+ }, W = (n) => {
46
46
  const r = o ? o() : null, l = s ? s() : null;
47
- return /* @__PURE__ */ t(i, { children: [
47
+ return /* @__PURE__ */ t(d, { children: [
48
48
  r,
49
49
  n,
50
50
  l
51
51
  ] });
52
- }, W = o || s ? ((n) => typeof n == "string" ? _(n) : u(n))(d) : d;
52
+ }, b = o || s ? ((n) => typeof n == "string" ? u(n) : W(n))(i) : i;
53
53
  return /* @__PURE__ */ R(
54
54
  "a",
55
55
  {
56
56
  role: "link",
57
- ...p,
58
- className: a(f, e.link, "hoverable"),
59
- onBlur: N,
60
- onMouseDown: b,
61
- "data-tx": "1.0.0",
62
- ref: C,
63
- children: W
57
+ ..._,
58
+ className: a(N, e.link, "hoverable"),
59
+ onBlur: p,
60
+ onMouseDown: C,
61
+ "data-tx": "1.1.1",
62
+ ref: f,
63
+ children: b
64
64
  }
65
65
  );
66
66
  }
@@ -1,23 +1,23 @@
1
- import { jsxs as a } from "react/jsx-runtime";
1
+ import { jsxs as o } from "react/jsx-runtime";
2
2
  import r from "react";
3
- import { c } from "../../chunks/vendor-CF2m175I.js";
4
- const e = "list__4823b628", m = {
3
+ import { c } from "../../chunks/vendor-D-uL_icH.js";
4
+ const e = "list__b2ddb4a3", m = {
5
5
  list: e
6
- }, f = r.forwardRef(({ children: s, className: t, loading: l, ...i }, o) => /* @__PURE__ */ a(
6
+ }, d = r.forwardRef(({ children: s, className: t, loading: l, ...a }, i) => /* @__PURE__ */ o(
7
7
  "ul",
8
8
  {
9
9
  className: c(m.list, t),
10
- ...i,
11
- "data-tx": "1.0.0",
12
- ref: o,
10
+ ...a,
11
+ "data-tx": "1.1.1",
12
+ ref: i,
13
13
  children: [
14
14
  s,
15
15
  l ? "Загрузка..." : null
16
16
  ]
17
17
  }
18
18
  ));
19
- f.displayName = "List";
19
+ d.displayName = "List";
20
20
  export {
21
- f as List
21
+ d as List
22
22
  };
23
23
  //# sourceMappingURL=List.js.map
@@ -3,7 +3,7 @@ var p = (t, e, r) => e in t ? x(t, e, { enumerable: !0, configurable: !0, writab
3
3
  var o = (t, e, r) => p(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { jsx as d } from "react/jsx-runtime";
5
5
  import E from "react";
6
- import { u as b, a as f, D as M, M as T, r as D, b as L, S as w, v as y, d as I, T as C, e as H } from "../../chunks/vendor-CF2m175I.js";
6
+ import { u as b, a as f, D as M, M as T, r as D, b as L, S as w, v as y, d as I, T as C, e as H } from "../../chunks/vendor-D-uL_icH.js";
7
7
  import { List as N } from "./List.js";
8
8
  class u extends H {
9
9
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import i from "react";
3
- import { c as o } from "../../../chunks/vendor-CF2m175I.js";
4
- const p = "listEmptyState__08a63c65", l = {
3
+ import { c as o } from "../../../chunks/vendor-D-uL_icH.js";
4
+ const p = "listEmptyState__f7a08906", l = {
5
5
  listEmptyState: p
6
6
  }, r = i.forwardRef(
7
7
  ({ children: t, className: s, ...m }, a) => /* @__PURE__ */ e("div", { className: o(l.listEmptyState, s), ...m, ref: a, children: t })
@@ -8,7 +8,7 @@ const f = m.forwardRef(({ children: e, className: r, ...o }, s) => {
8
8
  {
9
9
  className: r,
10
10
  ...o,
11
- "data-tx": "1.0.0",
11
+ "data-tx": "1.1.1",
12
12
  ref: s,
13
13
  children: e
14
14
  }
@@ -1,11 +1,11 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import l, { useContext as i } from "react";
3
- import { c as r } from "../../../chunks/vendor-CF2m175I.js";
3
+ import { c as r } from "../../../chunks/vendor-D-uL_icH.js";
4
4
  import { ListItemContext as a } from "./ListItemContext.js";
5
- const d = "listItemContent__22fdaf28", f = "selected__a6850de1", t = {
5
+ const d = "listItemContent__bc6a5e15", C = "selected__a7373903", t = {
6
6
  listItemContent: d,
7
- selected: f
8
- }, C = l.forwardRef(
7
+ selected: C
8
+ }, f = l.forwardRef(
9
9
  ({ children: e, className: s, ...o }, n) => {
10
10
  const { selected: m } = i(a);
11
11
  return /* @__PURE__ */ c(
@@ -13,15 +13,15 @@ const d = "listItemContent__22fdaf28", f = "selected__a6850de1", t = {
13
13
  {
14
14
  className: r(t.listItemContent, { [t.selected]: m }, s),
15
15
  ...o,
16
- "data-tx": "1.0.0",
16
+ "data-tx": "1.1.1",
17
17
  ref: n,
18
18
  children: e
19
19
  }
20
20
  );
21
21
  }
22
22
  );
23
- C.displayName = "ListItemContent";
23
+ f.displayName = "ListItemContent";
24
24
  export {
25
- C as ListItemContent
25
+ f as ListItemContent
26
26
  };
27
27
  //# sourceMappingURL=ListItemContent.js.map
@@ -1,13 +1,13 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import e from "react";
3
- import { c as m } from "../../../chunks/vendor-CF2m175I.js";
4
- const i = "listItemControls__e9b965d2", n = {
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import r from "react";
3
+ import { c as m } from "../../../chunks/vendor-D-uL_icH.js";
4
+ const i = "listItemControls__5d2aeea4", a = {
5
5
  listItemControls: i
6
- }, a = e.forwardRef(
7
- ({ children: t, className: o, ...s }, l) => /* @__PURE__ */ r("div", { className: m(n.listItemControls, o), ...s, ref: l, children: t })
6
+ }, n = r.forwardRef(
7
+ ({ children: t, className: o, ...s }, e) => /* @__PURE__ */ l("div", { className: m(a.listItemControls, o), ...s, ref: e, children: t })
8
8
  );
9
- a.displayName = "ListItemControls";
9
+ n.displayName = "ListItemControls";
10
10
  export {
11
- a as ListItemControls
11
+ n as ListItemControls
12
12
  };
13
13
  //# sourceMappingURL=ListItemControls.js.map
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../../chunks/vendor-CF2m175I.js";
4
- import { L as e } from "../../../chunks/ListItemControlsButton-DWU_FtH8.js";
3
+ import "../../../chunks/vendor-D-uL_icH.js";
4
+ import { L as e } from "../../../chunks/ListItemControlsButton-Ch-5PQYH.js";
5
5
  import "../../Typography/enums.js";
6
6
  import "../../Typography/Text.js";
7
7
  export {
@@ -1,22 +1,105 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import "../../../chunks/vendor-CF2m175I.js";
4
- import "../../Typography/enums.js";
5
- import "../../Typography/Text.js";
6
- import { L as D } from "../../../chunks/index-CgNJLkzr.js";
7
- import "../../../utils/keyboard.js";
8
- import "../../Dropdown/DropdownListContext.js";
1
+ import { jsx as o, jsxs as w, Fragment as _ } from "react/jsx-runtime";
2
+ import P, { useRef as m, useState as E, createElement as b } from "react";
3
+ import { f as O, c as g } from "../../../chunks/vendor-D-uL_icH.js";
4
+ import { ETextSize as K } from "../../Typography/enums.js";
5
+ import { Text as T } from "../../Typography/Text.js";
6
+ import { ButtonDropdownExtended as R } from "../../Button/ButtonDropdownExtended.js";
7
+ import { isKey as i } from "../../../utils/keyboard.js";
8
+ import { DropdownListContext as j } from "../../Dropdown/DropdownListContext.js";
9
9
  import "../../Dropdown/mobile/DropdownMobile.js";
10
- import "../../Dropdown/mobile/DropdownMobileBody.js";
11
- import "../../Dropdown/mobile/DropdownMobileClose.js";
10
+ import { DropdownMobileBody as z } from "../../Dropdown/mobile/DropdownMobileBody.js";
11
+ import { DropdownMobileClose as U } from "../../Dropdown/mobile/DropdownMobileClose.js";
12
12
  import "../../Dropdown/mobile/DropdownMobileFooter.js";
13
- import "../../Dropdown/mobile/DropdownMobileHeader.js";
13
+ import { DropdownMobileHeader as q } from "../../Dropdown/mobile/DropdownMobileHeader.js";
14
14
  import "../../Dropdown/mobile/DropdownMobileInner.js";
15
15
  import "../../Dropdown/mobile/DropdownMobileInput.js";
16
- import "../../Dropdown/mobile/DropdownMobileList.js";
17
- import "../../Dropdown/mobile/DropdownMobileListItem.js";
18
- import "../../../chunks/ListItemControlsButton-DWU_FtH8.js";
16
+ import { DropdownMobileList as F } from "../../Dropdown/mobile/DropdownMobileList.js";
17
+ import { DropdownMobileListItem as H } from "../../Dropdown/mobile/DropdownMobileListItem.js";
18
+ import { DropdownList as h } from "../../Dropdown/desktop/DropdownList.js";
19
+ import { s as y, L as V } from "../../../chunks/ListItemControlsButton-Ch-5PQYH.js";
20
+ const G = P.forwardRef(
21
+ (C, l) => {
22
+ const { buttonAttributes: x, children: c, className: I, icon: N, options: d, selected: n, disabled: B, ...L } = C, f = m(null), u = m(null), [p, v] = E(), D = m(O()), A = ({ opened: e, setOpened: t }) => /* @__PURE__ */ o(
23
+ V,
24
+ {
25
+ className: "hoverable",
26
+ onKeyDown: k({ opened: e, setOpened: t }),
27
+ onClick: S({ opened: e, setOpened: t }),
28
+ disabled: B,
29
+ "aria-haspopup": "menu",
30
+ "aria-expanded": e,
31
+ "aria-controls": D.current,
32
+ "aria-activedescendant": p,
33
+ icon: N,
34
+ ...x,
35
+ ref: W,
36
+ children: c
37
+ }
38
+ ), S = ({ opened: e, setOpened: t }) => () => t(!e), k = ({ opened: e, setOpened: t }) => (a) => {
39
+ const { key: r } = a;
40
+ (i(r, "SPACE") || i(r, "ARROW_UP") || i(r, "ARROW_DOWN")) && a.preventDefault(), !e && (i(r, "ARROW_UP") || i(r, "ARROW_DOWN")) && t(!0);
41
+ }, M = ({ opened: e, setOpened: t, className: a }) => /* @__PURE__ */ o(j.Provider, { value: { activeDescendant: p, setActiveDescendant: v }, children: /* @__PURE__ */ o(
42
+ R.Dropdown,
43
+ {
44
+ className: a,
45
+ opened: e,
46
+ setOpened: t,
47
+ targetRef: f,
48
+ ref: u,
49
+ mobileViewProps: {
50
+ children: /* @__PURE__ */ w(_, { children: [
51
+ /* @__PURE__ */ w(q, { children: [
52
+ /* @__PURE__ */ o(T, { tag: "div", size: K.B1, children: c }),
53
+ /* @__PURE__ */ o(U, { onClick: () => t(!1) })
54
+ ] }),
55
+ /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(F, { children: d.map((r) => /* @__PURE__ */ b(
56
+ H,
57
+ {
58
+ ...r,
59
+ key: r.id,
60
+ selected: r.id === (n == null ? void 0 : n.id),
61
+ onSelect: () => {
62
+ var s;
63
+ (s = r.onSelect) == null || s.call(r), t(!1);
64
+ }
65
+ },
66
+ r.label
67
+ )) }) })
68
+ ] })
69
+ },
70
+ children: /* @__PURE__ */ o(h, { dropdownOpened: e, id: D.current, children: d.map((r) => /* @__PURE__ */ b(
71
+ h.Item,
72
+ {
73
+ ...r,
74
+ className: y.buttonDropdownMenuItem,
75
+ key: r.id,
76
+ selected: r.id === (n == null ? void 0 : n.id),
77
+ onSelect: () => {
78
+ var s;
79
+ (s = r.onSelect) == null || s.call(r), t(!1);
80
+ }
81
+ },
82
+ r.label
83
+ )) })
84
+ }
85
+ ) }), W = (e) => {
86
+ f.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
87
+ };
88
+ return /* @__PURE__ */ o(
89
+ R,
90
+ {
91
+ className: g(y.listItemControlsButtonDropdown, I),
92
+ renderButton: A,
93
+ renderDropdown: M,
94
+ dropdownRef: u,
95
+ closeOnTab: !0,
96
+ ...L
97
+ }
98
+ );
99
+ }
100
+ );
101
+ G.displayName = "ListItemControlsButtonDropdown";
19
102
  export {
20
- D as ListItemControlsButtonDropdown
103
+ G as ListItemControlsButtonDropdown
21
104
  };
22
105
  //# sourceMappingURL=ListItemControlsButtonDropdown.js.map