@xapp/form-widget 1.99.0 → 1.100.0

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.
Binary file
@@ -12,7 +12,7 @@
12
12
  }
13
13
  @media (max-width: 640px) {
14
14
  .ModalDialog-module_xapp_search_modal__WpGiJ {
15
- padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
15
+ padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(env(safe-area-inset-bottom) + var(--xapp-keyboard-inset, 0px)) env(safe-area-inset-left);
16
16
  }
17
17
  }
18
18
  @media (max-height: 640px) and (min-width: 641px) {
@@ -43,10 +43,6 @@
43
43
  height: 100%;
44
44
  }
45
45
  }
46
-
47
- body.ModalDialog-module_xapp_search_opened__jgDSX {
48
- overflow: hidden;
49
- }
50
46
  .SearchResponseBubble-module_xapp_search_response_bubble__UtmuK {
51
47
  --xapp-bubble-background: #fff;
52
48
  }
@@ -515,6 +511,47 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
515
511
  font-weight: 600 !important;
516
512
  font-size: 0.75rem !important;
517
513
  }
514
+
515
+ /* Mobile: 44x44 tappable day cells.
516
+ *
517
+ * Date selection is the most expensive mis-tap in this funnel - the visitor either books the
518
+ * wrong day or gives up - and MUI ships 36x36 cells (30x30 once the rules above apply). Both
519
+ * are under the 44x44 that Apple's HIG and WCAG 2.5.8 ask for.
520
+ *
521
+ * `:global(...)` rather than the bare MUI class names used above, and that difference is not
522
+ * cosmetic. The two builds treat this file differently: rollup's postcss-modules is
523
+ * configured with a `generateScopedName` that returns every name unchanged, so the plain
524
+ * selectors above do match MUI's classes in the published bundle - but Storybook's css-loader
525
+ * hashes them, so up there they match nothing and the calendar renders at MUI's own defaults.
526
+ * `:global` is honoured by both, so these rules land either way. (The rules above are left as
527
+ * they are: making them global too would change the shipped calendar, which is not what this
528
+ * issue is about.)
529
+ *
530
+ * The seven columns have to keep fitting inside MUI's 320px-wide calendar, and 7 x 44 = 308
531
+ * only fits once the 2px side margins on each cell go - hence dropping the gap rather than
532
+ * the cell, per the issue.
533
+ */
534
+ @media (max-width: 640px) {
535
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root,
536
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-dayWithMargin {
537
+ width: 44px !important;
538
+ height: 44px !important;
539
+ margin: 0 !important;
540
+ font-size: 0.875rem !important;
541
+ }
542
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiDayCalendar-weekDayLabel {
543
+ width: 44px !important;
544
+ height: 44px !important;
545
+ margin: 0 !important;
546
+ }
547
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiDayCalendar-slideTransition {
548
+ min-height: 264px !important;
549
+ }
550
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button {
551
+ width: 44px !important;
552
+ height: 44px !important;
553
+ }
554
+ }
518
555
  .FormFieldTextInputAddress-module_xapp_text_input_address_container__title__IbovL p {
519
556
  margin: 0;
520
557
  font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));
@@ -584,8 +621,8 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
584
621
  }
585
622
  @media (max-width: 640px) {
586
623
  .FormStepDisplay-module_xapp_step_full_bleed__rhGGK {
587
- margin-left: -8px;
588
- margin-right: -8px;
624
+ margin-left: calc(-1 * (8px + env(safe-area-inset-left, 0px)));
625
+ margin-right: calc(-1 * (8px + env(safe-area-inset-right, 0px)));
589
626
  }
590
627
  }
591
628
 
@@ -1085,6 +1122,15 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
1085
1122
  transition: background-color 200ms ease-in-out, transform 150ms ease-in-out, box-shadow 200ms ease-in-out;
1086
1123
  box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08));
1087
1124
  }
1125
+ .FormWidget-module_xapp_form_widget__close__0lp0O::before {
1126
+ content: "";
1127
+ position: absolute;
1128
+ top: 50%;
1129
+ left: 50%;
1130
+ transform: translate(-50%, -50%);
1131
+ width: 44px;
1132
+ height: 44px;
1133
+ }
1088
1134
  .FormWidget-module_xapp_form_widget__close__0lp0O:hover {
1089
1135
  background-color: rgb(255, 255, 255);
1090
1136
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);