@bifrostui/react 1.2.1 → 1.2.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 (210) hide show
  1. package/dist/ActionSheet/ActionSheet.js +1 -1
  2. package/dist/ActionSheet/ActionSheet.types.js +1 -15
  3. package/dist/ActionSheet/ActionSheetItem.js +1 -1
  4. package/dist/ActionSheet/ActionSheetItem.types.js +1 -15
  5. package/dist/Alert/Alert.js +1 -1
  6. package/dist/Alert/Alert.types.js +1 -15
  7. package/dist/Avatar/Avatar.js +1 -1
  8. package/dist/Avatar/Avatar.types.js +1 -15
  9. package/dist/Avatar/AvatarGroup.js +1 -1
  10. package/dist/Avatar/AvatarGroup.types.js +1 -15
  11. package/dist/Backdrop/Backdrop.js +1 -1
  12. package/dist/Backdrop/Backdrop.types.js +1 -15
  13. package/dist/Badge/Badge.js +1 -1
  14. package/dist/Badge/Badge.types.js +1 -15
  15. package/dist/Button/Button.js +1 -1
  16. package/dist/Button/Button.types.js +1 -15
  17. package/dist/Calendar/Calendar.js +1 -1
  18. package/dist/Calendar/Calendar.types.js +1 -15
  19. package/dist/Card/Card.js +1 -1
  20. package/dist/Card/Card.types.js +1 -15
  21. package/dist/Card/CardContent.js +1 -1
  22. package/dist/Card/CardContent.types.js +1 -15
  23. package/dist/Card/CardFooter.js +1 -1
  24. package/dist/Card/CardFooter.types.js +1 -15
  25. package/dist/Card/CardHeader.js +1 -1
  26. package/dist/Card/CardHeader.types.js +1 -15
  27. package/dist/Checkbox/Checkbox.types.js +1 -15
  28. package/dist/CitySelector/CitySelector.js +1 -1
  29. package/dist/CitySelector/CitySelector.miniapp.js +1 -1
  30. package/dist/CitySelector/CitySelector.types.js +1 -15
  31. package/dist/CitySelector/CitySelectorCore.js +1 -1
  32. package/dist/Countdown/Countdown.types.js +1 -15
  33. package/dist/Divider/Divider.types.js +1 -15
  34. package/dist/Drawer/Drawer.js +1 -1
  35. package/dist/Drawer/Drawer.types.js +1 -15
  36. package/dist/Fade/Fade.js +1 -1
  37. package/dist/Fade/Fade.types.js +1 -15
  38. package/dist/IconButton/IconButton.js +1 -1
  39. package/dist/IconButton/IconButton.types.js +1 -15
  40. package/dist/Image/Image.js +1 -1
  41. package/dist/Image/Image.types.js +1 -15
  42. package/dist/Input/Input.types.js +1 -15
  43. package/dist/List/List.js +1 -1
  44. package/dist/List/List.types.js +1 -15
  45. package/dist/List/ListItem.js +1 -1
  46. package/dist/List/ListItem.types.js +1 -15
  47. package/dist/List/ListItemContent.js +1 -1
  48. package/dist/List/ListItemContent.types.js +1 -15
  49. package/dist/List/ListItemExtra.js +1 -1
  50. package/dist/List/ListItemExtra.types.js +1 -15
  51. package/dist/List/ListItemFooter.js +1 -1
  52. package/dist/List/ListItemFooter.types.js +1 -15
  53. package/dist/List/ListItemHeader.js +1 -1
  54. package/dist/List/ListItemHeader.types.js +1 -15
  55. package/dist/Loading/Loading.js +1 -1
  56. package/dist/Loading/Loading.types.js +1 -15
  57. package/dist/Modal/Modal.js +1 -1
  58. package/dist/Modal/Modal.miniapp.d.ts +1 -1
  59. package/dist/Modal/Modal.miniapp.js +1 -1
  60. package/dist/Modal/Modal.types.js +1 -15
  61. package/dist/NavBar/NavBar.js +1 -1
  62. package/dist/NavBar/NavBar.types.js +1 -15
  63. package/dist/Picker/Picker.js +1 -1
  64. package/dist/Picker/Picker.types.js +1 -15
  65. package/dist/Picker/PickerPanel.js +1 -1
  66. package/dist/Portal/Portal.js +1 -1
  67. package/dist/Portal/Portal.types.js +1 -15
  68. package/dist/Portal/PortalCore.js +1 -1
  69. package/dist/Progress/Progress.js +1 -1
  70. package/dist/Progress/Progress.types.js +1 -15
  71. package/dist/Radio/Radio.types.js +1 -15
  72. package/dist/Rating/Rating.types.js +1 -15
  73. package/dist/ScrollView/ScrollView.types.js +1 -15
  74. package/dist/Select/Select.js +1 -1
  75. package/dist/Select/Select.types.js +1 -15
  76. package/dist/Select/SelectOption.js +1 -1
  77. package/dist/Skeleton/Skeleton.js +1 -1
  78. package/dist/Skeleton/Skeleton.types.js +1 -15
  79. package/dist/Slide/Slide.js +1 -1
  80. package/dist/Slide/Slide.types.js +1 -15
  81. package/dist/Slider/Slider.js +1 -1
  82. package/dist/Slider/Slider.types.js +1 -15
  83. package/dist/Stack/Stack.js +1 -1
  84. package/dist/Stack/Stack.types.js +1 -15
  85. package/dist/Steps/Step.types.js +1 -15
  86. package/dist/Steps/Steps.types.js +1 -15
  87. package/dist/Swiper/Swiper.types.js +1 -15
  88. package/dist/Switch/Switch.types.js +1 -15
  89. package/dist/TabBar/TabBar.js +1 -1
  90. package/dist/TabBar/TabBarItem.js +1 -1
  91. package/dist/TabBar/index.types.js +1 -15
  92. package/dist/Tabs/Tab.js +1 -1
  93. package/dist/Tabs/Tab.types.js +1 -15
  94. package/dist/Tabs/TabPanel.types.js +1 -15
  95. package/dist/Tabs/Tabs.js +14 -2
  96. package/dist/Tabs/Tabs.types.js +1 -15
  97. package/dist/Tag/Tag.js +1 -1
  98. package/dist/Tag/Tag.types.js +1 -15
  99. package/dist/Tag/TagGroup.js +1 -1
  100. package/dist/Tag/TagGroup.types.js +1 -15
  101. package/dist/TextArea/TextArea.js +1 -1
  102. package/dist/TextArea/TextArea.types.js +1 -15
  103. package/dist/Transition/Transition.js +1 -1
  104. package/dist/Transition/Transition.miniapp.js +1 -1
  105. package/dist/Transition/Transition.types.js +1 -15
  106. package/es/ActionSheet/ActionSheet.js +1 -1
  107. package/es/ActionSheet/ActionSheet.types.js +1 -0
  108. package/es/ActionSheet/ActionSheetItem.js +1 -1
  109. package/es/ActionSheet/ActionSheetItem.types.js +1 -0
  110. package/es/Alert/Alert.js +1 -1
  111. package/es/Alert/Alert.types.js +1 -0
  112. package/es/Avatar/Avatar.js +1 -1
  113. package/es/Avatar/Avatar.types.js +1 -0
  114. package/es/Avatar/AvatarGroup.js +1 -1
  115. package/es/Avatar/AvatarGroup.types.js +1 -0
  116. package/es/Backdrop/Backdrop.js +1 -1
  117. package/es/Backdrop/Backdrop.types.js +1 -0
  118. package/es/Badge/Badge.js +1 -1
  119. package/es/Badge/Badge.types.js +1 -0
  120. package/es/Button/Button.js +1 -1
  121. package/es/Button/Button.types.js +1 -0
  122. package/es/Calendar/Calendar.js +1 -1
  123. package/es/Calendar/Calendar.types.js +1 -0
  124. package/es/Card/Card.js +1 -1
  125. package/es/Card/Card.types.js +1 -0
  126. package/es/Card/CardContent.js +1 -1
  127. package/es/Card/CardContent.types.js +1 -0
  128. package/es/Card/CardFooter.js +1 -1
  129. package/es/Card/CardFooter.types.js +1 -0
  130. package/es/Card/CardHeader.js +1 -1
  131. package/es/Card/CardHeader.types.js +1 -0
  132. package/es/Checkbox/Checkbox.types.js +1 -0
  133. package/es/CitySelector/CitySelector.js +1 -1
  134. package/es/CitySelector/CitySelector.miniapp.js +1 -1
  135. package/es/CitySelector/CitySelector.types.js +1 -0
  136. package/es/CitySelector/CitySelectorCore.js +1 -1
  137. package/es/Countdown/Countdown.types.js +1 -0
  138. package/es/Divider/Divider.types.js +1 -0
  139. package/es/Drawer/Drawer.js +1 -1
  140. package/es/Drawer/Drawer.types.js +1 -0
  141. package/es/Fade/Fade.js +1 -1
  142. package/es/Fade/Fade.types.js +1 -0
  143. package/es/IconButton/IconButton.js +1 -1
  144. package/es/IconButton/IconButton.types.js +1 -0
  145. package/es/Image/Image.js +1 -1
  146. package/es/Image/Image.types.js +1 -0
  147. package/es/Input/Input.types.js +1 -0
  148. package/es/List/List.js +1 -1
  149. package/es/List/List.types.js +1 -0
  150. package/es/List/ListItem.js +1 -1
  151. package/es/List/ListItem.types.js +1 -0
  152. package/es/List/ListItemContent.js +1 -1
  153. package/es/List/ListItemContent.types.js +1 -0
  154. package/es/List/ListItemExtra.js +1 -1
  155. package/es/List/ListItemExtra.types.js +1 -0
  156. package/es/List/ListItemFooter.js +1 -1
  157. package/es/List/ListItemFooter.types.js +1 -0
  158. package/es/List/ListItemHeader.js +1 -1
  159. package/es/List/ListItemHeader.types.js +1 -0
  160. package/es/Loading/Loading.js +1 -1
  161. package/es/Loading/Loading.types.js +1 -0
  162. package/es/Modal/Modal.js +1 -1
  163. package/es/Modal/Modal.miniapp.js +1 -1
  164. package/es/Modal/Modal.types.js +1 -0
  165. package/es/NavBar/NavBar.js +1 -1
  166. package/es/NavBar/NavBar.types.js +1 -0
  167. package/es/Picker/Picker.js +1 -1
  168. package/es/Picker/Picker.types.js +1 -0
  169. package/es/Picker/PickerPanel.js +1 -1
  170. package/es/Portal/Portal.js +1 -1
  171. package/es/Portal/Portal.types.js +1 -0
  172. package/es/Portal/PortalCore.js +1 -1
  173. package/es/Progress/Progress.js +1 -1
  174. package/es/Progress/Progress.types.js +1 -0
  175. package/es/Radio/Radio.types.js +1 -0
  176. package/es/Rating/Rating.types.js +1 -0
  177. package/es/ScrollView/ScrollView.types.js +1 -0
  178. package/es/Select/Select.js +1 -1
  179. package/es/Select/Select.types.js +1 -0
  180. package/es/Select/SelectOption.js +1 -1
  181. package/es/Skeleton/Skeleton.js +1 -1
  182. package/es/Skeleton/Skeleton.types.js +1 -0
  183. package/es/Slide/Slide.js +1 -1
  184. package/es/Slide/Slide.types.js +1 -0
  185. package/es/Slider/Slider.js +1 -1
  186. package/es/Slider/Slider.types.js +1 -0
  187. package/es/Stack/Stack.js +1 -1
  188. package/es/Stack/Stack.types.js +1 -0
  189. package/es/Steps/Step.types.js +1 -0
  190. package/es/Steps/Steps.types.js +1 -0
  191. package/es/Swiper/Swiper.types.js +1 -0
  192. package/es/Switch/Switch.types.js +1 -0
  193. package/es/TabBar/TabBar.js +1 -1
  194. package/es/TabBar/TabBarItem.js +1 -1
  195. package/es/TabBar/index.types.js +1 -0
  196. package/es/Tabs/Tab.js +1 -1
  197. package/es/Tabs/Tab.types.js +1 -0
  198. package/es/Tabs/TabPanel.types.js +1 -0
  199. package/es/Tabs/Tabs.js +14 -2
  200. package/es/Tabs/Tabs.types.js +1 -0
  201. package/es/Tag/Tag.js +1 -1
  202. package/es/Tag/Tag.types.js +1 -0
  203. package/es/Tag/TagGroup.js +1 -1
  204. package/es/Tag/TagGroup.types.js +1 -0
  205. package/es/TextArea/TextArea.js +1 -1
  206. package/es/TextArea/TextArea.types.js +1 -0
  207. package/es/Transition/Transition.js +1 -1
  208. package/es/Transition/Transition.miniapp.js +1 -1
  209. package/es/Transition/Transition.types.js +1 -0
  210. package/package.json +5 -5
