@bifrostui/react 1.4.8-beta.0 → 2.0.0-beta.1

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 (313) hide show
  1. package/dist/ActionSheet/ActionSheet.css +2 -2
  2. package/dist/ActionSheet/ActionSheetItem.js +3 -8
  3. package/dist/Avatar/Avatar.js +3 -8
  4. package/dist/Avatar/AvatarGroup.js +2 -6
  5. package/dist/Badge/Badge.js +3 -8
  6. package/dist/Button/Button.css +77 -78
  7. package/dist/Button/Button.d.ts +1 -1
  8. package/dist/Button/Button.js +4 -10
  9. package/dist/Button/Button.types.d.ts +8 -7
  10. package/dist/Calendar/Calendar.js +7 -19
  11. package/dist/Calendar/Calendar.types.d.ts +0 -5
  12. package/dist/Card/Card.css +1 -1
  13. package/dist/Card/CardContent.css +1 -2
  14. package/dist/Card/CardFooter.css +2 -4
  15. package/dist/Card/CardHeader.css +4 -5
  16. package/dist/Checkbox/Checkbox.js +2 -6
  17. package/dist/Checkbox/CheckboxGroup.js +4 -7
  18. package/dist/Collapse/Collapse.css +1 -0
  19. package/dist/Collapse/Collapse.d.ts +1 -1
  20. package/dist/Collapse/Collapse.js +8 -11
  21. package/dist/CollapsePanel/CollapsePanel.css +2 -4
  22. package/dist/CollapsePanel/CollapsePanelItem.js +45 -46
  23. package/dist/Countdown/Countdown.js +5 -12
  24. package/dist/Dialog/FunctionalDialog.js +1 -1
  25. package/dist/Divider/Divider.js +8 -5
  26. package/dist/Drawer/Drawer.js +4 -10
  27. package/dist/Fade/Fade.js +52 -56
  28. package/dist/IconButton/IconButton.js +5 -12
  29. package/dist/Image/Image.js +112 -119
  30. package/dist/Input/Input.js +4 -10
  31. package/dist/List/List.js +3 -8
  32. package/dist/List/ListItem.js +42 -44
  33. package/dist/List/ListItemContent.js +1 -4
  34. package/dist/List/ListItemExtra.js +9 -4
  35. package/dist/List/ListItemFooter.js +9 -4
  36. package/dist/List/ListItemHeader.js +9 -4
  37. package/dist/Loading/Loading.js +13 -4
  38. package/dist/Modal/Modal.js +0 -6
  39. package/dist/Modal/Modal.miniapp.js +4 -10
  40. package/dist/NavBar/NavBar.js +0 -1
  41. package/dist/Picker/Picker.css +0 -5
  42. package/dist/Picker/Picker.js +5 -27
  43. package/dist/Picker/Picker.types.d.ts +2 -15
  44. package/dist/Picker/PickerPanel.css +0 -4
  45. package/dist/Picker/PickerPanel.js +6 -7
  46. package/dist/Popover/Popover.css +5 -5
  47. package/dist/Popover/Popover.js +27 -70
  48. package/dist/Portal/Portal.miniapp.js +4 -7
  49. package/dist/Radio/Radio.css +0 -1
  50. package/dist/Radio/Radio.js +2 -6
  51. package/dist/Radio/RadioGroup.js +0 -3
  52. package/dist/Rating/Rating.js +8 -18
  53. package/dist/ScrollView/ScrollView.js +11 -24
  54. package/dist/ScrollView/ScrollView.types.d.ts +1 -0
  55. package/dist/Select/Select.css +4 -1
  56. package/dist/Select/Select.js +41 -68
  57. package/dist/Skeleton/Skeleton.js +5 -9
  58. package/dist/Slide/Slide.js +69 -74
  59. package/dist/Slider/Slider.js +11 -27
  60. package/dist/Steps/Step.js +81 -82
  61. package/dist/Steps/Steps.d.ts +1 -1
  62. package/dist/Steps/Steps.js +57 -60
  63. package/dist/Switch/Switch.js +75 -78
  64. package/dist/TabBar/TabBar.js +3 -8
  65. package/dist/Tabs/Tab.css +10 -16
  66. package/dist/Tabs/Tab.js +2 -3
  67. package/dist/Tabs/Tabs.css +13 -22
  68. package/dist/Tabs/Tabs.js +39 -70
  69. package/dist/Tabs/Tabs.types.d.ts +0 -10
  70. package/dist/Tabs/utils/bound.d.ts +1 -0
  71. package/dist/{DesktopPicker/utils/calcAfterMounted.js → Tabs/utils/bound.js} +14 -7
  72. package/dist/Tag/Tag.css +1 -1
  73. package/dist/Tag/Tag.js +2 -6
  74. package/dist/TextArea/TextArea.js +5 -12
  75. package/dist/Toast/FunctionalToast.js +1 -1
  76. package/dist/Toast/Toast.css +1 -0
  77. package/dist/Tooltip/Tooltip.css +5 -5
  78. package/dist/Tooltip/Tooltip.js +27 -70
  79. package/dist/Transition/TransitionCore.js +3 -8
  80. package/dist/index.d.ts +0 -6
  81. package/dist/index.js +1 -13
  82. package/dist/locales/base.d.ts +0 -11
  83. package/dist/locales/en-US.js +0 -24
  84. package/dist/locales/zh-CN.js +0 -24
  85. package/dist/locales/zh-TW.js +0 -24
  86. package/es/ActionSheet/ActionSheet.css +2 -2
  87. package/es/ActionSheet/ActionSheetItem.js +3 -8
  88. package/es/Avatar/Avatar.js +3 -8
  89. package/es/Avatar/AvatarGroup.js +2 -6
  90. package/es/Badge/Badge.js +3 -8
  91. package/es/Button/Button.css +77 -78
  92. package/es/Button/Button.d.ts +1 -1
  93. package/es/Button/Button.js +3 -9
  94. package/es/Button/Button.types.d.ts +8 -7
  95. package/es/Calendar/Calendar.js +7 -19
  96. package/es/Calendar/Calendar.types.d.ts +0 -5
  97. package/es/Card/Card.css +1 -1
  98. package/es/Card/CardContent.css +1 -2
  99. package/es/Card/CardFooter.css +2 -4
  100. package/es/Card/CardHeader.css +4 -5
  101. package/es/Checkbox/Checkbox.js +2 -6
  102. package/es/Checkbox/CheckboxGroup.js +4 -7
  103. package/es/Collapse/Collapse.css +1 -0
  104. package/es/Collapse/Collapse.d.ts +1 -1
  105. package/es/Collapse/Collapse.js +8 -11
  106. package/es/CollapsePanel/CollapsePanel.css +2 -4
  107. package/es/CollapsePanel/CollapsePanelItem.js +45 -46
  108. package/es/Countdown/Countdown.js +5 -12
  109. package/es/Dialog/FunctionalDialog.js +2 -2
  110. package/es/Divider/Divider.js +8 -5
  111. package/es/Drawer/Drawer.js +4 -10
  112. package/es/Fade/Fade.js +52 -56
  113. package/es/IconButton/IconButton.js +5 -12
  114. package/es/Image/Image.js +112 -119
  115. package/es/Input/Input.js +4 -10
  116. package/es/List/List.js +3 -8
  117. package/es/List/ListItem.js +42 -44
  118. package/es/List/ListItemContent.js +1 -4
  119. package/es/List/ListItemExtra.js +9 -4
  120. package/es/List/ListItemFooter.js +9 -4
  121. package/es/List/ListItemHeader.js +9 -4
  122. package/es/Loading/Loading.js +13 -4
  123. package/es/Modal/Modal.js +0 -6
  124. package/es/Modal/Modal.miniapp.d.ts +1 -1
  125. package/es/Modal/Modal.miniapp.js +4 -10
  126. package/es/NavBar/NavBar.js +0 -1
  127. package/es/Picker/Picker.css +0 -5
  128. package/es/Picker/Picker.js +5 -27
  129. package/es/Picker/Picker.types.d.ts +2 -15
  130. package/es/Picker/PickerPanel.css +0 -4
  131. package/es/Picker/PickerPanel.js +6 -7
  132. package/es/Popover/Popover.css +5 -5
  133. package/es/Popover/Popover.js +29 -73
  134. package/es/Portal/Portal.miniapp.js +5 -8
  135. package/es/Radio/Radio.css +0 -1
  136. package/es/Radio/Radio.js +2 -6
  137. package/es/Radio/RadioGroup.js +0 -3
  138. package/es/Rating/Rating.js +8 -18
  139. package/es/ScrollView/ScrollView.js +11 -24
  140. package/es/ScrollView/ScrollView.types.d.ts +1 -0
  141. package/es/Select/Select.css +4 -1
  142. package/es/Select/Select.js +42 -68
  143. package/es/Skeleton/Skeleton.js +5 -9
  144. package/es/Slide/Slide.js +69 -74
  145. package/es/Slider/Slider.js +12 -30
  146. package/es/Steps/Step.js +81 -82
  147. package/es/Steps/Steps.d.ts +1 -1
  148. package/es/Steps/Steps.js +57 -60
  149. package/es/Switch/Switch.js +75 -78
  150. package/es/TabBar/TabBar.js +3 -8
  151. package/es/Tabs/Tab.css +10 -16
  152. package/es/Tabs/Tab.js +2 -3
  153. package/es/Tabs/Tabs.css +13 -22
  154. package/es/Tabs/Tabs.js +41 -83
  155. package/es/Tabs/Tabs.types.d.ts +0 -10
  156. package/es/Tabs/utils/bound.d.ts +1 -0
  157. package/es/Tabs/utils/bound.js +13 -0
  158. package/es/Tag/Tag.css +1 -1
  159. package/es/Tag/Tag.js +2 -6
  160. package/es/TextArea/TextArea.js +5 -12
  161. package/es/Toast/FunctionalToast.js +2 -2
  162. package/es/Toast/Toast.css +1 -0
  163. package/es/Tooltip/Tooltip.css +5 -5
  164. package/es/Tooltip/Tooltip.js +29 -73
  165. package/es/Transition/TransitionCore.js +3 -8
  166. package/es/index.d.ts +0 -6
  167. package/es/index.js +0 -6
  168. package/es/locales/base.d.ts +0 -11
  169. package/es/locales/en-US.js +0 -24
  170. package/es/locales/zh-CN.js +0 -24
  171. package/es/locales/zh-TW.js +0 -24
  172. package/package.json +6 -6
  173. package/dist/Collapse/Collapse.miniapp.d.ts +0 -5
  174. package/dist/Collapse/Collapse.miniapp.js +0 -177
  175. package/dist/DatePicker/DatePicker.d.ts +0 -4
  176. package/dist/DatePicker/DatePicker.js +0 -335
  177. package/dist/DatePicker/DatePicker.types.d.ts +0 -36
  178. package/dist/DatePicker/DatePicker.types.js +0 -15
  179. package/dist/DatePicker/constants.d.ts +0 -9
  180. package/dist/DatePicker/constants.js +0 -37
  181. package/dist/DatePicker/index.d.ts +0 -3
  182. package/dist/DatePicker/index.js +0 -44
  183. package/dist/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
  184. package/dist/DesktopDatePicker/DesktopDatePicker.js +0 -280
  185. package/dist/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -163
  186. package/dist/DesktopDatePicker/DesktopDatePicker.types.js +0 -15
  187. package/dist/DesktopDatePicker/deskTopPickerContainer.css +0 -100
  188. package/dist/DesktopDatePicker/index.css +0 -61
  189. package/dist/DesktopDatePicker/index.d.ts +0 -2
  190. package/dist/DesktopDatePicker/index.js +0 -41
  191. package/dist/DesktopDatePicker/useGetDatePickerContent.d.ts +0 -6
  192. package/dist/DesktopDatePicker/useGetDatePickerContent.js +0 -343
  193. package/dist/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -5
  194. package/dist/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -322
  195. package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -163
  196. package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -15
  197. package/dist/DesktopDateTimePicker/index.css +0 -66
  198. package/dist/DesktopDateTimePicker/index.d.ts +0 -2
  199. package/dist/DesktopDateTimePicker/index.js +0 -41
  200. package/dist/DesktopPicker/DesktopPicker.d.ts +0 -5
  201. package/dist/DesktopPicker/DesktopPicker.js +0 -238
  202. package/dist/DesktopPicker/DesktopPicker.types.d.ts +0 -57
  203. package/dist/DesktopPicker/DesktopPicker.types.js +0 -15
  204. package/dist/DesktopPicker/index.css +0 -37
  205. package/dist/DesktopPicker/index.d.ts +0 -2
  206. package/dist/DesktopPicker/index.js +0 -41
  207. package/dist/DesktopPicker/utils/calcAfterMounted.d.ts +0 -2
  208. package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +0 -2
  209. package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.js +0 -38
  210. package/dist/DesktopTimePicker/DesktopTimePicker.d.ts +0 -5
  211. package/dist/DesktopTimePicker/DesktopTimePicker.js +0 -288
  212. package/dist/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -182
  213. package/dist/DesktopTimePicker/DesktopTimePicker.types.js +0 -15
  214. package/dist/DesktopTimePicker/DesktopTimePickerList.d.ts +0 -4
  215. package/dist/DesktopTimePicker/DesktopTimePickerList.js +0 -111
  216. package/dist/DesktopTimePicker/index.css +0 -170
  217. package/dist/DesktopTimePicker/index.d.ts +0 -2
  218. package/dist/DesktopTimePicker/index.js +0 -41
  219. package/dist/DesktopTimePicker/useGetTimePickerContent.d.ts +0 -6
  220. package/dist/DesktopTimePicker/useGetTimePickerContent.js +0 -249
  221. package/dist/DesktopTimePicker/utils/scrollUtil.d.ts +0 -2
  222. package/dist/DesktopTimePicker/utils/scrollUtil.js +0 -27
  223. package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +0 -2
  224. package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.js +0 -51
  225. package/dist/DesktopTimePicker/utils/utils.d.ts +0 -28
  226. package/dist/DesktopTimePicker/utils/utils.js +0 -408
  227. package/dist/SwipeAction/SwipeAction.css +0 -79
  228. package/dist/SwipeAction/SwipeAction.d.ts +0 -5
  229. package/dist/SwipeAction/SwipeAction.js +0 -349
  230. package/dist/SwipeAction/SwipeAction.types.d.ts +0 -75
  231. package/dist/SwipeAction/SwipeAction.types.js +0 -15
  232. package/dist/SwipeAction/SwipeActionContext.d.ts +0 -4
  233. package/dist/SwipeAction/SwipeActionContext.js +0 -30
  234. package/dist/SwipeAction/SwipeActionItem.css +0 -31
  235. package/dist/SwipeAction/SwipeActionItem.d.ts +0 -5
  236. package/dist/SwipeAction/SwipeActionItem.js +0 -105
  237. package/dist/SwipeAction/constants.d.ts +0 -9
  238. package/dist/SwipeAction/constants.js +0 -39
  239. package/dist/SwipeAction/index.d.ts +0 -5
  240. package/dist/SwipeAction/index.js +0 -50
  241. package/dist/Tabs/utils/scroll.d.ts +0 -2
  242. package/dist/Tabs/utils/scroll.js +0 -55
  243. package/es/Collapse/Collapse.miniapp.d.ts +0 -5
  244. package/es/Collapse/Collapse.miniapp.js +0 -157
  245. package/es/DatePicker/DatePicker.d.ts +0 -4
  246. package/es/DatePicker/DatePicker.js +0 -308
  247. package/es/DatePicker/DatePicker.types.d.ts +0 -36
  248. package/es/DatePicker/DatePicker.types.js +0 -1
  249. package/es/DatePicker/constants.d.ts +0 -9
  250. package/es/DatePicker/constants.js +0 -14
  251. package/es/DatePicker/index.d.ts +0 -3
  252. package/es/DatePicker/index.js +0 -8
  253. package/es/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
  254. package/es/DesktopDatePicker/DesktopDatePicker.js +0 -253
  255. package/es/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -163
  256. package/es/DesktopDatePicker/DesktopDatePicker.types.js +0 -1
  257. package/es/DesktopDatePicker/deskTopPickerContainer.css +0 -100
  258. package/es/DesktopDatePicker/index.css +0 -61
  259. package/es/DesktopDatePicker/index.d.ts +0 -2
  260. package/es/DesktopDatePicker/index.js +0 -6
  261. package/es/DesktopDatePicker/useGetDatePickerContent.d.ts +0 -6
  262. package/es/DesktopDatePicker/useGetDatePickerContent.js +0 -316
  263. package/es/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -5
  264. package/es/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -295
  265. package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -163
  266. package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -1
  267. package/es/DesktopDateTimePicker/index.css +0 -66
  268. package/es/DesktopDateTimePicker/index.d.ts +0 -2
  269. package/es/DesktopDateTimePicker/index.js +0 -9
  270. package/es/DesktopPicker/DesktopPicker.d.ts +0 -5
  271. package/es/DesktopPicker/DesktopPicker.js +0 -221
  272. package/es/DesktopPicker/DesktopPicker.types.d.ts +0 -57
  273. package/es/DesktopPicker/DesktopPicker.types.js +0 -1
  274. package/es/DesktopPicker/index.css +0 -37
  275. package/es/DesktopPicker/index.d.ts +0 -2
  276. package/es/DesktopPicker/index.js +0 -6
  277. package/es/DesktopPicker/utils/calcAfterMounted.d.ts +0 -2
  278. package/es/DesktopPicker/utils/calcAfterMounted.js +0 -6
  279. package/es/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +0 -2
  280. package/es/DesktopPicker/utils/calcAfterMounted.miniapp.js +0 -9
  281. package/es/DesktopTimePicker/DesktopTimePicker.d.ts +0 -5
  282. package/es/DesktopTimePicker/DesktopTimePicker.js +0 -261
  283. package/es/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -182
  284. package/es/DesktopTimePicker/DesktopTimePicker.types.js +0 -1
  285. package/es/DesktopTimePicker/DesktopTimePickerList.d.ts +0 -4
  286. package/es/DesktopTimePicker/DesktopTimePickerList.js +0 -84
  287. package/es/DesktopTimePicker/index.css +0 -170
  288. package/es/DesktopTimePicker/index.d.ts +0 -2
  289. package/es/DesktopTimePicker/index.js +0 -6
  290. package/es/DesktopTimePicker/useGetTimePickerContent.d.ts +0 -6
  291. package/es/DesktopTimePicker/useGetTimePickerContent.js +0 -226
  292. package/es/DesktopTimePicker/utils/scrollUtil.d.ts +0 -2
  293. package/es/DesktopTimePicker/utils/scrollUtil.js +0 -8
  294. package/es/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +0 -2
  295. package/es/DesktopTimePicker/utils/scrollUtil.miniapp.js +0 -22
  296. package/es/DesktopTimePicker/utils/utils.d.ts +0 -28
  297. package/es/DesktopTimePicker/utils/utils.js +0 -365
  298. package/es/SwipeAction/SwipeAction.css +0 -79
  299. package/es/SwipeAction/SwipeAction.d.ts +0 -5
  300. package/es/SwipeAction/SwipeAction.js +0 -334
  301. package/es/SwipeAction/SwipeAction.types.d.ts +0 -75
  302. package/es/SwipeAction/SwipeAction.types.js +0 -1
  303. package/es/SwipeAction/SwipeActionContext.d.ts +0 -4
  304. package/es/SwipeAction/SwipeActionContext.js +0 -11
  305. package/es/SwipeAction/SwipeActionItem.css +0 -31
  306. package/es/SwipeAction/SwipeActionItem.d.ts +0 -5
  307. package/es/SwipeAction/SwipeActionItem.js +0 -78
  308. package/es/SwipeAction/constants.d.ts +0 -9
  309. package/es/SwipeAction/constants.js +0 -15
  310. package/es/SwipeAction/index.d.ts +0 -5
  311. package/es/SwipeAction/index.js +0 -12
  312. package/es/Tabs/utils/scroll.d.ts +0 -2
  313. package/es/Tabs/utils/scroll.js +0 -36
