tide-design-system 2.0.46 → 2.0.48

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 (218) hide show
  1. package/dist/IconAccountBalance-0a430d19.cjs +2 -0
  2. package/dist/IconAccountBalance-ad4f4a95.js +16 -0
  3. package/dist/IconAdd-917e055b.js +16 -0
  4. package/dist/IconAdd-91de604b.cjs +2 -0
  5. package/dist/IconAiDescription-674cca6d.cjs +2 -0
  6. package/dist/IconAiDescription-e6f8ed46.js +20 -0
  7. package/dist/IconAlignSpace-5d64a8e4.js +16 -0
  8. package/dist/IconAlignSpace-7ee811f8.cjs +2 -0
  9. package/dist/IconApplePay-7742e162.js +16 -0
  10. package/dist/IconApplePay-92395240.cjs +2 -0
  11. package/dist/IconArrowBack-1810092d.js +16 -0
  12. package/dist/IconArrowBack-3d47d166.cjs +2 -0
  13. package/dist/IconArrowCycle-7b7c7325.cjs +2 -0
  14. package/dist/IconArrowCycle-f8d882fe.js +16 -0
  15. package/dist/IconArrowForward-613e128c.cjs +2 -0
  16. package/dist/IconArrowForward-ddabefc9.js +16 -0
  17. package/dist/IconArrowRight-9f39cdbb.cjs +2 -0
  18. package/dist/IconArrowRight-d93347c3.js +16 -0
  19. package/dist/IconAssignment-1983e555.js +16 -0
  20. package/dist/IconAssignment-915702cc.cjs +2 -0
  21. package/dist/IconAwardStar-447cf4fc.cjs +2 -0
  22. package/dist/IconAwardStar-8128aca1.js +16 -0
  23. package/dist/IconBed-3b1fa670.js +16 -0
  24. package/dist/IconBed-8bcac0c0.cjs +2 -0
  25. package/dist/IconBookmark-3f6454d9.cjs +2 -0
  26. package/dist/IconBookmark-7d88d664.js +16 -0
  27. package/dist/IconCalendarMonth-2fd1e713.js +16 -0
  28. package/dist/IconCalendarMonth-bb5bbb9b.cjs +2 -0
  29. package/dist/IconCall-08f3119f.cjs +2 -0
  30. package/dist/IconCall-8aa582d9.js +16 -0
  31. package/dist/IconCheck-910929df.cjs +2 -0
  32. package/dist/IconCheck-cf7470ee.js +16 -0
  33. package/dist/IconChevronLeft-558206bb.js +16 -0
  34. package/dist/IconChevronLeft-6626777e.cjs +2 -0
  35. package/dist/IconChevronRight-28930a0b.js +16 -0
  36. package/dist/IconChevronRight-91bc7ad1.cjs +2 -0
  37. package/dist/IconClear-489c5a46.cjs +2 -0
  38. package/dist/IconClear-9419bf17.js +16 -0
  39. package/dist/IconClose-538a540f.cjs +2 -0
  40. package/dist/IconClose-abfb6177.js +16 -0
  41. package/dist/IconDelete-5cc224a1.cjs +2 -0
  42. package/dist/IconDelete-67b69553.js +16 -0
  43. package/dist/IconDiamond-4e736f5f.cjs +2 -0
  44. package/dist/IconDiamond-93af488a.js +16 -0
  45. package/dist/IconDraft-26850369.cjs +2 -0
  46. package/dist/IconDraft-6e70e48f.js +16 -0
  47. package/dist/IconEdit-16d34325.js +16 -0
  48. package/dist/IconEdit-b4d5f175.cjs +2 -0
  49. package/dist/IconEngine-e51389f9.cjs +2 -0
  50. package/dist/IconEngine-ee5f92d4.js +20 -0
  51. package/dist/IconError-4ad48be1.cjs +2 -0
  52. package/dist/IconError-a2922b95.js +16 -0
  53. package/dist/IconExpandContent-03a28bfb.cjs +2 -0
  54. package/dist/IconExpandContent-7e144d1c.js +16 -0
  55. package/dist/IconExpandLess-3a8a0552.js +16 -0
  56. package/dist/IconExpandLess-59a80211.cjs +2 -0
  57. package/dist/IconExpandMore-c600148e.js +16 -0
  58. package/dist/IconExpandMore-edf55cdd.cjs +2 -0
  59. package/dist/IconFacebook-4658b533.js +16 -0
  60. package/dist/IconFacebook-9c43095a.cjs +2 -0
  61. package/dist/IconFavorite-43091cef.cjs +2 -0
  62. package/dist/IconFavorite-d23faefe.js +16 -0
  63. package/dist/IconFavoriteFilled-71277849.cjs +2 -0
  64. package/dist/IconFavoriteFilled-aa0d6d5e.js +16 -0
  65. package/dist/IconFormatBold-4faa5f99.cjs +2 -0
  66. package/dist/IconFormatBold-70a5cacf.js +16 -0
  67. package/dist/IconFormatItalic-c06504d7.js +16 -0
  68. package/dist/IconFormatItalic-fee490fc.cjs +2 -0
  69. package/dist/IconFormatListBulleted-9493858a.js +16 -0
  70. package/dist/IconFormatListBulleted-d0a77d0e.cjs +2 -0
  71. package/dist/IconForum-22217aa0.cjs +2 -0
  72. package/dist/IconForum-ae4ad63f.js +16 -0
  73. package/dist/IconGas-198d529d.js +16 -0
  74. package/dist/IconGas-9d623313.cjs +2 -0
  75. package/dist/IconGavel-44c29036.js +16 -0
  76. package/dist/IconGavel-aacae653.cjs +2 -0
  77. package/dist/IconGoogle-77ec192e.cjs +2 -0
  78. package/dist/IconGoogle-febad0d8.js +31 -0
  79. package/dist/IconGooglePay-049e93ec.cjs +2 -0
  80. package/dist/IconGooglePay-8cf0286e.js +16 -0
  81. package/dist/IconGrid-1693599f.cjs +2 -0
  82. package/dist/IconGrid-25f665e0.js +16 -0
  83. package/dist/IconHeight-4fae7545.js +16 -0
  84. package/dist/IconHeight-d8ee424f.cjs +2 -0
  85. package/dist/IconHelp-340ee4fb.js +16 -0
  86. package/dist/IconHelp-43137a66.cjs +2 -0
  87. package/dist/IconInfo-2d14575c.cjs +2 -0
  88. package/dist/IconInfo-efead10b.js +16 -0
  89. package/dist/IconInsertText-00236a65.js +16 -0
  90. package/dist/IconInsertText-14c80b9a.cjs +2 -0
  91. package/dist/IconInstagram-43bb02ea.cjs +2 -0
  92. package/dist/IconInstagram-57188d29.js +16 -0
  93. package/dist/IconIosShare-167aa8c4.js +16 -0
  94. package/dist/IconIosShare-526a016a.cjs +2 -0
  95. package/dist/IconLayout-2865e0eb.js +16 -0
  96. package/dist/IconLayout-e663120e.cjs +2 -0
  97. package/dist/IconLevellingJack-04860178.js +20 -0
  98. package/dist/IconLevellingJack-40c63f7c.cjs +2 -0
  99. package/dist/IconLinkedIn-088a3792.cjs +2 -0
  100. package/dist/IconLinkedIn-f29c217d.js +16 -0
  101. package/dist/IconLocalShipping-901a3e4c.js +16 -0
  102. package/dist/IconLocalShipping-9bca5a95.cjs +2 -0
  103. package/dist/IconLock-1c996287.cjs +2 -0
  104. package/dist/IconLock-47669e20.js +16 -0
  105. package/dist/IconMail-9b85058a.js +16 -0
  106. package/dist/IconMail-f2b8fee4.cjs +2 -0
  107. package/dist/IconMenu-4bed57f3.js +16 -0
  108. package/dist/IconMenu-c7c2b143.cjs +2 -0
  109. package/dist/IconMoreHoriz-2aabe29f.js +16 -0
  110. package/dist/IconMoreHoriz-2c82da62.cjs +2 -0
  111. package/dist/IconNotifications-01f7658b.cjs +2 -0
  112. package/dist/IconNotifications-bcbf1d8c.js +16 -0
  113. package/dist/IconOdometer-709f4f00.js +16 -0
  114. package/dist/IconOdometer-a1bc108b.cjs +2 -0
  115. package/dist/IconOpenInNew-78fffcfe.js +16 -0
  116. package/dist/IconOpenInNew-9032f1db.cjs +2 -0
  117. package/dist/IconPalette-22865300.js +16 -0
  118. package/dist/IconPalette-269c7286.cjs +2 -0
  119. package/dist/IconPaypal-427e8667.cjs +2 -0
  120. package/dist/IconPaypal-c28e6dbe.js +16 -0
  121. package/dist/IconPerson-7ada8b07.js +16 -0
  122. package/dist/IconPerson-ee87961e.cjs +2 -0
  123. package/dist/IconPhotoCamera-31a58b85.js +16 -0
  124. package/dist/IconPhotoCamera-56cb060d.cjs +2 -0
  125. package/dist/IconPinterest-87034fbf.cjs +2 -0
  126. package/dist/IconPinterest-fe5cc414.js +16 -0
  127. package/dist/IconPlayArrow-1ed5d884.js +16 -0
  128. package/dist/IconPlayArrow-80f601bf.cjs +2 -0
  129. package/dist/IconPowerOff-0e3118bf.cjs +2 -0
  130. package/dist/IconPowerOff-dbade32b.js +16 -0
  131. package/dist/IconRemove-73b05132.cjs +2 -0
  132. package/dist/IconRemove-bab221ba.js +16 -0
  133. package/dist/IconRoundedCorners-53cb2cfc.cjs +2 -0
  134. package/dist/IconRoundedCorners-e21c4321.js +16 -0
  135. package/dist/IconRuler-0ceea80a.js +16 -0
  136. package/dist/IconRuler-5feb5a83.cjs +2 -0
  137. package/dist/IconRvClassA-80da0dc5.cjs +2 -0
  138. package/dist/IconRvClassA-e2335760.js +20 -0
  139. package/dist/IconRvClassB-2032c703.cjs +2 -0
  140. package/dist/IconRvClassB-ae8261fe.js +20 -0
  141. package/dist/IconRvClassC-1d11671a.cjs +2 -0
  142. package/dist/IconRvClassC-c1ff2a5a.js +20 -0
  143. package/dist/IconRvFifthWheel-b234c67c.cjs +2 -0
  144. package/dist/IconRvFifthWheel-d201d502.js +20 -0
  145. package/dist/IconRvFishHouse-b35e6ac1.js +20 -0
  146. package/dist/IconRvFishHouse-f6edfbbd.cjs +2 -0
  147. package/dist/IconRvParkModel-20bf39bc.js +20 -0
  148. package/dist/IconRvParkModel-3707f77a.cjs +2 -0
  149. package/dist/IconRvPopUpCamper-14ac6a8d.js +20 -0
  150. package/dist/IconRvPopUpCamper-912c58c2.cjs +2 -0
  151. package/dist/IconRvTravelTrailer-44a5f64d.cjs +2 -0
  152. package/dist/IconRvTravelTrailer-e7c21b4c.js +20 -0
  153. package/dist/IconRvTruckCamper-661b0c28.js +20 -0
  154. package/dist/IconRvTruckCamper-ce2393f4.cjs +2 -0
  155. package/dist/IconSearch-45b2c0e5.cjs +2 -0
  156. package/dist/IconSearch-f8faefb4.js +16 -0
  157. package/dist/IconSeating-2ca8921d.js +16 -0
  158. package/dist/IconSeating-bc19b98f.cjs +2 -0
  159. package/dist/IconSell-b011ac2d.js +16 -0
  160. package/dist/IconSell-bcede586.cjs +2 -0
  161. package/dist/IconShare-57f28ce3.js +16 -0
  162. package/dist/IconShare-ff50a973.cjs +2 -0
  163. package/dist/IconShoppingCart-b532dab0.js +16 -0
  164. package/dist/IconShoppingCart-eee95744.cjs +2 -0
  165. package/dist/IconSleeps-b994bd2f.js +16 -0
  166. package/dist/IconSleeps-ffe0dd67.cjs +2 -0
  167. package/dist/IconSms-0575f458.cjs +2 -0
  168. package/dist/IconSms-378f373a.js +16 -0
  169. package/dist/IconSnowflake-2fccf99d.cjs +2 -0
  170. package/dist/IconSnowflake-9d956143.js +16 -0
  171. package/dist/IconStar-1b8ad0f9.js +16 -0
  172. package/dist/IconStar-e2a88836.cjs +2 -0
  173. package/dist/IconSwapVert-29258e96.cjs +2 -0
  174. package/dist/IconSwapVert-8085e942.js +16 -0
  175. package/dist/IconThreeDRotation-33f086a7.js +29 -0
  176. package/dist/IconThreeDRotation-7be89ff8.cjs +2 -0
  177. package/dist/IconTrophy-4d05eb75.cjs +2 -0
  178. package/dist/IconTrophy-f4be8b54.js +16 -0
  179. package/dist/IconTune-0913ba01.js +16 -0
  180. package/dist/IconTune-1276696d.cjs +2 -0
  181. package/dist/IconTwitter-55b8ba63.cjs +2 -0
  182. package/dist/IconTwitter-9acefb07.js +16 -0
  183. package/dist/IconUmbrella-775b11b8.js +16 -0
  184. package/dist/IconUmbrella-81fdaa63.cjs +2 -0
  185. package/dist/IconVideocam-33650e6f.js +16 -0
  186. package/dist/IconVideocam-f5b07935.cjs +2 -0
  187. package/dist/IconViewInAr-a583aff8.cjs +2 -0
  188. package/dist/IconViewInAr-d1534ef2.js +16 -0
  189. package/dist/IconVisibility-4984bcac.cjs +2 -0
  190. package/dist/IconVisibility-a1c21dd0.js +16 -0
  191. package/dist/IconVolumeOff-35d350ee.cjs +2 -0
  192. package/dist/IconVolumeOff-8e121ef3.js +16 -0
  193. package/dist/IconVolumeOn-386ad18b.cjs +2 -0
  194. package/dist/IconVolumeOn-992e16dd.js +16 -0
  195. package/dist/IconWarning-54f3a9ac.cjs +2 -0
  196. package/dist/IconWarning-6f490acf.js +16 -0
  197. package/dist/IconWater-0b57b8cc.cjs +2 -0
  198. package/dist/IconWater-a5f94879.js +16 -0
  199. package/dist/IconWeight-c6ddd367.cjs +2 -0
  200. package/dist/IconWeight-e3b3daa6.js +16 -0
  201. package/dist/IconWidth-a556befc.cjs +2 -0
  202. package/dist/IconWidth-c81dbc7a.js +16 -0
  203. package/dist/IconYoutube-a6224033.js +16 -0
  204. package/dist/IconYoutube-ed951c21.cjs +2 -0
  205. package/dist/css/reset.css +4 -2
  206. package/dist/css/utilities.css +16 -0
  207. package/dist/style.css +1 -1
  208. package/dist/tide-design-system.cjs +2 -2
  209. package/dist/tide-design-system.esm.d.ts +6 -2
  210. package/dist/tide-design-system.esm.js +876 -861
  211. package/index.ts +2 -1
  212. package/package.json +2 -2
  213. package/src/assets/css/reset.css +4 -2
  214. package/src/assets/css/utilities.css +16 -0
  215. package/src/components/TideIcon.vue +11 -7
  216. package/src/components/TideLink.vue +7 -19
  217. package/src/stories/TideIcon.stories.ts +3 -1
  218. package/src/types/Styles.ts +1 -1
