@bifrostui/react 1.1.5 → 1.1.8-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 (187) hide show
  1. package/dist/ActionSheet/ActionSheet.css +27 -0
  2. package/dist/ActionSheet/ActionSheetItem.css +51 -0
  3. package/dist/Alert/index.css +89 -0
  4. package/dist/Avatar/Avatar.css +43 -0
  5. package/dist/Avatar/AvatarGroup.css +31 -0
  6. package/dist/Backdrop/{Backdrop.less → Backdrop.css} +3 -4
  7. package/dist/Badge/Badge.css +95 -0
  8. package/dist/Button/Button.css +200 -0
  9. package/dist/Calendar/Calendar.css +105 -0
  10. package/dist/Card/{Card.less → Card.css} +0 -1
  11. package/dist/Card/CardHeader.css +45 -0
  12. package/dist/Checkbox/Checkbox.css +45 -0
  13. package/dist/CitySelector/CitySelector.css +102 -0
  14. package/dist/CitySelector/Selector/{index.less → index.css} +0 -2
  15. package/dist/Countdown/Countdown.css +28 -0
  16. package/dist/Divider/Divider.css +41 -0
  17. package/dist/Drawer/Drawer.css +35 -0
  18. package/dist/IconButton/IconButton.css +130 -0
  19. package/dist/Image/index.css +35 -0
  20. package/dist/Input/Input.css +59 -0
  21. package/dist/List/{List.less → List.css} +0 -1
  22. package/{es/List/ListItem.less → dist/List/ListItem.css} +6 -17
  23. package/{es/List/ListItemContent.less → dist/List/ListItemContent.css} +2 -7
  24. package/{es/List/ListItemFooter.less → dist/List/ListItemFooter.css} +3 -4
  25. package/dist/Loading/Loading.css +31 -0
  26. package/{es/Modal/Modal.less → dist/Modal/Modal.css} +6 -8
  27. package/dist/Modal/Modal.miniapp.d.ts +2 -2
  28. package/dist/NavBar/NavBar.css +57 -0
  29. package/dist/Picker/Picker.css +53 -0
  30. package/dist/Picker/PickerPanel.css +54 -0
  31. package/dist/Progress/Progress.css +22 -0
  32. package/dist/Radio/Radio.css +65 -0
  33. package/dist/Rating/Rating.css +52 -0
  34. package/dist/ScrollView/{ScrollView.less → ScrollView.css} +0 -4
  35. package/dist/Select/Select.css +89 -0
  36. package/dist/Skeleton/Skeleton.css +54 -0
  37. package/dist/Slider/Slider.css +95 -0
  38. package/dist/Stack/demo/index.css +23 -0
  39. package/dist/Steps/Step.css +174 -0
  40. package/{es/Steps/Steps.less → dist/Steps/Steps.css} +3 -5
  41. package/dist/Swiper/Swiper.css +20 -0
  42. package/dist/Switch/Switch.css +127 -0
  43. package/dist/TabBar/TabBarItem.css +38 -0
  44. package/dist/Tabs/Tab.css +52 -0
  45. package/dist/Tabs/TabPanel.css +9 -0
  46. package/dist/Tabs/Tabs.css +56 -0
  47. package/dist/Tag/Tag.css +97 -0
  48. package/dist/Tag/TagGroup.css +43 -0
  49. package/{es/TextArea/TextArea.less → dist/TextArea/TextArea.css} +19 -27
  50. package/es/ActionSheet/ActionSheet.css +27 -0
  51. package/es/ActionSheet/ActionSheetItem.css +51 -0
  52. package/es/Alert/index.css +89 -0
  53. package/es/Avatar/Avatar.css +43 -0
  54. package/es/Avatar/AvatarGroup.css +31 -0
  55. package/es/Backdrop/{Backdrop.less → Backdrop.css} +3 -4
  56. package/es/Badge/Badge.css +95 -0
  57. package/es/Button/Button.css +200 -0
  58. package/es/Calendar/Calendar.css +105 -0
  59. package/es/Card/{Card.less → Card.css} +0 -1
  60. package/es/Card/CardHeader.css +45 -0
  61. package/es/Checkbox/Checkbox.css +45 -0
  62. package/es/CitySelector/CitySelector.css +102 -0
  63. package/es/CitySelector/Selector/{index.less → index.css} +0 -2
  64. package/es/Countdown/Countdown.css +28 -0
  65. package/es/Divider/Divider.css +41 -0
  66. package/es/Drawer/Drawer.css +35 -0
  67. package/es/IconButton/IconButton.css +130 -0
  68. package/es/Image/index.css +35 -0
  69. package/es/Input/Input.css +59 -0
  70. package/es/List/{List.less → List.css} +0 -1
  71. package/{dist/List/ListItem.less → es/List/ListItem.css} +6 -17
  72. package/{dist/List/ListItemContent.less → es/List/ListItemContent.css} +2 -7
  73. package/{dist/List/ListItemFooter.less → es/List/ListItemFooter.css} +3 -4
  74. package/es/Loading/Loading.css +31 -0
  75. package/{dist/Modal/Modal.less → es/Modal/Modal.css} +6 -8
  76. package/es/Modal/Modal.miniapp.d.ts +2 -2
  77. package/es/NavBar/NavBar.css +57 -0
  78. package/es/Picker/Picker.css +53 -0
  79. package/es/Picker/PickerPanel.css +54 -0
  80. package/es/Progress/Progress.css +22 -0
  81. package/es/Radio/Radio.css +65 -0
  82. package/es/Rating/Rating.css +52 -0
  83. package/es/ScrollView/{ScrollView.less → ScrollView.css} +0 -4
  84. package/es/Select/Select.css +89 -0
  85. package/es/Skeleton/Skeleton.css +54 -0
  86. package/es/Slider/Slider.css +95 -0
  87. package/es/Stack/demo/index.css +23 -0
  88. package/es/Steps/Step.css +174 -0
  89. package/{dist/Steps/Steps.less → es/Steps/Steps.css} +3 -5
  90. package/es/Swiper/Swiper.css +20 -0
  91. package/es/Switch/Switch.css +127 -0
  92. package/es/TabBar/TabBarItem.css +38 -0
  93. package/es/Tabs/Tab.css +52 -0
  94. package/es/Tabs/TabPanel.css +9 -0
  95. package/es/Tabs/Tabs.css +56 -0
  96. package/es/Tag/Tag.css +97 -0
  97. package/es/Tag/TagGroup.css +43 -0
  98. package/{dist/TextArea/TextArea.less → es/TextArea/TextArea.css} +19 -27
  99. package/package.json +7 -7
  100. package/dist/ActionSheet/ActionSheet.less +0 -31
  101. package/dist/ActionSheet/ActionSheetItem.less +0 -62
  102. package/dist/Alert/index.less +0 -112
  103. package/dist/Avatar/Avatar.less +0 -52
  104. package/dist/Avatar/AvatarGroup.less +0 -39
  105. package/dist/Badge/Badge.less +0 -118
  106. package/dist/Button/Button.less +0 -244
  107. package/dist/Calendar/Calendar.less +0 -126
  108. package/dist/Card/CardHeader.less +0 -53
  109. package/dist/Checkbox/Checkbox.less +0 -55
  110. package/dist/CitySelector/CitySelector.less +0 -122
  111. package/dist/Countdown/Countdown.less +0 -39
  112. package/dist/Divider/Divider.less +0 -50
  113. package/dist/Drawer/Drawer.less +0 -40
  114. package/dist/IconButton/IconButton.less +0 -167
  115. package/dist/Image/index.less +0 -40
  116. package/dist/Input/Input.less +0 -72
  117. package/dist/Loading/Loading.less +0 -40
  118. package/dist/NavBar/NavBar.less +0 -67
  119. package/dist/Picker/Picker.less +0 -62
  120. package/dist/Picker/PickerPanel.less +0 -67
  121. package/dist/Progress/Progress.less +0 -24
  122. package/dist/Radio/Radio.less +0 -81
  123. package/dist/Rating/Rating.less +0 -64
  124. package/dist/Select/Select.less +0 -105
  125. package/dist/Skeleton/Skeleton.less +0 -72
  126. package/dist/Slider/Slider.less +0 -108
  127. package/dist/Stack/demo/index.less +0 -27
  128. package/dist/Steps/Step.less +0 -228
  129. package/dist/Swiper/Swiper.less +0 -25
  130. package/dist/Switch/Switch.less +0 -177
  131. package/dist/TabBar/TabBarItem.less +0 -54
  132. package/dist/Tabs/Tab.less +0 -60
  133. package/dist/Tabs/TabPanel.less +0 -11
  134. package/dist/Tabs/Tabs.less +0 -77
  135. package/dist/Tag/Tag.less +0 -119
  136. package/dist/Tag/TagGroup.less +0 -52
  137. package/es/ActionSheet/ActionSheet.less +0 -31
  138. package/es/ActionSheet/ActionSheetItem.less +0 -62
  139. package/es/Alert/index.less +0 -112
  140. package/es/Avatar/Avatar.less +0 -52
  141. package/es/Avatar/AvatarGroup.less +0 -39
  142. package/es/Badge/Badge.less +0 -118
  143. package/es/Button/Button.less +0 -244
  144. package/es/Calendar/Calendar.less +0 -126
  145. package/es/Card/CardHeader.less +0 -53
  146. package/es/Checkbox/Checkbox.less +0 -55
  147. package/es/CitySelector/CitySelector.less +0 -122
  148. package/es/Countdown/Countdown.less +0 -39
  149. package/es/Divider/Divider.less +0 -50
  150. package/es/Drawer/Drawer.less +0 -40
  151. package/es/IconButton/IconButton.less +0 -167
  152. package/es/Image/index.less +0 -40
  153. package/es/Input/Input.less +0 -72
  154. package/es/Loading/Loading.less +0 -40
  155. package/es/NavBar/NavBar.less +0 -67
  156. package/es/Picker/Picker.less +0 -62
  157. package/es/Picker/PickerPanel.less +0 -67
  158. package/es/Progress/Progress.less +0 -24
  159. package/es/Radio/Radio.less +0 -81
  160. package/es/Rating/Rating.less +0 -64
  161. package/es/Select/Select.less +0 -105
  162. package/es/Skeleton/Skeleton.less +0 -72
  163. package/es/Slider/Slider.less +0 -108
  164. package/es/Stack/demo/index.less +0 -27
  165. package/es/Steps/Step.less +0 -228
  166. package/es/Swiper/Swiper.less +0 -25
  167. package/es/Switch/Switch.less +0 -177
  168. package/es/TabBar/TabBarItem.less +0 -54
  169. package/es/Tabs/Tab.less +0 -60
  170. package/es/Tabs/TabPanel.less +0 -11
  171. package/es/Tabs/Tabs.less +0 -77
  172. package/es/Tag/Tag.less +0 -119
  173. package/es/Tag/TagGroup.less +0 -52
  174. /package/dist/Card/{CardContent.less → CardContent.css} +0 -0
  175. /package/dist/Card/{CardFooter.less → CardFooter.css} +0 -0
  176. /package/dist/CitySelector/{miniapp.less → miniapp.css} +0 -0
  177. /package/dist/List/{ListItemExtra.less → ListItemExtra.css} +0 -0
  178. /package/dist/List/{ListItemHeader.less → ListItemHeader.css} +0 -0
  179. /package/dist/Stack/{Stack.less → Stack.css} +0 -0
  180. /package/dist/TabBar/{TabBar.less → TabBar.css} +0 -0
  181. /package/es/Card/{CardContent.less → CardContent.css} +0 -0
  182. /package/es/Card/{CardFooter.less → CardFooter.css} +0 -0
  183. /package/es/CitySelector/{miniapp.less → miniapp.css} +0 -0
  184. /package/es/List/{ListItemExtra.less → ListItemExtra.css} +0 -0
  185. /package/es/List/{ListItemHeader.less → ListItemHeader.css} +0 -0
  186. /package/es/Stack/{Stack.less → Stack.css} +0 -0
  187. /package/es/TabBar/{TabBar.less → TabBar.css} +0 -0
