@bifrostui/react 1.2.9-beta.0 → 1.3.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/dist/ActionSheet/ActionSheet.css +6 -3
  2. package/dist/ActionSheet/ActionSheetItem.css +10 -6
  3. package/dist/Alert/index.css +14 -8
  4. package/dist/Avatar/Avatar.css +13 -9
  5. package/dist/Avatar/AvatarGroup.css +15 -8
  6. package/dist/Backdrop/Backdrop.css +2 -1
  7. package/dist/Badge/Badge.css +27 -17
  8. package/dist/Breadcrumb/Breadcrumb.css +34 -0
  9. package/dist/Breadcrumb/Breadcrumb.d.ts +5 -0
  10. package/dist/Breadcrumb/Breadcrumb.js +128 -0
  11. package/dist/Breadcrumb/Breadcrumb.types.d.ts +49 -0
  12. package/dist/Breadcrumb/Breadcrumb.types.js +15 -0
  13. package/dist/Breadcrumb/BreadcrumbItem.d.ts +4 -0
  14. package/dist/Breadcrumb/BreadcrumbItem.js +78 -0
  15. package/dist/Breadcrumb/index.d.ts +4 -0
  16. package/dist/Breadcrumb/index.js +45 -0
  17. package/dist/Button/Button.css +26 -17
  18. package/dist/Calendar/Calendar.css +33 -18
  19. package/dist/Calendar/Calendar.d.ts +1 -1
  20. package/dist/Calendar/Calendar.js +85 -18
  21. package/dist/Calendar/Calendar.types.d.ts +33 -0
  22. package/dist/Card/CardFooter.css +2 -1
  23. package/dist/Card/CardHeader.css +3 -1
  24. package/dist/Checkbox/Checkbox.css +7 -5
  25. package/dist/CitySelector/CitySelector.css +29 -15
  26. package/dist/CitySelector/CitySelectorCore.js +25 -16
  27. package/dist/CitySelector/Selector/index.css +4 -4
  28. package/dist/Collapse/Collapse.css +6 -0
  29. package/dist/Collapse/Collapse.d.ts +5 -0
  30. package/dist/Collapse/Collapse.js +165 -0
  31. package/dist/Collapse/Collapse.types.d.ts +16 -0
  32. package/dist/Collapse/Collapse.types.js +15 -0
  33. package/dist/Collapse/index.d.ts +2 -0
  34. package/dist/Collapse/index.js +41 -0
  35. package/dist/CollapsePanel/CollapsePanel.css +32 -0
  36. package/dist/CollapsePanel/CollapsePanel.d.ts +5 -0
  37. package/dist/CollapsePanel/CollapsePanel.js +159 -0
  38. package/dist/CollapsePanel/CollapsePanel.types.d.ts +64 -0
  39. package/dist/CollapsePanel/CollapsePanel.types.js +15 -0
  40. package/dist/CollapsePanel/CollapsePanelItem.d.ts +4 -0
  41. package/dist/CollapsePanel/CollapsePanelItem.js +112 -0
  42. package/dist/CollapsePanel/index.d.ts +4 -0
  43. package/dist/CollapsePanel/index.js +45 -0
  44. package/dist/Countdown/Countdown.css +2 -1
  45. package/dist/Countdown/Countdown.js +3 -0
  46. package/dist/Dialog/Dialog.d.ts +5 -0
  47. package/dist/Dialog/Dialog.js +152 -0
  48. package/dist/Dialog/Dialog.types.d.ts +109 -0
  49. package/dist/Dialog/Dialog.types.js +15 -0
  50. package/dist/Dialog/FunctionalDialog.d.ts +3 -0
  51. package/dist/Dialog/FunctionalDialog.js +204 -0
  52. package/dist/Dialog/index.css +75 -0
  53. package/dist/Dialog/index.d.ts +2 -0
  54. package/dist/Dialog/index.js +41 -0
  55. package/dist/Divider/Divider.css +6 -4
  56. package/dist/IconButton/IconButton.css +9 -7
  57. package/dist/Image/index.css +2 -1
  58. package/dist/Input/Input.css +10 -5
  59. package/dist/List/List.css +3 -0
  60. package/dist/List/ListItem.css +3 -3
  61. package/dist/List/ListItemContent.css +1 -1
  62. package/dist/Loading/Loading.css +4 -2
  63. package/dist/Modal/Modal.miniapp.d.ts +1 -1
  64. package/dist/NavBar/NavBar.css +9 -5
  65. package/dist/Picker/Picker.css +25 -29
  66. package/dist/Picker/Picker.js +31 -11
  67. package/dist/Picker/Picker.types.d.ts +4 -0
  68. package/dist/Picker/PickerPanel.css +8 -8
  69. package/dist/Picker/PickerPanel.js +14 -8
  70. package/dist/Picker/utils.d.ts +16 -0
  71. package/dist/Picker/utils.js +32 -2
  72. package/dist/Popover/Popover.css +97 -0
  73. package/dist/Popover/Popover.d.ts +5 -0
  74. package/dist/Popover/Popover.js +186 -0
  75. package/dist/Popover/Popover.types.d.ts +60 -0
  76. package/dist/Popover/Popover.types.js +15 -0
  77. package/dist/Popover/index.d.ts +2 -0
  78. package/dist/Popover/index.js +41 -0
  79. package/dist/Portal/Portal.types.d.ts +4 -0
  80. package/dist/Portal/PortalCore.js +8 -1
  81. package/dist/Progress/Progress.css +8 -6
  82. package/dist/Radio/Radio.css +2 -1
  83. package/dist/Radio/Radio.js +1 -1
  84. package/dist/Radio/RadioButtonIcon.d.ts +1 -6
  85. package/dist/Radio/RadioButtonIcon.js +0 -3
  86. package/dist/Rating/Rating.css +8 -4
  87. package/dist/Select/Select.css +21 -10
  88. package/dist/Select/Select.js +1 -1
  89. package/dist/Select/SelectOption.js +3 -0
  90. package/dist/Skeleton/Skeleton.css +3 -2
  91. package/dist/Slider/Slider.css +24 -13
  92. package/dist/Steps/Step.css +11 -11
  93. package/dist/Steps/Steps.css +14 -5
  94. package/dist/Swiper/Swiper.css +2 -1
  95. package/dist/Switch/Switch.css +31 -16
  96. package/dist/TabBar/TabBar.css +7 -3
  97. package/dist/TabBar/TabBarItem.css +0 -1
  98. package/dist/Tabs/Tab.css +2 -6
  99. package/dist/Tabs/Tabs.css +7 -4
  100. package/dist/Tag/Tag.css +7 -10
  101. package/dist/Tag/TagGroup.css +9 -1
  102. package/dist/TextArea/TextArea.css +14 -8
  103. package/dist/ThemeProvider/ThemeProvider.d.ts +4 -0
  104. package/dist/ThemeProvider/ThemeProvider.js +90 -0
  105. package/dist/ThemeProvider/ThemeProvider.types.d.ts +127 -0
  106. package/dist/ThemeProvider/ThemeProvider.types.js +27 -0
  107. package/dist/ThemeProvider/hooks/ThemeContext.d.ts +4 -0
  108. package/dist/ThemeProvider/hooks/ThemeContext.js +35 -0
  109. package/dist/ThemeProvider/hooks/createTheme.d.ts +2 -0
  110. package/dist/ThemeProvider/hooks/createTheme.js +55 -0
  111. package/dist/ThemeProvider/hooks/index.d.ts +4 -0
  112. package/dist/ThemeProvider/hooks/index.js +43 -0
  113. package/dist/ThemeProvider/hooks/useTheme.d.ts +1 -0
  114. package/dist/ThemeProvider/hooks/useTheme.js +39 -0
  115. package/dist/ThemeProvider/index.d.ts +4 -0
  116. package/dist/ThemeProvider/index.js +45 -0
  117. package/dist/ThemeProvider/utils/constants.d.ts +38 -0
  118. package/dist/ThemeProvider/utils/constants.js +65 -0
  119. package/dist/ThemeProvider/utils/index.d.ts +2 -0
  120. package/dist/ThemeProvider/utils/index.js +23 -0
  121. package/dist/ThemeProvider/utils/mountTokens.d.ts +26 -0
  122. package/dist/ThemeProvider/utils/mountTokens.js +123 -0
  123. package/dist/Toast/FunctionalToast.d.ts +3 -0
  124. package/dist/Toast/FunctionalToast.js +177 -0
  125. package/dist/Toast/Toast.css +56 -0
  126. package/dist/Toast/Toast.d.ts +5 -0
  127. package/dist/Toast/Toast.js +121 -0
  128. package/dist/Toast/Toast.types.d.ts +101 -0
  129. package/dist/Toast/Toast.types.js +15 -0
  130. package/dist/Toast/index.d.ts +2 -0
  131. package/dist/Toast/index.js +41 -0
  132. package/dist/Tooltip/Tooltip.css +91 -0
  133. package/dist/Tooltip/Tooltip.d.ts +5 -0
  134. package/dist/Tooltip/Tooltip.js +177 -0
  135. package/dist/Tooltip/Tooltip.types.d.ts +51 -0
  136. package/dist/Tooltip/Tooltip.types.js +15 -0
  137. package/dist/Tooltip/index.d.ts +2 -0
  138. package/dist/Tooltip/index.js +41 -0
  139. package/dist/Transition/Transition.miniapp.js +7 -1
  140. package/dist/index.d.ts +9 -0
  141. package/dist/index.js +19 -1
  142. package/dist/locales/base.d.ts +40 -0
  143. package/dist/locales/base.js +15 -0
  144. package/dist/locales/en-US.d.ts +3 -0
  145. package/dist/locales/en-US.js +69 -0
  146. package/dist/locales/hooks/useLocaleText.d.ts +3 -0
  147. package/dist/locales/hooks/useLocaleText.js +43 -0
  148. package/dist/locales/index.d.ts +5 -0
  149. package/dist/locales/index.js +49 -0
  150. package/dist/locales/zh-CN.d.ts +3 -0
  151. package/dist/locales/zh-CN.js +51 -0
  152. package/dist/locales/zh-TW.d.ts +3 -0
  153. package/dist/locales/zh-TW.js +51 -0
  154. package/es/ActionSheet/ActionSheet.css +6 -3
  155. package/es/ActionSheet/ActionSheetItem.css +10 -6
  156. package/es/Alert/index.css +14 -8
  157. package/es/Avatar/Avatar.css +13 -9
  158. package/es/Avatar/AvatarGroup.css +15 -8
  159. package/es/Backdrop/Backdrop.css +2 -1
  160. package/es/Badge/Badge.css +27 -17
  161. package/es/Breadcrumb/Breadcrumb.css +34 -0
  162. package/es/Breadcrumb/Breadcrumb.d.ts +5 -0
  163. package/es/Breadcrumb/Breadcrumb.js +101 -0
  164. package/es/Breadcrumb/Breadcrumb.types.d.ts +49 -0
  165. package/es/Breadcrumb/Breadcrumb.types.js +1 -0
  166. package/es/Breadcrumb/BreadcrumbItem.d.ts +4 -0
  167. package/es/Breadcrumb/BreadcrumbItem.js +51 -0
  168. package/es/Breadcrumb/index.d.ts +4 -0
  169. package/es/Breadcrumb/index.js +9 -0
  170. package/es/Button/Button.css +26 -17
  171. package/es/Calendar/Calendar.css +33 -18
  172. package/es/Calendar/Calendar.d.ts +1 -1
  173. package/es/Calendar/Calendar.js +91 -19
  174. package/es/Calendar/Calendar.types.d.ts +33 -0
  175. package/es/Card/CardFooter.css +2 -1
  176. package/es/Card/CardHeader.css +3 -1
  177. package/es/Checkbox/Checkbox.css +7 -5
  178. package/es/CitySelector/CitySelector.css +29 -15
  179. package/es/CitySelector/CitySelectorCore.js +25 -16
  180. package/es/CitySelector/Selector/index.css +4 -4
  181. package/es/Collapse/Collapse.css +6 -0
  182. package/es/Collapse/Collapse.d.ts +5 -0
  183. package/es/Collapse/Collapse.js +144 -0
  184. package/es/Collapse/Collapse.types.d.ts +16 -0
  185. package/es/Collapse/Collapse.types.js +1 -0
  186. package/es/Collapse/index.d.ts +2 -0
  187. package/es/Collapse/index.js +6 -0
  188. package/es/CollapsePanel/CollapsePanel.css +32 -0
  189. package/es/CollapsePanel/CollapsePanel.d.ts +5 -0
  190. package/es/CollapsePanel/CollapsePanel.js +132 -0
  191. package/es/CollapsePanel/CollapsePanel.types.d.ts +64 -0
  192. package/es/CollapsePanel/CollapsePanel.types.js +1 -0
  193. package/es/CollapsePanel/CollapsePanelItem.d.ts +4 -0
  194. package/es/CollapsePanel/CollapsePanelItem.js +85 -0
  195. package/es/CollapsePanel/index.d.ts +4 -0
  196. package/es/CollapsePanel/index.js +9 -0
  197. package/es/Countdown/Countdown.css +2 -1
  198. package/es/Countdown/Countdown.js +3 -0
  199. package/es/Dialog/Dialog.d.ts +5 -0
  200. package/es/Dialog/Dialog.js +125 -0
  201. package/es/Dialog/Dialog.types.d.ts +109 -0
  202. package/es/Dialog/Dialog.types.js +1 -0
  203. package/es/Dialog/FunctionalDialog.d.ts +3 -0
  204. package/es/Dialog/FunctionalDialog.js +177 -0
  205. package/es/Dialog/index.css +75 -0
  206. package/es/Dialog/index.d.ts +2 -0
  207. package/es/Dialog/index.js +6 -0
  208. package/es/Divider/Divider.css +6 -4
  209. package/es/IconButton/IconButton.css +9 -7
  210. package/es/Image/index.css +2 -1
  211. package/es/Input/Input.css +10 -5
  212. package/es/List/List.css +3 -0
  213. package/es/List/ListItem.css +3 -3
  214. package/es/List/ListItemContent.css +1 -1
  215. package/es/Loading/Loading.css +4 -2
  216. package/es/Modal/Modal.miniapp.d.ts +1 -1
  217. package/es/NavBar/NavBar.css +9 -5
  218. package/es/Picker/Picker.css +25 -29
  219. package/es/Picker/Picker.js +32 -12
  220. package/es/Picker/Picker.types.d.ts +4 -0
  221. package/es/Picker/PickerPanel.css +8 -8
  222. package/es/Picker/PickerPanel.js +14 -8
  223. package/es/Picker/utils.d.ts +16 -0
  224. package/es/Picker/utils.js +29 -1
  225. package/es/Popover/Popover.css +97 -0
  226. package/es/Popover/Popover.d.ts +5 -0
  227. package/es/Popover/Popover.js +159 -0
  228. package/es/Popover/Popover.types.d.ts +60 -0
  229. package/es/Popover/Popover.types.js +1 -0
  230. package/es/Popover/index.d.ts +2 -0
  231. package/es/Popover/index.js +6 -0
  232. package/es/Portal/Portal.types.d.ts +4 -0
  233. package/es/Portal/PortalCore.js +8 -1
  234. package/es/Progress/Progress.css +8 -6
  235. package/es/Radio/Radio.css +2 -1
  236. package/es/Radio/Radio.js +1 -1
  237. package/es/Radio/RadioButtonIcon.d.ts +1 -6
  238. package/es/Radio/RadioButtonIcon.js +0 -3
  239. package/es/Rating/Rating.css +8 -4
  240. package/es/Select/Select.css +21 -10
  241. package/es/Select/Select.js +1 -1
  242. package/es/Select/SelectOption.js +3 -0
  243. package/es/Skeleton/Skeleton.css +3 -2
  244. package/es/Slider/Slider.css +24 -13
  245. package/es/Steps/Step.css +11 -11
  246. package/es/Steps/Steps.css +14 -5
  247. package/es/Swiper/Swiper.css +2 -1
  248. package/es/Switch/Switch.css +31 -16
  249. package/es/TabBar/TabBar.css +7 -3
  250. package/es/TabBar/TabBarItem.css +0 -1
  251. package/es/Tabs/Tab.css +2 -6
  252. package/es/Tabs/Tabs.css +7 -4
  253. package/es/Tag/Tag.css +7 -10
  254. package/es/Tag/TagGroup.css +9 -1
  255. package/es/TextArea/TextArea.css +14 -8
  256. package/es/ThemeProvider/ThemeProvider.d.ts +4 -0
  257. package/es/ThemeProvider/ThemeProvider.js +61 -0
  258. package/es/ThemeProvider/ThemeProvider.types.d.ts +127 -0
  259. package/es/ThemeProvider/ThemeProvider.types.js +1 -0
  260. package/es/ThemeProvider/hooks/ThemeContext.d.ts +4 -0
  261. package/es/ThemeProvider/hooks/ThemeContext.js +6 -0
  262. package/es/ThemeProvider/hooks/createTheme.d.ts +2 -0
  263. package/es/ThemeProvider/hooks/createTheme.js +38 -0
  264. package/es/ThemeProvider/hooks/index.d.ts +4 -0
  265. package/es/ThemeProvider/hooks/index.js +8 -0
  266. package/es/ThemeProvider/hooks/useTheme.d.ts +1 -0
  267. package/es/ThemeProvider/hooks/useTheme.js +10 -0
  268. package/es/ThemeProvider/index.d.ts +4 -0
  269. package/es/ThemeProvider/index.js +8 -0
  270. package/es/ThemeProvider/utils/constants.d.ts +38 -0
  271. package/es/ThemeProvider/utils/constants.js +40 -0
  272. package/es/ThemeProvider/utils/index.d.ts +2 -0
  273. package/es/ThemeProvider/utils/index.js +2 -0
  274. package/es/ThemeProvider/utils/mountTokens.d.ts +26 -0
  275. package/es/ThemeProvider/utils/mountTokens.js +88 -0
  276. package/es/Toast/FunctionalToast.d.ts +3 -0
  277. package/es/Toast/FunctionalToast.js +150 -0
  278. package/es/Toast/Toast.css +56 -0
  279. package/es/Toast/Toast.d.ts +5 -0
  280. package/es/Toast/Toast.js +99 -0
  281. package/es/Toast/Toast.types.d.ts +101 -0
  282. package/es/Toast/Toast.types.js +1 -0
  283. package/es/Toast/index.d.ts +2 -0
  284. package/es/Toast/index.js +6 -0
  285. package/es/Tooltip/Tooltip.css +91 -0
  286. package/es/Tooltip/Tooltip.d.ts +5 -0
  287. package/es/Tooltip/Tooltip.js +150 -0
  288. package/es/Tooltip/Tooltip.types.d.ts +51 -0
  289. package/es/Tooltip/Tooltip.types.js +1 -0
  290. package/es/Tooltip/index.d.ts +2 -0
  291. package/es/Tooltip/index.js +6 -0
  292. package/es/Transition/Transition.miniapp.js +7 -1
  293. package/es/index.d.ts +9 -0
  294. package/es/index.js +9 -0
  295. package/es/locales/base.d.ts +40 -0
  296. package/es/locales/base.js +0 -0
  297. package/es/locales/en-US.d.ts +3 -0
  298. package/es/locales/en-US.js +50 -0
  299. package/es/locales/hooks/useLocaleText.d.ts +3 -0
  300. package/es/locales/hooks/useLocaleText.js +26 -0
  301. package/es/locales/index.d.ts +5 -0
  302. package/es/locales/index.js +11 -0
  303. package/es/locales/zh-CN.d.ts +3 -0
  304. package/es/locales/zh-CN.js +32 -0
  305. package/es/locales/zh-TW.d.ts +3 -0
  306. package/es/locales/zh-TW.js +32 -0
  307. package/package.json +5 -5
