@bifrostui/react 1.1.1 → 1.1.5

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 (193) hide show
  1. package/dist/ActionSheet/ActionSheet.less +31 -0
  2. package/dist/ActionSheet/ActionSheetItem.less +62 -0
  3. package/dist/Alert/index.less +112 -0
  4. package/dist/Avatar/Avatar.less +52 -0
  5. package/dist/Avatar/AvatarGroup.less +39 -0
  6. package/dist/Backdrop/{Backdrop.css → Backdrop.less} +4 -3
  7. package/dist/Badge/Badge.less +118 -0
  8. package/dist/Button/Button.less +244 -0
  9. package/dist/Calendar/Calendar.less +126 -0
  10. package/{es/Card/Card.css → dist/Card/Card.less} +1 -0
  11. package/dist/Card/CardHeader.less +53 -0
  12. package/dist/Checkbox/Checkbox.less +55 -0
  13. package/dist/CitySelector/CitySelector.less +122 -0
  14. package/dist/CitySelector/CitySelectorCore.js +1 -2
  15. package/{es/CitySelector/Selector/index.css → dist/CitySelector/Selector/index.less} +2 -0
  16. package/dist/Countdown/Countdown.less +39 -0
  17. package/dist/Divider/Divider.less +50 -0
  18. package/dist/Drawer/Drawer.less +40 -0
  19. package/dist/IconButton/IconButton.less +167 -0
  20. package/dist/Image/index.less +40 -0
  21. package/dist/Input/Input.less +72 -0
  22. package/dist/List/{List.css → List.less} +1 -0
  23. package/dist/List/{ListItem.css → ListItem.less} +17 -6
  24. package/dist/List/{ListItemContent.css → ListItemContent.less} +7 -2
  25. package/dist/List/{ListItemFooter.css → ListItemFooter.less} +4 -3
  26. package/dist/Loading/Loading.less +40 -0
  27. package/dist/Modal/{Modal.css → Modal.less} +8 -6
  28. package/dist/Modal/Modal.miniapp.d.ts +1 -1
  29. package/dist/NavBar/NavBar.less +67 -0
  30. package/dist/Picker/Picker.less +62 -0
  31. package/dist/Picker/PickerPanel.less +67 -0
  32. package/dist/Picker/utils.d.ts +1 -1
  33. package/dist/Progress/Progress.less +24 -0
  34. package/dist/Radio/Radio.less +81 -0
  35. package/dist/Rating/Rating.less +64 -0
  36. package/dist/ScrollView/{ScrollView.css → ScrollView.less} +4 -0
  37. package/dist/Select/Select.less +105 -0
  38. package/dist/Skeleton/Skeleton.less +72 -0
  39. package/dist/Slider/Slider.less +108 -0
  40. package/dist/Stack/demo/index.less +27 -0
  41. package/dist/Steps/Step.less +228 -0
  42. package/{es/Steps/Steps.css → dist/Steps/Steps.less} +5 -3
  43. package/dist/Swiper/Swiper.less +25 -0
  44. package/dist/Switch/Switch.less +177 -0
  45. package/dist/TabBar/TabBarItem.less +54 -0
  46. package/dist/Tabs/Tab.js +1 -1
  47. package/dist/Tabs/Tab.less +60 -0
  48. package/dist/Tabs/TabPanel.less +11 -0
  49. package/dist/Tabs/Tabs.less +77 -0
  50. package/dist/Tag/Tag.less +119 -0
  51. package/dist/Tag/TagGroup.less +52 -0
  52. package/dist/TextArea/{TextArea.css → TextArea.less} +27 -19
  53. package/es/ActionSheet/ActionSheet.less +31 -0
  54. package/es/ActionSheet/ActionSheetItem.less +62 -0
  55. package/es/Alert/index.less +112 -0
  56. package/es/Avatar/Avatar.less +52 -0
  57. package/es/Avatar/AvatarGroup.less +39 -0
  58. package/es/Backdrop/{Backdrop.css → Backdrop.less} +4 -3
  59. package/es/Badge/Badge.less +118 -0
  60. package/es/Button/Button.less +244 -0
  61. package/es/Calendar/Calendar.less +126 -0
  62. package/{dist/Card/Card.css → es/Card/Card.less} +1 -0
  63. package/es/Card/CardHeader.less +53 -0
  64. package/es/Checkbox/Checkbox.less +55 -0
  65. package/es/CitySelector/CitySelector.less +122 -0
  66. package/es/CitySelector/CitySelectorCore.js +2 -3
  67. package/{dist/CitySelector/Selector/index.css → es/CitySelector/Selector/index.less} +2 -0
  68. package/es/Countdown/Countdown.less +39 -0
  69. package/es/Divider/Divider.less +50 -0
  70. package/es/Drawer/Drawer.less +40 -0
  71. package/es/IconButton/IconButton.less +167 -0
  72. package/es/Image/index.less +40 -0
  73. package/es/Input/Input.less +72 -0
  74. package/es/List/{List.css → List.less} +1 -0
  75. package/es/List/{ListItem.css → ListItem.less} +17 -6
  76. package/es/List/{ListItemContent.css → ListItemContent.less} +7 -2
  77. package/es/List/{ListItemFooter.css → ListItemFooter.less} +4 -3
  78. package/es/Loading/Loading.less +40 -0
  79. package/es/Modal/{Modal.css → Modal.less} +8 -6
  80. package/es/Modal/Modal.miniapp.d.ts +1 -1
  81. package/es/NavBar/NavBar.less +67 -0
  82. package/es/Picker/Picker.less +62 -0
  83. package/es/Picker/PickerPanel.less +67 -0
  84. package/es/Picker/utils.d.ts +1 -1
  85. package/es/Progress/Progress.less +24 -0
  86. package/es/Radio/Radio.less +81 -0
  87. package/es/Rating/Rating.less +64 -0
  88. package/es/ScrollView/{ScrollView.css → ScrollView.less} +4 -0
  89. package/es/Select/Select.less +105 -0
  90. package/es/Skeleton/Skeleton.less +72 -0
  91. package/es/Slider/Slider.less +108 -0
  92. package/es/Stack/demo/index.less +27 -0
  93. package/es/Steps/Step.less +228 -0
  94. package/{dist/Steps/Steps.css → es/Steps/Steps.less} +5 -3
  95. package/es/Swiper/Swiper.less +25 -0
  96. package/es/Switch/Switch.less +177 -0
  97. package/es/TabBar/TabBarItem.less +54 -0
  98. package/es/Tabs/Tab.js +1 -1
  99. package/es/Tabs/Tab.less +60 -0
  100. package/es/Tabs/TabPanel.less +11 -0
  101. package/es/Tabs/Tabs.less +77 -0
  102. package/es/Tag/Tag.less +119 -0
  103. package/es/Tag/TagGroup.less +52 -0
  104. package/es/TextArea/{TextArea.css → TextArea.less} +27 -19
  105. package/package.json +6 -6
  106. package/dist/ActionSheet/ActionSheet.css +0 -27
  107. package/dist/ActionSheet/ActionSheetItem.css +0 -51
  108. package/dist/Alert/index.css +0 -89
  109. package/dist/Avatar/Avatar.css +0 -43
  110. package/dist/Avatar/AvatarGroup.css +0 -31
  111. package/dist/Badge/Badge.css +0 -95
  112. package/dist/Button/Button.css +0 -200
  113. package/dist/Calendar/Calendar.css +0 -105
  114. package/dist/Card/CardHeader.css +0 -45
  115. package/dist/Checkbox/Checkbox.css +0 -45
  116. package/dist/CitySelector/CitySelector.css +0 -102
  117. package/dist/Countdown/Countdown.css +0 -28
  118. package/dist/Divider/Divider.css +0 -41
  119. package/dist/Drawer/Drawer.css +0 -35
  120. package/dist/IconButton/IconButton.css +0 -130
  121. package/dist/Image/index.css +0 -35
  122. package/dist/Input/Input.css +0 -59
  123. package/dist/Loading/Loading.css +0 -31
  124. package/dist/NavBar/NavBar.css +0 -57
  125. package/dist/Picker/Picker.css +0 -53
  126. package/dist/Picker/PickerPanel.css +0 -54
  127. package/dist/Progress/Progress.css +0 -22
  128. package/dist/Radio/Radio.css +0 -65
  129. package/dist/Rating/Rating.css +0 -52
  130. package/dist/Select/Select.css +0 -89
  131. package/dist/Skeleton/Skeleton.css +0 -54
  132. package/dist/Slider/Slider.css +0 -95
  133. package/dist/Stack/demo/index.css +0 -23
  134. package/dist/Steps/Step.css +0 -174
  135. package/dist/Swiper/Swiper.css +0 -20
  136. package/dist/Switch/Switch.css +0 -127
  137. package/dist/TabBar/TabBarItem.css +0 -38
  138. package/dist/Tabs/Tab.css +0 -52
  139. package/dist/Tabs/TabPanel.css +0 -9
  140. package/dist/Tabs/Tabs.css +0 -56
  141. package/dist/Tag/Tag.css +0 -97
  142. package/dist/Tag/TagGroup.css +0 -43
  143. package/es/ActionSheet/ActionSheet.css +0 -27
  144. package/es/ActionSheet/ActionSheetItem.css +0 -51
  145. package/es/Alert/index.css +0 -89
  146. package/es/Avatar/Avatar.css +0 -43
  147. package/es/Avatar/AvatarGroup.css +0 -31
  148. package/es/Badge/Badge.css +0 -95
  149. package/es/Button/Button.css +0 -200
  150. package/es/Calendar/Calendar.css +0 -105
  151. package/es/Card/CardHeader.css +0 -45
  152. package/es/Checkbox/Checkbox.css +0 -45
  153. package/es/CitySelector/CitySelector.css +0 -102
  154. package/es/Countdown/Countdown.css +0 -28
  155. package/es/Divider/Divider.css +0 -41
  156. package/es/Drawer/Drawer.css +0 -35
  157. package/es/IconButton/IconButton.css +0 -130
  158. package/es/Image/index.css +0 -35
  159. package/es/Input/Input.css +0 -59
  160. package/es/Loading/Loading.css +0 -31
  161. package/es/NavBar/NavBar.css +0 -57
  162. package/es/Picker/Picker.css +0 -53
  163. package/es/Picker/PickerPanel.css +0 -54
  164. package/es/Progress/Progress.css +0 -22
  165. package/es/Radio/Radio.css +0 -65
  166. package/es/Rating/Rating.css +0 -52
  167. package/es/Select/Select.css +0 -89
  168. package/es/Skeleton/Skeleton.css +0 -54
  169. package/es/Slider/Slider.css +0 -95
  170. package/es/Stack/demo/index.css +0 -23
  171. package/es/Steps/Step.css +0 -174
  172. package/es/Swiper/Swiper.css +0 -20
  173. package/es/Switch/Switch.css +0 -127
  174. package/es/TabBar/TabBarItem.css +0 -38
  175. package/es/Tabs/Tab.css +0 -52
  176. package/es/Tabs/TabPanel.css +0 -9
  177. package/es/Tabs/Tabs.css +0 -56
  178. package/es/Tag/Tag.css +0 -97
  179. package/es/Tag/TagGroup.css +0 -43
  180. /package/dist/Card/{CardContent.css → CardContent.less} +0 -0
  181. /package/dist/Card/{CardFooter.css → CardFooter.less} +0 -0
  182. /package/dist/CitySelector/{miniapp.css → miniapp.less} +0 -0
  183. /package/dist/List/{ListItemExtra.css → ListItemExtra.less} +0 -0
  184. /package/dist/List/{ListItemHeader.css → ListItemHeader.less} +0 -0
  185. /package/dist/Stack/{Stack.css → Stack.less} +0 -0
  186. /package/dist/TabBar/{TabBar.css → TabBar.less} +0 -0
  187. /package/es/Card/{CardContent.css → CardContent.less} +0 -0
  188. /package/es/Card/{CardFooter.css → CardFooter.less} +0 -0
  189. /package/es/CitySelector/{miniapp.css → miniapp.less} +0 -0
  190. /package/es/List/{ListItemExtra.css → ListItemExtra.less} +0 -0
  191. /package/es/List/{ListItemHeader.css → ListItemHeader.less} +0 -0
  192. /package/es/Stack/{Stack.css → Stack.less} +0 -0
  193. /package/es/TabBar/{TabBar.css → TabBar.less} +0 -0
