mimir-ui-kit 1.43.10 → 1.43.11

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 (160) hide show
  1. package/dist/Input-CGZoshMl.js +224 -0
  2. package/dist/assets/Accordion.css +1 -1
  3. package/dist/assets/AccordionItem.css +1 -1
  4. package/dist/assets/Avatar.css +1 -1
  5. package/dist/assets/Button.css +1 -1
  6. package/dist/assets/CarBodyButton.css +1 -0
  7. package/dist/assets/CheckboxMimir.css +1 -1
  8. package/dist/assets/Chip.css +1 -1
  9. package/dist/assets/Drawer.css +1 -1
  10. package/dist/assets/GosZnak.css +1 -1
  11. package/dist/assets/Input.css +1 -1
  12. package/dist/assets/InputPassword.css +1 -1
  13. package/dist/assets/InputRangeSlider.css +1 -1
  14. package/dist/assets/Link.css +1 -1
  15. package/dist/assets/ListFiles.css +1 -1
  16. package/dist/assets/ListPhotos.css +1 -1
  17. package/dist/assets/MessageShortReply.css +1 -1
  18. package/dist/assets/MiniButton.css +1 -0
  19. package/dist/assets/MultiSelectSearch.css +1 -1
  20. package/dist/assets/NotificationBadge.css +1 -1
  21. package/dist/assets/OtpInput.css +1 -1
  22. package/dist/assets/Pagination.css +1 -1
  23. package/dist/assets/RoundButton.css +1 -0
  24. package/dist/assets/ScrollWrapper.css +1 -0
  25. package/dist/assets/SelectSearch.css +1 -1
  26. package/dist/assets/hooks.css +1 -1
  27. package/dist/assets/index.css +1 -1
  28. package/dist/assets/styles.css +1 -1
  29. package/dist/components/Accordion/Accordion.d.ts +10 -3
  30. package/dist/components/Accordion/Accordion.js +286 -212
  31. package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
  32. package/dist/components/Accordion/constants.d.ts +0 -4
  33. package/dist/components/Accordion/constants.js +4 -5
  34. package/dist/components/AnchorLink/Link.js +21 -20
  35. package/dist/components/Avatar/Avatar.js +26 -26
  36. package/dist/components/Button/Button.js +110 -87
  37. package/dist/components/Button/constants.d.ts +8 -2
  38. package/dist/components/Button/constants.js +6 -5
  39. package/dist/components/CarBodyButton/CarBodyButton.d.ts +26 -0
  40. package/dist/components/CarBodyButton/CarBodyButton.js +40 -0
  41. package/dist/components/CarBodyButton/index.d.ts +1 -0
  42. package/dist/components/CarBodyButton/index.js +4 -0
  43. package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +2 -0
  44. package/dist/components/CheckboxMimir/CheckboxMimir.js +37 -35
  45. package/dist/components/Chip/Chip.js +17 -17
  46. package/dist/components/DatePicker/DatePicker.d.ts +8 -0
  47. package/dist/components/DatePicker/DatePicker.js +182 -169
  48. package/dist/components/DatePicker/DatePickerModal.js +134 -98
  49. package/dist/components/DatePicker/MonthPickerModal.js +115 -95
  50. package/dist/components/DatePicker/YearPickerModal.js +109 -89
  51. package/dist/components/DatePicker/constants.d.ts +1 -0
  52. package/dist/components/DatePicker/constants.js +1 -1
  53. package/dist/components/DatePicker/hooks.d.ts +2 -1
  54. package/dist/components/DatePicker/hooks.js +12 -12
  55. package/dist/components/Drawer/Drawer.js +172 -138
  56. package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +11 -0
  57. package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +27 -0
  58. package/dist/components/Dropdown/Dropdown.js +1 -1
  59. package/dist/components/Dropdown/hooks.js +1 -1
  60. package/dist/components/GosZnak/GosZnak.js +47 -38
  61. package/dist/components/GosZnak/utils.d.ts +6 -0
  62. package/dist/components/GosZnak/utils.js +15 -0
  63. package/dist/components/Input/Input.d.ts +4 -0
  64. package/dist/components/Input/Input.js +2 -2
  65. package/dist/components/Input/index.js +1 -1
  66. package/dist/components/InputPassword/InputPassword.js +38 -42
  67. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  68. package/dist/components/InputRangeSlider/InputRangeSlider.js +159 -139
  69. package/dist/components/InputRangeSlider/constants.d.ts +5 -0
  70. package/dist/components/InputRangeSlider/constants.js +11 -6
  71. package/dist/components/ListFiles/ListFiles.js +41 -39
  72. package/dist/components/ListPhotos/ListPhotos.js +17 -18
  73. package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
  74. package/dist/components/{InputClearButton/ClearButton.d.ts → MiniButton/MiniButton.d.ts} +17 -8
  75. package/dist/components/MiniButton/MiniButton.js +44 -0
  76. package/dist/components/MiniButton/constants.d.ts +9 -0
  77. package/dist/components/MiniButton/constants.js +5 -0
  78. package/dist/components/MiniButton/index.d.ts +4 -0
  79. package/dist/components/MiniButton/index.js +6 -0
  80. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +153 -152
  81. package/dist/components/MultiSelectSearch/constants.d.ts +1 -0
  82. package/dist/components/MultiSelectSearch/constants.js +7 -7
  83. package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
  84. package/dist/components/MultiSelectSearch/utils.js +18 -16
  85. package/dist/components/NotificationBadge/NotificationBadge.js +49 -33
  86. package/dist/components/NotificationBadge/constants.d.ts +9 -2
  87. package/dist/components/NotificationBadge/constants.js +3 -2
  88. package/dist/components/NotificationBadge/types.d.ts +11 -1
  89. package/dist/components/NotificationBadge/utils.d.ts +8 -0
  90. package/dist/components/NotificationBadge/utils.js +4 -0
  91. package/dist/components/OtpInput/OtpInput.js +44 -40
  92. package/dist/components/OtpInput/constants.d.ts +4 -0
  93. package/dist/components/OtpInput/constants.js +6 -4
  94. package/dist/components/OtpInput/index.d.ts +1 -0
  95. package/dist/components/OtpInput/index.js +2 -0
  96. package/dist/components/Pagination/Pagination.js +23 -23
  97. package/dist/components/RoundButton/RoundButton.d.ts +82 -0
  98. package/dist/components/RoundButton/RoundButton.js +69 -0
  99. package/dist/components/RoundButton/constants.d.ts +11 -0
  100. package/dist/components/RoundButton/constants.js +5 -0
  101. package/dist/components/RoundButton/index.d.ts +2 -0
  102. package/dist/components/RoundButton/index.js +7 -0
  103. package/dist/components/RoundButton/types.d.ts +20 -0
  104. package/dist/components/SelectSearch/SelectSearch.js +241 -241
  105. package/dist/components/SelectSearch/utils.d.ts +1 -1
  106. package/dist/components/SelectSearch/utils.js +1 -1
  107. package/dist/components/Slider/Slider.d.ts +1 -5
  108. package/dist/components/Slider/Slider.js +34 -36
  109. package/dist/components/TextArea/TextArea.js +1 -1
  110. package/dist/components/index.d.ts +3 -1
  111. package/dist/components/index.js +55 -51
  112. package/dist/hooks-Cd4Ez6_j.js +117 -0
  113. package/dist/icons/Icon.js +1 -1
  114. package/dist/icons/components/16px/DropdownArrowDown16px.js +23 -0
  115. package/dist/icons/components/24px/EyeClosed24px.js +65 -0
  116. package/dist/icons/components/Avito.js +36 -13
  117. package/dist/icons/components/Site.js +13 -36
  118. package/dist/icons/components/index.js +564 -591
  119. package/dist/{index-C2dQUuc9.js → index-DrVFMaBi.js} +1184 -1346
  120. package/dist/index.js +73 -69
  121. package/dist/styles.module-BfkM1-KJ.js +32 -0
  122. package/package.json +1 -1
  123. package/dist/Input-BU_6U1CW.js +0 -227
  124. package/dist/assets/ClearButton.css +0 -1
  125. package/dist/components/InputClearButton/ClearButton.js +0 -41
  126. package/dist/components/InputClearButton/constants.d.ts +0 -8
  127. package/dist/components/InputClearButton/constants.js +0 -5
  128. package/dist/components/InputClearButton/index.d.ts +0 -4
  129. package/dist/components/InputClearButton/index.js +0 -6
  130. package/dist/hooks-HgN6Yauq.js +0 -117
  131. package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +0 -59
  132. package/dist/icons/components/64px/AtsVendors64px.js +0 -37
  133. package/dist/icons/components/64px/ButtonOn64px.js +0 -31
  134. package/dist/icons/components/64px/BuyoutAuto64px.js +0 -45
  135. package/dist/icons/components/64px/CarAssistance64px.js +0 -44
  136. package/dist/icons/components/64px/CarDelivery64px.js +0 -37
  137. package/dist/icons/components/64px/CarSearchReturn64px.js +0 -45
  138. package/dist/icons/components/64px/CarService64px.js +0 -37
  139. package/dist/icons/components/64px/Case64px.js +0 -33
  140. package/dist/icons/components/64px/CoatOfArms64px.js +0 -149
  141. package/dist/icons/components/64px/CoffeeCup64px.js +0 -44
  142. package/dist/icons/components/64px/Cup64px.js +0 -38
  143. package/dist/icons/components/64px/ExpertAdvice64px.js +0 -40
  144. package/dist/icons/components/64px/Fines64px.js +0 -88
  145. package/dist/icons/components/64px/Fuel64px.js +0 -38
  146. package/dist/icons/components/64px/GazprombankIcon24px.js +0 -21
  147. package/dist/icons/components/64px/Kasko64px.js +0 -44
  148. package/dist/icons/components/64px/LegalSupport64px.js +0 -58
  149. package/dist/icons/components/64px/Microphone64px.js +0 -37
  150. package/dist/icons/components/64px/Money64px.js +0 -60
  151. package/dist/icons/components/64px/PaymentSchedule64px.js +0 -39
  152. package/dist/icons/components/64px/PersonalManager64px.js +0 -100
  153. package/dist/icons/components/64px/PreApproval64px.js +0 -44
  154. package/dist/icons/components/64px/Questions64px.js +0 -37
  155. package/dist/icons/components/64px/SupportGeography64px.js +0 -51
  156. package/dist/icons/components/64px/Timer64px.js +0 -45
  157. package/dist/icons/components/64px/Twogis64px.js +0 -51
  158. package/dist/icons/components/64px/Vehicles64px.js +0 -45
  159. package/dist/icons/components/64px/Workplace64px.js +0 -38
  160. package/dist/styles.module-Cuqm31CO.js +0 -28
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { Button as e } from "./components/Button/Button.js";
2
2
  import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as m, EButtonVariantDefault as i, EButtonVariantOutline as f, EButtonVariantRound as x } from "./components/Button/constants.js";
