@bifrostui/react 2.0.0-alpha.10 → 2.0.0-alpha.12

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.
@@ -141,7 +141,7 @@ const Fade = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
141
141
  { mode: inProp ? "enter" : "exit" }
142
142
  )
143
143
  ),
144
- [inProp, animationName, animationDurationAndDelay, easingProp, style]
144
+ [inProp]
145
145
  );
146
146
  (0, import_react.useEffect)(() => {
147
147
  if (inProp && !isMounted) {
package/dist/Tabs/Tab.css CHANGED
@@ -27,14 +27,16 @@
27
27
  }
28
28
  .bui-tab-miniapp-active-line {
29
29
  position: absolute;
30
- bottom: 0;
30
+ bottom: var(--bui-tabs-indicator-bottom);
31
31
  left: -12px;
32
32
  right: -12px;
33
33
  margin: 0 auto !important;
34
- width: 18px;
35
- height: 2px;
34
+ width: var(--bui-tabs-indicator-width);
35
+ height: var(--bui-tabs-indicator-height);
36
36
  transition: all 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
37
- background-color: var(--bui-color-primary);
37
+ background: var(--bui-tabs-indicator-bg);
38
+ border-radius: var(--bui-tabs-indicator-border-radius);
39
+ box-shadow: var(--bui-tabs-indicator-box-shadow);
38
40
  }
39
41
  .bui-tab-disabled {
40
42
  opacity: 0.5;
@@ -107,14 +107,16 @@ xhs-page {
107
107
  }
108
108
  .bui-tab-miniapp-active-line {
109
109
  position: absolute;
110
- bottom: 0;
110
+ bottom: var(--bui-tabs-indicator-bottom);
111
111
  left: -12px;
112
112
  right: -12px;
113
113
  margin: 0 auto !important;
114
- width: 18px;
115
- height: 2px;
114
+ width: var(--bui-tabs-indicator-width);
115
+ height: var(--bui-tabs-indicator-height);
116
116
  transition: all 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
117
- background-color: var(--bui-color-primary);
117
+ background: var(--bui-tabs-indicator-bg);
118
+ border-radius: var(--bui-tabs-indicator-border-radius);
119
+ box-shadow: var(--bui-tabs-indicator-box-shadow);
118
120
  }
119
121
  .bui-tab-disabled {
120
122
  opacity: 0.5;
package/dist/Tag/Tag.css CHANGED
@@ -13,7 +13,6 @@ xhs-page {
13
13
  position: relative;
14
14
  display: inline-flex;
15
15
  align-items: center;
16
- justify-content: center;
17
16
  white-space: nowrap;
18
17
  height: var(--bui-tag-height);
19
18
  line-height: var(--bui-tag-line-height);
@@ -13,7 +13,6 @@ xhs-page {
13
13
  position: relative;
14
14
  display: inline-flex;
15
15
  align-items: center;
16
- justify-content: center;
17
16
  white-space: nowrap;
18
17
  height: var(--bui-tag-height);
19
18
  line-height: var(--bui-tag-line-height);
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { DatePickerProps } from './DatePicker.types';
3
- declare const DatePicker: React.ForwardRefExoticComponent<Omit<DatePickerProps<"div", Omit<import("../Picker").PickerProps<"div", import("..").DrawerProps>, "defaultValue" | "onChange" | "value" | "onClose" | "onConfirm">>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const DatePicker: React.ForwardRefExoticComponent<Omit<DatePickerProps<"div", Omit<import("../Picker").PickerProps<"div", import("..").DrawerProps>, "value" | "defaultValue" | "onChange" | "onClose" | "onConfirm">>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
4
  export default DatePicker;
@@ -117,7 +117,7 @@ const Fade = /* @__PURE__ */ React.forwardRef((props, ref) => {
117
117
  { mode: inProp ? "enter" : "exit" }
118
118
  )
119
119
  ),
120
- [inProp, animationName, animationDurationAndDelay, easingProp, style]
120
+ [inProp]
121
121
  );
122
122
  useEffect(() => {
123
123
  if (inProp && !isMounted) {
@@ -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;
package/es/Tabs/Tab.css CHANGED
@@ -27,14 +27,16 @@
27
27
  }
28
28
  .bui-tab-miniapp-active-line {
29
29
  position: absolute;
30
- bottom: 0;
30
+ bottom: var(--bui-tabs-indicator-bottom);
31
31
  left: -12px;
32
32
  right: -12px;
33
33
  margin: 0 auto !important;
34
- width: 18px;
35
- height: 2px;
34
+ width: var(--bui-tabs-indicator-width);
35
+ height: var(--bui-tabs-indicator-height);
36
36
  transition: all 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
37
- background-color: var(--bui-color-primary);
37
+ background: var(--bui-tabs-indicator-bg);
38
+ border-radius: var(--bui-tabs-indicator-border-radius);
39
+ box-shadow: var(--bui-tabs-indicator-box-shadow);
38
40
  }
39
41
  .bui-tab-disabled {
40
42
  opacity: 0.5;
package/es/Tabs/index.css CHANGED
@@ -107,14 +107,16 @@ xhs-page {
107
107
  }
108
108
  .bui-tab-miniapp-active-line {
109
109
  position: absolute;
110
- bottom: 0;
110
+ bottom: var(--bui-tabs-indicator-bottom);
111
111
  left: -12px;
112
112
  right: -12px;
113
113
  margin: 0 auto !important;
114
- width: 18px;
115
- height: 2px;
114
+ width: var(--bui-tabs-indicator-width);
115
+ height: var(--bui-tabs-indicator-height);
116
116
  transition: all 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
117
- background-color: var(--bui-color-primary);
117
+ background: var(--bui-tabs-indicator-bg);
118
+ border-radius: var(--bui-tabs-indicator-border-radius);
119
+ box-shadow: var(--bui-tabs-indicator-box-shadow);
118
120
  }
119
121
  .bui-tab-disabled {
120
122
  opacity: 0.5;
package/es/Tag/Tag.css CHANGED
@@ -13,7 +13,6 @@ xhs-page {
13
13
  position: relative;
14
14
  display: inline-flex;
15
15
  align-items: center;
16
- justify-content: center;
17
16
  white-space: nowrap;
18
17
  height: var(--bui-tag-height);
19
18
  line-height: var(--bui-tag-line-height);
package/es/Tag/index.css CHANGED
@@ -13,7 +13,6 @@ xhs-page {
13
13
  position: relative;
14
14
  display: inline-flex;
15
15
  align-items: center;
16
- justify-content: center;
17
16
  white-space: nowrap;
18
17
  height: var(--bui-tag-height);
19
18
  line-height: var(--bui-tag-line-height);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifrostui/react",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.12",
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/icons": "2.0.0-alpha.10",
47
- "@bifrostui/types": "2.0.0-alpha.10",
48
- "@bifrostui/styles": "2.0.0-alpha.10",
49
- "@bifrostui/utils": "2.0.0-alpha.10"
46
+ "@bifrostui/icons": "2.0.0-alpha.12",
47
+ "@bifrostui/styles": "2.0.0-alpha.12",
48
+ "@bifrostui/types": "2.0.0-alpha.12",
49
+ "@bifrostui/utils": "2.0.0-alpha.12"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@tarojs/components": "^3.0.0",