@quen-ui/components 1.0.0 → 1.1.0

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 (132) hide show
  1. package/dist/Button/styles.cjs.js +6 -10
  2. package/dist/Button/styles.es.js +6 -10
  3. package/dist/Calendar/Calendar.cjs.js +5 -3
  4. package/dist/Calendar/Calendar.es.js +5 -3
  5. package/dist/Calendar/styles.cjs.js +0 -1
  6. package/dist/Calendar/styles.es.js +0 -1
  7. package/dist/Card/Card.cjs.js +8 -4
  8. package/dist/Card/Card.d.ts +1 -1
  9. package/dist/Card/Card.es.js +8 -4
  10. package/dist/Card/styles.cjs.js +9 -3
  11. package/dist/Card/styles.d.ts +3 -1
  12. package/dist/Card/styles.es.js +9 -3
  13. package/dist/Card/types.d.ts +2 -0
  14. package/dist/Drawer/Drawer.cjs.js +2 -2
  15. package/dist/Dropdown/Dropdown.cjs.js +2 -2
  16. package/dist/Form/Form.cjs.js +1 -1
  17. package/dist/Form/Form.es.js +1 -1
  18. package/dist/Image/styles.cjs.js +3 -1
  19. package/dist/Image/styles.es.js +3 -1
  20. package/dist/Layout/Footer.cjs.js +9 -0
  21. package/dist/Layout/Footer.d.ts +1 -2
  22. package/dist/Layout/Footer.es.js +9 -0
  23. package/dist/Layout/Header.cjs.js +12 -4
  24. package/dist/Layout/Header.es.js +12 -4
  25. package/dist/Layout/Layout.cjs.js +8 -3
  26. package/dist/Layout/Layout.d.ts +1 -1
  27. package/dist/Layout/Layout.es.js +8 -3
  28. package/dist/Layout/Sidebar.cjs.js +2 -1
  29. package/dist/Layout/Sidebar.es.js +2 -1
  30. package/dist/Layout/styles.cjs.js +6 -4
  31. package/dist/Layout/styles.d.ts +2 -0
  32. package/dist/Layout/styles.es.js +6 -4
  33. package/dist/Layout/types.d.ts +6 -0
  34. package/dist/Menu/MenuItem.cjs.js +9 -1
  35. package/dist/Menu/MenuItem.es.js +9 -1
  36. package/dist/Menu/styles.cjs.js +3 -1
  37. package/dist/Menu/styles.es.js +3 -1
  38. package/dist/Menu/types.d.ts +4 -1
  39. package/dist/Modal/Modal.cjs.js +4 -4
  40. package/dist/Modal/Modal.es.js +2 -2
  41. package/dist/Modal/styles.cjs.js +3 -1
  42. package/dist/Modal/styles.es.js +3 -1
  43. package/dist/Notification/NotificationInstance.cjs.js +2 -2
  44. package/dist/RichTextEditor/plugins.cjs.js +28 -51
  45. package/dist/RichTextEditor/plugins.es.js +4 -27
  46. package/dist/index.cjs.js +93 -0
  47. package/dist/index.d.ts +65 -1
  48. package/dist/index.es.js +93 -0
  49. package/dist/typography/Text/Text.cjs.js +2 -2
  50. package/dist/typography/Text/Text.es.js +2 -2
  51. package/dist/typography/Text/types.d.ts +1 -1
  52. package/package.json +3 -2
  53. package/dist/_virtual/client.cjs.js +0 -5
  54. package/dist/_virtual/client.cjs2.js +0 -4
  55. package/dist/_virtual/client.es.js +0 -5
  56. package/dist/_virtual/client.es2.js +0 -4
  57. package/dist/_virtual/index.cjs.js +0 -4
  58. package/dist/_virtual/index.es.js +0 -4
  59. package/dist/_virtual/react-dom-client.development.cjs.js +0 -4
  60. package/dist/_virtual/react-dom-client.development.es.js +0 -4
  61. package/dist/_virtual/react-dom-client.production.cjs.js +0 -4
  62. package/dist/_virtual/react-dom-client.production.es.js +0 -4
  63. package/dist/_virtual/scheduler.development.cjs.js +0 -4
  64. package/dist/_virtual/scheduler.development.es.js +0 -4
  65. package/dist/_virtual/scheduler.production.cjs.js +0 -4
  66. package/dist/_virtual/scheduler.production.es.js +0 -4
  67. package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.cjs.js +0 -30
  68. package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.es.js +0 -31
  69. package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.cjs.js +0 -23
  70. package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.es.js +0 -24
  71. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignCenter.cjs.js +0 -7
  72. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignCenter.es.js +0 -7
  73. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignJustified.cjs.js +0 -7
  74. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignJustified.es.js +0 -7
  75. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignLeft.cjs.js +0 -7
  76. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignLeft.es.js +0 -7
  77. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignRight.cjs.js +0 -7
  78. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlignRight.es.js +0 -7
  79. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowBackUp.cjs.js +0 -7
  80. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowBackUp.es.js +0 -7
  81. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowForwardUp.cjs.js +0 -7
  82. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowForwardUp.es.js +0 -7
  83. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBlockquote.cjs.js +0 -7
  84. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBlockquote.es.js +0 -7
  85. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBold.cjs.js +0 -7
  86. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBold.es.js +0 -7
  87. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.cjs.js +0 -7
  88. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.es.js +0 -7
  89. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClearFormatting.cjs.js +0 -7
  90. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClearFormatting.es.js +0 -7
  91. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconH1.cjs.js +0 -7
  92. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconH1.es.js +0 -7
  93. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconH2.cjs.js +0 -7
  94. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconH2.es.js +0 -7
  95. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHighlight.cjs.js +0 -7
  96. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHighlight.es.js +0 -7
  97. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconImageInPicture.cjs.js +0 -7
  98. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconImageInPicture.es.js +0 -7
  99. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconItalic.cjs.js +0 -7
  100. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconItalic.es.js +0 -7
  101. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.cjs.js +0 -7
  102. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.es.js +0 -7
  103. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconList.cjs.js +0 -7
  104. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconList.es.js +0 -7
  105. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconListNumbers.cjs.js +0 -7
  106. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconListNumbers.es.js +0 -7
  107. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconStrikethrough.cjs.js +0 -7
  108. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconStrikethrough.es.js +0 -7
  109. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSubscript.cjs.js +0 -7
  110. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSubscript.es.js +0 -7
  111. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSuperscript.cjs.js +0 -7
  112. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSuperscript.es.js +0 -7
  113. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTable.cjs.js +0 -7
  114. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTable.es.js +0 -7
  115. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTextColor.cjs.js +0 -7
  116. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTextColor.es.js +0 -7
  117. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUnderline.cjs.js +0 -7
  118. package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUnderline.es.js +0 -7
  119. package/dist/node_modules/react-dom/cjs/react-dom-client.development.cjs.js +0 -19870
  120. package/dist/node_modules/react-dom/cjs/react-dom-client.development.es.js +0 -19870
  121. package/dist/node_modules/react-dom/cjs/react-dom-client.production.cjs.js +0 -11524
  122. package/dist/node_modules/react-dom/cjs/react-dom-client.production.es.js +0 -11524
  123. package/dist/node_modules/react-dom/client.cjs.js +0 -31
  124. package/dist/node_modules/react-dom/client.es.js +0 -31
  125. package/dist/node_modules/scheduler/cjs/scheduler.development.cjs.js +0 -264
  126. package/dist/node_modules/scheduler/cjs/scheduler.development.es.js +0 -264
  127. package/dist/node_modules/scheduler/cjs/scheduler.production.cjs.js +0 -259
  128. package/dist/node_modules/scheduler/cjs/scheduler.production.es.js +0 -259
  129. package/dist/node_modules/scheduler/index.cjs.js +0 -17
  130. package/dist/node_modules/scheduler/index.es.js +0 -17
  131. package/dist/packages/components/index.cjs.js +0 -93
  132. package/dist/packages/components/index.es.js +0 -93
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const client = require("../../_virtual/client.cjs2.js");
4
- const reactDomClient_production = require("./cjs/react-dom-client.production.cjs.js");
5
- const reactDomClient_development = require("./cjs/react-dom-client.development.cjs.js");
6
- var hasRequiredClient;
7
- function requireClient() {
8
- if (hasRequiredClient) return client.__module.exports;
9
- hasRequiredClient = 1;
10
- function checkDCE() {
11
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
12
- return;
13
- }
14
- if (process.env.NODE_ENV !== "production") {
15
- throw new Error("^_^");
16
- }
17
- try {
18
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
19
- } catch (err) {
20
- console.error(err);
21
- }
22
- }
23
- if (process.env.NODE_ENV === "production") {
24
- checkDCE();
25
- client.__module.exports = reactDomClient_production.__require();
26
- } else {
27
- client.__module.exports = reactDomClient_development.__require();
28
- }
29
- return client.__module.exports;
30
- }
31
- exports.__require = requireClient;
@@ -1,31 +0,0 @@
1
- import { __module as client } from "../../_virtual/client.es2.js";
2
- import { __require as requireReactDomClient_production } from "./cjs/react-dom-client.production.es.js";
3
- import { __require as requireReactDomClient_development } from "./cjs/react-dom-client.development.es.js";
4
- var hasRequiredClient;
5
- function requireClient() {
6
- if (hasRequiredClient) return client.exports;
7
- hasRequiredClient = 1;
8
- function checkDCE() {
9
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
10
- return;
11
- }
12
- if (process.env.NODE_ENV !== "production") {
13
- throw new Error("^_^");
14
- }
15
- try {
16
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
17
- } catch (err) {
18
- console.error(err);
19
- }
20
- }
21
- if (process.env.NODE_ENV === "production") {
22
- checkDCE();
23
- client.exports = requireReactDomClient_production();
24
- } else {
25
- client.exports = requireReactDomClient_development();
26
- }
27
- return client.exports;
28
- }
29
- export {
30
- requireClient as __require
31
- };
@@ -1,264 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const scheduler_development = require("../../../_virtual/scheduler.development.cjs.js");
4
- var hasRequiredScheduler_development;
5
- function requireScheduler_development() {
6
- if (hasRequiredScheduler_development) return scheduler_development.__exports;
7
- hasRequiredScheduler_development = 1;
8
- (function(exports$1) {
9
- "production" !== process.env.NODE_ENV && (function() {
10
- function performWorkUntilDeadline() {
11
- needsPaint = false;
12
- if (isMessageLoopRunning) {
13
- var currentTime = exports$1.unstable_now();
14
- startTime = currentTime;
15
- var hasMoreWork = true;
16
- try {
17
- a: {
18
- isHostCallbackScheduled = false;
19
- isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
20
- isPerformingWork = true;
21
- var previousPriorityLevel = currentPriorityLevel;
22
- try {
23
- b: {
24
- advanceTimers(currentTime);
25
- for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
26
- var callback = currentTask.callback;
27
- if ("function" === typeof callback) {
28
- currentTask.callback = null;
29
- currentPriorityLevel = currentTask.priorityLevel;
30
- var continuationCallback = callback(
31
- currentTask.expirationTime <= currentTime
32
- );
33
- currentTime = exports$1.unstable_now();
34
- if ("function" === typeof continuationCallback) {
35
- currentTask.callback = continuationCallback;
36
- advanceTimers(currentTime);
37
- hasMoreWork = true;
38
- break b;
39
- }
40
- currentTask === peek(taskQueue) && pop(taskQueue);
41
- advanceTimers(currentTime);
42
- } else pop(taskQueue);
43
- currentTask = peek(taskQueue);
44
- }
45
- if (null !== currentTask) hasMoreWork = true;
46
- else {
47
- var firstTimer = peek(timerQueue);
48
- null !== firstTimer && requestHostTimeout(
49
- handleTimeout,
50
- firstTimer.startTime - currentTime
51
- );
52
- hasMoreWork = false;
53
- }
54
- }
55
- break a;
56
- } finally {
57
- currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
58
- }
59
- hasMoreWork = void 0;
60
- }
61
- } finally {
62
- hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
63
- }
64
- }
65
- }
66
- function push(heap, node) {
67
- var index = heap.length;
68
- heap.push(node);
69
- a: for (; 0 < index; ) {
70
- var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
71
- if (0 < compare(parent, node))
72
- heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
73
- else break a;
74
- }
75
- }
76
- function peek(heap) {
77
- return 0 === heap.length ? null : heap[0];
78
- }
79
- function pop(heap) {
80
- if (0 === heap.length) return null;
81
- var first = heap[0], last = heap.pop();
82
- if (last !== first) {
83
- heap[0] = last;
84
- a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
85
- var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
86
- if (0 > compare(left, last))
87
- rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
88
- else if (rightIndex < length && 0 > compare(right, last))
89
- heap[index] = right, heap[rightIndex] = last, index = rightIndex;
90
- else break a;
91
- }
92
- }
93
- return first;
94
- }
95
- function compare(a, b) {
96
- var diff = a.sortIndex - b.sortIndex;
97
- return 0 !== diff ? diff : a.id - b.id;
98
- }
99
- function advanceTimers(currentTime) {
100
- for (var timer = peek(timerQueue); null !== timer; ) {
101
- if (null === timer.callback) pop(timerQueue);
102
- else if (timer.startTime <= currentTime)
103
- pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
104
- else break;
105
- timer = peek(timerQueue);
106
- }
107
- }
108
- function handleTimeout(currentTime) {
109
- isHostTimeoutScheduled = false;
110
- advanceTimers(currentTime);
111
- if (!isHostCallbackScheduled)
112
- if (null !== peek(taskQueue))
113
- isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
114
- else {
115
- var firstTimer = peek(timerQueue);
116
- null !== firstTimer && requestHostTimeout(
117
- handleTimeout,
118
- firstTimer.startTime - currentTime
119
- );
120
- }
121
- }
122
- function shouldYieldToHost() {
123
- return needsPaint ? true : exports$1.unstable_now() - startTime < frameInterval ? false : true;
124
- }
125
- function requestHostTimeout(callback, ms) {
126
- taskTimeoutID = localSetTimeout(function() {
127
- callback(exports$1.unstable_now());
128
- }, ms);
129
- }
130
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
131
- exports$1.unstable_now = void 0;
132
- if ("object" === typeof performance && "function" === typeof performance.now) {
133
- var localPerformance = performance;
134
- exports$1.unstable_now = function() {
135
- return localPerformance.now();
136
- };
137
- } else {
138
- var localDate = Date, initialTime = localDate.now();
139
- exports$1.unstable_now = function() {
140
- return localDate.now() - initialTime;
141
- };
142
- }
143
- var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
144
- if ("function" === typeof localSetImmediate)
145
- var schedulePerformWorkUntilDeadline = function() {
146
- localSetImmediate(performWorkUntilDeadline);
147
- };
148
- else if ("undefined" !== typeof MessageChannel) {
149
- var channel = new MessageChannel(), port = channel.port2;
150
- channel.port1.onmessage = performWorkUntilDeadline;
151
- schedulePerformWorkUntilDeadline = function() {
152
- port.postMessage(null);
153
- };
154
- } else
155
- schedulePerformWorkUntilDeadline = function() {
156
- localSetTimeout(performWorkUntilDeadline, 0);
157
- };
158
- exports$1.unstable_IdlePriority = 5;
159
- exports$1.unstable_ImmediatePriority = 1;
160
- exports$1.unstable_LowPriority = 4;
161
- exports$1.unstable_NormalPriority = 3;
162
- exports$1.unstable_Profiling = null;
163
- exports$1.unstable_UserBlockingPriority = 2;
164
- exports$1.unstable_cancelCallback = function(task) {
165
- task.callback = null;
166
- };
167
- exports$1.unstable_forceFrameRate = function(fps) {
168
- 0 > fps || 125 < fps ? console.error(
169
- "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
170
- ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
171
- };
172
- exports$1.unstable_getCurrentPriorityLevel = function() {
173
- return currentPriorityLevel;
174
- };
175
- exports$1.unstable_next = function(eventHandler) {
176
- switch (currentPriorityLevel) {
177
- case 1:
178
- case 2:
179
- case 3:
180
- var priorityLevel = 3;
181
- break;
182
- default:
183
- priorityLevel = currentPriorityLevel;
184
- }
185
- var previousPriorityLevel = currentPriorityLevel;
186
- currentPriorityLevel = priorityLevel;
187
- try {
188
- return eventHandler();
189
- } finally {
190
- currentPriorityLevel = previousPriorityLevel;
191
- }
192
- };
193
- exports$1.unstable_requestPaint = function() {
194
- needsPaint = true;
195
- };
196
- exports$1.unstable_runWithPriority = function(priorityLevel, eventHandler) {
197
- switch (priorityLevel) {
198
- case 1:
199
- case 2:
200
- case 3:
201
- case 4:
202
- case 5:
203
- break;
204
- default:
205
- priorityLevel = 3;
206
- }
207
- var previousPriorityLevel = currentPriorityLevel;
208
- currentPriorityLevel = priorityLevel;
209
- try {
210
- return eventHandler();
211
- } finally {
212
- currentPriorityLevel = previousPriorityLevel;
213
- }
214
- };
215
- exports$1.unstable_scheduleCallback = function(priorityLevel, callback, options) {
216
- var currentTime = exports$1.unstable_now();
217
- "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
218
- switch (priorityLevel) {
219
- case 1:
220
- var timeout = -1;
221
- break;
222
- case 2:
223
- timeout = 250;
224
- break;
225
- case 5:
226
- timeout = 1073741823;
227
- break;
228
- case 4:
229
- timeout = 1e4;
230
- break;
231
- default:
232
- timeout = 5e3;
233
- }
234
- timeout = options + timeout;
235
- priorityLevel = {
236
- id: taskIdCounter++,
237
- callback,
238
- priorityLevel,
239
- startTime: options,
240
- expirationTime: timeout,
241
- sortIndex: -1
242
- };
243
- options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
244
- return priorityLevel;
245
- };
246
- exports$1.unstable_shouldYield = shouldYieldToHost;
247
- exports$1.unstable_wrapCallback = function(callback) {
248
- var parentPriorityLevel = currentPriorityLevel;
249
- return function() {
250
- var previousPriorityLevel = currentPriorityLevel;
251
- currentPriorityLevel = parentPriorityLevel;
252
- try {
253
- return callback.apply(this, arguments);
254
- } finally {
255
- currentPriorityLevel = previousPriorityLevel;
256
- }
257
- };
258
- };
259
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
260
- })();
261
- })(scheduler_development.__exports);
262
- return scheduler_development.__exports;
263
- }
264
- exports.__require = requireScheduler_development;
@@ -1,264 +0,0 @@
1
- import { __exports as scheduler_development } from "../../../_virtual/scheduler.development.es.js";
2
- var hasRequiredScheduler_development;
3
- function requireScheduler_development() {
4
- if (hasRequiredScheduler_development) return scheduler_development;
5
- hasRequiredScheduler_development = 1;
6
- (function(exports$1) {
7
- "production" !== process.env.NODE_ENV && (function() {
8
- function performWorkUntilDeadline() {
9
- needsPaint = false;
10
- if (isMessageLoopRunning) {
11
- var currentTime = exports$1.unstable_now();
12
- startTime = currentTime;
13
- var hasMoreWork = true;
14
- try {
15
- a: {
16
- isHostCallbackScheduled = false;
17
- isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
18
- isPerformingWork = true;
19
- var previousPriorityLevel = currentPriorityLevel;
20
- try {
21
- b: {
22
- advanceTimers(currentTime);
23
- for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
24
- var callback = currentTask.callback;
25
- if ("function" === typeof callback) {
26
- currentTask.callback = null;
27
- currentPriorityLevel = currentTask.priorityLevel;
28
- var continuationCallback = callback(
29
- currentTask.expirationTime <= currentTime
30
- );
31
- currentTime = exports$1.unstable_now();
32
- if ("function" === typeof continuationCallback) {
33
- currentTask.callback = continuationCallback;
34
- advanceTimers(currentTime);
35
- hasMoreWork = true;
36
- break b;
37
- }
38
- currentTask === peek(taskQueue) && pop(taskQueue);
39
- advanceTimers(currentTime);
40
- } else pop(taskQueue);
41
- currentTask = peek(taskQueue);
42
- }
43
- if (null !== currentTask) hasMoreWork = true;
44
- else {
45
- var firstTimer = peek(timerQueue);
46
- null !== firstTimer && requestHostTimeout(
47
- handleTimeout,
48
- firstTimer.startTime - currentTime
49
- );
50
- hasMoreWork = false;
51
- }
52
- }
53
- break a;
54
- } finally {
55
- currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
56
- }
57
- hasMoreWork = void 0;
58
- }
59
- } finally {
60
- hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
61
- }
62
- }
63
- }
64
- function push(heap, node) {
65
- var index = heap.length;
66
- heap.push(node);
67
- a: for (; 0 < index; ) {
68
- var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
69
- if (0 < compare(parent, node))
70
- heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
71
- else break a;
72
- }
73
- }
74
- function peek(heap) {
75
- return 0 === heap.length ? null : heap[0];
76
- }
77
- function pop(heap) {
78
- if (0 === heap.length) return null;
79
- var first = heap[0], last = heap.pop();
80
- if (last !== first) {
81
- heap[0] = last;
82
- a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
83
- var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
84
- if (0 > compare(left, last))
85
- rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
86
- else if (rightIndex < length && 0 > compare(right, last))
87
- heap[index] = right, heap[rightIndex] = last, index = rightIndex;
88
- else break a;
89
- }
90
- }
91
- return first;
92
- }
93
- function compare(a, b) {
94
- var diff = a.sortIndex - b.sortIndex;
95
- return 0 !== diff ? diff : a.id - b.id;
96
- }
97
- function advanceTimers(currentTime) {
98
- for (var timer = peek(timerQueue); null !== timer; ) {
99
- if (null === timer.callback) pop(timerQueue);
100
- else if (timer.startTime <= currentTime)
101
- pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
102
- else break;
103
- timer = peek(timerQueue);
104
- }
105
- }
106
- function handleTimeout(currentTime) {
107
- isHostTimeoutScheduled = false;
108
- advanceTimers(currentTime);
109
- if (!isHostCallbackScheduled)
110
- if (null !== peek(taskQueue))
111
- isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
112
- else {
113
- var firstTimer = peek(timerQueue);
114
- null !== firstTimer && requestHostTimeout(
115
- handleTimeout,
116
- firstTimer.startTime - currentTime
117
- );
118
- }
119
- }
120
- function shouldYieldToHost() {
121
- return needsPaint ? true : exports$1.unstable_now() - startTime < frameInterval ? false : true;
122
- }
123
- function requestHostTimeout(callback, ms) {
124
- taskTimeoutID = localSetTimeout(function() {
125
- callback(exports$1.unstable_now());
126
- }, ms);
127
- }
128
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
129
- exports$1.unstable_now = void 0;
130
- if ("object" === typeof performance && "function" === typeof performance.now) {
131
- var localPerformance = performance;
132
- exports$1.unstable_now = function() {
133
- return localPerformance.now();
134
- };
135
- } else {
136
- var localDate = Date, initialTime = localDate.now();
137
- exports$1.unstable_now = function() {
138
- return localDate.now() - initialTime;
139
- };
140
- }
141
- var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
142
- if ("function" === typeof localSetImmediate)
143
- var schedulePerformWorkUntilDeadline = function() {
144
- localSetImmediate(performWorkUntilDeadline);
145
- };
146
- else if ("undefined" !== typeof MessageChannel) {
147
- var channel = new MessageChannel(), port = channel.port2;
148
- channel.port1.onmessage = performWorkUntilDeadline;
149
- schedulePerformWorkUntilDeadline = function() {
150
- port.postMessage(null);
151
- };
152
- } else
153
- schedulePerformWorkUntilDeadline = function() {
154
- localSetTimeout(performWorkUntilDeadline, 0);
155
- };
156
- exports$1.unstable_IdlePriority = 5;
157
- exports$1.unstable_ImmediatePriority = 1;
158
- exports$1.unstable_LowPriority = 4;
159
- exports$1.unstable_NormalPriority = 3;
160
- exports$1.unstable_Profiling = null;
161
- exports$1.unstable_UserBlockingPriority = 2;
162
- exports$1.unstable_cancelCallback = function(task) {
163
- task.callback = null;
164
- };
165
- exports$1.unstable_forceFrameRate = function(fps) {
166
- 0 > fps || 125 < fps ? console.error(
167
- "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
168
- ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
169
- };
170
- exports$1.unstable_getCurrentPriorityLevel = function() {
171
- return currentPriorityLevel;
172
- };
173
- exports$1.unstable_next = function(eventHandler) {
174
- switch (currentPriorityLevel) {
175
- case 1:
176
- case 2:
177
- case 3:
178
- var priorityLevel = 3;
179
- break;
180
- default:
181
- priorityLevel = currentPriorityLevel;
182
- }
183
- var previousPriorityLevel = currentPriorityLevel;
184
- currentPriorityLevel = priorityLevel;
185
- try {
186
- return eventHandler();
187
- } finally {
188
- currentPriorityLevel = previousPriorityLevel;
189
- }
190
- };
191
- exports$1.unstable_requestPaint = function() {
192
- needsPaint = true;
193
- };
194
- exports$1.unstable_runWithPriority = function(priorityLevel, eventHandler) {
195
- switch (priorityLevel) {
196
- case 1:
197
- case 2:
198
- case 3:
199
- case 4:
200
- case 5:
201
- break;
202
- default:
203
- priorityLevel = 3;
204
- }
205
- var previousPriorityLevel = currentPriorityLevel;
206
- currentPriorityLevel = priorityLevel;
207
- try {
208
- return eventHandler();
209
- } finally {
210
- currentPriorityLevel = previousPriorityLevel;
211
- }
212
- };
213
- exports$1.unstable_scheduleCallback = function(priorityLevel, callback, options) {
214
- var currentTime = exports$1.unstable_now();
215
- "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
216
- switch (priorityLevel) {
217
- case 1:
218
- var timeout = -1;
219
- break;
220
- case 2:
221
- timeout = 250;
222
- break;
223
- case 5:
224
- timeout = 1073741823;
225
- break;
226
- case 4:
227
- timeout = 1e4;
228
- break;
229
- default:
230
- timeout = 5e3;
231
- }
232
- timeout = options + timeout;
233
- priorityLevel = {
234
- id: taskIdCounter++,
235
- callback,
236
- priorityLevel,
237
- startTime: options,
238
- expirationTime: timeout,
239
- sortIndex: -1
240
- };
241
- options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
242
- return priorityLevel;
243
- };
244
- exports$1.unstable_shouldYield = shouldYieldToHost;
245
- exports$1.unstable_wrapCallback = function(callback) {
246
- var parentPriorityLevel = currentPriorityLevel;
247
- return function() {
248
- var previousPriorityLevel = currentPriorityLevel;
249
- currentPriorityLevel = parentPriorityLevel;
250
- try {
251
- return callback.apply(this, arguments);
252
- } finally {
253
- currentPriorityLevel = previousPriorityLevel;
254
- }
255
- };
256
- };
257
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
258
- })();
259
- })(scheduler_development);
260
- return scheduler_development;
261
- }
262
- export {
263
- requireScheduler_development as __require
264
- };