@nutui/nutui-react 1.3.0 → 1.3.1-beta.0

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 (158) hide show
  1. package/dist/esm/Audio/style/index.js +4 -0
  2. package/dist/esm/Audio.js +293 -0
  3. package/dist/esm/Calendar/style/index.js +1 -2
  4. package/dist/esm/Calendar.js +80 -33
  5. package/dist/esm/CalendarItem.js +429 -231
  6. package/dist/esm/Cascader/style/index.js +2 -0
  7. package/dist/esm/Cascader.js +788 -0
  8. package/dist/esm/ConfigProvider.js +16 -0
  9. package/dist/esm/DatePicker.js +37 -6
  10. package/dist/esm/Dialog.js +9 -16
  11. package/dist/esm/Elevator.js +16 -5
  12. package/dist/esm/Grid/style/index.js +2 -0
  13. package/dist/esm/Grid.js +91 -0
  14. package/dist/esm/GridItem/style/index.js +2 -0
  15. package/dist/esm/GridItem.js +99 -0
  16. package/dist/esm/ImagePreview/style/index.js +2 -0
  17. package/dist/esm/ImagePreview.js +257 -0
  18. package/dist/esm/Menu/style/index.js +3 -0
  19. package/dist/esm/Menu.js +153 -0
  20. package/dist/esm/MenuItem/style/index.js +3 -0
  21. package/dist/esm/MenuItem.js +197 -0
  22. package/dist/esm/NoticeBar.js +3 -2
  23. package/dist/esm/Notify.js +2 -1
  24. package/dist/esm/Popover.js +4 -11
  25. package/dist/esm/Range.js +2 -45
  26. package/dist/esm/Swipe/style/index.js +2 -0
  27. package/dist/esm/Swipe.js +265 -0
  28. package/dist/esm/Swiper.js +2 -1
  29. package/dist/esm/TabPane.js +5 -33
  30. package/dist/esm/Tabs.js +6 -196
  31. package/dist/esm/TextArea.js +45 -4
  32. package/dist/esm/Toast.js +2 -1
  33. package/dist/esm/nutui-react.es.js +8 -0
  34. package/dist/esm/render-4a3856cb.js +32 -0
  35. package/dist/esm/tabpane-c957ab14.js +33 -0
  36. package/dist/esm/tabs-a48583e9.js +196 -0
  37. package/dist/esm/useClientRect-839d18c5.js +44 -0
  38. package/dist/locales/base.d.ts +16 -0
  39. package/dist/locales/base.js +1 -1
  40. package/dist/locales/en-US.js +17 -1
  41. package/dist/locales/id-ID.js +17 -1
  42. package/dist/locales/zh-CN.js +17 -1
  43. package/dist/locales/zh-TW.js +17 -1
  44. package/dist/nutui.react.es.js +2338 -530
  45. package/dist/nutui.react.umd.js +2345 -529
  46. package/dist/packages/audio/audio.scss +80 -0
  47. package/dist/packages/calendar/calendar.scss +57 -36
  48. package/dist/packages/calendaritem/calendaritem.scss +0 -191
  49. package/dist/packages/cascader/cascader.scss +69 -0
  50. package/dist/packages/grid/grid.scss +10 -0
  51. package/dist/packages/griditem/griditem.scss +103 -0
  52. package/dist/packages/imagepreview/imagepreview.scss +51 -0
  53. package/dist/packages/menu/menu.scss +72 -0
  54. package/dist/packages/menuitem/menuitem.scss +90 -0
  55. package/dist/packages/popup/popup.scss +1 -1
  56. package/dist/packages/searchbar/searchbar.scss +1 -0
  57. package/dist/packages/shortpassword/shortpassword.scss +6 -1
  58. package/dist/packages/swipe/swipe.scss +33 -0
  59. package/dist/packages/textarea/textarea.scss +16 -1
  60. package/dist/style.css +1 -1
  61. package/dist/style.es.js +1 -1
  62. package/dist/styles/font/iconfont.js +20 -18
  63. package/dist/styles/themes/default.scss +8 -0
  64. package/dist/styles/variables.scss +59 -8
  65. package/dist/types/audio/__test__/audio.spec.d.ts +1 -0
  66. package/dist/types/audio/audio.d.ts +18 -0
  67. package/dist/types/audio/audio.taro.d.ts +18 -0
  68. package/dist/types/audio/demo.d.ts +4 -0
  69. package/dist/types/audio/index.d.ts +2 -0
  70. package/dist/types/audio/index.taro.d.ts +2 -0
  71. package/dist/types/backtop/__test__/backtop.spec.d.ts +1 -0
  72. package/dist/types/calendar/__tests__/calendar.spec.d.ts +1 -0
  73. package/dist/types/calendar/calendar.d.ts +22 -2
  74. package/dist/types/calendar/demo.d.ts +1 -0
  75. package/dist/types/calendaritem/calendaritem.d.ts +21 -3
  76. package/dist/types/cascader/__tests__/cascader.spec.d.ts +1 -0
  77. package/dist/types/cascader/cascader.d.ts +25 -0
  78. package/dist/types/cascader/cascader.taro.d.ts +25 -0
  79. package/dist/types/cascader/cascaderItem.d.ts +25 -0
  80. package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
  81. package/dist/types/cascader/demo.d.ts +3 -0
  82. package/dist/types/cascader/helper.d.ts +4 -0
  83. package/dist/types/cascader/index.d.ts +2 -0
  84. package/dist/types/cascader/index.taro.d.ts +2 -0
  85. package/dist/types/cascader/tree.d.ts +12 -0
  86. package/dist/types/cascader/types.d.ts +28 -0
  87. package/dist/types/checkbox/checkbox.d.ts +2 -2
  88. package/dist/types/checkbox/checkbox.taro.d.ts +2 -2
  89. package/dist/types/checkboxgroup/checkboxgroup.d.ts +2 -2
  90. package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  91. package/dist/types/dialog/__test__/dialog.spec.d.ts +1 -0
  92. package/dist/types/dialog/config.d.ts +3 -3
  93. package/dist/types/dialog/dialog.d.ts +2 -1
  94. package/dist/types/dialog/dialog.taro.d.ts +2 -1
  95. package/dist/types/fixednav/fixednav.d.ts +2 -2
  96. package/dist/types/grid/__test__/grid.spec.d.ts +1 -0
  97. package/dist/types/grid/demo.d.ts +3 -0
  98. package/dist/types/grid/grid.d.ts +16 -0
  99. package/dist/types/grid/grid.taro.d.ts +16 -0
  100. package/dist/types/grid/index.d.ts +2 -0
  101. package/dist/types/grid/index.taro.d.ts +2 -0
  102. package/dist/types/griditem/griditem.d.ts +20 -0
  103. package/dist/types/griditem/griditem.taro.d.ts +20 -0
  104. package/dist/types/griditem/index.d.ts +2 -0
  105. package/dist/types/griditem/index.taro.d.ts +2 -0
  106. package/dist/types/icon/icon.d.ts +1 -2
  107. package/dist/types/icon/icon.taro.d.ts +1 -2
  108. package/dist/types/imagepreview/__test__/imagepreview.spec.d.ts +1 -0
  109. package/dist/types/imagepreview/demo.d.ts +3 -0
  110. package/dist/types/imagepreview/imagepreview.d.ts +26 -0
  111. package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
  112. package/dist/types/imagepreview/index.d.ts +2 -0
  113. package/dist/types/imagepreview/index.taro.d.ts +2 -0
  114. package/dist/types/input/__test__/input.spec.d.ts +1 -0
  115. package/dist/types/menu/__test__/menu.spec.d.ts +1 -0
  116. package/dist/types/menu/demo.d.ts +4 -0
  117. package/dist/types/menu/index.d.ts +2 -0
  118. package/dist/types/menu/index.taro.d.ts +2 -0
  119. package/dist/types/menu/menu.d.ts +12 -0
  120. package/dist/types/menu/menu.taro.d.ts +12 -0
  121. package/dist/types/menuitem/index.d.ts +2 -0
  122. package/dist/types/menuitem/index.taro.d.ts +2 -0
  123. package/dist/types/menuitem/menuitem.d.ts +23 -0
  124. package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
  125. package/dist/types/notify/__test__/notify.spec.d.ts +1 -0
  126. package/dist/types/notify/notify.d.ts +13 -0
  127. package/dist/types/notify/notify.taro.d.ts +13 -0
  128. package/dist/types/nutui.react.d.ts +95 -1
  129. package/dist/types/picker/doc.en.d.ts +142 -0
  130. package/dist/types/picker/picker.d.ts +2 -2
  131. package/dist/types/picker/picker.taro.d.ts +2 -2
  132. package/dist/types/popup/popup.d.ts +1 -1
  133. package/dist/types/popup/popup.taro.d.ts +1 -1
  134. package/dist/types/shortpassword/shortpassword.taro.d.ts +3 -3
  135. package/dist/types/sidenavbar/sidenavbar.d.ts +14 -2
  136. package/dist/types/sidenavbar/sidenavbar.taro.d.ts +14 -2
  137. package/dist/types/sidenavbaritem/sidenavbaritem.d.ts +10 -2
  138. package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +10 -2
  139. package/dist/types/subsidenavbar/subsidenavbar.d.ts +13 -3
  140. package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -3
  141. package/dist/types/swipe/__tests__/swipe.spec.d.ts +1 -0
  142. package/dist/types/swipe/demo.d.ts +3 -0
  143. package/dist/types/swipe/index.d.ts +2 -0
  144. package/dist/types/swipe/index.taro.d.ts +2 -0
  145. package/dist/types/swipe/swipe.d.ts +41 -0
  146. package/dist/types/swipe/swipe.taro.d.ts +41 -0
  147. package/dist/types/swiper/swiper.d.ts +1 -2
  148. package/dist/types/swiperitem/swiperitem.d.ts +1 -2
  149. package/dist/types/table/table.d.ts +2 -1
  150. package/dist/types/table/table.taro.d.ts +2 -1
  151. package/dist/types/table/types.d.ts +1 -1
  152. package/dist/types/textarea/__test__/textarea.spec.d.ts +1 -0
  153. package/dist/types/toast/toast.d.ts +21 -0
  154. package/dist/types/toast/toast.taro.d.ts +18 -0
  155. package/dist/types/virtuallist/type.d.ts +1 -1
  156. package/dist/types/virtuallist/virtuallist.d.ts +2 -1
  157. package/dist/types/virtuallist/virtuallist.taro.d.ts +2 -1
  158. package/package.json +4 -4