@@ -0,0 +1,45 @@
1
+ .bui-checkbox {
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
+ display: inline-flex;
6
+ align-items: center;
7
+ position: relative;
8
+ font-family: var(--bui-font-family);
9
+ }
10
+ .bui-checkbox.bui-checkbox-disabled {
11
+ pointer-events: none;
12
+ opacity: 0.5;
13
+ }
14
+ .bui-checkbox-label-left {
15
+ flex-direction: row-reverse;
16
+ }
17
+ .bui-checkbox-label-top {
18
+ flex-direction: column-reverse;
19
+ }
20
+ .bui-checkbox-label-bottom {
21
+ flex-direction: column;
22
+ }
23
+ .bui-checkbox-input {
24
+ opacity: 0;
25
+ width: 100%;
26
+ height: 100%;
27
+ position: absolute;
28
+ top: 0;
29
+ left: 0;
30
+ cursor: pointer;
31
+ z-index: 1;
32
+ }
33
+ .bui-checkbox-icon {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ flex-shrink: 0;
38
+ padding: 5px;
39
+ box-sizing: border-box;
40
+ font-size: var(--icon-font-size);
41
+ }
42
+ .bui-checkbox-label {
43
+ font-size: var(--label-font-size);
44
+ color: var(--label-color);
45
+ }
@@ -0,0 +1,102 @@
1
+ .bui-city-selector {
2
+ font-family: var(--bui-font-family);
3
+ height: 100%;
4
+ position: relative;
5
+ }
6
+ .bui-city-selector-title {
7
+ width: 100%;
8
+ height: 45px;
9
+ color: var(--bui-color-fg-default);
10
+ font-size: var(--bui-title-size-3);
11
+ line-height: 45px;
12
+ text-align: center;
13
+ position: sticky;
14
+ top: 0;
15
+ z-index: 1004;
16
+ border-bottom: solid 1px var(--bui-color-border-default);
17
+ background-color: var(--bui-color-bg-view);
18
+ }
19
+ .bui-city-selector-btn-close {
20
+ position: absolute;
21
+ top: 0;
22
+ right: 0;
23
+ width: 45px;
24
+ height: 45px;
25
+ color: var(--bui-color-fg-muted);
26
+ text-align: center;
27
+ font-size: 20px;
28
+ }
29
+ .bui-city-selector-scroll-view-container {
30
+ height: 100%;
31
+ }
32
+ .bui-city-selector-scroll-view-container.container-has-title {
33
+ height: calc(100% - 45px);
34
+ }
35
+ .bui-city-selector-all-city {
36
+ min-height: 500px;
37
+ font-size: var(--bui-text-size-2);
38
+ width: 100%;
39
+ background: var(--bui-color-bg-view);
40
+ align-self: flex-start;
41
+ }
42
+ .bui-city-selector-all-city .select-city-buttons {
43
+ display: flex;
44
+ flex-flow: wrap;
45
+ padding-left: 3px;
46
+ padding-top: 7.5px;
47
+ }
48
+ .bui-city-selector-all-city .select-city-title {
49
+ font-size: var(--bui-title-size-4);
50
+ line-height: 15px;
51
+ font-weight: 600;
52
+ padding-left: var(--bui-spacing-lg);
53
+ padding-top: 9px;
54
+ }
55
+ .bui-city-selector-list {
56
+ padding-left: var(--bui-spacing-lg);
57
+ list-style-type: none;
58
+ }
59
+ .bui-city-selector-list-item {
60
+ height: 45px;
61
+ font-size: var(--bui-title-size-4);
62
+ display: flex;
63
+ align-items: center;
64
+ }
65
+ .bui-city-selector-list-item:not(:last-child) {
66
+ border-bottom: 0.5px solid var(--bui-color-border-default);
67
+ }
68
+ .bui-city-selector-index-container {
69
+ z-index: 1001;
70
+ position: absolute;
71
+ white-space: nowrap;
72
+ right: 0;
73
+ top: 50%;
74
+ width: 40px;
75
+ will-change: transform;
76
+ transform: translate(0, -50%);
77
+ transition: opacity 0.2s ease-out, transform 0.2s ease-out;
78
+ }
79
+ .bui-city-selector-index-container.left-in {
80
+ opacity: 1;
81
+ transform: translate(0, -50%);
82
+ }
83
+ .bui-city-selector-index-container.city-index-has-title {
84
+ top: calc(50% + 22.5px);
85
+ }
86
+ .bui-city-selector-index-container ul {
87
+ margin: 0;
88
+ padding: 0;
89
+ float: left;
90
+ width: 100%;
91
+ touch-action: none;
92
+ }
93
+ .bui-city-selector-index-container li {
94
+ list-style: none;
95
+ height: 20px;
96
+ text-align: center;
97
+ font-size: var(--bui-text-size-3);
98
+ color: var(--bui-color-info, --bui-color-info);
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ }
@@ -1,5 +1,3 @@
1
- @import '~@bifrostui/styles/mixins/index.less';
2
-
3
1
  .bui-city-selector-item {
4
2
  width: 111px;
5
3
  height: 36px;
@@ -0,0 +1,28 @@
1
+ .bui-countdown {
2
+ --font-size: var(--bui-countdown-font-size, var(--bui-text-size-1));
3
+ --color: var(--bui-countdown-color, var(--bui-color-fg-default));
4
+ --font-weight: var(--bui-countdown-font-weight, var(--bui-font-weight-normal));
5
+ display: flex;
6
+ flex-direction: row;
7
+ align-items: center;
8
+ font-size: var(--font-size);
9
+ color: var(--color);
10
+ font-weight: var(--font-weight);
11
+ font-family: var(--bui-font-family);
12
+ }
13
+ .bui-countdown-slice {
14
+ display: flex;
15
+ flex-direction: row;
16
+ align-items: center;
17
+ }
18
+ .bui-countdown-slice-item {
19
+ display: flex;
20
+ flex-direction: row;
21
+ align-items: center;
22
+ }
23
+ .bui-countdown-slice-value {
24
+ font-family: 'Helvetica Neue', helvetica, 'PingFang SC', 'Chinese Quote', 'Segoe UI', roboto, 'Hiragino Sans GB', 'Microsoft YaHei', arial, sans-serif;
25
+ }
26
+ .bui-countdown-slice-unit {
27
+ margin: 0 2px;
28
+ }
@@ -0,0 +1,41 @@
1
+ .bui-divider {
2
+ --height: var(--bui-divider-height, 100%);
3
+ --width: var(--bui-divider-width, 100%);
4
+ border-color: var(--bui-color-border-default);
5
+ font-family: var(--bui-font-family);
6
+ }
7
+ .bui-divider-vertical {
8
+ height: var(--height);
9
+ display: inline-block;
10
+ border-right-width: 1px;
11
+ border-right-style: solid;
12
+ }
13
+ .bui-divider-horizontal {
14
+ width: var(--width);
15
+ border-bottom-width: 1px;
16
+ border-bottom-style: solid;
17
+ }
18
+ .bui-divider-vertical-dashed {
19
+ border-right-style: dashed;
20
+ }
21
+ .bui-divider-horizontal-dashed {
22
+ border-bottom-style: dashed;
23
+ }
24
+ .bui-divider-content {
25
+ width: 100%;
26
+ border-width: 0;
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ }
31
+ .bui-divider-line {
32
+ width: 40px;
33
+ border-bottom-width: 1px;
34
+ border-bottom-style: solid;
35
+ border-color: var(--bui-color-border-default);
36
+ }
37
+ .bui-divider-text {
38
+ flex-shrink: 0;
39
+ color: var(--bui-color-fg-subtle);
40
+ font-size: var(--bui-text-size-2);
41
+ }
@@ -0,0 +1,35 @@
1
+ .bui-drawer {
2
+ font-family: var(--bui-font-family);
3
+ }
4
+ .bui-drawer-content {
5
+ display: flex;
6
+ flex-direction: column;
7
+ height: 100%;
8
+ flex: 1 0 auto;
9
+ position: fixed;
10
+ top: 0;
11
+ outline: 0;
12
+ background-color: var(--bui-color-bg-view);
13
+ }
14
+ .bui-drawer-content-left {
15
+ left: 0;
16
+ }
17
+ .bui-drawer-content-top {
18
+ top: 0;
19
+ left: 0;
20
+ right: 0;
21
+ height: auto;
22
+ max-height: 100%;
23
+ }
24
+ .bui-drawer-content-right {
25
+ right: 0;
26
+ }
27
+ .bui-drawer-content-bottom {
28
+ bottom: 0;
29
+ top: auto;
30
+ left: 0;
31
+ /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
32
+ right: 0;
33
+ height: auto;
34
+ max-height: 100%;
35
+ }
@@ -0,0 +1,130 @@
1
+ .bui-icon-btn {
2
+ --bg-color: var(--bui-color-neutral-5);
3
+ --color: var(--bui-color-fg-muted);
4
+ --icon-size: 17px;
5
+ --user-area: 5px;
6
+ position: relative;
7
+ display: inline-flex;
8
+ height: auto;
9
+ margin: 0;
10
+ align-items: center;
11
+ justify-content: center;
12
+ background-color: transparent;
13
+ border: 1px solid transparent;
14
+ color: var(--color);
15
+ cursor: pointer;
16
+ font-family: var(--bui-font-family);
17
+ font-size: var(--icon-size);
18
+ padding: var(--user-area);
19
+ }
20
+ .bui-icon-btn::before {
21
+ position: absolute;
22
+ top: 50%;
23
+ left: 50%;
24
+ width: 100%;
25
+ height: 100%;
26
+ background-color: var(--bui-color-black);
27
+ border: inherit;
28
+ border-color: var(--bui-color-black);
29
+ border-radius: inherit;
30
+ transform: translate(-50%, -50%);
31
+ opacity: 0;
32
+ content: ' ';
33
+ }
34
+ .bui-icon-btn:active::before {
35
+ opacity: 0.04;
36
+ }
37
+ .bui-icon-btn::after {
38
+ border: 0;
39
+ }
40
+ .bui-icon-btn-small {
41
+ font-size: var(--bui-text-size-4);
42
+ padding: var(--bui-spacing-xs);
43
+ }
44
+ .bui-icon-btn-small.bui-icon-btn-outlined,
45
+ .bui-icon-btn-small.bui-icon-btn-contained {
46
+ padding: var(--bui-spacing-xs);
47
+ }
48
+ .bui-icon-btn-medium.bui-icon-btn-outlined,
49
+ .bui-icon-btn-medium.bui-icon-btn-contained {
50
+ padding: 5px;
51
+ }
52
+ .bui-icon-btn-large {
53
+ font-size: 23px;
54
+ padding: var(--bui-spacing-sm);
55
+ }
56
+ .bui-icon-btn-large.bui-icon-btn-outlined,
57
+ .bui-icon-btn-large.bui-icon-btn-contained {
58
+ padding: var(--bui-spacing-sm);
59
+ }
60
+ .bui-icon-btn-disabled {
61
+ pointer-events: none;
62
+ opacity: 0.5;
63
+ }
64
+ .bui-icon-btn-circular {
65
+ border-radius: 100%;
66
+ }
67
+ .bui-icon-btn-rounded {
68
+ border-radius: var(--bui-shape-radius-default);
69
+ }
70
+ .bui-icon-btn-square {
71
+ border-radius: 0;
72
+ }
73
+ .bui-icon-btn-default.bui-icon-btn-primary {
74
+ color: var(--bui-color-primary);
75
+ }
76
+ .bui-icon-btn-default.bui-icon-btn-success {
77
+ color: var(--bui-color-success);
78
+ }
79
+ .bui-icon-btn-default.bui-icon-btn-info {
80
+ color: var(--bui-color-info);
81
+ }
82
+ .bui-icon-btn-default.bui-icon-btn-warning {
83
+ color: var(--bui-color-warning);
84
+ }
85
+ .bui-icon-btn-outlined {
86
+ border: solid 1px;
87
+ }
88
+ .bui-icon-btn-outlined.bui-icon-btn-primary {
89
+ color: var(--bui-color-primary);
90
+ border-color: var(--bui-color-primary);
91
+ }
92
+ .bui-icon-btn-outlined.bui-icon-btn-success {
93
+ color: var(--bui-color-success);
94
+ border-color: var(--bui-color-success);
95
+ }
96
+ .bui-icon-btn-outlined.bui-icon-btn-info {
97
+ color: var(--bui-color-info);
98
+ border-color: var(--bui-color-info);
99
+ }
100
+ .bui-icon-btn-outlined.bui-icon-btn-warning {
101
+ color: var(--bui-color-warning);
102
+ border-color: var(--bui-color-warning);
103
+ }
104
+ .bui-icon-btn-outlined.bui-icon-btn-danger {
105
+ color: var(--bui-color-danger);
106
+ border-color: var(--bui-color-danger);
107
+ }
108
+ .bui-icon-btn-contained {
109
+ background-color: var(--bg-color);
110
+ }
111
+ .bui-icon-btn-contained.bui-icon-btn-primary {
112
+ color: var(--bui-color-white);
113
+ background-image: linear-gradient(45deg, var(--bui-color-primary-start) 0%, var(--bui-color-primary-end) 100%);
114
+ }
115
+ .bui-icon-btn-contained.bui-icon-btn-success {
116
+ color: var(--bui-color-white);
117
+ background-image: linear-gradient(45deg, var(--bui-color-success-start) 0%, var(--bui-color-success-end) 100%);
118
+ }
119
+ .bui-icon-btn-contained.bui-icon-btn-info {
120
+ color: var(--bui-color-white);
121
+ background-image: linear-gradient(45deg, var(--bui-color-info-start) 0%, var(--bui-color-info-end) 100%);
122
+ }
123
+ .bui-icon-btn-contained.bui-icon-btn-warning {
124
+ color: var(--bui-color-white);
125
+ background-image: linear-gradient(45deg, var(--bui-color-warning-start) 0%, var(--bui-color-warning-end) 100%);
126
+ }
127
+ .bui-icon-btn-contained.bui-icon-btn-danger {
128
+ color: var(--bui-color-white);
129
+ background-image: linear-gradient(45deg, var(--bui-color-danger-start) 0%, var(--bui-color-danger-end) 100%);
130
+ }
@@ -0,0 +1,35 @@
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 .bui-image-img {
10
+ width: 100%;
11
+ height: 100%;
12
+ overflow: hidden;
13
+ display: block;
14
+ opacity: 0;
15
+ }
16
+ .bui-image .bui-image-img.bui-image-loaded {
17
+ opacity: 1;
18
+ }
19
+ .bui-image-default-icon-wrap {
20
+ top: 0;
21
+ left: 0;
22
+ z-index: 1;
23
+ opacity: 1;
24
+ position: absolute;
25
+ width: 100%;
26
+ height: 100%;
27
+ }
28
+ .bui-image-default-icon-wrap.bui-image-loaded {
29
+ opacity: 0;
30
+ }
31
+ .bui-image-default-icon-item {
32
+ width: 100%;
33
+ height: 100%;
34
+ background-color: rgba(127, 127, 127, 0.2);
35
+ }
@@ -0,0 +1,59 @@
1
+ .bui-input {
2
+ position: relative;
3
+ display: flex;
4
+ align-items: center;
5
+ height: 32px;
6
+ padding: 4px 10px;
7
+ box-sizing: border-box;
8
+ border-radius: var(--bui-shape-radius-default);
9
+ border: 1px solid var(--bui-color-border-default);
10
+ font-family: var(--bui-font-family);
11
+ }
12
+ .bui-input-icon {
13
+ display: flex;
14
+ align-items: center;
15
+ color: var(--bui-color-fg-subtle);
16
+ font-size: var(--bui-title-size-3);
17
+ }
18
+ .bui-input-icon-start {
19
+ margin-right: 3px;
20
+ }
21
+ .bui-input-icon-end {
22
+ margin-left: 3px;
23
+ }
24
+ .bui-input-input {
25
+ flex: 1;
26
+ display: flex;
27
+ align-items: center;
28
+ padding: 0;
29
+ height: 100%;
30
+ color: var(--bui-color-fg-default);
31
+ border: none;
32
+ outline: none;
33
+ background-color: transparent;
34
+ font-size: var(--bui-text-size-2);
35
+ }
36
+ .bui-input-input::placeholder {
37
+ color: var(--bui-color-fg-subtle);
38
+ }
39
+ .bui-input-disabled {
40
+ pointer-events: none;
41
+ background-color: rgba(0, 0, 0, 0.04);
42
+ }
43
+ .bui-input-disabled .bui-input-input {
44
+ color: var(--bui-color-fg-disabled);
45
+ }
46
+ .bui-input-disabled .bui-input-input::placeholder {
47
+ color: var(--bui-color-fg-disabled);
48
+ }
49
+ .bui-input-clear {
50
+ display: flex;
51
+ align-items: center;
52
+ cursor: pointer;
53
+ color: var(--bui-color-fg-disabled);
54
+ height: 100%;
55
+ font-size: var(--bui-title-size-3);
56
+ }
57
+ .bui-input .bui-mini-placeholder {
58
+ width: auto;
59
+ }
@@ -4,7 +4,6 @@
4
4
  font-family: var(--bui-font-family);
5
5
  list-style: none;
6
6
  }
