assui 2.2.3 → 2.3.1

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 (97) hide show
  1. package/es/config-provider/index.d.ts +1 -1
  2. package/es/config-provider/index.js +41 -1
  3. package/es/index.d.ts +0 -1
  4. package/es/index.js +0 -1
  5. package/es/messages/ar_EG.d.ts +26 -0
  6. package/es/messages/ar_EG.js +26 -0
  7. package/es/messages/bg_BG.d.ts +26 -0
  8. package/es/messages/bg_BG.js +26 -0
  9. package/es/messages/cs_CZ.d.ts +26 -0
  10. package/es/messages/cs_CZ.js +26 -0
  11. package/es/messages/de_DE.d.ts +26 -0
  12. package/es/messages/de_DE.js +26 -0
  13. package/es/messages/es_ES.d.ts +26 -0
  14. package/es/messages/es_ES.js +26 -0
  15. package/es/messages/fi_FI.d.ts +26 -0
  16. package/es/messages/fi_FI.js +26 -0
  17. package/es/messages/fr_FR.d.ts +26 -0
  18. package/es/messages/fr_FR.js +26 -0
  19. package/es/messages/id_ID.d.ts +26 -0
  20. package/es/messages/id_ID.js +26 -0
  21. package/es/messages/it_IT.d.ts +26 -0
  22. package/es/messages/it_IT.js +26 -0
  23. package/es/messages/ja_JP.d.ts +26 -0
  24. package/es/messages/ja_JP.js +26 -0
  25. package/es/messages/ko_KR.d.ts +26 -0
  26. package/es/messages/ko_KR.js +26 -0
  27. package/es/messages/nb_NO.d.ts +26 -0
  28. package/es/messages/nb_NO.js +26 -0
  29. package/es/messages/nl_NL.d.ts +26 -0
  30. package/es/messages/nl_NL.js +26 -0
  31. package/es/messages/pt_PT.d.ts +26 -0
  32. package/es/messages/pt_PT.js +26 -0
  33. package/es/messages/ro_RO.d.ts +26 -0
  34. package/es/messages/ro_RO.js +26 -0
  35. package/es/messages/ru_RU.d.ts +26 -0
  36. package/es/messages/ru_RU.js +26 -0
  37. package/es/messages/sv_SE.d.ts +26 -0
  38. package/es/messages/sv_SE.js +26 -0
  39. package/es/messages/th_TH.d.ts +26 -0
  40. package/es/messages/th_TH.js +26 -0
  41. package/es/messages/vi_VN.d.ts +26 -0
  42. package/es/messages/vi_VN.js +26 -0
  43. package/es/messages/zh_TW.d.ts +26 -0
  44. package/es/messages/zh_TW.js +26 -0
  45. package/lib/config-provider/index.d.ts +1 -1
  46. package/lib/config-provider/index.js +61 -1
  47. package/lib/index.d.ts +0 -1
  48. package/lib/index.js +1 -10
  49. package/lib/messages/ar_EG.d.ts +26 -0
  50. package/lib/messages/ar_EG.js +31 -0
  51. package/lib/messages/bg_BG.d.ts +26 -0
  52. package/lib/messages/bg_BG.js +31 -0
  53. package/lib/messages/cs_CZ.d.ts +26 -0
  54. package/lib/messages/cs_CZ.js +31 -0
  55. package/lib/messages/de_DE.d.ts +26 -0
  56. package/lib/messages/de_DE.js +31 -0
  57. package/lib/messages/es_ES.d.ts +26 -0
  58. package/lib/messages/es_ES.js +31 -0
  59. package/lib/messages/fi_FI.d.ts +26 -0
  60. package/lib/messages/fi_FI.js +31 -0
  61. package/lib/messages/fr_FR.d.ts +26 -0
  62. package/lib/messages/fr_FR.js +31 -0
  63. package/lib/messages/id_ID.d.ts +26 -0
  64. package/lib/messages/id_ID.js +31 -0
  65. package/lib/messages/it_IT.d.ts +26 -0
  66. package/lib/messages/it_IT.js +31 -0
  67. package/lib/messages/ja_JP.d.ts +26 -0
  68. package/lib/messages/ja_JP.js +31 -0
  69. package/lib/messages/ko_KR.d.ts +26 -0
  70. package/lib/messages/ko_KR.js +31 -0
  71. package/lib/messages/nb_NO.d.ts +26 -0
  72. package/lib/messages/nb_NO.js +31 -0
  73. package/lib/messages/nl_NL.d.ts +26 -0
  74. package/lib/messages/nl_NL.js +31 -0
  75. package/lib/messages/pt_PT.d.ts +26 -0
  76. package/lib/messages/pt_PT.js +31 -0
  77. package/lib/messages/ro_RO.d.ts +26 -0
  78. package/lib/messages/ro_RO.js +31 -0
  79. package/lib/messages/ru_RU.d.ts +26 -0
  80. package/lib/messages/ru_RU.js +31 -0
  81. package/lib/messages/sv_SE.d.ts +26 -0
  82. package/lib/messages/sv_SE.js +31 -0
  83. package/lib/messages/th_TH.d.ts +26 -0
  84. package/lib/messages/th_TH.js +31 -0
  85. package/lib/messages/vi_VN.d.ts +26 -0
  86. package/lib/messages/vi_VN.js +31 -0
  87. package/lib/messages/zh_TW.d.ts +26 -0
  88. package/lib/messages/zh_TW.js +31 -0
  89. package/package.json +3 -2
  90. package/es/picker-with-type/index.d.ts +0 -2
  91. package/es/picker-with-type/index.js +0 -63
  92. package/es/picker-with-type/style/index.d.ts +0 -3
  93. package/es/picker-with-type/style/index.js +0 -3
  94. package/lib/picker-with-type/index.d.ts +0 -2
  95. package/lib/picker-with-type/index.js +0 -118
  96. package/lib/picker-with-type/style/index.d.ts +0 -3
  97. package/lib/picker-with-type/style/index.js +0 -11
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var locale = {
7
+ locale: 'nl_NL',
8
+ lang: {
9
+ global: {
10
+ placeholder: 'Please select'
11
+ },
12
+ labelCustomizeRangePicker: {
13
+ customTime: 'CustomTime',
14
+ toDay: 'ToDay',
15
+ yesterDay: 'YesterDay',
16
+ week: 'Week',
17
+ lastWeek: 'LastWeek',
18
+ month: 'Month',
19
+ lastMonth: 'LastMonth',
20
+ quarter: 'Quarter',
21
+ lastQuarter: 'LastQuarter',
22
+ last7days: 'Last7Days',
23
+ last14days: 'Last14Days',
24
+ last30days: 'Last30Days',
25
+ last90days: 'Last90Days',
26
+ last180days: 'Last180Days',
27
+ last365days: 'Last365Days'
28
+ }
29
+ }
30
+ };
31
+ exports["default"] = locale;
@@ -0,0 +1,26 @@
1
+ declare const locale: {
2
+ locale: string;
3
+ lang: {
4
+ global: {
5
+ placeholder: string;
6
+ };
7
+ labelCustomizeRangePicker: {
8
+ customTime: string;
9
+ toDay: string;
10
+ yesterDay: string;
11
+ week: string;
12
+ lastWeek: string;
13
+ month: string;
14
+ lastMonth: string;
15
+ quarter: string;
16
+ lastQuarter: string;
17
+ last7days: string;
18
+ last14days: string;
19
+ last30days: string;
20
+ last90days: string;
21
+ last180days: string;
22
+ last365days: string;
23
+ };
24
+ };
25
+ };
26
+ export default locale;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var locale = {
7
+ locale: 'pt_PT',
8
+ lang: {
9
+ global: {
10
+ placeholder: 'Please select'
11
+ },
12
+ labelCustomizeRangePicker: {
13
+ customTime: 'CustomTime',
14
+ toDay: 'ToDay',
15
+ yesterDay: 'YesterDay',
16
+ week: 'Week',
17
+ lastWeek: 'LastWeek',
18
+ month: 'Month',
19
+ lastMonth: 'LastMonth',
20
+ quarter: 'Quarter',
21
+ lastQuarter: 'LastQuarter',
22
+ last7days: 'Last7Days',
23
+ last14days: 'Last14Days',
24
+ last30days: 'Last30Days',
25
+ last90days: 'Last90Days',
26
+ last180days: 'Last180Days',
27
+ last365days: 'Last365Days'
28
+ }
29
+ }
30
+ };
31
+ exports["default"] = locale;
@@ -0,0 +1,26 @@
1
+ declare const locale: {
2
+ locale: string;
3
+ lang: {
4
+ global: {
5
+ placeholder: string;
6
+ };
7
+ labelCustomizeRangePicker: {
8
+ customTime: string;
9
+ toDay: string;
10
+ yesterDay: string;
11
+ week: string;
12
+ lastWeek: string;
13
+ month: string;
14
+ lastMonth: string;
15
+ quarter: string;
16
+ lastQuarter: string;
17
+ last7days: string;
18
+ last14days: string;
19
+ last30days: string;
20
+ last90days: string;
21
+ last180days: string;
22
+ last365days: string;
23
+ };
24
+ };
25
+ };
26
+ export default locale;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var locale = {
7
+ locale: 'ro_RO',
8
+ lang: {
9
+ global: {
10
+ placeholder: 'Please select'
11
+ },
12
+ labelCustomizeRangePicker: {
13
+ customTime: 'CustomTime',
14
+ toDay: 'ToDay',
15
+ yesterDay: 'YesterDay',
16
+ week: 'Week',
17
+ lastWeek: 'LastWeek',
18
+ month: 'Month',
19
+ lastMonth: 'LastMonth',
20
+ quarter: 'Quarter',
21
+ lastQuarter: 'LastQuarter',
22
+ last7days: 'Last7Days',
23
+ last14days: 'Last14Days',
24
+ last30days: 'Last30Days',
25
+ last90days: 'Last90Days',
26
+ last180days: 'Last180Days',
27
+ last365days: 'Last365Days'
28
+ }
29
+ }
30
+ };
31
+ exports["default"] = locale;
@@ -0,0 +1,26 @@
1
+ declare const locale: {
2
+ locale: string;
3
+ lang: {
4
+ global: {
5
+ placeholder: string;
6
+ };
7
+ labelCustomizeRangePicker: {
8
+ customTime: string;
9
+ toDay: string;
10
+ yesterDay: string;
11
+ week: string;
12
+ lastWeek: string;
13
+ month: string;
14
+ lastMonth: string;
15
+ quarter: string;
16
+ lastQuarter: string;
17
+ last7days: string;
18
+ last14days: string;
19
+ last30days: string;
20
+ last90days: string;
21
+ last180days: string;
22
+ last365days: string;
23
+ };
24
+ };
25
+ };
26
+ export default locale;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var locale = {
7
+ locale: 'ru_RU',
8
+ lang: {
9
+ global: {
10
+ placeholder: 'Please select'
11
+ },
12
+ labelCustomizeRangePicker: {
13
+ customTime: 'CustomTime',
14
+ toDay: 'ToDay',
15
+ yesterDay: 'YesterDay',
16
+ week: 'Week',
17
+ lastWeek: 'LastWeek',
18
+ month: 'Month',
19
+ lastMonth: 'LastMonth',
20
+ quarter: 'Quarter',
21
+ lastQuarter: 'LastQuarter',
22
+ last7days: 'Last7Days',
23
+ last14days: 'Last14Days',
24
+ last30days: 'Last30Days',
25
+ last90days: 'Last90Days',
26
+ last180days: 'Last180Days',
27
+ last365days: 'Last365Days'
28
+ }
29
+ }
30
+ };
31
+ exports["default"] = locale;
@@ -0,0 +1,26 @@
1
+ declare const locale: {
2
+ locale: string;
3
+ lang: {
4
+ global: {
5
+ placeholder: string;
6
+ };
7
+ labelCustomizeRangePicker: {
8
+ customTime: string;
9
+ toDay: string;
10
+ yesterDay: string;
11
+ week: string;
12
+ lastWeek: string;
13
+ month: string;
14
+ lastMonth: string;
15
+ quarter: string;
16
+ lastQuarter: string;
17
+ last7days: string;
18
+ last14days: string;
19
+ last30days: string;
20
+ last90days: string;
21
+ last180days: string;
22
+ last365days: string;
23
+ };
24
+ };
25
+ };
26
+ export default locale;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var locale = {
7
+ locale: 'sv_SE',
8
+ lang: {
9
+ global: {
10
+ placeholder: 'Please select'
11
+ },
12
+ labelCustomizeRangePicker: {
13
+ customTime: 'CustomTime',
14
+ toDay: 'ToDay',
15
+ yesterDay: 'YesterDay',
16
+ week: 'Week',
17
+ lastWeek: 'LastWeek',
18
+ month: 'Month',
19
+ lastMonth: 'LastMonth',
20
+ quarter: 'Quarter',
21
+ lastQuarter: 'LastQuarter',
22
+ last7days: 'Last7Days',
23
+ last14days: 'Last14Days',
24
+ last30days: 'Last30Days',
25
+ last90days: 'Last90Days',
26
+ last180days: 'Last180Days',
27
+ last365days: 'Last365Days'
28
+ }
29
+ }
30
+ };
31
+ exports["default"] = locale;
@@ -0,0 +1,26 @@
1
+ declare const locale: {
2
+ locale: string;
3
+ lang: {
4
+ global: {
5
+ placeholder: string;
6
+ };
7
+ labelCustomizeRangePicker: {
8
+ customTime: string;
9
+ toDay: string;
10
+ yesterDay: string;
11
+ week: string;
12
+ lastWeek: string;
13
+ month: string;
14
+ lastMonth: string;
15
+ quarter: string;
16
+ lastQuarter: string;
17
+ last7days: string;
18
+ last14days: string;
19
+ last30days: string;
20
+ last90days: string;
21
+ last180days: string;
22
+ last365days: string;
23
+ };
24
+ };
25
+ };
26
+ export default locale;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var locale = {
7
+ locale: 'th_TH',
8
+ lang: {
9
+ global: {
10
+ placeholder: 'Please select'
11
+ },
12
+ labelCustomizeRangePicker: {
13
+ customTime: 'CustomTime',
14
+ toDay: 'ToDay',
15
+ yesterDay: 'YesterDay',
16
+ week: 'Week',
17
+ lastWeek: 'LastWeek',
18
+ month: 'Month',
19
+ lastMonth: 'LastMonth',
20
+ quarter: 'Quarter',
21
+ lastQuarter: 'LastQuarter',
22
+ last7days: 'Last7Days',
23
+ last14days: 'Last14Days',
24
+ last30days: 'Last30Days',
25
+ last90days: 'Last90Days',
26
+ last180days: 'Last180Days',
27
+ last365days: 'Last365Days'
28
+ }
29
+ }
30
+ };
31
+ exports["default"] = locale;
@@ -0,0 +1,26 @@
1
+ declare const locale: {
2
+ locale: string;
3
+ lang: {
4
+ global: {
5
+ placeholder: string;
6
+ };
7
+ labelCustomizeRangePicker: {
8
+ customTime: string;
9
+ toDay: string;
10
+ yesterDay: string;
11
+ week: string;
12
+ lastWeek: string;
13
+ month: string;
14
+ lastMonth: string;
15
+ quarter: string;
16
+ lastQuarter: string;
17
+ last7days: string;
18
+ last14days: string;
19
+ last30days: string;
20
+ last90days: string;
21
+ last180days: string;
22
+ last365days: string;
23
+ };
24
+ };
25
+ };
26
+ export default locale;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var locale = {
7
+ locale: 'vi_VN',
8
+ lang: {
9
+ global: {
10
+ placeholder: 'Please select'
11
+ },
12
+ labelCustomizeRangePicker: {
13
+ customTime: 'CustomTime',
14
+ toDay: 'ToDay',
15
+ yesterDay: 'YesterDay',
16
+ week: 'Week',
17
+ lastWeek: 'LastWeek',
18
+ month: 'Month',
19
+ lastMonth: 'LastMonth',
20
+ quarter: 'Quarter',
21
+ lastQuarter: 'LastQuarter',
22
+ last7days: 'Last7Days',
23
+ last14days: 'Last14Days',
24
+ last30days: 'Last30Days',
25
+ last90days: 'Last90Days',
26
+ last180days: 'Last180Days',
27
+ last365days: 'Last365Days'
28
+ }
29
+ }
30
+ };
31
+ exports["default"] = locale;
@@ -0,0 +1,26 @@
1
+ declare const locale: {
2
+ locale: string;
3
+ lang: {
4
+ global: {
5
+ placeholder: string;
6
+ };
7
+ labelCustomizeRangePicker: {
8
+ customTime: string;
9
+ toDay: string;
10
+ yesterDay: string;
11
+ week: string;
12
+ lastWeek: string;
13
+ month: string;
14
+ lastMonth: string;
15
+ quarter: string;
16
+ lastQuarter: string;
17
+ last7days: string;
18
+ last14days: string;
19
+ last30days: string;
20
+ last90days: string;
21
+ last180days: string;
22
+ last365days: string;
23
+ };
24
+ };
25
+ };
26
+ export default locale;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var locale = {
7
+ locale: 'zh-Hant',
8
+ lang: {
9
+ global: {
10
+ placeholder: '請選擇'
11
+ },
12
+ labelCustomizeRangePicker: {
13
+ customTime: '自定義時間',
14
+ toDay: '今天',
15
+ yesterDay: '昨天',
16
+ week: '本週',
17
+ lastWeek: '上週',
18
+ month: '本月',
19
+ lastMonth: '上月',
20
+ quarter: '本季度',
21
+ lastQuarter: '上季度',
22
+ last7days: '最近7天',
23
+ last14days: '最近14天',
24
+ last30days: '最近30天',
25
+ last90days: '最近90天',
26
+ last180days: '最近180天',
27
+ last365days: '最近365天'
28
+ }
29
+ }
30
+ };
31
+ exports["default"] = locale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.2.3",
3
+ "version": "2.3.1",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -33,6 +33,7 @@
33
33
  "@ahooksjs/use-url-state": "^3.1.9",
