@salesforcedevs/dx-components 0.26.0 → 0.26.1-alpha0.4
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/package.json +5 -4
- package/LICENSE +0 -12
- package/src/assets/icons/action-sprite/svg/symbols.svg +0 -1
- package/src/assets/icons/brand-sprite/svg/symbols.svg +0 -1381
- package/src/assets/icons/custom-sprite/svg/symbols.svg +0 -1
- package/src/assets/icons/doctype-sprite/svg/symbols.svg +0 -1
- package/src/assets/icons/general-sprite/svg/symbols.svg +0 -3013
- package/src/assets/icons/salesforcebrand-sprite/svg/symbols.svg +0 -257
- package/src/assets/icons/standard-sprite/svg/symbols.svg +0 -1
- package/src/assets/icons/utility-sprite/svg/symbols.svg +0 -1
- package/src/assets/svg/card-news-learn-moar.svg +0 -415
- package/src/assets/svg/cloud-1.svg +0 -24
- package/src/assets/svg/cloud-2.svg +0 -18
- package/src/assets/svg/codey.svg +0 -93
- package/src/assets/svg/command.svg +0 -9
- package/src/assets/svg/control.svg +0 -10
- package/src/assets/svg/docs-empty-state-small.svg +0 -72
- package/src/assets/svg/docs-empty-state.svg +0 -86
- package/src/assets/svg/dsc-home-news-bear.svg +0 -3
- package/src/assets/svg/dsc-home-news-community.png +0 -0
- package/src/assets/svg/dsc-home-news-goatbear.svg +0 -257
- package/src/assets/svg/dsc-home-news-samplegallery.svg +0 -76
- package/src/assets/svg/empty-state-assistant.svg +0 -1
- package/src/assets/svg/fch-blog-cloud-1.png +0 -0
- package/src/assets/svg/fch-blog-cloud-2.png +0 -0
- package/src/assets/svg/fch-blog-planet.png +0 -0
- package/src/assets/svg/feature-backdrop1.svg +0 -10
- package/src/assets/svg/feature-backdrop2.svg +0 -10
- package/src/assets/svg/featured-demo-art-blank.svg +0 -76
- package/src/assets/svg/featured-demo-art-eBikes.svg +0 -77
- package/src/assets/svg/footer-graphic-large.svg +0 -207
- package/src/assets/svg/footer-graphic-mountains-small.svg +0 -17
- package/src/assets/svg/footer-graphic-mountains.svg +0 -21
- package/src/assets/svg/footer-graphic-trees-small.svg +0 -33
- package/src/assets/svg/footer-graphic-trees.svg +0 -62
- package/src/assets/svg/lake-mountain.svg +0 -79
- package/src/assets/svg/podcast-subscription-clouds-small.svg +0 -49
- package/src/assets/svg/podcast-subscription-clouds.svg +0 -57
- package/src/assets/svg/podcasts-subscription-apple.svg +0 -164
- package/src/assets/svg/podcasts-subscription-google.svg +0 -29
- package/src/assets/svg/podcasts-subscription-spotify.svg +0 -11
- package/src/assets/svg/salesforce-cloud.svg +0 -7
- package/src/assets/svg/salesforce-logo-corporate.svg +0 -21
- package/src/assets/svg/salesforce-logo.svg +0 -14
- package/src/assets/svg/sidebar-loading.svg +0 -34
- package/src/assets/svg/slack-cta-podcast-background-left.svg +0 -28
- package/src/assets/svg/slack-cta-podcast-background-right.svg +0 -38
- package/src/assets/svg/trees.svg +0 -42
- package/src/modules/dx/banner/__tests__/banner.test.ts +0 -33
- package/src/modules/dx/banner/banner.css +0 -46
- package/src/modules/dx/banner/banner.html +0 -13
- package/src/modules/dx/banner/banner.ts +0 -14
- package/src/modules/dx/brandThemeProvider/__tests__/brandThemeProvider.test.ts +0 -49
- package/src/modules/dx/brandThemeProvider/brandCssVars.ts +0 -10
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.html +0 -3
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.stories.ts +0 -321
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.ts +0 -46
- package/src/modules/dx/breadcrumbs/__tests__/breadcrumbs.test.ts +0 -140
- package/src/modules/dx/breadcrumbs/__tests__/mockProps.ts +0 -28
- package/src/modules/dx/breadcrumbs/breadcrumbs.css +0 -111
- package/src/modules/dx/breadcrumbs/breadcrumbs.html +0 -44
- package/src/modules/dx/breadcrumbs/breadcrumbs.stories.ts +0 -39
- package/src/modules/dx/breadcrumbs/breadcrumbs.ts +0 -122
- package/src/modules/dx/button/__tests__/button.test.ts +0 -107
- package/src/modules/dx/button/button.css +0 -175
- package/src/modules/dx/button/button.html +0 -43
- package/src/modules/dx/button/button.stories.ts +0 -150
- package/src/modules/dx/button/button.ts +0 -63
- package/src/modules/dx/cardBlogPost/__tests__/cardBlogPost.test.ts +0 -26
- package/src/modules/dx/cardBlogPost/__tests__/mockProps.ts +0 -12
- package/src/modules/dx/cardBlogPost/cardBlogPost.css +0 -13
- package/src/modules/dx/cardBlogPost/cardBlogPost.html +0 -24
- package/src/modules/dx/cardBlogPost/cardBlogPost.stories.ts +0 -164
- package/src/modules/dx/cardBlogPost/cardBlogPost.ts +0 -23
- package/src/modules/dx/cardBlogPostProvider/__tests__/cardBlogPostProvider.test.ts +0 -34
- package/src/modules/dx/cardBlogPostProvider/__tests__/mockWordpressPosts.ts +0 -44
- package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.css +0 -3
- package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.html +0 -16
- package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.ts +0 -29
- package/src/modules/dx/cardCallout/__tests__/cardCallout.test.ts +0 -20
- package/src/modules/dx/cardCallout/__tests__/mockProps.ts +0 -7
- package/src/modules/dx/cardCallout/cardCallout.css +0 -57
- package/src/modules/dx/cardCallout/cardCallout.html +0 -15
- package/src/modules/dx/cardCallout/cardCallout.stories.ts +0 -33
- package/src/modules/dx/cardCallout/cardCallout.ts +0 -37
- package/src/modules/dx/cardContent/__tests__/cardContent.test.ts +0 -100
- package/src/modules/dx/cardContent/__tests__/mockProps.ts +0 -13
- package/src/modules/dx/cardContent/cardContent.css +0 -52
- package/src/modules/dx/cardContent/cardContent.html +0 -59
- package/src/modules/dx/cardContent/cardContent.stories.ts +0 -127
- package/src/modules/dx/cardContent/cardContent.ts +0 -68
- package/src/modules/dx/cardDemo/cardDemo.css +0 -1
- package/src/modules/dx/cardDemo/cardDemo.html +0 -12
- package/src/modules/dx/cardDemo/cardDemo.stories.ts +0 -115
- package/src/modules/dx/cardDemo/cardDemo.ts +0 -11
- package/src/modules/dx/cardDocs/__tests__/cardDocs.test.ts +0 -48
- package/src/modules/dx/cardDocs/__tests__/mockProps.ts +0 -9
- package/src/modules/dx/cardDocs/cardDocs.css +0 -50
- package/src/modules/dx/cardDocs/cardDocs.html +0 -20
- package/src/modules/dx/cardDocs/cardDocs.stories.ts +0 -299
- package/src/modules/dx/cardDocs/cardDocs.ts +0 -30
- package/src/modules/dx/cardEvent/__tests__/cardEvent.test.ts +0 -95
- package/src/modules/dx/cardEvent/__tests__/mockProps.ts +0 -10
- package/src/modules/dx/cardEvent/cardEvent.css +0 -107
- package/src/modules/dx/cardEvent/cardEvent.html +0 -94
- package/src/modules/dx/cardEvent/cardEvent.stories.ts +0 -153
- package/src/modules/dx/cardEvent/cardEvent.ts +0 -42
- package/src/modules/dx/cardExpanded/__tests__/cardExpanded.test.ts +0 -193
- package/src/modules/dx/cardExpanded/__tests__/mockProps.ts +0 -21
- package/src/modules/dx/cardExpanded/cardExpanded.css +0 -49
- package/src/modules/dx/cardExpanded/cardExpanded.html +0 -37
- package/src/modules/dx/cardExpanded/cardExpanded.stories.ts +0 -59
- package/src/modules/dx/cardExpanded/cardExpanded.ts +0 -45
- package/src/modules/dx/cardGrid/__tests__/cardMockProps.ts +0 -431
- package/src/modules/dx/cardGrid/__tests__/mockProps.ts +0 -15
- package/src/modules/dx/cardGrid/cardGrid.css +0 -89
- package/src/modules/dx/cardGrid/cardGrid.html +0 -46
- package/src/modules/dx/cardGrid/cardGrid.stories.ts +0 -111
- package/src/modules/dx/cardGrid/cardGrid.ts +0 -140
- package/src/modules/dx/cardMinimal/__tests__/cardMinimal.test.ts +0 -87
- package/src/modules/dx/cardMinimal/__tests__/mockProps.ts +0 -10
- package/src/modules/dx/cardMinimal/cardMinimal.css +0 -31
- package/src/modules/dx/cardMinimal/cardMinimal.html +0 -13
- package/src/modules/dx/cardMinimal/cardMinimal.stories.ts +0 -32
- package/src/modules/dx/cardMinimal/cardMinimal.ts +0 -3
- package/src/modules/dx/cardNews/__tests__/cardNews.test.ts +0 -58
- package/src/modules/dx/cardNews/__tests__/mockProps.ts +0 -7
- package/src/modules/dx/cardNews/cardNews.css +0 -159
- package/src/modules/dx/cardNews/cardNews.html +0 -37
- package/src/modules/dx/cardNews/cardNews.stories.ts +0 -115
- package/src/modules/dx/cardNews/cardNews.ts +0 -62
- package/src/modules/dx/cardPodcastEpisode/__tests__/cardPodcastEpisode.test.ts +0 -68
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.css +0 -19
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.html +0 -36
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.stories.ts +0 -31
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.ts +0 -36
- package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/cardPodcastEpisodeProvider.test.ts +0 -36
- package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/mockWordpressEpisodes.ts +0 -50
- package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.css +0 -3
- package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.html +0 -12
- package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +0 -29
- package/src/modules/dx/cardSmall/__tests__/cardSmall.test.ts +0 -66
- package/src/modules/dx/cardSmall/__tests__/mockProps.ts +0 -8
- package/src/modules/dx/cardSmall/cardSmall.css +0 -32
- package/src/modules/dx/cardSmall/cardSmall.html +0 -42
- package/src/modules/dx/cardSmall/cardSmall.stories.ts +0 -166
- package/src/modules/dx/cardSmall/cardSmall.ts +0 -38
- package/src/modules/dx/cardTitle/__tests__/cardTitle.test.ts +0 -46
- package/src/modules/dx/cardTitle/cardTitle.css +0 -41
- package/src/modules/dx/cardTitle/cardTitle.html +0 -20
- package/src/modules/dx/cardTitle/cardTitle.ts +0 -27
- package/src/modules/dx/cardTrailheadModule/__tests__/cardTrailheadModule.test.ts +0 -18
- package/src/modules/dx/cardTrailheadModule/__tests__/mockProps.ts +0 -11
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.css +0 -24
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.html +0 -20
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.stories.ts +0 -122
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.ts +0 -18
- package/src/modules/dx/cardVideoPreview/__tests__/cardVideoPreview.test.ts +0 -22
- package/src/modules/dx/cardVideoPreview/__tests__/mockProps.ts +0 -11
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.css +0 -14
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.html +0 -26
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.stories.ts +0 -147
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.ts +0 -13
- package/src/modules/dx/checkbox/__tests__/checkbox.test.ts +0 -85
- package/src/modules/dx/checkbox/__tests__/mockProps.ts +0 -5
- package/src/modules/dx/checkbox/checkbox.css +0 -168
- package/src/modules/dx/checkbox/checkbox.html +0 -26
- package/src/modules/dx/checkbox/checkbox.stories.ts +0 -38
- package/src/modules/dx/checkbox/checkbox.ts +0 -55
- package/src/modules/dx/checkboxGroup/__tests__/checkboxGroup.test.ts +0 -80
- package/src/modules/dx/checkboxGroup/__tests__/mockProps.ts +0 -14
- package/src/modules/dx/checkboxGroup/checkboxGroup.css +0 -12
- package/src/modules/dx/checkboxGroup/checkboxGroup.html +0 -15
- package/src/modules/dx/checkboxGroup/checkboxGroup.stories.ts +0 -33
- package/src/modules/dx/checkboxGroup/checkboxGroup.ts +0 -77
- package/src/modules/dx/codeBlock/__tests__/codeBlock.test.ts +0 -238
- package/src/modules/dx/codeBlock/__tests__/mockProps.ts +0 -160
- package/src/modules/dx/codeBlock/codeBlock.css +0 -128
- package/src/modules/dx/codeBlock/codeBlock.html +0 -79
- package/src/modules/dx/codeBlock/codeBlock.stories.ts +0 -143
- package/src/modules/dx/codeBlock/codeBlock.ts +0 -215
- package/src/modules/dx/codeBlock/darkTheme.css +0 -88
- package/src/modules/dx/codeBlock/lightTheme.css +0 -72
- package/src/modules/dx/dropdown/__tests__/dropdown.test.ts +0 -165
- package/src/modules/dx/dropdown/__tests__/mockNestedOptions.ts +0 -96
- package/src/modules/dx/dropdown/__tests__/mockOptions.ts +0 -10
- package/src/modules/dx/dropdown/__tests__/mockProps.ts +0 -6
- package/src/modules/dx/dropdown/dropdown.css +0 -93
- package/src/modules/dx/dropdown/dropdown.html +0 -67
- package/src/modules/dx/dropdown/dropdown.stories.ts +0 -89
- package/src/modules/dx/dropdown/dropdown.ts +0 -182
- package/src/modules/dx/dropdownOption/__tests__/dropdownOption.test.ts +0 -112
- package/src/modules/dx/dropdownOption/__tests__/mockProps.ts +0 -20
- package/src/modules/dx/dropdownOption/dropdownOption.css +0 -61
- package/src/modules/dx/dropdownOption/dropdownOption.html +0 -53
- package/src/modules/dx/dropdownOption/dropdownOption.ts +0 -39
- package/src/modules/dx/emptyState/__tests__/emptyState.test.ts +0 -52
- package/src/modules/dx/emptyState/__tests__/mockProps.ts +0 -4
- package/src/modules/dx/emptyState/emptyState.css +0 -64
- package/src/modules/dx/emptyState/emptyState.html +0 -9
- package/src/modules/dx/emptyState/emptyState.stories.ts +0 -45
- package/src/modules/dx/emptyState/emptyState.ts +0 -20
- package/src/modules/dx/feature/__tests__/feature.test.ts +0 -51
- package/src/modules/dx/feature/__tests__/mockProps.ts +0 -8
- package/src/modules/dx/feature/feature.css +0 -135
- package/src/modules/dx/feature/feature.html +0 -33
- package/src/modules/dx/feature/feature.ts +0 -34
- package/src/modules/dx/featureGrid/__tests__/featureGrid.test.ts +0 -21
- package/src/modules/dx/featureGrid/featureGrid.html +0 -3
- package/src/modules/dx/featureGrid/featureGrid.stories.ts +0 -120
- package/src/modules/dx/featureGrid/featureGrid.ts +0 -15
- package/src/modules/dx/featuredContentHeader/__tests__/featuredContentHeader.test.ts +0 -178
- package/src/modules/dx/featuredContentHeader/__tests__/mockProps.ts +0 -73
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +0 -469
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.html +0 -96
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.stories.ts +0 -153
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +0 -113
- package/src/modules/dx/featuredContentHeader/svgs.ts +0 -35
- package/src/modules/dx/featuresList/__tests__/featuresList.test.ts +0 -43
- package/src/modules/dx/featuresList/__tests__/mockProps.ts +0 -17
- package/src/modules/dx/featuresList/featuresList.css +0 -24
- package/src/modules/dx/featuresList/featuresList.html +0 -20
- package/src/modules/dx/featuresList/featuresList.stories.ts +0 -30
- package/src/modules/dx/featuresList/featuresList.ts +0 -21
- package/src/modules/dx/footer/__tests__/footer.test.ts +0 -147
- package/src/modules/dx/footer/__tests__/mockLocales.ts +0 -7
- package/src/modules/dx/footer/footer.css +0 -405
- package/src/modules/dx/footer/footer.html +0 -145
- package/src/modules/dx/footer/footer.stories.ts +0 -88
- package/src/modules/dx/footer/footer.ts +0 -124
- package/src/modules/dx/footer/links.ts +0 -140
- package/src/modules/dx/footerOption/__tests__/footerOption.test.ts +0 -34
- package/src/modules/dx/footerOption/__tests__/mockProps.ts +0 -7
- package/src/modules/dx/footerOption/footerOption.css +0 -4
- package/src/modules/dx/footerOption/footerOption.html +0 -12
- package/src/modules/dx/footerOption/footerOption.ts +0 -19
- package/src/modules/dx/formattedDateTime/__tests__/formattedDateTime.test.ts +0 -25
- package/src/modules/dx/formattedDateTime/__tests__/mockProps.ts +0 -13
- package/src/modules/dx/formattedDateTime/formattedDateTime.html +0 -1
- package/src/modules/dx/formattedDateTime/formattedDateTime.stories.ts +0 -103
- package/src/modules/dx/formattedDateTime/formattedDateTime.ts +0 -72
- package/src/modules/dx/grid/__tests__/grid.test.ts +0 -32
- package/src/modules/dx/grid/grid.css +0 -48
- package/src/modules/dx/grid/grid.html +0 -3
- package/src/modules/dx/grid/grid.md +0 -14
- package/src/modules/dx/grid/grid.stories.ts +0 -134
- package/src/modules/dx/grid/grid.ts +0 -72
- package/src/modules/dx/groupBio/__tests__/groupBio.test.ts +0 -82
- package/src/modules/dx/groupBio/__tests__/mockProps.ts +0 -15
- package/src/modules/dx/groupBio/groupBio.css +0 -49
- package/src/modules/dx/groupBio/groupBio.html +0 -29
- package/src/modules/dx/groupBio/groupBio.stories.ts +0 -66
- package/src/modules/dx/groupBio/groupBio.ts +0 -41
- package/src/modules/dx/groupText/__tests__/groupText.test.ts +0 -69
- package/src/modules/dx/groupText/__tests__/mockProps.ts +0 -35
- package/src/modules/dx/groupText/groupText.css +0 -119
- package/src/modules/dx/groupText/groupText.html +0 -65
- package/src/modules/dx/groupText/groupText.stories.ts +0 -81
- package/src/modules/dx/groupText/groupText.ts +0 -93
- package/src/modules/dx/headTags/headTags.html +0 -3
- package/src/modules/dx/headTags/headTags.ts +0 -39
- package/src/modules/dx/header/__benchmarks__/header.benchmark.js +0 -45
- package/src/modules/dx/header/__tests__/header.test.ts +0 -236
- package/src/modules/dx/header/__tests__/mockNavArchitects.ts +0 -169
- package/src/modules/dx/header/__tests__/mockNavDevelopers.ts +0 -419
- package/src/modules/dx/header/__tests__/mockNavs.ts +0 -115
- package/src/modules/dx/header/__tests__/mockProps.ts +0 -164
- package/src/modules/dx/header/header.css +0 -109
- package/src/modules/dx/header/header.html +0 -129
- package/src/modules/dx/header/header.stories.ts +0 -172
- package/src/modules/dx/header/header.ts +0 -27
- package/src/modules/dx/headerMobileNavMenu/__tests__/headerMobileNavMenu.test.ts +0 -123
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +0 -160
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.html +0 -73
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +0 -102
- package/src/modules/dx/headerMobileNavMenuOption/__tests__/headerMobileNavMenuOption.test.ts +0 -38
- package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.css +0 -5
- package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.html +0 -14
- package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.ts +0 -20
- package/src/modules/dx/headerNav/__tests__/headerNav.test.ts +0 -49
- package/src/modules/dx/headerNav/headerNav.css +0 -31
- package/src/modules/dx/headerNav/headerNav.html +0 -48
- package/src/modules/dx/headerNav/headerNav.ts +0 -56
- package/src/modules/dx/headerSearch/__tests__/headerSearch.test.ts +0 -182
- package/src/modules/dx/headerSearch/__tests__/mockData.ts +0 -11
- package/src/modules/dx/headerSearch/__tests__/mockProps.ts +0 -6
- package/src/modules/dx/headerSearch/headerSearch.css +0 -62
- package/src/modules/dx/headerSearch/headerSearch.html +0 -64
- package/src/modules/dx/headerSearch/headerSearch.ts +0 -159
- package/src/modules/dx/helmet/__tests__/helmet.test.ts +0 -52
- package/src/modules/dx/helmet/helmet.css +0 -83
- package/src/modules/dx/helmet/helmet.html +0 -39
- package/src/modules/dx/helmet/helmet.stories.ts +0 -53
- package/src/modules/dx/helmet/helmet.ts +0 -27
- package/src/modules/dx/hr/__tests__/hr.test.ts +0 -53
- package/src/modules/dx/hr/__tests__/mockProps.ts +0 -16
- package/src/modules/dx/hr/hr.css +0 -55
- package/src/modules/dx/hr/hr.html +0 -23
- package/src/modules/dx/hr/hr.stories.ts +0 -50
- package/src/modules/dx/hr/hr.ts +0 -45
- package/src/modules/dx/icon/__tests__/icon.test.ts +0 -54
- package/src/modules/dx/icon/icon.css +0 -14
- package/src/modules/dx/icon/icon.html +0 -11
- package/src/modules/dx/icon/icon.stories.ts +0 -100
- package/src/modules/dx/icon/icon.ts +0 -85
- package/src/modules/dx/iconBadge/__tests__/iconBadge.test.ts +0 -17
- package/src/modules/dx/iconBadge/iconBadge.css +0 -40
- package/src/modules/dx/iconBadge/iconBadge.html +0 -10
- package/src/modules/dx/iconBadge/iconBadge.stories.ts +0 -32
- package/src/modules/dx/iconBadge/iconBadge.ts +0 -42
- package/src/modules/dx/imageAndLabel/__tests__/imageAndLabel.test.ts +0 -39
- package/src/modules/dx/imageAndLabel/__tests__/mockProps.ts +0 -6
- package/src/modules/dx/imageAndLabel/imageAndLabel.css +0 -54
- package/src/modules/dx/imageAndLabel/imageAndLabel.html +0 -22
- package/src/modules/dx/imageAndLabel/imageAndLabel.stories.ts +0 -48
- package/src/modules/dx/imageAndLabel/imageAndLabel.ts +0 -16
- package/src/modules/dx/input/__tests__/input.test.ts +0 -357
- package/src/modules/dx/input/input.css +0 -165
- package/src/modules/dx/input/input.html +0 -58
- package/src/modules/dx/input/input.stories.ts +0 -102
- package/src/modules/dx/input/input.ts +0 -238
- package/src/modules/dx/input/validators.ts +0 -5
- package/src/modules/dx/instrumentation/__tests__/instrumentation.test.ts +0 -86
- package/src/modules/dx/instrumentation/instrumentation.html +0 -1
- package/src/modules/dx/instrumentation/instrumentation.ts +0 -116
- package/src/modules/dx/interactiveImage/__tests__/interactiveImage.test.ts +0 -83
- package/src/modules/dx/interactiveImage/__tests__/mockProps.ts +0 -39
- package/src/modules/dx/interactiveImage/interactiveImage.css +0 -59
- package/src/modules/dx/interactiveImage/interactiveImage.html +0 -32
- package/src/modules/dx/interactiveImage/interactiveImage.stories.ts +0 -31
- package/src/modules/dx/interactiveImage/interactiveImage.ts +0 -71
- package/src/modules/dx/lazy/__tests__/lazy.test.ts +0 -43
- package/src/modules/dx/lazy/lazy.html +0 -5
- package/src/modules/dx/lazy/lazy.stories.ts +0 -132
- package/src/modules/dx/lazy/lazy.ts +0 -163
- package/src/modules/dx/logo/logo.css +0 -33
- package/src/modules/dx/logo/logo.html +0 -6
- package/src/modules/dx/logo/logo.ts +0 -8
- package/src/modules/dx/newsletterForm/newsletterForm.css +0 -73
- package/src/modules/dx/newsletterForm/newsletterForm.html +0 -73
- package/src/modules/dx/newsletterForm/newsletterForm.ts +0 -238
- package/src/modules/dx/pagination/__tests__/pagination.test.ts +0 -121
- package/src/modules/dx/pagination/pagination.css +0 -51
- package/src/modules/dx/pagination/pagination.html +0 -45
- package/src/modules/dx/pagination/pagination.stories.ts +0 -88
- package/src/modules/dx/pagination/pagination.ts +0 -93
- package/src/modules/dx/podcastHost/__tests__/mockProps.ts +0 -8
- package/src/modules/dx/podcastHost/__tests__/podcastHost.test.ts +0 -21
- package/src/modules/dx/podcastHost/podcastHost.css +0 -62
- package/src/modules/dx/podcastHost/podcastHost.html +0 -28
- package/src/modules/dx/podcastHost/podcastHost.stories.ts +0 -17
- package/src/modules/dx/podcastHost/podcastHost.ts +0 -13
- package/src/modules/dx/podcastPlayer/__tests__/podcastPlayer.test.ts +0 -20
- package/src/modules/dx/podcastPlayer/podcastPlayer.css +0 -10
- package/src/modules/dx/podcastPlayer/podcastPlayer.html +0 -3
- package/src/modules/dx/podcastPlayer/podcastPlayer.stories.ts +0 -13
- package/src/modules/dx/podcastPlayer/podcastPlayer.ts +0 -5
- package/src/modules/dx/podcastSubscription/__tests__/podcastSubscription.test.ts +0 -16
- package/src/modules/dx/podcastSubscription/podcastSubscription.css +0 -92
- package/src/modules/dx/podcastSubscription/podcastSubscription.html +0 -24
- package/src/modules/dx/podcastSubscription/podcastSubscription.stories.ts +0 -23
- package/src/modules/dx/podcastSubscription/podcastSubscription.ts +0 -58
- package/src/modules/dx/popover/__tests__/mockProps.ts +0 -8
- package/src/modules/dx/popover/__tests__/popover.test.ts +0 -313
- package/src/modules/dx/popover/popover.css +0 -63
- package/src/modules/dx/popover/popover.html +0 -16
- package/src/modules/dx/popover/popover.stories.ts +0 -82
- package/src/modules/dx/popover/popover.ts +0 -313
- package/src/modules/dx/radioGroup/__tests__/mockProps.ts +0 -12
- package/src/modules/dx/radioGroup/__tests__/radioGroup.test.ts +0 -42
- package/src/modules/dx/radioGroup/radioGroup.css +0 -12
- package/src/modules/dx/radioGroup/radioGroup.html +0 -16
- package/src/modules/dx/radioGroup/radioGroup.stories.ts +0 -25
- package/src/modules/dx/radioGroup/radioGroup.ts +0 -65
- package/src/modules/dx/relativeDateTime/__tests__/mockProps.ts +0 -55
- package/src/modules/dx/relativeDateTime/__tests__/relativeDateTime.test.ts +0 -52
- package/src/modules/dx/relativeDateTime/relativeDateTime.html +0 -3
- package/src/modules/dx/relativeDateTime/relativeDateTime.stories.ts +0 -83
- package/src/modules/dx/relativeDateTime/relativeDateTime.ts +0 -113
- package/src/modules/dx/searchResults/coveo.css +0 -18989
- package/src/modules/dx/searchResults/searchResults.css +0 -387
- package/src/modules/dx/searchResults/searchResults.html +0 -104
- package/src/modules/dx/searchResults/searchResults.stories.ts +0 -36
- package/src/modules/dx/searchResults/searchResults.ts +0 -186
- package/src/modules/dx/section/__tests__/section.test.ts +0 -17
- package/src/modules/dx/section/section.css +0 -130
- package/src/modules/dx/section/section.html +0 -66
- package/src/modules/dx/section/section.stories.ts +0 -381
- package/src/modules/dx/section/section.ts +0 -41
- package/src/modules/dx/sectionSignup/__tests__/sectionSignup.test.ts +0 -66
- package/src/modules/dx/sectionSignup/sectionSignup.css +0 -43
- package/src/modules/dx/sectionSignup/sectionSignup.html +0 -23
- package/src/modules/dx/sectionSignup/sectionSignup.stories.ts +0 -49
- package/src/modules/dx/sectionSignup/sectionSignup.ts +0 -44
- package/src/modules/dx/select/select.css +0 -44
- package/src/modules/dx/select/select.html +0 -60
- package/src/modules/dx/select/select.stories.ts +0 -59
- package/src/modules/dx/select/select.ts +0 -23
- package/src/modules/dx/sidebar/__tests__/mockProps.ts +0 -181
- package/src/modules/dx/sidebar/__tests__/mockSearchChangeEmptyEvent.ts +0 -6
- package/src/modules/dx/sidebar/__tests__/mockSearchChangeEvent.ts +0 -527
- package/src/modules/dx/sidebar/__tests__/sidebar.test.ts +0 -568
- package/src/modules/dx/sidebar/sidebar.css +0 -192
- package/src/modules/dx/sidebar/sidebar.html +0 -94
- package/src/modules/dx/sidebar/sidebar.stories.ts +0 -188
- package/src/modules/dx/sidebar/sidebar.ts +0 -255
- package/src/modules/dx/sidebarOld/__tests__/mockProps.ts +0 -178
- package/src/modules/dx/sidebarOld/__tests__/sidebarOld.test.ts +0 -570
- package/src/modules/dx/sidebarOld/sidebarOld.css +0 -160
- package/src/modules/dx/sidebarOld/sidebarOld.html +0 -70
- package/src/modules/dx/sidebarOld/sidebarOld.stories.ts +0 -139
- package/src/modules/dx/sidebarOld/sidebarOld.ts +0 -187
- package/src/modules/dx/sidebarSearch/__tests__/mockPreloadedState.ts +0 -1686
- package/src/modules/dx/sidebarSearch/__tests__/sidebarSearch.test.ts +0 -175
- package/src/modules/dx/sidebarSearch/sidebarSearch.css +0 -3
- package/src/modules/dx/sidebarSearch/sidebarSearch.html +0 -26
- package/src/modules/dx/sidebarSearch/sidebarSearch.ts +0 -440
- package/src/modules/dx/sidebarSearchResult/__tests__/sidebarSearchResult.test.ts +0 -96
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +0 -36
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.html +0 -14
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.ts +0 -70
- package/src/modules/dx/skipNavLink/skipNavLink.css +0 -21
- package/src/modules/dx/skipNavLink/skipNavLink.html +0 -3
- package/src/modules/dx/skipNavLink/skipNavLink.ts +0 -3
- package/src/modules/dx/slackCta/__tests__/slackCta.test.ts +0 -48
- package/src/modules/dx/slackCta/slackCta.css +0 -41
- package/src/modules/dx/slackCta/slackCta.html +0 -17
- package/src/modules/dx/slackCta/slackCta.stories.ts +0 -25
- package/src/modules/dx/slackCta/slackCta.ts +0 -13
- package/src/modules/dx/socials/__tests__/socials.test.ts +0 -114
- package/src/modules/dx/socials/socials.css +0 -35
- package/src/modules/dx/socials/socials.html +0 -22
- package/src/modules/dx/socials/socials.stories.ts +0 -24
- package/src/modules/dx/socials/socials.ts +0 -81
- package/src/modules/dx/spinner/__tests__/spinner.test.ts +0 -37
- package/src/modules/dx/spinner/spinner.css +0 -750
- package/src/modules/dx/spinner/spinner.html +0 -6
- package/src/modules/dx/spinner/spinner.stories.ts +0 -69
- package/src/modules/dx/spinner/spinner.ts +0 -20
- package/src/modules/dx/tab/__tests__/tab.test.ts +0 -129
- package/src/modules/dx/tab/tab.css +0 -106
- package/src/modules/dx/tab/tab.html +0 -13
- package/src/modules/dx/tab/tab.stories.ts +0 -57
- package/src/modules/dx/tab/tab.ts +0 -52
- package/src/modules/dx/toc/__tests__/mockProps.ts +0 -28
- package/src/modules/dx/toc/__tests__/toc.test.ts +0 -109
- package/src/modules/dx/toc/toc.css +0 -94
- package/src/modules/dx/toc/toc.html +0 -28
- package/src/modules/dx/toc/toc.stories.ts +0 -26
- package/src/modules/dx/toc/toc.ts +0 -77
- package/src/modules/dx/tooltip/__tests__/tooltip.test.ts +0 -22
- package/src/modules/dx/tooltip/microtip.css +0 -269
- package/src/modules/dx/tooltip/tooltip.css +0 -36
- package/src/modules/dx/tooltip/tooltip.html +0 -5
- package/src/modules/dx/tooltip/tooltip.stories.ts +0 -46
- package/src/modules/dx/tooltip/tooltip.ts +0 -6
- package/src/modules/dx/topics/__tests__/mockProps.ts +0 -3
- package/src/modules/dx/topics/__tests__/topics.test.ts +0 -31
- package/src/modules/dx/topics/topics.css +0 -25
- package/src/modules/dx/topics/topics.html +0 -12
- package/src/modules/dx/topics/topics.ts +0 -25
- package/src/modules/dx/tree/__tests__/mockProps.ts +0 -215
- package/src/modules/dx/tree/__tests__/tree.test.ts +0 -346
- package/src/modules/dx/tree/__tests__/treeHandler.test.ts +0 -194
- package/src/modules/dx/tree/tree.css +0 -5
- package/src/modules/dx/tree/tree.html +0 -11
- package/src/modules/dx/tree/tree.stories.ts +0 -65
- package/src/modules/dx/tree/tree.ts +0 -72
- package/src/modules/dx/tree/treeHandler.ts +0 -100
- package/src/modules/dx/treeItem/__tests__/mockProps.ts +0 -46
- package/src/modules/dx/treeItem/__tests__/treeItem.test.ts +0 -377
- package/src/modules/dx/treeItem/treeItem.css +0 -14
- package/src/modules/dx/treeItem/treeItem.html +0 -22
- package/src/modules/dx/treeItem/treeItem.ts +0 -110
- package/src/modules/dx/treeTile/__tests__/mockProps.ts +0 -16
- package/src/modules/dx/treeTile/__tests__/treeTile.test.ts +0 -168
- package/src/modules/dx/treeTile/treeTile.css +0 -190
- package/src/modules/dx/treeTile/treeTile.html +0 -27
- package/src/modules/dx/treeTile/treeTile.ts +0 -59
- package/src/modules/dx/typeBadge/__tests__/typeBadge.test.ts +0 -77
- package/src/modules/dx/typeBadge/typeBadge.css +0 -74
- package/src/modules/dx/typeBadge/typeBadge.html +0 -5
- package/src/modules/dx/typeBadge/typeBadge.stories.ts +0 -114
- package/src/modules/dx/typeBadge/typeBadge.ts +0 -65
- package/src/modules/dx/typeBadgeGroup/__tests__/mockProps.ts +0 -11
- package/src/modules/dx/typeBadgeGroup/__tests__/typeBadgeGroup.test.ts +0 -72
- package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.css +0 -12
- package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.html +0 -11
- package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.stories.ts +0 -19
- package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.ts +0 -18
- package/src/modules/helpers/animations/animations.css +0 -15
- package/src/modules/helpers/button/button.css +0 -4
- package/src/modules/helpers/card/card.css +0 -258
- package/src/modules/helpers/code/code.css +0 -296
- package/src/modules/helpers/commonHeader/commonHeader.css +0 -130
- package/src/modules/helpers/reset/reset.css +0 -559
- package/src/modules/helpers/sidebar/sidebar.css +0 -21
- package/src/modules/helpers/slds/slds.css +0 -191
- package/src/modules/helpers/table/table.css +0 -110
- package/src/modules/helpers/text/text.css +0 -163
- package/src/modules/test-components/buttonTest/buttonTest.html +0 -3
- package/src/modules/test-components/buttonTest/buttonTest.ts +0 -3
- package/src/modules/test-components/codeBlockTest/codeBlockTest.js +0 -4
- package/src/modules/test-components/featureGridTest/featureGridTest.html +0 -7
- package/src/modules/test-components/featureGridTest/featureGridTest.ts +0 -5
- package/src/modules/test-components/instrumentationTest/instrumentationTest.html +0 -4
- package/src/modules/test-components/instrumentationTest/instrumentationTest.ts +0 -8
- package/src/modules/test-components/popoverTest/popoverTest.html +0 -6
- package/src/modules/test-components/popoverTest/popoverTest.ts +0 -5
- package/src/modules/utils/highlight/__tests__/highlight.test.ts +0 -108
- package/src/modules/utils/highlight/__tests__/mockProps.ts +0 -45
- package/src/modules/utils/highlight/highlight.ts +0 -32
- package/src/modules/utils/normalizers/normalizers.ts +0 -91
- package/src/modules/utils-internal/archiveCard/archiveCard.ts +0 -35
- package/src/modules/utils-internal/coveo/coveo.ts +0 -70
- package/src/modules/utils-internal/css/css.ts +0 -43
- package/src/modules/utils-internal/devices/devices.ts +0 -1
- package/src/modules/utils-internal/headerBase/headerBase.ts +0 -204
- package/src/modules/utils-internal/jest/jest.ts +0 -58
- package/src/modules/utils-internal/options/options.ts +0 -39
- package/src/modules/utils-internal/prismjs/prismjs.html +0 -3
- package/src/modules/utils-internal/prismjs/prismjs.ts +0 -3321
- package/src/modules/utils-internal/recentSearches/__tests__/recentSearches.test.ts +0 -83
- package/src/modules/utils-internal/recentSearches/recentSearches.ts +0 -57
- package/src/modules/utils-internal/regexps/regexps.ts +0 -5
- package/src/modules/utils-internal/seo/seo.ts +0 -4
- package/src/modules/utils-internal/slot/slot.ts +0 -17
- package/src/modules/utils-internal/storybook/storybook.ts +0 -32
- package/src/modules/utils-internal/tests/tests.ts +0 -38
- package/src/modules/utils-internal/wordpress/__tests__/wordpress.test.ts +0 -15
- package/src/modules/utils-internal/wordpress/wordpress.ts +0 -13
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
import { html } from "lit-html";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "dx/dx-card-docs",
|
|
5
|
-
component: "dx-card-docs"
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const createStyles = () => html`
|
|
9
|
-
<style>
|
|
10
|
-
span {
|
|
11
|
-
color: grey;
|
|
12
|
-
}
|
|
13
|
-
dx-card-docs {
|
|
14
|
-
margin-top: 25px;
|
|
15
|
-
margin-bottom: 25px;
|
|
16
|
-
width: 400px;
|
|
17
|
-
max-width: 100%;
|
|
18
|
-
min-width: 240px;
|
|
19
|
-
}
|
|
20
|
-
</style>
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
export const Base = () => html`
|
|
24
|
-
${createStyles()}
|
|
25
|
-
<span>With image</span>
|
|
26
|
-
|
|
27
|
-
<dx-card-docs
|
|
28
|
-
body="This is a pretty long card body. It could say just about anything regarding the content of this card."
|
|
29
|
-
href="https://developer.salesforce.com/"
|
|
30
|
-
img-alt="Scenic view of a mountain."
|
|
31
|
-
img-src="https://i.imgur.com/FUsyxR5.jpg"
|
|
32
|
-
label="Documentation"
|
|
33
|
-
title="Einstein Platform Services Developer Guide"
|
|
34
|
-
>
|
|
35
|
-
<dx-button
|
|
36
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
37
|
-
target="_blank"
|
|
38
|
-
variant="inline"
|
|
39
|
-
icon-symbol="forward"
|
|
40
|
-
>
|
|
41
|
-
Read Guide
|
|
42
|
-
</dx-button>
|
|
43
|
-
</dx-card-docs>
|
|
44
|
-
|
|
45
|
-
<span>Without image</span>
|
|
46
|
-
|
|
47
|
-
<dx-card-docs
|
|
48
|
-
body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
|
|
49
|
-
href="https://developer.salesforce.com/"
|
|
50
|
-
label="API"
|
|
51
|
-
title="Quip SCIM API Documentation"
|
|
52
|
-
>
|
|
53
|
-
<dx-button
|
|
54
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
55
|
-
target="_blank"
|
|
56
|
-
variant="inline"
|
|
57
|
-
>
|
|
58
|
-
Overview
|
|
59
|
-
</dx-button>
|
|
60
|
-
<dx-button
|
|
61
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
62
|
-
target="_blank"
|
|
63
|
-
variant="inline"
|
|
64
|
-
>
|
|
65
|
-
Guides
|
|
66
|
-
</dx-button>
|
|
67
|
-
<dx-button
|
|
68
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
69
|
-
target="_blank"
|
|
70
|
-
variant="inline"
|
|
71
|
-
>
|
|
72
|
-
Reference
|
|
73
|
-
</dx-button>
|
|
74
|
-
</dx-card-docs>
|
|
75
|
-
|
|
76
|
-
<span>With new window icon and target set to '_blank'</span>
|
|
77
|
-
|
|
78
|
-
<dx-card-docs
|
|
79
|
-
body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
|
|
80
|
-
href="https://developer.salesforce.com/"
|
|
81
|
-
label="API"
|
|
82
|
-
title="Quip SCIM API Documentation"
|
|
83
|
-
target="_blank"
|
|
84
|
-
>
|
|
85
|
-
<dx-button
|
|
86
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
87
|
-
target="_blank"
|
|
88
|
-
variant="inline"
|
|
89
|
-
>
|
|
90
|
-
Overview
|
|
91
|
-
</dx-button>
|
|
92
|
-
<dx-button
|
|
93
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
94
|
-
target="_blank"
|
|
95
|
-
variant="inline"
|
|
96
|
-
>
|
|
97
|
-
Guides
|
|
98
|
-
</dx-button>
|
|
99
|
-
<dx-button
|
|
100
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
101
|
-
target="_blank"
|
|
102
|
-
variant="inline"
|
|
103
|
-
>
|
|
104
|
-
Reference
|
|
105
|
-
</dx-button>
|
|
106
|
-
</dx-card-docs>
|
|
107
|
-
`;
|
|
108
|
-
|
|
109
|
-
// prettier-ignore
|
|
110
|
-
export const Grid = () => html`
|
|
111
|
-
<dx-grid columns="three">
|
|
112
|
-
<dx-card-docs
|
|
113
|
-
body="This is a pretty long card body. It could say just about anything regarding the content of this card."
|
|
114
|
-
href="https://developer.salesforce.com/"
|
|
115
|
-
img-alt="Scenic view of a mountain."
|
|
116
|
-
img-src="https://i.imgur.com/FUsyxR5.jpg"
|
|
117
|
-
label="Documentation"
|
|
118
|
-
title="Einstein Platform Services Developer Guide"
|
|
119
|
-
>
|
|
120
|
-
<dx-button
|
|
121
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
122
|
-
target="_blank"
|
|
123
|
-
variant="inline"
|
|
124
|
-
icon-symbol="forward"
|
|
125
|
-
>
|
|
126
|
-
Read Guide
|
|
127
|
-
</dx-button>
|
|
128
|
-
</dx-card-docs>
|
|
129
|
-
<dx-card-docs
|
|
130
|
-
body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
|
|
131
|
-
href="https://developer.salesforce.com/"
|
|
132
|
-
label="API"
|
|
133
|
-
title="Quip SCIM API"
|
|
134
|
-
>
|
|
135
|
-
<dx-button
|
|
136
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
137
|
-
target="_blank"
|
|
138
|
-
variant="inline"
|
|
139
|
-
>
|
|
140
|
-
Overview
|
|
141
|
-
</dx-button>
|
|
142
|
-
<dx-button
|
|
143
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
144
|
-
target="_blank"
|
|
145
|
-
variant="inline"
|
|
146
|
-
>
|
|
147
|
-
Guides
|
|
148
|
-
</dx-button>
|
|
149
|
-
<dx-button
|
|
150
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
151
|
-
target="_blank"
|
|
152
|
-
variant="inline"
|
|
153
|
-
>
|
|
154
|
-
Reference
|
|
155
|
-
</dx-button>
|
|
156
|
-
</dx-card-docs>
|
|
157
|
-
<dx-card-docs
|
|
158
|
-
body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
|
|
159
|
-
href="https://developer.salesforce.com/"
|
|
160
|
-
label="API"
|
|
161
|
-
title="Quip SCIM API"
|
|
162
|
-
>
|
|
163
|
-
<dx-button
|
|
164
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
165
|
-
target="_blank"
|
|
166
|
-
variant="inline"
|
|
167
|
-
>
|
|
168
|
-
Overview
|
|
169
|
-
</dx-button>
|
|
170
|
-
<dx-button
|
|
171
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
172
|
-
target="_blank"
|
|
173
|
-
variant="inline"
|
|
174
|
-
>
|
|
175
|
-
Guides
|
|
176
|
-
</dx-button>
|
|
177
|
-
<dx-button
|
|
178
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
179
|
-
target="_blank"
|
|
180
|
-
variant="inline"
|
|
181
|
-
>
|
|
182
|
-
Reference
|
|
183
|
-
</dx-button>
|
|
184
|
-
</dx-card-docs>
|
|
185
|
-
<dx-card-docs
|
|
186
|
-
body="This is a pretty long card body. It could say just about anything regarding the content of this card."
|
|
187
|
-
href="https://developer.salesforce.com/"
|
|
188
|
-
img-alt="Scenic view of a mountain."
|
|
189
|
-
img-src="https://i.imgur.com/FUsyxR5.jpg"
|
|
190
|
-
label="Documentation"
|
|
191
|
-
title="Einstein Platform Services Developer Guide"
|
|
192
|
-
>
|
|
193
|
-
<dx-button
|
|
194
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
195
|
-
target="_blank"
|
|
196
|
-
variant="inline"
|
|
197
|
-
icon-symbol="forward"
|
|
198
|
-
>
|
|
199
|
-
Read Guide
|
|
200
|
-
</dx-button>
|
|
201
|
-
</dx-card-docs>
|
|
202
|
-
<dx-card-docs
|
|
203
|
-
body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
|
|
204
|
-
href="https://developer.salesforce.com/"
|
|
205
|
-
label="API"
|
|
206
|
-
title="Quip SCIM API"
|
|
207
|
-
>
|
|
208
|
-
<dx-button
|
|
209
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
210
|
-
target="_blank"
|
|
211
|
-
variant="inline"
|
|
212
|
-
>
|
|
213
|
-
Overview
|
|
214
|
-
</dx-button>
|
|
215
|
-
<dx-button
|
|
216
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
217
|
-
target="_blank"
|
|
218
|
-
variant="inline"
|
|
219
|
-
>
|
|
220
|
-
Guides
|
|
221
|
-
</dx-button>
|
|
222
|
-
<dx-button
|
|
223
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
224
|
-
target="_blank"
|
|
225
|
-
variant="inline"
|
|
226
|
-
>
|
|
227
|
-
Reference
|
|
228
|
-
</dx-button>
|
|
229
|
-
</dx-card-docs>
|
|
230
|
-
<dx-card-docs
|
|
231
|
-
body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
|
|
232
|
-
href="https://developer.salesforce.com/"
|
|
233
|
-
label="API"
|
|
234
|
-
title="Quip SCIM API"
|
|
235
|
-
>
|
|
236
|
-
<dx-button
|
|
237
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
238
|
-
target="_blank"
|
|
239
|
-
variant="inline"
|
|
240
|
-
>
|
|
241
|
-
Overview
|
|
242
|
-
</dx-button>
|
|
243
|
-
<dx-button
|
|
244
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
245
|
-
target="_blank"
|
|
246
|
-
variant="inline"
|
|
247
|
-
>
|
|
248
|
-
Guides
|
|
249
|
-
</dx-button>
|
|
250
|
-
<dx-button
|
|
251
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
252
|
-
target="_blank"
|
|
253
|
-
variant="inline"
|
|
254
|
-
>
|
|
255
|
-
Reference
|
|
256
|
-
</dx-button>
|
|
257
|
-
</dx-card-docs>
|
|
258
|
-
<dx-card-docs
|
|
259
|
-
body="This is a pretty long card body. It could say just about anything regarding the content of this card."
|
|
260
|
-
href="https://developer.salesforce.com/"
|
|
261
|
-
img-alt="Scenic view of a mountain."
|
|
262
|
-
img-src="https://i.imgur.com/FUsyxR5.jpg"
|
|
263
|
-
label="Documentation"
|
|
264
|
-
title="Einstein Platform Services Developer Guide"
|
|
265
|
-
>
|
|
266
|
-
<dx-button
|
|
267
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
268
|
-
target="_blank"
|
|
269
|
-
variant="inline"
|
|
270
|
-
icon-symbol="forward"
|
|
271
|
-
>
|
|
272
|
-
Read Guide
|
|
273
|
-
</dx-button>
|
|
274
|
-
</dx-card-docs>
|
|
275
|
-
<dx-card-docs
|
|
276
|
-
body="This is a pretty long card body. It could say just about anything regarding the content of this card."
|
|
277
|
-
href="https://developer.salesforce.com/"
|
|
278
|
-
img-alt="Scenic view of a mountain."
|
|
279
|
-
img-src="https://i.imgur.com/FUsyxR5.jpg"
|
|
280
|
-
label="Documentation"
|
|
281
|
-
title="Einstein Platform Services Developer Guide"
|
|
282
|
-
>
|
|
283
|
-
<dx-button
|
|
284
|
-
href="http://tweetflight.wearebrightly.com/"
|
|
285
|
-
target="_blank"
|
|
286
|
-
variant="inline"
|
|
287
|
-
icon-symbol="forward"
|
|
288
|
-
>
|
|
289
|
-
Read Guide
|
|
290
|
-
</dx-button>
|
|
291
|
-
</dx-card-docs>
|
|
292
|
-
<dx-card-callout
|
|
293
|
-
background-color="indigo-vibrant-30"
|
|
294
|
-
href="/build-stuff"
|
|
295
|
-
title="Find an upcoming event"
|
|
296
|
-
label="Calendar"
|
|
297
|
-
></dx-card-callout>
|
|
298
|
-
</dx-grid>
|
|
299
|
-
`;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { LightningElement, api } from "lwc";
|
|
2
|
-
import cx from "classnames";
|
|
3
|
-
import { LightningSlotElement } from "typings/custom";
|
|
4
|
-
import { stopPropagationOnSlotted } from "utils-internal/slot";
|
|
5
|
-
|
|
6
|
-
export default class CardDocs extends LightningElement {
|
|
7
|
-
@api body!: string;
|
|
8
|
-
@api href!: string;
|
|
9
|
-
@api imgAlt?: string = "";
|
|
10
|
-
@api imgSrc?: string | null = null;
|
|
11
|
-
@api label!: string;
|
|
12
|
-
@api title!: string;
|
|
13
|
-
@api target?: string | null = null;
|
|
14
|
-
@api showMobileImg?: boolean = false;
|
|
15
|
-
|
|
16
|
-
private isLinkHovered: boolean = false;
|
|
17
|
-
|
|
18
|
-
private get className(): string {
|
|
19
|
-
return cx(
|
|
20
|
-
"card",
|
|
21
|
-
"dx-card-base",
|
|
22
|
-
this.imgSrc && "has-image",
|
|
23
|
-
this.showMobileImg && "show-mobile-image"
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
private onSlotChange(e: LightningSlotElement) {
|
|
28
|
-
stopPropagationOnSlotted(e);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jest/no-mocks-import */
|
|
2
|
-
import CardEvent from "dx/cardEvent";
|
|
3
|
-
import { createRenderComponent } from "utils-internal/tests";
|
|
4
|
-
import mockProps from "./mockProps";
|
|
5
|
-
|
|
6
|
-
const TAG = "dx-card-event";
|
|
7
|
-
const render = createRenderComponent(TAG, CardEvent);
|
|
8
|
-
|
|
9
|
-
describe(TAG, () => {
|
|
10
|
-
it("renders the date", () => {
|
|
11
|
-
const component = render(mockProps);
|
|
12
|
-
const dateEl = component.shadowRoot.querySelector(".card-event");
|
|
13
|
-
expect(dateEl).not.toBeNull();
|
|
14
|
-
return expect(component).toBeAccessible();
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
it("doesn't render end datetime ui if property not provided", () => {
|
|
18
|
-
const component = render({
|
|
19
|
-
title: mockProps.title,
|
|
20
|
-
startDatetime: mockProps.startDatetime,
|
|
21
|
-
hre: mockProps.href
|
|
22
|
-
});
|
|
23
|
-
const endtimeEls =
|
|
24
|
-
component.shadowRoot.querySelectorAll(".end-date-time");
|
|
25
|
-
expect(endtimeEls.length).toEqual(0);
|
|
26
|
-
return expect(component).toBeAccessible();
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it("renders the correct number of date time components", () => {
|
|
30
|
-
const component = render(mockProps);
|
|
31
|
-
const datetimeEl = component.shadowRoot.querySelectorAll(
|
|
32
|
-
"dx-formatted-date-time"
|
|
33
|
-
);
|
|
34
|
-
expect(datetimeEl.length).toEqual(5);
|
|
35
|
-
return expect(component).toBeAccessible();
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it("fires events", () => {
|
|
39
|
-
const element = render({
|
|
40
|
-
...mockProps,
|
|
41
|
-
imgSrc: "https://i.imgur.com/FUsyxR5.jpg",
|
|
42
|
-
featured: true
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
const imagelink: HTMLElement =
|
|
46
|
-
element.shadowRoot.querySelector(".image-link");
|
|
47
|
-
const containerDiv: HTMLElement =
|
|
48
|
-
element.shadowRoot.querySelector("div");
|
|
49
|
-
|
|
50
|
-
expect(containerDiv.classList).toContain("dx-card-base_featured");
|
|
51
|
-
|
|
52
|
-
imagelink.dispatchEvent(new CustomEvent("mouseenter"));
|
|
53
|
-
|
|
54
|
-
return Promise.resolve()
|
|
55
|
-
.then(() => {
|
|
56
|
-
expect(containerDiv.classList).toContain(
|
|
57
|
-
"dx-card-base_link-hovered"
|
|
58
|
-
);
|
|
59
|
-
imagelink.dispatchEvent(new CustomEvent("mouseleave"));
|
|
60
|
-
})
|
|
61
|
-
.then(() => {
|
|
62
|
-
expect(containerDiv.classList).not.toContain(
|
|
63
|
-
"dx-card-base_link-hovered"
|
|
64
|
-
);
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it("renders the short description", () => {
|
|
69
|
-
const component = render(mockProps);
|
|
70
|
-
const shortDescEl =
|
|
71
|
-
component.shadowRoot.querySelector(".dx-text-body-2");
|
|
72
|
-
expect(shortDescEl).not.toBeNull();
|
|
73
|
-
return expect(component).toBeAccessible();
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
it("renders a badge when type is set", () => {
|
|
77
|
-
const component = render({
|
|
78
|
-
...mockProps,
|
|
79
|
-
type: "Webinar"
|
|
80
|
-
});
|
|
81
|
-
const badgeEl = component.shadowRoot.querySelector("dx-type-badge");
|
|
82
|
-
expect(badgeEl).not.toBeNull();
|
|
83
|
-
return expect(component).toBeAccessible();
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
it("renders a subtitle when location is set", () => {
|
|
87
|
-
const component = render({
|
|
88
|
-
...mockProps,
|
|
89
|
-
location: "YOUTUBE LIVE"
|
|
90
|
-
});
|
|
91
|
-
const subtitleEl = component.shadowRoot.querySelector(".subtitle");
|
|
92
|
-
expect(subtitleEl).not.toBeNull();
|
|
93
|
-
return expect(component).toBeAccessible();
|
|
94
|
-
});
|
|
95
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const startDatetime = new Date(0, 0, 1, 9, 0, 0).toISOString();
|
|
2
|
-
const endDatetime = new Date(0, 0, 1, 12, 0, 0).toISOString();
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "Virtual Event: Salesforce Life for Financial Services",
|
|
6
|
-
startDatetime: startDatetime,
|
|
7
|
-
endDatetime: endDatetime,
|
|
8
|
-
href: "www.salesforce.com",
|
|
9
|
-
shortDescription: "Virtual Event: Salesforce Life for Financial Services"
|
|
10
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
@import "helpers/reset";
|
|
2
|
-
@import "helpers/text";
|
|
3
|
-
@import "helpers/card";
|
|
4
|
-
|
|
5
|
-
.card-event {
|
|
6
|
-
display: flex;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.card-event:not(.dx-card-base_layout-horizontal) {
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.details {
|
|
14
|
-
align-self: flex-start;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: row;
|
|
17
|
-
padding-top: var(--dx-g-spacing-small);
|
|
18
|
-
padding-bottom: var(--dx-g-spacing-small);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* sections */
|
|
22
|
-
.card-event_date-section {
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: center;
|
|
26
|
-
border-right: var(--dx-g-card-border);
|
|
27
|
-
padding-right: var(--dx-g-card-img-spacing);
|
|
28
|
-
margin-right: var(--dx-g-card-img-spacing);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.card-event_detail-section {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
justify-content: start;
|
|
35
|
-
align-items: start;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.card-event_date-section,
|
|
39
|
-
.card-event_detail-section {
|
|
40
|
-
padding-top: var(--dx-g-spacing-xs);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.month {
|
|
44
|
-
text-transform: uppercase;
|
|
45
|
-
margin-bottom: var(--dx-g-spacing-sm);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.dx-card-base_featured .card-event_detail-section > *:not(:last-child) {
|
|
49
|
-
margin-bottom: var(--dx-g-card-item-spacing);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.card-event_detail-datetime-row {
|
|
53
|
-
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
font-family: var(--dx-g-font-sans);
|
|
56
|
-
font-size: var(--dx-g-text-base);
|
|
57
|
-
color: var(--dx-g-gray-10);
|
|
58
|
-
flex-wrap: wrap;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.card-event_detail-datetime-spacing {
|
|
62
|
-
padding-right: var(--dx-g-spacing-xs);
|
|
63
|
-
padding-left: var(--dx-g-spacing-xs);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.subtitle-container {
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.subtitle-container > .subtitle {
|
|
72
|
-
margin-right: var(--dx-g-spacing-sm);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.card-event:not(.dx-card-base_featured) .subtitle {
|
|
76
|
-
display: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
dx-button {
|
|
80
|
-
margin-top: var(--dx-g-spacing-sm);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
dx-type-badge {
|
|
84
|
-
margin-top: var(--dx-g-spacing-sm);
|
|
85
|
-
margin-bottom: var(--dx-g-spacing-sm);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@media (max-width: 1024px) {
|
|
89
|
-
.card-event:not(.dx-card-base_featured) .image-link {
|
|
90
|
-
display: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.dx-text-heading-5 {
|
|
94
|
-
font-size: 18px;
|
|
95
|
-
line-height: 24px;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.dx-text-heading-4 {
|
|
99
|
-
font-size: 24px;
|
|
100
|
-
line-height: 28px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.dx-text-body-3 {
|
|
104
|
-
font-size: 14px;
|
|
105
|
-
line-height: 20px;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class={className}>
|
|
3
|
-
<a
|
|
4
|
-
if:true={imgSrc}
|
|
5
|
-
href={href}
|
|
6
|
-
onmouseenter={setLinkHovered}
|
|
7
|
-
onmouseleave={setLinkInactive}
|
|
8
|
-
target={target}
|
|
9
|
-
class="image-link dx-card-base_borderless-image_link"
|
|
10
|
-
>
|
|
11
|
-
<img
|
|
12
|
-
alt={imgAlt}
|
|
13
|
-
class="image dx-card-base_image dx-card-base_borderless-image"
|
|
14
|
-
src={imgSrc}
|
|
15
|
-
/>
|
|
16
|
-
</a>
|
|
17
|
-
<div class="details">
|
|
18
|
-
<div class="card-event_date card-event_date-section">
|
|
19
|
-
<dx-formatted-date-time
|
|
20
|
-
class="dx-text-heading-5 month"
|
|
21
|
-
value={startDatetime}
|
|
22
|
-
month="short"
|
|
23
|
-
></dx-formatted-date-time>
|
|
24
|
-
<dx-formatted-date-time
|
|
25
|
-
class="dx-text-heading-1 day"
|
|
26
|
-
value={startDatetime}
|
|
27
|
-
day="2-digit"
|
|
28
|
-
></dx-formatted-date-time>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="card-event_detail-section">
|
|
31
|
-
<dx-card-title
|
|
32
|
-
href={href}
|
|
33
|
-
onmouseenter={setLinkHovered}
|
|
34
|
-
onmouseleave={setLinkInactive}
|
|
35
|
-
target={target}
|
|
36
|
-
title={title}
|
|
37
|
-
></dx-card-title>
|
|
38
|
-
<div class="subtitle-container">
|
|
39
|
-
<span
|
|
40
|
-
class="subtitle dx-text-label-1-dark"
|
|
41
|
-
if:true={location}
|
|
42
|
-
part="subtitle"
|
|
43
|
-
>
|
|
44
|
-
{location}
|
|
45
|
-
</span>
|
|
46
|
-
<dx-type-badge
|
|
47
|
-
color={brandType}
|
|
48
|
-
type="content-type"
|
|
49
|
-
value={type}
|
|
50
|
-
if:true={type}
|
|
51
|
-
></dx-type-badge>
|
|
52
|
-
</div>
|
|
53
|
-
<span
|
|
54
|
-
class="dx-text-body-2"
|
|
55
|
-
if:true={shortDescription}
|
|
56
|
-
part="description"
|
|
57
|
-
>
|
|
58
|
-
{shortDescription}
|
|
59
|
-
</span>
|
|
60
|
-
<span class="card-event_detail-datetime-row">
|
|
61
|
-
<dx-formatted-date-time
|
|
62
|
-
class="dx-text-body-3"
|
|
63
|
-
value={startDatetime}
|
|
64
|
-
weekday="long"
|
|
65
|
-
month="long"
|
|
66
|
-
day="2-digit"
|
|
67
|
-
year="numeric"
|
|
68
|
-
time-zone-name="short"
|
|
69
|
-
></dx-formatted-date-time>
|
|
70
|
-
<div class="card-event_detail-datetime-spacing">•</div>
|
|
71
|
-
<dx-formatted-date-time
|
|
72
|
-
class="dx-text-body-3"
|
|
73
|
-
value={startDatetime}
|
|
74
|
-
hour="numeric"
|
|
75
|
-
minute="numeric"
|
|
76
|
-
></dx-formatted-date-time>
|
|
77
|
-
<div
|
|
78
|
-
if:true={endDatetime}
|
|
79
|
-
class="card-event_detail-datetime-spacing end-date-time"
|
|
80
|
-
>
|
|
81
|
-
-
|
|
82
|
-
</div>
|
|
83
|
-
<dx-formatted-date-time
|
|
84
|
-
if:true={endDatetime}
|
|
85
|
-
class="dx-text-body-3 end-date-time"
|
|
86
|
-
value={endDatetime}
|
|
87
|
-
hour="numeric"
|
|
88
|
-
minute="numeric"
|
|
89
|
-
></dx-formatted-date-time>
|
|
90
|
-
</span>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
</template>
|