3
- import { I as l } from "./Input-BU_6U1CW.js";
4
- import { EInputSize as E, EInputStatus as u, EInputVariant as S } from "./components/Input/constants.js";
3
+ import { I as l } from "./Input-CGZoshMl.js";
4
+ import { EInputSize as E, EInputStatus as u, EInputVariant as d } from "./components/Input/constants.js";
5
5
  import { TextArea as c } from "./components/TextArea/TextArea.js";
6
6
  import { ETextAreaInputSize as g } from "./components/TextArea/constants.js";
7
- import { InputPassword as P } from "./components/InputPassword/InputPassword.js";
8
- import { InputPhoneNumber as k } from "./components/InputPhoneNumber/InputPhoneNumber.js";
9
- import { getMaskedInputPhoneValue as B, getUnmaskedInputValue as h } from "./components/InputPhoneNumber/utils.js";
10
- import { OtpInput as M } from "./components/OtpInput/OtpInput.js";
11
- import { RadioGroup as y } from "./components/RadioGroup/RadioGroup.js";
7
+ import { InputPassword as B } from "./components/InputPassword/InputPassword.js";
8
+ import { InputPhoneNumber as V } from "./components/InputPhoneNumber/InputPhoneNumber.js";
9
+ import { getMaskedInputPhoneValue as z, getUnmaskedInputValue as h } from "./components/InputPhoneNumber/utils.js";
10
+ import { OtpInput as b } from "./components/OtpInput/OtpInput.js";
11
+ import { RadioGroup as L } from "./components/RadioGroup/RadioGroup.js";
12
12
  import { DatePicker as R } from "./components/DatePicker/DatePicker.js";
