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.
- package/dist/tide-design-system.d.ts +2742 -0
- package/dist/tide-design-system.js +2 -2
- package/package.json +13 -2
- package/.eslintrc.cjs +0 -119
- package/.github/workflows/publish-release.yml +0 -38
- package/.storybook/main.ts +0 -70
- package/.storybook/preview.ts +0 -256
- package/docs/assets/full-bleed.gif +0 -0
- package/docs/assets/layout-grid-default.webp +0 -0
- package/docs/assets/layout-grid-fluid.webp +0 -0
- package/docs/assets/layout-grid.webp +0 -0
- package/docs/assets/native-input-validation.png +0 -0
- package/docs/configuation.md +0 -47
- package/docs/development.md +0 -163
- package/docs/figma.md +0 -43
- package/docs/forms.md +0 -484
- package/docs/grid-layout.md +0 -83
- package/docs/images.md +0 -50
- package/docs/integration-full.md +0 -84
- package/docs/integration-partial.md +0 -39
- package/docs/migration.md +0 -74
- package/docs/storybook.md +0 -44
- package/docs/style-guide.md +0 -22
- package/docs/toast.md +0 -61
- package/docs/token-cheatsheet.md +0 -63
- package/docs/upgrading.md +0 -188
- package/docs/workflows.md +0 -20
- package/index.html +0 -14
- package/index.ts +0 -201
- package/netlify.toml +0 -3
- package/src/assets/css/fonts.css +0 -36
- package/src/assets/css/grid-layout.css +0 -34
- package/src/assets/css/main.css +0 -5
- package/src/assets/css/realm/aero.css +0 -25
- package/src/assets/css/realm/atv.css +0 -25
- package/src/assets/css/realm/boatmart.css +0 -25
- package/src/assets/css/realm/cycle.css +0 -24
- package/src/assets/css/realm/equipment.css +0 -25
- package/src/assets/css/realm/pwc.css +0 -25
- package/src/assets/css/realm/rv.css +0 -25
- package/src/assets/css/realm/snow.css +0 -25
- package/src/assets/css/realm/truck.css +0 -25
- package/src/assets/css/reset.css +0 -99
- package/src/assets/css/storybook.css +0 -18
- package/src/assets/css/utilities-base.css +0 -574
- package/src/assets/css/utilities-responsive.css +0 -2307
- package/src/assets/css/utilities.css +0 -16
- package/src/assets/css/variables.css +0 -223
- package/src/assets/svg/branding/logo/logo-aero.svg +0 -4
- package/src/assets/svg/branding/logo/logo-atv.svg +0 -6
- package/src/assets/svg/branding/logo/logo-boatmart.svg +0 -4
- package/src/assets/svg/branding/logo/logo-cycle.svg +0 -4
- package/src/assets/svg/branding/logo/logo-equipment.svg +0 -4
- package/src/assets/svg/branding/logo/logo-pwc.svg +0 -4
- package/src/assets/svg/branding/logo/logo-rv.svg +0 -6
- package/src/assets/svg/branding/logo/logo-snow.svg +0 -4
- package/src/assets/svg/branding/logo/logo-truck.svg +0 -5
- package/src/assets/svg/branding/mark/mark-aero.svg +0 -3
- package/src/assets/svg/branding/mark/mark-atv.svg +0 -4
- package/src/assets/svg/branding/mark/mark-boatmart.svg +0 -3
- package/src/assets/svg/branding/mark/mark-cycle.svg +0 -3
- package/src/assets/svg/branding/mark/mark-equipment.svg +0 -3
- package/src/assets/svg/branding/mark/mark-pwc.svg +0 -3
- package/src/assets/svg/branding/mark/mark-rv.svg +0 -4
- package/src/assets/svg/branding/mark/mark-snow.svg +0 -3
- package/src/assets/svg/branding/mark/mark-truck.svg +0 -4
- package/src/assets/svg/icons/IconAccountBalance.svg +0 -5
- package/src/assets/svg/icons/IconAcute.svg +0 -3
- package/src/assets/svg/icons/IconAdd.svg +0 -3
- package/src/assets/svg/icons/IconAiDescription.svg +0 -7
- package/src/assets/svg/icons/IconAlignSpaceEven.svg +0 -3
- package/src/assets/svg/icons/IconApplePay.svg +0 -5
- package/src/assets/svg/icons/IconArrowBack.svg +0 -3
- package/src/assets/svg/icons/IconArrowCycle.svg +0 -5
- package/src/assets/svg/icons/IconArrowForward.svg +0 -3
- package/src/assets/svg/icons/IconArrowRight.svg +0 -3
- package/src/assets/svg/icons/IconArrowUp.svg +0 -3
- package/src/assets/svg/icons/IconAssignment.svg +0 -3
- package/src/assets/svg/icons/IconAttachMoney.svg +0 -4
- package/src/assets/svg/icons/IconAutoRenew.svg +0 -3
- package/src/assets/svg/icons/IconAwardStar.svg +0 -5
- package/src/assets/svg/icons/IconBed.svg +0 -3
- package/src/assets/svg/icons/IconBolt.svg +0 -3
- package/src/assets/svg/icons/IconBookmark.svg +0 -5
- package/src/assets/svg/icons/IconBunkhouse.svg +0 -3
- package/src/assets/svg/icons/IconCalculate.svg +0 -3
- package/src/assets/svg/icons/IconCalendarMonth.svg +0 -5
- package/src/assets/svg/icons/IconCall.svg +0 -5
- package/src/assets/svg/icons/IconCallQuality.svg +0 -3
- package/src/assets/svg/icons/IconCarRental.svg +0 -3
- package/src/assets/svg/icons/IconCheck.svg +0 -3
- package/src/assets/svg/icons/IconChevronLeft.svg +0 -3
- package/src/assets/svg/icons/IconChevronRight.svg +0 -3
- package/src/assets/svg/icons/IconClear.svg +0 -3
- package/src/assets/svg/icons/IconClose.svg +0 -3
- package/src/assets/svg/icons/IconContract.svg +0 -3
- package/src/assets/svg/icons/IconCrash.svg +0 -3
- package/src/assets/svg/icons/IconDashboardCustomize.svg +0 -3
- package/src/assets/svg/icons/IconDelete.svg +0 -5
- package/src/assets/svg/icons/IconDiamond.svg +0 -5
- package/src/assets/svg/icons/IconDirectionsBoat.svg +0 -3
- package/src/assets/svg/icons/IconDomain.svg +0 -3
- package/src/assets/svg/icons/IconDraft.svg +0 -3
- package/src/assets/svg/icons/IconEdit.svg +0 -5
- package/src/assets/svg/icons/IconEngine.svg +0 -3
- package/src/assets/svg/icons/IconEngineering.svg +0 -3
- package/src/assets/svg/icons/IconError.svg +0 -5
- package/src/assets/svg/icons/IconExpandContent.svg +0 -3
- package/src/assets/svg/icons/IconExpandLess.svg +0 -3
- package/src/assets/svg/icons/IconExpandMore.svg +0 -3
- package/src/assets/svg/icons/IconFacebook.svg +0 -3
- package/src/assets/svg/icons/IconFavorite.svg +0 -5
- package/src/assets/svg/icons/IconFavoriteFilled.svg +0 -5
- package/src/assets/svg/icons/IconFlag.svg +0 -3
- package/src/assets/svg/icons/IconFormatBold.svg +0 -5
- package/src/assets/svg/icons/IconFormatItalic.svg +0 -3
- package/src/assets/svg/icons/IconFormatListBulleted.svg +0 -5
- package/src/assets/svg/icons/IconForum.svg +0 -5
- package/src/assets/svg/icons/IconGas.svg +0 -3
- package/src/assets/svg/icons/IconGavel.svg +0 -5
- package/src/assets/svg/icons/IconGears.svg +0 -3
- package/src/assets/svg/icons/IconGlobeLocationPin.svg +0 -3
- package/src/assets/svg/icons/IconGoogle.svg +0 -18
- package/src/assets/svg/icons/IconGooglePay.svg +0 -5
- package/src/assets/svg/icons/IconGrid.svg +0 -3
- package/src/assets/svg/icons/IconHandshake.svg +0 -3
- package/src/assets/svg/icons/IconHandyman.svg +0 -3
- package/src/assets/svg/icons/IconHeight.svg +0 -3
- package/src/assets/svg/icons/IconHelp.svg +0 -5
- package/src/assets/svg/icons/IconInfo.svg +0 -5
- package/src/assets/svg/icons/IconInformation.svg +0 -3
- package/src/assets/svg/icons/IconInsertText.svg +0 -5
- package/src/assets/svg/icons/IconInstagram.svg +0 -3
- package/src/assets/svg/icons/IconIosShare.svg +0 -5
- package/src/assets/svg/icons/IconLayout.svg +0 -3
- package/src/assets/svg/icons/IconLevellingJack.svg +0 -3
- package/src/assets/svg/icons/IconLinkedIn.svg +0 -3
- package/src/assets/svg/icons/IconLocalShipping.svg +0 -5
- package/src/assets/svg/icons/IconLock.svg +0 -5
- package/src/assets/svg/icons/IconMail.svg +0 -5
- package/src/assets/svg/icons/IconMenu.svg +0 -3
- package/src/assets/svg/icons/IconMoneyBag.svg +0 -3
- package/src/assets/svg/icons/IconMoreHoriz.svg +0 -5
- package/src/assets/svg/icons/IconMove.svg +0 -3
- package/src/assets/svg/icons/IconNotifications.svg +0 -5
- package/src/assets/svg/icons/IconOdometer.svg +0 -3
- package/src/assets/svg/icons/IconOpenInNew.svg +0 -5
- package/src/assets/svg/icons/IconPalette.svg +0 -5
- package/src/assets/svg/icons/IconPaypal.svg +0 -5
- package/src/assets/svg/icons/IconPerson.svg +0 -5
- package/src/assets/svg/icons/IconPersonSearch.svg +0 -3
- package/src/assets/svg/icons/IconPhotoCamera.svg +0 -5
- package/src/assets/svg/icons/IconPinterest.svg +0 -5
- package/src/assets/svg/icons/IconPlayArrow.svg +0 -3
- package/src/assets/svg/icons/IconPolicy.svg +0 -3
- package/src/assets/svg/icons/IconPower.svg +0 -3
- package/src/assets/svg/icons/IconPowerOff.svg +0 -3
- package/src/assets/svg/icons/IconPriorityHigh.svg +0 -3
- package/src/assets/svg/icons/IconRemove.svg +0 -3
- package/src/assets/svg/icons/IconRequestQuote.svg +0 -3
- package/src/assets/svg/icons/IconResetWrench.svg +0 -3
- package/src/assets/svg/icons/IconRoad.svg +0 -3
- package/src/assets/svg/icons/IconRoundedCorner.svg +0 -5
- package/src/assets/svg/icons/IconRuler.svg +0 -3
- package/src/assets/svg/icons/IconSailing.svg +0 -3
- package/src/assets/svg/icons/IconSchool.svg +0 -3
- package/src/assets/svg/icons/IconSearch.svg +0 -5
- package/src/assets/svg/icons/IconSeating.svg +0 -3
- package/src/assets/svg/icons/IconSell.svg +0 -5
- package/src/assets/svg/icons/IconSensors.svg +0 -3
- package/src/assets/svg/icons/IconSettings.svg +0 -3
- package/src/assets/svg/icons/IconShare.svg +0 -5
- package/src/assets/svg/icons/IconShieldCheck.svg +0 -3
- package/src/assets/svg/icons/IconShoppingCart.svg +0 -5
- package/src/assets/svg/icons/IconSleeps.svg +0 -3
- package/src/assets/svg/icons/IconSms.svg +0 -5
- package/src/assets/svg/icons/IconSnowflake.svg +0 -3
- package/src/assets/svg/icons/IconStar.svg +0 -5
- package/src/assets/svg/icons/IconStarFilled.svg +0 -3
- package/src/assets/svg/icons/IconStarHalf.svg +0 -3
- package/src/assets/svg/icons/IconSummarize.svg +0 -3
- package/src/assets/svg/icons/IconSwapHoriz.svg +0 -3
- package/src/assets/svg/icons/IconSwapVert.svg +0 -5
- package/src/assets/svg/icons/IconThreeDRotation.svg +0 -18
- package/src/assets/svg/icons/IconThumbUp.svg +0 -3
- package/src/assets/svg/icons/IconTrendingDown.svg +0 -5
- package/src/assets/svg/icons/IconTrophy.svg +0 -5
- package/src/assets/svg/icons/IconTune.svg +0 -5
- package/src/assets/svg/icons/IconTwitter.svg +0 -5
- package/src/assets/svg/icons/IconUmbrella.svg +0 -3
- package/src/assets/svg/icons/IconVerified.svg +0 -4
- package/src/assets/svg/icons/IconVideocam.svg +0 -5
- package/src/assets/svg/icons/IconViewInAr.svg +0 -5
- package/src/assets/svg/icons/IconVisibility.svg +0 -5
- package/src/assets/svg/icons/IconVolumeOff.svg +0 -5
- package/src/assets/svg/icons/IconVolumeOn.svg +0 -5
- package/src/assets/svg/icons/IconWarehouse.svg +0 -3
- package/src/assets/svg/icons/IconWarning.svg +0 -5
- package/src/assets/svg/icons/IconWater.svg +0 -3
- package/src/assets/svg/icons/IconWeight.svg +0 -3
- package/src/assets/svg/icons/IconWidth.svg +0 -3
- package/src/assets/svg/icons/IconWorkspacePremium.svg +0 -3
- package/src/assets/svg/icons/IconWrench.svg +0 -3
- package/src/assets/svg/icons/IconYoutube.svg +0 -5
- package/src/assets/svg/icons/realm/aero/IconAeroFlight.svg +0 -3
- package/src/assets/svg/icons/realm/aero/IconAeroHelicopter.svg +0 -3
- package/src/assets/svg/icons/realm/aero/IconAeroModeFan.svg +0 -3
- package/src/assets/svg/icons/realm/aero/IconAeroPlaneContrails.svg +0 -3
- package/src/assets/svg/icons/realm/atv/IconAtvAtv.svg +0 -3
- package/src/assets/svg/icons/realm/atv/IconAtvDuneBuggy.svg +0 -3
- package/src/assets/svg/icons/realm/atv/IconAtvGoKart.svg +0 -3
- package/src/assets/svg/icons/realm/atv/IconAtvGolfCart.svg +0 -3
- package/src/assets/svg/icons/realm/atv/IconAtvSandRail.svg +0 -3
- package/src/assets/svg/icons/realm/atv/IconAtvSideBySide.svg +0 -3
- package/src/assets/svg/icons/realm/atv/IconAtvTrailer.svg +0 -3
- package/src/assets/svg/icons/realm/boatmart/IconBoatmartPwc.svg +0 -3
- package/src/assets/svg/icons/realm/boatmart/IconBoatmartTrailer.svg +0 -3
- package/src/assets/svg/icons/realm/cycle/IconCycleMotorcycle.svg +0 -4
- package/src/assets/svg/icons/realm/cycle/IconCycleTrailer.svg +0 -3
- package/src/assets/svg/icons/realm/pwc/IconPwcPwc.svg +0 -3
- package/src/assets/svg/icons/realm/pwc/IconPwcSnowmobile.svg +0 -3
- package/src/assets/svg/icons/realm/pwc/IconPwcTrailer.svg +0 -3
- package/src/assets/svg/icons/realm/rv/IconRvClassA.svg +0 -3
- package/src/assets/svg/icons/realm/rv/IconRvClassB.svg +0 -3
- package/src/assets/svg/icons/realm/rv/IconRvClassC.svg +0 -3
- package/src/assets/svg/icons/realm/rv/IconRvDestinationTrailer.svg +0 -5
- package/src/assets/svg/icons/realm/rv/IconRvFifthWheel.svg +0 -3
- package/src/assets/svg/icons/realm/rv/IconRvFishHouse.svg +0 -3
- package/src/assets/svg/icons/realm/rv/IconRvParkModel.svg +0 -3
- package/src/assets/svg/icons/realm/rv/IconRvPopUpCamper.svg +0 -3
- package/src/assets/svg/icons/realm/rv/IconRvTeardropTrailer.svg +0 -4
- package/src/assets/svg/icons/realm/rv/IconRvTravelTrailer.svg +0 -3
- package/src/assets/svg/icons/realm/rv/IconRvTruckCamper.svg +0 -3
- package/src/assets/svg/icons/realm/snow/IconSnowMotorcycle.svg +0 -4
- package/src/assets/svg/icons/realm/snow/IconSnowPwc.svg +0 -3
- package/src/assets/svg/icons/realm/snow/IconSnowSideBySide.svg +0 -3
- package/src/assets/svg/icons/realm/snow/IconSnowSnowmobile.svg +0 -3
- package/src/assets/svg/icons/realm/snow/IconSnowTrailer.svg +0 -3
- package/src/components/InternalBaseLink.vue +0 -11
- package/src/components/TideAccordionItem.vue +0 -120
- package/src/components/TideAlert.vue +0 -186
- package/src/components/TideBadge.vue +0 -64
- package/src/components/TideBadgeTrustedPartner.vue +0 -52
- package/src/components/TideBadgeVerifiedVehicle.vue +0 -46
- package/src/components/TideBreadCrumbs.vue +0 -62
- package/src/components/TideButton.vue +0 -115
- package/src/components/TideButtonIcon.vue +0 -91
- package/src/components/TideButtonPagination.vue +0 -87
- package/src/components/TideButtonSave.vue +0 -109
- package/src/components/TideButtonSegmented.vue +0 -115
- package/src/components/TideCard.vue +0 -107
- package/src/components/TideCarousel.vue +0 -489
- package/src/components/TideChipAction.vue +0 -83
- package/src/components/TideChipFilter.vue +0 -71
- package/src/components/TideChipInput.vue +0 -54
- package/src/components/TideColumns.vue +0 -65
- package/src/components/TideDivider.vue +0 -43
- package/src/components/TideForm.vue +0 -33
- package/src/components/TideIcon.vue +0 -85
- package/src/components/TideImage.vue +0 -126
- package/src/components/TideImageBackground.vue +0 -69
- package/src/components/TideIndicator.vue +0 -63
- package/src/components/TideInputCheckbox.vue +0 -210
- package/src/components/TideInputCheckboxDeprecated.vue +0 -117
- package/src/components/TideInputRadio.vue +0 -115
- package/src/components/TideInputRadioDeprecated.vue +0 -119
- package/src/components/TideInputSelect.vue +0 -331
- package/src/components/TideInputSelectDeprecated.vue +0 -245
- package/src/components/TideInputSupportingText.vue +0 -44
- package/src/components/TideInputText.vue +0 -382
- package/src/components/TideInputTextDeprecated.vue +0 -327
- package/src/components/TideInputTextarea.vue +0 -235
- package/src/components/TideInputTextareaDeprecated.vue +0 -198
- package/src/components/TideLink.vue +0 -95
- package/src/components/TideMenuItem.vue +0 -83
- package/src/components/TideModal.vue +0 -281
- package/src/components/TidePagination.vue +0 -65
- package/src/components/TidePopover.vue +0 -198
- package/src/components/TideRating.vue +0 -109
- package/src/components/TideRealmLogo.vue +0 -154
- package/src/components/TideSeoLinks.vue +0 -59
- package/src/components/TideSheet.vue +0 -209
- package/src/components/TideSwitch.vue +0 -101
- package/src/components/TideTabs.vue +0 -63
- package/src/components/TideToaster.vue +0 -97
- package/src/composables/useTideConfig.ts +0 -23
- package/src/composables/useTideForm.ts +0 -25
- package/src/composables/useTideToaster.ts +0 -63
- package/src/contexts/sandbox/AppSandbox.vue +0 -7
- package/src/contexts/sandbox/app-sandbox.ts +0 -10
- package/src/stories/DemoCssUtilities.stories.ts +0 -154
- package/src/stories/DemoCssUtilitiesByTextInput.stories.ts +0 -61
- package/src/stories/FoundationsBorder.stories.ts +0 -272
- package/src/stories/FoundationsColor.stories.ts +0 -311
- package/src/stories/FoundationsFlexbox.stories.ts +0 -184
- package/src/stories/FoundationsGrid.stories.ts +0 -126
- package/src/stories/FoundationsMargin.stories.ts +0 -155
- package/src/stories/FoundationsPadding.stories.ts +0 -108
- package/src/stories/FoundationsShadow.stories.ts +0 -103
- package/src/stories/FoundationsTransparency.stories.ts +0 -114
- package/src/stories/FoundationsTypography.stories.ts +0 -212
- package/src/stories/Template.stories.ts +0 -73
- package/src/stories/TideAccordionItem.stories.ts +0 -91
- package/src/stories/TideAlert.stories.ts +0 -133
- package/src/stories/TideBadge.stories.ts +0 -90
- package/src/stories/TideBadgeTrustedPartner.stories.ts +0 -34
- package/src/stories/TideBadgeVerifiedVehicle.stories.ts +0 -22
- package/src/stories/TideBreadCrumbs.stories.ts +0 -42
- package/src/stories/TideButton.stories.ts +0 -132
- package/src/stories/TideButtonIcon.stories.ts +0 -109
- package/src/stories/TideButtonPagination.stories.ts +0 -99
- package/src/stories/TideButtonSave.stories.ts +0 -62
- package/src/stories/TideButtonSegmented.stories.ts +0 -110
- package/src/stories/TideCard.stories.ts +0 -102
- package/src/stories/TideCarousel.stories.ts +0 -219
- package/src/stories/TideChipAction.stories.ts +0 -81
- package/src/stories/TideChipFilter.stories.ts +0 -84
- package/src/stories/TideChipInput.stories.ts +0 -56
- package/src/stories/TideColumns.stories.ts +0 -89
- package/src/stories/TideDivider.stories.ts +0 -48
- package/src/stories/TideIcon.stories.ts +0 -31
- package/src/stories/TideImage.stories.ts +0 -124
- package/src/stories/TideImageBackground.stories.ts +0 -114
- package/src/stories/TideIndicator.stories.ts +0 -32
- package/src/stories/TideInputCheckbox.stories.ts +0 -138
- package/src/stories/TideInputRadio.stories.ts +0 -100
- package/src/stories/TideInputSelect.stories.ts +0 -244
- package/src/stories/TideInputText.stories.ts +0 -221
- package/src/stories/TideInputTextarea.stories.ts +0 -156
- package/src/stories/TideLink.stories.ts +0 -127
- package/src/stories/TideMenuItem.stories.ts +0 -117
- package/src/stories/TideModal.stories.ts +0 -219
- package/src/stories/TidePagination.stories.ts +0 -100
- package/src/stories/TidePopover.stories.ts +0 -101
- package/src/stories/TideRating.stories.ts +0 -114
- package/src/stories/TideRealmLogo.stories.ts +0 -93
- package/src/stories/TideSeoLinks.stories.ts +0 -68
- package/src/stories/TideSheet.stories.ts +0 -152
- package/src/stories/TideSwitch.stories.ts +0 -72
- package/src/stories/TideTabs.stories.ts +0 -114
- package/src/stories/TideToaster.stories.ts +0 -117
- package/src/stories/Welcome.mdx +0 -17
- package/src/types/Alert.ts +0 -8
- package/src/types/Badge.ts +0 -76
- package/src/types/BreadCrumb.ts +0 -5
- package/src/types/Breakpoint.ts +0 -18
- package/src/types/Card.ts +0 -7
- package/src/types/Element.ts +0 -13
- package/src/types/FieldDeprecated.ts +0 -92
- package/src/types/Form.ts +0 -1
- package/src/types/FormDeprecated.ts +0 -91
- package/src/types/Formatted.ts +0 -23
- package/src/types/Icon.ts +0 -202
- package/src/types/Image.ts +0 -7
- package/src/types/Link.ts +0 -5
- package/src/types/Orientation.ts +0 -6
- package/src/types/Priority.ts +0 -11
- package/src/types/Realm.ts +0 -14
- package/src/types/RealmLogo.ts +0 -23
- package/src/types/Select.ts +0 -9
- package/src/types/Size.ts +0 -13
- package/src/types/Source.ts +0 -6
- package/src/types/Storybook.ts +0 -253
- package/src/types/Styles.ts +0 -526
- package/src/types/Tab.ts +0 -5
- package/src/types/Target.ts +0 -6
- package/src/types/TextInput.ts +0 -28
- package/src/types/Toast.ts +0 -21
- package/src/types/Type.ts +0 -6
- package/src/types/Validation.ts +0 -33
- package/src/types/ValidationDeprecated.ts +0 -41
- package/src/utilities/event.ts +0 -4
- package/src/utilities/format.ts +0 -184
- package/src/utilities/forms.ts +0 -22
- package/src/utilities/realm.ts +0 -17
- package/src/utilities/storybook.ts +0 -354
- package/src/utilities/validation-deprecated.ts +0 -252
- package/src/utilities/validation.ts +0 -132
- package/src/utilities/viewport.ts +0 -63
- package/tests/InternalBaseLink.spec.ts +0 -61
- package/tests/TideRealmLogo.spec.ts +0 -58
- package/tests/svg-icons.spec.ts +0 -74
- package/tests/utilities-format.spec.ts +0 -470
- package/tests/utilities-storybook.spec.ts +0 -99
- package/tsconfig.app.json +0 -14
- package/tsconfig.config.json +0 -12
- package/tsconfig.json +0 -35
- package/tsconfig.node.json +0 -7
- package/tsconfig.vitest.json +0 -10
- package/vite-env.d.ts +0 -2
- package/vite.config.sandbox.ts +0 -29
- package/vite.config.ts +0 -37
package/package.json
CHANGED
|
@@ -36,6 +36,18 @@
|
|
|
36
36
|
"vue": "^3.5.22",
|
|
37
37
|
"vue-tsc": "^3.2.5"
|
|
38
38
|
},
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"import": "./dist/tide-design-system.js",
|
|
42
|
+
"types": "./dist/tide-design-system.d.ts"
|
|
43
|
+
},
|
|
44
|
+
"./css/*": "./dist/css/*",
|
|
45
|
+
"./utilities/*": "./dist/utilities/*",
|
|
46
|
+
"./package.json": "./package.json"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"dist"
|
|
50
|
+
],
|
|
39
51
|
"homepage": "https://tide-design-system.netlify.app",
|
|
40
52
|
"license": "MIT",
|
|
41
53
|
"name": "tide-design-system",
|
|
@@ -60,9 +72,8 @@
|
|
|
60
72
|
"type-check": "vue-tsc --noEmit"
|
|
61
73
|
},
|
|
62
74
|
"type": "module",
|
|
63
|
-
"main": "dist/tide-design-system.js",
|
|
64
75
|
"types": "dist/tide-design-system.d.ts",
|
|
65
|
-
"version": "2.5.
|
|
76
|
+
"version": "2.5.14",
|
|
66
77
|
"dependencies": {
|
|
67
78
|
"@floating-ui/vue": "^1.1.6"
|
|
68
79
|
}
|
package/.eslintrc.cjs
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/* eslint-env node */
|
|
2
|
-
require('@rushstack/eslint-patch/modern-module-resolution');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
extends: [
|
|
6
|
-
'plugin:vue/vue3-recommended',
|
|
7
|
-
'eslint:recommended',
|
|
8
|
-
'@vue/eslint-config-typescript',
|
|
9
|
-
'@vue/eslint-config-prettier',
|
|
10
|
-
'plugin:storybook/recommended',
|
|
11
|
-
'plugin:import/errors',
|
|
12
|
-
'plugin:import/typescript',
|
|
13
|
-
'plugin:import/warnings',
|
|
14
|
-
],
|
|
15
|
-
ignorePatterns: ['storybook-static/'],
|
|
16
|
-
parserOptions: {
|
|
17
|
-
ecmaVersion: 'latest',
|
|
18
|
-
},
|
|
19
|
-
root: true,
|
|
20
|
-
rules: {
|
|
21
|
-
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
|
|
22
|
-
'import/order': [
|
|
23
|
-
'error',
|
|
24
|
-
{
|
|
25
|
-
'alphabetize': {
|
|
26
|
-
caseInsensitive: false,
|
|
27
|
-
order: 'asc',
|
|
28
|
-
orderImportKind: 'asc',
|
|
29
|
-
},
|
|
30
|
-
'groups': [['builtin', 'external'], 'internal', 'parent', 'sibling', 'index', 'type'],
|
|
31
|
-
'newlines-between': 'always',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
'prettier/prettier': [
|
|
35
|
-
'warn',
|
|
36
|
-
{
|
|
37
|
-
bracketLine: false,
|
|
38
|
-
printWidth: 120,
|
|
39
|
-
quoteProps: 'consistent',
|
|
40
|
-
singleAttributePerLine: true,
|
|
41
|
-
singleQuote: true,
|
|
42
|
-
tabWidth: 2,
|
|
43
|
-
vueIndentScriptAndStyle: true,
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
'quote-props': ['warn', 'consistent-as-needed'],
|
|
47
|
-
'sort-imports': [
|
|
48
|
-
'error',
|
|
49
|
-
{
|
|
50
|
-
allowSeparatedGroups: true,
|
|
51
|
-
ignoreDeclarationSort: true,
|
|
52
|
-
ignoreMemberSort: false,
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
'vue/attributes-order': [
|
|
56
|
-
'warn',
|
|
57
|
-
{
|
|
58
|
-
alphabetical: true,
|
|
59
|
-
// Replicates ASCII sort order w/ special characters.
|
|
60
|
-
order: [
|
|
61
|
-
[
|
|
62
|
-
'UNIQUE', // :prop='foo'
|
|
63
|
-
'ATTR_DYNAMIC', // :class='foo'
|
|
64
|
-
],
|
|
65
|
-
'EVENTS', // @click='getFoo'
|
|
66
|
-
[
|
|
67
|
-
'ATTR_SHORTHAND_BOOL',
|
|
68
|
-
'ATTR_STATIC',
|
|
69
|
-
'CONDITIONALS',
|
|
70
|
-
'CONTENT',
|
|
71
|
-
'DEFINITION',
|
|
72
|
-
'GLOBAL',
|
|
73
|
-
'LIST_RENDERING',
|
|
74
|
-
'OTHER_DIRECTIVES',
|
|
75
|
-
'RENDER_MODIFIERS',
|
|
76
|
-
'SLOT',
|
|
77
|
-
'TWO_WAY_BINDING',
|
|
78
|
-
],
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
'vue/component-tags-order': [
|
|
83
|
-
'warn',
|
|
84
|
-
{
|
|
85
|
-
order: ['script', 'template', 'style[scoped]', 'style:not([scoped])'],
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
'vue/html-self-closing': [
|
|
89
|
-
'error',
|
|
90
|
-
{
|
|
91
|
-
html: {
|
|
92
|
-
component: 'always',
|
|
93
|
-
normal: 'always',
|
|
94
|
-
void: 'always',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
'vue/multiline-html-element-content-newline': [
|
|
99
|
-
'warn',
|
|
100
|
-
{
|
|
101
|
-
ignores: ['pre', 'textarea'],
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
'vue/script-indent': [
|
|
105
|
-
'off', // Disabled bc ESLint and Prettier's indentation rules conflict.
|
|
106
|
-
2,
|
|
107
|
-
{
|
|
108
|
-
baseIndent: 1,
|
|
109
|
-
switchCase: 1,
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
'vue/sort-keys': ['warn', 'asc'],
|
|
113
|
-
},
|
|
114
|
-
settings: {
|
|
115
|
-
'import/resolver': {
|
|
116
|
-
typescript: {},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
name: 'Publish Release to Github'
|
|
2
|
-
|
|
3
|
-
permissions:
|
|
4
|
-
id-token: write
|
|
5
|
-
contents: write
|
|
6
|
-
issues: read
|
|
7
|
-
pull-requests: read
|
|
8
|
-
|
|
9
|
-
on:
|
|
10
|
-
push:
|
|
11
|
-
tags:
|
|
12
|
-
# Will run on any tag push, can be updated with Regex if needed
|
|
13
|
-
- '**'
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
publish_release:
|
|
17
|
-
runs-on: ubuntu-latest
|
|
18
|
-
env:
|
|
19
|
-
GH_TOKEN: ${{ github.token }}
|
|
20
|
-
tag: ${{ github.ref_name }}
|
|
21
|
-
steps:
|
|
22
|
-
- name: Checkout code
|
|
23
|
-
uses: actions/checkout@v4
|
|
24
|
-
|
|
25
|
-
- name: Get PR titles from milestone for release notes
|
|
26
|
-
id: get-notes
|
|
27
|
-
run: |
|
|
28
|
-
echo "## What's New" > notes.md
|
|
29
|
-
release_notes=$(gh pr list --search "milestone:${{ env.tag }}" --state all --json title,author,number \
|
|
30
|
-
| jq -r '.[] | "- \(.title) by @\(.author.login) in #\(.number)"')
|
|
31
|
-
printf "%s\n" "${release_notes}" >> notes.md
|
|
32
|
-
|
|
33
|
-
- name: Create release
|
|
34
|
-
run: |
|
|
35
|
-
gh release create ${{ env.tag }} \
|
|
36
|
-
--notes-file notes.md \
|
|
37
|
-
--verify-tag \
|
|
38
|
-
--title ${{ env.tag }}
|
package/.storybook/main.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { isProduction } from '../src/utilities/storybook';
|
|
2
|
-
|
|
3
|
-
import type { StorybookConfig } from '@storybook/vue3-vite';
|
|
4
|
-
|
|
5
|
-
const config: StorybookConfig = {
|
|
6
|
-
addons: [
|
|
7
|
-
'@storybook/addon-a11y',
|
|
8
|
-
'@storybook/addon-essentials',
|
|
9
|
-
],
|
|
10
|
-
docs: {
|
|
11
|
-
autodocs: 'tag',
|
|
12
|
-
},
|
|
13
|
-
framework: {
|
|
14
|
-
name: '@storybook/vue3-vite',
|
|
15
|
-
options: {},
|
|
16
|
-
},
|
|
17
|
-
stories: [
|
|
18
|
-
'../src/stories/Welcome.mdx',
|
|
19
|
-
// '../src/stories/*.stories.ts',
|
|
20
|
-
|
|
21
|
-
isProduction ? '' : '../src/stories/Demo*.stories.ts',
|
|
22
|
-
'../src/stories/Foundations*.stories.ts',
|
|
23
|
-
|
|
24
|
-
'../src/stories/TideAccordionItem.stories.ts',
|
|
25
|
-
'../src/stories/TideAlert.stories.ts',
|
|
26
|
-
'../src/stories/TideBadge.stories.ts',
|
|
27
|
-
'../src/stories/TideBadgeTrustedPartner.stories.ts',
|
|
28
|
-
'../src/stories/TideBadgeVerifiedVehicle.stories.ts',
|
|
29
|
-
'../src/stories/TideBreadCrumbs.stories.ts',
|
|
30
|
-
'../src/stories/TideButton.stories.ts',
|
|
31
|
-
'../src/stories/TideButtonIcon.stories.ts',
|
|
32
|
-
'../src/stories/TideButtonPagination.stories.ts',
|
|
33
|
-
'../src/stories/TideButtonSave.stories.ts',
|
|
34
|
-
'../src/stories/TideButtonSegmented.stories.ts',
|
|
35
|
-
'../src/stories/TideCard.stories.ts',
|
|
36
|
-
'../src/stories/TideCarousel.stories.ts',
|
|
37
|
-
'../src/stories/TideChipAction.stories.ts',
|
|
38
|
-
'../src/stories/TideChipFilter.stories.ts',
|
|
39
|
-
'../src/stories/TideChipInput.stories.ts',
|
|
40
|
-
'../src/stories/TideColumns.stories.ts',
|
|
41
|
-
'../src/stories/TideDivider.stories.ts',
|
|
42
|
-
'../src/stories/TideIcon.stories.ts',
|
|
43
|
-
'../src/stories/TideImage.stories.ts',
|
|
44
|
-
'../src/stories/TideImageBackground.stories.ts',
|
|
45
|
-
'../src/stories/TideIndicator.stories.ts',
|
|
46
|
-
'../src/stories/TideInputCheckbox.stories.ts',
|
|
47
|
-
'../src/stories/TideInputRadio.stories.ts',
|
|
48
|
-
'../src/stories/TideInputSelect.stories.ts',
|
|
49
|
-
'../src/stories/TideInputText.stories.ts',
|
|
50
|
-
'../src/stories/TideInputTextarea.stories.ts',
|
|
51
|
-
'../src/stories/TideLink.stories.ts',
|
|
52
|
-
'../src/stories/TideMenuItem.stories.ts',
|
|
53
|
-
'../src/stories/TideModal.stories.ts',
|
|
54
|
-
'../src/stories/TidePopover.stories.ts',
|
|
55
|
-
'../src/stories/TideRating.stories.ts',
|
|
56
|
-
'../src/stories/TideRealmLogo.stories.ts',
|
|
57
|
-
'../src/stories/TideSheet.stories.ts',
|
|
58
|
-
'../src/stories/TideSwitch.stories.ts',
|
|
59
|
-
'../src/stories/TideTabs.stories.ts',
|
|
60
|
-
'../src/stories/TideToaster.stories.ts',
|
|
61
|
-
// '../src/stories/TidePagination.stories.ts',
|
|
62
|
-
// '../src/stories/TideSeoLinks.stories.ts',
|
|
63
|
-
],
|
|
64
|
-
viteFinal: async (config, { configType }) => {
|
|
65
|
-
if (config.build) config.build.sourcemap = 'inline'
|
|
66
|
-
return config;
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export default config;
|
package/.storybook/preview.ts
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { useArgs } from '@storybook/preview-api';
|
|
2
|
-
|
|
3
|
-
import type { Preview } from '@storybook/vue3';
|
|
4
|
-
|
|
5
|
-
import { setup } from '@storybook/vue3';
|
|
6
|
-
|
|
7
|
-
import '@/assets/css/main.css';
|
|
8
|
-
import '@/assets/css/reset.css';
|
|
9
|
-
import '@/assets/css/storybook.css';
|
|
10
|
-
|
|
11
|
-
import DemoCssUtilities from '../src/stories/DemoCssUtilities.stories';
|
|
12
|
-
import DemoCssUtilitiesByTextInput from '../src/stories/DemoCssUtilitiesByTextInput.stories';
|
|
13
|
-
import FoundationsGrid from '../src/stories/FoundationsGrid.stories';
|
|
14
|
-
import FoundationsMargin from '../src/stories/FoundationsMargin.stories';
|
|
15
|
-
import { isProduction } from '../src/utilities/storybook';
|
|
16
|
-
import TideAlert from '../src/components/TideAlert.vue';
|
|
17
|
-
|
|
18
|
-
const cssRoot = isProduction ? '/assets/css/realm' : '/src/assets/css/realm';
|
|
19
|
-
|
|
20
|
-
const replaceRealmStyles = (realm: string) => {
|
|
21
|
-
document.getElementById('realmStyles')?.remove();
|
|
22
|
-
|
|
23
|
-
const href = `${cssRoot}/${realm}.css`;
|
|
24
|
-
const realmStyles = document.createElement('link');
|
|
25
|
-
|
|
26
|
-
realmStyles.href = href;
|
|
27
|
-
realmStyles.id = 'realmStyles';
|
|
28
|
-
realmStyles.rel = 'stylesheet';
|
|
29
|
-
document.body.append(realmStyles);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const preview: Preview = {
|
|
33
|
-
decorators: [
|
|
34
|
-
(story, context) => {
|
|
35
|
-
const decoratorOptOuts = [
|
|
36
|
-
DemoCssUtilities.title,
|
|
37
|
-
DemoCssUtilitiesByTextInput.title,
|
|
38
|
-
FoundationsGrid.title,
|
|
39
|
-
FoundationsMargin.title,
|
|
40
|
-
];
|
|
41
|
-
|
|
42
|
-
const decoratorCss = decoratorOptOuts.includes(context.title) ? '' : 'tide-padding-top-2 tide-padding-x-2';
|
|
43
|
-
|
|
44
|
-
replaceRealmStyles(context.globals.realm);
|
|
45
|
-
|
|
46
|
-
return {
|
|
47
|
-
components: { story },
|
|
48
|
-
template: `<div class="${decoratorCss} tide-padding-bottom-4 ${context.globals.surfaceBg} ${context.globals.surfaceFg}"><story /></div><div class="tide-position-absolute tide-display-flex tide-axis1-end tide-right-0 tide-top-0 tide-width-full tide-pointer-events-none"><TideAlert :class="['tide-margin-1 tide-width-full']" id="do-something-alert" is-dismissible="false" is-toast="true" heading="Did something." style="opacity: 0; transition: opacity ease-in-out 300ms;" /></div>`
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
(story, context) => {
|
|
52
|
-
const [_args, updateArgs] = useArgs();
|
|
53
|
-
|
|
54
|
-
return story({ ...context, updateArgs });
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
globalTypes: {
|
|
58
|
-
realm: {
|
|
59
|
-
description: 'Determines Realm context of dynamic CSS utilities',
|
|
60
|
-
defaultValue: 'rv',
|
|
61
|
-
toolbar: {
|
|
62
|
-
dynamicTitle: true,
|
|
63
|
-
items: [
|
|
64
|
-
{
|
|
65
|
-
title: 'Realm: Aero',
|
|
66
|
-
value: 'aero',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
title: 'Realm: ATV',
|
|
70
|
-
value: 'atv',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
title: 'Realm: Boatmart',
|
|
74
|
-
value: 'boatmart',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
title: 'Realm: Cycle',
|
|
78
|
-
value: 'cycle',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
title: 'Realm: Equipment',
|
|
82
|
-
value: 'equipment',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
title: 'Realm: PWC',
|
|
86
|
-
value: 'pwc',
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
title: 'Realm: RV',
|
|
90
|
-
value: 'rv',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
title: 'Realm: Snow',
|
|
94
|
-
value: 'snow',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
title: 'Realm: Truck',
|
|
98
|
-
value: 'truck',
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
title: 'Realm',
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
surfaceBg: {
|
|
105
|
-
description: 'Determines Background context of dynamic CSS utilities',
|
|
106
|
-
defaultValue: 'tide-bg-surface',
|
|
107
|
-
toolbar: {
|
|
108
|
-
dynamicTitle: true,
|
|
109
|
-
items: [
|
|
110
|
-
{
|
|
111
|
-
title: 'Surface: Default',
|
|
112
|
-
value: 'tide-bg-surface',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
title: 'Surface: Variant',
|
|
116
|
-
value: 'tide-bg-surface-variant',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
title: 'Surface: Brand',
|
|
120
|
-
value: 'tide-bg-surface-brand',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
title: 'Surface: Accent',
|
|
124
|
-
value: 'tide-bg-surface-accent',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
title: 'Surface: Gradient',
|
|
128
|
-
value: 'tide-bg-surface-gradient',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
title: 'Surface: Floating',
|
|
132
|
-
value: 'tide-bg-surface-floating',
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
title: 'Surface',
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
surfaceFg: {
|
|
139
|
-
description: 'Determines Foreground context of dynamic CSS utilities',
|
|
140
|
-
defaultValue: 'tide-on-surface',
|
|
141
|
-
toolbar: {
|
|
142
|
-
dynamicTitle: true,
|
|
143
|
-
items: [
|
|
144
|
-
{
|
|
145
|
-
title: 'On Surface: Default',
|
|
146
|
-
value: 'tide-font-on-surface',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
title: 'On Surface: Variant',
|
|
150
|
-
value: 'tide-font-on-surface-variant',
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
title: 'On Surface: Brand',
|
|
154
|
-
value: 'tide-font-on-surface-brand',
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
title: 'On Surface: Inverse',
|
|
158
|
-
value: 'tide-font-on-surface-inverse',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
title: 'On Surface: Variant Inverse',
|
|
162
|
-
value: 'tide-font-on-surface-variant-inverse',
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
title: 'On Surface',
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
parameters: {
|
|
170
|
-
backgrounds: { disable: true },
|
|
171
|
-
docs: {
|
|
172
|
-
canvas: {
|
|
173
|
-
// sourceState: 'shown',
|
|
174
|
-
withToolbar: false,
|
|
175
|
-
},
|
|
176
|
-
controls: { sort: 'requiredFirst' },
|
|
177
|
-
source: { type: 'dynamic' },
|
|
178
|
-
},
|
|
179
|
-
layout: 'fullscreen',
|
|
180
|
-
options: {
|
|
181
|
-
storySort: {
|
|
182
|
-
order: [
|
|
183
|
-
'Welcome',
|
|
184
|
-
'Utilities',
|
|
185
|
-
'Components',
|
|
186
|
-
'Proof of Concept', [
|
|
187
|
-
'CSS Utilities Demo',
|
|
188
|
-
'CSS Utilities By Text Input',
|
|
189
|
-
],
|
|
190
|
-
],
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
toolbar: {
|
|
194
|
-
grid: { hidden: true },
|
|
195
|
-
},
|
|
196
|
-
viewport: {
|
|
197
|
-
viewports: {
|
|
198
|
-
extraSmallMin: {
|
|
199
|
-
name: 'Extra Small (iPhone 12/13 Mini)',
|
|
200
|
-
styles: {
|
|
201
|
-
width: '375px',
|
|
202
|
-
height: '812px',
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
extraSmallMax: {
|
|
206
|
-
name: 'Extra Small Max',
|
|
207
|
-
styles: {
|
|
208
|
-
width: '767px',
|
|
209
|
-
height: '100%',
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
smallMin: {
|
|
213
|
-
name: 'Small Min',
|
|
214
|
-
styles: {
|
|
215
|
-
width: '768px',
|
|
216
|
-
height: '100%',
|
|
217
|
-
},
|
|
218
|
-
},
|
|
219
|
-
smallMax: {
|
|
220
|
-
name: 'Small Max',
|
|
221
|
-
styles: {
|
|
222
|
-
width: '991px',
|
|
223
|
-
height: '100%',
|
|
224
|
-
},
|
|
225
|
-
},
|
|
226
|
-
mediumMin: {
|
|
227
|
-
name: 'Medium Min',
|
|
228
|
-
styles: {
|
|
229
|
-
width: '992px',
|
|
230
|
-
height: '100%',
|
|
231
|
-
},
|
|
232
|
-
},
|
|
233
|
-
mediumMax: {
|
|
234
|
-
name: 'Medium Max',
|
|
235
|
-
styles: {
|
|
236
|
-
width: '1231px',
|
|
237
|
-
height: '100%',
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
largeMin: {
|
|
241
|
-
name: 'Large Min',
|
|
242
|
-
styles: {
|
|
243
|
-
width: '1232px',
|
|
244
|
-
height: '100%',
|
|
245
|
-
},
|
|
246
|
-
},
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
setup((app) => {
|
|
253
|
-
app.component('TideAlert', TideAlert);
|
|
254
|
-
});
|
|
255
|
-
|
|
256
|
-
export default preview;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/configuation.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# TIDE Configuration
|
|
2
|
-
|
|
3
|
-
You can configure global TIDE behavior using `provideTideConfig()`. Place it in a top-level file such as `app.vue` (anywhere Vue’s `provide()` works). See Vue’s docs on [provide/inject](https://vuejs.org/guide/components/provide-inject) for more details.
|
|
4
|
-
|
|
5
|
-
## `provideTideConfig()`
|
|
6
|
-
|
|
7
|
-
``` ts
|
|
8
|
-
import { provideTideConfig } from 'tide-design-system';
|
|
9
|
-
|
|
10
|
-
provideTideConfig({
|
|
11
|
-
linkComponent: 'a', // default
|
|
12
|
-
});
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
### Config values
|
|
16
|
-
|
|
17
|
-
| Key | Type | Default | Description |
|
|
18
|
-
| --- | --- | --- | --- |
|
|
19
|
-
| `linkComponent` | `'a' \| Component` | `'a'` | Replaces the root element used by link-based TIDE components. |
|
|
20
|
-
|
|
21
|
-
## `linkComponent` (TIDE 2.5+)
|
|
22
|
-
|
|
23
|
-
Use this to replace all `<a>` elements in TIDE components with a custom component. Useful for frameworks like Nuxt.
|
|
24
|
-
|
|
25
|
-
### Nuxt Example (using `NuxtLink`)
|
|
26
|
-
|
|
27
|
-
``` vue
|
|
28
|
-
<!-- app.vue -->
|
|
29
|
-
<script setup lang="ts">
|
|
30
|
-
import { provideTideConfig } from 'tide-design-system';
|
|
31
|
-
import { NuxtLink } from '#components';
|
|
32
|
-
|
|
33
|
-
provideTideConfig({
|
|
34
|
-
linkComponent: NuxtLink,
|
|
35
|
-
});
|
|
36
|
-
</script>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
This updates all TIDE components that render links, including:
|
|
40
|
-
|
|
41
|
-
- TideLink
|
|
42
|
-
- TideButton (`:element="ELEMENT.LINK"`)
|
|
43
|
-
- TideCard (`:type="TYPE_CARD.ACTION"` with `href`)
|
|
44
|
-
- TideBreadCrumbs
|
|
45
|
-
- And others
|
|
46
|
-
|
|
47
|
-
All these will now render using `<NuxtLink />` automatically.
|