@xapp/form-widget 1.97.0 → 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.
@@ -0,0 +1 @@
1
+ export {};
@@ -694,6 +694,66 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
694
694
  border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;
695
695
  cursor: not-allowed !important;
696
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
+ }
697
757
  .SimpleNavigationHeader-module_xapp_navigation_header__YhCD1 {
698
758
  background-color: inherit !important;
699
759
  }