13
13
  import { MergedButton as w } from "./components/MergedButton/MergedButton.js";
14
14
  import { EMergedButtonVariantRound as U } from "./components/MergedButton/constants.js";
@@ -28,11 +28,11 @@ import { SelectSearch as no } from "./components/SelectSearch/SelectSearch.js";
28
28
  import { ELoadingIndicatorPlacement as so, ESelectSearchSize as Eo } from "./components/SelectSearch/constants.js";
29
29
  import { CheckboxMimir as So } from "./components/CheckboxMimir/CheckboxMimir.js";
30
30
  import { Tag as To } from "./components/Tag/Tag.js";
31
- import { ETagSize as Io, ETagType as Po } from "./components/Tag/constants.js";
32
- import { Timer as ko } from "./components/Timer/Timer.js";
33
- import { Accordion as Bo } from "./components/Accordion/Accordion.js";
34
- import { EAccordionSize as bo } from "./components/Accordion/constants.js";
35
- import { AccordionItem as Lo } from "./components/Accordion/AccordionItem/AccordionItem.js";
31
+ import { ETagSize as Io, ETagType as Bo } from "./components/Tag/constants.js";
32
+ import { Timer as Vo } from "./components/Timer/Timer.js";
33
+ import { Accordion as zo } from "./components/Accordion/Accordion.js";
34
+ import { EAccordionSize as Mo } from "./components/Accordion/constants.js";
35
+ import { AccordionItem as yo } from "./components/Accordion/AccordionItem/AccordionItem.js";
36
36
  import { TabTrail as Co } from "./components/TabTrail/TabTrail.js";
37
37
  import { ETabTrailSize as Do } from "./components/TabTrail/constants.js";
38
38
  import { Pagination as Ao } from "./components/Pagination/Pagination.js";
@@ -51,13 +51,13 @@ import { Chip as ir } from "./components/Chip/Chip.js";
51
51
  import { EChipSize as xr, EChipVariant as nr } from "./components/Chip/constants.js";
