@ionic/core 9.0.11-dev.11793666452.109ac2a5 → 9.0.11-dev.11793705116.185a3203

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/components/ion-action-sheet.js +1 -1
  2. package/components/ion-alert.js +1 -1
  3. package/components/ion-datetime-button.js +1 -1
  4. package/components/ion-datetime.js +1 -1
  5. package/components/ion-modal.js +1 -1
  6. package/components/ion-popover.js +1 -1
  7. package/components/ion-select.js +1 -1
  8. package/components/ion-toast.js +1 -1
  9. package/components/{p-B7ExaLVL.js → p-BCQSEpww.js} +1 -1
  10. package/components/p-DibGn4gb.js +4 -0
  11. package/components/{p-1HReh-CB.js → p-DtZimz8H.js} +1 -1
  12. package/components/p-NZGZhPF5.js +4 -0
  13. package/components/p-PFwuhbqg.js +4 -0
  14. package/css/ionic/bundle.ionic.css +1 -1
  15. package/css/ionic/bundle.ionic.css.map +1 -1
  16. package/css/ionic/core.ionic.css +1 -1
  17. package/css/ionic/core.ionic.css.map +1 -1
  18. package/css/ionic/global.bundle.ionic.css.map +1 -1
  19. package/css/ionic/link.ionic.css.map +1 -1
  20. package/css/ionic/typography.ionic.css.map +1 -1
  21. package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
  22. package/dist/cjs/ion-alert.cjs.entry.js +1 -1
  23. package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -33
  24. package/dist/cjs/ion-datetime.cjs.entry.js +36 -345
  25. package/dist/cjs/ion-modal.cjs.entry.js +1 -1
  26. package/dist/cjs/ion-popover.cjs.entry.js +1 -1
  27. package/dist/cjs/ion-toast.cjs.entry.js +1 -1
  28. package/dist/cjs/ionic.cjs.js +1 -1
  29. package/dist/cjs/loader.cjs.js +1 -1
  30. package/dist/collection/components/action-sheet/action-sheet.ionic.css +1 -1
  31. package/dist/collection/components/alert/alert.ionic.css +1 -1
  32. package/dist/collection/components/datetime/datetime.ionic.css +5 -170
  33. package/dist/collection/components/datetime/datetime.ios.css +2 -125
  34. package/dist/collection/components/datetime/datetime.js +33 -398
  35. package/dist/collection/components/datetime/datetime.md.css +0 -111
  36. package/dist/collection/components/datetime/utils/state.js +1 -18
  37. package/dist/collection/components/datetime-button/datetime-button.js +6 -34
  38. package/dist/collection/components/modal/modal.ionic.css +2 -2
  39. package/dist/collection/components/popover/popover.ionic.css +2 -1
  40. package/dist/collection/components/toast/toast.ionic.css +1 -1
  41. package/dist/docs.json +1 -151
  42. package/dist/esm/{format-DUHrIiJq.js → format-NT7iHsbA.js} +1 -1
  43. package/dist/esm/ion-action-sheet.entry.js +1 -1
  44. package/dist/esm/ion-alert.entry.js +1 -1
  45. package/dist/esm/ion-datetime-button.entry.js +7 -34
  46. package/dist/esm/ion-datetime.entry.js +37 -346
  47. package/dist/esm/ion-modal.entry.js +1 -1
  48. package/dist/esm/ion-popover.entry.js +1 -1
  49. package/dist/esm/ion-toast.entry.js +1 -1
  50. package/dist/esm/ionic.js +1 -1
  51. package/dist/esm/loader.js +1 -1
  52. package/dist/html.html-data.json +0 -20
  53. package/dist/ionic/ionic.esm.js +1 -1
  54. package/dist/ionic/p-0743a26a.entry.js +4 -0
  55. package/dist/ionic/p-1d87b153.entry.js +4 -0
  56. package/dist/ionic/{p-5a024b02.entry.js → p-3ddd32cc.entry.js} +1 -1
  57. package/dist/ionic/{p-CaOPF8Xt.js → p-BtccSO5J.js} +1 -1
  58. package/dist/ionic/p-a1555032.entry.js +4 -0
  59. package/dist/ionic/p-ad46d2fd.entry.js +4 -0
  60. package/dist/ionic/{p-3674a7de.entry.js → p-b076511a.entry.js} +1 -1
  61. package/dist/ionic/p-dbf53341.entry.js +4 -0
  62. package/dist/types/components/datetime/datetime-interface.d.ts +0 -4
  63. package/dist/types/components/datetime/datetime.d.ts +2 -66
  64. package/dist/types/components/datetime/utils/state.d.ts +2 -5
  65. package/dist/types/components.d.ts +0 -33
  66. package/hydrate/index.js +47 -391
  67. package/hydrate/index.mjs +47 -391
  68. package/package.json +2 -2
  69. package/components/p-DgNvIX46.js +0 -4
  70. package/components/p-DmyvpOqm.js +0 -4
  71. package/components/p-mG85e2ek.js +0 -4
  72. package/dist/ionic/p-1b7efcc2.entry.js +0 -4
  73. package/dist/ionic/p-9cce1ed5.entry.js +0 -4
  74. package/dist/ionic/p-ceca04fb.entry.js +0 -4
  75. package/dist/ionic/p-d7da66b1.entry.js +0 -4
  76. package/dist/ionic/p-f02c29cd.entry.js +0 -4
