@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.
Files changed (323) hide show
  1. package/dist/@types/action-sheet/index.js +1 -2
  2. package/dist/@types/base/component.js +1 -2
  3. package/dist/@types/base/events.js +1 -2
  4. package/dist/@types/base/external-class-name.js +1 -2
  5. package/dist/@types/base/index.d.ts +4 -4
  6. package/dist/@types/base/index.js +1 -20
  7. package/dist/@types/base/open-type.js +1 -2
  8. package/dist/@types/battery/index.js +1 -2
  9. package/dist/@types/bottom-sheet/index.js +1 -2
  10. package/dist/@types/button/index.js +1 -2
  11. package/dist/@types/calendar/index.js +1 -2
  12. package/dist/@types/cascader/index.js +1 -2
  13. package/dist/@types/cell/index.js +1 -2
  14. package/dist/@types/cell-group/index.js +1 -2
  15. package/dist/@types/checkbox/index.js +1 -2
  16. package/dist/@types/checkbox-group/index.js +1 -2
  17. package/dist/@types/circle/index.js +1 -2
  18. package/dist/@types/col/index.js +1 -2
  19. package/dist/@types/collapse/index.js +1 -2
  20. package/dist/@types/collapse-item/index.js +1 -2
  21. package/dist/@types/config-provider/index.js +1 -2
  22. package/dist/@types/config-provider/theme-vars.js +1 -2
  23. package/dist/@types/count-down/index.js +1 -2
  24. package/dist/@types/custom-keyboard/index.js +1 -2
  25. package/dist/@types/datetime-picker/index.js +1 -2
  26. package/dist/@types/dialog/dialog.js +1 -2
  27. package/dist/@types/dialog/index.d.ts +1 -1
  28. package/dist/@types/dialog/index.js +1 -2
  29. package/dist/@types/divider/index.js +1 -2
  30. package/dist/@types/dropdown-item/index.js +1 -2
  31. package/dist/@types/dropdown-menu/index.js +1 -2
  32. package/dist/@types/empty/index.js +1 -2
  33. package/dist/@types/field/index.js +1 -2
  34. package/dist/@types/grid/index.js +1 -2
  35. package/dist/@types/grid-item/index.js +1 -2
  36. package/dist/@types/icon/index.js +1 -2
  37. package/dist/@types/image/index.js +1 -2
  38. package/dist/@types/index-anchor/index.js +1 -2
  39. package/dist/@types/index-bar/index.js +1 -2
  40. package/dist/@types/index.d.ts +62 -64
  41. package/dist/@types/index.js +1 -80
  42. package/dist/@types/loading/index.js +1 -2
  43. package/dist/@types/nav-bar/index.js +1 -2
  44. package/dist/@types/notice-bar/index.js +1 -2
  45. package/dist/@types/notify/index.js +1 -2
  46. package/dist/@types/notify/notify.js +1 -2
  47. package/dist/@types/overlay/index.js +1 -2
  48. package/dist/@types/picker/index.js +1 -2
  49. package/dist/@types/popup/index.js +1 -2
  50. package/dist/@types/progress/index.js +1 -2
  51. package/dist/@types/radio/index.js +1 -2
  52. package/dist/@types/radio-group/index.js +1 -2
  53. package/dist/@types/rate/index.js +1 -2
  54. package/dist/@types/row/index.js +1 -2
  55. package/dist/@types/search/index.js +1 -2
  56. package/dist/@types/sidebar/index.js +1 -2
  57. package/dist/@types/sidebar-item/index.js +1 -2
  58. package/dist/@types/skeleton/index.js +1 -2
  59. package/dist/@types/slider/index.js +1 -2
  60. package/dist/@types/stepper/index.js +1 -2
  61. package/dist/@types/steps/index.js +1 -2
  62. package/dist/@types/sticky/index.js +1 -2
  63. package/dist/@types/swipe-cell/index.js +1 -2
  64. package/dist/@types/switch/index.js +1 -2
  65. package/dist/@types/tab/index.js +1 -2
  66. package/dist/@types/tabbar/index.js +1 -2
  67. package/dist/@types/tabbar-item/index.js +1 -2
  68. package/dist/@types/tabs/index.js +1 -2
  69. package/dist/@types/tag/index.js +1 -2
  70. package/dist/@types/toast/index.js +1 -2
  71. package/dist/@types/toast/toast.js +1 -3
  72. package/dist/@types/transition/index.js +1 -2
  73. package/dist/@types/tree-select/index.js +1 -2
  74. package/dist/action-sheet/ActionSheet.js +3 -8
  75. package/dist/action-sheet/PropTypes.js +1 -2
  76. package/dist/action-sheet/index.d.ts +1 -1
  77. package/dist/action-sheet/index.js +3 -24
  78. package/dist/base/index.js +1 -2
  79. package/dist/battery/Battery.js +3 -8
  80. package/dist/battery/PropTypes.js +1 -2
  81. package/dist/battery/index.d.ts +1 -1
  82. package/dist/battery/index.js +3 -24
  83. package/dist/bottom-sheet/BottomSheet.js +3 -8
  84. package/dist/bottom-sheet/PropTypes.js +1 -2
  85. package/dist/bottom-sheet/index.d.ts +1 -1
  86. package/dist/bottom-sheet/index.js +3 -24
  87. package/dist/button/Button.js +3 -8
  88. package/dist/button/PropTypes.js +1 -2
  89. package/dist/button/index.d.ts +1 -1
  90. package/dist/button/index.js +3 -24
  91. package/dist/calendar/Calendar.js +3 -8
  92. package/dist/calendar/PropTypes.js +1 -2
  93. package/dist/calendar/index.d.ts +1 -1
  94. package/dist/calendar/index.js +3 -24
  95. package/dist/cascader/Cascader.js +3 -8
  96. package/dist/cascader/PropTypes.js +1 -2
  97. package/dist/cascader/index.d.ts +1 -1
  98. package/dist/cascader/index.js +3 -24
  99. package/dist/cell/Cell.js +3 -8
  100. package/dist/cell/PropTypes.js +1 -2
  101. package/dist/cell/index.d.ts +1 -1
  102. package/dist/cell/index.js +3 -24
  103. package/dist/cell-group/CellGroup.js +2 -7
  104. package/dist/cell-group/PropTypes.js +1 -2
  105. package/dist/cell-group/index.d.ts +1 -1
  106. package/dist/cell-group/index.js +3 -24
  107. package/dist/checkbox/Checkbox.js +3 -8
  108. package/dist/checkbox/PropTypes.js +1 -2
  109. package/dist/checkbox/index.d.ts +1 -1
  110. package/dist/checkbox/index.js +3 -24
  111. package/dist/checkbox-group/CheckboxGroup.js +3 -8
  112. package/dist/checkbox-group/PropTypes.js +1 -2
  113. package/dist/checkbox-group/index.d.ts +1 -1
  114. package/dist/checkbox-group/index.js +3 -24
  115. package/dist/circle/Circle.d.ts +1 -1
  116. package/dist/circle/Circle.js +4 -4
  117. package/dist/circle/PropTypes.d.ts +58 -2
  118. package/dist/circle/PropTypes.js +1 -2
  119. package/dist/circle/index.d.ts +3 -2
  120. package/dist/circle/index.js +18 -24
  121. package/dist/col/Col.js +3 -8
  122. package/dist/col/PropTypes.js +1 -2
  123. package/dist/col/index.d.ts +1 -1
  124. package/dist/col/index.js +3 -24
  125. package/dist/collapse/Collapse.js +2 -7
  126. package/dist/collapse/PropTypes.js +1 -2
  127. package/dist/collapse/index.d.ts +1 -1
  128. package/dist/collapse/index.js +4 -25
  129. package/dist/collapse-item/CollapseItem.js +2 -7
  130. package/dist/collapse-item/PropTypes.js +1 -2
  131. package/dist/collapse-item/index.d.ts +1 -1
  132. package/dist/collapse-item/index.js +4 -25
  133. package/dist/common/withReactProps.js +26 -45
  134. package/dist/config-provider/ConfigProvider.js +2 -7
  135. package/dist/config-provider/PropTypes.js +1 -2
  136. package/dist/config-provider/index.d.ts +1 -1
  137. package/dist/config-provider/index.js +4 -25
  138. package/dist/count-down/CountDown.js +3 -8
  139. package/dist/count-down/PropTypes.js +1 -2
  140. package/dist/count-down/index.d.ts +1 -1
  141. package/dist/count-down/index.js +3 -24
  142. package/dist/custom-keyboard/CustomKeyboard.js +3 -8
  143. package/dist/custom-keyboard/PropTypes.js +1 -2
  144. package/dist/custom-keyboard/index.d.ts +1 -1
  145. package/dist/custom-keyboard/index.js +3 -24
  146. package/dist/datetime-picker/DateTimePicker.js +3 -8
  147. package/dist/datetime-picker/PropTypes.js +1 -2
  148. package/dist/datetime-picker/index.d.ts +1 -1
  149. package/dist/datetime-picker/index.js +3 -24
  150. package/dist/dialog/Dialog.js +5 -11
  151. package/dist/dialog/PropTypes.js +1 -2
  152. package/dist/dialog/index.d.ts +1 -1
  153. package/dist/dialog/index.js +4 -35
  154. package/dist/divider/Divider.js +2 -7
  155. package/dist/divider/PropTypes.js +1 -2
  156. package/dist/divider/index.d.ts +1 -1
  157. package/dist/divider/index.js +3 -24
  158. package/dist/dropdown-item/DropdownItem.js +3 -8
  159. package/dist/dropdown-item/PropTypes.js +1 -2
  160. package/dist/dropdown-item/index.d.ts +1 -1
  161. package/dist/dropdown-item/index.js +3 -24
  162. package/dist/dropdown-menu/DropdownMenu.js +3 -8
  163. package/dist/dropdown-menu/PropTypes.js +1 -2
  164. package/dist/dropdown-menu/index.d.ts +1 -1
  165. package/dist/dropdown-menu/index.js +3 -24
  166. package/dist/empty/Empty.js +3 -8
  167. package/dist/empty/PropTypes.js +1 -2
  168. package/dist/empty/index.d.ts +1 -1
  169. package/dist/empty/index.js +3 -24
  170. package/dist/field/Field.js +2 -7
  171. package/dist/field/PropTypes.js +1 -2
  172. package/dist/field/index.d.ts +1 -1
  173. package/dist/field/index.js +4 -25
  174. package/dist/grid/Grid.js +3 -8
  175. package/dist/grid/PropTypes.js +1 -2
  176. package/dist/grid/index.d.ts +1 -1
  177. package/dist/grid/index.js +3 -24
  178. package/dist/grid-item/GridItem.js +3 -8
  179. package/dist/grid-item/PropTypes.js +1 -2
  180. package/dist/grid-item/index.d.ts +1 -1
  181. package/dist/grid-item/index.js +3 -24
  182. package/dist/icon/Icon.js +3 -8
  183. package/dist/icon/PropTypes.js +1 -2
  184. package/dist/icon/index.d.ts +1 -1
  185. package/dist/icon/index.js +3 -24
  186. package/dist/image/Image.js +2 -7
  187. package/dist/image/PropTypes.js +1 -2
  188. package/dist/image/index.d.ts +1 -1
  189. package/dist/image/index.js +4 -25
  190. package/dist/index-anchor/IndexAnchor.js +3 -8
  191. package/dist/index-anchor/PropTypes.js +1 -2
  192. package/dist/index-anchor/index.d.ts +1 -1
  193. package/dist/index-anchor/index.js +3 -24
  194. package/dist/index-bar/IndexBar.js +3 -8
  195. package/dist/index-bar/PropTypes.js +1 -2
  196. package/dist/index-bar/index.d.ts +1 -1
  197. package/dist/index-bar/index.js +3 -24
  198. package/dist/index.d.ts +61 -59
  199. package/dist/index.js +60 -77
  200. package/dist/loading/Loading.js +3 -8
  201. package/dist/loading/PropTypes.js +1 -2
  202. package/dist/loading/index.d.ts +1 -1
  203. package/dist/loading/index.js +3 -24
  204. package/dist/nav-bar/NavBar.js +3 -8
  205. package/dist/nav-bar/PropTypes.js +1 -2
  206. package/dist/nav-bar/index.d.ts +1 -1
  207. package/dist/nav-bar/index.js +3 -24
  208. package/dist/notice-bar/NoticeBar.js +3 -8
  209. package/dist/notice-bar/PropTypes.d.ts +2 -2
  210. package/dist/notice-bar/PropTypes.js +1 -2
  211. package/dist/notice-bar/index.d.ts +1 -1
  212. package/dist/notice-bar/index.js +3 -24
  213. package/dist/notify/Notify.js +4 -10
  214. package/dist/notify/PropTypes.js +1 -2
  215. package/dist/notify/index.d.ts +1 -1
  216. package/dist/notify/index.js +3 -34
  217. package/dist/overlay/Overlay.js +3 -8
  218. package/dist/overlay/PropTypes.d.ts +2 -2
  219. package/dist/overlay/PropTypes.js +1 -2
  220. package/dist/overlay/index.d.ts +1 -1
  221. package/dist/overlay/index.js +3 -24
  222. package/dist/picker/Picker.js +3 -8
  223. package/dist/picker/PropTypes.js +1 -2
  224. package/dist/picker/index.d.ts +1 -1
  225. package/dist/picker/index.js +3 -24
  226. package/dist/popup/Popup.js +3 -8
  227. package/dist/popup/PropTypes.js +1 -2
  228. package/dist/popup/index.d.ts +1 -1
  229. package/dist/popup/index.js +3 -24
  230. package/dist/progress/Circle.js +3 -8
  231. package/dist/progress/Progress.js +3 -8
  232. package/dist/progress/PropTypes.js +1 -2
  233. package/dist/progress/index.js +8 -25
  234. package/dist/radio/PropTypes.d.ts +2 -2
  235. package/dist/radio/PropTypes.js +1 -2
  236. package/dist/radio/Radio.js +3 -8
  237. package/dist/radio/index.d.ts +1 -1
  238. package/dist/radio/index.js +3 -24
  239. package/dist/radio-group/PropTypes.js +1 -2
  240. package/dist/radio-group/RadioGroup.js +3 -8
  241. package/dist/radio-group/index.d.ts +1 -1
  242. package/dist/radio-group/index.js +3 -24
  243. package/dist/rate/PropTypes.d.ts +1 -1
  244. package/dist/rate/PropTypes.js +1 -2
  245. package/dist/rate/Rate.js +3 -8
  246. package/dist/rate/index.d.ts +1 -1
  247. package/dist/rate/index.js +3 -24
  248. package/dist/row/PropTypes.js +1 -2
  249. package/dist/row/Row.js +3 -8
  250. package/dist/row/index.d.ts +1 -1
  251. package/dist/row/index.js +3 -24
  252. package/dist/search/PropTypes.js +1 -2
  253. package/dist/search/Search.js +3 -8
  254. package/dist/search/index.d.ts +1 -1
  255. package/dist/search/index.js +3 -24
  256. package/dist/sidebar/PropTypes.js +1 -2
  257. package/dist/sidebar/Sidebar.js +3 -8
  258. package/dist/sidebar/index.d.ts +1 -1
  259. package/dist/sidebar/index.js +3 -24
  260. package/dist/sidebar-item/PropTypes.js +1 -2
  261. package/dist/sidebar-item/SidebarItem.js +3 -8
  262. package/dist/sidebar-item/index.d.ts +1 -1
  263. package/dist/sidebar-item/index.js +3 -24
  264. package/dist/skeleton/PropTypes.js +1 -2
  265. package/dist/skeleton/Skeleton.js +3 -8
  266. package/dist/skeleton/index.d.ts +1 -1
  267. package/dist/skeleton/index.js +3 -24
  268. package/dist/slider/PropTypes.js +1 -2
  269. package/dist/slider/RangeSlider.js +6 -22
  270. package/dist/slider/index.js +7 -25
  271. package/dist/stepper/PropTypes.js +1 -2
  272. package/dist/stepper/Stepper.js +3 -8
  273. package/dist/stepper/index.d.ts +1 -1
  274. package/dist/stepper/index.js +3 -24
  275. package/dist/steps/PropTypes.js +1 -2
  276. package/dist/steps/Steps.js +3 -8
  277. package/dist/steps/index.d.ts +1 -1
  278. package/dist/steps/index.js +3 -24
  279. package/dist/sticky/PropTypes.js +1 -2
  280. package/dist/sticky/Sticky.js +3 -8
  281. package/dist/sticky/index.d.ts +1 -1
  282. package/dist/sticky/index.js +3 -24
  283. package/dist/swipe-cell/PropTypes.js +1 -2
  284. package/dist/swipe-cell/SwipeCell.js +3 -8
  285. package/dist/swipe-cell/index.d.ts +1 -1
  286. package/dist/swipe-cell/index.js +3 -24
  287. package/dist/switch/PropTypes.js +1 -2
  288. package/dist/switch/Switch.js +2 -7
  289. package/dist/switch/index.d.ts +1 -1
  290. package/dist/switch/index.js +4 -25
  291. package/dist/tab/PropTypes.js +1 -2
  292. package/dist/tab/Tab.js +8 -24
  293. package/dist/tab/index.d.ts +1 -1
  294. package/dist/tab/index.js +3 -24
  295. package/dist/tabbar/PropTypes.js +1 -2
  296. package/dist/tabbar/Tabbar.js +3 -8
  297. package/dist/tabbar/index.d.ts +1 -1
  298. package/dist/tabbar/index.js +3 -24
  299. package/dist/tabbar-item/PropTypes.js +1 -2
  300. package/dist/tabbar-item/TabbarItem.js +3 -8
  301. package/dist/tabbar-item/index.d.ts +1 -1
  302. package/dist/tabbar-item/index.js +3 -24
  303. package/dist/tabs/PropTypes.js +1 -2
  304. package/dist/tabs/Tabs.js +12 -28
  305. package/dist/tabs/index.d.ts +1 -1
  306. package/dist/tabs/index.js +3 -24
  307. package/dist/tag/PropTypes.js +1 -2
  308. package/dist/tag/Tag.js +3 -8
  309. package/dist/tag/index.d.ts +1 -1
  310. package/dist/tag/index.js +3 -24
  311. package/dist/toast/PropTypes.js +1 -2
  312. package/dist/toast/index.d.ts +1 -1
  313. package/dist/toast/index.js +4 -35
  314. package/dist/toast/toast.js +5 -11
  315. package/dist/transition/PropTypes.js +1 -2
  316. package/dist/transition/Transition.js +3 -8
  317. package/dist/transition/index.d.ts +1 -1
  318. package/dist/transition/index.js +3 -24
  319. package/dist/tree-select/PropTypes.js +1 -2
  320. package/dist/tree-select/TreeSelect.js +3 -8
  321. package/dist/tree-select/index.d.ts +1 -1
  322. package/dist/tree-select/index.js +3 -24
  323. package/package.json +2 -2
