@lotte-innovate/ui-component-test 0.0.139 → 0.0.141

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,6 +47,6 @@ export var useDarkMode = function (isRAxes) {
47
47
  return function () {
48
48
  mutationObserver.disconnect();
49
49
  };
50
- }, [darkmode, lightmode, setIsDarkMode]);
50
+ }, []);
51
51
  return [isDarkMode, defaultOptions];
52
52
  };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{slateA as o,slateDarkA as n}from"../color/alpha.mjs";import{useState as d,useEffect as c}from"react";var t=function(t){void 0===t&&(t=!1);var i={},r={};!0===t?(i={r:{grid:{color:o[8]}}},r={r:{grid:{color:n[8]},ticks:{backdropColor:"rgba(0, 0, 0, 0)"}}}):(i={x:{grid:{color:o[8]}},y:{grid:{color:o[8]}}},r={x:{grid:{color:n[8]}},y:{grid:{color:n[8]}}});var e=d(!1),l=e[0],u=e[1],a=d({linescale:{}}),s=a[0],m=a[1];return c((function(){var o,n;u(null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.classList.contains("dark")),m({linescale:(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.classList.contains("dark"))?r:i});var d=new MutationObserver((function(o){o.forEach((function(o){"class"===o.attributeName&&(u(null===document||void 0===document?void 0:document.body.classList.contains("dark")),m({linescale:(null===document||void 0===document?void 0:document.body.classList.contains("dark"))?r:i}))}))}));return document&&d.observe(null===document||void 0===document?void 0:document.body,{attributes:!0}),function(){d.disconnect()}}),[r,i,u]),[l,s]};export{t as useDarkMode};
2
+ import{slateA as o,slateDarkA as n}from"../color/alpha.mjs";import{useState as d,useEffect as c}from"react";var t=function(t){void 0===t&&(t=!1);var i={},r={};!0===t?(i={r:{grid:{color:o[8]}}},r={r:{grid:{color:n[8]},ticks:{backdropColor:"rgba(0, 0, 0, 0)"}}}):(i={x:{grid:{color:o[8]}},y:{grid:{color:o[8]}}},r={x:{grid:{color:n[8]}},y:{grid:{color:n[8]}}});var e=d(!1),l=e[0],u=e[1],a=d({linescale:{}}),s=a[0],m=a[1];return c((function(){var o,n;u(null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.classList.contains("dark")),m({linescale:(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.classList.contains("dark"))?r:i});var d=new MutationObserver((function(o){o.forEach((function(o){"class"===o.attributeName&&(u(null===document||void 0===document?void 0:document.body.classList.contains("dark")),m({linescale:(null===document||void 0===document?void 0:document.body.classList.contains("dark"))?r:i}))}))}));return document&&d.observe(null===document||void 0===document?void 0:document.body,{attributes:!0}),function(){d.disconnect()}}),[]),[l,s]};export{t as useDarkMode};
3
3
  //# sourceMappingURL=useDarkMode.mjs.map