@@ -346,99 +346,11 @@
346
346
 
347
347
  :host .calendar-day-wrapper {
348
348
  display: flex;
349
- position: relative;
350
349
  align-items: center;
351
350
  justify-content: center;
352
351
  min-width: 0;
353
352
  min-height: 0;
354
353
  overflow: visible;
355
- /**
356
- * Create a stacking context so the range track
357
- * (::before with z-index: -1) stays behind the
358
- * day button but above the host background.
359
- */
360
- z-index: 0;
361
- }
362
-
363
- /**
364
- * Each day in the range draws its own piece of the track with a
365
- * ::before. In-range days fill the cell, while the start and end
366
- * caps cover the half between the pill center and the next day.
367
- *
368
- * Grid columns are `1fr`, so cell edges land on fractional pixels
369
- * and a cell's track can fall a hairline short of its neighbor's.
370
- * Each day therefore extends 1px toward the next day in the range,
371
- * which the next day paints over except inside such a gap.
372
- *
373
- * @prop --range-background: The background color of the range selection track.
374
- */
375
- :host .calendar-day-wrapper-in-range::before,
376
- :host .calendar-day-wrapper-range-start::before,
377
- :host .calendar-day-wrapper-range-end::before {
378
- position: absolute;
379
- top: 50%;
380
- inset-inline-start: 0;
381
- inset-inline-end: 0;
382
- height: var(--range-track-height);
383
- transform: translateY(-50%);
384
- /**
385
- * `--range-background` is translucent by default, so it is layered
386
- * over the datetime background to paint an opaque track. Where two
387
- * days overlap, the color stays the same instead of doubling up
388
- * into a darker line.
389
- */
390
- background: linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));
391
- content: "";
392
- z-index: -1;
393
- }
394
-
395
- :host .calendar-day-wrapper-range-start::before {
396
- inset-inline-start: 50%;
397
- }
398
-
399
- :host .calendar-day-wrapper-range-end::before {
400
- inset-inline-end: 50%;
401
- }
402
-
403
- :host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+ .calendar-day-wrapper-range-end)::before {
404
- inset-inline-end: -1px;
405
- }
406
-
407
- /**
408
- * A range that continues onto the next week runs the track
409
- * through the grid padding to the edge of the calendar.
410
- */
411
- :host .calendar-day-wrapper-in-range:nth-child(7n)::before,
412
- :host .calendar-day-wrapper-range-start:nth-child(7n)::before {
413
- inset-inline-end: calc(var(--range-track-edge-overflow, 0px) * -1);
414
- }
415
-
416
- :host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,
417
- :host .calendar-day-wrapper-range-end:nth-child(7n+1)::before {
418
- inset-inline-start: calc(var(--range-track-edge-overflow, 0px) * -1);
419
- }
420
-
421
- /**
422
- * When a single day is both the start and end of the range,
423
- * do not show a track since there is nothing to connect.
424
- */
425
- :host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before {
426
- display: none;
427
- }
428
-
429
- /**
430
- * When the component is disabled, fade the whole grid once instead of
431
- * fading each day. Fading a day makes it its own compositing group, so
432
- * the 1px that each day extends toward the next would be painted twice
433
- * and read as a darker seam. The day buttons drop their own disabled
434
- * opacity so the grid is the only thing applying it.
435
- */
436
- :host(.datetime-disabled.datetime-range) .calendar-month-grid {
437
- opacity: 0.4;
438
- }
439
-
440
- :host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled] {
441
- opacity: 1;
442
354
  }