7
-
8
7
  .bui-list .bui-divider:last-of-type {
9
8
  display: none;
10
9
  }
@@ -4,31 +4,20 @@
4
4
  align-items: center;
5
5
  font-family: var(--bui-font-family);
6
6
  }
7
-
8
7
  .bui-list-item-disabled {
9
8
  pointer-events: none;
10
9
  background-color: var(--bui-color-bg-default);
11
10
  color: var(--bui-color-fg-subtle);
12
11
  }
13
-
14
- .bui-list-small {
15
- .bui-list-item {
16
- padding: 5px 12px;
17
- }
12
+ .bui-list-small .bui-list-item {
13
+ padding: 5px 12px;
18
14
  }
19
-
20
- .bui-list-medium {
21
- .bui-list-item {
22
- padding: 18px 12px;
23
- }
15
+ .bui-list-medium .bui-list-item {
16
+ padding: 18px 12px;
24
17
  }
25
-
26
- .bui-list-large {
27
- .bui-list-item {
28
- padding: 20px 12px;
29
- }
18
+ .bui-list-large .bui-list-item {
19
+ padding: 20px 12px;
30
20
  }
31
-
32
21
  .bui-list-item-divider:not(:last-child) {
33
22
  border-bottom: 1px solid var(--bui-color-border-default);
34
23
  }
@@ -6,17 +6,12 @@
6
6
  width: 100%;
7
7
  font-family: var(--bui-font-family);
8
8
  }
9
-
10
- .bui-list-small {
11
- .bui-list-item-content {
12
- font-size: var(--bui-text-size-2);
13
- }
9
+ .bui-list-small .bui-list-item-content {
10
+ font-size: var(--bui-text-size-2);
14
11
  }
15
-
16
12
  .bui-list-item-content-primary {
17
13
  flex: 1 1 auto;
18
14
  }
19
-
20
15
  .bui-list-item-content-secondary {
21
16
  font-size: 13px;
22
17
  color: var(--bui-color-fg-muted);
@@ -3,8 +3,7 @@
3
3
  display: flex;
4
4
  align-items: center;
5
5
  font-family: var(--bui-font-family);
6
-
7
- .bui-svg-icon {
8
- color: var(--bui-color-fg-subtle);
9
- }
6
+ }
7
+ .bui-list-item-footer .bui-svg-icon {
8
+ color: var(--bui-color-fg-subtle);
10
9
  }
@@ -0,0 +1,31 @@
1
+ .bui-loading {
2
+ --animation-duration: var(--bui-loading-animation-duration, 1.6s);
3
+ width: fit-content;
4
+ display: flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ padding: var(--bui-spacing-md);
8
+ font-family: var(--bui-font-family);
9
+ }
10
+ .bui-loading-icon {
11
+ font-size: 30px;
12
+ animation: loading var(--animation-duration) linear infinite;
13
+ }
14
+ .bui-loading-text {
15
+ padding: 10px;
16
+ font-size: var(--bui-title-size-3);
17
+ }
18
+ .bui-loading-vertical {
19
+ flex-direction: row;
20
+ }
21
+ .bui-loading-horizontal {
22
+ flex-direction: column;
23
+ }
24
+ @keyframes loading {
25
+ 0% {
26
+ transform: rotate(0deg);
27
+ }
28
+ 100% {
29
+ transform: rotate(360deg);
30
+ }
31
+ }
@@ -6,12 +6,10 @@
6
6
  top: 0;
7
7
  z-index: var(--bui-z-index-modal);
8
8
  font-family: var(--bui-font-family);
9
-
10
- &-exited {
11
- visibility: hidden;
12
- }
13
-
14
- &-backdrop {
15
- z-index: -1;
16
- }
9
+ }
10
+ .bui-modal-exited {
11
+ visibility: hidden;
12
+ }
13
+ .bui-modal-backdrop {
14
+ z-index: -1;
17
15
  }
@@ -10,7 +10,7 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
10
10
  disableScrollLock?: boolean;
11
11
  disablePortal?: boolean;
12
12
  keepMounted?: boolean;
13
- } & import("../../../bui-types/src").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
+ } & import("packages/bui-types/src").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
14
  ref?: React.Ref<HTMLDivElement>;