package/index.ts CHANGED
@@ -84,7 +84,7 @@ import { BREAKPOINT, MEDIA } from '@/types/Breakpoint';
84
84
  import { CSS } from '@/types/Styles';
85
85
  import { ELEMENT, ELEMENT_TEXT_AS_ICON } from '@/types/Element';
86
86
  import { FORMAT, FORMAT_REGEX } from '@/types/Formatted';
87
- import { ICON } from '@/types/Icon';
87
+ import { ICON, ICON_REALM } from '@/types/Icon';
88
88
  import { MEDIA_SLIDE_TYPES } from '@/types/ListingMedia';
89
89
  import { ORIENTATION } from '@/types/Orientation';
90
90
  import { POSITION_CARD_ICON, TYPE_CARD } from '@/types/Card';
@@ -170,6 +170,7 @@ export {
170
170
  FORMAT,
171
171
  FORMAT_REGEX,
172
172
  ICON,
173
+ ICON_REALM,
173
174
  MEDIA,
174
175
  MEDIA_SLIDE_TYPES,
175
176
  ORIENTATION,
package/package.json CHANGED
@@ -38,7 +38,7 @@
38
38
  "name": "tide-design-system",
39
39
  "scripts": {
40
40
  "build": "npm run enforce && npm run build-vite",
41
- "build-storybook": "npm run build-vite && storybook build && cp -r src/assets/css/realm/ storybook-static/public/",
41
+ "build-storybook": "npm run build-vite && storybook build && cp -r src/assets/ storybook-static/",
42
42
  "build-vite": "vite build && cp -r src/assets/css/ dist/css/ && cp -r src/utilities/ dist/utilities/",
43
43
  "coverage": "vitest run --coverage",
44
44
  "dev": "vite",
@@ -55,5 +55,5 @@
55
55
  "main": "dist/tide-design-system.cjs",
56
56
  "module": "dist/tide-design-system.esm.js",
57
57
  "types": "dist/tide-design-system.esm.d.ts",
58
- "version": "2.0.46"
58
+ "version": "2.0.48"
59
59
  }
@@ -1,6 +1,6 @@
1
- html,
2
1
  body {
3
2
  color: var(--tide-on-surface);
3
+ font-weight: 500;
4
4
  }
5
5
 
6
6
  *,
@@ -12,9 +12,11 @@ body {
12
12
  padding: 0;
13
13
  color: inherit;
14
14
  font-family: Montserrat;
15
- font-weight: 400;
15
+ font-weight: inherit;
16
16
  -webkit-font-smoothing: antialiased;
17
17
  -moz-osx-font-smoothing: grayscale;
18
+ text-underline-offset: .2em;
19
+ text-decoration-skip-ink: none;
18
20
  }
19
21
 
20
22
  h1 {font-size: var(--tide-font-32);} /* 32px */
@@ -83,6 +83,7 @@
83
83
  .tide-margin-y-1 {margin-top: var(--tide-spacing-1); margin-bottom: var(--tide-spacing-1);}
84
84
  .tide-margin-y-2 {margin-top: var(--tide-spacing-2); margin-bottom: var(--tide-spacing-2);}
85
85
  .tide-margin-y-4 {margin-top: var(--tide-spacing-4); margin-bottom: var(--tide-spacing-4);}
86
+ .tide-margin-y-auto {margin-top: var(--tide-spacing-auto); margin-bottom: var(--tide-spacing-auto);}
86
87
 
87
88
  .tide-margin-top-0 {margin-top: 0;}
88
89
  .tide-margin-top-1\/4 {margin-top: var(--tide-spacing-1\/4);}
@@ -90,6 +91,7 @@
90
91
  .tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
91
92
  .tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
92
93
  .tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
94
+ .tide-margin-top-auto {margin-top: var(--tide-spacing-auto);}
93
95
 
94
96
  .tide-margin-right-0 {margin-right: 0;}
95
97
  .tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
@@ -105,8 +107,10 @@
105
107
  .tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
106
108
  .tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
107
109
  .tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
110
+ .tide-margin-bottom-auto {margin-bottom: var(--tide-spacing-auto);}
108
111
 
109
112
  .tide-margin-left-0 {margin-left: 0;}
113
+ .tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/2);}
110
114
  .tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
