@xapp/form-widget 1.70.1 → 1.71.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.
Files changed (31) hide show
  1. package/dist/api/stentor-api.d.ts +0 -0
  2. package/dist/components/Form/Form.d.ts +0 -0
  3. package/dist/components/FormFieldDate/FormFieldDate.d.ts +0 -0
  4. package/dist/components/FormStepDisplay/FormStepDisplay.d.ts +0 -0
  5. package/dist/components/FormStepDisplay/validators.d.ts +0 -0
  6. package/dist/components/FormWidget/FormWidget.d.ts +0 -0
  7. package/dist/components/SearchInput/SearchInputContainer.d.ts +0 -0
  8. package/dist/components/SearchResponse/SearchResponse.d.ts +0 -0
  9. package/dist/components/SearchResponseDisplay/SearchResponseDisplay.d.ts +0 -0
  10. package/dist/components/SearchResponseFormDisplay/SearchResponseFormDisplay.d.ts +0 -0
  11. package/dist/components/SearchResult/SearchResult.d.ts +0 -0
  12. package/dist/components/SearchResult/index.d.ts +0 -0
  13. package/dist/components/WidgetStylesheet/WidgetStylesheet.d.ts +0 -0
  14. package/dist/components/index.d.ts +1 -0
  15. package/dist/config/form-widget-config.d.ts +0 -0
  16. package/dist/config/index.d.ts +0 -0
  17. package/dist/index.d.ts +5 -3
  18. package/dist/index.es.js +98 -91
  19. package/dist/index.es.js.map +1 -1
  20. package/dist/store/SearchState.d.ts +0 -0
  21. package/dist/store/actions/SearchAction.d.ts +0 -0
  22. package/dist/store/actions/SearchActionType.d.ts +0 -0
  23. package/dist/store/actions/SetContextAction.d.ts +0 -0
  24. package/dist/store/actions/SetModalStateAction.d.ts +0 -0
  25. package/dist/store/actions/SetQueryAction.d.ts +0 -0
  26. package/dist/store/actions/SetResponseAction.d.ts +0 -0
  27. package/dist/stories/random-theme.d.ts +1 -1
  28. package/dist/utils/parseWidgetEnv.d.ts +0 -0
  29. package/dist/xapp-form-widget.css +52 -51
  30. package/dist/xapp-form-widget.js +56 -6
  31. package/package.json +20 -20
Binary file
@@ -1,3 +1,3 @@
1
- import { FormWidgetTheme } from "../config";
1
+ import { FormWidgetTheme } from "@xapp/stentor-form-widget-channel";
2
2
  export declare function randomTheme(): FormWidgetTheme;
3
3
  export declare function useRandomTheme(): FormWidgetTheme;