@@ -1,24 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.SidebarItem = void 0;
21
- var SidebarItem_1 = __importDefault(require("./SidebarItem"));
22
- var SidebarItem = SidebarItem_1["default"];
23
- exports.SidebarItem = SidebarItem;
24
- __exportStar(require("./PropTypes"), exports);
1
+ import _SidebarItem from './SidebarItem';
2
+ const SidebarItem = _SidebarItem;
3
+ export { SidebarItem };
@@ -1,2 +1 @@
1
- "use strict";
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
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/skeleton/index"));
8
- var withReactProps_1 = require("../common/withReactProps");
9
- exports["default"] = (0, withReactProps_1.withReactProps)(index_1["default"]);
2
+ import Skeleton from '@tuya-miniapp/smart-ui/lib/skeleton/index';
3
+ import { withReactProps } from '../common/withReactProps';
4
+ export default withReactProps(Skeleton);
@@ -2,4 +2,4 @@
2
2
  import type { SmartSkeleton } from './PropTypes';
3
3
  declare const Skeleton: import("react").FC<SmartSkeleton>;
4
4
  export { Skeleton };
5
- export * from './PropTypes';
5
+ export { SmartSkeleton, SmartSkeletonProps } from './PropTypes';
@@ -1,24 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.Skeleton = void 0;
21
- var Skeleton_1 = __importDefault(require("./Skeleton"));
22
- var Skeleton = Skeleton_1["default"];
23
- exports.Skeleton = Skeleton;
24
- __exportStar(require("./PropTypes"), exports);
1
+ import _Skeleton from './Skeleton';
2
+ const Skeleton = _Skeleton;
3
+ export { Skeleton };
@@ -1,2 +1 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
@@ -1,24 +1,8 @@
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- exports.__esModule = true;
17
- var jsx_runtime_1 = require("react/jsx-runtime");
1
+ import { jsx as _jsx } from "react/jsx-runtime";
18
2
  // @ts-ignore
