@alfalab/core-components 47.0.0-beta.1 → 47.0.0-beta.2

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 (276) hide show
  1. package/base-modal/Component.js +2 -1
  2. package/base-modal/cssm/Component.js +2 -1
  3. package/base-modal/esm/Component.js +2 -1
  4. package/base-modal/esm/index.js +1 -0
  5. package/base-modal/modern/Component.js +2 -1
  6. package/base-modal/modern/index.js +1 -0
  7. package/calendar-range/utils.js +3 -1
  8. package/gallery/components/header/Component.js +1 -1
  9. package/gallery/components/header/buttons.js +1 -1
  10. package/gallery/components/image-viewer/component.js +1 -1
  11. package/gallery/components/image-viewer/slide.js +1 -1
  12. package/gallery/esm/Component.js +2 -2
  13. package/gallery/esm/components/header/Component.js +1 -1
  14. package/gallery/esm/components/header/buttons.js +1 -1
  15. package/gallery/esm/components/header/index.js +1 -1
  16. package/gallery/esm/components/image-preview/Component.js +1 -1
  17. package/gallery/esm/components/image-preview/index.js +1 -1
  18. package/gallery/esm/components/image-viewer/component.js +1 -1
  19. package/gallery/esm/components/image-viewer/index.js +1 -1
  20. package/gallery/esm/components/image-viewer/slide.js +1 -1
  21. package/gallery/esm/components/index.js +2 -2
  22. package/gallery/esm/components/navigation-bar/Component.js +1 -1
  23. package/gallery/esm/components/navigation-bar/index.js +1 -1
  24. package/gallery/esm/index.js +2 -2
  25. package/gallery/modern/Component.js +2 -2
  26. package/gallery/modern/components/header/Component.js +1 -1
  27. package/gallery/modern/components/header/buttons.js +1 -1
  28. package/gallery/modern/components/header/index.js +1 -1
  29. package/gallery/modern/components/image-preview/Component.js +1 -1
  30. package/gallery/modern/components/image-preview/index.js +1 -1
  31. package/gallery/modern/components/image-viewer/component.js +1 -1
  32. package/gallery/modern/components/image-viewer/index.js +1 -1
  33. package/gallery/modern/components/image-viewer/slide.js +1 -1
  34. package/gallery/modern/components/index.js +2 -2
  35. package/gallery/modern/components/navigation-bar/Component.js +1 -1
  36. package/gallery/modern/components/navigation-bar/index.js +1 -1
  37. package/gallery/modern/index.js +2 -2
  38. package/icon-button/Component.d.ts +10 -0
  39. package/icon-button/Component.js +4 -3
  40. package/icon-button/cssm/Component.d.ts +10 -0
  41. package/icon-button/cssm/Component.js +2 -1
  42. package/icon-button/cssm/default.module.css +35 -3
  43. package/icon-button/cssm/inverted.module.css +35 -3
  44. package/icon-button/default.css +35 -3
  45. package/icon-button/esm/Component.d.ts +10 -0
  46. package/icon-button/esm/Component.js +4 -3
  47. package/icon-button/esm/default.css +35 -3
  48. package/icon-button/esm/inverted.css +35 -3
  49. package/icon-button/inverted.css +35 -3
  50. package/icon-button/modern/Component.d.ts +10 -0
  51. package/icon-button/modern/Component.js +4 -3
  52. package/icon-button/modern/default.css +35 -3
  53. package/icon-button/modern/inverted.css +35 -3
  54. package/input/components/base-input/Component.d.ts +2 -2
  55. package/input/cssm/components/base-input/Component.d.ts +2 -2
  56. package/input/esm/components/base-input/Component.d.ts +2 -2
  57. package/input/modern/components/base-input/Component.d.ts +2 -2
  58. package/international-phone-input/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
  59. package/international-phone-input/Component.responsive.d.ts +4 -4
  60. package/international-phone-input/components/base-international-phone-input/Component.d.ts +1 -1
  61. package/international-phone-input/cssm/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
  62. package/international-phone-input/cssm/Component.responsive.d.ts +4 -4
  63. package/international-phone-input/cssm/components/base-international-phone-input/Component.d.ts +1 -1
  64. package/international-phone-input/cssm/index-7ca84eff.d.ts +15 -0
  65. package/international-phone-input/cssm/types.d.ts +1 -1
  66. package/international-phone-input/cssm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
  67. package/international-phone-input/cssm/utils-89376c31.d.ts +1 -1
  68. package/international-phone-input/esm/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
  69. package/international-phone-input/esm/Component.responsive.d.ts +4 -4
  70. package/international-phone-input/esm/components/base-international-phone-input/Component.d.ts +1 -1
  71. package/international-phone-input/esm/index-7ca84eff.d.ts +15 -0
  72. package/international-phone-input/esm/types.d.ts +1 -1
  73. package/international-phone-input/esm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
  74. package/international-phone-input/esm/utils-89376c31.d.ts +1 -1
  75. package/international-phone-input/index-7ca84eff.d.ts +15 -0
  76. package/international-phone-input/modern/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
  77. package/international-phone-input/modern/Component.responsive.d.ts +4 -4
  78. package/international-phone-input/modern/components/base-international-phone-input/Component.d.ts +1 -1
  79. package/international-phone-input/modern/index-7ca84eff.d.ts +15 -0
  80. package/international-phone-input/modern/types.d.ts +1 -1
  81. package/international-phone-input/modern/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
  82. package/international-phone-input/modern/utils-89376c31.d.ts +1 -1
  83. package/international-phone-input/types.d.ts +1 -1
  84. package/international-phone-input/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
  85. package/international-phone-input/utils-89376c31.d.ts +1 -1
  86. package/modal/components/controls/Component.js +1 -1
  87. package/modal/components/footer/Component.js +1 -1
  88. package/modal/esm/Component.responsive.js +1 -1
  89. package/modal/esm/components/controls/Component.js +1 -1
  90. package/modal/esm/components/controls/index.js +1 -1
  91. package/modal/esm/components/footer/Component.js +1 -1
  92. package/modal/esm/desktop/Component.desktop.js +1 -1
  93. package/modal/esm/desktop/index.js +1 -1
  94. package/modal/esm/index.js +1 -1
  95. package/modal/esm/mobile/Component.mobile.js +1 -1
  96. package/modal/esm/mobile/index.js +1 -1
  97. package/modal/modern/Component.responsive.js +1 -1
  98. package/modal/modern/components/controls/Component.js +1 -1
  99. package/modal/modern/components/controls/index.js +1 -1
  100. package/modal/modern/components/footer/Component.js +1 -1
  101. package/modal/modern/desktop/Component.desktop.js +1 -1
  102. package/modal/modern/desktop/index.js +1 -1
  103. package/modal/modern/index.js +1 -1
  104. package/modal/modern/mobile/Component.mobile.js +1 -1
  105. package/modal/modern/mobile/index.js +1 -1
  106. package/notification/Component.js +2 -1
  107. package/notification/cssm/Component.js +2 -1
  108. package/notification/esm/Component.js +2 -1
  109. package/notification/esm/index.js +1 -0
  110. package/notification/modern/Component.js +2 -1
  111. package/notification/modern/index.js +1 -0
  112. package/notification-manager/component.js +2 -1
  113. package/notification-manager/cssm/component.js +2 -1
  114. package/notification-manager/esm/component.js +2 -1
  115. package/notification-manager/esm/index.js +1 -0
  116. package/notification-manager/modern/component.js +2 -1
  117. package/notification-manager/modern/index.js +1 -0
  118. package/package.json +2 -1
  119. package/picker-button/Component-0f35b62f.d.ts +5 -0
  120. package/picker-button/Component-c44170fe.d.ts +2 -2
  121. package/picker-button/cssm/Component-0f35b62f.d.ts +5 -0
  122. package/picker-button/cssm/Component-c44170fe.d.ts +2 -2
  123. package/picker-button/cssm/field/Component.d.ts +1 -1
  124. package/picker-button/cssm/index-bdb4c6b9.d.ts +1 -13
  125. package/picker-button/cssm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
  126. package/picker-button/cssm/utils-89376c31.d.ts +1 -1
  127. package/picker-button/esm/Component-0f35b62f.d.ts +5 -0
  128. package/picker-button/esm/Component-c44170fe.d.ts +2 -2
  129. package/picker-button/esm/field/Component.d.ts +1 -1
  130. package/picker-button/esm/index-bdb4c6b9.d.ts +1 -13
  131. package/picker-button/esm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
  132. package/picker-button/esm/utils-89376c31.d.ts +1 -1
  133. package/picker-button/field/Component.d.ts +1 -1
  134. package/picker-button/index-bdb4c6b9.d.ts +1 -13
  135. package/picker-button/modern/Component-0f35b62f.d.ts +5 -0
  136. package/picker-button/modern/Component-c44170fe.d.ts +2 -2
  137. package/picker-button/modern/field/Component.d.ts +1 -1
  138. package/picker-button/modern/index-bdb4c6b9.d.ts +1 -13
  139. package/picker-button/modern/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
  140. package/picker-button/modern/utils-89376c31.d.ts +1 -1
  141. package/picker-button/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
  142. package/picker-button/utils-89376c31.d.ts +1 -1
  143. package/popover/Component.js +2 -1
  144. package/popover/cssm/Component.js +2 -1
  145. package/popover/esm/Component.js +2 -1
  146. package/popover/esm/index.js +1 -0
  147. package/popover/modern/Component.js +2 -1
  148. package/popover/modern/index.js +1 -0
  149. package/select/components/base-select/Component.js +2 -2
  150. package/select/components/options-list/Component.js +2 -2
  151. package/select/components/virtual-options-list/Component.js +4 -2
  152. package/select/cssm/components/base-select/Component.js +2 -2
  153. package/select/cssm/components/options-list/Component.js +2 -2
  154. package/select/cssm/components/virtual-options-list/Component.js +4 -2
  155. package/select/cssm/typings.d.ts +32 -0
  156. package/select/esm/components/base-select/Component.js +2 -2
  157. package/select/esm/components/options-list/Component.js +2 -2
  158. package/select/esm/components/virtual-options-list/Component.js +4 -2
  159. package/select/esm/typings.d.ts +32 -0
  160. package/select/modern/components/base-select/Component.js +2 -2
  161. package/select/modern/components/options-list/Component.js +2 -2
  162. package/select/modern/components/virtual-options-list/Component.js +2 -2
  163. package/select/modern/typings.d.ts +32 -0
  164. package/select/typings.d.ts +32 -0
  165. package/stack/component.js +4 -4
  166. package/stack/cssm/component.js +4 -4
  167. package/stack/cssm/index.d.ts +0 -1
  168. package/stack/cssm/index.js +0 -3
  169. package/stack/esm/component.js +1 -1
  170. package/stack/esm/index.d.ts +0 -1
  171. package/stack/esm/index.js +1 -1
  172. package/stack/index.d.ts +0 -1
  173. package/stack/index.js +0 -3
  174. package/stack/modern/component.js +1 -1
  175. package/stack/modern/index.d.ts +0 -1
  176. package/stack/modern/index.js +1 -1
  177. package/status/Component.d.ts +2 -1
  178. package/status/Component.js +2 -2
  179. package/status/cssm/Component.d.ts +2 -1
  180. package/status/cssm/Component.js +1 -1
  181. package/status/cssm/index.module.css +74 -29
  182. package/status/esm/Component.d.ts +2 -1
  183. package/status/esm/Component.js +2 -2
  184. package/status/esm/index.css +55 -27
  185. package/status/index.css +55 -27
  186. package/status/modern/Component.d.ts +2 -1
  187. package/status/modern/Component.js +2 -2
  188. package/status/modern/index.css +55 -27
  189. package/themes/click.css +0 -1516
  190. package/themes/compiled/mobile-dark-bluetint.css +210 -50
  191. package/themes/corp.css +0 -1516
  192. package/themes/intranet.css +0 -1516
  193. package/themes/mobile.css +0 -1516
  194. package/themes/site.css +0 -1516
  195. package/toast/components/base-toast/component.js +2 -1
  196. package/toast/cssm/components/base-toast/component.js +2 -1
  197. package/toast/esm/Component.responsive.js +1 -0
  198. package/toast/esm/components/base-toast/component.js +2 -1
  199. package/toast/esm/components/base-toast/index.js +1 -0
  200. package/toast/esm/desktop/Component.desktop.js +1 -0
  201. package/toast/esm/desktop/index.js +1 -0
  202. package/toast/esm/index.js +1 -0
  203. package/toast/esm/mobile/Component.mobile.js +1 -0
  204. package/toast/esm/mobile/index.js +1 -0
  205. package/toast/modern/Component.responsive.js +1 -0
  206. package/toast/modern/components/base-toast/component.js +2 -1
  207. package/toast/modern/components/base-toast/index.js +1 -0
  208. package/toast/modern/desktop/Component.desktop.js +1 -0
  209. package/toast/modern/desktop/index.js +1 -0
  210. package/toast/modern/index.js +1 -0
  211. package/toast/modern/mobile/Component.mobile.js +1 -0
  212. package/toast/modern/mobile/index.js +1 -0
  213. package/toast-plate/components/base-toast-plate/component.js +1 -1
  214. package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
  215. package/toast-plate/esm/Component.responsive.js +1 -1
  216. package/toast-plate/esm/components/base-toast-plate/component.js +1 -1
  217. package/toast-plate/esm/components/base-toast-plate/index.js +1 -1
  218. package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
  219. package/toast-plate/esm/desktop/Component.desktop.js +1 -1
  220. package/toast-plate/esm/desktop/index.js +1 -1
  221. package/toast-plate/esm/index-307da6d7.d.ts +1 -1
  222. package/toast-plate/esm/index.js +1 -1
  223. package/toast-plate/esm/mobile/Component.mobile.js +1 -1
  224. package/toast-plate/esm/mobile/index.js +1 -1
  225. package/toast-plate/index-307da6d7.d.ts +1 -1
  226. package/toast-plate/modern/Component.responsive.js +1 -1
  227. package/toast-plate/modern/components/base-toast-plate/component.js +1 -1
  228. package/toast-plate/modern/components/base-toast-plate/index.js +1 -1
  229. package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
  230. package/toast-plate/modern/desktop/Component.desktop.js +1 -1
  231. package/toast-plate/modern/desktop/index.js +1 -1
  232. package/toast-plate/modern/index-307da6d7.d.ts +1 -1
  233. package/toast-plate/modern/index.js +1 -1
  234. package/toast-plate/modern/mobile/Component.mobile.js +1 -1
  235. package/toast-plate/modern/mobile/index.js +1 -1
  236. package/universal-date-input/cssm/index-5712fce2.d.ts +1 -13
  237. package/universal-date-input/esm/index-5712fce2.d.ts +1 -13
  238. package/universal-date-input/index-5712fce2.d.ts +1 -13
  239. package/universal-date-input/modern/index-5712fce2.d.ts +1 -13
  240. package/international-phone-input/cssm/index-136acbb1.d.ts +0 -28
  241. package/international-phone-input/esm/index-136acbb1.d.ts +0 -28
  242. package/international-phone-input/index-136acbb1.d.ts +0 -28
  243. package/international-phone-input/modern/index-136acbb1.d.ts +0 -28
  244. package/picker-button/Component-1fe708ea.d.ts +0 -5
  245. package/picker-button/cssm/Component-1fe708ea.d.ts +0 -5
  246. package/picker-button/esm/Component-1fe708ea.d.ts +0 -5
  247. package/picker-button/modern/Component-1fe708ea.d.ts +0 -5
  248. package/stack/context.d.ts +0 -29
  249. package/stack/context.js +0 -34
  250. package/stack/cssm/context.d.ts +0 -29
  251. package/stack/cssm/context.js +0 -34
  252. package/stack/esm/context.d.ts +0 -29
  253. package/stack/esm/context.js +0 -31
  254. package/stack/modern/context.d.ts +0 -29
  255. package/stack/modern/context.js +0 -31
  256. /package/gallery/{buttons-36b3ca68.d.ts → buttons-2c587253.d.ts} +0 -0
  257. /package/gallery/{buttons-36b3ca68.js → buttons-2c587253.js} +0 -0
  258. /package/gallery/esm/{buttons-49e609ab.d.ts → buttons-fb317559.d.ts} +0 -0
  259. /package/gallery/esm/{buttons-49e609ab.js → buttons-fb317559.js} +0 -0
  260. /package/gallery/esm/{slide-01af06f1.d.ts → slide-cb44c8ba.d.ts} +0 -0
  261. /package/gallery/esm/{slide-01af06f1.js → slide-cb44c8ba.js} +0 -0
  262. /package/gallery/modern/{buttons-9e01c41d.d.ts → buttons-0d4c9cc6.d.ts} +0 -0
  263. /package/gallery/modern/{buttons-9e01c41d.js → buttons-0d4c9cc6.js} +0 -0
  264. /package/gallery/modern/{slide-0932c021.d.ts → slide-3771e01f.d.ts} +0 -0
  265. /package/gallery/modern/{slide-0932c021.js → slide-3771e01f.js} +0 -0
  266. /package/gallery/{slide-cbb98cfd.d.ts → slide-a4b1c89f.d.ts} +0 -0
  267. /package/gallery/{slide-cbb98cfd.js → slide-a4b1c89f.js} +0 -0
  268. /package/modal/esm/{layout.module-8f4bb5c4.js → layout.module-5977466c.js} +0 -0
  269. /package/modal/{layout.module-dd4e6f62.js → layout.module-74b07012.js} +0 -0
  270. /package/modal/modern/{layout.module-6bc66458.js → layout.module-565c309a.js} +0 -0
  271. /package/toast-plate/esm/{getDataTestId-1e8085ca.d.ts → getDataTestId-32922464.d.ts} +0 -0
  272. /package/toast-plate/esm/{getDataTestId-1e8085ca.js → getDataTestId-32922464.js} +0 -0
  273. /package/toast-plate/{getDataTestId-4ff6c5ff.d.ts → getDataTestId-64de4ccf.d.ts} +0 -0
  274. /package/toast-plate/{getDataTestId-4ff6c5ff.js → getDataTestId-64de4ccf.js} +0 -0
  275. /package/toast-plate/modern/{getDataTestId-11ebf806.d.ts → getDataTestId-4d724a67.d.ts} +0 -0
  276. /package/toast-plate/modern/{getDataTestId-11ebf806.js → getDataTestId-4d724a67.js} +0 -0
