@daryasidorovich/modsen-datepicker 1.0.6 → 1.0.8
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.
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/index.cjs +186 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +186 -103
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import Delete from '@assets/actions/Delete.svg?react';
|
|
2
|
-
import Edit from '@assets/actions/Edit.svg?react';
|
|
3
|
-
import Calendar from '@assets/input/Calendar.svg?react';
|
|
4
|
-
import Clear$1 from '@assets/input/Clear.svg?react';
|
|
5
|
-
import Next from '@assets/arrows/Next.svg?react';
|
|
6
|
-
import Prev from '@assets/arrows/Prev.svg?react';
|
|
7
|
-
|
|
8
1
|
const FIRST_DAY_OF_WEEK = {
|
|
9
2
|
MONDAY: 1,
|
|
10
3
|
SUNDAY: 0,
|
|
@@ -107,7 +100,7 @@ function requireReact_production () {
|
|
|
107
100
|
}
|
|
108
101
|
var ReactNoopUpdateQueue = {
|
|
109
102
|
isMounted: function () {
|
|
110
|
-
return
|
|
103
|
+
return false;
|
|
111
104
|
},
|
|
112
105
|
enqueueForceUpdate: function () {},
|
|
113
106
|
enqueueReplaceState: function () {},
|
|
@@ -147,7 +140,7 @@ function requireReact_production () {
|
|
|
147
140
|
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
|
148
141
|
pureComponentPrototype.constructor = PureComponent;
|
|
149
142
|
assign(pureComponentPrototype, Component.prototype);
|
|
150
|
-
pureComponentPrototype.isPureReactComponent =
|
|
143
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
151
144
|
var isArrayImpl = Array.isArray;
|
|
152
145
|
function noop() {}
|
|
153
146
|
var ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
|
@@ -222,20 +215,20 @@ function requireReact_production () {
|
|
|
222
215
|
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
223
216
|
var type = typeof children;
|
|
224
217
|
if ("undefined" === type || "boolean" === type) children = null;
|
|
225
|
-
var invokeCallback =
|
|
226
|
-
if (null === children) invokeCallback =
|
|
218
|
+
var invokeCallback = false;
|
|
219
|
+
if (null === children) invokeCallback = true;
|
|
227
220
|
else
|
|
228
221
|
switch (type) {
|
|
229
222
|
case "bigint":
|
|
230
223
|
case "string":
|
|
231
224
|
case "number":
|
|
232
|
-
invokeCallback =
|
|
225
|
+
invokeCallback = true;
|
|
233
226
|
break;
|
|
234
227
|
case "object":
|
|
235
228
|
switch (children.$$typeof) {
|
|
236
229
|
case REACT_ELEMENT_TYPE:
|
|
237
230
|
case REACT_PORTAL_TYPE:
|
|
238
|
-
invokeCallback =
|
|
231
|
+
invokeCallback = true;
|
|
239
232
|
break;
|
|
240
233
|
case REACT_LAZY_TYPE:
|
|
241
234
|
return (
|
|
@@ -365,8 +358,8 @@ function requireReact_production () {
|
|
|
365
358
|
"function" === typeof window.ErrorEvent
|
|
366
359
|
) {
|
|
367
360
|
var event = new window.ErrorEvent("error", {
|
|
368
|
-
bubbles:
|
|
369
|
-
cancelable:
|
|
361
|
+
bubbles: true,
|
|
362
|
+
cancelable: true,
|
|
370
363
|
message:
|
|
371
364
|
"object" === typeof error &&
|
|
372
365
|
null !== error &&
|
|
@@ -671,7 +664,7 @@ function requireReact_development () {
|
|
|
671
664
|
callerName,
|
|
672
665
|
publicInstance
|
|
673
666
|
),
|
|
674
|
-
(didWarnStateUpdateForUnmountedComponent[warningKey] =
|
|
667
|
+
(didWarnStateUpdateForUnmountedComponent[warningKey] = true));
|
|
675
668
|
}
|
|
676
669
|
function Component(props, context, updater) {
|
|
677
670
|
this.props = props;
|
|
@@ -695,7 +688,7 @@ function requireReact_development () {
|
|
|
695
688
|
testStringCoercion(value);
|
|
696
689
|
var JSCompiler_inline_result = !1;
|
|
697
690
|
} catch (e) {
|
|
698
|
-
JSCompiler_inline_result =
|
|
691
|
+
JSCompiler_inline_result = true;
|
|
699
692
|
}
|
|
700
693
|
if (JSCompiler_inline_result) {
|
|
701
694
|
JSCompiler_inline_result = console;
|
|
@@ -797,29 +790,29 @@ function requireReact_development () {
|
|
|
797
790
|
function hasValidKey(config) {
|
|
798
791
|
if (hasOwnProperty.call(config, "key")) {
|
|
799
792
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
800
|
-
if (getter && getter.isReactWarning) return
|
|
793
|
+
if (getter && getter.isReactWarning) return false;
|
|
801
794
|
}
|
|
802
795
|
return void 0 !== config.key;
|
|
803
796
|
}
|
|
804
797
|
function defineKeyPropWarningGetter(props, displayName) {
|
|
805
798
|
function warnAboutAccessingKey() {
|
|
806
799
|
specialPropKeyWarningShown ||
|
|
807
|
-
((specialPropKeyWarningShown =
|
|
800
|
+
((specialPropKeyWarningShown = true),
|
|
808
801
|
console.error(
|
|
809
802
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
810
803
|
displayName
|
|
811
804
|
));
|
|
812
805
|
}
|
|
813
|
-
warnAboutAccessingKey.isReactWarning =
|
|
806
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
814
807
|
Object.defineProperty(props, "key", {
|
|
815
808
|
get: warnAboutAccessingKey,
|
|
816
|
-
configurable:
|
|
809
|
+
configurable: true
|
|
817
810
|
});
|
|
818
811
|
}
|
|
819
812
|
function elementRefGetterWithDeprecationWarning() {
|
|
820
813
|
var componentName = getComponentNameFromType(this.type);
|
|
821
814
|
didWarnAboutElementRef[componentName] ||
|
|
822
|
-
((didWarnAboutElementRef[componentName] =
|
|
815
|
+
((didWarnAboutElementRef[componentName] = true),
|
|
823
816
|
console.error(
|
|
824
817
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
825
818
|
));
|
|
@@ -837,33 +830,33 @@ function requireReact_development () {
|
|
|
837
830
|
};
|
|
838
831
|
null !== (void 0 !== refProp ? refProp : null)
|
|
839
832
|
? Object.defineProperty(type, "ref", {
|
|
840
|
-
enumerable:
|
|
833
|
+
enumerable: false,
|
|
841
834
|
get: elementRefGetterWithDeprecationWarning
|
|
842
835
|
})
|
|
843
|
-
: Object.defineProperty(type, "ref", { enumerable:
|
|
836
|
+
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
844
837
|
type._store = {};
|
|
845
838
|
Object.defineProperty(type._store, "validated", {
|
|
846
|
-
configurable:
|
|
847
|
-
enumerable:
|
|
848
|
-
writable:
|
|
839
|
+
configurable: false,
|
|
840
|
+
enumerable: false,
|
|
841
|
+
writable: true,
|
|
849
842
|
value: 0
|
|
850
843
|
});
|
|
851
844
|
Object.defineProperty(type, "_debugInfo", {
|
|
852
|
-
configurable:
|
|
853
|
-
enumerable:
|
|
854
|
-
writable:
|
|
845
|
+
configurable: false,
|
|
846
|
+
enumerable: false,
|
|
847
|
+
writable: true,
|
|
855
848
|
value: null
|
|
856
849
|
});
|
|
857
850
|
Object.defineProperty(type, "_debugStack", {
|
|
858
|
-
configurable:
|
|
859
|
-
enumerable:
|
|
860
|
-
writable:
|
|
851
|
+
configurable: false,
|
|
852
|
+
enumerable: false,
|
|
853
|
+
writable: true,
|
|
861
854
|
value: debugStack
|
|
862
855
|
});
|
|
863
856
|
Object.defineProperty(type, "_debugTask", {
|
|
864
|
-
configurable:
|
|
865
|
-
enumerable:
|
|
866
|
-
writable:
|
|
857
|
+
configurable: false,
|
|
858
|
+
enumerable: false,
|
|
859
|
+
writable: true,
|
|
867
860
|
value: debugTask
|
|
868
861
|
});
|
|
869
862
|
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
@@ -953,20 +946,20 @@ function requireReact_development () {
|
|
|
953
946
|
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
954
947
|
var type = typeof children;
|
|
955
948
|
if ("undefined" === type || "boolean" === type) children = null;
|
|
956
|
-
var invokeCallback =
|
|
957
|
-
if (null === children) invokeCallback =
|
|
949
|
+
var invokeCallback = false;
|
|
950
|
+
if (null === children) invokeCallback = true;
|
|
958
951
|
else
|
|
959
952
|
switch (type) {
|
|
960
953
|
case "bigint":
|
|
961
954
|
case "string":
|
|
962
955
|
case "number":
|
|
963
|
-
invokeCallback =
|
|
956
|
+
invokeCallback = true;
|
|
964
957
|
break;
|
|
965
958
|
case "object":
|
|
966
959
|
switch (children.$$typeof) {
|
|
967
960
|
case REACT_ELEMENT_TYPE:
|
|
968
961
|
case REACT_PORTAL_TYPE:
|
|
969
|
-
invokeCallback =
|
|
962
|
+
invokeCallback = true;
|
|
970
963
|
break;
|
|
971
964
|
case REACT_LAZY_TYPE:
|
|
972
965
|
return (
|
|
@@ -1042,7 +1035,7 @@ function requireReact_development () {
|
|
|
1042
1035
|
console.warn(
|
|
1043
1036
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
1044
1037
|
),
|
|
1045
|
-
(didWarnAboutMaps =
|
|
1038
|
+
(didWarnAboutMaps = true)),
|
|
1046
1039
|
children = i.call(children),
|
|
1047
1040
|
i = 0;
|
|
1048
1041
|
!(nameSoFar = children.next()).done;
|
|
@@ -1162,8 +1155,8 @@ function requireReact_development () {
|
|
|
1162
1155
|
).setImmediate;
|
|
1163
1156
|
} catch (_err) {
|
|
1164
1157
|
enqueueTaskImpl = function (callback) {
|
|
1165
|
-
|
|
1166
|
-
((didWarnAboutMessageChannel =
|
|
1158
|
+
false === didWarnAboutMessageChannel &&
|
|
1159
|
+
((didWarnAboutMessageChannel = true),
|
|
1167
1160
|
"undefined" === typeof MessageChannel &&
|
|
1168
1161
|
console.error(
|
|
1169
1162
|
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
@@ -1209,7 +1202,7 @@ function requireReact_development () {
|
|
|
1209
1202
|
}
|
|
1210
1203
|
function flushActQueue(queue) {
|
|
1211
1204
|
if (!isFlushing) {
|
|
1212
|
-
isFlushing =
|
|
1205
|
+
isFlushing = true;
|
|
1213
1206
|
var i = 0;
|
|
1214
1207
|
try {
|
|
1215
1208
|
for (; i < queue.length; i++) {
|
|
@@ -1231,7 +1224,7 @@ function requireReact_development () {
|
|
|
1231
1224
|
} catch (error) {
|
|
1232
1225
|
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
1233
1226
|
} finally {
|
|
1234
|
-
isFlushing =
|
|
1227
|
+
isFlushing = false;
|
|
1235
1228
|
}
|
|
1236
1229
|
}
|
|
1237
1230
|
}
|
|
@@ -1256,7 +1249,7 @@ function requireReact_development () {
|
|
|
1256
1249
|
didWarnStateUpdateForUnmountedComponent = {},
|
|
1257
1250
|
ReactNoopUpdateQueue = {
|
|
1258
1251
|
isMounted: function () {
|
|
1259
|
-
return
|
|
1252
|
+
return false;
|
|
1260
1253
|
},
|
|
1261
1254
|
enqueueForceUpdate: function (publicInstance) {
|
|
1262
1255
|
warnNoop(publicInstance, "forceUpdate");
|
|
@@ -1303,7 +1296,7 @@ function requireReact_development () {
|
|
|
1303
1296
|
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1304
1297
|
deprecatedAPIs.constructor = PureComponent;
|
|
1305
1298
|
assign(deprecatedAPIs, Component.prototype);
|
|
1306
|
-
deprecatedAPIs.isPureReactComponent =
|
|
1299
|
+
deprecatedAPIs.isPureReactComponent = true;
|
|
1307
1300
|
var isArrayImpl = Array.isArray,
|
|
1308
1301
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
1309
1302
|
ReactSharedInternals = {
|
|
@@ -1313,9 +1306,9 @@ function requireReact_development () {
|
|
|
1313
1306
|
S: null,
|
|
1314
1307
|
actQueue: null,
|
|
1315
1308
|
asyncTransitions: 0,
|
|
1316
|
-
isBatchingLegacy:
|
|
1317
|
-
didScheduleLegacyUpdate:
|
|
1318
|
-
didUsePromise:
|
|
1309
|
+
isBatchingLegacy: false,
|
|
1310
|
+
didScheduleLegacyUpdate: false,
|
|
1311
|
+
didUsePromise: false,
|
|
1319
1312
|
thrownErrors: [],
|
|
1320
1313
|
getCurrentStack: null,
|
|
1321
1314
|
recentlyCreatedOwnerStacks: 0
|
|
@@ -1338,7 +1331,7 @@ function requireReact_development () {
|
|
|
1338
1331
|
UnknownOwner
|
|
1339
1332
|
)();
|
|
1340
1333
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1341
|
-
var didWarnAboutMaps =
|
|
1334
|
+
var didWarnAboutMaps = false,
|
|
1342
1335
|
userProvidedKeyEscapeRegex = /\/+/g,
|
|
1343
1336
|
reportGlobalError =
|
|
1344
1337
|
"function" === typeof reportError
|
|
@@ -1349,8 +1342,8 @@ function requireReact_development () {
|
|
|
1349
1342
|
"function" === typeof window.ErrorEvent
|
|
1350
1343
|
) {
|
|
1351
1344
|
var event = new window.ErrorEvent("error", {
|
|
1352
|
-
bubbles:
|
|
1353
|
-
cancelable:
|
|
1345
|
+
bubbles: true,
|
|
1346
|
+
cancelable: true,
|
|
1354
1347
|
message:
|
|
1355
1348
|
"object" === typeof error &&
|
|
1356
1349
|
null !== error &&
|
|
@@ -1369,11 +1362,11 @@ function requireReact_development () {
|
|
|
1369
1362
|
}
|
|
1370
1363
|
console.error(error);
|
|
1371
1364
|
},
|
|
1372
|
-
didWarnAboutMessageChannel =
|
|
1365
|
+
didWarnAboutMessageChannel = false,
|
|
1373
1366
|
enqueueTaskImpl = null,
|
|
1374
1367
|
actScopeDepth = 0,
|
|
1375
|
-
didWarnNoAwaitAct =
|
|
1376
|
-
isFlushing =
|
|
1368
|
+
didWarnNoAwaitAct = false,
|
|
1369
|
+
isFlushing = false,
|
|
1377
1370
|
queueSeveralMicrotasks =
|
|
1378
1371
|
"function" === typeof queueMicrotask
|
|
1379
1372
|
? function (callback) {
|
|
@@ -1438,7 +1431,7 @@ function requireReact_development () {
|
|
|
1438
1431
|
actScopeDepth++;
|
|
1439
1432
|
var queue = (ReactSharedInternals.actQueue =
|
|
1440
1433
|
null !== prevActQueue ? prevActQueue : []),
|
|
1441
|
-
didAwaitActCall =
|
|
1434
|
+
didAwaitActCall = false;
|
|
1442
1435
|
try {
|
|
1443
1436
|
var result = callback();
|
|
1444
1437
|
} catch (error) {
|
|
@@ -1460,14 +1453,14 @@ function requireReact_development () {
|
|
|
1460
1453
|
queueSeveralMicrotasks(function () {
|
|
1461
1454
|
didAwaitActCall ||
|
|
1462
1455
|
didWarnNoAwaitAct ||
|
|
1463
|
-
((didWarnNoAwaitAct =
|
|
1456
|
+
((didWarnNoAwaitAct = true),
|
|
1464
1457
|
console.error(
|
|
1465
1458
|
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1466
1459
|
));
|
|
1467
1460
|
});
|
|
1468
1461
|
return {
|
|
1469
1462
|
then: function (resolve, reject) {
|
|
1470
|
-
didAwaitActCall =
|
|
1463
|
+
didAwaitActCall = true;
|
|
1471
1464
|
thenable.then(
|
|
1472
1465
|
function (returnValue) {
|
|
1473
1466
|
popActScope(prevActQueue, prevActScopeDepth);
|
|
@@ -1515,7 +1508,7 @@ function requireReact_development () {
|
|
|
1515
1508
|
queueSeveralMicrotasks(function () {
|
|
1516
1509
|
didAwaitActCall ||
|
|
1517
1510
|
didWarnNoAwaitAct ||
|
|
1518
|
-
((didWarnNoAwaitAct =
|
|
1511
|
+
((didWarnNoAwaitAct = true),
|
|
1519
1512
|
console.error(
|
|
1520
1513
|
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1521
1514
|
));
|
|
@@ -1529,7 +1522,7 @@ function requireReact_development () {
|
|
|
1529
1522
|
);
|
|
1530
1523
|
return {
|
|
1531
1524
|
then: function (resolve, reject) {
|
|
1532
|
-
didAwaitActCall =
|
|
1525
|
+
didAwaitActCall = true;
|
|
1533
1526
|
0 === prevActScopeDepth
|
|
1534
1527
|
? ((ReactSharedInternals.actQueue = queue),
|
|
1535
1528
|
enqueueTask(function () {
|
|
@@ -1576,7 +1569,7 @@ function requireReact_development () {
|
|
|
1576
1569
|
).get) &&
|
|
1577
1570
|
JSCompiler_inline_result.isReactWarning
|
|
1578
1571
|
) {
|
|
1579
|
-
JSCompiler_inline_result =
|
|
1572
|
+
JSCompiler_inline_result = false;
|
|
1580
1573
|
break a;
|
|
1581
1574
|
}
|
|
1582
1575
|
JSCompiler_inline_result = void 0 !== config.ref;
|
|
@@ -1639,7 +1632,7 @@ function requireReact_development () {
|
|
|
1639
1632
|
for (propName in (didWarnAboutOldJSXRuntime ||
|
|
1640
1633
|
!("__self" in config) ||
|
|
1641
1634
|
"key" in config ||
|
|
1642
|
-
((didWarnAboutOldJSXRuntime =
|
|
1635
|
+
((didWarnAboutOldJSXRuntime = true),
|
|
1643
1636
|
console.warn(
|
|
1644
1637
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1645
1638
|
)),
|
|
@@ -1714,8 +1707,8 @@ function requireReact_development () {
|
|
|
1714
1707
|
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
|
|
1715
1708
|
ownName;
|
|
1716
1709
|
Object.defineProperty(elementType, "displayName", {
|
|
1717
|
-
enumerable:
|
|
1718
|
-
configurable:
|
|
1710
|
+
enumerable: false,
|
|
1711
|
+
configurable: true,
|
|
1719
1712
|
get: function () {
|
|
1720
1713
|
return ownName;
|
|
1721
1714
|
},
|
|
@@ -1763,8 +1756,8 @@ function requireReact_development () {
|
|
|
1763
1756
|
};
|
|
1764
1757
|
var ownName;
|
|
1765
1758
|
Object.defineProperty(compare, "displayName", {
|
|
1766
|
-
enumerable:
|
|
1767
|
-
configurable:
|
|
1759
|
+
enumerable: false,
|
|
1760
|
+
configurable: true,
|
|
1768
1761
|
get: function () {
|
|
1769
1762
|
return ownName;
|
|
1770
1763
|
},
|
|
@@ -2012,7 +2005,7 @@ function requireReactJsxRuntime_development () {
|
|
|
2012
2005
|
testStringCoercion(value);
|
|
2013
2006
|
var JSCompiler_inline_result = !1;
|
|
2014
2007
|
} catch (e) {
|
|
2015
|
-
JSCompiler_inline_result =
|
|
2008
|
+
JSCompiler_inline_result = true;
|
|
2016
2009
|
}
|
|
2017
2010
|
if (JSCompiler_inline_result) {
|
|
2018
2011
|
JSCompiler_inline_result = console;
|
|
@@ -2056,29 +2049,29 @@ function requireReactJsxRuntime_development () {
|
|
|
2056
2049
|
function hasValidKey(config) {
|
|
2057
2050
|
if (hasOwnProperty.call(config, "key")) {
|
|
2058
2051
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
2059
|
-
if (getter && getter.isReactWarning) return
|
|
2052
|
+
if (getter && getter.isReactWarning) return false;
|
|
2060
2053
|
}
|
|
2061
2054
|
return void 0 !== config.key;
|
|
2062
2055
|
}
|
|
2063
2056
|
function defineKeyPropWarningGetter(props, displayName) {
|
|
2064
2057
|
function warnAboutAccessingKey() {
|
|
2065
2058
|
specialPropKeyWarningShown ||
|
|
2066
|
-
((specialPropKeyWarningShown =
|
|
2059
|
+
((specialPropKeyWarningShown = true),
|
|
2067
2060
|
console.error(
|
|
2068
2061
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
2069
2062
|
displayName
|
|
2070
2063
|
));
|
|
2071
2064
|
}
|
|
2072
|
-
warnAboutAccessingKey.isReactWarning =
|
|
2065
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
2073
2066
|
Object.defineProperty(props, "key", {
|
|
2074
2067
|
get: warnAboutAccessingKey,
|
|
2075
|
-
configurable:
|
|
2068
|
+
configurable: true
|
|
2076
2069
|
});
|
|
2077
2070
|
}
|
|
2078
2071
|
function elementRefGetterWithDeprecationWarning() {
|
|
2079
2072
|
var componentName = getComponentNameFromType(this.type);
|
|
2080
2073
|
didWarnAboutElementRef[componentName] ||
|
|
2081
|
-
((didWarnAboutElementRef[componentName] =
|
|
2074
|
+
((didWarnAboutElementRef[componentName] = true),
|
|
2082
2075
|
console.error(
|
|
2083
2076
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
2084
2077
|
));
|
|
@@ -2096,33 +2089,33 @@ function requireReactJsxRuntime_development () {
|
|
|
2096
2089
|
};
|
|
2097
2090
|
null !== (void 0 !== refProp ? refProp : null)
|
|
2098
2091
|
? Object.defineProperty(type, "ref", {
|
|
2099
|
-
enumerable:
|
|
2092
|
+
enumerable: false,
|
|
2100
2093
|
get: elementRefGetterWithDeprecationWarning
|
|
2101
2094
|
})
|
|
2102
|
-
: Object.defineProperty(type, "ref", { enumerable:
|
|
2095
|
+
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
2103
2096
|
type._store = {};
|
|
2104
2097
|
Object.defineProperty(type._store, "validated", {
|
|
2105
|
-
configurable:
|
|
2106
|
-
enumerable:
|
|
2107
|
-
writable:
|
|
2098
|
+
configurable: false,
|
|
2099
|
+
enumerable: false,
|
|
2100
|
+
writable: true,
|
|
2108
2101
|
value: 0
|
|
2109
2102
|
});
|
|
2110
2103
|
Object.defineProperty(type, "_debugInfo", {
|
|
2111
|
-
configurable:
|
|
2112
|
-
enumerable:
|
|
2113
|
-
writable:
|
|
2104
|
+
configurable: false,
|
|
2105
|
+
enumerable: false,
|
|
2106
|
+
writable: true,
|
|
2114
2107
|
value: null
|
|
2115
2108
|
});
|
|
2116
2109
|
Object.defineProperty(type, "_debugStack", {
|
|
2117
|
-
configurable:
|
|
2118
|
-
enumerable:
|
|
2119
|
-
writable:
|
|
2110
|
+
configurable: false,
|
|
2111
|
+
enumerable: false,
|
|
2112
|
+
writable: true,
|
|
2120
2113
|
value: debugStack
|
|
2121
2114
|
});
|
|
2122
2115
|
Object.defineProperty(type, "_debugTask", {
|
|
2123
|
-
configurable:
|
|
2124
|
-
enumerable:
|
|
2125
|
-
writable:
|
|
2116
|
+
configurable: false,
|
|
2117
|
+
enumerable: false,
|
|
2118
|
+
writable: true,
|
|
2126
2119
|
value: debugTask
|
|
2127
2120
|
});
|
|
2128
2121
|
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
@@ -2171,7 +2164,7 @@ function requireReactJsxRuntime_development () {
|
|
|
2171
2164
|
keys,
|
|
2172
2165
|
children
|
|
2173
2166
|
),
|
|
2174
|
-
(didWarnAboutKeySpread[children + isStaticChildren] =
|
|
2167
|
+
(didWarnAboutKeySpread[children + isStaticChildren] = true));
|
|
2175
2168
|
}
|
|
2176
2169
|
children = null;
|
|
2177
2170
|
void 0 !== maybeKey &&
|
|
@@ -2263,7 +2256,7 @@ function requireReactJsxRuntime_development () {
|
|
|
2263
2256
|
type,
|
|
2264
2257
|
config,
|
|
2265
2258
|
maybeKey,
|
|
2266
|
-
|
|
2259
|
+
false,
|
|
2267
2260
|
trackActualOwner
|
|
2268
2261
|
? Error("react-stack-top-frame")
|
|
2269
2262
|
: unknownOwnerDebugStack,
|
|
@@ -2277,7 +2270,7 @@ function requireReactJsxRuntime_development () {
|
|
|
2277
2270
|
type,
|
|
2278
2271
|
config,
|
|
2279
2272
|
maybeKey,
|
|
2280
|
-
|
|
2273
|
+
true,
|
|
2281
2274
|
trackActualOwner
|
|
2282
2275
|
? Error("react-stack-top-frame")
|
|
2283
2276
|
: unknownOwnerDebugStack,
|
|
@@ -2526,7 +2519,6 @@ var classnames = {exports: {}};
|
|
|
2526
2519
|
Licensed under the MIT License (MIT), see
|
|
2527
2520
|
http://jedwatson.github.io/classnames
|
|
2528
2521
|
*/
|
|
2529
|
-
classnames.exports;
|
|
2530
2522
|
|
|
2531
2523
|
var hasRequiredClassnames;
|
|
2532
2524
|
|
|
@@ -2607,7 +2599,7 @@ function requireClassnames () {
|
|
|
2607
2599
|
var classnamesExports = requireClassnames();
|
|
2608
2600
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
2609
2601
|
|
|
2610
|
-
var e=[],t$2=[];function n$1(n,r){if(n&&"undefined"!=typeof document){var a,s
|
|
2602
|
+
var e=[],t$2=[];function n$1(n,r){if(n&&"undefined"!=typeof document){var a,s=true===r.prepend?"prepend":"append",d=true===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t$2[u]={}),a=t$2[u]&&t$2[u][s]?t$2[u][s]:t$2[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
2611
2603
|
|
|
2612
2604
|
var css$d = ".day {\n width: 32px;\n height: 32px;\n}\n:global(.theme-light) .day {\n background-color: #ffffff;\n color: #333333;\n}\n:global(.theme-dark) .day {\n background-color: #333333;\n color: #ffffff;\n}\n.day {\n font-size: 13px;\n padding: 10px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: 600;\n border: none;\n position: relative;\n}\n\n:global(.theme-light) .holiday {\n color: #ff383c;\n}\n:global(.theme-dark) .holiday {\n color: #ff383c;\n}\n\n:global(.theme-light) .today {\n color: #2f80ed;\n}\n:global(.theme-dark) .today {\n color: #2f80ed;\n}\n\n:global(.theme-light) .selected {\n background-color: #2f80ed;\n color: #ffffff;\n}\n:global(.theme-dark) .selected {\n background-color: #2f80ed;\n color: #e1e1e1;\n}\n\n:global(.theme-light) .disabled {\n color: #aaaaaa;\n}\n:global(.theme-dark) .disabled {\n color: #aaaaaa;\n}\n.disabled {\n cursor: not-allowed;\n}\n\n:global(.theme-light) .otherMonth {\n color: #aaaaaa;\n}\n:global(.theme-dark) .otherMonth {\n color: #aaaaaa;\n}\n\n:global(.theme-light) .rangeStart {\n color: #ffffff;\n background-color: rgba(47, 129, 237, 0.5764705882);\n}\n:global(.theme-dark) .rangeStart {\n color: #e1e1e1;\n background-color: rgba(47, 129, 237, 0.5764705882);\n}\n.rangeStart {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n:global(.theme-light) .rangeMiddle {\n background-color: rgba(47, 129, 237, 0.1647058824);\n}\n:global(.theme-dark) .rangeMiddle {\n background-color: rgba(47, 129, 237, 0.1647058824);\n}\n.rangeMiddle {\n border-radius: 0;\n}\n\n:global(.theme-light) .rangeEnd {\n color: #ffffff;\n background-color: #2f80ed;\n}\n:global(.theme-dark) .rangeEnd {\n color: #e1e1e1;\n background-color: #2f80ed;\n}\n.rangeEnd {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.hasTasks {\n position: relative;\n}\n.hasTasks::after {\n width: 4px;\n height: 4px;\n}\n:global(.theme-light) .hasTasks::after {\n background-color: #62d0a2;\n}\n:global(.theme-dark) .hasTasks::after {\n background-color: #62d0a2;\n}\n.hasTasks::after {\n content: \"\";\n position: absolute;\n top: 12%;\n right: 12%;\n border-radius: 100%;\n}";
|
|
2613
2605
|
n$1(css$d,{});
|
|
@@ -2917,6 +2909,40 @@ const CalendarGridWithoutTasks = ({ children, ...props }) => {
|
|
|
2917
2909
|
return (jsxRuntimeExports.jsxs("div", { className: css$b.calendar, children: [weeks.map((weekDays) => (jsxRuntimeExports.jsx(Week, { weekDays: weekDays, selectedDate: calendar.selectedDate, getIsDisabled: calendar.getIsDisabled, getIsCurrentMonth: calendar.getIsCurrentMonth, getIsHoliday: calendar.getIsHoliday, rangeStart: calendar.rangeStart, rangeEnd: calendar.rangeEnd, ...props }, weekDays[0].toISOString()))), error && jsxRuntimeExports.jsx("p", { className: css$b.errorMessage, children: error }), loading && jsxRuntimeExports.jsx("div", { children: "Loading..." }), children] }));
|
|
2918
2910
|
};
|
|
2919
2911
|
|
|
2912
|
+
var _path$5;
|
|
2913
|
+
function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
|
|
2914
|
+
var SvgDelete = function SvgDelete(props) {
|
|
2915
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$5({
|
|
2916
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2917
|
+
width: 14,
|
|
2918
|
+
height: 14,
|
|
2919
|
+
fill: "none"
|
|
2920
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/reactExports.createElement("path", {
|
|
2921
|
+
stroke: "currentColor",
|
|
2922
|
+
strokeLinecap: "round",
|
|
2923
|
+
strokeLinejoin: "round",
|
|
2924
|
+
strokeWidth: 1.167,
|
|
2925
|
+
d: "m12.583.583-12 12M.583.583l12 12"
|
|
2926
|
+
})));
|
|
2927
|
+
};
|
|
2928
|
+
|
|
2929
|
+
var _path$4;
|
|
2930
|
+
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
2931
|
+
var SvgEdit = function SvgEdit(props) {
|
|
2932
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$4({
|
|
2933
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2934
|
+
width: 24,
|
|
2935
|
+
height: 24,
|
|
2936
|
+
fill: "none"
|
|
2937
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/reactExports.createElement("path", {
|
|
2938
|
+
stroke: "currentColor",
|
|
2939
|
+
strokeLinecap: "round",
|
|
2940
|
+
strokeLinejoin: "round",
|
|
2941
|
+
strokeWidth: 1.167,
|
|
2942
|
+
d: "M21.174 6.812a2.819 2.819 0 1 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"
|
|
2943
|
+
})));
|
|
2944
|
+
};
|
|
2945
|
+
|
|
2920
2946
|
const useModal = (options = {}) => {
|
|
2921
2947
|
const { initial = false, onOpen, onClose } = options;
|
|
2922
2948
|
const [isOpen, setIsOpen] = reactExports.useState(initial);
|
|
@@ -3203,7 +3229,7 @@ function requireReactDom_development () {
|
|
|
3203
3229
|
testStringCoercion(key);
|
|
3204
3230
|
var JSCompiler_inline_result = !1;
|
|
3205
3231
|
} catch (e) {
|
|
3206
|
-
JSCompiler_inline_result =
|
|
3232
|
+
JSCompiler_inline_result = true;
|
|
3207
3233
|
}
|
|
3208
3234
|
JSCompiler_inline_result &&
|
|
3209
3235
|
(console.error(
|
|
@@ -3749,7 +3775,6 @@ function cloneObject(data) {
|
|
|
3749
3775
|
const EVENTS = {
|
|
3750
3776
|
BLUR: 'blur',
|
|
3751
3777
|
FOCUS_OUT: 'focusout',
|
|
3752
|
-
CHANGE: 'change',
|
|
3753
3778
|
SUBMIT: 'submit',
|
|
3754
3779
|
TRIGGER: 'trigger',
|
|
3755
3780
|
VALID: 'valid',
|
|
@@ -3841,7 +3866,6 @@ var getProxyFormState = (formState, control, localProxyFormState, isRoot = true)
|
|
|
3841
3866
|
if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {
|
|
3842
3867
|
control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;
|
|
3843
3868
|
}
|
|
3844
|
-
localProxyFormState && (localProxyFormState[_key] = true);
|
|
3845
3869
|
return formState[_key];
|
|
3846
3870
|
},
|
|
3847
3871
|
});
|
|
@@ -3920,10 +3944,7 @@ function useResyncOnReconnect(getInitialValue) {
|
|
|
3920
3944
|
const _prevValue = React.useRef(undefined);
|
|
3921
3945
|
const _renderCount = React.useRef(0);
|
|
3922
3946
|
_renderCount.current++;
|
|
3923
|
-
if (!_initialized.current && getInitialValue)
|
|
3924
|
-
_initialized.current = true;
|
|
3925
|
-
_prevValue.current = cloneObject(getInitialValue());
|
|
3926
|
-
}
|
|
3947
|
+
if (!_initialized.current && getInitialValue) ;
|
|
3927
3948
|
const resyncIfNeeded = React.useCallback((enabled, getCurrentValue, setValue) => {
|
|
3928
3949
|
if (enabled &&
|
|
3929
3950
|
(_connected.current ||
|
|
@@ -6311,6 +6332,34 @@ const t$1=(r,t,s)=>{if(r&&"reportValidity"in r){const o=get(s,t);r.setCustomVali
|
|
|
6311
6332
|
|
|
6312
6333
|
function o(){return o=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(r[o]=n[o]);}return r},o.apply(null,arguments)}function t(r,e){try{var n=r();}catch(r){return e(r)}return n&&n.then?n.then(void 0,e):n}function s(r,e){for(var o=Object.create(null);r.length;){var t=r[0],s=t.code,i=t.message,u=t.path.join(".");if(!o[u])if("unionErrors"in t){var a,c,l=t.unionErrors.reduce(function(r,e){return e.errors.length<r.errors.length?e:r}).errors[0];o[u]={message:null!=(a=null==l?void 0:l.message)?a:i,type:null!=(c=null==l?void 0:l.code)?c:s};}else o[u]={message:i,type:s};if("unionErrors"in t&&t.unionErrors.forEach(function(e){return e.errors.forEach(function(e){return r.push(e)})}),e){var f=o[u].types,d=f&&f[t.code];o[u]=appendErrors(u,e,o,s,d?[].concat(d,t.message):t.message);}r.shift();}return o}function i(r,e){for(var t=Object.create(null),s=function(){var s=r[0],i=s.code,u=s.message,a=s.path.join(".");if(!t[a])if("invalid_union"===s.code&&s.errors.length>0){var c,l,f=s.errors.reduce(function(r,e){return e.length<r.length?e:r})[0];t[a]={message:null!=(c=null==f?void 0:f.message)?c:u,type:null!=(l=null==f?void 0:f.code)?l:i};}else t[a]={message:u,type:i};if("invalid_union"===s.code&&s.errors.forEach(function(e){return e.forEach(function(e){return r.push(o({},e,{path:[].concat(s.path,e.path)}))})}),e){var d=t[a].types,h=d&&d[s.code];t[a]=appendErrors(a,e,t,i,h?[].concat(h,s.message):s.message);}r.shift();};r.length;)s();return t}function u(n,o,u){if(void 0===u&&(u={}),function(r){return "_zod"in r&&"object"==typeof r._zod}(n))return function(s,a,c){try{return Promise.resolve(t(function(){function e(e){return c.shouldUseNativeValidation&&s$1({},c),{errors:{},values:u.raw?Object.assign({},s):e}}var t=n;return "sync"===u.mode?e(t.parse(s,o)):Promise.resolve(t.parseAsync(s,o)).then(e)},function(r){if(function(r){var e;return !(null==r||null==(e=r._zod)||null==(e=e.traits)||!e.has("$ZodError"))}(r))return {values:{},errors:o$1(i(r.issues,!c.shouldUseNativeValidation&&"all"===c.criteriaMode),c)};throw r}))}catch(r){return Promise.reject(r)}};if(function(r){return "_def"in r&&"object"==typeof r._def}(n))return function(i,a,c){try{return Promise.resolve(t(function(){return Promise.resolve(n["sync"===u.mode?"parse":"parseAsync"](i,o)).then(function(e){return c.shouldUseNativeValidation&&s$1({},c),{errors:{},values:u.raw?Object.assign({},i):e}})},function(r){if(function(r){return Array.isArray(null==r?void 0:r.issues)}(r))return {values:{},errors:o$1(s(r.errors,!c.shouldUseNativeValidation&&"all"===c.criteriaMode),c)};throw r}))}catch(r){return Promise.reject(r)}};throw new Error("Invalid input: not a Zod schema")}
|
|
6313
6334
|
|
|
6335
|
+
var _path$3;
|
|
6336
|
+
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
6337
|
+
var SvgCalendar = function SvgCalendar(props) {
|
|
6338
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$3({
|
|
6339
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6340
|
+
width: 16,
|
|
6341
|
+
height: 16,
|
|
6342
|
+
fill: "none"
|
|
6343
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/reactExports.createElement("path", {
|
|
6344
|
+
fill: "currentColor",
|
|
6345
|
+
d: "M8.2 9.6a.77.77 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57A.77.77 0 0 1 8.2 8q.34 0 .57.23T9 8.8a.77.77 0 0 1-.23.57.78.78 0 0 1-.57.23M5 9.6a.78.78 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57A.78.78 0 0 1 5 8q.34 0 .57.23t.23.57a.77.77 0 0 1-.23.57.78.78 0 0 1-.57.23m6.4 0a.77.77 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57A.77.77 0 0 1 11.4 8q.34 0 .57.23t.23.57a.77.77 0 0 1-.23.57.77.77 0 0 1-.57.23m-3.2 3.2a.77.77 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57a.77.77 0 0 1 .57-.23q.34 0 .57.23T9 12a.77.77 0 0 1-.23.57.78.78 0 0 1-.57.23m-3.2 0a.78.78 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57A.78.78 0 0 1 5 11.2q.34 0 .57.23t.23.57a.77.77 0 0 1-.23.57.78.78 0 0 1-.57.23m6.4 0a.77.77 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57a.77.77 0 0 1 .57-.23q.34 0 .57.23t.23.57a.77.77 0 0 1-.23.57.77.77 0 0 1-.57.23M2.6 16q-.66 0-1.13-.47A1.54 1.54 0 0 1 1 14.4V3.2q0-.66.47-1.13T2.6 1.6h.8V0H5v1.6h6.4V0H13v1.6h.8q.66 0 1.13.47t.47 1.13v11.2q0 .66-.47 1.13T13.8 16zm0-1.6h11.2v-8H2.6z"
|
|
6346
|
+
})));
|
|
6347
|
+
};
|
|
6348
|
+
|
|
6349
|
+
var _path$2;
|
|
6350
|
+
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
6351
|
+
var SvgClear = function SvgClear(props) {
|
|
6352
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$2({
|
|
6353
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6354
|
+
width: 16,
|
|
6355
|
+
height: 16,
|
|
6356
|
+
fill: "none"
|
|
6357
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/reactExports.createElement("path", {
|
|
6358
|
+
fill: "currentColor",
|
|
6359
|
+
d: "M12.987 3.042c-2.73-2.723-7.21-2.723-9.94 0-2.73 2.724-2.73 7.192 0 9.916a6.983 6.983 0 0 0 9.87 0c2.73-2.724 2.8-7.192.07-9.916m-3.01 7.89-1.96-1.954-1.96 1.955-.98-.978L7.037 8l-1.96-1.955.98-.978 1.96 1.955 1.96-1.955.98.978L8.997 8l1.96 1.955z"
|
|
6360
|
+
})));
|
|
6361
|
+
};
|
|
6362
|
+
|
|
6314
6363
|
var css$9 = ":global(.theme-light) .wrapper {\n color: #333333;\n background-color: #ffffff;\n}\n:global(.theme-dark) .wrapper {\n color: #ffffff;\n background-color: #333333;\n}\n.wrapper {\n display: flex;\n flex-direction: column;\n align-items: start;\n gap: 2px;\n width: 100%;\n}\n\n.label {\n font-size: 15px;\n font-weight: 600;\n margin-bottom: 8px;\n}\n\n:global(.theme-light) .inputWrapper {\n color: #333333;\n background-color: #ffffff;\n border-color: #e1e1e1;\n}\n:global(.theme-dark) .inputWrapper {\n color: #ffffff;\n background-color: #333333;\n border-color: #aaaaaa;\n}\n.inputWrapper {\n border-style: solid;\n border-width: 1px;\n padding: 8px 15px;\n border-radius: 8px;\n display: flex;\n gap: 8px;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n}\n\n:global(.theme-light) .errorWrapper {\n border-color: #ff383c;\n}\n:global(.theme-dark) .errorWrapper {\n border-color: #ff383c;\n}\n\n.input {\n border: none;\n outline: none;\n background-color: transparent;\n width: 100%;\n}\n:global(.theme-light) .input {\n color: #333333;\n}\n:global(.theme-dark) .input {\n color: #ffffff;\n}\n:global(.theme-light) .input::placeholder {\n color: #e1e1e1;\n}\n:global(.theme-dark) .input::placeholder {\n color: #aaaaaa;\n}\n\n.clear {\n border: none;\n background-color: transparent;\n width: max-content;\n padding: 0;\n}\n\n:global(.theme-light) .icon {\n color: #aaaaaa;\n}\n:global(.theme-dark) .icon {\n color: #aaaaaa;\n}\n\n:global(.theme-light) .error {\n color: #ff383c;\n}\n:global(.theme-dark) .error {\n color: #ff383c;\n}\n.error {\n height: 15px;\n}";
|
|
6315
6364
|
n$1(css$9,{});
|
|
6316
6365
|
|
|
@@ -6319,7 +6368,7 @@ const Input = ({ label, error, className = '', id, onReset, placeholder, type =
|
|
|
6319
6368
|
const inputId = id || `input-${generatedId}`;
|
|
6320
6369
|
return (jsxRuntimeExports.jsxs("div", { className: css$9.wrapper, children: [label && (jsxRuntimeExports.jsx("label", { htmlFor: inputId, className: css$9.label, children: label })), jsxRuntimeExports.jsxs("div", { className: classNames(css$9.inputWrapper, {
|
|
6321
6370
|
[css$9.errorWrapper]: error,
|
|
6322
|
-
}), children: [isDateInput && jsxRuntimeExports.jsx(
|
|
6371
|
+
}), children: [isDateInput && jsxRuntimeExports.jsx(SvgCalendar, { className: css$9.icon }), jsxRuntimeExports.jsx("input", { id: inputId, type: type, ref: ref, placeholder: placeholder, className: classNames(css$9.input, className), ...restProps }), isDateInput && onReset && (jsxRuntimeExports.jsx("button", { className: css$9.clear, onClick: onReset, type: "button", children: jsxRuntimeExports.jsx(SvgClear, { className: css$9.icon }) }))] }), jsxRuntimeExports.jsx("span", { className: css$9.error, children: error ?? '' })] }));
|
|
6323
6372
|
};
|
|
6324
6373
|
|
|
6325
6374
|
var css$8 = ".header {\n margin-bottom: 24px;\n margin-top: 8px;\n}\n\n.title {\n font-size: 18px;\n}\n\n.footer {\n display: flex;\n width: 100%;\n gap: 10px;\n justify-content: end;\n}\n\n.children {\n display: flex;\n gap: 8px;\n flex-direction: column;\n min-width: 300px;\n width: fit-content;\n margin-bottom: 24px;\n}\n\n:global(.theme-light) .modalButtons {\n background-color: rgba(47, 129, 237, 0.1647058824);\n border-color: #e1e1e1;\n color: #333333;\n}\n:global(.theme-dark) .modalButtons {\n background-color: rgba(47, 129, 237, 0.1647058824);\n border-color: #aaaaaa;\n color: #ffffff;\n}\n.modalButtons {\n border-style: solid;\n border-width: 1px;\n padding: 5px 10px;\n border-radius: 8px;\n}\n\n:global(.theme-light) .confirm {\n background-color: rgba(47, 129, 237, 0.5764705882);\n border-color: #e1e1e1;\n color: #ffffff;\n}\n:global(.theme-dark) .confirm {\n background-color: rgba(47, 129, 237, 0.5764705882);\n border-color: #aaaaaa;\n color: #e1e1e1;\n}";
|
|
@@ -11815,7 +11864,7 @@ const TasksManager = ({ onClose, isOpen, tasks, selectedDate, }) => {
|
|
|
11815
11864
|
};
|
|
11816
11865
|
return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(Modal, { isOpen: isOpen, onClose: onClose, children: jsxRuntimeExports.jsxs("div", { className: css$7.tasksManager, children: [jsxRuntimeExports.jsx("h1", { className: css$7.header, children: "Tasks for the day:" }), jsxRuntimeExports.jsx("button", { className: css$7.add, onClick: handleAddTask, children: "Add task" }), jsxRuntimeExports.jsxs("ul", { className: css$7.tasks, children: [tasks.length < 1 && (jsxRuntimeExports.jsx("li", { children: jsxRuntimeExports.jsx("p", { children: "No tasks added" }) })), tasks.map(({ id, title, completed }) => (jsxRuntimeExports.jsxs("li", { className: classNames(css$7.task, {
|
|
11817
11866
|
[css$7.checked]: completed,
|
|
11818
|
-
}), children: [jsxRuntimeExports.jsx("input", { type: "checkbox", checked: completed, onChange: handleToggle(id) }), jsxRuntimeExports.jsx("p", { className: css$7.title, children: title }), jsxRuntimeExports.jsx("button", { onClick: handleEditTask(id), className: css$7.action, children: jsxRuntimeExports.jsx(
|
|
11867
|
+
}), children: [jsxRuntimeExports.jsx("input", { type: "checkbox", checked: completed, onChange: handleToggle(id) }), jsxRuntimeExports.jsx("p", { className: css$7.title, children: title }), jsxRuntimeExports.jsx("button", { onClick: handleEditTask(id), className: css$7.action, children: jsxRuntimeExports.jsx(SvgEdit, {}) }), jsxRuntimeExports.jsx("button", { onClick: handleDeleteTask(id), className: classNames(css$7.action, css$7.delete), children: jsxRuntimeExports.jsx(SvgDelete, {}) })] }, id)))] })] }) }), jsxRuntimeExports.jsx(AddModal, { isOpen: addModal.isOpen, onClose: addModal.close, date: selectedDate }), jsxRuntimeExports.jsx(EditModal, { isOpen: editModal.isOpen, onClose: editModal.close, id: currentTaskId, date: selectedDate }), jsxRuntimeExports.jsx(DeleteModal, { isOpen: deleteModal.isOpen, onClose: deleteModal.close, id: currentTaskId })] }));
|
|
11819
11868
|
};
|
|
11820
11869
|
|
|
11821
11870
|
const useTooltip = () => {
|
|
@@ -11900,13 +11949,47 @@ const MONTHS_NAMES = [
|
|
|
11900
11949
|
'December',
|
|
11901
11950
|
];
|
|
11902
11951
|
|
|
11952
|
+
var _path$1, _path2$1;
|
|
11953
|
+
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
11954
|
+
var SvgNext = function SvgNext(props) {
|
|
11955
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$1({
|
|
11956
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11957
|
+
width: 16,
|
|
11958
|
+
height: 16,
|
|
11959
|
+
fill: "none"
|
|
11960
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/reactExports.createElement("path", {
|
|
11961
|
+
fill: "currentColor",
|
|
11962
|
+
d: "m4.273 4-.94.94L6.387 8l-3.054 3.06.94.94 4-4z"
|
|
11963
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/reactExports.createElement("path", {
|
|
11964
|
+
fill: "currentColor",
|
|
11965
|
+
d: "m8.667 4-.94.94L10.78 8l-3.053 3.06.94.94 4-4z"
|
|
11966
|
+
})));
|
|
11967
|
+
};
|
|
11968
|
+
|
|
11969
|
+
var _path, _path2;
|
|
11970
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11971
|
+
var SvgPrev = function SvgPrev(props) {
|
|
11972
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends({
|
|
11973
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11974
|
+
width: 16,
|
|
11975
|
+
height: 16,
|
|
11976
|
+
fill: "none"
|
|
11977
|
+
}, props), _path || (_path = /*#__PURE__*/reactExports.createElement("path", {
|
|
11978
|
+
fill: "currentColor",
|
|
11979
|
+
d: "m11.727 12 .94-.94L9.613 8l3.054-3.06-.94-.94-4 4z"
|
|
11980
|
+
})), _path2 || (_path2 = /*#__PURE__*/reactExports.createElement("path", {
|
|
11981
|
+
fill: "currentColor",
|
|
11982
|
+
d: "m7.333 12 .94-.94L5.22 8l3.053-3.06-.94-.94-4 4z"
|
|
11983
|
+
})));
|
|
11984
|
+
};
|
|
11985
|
+
|
|
11903
11986
|
var css$5 = ":global(.theme-light) .month {\n color: #333333;\n background-color: #ffffff;\n}\n:global(.theme-dark) .month {\n color: #ffffff;\n background-color: #333333;\n}\n.month {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n padding-block: 5px;\n gap: 2px;\n font-weight: 700;\n}\n\n:global(.theme-light) .arrow {\n color: #333333;\n}\n:global(.theme-dark) .arrow {\n color: #ffffff;\n}\n.arrow {\n width: max-content;\n border: none;\n background-color: transparent;\n}\n:global(.theme-light) .arrow:hover {\n color: rgba(47, 129, 237, 0.5764705882);\n}\n:global(.theme-dark) .arrow:hover {\n color: rgba(47, 129, 237, 0.5764705882);\n}";
|
|
11904
11987
|
n$1(css$5,{});
|
|
11905
11988
|
|
|
11906
11989
|
const Month = ({ date, onPrev, onNext }) => {
|
|
11907
11990
|
const year = date.getFullYear();
|
|
11908
11991
|
const month = MONTHS_NAMES[date.getMonth()];
|
|
11909
|
-
return (jsxRuntimeExports.jsxs("div", { className: css$5.month, children: [jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onPrev, type: "button", children: jsxRuntimeExports.jsx(
|
|
11992
|
+
return (jsxRuntimeExports.jsxs("div", { className: css$5.month, children: [jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onPrev, type: "button", children: jsxRuntimeExports.jsx(SvgPrev, {}) }), jsxRuntimeExports.jsxs("p", { children: [month, " ", year] }), jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onNext, type: "button", children: jsxRuntimeExports.jsx(SvgNext, {}) })] }));
|
|
11910
11993
|
};
|
|
11911
11994
|
|
|
11912
11995
|
const WEEKDAYS_NAMES = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
|
|
@@ -12475,7 +12558,7 @@ class InputHistory {
|
|
|
12475
12558
|
return this.go(-1);
|
|
12476
12559
|
}
|
|
12477
12560
|
redo() {
|
|
12478
|
-
return this.go(
|
|
12561
|
+
return this.go(1);
|
|
12479
12562
|
}
|
|
12480
12563
|
clear() {
|
|
12481
12564
|
this.states.length = 0;
|