111
115
  .tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
112
116
  .tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
@@ -453,6 +457,7 @@
453
457
  .sm-tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
454
458
  .sm-tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
455
459
  .sm-tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
460
+ .sm-tide-margin-top-auto {margin-top: auto;}
456
461
 
457
462
  .sm-tide-margin-right-0 {margin-right: 0;}
458
463
  .sm-tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
@@ -468,8 +473,10 @@
468
473
  .sm-tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
469
474
  .sm-tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
470
475
  .sm-tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
476
+ .sm-tide-margin-bottom-auto {margin-bottom: auto;}
471
477
 
472
478
  .sm-tide-margin-left-0 {margin-left: 0;}
479
+ .sm-tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/4);}
473
480
  .sm-tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
474
481
  .sm-tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
475
482
  .sm-tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
@@ -817,6 +824,7 @@
817
824
  .md-tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
818
825
  .md-tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
819
826
  .md-tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
827
+ .md-tide-margin-top-auto {margin-top: auto;}
820
828
 
821
829
  .md-tide-margin-right-0 {margin-right: 0;}
822
830
  .md-tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
@@ -832,8 +840,10 @@
832
840
  .md-tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
833
841
  .md-tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
834
842
  .md-tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
843
+ .md-tide-margin-bottom-auto {margin-bottom: auto;}
835
844
 
