@xapp/form-widget 1.96.2 → 1.98.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
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -563,6 +563,35 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
563
563
  position: relative;
564
564
  }
565
565
 
566
+ .FormStepDisplay-module_xapp_step_full_bleed__rhGGK {
567
+ margin-left: -56px;
568
+ margin-right: -56px;
569
+ }
570
+ @media (max-width: 640px) {
571
+ .FormStepDisplay-module_xapp_step_full_bleed__rhGGK {
572
+ margin-left: -32px;
573
+ margin-right: -32px;
574
+ }
575
+ }
576
+
577
+ .FormStepDisplay-module_xapp_external_widget_container__ec4Hs {
578
+ background-color: var(--xapp-form-widget-external-widget-background-color, transparent);
579
+ padding: var(--xapp-form-widget-external-widget-padding, 0);
580
+ min-height: var(--xapp-form-widget-external-widget-min-height, auto);
581
+ box-sizing: border-box;
582
+ }
583
+
584
+ .FormStepDisplay-module_xapp_external_widget_anchor__NSXBg {
585
+ margin: 0;
586
+ padding: 0;
587
+ }
588
+
589
+ .FormStepDisplay-module_xapp_external_widget_fallback__lkFJ- {
590
+ padding: 20px;
591
+ text-align: center;
592
+ font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);
593
+ }
594
+
566
595
  .FormStepDisplay-module_xapp_formfield__hRmVx {
567
596
  display: none;
568
597
  font-family: inherit !important;
@@ -665,6 +694,66 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
665
694
  border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;
666
695
  cursor: not-allowed !important;
667
696
  }
697
+ /**
698
+ * CostGuide / Contractor Appointments booking-embed style overrides.
699
+ *
700
+ * The partner renders its form into #airo-anchor in the light DOM with stable, semantic
701
+ * class names (spike: chat-widget#1514). This is a plain (non-module) stylesheet on purpose
702
+ * so the selectors below emit literally rather than being scoped -- they target the partner's
703
+ * own markup, not ours.
704
+ *
705
+ * Two hard constraints from the spike:
706
+ * 1. Their rules are scoped `#airo-anchor #step-<name> .<class>` (two ids + a class), so a
707
+ * plain `#airo-anchor .btn-next` measurably loses. Overrides must carry `#airo-anchor`
708
+ * specificity AND `!important` to win.
709
+ * 2. Most of their text inherits the container font, but `input` is explicitly Arial, so the
710
+ * font must be re-applied to inputs directly.
711
+ *
712
+ * Every value maps to a `--xapp-form-widget-*` theme variable (with a fallback matching
713
+ * `styles/_variables.scss`), so a Studio-themed widget restyles the partner's form too --
714
+ * nothing here is a hard-coded color, font, or radius.
715
+ *
716
+ * Partner selectors verified: 2026-08-04. Re-verify against their markup per chat-widget#1516.
717
+ */
718
+ /* Primary action buttons: btn-next / btn-orange */
719
+ #airo-anchor .btn-next,
720
+ #airo-anchor .btn-orange {
721
+ background-color: var(--xapp-form-widget-primary-button-color, #ea6539) !important;
722
+ color: var(--xapp-form-widget-primary-button-text-color, #b7c5d1) !important;
723
+ border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;
724
+ font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;
725
+ }
726
+
727
+ /* Secondary / back button: btn-back */
728
+ #airo-anchor .btn-back {
729
+ background-color: var(--xapp-form-widget-secondary-button-color, #d24cc7) !important;
730
+ color: var(--xapp-form-widget-secondary-button-text-color, #b7c5d1) !important;
731
+ border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;
732
+ }
733
+
734
+ /* Headings and body text: stepwrap / ms-title / ms-subtitle / page-title / label-item */
735
+ #airo-anchor .stepwrap,
736
+ #airo-anchor .ms-title,
737
+ #airo-anchor .ms-subtitle,
738
+ #airo-anchor .page-title,
739
+ #airo-anchor .label-item {
740
+ color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87)) !important;
741
+ font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;
742
+ }
743
+
744
+ /* Inputs are explicitly Arial in their sheet, so the inherited container font never reaches
745
+ them -- re-apply directly (spike finding). radio-item grouped for the same reason. */
746
+ #airo-anchor input,
747
+ #airo-anchor .radio-item {
748
+ font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;
749
+ }
750
+
751
+ /* Focus rings consistent with ours rather than their default orange. */
752
+ #airo-anchor input:focus,
753
+ #airo-anchor .btn-next:focus,
754
+ #airo-anchor .btn-back:focus {
755
+ outline-color: var(--xapp-form-widget-focus-ring-color, #012b54) !important;
756
+ }
668
757
  .SimpleNavigationHeader-module_xapp_navigation_header__YhCD1 {
669
758
  background-color: inherit !important;
670
759
  }