443
355
 
444
356
  /**
@@ -539,7 +451,7 @@
539
451
  */
540
452
  --background: var(--token-bg-surface-default, var(--token-primitives-base-white, #ffffff));
541
453
  --focus-ring-color: var(--token-border-focus-default, var(--token-semantics-primary-400, var(--token-primitives-blue-400, #b5c0f7)));
542
- --focus-ring-width: var(--token-border-size-050, var(--token-scale-050, 2px));
454
+ --focus-ring-width: var(--token-border-radius-025, var(--token-scale-050, 2px));
543
455
  /**
544
456
  * TODO(FW-6931): Remove these variables upon solving the root cause
545
457
  */
@@ -689,16 +601,16 @@
689
601
  }
690
602
 
691
603
  .calendar-day[disabled]:not(.calendar-day-constrained) {
692
- color: var(--token-text-disabled, var(--token-primitives-neutral-500, #9fa5ad));
604
+ color: var(--token-primitives-neutral-500, #9fa5ad);
693
605
  }
694
606
 
695
607
  .calendar-day.calendar-day-today {
696
- color: var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)));
608
+ color: var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)));
697
609
  }
698
610
 
699
611
  .calendar-day.calendar-day-active,
700
612
  .calendar-day.calendar-day-active.calendar-day-adjacent-day {
701
- background: var(--token-bg-primary-subtle-default, var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff)));
613
+ background: var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff));
702
614
  }
703
615
 
704
616
  .calendar-day:focus-visible {
@@ -706,7 +618,7 @@
706
618
  }
707
619
 