@@ -4,7 +4,7 @@ import { getDataTestId } from '../../../../shared/esm';
4
4
  import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
5
5
  import { ModalContext } from '../../Context.js';
6
6
  import { ResponsiveContext } from '../../ResponsiveContext.js';
7
- import { l as layoutStyles } from '../../layout.module-8f4bb5c4.js';
7
+ import { l as layoutStyles } from '../../layout.module-5977466c.js';
8
8
  import '../../../../base-modal/esm';
9
9
 
10
10
  var desktopStyles = {"footer":"modal__footer_e5vdf","sticky":"modal__sticky_e5vdf","fullscreen":"modal__fullscreen_e5vdf","size-500":"modal__size-500_e5vdf","size-600":"modal__size-600_e5vdf","size-800":"modal__size-800_e5vdf","size-1140":"modal__size-1140_e5vdf"};
@@ -12,7 +12,7 @@ import '../consts.js';
12
12
  import '../ResponsiveContext.js';
13
13
  import '../../../shared/esm';
14
14
  import '../Context.js';
15
- import '../layout.module-8f4bb5c4.js';
15
+ import '../layout.module-5977466c.js';
16
16
  import '../../../navigation-bar-private/esm';
17
17
 
18
18
  var ModalDesktopComponent = forwardRef(function (props, ref) { return (React.createElement(Modal, __assign({}, props, { ref: ref, view: 'desktop' }))); });
