@trionesdev/antd-taro-react 0.0.2-beta.2 → 0.0.2-beta.20

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 (179) 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/Button/button.d.ts +2 -1
  8. package/dist/Button/button.js +2 -3
  9. package/dist/Button/style.scss +246 -231
  10. package/dist/Calendar/calendar-grid.d.ts +10 -9
  11. package/dist/Calendar/calendar-grid.js +37 -62
  12. package/dist/Calendar/calendar-header.d.ts +3 -2
  13. package/dist/Calendar/calendar-header.js +9 -6
  14. package/dist/Calendar/calendar-range.d.ts +4 -3
  15. package/dist/Calendar/calendar-range.js +22 -18
  16. package/dist/Calendar/calendar.d.ts +5 -4
  17. package/dist/Calendar/calendar.js +30 -17
  18. package/dist/Calendar/style.scss +88 -85
  19. package/dist/Calendar/touchable-calendar-grid.d.ts +6 -5
  20. package/dist/Calendar/touchable-calendar-grid.js +96 -95
  21. package/dist/CalendarDatetimePicker/CalendarDatetimePicker.d.ts +3 -2
  22. package/dist/CalendarDatetimePicker/CalendarDatetimePicker.js +40 -57
  23. package/dist/CalendarDatetimePicker/DateTimeSwitch.d.ts +3 -2
  24. package/dist/CalendarDatetimePicker/DateTimeSwitch.js +2 -2
  25. package/dist/CalendarDatetimePicker/style.scss +62 -54
  26. package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.d.ts +9 -0
  27. package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.js +60 -0
  28. package/dist/CalendarDatetimePickerCell/index.d.ts +3 -0
  29. package/dist/CalendarDatetimePickerCell/index.js +2 -0
  30. package/dist/CalendarPicker/{calendar-picker.js → CalendarPicker.js} +10 -6
  31. package/dist/CalendarPicker/{calendar-range-picker.js → CalendarRangePicker.js} +8 -6
  32. package/dist/CalendarPicker/index.d.ts +3 -4
  33. package/dist/CalendarPicker/index.js +2 -2
  34. package/dist/CalendarPicker/style.scss +32 -31
  35. package/dist/CalendarPicker/types.d.ts +8 -6
  36. package/dist/CalendarPicker/types.js +1 -1
  37. package/dist/CalendarPickerCell/CalendarPickerCell.d.ts +11 -0
  38. package/dist/CalendarPickerCell/CalendarPickerCell.js +54 -0
  39. package/dist/CalendarPickerCell/CalendarRangePickerCell.d.ts +11 -0
  40. package/dist/CalendarPickerCell/CalendarRangePickerCell.js +56 -0
  41. package/dist/CalendarPickerCell/index.d.ts +8 -0
  42. package/dist/CalendarPickerCell/index.js +5 -0
  43. package/dist/CascaderPicker/cascader-picker.d.ts +27 -0
  44. package/dist/CascaderPicker/cascader-picker.js +90 -0
  45. package/dist/CascaderPicker/index.d.ts +1 -1
  46. package/dist/CascaderPicker/index.js +1 -1
  47. package/dist/CascaderPicker/style.scss +45 -0
  48. package/dist/CascaderPickerCell/CascaderPickerCell.d.ts +20 -0
  49. package/dist/CascaderPickerCell/CascaderPickerCell.js +70 -0
  50. package/dist/CascaderPickerCell/index.d.ts +3 -0
  51. package/dist/CascaderPickerCell/index.js +2 -0
  52. package/dist/DatePicker/DatePicker.d.ts +18 -0
  53. package/dist/DatePicker/DatePicker.js +310 -0
  54. package/dist/DatePicker/index.d.ts +4 -0
  55. package/dist/DatePicker/index.js +3 -0
  56. package/dist/DatePicker/style.scss +41 -0
  57. package/dist/DatePicker/types.d.ts +1 -0
  58. package/dist/DatePicker/types.js +1 -0
  59. package/dist/DatePickerCell/DatePickerCell.d.ts +16 -0
  60. package/dist/DatePickerCell/DatePickerCell.js +78 -0
  61. package/dist/DatePickerCell/index.d.ts +3 -0
  62. package/dist/DatePickerCell/index.js +2 -0
  63. package/dist/FetchPicker/FetchPicker.d.ts +78 -0
  64. package/dist/FetchPicker/FetchPicker.js +310 -0
  65. package/dist/FetchPicker/index.d.ts +4 -0
  66. package/dist/FetchPicker/index.js +3 -0
  67. package/dist/FetchPicker/styles.scss +130 -0
  68. package/dist/FloatButton/FloatButton.d.ts +19 -0
  69. package/dist/FloatButton/FloatButton.js +60 -0
  70. package/dist/FloatButton/FloatButtonGroup.d.ts +21 -0
  71. package/dist/FloatButton/FloatButtonGroup.js +141 -0
  72. package/dist/FloatButton/context.d.ts +10 -0
  73. package/dist/FloatButton/context.js +2 -0
  74. package/dist/FloatButton/index.d.ts +10 -0
  75. package/dist/FloatButton/index.js +5 -0
  76. package/dist/FloatButton/style.scss +126 -0
  77. package/dist/Form/FormItem/form-item-content.d.ts +17 -0
  78. package/dist/Form/FormItem/form-item-content.js +39 -0
  79. package/dist/Form/FormItem/form-item-label.d.ts +13 -0
  80. package/dist/Form/FormItem/form-item-label.js +29 -0
  81. package/dist/Form/FormItem/form-item.d.ts +23 -0
  82. package/dist/Form/FormItem/form-item.js +77 -0
  83. package/dist/Form/FormItem/index.d.ts +5 -0
  84. package/dist/Form/FormItem/index.js +3 -0
  85. package/dist/Form/index.d.ts +9 -2
  86. package/dist/Form/index.js +5 -1
  87. package/dist/Form/style.scss +100 -0
  88. package/dist/FormCell/index.d.ts +3 -0
  89. package/dist/FormCell/index.js +2 -0
  90. package/dist/ImagesPreview/ImagesPreview.js +4 -3
  91. package/dist/ImagesPreview/style.scss +34 -34
  92. package/dist/ImagesWall/ImagesWall.js +1 -1
  93. package/dist/ImagesWall/style.scss +70 -70
  94. package/dist/Input/index.d.ts +17 -2
  95. package/dist/Input/index.js +13 -1
  96. package/dist/Input/index.scss +282 -0
  97. package/dist/Input/input-affix-wrapper.d.ts +13 -0
  98. package/dist/Input/input-affix-wrapper.js +37 -0
  99. package/dist/Input/input-digit.d.ts +7 -0
  100. package/dist/Input/input-digit.js +53 -0
  101. package/dist/Input/input-number.d.ts +7 -0
  102. package/dist/Input/input-number.js +50 -0
  103. package/dist/Input/input-opt.d.ts +16 -0
  104. package/dist/Input/input-opt.js +87 -0
  105. package/dist/Input/input-password.d.ts +8 -0
  106. package/dist/Input/input-password.js +49 -0
  107. package/dist/Input/input.d.ts +3 -0
  108. package/dist/Input/input.js +7 -0
  109. package/dist/Input/taro-input.d.ts +8 -0
  110. package/dist/Input/taro-input.js +70 -0
  111. package/dist/Input/textarea.d.ts +15 -0
  112. package/dist/Input/textarea.js +52 -0
  113. package/dist/Input/types.d.ts +20 -0
  114. package/dist/Input/types.js +2 -0
  115. package/dist/Loading/index.d.ts +4 -0
  116. package/dist/Loading/index.js +3 -0
  117. package/dist/Overlay/Overlay.d.ts +17 -0
  118. package/dist/Overlay/Overlay.js +100 -0
  119. package/dist/Overlay/index.d.ts +4 -0
  120. package/dist/Overlay/index.js +3 -0
  121. package/dist/Overlay/style.scss +20 -0
  122. package/dist/Picker/Picker.d.ts +27 -0
  123. package/dist/Picker/Picker.js +100 -0
  124. package/dist/Picker/index.d.ts +1 -1
  125. package/dist/Picker/index.js +1 -1
  126. package/dist/Picker/style.scss +41 -0
  127. package/dist/PickerView/PickerView.d.ts +4 -0
  128. package/dist/PickerView/PickerView.js +71 -0
  129. package/dist/PickerView/index.d.ts +2 -2
  130. package/dist/PickerView/index.js +1 -1
  131. package/dist/PickerView/style.scss +13 -0
  132. package/dist/PickerView/types.d.ts +15 -0
  133. package/dist/PickerView/types.js +1 -0
  134. package/dist/Popup/Popup.d.ts +48 -0
  135. package/dist/Popup/Popup.js +135 -0
  136. package/dist/Popup/index.d.ts +2 -1
  137. package/dist/Popup/index.js +2 -1
  138. package/dist/Popup/style.scss +126 -0
  139. package/dist/Progress/index.d.ts +1 -1
  140. package/dist/Progress/index.js +1 -1
  141. package/dist/Segmented/index.d.ts +3 -0
  142. package/dist/Segmented/index.js +2 -0
  143. package/dist/SideBar/side-bar.js +9 -8
  144. package/dist/SideBar/style.scss +85 -85
  145. package/dist/Stepper/index.d.ts +3 -0
  146. package/dist/Stepper/index.js +2 -0
  147. package/dist/Toast/Toast.d.ts +18 -0
  148. package/dist/Toast/Toast.js +112 -0
  149. package/dist/Toast/index.d.ts +1 -1
  150. package/dist/Toast/index.js +1 -1
  151. package/dist/Toast/style.scss +63 -0
  152. package/dist/VerificationCodeInput/index.d.ts +2 -2
  153. package/dist/VerificationCodeInput/index.js +1 -1
  154. package/dist/VerificationCodeInput/style.scss +20 -0
  155. package/dist/VerificationCodeInput/verification-code-input.d.ts +24 -0
  156. package/dist/VerificationCodeInput/verification-code-input.js +99 -0
  157. package/dist/index.d.ts +28 -7
  158. package/dist/index.js +12 -2
  159. package/dist/style/variable.scss +34 -1
  160. package/dist/types.d.ts +0 -1
  161. package/dist/utils/dayjs.d.ts +4 -0
  162. package/dist/utils/dayjs.js +42 -0
  163. package/package.json +25 -30
  164. package/readme.md +23 -23
  165. package/dist/Mask/index.d.ts +0 -3
  166. package/dist/Mask/index.js +0 -2
  167. package/dist/Progress/Progress.d.ts +0 -38
  168. package/dist/Progress/Progress.js +0 -53
  169. package/dist/Progress/ProgressCircle.d.ts +0 -16
  170. package/dist/Progress/ProgressCircle.js +0 -147
  171. package/dist/Progress/ProgressLine.d.ts +0 -15
  172. package/dist/Progress/ProgressLine.js +0 -87
  173. package/dist/Progress/style.scss +0 -33
  174. package/dist/Progress/types.d.ts +0 -4
  175. package/dist/Progress/types.js +0 -2
  176. package/dist/SpinLoading/index.d.ts +0 -3
  177. package/dist/SpinLoading/index.js +0 -2
  178. /package/dist/CalendarPicker/{calendar-picker.d.ts → CalendarPicker.d.ts} +0 -0
  179. /package/dist/CalendarPicker/{calendar-range-picker.d.ts → CalendarRangePicker.d.ts} +0 -0
