@cleartrip/ct-design-style-manager 5.32.0-SNAPSHOT-native-main.2 → 5.32.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 (51) hide show
  1. package/README.md +0 -17
  2. package/dist/ct-design-styleManager.browser.cjs.js +1 -1
  3. package/dist/ct-design-styleManager.browser.cjs.js.map +1 -1
  4. package/dist/ct-design-styleManager.browser.esm.js +1 -1
  5. package/dist/ct-design-styleManager.browser.esm.js.map +1 -1
  6. package/dist/ct-design-styleManager.cjs.js +51 -928
  7. package/dist/ct-design-styleManager.cjs.js.map +1 -1
  8. package/dist/ct-design-styleManager.esm.js +53 -922
  9. package/dist/ct-design-styleManager.esm.js.map +1 -1
  10. package/dist/ct-design-styleManager.umd.js +48 -953
  11. package/dist/ct-design-styleManager.umd.js.map +1 -1
  12. package/dist/globalLayoutStyles/gs.d.ts +2 -2518
  13. package/dist/globalLayoutStyles/gs.d.ts.map +1 -1
  14. package/dist/index.d.ts +1 -4
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/makeStyles/index.native.d.ts.map +1 -1
  17. package/dist/makeStyles/preprocess/index.d.ts +0 -1
  18. package/dist/makeStyles/preprocess/index.d.ts.map +1 -1
  19. package/dist/makeWebStyles/index.d.ts +2 -8
  20. package/dist/makeWebStyles/index.d.ts.map +1 -1
  21. package/dist/useNativeMergeStyles/index.native.d.ts.map +1 -1
  22. package/dist/useWebMergeStyles/index.d.ts.map +1 -1
  23. package/dist/useWebStyles/index.d.ts +4 -2
  24. package/dist/useWebStyles/index.d.ts.map +1 -1
  25. package/package.json +4 -4
  26. package/src/globalLayoutStyles/gs.ts +3 -274
  27. package/src/index.ts +1 -10
  28. package/src/makeStyles/index.native.ts +0 -1
  29. package/src/makeStyles/preprocess/index.ts +0 -21
  30. package/src/makeWebStyles/index.ts +6 -43
  31. package/src/useNativeMergeStyles/index.native.ts +0 -1
  32. package/src/useWebMergeStyles/index.ts +4 -51
  33. package/src/useWebStyles/index.ts +3 -3
  34. package/dist/globalLayoutStyles/gs.native.d.ts +0 -1291
  35. package/dist/globalLayoutStyles/gs.native.d.ts.map +0 -1
  36. package/dist/legacyClasses/index.d.ts +0 -8
  37. package/dist/legacyClasses/index.d.ts.map +0 -1
  38. package/dist/legacyClasses/legacyClassLists.d.ts +0 -4
  39. package/dist/legacyClasses/legacyClassLists.d.ts.map +0 -1
  40. package/dist/legacyUtilities/ctDesignStylesClasses.d.ts +0 -3
  41. package/dist/legacyUtilities/ctDesignStylesClasses.d.ts.map +0 -1
  42. package/dist/legacyUtilities/index.d.ts +0 -3
  43. package/dist/legacyUtilities/index.d.ts.map +0 -1
  44. package/dist/normalizeNativeStyle/index.d.ts +0 -3
  45. package/dist/normalizeNativeStyle/index.d.ts.map +0 -1
  46. package/src/globalLayoutStyles/gs.native.ts +0 -538
  47. package/src/legacyClasses/index.ts +0 -31
  48. package/src/legacyClasses/legacyClassLists.ts +0 -497
  49. package/src/legacyUtilities/ctDesignStylesClasses.ts +0 -70
  50. package/src/legacyUtilities/index.ts +0 -63
  51. package/src/normalizeNativeStyle/index.ts +0 -45
@@ -5,7 +5,6 @@ var react = require('react');
5
5
  var css = require('@emotion/css');
6
6
  require('@react-native/normalize-colors');
7
7
  var valueParser = require('postcss-value-parser');
8
- var tslib = require('tslib');
9
8
 
10
9
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
10
 
@@ -268,18 +267,6 @@ const preprocess = (originalStyle, options = {}) => {
268
267
  }
269
268
  return nextStyle;
270
269
  };
271
- const preprocessForWeb = (style) => {
272
- const nextStyle = {};
273
- for (const originalProp in style) {
274
- const originalValue = style[originalProp];
275
- if (originalProp === 'lineHeight') {
276
- nextStyle[originalProp] = originalValue;
277
- continue;
278
- }
279
- nextStyle[originalProp] = normalizeValueWithProperty(originalValue, originalProp);
280
- }
281
- return nextStyle;
282
- };
283
270
 
284
271
  const invalidShortforms = {
285
272
  background: true,
@@ -387,7 +374,55 @@ function useStyles(styleFactory, dep) {
387
374
  }, dep);
388
375
  }
389
376
 
