@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,40 @@
1
+ .bui-image {
2
+ width: auto;
3
+ height: auto;
4
+ display: inline-block;
5
+ overflow: hidden;
6
+ position: relative;
7
+ font-family: var(--bui-font-family);
8
+
9
+ .bui-image-img {
10
+ width: 100%;
11
+ height: 100%;
12
+ overflow: hidden;
13
+ display: block;
14
+ opacity: 0;
15
+
16
+ &.bui-image-loaded {
17
+ opacity: 1;
18
+ }
19
+ }
20
+
21
+ &-default-icon-wrap {
22
+ top: 0;
23
+ left: 0;
24
+ z-index: 1;
25
+ opacity: 1;
26
+ position: absolute;
27
+ width: 100%;
28
+ height: 100%;
29
+
30
+ &.bui-image-loaded {
31
+ opacity: 0;
32
+ }
33
+ }
34
+
35
+ &-default-icon-item {
36
+ width: 100%;
37
+ height: 100%;
38
+ background-color: rgba(127, 127, 127, 0.2);
39
+ }
40
+ }
@@ -0,0 +1,72 @@
1
+ @import '~@bifrostui/styles/mixins/index.less';
2
+
3
+ .bui-input {
4
+ position: relative;
5
+ display: flex;
6
+ align-items: center;
7
+ height: 32px;
8
+ padding: 4px 10px;
9
+ box-sizing: border-box;
10
+ border-radius: var(--bui-shape-radius-default);
11
+ border: 1px solid var(--bui-color-border-default);
12
+ font-family: var(--bui-font-family);
13
+
14
+ &-icon {
15
+ display: flex;
16
+ align-items: center;
17
+ color: var(--bui-color-fg-subtle);
18
+ font-size: var(--bui-title-size-3);
19
+
20
+ &-start {
21
+ margin-right: 3px;
22
+ }
23
+
24
+ &-end {
25
+ margin-left: 3px;
26
+ }
27
+ }
28
+
29
+ &-input {
30
+ flex: 1;
31
+ display: flex;
32
+ align-items: center;
33
+ padding: 0;
34
+ height: 100%;
35
+ color: var(--bui-color-fg-default);
36
+ border: none;
37
+ outline: none;
38
+ background-color: transparent;
39
+ font-size: var(--bui-text-size-2);
40
+
41
+ &::placeholder {
42
+ color: var(--bui-color-fg-subtle);
43
+ }
44
+ }
45
+
46
+ &-disabled {
47
+ pointer-events: none;
48
+ background-color: rgba(0, 0, 0, 0.04);
49
+
50
+ .bui-input-input {
51
+ color: var(--bui-color-fg-disabled);
52
+
53
+ &::placeholder {
54
+ color: var(--bui-color-fg-disabled);
55
+ }
56
+ }
57
+ }
58
+
59
+ &-clear {
60
+ display: flex;
61
+ align-items: center;
62
+ cursor: pointer;
63
+ color: var(--bui-color-fg-disabled);
64
+ height: 100%;
65
+ font-size: var(--bui-title-size-3);
66
+ }
67
+
68
+ .bui-mini-placeholder {
69
+ // 处理小程序placeholder较长被截断问题
70
+ width: auto;
71
+ }
72
+ }
@@ -4,6 +4,7 @@
4
4
  font-family: var(--bui-font-family);
5
5
  list-style: none;
6
6
  }
7
+
7
8
  .bui-list .bui-divider:last-of-type {
8
9
  display: none;
9
10
  }
@@ -4,20 +4,31 @@
4
4
  align-items: center;
5
5
  font-family: var(--bui-font-family);
6
6
  }
7
+
7
8
  .bui-list-item-disabled {
8
9
  pointer-events: none;
9
10
  background-color: var(--bui-color-bg-default);
10
11
  color: var(--bui-color-fg-subtle);
11
12
  }
