tntd 2.8.0-beta.3 → 2.8.0-beta.5

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 (281) hide show
  1. package/es/alert/alert.js +70 -0
  2. package/es/alert/alert.js.map +1 -0
  3. package/es/alert/alert.less +128 -0
  4. package/es/breadcrumb/style/index.less +2 -1
  5. package/es/button/button.less +72 -0
  6. package/es/cascader/style/index.less +2 -2
  7. package/es/checkbox/check.png +0 -0
  8. package/es/checkbox/checkbox.js +48 -0
  9. package/es/checkbox/checkbox.js.map +1 -0
  10. package/es/checkbox/checkbox.less +69 -0
  11. package/es/collapse/style/index.less +2 -1
  12. package/es/color-picker/index.less +4 -1
  13. package/es/date-picker/DatePicker.js +101 -0
  14. package/es/date-picker/DatePicker.js.map +1 -0
  15. package/es/date-picker/index.less +294 -0
  16. package/es/date-picker/style/Picker.less +2 -1
  17. package/es/drawer/index.less +154 -0
  18. package/es/drawer/style/drawer.less +4 -2
  19. package/es/dropdown/style/index.less +2 -1
  20. package/es/form/form.less +36 -0
  21. package/es/grid/RowContext.js +3 -0
  22. package/es/grid/RowContext.js.map +1 -0
  23. package/es/grid/col.js +103 -0
  24. package/es/grid/col.js.map +1 -0
  25. package/es/grid/hooks/useBreakpoint.js +18 -0
  26. package/es/grid/hooks/useBreakpoint.js.map +1 -0
  27. package/es/grid/row.js +154 -0
  28. package/es/grid/row.js.map +1 -0
  29. package/es/grid/style/rtl.less +69 -0
  30. package/es/icon/index.js +2 -1
  31. package/es/icon/index.js.map +1 -1
  32. package/es/icon/style/index.js +2 -1
  33. package/es/icon/style/index.js.map +1 -1
  34. package/es/icon/style/style.less +6 -0
  35. package/es/index.js +2 -0
  36. package/es/index.js.map +1 -1
  37. package/es/input/style/mixin.less +1 -1
  38. package/es/input-number/inputNumber.js +29 -0
  39. package/es/input-number/inputNumber.js.map +1 -0
  40. package/es/input-number/inputNumber.less +12 -0
  41. package/es/modal/index.less +36 -0
  42. package/es/modal/style/confirm.less +1 -1
  43. package/es/modal/style/modal.less +5 -1
  44. package/es/notification/assets/index.js +2 -0
  45. package/es/notification/assets/index.js.map +1 -0
  46. package/es/notification/assets/svg-error-tip.js +145 -0
  47. package/es/notification/assets/svg-error-tip.js.map +1 -0
  48. package/es/notification/assets/svg-success-tip.js +162 -0
  49. package/es/notification/assets/svg-success-tip.js.map +1 -0
  50. package/es/notification/notification.js +80 -0
  51. package/es/notification/notification.js.map +1 -0
  52. package/es/notification/notification.less +59 -0
  53. package/es/notification/style/index.less +4 -2
  54. package/es/popconfirm/index.less +32 -0
  55. package/es/popconfirm/popconfirm.js +43 -0
  56. package/es/popconfirm/popconfirm.js.map +1 -0
  57. package/es/popover/index.less +57 -0
  58. package/es/popover/popover.js +34 -0
  59. package/es/popover/popover.js.map +1 -0
  60. package/es/popover/style/index.less +2 -1
  61. package/es/progress/progress.js +132 -0
  62. package/es/progress/progress.js.map +1 -0
  63. package/es/progress/progress.less +82 -0
  64. package/es/query-form/Field/Composition/FieldPopover.js +284 -0
  65. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  66. package/es/query-form/Field/Composition/FieldPopover.less +35 -0
  67. package/es/query-form/Field/Composition/Select.js +108 -0
  68. package/es/query-form/Field/Composition/Select.js.map +1 -0
  69. package/es/query-form/Field/Composition/index.js +275 -0
  70. package/es/query-form/Field/Composition/index.js.map +1 -0
  71. package/es/query-form/Field/Composition/index.less +106 -0
  72. package/es/query-form/Field/Composition/utils.js +19 -0
  73. package/es/query-form/Field/Composition/utils.js.map +1 -0
  74. package/es/radio/radio.js +57 -0
  75. package/es/radio/radio.js.map +1 -0
  76. package/es/radio/radio.less +43 -0
  77. package/es/select/style/index.less +2 -1
  78. package/es/steps/assets/background_left.svg +12 -0
  79. package/es/steps/assets/background_right.svg +12 -0
  80. package/es/steps/assets/horizontal_line.svg +3 -0
  81. package/es/steps/assets/vertical_line.svg +3 -0
  82. package/es/steps/stepStyle/icon.less +51 -0
  83. package/es/steps/stepStyle/progress-dot.less +10 -0
  84. package/es/steps/stepStyle/variables.less +8 -0
  85. package/es/steps/stepStyle/vertical.less +41 -0
  86. package/es/style/mixins/iconfont.less +3 -2
  87. package/es/style/themes/default.less +3 -2
  88. package/es/switch/index.less +46 -0
  89. package/es/table-container/index.js +12 -0
  90. package/es/table-container/index.js.map +1 -0
  91. package/es/table-container/index.less +12 -0
  92. package/es/tabs/tabs.less +116 -0
  93. package/es/tabs-container/index.js +12 -0
  94. package/es/tabs-container/index.js.map +1 -0
  95. package/es/tabs-container/index.less +51 -0
  96. package/es/tag/color.less +43 -0
  97. package/es/tag/tag.js +171 -0
  98. package/es/tag/tag.js.map +1 -0
  99. package/es/tag/tag.less +193 -0
  100. package/es/time-picker/TimePicker.js +36 -0
  101. package/es/time-picker/TimePicker.js.map +1 -0
  102. package/es/time-picker/index.less +38 -0
  103. package/es/time-picker/style/index.less +2 -1
  104. package/es/timeline/style/index.less +1 -1
  105. package/es/tntd-action/Action.js +66 -0
  106. package/es/tntd-action/Action.js.map +1 -0
  107. package/es/tntd-action/index.less +53 -0
  108. package/es/tooltip/index.less +29 -0
  109. package/es/tooltip/tooltip.js +33 -0
  110. package/es/tooltip/tooltip.js.map +1 -0
  111. package/lib/alert/alert.d.ts +12 -0
  112. package/lib/alert/alert.d.ts.map +1 -0
  113. package/lib/alert/alert.js +92 -0
  114. package/lib/alert/alert.js.map +1 -0
  115. package/lib/alert/alert.less +128 -0
  116. package/lib/breadcrumb/style/index.less +2 -1
  117. package/lib/button/button.less +72 -0
  118. package/lib/cascader/style/index.less +2 -2
  119. package/lib/checkbox/check.png +0 -0
  120. package/lib/checkbox/checkbox.d.ts +16 -0
  121. package/lib/checkbox/checkbox.d.ts.map +1 -0
  122. package/lib/checkbox/checkbox.js +65 -0
  123. package/lib/checkbox/checkbox.js.map +1 -0
  124. package/lib/checkbox/checkbox.less +69 -0
  125. package/lib/collapse/style/index.less +2 -1
  126. package/lib/color-picker/index.less +4 -1
  127. package/lib/date-picker/DatePicker.d.ts +21 -0
  128. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  129. package/lib/date-picker/DatePicker.js +128 -0
  130. package/lib/date-picker/DatePicker.js.map +1 -0
  131. package/lib/date-picker/index.less +294 -0
  132. package/lib/date-picker/style/Picker.less +2 -1
  133. package/lib/drawer/index.less +154 -0
  134. package/lib/drawer/style/drawer.less +4 -2
  135. package/lib/dropdown/style/index.less +2 -1
  136. package/lib/form/form.less +36 -0
  137. package/lib/grid/RowContext.d.ts +9 -0
  138. package/lib/grid/RowContext.d.ts.map +1 -0
  139. package/lib/grid/RowContext.js +9 -0
  140. package/lib/grid/RowContext.js.map +1 -0
  141. package/lib/grid/col.d.ts +29 -0
  142. package/lib/grid/col.d.ts.map +1 -0
  143. package/lib/grid/col.js +100 -0
  144. package/lib/grid/col.js.map +1 -0
  145. package/lib/grid/hooks/useBreakpoint.d.ts +4 -0
  146. package/lib/grid/hooks/useBreakpoint.d.ts.map +1 -0
  147. package/lib/grid/hooks/useBreakpoint.js +28 -0
  148. package/lib/grid/hooks/useBreakpoint.js.map +1 -0
  149. package/lib/grid/row.d.ts +21 -0
  150. package/lib/grid/row.d.ts.map +1 -0
  151. package/lib/grid/row.js +183 -0
  152. package/lib/grid/row.js.map +1 -0
  153. package/lib/grid/style/rtl.less +69 -0
  154. package/lib/icon/index.d.ts +1 -0
  155. package/lib/icon/index.d.ts.map +1 -1
  156. package/lib/icon/index.js +2 -1
  157. package/lib/icon/index.js.map +1 -1
  158. package/lib/icon/style/index.d.ts +1 -0
  159. package/lib/icon/style/index.d.ts.map +1 -1
  160. package/lib/icon/style/index.js +2 -1
  161. package/lib/icon/style/index.js.map +1 -1
  162. package/lib/icon/style/style.less +6 -0
  163. package/lib/index.d.ts +2 -0
  164. package/lib/index.d.ts.map +1 -1
  165. package/lib/index.js +14 -0
  166. package/lib/index.js.map +1 -1
  167. package/lib/input/style/mixin.less +1 -1
  168. package/lib/input-number/inputNumber.d.ts +10 -0
  169. package/lib/input-number/inputNumber.d.ts.map +1 -0
  170. package/lib/input-number/inputNumber.js +48 -0
  171. package/lib/input-number/inputNumber.js.map +1 -0
  172. package/lib/input-number/inputNumber.less +12 -0
  173. package/lib/modal/index.less +36 -0
  174. package/lib/modal/style/confirm.less +1 -1
  175. package/lib/modal/style/modal.less +5 -1
  176. package/lib/notification/assets/index.d.ts +3 -0
  177. package/lib/notification/assets/index.d.ts.map +1 -0
  178. package/lib/notification/assets/index.js +20 -0
  179. package/lib/notification/assets/index.js.map +1 -0
  180. package/lib/notification/assets/svg-error-tip.d.ts +4 -0
  181. package/lib/notification/assets/svg-error-tip.d.ts.map +1 -0
  182. package/lib/notification/assets/svg-error-tip.js +154 -0
  183. package/lib/notification/assets/svg-error-tip.js.map +1 -0
  184. package/lib/notification/assets/svg-success-tip.d.ts +4 -0
  185. package/lib/notification/assets/svg-success-tip.d.ts.map +1 -0
  186. package/lib/notification/assets/svg-success-tip.js +171 -0
  187. package/lib/notification/assets/svg-success-tip.js.map +1 -0
  188. package/lib/notification/notification.d.ts +9 -0
  189. package/lib/notification/notification.d.ts.map +1 -0
  190. package/lib/notification/notification.js +105 -0
  191. package/lib/notification/notification.js.map +1 -0
  192. package/lib/notification/notification.less +59 -0
  193. package/lib/notification/style/index.less +4 -2
  194. package/lib/popconfirm/index.less +32 -0
  195. package/lib/popconfirm/popconfirm.d.ts +8 -0
  196. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  197. package/lib/popconfirm/popconfirm.js +61 -0
  198. package/lib/popconfirm/popconfirm.js.map +1 -0
  199. package/lib/popover/index.less +57 -0
  200. package/lib/popover/popover.d.ts +14 -0
  201. package/lib/popover/popover.d.ts.map +1 -0
  202. package/lib/popover/popover.js +55 -0
  203. package/lib/popover/popover.js.map +1 -0
  204. package/lib/popover/style/index.less +2 -1
  205. package/lib/progress/progress.d.ts +12 -0
  206. package/lib/progress/progress.d.ts.map +1 -0
  207. package/lib/progress/progress.js +148 -0
  208. package/lib/progress/progress.js.map +1 -0
  209. package/lib/progress/progress.less +82 -0
  210. package/lib/query-form/Field/Composition/FieldPopover.d.ts +17 -0
  211. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  212. package/lib/query-form/Field/Composition/FieldPopover.js +319 -0
  213. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  214. package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
  215. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  216. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  217. package/lib/query-form/Field/Composition/Select.js +132 -0
  218. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  219. package/lib/query-form/Field/Composition/index.d.ts +14 -0
  220. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  221. package/lib/query-form/Field/Composition/index.js +330 -0
  222. package/lib/query-form/Field/Composition/index.js.map +1 -0
  223. package/lib/query-form/Field/Composition/index.less +106 -0
  224. package/lib/query-form/Field/Composition/utils.d.ts +6 -0
  225. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  226. package/lib/query-form/Field/Composition/utils.js +27 -0
  227. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  228. package/lib/radio/radio.d.ts +17 -0
  229. package/lib/radio/radio.d.ts.map +1 -0
  230. package/lib/radio/radio.js +75 -0
  231. package/lib/radio/radio.js.map +1 -0
  232. package/lib/radio/radio.less +43 -0
  233. package/lib/select/style/index.less +2 -1
  234. package/lib/steps/assets/background_left.svg +12 -0
  235. package/lib/steps/assets/background_right.svg +12 -0
  236. package/lib/steps/assets/horizontal_line.svg +3 -0
  237. package/lib/steps/assets/vertical_line.svg +3 -0
  238. package/lib/steps/stepStyle/icon.less +51 -0
  239. package/lib/steps/stepStyle/progress-dot.less +10 -0
  240. package/lib/steps/stepStyle/variables.less +8 -0
  241. package/lib/steps/stepStyle/vertical.less +41 -0
  242. package/lib/style/mixins/iconfont.less +3 -2
  243. package/lib/style/themes/default.less +3 -2
  244. package/lib/switch/index.less +46 -0
  245. package/lib/table-container/index.d.ts +3 -0
  246. package/lib/table-container/index.d.ts.map +1 -0
  247. package/lib/table-container/index.js +21 -0
  248. package/lib/table-container/index.js.map +1 -0
  249. package/lib/table-container/index.less +12 -0
  250. package/lib/tabs/tabs.less +116 -0
  251. package/lib/tabs-container/index.d.ts +3 -0
  252. package/lib/tabs-container/index.d.ts.map +1 -0
  253. package/lib/tabs-container/index.js +21 -0
  254. package/lib/tabs-container/index.js.map +1 -0
  255. package/lib/tabs-container/index.less +51 -0
  256. package/lib/tag/color.less +43 -0
  257. package/lib/tag/tag.d.ts +41 -0
  258. package/lib/tag/tag.d.ts.map +1 -0
  259. package/lib/tag/tag.js +183 -0
  260. package/lib/tag/tag.js.map +1 -0
  261. package/lib/tag/tag.less +193 -0
  262. package/lib/time-picker/TimePicker.d.ts +9 -0
  263. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  264. package/lib/time-picker/TimePicker.js +55 -0
  265. package/lib/time-picker/TimePicker.js.map +1 -0
  266. package/lib/time-picker/index.less +38 -0
  267. package/lib/time-picker/style/index.less +2 -1
  268. package/lib/timeline/style/index.less +1 -1
  269. package/lib/tntd-action/Action.d.ts +6 -0
  270. package/lib/tntd-action/Action.d.ts.map +1 -0
  271. package/lib/tntd-action/Action.js +86 -0
  272. package/lib/tntd-action/Action.js.map +1 -0
  273. package/lib/tntd-action/index.less +53 -0
  274. package/lib/tooltip/index.less +29 -0
  275. package/lib/tooltip/tooltip.d.ts +9 -0
  276. package/lib/tooltip/tooltip.d.ts.map +1 -0
  277. package/lib/tooltip/tooltip.js +53 -0
  278. package/lib/tooltip/tooltip.js.map +1 -0
  279. package/package.json +3 -3
  280. package/themes/default/variables.less +2 -0
  281. package/themes/default/variablesVar.less +2 -0