836
845
  .md-tide-margin-left-0 {margin-left: 0;}
846
+ .md-tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/4);}
837
847
  .md-tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
838
848
  .md-tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
839
849
  .md-tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
@@ -1181,6 +1191,7 @@
1181
1191
  .lg-tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
1182
1192
  .lg-tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
1183
1193
  .lg-tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
1194
+ .lg-tide-margin-top-auto {margin-top: auto;}
1184
1195
 
1185
1196
  .lg-tide-margin-right-0 {margin-right: 0;}
1186
1197
  .lg-tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
@@ -1196,8 +1207,10 @@
1196
1207
  .lg-tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
1197
1208
  .lg-tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
1198
1209
  .lg-tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
1210
+ .lg-tide-margin-bottom-auto {margin-bottom: auto;}
1199
1211
 
1200
1212
  .lg-tide-margin-left-0 {margin-left: 0;}
1213
+ .lg-tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/4);}
1201
1214
  .lg-tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
1202
1215
  .lg-tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
1203
1216
  .lg-tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
@@ -1545,6 +1558,7 @@
1545
1558
  .xl-tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
1546
1559
  .xl-tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
1547
1560
  .xl-tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
1561
+ .xl-tide-margin-top-auto {margin-top: auto;}
1548
1562
 
1549
1563
  .xl-tide-margin-right-0 {margin-right: 0;}