@@ -0,0 +1,80 @@
1
+ .nut-theme-dark {
2
+ .nut-audio__icon {
3
+ .nut-audio__icon-box {
4
+ background: $dark-color;
5
+ }
6
+ }
7
+ }
8
+ .nut-audio {
9
+ &__icon {
10
+ position: relative;
11
+ display: inline-block;
12
+ &-box {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ width: 30px;
17
+ height: 30px;
18
+ background: #fff;
19
+ border-radius: 50%;
20
+ box-shadow: 0 0 8px rgba($color: $text-color, $alpha: 0.5);
21
+
22
+ .nut-icon-am-rotate {
23
+ transform: rotate((360));
24
+ animation-timing-function: ease-in-out;
25
+ }
26
+ }
27
+
28
+ .nut-audio__icon-stop {
29
+ position: relative;
30
+ &::after {
31
+ position: absolute;
32
+ left: 50%;
33
+ top: 50%;
34
+ transform: translateX(-50%);
35
+ content: '';
36
+ height: 2px;
37
+ width: 30px;
38
+ background: $disable-color;
39
+ transform: rotate(45deg);
40
+ transform-origin: 8px -18px;
41
+ }
42
+ }
43
+ }
44
+
45
+ &__progress {
46
+ display: flex;
47
+ align-items: center;
48
+ width: 100%;
49
+ margin: 0px auto;
50
+ padding: 10px 0;
51
+
52
+ &-bar-wrapper {
53
+ flex: 1;
54
+ margin: 0 10px;
55
+ }
56
+ .time {
57
+ min-width: 50px;
58
+ font-size: 12px;
59
+ text-align: center;
60
+ }
61
+ .nut-range-button {
62
+ width: 8px;
63
+ height: 8px;
64
+ }
65
+ }
66
+ .custom-button-group {
67
+ .nut-button--primary {
68
+ margin: 0 5px;
69
+ }
70
+ }
71
+ .custom-button-group-disable {
72
+ .nut-button--primary {
73
+ margin: 0 5px;
74
+ pointer-events: none;
75
+ }
76
+ }
77
+ .disable {
78
+ color: blue;
79
+ }
80
+ }
@@ -2,18 +2,14 @@
2
2
  position: relative;
