@clubmed/trident-ui 1.4.0-rc.1 → 1.5.0-beta.1

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 (55) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/assets/icons/Actions/CrossBig.svg +3 -0
  3. package/assets/icons/Actions/Login.svg +8 -0
  4. package/assets/icons/Brand/BabyClubMedFRCA.svg +12 -0
  5. package/assets/icons/Brand/BurgerMenu.svg +3 -0
  6. package/assets/icons/Brand/ChillPassFRCA.svg +11 -0
  7. package/assets/icons/Brand/ExclusiveCollectionFRCA.svg +3 -0
  8. package/assets/icons/Brand/HappyToCareFRCA.svg +3 -0
  9. package/assets/icons/Brand/HappyToCareLite.svg +3 -0
  10. package/assets/icons/Brand/IconicTrident.svg +11 -0
  11. package/assets/icons/Brand/TeensFRCA.svg +11 -0
  12. package/assets/icons/HappyToCare/Aqua.svg +11 -0
  13. package/assets/icons/HappyToCare/BREEAM_Fill.svg +108 -0
  14. package/assets/icons/HappyToCare/BREEAM_Outline.svg +44 -0
  15. package/assets/icons/HappyToCare/GreenGlobe.svg +30 -0
  16. package/assets/icons/HappyToCare/GreenGlobeCertified.svg +1568 -0
  17. package/assets/icons/HappyToCare/HQE.svg +53 -0
  18. package/assets/icons/Iconic/IconicLogo.svg +9 -0
  19. package/assets/icons/ResortFill/HLTJ_Fill.svg +14 -0
  20. package/assets/icons/ResortFill/SAFC_Fill.svg +6 -0
  21. package/assets/icons/ResortFill/SAFL_Fill.svg +6 -0
  22. package/assets/icons/ResortFill/TACJ_Fill.svg +14 -0
  23. package/assets/icons/ResortFill-EC/SAFC_EC_Fill.svg +8 -0
  24. package/assets/icons/ResortOutline/HLTJ_Outline.svg +7 -0
  25. package/assets/icons/ResortOutline/SAFC_Outline.svg +5 -0
  26. package/assets/icons/ResortOutline/SAFL_Outline.svg +5 -0
  27. package/assets/icons/ResortOutline/TACJ_Outline.svg +7 -0
  28. package/assets/icons/ResortOutline-EC/SAFC_EC_Outline.svg +5 -0
  29. package/assets/icons/Services/AllInclusive.svg +1 -3
  30. package/assets/icons/Services/Secure.svg +9 -0
  31. package/assets/icons/Services/Tours.svg +8 -0
  32. package/assets/icons/Socials/GoogleMonogram.svg +6 -0
  33. package/assets/icons/Socials/TripAdvisorMonogram.svg +2 -4
  34. package/assets/icons/Transports/AgencyLocation.svg +10 -0
  35. package/assets/icons/Utilities/Audio.svg +8 -0
  36. package/assets/icons/Utilities/GridDefault.svg +3 -0
  37. package/assets/icons/Utilities/Headphones.svg +5 -0
  38. package/assets/icons/Utilities/PeopleDouble.svg +2 -3
  39. package/assets/icons/Utilities/PeopleSingle.svg +2 -2
  40. package/assets/icons/Utilities/Percentage.svg +20 -0
  41. package/assets/icons/Utilities/SpecialOffersPercent.svg +4 -0
  42. package/assets/trident-ui.css +1 -1
  43. package/chunks/plugin.js +2 -1
  44. package/package.json +14 -10
  45. package/tailwind/config/typography.d.ts +6 -0
  46. package/tailwind/config/typography.js +80 -0
  47. package/tailwind/config/typography.js.map +1 -0
  48. package/tailwind/plugins/gridArea.d.ts +4 -0
  49. package/tailwind/plugins/gridArea.js +15 -0
  50. package/tailwind/plugins/gridArea.js.map +1 -0
  51. package/tailwind/plugins/lineClampFix.js +8 -5
  52. package/tailwind/plugins/lineClampFix.js.map +1 -1
  53. package/tailwind/tailwind.preset.d.ts +106 -505
  54. package/tailwind/tailwind.preset.js +4713 -638
  55. package/tailwind/tailwind.preset.js.map +1 -1
