@salesforcedevs/arch-components 1.20.17-alpha3 → 1.20.17-alpha5
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 +1 -1
- package/src/modules/common/effectAdapter/__tests__/effectAdapter.test.ts +0 -12
- package/src/modules/common/effectAdapter/effectAdapter.html +0 -1
- package/src/modules/common/effectAdapter/effectAdapter.ts +0 -24
- package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.html +0 -3
- package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.ts +0 -7
- package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.html +0 -3
- package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.ts +0 -18
- package/src/modules/common/reflectedElement/__tests__/reflectedElement.test.ts +0 -75
- package/src/modules/common/reflectedElement/reflectedElement.ts +0 -50
- package/src/modules/common/slot/__tests__/slot.test.ts +0 -96
- package/src/modules/common/slot/slot.ts +0 -21
- package/src/modules/sa/coverage/coverage.css +0 -35
- package/src/modules/sa/coverage/coverage.html +0 -15
- package/src/modules/sa/coverage/coverage.ts +0 -402
- package/src/modules/sa/coverage/types.d.ts +0 -26
- package/src/modules/sa/expandableSection/expandableSection.css +0 -24
- package/src/modules/sa/expandableSection/expandableSection.html +0 -20
- package/src/modules/sa/expandableSection/expandableSection.stories.ts +0 -37
- package/src/modules/sa/expandableSection/expandableSection.ts +0 -24
- package/src/modules/sa/explorer/explorer.css +0 -303
- package/src/modules/sa/explorer/explorer.html +0 -403
- package/src/modules/sa/explorer/explorer.ts +0 -664
- package/src/modules/sa/explorer/types.d.ts +0 -60
- package/src/modules/sa/gallery/gallery.css +0 -358
- package/src/modules/sa/gallery/gallery.html +0 -65
- package/src/modules/sa/gallery/gallery.ts +0 -300
- package/src/modules/sa/gallery/types.d.ts +0 -35
- package/src/modules/sa/socialShare/socialShare.css +0 -49
- package/src/modules/sa/socialShare/socialShare.html +0 -56
- package/src/modules/sa/socialShare/socialShare.ts +0 -29
- package/src/modules/shared/a11y/a11y.ts +0 -25
- package/src/modules/shared/children/children.ts +0 -29
- package/src/modules/shared/color/color.ts +0 -52
- package/src/modules/shared/debounce/debounce.ts +0 -32
- package/src/modules/shared/dialog/dialog.ts +0 -154
- package/src/modules/shared/elements/__tests__/overflow.test.ts +0 -39
- package/src/modules/shared/elements/overflow.ts +0 -71
- package/src/modules/shared/fetch/fetch.ts +0 -52
- package/src/modules/shared/helpers/helpers.ts +0 -141
- package/src/modules/shared/i18n/i18n.ts +0 -74
- package/src/modules/shared/labels/__tests__/helpers.test.ts +0 -107
- package/src/modules/shared/labels/__tests__/pointHelpers.test.ts +0 -33
- package/src/modules/shared/labels/__tests__/timeHelpers.test.ts +0 -89
- package/src/modules/shared/labels/helpers.ts +0 -23
- package/src/modules/shared/labels/pointHelpers.ts +0 -47
- package/src/modules/shared/labels/timeHelpers.ts +0 -182
- package/src/modules/shared/labels/types.d.ts +0 -5
- package/src/modules/shared/logger/logger.ts +0 -33
- package/src/modules/shared/menu/menu.ts +0 -239
- package/src/modules/shared/overflow/__tests__/overflow.test.ts +0 -39
- package/src/modules/shared/overflow/overflow.ts +0 -71
- package/src/modules/shared/polling-request.ts +0 -97
- package/src/modules/shared/testutils.ts +0 -118
- package/src/modules/shared/track/track.ts +0 -23
- package/src/modules/shared/trailhead.ts +0 -123
- package/src/modules/shared/types.d.ts +0 -1
- package/src/modules/shared/useEffectAttr.ts +0 -16
- package/src/modules/shared/withState.ts +0 -21
- package/src/modules/tds/appLauncher/__fixtures__/index.ts +0 -34
- package/src/modules/tds/appLauncher/__tests__/appLauncher.test.ts +0 -119
- package/src/modules/tds/appLauncher/appLauncher.css +0 -65
- package/src/modules/tds/appLauncher/appLauncher.html +0 -38
- package/src/modules/tds/appLauncher/appLauncher.stories.ts +0 -39
- package/src/modules/tds/appLauncher/appLauncher.ts +0 -79
- package/src/modules/tds/appLauncher/types.ts +0 -8
- package/src/modules/tds/avatar/__tests__/avatar.test.ts +0 -11
- package/src/modules/tds/avatar/avatar.css +0 -77
- package/src/modules/tds/avatar/avatar.html +0 -36
- package/src/modules/tds/avatar/avatar.stories.ts +0 -64
- package/src/modules/tds/avatar/avatar.ts +0 -50
- package/src/modules/tds/badge/__tests__/badge.test.js +0 -11
- package/src/modules/tds/badge/badge.css +0 -22
- package/src/modules/tds/badge/badge.html +0 -5
- package/src/modules/tds/badge/badge.stories.ts +0 -10
- package/src/modules/tds/badge/badge.ts +0 -9
- package/src/modules/tds/button/__tests__/button.test.ts +0 -52
- package/src/modules/tds/button/button.css +0 -1
- package/src/modules/tds/button/button.html +0 -20
- package/src/modules/tds/button/button.stories.js +0 -54
- package/src/modules/tds/button/button.ts +0 -59
- package/src/modules/tds/buttonIcon/__tests__/buttonIcon.test.ts +0 -17
- package/src/modules/tds/buttonIcon/buttonIcon.css +0 -1
- package/src/modules/tds/buttonIcon/buttonIcon.html +0 -12
- package/src/modules/tds/buttonIcon/buttonIcon.stories.js +0 -38
- package/src/modules/tds/buttonIcon/buttonIcon.ts +0 -6
- package/src/modules/tds/buttonIconLink/buttonIconLink.css +0 -1
- package/src/modules/tds/buttonIconLink/buttonIconLink.html +0 -14
- package/src/modules/tds/buttonIconLink/buttonIconLink.stories.ts +0 -32
- package/src/modules/tds/buttonIconLink/buttonIconLink.ts +0 -9
- package/src/modules/tds/buttonLink/__tests__/buttonLink.test.ts +0 -17
- package/src/modules/tds/buttonLink/buttonLink.css +0 -1
- package/src/modules/tds/buttonLink/buttonLink.html +0 -19
- package/src/modules/tds/buttonLink/buttonLink.stories.js +0 -24
- package/src/modules/tds/buttonLink/buttonLink.ts +0 -8
- package/src/modules/tds/buttonStyles/buttonStyles.css +0 -232
- package/src/modules/tds/childSummary/__tests__/childSummary.test.js +0 -99
- package/src/modules/tds/childSummary/childSummary.css +0 -74
- package/src/modules/tds/childSummary/childSummary.html +0 -38
- package/src/modules/tds/childSummary/childSummary.stories.ts +0 -40
- package/src/modules/tds/childSummary/childSummary.ts +0 -63
- package/src/modules/tds/childSummary/types.d.ts +0 -10
- package/src/modules/tds/contentChildListItem/__tests__/contentChildListItem.test.ts +0 -32
- package/src/modules/tds/contentChildListItem/contentChildListItem.css +0 -1
- package/src/modules/tds/contentChildListItem/contentChildListItem.html +0 -10
- package/src/modules/tds/contentChildListItem/contentChildListItem.stories.ts +0 -46
- package/src/modules/tds/contentChildListItem/contentChildListItem.ts +0 -34
- package/src/modules/tds/contentIcon/contentIcon.css +0 -47
- package/src/modules/tds/contentIcon/contentIcon.html +0 -15
- package/src/modules/tds/contentIcon/contentIcon.stories.js +0 -110
- package/src/modules/tds/contentIcon/contentIcon.ts +0 -66
- package/src/modules/tds/contextAdapter/__tests__/contextAdapter.test.ts +0 -76
- package/src/modules/tds/contextAdapter/constants.ts +0 -1
- package/src/modules/tds/contextAdapter/contextAdapter.html +0 -1
- package/src/modules/tds/contextAdapter/contextAdapter.ts +0 -54
- package/src/modules/tds/dialogStyles/dialogStyles.css +0 -90
- package/src/modules/tds/footerLinks/__tests__/__snapshots__/footerLinks.test.ts.snap +0 -3
- package/src/modules/tds/footerLinks/__tests__/footerLinks.test.ts +0 -142
- package/src/modules/tds/footerLinks/footerLinks.css +0 -80
- package/src/modules/tds/footerLinks/footerLinks.html +0 -30
- package/src/modules/tds/footerLinks/footerLinks.ts +0 -48
- package/src/modules/tds/footerLinks/types.ts +0 -11
- package/src/modules/tds/footerMfe/footerMfe.html +0 -3
- package/src/modules/tds/footerMfe/footerMfe.ts +0 -19
- package/src/modules/tds/headerAvatar/__tests__/headerAvatar.test.ts +0 -43
- package/src/modules/tds/headerAvatar/headerAvatar.css +0 -45
- package/src/modules/tds/headerAvatar/headerAvatar.html +0 -25
- package/src/modules/tds/headerAvatar/headerAvatar.ts +0 -15
- package/src/modules/tds/headerHelpButton/__tests__/headerHelpButton.test.ts +0 -32
- package/src/modules/tds/headerHelpButton/headerHelpButton.css +0 -14
- package/src/modules/tds/headerHelpButton/headerHelpButton.html +0 -19
- package/src/modules/tds/headerHelpButton/headerHelpButton.ts +0 -12
- package/src/modules/tds/heading/__tests__/heading.test.ts +0 -50
- package/src/modules/tds/heading/heading.css +0 -1
- package/src/modules/tds/heading/heading.html +0 -9
- package/src/modules/tds/heading/heading.stories.ts +0 -36
- package/src/modules/tds/heading/heading.ts +0 -36
- package/src/modules/tds/icon/icon.css +0 -28
- package/src/modules/tds/icon/icon.html +0 -17
- package/src/modules/tds/icon/icon.stories.js +0 -18
- package/src/modules/tds/icon/icon.ts +0 -79
- package/src/modules/tds/input/__tests__/input.test.ts +0 -41
- package/src/modules/tds/input/input.css +0 -34
- package/src/modules/tds/input/input.html +0 -12
- package/src/modules/tds/input/input.stories.ts +0 -25
- package/src/modules/tds/input/input.ts +0 -41
- package/src/modules/tds/instrumentation/instrumentation.css +0 -0
- package/src/modules/tds/instrumentation/instrumentation.html +0 -1
- package/src/modules/tds/instrumentation/instrumentation.ts +0 -113
- package/src/modules/tds/pbCard/pbCard.css +0 -28
- package/src/modules/tds/pbCard/pbCard.html +0 -21
- package/src/modules/tds/pbCard/pbCard.ts +0 -18
- package/src/modules/tds/pill/__tests__/pill.test.ts +0 -56
- package/src/modules/tds/pill/pill.css +0 -70
- package/src/modules/tds/pill/pill.html +0 -17
- package/src/modules/tds/pill/pill.stories.ts +0 -41
- package/src/modules/tds/pill/pill.ts +0 -34
- package/src/modules/tds/progressBar/__tests__/progressBar.test.js +0 -11
- package/src/modules/tds/progressBar/progressBar.css +0 -42
- package/src/modules/tds/progressBar/progressBar.html +0 -14
- package/src/modules/tds/progressBar/progressBar.stories.ts +0 -24
- package/src/modules/tds/progressBar/progressBar.ts +0 -14
- package/src/modules/tds/radio/__tests__/radio.test.ts +0 -29
- package/src/modules/tds/radio/radio.css +0 -89
- package/src/modules/tds/radio/radio.html +0 -17
- package/src/modules/tds/radio/radio.stories.ts +0 -31
- package/src/modules/tds/radio/radio.ts +0 -32
- package/src/modules/tds/reset/reset.css +0 -39
- package/src/modules/tds/search/__fixtures__/index.ts +0 -32
- package/src/modules/tds/search/__tests__/search.test.ts +0 -235
- package/src/modules/tds/search/lib/__tests__/__snapshots__/listbox.test.ts.snap +0 -115
- package/src/modules/tds/search/lib/__tests__/listbox.test.ts +0 -192
- package/src/modules/tds/search/lib/listbox.ts +0 -209
- package/src/modules/tds/search/search.css +0 -122
- package/src/modules/tds/search/search.html +0 -21
- package/src/modules/tds/search/search.stories.ts +0 -20
- package/src/modules/tds/search/search.ts +0 -107
- package/src/modules/tds/search/types.d.ts +0 -22
- package/src/modules/tds/searchList/searchList.css +0 -120
- package/src/modules/tds/searchList/searchList.html +0 -43
- package/src/modules/tds/searchList/searchList.stories.ts +0 -10
- package/src/modules/tds/searchList/searchList.ts +0 -53
- package/src/modules/tds/select/__tests__/select.test.ts +0 -150
- package/src/modules/tds/select/select.css +0 -42
- package/src/modules/tds/select/select.html +0 -24
- package/src/modules/tds/select/select.stories.ts +0 -59
- package/src/modules/tds/select/select.ts +0 -60
- package/src/modules/tds/spinner/__tests__/spinner.test.ts +0 -11
- package/src/modules/tds/spinner/spinner.css +0 -194
- package/src/modules/tds/spinner/spinner.html +0 -9
- package/src/modules/tds/spinner/spinner.stories.ts +0 -20
- package/src/modules/tds/spinner/spinner.ts +0 -15
- package/src/modules/tds/styles/styles.css +0 -24
- package/src/modules/tds/summary/__tests__/summary.test.ts +0 -135
- package/src/modules/tds/summary/summary.css +0 -135
- package/src/modules/tds/summary/summary.html +0 -69
- package/src/modules/tds/summary/summary.stories.js +0 -148
- package/src/modules/tds/summary/summary.ts +0 -95
- package/src/modules/tds/tab/__tests__/tab.test.ts +0 -25
- package/src/modules/tds/tab/tab.css +0 -3
- package/src/modules/tds/tab/tab.html +0 -5
- package/src/modules/tds/tab/tab.ts +0 -46
- package/src/modules/tds/tabset/__tests__/tabset.test.ts +0 -108
- package/src/modules/tds/tabset/tabset.css +0 -112
- package/src/modules/tds/tabset/tabset.html +0 -63
- package/src/modules/tds/tabset/tabset.stories.ts +0 -32
- package/src/modules/tds/tabset/tabset.ts +0 -232
- package/src/modules/tds/themeProvider/themeProvider.css +0 -502
- package/src/modules/tds/themeProvider/themeProvider.html +0 -3
- package/src/modules/tds/themeProvider/themeProvider.ts +0 -37
- package/src/modules/tds/tile/tile.css +0 -23
- package/src/modules/tds/tile/tile.html +0 -5
- package/src/modules/tds/tile/tile.stories.js +0 -14
- package/src/modules/tds/tile/tile.ts +0 -12
- package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.html +0 -1
- package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.ts +0 -47
- package/src/modules/th/contextAdapter/__tests__/contextAdapter.test.ts +0 -104
- package/src/modules/th/contextAdapter/contextAdapter.html +0 -1
- package/src/modules/th/contextAdapter/contextAdapter.ts +0 -49
- package/src/modules/th/favoriteButton/__tests__/favoriteButton.test.ts +0 -56
- package/src/modules/th/favoriteButton/favoriteButton.css +0 -3
- package/src/modules/th/favoriteButton/favoriteButton.html +0 -15
- package/src/modules/th/favoriteButton/favoriteButton.stories.js +0 -30
- package/src/modules/th/favoriteButton/favoriteButton.ts +0 -84
- package/src/modules/th/favoriteButton/mocks/index.ts +0 -12
- package/src/modules/th/search/__fixtures__/index.ts +0 -14
- package/src/modules/th/search/__tests__/search.test.ts +0 -233
- package/src/modules/th/search/constants.ts +0 -2
- package/src/modules/th/search/mocks/index.ts +0 -30
- package/src/modules/th/search/mocks/responses.ts +0 -54
- package/src/modules/th/search/search.css +0 -4
- package/src/modules/th/search/search.html +0 -12
- package/src/modules/th/search/search.ts +0 -172
- package/src/modules/th/search/types.d.ts +0 -29
- package/src/modules/tm/card/__tests__/card.test.ts +0 -65
- package/src/modules/tm/card/card.css +0 -131
- package/src/modules/tm/card/card.html +0 -81
- package/src/modules/tm/card/card.ts +0 -269
- package/src/modules/tm/cardBase/cardBase.css +0 -11
- package/src/modules/tm/cardGridA/cardGridA.css +0 -11
- package/src/modules/tm/cardGridA/cardGridA.html +0 -21
- package/src/modules/tm/cardGridA/cardGridA.stories.js +0 -107
- package/src/modules/tm/cardGridA/cardGridA.ts +0 -24
- package/src/modules/tm/cardGridB/cardGridB.css +0 -88
- package/src/modules/tm/cardGridB/cardGridB.html +0 -20
- package/src/modules/tm/cardGridB/cardGridB.stories.js +0 -58
- package/src/modules/tm/cardGridB/cardGridB.ts +0 -19
- package/src/modules/tm/cardGridC/cardGridC.css +0 -24
- package/src/modules/tm/cardGridC/cardGridC.html +0 -22
- package/src/modules/tm/cardGridC/cardGridC.stories.js +0 -42
- package/src/modules/tm/cardGridC/cardGridC.ts +0 -11
- package/src/modules/tm/cardGridD/cardGridD.css +0 -17
- package/src/modules/tm/cardGridD/cardGridD.html +0 -20
- package/src/modules/tm/cardGridD/cardGridD.stories.js +0 -34
- package/src/modules/tm/cardGridD/cardGridD.ts +0 -7
- package/src/modules/tm/cardNew/cardNew.css +0 -31
- package/src/modules/tm/cardNew/cardNew.html +0 -29
- package/src/modules/tm/cardNew/cardNew.ts +0 -66
- package/src/modules/tm/content/__fixtures__/index.ts +0 -884
- package/src/modules/tm/content/__tests__/content.test.ts +0 -95
- package/src/modules/tm/content/content.css +0 -641
- package/src/modules/tm/content/content.html +0 -53
- package/src/modules/tm/content/content.stories.js +0 -14
- package/src/modules/tm/content/content.ts +0 -171
- package/src/modules/tm/endCapA/__tests__/endCapA.test.ts +0 -52
- package/src/modules/tm/endCapA/endCapA.css +0 -64
- package/src/modules/tm/endCapA/endCapA.html +0 -21
- package/src/modules/tm/endCapA/endCapA.stories.js +0 -37
- package/src/modules/tm/endCapA/endCapA.ts +0 -23
- package/src/modules/tm/eventsA/eventsA.css +0 -107
- package/src/modules/tm/eventsA/eventsA.html +0 -26
- package/src/modules/tm/eventsA/eventsA.stories.js +0 -51
- package/src/modules/tm/eventsA/eventsA.ts +0 -48
- package/src/modules/tm/faqA/faqA.css +0 -87
- package/src/modules/tm/faqA/faqA.html +0 -27
- package/src/modules/tm/faqA/faqA.stories.js +0 -25
- package/src/modules/tm/faqA/faqA.ts +0 -40
- package/src/modules/tm/featureGridA/__tests__/featureGridA.test.ts +0 -116
- package/src/modules/tm/featureGridA/featureGridA.css +0 -95
- package/src/modules/tm/featureGridA/featureGridA.html +0 -34
- package/src/modules/tm/featureGridA/featureGridA.stories.js +0 -45
- package/src/modules/tm/featureGridA/featureGridA.ts +0 -59
- package/src/modules/tm/footnote/footnote.css +0 -28
- package/src/modules/tm/footnote/footnote.html +0 -3
- package/src/modules/tm/footnote/footnote.stories.js +0 -29
- package/src/modules/tm/footnote/footnote.ts +0 -35
- package/src/modules/tm/heroA/__tests__/heroA.test.ts +0 -51
- package/src/modules/tm/heroA/heroA.css +0 -116
- package/src/modules/tm/heroA/heroA.html +0 -27
- package/src/modules/tm/heroA/heroA.stories.js +0 -49
- package/src/modules/tm/heroA/heroA.ts +0 -56
- package/src/modules/tm/heroB/heroB.css +0 -78
- package/src/modules/tm/heroB/heroB.html +0 -26
- package/src/modules/tm/heroB/heroB.stories.js +0 -44
- package/src/modules/tm/heroB/heroB.ts +0 -26
- package/src/modules/tm/page/__tests__/page.test.ts +0 -35
- package/src/modules/tm/page/page.css +0 -3
- package/src/modules/tm/page/page.html +0 -3
- package/src/modules/tm/page/page.stories.js +0 -10
- package/src/modules/tm/page/page.ts +0 -3
- package/src/modules/tm/pageHeaderA/pageHeaderA.css +0 -82
- package/src/modules/tm/pageHeaderA/pageHeaderA.html +0 -24
- package/src/modules/tm/pageHeaderA/pageHeaderA.stories.js +0 -18
- package/src/modules/tm/pageHeaderA/pageHeaderA.ts +0 -51
- package/src/modules/tm/pageNavigationA/pageNavigationA.css +0 -41
- package/src/modules/tm/pageNavigationA/pageNavigationA.html +0 -9
- package/src/modules/tm/pageNavigationA/pageNavigationA.stories.js +0 -34
- package/src/modules/tm/pageNavigationA/pageNavigationA.ts +0 -18
- package/src/modules/tm/promoA/__tests__/promoA.test.ts +0 -89
- package/src/modules/tm/promoA/promoA.css +0 -95
- package/src/modules/tm/promoA/promoA.html +0 -22
- package/src/modules/tm/promoA/promoA.stories.js +0 -38
- package/src/modules/tm/promoA/promoA.ts +0 -62
- package/src/modules/tm/sectionA/sectionA.css +0 -64
- package/src/modules/tm/sectionA/sectionA.html +0 -21
- package/src/modules/tm/sectionA/sectionA.stories.js +0 -18
- package/src/modules/tm/sectionA/sectionA.ts +0 -27
- package/src/modules/tm/sectionSpacer/sectionSpacer.css +0 -4
- package/src/modules/tm/sectionSpacer/sectionSpacer.html +0 -1
- package/src/modules/tm/sectionSpacer/sectionSpacer.ts +0 -3
- package/src/modules/tm/skillsCardA/skillsCardA.css +0 -73
- package/src/modules/tm/skillsCardA/skillsCardA.html +0 -37
- package/src/modules/tm/skillsCardA/skillsCardA.ts +0 -38
- package/src/modules/tm/skillsGridA/skillsGridA.css +0 -12
- package/src/modules/tm/skillsGridA/skillsGridA.html +0 -5
- package/src/modules/tm/skillsGridA/skillsGridA.stories.ts +0 -65
- package/src/modules/tm/skillsGridA/skillsGridA.ts +0 -3
- package/src/modules/tm/statsA/statsA.css +0 -26
- package/src/modules/tm/statsA/statsA.html +0 -10
- package/src/modules/tm/statsA/statsA.stories.js +0 -29
- package/src/modules/tm/statsA/statsA.ts +0 -20
- package/src/modules/tm/textItem/textItem.css +0 -53
- package/src/modules/tm/textItem/textItem.html +0 -18
- package/src/modules/tm/textItem/textItem.ts +0 -32
- package/src/modules/tm/textItemGridA/textItemGridA.css +0 -11
- package/src/modules/tm/textItemGridA/textItemGridA.html +0 -15
- package/src/modules/tm/textItemGridA/textItemGridA.stories.js +0 -67
- package/src/modules/tm/textItemGridA/textItemGridA.ts +0 -20
- package/src/modules/tm/threeCardGrid/threeCardGrid.css +0 -6
- package/src/modules/tm/threeCardGrid/threeCardGrid.html +0 -5
- package/src/modules/tm/threeCardGrid/threeCardGrid.ts +0 -3
- package/src/modules/tm/trailblazersA/trailblazersA.css +0 -70
- package/src/modules/tm/trailblazersA/trailblazersA.html +0 -42
- package/src/modules/tm/trailblazersA/trailblazersA.stories.js +0 -52
- package/src/modules/tm/trailblazersA/trailblazersA.ts +0 -43
- package/src/modules/tm/utils/utils.ts +0 -18
- package/src/modules/tm/youtube/youtube.css +0 -7
- package/src/modules/tm/youtube/youtube.html +0 -10
- package/src/modules/tm/youtube/youtube.stories.js +0 -15
- package/src/modules/tm/youtube/youtube.ts +0 -27
- package/src/modules/ui/focusTrap/focusTrap.html +0 -5
- package/src/modules/ui/focusTrap/focusTrap.ts +0 -104
- package/src/modules/ui/focusVisible/__tests__/focusVisible.test.ts +0 -95
- package/src/modules/ui/focusVisible/focusVisible.html +0 -3
- package/src/modules/ui/focusVisible/focusVisible.ts +0 -46
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { html, renderIntoBody } from 'shared/testutils';
|
|
2
|
-
|
|
3
|
-
import FooterLinks from '../footerLinks';
|
|
4
|
-
|
|
5
|
-
import { track } from 'tds/instrumentation';
|
|
6
|
-
|
|
7
|
-
jest.mock('tds/instrumentation', () => {
|
|
8
|
-
return {
|
|
9
|
-
track: jest.fn()
|
|
10
|
-
};
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
customElements.define('tds-footer-links', FooterLinks.CustomElementConstructor);
|
|
14
|
-
|
|
15
|
-
const content = {
|
|
16
|
-
columns: [
|
|
17
|
-
{
|
|
18
|
-
heading: 'Learn',
|
|
19
|
-
links: [
|
|
20
|
-
{
|
|
21
|
-
href: '/',
|
|
22
|
-
label: 'Trails'
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
href: '/',
|
|
26
|
-
label: 'Trailmixes'
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
heading: 'Extras',
|
|
32
|
-
links: [
|
|
33
|
-
{
|
|
34
|
-
href: '/',
|
|
35
|
-
label: 'myTrailhead'
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
href: '/',
|
|
39
|
-
target: '_blank',
|
|
40
|
-
label: 'Help'
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
describe('tds-footer-links', () => {
|
|
48
|
-
beforeEach(() => {
|
|
49
|
-
(track as jest.Mock).mockClear();
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
it('renders columns', () => {
|
|
53
|
-
const element = renderIntoBody(
|
|
54
|
-
html`
|
|
55
|
-
<tds-footer-links
|
|
56
|
-
.columns=${content.columns}
|
|
57
|
-
></tds-footer-links>
|
|
58
|
-
`
|
|
59
|
-
);
|
|
60
|
-
expect(element.shadowRoot!.innerHTML).toMatchHTMLSnapshot();
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
// Skip this test as LWC in test mode doesn't support child nodes for light DOM components
|
|
64
|
-
it.skip('renders columns and slots', () => {
|
|
65
|
-
const element = renderIntoBody(
|
|
66
|
-
html`
|
|
67
|
-
<tds-footer-links .columns=${content.columns}>
|
|
68
|
-
<div slot="left">left</div>
|
|
69
|
-
<div slot="right">right</div>
|
|
70
|
-
</tds-footer-links>
|
|
71
|
-
`
|
|
72
|
-
);
|
|
73
|
-
const getSlot = (name: string) =>
|
|
74
|
-
element.shadowRoot!.querySelector(
|
|
75
|
-
`slot[name="${name}"]`
|
|
76
|
-
)! as HTMLSlotElement;
|
|
77
|
-
expect(getSlot('left').assignedElements()[0].textContent).toEqual(
|
|
78
|
-
'left'
|
|
79
|
-
);
|
|
80
|
-
expect(getSlot('right').assignedElements()[0].textContent).toEqual(
|
|
81
|
-
'right'
|
|
82
|
-
);
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
describe('tracking', () => {
|
|
86
|
-
it('link_clicked', () => {
|
|
87
|
-
const element = renderIntoBody(
|
|
88
|
-
html`
|
|
89
|
-
<tds-footer-links
|
|
90
|
-
.columns=${content.columns}
|
|
91
|
-
></tds-footer-links>
|
|
92
|
-
`
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
const handler = jest.fn();
|
|
96
|
-
document.addEventListener('trailhead_track', handler, {
|
|
97
|
-
once: true
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
element
|
|
101
|
-
.shadowRoot!.querySelector('.links__column a')!
|
|
102
|
-
.dispatchEvent(new MouseEvent('click'));
|
|
103
|
-
|
|
104
|
-
expect(handler.mock.calls[0][0].detail).toEqual(
|
|
105
|
-
expect.objectContaining({
|
|
106
|
-
eventName: 'link_clicked',
|
|
107
|
-
payload: expect.objectContaining({
|
|
108
|
-
label: 'Trails'
|
|
109
|
-
})
|
|
110
|
-
})
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
expect(track).toBeCalledTimes(1);
|
|
114
|
-
expect(track).toBeCalledWith(element, 'custEv_bottomNavLinkClick', {
|
|
115
|
-
headingText: 'Learn',
|
|
116
|
-
linkText: 'Trails',
|
|
117
|
-
subHeadingText: 'Trails'
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
describe('eventing', () => {
|
|
123
|
-
it('link_click', () => {
|
|
124
|
-
const element = renderIntoBody(
|
|
125
|
-
html`
|
|
126
|
-
<tds-footer-links
|
|
127
|
-
.columns=${content.columns}
|
|
128
|
-
></tds-footer-links>
|
|
129
|
-
`
|
|
130
|
-
);
|
|
131
|
-
const handler = jest.fn();
|
|
132
|
-
element.addEventListener('link_click', handler);
|
|
133
|
-
// Columns
|
|
134
|
-
element
|
|
135
|
-
.shadowRoot!.querySelector('.links__column a')!
|
|
136
|
-
.dispatchEvent(new MouseEvent('click'));
|
|
137
|
-
expect(handler.mock.calls[0][0].detail).toEqual(
|
|
138
|
-
content.columns[0].links[0]
|
|
139
|
-
);
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
});
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
@import 'tds/reset';
|
|
2
|
-
|
|
3
|
-
a {
|
|
4
|
-
text-decoration: none;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
a:hover {
|
|
8
|
-
text-decoration: underline;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.footer {
|
|
12
|
-
padding: var(--tds-spacing-8) var(--tds-spacing-4) var(--tds-spacing-4);
|
|
13
|
-
border-top: 1px solid var(--tds-color-fog);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.container {
|
|
17
|
-
margin: 0 auto;
|
|
18
|
-
max-width: var(--tds-container-xl);
|
|
19
|
-
}
|
|
20
|
-
.links {
|
|
21
|
-
display: flex;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.links__column {
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
font-size: var(--tds-font-size-sm);
|
|
27
|
-
padding: var(--tds-spacing-4) var(--tds-spacing-2) 0;
|
|
28
|
-
width: 17%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.heading {
|
|
32
|
-
color: var(--tds-color-meteorite);
|
|
33
|
-
font-weight: bold;
|
|
34
|
-
margin-bottom: var(--tds-spacing-4);
|
|
35
|
-
font-size: var(--tds-font-size-md);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.links__column li {
|
|
39
|
-
margin: var(--tds-spacing-3) 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.links__column a {
|
|
43
|
-
color: var(--tds-color-meteorite);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.bottom {
|
|
47
|
-
display: none;
|
|
48
|
-
justify-content: space-between;
|
|
49
|
-
align-items: center;
|
|
50
|
-
margin: 0 auto;
|
|
51
|
-
margin-top: var(--tds-spacing-10);
|
|
52
|
-
max-width: 1400px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.footer[data-slots*='left'] .bottom,
|
|
56
|
-
.footer[data-slots*='right'] .bottom {
|
|
57
|
-
display: flex;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@media screen and (max-width: 48rem) {
|
|
61
|
-
.bottom {
|
|
62
|
-
flex-wrap: wrap;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.links {
|
|
66
|
-
flex-wrap: wrap;
|
|
67
|
-
}
|
|
68
|
-
.links__column {
|
|
69
|
-
width: 50%;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@media screen and (max-width: 24rem) {
|
|
74
|
-
.links {
|
|
75
|
-
flex-wrap: wrap;
|
|
76
|
-
}
|
|
77
|
-
.links__column {
|
|
78
|
-
width: 100%;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="footer" data-slots={slots}>
|
|
3
|
-
<div class="container">
|
|
4
|
-
<nav class="links">
|
|
5
|
-
<template for:each={_columns} for:item="column">
|
|
6
|
-
<div class="links__column" key={column.heading}>
|
|
7
|
-
<div class="heading">{column.heading}</div>
|
|
8
|
-
<ul if:true={column.links}>
|
|
9
|
-
<template for:each={column.links} for:item="link">
|
|
10
|
-
<li key={link.label}>
|
|
11
|
-
<a
|
|
12
|
-
href={link.href}
|
|
13
|
-
target={link.target}
|
|
14
|
-
rel={link.rel}
|
|
15
|
-
onclick={link.handleClick}
|
|
16
|
-
>{link.label}</a
|
|
17
|
-
>
|
|
18
|
-
</li>
|
|
19
|
-
</template>
|
|
20
|
-
</ul>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
</nav>
|
|
24
|
-
<div class="bottom">
|
|
25
|
-
<slot name="left" onslotchange={handleSlotChange}></slot>
|
|
26
|
-
<slot name="right" onslotchange={handleSlotChange}></slot>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { api, LightningElement } from 'lwc';
|
|
2
|
-
|
|
3
|
-
import { assignedSlotNames } from 'common/slot';
|
|
4
|
-
import { track } from 'shared/track';
|
|
5
|
-
import { track as analyticsTrack } from 'tds/instrumentation';
|
|
6
|
-
|
|
7
|
-
import { FooterLink, FooterColumn } from './types';
|
|
8
|
-
import { sendInteractionEvent, InteractionEventTypes } from 'shared/helpers';
|
|
9
|
-
|
|
10
|
-
export default class extends LightningElement {
|
|
11
|
-
@api columns: FooterColumn[] = null!;
|
|
12
|
-
|
|
13
|
-
private slots: string = '';
|
|
14
|
-
|
|
15
|
-
private get _columns() {
|
|
16
|
-
return this.columns.map((col) => {
|
|
17
|
-
return Object.assign({}, col, {
|
|
18
|
-
links: col.links.map((link) => {
|
|
19
|
-
return Object.assign({}, link, {
|
|
20
|
-
handleClick: this.handleLinkClick.bind(this, link)
|
|
21
|
-
});
|
|
22
|
-
})
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
private handleLinkClick(link: FooterLink, e: MouseEvent) {
|
|
28
|
-
sendInteractionEvent('Footer Click', InteractionEventTypes.CLICK, e, e.currentTarget);
|
|
29
|
-
|
|
30
|
-
this.dispatchEvent(new CustomEvent('link_click', { detail: link }));
|
|
31
|
-
track(this.template.host, 'link_clicked', { label: link.label });
|
|
32
|
-
|
|
33
|
-
const target = e.currentTarget as HTMLAnchorElement;
|
|
34
|
-
const column = target.closest('.links__column');
|
|
35
|
-
const heading = column && column.querySelector('.heading');
|
|
36
|
-
const headingText = (heading && heading.textContent) || '';
|
|
37
|
-
|
|
38
|
-
analyticsTrack(this.template.host, 'custEv_bottomNavLinkClick', {
|
|
39
|
-
headingText: headingText,
|
|
40
|
-
subHeadingText: target.textContent,
|
|
41
|
-
linkText: link.label
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
private handleSlotChange() {
|
|
46
|
-
this.slots = assignedSlotNames(this.template).join(' ');
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LightningElement } from 'lwc';
|
|
2
|
-
|
|
3
|
-
export default class FooterMfe extends LightningElement {
|
|
4
|
-
private didRender = false;
|
|
5
|
-
|
|
6
|
-
renderedCallback() {
|
|
7
|
-
if (this.didRender) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
this.didRender = true;
|
|
11
|
-
|
|
12
|
-
// Since the footer is a third-party component, we need to create it dynamically (LWC won't recognize it as a valid component).
|
|
13
|
-
const footerElement = document.createElement('hgf-footer');
|
|
14
|
-
footerElement.setAttribute('origin', window.location.origin); // will call the route handler for `/c360/experience/v1/navigation`
|
|
15
|
-
footerElement.setAttribute('hide-language-selector', 'true');
|
|
16
|
-
footerElement.setAttribute('home-href', `/${window.location.host}`); // ugly hack: ideally this wouldn't be necessary, but the only way to remove the "See all ways to contact us" link from the footer is to set this to a non-empty value other than "us"; and given the way that the footer works, the non-empty value needs to be something that can be appended to `/` and work correctly
|
|
17
|
-
this.template.querySelector('div')!.appendChild(footerElement);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { html, renderIntoBody } from 'shared/testutils';
|
|
2
|
-
|
|
3
|
-
import HeaderAvatar from '../headerAvatar';
|
|
4
|
-
|
|
5
|
-
customElements.define(
|
|
6
|
-
'tds-header-avatar',
|
|
7
|
-
HeaderAvatar.CustomElementConstructor
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
describe('tds-header-avatar', () => {
|
|
11
|
-
it('sets the img src', () => {
|
|
12
|
-
const element = renderIntoBody(
|
|
13
|
-
html` <tds-header-avatar img-src="image.png"></tds-header-avatar> `
|
|
14
|
-
);
|
|
15
|
-
expect(element.shadowRoot!.querySelector('img')).toHaveAttribute(
|
|
16
|
-
'src',
|
|
17
|
-
'image.png'
|
|
18
|
-
);
|
|
19
|
-
});
|
|
20
|
-
it('sets the progress percent', () => {
|
|
21
|
-
const element = renderIntoBody(
|
|
22
|
-
html` <tds-header-avatar .percent=${50}></tds-header-avatar> `
|
|
23
|
-
);
|
|
24
|
-
expect(
|
|
25
|
-
element.shadowRoot!.querySelector('[role=progressbar]')
|
|
26
|
-
).toHaveAttribute('aria-valuenow', '50');
|
|
27
|
-
});
|
|
28
|
-
it('sets the progress path', () => {
|
|
29
|
-
const element = renderIntoBody(
|
|
30
|
-
html` <tds-header-avatar .percent=${100}></tds-header-avatar> `
|
|
31
|
-
);
|
|
32
|
-
expect(element.shadowRoot!.querySelector('path')).toHaveAttribute(
|
|
33
|
-
'd',
|
|
34
|
-
'M 1 0 A 1 1 0 1 0 1 0 L 0 0'
|
|
35
|
-
);
|
|
36
|
-
});
|
|
37
|
-
it('hides the progress if no percent is passed', () => {
|
|
38
|
-
const element = renderIntoBody(
|
|
39
|
-
html` <tds-header-avatar></tds-header-avatar> `
|
|
40
|
-
);
|
|
41
|
-
expect(element.shadowRoot!.querySelector('svg')).toBeNull();
|
|
42
|
-
});
|
|
43
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.progress-ring {
|
|
6
|
-
position: relative;
|
|
7
|
-
display: block;
|
|
8
|
-
height: 38px;
|
|
9
|
-
width: 38px;
|
|
10
|
-
border-radius: 50%;
|
|
11
|
-
background: #dddbda;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.progress-ring__progress {
|
|
15
|
-
transform: scaleX(-1) rotate(-90deg);
|
|
16
|
-
top: 0;
|
|
17
|
-
right: 0;
|
|
18
|
-
left: 0;
|
|
19
|
-
bottom: 0;
|
|
20
|
-
position: absolute;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.progress-ring__path {
|
|
24
|
-
fill: rgb(44, 127, 92); /* TODO: token */
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.progress-ring__content {
|
|
28
|
-
--size: 3px;
|
|
29
|
-
background-color: white;
|
|
30
|
-
bottom: calc(var(--size) * 2);
|
|
31
|
-
border-radius: 50%;
|
|
32
|
-
box-shadow: 0px 0px 0px var(--size) white;
|
|
33
|
-
left: calc(var(--size) * 2);
|
|
34
|
-
position: absolute;
|
|
35
|
-
right: calc(var(--size) * 2);
|
|
36
|
-
top: calc(var(--size) * 2);
|
|
37
|
-
z-index: 1;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.progress-ring__content img {
|
|
41
|
-
border-radius: 100px;
|
|
42
|
-
height: 100%;
|
|
43
|
-
object-fit: cover;
|
|
44
|
-
width: 100%;
|
|
45
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div if:true={percent} class="progress-ring">
|
|
3
|
-
<div
|
|
4
|
-
class="progress-ring__progress"
|
|
5
|
-
role="progressbar"
|
|
6
|
-
aria-valuemin="0"
|
|
7
|
-
aria-valuemax="100"
|
|
8
|
-
aria-valuenow={percent}
|
|
9
|
-
>
|
|
10
|
-
<svg viewBox="-1 -1 2 2">
|
|
11
|
-
<path class="progress-ring__path" d={d}></path>
|
|
12
|
-
</svg>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="progress-ring__content">
|
|
15
|
-
<img alt="" src={imgSrc} loading="lazy" decoding="async" />
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
<img
|
|
19
|
-
alt=""
|
|
20
|
-
class="progress-ring"
|
|
21
|
-
if:false={percent}
|
|
22
|
-
src={imgSrc}
|
|
23
|
-
loading="lazy"
|
|
24
|
-
/>
|
|
25
|
-
</template>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { api, LightningElement } from 'lwc';
|
|
2
|
-
|
|
3
|
-
export default class extends LightningElement {
|
|
4
|
-
@api imgSrc: string = '';
|
|
5
|
-
@api percent: number | null = null;
|
|
6
|
-
|
|
7
|
-
private get d() {
|
|
8
|
-
if (!this.percent) {return '';}
|
|
9
|
-
const isLong = this.percent > 50 ? 1 : 0;
|
|
10
|
-
const fill = 1 - this.percent / 100;
|
|
11
|
-
const arcX = Math.cos(2 * Math.PI * fill);
|
|
12
|
-
const arcY = Math.sin(2 * Math.PI * fill);
|
|
13
|
-
return `M 1 0 A 1 1 0 ${isLong} 0 ${arcX} ${arcY} L 0 0`;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { html, renderIntoBody } from 'shared/testutils';
|
|
2
|
-
|
|
3
|
-
import HeaderHelpButton from '../headerHelpButton';
|
|
4
|
-
|
|
5
|
-
customElements.define(
|
|
6
|
-
'tds-header-help-button',
|
|
7
|
-
HeaderHelpButton.CustomElementConstructor
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
describe('tds-header-help-button', () => {
|
|
11
|
-
describe('tracking', () => {
|
|
12
|
-
it('header_help_clicked', () => {
|
|
13
|
-
const element = renderIntoBody(
|
|
14
|
-
html`
|
|
15
|
-
<tds-header-help-button href="/"></tds-header-help-button>
|
|
16
|
-
`
|
|
17
|
-
);
|
|
18
|
-
const handler = jest.fn();
|
|
19
|
-
document.addEventListener('trailhead_track', handler, {
|
|
20
|
-
once: true
|
|
21
|
-
});
|
|
22
|
-
element
|
|
23
|
-
.shadowRoot!.querySelector('.help')!
|
|
24
|
-
.dispatchEvent(new MouseEvent('click'));
|
|
25
|
-
expect(handler.mock.calls[0][0].detail).toEqual(
|
|
26
|
-
expect.objectContaining({
|
|
27
|
-
eventName: 'help_clicked'
|
|
28
|
-
})
|
|
29
|
-
);
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
@import 'tds/reset';
|
|
2
|
-
|
|
3
|
-
.help-icon {
|
|
4
|
-
background-color: var(--tds-color-meteorite);
|
|
5
|
-
border-radius: 100px;
|
|
6
|
-
color: var(--tds-color-white);
|
|
7
|
-
padding: var(--tds-spacing-1);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.help,
|
|
11
|
-
.help:visited,
|
|
12
|
-
.help:active {
|
|
13
|
-
color: var(--tds-color-white);
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tds-button-icon-link
|
|
3
|
-
aria-label={assistiveText}
|
|
4
|
-
class="help"
|
|
5
|
-
href={href}
|
|
6
|
-
onclick={onClick}
|
|
7
|
-
variant="bare"
|
|
8
|
-
rel="noopener"
|
|
9
|
-
target="_blank"
|
|
10
|
-
>
|
|
11
|
-
<span class="help-icon">
|
|
12
|
-
<tds-icon
|
|
13
|
-
size="small"
|
|
14
|
-
sprite="action"
|
|
15
|
-
symbol="question_post_action"
|
|
16
|
-
></tds-icon>
|
|
17
|
-
</span>
|
|
18
|
-
</tds-button-icon-link>
|
|
19
|
-
</template>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { api, LightningElement } from 'lwc';
|
|
2
|
-
|
|
3
|
-
import { track } from 'shared/track';
|
|
4
|
-
|
|
5
|
-
export default class extends LightningElement {
|
|
6
|
-
@api assistiveText: string = '';
|
|
7
|
-
@api href: string = '';
|
|
8
|
-
|
|
9
|
-
private onClick() {
|
|
10
|
-
track(this.template.host, 'help_clicked', {});
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { html, renderIntoBody } from 'shared/testutils';
|
|
2
|
-
|
|
3
|
-
import Heading from '../heading';
|
|
4
|
-
|
|
5
|
-
customElements.define('tds-heading', Heading.CustomElementConstructor);
|
|
6
|
-
|
|
7
|
-
describe('tds-heading', () => {
|
|
8
|
-
it('level 1', () => {
|
|
9
|
-
const element = renderIntoBody(
|
|
10
|
-
html` <tds-heading level="1"></tds-heading> `
|
|
11
|
-
);
|
|
12
|
-
expect(element.shadowRoot!.querySelector('h1')).toBeTruthy();
|
|
13
|
-
});
|
|
14
|
-
it('level 2', () => {
|
|
15
|
-
const element = renderIntoBody(
|
|
16
|
-
html` <tds-heading level="2"></tds-heading> `
|
|
17
|
-
);
|
|
18
|
-
expect(element.shadowRoot!.querySelector('h2')).toBeTruthy();
|
|
19
|
-
});
|
|
20
|
-
it('level 3', () => {
|
|
21
|
-
const element = renderIntoBody(
|
|
22
|
-
html` <tds-heading level="3"></tds-heading> `
|
|
23
|
-
);
|
|
24
|
-
expect(element.shadowRoot!.querySelector('h3')).toBeTruthy();
|
|
25
|
-
});
|
|
26
|
-
it('level 4', () => {
|
|
27
|
-
const element = renderIntoBody(
|
|
28
|
-
html` <tds-heading level="4"></tds-heading> `
|
|
29
|
-
);
|
|
30
|
-
expect(element.shadowRoot!.querySelector('h4')).toBeTruthy();
|
|
31
|
-
});
|
|
32
|
-
it('level 5', () => {
|
|
33
|
-
const element = renderIntoBody(
|
|
34
|
-
html` <tds-heading level="5"></tds-heading> `
|
|
35
|
-
);
|
|
36
|
-
expect(element.shadowRoot!.querySelector('h5')).toBeTruthy();
|
|
37
|
-
});
|
|
38
|
-
it('level 6', () => {
|
|
39
|
-
const element = renderIntoBody(
|
|
40
|
-
html` <tds-heading level="6"></tds-heading> `
|
|
41
|
-
);
|
|
42
|
-
expect(element.shadowRoot!.querySelector('h6')).toBeTruthy();
|
|
43
|
-
});
|
|
44
|
-
it('null', () => {
|
|
45
|
-
const element = renderIntoBody(html` <tds-heading></tds-heading> `);
|
|
46
|
-
expect(
|
|
47
|
-
Array.from(element.shadowRoot!.children).map((n) => n.tagName)
|
|
48
|
-
).toEqual(['SLOT']);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'tds/reset';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<h1 class="heading" if:true={isLevel1}><slot></slot></h1>
|
|
3
|
-
<h2 class="heading" if:true={isLevel2}><slot></slot></h2>
|
|
4
|
-
<h3 class="heading" if:true={isLevel3}><slot></slot></h3>
|
|
5
|
-
<h4 class="heading" if:true={isLevel4}><slot></slot></h4>
|
|
6
|
-
<h5 class="heading" if:true={isLevel5}><slot></slot></h5>
|
|
7
|
-
<h6 class="heading" if:true={isLevel6}><slot></slot></h6>
|
|
8
|
-
<template if:false={isHeading}><slot></slot></template>
|
|
9
|
-
</template>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'tds/tds-heading',
|
|
5
|
-
parameters: {
|
|
6
|
-
modules: ['/modules/tds-heading.js']
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export const Level1 = () => html`
|
|
11
|
-
<tds-heading level="1"> Level 1 </tds-heading>
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
export const Level2 = () => html`
|
|
15
|
-
<tds-heading level="2"> Level 2 </tds-heading>
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export const Level3 = () => html`
|
|
19
|
-
<tds-heading level="3"> Level 3 </tds-heading>
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
export const Level4 = () => html`
|
|
23
|
-
<tds-heading level="4"> Level 4 </tds-heading>
|
|
24
|
-
`;
|
|
25
|
-
|
|
26
|
-
export const Level5 = () => html`
|
|
27
|
-
<tds-heading level="5"> Level 5 </tds-heading>
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
export const Level6 = () => html`
|
|
31
|
-
<tds-heading level="6"> Level 6 </tds-heading>
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
export const NoHeading = () => html`
|
|
35
|
-
<tds-heading> Not a heading </tds-heading>
|
|
36
|
-
`;
|