Binary file
@@ -323,7 +323,7 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
323
323
  @media (max-width: 640px) {
324
324
  .FormFieldChips-module_xapp_checkbox_chip__8DRkb {
325
325
  min-width: 100px !important;
326
- font-size: 10px !important;
326
+ font-size: 16px !important;
327
327
  }
328
328
  .FormFieldChips-module_xapp_checkbox_chip__8DRkb .MuiChip-label {
329
329
  margin: 0;
@@ -379,9 +379,15 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
379
379
  .FormFieldTextInput-module_xapp_text_input_text__3rHVn .MuiInputBase-input:focus {
380
380
  background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;
381
381
  }
382
+ .FormFieldTextInput-module_xapp_text_input_text__3rHVn .MuiTextField-root {
383
+ background-color: var(--xapp-form-widget-text-background-color, rgba(0, 0, 0, 0.06)) !important;
384
+ }
382
385
  .FormFieldTextInput-module_xapp_text_input_text__3rHVn .MuiTextField-root .MuiInputLabel-root.MuiInputLabel-multiline {
383
386
  top: 8px;
384
387
  }
388
+ .FormFieldTextInput-module_xapp_text_input_text__3rHVn .MuiInputBase-multiline {
389
+ padding: 0px;
390
+ }
385
391
  .FormFieldDate-module_xapp_date_picker_container__d8LYB {
386
392
  max-height: 260px;
387
393
  }
@@ -397,14 +403,21 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
397
403
  .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiDayCalendar-slideTransition {
398
404
  min-height: 200px !important;
399
405
  }
400
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button, .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root.MuiButtonBase-root {
406
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button {
401
407
  color: rgba(0, 0, 0, 0.54) !important;
402
- background-color: transparent !important;
403
408
  }
404
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button:hover, .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root.MuiButtonBase-root:hover {
409
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button:hover {
405
410
  background-image: unset !important;
406
411
  }
407
- .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button:focus, .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root.MuiButtonBase-root:focus {
412
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersArrowSwitcher-button:focus {
413
+ background-image: unset !important;
414
+ outline: unset !important;
415
+ border: 0 !important;
416
+ }
417
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root.MuiButtonBase-root:hover {
418
+ background-image: unset !important;
419
+ }
420
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-root.MuiButtonBase-root:focus {
408
421
  background-image: unset !important;
409
422
  outline: unset !important;
410
423
  border: 0 !important;
@@ -438,6 +451,13 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
438
451
  }
439
452
  .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiPickersDay-dayWithMargin.Mui-disabled {
440
453
  font-weight: 300 !important;
454
+ text-decoration: line-through !important;
455
+ }
456
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_past__ECo-S {
457
+ background-color: rgba(48, 49, 53, 0.2392156863) !important;
458
+ }
459
+ .FormFieldDate-module_xapp_date_picker__Rvtj1 .FormFieldDate-module_xapp_date_picker_blocked__e-aNY {
460
+ background-color: rgba(255, 0, 107, 0.1607843137) !important;
441
461
  }
442
462
  .FormFieldDate-module_xapp_date_picker__Rvtj1 .MuiDayCalendar-weekDayLabel {
443
463
  font-weight: 600 !important;
@@ -516,6 +536,14 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
516
536
  .FormStepDisplay-module_xapp_secondary_button__LuMfN:hover {
517
537
  filter: brightness(80%) !important;
518
538
  }
539
+
540
+ .FormStepDisplay-module_xapp_disabled_button__RjSfL {
541
+ background-color: rgba(121, 117, 133, 0.5) !important;
542
+ font-family: inherit !important;
543
+ }
544
+ .FormStepDisplay-module_xapp_disabled_button__RjSfL:hover {
545
+ filter: brightness(80%) !important;
546
+ }
519
547
  .FormFieldSelect-module_xapp_checkbox_select__QccWu {
520
548
  margin: 6px !important;
521
549
  font-size: 12px !important;
@@ -655,40 +683,6 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
655
683
  padding: 0 10px;
656
684
  overflow: auto;
657
685
  }
658
- .SearchResult-module_xapp_search_result__NPyKB {
659
- display: flex;
660
- flex-direction: row;
661
- flex: 1 1 auto;
662
- box-sizing: border-box;
663
- overflow: hidden;
664
- max-height: 100%;
665
- }
666
- .SearchResult-module_xapp_search_result__suggestions__7OBmC, .SearchResult-module_xapp_search_result__preview__vQRcO {
667
- padding-top: 12px;
668
- padding-bottom: 12px;
669
- box-sizing: border-box;
670
- overflow-x: hidden;
671
- overflow-y: auto;
672
- word-break: break-word;
673
- }
674
- .SearchResult-module_xapp_search_result__suggestions__7OBmC {
675
- flex: 0 0 60%;
676
- padding-top: 12px;
677
- padding-bottom: 12px;
678
- box-sizing: border-box;
679
- overflow: auto;
680
- }
681
- .SearchResult-module_xapp_search_result__preview__vQRcO {
682
- flex: 0 0 40%;
683
- border-left: solid 1px #d3d3df;
684
- padding-left: 12px;
685
- padding-right: 12px;
686
- }
687
- .SearchResult-module_xapp_search_result__use__VA7CB {
688
- width: 28px;
689
- padding: 4px;
690
- color: inherit;
691
- }
692
686
  .FormWidget-module_loading__aAJ-B {
693
687
  background-color: rgba(0, 0, 0, 0) !important;
694
688
  border: 0px !important;
@@ -701,7 +695,7 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
701
695
  background: var(--xapp-form-widget-background-color, #f3f8fb);
702
696
  border-radius: 17.5px;
703
697
  overflow: hidden;
704
- max-width: 100%;
698
+ max-width: 740px;
705
699
  max-height: 100%;
706
700
  box-sizing: border-box;
707
701
  position: relative;
@@ -713,7 +707,7 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
713
707
  max-height: 100%;
714
708
  min-height: 128px;
715
709
  overflow: hidden;
716
- width: 500px;
710
+ width: 100%;
717
711
  }
718
712
  .FormWidget-module_xapp_form_widget__response__X8Hbz {
719
713
  padding-top: 1em;
@@ -745,20 +739,26 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
745
739
  background-color: #a0a1c5;
746
740
  }
747
741
 
742
+ @media (min-width: 1201px) {
743
+ .FormWidget-module_xapp_form_widget__content__a9NXC {
744
+ width: 740px;
745
+ }
746
+ }
747
+ @media (min-width: 992px) and (max-width: 1200px) {
748
+ .FormWidget-module_xapp_form_widget__content__a9NXC {
749
+ width: 600px;
750
+ }
751
+ }
752
+ @media (min-width: 641px) and (max-width: 991px) {
753
+ .FormWidget-module_xapp_form_widget__content__a9NXC {
754
+ width: 500px;
755
+ }
756
+ }
748
757
  @media (max-width: 640px) {
749
758
  .FormWidget-module_xapp_form_widget__content__a9NXC {
750
759
  width: 100%;
751
760
  }
752
761
  }
753
- .FormWidget-module_xapp_search_suggestions__J3DIf + container {
754
- position: absolute;
755
- top: 74px;
756
- left: 0;
757
- width: 100%;
758
- background-color: var(--xapp-form-widget-background-color, #f3f8fb);
759
- border: solid 1px #d3d3df;
760
- border-radius: 0 0 17.5px 17.5px;
761
- }
762
762
  .ChatButton-module_xapp_chat_button__HH7eW {
763
763
  position: fixed;
764
764
  top: 25px;
@@ -773,7 +773,7 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
773
773
  animation: ChatButton-module_widget-show-grow__z65qQ 0.5s backwards;
774
774
  width: 75px;
775
775
  height: 75px;
776
- z-index: 1000;
776
+ z-index: 10000;
777
777
  background-color: transparent !important;
778
778
  padding: 0;
779
779
  border-width: 0px;
@@ -816,6 +816,7 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
816
816
  }
817
817
  .SideButton-module_xapp_form_sticky_button__YqORL {
818
818
  position: fixed;
819
+ z-index: 10000;
819
820
  cursor: pointer;
820
821
  transform: translateY(-50%);
821
822
  text-align: center;