@ray-js/smart-ui 2.1.6 → 2.1.7-beta-2
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/@types/action-sheet/index.js +1 -2
- package/dist/@types/base/component.js +1 -2
- package/dist/@types/base/events.js +1 -2
- package/dist/@types/base/external-class-name.js +1 -2
- package/dist/@types/base/index.d.ts +4 -4
- package/dist/@types/base/index.js +1 -20
- package/dist/@types/base/open-type.js +1 -2
- package/dist/@types/battery/index.js +1 -2
- package/dist/@types/bottom-sheet/index.js +1 -2
- package/dist/@types/button/index.js +1 -2
- package/dist/@types/calendar/index.js +1 -2
- package/dist/@types/cascader/index.js +1 -2
- package/dist/@types/cell/index.js +1 -2
- package/dist/@types/cell-group/index.js +1 -2
- package/dist/@types/checkbox/index.js +1 -2
- package/dist/@types/checkbox-group/index.js +1 -2
- package/dist/@types/circle/index.js +1 -2
- package/dist/@types/col/index.js +1 -2
- package/dist/@types/collapse/index.js +1 -2
- package/dist/@types/collapse-item/index.js +1 -2
- package/dist/@types/config-provider/index.js +1 -2
- package/dist/@types/config-provider/theme-vars.js +1 -2
- package/dist/@types/count-down/index.js +1 -2
- package/dist/@types/custom-keyboard/index.js +1 -2
- package/dist/@types/datetime-picker/index.js +1 -2
- package/dist/@types/dialog/dialog.js +1 -2
- package/dist/@types/dialog/index.d.ts +1 -1
- package/dist/@types/dialog/index.js +1 -2
- package/dist/@types/divider/index.js +1 -2
- package/dist/@types/dropdown-item/index.js +1 -2
- package/dist/@types/dropdown-menu/index.js +1 -2
- package/dist/@types/empty/index.js +1 -2
- package/dist/@types/field/index.js +1 -2
- package/dist/@types/grid/index.js +1 -2
- package/dist/@types/grid-item/index.js +1 -2
- package/dist/@types/icon/index.js +1 -2
- package/dist/@types/image/index.js +1 -2
- package/dist/@types/index-anchor/index.js +1 -2
- package/dist/@types/index-bar/index.js +1 -2
- package/dist/@types/index.d.ts +62 -64
- package/dist/@types/index.js +1 -80
- package/dist/@types/loading/index.js +1 -2
- package/dist/@types/nav-bar/index.js +1 -2
- package/dist/@types/notice-bar/index.js +1 -2
- package/dist/@types/notify/index.js +1 -2
- package/dist/@types/notify/notify.js +1 -2
- package/dist/@types/overlay/index.js +1 -2
- package/dist/@types/picker/index.js +1 -2
- package/dist/@types/popup/index.js +1 -2
- package/dist/@types/progress/index.js +1 -2
- package/dist/@types/radio/index.js +1 -2
- package/dist/@types/radio-group/index.js +1 -2
- package/dist/@types/rate/index.js +1 -2
- package/dist/@types/row/index.js +1 -2
- package/dist/@types/search/index.js +1 -2
- package/dist/@types/sidebar/index.js +1 -2
- package/dist/@types/sidebar-item/index.js +1 -2
- package/dist/@types/skeleton/index.js +1 -2
- package/dist/@types/slider/index.js +1 -2
- package/dist/@types/stepper/index.js +1 -2
- package/dist/@types/steps/index.js +1 -2
- package/dist/@types/sticky/index.js +1 -2
- package/dist/@types/swipe-cell/index.js +1 -2
- package/dist/@types/switch/index.js +1 -2
- package/dist/@types/tab/index.js +1 -2
- package/dist/@types/tabbar/index.js +1 -2
- package/dist/@types/tabbar-item/index.js +1 -2
- package/dist/@types/tabs/index.js +1 -2
- package/dist/@types/tag/index.js +1 -2
- package/dist/@types/toast/index.js +1 -2
- package/dist/@types/toast/toast.js +1 -3
- package/dist/@types/transition/index.js +1 -2
- package/dist/@types/tree-select/index.js +1 -2
- package/dist/action-sheet/ActionSheet.js +3 -8
- package/dist/action-sheet/PropTypes.js +1 -2
- package/dist/action-sheet/index.d.ts +1 -1
- package/dist/action-sheet/index.js +3 -24
- package/dist/base/index.js +1 -2
- package/dist/battery/Battery.js +3 -8
- package/dist/battery/PropTypes.js +1 -2
- package/dist/battery/index.d.ts +1 -1
- package/dist/battery/index.js +3 -24
- package/dist/bottom-sheet/BottomSheet.js +3 -8
- package/dist/bottom-sheet/PropTypes.js +1 -2
- package/dist/bottom-sheet/index.d.ts +1 -1
- package/dist/bottom-sheet/index.js +3 -24
- package/dist/button/Button.js +3 -8
- package/dist/button/PropTypes.js +1 -2
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +3 -24
- package/dist/calendar/Calendar.js +3 -8
- package/dist/calendar/PropTypes.js +1 -2
- package/dist/calendar/index.d.ts +1 -1
- package/dist/calendar/index.js +3 -24
- package/dist/cascader/Cascader.js +3 -8
- package/dist/cascader/PropTypes.js +1 -2
- package/dist/cascader/index.d.ts +1 -1
- package/dist/cascader/index.js +3 -24
- package/dist/cell/Cell.js +3 -8
- package/dist/cell/PropTypes.js +1 -2
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.js +3 -24
- package/dist/cell-group/CellGroup.js +2 -7
- package/dist/cell-group/PropTypes.js +1 -2
- package/dist/cell-group/index.d.ts +1 -1
- package/dist/cell-group/index.js +3 -24
- package/dist/checkbox/Checkbox.js +3 -8
- package/dist/checkbox/PropTypes.js +1 -2
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/index.js +3 -24
- package/dist/checkbox-group/CheckboxGroup.js +3 -8
- package/dist/checkbox-group/PropTypes.js +1 -2
- package/dist/checkbox-group/index.d.ts +1 -1
- package/dist/checkbox-group/index.js +3 -24
- package/dist/circle/Circle.d.ts +1 -1
- package/dist/circle/Circle.js +4 -4
- package/dist/circle/PropTypes.d.ts +58 -2
- package/dist/circle/PropTypes.js +1 -2
- package/dist/circle/index.d.ts +3 -2
- package/dist/circle/index.js +18 -24
- package/dist/col/Col.js +3 -8
- package/dist/col/PropTypes.js +1 -2
- package/dist/col/index.d.ts +1 -1
- package/dist/col/index.js +3 -24
- package/dist/collapse/Collapse.js +2 -7
- package/dist/collapse/PropTypes.js +1 -2
- package/dist/collapse/index.d.ts +1 -1
- package/dist/collapse/index.js +4 -25
- package/dist/collapse-item/CollapseItem.js +2 -7
- package/dist/collapse-item/PropTypes.js +1 -2
- package/dist/collapse-item/index.d.ts +1 -1
- package/dist/collapse-item/index.js +4 -25
- package/dist/common/withReactProps.js +26 -45
- package/dist/config-provider/ConfigProvider.js +2 -7
- package/dist/config-provider/PropTypes.js +1 -2
- package/dist/config-provider/index.d.ts +1 -1
- package/dist/config-provider/index.js +4 -25
- package/dist/count-down/CountDown.js +3 -8
- package/dist/count-down/PropTypes.js +1 -2
- package/dist/count-down/index.d.ts +1 -1
- package/dist/count-down/index.js +3 -24
- package/dist/custom-keyboard/CustomKeyboard.js +3 -8
- package/dist/custom-keyboard/PropTypes.js +1 -2
- package/dist/custom-keyboard/index.d.ts +1 -1
- package/dist/custom-keyboard/index.js +3 -24
- package/dist/datetime-picker/DateTimePicker.js +3 -8
- package/dist/datetime-picker/PropTypes.js +1 -2
- package/dist/datetime-picker/index.d.ts +1 -1
- package/dist/datetime-picker/index.js +3 -24
- package/dist/dialog/Dialog.js +5 -11
- package/dist/dialog/PropTypes.js +1 -2
- package/dist/dialog/index.d.ts +1 -1
- package/dist/dialog/index.js +4 -35
- package/dist/divider/Divider.js +2 -7
- package/dist/divider/PropTypes.js +1 -2
- package/dist/divider/index.d.ts +1 -1
- package/dist/divider/index.js +3 -24
- package/dist/dropdown-item/DropdownItem.js +3 -8
- package/dist/dropdown-item/PropTypes.js +1 -2
- package/dist/dropdown-item/index.d.ts +1 -1
- package/dist/dropdown-item/index.js +3 -24
- package/dist/dropdown-menu/DropdownMenu.js +3 -8
- package/dist/dropdown-menu/PropTypes.js +1 -2
- package/dist/dropdown-menu/index.d.ts +1 -1
- package/dist/dropdown-menu/index.js +3 -24
- package/dist/empty/Empty.js +3 -8
- package/dist/empty/PropTypes.js +1 -2
- package/dist/empty/index.d.ts +1 -1
- package/dist/empty/index.js +3 -24
- package/dist/field/Field.js +2 -7
- package/dist/field/PropTypes.js +1 -2
- package/dist/field/index.d.ts +1 -1
- package/dist/field/index.js +4 -25
- package/dist/grid/Grid.js +3 -8
- package/dist/grid/PropTypes.js +1 -2
- package/dist/grid/index.d.ts +1 -1
- package/dist/grid/index.js +3 -24
- package/dist/grid-item/GridItem.js +3 -8
- package/dist/grid-item/PropTypes.js +1 -2
- package/dist/grid-item/index.d.ts +1 -1
- package/dist/grid-item/index.js +3 -24
- package/dist/icon/Icon.js +3 -8
- package/dist/icon/PropTypes.js +1 -2
- package/dist/icon/index.d.ts +1 -1
- package/dist/icon/index.js +3 -24
- package/dist/image/Image.js +2 -7
- package/dist/image/PropTypes.js +1 -2
- package/dist/image/index.d.ts +1 -1
- package/dist/image/index.js +4 -25
- package/dist/index-anchor/IndexAnchor.js +3 -8
- package/dist/index-anchor/PropTypes.js +1 -2
- package/dist/index-anchor/index.d.ts +1 -1
- package/dist/index-anchor/index.js +3 -24
- package/dist/index-bar/IndexBar.js +3 -8
- package/dist/index-bar/PropTypes.js +1 -2
- package/dist/index-bar/index.d.ts +1 -1
- package/dist/index-bar/index.js +3 -24
- package/dist/index.d.ts +61 -59
- package/dist/index.js +60 -77
- package/dist/loading/Loading.js +3 -8
- package/dist/loading/PropTypes.js +1 -2
- package/dist/loading/index.d.ts +1 -1
- package/dist/loading/index.js +3 -24
- package/dist/nav-bar/NavBar.js +3 -8
- package/dist/nav-bar/PropTypes.js +1 -2
- package/dist/nav-bar/index.d.ts +1 -1
- package/dist/nav-bar/index.js +3 -24
- package/dist/notice-bar/NoticeBar.js +3 -8
- package/dist/notice-bar/PropTypes.d.ts +2 -2
- package/dist/notice-bar/PropTypes.js +1 -2
- package/dist/notice-bar/index.d.ts +1 -1
- package/dist/notice-bar/index.js +3 -24
- package/dist/notify/Notify.js +4 -10
- package/dist/notify/PropTypes.js +1 -2
- package/dist/notify/index.d.ts +1 -1
- package/dist/notify/index.js +3 -34
- package/dist/overlay/Overlay.js +3 -8
- package/dist/overlay/PropTypes.d.ts +2 -2
- package/dist/overlay/PropTypes.js +1 -2
- package/dist/overlay/index.d.ts +1 -1
- package/dist/overlay/index.js +3 -24
- package/dist/picker/Picker.js +3 -8
- package/dist/picker/PropTypes.js +1 -2
- package/dist/picker/index.d.ts +1 -1
- package/dist/picker/index.js +3 -24
- package/dist/popup/Popup.js +3 -8
- package/dist/popup/PropTypes.js +1 -2
- package/dist/popup/index.d.ts +1 -1
- package/dist/popup/index.js +3 -24
- package/dist/progress/Circle.js +3 -8
- package/dist/progress/Progress.js +3 -8
- package/dist/progress/PropTypes.js +1 -2
- package/dist/progress/index.js +8 -25
- package/dist/radio/PropTypes.d.ts +2 -2
- package/dist/radio/PropTypes.js +1 -2
- package/dist/radio/Radio.js +3 -8
- package/dist/radio/index.d.ts +1 -1
- package/dist/radio/index.js +3 -24
- package/dist/radio-group/PropTypes.js +1 -2
- package/dist/radio-group/RadioGroup.js +3 -8
- package/dist/radio-group/index.d.ts +1 -1
- package/dist/radio-group/index.js +3 -24
- package/dist/rate/PropTypes.d.ts +1 -1
- package/dist/rate/PropTypes.js +1 -2
- package/dist/rate/Rate.js +3 -8
- package/dist/rate/index.d.ts +1 -1
- package/dist/rate/index.js +3 -24
- package/dist/row/PropTypes.js +1 -2
- package/dist/row/Row.js +3 -8
- package/dist/row/index.d.ts +1 -1
- package/dist/row/index.js +3 -24
- package/dist/search/PropTypes.js +1 -2
- package/dist/search/Search.js +3 -8
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +3 -24
- package/dist/sidebar/PropTypes.js +1 -2
- package/dist/sidebar/Sidebar.js +3 -8
- package/dist/sidebar/index.d.ts +1 -1
- package/dist/sidebar/index.js +3 -24
- package/dist/sidebar-item/PropTypes.js +1 -2
- package/dist/sidebar-item/SidebarItem.js +3 -8
- package/dist/sidebar-item/index.d.ts +1 -1
- package/dist/sidebar-item/index.js +3 -24
- package/dist/skeleton/PropTypes.js +1 -2
- package/dist/skeleton/Skeleton.js +3 -8
- package/dist/skeleton/index.d.ts +1 -1
- package/dist/skeleton/index.js +3 -24
- package/dist/slider/PropTypes.js +1 -2
- package/dist/slider/RangeSlider.js +6 -22
- package/dist/slider/index.js +7 -25
- package/dist/stepper/PropTypes.js +1 -2
- package/dist/stepper/Stepper.js +3 -8
- package/dist/stepper/index.d.ts +1 -1
- package/dist/stepper/index.js +3 -24
- package/dist/steps/PropTypes.js +1 -2
- package/dist/steps/Steps.js +3 -8
- package/dist/steps/index.d.ts +1 -1
- package/dist/steps/index.js +3 -24
- package/dist/sticky/PropTypes.js +1 -2
- package/dist/sticky/Sticky.js +3 -8
- package/dist/sticky/index.d.ts +1 -1
- package/dist/sticky/index.js +3 -24
- package/dist/swipe-cell/PropTypes.js +1 -2
- package/dist/swipe-cell/SwipeCell.js +3 -8
- package/dist/swipe-cell/index.d.ts +1 -1
- package/dist/swipe-cell/index.js +3 -24
- package/dist/switch/PropTypes.js +1 -2
- package/dist/switch/Switch.js +2 -7
- package/dist/switch/index.d.ts +1 -1
- package/dist/switch/index.js +4 -25
- package/dist/tab/PropTypes.js +1 -2
- package/dist/tab/Tab.js +8 -24
- package/dist/tab/index.d.ts +1 -1
- package/dist/tab/index.js +3 -24
- package/dist/tabbar/PropTypes.js +1 -2
- package/dist/tabbar/Tabbar.js +3 -8
- package/dist/tabbar/index.d.ts +1 -1
- package/dist/tabbar/index.js +3 -24
- package/dist/tabbar-item/PropTypes.js +1 -2
- package/dist/tabbar-item/TabbarItem.js +3 -8
- package/dist/tabbar-item/index.d.ts +1 -1
- package/dist/tabbar-item/index.js +3 -24
- package/dist/tabs/PropTypes.js +1 -2
- package/dist/tabs/Tabs.js +12 -28
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +3 -24
- package/dist/tag/PropTypes.js +1 -2
- package/dist/tag/Tag.js +3 -8
- package/dist/tag/index.d.ts +1 -1
- package/dist/tag/index.js +3 -24
- package/dist/toast/PropTypes.js +1 -2
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.js +4 -35
- package/dist/toast/toast.js +5 -11
- package/dist/transition/PropTypes.js +1 -2
- package/dist/transition/Transition.js +3 -8
- package/dist/transition/index.d.ts +1 -1
- package/dist/transition/index.js +3 -24
- package/dist/tree-select/PropTypes.js +1 -2
- package/dist/tree-select/TreeSelect.js +3 -8
- package/dist/tree-select/index.d.ts +1 -1
- package/dist/tree-select/index.js +3 -24
- package/package.json +2 -2
package/dist/tabs/PropTypes.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
package/dist/tabs/Tabs.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
2
|
var t = {};
|
|
15
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -21,23 +9,19 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
9
|
}
|
|
22
10
|
return t;
|
|
23
11
|
};
|
|
24
|
-
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
exports.__esModule = true;
|
|
28
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
13
|
// @ts-ignore
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
return ((
|
|
37
|
-
|
|
14
|
+
import Tabs from '@tuya-miniapp/smart-ui/lib/tabs/index';
|
|
15
|
+
import { cloneElement, Children } from 'react';
|
|
16
|
+
import { withReactProps } from '../common/withReactProps';
|
|
17
|
+
const TabsComp = withReactProps(Tabs);
|
|
18
|
+
export default (_a) => {
|
|
19
|
+
var { children, inactiveDestroy = false, active } = _a, rest = __rest(_a, ["children", "inactiveDestroy", "active"]);
|
|
20
|
+
return (_jsx(TabsComp, Object.assign({}, rest, { inactiveDestroy: inactiveDestroy, active: active }, { children: children &&
|
|
21
|
+
Children.map(children, (child, index) => {
|
|
38
22
|
var _a, _b;
|
|
39
|
-
return
|
|
40
|
-
isActive: inactiveDestroy ? active === ((_b = (_a = child.props) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : index) : true
|
|
23
|
+
return cloneElement(child, {
|
|
24
|
+
isActive: inactiveDestroy ? active === ((_b = (_a = child.props) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : index) : true,
|
|
41
25
|
});
|
|
42
26
|
}) })));
|
|
43
|
-
}
|
|
27
|
+
};
|
package/dist/tabs/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import type { SmartTabs } from './PropTypes';
|
|
3
3
|
declare const Tabs: import("react").FC<SmartTabs>;
|
|
4
4
|
export { Tabs };
|
|
5
|
-
export
|
|
5
|
+
export { SmartTabs, SmartTabsEvents, SmartTabsExternalClassName, SmartTabsProps, SmartTabsScrollEventDetail, SmartTabsBaseEventDetail, } from './PropTypes';
|
package/dist/tabs/index.js
CHANGED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
exports.__esModule = true;
|
|
20
|
-
exports.Tabs = void 0;
|
|
21
|
-
var Tabs_1 = __importDefault(require("./Tabs"));
|
|
22
|
-
var Tabs = Tabs_1["default"];
|
|
23
|
-
exports.Tabs = Tabs;
|
|
24
|
-
__exportStar(require("./PropTypes"), exports);
|
|
1
|
+
import _Tabs from './Tabs';
|
|
2
|
+
const Tabs = _Tabs;
|
|
3
|
+
export { Tabs };
|
package/dist/tag/PropTypes.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
package/dist/tag/Tag.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
exports.__esModule = true;
|
|
6
1
|
// @ts-ignore
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import Tag from '@tuya-miniapp/smart-ui/lib/tag/index';
|
|
3
|
+
import { withReactProps } from '../common/withReactProps';
|
|
4
|
+
export default withReactProps(Tag);
|
package/dist/tag/index.d.ts
CHANGED
package/dist/tag/index.js
CHANGED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
exports.__esModule = true;
|
|
20
|
-
exports.Tag = void 0;
|
|
21
|
-
var Tag_1 = __importDefault(require("./Tag"));
|
|
22
|
-
var Tag = Tag_1["default"];
|
|
23
|
-
exports.Tag = Tag;
|
|
24
|
-
__exportStar(require("./PropTypes"), exports);
|
|
1
|
+
import _Tag from './Tag';
|
|
2
|
+
const Tag = _Tag;
|
|
3
|
+
export { Tag };
|
package/dist/toast/PropTypes.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
package/dist/toast/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import type { ToastInstance, SmartToastOptions } from './PropTypes';
|
|
|
4
4
|
declare const Toast: import("react").FC<SmartToastOptions>;
|
|
5
5
|
declare const ToastInstance: typeof _ToastInstance;
|
|
6
6
|
export { Toast, ToastInstance };
|
|
7
|
-
export
|
|
7
|
+
export { SmartToast, SmartToastOptions } from './PropTypes';
|
package/dist/toast/index.js
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
-
};
|
|
28
|
-
exports.__esModule = true;
|
|
29
|
-
exports.ToastInstance = exports.Toast = void 0;
|
|
30
|
-
var toast_1 = __importStar(require("./toast"));
|
|
31
|
-
var Toast = toast_1["default"];
|
|
32
|
-
exports.Toast = Toast;
|
|
33
|
-
var ToastInstance = toast_1.ToastInstance;
|
|
34
|
-
exports.ToastInstance = ToastInstance;
|
|
35
|
-
__exportStar(require("./PropTypes"), exports);
|
|
1
|
+
import _Toast, { ToastInstance as _ToastInstance } from './toast';
|
|
2
|
+
const Toast = _Toast;
|
|
3
|
+
const ToastInstance = _ToastInstance;
|
|
4
|
+
export { Toast, ToastInstance };
|
package/dist/toast/toast.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.ToastInstance = void 0;
|
|
7
1
|
// @ts-ignore
|
|
8
|
-
|
|
2
|
+
import Toast from '@tuya-miniapp/smart-ui/lib/toast/index';
|
|
9
3
|
// @ts-ignore
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
import ToastInstance from '@tuya-miniapp/smart-ui/lib/toast/toast';
|
|
5
|
+
import { withReactProps } from '../common/withReactProps';
|
|
6
|
+
export default withReactProps(Toast);
|
|
7
|
+
export { ToastInstance };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
exports.__esModule = true;
|
|
6
1
|
// @ts-ignore
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import Transition from '@tuya-miniapp/smart-ui/lib/transition/index';
|
|
3
|
+
import { withReactProps } from '../common/withReactProps';
|
|
4
|
+
export default withReactProps(Transition);
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import type { SmartTransition } from './PropTypes';
|
|
3
3
|
declare const Transition: import("react").FC<SmartTransition>;
|
|
4
4
|
export { Transition };
|
|
5
|
-
export
|
|
5
|
+
export { SmartTransition, SmartTransitionEvents, SmartTransitionExternalClassName, SmartTransitionProps, } from './PropTypes';
|
package/dist/transition/index.js
CHANGED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
exports.__esModule = true;
|
|
20
|
-
exports.Transition = void 0;
|
|
21
|
-
var Transition_1 = __importDefault(require("./Transition"));
|
|
22
|
-
var Transition = Transition_1["default"];
|
|
23
|
-
exports.Transition = Transition;
|
|
24
|
-
__exportStar(require("./PropTypes"), exports);
|
|
1
|
+
import _Transition from './Transition';
|
|
2
|
+
const Transition = _Transition;
|
|
3
|
+
export { Transition };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
exports.__esModule = true;
|
|
6
1
|
// @ts-ignore
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import TreeSelect from '@tuya-miniapp/smart-ui/lib/tree-select/index';
|
|
3
|
+
import { withReactProps } from '../common/withReactProps';
|
|
4
|
+
export default withReactProps(TreeSelect);
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import type { SmartTreeSelect } from './PropTypes';
|
|
3
3
|
declare const TreeSelect: import("react").FC<SmartTreeSelect>;
|
|
4
4
|
export { TreeSelect };
|
|
5
|
-
export
|
|
5
|
+
export { SmartTreeSelect, SmartTreeSelectEvents, SmartTreeSelectExternalClassName, SmartTreeSelectItem, SmartTreeSelectProps, SmartTreeSelectClickNavDetail, } from './PropTypes';
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
exports.__esModule = true;
|
|
20
|
-
exports.TreeSelect = void 0;
|
|
21
|
-
var TreeSelect_1 = __importDefault(require("./TreeSelect"));
|
|
22
|
-
var TreeSelect = TreeSelect_1["default"];
|
|
23
|
-
exports.TreeSelect = TreeSelect;
|
|
24
|
-
__exportStar(require("./PropTypes"), exports);
|
|
1
|
+
import _TreeSelect from './TreeSelect';
|
|
2
|
+
const TreeSelect = _TreeSelect;
|
|
3
|
+
export { TreeSelect };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7-beta-2",
|
|
4
4
|
"author": "睦海(李利民)",
|
|
5
5
|
"description": "轻量、可靠的智能小程序 UI 组件库",
|
|
6
6
|
"scripts": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@ray-js/components-ty-slider": "^0.2.52",
|
|
38
|
-
"@tuya-miniapp/smart-ui": "
|
|
38
|
+
"@tuya-miniapp/smart-ui": "2.1.7-beta-1",
|
|
39
39
|
"lodash-es": "^4.17.21"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|