@oceanbase/design 1.0.0-alpha.10 → 1.0.0-alpha.11

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 (313) hide show
  1. package/dist/design.min.js +1 -1
  2. package/es/_util/index.js +1 -0
  3. package/es/_util/styleChecker.js +1 -0
  4. package/es/affix/index.js +1 -0
  5. package/es/alert/index.d.ts +1 -1
  6. package/es/alert/index.js +5 -2
  7. package/es/alert/style/index.js +17 -8
  8. package/es/anchor/index.js +1 -0
  9. package/es/app/index.js +1 -0
  10. package/es/auto-complete/index.js +1 -0
  11. package/es/avatar/index.js +1 -0
  12. package/es/badge/index.d.ts +2 -0
  13. package/es/badge/index.js +26 -10
  14. package/es/badge/style/index.js +3 -1
  15. package/es/breadcrumb/Breadcrumb.js +1 -0
  16. package/es/breadcrumb/index.js +1 -0
  17. package/es/button/index.js +1 -0
  18. package/es/calendar/index.js +1 -0
  19. package/es/card/index.js +2 -0
  20. package/es/card/style/index.js +3 -1
  21. package/es/carousel/index.js +1 -0
  22. package/es/cascader/index.js +1 -0
  23. package/es/checkbox/index.js +1 -0
  24. package/es/collapse/index.js +1 -0
  25. package/es/color-picker/index.js +1 -0
  26. package/es/config-provider/DefaultRenderEmpty.js +1 -0
  27. package/es/config-provider/index.js +1 -0
  28. package/es/date-picker/index.js +1 -0
  29. package/es/descriptions/hooks/useItems.d.ts +4 -4
  30. package/es/descriptions/hooks/useItems.js +1 -0
  31. package/es/descriptions/index.js +1 -0
  32. package/es/divider/index.js +1 -0
  33. package/es/drawer/index.js +1 -0
  34. package/es/dropdown/dropdown-button.js +1 -0
  35. package/es/dropdown/index.js +1 -0
  36. package/es/empty/colored.js +1 -0
  37. package/es/empty/database.js +1 -0
  38. package/es/empty/default.js +1 -0
  39. package/es/empty/guide.js +1 -0
  40. package/es/empty/index.js +1 -0
  41. package/es/float-button/index.js +1 -0
  42. package/es/form/FormItem.js +1 -0
  43. package/es/form/index.js +1 -0
  44. package/es/grid/col.js +1 -0
  45. package/es/grid/index.js +1 -0
  46. package/es/grid/row.js +1 -0
  47. package/es/image/index.js +1 -0
  48. package/es/index.js +1 -0
  49. package/es/input/Input.js +1 -0
  50. package/es/input/Password.js +1 -0
  51. package/es/input/Search.js +1 -0
  52. package/es/input/TextArea.js +1 -0
  53. package/es/input/index.js +1 -0
  54. package/es/input-number/index.js +1 -0
  55. package/es/layout/index.js +1 -0
  56. package/es/list/index.js +1 -0
  57. package/es/locale/index.js +1 -0
  58. package/es/lottie/index.js +1 -0
  59. package/es/mentions/index.js +1 -0
  60. package/es/menu/index.js +1 -0
  61. package/es/message/index.js +1 -0
  62. package/es/modal/Modal.d.ts +1 -1
  63. package/es/modal/Modal.js +7 -4
  64. package/es/modal/Progress.js +1 -0
  65. package/es/modal/index.js +1 -0
  66. package/es/modal/style/index.js +9 -5
  67. package/es/notification/index.js +1 -0
  68. package/es/pagination/index.js +1 -0
  69. package/es/popconfirm/index.js +1 -0
  70. package/es/popover/index.js +1 -0
  71. package/es/progress/index.js +1 -0
  72. package/es/qrcode/index.js +1 -0
  73. package/es/radio/index.js +1 -0
  74. package/es/rate/index.js +1 -0
  75. package/es/result/403.js +1 -0
  76. package/es/result/404.js +1 -0
  77. package/es/result/500.js +1 -0
  78. package/es/result/Error.js +1 -0
  79. package/es/result/Processing.js +1 -0
  80. package/es/result/Success.js +1 -0
  81. package/es/result/Warning.js +1 -0
  82. package/es/result/index.js +1 -0
  83. package/es/segmented/index.js +1 -0
  84. package/es/select/index.js +1 -0
  85. package/es/skeleton/index.js +1 -0
  86. package/es/slider/index.js +1 -0
  87. package/es/space/index.js +1 -0
  88. package/es/spin/index.js +1 -0
  89. package/es/static-function/index.js +1 -0
  90. package/es/statistic/index.js +1 -0
  91. package/es/steps/index.js +1 -0
  92. package/es/style/cssVariables.js +2 -1
  93. package/es/style/cssVariablesMeta.js +7 -7
  94. package/es/style/global.js +1 -0
  95. package/es/switch/index.js +1 -0
  96. package/es/table/index.js +38 -61
  97. package/es/table/style/index.js +23 -17
  98. package/es/tabs/TabPane.js +1 -0
  99. package/es/tabs/hooks/useLegacyItems.js +1 -0
  100. package/es/tabs/index.js +1 -0
  101. package/es/tag/index.js +1 -0
  102. package/es/tag/style/index.js +4 -1
  103. package/es/theme/index.js +1 -0
  104. package/es/theme/interface.d.ts +7 -0
  105. package/es/theme/style/aliyun.less +1 -1
  106. package/es/theme/style/compact.less +3 -3
  107. package/es/theme/style/dark.less +1 -1
  108. package/es/theme/style/default.less +3 -3
  109. package/es/time-picker/index.js +1 -0
  110. package/es/timeline/index.js +1 -0
  111. package/es/tooltip/MouseTooltip.js +1 -0
  112. package/es/tooltip/ReactStickyMouseTooltip.js +1 -0
  113. package/es/tooltip/index.js +1 -0
  114. package/es/tour/index.js +1 -0
  115. package/es/transfer/index.js +1 -0
  116. package/es/tree/index.js +1 -0
  117. package/es/tree-select/index.js +1 -0
  118. package/es/typography/Link.js +1 -0
  119. package/es/typography/Paragraph.js +1 -0
  120. package/es/typography/Text.js +1 -0
  121. package/es/typography/Title.js +1 -0
  122. package/es/typography/index.js +1 -0
  123. package/es/upload/index.js +1 -0
  124. package/es/watermark/index.js +1 -0
  125. package/lib/_util/genComponentStyleHook.js +52 -59
  126. package/lib/_util/getEllipsisConfig.js +16 -39
  127. package/lib/_util/index.js +13 -29
  128. package/lib/_util/styleChecker.js +33 -53
  129. package/lib/_util/type.js +4 -16
  130. package/lib/_util/useFlexGapSupport.js +11 -36
  131. package/lib/affix/index.js +15 -21
  132. package/lib/alert/index.d.ts +1 -1
  133. package/lib/alert/index.js +63 -82
  134. package/lib/alert/style/index.js +111 -108
  135. package/lib/anchor/index.js +26 -23
  136. package/lib/app/index.js +47 -54
  137. package/lib/app/style/index.js +13 -32
  138. package/lib/auto-complete/index.js +15 -21
  139. package/lib/avatar/index.js +26 -23
  140. package/lib/badge/index.d.ts +2 -0
  141. package/lib/badge/index.js +108 -110
  142. package/lib/badge/style/index.js +21 -40
  143. package/lib/breadcrumb/Breadcrumb.js +15 -21
  144. package/lib/breadcrumb/index.js +31 -31
  145. package/lib/button/index.js +50 -60
  146. package/lib/button/style/index.js +35 -57
  147. package/lib/calendar/index.js +15 -21
  148. package/lib/card/Card.js +14 -21
  149. package/lib/card/index.js +246 -255
  150. package/lib/card/style/index.js +50 -61
  151. package/lib/carousel/index.js +15 -21
  152. package/lib/cascader/index.js +15 -21
  153. package/lib/checkbox/index.js +52 -69
  154. package/lib/checkbox/style/index.js +20 -35
  155. package/lib/collapse/index.js +15 -21
  156. package/lib/color-picker/index.js +15 -21
  157. package/lib/color-picker/interface.js +14 -21
  158. package/lib/config-provider/DefaultRenderEmpty.js +34 -48
  159. package/lib/config-provider/SizeContext.js +14 -21
  160. package/lib/config-provider/context.js +14 -21
  161. package/lib/config-provider/index.js +200 -233
  162. package/lib/config-provider/navigate.js +4 -16
  163. package/lib/date-picker/index.js +15 -21
  164. package/lib/descriptions/Item.js +6 -24
  165. package/lib/descriptions/hooks/useItems.d.ts +4 -4
  166. package/lib/descriptions/hooks/useItems.js +50 -73
  167. package/lib/descriptions/index.js +83 -101
  168. package/lib/descriptions/style/index.js +46 -64
  169. package/lib/divider/index.js +15 -21
  170. package/lib/drawer/index.js +108 -127
  171. package/lib/drawer/style/index.js +36 -51
  172. package/lib/dropdown/dropdown-button.js +30 -57
  173. package/lib/dropdown/index.js +30 -46
  174. package/lib/dropdown/style/index.js +13 -32
  175. package/lib/empty/colored.js +198 -314
  176. package/lib/empty/database.js +117 -185
  177. package/lib/empty/default.js +53 -48
  178. package/lib/empty/guide.js +145 -224
  179. package/lib/empty/index.js +77 -95
  180. package/lib/empty/style/index.js +28 -43
  181. package/lib/float-button/index.js +15 -21
  182. package/lib/float-button/interface.js +14 -21
  183. package/lib/form/FormItem.js +78 -84
  184. package/lib/form/index.js +57 -77
  185. package/lib/form/interface.js +14 -21
  186. package/lib/form/style/index.js +16 -35
  187. package/lib/grid/col.js +28 -45
  188. package/lib/grid/index.js +26 -44
  189. package/lib/grid/row.js +30 -45
  190. package/lib/image/index.js +15 -21
  191. package/lib/index.js +333 -154
  192. package/lib/input/Input.js +65 -78
  193. package/lib/input/Password.js +59 -76
  194. package/lib/input/Search.js +59 -76
  195. package/lib/input/TextArea.js +59 -76
  196. package/lib/input/index.js +30 -49
  197. package/lib/input/style/index.js +19 -36
  198. package/lib/input-number/index.js +56 -76
  199. package/lib/input-number/style/index.js +13 -32
  200. package/lib/layout/index.js +15 -21
  201. package/lib/list/index.js +52 -59
  202. package/lib/locale/en-US.js +22 -49
  203. package/lib/locale/index.js +25 -38
  204. package/lib/locale/ja-JP.js +22 -49
  205. package/lib/locale/useLocale.js +6 -24
  206. package/lib/locale/zh-CN.js +22 -49
  207. package/lib/locale/zh-TW.js +22 -49
  208. package/lib/lottie/index.js +61 -80
  209. package/lib/mentions/index.js +15 -21
  210. package/lib/menu/index.js +15 -21
  211. package/lib/menu/interface.js +14 -21
  212. package/lib/message/index.js +15 -21
  213. package/lib/message/interface.js +14 -21
  214. package/lib/modal/Modal.d.ts +1 -1
  215. package/lib/modal/Modal.js +69 -80
  216. package/lib/modal/Progress.js +44 -61
  217. package/lib/modal/index.js +23 -42
  218. package/lib/modal/interface.js +14 -21
  219. package/lib/modal/style/index.js +34 -46
  220. package/lib/notification/index.js +15 -21
  221. package/lib/notification/interface.js +14 -21
  222. package/lib/pagination/index.js +15 -21
  223. package/lib/popconfirm/index.js +15 -21
  224. package/lib/popover/index.js +15 -21
  225. package/lib/progress/index.js +26 -23
  226. package/lib/progress/progress.js +14 -21
  227. package/lib/qrcode/index.js +15 -21
  228. package/lib/qrcode/interface.js +14 -21
  229. package/lib/radio/index.js +53 -62
  230. package/lib/radio/interface.js +14 -21
  231. package/lib/radio/style/index.js +18 -33
  232. package/lib/rate/index.js +15 -21
  233. package/lib/result/403.js +164 -195
  234. package/lib/result/404.js +291 -354
  235. package/lib/result/500.js +156 -259
  236. package/lib/result/Error.js +127 -161
  237. package/lib/result/Processing.js +320 -252
  238. package/lib/result/Success.js +202 -261
  239. package/lib/result/Warning.js +302 -434
  240. package/lib/result/index.js +65 -80
  241. package/lib/result/style/index.js +15 -35
  242. package/lib/segmented/index.js +86 -83
  243. package/lib/segmented/style/index.js +19 -36
  244. package/lib/select/index.js +63 -81
  245. package/lib/select/style/index.js +12 -32
  246. package/lib/skeleton/index.js +15 -21
  247. package/lib/slider/index.js +48 -58
  248. package/lib/slider/style/index.js +19 -37
  249. package/lib/space/index.js +63 -69
  250. package/lib/space/style/index.js +16 -36
  251. package/lib/spin/index.js +58 -76
  252. package/lib/spin/style/index.js +48 -52
  253. package/lib/static-function/index.js +48 -73
  254. package/lib/statistic/index.js +15 -21
  255. package/lib/steps/index.js +15 -21
  256. package/lib/style/cssVariables.js +237 -256
  257. package/lib/style/cssVariablesMeta.js +978 -1057
  258. package/lib/style/global.js +119 -155
  259. package/lib/switch/index.js +52 -60
  260. package/lib/switch/style/index.js +12 -32
  261. package/lib/table/hooks/useDefaultPagination.js +18 -46
  262. package/lib/table/index.js +179 -219
  263. package/lib/table/interface.js +14 -21
  264. package/lib/table/style/index.js +59 -73
  265. package/lib/tabs/TabPane.js +7 -24
  266. package/lib/tabs/hooks/useLegacyItems.js +27 -43
  267. package/lib/tabs/index.js +107 -124
  268. package/lib/tabs/style/index.js +23 -38
  269. package/lib/tag/index.js +78 -98
  270. package/lib/tag/style/index.js +35 -57
  271. package/lib/theme/aliyun.js +7 -34
  272. package/lib/theme/compact.js +9 -36
  273. package/lib/theme/dark.js +9 -36
  274. package/lib/theme/default.js +130 -232
  275. package/lib/theme/index.js +48 -55
  276. package/lib/theme/interface.d.ts +7 -0
  277. package/lib/theme/interface.js +14 -21
  278. package/lib/theme/internal.js +14 -21
  279. package/lib/theme/style/aliyun.less +1 -1
  280. package/lib/theme/style/compact.less +3 -3
  281. package/lib/theme/style/dark.less +1 -1
  282. package/lib/theme/style/default.less +3 -3
  283. package/lib/theme/themes/compact/index.js +19 -39
  284. package/lib/theme/themes/dark/index.js +19 -39
  285. package/lib/theme/themes/default/index.js +19 -39
  286. package/lib/theme/themes/seed.js +24 -43
  287. package/lib/theme/util/alias.js +19 -39
  288. package/lib/theme/util/format.js +15 -35
  289. package/lib/time-picker/index.js +15 -21
  290. package/lib/timeline/index.js +15 -21
  291. package/lib/tooltip/MouseTooltip.js +84 -98
  292. package/lib/tooltip/ReactStickyMouseTooltip.js +63 -88
  293. package/lib/tooltip/hooks/useTooltipTypeList.js +28 -61
  294. package/lib/tooltip/index.js +123 -137
  295. package/lib/tooltip/style/index.js +26 -47
  296. package/lib/tour/index.js +15 -21
  297. package/lib/tour/interface.js +14 -21
  298. package/lib/transfer/index.js +15 -21
  299. package/lib/transfer/interface.js +14 -21
  300. package/lib/tree/index.js +15 -21
  301. package/lib/tree-select/index.js +67 -85
  302. package/lib/tree-select/style/index.js +9 -31
  303. package/lib/typography/Link.js +54 -68
  304. package/lib/typography/Paragraph.js +54 -68
  305. package/lib/typography/Text.js +55 -68
  306. package/lib/typography/Title.js +54 -68
  307. package/lib/typography/hooks/useClassName.js +12 -43
  308. package/lib/typography/index.js +89 -58
  309. package/lib/typography/style/index.js +29 -45
  310. package/lib/upload/index.js +15 -21
  311. package/lib/upload/interface.js +14 -21
  312. package/lib/watermark/index.js +15 -21
  313. package/package.json +3 -3
