@trionesdev/antd-mobile-react 0.0.2-beta.1 → 0.0.2-beta.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 (203) 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 -232
  13. package/dist/Calendar/calendar.js +2 -1
  14. package/dist/Calendar/style.scss +85 -85
  15. package/dist/Calendar/touchable-calendar-grid.js +9 -9
  16. package/dist/CalendarDatetimePicker/CalendarDatetimePicker.d.ts +5 -6
  17. package/dist/CalendarDatetimePicker/CalendarDatetimePicker.js +37 -132
  18. package/dist/CalendarDatetimePicker/demo/base.js +5 -21
  19. package/dist/CalendarDatetimePicker/index.d.ts +2 -2
  20. package/dist/CalendarDatetimePicker/style.scss +10 -54
  21. package/dist/CalendarDatetimePicker/types.d.ts +0 -4
  22. package/dist/CalendarDatetimePicker/types.js +1 -6
  23. package/dist/CalendarDatetimePopup/CalendarDatetimePopup.d.ts +10 -0
  24. package/dist/CalendarDatetimePopup/CalendarDatetimePopup.js +142 -0
  25. package/dist/CalendarDatetimePopup/demo/base.js +41 -0
  26. package/dist/CalendarDatetimePopup/index.d.ts +3 -0
  27. package/dist/CalendarDatetimePopup/index.js +2 -0
  28. package/dist/CalendarDatetimePopup/style.scss +54 -0
  29. package/dist/CalendarDatetimePopup/types.d.ts +5 -0
  30. package/dist/CalendarDatetimePopup/types.js +6 -0
  31. package/dist/CalendarPopup/calendar-popup.d.ts +4 -0
  32. package/dist/{CalendarPicker/calendar-picker.js → CalendarPopup/calendar-popup.js} +2 -2
  33. package/dist/CalendarPopup/calendar-range-popup.d.ts +4 -0
  34. package/dist/{CalendarPicker/calendar-range-picker.js → CalendarPopup/calendar-range-popup.js} +8 -7
  35. package/dist/{CalendarPicker → CalendarPopup}/demo/base.js +3 -3
  36. package/dist/CalendarPopup/index.d.ts +9 -0
  37. package/dist/CalendarPopup/index.js +5 -0
  38. package/dist/CalendarPopup/style.scss +31 -0
  39. package/dist/{CalendarPicker → CalendarPopup}/types.d.ts +2 -2
  40. package/dist/Card/demo/base.js +2 -2
  41. package/dist/Card/demo/base.scss +18 -18
  42. package/dist/CascaderPicker/CascaderPicker.d.ts +25 -0
  43. package/dist/CascaderPicker/CascaderPicker.js +78 -0
  44. package/dist/CascaderPicker/demo/base.js +6 -18
  45. package/dist/CascaderPicker/index.d.ts +1 -1
  46. package/dist/CascaderPicker/index.js +1 -1
  47. package/dist/CascaderPicker/style.scss +24 -0
  48. package/dist/CascaderPopup/cascader-popup.d.ts +27 -0
  49. package/dist/CascaderPopup/cascader-popup.js +90 -0
  50. package/dist/CascaderPopup/demo/base.d.ts +3 -0
  51. package/dist/CascaderPopup/demo/base.js +82 -0
  52. package/dist/CascaderPopup/index.d.ts +3 -0
  53. package/dist/CascaderPopup/index.js +2 -0
  54. package/dist/CascaderPopup/style.scss +45 -0
  55. package/dist/Cell/demo/base.js +41 -2
  56. package/dist/Checkbox/demo/base.js +11 -6
  57. package/dist/Checkbox/demo/disabled.js +2 -1
  58. package/dist/ConfigProvider/demo/base.js +2 -2
  59. package/dist/DemoBlock/index.d.ts +6 -0
  60. package/dist/DemoBlock/index.js +9 -2
  61. package/dist/DemoBlock/index.scss +20 -20
  62. package/dist/DemoDescription/index.scss +3 -3
  63. package/dist/Divider/demo/base.js +2 -2
  64. package/dist/Ellipsis/demo/base.js +2 -2
  65. package/dist/Empty/demo/base.js +2 -2
  66. package/dist/ErrorBlock/demo/base.js +2 -2
  67. package/dist/Footer/demo/base.js +2 -2
  68. package/dist/Form/FormItem/form-item-input.d.ts +15 -0
  69. package/dist/Form/FormItem/form-item-input.js +39 -0
  70. package/dist/Form/FormItem/form-item-label.d.ts +13 -0
  71. package/dist/Form/FormItem/form-item-label.js +27 -0
  72. package/dist/Form/FormItem/form-item.d.ts +22 -0
  73. package/dist/Form/FormItem/form-item.js +73 -0
  74. package/dist/Form/FormItem/index.d.ts +5 -0
  75. package/dist/Form/FormItem/index.js +3 -0
  76. package/dist/Form/demo/input.js +1 -1
  77. package/dist/Form/index.d.ts +8 -1
  78. package/dist/Form/index.js +5 -1
  79. package/dist/Form/style.scss +67 -0
  80. package/dist/Grid/demo/base.js +2 -2
  81. package/dist/Grid/demo/base.scss +7 -7
  82. package/dist/Icon/demo/base.js +2 -2
  83. package/dist/Image/demo/base.js +2 -2
  84. package/dist/Image/demo/base.scss +4 -4
  85. package/dist/Image/style.scss +30 -30
  86. package/dist/ImagesPreview/ImagesPreview.js +2 -2
  87. package/dist/ImagesPreview/style.scss +34 -34
  88. package/dist/ImagesWall/CameraModal.js +2 -2
  89. package/dist/ImagesWall/style.scss +70 -70
  90. package/dist/Input/base-input.d.ts +13 -0
  91. package/dist/Input/base-input.js +41 -0
  92. package/dist/Input/demo/base.js +89 -13
  93. package/dist/Input/index.d.ts +14 -2
  94. package/dist/Input/index.js +11 -1
  95. package/dist/Input/index.scss +223 -0
  96. package/dist/Input/input-affix-wrapper.d.ts +11 -0
  97. package/dist/Input/input-affix-wrapper.js +37 -0
  98. package/dist/Input/input-opt.d.ts +16 -0
  99. package/dist/Input/input-opt.js +87 -0
  100. package/dist/Input/input-password.d.ts +7 -0
  101. package/dist/Input/input-password.js +48 -0
  102. package/dist/Input/input.d.ts +18 -0
  103. package/dist/Input/input.js +63 -0
  104. package/dist/Input/textarea.d.ts +15 -0
  105. package/dist/Input/textarea.js +51 -0
  106. package/dist/Input/types.d.ts +3 -0
  107. package/dist/Input/types.js +2 -0
  108. package/dist/NavBar/demo/base.scss +5 -5
  109. package/dist/NoticeBar/demo/base.js +2 -2
  110. package/dist/Overlay/Overlay.d.ts +16 -0
  111. package/dist/Overlay/Overlay.js +117 -0
  112. package/dist/Overlay/demo/base.d.ts +3 -0
  113. package/dist/{Mask → Overlay}/demo/base.js +14 -16
  114. package/dist/Overlay/index.d.ts +4 -0
  115. package/dist/Overlay/index.js +3 -0
  116. package/dist/Overlay/style.scss +20 -0
  117. package/dist/PageIndicator/demo/base.js +2 -2
  118. package/dist/Picker/index.d.ts +1 -1
  119. package/dist/Picker/index.js +1 -1
  120. package/dist/Picker/picker.d.ts +19 -0
  121. package/dist/Picker/picker.js +97 -0
  122. package/dist/Picker/style.scss +44 -0
  123. package/dist/PickerView/index.d.ts +2 -1
  124. package/dist/PickerView/index.js +1 -1
  125. package/dist/PickerView/picker-view-column-item.d.ts +7 -0
  126. package/dist/PickerView/picker-view-column-item.js +11 -0
  127. package/dist/PickerView/picker-view-column.d.ts +10 -0
  128. package/dist/PickerView/picker-view-column.js +117 -0
  129. package/dist/PickerView/picker-view.d.ts +12 -0
  130. package/dist/PickerView/picker-view.js +60 -0
  131. package/dist/PickerView/style.scss +72 -0
  132. package/dist/PickerView/types.d.ts +4 -0
  133. package/dist/PickerView/types.js +1 -0
  134. package/dist/Popup/demo/base.js +109 -27
  135. package/dist/Popup/index.d.ts +2 -1
  136. package/dist/Popup/index.js +2 -1
  137. package/dist/Popup/popup.d.ts +31 -0
  138. package/dist/Popup/popup.js +87 -0
  139. package/dist/Popup/style.scss +129 -0
  140. package/dist/Progress/index.d.ts +1 -1
  141. package/dist/Progress/index.js +1 -1
  142. package/dist/Radio/demo/base.js +2 -2
  143. package/dist/Radio/demo/base.scss +4 -4
  144. package/dist/Result/demo/base.js +2 -2
  145. package/dist/SafeArea/demo/base.scss +18 -18
  146. package/dist/ScrollView/index.d.ts +2 -1
  147. package/dist/ScrollView/index.js +1 -1
  148. package/dist/ScrollView/scroll-view.d.ts +4 -0
  149. package/dist/ScrollView/scroll-view.js +55 -0
  150. package/dist/ScrollView/style.scss +19 -0
  151. package/dist/ScrollView/types.d.ts +26 -0
  152. package/dist/ScrollView/types.js +1 -0
  153. package/dist/SideBar/index.d.ts +1 -1
  154. package/dist/SideBar/side-bar.js +6 -6
  155. package/dist/SideBar/style.scss +85 -85
  156. package/dist/Space/demo/base.js +2 -2
  157. package/dist/Swiper/style.scss +54 -54
  158. package/dist/Switch/demo/base.js +2 -2
  159. package/dist/TabBar/demo/base.js +2 -2
  160. package/dist/Tag/demo/base.js +2 -2
  161. package/dist/Tag/demo/style.scss +8 -8
  162. package/dist/Toast/style.scss +63 -63
  163. package/dist/Toast/toast-modal.js +4 -4
  164. package/dist/VerificationCodeInput/demo/base.js +2 -2
  165. package/dist/VerificationCodeInput/index.d.ts +2 -2
  166. package/dist/VerificationCodeInput/index.js +1 -1
  167. package/dist/VerificationCodeInput/style.scss +20 -0
  168. package/dist/VerificationCodeInput/verification-code-input.d.ts +24 -0
  169. package/dist/VerificationCodeInput/verification-code-input.js +99 -0
  170. package/dist/WaterMark/demo/demo1.js +2 -2
  171. package/dist/WaterMark/demo/demo1.scss +6 -6
  172. package/dist/WaterMark/demo/demo2.js +2 -2
  173. package/dist/index.d.ts +9 -7
  174. package/dist/index.js +4 -3
  175. package/dist/style/variable.scss +1 -1
  176. package/dist/types.d.ts +0 -8
  177. package/dist/types.js +0 -1
  178. package/dist/utils/type.js +36 -36
  179. package/dist/utils/use-isomorphic-update-layout-effect.d.ts +1 -1
  180. package/dist/utils/with-default-props.js +4 -4
  181. package/package.json +10 -11
  182. package/readme.md +43 -43
  183. package/dist/CalendarPicker/calendar-picker.d.ts +0 -4
  184. package/dist/CalendarPicker/calendar-range-picker.d.ts +0 -4
  185. package/dist/CalendarPicker/index.d.ts +0 -9
  186. package/dist/CalendarPicker/index.js +0 -5
  187. package/dist/CalendarPicker/style.scss +0 -31
  188. package/dist/Mask/index.d.ts +0 -3
  189. package/dist/Mask/index.js +0 -2
  190. package/dist/Progress/Progress.d.ts +0 -37
  191. package/dist/Progress/Progress.js +0 -52
  192. package/dist/Progress/ProgressCircle.d.ts +0 -17
  193. package/dist/Progress/ProgressCircle.js +0 -148
  194. package/dist/Progress/ProgressLine.d.ts +0 -15
  195. package/dist/Progress/ProgressLine.js +0 -87
  196. package/dist/Progress/style.scss +0 -33
  197. package/dist/Progress/types.d.ts +0 -4
  198. package/dist/Progress/types.js +0 -2
  199. /package/dist/{CalendarDatetimePicker → CalendarDatetimePopup}/DateTimeSwitch.d.ts +0 -0
  200. /package/dist/{CalendarDatetimePicker → CalendarDatetimePopup}/DateTimeSwitch.js +0 -0
  201. /package/dist/{CalendarPicker → CalendarDatetimePopup}/demo/base.d.ts +0 -0
  202. /package/dist/{Mask → CalendarPopup}/demo/base.d.ts +0 -0
  203. /package/dist/{CalendarPicker → CalendarPopup}/types.js +0 -0