@@ -1,7 +1,7 @@
1
1
  .bui-action-sheet {
2
2
  --extra-line-height: var(--bui-action-sheet-extra-line-height, 23px);
3
3
  --extra-padding: var(--bui-action-sheet-extra-padding, var(--bui-spacing-xl));
4
- --extra-magin: var(--bui-action-sheet-extra-magin, 0 var(--bui-spacing-xl));
4
+ --extra-margin: var(--bui-action-sheet-extra-margin, 0 var(--bui-spacing-xl));
5
5
  font-family: var(--bui-font-family);
6
6
  }
7
7
  .bui-action-sheet-content {
@@ -26,5 +26,5 @@
26
26
  background: var(--bui-color-bg-view);
27
27
  text-align: center;
28
28
  border-bottom: 1px solid var(--bui-color-border-default);
29
- margin: var(--extra-magin);
29
+ margin: var(--extra-margin);
30
30
  }
@@ -66,9 +66,9 @@ const ActionSheetItem = /* @__PURE__ */ import_react.default.forwardRef(
66
66
  const _a = props, {
67
67
  className,
68
68
  children,
69
- disabled,
70
- bold,
71
- color,
69
+ disabled = false,
70
+ bold = false,
71
+ color = "default",
72
72
  description,
73
73
  onClick,
74
74
  index
@@ -111,9 +111,4 @@ const ActionSheetItem = /* @__PURE__ */ import_react.default.forwardRef(
111
111
  }
112
112
  );
113
113
  ActionSheetItem.displayName = "BuiActionSheetItem";
114
- ActionSheetItem.defaultProps = {
115
- color: "default",
116
- disabled: false,
117
- bold: false
118
- };
119
114
  var ActionSheetItem_default = ActionSheetItem;
@@ -73,10 +73,10 @@ const Avatar = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
73
73
  children,
74
74
  src,
75
75
  lazy,
76
- variant,
77
- size,
76
+ variant = "rounded",
77
+ size = "medium",
78
78
  alt,
79
- fit,
79
+ fit = "cover",
80
80
  placeholder,
81
81
  ImageProps
82
82
  } = _a, others = __objRest(_a, [
@@ -126,9 +126,4 @@ const Avatar = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
126
126
  );
127
127
  });
