mimir-ui-kit 1.43.9 → 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.
- package/dist/Input-CGZoshMl.js +224 -0
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/CarBodyButton.css +1 -0
- package/dist/assets/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/GosZnak.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputPassword.css +1 -1
- package/dist/assets/InputRangeSlider.css +1 -1
- package/dist/assets/Link.css +1 -1
- package/dist/assets/ListFiles.css +1 -1
- package/dist/assets/ListPhotos.css +1 -1
- package/dist/assets/MessageShortReply.css +1 -1
- package/dist/assets/MiniButton.css +1 -0
- package/dist/assets/MultiSelectSearch.css +1 -1
- package/dist/assets/NotificationBadge.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/RoundButton.css +1 -0
- package/dist/assets/ScrollWrapper.css +1 -0
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/hooks.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +10 -3
- package/dist/components/Accordion/Accordion.js +286 -212
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/Accordion/constants.d.ts +0 -4
- package/dist/components/Accordion/constants.js +4 -5
- package/dist/components/AnchorLink/Link.js +21 -20
- package/dist/components/Avatar/Avatar.js +26 -26
- package/dist/components/Button/Button.js +110 -87
- package/dist/components/Button/constants.d.ts +8 -2
- package/dist/components/Button/constants.js +6 -5
- package/dist/components/CarBodyButton/CarBodyButton.d.ts +26 -0
- package/dist/components/CarBodyButton/CarBodyButton.js +40 -0
- package/dist/components/CarBodyButton/index.d.ts +1 -0
- package/dist/components/CarBodyButton/index.js +4 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +2 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.js +37 -35
- package/dist/components/Chip/Chip.js +17 -17
- package/dist/components/DatePicker/DatePicker.d.ts +8 -0
- package/dist/components/DatePicker/DatePicker.js +182 -169
- package/dist/components/DatePicker/DatePickerModal.js +134 -98
- package/dist/components/DatePicker/MonthPickerModal.js +115 -95
- package/dist/components/DatePicker/YearPickerModal.js +109 -89
- package/dist/components/DatePicker/constants.d.ts +1 -0
- package/dist/components/DatePicker/constants.js +1 -1
- package/dist/components/DatePicker/hooks.d.ts +2 -1
- package/dist/components/DatePicker/hooks.js +12 -12
- package/dist/components/Drawer/Drawer.js +172 -138
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +11 -0
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +27 -0
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/hooks.js +1 -1
- package/dist/components/GosZnak/GosZnak.js +47 -38
- package/dist/components/GosZnak/utils.d.ts +6 -0
- package/dist/components/GosZnak/utils.js +15 -0
- package/dist/components/Input/Input.d.ts +4 -0
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +38 -42
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/InputRangeSlider/InputRangeSlider.js +159 -139
- package/dist/components/InputRangeSlider/constants.d.ts +5 -0
- package/dist/components/InputRangeSlider/constants.js +11 -6
- package/dist/components/ListFiles/ListFiles.js +41 -39
- package/dist/components/ListPhotos/ListPhotos.js +17 -18
- package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
- package/dist/components/{InputClearButton/ClearButton.d.ts → MiniButton/MiniButton.d.ts} +17 -8
- package/dist/components/MiniButton/MiniButton.js +44 -0
- package/dist/components/MiniButton/constants.d.ts +9 -0
- package/dist/components/MiniButton/constants.js +5 -0
- package/dist/components/MiniButton/index.d.ts +4 -0
- package/dist/components/MiniButton/index.js +6 -0
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +153 -152
- package/dist/components/MultiSelectSearch/constants.d.ts +1 -0
- package/dist/components/MultiSelectSearch/constants.js +7 -7
- package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
- package/dist/components/MultiSelectSearch/utils.js +18 -16
- package/dist/components/NotificationBadge/NotificationBadge.js +49 -33
- package/dist/components/NotificationBadge/constants.d.ts +9 -2
- package/dist/components/NotificationBadge/constants.js +3 -2
- package/dist/components/NotificationBadge/types.d.ts +11 -1
- package/dist/components/NotificationBadge/utils.d.ts +8 -0
- package/dist/components/NotificationBadge/utils.js +4 -0
- package/dist/components/OtpInput/OtpInput.js +44 -40
- package/dist/components/OtpInput/constants.d.ts +4 -0
- package/dist/components/OtpInput/constants.js +6 -4
- package/dist/components/OtpInput/index.d.ts +1 -0
- package/dist/components/OtpInput/index.js +2 -0
- package/dist/components/Pagination/Pagination.js +23 -23
- package/dist/components/RoundButton/RoundButton.d.ts +82 -0
- package/dist/components/RoundButton/RoundButton.js +69 -0
- package/dist/components/RoundButton/constants.d.ts +11 -0
- package/dist/components/RoundButton/constants.js +5 -0
- package/dist/components/RoundButton/index.d.ts +2 -0
- package/dist/components/RoundButton/index.js +7 -0
- package/dist/components/RoundButton/types.d.ts +20 -0
- package/dist/components/SelectSearch/SelectSearch.d.ts +2 -0
- package/dist/components/SelectSearch/SelectSearch.js +273 -236
- package/dist/components/SelectSearch/types.d.ts +9 -1
- package/dist/components/SelectSearch/utils.d.ts +1 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/Slider/Slider.d.ts +1 -5
- package/dist/components/Slider/Slider.js +34 -36
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +55 -51
- package/dist/hooks-Cd4Ez6_j.js +117 -0
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/16px/DropdownArrowDown16px.js +23 -0
- package/dist/icons/components/24px/EyeClosed24px.js +65 -0
- package/dist/icons/components/Avito.js +36 -13
- package/dist/icons/components/Site.js +13 -36
- package/dist/icons/components/index.js +564 -591
- package/dist/{index-C2dQUuc9.js → index-DrVFMaBi.js} +1184 -1346
- package/dist/index.js +73 -69
- package/dist/styles.module-BfkM1-KJ.js +32 -0
- package/package.json +1 -1
- package/dist/Input-BU_6U1CW.js +0 -227
- package/dist/assets/ClearButton.css +0 -1
- package/dist/components/InputClearButton/ClearButton.js +0 -41
- package/dist/components/InputClearButton/constants.d.ts +0 -8
- package/dist/components/InputClearButton/constants.js +0 -5
- package/dist/components/InputClearButton/index.d.ts +0 -4
- package/dist/components/InputClearButton/index.js +0 -6
- package/dist/hooks-HgN6Yauq.js +0 -117
- package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +0 -59
- package/dist/icons/components/64px/AtsVendors64px.js +0 -37
- package/dist/icons/components/64px/ButtonOn64px.js +0 -31
- package/dist/icons/components/64px/BuyoutAuto64px.js +0 -45
- package/dist/icons/components/64px/CarAssistance64px.js +0 -44
- package/dist/icons/components/64px/CarDelivery64px.js +0 -37
- package/dist/icons/components/64px/CarSearchReturn64px.js +0 -45
- package/dist/icons/components/64px/CarService64px.js +0 -37
- package/dist/icons/components/64px/Case64px.js +0 -33
- package/dist/icons/components/64px/CoatOfArms64px.js +0 -149
- package/dist/icons/components/64px/CoffeeCup64px.js +0 -44
- package/dist/icons/components/64px/Cup64px.js +0 -38
- package/dist/icons/components/64px/ExpertAdvice64px.js +0 -40
- package/dist/icons/components/64px/Fines64px.js +0 -88
- package/dist/icons/components/64px/Fuel64px.js +0 -38
- package/dist/icons/components/64px/GazprombankIcon24px.js +0 -21
- package/dist/icons/components/64px/Kasko64px.js +0 -44
- package/dist/icons/components/64px/LegalSupport64px.js +0 -58
- package/dist/icons/components/64px/Microphone64px.js +0 -37
- package/dist/icons/components/64px/Money64px.js +0 -60
- package/dist/icons/components/64px/PaymentSchedule64px.js +0 -39
- package/dist/icons/components/64px/PersonalManager64px.js +0 -100
- package/dist/icons/components/64px/PreApproval64px.js +0 -44
- package/dist/icons/components/64px/Questions64px.js +0 -37
- package/dist/icons/components/64px/SupportGeography64px.js +0 -51
- package/dist/icons/components/64px/Timer64px.js +0 -45
- package/dist/icons/components/64px/Twogis64px.js +0 -51
- package/dist/icons/components/64px/Vehicles64px.js +0 -45
- package/dist/icons/components/64px/Workplace64px.js +0 -38
- 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-
|
4
|
-
import { EInputSize as E, EInputStatus as u, EInputVariant as
|
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
|
8
|
-
import { InputPhoneNumber as
|
9
|
-
import { getMaskedInputPhoneValue as
|
10
|
-
import { OtpInput as
|
11
|
-
import { RadioGroup as
|
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
|
32
|
-
import { Timer as
|
33
|
-
import { Accordion as
|
34
|
-
import { EAccordionSize as
|
35
|
-
import { AccordionItem as
|
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
|
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
|
57
|
-
import { EGosZnakSize as
|
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
|
60
|
-
import { TwinSwitcher as
|
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
|
78
|
-
import {
|
79
|
-
import {
|
80
|
-
import {
|
81
|
-
import {
|
82
|
-
import {
|
83
|
-
import {
|
84
|
-
import {
|
85
|
-
import {
|
86
|
-
import {
|
87
|
-
import {
|
88
|
-
import {
|
89
|
-
import {
|
90
|
-
import {
|
91
|
-
import {
|
92
|
-
import {
|
93
|
-
import {
|
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
|
-
|
96
|
-
|
97
|
+
zo as Accordion,
|
98
|
+
yo as AccordionItem,
|
97
99
|
Nr as Avatar,
|
98
100
|
e as Button,
|
99
|
-
|
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
|
-
|
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
|
-
|
121
|
-
|
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
|
-
|
127
|
-
|
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
|
-
|
134
|
+
ze as EMediaQuery,
|
133
135
|
U as EMergedButtonVariantRound,
|
134
136
|
te as EMessageShortReplyVariant,
|
135
|
-
|
137
|
+
he as EMinMediaQuery,
|
136
138
|
Jr as EMultiSelectSearchSize,
|
137
139
|
ar as ENotificationBadgeSize,
|
138
|
-
|
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
|
-
|
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
|
-
|
159
|
-
|
160
|
+
Br as GosZnak,
|
161
|
+
je as Icon,
|
160
162
|
F as Image,
|
161
163
|
l as Input,
|
162
|
-
|
163
|
-
|
164
|
-
|
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
|
-
|
176
|
+
b as OtpInput,
|
174
177
|
Ao as Pagination,
|
175
178
|
Ee as PromoSlider,
|
176
|
-
|
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
|
-
|
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
|
-
|
193
|
+
Vo as Timer,
|
190
194
|
vo as ToastProvider,
|
191
|
-
|
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
|
-
|
198
|
-
|
201
|
+
He as formating,
|
202
|
+
z as getMaskedInputPhoneValue,
|
199
203
|
h as getUnmaskedInputValue,
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
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
package/dist/Input-BU_6U1CW.js
DELETED
@@ -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
|
-
};
|