390
- const gsStyleFactory = (theme) => {
377
+ const useWebMergeStyles = (styles, deps) => {
378
+ return useStableMemo(() => {
379
+ const classes = [];
380
+ styles.filter(Boolean).forEach((style) => {
381
+ if (typeof style === 'string') {
382
+ classes.push(style);
383
+ }
384
+ else {
385
+ if (style) {
386
+ const defaultPreprocessOptions = { shadow: true, textShadow: true };
387
+ const preprocessedStyle = preprocess(style, defaultPreprocessOptions);
388
+ const emotionClass = css.css(preprocessedStyle);
389
+ classes.push(emotionClass);
390
+ }
391
+ }
392
+ });
393
+ return css.css(classes);
394
+ }, deps);
395
+ };
396
+
397
+ const getStyles = (styles) => {
398
+ return Array.isArray(styles) && styles.every((style) => typeof style !== 'string');
399
+ };
400
+ function useNativeMergeStyles(styles, deps) {
401
+ return useStableMemo(() => {
402
+ if (getStyles(styles)) {
403
+ return null;
404
+ }
405
+ }, deps);
406
+ }
407
+
408
+ function makeWebStyles(styleFactory, customTheme) {
409
+ const theme = customTheme || ctDesignTheme.ThemeManager.get();
410
+ const styles = styleFactory(theme);
411
+ const classes = {};
412
+ for (const [key, value] of Object.entries(styles)) {
413
+ classes[key] = css.css(value);
414
+ }
415
+ return classes;
416
+ }
417
+
418
+ function useWebStyles(styleFactory, deps) {
419
+ const theme = ctDesignTheme.useTheme();
420
+ return useStableMemo(() => {
421
+ return makeWebStyles(styleFactory, theme);
422
+ }, deps);
423
+ }
424
+
425
+ const gs = makeStyles((theme) => {
391
426
  const { spacing } = theme;
392
427
  return {
393
428
  flex: { display: 'flex' },
@@ -653,14 +688,12 @@ const gsStyleFactory = (theme) => {
653
688
  'py-8': { paddingVertical: spacing[8] },
654
689
  'py-9': { paddingVertical: spacing[9] },
655
690
  'py-10': { paddingVertical: spacing[10] },
656
- 'br-50p': { borderRadius: '50%' },
691
+ 'br-50p': { borderRadius: 50 },
657
692
  'br-4': { borderRadius: 4 },
658
693
  'br-8': { borderRadius: 8 },
659
694
  'br-12': { borderRadius: 12 },
660
695
  'br-16': { borderRadius: 16 },
661
696
  'br-20': { borderRadius: 20 },
662
- 'ba-solid': { borderStyle: 'solid', borderWidth: 1 },
663
- 'bc-line-500': { borderColor: '#e6e6e6' },
664
697
  'z-0': { zIndex: 0 },
665
698
  'z-1': { zIndex: 1 },
666
699
  'z-2': { zIndex: 2 },
@@ -696,920 +729,10 @@ const gsStyleFactory = (theme) => {
696
729
  'ta-r': {
697
730
  textAlign: 'right',
698
731
  },
699
- 'ba-dashed': { borderStyle: 'dashed', borderWidth: 1 },
700
- 'bb': { borderBottomStyle: 'solid', borderBottomWidth: 1 },
701
- 'bb-dotted': { borderBottomStyle: 'dotted', borderBottomWidth: 1 },
702
- 'bb-solid': { borderBottomStyle: 'solid', borderBottomWidth: 1 },
703
- 'bc-default': { borderColor: '#000' },
704
- 'bc-error-100': { borderColor: '#fbefef' },
705
- 'bc-error-500': { borderColor: '#cc1414' },
706
- 'bc-line-700': { borderColor: '#dbdbdb' },
707
- 'bc-neutral-100': { borderColor: '#fff' },
708
- 'bc-neutral-300': { borderColor: '#f7f7f7' },
709
- 'bc-neutral-500': { borderColor: '#e0e0e0' },
710
- 'bc-neutral-700': { borderColor: 'grey' },
711
- 'bc-neutral-900': { borderColor: '#1a1a1a' },
712
- 'bc-primary-100': { borderColor: '#fef3ed' },
713
- 'bc-primary-300': { borderColor: '#fbe0d3' },
714
- 'bc-primary-500': { borderColor: '#ed6521' },
715
- 'bc-primary-700': { borderColor: '#6a1f13' },
716
- 'bc-secondary-100': { borderColor: '#eff3fb' },
717
- 'bc-secondary-300': { borderColor: '#aecff9' },
718
- 'bc-secondary-500': { borderColor: '#36c' },
719
- 'bc-secondary-700': { borderColor: '#152255' },
720
- 'bc-success-100': { borderColor: '#ebf9f6' },
721
- 'bc-success-500': { borderColor: '#00b28a' },
722
- 'bc-warning-100': { borderColor: '#fcf7f0' },
723
- 'bc-warning-500': { borderColor: '#df9641' },
724
- 'bg-error-100': { backgroundColor: '#fbefef' },
725
- 'bg-error-500': { backgroundColor: '#cc1414' },
726
- 'bg-line-500': { backgroundColor: '#e6e6e6' },
727
- 'bg-line-700': { backgroundColor: '#dbdbdb' },
728
- 'bg-neutral-300': { backgroundColor: '#f7f7f7' },
729
- 'bg-neutral-500': { backgroundColor: '#e0e0e0' },
730
- 'bg-neutral-700': { backgroundColor: 'grey' },
731
- 'bg-neutral-900': { backgroundColor: '#1a1a1a' },
732
- 'bg-primary-100': { backgroundColor: '#fef3ed' },
733
- 'bg-primary-300': { backgroundColor: '#fbe0d3' },
734
- 'bg-primary-500': { backgroundColor: '#ed6521' },
735
- 'bg-primary-700': { backgroundColor: '#6a1f13' },
736
- 'bg-secondary-100': { backgroundColor: '#eff3fb' },
737
- 'bg-secondary-300': { backgroundColor: '#aecff9' },
738
- 'bg-secondary-500': { backgroundColor: '#36c' },
739
- 'bg-secondary-700': { backgroundColor: '#152255' },
740
- 'bg-success-100': { backgroundColor: '#ebf9f6' },
741
- 'bg-success-500': { backgroundColor: '#00b28a' },
742
- 'bg-transparent': { backgroundColor: 'transparent' },
743
- 'bg-warning-100': { backgroundColor: '#fcf7f0' },
744
- 'bg-warning-500': { backgroundColor: '#df9641' },
745
- 'bl-0': { borderLeftWidth: 0 },
746
- 'blr-0': { borderRightWidth: 0, borderLeftWidth: 0 },
747
- 'bn': { borderWidth: 0, borderStyle: 'none' },
748
- 'br-0': { borderRadius: 0, borderRightWidth: 0 },
749
- 'br-0p': { borderRadius: 0 },
750
- 'br-1': { borderRadius: 1 },
751
- 'br-2': { borderRadius: 2 },
752
- 'br-3': { borderRadius: 3 },
753
- 'br-5': { borderRadius: 5 },
754
- 'br-6': { borderRadius: 6 },
755
- 'br-7': { borderRadius: 7 },
756
- 'br-9': { borderRadius: 9 },
757
- 'br-10': { borderRadius: 10 },
758
- 'br-11': { borderRadius: 11 },
759
- 'br-13': { borderRadius: 13 },
760
- 'br-14': { borderRadius: 14 },
761
- 'br-15': { borderRadius: 15 },
762
- 'br-25p': { borderRadius: '25%' },
763
- 'br-75p': { borderRadius: '75%' },
764
- 'br-100p': { borderRadius: '100%' },
765
- 'bs-border': { boxSizing: 'border-box' },
766
- 'bs-content': { boxSizing: 'content-box' },
767
- 'bs-shadow-white': { boxShadow: '0 4px 16px rgba(26,26,26,.08)' },
768
- 'bs-unset': { boxSizing: 'unset' },
769
- 'c-auto': { cursor: 'auto' },
770
- 'c-default': { cursor: 'default' },
771
- 'c-error-100': { color: '#fbefef' },
772
- 'c-error-500': { color: '#cc1414' },
773
- 'c-line-500': { color: '#e6e6e6' },
774
- 'c-line-700': { color: '#dbdbdb' },
775
- 'c-move': { cursor: 'move' },
776
- 'c-neutral-100': { color: '#fff' },
777
- 'c-neutral-300': { color: '#f7f7f7' },
778
- 'c-neutral-500': { color: '#e0e0e0' },
779
- 'c-neutral-700': { color: 'grey' },
780
- 'c-neutral-900': { color: '#1a1a1a' },
781
- 'c-not-allowed': { cursor: 'not-allowed' },
782
- 'c-pointer': { cursor: 'pointer' },
783
- 'c-primary-100': { color: '#fef3ed' },
784
- 'c-primary-300': { color: '#fbe0d3' },
785
- 'c-primary-500': { color: '#ed6521' },
786
- 'c-primary-700': { color: '#6a1f13' },
787
- 'c-secondary-100': { color: '#eff3fb' },
788
- 'c-secondary-300': { color: '#aecff9' },
789
- 'c-secondary-500': { color: '#36c' },
790
- 'c-secondary-700': { color: '#152255' },
791
- 'c-success-100': { color: '#ebf9f6' },
792
- 'c-success-500': { color: '#00b28a' },
793
- 'c-wait': { cursor: 'wait' },
794
- 'c-warning-100': { color: '#fcf7f0' },
795
- 'c-warning-500': { color: '#df9641' },
796
- 'col': { boxSizing: 'border-box', flexGrow: 1, flexShrink: 0, flexBasis: 0, maxWidth: '100%' },
797
- 'col-1': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '4.16667%', maxWidth: '4.16667%' },
798
- 'col-2': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '8.33333%', maxWidth: '8.33333%' },
799
- 'col-3': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '12.5%', maxWidth: '12.5%' },
800
- 'col-4': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '16.66667%', maxWidth: '16.66667%' },
801
- 'col-5': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '20.83333%', maxWidth: '20.83333%' },
802
- 'col-6': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '25%', maxWidth: '25%' },
803
- 'col-7': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '29.16667%', maxWidth: '29.16667%' },
804
- 'col-8': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '33.33333%', maxWidth: '33.33333%' },
805
- 'col-9': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '37.5%', maxWidth: '37.5%' },
806
- 'col-10': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '41.66667%', maxWidth: '41.66667%' },
807
- 'col-11': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '45.83333%', maxWidth: '45.83333%' },
808
- 'col-12': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '50%', maxWidth: '50%' },
809
- 'col-13': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '54.16667%', maxWidth: '54.16667%' },
810
- 'col-14': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '58.33333%', maxWidth: '58.33333%' },
811
- 'col-15': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '62.5%', maxWidth: '62.5%' },
812
- 'col-16': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '66.66667%', maxWidth: '66.66667%' },
813
- 'col-17': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '70.83333%', maxWidth: '70.83333%' },
814
- 'col-18': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '75%', maxWidth: '75%' },
815
- 'col-19': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '79.16667%', maxWidth: '79.16667%' },
816
- 'col-20': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '83.33333%', maxWidth: '83.33333%' },
817
- 'col-21': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '87.5%', maxWidth: '87.5%' },
818
- 'col-22': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '91.66667%', maxWidth: '91.66667%' },
819
- 'col-23': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '95.83333%', maxWidth: '95.83333%' },
820
- 'col-24': { boxSizing: 'border-box', flexGrow: 0, flexShrink: 0, flexBasis: '100%', maxWidth: '100%' },
821
- 'container': { margin: 'auto', maxWidth: 1140, paddingTop: 0, paddingBottom: 0, paddingLeft: 8, paddingRight: 8 },
822
- 'd-block': { display: 'block' },
823
- 'd-inline-flex': { display: 'inline-flex' },
824
- 'd-none': { display: 'none' },
825
- 'flex-auto': { flexGrow: 1, flexShrink: 1, flexBasis: 'auto' },
826
- 'flex-first': { order: -1 },
827
- 'flex-inline': { display: 'inline-flex' },
828
- 'flex-last': { order: 99 },
829
- 'flex-none': { flexGrow: 0, flexShrink: 0, flexBasis: 'auto' },
830
- 'fs-8': { fontSize: 8 },
831
- 'fs-10': { fontSize: 10 },
832
- 'fs-12': { fontSize: 12 },
833
- 'fs-14': { fontSize: 14 },
834
- 'fs-16': { fontSize: 16 },
835
- 'fs-20': { fontSize: 20 },
836
- 'fs-24': { fontSize: 24 },
837
- 'fw-100': { fontWeight: '100' },
838
- 'fw-200': { fontWeight: '200' },
839
- 'fw-300': { fontWeight: '300' },
840
- 'fw-700': { fontWeight: '700' },
841
- 'fw-800': { fontWeight: '800' },
842
- 'fw-900': { fontWeight: '900' },
843
- 'h-11': { height: 44 },
844
- 'h-12': { height: 48 },
845
- 'h-13': { height: 52 },
846
- 'h-15': { height: 60 },
847
- 'h-25': { height: 100 },
848
- 'h-100vh': { height: '100vh' },
849
- 'lh-12': { lineHeight: '12px' },
850
- 'lh-16': { lineHeight: '16px' },
851
- 'lh-20': { lineHeight: '20px' },
852
- 'lh-22': { lineHeight: '22px' },
853
- 'lh-24': { lineHeight: '24px' },
854
- 'lh-28': { lineHeight: '28px' },
855
- 'ls-reset': { listStyle: 'none' },
856
- 'm-11': { margin: 44 },
857
- 'm-12': { margin: 48 },
858
- 'm-13': { margin: 52 },
859
- 'm-auto': { margin: 'auto' },
860
- 'mb-11': { marginBottom: 44 },
861
- 'mb-12': { marginBottom: 48 },
862
- 'mb-14': { marginBottom: 52 },
863
- 'mb-auto': { marginBottom: 'auto' },
864
- 'min-h-100vh': { minHeight: '100vh' },
865
- 'min-w-100vw': { minWidth: '100vw' },
866
- 'ml-auto': { marginLeft: 'auto' },
867
- 'mr-11': { marginRight: 44 },
868
- 'mr-12': { marginRight: 48 },
869
- 'mr-13': { marginRight: 52 },
870
- 'mr-auto': { marginRight: 'auto' },
871
- 'mt-11': { marginTop: 44 },
872
- 'mt-12': { marginTop: 48 },
873
- 'mt-13': { marginTop: 52 },
874
- 'mt-auto': { marginTop: 'auto' },
875
- 'mx-11': { marginLeft: 44, marginRight: 44 },
876
- 'mx-12': { marginLeft: 48, marginRight: 48 },
877
- 'mx-13': { marginLeft: 52, marginRight: 52 },
878
- 'my-11': { marginBottom: 44, marginTop: 44 },
879
- 'my-12': { marginBottom: 48, marginTop: 48 },
880
- 'my-13': { marginBottom: 52, marginTop: 52 },
881
- 'o-0': { opacity: 0 },
882
- 'o-10': { opacity: '10%' },
883
- 'o-20': { opacity: '20%' },
884
- 'o-30': { opacity: '30%' },
885
- 'o-40': { opacity: '40%' },
886
- 'o-50': { opacity: '50%' },
887
- 'o-60': { opacity: '60%' },
888
- 'o-70': { opacity: '70%' },
889
- 'o-80': { opacity: '80%' },
890
- 'o-90': { opacity: '90%' },
891
- 'o-100': { opacity: '100%' },
892
- 'ox-scroll': { overflowX: 'scroll' },
893
- 'oy-scroll': { overflowY: 'scroll' },
894
- 'p-fixed': { position: 'fixed' },
895
- 'p-sticky': { position: 'sticky' },
896
- 'pt-11': { paddingTop: 44 },
897
- 'py-11': { paddingBottom: 44, paddingTop: 44 },
898
- 'r-0': { right: 0 },
899
- 'row': { boxSizing: 'border-box', display: 'flex', flexGrow: 0, flexShrink: 1, flexBasis: 'auto', flexDirection: 'row', flexWrap: 'wrap' },
900
- 'ta-center': { textAlign: 'center' },
901
- 'ta-justify': { textAlign: 'justify' },
902
- 'ta-left': { textAlign: 'left' },
903
- 'ta-right': { textAlign: 'right' },
904
- 'tr-180': { transform: 'rotate(180deg)' },
905
- 'tt-ellipsis': { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' },
906
- 'valign-middle': { verticalAlign: 'middle' },
907
- 'w-11': { width: 44 },
908
- 'w-12': { width: 48 },
909
- 'w-13': { width: 52 },
910
- 'w-15': { width: 60 },
911
- 'w-17': { width: 68 },
912
- 'w-18': { width: 72 },
913
- 'w-19': { width: 76 },
914
- 'w-20': { width: 80 },
915
- 'w-100vw': { width: '100vw' },
916
- 'w-fit-content': { width: 'fit-content' },
917
- 'ws-normal': { whiteSpace: 'normal' },
918
- 'ws-nowrap': { whiteSpace: 'nowrap' },
919
- 'z-20': { zIndex: 20 },
920
- 'z-30': { zIndex: 30 },
921
- 'z-40': { zIndex: 40 },
922
- 'z-50': { zIndex: 50 },
923
- 'z-60': { zIndex: 60 },
924
- 'z-70': { zIndex: 70 },
925
- 'z-80': { zIndex: 80 },
926
- 'z-90': { zIndex: 90 },
927
732
  };