@@ -1,79 +1,62 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ "use strict";
29
2
 
30
- // src/input/Password.tsx
31
- var Password_exports = {};
32
- __export(Password_exports, {
33
- default: () => Password_default
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
34
5
  });
35
- module.exports = __toCommonJS(Password_exports);
36
- var import_react = require("react");
37
- var import_antd = require("antd");
38
- var import_config_provider = __toESM(require("../config-provider"));
39
- var import_en_US = __toESM(require("../locale/en-US"));
40
- var import_Input = require("./Input");
41
- var import_style = __toESM(require("./style"));
42
- __reExport(Password_exports, require("antd/es/input/Password"), module.exports);
43
- var import_jsx_runtime = require("react/jsx-runtime");
44
- var Password = (0, import_react.forwardRef)(
45
- ({ prefixCls: customizePrefixCls, locale: customLocale, showCount, ...restProps }, ref) => {
46
- var _a, _b;
47
- const { getPrefixCls, locale: contextLocale } = (0, import_react.useContext)(
48
- import_config_provider.default.ConfigContext
49
- );
50
- const prefixCls = getPrefixCls("input", customizePrefixCls);
51
- const [wrapCSSVar] = (0, import_style.default)(prefixCls);
52
- const inputLocale = {
53
- placeholder: ((_a = contextLocale == null ? void 0 : contextLocale.global) == null ? void 0 : _a.inputPlaceholder) || ((_b = import_en_US.default.global) == null ? void 0 : _b.inputPlaceholder),
54
- ...import_en_US.default.Input,
55
- ...contextLocale == null ? void 0 : contextLocale.Input,
56
- ...customLocale
57
- };
58
- return wrapCSSVar(
59
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
- import_antd.Input.Password,
61
- {
62
- ref,
63
- prefixCls: customizePrefixCls,
64
- placeholder: inputLocale.placeholder,
65
- showCount: showCount === true ? { formatter: import_Input.showCountFormatter } : showCount,
66
- ...restProps
67
- }
68
- )
69
- );
70
- }
71
- );
72
- if (process.env.NODE_ENV !== "production") {
73
- Password.displayName = "Password";
74
- }
75
- var Password_default = Password;
76
- // Annotate the CommonJS export names for ESM import in node:
77
- 0 && (module.exports = {
78
- ...require("antd/es/input/Password")
6
+ var _exportNames = {};
7
+ exports.default = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _antd = require("antd");
10
+ var _configProvider = _interopRequireDefault(require("../config-provider"));
11
+ var _enUS = _interopRequireDefault(require("../locale/en-US"));
12
+ var _Input = require("./Input");
13
+ var _style = _interopRequireDefault(require("./style"));
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ var _Password = require("antd/es/input/Password");
16
+ Object.keys(_Password).forEach(function (key) {
17
+ if (key === "default" || key === "__esModule") return;
18
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
19
+ if (key in exports && exports[key] === _Password[key]) return;
20
+ Object.defineProperty(exports, key, {
21
+ enumerable: true,
22
+ get: function () {
23
+ return _Password[key];
24
+ }
25
+ });
26
+ });
27
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
29
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
30
+ "use client";
31
+ const Password = /*#__PURE__*/(0, _react.forwardRef)(({
32
+ prefixCls: customizePrefixCls,
33
+ locale: customLocale,
34
+ showCount,
35
+ ...restProps
36
+ }, ref) => {
37
+ const {
38
+ getPrefixCls,
39
+ locale: contextLocale
40
+ } = (0, _react.useContext)(_configProvider.default.ConfigContext);
41
+ const prefixCls = getPrefixCls('input', customizePrefixCls);
42
+ const [wrapCSSVar] = (0, _style.default)(prefixCls);
43
+ const inputLocale = {
44
+ placeholder: contextLocale?.global?.inputPlaceholder || _enUS.default.global?.inputPlaceholder,
45
+ ..._enUS.default.Input,
46
+ ...contextLocale?.Input,
47
+ ...customLocale
48
+ };
49
+ return wrapCSSVar( /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Input.Password, {
50
+ ref: ref,
51
+ prefixCls: customizePrefixCls,
52
+ placeholder: inputLocale.placeholder,
53
+ showCount: showCount === true ? {
54
+ formatter: _Input.showCountFormatter
55
+ } : showCount,
56
+ ...restProps
57
+ }));
79
58
  });
59
+ if (process.env.NODE_ENV !== 'production') {
60
+ Password.displayName = 'Password';
61
+ }
62
+ var _default = exports.default = Password;
@@ -1,79 +1,62 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ "use strict";
29
2
 
30
- // src/input/Search.tsx
31
- var Search_exports = {};
32
- __export(Search_exports, {
33
- default: () => Search_default
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
34
5
  });
35
- module.exports = __toCommonJS(Search_exports);
36
- var import_react = require("react");
37
- var import_antd = require("antd");
38
- var import_config_provider = __toESM(require("../config-provider"));
39
- var import_en_US = __toESM(require("../locale/en-US"));
40
- var import_Input = require("./Input");
41
- var import_style = __toESM(require("./style"));
42
- __reExport(Search_exports, require("antd/es/input/Search"), module.exports);
43
- var import_jsx_runtime = require("react/jsx-runtime");
44
- var Search = (0, import_react.forwardRef)(
45
- ({ prefixCls: customizePrefixCls, locale: customLocale, showCount, ...restProps }, ref) => {
46
- var _a, _b;
47
- const { getPrefixCls, locale: contextLocale } = (0, import_react.useContext)(
48
- import_config_provider.default.ConfigContext
49
- );
50
- const prefixCls = getPrefixCls("input", customizePrefixCls);
51
- const [wrapCSSVar] = (0, import_style.default)(prefixCls);
52
- const inputLocale = {
53
- placeholder: ((_a = contextLocale == null ? void 0 : contextLocale.global) == null ? void 0 : _a.inputPlaceholder) || ((_b = import_en_US.default.global) == null ? void 0 : _b.inputPlaceholder),
54
- ...import_en_US.default.Input,
55
- ...contextLocale == null ? void 0 : contextLocale.Input,
56
- ...customLocale
57
- };
58
- return wrapCSSVar(
59
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
- import_antd.Input.Search,
61
- {
62
- ref,
63
- prefixCls: customizePrefixCls,
64
- placeholder: inputLocale.placeholder,
65
- showCount: showCount === true ? { formatter: import_Input.showCountFormatter } : showCount,
66
- ...restProps
67
- }
68
- )
69
- );
70
- }
71
- );
72
- if (process.env.NODE_ENV !== "production") {
73
- Search.displayName = "Search";
74
- }
75
- var Search_default = Search;
76
- // Annotate the CommonJS export names for ESM import in node:
77
- 0 && (module.exports = {
78
- ...require("antd/es/input/Search")
6
+ var _exportNames = {};
7
+ exports.default = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _antd = require("antd");
10
+ var _configProvider = _interopRequireDefault(require("../config-provider"));
11
+ var _enUS = _interopRequireDefault(require("../locale/en-US"));
12
+ var _Input = require("./Input");
13
+ var _style = _interopRequireDefault(require("./style"));
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ var _Search = require("antd/es/input/Search");
16
+ Object.keys(_Search).forEach(function (key) {
17
+ if (key === "default" || key === "__esModule") return;
18
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
19
+ if (key in exports && exports[key] === _Search[key]) return;
20
+ Object.defineProperty(exports, key, {
21
+ enumerable: true,
22
+ get: function () {
23
+ return _Search[key];
24
+ }
25
+ });
26
+ });
27
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
29
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
30
+ "use client";
31
+ const Search = /*#__PURE__*/(0, _react.forwardRef)(({
32
+ prefixCls: customizePrefixCls,
33
+ locale: customLocale,
34
+ showCount,
35
+ ...restProps
36
+ }, ref) => {
37
+ const {
38
+ getPrefixCls,
39
+ locale: contextLocale
40
+ } = (0, _react.useContext)(_configProvider.default.ConfigContext);
41
+ const prefixCls = getPrefixCls('input', customizePrefixCls);
42
+ const [wrapCSSVar] = (0, _style.default)(prefixCls);
43
+ const inputLocale = {
44
+ placeholder: contextLocale?.global?.inputPlaceholder || _enUS.default.global?.inputPlaceholder,
45
+ ..._enUS.default.Input,
46
+ ...contextLocale?.Input,
47
+ ...customLocale
48
+ };
49
+ return wrapCSSVar( /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Input.Search, {
50
+ ref: ref,
51
+ prefixCls: customizePrefixCls,
52
+ placeholder: inputLocale.placeholder,
53
+ showCount: showCount === true ? {
54
+ formatter: _Input.showCountFormatter
55
+ } : showCount,
56
+ ...restProps
57
+ }));
79
58
  });
59
+ if (process.env.NODE_ENV !== 'production') {
60
+ Search.displayName = 'Search';
61
+ }
62
+ var _default = exports.default = Search;
@@ -1,79 +1,62 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ "use strict";
29
2
 
30
- // src/input/TextArea.tsx
31
- var TextArea_exports = {};
32
- __export(TextArea_exports, {
33
- default: () => TextArea_default
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
34
5
  });
35
- module.exports = __toCommonJS(TextArea_exports);
36
- var import_react = require("react");
37
- var import_antd = require("antd");
38
- var import_config_provider = __toESM(require("../config-provider"));
39
- var import_en_US = __toESM(require("../locale/en-US"));
40
- var import_Input = require("./Input");
41
- var import_style = __toESM(require("./style"));
42
- __reExport(TextArea_exports, require("antd/es/input/TextArea"), module.exports);
43
- var import_jsx_runtime = require("react/jsx-runtime");
44
- var TextArea = (0, import_react.forwardRef)(
45
- ({ prefixCls: customizePrefixCls, locale: customLocale, showCount, ...restProps }, ref) => {
46
- var _a, _b;
47
- const { getPrefixCls, locale: contextLocale } = (0, import_react.useContext)(
48
- import_config_provider.default.ConfigContext
49
- );
50
- const prefixCls = getPrefixCls("input", customizePrefixCls);
51
- const [wrapCSSVar] = (0, import_style.default)(prefixCls);
52
- const inputLocale = {
53
- placeholder: ((_a = contextLocale == null ? void 0 : contextLocale.global) == null ? void 0 : _a.inputPlaceholder) || ((_b = import_en_US.default.global) == null ? void 0 : _b.inputPlaceholder),
54
- ...import_en_US.default.Input,
55
- ...contextLocale == null ? void 0 : contextLocale.Input,
56
- ...customLocale
57
- };
58
- return wrapCSSVar(
59
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
- import_antd.Input.TextArea,
61
- {
62
- ref,
63
- prefixCls: customizePrefixCls,
64
- placeholder: inputLocale.placeholder,
65
- showCount: showCount === true ? { formatter: import_Input.showCountFormatter } : showCount,
66
- ...restProps
67
- }
68
- )
69
- );
70
- }
71
- );
72
- if (process.env.NODE_ENV !== "production") {
73
- TextArea.displayName = "TextArea";
74
- }
75
- var TextArea_default = TextArea;
76
- // Annotate the CommonJS export names for ESM import in node:
77
- 0 && (module.exports = {
78
- ...require("antd/es/input/TextArea")
6
+ var _exportNames = {};
7
+ exports.default = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _antd = require("antd");
10
+ var _configProvider = _interopRequireDefault(require("../config-provider"));
11
+ var _enUS = _interopRequireDefault(require("../locale/en-US"));
12
+ var _Input = require("./Input");
13
+ var _style = _interopRequireDefault(require("./style"));
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ var _TextArea = require("antd/es/input/TextArea");
16
+ Object.keys(_TextArea).forEach(function (key) {
17
+ if (key === "default" || key === "__esModule") return;
18
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
19
+ if (key in exports && exports[key] === _TextArea[key]) return;
20
+ Object.defineProperty(exports, key, {
21
+ enumerable: true,
22
+ get: function () {
23
+ return _TextArea[key];
24
+ }
25
+ });
26
+ });
27
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
29
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
30
+ "use client";
31
+ const TextArea = /*#__PURE__*/(0, _react.forwardRef)(({
32
+ prefixCls: customizePrefixCls,
33
+ locale: customLocale,
34
+ showCount,
35
+ ...restProps
36
+ }, ref) => {
37
+ const {
38
+ getPrefixCls,
39
+ locale: contextLocale
40
+ } = (0, _react.useContext)(_configProvider.default.ConfigContext);
41
+ const prefixCls = getPrefixCls('input', customizePrefixCls);
42
+ const [wrapCSSVar] = (0, _style.default)(prefixCls);
43
+ const inputLocale = {
44
+ placeholder: contextLocale?.global?.inputPlaceholder || _enUS.default.global?.inputPlaceholder,
45
+ ..._enUS.default.Input,
46
+ ...contextLocale?.Input,
47
+ ...customLocale
48
+ };
49
+ return wrapCSSVar( /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Input.TextArea, {
50
+ ref: ref,
51
+ prefixCls: customizePrefixCls,
52
+ placeholder: inputLocale.placeholder,
53
+ showCount: showCount === true ? {
54
+ formatter: _Input.showCountFormatter
55
+ } : showCount,
56
+ ...restProps
57
+ }));
79
58
  });
59
+ if (process.env.NODE_ENV !== 'production') {
60
+ TextArea.displayName = 'TextArea';
61
+ }
62
+ var _default = exports.default = TextArea;
@@ -1,52 +1,33 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ "use strict";
29
2
 
30
- // src/input/index.tsx
31
- var input_exports = {};
32
- __export(input_exports, {
33
- default: () => input_default
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
34
5
  });
35
- module.exports = __toCommonJS(input_exports);
36
- var import_antd = require("antd");
37
- var import_Input = __toESM(require("./Input"));
38
- var import_Search = __toESM(require("./Search"));
39
- var import_Password = __toESM(require("./Password"));
40
- var import_TextArea = __toESM(require("./TextArea"));
41
- __reExport(input_exports, require("antd/es/input"), module.exports);
42
- var Input = import_Input.default;
43
- Input.Group = import_antd.Input.Group;
44
- Input.Search = import_Search.default;
45
- Input.TextArea = import_TextArea.default;
46
- Input.Password = import_Password.default;
47
- Input.OTP = import_antd.Input.OTP;
48
- var input_default = Input;
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
51
- ...require("antd/es/input")
6
+ var _exportNames = {};
7
+ exports.default = void 0;
8
+ var _antd = require("antd");
9
+ var _Input = _interopRequireDefault(require("./Input"));
10
+ var _Search = _interopRequireDefault(require("./Search"));
11
+ var _Password = _interopRequireDefault(require("./Password"));
12
+ var _TextArea = _interopRequireDefault(require("./TextArea"));
13
+ var _input = require("antd/es/input");
14
+ Object.keys(_input).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] === _input[key]) return;
18
+ Object.defineProperty(exports, key, {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _input[key];
22
+ }
23
+ });
52
24
  });