128
128
  Avatar.displayName = "BuiAvatar";
129
- Avatar.defaultProps = {
130
- variant: "rounded",
131
- size: "medium",
132
- fit: "cover"
133
- };
134
129
  var Avatar_default = Avatar;
@@ -71,8 +71,8 @@ const AvatarGroup = /* @__PURE__ */ import_react.default.forwardRef(
71
71
  maxCount,
72
72
  variant,
73
73
  spacing,
74
- size,
75
- orientation,
74
+ size = "medium",
75
+ orientation = "right",
76
76
  children,
77
77
  onClick
78
78
  } = _a, others = __objRest(_a, [
@@ -120,8 +120,4 @@ const AvatarGroup = /* @__PURE__ */ import_react.default.forwardRef(
120
120
  }
121
121
  );
122
122
  AvatarGroup.displayName = "BuiAvatarGroup";
123
- AvatarGroup.defaultProps = {
124
- size: "medium",
125
- orientation: "right"
126
- };
127
123
  var AvatarGroup_default = AvatarGroup;
@@ -66,10 +66,10 @@ const Badge = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
66
66
  onClick,
67
67
  children,
68
68
  content,
69
- color,
69
+ color = "primary",
70
70
  maxCount,
71
- variant,
72
- type
71
+ variant = "contained",
72
+ type = "standard"
73
73
  } = _a, others = __objRest(_a, [
74
74
  "className",
75
75
  "onClick",
@@ -105,9 +105,4 @@ const Badge = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
105
105
  );
106
106
  });