@@ -61,7 +61,7 @@ var import_clsx = __toESM(require("clsx"));
61
61
  var import_TabBarContext = __toESM(require("./TabBarContext"));
62
62
  var import_TabBar = require("./TabBar.css");
63
63
  const prefixCls = "bui-tab-bar";
64
- const TabBar = import_react.default.forwardRef((props, ref) => {
64
+ const TabBar = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
65
65
  const _a = props || {}, {
66
66
  current,
67
67
  activeColor,
@@ -62,7 +62,7 @@ var import_clsx = __toESM(require("clsx"));
62
62
  var import_TabBarItem = require("./TabBarItem.css");
63
63
  var import_TabBarContext = __toESM(require("./TabBarContext"));
64
64
  const prefixCls = "bui-tab-bar-item";
65
- const TabBarItem = import_react.default.forwardRef(
65
+ const TabBarItem = /* @__PURE__ */ import_react.default.forwardRef(
66
66
  (props, ref) => {
67
67
  var _b;
68
68
  const { currentIndex, activeColor, color, onChange } = (0, import_react.useContext)(import_TabBarContext.default);
@@ -1,15 +1 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
- var index_types_exports = {};
15
- module.exports = __toCommonJS(index_types_exports);
1
+ export {};
package/dist/Tabs/Tab.js CHANGED
@@ -65,7 +65,7 @@ var import_react = __toESM(require("react"));
65
65
  var import_TabsContext = __toESM(require("./TabsContext"));
66
66
  var import_Tab2 = require("./Tab.css");
67
67
  const prefixCls = "bui-tab";
68
- const Tab = import_react.default.forwardRef((props, ref) => {
68
+ const Tab = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
69
69
  const _a = props, { className, children, index, disabled, onClick } = _a, others = __objRest(_a, ["className", "children", "index", "disabled", "onClick"]);
70
70
  const tabsContext = import_react.default.useContext(import_TabsContext.default);
71
71
  const { value, align, triggerChange } = tabsContext;
@@ -1,15 +1 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
- var Tab_types_exports = {};
15
- module.exports = __toCommonJS(Tab_types_exports);
1
+ export {};
@@ -1,15 +1 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
- var TabPanel_types_exports = {};
15
- module.exports = __toCommonJS(TabPanel_types_exports);
1
+ export {};
package/dist/Tabs/Tabs.js CHANGED
@@ -64,7 +64,7 @@ var import_Tabs = require("./Tabs.css");
64
64
  var import_TabsContext = require("./TabsContext");
65
65
  var import_bound = __toESM(require("./utils/bound"));
66
66
  const prefixCls = "bui-tabs";
67
- const Tabs = import_react.default.forwardRef((props, ref) => {
67
+ const Tabs = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
68
68
  const _a = props, { children, className, value, tabs, align, onChange } = _a, others = __objRest(_a, ["children", "className", "value", "tabs", "align", "onChange"]);
69
69
  const [active, setActive] = (0, import_react.useState)("");
70
70
  const tabsRef = (0, import_react.useRef)(null);
@@ -147,8 +147,20 @@ const Tabs = import_react.default.forwardRef((props, ref) => {
147
147
  const safeValue = () => {
148
148
  var _a2;
149
149
  let defaultIndex = value;
150
+ const childs = import_react.default.Children.toArray(children);
151
+ const hasSameChild = !!childs.length && childs.some(
152
+ (child) => {
153
+ var _a3;
154
+ return import_react.default.isValidElement(child) && child.type === import_Tab.default && ((_a3 = child == null ? void 0 : child.props) == null ? void 0 : _a3.index) === value;
155
+ }
156
+ );
150
157
  if (!!tabs.length && !tabs.some((item) => item.index === value)) {
151
158
  defaultIndex = (_a2 = tabs[0]) == null ? void 0 : _a2.index;
159
+ } else if (children && !hasSameChild) {
160
+ const childNode = childs[0];
161
+ if (import_react.default.isValidElement(childNode)) {
162
+ defaultIndex = childNode.props.index;
163
+ }
152
164
  }
153
165
  return defaultIndex;
154
166
  };
@@ -194,7 +206,7 @@ const Tabs = import_react.default.forwardRef((props, ref) => {
194
206
  const providerValue = (0, import_react.useMemo)(() => {
195
207
  const v = safeValue();
196
208
  return { value: v, align, triggerChange: handleClick };
197
- }, [value, align, handleClick]);
209
+ }, [value, align, children, handleClick]);
198
210
  return /* @__PURE__ */ import_react.default.createElement("div", __spreadValues({ ref, className: (0, import_clsx.default)(prefixCls, className) }, others), /* @__PURE__ */ import_react.default.createElement(
199
211
  "div",
200
212
  {
@@ -1,15 +1 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
- var Tabs_types_exports = {};
15
- module.exports = __toCommonJS(Tabs_types_exports);
1
+ export {};
package/dist/Tag/Tag.js CHANGED
@@ -73,7 +73,7 @@ const colorHandler = (color, opacity = 1) => {
73
73
  return (0, import_utils.convertHexToRGBA)(color, opacity);
74
74
  };
75
75
  const prefixCls = "bui-tag";
76
- const Tag = import_react.default.forwardRef((props, ref) => {
76
+ const Tag = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
77
77
  const _a = props, {
78
78
  className,
79
79
  style,
@@ -1,15 +1 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
- var Tag_types_exports = {};
15
- module.exports = __toCommonJS(Tag_types_exports);
1
+ export {};
@@ -60,7 +60,7 @@ var import_clsx = __toESM(require("clsx"));
60
60
  var import_react = __toESM(require("react"));
61
61
  var import_TagGroup2 = require("./TagGroup.css");
62
62
  const prefixCls = "bui-tag-group";
63
- const Tag = import_react.default.forwardRef((props, ref) => {
63
+ const Tag = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
64
64
  const _a = props, { className, onClick, children } = _a, others = __objRest(_a, ["className", "onClick", "children"]);
65
65
  return /* @__PURE__ */ import_react.default.createElement(
66
66
  "div",
@@ -1,15 +1 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
- var TagGroup_types_exports = {};
15
- module.exports = __toCommonJS(TagGroup_types_exports);
1
+ export {};
@@ -65,7 +65,7 @@ var import_react = __toESM(require("react"));
65
65
  var import_TextArea2 = require("./TextArea.css");
66
66
  const prefixCls = "bui-textarea";
67
67
  const DEFAULT_ROWS = 2;
68
- const TextArea = import_react.default.forwardRef(
68
+ const TextArea = /* @__PURE__ */ import_react.default.forwardRef(
69
69
  (props, ref) => {
70
70
  const _a = props, {
71
71
  className,
@@ -1,15 +1 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
- var TextArea_types_exports = {};
15
- module.exports = __toCommonJS(TextArea_types_exports);
1
+ export {};
@@ -50,7 +50,7 @@ __export(Transition_exports, {
50
50
  module.exports = __toCommonJS(Transition_exports);
51
51
  var import_react = __toESM(require("react"));
52
52
  var import_TransitionCore = __toESM(require("./TransitionCore"));
53
- const Transition = import_react.default.forwardRef(
53
+ const Transition = /* @__PURE__ */ import_react.default.forwardRef(
54
54
  (props, ref) => {
55
55
  return /* @__PURE__ */ import_react.default.createElement(import_TransitionCore.default, __spreadProps(__spreadValues({}, props), { ref, nextTick: setTimeout }));
56
56
  }
@@ -51,7 +51,7 @@ module.exports = __toCommonJS(Transition_miniapp_exports);
51
51
  var import_taro = __toESM(require("@tarojs/taro"));
52
52
  var import_react = __toESM(require("react"));
53
53
  var import_TransitionCore = __toESM(require("./TransitionCore"));
54
- const Transition = import_react.default.forwardRef(
54
+ const Transition = /* @__PURE__ */ import_react.default.forwardRef(
55
55
  (props, ref) => {
56
56
  return /* @__PURE__ */ import_react.default.createElement(import_TransitionCore.default, __spreadProps(__spreadValues({}, props), { nextTick: import_taro.default.nextTick, ref }));
57
57
  }
@@ -1,15 +1 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
- var Transition_types_exports = {};
15
- module.exports = __toCommonJS(Transition_types_exports);
1
+ export {};
@@ -35,7 +35,7 @@ const prefixCls = "bui-action-sheet";
35
35
  const ActionSheetCancel = ({ children, onClick }) => {
36
36
  return /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item ${prefixCls}-cancel`, onClick }, children);
37
37
  };
38
- const ActionSheet = React.forwardRef(
38
+ const ActionSheet = /* @__PURE__ */ React.forwardRef(
39
39
  (props, ref) => {
40
40
  const _a = props, {
41
41
  open,
@@ -0,0 +1 @@
1
+ export {};
@@ -31,7 +31,7 @@ import React, { useContext } from "react";
31
31
  import ActionSheetContext from "./ActionSheetContext";
32
32
  import "./ActionSheetItem.css";
33
33
  const prefixCls = "bui-action-sheet-item";
34
- const ActionSheetItem = React.forwardRef(
34
+ const ActionSheetItem = /* @__PURE__ */ React.forwardRef(
35
35
  (props, ref) => {
36
36
  const _a = props, {
37
37
  className,
@@ -0,0 +1 @@
1
+ export {};
package/es/Alert/Alert.js CHANGED
@@ -100,7 +100,7 @@ const AlertAction = (props) => {
100
100
  /* @__PURE__ */ React.createElement(CloseIcon, null)
101
101
  );
102
102
  };
103
- const Alert = React.forwardRef((props, ref) => {
103
+ const Alert = /* @__PURE__ */ React.forwardRef((props, ref) => {
104
104
  const _a = props, {
105
105
  color,
106
106
  className,
@@ -0,0 +1 @@
1
+ export {};
@@ -34,7 +34,7 @@ import React from "react";
34
34
  import Image from "../Image";
35
35
  import "./Avatar.css";
36
36
  const prefixCls = "bui-avatar";
37
- const Avatar = React.forwardRef((props, ref) => {
37
+ const Avatar = /* @__PURE__ */ React.forwardRef((props, ref) => {
38
38
  const _a = props, {
39
39
  className,
40
40
  onClick,
@@ -0,0 +1 @@
1
+ export {};
@@ -34,7 +34,7 @@ import React, { cloneElement } from "react";
34
34
  import Avatar from "./Avatar";
35
35
  import "./AvatarGroup.css";
36
36
  const prefixCls = "bui-avatar-group";
37
- const AvatarGroup = React.forwardRef(
37
+ const AvatarGroup = /* @__PURE__ */ React.forwardRef(
38
38
  (props, ref) => {
39
39
  const _a = props, {
40
40
  className,
@@ -0,0 +1 @@
1
+ export {};
@@ -31,7 +31,7 @@ import React from "react";
31
31
  import Fade from "../Fade";
32
32
  import "./Backdrop.css";
33
33
  const prefixCls = "bui-backdrop";
34
- const Backdrop = React.forwardRef(
34
+ const Backdrop = /* @__PURE__ */ React.forwardRef(
35
35
  (props, ref) => {
36
36
  const _a = props, {
37
37
  children,
@@ -0,0 +1 @@
1
+ export {};
package/es/Badge/Badge.js CHANGED
@@ -30,7 +30,7 @@ import clsx from "clsx";
30
30
  import React from "react";
31
31
  import "./Badge.css";
32
32
  const prefixCls = "bui-badge";
33
- const Badge = React.forwardRef((props, ref) => {
33
+ const Badge = /* @__PURE__ */ React.forwardRef((props, ref) => {
34
34
  const _a = props, {
35
35
  className,
36
36
  onClick,
@@ -0,0 +1 @@
1
+ export {};
@@ -33,7 +33,7 @@ const prefixCls = "bui-btn";
33
33
  const ButtonIcon = ({ children, iconPosition }) => {
34
34
  return /* @__PURE__ */ React.createElement("span", { className: `${prefixCls}-icon-${iconPosition}` }, children);
35
35
  };
36
- const Button = React.forwardRef(
36
+ const Button = /* @__PURE__ */ React.forwardRef(
37
37
  (props, ref) => {
38
38
  const _a = props, {
39
39
  className,
@@ -0,0 +1 @@
1
+ export {};
@@ -46,7 +46,7 @@ const classes = {
46
46
  week: "bui-calendar-week",
47
47
  disabled: "bui-calendar-disabled"
48
48
  };
49
- const Calendar = React.forwardRef(
49
+ const Calendar = /* @__PURE__ */ React.forwardRef(
50
50
  (props, ref) => {
51
51
  const _a = props, {
52
52
  className,
@@ -0,0 +1 @@
1
+ export {};
package/es/Card/Card.js CHANGED
@@ -30,7 +30,7 @@ import clsx from "clsx";
30
30
  import React from "react";
31
31
  import "./Card.css";
32
32
  const prefixCls = "bui-card";
33
- const Card = React.forwardRef((props, ref) => {
33
+ const Card = /* @__PURE__ */ React.forwardRef((props, ref) => {
34
34
  const _a = props, { className, onClick, children } = _a, others = __objRest(_a, ["className", "onClick", "children"]);
35
35
  return /* @__PURE__ */ React.createElement(
36
36
  "div",
@@ -0,0 +1 @@
1
+ export {};
@@ -30,7 +30,7 @@ import clsx from "clsx";
30
30
  import React from "react";
31
31
  import "./CardContent.css";
32
32
  const prefixCls = "bui-card-content";
33
- const CardContent = React.forwardRef(
33
+ const CardContent = /* @__PURE__ */ React.forwardRef(
34
34
  (props, ref) => {
35
35
  const _a = props, { className, children } = _a, others = __objRest(_a, ["className", "children"]);
36
36
  return /* @__PURE__ */ React.createElement("div", __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
@@ -0,0 +1 @@
1
+ export {};
@@ -30,7 +30,7 @@ import clsx from "clsx";
30
30
  import React from "react";
31
31
  import "./CardFooter.css";
32
32
  const prefixCls = "bui-card-footer";
33
- const CardFooter = React.forwardRef(
33
+ const CardFooter = /* @__PURE__ */ React.forwardRef(
34
34
  (props, ref) => {
35
35
  const _a = props, { className, children } = _a, others = __objRest(_a, ["className", "children"]);
36
36
  return /* @__PURE__ */ React.createElement("div", __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
@@ -0,0 +1 @@
1
+ export {};
@@ -31,7 +31,7 @@ import clsx from "clsx";
31
31
  import React from "react";
32
32
  import "./CardHeader.css";
33
33
  const prefixCls = "bui-card-header";
34
- const CardHeader = React.forwardRef(
34
+ const CardHeader = /* @__PURE__ */ React.forwardRef(
35
35
  (props, ref) => {
36
36
  const _a = props, { title, subtitle, className, extra, endIcon, onClick } = _a, others = __objRest(_a, ["title", "subtitle", "className", "extra", "endIcon", "onClick"]);
37
37
  const chevron = (() => {
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import React, { useEffect, useState } from "react";
21
21
  import CitySelectorCore from "./CitySelectorCore";
22
- const CitySelector = React.forwardRef(
22
+ const CitySelector = /* @__PURE__ */ React.forwardRef(
23
23
  (props, ref) => {
24
24
  const { cities } = props;
25
25
  const [height, setHeight] = useState("");
@@ -21,7 +21,7 @@ import React, { useEffect, useRef, useState } from "react";
21
21
  import Taro from "@tarojs/taro";
22
22
  import CitySelectorCore from "./CitySelectorCore";
23
23
  import "./miniapp.css";
24
- const CitySelector = React.forwardRef(
24
+ const CitySelector = /* @__PURE__ */ React.forwardRef(
25
25
  (props, ref) => {
26
26
  const { cities } = props;
27
27
  const containerTop = useRef(0);
@@ -0,0 +1 @@
1
+ export {};
@@ -46,7 +46,7 @@ const HOT_CITY_TYPE = {
46
46
  code: "HOT"
47
47
  };
48
48
  const prefixCls = "bui-city-selector";
49
- const CitySelector = React.forwardRef(
49
+ const CitySelector = /* @__PURE__ */ React.forwardRef(
50
50
  (props, ref) => {
51
51
  const _a = props, {
52
52
  className,
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -41,7 +41,7 @@ const oppositeDirection = {
41
41
  top: "down",
42
42
  bottom: "up"
43
43
  };
44
- const Drawer = React.forwardRef((props, ref) => {
44
+ const Drawer = /* @__PURE__ */ React.forwardRef((props, ref) => {
45
45
  const _a = props, {
46
46
  anchor: anchorProp,
47
47
  container,
@@ -0,0 +1 @@
1
+ export {};
package/es/Fade/Fade.js CHANGED
@@ -46,7 +46,7 @@ const defaultTimeout = {
46
46
  enter: duration.enteringScreen,
47
47
  exit: duration.leavingScreen
48
48
  };
49
- const Fade = React.forwardRef((props, ref) => {
49
+ const Fade = /* @__PURE__ */ React.forwardRef((props, ref) => {
50
50
  const _a = props, {
51
51
  appear,
52
52
  children,
@@ -0,0 +1 @@
1
+ export {};
@@ -31,7 +31,7 @@ import clsx from "clsx";
31
31
  import React from "react";
32
32
  import "./IconButton.css";
33
33
  const prefixCls = "bui-icon-btn";
34
- const IconButton = React.forwardRef(
34
+ const IconButton = /* @__PURE__ */ React.forwardRef(
35
35
  (props, ref) => {
36
36
  var _b, _c;
37
37
  const _a = props, {
@@ -0,0 +1 @@
1
+ export {};
package/es/Image/Image.js CHANGED
@@ -34,7 +34,7 @@ import clsx from "clsx";
34
34
  import React, { useLayoutEffect, useState } from "react";
35
35
  import "./index.css";
36
36
  const prefixCls = "bui-image";
37
- const Image = React.forwardRef((props, ref) => {
37
+ const Image = /* @__PURE__ */ React.forwardRef((props, ref) => {
38
38
  const [loaded, setLoaded] = useState(false);
39
39
  const [failed, setFailed] = useState(false);
40
40
  const _a = props, {
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/es/List/List.js CHANGED
@@ -31,7 +31,7 @@ import React from "react";
31
31
  import ListContext from "./ListContext";
32
32
  import "./List.css";
33
33
  const prefixCls = "bui-list";
34
- const List = React.forwardRef((props, ref) => {
34
+ const List = /* @__PURE__ */ React.forwardRef((props, ref) => {
35
35
  const _a = props, {
36
36
  hideDivider,
37
37
  children,
@@ -0,0 +1 @@
1
+ export {};
@@ -33,7 +33,7 @@ import ListContext from "./ListContext";
33
33
  import ListItemFooter from "./ListItemFooter";
34
34
  import "./ListItem.css";
35
35
  const prefixCls = "bui-list-item";
36
- const ListItem = React.forwardRef((props, ref) => {
36
+ const ListItem = /* @__PURE__ */ React.forwardRef((props, ref) => {
37
37
  const _a = props, {
38
38
  children,
39
39
  className,
@@ -0,0 +1 @@
1
+ export {};
@@ -30,7 +30,7 @@ import clsx from "clsx";
30
30
  import React from "react";
31
31
  import "./ListItemContent.css";
32
32
  const prefixCls = "bui-list-item-content";
33
- const ListItemContent = React.forwardRef(
33
+ const ListItemContent = /* @__PURE__ */ React.forwardRef(
34
34
  (props, ref) => {
35
35
  const _a = props, {
36
36
  children,
@@ -0,0 +1 @@
1
+ export {};
@@ -30,7 +30,7 @@ import clsx from "clsx";
30
30
  import React from "react";
31
31
  import "./ListItemExtra.css";
32
32
  const prefixCls = "bui-list-item-extra";
33
- const ListItemExtra = React.forwardRef(
33
+ const ListItemExtra = /* @__PURE__ */ React.forwardRef(
34
34
  (props, ref) => {
35
35
  const _a = props, { children, className, component: Component } = _a, others = __objRest(_a, ["children", "className", "component"]);
36
36
  return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
@@ -0,0 +1 @@
1
+ export {};
@@ -30,7 +30,7 @@ import clsx from "clsx";
30
30
  import React from "react";
31
31
  import "./ListItemFooter.css";
32
32
  const prefixCls = "bui-list-item-footer";
33
- const ListItemFooter = React.forwardRef(
33
+ const ListItemFooter = /* @__PURE__ */ React.forwardRef(
34
34
  (props, ref) => {
35
35
  const _a = props, { children, className, component: Component } = _a, others = __objRest(_a, ["children", "className", "component"]);
36
36
  return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);
@@ -0,0 +1 @@
1
+ export {};
@@ -30,7 +30,7 @@ import clsx from "clsx";
30
30
  import React from "react";
31
31
  import "./ListItemHeader.css";
32
32
  const prefixCls = "bui-list-item-header";
33
- const ListItemHeader = React.forwardRef(
33
+ const ListItemHeader = /* @__PURE__ */ React.forwardRef(
34
34
  (props, ref) => {
35
35
  const _a = props, { children, className, component: Component } = _a, others = __objRest(_a, ["children", "className", "component"]);
36
36
  return /* @__PURE__ */ React.createElement(Component, __spreadValues({ className: clsx(prefixCls, className), ref }, others), children);