@bifrostui/react 2.0.0-alpha.13 → 2.0.0-alpha.14

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.
@@ -32,7 +32,6 @@ __export(Tab_exports, {
32
32
  module.exports = __toCommonJS(Tab_exports);
33
33
  var import_react = __toESM(require("react"));
34
34
  var import_clsx = __toESM(require("clsx"));
35
- var import_components = require("@tarojs/components");
36
35
  var import_utils = require("@bifrostui/utils");
37
36
  var import_TabsContext = __toESM(require("./TabsContext"));
38
37
  var import_classes = require("../classes");
@@ -83,7 +82,7 @@ const Tab = (props) => {
83
82
  );
84
83
  const tabId = tabsContainerId ? `${tabsContainerId}-tab-${index}` : void 0;
85
84
  return /* @__PURE__ */ import_react.default.createElement(
86
- import_components.View,
85
+ "div",
87
86
  {
88
87
  id: tabId,
89
88
  className: rootCls,
@@ -53,7 +53,6 @@ module.exports = __toCommonJS(TabIndicator_exports);
53
53
  var import_react = __toESM(require("react"));
54
54
  var import_clsx = __toESM(require("clsx"));
55
55
  var import_taro = __toESM(require("@tarojs/taro"));
56
- var import_components = require("@tarojs/components");
57
56
  var import_utils = require("@bifrostui/utils");
58
57
  var import_classes = require("../classes");
59
58
  var import_queryBatch = require("./utils/queryBatch");
@@ -191,7 +190,7 @@ const TabIndicator = ({
191
190
  };
192
191
  }, [initializePositions]);
193
192
  return /* @__PURE__ */ import_react.default.createElement(
194
- import_components.View,
193
+ "div",
195
194
  {
196
195
  id: `${wrapperId}-indicator`,
197
196
  className: (0, import_clsx.default)(import_classes.tabIndicatorClass),
@@ -32,7 +32,6 @@ __export(TabMask_exports, {
32
32
  module.exports = __toCommonJS(TabMask_exports);
33
33
  var import_react = __toESM(require("react"));
34
34
  var import_clsx = __toESM(require("clsx"));
35
- var import_components = require("@tarojs/components");
36
35
  var import_classes = require("../classes");
37
36
  const TabMask = ({
38
37
  position,
@@ -48,7 +47,7 @@ const TabMask = ({
48
47
  return rightRange > 1;
49
48
  }, [position, scrollLeft, containerWidth, scrollWidth]);
50
49
  return /* @__PURE__ */ import_react.default.createElement(
51
- import_components.View,
50
+ "div",
52
51
  {
53
52
  className: (0, import_clsx.default)(
54
53
  import_classes.tabMaskClass,
@@ -214,7 +214,7 @@ const Tabs = (props) => {
214
214
  }
215
215
  };
216
216
  }, []);
217
- return /* @__PURE__ */ import_react.default.createElement(import_components.View, { className: (0, import_clsx.default)(import_classes.tabsRootClass, className), style }, /* @__PURE__ */ import_react.default.createElement(
217
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_clsx.default)(import_classes.tabsRootClass, className), style }, /* @__PURE__ */ import_react.default.createElement(
218
218
  import_TabMask.default,
219
219
  {
220
220
  position: "left",
@@ -245,7 +245,7 @@ const Tabs = (props) => {
245
245
  enablePassive: true,
246
246
  enableFlex: true
247
247
  },
248
- /* @__PURE__ */ import_react.default.createElement(import_components.View, { id: wrapperId, className: import_classes.tabsScrollWrapperClass }, /* @__PURE__ */ import_react.default.createElement(
248
+ /* @__PURE__ */ import_react.default.createElement("div", { id: wrapperId, className: import_classes.tabsScrollWrapperClass }, /* @__PURE__ */ import_react.default.createElement(
249
249
  import_TabIndicator.default,
250
250
  {
251
251
  currentValue,
@@ -12,5 +12,5 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
12
12
  keepMounted?: boolean;
13
13
  } & import("@bifrostui/types").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
14
  ref?: React.Ref<HTMLDivElement>;
15
- }, keyof import("@bifrostui/types").ICommonProps | "open" | "container" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ }, "open" | "container" | keyof import("@bifrostui/types").ICommonProps | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
16
  export default Modal;
@@ -1,6 +1,5 @@
1
1
  import React, { useEffect } from "react";
2
2
  import clsx from "clsx";
3
- import { View } from "@tarojs/components";
4
3
  import { useContextSelector } from "@bifrostui/utils";
5
4
  import TabsContext from "./TabsContext";
6
5
  import { tabRootClass, tabActiveClass, tabDisabledClass } from "../classes";
@@ -51,7 +50,7 @@ const Tab = (props) => {
51
50
  );
52
51
  const tabId = tabsContainerId ? `${tabsContainerId}-tab-${index}` : void 0;
53
52
  return /* @__PURE__ */ React.createElement(
54
- View,
53
+ "div",
55
54
  {
56
55
  id: tabId,
57
56
  className: rootCls,
@@ -21,7 +21,6 @@ var __async = (__this, __arguments, generator) => {
21
21
  import React, { useEffect, useRef, useState } from "react";
22
22
  import clsx from "clsx";
23
23
  import Taro from "@tarojs/taro";
24
- import { View } from "@tarojs/components";
25
24
  import { useEventCallback } from "@bifrostui/utils";
26
25
  import { tabIndicatorClass } from "../classes";
27
26
  import { batchQueryTabs } from "./utils/queryBatch";
@@ -159,7 +158,7 @@ const TabIndicator = ({
159
158
  };
160
159
  }, [initializePositions]);
161
160
  return /* @__PURE__ */ React.createElement(
162
- View,
161
+ "div",
163
162
  {
164
163
  id: `${wrapperId}-indicator`,
165
164
  className: clsx(tabIndicatorClass),
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import clsx from "clsx";
3
- import { View } from "@tarojs/components";
4
3
  import { tabMaskClass, tabMaskLeftClass, tabMaskRightClass } from "../classes";
5
4
  const TabMask = ({
6
5
  position,
@@ -16,7 +15,7 @@ const TabMask = ({
16
15
  return rightRange > 1;
17
16
  }, [position, scrollLeft, containerWidth, scrollWidth]);
18
17
  return /* @__PURE__ */ React.createElement(
19
- View,
18
+ "div",
20
19
  {
21
20
  className: clsx(
22
21
  tabMaskClass,
@@ -21,7 +21,7 @@ var __async = (__this, __arguments, generator) => {
21
21
  import React, { useMemo, useState } from "react";
22
22
  import clsx from "clsx";
23
23
  import Taro from "@tarojs/taro";
24
- import { View, ScrollView } from "@tarojs/components";
24
+ import { ScrollView } from "@tarojs/components";
25
25
  import { useValue, useEventCallback } from "@bifrostui/utils";
26
26
  import Tab from "./Tab";
27
27
  import TabIndicator from "./TabIndicator";
@@ -189,7 +189,7 @@ const Tabs = (props) => {
189
189
  }
190
190
  };
191
191
  }, []);
192
- return /* @__PURE__ */ React.createElement(View, { className: clsx(tabsRootClass, className), style }, /* @__PURE__ */ React.createElement(
192
+ return /* @__PURE__ */ React.createElement("div", { className: clsx(tabsRootClass, className), style }, /* @__PURE__ */ React.createElement(
193
193
  TabMask,
194
194
  {
195
195
  position: "left",
@@ -220,7 +220,7 @@ const Tabs = (props) => {
220
220
  enablePassive: true,
221
221
  enableFlex: true
222
222
  },
223
- /* @__PURE__ */ React.createElement(View, { id: wrapperId, className: tabsScrollWrapperClass }, /* @__PURE__ */ React.createElement(
223
+ /* @__PURE__ */ React.createElement("div", { id: wrapperId, className: tabsScrollWrapperClass }, /* @__PURE__ */ React.createElement(
224
224
  TabIndicator,
225
225
  {
226
226
  currentValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifrostui/react",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.14",
4
4
  "description": "React components for building mobile application",
5
5
  "homepage": "http://bui.taopiaopiao.com",
6
6
  "license": "MIT",
@@ -43,10 +43,10 @@
43
43
  "clsx": "^2.1.1",
44
44
  "dayjs": "^1.11.7",
45
45
  "swiper": "^8.1.5",
46
- "@bifrostui/styles": "2.0.0-alpha.13",
47
- "@bifrostui/icons": "2.0.0-alpha.13",
48
- "@bifrostui/types": "2.0.0-alpha.13",
49
- "@bifrostui/utils": "2.0.0-alpha.13"
46
+ "@bifrostui/icons": "2.0.0-alpha.14",
47
+ "@bifrostui/types": "2.0.0-alpha.14",
48
+ "@bifrostui/styles": "2.0.0-alpha.14",
49
+ "@bifrostui/utils": "2.0.0-alpha.14"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@tarojs/components": "^3.0.0",