@@ -0,0 +1,49 @@
1
+ import { OverrideProps } from '@bifrostui/types';
2
+ import React from 'react';
3
+ export type BreadcrumbItemProps<D extends React.ElementType = 'li', P = {}> = OverrideProps<{
4
+ props: P & {
5
+ /**
6
+ * 分隔符自定义
7
+ */
8
+ separator?: React.ReactNode;
9
+ /**
10
+ * body 区域内容
11
+ */
12
+ children?: React.ReactNode;
13
+ /**
14
+ * 点击事件
15
+ */
16
+ onClick?: (e: React.SyntheticEvent) => void;
17
+ };
18
+ defaultComponent: D;
19
+ }, D>;
20
+ export type BreadcrumbProps<D extends React.ElementType = 'nav', P = {}> = OverrideProps<{
21
+ props: P & {
22
+ /**
23
+ * 路由栈信息
24
+ */
25
+ items?: Array<{
26
+ /**
27
+ * 名称
28
+ */
29
+ title?: string;
30
+ /**
31
+ * 分隔符自定义
32
+ */
33
+ separator?: React.ReactNode;
34
+ /**
35
+ * 点击事件
36
+ */
37
+ onClick?: (e: React.SyntheticEvent) => void;
38
+ }>;
39
+ /**
40
+ * 分隔符自定义
41
+ */
42
+ separator?: React.ReactNode;
43
+ /**
44
+ * body 区域内容,使用 CollapseItem 进行渲染
45
+ */
46
+ children?: React.ReactNode;
47
+ };
48
+ defaultComponent: D;
49
+ }, D>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BreadcrumbItemProps } from './Breadcrumb.types';
3
+ declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<BreadcrumbItemProps<"li", {}>, "ref"> & React.RefAttributes<HTMLLIElement>>;
4
+ export default BreadcrumbItem;
@@ -0,0 +1,51 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
17
+ var __objRest = (source, exclude) => {
18
+ var target = {};
19
+ for (var prop in source)
20
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
21
+ target[prop] = source[prop];
22
+ if (source != null && __getOwnPropSymbols)
23
+ for (var prop of __getOwnPropSymbols(source)) {
24
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
25
+ target[prop] = source[prop];
26
+ }
27
+ return target;
28
+ };
29
+ import React from "react";
30
+ import clsx from "clsx";
31
+ const prefixCls = "bui-breadcrumb-item";
32
+ const BreadcrumbItem = /* @__PURE__ */ React.forwardRef(
33
+ (props, ref) => {
34
+ const _a = props, { className, style, separator, children, onClick } = _a, others = __objRest(_a, ["className", "style", "separator", "children", "onClick"]);
35
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
36
+ "li",
37
+ __spreadValues({
38
+ className: clsx(`${prefixCls}`, className),
39
+ style,
40
+ ref,
41
+ onClick
42
+ }, others),
43
+ children
44
+ ), separator && /* @__PURE__ */ React.createElement("li", { className: `${prefixCls}-separator` }, separator));
45
+ }
46
+ );
47
+ BreadcrumbItem.displayName = "BuiBreadcrumbItem";
48
+ var BreadcrumbItem_default = BreadcrumbItem;
49
+ export {
50
+ BreadcrumbItem_default as default
51
+ };
@@ -0,0 +1,4 @@
1
+ export { default } from './Breadcrumb';
2
+ export { default as Breadcrumb } from './Breadcrumb';
3
+ export { default as BreadcrumbItem } from './BreadcrumbItem';
4
+ export * from './Breadcrumb.types';
@@ -0,0 +1,9 @@
1
+ import { default as default2 } from "./Breadcrumb";
2
+ import { default as default3 } from "./Breadcrumb";
3
+ import { default as default4 } from "./BreadcrumbItem";
4
+ export * from "./Breadcrumb.types";
5
+ export {
6
+ default3 as Breadcrumb,
7
+ default4 as BreadcrumbItem,
8
+ default2 as default
9
+ };
@@ -1,14 +1,23 @@
1
1
  .bui-btn {
2
+ --border-radius: var(--bui-button-border-radius, 100px);
2
3
  --bg-color: var(--bui-button-default-bg-color, var(--bui-color-neutral-5));
3
- --text-color: var(--bui-button-text-color, var(--bui-color-fg-muted));
4
4
  --border-color: var(--bui-button-border-color, var(--bui-color-neutral-4));
5
- --border-radius: var(--bui-button-border-radius, 100px);
6
- --font-weight: var(--bui-button-font-weight, var(--bui-font-weight-medium));
5
+ --height: var(--bui-button-height, 27px);
6
+ --icon-start-margin-right: var(--bui-button-icon-start-margin-right, var(--bui-spacing-xs));
7
+ --icon-start-margin-left: var(--bui-button-icon-start-margin-left, var(--bui-spacing-xs));
8
+ --disabled-opacity: var(--bui-button-disabled-opacity, 0.5);
9
+ --small-padding: var(--bui-button-small-padding, 0 11px);
10
+ --small-height: var(--bui-button-small-height, 24px);
11
+ --medium-padding: var(--bui-button-medium-padding, 0 14px);
12
+ --large-padding: var(--bui-button-large-padding, 0 14px);
13
+ --large-height: var(--bui-button-large-height, 33px);
14
+ --full-font-size: var(--bui-button-full-font-size, var(--bui-title-size-4));
15
+ --full-height: var(--bui-button-full-height, 42px);
7
16
  border: 1px solid transparent;
8
17
  outline: 0;
9
18
  background-color: transparent;
10
19
  cursor: pointer;
11
- color: var(--text-color);
20
+ color: var(--bui-color-fg-muted);
12
21
  box-sizing: border-box;
13
22
  position: relative;
14
23
  display: inline-flex;
@@ -17,9 +26,9 @@
17
26
  justify-content: center;
18
27
  white-space: nowrap;
19
28
  font-size: var(--bui-text-size-3);
20
- font-weight: var(--font-weight);
29
+ font-weight: var(--bui-font-weight-medium);
21
30
  border-radius: var(--border-radius);
22
- height: 27px;
31
+ height: var(--height);
23
32
  line-height: var(--bui-line-height);
24
33
  font-family: var(--bui-font-family);
25
34
  }