34
34
  "@tinymce/tinymce-react": "^4.0.0",
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
+ "@types/react-color": "^3.0.6",
36
37
  "@types/react-resizable": "^3.0.0",
37
38
  "a-icons": "^1.0.85",
38
39
  "aa-utils": "^2.1.0",
@@ -79,5 +80,5 @@
79
80
  "node": ">=10.0.0"
80
81
  },
81
82
  "license": "MIT",
82
- "gitHead": "e7c2a1139571266a38b2c940b7c5fac0f2e47d44"
83
+ "gitHead": "ff3b1e08afbde006b85c8a92794c7f0fe7e78f14"
83
84
  }
@@ -1,2 +0,0 @@
1
- declare const PickerWithType: () => JSX.Element;
2
- export default PickerWithType;
@@ -1,63 +0,0 @@
1
- var __read = this && this.__read || function (o, n) {
2
- var m = typeof Symbol === "function" && o[Symbol.iterator];
3
- if (!m) return o;
4
- var i = m.call(o),
5
- r,
6
- ar = [],
7
- e;
8
-
9
- try {
10
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
11
- ar.push(r.value);
12
- }
13
- } catch (error) {
14
- e = {
15
- error: error
16
- };
17
- } finally {
18
- try {
19
- if (r && !r.done && (m = i["return"])) m.call(i);
20
- } finally {
21
- if (e) throw e.error;
22
- }
23
- }
24
-
25
- return ar;
26
- }; // @ts-nocheck
27
-
28
-
29
- import React, { useState } from 'react';
30
- import DatePicker from "antd/es/date-picker";
31
- import Select from "antd/es/select";
32
- import Space from "antd/es/space";
33
- var Option = Select.Option;
34
-
35
- var PickerWithType = function PickerWithType() {
36
- var _a = __read(useState('date'), 2),
37
- type = _a[0],
38
- setType = _a[1];
39
-
40
- return /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
41
- value: type,
42
- onChange: setType
43
- }, /*#__PURE__*/React.createElement(Option, {
44
- value: "time"
45
- }, "Time"), /*#__PURE__*/React.createElement(Option, {
46
- value: "date"
47
- }, "Date"), /*#__PURE__*/React.createElement(Option, {
48
- value: "week"
49
- }, "Week"), /*#__PURE__*/React.createElement(Option, {
50
- value: "month"
51
- }, "Month"), /*#__PURE__*/React.createElement(Option, {
52
- value: "quarter"
53
- }, "Quarter"), /*#__PURE__*/React.createElement(Option, {
54
- value: "year"
55
- }, "Year")), /*#__PURE__*/React.createElement(DatePicker, {
56
- type: type,
57
- onChange: function onChange(value) {
58
- return console.log(value);
59
- }
60
- }));
61
- };
62
-
63
- export default PickerWithType;
@@ -1,3 +0,0 @@
1
- import 'antd/lib/date-picker/style';
2
- import 'antd/lib/select/style';
3
- import 'antd/lib/space/style';
@@ -1,3 +0,0 @@
1
- import "antd/es/date-picker/style";
2
- import "antd/es/select/style";
3
- import "antd/es/space/style";
@@ -1,2 +0,0 @@
1
- declare const PickerWithType: () => JSX.Element;
2
- export default PickerWithType;
@@ -1,118 +0,0 @@
1
- "use strict";
2
-
3
- var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
-
7
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
- desc = {
9
- enumerable: true,
10
- get: function get() {
11
- return m[k];
12
- }
13
- };
14
- }
15
-
16
- Object.defineProperty(o, k2, desc);
17
- } : function (o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- o[k2] = m[k];
20
- });
21
-
22
- var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {
23
- Object.defineProperty(o, "default", {
24
- enumerable: true,
25
- value: v
26
- });
27
- } : function (o, v) {
28
- o["default"] = v;
29
- });
30
-
31
- var __importStar = this && this.__importStar || function (mod) {
32
- if (mod && mod.__esModule) return mod;
33
- var result = {};
34
- if (mod != null) for (var k in mod) {
35
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
36
- }
37
-
38
- __setModuleDefault(result, mod);
39
-
40
- return result;
41
- };
42
-
43
- var __read = this && this.__read || function (o, n) {
44
- var m = typeof Symbol === "function" && o[Symbol.iterator];
45
- if (!m) return o;
46
- var i = m.call(o),
47
- r,
48
- ar = [],
49
- e;
50
-
51
- try {
52
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
53
- ar.push(r.value);
54
- }
55
- } catch (error) {
56
- e = {
57
- error: error
58
- };
59
- } finally {
60
- try {
61
- if (r && !r.done && (m = i["return"])) m.call(i);
62
- } finally {
63
- if (e) throw e.error;
64
- }
65
- }
66
-
67
- return ar;
68
- };
69
-
70
- var __importDefault = this && this.__importDefault || function (mod) {
71
- return mod && mod.__esModule ? mod : {
72
- "default": mod
73
- };
74
- };
75
-
76
- Object.defineProperty(exports, "__esModule", {
77
- value: true
78
- }); // @ts-nocheck
79
-
80
- var react_1 = __importStar(require("react"));
81
-
82
- var date_picker_1 = __importDefault(require("antd/lib/date-picker"));
83
-
84
- var select_1 = __importDefault(require("antd/lib/select"));
85
-
86
- var space_1 = __importDefault(require("antd/lib/space"));
87
-
88
- var Option = select_1["default"].Option;
89
-
90
- var PickerWithType = function PickerWithType() {
91
- var _a = __read((0, react_1.useState)('date'), 2),
92
- type = _a[0],
93
- setType = _a[1];
94
-
95
- return react_1["default"].createElement(space_1["default"], null, react_1["default"].createElement(select_1["default"], {
96
- value: type,
97
- onChange: setType
98
- }, react_1["default"].createElement(Option, {
99
- value: "time"
100
- }, "Time"), react_1["default"].createElement(Option, {
101
- value: "date"
102
- }, "Date"), react_1["default"].createElement(Option, {
103
- value: "week"
104
- }, "Week"), react_1["default"].createElement(Option, {
105
- value: "month"
106
- }, "Month"), react_1["default"].createElement(Option, {
107
- value: "quarter"
108
- }, "Quarter"), react_1["default"].createElement(Option, {
109
- value: "year"
110
- }, "Year")), react_1["default"].createElement(date_picker_1["default"], {
111
- type: type,
112
- onChange: function onChange(value) {
113
- return console.log(value);
114
- }
115
- }));
116
- };
117
-
118
- exports["default"] = PickerWithType;
@@ -1,3 +0,0 @@
1
- import 'antd/lib/date-picker/style';
2
- import 'antd/lib/select/style';
3
- import 'antd/lib/space/style';
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- require("antd/lib/date-picker/style");
8
-
9
- require("antd/lib/select/style");
10
-
11
- require("antd/lib/space/style");