tide-design-system 2.0.22 → 2.0.23

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 (216) hide show
  1. package/.eslintrc.cjs +90 -0
  2. package/.storybook/main.ts +60 -0
  3. package/.storybook/preview.ts +252 -0
  4. package/dist/css/grid-layout.css +7 -3
  5. package/dist/tide-design-system.js +45 -39
  6. package/index.ts +122 -0
  7. package/package.json +8 -12
  8. package/src/assets/css/animation.css +14 -0
  9. package/src/assets/css/dynamic-buttons.css +79 -0
  10. package/src/assets/css/dynamic-utilities.css +39 -0
  11. package/src/assets/css/grid-layout.css +71 -0
  12. package/src/assets/css/main.css +5 -0
  13. package/src/assets/css/realm/aero.css +42 -0
  14. package/src/assets/css/realm/atv.css +43 -0
  15. package/src/assets/css/realm/boatmart.css +42 -0
  16. package/src/assets/css/realm/cycle.css +42 -0
  17. package/src/assets/css/realm/equip.css +42 -0
  18. package/src/assets/css/realm/pwc.css +42 -0
  19. package/src/assets/css/realm/rv.css +50 -0
  20. package/src/assets/css/realm/snow.css +42 -0
  21. package/src/assets/css/realm/truck.css +42 -0
  22. package/src/assets/css/reset.css +79 -0
  23. package/src/assets/css/storybook.css +9 -0
  24. package/src/assets/css/utilities.css +1602 -0
  25. package/src/assets/css/variables.css +118 -0
  26. package/src/assets/svg/icons/IconAccountBalance.svg +5 -0
  27. package/src/assets/svg/icons/IconAdd.svg +3 -0
  28. package/src/assets/svg/icons/IconAiDescription.svg +7 -0
  29. package/src/assets/svg/icons/IconAlignSpace.svg +3 -0
  30. package/src/assets/svg/icons/IconApplePay.svg +5 -0
  31. package/src/assets/svg/icons/IconArrowBack.svg +3 -0
  32. package/src/assets/svg/icons/IconArrowForward.svg +3 -0
  33. package/src/assets/svg/icons/IconArrowRight.svg +3 -0
  34. package/src/assets/svg/icons/IconAssignment.svg +5 -0
  35. package/src/assets/svg/icons/IconAwardStar.svg +5 -0
  36. package/src/assets/svg/icons/IconBookmark.svg +5 -0
  37. package/src/assets/svg/icons/IconCalendarMonth.svg +5 -0
  38. package/src/assets/svg/icons/IconCall.svg +5 -0
  39. package/src/assets/svg/icons/IconCheck.svg +3 -0
  40. package/src/assets/svg/icons/IconChevronLeft.svg +3 -0
  41. package/src/assets/svg/icons/IconChevronRight.svg +3 -0
  42. package/src/assets/svg/icons/IconClear.svg +5 -0
  43. package/src/assets/svg/icons/IconClose.svg +3 -0
  44. package/src/assets/svg/icons/IconCycle.svg +5 -0
  45. package/src/assets/svg/icons/IconDelete.svg +5 -0
  46. package/src/assets/svg/icons/IconDiamond.svg +5 -0
  47. package/src/assets/svg/icons/IconDraft.svg +3 -0
  48. package/src/assets/svg/icons/IconEdit.svg +5 -0
  49. package/src/assets/svg/icons/IconError.svg +5 -0
  50. package/src/assets/svg/icons/IconExpandContent.svg +3 -0
  51. package/src/assets/svg/icons/IconExpandLess.svg +3 -0
  52. package/src/assets/svg/icons/IconExpandMore.svg +3 -0
  53. package/src/assets/svg/icons/IconFacebook.svg +5 -0
  54. package/src/assets/svg/icons/IconFavorite.svg +5 -0
  55. package/src/assets/svg/icons/IconFavoriteFilled.svg +5 -0
  56. package/src/assets/svg/icons/IconFormatBold.svg +5 -0
  57. package/src/assets/svg/icons/IconFormatItalic.svg +3 -0
  58. package/src/assets/svg/icons/IconFormatListBulleted.svg +5 -0
  59. package/src/assets/svg/icons/IconForum.svg +5 -0
  60. package/src/assets/svg/icons/IconGavel.svg +5 -0
  61. package/src/assets/svg/icons/IconGoogle.svg +18 -0
  62. package/src/assets/svg/icons/IconGooglePay.svg +5 -0
  63. package/src/assets/svg/icons/IconGrid.svg +3 -0
  64. package/src/assets/svg/icons/IconHeight.svg +3 -0
  65. package/src/assets/svg/icons/IconHelp.svg +5 -0
  66. package/src/assets/svg/icons/IconInfo.svg +5 -0
  67. package/src/assets/svg/icons/IconInsertText.svg +5 -0
  68. package/src/assets/svg/icons/IconInstagram.svg +5 -0
  69. package/src/assets/svg/icons/IconIosShare.svg +5 -0
  70. package/src/assets/svg/icons/IconLayout.svg +5 -0
  71. package/src/assets/svg/icons/IconLinkedIn.svg +5 -0
  72. package/src/assets/svg/icons/IconLocalShipping.svg +5 -0
  73. package/src/assets/svg/icons/IconLock.svg +5 -0
  74. package/src/assets/svg/icons/IconMail.svg +5 -0
  75. package/src/assets/svg/icons/IconMenu.svg +3 -0
  76. package/src/assets/svg/icons/IconMoreHoriz.svg +5 -0
  77. package/src/assets/svg/icons/IconNotifications.svg +5 -0
  78. package/src/assets/svg/icons/IconOpenInNew.svg +5 -0
  79. package/src/assets/svg/icons/IconPalette.svg +5 -0
  80. package/src/assets/svg/icons/IconPaypal.svg +5 -0
  81. package/src/assets/svg/icons/IconPerson.svg +5 -0
  82. package/src/assets/svg/icons/IconPhotoCamera.svg +5 -0
  83. package/src/assets/svg/icons/IconPinterest.svg +5 -0
  84. package/src/assets/svg/icons/IconPlayArrow.svg +3 -0
  85. package/src/assets/svg/icons/IconRemove.svg +3 -0
  86. package/src/assets/svg/icons/IconRoundedCorners.svg +5 -0
  87. package/src/assets/svg/icons/IconRuler.svg +3 -0
  88. package/src/assets/svg/icons/IconSearch.svg +5 -0
  89. package/src/assets/svg/icons/IconSeating.svg +3 -0
  90. package/src/assets/svg/icons/IconSell.svg +5 -0
  91. package/src/assets/svg/icons/IconShare.svg +5 -0
  92. package/src/assets/svg/icons/IconShoppingCart.svg +5 -0
  93. package/src/assets/svg/icons/IconSms.svg +5 -0
  94. package/src/assets/svg/icons/IconStar.svg +5 -0
  95. package/src/assets/svg/icons/IconSwapVert.svg +5 -0
  96. package/src/assets/svg/icons/IconThreeDRotation.svg +18 -0
  97. package/src/assets/svg/icons/IconTrophy.svg +5 -0
  98. package/src/assets/svg/icons/IconTune.svg +5 -0
  99. package/src/assets/svg/icons/IconTwitter.svg +5 -0
  100. package/src/assets/svg/icons/IconVideocam.svg +5 -0
  101. package/src/assets/svg/icons/IconViewInAr.svg +5 -0
  102. package/src/assets/svg/icons/IconVisibility.svg +5 -0
  103. package/src/assets/svg/icons/IconVolumeOff.svg +5 -0
  104. package/src/assets/svg/icons/IconVolumeOn.svg +5 -0
  105. package/src/assets/svg/icons/IconWarning.svg +5 -0
  106. package/src/assets/svg/icons/IconWeight.svg +3 -0
  107. package/src/assets/svg/icons/IconWidth.svg +3 -0
  108. package/src/assets/svg/icons/IconYoutube.svg +5 -0
  109. package/src/components/TideAccordionItem.vue +105 -0
  110. package/src/components/TideAlert.vue +124 -0
  111. package/src/components/TideBackgroundImage.vue +44 -0
  112. package/src/components/TideBadge.vue +30 -0
  113. package/src/components/TideBadgePremium.vue +31 -0
  114. package/src/components/TideBadgeTrustedPartner.vue +38 -0
  115. package/src/components/TideBreadCrumbs.vue +53 -0
  116. package/src/components/TideButton.vue +67 -0
  117. package/src/components/TideButtonIcon.vue +52 -0
  118. package/src/components/TideButtonPagination.vue +71 -0
  119. package/src/components/TideCard.vue +19 -0
  120. package/src/components/TideCarousel.vue +188 -0
  121. package/src/components/TideChipAction.vue +48 -0
  122. package/src/components/TideChipFilter.vue +55 -0
  123. package/src/components/TideChipInput.vue +44 -0
  124. package/src/components/TideColumns.vue +53 -0
  125. package/src/components/TideDivider.vue +24 -0
  126. package/src/components/TideIcon.vue +58 -0
  127. package/src/components/TideImage.vue +44 -0
  128. package/src/components/TideIndicator.vue +57 -0
  129. package/src/components/TideInputCheckbox.vue +145 -0
  130. package/src/components/TideInputRadio.vue +87 -0
  131. package/src/components/TideInputSelect.vue +204 -0
  132. package/src/components/TideInputText.vue +292 -0
  133. package/src/components/TideInputTextarea.vue +196 -0
  134. package/src/components/TideLink.vue +66 -0
  135. package/src/components/TideModal.vue +187 -0
  136. package/src/components/TidePagination.vue +67 -0
  137. package/src/components/TideSeoLinks.vue +58 -0
  138. package/src/components/TideTabs.vue +89 -0
  139. package/src/components/TideToggle.vue +95 -0
  140. package/src/docs/development.md +51 -0
  141. package/src/docs/integration.md +79 -0
  142. package/src/docs/storybook.md +39 -0
  143. package/src/stories/DemoCssUtilities.stories.ts +154 -0
  144. package/src/stories/DemoCssUtilitiesByTextInput.stories.ts +61 -0
  145. package/src/stories/FoundationsBorder.stories.ts +230 -0
  146. package/src/stories/FoundationsGap.stories.ts +180 -0
  147. package/src/stories/FoundationsMargin.stories.ts +155 -0
  148. package/src/stories/FoundationsPadding.stories.ts +108 -0
  149. package/src/stories/FoundationsShadow.stories.ts +84 -0
  150. package/src/stories/FoundationsTypography.stories.ts +172 -0
  151. package/src/stories/Template.stories.ts +71 -0
  152. package/src/stories/TideAccordionItem.stories.ts +68 -0
  153. package/src/stories/TideAlert.stories.ts +58 -0
  154. package/src/stories/TideBackgroundImage.stories.ts +53 -0
  155. package/src/stories/TideBadge.stories.ts +31 -0
  156. package/src/stories/TideBadgePremium.stories.ts +31 -0
  157. package/src/stories/TideBadgeTrustedPartner.stories.ts +33 -0
  158. package/src/stories/TideBreadCrumbs.stories.ts +43 -0
  159. package/src/stories/TideButton.stories.ts +118 -0
  160. package/src/stories/TideButtonIcon.stories.ts +103 -0
  161. package/src/stories/TideButtonPagination.stories.ts +99 -0
  162. package/src/stories/TideCard.stories.ts +38 -0
  163. package/src/stories/TideCarousel.stories.ts +130 -0
  164. package/src/stories/TideChipAction.stories.ts +46 -0
  165. package/src/stories/TideChipFilter.stories.ts +59 -0
  166. package/src/stories/TideChipInput.stories.ts +42 -0
  167. package/src/stories/TideColumns.stories.ts +90 -0
  168. package/src/stories/TideDivider.stories.ts +46 -0
  169. package/src/stories/TideIcon.stories.ts +29 -0
  170. package/src/stories/TideIndicator.stories.ts +31 -0
  171. package/src/stories/TideInputCheckbox.stories.ts +86 -0
  172. package/src/stories/TideInputRadio.stories.ts +71 -0
  173. package/src/stories/TideInputSelect.stories.ts +145 -0
  174. package/src/stories/TideInputText.stories.ts +181 -0
  175. package/src/stories/TideInputTextarea.stories.ts +116 -0
  176. package/src/stories/TideLink.stories.ts +137 -0
  177. package/src/stories/TideModal.stories.ts +122 -0
  178. package/src/stories/TidePagination.stories.ts +83 -0
  179. package/src/stories/TideSeoLinks.stories.ts +67 -0
  180. package/src/stories/TideTabs.stories.ts +100 -0
  181. package/src/stories/TideToggle.stories.ts +69 -0
  182. package/src/stories/Welcome.mdx +17 -0
  183. package/src/types/Alert.ts +8 -0
  184. package/src/types/Badge.ts +21 -0
  185. package/src/types/BreadCrumb.ts +5 -0
  186. package/src/types/Detail.ts +4 -0
  187. package/src/types/Element.ts +13 -0
  188. package/src/types/FacetRange.ts +84 -0
  189. package/src/types/Field.ts +54 -0
  190. package/src/types/Form.ts +58 -0
  191. package/src/types/Formatted.ts +22 -0
  192. package/src/types/Icon.ts +87 -0
  193. package/src/types/Link.ts +5 -0
  194. package/src/types/ListingMedia.ts +43 -0
  195. package/src/types/Orientation.ts +6 -0
  196. package/src/types/Priority.ts +11 -0
  197. package/src/types/Raw.ts +5 -0
  198. package/src/types/Realm.ts +13 -0
  199. package/src/types/RealmConfig.ts +14 -0
  200. package/src/types/Select.ts +10 -0
  201. package/src/types/Size.ts +6 -0
  202. package/src/types/Storybook.ts +219 -0
  203. package/src/types/Styles.ts +590 -0
  204. package/src/types/Tab.ts +5 -0
  205. package/src/types/Target.ts +6 -0
  206. package/src/types/TextInput.ts +16 -0
  207. package/src/types/Validation.ts +24 -0
  208. package/src/utilities/format.ts +184 -0
  209. package/src/utilities/storybook.ts +295 -0
  210. package/src/utilities/validation.ts +197 -0
  211. package/tests/utilities-format.spec.ts +430 -0
  212. package/tsconfig.app.json +14 -0
  213. package/tsconfig.config.json +12 -0
  214. package/tsconfig.json +22 -0
  215. package/tsconfig.vitest.json +10 -0
  216. package/vite.config.ts +43 -0
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M7 22c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 5 20c0-.55.196-1.02.588-1.413A1.926 1.926 0 0 1 7 18c.55 0 1.02.196 1.412.587C8.804 18.98 9 19.45 9 20s-.196 1.02-.588 1.413A1.926 1.926 0 0 1 7 22Zm10 0c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 15 20c0-.55.196-1.02.588-1.413A1.926 1.926 0 0 1 17 18c.55 0 1.02.196 1.413.587.391.392.587.863.587 1.413s-.196 1.02-.587 1.413A1.926 1.926 0 0 1 17 22ZM6.15 6l2.4 5h7l2.75-5H6.15ZM5.2 4h14.75c.383 0 .675.17.875.513.2.341.208.687.025 1.037l-3.55 6.4c-.183.333-.43.592-.738.775A1.945 1.945 0 0 1 15.55 13H8.1L7 15h12v2H7c-.75 0-1.317-.33-1.7-.988-.383-.658-.4-1.312-.05-1.962L6.6 11.6 3 4H1V2h3.25l.95 2Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M8 11c.283 0 .52-.096.713-.287A.968.968 0 0 0 9 10a.968.968 0 0 0-.287-.713A.968.968 0 0 0 8 9a.968.968 0 0 0-.713.287A.968.968 0 0 0 7 10c0 .283.096.52.287.713.192.191.43.287.713.287Zm4 0c.283 0 .52-.096.713-.287A.968.968 0 0 0 13 10a.967.967 0 0 0-.287-.713A.968.968 0 0 0 12 9a.968.968 0 0 0-.713.287A.967.967 0 0 0 11 10c0 .283.096.52.287.713.192.191.43.287.713.287Zm4 0a.97.97 0 0 0 .712-.287A.968.968 0 0 0 17 10a.967.967 0 0 0-.288-.713A.968.968 0 0 0 16 9a.968.968 0 0 0-.713.287A.967.967 0 0 0 15 10c0 .283.096.52.287.713.192.191.43.287.713.287ZM2 22V4c0-.55.196-1.02.587-1.413A1.926 1.926 0 0 1 4 2h16c.55 0 1.02.196 1.413.587.39.393.587.863.587 1.413v12c0 .55-.196 1.02-.587 1.413A1.926 1.926 0 0 1 20 18H6l-4 4Zm3.15-6H20V4H4v13.125L5.15 16Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="m8.85 16.825 3.15-1.9 3.15 1.925-.825-3.6 2.775-2.4-3.65-.325-1.45-3.4-1.45 3.375-3.65.325 2.775 2.425-.825 3.575ZM5.825 21l1.625-7.025L2 9.25l7.2-.625L12 2l2.8 6.625 7.2.625-5.45 4.725L18.175 21 12 17.275 5.825 21Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M8 13V5.825L5.425 8.4 4 7l5-5 5 5-1.425 1.4L10 5.825V13H8Zm7 9-5-5 1.425-1.4L14 18.175V11h2v7.175l2.575-2.575L20 17l-5 5Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,18 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <mask
3
+ height="24"
4
+ id="a"
5
+ maskUnits="userSpaceOnUse"
6
+ style="mask-type: alpha"
7
+ width="24"
8
+ x="0"
9
+ y="0"
10
+ >
11
+ <path d="M0 0h24v24H0z" />
12
+ </mask>
13
+ <g mask="url(#a)">
14
+ <path
15
+ d="M12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12h2c0 1.917.604 3.608 1.813 5.075 1.208 1.467 2.754 2.392 4.637 2.775L9 18.4l1.4-1.4 4.55 4.55c-.483.167-.97.283-1.462.35S12.5 22 12 22Zm.5-7V9h3a.97.97 0 0 1 .712.287c.192.192.288.43.288.713v4a.97.97 0 0 1-.288.713.968.968 0 0 1-.712.287h-3Zm-5 0v-1.5H10v-1H8.5v-1H10v-1H7.5V9h3c.283 0 .52.096.713.287.191.192.287.43.287.713v4c0 .283-.096.52-.287.713A.968.968 0 0 1 10.5 15h-3Zm6.5-1.5h1v-3h-1v3Zm6-1.5c0-1.917-.604-3.608-1.813-5.075-1.208-1.467-2.754-2.392-4.637-2.775L15 5.6 13.6 7 9.05 2.45c.483-.167.97-.283 1.462-.35S11.5 2 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12h-2Z"
16
+ />
17
+ </g>
18
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M7 21v-2h4v-3.1a5.37 5.37 0 0 1-2.19-1.04 4.48 4.48 0 0 1-1.41-1.91 4.85 4.85 0 0 1-3.14-1.64A4.81 4.81 0 0 1 3 8V7c0-.55.2-1.02.59-1.41C3.98 5.19 4.45 5 5 5h2V3h10v2h2c.55 0 1.02.2 1.41.59.4.39.59.86.59 1.41v1c0 1.27-.42 2.37-1.26 3.31a4.85 4.85 0 0 1-3.14 1.64c-.3.77-.77 1.4-1.41 1.91-.64.51-1.37.86-2.19 1.04V19h4v2H7Zm0-10.2V7H5v1a3 3 0 0 0 2 2.8Zm5 3.2c.83 0 1.54-.3 2.13-.88.58-.58.87-1.29.87-2.12V5H9v6c0 .83.3 1.54.88 2.13.58.58 1.29.87 2.12.87Zm5-3.2A3 3 0 0 0 19 8V7h-2v3.8Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M11 21v-6h2v2h8v2h-8v2h-2Zm-8-2v-2h6v2H3Zm4-4v-2H3v-2h4V9h2v6H7Zm4-2v-2h10v2H11Zm4-4V3h2v2h4v2h-4v2h-2ZM3 7V5h10v2H3Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M18.202 2.25h3.309l-7.228 8.26 8.503 11.24H16.13l-5.217-6.816L4.95 21.75H1.636l7.73-8.836L1.214 2.25H8.04l4.711 6.23 5.452-6.23Zm-1.163 17.522h1.833L7.04 4.125H5.07l11.97 15.647Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M4 20c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 2 18V6c0-.55.196-1.02.587-1.412A1.926 1.926 0 0 1 4 4h12c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412v4.5l4-4v11l-4-4V18c0 .55-.196 1.02-.587 1.413A1.926 1.926 0 0 1 16 20H4Zm0-2h12V6H4v12Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M11 19.475 6 16.6a1.948 1.948 0 0 1-1-1.725v-5.75A1.948 1.948 0 0 1 6 7.4l5-2.875c.317-.183.65-.275 1-.275s.683.092 1 .275L18 7.4a1.948 1.948 0 0 1 1 1.725v5.75a1.948 1.948 0 0 1-1 1.725l-5 2.875c-.317.183-.65.275-1 .275s-.683-.092-1-.275Zm0-2.3v-4.6L7 10.25v4.625l4 2.3Zm2 0 4-2.3V10.25l-4 2.325v4.6ZM2 7V4c0-.55.196-1.02.587-1.413A1.926 1.926 0 0 1 4 2h3v2H4v3H2Zm5 15H4c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 2 20v-3h2v3h3v2Zm10 0v-2h3v-3h2v3c0 .55-.196 1.02-.587 1.413A1.926 1.926 0 0 1 20 22h-3Zm3-15V4h-3V2h3c.55 0 1.02.196 1.413.587.39.393.587.863.587 1.413v3h-2Zm-8 3.85 3.95-2.325L12 6.25 8.05 8.525 12 10.85Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M12 16c1.25 0 2.313-.438 3.188-1.313.874-.874 1.312-1.937 1.312-3.187 0-1.25-.438-2.313-1.313-3.188C14.313 7.439 13.25 7 12 7c-1.25 0-2.313.438-3.188 1.313C7.939 9.187 7.5 10.25 7.5 11.5c0 1.25.438 2.313 1.313 3.188C9.687 15.562 10.75 16 12 16Zm0-1.8c-.75 0-1.387-.262-1.912-.787A2.604 2.604 0 0 1 9.3 11.5c0-.75.262-1.387.787-1.912A2.604 2.604 0 0 1 12 8.8c.75 0 1.387.262 1.912.787.525.526.788 1.163.788 1.913s-.262 1.387-.787 1.912A2.604 2.604 0 0 1 12 14.2Zm0 4.8c-2.433 0-4.65-.68-6.65-2.038-2-1.358-3.45-3.179-4.35-5.462.9-2.283 2.35-4.104 4.35-5.463C7.35 4.68 9.567 4 12 4c2.433 0 4.65.68 6.65 2.037 2 1.359 3.45 3.18 4.35 5.463-.9 2.283-2.35 4.104-4.35 5.462C16.65 18.322 14.433 19 12 19Zm0-2a9.544 9.544 0 0 0 5.188-1.488A9.773 9.773 0 0 0 20.8 11.5a9.773 9.773 0 0 0-3.613-4.013A9.545 9.545 0 0 0 12 6a9.545 9.545 0 0 0-5.188 1.487A9.773 9.773 0 0 0 3.2 11.5a9.773 9.773 0 0 0 3.612 4.012A9.544 9.544 0 0 0 12 17Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="m20.5 21.9-3.02-3.02a8.31 8.31 0 0 1-2.78 1.14v-2.04l.69-.25c.22-.09.43-.19.63-.3L12.7 14.1v5.2l-5-5h-4v-6h3.2L2.1 3.5l1.4-1.4 18.4 18.4-1.4 1.4Zm-.2-5.8-1.45-1.45a6.8 6.8 0 0 0 .85-3.38 6.86 6.86 0 0 0-5-6.7V2.54a8.75 8.75 0 0 1 5.05 3.13 8.73 8.73 0 0 1 1.95 5.62 8.94 8.94 0 0 1-1.4 4.82Zm-3.35-3.35L14.7 10.5V7.25c.78.37 1.4.92 1.84 1.65a4.57 4.57 0 0 1 .41 3.85ZM12.7 8.5l-2.6-2.6 2.6-2.6v5.2Zm-2 5.95V12.1l-1.8-1.8H5.7v2h2.85l2.15 2.15Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M14 20.75V18.7a6.86 6.86 0 0 0 5-6.7 6.86 6.86 0 0 0-5-6.7V3.25a8.75 8.75 0 0 1 5.05 3.14A8.73 8.73 0 0 1 21 12c0 2.12-.65 3.99-1.95 5.61A8.75 8.75 0 0 1 14 20.75ZM3 15.03v-6h4l5-5v16l-5-5H3Zm11 1V7.96c.78.37 1.4.92 1.84 1.66a4.57 4.57 0 0 1 0 4.76A4.17 4.17 0 0 1 14 16.02Zm-4-7.16-2.15 2.16H5v2h2.85L10 15.18v-6.3Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M1 21 12 2l11 19H1Zm3.45-2h15.1L12 6 4.45 19ZM12 18a.97.97 0 0 0 .713-.288A.968.968 0 0 0 13 17a.968.968 0 0 0-.287-.712A.968.968 0 0 0 12 16a.968.968 0 0 0-.713.288A.968.968 0 0 0 11 17c0 .283.096.52.287.712.192.192.43.288.713.288Zm-1-3h2v-5h-2v5Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path d="M6 19h12L16.57 9H7.42L6 19Zm6-12c.28 0 .52-.1.71-.29.2-.19.29-.43.29-.71 0-.28-.1-.52-.29-.71A.97.97 0 0 0 12 5c-.28 0-.52.1-.71.29-.2.19-.29.43-.29.71 0 .28.1.52.29.71.19.2.43.29.71.29Zm2.82 0h1.75c.5 0 .94.17 1.3.5.37.33.6.74.68 1.22l1.43 10c.08.6-.08 1.13-.47 1.6-.39.45-.9.68-1.51.68H6a1.9 1.9 0 0 1-1.51-.69c-.4-.46-.55-.98-.47-1.58l1.43-10c.08-.49.3-.9.67-1.23.37-.33.8-.5 1.3-.5h1.75a6 6 0 0 1-.12-.49 2.9 2.9 0 0 1 .83-2.64A2.9 2.9 0 0 1 12 3c.83 0 1.54.3 2.13.88a2.9 2.9 0 0 1 .82 2.63c-.03.16-.07.32-.13.49Z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path d="m7 16-4-4 4-4 1.4 1.4L6.8 11h10.4l-1.6-1.6L17 8l4 4-4 4-1.4-1.4 1.6-1.6H6.8l1.6 1.6L7 16Z" />
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path
3
+ d="M22.54 6.848a2.72 2.72 0 0 0-1.945-1.899C18.88 4.5 12 4.5 12 4.5s-6.88 0-8.595.45a2.72 2.72 0 0 0-1.946 1.898C1 8.523 1 12.016 1 12.016s0 3.492.46 5.168c.253.925.998 1.62 1.945 1.867C5.12 19.5 12 19.5 12 19.5s6.88 0 8.595-.45c.947-.245 1.692-.945 1.946-1.866.459-1.676.459-5.168.459-5.168s0-3.493-.46-5.168Zm-12.788 8.34V8.843l5.748 3.172-5.748 3.171Z"
4
+ />
5
+ </svg>
@@ -0,0 +1,105 @@
1
+ <script lang="ts" setup>
2
+ import { onMounted, ref } from 'vue';
3
+
4
+ import TideDivider from '@/components/TideDivider.vue';
5
+ import TideIcon from '@/components/TideIcon.vue';
6
+ import TideIndicator from '@/components/TideIndicator.vue';
7
+ import { ICON } from '@/types/Icon';
8
+ import { CSS } from '@/types/Styles';
9
+
10
+ const props = defineProps({
11
+ hasBottomDivider: {
12
+ default: false,
13
+ required: false,
14
+ type: Boolean,
15
+ },
16
+ hasTopDivider: {
17
+ default: false,
18
+ required: false,
19
+ type: Boolean,
20
+ },
21
+ isActive: {
22
+ default: false,
23
+ required: false,
24
+ type: Boolean,
25
+ },
26
+ isExpandedInitial: {
27
+ default: false,
28
+ required: false,
29
+ type: Boolean,
30
+ },
31
+ isOptional: {
32
+ default: false,
33
+ required: false,
34
+ type: Boolean,
35
+ },
36
+ label: {
37
+ default: '',
38
+ required: true,
39
+ type: String,
40
+ },
41
+ });
42
+
43
+ const isExpanded = ref(props.isExpandedInitial);
44
+
45
+ let accordionBody = ref();
46
+
47
+ const toggleIsExpanded = () => {
48
+ const element = accordionBody.value as HTMLElement;
49
+
50
+ isExpanded.value = !isExpanded.value;
51
+
52
+ element.style.gridTemplateRows = isExpanded.value ? '1fr' : '0fr';
53
+ };
54
+
55
+ onMounted(() => {
56
+ const element = accordionBody.value as HTMLElement;
57
+
58
+ element.style.gridTemplateRows = isExpanded.value ? '1fr' : '0fr';
59
+ });
60
+ </script>
61
+
62
+ <template>
63
+ <div class="tide-accordion-item">
64
+ <TideDivider v-if="props.hasTopDivider" />
65
+
66
+ <div
67
+ :class="['tide-accordion-head', CSS.DISPLAY.FLEX, CSS.AXIS1.BETWEEN, CSS.PADDING.Y.HALF, CSS.CURSOR.POINTER]"
68
+ @click="toggleIsExpanded"
69
+ >
70
+ <div :class="[CSS.DISPLAY.FLEX, CSS.AXIS2.CENTER, CSS.GAP.HALF, CSS.FONT.WEIGHT.SEVEN_HUNDRED]">
71
+ <span>{{ props.label }}</span>
72
+
73
+ <span
74
+ :class="[CSS.FONT.COLOR.SURFACE.VARIANT]"
75
+ v-if="props.isOptional"
76
+ >
77
+ (optional)
78
+ </span>
79
+
80
+ <TideIndicator v-if="props.isActive" />
81
+ </div>
82
+
83
+ <TideIcon :icon="isExpanded ? ICON.EXPAND_LESS : ICON.EXPAND_MORE" />
84
+ </div>
85
+
86
+ <div
87
+ :class="['tide-accordion-body', CSS.DISPLAY.GRID]"
88
+ ref="accordionBody"
89
+ >
90
+ <div :class="[CSS.OVERFLOW.Y.HIDDEN]">
91
+ <div :class="[CSS.MARGIN.Y.ONE, CSS.FONT.WEIGHT.FOUR_HUNDRED, CSS.FONT.COLOR.SURFACE.DEFAULT]">
92
+ <slot />
93
+ </div>
94
+ </div>
95
+ </div>
96
+
97
+ <TideDivider v-if="props.hasBottomDivider" />
98
+ </div>
99
+ </template>
100
+
101
+ <style scoped>
102
+ .tide-accordion-body {
103
+ transition: grid-template-rows var(--tide-animate);
104
+ }
105
+ </style>
@@ -0,0 +1,124 @@
1
+ <script lang="ts" setup>
2
+ import { computed } from 'vue';
3
+
4
+ import type { Alert } from '@/types/Alert';
5
+ import type { Icon } from '@/types/Icon';
6
+
7
+ import TideIcon from '@/components/TideIcon.vue';
8
+ import TideButtonIcon from '@/components/TideButtonIcon.vue';
9
+ import { ALERT } from '@/types/Alert';
10
+ import { CSS } from '@/types/Styles';
11
+ import { ICON } from '@/types/Icon';
12
+ import { PRIORITY } from '@/types/Priority';
13
+
14
+ type Props = {
15
+ heading?: string;
16
+ isToast?: boolean;
17
+ type?: Alert;
18
+ };
19
+
20
+ const props = withDefaults(defineProps<Props>(), {
21
+ heading: undefined,
22
+ isToast: false,
23
+ type: ALERT.INFO,
24
+ });
25
+
26
+ const icon = computed(() => {
27
+ let icon: Icon = ICON.VIEW_IN_AR;
28
+
29
+ switch (props.type) {
30
+ case ALERT.ERROR:
31
+ icon = ICON.ERROR;
32
+ break;
33
+ default:
34
+ case ALERT.INFO:
35
+ icon = ICON.INFO;
36
+ break;
37
+ case ALERT.SUCCESS:
38
+ icon = ICON.CHECK;
39
+ break;
40
+ case ALERT.WARNING:
41
+ icon = ICON.WARNING;
42
+ break;
43
+ }
44
+
45
+ return icon;
46
+ });
47
+ </script>
48
+
49
+ <template>
50
+ <div
51
+ :class="[
52
+ props.type,
53
+ 'tide-alert',
54
+ CSS.DISPLAY.GRID,
55
+ CSS.BORDER.RADIUS.HALF,
56
+ CSS.PADDING.FULL.ONE,
57
+ props.type === ALERT.ERROR && CSS.BG.SURFACE.ERROR,
58
+ props.type === ALERT.INFO && CSS.BG.SURFACE.INFO,
59
+ props.type === ALERT.SUCCESS && CSS.BG.SURFACE.SUCCESS,
60
+ props.type === ALERT.WARNING && CSS.BG.SURFACE.WARNING,
61
+ props.isToast ? CSS.SHADOW.BOTTOM : '',
62
+ ]"
63
+ >
64
+ <div :class="['tide-alert-icon', CSS.DISPLAY.FLEX, CSS.AXIS2.CENTER]">
65
+ <TideIcon
66
+ :class="[
67
+ props.type,
68
+ CSS.BORDER.RADIUS.FULL,
69
+ CSS.PADDING.FULL.HALF,
70
+ CSS.FONT.COLOR.SURFACE.INVERSE,
71
+ props.type === ALERT.ERROR && CSS.BG.ERROR,
72
+ props.type === ALERT.INFO && CSS.BG.INFO,
73
+ props.type === ALERT.SUCCESS && CSS.BG.SUCCESS,
74
+ props.type === ALERT.WARNING && CSS.BG.WARNING,
75
+ ]"
76
+ :icon="icon"
77
+ />
78
+ </div>
79
+
80
+ <div :class="['tide-alert-heading', CSS.DISPLAY.FLEX, CSS.AXIS2.CENTER]">
81
+ <h2 :class="[CSS.FONT.SIZE.SIXTEEN, CSS.FONT.WEIGHT.SIX_HUNDRED, CSS.FONT.COLOR.SURFACE.DEFAULT]">
82
+ {{ props.heading }}
83
+ </h2>
84
+ </div>
85
+
86
+ <TideButtonIcon
87
+ :class="['tide-alert-close', CSS.AXIS2.CENTER, CSS.FONT.COLOR.SURFACE.DEFAULT]"
88
+ :icon="ICON.CLOSE"
89
+ :priority="PRIORITY.QUATERNARY"
90
+ aria-label="Close alert"
91
+ />
92
+
93
+ <div :class="['tide-alert-body', CSS.FONT.WEIGHT.FIVE_HUNDRED, CSS.FONT.COLOR.SURFACE.VARIANT]">
94
+ <slot />
95
+ </div>
96
+ </div>
97
+ </template>
98
+
99
+ <style scoped>
100
+ .tide-alert {
101
+ grid-template-areas:
102
+ 'icon heading close'
103
+ '. body .';
104
+ grid-template-columns: auto 1fr auto;
105
+ grid-column-gap: 0.5rem;
106
+ max-width: 40rem;
107
+ }
108
+
109
+ .tide-alert-icon {
110
+ grid-area: icon;
111
+ }
112
+
113
+ .tide-alert-heading {
114
+ grid-area: heading;
115
+ }
116
+
117
+ .tide-alert-close {
118
+ grid-area: close;
119
+ }
120
+
121
+ .tide-alert-body {
122
+ grid-area: body;
123
+ }
124
+ </style>
@@ -0,0 +1,44 @@
1
+ <script lang="ts" setup>
2
+ import { CSS } from '@/types/Styles';
3
+
4
+ type Props = {
5
+ alt: string;
6
+ isLazy: boolean;
7
+ src: string;
8
+ };
9
+
10
+ withDefaults(defineProps<Props>(), {
11
+ alt: '',
12
+ isLazy: true,
13
+ });
14
+ </script>
15
+
16
+ <template>
17
+ <div :class="[CSS.POSITION.RELATIVE, CSS.OVERFLOW.XY.HIDDEN, CSS.ISOLATION.ISOLATE]">
18
+ <div
19
+ :class="[
20
+ CSS.POSITION.ABSOLUTE,
21
+ CSS.HEIGHT.FULL,
22
+ CSS.WIDTH.FULL,
23
+ CSS.DISPLAY.FLEX,
24
+ CSS.AXIS1.CENTER,
25
+ CSS.AXIS2.CENTER,
26
+ ]"
27
+ >
28
+ <img
29
+ :alt="alt"
30
+ :class="['tide-background-image', CSS.OBJECT.COVER, CSS.WIDTH.FULL, CSS.HEIGHT.FULL]"
31
+ :loading="isLazy ? 'lazy' : undefined"
32
+ :src="src"
33
+ />
34
+ </div>
35
+
36
+ <slot />
37
+ </div>
38
+ </template>
39
+
40
+ <style scoped lang="scss">
41
+ .tide-background-image {
42
+ z-index: -1;
43
+ }
44
+ </style>
@@ -0,0 +1,30 @@
1
+ <script lang="ts" setup>
2
+ import { CSS } from '@/types/Styles';
3
+
4
+ type Props = {
5
+ label: string;
6
+ };
7
+
8
+ const props = defineProps<Props>();
9
+ </script>
10
+
11
+ <template>
12
+ <div
13
+ :class="[
14
+ 'tide-badge',
15
+ CSS.FONT.COLOR.SURFACE.DEFAULT,
16
+ CSS.BG.SURFACE.FLOATING,
17
+ CSS.DISPLAY.INLINE_FLEX,
18
+ CSS.AXIS2.CENTER,
19
+ CSS.GAP.QUARTER,
20
+ CSS.BORDER.RADIUS.QUARTER,
21
+ CSS.PADDING.Y.QUARTER,
22
+ CSS.PADDING.X.HALF,
23
+ CSS.FONT.SIZE.FOURTEEN,
24
+ ]"
25
+ >
26
+ {{ props.label }}
27
+ </div>
28
+ </template>
29
+
30
+ <style scoped></style>
@@ -0,0 +1,31 @@
1
+ <script lang="ts" setup>
2
+ import type { BadgePremium } from '@/types/Badge';
3
+
4
+ import { CSS } from '@/types/Styles';
5
+
6
+ type Props = {
7
+ label: BadgePremium;
8
+ };
9
+
10
+ const props = defineProps<Props>();
11
+ </script>
12
+
13
+ <template>
14
+ <div
15
+ :class="[
16
+ 'tide-badge',
17
+ CSS.FONT.COLOR.SURFACE.DEFAULT,
18
+ CSS.BG.SURFACE.VARIANT,
19
+ CSS.DISPLAY.INLINE_FLEX,
20
+ CSS.GAP.QUARTER,
21
+ CSS.BORDER.RADIUS.QUARTER,
22
+ CSS.PADDING.Y.QUARTER,
23
+ CSS.PADDING.X.HALF,
24
+ CSS.FONT.SIZE.TWELVE,
25
+ ]"
26
+ >
27
+ {{ props.label }}
28
+ </div>
29
+ </template>
30
+
31
+ <style scoped></style>
@@ -0,0 +1,38 @@
1
+ <script lang="ts" setup>
2
+ import type { BadgeTrustedYears } from '@/types/Badge';
3
+
4
+ import TideIcon from '@/components/TideIcon.vue';
5
+ import { BADGE_TRUSTED } from '@/types/Badge';
6
+ import { CSS } from '@/types/Styles';
7
+ import { ICON } from '@/types/Icon';
8
+
9
+ type Props = {
10
+ years?: BadgeTrustedYears;
11
+ };
12
+
13
+ const props = withDefaults(defineProps<Props>(), {
14
+ years: BADGE_TRUSTED.YEARS_5,
15
+ });
16
+ </script>
17
+
18
+ <template>
19
+ <div
20
+ :class="[
21
+ 'tide-badge-trusted-partner',
22
+ CSS.FONT.COLOR.SURFACE.BRAND,
23
+ CSS.DISPLAY.INLINE_FLEX,
24
+ CSS.AXIS2.CENTER,
25
+ CSS.GAP.QUARTER,
26
+ CSS.PADDING.Y.QUARTER,
27
+ CSS.PADDING.X.HALF,
28
+ CSS.FONT.SIZE.FOURTEEN,
29
+ ]"
30
+ >
31
+ <TideIcon :icon="ICON.VIEW_IN_AR" />
32
+ <div :class="[]">
33
+ <span>{{ props.years }} year trusted partner</span>
34
+ </div>
35
+ </div>
36
+ </template>
37
+
38
+ <style scoped></style>
@@ -0,0 +1,53 @@
1
+ <script lang="ts" setup>
2
+ import type { PropType } from 'vue';
3
+
4
+ import type { BreadCrumb } from '@/types/BreadCrumb';
5
+
6
+ import TideIcon from '@/components/TideIcon.vue';
7
+ import { CSS } from '@/types/Styles';
8
+ import { ICON } from '@/types/Icon';
9
+ import { SIZE } from '@/types/Size';
10
+
11
+ const props = defineProps({
12
+ breadCrumbs: {
13
+ default: undefined,
14
+ required: true,
15
+ type: Object as PropType<BreadCrumb[]>,
16
+ },
17
+ });
18
+ </script>
19
+
20
+ <template>
21
+ <ul :class="['tide-bread-crumbs', CSS.DISPLAY.FLEX, CSS.AXIS2.CENTER, CSS.GAP.QUARTER, CSS.LIST_BULLETS.OFF]">
22
+ <template
23
+ :key="crumb.label"
24
+ v-for="(crumb, index) in props.breadCrumbs"
25
+ >
26
+ <li :class="[CSS.FONT.SIZE.FOURTEEN]">
27
+ <a
28
+ :class="[CSS.FONT.WEIGHT.SEVEN_HUNDRED, CSS.FONT.COLOR.SURFACE.DEFAULT]"
29
+ :data-track="crumb.dataTrack || undefined"
30
+ :href="crumb.url"
31
+ v-if="crumb.url"
32
+ >
33
+ {{ crumb.label }}
34
+ </a>
35
+
36
+ <span
37
+ :class="[CSS.FONT.WEIGHT.FIVE_HUNDRED, CSS.FONT.COLOR.SURFACE.VARIANT]"
38
+ :data-track="crumb.dataTrack || undefined"
39
+ v-else
40
+ >
41
+ {{ crumb.label }}
42
+ </span>
43
+ </li>
44
+
45
+ <li v-if="props.breadCrumbs && index < props.breadCrumbs.length - 1">
46
+ <TideIcon
47
+ :icon="ICON.ARROW_RIGHT"
48
+ :size="SIZE.SMALL"
49
+ />
50
+ </li>
51
+ </template>
52
+ </ul>
53
+ </template>
@@ -0,0 +1,67 @@
1
+ <script lang="ts" setup>
2
+ import type { Element } from '@/types/Element';
3
+ import type { Icon } from '@/types/Icon';
4
+ import type { Priority } from '@/types/Priority';
5
+
6
+ import TideIcon from '@/components/TideIcon.vue';
7
+ import { CSS } from '@/types/Styles';
8
+ import { ELEMENT } from '@/types/Element';
9
+ import { PRIORITY } from '@/types/Priority';
10
+ import { SIZE } from '@/types/Size';
11
+ import { TARGET } from '@/types/Target';
12
+
13
+ type Props = {
14
+ disabled?: boolean;
15
+ element?: Element;
16
+ href?: string;
17
+ iconLeading?: Icon;
18
+ iconTrailing?: Icon;
19
+ isNewTab?: boolean;
20
+ label: string;
21
+ priority?: Priority;
22
+ };
23
+
24
+ const props = withDefaults(defineProps<Props>(), {
25
+ disabled: false,
26
+ element: ELEMENT.BUTTON,
27
+ href: undefined,
28
+ iconLeading: undefined,
29
+ iconTrailing: undefined,
30
+ isNewTab: false,
31
+ label: undefined,
32
+ priority: PRIORITY.PRIMARY,
33
+ });
34
+ </script>
35
+
36
+ <template>
37
+ <component
38
+ :class="[
39
+ props.element === ELEMENT.LINK ? 'tide-link-as-button' : 'tide-button',
40
+ props.priority && `tide-button-${props.priority}`,
41
+ props.element === ELEMENT.LINK ? [CSS.DISPLAY.INLINE_FLEX] : [CSS.DISPLAY.FLEX],
42
+ [CSS.AXIS1.CENTER, CSS.AXIS2.CENTER, CSS.GAP.HALF, CSS.BORDER.RADIUS.HALF],
43
+ props.element === ELEMENT.LINK ? CSS.UNDERLINE.OFF : '',
44
+ CSS.PADDING.Y.ONE,
45
+ CSS.PADDING.X.TWO,
46
+ CSS.FONT.WEIGHT.SIX_HUNDRED,
47
+ ]"
48
+ :disabled="props.element === ELEMENT.BUTTON && props.disabled"
49
+ :href="props.element === ELEMENT.LINK && props.href ? props.href : undefined"
50
+ :target="props.element === ELEMENT.LINK && props.isNewTab ? TARGET.BLANK : TARGET.SELF"
51
+ :is="props.element === ELEMENT.LINK ? ELEMENT.LINK : ELEMENT.BUTTON"
52
+ >
53
+ <TideIcon
54
+ :icon="props.iconLeading"
55
+ :size="SIZE.LARGE"
56
+ v-if="props.iconLeading"
57
+ />
58
+
59
+ {{ props.label }}
60
+
61
+ <TideIcon
62
+ :icon="props.iconTrailing"
63
+ :size="SIZE.LARGE"
64
+ v-if="props.iconTrailing"
65
+ />
66
+ </component>
67
+ </template>