@@ -55,36 +64,36 @@
55
64
  display: inline-flex;
56
65
  align-self: center;
57
66
  flex-shrink: 0;
58
- margin-right: var(--bui-spacing-xs);
67
+ margin-right: var(--icon-start-margin-right);
59
68
  }
60
69
  .bui-btn-icon-end {
61
70
  display: inline-flex;
62
71
  align-self: center;
63
72
  flex-shrink: 0;
64
- margin-left: var(--bui-spacing-xs);
73
+ margin-left: var(--icon-start-margin-left);
65
74
  }
66
75
  .bui-btn-disabled {
67
76
  pointer-events: none;
68
- opacity: 0.5;
77
+ opacity: var(--disabled-opacity);
69
78
  }
70
79
  .bui-btn-small {
71
80
  font-size: var(--bui-text-size-4);
72
- padding: 0 11px;
73
- height: 24px;
81
+ padding: var(--small-padding);
82
+ height: var(--small-height);
74
83
  }
75
84
  .bui-btn-medium {
76
- padding: 0 14px;
77
- height: 27px;
85
+ padding: var(--medium-padding);
86
+ height: var(--height);
78
87
  }
79
88
  .bui-btn-large {
80
89
  font-size: var(--bui-text-size-2);
81
- padding: 0 14px;
82
- height: 33px;
90
+ padding: var(--large-padding);
91
+ height: var(--large-height);
83
92
  }
