@daryasidorovich/modsen-datepicker 1.0.5 → 1.0.7
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/README.md +2 -2
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/index.cjs +90 -107
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +87 -93
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm install modsen-datepicker
|
|
29
|
+
npm install @daryasidorovich/modsen-datepicker
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Or via yarn:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
yarn add
|
|
35
|
+
yarn add @daryasidorovich/mmodsen-datepicker
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Requires **React 19+**.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, DetailedHTMLProps } from 'react';
|
|
2
|
+
type ButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
3
|
+
declare const Button: (props: ButtonProps) => import("react").JSX.Element;
|
|
4
|
+
export type { ButtonProps };
|
|
5
|
+
export default Button;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var Delete = require('@assets/actions/Delete.svg?react');
|
|
6
4
|
var Edit = require('@assets/actions/Edit.svg?react');
|
|
7
5
|
var Calendar = require('@assets/input/Calendar.svg?react');
|
|
@@ -9,15 +7,6 @@ var Clear$1 = require('@assets/input/Clear.svg?react');
|
|
|
9
7
|
var Next = require('@assets/arrows/Next.svg?react');
|
|
10
8
|
var Prev = require('@assets/arrows/Prev.svg?react');
|
|
11
9
|
|
|
12
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
-
|
|
14
|
-
var Delete__default = /*#__PURE__*/_interopDefaultLegacy(Delete);
|
|
15
|
-
var Edit__default = /*#__PURE__*/_interopDefaultLegacy(Edit);
|
|
16
|
-
var Calendar__default = /*#__PURE__*/_interopDefaultLegacy(Calendar);
|
|
17
|
-
var Clear__default = /*#__PURE__*/_interopDefaultLegacy(Clear$1);
|
|
18
|
-
var Next__default = /*#__PURE__*/_interopDefaultLegacy(Next);
|
|
19
|
-
var Prev__default = /*#__PURE__*/_interopDefaultLegacy(Prev);
|
|
20
|
-
|
|
21
10
|
const FIRST_DAY_OF_WEEK = {
|
|
22
11
|
MONDAY: 1,
|
|
23
12
|
SUNDAY: 0,
|
|
@@ -120,7 +109,7 @@ function requireReact_production () {
|
|
|
120
109
|
}
|
|
121
110
|
var ReactNoopUpdateQueue = {
|
|
122
111
|
isMounted: function () {
|
|
123
|
-
return
|
|
112
|
+
return false;
|
|
124
113
|
},
|
|
125
114
|
enqueueForceUpdate: function () {},
|
|
126
115
|
enqueueReplaceState: function () {},
|
|
@@ -160,7 +149,7 @@ function requireReact_production () {
|
|
|
160
149
|
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
|
161
150
|
pureComponentPrototype.constructor = PureComponent;
|
|
162
151
|
assign(pureComponentPrototype, Component.prototype);
|
|
163
|
-
pureComponentPrototype.isPureReactComponent =
|
|
152
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
164
153
|
var isArrayImpl = Array.isArray;
|
|
165
154
|
function noop() {}
|
|
166
155
|
var ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
|
@@ -235,20 +224,20 @@ function requireReact_production () {
|
|
|
235
224
|
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
236
225
|
var type = typeof children;
|
|
237
226
|
if ("undefined" === type || "boolean" === type) children = null;
|
|
238
|
-
var invokeCallback =
|
|
239
|
-
if (null === children) invokeCallback =
|
|
227
|
+
var invokeCallback = false;
|
|
228
|
+
if (null === children) invokeCallback = true;
|
|
240
229
|
else
|
|
241
230
|
switch (type) {
|
|
242
231
|
case "bigint":
|
|
243
232
|
case "string":
|
|
244
233
|
case "number":
|
|
245
|
-
invokeCallback =
|
|
234
|
+
invokeCallback = true;
|
|
246
235
|
break;
|
|
247
236
|
case "object":
|
|
248
237
|
switch (children.$$typeof) {
|
|
249
238
|
case REACT_ELEMENT_TYPE:
|
|
250
239
|
case REACT_PORTAL_TYPE:
|
|
251
|
-
invokeCallback =
|
|
240
|
+
invokeCallback = true;
|
|
252
241
|
break;
|
|
253
242
|
case REACT_LAZY_TYPE:
|
|
254
243
|
return (
|
|
@@ -378,8 +367,8 @@ function requireReact_production () {
|
|
|
378
367
|
"function" === typeof window.ErrorEvent
|
|
379
368
|
) {
|
|
380
369
|
var event = new window.ErrorEvent("error", {
|
|
381
|
-
bubbles:
|
|
382
|
-
cancelable:
|
|
370
|
+
bubbles: true,
|
|
371
|
+
cancelable: true,
|
|
383
372
|
message:
|
|
384
373
|
"object" === typeof error &&
|
|
385
374
|
null !== error &&
|
|
@@ -684,7 +673,7 @@ function requireReact_development () {
|
|
|
684
673
|
callerName,
|
|
685
674
|
publicInstance
|
|
686
675
|
),
|
|
687
|
-
(didWarnStateUpdateForUnmountedComponent[warningKey] =
|
|
676
|
+
(didWarnStateUpdateForUnmountedComponent[warningKey] = true));
|
|
688
677
|
}
|
|
689
678
|
function Component(props, context, updater) {
|
|
690
679
|
this.props = props;
|
|
@@ -708,7 +697,7 @@ function requireReact_development () {
|
|
|
708
697
|
testStringCoercion(value);
|
|
709
698
|
var JSCompiler_inline_result = !1;
|
|
710
699
|
} catch (e) {
|
|
711
|
-
JSCompiler_inline_result =
|
|
700
|
+
JSCompiler_inline_result = true;
|
|
712
701
|
}
|
|
713
702
|
if (JSCompiler_inline_result) {
|
|
714
703
|
JSCompiler_inline_result = console;
|
|
@@ -810,29 +799,29 @@ function requireReact_development () {
|
|
|
810
799
|
function hasValidKey(config) {
|
|
811
800
|
if (hasOwnProperty.call(config, "key")) {
|
|
812
801
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
813
|
-
if (getter && getter.isReactWarning) return
|
|
802
|
+
if (getter && getter.isReactWarning) return false;
|
|
814
803
|
}
|
|
815
804
|
return void 0 !== config.key;
|
|
816
805
|
}
|
|
817
806
|
function defineKeyPropWarningGetter(props, displayName) {
|
|
818
807
|
function warnAboutAccessingKey() {
|
|
819
808
|
specialPropKeyWarningShown ||
|
|
820
|
-
((specialPropKeyWarningShown =
|
|
809
|
+
((specialPropKeyWarningShown = true),
|
|
821
810
|
console.error(
|
|
822
811
|
"%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)",
|
|
823
812
|
displayName
|
|
824
813
|
));
|
|
825
814
|
}
|
|
826
|
-
warnAboutAccessingKey.isReactWarning =
|
|
815
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
827
816
|
Object.defineProperty(props, "key", {
|
|
828
817
|
get: warnAboutAccessingKey,
|
|
829
|
-
configurable:
|
|
818
|
+
configurable: true
|
|
830
819
|
});
|
|
831
820
|
}
|
|
832
821
|
function elementRefGetterWithDeprecationWarning() {
|
|
833
822
|
var componentName = getComponentNameFromType(this.type);
|
|
834
823
|
didWarnAboutElementRef[componentName] ||
|
|
835
|
-
((didWarnAboutElementRef[componentName] =
|
|
824
|
+
((didWarnAboutElementRef[componentName] = true),
|
|
836
825
|
console.error(
|
|
837
826
|
"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."
|
|
838
827
|
));
|
|
@@ -850,33 +839,33 @@ function requireReact_development () {
|
|
|
850
839
|
};
|
|
851
840
|
null !== (void 0 !== refProp ? refProp : null)
|
|
852
841
|
? Object.defineProperty(type, "ref", {
|
|
853
|
-
enumerable:
|
|
842
|
+
enumerable: false,
|
|
854
843
|
get: elementRefGetterWithDeprecationWarning
|
|
855
844
|
})
|
|
856
|
-
: Object.defineProperty(type, "ref", { enumerable:
|
|
845
|
+
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
857
846
|
type._store = {};
|
|
858
847
|
Object.defineProperty(type._store, "validated", {
|
|
859
|
-
configurable:
|
|
860
|
-
enumerable:
|
|
861
|
-
writable:
|
|
848
|
+
configurable: false,
|
|
849
|
+
enumerable: false,
|
|
850
|
+
writable: true,
|
|
862
851
|
value: 0
|
|
863
852
|
});
|
|
864
853
|
Object.defineProperty(type, "_debugInfo", {
|
|
865
|
-
configurable:
|
|
866
|
-
enumerable:
|
|
867
|
-
writable:
|
|
854
|
+
configurable: false,
|
|
855
|
+
enumerable: false,
|
|
856
|
+
writable: true,
|
|
868
857
|
value: null
|
|
869
858
|
});
|
|
870
859
|
Object.defineProperty(type, "_debugStack", {
|
|
871
|
-
configurable:
|
|
872
|
-
enumerable:
|
|
873
|
-
writable:
|
|
860
|
+
configurable: false,
|
|
861
|
+
enumerable: false,
|
|
862
|
+
writable: true,
|
|
874
863
|
value: debugStack
|
|
875
864
|
});
|
|
876
865
|
Object.defineProperty(type, "_debugTask", {
|
|
877
|
-
configurable:
|
|
878
|
-
enumerable:
|
|
879
|
-
writable:
|
|
866
|
+
configurable: false,
|
|
867
|
+
enumerable: false,
|
|
868
|
+
writable: true,
|
|
880
869
|
value: debugTask
|
|
881
870
|
});
|
|
882
871
|
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
@@ -966,20 +955,20 @@ function requireReact_development () {
|
|
|
966
955
|
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
967
956
|
var type = typeof children;
|
|
968
957
|
if ("undefined" === type || "boolean" === type) children = null;
|
|
969
|
-
var invokeCallback =
|
|
970
|
-
if (null === children) invokeCallback =
|
|
958
|
+
var invokeCallback = false;
|
|
959
|
+
if (null === children) invokeCallback = true;
|
|
971
960
|
else
|
|
972
961
|
switch (type) {
|
|
973
962
|
case "bigint":
|
|
974
963
|
case "string":
|
|
975
964
|
case "number":
|
|
976
|
-
invokeCallback =
|
|
965
|
+
invokeCallback = true;
|
|
977
966
|
break;
|
|
978
967
|
case "object":
|
|
979
968
|
switch (children.$$typeof) {
|
|
980
969
|
case REACT_ELEMENT_TYPE:
|
|
981
970
|
case REACT_PORTAL_TYPE:
|
|
982
|
-
invokeCallback =
|
|
971
|
+
invokeCallback = true;
|
|
983
972
|
break;
|
|
984
973
|
case REACT_LAZY_TYPE:
|
|
985
974
|
return (
|
|
@@ -1055,7 +1044,7 @@ function requireReact_development () {
|
|
|
1055
1044
|
console.warn(
|
|
1056
1045
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
1057
1046
|
),
|
|
1058
|
-
(didWarnAboutMaps =
|
|
1047
|
+
(didWarnAboutMaps = true)),
|
|
1059
1048
|
children = i.call(children),
|
|
1060
1049
|
i = 0;
|
|
1061
1050
|
!(nameSoFar = children.next()).done;
|
|
@@ -1175,8 +1164,8 @@ function requireReact_development () {
|
|
|
1175
1164
|
).setImmediate;
|
|
1176
1165
|
} catch (_err) {
|
|
1177
1166
|
enqueueTaskImpl = function (callback) {
|
|
1178
|
-
|
|
1179
|
-
((didWarnAboutMessageChannel =
|
|
1167
|
+
false === didWarnAboutMessageChannel &&
|
|
1168
|
+
((didWarnAboutMessageChannel = true),
|
|
1180
1169
|
"undefined" === typeof MessageChannel &&
|
|
1181
1170
|
console.error(
|
|
1182
1171
|
"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."
|
|
@@ -1222,7 +1211,7 @@ function requireReact_development () {
|
|
|
1222
1211
|
}
|
|
1223
1212
|
function flushActQueue(queue) {
|
|
1224
1213
|
if (!isFlushing) {
|
|
1225
|
-
isFlushing =
|
|
1214
|
+
isFlushing = true;
|
|
1226
1215
|
var i = 0;
|
|
1227
1216
|
try {
|
|
1228
1217
|
for (; i < queue.length; i++) {
|
|
@@ -1244,7 +1233,7 @@ function requireReact_development () {
|
|
|
1244
1233
|
} catch (error) {
|
|
1245
1234
|
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
1246
1235
|
} finally {
|
|
1247
|
-
isFlushing =
|
|
1236
|
+
isFlushing = false;
|
|
1248
1237
|
}
|
|
1249
1238
|
}
|
|
1250
1239
|
}
|
|
@@ -1269,7 +1258,7 @@ function requireReact_development () {
|
|
|
1269
1258
|
didWarnStateUpdateForUnmountedComponent = {},
|
|
1270
1259
|
ReactNoopUpdateQueue = {
|
|
1271
1260
|
isMounted: function () {
|
|
1272
|
-
return
|
|
1261
|
+
return false;
|
|
1273
1262
|
},
|
|
1274
1263
|
enqueueForceUpdate: function (publicInstance) {
|
|
1275
1264
|
warnNoop(publicInstance, "forceUpdate");
|
|
@@ -1316,7 +1305,7 @@ function requireReact_development () {
|
|
|
1316
1305
|
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1317
1306
|
deprecatedAPIs.constructor = PureComponent;
|
|
1318
1307
|
assign(deprecatedAPIs, Component.prototype);
|
|
1319
|
-
deprecatedAPIs.isPureReactComponent =
|
|
1308
|
+
deprecatedAPIs.isPureReactComponent = true;
|
|
1320
1309
|
var isArrayImpl = Array.isArray,
|
|
1321
1310
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
1322
1311
|
ReactSharedInternals = {
|
|
@@ -1326,9 +1315,9 @@ function requireReact_development () {
|
|
|
1326
1315
|
S: null,
|
|
1327
1316
|
actQueue: null,
|
|
1328
1317
|
asyncTransitions: 0,
|
|
1329
|
-
isBatchingLegacy:
|
|
1330
|
-
didScheduleLegacyUpdate:
|
|
1331
|
-
didUsePromise:
|
|
1318
|
+
isBatchingLegacy: false,
|
|
1319
|
+
didScheduleLegacyUpdate: false,
|
|
1320
|
+
didUsePromise: false,
|
|
1332
1321
|
thrownErrors: [],
|
|
1333
1322
|
getCurrentStack: null,
|
|
1334
1323
|
recentlyCreatedOwnerStacks: 0
|
|
@@ -1351,7 +1340,7 @@ function requireReact_development () {
|
|
|
1351
1340
|
UnknownOwner
|
|
1352
1341
|
)();
|
|
1353
1342
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1354
|
-
var didWarnAboutMaps =
|
|
1343
|
+
var didWarnAboutMaps = false,
|
|
1355
1344
|
userProvidedKeyEscapeRegex = /\/+/g,
|
|
1356
1345
|
reportGlobalError =
|
|
1357
1346
|
"function" === typeof reportError
|
|
@@ -1362,8 +1351,8 @@ function requireReact_development () {
|
|
|
1362
1351
|
"function" === typeof window.ErrorEvent
|
|
1363
1352
|
) {
|
|
1364
1353
|
var event = new window.ErrorEvent("error", {
|
|
1365
|
-
bubbles:
|
|
1366
|
-
cancelable:
|
|
1354
|
+
bubbles: true,
|
|
1355
|
+
cancelable: true,
|
|
1367
1356
|
message:
|
|
1368
1357
|
"object" === typeof error &&
|
|
1369
1358
|
null !== error &&
|
|
@@ -1382,11 +1371,11 @@ function requireReact_development () {
|
|
|
1382
1371
|
}
|
|
1383
1372
|
console.error(error);
|
|
1384
1373
|
},
|
|
1385
|
-
didWarnAboutMessageChannel =
|
|
1374
|
+
didWarnAboutMessageChannel = false,
|
|
1386
1375
|
enqueueTaskImpl = null,
|
|
1387
1376
|
actScopeDepth = 0,
|
|
1388
|
-
didWarnNoAwaitAct =
|
|
1389
|
-
isFlushing =
|
|
1377
|
+
didWarnNoAwaitAct = false,
|
|
1378
|
+
isFlushing = false,
|
|
1390
1379
|
queueSeveralMicrotasks =
|
|
1391
1380
|
"function" === typeof queueMicrotask
|
|
1392
1381
|
? function (callback) {
|
|
@@ -1451,7 +1440,7 @@ function requireReact_development () {
|
|
|
1451
1440
|
actScopeDepth++;
|
|
1452
1441
|
var queue = (ReactSharedInternals.actQueue =
|
|
1453
1442
|
null !== prevActQueue ? prevActQueue : []),
|
|
1454
|
-
didAwaitActCall =
|
|
1443
|
+
didAwaitActCall = false;
|
|
1455
1444
|
try {
|
|
1456
1445
|
var result = callback();
|
|
1457
1446
|
} catch (error) {
|
|
@@ -1473,14 +1462,14 @@ function requireReact_development () {
|
|
|
1473
1462
|
queueSeveralMicrotasks(function () {
|
|
1474
1463
|
didAwaitActCall ||
|
|
1475
1464
|
didWarnNoAwaitAct ||
|
|
1476
|
-
((didWarnNoAwaitAct =
|
|
1465
|
+
((didWarnNoAwaitAct = true),
|
|
1477
1466
|
console.error(
|
|
1478
1467
|
"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 () => ...);"
|
|
1479
1468
|
));
|
|
1480
1469
|
});
|
|
1481
1470
|
return {
|
|
1482
1471
|
then: function (resolve, reject) {
|
|
1483
|
-
didAwaitActCall =
|
|
1472
|
+
didAwaitActCall = true;
|
|
1484
1473
|
thenable.then(
|
|
1485
1474
|
function (returnValue) {
|
|
1486
1475
|
popActScope(prevActQueue, prevActScopeDepth);
|
|
@@ -1528,7 +1517,7 @@ function requireReact_development () {
|
|
|
1528
1517
|
queueSeveralMicrotasks(function () {
|
|
1529
1518
|
didAwaitActCall ||
|
|
1530
1519
|
didWarnNoAwaitAct ||
|
|
1531
|
-
((didWarnNoAwaitAct =
|
|
1520
|
+
((didWarnNoAwaitAct = true),
|
|
1532
1521
|
console.error(
|
|
1533
1522
|
"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(() => ...)"
|
|
1534
1523
|
));
|
|
@@ -1542,7 +1531,7 @@ function requireReact_development () {
|
|
|
1542
1531
|
);
|
|
1543
1532
|
return {
|
|
1544
1533
|
then: function (resolve, reject) {
|
|
1545
|
-
didAwaitActCall =
|
|
1534
|
+
didAwaitActCall = true;
|
|
1546
1535
|
0 === prevActScopeDepth
|
|
1547
1536
|
? ((ReactSharedInternals.actQueue = queue),
|
|
1548
1537
|
enqueueTask(function () {
|
|
@@ -1589,7 +1578,7 @@ function requireReact_development () {
|
|
|
1589
1578
|
).get) &&
|
|
1590
1579
|
JSCompiler_inline_result.isReactWarning
|
|
1591
1580
|
) {
|
|
1592
|
-
JSCompiler_inline_result =
|
|
1581
|
+
JSCompiler_inline_result = false;
|
|
1593
1582
|
break a;
|
|
1594
1583
|
}
|
|
1595
1584
|
JSCompiler_inline_result = void 0 !== config.ref;
|
|
@@ -1652,7 +1641,7 @@ function requireReact_development () {
|
|
|
1652
1641
|
for (propName in (didWarnAboutOldJSXRuntime ||
|
|
1653
1642
|
!("__self" in config) ||
|
|
1654
1643
|
"key" in config ||
|
|
1655
|
-
((didWarnAboutOldJSXRuntime =
|
|
1644
|
+
((didWarnAboutOldJSXRuntime = true),
|
|
1656
1645
|
console.warn(
|
|
1657
1646
|
"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"
|
|
1658
1647
|
)),
|
|
@@ -1727,8 +1716,8 @@ function requireReact_development () {
|
|
|
1727
1716
|
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
|
|
1728
1717
|
ownName;
|
|
1729
1718
|
Object.defineProperty(elementType, "displayName", {
|
|
1730
|
-
enumerable:
|
|
1731
|
-
configurable:
|
|
1719
|
+
enumerable: false,
|
|
1720
|
+
configurable: true,
|
|
1732
1721
|
get: function () {
|
|
1733
1722
|
return ownName;
|
|
1734
1723
|
},
|
|
@@ -1776,8 +1765,8 @@ function requireReact_development () {
|
|
|
1776
1765
|
};
|
|
1777
1766
|
var ownName;
|
|
1778
1767
|
Object.defineProperty(compare, "displayName", {
|
|
1779
|
-
enumerable:
|
|
1780
|
-
configurable:
|
|
1768
|
+
enumerable: false,
|
|
1769
|
+
configurable: true,
|
|
1781
1770
|
get: function () {
|
|
1782
1771
|
return ownName;
|
|
1783
1772
|
},
|
|
@@ -2025,7 +2014,7 @@ function requireReactJsxRuntime_development () {
|
|
|
2025
2014
|
testStringCoercion(value);
|
|
2026
2015
|
var JSCompiler_inline_result = !1;
|
|
2027
2016
|
} catch (e) {
|
|
2028
|
-
JSCompiler_inline_result =
|
|
2017
|
+
JSCompiler_inline_result = true;
|
|
2029
2018
|
}
|
|
2030
2019
|
if (JSCompiler_inline_result) {
|
|
2031
2020
|
JSCompiler_inline_result = console;
|
|
@@ -2069,29 +2058,29 @@ function requireReactJsxRuntime_development () {
|
|
|
2069
2058
|
function hasValidKey(config) {
|
|
2070
2059
|
if (hasOwnProperty.call(config, "key")) {
|
|
2071
2060
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
2072
|
-
if (getter && getter.isReactWarning) return
|
|
2061
|
+
if (getter && getter.isReactWarning) return false;
|
|
2073
2062
|
}
|
|
2074
2063
|
return void 0 !== config.key;
|
|
2075
2064
|
}
|
|
2076
2065
|
function defineKeyPropWarningGetter(props, displayName) {
|
|
2077
2066
|
function warnAboutAccessingKey() {
|
|
2078
2067
|
specialPropKeyWarningShown ||
|
|
2079
|
-
((specialPropKeyWarningShown =
|
|
2068
|
+
((specialPropKeyWarningShown = true),
|
|
2080
2069
|
console.error(
|
|
2081
2070
|
"%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)",
|
|
2082
2071
|
displayName
|
|
2083
2072
|
));
|
|
2084
2073
|
}
|
|
2085
|
-
warnAboutAccessingKey.isReactWarning =
|
|
2074
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
2086
2075
|
Object.defineProperty(props, "key", {
|
|
2087
2076
|
get: warnAboutAccessingKey,
|
|
2088
|
-
configurable:
|
|
2077
|
+
configurable: true
|
|
2089
2078
|
});
|
|
2090
2079
|
}
|
|
2091
2080
|
function elementRefGetterWithDeprecationWarning() {
|
|
2092
2081
|
var componentName = getComponentNameFromType(this.type);
|
|
2093
2082
|
didWarnAboutElementRef[componentName] ||
|
|
2094
|
-
((didWarnAboutElementRef[componentName] =
|
|
2083
|
+
((didWarnAboutElementRef[componentName] = true),
|
|
2095
2084
|
console.error(
|
|
2096
2085
|
"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."
|
|
2097
2086
|
));
|
|
@@ -2109,33 +2098,33 @@ function requireReactJsxRuntime_development () {
|
|
|
2109
2098
|
};
|
|
2110
2099
|
null !== (void 0 !== refProp ? refProp : null)
|
|
2111
2100
|
? Object.defineProperty(type, "ref", {
|
|
2112
|
-
enumerable:
|
|
2101
|
+
enumerable: false,
|
|
2113
2102
|
get: elementRefGetterWithDeprecationWarning
|
|
2114
2103
|
})
|
|
2115
|
-
: Object.defineProperty(type, "ref", { enumerable:
|
|
2104
|
+
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
2116
2105
|
type._store = {};
|
|
2117
2106
|
Object.defineProperty(type._store, "validated", {
|
|
2118
|
-
configurable:
|
|
2119
|
-
enumerable:
|
|
2120
|
-
writable:
|
|
2107
|
+
configurable: false,
|
|
2108
|
+
enumerable: false,
|
|
2109
|
+
writable: true,
|
|
2121
2110
|
value: 0
|
|
2122
2111
|
});
|
|
2123
2112
|
Object.defineProperty(type, "_debugInfo", {
|
|
2124
|
-
configurable:
|
|
2125
|
-
enumerable:
|
|
2126
|
-
writable:
|
|
2113
|
+
configurable: false,
|
|
2114
|
+
enumerable: false,
|
|
2115
|
+
writable: true,
|
|
2127
2116
|
value: null
|
|
2128
2117
|
});
|
|
2129
2118
|
Object.defineProperty(type, "_debugStack", {
|
|
2130
|
-
configurable:
|
|
2131
|
-
enumerable:
|
|
2132
|
-
writable:
|
|
2119
|
+
configurable: false,
|
|
2120
|
+
enumerable: false,
|
|
2121
|
+
writable: true,
|
|
2133
2122
|
value: debugStack
|
|
2134
2123
|
});
|
|
2135
2124
|
Object.defineProperty(type, "_debugTask", {
|
|
2136
|
-
configurable:
|
|
2137
|
-
enumerable:
|
|
2138
|
-
writable:
|
|
2125
|
+
configurable: false,
|
|
2126
|
+
enumerable: false,
|
|
2127
|
+
writable: true,
|
|
2139
2128
|
value: debugTask
|
|
2140
2129
|
});
|
|
2141
2130
|
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
@@ -2184,7 +2173,7 @@ function requireReactJsxRuntime_development () {
|
|
|
2184
2173
|
keys,
|
|
2185
2174
|
children
|
|
2186
2175
|
),
|
|
2187
|
-
(didWarnAboutKeySpread[children + isStaticChildren] =
|
|
2176
|
+
(didWarnAboutKeySpread[children + isStaticChildren] = true));
|
|
2188
2177
|
}
|
|
2189
2178
|
children = null;
|
|
2190
2179
|
void 0 !== maybeKey &&
|
|
@@ -2276,7 +2265,7 @@ function requireReactJsxRuntime_development () {
|
|
|
2276
2265
|
type,
|
|
2277
2266
|
config,
|
|
2278
2267
|
maybeKey,
|
|
2279
|
-
|
|
2268
|
+
false,
|
|
2280
2269
|
trackActualOwner
|
|
2281
2270
|
? Error("react-stack-top-frame")
|
|
2282
2271
|
: unknownOwnerDebugStack,
|
|
@@ -2290,7 +2279,7 @@ function requireReactJsxRuntime_development () {
|
|
|
2290
2279
|
type,
|
|
2291
2280
|
config,
|
|
2292
2281
|
maybeKey,
|
|
2293
|
-
|
|
2282
|
+
true,
|
|
2294
2283
|
trackActualOwner
|
|
2295
2284
|
? Error("react-stack-top-frame")
|
|
2296
2285
|
: unknownOwnerDebugStack,
|
|
@@ -2539,7 +2528,6 @@ var classnames = {exports: {}};
|
|
|
2539
2528
|
Licensed under the MIT License (MIT), see
|
|
2540
2529
|
http://jedwatson.github.io/classnames
|
|
2541
2530
|
*/
|
|
2542
|
-
classnames.exports;
|
|
2543
2531
|
|
|
2544
2532
|
var hasRequiredClassnames;
|
|
2545
2533
|
|
|
@@ -2620,7 +2608,7 @@ function requireClassnames () {
|
|
|
2620
2608
|
var classnamesExports = requireClassnames();
|
|
2621
2609
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
2622
2610
|
|
|
2623
|
-
var e=[],t$2=[];function n$1(n,r){if(n&&"undefined"!=typeof document){var a,s
|
|
2611
|
+
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}}
|
|
2624
2612
|
|
|
2625
2613
|
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}";
|
|
2626
2614
|
n$1(css$d,{});
|
|
@@ -3216,7 +3204,7 @@ function requireReactDom_development () {
|
|
|
3216
3204
|
testStringCoercion(key);
|
|
3217
3205
|
var JSCompiler_inline_result = !1;
|
|
3218
3206
|
} catch (e) {
|
|
3219
|
-
JSCompiler_inline_result =
|
|
3207
|
+
JSCompiler_inline_result = true;
|
|
3220
3208
|
}
|
|
3221
3209
|
JSCompiler_inline_result &&
|
|
3222
3210
|
(console.error(
|
|
@@ -3762,7 +3750,6 @@ function cloneObject(data) {
|
|
|
3762
3750
|
const EVENTS = {
|
|
3763
3751
|
BLUR: 'blur',
|
|
3764
3752
|
FOCUS_OUT: 'focusout',
|
|
3765
|
-
CHANGE: 'change',
|
|
3766
3753
|
SUBMIT: 'submit',
|
|
3767
3754
|
TRIGGER: 'trigger',
|
|
3768
3755
|
VALID: 'valid',
|
|
@@ -3854,7 +3841,6 @@ var getProxyFormState = (formState, control, localProxyFormState, isRoot = true)
|
|
|
3854
3841
|
if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {
|
|
3855
3842
|
control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;
|
|
3856
3843
|
}
|
|
3857
|
-
localProxyFormState && (localProxyFormState[_key] = true);
|
|
3858
3844
|
return formState[_key];
|
|
3859
3845
|
},
|
|
3860
3846
|
});
|
|
@@ -3933,10 +3919,7 @@ function useResyncOnReconnect(getInitialValue) {
|
|
|
3933
3919
|
const _prevValue = React.useRef(undefined);
|
|
3934
3920
|
const _renderCount = React.useRef(0);
|
|
3935
3921
|
_renderCount.current++;
|
|
3936
|
-
if (!_initialized.current && getInitialValue)
|
|
3937
|
-
_initialized.current = true;
|
|
3938
|
-
_prevValue.current = cloneObject(getInitialValue());
|
|
3939
|
-
}
|
|
3922
|
+
if (!_initialized.current && getInitialValue) ;
|
|
3940
3923
|
const resyncIfNeeded = React.useCallback((enabled, getCurrentValue, setValue) => {
|
|
3941
3924
|
if (enabled &&
|
|
3942
3925
|
(_connected.current ||
|
|
@@ -6332,7 +6315,7 @@ const Input = ({ label, error, className = '', id, onReset, placeholder, type =
|
|
|
6332
6315
|
const inputId = id || `input-${generatedId}`;
|
|
6333
6316
|
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, {
|
|
6334
6317
|
[css$9.errorWrapper]: error,
|
|
6335
|
-
}), children: [isDateInput && jsxRuntimeExports.jsx(
|
|
6318
|
+
}), children: [isDateInput && jsxRuntimeExports.jsx(Calendar, { 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(Clear$1, { className: css$9.icon }) }))] }), jsxRuntimeExports.jsx("span", { className: css$9.error, children: error ?? '' })] }));
|
|
6336
6319
|
};
|
|
6337
6320
|
|
|
6338
6321
|
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}";
|
|
@@ -11828,7 +11811,7 @@ const TasksManager = ({ onClose, isOpen, tasks, selectedDate, }) => {
|
|
|
11828
11811
|
};
|
|
11829
11812
|
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, {
|
|
11830
11813
|
[css$7.checked]: completed,
|
|
11831
|
-
}), 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(
|
|
11814
|
+
}), 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(Edit, {}) }), jsxRuntimeExports.jsx("button", { onClick: handleDeleteTask(id), className: classNames(css$7.action, css$7.delete), children: jsxRuntimeExports.jsx(Delete, {}) })] }, 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 })] }));
|
|
11832
11815
|
};
|
|
11833
11816
|
|
|
11834
11817
|
const useTooltip = () => {
|
|
@@ -11919,7 +11902,7 @@ n$1(css$5,{});
|
|
|
11919
11902
|
const Month = ({ date, onPrev, onNext }) => {
|
|
11920
11903
|
const year = date.getFullYear();
|
|
11921
11904
|
const month = MONTHS_NAMES[date.getMonth()];
|
|
11922
|
-
return (jsxRuntimeExports.jsxs("div", { className: css$5.month, children: [jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onPrev, type: "button", children: jsxRuntimeExports.jsx(
|
|
11905
|
+
return (jsxRuntimeExports.jsxs("div", { className: css$5.month, children: [jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onPrev, type: "button", children: jsxRuntimeExports.jsx(Prev, {}) }), jsxRuntimeExports.jsxs("p", { children: [month, " ", year] }), jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onNext, type: "button", children: jsxRuntimeExports.jsx(Next, {}) })] }));
|
|
11923
11906
|
};
|
|
11924
11907
|
|
|
11925
11908
|
const WEEKDAYS_NAMES = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
|
|
@@ -12488,7 +12471,7 @@ class InputHistory {
|
|
|
12488
12471
|
return this.go(-1);
|
|
12489
12472
|
}
|
|
12490
12473
|
redo() {
|
|
12491
|
-
return this.go(
|
|
12474
|
+
return this.go(1);
|
|
12492
12475
|
}
|
|
12493
12476
|
clear() {
|
|
12494
12477
|
this.states.length = 0;
|