928
- };
929
- const gs = makeStyles(gsStyleFactory);
930
- let gsRawStylesCache = null;
931
- const getGsRawStyles = () => {
932
- if (!gsRawStylesCache)
933
- gsRawStylesCache = gsStyleFactory(ctDesignTheme.ThemeManager.get());
934
- return gsRawStylesCache;
935
- };
936
- let gsKeyByClassCache = null;
937
- const getGsKeyForClass = (className) => {
938
- if (!gsKeyByClassCache) {
939
- gsKeyByClassCache = new Map();
940
- for (const [key, cls] of Object.entries(gs)) {
941
- if (typeof cls === 'string' && !gsKeyByClassCache.has(cls))
942
- gsKeyByClassCache.set(cls, key);
943
- }
944
- }
945
- return gsKeyByClassCache.get(className);
946
- };
947
-
948
- const CT_DESIGN_STYLES_CLASS_ORDER = [
949
- 'container', 'row', 'col', 'col-1', 'col-2', 'col-3', 'col-4', 'col-5', 'col-6', 'col-7',
950
- 'col-8', 'col-9', 'col-10', 'col-11', 'col-12', 'col-13', 'col-14', 'col-15', 'col-16', 'col-17',
951
- 'col-18', 'col-19', 'col-20', 'col-21', 'col-22', 'col-23', 'col-24', 'br-1', 'br-2', 'br-3',
952
- 'br-4', 'br-5', 'br-6', 'br-7', 'br-8', 'br-9', 'br-10', 'br-11', 'br-12', 'br-13', 'br-14',
953
- 'br-15', 'br-16', 'br-0p', 'br-25p', 'br-50p', 'br-75p', 'br-100p', 'ba-solid', 'bb-solid', 'bb',
954
- 'bb-dotted', 'ba-dashed', 'bn', 'bl-0', 'br-0', 'blr-0', 'c-primary-100', 'c-primary-300',
955
- 'c-primary-500', 'c-primary-700', 'bg-primary-100', 'bg-primary-300', 'bg-primary-500',
956
- 'bg-primary-700', 'bc-primary-100', 'bc-primary-300', 'bc-primary-500', 'bc-primary-700',
957
- 'c-secondary-100', 'c-secondary-300', 'c-secondary-500', 'c-secondary-700', 'bg-secondary-100',
958
- 'bg-secondary-300', 'bg-secondary-500', 'bg-secondary-700', 'bc-secondary-100',
959
- 'bc-secondary-300', 'bc-secondary-500', 'bc-secondary-700', 'c-neutral-100', 'c-neutral-300',
960
- 'c-neutral-500', 'c-neutral-700', 'c-neutral-900', 'bg-neutral-100', 'bg-neutral-300',
961
- 'bg-neutral-500', 'bg-neutral-700', 'bg-neutral-900', 'bc-neutral-100', 'bc-neutral-300',
962
- 'bc-neutral-500', 'bc-neutral-700', 'bc-neutral-900', 'c-success-100', 'c-success-500',
963
- 'bg-success-100', 'bg-success-500', 'bc-success-100', 'bc-success-500', 'c-warning-100',
964
- 'c-warning-500', 'bg-warning-100', 'bg-warning-500', 'bc-warning-100', 'bc-warning-500',
965
- 'bc-default', 'c-error-100', 'c-error-500', 'bg-error-100', 'bg-error-500', 'bc-error-100',
966
- 'bc-error-500', 'c-line-500', 'bg-line-500', 'bc-line-500', 'c-line-700', 'bg-line-700',
967
- 'bc-line-700', 'fs-8', 'fs-10', 'fs-12', 'fs-14', 'fs-16', 'fs-20', 'fs-24', 'lh-12', 'lh-16',
968
- 'lh-20', 'lh-22', 'lh-24', 'lh-28', 'fw-100', 'fw-200', 'fw-300', 'fw-400', 'fw-500', 'fw-600',
969
- 'fw-700', 'fw-800', 'fw-900', 'ta-left', 'ta-center', 'ta-right', 'ta-justify', 'p-0', 'p-1',
970
- 'p-2', 'p-3', 'p-4', 'p-5', 'p-6', 'p-7', 'p-8', 'p-9', 'p-10', 'px-0', 'px-1', 'px-2', 'px-3',
971
- 'px-4', 'px-5', 'px-6', 'px-7', 'px-8', 'px-9', 'px-10', 'py-0', 'py-1', 'py-2', 'py-3', 'py-4',
972
- 'py-5', 'py-6', 'py-7', 'py-8', 'py-9', 'py-10', 'py-11', 'pl-0', 'pl-1', 'pl-2', 'pl-3', 'pl-4',
973
- 'pl-5', 'pl-6', 'pl-7', 'pl-8', 'pl-9', 'pl-10', 'pr-0', 'pr-1', 'pr-2', 'pr-3', 'pr-4', 'pr-5',
974
- 'pr-6', 'pr-7', 'pr-8', 'pr-9', 'pr-10', 'pt-0', 'pt-1', 'pt-2', 'pt-3', 'pt-4', 'pt-5', 'pt-6',
975
- 'pt-7', 'pt-8', 'pt-9', 'pt-10', 'pt-11', 'pt-12', 'pb-0', 'pb-1', 'pb-2', 'pb-3', 'pb-4',
976
- 'pb-5', 'pb-6', 'pb-7', 'pb-8', 'pb-9', 'pb-10', 'm-0', 'm-1', 'm-2', 'm-3', 'm-4', 'm-5', 'm-6',
977
- 'm-7', 'm-8', 'm-9', 'm-10', 'm-11', 'm-12', 'm-13', 'mx-0', 'mx-1', 'mx-2', 'mx-3', 'mx-4',
978
- 'mx-5', 'mx-6', 'mx-7', 'mx-8', 'mx-9', 'mx-10', 'mx-11', 'mx-12', 'mx-13', 'my-0', 'my-1',
979
- 'my-2', 'my-3', 'my-4', 'my-5', 'my-6', 'my-7', 'my-8', 'my-9', 'my-10', 'my-11', 'my-12',
980
- 'my-13', 'ml-0', 'ml-1', 'ml-2', 'ml-3', 'ml-4', 'ml-5', 'ml-6', 'ml-7', 'ml-8', 'ml-9', 'ml-10',
981
- 'mr-0', 'mr-1', 'mr-2', 'mr-3', 'mr-4', 'mr-5', 'mr-6', 'mr-7', 'mr-8', 'mr-9', 'mr-10', 'mr-11',
982
- 'mr-12', 'mr-13', 'mt-0', 'mt-1', 'mt-2', 'mt-3', 'mt-4', 'mt-5', 'mt-6', 'mt-7', 'mt-8', 'mt-9',
983
- 'mt-10', 'mt-11', 'mt-12', 'mt-13', 'mb-0', 'mb-1', 'mb-2', 'mb-3', 'mb-4', 'mb-5', 'mb-6',
984
- 'mb-7', 'mb-8', 'mb-9', 'mb-10', 'mb-11', 'mb-12', 'mb-14', 'm-auto', 'ml-auto', 'mr-auto',
985
- 'mt-auto', 'mb-auto', 'flex', 'flex-inline', 'flex-row', 'flex-column', 'flex-row-reverse',
986
- 'flex-column-reverse', 'flex-nowrap', 'flex-wrap', 'flex-wrap-reverse', 'flex-auto', 'flex-1',
987
- 'flex-none', 'flex-no-shrink', 'flex-first', 'flex-last', 'flex-stretch', 'flex-top',
988
- 'flex-middle', 'flex-bottom', 'flex-wrap-stretch', 'flex-wrap-top', 'flex-wrap-middle',
989
- 'flex-wrap-bottom', 'flex-wrap-between', 'flex-wrap-around', 'flex-left', 'flex-start',
990
- 'flex-end', 'flex-right', 'flex-center', 'flex-between', 'flex-around', 'flex-basis-auto',
991
- 'flex-rg-1', 'flex-cg-1', 'flex-gap-1', 'flex-rg-3', 'flex-cg-3', 'flex-rg-4', 'flex-cg-4',
992
- 'flex-gap-4', 'flex-rg-6', 'flex-cg-6', 'flex-gap-6', 'flex-gap-3', 'w-fit-content', 'w-0p',
993
- 'w-10p', 'w-20p', 'w-30p', 'w-40p', 'w-50p', 'w-60p', 'w-70p', 'w-80p', 'w-90p', 'w-100p', 'w-0',
994
- 'w-1', 'w-2', 'w-3', 'w-4', 'w-5', 'w-6', 'w-7', 'w-8', 'w-9', 'w-10', 'w-11', 'w-12', 'w-13',
995
- 'w-14', 'w-15', 'w-16', 'w-17', 'w-18', 'w-19', 'w-20', 'h-0p', 'h-10p', 'h-20p', 'h-30p',
996
- 'h-40p', 'h-50p', 'h-60p', 'h-70p', 'h-80p', 'h-90p', 'h-100p', 'h-0', 'h-1', 'h-2', 'h-3',
997
- 'h-4', 'h-5', 'h-6', 'h-7', 'h-8', 'h-9', 'h-10', 'h-11', 'h-12', 'h-13', 'h-14', 'h-15', 'h-25',
998
- 'h-100vh', 'min-h-100vh', 'w-100vw', 'min-w-100vw', 'd-block', 'd-none', 'd-inline-flex',
999
- 'bs-content', 'bs-border', 'bs-unset', 'c-auto', 'c-default', 'c-pointer', 'c-wait', 'c-move',
1000
- 'c-not-allowed', 'z-0', 'z-10', 'z-20', 'z-30', 'z-40', 'z-50', 'z-60', 'z-70', 'z-80', 'z-90',
1001
- 'z-100', 'o-0', 'o-10', 'o-20', 'o-30', 'o-40', 'o-50', 'o-60', 'o-70', 'o-80', 'o-90', 'o-100',
1002
- 'p-absolute', 'p-relative', 'p-fixed', 'p-sticky', 't-0', 'b-0', 'r-0', 'l-0', 'ws-normal',
1003
- 'ws-nowrap', 'oy-scroll', 'ls-reset', 'bs-shadow-white', 'ox-scroll', 'o-hidden',
1004
- 'bg-transparent', 'tt-ellipsis', 'tr-180', 'valign-middle',
1005
- ];
1006
- const CT_DESIGN_STYLES_CLASS_RANK = new Map(CT_DESIGN_STYLES_CLASS_ORDER.map((name, index) => [name, index]));
1007
-
1008
- const scopedClassCache = new Map();
1009
- function getLegacyUtilityScopedClass(tokens) {
1010
- const known = Array.from(new Set(tokens.filter((token) => CT_DESIGN_STYLES_CLASS_RANK.has(token)))).sort((a, b) => { var _a, _b; return ((_a = CT_DESIGN_STYLES_CLASS_RANK.get(a)) !== null && _a !== void 0 ? _a : 0) - ((_b = CT_DESIGN_STYLES_CLASS_RANK.get(b)) !== null && _b !== void 0 ? _b : 0); });
1011
- const key = known.join(' ');
1012
- if (scopedClassCache.has(key))
1013
- return scopedClassCache.get(key);
1014
- const rawStyles = getGsRawStyles();
1015
- const merged = {};
1016
- known.forEach((token) => {
1017
- const style = rawStyles[token];
1018
- if (style)
1019
- Object.assign(merged, preprocess(style, { shadow: true, textShadow: true }));
1020
- });
1021
- const scopedClass = Object.keys(merged).length ? css.css({ '.newPage &&': merged }) : undefined;
1022
- scopedClassCache.set(key, scopedClass);
1023
- return scopedClass;
1024
- }
1025
- function legacyUtilityClassName(className) {
1026
- if (!className)
1027
- return className || undefined;
1028
- const tokens = String(className).split(/\s+/).filter(Boolean);
1029
- const scopedClass = getLegacyUtilityScopedClass(tokens);
1030
- return scopedClass ? `${className} ${scopedClass}` : String(className);
1031
- }
1032
-
1033
- const INLINE_PRIORITY_KEY = '&&&';
1034
- const raiseInlinePriority = (style) => {
1035
- if (!Object.prototype.hasOwnProperty.call(style, INLINE_PRIORITY_KEY))
1036
- return style;
1037
- const _a = style, _b = INLINE_PRIORITY_KEY, inline = _a[_b], rest = tslib.__rest(_a, [_b + ""]);
1038
- return Object.assign(Object.assign({}, rest), { '&&&&': inline });
1039
- };
1040
- const useWebMergeStyles = (styles, deps) => {
1041
- return useStableMemo(() => {
1042
- const classes = [];
1043
- const localClasses = [];
1044
- const gsTokens = [];
1045
- styles.filter(Boolean).forEach((style) => {
1046
- if (typeof style === 'string') {
1047
- if (style.startsWith('__local-')) {
1048
- style
1049
- .replace('__local-', '')
1050
- .split(/\s+/)
1051
- .filter(Boolean)
1052
- .forEach((token) => {
1053
- if (css.cache.registered[token] !== undefined)
1054
- classes.push(token);
1055
- else
1056
- localClasses.push(token);
1057
- });
1058
- }
1059
- else {
1060
- classes.push(style);
1061
- const gsKey = getGsKeyForClass(style);
1062
- if (gsKey)
1063
- gsTokens.push(gsKey);
1064
- }
1065
- }
1066
- else {
1067
- if (style) {
1068
- const defaultPreprocessOptions = { shadow: true, textShadow: true };
1069
- const preprocessedStyle = preprocess(raiseInlinePriority(style), defaultPreprocessOptions);
1070
- const emotionClass = css.css(preprocessedStyle);
1071
- classes.push(emotionClass);
1072
- }
1073
- }
1074
- });
1075
- const legacyTokens = [...gsTokens, ...localClasses];
1076
- const legacyUtilityClass = legacyTokens.length ? getLegacyUtilityScopedClass(legacyTokens) : undefined;
1077
- return [css.css(classes), ...(legacyUtilityClass ? [legacyUtilityClass] : []), ...localClasses].join(' ');
1078
- }, deps);
1079
- };
1080
-
1081
- const getStyles = (styles) => {
1082
- return Array.isArray(styles) && styles.every((style) => typeof style !== 'string');
1083
- };
1084
- function useNativeMergeStyles(styles, deps) {
1085
- return useStableMemo(() => {
1086
- if (getStyles(styles)) {
1087
- return null;
1088
- }
1089
- }, deps);
1090
- }
1091
-
1092
- function makeWebStyles(styleFactory, customTheme) {
1093
- const theme = customTheme || ctDesignTheme.ThemeManager.get();
1094
- const styles = styleFactory(theme);
1095
- const classes = {};
1096
- for (const [key, value] of Object.entries(styles)) {
1097
- const updatedStyle = preprocessForWeb(value);
1098
- classes[key] = css.css(updatedStyle);
1099
- }
1100
- return classes;
1101
- }
1102
-
1103
- function useWebStyles(styleFactory, deps) {
1104
- const theme = ctDesignTheme.useTheme();
1105
- return useStableMemo(() => {
1106
- return makeWebStyles(styleFactory, theme);
1107
- }, deps);
1108
- }
1109
-
1110
- const LEGACY_FLEX_CLASS_LIST = [
1111
- 'Alert',
1112
- 'BottomLoaderBody',
1113
- 'CFbar__nav',
1114
- 'Counter__actions',
1115
- 'Datebar__nav',
1116
- 'Deal',
1117
- 'Deal__flashSale-logo',
1118
- 'Deal__logo',
1119
- 'Fab',
1120
- 'Header__burgerLink',
1121
- 'Header__menu',
1122
- 'Lightbox',
1123
- 'Modal__actions',
1124
- 'NavBarTabs__nav',
1125
- 'NewSummaryHeader__back',
1126
- 'NewSummaryHeader__content',
1127
- 'NewSummaryHeader__menu',
1128
- 'NewTabs__item',
1129
- 'NewTabs__nav',
1130
- 'Overlay',
1131
- 'Pageloader',
1132
- 'SegmentTabs__fk-nav',
1133
- 'SegmentTabs__item',
1134
- 'SegmentTabs__nav',
1135
- 'SelectFare__card-header',
1136
- 'SelectFare__card-header-cell',
1137
- 'SelectFare__card-row',
1138
- 'SelectFare__card-row-cell',
1139
- 'SelectFare__saver-text',
1140
- 'SelectFare__sticky-card-cell',
1141
- 'SelectFare__sticky-card-header-cell',
1142
- 'SelectFare__table',
1143
- 'Sheet__closeAction',
1144
- 'Sheet__header',
1145
- 'SocialButton',
1146
- 'SortTabExp__nav',
1147
- 'Sortbar__nav',
1148
- 'Stepper',
1149
- 'Stepper__item',
1150
- 'Stepper_new',
1151
- 'SummaryHeader__back',
1152
- 'SummaryHeader__content',
1153
- 'SummaryHeader__menu',
1154
- 'Tabs__nav',
1155
- 'Toast',
1156
- 'ToastML',
1157
- 'TouchAndGo__group',
1158
- 'TripsButton',
1159
- 'ai-applied-chip',
1160
- 'ai-applied-chip__remove',
1161
- 'ai-chip',
1162
- 'ai-chip__icon',
1163
- 'ai-feedback-modal__close',
1164
- 'ai-feedback-modal__header',
1165
- 'ai-feedback-modal__option',
1166
- 'ai-feedback-modal__radio',
1167
- 'ai-filter-bs__badge',
1168
- 'ai-filter-bs__badge-icon',
1169
- 'ai-filter-bs__close',
1170
- 'ai-filter-bs__loading-redirect',
1171
- 'ai-filter-bs__loading-redirect-star',
1172
- 'ai-filter-bs__pre-applied-chips',
1173
- 'ai-filter-bs__pre-applied-header',
1174
- 'ai-filter-bs__prompt-icon',
1175
- 'ai-filter-city-change__actions',
1176
- 'ai-filter-edit__applied-header',
1177
- 'ai-filter-edit__chips',
1178
- 'ai-filter-input__card',
1179
- 'ai-filter-results__chip',
1180
- 'ai-filter-results__chip-remove',
1181
- 'ai-filter-results__chips',
1182
- 'ai-filter-results__feedback',
1183
- 'ai-filter-results__feedback-actions',
1184
- 'ai-filter-results__feedback-btn',
1185
- 'ai-filter-results__header',
1186
- 'ai-filter-suggestions__item',
1187
- 'airline-exclusive-fade-container',
1188
- 'airline-exclusive-fade-container-stealdeal-chip',
1189
- 'availabiltyBadge',
1190
- 'bento-radio',
1191
- 'bento-row',
1192
- 'bottom-modal',
1193
- 'bottomSheet__header',
1194
- 'calanderSelect',
1195
- 'calanderSheet__closeAction',
1196
- 'calanderSheet__header',
1197
- 'cancel-widget-header',
1198
- 'centered',
1199
- 'chipProp',
1200
- 'd-inline-flex',
1201
- 'dot-container',
1202
- 'emiTextContainer',
1203
- 'ezcancel_srp_parent',
1204
- 'flag',
1205
- 'flex',
1206
- 'flex-inline',
1207
- 'flex-row',
1208
- 'flex-row-reverse',
1209
- 'horizontal-scroll',
1210
- 'icon-text-wrapper',
1211
- 'icon-wrapper',
1212
- 'list--inline',
1213
- 'loader',
1214
- 'lodar-wrapper',
1215
- 'ml-25p',
1216
- 'modal',
1217
- 'react-calendar__tile',
1218
- 'react-calendar__weeks',
1219
- 'row',
1220
- 'slick-dots',
1221
- 'success-circle',
1222
- 'svg-icon-wrapper',
1223
- 'swiper-button-next',
1224
- 'swiper-button-prev',
1225
- 'y_align',
1226
- ];
1227
- const LEGACY_DISPLAY_CLASS_LIST = [
1228
- 'Alert',
1229
- 'Alert__icon',
1230
- 'BottomLoaderBody',
1231
- 'Button',
1232
- 'CFbar__nav',
1233
- 'CalendarHeader',
1234
- 'Counter__actions',
1235
- 'Datebar__nav',
1236
- 'Deal',
1237
- 'Deal__copy',
1238
- 'Deal__flashSale-logo',
1239
- 'Deal__logo',
1240
- 'Fab',
1241
- 'Fab__icon',
1242
- 'Header__burger',
1243
- 'Header__burgerLink',
1244
- 'Header__menu',
1245
- 'Header__menuText',
1246
- 'Hide',
1247
- 'Lightbox',
1248
- 'Modal__action',
1249
- 'Modal__actions',
1250
- 'NavBarTabs__nav',
1251
- 'NewSummaryHeader',
1252
- 'NewSummaryHeader__back',
1253
- 'NewSummaryHeader__content',
1254
- 'NewSummaryHeader__menu',
1255
- 'NewTabs__item',
1256
- 'NewTabs__nav',
1257
- 'Overlay',
1258
- 'Pageloader',
1259
- 'Pageloader__spinner',
1260
- 'Ripple',
1261
- 'Ripple__wrapper--pulsating',
1262
- 'SeatLeft',
1263
- 'SegmentTabs__fk-nav',
1264
- 'SegmentTabs__item',
1265
- 'SegmentTabs__nav',
1266
- 'SelectFare__card',
1267
- 'SelectFare__card-header',
1268
- 'SelectFare__card-header-cell',
1269
- 'SelectFare__card-row',
1270
- 'SelectFare__card-row-cell',
1271
- 'SelectFare__saver-text',
1272
- 'SelectFare__sticky-card',
1273
- 'SelectFare__sticky-card-cell',
1274
- 'SelectFare__sticky-card-header-cell',
1275
- 'SelectFare__table',
1276
- 'Sheet__closeAction',
1277
- 'Sheet__header',
1278
- 'Shimmer',
1279
- 'SocialButton',
1280
- 'SortTabExp__nav',
1281
- 'Sortbar__nav',
1282
- 'Stencil',
1283
- 'Stepper',
1284
- 'Stepper__item',
1285
- 'Stepper_new',
1286
- 'Sticky',
1287
- 'SummaryHeader__back',
1288
- 'SummaryHeader__content',
1289
- 'SummaryHeader__menu',
1290
- 'Tabs__nav',
1291
- 'Toast',
1292
- 'ToastML',
1293
- 'ToolTipInfo',
1294
- 'Tooltip',
1295
- 'TooltipNew',
1296
- 'TouchAndGo__group',
1297
- 'TouchAndGo__tappable',
1298
- 'TouchAndGo__tappable--large-left',
1299
- 'TouchAndGo__tappable--large-right',
1300
- 'TouchAndGo__tappable--left',
1301
- 'TouchAndGo__tappable--right',
1302
- 'TouchAndGo__tappable--row',
1303
- 'TouchAndGo__tappable--row-large',
1304
- 'TouchAndGo__tappable--small-left',
1305
- 'TouchAndGo__tappable--small-right',
1306
- 'TripsButton',
1307
- 'account-dot',
1308
- 'ai-applied-chip',
1309
- 'ai-applied-chip__remove',
1310
- 'ai-chip',
1311
- 'ai-chip__icon',
1312
- 'ai-feedback-modal',
1313
- 'ai-feedback-modal__close',
1314
- 'ai-feedback-modal__header',
1315
- 'ai-feedback-modal__option',
1316
- 'ai-feedback-modal__options',
1317
- 'ai-feedback-modal__radio',
1318
- 'ai-filter-blocked',
1319
- 'ai-filter-blocked__section',
1320
- 'ai-filter-bs__badge',
1321
- 'ai-filter-bs__badge-icon',
1322
- 'ai-filter-bs__close',
1323
- 'ai-filter-bs__content--initial',
1324
- 'ai-filter-bs__content--loading',
1325
- 'ai-filter-bs__content--results',
1326
- 'ai-filter-bs__discovery-copy',
1327
- 'ai-filter-bs__header',
1328
- 'ai-filter-bs__loading',
1329
- 'ai-filter-bs__loading-redirect',
1330
- 'ai-filter-bs__loading-redirect-star',
1331
- 'ai-filter-bs__pre-applied-chips',
1332
- 'ai-filter-bs__pre-applied-header',
1333
- 'ai-filter-bs__pre-applied-leg-groups',
1334
- 'ai-filter-bs__prompt',
1335
- 'ai-filter-bs__prompt-icon',
1336
- 'ai-filter-bs__results-footer',
1337
- 'ai-filter-bs__title',
1338
- 'ai-filter-bs__title-line',
1339
- 'ai-filter-bs__wrapper',
1340
- 'ai-filter-city-change',
1341
- 'ai-filter-city-change__actions',
1342
- 'ai-filter-city-change__response',
1343
- 'ai-filter-city-change__text-block',
1344
- 'ai-filter-edit',
1345
- 'ai-filter-edit__applied-header',
1346
- 'ai-filter-edit__chips',
1347
- 'ai-filter-input__card',
1348
- 'ai-filter-input__field',
1349
- 'ai-filter-no-filters',
1350
- 'ai-filter-no-filters__bottom',
1351
- 'ai-filter-no-filters__quick',
1352
- 'ai-filter-no-filters__section',
1353
- 'ai-filter-no-filters__stacked',
1354
- 'ai-filter-results',
1355
- 'ai-filter-results__bottom-block',
1356
- 'ai-filter-results__chip',
1357
- 'ai-filter-results__chip-remove',
1358
- 'ai-filter-results__chips',
1359
- 'ai-filter-results__cleared-quick',
1360
- 'ai-filter-results__feedback',
1361
- 'ai-filter-results__feedback-actions',
1362
- 'ai-filter-results__feedback-btn',
1363
- 'ai-filter-results__header',
1364
- 'ai-filter-results__leg',
1365
- 'ai-filter-results__leg-groups',
1366
- 'ai-filter-results__section',
1367
- 'ai-filter-results__validation-banners',
1368
- 'ai-filter-results__validation-banners--connected',
1369
- 'ai-filter-results__validation-stack',
1370
- 'ai-filter-suggestions__item',
1371
- 'ai-filter-suggestions__list',
1372
- 'airline-exclusive-fade-container',
1373
- 'airline-exclusive-fade-container-stealdeal-chip',
1374
- 'ancillarySpinner',
1375
- 'ar--fareitem--radio--label',
1376
- 'ar--fareitemNew--EzCancelPlus--radio--label',
1377
- 'ar--fareitemNew--radio--label',
1378
- 'availabiltyBadge',
1379
- 'bento-radio',
1380
- 'bento-radio__circle',
1381
- 'bento-row',
1382
- 'bottom-modal',
1383
- 'bottomSheet__header',
1384
- 'box',
1385
- 'calanderSelect',
1386
- 'calanderSheet__closeAction',
1387
- 'calanderSheet__header',
1388
- 'cancel-button',
1389
- 'cancel-widget-header',
1390
- 'centered',
1391
- 'chipProp',
1392
- 'clearfix',
1393
- 'comment',
1394
- 'content2',
1395
- 'coupontext-ellipsis',
1396
- 'd-b',
1397
- 'd-block',
1398
- 'd-ib',
1399
- 'd-inline',
1400
- 'd-inline-block',
1401
- 'd-inline-flex',
1402
- 'd-list-item',
1403
- 'd-none',
1404
- 'd-tc',
1405
- 'date',
1406
- 'day',
1407
- 'day-tile',
1408
- 'details-grid__1x3',
1409
- 'details-grid__3x3',
1410
- 'details-grid__container',
1411
- 'details-grid__layover',
1412
- 'details-grid__row',
1413
- 'dot-container',
1414
- 'dot-pulse',
1415
- 'emiTextContainer',
1416
- 'expert-call-text',
1417
- 'ezcancel_srp_parent',
1418
- 'fade-transition-enter',
1419
- 'fade-transition-exit-done',
1420
- 'faq-accordion',
1421
- 'fareitem',
1422
- 'fareitem--radio--label',
1423
- 'fareitemNew',
1424
- 'fareitemNew--EzCancelPlus',
1425
- 'fareitemNew--EzCancelPlus--radio--label',
1426
- 'fareitemNew--radio--label',
1427
- 'fc-srp-header__title',
1428
- 'filter__wrapper',
1429
- 'flag',
1430
- 'flag__fix',
1431
- 'flag__flex',
1432
- 'flex',
1433
- 'flex-inline',
1434
- 'flexi_fly',
1435
- 'hide-scrollbar',
1436
- 'hideFromSticky',
1437
- 'horizontal-scroll',
1438
- 'horizontalScroll',
1439
- 'icon-text-wrapper',
1440
- 'icon-wrapper',
1441
- 'input-range__label',
1442
- 'input-range__label--max',
1443
- 'input-range__label--min',
1444
- 'input-range__slider',
1445
- 'input-range__track',
1446
- 'itineraryLoader',
1447
- 'line-clamp-2',
1448
- 'list--inline',
1449
- 'lists',
1450
- 'loader',
1451
- 'loader__spinner',
1452
- 'lodar-wrapper',
1453
- 'ml-25p',
1454
- 'modal',
1455
- 'month',
1456
- 'ow-sortbar-container-a',
1457
- 'ow-tuple-container--intl',
1458
- 'ow-tuple-container__details-a__time',
1459
- 'p-truncate-1',
1460
- 'p-truncate-2',
1461
- 'p-truncate-3',
1462
- 'p-truncate-4',
1463
- 'pageload-spinner',
1464
- 'pe-srp-header__title',
1465
- 'react-calendar__tile',
1466
- 'react-calendar__tile--DateWrapper',
1467
- 'react-calendar__weeks',
1468
- 'renderTwo',
1469
- 'ripple',
1470
- 'rotating-border',
1471
- 'row',
1472
- 'rt-sortbar-container--time',
1473
- 'rt-sortbar-container-upgrade',
1474
- 'rt-tuple-container--intl',
1475
- 'rt-tuple-new-container',
1476
- 'rt-tuple-new-container__details',
1477
- 'rt-tuple-new-container__details__price',
1478
- 'seat-shimmer',
1479
- 'slick-arrow',
1480
- 'slick-dots',
1481
- 'slick-hidden',
1482
- 'slick-list',
1483
- 'slick-slide',
1484
- 'slick-slider',
1485
- 'slick-track',
1486
- 'stencil',
1487
- 'success-circle',
1488
- 'svg-icon-wrapper',
1489
- 'swiper-button-lock',
1490
- 'swiper-button-next',
1491
- 'swiper-button-prev',
1492
- 'swiper-pagination-bullet',
1493
- 'swiper-pagination-lock',
1494
- 'swiper-wrapper',
1495
- 'travelPartySection',
1496
- 'truncate_on_line_break',
1497
- 'y_align',
1498
- ];
1499
- const LEGACY_TAG_SCOPES = {
1500
- p: [
1501
- 'Counter__title',
1502
- 'NavBarTabs__item',
1503
- 'NewTabs__item',
1504
- 'Notification-Bell__count',
1505
- 'SegmentTabs__fk-item',
1506
- 'SegmentTabs__item',
1507
- 'SortTabExp__item',
1508
- 'Sortbar__item',
1509
- 'Tabs__item',
1510
- 'Toast__body',
1511
- 'cvpWidgetConatiner',
1512
- 'fareitem--active',
1513
- 'fareitemNew--EzCancelPlus--active',
1514
- 'fareitemNew--active',
1515
- 'flag__flex',
1516
- 'newPage',
1517
- 'oldPage',
1518
- 'slider-card',
1519
- 'smaller-device',
1520
- ],
1521
- b: [
1522
- 'newPage',
1523
- 'oldPage',
1524
- ],
1525
- strong: [],
1526
- span: [
1527
- 'ai-filter-bs__badge',
1528
- 'ai-filter-bs__pre-applied-header',
1529
- 'ai-filter-edit__applied-header',
1530
- 'ai-filter-results__validation-banner-text',
1531
- 'ai-filter-suggestions__item',
1532
- 'fareitem--active',
1533
- 'fareitemNew--EzCancelPlus--active',
1534
- 'fareitemNew--active',
1535
- 'input-range__slider-container',
1536
- 'input-range__track',
1537
- 'input-range__track--background',
1538
- 'newPage',
1539
- 'oldPage',
1540
- 'react-calendar__weeks',
1541
- 'react__calendar-weeks',
1542
- 'smaller-device',
1543
- ],
1544
- div: [
1545
- 'SegmentTabs__fk-nav',
1546
- 'SegmentTabs__nav',
1547
- 'SummaryHeader__content',
1548
- 'br-8',
1549
- 'fc-srp-chrome--round-bottom',
1550
- 'fc-srp-chrome--rt',
1551
- 'fc-srp-chrome--scrolled',
1552
- 'fc-srp-sortbar',
1553
- 'input-range__track--background',
1554
- 'intl_inputRange',
1555
- 'newPage',
1556
- 'oldPage',
1557
- 'pe-srp-chrome--round-bottom',
1558
- 'pe-srp-chrome--rt',
1559
- 'pe-srp-chrome--scrolled',
1560
- 'pe-srp-sortbar',
1561
- 'policy--container',
1562
- 'policy--head',
1563
- 'slick-slide',
1564
- 'tippy-tooltip',
1565
- 'veryDark-theme',
1566
- ],
1567
- li: [
1568
- 'Pick-travellers--radio-list',
1569
- 'bulleted_list',
1570
- 'details-image-slider',
1571
- 'filter-class-dropdown',
1572
- 'homepage-class-dropdown',
1573
- 'list--inline',
1574
- 'list--loading',
1575
- 'list--ordered',
1576
- 'list--separated',
1577
- 'list--separated__offer-block',
1578
- 'list--spaced',
1579
- 'lists',
1580
- 'login-banner',
1581
- 'newPage',
1582
- 'oldPage',
1583
- 'slick-dots',
1584
- ],
1585
- ul: [
1586
- 'newPage',
1587
- 'oldPage',
1588
- ],
1589
- section: [],
1590
- };
1591
-
1592
- const LEGACY_FLEX_CLASSES = new Set(LEGACY_FLEX_CLASS_LIST);
1593
- const LEGACY_DISPLAY_CLASSES = new Set(LEGACY_DISPLAY_CLASS_LIST);
1594
- function hasClassIn(classes, classNames) {
1595
- return classNames.some((value) => typeof value === 'string' && value.split(/\s+/).some((cls) => classes.has(cls)));
1596
- }
1597
- function legacyFlexRow(...classNames) {
1598
- return hasClassIn(LEGACY_FLEX_CLASSES, classNames) ? { flexDirection: 'row' } : undefined;
1599
- }
1600
- function legacyBlockDisplay(...classNames) {
1601
- return hasClassIn(LEGACY_DISPLAY_CLASSES, classNames) ? undefined : { display: 'block' };
1602
- }
733
+ });
1603
734
 
1604
- exports.LEGACY_DISPLAY_CLASS_LIST = LEGACY_DISPLAY_CLASS_LIST;
1605
- exports.LEGACY_FLEX_CLASS_LIST = LEGACY_FLEX_CLASS_LIST;
1606
- exports.LEGACY_TAG_SCOPES = LEGACY_TAG_SCOPES;
1607
- exports.getGsRawStyles = getGsRawStyles;
1608
- exports.getLegacyUtilityScopedClass = getLegacyUtilityScopedClass;
1609
735
  exports.gs = gs;
1610
- exports.legacyBlockDisplay = legacyBlockDisplay;
1611
- exports.legacyFlexRow = legacyFlexRow;
1612
- exports.legacyUtilityClassName = legacyUtilityClassName;
1613
736
  exports.makeStyles = makeStyles;
1614
737
  exports.makeWebStyles = makeWebStyles;
1615
738
  exports.useNativeMergeStyles = useNativeMergeStyles;