107
107
  Badge.displayName = "BuiBadge";
108
- Badge.defaultProps = {
109
- color: "primary",
110
- variant: "contained",
111
- type: "standard"
112
- };
113
108
  var Badge_default = Badge;
@@ -1,27 +1,6 @@
1
1
  .bui-btn {
2
- --border-radius: var(--bui-button-border-radius, 100px);
3
- --text-color: var(--bui-button-text-color, var(--bui-color-fg-muted));
4
- --bg-color: var(--bui-button-default-bg-color, var(--bui-color-neutral-5));
5
- --border-color: var(--bui-button-border-color, var(--bui-color-neutral-4));
6
- --height: var(--bui-button-height, 27px);
7
- --icon-start-margin-right: var(--bui-button-icon-start-margin-right, var(--bui-spacing-xs));
8
- --icon-start-margin-left: var(--bui-button-icon-start-margin-left, var(--bui-spacing-xs));
9
- --default-border: var(--bui-button-default-border, 1px solid transparent);
10
- --light-border: var(--bui-button-light-border, 1px solid transparent);
11
- --outlined-default-border: var(--bui-button-outlined-default-border, 1px solid var(--bui-color-neutral-4));
12
- --disabled-opacity: var(--bui-button-disabled-opacity, 0.5);
13
- --small-padding: var(--bui-button-small-padding, 0 11px);
14
- --small-height: var(--bui-button-small-height, 24px);
15
- --medium-padding: var(--bui-button-medium-padding, 0 14px);
16
- --large-padding: var(--bui-button-large-padding, 0 14px);
17
- --large-height: var(--bui-button-large-height, 33px);
18
- --full-font-size: var(--bui-button-full-font-size, var(--bui-title-size-4));
19
- --full-height: var(--bui-button-full-height, 42px);
20
- border: var(--default-border);
21
2
  outline: 0;
22
- background-color: transparent;
23
3
  cursor: pointer;
24
- color: var(--text-color);
25
4
  box-sizing: border-box;
26
5
  position: relative;
27
6
  display: inline-flex;
@@ -29,12 +8,17 @@
29
8
  align-items: center;
30
9
  justify-content: center;
31
10
  white-space: nowrap;
32
- font-size: var(--bui-text-size-3);
33
- font-weight: var(--bui-font-weight-medium);
34
- border-radius: var(--border-radius);
35
- height: var(--height);
11
+ color: var(--bui-btn-color);
12
+ background: var(--bui-btn-bg);
13
+ font-size: var(--bui-btn-font-size);
14
+ font-weight: var(--bui-btn-font-weight);
15
+ border: var(--bui-btn-border);
16
+ border-radius: var(--bui-btn-border-radius);
17
+ height: var(--bui-btn-height);
18
+ padding: var(--bui-btn-padding);
36
19
  line-height: var(--bui-line-height);
37
- font-family: var(--bui-font-family);
20
+ font-family: var(--bui-btn-font-family);
21
+ opacity: var(--bui-btn-opacity);
38
22
  }