1550
1564
  .xl-tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
@@ -1560,8 +1574,10 @@
1560
1574
  .xl-tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
1561
1575
  .xl-tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
1562
1576
  .xl-tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
1577
+ .xl-tide-margin-bottom-auto {margin-bottom: auto;}
1563
1578
 
1564
1579
  .xl-tide-margin-left-0 {margin-left: 0;}
1580
+ .xl-tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/4);}
1565
1581
  .xl-tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
1566
1582
  .xl-tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
1567
1583
  .xl-tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
@@ -24,16 +24,18 @@
24
24
  watch(
25
25
  () => props.icon,
26
26
  async () => {
27
- const id = props.icon as unknown as string;
28
- const [prefix, ...rest] = id.split('-');
29
- const name = formatPascalCase(rest.length > 0 ? rest.join('-') : prefix);
27
+ const id: string = props.icon;
28
+ const name = formatPascalCase(id);
29
+ const [prefix] = id.split('-');
30
30
  const realmFolder = REALM[prefix?.toUpperCase() as keyof typeof REALM];
31
+ const component = defineAsyncComponent(() => {
32
+ if (realmFolder) {
33
+ return import(`../assets/svg/icons/realm/${realmFolder}/Icon${name}.svg?component`);
34
+ }
31
35
 
32
- const componentPath: string = realmFolder
33
- ? `../assets/svg/icons/realm/${realmFolder}/Icon${formatPascalCase(prefix)}${name}.svg`
34
- : `../assets/svg/icons/Icon${name}.svg`;
36
+ return import(`../assets/svg/icons/Icon${name}.svg?component`);
37
+ });
35
38
 
36
- const component = defineAsyncComponent(() => import(componentPath));
37
39
  innerSVG.value = markRaw(component);
38
40
  },
39
41
  { immediate: true }
@@ -57,10 +59,12 @@
57
59
  width: 1.5rem;
58
60
  height: 1.5rem;
59
61
  }