@@ -11,7 +11,7 @@ import '../components/content/Component.js';
11
11
  import '../../../shared/esm';
12
12
  import '../Context.js';
13
13
  import '../components/controls/Component.js';
14
- import '../layout.module-8f4bb5c4.js';
14
+ import '../layout.module-5977466c.js';
15
15
  import '../components/footer/Component.js';
16
16
  import '../components/header/Component.js';
17
17
  import '../../../navigation-bar-private/esm';
@@ -10,7 +10,7 @@ import './Context.js';
10
10
  import '../../base-modal/esm';
11
11
  import './ResponsiveContext.js';
12
12
  import './components/controls/Component.js';
13
- import './layout.module-8f4bb5c4.js';
13
+ import './layout.module-5977466c.js';
14
14
  import './components/footer/Component.js';
15
15
  import './components/header/Component.js';
16
16
  import '../../navigation-bar-private/esm';
@@ -12,7 +12,7 @@ import '../consts.js';
12
12
  import '../ResponsiveContext.js';
13
13
  import '../../../shared/esm';
14
14
  import '../Context.js';
15
- import '../layout.module-8f4bb5c4.js';
15
+ import '../layout.module-5977466c.js';
16
16
  import '../../../navigation-bar-private/esm';
17
17
 
18
18
  var ModalMobileComponent = forwardRef(function (props, ref) { return (React.createElement(Modal, __assign({}, props, { ref: ref, view: 'mobile' }))); });