@@ -1,231 +1,246 @@
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
- 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
+ $colorPrimary: variable.$trionesColorPrimary;
14
+ $colorError: variable.$trionesColorErrorText;
15
+ $colorWhite: variable.$trionesColorBgBase;
16
+
17
+ button::after {
18
+ content: none;
19
+ width: 100%;
20
+ }
21
+
22
+ $buttonCls: 'triones-antm-button';
23
+ .#{$buttonCls} {
24
+ width: auto;
25
+ position: relative;
26
+ display: inline-flex;
27
+ flex-direction: row;
28
+ justify-self: center;
29
+ align-items: center;
30
+ justify-content: center;
31
+ height: auto;
32
+ line-height: normal;
33
+ border-radius: 4Px;
34
+ border: 1Px none;
35
+ box-sizing: border-box;
36
+ font-size: 14Px;
37
+ z-index: 2;
38
+ margin-top: 0;
39
+ gap: 8Px;
40
+
41
+ &:active {
42
+ filter: brightness(92%);
43
+ }
44
+
45
+ &::after {
46
+ content: none;
47
+ }
48
+
49
+ &[disabled=true] {
50
+ opacity: 0.4;
51
+
52
+ &:active {
53
+ filter: none;
54
+ }
55
+ }
56
+
57
+ &:not([disabled]):active {
58
+
59
+ }
60
+
61
+ &-color {
62
+ &-default {
63
+ background-color: $colorWhite;
64
+
65
+ &.#{$buttonCls} {
66
+ &-variant {
67
+ &-solid {
68
+ color: $colorWhite;
69
+ background-color: rgba(0, 0, 0, 0.75);
70
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.75);
71
+ }
72
+
73
+ &-outlined {
74
+ color: rgba(0, 0, 0, 0.75);
75
+ border: 1px solid rgba(0, 0, 0, 0.75);
76
+ background-color: $colorWhite;
77
+ }
78
+
79
+ &-dashed {
80
+ color: rgba(0, 0, 0, 0.75);
81
+ border: 1px dashed rgba(0, 0, 0, 0.75);
82
+ background-color: $colorWhite;
83
+ }
84
+
85
+ &-filled {
86
+ color: rgba(0, 0, 0, 0.75);
87
+ background-color: rgba(0, 0, 0, 0.06);
88
+ }
89
+
90
+ &-text {
91
+ color: rgba(0, 0, 0, 0.75);
92
+ background-color: $colorWhite;
93
+ }
94
+
95
+ &-link {
96
+ color: rgba(0, 0, 0, 0.75);
97
+ background-color: $colorWhite;
98
+
99
+ &:active {
100
+ filter: none;
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+
107
+ &-primary {
108
+ &.#{$buttonCls} {
109
+ &-variant {
110
+ &-solid {
111
+ color: $colorWhite;
112
+ background-color: $colorPrimary;
113
+ box-shadow: inset 0 0 0 1px $colorPrimary;
114
+ }
115
+
116
+ &-outlined {
117
+ color: $colorPrimary;
118
+ background-color: white;
119
+ border: 1px solid $colorPrimary;
120
+ }
121
+
122
+ &-dashed {
123
+ color: $colorPrimary;
124
+ border: 1px dashed $colorPrimary;
125
+ background-color: $colorWhite;
126
+ }
127
+
128
+ &-filled {
129
+ color: $colorPrimary;
130
+ background-color: variable.$trionesColorPrimaryBg;
131
+ }
132
+
133
+ &-text {
134
+ color: $colorPrimary;
135
+ background-color: $colorWhite;
136
+ }
137
+
138
+ &-link {
139
+ color: $colorPrimary;
140
+ background-color: $colorWhite;
141
+
142
+ &:active {
143
+ filter: none;
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+
150
+ &-danger {
151
+ &.#{$buttonCls} {
152
+ &-variant {
153
+ &-solid {
154
+ color: $colorWhite;
155
+ background-color: $colorError;
156
+ box-shadow: inset 0 0 0 1px $colorError;
157
+ }
158
+
159
+ &-outlined {
160
+ color: $colorError;
161
+ background-color: $colorWhite;
162
+ border: 1px solid $colorError;
163
+ }
164
+
165
+ &-dashed {
166
+ color: $colorError;
167
+ border: 1px dashed $colorError;
168
+ background-color: $colorWhite;
169
+ }
170
+
171
+ &-filled {
172
+ color: $colorError;
173
+ background-color: #ffdfdc;
174
+ }
175
+
176
+ &-text {
177
+ color: $colorError;
178
+ background-color: $colorWhite;
179
+ }
180
+
181
+ &-link {
182
+ color: $colorError;
183
+ background-color: $colorWhite;
184
+
185
+ &:active {
186
+ filter: none;
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
193
+
194
+ &-variant {
195
+ &-solid {
196
+ }
197
+
198
+ &-outlined {
199
+ background-color: $colorWhite;
200
+ }
201
+
202
+ &-dashed {
203
+ border: 1px dashed #d9d9d9;
204
+ background-color: $colorWhite;
205
+ }
206
+
207
+ &-text {
208
+ background-color: $colorWhite;
209
+ }
210
+
211
+ &-link {
212
+ background-color: $colorWhite;
213
+ }
214
+ }
215
+
216
+ &-block {
217
+ //display: flex;
218
+ //flex-direction: row;
219
+ width: 100%;
220
+ }
221
+
222
+ &-small {
223
+ font-size: variable.$trionesFontSizeSm;
224
+ padding-inline: $trionesButtonPendingInlineSm;
225
+ height: $trionesButtonHeightSm;
226
+ border-radius: variable.$trionesBorderRadiusSm;
227
+ }
228
+
229
+ &-medium {
230
+ padding-inline: $trionesButtonPendingInline;
231
+ height: $trionesButtonHeight;
232
+ border-radius: variable.$trionesBorderRadius;
233
+ }
234
+
235
+ &-large {
236
+ font-size: $trionesButtonContentFontSizeLg;
237
+ padding-inline: $trionesButtonPendingInlineLg;
238
+ height: $trionesButtonHeightLg;
239
+ border-radius: variable.$trionesBorderRadiusLg;
240
+ }
241
+
242
+ &-disabled {
243
+ opacity: 0.4;
244
+ }
245
+ }
246
+
@@ -1,27 +1,28 @@
1
1
  import { FC } from 'react';
2
2
  import './style.scss';
3
+ import dayjs, { ConfigType } from "dayjs";
3
4
  export type CalendarGridProps = {
4
- mouth?: Date;
5
+ month?: dayjs.Dayjs;
5
6
  /**
6
7
  * @description 值,如果是区间模式,则 0,1 索引的值有效,0是开始时间,1是结束时间
7
8
  */
8
- value?: Date[];
9
+ value?: dayjs.Dayjs[];
9
10
  /**
10
11
  * @description 默认值,如果是区间模式,则 0,1 索引的值有效,0是开始时间,1是结束时间
11
12
  */
12
- defaultValue?: Date[];
13
- onChange?: (value: Date[]) => void;
13
+ defaultValue?: dayjs.Dayjs[];
14
+ onChange?: (value: dayjs.Dayjs[]) => void;
14
15
  /**
15
16
  * @description 是否为范围选择
16
17
  */
17
18
  range?: boolean;
18
- onSelect?: (date: Date) => void;
19
+ onSelect?: (date: ConfigType) => void;
19
20
  };
20
21
  export type CalendarCellProps = {
21
- mouth?: Date;
22
- date?: Date;
23
- value?: Date[];
22
+ month?: dayjs.Dayjs;
23
+ date?: dayjs.Dayjs;
24
+ value?: dayjs.Dayjs[];
24
25
  range?: boolean;
25
- onSelect?: (date: Date) => void;
26
+ onSelect?: (date: dayjs.Dayjs) => void;
26
27
  };
27
28
  export declare const CalendarGrid: FC<CalendarGridProps>;