tntd 2.8.29 → 2.8.30

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 (578) hide show
  1. package/CHANGELOG.json +1034 -0
  2. package/CHANGELOG.md +605 -0
  3. package/es/_util/context.js +1 -1
  4. package/es/_util/defaultRenderEmpty.js +1 -1
  5. package/es/_util/hooks/useFlexGapSupport.js +4 -4
  6. package/es/_util/hooks/useForceUpdate.js +4 -4
  7. package/es/_util/responsiveObserve.js +1 -1
  8. package/es/_util/styleChecker.js +1 -1
  9. package/es/actions/index.js +1 -1
  10. package/es/alert/alert.js +93 -0
  11. package/es/alert/alert.js.map +1 -0
  12. package/es/alert/alert.less +128 -0
  13. package/es/array-input/index.js +9 -9
  14. package/es/cascader/cascader.js +49 -0
  15. package/es/cascader/cascader.js.map +1 -0
  16. package/es/cascader/cascader.less +16 -0
  17. package/es/check-card/group.js +8 -8
  18. package/es/check-card/index.js +6 -6
  19. package/es/checkbox/check.png +0 -0
  20. package/es/checkbox/checkbox-group.js +1 -1
  21. package/es/checkbox/checkbox.js +65 -0
  22. package/es/checkbox/checkbox.js.map +1 -0
  23. package/es/checkbox/checkbox.less +69 -0
  24. package/es/color-picker/ColorPicker.js +6 -6
  25. package/es/color-picker/index.js +1 -1
  26. package/es/columns/index.js +1 -1
  27. package/es/config-provider/config-provider.js +1 -1
  28. package/es/date-picker/DatePicker.js +128 -0
  29. package/es/date-picker/DatePicker.js.map +1 -0
  30. package/es/date-picker/index.less +294 -0
  31. package/es/descriptions/descriptions.js +5 -5
  32. package/es/development-login/LoginModal.js +6 -6
  33. package/es/development-login/index.js +4 -4
  34. package/es/drawer/drawer.js +2 -2
  35. package/es/ellipsis/Svg/CopySVG.js +1 -1
  36. package/es/ellipsis/Svg/TickSVG.js +1 -1
  37. package/es/ellipsis/index.js +5 -5
  38. package/es/empty/empty.js +2 -2
  39. package/es/empty/empty.stories.js +2 -2
  40. package/es/exception/exception.js +1 -1
  41. package/es/form/form.js +2 -2
  42. package/es/grid-v4/col.js +2 -2
  43. package/es/grid-v4/hooks/useBreakpoint.js +1 -1
  44. package/es/grid-v4/index.js +1 -1
  45. package/es/grid-v4/row.js +6 -6
  46. package/es/handle/index.js +1 -1
  47. package/es/handle-icon/index.js +11 -11
  48. package/es/icon/IconFont.js +1 -1
  49. package/es/icon/components/Icon.js +9 -9
  50. package/es/icon/components/index.js +1 -1
  51. package/es/icon/components/utils.js +3 -3
  52. package/es/icon/index.js +7 -7
  53. package/es/icon/twoTonePrimaryColor.js +1 -1
  54. package/es/icon/utils.js +1 -1
  55. package/es/img/Contain.js +1 -1
  56. package/es/img/Cover.js +5 -5
  57. package/es/img/index.js +5 -5
  58. package/es/index.js +1 -1
  59. package/es/input/input.js +2 -2
  60. package/es/input-number/index.js +1 -1
  61. package/es/input-number/inputNumber.js +54 -0
  62. package/es/input-number/inputNumber.js.map +1 -0
  63. package/es/input-number/inputNumber.less +12 -0
  64. package/es/label/index.js +2 -2
  65. package/es/loading-button/index.js +5 -5
  66. package/es/locale/default.js +1 -1
  67. package/es/locale/en_US.js +1 -1
  68. package/es/locale/zh_CN.js +1 -1
  69. package/es/modal/index.less +36 -0
  70. package/es/modal/modal.js +1 -1
  71. package/es/notification/assets/index.js +1 -1
  72. package/es/notification/index.js +1 -1
  73. package/es/notification/notification.js +1 -1
  74. package/es/page/Box.js +1 -1
  75. package/es/page/index.js +7 -7
  76. package/es/page-container/index.js +1 -1
  77. package/es/page-loading/index.js +1 -1
  78. package/es/popconfirm/index.less +32 -0
  79. package/es/popconfirm/popconfirm.js +61 -0
  80. package/es/popconfirm/popconfirm.js.map +1 -0
  81. package/es/popover/index.less +57 -0
  82. package/es/popover/popover.js +55 -0
  83. package/es/popover/popover.js.map +1 -0
  84. package/es/preview-text/index.js +7 -7
  85. package/es/progress/progress.js +148 -0
  86. package/es/progress/progress.js.map +1 -0
  87. package/es/progress/progress.less +82 -0
  88. package/es/query-form/Field/Checkbox.js +1 -1
  89. package/es/query-form/Field/Composition/FieldPopover.js +341 -0
  90. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  91. package/es/query-form/Field/Composition/FieldPopover.less +35 -0
  92. package/es/query-form/Field/Composition/Select.js +146 -0
  93. package/es/query-form/Field/Composition/Select.js.map +1 -0
  94. package/es/query-form/Field/Composition/ValueTag.js +158 -0
  95. package/es/query-form/Field/Composition/ValueTag.js.map +1 -0
  96. package/es/query-form/Field/Composition/index.js +321 -0
  97. package/es/query-form/Field/Composition/index.js.map +1 -0
  98. package/es/query-form/Field/Composition/index.less +145 -0
  99. package/es/query-form/Field/Composition/utils.js +168 -0
  100. package/es/query-form/Field/Composition/utils.js.map +1 -0
  101. package/es/query-form/Field/Select.js +6 -6
  102. package/es/query-form/Field/SelectInput.js +6 -6
  103. package/es/query-form/Field/fieldsMap.js +3 -2
  104. package/es/query-form/Field/fieldsMap.js.map +1 -1
  105. package/es/query-form/Field/index.js +10 -10
  106. package/es/query-form/createActions.js +1 -1
  107. package/es/query-form/index.js +10 -10
  108. package/es/query-form/useForm.js +1 -1
  109. package/es/query-form-v2/index.less +133 -0
  110. package/es/query-list-scene/List.js +13 -13
  111. package/es/query-list-scene/QueryForm.js +10 -10
  112. package/es/query-list-scene/QueryListScene.js +10 -10
  113. package/es/query-list-scene/Title.js +1 -1
  114. package/es/query-list-scene/Toolbar.js +2 -2
  115. package/es/query-list-scene/createActions.js +1 -1
  116. package/es/query-list-scene/index.js +1 -1
  117. package/es/query-list-scene/useActions.js +1 -1
  118. package/es/radio/index.js +1 -1
  119. package/es/radio/radio-group.js +1 -1
  120. package/es/radio/radio.js +75 -0
  121. package/es/radio/radio.js.map +1 -0
  122. package/es/radio/radio.less +43 -0
  123. package/es/render-empty/render-empty.js +1 -1
  124. package/es/scroll-bar/Bar.js +91 -0
  125. package/es/scroll-bar/Bar.js.map +1 -0
  126. package/es/scroll-bar/Context.js +13 -0
  127. package/es/scroll-bar/Context.js.map +1 -0
  128. package/es/scroll-bar/ScrollBar.js +97 -0
  129. package/es/scroll-bar/ScrollBar.js.map +1 -0
  130. package/es/scroll-bar/Thumb.js +125 -0
  131. package/es/scroll-bar/Thumb.js.map +1 -0
  132. package/es/scroll-bar/index.js +10 -0
  133. package/es/scroll-bar/index.js.map +1 -0
  134. package/es/scroll-bar/scrollBar.less +59 -0
  135. package/es/scroll-bar/util.js +39 -0
  136. package/es/scroll-bar/util.js.map +1 -0
  137. package/es/segmented/index.js +2 -2
  138. package/es/select/select.js +2 -2
  139. package/es/spin/spin.js +44 -0
  140. package/es/spin/spin.js.map +1 -0
  141. package/es/spin/spin.less +9 -0
  142. package/es/steps/assets/background_left.svg +12 -0
  143. package/es/steps/assets/background_right.svg +12 -0
  144. package/es/steps/assets/horizontal_line.svg +3 -0
  145. package/es/steps/assets/vertical_line.svg +3 -0
  146. package/es/steps/stepStyle/icon.less +51 -0
  147. package/es/steps/stepStyle/progress-dot.less +10 -0
  148. package/es/steps/stepStyle/variables.less +8 -0
  149. package/es/steps/stepStyle/vertical.less +41 -0
  150. package/es/steps/steps.js +2 -2
  151. package/es/svg-components/index.js +1 -1
  152. package/es/switch/index.less +45 -0
  153. package/es/switch/switch.js +1 -1
  154. package/es/table/hooks/use-column-setting.js +4 -4
  155. package/es/table/hooks/use-expand-fixed.js +6 -6
  156. package/es/table/resizableTable/index.js +6 -6
  157. package/es/table/table-hoc.js +1 -1
  158. package/es/table/table.js +9 -9
  159. package/es/table/table.stories.js +2 -2
  160. package/es/table/total-shower.js +1 -1
  161. package/es/table/utils.js +1 -1
  162. package/es/table-container/index.js +1 -1
  163. package/es/tabs/tabs.less +125 -0
  164. package/es/tabs-container/index.js +1 -1
  165. package/es/tag/tag.js +2 -2
  166. package/es/time-picker/TimePicker.js +55 -0
  167. package/es/time-picker/TimePicker.js.map +1 -0
  168. package/es/time-picker/index.less +38 -0
  169. package/es/title/index.js +1 -1
  170. package/es/tntd-action/Action.js +141 -0
  171. package/es/tntd-action/Action.js.map +1 -0
  172. package/es/tntd-action/index.less +61 -0
  173. package/es/tntd-cascader/AntdCascader/component/context.js +1 -1
  174. package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  175. package/es/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  176. package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  177. package/es/tntd-cascader/AntdCascader/config/utils.js +2 -2
  178. package/es/tntd-cascader/AntdCascader/index.js +7 -7
  179. package/es/tntd-cascader/index.js +1 -1
  180. package/es/tntd-cascader/rc-cascader/Cascader.js +8 -8
  181. package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  182. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
  183. package/es/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  184. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  185. package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  186. package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  187. package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  188. package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  189. package/es/tntd-cascader/rc-cascader/index.js +1 -1
  190. package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  191. package/es/tntd-form/ErrorList.js +7 -7
  192. package/es/tntd-form/Form.js +6 -6
  193. package/es/tntd-form/FormItem/ItemHolder.js +6 -6
  194. package/es/tntd-form/FormItem/index.js +8 -8
  195. package/es/tntd-form/FormItemInput.js +1 -1
  196. package/es/tntd-form/FormItemLabel.js +2 -2
  197. package/es/tntd-form/FormList.js +1 -1
  198. package/es/tntd-form/context.js +1 -1
  199. package/es/tntd-form/hooks/useDebounce.js +4 -4
  200. package/es/tntd-form/hooks/useForm.js +5 -5
  201. package/es/tntd-form/hooks/useFormItemStatus.js +1 -1
  202. package/es/tntd-form/hooks/useFrameState.js +5 -5
  203. package/es/tntd-form/index.js +1 -1
  204. package/es/tntd-icon/index.js +1 -1
  205. package/es/tntd-layout/AppList.js +6 -6
  206. package/es/tntd-layout/Application.js +6 -6
  207. package/es/tntd-layout/Avatar.js +2 -2
  208. package/es/tntd-layout/CompatibleLanguage.js +6 -6
  209. package/es/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  210. package/es/tntd-layout/EnterpriseLayout/Language.js +6 -6
  211. package/es/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  212. package/es/tntd-layout/EnterpriseLayout/index.js +1 -1
  213. package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  214. package/es/tntd-layout/GlobalNavigation/index.js +9 -9
  215. package/es/tntd-layout/Header.js +2 -2
  216. package/es/tntd-layout/HeaderActions.js +2 -2
  217. package/es/tntd-layout/HeaderNavs.js +6 -6
  218. package/es/tntd-layout/HeaderTabs.js +7 -7
  219. package/es/tntd-layout/Iconfont.js +1 -1
  220. package/es/tntd-layout/Language.js +6 -6
  221. package/es/tntd-layout/Layout.js +6 -6
  222. package/es/tntd-layout/Logo.js +2 -2
  223. package/es/tntd-layout/OrgAppList.js +6 -6
  224. package/es/tntd-layout/SideMenu.js +6 -6
  225. package/es/tntd-layout/Theme.js +6 -6
  226. package/es/tntd-layout/createActions.js +1 -1
  227. package/es/tntd-layout/images/index.js +1 -1
  228. package/es/tntd-layout/index.js +1 -1
  229. package/es/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  230. package/es/tntd-layout/paaslayout/Header.js +2 -2
  231. package/es/tntd-layout/paaslayout/Logo.js +2 -2
  232. package/es/tntd-layout/paaslayout/SideMenu.js +6 -6
  233. package/es/tntd-layout/paaslayout/index.js +6 -6
  234. package/es/tntd-layout/storage.js +1 -1
  235. package/es/tntd-modal/index.js +6 -6
  236. package/es/tntd-rc-select/_util/PurePanel.js +5 -5
  237. package/es/tntd-rc-select/_util/context.js +1 -1
  238. package/es/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  239. package/es/tntd-rc-select/_util/getIcons.js +1 -1
  240. package/es/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  241. package/es/tntd-rc-select/index.js +2 -2
  242. package/es/tntd-reference/AHref/index.js +1 -1
  243. package/es/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  244. package/es/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  245. package/es/tntd-reference/ReferenceCheck/index.js +1 -1
  246. package/es/tntd-reference/ReferenceDrawer/index.js +5 -5
  247. package/es/tntd-reference/ReferenceInfo/index.js +1 -1
  248. package/es/tntd-reference/index.js +1 -1
  249. package/es/tntd-second-page/index.js +1 -1
  250. package/es/tntd-select/DropDownWrap.js +8 -8
  251. package/es/tntd-select/index.js +10 -9
  252. package/es/tntd-select/index.less +7 -0
  253. package/es/tntd-virtual-tree/index.js +8 -8
  254. package/es/tntd-virtual-tree/index.less +1 -1
  255. package/es/tntd-virtual-tree/utils.js +28 -28
  256. package/es/tntd-virtual-tree-select/index.js +10 -10
  257. package/es/tntd-virtual-tree-select/utils.js +9 -9
  258. package/es/tooltip/tooltip.js +1 -1
  259. package/es/upload/index.js +6 -6
  260. package/es/upload/svg/UploadSVG.js +1 -1
  261. package/es/utils/checkAuth.js +4 -4
  262. package/es/utils/index.js +9 -9
  263. package/es/utils/lang.js +1 -1
  264. package/es/water-mark/index.js +5 -5
  265. package/lib/_util/context.js +3 -3
  266. package/lib/_util/defaultRenderEmpty.js +3 -3
  267. package/lib/_util/hooks/useFlexGapSupport.js +14 -15
  268. package/lib/_util/hooks/useForceUpdate.js +14 -15
  269. package/lib/_util/responsiveObserve.js +7 -13
  270. package/lib/_util/styleChecker.js +3 -3
  271. package/lib/actions/index.js +3 -3
  272. package/lib/alert/alert.d.ts +12 -0
  273. package/lib/alert/alert.d.ts.map +1 -0
  274. package/lib/alert/alert.js +147 -0
  275. package/lib/alert/alert.js.map +1 -0
  276. package/lib/alert/alert.less +128 -0
  277. package/lib/array-input/index.js +30 -37
  278. package/lib/cascader/cascader.d.ts +10 -0
  279. package/lib/cascader/cascader.d.ts.map +1 -0
  280. package/lib/cascader/cascader.js +84 -0
  281. package/lib/cascader/cascader.js.map +1 -0
  282. package/lib/cascader/cascader.less +16 -0
  283. package/lib/check-card/group.js +23 -24
  284. package/lib/check-card/index.js +24 -31
  285. package/lib/checkbox/check.png +0 -0
  286. package/lib/checkbox/checkbox-group.js +3 -3
  287. package/lib/checkbox/checkbox.d.ts +16 -0
  288. package/lib/checkbox/checkbox.d.ts.map +1 -0
  289. package/lib/checkbox/checkbox.js +100 -0
  290. package/lib/checkbox/checkbox.js.map +1 -0
  291. package/lib/checkbox/checkbox.less +69 -0
  292. package/lib/color-picker/ColorPicker.js +24 -31
  293. package/lib/color-picker/index.js +3 -3
  294. package/lib/columns/index.js +3 -3
  295. package/lib/config-provider/config-provider.js +3 -3
  296. package/lib/date-picker/DatePicker.d.ts +21 -0
  297. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  298. package/lib/date-picker/DatePicker.js +163 -0
  299. package/lib/date-picker/DatePicker.js.map +1 -0
  300. package/lib/date-picker/index.less +294 -0
  301. package/lib/descriptions/descriptions.js +13 -19
  302. package/lib/development-login/LoginModal.js +24 -31
  303. package/lib/development-login/index.js +14 -15
  304. package/lib/drawer/drawer.js +10 -16
  305. package/lib/ellipsis/Svg/CopySVG.js +3 -3
  306. package/lib/ellipsis/Svg/TickSVG.js +3 -3
  307. package/lib/ellipsis/index.js +17 -18
  308. package/lib/empty/empty.js +10 -16
  309. package/lib/empty/empty.stories.js +6 -9
  310. package/lib/exception/exception.js +3 -3
  311. package/lib/form/form.js +10 -16
  312. package/lib/grid-v4/col.js +10 -16
  313. package/lib/grid-v4/hooks/useBreakpoint.js +3 -3
  314. package/lib/grid-v4/index.js +3 -3
  315. package/lib/grid-v4/row.js +24 -31
  316. package/lib/handle/index.js +3 -3
  317. package/lib/handle-icon/index.js +13 -13
  318. package/lib/icon/IconFont.js +3 -3
  319. package/lib/icon/components/Icon.js +44 -70
  320. package/lib/icon/components/index.js +3 -3
  321. package/lib/icon/components/utils.js +10 -18
  322. package/lib/icon/index.js +26 -33
  323. package/lib/icon/twoTonePrimaryColor.js +3 -3
  324. package/lib/icon/utils.js +3 -3
  325. package/lib/img/Contain.js +3 -3
  326. package/lib/img/Cover.js +17 -18
  327. package/lib/img/index.js +17 -18
  328. package/lib/index.js +3 -3
  329. package/lib/input/input.js +10 -16
  330. package/lib/input-number/index.js +3 -3
  331. package/lib/input-number/inputNumber.d.ts +10 -0
  332. package/lib/input-number/inputNumber.d.ts.map +1 -0
  333. package/lib/input-number/inputNumber.js +89 -0
  334. package/lib/input-number/inputNumber.js.map +1 -0
  335. package/lib/input-number/inputNumber.less +12 -0
  336. package/lib/label/index.js +10 -16
  337. package/lib/loading-button/index.js +17 -18
  338. package/lib/locale/default.js +3 -3
  339. package/lib/locale/en_US.js +3 -3
  340. package/lib/locale/zh_CN.js +3 -3
  341. package/lib/modal/index.less +36 -0
  342. package/lib/modal/modal.js +3 -3
  343. package/lib/notification/assets/index.js +3 -3
  344. package/lib/notification/index.js +3 -3
  345. package/lib/notification/notification.js +3 -3
  346. package/lib/page/Box.js +3 -3
  347. package/lib/page/index.js +26 -33
  348. package/lib/page-container/index.js +3 -3
  349. package/lib/page-loading/index.js +3 -3
  350. package/lib/popconfirm/index.less +32 -0
  351. package/lib/popconfirm/popconfirm.d.ts +8 -0
  352. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  353. package/lib/popconfirm/popconfirm.js +96 -0
  354. package/lib/popconfirm/popconfirm.js.map +1 -0
  355. package/lib/popover/index.less +57 -0
  356. package/lib/popover/popover.d.ts +14 -0
  357. package/lib/popover/popover.d.ts.map +1 -0
  358. package/lib/popover/popover.js +90 -0
  359. package/lib/popover/popover.js.map +1 -0
  360. package/lib/preview-text/index.js +9 -9
  361. package/lib/progress/progress.d.ts +12 -0
  362. package/lib/progress/progress.d.ts.map +1 -0
  363. package/lib/progress/progress.js +179 -0
  364. package/lib/progress/progress.js.map +1 -0
  365. package/lib/progress/progress.less +82 -0
  366. package/lib/query-form/Field/Checkbox.js +3 -3
  367. package/lib/query-form/Field/Composition/FieldPopover.d.ts +19 -0
  368. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  369. package/lib/query-form/Field/Composition/FieldPopover.js +418 -0
  370. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  371. package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
  372. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  373. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  374. package/lib/query-form/Field/Composition/Select.js +242 -0
  375. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  376. package/lib/query-form/Field/Composition/ValueTag.d.ts +13 -0
  377. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +1 -0
  378. package/lib/query-form/Field/Composition/ValueTag.js +235 -0
  379. package/lib/query-form/Field/Composition/ValueTag.js.map +1 -0
  380. package/lib/query-form/Field/Composition/index.d.ts +13 -0
  381. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  382. package/lib/query-form/Field/Composition/index.js +425 -0
  383. package/lib/query-form/Field/Composition/index.js.map +1 -0
  384. package/lib/query-form/Field/Composition/index.less +145 -0
  385. package/lib/query-form/Field/Composition/utils.d.ts +21 -0
  386. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  387. package/lib/query-form/Field/Composition/utils.js +172 -0
  388. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  389. package/lib/query-form/Field/Select.js +24 -31
  390. package/lib/query-form/Field/SelectInput.js +24 -31
  391. package/lib/query-form/Field/fieldsMap.d.ts +4 -3
  392. package/lib/query-form/Field/fieldsMap.d.ts.map +1 -1
  393. package/lib/query-form/Field/fieldsMap.js +5 -4
  394. package/lib/query-form/Field/fieldsMap.js.map +1 -1
  395. package/lib/query-form/Field/index.js +47 -73
  396. package/lib/query-form/createActions.js +3 -3
  397. package/lib/query-form/index.js +44 -70
  398. package/lib/query-form/useForm.js +3 -3
  399. package/lib/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  400. package/lib/query-form-backup/Field/Composition/index.less +114 -0
  401. package/lib/query-form-backup/index.less +90 -0
  402. package/lib/query-form-v2/index.less +133 -0
  403. package/lib/query-list-scene/List.js +41 -61
  404. package/lib/query-list-scene/QueryForm.js +44 -70
  405. package/lib/query-list-scene/QueryListScene.js +44 -70
  406. package/lib/query-list-scene/Title.js +3 -3
  407. package/lib/query-list-scene/Toolbar.js +10 -16
  408. package/lib/query-list-scene/createActions.js +3 -3
  409. package/lib/query-list-scene/index.js +3 -3
  410. package/lib/query-list-scene/useActions.js +3 -3
  411. package/lib/radio/index.js +3 -3
  412. package/lib/radio/radio-group.js +3 -3
  413. package/lib/radio/radio.d.ts +17 -0
  414. package/lib/radio/radio.d.ts.map +1 -0
  415. package/lib/radio/radio.js +110 -0
  416. package/lib/radio/radio.js.map +1 -0
  417. package/lib/radio/radio.less +43 -0
  418. package/lib/render-empty/render-empty.js +3 -3
  419. package/lib/scroll-bar/Bar.d.ts +4 -0
  420. package/lib/scroll-bar/Bar.d.ts.map +1 -0
  421. package/lib/scroll-bar/Bar.js +168 -0
  422. package/lib/scroll-bar/Bar.js.map +1 -0
  423. package/lib/scroll-bar/Context.d.ts +7 -0
  424. package/lib/scroll-bar/Context.d.ts.map +1 -0
  425. package/lib/scroll-bar/Context.js +17 -0
  426. package/lib/scroll-bar/Context.js.map +1 -0
  427. package/lib/scroll-bar/ScrollBar.d.ts +4 -0
  428. package/lib/scroll-bar/ScrollBar.d.ts.map +1 -0
  429. package/lib/scroll-bar/ScrollBar.js +132 -0
  430. package/lib/scroll-bar/ScrollBar.js.map +1 -0
  431. package/lib/scroll-bar/Thumb.d.ts +3 -0
  432. package/lib/scroll-bar/Thumb.d.ts.map +1 -0
  433. package/lib/scroll-bar/Thumb.js +202 -0
  434. package/lib/scroll-bar/Thumb.js.map +1 -0
  435. package/lib/scroll-bar/index.d.ts +3 -0
  436. package/lib/scroll-bar/index.d.ts.map +1 -0
  437. package/lib/scroll-bar/index.js +14 -0
  438. package/lib/scroll-bar/index.js.map +1 -0
  439. package/lib/scroll-bar/scrollBar.less +59 -0
  440. package/lib/scroll-bar/util.d.ts +40 -0
  441. package/lib/scroll-bar/util.d.ts.map +1 -0
  442. package/lib/scroll-bar/util.js +66 -0
  443. package/lib/scroll-bar/util.js.map +1 -0
  444. package/lib/segmented/index.js +10 -16
  445. package/lib/select/select.js +10 -16
  446. package/lib/spin/spin.d.ts +9 -0
  447. package/lib/spin/spin.d.ts.map +1 -0
  448. package/lib/spin/spin.js +79 -0
  449. package/lib/spin/spin.js.map +1 -0
  450. package/lib/spin/spin.less +9 -0
  451. package/lib/steps/assets/background_left.svg +12 -0
  452. package/lib/steps/assets/background_right.svg +12 -0
  453. package/lib/steps/assets/horizontal_line.svg +3 -0
  454. package/lib/steps/assets/vertical_line.svg +3 -0
  455. package/lib/steps/stepStyle/icon.less +51 -0
  456. package/lib/steps/stepStyle/progress-dot.less +10 -0
  457. package/lib/steps/stepStyle/variables.less +8 -0
  458. package/lib/steps/stepStyle/vertical.less +41 -0
  459. package/lib/steps/steps.js +10 -16
  460. package/lib/svg-components/index.js +3 -3
  461. package/lib/switch/index.less +45 -0
  462. package/lib/switch/switch.js +3 -3
  463. package/lib/table/hooks/use-column-setting.js +14 -15
  464. package/lib/table/hooks/use-expand-fixed.js +30 -36
  465. package/lib/table/resizableTable/index.js +24 -31
  466. package/lib/table/table-hoc.js +3 -3
  467. package/lib/table/table.js +27 -34
  468. package/lib/table/table.stories.js +10 -16
  469. package/lib/table/total-shower.js +3 -3
  470. package/lib/table/utils.js +3 -3
  471. package/lib/table-container/index.js +3 -3
  472. package/lib/tabs/tabs.less +125 -0
  473. package/lib/tabs-container/index.js +3 -3
  474. package/lib/tag/tag.js +10 -16
  475. package/lib/time-picker/TimePicker.d.ts +9 -0
  476. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  477. package/lib/time-picker/TimePicker.js +90 -0
  478. package/lib/time-picker/TimePicker.js.map +1 -0
  479. package/lib/time-picker/index.less +38 -0
  480. package/lib/title/index.js +3 -3
  481. package/lib/tntd-action/Action.d.ts +6 -0
  482. package/lib/tntd-action/Action.d.ts.map +1 -0
  483. package/lib/tntd-action/Action.js +218 -0
  484. package/lib/tntd-action/Action.js.map +1 -0
  485. package/lib/tntd-action/index.less +61 -0
  486. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -3
  487. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +3 -3
  488. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +3 -3
  489. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +10 -16
  490. package/lib/tntd-cascader/AntdCascader/config/utils.js +10 -16
  491. package/lib/tntd-cascader/AntdCascader/index.js +26 -33
  492. package/lib/tntd-cascader/index.js +3 -3
  493. package/lib/tntd-cascader/rc-cascader/Cascader.js +23 -24
  494. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +10 -16
  495. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +26 -33
  496. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +30 -37
  497. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +17 -18
  498. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +23 -24
  499. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +16 -17
  500. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
  501. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +23 -30
  502. package/lib/tntd-cascader/rc-cascader/index.js +3 -3
  503. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +6 -6
  504. package/lib/tntd-form/ErrorList.js +26 -33
  505. package/lib/tntd-form/Form.js +24 -31
  506. package/lib/tntd-form/FormItem/ItemHolder.js +24 -31
  507. package/lib/tntd-form/FormItem/index.js +23 -24
  508. package/lib/tntd-form/FormItemInput.js +3 -3
  509. package/lib/tntd-form/FormItemLabel.js +10 -16
  510. package/lib/tntd-form/FormList.js +3 -3
  511. package/lib/tntd-form/context.js +3 -3
  512. package/lib/tntd-form/hooks/useDebounce.js +14 -15
  513. package/lib/tntd-form/hooks/useForm.js +17 -18
  514. package/lib/tntd-form/hooks/useFormItemStatus.js +3 -3
  515. package/lib/tntd-form/hooks/useFrameState.js +17 -18
  516. package/lib/tntd-form/index.js +3 -3
  517. package/lib/tntd-icon/index.js +3 -3
  518. package/lib/tntd-layout/AppList.js +20 -24
  519. package/lib/tntd-layout/Application.js +20 -24
  520. package/lib/tntd-layout/Avatar.js +6 -9
  521. package/lib/tntd-layout/CompatibleLanguage.js +20 -24
  522. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +6 -9
  523. package/lib/tntd-layout/EnterpriseLayout/Language.js +20 -24
  524. package/lib/tntd-layout/EnterpriseLayout/Theme.js +20 -24
  525. package/lib/tntd-layout/EnterpriseLayout/index.js +3 -3
  526. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +20 -24
  527. package/lib/tntd-layout/GlobalNavigation/index.js +26 -30
  528. package/lib/tntd-layout/Header.js +6 -9
  529. package/lib/tntd-layout/HeaderActions.js +6 -9
  530. package/lib/tntd-layout/HeaderNavs.js +20 -24
  531. package/lib/tntd-layout/HeaderTabs.js +27 -37
  532. package/lib/tntd-layout/Iconfont.js +3 -3
  533. package/lib/tntd-layout/Language.js +20 -24
  534. package/lib/tntd-layout/Layout.js +20 -24
  535. package/lib/tntd-layout/Logo.js +6 -9
  536. package/lib/tntd-layout/OrgAppList.js +20 -24
  537. package/lib/tntd-layout/SideMenu.js +20 -24
  538. package/lib/tntd-layout/Theme.js +20 -24
  539. package/lib/tntd-layout/createActions.js +3 -3
  540. package/lib/tntd-layout/images/index.js +3 -3
  541. package/lib/tntd-layout/index.js +3 -3
  542. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +20 -24
  543. package/lib/tntd-layout/paaslayout/Header.js +6 -9
  544. package/lib/tntd-layout/paaslayout/Logo.js +6 -9
  545. package/lib/tntd-layout/paaslayout/SideMenu.js +20 -24
  546. package/lib/tntd-layout/paaslayout/index.js +20 -24
  547. package/lib/tntd-layout/storage.js +3 -3
  548. package/lib/tntd-modal/index.js +24 -31
  549. package/lib/tntd-rc-select/_util/PurePanel.js +17 -18
  550. package/lib/tntd-rc-select/_util/context.js +3 -3
  551. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +3 -3
  552. package/lib/tntd-rc-select/_util/getIcons.js +3 -3
  553. package/lib/tntd-rc-select/_util/useCompactItemContext.js +10 -16
  554. package/lib/tntd-rc-select/index.js +10 -16
  555. package/lib/tntd-reference/AHref/index.js +3 -3
  556. package/lib/tntd-reference/ReferenceBatchCheck/index.js +3 -3
  557. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +17 -18
  558. package/lib/tntd-reference/ReferenceCheck/index.js +3 -3
  559. package/lib/tntd-reference/ReferenceDrawer/index.js +17 -18
  560. package/lib/tntd-reference/ReferenceInfo/index.js +3 -3
  561. package/lib/tntd-reference/index.js +3 -3
  562. package/lib/tntd-second-page/index.js +3 -3
  563. package/lib/tntd-select/DropDownWrap.js +34 -54
  564. package/lib/tntd-select/index.js +40 -57
  565. package/lib/tntd-select/index.less +7 -0
  566. package/lib/tntd-virtual-tree/index.js +23 -24
  567. package/lib/tntd-virtual-tree/index.less +1 -1
  568. package/lib/tntd-virtual-tree/utils.js +62 -66
  569. package/lib/tntd-virtual-tree-select/index.js +22 -23
  570. package/lib/tntd-virtual-tree-select/utils.js +20 -21
  571. package/lib/tooltip/tooltip.js +3 -3
  572. package/lib/upload/index.js +41 -45
  573. package/lib/upload/svg/UploadSVG.js +3 -3
  574. package/lib/utils/checkAuth.js +6 -6
  575. package/lib/utils/index.js +20 -21
  576. package/lib/utils/lang.js +3 -3
  577. package/lib/water-mark/index.js +17 -18
  578. package/package.json +2 -2
