@carbon/ibm-products-web-components 0.30.0-rc.0 → 0.30.0
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/custom-elements.json +5059 -0
- package/es/components/about-modal/about-modal.d.ts +458 -0
- package/es/components/about-modal/about-modal.figma.js +59 -0
- package/es/components/about-modal/about-modal.figma.js.map +1 -0
- package/es/components/about-modal/about-modal.js +203 -0
- package/es/components/about-modal/about-modal.js.map +1 -0
- package/es/components/about-modal/about-modal.scss.js +13 -0
- package/es/components/about-modal/about-modal.scss.js.map +1 -0
- package/es/components/about-modal/about-modal.test.d.ts +7 -0
- package/es/components/about-modal/about-modal.test.js +208 -0
- package/es/components/about-modal/about-modal.test.js.map +1 -0
- package/es/components/about-modal/index.d.ts +9 -0
- package/es/components/about-modal/index.js +9 -0
- package/es/components/about-modal/index.js.map +1 -0
- package/es/components/checklist/checklist-chart.d.ts +25 -0
- package/es/components/checklist/checklist-chart.js +81 -0
- package/es/components/checklist/checklist-chart.js.map +1 -0
- package/es/components/checklist/checklist-group.d.ts +25 -0
- package/es/components/checklist/checklist-group.js +58 -0
- package/es/components/checklist/checklist-group.js.map +1 -0
- package/es/components/checklist/checklist-icon.d.ts +26 -0
- package/es/components/checklist/checklist-icon.js +72 -0
- package/es/components/checklist/checklist-icon.js.map +1 -0
- package/es/components/checklist/checklist-item.d.ts +41 -0
- package/es/components/checklist/checklist-item.figma.js +49 -0
- package/es/components/checklist/checklist-item.figma.js.map +1 -0
- package/es/components/checklist/checklist-item.js +128 -0
- package/es/components/checklist/checklist-item.js.map +1 -0
- package/es/components/checklist/checklist.d.ts +73 -0
- package/es/components/checklist/checklist.figma.js +87 -0
- package/es/components/checklist/checklist.figma.js.map +1 -0
- package/es/components/checklist/checklist.js +198 -0
- package/es/components/checklist/checklist.js.map +1 -0
- package/es/components/checklist/checklist.scss.js +13 -0
- package/es/components/checklist/checklist.scss.js.map +1 -0
- package/es/components/checklist/checklist.test.d.ts +7 -0
- package/es/components/checklist/checklist.test.js +172 -0
- package/es/components/checklist/checklist.test.js.map +1 -0
- package/es/components/checklist/checklist.types.d.ts +22 -0
- package/es/components/checklist/checklist.types.js +32 -0
- package/es/components/checklist/checklist.types.js.map +1 -0
- package/es/components/checklist/index.d.ts +13 -0
- package/es/components/checklist/index.js +13 -0
- package/es/components/checklist/index.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +418 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js +139 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +13 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.d.ts +9 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +77 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/defs.d.ts +14 -0
- package/es/components/coachmark/coachmark-beacon/defs.js +25 -0
- package/es/components/coachmark/coachmark-beacon/defs.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/index.d.ts +9 -0
- package/es/components/coachmark/coachmark-beacon/index.js +9 -0
- package/es/components/coachmark/coachmark-beacon/index.js.map +1 -0
- package/es/components/coachmark/coachmark-body.d.ts +382 -0
- package/es/components/coachmark/coachmark-body.js +40 -0
- package/es/components/coachmark/coachmark-body.js.map +1 -0
- package/es/components/coachmark/coachmark-body.scss.js +13 -0
- package/es/components/coachmark/coachmark-body.scss.js.map +1 -0
- package/es/components/coachmark/coachmark-context.d.ts +11 -0
- package/es/components/coachmark/coachmark-context.js +39 -0
- package/es/components/coachmark/coachmark-context.js.map +1 -0
- package/es/components/coachmark/coachmark-header.d.ts +392 -0
- package/es/components/coachmark/coachmark-header.js +92 -0
- package/es/components/coachmark/coachmark-header.js.map +1 -0
- package/es/components/coachmark/coachmark-header.scss.js +13 -0
- package/es/components/coachmark/coachmark-header.scss.js.map +1 -0
- package/es/components/coachmark/coachmark.d.ts +416 -0
- package/es/components/coachmark/coachmark.js +165 -0
- package/es/components/coachmark/coachmark.js.map +1 -0
- package/es/components/coachmark/coachmark.scss.js +13 -0
- package/es/components/coachmark/coachmark.scss.js.map +1 -0
- package/es/components/coachmark/coachmark.test.d.ts +1 -0
- package/es/components/coachmark/coachmark.test.js +168 -0
- package/es/components/coachmark/coachmark.test.js.map +1 -0
- package/es/components/coachmark/index.d.ts +11 -0
- package/es/components/coachmark/index.js +11 -0
- package/es/components/coachmark/index.js.map +1 -0
- package/es/components/full-page-error/assets/error403SVG.js +831 -0
- package/es/components/full-page-error/assets/error403SVG.js.map +1 -0
- package/es/components/full-page-error/assets/error404SVG.js +735 -0
- package/es/components/full-page-error/assets/error404SVG.js.map +1 -0
- package/es/components/full-page-error/assets/errorGenericSVG.js +830 -0
- package/es/components/full-page-error/assets/errorGenericSVG.js.map +1 -0
- package/es/components/full-page-error/full-page-error.d.ts +43 -0
- package/es/components/full-page-error/full-page-error.figma.js +81 -0
- package/es/components/full-page-error/full-page-error.figma.js.map +1 -0
- package/es/components/full-page-error/full-page-error.js +102 -0
- package/es/components/full-page-error/full-page-error.js.map +1 -0
- package/es/components/full-page-error/full-page-error.scss.js +13 -0
- package/es/components/full-page-error/full-page-error.scss.js.map +1 -0
- package/es/components/full-page-error/full-page-error.test.d.ts +7 -0
- package/es/components/full-page-error/full-page-error.test.js +102 -0
- package/es/components/full-page-error/full-page-error.test.js.map +1 -0
- package/es/components/full-page-error/index.d.ts +9 -0
- package/es/components/full-page-error/index.js +9 -0
- package/es/components/full-page-error/index.js.map +1 -0
- package/es/components/full-page-error/types.d.ts +13 -0
- package/es/components/full-page-error/types.js +24 -0
- package/es/components/full-page-error/types.js.map +1 -0
- package/es/components/guide-banner/guide-banner-element.d.ts +378 -0
- package/es/components/guide-banner/guide-banner-element.js +38 -0
- package/es/components/guide-banner/guide-banner-element.js.map +1 -0
- package/es/components/guide-banner/guide-banner.d.ts +398 -0
- package/es/components/guide-banner/guide-banner.js +151 -0
- package/es/components/guide-banner/guide-banner.js.map +1 -0
- package/es/components/guide-banner/guide-banner.scss.js +13 -0
- package/es/components/guide-banner/guide-banner.scss.js.map +1 -0
- package/es/components/guide-banner/guide-banner.test.d.ts +1 -0
- package/es/components/guide-banner/guide-banner.test.js +121 -0
- package/es/components/guide-banner/guide-banner.test.js.map +1 -0
- package/es/components/guide-banner/index.d.ts +10 -0
- package/es/components/guide-banner/index.js +10 -0
- package/es/components/guide-banner/index.js.map +1 -0
- package/es/components/interstitial-screen/index.d.ts +13 -0
- package/es/components/interstitial-screen/index.js +13 -0
- package/es/components/interstitial-screen/index.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.d.ts +388 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.js +71 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body.d.ts +402 -0
- package/es/components/interstitial-screen/interstitial-screen-body.js +152 -0
- package/es/components/interstitial-screen/interstitial-screen-body.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-body.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-context.d.ts +18 -0
- package/es/components/interstitial-screen/interstitial-screen-context.js +48 -0
- package/es/components/interstitial-screen/interstitial-screen-context.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.d.ts +429 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.js +263 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-header.d.ts +413 -0
- package/es/components/interstitial-screen/interstitial-screen-header.js +177 -0
- package/es/components/interstitial-screen/interstitial-screen-header.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-header.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-header.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen.d.ts +441 -0
- package/es/components/interstitial-screen/interstitial-screen.js +217 -0
- package/es/components/interstitial-screen/interstitial-screen.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen.test.d.ts +1 -0
- package/es/components/interstitial-screen/interstitial-screen.test.js +329 -0
- package/es/components/interstitial-screen/interstitial-screen.test.js.map +1 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
- package/es/components/notification-panel/date-time-context.d.ts +9 -0
- package/es/components/notification-panel/date-time-context.js +19 -0
- package/es/components/notification-panel/date-time-context.js.map +1 -0
- package/es/components/notification-panel/defs.d.ts +8 -0
- package/es/components/notification-panel/defs.js +8 -0
- package/es/components/notification-panel/defs.js.map +1 -0
- package/es/components/notification-panel/index.d.ts +11 -0
- package/es/components/notification-panel/index.js +11 -0
- package/es/components/notification-panel/index.js.map +1 -0
- package/es/components/notification-panel/notification-footer.d.ts +405 -0
- package/es/components/notification-panel/notification-footer.js +120 -0
- package/es/components/notification-panel/notification-footer.js.map +1 -0
- package/es/components/notification-panel/notification-footer.scss.js +13 -0
- package/es/components/notification-panel/notification-footer.scss.js.map +1 -0
- package/es/components/notification-panel/notification-footer.test.d.ts +7 -0
- package/es/components/notification-panel/notification-footer.test.js +65 -0
- package/es/components/notification-panel/notification-footer.test.js.map +1 -0
- package/es/components/notification-panel/notification-panel.d.ts +479 -0
- package/es/components/notification-panel/notification-panel.js +439 -0
- package/es/components/notification-panel/notification-panel.js.map +1 -0
- package/es/components/notification-panel/notification-panel.scss.js +13 -0
- package/es/components/notification-panel/notification-panel.scss.js.map +1 -0
- package/es/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/es/components/notification-panel/notification-panel.test.js +340 -0
- package/es/components/notification-panel/notification-panel.test.js.map +1 -0
- package/es/components/notification-panel/notification.d.ts +415 -0
- package/es/components/notification-panel/notification.js +179 -0
- package/es/components/notification-panel/notification.js.map +1 -0
- package/es/components/notification-panel/notification.scss.js +13 -0
- package/es/components/notification-panel/notification.scss.js.map +1 -0
- package/es/components/notification-panel/notification.test.d.ts +7 -0
- package/es/components/notification-panel/notification.test.js +152 -0
- package/es/components/notification-panel/notification.test.js.map +1 -0
- package/es/components/options-tile/index.d.ts +9 -0
- package/es/components/options-tile/index.js +9 -0
- package/es/components/options-tile/index.js.map +1 -0
- package/es/components/options-tile/options-file.figma.js +96 -0
- package/es/components/options-tile/options-file.figma.js.map +1 -0
- package/es/components/options-tile/options-tile.d.ts +416 -0
- package/es/components/options-tile/options-tile.js +158 -0
- package/es/components/options-tile/options-tile.js.map +1 -0
- package/es/components/options-tile/options-tile.scss.js +13 -0
- package/es/components/options-tile/options-tile.scss.js.map +1 -0
- package/es/components/options-tile/options-tile.test.d.ts +1 -0
- package/es/components/options-tile/options-tile.test.js +129 -0
- package/es/components/options-tile/options-tile.test.js.map +1 -0
- package/es/components/page-header/_story-assets/2x1.jpg.js +11 -0
- package/es/components/page-header/_story-assets/2x1.jpg.js.map +1 -0
- package/es/components/page-header/_story-assets/3x2.jpg.js +11 -0
- package/es/components/page-header/_story-assets/3x2.jpg.js.map +1 -0
- package/es/components/page-header/_story-assets/overflowHandler.d.ts +98 -0
- package/es/components/page-header/_story-assets/overflowHandler.js +156 -0
- package/es/components/page-header/_story-assets/overflowHandler.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +43 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.js +154 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +13 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-tags/index.d.ts +9 -0
- package/es/components/page-header/_story-assets/set-of-tags/index.js +9 -0
- package/es/components/page-header/_story-assets/set-of-tags/index.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +40 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.js +260 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +13 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-tags/utils.d.ts +23 -0
- package/es/components/page-header/_story-assets/set-of-tags/utils.js +44 -0
- package/es/components/page-header/_story-assets/set-of-tags/utils.js.map +1 -0
- package/es/components/page-header/context.d.ts +15 -0
- package/es/components/page-header/context.js +27 -0
- package/es/components/page-header/context.js.map +1 -0
- package/es/components/page-header/index.d.ts +16 -0
- package/es/components/page-header/index.js +16 -0
- package/es/components/page-header/index.js.map +1 -0
- package/es/components/page-header/page-header-breadcrumb.d.ts +36 -0
- package/es/components/page-header/page-header-breadcrumb.js +106 -0
- package/es/components/page-header/page-header-breadcrumb.js.map +1 -0
- package/es/components/page-header/page-header-content-text.d.ts +22 -0
- package/es/components/page-header/page-header-content-text.js +56 -0
- package/es/components/page-header/page-header-content-text.js.map +1 -0
- package/es/components/page-header/page-header-content.d.ts +42 -0
- package/es/components/page-header/page-header-content.js +141 -0
- package/es/components/page-header/page-header-content.js.map +1 -0
- package/es/components/page-header/page-header-hero-image.d.ts +18 -0
- package/es/components/page-header/page-header-hero-image.js +38 -0
- package/es/components/page-header/page-header-hero-image.js.map +1 -0
- package/es/components/page-header/page-header-scroller.d.ts +56 -0
- package/es/components/page-header/page-header-scroller.js +166 -0
- package/es/components/page-header/page-header-scroller.js.map +1 -0
- package/es/components/page-header/page-header-tabs.d.ts +18 -0
- package/es/components/page-header/page-header-tabs.js +48 -0
- package/es/components/page-header/page-header-tabs.js.map +1 -0
- package/es/components/page-header/page-header-title-breadcrumb.d.ts +20 -0
- package/es/components/page-header/page-header-title-breadcrumb.js +71 -0
- package/es/components/page-header/page-header-title-breadcrumb.js.map +1 -0
- package/es/components/page-header/page-header.d.ts +31 -0
- package/es/components/page-header/page-header.js +128 -0
- package/es/components/page-header/page-header.js.map +1 -0
- package/es/components/page-header/page-header.scss.js +13 -0
- package/es/components/page-header/page-header.scss.js.map +1 -0
- package/es/components/page-header/page-header.test.d.ts +1 -0
- package/es/components/page-header/page-header.test.js +349 -0
- package/es/components/page-header/page-header.test.js.map +1 -0
- package/es/components/page-header/utils.d.ts +32 -0
- package/es/components/page-header/utils.js +76 -0
- package/es/components/page-header/utils.js.map +1 -0
- package/es/components/side-panel/_story-assets/index.d.ts +8 -0
- package/es/components/side-panel/_story-assets/index.js +275 -0
- package/es/components/side-panel/_story-assets/index.js.map +1 -0
- package/es/components/side-panel/defs.d.ts +39 -0
- package/es/components/side-panel/defs.js +51 -0
- package/es/components/side-panel/defs.js.map +1 -0
- package/es/components/side-panel/index.d.ts +9 -0
- package/es/components/side-panel/index.js +9 -0
- package/es/components/side-panel/index.js.map +1 -0
- package/es/components/side-panel/side-panel.d.ts +571 -0
- package/es/components/side-panel/side-panel.js +859 -0
- package/es/components/side-panel/side-panel.js.map +1 -0
- package/es/components/side-panel/side-panel.scss.js +13 -0
- package/es/components/side-panel/side-panel.scss.js.map +1 -0
- package/es/components/side-panel/side-panel.test.d.ts +3 -0
- package/es/components/side-panel/side-panel.test.js +273 -0
- package/es/components/side-panel/side-panel.test.js.map +1 -0
- package/es/components/side-panel/story-styles.scss.js +13 -0
- package/es/components/side-panel/story-styles.scss.js.map +1 -0
- package/es/components/tearsheet/defs.d.ts +26 -0
- package/es/components/tearsheet/defs.js +39 -0
- package/es/components/tearsheet/defs.js.map +1 -0
- package/es/components/tearsheet/index.d.ts +9 -0
- package/es/components/tearsheet/index.js +9 -0
- package/es/components/tearsheet/index.js.map +1 -0
- package/es/components/tearsheet/story-styles.scss.js +13 -0
- package/es/components/tearsheet/story-styles.scss.js.map +1 -0
- package/es/components/tearsheet/tearsheet.d.ts +535 -0
- package/es/components/tearsheet/tearsheet.js +721 -0
- package/es/components/tearsheet/tearsheet.js.map +1 -0
- package/es/components/tearsheet/tearsheet.scss.js +13 -0
- package/es/components/tearsheet/tearsheet.scss.js.map +1 -0
- package/es/components/tearsheet/tearsheet.test.d.ts +14 -0
- package/es/components/tearsheet/tearsheet.test.js +305 -0
- package/es/components/tearsheet/tearsheet.test.js.map +1 -0
- package/es/components/tearsheet/utils.d.ts +34 -0
- package/es/components/tearsheet/utils.js +370 -0
- package/es/components/tearsheet/utils.js.map +1 -0
- package/es/components/truncated-text/index.d.ts +9 -0
- package/es/components/truncated-text/index.js +9 -0
- package/es/components/truncated-text/index.js.map +1 -0
- package/es/components/truncated-text/truncated-text.d.ts +78 -0
- package/es/components/truncated-text/truncated-text.js +257 -0
- package/es/components/truncated-text/truncated-text.js.map +1 -0
- package/es/components/truncated-text/truncated-text.scss.js +13 -0
- package/es/components/truncated-text/truncated-text.scss.js.map +1 -0
- package/es/components/truncated-text/truncated-text.test.d.ts +7 -0
- package/es/components/truncated-text/truncated-text.test.js +77 -0
- package/es/components/truncated-text/truncated-text.test.js.map +1 -0
- package/es/components/user-avatar/index.d.ts +9 -0
- package/es/components/user-avatar/index.js +9 -0
- package/es/components/user-avatar/index.js.map +1 -0
- package/es/components/user-avatar/user-avatar.d.ts +425 -0
- package/es/components/user-avatar/user-avatar.figma.js +161 -0
- package/es/components/user-avatar/user-avatar.figma.js.map +1 -0
- package/es/components/user-avatar/user-avatar.js +141 -0
- package/es/components/user-avatar/user-avatar.js.map +1 -0
- package/es/components/user-avatar/user-avatar.scss.js +13 -0
- package/es/components/user-avatar/user-avatar.scss.js.map +1 -0
- package/es/components/user-avatar/user-avatar.test.d.ts +1 -0
- package/es/components/user-avatar/user-avatar.test.js +128 -0
- package/es/components/user-avatar/user-avatar.test.js.map +1 -0
- package/es/globals/internal/handle.d.ts +18 -0
- package/es/globals/internal/handle.js +8 -0
- package/es/globals/internal/handle.js.map +1 -0
- package/es/globals/internal/pconsole.d.ts +15 -0
- package/es/globals/internal/pconsole.js +30 -0
- package/es/globals/internal/pconsole.js.map +1 -0
- package/es/globals/internal/storybook-cdn.js +78 -0
- package/es/globals/internal/storybook-cdn.js.map +1 -0
- package/es/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/es/globals/js/utils/getSupportedLocale.js +35 -0
- package/es/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/es/globals/settings.d.ts +15 -0
- package/es/globals/settings.js +28 -0
- package/es/globals/settings.js.map +1 -0
- package/es/index.d.ts +25 -0
- package/es/index.js +25 -0
- package/es/index.js.map +1 -0
- package/es/node_modules/@carbon/layout/es/index.js +44 -0
- package/es/node_modules/@carbon/layout/es/index.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +11 -0
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +1 -0
- package/es/packages/ibm-products-web-components/package.json.js +13 -0
- package/es/packages/ibm-products-web-components/package.json.js.map +1 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.d.ts +41 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.js +257 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.js.map +1 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.scss.js +13 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.scss.js.map +1 -0
- package/es/patterns/step-flow/_story-assets/step-tearsheet.d.ts +41 -0
- package/es/patterns/step-flow/_story-assets/step-tearsheet.js +255 -0
- package/es/patterns/step-flow/_story-assets/step-tearsheet.js.map +1 -0
- package/es/patterns/step-flow/index.d.ts +10 -0
- package/es/patterns/step-flow/index.js +10 -0
- package/es/patterns/step-flow/index.js.map +1 -0
- package/es/patterns/step-flow/step-flow-signal.d.ts +24 -0
- package/es/patterns/step-flow/step-flow-signal.js +54 -0
- package/es/patterns/step-flow/step-flow-signal.js.map +1 -0
- package/es/patterns/step-flow/step-flow-signal.test.d.ts +7 -0
- package/es/patterns/step-flow/step-flow-signal.test.js +88 -0
- package/es/patterns/step-flow/step-flow-signal.test.js.map +1 -0
- package/es/patterns/step-flow/step-group.d.ts +15 -0
- package/es/patterns/step-flow/step-group.js +28 -0
- package/es/patterns/step-flow/step-group.js.map +1 -0
- package/es/patterns/step-flow/story-styles.scss.js +13 -0
- package/es/patterns/step-flow/story-styles.scss.js.map +1 -0
- package/es/utilities/carousel/carousel.d.ts +14 -0
- package/es/utilities/carousel/carousel.js +341 -0
- package/es/utilities/carousel/carousel.js.map +1 -0
- package/es/utilities/carousel/index.d.ts +8 -0
- package/es/utilities/carousel/index.js +9 -0
- package/es/utilities/carousel/index.js.map +1 -0
- package/es/utilities/carousel/swipeEvents.d.ts +7 -0
- package/es/utilities/carousel/swipeEvents.js +109 -0
- package/es/utilities/carousel/swipeEvents.js.map +1 -0
- package/es/utilities/carousel/types.d.ts +37 -0
- package/es/utilities/carousel/types.js +8 -0
- package/es/utilities/carousel/types.js.map +1 -0
- package/es/utilities/makeDraggable/makeDraggable.d.ts +38 -0
- package/es/utilities/makeDraggable/makeDraggable.js +136 -0
- package/es/utilities/makeDraggable/makeDraggable.js.map +1 -0
- package/es/utilities/manageFocusTrap/manageFocusTrap.d.ts +13 -0
- package/es/utilities/manageFocusTrap/manageFocusTrap.js +138 -0
- package/es/utilities/manageFocusTrap/manageFocusTrap.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.d.ts +458 -0
- package/es-custom/components/about-modal/about-modal.figma.js +59 -0
- package/es-custom/components/about-modal/about-modal.figma.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.js +203 -0
- package/es-custom/components/about-modal/about-modal.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.scss.js +13 -0
- package/es-custom/components/about-modal/about-modal.scss.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.test.d.ts +7 -0
- package/es-custom/components/about-modal/about-modal.test.js +208 -0
- package/es-custom/components/about-modal/about-modal.test.js.map +1 -0
- package/es-custom/components/about-modal/index.d.ts +9 -0
- package/es-custom/components/about-modal/index.js +9 -0
- package/es-custom/components/about-modal/index.js.map +1 -0
- package/es-custom/components/checklist/checklist-chart.d.ts +25 -0
- package/es-custom/components/checklist/checklist-chart.js +81 -0
- package/es-custom/components/checklist/checklist-chart.js.map +1 -0
- package/es-custom/components/checklist/checklist-group.d.ts +25 -0
- package/es-custom/components/checklist/checklist-group.js +58 -0
- package/es-custom/components/checklist/checklist-group.js.map +1 -0
- package/es-custom/components/checklist/checklist-icon.d.ts +26 -0
- package/es-custom/components/checklist/checklist-icon.js +72 -0
- package/es-custom/components/checklist/checklist-icon.js.map +1 -0
- package/es-custom/components/checklist/checklist-item.d.ts +41 -0
- package/es-custom/components/checklist/checklist-item.figma.js +49 -0
- package/es-custom/components/checklist/checklist-item.figma.js.map +1 -0
- package/es-custom/components/checklist/checklist-item.js +128 -0
- package/es-custom/components/checklist/checklist-item.js.map +1 -0
- package/es-custom/components/checklist/checklist.d.ts +73 -0
- package/es-custom/components/checklist/checklist.figma.js +87 -0
- package/es-custom/components/checklist/checklist.figma.js.map +1 -0
- package/es-custom/components/checklist/checklist.js +198 -0
- package/es-custom/components/checklist/checklist.js.map +1 -0
- package/es-custom/components/checklist/checklist.scss.js +13 -0
- package/es-custom/components/checklist/checklist.scss.js.map +1 -0
- package/es-custom/components/checklist/checklist.test.d.ts +7 -0
- package/es-custom/components/checklist/checklist.test.js +172 -0
- package/es-custom/components/checklist/checklist.test.js.map +1 -0
- package/es-custom/components/checklist/checklist.types.d.ts +22 -0
- package/es-custom/components/checklist/checklist.types.js +32 -0
- package/es-custom/components/checklist/checklist.types.js.map +1 -0
- package/es-custom/components/checklist/index.d.ts +13 -0
- package/es-custom/components/checklist/index.js +13 -0
- package/es-custom/components/checklist/index.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +418 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js +139 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +13 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.d.ts +9 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +77 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.d.ts +14 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.js +25 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/index.d.ts +9 -0
- package/es-custom/components/coachmark/coachmark-beacon/index.js +9 -0
- package/es-custom/components/coachmark/coachmark-beacon/index.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-body.d.ts +382 -0
- package/es-custom/components/coachmark/coachmark-body.js +40 -0
- package/es-custom/components/coachmark/coachmark-body.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-body.scss.js +13 -0
- package/es-custom/components/coachmark/coachmark-body.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-context.d.ts +11 -0
- package/es-custom/components/coachmark/coachmark-context.js +39 -0
- package/es-custom/components/coachmark/coachmark-context.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-header.d.ts +392 -0
- package/es-custom/components/coachmark/coachmark-header.js +92 -0
- package/es-custom/components/coachmark/coachmark-header.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-header.scss.js +13 -0
- package/es-custom/components/coachmark/coachmark-header.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark.d.ts +416 -0
- package/es-custom/components/coachmark/coachmark.js +165 -0
- package/es-custom/components/coachmark/coachmark.js.map +1 -0
- package/es-custom/components/coachmark/coachmark.scss.js +13 -0
- package/es-custom/components/coachmark/coachmark.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark.test.d.ts +1 -0
- package/es-custom/components/coachmark/coachmark.test.js +168 -0
- package/es-custom/components/coachmark/coachmark.test.js.map +1 -0
- package/es-custom/components/coachmark/index.d.ts +11 -0
- package/es-custom/components/coachmark/index.js +11 -0
- package/es-custom/components/coachmark/index.js.map +1 -0
- package/es-custom/components/full-page-error/assets/error403SVG.js +831 -0
- package/es-custom/components/full-page-error/assets/error403SVG.js.map +1 -0
- package/es-custom/components/full-page-error/assets/error404SVG.js +735 -0
- package/es-custom/components/full-page-error/assets/error404SVG.js.map +1 -0
- package/es-custom/components/full-page-error/assets/errorGenericSVG.js +830 -0
- package/es-custom/components/full-page-error/assets/errorGenericSVG.js.map +1 -0
- package/es-custom/components/full-page-error/full-page-error.d.ts +43 -0
- package/es-custom/components/full-page-error/full-page-error.figma.js +81 -0
- package/es-custom/components/full-page-error/full-page-error.figma.js.map +1 -0
- package/es-custom/components/full-page-error/full-page-error.js +102 -0
- package/es-custom/components/full-page-error/full-page-error.js.map +1 -0
- package/es-custom/components/full-page-error/full-page-error.scss.js +13 -0
- package/es-custom/components/full-page-error/full-page-error.scss.js.map +1 -0
- package/es-custom/components/full-page-error/full-page-error.test.d.ts +7 -0
- package/es-custom/components/full-page-error/full-page-error.test.js +102 -0
- package/es-custom/components/full-page-error/full-page-error.test.js.map +1 -0
- package/es-custom/components/full-page-error/index.d.ts +9 -0
- package/es-custom/components/full-page-error/index.js +9 -0
- package/es-custom/components/full-page-error/index.js.map +1 -0
- package/es-custom/components/full-page-error/types.d.ts +13 -0
- package/es-custom/components/full-page-error/types.js +24 -0
- package/es-custom/components/full-page-error/types.js.map +1 -0
- package/es-custom/components/guide-banner/guide-banner-element.d.ts +378 -0
- package/es-custom/components/guide-banner/guide-banner-element.js +38 -0
- package/es-custom/components/guide-banner/guide-banner-element.js.map +1 -0
- package/es-custom/components/guide-banner/guide-banner.d.ts +398 -0
- package/es-custom/components/guide-banner/guide-banner.js +151 -0
- package/es-custom/components/guide-banner/guide-banner.js.map +1 -0
- package/es-custom/components/guide-banner/guide-banner.scss.js +13 -0
- package/es-custom/components/guide-banner/guide-banner.scss.js.map +1 -0
- package/es-custom/components/guide-banner/guide-banner.test.d.ts +1 -0
- package/es-custom/components/guide-banner/guide-banner.test.js +121 -0
- package/es-custom/components/guide-banner/guide-banner.test.js.map +1 -0
- package/es-custom/components/guide-banner/index.d.ts +10 -0
- package/es-custom/components/guide-banner/index.js +10 -0
- package/es-custom/components/guide-banner/index.js.map +1 -0
- package/es-custom/components/interstitial-screen/index.d.ts +13 -0
- package/es-custom/components/interstitial-screen/index.js +13 -0
- package/es-custom/components/interstitial-screen/index.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.d.ts +388 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js +71 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.d.ts +402 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.js +152 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-context.d.ts +18 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-context.js +48 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-context.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.d.ts +429 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.js +263 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.d.ts +413 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.js +177 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.d.ts +441 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.js +217 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.test.d.ts +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.test.js +329 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.test.js.map +1 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
- package/es-custom/components/notification-panel/date-time-context.d.ts +9 -0
- package/es-custom/components/notification-panel/date-time-context.js +19 -0
- package/es-custom/components/notification-panel/date-time-context.js.map +1 -0
- package/es-custom/components/notification-panel/defs.d.ts +8 -0
- package/es-custom/components/notification-panel/defs.js +8 -0
- package/es-custom/components/notification-panel/defs.js.map +1 -0
- package/es-custom/components/notification-panel/index.d.ts +11 -0
- package/es-custom/components/notification-panel/index.js +11 -0
- package/es-custom/components/notification-panel/index.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.d.ts +405 -0
- package/es-custom/components/notification-panel/notification-footer.js +120 -0
- package/es-custom/components/notification-panel/notification-footer.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.scss.js +13 -0
- package/es-custom/components/notification-panel/notification-footer.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.test.d.ts +7 -0
- package/es-custom/components/notification-panel/notification-footer.test.js +65 -0
- package/es-custom/components/notification-panel/notification-footer.test.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.d.ts +479 -0
- package/es-custom/components/notification-panel/notification-panel.js +439 -0
- package/es-custom/components/notification-panel/notification-panel.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.scss.js +13 -0
- package/es-custom/components/notification-panel/notification-panel.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/es-custom/components/notification-panel/notification-panel.test.js +340 -0
- package/es-custom/components/notification-panel/notification-panel.test.js.map +1 -0
- package/es-custom/components/notification-panel/notification.d.ts +415 -0
- package/es-custom/components/notification-panel/notification.js +179 -0
- package/es-custom/components/notification-panel/notification.js.map +1 -0
- package/es-custom/components/notification-panel/notification.scss.js +13 -0
- package/es-custom/components/notification-panel/notification.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification.test.d.ts +7 -0
- package/es-custom/components/notification-panel/notification.test.js +152 -0
- package/es-custom/components/notification-panel/notification.test.js.map +1 -0
- package/es-custom/components/options-tile/index.d.ts +9 -0
- package/es-custom/components/options-tile/index.js +9 -0
- package/es-custom/components/options-tile/index.js.map +1 -0
- package/es-custom/components/options-tile/options-file.figma.js +96 -0
- package/es-custom/components/options-tile/options-file.figma.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.d.ts +416 -0
- package/es-custom/components/options-tile/options-tile.js +158 -0
- package/es-custom/components/options-tile/options-tile.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.scss.js +13 -0
- package/es-custom/components/options-tile/options-tile.scss.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.test.d.ts +1 -0
- package/es-custom/components/options-tile/options-tile.test.js +129 -0
- package/es-custom/components/options-tile/options-tile.test.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/2x1.jpg.js +11 -0
- package/es-custom/components/page-header/_story-assets/2x1.jpg.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/3x2.jpg.js +11 -0
- package/es-custom/components/page-header/_story-assets/3x2.jpg.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/overflowHandler.d.ts +98 -0
- package/es-custom/components/page-header/_story-assets/overflowHandler.js +156 -0
- package/es-custom/components/page-header/_story-assets/overflowHandler.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +43 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js +154 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +13 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/index.d.ts +9 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/index.js +9 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/index.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +40 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.js +260 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +13 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/utils.d.ts +23 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/utils.js +44 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/utils.js.map +1 -0
- package/es-custom/components/page-header/context.d.ts +15 -0
- package/es-custom/components/page-header/context.js +27 -0
- package/es-custom/components/page-header/context.js.map +1 -0
- package/es-custom/components/page-header/index.d.ts +16 -0
- package/es-custom/components/page-header/index.js +16 -0
- package/es-custom/components/page-header/index.js.map +1 -0
- package/es-custom/components/page-header/page-header-breadcrumb.d.ts +36 -0
- package/es-custom/components/page-header/page-header-breadcrumb.js +106 -0
- package/es-custom/components/page-header/page-header-breadcrumb.js.map +1 -0
- package/es-custom/components/page-header/page-header-content-text.d.ts +22 -0
- package/es-custom/components/page-header/page-header-content-text.js +56 -0
- package/es-custom/components/page-header/page-header-content-text.js.map +1 -0
- package/es-custom/components/page-header/page-header-content.d.ts +42 -0
- package/es-custom/components/page-header/page-header-content.js +141 -0
- package/es-custom/components/page-header/page-header-content.js.map +1 -0
- package/es-custom/components/page-header/page-header-hero-image.d.ts +18 -0
- package/es-custom/components/page-header/page-header-hero-image.js +38 -0
- package/es-custom/components/page-header/page-header-hero-image.js.map +1 -0
- package/es-custom/components/page-header/page-header-scroller.d.ts +56 -0
- package/es-custom/components/page-header/page-header-scroller.js +166 -0
- package/es-custom/components/page-header/page-header-scroller.js.map +1 -0
- package/es-custom/components/page-header/page-header-tabs.d.ts +18 -0
- package/es-custom/components/page-header/page-header-tabs.js +48 -0
- package/es-custom/components/page-header/page-header-tabs.js.map +1 -0
- package/es-custom/components/page-header/page-header-title-breadcrumb.d.ts +20 -0
- package/es-custom/components/page-header/page-header-title-breadcrumb.js +71 -0
- package/es-custom/components/page-header/page-header-title-breadcrumb.js.map +1 -0
- package/es-custom/components/page-header/page-header.d.ts +31 -0
- package/es-custom/components/page-header/page-header.js +128 -0
- package/es-custom/components/page-header/page-header.js.map +1 -0
- package/es-custom/components/page-header/page-header.scss.js +13 -0
- package/es-custom/components/page-header/page-header.scss.js.map +1 -0
- package/es-custom/components/page-header/page-header.test.d.ts +1 -0
- package/es-custom/components/page-header/page-header.test.js +349 -0
- package/es-custom/components/page-header/page-header.test.js.map +1 -0
- package/es-custom/components/page-header/utils.d.ts +32 -0
- package/es-custom/components/page-header/utils.js +76 -0
- package/es-custom/components/page-header/utils.js.map +1 -0
- package/es-custom/components/side-panel/_story-assets/index.d.ts +8 -0
- package/es-custom/components/side-panel/_story-assets/index.js +275 -0
- package/es-custom/components/side-panel/_story-assets/index.js.map +1 -0
- package/es-custom/components/side-panel/defs.d.ts +39 -0
- package/es-custom/components/side-panel/defs.js +51 -0
- package/es-custom/components/side-panel/defs.js.map +1 -0
- package/es-custom/components/side-panel/index.d.ts +9 -0
- package/es-custom/components/side-panel/index.js +9 -0
- package/es-custom/components/side-panel/index.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.d.ts +571 -0
- package/es-custom/components/side-panel/side-panel.js +859 -0
- package/es-custom/components/side-panel/side-panel.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.scss.js +13 -0
- package/es-custom/components/side-panel/side-panel.scss.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.test.d.ts +3 -0
- package/es-custom/components/side-panel/side-panel.test.js +273 -0
- package/es-custom/components/side-panel/side-panel.test.js.map +1 -0
- package/es-custom/components/side-panel/story-styles.scss.js +13 -0
- package/es-custom/components/side-panel/story-styles.scss.js.map +1 -0
- package/es-custom/components/tearsheet/defs.d.ts +26 -0
- package/es-custom/components/tearsheet/defs.js +39 -0
- package/es-custom/components/tearsheet/defs.js.map +1 -0
- package/es-custom/components/tearsheet/index.d.ts +9 -0
- package/es-custom/components/tearsheet/index.js +9 -0
- package/es-custom/components/tearsheet/index.js.map +1 -0
- package/es-custom/components/tearsheet/story-styles.scss.js +13 -0
- package/es-custom/components/tearsheet/story-styles.scss.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.d.ts +535 -0
- package/es-custom/components/tearsheet/tearsheet.js +721 -0
- package/es-custom/components/tearsheet/tearsheet.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.scss.js +13 -0
- package/es-custom/components/tearsheet/tearsheet.scss.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.test.d.ts +14 -0
- package/es-custom/components/tearsheet/tearsheet.test.js +305 -0
- package/es-custom/components/tearsheet/tearsheet.test.js.map +1 -0
- package/es-custom/components/tearsheet/utils.d.ts +34 -0
- package/es-custom/components/tearsheet/utils.js +370 -0
- package/es-custom/components/tearsheet/utils.js.map +1 -0
- package/es-custom/components/truncated-text/index.d.ts +9 -0
- package/es-custom/components/truncated-text/index.js +9 -0
- package/es-custom/components/truncated-text/index.js.map +1 -0
- package/es-custom/components/truncated-text/truncated-text.d.ts +78 -0
- package/es-custom/components/truncated-text/truncated-text.js +257 -0
- package/es-custom/components/truncated-text/truncated-text.js.map +1 -0
- package/es-custom/components/truncated-text/truncated-text.scss.js +13 -0
- package/es-custom/components/truncated-text/truncated-text.scss.js.map +1 -0
- package/es-custom/components/truncated-text/truncated-text.test.d.ts +7 -0
- package/es-custom/components/truncated-text/truncated-text.test.js +77 -0
- package/es-custom/components/truncated-text/truncated-text.test.js.map +1 -0
- package/es-custom/components/user-avatar/index.d.ts +9 -0
- package/es-custom/components/user-avatar/index.js +9 -0
- package/es-custom/components/user-avatar/index.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.d.ts +425 -0
- package/es-custom/components/user-avatar/user-avatar.figma.js +161 -0
- package/es-custom/components/user-avatar/user-avatar.figma.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.js +141 -0
- package/es-custom/components/user-avatar/user-avatar.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.scss.js +13 -0
- package/es-custom/components/user-avatar/user-avatar.scss.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.test.d.ts +1 -0
- package/es-custom/components/user-avatar/user-avatar.test.js +128 -0
- package/es-custom/components/user-avatar/user-avatar.test.js.map +1 -0
- package/es-custom/globals/internal/handle.d.ts +18 -0
- package/es-custom/globals/internal/handle.js +8 -0
- package/es-custom/globals/internal/handle.js.map +1 -0
- package/es-custom/globals/internal/pconsole.d.ts +15 -0
- package/es-custom/globals/internal/pconsole.js +30 -0
- package/es-custom/globals/internal/pconsole.js.map +1 -0
- package/es-custom/globals/internal/storybook-cdn.js +78 -0
- package/es-custom/globals/internal/storybook-cdn.js.map +1 -0
- package/es-custom/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/es-custom/globals/js/utils/getSupportedLocale.js +35 -0
- package/es-custom/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/es-custom/globals/settings.d.ts +15 -0
- package/es-custom/globals/settings.js +28 -0
- package/es-custom/globals/settings.js.map +1 -0
- package/es-custom/index.d.ts +25 -0
- package/es-custom/index.js +25 -0
- package/es-custom/index.js.map +1 -0
- package/es-custom/node_modules/@carbon/layout/es/index.js +44 -0
- package/es-custom/node_modules/@carbon/layout/es/index.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +11 -0
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +1 -0
- package/es-custom/packages/ibm-products-web-components/package.json.js +13 -0
- package/es-custom/packages/ibm-products-web-components/package.json.js.map +1 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.d.ts +41 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.js +257 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.js.map +1 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.scss.js +13 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.scss.js.map +1 -0
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.d.ts +41 -0
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.js +255 -0
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.js.map +1 -0
- package/es-custom/patterns/step-flow/index.d.ts +10 -0
- package/es-custom/patterns/step-flow/index.js +10 -0
- package/es-custom/patterns/step-flow/index.js.map +1 -0
- package/es-custom/patterns/step-flow/step-flow-signal.d.ts +24 -0
- package/es-custom/patterns/step-flow/step-flow-signal.js +54 -0
- package/es-custom/patterns/step-flow/step-flow-signal.js.map +1 -0
- package/es-custom/patterns/step-flow/step-flow-signal.test.d.ts +7 -0
- package/es-custom/patterns/step-flow/step-flow-signal.test.js +88 -0
- package/es-custom/patterns/step-flow/step-flow-signal.test.js.map +1 -0
- package/es-custom/patterns/step-flow/step-group.d.ts +15 -0
- package/es-custom/patterns/step-flow/step-group.js +28 -0
- package/es-custom/patterns/step-flow/step-group.js.map +1 -0
- package/es-custom/patterns/step-flow/story-styles.scss.js +13 -0
- package/es-custom/patterns/step-flow/story-styles.scss.js.map +1 -0
- package/es-custom/utilities/carousel/carousel.d.ts +14 -0
- package/es-custom/utilities/carousel/carousel.js +341 -0
- package/es-custom/utilities/carousel/carousel.js.map +1 -0
- package/es-custom/utilities/carousel/index.d.ts +8 -0
- package/es-custom/utilities/carousel/index.js +9 -0
- package/es-custom/utilities/carousel/index.js.map +1 -0
- package/es-custom/utilities/carousel/swipeEvents.d.ts +7 -0
- package/es-custom/utilities/carousel/swipeEvents.js +109 -0
- package/es-custom/utilities/carousel/swipeEvents.js.map +1 -0
- package/es-custom/utilities/carousel/types.d.ts +37 -0
- package/es-custom/utilities/carousel/types.js +8 -0
- package/es-custom/utilities/carousel/types.js.map +1 -0
- package/es-custom/utilities/makeDraggable/makeDraggable.d.ts +38 -0
- package/es-custom/utilities/makeDraggable/makeDraggable.js +136 -0
- package/es-custom/utilities/makeDraggable/makeDraggable.js.map +1 -0
- package/es-custom/utilities/manageFocusTrap/manageFocusTrap.d.ts +13 -0
- package/es-custom/utilities/manageFocusTrap/manageFocusTrap.js +138 -0
- package/es-custom/utilities/manageFocusTrap/manageFocusTrap.js.map +1 -0
- package/lib/components/about-modal/about-modal.d.ts +458 -0
- package/lib/components/about-modal/about-modal.test.d.ts +7 -0
- package/lib/components/about-modal/index.d.ts +9 -0
- package/lib/components/checklist/checklist-chart.d.ts +25 -0
- package/lib/components/checklist/checklist-group.d.ts +25 -0
- package/lib/components/checklist/checklist-icon.d.ts +26 -0
- package/lib/components/checklist/checklist-item.d.ts +41 -0
- package/lib/components/checklist/checklist.d.ts +73 -0
- package/lib/components/checklist/checklist.test.d.ts +7 -0
- package/lib/components/checklist/checklist.types.d.ts +22 -0
- package/lib/components/checklist/index.d.ts +13 -0
- package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +418 -0
- package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.test.d.ts +9 -0
- package/lib/components/coachmark/coachmark-beacon/defs.d.ts +14 -0
- package/lib/components/coachmark/coachmark-beacon/defs.js +25 -0
- package/lib/components/coachmark/coachmark-beacon/defs.js.map +1 -0
- package/lib/components/coachmark/coachmark-beacon/index.d.ts +9 -0
- package/lib/components/coachmark/coachmark-body.d.ts +382 -0
- package/lib/components/coachmark/coachmark-context.d.ts +11 -0
- package/lib/components/coachmark/coachmark-header.d.ts +392 -0
- package/lib/components/coachmark/coachmark.d.ts +416 -0
- package/lib/components/coachmark/coachmark.test.d.ts +1 -0
- package/lib/components/coachmark/index.d.ts +11 -0
- package/lib/components/full-page-error/full-page-error.d.ts +43 -0
- package/lib/components/full-page-error/full-page-error.test.d.ts +7 -0
- package/lib/components/full-page-error/index.d.ts +9 -0
- package/lib/components/full-page-error/types.d.ts +13 -0
- package/lib/components/guide-banner/guide-banner-element.d.ts +378 -0
- package/lib/components/guide-banner/guide-banner.d.ts +398 -0
- package/lib/components/guide-banner/guide-banner.test.d.ts +1 -0
- package/lib/components/guide-banner/index.d.ts +10 -0
- package/lib/components/interstitial-screen/index.d.ts +13 -0
- package/lib/components/interstitial-screen/interstitial-screen-body-item.d.ts +388 -0
- package/lib/components/interstitial-screen/interstitial-screen-body.d.ts +402 -0
- package/lib/components/interstitial-screen/interstitial-screen-context.d.ts +18 -0
- package/lib/components/interstitial-screen/interstitial-screen-footer.d.ts +429 -0
- package/lib/components/interstitial-screen/interstitial-screen-header.d.ts +413 -0
- package/lib/components/interstitial-screen/interstitial-screen.d.ts +441 -0
- package/lib/components/interstitial-screen/interstitial-screen.test.d.ts +1 -0
- package/lib/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/lib/components/notification-panel/date-time-context.d.ts +9 -0
- package/lib/components/notification-panel/defs.d.ts +8 -0
- package/lib/components/notification-panel/defs.js +10 -0
- package/lib/components/notification-panel/defs.js.map +1 -0
- package/lib/components/notification-panel/index.d.ts +11 -0
- package/lib/components/notification-panel/notification-footer.d.ts +405 -0
- package/lib/components/notification-panel/notification-footer.test.d.ts +7 -0
- package/lib/components/notification-panel/notification-panel.d.ts +479 -0
- package/lib/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/lib/components/notification-panel/notification.d.ts +415 -0
- package/lib/components/notification-panel/notification.test.d.ts +7 -0
- package/lib/components/options-tile/index.d.ts +9 -0
- package/lib/components/options-tile/options-tile.d.ts +416 -0
- package/lib/components/options-tile/options-tile.test.d.ts +1 -0
- package/lib/components/page-header/_story-assets/overflowHandler.d.ts +98 -0
- package/lib/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +43 -0
- package/lib/components/page-header/_story-assets/set-of-tags/index.d.ts +9 -0
- package/lib/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +40 -0
- package/lib/components/page-header/_story-assets/set-of-tags/utils.d.ts +23 -0
- package/lib/components/page-header/context.d.ts +15 -0
- package/lib/components/page-header/index.d.ts +16 -0
- package/lib/components/page-header/page-header-breadcrumb.d.ts +36 -0
- package/lib/components/page-header/page-header-content-text.d.ts +22 -0
- package/lib/components/page-header/page-header-content.d.ts +42 -0
- package/lib/components/page-header/page-header-hero-image.d.ts +18 -0
- package/lib/components/page-header/page-header-scroller.d.ts +56 -0
- package/lib/components/page-header/page-header-tabs.d.ts +18 -0
- package/lib/components/page-header/page-header-title-breadcrumb.d.ts +20 -0
- package/lib/components/page-header/page-header.d.ts +31 -0
- package/lib/components/page-header/page-header.test.d.ts +1 -0
- package/lib/components/page-header/utils.d.ts +32 -0
- package/lib/components/side-panel/_story-assets/index.d.ts +8 -0
- package/lib/components/side-panel/defs.d.ts +39 -0
- package/lib/components/side-panel/defs.js +51 -0
- package/lib/components/side-panel/defs.js.map +1 -0
- package/lib/components/side-panel/index.d.ts +9 -0
- package/lib/components/side-panel/side-panel.d.ts +571 -0
- package/lib/components/side-panel/side-panel.test.d.ts +3 -0
- package/lib/components/tearsheet/defs.d.ts +26 -0
- package/lib/components/tearsheet/defs.js +39 -0
- package/lib/components/tearsheet/defs.js.map +1 -0
- package/lib/components/tearsheet/index.d.ts +9 -0
- package/lib/components/tearsheet/tearsheet.d.ts +535 -0
- package/lib/components/tearsheet/tearsheet.test.d.ts +14 -0
- package/lib/components/tearsheet/utils.d.ts +34 -0
- package/lib/components/truncated-text/index.d.ts +9 -0
- package/lib/components/truncated-text/truncated-text.d.ts +78 -0
- package/lib/components/truncated-text/truncated-text.test.d.ts +7 -0
- package/lib/components/user-avatar/index.d.ts +9 -0
- package/lib/components/user-avatar/user-avatar.d.ts +425 -0
- package/lib/components/user-avatar/user-avatar.test.d.ts +1 -0
- package/lib/globals/internal/handle.d.ts +18 -0
- package/lib/globals/internal/pconsole.d.ts +15 -0
- package/lib/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/lib/globals/js/utils/getSupportedLocale.js +37 -0
- package/lib/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/lib/globals/settings.d.ts +15 -0
- package/lib/globals/settings.js +32 -0
- package/lib/globals/settings.js.map +1 -0
- package/lib/index.d.ts +25 -0
- package/lib/patterns/step-flow/_story-assets/step-full-page.d.ts +41 -0
- package/lib/patterns/step-flow/_story-assets/step-tearsheet.d.ts +41 -0
- package/lib/patterns/step-flow/index.d.ts +10 -0
- package/lib/patterns/step-flow/step-flow-signal.d.ts +24 -0
- package/lib/patterns/step-flow/step-flow-signal.test.d.ts +7 -0
- package/lib/patterns/step-flow/step-group.d.ts +15 -0
- package/lib/utilities/carousel/carousel.d.ts +14 -0
- package/lib/utilities/carousel/index.d.ts +8 -0
- package/lib/utilities/carousel/swipeEvents.d.ts +7 -0
- package/lib/utilities/carousel/types.d.ts +37 -0
- package/lib/utilities/makeDraggable/makeDraggable.d.ts +38 -0
- package/lib/utilities/manageFocusTrap/manageFocusTrap.d.ts +13 -0
- package/package.json +3 -3
- package/scss/components/about-modal/about-modal.scss +117 -0
- package/scss/components/checklist/checklist.scss +70 -0
- package/scss/components/coachmark/coachmark-beacon/coachmark-beacon.scss +91 -0
- package/scss/components/coachmark/coachmark-body.scss +19 -0
- package/scss/components/coachmark/coachmark-header.scss +32 -0
- package/scss/components/coachmark/coachmark.scss +30 -0
- package/scss/components/full-page-error/full-page-error.scss +29 -0
- package/scss/components/guide-banner/guide-banner.scss +30 -0
- package/scss/components/interstitial-screen/interstitial-screen-body-item.scss +18 -0
- package/scss/components/interstitial-screen/interstitial-screen-body.scss +29 -0
- package/scss/components/interstitial-screen/interstitial-screen-footer.scss +39 -0
- package/scss/components/interstitial-screen/interstitial-screen-header.scss +13 -0
- package/scss/components/interstitial-screen/interstitial-screen.scss +28 -0
- package/scss/components/notification-panel/notification-footer.scss +65 -0
- package/scss/components/notification-panel/notification-panel.scss +58 -0
- package/scss/components/notification-panel/notification.scss +147 -0
- package/scss/components/options-tile/options-tile.scss +102 -0
- package/scss/components/page-header/_story-assets/_storybook-styles.scss +35 -0
- package/scss/components/page-header/_story-assets/set-of-breadcrumbs.scss +41 -0
- package/scss/components/page-header/_story-assets/set-of-tags/set-of-tags.scss +96 -0
- package/scss/components/page-header/page-header.scss +422 -0
- package/scss/components/side-panel/side-panel.scss +307 -0
- package/scss/components/tearsheet/tearsheet.scss +343 -0
- package/scss/components/truncated-text/truncated-text.scss +110 -0
- package/scss/components/user-avatar/user-avatar.scss +119 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { __decorate } from 'tslib';
|
|
9
|
+
import { LitElement, nothing, html } from 'lit';
|
|
10
|
+
import { property, state, customElement } from 'lit/decorators.js';
|
|
11
|
+
import { SignalWatcher } from '@lit-labs/signals';
|
|
12
|
+
import styles from '../story-styles.scss.js';
|
|
13
|
+
import { StepInstance } from '../step-flow-signal.js';
|
|
14
|
+
import '@carbon/web-components/es/components/progress-indicator/index.js';
|
|
15
|
+
import '@carbon/web-components/es/components/stack/index.js';
|
|
16
|
+
import '@carbon/web-components/es/components/code-snippet/index.js';
|
|
17
|
+
import '../step-group.js';
|
|
18
|
+
import '../../../components/tearsheet/tearsheet.js';
|
|
19
|
+
import { registerFocusableContainers, trapFocus } from '../../../utilities/manageFocusTrap/manageFocusTrap.js';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Copyright IBM Corp. 2025, 2025
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/
|
|
27
|
+
let StepTearsheet = class StepTearsheet extends SignalWatcher(LitElement) {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.narrow = false;
|
|
31
|
+
this._open = false;
|
|
32
|
+
this._email = '';
|
|
33
|
+
this._city = '';
|
|
34
|
+
this._state = '';
|
|
35
|
+
this._trapFocusAPI = null;
|
|
36
|
+
this._stepInfo = new StepInstance();
|
|
37
|
+
}
|
|
38
|
+
_onButtonClick() {
|
|
39
|
+
this._open = true;
|
|
40
|
+
}
|
|
41
|
+
_handleCancelButton() {
|
|
42
|
+
this._open = false;
|
|
43
|
+
this._stepInfo.reset();
|
|
44
|
+
}
|
|
45
|
+
_handleBackButton() {
|
|
46
|
+
const { currentStep } = this._stepInfo.data;
|
|
47
|
+
if (currentStep === 0) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
return this._stepInfo.handlePrevious();
|
|
51
|
+
}
|
|
52
|
+
_handleNextButton() {
|
|
53
|
+
const { currentStep, totalSteps } = this._stepInfo.data;
|
|
54
|
+
if (currentStep + 1 === totalSteps) {
|
|
55
|
+
this._open = false;
|
|
56
|
+
this._stepInfo.reset();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
return this._stepInfo.handleNext();
|
|
60
|
+
}
|
|
61
|
+
_handleEmailInput(e) {
|
|
62
|
+
const savedFormState = structuredClone(this._stepInfo.data.formState);
|
|
63
|
+
savedFormState.email = e.target.value;
|
|
64
|
+
this._stepInfo.updateFormState = savedFormState;
|
|
65
|
+
}
|
|
66
|
+
_handleCityInput(e) {
|
|
67
|
+
const savedFormState = structuredClone(this._stepInfo.data.formState);
|
|
68
|
+
savedFormState.city = e.target.value;
|
|
69
|
+
this._stepInfo.updateFormState = savedFormState;
|
|
70
|
+
}
|
|
71
|
+
_handleStateInput(e) {
|
|
72
|
+
const savedFormState = structuredClone(this._stepInfo.data.formState);
|
|
73
|
+
savedFormState.state = e.target.value;
|
|
74
|
+
this._stepInfo.updateFormState = savedFormState;
|
|
75
|
+
}
|
|
76
|
+
connectedCallback() {
|
|
77
|
+
super.connectedCallback();
|
|
78
|
+
this._stepInfo.updateTotalStepCount = 3;
|
|
79
|
+
}
|
|
80
|
+
disconnectedCallback() {
|
|
81
|
+
var _a;
|
|
82
|
+
(_a = this._trapFocusAPI) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
83
|
+
}
|
|
84
|
+
firstUpdated(_changedProperties) {
|
|
85
|
+
var _a;
|
|
86
|
+
registerFocusableContainers((_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`c4p-tearsheet`));
|
|
87
|
+
}
|
|
88
|
+
updated(changedProps) {
|
|
89
|
+
if (changedProps.has('_open')) {
|
|
90
|
+
const isOpen = this._open;
|
|
91
|
+
if (isOpen) {
|
|
92
|
+
// `focusableContainers` holds the containers where we can query DOM elements.
|
|
93
|
+
// Our strategy here is to let child/slotted components register their containers,
|
|
94
|
+
// which are then passed to `trapFocus`. This allows the utility to query elements
|
|
95
|
+
// directly without being blocked by shadow DOM boundaries.
|
|
96
|
+
this._trapFocusAPI = trapFocus();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
render() {
|
|
101
|
+
const { formState, totalSteps, currentStep } = this._stepInfo.data;
|
|
102
|
+
return html ` <cds-button
|
|
103
|
+
type="button"
|
|
104
|
+
size="md"
|
|
105
|
+
@click="${this._onButtonClick}"
|
|
106
|
+
>
|
|
107
|
+
Start create flow
|
|
108
|
+
</cds-button>
|
|
109
|
+
<c4p-tearsheet
|
|
110
|
+
class=${'step-tearsheet-with-util'}
|
|
111
|
+
selector-initial-focus=${'#tearsheet-story-text-input-a'}
|
|
112
|
+
?open=${this._open}
|
|
113
|
+
width=${this.narrow ? 'narrow' : 'wide'}
|
|
114
|
+
influencer-placement=${'left'}
|
|
115
|
+
prevent-close-on-click-outside
|
|
116
|
+
>
|
|
117
|
+
<!-- default slotted content -->
|
|
118
|
+
<step-group>
|
|
119
|
+
${currentStep + 1 === 1
|
|
120
|
+
? html `<div>
|
|
121
|
+
<cds-stack gap="6" orientation="horizontal">
|
|
122
|
+
<cds-text-input
|
|
123
|
+
label="Email"
|
|
124
|
+
id="tearsheet-story-text-input-a"
|
|
125
|
+
value=${this._email}
|
|
126
|
+
@input="${this._handleEmailInput}"
|
|
127
|
+
></cds-text-input>
|
|
128
|
+
</cds-stack>
|
|
129
|
+
</div>`
|
|
130
|
+
: nothing}
|
|
131
|
+
${currentStep + 1 === 2
|
|
132
|
+
? html `<div>
|
|
133
|
+
<cds-stack gap="6" orientation="horizontal">
|
|
134
|
+
<cds-text-input
|
|
135
|
+
label="City"
|
|
136
|
+
id="tearsheet-story-text-input-city"
|
|
137
|
+
value=${this._city}
|
|
138
|
+
@input="${this._handleCityInput}"
|
|
139
|
+
></cds-text-input>
|
|
140
|
+
<cds-text-input
|
|
141
|
+
label="State"
|
|
142
|
+
id="tearsheet-story-text-input-state"
|
|
143
|
+
value=${this._state}
|
|
144
|
+
@input="${this._handleStateInput}"
|
|
145
|
+
></cds-text-input>
|
|
146
|
+
</cds-stack>
|
|
147
|
+
</div>`
|
|
148
|
+
: nothing}
|
|
149
|
+
${currentStep + 1 === 3
|
|
150
|
+
? html `<div>
|
|
151
|
+
<!-- //cspell: disable -->
|
|
152
|
+
<cds-code-snippet
|
|
153
|
+
type="multi"
|
|
154
|
+
copy-text=""
|
|
155
|
+
maxcollapsednumberofrows="15"
|
|
156
|
+
maxexpandednumberofrows=""
|
|
157
|
+
mincollapsednumberofrows="3"
|
|
158
|
+
minexpandednumberofrows=""
|
|
159
|
+
show-less-text="Show less"
|
|
160
|
+
show-more-text="Show more"
|
|
161
|
+
feedback=""
|
|
162
|
+
feedback-timeout="0"
|
|
163
|
+
tooltip-content="Copy to clipboard"
|
|
164
|
+
>
|
|
165
|
+
${JSON.stringify(formState, null, 2)}
|
|
166
|
+
</cds-code-snippet>
|
|
167
|
+
<!-- //cspell: enable -->
|
|
168
|
+
</div>`
|
|
169
|
+
: nothing}
|
|
170
|
+
</step-group>
|
|
171
|
+
|
|
172
|
+
<!-- slotted header label -->
|
|
173
|
+
<span slot="label">Optional label for context</span>
|
|
174
|
+
|
|
175
|
+
<!-- slotted header title -->
|
|
176
|
+
<span slot="title">Create tearsheet title</span>
|
|
177
|
+
|
|
178
|
+
<!-- slotted header description -->
|
|
179
|
+
<span slot="description">
|
|
180
|
+
This is a description for the tearsheet, providing an opportunity to
|
|
181
|
+
describe the flow over a couple of lines in the header of the
|
|
182
|
+
tearsheet.
|
|
183
|
+
</span>
|
|
184
|
+
|
|
185
|
+
<!-- slotted action items cds-buttons -->
|
|
186
|
+
<cds-button
|
|
187
|
+
slot="actions"
|
|
188
|
+
kind=${'ghost'}
|
|
189
|
+
@click=${this._handleCancelButton}
|
|
190
|
+
>
|
|
191
|
+
Cancel
|
|
192
|
+
</cds-button>
|
|
193
|
+
<cds-button
|
|
194
|
+
slot="actions"
|
|
195
|
+
kind=${'secondary'}
|
|
196
|
+
@click=${this._handleBackButton}
|
|
197
|
+
>
|
|
198
|
+
Back
|
|
199
|
+
</cds-button>
|
|
200
|
+
<cds-button slot="actions" @click=${this._handleNextButton}>
|
|
201
|
+
${currentStep + 1 < totalSteps ? 'Next' : 'Submit'}
|
|
202
|
+
</cds-button>
|
|
203
|
+
<!-- slotted influencer -->
|
|
204
|
+
<div slot="influencer">
|
|
205
|
+
<cds-progress-indicator
|
|
206
|
+
vertical
|
|
207
|
+
class=${`custom-step-util__dummy-content-block`}
|
|
208
|
+
>
|
|
209
|
+
<cds-progress-step
|
|
210
|
+
label="First step"
|
|
211
|
+
state=${currentStep + 1 === 1 ? 'current' : 'complete'}
|
|
212
|
+
></cds-progress-step>
|
|
213
|
+
<cds-progress-step
|
|
214
|
+
label="Second step"
|
|
215
|
+
state=${currentStep + 1 === 2
|
|
216
|
+
? 'current'
|
|
217
|
+
: currentStep + 1 < 2
|
|
218
|
+
? 'incomplete'
|
|
219
|
+
: 'complete'}
|
|
220
|
+
></cds-progress-step>
|
|
221
|
+
<cds-progress-step
|
|
222
|
+
label="Third step"
|
|
223
|
+
state=${currentStep + 1 === 3
|
|
224
|
+
? 'current'
|
|
225
|
+
: currentStep + 1 < 3
|
|
226
|
+
? 'incomplete'
|
|
227
|
+
: 'complete'}
|
|
228
|
+
></cds-progress-step>
|
|
229
|
+
</cds-progress-indicator>
|
|
230
|
+
</div>
|
|
231
|
+
</c4p-tearsheet>`;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
StepTearsheet.styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader
|
|
235
|
+
__decorate([
|
|
236
|
+
property({ type: Boolean })
|
|
237
|
+
], StepTearsheet.prototype, "narrow", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
state()
|
|
240
|
+
], StepTearsheet.prototype, "_open", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
state()
|
|
243
|
+
], StepTearsheet.prototype, "_email", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
state()
|
|
246
|
+
], StepTearsheet.prototype, "_city", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
state()
|
|
249
|
+
], StepTearsheet.prototype, "_state", void 0);
|
|
250
|
+
StepTearsheet = __decorate([
|
|
251
|
+
customElement('step-tearsheet')
|
|
252
|
+
], StepTearsheet);
|
|
253
|
+
|
|
254
|
+
export { StepTearsheet };
|
|
255
|
+
//# sourceMappingURL=step-tearsheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-tearsheet.js","sources":["../../../../src/patterns/step-flow/_story-assets/step-tearsheet.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;AAKG;AAwBU,IAAA,aAAa,GAAnB,MAAM,aAAc,SAAQ,aAAa,CAA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AC,GAAG,SAAS,GAAG,UAAU;;;;sBAI9C,WAAW,GAAG,CAAC,KAAK;AAC1B,cAAE;AACF,cAAE,WAAW,GAAG,CAAC,GAAG;AAClB,kBAAE;AACF,kBAAE,UAAU;;;;sBAIR,WAAW,GAAG,CAAC,KAAK;AAC1B,cAAE;AACF,cAAE,WAAW,GAAG,CAAC,GAAG;AAClB,kBAAE;AACF,kBAAE,UAAU;;;;uBAIP;;;AAEd,aAAA,CAAA,MAAM,GAAG,MAAM,CAAC;AAvOvB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AACH,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAEhB,UAAA,CAAA;AADP,IAAA,KAAK;AACyB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAGvB,UAAA,CAAA;AADP,IAAA,KAAK;AACsB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAGpB,UAAA,CAAA;AADP,IAAA,KAAK;AACqB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAGnB,UAAA,CAAA;AADP,IAAA,KAAK;AACsB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAbjB,aAAa,GAAA,UAAA,CAAA;IADzB,aAAa,CAAC,gBAAgB;AAClB,CAAA,EAAA,aAAa,CA0OzB;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import './step-flow-signal.js';
|
|
9
|
+
import './step-group.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025, 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
interface formStateType {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export declare class StepInstance {
|
|
11
|
+
#private;
|
|
12
|
+
get data(): {
|
|
13
|
+
totalSteps: number;
|
|
14
|
+
formState: {};
|
|
15
|
+
currentStep: number;
|
|
16
|
+
};
|
|
17
|
+
set handleGoToStep(value: number);
|
|
18
|
+
set updateTotalStepCount(value: number);
|
|
19
|
+
set updateFormState(newFormValue: formStateType);
|
|
20
|
+
handleNext(): void;
|
|
21
|
+
handlePrevious(): void;
|
|
22
|
+
reset(): void;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { __classPrivateFieldGet } from 'tslib';
|
|
9
|
+
import { signal } from '@lit-labs/signals';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Copyright IBM Corp. 2025, 2025
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
var _StepInstance_data;
|
|
18
|
+
class StepInstance {
|
|
19
|
+
constructor() {
|
|
20
|
+
_StepInstance_data.set(this, signal({
|
|
21
|
+
totalSteps: 0,
|
|
22
|
+
formState: {},
|
|
23
|
+
currentStep: 0,
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
get data() {
|
|
27
|
+
return __classPrivateFieldGet(this, _StepInstance_data, "f").get();
|
|
28
|
+
}
|
|
29
|
+
set handleGoToStep(value) {
|
|
30
|
+
__classPrivateFieldGet(this, _StepInstance_data, "f").set(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _StepInstance_data, "f").get()), { currentStep: value }));
|
|
31
|
+
}
|
|
32
|
+
set updateTotalStepCount(value) {
|
|
33
|
+
__classPrivateFieldGet(this, _StepInstance_data, "f").set(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _StepInstance_data, "f").get()), { totalSteps: value }));
|
|
34
|
+
}
|
|
35
|
+
set updateFormState(newFormValue) {
|
|
36
|
+
__classPrivateFieldGet(this, _StepInstance_data, "f").set(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _StepInstance_data, "f").get()), { formState: newFormValue }));
|
|
37
|
+
}
|
|
38
|
+
handleNext() {
|
|
39
|
+
const currentStep = __classPrivateFieldGet(this, _StepInstance_data, "f").get().currentStep + 1;
|
|
40
|
+
const totalSteps = __classPrivateFieldGet(this, _StepInstance_data, "f").get().totalSteps;
|
|
41
|
+
__classPrivateFieldGet(this, _StepInstance_data, "f").set(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _StepInstance_data, "f").get()), { currentStep: currentStep < totalSteps ? currentStep : totalSteps }));
|
|
42
|
+
}
|
|
43
|
+
handlePrevious() {
|
|
44
|
+
const currentStep = __classPrivateFieldGet(this, _StepInstance_data, "f").get().currentStep;
|
|
45
|
+
__classPrivateFieldGet(this, _StepInstance_data, "f").set(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _StepInstance_data, "f").get()), { currentStep: currentStep > 0 ? currentStep - 1 : 0 }));
|
|
46
|
+
}
|
|
47
|
+
reset() {
|
|
48
|
+
__classPrivateFieldGet(this, _StepInstance_data, "f").set(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _StepInstance_data, "f").get()), { formState: {}, currentStep: 0 }));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
_StepInstance_data = new WeakMap();
|
|
52
|
+
|
|
53
|
+
export { StepInstance };
|
|
54
|
+
//# sourceMappingURL=step-flow-signal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-flow-signal.js","sources":["../../../src/patterns/step-flow/step-flow-signal.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;AAKG;;MAWU,YAAY,CAAA;AAAzB,IAAA,WAAA,GAAA;AACE,QAAA,kBAAA,CAAA,GAAA,CAAA,IAAA,EAAQ,MAAM,CAAC;AACb,YAAA,UAAU,EAAE,CAAC;AACb,YAAA,SAAS,EAAE,EAAE;AACb,YAAA,WAAW,EAAE,CAAC;AACf,SAAA,CAAC,CAAC;;AAEH,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,uBAAA,IAAI,EAAA,kBAAA,EAAA,GAAA,CAAM,CAAC,GAAG,EAAE;;IAGzB,IAAI,cAAc,CAAC,KAAa,EAAA;AAC9B,QAAA,sBAAA,CAAA,IAAI,EAAM,kBAAA,EAAA,GAAA,CAAA,CAAC,GAAG,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACT,uBAAA,IAAI,EAAA,kBAAA,EAAA,GAAA,CAAM,CAAC,GAAG,EAAE,CACnB,EAAA,EAAA,WAAW,EAAE,KAAK,IAClB;;IAGJ,IAAI,oBAAoB,CAAC,KAAa,EAAA;AACpC,QAAA,sBAAA,CAAA,IAAI,EAAM,kBAAA,EAAA,GAAA,CAAA,CAAC,GAAG,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACT,uBAAA,IAAI,EAAA,kBAAA,EAAA,GAAA,CAAM,CAAC,GAAG,EAAE,CACnB,EAAA,EAAA,UAAU,EAAE,KAAK,IACjB;;IAGJ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AC,EAAA,CAAA,CAClD;;IAGJ,KAAK,GAAA;QACH,sBAAA,CAAA,IAAI,0BAAM,CAAC,GAAG,iCACT,sBAAA,CAAA,IAAI,0BAAM,CAAC,GAAG,EAAE,CACnB,EAAA,EAAA,SAAS,EAAE,EAAE,EACb,WAAW,EAAE,CAAC,IACd;;AAEL;;;;;"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { describe, it, expect } from 'vitest';
|
|
9
|
+
import { StepInstance } from './step-flow-signal.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Copyright IBM Corp. 2025, 2025
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
describe('step flow', () => {
|
|
18
|
+
it('should initial and return default signal state', () => {
|
|
19
|
+
const { totalSteps, formState, currentStep } = new StepInstance().data;
|
|
20
|
+
expect(totalSteps).toEqual(0);
|
|
21
|
+
expect(currentStep).toEqual(0);
|
|
22
|
+
expect(formState).toEqual({});
|
|
23
|
+
});
|
|
24
|
+
it('should update total steps', () => {
|
|
25
|
+
const myStepInstance = new StepInstance();
|
|
26
|
+
myStepInstance.updateTotalStepCount = 100;
|
|
27
|
+
expect(myStepInstance.data.totalSteps).toEqual(100);
|
|
28
|
+
});
|
|
29
|
+
it('should increment the current step', async () => {
|
|
30
|
+
const myStepInstance = new StepInstance();
|
|
31
|
+
myStepInstance.updateTotalStepCount = 100;
|
|
32
|
+
myStepInstance.handleNext();
|
|
33
|
+
expect(myStepInstance.data.currentStep).toEqual(1);
|
|
34
|
+
myStepInstance.handleNext();
|
|
35
|
+
expect(myStepInstance.data.currentStep).toEqual(2);
|
|
36
|
+
});
|
|
37
|
+
it('should decrement the current step', () => {
|
|
38
|
+
const myStepInstance = new StepInstance();
|
|
39
|
+
myStepInstance.updateTotalStepCount = 100;
|
|
40
|
+
myStepInstance.handleNext();
|
|
41
|
+
myStepInstance.handleNext();
|
|
42
|
+
myStepInstance.handlePrevious();
|
|
43
|
+
expect(myStepInstance.data.currentStep).toEqual(1);
|
|
44
|
+
});
|
|
45
|
+
it('should update form state', () => {
|
|
46
|
+
const exampleEmail = 'example@example.com';
|
|
47
|
+
const myStepInstance = new StepInstance();
|
|
48
|
+
const savedFormState = structuredClone(myStepInstance.data.formState);
|
|
49
|
+
savedFormState.email = exampleEmail;
|
|
50
|
+
myStepInstance.updateFormState = savedFormState;
|
|
51
|
+
expect(myStepInstance.data.formState.email).toEqual(exampleEmail);
|
|
52
|
+
});
|
|
53
|
+
it('should jump to a step', () => {
|
|
54
|
+
const myStepInstance = new StepInstance();
|
|
55
|
+
myStepInstance.updateTotalStepCount = 100;
|
|
56
|
+
myStepInstance.handleGoToStep = 25;
|
|
57
|
+
expect(myStepInstance.data.currentStep).toEqual(25);
|
|
58
|
+
});
|
|
59
|
+
it('should reset to default state', () => {
|
|
60
|
+
const myStepInstance = new StepInstance();
|
|
61
|
+
myStepInstance.updateTotalStepCount = 100;
|
|
62
|
+
myStepInstance.handleGoToStep = 25;
|
|
63
|
+
myStepInstance.reset();
|
|
64
|
+
expect(myStepInstance.data.currentStep).toEqual(0);
|
|
65
|
+
expect(myStepInstance.data.formState).toEqual({});
|
|
66
|
+
});
|
|
67
|
+
it('should remain on last step when handleNext is called from the last step', () => {
|
|
68
|
+
const myStepInstance = new StepInstance();
|
|
69
|
+
myStepInstance.updateTotalStepCount = 2;
|
|
70
|
+
myStepInstance.handleNext();
|
|
71
|
+
myStepInstance.handleNext();
|
|
72
|
+
myStepInstance.handleNext();
|
|
73
|
+
expect(myStepInstance.data.currentStep).toEqual(2);
|
|
74
|
+
});
|
|
75
|
+
it('should remain on first step when handlePrevious is called from the first step', () => {
|
|
76
|
+
const myStepInstance = new StepInstance();
|
|
77
|
+
myStepInstance.updateTotalStepCount = 10;
|
|
78
|
+
myStepInstance.handleNext();
|
|
79
|
+
myStepInstance.handleNext();
|
|
80
|
+
myStepInstance.handleNext();
|
|
81
|
+
myStepInstance.handlePrevious();
|
|
82
|
+
myStepInstance.handlePrevious();
|
|
83
|
+
myStepInstance.handlePrevious();
|
|
84
|
+
myStepInstance.handlePrevious();
|
|
85
|
+
expect(myStepInstance.data.currentStep).toEqual(0);
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
//# sourceMappingURL=step-flow-signal.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-flow-signal.test.js","sources":["../../../src/patterns/step-flow/step-flow-signal.test.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;AAKG;AAKH,QAAQ,CAAC,WAAW,EAAE,MAAK;AACzB,IAAA,EAAE,CAAC,gDAAgD,EAAE,MAAK;AACxD,QAAA,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI,YAAY,EAAE,CAAC,IAAI;QACtE,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7B,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;AAC/B,KAAC,CAAC;AACF,IAAA,EAAE,CAAC,2BAA2B,EAAE,MAAK;AACnC,QAAA,MAAM,cAAc,GAAG,IAAI,YAAY,EAAE;AACzC,QAAA,cAAc,CAAC,oBAAoB,GAAG,GAAG;AACzC,QAAA,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;AACrD,KAAC,CAAC;AACF,IAAA,EAAE,CAAC,mCAAmC,EAAE,YAAW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CAAC,cAAc,EAAE;AAC/B,QAAA,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AACpD,KAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025, 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { LitElement } from 'lit';
|
|
8
|
+
export declare class StepGroup extends LitElement {
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'step-group': StepGroup;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { __decorate } from 'tslib';
|
|
9
|
+
import { LitElement, html } from 'lit';
|
|
10
|
+
import { customElement } from 'lit/decorators.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Copyright IBM Corp. 2025, 2025
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
let StepGroup = class StepGroup extends LitElement {
|
|
19
|
+
render() {
|
|
20
|
+
return html `<slot></slot>`;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
StepGroup = __decorate([
|
|
24
|
+
customElement('step-group')
|
|
25
|
+
], StepGroup);
|
|
26
|
+
|
|
27
|
+
export { StepGroup };
|
|
28
|
+
//# sourceMappingURL=step-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-group.js","sources":["../../../src/patterns/step-flow/step-group.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;AAKG;AAMI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU,CAAA;IACvC,MAAM,GAAA;QACJ,OAAO,IAAI,CAAA,CAAA,aAAA,CAAe;;;AAFjB,SAAS,GAAA,UAAA,CAAA;IADrB,aAAa,CAAC,YAAY;AACd,CAAA,EAAA,SAAS,CAIrB;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { css } from 'lit';
|
|
9
|
+
|
|
10
|
+
var styles = css(["#storybook-root #main-content{padding:0}"]);
|
|
11
|
+
|
|
12
|
+
export { styles as default };
|
|
13
|
+
//# sourceMappingURL=story-styles.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"story-styles.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { InitCarousel, Config } from './types';
|
|
8
|
+
/**
|
|
9
|
+
* Initializes a carousel with the given configuration.
|
|
10
|
+
* @param carouselContainer - The HTMLElement representing the carousel container.
|
|
11
|
+
* @param config - Optional configuration object.
|
|
12
|
+
* @returns An object containing methods to control the carousel.
|
|
13
|
+
*/
|
|
14
|
+
export declare const initCarousel: (carouselContainer: HTMLElement, config?: Config) => InitCarousel;
|