@skbkontur/react-ui 6.1.5 → 6.1.6-00fed.0

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/components/FileUploader/FileUploaderFile.d.ts +1 -1
  2. package/components/FileUploader/FileUploaderFile.js +1 -1
  3. package/components/FileUploader/FileUploaderFile.js.map +1 -1
  4. package/components/FxInput/FxInput.d.ts +1 -1
  5. package/components/FxInput/FxInput.js.map +1 -1
  6. package/components/MaskedInput/MaskedInput.d.ts +6 -2
  7. package/components/MaskedInput/MaskedInput.js +10 -126
  8. package/components/MaskedInput/MaskedInput.js.map +1 -1
  9. package/components/MaskedInput/MaskedInputLegacy.d.ts +3 -0
  10. package/components/MaskedInput/MaskedInputLegacy.js +142 -0
  11. package/components/MaskedInput/MaskedInputLegacy.js.map +1 -0
  12. package/components/MaskedInput/index.d.ts +1 -0
  13. package/components/MaskedInput/index.js +1 -0
  14. package/components/MaskedInput/index.js.map +1 -1
  15. package/components/MaskedInputV2/MaskedInputV2.d.ts +62 -0
  16. package/components/MaskedInputV2/MaskedInputV2.helpers.d.ts +9 -0
  17. package/components/MaskedInputV2/MaskedInputV2.helpers.js +17 -0
  18. package/components/MaskedInputV2/MaskedInputV2.helpers.js.map +1 -0
  19. package/components/MaskedInputV2/MaskedInputV2.js +307 -0
  20. package/components/MaskedInputV2/MaskedInputV2.js.map +1 -0
  21. package/components/MaskedInputV2/MaskedInputV2.phone.d.ts +28 -0
  22. package/components/MaskedInputV2/MaskedInputV2.phone.js +38 -0
  23. package/components/MaskedInputV2/MaskedInputV2.phone.js.map +1 -0
  24. package/components/MaskedInputV2/MaskedInputV2.styles.d.ts +7 -0
  25. package/components/MaskedInputV2/MaskedInputV2.styles.js +19 -0
  26. package/components/MaskedInputV2/MaskedInputV2.styles.js.map +1 -0
  27. package/components/MaskedInputV2/index.d.ts +2 -0
  28. package/components/MaskedInputV2/index.js +3 -0
  29. package/components/MaskedInputV2/index.js.map +1 -0
  30. package/components/MaskedInputV2/internal/MaskOverlay.d.ts +19 -0
  31. package/components/MaskedInputV2/internal/MaskOverlay.js +54 -0
  32. package/components/MaskedInputV2/internal/MaskOverlay.js.map +1 -0
  33. package/components/MaskedInputV2/internal/MaskedCore.d.ts +8 -0
  34. package/components/MaskedInputV2/internal/MaskedCore.js +186 -0
  35. package/components/MaskedInputV2/internal/MaskedCore.js.map +1 -0
  36. package/components/MaskedInputV2/internal/MaskedCore.types.d.ts +37 -0
  37. package/components/MaskedInputV2/internal/MaskedCore.types.js +2 -0
  38. package/components/MaskedInputV2/internal/MaskedCore.types.js.map +1 -0
  39. package/components/MaskedInputV2/internal/MaskedInternal.styles.d.ts +15 -0
  40. package/components/MaskedInputV2/internal/MaskedInternal.styles.js +34 -0
  41. package/components/MaskedInputV2/internal/MaskedInternal.styles.js.map +1 -0
  42. package/components/MaskedInputV2/internal/buildSlotMap.d.ts +11 -0
  43. package/components/MaskedInputV2/internal/buildSlotMap.js +37 -0
  44. package/components/MaskedInputV2/internal/buildSlotMap.js.map +1 -0
  45. package/components/MaskedInputV2/internal/computeMaskAlignPadding.d.ts +6 -0
  46. package/components/MaskedInputV2/internal/computeMaskAlignPadding.js +47 -0
  47. package/components/MaskedInputV2/internal/computeMaskAlignPadding.js.map +1 -0
  48. package/components/MaskedInputV2/internal/computePasteMaskedCursor.d.ts +3 -0
  49. package/components/MaskedInputV2/internal/computePasteMaskedCursor.js +11 -0
  50. package/components/MaskedInputV2/internal/computePasteMaskedCursor.js.map +1 -0
  51. package/components/MaskedInputV2/internal/extractRaw.d.ts +10 -0
  52. package/components/MaskedInputV2/internal/extractRaw.js +16 -0
  53. package/components/MaskedInputV2/internal/extractRaw.js.map +1 -0
  54. package/components/MaskedInputV2/internal/findNearestRawLeft.d.ts +10 -0
  55. package/components/MaskedInputV2/internal/findNearestRawLeft.js +18 -0
  56. package/components/MaskedInputV2/internal/findNearestRawLeft.js.map +1 -0
  57. package/components/MaskedInputV2/internal/helpers.d.ts +8 -0
  58. package/components/MaskedInputV2/internal/helpers.js +9 -0
  59. package/components/MaskedInputV2/internal/helpers.js.map +1 -0
  60. package/components/MaskedInputV2/internal/maskedCoreClipboard.d.ts +37 -0
  61. package/components/MaskedInputV2/internal/maskedCoreClipboard.js +52 -0
  62. package/components/MaskedInputV2/internal/maskedCoreClipboard.js.map +1 -0
  63. package/components/MaskedInputV2/internal/maskedCoreDeletion.d.ts +28 -0
  64. package/components/MaskedInputV2/internal/maskedCoreDeletion.js +70 -0
  65. package/components/MaskedInputV2/internal/maskedCoreDeletion.js.map +1 -0
  66. package/components/MaskedInputV2/internal/maskedCoreInputChange.d.ts +38 -0
  67. package/components/MaskedInputV2/internal/maskedCoreInputChange.js +49 -0
  68. package/components/MaskedInputV2/internal/maskedCoreInputChange.js.map +1 -0
  69. package/components/MaskedInputV2/internal/maskedCoreNavigation.d.ts +13 -0
  70. package/components/MaskedInputV2/internal/maskedCoreNavigation.js +79 -0
  71. package/components/MaskedInputV2/internal/maskedCoreNavigation.js.map +1 -0
  72. package/components/MaskedInputV2/internal/measureInputTextWidth.d.ts +2 -0
  73. package/components/MaskedInputV2/internal/measureInputTextWidth.js +30 -0
  74. package/components/MaskedInputV2/internal/measureInputTextWidth.js.map +1 -0
  75. package/components/MaskedInputV2/internal/setMaskInputSelectionRange.d.ts +2 -0
  76. package/components/MaskedInputV2/internal/setMaskInputSelectionRange.js +25 -0
  77. package/components/MaskedInputV2/internal/setMaskInputSelectionRange.js.map +1 -0
  78. package/components/MaskedInputV2/internal/showOverlay.d.ts +3 -0
  79. package/components/MaskedInputV2/internal/showOverlay.js +16 -0
  80. package/components/MaskedInputV2/internal/showOverlay.js.map +1 -0
  81. package/components/MaskedInputV2/internal/stripMaskChars.d.ts +11 -0
  82. package/components/MaskedInputV2/internal/stripMaskChars.js +20 -0
  83. package/components/MaskedInputV2/internal/stripMaskChars.js.map +1 -0
  84. package/components/MaskedInputV2/internal/types.d.ts +74 -0
  85. package/components/MaskedInputV2/internal/types.js +2 -0
  86. package/components/MaskedInputV2/internal/types.js.map +1 -0
  87. package/components/MaskedInputV2/internal/useInputOverflow.d.ts +4 -0
  88. package/components/MaskedInputV2/internal/useInputOverflow.js +34 -0
  89. package/components/MaskedInputV2/internal/useInputOverflow.js.map +1 -0
  90. package/components/MaskedInputV2/internal/useMaskAlignPadding.d.ts +2 -0
  91. package/components/MaskedInputV2/internal/useMaskAlignPadding.js +33 -0
  92. package/components/MaskedInputV2/internal/useMaskAlignPadding.js.map +1 -0
  93. package/components/MaskedInputV2/internal/useMaskEngine.d.ts +42 -0
  94. package/components/MaskedInputV2/internal/useMaskEngine.js +128 -0
  95. package/components/MaskedInputV2/internal/useMaskEngine.js.map +1 -0
  96. package/components/MaskedInputV2/internal/useMaskedCoreHandlers.d.ts +34 -0
  97. package/components/MaskedInputV2/internal/useMaskedCoreHandlers.js +335 -0
  98. package/components/MaskedInputV2/internal/useMaskedCoreHandlers.js.map +1 -0
  99. package/components/MaskedInputV2/react-imask/imask/controls/html-input-mask-element.d.ts +16 -0
  100. package/components/MaskedInputV2/react-imask/imask/controls/html-input-mask-element.js +59 -0
  101. package/components/MaskedInputV2/react-imask/imask/controls/html-input-mask-element.js.map +1 -0
  102. package/components/MaskedInputV2/react-imask/imask/controls/html-mask-element.d.ts +20 -0
  103. package/components/MaskedInputV2/react-imask/imask/controls/html-mask-element.js +106 -0
  104. package/components/MaskedInputV2/react-imask/imask/controls/html-mask-element.js.map +1 -0
  105. package/components/MaskedInputV2/react-imask/imask/controls/input-history.d.ts +17 -0
  106. package/components/MaskedInputV2/react-imask/imask/controls/input-history.js +49 -0
  107. package/components/MaskedInputV2/react-imask/imask/controls/input-history.js.map +1 -0
  108. package/components/MaskedInputV2/react-imask/imask/controls/input.d.ts +95 -0
  109. package/components/MaskedInputV2/react-imask/imask/controls/input.js +420 -0
  110. package/components/MaskedInputV2/react-imask/imask/controls/input.js.map +1 -0
  111. package/components/MaskedInputV2/react-imask/imask/controls/mask-element.d.ts +30 -0
  112. package/components/MaskedInputV2/react-imask/imask/controls/mask-element.js +59 -0
  113. package/components/MaskedInputV2/react-imask/imask/controls/mask-element.js.map +1 -0
  114. package/components/MaskedInputV2/react-imask/imask/core/action-details.d.ts +30 -0
  115. package/components/MaskedInputV2/react-imask/imask/core/action-details.js +100 -0
  116. package/components/MaskedInputV2/react-imask/imask/core/action-details.js.map +1 -0
  117. package/components/MaskedInputV2/react-imask/imask/core/change-details.d.ts +20 -0
  118. package/components/MaskedInputV2/react-imask/imask/core/change-details.js +46 -0
  119. package/components/MaskedInputV2/react-imask/imask/core/change-details.js.map +1 -0
  120. package/components/MaskedInputV2/react-imask/imask/core/continuous-tail-details.d.ts +21 -0
  121. package/components/MaskedInputV2/react-imask/imask/core/continuous-tail-details.js +52 -0
  122. package/components/MaskedInputV2/react-imask/imask/core/continuous-tail-details.js.map +1 -0
  123. package/components/MaskedInputV2/react-imask/imask/core/holder.d.ts +34 -0
  124. package/components/MaskedInputV2/react-imask/imask/core/holder.js +38 -0
  125. package/components/MaskedInputV2/react-imask/imask/core/holder.js.map +1 -0
  126. package/components/MaskedInputV2/react-imask/imask/core/tail-details.d.ts +20 -0
  127. package/components/MaskedInputV2/react-imask/imask/core/tail-details.js +2 -0
  128. package/components/MaskedInputV2/react-imask/imask/core/tail-details.js.map +1 -0
  129. package/components/MaskedInputV2/react-imask/imask/core/utils.d.ts +24 -0
  130. package/components/MaskedInputV2/react-imask/imask/core/utils.js +100 -0
  131. package/components/MaskedInputV2/react-imask/imask/core/utils.js.map +1 -0
  132. package/components/MaskedInputV2/react-imask/imask/imask.d.ts +5 -0
  133. package/components/MaskedInputV2/react-imask/imask/imask.js +7 -0
  134. package/components/MaskedInputV2/react-imask/imask/imask.js.map +1 -0
  135. package/components/MaskedInputV2/react-imask/imask/index.d.ts +17 -0
  136. package/components/MaskedInputV2/react-imask/imask/index.js +16 -0
  137. package/components/MaskedInputV2/react-imask/imask/index.js.map +1 -0
  138. package/components/MaskedInputV2/react-imask/imask/masked/base.d.ts +114 -0
  139. package/components/MaskedInputV2/react-imask/imask/masked/base.js +411 -0
  140. package/components/MaskedInputV2/react-imask/imask/masked/base.js.map +1 -0
  141. package/components/MaskedInputV2/react-imask/imask/masked/create.d.ts +14 -0
  142. package/components/MaskedInputV2/react-imask/imask/masked/create.js +11 -0
  143. package/components/MaskedInputV2/react-imask/imask/masked/create.js.map +1 -0
  144. package/components/MaskedInputV2/react-imask/imask/masked/factory.d.ts +62 -0
  145. package/components/MaskedInputV2/react-imask/imask/masked/factory.js +107 -0
  146. package/components/MaskedInputV2/react-imask/imask/masked/factory.js.map +1 -0
  147. package/components/MaskedInputV2/react-imask/imask/masked/pattern.d.ts +101 -0
  148. package/components/MaskedInputV2/react-imask/imask/masked/pattern.js +549 -0
  149. package/components/MaskedInputV2/react-imask/imask/masked/pattern.js.map +1 -0
  150. package/components/MaskedInputV2/react-imask/imask/masked/patterns/block.d.ts +30 -0
  151. package/components/MaskedInputV2/react-imask/imask/masked/patterns/block.js +2 -0
  152. package/components/MaskedInputV2/react-imask/imask/masked/patterns/block.js.map +1 -0
  153. package/components/MaskedInputV2/react-imask/imask/masked/patterns/chunk-tail-details.d.ts +20 -0
  154. package/components/MaskedInputV2/react-imask/imask/masked/patterns/chunk-tail-details.js +182 -0
  155. package/components/MaskedInputV2/react-imask/imask/masked/patterns/chunk-tail-details.js.map +1 -0
  156. package/components/MaskedInputV2/react-imask/imask/masked/patterns/cursor.d.ts +31 -0
  157. package/components/MaskedInputV2/react-imask/imask/masked/patterns/cursor.js +163 -0
  158. package/components/MaskedInputV2/react-imask/imask/masked/patterns/cursor.js.map +1 -0
  159. package/components/MaskedInputV2/react-imask/imask/masked/patterns/fixed-definition.d.ts +42 -0
  160. package/components/MaskedInputV2/react-imask/imask/masked/patterns/fixed-definition.js +158 -0
  161. package/components/MaskedInputV2/react-imask/imask/masked/patterns/fixed-definition.js.map +1 -0
  162. package/components/MaskedInputV2/react-imask/imask/masked/patterns/input-definition.d.ts +56 -0
  163. package/components/MaskedInputV2/react-imask/imask/masked/patterns/input-definition.js +185 -0
  164. package/components/MaskedInputV2/react-imask/imask/masked/patterns/input-definition.js.map +1 -0
  165. package/components/MaskedInputV2/react-imask/imask/masked/regexp.d.ts +17 -0
  166. package/components/MaskedInputV2/react-imask/imask/masked/regexp.js +36 -0
  167. package/components/MaskedInputV2/react-imask/imask/masked/regexp.js.map +1 -0
  168. package/components/MaskedInputV2/react-imask/index.d.ts +3 -0
  169. package/components/MaskedInputV2/react-imask/index.js +4 -0
  170. package/components/MaskedInputV2/react-imask/index.js.map +1 -0
  171. package/components/MaskedInputV2/react-imask/input.d.ts +8 -0
  172. package/components/MaskedInputV2/react-imask/input.js +35 -0
  173. package/components/MaskedInputV2/react-imask/input.js.map +1 -0
  174. package/components/MaskedInputV2/react-imask/mixin.d.ts +31 -0
  175. package/components/MaskedInputV2/react-imask/mixin.js +246 -0
  176. package/components/MaskedInputV2/react-imask/mixin.js.map +1 -0
  177. package/components/MiniModal/MiniModal.d.ts +0 -9
  178. package/components/MiniModal/MiniModal.js +0 -9
  179. package/components/MiniModal/MiniModal.js.map +1 -1
  180. package/components/Modal/Modal.d.ts +0 -5
  181. package/components/Modal/Modal.js +0 -5
  182. package/components/Modal/Modal.js.map +1 -1
  183. package/components/Switcher/Switcher.d.ts +3 -3
  184. package/components/Switcher/Switcher.js +1 -1
  185. package/components/Switcher/Switcher.js.map +1 -1
  186. package/components/Tabs/Tab.d.ts +4 -5
  187. package/components/Tabs/Tab.js +0 -1
  188. package/components/Tabs/Tab.js.map +1 -1
  189. package/components/Tabs/Tabs.d.ts +2 -2
  190. package/components/Tabs/Tabs.js +1 -1
  191. package/components/Tabs/Tabs.js.map +1 -1
  192. package/components/Token/Token.d.ts +1 -1
  193. package/components/Token/Token.js +1 -1
  194. package/components/Token/Token.js.map +1 -1
  195. package/components/TokenInput/TokenInput.d.ts +1 -1
  196. package/components/TokenInput/TokenInput.js +1 -1
  197. package/components/TokenInput/TokenInput.js.map +1 -1
  198. package/lib/events/keyboard/KeyboardEventCodes.d.ts +2 -0
  199. package/lib/events/keyboard/KeyboardEventCodes.js +2 -0
  200. package/lib/events/keyboard/KeyboardEventCodes.js.map +1 -1
  201. package/lib/events/keyboard/KeyboardMapKeys.js +2 -0
  202. package/lib/events/keyboard/KeyboardMapKeys.js.map +1 -1
  203. package/lib/events/keyboard/identifiers.d.ts +2 -0
  204. package/lib/events/keyboard/identifiers.js +6 -0
  205. package/lib/events/keyboard/identifiers.js.map +1 -1
  206. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +1 -0
  207. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js +1 -0
  208. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
  209. package/package.json +4 -1