@@ -11,7 +11,7 @@ import '../components/content/Component.js';
11
11
  import '../../../shared/esm';
12
12
  import '../Context.js';
13
13
  import '../components/controls/Component.js';
14
- import '../layout.module-8f4bb5c4.js';
14
+ import '../layout.module-5977466c.js';
15
15
  import '../components/footer/Component.js';
16
16
  import '../components/header/Component.js';
17
17
  import '../../../navigation-bar-private/esm';
@@ -11,7 +11,7 @@ import './consts.js';
11
11
  import './Context.js';
12
12
  import '../../base-modal/modern';
13
13
  import './ResponsiveContext.js';
14
- import './layout.module-6bc66458.js';
14
+ import './layout.module-565c309a.js';
15
15
  import '../../navigation-bar-private/modern';
16
16
  import 'react-merge-refs';
17
17
 
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { getDataTestId } from '../../../../shared/modern';
4
4
  import { ResponsiveContext } from '../../ResponsiveContext.js';
5
- import { l as layoutStyles } from '../../layout.module-6bc66458.js';
5
+ import { l as layoutStyles } from '../../layout.module-565c309a.js';
6
6
 
7
7
  const styles = {"component":"modal__component_6629a"};
8
8
  require('./index.css');
@@ -3,4 +3,4 @@ import 'react';
3
3
  import 'classnames';