12
- .bui-list-small .bui-list-item {
13
- padding: 5px 12px;
13
+
14
+ .bui-list-small {
15
+ .bui-list-item {
16
+ padding: 5px 12px;
17
+ }
14
18
  }
15
- .bui-list-medium .bui-list-item {
16
- padding: 18px 12px;
19
+
20
+ .bui-list-medium {
21
+ .bui-list-item {
22
+ padding: 18px 12px;
23
+ }
17
24
  }
18
- .bui-list-large .bui-list-item {
19
- padding: 20px 12px;
25
+
26
+ .bui-list-large {
27
+ .bui-list-item {
28
+ padding: 20px 12px;
29
+ }
20
30
  }
31
+
21
32
  .bui-list-item-divider:not(:last-child) {
22
33
  border-bottom: 1px solid var(--bui-color-border-default);
23
34
  }
@@ -6,12 +6,17 @@
6
6
  width: 100%;
7
7
  font-family: var(--bui-font-family);
8
8
  }
9
- .bui-list-small .bui-list-item-content {
10
- font-size: var(--bui-text-size-2);
9
+
10
+ .bui-list-small {
11
+ .bui-list-item-content {
12
+ font-size: var(--bui-text-size-2);
13
+ }
11
14
  }
15
+
12
16
  .bui-list-item-content-primary {
13
17
  flex: 1 1 auto;
14
18
  }
19
+
15
20
  .bui-list-item-content-secondary {
16
21
  font-size: 13px;
17
22
  color: var(--bui-color-fg-muted);
@@ -3,7 +3,8 @@
3
3
  display: flex;
4
4
  align-items: center;
5
5
  font-family: var(--bui-font-family);
6
- }
7
- .bui-list-item-footer .bui-svg-icon {
8
- color: var(--bui-color-fg-subtle);
6
+
7
+ .bui-svg-icon {
8
+ color: var(--bui-color-fg-subtle);
9
+ }
9
10
  }
@@ -0,0 +1,40 @@
1
+ @import '~@bifrostui/styles/mixins/index.less';
2
+
3
+ .bui-loading {
4
+ --animation-duration: var(--bui-loading-animation-duration, 1.6s);
5
+
6
+ width: fit-content;
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ padding: var(--bui-spacing-md);
11
+ font-family: var(--bui-font-family);
12
+
13
+ &-icon {
14
+ font-size: 30px;
15
+ animation: loading var(--animation-duration) linear infinite;
16
+ }
17
+
18
+ &-text {
19
+ padding: 10px;
20
+ font-size: var(--bui-title-size-3);
21
+ }
22
+
23
+ &-vertical {
24
+ flex-direction: row;
25
+ }
26
+
27
+ &-horizontal {
28
+ flex-direction: column;
29
+ }
30
+
31
+ @keyframes loading {
32
+ 0% {
33
+ transform: rotate(0deg);
34
+ }
35
+
36
+ 100% {
37
+ transform: rotate(360deg);
38
+ }
39
+ }
40
+ }
@@ -6,10 +6,12 @@
6
6
  top: 0;
7
7
  z-index: var(--bui-z-index-modal);
8
8
  font-family: var(--bui-font-family);
9
- }
10
- .bui-modal-exited {
11
- visibility: hidden;
12
- }
13
- .bui-modal-backdrop {
14
- z-index: -1;
9
+
10
+ &-exited {
11
+ visibility: hidden;
12
+ }
13
+
14
+ &-backdrop {
15
+ z-index: -1;
16
+ }
15
17
  }
@@ -12,5 +12,5 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
12
12
  keepMounted?: boolean;
13
13
  } & import("../../../bui-types/src").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
14
  ref?: React.Ref<HTMLDivElement>;
15
- }, keyof import("../../../bui-types/src").ICommonProps | "open" | "container" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "disablePortal" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ }, "open" | keyof import("../../../bui-types/src").ICommonProps | "container" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
16
  export default Modal;