@@ -1 +1 @@
1
- {"version":3,"file":"identifiers.js","sourceRoot":"","sources":["identifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAOtE,MAAM,CAAC,IAAM,cAAc,GAAO,UAAC,CAAC;IAClC,OAAA,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC;QAClE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,GAAG,KAAK,MAAM;AAFhB,CAEgB,CAAC;AAEnB,MAAM,CAAC,IAAM,eAAe,GAAO,UAAC,CAAC;IACnC,OAAA,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,C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CAAiC,EAAxC,CAAwC,CAAC;AAClF,MAAM,CAAC,IAAM,SAAS,GAAU,UAAC,EAAE,IAAK,OAAA,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAhC,CAAgC,EAAvC,CAAuC,CAAC;AAChF,MAAM,CAAC,IAAM,QAAQ,GAAU,UAAC,EAAE,IAAK,OAAA,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAA/B,CAA+B,EAAtC,CAAsC,CAAC;AAE9E,MAAM,CAAC,IAAM,QAAQ,GACnB;IAAC,aAAM;SAAN,UAAM,EAAN,qBAAM,EAAN,IAAM;QAAN,wBAAM;;IACP,OAAA,UAAC,CAAC;QACA,OAAA,GAAG,CAAC,IAAI,CAAC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,CAAC,CAAC,EAAL,CAAK,CAAC;IAAvB,CAAuB;AADzB,CACyB,CAAC","sourcesContent":["import { isMac } from '../../client.js';\nimport { extractCode } from './extractCode.js';\nimport { KeyboardEventCodes as Codes } from './KeyboardEventCodes.js';\n\ntype E = React.KeyboardEvent<HTMLElement> | KeyboardEvent;\ntype IS = (e: E) => boolean;\ntype ISMod = (is?: IS) => IS;\ntype ISSome = (...is: IS[]) => IS;\n\nexport const isShortcutCopy: IS = (e) =>\n ((isMac ? e.metaKey : e.ctrlKey) && extractCode(e) === Codes.KeyC) ||\n (!isMac && e.ctrlKey && isKeyInsert(e)) ||\n e.key === 'Copy';\n\nexport const isShortcutPaste: IS = (e) =>\n ((isMac ? e.metaKey : e.ctrlKey) && extractCode(e) === Codes.KeyV) ||\n (!isMac && e.shiftKey && isKeyInsert(e)) ||\n e.key === 'Paste';\n\nexport const isShortcutCut: IS = (e) =>\n ((isMac ? e.metaKey : e.ctrlKey) && extractCode(e) === Codes.KeyX) ||\n (!isMac && e.shiftKey && isKeyDelete(e)) ||\n e.key === 'Cut';\n\nexport const isShortcutSelectAll: IS = (e) => (isMac ? e.metaKey : e.ctrlKey) && extractCode(e) === Codes.KeyA;\n\nexport const isShortcutJumpCaret: IS = (e) => (isMac ? e.altKey : e.ctrlKey) && isKeyArrowHorizontal(e);\n\nexport const isKeyEscape: IS = (e) => e.key === 'Escape' || e.key === 'Esc';\nexport const isKeyHome: IS = (e) => e.key === 'Home';\nexport const isKeyEnd: IS = (e) => e.key === 'End';\nexport const isKeyMeta: IS = (e) => e.key === 'Meta' || e.key === 'Win';\nexport const isKeyControl: IS = (e) => e.key === 'Control';\nexport const isKeyShift: IS = (e) => e.key === 'Shift';\nexport const isKeyAlt: IS = (e) => e.key === 'Alt';\nexport const isKeyDelete: IS = (e) => e.key === 'Delete' || e.key === 'Del';\nexport const isKeyBackspace: IS = (e) => e.key === 'Backspace';\nexport const isKeyCapsLock: IS = (e) => e.key === 'CapsLock';\nexport const isKeyInsert: IS = (e) => e.key === 'Insert';\nexport const isKeyTab: IS = (e) => e.key === 'Tab';\nexport const isKeyEnter: IS = (e) => e.key === 'Enter';\nexport const isKeyArrowUp: IS = (e) => e.key === 'ArrowUp' || e.key === 'Up';\nexport const isKeyArrowRight: IS = (e) => e.key === 'ArrowRight' || e.key === 'Right';\nexport const isKeyArrowDown: IS = (e) => e.key === 'ArrowDown' || e.key === 'Down';\nexport const isKeyArrowLeft: IS = (e) => e.key === 'ArrowLeft' || e.key === 'Left';\nexport const isKeySpace: IS = (e) => e.key === ' ' || e.key === 'Spacebar';\nexport const isKeyComma: IS = (e) => e.key === ',';\n\nexport const isCodeMinus: IS = (e) => extractCode(e) === Codes.Minus;\nexport const isCodeNumpadDecimal: IS = (e) => extractCode(e) === Codes.NumpadDecimal;\nexport const isCodeNumpadDivide: IS = (e) => extractCode(e) === Codes.NumpadDivide;\nexport const isCodeNumpadSubtract: IS = (e) => extractCode(e) === Codes.NumpadSubtract;\nexport const isCodeSlash: IS = (e) => extractCode(e) === Codes.Slash;\nexport const isCodeBackslash: IS = (e) => extractCode(e) === Codes.Backslash;\nexport const isCodeIntlBackslash: IS = (e) => extractCode(e) === Codes.IntlBackslash;\nexport const isCodeComma: IS = (e) => extractCode(e) === Codes.Comma;\nexport const isCodePeriod: IS = (e) => extractCode(e) === Codes.Period;\n\nexport const isKeyArrowHorizontal: IS = (e) => isKeyArrowRight(e) || isKeyArrowLeft(e);\nexport const isKeyArrowVertical: IS = (e) => isKeyArrowUp(e) || isKeyArrowDown(e);\nexport const isKeyArrow: IS = (e) => isKeyArrowHorizontal(e) || isKeyArrowVertical(e);\nexport const isKeyNumber: IS = (e) => /^\\d+$/.test(e.key);\nexport const isKeyChar: IS = (e) => e.key.trim().length === 1;\nexport const isKeyFs: IS = (e) => /^(?:F[1-9]|F1[0-2]|Soft[1-4])$/.test(e.key);\n\nexport const isModified: ISMod = (is) => (e) =>\n (e.shiftKey || e.metaKey || e.ctrlKey || e.altKey) && (is ? is(e) : true);\nexport const isUnmodified: ISMod = (is) => (e) => !isModified()(e) && (is ? is(e) : true);\nexport const isModShift: ISMod = (is) => (e) => e.shiftKey && (is ? is(e) : true);\nexport const isModCtrl: ISMod = (is) => (e) => e.ctrlKey && (is ? is(e) : true);\nexport const isModAlt: ISMod = (is) => (e) => e.altKey && (is ? is(e) : true);\n\nexport const someKeys: ISSome =\n (...iss) =>\n (e) =>\n iss.some((is) => is(e));\n"]}
1
+ {"version":3,"file":"identifiers.js","sourceRoot":"","sources":["identifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAOtE,MAAM,CAAC,IAAM,cAAc,GAAO,UAA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C,CAAC,IAAI,CAAC,EAAhC,CAAgC,EAAvC,CAAuC,CAAC;AAChF,MAAM,CAAC,IAAM,QAAQ,GAAU,UAAC,EAAE,IAAK,OAAA,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAA/B,CAA+B,EAAtC,CAAsC,CAAC;AAE9E,MAAM,CAAC,IAAM,QAAQ,GACnB;IAAC,aAAM;SAAN,UAAM,EAAN,qBAAM,EAAN,IAAM;QAAN,wBAAM;;IACP,OAAA,UAAC,CAAC;QACA,OAAA,GAAG,CAAC,IAAI,CAAC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,CAAC,CAAC,EAAL,CAAK,CAAC;IAAvB,CAAuB;AADzB,CACyB,CAAC","sourcesContent":["import { isMac } from '../../client.js';\nimport { extractCode } from './extractCode.js';\nimport { KeyboardEventCodes as Codes } from './KeyboardEventCodes.js';\n\ntype E = React.KeyboardEvent<HTMLElement> | KeyboardEvent;\ntype IS = (e: E) => boolean;\ntype ISMod = (is?: IS) => IS;\ntype ISSome = (...is: IS[]) => IS;\n\nexport const isShortcutCopy: IS = (e) =>\n ((isMac ? e.metaKey : e.ctrlKey) && extractCode(e) === Codes.KeyC) ||\n (!isMac && e.ctrlKey && isKeyInsert(e)) ||\n e.key === 'Copy';\n\nexport const isShortcutPaste: IS = (e) =>\n ((isMac ? e.metaKey : e.ctrlKey) && extractCode(e) === Codes.KeyV) ||\n (!isMac && e.shiftKey && isKeyInsert(e)) ||\n e.key === 'Paste';\n\nexport const isShortcutCut: IS = (e) =>\n ((isMac ? e.metaKey : e.ctrlKey) && extractCode(e) === Codes.KeyX) ||\n (!isMac && e.shiftKey && isKeyDelete(e)) ||\n e.key === 'Cut';\n\nexport const isShortcutSelectAll: IS = (e) => (isMac ? e.metaKey : e.ctrlKey) && extractCode(e) === Codes.KeyA;\n\nexport const isShortcutUndo: IS = (e) =>\n (isMac ? e.metaKey : e.ctrlKey) && !e.shiftKey && extractCode(e) === Codes.KeyZ;\n\nexport const isShortcutRedo: IS = (e) =>\n (isMac ? e.metaKey : e.ctrlKey) && (extractCode(e) === Codes.KeyY || (e.shiftKey && extractCode(e) === Codes.KeyZ));\n\nexport const isShortcutJumpCaret: IS = (e) => (isMac ? e.altKey : e.ctrlKey) && isKeyArrowHorizontal(e);\n\nexport const isKeyEscape: IS = (e) => e.key === 'Escape' || e.key === 'Esc';\nexport const isKeyHome: IS = (e) => e.key === 'Home';\nexport const isKeyEnd: IS = (e) => e.key === 'End';\nexport const isKeyMeta: IS = (e) => e.key === 'Meta' || e.key === 'Win';\nexport const isKeyControl: IS = (e) => e.key === 'Control';\nexport const isKeyShift: IS = (e) => e.key === 'Shift';\nexport const isKeyAlt: IS = (e) => e.key === 'Alt';\nexport const isKeyDelete: IS = (e) => e.key === 'Delete' || e.key === 'Del';\nexport const isKeyBackspace: IS = (e) => e.key === 'Backspace';\nexport const isKeyCapsLock: IS = (e) => e.key === 'CapsLock';\nexport const isKeyInsert: IS = (e) => e.key === 'Insert';\nexport const isKeyTab: IS = (e) => e.key === 'Tab';\nexport const isKeyEnter: IS = (e) => e.key === 'Enter';\nexport const isKeyArrowUp: IS = (e) => e.key === 'ArrowUp' || e.key === 'Up';\nexport const isKeyArrowRight: IS = (e) => e.key === 'ArrowRight' || e.key === 'Right';\nexport const isKeyArrowDown: IS = (e) => e.key === 'ArrowDown' || e.key === 'Down';\nexport const isKeyArrowLeft: IS = (e) => e.key === 'ArrowLeft' || e.key === 'Left';\nexport const isKeySpace: IS = (e) => e.key === ' ' || e.key === 'Spacebar';\nexport const isKeyComma: IS = (e) => e.key === ',';\n\nexport const isCodeMinus: IS = (e) => extractCode(e) === Codes.Minus;\nexport const isCodeNumpadDecimal: IS = (e) => extractCode(e) === Codes.NumpadDecimal;\nexport const isCodeNumpadDivide: IS = (e) => extractCode(e) === Codes.NumpadDivide;\nexport const isCodeNumpadSubtract: IS = (e) => extractCode(e) === Codes.NumpadSubtract;\nexport const isCodeSlash: IS = (e) => extractCode(e) === Codes.Slash;\nexport const isCodeBackslash: IS = (e) => extractCode(e) === Codes.Backslash;\nexport const isCodeIntlBackslash: IS = (e) => extractCode(e) === Codes.IntlBackslash;\nexport const isCodeComma: IS = (e) => extractCode(e) === Codes.Comma;\nexport const isCodePeriod: IS = (e) => extractCode(e) === Codes.Period;\n\nexport const isKeyArrowHorizontal: IS = (e) => isKeyArrowRight(e) || isKeyArrowLeft(e);\nexport const isKeyArrowVertical: IS = (e) => isKeyArrowUp(e) || isKeyArrowDown(e);\nexport const isKeyArrow: IS = (e) => isKeyArrowHorizontal(e) || isKeyArrowVertical(e);\nexport const isKeyNumber: IS = (e) => /^\\d+$/.test(e.key);\nexport const isKeyChar: IS = (e) => e.key.trim().length === 1;\nexport const isKeyFs: IS = (e) => /^(?:F[1-9]|F1[0-2]|Soft[1-4])$/.test(e.key);\n\nexport const isModified: ISMod = (is) => (e) =>\n (e.shiftKey || e.metaKey || e.ctrlKey || e.altKey) && (is ? is(e) : true);\nexport const isUnmodified: ISMod = (is) => (e) => !isModified()(e) && (is ? is(e) : true);\nexport const isModShift: ISMod = (is) => (e) => e.shiftKey && (is ? is(e) : true);\nexport const isModCtrl: ISMod = (is) => (e) => e.ctrlKey && (is ? is(e) : true);\nexport const isModAlt: ISMod = (is) => (e) => e.altKey && (is ? is(e) : true);\n\nexport const someKeys: ISSome =\n (...iss) =>\n (e) =>\n iss.some((is) => is(e));\n"]}
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  export interface ReactUIFeatureFlags {
3
+ maskedInputUseLegacyBehavior?: boolean;
3
4
  selectAutoScrollToSelectedItem?: boolean;
4
5
  }
5
6
  export declare const reactUIFeatureFlagsDefault: ReactUIFeatureFlags;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  export var reactUIFeatureFlagsDefault = {
3
3
  selectAutoScrollToSelectedItem: false,
4
+ maskedInputUseLegacyBehavior: false,
4
5
  };
5
6
  export var ReactUIFeatureFlagsContext = React.createContext(reactUIFeatureFlagsDefault);
6
7
  ReactUIFeatureFlagsContext.displayName = 'ReactUIFeatureFlagsContext';
@@ -1 +1 @@
1
- {"version":3,"file":"ReactUIFeatureFlagsContext.js","sourceRoot":"","sources":["ReactUIFeatureFlagsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,CAAC,IAAM,0BAA0B,GAAwB;IAC7D,8BAA8B,EAAE,KAAK;CACtC,CAAC;AAEF,MAAM,CAAC,IAAM,0BAA0B,GAAG,KAAK,CAAC,aAAa,CAAsB,0BAA0B,CAAC,CAAC;AAE/G,0BAA0B,CAAC,WAAW,GAAG,4BAA4B,CAAC;AACtE,0BAA0B,CAAC,mBAAmB,GAAG,4BAA4B,CAAC","sourcesContent":["import React from 'react';\n\nexport interface ReactUIFeatureFlags {\n selectAutoScrollToSelectedItem?: boolean;\n}\n\nexport const reactUIFeatureFlagsDefault: ReactUIFeatureFlags = {\n selectAutoScrollToSelectedItem: false,\n};\n\nexport const ReactUIFeatureFlagsContext = React.createContext<ReactUIFeatureFlags>(reactUIFeatureFlagsDefault);\n\nReactUIFeatureFlagsContext.displayName = 'ReactUIFeatureFlagsContext';\nReactUIFeatureFlagsContext.__KONTUR_REACT_UI__ = 'ReactUIFeatureFlagsContext';\n"]}
1
+ {"version":3,"file":"ReactUIFeatureFlagsContext.js","sourceRoot":"","sources":["ReactUIFeatureFlagsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,CAAC,IAAM,0BAA0B,GAAwB;IAC7D,8BAA8B,EAAE,KAAK;IACrC,4BAA4B,EAAE,KAAK;CACpC,CAAC;AAEF,MAAM,CAAC,IAAM,0BAA0B,GAAG,KAAK,CAAC,aAAa,CAAsB,0BAA0B,CAAC,CAAC;AAE/G,0BAA0B,CAAC,WAAW,GAAG,4BAA4B,CAAC;AACtE,0BAA0B,CAAC,mBAAmB,GAAG,4BAA4B,CAAC","sourcesContent":["import React from 'react';\n\nexport interface ReactUIFeatureFlags {\n maskedInputUseLegacyBehavior?: boolean;\n selectAutoScrollToSelectedItem?: boolean;\n}\n\nexport const reactUIFeatureFlagsDefault: ReactUIFeatureFlags = {\n selectAutoScrollToSelectedItem: false,\n maskedInputUseLegacyBehavior: false,\n};\n\nexport const ReactUIFeatureFlagsContext = React.createContext<ReactUIFeatureFlags>(reactUIFeatureFlagsDefault);\n\nReactUIFeatureFlagsContext.displayName = 'ReactUIFeatureFlagsContext';\nReactUIFeatureFlagsContext.__KONTUR_REACT_UI__ = 'ReactUIFeatureFlagsContext';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skbkontur/react-ui",
3
- "version": "6.1.5",
3
+ "version": "6.1.6-00fed.0",
4
4
  "description": "UI Components",
5
5
  "homepage": "https://tech.skbkontur.ru/kontur-ui",
6
6
  "bugs": {
@@ -82,6 +82,9 @@
82
82
  "./components/MaskedInput/ColorableInputElement/ColorableInputElement": "./components/MaskedInput/ColorableInputElement/ColorableInputElement.js",
83
83
  "./components/MaskedInput": "./components/MaskedInput/index.js",
84
84
  "./components/MaskedInput/MaskedInput": "./components/MaskedInput/MaskedInput.js",
85
+ "./components/MaskedInputV2": "./components/MaskedInputV2/index.js",
86
+ "./components/MaskedInputV2/react-imask/imask": "./components/MaskedInputV2/react-imask/imask/index.js",
87
+ "./components/MaskedInputV2/react-imask": "./components/MaskedInputV2/react-imask/index.js",
85
88
  "./components/MenuFooter": "./components/MenuFooter/index.js",
86
89
  "./components/MenuFooter/MenuFooter": "./components/MenuFooter/MenuFooter.js",
87
90
  "./components/MenuHeader": "./components/MenuHeader/index.js",