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,101 +0,0 @@
1
- import TideIcon from '@/components/TideIcon.vue';
2
- import TidePopover from '@/components/TidePopover.vue';
3
- import { ICON } from '@/types/Icon';
4
- import { lineBreak, tab } from '@/utilities/storybook';
5
-
6
- import type { StoryContext } from '@storybook/vue3';
7
-
8
- type Args = InstanceType<typeof TidePopover>['$props'] & {
9
- default: string;
10
- offset: string;
11
- };
12
-
13
- const formatSnippet = (code: string, context: StoryContext) => {
14
- const { args } = context;
15
-
16
- const argsWithValues: string[] = [];
17
-
18
- if (args.anchorId !== '') argsWithValues.push(`anchor-id="${args.anchorId}"`);
19
- if (args.offset !== '') argsWithValues.push(`:offset="${args.offset}"`);
20
-
21
- return (
22
- `<TideIcon :icon="ICON.INFO" id="anchorDemo" />${lineBreak}${lineBreak}` +
23
- `<TidePopover ${argsWithValues.join(' ')}>${lineBreak}` +
24
- `${tab}${args.default}${lineBreak}` +
25
- `</TidePopover>`
26
- );
27
- };
28
-
29
- const parameters = {
30
- docs: {
31
- source: {
32
- format: 'vue',
33
- language: 'html',
34
- transform: formatSnippet,
35
- },
36
- },
37
- };
38
-
39
- const render = (args: Args) => ({
40
- components: { TideIcon, TidePopover },
41
- setup: () => {
42
- if (args.offset === '') {
43
- delete args.offset;
44
- }
45
-
46
- return { ICON, args };
47
- },
48
- template: `
49
- <TideIcon :icon="ICON.INFO" id="anchorDemo" />
50
-
51
- <TidePopover v-bind="args">
52
- ${args.default}
53
- </TidePopover>
54
- `,
55
- updated() {
56
- if (args.offset === '') {
57
- delete args.offset;
58
- }
59
-
60
- return { ICON, args };
61
- },
62
- });
63
-
64
- export default {
65
- argTypes: {
66
- anchorId: {
67
- control: 'text',
68
- table: {
69
- defaultValue: { summary: 'None' },
70
- type: { summary: 'string' },
71
- },
72
- },
73
- default: {
74
- control: 'text',
75
- description: 'Popover content',
76
- table: {
77
- defaultValue: { summary: 'None' },
78
- type: { summary: 'HTML' },
79
- },
80
- },
81
- offset: {
82
- control: 'text',
83
- table: {
84
- defaultValue: { summary: '16' },
85
- type: { summary: 'number' },
86
- },
87
- },
88
- },
89
- args: {
90
- anchorId: 'anchorDemo',
91
- default: '<span>Demo</span>',
92
- offset: '',
93
- },
94
- component: TidePopover,
95
- parameters,
96
- render,
97
- tags: ['autodocs'],
98
- title: 'Components/TidePopover',
99
- };
100
-
101
- export const Demo = {};
@@ -1,114 +0,0 @@
1
- import { action } from '@storybook/addon-actions';
2
- import { ref, watchEffect } from 'vue';
3
-
4
- import TideRating from '@/components/TideRating.vue';
5
- import { argTypeBooleanUnrequired, change, doSomething, parameters } from '@/utilities/storybook';
6
-
7
- import type { StoryContext } from '@storybook/vue3';
8
-
9
- type Args = InstanceType<typeof TideRating>['$props'] & {
10
- handleChange: string;
11
- vModel: number;
12
- };
13
-
14
- const maxRating = 10;
15
-
16
- const render = (args: Args, context: StoryContext) => ({
17
- components: { TideRating },
18
- methods: {
19
- doSomething,
20
- handleChange: (index: number) => {
21
- action('Current rating')(index);
22
- context.updateArgs({ ...args, vModel: index });
23
-
24
- try {
25
- const callback = eval(args.handleChange);
26
-
27
- if (callback) {
28
- callback();
29
- }
30
- } catch {
31
- alert('Please specify a valid handler in the "change" control.');
32
- }
33
- },
34
- },
35
- setup: () => {
36
- const ratingValue = ref<number>(args.vModel);
37
-
38
- watchEffect(() => {
39
- ratingValue.value = args.vModel;
40
- });
41
-
42
- return {
43
- args,
44
- ratingValue,
45
- };
46
- },
47
- template: '<TideRating v-model="ratingValue" @update:modelValue="handleChange" v-bind="args" />',
48
- });
49
-
50
- export default {
51
- argTypes: {
52
- description: {
53
- control: 'text',
54
- table: {
55
- defaultValue: { summary: 'None' },
56
- type: { summary: 'string' },
57
- },
58
- },
59
- handleChange: {
60
- ...change,
61
- control: 'text',
62
- description: 'JS code or function to execute on change event',
63
- name: 'update:modelValue',
64
- table: {
65
- category: 'Events',
66
- defaultValue: { summary: 'None' },
67
- type: { summary: '() => void' },
68
- },
69
- },
70
- maxRating: {
71
- control: 'text',
72
- table: {
73
- defaultValue: { summary: 10 },
74
- type: { summary: 'number' },
75
- },
76
- },
77
- showRating: argTypeBooleanUnrequired,
78
- title: {
79
- control: 'text',
80
- table: {
81
- defaultValue: { summary: 'None' },
82
- type: { summary: 'string' },
83
- },
84
- },
85
- vModel: {
86
- control: {
87
- type: 'select',
88
- },
89
- description: 'Data binding to Vue ref (selected rating index)',
90
- isDynamic: true,
91
- options: Array.from({ length: maxRating + 1 }, (_, i) => i),
92
- table: {
93
- category: 'Native',
94
- defaultValue: { summary: 'None' },
95
- type: { summary: 'Ref<number>' },
96
- },
97
- },
98
- },
99
- args: {
100
- description: 'Description',
101
- handleChange: 'doSomething',
102
- maxRating: '10',
103
- showRating: undefined,
104
- title: 'Title',
105
- vModel: 0,
106
- },
107
- component: TideRating,
108
- parameters,
109
- render,
110
- tags: ['autodocs'],
111
- title: 'Components/TideRating',
112
- };
113
-
114
- export const Demo = {};
@@ -1,93 +0,0 @@
1
- import TideRealmLogo from '@/components/TideRealmLogo.vue';
2
- import * as STANDARD_BREAKPOINT from '@/types/Breakpoint';
3
- import { REALM } from '@/types/Realm';
4
- import * as STANDARD_CSS_REALM_LOGO_SIZE from '@/types/RealmLogo';
5
- import {
6
- argTypeBooleanUnrequired,
7
- formatArgType,
8
- formatValueAsConstant,
9
- prependNoneAsUndefined,
10
- } from '@/utilities/storybook';
11
-
12
- import type { StoryContext } from '@storybook/vue3';
13
-
14
- // TODO: Add "watcher" to reset args.breakpoint when args.markOnly is set to true.
15
-
16
- const BREAKPOINT = prependNoneAsUndefined(STANDARD_BREAKPOINT.BREAKPOINT);
17
- const CSS_REALM_LOGO_SIZE = prependNoneAsUndefined(STANDARD_CSS_REALM_LOGO_SIZE.CSS_REALM_LOGO_SIZE);
18
-
19
- const formatSnippet = (code: string, context: StoryContext) => {
20
- const { args, argTypes } = context;
21
- const argsWithValues: string[] = [`:realm="${formatValueAsConstant({ realm: args.realm }, argTypes)}"`];
22
- const classes: string[] = [];
23
-
24
- if (args.markOnly !== undefined) argsWithValues.push(`:mark-only="${args.markOnly}"`);
25
- if (args.size !== undefined && args.markOnly !== true)
26
- classes.push(formatValueAsConstant({ size: args.size }, argTypes));
27
- if (args.breakpoint !== undefined && args.markOnly !== true)
28
- classes.push(
29
- `CSS.withBreakpoint([CSS_REALM_LOGO_SIZE.LARGE], ${formatValueAsConstant(
30
- { breakpoint: args.breakpoint },
31
- argTypes
32
- )})`
33
- );
34
- if (classes.length > 0) argsWithValues.push(`:class="[${classes.join(', ')}]"`);
35
-
36
- return `<TideRealmLogo ${argsWithValues.join(' ')} />`;
37
- };
38
-
39
- const parameters = {
40
- docs: {
41
- source: {
42
- format: 'vue',
43
- language: 'html',
44
- transform: formatSnippet,
45
- },
46
- },
47
- };
48
-
49
- export default {
50
- argTypes: {
51
- breakpoint: {
52
- ...formatArgType({ BREAKPOINT }),
53
- description:
54
- 'Determines which responsive utility to apply<br /><br />Controlled via mobile-first "CSS.withBreakpoint"<br /><br />Does not apply to markOnly = true',
55
- if: { arg: 'size', eq: CSS_REALM_LOGO_SIZE.SMALL },
56
- table: {
57
- category: 'Non-props',
58
- defaultValue: { summary: 'None' },
59
- type: { summary: 'BREAKPOINT' },
60
- },
61
- },
62
- markOnly: {
63
- ...argTypeBooleanUnrequired,
64
- },
65
- realm: {
66
- ...formatArgType({ REALM }),
67
- },
68
- size: {
69
- ...formatArgType({ CSS_REALM_LOGO_SIZE }),
70
- description:
71
- 'Determines logo display size<br /><br />Controlled via CSS utilities<br /><br />Does not apply to markOnly = true',
72
- if: { arg: 'markOnly', neq: true },
73
- table: {
74
- category: 'Non-props',
75
- defaultValue: { summary: 'LARGE' },
76
- type: { summary: 'CSS_REALM_LOGO_SIZE' },
77
- },
78
- },
79
- },
80
- args: {
81
- markOnly: undefined,
82
- realm: REALM.RV,
83
- },
84
- component: TideRealmLogo,
85
- parameters,
86
- tags: ['autodocs'],
87
- title: 'Components/TideRealmLogo',
88
- };
89
-
90
- export const Demo = {
91
- markOnly: undefined,
92
- size: undefined,
93
- };
@@ -1,68 +0,0 @@
1
- import TideSeoLinks from '@/components/TideSeoLinks.vue';
2
-
3
- import type { Link } from '@/types/Link';
4
- import type { StoryContext } from '@storybook/vue3';
5
-
6
- type Args = InstanceType<typeof TideSeoLinks>['$props'];
7
-
8
- const links: Link[] = new Array(12).fill({}).map((link, index) => {
9
- return {
10
- isNewTab: false,
11
- label: `Link ${index + 1}`,
12
- url: '/',
13
- };
14
- });
15
-
16
- const formatSnippet = (code: string, context: StoryContext) => {
17
- const { args } = context;
18
-
19
- return `<TideSeoLinks :heading="${args.heading}" :link="links" />`;
20
- };
21
-
22
- const parameters = {
23
- docs: {
24
- source: {
25
- format: 'vue',
26
- language: 'html',
27
- transform: formatSnippet,
28
- },
29
- },
30
- };
31
-
32
- const render = (args: Args) => ({
33
- components: { TideSeoLinks },
34
- setup: () => ({ args }),
35
- template: '<TideSeoLinks v-bind="args" />',
36
- });
37
-
38
- export default {
39
- argTypes: {
40
- heading: {
41
- control: 'text',
42
- description: 'Determines label, URL, and target for each link',
43
- table: {
44
- defaultValue: { summary: 'None' },
45
- type: { summary: 'Link[]' },
46
- },
47
- },
48
- links: {
49
- control: 'object',
50
- description: 'Determines label, URL, and target for each link',
51
- table: {
52
- defaultValue: { summary: 'None' },
53
- type: { summary: 'Link[]' },
54
- },
55
- },
56
- },
57
- args: {
58
- heading: 'Demo',
59
- links,
60
- },
61
- component: TideSeoLinks,
62
- parameters,
63
- render,
64
- tags: ['autodocs'],
65
- title: 'Components/TideSeoLinks',
66
- };
67
-
68
- export const Demo = {};
@@ -1,152 +0,0 @@
1
- import { action } from '@storybook/addon-actions';
2
- import { ref, watch } from 'vue';
3
-
4
- import TideButton from '@/components/TideButton.vue';
5
- import TideSheet from '@/components/TideSheet.vue';
6
- import {
7
- argTypeBooleanUnrequired,
8
- disabledArgType,
9
- doSomething,
10
- doSomethingElse,
11
- lineBreak,
12
- tab,
13
- } from '@/utilities/storybook';
14
-
15
- import type { StoryContext } from '@storybook/vue3';
16
-
17
- type Args = InstanceType<typeof TideSheet>['$props'] & {
18
- default: string;
19
- handleBack: string;
20
- handleClose: string;
21
- vModel: boolean;
22
- };
23
-
24
- const formatSnippet = (code: string, context: StoryContext) => {
25
- const { args } = context;
26
-
27
- const argsWithValues: string[] = [`:is-open="${args.isOpen}"`];
28
-
29
- if (args.isBackButton !== undefined) argsWithValues.push(`:is-back-button="${args.isBackButton}"`);
30
- if (args.handleBack !== undefined) argsWithValues.push(`@back="${args.handleBack}"`);
31
- if (args.handleClose !== undefined) argsWithValues.push(`@close="${args.handleClose}"`);
32
-
33
- return `<TideSheet ${argsWithValues.join(' ')}>${lineBreak}` + `${tab}${args.default}${lineBreak}` + `</TideSheet>`;
34
- };
35
-
36
- const parameters = {
37
- docs: {
38
- source: {
39
- format: 'vue',
40
- language: 'html',
41
- transform: formatSnippet,
42
- },
43
- },
44
- };
45
-
46
- const render = (args: Args, context: StoryContext) => ({
47
- components: { TideButton, TideSheet },
48
- methods: {
49
- doSomething,
50
- doSomethingElse,
51
- handleBack: () => {
52
- action('Back button pressed')({});
53
-
54
- try {
55
- const callback = eval(args.handleBack);
56
-
57
- if (callback) {
58
- callback();
59
- }
60
- } catch {
61
- alert('Please specify a valid handler in the "back" control.');
62
- }
63
- },
64
- handleIsOpenChange: (value: boolean) => {
65
- context.updateArgs({ ...args, vModel: value });
66
- },
67
- },
68
- setup: () => {
69
- const isOpen = ref(args.vModel);
70
-
71
- watch(isOpen, () => {
72
- args.vModel = isOpen.value;
73
- });
74
-
75
- watch(
76
- () => args.vModel,
77
- (newValue) => {
78
- isOpen.value = newValue;
79
- }
80
- );
81
-
82
- return {
83
- args,
84
- isOpen,
85
- };
86
- },
87
- template: `
88
- <TideButton label="Open sheet" @click="handleIsOpenChange(true)" />
89
- <TideSheet v-bind="args" v-model="isOpen" @back="handleBack" @update:modelValue="handleIsOpenChange">
90
- ${args.default}
91
- </TideSheet>`,
92
- });
93
-
94
- export default {
95
- argTypes: {
96
- back: disabledArgType,
97
- close: disabledArgType,
98
- default: {
99
- control: 'text',
100
- description: 'Sheet content',
101
- table: {
102
- defaultValue: { summary: 'None' },
103
- type: { summary: 'HTML' },
104
- },
105
- },
106
- handleBack: {
107
- control: 'text',
108
- description: "JS function to execute when sheet's back button is pressed",
109
- name: 'back',
110
- table: {
111
- category: 'Events',
112
- defaultValue: { summary: 'None' },
113
- type: { summary: '() => void' },
114
- },
115
- },
116
- isBackButton: {
117
- ...argTypeBooleanUnrequired,
118
- table: {
119
- defaultValue: { summary: 'False' },
120
- },
121
- },
122
- isOpen: {
123
- description: 'Determines whether the Sheet is displayed',
124
- table: {
125
- defaultValue: { summary: 'False' },
126
- },
127
- },
128
- vModel: {
129
- control: 'boolean',
130
- description: 'Data binding to Vue ref',
131
- table: {
132
- category: 'Native',
133
- defaultValue: { summary: 'None' },
134
- type: { summary: 'Ref<boolean>' },
135
- },
136
- },
137
- },
138
- args: {
139
- default: `<div>${lineBreak}${tab}Default Slot Demo${lineBreak}</div>`,
140
- handleBack: 'doSomething',
141
- handleClose: 'doSomethingElse',
142
- isBackButton: undefined,
143
- vModel: false,
144
- },
145
- component: TideSheet,
146
- parameters,
147
- render,
148
- tags: ['autodocs'],
149
- title: 'Components/TideSheet',
150
- };
151
-
152
- export const Demo = {};
@@ -1,72 +0,0 @@
1
- import { ref, watch } from 'vue';
2
-
3
- import TideSwitch from '@/components/TideSwitch.vue';
4
- import { argTypeBooleanUnrequired, dataTrack, doSomething, parameters } from '@/utilities/storybook';
5
-
6
- import type { StoryContext } from '@storybook/vue3';
7
-
8
- type Args = InstanceType<typeof TideSwitch>['$props'] & {
9
- vModel: true;
10
- };
11
-
12
- const render = (args: Args, context: StoryContext) => ({
13
- components: { TideSwitch },
14
- methods: {
15
- doSomething,
16
- handleIsActiveChange: (value: boolean) => {
17
- context.updateArgs({ ...args, vModel: value });
18
- },
19
- },
20
- setup: () => {
21
- const isActive = ref(args.vModel);
22
-
23
- watch(isActive, () => {
24
- args.vModel = isActive.value;
25
- });
26
-
27
- watch(
28
- () => args.vModel,
29
- (newValue) => {
30
- isActive.value = newValue;
31
- }
32
- );
33
-
34
- return {
35
- args,
36
- isActive,
37
- };
38
- },
39
- template: `<TideSwitch v-bind="args" v-model="isActive" @update:modelValue="handleIsActiveChange" />`,
40
- });
41
-
42
- export default {
43
- argTypes: {
44
- dataTrack,
45
- disabled: argTypeBooleanUnrequired,
46
- isActive: {
47
- ...argTypeBooleanUnrequired,
48
- description: 'Determines whether toggle is active',
49
- },
50
- vModel: {
51
- control: 'boolean',
52
- description: 'Data binding to Vue ref',
53
- table: {
54
- category: 'Native',
55
- defaultValue: { summary: 'None' },
56
- type: { summary: 'Ref<boolean>' },
57
- },
58
- },
59
- },
60
- args: {
61
- dataTrack: '',
62
- disabled: undefined,
63
- vModel: false,
64
- },
65
- component: TideSwitch,
66
- parameters,
67
- render,
68
- tags: ['autodocs'],
69
- title: 'Components/TideSwitch',
70
- };
71
-
72
- export const Demo = {};
@@ -1,114 +0,0 @@
1
- import { action } from '@storybook/addon-actions';
2
- import { ref, watchEffect } from 'vue';
3
-
4
- import TideTabs from '@/components/TideTabs.vue';
5
- import { change, disabledArgType, doSomething, parameters } from '@/utilities/storybook';
6
-
7
- import type { Tab } from '@/types/Tab';
8
- import type { StoryContext } from '@storybook/vue3';
9
-
10
- type Args = InstanceType<typeof TideTabs>['$props'] & {
11
- handleChange: string;
12
- vModel: number;
13
- };
14
-
15
- const tabs: Tab[] = [
16
- {
17
- dataTrack: 'Tab 0 Click',
18
- label: 'First Tab',
19
- },
20
- {
21
- dataTrack: 'Tab 1 Click',
22
- label: 'Second Tab',
23
- },
24
- {
25
- dataTrack: 'Tab 2 Click',
26
- label: 'Third Tab',
27
- },
28
- {
29
- dataTrack: 'Tab 3 Click',
30
- label: 'Fourth Tab',
31
- },
32
- ];
33
-
34
- const render = (args: Args, context: StoryContext) => ({
35
- components: { TideTabs },
36
- methods: {
37
- doSomething,
38
- handleChange: (index: number) => {
39
- action('Current tab')(index);
40
- context.updateArgs({ ...args, vModel: index });
41
-
42
- try {
43
- const callback = eval(args.handleChange);
44
-
45
- if (callback) {
46
- callback();
47
- }
48
- } catch {
49
- alert('Please specify a valid handler in the "change" control.');
50
- }
51
- },
52
- },
53
- setup: () => {
54
- const currentTab = ref<number>(args.vModel);
55
-
56
- watchEffect(() => {
57
- currentTab.value = args.vModel;
58
- });
59
-
60
- return {
61
- args,
62
- currentTab,
63
- };
64
- },
65
- template: `<TideTabs @update:modelValue="handleChange" v-bind="args" v-model="currentTab" />`,
66
- });
67
-
68
- export default {
69
- argTypes: {
70
- change: disabledArgType,
71
- handleChange: {
72
- ...change,
73
- name: 'update:modelValue',
74
- table: {
75
- category: 'Events',
76
- defaultValue: { summary: 'None' },
77
- type: { summary: '(tabIndex: number) => void' },
78
- },
79
- },
80
- tabs: {
81
- control: 'object',
82
- isCustom: true,
83
- table: {
84
- defaultValue: { summary: 'None' },
85
- type: { summary: 'Tab[]' },
86
- },
87
- },
88
- vModel: {
89
- control: {
90
- type: 'select',
91
- },
92
- description: 'Data binding to Vue ref (active tab index)',
93
- isDynamic: true,
94
- options: Object.keys(tabs).map((index) => parseInt(index)),
95
- table: {
96
- category: 'Native',
97
- defaultValue: { summary: 'None' },
98
- type: { summary: 'Ref<number>' },
99
- },
100
- },
101
- },
102
- args: {
103
- handleChange: 'doSomething',
104
- tabs,
105
- vModel: 0,
106
- },
107
- component: TideTabs,
108
- parameters,
109
- render,
110
- tags: ['autodocs'],
111
- title: 'Components/TideTabs',
112
- };
113
-
114
- export const Demo = {};