39
23
  @keyframes spin {
40
24
  from {
@@ -68,57 +52,61 @@
68
52
  display: inline-flex;
69
53
  align-self: center;
70
54
  flex-shrink: 0;
71
- margin-right: var(--icon-start-margin-right);
55
+ margin-right: var(--bui-spacing-xs);
72
56
  }
73
57
  .bui-btn-icon-end {
74
58
  display: inline-flex;
75
59
  align-self: center;
76
60
  flex-shrink: 0;
77
- margin-left: var(--icon-start-margin-left);
61
+ margin-left: var(--bui-spacing-xs);
78
62
  }
79
63
  .bui-btn-disabled {
80
64
  pointer-events: none;
81
- opacity: var(--disabled-opacity);
65
+ --bui-btn-opacity: 0.5;
82
66
  }
83
67
  .bui-btn-small {
84
- font-size: var(--bui-text-size-4);
85
- padding: var(--small-padding);
86
- height: var(--small-height);
87
- }
88
- .bui-btn-medium {
89
- padding: var(--medium-padding);
90
- height: var(--height);
68
+ --bui-btn-height: 24px;
69
+ --bui-btn-font-size: var(--bui-text-size-4);
70
+ --bui-btn-padding: 0 11px;
91
71
  }
92
72
  .bui-btn-large {
93
- font-size: var(--bui-text-size-2);
94
- padding: var(--large-padding);
95
- height: var(--large-height);
73
+ --bui-btn-height: 33px;
74
+ --bui-btn-font-size: var(--bui-text-size-2);
96
75
  }
97
76
  .bui-btn-full {
98
- font-size: var(--full-font-size);
77
+ --bui-btn-height: 42px;
78
+ --bui-btn-font-size: var(--bui-title-size-4);
99
79
  width: 100%;
100
- height: var(--full-height);
80
+ }
81
+ .bui-btn-text {
82
+ --bui-btn-bg: none;
101
83
  }
102
84
  .bui-btn-text.bui-btn-primary {
103
- color: var(--bui-color-primary);
85
+ --bui-btn-color: var(--bui-color-primary);
104
86
  }
105
87
  .bui-btn-text.bui-btn-success {
106
- color: var(--bui-color-success);
88
+ --bui-btn-color: var(--bui-color-success);
107
89
  }
108
90
  .bui-btn-text.bui-btn-info {
109
- color: var(--bui-color-info);
91
+ --bui-btn-color: var(--bui-color-info);
110
92
  }
111
93
  .bui-btn-text.bui-btn-warning {
112
- color: var(--bui-color-warning);
94
+ --bui-btn-color: var(--bui-color-warning);
113
95
  }
114
96
  .bui-btn-text.bui-btn-danger {
115
- color: var(--bui-color-danger);
97
+ --bui-btn-color: var(--bui-color-danger);
98
+ }
99
+ .bui-btn-text.bui-btn-light {
100
+ --bui-btn-color: var(--bui-color-bg-view);
101
+ }
102
+ .bui-btn-text.bui-btn-dark {
103
+ --bui-btn-color: var(--bui-color-fg-default);
116
104
  }
117
105
  .bui-btn-text.bui-btn-vip {
118
- color: var(--bui-color-vip);
106
+ --bui-btn-color: var(--bui-color-vip);
119
107
  }
120
108
  .bui-btn-contained {
121
- background-color: var(--bg-color);
109
+ --bui-btn-bg: var(--bui-color-neutral-5);
122
110
  }
123
111
  .bui-btn-contained.bui-btn-primary {
124
112
  color: var(--bui-color-white);
@@ -160,16 +148,25 @@
160
148
  var(--bui-color-danger-start) 0%,
161
149
  var(--bui-color-danger-end) 100%);
162
150
  }