@@ -1,232 +1,234 @@
1
- @use "../style/variable" as *;
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
- // 定义常用颜色变量以提高可维护性
14
- $buttonBackgroundColor: #ffffff;
15
- $buttonDarkTextColor: rgba(0, 0, 0, 0.75);
16
- $buttonLightTextColor: rgba(0, 0, 0, 0.06);
17
-
18
- button::after {
19
- content: none;
20
- width: 100%;
21
- }
22
-
23
- $buttonCls: 'triones-antm-button';
24
- .#{$buttonCls} {
25
- width: auto;
26
- position: relative;
27
- display: inline-flex;
28
- flex-direction: column;
29
- justify-self: center;
30
- align-items: center;
31
- justify-content: center;
32
- height: auto;
33
- line-height: normal;
34
- border-radius: 4Px;
35
- border: 1Px none;
36
- box-sizing: border-box;
37
- font-size: 14Px;
38
- z-index: 2;
39
- margin-top: 0;
40
-
41
- &:active {
42
- filter: brightness(92%);
43
- }
44
- &::after{
45
- content: none;
46
- }
47
-
48
- &[disabled] {
49
- opacity: 0.4;
50
-
51
- &:active {
52
- filter: none;
53
- }
54
- }
55
-
56
- &-color {
57
- &-default {
58
- background-color: $buttonBackgroundColor;
59
-
60
- &.#{$buttonCls} {
61
- &-variant {
62
- &-solid {
63
- color: $buttonBackgroundColor;
64
- background-color: $buttonDarkTextColor;
65
- box-shadow: inset 0 0 0 1px $buttonDarkTextColor;
66
- }
67
-
68
- &-outlined {
69
- color: $buttonDarkTextColor;
70
- border: 1px solid $buttonDarkTextColor;
71
- background-color: $buttonBackgroundColor;
72
- }
73
-
74
- &-dashed {
75
- color: $buttonDarkTextColor;
76
- border: 1px dashed $buttonDarkTextColor;
77
- background-color: $buttonBackgroundColor;
78
- }
79
-
80
- &-filled {
81
- color: $buttonDarkTextColor;
82
- background-color: $buttonLightTextColor;
83
- }
84
-
85
- &-text {
86
- color: $buttonDarkTextColor;
87
- background-color: $buttonBackgroundColor;
88
- }
89
-
90
- &-link {
91
- color: $buttonDarkTextColor;
92
- background-color: $buttonBackgroundColor;
93
-
94
- &:active {
95
- filter: none;
96
- }
97
- }
98
- }
99
- }
100
- }
101
-
102
- &-primary {
103
- &.#{$buttonCls} {
104
- &-variant {
105
- &-solid {
106
- color: $buttonBackgroundColor;
107
- background-color: $trionesColorPrimaryText;
108
- box-shadow: inset 0 0 0 1px $trionesColorPrimaryText;
109
- }
110
-
111
- &-outlined {
112
- color: #1677ff;
113
- background-color: $buttonBackgroundColor;
114
- border: 1px solid $trionesColorPrimaryText;
115
- }
116
-
117
- &-dashed {
118
- color: $trionesColorPrimaryText;
119
- border: 1px dashed $trionesColorPrimaryText;
120
- background-color: $buttonBackgroundColor;
121
- }
122
-
123
- &-filled {
124
- color: $trionesColorPrimaryText;
125
- background-color: $trionesColorPrimaryBg;
126
- }
127
-
128
- &-text {
129
- color: $trionesColorPrimaryText;
130
- background-color: $buttonBackgroundColor;
131
- }
132
-
133
- &-link {
134
- color: $trionesColorPrimaryText;
135
- background-color: $buttonBackgroundColor;
136
-
137
- &:active {
138
- filter: none;
139
- }
140
- }
141
- }
142
- }
143
- }
144
-
145
- &-danger {
146
- &.#{$buttonCls} {
147
- &-variant {
148
- &-solid {
149
- color: $buttonBackgroundColor;
150
- background-color: $trionesColorErrorText;
151
- box-shadow: inset 0 0 0 1px $trionesColorErrorText;
152
- }
153
-
154
- &-outlined {
155
- color: $trionesColorErrorText;
156
- background-color: $buttonBackgroundColor;
157
- border: 1px solid $trionesColorErrorText;
158
- }
159
-
160
- &-dashed {
161
- color: $trionesColorErrorText;
162
- border: 1px dashed $trionesColorErrorText;
163
- background-color: $buttonBackgroundColor;
164
- }
165
-
166
- &-filled {
167
- color: $trionesColorErrorText;
168
- background-color: #ffdfdc;
169
- }
170
-
171
- &-text {
172
- color: $trionesColorErrorText;
173
- background-color: $buttonBackgroundColor;
174
- }
175
-
176
- &-link {
177
- color: $trionesColorErrorText;
178
- background-color: $buttonBackgroundColor;
179
-
180
- &:active {
181
- filter: none;
182
- }
183
- }
184
- }
185
- }
186
- }
187
- }
188
-
189
- &-variant {
190
- &-outlined {
191
- background-color: $buttonBackgroundColor;
192
- }
193
-
194
- &-dashed {
195
- border: 1px dashed #d9d9d9;
196
- background-color: $buttonBackgroundColor;
197
- }
198
-
199
- &-text {
200
- background-color: $buttonBackgroundColor;
201
- }
202
-
203
- &-link {
204
- background-color: $buttonBackgroundColor;
205
- }
206
- }
207
-
208
- &-block {
209
- display: flex;
210
- width: 100%;
211
- }
212
-
213
- &-small {
214
- font-size: $trionesFontSizeSm;
215
- padding-inline: $trionesButtonPendingInlineSm;
216
- height: $trionesButtonHeightSm;
217
- border-radius: $trionesBorderRadiusSm;
218
- }
219
-
220
- &-middle {
221
- padding-inline: $trionesButtonPendingInline;
222
- height: $trionesButtonHeight;
223
- border-radius: $trionesBorderRadius;
224
- }
225
-
226
- &-large {
227
- font-size: $trionesButtonContentFontSizeLg;
228
- padding-inline: $trionesButtonPendingInlineLg;
229
- height: $trionesButtonHeightLg;
230
- border-radius: $trionesBorderRadiusLg;
231
- }
232
- }
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
+ }
@@ -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
  }