@@ -0,0 +1,67 @@
1
+ @import '~@bifrostui/styles/mixins/index.less';
2
+
3
+ .bui-navbar {
4
+ --height: var(--bui-navbar-height, 45px);
5
+ --icon-size: var(--bui-navbar-icon-size, 24px);
6
+ --background-color: var(
7
+ --bui-navbar-background-color,
8
+ var(--bui-color-white)
9
+ );
10
+ --border-bottom: var(--bui-navbar-border-bottom, none);
11
+ --z-index: var(--bui-navbar-z-index, auto);
12
+
13
+ position: relative;
14
+ width: 100%;
15
+ height: var(--height);
16
+ box-sizing: border-box;
17
+ padding: 0 8px;
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ background-color: var(--background-color);
22
+ border-bottom: var(--border-bottom);
23
+ user-select: none;
24
+ z-index: var(--z-index);
25
+ font-family: var(--bui-font-family);
26
+
27
+ &-fixed {
28
+ position: fixed;
29
+ top: 0;
30
+ left: 0;
31
+ width: 100%;
32
+ }
33
+
34
+ &-title {
35
+ max-width: 60%;
36
+ padding: 0 8px;
37
+ font-size: var(--bui-title-size-2);
38
+ .ellipsis();
39
+ }
40
+
41
+ &-left,
42
+ &-right {
43
+ flex: 1;
44
+ display: flex;
45
+ align-items: center;
46
+ font-size: var(--bui-title-size-3);
47
+ }
48
+
49
+ &-left {
50
+ justify-content: flex-start;
51
+ text-align: left;
52
+ }
53
+
54
+ &-right {
55
+ justify-content: flex-end;
56
+ text-align: right;
57
+ align-self: stretch;
58
+ }
59
+
60
+ &-icon {
61
+ font-size: var(--icon-size);
62
+ }
63
+
64
+ &-placeholder {
65
+ width: 100%;
66
+ }
67
+ }
@@ -0,0 +1,62 @@
1
+ @import '~@bifrostui/styles/mixins/index.less';
2
+
3
+ .bui-picker {
4
+ --cancel-color: var(--bui-color-fg-default);
5
+ --cancel-font-size: var(--bui-title-size-4, 15px);
6
+ --confirm-color: var(--bui-color-primary);
7
+ --confirm-font-size: var(--bui-title-size-4, 15px);
8
+ --title-color: var(--bui-color-fg-default);
9
+ --title-font-size: var(--bui-title-size-3, 16px);
10
+ --title-font-weight: var(--bui-font-weight-medium, 500);
11
+ --panel-container-height: 260px;
12
+ --indicator-top: 108px;
13
+ --indicator-height: 36px;
14
+ --indicator-border-color: var(--bui-color-border-default);
15
+ --option-color: var(--bui-color-fg-default);
16
+ --option-font-size: var(--bui-title-size-4);
17
+ --option-height: 36px;
18
+ font-family: var(--bui-font-family);
19
+
20
+ .bui-drawer-content {
21
+ border-radius: var(--bui-shape-radius-drawer) var(--bui-shape-radius-drawer)
22
+ 0 0;
23
+ }
24
+
25
+ &-header {
26
+ height: 50px;
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: space-between;
30
+ padding: 0 var(--bui-spacing-lg);
31
+ }
32
+
33
+ &-cancel {
34
+ width: 40px;
35
+ height: 100%;
36
+ font-size: var(--cancel-font-size);
37
+ text-align: center;
38
+ line-height: 50px;
39
+ color: var(--cancel-color);
40
+ }
41
+
42
+ &-title {
43
+ font-size: var(--title-font-size);
44
+ color: var(--title-color);
45
+ font-weight: var(--title-font-weight);
46
+ }
47
+
48
+ &-confirm {
49
+ width: 40px;
50
+ height: 100%;
51
+ font-size: var(--confirm-font-size);
52
+ text-align: center;
53
+ line-height: 50px;
54
+ color: var(--confirm-color);
55
+ }
56
+
57
+ &-container {
58
+ width: 100%;
59
+ height: var(--panel-container-height);
60
+ display: flex;
61
+ }
62
+ }
@@ -0,0 +1,67 @@
1
+ @import '~@bifrostui/styles/mixins/index.less';
2
+
3
+ .bui-picker-panel {
4
+ flex: 1;
5
+ flex-shrink: 0;
6
+ position: relative;
7
+ font-family: var(--bui-font-family);
8
+
9
+ &-roller {
10
+ transform: rotate3d(1, 0, 0, 60deg);
11
+ transform-style: preserve-3d;
12
+ position: absolute;
13
+ top: var(--indicator-top);
14
+ width: 100%;
15
+ height: var(--option-height);
16
+ }
17
+
18
+ &-mask {
19
+ position: absolute;
20
+ top: 0;
21
+ left: 0;
22
+ width: 100%;
23
+ height: 100%;
24
+ background-image: linear-gradient(
25
+ 180deg,
26
+ var(--bui-color-bg-view-opacity-9),
27
+ var(--bui-color-bg-view-opacity-4)
28
+ ),
29
+ linear-gradient(
30
+ 0deg,
31
+ var(--bui-color-bg-view-opacity-9),
32
+ var(--bui-color-bg-view-opacity-4)
33
+ );
34
+ background-position: top, bottom;
35
+ background-size: 100% var(--indicator-top);
36
+ background-repeat: no-repeat;
37
+ transform: translateZ(0);
38
+ }
39
+
40
+ &-indicator {
41
+ position: absolute;
42
+ top: var(--indicator-top);
43
+ height: var(--indicator-height);
44
+ width: 100%;
45
+ border-top: 1px solid var(--indicator-border-color);
46
+ border-bottom: 1px solid var(--indicator-border-color);
47
+ }
48
+
49
+ &-option {
50
+ position: absolute;
51
+ top: 0;
52
+ left: 0;
53
+ text-align: center;
54
+ height: var(--option-height);
55
+ line-height: var(--option-height);
56
+ color: var(--option-color);
57
+ font-size: var(--option-font-size);
58
+ backface-visibility: hidden;
59
+ .ellipsis();
60
+ width: 100%;
61
+ }
62
+
63
+ &-option-hidden {
64
+ visibility: hidden;
65
+ opacity: 0;
66
+ }
67
+ }
@@ -2,7 +2,7 @@ import { ICascadePickerOptionItem } from './Picker.types';
2
2
  /**
3
3
  * 根据第一列数据判断选择器类型
4
4
  */
