tide-design-system 2.5.13 → 2.5.14

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 (392) hide show
  1. package/dist/tide-design-system.d.ts +2742 -0
  2. package/dist/tide-design-system.js +2 -2
  3. package/package.json +13 -2
  4. package/.eslintrc.cjs +0 -119
  5. package/.github/workflows/publish-release.yml +0 -38
  6. package/.storybook/main.ts +0 -70
  7. package/.storybook/preview.ts +0 -256
  8. package/docs/assets/full-bleed.gif +0 -0
  9. package/docs/assets/layout-grid-default.webp +0 -0
  10. package/docs/assets/layout-grid-fluid.webp +0 -0
  11. package/docs/assets/layout-grid.webp +0 -0
  12. package/docs/assets/native-input-validation.png +0 -0
  13. package/docs/configuation.md +0 -47
  14. package/docs/development.md +0 -163
  15. package/docs/figma.md +0 -43
  16. package/docs/forms.md +0 -484
  17. package/docs/grid-layout.md +0 -83
  18. package/docs/images.md +0 -50
  19. package/docs/integration-full.md +0 -84
  20. package/docs/integration-partial.md +0 -39
  21. package/docs/migration.md +0 -74
  22. package/docs/storybook.md +0 -44
  23. package/docs/style-guide.md +0 -22
  24. package/docs/toast.md +0 -61
  25. package/docs/token-cheatsheet.md +0 -63
  26. package/docs/upgrading.md +0 -188
  27. package/docs/workflows.md +0 -20
  28. package/index.html +0 -14
  29. package/index.ts +0 -201
  30. package/netlify.toml +0 -3
  31. package/src/assets/css/fonts.css +0 -36
  32. package/src/assets/css/grid-layout.css +0 -34
  33. package/src/assets/css/main.css +0 -5
  34. package/src/assets/css/realm/aero.css +0 -25
  35. package/src/assets/css/realm/atv.css +0 -25
  36. package/src/assets/css/realm/boatmart.css +0 -25
  37. package/src/assets/css/realm/cycle.css +0 -24
  38. package/src/assets/css/realm/equipment.css +0 -25
  39. package/src/assets/css/realm/pwc.css +0 -25
  40. package/src/assets/css/realm/rv.css +0 -25
  41. package/src/assets/css/realm/snow.css +0 -25
  42. package/src/assets/css/realm/truck.css +0 -25
  43. package/src/assets/css/reset.css +0 -99
  44. package/src/assets/css/storybook.css +0 -18
  45. package/src/assets/css/utilities-base.css +0 -574
  46. package/src/assets/css/utilities-responsive.css +0 -2307
  47. package/src/assets/css/utilities.css +0 -16
  48. package/src/assets/css/variables.css +0 -223
  49. package/src/assets/svg/branding/logo/logo-aero.svg +0 -4
  50. package/src/assets/svg/branding/logo/logo-atv.svg +0 -6
  51. package/src/assets/svg/branding/logo/logo-boatmart.svg +0 -4
  52. package/src/assets/svg/branding/logo/logo-cycle.svg +0 -4
  53. package/src/assets/svg/branding/logo/logo-equipment.svg +0 -4
  54. package/src/assets/svg/branding/logo/logo-pwc.svg +0 -4
  55. package/src/assets/svg/branding/logo/logo-rv.svg +0 -6
  56. package/src/assets/svg/branding/logo/logo-snow.svg +0 -4
  57. package/src/assets/svg/branding/logo/logo-truck.svg +0 -5
  58. package/src/assets/svg/branding/mark/mark-aero.svg +0 -3
  59. package/src/assets/svg/branding/mark/mark-atv.svg +0 -4
  60. package/src/assets/svg/branding/mark/mark-boatmart.svg +0 -3
  61. package/src/assets/svg/branding/mark/mark-cycle.svg +0 -3
  62. package/src/assets/svg/branding/mark/mark-equipment.svg +0 -3
  63. package/src/assets/svg/branding/mark/mark-pwc.svg +0 -3
  64. package/src/assets/svg/branding/mark/mark-rv.svg +0 -4
  65. package/src/assets/svg/branding/mark/mark-snow.svg +0 -3
  66. package/src/assets/svg/branding/mark/mark-truck.svg +0 -4
  67. package/src/assets/svg/icons/IconAccountBalance.svg +0 -5
  68. package/src/assets/svg/icons/IconAcute.svg +0 -3
  69. package/src/assets/svg/icons/IconAdd.svg +0 -3
  70. package/src/assets/svg/icons/IconAiDescription.svg +0 -7
  71. package/src/assets/svg/icons/IconAlignSpaceEven.svg +0 -3
  72. package/src/assets/svg/icons/IconApplePay.svg +0 -5
  73. package/src/assets/svg/icons/IconArrowBack.svg +0 -3
  74. package/src/assets/svg/icons/IconArrowCycle.svg +0 -5
  75. package/src/assets/svg/icons/IconArrowForward.svg +0 -3
  76. package/src/assets/svg/icons/IconArrowRight.svg +0 -3
  77. package/src/assets/svg/icons/IconArrowUp.svg +0 -3
  78. package/src/assets/svg/icons/IconAssignment.svg +0 -3
  79. package/src/assets/svg/icons/IconAttachMoney.svg +0 -4
  80. package/src/assets/svg/icons/IconAutoRenew.svg +0 -3
  81. package/src/assets/svg/icons/IconAwardStar.svg +0 -5
  82. package/src/assets/svg/icons/IconBed.svg +0 -3
  83. package/src/assets/svg/icons/IconBolt.svg +0 -3
  84. package/src/assets/svg/icons/IconBookmark.svg +0 -5
  85. package/src/assets/svg/icons/IconBunkhouse.svg +0 -3
  86. package/src/assets/svg/icons/IconCalculate.svg +0 -3
  87. package/src/assets/svg/icons/IconCalendarMonth.svg +0 -5
  88. package/src/assets/svg/icons/IconCall.svg +0 -5
  89. package/src/assets/svg/icons/IconCallQuality.svg +0 -3
  90. package/src/assets/svg/icons/IconCarRental.svg +0 -3
  91. package/src/assets/svg/icons/IconCheck.svg +0 -3
  92. package/src/assets/svg/icons/IconChevronLeft.svg +0 -3
  93. package/src/assets/svg/icons/IconChevronRight.svg +0 -3
  94. package/src/assets/svg/icons/IconClear.svg +0 -3
  95. package/src/assets/svg/icons/IconClose.svg +0 -3
  96. package/src/assets/svg/icons/IconContract.svg +0 -3
  97. package/src/assets/svg/icons/IconCrash.svg +0 -3
  98. package/src/assets/svg/icons/IconDashboardCustomize.svg +0 -3
  99. package/src/assets/svg/icons/IconDelete.svg +0 -5
  100. package/src/assets/svg/icons/IconDiamond.svg +0 -5
  101. package/src/assets/svg/icons/IconDirectionsBoat.svg +0 -3
  102. package/src/assets/svg/icons/IconDomain.svg +0 -3
  103. package/src/assets/svg/icons/IconDraft.svg +0 -3
  104. package/src/assets/svg/icons/IconEdit.svg +0 -5
  105. package/src/assets/svg/icons/IconEngine.svg +0 -3
  106. package/src/assets/svg/icons/IconEngineering.svg +0 -3
  107. package/src/assets/svg/icons/IconError.svg +0 -5
  108. package/src/assets/svg/icons/IconExpandContent.svg +0 -3
  109. package/src/assets/svg/icons/IconExpandLess.svg +0 -3
  110. package/src/assets/svg/icons/IconExpandMore.svg +0 -3
  111. package/src/assets/svg/icons/IconFacebook.svg +0 -3
  112. package/src/assets/svg/icons/IconFavorite.svg +0 -5
  113. package/src/assets/svg/icons/IconFavoriteFilled.svg +0 -5
  114. package/src/assets/svg/icons/IconFlag.svg +0 -3
  115. package/src/assets/svg/icons/IconFormatBold.svg +0 -5
  116. package/src/assets/svg/icons/IconFormatItalic.svg +0 -3
  117. package/src/assets/svg/icons/IconFormatListBulleted.svg +0 -5
  118. package/src/assets/svg/icons/IconForum.svg +0 -5
  119. package/src/assets/svg/icons/IconGas.svg +0 -3
  120. package/src/assets/svg/icons/IconGavel.svg +0 -5
  121. package/src/assets/svg/icons/IconGears.svg +0 -3
  122. package/src/assets/svg/icons/IconGlobeLocationPin.svg +0 -3
  123. package/src/assets/svg/icons/IconGoogle.svg +0 -18
  124. package/src/assets/svg/icons/IconGooglePay.svg +0 -5
  125. package/src/assets/svg/icons/IconGrid.svg +0 -3
  126. package/src/assets/svg/icons/IconHandshake.svg +0 -3
  127. package/src/assets/svg/icons/IconHandyman.svg +0 -3
  128. package/src/assets/svg/icons/IconHeight.svg +0 -3
  129. package/src/assets/svg/icons/IconHelp.svg +0 -5
  130. package/src/assets/svg/icons/IconInfo.svg +0 -5
  131. package/src/assets/svg/icons/IconInformation.svg +0 -3
  132. package/src/assets/svg/icons/IconInsertText.svg +0 -5
  133. package/src/assets/svg/icons/IconInstagram.svg +0 -3
  134. package/src/assets/svg/icons/IconIosShare.svg +0 -5
  135. package/src/assets/svg/icons/IconLayout.svg +0 -3
  136. package/src/assets/svg/icons/IconLevellingJack.svg +0 -3
  137. package/src/assets/svg/icons/IconLinkedIn.svg +0 -3
  138. package/src/assets/svg/icons/IconLocalShipping.svg +0 -5
  139. package/src/assets/svg/icons/IconLock.svg +0 -5
  140. package/src/assets/svg/icons/IconMail.svg +0 -5
  141. package/src/assets/svg/icons/IconMenu.svg +0 -3
  142. package/src/assets/svg/icons/IconMoneyBag.svg +0 -3
  143. package/src/assets/svg/icons/IconMoreHoriz.svg +0 -5
  144. package/src/assets/svg/icons/IconMove.svg +0 -3
  145. package/src/assets/svg/icons/IconNotifications.svg +0 -5
  146. package/src/assets/svg/icons/IconOdometer.svg +0 -3
  147. package/src/assets/svg/icons/IconOpenInNew.svg +0 -5
  148. package/src/assets/svg/icons/IconPalette.svg +0 -5
  149. package/src/assets/svg/icons/IconPaypal.svg +0 -5
  150. package/src/assets/svg/icons/IconPerson.svg +0 -5
  151. package/src/assets/svg/icons/IconPersonSearch.svg +0 -3
  152. package/src/assets/svg/icons/IconPhotoCamera.svg +0 -5
  153. package/src/assets/svg/icons/IconPinterest.svg +0 -5
  154. package/src/assets/svg/icons/IconPlayArrow.svg +0 -3
  155. package/src/assets/svg/icons/IconPolicy.svg +0 -3
  156. package/src/assets/svg/icons/IconPower.svg +0 -3
  157. package/src/assets/svg/icons/IconPowerOff.svg +0 -3
  158. package/src/assets/svg/icons/IconPriorityHigh.svg +0 -3
  159. package/src/assets/svg/icons/IconRemove.svg +0 -3
  160. package/src/assets/svg/icons/IconRequestQuote.svg +0 -3
  161. package/src/assets/svg/icons/IconResetWrench.svg +0 -3
  162. package/src/assets/svg/icons/IconRoad.svg +0 -3
  163. package/src/assets/svg/icons/IconRoundedCorner.svg +0 -5
  164. package/src/assets/svg/icons/IconRuler.svg +0 -3
  165. package/src/assets/svg/icons/IconSailing.svg +0 -3
  166. package/src/assets/svg/icons/IconSchool.svg +0 -3
  167. package/src/assets/svg/icons/IconSearch.svg +0 -5
  168. package/src/assets/svg/icons/IconSeating.svg +0 -3
  169. package/src/assets/svg/icons/IconSell.svg +0 -5
  170. package/src/assets/svg/icons/IconSensors.svg +0 -3
  171. package/src/assets/svg/icons/IconSettings.svg +0 -3
  172. package/src/assets/svg/icons/IconShare.svg +0 -5
  173. package/src/assets/svg/icons/IconShieldCheck.svg +0 -3
  174. package/src/assets/svg/icons/IconShoppingCart.svg +0 -5
  175. package/src/assets/svg/icons/IconSleeps.svg +0 -3
  176. package/src/assets/svg/icons/IconSms.svg +0 -5
  177. package/src/assets/svg/icons/IconSnowflake.svg +0 -3
  178. package/src/assets/svg/icons/IconStar.svg +0 -5
  179. package/src/assets/svg/icons/IconStarFilled.svg +0 -3
  180. package/src/assets/svg/icons/IconStarHalf.svg +0 -3
  181. package/src/assets/svg/icons/IconSummarize.svg +0 -3
  182. package/src/assets/svg/icons/IconSwapHoriz.svg +0 -3
  183. package/src/assets/svg/icons/IconSwapVert.svg +0 -5
  184. package/src/assets/svg/icons/IconThreeDRotation.svg +0 -18
  185. package/src/assets/svg/icons/IconThumbUp.svg +0 -3
  186. package/src/assets/svg/icons/IconTrendingDown.svg +0 -5
  187. package/src/assets/svg/icons/IconTrophy.svg +0 -5
  188. package/src/assets/svg/icons/IconTune.svg +0 -5
  189. package/src/assets/svg/icons/IconTwitter.svg +0 -5
  190. package/src/assets/svg/icons/IconUmbrella.svg +0 -3
  191. package/src/assets/svg/icons/IconVerified.svg +0 -4
  192. package/src/assets/svg/icons/IconVideocam.svg +0 -5
  193. package/src/assets/svg/icons/IconViewInAr.svg +0 -5
  194. package/src/assets/svg/icons/IconVisibility.svg +0 -5
  195. package/src/assets/svg/icons/IconVolumeOff.svg +0 -5
  196. package/src/assets/svg/icons/IconVolumeOn.svg +0 -5
  197. package/src/assets/svg/icons/IconWarehouse.svg +0 -3
  198. package/src/assets/svg/icons/IconWarning.svg +0 -5
  199. package/src/assets/svg/icons/IconWater.svg +0 -3
  200. package/src/assets/svg/icons/IconWeight.svg +0 -3
  201. package/src/assets/svg/icons/IconWidth.svg +0 -3
  202. package/src/assets/svg/icons/IconWorkspacePremium.svg +0 -3
  203. package/src/assets/svg/icons/IconWrench.svg +0 -3
  204. package/src/assets/svg/icons/IconYoutube.svg +0 -5
  205. package/src/assets/svg/icons/realm/aero/IconAeroFlight.svg +0 -3
  206. package/src/assets/svg/icons/realm/aero/IconAeroHelicopter.svg +0 -3
  207. package/src/assets/svg/icons/realm/aero/IconAeroModeFan.svg +0 -3
  208. package/src/assets/svg/icons/realm/aero/IconAeroPlaneContrails.svg +0 -3
  209. package/src/assets/svg/icons/realm/atv/IconAtvAtv.svg +0 -3
  210. package/src/assets/svg/icons/realm/atv/IconAtvDuneBuggy.svg +0 -3
  211. package/src/assets/svg/icons/realm/atv/IconAtvGoKart.svg +0 -3
  212. package/src/assets/svg/icons/realm/atv/IconAtvGolfCart.svg +0 -3
  213. package/src/assets/svg/icons/realm/atv/IconAtvSandRail.svg +0 -3
  214. package/src/assets/svg/icons/realm/atv/IconAtvSideBySide.svg +0 -3
  215. package/src/assets/svg/icons/realm/atv/IconAtvTrailer.svg +0 -3
  216. package/src/assets/svg/icons/realm/boatmart/IconBoatmartPwc.svg +0 -3
  217. package/src/assets/svg/icons/realm/boatmart/IconBoatmartTrailer.svg +0 -3
  218. package/src/assets/svg/icons/realm/cycle/IconCycleMotorcycle.svg +0 -4
  219. package/src/assets/svg/icons/realm/cycle/IconCycleTrailer.svg +0 -3
  220. package/src/assets/svg/icons/realm/pwc/IconPwcPwc.svg +0 -3
  221. package/src/assets/svg/icons/realm/pwc/IconPwcSnowmobile.svg +0 -3
  222. package/src/assets/svg/icons/realm/pwc/IconPwcTrailer.svg +0 -3
  223. package/src/assets/svg/icons/realm/rv/IconRvClassA.svg +0 -3
  224. package/src/assets/svg/icons/realm/rv/IconRvClassB.svg +0 -3
  225. package/src/assets/svg/icons/realm/rv/IconRvClassC.svg +0 -3
  226. package/src/assets/svg/icons/realm/rv/IconRvDestinationTrailer.svg +0 -5
  227. package/src/assets/svg/icons/realm/rv/IconRvFifthWheel.svg +0 -3
  228. package/src/assets/svg/icons/realm/rv/IconRvFishHouse.svg +0 -3
  229. package/src/assets/svg/icons/realm/rv/IconRvParkModel.svg +0 -3
  230. package/src/assets/svg/icons/realm/rv/IconRvPopUpCamper.svg +0 -3
  231. package/src/assets/svg/icons/realm/rv/IconRvTeardropTrailer.svg +0 -4
  232. package/src/assets/svg/icons/realm/rv/IconRvTravelTrailer.svg +0 -3
  233. package/src/assets/svg/icons/realm/rv/IconRvTruckCamper.svg +0 -3
  234. package/src/assets/svg/icons/realm/snow/IconSnowMotorcycle.svg +0 -4
  235. package/src/assets/svg/icons/realm/snow/IconSnowPwc.svg +0 -3
  236. package/src/assets/svg/icons/realm/snow/IconSnowSideBySide.svg +0 -3
  237. package/src/assets/svg/icons/realm/snow/IconSnowSnowmobile.svg +0 -3
  238. package/src/assets/svg/icons/realm/snow/IconSnowTrailer.svg +0 -3
  239. package/src/components/InternalBaseLink.vue +0 -11
  240. package/src/components/TideAccordionItem.vue +0 -120
  241. package/src/components/TideAlert.vue +0 -186
  242. package/src/components/TideBadge.vue +0 -64
  243. package/src/components/TideBadgeTrustedPartner.vue +0 -52
  244. package/src/components/TideBadgeVerifiedVehicle.vue +0 -46
  245. package/src/components/TideBreadCrumbs.vue +0 -62
  246. package/src/components/TideButton.vue +0 -115
  247. package/src/components/TideButtonIcon.vue +0 -91
  248. package/src/components/TideButtonPagination.vue +0 -87
  249. package/src/components/TideButtonSave.vue +0 -109
  250. package/src/components/TideButtonSegmented.vue +0 -115
  251. package/src/components/TideCard.vue +0 -107
  252. package/src/components/TideCarousel.vue +0 -489
  253. package/src/components/TideChipAction.vue +0 -83
  254. package/src/components/TideChipFilter.vue +0 -71
  255. package/src/components/TideChipInput.vue +0 -54
  256. package/src/components/TideColumns.vue +0 -65
  257. package/src/components/TideDivider.vue +0 -43
  258. package/src/components/TideForm.vue +0 -33
  259. package/src/components/TideIcon.vue +0 -85
  260. package/src/components/TideImage.vue +0 -126
  261. package/src/components/TideImageBackground.vue +0 -69
  262. package/src/components/TideIndicator.vue +0 -63
  263. package/src/components/TideInputCheckbox.vue +0 -210
  264. package/src/components/TideInputCheckboxDeprecated.vue +0 -117
  265. package/src/components/TideInputRadio.vue +0 -115
  266. package/src/components/TideInputRadioDeprecated.vue +0 -119
  267. package/src/components/TideInputSelect.vue +0 -331
  268. package/src/components/TideInputSelectDeprecated.vue +0 -245
  269. package/src/components/TideInputSupportingText.vue +0 -44
  270. package/src/components/TideInputText.vue +0 -382
  271. package/src/components/TideInputTextDeprecated.vue +0 -327
  272. package/src/components/TideInputTextarea.vue +0 -235
  273. package/src/components/TideInputTextareaDeprecated.vue +0 -198
  274. package/src/components/TideLink.vue +0 -95
  275. package/src/components/TideMenuItem.vue +0 -83
  276. package/src/components/TideModal.vue +0 -281
  277. package/src/components/TidePagination.vue +0 -65
  278. package/src/components/TidePopover.vue +0 -198
  279. package/src/components/TideRating.vue +0 -109
  280. package/src/components/TideRealmLogo.vue +0 -154
  281. package/src/components/TideSeoLinks.vue +0 -59
  282. package/src/components/TideSheet.vue +0 -209
  283. package/src/components/TideSwitch.vue +0 -101
  284. package/src/components/TideTabs.vue +0 -63
  285. package/src/components/TideToaster.vue +0 -97
  286. package/src/composables/useTideConfig.ts +0 -23
  287. package/src/composables/useTideForm.ts +0 -25
  288. package/src/composables/useTideToaster.ts +0 -63
  289. package/src/contexts/sandbox/AppSandbox.vue +0 -7
  290. package/src/contexts/sandbox/app-sandbox.ts +0 -10
  291. package/src/stories/DemoCssUtilities.stories.ts +0 -154
  292. package/src/stories/DemoCssUtilitiesByTextInput.stories.ts +0 -61
  293. package/src/stories/FoundationsBorder.stories.ts +0 -272
  294. package/src/stories/FoundationsColor.stories.ts +0 -311
  295. package/src/stories/FoundationsFlexbox.stories.ts +0 -184
  296. package/src/stories/FoundationsGrid.stories.ts +0 -126
  297. package/src/stories/FoundationsMargin.stories.ts +0 -155
  298. package/src/stories/FoundationsPadding.stories.ts +0 -108
  299. package/src/stories/FoundationsShadow.stories.ts +0 -103
  300. package/src/stories/FoundationsTransparency.stories.ts +0 -114
  301. package/src/stories/FoundationsTypography.stories.ts +0 -212
  302. package/src/stories/Template.stories.ts +0 -73
  303. package/src/stories/TideAccordionItem.stories.ts +0 -91
  304. package/src/stories/TideAlert.stories.ts +0 -133
  305. package/src/stories/TideBadge.stories.ts +0 -90
  306. package/src/stories/TideBadgeTrustedPartner.stories.ts +0 -34
  307. package/src/stories/TideBadgeVerifiedVehicle.stories.ts +0 -22
  308. package/src/stories/TideBreadCrumbs.stories.ts +0 -42
  309. package/src/stories/TideButton.stories.ts +0 -132
  310. package/src/stories/TideButtonIcon.stories.ts +0 -109
  311. package/src/stories/TideButtonPagination.stories.ts +0 -99
  312. package/src/stories/TideButtonSave.stories.ts +0 -62
  313. package/src/stories/TideButtonSegmented.stories.ts +0 -110
  314. package/src/stories/TideCard.stories.ts +0 -102
  315. package/src/stories/TideCarousel.stories.ts +0 -219
  316. package/src/stories/TideChipAction.stories.ts +0 -81
  317. package/src/stories/TideChipFilter.stories.ts +0 -84
  318. package/src/stories/TideChipInput.stories.ts +0 -56
  319. package/src/stories/TideColumns.stories.ts +0 -89
  320. package/src/stories/TideDivider.stories.ts +0 -48
  321. package/src/stories/TideIcon.stories.ts +0 -31
  322. package/src/stories/TideImage.stories.ts +0 -124
  323. package/src/stories/TideImageBackground.stories.ts +0 -114
  324. package/src/stories/TideIndicator.stories.ts +0 -32
  325. package/src/stories/TideInputCheckbox.stories.ts +0 -138
  326. package/src/stories/TideInputRadio.stories.ts +0 -100
  327. package/src/stories/TideInputSelect.stories.ts +0 -244
  328. package/src/stories/TideInputText.stories.ts +0 -221
  329. package/src/stories/TideInputTextarea.stories.ts +0 -156
  330. package/src/stories/TideLink.stories.ts +0 -127
  331. package/src/stories/TideMenuItem.stories.ts +0 -117
  332. package/src/stories/TideModal.stories.ts +0 -219
  333. package/src/stories/TidePagination.stories.ts +0 -100
  334. package/src/stories/TidePopover.stories.ts +0 -101
  335. package/src/stories/TideRating.stories.ts +0 -114
  336. package/src/stories/TideRealmLogo.stories.ts +0 -93
  337. package/src/stories/TideSeoLinks.stories.ts +0 -68
  338. package/src/stories/TideSheet.stories.ts +0 -152
  339. package/src/stories/TideSwitch.stories.ts +0 -72
  340. package/src/stories/TideTabs.stories.ts +0 -114
  341. package/src/stories/TideToaster.stories.ts +0 -117
  342. package/src/stories/Welcome.mdx +0 -17
  343. package/src/types/Alert.ts +0 -8
  344. package/src/types/Badge.ts +0 -76
  345. package/src/types/BreadCrumb.ts +0 -5
  346. package/src/types/Breakpoint.ts +0 -18
  347. package/src/types/Card.ts +0 -7
  348. package/src/types/Element.ts +0 -13
  349. package/src/types/FieldDeprecated.ts +0 -92
  350. package/src/types/Form.ts +0 -1
  351. package/src/types/FormDeprecated.ts +0 -91
  352. package/src/types/Formatted.ts +0 -23
  353. package/src/types/Icon.ts +0 -202
  354. package/src/types/Image.ts +0 -7
  355. package/src/types/Link.ts +0 -5
  356. package/src/types/Orientation.ts +0 -6
  357. package/src/types/Priority.ts +0 -11
  358. package/src/types/Realm.ts +0 -14
  359. package/src/types/RealmLogo.ts +0 -23
  360. package/src/types/Select.ts +0 -9
  361. package/src/types/Size.ts +0 -13
  362. package/src/types/Source.ts +0 -6
  363. package/src/types/Storybook.ts +0 -253
  364. package/src/types/Styles.ts +0 -526
  365. package/src/types/Tab.ts +0 -5
  366. package/src/types/Target.ts +0 -6
  367. package/src/types/TextInput.ts +0 -28
  368. package/src/types/Toast.ts +0 -21
  369. package/src/types/Type.ts +0 -6
  370. package/src/types/Validation.ts +0 -33
  371. package/src/types/ValidationDeprecated.ts +0 -41
  372. package/src/utilities/event.ts +0 -4
  373. package/src/utilities/format.ts +0 -184
  374. package/src/utilities/forms.ts +0 -22
  375. package/src/utilities/realm.ts +0 -17
  376. package/src/utilities/storybook.ts +0 -354
  377. package/src/utilities/validation-deprecated.ts +0 -252
  378. package/src/utilities/validation.ts +0 -132
  379. package/src/utilities/viewport.ts +0 -63
  380. package/tests/InternalBaseLink.spec.ts +0 -61
  381. package/tests/TideRealmLogo.spec.ts +0 -58
  382. package/tests/svg-icons.spec.ts +0 -74
  383. package/tests/utilities-format.spec.ts +0 -470
  384. package/tests/utilities-storybook.spec.ts +0 -99
  385. package/tsconfig.app.json +0 -14
  386. package/tsconfig.config.json +0 -12
  387. package/tsconfig.json +0 -35
  388. package/tsconfig.node.json +0 -7
  389. package/tsconfig.vitest.json +0 -10
  390. package/vite-env.d.ts +0 -2
  391. package/vite.config.sandbox.ts +0 -29
  392. package/vite.config.ts +0 -37
