@simplybusiness/mobius-datepicker 9.0.1 → 9.0.2

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.
@@ -305,50 +305,81 @@
305
305
  "imports": [],
306
306
  "exports": [],
307
307
  "inputs": {},
308
- "bytes": 25914
308
+ "bytes": 11965
309
309
  },
310
310
  "dist/esm/index.js": {
311
311
  "imports": [
312
312
  {
313
- "path": "date-fns",
313
+ "path": "@simplybusiness/icons",
314
314
  "kind": "import-statement",
315
315
  "external": true
316
316
  },
317
317
  {
318
- "path": "date-fns",
318
+ "path": "@simplybusiness/mobius",
319
319
  "kind": "import-statement",
320
320
  "external": true
321
321
  },
322
322
  {
323
- "path": "react",
323
+ "path": "classnames/dedupe",
324
324
  "kind": "import-statement",
325
325
  "external": true
326
326
  },
327
327
  {
328
- "path": "react/jsx-runtime",
328
+ "path": "react",
329
329
  "kind": "import-statement",
330
330
  "external": true
331
331
  },
332
332
  {
333
- "path": "react/jsx-runtime",
333
+ "path": "date-fns",
334
334
  "kind": "import-statement",
335
335
  "external": true
336
336
  },
337
337
  {
338
- "path": "@simplybusiness/icons",
338
+ "path": "date-fns",
339
339
  "kind": "import-statement",
340
340
  "external": true
341
341
  },
342
342
  {
343
- "path": "@simplybusiness/mobius",
343
+ "path": "react/jsx-runtime",
344
344
  "kind": "import-statement",
345
345
  "external": true
346
346
  },
347
347
  {
348
- "path": "react/jsx-runtime",
349
- "kind": "import-statement",
350
- "external": true
348
+ "path": "dist/esm/DatePickerModal-WRMRIQDP.js",
349
+ "kind": "dynamic-import"
350
+ }
351
+ ],
352
+ "exports": [
353
+ "DatePicker"
354
+ ],
355
+ "entryPoint": "index.tsx",
356
+ "inputs": {
357
+ "src/components/DatePicker/DatePicker.tsx": {
358
+ "bytesInOutput": 4832
359
+ },
360
+ "src/utils/isTouchDevice.ts": {
361
+ "bytesInOutput": 165
362
+ },
363
+ "src/components/DatePicker/utils/formatErrorMessageText.ts": {
364
+ "bytesInOutput": 660
351
365
  },
366
+ "src/components/DatePicker/utils/validateDateFormat.ts": {
367
+ "bytesInOutput": 318
368
+ },
369
+ "index.tsx": {
370
+ "bytesInOutput": 0
371
+ }
372
+ },
373
+ "bytes": 6274
374
+ },
375
+ "dist/esm/DatePickerModal-WRMRIQDP.js.map": {
376
+ "imports": [],
377
+ "exports": [],
378
+ "inputs": {},
379
+ "bytes": 12712
380
+ },
381
+ "dist/esm/DatePickerModal-WRMRIQDP.js": {
382
+ "imports": [
352
383
  {
353
384
  "path": "@simplybusiness/mobius",
354
385
  "kind": "import-statement",
@@ -374,28 +405,33 @@
374
405
  "kind": "import-statement",
375
406
  "external": true
376
407
  },
408
+ {
409
+ "path": "react",
410
+ "kind": "import-statement",
411
+ "external": true
412
+ },
377
413
  {
378
414
  "path": "react/jsx-runtime",
379
415
  "kind": "import-statement",
380
416
  "external": true
381
417
  },
382
418
  {
383
- "path": "@simplybusiness/icons",
419
+ "path": "react/jsx-runtime",
384
420
  "kind": "import-statement",
385
421
  "external": true
386
422
  },
387
423
  {
388
- "path": "@simplybusiness/mobius",
424
+ "path": "@simplybusiness/icons",
389
425
  "kind": "import-statement",
390
426
  "external": true
391
427
  },
392
428
  {
393
- "path": "classnames/dedupe",
429
+ "path": "@simplybusiness/mobius",
394
430
  "kind": "import-statement",
395
431
  "external": true
396
432
  },
397
433
  {
398
- "path": "react",
434
+ "path": "react/jsx-runtime",
399
435
  "kind": "import-statement",
400
436
  "external": true
401
437
  },
@@ -406,60 +442,39 @@
406
442
  }
407
443
  ],
408
444
  "exports": [
409
- "DatePicker"
445
+ "default"
410
446
  ],