@@ -0,0 +1,80 @@
1
+ const o = ({ theme: r }) => ({
2
+ DEFAULT: {
3
+ css: {
4
+ "--tw-prose-body": r("colors.current"),
5
+ "--tw-prose-headings": r("colors.current"),
6
+ "--tw-prose-lead": r("colors.current"),
7
+ "--tw-prose-links": r("colors.current"),
8
+ "--tw-prose-bold": r("colors.current"),
9
+ "--tw-prose-counters": r("colors.current"),
10
+ "--tw-prose-bullets": r("colors.current"),
11
+ "--tw-prose-hr": r("colors.current"),
12
+ "--tw-prose-quotes": r("colors.current"),
13
+ "--tw-prose-quote-borders": r("colors.current"),
14
+ "--tw-prose-captions": r("colors.current"),
15
+ "--tw-prose-code": r("colors.current"),
16
+ "--tw-prose-pre-code": r("colors.current"),
17
+ "--tw-prose-pre-bg": r("colors.transparent"),
18
+ "--tw-prose-th-borders": r("colors.current"),
19
+ "--tw-prose-td-borders": r("colors.current"),
20
+ "--tw-prose-invert-body": r("colors.current"),
21
+ "--tw-prose-invert-headings": r("colors.current"),
22
+ "--tw-prose-invert-lead": r("colors.current"),
23
+ "--tw-prose-invert-links": r("colors.current"),
24
+ "--tw-prose-invert-bold": r("colors.current"),
25
+ "--tw-prose-invert-counters": r("colors.current"),
26
+ "--tw-prose-invert-bullets": r("colors.current"),
27
+ "--tw-prose-invert-hr": r("colors.current"),
28
+ "--tw-prose-invert-quotes": r("colors.current"),
29
+ "--tw-prose-invert-quote-borders": r("colors.current"),
30
+ "--tw-prose-invert-captions": r("colors.current"),
31
+ "--tw-prose-invert-code": r("colors.current"),
32
+ "--tw-prose-invert-pre-code": r("colors.current"),
33
+ "--tw-prose-invert-pre-bg": r("colors.transparent"),
34
+ "--tw-prose-invert-th-borders": r("colors.current"),
35
+ "--tw-prose-invert-td-borders": r("colors.current"),
36
+ "h1, h2, h3, h4, h5, h6": {
37
+ fontFamily: r("fontFamily.serif")?.join(", "),
38
+ marginBottom: r("spacing.40")
39
+ },
40
+ h1: {
41
+ fontSize: r("fontSize.h0")?.[0],
42
+ ...r("fontSize.h0")?.[1]
43
+ },
44
+ h2: {
45
+ fontSize: r("fontSize.h1")?.[0],
46
+ ...r("fontSize.h1")?.[1]
47
+ },
48
+ h3: {
49
+ fontSize: r("fontSize.h2")?.[0],
50
+ ...r("fontSize.h2")?.[1]
51
+ },
52
+ h4: {
53
+ fontSize: r("fontSize.h3")?.[0],
54
+ ...r("fontSize.h3")?.[1]
55
+ },
56
+ h5: {
57
+ fontSize: r("fontSize.h4")?.[0],
58
+ ...r("fontSize.h4")?.[1]
59
+ },
60
+ h6: {
61
+ fontSize: r("fontSize.h5")?.[0],
62
+ ...r("fontSize.h5")?.[1]
63
+ },
64
+ a: {
65
+ fontWeight: r("fontWeight.bold")
66
+ },
67
+ li: {
68
+ marginTop: r("spacing.0"),
69
+ marginBottom: r("spacing.0")
70
+ },
71
+ maxWidth: "none",
72
+ fontSize: r("fontSize.inherit")?.[0],
73
+ ...r("fontSize.inherit")?.[1]
74
+ }
75
+ }
76
+ });
77
+ export {
78
+ o as typography
79
+ };
80
+ //# sourceMappingURL=typography.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.js","sources":["../../../lib/tailwind/config/typography.ts"],"sourcesContent":["import type { PluginAPI } from 'tailwindcss/types/config';\n\nexport const typography = ({ theme }: PluginAPI) => ({\n DEFAULT: {\n css: {\n '--tw-prose-body': theme('colors.current'),\n '--tw-prose-headings': theme('colors.current'),\n '--tw-prose-lead': theme('colors.current'),\n '--tw-prose-links': theme('colors.current'),\n '--tw-prose-bold': theme('colors.current'),\n '--tw-prose-counters': theme('colors.current'),\n '--tw-prose-bullets': theme('colors.current'),\n '--tw-prose-hr': theme('colors.current'),\n '--tw-prose-quotes': theme('colors.current'),\n '--tw-prose-quote-borders': theme('colors.current'),\n '--tw-prose-captions': theme('colors.current'),\n '--tw-prose-code': theme('colors.current'),\n '--tw-prose-pre-code': theme('colors.current'),\n '--tw-prose-pre-bg': theme('colors.transparent'),\n '--tw-prose-th-borders': theme('colors.current'),\n '--tw-prose-td-borders': theme('colors.current'),\n '--tw-prose-invert-body': theme('colors.current'),\n '--tw-prose-invert-headings': theme('colors.current'),\n '--tw-prose-invert-lead': theme('colors.current'),\n '--tw-prose-invert-links': theme('colors.current'),\n '--tw-prose-invert-bold': theme('colors.current'),\n '--tw-prose-invert-counters': theme('colors.current'),\n '--tw-prose-invert-bullets': theme('colors.current'),\n '--tw-prose-invert-hr': theme('colors.current'),\n '--tw-prose-invert-quotes': theme('colors.current'),\n '--tw-prose-invert-quote-borders': theme('colors.current'),\n '--tw-prose-invert-captions': theme('colors.current'),\n '--tw-prose-invert-code': theme('colors.current'),\n '--tw-prose-invert-pre-code': theme('colors.current'),\n '--tw-prose-invert-pre-bg': theme('colors.transparent'),\n '--tw-prose-invert-th-borders': theme('colors.current'),\n '--tw-prose-invert-td-borders': theme('colors.current'),\n 'h1, h2, h3, h4, h5, h6': {\n fontFamily: theme('fontFamily.serif')?.join(', '),\n marginBottom: theme('spacing.40'),\n },\n h1: {\n fontSize: theme('fontSize.h0')?.[0],\n ...theme('fontSize.h0')?.[1],\n },\n h2: {\n fontSize: theme('fontSize.h1')?.[0],\n ...theme('fontSize.h1')?.[1],\n },\n h3: {\n fontSize: theme('fontSize.h2')?.[0],\n ...theme('fontSize.h2')?.[1],\n },\n h4: {\n fontSize: theme('fontSize.h3')?.[0],\n ...theme('fontSize.h3')?.[1],\n },\n h5: {\n fontSize: theme('fontSize.h4')?.[0],\n ...theme('fontSize.h4')?.[1],\n },\n h6: {\n fontSize: theme('fontSize.h5')?.[0],\n ...theme('fontSize.h5')?.[1],\n },\n a: {\n fontWeight: theme('fontWeight.bold'),\n },\n li: {\n marginTop: theme('spacing.0'),\n marginBottom: theme('spacing.0'),\n },\n maxWidth: 'none',\n fontSize: theme('fontSize.inherit')?.[0],\n ...theme('fontSize.inherit')?.[1],\n },\n },\n});\n"],"names":["typography","theme"],"mappings":"AAEO,MAAMA,IAAa,CAAC,EAAE,OAAAC,SAAwB;AAAA,EACnD,SAAS;AAAA,IACP,KAAK;AAAA,MACH,mBAAmBA,EAAM,gBAAgB;AAAA,MACzC,uBAAuBA,EAAM,gBAAgB;AAAA,MAC7C,mBAAmBA,EAAM,gBAAgB;AAAA,MACzC,oBAAoBA,EAAM,gBAAgB;AAAA,MAC1C,mBAAmBA,EAAM,gBAAgB;AAAA,MACzC,uBAAuBA,EAAM,gBAAgB;AAAA,MAC7C,sBAAsBA,EAAM,gBAAgB;AAAA,MAC5C,iBAAiBA,EAAM,gBAAgB;AAA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IAAI;AAAA,QACF,UAAUA,EAAM,aAAa,IAAI,CAAC;AAAA,QAClC,GAAGA,EAAM,aAAa,IAAI,CAAC;AAAA,MAAA;AAAA,MAE7B,IAAI;AAAA,QACF,UAAUA,EAAM,aAAa,IAAI,CAAC;AAAA,QAClC,GAAGA,EAAM,aAAa,IAAI,CAAC;AAAA,MAAA;AAAA,MAE7B,IAAI;AAAA,QACF,UAAUA,EAAM,aAAa,IAAI,CAAC;AAAA,QAClC,GAAGA,EAAM,aAAa,IAAI,CAAC;AAAA,MAAA;AAAA,MAE7B,IAAI;AAAA,QACF,UAAUA,EAAM,aAAa,IAAI,CAAC;AAAA,QAClC,GAAGA,EAAM,aAAa,IAAI,CAAC;AAAA,MAAA;AAAA,MAE7B,GAAG;AAAA,QACD,YAAYA,EAAM,iBAAiB;AAAA,MAAA;AAAA,MAErC,IAAI;AAAA,QACF,WAAWA,EAAM,WAAW;AAAA,QAC5B,cAAcA,EAAM,WAAW;AAAA,MAAA;AAAA,MAEjC,UAAU;AAAA,MACV,UAAUA,EAAM,kBAAkB,IAAI,CAAC;AAAA,MACvC,GAAGA,EAAM,kBAAkB,IAAI,CAAC;AAAA,IAAA;AAAA,EAClC;AAEJ;"}
@@ -0,0 +1,4 @@
1
+ export declare const gridArea: {
2
+ handler: import('tailwindcss/types/config').PluginCreator;
3
+ config?: Partial<import('tailwindcss/types/config').Config>;
4
+ };
@@ -0,0 +1,15 @@
1
+ import { p as i } from "../../chunks/plugin.js";
2
+ const d = i(({ matchUtilities: r, theme: a }) => {
3
+ r(
4
+ {
5
+ "grid-area": (e) => ({
6
+ "grid-area": e
7
+ })
8
+ },
9
+ { values: a("girdArea") }
10
+ );
11
+ });
12
+ export {
13
+ d as gridArea
14
+ };
15
+ //# sourceMappingURL=gridArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gridArea.js","sources":["../../../lib/tailwind/plugins/gridArea.ts"],"sourcesContent":["import plugin from 'tailwindcss/plugin';\n\nexport const gridArea = plugin(({ matchUtilities, theme }) => {\n matchUtilities(\n {\n 'grid-area': (value) => ({\n 'grid-area': value,\n }),\n },\n { values: theme('girdArea') },\n );\n});\n"],"names":["gridArea","plugin","matchUtilities","theme","value"],"mappings":";AAEO,MAAMA,IAAWC,EAAO,CAAC,EAAE,gBAAAC,GAAgB,OAAAC,QAAY;AAC5D,EAAAD;AAAA,IACE;AAAA,MACE,aAAa,CAACE,OAAW;AAAA,QACvB,aAAaA;AAAA,MAAA;AAAA,IACf;AAAA,IAEF,EAAE,QAAQD,EAAM,UAAU,EAAA;AAAA,EAAE;AAEhC,CAAC;"}
@@ -1,13 +1,16 @@
1
- import { p as a } from "../../chunks/plugin.js";
2
- const n = 7, p = a(({ addUtilities: t }) => {
1
+ import { p as e } from "../../chunks/plugin.js";
2
+ const t = 7, o = e(({ addUtilities: n }) => {
3
3
  const l = {};
4
- for (let i = 1; i <= n; i++)
4
+ for (let i = 1; i <= t; i++)
5
5
  l[`.line-clamp-${i}`] = {
6
6
  maxHeight: `${i}lh`
7
7
  };
8
- t(l);
8
+ n({
9
+ ".line-clamp-none": { maxHeight: "none" },
10
+ ...l
11
+ });
9
12
  });
10
13
  export {
11
- p as lineClampSafariFix
14
+ o as lineClampSafariFix
12
15
  };
13
16
  //# sourceMappingURL=lineClampFix.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lineClampFix.js","sources":["../../../lib/tailwind/plugins/lineClampFix.ts"],"sourcesContent":["import plugin from 'tailwindcss/plugin';\nimport type { CSSRuleObject } from 'tailwindcss/types/config';\n\nconst MAX_LINE_CLAMP = 7;\n\nexport const lineClampSafariFix = plugin(({ addUtilities }) => {\n const lineclampUtility: CSSRuleObject = {};\n\n // Generate dynamic classes for line clamp\n for (let i = 1; i <= MAX_LINE_CLAMP; i++) {\n lineclampUtility[`.line-clamp-${i}`] = {\n maxHeight: `${i}lh`,\n };\n }\n\n addUtilities(lineclampUtility);\n});\n"],"names":["MAX_LINE_CLAMP","lineClampSafariFix","plugin","addUtilities","lineclampUtility"],"mappings":";AAGA,MAAMA,IAAiB,GAEVC,IAAqBC,EAAO,CAAC,EAAE,cAAAC,QAAmB;AAC7D,QAAMC,IAAkC,CAAA;AAGxC,WAAS,IAAI,GAAG,KAAKJ,GAAgB;AACnC,IAAAI,EAAiB,eAAe,CAAC,EAAE,IAAI;AAAA,MACrC,WAAW,GAAG,CAAC;AAAA,IAAA;AAInB,EAAAD,EAAaC,CAAgB;AAC/B,CAAC;"}
1
+ {"version":3,"file":"lineClampFix.js","sources":["../../../lib/tailwind/plugins/lineClampFix.ts"],"sourcesContent":["import plugin from 'tailwindcss/plugin';\nimport type { CSSRuleObject } from 'tailwindcss/types/config';\n\nconst MAX_LINE_CLAMP = 7;\n\nexport const lineClampSafariFix = plugin(({ addUtilities }) => {\n const lineclampUtility: CSSRuleObject = {};\n\n // Generate dynamic classes for line clamp\n for (let i = 1; i <= MAX_LINE_CLAMP; i++) {\n lineclampUtility[`.line-clamp-${i}`] = {\n maxHeight: `${i}lh`,\n };\n }\n\n addUtilities({\n '.line-clamp-none': { maxHeight: 'none' },\n ...lineclampUtility,\n });\n});\n"],"names":["MAX_LINE_CLAMP","lineClampSafariFix","plugin","addUtilities","lineclampUtility"],"mappings":";AAGA,MAAMA,IAAiB,GAEVC,IAAqBC,EAAO,CAAC,EAAE,cAAAC,QAAmB;AAC7D,QAAMC,IAAkC,CAAA;AAGxC,WAAS,IAAI,GAAG,KAAKJ,GAAgB;AACnC,IAAAI,EAAiB,eAAe,CAAC,EAAE,IAAI;AAAA,MACrC,WAAW,GAAG,CAAC;AAAA,IAAA;AAInB,EAAAD,EAAa;AAAA,IACX,oBAAoB,EAAE,WAAW,OAAA;AAAA,IACjC,GAAGC;AAAA,EAAA,CACJ;AACH,CAAC;"}