19
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/slider/index"));
20
- var Slider = index_1["default"];
21
- var RangeSlider = function (props) {
22
- return (0, jsx_runtime_1.jsx)(Slider, __assign({}, props, { range: true }));
3
+ import _Slider from '@tuya-miniapp/smart-ui/lib/slider/index';
4
+ const Slider = _Slider;
5
+ const RangeSlider = (props) => {
6
+ return _jsx(Slider, Object.assign({}, props, { range: true }));
23
7
  };
24
- exports["default"] = RangeSlider;
8
+ export default RangeSlider;
@@ -1,27 +1,9 @@
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- exports.__esModule = true;
17
- exports.Slider = void 0;
18
- var jsx_runtime_1 = require("react/jsx-runtime");
19
- var components_ty_slider_1 = __importDefault(require("@ray-js/components-ty-slider"));
20
- var RangeSlider_1 = __importDefault(require("./RangeSlider"));
21
- var withReactProps_1 = require("../common/withReactProps");
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import BaseSlider from '@ray-js/components-ty-slider';
3
+ import RangeSlider from './RangeSlider';
4
+ import { withReactProps } from '../common/withReactProps';
22
5
  function Slider(props) {
23
- return (0, jsx_runtime_1.jsx)(components_ty_slider_1["default"], __assign({}, props));
6
+ return _jsx(BaseSlider, Object.assign({}, props));
24
7
  }
25
- exports.Slider = Slider;
26
- Slider.RangeSlider = (0, withReactProps_1.withReactProps)(RangeSlider_1["default"]);
27
- "";
8
+ Slider.RangeSlider = withReactProps(RangeSlider);
9
+ export { Slider };
@@ -1,2 +1 @@
1
- "use strict";
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
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/stepper/index"));
8
- var withReactProps_1 = require("../common/withReactProps");
9
- exports["default"] = (0, withReactProps_1.withReactProps)(index_1["default"]);
2
+ import Stepper from '@tuya-miniapp/smart-ui/lib/stepper/index';
3
+ import { withReactProps } from '../common/withReactProps';
4
+ export default withReactProps(Stepper);
@@ -2,4 +2,4 @@
2
2
  import type { SmartStepper } from './PropTypes';
3
3
  declare const Stepper: import("react").FC<SmartStepper>;
4
4
  export { Stepper };
5
- export * from './PropTypes';
5
+ export { SmartStepper, SmartStepperEvents, SmartStepperExternalClassName, SmartStepperProps, SmartStepperChangeEvent, SmartStepperOverLimitEvent, SmartStepperBlurEventDetail, SmartStepperFocusEventDetail, } from './PropTypes';
@@ -1,24 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.Stepper = void 0;
21
- var Stepper_1 = __importDefault(require("./Stepper"));
22
- var Stepper = Stepper_1["default"];
23
- exports.Stepper = Stepper;
24
- __exportStar(require("./PropTypes"), exports);
1
+ import _Stepper from './Stepper';
2
+ const Stepper = _Stepper;
3
+ export { Stepper };
@@ -1,2 +1 @@
1
- "use strict";
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
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/steps/index"));
8
- var withReactProps_1 = require("../common/withReactProps");
9
- exports["default"] = (0, withReactProps_1.withReactProps)(index_1["default"]);
2
+ import Steps from '@tuya-miniapp/smart-ui/lib/steps/index';
3
+ import { withReactProps } from '../common/withReactProps';
4
+ export default withReactProps(Steps);
@@ -2,4 +2,4 @@
2
2
  import type { SmartSteps } from './PropTypes';
3
3
  declare const Steps: import("react").FC<SmartSteps>;
4
4
  export { Steps };
5
- export * from './PropTypes';
5
+ export { SmartSteps, SmartStepsEvents, SmartStepsExternalClassName, SmartStepsProps, SmartStepsOption, SmartStepsClickStepEvent, } from './PropTypes';
@@ -1,24 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.Steps = void 0;
21
- var Steps_1 = __importDefault(require("./Steps"));
22
- var Steps = Steps_1["default"];
23
- exports.Steps = Steps;
24
- __exportStar(require("./PropTypes"), exports);
1
+ import _Steps from './Steps';
2
+ const Steps = _Steps;
3
+ export { Steps };
@@ -1,2 +1 @@
1
- "use strict";
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
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/sticky/index"));
8
- var withReactProps_1 = require("../common/withReactProps");
9
- exports["default"] = (0, withReactProps_1.withReactProps)(index_1["default"]);
2
+ import Sticky from '@tuya-miniapp/smart-ui/lib/sticky/index';
3
+ import { withReactProps } from '../common/withReactProps';
4
+ export default withReactProps(Sticky);
@@ -2,4 +2,4 @@
2
2
  import type { SmartSticky } from './PropTypes';
3
3
  declare const Sticky: import("react").FC<SmartSticky>;
4
4
  export { Sticky };
5
- export * from './PropTypes';
5
+ export { SmartSticky, SmartStickyEvents, SmartStickyProps, SmartStickyScrollEventDetail, } from './PropTypes';
@@ -1,24 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.Sticky = void 0;
21
- var Sticky_1 = __importDefault(require("./Sticky"));
22
- var Sticky = Sticky_1["default"];
23
- exports.Sticky = Sticky;
24
- __exportStar(require("./PropTypes"), exports);
1
+ import _Sticky from './Sticky';
2
+ const Sticky = _Sticky;
3
+ export { Sticky };
@@ -1,2 +1 @@
1
- "use strict";
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
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/swipe-cell/index"));
8
- var withReactProps_1 = require("../common/withReactProps");
9
- exports["default"] = (0, withReactProps_1.withReactProps)(index_1["default"]);
2
+ import VanSwipeCell from '@tuya-miniapp/smart-ui/lib/swipe-cell/index';
3
+ import { withReactProps } from '../common/withReactProps';
4
+ export default withReactProps(VanSwipeCell);
@@ -2,4 +2,4 @@
2
2
  import type { SmartSwipeCell } from './PropTypes';
3
3
  declare const SwipeCell: import("react").FC<SmartSwipeCell>;
4
4
  export { SwipeCell };
5
- export * from './PropTypes';
5
+ export { SmartSwipeCell, SmartSwipeCellEvents, SmartSwipeCellProps, SmartSwipeCellBaseEventDetail, SmartSwipeCellPosition, SmartSwipeCellClickEvent, SmartSwipeCellClickPosition, SmartSwipeCellCloseEventDetail, } from './PropTypes';
@@ -1,24 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.SwipeCell = void 0;
21
- var SwipeCell_1 = __importDefault(require("./SwipeCell"));
22
- var SwipeCell = SwipeCell_1["default"];
23
- exports.SwipeCell = SwipeCell;
24
- __exportStar(require("./PropTypes"), exports);
1
+ import _SwipeCell from './SwipeCell';
2
+ const SwipeCell = _SwipeCell;
3
+ export { SwipeCell };
@@ -1,2 +1 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
@@ -1,8 +1,3 @@
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
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/switch/index"));
8
- exports["default"] = index_1["default"];
2
+ import SwitchBase from '@tuya-miniapp/smart-ui/lib/switch/index';
3
+ export default SwitchBase;
@@ -2,4 +2,4 @@
2
2
  import type { SmartSwitch } from './PropTypes';
3
3
  declare const Switch: import("react").FC<SmartSwitch>;
4
4
  export { Switch };
5
- export * from './PropTypes';
5
+ export { SmartSwitch, SmartSwitchEvents, SmartSwitchExternalClassName, SmartSwitchProps, SmartSwitchChangeEvent, } from './PropTypes';
@@ -1,25 +1,4 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.Switch = void 0;
21
- var Switch_1 = __importDefault(require("./Switch"));
22
- var withReactProps_1 = require("../common/withReactProps");
23
- var Switch = (0, withReactProps_1.withReactProps)(Switch_1["default"]);
24
- exports.Switch = Switch;
25
- __exportStar(require("./PropTypes"), exports);
1
+ import _Switch from './Switch';
2
+ import { withReactProps } from '../common/withReactProps';
3
+ const Switch = withReactProps(_Switch);
4
+ export { Switch };
@@ -1,2 +1 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
package/dist/tab/Tab.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,16 +9,12 @@ var __rest = (this && this.__rest) || function (s, e) {
21
9
  }
22
10
  return t;
23
11
  };