411
- "entryPoint": "index.tsx",
447
+ "entryPoint": "src/components/DatePicker/DatePickerModal.tsx",
412
448
  "inputs": {
413
- "src/components/DatePicker/utils/dateObjToString.ts": {
414
- "bytesInOutput": 386
449
+ "src/components/DatePicker/DatePickerModal.tsx": {
450
+ "bytesInOutput": 3620
415
451
  },
416
- "src/components/DatePicker/utils/formatErrorMessageText.ts": {
417
- "bytesInOutput": 935
452
+ "src/hooks/useFocusTrap/useFocusTrap.tsx": {
453
+ "bytesInOutput": 1388
418
454
  },
419
- "src/components/DatePicker/utils/validateDateFormat.ts": {
420
- "bytesInOutput": 521
455
+ "src/components/DatePicker/utils/dateObjToString.ts": {
456
+ "bytesInOutput": 225
421
457
  },
422
458
  "src/components/DatePicker/constants.ts": {
423
- "bytesInOutput": 240
459
+ "bytesInOutput": 82
424
460
  },
425
461
  "src/components/DatePicker/utils/weekdayAsOneLetter.ts": {
426
- "bytesInOutput": 389
427
- },
428
- "src/components/DatePicker/utils/index.ts": {
429
- "bytesInOutput": 225
430
- },
431
- "src/hooks/useFocusTrap/useFocusTrap.tsx": {
432
- "bytesInOutput": 1640
462
+ "bytesInOutput": 193
433
463
  },
434
464
  "src/components/DatePicker/utils/getStartWeekday.ts": {
435
- "bytesInOutput": 365
465
+ "bytesInOutput": 174
436
466
  },
437
467
  "src/components/DatePicker/utils/timezoneOffset.ts": {
438
- "bytesInOutput": 360
468
+ "bytesInOutput": 242
439
469
  },
440
470
  "src/components/DatePicker/CustomComponents/CaptionLabel.tsx": {
441
- "bytesInOutput": 287
471
+ "bytesInOutput": 135
442
472
  },
443
473
  "src/components/DatePicker/CustomComponents/ChevronComponent.tsx": {
444
- "bytesInOutput": 547
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
474
+ "bytesInOutput": 371
460
475
  }
461
476
  },
462
- "bytes": 16863
477
+ "bytes": 7087
463
478
  }
464
479
  }
465
480
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplybusiness/mobius-datepicker",
3
3
  "license": "UNLICENSED",
4
- "version": "9.0.1",
4
+ "version": "9.0.2",
5
5
  "description": "Mobius date picker component",
6
6
  "repository": {
7
7
  "type": "git",
@@ -10,8 +10,7 @@
10
10
  "simplyBusiness": {
11
11
  "publishToPublicNpm": true
12
12
  },
13
- "type": "module",
14
- "main": "dist/esm/index.js",
13
+ "main": "dist/cjs/index.js",
15
14
  "types": "./dist/types/index.d.ts",
16
15
  "files": [
17
16
  "src",
@@ -20,18 +19,20 @@
20
19
  "exports": {
21
20
  ".": {
22
21
  "types": "./dist/types/index.d.ts",
22
+ "require": "./dist/cjs/index.js",
23
23
  "import": "./dist/esm/index.js",
24
24
  "default": "./dist/esm/index.js"
25
25
  },
26
26
  "./src/*.css": "./src/*.css"
27
27
  },
28
28
  "publishConfig": {
29
- "main": "dist/esm/index.js",
29
+ "main": "dist/cjs/index.js",
30
30
  "module": "dist/esm/index.js",
31
31
  "types": "./dist/types/index.d.ts",
32
32
  "exports": {
33
33
  ".": {
34
34
  "types": "./dist/types/index.d.ts",
35
+ "require": "./dist/cjs/index.js",
35
36
  "import": "./dist/esm/index.js",
36
37
  "default": "./dist/esm/index.js"
37
38
  },
@@ -42,8 +43,9 @@
42
43
  "clean": "rm -rf dist",
43
44
  "build": "yarn run -T turbo run turbo:build",
44
45
  "prepack": "yarn run build",
45
- "turbo:build": "yarn build:esm && yarn build:types",
46
+ "turbo:build": "yarn build:esm && yarn build:cjs && yarn build:types",
46
47
  "build:esm": "build-package esm",
48
+ "build:cjs": "build-package cjs",
47
49
  "build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json",
48
50
  "lint": "eslint",
49
51
  "lint:fix": "eslint --fix",
@@ -96,8 +98,8 @@
96
98
  "react-dom": "^19.2.0"
97
99
  },
98
100
  "dependencies": {
99
- "@simplybusiness/icons": "^5.0.1",
100
- "@simplybusiness/mobius": "^8.0.1",
101
+ "@simplybusiness/icons": "^5.0.2",
102
+ "@simplybusiness/mobius": "^8.0.2",
101
103
  "classnames": "^2.5.1",
102
104
  "date-fns": "^4.1.0",
103
105
  "react-day-picker": "^9.13.0"