52
52
  import { UniversalUploader as sr } from "./components/UniversalUploader/UniversalUploader.js";
53
53
  import { EUploaderType as ur } from "./components/UniversalUploader/constants.js";
54
- import { InputRangeSlider as dr } from "./components/InputRangeSlider/InputRangeSlider.js";
54
+ import { InputRangeSlider as Sr } from "./components/InputRangeSlider/InputRangeSlider.js";
55
55
  import { EInputRangeSliderBorderState as Tr, EInputRangeSliderPositions as gr } from "./components/InputRangeSlider/constants.js";
56
- import { GosZnak as Pr } from "./components/GosZnak/GosZnak.js";
57
- import { EGosZnakSize as kr, EGosZnakType as zr } from "./components/GosZnak/constants.js";
56
+ import { GosZnak as Br } from "./components/GosZnak/GosZnak.js";
57
+ import { EGosZnakSize as Vr, EGosZnakType as kr } from "./components/GosZnak/constants.js";
58
58
  import { Switcher as hr } from "./components/Switcher/Switcher.js";
59
- import { ELabelPositions as Mr } from "./components/Switcher/constants.js";
60
- import { TwinSwitcher as yr } from "./components/TwinSwitcher/TwinSwitcher.js";
59
+ import { ELabelPositions as br } from "./components/Switcher/constants.js";
60
+ import { TwinSwitcher as Lr } from "./components/TwinSwitcher/TwinSwitcher.js";
61
61
  import { SkeletonBrick as Rr } from "./components/Skeleton/SkeletonBrick/SkeletonBrick.js";
62
62
  import { SkeletonText as wr } from "./components/Skeleton/SkeletonText/SkeletonText.js";
63
63
  import { SkeletonCircle as Ur } from "./components/Skeleton/SkeletonCircle/SkeletonCircle.js";
@@ -74,36 +74,38 @@ import { EMessageShortReplyVariant as te } from "./components/MessageShortReply/
74
74
  import { Table as ae } from "./components/Table/Table.js";
75
75
  import { ESortDirection as ie, ETableDisplayMode as fe, ETableScrollButtonVariant as xe, ETableScrollIconName as ne, ETableVariant as le } from "./components/Table/constants.js";
76
76
  import { PromoSlider as Ee } from "./components/PromoSlider/PromoSlider.js";