5
- export declare const pickerPanelType: (options?: any[]) => "multiple" | "cascade" | "single";
5
+ export declare const pickerPanelType: (options?: any[]) => "multiple" | "single" | "cascade";
6
6
  /**
7
7
  * 格式化级联模式数据
8
8
  */
@@ -0,0 +1,24 @@
1
+ .bui-progress {
2
+ --fill-color: var(--bui-color-primary);
3
+ --trail-color: rgba(156, 156, 165, 0.2);
4
+ --stroke-width: 8px;
5
+ width: 100%;
6
+ font-family: var(--bui-font-family);
7
+
8
+ &-inner {
9
+ position: relative;
10
+ display: inline-block;
11
+ width: 100%;
12
+ overflow: hidden;
13
+ vertical-align: middle;
14
+ background-color: var(--trail-color);
15
+ border-radius: 100px;
16
+ }
17
+
18
+ &-bg {
19
+ position: relative;
20
+ border-radius: 100px;
21
+ background-color: var(--fill-color);
22
+ height: var(--stroke-width);
23
+ }
24
+ }
@@ -0,0 +1,81 @@
1
+ .bui-radio {
2
+ --label-color: var(--bui-color-fg-default);
3
+ --label-font-size: var(--bui-text-size-1);
4
+ --icon-font-size: var(--bui-title-size-2);
5
+ @iconSize: 16px;
6
+ display: inline-flex;
7
+ align-items: center;
8
+ position: relative;
9
+ font-family: var(--bui-font-family);
10
+
11
+ &-disabled {
12
+ pointer-events: none;
13
+ opacity: 0.5;
14
+ }
15
+
16
+ &-label-left {
17
+ flex-direction: row-reverse;
18
+ }
19
+
20
+ &-label-top {
21
+ flex-direction: column-reverse;
22
+ }
23
+
24
+ &-label-bottom {
25
+ flex-direction: column;
26
+ }
27
+
28
+ &-input {
29
+ opacity: 0;
30
+ // 解决onClick触发两次的问题 & 微信文案点击选中
31
+ width: 100%;
32
+ height: 100%;
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ cursor: pointer;
37
+ z-index: 1;
38
+ }
39
+
40
+ &-icon {
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ flex-shrink: 0;
45
+ padding: 5px;
46
+ box-sizing: border-box;
47
+ }
48
+
49
+ &-label {
50
+ font-size: var(--label-font-size);
51
+ color: var(--label-color);
52
+ }
53
+
54
+ &-btn-icon {
55
+ position: relative;
56
+ display: flex;
57
+
58
+ .bui-svg-icon {
59
+ font-size: var(--icon-font-size);
60
+ }
61
+
62
+ &-outline {
63
+ transform: scale(1);
64
+ transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
65
+ }
66
+
67
+ &-contained {
68
+ position: absolute;
69
+ left: 0;
70
+ transform: scale(0);
71
+ transition: transform 150ms cubic-bezier(0.4, 0, 1, 1) 0ms;
72
+ }
73
+
74
+ &-checked {
75
+ .bui-radio-btn-icon-contained {
76
+ transform: scale(1);
77
+ transition: transform 150ms cubic-bezier(0, 0, 0.2, 1) 0ms;
78
+ }
79
+ }
80
+ }
81
+ }
@@ -0,0 +1,64 @@
1
+ .bui-rating {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ font-family: var(--bui-font-family);
5
+
6
+ &-disabled {
7
+ pointer-events: none;
8
+ opacity: 0.5;
9
+ }
10
+
11
+ &-container {
12
+ position: relative;
13
+ display: flex;
14
+
15
+ &:last-child {
16
+ margin-right: 0;
17
+ }
18
+
19
+ &-xsmall {
20
+ font-size: var(--bui-text-size-5);
21
+ }
22
+
23
+ &-small {
24
+ font-size: var(--bui-text-size-1);
25
+ margin-right: 0.5px;
26
+ }
27
+
28
+ &-medium {
29
+ font-size: var(--bui-title-size-3);
30
+ margin-right: 1px;
31
+ }
32
+
33
+ &-large {
34
+ font-size: 22px;
35
+ margin-right: 2px;
36
+ }
37
+ }
38
+
39
+ &-item {
40
+ display: flex;
41
+ align-items: center;
42
+ overflow: hidden;
43
+ cursor: pointer;
44
+ color: var(--bui-color-fg-disabled);
45
+
46
+ &-input {
47
+ display: none;
48
+ }
49
+
50
+ &-half {
51
+ position: absolute;
52
+ top: 0;
53
+ width: 50%;
54
+ }
55
+
56
+ &-readonly {
57
+ cursor: unset;
58
+ }
59
+
60
+ &-active {
61
+ color: var(--bui-color-warning);
62
+ }
63
+ }
64
+ }
@@ -3,16 +3,20 @@
3
3
  position: relative;
4
4
  font-family: var(--bui-font-family);
5
5
  }
6
+
6
7
  .bui-scroll::-webkit-scrollbar {
7
8
  display: none;
8
9
  }
10
+
9
11
  .bui-scroll-view {
10
12
  overflow: hidden;
11
13
  }
14
+
12
15
  .bui-scroll-view-scroll-x {
13
16
  overflow-x: scroll;
14
17
  overflow-y: hidden;
15
18
  }
19
+
16
20
  .bui-scroll-view-scroll-y {
17
21
  overflow-x: hidden;
18
22
  overflow-y: scroll;