@trionesdev/antd-mobile-react 0.0.2-beta.0 → 0.0.2-beta.10

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 (206) hide show
  1. package/LICENSE +21 -21
  2. package/dist/ActionSheet/ActionSheet.d.ts +25 -0
  3. package/dist/ActionSheet/ActionSheet.js +77 -0
  4. package/dist/ActionSheet/index.d.ts +1 -1
  5. package/dist/ActionSheet/index.js +1 -1
  6. package/dist/ActionSheet/style.scss +52 -0
  7. package/dist/Avatar/demo/base.js +2 -2
  8. package/dist/Avatar/demo/style.scss +6 -6
  9. package/dist/Badge/demo/base.js +2 -2
  10. package/dist/Badge/demo/base.scss +6 -6
  11. package/dist/Button/demo/base.js +2 -2
  12. package/dist/Button/style.scss +234 -231
  13. package/dist/Calendar/calendar-grid.js +2 -2
  14. package/dist/Calendar/calendar-range.js +2 -2
  15. package/dist/Calendar/calendar.js +2 -1
  16. package/dist/Calendar/style.scss +85 -85
  17. package/dist/Calendar/touchable-calendar-grid.js +9 -9
  18. package/dist/CalendarDatetimePicker/CalendarDatetimePicker.d.ts +5 -6
  19. package/dist/CalendarDatetimePicker/CalendarDatetimePicker.js +37 -132
  20. package/dist/CalendarDatetimePicker/demo/base.js +5 -21
  21. package/dist/CalendarDatetimePicker/index.d.ts +2 -2
  22. package/dist/CalendarDatetimePicker/style.scss +10 -54
  23. package/dist/CalendarDatetimePicker/types.d.ts +0 -4
  24. package/dist/CalendarDatetimePicker/types.js +1 -6
  25. package/dist/CalendarDatetimePopup/CalendarDatetimePopup.d.ts +10 -0
  26. package/dist/CalendarDatetimePopup/CalendarDatetimePopup.js +136 -0
  27. package/dist/CalendarDatetimePopup/demo/base.js +41 -0
  28. package/dist/CalendarDatetimePopup/index.d.ts +3 -0
  29. package/dist/CalendarDatetimePopup/index.js +2 -0
  30. package/dist/CalendarDatetimePopup/style.scss +54 -0
  31. package/dist/CalendarDatetimePopup/types.d.ts +5 -0
  32. package/dist/CalendarDatetimePopup/types.js +6 -0
  33. package/dist/CalendarPopup/calendar-popup.d.ts +4 -0
  34. package/dist/{CalendarPicker/calendar-picker.js → CalendarPopup/calendar-popup.js} +2 -2
  35. package/dist/CalendarPopup/calendar-range-popup.d.ts +4 -0
  36. package/dist/{CalendarPicker/calendar-range-picker.js → CalendarPopup/calendar-range-popup.js} +8 -7
  37. package/dist/{CalendarPicker → CalendarPopup}/demo/base.js +3 -3
  38. package/dist/CalendarPopup/index.d.ts +9 -0
  39. package/dist/CalendarPopup/index.js +5 -0
  40. package/dist/CalendarPopup/style.scss +31 -0
  41. package/dist/{CalendarPicker → CalendarPopup}/types.d.ts +2 -2
  42. package/dist/Card/demo/base.js +2 -2
  43. package/dist/Card/demo/base.scss +18 -18
  44. package/dist/CascaderPicker/CascaderPicker.d.ts +25 -0
  45. package/dist/CascaderPicker/CascaderPicker.js +78 -0
  46. package/dist/CascaderPicker/demo/base.js +6 -18
  47. package/dist/CascaderPicker/index.d.ts +1 -1
  48. package/dist/CascaderPicker/index.js +1 -1
  49. package/dist/CascaderPicker/style.scss +24 -0
  50. package/dist/CascaderPopup/cascader-popup.d.ts +27 -0
  51. package/dist/CascaderPopup/cascader-popup.js +90 -0
  52. package/dist/CascaderPopup/demo/base.d.ts +3 -0
  53. package/dist/CascaderPopup/demo/base.js +82 -0
  54. package/dist/CascaderPopup/index.d.ts +3 -0
  55. package/dist/CascaderPopup/index.js +2 -0
  56. package/dist/CascaderPopup/style.scss +45 -0
  57. package/dist/Cell/demo/base.js +41 -2
  58. package/dist/Checkbox/demo/base.js +11 -6
  59. package/dist/Checkbox/demo/disabled.js +2 -1
  60. package/dist/ConfigProvider/demo/base.js +2 -2
  61. package/dist/DemoBlock/index.d.ts +6 -0
  62. package/dist/DemoBlock/index.js +9 -2
  63. package/dist/DemoBlock/index.scss +20 -20
  64. package/dist/DemoDescription/index.scss +3 -3
  65. package/dist/Divider/demo/base.js +2 -2
  66. package/dist/Ellipsis/demo/base.js +2 -2
  67. package/dist/Empty/demo/base.js +2 -2
  68. package/dist/ErrorBlock/demo/base.js +2 -2
  69. package/dist/Footer/demo/base.js +2 -2
  70. package/dist/Form/FormItem/form-item-input.d.ts +15 -0
  71. package/dist/Form/FormItem/form-item-input.js +39 -0
  72. package/dist/Form/FormItem/form-item-label.d.ts +13 -0
  73. package/dist/Form/FormItem/form-item-label.js +27 -0
  74. package/dist/Form/FormItem/form-item.d.ts +22 -0
  75. package/dist/Form/FormItem/form-item.js +73 -0
  76. package/dist/Form/FormItem/index.d.ts +5 -0
  77. package/dist/Form/FormItem/index.js +3 -0
  78. package/dist/Form/demo/input.js +1 -1
  79. package/dist/Form/index.d.ts +8 -1
  80. package/dist/Form/index.js +5 -1
  81. package/dist/Form/style.scss +67 -0
  82. package/dist/Grid/demo/base.js +2 -2
  83. package/dist/Grid/demo/base.scss +7 -7
  84. package/dist/Icon/demo/base.js +4 -4
  85. package/dist/Image/demo/base.js +2 -2
  86. package/dist/Image/demo/base.scss +4 -4
  87. package/dist/Image/style.scss +30 -30
  88. package/dist/ImagesPreview/ImagesPreview.js +2 -2
  89. package/dist/ImagesPreview/style.scss +34 -34
  90. package/dist/ImagesWall/CameraModal.js +2 -2
  91. package/dist/ImagesWall/ImagesWall.js +1 -1
  92. package/dist/ImagesWall/style.scss +70 -70
  93. package/dist/Input/base-input.d.ts +13 -0
  94. package/dist/Input/base-input.js +41 -0
  95. package/dist/Input/demo/base.js +89 -13
  96. package/dist/Input/index.d.ts +14 -2
  97. package/dist/Input/index.js +11 -1
  98. package/dist/Input/index.scss +223 -0
  99. package/dist/Input/input-affix-wrapper.d.ts +11 -0
  100. package/dist/Input/input-affix-wrapper.js +37 -0
  101. package/dist/Input/input-opt.d.ts +16 -0
  102. package/dist/Input/input-opt.js +87 -0
  103. package/dist/Input/input-password.d.ts +7 -0
  104. package/dist/Input/input-password.js +48 -0
  105. package/dist/Input/input.d.ts +18 -0
  106. package/dist/Input/input.js +63 -0
  107. package/dist/Input/textarea.d.ts +15 -0
  108. package/dist/Input/textarea.js +51 -0
  109. package/dist/Input/types.d.ts +3 -0
  110. package/dist/Input/types.js +2 -0
  111. package/dist/NavBar/demo/base.scss +5 -5
  112. package/dist/NoticeBar/demo/base.js +2 -2
  113. package/dist/Overlay/Overlay.d.ts +16 -0
  114. package/dist/Overlay/Overlay.js +117 -0
  115. package/dist/Overlay/demo/base.d.ts +3 -0
  116. package/dist/{Mask → Overlay}/demo/base.js +14 -16
  117. package/dist/Overlay/index.d.ts +4 -0
  118. package/dist/Overlay/index.js +3 -0
  119. package/dist/Overlay/style.scss +20 -0
  120. package/dist/PageIndicator/demo/base.js +2 -2
  121. package/dist/Picker/index.d.ts +1 -1
  122. package/dist/Picker/index.js +1 -1
  123. package/dist/Picker/picker.d.ts +19 -0
  124. package/dist/Picker/picker.js +97 -0
  125. package/dist/Picker/style.scss +44 -0
  126. package/dist/PickerView/index.d.ts +2 -1
  127. package/dist/PickerView/index.js +1 -1
  128. package/dist/PickerView/picker-view-column-item.d.ts +7 -0
  129. package/dist/PickerView/picker-view-column-item.js +11 -0
  130. package/dist/PickerView/picker-view-column.d.ts +10 -0
  131. package/dist/PickerView/picker-view-column.js +117 -0
  132. package/dist/PickerView/picker-view.d.ts +12 -0
  133. package/dist/PickerView/picker-view.js +60 -0
  134. package/dist/PickerView/style.scss +72 -0
  135. package/dist/PickerView/types.d.ts +4 -0
  136. package/dist/PickerView/types.js +1 -0
  137. package/dist/Popup/demo/base.js +109 -27
  138. package/dist/Popup/index.d.ts +2 -1
  139. package/dist/Popup/index.js +2 -1
  140. package/dist/Popup/popup.d.ts +31 -0
  141. package/dist/Popup/popup.js +87 -0
  142. package/dist/Popup/style.scss +129 -0
  143. package/dist/Progress/index.d.ts +1 -1
  144. package/dist/Progress/index.js +1 -1
  145. package/dist/Radio/demo/base.js +2 -2
  146. package/dist/Radio/demo/base.scss +4 -4
  147. package/dist/Result/demo/base.js +2 -2
  148. package/dist/SafeArea/demo/base.scss +18 -18
  149. package/dist/ScrollView/index.d.ts +2 -1
  150. package/dist/ScrollView/index.js +1 -1
  151. package/dist/ScrollView/scroll-view.d.ts +4 -0
  152. package/dist/ScrollView/scroll-view.js +55 -0
  153. package/dist/ScrollView/style.scss +19 -0
  154. package/dist/ScrollView/types.d.ts +26 -0
  155. package/dist/ScrollView/types.js +1 -0
  156. package/dist/SideBar/index.d.ts +1 -1
  157. package/dist/SideBar/side-bar.js +6 -6
  158. package/dist/SideBar/style.scss +85 -85
  159. package/dist/Space/demo/base.js +2 -2
  160. package/dist/Swiper/style.scss +54 -54
  161. package/dist/Switch/demo/base.js +2 -2
  162. package/dist/TabBar/demo/base.js +2 -2
  163. package/dist/Tag/demo/base.js +2 -2
  164. package/dist/Tag/demo/style.scss +8 -8
  165. package/dist/Toast/style.scss +63 -63
  166. package/dist/Toast/toast-modal.js +4 -4
  167. package/dist/VerificationCodeInput/demo/base.js +2 -2
  168. package/dist/VerificationCodeInput/index.d.ts +2 -2
  169. package/dist/VerificationCodeInput/index.js +1 -1
  170. package/dist/VerificationCodeInput/style.scss +20 -0
  171. package/dist/VerificationCodeInput/verification-code-input.d.ts +24 -0
  172. package/dist/VerificationCodeInput/verification-code-input.js +99 -0
  173. package/dist/WaterMark/demo/demo1.js +2 -2
  174. package/dist/WaterMark/demo/demo1.scss +6 -6
  175. package/dist/WaterMark/demo/demo2.js +2 -2
  176. package/dist/index.d.ts +9 -7
  177. package/dist/index.js +4 -3
  178. package/dist/style/variable.scss +1 -0
  179. package/dist/types.d.ts +0 -8
  180. package/dist/types.js +0 -1
  181. package/dist/utils/type.js +36 -36
  182. package/dist/utils/use-isomorphic-update-layout-effect.d.ts +1 -1
  183. package/dist/utils/with-default-props.js +4 -4
  184. package/package.json +13 -14
  185. package/readme.md +43 -43
  186. package/dist/CalendarPicker/calendar-picker.d.ts +0 -4
  187. package/dist/CalendarPicker/calendar-range-picker.d.ts +0 -4
  188. package/dist/CalendarPicker/index.d.ts +0 -9
  189. package/dist/CalendarPicker/index.js +0 -5
  190. package/dist/CalendarPicker/style.scss +0 -31
  191. package/dist/Mask/index.d.ts +0 -3
  192. package/dist/Mask/index.js +0 -2
  193. package/dist/Progress/Progress.d.ts +0 -37
  194. package/dist/Progress/Progress.js +0 -52
  195. package/dist/Progress/ProgressCircle.d.ts +0 -17
  196. package/dist/Progress/ProgressCircle.js +0 -148
  197. package/dist/Progress/ProgressLine.d.ts +0 -15
  198. package/dist/Progress/ProgressLine.js +0 -87
  199. package/dist/Progress/style.scss +0 -33
  200. package/dist/Progress/types.d.ts +0 -4
  201. package/dist/Progress/types.js +0 -2
  202. /package/dist/{CalendarDatetimePicker → CalendarDatetimePopup}/DateTimeSwitch.d.ts +0 -0
  203. /package/dist/{CalendarDatetimePicker → CalendarDatetimePopup}/DateTimeSwitch.js +0 -0
  204. /package/dist/{CalendarPicker → CalendarDatetimePopup}/demo/base.d.ts +0 -0
  205. /package/dist/{Mask → CalendarPopup}/demo/base.d.ts +0 -0
  206. /package/dist/{CalendarPicker → CalendarPopup}/types.js +0 -0