25
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
26
+ "use client";
27
+ const Input = _Input.default;
28
+ Input.Group = _antd.Input.Group;
29
+ Input.Search = _Search.default;
30
+ Input.TextArea = _TextArea.default;
31
+ Input.Password = _Password.default;
32
+ Input.OTP = _antd.Input.OTP;
33
+ var _default = exports.default = Input;
@@ -1,31 +1,14 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ "use strict";
18
2
 
19
- // src/input/style/index.ts
20
- var style_exports = {};
21
- __export(style_exports, {
22
- default: () => style_default,
23
- genInputStyle: () => genInputStyle
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
24
5
  });
25
- module.exports = __toCommonJS(style_exports);
26
- var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
27
- var genInputStyle = (token) => {
28
- const { componentCls } = token;
6
+ exports.genInputStyle = exports.default = void 0;
7
+ var _genComponentStyleHook = require("../../_util/genComponentStyleHook");
8
+ const genInputStyle = token => {
9
+ const {
10
+ componentCls
11
+ } = token;
29
12
  return {
30
13
  [`${componentCls}-affix-wrapper`]: {
31
14
  [`&:not(${componentCls}-disabled)`]: {
@@ -44,8 +27,12 @@ var genInputStyle = (token) => {
44
27
  }
45
28
  };
46
29
  };
47
- var genSearchInputStyle = (token) => {
48
- const { componentCls, antCls } = token;
30
+ exports.genInputStyle = genInputStyle;
31
+ const genSearchInputStyle = token => {
32
+ const {
33
+ componentCls,
34
+ antCls
35
+ } = token;
49
36
  const searchPrefixCls = `${componentCls}-search`;
50
37
  return {
51
38
  [searchPrefixCls]: {
@@ -53,10 +40,10 @@ var genSearchInputStyle = (token) => {
53
40
  [`> ${componentCls}-group-addon:last-child`]: {
54
41
  [`${searchPrefixCls}-button:not(${antCls}-btn-color-primary)`]: {
55
42
  color: token.colorIcon,
56
- "&:not([disabled]):hover": {
43
+ '&:not([disabled]):hover': {
57
44
  color: token.colorIconHover
58
45
  },
59
- "&:active": {
46
+ '&:active': {
60
47
  color: token.colorIconHover
61
48
  }
62
49
  }
@@ -65,10 +52,6 @@ var genSearchInputStyle = (token) => {
65
52
  }
66
53
  };
67
54
  };
68
- var style_default = (0, import_genComponentStyleHook.genStyleHooks)("Input", (token) => {
55
+ var _default = exports.default = (0, _genComponentStyleHook.genStyleHooks)('Input', token => {
69
56
  return [genInputStyle(token), genSearchInputStyle(token)];
70
- });
71
- // Annotate the CommonJS export names for ESM import in node:
72
- 0 && (module.exports = {
73
- genInputStyle
74
- });
57
+ });