84
93
  .bui-btn-full {
85
- font-size: var(--bui-title-size-4);
94
+ font-size: var(--full-font-size);
86
95
  width: 100%;
87
- height: 42px;
96
+ height: var(--full-height);
88
97
  }
89
98
  .bui-btn-text.bui-btn-primary {
90
99
  color: var(--bui-color-primary);
@@ -1,4 +1,19 @@
1
1
  .bui-calendar {
2
+ --padding: var(--bui-calendar-padding, 6px 12px 7px);
3
+ --week-height: var(--bui-calendar-week-height, 30px);
4
+ --handler-height: var(--bui-calendar-handler-height, 28px);
5
+ --handler-margin-bottom: var(--bui-calendar-handler-margin-bottom, 7px);
6
+ --handler-text-width: var(--bui-calendar-handler-text-width, 80px);
7
+ --handler-btn-width: var(--bui-calendar-handler-btn-width, 46px);
8
+ --handler-btn-height: var(--bui-calendar-handler-btn-height, 100%);
9
+ --handler-btn-icon-font-size: var(--bui-calendar-handler-btn-icon-font-size, 28px);
10
+ --day-box-height: var(--bui-calendar-day-box-height, 30px);
11
+ --day-box-margin-bottom: var(--bui-calendar-day-box-margin-bottom, 7px);
12
+ --day-disabled-color: var(--bui-calendar-day-disabled-color, #9c9ca5);
13
+ --middle-color: var(--bui-calendar-middle-color, #000);
14
+ --middle-background-color: var(--bui-calendar-middle-background-color, #ffeaf1);
15
+ --range-both-ends-color: var(--bui-calendar-range-both-ends-color, #000);
16
+ --range-both-ends-background-color: var(--bui-calendar-range-both-ends-background-color, #ffc7da);
2
17
  overflow: hidden;
3
18
  display: flex;
4
19
  flex-direction: column;
@@ -6,11 +21,11 @@
6
21
  position: relative;
7
22
  width: 100%;
8
23
  box-sizing: border-box;
9
- padding: 6px 12px 7px;
24
+ padding: var(--padding);
10
25
  font-family: var(--bui-font-family);
11
26
  }
12
27
  .bui-calendar-week {
13
- height: 30px;
28
+ height: var(--week-height);
14
29
  font-size: var(--bui-text-size-2);
15
30
  font-weight: var(--bui-font-weight-medium);
16
31
  color: var(--bui-color-fg-default);
@@ -29,29 +44,29 @@
29
44
  color: var(--bui-color-primary);
30
45
  }
31
46
  .bui-calendar-handler {
32
- height: 28px;
47
+ height: var(--handler-height);
33
48
  display: flex;
34
49
  align-items: center;
35
50
  justify-content: center;
36
- margin-bottom: 7px;
51
+ margin-bottom: var(--handler-margin-bottom);
37
52
  }
38
53
  .bui-calendar-handler-text {
39
- width: 80px;
54
+ width: var(--handler-text-width);
40
55
  font-size: var(--bui-title-size-3);
41
56
  font-weight: var(--bui-font-weight-medium);
42
57
  text-align: center;
43
58
  }
44
59
  .bui-calendar-handler-btn {
45
60
  font-size: 16px;
46
- height: 100%;
47
- width: 46px;
61
+ height: var(--handler-btn-height);
62
+ width: var(--handler-btn-width);
48
63
  cursor: pointer;
49
64
  display: flex;
50
65
  align-items: center;
51
66
  justify-content: center;
52
67
  }
53
68
  .bui-calendar-handler-btn-icon {
54
- font-size: 28px;
69
+ font-size: var(--handler-btn-icon-font-size);
55
70
  }
56
71
  .bui-calendar-month {
57
72
  display: flex;
@@ -60,8 +75,8 @@
60
75
  }
61
76
  .bui-calendar-day-box {
62
77
  width: 14.28%;
63
- height: 30px;
64
- margin-bottom: 7px;
78
+ height: var(--day-box-height);
79
+ margin-bottom: var(--day-box-margin-bottom);
65
80
  }
66
81
  .bui-calendar-highlight-day .bui-calendar-day {
67
82
  color: var(--bui-color-primary);
@@ -72,34 +87,34 @@
72
87
  display: flex;
73
88
  align-items: center;
74
89
  justify-content: center;
75
- border-radius: 6px;
90
+ border-radius: var(--bui-shape-radius-default);
76
91
  font-size: var(--bui-title-size-4);
77
92
  font-weight: var(--bui-font-weight-medium);
78
93
  color: var(--bui-color-fg-default);
79
94
  cursor: pointer;
80
95
  }
81
96
  .bui-calendar-day.bui-calendar-disabled {
82
- color: #9c9ca5;
97
+ color: var(--day-disabled-color);
83
98
  }
84
99
  .bui-calendar-today {
85
100
  color: var(--bui-color-primary);
86
101
  }
87
102
  .bui-calendar-middle {
88
- color: #000;
103
+ color: var(--middle-color);
89
104
  border-radius: 0;
90
- background-color: #ffeaf1;
105
+ background-color: var(--middle-background-color);
91
106
  }
92
107
  .bui-calendar-start {
93
- color: #000;
94
- background-color: #ffc7da;
108
+ color: var(--range-both-ends-color);
109
+ background-color: var(--range-both-ends-background-color);
95
110
  }
96
111
  .bui-calendar-range {
97
112
  border-top-right-radius: 0;
98
113
  border-bottom-right-radius: 0;
99
114
  }
100
115
  .bui-calendar-end {
101
- color: #000;
102
- background-color: #ffc7da;
116
+ color: var(--range-both-ends-color);
117
+ background-color: var(--range-both-ends-background-color);
103
118
  border-top-left-radius: 0;
104
119
  border-bottom-left-radius: 0;
105
120
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './Calendar.less';
3
2
  import { CalendarProps } from './Calendar.types';
3
+ import './Calendar.less';
4
4
  declare const Calendar: React.ForwardRefExoticComponent<Omit<CalendarProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default Calendar;
@@ -34,11 +34,17 @@ import { useDidMountEffect, useValue } from "@bifrostui/utils";
34
34
  import clsx from "clsx";
35
35
  import dayjs from "dayjs";
36
36
  import isoWeek from "dayjs/plugin/isoWeek";
37
- import React, { useMemo, useState } from "react";
38
- import "./Calendar.css";
37
+ import React, {
38
+ Suspense,
39
+ lazy,
40
+ useMemo,
41
+ useState
42
+ } from "react";
39
43
  import { formatDate, isRange, isSame } from "./utils";
44
+ import { useLocaleText } from "../locales";
45
+ import "./Calendar.css";
46
+ const Picker = lazy(() => import("../Picker"));
40
47
  dayjs.extend(isoWeek);
41
- const SUNDAY_WEEK_DATA = ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
42
48
  const classes = {
43
49
  root: "bui-calendar",
44
50
  handler: "bui-calendar-handler",
@@ -56,11 +62,16 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
56
62
  maxDate,
57
63
  mode,
58
64
  hideDaysOutsideCurrentMonth,
65
+ headerBarFormat,
66
+ headerBarLeftIcon,
67
+ headerBarRightIcon,
59
68
  disabledDate,
69
+ enableSelectYear,
60
70
  highlightDate,
61
71
  dateRender,
62
72
  weekRender,
63
73
  onMonthChange,
74
+ onYearChange,
64
75
  onChange
65
76
  } = _a, others = __objRest(_a, [
66
77
  "className",
@@ -70,13 +81,28 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
70
81
  "maxDate",
71
82
  "mode",
72
83
  "hideDaysOutsideCurrentMonth",
84
+ "headerBarFormat",
85
+ "headerBarLeftIcon",
86
+ "headerBarRightIcon",
73
87
  "disabledDate",
88
+ "enableSelectYear",
74
89
  "highlightDate",
75
90
  "dateRender",
76
91
  "weekRender",
77
92
  "onMonthChange",
93
+ "onYearChange",
78
94
  "onChange"
79
95
  ]);
96
+ const { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday } = useLocaleText("calendar");
97
+ const SUNDAY_WEEK_DATA = [
98
+ Sunday,
99
+ Monday,
100
+ Tuesday,
101
+ Wednesday,
102
+ Thursday,
103
+ Friday,
104
+ Saturday
105
+ ];
80
106
  const isRangeMode = mode === "range";
81
107
  const formattedValue = formatDate(mode, value, minDate, maxDate);
82
108
  const formattedDefaultValue = formatDate(
@@ -85,6 +111,7 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
85
111
  minDate,
86
112
  maxDate
87
113
  );
114
+ const [openPicker, setOpenPicker] = useState(false);
88
115
  const [renderMonth, setRenderMonth] = useState(() => {
89
116
  const initMonth = formattedValue === void 0 ? formattedDefaultValue == null ? void 0 : formattedDefaultValue[0] : formattedValue == null ? void 0 : formattedValue[0];
90
117
  return dayjs(initMonth || minDate).toDate();
@@ -102,6 +129,22 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
102
129
  }, [calendarValue]);
103
130
  const isMinMonth = dayjs(minDate).isSame(renderMonth, "month");
104
131
  const isMaxMonth = dayjs(maxDate).isSame(renderMonth, "month");
132
+ const headerBarIcon = {
133
+ left: headerBarLeftIcon ? headerBarLeftIcon({ isMinMonth }) : /* @__PURE__ */ React.createElement(
134
+ CaretLeftIcon,
135
+ {
136
+ className: `${classes.handler}-btn-icon`,
137
+ htmlColor: isMinMonth && "#cccccc"
138
+ }
139
+ ),
140
+ right: headerBarRightIcon ? headerBarRightIcon({ isMaxMonth }) : /* @__PURE__ */ React.createElement(
141
+ CaretRightIcon,
142
+ {
143
+ className: `${classes.handler}-btn-icon`,
144
+ htmlColor: isMaxMonth && "#cccccc"
145
+ }
146
+ )
147
+ };
105
148
  useDidMountEffect(() => {
106
149
  const initMonth = formattedValue === void 0 ? formattedDefaultValue == null ? void 0 : formattedDefaultValue[0] : formattedValue == null ? void 0 : formattedValue[0];
107
150
  setRenderMonth(dayjs(initMonth || minDate).toDate());
@@ -147,6 +190,19 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
147
190
  });
148
191
  return list;
149
192
  };
193
+ const getYearsList = () => {
194
+ const result = [];
195
+ let startTime = new Date(minDate).getFullYear();
196
+ const endTime = new Date(maxDate).getFullYear();
197
+ while (endTime - startTime >= 0) {
198
+ result.push({
199
+ label: startTime,
200
+ value: startTime
201
+ });
202
+ startTime += 1;
203
+ }
204
+ return result;
205
+ };
150
206
  const getDayClassName = ({ day: itemDate, disabled }) => {
151
207
  let result = "";
152
208
  if (disabled)
@@ -225,7 +281,7 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
225
281
  setRenderMonth(month);
226
282
  onMonthChange == null ? void 0 : onMonthChange(e, {
227
283
  type: "prev",
228
- month: dayjs(month).format("YYYY/MM")
284
+ month: dayjs(month).format(headerBarFormat)
229
285
  });
230
286
  }
231
287
  };
@@ -235,10 +291,27 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
235
291
  setRenderMonth(month);
236
292
  onMonthChange == null ? void 0 : onMonthChange(e, {
237
293
  type: "next",
238
- month: dayjs(month).format("YYYY/MM")
294
+ month: dayjs(month).format(headerBarFormat)
239
295
  });
240
296
  }
241
297
  };
298
+ const onClickDate = (e) => {
299
+ if (!enableSelectYear) {
300
+ return;
301
+ }
302
+ e.stopPropagation();
303
+ setOpenPicker(true);
304
+ getYearsList();
305
+ };
306
+ const onClosePicker = (e, data2) => {
307
+ const selectYear = data2.value[0];
308
+ e.stopPropagation();
309
+ setRenderMonth(dayjs(renderMonth).set("year", selectYear).toDate());
310
+ onYearChange == null ? void 0 : onYearChange(e, {
311
+ year: selectYear
312
+ });
313
+ setOpenPicker(false);
314
+ };
242
315
  let data = {};
243
316
  if (isRangeMode) {
244
317
  data = {
@@ -260,29 +333,28 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
260
333
  }, others), {
261
334
  "data-mode": mode
262
335
  }), data),
263
- /* @__PURE__ */ React.createElement("div", { className: classes.handler }, /* @__PURE__ */ React.createElement("div", { onClick: onClickPrev, className: `${classes.handler}-btn` }, /* @__PURE__ */ React.createElement(
264
- CaretLeftIcon,
265
- {
266
- className: `${classes.handler}-btn-icon`,
267
- htmlColor: isMinMonth && "#cccccc"
268
- }
269
- )), /* @__PURE__ */ React.createElement("div", { className: `${classes.handler}-text` }, dayjs(renderMonth).format("YYYY/MM")), /* @__PURE__ */ React.createElement("div", { onClick: onClickNext, className: `${classes.handler}-btn` }, /* @__PURE__ */ React.createElement(
270
- CaretRightIcon,
271
- {
272
- className: `${classes.handler}-btn-icon`,
273
- htmlColor: isMaxMonth && "#cccccc"
274
- }
275
- ))),
336
+ /* @__PURE__ */ React.createElement("div", { className: classes.handler }, /* @__PURE__ */ React.createElement("div", { onClick: onClickPrev, className: `${classes.handler}-btn` }, headerBarIcon.left), /* @__PURE__ */ React.createElement("div", { className: `${classes.handler}-text`, onClick: onClickDate }, dayjs(renderMonth).format(headerBarFormat)), /* @__PURE__ */ React.createElement("div", { onClick: onClickNext, className: `${classes.handler}-btn` }, headerBarIcon.right)),
276
337
  /* @__PURE__ */ React.createElement("div", { className: classes.week }, SUNDAY_WEEK_DATA == null ? void 0 : SUNDAY_WEEK_DATA.map((w) => {
277
338
  return weekRender ? weekRender(w) : /* @__PURE__ */ React.createElement("div", { key: w, className: `${classes.week}-item` }, w);
278
339
  })),
279
- /* @__PURE__ */ React.createElement("div", { className: clsx(`${classes.root}-month`) }, renderDayList())
340
+ /* @__PURE__ */ React.createElement("div", { className: clsx(`${classes.root}-month`) }, renderDayList()),
341
+ enableSelectYear && /* @__PURE__ */ React.createElement(Suspense, { fallback: null }, /* @__PURE__ */ React.createElement(
342
+ Picker,
343
+ {
344
+ options: [getYearsList()],
345
+ open: openPicker,
346
+ value: [dayjs(renderMonth).year()],
347
+ onClose: onClosePicker
348
+ }
349
+ ))
280
350
  );