3
3
  display: flex;
4
4
  flex: 1;
5
- height: 728px;
6
- padding-top: 132px;
7
- padding-bottom: 78px;
8
5
  color: $calendar-base-color;
9
6
  font-size: $calendar-base-font;
10
7
  background-color: $white;
11
8
  overflow: hidden;
9
+ height: 100%;
10
+ flex-direction: column;
12
11
 
13
12
  &.nut-calendar-tile {
14
- padding-top: 46px;
15
- padding-bottom: 0;
16
-
17
13
  .nut-calendar-header {
18
14
  .calendar-title {
19
15
  font-size: $calendar-base-font;
@@ -24,6 +20,9 @@
24
20
  .nut-calendar-taro {
25
21
  height: 60vh;
26
22
  }
23
+ .popup-box {
24
+ height: 100%;
25
+ }
27
26
  .nut-calendar-content {
28
27
  overflow-y: auto;
29
28
  }
@@ -33,41 +32,39 @@
33
32
 
34
33
  // 头部导航
35
34
  .nut-calendar-header {
36
- position: absolute;
37
- top: -1px;
38
- left: 0;
39
- right: 0;
40
35
  display: flex;
41
36
  flex-direction: column;
42
37
  text-align: center;
43
38
  padding-top: 1px;
44
39
  background-color: $white;
45
- z-index: 1;
46
40
 
47
41
  .calendar-title {
48
- padding-top: 22px;
49
42
  font-size: $calendar-title-font;
50
- line-height: 25px;
51
- border-radius: 12px 12px 0 0;
43
+ font-weight: $calendar-title-font-weight;
44
+ line-height: 44px;
52
45
  }
53
46
 
54
47
  .calendar-curr-month {
55
- padding: 10px 0 7px;
48
+ padding: 7px 0;
56
49
  line-height: 22px;
50
+ font-size: $calendar-sub-title-font;
51
+ }
52
+ .calendar-top-slot {
53
+ height: $calendar-top-slot-height;
57
54
  }
58
55
 
59
56
  .calendar-weeks {
60
57
  display: flex;
61
58
  align-items: center;
62
59
  justify-content: space-around;
63
- height: 46px;
60
+ height: 36px;
64
61
  border-radius: 0px 0px 12px 12px;
65
62
  box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
66
63
 
67
64
  .calendar-week-item {
68
65
  &:first-of-type,
69
66
  &:last-of-type {
70
- color: $calendar-primary-color;
67
+ color: $calendar-day67-font-color;
71
68
  }
72
69
  }
73
70
  }
@@ -76,13 +73,17 @@
76
73
  // 月份
77
74
  .nut-calendar-content {
78
75
  flex: 1;
79
-
76
+ width: 100%;
77
+ display: block;
80
78
  .calendar-months-panel {
81
79
  position: relative;
82
80
  width: 100%;
83
81
  height: auto;
84
82
  display: block;
85
-
83
+ box-sizing: border-box;
84
+ .viewArea {
85
+ display: block;
86
+ }
86
87
  .calendar-month {
87
88
  display: flex;
88
89
  flex-direction: column;
@@ -115,42 +116,62 @@
115
116
 
116
117
  .calendar-month-con {
117
118
  overflow: hidden;
118
-
119
119
  .calendar-month-item {
120
120
  .calendar-month-day:nth-child(7n + 0),
121
121
  .calendar-month-day:nth-child(7n + 1) {
122
- color: $calendar-primary-color;
122
+ color: $calendar-day67-font-color;
123
123
  }
124
124
  }
125
125
 
126
126
  .calendar-month-day {
127
127
  float: left;
128
- width: 14.28%;
129
- height: 64px;
128
+ width: $calendar-day-width;
129
+ height: $calendar-day-height;
130
+ font-weight: $calendar-day-font-weight;
130
131
  display: flex;
131
132
  align-items: center;
132
133
  justify-content: center;
133
134
  flex-direction: column;
134
135
  position: relative;
135
136
 
136
- .curr-tips,
137
+ .calendar-curr-tips {
138
+ position: absolute;
139
+ width: 100%;
140
+ }
141
+
142
+ .calendar-curr-tip-curr {
143
+ position: absolute;
144
+ bottom: 6px;
145
+ width: 100%;
146
+ font-size: 12px;
147
+ line-height: 14px;
148
+ }
137
149
  .calendar-day-tip {
138
150
  position: absolute;
139
- top: 10px;
151
+ bottom: 6px;
140
152
  width: 100%;
141
- font-size: 11px;
142
- line-height: 12px;
153
+ font-size: 12px;
154
+ line-height: 14px;
143
155
  color: $calendar-primary-color;
144
156
  }
157
+ .calendar-curr-tips-top {
158
+ top: 6px;
159
+ }
160
+ .calendar-curr-tips-bottom {
161
+ bottom: 6px;
162
+ }
145
163
 
146
164
  &-active {
147
165
  background-color: $calendar-primary-color;
148
166
  color: $white !important;
167
+ border-radius: $calendar-day-active-border-radius;
149
168
 
150
- .curr-tips {
169
+ .calendar-curr-tips {
170
+ visibility: hidden;
171
+ }
172
+ .calendar-curr-tip-curr {
151
173
  visibility: hidden;
152
174
  }
153
-
154
175
  .calendar-day-tip {
155
176
  color: $white;
156
177
  }
@@ -162,10 +183,11 @@
162
183
 
163
184
  &-choose {
164
185
  background-color: $calendar-choose-color;
186
+ color: $calendar-choose-font-color;
165
187
  }
166
188
 
167
189
  .calendar-day {
168
- padding: 4px 0;
190
+ padding: 2px 0;
169
191
  font-size: $calendar-day-font;
170
192
  }
171
193
  }
@@ -175,19 +197,15 @@
175
197
 
176
198
  // 底部导航
177
199
  .nut-calendar-footer {
178
- position: absolute;
179
- left: 0;
180
- right: 0;
181
- bottom: -1px;
182
200
  display: flex;
183
- height: 78px;
201
+ height: 62px;
184
202
  width: 100%;
185
203
  background-color: $white;
186
204
 
187
205
  .calendar-confirm-btn {
188
206
  height: 44px;
189
207
  width: 100%;
190
- margin: 14px 18px;
208
+ margin: 10px 18px;
191
209
  border-radius: 22px;
192
210
  background: $button-primary-background-color;
193
211
  color: $white;
@@ -196,3 +214,6 @@
196
214
  }
197
215
  }
198
216
  }
217
+ .nutui-popup__close-icon {
218
+ top: 7px !important;
219
+ }
@@ -1,191 +0,0 @@
1
- .nut-calendar {
2
- position: relative;
3
- display: flex;
4
- flex: 1;
5
- height: 518px;
6
- padding-top: 132px;
7
- padding-bottom: 78px;
8
- color: $calendar-base-color;
9
- font-size: $calendar-base-font;
10
- background-color: $white;
11
- overflow: hidden;
12
-
13
- &.nut-calendar-tile {
14
- height: 100%;
15
- padding-top: 46px;
16
- padding-bottom: 0;
17
-
18
- .nut-calendar-header {
19
- .calendar-title {
20
- font-size: $calendar-base-font;
21
- }
22
- }
23
- }
24
-
25
- &.nut-calendar-nofooter {
26
- padding-bottom: 0;
27
- }
28
-
29
- // 头部导航
30
- .nut-calendar-header {
31
- position: absolute;
32
- top: -1px;
33
- left: 0;
34
- right: 0;
35
- display: flex;
36
- flex-direction: column;
37
- text-align: center;
38
- padding-top: 1px;
39
- background-color: $white;
40
- z-index: 1;
41
-
42
- .calendar-title {
43
- padding-top: 22px;
44
- font-size: $calendar-title-font;
45
- line-height: 25px;
46
- border-radius: 12px 12px 0 0;
47
- }
48
-
49
- .calendar-curr-month {
50
- padding: 10px 0 7px;
51
- line-height: 22px;
52
- }
53
-
54
- .calendar-weeks {
55
- display: flex;
56
- align-items: center;
57
- justify-content: space-around;
58
- height: 46px;
59
- box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
60
-
61
- .calendar-week-item {
62
- &:first-of-type,
63
- &:last-of-type {
64
- color: $calendar-primary-color;
65
- }
66
- }
67
- }
68
- }
69
-
70
- // 月份
71
- .nut-calendar-content {
72
- flex: 1;
73
-
74
- .calendar-months-panel {
75
- position: relative;
76
- width: 100%;
77
- height: auto;
78
- display: block;
79
-
80
- .calendar-month {
81
- display: flex;
82
- flex-direction: column;
83
- text-align: center;
84
- }
85
-
86
- div:nth-of-type(2) {
87
- .calendar-month-title {
88
- padding-top: 0;
89
- }
90
- }
91
-
92
- .calendar-loading-tip {
93
- height: 50px;
94
- line-height: 50px;
95
- text-align: center;
96
- position: absolute;
97
- top: -50px;
98
- left: 0;
99
- right: 0;
100
- font-size: $calendar-text-font;
101
- color: $text-color;
102
- }
103
-
104
- .calendar-month-title {
105
- height: 23px;
106
- line-height: 23px;
107
- margin: 8px 0;
108
- }
109
-
110
- .calendar-month-con {
111
- overflow: hidden;
112
-
113
- .calendar-month-item {
114
- .calendar-month-day:nth-child(7n + 0),
115
- .calendar-month-day:nth-child(7n + 1) {
116
- color: $calendar-primary-color;
117
- }
118
- }
119
-
120
- .calendar-month-day {
121
- float: left;
122
- width: 14.28%;
123
- height: 64px;
124
- display: flex;
125
- align-items: center;
126
- justify-content: center;
127
- flex-direction: column;
128
- position: relative;
129
-
130
- .calendar-day-tip {
131
- position: absolute;
132
- top: 10px;
133
- width: 100%;
134
- font-size: 16px;
135
- line-height: 12px;
136
- color: $calendar-primary-color;
137
- }
138
-
139
- &-active {
140
- background-color: $calendar-primary-color;
141
- color: $white !important;
142
-
143
- .calendar-curr-tips {
144
- // visibility: hidden;
145
- }
146
-
147
- .calendar-day-tip {
148
- color: $white;
149
- }
150
- }
151
-
152
- &-disabled {
153
- color: $calendar-disable-color !important;
154
- }
155
-
156
- &-choose {
157
- background-color: $calendar-choose-color;
158
- }
159
-
160
- .calendar-day {
161
- padding: 4px 0;
162
- font-size: $calendar-day-font;
163
- }
164
- }
165
- }
166
- }
167
- }
168
-
169
- // 底部导航
170
- .nut-calendar-footer {
171
- position: absolute;
172
- left: 0;
173
- right: 0;
174
- bottom: -1px;
175
- display: flex;
176
- height: 78px;
177
- width: 100%;
178
- background-color: $white;
179
-
180
- .calendar-confirm-btn {
181
- height: 44px;
182
- width: 100%;
183
- margin: 14px 18px;
184
- border-radius: 22px;
185
- background: $button-primary-background-color;
186
- color: $white;
187
- text-align: center;
188
- line-height: 44px;
189
- }
190
- }
191
- }
@@ -0,0 +1,69 @@
1
+ .nut-cascader {
2
+ width: 100%;
3
+ font-size: $cascader-font-size;
4
+ line-height: $cascader-line-height;
5
+ &__title {
6
+ display: flex;
7
+ justify-content: center;
8
+ align-items: center;
9
+ padding: $cascader-title-padding;
10
+ text-align: center;
11
+ font-weight: bold;
12
+ line-height: $cascader-title-line-height;
13
+ color: #1a1a1a;
14
+ font-size: $cascader-title-font-size;
15
+ }
16
+ .nut-tabs__titles {
17
+ padding: $cascader-tabs-item-padding;
18
+ background: #fff;
19
+ }
20
+ .nut-tabs__titles-item {
21
+ flex: initial;
22
+ min-width: auto;
23
+ width: auto;
24
+ padding: $cascader-tabs-item-padding;
25
+ white-space: nowrap;
26
+ }
27
+ .nut-tabpane {
28
+ padding: 0;
29
+ }
30
+ &-pane {
31
+ display: block;
32
+ padding: 0;
33
+ margin: 0;
34
+ width: 100%;
35
+ padding-top: $cascader-pane-paddingTop;
36
+ height: $cascader-pane-height;
37
+ overflow-y: auto;
38
+ -webkit-overflow-scrolling: touch;
39
+ }
40
+ &-item {
41
+ display: flex;
42
+ align-items: center;
43
+ padding: $cascader-item-padding;
44
+ margin: 0;
45
+ cursor: pointer;
46
+ font-size: $cascader-item-font-size;
47
+ color: $cascader-item-color;
48
+ &.disabled {
49
+ opacity: 0.6;
50
+ cursor: not-allowed;
51
+ }
52
+ &.active {
53
+ &:not(.disabled) {
54
+ color: $cascader-item-active-color;
55
+ }
56
+ .nut-cascader-item__icon-check {
57
+ visibility: visible;
58
+ color: $cascader-item-active-color;
59
+ }
60
+ }
61
+ }
62
+ &-item__title {
63
+ flex: 1;
64
+ }
65
+ .nut-icon-checklist {
66
+ margin-left: $cascader-icon-checklist-marginLeft;
67
+ visibility: hidden;
68
+ }
69
+ }
@@ -0,0 +1,10 @@
1
+ .nut-grid {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ border: 0 solid $grid-border-color;
5
+
6
+ &__border {
7
+ border-top-width: 1px;
8
+ border-left-width: 1px;
9
+ }
10
+ }
@@ -0,0 +1,103 @@
1
+ .nut-theme-dark {
2
+ .nut-grid-item {
3
+ &__content {
4
+ background: $dark-background;
5
+ color: $dark-color;
6
+ }
7
+ &__text {
8
+ color: $dark-color;
9
+ }
10
+ }
11
+ }
12
+ .nut-grid-item {
13
+ position: relative;
14
+ box-sizing: border-box;
15
+
16
+ $block: &;
17
+
18
+ &__text {
19
+ color: $grid-item-text-color;
20
+ font-size: $grid-item-text-font-size;
21
+ line-height: 1.5;
22
+ word-break: break-all;
23
+ margin: $grid-item-text-margin 0 0 0;
24
+ }
25
+
26
+ &__content {
27
+ display: flex;
28
+ flex-direction: column;
29
+ box-sizing: border-box;
30
+ height: 100%;
31
+ padding: $grid-item-content-padding;
32
+ background: $grid-item-content-bg-color;
33
+ border: 0 solid $grid-border-color;
34
+
35
+ &--border {
36
+ border-right-width: 1px;
37
+ border-bottom-width: 1px;
38
+ }
39
+
40
+ &--surround {
41
+ border-top-width: 1px;
42
+ border-left-width: 1px;
43
+ }
44
+
45
+ &--center {
46
+ align-items: center;
47
+ justify-content: center;
48
+ }
49
+
50
+ &--square {
51
+ position: absolute;
52
+ top: 0;
53
+ right: 0;
54
+ left: 0;
55
+ }
56
+
57
+ &--reverse {
58
+ flex-direction: column-reverse;
59
+
60
+ #{$block}__text {
61
+ margin: 0 0 $grid-item-text-margin;
62
+ }
63
+ }
64
+
65
+ &--horizontal {
66
+ flex-direction: row;
67
+
68
+ #{$block}__text {
69
+ margin: 0 0 0 $grid-item-text-margin;
70
+ }
71
+ }
72
+
73
+ &--horizontal#{&}--reverse {
74
+ flex-direction: row-reverse;
75
+ #{$block}__text {
76
+ margin: 0 $grid-item-text-margin 0 0;
77
+ }
78
+ }
79
+
80
+ &--clickable {
81
+ cursor: pointer;
82
+
83
+ &::before {
84
+ position: absolute;
85
+ top: 50%;
86
+ left: 50%;
87
+ width: 100%;
88
+ height: 100%;
89
+ background-color: $black;
90
+ border: inherit;
91
+ border-color: $black;
92
+ border-radius: inherit;
93
+ transform: translate(-50%, -50%);
94
+ opacity: 0;
95
+ content: ' ';
96
+ }
97
+
98
+ &:active::before {
99
+ opacity: 0.1;
100
+ }
101
+ }
102
+ }
103
+ }
@@ -0,0 +1,51 @@
1
+ .nut-imagepreview {
2
+ width: 100%;
3
+
4
+ &-swiper {
5
+ height: 327px;
6
+ width: 100vw;
7
+ background-color: transparent;
8
+ }
9
+
10
+ &-img {
11
+ width: 100%;
12
+ height: 100%;
13
+ object-fit: contain;
14
+ }
15
+
16
+ &-index {
17
+ position: fixed;
18
+ z-index: 2002;
19
+ top: 50px;
20
+ text-align: center;
21
+ left: 0;
22
+ right: 0;
23
+ background: transparent;
24
+ color: #fff;
25
+
26
+ .arrow {
27
+ position: absolute;
28
+ left: 15px;
29
+ transform: rotateZ(180deg);
30
+ }
31
+ }
32
+
33
+ .popup-bg {
34
+ background: rgba(0, 0, 0, 0.9);
35
+ }
36
+
37
+ .popup-box {
38
+ height: 100%;
39
+ overflow: visible;
40
+ background-color: transparent;
41
+ }
42
+ }
43
+ .custom-pop {
44
+ height: 100%;
45
+ background: transparent !important;
46
+ display: flex;
47
+ align-items: center;
48
+ }
49
+ .nut-imagepreview-swiper .nut-swiper-item {
50
+ height: 327px;
51
+ }