@@ -1,84 +0,0 @@
1
- # TIDE Full Integration
2
- 1. Install dependency from NPM registry:
3
-
4
- `npm install tide-design-system --save-exact`
5
-
6
- Note: This will install TIDE **without a caret range**, which requires that the dependency be **upgraded manually**, as our [custom semantic versioning](./development.md#publication-tide-tech-lead-only) rules and distribution of QA resources dictate that consumer repositories must thoroughly test for breaking changes during the upgrade process.
7
-
8
- 2. Use CSS utilities:
9
- 1. Import global utilities:
10
-
11
- `import 'tide-design-system/css';`
12
-
13
- 2. Import realm-specific utilities (where applicable):
14
- - `import 'tide-design-system/css/realm/aero';`
15
- - `import 'tide-design-system/css/realm/atv';`
16
- - `import 'tide-design-system/css/realm/boatmart';`
17
- - `import 'tide-design-system/css/realm/cycle';`
18
- - `import 'tide-design-system/css/realm/equipment';`
19
- - `import 'tide-design-system/css/realm/pwc';`
20
- - `import 'tide-design-system/css/realm/snow';`
21
- - `import 'tide-design-system/css/realm/truck';`
22
-
23
- 3. Import TypeScript CSS constant:
24
-
25
- `import { CSS } from 'tide-design-system';`
26
-
27
- Note: See the [TypeScript CSS constant](../types/Styles.ts) for full details.
28
-
29
- 4. Leverage CSS utilities via TypeScript CSS constant:
30
-
31
- `<div :class="[CSS.POSITION.ABSOLUTE]" />`
32
-
33
- 5. Leverage *responsive* CSS utilities via TypeScript constant:
34
- ```
35
- <div
36
- :class=[
37
- CSS.MARGIN.FULL.QUARTER,
38
- CSS.withBreakpoint([CSS.MARGIN.FULL.HALF], BREAKPOINT.SM),
39
- CSS.withBreakpoint([CSS.MARGIN.FULL.ONE], BREAKPOINT.MD),
40
- CSS.withBreakpoint([CSS.MARGIN.FULL.TWO], BREAKPOINT.LG),
41
- CSS.withBreakpoint([CSS.MARGIN.FULL.FOUR], BREAKPOINT.XL),
42
- ]
43
- />
44
- ```
45
-
46
- 3. Use TypeScript types:
47
- 1. Import:
48
-
49
- `import type { Priority } from 'tide-design-system';`
50
-
51
- 2. Leverage:
52
-
53
- ```
54
- type Sample = {
55
- ...
56
- priority: Priority;
57
- };
58
- ```
59
-
60
- ```
61
- const setPriority = (priority: Priority) => {...};
62
- ```
63
-
64
- 4. Use TypeScript constants:
65
- 1. Import:
66
-
67
- `import { PRIORITY } from 'tide-design-system';`
68
-
69
- 2. Leverage:
70
-
71
- `<div :priority="PRIORITY.QUATERNARY">Sample</div>`
72
-
73
- 5. Use Vue 3 components:
74
- 1. Import:
75
-
76
- `import { TideButton } from 'tide-design-system';`
77
-
78
- 2. Leverage:
79
-
80
- `<TideButton label="Sample" />`
81
-
82
- 6. Storybook
83
-
84
- Working implementations of TIDE utilities and components can be dynamically-generated from the publicly-served [Storybook](https://tide-design-system.netlify.app) interface layer of the TIDE repository. See [Using Storybook](./docs/storybook.md#using-storybook) for details.
@@ -1,39 +0,0 @@
1
- # TIDE Partial Integration
2
- 1. Install dependency from NPM registry:
3
-
4
- `npm install tide-design-system --save-exact`
5
-
6
- Note: This will install TIDE **without a caret range**, which requires that the dependency be **upgraded manually**, as our [custom semantic versioning](./development.md#publication-tide-tech-lead-only) rules and distribution of QA resources dictate that consumer repositories must thoroughly test for breaking changes during the upgrade process.
7
-
8
- 2. Use CSS utilities:
9
- 1. Import global utilities one of two ways:
10
- 1. All inclusive:
11
-
12
- `import 'node_modules/tide-design-system/dist/css/main.css';`
13
-
14
- 2. Cherry-picked:
15
- - `import 'node_modules/tide-design-system/dist/css/fonts.css';`
16
- - `import 'node_modules/tide-design-system/dist/css/reset.css';`
17
- - `import 'node_modules/tide-design-system/dist/css/variables.css';`
18
- - `import 'node_modules/tide-design-system/dist/css/utilities.css';`
19
- - `import 'node_modules/tide-design-system/dist/css/grid-layout.css';`
20
- 2. Import realm-specific utilities (where applicable):
21
- - `import 'node_modules/tide-design-system/dist/css/realm/aero.css';`
22
- - `import 'node_modules/tide-design-system/dist/css/realm/atv.css';`
23
- - `import 'node_modules/tide-design-system/dist/css/realm/boatmart.css';`
24
- - `import 'node_modules/tide-design-system/dist/css/realm/cycle.css';`
25
- - `import 'node_modules/tide-design-system/dist/css/realm/equipment.css';`
26
- - `import 'node_modules/tide-design-system/dist/css/realm/pwc.css';`
27
- - `import 'node_modules/tide-design-system/dist/css/realm/snow.css';`
28
- - `import 'node_modules/tide-design-system/dist/css/realm/truck.css';`
29
-
30
- 3. Leverage CSS utiities:
31
-
32
- `<div class="tide-position-absolute" />`
33
-
34
- Note: See the [CSS utilities](../assets/css/utilities.ts) for full details.
35
-
36
- 4. Leverage responsive CSS utilities:
37
-
38
- `<div class="tide-position-relative md-tide-position-absolute" />`
39
- 3. Working implementations of TIDE utilities can be dynamically-generated from the publicly-served [Storybook](https://tide-design-system.netlify.app) interface layer of the TIDE repository. See [Utilities](./docs/storybook.md#utilities) under [Using Storybook](./docs/storybook.md#using-storybook) for details.
package/docs/migration.md DELETED
@@ -1,74 +0,0 @@
1
- # TIDE Migration
2
- The first implementation of the TIDE Design System was developed directly within the `marketplace` repository in parallel with a comprehensive redesign/rebuild of the entire frontend of the 3-page core site (Homepage, Search Results Page, Vehicle Detail Page). When TIDE matured into TIDE 2.0 and was reinvisioned as an NPM package many months later, it was decided that development would continue on redesign/rebuild without a specific effort to replace the initial implementation to the modernized approach. As such, these migrations are being undertaken piecemeal as developer availability permits.
3
-
4
- ## Goals
5
- 1. All frontend structures within the `marketplace` repository that implement TIDE utilities, components, or supporting structures will, over time, be moved, adapted, or recreated in the TIDE repository.
6
- 2. Structures to be migrated:
7
- 1. Vue 3 components
8
- 2. TypeScript types
9
- 3. JavaScript/TypeScript utilities
10
- 4. CSS utilities
11
- 5. Unit tests
12
-
13
- ## Status
14
- 1. The [legacy code](https://github.com/traderinteractive/marketplace) at the top level of the `marketplace` repository uses a [partial integration](./integration-partial.md) of TIDE, making the CSS utilities available globally.
15
- 1. Dependency controlled by the top level config: [package.json](https://github.com/traderinteractive/marketplace/blob/qa/package.json). **Version must be upgraded manually.**
16
- 2. Integration controlled by the [Gulp build](https://github.com/search?q=repo%3Atraderinteractive%2Fmarketplace%20tide%20path%3Agulpfile.js&type=code).
17
- 2. The [redesign code](https://github.com/traderinteractive/marketplace/tree/qa/frontend) within the `/frontend` subdirectory of the `marketplace` repository uses a [full integration](./integration-full.md) of TIDE, making both the CSS utilities and Vue 3 components available for import from any Vue 3 file.
18
- 1. Dependency controlled by the nested config: [/frontend/package.json](https://github.com/traderinteractive/marketplace/blob/qa/frontend/package.json). **Version must be upgraded manually.**
19
- 2. Integration controlled by the [Vite build](https://github.com/search?q=repo%3Atraderinteractive%2Fmarketplace%20tide%20path%3Afrontend%2Fvite.config.ts&type=code).
20
-
21
- ## Workflow
22
- As TIDE structures become available in the TIDE repository, the TIDE team will work to identify redundant structures within the `marketplace` repository, create tickets detailing the work to reimplement these structures, and work with the relevant product teams to determine priority and ownership of these tasks.
23
-
24
- 1. Update imports:
25
-
26
- ❌ TIDE 1.0
27
- ```
28
- import BasicSample from '@/components-core/BasicSample.vue';
29
- import { SAMPLE } from '@/types/Sample';
30
- import { getSample } from '@/utilities/sample';
31
-
32
- import type { Sample } from '@/types/Sample';
33
- ```
34
-
35
- ✅ TIDE 2.0
36
- ```
37
- import {
38
- BasicSample,
39
- SAMPLE,
40
- getSample,
41
- } from 'tide-design-system';
42
-
43
- import type { Sample } from 'tide-design-system';
44
- ```
45
- 2. Update all instances of component(s) under migration:
46
-
47
- **Note**: TIDE 2.0 props, slots, emits, and other structures may not correspond 1:1 with their TIDE 1.0 counterparts. See [Storybook](https://tide-design-system.netlify.app/) for the proper implementation of a TIDE 2.0 utility or component.
48
-
49
-
50
- ❌ TIDE 1.0
51
- `<BasicSample />`
52
-
53
- ✅ TIDE 2.0
54
- `<TideSample />`
55
- 3. Delete orphaned components:
56
-
57
- `git rm frontend/src/components-core/BasicSample.vue`
58
-
59
- 4. Delete orphaned types:
60
-
61
- `git rm frontend/src/types/Sample.ts`
62
-
63
- 5. Delete orphaned utilities:
64
-
65
- `git rm frontend/src/utilities/sample.ts`
66
-
67
- 6. Delete orphaned unit tests:
68
- - `git rm frontend/tests/components/BasicSample.spec.ts`
69
- - `git rm frontend/tests/BasicSample.spec.ts`
70
- - `git rm frontend/tests/utilities-sample.spec.ts`
71
-
72
- 7. Delete unused [JS constants](https://github.com/traderinteractive/marketplace/blob/qa/frontend/src/types/Styles.ts) (CSS_OLD)
73
- 8. Delete unused [CSS utilities](https://github.com/traderinteractive/marketplace/blob/qa/frontend/src/assets/css/utilities.css)
74
- 9. Run `npm run precommit` from the `/frontend` directory to identify (and potentially autofix) any ESLint, TypeScript, and/or Vitest issues, as the build server will reject any source branch that contains syntax violations or failing unit tests.
package/docs/storybook.md DELETED
@@ -1,44 +0,0 @@
1
- # TIDE Storybook
2
- [Storybook](https://tide-design-system.netlify.app) is a third-party frontend interface for providing dynamic, integrated documentation for custom UI components and styles in isolation.
3
-
4
- ## Benefits
5
- The TIDE Storybook was implemented to facilitate collaboration between departments within the Trader Interactive development group:
6
- - **Product Managers** can reference TIDE utilities and components when writing requirements for new pages and features.
7
- - **Designers** can interact with TIDE utilities and components in real browser conditions independent from any specific business context.
8
- - **Developers** can dynamically leverage components without having to become reacquinted with formatting standards, styling structures, or complex prop implementations.
9
- - **QA Engineers** can compare changes under test to the intended design and behavior of TIDE structures absent the context of a consumer repository.
10
-
11
- ## Hosting
12
- TIDE Storybook is currently publicly hosted via Netlify, a free, third-party platform connected to a fork of the TIDE repository. This is a temporary measure, to be replaced by a permanent solution that integrates the private server deployment process directly into the `traderinteractive` GitHub account for hosting to users within the Trader VPN.
13
-
14
- ## Local Setup
15
- 1. Install dependencies:
16
-
17
- `npm install`
18
-
19
- 2. Run demo:
20
-
21
- `npm run storybook`
22
-
23
- ## Storybook UI
24
- 1. **Sidebar** serves as table of contents along the left edge of the screen.
25
- 2. **Toolbar** offers project-level controls across the top of the screen.
26
- 3. **Canvas** contains an interactive demo.
27
- 4. **Code Snippet** displays live-updated markup implementation available to copy.
28
- 5. **Controls** determine the options passed into demo and code snippet.
29
- 6. **Stories** demonstrate all major features of a given structure.
30
-
31
- ## Using Storybook
32
- ### Utilities
33
- 1. Visit the [Storybook](https://tide-design-system.netlify.app) site.
34
- 2. Select the relevant utility from the Sidebar.
35
- 3. Use the Controls table to modify the options to reflect Jira requirements and/or Figma mock.
36
- 4. The Canvas panel is updated dynamically to reflect the options as implemented via the CSS utility classes.
37
- 5. The Code Snippet panel (activated by clicking the "Show code" button) is updated dynamically to demonstrate the correct implementation of the CSS utilities.
38
-
39
- ### Components
40
- 1. Visit the [Storybook](https://tide-design-system.netlify.app) site.
41
- 2. Select the relevant component from the Sidebar.
42
- 3. Use the Controls table to modify the options to reflect Jira requirements and/or Figma mock.
43
- 4. The Canvas panel is updated dynamically to demonstrate an interactive implementation of the correct component variant.
44
- 5. The Code Snippet panel (activated by clicking the "Show code" button) is updated dynamically to demonstrate the correct implementation of the TIDE component.
@@ -1,22 +0,0 @@
1
- # TIDE Marketplace Style Guides
2
- Each redesign realm has an unlinked, yet publicly-accessible Style Guide page that demonstrates the styling and behavior of all major TIDE styles and components in a realm-specific production environment.
3
-
4
- ## Benefits
5
- The TIDE Marketplace Style Guides were implemented to facilitate collaboration between departments within the Trader Interactive development group:
6
- - **Product Managers** can quickly review which TIDE structures are already integrated into the `marketplace` repository.
7
- - **Designers** can quickly verify that TIDE structures accurately reflect the designs.
8
- - **Developers** can quickly view the standard implementation of any given structure as both source code and distributed code.
9
- - **QA Engineers** can quickly verify that the design and behavior of TIDE structures have not been unintentionally altered by a dependency upgrade under test.
10
-
11
- ## Links
12
- - Current redesign realms:
13
- - [ATV](https://www.atvtrader.com/style-guide)
14
- - [Boatmart](https://www.boatmart.com/style-guide)
15
- - [RV](https://www.rvtrader.com/style-guide)
16
- - Forthcoming redesign realms:
17
- - [Aero](https://www.aerotrader.com/style-guide)
18
- - [Cycle](https://www.cycletrader.com/style-guide)
19
- - [Equipment](https://www.equipmenttrader.com/style-guide)
20
- - [PWC](https://www.pwctrader.com/style-guide)
21
- - [Snow](https://www.snowmobiletrader.com/style-guide)
22
- - [Truck](https://www.commercialtrucktrader.com/style-guide)
package/docs/toast.md DELETED
@@ -1,61 +0,0 @@
1
- # TIDE Toaster
2
-
3
- A global toast notification system for TIDE applications.
4
-
5
- ---
6
-
7
- ## Setup
8
-
9
- Place the `<TideToaster />` component once at the top level of your app (for example, in `app.vue`).
10
-
11
- You must also initialize the toaster at the root so it is properly provided to the entire app tree.
12
-
13
- ```vue
14
- <script setup lang="ts">
15
- import { useTideToaster } from 'tide-design-system';
16
-
17
- // Initialize and provide the toaster at the app root
18
- useTideToaster();
19
- </script>
20
-
21
- <template>
22
- <NuxtRouteAnnouncer />
23
- <NuxtPage />
24
- <TideToaster />
25
- </template>
26
- ```
27
-
28
- ---
29
-
30
- ## Using the Composable
31
-
32
- You can trigger toasts from anywhere in your application using the `useTideToaster` composable.
33
-
34
- ```ts
35
- import { useTideToaster } from 'tide-design-system';
36
-
37
- const { addToast, clearToasts } = useTideToaster();
38
-
39
- // Pop an informational toast
40
- addToast({
41
- heading: 'Saved',
42
- description: 'Your changes have been saved.',
43
- });
44
-
45
- // Pop an actionable toast
46
- addToast({
47
- heading: 'Undo changes?',
48
- description: 'You can revert this action.',
49
- action: {
50
- label: 'Undo',
51
- callback: () => {
52
- // handle undo
53
- },
54
- },
55
- });
56
-
57
- // Manually clear the current toast
58
- clearToasts();
59
- ```
60
-
61
- > Note: Only one toast is displayed at a time. Calling `addToast` will clear any existing toast before showing the new one.
@@ -1,63 +0,0 @@
1
- # TIDE Figma Token Cheatsheet
2
-
3
- ## Terminology
4
- - [**Figma Token**](https://www.figma.com/design/9oYSAyY2X9mPaUMiobZOPg/Design-System---TIDE-2.0?node-id=0-1&p=f&m=dev): the name that appears in the "Layer properties" section of the right sidebar when inspecting an element of a Figma mock
5
- - [**JS Constant**](../src/types/Styles.ts): the standard JavaScript structure to use when implementing a TIDE Figma token from within a JS file and/or framework (`.vue`, `.ts`, `.js`)
6
- - [**CSS Utility**](../src/assets/css/utilities-base.css): the CSS class to use when implementing a TIDE Figma token from **legacy** frameworks (`.html`, `.php`, `.phtml`).
7
-
8
- ## Typography
9
- |[Figma Token](https://www.figma.com/design/9oYSAyY2X9mPaUMiobZOPg/Design-System---TIDE-2.0?node-id=0-1&p=f&m=dev)|[JS Constant](../src/types/Styles.ts)|[CSS Utility](../src/assets/css/utilities-base.css)|
10
- |-|-|-|
11
- |Role/Display/Display 1|`CSS.FONT.ROLE.DISPLAY_1`|`tide-typography-display-1`|
12
- |Role/Headline/Headline 1|`CSS.FONT.ROLE.HEADLINE_1`|`tide-typography-headline-1`|
13
- |Role/Headline/Headline 2|`CSS.FONT.ROLE.HEADLINE_2`|`tide-typography-headline-2`|
14
- |Role/Headline/Headline 3|`CSS.FONT.ROLE.HEADLINE_3`|`tide-typography-headline-3`|
15
- |Role/Title/Title 1|`CSS.FONT.ROLE.TITLE_1`|`tide-typography-title-1`|
16
- |Role/Title/Title 2|`CSS.FONT.ROLE.TITLE_2`|`tide-typography-title-2`|
17
- |Role/Body/Body 1*|`CSS.FONT.ROLE.BODY_1`|`tide-typography-body-1`|
18
- |Role/Body/Body 2|`CSS.FONT.ROLE.BODY_2`|`tide-typography-body-2`|
19
- |Role/Label/Label 1|`CSS.FONT.ROLE.LABEL_1`|`tide-typography-label-1`|
20
- |Role/Label/Label 1 Semibold|`CSS.FONT.ROLE.LABEL_1_SEMIBOLD`|`tide-typography-label-1-semibold`|
21
- |Role/Label/Label 2|`CSS.FONT.ROLE.LABEL_2`|`tide-typography-label-2`|
22
- |Role/Label/Label 2 Semibold|`CSS.FONT.ROLE.LABEL_2_SEMIBOLD`|`tide-typography-label-2-semibold`|
23
- |Role/Label/Label 3|`CSS.FONT.ROLE.LABEL_3`|`tide-typography-label-3`|
24
- |Role/Link/Link 1|`CSS.FONT.ROLE.LINK_1`|`tide-typography-link-1`|
25
- |Role/Link/Link 2|`CSS.FONT.ROLE.LINK_2`|`tide-typography-link-2`|
26
- |Role/Button/Button 1|`CSS.FONT.ROLE.BUTTON_1`|`tide-typography-button-1`|
27
- |Role/Button/Button 2|`CSS.FONT.ROLE.BUTTON_2`|`tide-typography-button-2`|
28
-
29
- \* **Body/Body 1** is applied to all site text by default in the [CSS Reset](../src/assets/css/reset.css), so it doesn't need to be specified unless overriding an inherited font role.
30
-
31
- ## Color
32
-
33
- ### Background Color
34
- |[Figma Token](https://www.figma.com/design/9oYSAyY2X9mPaUMiobZOPg/Design-System---TIDE-2.0?node-id=0-1&p=f&m=dev)|[JS Constant](../src/types/Styles.ts)|[CSS Utility](../src/assets/css/utilities-base.css)
35
- |-|-|-|
36
- |Colors/Primary/Primary|`CSS.BG.PRIMARY`|`tide-bg-primary`|
37
- |Colors/Secondary/Secondary|`CSS.BG.SECONDARY`|`tide-bg-secondary`|
38
- |Colors/Surface/Surface|`CSS.BG.SURFACE.DEFAULT`|`tide-bg-surface`|
39
- |Colors/Surface/Surface brand|`CSS.BG.SURFACE.BRAND`|`tide-bg-surface-brand`|
40
- |Colors/Surface/Surface brand|`CSS.BG.SURFACE.BRAND`|`tide-bg-surface-brand`|
41
- |Colors/Surface/Surface accent|`CSS.BG.SURFACE.ACCENT`|`tide-bg-surface-accent`|
42
- |Colors/Surface/Surface variant|`CSS.BG.SURFACE.VARIANT`|`tide-bg-surface-variant`|
43
- |Colors/Surface/Surface gradient|`CSS.BG.SURFACE.GRADIENT`|`tide-bg-surface-gradient`|
44
- |Colors/Surface/Surface floating|`CSS.BG.SURFACE.FLOATING`|`tide-bg-surface-floating`|
45
-
46
- ### Border Color
47
- |[Figma Token](https://www.figma.com/design/9oYSAyY2X9mPaUMiobZOPg/Design-System---TIDE-2.0?node-id=0-1&p=f&m=dev)|[JS Constant](../src/types/Styles.ts)|[CSS Utility](../src/assets/css/utilities-base.css)
48
- |-|-|-|
49
- |Colors/Border/Border|`CSS.BORDER.COLOR.DEFAULT`|`tide-border`|
50
- |Colors/Border/Border low|`CSS.BORDER.COLOR.LOW`|`tide-border-low`|
51
- |Colors/Border/Border high|`CSS.BORDER.COLOR.HGIH`|`tide-border-high`|
52
- |Colors/Border/Border floating|`CSS.BORDER.COLOR.FLOATING`|`tide-border-floating`|
53
-
54
- ### Font Color
55
- |[Figma Token](https://www.figma.com/design/9oYSAyY2X9mPaUMiobZOPg/Design-System---TIDE-2.0?node-id=0-1&p=f&m=dev)|[JS Constant](../src/types/Styles.ts)|[CSS Utility](../src/assets/css/utilities-base.css)
56
- |-|-|-|
57
- |Colors/Primary/On primary|`CSS.BG.PRIMARY`|`tide-font-on-primary`|
58
- |Colors/Secondary/Secondary|`CSS.BG.SECONDARY`|`tide-font-on-secondary`|
59
- |Colors/Surface/On surface|`CSS.BG.SURFACE.DEFAULT`|`tide-font-on-surface`|
60
- |Colors/Surface/On surface brand|`CSS.BG.SURFACE.BRAND`|`tide-font-on-surface-brand`|
61
- |Colors/Surface/On surface inverse|`CSS.BG.SURFACE.INVERSE`|`tide-font-on-surface-inverse`|
62
- |Colors/Surface/On surface variant|`CSS.BG.SURFACE.VARIANT`|`tide-font-on-surface-variant`|
63
- |Colors/Surface/On surface variant inverse|`CSS.BG.SURFACE.VARIANT_INVERSE`|`tide-font-on-surface-variant-inverse`|
package/docs/upgrading.md DELETED
@@ -1,188 +0,0 @@
1
- # Upgrading Versions
2
-
3
- This document provides step-by-step instructions for upgrading from previous versions of the library.
4
-
5
- ---
6
-
7
- ## Upgrading from 2.4 → 2.5
8
-
9
- ### What changed?
10
-
11
- TIDE **2.5** updates several *stateful* components to use Vue’s `v-model` for two-way binding. This replaces each component’s old “value prop + change emit” pattern.
12
-
13
- Affected components:
14
-
15
- - `TideAccordionItem`
16
- - `TideButtonSegmented`
17
- - `TideChipFilter`
18
- - `TideModal`
19
- - `TideSheet`
20
- - `TideSwitch`
21
-
22
- ### How to migrate
23
-
24
- #### 1. Replace old props with `v-model`
25
-
26
- | Component | v2.4 prop | v2.5+ |
27
- |---|---|---|
28
- | TideAccordionItem | `:is-expanded` | `v-model` |
29
- | TideButtonSegmented | `:active-tab` | `v-model` |
30
- | TideChipFilter | `:is-active` | `v-model` |
31
- | TideModal | `:is-open` | `v-model` |
32
- | TideSheet | `:is-open` | `v-model` |
33
- | TideSwitch | `:is-active` | `v-model` |
34
-
35
- ##### 2.4 example
36
-
37
- ```
38
- <TideButtonSegmented
39
- :active-tab="active"
40
- @change="active = $event"
41
- />
42
- ```
43
-
44
- ##### 2.5+
45
-
46
- ``` vue
47
- <TideButtonSegmented v-model="active" />
48
- ```
49
-
50
- #### 2. Replace old emits with `@update:modelValue`
51
-
52
- | Component | Old emit | New emit |
53
- |---|---|---|
54
- | TideAccordionItem | `@toggle` | `@update:modelValue` |
55
- | TideButtonSegmented | `@change` | `@update:modelValue` |
56
- | TideChipFilter | `@click` | `@update:modelValue` |
57
- | TideModal | `@close` | `@update:modelValue` |
58
- | TideSheet | `@close` | `@update:modelValue` |
59
- | TideSwitch | `@change` | `@update:modelValue` |
60
-
61
- Use this only for **side effects**, not basic value updates.
62
-
63
- Or use Vue’s `watch()`:
64
-
65
- ``` ts
66
- watch(active, doSomething);
67
- ```
68
-
69
- ### Handling cancellable modals (new API)
70
-
71
- **2.4** used `@close` + manual logic.
72
-
73
- **2.5+** introduces `:before-close`, which cancels dismissal if it returns `false`.
74
-
75
- ```
76
- <TideModal
77
- v-model="isOpen"
78
- :before-close="() => {
79
- if (!confirm('Close modal?')) return false;
80
- }"
81
- >
82
- ```
83
-
84
- ✅ After these changes your project should be compatible with **TIDE 2.5**.
85
-
86
- ## Upgrading from 2.4.5 → 2.4.6
87
-
88
- ### Summary
89
-
90
- Version **2.4.6** introduced a Nuxt SSR incompatibility. From **2.4.6**, TideModal uses Vue `<Teleport />` to place modal content in `#tide-top-layer`. This is not a problem in CSR apps, but [Nuxt SSR only provides support for one teleport target](https://nuxt.com/docs/4.x/api/components/teleports#:~:text=in%20the%20DOM.-,The,wrapper.,-Body%20Teleport). The default id on this teleport target is `#teleports`.
91
-
92
- ### Migration steps
93
-
94
- Update the `teleportId` value within the Nuxt config to `tide-top-layer`.
95
-
96
- ``` ts
97
- // nuxt.config.ts
98
- export defineNuxtConfig({
99
- app: {
100
- teleportId: 'tide-top-layer',
101
- }
102
- });
103
- ```
104
-
105
- Alternatively you can use the `teleportAttrs` config value.
106
-
107
- ``` ts
108
- // nuxt.config.ts
109
- export defineNuxtConfig({
110
- app: {
111
- teleportAttrs: {
112
- id: 'tide-top-layer',
113
- },
114
- }
115
- });
116
- ```
117
-
118
- See [Nuxt Configuration docs](https://nuxt.com/docs/4.x/api/nuxt-config#teleportid).
119
-
120
- ✅ After these changes your project should be compatible with TIDE 2.4.6.
121
-
122
- ## Upgrading from 2.3 → 2.4
123
-
124
- ### Summary
125
-
126
- Version **2.4** introduces a new suite of form components. It remains largely backward-compatible with the previous versions of components, but requires an update to a number of component names. It also removes a number of form-related TS exports.
127
-
128
- ### Migration steps
129
-
130
- 1. **Convert component names**
131
-
132
- These components have been changed, and must be renamed as follows:
133
-
134
- | Old name (2.3) | New name (2.4) |
135
- |---|---|
136
- | `<TideInputCheckbox />` | `<TideInputCheckboxDeprecated />` |
137
- | `<TideInputRadio />` | `<TideInputRadioDeprecated />` |
138
- | `<TideInputSelect />` | `<TideInputSelectDeprecated />` |
139
- | `<TideInputText />` | `<TideInputTextDeprecated />` |
140
- | `<TideInputTextarea />` | `<TideInputTextareaDeprecated />` |
141
-
142
- The components are otherwise identical.
143
-
144
- 2. **Replace usage of removed types**
145
-
146
- The following types are no longer exported from the TIDE repository and must be replaced:
147
- - `BooleanInput`
148
- - `BooleanValue`
149
- - `CheckboxField`
150
- - `CheckboxInput`
151
- - `Field`
152
- - `GenericField`
153
- - `GenericInput`
154
- - `Input`
155
- - `SelectField`
156
- - `SelectInput`
157
- - `StringField`
158
- - `StringInput`
159
- - `StringValue`
160
- - `TextField`
161
- - `TextareaField`
162
- - `TextareaInput`
163
-
164
- ✅ After these changes your project should be compatible with **TIDE 2.4**.
165
-
166
- ## Upgrading from 2.2 → 2.3
167
-
168
- ### Summary
169
- Version **2.3** consolidates certain CSS files. The same utilities can now be made globally available in a TIDE consumer repository leveraging [partial integration](./integration-partial.md) by cherry-picking a smaller set of `dist` files from the `node_modules` subdirectory.
170
-
171
- **Important:** Upgrading to **2.3** introduces breaking changes unless deprecated imports are removed.
172
-
173
- ### Migration steps
174
-
175
- 1. **Remove deprecated imports**
176
- Delete any imports that match:
177
- ```css
178
- node_modules/tide-design-system/dist/css/utilities-*.css
179
- node_modules/tide-design-system/dist/css/dynamic-*.css
180
- ```
181
-
182
- 2. **Use the consolidated file**
183
- All utilities are now declared in:
184
- ```css
185
- node_modules/tide-design-system/dist/css/utilities.css
186
- ```
187
-
188
- ✅ After these changes your project should be compatible with **TIDE 2.3**.
package/docs/workflows.md DELETED
@@ -1,20 +0,0 @@
1
- # TIDE Collaborative Workflows
2
-
3
- ## TIDE-first development
4
-
5
- 1. Identify a ticket on your product team's Jira backlog that has a dependency on an approved TIDE structure not yet present in the TIDE repository.
6
- 2. Contact the TIDE team via the [#ti-marketplaces-design-system-public](https://cargroup.enterprise.slack.com/archives/C08TEFUUE4X) Slack channel to discuss the dependency and to determine whether a TIDE ticket already exists in Jira or must be created, then mark the dependent ticket as `blocked by` the TIDE ticket via Jira's `Add > Linked work item` feature.
7
- 3. The TIDE team will estimate and prioritize the ticket and pull it into a TIDE sprint accordingly.
8
- 4. Once pulled into a sprint, the TIDE team will develop, peer review, test, and merge a new branch into the TIDE repository, then publish a new version of the `tide-design-system` package to the NPM registry.
9
- 5. The TIDE team will notify the owners of the dependent ticket that the blockage has been removed.
10
- 6. From the consumer repository, manually upgrade the dependency to the latest version of the `tide-design-system` package, then develop, peer review, test, and release the dependent ticket in the consumer repository as normal.
11
-
12
- ## Consumer-first development
13
-
14
- 1. Develop, peer review, test, and release the proposed TIDE structures in a consumer repository as with any other Jira task.
15
- 2. Create a ticket in the [TIDE Jira backlog](https://traderinteractive.atlassian.net/jira/software/c/projects/TIDE/boards/1092/backlog) identifying the relevant structures and requesting that they be migrated/adapted into the TIDE repository.
16
- 3. Post a message in the [#ti-marketplaces-design-system-public](https://cargroup.enterprise.slack.com/archives/C08TEFUUE4X) Slack channel to make the TIDE team aware of the proposal.
17
- 4. The TIDE team will review the proposal.
18
- 1. If accepted, the TIDE team will prioritize the ticket for development and release.
19
- 2. If not accepted, the TIDE team will contact the reporter for additional discussion before closing the Jira ticket as `Won't Do`.
20
- 5. Jira will automatically contact the Reporter of the ticket with relevant updates, including publication.
package/index.html DELETED
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <title>TIDE Sandbox</title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
7
- <meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1.0 user-scalable=no"/>
8
- <script src="src/contexts/sandbox/app-sandbox.ts" type="module"></script>
9
- </head>
10
-
11
- <body>
12
- <div id="app-sandbox" />
13
- </body>
14
- </html>