24
- var __importDefault = (this && this.__importDefault) || function (mod) {
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
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/tab/index"));
31
- var withReactProps_1 = require("../common/withReactProps");
32
- var TabComp = (0, withReactProps_1.withReactProps)(index_1["default"]);
33
- exports["default"] = (function (_a) {
34
- var children = _a.children, isActive = _a.isActive, rest = __rest(_a, ["children", "isActive"]);
35
- return (0, jsx_runtime_1.jsx)(TabComp, __assign({}, rest, { children: isActive && children }));
36
- });
14
+ import Tab from '@tuya-miniapp/smart-ui/lib/tab/index';
15
+ import { withReactProps } from '../common/withReactProps';
16
+ const TabComp = withReactProps(Tab);
17
+ export default (_a) => {
18
+ var { children, isActive } = _a, rest = __rest(_a, ["children", "isActive"]);
19
+ return _jsx(TabComp, Object.assign({}, rest, { children: isActive && children }));
20
+ };
@@ -2,4 +2,4 @@
2
2
  import type { SmartTab } from './PropTypes';
3
3
  declare const Tab: import("react").FC<SmartTab>;
4
4
  export { Tab };
5
- export * from './PropTypes';
5
+ export { SmartTab, SmartTabProps } from './PropTypes';
package/dist/tab/index.js CHANGED
@@ -1,24 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.Tab = void 0;
21
- var Tab_1 = __importDefault(require("./Tab"));
22
- var Tab = Tab_1["default"];
23
- exports.Tab = Tab;
24
- __exportStar(require("./PropTypes"), exports);
1
+ import _Tab from './Tab';
2
+ const Tab = _Tab;
3
+ export { Tab };
@@ -1,2 +1 @@
1
- "use strict";
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
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/tabbar/index"));
8
- var withReactProps_1 = require("../common/withReactProps");
9
- exports["default"] = (0, withReactProps_1.withReactProps)(index_1["default"]);
2
+ import Tabbar from '@tuya-miniapp/smart-ui/lib/tabbar/index';
3
+ import { withReactProps } from '../common/withReactProps';
4
+ export default withReactProps(Tabbar);
@@ -2,4 +2,4 @@
2
2
  import type { SmartTabbar } from './PropTypes';
3
3
  declare const Tabbar: import("react").FC<SmartTabbar>;
4
4
  export { Tabbar };
5
- export * from './PropTypes';
5
+ export { SmartTabbar, SmartTabbarEvents, SmartTabbarProps, SmartTabbarChangeEvent, } from './PropTypes';
@@ -1,24 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.Tabbar = void 0;
21
- var Tabbar_1 = __importDefault(require("./Tabbar"));
22
- var Tabbar = Tabbar_1["default"];
23
- exports.Tabbar = Tabbar;
24
- __exportStar(require("./PropTypes"), exports);
1
+ import _Tabbar from './Tabbar';
2
+ const Tabbar = _Tabbar;
3
+ export { Tabbar };
@@ -1,2 +1 @@
1
- "use strict";
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
- var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/lib/tabbar-item/index"));
8
- var withReactProps_1 = require("../common/withReactProps");
9
- exports["default"] = (0, withReactProps_1.withReactProps)(index_1["default"]);
2
+ import TabbarItem from '@tuya-miniapp/smart-ui/lib/tabbar-item/index';
3
+ import { withReactProps } from '../common/withReactProps';
4
+ export default withReactProps(TabbarItem);
@@ -2,4 +2,4 @@
2
2
  import type { SmartTabbarItem } from './PropTypes';
3
3
  declare const TabbarItem: import("react").FC<SmartTabbarItem>;
4
4
  export { TabbarItem };
5
- export * from './PropTypes';
5
+ export { SmartTabbarItem, SmartTabbarItemProps } from './PropTypes';
@@ -1,24 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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.TabbarItem = void 0;
21
- var TabbarItem_1 = __importDefault(require("./TabbarItem"));
22
- var TabbarItem = TabbarItem_1["default"];
23
- exports.TabbarItem = TabbarItem;
24
- __exportStar(require("./PropTypes"), exports);
1
+ import _TabbarItem from './TabbarItem';
2
+ const TabbarItem = _TabbarItem;
3
+ export { TabbarItem };