@@ -0,0 +1,53 @@
1
+ .tnt-action {
2
+ position: fixed;
3
+ bottom: 100px;
4
+ width: @tnt-action-width;
5
+ left: calc(50vw - @tnt-action-width / 2);
6
+ padding: 10px 16px;
7
+ background-color: @text-color;
8
+ border-radius: @border-radius-base;
9
+ z-index: 200;
10
+ &-text {
11
+ color: @white;
12
+ margin-left: 20px;
13
+ font-size: 14px;
14
+ .num {
15
+ display: inline-block;
16
+ width: 16px;
17
+ height: 16px;
18
+ background: #454f64;
19
+ border-radius: 8px;
20
+ font-size: 10px;
21
+ margin-right: 4px;
22
+ vertical-align: text-bottom;
23
+ text-align: center;
24
+ }
25
+ }
26
+ > .tnt-btn-tertiary {
27
+ opacity: 0.5;
28
+ background: #454f64;
29
+ color: @white;
30
+ border-width: 0;
31
+ width: @tnt-action-close-width;
32
+ height: @tnt-action-close-width;
33
+ min-width: @tnt-action-close-width;
34
+ line-height: @tnt-action-close-width;
35
+ margin-top: 4px;
36
+ font-size: 14px;
37
+ &:hover {
38
+ opacity: 0.8;
39
+ }
40
+ }
41
+ .fr {
42
+ float: right;
43
+ .ant-btn {
44
+ margin-left: 10px;
45
+ background: rgba(69, 79, 100, 0.5);
46
+ color: @white;
47
+ border-width: 0;
48
+ &:hover {
49
+ background: rgba(69, 79, 100, 0.8);
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,29 @@
1
+ @tooltip-prefix-cls: ~'@{ant-prefix}-tooltip';
2
+
3
+ // Base class
4
+ .tnt-tooltip.@{tooltip-prefix-cls} {
5
+
6
+ &-light {
7
+ .@{tooltip-prefix-cls}-inner {
8
+ background-color: @tooltip-bg-light;
9
+ color: @tooltip-color-light;
10
+ }
11
+
12
+ .@{tooltip-prefix-cls}-arrow {
13
+ &::before {
14
+ background-color: @tooltip-bg-light;
15
+ }
16
+ }
17
+ }
18
+
19
+ // Arrows
20
+ &-arrow {
21
+ border-radius: 1px;
22
+ }
23
+ }
24
+
25
+ .@{tooltip-prefix-cls}-arrow-hidden {
26
+ .@{tooltip-prefix-cls}-arrow {
27
+ display: none;
28
+ }
29
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { TooltipProps } from 'antd/lib/tooltip';
3
+ export * from 'antd/lib/tooltip';
4
+ declare const Tooltip: React.FC<TooltipProps & {
5
+ theme?: string;
6
+ hiddenArrow?: boolean;
7
+ }>;
8
+ export default Tooltip;
9
+ //# sourceMappingURL=tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAKnD,cAAc,iBAAiB,CAAA;AAK/B,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAuB/E,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ var _exportNames = {};
8
+ exports["default"] = void 0;
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _configProvider = require("antd/lib/config-provider");
11
+ var _tooltip = _interopRequireWildcard(require("antd/lib/tooltip"));
12
+ Object.keys(_tooltip).forEach(function (key) {
13
+ if (key === "default" || key === "__esModule") return;
14
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
15
+ if (key in exports && exports[key] === _tooltip[key]) return;
16
+ Object.defineProperty(exports, key, {
17
+ enumerable: true,
18
+ get: function get() {
19
+ return _tooltip[key];
20
+ }
21
+ });
22
+ });
23
+ var _classnames = _interopRequireDefault(require("classnames"));
24
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
+ 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 && {}.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; }
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
28
+ var t = {};
29
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
30
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
32
+ }
33
+ return t;
34
+ };
35
+ var themeMap = function themeMap(prefixCls, themeColor) {
36
+ return "".concat(prefixCls, "-").concat(themeColor);
37
+ };
38
+ var Tooltip = function Tooltip(props) {
39
+ var overlayClassName = props.overlayClassName,
40
+ _props$theme = props.theme,
41
+ theme = _props$theme === void 0 ? '' : _props$theme,
42
+ _props$hiddenArrow = props.hiddenArrow,
43
+ hiddenArrow = _props$hiddenArrow === void 0 ? false : _props$hiddenArrow,
44
+ restProps = __rest(props, ["overlayClassName", "theme", "hiddenArrow"]);
45
+ return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
46
+ var getPrefixCls = _ref.getPrefixCls;
47
+ var prefixCls = getPrefixCls('tooltip');
48
+ return _react["default"].createElement(_tooltip["default"], Object.assign({
49
+ overlayClassName: (0, _classnames["default"])(prefixCls, 'tnt-tooltip', themeMap(prefixCls, theme), hiddenArrow ? prefixCls + '-arrow-hidden' : '', overlayClassName)
50
+ }, restProps));
51
+ });
52
+ };
53
+ var _default = exports["default"] = Tooltip;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../src/tooltip/tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,6DAAwD;AACxD,8DAAyC;AACzC,4DAAmC;AAEnC,kDAA+B;AAC/B,MAAM,QAAQ,GAAG,CAAC,SAAiB,EAAE,UAAkB,EAAE,EAAE;IACzD,OAAO,GAAG,SAAS,IAAI,UAAU,EAAE,CAAA;AACrC,CAAC,CAAA;AAED,MAAM,OAAO,GAAuE,CAAC,KAAK,EAAE,EAAE;IAC5F,MAAM,EAAE,gBAAgB,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,GAAG,KAAK,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAA3E,4CAAmE,CAAQ,CAAA;IAEjF,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAA;QAEzC,OAAO,CACL,8BAAC,iBAAW,kBACV,gBAAgB,EAAE,IAAA,oBAAU,EAC1B,SAAS,EACT,aAAa,EACb,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,EAC1B,WAAW,CAAC,CAAC,CAAC,SAAS,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,EAC9C,gBAAgB,CACjB,IACG,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,OAAO,CAAA","sourcesContent":["import React from 'react'\nimport type { TooltipProps } from 'antd/lib/tooltip'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport AntdTooltip from 'antd/lib/tooltip'\nimport classNames from 'classnames'\n\nexport * from 'antd/lib/tooltip'\nconst themeMap = (prefixCls: string, themeColor: string) => {\n return `${prefixCls}-${themeColor}`\n}\n\nconst Tooltip: React.FC<TooltipProps & { theme?: string; hiddenArrow?: boolean }> = (props) => {\n const { overlayClassName, theme = '', hiddenArrow = false, ...restProps } = props\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('tooltip')\n\n return (\n <AntdTooltip\n overlayClassName={classNames(\n prefixCls,\n 'tnt-tooltip',\n themeMap(prefixCls, theme),\n hiddenArrow ? prefixCls + '-arrow-hidden' : '',\n overlayClassName\n )}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport default Tooltip\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tntd",
3
- "version": "2.8.0-beta.3",
3
+ "version": "2.8.0-beta.5",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "start": "heft start --storybook",
@@ -36,7 +36,7 @@
36
36
  "rc-segmented": "~2.2.2",
37
37
  "rc-field-form": "~1.34.0",
38
38
  "scroll-into-view-if-needed": "^2.2.25",
39
- "@tntd/icons": "^1.0.0",
39
+ "@tntd/icons": "^1.0.1",
40
40
  "@ant-design/colors": "^3.1.0"
41
41
  },
42
42
  "devDependencies": {
@@ -105,4 +105,4 @@
105
105
  "main": "lib/index.js",
106
106
  "module": "es/index.js",
107
107
  "typings": "lib/index.d.ts"
108
- }
108
+ }
@@ -61,6 +61,8 @@
61
61
  @font-size-base: 14px;
62
62
  @font-size-lg: @font-size-base + 2px;
63
63
  @font-size-sm: 12px;
64
+ @font-size-xl: @font-size-base + 6px;
65
+ @line-height-xl: 1.4;
64
66
  // @heading-1-size: ceil(@font-size-base * 2.71);
65
67
  // @heading-2-size: ceil(@font-size-base * 2.14);
66
68
  // @heading-3-size: ceil(@font-size-base * 1.71);
@@ -62,6 +62,8 @@
62
62
  @font-size-base: 14px;
63
63
  @font-size-lg: @font-size-base + 2px;
64
64
  @font-size-sm: 12px;
65
+ @font-size-xl: @font-size-base + 6px;
66
+ @line-height-xl: 1.4;
65
67
  // @heading-1-size: ceil(@font-size-base * 2.71);
66
68
  // @heading-2-size: ceil(@font-size-base * 2.14);
67
69
  // @heading-3-size: ceil(@font-size-base * 1.71);