62
+
60
63
  .tide-icon.small {
61
64
  width: 1.25rem;
62
65
  height: 1.25rem;
63
66
  }
67
+
64
68
  .tide-icon svg {
65
69
  width: 100%;
66
70
  height: 100%;
@@ -1,6 +1,4 @@
1
1
  <script lang="ts" setup>
2
- import { computed } from 'vue';
3
-
4
2
  import type { Element } from '@/types/Element';
5
3
  import type { Icon } from '@/types/Icon';
6
4
 
@@ -16,6 +14,7 @@
16
14
  iconTrailing?: Icon;
17
15
  isNewTab?: boolean;
18
16
  label: string;
17
+ typography?: (typeof CSS.FONT.ROLE)['LINK_1' | 'LINK_2' | 'LINK_3'];
19
18
  };
20
19
 
21
20
  const props = withDefaults(defineProps<Props>(), {
@@ -25,40 +24,29 @@
25
24
  iconTrailing: undefined,
26
25
  isNewTab: false,
27
26
  label: undefined,
27
+ typography: CSS.FONT.ROLE.LINK_1,
28
28
  });
29
-
30
- const hasIcon = computed(() => props.iconLeading || props.iconTrailing);
31
29
  </script>
32
30
 
33
31
  <template>
34
32
  <component
