tntd 2.8.47 → 2.8.49

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 (177) hide show
  1. package/es/modal/modal.js +2 -2
  2. package/es/modal/modal.js.map +1 -1
  3. package/es/modal/style/modal.less +14 -2
  4. package/lib/modal/modal.js +2 -2
  5. package/lib/modal/modal.js.map +1 -1
  6. package/lib/modal/style/modal.less +14 -2
  7. package/package.json +1 -1
  8. package/es/alert/alert.js +0 -147
  9. package/es/alert/alert.js.map +0 -1
  10. package/es/alert/alert.less +0 -128
  11. package/es/cascader/cascader.js +0 -84
  12. package/es/cascader/cascader.js.map +0 -1
  13. package/es/cascader/cascader.less +0 -16
  14. package/es/checkbox/check.png +0 -0
  15. package/es/checkbox/checkbox.js +0 -100
  16. package/es/checkbox/checkbox.js.map +0 -1
  17. package/es/checkbox/checkbox.less +0 -69
  18. package/es/date-picker/DatePicker.js +0 -163
  19. package/es/date-picker/DatePicker.js.map +0 -1
  20. package/es/date-picker/index.less +0 -294
  21. package/es/input-number/inputNumber.js +0 -89
  22. package/es/input-number/inputNumber.js.map +0 -1
  23. package/es/input-number/inputNumber.less +0 -12
  24. package/es/modal/index.less +0 -52
  25. package/es/popconfirm/index.less +0 -32
  26. package/es/popconfirm/popconfirm.js +0 -96
  27. package/es/popconfirm/popconfirm.js.map +0 -1
  28. package/es/popover/index.less +0 -57
  29. package/es/popover/popover.js +0 -90
  30. package/es/popover/popover.js.map +0 -1
  31. package/es/progress/progress.js +0 -179
  32. package/es/progress/progress.js.map +0 -1
  33. package/es/progress/progress.less +0 -82
  34. package/es/query-form/Field/Composition/FieldPopover.js +0 -466
  35. package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
  36. package/es/query-form/Field/Composition/FieldPopover.less +0 -41
  37. package/es/query-form/Field/Composition/Select.js +0 -260
  38. package/es/query-form/Field/Composition/Select.js.map +0 -1
  39. package/es/query-form/Field/Composition/SelectInput.js +0 -112
  40. package/es/query-form/Field/Composition/SelectInput.js.map +0 -1
  41. package/es/query-form/Field/Composition/ValueTag.js +0 -241
  42. package/es/query-form/Field/Composition/ValueTag.js.map +0 -1
  43. package/es/query-form/Field/Composition/index.js +0 -448
  44. package/es/query-form/Field/Composition/index.js.map +0 -1
  45. package/es/query-form/Field/Composition/index.less +0 -167
  46. package/es/query-form/Field/Composition/utils.js +0 -173
  47. package/es/query-form/Field/Composition/utils.js.map +0 -1
  48. package/es/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  49. package/es/query-form-backup/Field/Composition/index.less +0 -114
  50. package/es/query-form-backup/index.less +0 -90
  51. package/es/query-form-v2/index.less +0 -133
  52. package/es/radio/radio.js +0 -110
  53. package/es/radio/radio.js.map +0 -1
  54. package/es/radio/radio.less +0 -43
  55. package/es/spin/spin.js +0 -79
  56. package/es/spin/spin.js.map +0 -1
  57. package/es/spin/spin.less +0 -9
  58. package/es/steps/assets/background_left.svg +0 -12
  59. package/es/steps/assets/background_right.svg +0 -12
  60. package/es/steps/assets/horizontal_line.svg +0 -3
  61. package/es/steps/assets/vertical_line.svg +0 -3
  62. package/es/steps/stepStyle/icon.less +0 -51
  63. package/es/steps/stepStyle/progress-dot.less +0 -10
  64. package/es/steps/stepStyle/variables.less +0 -8
  65. package/es/steps/stepStyle/vertical.less +0 -41
  66. package/es/switch/index.less +0 -45
  67. package/es/tabs/tabs.less +0 -125
  68. package/es/time-picker/TimePicker.js +0 -90
  69. package/es/time-picker/TimePicker.js.map +0 -1
  70. package/es/time-picker/index.less +0 -38
  71. package/es/tntd-action/Action.js +0 -218
  72. package/es/tntd-action/Action.js.map +0 -1
  73. package/es/tntd-action/index.less +0 -61
  74. package/es/tntd-select/index.less +0 -7
  75. package/lib/alert/alert.d.ts +0 -12
  76. package/lib/alert/alert.d.ts.map +0 -1
  77. package/lib/alert/alert.js +0 -147
  78. package/lib/alert/alert.js.map +0 -1
  79. package/lib/alert/alert.less +0 -128
  80. package/lib/cascader/cascader.d.ts +0 -10
  81. package/lib/cascader/cascader.d.ts.map +0 -1
  82. package/lib/cascader/cascader.js +0 -84
  83. package/lib/cascader/cascader.js.map +0 -1
  84. package/lib/cascader/cascader.less +0 -16
  85. package/lib/checkbox/check.png +0 -0
  86. package/lib/checkbox/checkbox.d.ts +0 -16
  87. package/lib/checkbox/checkbox.d.ts.map +0 -1
  88. package/lib/checkbox/checkbox.js +0 -100
  89. package/lib/checkbox/checkbox.js.map +0 -1
  90. package/lib/checkbox/checkbox.less +0 -69
  91. package/lib/date-picker/DatePicker.d.ts +0 -21
  92. package/lib/date-picker/DatePicker.d.ts.map +0 -1
  93. package/lib/date-picker/DatePicker.js +0 -163
  94. package/lib/date-picker/DatePicker.js.map +0 -1
  95. package/lib/date-picker/index.less +0 -294
  96. package/lib/input-number/inputNumber.d.ts +0 -10
  97. package/lib/input-number/inputNumber.d.ts.map +0 -1
  98. package/lib/input-number/inputNumber.js +0 -89
  99. package/lib/input-number/inputNumber.js.map +0 -1
  100. package/lib/input-number/inputNumber.less +0 -12
  101. package/lib/modal/index.less +0 -52
  102. package/lib/popconfirm/index.less +0 -32
  103. package/lib/popconfirm/popconfirm.d.ts +0 -8
  104. package/lib/popconfirm/popconfirm.d.ts.map +0 -1
  105. package/lib/popconfirm/popconfirm.js +0 -96
  106. package/lib/popconfirm/popconfirm.js.map +0 -1
  107. package/lib/popover/index.less +0 -57
  108. package/lib/popover/popover.d.ts +0 -14
  109. package/lib/popover/popover.d.ts.map +0 -1
  110. package/lib/popover/popover.js +0 -90
  111. package/lib/popover/popover.js.map +0 -1
  112. package/lib/progress/progress.d.ts +0 -12
  113. package/lib/progress/progress.d.ts.map +0 -1
  114. package/lib/progress/progress.js +0 -179
  115. package/lib/progress/progress.js.map +0 -1
  116. package/lib/progress/progress.less +0 -82
  117. package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
  118. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
  119. package/lib/query-form/Field/Composition/FieldPopover.js +0 -466
  120. package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
  121. package/lib/query-form/Field/Composition/FieldPopover.less +0 -41
  122. package/lib/query-form/Field/Composition/Select.d.ts +0 -4
  123. package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
  124. package/lib/query-form/Field/Composition/Select.js +0 -260
  125. package/lib/query-form/Field/Composition/Select.js.map +0 -1
  126. package/lib/query-form/Field/Composition/SelectInput.d.ts +0 -3
  127. package/lib/query-form/Field/Composition/SelectInput.d.ts.map +0 -1
  128. package/lib/query-form/Field/Composition/SelectInput.js +0 -112
  129. package/lib/query-form/Field/Composition/SelectInput.js.map +0 -1
  130. package/lib/query-form/Field/Composition/ValueTag.d.ts +0 -13
  131. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +0 -1
  132. package/lib/query-form/Field/Composition/ValueTag.js +0 -241
  133. package/lib/query-form/Field/Composition/ValueTag.js.map +0 -1
  134. package/lib/query-form/Field/Composition/index.d.ts +0 -15
  135. package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
  136. package/lib/query-form/Field/Composition/index.js +0 -448
  137. package/lib/query-form/Field/Composition/index.js.map +0 -1
  138. package/lib/query-form/Field/Composition/index.less +0 -167
  139. package/lib/query-form/Field/Composition/utils.d.ts +0 -21
  140. package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
  141. package/lib/query-form/Field/Composition/utils.js +0 -173
  142. package/lib/query-form/Field/Composition/utils.js.map +0 -1
  143. package/lib/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  144. package/lib/query-form-backup/Field/Composition/index.less +0 -114
  145. package/lib/query-form-backup/index.less +0 -90
  146. package/lib/query-form-v2/index.less +0 -133
  147. package/lib/radio/radio.d.ts +0 -17
  148. package/lib/radio/radio.d.ts.map +0 -1
  149. package/lib/radio/radio.js +0 -110
  150. package/lib/radio/radio.js.map +0 -1
  151. package/lib/radio/radio.less +0 -43
  152. package/lib/spin/spin.d.ts +0 -9
  153. package/lib/spin/spin.d.ts.map +0 -1
  154. package/lib/spin/spin.js +0 -79
  155. package/lib/spin/spin.js.map +0 -1
  156. package/lib/spin/spin.less +0 -9
  157. package/lib/steps/assets/background_left.svg +0 -12
  158. package/lib/steps/assets/background_right.svg +0 -12
  159. package/lib/steps/assets/horizontal_line.svg +0 -3
  160. package/lib/steps/assets/vertical_line.svg +0 -3
  161. package/lib/steps/stepStyle/icon.less +0 -51
  162. package/lib/steps/stepStyle/progress-dot.less +0 -10
  163. package/lib/steps/stepStyle/variables.less +0 -8
  164. package/lib/steps/stepStyle/vertical.less +0 -41
  165. package/lib/switch/index.less +0 -45
  166. package/lib/tabs/tabs.less +0 -125
  167. package/lib/time-picker/TimePicker.d.ts +0 -9
  168. package/lib/time-picker/TimePicker.d.ts.map +0 -1
  169. package/lib/time-picker/TimePicker.js +0 -90
  170. package/lib/time-picker/TimePicker.js.map +0 -1
  171. package/lib/time-picker/index.less +0 -38
  172. package/lib/tntd-action/Action.d.ts +0 -6
  173. package/lib/tntd-action/Action.d.ts.map +0 -1
  174. package/lib/tntd-action/Action.js +0 -218
  175. package/lib/tntd-action/Action.js.map +0 -1
  176. package/lib/tntd-action/index.less +0 -61
  177. package/lib/tntd-select/index.less +0 -7
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../src/checkbox/checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;AAIA,OAAO,YAAY,MAAM,kBAAkB,CAAA;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7C,cAAc,kBAAkB,CAAA;AAchC,MAAM,YAAY,GAAG,cAAc,CAAA;AAEnC,MAAM,QAAQ,GAAG,UAAU,CACzB,CAAC,EAAsC,EAAE,GAAG,EAAE,EAAE;QAA/C,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,OAAW,EAAN,IAAI,cAApC,iCAAsC,CAAF;IACnC,OAAO,CACL,oBAAC,cAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,oBAAC,YAAY,oBAAK,IAAI,IAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,YAAY,CAAC,KAC7E,QAAQ,CAAC,CAAC,CAAC,CACV,8BAAM,SAAS,EAAE,GAAG,YAAY,WAAW;YACzC,kCAAO,QAAQ,CAAQ;YACtB,CAAC,CAAC,IAAI,IAAI,8BAAM,SAAS,EAAE,GAAG,YAAY,OAAO,IAAG,IAAI,CAAQ,CAC5D,CACR,CAAC,CAAC,CAAC,SAAS,CACA,CAChB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACmB,CAAA;AAEtB,MAAM,aAAa,GAAG,UAAU,CAC9B,CAAC,EAAsB,EAAE,GAAG,EAAE,EAAE;QAA/B,EAAE,SAAS,OAAW,EAAN,IAAI,cAApB,aAAsB,CAAF;IACnB,OAAO,CACL,oBAAC,cAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,oBAAC,YAAY,CAAC,KAAK,oBACb,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,GAAG,YAAY,QAAQ,CAAC,IACzD,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACF,CAAA;AAED,QAAQ,CAAC,KAAK,GAAG,wBAAwB,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;AAE5E,eAAe,QAAQ,CAAA","sourcesContent":["import type {\n CheckboxGroupProps as AntdCheckboxGroupProps,\n CheckboxProps as AntdCheckboxProps,\n} from 'antd/es/checkbox'\nimport AntdCheckbox from 'antd/es/checkbox'\nimport type AntdCheckboxGroup from 'antd/es/checkbox/Group'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport classNames from 'classnames'\nimport React, { forwardRef } from 'react'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\n\nexport * from 'antd/es/checkbox'\n\nexport type CheckboxProps = AntdCheckboxProps & {\n desc?: string | React.ReactNode\n}\nexport type CheckboxGroupProps = AntdCheckboxGroupProps & {\n readonly?: boolean\n}\n\ninterface CheckboxComponent\n extends React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<AntdCheckbox>> {\n Group: React.FC<CheckboxGroupProps>\n}\n\nconst tntPrefixCls = 'tnt-checkbox'\n\nconst Checkbox = forwardRef<AntdCheckbox, CheckboxProps>(\n ({ className, children, desc, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdCheckbox {...rest} ref={ref} className={classNames(className, tntPrefixCls)}>\n {children ? (\n <span className={`${tntPrefixCls}-children`}>\n <span>{children}</span>\n {!!desc && <span className={`${tntPrefixCls}-desc`}>{desc}</span>}\n </span>\n ) : undefined}\n </AntdCheckbox>\n )\n }}\n </ConfigConsumer>\n )\n }\n) as CheckboxComponent\n\nconst CheckboxGroup = forwardRef<AntdCheckboxGroup, CheckboxGroupProps>(\n ({ className, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdCheckbox.Group\n {...rest}\n ref={ref}\n className={classNames(className, `${tntPrefixCls}-group`)}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n)\n\nCheckbox.Group = connectReadonlyComponent(CheckboxGroup, PreviewText.Select)\n\nexport default Checkbox\n"]}
@@ -1,69 +0,0 @@
1
- @checkbox-prefix-cls: ~'@{ant-prefix}-checkbox';
2
- @checkbox-inner-prefix-cls: ~'@{checkbox-prefix-cls}-inner';
3
-
4
- .tnt-checkbox,
5
- .tnt-checkbox-group {
6
- .@{checkbox-prefix-cls}-indeterminate {
7
- .@{checkbox-inner-prefix-cls} {
8
- background-color: @checkbox-color;
9
- border-color: @checkbox-color;
10
- }
11
- .@{checkbox-inner-prefix-cls}::after {
12
- @indeterminate-width: calc(@checkbox-size - 8px);
13
- @indeterminate-height: 1.4px;
14
-
15
- width: @indeterminate-width;
16
- height: @indeterminate-height;
17
- background-color: @component-background;
18
- border-radius: 2px;
19
- transition: none;
20
- }
21
-
22
- &.@{checkbox-prefix-cls}-disabled {
23
- .@{checkbox-inner-prefix-cls} {
24
- background: @checkbox-check-disabled-color;
25
- border-color: @checkbox-check-disabled-color !important;
26
-
27
- &::after {
28
- background-color: #fff;
29
- }
30
- }
31
- }
32
- }
33
-
34
- .@{checkbox-prefix-cls}-checked {
35
- &.@{checkbox-prefix-cls}-disabled {
36
- .@{checkbox-inner-prefix-cls} {
37
- background: @checkbox-check-disabled-color;
38
- border-color: @checkbox-check-disabled-color !important;
39
- &::after {
40
- border-color: #fff;
41
- }
42
- }
43
- }
44
-
45
- .@{checkbox-inner-prefix-cls}::after {
46
- width: 16px;
47
- height: 16px;
48
- border-width: 0;
49
- background-image: url(./check.png);
50
- background-size: contain;
51
- transform: translate(-25%, -50%);
52
- transition: none;
53
- }
54
- }
55
- }
56
-
57
- .tnt-checkbox {
58
- & > span:nth-of-type(2) {
59
- display: inline-block;
60
- }
61
- &-children {
62
- display: flex;
63
- flex-direction: column;
64
- }
65
- &-desc {
66
- font-size: @font-size-sm;
67
- color: @bg-color-spotilight-tint-50;
68
- }
69
- }
@@ -1,163 +0,0 @@
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
- TntDatePicker: true,
17
- TntMonthPicker: true,
18
- TntWeekPicker: true,
19
- TntRangePicker: true
20
- };
21
- exports.TntWeekPicker = exports.TntRangePicker = exports.TntMonthPicker = exports.TntDatePicker = void 0;
22
- var _react = _interopRequireDefault(require("react"));
23
- var _icon = _interopRequireDefault(require("../icon"));
24
- var _configProvider = require("antd/es/config-provider");
25
- var _datePicker = _interopRequireWildcard(require("antd/es/date-picker"));
26
- Object.keys(_datePicker).forEach(function (key) {
27
- if (key === "default" || key === "__esModule") return;
28
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
29
- if (key in exports && exports[key] === _datePicker[key]) return;
30
- Object.defineProperty(exports, key, {
31
- enumerable: true,
32
- get: function get() {
33
- return _datePicker[key];
34
- }
35
- });
36
- });
37
- var _classnames = _interopRequireDefault(require("classnames"));
38
- var _interface = require("antd/es/date-picker/interface");
39
- Object.keys(_interface).forEach(function (key) {
40
- if (key === "default" || key === "__esModule") return;
41
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
42
- if (key in exports && exports[key] === _interface[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function get() {
46
- return _interface[key];
47
- }
48
- });
49
- });
50
- function _getRequireWildcardCache(e) {
51
- if ("function" != typeof WeakMap) return null;
52
- var r = new WeakMap(),
53
- t = new WeakMap();
54
- return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
55
- return e ? t : r;
56
- })(e);
57
- }
58
- function _interopRequireWildcard(e, r) {
59
- if (!r && e && e.__esModule) return e;
60
- if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
61
- "default": e
62
- };
63
- var t = _getRequireWildcardCache(r);
64
- if (t && t.has(e)) return t.get(e);
65
- var n = {
66
- __proto__: null
67
- },
68
- a = Object.defineProperty && Object.getOwnPropertyDescriptor;
69
- for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
70
- var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
71
- i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
72
- }
73
- return n["default"] = e, t && t.set(e, n), n;
74
- }
75
- function _interopRequireDefault(e) {
76
- return e && e.__esModule ? e : {
77
- "default": e
78
- };
79
- }
80
- var __rest = void 0 && (void 0).__rest || function (s, e) {
81
- var t = {};
82
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
83
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
85
- }
86
- return t;
87
- };
88
- var MonthPicker = _datePicker["default"].MonthPicker,
89
- WeekPicker = _datePicker["default"].WeekPicker,
90
- RangePicker = _datePicker["default"].RangePicker;
91
- var TntDatePicker = exports.TntDatePicker = function TntDatePicker(props) {
92
- //theme样式类型 outline | fill 默认 outline
93
- var _props$theme = props.theme,
94
- theme = _props$theme === void 0 ? 'outline' : _props$theme,
95
- className = props.className,
96
- suffixIcon = props.suffixIcon,
97
- restProps = __rest(props, ["theme", "className", "suffixIcon"]);
98
- var defaultIcon = _react["default"].createElement(_icon["default"], {
99
- type: "calendar-3"
100
- });
101
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
102
- var getPrefixCls = _ref.getPrefixCls;
103
- var prefixCls = getPrefixCls('date-picker');
104
- return _react["default"].createElement(_datePicker["default"], Object.assign({
105
- suffixIcon: suffixIcon || defaultIcon,
106
- className: (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme))
107
- }, restProps));
108
- });
109
- };
110
- var TntMonthPicker = exports.TntMonthPicker = function TntMonthPicker(props) {
111
- var _props$theme2 = props.theme,
112
- theme = _props$theme2 === void 0 ? 'outline' : _props$theme2,
113
- className = props.className,
114
- suffixIcon = props.suffixIcon,
115
- restProps = __rest(props, ["theme", "className", "suffixIcon"]);
116
- var defaultIcon = _react["default"].createElement(_icon["default"], {
117
- type: "calendar-3"
118
- });
119
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref2) {
120
- var getPrefixCls = _ref2.getPrefixCls;
121
- var prefixCls = getPrefixCls('date-picker');
122
- return _react["default"].createElement(MonthPicker, Object.assign({
123
- suffixIcon: suffixIcon || defaultIcon,
124
- className: (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme))
125
- }, restProps));
126
- });
127
- };
128
- var TntWeekPicker = exports.TntWeekPicker = function TntWeekPicker(props) {
129
- var _props$theme3 = props.theme,
130
- theme = _props$theme3 === void 0 ? 'outline' : _props$theme3,
131
- className = props.className,
132
- suffixIcon = props.suffixIcon,
133
- restProps = __rest(props, ["theme", "className", "suffixIcon"]);
134
- var defaultIcon = _react["default"].createElement(_icon["default"], {
135
- type: "calendar-3"
136
- });
137
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref3) {
138
- var getPrefixCls = _ref3.getPrefixCls;
139
- var prefixCls = getPrefixCls('date-picker');
140
- return _react["default"].createElement(WeekPicker, Object.assign({
141
- suffixIcon: suffixIcon || defaultIcon,
142
- className: (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme))
143
- }, restProps));
144
- });
145
- };
146
- var TntRangePicker = exports.TntRangePicker = function TntRangePicker(props) {
147
- var _props$theme4 = props.theme,
148
- theme = _props$theme4 === void 0 ? 'outline' : _props$theme4,
149
- className = props.className,
150
- suffixIcon = props.suffixIcon,
151
- restProps = __rest(props, ["theme", "className", "suffixIcon"]);
152
- var defaultIcon = _react["default"].createElement(_icon["default"], {
153
- type: "calendar-3"
154
- });
155
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref4) {
156
- var getPrefixCls = _ref4.getPrefixCls;
157
- var prefixCls = getPrefixCls('date-picker');
158
- return _react["default"].createElement(RangePicker, Object.assign({
159
- suffixIcon: suffixIcon || defaultIcon,
160
- className: (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme))
161
- }, restProps));
162
- });
163
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":"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","sourcesContent":["import React, { useState } from 'react'\nimport Icon from '../icon'\nimport type {\n DatePickerProps as AntdDatePickerProps,\n MonthPickerProps as AntMonthPickerProps,\n RangePickerProps as AntRangePickerProps,\n WeekPickerProps as AntWeekPickerProps,\n} from 'antd/es/date-picker/interface'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport AntdDatePicker from 'antd/es/date-picker'\nimport classNames from 'classnames'\nexport * from 'antd/es/date-picker'\nexport * from 'antd/es/date-picker/interface'\nconst { MonthPicker, WeekPicker, RangePicker } = AntdDatePicker\n\nexport const TntDatePicker: React.FC<\n AntdDatePickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n //theme样式类型 outline | fill 默认 outline\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <AntdDatePicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport const TntMonthPicker: React.FC<\n AntMonthPickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <MonthPicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport const TntWeekPicker: React.FC<\n AntWeekPickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <WeekPicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport const TntRangePicker: React.FC<\n AntRangePickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <RangePicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n"]}
@@ -1,294 +0,0 @@
1
- @import '../style/themes/index';
2
-
3
- @datepicker-prefix-cls: ~'@{ant-prefix}-date-picker';
4
- @calendar-prefix-cls: ~'@{ant-prefix}-calendar';
5
- @calendar-timepicker-prefix-cls: ~'@{ant-prefix}-calendar-time-picker';
6
-
7
- .@{calendar-prefix-cls}-picker-container{
8
- .@{calendar-prefix-cls}{
9
- // margin-top: 42px;
10
- .@{calendar-prefix-cls}-input-wrap{
11
- // display: none;
12
- }
13
- }
14
- .@{calendar-prefix-cls}-range{
15
- // margin-top: 42px;
16
- .@{calendar-prefix-cls}-input-wrap,.@{calendar-prefix-cls}-range-middle{
17
- // display: none;
18
- }
19
- .@{calendar-prefix-cls}-decade-panel,.@{calendar-prefix-cls}-year-panel,.@{calendar-prefix-cls}-month-panel{
20
- // top: 0
21
- }
22
- }
23
- .@{calendar-prefix-cls}-month-calendar,.@{calendar-prefix-cls}-week-number{
24
- // margin-top: 42px;
25
- }
26
- //.@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
27
- // background-color: @white;
28
- //}
29
- .@{calendar-prefix-cls}:not(.@{calendar-prefix-cls}-range){
30
- .@{calendar-prefix-cls}-selected-date .@{calendar-prefix-cls}-date{
31
- background-color: @blue-6;
32
- color: @white;
33
- }
34
- }
35
-
36
- }
37
- //Picker
38
- .@{calendar-prefix-cls}-picker{
39
- input,.@{calendar-prefix-cls}-picker-input{
40
- border-color: @border-color-secondary;
41
- color: @text-color;
42
- &:focus{
43
- border-color: @blue-5;
44
- }
45
- }
46
- &:has(input:not([value=''])),&:hover {
47
- .@{calendar-prefix-cls}-picker-icon{
48
- color: @text-color-secondary;
49
- }
50
- }
51
- &:has(input[disabled]){
52
- .@{calendar-prefix-cls}-picker-icon{
53
- color: @disabled-color;
54
- }
55
- }
56
- .@{calendar-prefix-cls}-picker-icon{
57
- width: auto;
58
- height: @font-size-lg;
59
- font-size: @font-size-lg;
60
- }
61
- .@{calendar-prefix-cls}-picker-clear{
62
- color: tint(@bg-color-spotilight, 50%);
63
- }
64
- }
65
- .@{datepicker-prefix-cls}{
66
- &-fill{
67
- .@{calendar-prefix-cls}-picker{
68
- &-input {
69
- &.@{ant-prefix}-input {
70
- background-color: @fill-color-quaternary;
71
- border-color: @fill-color-quaternary;
72
- &-disabled {
73
- border: none;
74
- pointer-events: none;
75
- background: @disabled-bg;
76
- }
77
- &:focus{
78
- background-color: @white;
79
- border-color: @blue-5;
80
- }
81
- }
82
- &:not([value='']):hover {
83
- background-color: @white;
84
- }
85
- }
86
- }
87
- }
88
- }
89
-
90
- //Calender
91
- .@{calendar-prefix-cls}{
92
- &-footer {
93
- &-extra {
94
- .@{ant-prefix}-tag{
95
- color: @text-color;
96
- border: none;
97
- background-color: @white;
98
- &:hover{
99
- color: @blue-6;
100
- }
101
- }
102
- }
103
- }
104
-
105
- thead tr{
106
- border-bottom: none;
107
- }
108
- table th{
109
- background-color: @white;
110
- }
111
- }
112
-
113
- //RangePicker
114
- .@{calendar-prefix-cls}-range{
115
- .@{calendar-prefix-cls}-in-range-cell,
116
- .@{calendar-prefix-cls}-selected-start-date,
117
- .@{calendar-prefix-cls}-selected-end-date {
118
- position: relative;
119
- border-radius: 0;
120
- > div {
121
- position: relative;
122
- z-index: 1;
123
- }
124
- &::before {
125
- position: absolute;
126
- top: 3px;
127
- right: 0;
128
- bottom: 3px;
129
- left: 0;
130
- display: block;
131
- background: @item-active-bg;
132
- border: 0;
133
- border-radius: 0;
134
- content: '';
135
- }
136
- }
137
- .@{calendar-prefix-cls}-selected-start-date{
138
- &::before{
139
- border-radius: @border-radius-base 0 0 @border-radius-base;
140
- }
141
- &::after {
142
- position: absolute;
143
- bottom: -2px;
144
- left: 16px;
145
- display: block;
146
- background: @blue-6;
147
- border: 0;
148
- border-radius: 50%;
149
- width: 4px;
150
- height: 4px;
151
- content: '';
152
- }
153
- }
154
- //ant-calendar-last-day-of-month
155
- //ant-calendar-last-month-cell ant-calendar-last-day-of-month
156
- .@{calendar-prefix-cls}-selected-end-date{
157
- &::before{
158
- border-radius: 0 @border-radius-base @border-radius-base 0;
159
- }
160
- }
161
- .@{calendar-prefix-cls}-selected-start-date.@{calendar-prefix-cls}-selected-end-date{
162
- &::before{
163
- border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
164
- }
165
- }
166
- tr .@{calendar-prefix-cls}-in-range-cell:first-child{
167
- &::before{
168
- border-radius: @border-radius-base 0 0 @border-radius-base;
169
- }
170
- }
171
- tr .@{calendar-prefix-cls}-selected-end-date:first-child,
172
- tr .@{calendar-prefix-cls}-selected-start-date:last-child{
173
- &::before{
174
- border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
175
- }
176
- }
177
- tr .@{calendar-prefix-cls}-in-range-cell:last-child{
178
- &::before{
179
- border-radius: 0 @border-radius-base @border-radius-base 0;
180
- }
181
- }
182
- .@{calendar-prefix-cls}-cell{
183
- height: 38px;
184
- }
185
- }
186
-
187
- //MonthPanel
188
- .@{calendar-prefix-cls}-month-panel-month {
189
- border-radius: @border-radius-base;
190
- }
191
-
192
- //WeekPicker
193
- .@{calendar-prefix-cls}-week-number {
194
- &-cell {
195
- opacity: 1;
196
- font-weight: normal;
197
- color: @text-color-tertiary !important;
198
- }
199
- .@{calendar-prefix-cls}-body tr {
200
- cursor: pointer;
201
- transition: all 0.3s;
202
- background: @white;
203
- .@{calendar-prefix-cls}-date{
204
- width: auto;
205
- border-radius: 0;
206
- font-weight: 500;
207
- }
208
- &:hover {
209
- background: @white;
210
- td:nth-child(2){
211
- .@{calendar-prefix-cls}-date{
212
- border-radius: @border-radius-base 0 0 @border-radius-base;
213
- }
214
- }
215
- td:last-child{
216
- .@{calendar-prefix-cls}-date{
217
- border-radius: 0 @border-radius-base @border-radius-base 0;
218
- }
219
- }
220
- .@{calendar-prefix-cls}-cell{
221
- &::before{
222
- top: 8px;
223
- bottom: 8px;
224
- }
225
- .@{calendar-prefix-cls}-date{
226
- background: @background-color-base;
227
- &:hover{
228
- background: @background-color-base;
229
- }
230
- }
231
- .@{calendar-prefix-cls}-selected-day{
232
- background: @background-color-base;
233
- }
234
- }
235
- .@{calendar-prefix-cls}-week-number-cell{
236
- background: @white;
237
- }
238
- }
239
- .@{calendar-prefix-cls}-selected-day .@{calendar-prefix-cls}-date,
240
- .@{calendar-prefix-cls}-selected-day:hover .@{calendar-prefix-cls}-date {
241
- color: @text-color;
242
- background: transparent;
243
- }
244
- &.@{calendar-prefix-cls}-active-week {
245
- background: transparent;
246
- td:nth-child(2){
247
- .@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
248
- border-radius: @border-radius-base 0 0 @border-radius-base;
249
- }
250
- }
251
- td:last-child{
252
- .@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
253
- border-radius: 0 @border-radius-base @border-radius-base 0;
254
- }
255
- }
256
- .@{calendar-prefix-cls}-cell{
257
- font-weight: bold;
258
- //background: @primary-color;
259
- .@{calendar-prefix-cls}-date{
260
- color: @text-color-inverse;
261
- background: @primary-color;
262
- &:hover{
263
- color: @text-color-inverse;
264
- background: @primary-color;
265
- }
266
- }
267
- .@{calendar-prefix-cls}-selected-day{
268
- background: @primary-color;
269
- }
270
- }
271
- }
272
- .@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
273
- //color: @text-color;
274
- //font-weight: normal;
275
- border-color: transparent;
276
- }
277
- }
278
- .@{calendar-prefix-cls}-cell{
279
- height: 38px;
280
- position: relative;
281
- &::before {
282
- position: absolute;
283
- top: 3px;
284
- right: 0;
285
- bottom: 3px;
286
- left: 0;
287
- display: block;
288
- border: 0;
289
- border-radius: 0;
290
- content: '';
291
- }
292
- }
293
- }
294
-
@@ -1,89 +0,0 @@
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 _react = _interopRequireWildcard(require("react"));
18
- var _configProvider = require("../config-provider");
19
- var _inputNumber = _interopRequireWildcard(require("antd/es/input-number"));
20
- Object.keys(_inputNumber).forEach(function (key) {
21
- if (key === "default" || key === "__esModule") return;
22
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
23
- if (key in exports && exports[key] === _inputNumber[key]) return;
24
- Object.defineProperty(exports, key, {
25
- enumerable: true,
26
- get: function get() {
27
- return _inputNumber[key];
28
- }
29
- });
30
- });
31
- var _connect = require("../connect");
32
- var _previewText = _interopRequireDefault(require("../preview-text"));
33
- var _classnames = _interopRequireDefault(require("classnames"));
34
- var _prevLocale = require("../prev-locale");
35
- function _interopRequireDefault(e) {
36
- return e && e.__esModule ? e : {
37
- "default": e
38
- };
39
- }
40
- function _getRequireWildcardCache(e) {
41
- if ("function" != typeof WeakMap) return null;
42
- var r = new WeakMap(),
43
- t = new WeakMap();
44
- return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
45
- return e ? t : r;
46
- })(e);
47
- }
48
- function _interopRequireWildcard(e, r) {
49
- if (!r && e && e.__esModule) return e;
50
- if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
51
- "default": e
52
- };
53
- var t = _getRequireWildcardCache(r);
54
- if (t && t.has(e)) return t.get(e);
55
- var n = {
56
- __proto__: null
57
- },
58
- a = Object.defineProperty && Object.getOwnPropertyDescriptor;
59
- for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
60
- var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
61
- i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
62
- }
63
- return n["default"] = e, t && t.set(e, n), n;
64
- }
65
- var __rest = void 0 && (void 0).__rest || function (s, e) {
66
- var t = {};
67
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
68
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
69
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
70
- }
71
- return t;
72
- };
73
- var defaultPlaceholder = (0, _prevLocale.getText)('enter', (0, _prevLocale.getLanguage)());
74
- var tntPrefixCls = 'tnt-input-number';
75
- var TntInputNumber = (0, _react.forwardRef)(function (_a, ref) {
76
- var className = _a.className,
77
- _a$placeholder = _a.placeholder,
78
- placeholder = _a$placeholder === void 0 ? defaultPlaceholder : _a$placeholder,
79
- props = __rest(_a, ["className", "placeholder"]);
80
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
81
- return _react["default"].createElement(_inputNumber["default"], Object.assign({
82
- placeholder: placeholder
83
- }, props, {
84
- ref: ref,
85
- className: (0, _classnames["default"])(className, tntPrefixCls)
86
- }));
87
- });
88
- });
89
- var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(TntInputNumber, _previewText["default"].Input);
@@ -1 +0,0 @@
1
- {"version":3,"file":"inputNumber.js","sourceRoot":"","sources":["../../src/input-number/inputNumber.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACrD,cAAc,sBAAsB,CAAA;AAEpC,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,CAAA;AAM1D,MAAM,YAAY,GAAG,kBAAkB,CAAA;AAEvC,MAAM,cAAc,GAAG,UAAU,CAC/B,CAAC,EAAyD,EAAE,GAAG,EAAE,EAAE;QAAlE,EAAE,SAAS,EAAE,WAAW,GAAG,kBAAkB,OAAY,EAAP,KAAK,cAAvD,4BAAyD,CAAF;IACtD,OAAO,CACL,oBAAC,cAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,oBAAC,eAAe,kBACd,WAAW,EAAE,WAAW,IACpB,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,YAAY,CAAC,IAC9C,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,wBAAwB,CAAC,cAAc,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA","sourcesContent":["import React, { forwardRef } from 'react'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdInputNumber } from 'antd/es/input-number'\nimport type { InputNumberProps as AntdInputNumberProps } from 'antd/es/input-number'\nimport { connectReadonlyComponent } from '../connect'\nimport PreviewText from '../preview-text'\nimport classNames from 'classnames'\nimport { getLanguage, getText } from '../prev-locale'\nexport * from 'antd/es/input-number'\n\nconst defaultPlaceholder = getText('enter', getLanguage())\n\nexport type InputNumberProps = AntdInputNumberProps & {\n readonly?: boolean\n}\n\nconst tntPrefixCls = 'tnt-input-number'\n\nconst TntInputNumber = forwardRef<AntdInputNumber, AntdInputNumberProps>(\n ({ className, placeholder = defaultPlaceholder, ...props }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdInputNumber\n placeholder={placeholder}\n {...props}\n ref={ref}\n className={classNames(className, tntPrefixCls)}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n)\n\nexport default connectReadonlyComponent(TntInputNumber, PreviewText.Input)\n"]}
@@ -1,12 +0,0 @@
1
- @import './style/index.less';
2
-
3
- @input-prefix-cls: ~'@{ant-prefix}-input-number';
4
-
5
- .tnt-input-number,
6
- .@{input-prefix-cls} {
7
- border-color: @border-color-secondary;
8
-
9
- &.@{input-prefix-cls}-focused {
10
- .active();
11
- }
12
- }