151
+ .bui-btn-contained.bui-btn-light {
152
+ --bui-btn-color: var(--bui-color-fg-default);
153
+ --bui-btn-bg: var(--bui-color-bg-view);
154
+ }
155
+ .bui-btn-contained.bui-btn-dark {
156
+ --bui-btn-color: var(--bui-color-bg-view);
157
+ --bui-btn-bg: var(--bui-color-fg-default);
158
+ }
163
159
  .bui-btn-contained.bui-btn-vip {
164
- color: #582331;
165
- background-image:
160
+ --bui-btn-color: #582331;
161
+ --bui-btn-bg:
166
162
  linear-gradient(
167
163
  90deg,
168
164
  var(--bui-color-vip-start) 3%,
169
165
  var(--bui-color-vip-end) 100%);
170
166
  }
171
167
  .bui-btn-outlined {
172
- border: var(--outlined-default-border);
168
+ --bui-btn-bg: transparent;
169
+ --bui-btn-border: 1px solid var(--bui-color-neutral-4);
173
170
  }
174
171
  .bui-btn-outlined.bui-btn-primary {
175
172
  color: var(--bui-color-primary);
@@ -191,47 +188,49 @@
191
188
  color: var(--bui-color-danger);
192
189
  border-color: var(--bui-color-danger);
193
190
  }
191
+ .bui-btn-outlined.bui-btn-light {
192
+ --bui-btn-color: var(--bui-color-bg-view);
193
+ --bui-btn-border: solid 1px var(--bui-color-bg-view);
194
+ }
195
+ .bui-btn-outlined.bui-btn-dark {
196
+ --bui-btn-color: var(--bui-color-fg-default);
197
+ --bui-btn-border: solid 1px var(--bui-color-fg-default);
198
+ }
194
199
  .bui-btn-outlined.bui-btn-vip {
195
200
  color: var(--bui-color-vip);
196
201
  border-color: var(--bui-color-vip);
197
202
  }
