@bifrostui/react 1.1.1 → 1.1.7
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.
- package/dist/CitySelector/CitySelectorCore.js +1 -2
- package/dist/Modal/Modal.miniapp.d.ts +2 -2
- package/dist/Picker/utils.d.ts +1 -1
- package/dist/Tabs/Tab.js +1 -1
- package/es/CitySelector/CitySelectorCore.js +2 -3
- package/es/Modal/Modal.miniapp.d.ts +2 -2
- package/es/Picker/utils.d.ts +1 -1
- package/es/Tabs/Tab.js +1 -1
- package/package.json +7 -7
|
@@ -45,11 +45,10 @@ const CitySelector = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
45
45
|
height,
|
|
46
46
|
onSelect,
|
|
47
47
|
onClose,
|
|
48
|
-
ref: propsRef,
|
|
49
48
|
...others
|
|
50
49
|
} = props;
|
|
51
50
|
const cityRef = (0, _react.useRef)(null);
|
|
52
|
-
const nodeRef = (0, _utils.useForkRef)(ref,
|
|
51
|
+
const nodeRef = (0, _utils.useForkRef)(ref, cityRef);
|
|
53
52
|
(0, _utils.useTouchEmulator)(cityRef.current);
|
|
54
53
|
const [codeGroup, setCodeGroup] = (0, _react.useState)([]);
|
|
55
54
|
const [codeShow, setCodeShow] = (0, _react.useState)(false);
|
|
@@ -10,7 +10,7 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
|
|
|
10
10
|
disableScrollLock?: boolean;
|
|
11
11
|
disablePortal?: boolean;
|
|
12
12
|
keepMounted?: boolean;
|
|
13
|
-
} & import("
|
|
13
|
+
} & import("packages/bui-types/src").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
14
|
ref?: React.Ref<HTMLDivElement>;
|
|
15
|
-
}, keyof import("
|
|
15
|
+
}, keyof import("packages/bui-types/src").ICommonProps | "open" | "container" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export default Modal;
|
package/dist/Picker/utils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ICascadePickerOptionItem } from './Picker.types';
|
|
|
2
2
|
/**
|
|
3
3
|
* 根据第一列数据判断选择器类型
|
|
4
4
|
*/
|
|
5
|
-
export declare const pickerPanelType: (options?: any[]) => "multiple" | "
|
|
5
|
+
export declare const pickerPanelType: (options?: any[]) => "multiple" | "single" | "cascade";
|
|
6
6
|
/**
|
|
7
7
|
* 格式化级联模式数据
|
|
8
8
|
*/
|
package/dist/Tabs/Tab.js
CHANGED
|
@@ -29,7 +29,7 @@ const Tab = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
29
29
|
} = tabsContext;
|
|
30
30
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
31
31
|
ref: ref,
|
|
32
|
-
className: (0, _clsx.default)(prefixCls, `${prefixCls}-${align}`, {
|
|
32
|
+
className: (0, _clsx.default)(prefixCls, align !== 'start' && `${prefixCls}-${align}`, {
|
|
33
33
|
[`${prefixCls}-active`]: !_utils.isMini && index === value,
|
|
34
34
|
[`${prefixCls}-miniapp-active`]: _utils.isMini && index === value,
|
|
35
35
|
[`${prefixCls}-disabled`]: disabled
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["className", "title", "selectedCity", "selectedCityGroupName", "currentCity", "currentCityGroupName", "hotCities", "hotCitiesGroupName", "cities", "disableIndex", "touchHandler", "height", "onSelect", "onClose"
|
|
1
|
+
var _excluded = ["className", "title", "selectedCity", "selectedCityGroupName", "currentCity", "currentCityGroupName", "hotCities", "hotCitiesGroupName", "cities", "disableIndex", "touchHandler", "height", "onSelect", "onClose"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -48,10 +48,9 @@ var CitySelector = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
48
48
|
height = props.height,
|
|
49
49
|
onSelect = props.onSelect,
|
|
50
50
|
onClose = props.onClose,
|
|
51
|
-
propsRef = props.ref,
|
|
52
51
|
others = _objectWithoutProperties(props, _excluded);
|
|
53
52
|
var cityRef = useRef(null);
|
|
54
|
-
var nodeRef = useForkRef(ref,
|
|
53
|
+
var nodeRef = useForkRef(ref, cityRef);
|
|
55
54
|
useTouchEmulator(cityRef.current);
|
|
56
55
|
var _useState = useState([]),
|
|
57
56
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10,7 +10,7 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
|
|
|
10
10
|
disableScrollLock?: boolean;
|
|
11
11
|
disablePortal?: boolean;
|
|
12
12
|
keepMounted?: boolean;
|
|
13
|
-
} & import("
|
|
13
|
+
} & import("packages/bui-types/src").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
14
|
ref?: React.Ref<HTMLDivElement>;
|
|
15
|
-
}, keyof import("
|
|
15
|
+
}, keyof import("packages/bui-types/src").ICommonProps | "open" | "container" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export default Modal;
|
package/es/Picker/utils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ICascadePickerOptionItem } from './Picker.types';
|
|
|
2
2
|
/**
|
|
3
3
|
* 根据第一列数据判断选择器类型
|
|
4
4
|
*/
|
|
5
|
-
export declare const pickerPanelType: (options?: any[]) => "multiple" | "
|
|
5
|
+
export declare const pickerPanelType: (options?: any[]) => "multiple" | "single" | "cascade";
|
|
6
6
|
/**
|
|
7
7
|
* 格式化级联模式数据
|
|
8
8
|
*/
|
package/es/Tabs/Tab.js
CHANGED
|
@@ -25,7 +25,7 @@ var Tab = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
25
25
|
triggerChange = tabsContext.triggerChange;
|
|
26
26
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
27
27
|
ref: ref,
|
|
28
|
-
className: clsx(prefixCls, "".concat(prefixCls, "-").concat(align), _defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-active"), !isMini && index === value), "".concat(prefixCls, "-miniapp-active"), isMini && index === value), "".concat(prefixCls, "-disabled"), disabled), className)
|
|
28
|
+
className: clsx(prefixCls, align !== 'start' && "".concat(prefixCls, "-").concat(align), _defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-active"), !isMini && index === value), "".concat(prefixCls, "-miniapp-active"), isMini && index === value), "".concat(prefixCls, "-disabled"), disabled), className)
|
|
29
29
|
}, others, {
|
|
30
30
|
onClick: function onClick(e) {
|
|
31
31
|
if (disabled) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifrostui/react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "React components for building mobile application",
|
|
5
5
|
"homepage": "http://bui.taopiaopiao.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"*.less"
|
|
29
29
|
],
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"father": "
|
|
31
|
+
"father": "4.3.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@bifrostui/icons": "^1.1.
|
|
35
|
-
"@bifrostui/styles": "^1.1.
|
|
36
|
-
"@bifrostui/types": "^1.1.
|
|
37
|
-
"@bifrostui/utils": "^1.1.
|
|
34
|
+
"@bifrostui/icons": "^1.1.7",
|
|
35
|
+
"@bifrostui/styles": "^1.1.7",
|
|
36
|
+
"@bifrostui/types": "^1.1.7",
|
|
37
|
+
"@bifrostui/utils": "^1.1.7",
|
|
38
38
|
"clsx": "^1.2.1",
|
|
39
39
|
"dayjs": "^1.11.7",
|
|
40
40
|
"swiper": "^8.1.5"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": "^17.0.0 || ^18.0.0",
|
|
47
47
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "e1535cb08de162809903d588cc9e139ec3781c2e"
|
|
50
50
|
}
|