@bifrostui/react 1.4.5-beta.2 → 1.4.5-beta.3

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 (102) hide show
  1. package/dist/ActionSheet/ActionSheetItem.js +3 -8
  2. package/dist/Avatar/Avatar.js +3 -8
  3. package/dist/Avatar/AvatarGroup.js +2 -6
  4. package/dist/Badge/Badge.js +3 -8
  5. package/dist/Button/Button.css +0 -10
  6. package/dist/Button/Button.js +3 -8
  7. package/dist/Calendar/Calendar.js +6 -14
  8. package/dist/Card/Card.css +0 -3
  9. package/dist/Card/CardContent.css +1 -0
  10. package/dist/Card/CardFooter.css +1 -0
  11. package/dist/Card/CardHeader.css +1 -0
  12. package/dist/Checkbox/Checkbox.js +2 -6
  13. package/dist/Checkbox/CheckboxGroup.js +4 -7
  14. package/dist/CollapsePanel/CollapsePanelItem.js +45 -46
  15. package/dist/Countdown/Countdown.js +5 -12
  16. package/dist/Divider/Divider.js +8 -5
  17. package/dist/Drawer/Drawer.js +4 -10
  18. package/dist/Fade/Fade.js +52 -56
  19. package/dist/IconButton/IconButton.js +5 -12
  20. package/dist/Image/Image.js +112 -119
  21. package/dist/Input/Input.js +4 -10
  22. package/dist/List/List.js +3 -8
  23. package/dist/List/ListItem.js +42 -44
  24. package/dist/List/ListItemContent.js +1 -4
  25. package/dist/List/ListItemExtra.js +9 -4
  26. package/dist/List/ListItemFooter.js +9 -4
  27. package/dist/List/ListItemHeader.js +9 -4
  28. package/dist/Loading/Loading.js +13 -4
  29. package/dist/Modal/Modal.js +0 -6
  30. package/dist/Modal/Modal.miniapp.js +4 -10
  31. package/dist/NavBar/NavBar.js +0 -1
  32. package/dist/Radio/Radio.js +2 -6
  33. package/dist/Radio/RadioGroup.js +0 -3
  34. package/dist/Rating/Rating.js +8 -18
  35. package/dist/Select/Select.js +4 -8
  36. package/dist/Skeleton/Skeleton.js +5 -9
  37. package/dist/Slide/Slide.js +69 -74
  38. package/dist/Slider/Slider.js +6 -14
  39. package/dist/Steps/Step.js +81 -82
  40. package/dist/Steps/Steps.d.ts +1 -1
  41. package/dist/Steps/Steps.js +57 -60
  42. package/dist/Switch/Switch.js +75 -78
  43. package/dist/TabBar/TabBar.js +3 -8
  44. package/dist/Tabs/Tab.css +3 -2
  45. package/dist/Tabs/Tab.js +13 -4
  46. package/dist/Tabs/Tabs.css +3 -17
  47. package/dist/Tabs/Tabs.js +13 -28
  48. package/dist/Tag/Tag.js +2 -6
  49. package/dist/TextArea/TextArea.js +5 -12
  50. package/dist/Transition/TransitionCore.js +3 -8
  51. package/es/ActionSheet/ActionSheetItem.js +3 -8
  52. package/es/Avatar/Avatar.js +3 -8
  53. package/es/Avatar/AvatarGroup.js +2 -6
  54. package/es/Badge/Badge.js +3 -8
  55. package/es/Button/Button.css +0 -10
  56. package/es/Button/Button.js +3 -8
  57. package/es/Calendar/Calendar.js +6 -14
  58. package/es/Card/Card.css +0 -3
  59. package/es/Card/CardContent.css +1 -0
  60. package/es/Card/CardFooter.css +1 -0
  61. package/es/Card/CardHeader.css +1 -0
  62. package/es/Checkbox/Checkbox.js +2 -6
  63. package/es/Checkbox/CheckboxGroup.js +4 -7
  64. package/es/CollapsePanel/CollapsePanelItem.js +45 -46
  65. package/es/Countdown/Countdown.js +5 -12
  66. package/es/Divider/Divider.js +8 -5
  67. package/es/Drawer/Drawer.js +4 -10
  68. package/es/Fade/Fade.js +52 -56
  69. package/es/IconButton/IconButton.js +5 -12
  70. package/es/Image/Image.js +112 -119
  71. package/es/Input/Input.js +4 -10
  72. package/es/List/List.js +3 -8
  73. package/es/List/ListItem.js +42 -44
  74. package/es/List/ListItemContent.js +1 -4
  75. package/es/List/ListItemExtra.js +9 -4
  76. package/es/List/ListItemFooter.js +9 -4
  77. package/es/List/ListItemHeader.js +9 -4
  78. package/es/Loading/Loading.js +13 -4
  79. package/es/Modal/Modal.js +0 -6
  80. package/es/Modal/Modal.miniapp.d.ts +1 -1
  81. package/es/Modal/Modal.miniapp.js +4 -10
  82. package/es/NavBar/NavBar.js +0 -1
  83. package/es/Radio/Radio.js +2 -6
  84. package/es/Radio/RadioGroup.js +0 -3
  85. package/es/Rating/Rating.js +8 -18
  86. package/es/Select/Select.js +4 -8
  87. package/es/Skeleton/Skeleton.js +5 -9
  88. package/es/Slide/Slide.js +69 -74
  89. package/es/Slider/Slider.js +6 -14
  90. package/es/Steps/Step.js +81 -82
  91. package/es/Steps/Steps.d.ts +1 -1
  92. package/es/Steps/Steps.js +57 -60
  93. package/es/Switch/Switch.js +75 -78
  94. package/es/TabBar/TabBar.js +3 -8
  95. package/es/Tabs/Tab.css +3 -2
  96. package/es/Tabs/Tab.js +13 -4
  97. package/es/Tabs/Tabs.css +3 -17
  98. package/es/Tabs/Tabs.js +15 -41
  99. package/es/Tag/Tag.js +2 -6
  100. package/es/TextArea/TextArea.js +5 -12
  101. package/es/Transition/TransitionCore.js +3 -8
  102. package/package.json +5 -5