4
4
  import '../../../../shared/modern';
5
5
  import '../../ResponsiveContext.js';
6
- import '../../layout.module-6bc66458.js';
6
+ import '../../layout.module-565c309a.js';
@@ -4,7 +4,7 @@ import { getDataTestId } from '../../../../shared/modern';
4
4
  import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
5
5
  import { ModalContext } from '../../Context.js';
6
6
  import { ResponsiveContext } from '../../ResponsiveContext.js';
7
- import { l as layoutStyles } from '../../layout.module-6bc66458.js';
7
+ import { l as layoutStyles } from '../../layout.module-565c309a.js';
8
8
  import '../../../../base-modal/modern';
9
9
 
10
10
  const desktopStyles = {"footer":"modal__footer_e5vdf","sticky":"modal__sticky_e5vdf","fullscreen":"modal__fullscreen_e5vdf","size-500":"modal__size-500_e5vdf","size-600":"modal__size-600_e5vdf","size-800":"modal__size-800_e5vdf","size-1140":"modal__size-1140_e5vdf"};
@@ -11,7 +11,7 @@ import '../consts.js';
11
11
  import '../ResponsiveContext.js';
12
12
  import '../../../shared/modern';
13
13
  import '../Context.js';
14
- import '../layout.module-6bc66458.js';
14
+ import '../layout.module-565c309a.js';
15
15
  import '../../../navigation-bar-private/modern';
16
16
 
17
17
  const ModalDesktopComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'desktop' })));
@@ -10,7 +10,7 @@ import '../components/content/Component.js';
10
10
  import '../../../shared/modern';
11
11
  import '../Context.js';
12
12
  import '../components/controls/Component.js';
13
- import '../layout.module-6bc66458.js';
13
+ import '../layout.module-565c309a.js';
14
14
  import '../components/footer/Component.js';
15
15
  import '../components/header/Component.js';
16
16
  import '../../../navigation-bar-private/modern';
@@ -9,7 +9,7 @@ import './Context.js';
9
9
  import '../../base-modal/modern';
10
10
  import './ResponsiveContext.js';
11
11
  import './components/controls/Component.js';
12
- import './layout.module-6bc66458.js';
12
+ import './layout.module-565c309a.js';
13
13
  import './components/footer/Component.js';
14
14
  import './components/header/Component.js';
15
15
  import '../../navigation-bar-private/modern';
@@ -11,7 +11,7 @@ import '../consts.js';
11
11
  import '../ResponsiveContext.js';
12
12
  import '../../../shared/modern';
13
13
  import '../Context.js';
14
- import '../layout.module-6bc66458.js';
14
+ import '../layout.module-565c309a.js';
15
15
  import '../../../navigation-bar-private/modern';
16
16
 
17
17
  const ModalMobileComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'mobile' })));
@@ -10,7 +10,7 @@ import '../components/content/Component.js';
10
10
  import '../../../shared/modern';
11
11
  import '../Context.js';
12
12
  import '../components/controls/Component.js';
13
- import '../layout.module-6bc66458.js';
13
+ import '../layout.module-565c309a.js';
14
14
  import '../components/footer/Component.js';
15
15
  import '../components/header/Component.js';
16
16
  import '../../../navigation-bar-private/modern';
@@ -9,6 +9,7 @@ var elementClosest = require('element-closest');
9
9
  var coreComponentsPortal = require('../portal');
10
10
  var coreComponentsStack = require('../stack');
11
11
  var desktop = require('../toast-plate/desktop');
12
+ var stackContext = require('@alfalab/stack-context');
12
13
  var utils_index = require('./utils/index.js');
13
14
 
14
15
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -23,7 +24,7 @@ require('./index.css');
23
24
 
24
25
  var notificationClassNameSelector = ".".concat(styles.notificationComponent);
