tide-design-system 2.5.4 → 2.5.8
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.
- package/.storybook/main.ts +2 -0
- package/dist/{IconAccountBalance-B9rJ09ax.js → IconAccountBalance-dARjIrfY.js} +3 -3
- package/dist/{IconAcute-9dHrmblT.js → IconAcute-BWwq_P2g.js} +3 -3
- package/dist/{IconAdd-BsJiPHYa.js → IconAdd-DtInpvF3.js} +3 -3
- package/dist/{IconAiDescription-fQ_B1UGe.js → IconAiDescription-C-OGiP7T.js} +3 -3
- package/dist/{IconAlignSpaceEven-B2UIi1ao.js → IconAlignSpaceEven-CTm_RFZr.js} +3 -3
- package/dist/{IconApplePay-DS6fQdV_.js → IconApplePay-BEECKvxd.js} +3 -3
- package/dist/{IconArrowBack-CZSCZ-Jf.js → IconArrowBack-CJYjUSAT.js} +3 -3
- package/dist/{IconArrowCycle-D3f38VT-.js → IconArrowCycle-B-SIKRjr.js} +3 -3
- package/dist/{IconArrowForward-CICM-aJ1.js → IconArrowForward-CTC_pWUJ.js} +3 -3
- package/dist/{IconArrowRight-CwweSeyO.js → IconArrowRight-DVgboHar.js} +3 -3
- package/dist/{IconArrowUp-7TI0p224.js → IconArrowUp-8yer6-rz.js} +3 -3
- package/dist/{IconAssignment-DQQnmJc_.js → IconAssignment-CKdgR4IZ.js} +3 -3
- package/dist/{IconAttachMoney-sLj77NOR.js → IconAttachMoney-BOqK4Ty3.js} +3 -3
- package/dist/{IconAtvAtv-bfqGL_Iq.js → IconAtvAtv-CVxNZw3x.js} +3 -3
- package/dist/{IconAtvDuneBuggy-CbiyQRZg.js → IconAtvDuneBuggy-ChpKK_uj.js} +3 -3
- package/dist/{IconAtvGoKart-BxqcGKzS.js → IconAtvGoKart-BA3-opIb.js} +3 -3
- package/dist/{IconAtvGolfCart-6Xwju3k6.js → IconAtvGolfCart-DIQybI94.js} +3 -3
- package/dist/{IconAtvSandRail-dKmA3KoG.js → IconAtvSandRail-vMg9E1B1.js} +3 -3
- package/dist/{IconAtvSideBySide-CVSUrX7w.js → IconAtvSideBySide-DpAgficE.js} +3 -3
- package/dist/{IconAtvTrailer-BB6C_WKk.js → IconAtvTrailer-DmqyaW6g.js} +3 -3
- package/dist/{IconAutoRenew-Bl-Obhh6.js → IconAutoRenew-PKxzoFUm.js} +3 -3
- package/dist/{IconAwardStar-KYYsH2ss.js → IconAwardStar-C80c-wJ9.js} +3 -3
- package/dist/{IconBed-BVLiRAhU.js → IconBed-D8iyGBIR.js} +3 -3
- package/dist/{IconBoatmartPwc-B3seLCYC.js → IconBoatmartPwc-a1AOjs7L.js} +3 -3
- package/dist/{IconBoatmartTrailer-BosS4Ix8.js → IconBoatmartTrailer-CprxPgWU.js} +3 -3
- package/dist/{IconBolt-D-BSIXex.js → IconBolt-D7tpOZMC.js} +3 -3
- package/dist/{IconBookmark-D3Pu86n4.js → IconBookmark-ZpQyXxtb.js} +3 -3
- package/dist/{IconBunkhouse-B4PaVH2y.js → IconBunkhouse-rPtR_Mct.js} +3 -3
- package/dist/{IconCalendarMonth-CortoSy-.js → IconCalendarMonth-CKF3HJsX.js} +3 -3
- package/dist/{IconCall-DRysHKSn.js → IconCall-D6EvqV8k.js} +3 -3
- package/dist/{IconCallQuality-BMVs2M2s.js → IconCallQuality-FekMElKo.js} +3 -3
- package/dist/{IconCarRental-qvIsiGfR.js → IconCarRental-Cw5T4p4_.js} +3 -3
- package/dist/{IconCheck-CliQNN_D.js → IconCheck-Dmmvwu7-.js} +3 -3
- package/dist/{IconChevronLeft-hQC1St0W.js → IconChevronLeft-BF0qcV0B.js} +3 -3
- package/dist/{IconChevronRight-DVYcrzWE.js → IconChevronRight-CdE3lIbm.js} +3 -3
- package/dist/{IconClear-COYKsp8t.js → IconClear-YX6AUd3q.js} +3 -3
- package/dist/{IconClose-HSRbXCDE.js → IconClose-BKDRiJCn.js} +3 -3
- package/dist/{IconContract-BaV1mGEr.js → IconContract-7-9lX0ZL.js} +3 -3
- package/dist/{IconCrash-ClWQK2fw.js → IconCrash-Cz7QujvF.js} +3 -3
- package/dist/IconCycleMotorcycle-B8syyXoU.cjs +2 -0
- package/dist/IconCycleMotorcycle-DVRTUcId.js +21 -0
- package/dist/IconCycleTrailer-COTSVorR.cjs +2 -0
- package/dist/IconCycleTrailer-Cp2Ak9pX.js +20 -0
- package/dist/{IconDashboardCustomize-BJEcZ-jN.js → IconDashboardCustomize-g3VnCCx1.js} +3 -3
- package/dist/{IconDelete-DJwergoy.js → IconDelete-Dnyl1uzD.js} +3 -3
- package/dist/{IconDiamond-D34wtBhd.js → IconDiamond-sAYziqWh.js} +3 -3
- package/dist/{IconDirectionsBoat-ByiHuypy.js → IconDirectionsBoat-D0xl5It-.js} +3 -3
- package/dist/{IconDomain-CXsBLm5C.js → IconDomain-as7lGUZz.js} +3 -3
- package/dist/{IconDraft-qSYk5cPm.js → IconDraft-BTRj5LyI.js} +3 -3
- package/dist/{IconEdit-CFeDlBN2.js → IconEdit-Z8QjfAFi.js} +3 -3
- package/dist/{IconEngine-BLi3BThi.js → IconEngine-Nq1jLYrS.js} +3 -3
- package/dist/{IconEngineering-DKDW6b3b.js → IconEngineering-CDeCKiuN.js} +3 -3
- package/dist/{IconError-BsmS7Ido.js → IconError-CHkF1F4l.js} +3 -3
- package/dist/{IconExpandContent-CUz-acoJ.js → IconExpandContent-BKW1v-s1.js} +3 -3
- package/dist/{IconExpandLess-kI04ZTDg.js → IconExpandLess-DuwH_WmO.js} +3 -3
- package/dist/{IconExpandMore-BpIrNsXP.js → IconExpandMore-C-Fof15e.js} +3 -3
- package/dist/{IconFacebook-DiMWgcSK.js → IconFacebook-94UC5eci.js} +3 -3
- package/dist/{IconFavorite-CDLEUDWu.js → IconFavorite-Bi2ZLSFU.js} +3 -3
- package/dist/{IconFavoriteFilled--f1zeXKy.js → IconFavoriteFilled-BOzK3oQt.js} +3 -3
- package/dist/{IconFlag-CmppikB3.js → IconFlag-D3BdWSHX.js} +3 -3
- package/dist/{IconFormatBold-rtvyBotR.js → IconFormatBold-ptl4C5om.js} +3 -3
- package/dist/{IconFormatItalic-BlcS8gnO.js → IconFormatItalic-wjYo3E6V.js} +3 -3
- package/dist/{IconFormatListBulleted-BbJCNSJG.js → IconFormatListBulleted-Z4H5EHHL.js} +3 -3
- package/dist/{IconForum-CFa_3MsA.js → IconForum-dExYXhMs.js} +3 -3
- package/dist/{IconGas-rD46ubiw.js → IconGas-BeL_PidJ.js} +3 -3
- package/dist/{IconGavel-l3k6jtN3.js → IconGavel-b699C85e.js} +3 -3
- package/dist/{IconGears-CaXA9HK2.js → IconGears-DY0BIt9k.js} +3 -3
- package/dist/{IconGlobeLocationPin-cTdYm_5A.js → IconGlobeLocationPin-PPiJIaCW.js} +3 -3
- package/dist/{IconGoogle-6R7roJzd.js → IconGoogle-B1k1zKq5.js} +3 -3
- package/dist/{IconGooglePay-XLqJKvZe.js → IconGooglePay-CnoBw2gC.js} +3 -3
- package/dist/{IconGrid-BoplWzPb.js → IconGrid-DPAFjLOo.js} +3 -3
- package/dist/{IconHandshake-CsYF9kmp.js → IconHandshake-CF0rWfIQ.js} +3 -3
- package/dist/{IconHandyman-CQL-qu8p.js → IconHandyman-DqbZcABm.js} +3 -3
- package/dist/{IconHeight-CTAQLi2I.js → IconHeight-1sxFnuqb.js} +3 -3
- package/dist/{IconHelp-BEzzbWr3.js → IconHelp-BfxZeVdy.js} +3 -3
- package/dist/{IconInfo-BACpUpXu.js → IconInfo-ZZNZK4Fs.js} +3 -3
- package/dist/{IconInformation-CGYah4Eo.js → IconInformation-CQc0HSVc.js} +3 -3
- package/dist/{IconInsertText-C5HjwAuL.js → IconInsertText-dHM33CGA.js} +3 -3
- package/dist/{IconInstagram-DEPxn51x.js → IconInstagram-BbTbVTQe.js} +3 -3
- package/dist/{IconIosShare-jNePPJBV.js → IconIosShare-fe7iyZSt.js} +3 -3
- package/dist/{IconLayout-CgFL9FBD.js → IconLayout-BYkhBGPm.js} +3 -3
- package/dist/{IconLevellingJack-rO4KepKs.js → IconLevellingJack-CuuMfb9e.js} +3 -3
- package/dist/{IconLinkedIn-GWoK01li.js → IconLinkedIn-iC2pYpmX.js} +3 -3
- package/dist/{IconLocalShipping-Bayc9OL_.js → IconLocalShipping-sAYdRn-q.js} +3 -3
- package/dist/{IconLock-WfiVOWPI.js → IconLock-c8yaYnyT.js} +3 -3
- package/dist/{IconMail-ejl1H7D9.js → IconMail-D0yowPmX.js} +3 -3
- package/dist/{IconMenu-FlE3z6fX.js → IconMenu-Btzwi7Bu.js} +3 -3
- package/dist/{IconMoneyBag-CYq7aYjH.js → IconMoneyBag-BcZCfjrN.js} +3 -3
- package/dist/{IconMoreHoriz-B0mCtW1_.js → IconMoreHoriz-CYiGX78Y.js} +3 -3
- package/dist/{IconNotifications-Bm_gSQGu.js → IconNotifications-uBv1nZZ2.js} +3 -3
- package/dist/{IconOdometer-COcVC_eb.js → IconOdometer-DZASryD7.js} +3 -3
- package/dist/{IconOpenInNew-DFieFQIk.js → IconOpenInNew-VuTM8uiR.js} +3 -3
- package/dist/{IconPalette-DoDIzZJO.js → IconPalette-B78tp213.js} +3 -3
- package/dist/{IconPaypal-CX6Z2rvX.js → IconPaypal-z7u9aPLj.js} +3 -3
- package/dist/{IconPerson-CK0AXlS_.js → IconPerson-DWwdRmJX.js} +3 -3
- package/dist/{IconPersonSearch-Da5EdDrS.js → IconPersonSearch-4ESzm5yH.js} +3 -3
- package/dist/{IconPhotoCamera-DZHI-Yb7.js → IconPhotoCamera-Drkhsfpi.js} +3 -3
- package/dist/{IconPinterest-B3UM6t9-.js → IconPinterest-BhgYE6Fc.js} +3 -3
- package/dist/{IconPlayArrow-CR7bXHC8.js → IconPlayArrow-ztNUkoji.js} +3 -3
- package/dist/{IconPolicy-CzN-v54O.js → IconPolicy-DrcQUdvI.js} +3 -3
- package/dist/{IconPower-C5MJihEZ.js → IconPower-BISw4q1i.js} +3 -3
- package/dist/{IconPowerOff-BziDMScz.js → IconPowerOff-D94o_eIX.js} +3 -3
- package/dist/{IconPriorityHigh-Bv-j3DaQ.js → IconPriorityHigh-DzCnK1QW.js} +3 -3
- package/dist/{IconRemove-Bo4RUocr.js → IconRemove-gGo2PMeX.js} +3 -3
- package/dist/{IconRequestQuote-BUNyScQ-.js → IconRequestQuote-CWfytYvA.js} +3 -3
- package/dist/{IconResetWrench-DCcBmojh.js → IconResetWrench-B0tYLDcb.js} +3 -3
- package/dist/{IconRoad-BGTu-WPJ.js → IconRoad-m4Orr44c.js} +3 -3
- package/dist/{IconRoundedCorner-DycjfuJj.js → IconRoundedCorner-CqdpAVGU.js} +3 -3
- package/dist/{IconRuler-Da8zNDvf.js → IconRuler-C8SSjTfX.js} +3 -3
- package/dist/{IconRvClassA-D2-lug19.js → IconRvClassA-CFQOw02-.js} +3 -3
- package/dist/{IconRvClassB-Coe3FpBI.js → IconRvClassB-p-03DBol.js} +3 -3
- package/dist/{IconRvClassC-DWnLqMGg.js → IconRvClassC-BP5Zzlj_.js} +3 -3
- package/dist/{IconRvFifthWheel-CB_mQ-tO.js → IconRvFifthWheel-BMGxt3_M.js} +3 -3
- package/dist/{IconRvFishHouse-Cs2fm3r1.js → IconRvFishHouse-C7iNMr-3.js} +3 -3
- package/dist/{IconRvParkModel-D4S_iYTG.js → IconRvParkModel-l4Rx5P9F.js} +3 -3
- package/dist/{IconRvPopUpCamper-CW47dgll.js → IconRvPopUpCamper-BY6aLEic.js} +3 -3
- package/dist/{IconRvTravelTrailer-CC48bci7.js → IconRvTravelTrailer-FstodwFk.js} +3 -3
- package/dist/{IconRvTruckCamper-EoEVfaJM.js → IconRvTruckCamper-lLLE86pz.js} +3 -3
- package/dist/{IconSailing-CPcgnYwx.js → IconSailing-svTfDLn9.js} +3 -3
- package/dist/{IconSchool-3Dy70s11.js → IconSchool-CUB4fiMX.js} +3 -3
- package/dist/{IconSearch-C8WeOYws.js → IconSearch-QZW19aza.js} +3 -3
- package/dist/{IconSeating-D7B47LU4.js → IconSeating-B3MAIZkv.js} +3 -3
- package/dist/{IconSell-B95iGdOh.js → IconSell-CG2i7EOI.js} +3 -3
- package/dist/{IconSensors-Ckv6BEOK.js → IconSensors-BVBTJDAv.js} +3 -3
- package/dist/{IconSettings-CLrLZmQs.js → IconSettings-BGJv8ylA.js} +3 -3
- package/dist/{IconShare-CH2w2udo.js → IconShare-DLN_ze1T.js} +3 -3
- package/dist/{IconShieldCheck-BBHcsJhF.js → IconShieldCheck-DwGlL83P.js} +3 -3
- package/dist/{IconShoppingCart-_CKPKJ12.js → IconShoppingCart-BWcDIQ0t.js} +3 -3
- package/dist/{IconSleeps-CTzXW2RS.js → IconSleeps-Bl1OHp_d.js} +3 -3
- package/dist/{IconSms-C_jULP6X.js → IconSms-DXF4Rvv5.js} +3 -3
- package/dist/{IconSnowflake-DYpTwl2q.js → IconSnowflake-3DOCBRxO.js} +3 -3
- package/dist/{IconStar-CR0UA_S9.js → IconStar-y4w1Q_Ly.js} +3 -3
- package/dist/{IconStarFilled-DEnQm6s8.js → IconStarFilled-h3V6lcA1.js} +3 -3
- package/dist/{IconStarHalf-DZqwFVlC.js → IconStarHalf-CD3Otd__.js} +3 -3
- package/dist/{IconSummarize-BwU7xViX.js → IconSummarize-DQAFpTrk.js} +3 -3
- package/dist/{IconSwapHoriz-B7Nu99ui.js → IconSwapHoriz-C3usXzhR.js} +3 -3
- package/dist/{IconSwapVert-D83OnTLJ.js → IconSwapVert-CODa7if1.js} +3 -3
- package/dist/{IconThreeDRotation-WuabFIaS.js → IconThreeDRotation-Dt-qEsTU.js} +3 -3
- package/dist/{IconThumbUp-DwPs1Aog.js → IconThumbUp-2aoi8Hn6.js} +3 -3
- package/dist/{IconTrendingDown-CKqQl7o7.js → IconTrendingDown-Cc1jUDOB.js} +3 -3
- package/dist/{IconTrophy-DRcIPW-F.js → IconTrophy-CWU4189G.js} +3 -3
- package/dist/{IconTune-CXVj1kqb.js → IconTune-PtcGFHGO.js} +3 -3
- package/dist/{IconTwitter-B5AwI_-2.js → IconTwitter-Q7-VmjkP.js} +3 -3
- package/dist/{IconUmbrella-BWmv4GFi.js → IconUmbrella-B_1l6UAu.js} +3 -3
- package/dist/{IconVerified-BMRocsAd.js → IconVerified-BCiRYMzp.js} +3 -3
- package/dist/{IconVideocam-D5eUdBxR.js → IconVideocam-TZ4vpxTp.js} +3 -3
- package/dist/{IconViewInAr-CvR2gh_r.js → IconViewInAr-Dn4BjPYu.js} +3 -3
- package/dist/{IconVisibility-BlzyaCVD.js → IconVisibility-nxEIwt29.js} +3 -3
- package/dist/{IconVolumeOff-DB757krU.js → IconVolumeOff-D_ASm6Jk.js} +3 -3
- package/dist/{IconVolumeOn-CYf77UaC.js → IconVolumeOn-CTVNBoFQ.js} +3 -3
- package/dist/{IconWarehouse-DIRQdX8P.js → IconWarehouse-DP-BJpYG.js} +3 -3
- package/dist/{IconWarning-n_GTsWOM.js → IconWarning-DcYnbH1n.js} +3 -3
- package/dist/{IconWater-DFV09TyV.js → IconWater-Bh1ru5aW.js} +3 -3
- package/dist/{IconWeight-Cq12caT_.js → IconWeight-DfxHx8iL.js} +3 -3
- package/dist/{IconWidth-DtPjsKm8.js → IconWidth-E4u3XnEj.js} +3 -3
- package/dist/{IconWorkspacePremium-_Olggt_G.js → IconWorkspacePremium-Cn2NhzIu.js} +3 -3
- package/dist/{IconWrench-C2MHGxho.js → IconWrench-DHpCQriM.js} +3 -3
- package/dist/{IconYoutube-C8cHj1uF.js → IconYoutube-DHlDGTQp.js} +3 -3
- package/dist/css/reset.css +2 -2
- package/dist/css/utilities-base.css +66 -38
- package/dist/css/utilities-responsive.css +424 -312
- package/dist/css/variables.css +5 -0
- package/dist/logo-aero-CkTVffxb.js +17 -0
- package/dist/logo-aero-Z-V0eOLB.cjs +2 -0
- package/dist/logo-atv-BC9pKXBl.js +21 -0
- package/dist/logo-atv-xQMzut2h.cjs +2 -0
- package/dist/logo-boatmart-B9upxiMl.cjs +2 -0
- package/dist/logo-boatmart-DroAqtiq.js +16 -0
- package/dist/logo-cycle-c9schUUY.cjs +2 -0
- package/dist/logo-cycle-iWCyRwSL.js +21 -0
- package/dist/logo-equipment-3VYa6YcW.cjs +2 -0
- package/dist/logo-equipment-BoqO9oqu.js +17 -0
- package/dist/logo-pwc-BBFWrkvE.js +21 -0
- package/dist/logo-pwc-DhXtaTyu.cjs +2 -0
- package/dist/logo-rv-BRXxuciP.cjs +2 -0
- package/dist/logo-rv-DzHxIw2C.js +21 -0
- package/dist/logo-snow-Dzpaeho2.js +17 -0
- package/dist/logo-snow-PVobISvF.cjs +2 -0
- package/dist/logo-truck-DE0J4OIJ.cjs +2 -0
- package/dist/logo-truck-MUfLC0tr.js +21 -0
- package/dist/mark-aero-CFjGMjbx.cjs +2 -0
- package/dist/mark-aero-D8m3JDkS.js +23 -0
- package/dist/mark-atv-1Vppojls.js +19 -0
- package/dist/mark-atv-BhRn5mUA.cjs +2 -0
- package/dist/mark-boatmart-Bmkv3dOs.cjs +2 -0
- package/dist/mark-boatmart-b77RvD0c.js +16 -0
- package/dist/mark-cycle-BFxZOD4K.js +23 -0
- package/dist/mark-cycle-QCLSEZTF.cjs +2 -0
- package/dist/mark-equipment-BbnRZ0vl.js +19 -0
- package/dist/mark-equipment-ThuZOvf6.cjs +2 -0
- package/dist/mark-pwc-CQWDRntw.cjs +2 -0
- package/dist/mark-pwc-CQa98Z9S.js +21 -0
- package/dist/mark-rv-BtQWH4-a.cjs +2 -0
- package/dist/mark-rv-DY1wwuIO.js +21 -0
- package/dist/mark-snow-BEUxteW6.js +23 -0
- package/dist/mark-snow-Bek2T8IY.cjs +2 -0
- package/dist/mark-truck-BsOOC6Lx.cjs +2 -0
- package/dist/mark-truck-CUaX6FYM.js +19 -0
- package/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.d.ts +0 -2031
- package/dist/tide-design-system.esm.js +1607 -1348
- package/dist/utilities/realm.ts +17 -0
- package/dist/utilities/viewport.ts +2 -2
- package/docs/toast.md +61 -0
- package/index.ts +12 -1
- package/package.json +3 -3
- package/src/assets/css/reset.css +2 -2
- package/src/assets/css/utilities-base.css +66 -38
- package/src/assets/css/utilities-responsive.css +424 -312
- package/src/assets/css/variables.css +5 -0
- package/src/assets/svg/branding/logo/logo-aero.svg +9 -0
- package/src/assets/svg/branding/logo/logo-atv.svg +3 -0
- package/src/assets/svg/branding/logo/logo-boatmart.svg +18 -0
- package/src/assets/svg/branding/logo/logo-cycle.svg +3 -0
- package/src/assets/svg/branding/logo/logo-equipment.svg +11 -0
- package/src/assets/svg/branding/logo/logo-pwc.svg +3 -0
- package/src/assets/svg/branding/logo/logo-rv.svg +3 -0
- package/src/assets/svg/branding/logo/logo-snow.svg +12 -0
- package/src/assets/svg/branding/logo/logo-truck.svg +3 -0
- package/src/assets/svg/branding/mark/mark-aero.svg +4 -0
- package/src/assets/svg/branding/mark/mark-atv.svg +3 -0
- package/src/assets/svg/branding/mark/mark-boatmart.svg +17 -0
- package/src/assets/svg/branding/mark/mark-cycle.svg +4 -0
- package/src/assets/svg/branding/mark/mark-equipment.svg +3 -0
- package/src/assets/svg/branding/mark/mark-pwc.svg +3 -0
- package/src/assets/svg/branding/mark/mark-rv.svg +3 -0
- package/src/assets/svg/branding/mark/mark-snow.svg +4 -0
- package/src/assets/svg/branding/mark/mark-truck.svg +3 -0
- package/src/assets/svg/icons/realm/cycle/IconCycleMotorcycle.svg +4 -0
- package/src/assets/svg/icons/realm/cycle/IconCycleTrailer.svg +3 -0
- package/src/components/TideAccordionItem.vue +38 -4
- package/src/components/TideAlert.vue +3 -3
- package/src/components/TideButton.vue +36 -16
- package/src/components/TideButtonIcon.vue +26 -9
- package/src/components/TideChipAction.vue +23 -2
- package/src/components/TideIcon.vue +8 -6
- package/src/components/TideInputSelect.vue +107 -47
- package/src/components/TideModal.vue +14 -2
- package/src/components/TideRealmLogo.vue +71 -0
- package/src/components/TideSheet.vue +11 -2
- package/src/components/TideTabs.vue +4 -9
- package/src/components/TideToaster.vue +88 -0
- package/src/composables/useTideToaster.ts +63 -0
- package/src/stories/TideAccordionItem.stories.ts +4 -4
- package/src/stories/TideButton.stories.ts +9 -9
- package/src/stories/TideButtonIcon.stories.ts +9 -7
- package/src/stories/TideChipAction.stories.ts +10 -4
- package/src/stories/TideImageBackground.stories.ts +2 -1
- package/src/stories/TideInputSelect.stories.ts +18 -9
- package/src/stories/TideModal.stories.ts +0 -4
- package/src/stories/TideRealmLogo.stories.ts +25 -0
- package/src/stories/TideSheet.stories.ts +0 -1
- package/src/stories/TideToaster.stories.ts +117 -0
- package/src/types/Icon.ts +4 -0
- package/src/types/RealmLogo.ts +38 -0
- package/src/types/Styles.ts +2 -1
- package/src/types/Toast.ts +21 -0
- package/src/utilities/realm.ts +17 -0
- package/src/utilities/viewport.ts +2 -2
- package/tests/TideRealmLogo.spec.ts +58 -0
- package/tsconfig.json +18 -5
- package/tsconfig.node.json +7 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { REALM } from '@/types/Realm';
|
|
2
|
+
|
|
3
|
+
import type { Realm, RealmKey } from '@/types/Realm';
|
|
4
|
+
|
|
5
|
+
export const getRealmKeyFromRealm = (realm: Realm): RealmKey => {
|
|
6
|
+
const entries = Object.entries(REALM) as [RealmKey, Realm][];
|
|
7
|
+
|
|
8
|
+
const match = entries.find((entry): entry is [RealmKey, Realm] => {
|
|
9
|
+
return entry[1] === realm;
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
if (!match) {
|
|
13
|
+
throw new Error(`Mapping for ${realm} not found`);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return match[0];
|
|
17
|
+
};
|
|
@@ -34,8 +34,8 @@ export const setScrollLock = async (isLocked: boolean) => {
|
|
|
34
34
|
// body.classList.remove(BODY_LOCK_CLASS);
|
|
35
35
|
|
|
36
36
|
body.style.removeProperty('inset');
|
|
37
|
-
body.style.removeProperty('
|
|
38
|
-
body.style.removeProperty('
|
|
37
|
+
body.style.removeProperty('margin-top');
|
|
38
|
+
body.style.removeProperty('overflow-y');
|
|
39
39
|
body.style.removeProperty('position');
|
|
40
40
|
body.style.removeProperty('--saved-scroll-y');
|
|
41
41
|
|
package/docs/toast.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
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.
|
package/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import TideBreadCrumbs from '@/components/TideBreadCrumbs.vue';
|
|
|
7
7
|
import TideButton from '@/components/TideButton.vue';
|
|
8
8
|
import TideButtonIcon from '@/components/TideButtonIcon.vue';
|
|
9
9
|
import TideButtonPagination from '@/components/TideButtonPagination.vue';
|
|
10
|
+
import TideButtonSave from '@/components/TideButtonSave.vue';
|
|
10
11
|
import TideButtonSegmented from '@/components/TideButtonSegmented.vue';
|
|
11
12
|
import TideCard from '@/components/TideCard.vue';
|
|
12
13
|
import TideCarousel from '@/components/TideCarousel.vue';
|
|
@@ -36,12 +37,15 @@ import TideModal from '@/components/TideModal.vue';
|
|
|
36
37
|
import TidePagination from '@/components/TidePagination.vue';
|
|
37
38
|
import TidePopover from '@/components/TidePopover.vue';
|
|
38
39
|
import TideRating from '@/components/TideRating.vue';
|
|
40
|
+
import TideRealmLogo from '@/components/TideRealmLogo.vue';
|
|
39
41
|
import TideSeoLinks from '@/components/TideSeoLinks.vue';
|
|
40
42
|
import TideSheet from '@/components/TideSheet.vue';
|
|
41
43
|
import TideSwitch from '@/components/TideSwitch.vue';
|
|
42
44
|
import TideTabs from '@/components/TideTabs.vue';
|
|
45
|
+
import TideToaster from '@/components/TideToaster.vue';
|
|
43
46
|
import { provideTideConfig } from '@/composables/useTideConfig';
|
|
44
47
|
import { useTideForm } from '@/composables/useTideForm';
|
|
48
|
+
import { useTideToaster } from '@/composables/useTideToaster';
|
|
45
49
|
import { ALERT } from '@/types/Alert';
|
|
46
50
|
import { BADGE_COLOR, BADGE_COLOR_DETAILS, BADGE_TRUSTED } from '@/types/Badge';
|
|
47
51
|
import { BREAKPOINT, MEDIA } from '@/types/Breakpoint';
|
|
@@ -53,6 +57,7 @@ import { OBJECT_FIT } from '@/types/Image';
|
|
|
53
57
|
import { ORIENTATION } from '@/types/Orientation';
|
|
54
58
|
import { PRIORITY } from '@/types/Priority';
|
|
55
59
|
import { REALM } from '@/types/Realm';
|
|
60
|
+
import { SIZE_LOGO } from '@/types/RealmLogo';
|
|
56
61
|
import { SIZE, SIZE_BUTTON } from '@/types/Size';
|
|
57
62
|
import { CSS } from '@/types/Styles';
|
|
58
63
|
import { TARGET } from '@/types/Target';
|
|
@@ -74,6 +79,7 @@ import type { Link } from '@/types/Link';
|
|
|
74
79
|
import type { Orientation } from '@/types/Orientation';
|
|
75
80
|
import type { Priority } from '@/types/Priority';
|
|
76
81
|
import type { Realm } from '@/types/Realm';
|
|
82
|
+
import type { SizeLogo } from '@/types/RealmLogo';
|
|
77
83
|
import type { SelectOption, SelectOptionGroup } from '@/types/Select';
|
|
78
84
|
import type { Size, SizeButton } from '@/types/Size';
|
|
79
85
|
import type { Source } from '@/types/Source';
|
|
@@ -115,6 +121,7 @@ export type {
|
|
|
115
121
|
ValidationLength,
|
|
116
122
|
ValidationResult,
|
|
117
123
|
Validator,
|
|
124
|
+
SizeLogo,
|
|
118
125
|
};
|
|
119
126
|
|
|
120
127
|
export {
|
|
@@ -138,13 +145,14 @@ export {
|
|
|
138
145
|
REALM,
|
|
139
146
|
SIZE,
|
|
140
147
|
SIZE_BUTTON,
|
|
148
|
+
SIZE_LOGO,
|
|
141
149
|
TARGET,
|
|
142
150
|
TEXT_INPUT_TYPE,
|
|
143
151
|
TYPE_CARD,
|
|
144
152
|
VALIDATOR,
|
|
145
153
|
};
|
|
146
154
|
|
|
147
|
-
export { useTideForm, provideTideConfig };
|
|
155
|
+
export { useTideForm, provideTideConfig, useTideToaster };
|
|
148
156
|
|
|
149
157
|
export {
|
|
150
158
|
TideAccordionItem,
|
|
@@ -156,6 +164,7 @@ export {
|
|
|
156
164
|
TideButton,
|
|
157
165
|
TideButtonIcon,
|
|
158
166
|
TideButtonPagination,
|
|
167
|
+
TideButtonSave,
|
|
159
168
|
TideButtonSegmented,
|
|
160
169
|
TideCard,
|
|
161
170
|
TideCarousel,
|
|
@@ -185,8 +194,10 @@ export {
|
|
|
185
194
|
TidePagination,
|
|
186
195
|
TidePopover,
|
|
187
196
|
TideRating,
|
|
197
|
+
TideRealmLogo,
|
|
188
198
|
TideSeoLinks,
|
|
189
199
|
TideSheet,
|
|
190
200
|
TideSwitch,
|
|
191
201
|
TideTabs,
|
|
202
|
+
TideToaster,
|
|
192
203
|
};
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@storybook/vue3": "^8.0.9",
|
|
11
11
|
"@storybook/vue3-vite": "^8.0.9",
|
|
12
12
|
"@tsconfig/node18": "^2.0.1",
|
|
13
|
-
"@types/node": "^18.
|
|
13
|
+
"@types/node": "^18.19.130",
|
|
14
14
|
"@vitejs/plugin-vue": "^4.0.0",
|
|
15
15
|
"@vitest/coverage-c8": "^0.32.0",
|
|
16
16
|
"@vue/eslint-config-airbnb-with-typescript": "^7.0.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"vite-svg-loader": "^5.1.0",
|
|
35
35
|
"vitest": "^0.31.0",
|
|
36
36
|
"vue": "^3.5.22",
|
|
37
|
-
"vue-tsc": "^
|
|
37
|
+
"vue-tsc": "^3.2.5"
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://tide-design-system.netlify.app",
|
|
40
40
|
"license": "MIT",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"main": "dist/tide-design-system.cjs",
|
|
64
64
|
"module": "dist/tide-design-system.esm.js",
|
|
65
65
|
"types": "dist/tide-design-system.esm.d.ts",
|
|
66
|
-
"version": "2.5.
|
|
66
|
+
"version": "2.5.8",
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@floating-ui/vue": "^1.1.6"
|
|
69
69
|
}
|
package/src/assets/css/reset.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
body {
|
|
6
6
|
color: var(--tide-on-surface);
|
|
7
7
|
font-size: var(--tide-font-16);
|
|
8
|
-
font-weight:
|
|
8
|
+
font-weight: var(--tide-font-regular);
|
|
9
9
|
line-height: 1.4;
|
|
10
10
|
text-wrap: pretty;
|
|
11
11
|
}
|
|
@@ -48,7 +48,7 @@ h3,
|
|
|
48
48
|
h4,
|
|
49
49
|
h5,
|
|
50
50
|
h6 {
|
|
51
|
-
font-weight:
|
|
51
|
+
font-weight: var(--tide-font-semibold);
|
|
52
52
|
text-wrap: balance;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -246,6 +246,10 @@
|
|
|
246
246
|
.tide-width-auto {width: auto;}
|
|
247
247
|
.tide-width-0 {width: 0;}
|
|
248
248
|
.tide-width-full {width: 100%;}
|
|
249
|
+
.tide-width-stretch {
|
|
250
|
+
width: -webkit-fill-available;
|
|
251
|
+
width: stretch;
|
|
252
|
+
}
|
|
249
253
|
|
|
250
254
|
.tide-height-auto {height: auto;}
|
|
251
255
|
.tide-height-0 {height: 0;}
|
|
@@ -294,24 +298,24 @@
|
|
|
294
298
|
.tide-transparent-400 {background-color: var(--tide-transparent-400);}
|
|
295
299
|
|
|
296
300
|
/* Typographic roles */
|
|
297
|
-
.tide-typography-display-1 {font-size: var(--tide-font-32); font-weight:
|
|
298
|
-
.tide-typography-headline-1 {font-size: var(--tide-font-24); font-weight:
|
|
299
|
-
.tide-typography-headline-2 {font-size: var(--tide-font-20); font-weight:
|
|
300
|
-
.tide-typography-headline-3 {font-size: var(--tide-font-16); font-weight:
|
|
301
|
-
.tide-typography-title-1 {font-size: var(--tide-font-20); font-weight:
|
|
302
|
-
.tide-typography-title-2 {font-size: var(--tide-font-18); font-weight:
|
|
303
|
-
.tide-typography-body-1 {font-size: var(--tide-font-16); font-weight:
|
|
304
|
-
.tide-typography-body-2 {font-size: var(--tide-font-14); font-weight:
|
|
305
|
-
.tide-typography-label-1 {font-size: var(--tide-font-16); font-weight:
|
|
306
|
-
.tide-typography-label-1-semibold {font-size: var(--tide-font-16); font-weight:
|
|
307
|
-
.tide-typography-label-2 {font-size: var(--tide-font-14); font-weight:
|
|
308
|
-
.tide-typography-label-2-semibold {font-size: var(--tide-font-14); font-weight:
|
|
309
|
-
.tide-typography-label-3 {font-size: var(--tide-font-12); font-weight:
|
|
310
|
-
.tide-typography-link-1 {font-size: var(--tide-font-16); font-weight:
|
|
311
|
-
.tide-typography-link-2 {font-size: var(--tide-font-14); font-weight:
|
|
312
|
-
.tide-typography-link-3 {font-size: var(--tide-font-12); font-weight:
|
|
313
|
-
.tide-typography-button-1 {font-size: var(--tide-font-16); font-weight:
|
|
314
|
-
.tide-typography-button-2 {font-size: var(--tide-font-14); font-weight:
|
|
301
|
+
.tide-typography-display-1 {font-size: var(--tide-font-32); font-weight: var(--tide-font-semibold); text-wrap: balance;}
|
|
302
|
+
.tide-typography-headline-1 {font-size: var(--tide-font-24); font-weight: var(--tide-font-semibold); text-wrap: balance;}
|
|
303
|
+
.tide-typography-headline-2 {font-size: var(--tide-font-20); font-weight: var(--tide-font-semibold); text-wrap: balance;}
|
|
304
|
+
.tide-typography-headline-3 {font-size: var(--tide-font-16); font-weight: var(--tide-font-semibold); text-wrap: balance;}
|
|
305
|
+
.tide-typography-title-1 {font-size: var(--tide-font-20); font-weight: var(--tide-font-semibold); text-wrap: balance;}
|
|
306
|
+
.tide-typography-title-2 {font-size: var(--tide-font-18); font-weight: var(--tide-font-semibold); text-wrap: balance;}
|
|
307
|
+
.tide-typography-body-1 {font-size: var(--tide-font-16); font-weight: var(--tide-font-regular);}
|
|
308
|
+
.tide-typography-body-2 {font-size: var(--tide-font-14); font-weight: var(--tide-font-regular);}
|
|
309
|
+
.tide-typography-label-1 {font-size: var(--tide-font-16); font-weight: var(--tide-font-medium);}
|
|
310
|
+
.tide-typography-label-1-semibold {font-size: var(--tide-font-16); font-weight: var(--tide-font-semibold);}
|
|
311
|
+
.tide-typography-label-2 {font-size: var(--tide-font-14); font-weight: var(--tide-font-medium);}
|
|
312
|
+
.tide-typography-label-2-semibold {font-size: var(--tide-font-14); font-weight: var(--tide-font-semibold);}
|
|
313
|
+
.tide-typography-label-3 {font-size: var(--tide-font-12); font-weight: var(--tide-font-medium);}
|
|
314
|
+
.tide-typography-link-1 {font-size: var(--tide-font-16); font-weight: var(--tide-font-medium);}
|
|
315
|
+
.tide-typography-link-2 {font-size: var(--tide-font-14); font-weight: var(--tide-font-medium);}
|
|
316
|
+
.tide-typography-link-3 {font-size: var(--tide-font-12); font-weight: var(--tide-font-medium);}
|
|
317
|
+
.tide-typography-button-1 {font-size: var(--tide-font-16); font-weight: var(--tide-font-semibold);}
|
|
318
|
+
.tide-typography-button-2 {font-size: var(--tide-font-14); font-weight: var(--tide-font-semibold);}
|
|
315
319
|
|
|
316
320
|
/* Font Color */
|
|
317
321
|
.tide-font-on-primary {color: var(--tide-on-primary);}
|
|
@@ -359,9 +363,9 @@
|
|
|
359
363
|
.tide-font-32 {font-size: var(--tide-font-32);}
|
|
360
364
|
|
|
361
365
|
/* Font Weight */
|
|
362
|
-
.tide-font-400 {font-weight:
|
|
363
|
-
.tide-font-500 {font-weight:
|
|
364
|
-
.tide-font-600 {font-weight:
|
|
366
|
+
.tide-font-400 {font-weight: var(--tide-font-regular);}
|
|
367
|
+
.tide-font-500 {font-weight: var(--tide-font-medium);}
|
|
368
|
+
.tide-font-600 {font-weight: var(--tide-font-semibold);}
|
|
365
369
|
.tide-font-700 {font-weight: 700;}
|
|
366
370
|
|
|
367
371
|
/* Misc */
|
|
@@ -477,62 +481,86 @@
|
|
|
477
481
|
|
|
478
482
|
/* Buttons */
|
|
479
483
|
/* Rest State */
|
|
484
|
+
.tide-button-primary,
|
|
485
|
+
.tide-button-secondary,
|
|
486
|
+
.tide-button-tertiary,
|
|
487
|
+
.tide-button-quaternary,
|
|
488
|
+
.tide-button-floating {
|
|
489
|
+
border: var(--tide-border-width-2) solid;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.tide-button-primary,
|
|
493
|
+
.tide-button-secondary,
|
|
494
|
+
.tide-button-tertiary,
|
|
495
|
+
.tide-button-quaternary {
|
|
496
|
+
box-shadow: none;
|
|
497
|
+
}
|
|
498
|
+
|
|
480
499
|
.tide-button-primary {
|
|
481
|
-
background: var(--tide-primary);
|
|
482
|
-
border:
|
|
500
|
+
background-color: var(--tide-primary);
|
|
501
|
+
border-color: var(--tide-primary);
|
|
483
502
|
color: var(--tide-on-primary);
|
|
484
503
|
}
|
|
485
504
|
|
|
486
505
|
.tide-button-secondary {
|
|
487
|
-
background: var(--tide-
|
|
488
|
-
border:
|
|
489
|
-
color: var(--tide-
|
|
506
|
+
background-color: var(--tide-secondary);
|
|
507
|
+
border-color: var(--tide-secondary);
|
|
508
|
+
color: var(--tide-on-secondary);
|
|
490
509
|
}
|
|
491
510
|
|
|
492
511
|
.tide-button-tertiary {
|
|
493
|
-
background: var(--tide-
|
|
494
|
-
border:
|
|
512
|
+
background-color: var(--tide-surface-variant);
|
|
513
|
+
border-color: var(--tide-surface-variant);
|
|
495
514
|
color: var(--tide-secondary);
|
|
496
515
|
}
|
|
497
516
|
|
|
498
517
|
.tide-button-quaternary {
|
|
499
|
-
background: var(--tide-
|
|
518
|
+
background-color: var(--tide-surface);
|
|
519
|
+
border-color: var(--tide-surface);
|
|
500
520
|
color: var(--tide-secondary);
|
|
501
521
|
}
|
|
502
522
|
|
|
503
523
|
.tide-button-floating {
|
|
504
|
-
background-color: var(--tide-
|
|
505
|
-
color: var(--tide-
|
|
524
|
+
background-color: var(--tide-surface);
|
|
525
|
+
border-color: var(--tide-surface);
|
|
506
526
|
box-shadow: var(--tide-shadow-bottom);
|
|
527
|
+
color: var(--tide-secondary);
|
|
507
528
|
}
|
|
508
529
|
|
|
509
530
|
/* Hover State */
|
|
510
531
|
a.tide-button-primary:hover,
|
|
511
532
|
button.tide-button-primary:enabled:hover {
|
|
512
|
-
|
|
513
|
-
|
|
533
|
+
background-color: var(--tide-surface);
|
|
534
|
+
border-color: var(--tide-primary);
|
|
514
535
|
color: var(--tide-primary);
|
|
515
536
|
}
|
|
516
537
|
|
|
517
538
|
a.tide-button-secondary:hover,
|
|
518
539
|
button.tide-button-secondary:enabled:hover {
|
|
519
|
-
background: var(--tide-
|
|
520
|
-
color: var(--tide-
|
|
540
|
+
background-color: var(--tide-surface);
|
|
541
|
+
border-color: var(--tide-secondary);
|
|
542
|
+
color: var(--tide-on-surface);
|
|
521
543
|
}
|
|
522
544
|
|
|
523
545
|
a.tide-button-tertiary:hover,
|
|
524
546
|
button.tide-button-tertiary:enabled:hover {
|
|
525
|
-
|
|
547
|
+
background-color: var(--tide-surface-variant);
|
|
548
|
+
border-color: var(--tide-border);
|
|
549
|
+
color: var(--tide-secondary);
|
|
526
550
|
}
|
|
527
551
|
|
|
528
552
|
a.tide-button-quaternary:hover,
|
|
529
553
|
button.tide-button-quaternary:enabled:hover {
|
|
530
|
-
background: var(--tide-surface-variant);
|
|
554
|
+
background-color: var(--tide-surface-variant);
|
|
555
|
+
border-color: var(--tide-surface-variant);
|
|
556
|
+
color: var(--tide-secondary);
|
|
531
557
|
}
|
|
532
558
|
|
|
533
559
|
.tide-button-floating:hover,
|
|
534
560
|
button.tide-button-floating:enabled:hover {
|
|
535
|
-
background-color: var(--tide-
|
|
561
|
+
background-color: var(--tide-surface);
|
|
562
|
+
border-color: var(--tide-surface);
|
|
563
|
+
color: var(--tide-secondary);
|
|
536
564
|
}
|
|
537
565
|
|
|
538
566
|
/* Disabled State */
|