@@ -39,24 +39,23 @@ function _interopRequireWildcard(e, r) {
39
39
  }
40
40
  return n["default"] = e, t && t.set(e, n), n;
41
41
  }
42
- function _slicedToArray(arr, i) {
43
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
42
+ function _slicedToArray(r, e) {
43
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
44
44
  }
45
45
  function _nonIterableRest() {
46
46
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47
47
  }
48
- function _unsupportedIterableToArray(o, minLen) {
49
- if (!o) return;
50
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
51
- var n = Object.prototype.toString.call(o).slice(8, -1);
52
- if (n === "Object" && o.constructor) n = o.constructor.name;
53
- if (n === "Map" || n === "Set") return Array.from(o);
54
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
48
+ function _unsupportedIterableToArray(r, a) {
49
+ if (r) {
50
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
51
+ var t = {}.toString.call(r).slice(8, -1);
52
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
53
+ }
55
54
  }
56
- function _arrayLikeToArray(arr, len) {
57
- if (len == null || len > arr.length) len = arr.length;
58
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
59
- return arr2;
55
+ function _arrayLikeToArray(r, a) {
56
+ (null == a || a > r.length) && (a = r.length);
57
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
58
+ return n;
60
59
  }
61
60
  function _iterableToArrayLimit(r, l) {
62
61
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -85,8 +84,8 @@ function _iterableToArrayLimit(r, l) {
85
84
  return a;
86
85
  }
87
86
  }
88
- function _arrayWithHoles(arr) {
89
- if (Array.isArray(arr)) return arr;
87
+ function _arrayWithHoles(r) {
88
+ if (Array.isArray(r)) return r;
90
89
  }
91
90
  function useForceUpdate() {
92
91
  var _React$useReducer = React.useReducer(function (x) {
@@ -13,19 +13,13 @@ function _typeof(o) {
13
13
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
14
14
  }, _typeof(o);
15
15
  }
16
- function _defineProperty(obj, key, value) {
17
- key = _toPropertyKey(key);
18
- if (key in obj) {
19
- Object.defineProperty(obj, key, {
20
- value: value,
21
- enumerable: true,
22
- configurable: true,
23
- writable: true
24
- });
25
- } else {
26
- obj[key] = value;
27
- }
28
- return obj;
16
+ function _defineProperty(e, r, t) {
17
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
18
+ value: t,
19
+ enumerable: !0,
20
+ configurable: !0,
21
+ writable: !0
22
+ }) : e[r] = t, e;
29
23
  }
30
24
  function _toPropertyKey(t) {
31
25
  var i = _toPrimitive(t, "string");
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "isStyleSupport", {
12
12
  });
13
13
  var _canUseDom = _interopRequireDefault(require("rc-util/lib/Dom/canUseDom"));
14
14
  var _styleChecker = require("rc-util/lib/Dom/styleChecker");
15
- function _interopRequireDefault(obj) {
16
- return obj && obj.__esModule ? obj : {
17
- "default": obj
15
+ function _interopRequireDefault(e) {
16
+ return e && e.__esModule ? e : {
17
+ "default": e
18
18
  };
19
19
  }
20
20
  var canUseDocElement = exports.canUseDocElement = function canUseDocElement() {
@@ -7,9 +7,9 @@ exports["default"] = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  require("./index.less");
10
- function _interopRequireDefault(obj) {
11
- return obj && obj.__esModule ? obj : {
12
- "default": obj
10
+ function _interopRequireDefault(e) {
11
+ return e && e.__esModule ? e : {
12
+ "default": e
13
13
  };
14
14
  }
15
15
  var ProCardActions = function ProCardActions(props) {
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { AlertProps as AntdAlertProps } from 'antd/lib/alert';
3
+ import { default as AntdAlert } from 'antd/lib/alert';
4
+ export * from 'antd/lib/alert';
5
+ export interface AlertProps extends AntdAlertProps {
6
+ action: React.ReactNode;
7
+ }
8
+ interface AlertComponent extends React.ForwardRefExoticComponent<AntdAlertProps & React.RefAttributes<AntdAlert>> {
9
+ }
10
+ export declare const Alert: AlertComponent;
11
+ export default Alert;
12
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/alert/alert.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAIjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AAEpD,cAAc,eAAe,CAAA;AAE7B,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD,MAAM,EAAE,KAAK,CAAC,SAAS,CAAA;CACxB;AAED,UAAU,cACR,SAAQ,KAAK,CAAC,yBAAyB,CAAC,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;CAAG;AAI7F,eAAO,MAAM,KAAK,gBAmDC,CAAA;AAEnB,eAAe,KAAK,CAAA"}
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ Alert: true
8
+ };
9
+ exports["default"] = exports.Alert = void 0;
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ var _icon = _interopRequireDefault(require("antd/lib/icon"));
12
+ var _configProvider = require("antd/lib/config-provider");
13
+ var _alert = _interopRequireWildcard(require("antd/lib/alert"));
14
+ Object.keys(_alert).forEach(function (key) {
15
+ if (key === "default" || key === "__esModule") return;
16
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
17
+ if (key in exports && exports[key] === _alert[key]) return;
18
+ Object.defineProperty(exports, key, {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _alert[key];
22
+ }
23
+ });
24
+ });
25
+ var _classnames = _interopRequireDefault(require("classnames"));
26
+ function _interopRequireDefault(e) {
27
+ return e && e.__esModule ? e : {
28
+ "default": e
29
+ };
30
+ }
31
+ function _getRequireWildcardCache(e) {
32
+ if ("function" != typeof WeakMap) return null;
33
+ var r = new WeakMap(),
34
+ t = new WeakMap();
35
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
36
+ return e ? t : r;
37
+ })(e);
38
+ }
39
+ function _interopRequireWildcard(e, r) {
40
+ if (!r && e && e.__esModule) return e;
41
+ if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
42
+ "default": e
43
+ };
44
+ var t = _getRequireWildcardCache(r);
45
+ if (t && t.has(e)) return t.get(e);
46
+ var n = {
47
+ __proto__: null
48
+ },
49
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor;
50
+ for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
51
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
52
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
53
+ }
54
+ return n["default"] = e, t && t.set(e, n), n;
55
+ }
56
+ function _typeof(o) {
57
+ "@babel/helpers - typeof";
58
+
59
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
60
+ return typeof o;
61
+ } : function (o) {
62
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
63
+ }, _typeof(o);
64
+ }
65
+ function _defineProperty(e, r, t) {
66
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
67
+ value: t,
68
+ enumerable: !0,
69
+ configurable: !0,
70
+ writable: !0
71
+ }) : e[r] = t, e;
72
+ }
73
+ function _toPropertyKey(t) {
74
+ var i = _toPrimitive(t, "string");
75
+ return "symbol" == _typeof(i) ? i : i + "";
76
+ }
77
+ function _toPrimitive(t, r) {
78
+ if ("object" != _typeof(t) || !t) return t;
79
+ var e = t[Symbol.toPrimitive];
80
+ if (void 0 !== e) {
81
+ var i = e.call(t, r || "default");
82
+ if ("object" != _typeof(i)) return i;
83
+ throw new TypeError("@@toPrimitive must return a primitive value.");
84
+ }
85
+ return ("string" === r ? String : Number)(t);
86
+ }
87
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
88
+ var t = {};
89
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
90
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
91
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
92
+ }
93
+ return t;
94
+ };
95
+ /*
96
+ * @Author: 周泽飞 zefei.zhou@tongdun.net
97
+ * @Date: 2024-03-21 19:43:36
98
+ * @LastEditors: 周泽飞 zefei.zhou@tongdun.net
99
+ * @LastEditTime: 2024-03-21 19:46:23
100
+ * @FilePath: /tntd/packages/tntd/src/alert/alert.tsx
101
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
102
+ */
103
+
104
+ var prefix = 'tnt-alert';
105
+ var Alert = exports.Alert = (0, _react.forwardRef)(function (_a, ref) {
106
+ var action = _a.action,
107
+ message = _a.message,
108
+ icon = _a.icon,
109
+ rest = __rest(_a, ["action", "message", "icon"]);
110
+ var fragment = _react["default"].createElement(_react["default"].Fragment, null, message, !!action && _react["default"].createElement("span", {
111
+ className: "action-btn"
112
+ }, action));
113
+ var iconTheme = 'filled';
114
+ var iconType = 'default';
115
+ switch (rest === null || rest === void 0 ? void 0 : rest.type) {
116
+ case 'success':
117
+ iconType = 'check-circle';
118
+ break;
119
+ case 'info':
120
+ iconType = 'info-circle';
121
+ break;
122
+ case 'error':
123
+ iconType = 'close-circle';
124
+ break;
125
+ case 'warning':
126
+ iconType = 'exclamation-circle';
127
+ break;
128
+ default:
129
+ iconType = 'default';
130
+ }
131
+ var iconNode = icon || (rest.type ? _react["default"].createElement(_icon["default"], {
132
+ className: "".concat(prefix, "-icon"),
133
+ type: iconType,
134
+ theme: iconTheme
135
+ }) : null);
136
+ return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
137
+ var getPrefixCls = _ref.getPrefixCls;
138
+ return _react["default"].createElement(_alert["default"], Object.assign({
139
+ ref: ref
140
+ }, rest, {
141
+ message: fragment,
142
+ icon: iconNode,
143
+ className: (0, _classnames["default"])(rest === null || rest === void 0 ? void 0 : rest.className, 'tnt-alert', _defineProperty({}, "".concat(prefix, "-with-action"), action))
144
+ }));
145
+ });
146
+ });
147
+ var _default = exports["default"] = Alert;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/alert/alert.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,+CAAyC;AAGzC,wDAA+B;AAC/B,6DAAwD;AACxD,0DAAoD;AACpD,4DAAkC;AAClC,gDAA6B;AAS7B,MAAM,MAAM,GAAG,WAAW,CAAA;AAEb,QAAA,KAAK,GAAG,IAAA,kBAAU,EAC7B,CAAC,EAAkC,EAAE,GAAG,EAAE,EAAE;QAA3C,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,OAAW,EAAN,IAAI,cAAhC,6BAAkC,CAAF;IAC/B,MAAM,QAAQ,GAAG,CACf;QACG,OAAO;QACP,CAAC,CAAC,MAAM,IAAI,wCAAM,SAAS,EAAC,YAAY,IAAE,MAAM,CAAQ,CACxD,CACJ,CAAA;IAED,MAAM,SAAS,GAAc,QAAQ,CAAA;IACrC,IAAI,QAAQ,GAAG,SAAS,CAAA;IAExB,QAAQ,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,EAAE;QAClB,KAAK,SAAS;YACZ,QAAQ,GAAG,cAAc,CAAA;YACzB,MAAK;QACP,KAAK,MAAM;YACT,QAAQ,GAAG,aAAa,CAAA;YACxB,MAAK;QACP,KAAK,OAAO;YACV,QAAQ,GAAG,cAAc,CAAA;YACzB,MAAK;QACP,KAAK,SAAS;YACZ,QAAQ,GAAG,oBAAoB,CAAA;YAC/B,MAAK;QACP;YACE,QAAQ,GAAG,SAAS,CAAA;KACvB;IAED,MAAM,QAAQ,GACZ,IAAI;QACJ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,8BAAC,cAAI,IAAC,SAAS,EAAE,GAAG,MAAM,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAE9F,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,CACL,8BAAC,eAAS,kBACR,GAAG,EAAE,GAAG,IACJ,IAAI,IACR,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,IAAA,oBAAS,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,EAAE,WAAW,EAAE;gBACjD,CAAC,GAAG,MAAM,cAAc,CAAC,EAAE,MAAM;aAClC,CAAC,IACF,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACgB,CAAA;AAEnB,kBAAe,aAAK,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2024-03-21 19:43:36\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2024-03-21 19:46:23\n * @FilePath: /tntd/packages/tntd/src/alert/alert.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { AlertProps as AntdAlertProps } from 'antd/lib/alert'\nimport type { ThemeType } from 'antd/lib/icon'\nimport Icon from 'antd/lib/icon'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport { default as AntdAlert } from 'antd/lib/alert'\nimport classname from 'classnames'\nexport * from 'antd/lib/alert'\n\nexport interface AlertProps extends AntdAlertProps {\n action: React.ReactNode\n}\n\ninterface AlertComponent\n extends React.ForwardRefExoticComponent<AntdAlertProps & React.RefAttributes<AntdAlert>> {}\n\nconst prefix = 'tnt-alert'\n\nexport const Alert = forwardRef<AntdAlert, AlertProps>(\n ({ action, message, icon, ...rest }, ref) => {\n const fragment = (\n <>\n {message}\n {!!action && <span className=\"action-btn\">{action}</span>}\n </>\n )\n\n const iconTheme: ThemeType = 'filled'\n let iconType = 'default'\n\n switch (rest?.type) {\n case 'success':\n iconType = 'check-circle'\n break\n case 'info':\n iconType = 'info-circle'\n break\n case 'error':\n iconType = 'close-circle'\n break\n case 'warning':\n iconType = 'exclamation-circle'\n break\n default:\n iconType = 'default'\n }\n\n const iconNode =\n icon ||\n (rest.type ? <Icon className={`${prefix}-icon`} type={iconType} theme={iconTheme} /> : null)\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return (\n <AntdAlert\n ref={ref}\n {...rest}\n message={fragment}\n icon={iconNode}\n className={classname(rest?.className, 'tnt-alert', {\n [`${prefix}-with-action`]: action,\n })}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n) as AlertComponent\n\nexport default Alert\n"]}
@@ -0,0 +1,128 @@
1
+ @alert-prefix-cls: ~'@{ant-prefix}-alert';
2
+ @alert-description-color: @text-color-secondary;
3
+ @tnt-alert-prefix-cls: ~'tnt-alert';
4
+
5
+
6
+ .@{tnt-alert-prefix-cls} {
7
+
8
+ &.@{alert-prefix-cls}.@{alert-prefix-cls}-no-icon.@{alert-prefix-cls}-closable {
9
+ padding-right: 30px;
10
+ }
11
+
12
+ &.@{tnt-alert-prefix-cls}-with-action {
13
+ .@{alert-prefix-cls}-message {
14
+ display: flex;
15
+ justify-content: space-between;
16
+ > .action-btn {
17
+ flex: none;
18
+ margin-left: 36px;
19
+ margin-right: 12px;
20
+ font-size: @font-size-base;
21
+ }
22
+ }
23
+ }
24
+
25
+ &.@{alert-prefix-cls} {
26
+ border-radius: @border-radius-lg;
27
+ padding: 8px 15px 8px 44px;
28
+ & .anticon {
29
+ left: 20px;
30
+ top: 11px; // 与文字对齐
31
+ }
32
+
33
+ }
34
+
35
+ .@{alert-prefix-cls}-message {
36
+ font-weight: 500;
37
+ color: @alert-description-color;
38
+ }
39
+
40
+ & .@{alert-prefix-cls}-close-icon {
41
+ font-size: @font-size-lg;
42
+ }
43
+
44
+ &.@{alert-prefix-cls}-with-description {
45
+ padding: 16px 20px 16px 48px;
46
+ }
47
+
48
+ &.@{alert-prefix-cls}.@{alert-prefix-cls}-no-icon {
49
+ padding: 8px 20px;
50
+ }
51
+
52
+ &.@{alert-prefix-cls}-with-description.@{alert-prefix-cls}-no-icon {
53
+ padding: 16px 20px;
54
+ }
55
+
56
+ &.@{alert-prefix-cls}-with-description i.@{alert-prefix-cls}-icon {
57
+ top: 18px;
58
+ font-size: @font-size-xl;
59
+ }
60
+ }
61
+
62
+
63
+ .@{alert-prefix-cls}-success {
64
+ .action-btn {
65
+ background-color: @alert-success-bg-color;
66
+ color: @green-6;
67
+ a {
68
+ color: @green-6;
69
+ }
70
+ }
71
+ .@{alert-prefix-cls}-close-icon {
72
+ .@{iconfont-css-prefix}-close {
73
+ color: @alert-success-icon-color;
74
+ }
75
+ }
76
+ }
77
+
78
+ .@{alert-prefix-cls}-info {
79
+ .action-btn {
80
+ background-color: @alert-info-bg-color;
81
+ color: @alert-info-icon-color;
82
+ a {
83
+ color: @alert-info-icon-color;
84
+ }
85
+ }
86
+ .@{alert-prefix-cls}-close-icon {
87
+ .@{iconfont-css-prefix}-close {
88
+ color: @alert-info-icon-color;
89
+ }
90
+ }
91
+ }
92
+
93
+ .@{alert-prefix-cls}-warning {
94
+ .action-btn {
95
+ background-color: @alert-warning-bg-color;
96
+ color: @gold-7;
97
+ a {
98
+ color: @gold-7;
99
+ }
100
+ }
101
+ .@{alert-prefix-cls}-close-icon {
102
+ .@{iconfont-css-prefix}-close {
103
+ color: @alert-warning-icon-color;
104
+ }
105
+ }
106
+ }
107
+
108
+ .@{alert-prefix-cls}-error {
109
+ .action-btn {
110
+ background-color: @alert-error-bg-color;
111
+ color: @red-6;
112
+ a {
113
+ color: @red-6;
114
+ }
115
+ }
116
+ .@{alert-prefix-cls}-close-icon {
117
+ .@{iconfont-css-prefix}-close {
118
+ color: @alert-error-icon-color;
119
+ }
120
+ }
121
+ }
122
+
123
+ .@{alert-prefix-cls} {
124
+ >
125
+ .@{alert-prefix-cls}-icon {
126
+ font-size: @font-size-lg;
127
+ }
128
+ }
@@ -57,36 +57,30 @@ function _interopRequireWildcard(e, r) {
57
57
  }
58
58
  return n["default"] = e, t && t.set(e, n), n;
59
59
  }
60
- function _interopRequireDefault(obj) {
61
- return obj && obj.__esModule ? obj : {
62
- "default": obj
60
+ function _interopRequireDefault(e) {
61
+ return e && e.__esModule ? e : {
62
+ "default": e
63
63
  };
64
64
  }
65
- function _toConsumableArray(arr) {
66
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
65
+ function _toConsumableArray(r) {
66
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
67
67
  }
68
68
  function _nonIterableSpread() {
69
69
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
70
70
  }
71
- function _iterableToArray(iter) {
72
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
71
+ function _iterableToArray(r) {
72
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
73
73
  }
74
- function _arrayWithoutHoles(arr) {
75
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
74
+ function _arrayWithoutHoles(r) {
75
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
76
76
  }
77
- function _defineProperty(obj, key, value) {
78
- key = _toPropertyKey(key);
79
- if (key in obj) {
80
- Object.defineProperty(obj, key, {
81
- value: value,
82
- enumerable: true,
83
- configurable: true,
84
- writable: true
85
- });
86
- } else {
87
- obj[key] = value;
88
- }
89
- return obj;
77
+ function _defineProperty(e, r, t) {
78
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
79
+ value: t,
80
+ enumerable: !0,
81
+ configurable: !0,
82
+ writable: !0
83
+ }) : e[r] = t, e;
90
84
  }
91
85
  function _toPropertyKey(t) {
92
86
  var i = _toPrimitive(t, "string");
@@ -102,24 +96,23 @@ function _toPrimitive(t, r) {
102
96
  }
103
97
  return ("string" === r ? String : Number)(t);
104
98
  }
105
- function _slicedToArray(arr, i) {
106
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
99
+ function _slicedToArray(r, e) {
100
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
107
101
  }
108
102
  function _nonIterableRest() {
109
103
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
110
104
  }
111
- function _unsupportedIterableToArray(o, minLen) {
112
- if (!o) return;
113
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
114
- var n = Object.prototype.toString.call(o).slice(8, -1);
115
- if (n === "Object" && o.constructor) n = o.constructor.name;
116
- if (n === "Map" || n === "Set") return Array.from(o);
117
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
105
+ function _unsupportedIterableToArray(r, a) {
106
+ if (r) {
107
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
108
+ var t = {}.toString.call(r).slice(8, -1);
109
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
110
+ }
118
111
  }
119
- function _arrayLikeToArray(arr, len) {
120
- if (len == null || len > arr.length) len = arr.length;
121
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
122
- return arr2;
112
+ function _arrayLikeToArray(r, a) {
113
+ (null == a || a > r.length) && (a = r.length);
114
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
115
+ return n;
123
116
  }
124
117
  function _iterableToArrayLimit(r, l) {
125
118
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -148,8 +141,8 @@ function _iterableToArrayLimit(r, l) {
148
141
  return a;
149
142
  }
150
143
  }
151
- function _arrayWithHoles(arr) {
152
- if (Array.isArray(arr)) return arr;
144
+ function _arrayWithHoles(r) {
145
+ if (Array.isArray(r)) return r;
153
146
  }
154
147
  var __rest = void 0 && (void 0).__rest || function (s, e) {
155
148
  var t = {};
@@ -0,0 +1,10 @@
1
+ import type { CascaderProps as AntdCascaderProps } from 'antd/lib/cascader';
2
+ import AntdCascader from 'antd/lib/cascader';
3
+ import React from 'react';
4
+ export * from 'antd/lib/cascader';
5
+ export declare type CascaderProps = AntdCascaderProps & {
6
+ readonly?: boolean;
7
+ };
8
+ declare const _default: React.ForwardRefExoticComponent<Pick<AntdCascaderProps & React.RefAttributes<AntdCascader>, "key" | keyof AntdCascaderProps> & React.RefAttributes<unknown>>;
9
+ export default _default;
10
+ //# sourceMappingURL=cascader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["../../src/cascader/cascader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,YAAY,MAAM,kBAAkB,CAAA;AAG3C,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,cAAc,kBAAkB,CAAA;AAEhC,oBAAY,aAAa,GAAG,iBAAiB,GAAG;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;;AAuBD,wBAAuE"}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
+ return typeof o;
8
+ } : function (o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
12
+ Object.defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ var _exportNames = {};
16
+ exports["default"] = void 0;
17
+ var _cascader = _interopRequireWildcard(require("antd/lib/cascader"));
18
+ Object.keys(_cascader).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
21
+ if (key in exports && exports[key] === _cascader[key]) return;
22
+ Object.defineProperty(exports, key, {
23
+ enumerable: true,
24
+ get: function get() {
25
+ return _cascader[key];
26
+ }
27
+ });
28
+ });
29
+ var _configProvider = require("antd/lib/config-provider");
30
+ var _classnames = _interopRequireDefault(require("classnames"));
31
+ var _react = _interopRequireWildcard(require("react"));
32
+ var _connect = require("../connect");
33
+ var _previewText = require("../preview-text");
34
+ function _interopRequireDefault(e) {
35
+ return e && e.__esModule ? e : {
36
+ "default": e
37
+ };
38
+ }
39
+ function _getRequireWildcardCache(e) {
40
+ if ("function" != typeof WeakMap) return null;
41
+ var r = new WeakMap(),
42
+ t = new WeakMap();
43
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
44
+ return e ? t : r;
45
+ })(e);
46
+ }
47
+ function _interopRequireWildcard(e, r) {
48
+ if (!r && e && e.__esModule) return e;
49
+ if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
50
+ "default": e
51
+ };
52
+ var t = _getRequireWildcardCache(r);
53
+ if (t && t.has(e)) return t.get(e);
54
+ var n = {
55
+ __proto__: null
56
+ },
57
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor;
58
+ for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
59
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
60
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
61
+ }
62
+ return n["default"] = e, t && t.set(e, n), n;
63
+ }
64
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
65
+ var t = {};
66
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
67
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
68
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
69
+ }
70
+ return t;
71
+ };
72
+ var tntPrefixCls = 'tnt-cascader';
73
+ var Cascader = (0, _react.forwardRef)(function (_a, ref) {
74
+ var className = _a.className,
75
+ children = _a.children,
76
+ rest = __rest(_a, ["className", "children"]);
77
+ return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
78
+ return _react["default"].createElement(_cascader["default"], Object.assign({}, rest, {
79
+ ref: ref,
80
+ className: (0, _classnames["default"])(className, tntPrefixCls)
81
+ }), children);
82
+ });
83
+ });
84
+ var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(Cascader, _previewText.PreviewText.Cascader);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cascader.js","sourceRoot":"","sources":["../../src/cascader/cascader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gEAA2C;AAC3C,6DAAwD;AACxD,4DAAmC;AACnC,+CAAyC;AACzC,wCAAqD;AACrD,kDAA6C;AAE7C,mDAAgC;AAShC,MAAM,YAAY,GAAG,cAAc,CAAA;AAEnC,MAAM,QAAQ,GAAG,IAAA,kBAAU,EACzB,CAAC,EAAgC,EAAE,GAAG,EAAE,EAAE;QAAzC,EAAE,SAAS,EAAE,QAAQ,OAAW,EAAN,IAAI,cAA9B,yBAAgC,CAAF;IAC7B,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,kBAAY,oBAAK,IAAI,IAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,YAAY,CAAC,KAC7E,QAAQ,CACI,CAChB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACmB,CAAA;AAEtB,kBAAe,IAAA,kCAAwB,EAAC,QAAQ,EAAE,0BAAW,CAAC,QAAQ,CAAC,CAAA","sourcesContent":["import type { CascaderProps as AntdCascaderProps } from 'antd/lib/cascader'\nimport AntdCascader from 'antd/lib/cascader'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport classNames from 'classnames'\nimport React, { forwardRef } from 'react'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\n\nexport * from 'antd/lib/cascader'\n\nexport type CascaderProps = AntdCascaderProps & {\n readonly?: boolean\n}\n\ninterface CascaderComponent\n extends React.ForwardRefExoticComponent<AntdCascaderProps & React.RefAttributes<AntdCascader>> {}\n\nconst tntPrefixCls = 'tnt-cascader'\n\nconst Cascader = forwardRef<AntdCascader, AntdCascaderProps>(\n ({ className, children, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdCascader {...rest} ref={ref} className={classNames(className, tntPrefixCls)}>\n {children}\n </AntdCascader>\n )\n }}\n </ConfigConsumer>\n )\n }\n) as CascaderComponent\n\nexport default connectReadonlyComponent(Cascader, PreviewText.Cascader)\n"]}
@@ -0,0 +1,16 @@
1
+ @cascader-prefix-cls: ~'@{ant-prefix}-cascader';
2
+
3
+ .tnt-cascader {
4
+ .@{cascader-prefix-cls}-picker {
5
+ &-clear {
6
+ width: 16px;
7
+ height: 16px;
8
+ font-size: initial;
9
+ margin-top: -8px;
10
+ }
11
+ &-arrow {
12
+ width: 16px;
13
+ height: 16px;
14
+ }
15
+ }
16
+ }