@@ -1 +1,37 @@
1
- export declare const loadTinyMCE: () => Promise<void>;
1
+ /// <reference path="../../../../declarations.d.ts" />
2
+ import 'tinymce/tinymce.js';
3
+ import 'tinymce/themes/silver/theme.js';
4
+ import 'tinymce/models/dom/model.js';
5
+ import 'tinymce/icons/default/icons.js';
6
+ import 'tinymce/plugins/advlist/plugin.js';
7
+ import 'tinymce/plugins/code/plugin.js';
8
+ import 'tinymce/plugins/codesample/plugin.js';
9
+ import 'tinymce/plugins/link/plugin.js';
10
+ import 'tinymce/plugins/lists/plugin.js';
11
+ import 'tinymce/plugins/table/plugin.js';
12
+ import 'tinymce/plugins/image/plugin.js';
13
+ import 'tinymce/plugins/preview/plugin.js';
14
+ import 'tinymce/plugins/importcss/plugin.js';
15
+ import 'tinymce/plugins/searchreplace/plugin.js';
16
+ import 'tinymce/plugins/autolink/plugin.js';
17
+ import 'tinymce/plugins/autosave/plugin.js';
18
+ import 'tinymce/plugins/save/plugin.js';
19
+ import 'tinymce/plugins/directionality/plugin.js';
20
+ import 'tinymce/plugins/visualblocks/plugin.js';
21
+ import 'tinymce/plugins/visualchars/plugin.js';
22
+ import 'tinymce/plugins/fullscreen/plugin.js';
23
+ import 'tinymce/plugins/media/plugin.js';
24
+ import 'tinymce/plugins/charmap/plugin.js';
25
+ import 'tinymce/plugins/pagebreak/plugin.js';
26
+ import 'tinymce/plugins/nonbreaking/plugin.js';
27
+ import 'tinymce/plugins/anchor/plugin.js';
28
+ import 'tinymce/plugins/insertdatetime/plugin.js';
29
+ import 'tinymce/plugins/wordcount/plugin.js';
30
+ import 'tinymce/plugins/quickbars/plugin.js';
31
+ import 'tinymce/plugins/emoticons/plugin.js';
32
+ import 'tinymce/plugins/accordion/plugin.js';
33
+ import '../../lib/utils/langs/ko_KR.js';
34
+ import '../../lib/utils/langs/it.js';
35
+ import '../../lib/utils/langs/ja.js';
36
+ import '../../lib/utils/langs/vi.js';
37
+ import '../../lib/utils/langs/zh_CN.js';
@@ -1,154 +1,36 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __generator = (this && this.__generator) || function (thisArg, body) {
11
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
- function verb(n) { return function (v) { return step([n, v]); }; }
14
- function step(op) {
15
- if (f) throw new TypeError("Generator is already executing.");
16
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
- if (y = 0, t) op = [op[0] & 2, t.value];
19
- switch (op[0]) {
20
- case 0: case 1: t = op; break;
21
- case 4: _.label++; return { value: op[1], done: false };
22
- case 5: _.label++; y = op[1]; op = [0]; continue;
23
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
- default:
25
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
- if (t[2]) _.ops.pop();
30
- _.trys.pop(); continue;
31
- }
32
- op = body.call(thisArg, _);
33
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
- }
36
- };
37
- export var loadTinyMCE = function () { return __awaiter(void 0, void 0, void 0, function () {
38
- return __generator(this, function (_a) {
39
- switch (_a.label) {
40
- case 0: return [4 /*yield*/, import('tinymce/tinymce.js')];
41
- case 1:
42
- _a.sent();
43
- return [4 /*yield*/, import('tinymce/themes/silver/theme.js')];
44
- case 2:
45
- _a.sent();
46
- return [4 /*yield*/, import('tinymce/models/dom/model.js')];
47
- case 3:
48
- _a.sent();
49
- return [4 /*yield*/, import('tinymce/icons/default/icons.js')];
50
- case 4:
51
- _a.sent();
52
- return [4 /*yield*/, import('tinymce/plugins/advlist/plugin.js')];
53
- case 5:
54
- _a.sent();
55
- return [4 /*yield*/, import('tinymce/plugins/code/plugin.js')];
56
- case 6:
57
- _a.sent();
58
- return [4 /*yield*/, import('tinymce/plugins/codesample/plugin.js')];
59
- case 7:
60
- _a.sent();
61
- return [4 /*yield*/, import('tinymce/plugins/link/plugin.js')];
62
- case 8:
63
- _a.sent();
64
- return [4 /*yield*/, import('tinymce/plugins/lists/plugin.js')];
65
- case 9:
66
- _a.sent();
67
- return [4 /*yield*/, import('tinymce/plugins/table/plugin.js')];
68
- case 10:
69
- _a.sent();
70
- return [4 /*yield*/, import('tinymce/plugins/image/plugin.js')];
71
- case 11:
72
- _a.sent();
73
- return [4 /*yield*/, import('tinymce/plugins/preview/plugin.js')];
74
- case 12:
75
- _a.sent();
76
- return [4 /*yield*/, import('tinymce/plugins/importcss/plugin.js')];
77
- case 13:
78
- _a.sent();
79
- return [4 /*yield*/, import('tinymce/plugins/searchreplace/plugin.js')];
80
- case 14:
81
- _a.sent();
82
- return [4 /*yield*/, import('tinymce/plugins/autolink/plugin.js')];
83
- case 15:
84
- _a.sent();
85
- return [4 /*yield*/, import('tinymce/plugins/autosave/plugin.js')];
86
- case 16:
87
- _a.sent();
88
- return [4 /*yield*/, import('tinymce/plugins/save/plugin.js')];
89
- case 17:
90
- _a.sent();
91
- return [4 /*yield*/, import('tinymce/plugins/directionality/plugin.js')];
92
- case 18:
93
- _a.sent();
94
- return [4 /*yield*/, import('tinymce/plugins/visualblocks/plugin.js')];
95
- case 19:
96
- _a.sent();
97
- return [4 /*yield*/, import('tinymce/plugins/visualchars/plugin.js')];
98
- case 20:
99
- _a.sent();
100
- return [4 /*yield*/, import('tinymce/plugins/fullscreen/plugin.js')];
101
- case 21:
102
- _a.sent();
103
- return [4 /*yield*/, import('tinymce/plugins/media/plugin.js')];
104
- case 22:
105
- _a.sent();
106
- return [4 /*yield*/, import('tinymce/plugins/template/plugin.js')];
107
- case 23:
108
- _a.sent();
109
- return [4 /*yield*/, import('tinymce/plugins/charmap/plugin.js')];
110
- case 24:
111
- _a.sent();
112
- return [4 /*yield*/, import('tinymce/plugins/pagebreak/plugin.js')];
113
- case 25:
114
- _a.sent();
115
- return [4 /*yield*/, import('tinymce/plugins/nonbreaking/plugin.js')];
116
- case 26:
117
- _a.sent();
118
- return [4 /*yield*/, import('tinymce/plugins/anchor/plugin.js')];
119
- case 27:
120
- _a.sent();
121
- return [4 /*yield*/, import('tinymce/plugins/insertdatetime/plugin.js')];
122
- case 28:
123
- _a.sent();
124
- return [4 /*yield*/, import('tinymce/plugins/wordcount/plugin.js')];
125
- case 29:
126
- _a.sent();
127
- return [4 /*yield*/, import('tinymce/plugins/quickbars/plugin.js')];
128
- case 30:
129
- _a.sent();
130
- return [4 /*yield*/, import('tinymce/plugins/emoticons/plugin.js')];
131
- case 31:
132
- _a.sent();
133
- return [4 /*yield*/, import('tinymce/plugins/accordion/plugin.js')];
134
- case 32:
135
- _a.sent();
136
- return [4 /*yield*/, import('../../lib/utils/langs/ko_KR.js')];
137
- case 33:
138
- _a.sent();
139
- return [4 /*yield*/, import('../../lib/utils/langs/it.js')];
140
- case 34:
141
- _a.sent();
142
- return [4 /*yield*/, import('../../lib/utils/langs/ja.js')];
143
- case 35:
144
- _a.sent();
145
- return [4 /*yield*/, import('../../lib/utils/langs/vi.js')];
146
- case 36:
147
- _a.sent();
148
- return [4 /*yield*/, import('../../lib/utils/langs/zh_CN.js')];
149
- case 37:
150
- _a.sent();
151
- return [2 /*return*/];
152
- }
153
- });
154
- }); };
1
+ import 'tinymce/tinymce.js';
2
+ import 'tinymce/themes/silver/theme.js';
3
+ import 'tinymce/models/dom/model.js';
4
+ import 'tinymce/icons/default/icons.js';
5
+ import 'tinymce/plugins/advlist/plugin.js';
6
+ import 'tinymce/plugins/code/plugin.js';
7
+ import 'tinymce/plugins/codesample/plugin.js';
8
+ import 'tinymce/plugins/link/plugin.js';
9
+ import 'tinymce/plugins/lists/plugin.js';
10
+ import 'tinymce/plugins/table/plugin.js';
11
+ import 'tinymce/plugins/image/plugin.js';
12
+ import 'tinymce/plugins/preview/plugin.js';
13
+ import 'tinymce/plugins/importcss/plugin.js';
14
+ import 'tinymce/plugins/searchreplace/plugin.js';
15
+ import 'tinymce/plugins/autolink/plugin.js';
16
+ import 'tinymce/plugins/autosave/plugin.js';
17
+ import 'tinymce/plugins/save/plugin.js';
18
+ import 'tinymce/plugins/directionality/plugin.js';
19
+ import 'tinymce/plugins/visualblocks/plugin.js';
20
+ import 'tinymce/plugins/visualchars/plugin.js';
21
+ import 'tinymce/plugins/fullscreen/plugin.js';
22
+ import 'tinymce/plugins/media/plugin.js';
23
+ import 'tinymce/plugins/charmap/plugin.js';
24
+ import 'tinymce/plugins/pagebreak/plugin.js';
25
+ import 'tinymce/plugins/nonbreaking/plugin.js';
26
+ import 'tinymce/plugins/anchor/plugin.js';
27
+ import 'tinymce/plugins/insertdatetime/plugin.js';
28
+ import 'tinymce/plugins/wordcount/plugin.js';
29
+ import 'tinymce/plugins/quickbars/plugin.js';
30
+ import 'tinymce/plugins/emoticons/plugin.js';
31
+ import 'tinymce/plugins/accordion/plugin.js';
32
+ import '../../lib/utils/langs/ko_KR.js';
33
+ import '../../lib/utils/langs/it.js';
34
+ import '../../lib/utils/langs/ja.js';
35
+ import '../../lib/utils/langs/vi.js';
36
+ import '../../lib/utils/langs/zh_CN.js';