15
- }, "open" | keyof import("../../../bui-types/src").ICommonProps | "container" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ }, keyof import("packages/bui-types/src").ICommonProps | "open" | "container" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
16
  export default Modal;
@@ -0,0 +1,57 @@
1
+ .bui-navbar {
2
+ --height: var(--bui-navbar-height, 45px);
3
+ --icon-size: var(--bui-navbar-icon-size, 24px);
4
+ --background-color: var(--bui-navbar-background-color, var(--bui-color-white));
5
+ --border-bottom: var(--bui-navbar-border-bottom, none);
6
+ --z-index: var(--bui-navbar-z-index, auto);
7
+ position: relative;
8
+ width: 100%;
9
+ height: var(--height);
10
+ box-sizing: border-box;
11
+ padding: 0 8px;
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ background-color: var(--background-color);
16
+ border-bottom: var(--border-bottom);
17
+ user-select: none;
18
+ z-index: var(--z-index);
19
+ font-family: var(--bui-font-family);
20
+ }
21
+ .bui-navbar-fixed {
22
+ position: fixed;
23
+ top: 0;
24
+ left: 0;
25
+ width: 100%;
26
+ }
27
+ .bui-navbar-title {
28
+ max-width: 60%;
29
+ padding: 0 8px;
30
+ font-size: var(--bui-title-size-2);
31
+ width: auto;
32
+ overflow: hidden;
33
+ text-overflow: ellipsis;
34
+ white-space: nowrap;
35
+ }
36
+ .bui-navbar-left,
37
+ .bui-navbar-right {
38
+ flex: 1;
39
+ display: flex;
40
+ align-items: center;
41
+ font-size: var(--bui-title-size-3);
42
+ }
43
+ .bui-navbar-left {
44
+ justify-content: flex-start;
45
+ text-align: left;
46
+ }
47
+ .bui-navbar-right {
48
+ justify-content: flex-end;
49
+ text-align: right;
50
+ align-self: stretch;
51
+ }
52
+ .bui-navbar-icon {
53
+ font-size: var(--icon-size);
54
+ }
55
+ .bui-navbar-placeholder {
56
+ width: 100%;
57
+ }