@@ -1,85 +1,85 @@
1
- @use "../style/variable" as *;
2
-
3
- $calendarCls: 'triones-antm-calendar';
4
-
5
- .#{$calendarCls}-grid {
6
- //display: flex;
7
- //flex-wrap: wrap;
8
- display: grid;
9
- grid-template-columns: repeat(7, 1fr);
10
- }
11
-
12
- .#{$calendarCls}-cell {
13
- aspect-ratio: 1;
14
- display: flex;
15
- justify-content: center;
16
- align-items: center;
17
- border-radius: $trionesBorderRadius;
18
- cursor: default;
19
- flex-direction: column;
20
-
21
- &-date {
22
- display: flex;
23
- width: 100%;
24
- justify-content: center;
25
- align-items: center;
26
- }
27
-
28
- &-mouth {
29
- display: flex;
30
- width: 100%;
31
- justify-content: center;
32
- align-items: center;
33
- font-size: 8Px;
34
- }
35
-
36
- &.#{$calendarCls}-cell {
37
- &-disabled {
38
- color: #999999;
39
- }
40
-
41
- &-selected {
42
- background-color: $trionesColorPrimary;
43
- color: white;
44
- }
45
-
46
- &-selected-range {
47
- border-radius: 0;
48
- background-color: $trionesColorPrimaryBg;
49
- color: black;
50
- }
51
- }
52
- }
53
-
54
- .#{$calendarCls} {
55
- &-header {
56
- display: flex;
57
- justify-content: space-between;
58
- align-items: center;
59
-
60
- &-title {
61
- font-size: 16Px;
62
- padding: 8Px;
63
- text-align: center;
64
- }
65
-
66
- &-button {
67
- padding-left: 12Px;
68
- padding-right: 12Px;
69
- cursor: pointer;
70
- }
71
- }
72
-
73
- &-week {
74
- display: grid;
75
- grid-template-columns: repeat(7, 1fr);
76
-
77
- &-cell {
78
- display: flex;
79
- justify-content: center;
80
- align-items: center;
81
- padding-top: 8Px;
82
- padding-bottom: 8Px;
83
- }
84
- }
85
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $calendarCls: 'triones-antm-calendar';
4
+
5
+ .#{$calendarCls}-grid {
6
+ //display: flex;
7
+ //flex-wrap: wrap;
8
+ display: grid;
9
+ grid-template-columns: repeat(7, 1fr);
10
+ }
11
+
12
+ .#{$calendarCls}-cell {
13
+ aspect-ratio: 1;
14
+ display: flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ border-radius: variable.$trionesBorderRadius;
18
+ cursor: default;
19
+ flex-direction: column;
20
+
21
+ &-date {
22
+ display: flex;
23
+ width: 100%;
24
+ justify-content: center;
25
+ align-items: center;
26
+ }
27
+
28
+ &-mouth {
29
+ display: flex;
30
+ width: 100%;
31
+ justify-content: center;
32
+ align-items: center;
33
+ font-size: 8Px;
34
+ }
35
+
36
+ &.#{$calendarCls}-cell {
37
+ &-disabled {
38
+ color: #999999;
39
+ }
40
+
41
+ &-selected {
42
+ background-color: variable.$trionesColorPrimary;
43
+ color: white;
44
+ }
45
+
46
+ &-selected-range {
47
+ border-radius: 0;
48
+ background-color: variable.$trionesColorPrimaryBg;
49
+ color: black;
50
+ }
51
+ }
52
+ }
53
+
54
+ .#{$calendarCls} {
55
+ &-header {
56
+ display: flex;
57
+ justify-content: space-between;
58
+ align-items: center;
59
+
60
+ &-title {
61
+ font-size: 16Px;
62
+ padding: 8Px;
63
+ text-align: center;
64
+ }
65
+
66
+ &-button {
67
+ padding-left: 12Px;
68
+ padding-right: 12Px;
69
+ cursor: pointer;
70
+ }
71
+ }
72
+
73
+ &-week {
74
+ display: grid;
75
+ grid-template-columns: repeat(7, 1fr);
76
+
77
+ &-cell {
78
+ display: flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+ padding-top: 8Px;
82
+ padding-bottom: 8Px;
83
+ }
84
+ }
85
+ }