77
- import { CardTrail as Se } from "./components/CardTrail/CardTrail.js";
78
- import { ClearButton as ce } from "./components/InputClearButton/ClearButton.js";
79
- import { useMediaQuery as ge } from "./hooks/useMediaQuery/useMediaQuery.js";
80
- import { EMediaQuery as Pe, EMinMediaQuery as Ve } from "./hooks/useMediaQuery/constants.js";
81
- import { useLockBodyScroll as ze } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
82
- import { useInterval as he } from "./hooks/useInterval/useInterval.js";
83
- import { useTimer as Me } from "./hooks/useTimer/index.js";
84
- import { useCopyToClipboard as ye } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
85
- import { useMergeRefs as Re } from "./hooks/useMergeRefs/useMergeRefs.js";
86
- import { useResizeObserver as we } from "./hooks/useResizeObserver/useResizeObserver.js";
87
- import { useCallbackRef as Ue } from "./hooks/useCallbackRef/index.js";
88
- import { useThrottledCallback as Fe } from "./hooks/useThrottledCallback/index.js";
89
- import { Icon as Ne } from "./icons/Icon.js";
90
- import { formating as Qe } from "./utils/index.js";
91
- import { default as je } from "./components/Slider/Slider.js";
92
- import { EProgressBarPosition as He } from "./components/Slider/constants.js";
93
- import { parseDate as Ke } from "./utils/formating/Date.js";
77
+ import { CardTrail as de } from "./components/CardTrail/CardTrail.js";
78
+ import { MiniButton as ce } from "./components/MiniButton/MiniButton.js";
79
+ import { CarBodyButton as ge } from "./components/CarBodyButton/CarBodyButton.js";
80
+ import { RoundButton as Be } from "./components/RoundButton/RoundButton.js";
81
+ import { useMediaQuery as Ve } from "./hooks/useMediaQuery/useMediaQuery.js";
82
+ import { EMediaQuery as ze, EMinMediaQuery as he } from "./hooks/useMediaQuery/constants.js";
83
+ import { useLockBodyScroll as be } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
84
+ import { useInterval as Le } from "./hooks/useInterval/useInterval.js";
85
+ import { useTimer as Re } from "./hooks/useTimer/index.js";
86
+ import { useCopyToClipboard as we } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
87
+ import { useMergeRefs as Ue } from "./hooks/useMergeRefs/useMergeRefs.js";
88
+ import { useResizeObserver as Fe } from "./hooks/useResizeObserver/useResizeObserver.js";
89
+ import { useCallbackRef as Ne } from "./hooks/useCallbackRef/index.js";
90
+ import { useThrottledCallback as Qe } from "./hooks/useThrottledCallback/index.js";
91
+ import { Icon as je } from "./icons/Icon.js";
92
+ import { formating as He } from "./utils/index.js";
93
+ import { default as Ke } from "./components/Slider/Slider.js";
94
+ import { EProgressBarPosition as Xe } from "./components/Slider/constants.js";
95
+ import { parseDate as _e } from "./utils/formating/Date.js";
94
96
  import './assets/index.css';export {
95
- Bo as Accordion,
96
- Lo as AccordionItem,
97
+ zo as Accordion,
98
+ yo as AccordionItem,
97
99
  Nr as Avatar,
98
100
  e as Button,
99
- Se as CardTrail,
101
+ ge as CarBodyButton,
102
+ de as CardTrail,
100
103
  So as CheckboxMimir,
101
104
  ir as Chip,
102
- ce as ClearButton,
103
105
  R as DatePicker,
104
106
  H as Drawer,
105
107
  X as Dropdown,
106
- bo as EAccordionSize,
108
+ Mo as EAccordionSize,
107
109
  Qr as EAvatarSize,
108
110
  p as EButtonForm,
109
111
  a as EButtonSize,
@@ -117,25 +119,25 @@ import './assets/index.css';export {
117
119
  _ as EDropdownAlign,
118
120
  $ as EDropdownPlacement,
119
121
  Yr as EFileItemVariant,
120
- kr as EGosZnakSize,
121
- zr as EGosZnakType,
122
+ Vr as EGosZnakSize,
123
+ kr as EGosZnakType,
122
124
  Tr as EInputRangeSliderBorderState,
123
125
  gr as EInputRangeSliderPositions,
124
126
  E as EInputSize,
125
127
  u as EInputStatus,
126
- S as EInputVariant,
127
- Mr as ELabelPositions,
128
+ d as EInputVariant,
129
+ br as ELabelPositions,
128
130
  or as ELinkSize,
129
131
  rr as ELinkVariant,
130
132
  Q as ELoaderSize,
131
133
  Hr as ELoadingIndicatorPlacement,
132
- Pe as EMediaQuery,
134
+ ze as EMediaQuery,
133
135
  U as EMergedButtonVariantRound,
134
136
  te as EMessageShortReplyVariant,
135
- Ve as EMinMediaQuery,
137
+ he as EMinMediaQuery,
136
138
  Jr as EMultiSelectSearchSize,
137
139
  ar as ENotificationBadgeSize,
138
- He as EProgressBarPosition,
140
+ Xe as EProgressBarPosition,
139
141
  so as ESSLoadingPlacement,
140
142
  Eo as ESelectSearchSize,
141
143
  Fr as ESkeletonVariant,
@@ -148,37 +150,39 @@ import './assets/index.css';export {
148
150
  ne as ETableScrollIconName,
149
151
  le as ETableVariant,
150
152
  Io as ETagSize,
151
- Po as ETagType,
153
+ Bo as ETagType,
152
154
  g as ETextAreaInputSize,
153
155
  Oo as EToastPosition,
154
156
  Qo as EToastVariant,
155
157
  Ko as EUploaderFilesVariant,
156
158
  ur as EUploaderType,
157
159
  fo as EVoteSize,
158
- Pr as GosZnak,
159
- Ne as Icon,
160
+ Br as GosZnak,
161
+ je as Icon,
160
162
  F as Image,
161
163
  l as Input,
162
- P as InputPassword,
163
- k as InputPhoneNumber,
164
- dr as InputRangeSlider,
164
+ B as InputPassword,
165
+ V as InputPhoneNumber,
166
+ Sr as InputRangeSlider,
165
167
  _o as Link,
166
168
  Wr as ListFiles,
167
169
  $r as ListPhotos,
168
170
  N as Loader,
169
171
  w as MergedButton,
170
172
  re as MessageShortReply,
173
+ ce as MiniButton,
171
174
  jr as MultiSelectSearch,
172
175
  tr as NotificationBadge,
173
- M as OtpInput,
176
+ b as OtpInput,
174
177
  Ao as Pagination,
175
178
  Ee as PromoSlider,
176
- y as RadioGroup,
179
+ L as RadioGroup,
180
+ Be as RoundButton,
177
181
  no as SelectSearch,
178
182
  Rr as SkeletonBrick,
179
183
  Ur as SkeletonCircle,
180
184
  wr as SkeletonText,
181
- je as Slider,
185
+ Ke as Slider,
182
186
  j as SliderLazy,
183
187
  ro as Steps,
184
188
  hr as Switcher,
@@ -186,26 +190,26 @@ import './assets/index.css';export {
186
190
  ae as Table,
187
191
  To as Tag,
188
192
  c as TextArea,
189
- ko as Timer,
193
+ Vo as Timer,
190
194
  vo as ToastProvider,
191
- yr as TwinSwitcher,
195
+ Lr as TwinSwitcher,
192
196
  sr as UniversalUploader,
193
197
  Xo as Uploader,
194
198
  Ho as UploaderFiles,
195
199
  jo as UploaderPhotos,
196
200
  mo as Vote,
197
- Qe as formating,
198
- B as getMaskedInputPhoneValue,
201
+ He as formating,
202
+ z as getMaskedInputPhoneValue,
199
203
  h as getUnmaskedInputValue,
200
- Ke as parseDate,
201
- Ue as useCallbackRef,
202
- ye as useCopyToClipboard,
203
- he as useInterval,
204
- ze as useLockBodyScroll,
205
- ge as useMediaQuery,
206
- Re as useMergeRefs,
207
- we as useResizeObserver,
208
- Fe as useThrottledCallback,
209
- Me as useTimer,
204
+ _e as parseDate,
205
+ Ne as useCallbackRef,
206
+ we as useCopyToClipboard,
207
+ Le as useInterval,
208
+ be as useLockBodyScroll,
209
+ Ve as useMediaQuery,
210
+ Ue as useMergeRefs,
211
+ Fe as useResizeObserver,
212
+ Qe as useThrottledCallback,
213
+ Re as useTimer,
210
214
  Go as useToast
211
215
  };
@@ -0,0 +1,32 @@
1
+ import './assets/styles.css';const n = "_wrapper_1cgin_8", t = "_inputBorderControl_1cgin_29", _ = "_editable_1cgin_45", c = "_textError_1cgin_60", o = "_input_1cgin_3", r = "_button_1cgin_84", i = "_h_1cgin_158", e = "_b_1cgin_84", a = "_d_1cgin_16", p = "_m_1cgin_180", d = "_a_1cgin_181", g = "_prev_1cgin_182", s = "_orange_1cgin_197", l = "_current_1cgin_210", u = "_current_disabled_1cgin_219", b = "_selecte_1cgin_225", m = "_monthGrid_1cgin_234", k = {
2
+ "input-field-group-datePicker": "_input-field-group-datePicker_1cgin_3",
3
+ wrapper: n,
4
+ "date-wrapper": "_date-wrapper_1cgin_16",
5
+ "input-wrapper": "_input-wrapper_1cgin_22",
6
+ "right-slot": "_right-slot_1cgin_25",
7
+ inputBorderControl: t,
8
+ editable: _,
9
+ textError: c,
10
+ input: o,
11
+ "button-wrapper": "_button-wrapper_1cgin_84",
12
+ button: r,
13
+ "calendar-block": "_calendar-block_1cgin_108",
14
+ "calendar-block--position-top": "_calendar-block--position-top_1cgin_127",
15
+ "calendar-block--position-medium": "_calendar-block--position-medium_1cgin_140",
16
+ "calendar-block--position-bottom": "_calendar-block--position-bottom_1cgin_144",
17
+ h: i,
18
+ b: e,
19
+ d: a,
20
+ m: p,
21
+ a: d,
22
+ prev: g,
23
+ orange: s,
24
+ current: l,
25
+ current_disabled: u,
26
+ selecte: b,
27
+ monthGrid: m,
28
+ "icon-button": "_icon-button_1cgin_239"
29
+ };
30
+ export {
31
+ k as c
32
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.43.10",
4
+ "version": "1.43.11",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -1,227 +0,0 @@
1
- import { jsxs as B, jsx as s, Fragment as Z } from "react/jsx-runtime";
2
- import { c as o } from "./index-DIxK0V-G.js";
3
- import { memo as $, forwardRef as ee, useState as R, useRef as te, useEffect as z } from "react";
4
- import { EInputVariant as ae } from "./components/Input/constants.js";
5
- import { useMergeRefs as se } from "./hooks/useMergeRefs/useMergeRefs.js";
6
- import { Icon as le } from "./icons/Icon.js";
7
- import { Button as re } from "./components/Button/Button.js";
8
- import './assets/Input.css';const ne = "_label_1tx13_26", oe = "_input_1tx13_2", ce = "_focused_1tx13_99", ie = "_disabled_1tx13_105", de = "_clear_1tx13_147", ue = "_s_1tx13_198", _e = "_m_1tx13_213", me = "_l_1tx13_26", pe = "_success_1tx13_269", fe = "_alarm_1tx13_289", he = "_error_1tx13_309", e = {
9
- "input-wrapper": "_input-wrapper_1tx13_2",
10
- "required-mark": "_required-mark_1tx13_16",
11
- label: ne,
12
- "has-left-slot": "_has-left-slot_1tx13_45",
13
- "has-right-slot": "_has-right-slot_1tx13_48",
14
- "active-label": "_active-label_1tx13_53",
15
- "label-text-wrapper": "_label-text-wrapper_1tx13_68",
16
- input: oe,
17
- focused: ce,
18
- "has-label": "_has-label_1tx13_102",
19
- disabled: ie,
20
- "addon-icon": "_addon-icon_1tx13_111",
21
- "left-slot": "_left-slot_1tx13_115",
22
- "right-slot": "_right-slot_1tx13_116",
23
- clear: de,
24
- s: ue,
25
- m: _e,
26
- l: me,
27
- "default-gray": "_default-gray_1tx13_242",
28
- "default-white": "_default-white_1tx13_254",
29
- success: pe,
30
- alarm: fe,
31
- error: he
32
- }, L = (t) => {
33
- var m, l;
34
- if (!t)
35
- return null;
36
- switch (t.addonType) {
37
- case "icon": {
38
- const p = (m = t.addonContent) == null ? void 0 : m.includes("16px"), g = (l = t.addonContent) == null ? void 0 : l.includes("24px");
39
- return /* @__PURE__ */ s(
40
- le,
41
- {
42
- style: {
43
- "--icon-size": o({
44
- "16px": p,
45
- "24px": g
46
- })
47
- },
48
- className: e["addon-icon"],
49
- iconName: t.addonContent
50
- }
51
- );
52
- }
53
- case "text":
54
- return t.addonContent;
55
- case "react-node":
56
- return /* @__PURE__ */ s(Z, { children: t.addonContent });
57
- default:
58
- return null;
59
- }
60
- }, xe = $(
61
- ee(
62
- (t, m) => {
63
- const {
64
- value: l,
65
- className: p,
66
- wrapperClassName: g,
67
- rightSlotClassName: j,
68
- requiredMarkClassName: D,
69
- variant: A = ae.DefaultGray,
70
- type: E = "text",
71
- autofocus: N,
72
- readonly: c,
73
- id: F,
74
- onFocus: w,
75
- onBlur: C,
76
- label: u,
77
- withClearButton: M,
78
- disabled: a,
79
- onChange: d,
80
- rightAddon: O,
81
- status: V,
82
- leftAddon: S,
83
- size: y = "m",
84
- numbersOnly: T,
85
- required: v,
86
- maxLength: I,
87
- autocomplete: G = "on",
88
- ...P
89
- } = t, [_, k] = R(N), [f, h] = R(!!l), i = te(null), W = se(i, m);
90
- z(() => {
91
- N && k(!0);
92
- }, [N]), z(() => {
93
- h(!!l);
94
- }, [l]);
95
- const H = (r) => {
96
- const n = r.currentTarget.value;
97
- C == null || C(r), k(!1), h(!!n);
98
- }, J = (r) => {
99
- c || (k(!0), w == null || w(r));
100
- }, K = () => {
101
- i != null && i.current && (i.current.value = "", i.current.focus(), h(!1), d == null || d({
102
- target: i.current
103
- }));
104
- }, Q = (r) => {
105
- let n = r.target.value;
106
- T && (n = n.replace(/\D/g, "")), I !== void 0 && (n = n.slice(0, I)), r.target.value = n, d == null || d(r), h(!!n);
107
- }, x = L(S), b = L(O), U = {
108
- [e.readonly]: a || c,
109
- [e.focused]: _,
110
- [e.disabled]: a || c,
111
- [e["has-label"]]: !!u,
112
- [e["has-left-slot"]]: !!x,
113
- [e["has-right-slot"]]: !!b
114
- }, q = _ || f || !!l, X = o(e.label, p, e[y], {
115
- [e["active-label"]]: q,
116
- [e.disabled]: a || c,
117
- [e["has-left-slot"]]: !!x,
118
- [e["has-right-slot"]]: !!b
119
- }), Y = o(e.input, U, p, [
120
- e[A],
121
- e[V ?? ""],
122
- e[y]
123
- ]);
124
- return /* @__PURE__ */ B(
125
- "div",
126
- {
127
- className: o(
128
- e["input-wrapper"],
129
- e[A],
130
- e[V ?? ""],
131
- e[y],
132
- {
133
- [e.disabled]: a || c,
134
- [e.focused]: _
135
- },
136
- g
137
- ),
138
- children: [
139
- u && /* @__PURE__ */ B("label", { htmlFor: F, className: X, children: [
140
- /* @__PURE__ */ s("span", { className: e["label-text-wrapper"], children: u }),
141
- v && (f || _) && /* @__PURE__ */ s(
142
- "span",
143
- {
144
- className: e["required-mark"],
145
- "data-testid": "required-mark"
146
- }
147
- )
148
- ] }),
149
- x && /* @__PURE__ */ s(
150
- "span",
151
- {
152
- className: o(e["left-slot"], {
153
- [e.focused]: q,
154
- [e["has-label"]]: !!u,
155
- [e.disabled]: a
156
- }),
157
- children: x
158
- }
159
- ),
160
- /* @__PURE__ */ s(
161
- "input",
162
- {
163
- ref: W,
164
- type: E,
165
- id: F,
166
- className: Y,
167
- onFocus: J,
168
- onBlur: H,
169
- readOnly: c,
170
- value: l,
171
- onChange: Q,
172
- maxLength: I,
173
- disabled: a,
174
- required: v,
175
- autoComplete: G,
176
- ...P
177
- }
178
- ),
179
- b && /* @__PURE__ */ s(
180
- "span",
181
- {
182
- className: o(e["right-slot"], j, {
183
- [e.focused]: q,
184
- [e["has-label"]]: !!u,
185
- [e.disabled]: a
186
- }),
187
- children: b
188
- }
189
- ),
190
- v && !f && !_ && /* @__PURE__ */ s(
191
- "span",
192
- {
193
- className: o(
194
- e["required-mark"],
195
- D
196
- ),
197
- "data-testid": "required-mark"
198
- }
199
- ),
200
- M && f && /* @__PURE__ */ s(
201
- re,
202
- {
203
- tabIndex: -1,
204
- className: o(e.clear, {
205
- [e.disabled]: a
206
- }),
207
- isIconButton: !0,
208
- iconName: "Close16px",
209
- size: "m-s",
210
- clear: !0,
211
- disabled: a || c,
212
- variant: "secondary-gray",
213
- onClick: K,
214
- "data-testid": "clear-button"
215
- }
216
- )
217
- ]
218
- }
219
- );
220
- }
221
- )
222
- );
223
- xe.displayName = "Input";
224
- export {
225
- xe as I,
226
- e as c
227
- };
@@ -1 +0,0 @@
1
- ._clear_n3to9_2{display:flex;flex-shrink:0;align-items:center;justify-content:center;color:var(--asphalt-normal);border-radius:var(--mimir-control-radius-xs)}._clear_n3to9_2 svg{color:currentcolor;fill:currentcolor}._clear_n3to9_2 svg path{color:currentcolor;fill:currentcolor}._clear_n3to9_2._gray_n3to9_18{background:var(--gray-normal)}._clear_n3to9_2:hover{color:var(--counter-text);box-shadow:none}._clear_n3to9_2:active{color:var(--asphalt-active);box-shadow:none}._clear_n3to9_2:disabled{color:var(--disabled)}._clear_n3to9_2._l_n3to9_32{width:var(--button-height-xs);height:var(--button-height-xs)}._clear_n3to9_2._m-s_n3to9_36{width:var(--button-height-ms);height:var(--button-height-ms)}
@@ -1,41 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { c as _ } from "../../index-DIxK0V-G.js";
3
- import { forwardRef as p } from "react";
4
- import { EClearButtonSize as a, EClearButtonVariant as f } from "./constants.js";
5
- import { Icon as u } from "../../icons/Icon.js";
6
- import '../../assets/ClearButton.css';const C = "_clear_n3to9_2", y = "_gray_n3to9_18", N = "_l_n3to9_32", o = {
7
- clear: C,
8
- gray: y,
9
- l: N,
10
- "m-s": "_m-s_n3to9_36"
11
- }, d = p(
12
- (s, e) => {
13
- const {
14
- disabled: l = !1,
15
- size: t = a.MS,
16
- variant: n = f.Gray,
17
- className: c,
18
- ...m
19
- } = s, i = _(
20
- o.clear,
21
- t === a.L ? o.l : o["m-s"],
22
- o[n],
23
- c
24
- );
25
- return /* @__PURE__ */ r(
26
- "button",
27
- {
28
- type: "button",
29
- ref: e,
30
- ...m,
31
- disabled: l,
32
- className: i,
33
- children: /* @__PURE__ */ r(u, { iconName: t === "l" ? "Close16px" : "Close12px" })
34
- }
35
- );
36
- }
37
- );
38
- d.displayName = "ClearButton";
39
- export {
40
- d as ClearButton
41
- };
@@ -1,8 +0,0 @@
1
- export declare enum EClearButtonVariant {
2
- Gray = "gray",
3
- White = "white"
4
- }
5
- export declare enum EClearButtonSize {
6
- L = "l",
7
- MS = "m-s"
8
- }
@@ -1,5 +0,0 @@
1
- var e = /* @__PURE__ */ ((r) => (r.Gray = "gray", r.White = "white", r))(e || {}), h = /* @__PURE__ */ ((r) => (r.L = "l", r.MS = "m-s", r))(h || {});
2
- export {
3
- h as EClearButtonSize,
4
- e as EClearButtonVariant
5
- };
@@ -1,4 +0,0 @@
1
- export { ClearButton } from './ClearButton.tsx';
2
- export type { TClearButton } from './ClearButton.tsx';
3
- export { EClearButtonVariant } from './constants.ts';
4
- export type { EClearButtonSize } from './constants.ts';
@@ -1,6 +0,0 @@
1
- import { ClearButton as o } from "./ClearButton.js";
2
- import { EClearButtonVariant as e } from "./constants.js";
3
- export {
4
- o as ClearButton,
5
- e as EClearButtonVariant
6
- };