281
351
  }
282
352
  );
283
353
  Calendar.displayName = "BuiCalendar";
284
354
  Calendar.defaultProps = {
285
355
  hideDaysOutsideCurrentMonth: false,
356
+ headerBarFormat: "YYYY/MM",
357
+ enableSelectYear: false,
286
358
  mode: "single",
287
359
  minDate: dayjs(dayjs().format("YYYYMMDD")).add(0, "month").toDate(),
288
360
  maxDate: dayjs(dayjs().format("YYYYMMDD")).add(11, "month").toDate(),
@@ -12,6 +12,16 @@ export interface ICalendarMonthChangeData {
12
12
  /** 操作类型,prev: 点击上个月 next: 点击下个月 */
13
13
  type: 'prev' | 'next';
14
14
  }
15
+ export interface ICalendarYearChangeData {
16
+ /** 切换后的年份 */
17
+ year: number;
18
+ }
19
+ export interface ICustomIconProps {
20
+ /** 是否为可选范围内的最小月份 */
21
+ isMinMonth?: boolean;
22
+ /** 是否为可选范围内的最大月份 */
23
+ isMaxMonth?: boolean;
24
+ }
15
25
  export type ICalendarMode = 'single' | 'range';
16
26
  export type ICalendarValue = Date | Date[] | null;
17
27
  export type CalendarProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<{
@@ -43,6 +53,21 @@ export type CalendarProps<D extends React.ElementType = 'div', P = {}> = Overrid
43
53
  * 是否隐藏当前月之外的日期,默认为false
44
54
  */
45
55
  hideDaysOutsideCurrentMonth?: boolean;
56
+ /**
57
+ * 头部操作栏日期显示格式
58
+ * @default YYYY/MM
59
+ */
60
+ headerBarFormat?: string;
61
+ /**
62
+ * 头部操作栏左边图标
63
+ * @defaultReturn <CaretLeftIcon />
64
+ */
65
+ headerBarLeftIcon?: (options: ICustomIconProps) => React.ReactNode;
66
+ /**
67
+ * 头部操作栏右边图标
68
+ * @defaultReturn <CaretRightIcon />
69
+ */
70
+ headerBarRightIcon?: (options: ICustomIconProps) => React.ReactNode;
46
71
  /**
47
72
  * 不可选择的日期
48
73
  */
@@ -61,6 +86,14 @@ export type CalendarProps<D extends React.ElementType = 'div', P = {}> = Overrid
61
86
  * 自定义周单元格的内容
62
87
  */
63
88
  weekRender?: (week: string) => React.ReactNode;
89
+ /**
90
+ * 是否开启选择年
91
+ */
92
+ enableSelectYear?: boolean;
93
+ /**
94
+ * 年份发生变化的回调
95
+ */
96
+ onYearChange?: (e: React.SyntheticEvent, data: ICalendarYearChangeData) => void;
64
97
  /**
65
98
  * 月份发生变化的回调
66
99
  */
@@ -1,8 +1,9 @@
1
1
  .bui-card-footer {
2
+ --padding: var(--bui-card-footer-padding, var(--bui-spacing-md) var(--bui-spacing-lg));
2
3
  color: var(--bui-color-fg-muted);
3
4
  font-size: var(--bui-text-size-1);
4
5
  display: flex;
5
6
  align-items: center;
6
- padding: var(--bui-spacing-md) var(--bui-spacing-lg);
7
+ padding: var(--padding);
7
8
  font-family: var(--bui-font-family);
8
9
  }
@@ -1,11 +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
4
  display: flex;
3
5
  align-items: center;
4
6
  flex-direction: row;
5
7
  position: relative;
6
8
  padding: var(--bui-spacing-md) var(--bui-spacing-lg);
7
9
  font-size: var(--bui-title-size-4);
8
- font-weight: 500;
10
+ font-weight: var(--bui-font-weight-medium);
9
11
  color: var(--bui-color-fg-default);
10
12
  font-family: var(--bui-font-family);
11
13
  }
@@ -1,7 +1,9 @@
1
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);
2
+ --label-color: var(--bui-checkbox-label-color, --bui-color-fg-default);
3
+ --label-font-size: var(--bui-checkbox-label-font-size, var(--bui-text-size-1));
4
+ --icon-font-size: var(--bui-checkbox-icon-font-size, var(--bui-title-size-2));
5
+ --disabled-opacity: var(--bui-checkbox-disabled-opacity, 0.5);
6
+ --icon-padding: var(--bui-checkbox-icon-padding, 5px);
5
7
  display: inline-flex;
6
8
  align-items: center;
7
9
  position: relative;
@@ -9,7 +11,7 @@
9
11
  }
10
12
  .bui-checkbox.bui-checkbox-disabled {
11
13
  pointer-events: none;
12
- opacity: 0.5;
14
+ opacity: var(--disabled-opacity);
13
15
  }
14
16
  .bui-checkbox-label-left {
15
17
  flex-direction: row-reverse;
@@ -35,7 +37,7 @@
35
37
  align-items: center;
36
38
  justify-content: center;
37
39
  flex-shrink: 0;
38
- padding: 5px;
40
+ padding: var(--icon-padding);
39
41
  box-sizing: border-box;
40
42
  font-size: var(--icon-font-size);
41
43
  }