@nutui/nutui-react-taro 2.7.8 → 2.7.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 (119) hide show
  1. package/CHANGELOG.md +22 -6
  2. package/dist/esm/Address.js +1 -1
  3. package/dist/esm/Audio.js +1 -1
  4. package/dist/esm/AvatarCropper.js +1 -1
  5. package/dist/esm/BackTop.js +1 -1
  6. package/dist/esm/Badge.js +1 -1
  7. package/dist/esm/Calendar/style/index.js +3 -1
  8. package/dist/esm/Calendar/style/style.css +1 -1
  9. package/dist/esm/Calendar.js +1 -1
  10. package/dist/esm/CalendarCard.js +1 -1
  11. package/dist/esm/CalendarItem.js +1 -1
  12. package/dist/esm/Cascader.js +1 -1
  13. package/dist/esm/ConfigProvider.js +2 -2
  14. package/dist/esm/DatePicker.js +1 -1
  15. package/dist/esm/Dialog.js +1 -1
  16. package/dist/esm/Drag.js +1 -1
  17. package/dist/esm/Ellipsis.js +1 -1
  18. package/dist/esm/FixedNav.js +1 -1
  19. package/dist/esm/ImagePreview/style/style.css +1 -1
  20. package/dist/esm/InfiniteLoading.js +1 -1
  21. package/dist/esm/Input.js +1 -1
  22. package/dist/esm/Menu.js +1 -1
  23. package/dist/esm/MenuItem.js +1 -1
  24. package/dist/esm/NoticeBar.js +1 -1
  25. package/dist/esm/NumberKeyboard.js +1 -1
  26. package/dist/esm/Pagination.js +1 -1
  27. package/dist/esm/Picker.js +1 -1
  28. package/dist/esm/Popover.js +1 -1
  29. package/dist/esm/Progress.js +1 -1
  30. package/dist/esm/PullToRefresh.js +1 -1
  31. package/dist/esm/Range.js +1 -1
  32. package/dist/esm/SearchBar.js +1 -1
  33. package/dist/esm/ShortPassword.js +1 -1
  34. package/dist/esm/Sticky.js +1 -1
  35. package/dist/esm/Swiper/style/style.css +1 -1
  36. package/dist/esm/Tabbar.js +1 -1
  37. package/dist/esm/TabbarItem.js +1 -1
  38. package/dist/esm/Table.js +1 -1
  39. package/dist/esm/Tabs.js +1 -1
  40. package/dist/esm/TextArea.js +1 -1
  41. package/dist/esm/TimeSelect.js +1 -1
  42. package/dist/esm/Tour.js +1 -1
  43. package/dist/esm/Uploader.js +1 -1
  44. package/dist/esm/VirtualList.js +1 -1
  45. package/dist/esm/WaterMark.js +1 -1
  46. package/dist/esm/{address.taro-Ck0ZmxRg.js → address.taro-BM2ZWeTm.js} +2 -2
  47. package/dist/esm/{audio.taro-DtIUjg89.js → audio.taro-C9DxpSXx.js} +2 -2
  48. package/dist/esm/{avatarcropper.taro-meD2sizv.js → avatarcropper.taro-BsbRSHbo.js} +3 -2
  49. package/dist/esm/{backtop.taro-D3Lo3jFO.js → backtop.taro-Cj60ZYba.js} +1 -1
  50. package/dist/esm/{badge.taro-B42_7q8v.js → badge.taro-W8s89KAj.js} +1 -1
  51. package/dist/esm/calendar.taro-C-5Lmq9i.js +317 -0
  52. package/dist/esm/{calendarcard.taro-BiOnui_b.js → calendarcard.taro-Cp3yzc6h.js} +2 -2
  53. package/dist/esm/{calendaritem.taro-DveeC4_t.js → calendaritem.taro-B0QA0q4N.js} +208 -15
  54. package/dist/esm/{cascader.taro-DUJvcGw0.js → cascader.taro-Djw9IdKW.js} +2 -2
  55. package/dist/esm/{configprovider.taro-C3WyeHSO.js → configprovider.taro-DpK4IiCE.js} +4 -0
  56. package/dist/esm/date-C7eJqrqk.js +74 -0
  57. package/dist/esm/{datepicker.taro-Dwh8sKhJ.js → datepicker.taro-CPSTcVSz.js} +2 -2
  58. package/dist/esm/{dialog.taro-yjDaaRHA.js → dialog.taro-1Vukbvap.js} +1 -1
  59. package/dist/esm/{drag.taro-r5Lmncrq.js → drag.taro-CHPSfySz.js} +2 -2
  60. package/dist/esm/{ellipsis.taro-K9VJCTL6.js → ellipsis.taro-rMWnB7Vp.js} +1 -1
  61. package/dist/esm/{fixednav.taro-BodErnYy.js → fixednav.taro-DlVXnggt.js} +1 -1
  62. package/dist/esm/get-system-info-D27xNglo.js +11 -0
  63. package/dist/esm/{infiniteloading.taro-DzIrZvc0.js → infiniteloading.taro-6r-XMUlU.js} +1 -1
  64. package/dist/esm/{input.taro-CA9ZpM9a.js → input.taro-s1Zw62KR.js} +1 -1
  65. package/dist/esm/{menu.taro-2APk--BX.js → menu.taro-9N8A5UoN.js} +1 -1
  66. package/dist/esm/{menuitem.taro-BMlSqBSc.js → menuitem.taro-CnsORm5-.js} +5 -4
  67. package/dist/esm/{noticebar.taro-B0qm66Cu.js → noticebar.taro-DjmvFSpp.js} +1 -1
  68. package/dist/esm/{numberkeyboard.taro-BvVO_MyJ.js → numberkeyboard.taro-blGUntGo.js} +1 -1
  69. package/dist/esm/nutui-react.es.js +40 -40
  70. package/dist/esm/{pagination.taro-BSwytb0-.js → pagination.taro-V57qqxwc.js} +1 -1
  71. package/dist/esm/{picker.taro-B7EE52qf.js → picker.taro-Ctc0Wt4S.js} +1 -1
  72. package/dist/esm/{popover.taro-C9qhPJCb.js → popover.taro-Da7xRN6D.js} +1 -1
  73. package/dist/esm/{progress.taro-CaIUT9Uo.js → progress.taro-cveY9Y_I.js} +1 -1
  74. package/dist/esm/{pulltorefresh.taro-BiSDwLpA.js → pulltorefresh.taro-KKNiGe1Q.js} +3 -2
  75. package/dist/esm/{range.taro-Bbs4JcXp.js → range.taro-C5SuX_2b.js} +1 -1
  76. package/dist/esm/{searchbar.taro-LaO2Xr2t.js → searchbar.taro-BgwUn_Ma.js} +1 -1
  77. package/dist/esm/{shortpassword.taro-CUnXqjab.js → shortpassword.taro--atvsdZp.js} +1 -1
  78. package/dist/esm/{sticky.taro-DtUAawu_.js → sticky.taro-l66r7WFn.js} +3 -2
  79. package/dist/esm/{tabbar.taro-BiQDgZQF.js → tabbar.taro-BQpwulp5.js} +1 -1
  80. package/dist/esm/{tabbaritem.taro-BiIVucQz.js → tabbaritem.taro-BPe2bsMQ.js} +1 -1
  81. package/dist/esm/{table.taro-1nFkDxbh.js → table.taro-H3kjB4kV.js} +1 -1
  82. package/dist/esm/{tabs.taro-sp_DNWis.js → tabs.taro-Cb7JS_Gz.js} +6 -16
  83. package/dist/esm/{textarea.taro-PsaohYay.js → textarea.taro-CGMI5QNw.js} +1 -1
  84. package/dist/esm/{timeselect.taro-FIl91wiO.js → timeselect.taro-3Sc_hERv.js} +1 -1
  85. package/dist/esm/{tour.taro-BidQx8Fg.js → tour.taro-xqFUxSBB.js} +1 -1
  86. package/dist/esm/{uploader.taro-BBJsHrew.js → uploader.taro-DAWwySrs.js} +2 -2
  87. package/dist/esm/{virtuallist.taro-BlPW8ibd.js → virtuallist.taro-CQDtOwWn.js} +2 -2
  88. package/dist/esm/{watermark.taro-CbO7mKFD.js → watermark.taro-DuJQHymA.js} +1 -1
  89. package/dist/locales/base.d.ts +4 -0
  90. package/dist/locales/base.js +1 -1
  91. package/dist/locales/en-US.js +5 -1
  92. package/dist/locales/id-ID.js +5 -1
  93. package/dist/locales/tr-TR.js +5 -1
  94. package/dist/locales/zh-CN.js +5 -1
  95. package/dist/locales/zh-TW.js +5 -1
  96. package/dist/locales/zh-UG.js +5 -1
  97. package/dist/nutui.react.es.js +600 -140
  98. package/dist/nutui.react.umd.js +599 -139
  99. package/dist/packages/calendar/calendar.scss +24 -0
  100. package/dist/packages/calendar/calendarviewmode.scss +181 -0
  101. package/dist/packages/swiper/swiper.scss +11 -0
  102. package/dist/style.css +1 -1
  103. package/dist/styles/variables.scss +4 -0
  104. package/dist/types/locales/base.d.ts +4 -0
  105. package/dist/types/packages/calendar/calendar.d.ts +4 -0
  106. package/dist/types/packages/calendar/calendar.taro.d.ts +4 -0
  107. package/dist/types/packages/calendar/calendarviewmodeitem.d.ts +20 -0
  108. package/dist/types/packages/calendar/calendarviewmodeitem.taro.d.ts +20 -0
  109. package/dist/types/packages/calendar/types.d.ts +27 -0
  110. package/dist/types/packages/calendar/utils.d.ts +40 -0
  111. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -0
  112. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -0
  113. package/dist/types/packages/calendaritem/utils.d.ts +17 -0
  114. package/dist/types/packages/configprovider/types.d.ts +1 -1
  115. package/dist/types/utils/date.d.ts +0 -17
  116. package/dist/types/utils/get-system-info.d.ts +19 -0
  117. package/package.json +1 -1
  118. package/dist/esm/calendar.taro-CUDVpJBa.js +0 -47
  119. package/dist/esm/date-BmUWlDuN.js +0 -147
