@simplybusiness/mobius-datepicker 9.0.1 → 9.0.3
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/CHANGELOG.md +20 -0
- package/dist/cjs/index.js +547 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/meta.json +473 -0
- package/dist/esm/DatePickerModal-RVUBO5DW.js +209 -0
- package/dist/esm/DatePickerModal-RVUBO5DW.js.map +7 -0
- package/dist/esm/index.js +54 -363
- package/dist/esm/index.js.map +4 -4
- package/dist/esm/meta.json +75 -50
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/utils/mockMatchMedia.d.ts +1 -0
- package/dist/types/vitest.config.d.ts +2 -0
- package/package.json +15 -17
- package/src/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/src/components/DatePicker/DatePicker.test.tsx +36 -23
- package/src/components/DatePicker/DatePickerModal.test.tsx +2 -2
- package/src/components/DatePicker/DatePickerModal.tsx +2 -1
- package/src/components/DatePicker/utils/getStartWeekday.test.ts +2 -2
- package/src/utils/mockMatchMedia.ts +36 -0
- package/dist/types/src/utils/jestMockMatchMedia.d.ts +0 -1
- package/src/utils/jestMockMatchMedia.ts +0 -36
package/dist/esm/meta.json
CHANGED
|
@@ -160,8 +160,13 @@
|
|
|
160
160
|
"format": "esm"
|
|
161
161
|
},
|
|
162
162
|
"src/components/DatePicker/DatePickerModal.tsx": {
|
|
163
|
-
"bytes":
|
|
163
|
+
"bytes": 4035,
|
|
164
164
|
"imports": [
|
|
165
|
+
{
|
|
166
|
+
"path": "@simplybusiness/mobius-hooks",
|
|
167
|
+
"kind": "import-statement",
|
|
168
|
+
"external": true
|
|
169
|
+
},
|
|
165
170
|
{
|
|
166
171
|
"path": "@simplybusiness/mobius",
|
|
167
172
|
"kind": "import-statement",
|
|
@@ -305,47 +310,83 @@
|
|
|
305
310
|
"imports": [],
|
|
306
311
|
"exports": [],
|
|
307
312
|
"inputs": {},
|
|
308
|
-
"bytes":
|
|
313
|
+
"bytes": 11965
|
|
309
314
|
},
|
|
310
315
|
"dist/esm/index.js": {
|
|
311
316
|
"imports": [
|
|
312
317
|
{
|
|
313
|
-
"path": "
|
|
318
|
+
"path": "@simplybusiness/icons",
|
|
314
319
|
"kind": "import-statement",
|
|
315
320
|
"external": true
|
|
316
321
|
},
|
|
317
322
|
{
|
|
318
|
-
"path": "
|
|
323
|
+
"path": "@simplybusiness/mobius",
|
|
319
324
|
"kind": "import-statement",
|
|
320
325
|
"external": true
|
|
321
326
|
},
|
|
322
327
|
{
|
|
323
|
-
"path": "
|
|
328
|
+
"path": "classnames/dedupe",
|
|
324
329
|
"kind": "import-statement",
|
|
325
330
|
"external": true
|
|
326
331
|
},
|
|
327
332
|
{
|
|
328
|
-
"path": "react
|
|
333
|
+
"path": "react",
|
|
329
334
|
"kind": "import-statement",
|
|
330
335
|
"external": true
|
|
331
336
|
},
|
|
332
337
|
{
|
|
333
|
-
"path": "
|
|
338
|
+
"path": "date-fns",
|
|
334
339
|
"kind": "import-statement",
|
|
335
340
|
"external": true
|
|
336
341
|
},
|
|
337
342
|
{
|
|
338
|
-
"path": "
|
|
343
|
+
"path": "date-fns",
|
|
339
344
|
"kind": "import-statement",
|
|
340
345
|
"external": true
|
|
341
346
|
},
|
|
342
347
|
{
|
|
343
|
-
"path": "
|
|
348
|
+
"path": "react/jsx-runtime",
|
|
344
349
|
"kind": "import-statement",
|
|
345
350
|
"external": true
|
|
346
351
|
},
|
|
347
352
|
{
|
|
348
|
-
"path": "
|
|
353
|
+
"path": "dist/esm/DatePickerModal-RVUBO5DW.js",
|
|
354
|
+
"kind": "dynamic-import"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"exports": [
|
|
358
|
+
"DatePicker"
|
|
359
|
+
],
|
|
360
|
+
"entryPoint": "index.tsx",
|
|
361
|
+
"inputs": {
|
|
362
|
+
"src/components/DatePicker/DatePicker.tsx": {
|
|
363
|
+
"bytesInOutput": 4832
|
|
364
|
+
},
|
|
365
|
+
"src/utils/isTouchDevice.ts": {
|
|
366
|
+
"bytesInOutput": 165
|
|
367
|
+
},
|
|
368
|
+
"src/components/DatePicker/utils/formatErrorMessageText.ts": {
|
|
369
|
+
"bytesInOutput": 660
|
|
370
|
+
},
|
|
371
|
+
"src/components/DatePicker/utils/validateDateFormat.ts": {
|
|
372
|
+
"bytesInOutput": 318
|
|
373
|
+
},
|
|
374
|
+
"index.tsx": {
|
|
375
|
+
"bytesInOutput": 0
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"bytes": 6274
|
|
379
|
+
},
|
|
380
|
+
"dist/esm/DatePickerModal-RVUBO5DW.js.map": {
|
|
381
|
+
"imports": [],
|
|
382
|
+
"exports": [],
|
|
383
|
+
"inputs": {},
|
|
384
|
+
"bytes": 12773
|
|
385
|
+
},
|
|
386
|
+
"dist/esm/DatePickerModal-RVUBO5DW.js": {
|
|
387
|
+
"imports": [
|
|
388
|
+
{
|
|
389
|
+
"path": "@simplybusiness/mobius-hooks",
|
|
349
390
|
"kind": "import-statement",
|
|
350
391
|
"external": true
|
|
351
392
|
},
|
|
@@ -374,28 +415,33 @@
|
|
|
374
415
|
"kind": "import-statement",
|
|
375
416
|
"external": true
|
|
376
417
|
},
|
|
418
|
+
{
|
|
419
|
+
"path": "react",
|
|
420
|
+
"kind": "import-statement",
|
|
421
|
+
"external": true
|
|
422
|
+
},
|
|
377
423
|
{
|
|
378
424
|
"path": "react/jsx-runtime",
|
|
379
425
|
"kind": "import-statement",
|
|
380
426
|
"external": true
|
|
381
427
|
},
|
|
382
428
|
{
|
|
383
|
-
"path": "
|
|
429
|
+
"path": "react/jsx-runtime",
|
|
384
430
|
"kind": "import-statement",
|
|
385
431
|
"external": true
|
|
386
432
|
},
|
|
387
433
|
{
|
|
388
|
-
"path": "@simplybusiness/
|
|
434
|
+
"path": "@simplybusiness/icons",
|
|
389
435
|
"kind": "import-statement",
|
|
390
436
|
"external": true
|
|
391
437
|
},
|
|
392
438
|
{
|
|
393
|
-
"path": "
|
|
439
|
+
"path": "@simplybusiness/mobius",
|
|
394
440
|
"kind": "import-statement",
|
|
395
441
|
"external": true
|
|
396
442
|
},
|
|
397
443
|
{
|
|
398
|
-
"path": "react",
|
|
444
|
+
"path": "react/jsx-runtime",
|
|
399
445
|
"kind": "import-statement",
|
|
400
446
|
"external": true
|
|
401
447
|
},
|
|
@@ -406,60 +452,39 @@
|
|
|
406
452
|
}
|
|
407
453
|
],
|
|
408
454
|
"exports": [
|
|
409
|
-
"
|
|
455
|
+
"default"
|
|
410
456
|
],
|
|
411
|
-
"entryPoint": "
|
|
457
|
+
"entryPoint": "src/components/DatePicker/DatePickerModal.tsx",
|
|
412
458
|
"inputs": {
|
|
413
|
-
"src/components/DatePicker/
|
|
414
|
-
"bytesInOutput":
|
|
459
|
+
"src/components/DatePicker/DatePickerModal.tsx": {
|
|
460
|
+
"bytesInOutput": 3667
|
|
415
461
|
},
|
|
416
|
-
"src/
|
|
417
|
-
"bytesInOutput":
|
|
462
|
+
"src/hooks/useFocusTrap/useFocusTrap.tsx": {
|
|
463
|
+
"bytesInOutput": 1388
|
|
418
464
|
},
|
|
419
|
-
"src/components/DatePicker/utils/
|
|
420
|
-
"bytesInOutput":
|
|
465
|
+
"src/components/DatePicker/utils/dateObjToString.ts": {
|
|
466
|
+
"bytesInOutput": 225
|
|
421
467
|
},
|
|
422
468
|
"src/components/DatePicker/constants.ts": {
|
|
423
|
-
"bytesInOutput":
|
|
469
|
+
"bytesInOutput": 82
|
|
424
470
|
},
|
|
425
471
|
"src/components/DatePicker/utils/weekdayAsOneLetter.ts": {
|
|
426
|
-
"bytesInOutput":
|
|
427
|
-
},
|
|
428
|
-
"src/components/DatePicker/utils/index.ts": {
|
|
429
|
-
"bytesInOutput": 225
|
|
430
|
-
},
|
|
431
|
-
"src/hooks/useFocusTrap/useFocusTrap.tsx": {
|
|
432
|
-
"bytesInOutput": 1640
|
|
472
|
+
"bytesInOutput": 193
|
|
433
473
|
},
|
|
434
474
|
"src/components/DatePicker/utils/getStartWeekday.ts": {
|
|
435
|
-
"bytesInOutput":
|
|
475
|
+
"bytesInOutput": 174
|
|
436
476
|
},
|
|
437
477
|
"src/components/DatePicker/utils/timezoneOffset.ts": {
|
|
438
|
-
"bytesInOutput":
|
|
478
|
+
"bytesInOutput": 242
|
|
439
479
|
},
|
|
440
480
|
"src/components/DatePicker/CustomComponents/CaptionLabel.tsx": {
|
|
441
|
-
"bytesInOutput":
|
|
481
|
+
"bytesInOutput": 135
|
|
442
482
|
},
|
|
443
483
|
"src/components/DatePicker/CustomComponents/ChevronComponent.tsx": {
|
|
444
|
-
"bytesInOutput":
|
|
445
|
-
},
|
|
446
|
-
"src/components/DatePicker/CustomComponents/index.tsx": {
|
|
447
|
-
"bytesInOutput": 177
|
|
448
|
-
},
|
|
449
|
-
"src/components/DatePicker/DatePickerModal.tsx": {
|
|
450
|
-
"bytesInOutput": 4419
|
|
451
|
-
},
|
|
452
|
-
"src/components/DatePicker/DatePicker.tsx": {
|
|
453
|
-
"bytesInOutput": 4976
|
|
454
|
-
},
|
|
455
|
-
"src/utils/isTouchDevice.ts": {
|
|
456
|
-
"bytesInOutput": 165
|
|
457
|
-
},
|
|
458
|
-
"index.tsx": {
|
|
459
|
-
"bytesInOutput": 0
|
|
484
|
+
"bytesInOutput": 371
|
|
460
485
|
}
|
|
461
486
|
},
|
|
462
|
-
"bytes":
|
|
487
|
+
"bytes": 7134
|
|
463
488
|
}
|
|
464
489
|
}
|
|
465
490
|
}
|