@@ -0,0 +1,177 @@
1
+ @duration: 0.3s;
2
+
3
+ .switch-bg(@color) {
4
+ background-color: var(~'--bui-color-@{color}');
5
+ }
6
+
7
+ .bui-switch {
8
+ --bg-color: #ccc;
9
+ position: relative;
10
+ display: inline-block;
11
+ box-sizing: border-box;
12
+ padding: 0;
13
+ vertical-align: middle;
14
+ border-radius: 15px;
15
+ background-color: var(--bg-color);
16
+ transition: all @duration cubic-bezier(0.35, 0, 0.25, 1);
17
+ font-family: var(--bui-font-family);
18
+
19
+ &::after {
20
+ position: absolute;
21
+ left: 2px;
22
+ top: 2px;
23
+ border-radius: 50%;
24
+ background-color: #fff;
25
+ content: ' ';
26
+ cursor: pointer;
27
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
28
+ transition: left @duration cubic-bezier(0.35, 0, 0.25, 1);
29
+ animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
30
+ animation-duration: @duration;
31
+ }
32
+
33
+ &:focus {
34
+ outline: none;
35
+ }
36
+
37
+ // 尺寸
38
+ &-small {
39
+ width: 24px;
40
+ height: 16px;
41
+
42
+ .bui-switch-inner {
43
+ left: calc(100% - 10px);
44
+ font-size: 9px;
45
+ }
46
+
47
+ &::after {
48
+ width: 12px;
49
+ height: 12px;
50
+ left: 2px;
51
+ top: 2px;
52
+ }
53
+
54
+ &.bui-switch-checked {
55
+ &::after {
56
+ left: calc(100% - 14px);
57
+ }
58
+
59
+ .bui-switch-inner {
60
+ left: 2px;
61
+ }
62
+ }
63
+ }
64
+
65
+ &-medium {
66
+ width: 44px;
67
+ height: 22px;
68
+
69
+ &::after {
70
+ width: 18px;
71
+ height: 18px;
72
+ }
73
+
74
+ &.bui-switch-checked {
75
+ &::after {
76
+ left: calc(100% - 20px);
77
+ }
78
+
79
+ .bui-switch-inner {
80
+ left: var(--bui-spacing-sm);
81
+ }
82
+ }
83
+ }
84
+
85
+ &-large {
86
+ width: 51px;
87
+ height: 30px;
88
+
89
+ .bui-switch-inner {
90
+ left: calc(100% - 22px);
91
+ }
92
+
93
+ &::after {
94
+ width: 24px;
95
+ height: 24px;
96
+ left: 3px;
97
+ top: 3px;
98
+ }
99
+
100
+ &.bui-switch-checked {
101
+ &::after {
102
+ left: calc(100% - 27px);
103
+ }
104
+
105
+ .bui-switch-inner {
106
+ left: var(--bui-spacing-sm);
107
+ }
108
+ }
109
+ }
110
+
111
+ // 颜色
112
+ &-primary {
113
+ &.bui-switch-checked {
114
+ .switch-bg(primary);
115
+ }
116
+ }
117
+
118
+ &-info {
119
+ &.bui-switch-checked {
120
+ .switch-bg(info);
121
+ }
122
+ }
123
+
124
+ &-success {
125
+ &.bui-switch-checked {
126
+ .switch-bg(success);
127
+ }
128
+ }
129
+
130
+ &-warning {
131
+ &.bui-switch-checked {
132
+ .switch-bg(warning);
133
+ }
134
+ }
135
+
136
+ &-danger {
137
+ &.bui-switch-checked {
138
+ .switch-bg(danger);
139
+ }
140
+ }
141
+
142
+ &-inner {
143
+ position: absolute;
144
+ left: calc(100% - 20px);
145
+ color: var(--bui-color-white);
146
+ font-size: var(--bui-text-size-3);
147
+ height: 100%;
148
+ display: flex;
149
+ align-items: center;
150
+
151
+ .bui-svg-icon {
152
+ position: absolute;
153
+ top: 50%;
154
+ transform: translateY(-50%);
155
+ }
156
+ }
157
+
158
+ &-disabled {
159
+ pointer-events: none;
160
+ opacity: 0.5;
161
+
162
+ &::after {
163
+ animation-name: none;
164
+ cursor: not-allowed;
165
+ }
166
+ }
167
+
168
+ &-input {
169
+ opacity: 0;
170
+ width: 100%;
171
+ height: 100%;
172
+ margin: 0;
173
+ position: absolute;
174
+ z-index: 1;
175
+ cursor: pointer;
176
+ }
177
+ }
@@ -0,0 +1,54 @@
1
+ .bui-tab-bar-color(@color) {
2
+ color: var(~'--bui-color-@{color}');
3
+ }
4
+
5
+ .bui-tab-bar-item {
6
+ --bui-tab-bar-color: var(
7
+ --bui-tab-bar-default-color,
8
+ var(--bui-color-fg-default)
9
+ );
10
+
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ flex-direction: column;
15
+ flex: 1;
16
+ color: var(--bui-tab-bar-color);
17
+ font-family: var(--bui-font-family);
18
+
19
+ &-primary {
20
+ .bui-tab-bar-color(primary);
21
+ }
22
+
23
+ &-success {
24
+ .bui-tab-bar-color(success);
25
+ }
26
+
27
+ &-info {
28
+ .bui-tab-bar-color(info);
29
+ }
30
+
31
+ &-warning {
32
+ .bui-tab-bar-color(warning);
33
+ }
34
+
35
+ &-danger {
36
+ .bui-tab-bar-color(danger);
37
+ }
38
+
39
+ &-vip {
40
+ .bui-tab-bar-color(vip);
41
+ }
42
+
43
+ .bui-badge {
44
+ display: flex;
45
+ flex-direction: column;
46
+ align-items: center;
47
+ justify-content: center;
48
+ }
49
+
50
+ .bui-badge-position .bui-badge-contained,
51
+ .bui-badge-position .bui-badge-outlined {
52
+ top: 0;
53
+ }
54
+ }
package/dist/Tabs/Tab.js CHANGED
@@ -29,7 +29,7 @@ const Tab = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
29
29
  } = tabsContext;