708
620
  @media (any-hover: hover) {
709
- .calendar-day:not([disabled]):not(:active):not(.calendar-day-in-range):hover {
621
+ .calendar-day:not([disabled]):not(:active):hover {
710
622
  background: var(--token-semantics-primary-200, var(--token-primitives-blue-200, #e4e8ff));
711
623
  }
712
624
  }
@@ -723,83 +635,6 @@
723
635
  color: var(--token-text-default, var(--token-primitives-neutral-1200, #242528));
724
636
  }
725
637
 
726
- :host {
727
- --range-background: var(--token-bg-primary-subtle-default, var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff)));
728
- --range-track-height: var(--token-scale-1200, 48px);
729
- }
730
-
731
- :host .calendar-day.calendar-day-range-start,
732
- :host .calendar-day.calendar-day-range-end {
733
- border-radius: var(--token-border-radius-full, 999px);
734
- background: var(--token-bg-primary-base-default, var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef))));
735
- color: var(--token-text-inverse, var(--token-primitives-base-white, #ffffff));
736
- }
737
-
738
- .calendar-day.calendar-day-in-range {
739
- border-radius: 0;
740
- background: none;
741
- color: var(--token-text-default, var(--token-primitives-neutral-1200, #242528));
742
- }
743
-
744
- .calendar-day.calendar-day-today.calendar-day-in-range {
745
- color: var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)));
746
- }
747
-
748
- :host .calendar-day.calendar-day-today.calendar-day-range-start,
749
- :host .calendar-day.calendar-day-today.calendar-day-range-end {
750
- color: var(--token-text-inverse, var(--token-primitives-base-white, #ffffff));
751
- }
752
-
753
- @media (any-hover: hover) {
754
- .calendar-day.calendar-day-range-start:not([disabled]):not(:active):hover,
755
- .calendar-day.calendar-day-range-end:not([disabled]):not(:active):hover {
756
- background: var(--token-bg-primary-base-press, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3)));
757
- }
758
- }
759
- .calendar-day.calendar-day-range-start:active,
760
- .calendar-day.calendar-day-range-end:active {
761
- background: var(--token-bg-primary-base-press, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3)));
762
- }
763
-
764
- .calendar-day.calendar-day-in-range:active {
765
- background: var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa)));
766
- }
767
-
768
- :host(.datetime-disabled.datetime-range) .calendar-day[disabled]:not(.calendar-day-constrained) {
769
- color: var(--token-text-default, var(--token-primitives-neutral-1200, #242528));
770
- }
771
-
772
- :host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-adjacent-day[disabled] {
773
- color: var(--token-text-subtlest, var(--token-primitives-neutral-800, #6c727a));
774
- }
775
-
776
- :host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-today[disabled] {
777
- color: var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)));
778
- }
779
-
780
- :host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-range-start[disabled],
781
- :host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-range-end[disabled] {
782
- color: var(--token-text-inverse, var(--token-primitives-base-white, #ffffff));
783
- }
784
-
785
- :host(.datetime-readonly) .calendar-day.calendar-day-range-start[disabled],
786
- :host(.datetime-readonly) .calendar-day.calendar-day-range-end[disabled] {
787
- color: var(--token-text-inverse, var(--token-primitives-base-white, #ffffff));
788
- }
789
-
790
- :host(.datetime-readonly) .calendar-day.calendar-day-in-range[disabled] {
791
- color: var(--token-text-default, var(--token-primitives-neutral-1200, #242528));
792
- }
793
-
794
- :host(.datetime-readonly) .calendar-day.calendar-day-today.calendar-day-in-range[disabled] {
795
- color: var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)));
796
- }
797
-
798
- :host(.datetime-readonly) .calendar-day.calendar-day-today.calendar-day-range-start[disabled],
799
- :host(.datetime-readonly) .calendar-day.calendar-day-today.calendar-day-range-end[disabled] {
800
- color: var(--token-text-inverse, var(--token-primitives-base-white, #ffffff));
801
- }
802
-
803
638
  :host .datetime-time {
804
639
  -webkit-padding-start: var(--token-space-400, var(--token-scale-400, 16px));
805
640
  padding-inline-start: var(--token-space-400, var(--token-scale-400, 16px));
@@ -349,99 +349,11 @@
349
349
 
350
350
  :host .calendar-day-wrapper {
351
351
  display: flex;
352
- position: relative;
353
352
  align-items: center;
354
353
  justify-content: center;
355
354
  min-width: 0;
356
355
  min-height: 0;
357
356
  overflow: visible;
358
- /**
359
- * Create a stacking context so the range track
360
- * (::before with z-index: -1) stays behind the
361
- * day button but above the host background.
362
- */
363
- z-index: 0;
364
- }
365
-
366
- /**
367
- * Each day in the range draws its own piece of the track with a
368
- * ::before. In-range days fill the cell, while the start and end
369
- * caps cover the half between the pill center and the next day.
370
- *
371
- * Grid columns are `1fr`, so cell edges land on fractional pixels
372
- * and a cell's track can fall a hairline short of its neighbor's.
373
- * Each day therefore extends 1px toward the next day in the range,
374
- * which the next day paints over except inside such a gap.
375
- *
376
- * @prop --range-background: The background color of the range selection track.
377
- */
378
- :host .calendar-day-wrapper-in-range::before,
379
- :host .calendar-day-wrapper-range-start::before,
380
- :host .calendar-day-wrapper-range-end::before {
381
- position: absolute;
382
- top: 50%;
383
- inset-inline-start: 0;
384
- inset-inline-end: 0;
385
- height: var(--range-track-height);
386
- transform: translateY(-50%);
387
- /**
388
- * `--range-background` is translucent by default, so it is layered
389
- * over the datetime background to paint an opaque track. Where two
390
- * days overlap, the color stays the same instead of doubling up
391
- * into a darker line.
392
- */
393
- background: linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));
394
- content: "";
395
- z-index: -1;
396
- }
397
-
398
- :host .calendar-day-wrapper-range-start::before {
399
- inset-inline-start: 50%;
400
- }
401
-
402
- :host .calendar-day-wrapper-range-end::before {
403
- inset-inline-end: 50%;
404
- }
405
-
406
- :host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+ .calendar-day-wrapper-range-end)::before {
407
- inset-inline-end: -1px;
408
- }
409
-
410
- /**
411
- * A range that continues onto the next week runs the track
412
- * through the grid padding to the edge of the calendar.
413
- */
414
- :host .calendar-day-wrapper-in-range:nth-child(7n)::before,
415
- :host .calendar-day-wrapper-range-start:nth-child(7n)::before {
416
- inset-inline-end: calc(var(--range-track-edge-overflow, 0px) * -1);
417
- }
418
-
419
- :host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,
420
- :host .calendar-day-wrapper-range-end:nth-child(7n+1)::before {
421
- inset-inline-start: calc(var(--range-track-edge-overflow, 0px) * -1);
422
- }
423
-
424
- /**
425
- * When a single day is both the start and end of the range,
426
- * do not show a track since there is nothing to connect.
427
- */
428
- :host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before {
429
- display: none;
430
- }
431
-
432
- /**
433
- * When the component is disabled, fade the whole grid once instead of
434
- * fading each day. Fading a day makes it its own compositing group, so
435
- * the 1px that each day extends toward the next would be painted twice
436
- * and read as a darker seam. The day buttons drop their own disabled
437
- * opacity so the grid is the only thing applying it.
438
- */
439
- :host(.datetime-disabled.datetime-range) .calendar-month-grid {
440
- opacity: 0.4;
441
- }
442
-
443
- :host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled] {
444
- opacity: 1;
445
357
  }
446
358
 
447
359
  /**
@@ -1068,12 +980,12 @@ ion-picker {
1068
980
  }
1069
981
 
1070
982
  .calendar-day.calendar-day-active {
1071
- background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.12);
983
+ background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);
1072
984
  font-size: min(1.375rem, 35.2px);
1073
985
  }
1074
986
 
1075
987
  :host(.ion-color) .calendar-day.calendar-day-active {
1076
- background: rgba(var(--ion-color-base-rgb), 0.12);
988
+ background: rgba(var(--ion-color-base-rgb), 0.2);
1077
989
  }
1078
990
 
1079
991
  /**
@@ -1123,41 +1035,6 @@ ion-picker {
1123
1035
  color: var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));
1124
1036
  }
1125
1037
 
1126
- :host {
1127
- --range-background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.12);
1128
- --range-track-height: 40px;
1129
- --range-track-edge-overflow: 8px;
1130
- }
1131
-
1132
- :host(.ion-color) {
1133
- --range-background: rgba(var(--ion-color-base-rgb), 0.12);
1134
- }
1135
-
1136
- /**
1137
- * The wrapper has `height: 0`, which makes `top: 50%` on the range
1138
- * track resolve to 0 and pins the track to the top of the cell.
1139
- * Override to `auto` so the track stays vertically centered. Apply
1140
- * it to every wrapper in range mode so range rows are not taller
1141
- * than the other rows.
1142
- */
1143
- :host(.datetime-range) .calendar-day-wrapper {
1144
- height: auto;
1145
- }
1146
-
1147
- :host .calendar-day.calendar-day-range-start,
1148
- :host .calendar-day.calendar-day-range-end {
1149
- border-radius: 50%;
1150
- background: var(--ion-color-primary, #0054e9);
1151
- color: var(--ion-color-primary-contrast, #fff);
1152
- font-weight: 600;
1153
- }
1154
-
1155
- :host(.ion-color) .calendar-day.calendar-day-range-start,
1156
- :host(.ion-color) .calendar-day.calendar-day-range-end {
1157
- background: var(--ion-color-base);
1158
- color: var(--ion-color-contrast);
1159
- }
1160
-
1161
1038
  :host .datetime-time {
1162
1039
  -webkit-padding-start: 16px;
1163
1040
  padding-inline-start: 16px;