@@ -61,6 +61,10 @@
61
61
  height: 36px;
62
62
  border-radius: 0px 0px 12px 12px;
63
63
  box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
64
+
65
+ &-shrink {
66
+ padding-left: 17%;
67
+ }
64
68
  }
65
69
 
66
70
  &-week-item {
@@ -110,6 +114,22 @@
110
114
  margin: 8px 0;
111
115
  }
112
116
 
117
+ &-weeknumber {
118
+ width: 35%;
119
+ &-index {
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ flex-direction: column;
124
+ position: relative;
125
+ height: $calendar-day-height;
126
+ font-weight: $font-weight;
127
+ font-size: $font-size-base;
128
+ margin-bottom: 4px;
129
+ color: $color-text-help;
130
+ }
131
+ }
132
+
113
133
  &-days {
114
134
  overflow: hidden;
115
135
  }
@@ -204,6 +224,10 @@
204
224
  }
205
225
  }
206
226
 
227
+ .shrink {
228
+ display: flex;
229
+ }
230
+
207
231
  // 底部导航
208
232
  &-footer {
209
233
  display: flex;
@@ -0,0 +1,181 @@
1
+ .nut-calendar-viewmode {
2
+ position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
+ flex: 1;
6
+ font-size: $calendar-base-font-size;
7
+ background-color: $color-background-overlay;
8
+ color: $color-title;
9
+ overflow: hidden;
10
+ height: 100%;
11
+
12
+ &.nut-calendar-title {
13
+ .nut-calendar-header {
14
+ .calendar-title {
15
+ font-size: $calendar-base-font-size;
16
+ }
17
+ }
18
+ }
19
+
20
+ .nut-calendar-taro {
21
+ height: 60vh;
22
+ }
23
+
24
+ .popup-box {
25
+ height: 100%;
26
+ }
27
+
28
+ ::-webkit-scrollbar {
29
+ display: none;
30
+ }
31
+
32
+ // 头部导航
33
+ &-header {
34
+ display: flex;
35
+ flex-direction: column;
36
+ text-align: center;
37
+ }
38
+
39
+ &-title {
40
+ color: $color-title;
41
+ font-size: $calendar-title-font-size;
42
+ font-weight: $calendar-title-font-weight;
43
+ line-height: 50px;
44
+ }
45
+
46
+ &-sub-title {
47
+ padding: 7px 0;
48
+ line-height: 22px;
49
+ font-size: $calendar-sub-title-font-size;
50
+ }
51
+
52
+ // 内容区域
53
+ &-content {
54
+ flex: 1;
55
+ width: 100%;
56
+ display: block;
57
+ overflow-y: auto;
58
+ }
59
+
60
+ &-pannel {
61
+ position: relative;
62
+ width: 100%;
63
+ height: auto;
64
+ display: block;
65
+ box-sizing: border-box;
66
+
67
+ .calendar-loading-tip {
68
+ height: 50px;
69
+ line-height: 50px;
70
+ text-align: center;
71
+ position: absolute;
72
+ top: -50px;
73
+ left: 0;
74
+ right: 0;
75
+ font-size: $font-size-small;
76
+ color: $color-text;
77
+ }
78
+ }
79
+
80
+ &-panel {
81
+ display: flex;
82
+ flex-direction: column;
83
+ text-align: center;
84
+ &-title {
85
+ height: 23px;
86
+ line-height: 23px;
87
+ margin: 8px 0;
88
+ }
89
+ }
90
+
91
+ &-item {
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: center;
95
+ flex-direction: column;
96
+ position: relative;
97
+ float: left;
98
+ width: $calendar-panel-item-width;
99
+ height: $calendar-day-height;
100
+ font-weight: $calendar-day-font-weight;
101
+ margin-bottom: 4px;
102
+
103
+ &-info-curr {
104
+ position: absolute;
105
+ bottom: 5px;
106
+ width: 100%;
107
+ font-size: $font-size-small;
108
+ line-height: 14px;
109
+ }
110
+
111
+ &-info {
112
+ position: absolute;
113
+ bottom: 5px;
114
+ width: 100%;
115
+ font-size: $font-size-small;
116
+ line-height: 14px;
117
+ }
118
+
119
+ &.active {
120
+ background-color: $calendar-active-background-color;
121
+ color: $color-primary-text !important;
122
+ border-radius: $calendar-day-active-border-radius;
123
+ .nut-calendar-day-info {
124
+ color: $color-primary-text;
125
+ }
126
+ }
127
+
128
+ &-prev,
129
+ &-next {
130
+ color: $calendar-disable-color !important;
131
+ .nut-calendar-day-info-curr {
132
+ display: none;
133
+ }
134
+ }
135
+ }
136
+
137
+ // 底部导航
138
+ &-footer {
139
+ display: flex;
140
+ width: 100%;
141
+ flex-direction: column;
142
+ background-color: $white;
143
+
144
+ .calendar-confirm-btn {
145
+ height: 44px;
146
+ margin: 10px 18px;
147
+ border-radius: 22px;
148
+ background: $button-primary-background-color;
149
+ color: $color-primary-text;
150
+ text-align: center;
151
+ line-height: 44px;
152
+ }
153
+ }
154
+ }
155
+
156
+ .nut-calendar-popup .nut-popup-title-right {
157
+ top: 7px !important;
158
+ }
159
+
160
+ [dir='rtl'] .nut-calendar,
161
+ .nut-rtl .nut-calendar {
162
+ &-day {
163
+ float: right;
164
+
165
+ &-active {
166
+ &.active-start {
167
+ border-top-left-radius: 0;
168
+ border-top-right-radius: $calendar-day-active-border-radius;
169
+ border-bottom-left-radius: 0;
170
+ border-bottom-right-radius: $calendar-day-active-border-radius;
171
+ }
172
+
173
+ &.active-end {
174
+ border-top-right-radius: 0;
175
+ border-top-left-radius: $calendar-day-active-border-radius;
176
+ border-bottom-right-radius: 0;
177
+ border-bottom-left-radius: $calendar-day-active-border-radius;
178
+ }
179
+ }
180
+ }
181
+ }
@@ -6,6 +6,14 @@
6
6
  touch-action: none;
7
7
  position: relative;
8
8
 
9
+ &-canmove-horizontal {
10
+ touch-action: pan-y;
11
+ }
12
+
13
+ &-canmove-vertical {
14
+ touch-action: pan-x;
15
+ }
16
+
9
17
  &-indicator {
10
18
  display: flex;
11
19
  position: absolute;
@@ -26,11 +34,13 @@
26
34
  z-index: 1;
27
35
  }
28
36
  }
37
+
29
38
  .nut-swiper-inner {
30
39
  width: 100%;
31
40
  height: 100%;
32
41
  display: flex;
33
42
  position: relative;
43
+
34
44
  &-horizontal {
35
45
  transform: translateX(var(--swiper-offset));
36
46
  }
@@ -60,6 +70,7 @@
60
70
  right: 50%;
61
71
  transform: translateX(50%);
62
72
  }
73
+
63
74
  &-indicator-vertical {
64
75
  left: auto;
65
76
  right: 12px;