25
26
  var Notification = React.forwardRef(function (_a, ref) {
26
- var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? coreComponentsStack.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
27
+ var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? stackContext.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
27
28
  var notificationRef = React.useRef(null);
28
29
  var autoCloseTimeoutRef = React.useRef(0);
29
30
  var closeTimeoutRef = React.useRef(0);
@@ -9,6 +9,7 @@ var elementClosest = require('element-closest');
9
9
  var coreComponentsPortal = require('../../portal/cssm');
10
10
  var coreComponentsStack = require('../../stack/cssm');
11
11
  var desktop = require('../../toast-plate/cssm/desktop');
12
+ var stackContext = require('@alfalab/stack-context');
12
13
  var utils_index = require('./utils/index.js');
13
14
  var styles = require('./index.module.css');
14
15
 
@@ -22,7 +23,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
22
23
 
23
24
  var notificationClassNameSelector = ".".concat(styles__default.default.notificationComponent);
24
25
  var Notification = React.forwardRef(function (_a, ref) {
25
- var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? coreComponentsStack.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
26
+ var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? stackContext.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
26
27
  var notificationRef = React.useRef(null);
27
28
  var autoCloseTimeoutRef = React.useRef(0);
28
29
  var closeTimeoutRef = React.useRef(0);
@@ -5,8 +5,9 @@ import { useSwipeable } from 'react-swipeable';
5
5
  import cn from 'classnames';
6
6
  import elementClosest from 'element-closest';
7
7
  import { Portal } from '../../portal/esm';
8
- import { stackingOrder, Stack } from '../../stack/esm';
8
+ import { Stack } from '../../stack/esm';
9
9
  import { ToastPlateDesktop } from '../../toast-plate/esm/desktop';
10
+ import { stackingOrder } from '@alfalab/stack-context';
10
11
  import { useClickOutside } from './utils/index.js';
11
12
 
12
13
  var styles = {"notificationComponent":"notification__notificationComponent_x5voa","isVisible":"notification__isVisible_x5voa","isClosing":"notification__isClosing_x5voa","toastContent":"notification__toastContent_x5voa","actionSection":"notification__actionSection_x5voa"};
@@ -8,4 +8,5 @@ import 'element-closest';
8
8
  import '../../portal/esm';
9
9
  import '../../stack/esm';
10
10
  import '../../toast-plate/esm/desktop';
11
+ import '@alfalab/stack-context';
11
12
  import './utils/index.js';
@@ -4,8 +4,9 @@ import { useSwipeable } from 'react-swipeable';
4
4
  import cn from 'classnames';
5
5
  import elementClosest from 'element-closest';
6
6
  import { Portal } from '../../portal/modern';
7
- import { Stack, stackingOrder } from '../../stack/modern';
7
+ import { Stack } from '../../stack/modern';
8
8
  import { ToastPlateDesktop } from '../../toast-plate/modern/desktop';
9
+ import { stackingOrder } from '@alfalab/stack-context';
9
10
  import { useClickOutside } from './utils/index.js';
10
11
 
11
12
  const styles = {"notificationComponent":"notification__notificationComponent_x5voa","isVisible":"notification__isVisible_x5voa","isClosing":"notification__isClosing_x5voa","toastContent":"notification__toastContent_x5voa","actionSection":"notification__actionSection_x5voa"};
@@ -7,4 +7,5 @@ import 'element-closest';
7
7
  import '../../portal/modern';
8
8
  import '../../stack/modern';
9
9
  import '../../toast-plate/modern/desktop';
10
+ import '@alfalab/stack-context';
10
11
  import './utils/index.js';
@@ -6,6 +6,7 @@ var reactTransitionGroup = require('react-transition-group');
6
6
  var cn = require('classnames');
7
7
  var coreComponentsPortal = require('../portal');
8
8
  var coreComponentsStack = require('../stack');
9
+ var stackContext = require('@alfalab/stack-context');
9
10
  var components_notification_component = require('./components/notification/component.js');
10
11
 
11
12
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -25,7 +26,7 @@ var TIMEOUT = {
25
26
  enter: 400,
26
27
  };
27
28
  var NotificationManager = React.forwardRef(function (_a, ref) {
28
- var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? coreComponentsStack.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
29
+ var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? stackContext.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
29
30
  return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
30
31
  React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, className), ref: ref, "data-test-id": dataTestId, style: tslib.__assign({ zIndex: computedZIndex, top: offset }, style) }, restProps),
31
32
  React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
@@ -6,6 +6,7 @@ var reactTransitionGroup = require('react-transition-group');
6
6
  var cn = require('classnames');
7
7
  var coreComponentsPortal = require('../../portal/cssm');
8
8
  var coreComponentsStack = require('../../stack/cssm');
9
+ var stackContext = require('@alfalab/stack-context');
9
10
  var components_notification_component = require('./components/notification/component.js');
10
11
  var styles = require('./index.module.css');
11
12
 
@@ -24,7 +25,7 @@ var TIMEOUT = {
24
25
  enter: 400,
25
26
  };
26
27
  var NotificationManager = React.forwardRef(function (_a, ref) {
27
- var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? coreComponentsStack.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
28
+ var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? stackContext.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
28
29
  return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
29
30
  React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default.default.component, className), ref: ref, "data-test-id": dataTestId, style: tslib.__assign({ zIndex: computedZIndex, top: offset }, style) }, restProps),
30
31
  React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
@@ -3,7 +3,8 @@ import React, { forwardRef } from 'react';
3
3
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
4
4
  import cn from 'classnames';
5
5
  import { Portal } from '../../portal/esm';
6
- import { stackingOrder, Stack } from '../../stack/esm';
6
+ import { Stack } from '../../stack/esm';
7
+ import { stackingOrder } from '@alfalab/stack-context';
7
8
  import { Notification } from './components/notification/component.js';
8
9
 
9
10
  var styles = {"component":"notification-manager__component_1xrx7","notification":"notification-manager__notification_1xrx7","withoutMargin":"notification-manager__withoutMargin_1xrx7","enter":"notification-manager__enter_1xrx7","enterActive":"notification-manager__enterActive_1xrx7"};
@@ -5,4 +5,5 @@ import 'react-transition-group';
5
5
  import 'classnames';
6
6
  import '../../portal/esm';
7
7
  import '../../stack/esm';
8
+ import '@alfalab/stack-context';
8
9
  import './components/notification/component.js';
@@ -2,7 +2,8 @@ import React, { forwardRef } from 'react';
2
2
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
3
3
  import cn from 'classnames';
4
4
  import { Portal } from '../../portal/modern';
5
- import { Stack, stackingOrder } from '../../stack/modern';
5
+ import { Stack } from '../../stack/modern';
6
+ import { stackingOrder } from '@alfalab/stack-context';
6
7
  import { Notification } from './components/notification/component.js';
7
8
 
8
9
  const styles = {"component":"notification-manager__component_1xrx7","notification":"notification-manager__notification_1xrx7","withoutMargin":"notification-manager__withoutMargin_1xrx7","enter":"notification-manager__enter_1xrx7","enterActive":"notification-manager__enterActive_1xrx7"};
@@ -4,4 +4,5 @@ import 'react-transition-group';
4
4
  import 'classnames';
5
5
  import '../../portal/modern';
6
6
  import '../../stack/modern';
7
+ import '@alfalab/stack-context';
7
8
  import './components/notification/component.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components",
3
- "version": "47.0.0-beta.1",
3
+ "version": "47.0.0-beta.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -56,6 +56,7 @@
56
56
  "@alfalab/hooks": "^1.13.0",
57
57
  "@alfalab/icons-glyph": "^2.139.0",
58
58
  "@alfalab/icons-logotype": "^2.27.0",
59
+ "@alfalab/stack-context": "^1.16.0",
59
60
  "@alfalab/utils": "^1.15.2",
60
61
  "@dnd-kit/core": "^6.0.7",
61
62
  "@dnd-kit/sortable": "^7.0.2",
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { OptgroupProps } from "./typings-0f35b62f";
4
+ declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
+ export { Optgroup };
@@ -58,7 +58,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
58
58
  /**
59
59
  * Атрибут type
60
60
  */
61
- type?: 'number' | 'card' | 'email' | 'money' | 'password' | 'tel' | 'text';
61
+ type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
62
62
  /**
63
63
  * Ref для обертки input
64
64
  */
@@ -196,7 +196,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
196
196
  /**
197
197
  * Атрибут type
198
198
  */
199
- type?: "number" | "text" | "tel" | "email" | "password" | "card" | "money" | undefined;
199
+ type?: "number" | "text" | "tel" | "email" | "password" | "money" | undefined;
200
200
  /**
201
201
  * Ref для обертки input
202
202
  */
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { OptgroupProps } from "./typings-0f35b62f";
4
+ declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
+ export { Optgroup };
@@ -58,7 +58,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
58
58
  /**
59
59
  * Атрибут type
60
60
  */
61
- type?: 'number' | 'card' | 'email' | 'money' | 'password' | 'tel' | 'text';
61
+ type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
62
62
  /**
63
63
  * Ref для обертки input
64
64
  */
@@ -196,7 +196,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
196
196
  /**
197
197
  * Атрибут type
198
198
  */
199
- type?: "number" | "text" | "tel" | "email" | "password" | "card" | "money" | undefined;
199
+ type?: "number" | "text" | "tel" | "email" | "password" | "money" | undefined;
200
200
  /**
201
201
  * Ref для обертки input
202
202
  */
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ComponentType, SVGProps } from "react";
4
4
  import { ButtonProps } from "../../../button";
5
- import { FieldProps as BaseFieldProps } from "../typings-1fe708ea";
5
+ import { FieldProps as BaseFieldProps } from "../typings-0f35b62f";
6
6
  import { PickerButtonSize, PickerButtonVariant } from "../types";
7
7
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
8
8
  buttonSize?: PickerButtonSize;
@@ -174,18 +174,6 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
174
174
  declare function hasScrollbar(target: HTMLElement): boolean;
175
175
  declare const restoreContainerStyles: (container: HTMLElement) => void;
176
176
  declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
177
- /**
178
- * Набор констант для z-index соответствующих классов компонентов.
179
- * Значения выбраны по приоритету.
180
- */
181
- declare const stackingOrder: {
182
- FOCUSED: number;
183
- DEFAULT: number;
184
- POPOVER: number;
185
- MODAL: number;
186
- TOAST: number;
187
- };
188
- declare const StackingContext: import("react").Context<number>;
189
177
  type StackProps = {
190
178
  /**
191
179
  * Render prop, в который передается функция.
@@ -226,5 +214,5 @@ declare class GlobalStore {
226
214
  constructor();
227
215
  getModalStore: () => ModalStore;
228
216
  }
229
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
217
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
230
218
  export type { SavedStyle };
@@ -881,6 +881,18 @@ type OptionsListProps = {
881
881
  * Указать индекс пункта для hover состояния
882
882
  */
883
883
  setHighlightedIndex?: (index: number) => void;
884
+ /**
885
+ * Обработчик добавления в список выбранных вариантов
886
+ */
887
+ addSelectedItem?: (item: OptionShape) => void;
888
+ /**
889
+ * Обработчик удаления из списка выбранных вариантов
890
+ */
891
+ removeSelectedItem?: (item: OptionShape) => void;
892
+ /**
893
+ * Значение поиска
894
+ */
895
+ search?: string;
884
896
  };
885
897
  type OptgroupProps = {
886
898
  /**
@@ -900,6 +912,26 @@ type OptgroupProps = {
900
912
  * Дочерние элементы
901
913
  */
902
914
  children?: ReactNode;
915
+ /**
916
+ * Список вариантов выбора в группе
917
+ */
918
+ options?: OptionShape[];
919
+ /**
920
+ * Список выбранных вариантов в группе
921
+ */
922
+ selectedItems?: OptionShape[];
923
+ /**
924
+ * Обработчик добавления в список выбранных вариантов
925
+ */
926
+ addSelectedItem?: (item: OptionShape) => void;
927
+ /**
928
+ * Обработчик удаления из списка выбранных вариантов
929
+ */
930
+ removeSelectedItem?: (item: OptionShape) => void;
931
+ /**
932
+ * Значение поиска
933
+ */
934
+ search?: string;
903
935
  };
904
936
  type OptionProps = {
905
937
  /**
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-0f35b62f";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { OptgroupProps } from "./typings-0f35b62f";
4
+ declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
+ export { Optgroup };
@@ -58,7 +58,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
58
58
  /**
59
59
  * Атрибут type
60
60
  */
61
- type?: 'number' | 'card' | 'email' | 'money' | 'password' | 'tel' | 'text';
61
+ type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
62
62
  /**
63
63
  * Ref для обертки input
64
64
  */
@@ -196,7 +196,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
196
196
  /**
197
197
  * Атрибут type
198
198
  */
199
- type?: "number" | "text" | "tel" | "email" | "password" | "card" | "money" | undefined;
199
+ type?: "number" | "text" | "tel" | "email" | "password" | "money" | undefined;
200
200
  /**
201
201
  * Ref для обертки input
202
202
  */
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ComponentType, SVGProps } from "react";
4
4
  import { ButtonProps } from "../../../button";
5
- import { FieldProps as BaseFieldProps } from "../typings-1fe708ea";
5
+ import { FieldProps as BaseFieldProps } from "../typings-0f35b62f";
6
6
  import { PickerButtonSize, PickerButtonVariant } from "../types";
7
7
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
8
8
  buttonSize?: PickerButtonSize;
@@ -174,18 +174,6 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
174
174
  declare function hasScrollbar(target: HTMLElement): boolean;
175
175
  declare const restoreContainerStyles: (container: HTMLElement) => void;
176
176
  declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
177
- /**
178
- * Набор констант для z-index соответствующих классов компонентов.
179
- * Значения выбраны по приоритету.
180
- */
181
- declare const stackingOrder: {
182
- FOCUSED: number;
183
- DEFAULT: number;
184
- POPOVER: number;
185
- MODAL: number;
186
- TOAST: number;
187
- };
188
- declare const StackingContext: import("react").Context<number>;
189
177
  type StackProps = {
190
178
  /**
191
179
  * Render prop, в который передается функция.
@@ -226,5 +214,5 @@ declare class GlobalStore {
226
214
  constructor();
227
215
  getModalStore: () => ModalStore;
228
216
  }
229
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
217
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
230
218
  export type { SavedStyle };
@@ -881,6 +881,18 @@ type OptionsListProps = {
881
881
  * Указать индекс пункта для hover состояния
882
882
  */
883
883
  setHighlightedIndex?: (index: number) => void;
884
+ /**
885
+ * Обработчик добавления в список выбранных вариантов
886
+ */
887
+ addSelectedItem?: (item: OptionShape) => void;
888
+ /**
889
+ * Обработчик удаления из списка выбранных вариантов
890
+ */
891
+ removeSelectedItem?: (item: OptionShape) => void;
892
+ /**
893
+ * Значение поиска
894
+ */
895
+ search?: string;
884
896
  };
885
897
  type OptgroupProps = {
886
898
  /**
@@ -900,6 +912,26 @@ type OptgroupProps = {
900
912
  * Дочерние элементы
901
913
  */
902
914
  children?: ReactNode;
915
+ /**
916
+ * Список вариантов выбора в группе
917
+ */
918
+ options?: OptionShape[];
919
+ /**
920
+ * Список выбранных вариантов в группе
921
+ */
922
+ selectedItems?: OptionShape[];
923
+ /**
924
+ * Обработчик добавления в список выбранных вариантов
925
+ */
926
+ addSelectedItem?: (item: OptionShape) => void;
927
+ /**
928
+ * Обработчик удаления из списка выбранных вариантов
929
+ */
930
+ removeSelectedItem?: (item: OptionShape) => void;
931
+ /**
932
+ * Значение поиска
933
+ */
934
+ search?: string;
903
935
  };
904
936
  type OptionProps = {
905
937
  /**
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-0f35b62f";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ComponentType, SVGProps } from "react";
4
4
  import { ButtonProps } from "../../button";
5
- import { FieldProps as BaseFieldProps } from "../typings-1fe708ea";
5
+ import { FieldProps as BaseFieldProps } from "../typings-0f35b62f";
6
6
  import { PickerButtonSize, PickerButtonVariant } from "../types";
7
7
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
8
8
  buttonSize?: PickerButtonSize;