198
- .bui-btn-light {
199
- background-image: none;
200
- background-color: var(--bui-color-gray-light);
201
- border: var(--light-border);
203
+ .bui-btn-subtle {
204
+ --bui-btn-bg: var(--bui-color-gray-light);
202
205
  }
203
- .bui-btn-light.bui-btn-warning {
204
- background-image: none;
205
- border: var(--light-border);
206
+ .bui-btn-subtle.bui-btn-warning {
206
207
  color: var(--bui-color-warning);
207
- background-color: var(--bui-color-warning-light);
208
+ background: var(--bui-color-warning-light);
208
209
  }
209
- .bui-btn-light.bui-btn-primary {
210
- background-image: none;
211
- border: var(--light-border);
210
+ .bui-btn-subtle.bui-btn-primary {
212
211
  color: var(--bui-color-primary);
213
- background-color: var(--bui-color-primary-light);
212
+ background: var(--bui-color-primary-light);
214
213
  }
215
- .bui-btn-light.bui-btn-info {
216
- background-image: none;
217
- border: var(--light-border);
214
+ .bui-btn-subtle.bui-btn-info {
218
215
  color: var(--bui-color-info);
219
- background-color: var(--bui-color-info-light);
216
+ background: var(--bui-color-info-light);
220
217
  }
221
- .bui-btn-light.bui-btn-success {
222
- background-image: none;
223
- border: var(--light-border);
218
+ .bui-btn-subtle.bui-btn-success {
224
219
  color: var(--bui-color-success);
225
- background-color: var(--bui-color-success-light);
220
+ background: var(--bui-color-success-light);
226
221
  }
227
- .bui-btn-light.bui-btn-danger {
228
- background-image: none;
229
- border: var(--light-border);
222
+ .bui-btn-subtle.bui-btn-danger {
230
223
  color: var(--bui-color-danger);
231
- background-color: var(--bui-color-danger-light);
224
+ background: var(--bui-color-danger-light);
232
225
  }
233
- .bui-btn-light.bui-btn-vip {
234
- color: var(--bui-color-vip);
226
+ .bui-btn-subtle.bui-btn-light {
227
+ --bui-btn-color: var(--bui-color-bg-view);
228
+ }
229
+ .bui-btn-subtle.bui-btn-dark {
230
+ --bui-btn-color: var(--bui-color-fg-default);
231
+ }
232
+ .bui-btn-subtle.bui-btn-vip {
235
233
  position: relative;
236
- background-color: rgba(255, 134, 110, 0.3);
234
+ --bui-btn-color: var(--bui-color-vip);
235
+ --bui-btn-bg: rgba(255, 134, 110, 0.3);
237
236
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './Button.less';
3
2
  import { ButtonProps } from './Button.types';
3
+ import './Button.less';
4
4
  declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps<"button", {}>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
5
  export default Button;
@@ -58,7 +58,7 @@ __export(Button_exports, {
58
58
  module.exports = __toCommonJS(Button_exports);
59
59
  var import_clsx = __toESM(require("clsx"));
60
60
  var import_react = __toESM(require("react"));
61
- var import_Button = require("./Button.css");
61
+ var import_Button2 = require("./Button.css");
62
62
  const prefixCls = "bui-btn";
63
63
  const ButtonIcon = ({ children, iconPosition }) => {
64
64
  return /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-icon-${iconPosition}` }, children);
@@ -70,10 +70,10 @@ const Button = /* @__PURE__ */ import_react.default.forwardRef(
70
70
  children,
71
71
  startIcon,
72
72
  endIcon,
73
- size,
74
- variant,
73
+ size = "medium",
74
+ variant = "outlined",
75
75
  color,
76
- disabled
76
+ disabled = false
77
77
  } = _a, others = __objRest(_a, [
78
78
  "className",
79
79
  "children",
@@ -107,10 +107,4 @@ const Button = /* @__PURE__ */ import_react.default.forwardRef(
107
107
  }
108
108
  );
109
109
  Button.displayName = "BuiButton";
110
- Button.defaultProps = {
111
- size: "medium",
112
- variant: "outlined",
113
- color: "default",
114
- disabled: false
115
- };
116
110
  var Button_default = Button;
@@ -16,19 +16,20 @@ export type ButtonProps<D extends React.ElementType = 'button', P = {}> = Overri
16
16
  * @default 'medium'
17
17
  */
18
18
  size?: 'small' | 'medium' | 'large' | 'full';
19
- /** 按钮颜色
20
- * @default 'default'
19
+ /**
20
+ * 按钮颜色
21
+ * @default 'neutral'
21
22
  */
22
- color?: ThemeColor | 'default' | 'vip';
23
+ color?: ThemeColor | 'vip';
23
24
  /**
24
25
  * 按钮类型
25
26
  * - text: 文字按钮
26
- * - outlined: 描边按钮
27
- * - contained: 实心填充按钮
28
- * - light: 浅亮填充按钮
27
+ * - outlined: 线框按钮
28
+ * - contained: 填充按钮
29
+ * - subtle: 柔和按钮
29
30
  * @default 'outlined'
30
31
  */
31
- variant?: 'outlined' | 'text' | 'contained' | 'light';
32
+ variant?: 'outlined' | 'text' | 'contained' | 'subtle';
32
33
  /**
33
34
  * 在子元素前放在的内容
34
35
  */
@@ -64,13 +64,11 @@ var import_utils = require("@bifrostui/utils");
64
64
  var import_clsx = __toESM(require("clsx"));
65
65
  var import_dayjs = __toESM(require("dayjs"));
66
66
  var import_isoWeek = __toESM(require("dayjs/plugin/isoWeek"));
67
- var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat"));
68
67
  var import_react = __toESM(require("react"));
69
68
  var import_utils2 = require("./utils");
70
69
  var import_locales = require("../locales");
71
70
  var import_Calendar2 = require("./Calendar.css");
72
71
  import_dayjs.default.extend(import_isoWeek.default);
73
- import_dayjs.default.extend(import_customParseFormat.default);
74
72
  const classes = {
75
73
  root: "bui-calendar",
76
74
  handler: "bui-calendar-handler",
@@ -84,16 +82,15 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
84
82
  className,
85
83
  defaultValue,
86
84
  value,
87
- minDate,
88
- maxDate,
89
- mode,
90
- hideDaysOutsideCurrentMonth,
91
- headerBarFormat,
85
+ minDate = (0, import_dayjs.default)((0, import_dayjs.default)().format("YYYYMMDD")).add(0, "month").toDate(),
86
+ maxDate = (0, import_dayjs.default)((0, import_dayjs.default)().format("YYYYMMDD")).add(11, "month").toDate(),
87
+ mode = "single",
88
+ hideDaysOutsideCurrentMonth = false,
89
+ headerBarFormat = "YYYY/MM",
92
90
  headerBarLeftIcon,
93
91
  headerBarRightIcon,
94
92
  disabledDate,
95
- highlightDate,
96
- headerVisible = false,
93
+ highlightDate = "today",
97
94
  dateRender,
98
95
  weekRender,
99
96
  onMonthChange,
@@ -111,7 +108,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
111
108
  "headerBarRightIcon",
112
109
  "disabledDate",
113
110
  "highlightDate",
114
- "headerVisible",
115
111
  "dateRender",
116
112
  "weekRender",
117
113
  "onMonthChange",
@@ -326,7 +322,7 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
326
322
  }, others), {
327
323
  "data-mode": mode
328
324
  }), data),
329
- !headerVisible && /* @__PURE__ */ import_react.default.createElement("div", { className: classes.handler }, /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickPrev, className: `${classes.handler}-btn` }, headerBarIcon.left), /* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.handler}-text` }, (0, import_dayjs.default)(renderMonth).format(headerBarFormat)), /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickNext, className: `${classes.handler}-btn` }, headerBarIcon.right)),
325
+ /* @__PURE__ */ import_react.default.createElement("div", { className: classes.handler }, /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickPrev, className: `${classes.handler}-btn` }, headerBarIcon.left), /* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.handler}-text` }, (0, import_dayjs.default)(renderMonth).format(headerBarFormat)), /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickNext, className: `${classes.handler}-btn` }, headerBarIcon.right)),
330
326
  /* @__PURE__ */ import_react.default.createElement("div", { className: classes.week }, SUNDAY_WEEK_DATA == null ? void 0 : SUNDAY_WEEK_DATA.map((w) => {
331
327
  return weekRender ? weekRender(w) : /* @__PURE__ */ import_react.default.createElement("div", { key: w, className: `${classes.week}-item` }, w);
332
328
  })),
@@ -335,12 +331,4 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
335
331
  }
336
332
  );
337
333
  Calendar.displayName = "BuiCalendar";
338
- Calendar.defaultProps = {
339
- hideDaysOutsideCurrentMonth: false,
340
- headerBarFormat: "YYYY/MM",
341
- mode: "single",
342
- minDate: (0, import_dayjs.default)((0, import_dayjs.default)().format("YYYYMMDD")).add(0, "month").toDate(),
343
- maxDate: (0, import_dayjs.default)((0, import_dayjs.default)().format("YYYYMMDD")).add(11, "month").toDate(),
344
- highlightDate: "today"
345
- };
346
334
  var Calendar_default = Calendar;
@@ -74,11 +74,6 @@ export type CalendarProps<D extends React.ElementType = 'div', P = {}> = Overrid
74
74
  * weekend 可选的周末高亮显示
75
75
  */
76
76
  highlightDate?: 'today' | 'weekend';
77
- /**
78
- * 是否隐藏头部
79
- * default: false
80
- */
81
- headerVisible?: boolean;
82
77
  /**
83
78
  * 自定义日期单元格的内容
84
79
  */
@@ -2,7 +2,7 @@
2
2
  background-color: var(--bui-color-bg-view);
3
3
  border-radius: var(--bui-shape-radius-card);
4
4
  overflow: hidden;
5
- font-family: var(--bui-font-family);
5
+ font-family: var(--bui-card-font-family);
6
6
  }
7
7
  .bui-card-header + .bui-card-content {
8
8
  padding-top: 0;
@@ -1,6 +1,5 @@
1
1
  .bui-card-content {
2
- font-size: var(--bui-text-size-2);
3
2
  padding: var(--bui-spacing-lg);
4
3
  color: var(--bui-color-fg-muted);
5
- font-family: var(--bui-font-family);
4
+ font-size: var(--bui-card-font-size);
6
5
  }
@@ -1,9 +1,7 @@
1
1
  .bui-card-footer {
2
- --padding: var(--bui-card-footer-padding, var(--bui-spacing-md) var(--bui-spacing-lg));
3
2
  color: var(--bui-color-fg-muted);
4
- font-size: var(--bui-text-size-1);
5
3
  display: flex;
6
4
  align-items: center;
7
- padding: var(--padding);
8
- font-family: var(--bui-font-family);
5
+ padding: var(--bui-spacing-md) var(--bui-spacing-lg);
6
+ font-size: var(--bui-card-font-size);
9
7
  }
@@ -1,15 +1,13 @@
1
1
  .bui-card-header {
2
- --padding: var(--bui-card-header-padding, var(--bui-spacing-md) var(--bui-spacing-lg));
3
- --end-icon-margin-left: var(--bui-card-header-end-icon-margin-left, 2px);
2
+ --bui-card-font-size: var(--bui-title-size-4);
4
3
  display: flex;
5
4
  align-items: center;
6
5
  flex-direction: row;
7
6
  position: relative;
8
7
  padding: var(--bui-spacing-md) var(--bui-spacing-lg);
9
- font-size: var(--bui-title-size-4);
10
- font-weight: var(--bui-font-weight-medium);
8
+ font-weight: var(--bui-font-weight-bold);
9
+ font-family: var(--bui-card-font-family);
11
10
  color: var(--bui-color-fg-default);
12
- font-family: var(--bui-font-family);
13
11
  }
14
12
  .bui-card-header-title {
15
13
  white-space: nowrap;
@@ -17,6 +15,7 @@
17
15
  text-overflow: ellipsis;
18
16
  max-width: 100%;
19
17
  flex-shrink: 0;
18
+ font-family: var(--bui-font-family-accent, inherit);
20
19
  }
21
20
  .bui-card-header-subtitle {
22
21
  font-size: var(--bui-text-size-3);
@@ -70,7 +70,7 @@ const Checkbox = (0, import_react.forwardRef)((props, ref) => {
70
70
  var _b, _c;
71
71
  const _a = props, {
72
72
  className,
73
- defaultChecked,
73
+ defaultChecked = false,
74
74
  checked,
75
75
  inputProps,
76
76
  inputRef,
@@ -79,7 +79,7 @@ const Checkbox = (0, import_react.forwardRef)((props, ref) => {
79
79
  disabled,
80
80
  icon,
81
81
  checkedIcon,
82
- labelPlacement,
82
+ labelPlacement = "right",
83
83
  onChange,
84
84
  children
85
85
  } = _a, others = __objRest(_a, [
@@ -161,8 +161,4 @@ const Checkbox = (0, import_react.forwardRef)((props, ref) => {
161
161
  );
162
162
  });
163
163
  Checkbox.displayName = "BuiCheckbox";
164
- Checkbox.defaultProps = {
165
- defaultChecked: false,
166
- labelPlacement: "right"
167
- };
168
164
  var Checkbox_default = Checkbox;
@@ -63,15 +63,15 @@ var import_CheckboxContext = require("./CheckboxContext");
63
63
  var import_Checkbox2 = require("./Checkbox.css");
64
64
  const prefixCls = "bui-checkbox-group";
65
65
  const CheckboxGroup = (0, import_react.forwardRef)(
66
- (props, ref) => {
67
- const _a = props, {
66
+ (_a, ref) => {
67
+ var _b = _a, {
68
68
  className,
69
69
  children,
70
70
  defaultValue,
71
71
  value,
72
- disabled,
72
+ disabled = false,
73
73
  onChange
74
- } = _a, others = __objRest(_a, [
74
+ } = _b, others = __objRest(_b, [
75
75
  "className",
76
76
  "children",
77
77
  "defaultValue",
@@ -108,7 +108,4 @@ const CheckboxGroup = (0, import_react.forwardRef)(
108
108
  }
109
109
  );
110
110
  CheckboxGroup.displayName = "CheckboxGroup";
111
- CheckboxGroup.defaultProps = {
112
- disabled: false
113
- };
114
111
  var CheckboxGroup_default = CheckboxGroup;
@@ -1,5 +1,6 @@
1
1
  .bui-collapse {
2
2
  overflow: hidden;
3
+ white-space: nowrap;
3
4
  height: fit-content;
4
5
  width: fit-content;
5
6
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { CollapseProps } from './Collapse.types';
3
3
  import './Collapse.less';
4
- declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLElement>>;
4
+ declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<unknown>>;
5
5
  export default Collapse;