@@ -1,231 +1,234 @@
1
- @import "@trionesdev/antd-mobile-base-react/dist/style/variable";
2
-
3
- $trionesButtonPendingInlineSm: 7Px;
4
- $trionesButtonHeightSm: 24Px;
5
-
6
- $trionesButtonPendingInline: 15Px;
7
- $trionesButtonHeight: 32Px;
8
-
9
- $trionesButtonContentFontSizeLg: $trionesFontSizeLg;
10
- $trionesButtonPendingInlineLg: 15Px;
11
- $trionesButtonHeightLg: 40Px;
12
-
13
- button::after {
14
- content: none;
15
- width: 100%;
16
- }
17
-
18
- $buttonCls: 'triones-antm-button';
19
- .#{$buttonCls} {
20
- width: auto;
21
- position: relative;
22
- display: inline-flex;
23
- flex-direction: column;
24
- justify-self: center;
25
- align-items: center;
26
- justify-content: center;
27
- height: auto;
28
- line-height: normal;
29
- border-radius: 4Px;
30
- border: 1Px none;
31
- box-sizing: border-box;
32
- font-size: 14Px;
33
- z-index: 2;
34
- margin-top: 0;
35
-
36
- &:active {
37
- filter: brightness(92%);
38
- }
39
- &::after{
40
- content: none;
41
- }
42
-
43
- &[disabled] {
44
- opacity: 0.4;
45
-
46
- &:active {
47
- filter: none;
48
- }
49
- }
50
- &:not([disabled]):active{}
51
-
52
- &-color {
53
- &-default {
54
- background-color: #ffffff;
55
-
56
- &.#{$buttonCls} {
57
- &-variant {
58
- &-solid {
59
- color: #ffffff;
60
- background-color: rgba(0, 0, 0, 0.75);
61
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.75);
62
- }
63
-
64
- &-outlined {
65
- color: rgba(0, 0, 0, 0.75);
66
- border: 1px solid rgba(0, 0, 0, 0.75);
67
- background-color: white;
68
- }
69
-
70
- &-dashed {
71
- color: rgba(0, 0, 0, 0.75);
72
- border: 1px dashed rgba(0, 0, 0, 0.75);
73
- background-color: #ffffff;
74
- }
75
-
76
- &-filled {
77
- color: rgba(0, 0, 0, 0.75);
78
- background-color: rgba(0, 0, 0, 0.06);
79
- }
80
-
81
- &-text {
82
- color: rgba(0, 0, 0, 0.75);
83
- background-color: #ffffff;
84
- }
85
-
86
- &-link {
87
- color: rgba(0, 0, 0, 0.75);
88
- background-color: #ffffff;
89
-
90
- &:active {
91
- filter: none;
92
- }
93
- }
94
- }
95
- }
96
- }
97
-
98
- &-primary {
99
- &.#{$buttonCls} {
100
- &-variant {
101
- &-solid {
102
- color: #ffffff;
103
- background-color: $trionesColorPrimaryText;
104
- box-shadow: inset 0 0 0 1px $trionesColorPrimaryText;
105
- }
106
-
107
- &-outlined {
108
- color: #1677ff;
109
- background-color: white;
110
- border: 1px solid $trionesColorPrimaryText;
111
- }
112
-
113
- &-dashed {
114
- color: $trionesColorPrimaryText;
115
- border: 1px dashed $trionesColorPrimaryText;
116
- background-color: #ffffff;
117
- }
118
-
119
- &-filled {
120
- color: $trionesColorPrimaryText;
121
- background-color: $trionesColorPrimaryBg;
122
- }
123
-
124
- &-text {
125
- color: $trionesColorPrimaryText;
126
- background-color: #ffffff;
127
- }
128
-
129
- &-link {
130
- color: $trionesColorPrimaryText;
131
- background-color: #ffffff;
132
-
133
- &:active {
134
- filter: none;
135
- }
136
- }
137
- }
138
- }
139
- }
140
-
141
- &-danger {
142
- &.#{$buttonCls} {
143
- &-variant {
144
- &-solid {
145
- color: #ffffff;
146
- background-color: $trionesColorErrorText;
147
- box-shadow: inset 0 0 0 1px $trionesColorErrorText;
148
- }
149
-
150
- &-outlined {
151
- color: $trionesColorErrorText;
152
- background-color: #ffffff;
153
- border: 1px solid $trionesColorErrorText;
154
- }
155
-
156
- &-dashed {
157
- color: $trionesColorErrorText;
158
- border: 1px dashed $trionesColorErrorText;
159
- background-color: #ffffff;
160
- }
161
-
162
- &-filled {
163
- color: $trionesColorErrorText;
164
- background-color: #ffdfdc;
165
- }
166
-
167
- &-text {
168
- color: $trionesColorErrorText;
169
- background-color: #ffffff;
170
- }
171
-
172
- &-link {
173
- color: $trionesColorErrorText;
174
- background-color: #ffffff;
175
-
176
- &:active {
177
- filter: none;
178
- }
179
- }
180
- }
181
- }
182
- }
183
- }
184
-
185
- &-variant {
186
- &-solid {
187
- }
188
-
189
- &-outlined {
190
- background-color: #ffffff;
191
- }
192
-
193
- &-dashed {
194
- border: 1px dashed #d9d9d9;
195
- background-color: #ffffff;
196
- }
197
-
198
- &-text {
199
- background-color: #ffffff;
200
- }
201
-
202
- &-link {
203
- background-color: #ffffff;
204
- }
205
- }
206
-
207
- &-block {
208
- display: flex;
209
- width: 100%;
210
- }
211
-
212
- &-small {
213
- font-size: $trionesFontSizeSm;
214
- padding-inline: $trionesButtonPendingInlineSm;
215
- height: $trionesButtonHeightSm;
216
- border-radius: $trionesBorderRadiusSm;
217
- }
218
-
219
- &-middle {
220
- padding-inline: $trionesButtonPendingInline;
221
- height: $trionesButtonHeight;
222
- border-radius: $trionesBorderRadius;
223
- }
224
-
225
- &-large {
226
- font-size: $trionesButtonContentFontSizeLg;
227
- padding-inline: $trionesButtonPendingInlineLg;
228
- height: $trionesButtonHeightLg;
229
- border-radius: $trionesBorderRadiusLg;
230
- }
231
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $trionesButtonPendingInlineSm: 7Px;
4
+ $trionesButtonHeightSm: 24Px;
5
+
6
+ $trionesButtonPendingInline: 15Px;
7
+ $trionesButtonHeight: 32Px;
8
+
9
+ $trionesButtonContentFontSizeLg: variable.$trionesFontSizeLg;
10
+ $trionesButtonPendingInlineLg: 15Px;
11
+ $trionesButtonHeightLg: 40Px;
12
+
13
+ // 定义常用颜色变量以提高可维护性
14
+ $buttonBackgroundColor: #ffffff;
15
+ $buttonColorPrimary: variable.$trionesColorPrimary!default;
16
+ $buttonColorError: variable.$trionesColorError!default;
17
+ $buttonDarkColor: rgba(0, 0, 0, 0.75);
18
+ $buttonLightColor: rgba(0, 0, 0, 0.06);
19
+
20
+ button::after {
21
+ content: none;
22
+ width: 100%;
23
+ }
24
+
25
+ $buttonCls: 'triones-antm-button';
26
+ .#{$buttonCls} {
27
+ width: auto;
28
+ position: relative;
29
+ display: inline-flex;
30
+ flex-direction: column;
31
+ justify-self: center;
32
+ align-items: center;
33
+ justify-content: center;
34
+ height: auto;
35
+ line-height: normal;
36
+ border-radius: 4Px;
37
+ border: 1Px none;
38
+ box-sizing: border-box;
39
+ font-size: 14Px;
40
+ z-index: 2;
41
+ margin-top: 0;
42
+
43
+ &:active {
44
+ filter: brightness(92%);
45
+ }
46
+ &::after{
47
+ content: none;
48
+ }
49
+
50
+ &[disabled] {
51
+ opacity: 0.4;
52
+
53
+ &:active {
54
+ filter: none;
55
+ }
56
+ }
57
+
58
+ &-color {
59
+ &-default {
60
+ background-color: $buttonBackgroundColor;
61
+
62
+ &.#{$buttonCls} {
63
+ &-variant {
64
+ &-solid {
65
+ color: $buttonBackgroundColor;
66
+ background-color: $buttonDarkColor;
67
+ box-shadow: inset 0 0 0 1px $buttonDarkColor;
68
+ }
69
+
70
+ &-outlined {
71
+ color: $buttonDarkColor;
72
+ border: 1px solid $buttonDarkColor;
73
+ background-color: $buttonBackgroundColor;
74
+ }
75
+
76
+ &-dashed {
77
+ color: $buttonDarkColor;
78
+ border: 1px dashed $buttonDarkColor;
79
+ background-color: $buttonBackgroundColor;
80
+ }
81
+
82
+ &-filled {
83
+ color: $buttonDarkColor;
84
+ background-color: $buttonLightColor;
85
+ }
86
+
87
+ &-text {
88
+ color: $buttonDarkColor;
89
+ background-color: $buttonBackgroundColor;
90
+ }
91
+
92
+ &-link {
93
+ color: $buttonDarkColor;
94
+ background-color: $buttonBackgroundColor;
95
+
96
+ &:active {
97
+ filter: none;
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+
104
+ &-primary {
105
+ &.#{$buttonCls} {
106
+ &-variant {
107
+ &-solid {
108
+ color: $buttonBackgroundColor;
109
+ background-color: $buttonColorPrimary;
110
+ box-shadow: inset 0 0 0 1px $buttonColorPrimary;
111
+ }
112
+
113
+ &-outlined {
114
+ color: $buttonColorPrimary;
115
+ background-color: $buttonBackgroundColor;
116
+ border: 1px solid $buttonColorPrimary;
117
+ }
118
+
119
+ &-dashed {
120
+ color: $buttonColorPrimary;
121
+ border: 1px dashed $buttonColorPrimary;
122
+ background-color: $buttonBackgroundColor;
123
+ }
124
+
125
+ &-filled {
126
+ color: $buttonColorPrimary;
127
+ background-color: variable.$trionesColorPrimaryBg;
128
+ }
129
+
130
+ &-text {
131
+ color: $buttonColorPrimary;
132
+ background-color: $buttonBackgroundColor;
133
+ }
134
+
135
+ &-link {
136
+ color: $buttonColorPrimary;
137
+ background-color: $buttonBackgroundColor;
138
+
139
+ &:active {
140
+ filter: none;
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+
147
+ &-danger {
148
+ &.#{$buttonCls} {
149
+ &-variant {
150
+ &-solid {
151
+ color: $buttonBackgroundColor;
152
+ background-color: $buttonColorError;
153
+ box-shadow: inset 0 0 0 1px $buttonColorError;
154
+ }
155
+
156
+ &-outlined {
157
+ color: $buttonColorError;
158
+ background-color: $buttonBackgroundColor;
159
+ border: 1px solid $buttonColorError;
160
+ }
161
+
162
+ &-dashed {
163
+ color: $buttonColorError;
164
+ border: 1px dashed $buttonColorError;
165
+ background-color: $buttonBackgroundColor;
166
+ }
167
+
168
+ &-filled {
169
+ color: $buttonColorError;
170
+ background-color: #ffdfdc;
171
+ }
172
+
173
+ &-text {
174
+ color: $buttonColorError;
175
+ background-color: $buttonBackgroundColor;
176
+ }
177
+
178
+ &-link {
179
+ color: $buttonColorError;
180
+ background-color: $buttonBackgroundColor;
181
+
182
+ &:active {
183
+ filter: none;
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+
191
+ &-variant {
192
+ &-outlined {
193
+ background-color: $buttonBackgroundColor;
194
+ }
195
+
196
+ &-dashed {
197
+ border: 1px dashed #d9d9d9;
198
+ background-color: $buttonBackgroundColor;
199
+ }
200
+
201
+ &-text {
202
+ background-color: $buttonBackgroundColor;
203
+ }
204
+
205
+ &-link {
206
+ background-color: $buttonBackgroundColor;
207
+ }
208
+ }
209
+
210
+ &-block {
211
+ display: flex;
212
+ width: 100%;
213
+ }
214
+
215
+ &-small {
216
+ font-size: variable.$trionesFontSizeSm;
217
+ padding-inline: $trionesButtonPendingInlineSm;
218
+ height: $trionesButtonHeightSm;
219
+ border-radius: variable.$trionesBorderRadiusSm;
220
+ }
221
+
222
+ &-middle {
223
+ padding-inline: $trionesButtonPendingInline;
224
+ height: $trionesButtonHeight;
225
+ border-radius: variable.$trionesBorderRadius;
226
+ }
227
+
228
+ &-large {
229
+ font-size: $trionesButtonContentFontSizeLg;
230
+ padding-inline: $trionesButtonPendingInlineLg;
231
+ height: $trionesButtonHeightLg;
232
+ border-radius: variable.$trionesBorderRadiusLg;
233
+ }
234
+ }
@@ -13,7 +13,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
15
  import classNames from 'classnames';
16
- import _ from 'lodash';
16
+ import { isEmpty } from 'lodash-es';
17
17
  import React, { forwardRef, memo, useEffect, useMemo, useState } from 'react';
18
18
  import "./style.scss";
19
19
  var calendarCls = 'triones-antm-calendar';
@@ -29,7 +29,7 @@ var CalendarCell = /*#__PURE__*/memo(function (_ref) {
29
29
  return date.getMonth() !== mouth.getMonth();
30
30
  }, [date, mouth]);
31
31
  var selected = useMemo(function () {
32
- if (disabled || _.isEmpty(value)) {
32
+ if (disabled || isEmpty(value)) {
33
33
  return false;
34
34
  }
35
35
  if (value !== null && value !== void 0 && value[0]) {
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import classNames from 'classnames';
8
- import _ from 'lodash';
8
+ import { isEqual } from 'lodash-es';
9
9
  import React, { memo, useEffect, useRef, useState } from 'react';
10
10
  import { CalendarGrid } from "./calendar-grid";
11
11
  import { CalendarHeader } from "./calendar-header";
@@ -26,7 +26,7 @@ export var CalendarRange = /*#__PURE__*/memo(function (_ref) {
26
26
  var valueRef = useRef();
27
27
  useEffect(function () {
28
28
  if (value !== undefined) {
29
- if (!_.isEqual(value, valueRef.current)) {
29
+ if (!isEqual(value, valueRef.current)) {
30
30
  valueRef.current = value;
31
31
  }
32
32
  }
@@ -10,6 +10,7 @@ import { CalendarHeader } from "./calendar-header";
10
10
  import "./style.scss";
11
11
  import { TouchableCalendarGrid } from "./touchable-calendar-grid";
12
12
  import { CalendarGrid } from "./calendar-grid";
13
+ import { cloneDeep } from "lodash-es";
13
14
  var calendarCls = 'triones-antm-calendar';
14
15
  export var Calendar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
15
16
  var _ref$mouth = _ref.mouth,
@@ -41,7 +42,7 @@ export var Calendar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref,
41
42
  }
42
43
  }) : /*#__PURE__*/React.createElement(CalendarGrid, {
43
44
  mouth: currentMouth,
44
- value: value ? [value] : [],
45
+ value: value ? [cloneDeep(value)] : [],
45
46
  onChange: function onChange(value) {
46
47
  _onChange === null || _onChange === void 0 || _onChange(value === null || value === void 0 ? void 0 : value[0]);
47
48
  }