30
30
  return /*#__PURE__*/_react.default.createElement("div", _extends({
31
31
  ref: ref,
32
- className: (0, _clsx.default)(prefixCls, `${prefixCls}-${align}`, {
32
+ className: (0, _clsx.default)(prefixCls, align !== 'start' && `${prefixCls}-${align}`, {
33
33
  [`${prefixCls}-active`]: !_utils.isMini && index === value,
34
34
  [`${prefixCls}-miniapp-active`]: _utils.isMini && index === value,
35
35
  [`${prefixCls}-disabled`]: disabled
@@ -0,0 +1,60 @@
1
+ @holderWidth: 12px;
2
+
3
+ .bui-tab {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ white-space: nowrap;
8
+ width: min-content;
9
+ height: 100%;
10
+ box-sizing: border-box;
11
+ position: relative;
12
+ cursor: pointer;
13
+ font-size: var(--font-size);
14
+ line-height: var(--bui-line-height);
15
+ color: var(--color);
16
+ padding: var(--bui-spacing-lg) var(--bui-spacing-lg) 10px;
17
+ font-family: var(--bui-font-family);
18
+
19
+ &-center {
20
+ flex: 1 0 auto;
21
+ margin: 0 auto;
22
+ }
23
+
24
+ &-active {
25
+ font-size: var(--font-size);
26
+ line-height: var(--bui-line-height);
27
+ font-weight: var(--bui-font-weight-medium);
28
+ color: var(--active-color);
29
+ }
30
+
31
+ &-miniapp-active {
32
+ font-size: var(--font-size);
33
+ line-height: 1.5;
34
+ font-weight: var(--bui-font-weight-medium);
35
+ color: var(--active-color);
36
+ position: relative;
37
+
38
+ &-line {
39
+ position: absolute;
40
+ bottom: 0;
41
+ left: -@holderWidth;
42
+ right: -@holderWidth;
43
+ margin: 0 auto !important;
44
+ width: 18px;
45
+ height: 2px;
46
+ transition: all 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
47
+ background-color: var(--line-color);
48
+ }
49
+ }
50
+
51
+ &-disabled {
52
+ opacity: 0.5;
53
+ pointer-events: none;
54
+ }
55
+ }
56
+
57
+ .bui-tabline-invisible {
58
+ visibility: hidden;
59
+ background-color: transparent;
60
+ }
@@ -0,0 +1,11 @@
1
+ .bui-tabpanel {
2
+ font-family: var(--bui-font-family);
3
+
4
+ &-active {
5
+ display: block;
6
+ }
7
+
8
+ &-inactive {
9
+ display: none;
10
+ }
11
+ }
@@ -0,0 +1,77 @@
1
+ @holderWidth: 12px;
2
+ @class-prefix-tabs: ~'bui-tabs';
3
+
4
+ .@{class-prefix-tabs} {
5
+ --height: 39px;
6
+ --font-size: var(--bui-text-size-1);
7
+ --color: var(--bui-color-fg-subtle);
8
+ --active-color: var(--bui-color-fg-default);
9
+ --line-color: var(--bui-color-primary);
10
+
11
+ position: relative;
12
+ font-family: var(--bui-font-family);
13
+
14
+ &-tabs {
15
+ height: var(--height);
16
+ display: flex;
17
+ flex-wrap: nowrap;
18
+ justify-content: flex-start;
19
+ align-items: center;
20
+ position: relative;
21
+ overflow-x: scroll;
22
+
23
+ &::-webkit-scrollbar {
24
+ display: none;
25
+ }
26
+ scrollbar-width: none;
27
+ }
28
+
29
+ &-tabline {
30
+ position: absolute;
31
+ width: 18px;
32
+ bottom: 0;
33
+
34
+ /* prettier-ignore */
35
+ height: 3PX;
36
+ color: var(--bui-color-primary);
37
+ background: var(--line-color);
38
+ border-radius: var(--bui-shape-radius-label);
39
+ }
40
+
41
+ &-content {
42
+ padding: var(--bui-spacing-lg);
43
+ }
44
+
45
+ &-mask {
46
+ position: absolute;
47
+ top: 0;
48
+ bottom: 0;
49
+ z-index: 1;
50
+ width: @holderWidth;
51
+ height: 100%;
52
+ pointer-events: none;
53
+ }
54
+
55
+ &-mask-left {
56
+ left: 0;
57
+ background: linear-gradient(
58
+ to right,
59
+ var(--bui-color-bg-view),
60
+ rgba(255, 255, 255, 0)
61
+ );
62
+ }
63
+
64
+ &-mask-right {
65
+ right: 0;
66
+ background: linear-gradient(
67
+ to left,
68
+ var(--bui-color-bg-view),
69
+ rgba(255, 255, 255, 0)
70
+ );
71
+ }
72
+ }
73
+
74
+ .bui-tabline-invisible {
75
+ visibility: hidden;
76
+ background-color: transparent;
77
+ }
@@ -0,0 +1,119 @@
1
+ .bui-tag {
2
+ --color: var(--bui-tag-color, var(--bui-color-gray));
3
+ --border-color: var(--bui-tag-border-color, var(--bui-color-border-gray));
4
+ --bg-color: var(--bui-tag-bg-color, var(--bui-color-gray));
5
+ position: relative;
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ white-space: nowrap;
10
+ height: 15px;
11
+ line-height: 15px;
12
+ padding: 0 var(--bui-spacing-xs);
13
+ font-size: var(--bui-text-size-5);
14
+ font-weight: var(--bui-font-weight-normal);
15
+ border-radius: var(--bui-shape-radius-label);
16
+ border: 1px solid transparent;
17
+ box-sizing: border-box;
18
+ color: var(--bui-color-bg-view);
19
+ font-family: var(--bui-font-family);
20
+ // 描边
21
+ &-outlined {
22
+ color: var(--color);
23
+ border: 1px solid var(--border-color);
24
+
25
+ &.bui-tag-primary {
26
+ color: var(--bui-color-primary);
27
+ border: 1px solid var(--bui-color-border-primary);
28
+ }
29
+
30
+ &.bui-tag-info {
31
+ color: var(--bui-color-info);
32
+ border: 1px solid var(--bui-color-border-info);
33
+ }
34
+
35
+ &.bui-tag-warning {
36
+ color: var(--bui-color-warning);
37
+ border: 1px solid var(--bui-color-border-warning);
38
+ }
39
+
40
+ &.bui-tag-success {
41
+ color: var(--bui-color-success);
42
+ border: 1px solid var(--bui-color-border-success);
43
+ }
44
+
45
+ &.bui-tag-danger {
46
+ color: var(--bui-color-danger);
47
+ border: 1px solid var(--bui-color-border-danger);
48
+ }
49
+
50
+ &.bui-tag-vip {
51
+ color: var(--bui-color-red);
52
+ border: 1px solid var(--bui-color-border-primary);
53
+ }
54
+ }
55
+
56
+ // 实心
57
+ &-contained {
58
+ background-color: var(--bg-color);
59
+
60
+ &.bui-tag-primary {
61
+ background-color: var(--bui-color-primary);
62
+ }
63
+
64
+ &.bui-tag-info {
65
+ background-color: var(--bui-color-info);
66
+ }
67
+
68
+ &.bui-tag-warning {
69
+ background-color: var(--bui-color-warning);
70
+ }
71
+
72
+ &.bui-tag-success {
73
+ background-color: var(--bui-color-success);
74
+ }
75
+
76
+ &.bui-tag-danger {
77
+ background-color: var(--bui-color-danger);
78
+ }
79
+
80
+ &.bui-tag-vip {
81
+ background-color: var(--bui-color-vip);
82
+ }
83
+ }
84
+
85
+ &-light {
86
+ background-color: var(--bui-color-gray-light);
87
+ color: var(--bui-color-gray);
88
+
89
+ &.bui-tag-primary {
90
+ background-color: var(--bui-color-primary-light);
91
+ color: var(--bui-color-primary);
92
+ }
93
+
94
+ &.bui-tag-info {
95
+ background-color: var(--bui-color-info-light);
96
+ color: var(--bui-color-info);
97
+ }
98
+
99
+ &.bui-tag-warning {
100
+ background-color: var(--bui-color-warning-light);
101
+ color: var(--bui-color-warning);
102
+ }
103
+
104
+ &.bui-tag-success {
105
+ background-color: var(--bui-color-success-light);
106
+ color: var(--bui-color-success);
107
+ }
108
+
109
+ &.bui-tag-danger {
110
+ background-color: var(--bui-color-danger-light);
111
+ color: var(--bui-color-danger);
112
+ }
113
+
114
+ &.bui-tag-vip {
115
+ background-color: fade(#ff866e, 30%);
116
+ color: var(--bui-color-vip);
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,52 @@
1
+ .bui-tag-group {
2
+ display: inline-flex;
3
+ font-family: var(--bui-font-family);
4
+
5
+ .bui-tag-outlined {
6
+ background-color: var(--bui-color-white);
7
+ }
8
+
9
+ .bui-tag-outlined + .bui-tag-contained {
10
+ margin-left: -1px;
11
+ }
12
+
13
+ .bui-tag-outlined:not(:last-child) {
14
+ position: relative;
15
+ border-right-style: dotted;
16
+
17
+ &::after {
18
+ top: 0;
19
+ }
20
+
21
+ &::before {
22
+ bottom: 0;
23
+ }
24
+
25
+ &::after,
26
+ &::before {
27
+ content: '';
28
+ position: absolute;
29
+ right: -1px;
30
+ width: 1px;
31
+ height: 13%;
32
+ color: #fff;
33
+ background-color: #fff;
34
+ border-right-style: solid;
35
+ }
36
+ }
37
+
38
+ .bui-tag:not(:last-child) {
39
+ border-top-right-radius: 0;
40
+ border-bottom-right-radius: 0;
41
+
42
+ &:not(.bui-tag-outlined) {
43
+ border-right: 0;
44
+ }
45
+ }
46
+
47
+ .bui-tag:not(:first-child) {
48
+ border-top-left-radius: 0;
49
+ border-bottom-left-radius: 0;
50
+ border-left: 0;
51
+ }
52
+ }
@@ -5,21 +5,27 @@
5
5
  --count-text-color: var(--bui-color-fg-subtle);
6
6
  background: var(--bui-color-bg-default);
7
7
  font-family: var(--bui-font-family);
8
- }
9
- .bui-textarea textarea {
10
- font-size: var(--bui-text-size-2);
11
- color: var(--text-color);
12
- line-height: var(--bui-line-height);
13
- }
14
- .bui-textarea .bui-mini-placeholder {
15
- color: var(--bui-color-fg-disabled);
16
- }
17
- .bui-textarea-disabled {
18
- pointer-events: none;
19
- }
20
- .bui-textarea .a-textarea-count-wrap {
21
- display: none;
22
- }
8
+
9
+ textarea {
10
+ font-size: var(--bui-text-size-2);
11
+ color: var(--text-color);
12
+ line-height: var(--bui-line-height);
13
+ }
14
+
15
+ .bui-mini-placeholder {
16
+ color: var(--bui-color-fg-disabled);
17
+ }
18
+
19
+ &-disabled {
20
+ pointer-events: none;
21
+ }
22
+
23
+ // 隐藏支付宝自带字数标识
24
+ .a-textarea-count-wrap {
25
+ display: none;
26
+ }
27
+ }
28
+
23
29
  .bui-textarea-content {
24
30
  width: 100%;
25
31
  resize: none;
@@ -29,11 +35,13 @@
29
35
  outline: none;
30
36
  word-break: break-all;
31
37
  box-sizing: border-box;
38
+
39
+ &::placeholder {
40
+ color: var(--bui-color-fg-disabled);
41
+ line-height: 1.3;
42
+ }
32
43
  }
33
- .bui-textarea-content::placeholder {
34
- color: var(--bui-color-fg-disabled);
35
- line-height: 1.3;
36
- }
44
+
37
45
  .bui-textarea-count {
38
46
  background: var(--count-bg-color);
39
47
  color: var(--count-text-color);
@@ -0,0 +1,31 @@
1
+ .bui-action-sheet {
2
+ font-family: var(--bui-font-family);
3
+
4
+ &-content {
5
+ padding-bottom: constant(safe-area-inset-bottom);
6
+ padding-bottom: env(safe-area-inset-bottom);
7
+ border-top-left-radius: var(--bui-shape-radius-drawer);
8
+ border-top-right-radius: var(--bui-shape-radius-drawer);
9
+ overflow: hidden;
10
+ }
11
+
12
+ .bui-action-sheet-cancel {
13
+ border-top: none;
14
+ }
15
+
16
+ &-gap {
17
+ height: var(--bui-spacing-md);
18
+ background-color: var(--bui-color-bg-default);
19
+ }
20
+
21
+ &-extra {
22
+ font-size: var(--bui-text-size-1);
23
+ line-height: 23px;
24
+ padding: var(--bui-spacing-xl);
25
+ color: var(--bui-color-fg-muted);
26
+ background: var(--bui-color-bg-view);
27
+ text-align: center;
28
+ border-bottom: 1px solid var(--bui-color-border-default);
29
+ margin: 0 var(--bui-spacing-xl);
30
+ }
31
+ }
@@ -0,0 +1,62 @@
1
+ .bui-action-sheet-item {
2
+ --font-size: var(--bui-title-size-2);
3
+ --color: var(--bui-color-fg-default);
4
+ font-family: var(--bui-font-family);
5
+ position: relative;
6
+ padding: var(--bui-spacing-xl);
7
+ cursor: pointer;
8
+ background: var(--bui-color-bg-view);
9
+ font-size: var(--font-size);
10
+ text-align: center;
11
+ line-height: 24px;
12
+ color: var(--color);
13
+ border-top: 1px solid var(--bui-color-border-default);
14
+ margin: 0 var(--bui-spacing-xl);
15
+
16
+ &:first-child {
17
+ border-top: none;
18
+ }
19
+
20
+ &:active {
21
+ background-color: var(--bui-color-bg-default);
22
+ }
23
+
24
+ &-primary {
25
+ --color: var(--bui-color-primary);
26
+ }
27
+
28
+ &-info {
29
+ --color: var(--bui-color-info);
30
+ }
31
+
32
+ &-success {
33
+ --color: var(--bui-color-success);
34
+ }
35
+
36
+ &-warning {
37
+ --color: var(--bui-color-warning);
38
+ }
39
+
40
+ &-danger {
41
+ --color: var(--bui-color-danger);
42
+ }
43
+
44
+ &-disabled {
45
+ pointer-events: none;
46
+
47
+ .bui-action-sheet-item-content,
48
+ .bui-action-sheet-item-description {
49
+ opacity: 0.5;
50
+ }
51
+ }
52
+
53
+ &-bold {
54
+ font-weight: bold;
55
+ }
56
+
57
+ &-description {
58
+ font-size: var(--bui-text-size-2);
59
+ line-height: 19px;
60
+ color: var(--bui-color-fg-subtle);
61
+ }
62
+ }