package/es/Steps/Step.js CHANGED
@@ -42,99 +42,98 @@ const classes = {
42
42
  title: "bui-step-title",
43
43
  subtitle: "bui-step-subtitle"
44
44
  };
45
- const Step = forwardRef((props, ref) => {
46
- const _a = props, {
47
- className,
48
- description,
49
- icon,
50
- title,
51
- subtitle,
52
- status,
53
- disabled,
54
- onClick
55
- } = _a, others = __objRest(_a, [
56
- "className",
57
- "description",
58
- "icon",
59
- "title",
60
- "subtitle",
61
- "status",
62
- "disabled",
63
- "onClick"
64
- ]);
65
- const stepsContext = useContext(StepsContext);
66
- const { direction, labelPlacement, current, onChange } = stepsContext;
67
- const isTitleVertical = labelPlacement === "vertical";
68
- const handleClick = (e) => {
69
- if (disabled)
70
- return;
71
- onClick == null ? void 0 : onClick(e, { current });
72
- onChange == null ? void 0 : onChange(e, { current });
73
- };
74
- const renderIcon = () => {
75
- const icons = {
76
- active: /* @__PURE__ */ React.createElement("div", { className: `${classes.icon}-active` }),
77
- wait: /* @__PURE__ */ React.createElement(CircleOutlinedIcon, { htmlColor: "#ced1d6" }),
78
- finish: /* @__PURE__ */ React.createElement(SuccessCircleFilledIcon, { color: "primary" }),
79
- error: /* @__PURE__ */ React.createElement(ErrorCircleFilledIcon, { color: "primary" })
45
+ const Step = forwardRef(
46
+ (_a, ref) => {
47
+ var _b = _a, {
48
+ className,
49
+ description,
50
+ icon,
51
+ title,
52
+ subtitle,
53
+ status,
54
+ disabled = false,
55
+ onClick
56
+ } = _b, others = __objRest(_b, [
57
+ "className",
58
+ "description",
59
+ "icon",
60
+ "title",
61
+ "subtitle",
62
+ "status",
63
+ "disabled",
64
+ "onClick"
65
+ ]);
66
+ const stepsContext = useContext(StepsContext);
67
+ const { direction, labelPlacement, current, onChange } = stepsContext;
68
+ const isTitleVertical = labelPlacement === "vertical";
69
+ const handleClick = (e) => {
70
+ if (disabled)
71
+ return;
72
+ onClick == null ? void 0 : onClick(e, { current });
73
+ onChange == null ? void 0 : onChange(e, { current });
80
74
  };
81
- if (icon)
82
- return icon;
83
- return icons[status];
84
- };
85
- return /* @__PURE__ */ React.createElement(
86
- "div",
87
- __spreadValues({
88
- className: clsx(classes.root, className, {
89
- [`${classes.root}-${direction}`]: direction,
90
- [`${classes.root}-label-${labelPlacement}`]: labelPlacement,
91
- [`${classes.root}-disabled`]: disabled
92
- }),
93
- ref,
94
- onClick: handleClick
95
- }, others),
96
- /* @__PURE__ */ React.createElement(
97
- "div",
98
- {
99
- className: clsx(classes.line, {
100
- [`${classes.line}-${status}`]: status
101
- })
102
- }
103
- ),
104
- /* @__PURE__ */ React.createElement("div", { className: classes.icon }, renderIcon()),
105
- /* @__PURE__ */ React.createElement("div", { className: `${classes.root}-content` }, /* @__PURE__ */ React.createElement(
75
+ const renderIcon = () => {
76
+ const icons = {
77
+ active: /* @__PURE__ */ React.createElement("div", { className: `${classes.icon}-active` }),
78
+ wait: /* @__PURE__ */ React.createElement(CircleOutlinedIcon, { htmlColor: "#ced1d6" }),
79
+ finish: /* @__PURE__ */ React.createElement(SuccessCircleFilledIcon, { color: "primary" }),
80
+ error: /* @__PURE__ */ React.createElement(ErrorCircleFilledIcon, { color: "primary" })
81
+ };
82
+ if (icon)
83
+ return icon;
84
+ return icons[status];
85
+ };
86
+ return /* @__PURE__ */ React.createElement(
106
87
  "div",
107
- {
108
- className: clsx(`${classes.title}-wrapper`, {
109
- [`${classes.title}-wrapper-vertical`]: isTitleVertical,
110
- [`${classes.title}-wrapper-line-${status}`]: status
111
- })
112
- },
113
- !!title && /* @__PURE__ */ React.createElement(
88
+ __spreadValues({
89
+ className: clsx(classes.root, className, {
90
+ [`${classes.root}-${direction}`]: direction,
91
+ [`${classes.root}-label-${labelPlacement}`]: labelPlacement,
92
+ [`${classes.root}-disabled`]: disabled
93
+ }),
94
+ ref,
95
+ onClick: handleClick
96
+ }, others),
97
+ /* @__PURE__ */ React.createElement(
114
98
  "div",
115
99
  {
116
- className: clsx(classes.title, `${classes.title}-${status}`, {
117
- [`${classes.title}-${labelPlacement}`]: labelPlacement
100
+ className: clsx(classes.line, {
101
+ [`${classes.line}-${status}`]: status
118
102
  })
119
- },
120
- title
103
+ }
121
104
  ),
122
- !!subtitle && /* @__PURE__ */ React.createElement(
105
+ /* @__PURE__ */ React.createElement("div", { className: classes.icon }, renderIcon()),
106
+ /* @__PURE__ */ React.createElement("div", { className: `${classes.root}-content` }, /* @__PURE__ */ React.createElement(
123
107
  "div",
124
108
  {
125
- className: clsx(classes.subtitle, {
126
- [`${classes.subtitle}-${labelPlacement}`]: labelPlacement
109
+ className: clsx(`${classes.title}-wrapper`, {
110
+ [`${classes.title}-wrapper-vertical`]: isTitleVertical,
111
+ [`${classes.title}-wrapper-line-${status}`]: status
127
112
  })
128
113
  },
129
- subtitle
130
- )
131
- ), !!description && /* @__PURE__ */ React.createElement("div", { className: `${classes.root}-desc` }, description))
132
- );
133
- });
114
+ !!title && /* @__PURE__ */ React.createElement(
115
+ "div",
116
+ {
117
+ className: clsx(classes.title, `${classes.title}-${status}`, {
118
+ [`${classes.title}-${labelPlacement}`]: labelPlacement
119
+ })
120
+ },
121
+ title
122
+ ),
123
+ !!subtitle && /* @__PURE__ */ React.createElement(
124
+ "div",
125
+ {
126
+ className: clsx(classes.subtitle, {
127
+ [`${classes.subtitle}-${labelPlacement}`]: labelPlacement
128
+ })
129
+ },
130
+ subtitle
131
+ )
132
+ ), !!description && /* @__PURE__ */ React.createElement("div", { className: `${classes.root}-desc` }, description))
133
+ );
134
+ }
135
+ );
134
136
  Step.displayName = "Step";
135
- Step.defaultProps = {
136
- disabled: false
137
- };
138
137
  var Step_default = Step;
139
138
  export {
140
139
  Step_default as default
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './Steps.less';
3
2
  import { StepsProps } from './Steps.types';
3
+ import './Steps.less';
4
4
  declare const Steps: React.ForwardRefExoticComponent<Omit<StepsProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default Steps;
package/es/Steps/Steps.js CHANGED
@@ -29,70 +29,67 @@ var __objRest = (source, exclude) => {
29
29
  import { toArray } from "@bifrostui/utils";
30
30
  import clsx from "clsx";
31
31
  import React, { cloneElement, forwardRef } from "react";
32
- import "./Steps.css";
33
32
  import { StepsContextProvider } from "./StepsContext";
33
+ import "./Steps.css";
34
34
  const prefixCls = "bui-steps";
35
- const Steps = forwardRef((props, ref) => {
36
- const _a = props, {
37
- className,
38
- children,
39
- direction,
40
- current,
41
- labelPlacement,
42
- onChange
43
- } = _a, others = __objRest(_a, [
44
- "className",
45
- "children",
46
- "direction",
47
- "current",
48
- "labelPlacement",
49
- "onChange"
50
- ]);
51
- const renderStep = () => {
52
- return toArray(children).map((child, index) => {
53
- const childProps = __spreadValues({
54
- key: index
55
- }, child.props);
56
- if (!child.props.status) {
57
- if (index === current) {
58
- childProps.status = "active";
59
- } else if (index < current) {
60
- childProps.status = "finish";
61
- } else {
62
- childProps.status = "wait";
35
+ const Steps = forwardRef(
36
+ (_a, ref) => {
37
+ var _b = _a, {
38
+ className,
39
+ children,
40
+ direction = "vertical",
41
+ current = 0,
42
+ labelPlacement = "horizontal",
43
+ onChange
44
+ } = _b, others = __objRest(_b, [
45
+ "className",
46
+ "children",
47
+ "direction",
48
+ "current",
49
+ "labelPlacement",
50
+ "onChange"
51
+ ]);
52
+ const renderStep = () => {
53
+ return toArray(children).map((child, index) => {
54
+ const childProps = __spreadValues({
55
+ key: index
56
+ }, child.props);
57
+ if (!child.props.status) {
58
+ if (index === current) {
59
+ childProps.status = "active";
60
+ } else if (index < current) {
61
+ childProps.status = "finish";
62
+ } else {
63
+ childProps.status = "wait";
64
+ }
63
65
  }
64
- }
65
- return cloneElement(child, childProps);
66
- });
67
- };
68
- return /* @__PURE__ */ React.createElement(
69
- StepsContextProvider,
70
- {
71
- value: {
72
- direction,
73
- current,
74
- labelPlacement,
75
- onChange
76
- }
77
- },
78
- /* @__PURE__ */ React.createElement(
79
- "div",
80
- __spreadValues({
81
- className: clsx(prefixCls, className, {
82
- [`${prefixCls}-${direction}`]: direction
83
- }),
84
- ref
85
- }, others),
86
- renderStep()
87
- )
88
- );
89
- });
66
+ return cloneElement(child, childProps);
67
+ });
68
+ };
69
+ return /* @__PURE__ */ React.createElement(
70
+ StepsContextProvider,
71
+ {
72
+ value: {
73
+ direction,
74
+ current,
75
+ labelPlacement,
76
+ onChange
77
+ }
78
+ },
79
+ /* @__PURE__ */ React.createElement(
80
+ "div",
81
+ __spreadValues({
82
+ className: clsx(prefixCls, className, {
83
+ [`${prefixCls}-${direction}`]: direction
84
+ }),
85
+ ref
86
+ }, others),
87
+ renderStep()
88
+ )
89
+ );
90
+ }
91
+ );
90
92
  Steps.displayName = "Steps";
91
- Steps.defaultProps = {
92
- current: 0,
93
- direction: "vertical",
94
- labelPlacement: "horizontal"
95
- };
96
93
  var Steps_default = Steps;
97
94
  export {
98
95
  Steps_default as default
@@ -34,85 +34,82 @@ import clsx from "clsx";
34
34
  import React, { forwardRef } from "react";
35
35
  import "./Switch.css";
36
36
  const prefixCls = "bui-switch";
37
- const Switch = forwardRef((props, ref) => {
38
- const _a = props, {
39
- className,
40
- checked,
41
- defaultChecked,
42
- inputProps,
43
- inputRef,
44
- name,
45
- checkedChildren,
46
- unCheckedChildren,
47
- disabled,
48
- size,
49
- color,
50
- onChange
51
- } = _a, others = __objRest(_a, [
52
- "className",
53
- "checked",
54
- "defaultChecked",
55
- "inputProps",
56
- "inputRef",
57
- "name",
58
- "checkedChildren",
59
- "unCheckedChildren",
60
- "disabled",
61
- "size",
62
- "color",
63
- "onChange"
64
- ]);
65
- const [switchChecked, triggerChange] = useValue({
66
- value: checked,
67
- defaultValue: !!defaultChecked
68
- });
69
- const changeAction = (e, isChecked) => {
70
- triggerChange(e, isChecked);
71
- onChange == null ? void 0 : onChange(e, { checked: isChecked });
72
- };
73
- const handleChange = (e) => {
74
- var _a2;
75
- const isChecked = !switchChecked;
76
- changeAction(e, isChecked);
77
- (_a2 = inputProps == null ? void 0 : inputProps.onChange) == null ? void 0 : _a2.call(inputProps, e);
78
- };
79
- return /* @__PURE__ */ React.createElement(
80
- "div",
81
- __spreadValues({
82
- ref,
83
- className: clsx(
84
- `${prefixCls}`,
85
- `${prefixCls}-${size}`,
86
- `${prefixCls}-${color}`,
87
- {
88
- [`${prefixCls}-checked`]: switchChecked,
89
- [`${prefixCls}-disabled`]: disabled
90
- },
91
- className
92
- )
93
- }, others),
94
- /* @__PURE__ */ React.createElement(
95
- "input",
96
- __spreadProps(__spreadValues({
97
- ref: inputRef,
98
- type: "checkbox",
99
- name,
100
- checked: switchChecked,
101
- disabled
102
- }, inputProps), {
103
- onChange: handleChange,
104
- className: clsx(`${prefixCls}-input`, inputProps == null ? void 0 : inputProps.className)
105
- })
106
- ),
107
- (checkedChildren || unCheckedChildren) && /* @__PURE__ */ React.createElement("span", { className: `${prefixCls}-inner` }, switchChecked ? checkedChildren : unCheckedChildren)
108
- );
109
- });
37
+ const Switch = forwardRef(
38
+ (_a, ref) => {
39
+ var _b = _a, {
40
+ className,
41
+ checked,
42
+ defaultChecked,
43
+ inputProps,
44
+ inputRef,
45
+ name,
46
+ checkedChildren,
47
+ unCheckedChildren,
48
+ disabled = false,
49
+ size = "medium",
50
+ color = "primary",
51
+ onChange
52
+ } = _b, others = __objRest(_b, [
53
+ "className",
54
+ "checked",
55
+ "defaultChecked",
56
+ "inputProps",
57
+ "inputRef",
58
+ "name",
59
+ "checkedChildren",
60
+ "unCheckedChildren",
61
+ "disabled",
62
+ "size",
63
+ "color",
64
+ "onChange"
65
+ ]);
66
+ const [switchChecked, triggerChange] = useValue({
67
+ value: checked,
68
+ defaultValue: !!defaultChecked
69
+ });
70
+ const changeAction = (e, isChecked) => {
71
+ triggerChange(e, isChecked);
72
+ onChange == null ? void 0 : onChange(e, { checked: isChecked });
73
+ };
74
+ const handleChange = (e) => {
75
+ var _a2;
76
+ const isChecked = !switchChecked;
77
+ changeAction(e, isChecked);
78
+ (_a2 = inputProps == null ? void 0 : inputProps.onChange) == null ? void 0 : _a2.call(inputProps, e);
79
+ };
80
+ return /* @__PURE__ */ React.createElement(
81
+ "div",
82
+ __spreadValues({
83
+ ref,
84
+ className: clsx(
85
+ `${prefixCls}`,
86
+ `${prefixCls}-${size}`,
87
+ `${prefixCls}-${color}`,
88
+ {
89
+ [`${prefixCls}-checked`]: switchChecked,
90
+ [`${prefixCls}-disabled`]: disabled
91
+ },
92
+ className
93
+ )
94
+ }, others),
95
+ /* @__PURE__ */ React.createElement(
96
+ "input",
97
+ __spreadProps(__spreadValues({
98
+ ref: inputRef,
99
+ type: "checkbox",
100
+ name,
101
+ checked: switchChecked,
102
+ disabled
103
+ }, inputProps), {
104
+ onChange: handleChange,
105
+ className: clsx(`${prefixCls}-input`, inputProps == null ? void 0 : inputProps.className)
106
+ })
107
+ ),
108
+ (checkedChildren || unCheckedChildren) && /* @__PURE__ */ React.createElement("span", { className: `${prefixCls}-inner` }, switchChecked ? checkedChildren : unCheckedChildren)
109
+ );
110
+ }
111
+ );
110
112
  Switch.displayName = "BuiSwitch";
111
- Switch.defaultProps = {
112
- disabled: false,
113
- size: "medium",
114
- color: "primary"
115
- };
116
113
  var Switch_default = Switch;
117
114
  export {
118
115
  Switch_default as default
@@ -33,9 +33,9 @@ import "./TabBar.css";
33
33
  const prefixCls = "bui-tab-bar";
34
34
  const TabBar = /* @__PURE__ */ React.forwardRef((props, ref) => {
35
35
  const _a = props || {}, {
36
- current,
37
- activeColor,
38
- color,
36
+ current = 0,
37
+ activeColor = "primary",
38
+ color = "default",
39
39
  children,
40
40
  className,
41
41
  onChange
@@ -67,11 +67,6 @@ const TabBar = /* @__PURE__ */ React.forwardRef((props, ref) => {
67
67
  );
68
68
  });
69
69
  TabBar.displayName = "BuiTabBar";
70
- TabBar.defaultProps = {
71
- activeColor: "primary",
72
- color: "default",
73
- current: 0
74
- };
75
70
  var TabBar_default = TabBar;
76
71
  export {
77
72
  TabBar_default as default
package/es/Tabs/Tab.css CHANGED
@@ -15,13 +15,14 @@
15
15
  font-family: var(--bui-tabs-font-family);
16
16
  }
17
17
  .bui-tab-active {
18
- line-height: var(--bui-line-height);
18
+ --bui-tabs-font-family: var(--bui-font-family-accent, inherit);
19
19
  --bui-tabs-color: var(--bui-color-fg-default);
20
+ font-weight: 600;
20
21
  }
21
22
  .bui-tab-miniapp-active {
23
+ --bui-tabs-color: var(--bui-color-fg-default);
22
24
  line-height: 1.5;
23
25
  font-weight: var(--bui-font-weight-medium);
24
- --bui-tabs-color: var(--bui-color-fg-default);
25
26
  position: relative;
26
27
  }
27
28
  .bui-tab-miniapp-active-line {
package/es/Tabs/Tab.js CHANGED
@@ -35,11 +35,20 @@ import React from "react";
35
35
  import TabsContext from "./TabsContext";
36
36
  import "./Tab.css";
37
37
  const prefixCls = "bui-tab";
38
- const defaultProps = {
39
- disabled: false
40
- };
41
38
  const Tab = /* @__PURE__ */ React.forwardRef((props, ref) => {
42
- const _a = __spreadValues(__spreadValues({}, defaultProps), props), { className, children, index, disabled, onClick } = _a, others = __objRest(_a, ["className", "children", "index", "disabled", "onClick"]);
39
+ const _a = props, {
40
+ className,
41
+ children,
42
+ index,
43
+ disabled = false,
44
+ onClick
45
+ } = _a, others = __objRest(_a, [
46
+ "className",
47
+ "children",
48
+ "index",
49
+ "disabled",
50
+ "onClick"
51
+ ]);
43
52
  const tabsContext = React.useContext(TabsContext);
44
53
  const { value, triggerChange } = tabsContext;
45
54
  return /* @__PURE__ */ React.createElement(
package/es/Tabs/Tabs.css CHANGED
@@ -1,20 +1,7 @@
1
1
  .bui-tabs {
2
- --bui-tabs-font-family: var(--bui-font-family);
3
- --bui-tabs-font-size: var(--bui-text-size-1);
4
- --bui-tabs-height: 39px;
5
- --bui-tabs-color: var(--bui-color-fg-subtle);
6
- --bui-tabs-font-weight: var(--bui-font-weight-medium);
7
- --bui-tabs-indicator-bg: var(--bui-color-primary);
8
- --bui-tabs-indicator-height: 3px;
9
- --bui-tabs-indicator-width: 18px;
10
- --bui-tabs-indicator-border-radius: 3px;
11
- --bui-tabs-indicator-bottom: 0;
12
- --bui-tabs-indicator-box-shadow: none;
13
- --bui-tabs-mask-width: 12px;
14
- --bui-tabs-mask-height: 100%;
15
- --bui-tab-padding: var(--bui-spacing-lg) var(--bui-spacing-lg) 10px;
16
2
  position: relative;
17
3
  font-family: var(--bui-tabs-font-family);
4
+ font-weight: var(--bui-tabs-font-weight);
18
5
  }
19
6
  .bui-tabs-tabs {
20
7
  height: var(--bui-tabs-height);
@@ -24,7 +11,6 @@
24
11
  align-items: center;
25
12
  position: relative;
26
13
  overflow-x: scroll;
27
- font-weight: var(--bui-tabs-font-weight);
28
14
  scrollbar-width: none;
29
15
  }
30
16
  .bui-tabs-tabs::-webkit-scrollbar {
@@ -48,8 +34,8 @@
48
34
  top: 0;
49
35
  bottom: 0;
50
36
  z-index: 1;
51
- width: var(--bui-tabs-mask-width);
52
- height: var(--bui-tabs-mask-height);
37
+ width: 12px;
38
+ height: 100%;
53
39
  pointer-events: none;
54
40
  }
55
41
  .bui-tabs-mask-left {