35
- :class="[
36
- props.element === ELEMENT.LINK ? 'tide-button-as-link' : 'tide-link',
37
- hasIcon
38
- ? [CSS.DISPLAY.INLINE_FLEX, CSS.AXIS2.CENTER, CSS.GAP.HALF]
39
- : [CSS.FONT.WEIGHT.FIVE_HUNDRED, CSS.UNDERLINE.ON],
40
- ]"
33
+ :class="['tide-link', CSS.DISPLAY.INLINE, CSS.UNDERLINE.ON, CSS.ALIGN.X.LEFT, typography]"
41
34
  :href="props.href"
42
35
  :target="props.isNewTab ? TARGET.BLANK : TARGET.SELF"
43
36
  :is="props.element === ELEMENT.LINK ? ELEMENT.LINK : ELEMENT.BUTTON"
44
37
  >
45
38
  <TideIcon
39
+ :class="[CSS.DISPLAY.INLINE_BLOCK, CSS.ALIGN.Y.MIDDLE, CSS.MARGIN.RIGHT.QUARTER]"
46
40
  :icon="props.iconLeading"
47
41
  v-if="props.iconLeading"
48
42
  />
49
43
 
50
- <div
51
- :class="[CSS.FONT.WEIGHT.FIVE_HUNDRED, CSS.UNDERLINE.ON]"
52
- v-if="hasIcon"
53
- >
54
- {{ props.label }}
55
- </div>
56
-
57
- <template v-else>
44
+ <span :class="[CSS.ALIGN.Y.MIDDLE]">
58
45
  {{ props.label }}
59
- </template>
46
+ </span>
60
47
 
61
48
  <TideIcon
49
+ :class="[CSS.DISPLAY.INLINE_BLOCK, CSS.ALIGN.Y.MIDDLE, CSS.MARGIN.LEFT.QUARTER]"
62
50
  :icon="props.iconTrailing"
63
51
  v-if="props.iconTrailing"
64
52
  />
@@ -1,8 +1,10 @@
1
+ import { ICON as STANDARD_ICON } from '@/types/Icon';
2
+ import { ICON_REALM as STANDARD_ICON_REALM } from '@/types/Icon';
1
3
  import * as STANDARD_SIZE from '@/types/Size';
2
4
  import TideIcon from '@/components/TideIcon.vue';
3
- import { ICON } from '@/types/Icon';
4
5
  import { formatArgType, parameters, prependNoneAsUndefined } from '@/utilities/storybook';
5
6
 
7
+ const ICON = prependNoneAsUndefined({ ...STANDARD_ICON, ...STANDARD_ICON_REALM.RV });
6
8
  const SIZE = prependNoneAsUndefined(STANDARD_SIZE.SIZE);
7
9
 
8
10
  export default {
@@ -126,7 +126,7 @@ export const CSS = {
126
126
  CONTENTS: 'tide-display-contents',
127
127
  FLEX: 'tide-display-flex',
128
128
  GRID: 'tide-display-grid',
129
- INITIAL: 'initial',
129
+ INITIAL: 'tide-display-initial',
130
130
  INLINE: 'tide-display-inline',
131
131
  INLINE_BLOCK: 'tide-display-inline-block',
132
132
  INLINE_FLEX: 'tide-display-inline-flex',