@carbon/ibm-products-web-components 0.29.0 → 0.30.0-rc.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/package.json +8 -8
- package/telemetry.yml +14 -3
- package/custom-elements.json +0 -4446
- package/es/components/about-modal/about-modal.d.ts +0 -458
- package/es/components/about-modal/about-modal.figma.js +0 -59
- package/es/components/about-modal/about-modal.figma.js.map +0 -1
- package/es/components/about-modal/about-modal.js +0 -203
- package/es/components/about-modal/about-modal.js.map +0 -1
- package/es/components/about-modal/about-modal.scss.js +0 -13
- package/es/components/about-modal/about-modal.scss.js.map +0 -1
- package/es/components/about-modal/about-modal.test.d.ts +0 -7
- package/es/components/about-modal/about-modal.test.js +0 -208
- package/es/components/about-modal/about-modal.test.js.map +0 -1
- package/es/components/about-modal/index.d.ts +0 -9
- package/es/components/about-modal/index.js +0 -9
- package/es/components/about-modal/index.js.map +0 -1
- package/es/components/checklist/checklist-chart.d.ts +0 -25
- package/es/components/checklist/checklist-chart.js +0 -81
- package/es/components/checklist/checklist-chart.js.map +0 -1
- package/es/components/checklist/checklist-group.d.ts +0 -25
- package/es/components/checklist/checklist-group.js +0 -58
- package/es/components/checklist/checklist-group.js.map +0 -1
- package/es/components/checklist/checklist-icon.d.ts +0 -26
- package/es/components/checklist/checklist-icon.js +0 -72
- package/es/components/checklist/checklist-icon.js.map +0 -1
- package/es/components/checklist/checklist-item.d.ts +0 -41
- package/es/components/checklist/checklist-item.figma.js +0 -49
- package/es/components/checklist/checklist-item.figma.js.map +0 -1
- package/es/components/checklist/checklist-item.js +0 -128
- package/es/components/checklist/checklist-item.js.map +0 -1
- package/es/components/checklist/checklist.d.ts +0 -73
- package/es/components/checklist/checklist.figma.js +0 -87
- package/es/components/checklist/checklist.figma.js.map +0 -1
- package/es/components/checklist/checklist.js +0 -198
- package/es/components/checklist/checklist.js.map +0 -1
- package/es/components/checklist/checklist.scss.js +0 -13
- package/es/components/checklist/checklist.scss.js.map +0 -1
- package/es/components/checklist/checklist.test.d.ts +0 -7
- package/es/components/checklist/checklist.test.js +0 -172
- package/es/components/checklist/checklist.test.js.map +0 -1
- package/es/components/checklist/checklist.types.d.ts +0 -22
- package/es/components/checklist/checklist.types.js +0 -32
- package/es/components/checklist/checklist.types.js.map +0 -1
- package/es/components/checklist/index.d.ts +0 -13
- package/es/components/checklist/index.js +0 -13
- package/es/components/checklist/index.js.map +0 -1
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +0 -413
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js +0 -126
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +0 -1
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +0 -13
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js.map +0 -1
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.d.ts +0 -9
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +0 -70
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +0 -1
- package/es/components/coachmark/coachmark-beacon/defs.d.ts +0 -14
- package/es/components/coachmark/coachmark-beacon/defs.js +0 -25
- package/es/components/coachmark/coachmark-beacon/defs.js.map +0 -1
- package/es/components/coachmark/coachmark-beacon/index.d.ts +0 -9
- package/es/components/coachmark/coachmark-beacon/index.js +0 -9
- package/es/components/coachmark/coachmark-beacon/index.js.map +0 -1
- package/es/components/full-page-error/assets/error403SVG.js +0 -831
- package/es/components/full-page-error/assets/error403SVG.js.map +0 -1
- package/es/components/full-page-error/assets/error404SVG.js +0 -735
- package/es/components/full-page-error/assets/error404SVG.js.map +0 -1
- package/es/components/full-page-error/assets/errorGenericSVG.js +0 -830
- package/es/components/full-page-error/assets/errorGenericSVG.js.map +0 -1
- package/es/components/full-page-error/full-page-error.d.ts +0 -43
- package/es/components/full-page-error/full-page-error.figma.js +0 -81
- package/es/components/full-page-error/full-page-error.figma.js.map +0 -1
- package/es/components/full-page-error/full-page-error.js +0 -102
- package/es/components/full-page-error/full-page-error.js.map +0 -1
- package/es/components/full-page-error/full-page-error.scss.js +0 -13
- package/es/components/full-page-error/full-page-error.scss.js.map +0 -1
- package/es/components/full-page-error/full-page-error.test.d.ts +0 -7
- package/es/components/full-page-error/full-page-error.test.js +0 -102
- package/es/components/full-page-error/full-page-error.test.js.map +0 -1
- package/es/components/full-page-error/index.d.ts +0 -9
- package/es/components/full-page-error/index.js +0 -9
- package/es/components/full-page-error/index.js.map +0 -1
- package/es/components/full-page-error/types.d.ts +0 -13
- package/es/components/full-page-error/types.js +0 -24
- package/es/components/full-page-error/types.js.map +0 -1
- package/es/components/interstitial-screen/index.d.ts +0 -13
- package/es/components/interstitial-screen/index.js +0 -13
- package/es/components/interstitial-screen/index.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen-body-item.d.ts +0 -388
- package/es/components/interstitial-screen/interstitial-screen-body-item.js +0 -71
- package/es/components/interstitial-screen/interstitial-screen-body-item.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen-body-item.scss.js +0 -13
- package/es/components/interstitial-screen/interstitial-screen-body-item.scss.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen-body.d.ts +0 -402
- package/es/components/interstitial-screen/interstitial-screen-body.js +0 -152
- package/es/components/interstitial-screen/interstitial-screen-body.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen-body.scss.js +0 -13
- package/es/components/interstitial-screen/interstitial-screen-body.scss.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen-context.d.ts +0 -18
- package/es/components/interstitial-screen/interstitial-screen-context.js +0 -48
- package/es/components/interstitial-screen/interstitial-screen-context.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen-footer.d.ts +0 -429
- package/es/components/interstitial-screen/interstitial-screen-footer.js +0 -263
- package/es/components/interstitial-screen/interstitial-screen-footer.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen-footer.scss.js +0 -13
- package/es/components/interstitial-screen/interstitial-screen-footer.scss.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen-header.d.ts +0 -413
- package/es/components/interstitial-screen/interstitial-screen-header.js +0 -177
- package/es/components/interstitial-screen/interstitial-screen-header.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen-header.scss.js +0 -13
- package/es/components/interstitial-screen/interstitial-screen-header.scss.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen.d.ts +0 -441
- package/es/components/interstitial-screen/interstitial-screen.js +0 -217
- package/es/components/interstitial-screen/interstitial-screen.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen.scss.js +0 -13
- package/es/components/interstitial-screen/interstitial-screen.scss.js.map +0 -1
- package/es/components/interstitial-screen/interstitial-screen.test.d.ts +0 -1
- package/es/components/interstitial-screen/interstitial-screen.test.js +0 -329
- package/es/components/interstitial-screen/interstitial-screen.test.js.map +0 -1
- package/es/components/notification-panel/_story-assets/unread-notification-bell.d.ts +0 -3
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js +0 -45
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js.map +0 -1
- package/es/components/notification-panel/date-time-context.d.ts +0 -9
- package/es/components/notification-panel/date-time-context.js +0 -19
- package/es/components/notification-panel/date-time-context.js.map +0 -1
- package/es/components/notification-panel/defs.d.ts +0 -8
- package/es/components/notification-panel/defs.js +0 -8
- package/es/components/notification-panel/defs.js.map +0 -1
- package/es/components/notification-panel/index.d.ts +0 -11
- package/es/components/notification-panel/index.js +0 -11
- package/es/components/notification-panel/index.js.map +0 -1
- package/es/components/notification-panel/notification-footer.d.ts +0 -405
- package/es/components/notification-panel/notification-footer.js +0 -120
- package/es/components/notification-panel/notification-footer.js.map +0 -1
- package/es/components/notification-panel/notification-footer.scss.js +0 -13
- package/es/components/notification-panel/notification-footer.scss.js.map +0 -1
- package/es/components/notification-panel/notification-footer.test.d.ts +0 -7
- package/es/components/notification-panel/notification-footer.test.js +0 -65
- package/es/components/notification-panel/notification-footer.test.js.map +0 -1
- package/es/components/notification-panel/notification-panel.d.ts +0 -479
- package/es/components/notification-panel/notification-panel.js +0 -439
- package/es/components/notification-panel/notification-panel.js.map +0 -1
- package/es/components/notification-panel/notification-panel.scss.js +0 -13
- package/es/components/notification-panel/notification-panel.scss.js.map +0 -1
- package/es/components/notification-panel/notification-panel.test.d.ts +0 -7
- package/es/components/notification-panel/notification-panel.test.js +0 -340
- package/es/components/notification-panel/notification-panel.test.js.map +0 -1
- package/es/components/notification-panel/notification.d.ts +0 -415
- package/es/components/notification-panel/notification.js +0 -179
- package/es/components/notification-panel/notification.js.map +0 -1
- package/es/components/notification-panel/notification.scss.js +0 -13
- package/es/components/notification-panel/notification.scss.js.map +0 -1
- package/es/components/notification-panel/notification.test.d.ts +0 -7
- package/es/components/notification-panel/notification.test.js +0 -152
- package/es/components/notification-panel/notification.test.js.map +0 -1
- package/es/components/options-tile/index.d.ts +0 -9
- package/es/components/options-tile/index.js +0 -9
- package/es/components/options-tile/index.js.map +0 -1
- package/es/components/options-tile/options-file.figma.js +0 -96
- package/es/components/options-tile/options-file.figma.js.map +0 -1
- package/es/components/options-tile/options-tile.d.ts +0 -416
- package/es/components/options-tile/options-tile.js +0 -158
- package/es/components/options-tile/options-tile.js.map +0 -1
- package/es/components/options-tile/options-tile.scss.js +0 -13
- package/es/components/options-tile/options-tile.scss.js.map +0 -1
- package/es/components/options-tile/options-tile.test.d.ts +0 -1
- package/es/components/options-tile/options-tile.test.js +0 -129
- package/es/components/options-tile/options-tile.test.js.map +0 -1
- package/es/components/page-header/_story-assets/2x1.jpg.js +0 -11
- package/es/components/page-header/_story-assets/2x1.jpg.js.map +0 -1
- package/es/components/page-header/_story-assets/3x2.jpg.js +0 -11
- package/es/components/page-header/_story-assets/3x2.jpg.js.map +0 -1
- package/es/components/page-header/_story-assets/overflowHandler.d.ts +0 -98
- package/es/components/page-header/_story-assets/overflowHandler.js +0 -156
- package/es/components/page-header/_story-assets/overflowHandler.js.map +0 -1
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +0 -43
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.js +0 -154
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.js.map +0 -1
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +0 -13
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js.map +0 -1
- package/es/components/page-header/_story-assets/set-of-tags/index.d.ts +0 -9
- package/es/components/page-header/_story-assets/set-of-tags/index.js +0 -9
- package/es/components/page-header/_story-assets/set-of-tags/index.js.map +0 -1
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +0 -40
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.js +0 -260
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.js.map +0 -1
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +0 -13
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js.map +0 -1
- package/es/components/page-header/_story-assets/set-of-tags/utils.d.ts +0 -23
- package/es/components/page-header/_story-assets/set-of-tags/utils.js +0 -44
- package/es/components/page-header/_story-assets/set-of-tags/utils.js.map +0 -1
- package/es/components/page-header/context.d.ts +0 -15
- package/es/components/page-header/context.js +0 -27
- package/es/components/page-header/context.js.map +0 -1
- package/es/components/page-header/index.d.ts +0 -16
- package/es/components/page-header/index.js +0 -16
- package/es/components/page-header/index.js.map +0 -1
- package/es/components/page-header/page-header-breadcrumb.d.ts +0 -36
- package/es/components/page-header/page-header-breadcrumb.js +0 -106
- package/es/components/page-header/page-header-breadcrumb.js.map +0 -1
- package/es/components/page-header/page-header-content-text.d.ts +0 -22
- package/es/components/page-header/page-header-content-text.js +0 -56
- package/es/components/page-header/page-header-content-text.js.map +0 -1
- package/es/components/page-header/page-header-content.d.ts +0 -42
- package/es/components/page-header/page-header-content.js +0 -141
- package/es/components/page-header/page-header-content.js.map +0 -1
- package/es/components/page-header/page-header-hero-image.d.ts +0 -18
- package/es/components/page-header/page-header-hero-image.js +0 -38
- package/es/components/page-header/page-header-hero-image.js.map +0 -1
- package/es/components/page-header/page-header-scroller.d.ts +0 -56
- package/es/components/page-header/page-header-scroller.js +0 -166
- package/es/components/page-header/page-header-scroller.js.map +0 -1
- package/es/components/page-header/page-header-tabs.d.ts +0 -18
- package/es/components/page-header/page-header-tabs.js +0 -48
- package/es/components/page-header/page-header-tabs.js.map +0 -1
- package/es/components/page-header/page-header-title-breadcrumb.d.ts +0 -20
- package/es/components/page-header/page-header-title-breadcrumb.js +0 -71
- package/es/components/page-header/page-header-title-breadcrumb.js.map +0 -1
- package/es/components/page-header/page-header.d.ts +0 -31
- package/es/components/page-header/page-header.js +0 -128
- package/es/components/page-header/page-header.js.map +0 -1
- package/es/components/page-header/page-header.scss.js +0 -13
- package/es/components/page-header/page-header.scss.js.map +0 -1
- package/es/components/page-header/page-header.test.d.ts +0 -1
- package/es/components/page-header/page-header.test.js +0 -349
- package/es/components/page-header/page-header.test.js.map +0 -1
- package/es/components/page-header/utils.d.ts +0 -32
- package/es/components/page-header/utils.js +0 -76
- package/es/components/page-header/utils.js.map +0 -1
- package/es/components/side-panel/_story-assets/index.d.ts +0 -8
- package/es/components/side-panel/_story-assets/index.js +0 -275
- package/es/components/side-panel/_story-assets/index.js.map +0 -1
- package/es/components/side-panel/defs.d.ts +0 -39
- package/es/components/side-panel/defs.js +0 -51
- package/es/components/side-panel/defs.js.map +0 -1
- package/es/components/side-panel/index.d.ts +0 -9
- package/es/components/side-panel/index.js +0 -9
- package/es/components/side-panel/index.js.map +0 -1
- package/es/components/side-panel/side-panel.d.ts +0 -571
- package/es/components/side-panel/side-panel.js +0 -859
- package/es/components/side-panel/side-panel.js.map +0 -1
- package/es/components/side-panel/side-panel.scss.js +0 -13
- package/es/components/side-panel/side-panel.scss.js.map +0 -1
- package/es/components/side-panel/side-panel.test.d.ts +0 -3
- package/es/components/side-panel/side-panel.test.js +0 -273
- package/es/components/side-panel/side-panel.test.js.map +0 -1
- package/es/components/side-panel/story-styles.scss.js +0 -13
- package/es/components/side-panel/story-styles.scss.js.map +0 -1
- package/es/components/tearsheet/defs.d.ts +0 -26
- package/es/components/tearsheet/defs.js +0 -39
- package/es/components/tearsheet/defs.js.map +0 -1
- package/es/components/tearsheet/index.d.ts +0 -9
- package/es/components/tearsheet/index.js +0 -9
- package/es/components/tearsheet/index.js.map +0 -1
- package/es/components/tearsheet/story-styles.scss.js +0 -13
- package/es/components/tearsheet/story-styles.scss.js.map +0 -1
- package/es/components/tearsheet/tearsheet.d.ts +0 -535
- package/es/components/tearsheet/tearsheet.js +0 -721
- package/es/components/tearsheet/tearsheet.js.map +0 -1
- package/es/components/tearsheet/tearsheet.scss.js +0 -13
- package/es/components/tearsheet/tearsheet.scss.js.map +0 -1
- package/es/components/tearsheet/tearsheet.test.d.ts +0 -14
- package/es/components/tearsheet/tearsheet.test.js +0 -305
- package/es/components/tearsheet/tearsheet.test.js.map +0 -1
- package/es/components/tearsheet/utils.d.ts +0 -34
- package/es/components/tearsheet/utils.js +0 -370
- package/es/components/tearsheet/utils.js.map +0 -1
- package/es/components/truncated-text/index.d.ts +0 -9
- package/es/components/truncated-text/index.js +0 -9
- package/es/components/truncated-text/index.js.map +0 -1
- package/es/components/truncated-text/truncated-text.d.ts +0 -78
- package/es/components/truncated-text/truncated-text.js +0 -257
- package/es/components/truncated-text/truncated-text.js.map +0 -1
- package/es/components/truncated-text/truncated-text.scss.js +0 -13
- package/es/components/truncated-text/truncated-text.scss.js.map +0 -1
- package/es/components/truncated-text/truncated-text.test.d.ts +0 -7
- package/es/components/truncated-text/truncated-text.test.js +0 -77
- package/es/components/truncated-text/truncated-text.test.js.map +0 -1
- package/es/components/user-avatar/index.d.ts +0 -9
- package/es/components/user-avatar/index.js +0 -9
- package/es/components/user-avatar/index.js.map +0 -1
- package/es/components/user-avatar/user-avatar.d.ts +0 -425
- package/es/components/user-avatar/user-avatar.figma.js +0 -161
- package/es/components/user-avatar/user-avatar.figma.js.map +0 -1
- package/es/components/user-avatar/user-avatar.js +0 -141
- package/es/components/user-avatar/user-avatar.js.map +0 -1
- package/es/components/user-avatar/user-avatar.scss.js +0 -13
- package/es/components/user-avatar/user-avatar.scss.js.map +0 -1
- package/es/components/user-avatar/user-avatar.test.d.ts +0 -1
- package/es/components/user-avatar/user-avatar.test.js +0 -128
- package/es/components/user-avatar/user-avatar.test.js.map +0 -1
- package/es/globals/internal/handle.d.ts +0 -18
- package/es/globals/internal/handle.js +0 -8
- package/es/globals/internal/handle.js.map +0 -1
- package/es/globals/internal/pconsole.d.ts +0 -15
- package/es/globals/internal/pconsole.js +0 -30
- package/es/globals/internal/pconsole.js.map +0 -1
- package/es/globals/internal/storybook-cdn.js +0 -78
- package/es/globals/internal/storybook-cdn.js.map +0 -1
- package/es/globals/js/utils/getSupportedLocale.d.ts +0 -12
- package/es/globals/js/utils/getSupportedLocale.js +0 -35
- package/es/globals/js/utils/getSupportedLocale.js.map +0 -1
- package/es/globals/settings.d.ts +0 -15
- package/es/globals/settings.js +0 -28
- package/es/globals/settings.js.map +0 -1
- package/es/index.d.ts +0 -21
- package/es/index.js +0 -21
- package/es/index.js.map +0 -1
- package/es/node_modules/@carbon/layout/es/index.js +0 -44
- package/es/node_modules/@carbon/layout/es/index.js.map +0 -1
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +0 -13
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +0 -1
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +0 -11
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +0 -1
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js +0 -9
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +0 -1
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +0 -11
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +0 -1
- package/es/packages/ibm-products-web-components/package.json.js +0 -13
- package/es/packages/ibm-products-web-components/package.json.js.map +0 -1
- package/es/patterns/step-flow/_story-assets/step-full-page.d.ts +0 -41
- package/es/patterns/step-flow/_story-assets/step-full-page.js +0 -257
- package/es/patterns/step-flow/_story-assets/step-full-page.js.map +0 -1
- package/es/patterns/step-flow/_story-assets/step-full-page.scss.js +0 -13
- package/es/patterns/step-flow/_story-assets/step-full-page.scss.js.map +0 -1
- package/es/patterns/step-flow/_story-assets/step-tearsheet.d.ts +0 -41
- package/es/patterns/step-flow/_story-assets/step-tearsheet.js +0 -255
- package/es/patterns/step-flow/_story-assets/step-tearsheet.js.map +0 -1
- package/es/patterns/step-flow/index.d.ts +0 -10
- package/es/patterns/step-flow/index.js +0 -10
- package/es/patterns/step-flow/index.js.map +0 -1
- package/es/patterns/step-flow/step-flow-signal.d.ts +0 -24
- package/es/patterns/step-flow/step-flow-signal.js +0 -54
- package/es/patterns/step-flow/step-flow-signal.js.map +0 -1
- package/es/patterns/step-flow/step-flow-signal.test.d.ts +0 -7
- package/es/patterns/step-flow/step-flow-signal.test.js +0 -88
- package/es/patterns/step-flow/step-flow-signal.test.js.map +0 -1
- package/es/patterns/step-flow/step-group.d.ts +0 -15
- package/es/patterns/step-flow/step-group.js +0 -28
- package/es/patterns/step-flow/step-group.js.map +0 -1
- package/es/patterns/step-flow/story-styles.scss.js +0 -13
- package/es/patterns/step-flow/story-styles.scss.js.map +0 -1
- package/es/utilities/carousel/carousel.d.ts +0 -14
- package/es/utilities/carousel/carousel.js +0 -341
- package/es/utilities/carousel/carousel.js.map +0 -1
- package/es/utilities/carousel/index.d.ts +0 -8
- package/es/utilities/carousel/index.js +0 -9
- package/es/utilities/carousel/index.js.map +0 -1
- package/es/utilities/carousel/swipeEvents.d.ts +0 -7
- package/es/utilities/carousel/swipeEvents.js +0 -109
- package/es/utilities/carousel/swipeEvents.js.map +0 -1
- package/es/utilities/carousel/types.d.ts +0 -37
- package/es/utilities/carousel/types.js +0 -8
- package/es/utilities/carousel/types.js.map +0 -1
- package/es/utilities/manageFocusTrap/manageFocusTrap.d.ts +0 -13
- package/es/utilities/manageFocusTrap/manageFocusTrap.js +0 -138
- package/es/utilities/manageFocusTrap/manageFocusTrap.js.map +0 -1
- package/es-custom/components/about-modal/about-modal.d.ts +0 -458
- package/es-custom/components/about-modal/about-modal.figma.js +0 -59
- package/es-custom/components/about-modal/about-modal.figma.js.map +0 -1
- package/es-custom/components/about-modal/about-modal.js +0 -203
- package/es-custom/components/about-modal/about-modal.js.map +0 -1
- package/es-custom/components/about-modal/about-modal.scss.js +0 -13
- package/es-custom/components/about-modal/about-modal.scss.js.map +0 -1
- package/es-custom/components/about-modal/about-modal.test.d.ts +0 -7
- package/es-custom/components/about-modal/about-modal.test.js +0 -208
- package/es-custom/components/about-modal/about-modal.test.js.map +0 -1
- package/es-custom/components/about-modal/index.d.ts +0 -9
- package/es-custom/components/about-modal/index.js +0 -9
- package/es-custom/components/about-modal/index.js.map +0 -1
- package/es-custom/components/checklist/checklist-chart.d.ts +0 -25
- package/es-custom/components/checklist/checklist-chart.js +0 -81
- package/es-custom/components/checklist/checklist-chart.js.map +0 -1
- package/es-custom/components/checklist/checklist-group.d.ts +0 -25
- package/es-custom/components/checklist/checklist-group.js +0 -58
- package/es-custom/components/checklist/checklist-group.js.map +0 -1
- package/es-custom/components/checklist/checklist-icon.d.ts +0 -26
- package/es-custom/components/checklist/checklist-icon.js +0 -72
- package/es-custom/components/checklist/checklist-icon.js.map +0 -1
- package/es-custom/components/checklist/checklist-item.d.ts +0 -41
- package/es-custom/components/checklist/checklist-item.figma.js +0 -49
- package/es-custom/components/checklist/checklist-item.figma.js.map +0 -1
- package/es-custom/components/checklist/checklist-item.js +0 -128
- package/es-custom/components/checklist/checklist-item.js.map +0 -1
- package/es-custom/components/checklist/checklist.d.ts +0 -73
- package/es-custom/components/checklist/checklist.figma.js +0 -87
- package/es-custom/components/checklist/checklist.figma.js.map +0 -1
- package/es-custom/components/checklist/checklist.js +0 -198
- package/es-custom/components/checklist/checklist.js.map +0 -1
- package/es-custom/components/checklist/checklist.scss.js +0 -13
- package/es-custom/components/checklist/checklist.scss.js.map +0 -1
- package/es-custom/components/checklist/checklist.test.d.ts +0 -7
- package/es-custom/components/checklist/checklist.test.js +0 -172
- package/es-custom/components/checklist/checklist.test.js.map +0 -1
- package/es-custom/components/checklist/checklist.types.d.ts +0 -22
- package/es-custom/components/checklist/checklist.types.js +0 -32
- package/es-custom/components/checklist/checklist.types.js.map +0 -1
- package/es-custom/components/checklist/index.d.ts +0 -13
- package/es-custom/components/checklist/index.js +0 -13
- package/es-custom/components/checklist/index.js.map +0 -1
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +0 -413
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js +0 -126
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +0 -1
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +0 -13
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js.map +0 -1
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.d.ts +0 -9
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +0 -70
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +0 -1
- package/es-custom/components/coachmark/coachmark-beacon/defs.d.ts +0 -14
- package/es-custom/components/coachmark/coachmark-beacon/defs.js +0 -25
- package/es-custom/components/coachmark/coachmark-beacon/defs.js.map +0 -1
- package/es-custom/components/coachmark/coachmark-beacon/index.d.ts +0 -9
- package/es-custom/components/coachmark/coachmark-beacon/index.js +0 -9
- package/es-custom/components/coachmark/coachmark-beacon/index.js.map +0 -1
- package/es-custom/components/full-page-error/assets/error403SVG.js +0 -831
- package/es-custom/components/full-page-error/assets/error403SVG.js.map +0 -1
- package/es-custom/components/full-page-error/assets/error404SVG.js +0 -735
- package/es-custom/components/full-page-error/assets/error404SVG.js.map +0 -1
- package/es-custom/components/full-page-error/assets/errorGenericSVG.js +0 -830
- package/es-custom/components/full-page-error/assets/errorGenericSVG.js.map +0 -1
- package/es-custom/components/full-page-error/full-page-error.d.ts +0 -43
- package/es-custom/components/full-page-error/full-page-error.figma.js +0 -81
- package/es-custom/components/full-page-error/full-page-error.figma.js.map +0 -1
- package/es-custom/components/full-page-error/full-page-error.js +0 -102
- package/es-custom/components/full-page-error/full-page-error.js.map +0 -1
- package/es-custom/components/full-page-error/full-page-error.scss.js +0 -13
- package/es-custom/components/full-page-error/full-page-error.scss.js.map +0 -1
- package/es-custom/components/full-page-error/full-page-error.test.d.ts +0 -7
- package/es-custom/components/full-page-error/full-page-error.test.js +0 -102
- package/es-custom/components/full-page-error/full-page-error.test.js.map +0 -1
- package/es-custom/components/full-page-error/index.d.ts +0 -9
- package/es-custom/components/full-page-error/index.js +0 -9
- package/es-custom/components/full-page-error/index.js.map +0 -1
- package/es-custom/components/full-page-error/types.d.ts +0 -13
- package/es-custom/components/full-page-error/types.js +0 -24
- package/es-custom/components/full-page-error/types.js.map +0 -1
- package/es-custom/components/interstitial-screen/index.d.ts +0 -13
- package/es-custom/components/interstitial-screen/index.js +0 -13
- package/es-custom/components/interstitial-screen/index.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.d.ts +0 -388
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js +0 -71
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.scss.js +0 -13
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.scss.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen-body.d.ts +0 -402
- package/es-custom/components/interstitial-screen/interstitial-screen-body.js +0 -152
- package/es-custom/components/interstitial-screen/interstitial-screen-body.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen-body.scss.js +0 -13
- package/es-custom/components/interstitial-screen/interstitial-screen-body.scss.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen-context.d.ts +0 -18
- package/es-custom/components/interstitial-screen/interstitial-screen-context.js +0 -48
- package/es-custom/components/interstitial-screen/interstitial-screen-context.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.d.ts +0 -429
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.js +0 -263
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.scss.js +0 -13
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.scss.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen-header.d.ts +0 -413
- package/es-custom/components/interstitial-screen/interstitial-screen-header.js +0 -177
- package/es-custom/components/interstitial-screen/interstitial-screen-header.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen-header.scss.js +0 -13
- package/es-custom/components/interstitial-screen/interstitial-screen-header.scss.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen.d.ts +0 -441
- package/es-custom/components/interstitial-screen/interstitial-screen.js +0 -217
- package/es-custom/components/interstitial-screen/interstitial-screen.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen.scss.js +0 -13
- package/es-custom/components/interstitial-screen/interstitial-screen.scss.js.map +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen.test.d.ts +0 -1
- package/es-custom/components/interstitial-screen/interstitial-screen.test.js +0 -329
- package/es-custom/components/interstitial-screen/interstitial-screen.test.js.map +0 -1
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.d.ts +0 -3
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js +0 -45
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js.map +0 -1
- package/es-custom/components/notification-panel/date-time-context.d.ts +0 -9
- package/es-custom/components/notification-panel/date-time-context.js +0 -19
- package/es-custom/components/notification-panel/date-time-context.js.map +0 -1
- package/es-custom/components/notification-panel/defs.d.ts +0 -8
- package/es-custom/components/notification-panel/defs.js +0 -8
- package/es-custom/components/notification-panel/defs.js.map +0 -1
- package/es-custom/components/notification-panel/index.d.ts +0 -11
- package/es-custom/components/notification-panel/index.js +0 -11
- package/es-custom/components/notification-panel/index.js.map +0 -1
- package/es-custom/components/notification-panel/notification-footer.d.ts +0 -405
- package/es-custom/components/notification-panel/notification-footer.js +0 -120
- package/es-custom/components/notification-panel/notification-footer.js.map +0 -1
- package/es-custom/components/notification-panel/notification-footer.scss.js +0 -13
- package/es-custom/components/notification-panel/notification-footer.scss.js.map +0 -1
- package/es-custom/components/notification-panel/notification-footer.test.d.ts +0 -7
- package/es-custom/components/notification-panel/notification-footer.test.js +0 -65
- package/es-custom/components/notification-panel/notification-footer.test.js.map +0 -1
- package/es-custom/components/notification-panel/notification-panel.d.ts +0 -479
- package/es-custom/components/notification-panel/notification-panel.js +0 -439
- package/es-custom/components/notification-panel/notification-panel.js.map +0 -1
- package/es-custom/components/notification-panel/notification-panel.scss.js +0 -13
- package/es-custom/components/notification-panel/notification-panel.scss.js.map +0 -1
- package/es-custom/components/notification-panel/notification-panel.test.d.ts +0 -7
- package/es-custom/components/notification-panel/notification-panel.test.js +0 -340
- package/es-custom/components/notification-panel/notification-panel.test.js.map +0 -1
- package/es-custom/components/notification-panel/notification.d.ts +0 -415
- package/es-custom/components/notification-panel/notification.js +0 -179
- package/es-custom/components/notification-panel/notification.js.map +0 -1
- package/es-custom/components/notification-panel/notification.scss.js +0 -13
- package/es-custom/components/notification-panel/notification.scss.js.map +0 -1
- package/es-custom/components/notification-panel/notification.test.d.ts +0 -7
- package/es-custom/components/notification-panel/notification.test.js +0 -152
- package/es-custom/components/notification-panel/notification.test.js.map +0 -1
- package/es-custom/components/options-tile/index.d.ts +0 -9
- package/es-custom/components/options-tile/index.js +0 -9
- package/es-custom/components/options-tile/index.js.map +0 -1
- package/es-custom/components/options-tile/options-file.figma.js +0 -96
- package/es-custom/components/options-tile/options-file.figma.js.map +0 -1
- package/es-custom/components/options-tile/options-tile.d.ts +0 -416
- package/es-custom/components/options-tile/options-tile.js +0 -158
- package/es-custom/components/options-tile/options-tile.js.map +0 -1
- package/es-custom/components/options-tile/options-tile.scss.js +0 -13
- package/es-custom/components/options-tile/options-tile.scss.js.map +0 -1
- package/es-custom/components/options-tile/options-tile.test.d.ts +0 -1
- package/es-custom/components/options-tile/options-tile.test.js +0 -129
- package/es-custom/components/options-tile/options-tile.test.js.map +0 -1
- package/es-custom/components/page-header/_story-assets/2x1.jpg.js +0 -11
- package/es-custom/components/page-header/_story-assets/2x1.jpg.js.map +0 -1
- package/es-custom/components/page-header/_story-assets/3x2.jpg.js +0 -11
- package/es-custom/components/page-header/_story-assets/3x2.jpg.js.map +0 -1
- package/es-custom/components/page-header/_story-assets/overflowHandler.d.ts +0 -98
- package/es-custom/components/page-header/_story-assets/overflowHandler.js +0 -156
- package/es-custom/components/page-header/_story-assets/overflowHandler.js.map +0 -1
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +0 -43
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js +0 -154
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js.map +0 -1
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +0 -13
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js.map +0 -1
- package/es-custom/components/page-header/_story-assets/set-of-tags/index.d.ts +0 -9
- package/es-custom/components/page-header/_story-assets/set-of-tags/index.js +0 -9
- package/es-custom/components/page-header/_story-assets/set-of-tags/index.js.map +0 -1
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +0 -40
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.js +0 -260
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.js.map +0 -1
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +0 -13
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js.map +0 -1
- package/es-custom/components/page-header/_story-assets/set-of-tags/utils.d.ts +0 -23
- package/es-custom/components/page-header/_story-assets/set-of-tags/utils.js +0 -44
- package/es-custom/components/page-header/_story-assets/set-of-tags/utils.js.map +0 -1
- package/es-custom/components/page-header/context.d.ts +0 -15
- package/es-custom/components/page-header/context.js +0 -27
- package/es-custom/components/page-header/context.js.map +0 -1
- package/es-custom/components/page-header/index.d.ts +0 -16
- package/es-custom/components/page-header/index.js +0 -16
- package/es-custom/components/page-header/index.js.map +0 -1
- package/es-custom/components/page-header/page-header-breadcrumb.d.ts +0 -36
- package/es-custom/components/page-header/page-header-breadcrumb.js +0 -106
- package/es-custom/components/page-header/page-header-breadcrumb.js.map +0 -1
- package/es-custom/components/page-header/page-header-content-text.d.ts +0 -22
- package/es-custom/components/page-header/page-header-content-text.js +0 -56
- package/es-custom/components/page-header/page-header-content-text.js.map +0 -1
- package/es-custom/components/page-header/page-header-content.d.ts +0 -42
- package/es-custom/components/page-header/page-header-content.js +0 -141
- package/es-custom/components/page-header/page-header-content.js.map +0 -1
- package/es-custom/components/page-header/page-header-hero-image.d.ts +0 -18
- package/es-custom/components/page-header/page-header-hero-image.js +0 -38
- package/es-custom/components/page-header/page-header-hero-image.js.map +0 -1
- package/es-custom/components/page-header/page-header-scroller.d.ts +0 -56
- package/es-custom/components/page-header/page-header-scroller.js +0 -166
- package/es-custom/components/page-header/page-header-scroller.js.map +0 -1
- package/es-custom/components/page-header/page-header-tabs.d.ts +0 -18
- package/es-custom/components/page-header/page-header-tabs.js +0 -48
- package/es-custom/components/page-header/page-header-tabs.js.map +0 -1
- package/es-custom/components/page-header/page-header-title-breadcrumb.d.ts +0 -20
- package/es-custom/components/page-header/page-header-title-breadcrumb.js +0 -71
- package/es-custom/components/page-header/page-header-title-breadcrumb.js.map +0 -1
- package/es-custom/components/page-header/page-header.d.ts +0 -31
- package/es-custom/components/page-header/page-header.js +0 -128
- package/es-custom/components/page-header/page-header.js.map +0 -1
- package/es-custom/components/page-header/page-header.scss.js +0 -13
- package/es-custom/components/page-header/page-header.scss.js.map +0 -1
- package/es-custom/components/page-header/page-header.test.d.ts +0 -1
- package/es-custom/components/page-header/page-header.test.js +0 -349
- package/es-custom/components/page-header/page-header.test.js.map +0 -1
- package/es-custom/components/page-header/utils.d.ts +0 -32
- package/es-custom/components/page-header/utils.js +0 -76
- package/es-custom/components/page-header/utils.js.map +0 -1
- package/es-custom/components/side-panel/_story-assets/index.d.ts +0 -8
- package/es-custom/components/side-panel/_story-assets/index.js +0 -275
- package/es-custom/components/side-panel/_story-assets/index.js.map +0 -1
- package/es-custom/components/side-panel/defs.d.ts +0 -39
- package/es-custom/components/side-panel/defs.js +0 -51
- package/es-custom/components/side-panel/defs.js.map +0 -1
- package/es-custom/components/side-panel/index.d.ts +0 -9
- package/es-custom/components/side-panel/index.js +0 -9
- package/es-custom/components/side-panel/index.js.map +0 -1
- package/es-custom/components/side-panel/side-panel.d.ts +0 -571
- package/es-custom/components/side-panel/side-panel.js +0 -859
- package/es-custom/components/side-panel/side-panel.js.map +0 -1
- package/es-custom/components/side-panel/side-panel.scss.js +0 -13
- package/es-custom/components/side-panel/side-panel.scss.js.map +0 -1
- package/es-custom/components/side-panel/side-panel.test.d.ts +0 -3
- package/es-custom/components/side-panel/side-panel.test.js +0 -273
- package/es-custom/components/side-panel/side-panel.test.js.map +0 -1
- package/es-custom/components/side-panel/story-styles.scss.js +0 -13
- package/es-custom/components/side-panel/story-styles.scss.js.map +0 -1
- package/es-custom/components/tearsheet/defs.d.ts +0 -26
- package/es-custom/components/tearsheet/defs.js +0 -39
- package/es-custom/components/tearsheet/defs.js.map +0 -1
- package/es-custom/components/tearsheet/index.d.ts +0 -9
- package/es-custom/components/tearsheet/index.js +0 -9
- package/es-custom/components/tearsheet/index.js.map +0 -1
- package/es-custom/components/tearsheet/story-styles.scss.js +0 -13
- package/es-custom/components/tearsheet/story-styles.scss.js.map +0 -1
- package/es-custom/components/tearsheet/tearsheet.d.ts +0 -535
- package/es-custom/components/tearsheet/tearsheet.js +0 -721
- package/es-custom/components/tearsheet/tearsheet.js.map +0 -1
- package/es-custom/components/tearsheet/tearsheet.scss.js +0 -13
- package/es-custom/components/tearsheet/tearsheet.scss.js.map +0 -1
- package/es-custom/components/tearsheet/tearsheet.test.d.ts +0 -14
- package/es-custom/components/tearsheet/tearsheet.test.js +0 -305
- package/es-custom/components/tearsheet/tearsheet.test.js.map +0 -1
- package/es-custom/components/tearsheet/utils.d.ts +0 -34
- package/es-custom/components/tearsheet/utils.js +0 -370
- package/es-custom/components/tearsheet/utils.js.map +0 -1
- package/es-custom/components/truncated-text/index.d.ts +0 -9
- package/es-custom/components/truncated-text/index.js +0 -9
- package/es-custom/components/truncated-text/index.js.map +0 -1
- package/es-custom/components/truncated-text/truncated-text.d.ts +0 -78
- package/es-custom/components/truncated-text/truncated-text.js +0 -257
- package/es-custom/components/truncated-text/truncated-text.js.map +0 -1
- package/es-custom/components/truncated-text/truncated-text.scss.js +0 -13
- package/es-custom/components/truncated-text/truncated-text.scss.js.map +0 -1
- package/es-custom/components/truncated-text/truncated-text.test.d.ts +0 -7
- package/es-custom/components/truncated-text/truncated-text.test.js +0 -77
- package/es-custom/components/truncated-text/truncated-text.test.js.map +0 -1
- package/es-custom/components/user-avatar/index.d.ts +0 -9
- package/es-custom/components/user-avatar/index.js +0 -9
- package/es-custom/components/user-avatar/index.js.map +0 -1
- package/es-custom/components/user-avatar/user-avatar.d.ts +0 -425
- package/es-custom/components/user-avatar/user-avatar.figma.js +0 -161
- package/es-custom/components/user-avatar/user-avatar.figma.js.map +0 -1
- package/es-custom/components/user-avatar/user-avatar.js +0 -141
- package/es-custom/components/user-avatar/user-avatar.js.map +0 -1
- package/es-custom/components/user-avatar/user-avatar.scss.js +0 -13
- package/es-custom/components/user-avatar/user-avatar.scss.js.map +0 -1
- package/es-custom/components/user-avatar/user-avatar.test.d.ts +0 -1
- package/es-custom/components/user-avatar/user-avatar.test.js +0 -128
- package/es-custom/components/user-avatar/user-avatar.test.js.map +0 -1
- package/es-custom/globals/internal/handle.d.ts +0 -18
- package/es-custom/globals/internal/handle.js +0 -8
- package/es-custom/globals/internal/handle.js.map +0 -1
- package/es-custom/globals/internal/pconsole.d.ts +0 -15
- package/es-custom/globals/internal/pconsole.js +0 -30
- package/es-custom/globals/internal/pconsole.js.map +0 -1
- package/es-custom/globals/internal/storybook-cdn.js +0 -78
- package/es-custom/globals/internal/storybook-cdn.js.map +0 -1
- package/es-custom/globals/js/utils/getSupportedLocale.d.ts +0 -12
- package/es-custom/globals/js/utils/getSupportedLocale.js +0 -35
- package/es-custom/globals/js/utils/getSupportedLocale.js.map +0 -1
- package/es-custom/globals/settings.d.ts +0 -15
- package/es-custom/globals/settings.js +0 -28
- package/es-custom/globals/settings.js.map +0 -1
- package/es-custom/index.d.ts +0 -21
- package/es-custom/index.js +0 -21
- package/es-custom/index.js.map +0 -1
- package/es-custom/node_modules/@carbon/layout/es/index.js +0 -44
- package/es-custom/node_modules/@carbon/layout/es/index.js.map +0 -1
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +0 -13
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +0 -1
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +0 -11
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +0 -1
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js +0 -9
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +0 -1
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +0 -11
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +0 -1
- package/es-custom/packages/ibm-products-web-components/package.json.js +0 -13
- package/es-custom/packages/ibm-products-web-components/package.json.js.map +0 -1
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.d.ts +0 -41
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.js +0 -257
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.js.map +0 -1
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.scss.js +0 -13
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.scss.js.map +0 -1
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.d.ts +0 -41
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.js +0 -255
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.js.map +0 -1
- package/es-custom/patterns/step-flow/index.d.ts +0 -10
- package/es-custom/patterns/step-flow/index.js +0 -10
- package/es-custom/patterns/step-flow/index.js.map +0 -1
- package/es-custom/patterns/step-flow/step-flow-signal.d.ts +0 -24
- package/es-custom/patterns/step-flow/step-flow-signal.js +0 -54
- package/es-custom/patterns/step-flow/step-flow-signal.js.map +0 -1
- package/es-custom/patterns/step-flow/step-flow-signal.test.d.ts +0 -7
- package/es-custom/patterns/step-flow/step-flow-signal.test.js +0 -88
- package/es-custom/patterns/step-flow/step-flow-signal.test.js.map +0 -1
- package/es-custom/patterns/step-flow/step-group.d.ts +0 -15
- package/es-custom/patterns/step-flow/step-group.js +0 -28
- package/es-custom/patterns/step-flow/step-group.js.map +0 -1
- package/es-custom/patterns/step-flow/story-styles.scss.js +0 -13
- package/es-custom/patterns/step-flow/story-styles.scss.js.map +0 -1
- package/es-custom/utilities/carousel/carousel.d.ts +0 -14
- package/es-custom/utilities/carousel/carousel.js +0 -341
- package/es-custom/utilities/carousel/carousel.js.map +0 -1
- package/es-custom/utilities/carousel/index.d.ts +0 -8
- package/es-custom/utilities/carousel/index.js +0 -9
- package/es-custom/utilities/carousel/index.js.map +0 -1
- package/es-custom/utilities/carousel/swipeEvents.d.ts +0 -7
- package/es-custom/utilities/carousel/swipeEvents.js +0 -109
- package/es-custom/utilities/carousel/swipeEvents.js.map +0 -1
- package/es-custom/utilities/carousel/types.d.ts +0 -37
- package/es-custom/utilities/carousel/types.js +0 -8
- package/es-custom/utilities/carousel/types.js.map +0 -1
- package/es-custom/utilities/manageFocusTrap/manageFocusTrap.d.ts +0 -13
- package/es-custom/utilities/manageFocusTrap/manageFocusTrap.js +0 -138
- package/es-custom/utilities/manageFocusTrap/manageFocusTrap.js.map +0 -1
- package/lib/components/about-modal/about-modal.d.ts +0 -458
- package/lib/components/about-modal/about-modal.test.d.ts +0 -7
- package/lib/components/about-modal/index.d.ts +0 -9
- package/lib/components/checklist/checklist-chart.d.ts +0 -25
- package/lib/components/checklist/checklist-group.d.ts +0 -25
- package/lib/components/checklist/checklist-icon.d.ts +0 -26
- package/lib/components/checklist/checklist-item.d.ts +0 -41
- package/lib/components/checklist/checklist.d.ts +0 -73
- package/lib/components/checklist/checklist.test.d.ts +0 -7
- package/lib/components/checklist/checklist.types.d.ts +0 -22
- package/lib/components/checklist/index.d.ts +0 -13
- package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +0 -413
- package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.test.d.ts +0 -9
- package/lib/components/coachmark/coachmark-beacon/defs.d.ts +0 -14
- package/lib/components/coachmark/coachmark-beacon/defs.js +0 -25
- package/lib/components/coachmark/coachmark-beacon/defs.js.map +0 -1
- package/lib/components/coachmark/coachmark-beacon/index.d.ts +0 -9
- package/lib/components/full-page-error/full-page-error.d.ts +0 -43
- package/lib/components/full-page-error/full-page-error.test.d.ts +0 -7
- package/lib/components/full-page-error/index.d.ts +0 -9
- package/lib/components/full-page-error/types.d.ts +0 -13
- package/lib/components/interstitial-screen/index.d.ts +0 -13
- package/lib/components/interstitial-screen/interstitial-screen-body-item.d.ts +0 -388
- package/lib/components/interstitial-screen/interstitial-screen-body.d.ts +0 -402
- package/lib/components/interstitial-screen/interstitial-screen-context.d.ts +0 -18
- package/lib/components/interstitial-screen/interstitial-screen-footer.d.ts +0 -429
- package/lib/components/interstitial-screen/interstitial-screen-header.d.ts +0 -413
- package/lib/components/interstitial-screen/interstitial-screen.d.ts +0 -441
- package/lib/components/interstitial-screen/interstitial-screen.test.d.ts +0 -1
- package/lib/components/notification-panel/_story-assets/unread-notification-bell.d.ts +0 -3
- package/lib/components/notification-panel/date-time-context.d.ts +0 -9
- package/lib/components/notification-panel/defs.d.ts +0 -8
- package/lib/components/notification-panel/defs.js +0 -10
- package/lib/components/notification-panel/defs.js.map +0 -1
- package/lib/components/notification-panel/index.d.ts +0 -11
- package/lib/components/notification-panel/notification-footer.d.ts +0 -405
- package/lib/components/notification-panel/notification-footer.test.d.ts +0 -7
- package/lib/components/notification-panel/notification-panel.d.ts +0 -479
- package/lib/components/notification-panel/notification-panel.test.d.ts +0 -7
- package/lib/components/notification-panel/notification.d.ts +0 -415
- package/lib/components/notification-panel/notification.test.d.ts +0 -7
- package/lib/components/options-tile/index.d.ts +0 -9
- package/lib/components/options-tile/options-tile.d.ts +0 -416
- package/lib/components/options-tile/options-tile.test.d.ts +0 -1
- package/lib/components/page-header/_story-assets/overflowHandler.d.ts +0 -98
- package/lib/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +0 -43
- package/lib/components/page-header/_story-assets/set-of-tags/index.d.ts +0 -9
- package/lib/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +0 -40
- package/lib/components/page-header/_story-assets/set-of-tags/utils.d.ts +0 -23
- package/lib/components/page-header/context.d.ts +0 -15
- package/lib/components/page-header/index.d.ts +0 -16
- package/lib/components/page-header/page-header-breadcrumb.d.ts +0 -36
- package/lib/components/page-header/page-header-content-text.d.ts +0 -22
- package/lib/components/page-header/page-header-content.d.ts +0 -42
- package/lib/components/page-header/page-header-hero-image.d.ts +0 -18
- package/lib/components/page-header/page-header-scroller.d.ts +0 -56
- package/lib/components/page-header/page-header-tabs.d.ts +0 -18
- package/lib/components/page-header/page-header-title-breadcrumb.d.ts +0 -20
- package/lib/components/page-header/page-header.d.ts +0 -31
- package/lib/components/page-header/page-header.test.d.ts +0 -1
- package/lib/components/page-header/utils.d.ts +0 -32
- package/lib/components/side-panel/_story-assets/index.d.ts +0 -8
- package/lib/components/side-panel/defs.d.ts +0 -39
- package/lib/components/side-panel/defs.js +0 -51
- package/lib/components/side-panel/defs.js.map +0 -1
- package/lib/components/side-panel/index.d.ts +0 -9
- package/lib/components/side-panel/side-panel.d.ts +0 -571
- package/lib/components/side-panel/side-panel.test.d.ts +0 -3
- package/lib/components/tearsheet/defs.d.ts +0 -26
- package/lib/components/tearsheet/defs.js +0 -39
- package/lib/components/tearsheet/defs.js.map +0 -1
- package/lib/components/tearsheet/index.d.ts +0 -9
- package/lib/components/tearsheet/tearsheet.d.ts +0 -535
- package/lib/components/tearsheet/tearsheet.test.d.ts +0 -14
- package/lib/components/tearsheet/utils.d.ts +0 -34
- package/lib/components/truncated-text/index.d.ts +0 -9
- package/lib/components/truncated-text/truncated-text.d.ts +0 -78
- package/lib/components/truncated-text/truncated-text.test.d.ts +0 -7
- package/lib/components/user-avatar/index.d.ts +0 -9
- package/lib/components/user-avatar/user-avatar.d.ts +0 -425
- package/lib/components/user-avatar/user-avatar.test.d.ts +0 -1
- package/lib/globals/internal/handle.d.ts +0 -18
- package/lib/globals/internal/pconsole.d.ts +0 -15
- package/lib/globals/js/utils/getSupportedLocale.d.ts +0 -12
- package/lib/globals/js/utils/getSupportedLocale.js +0 -37
- package/lib/globals/js/utils/getSupportedLocale.js.map +0 -1
- package/lib/globals/settings.d.ts +0 -15
- package/lib/globals/settings.js +0 -32
- package/lib/globals/settings.js.map +0 -1
- package/lib/index.d.ts +0 -21
- package/lib/patterns/step-flow/_story-assets/step-full-page.d.ts +0 -41
- package/lib/patterns/step-flow/_story-assets/step-tearsheet.d.ts +0 -41
- package/lib/patterns/step-flow/index.d.ts +0 -10
- package/lib/patterns/step-flow/step-flow-signal.d.ts +0 -24
- package/lib/patterns/step-flow/step-flow-signal.test.d.ts +0 -7
- package/lib/patterns/step-flow/step-group.d.ts +0 -15
- package/lib/utilities/carousel/carousel.d.ts +0 -14
- package/lib/utilities/carousel/index.d.ts +0 -8
- package/lib/utilities/carousel/swipeEvents.d.ts +0 -7
- package/lib/utilities/carousel/types.d.ts +0 -37
- package/lib/utilities/manageFocusTrap/manageFocusTrap.d.ts +0 -13
- package/scss/components/about-modal/about-modal.scss +0 -117
- package/scss/components/checklist/checklist.scss +0 -70
- package/scss/components/coachmark/coachmark-beacon/coachmark-beacon.scss +0 -90
- package/scss/components/full-page-error/full-page-error.scss +0 -29
- package/scss/components/interstitial-screen/interstitial-screen-body-item.scss +0 -18
- package/scss/components/interstitial-screen/interstitial-screen-body.scss +0 -29
- package/scss/components/interstitial-screen/interstitial-screen-footer.scss +0 -39
- package/scss/components/interstitial-screen/interstitial-screen-header.scss +0 -13
- package/scss/components/interstitial-screen/interstitial-screen.scss +0 -28
- package/scss/components/notification-panel/notification-footer.scss +0 -65
- package/scss/components/notification-panel/notification-panel.scss +0 -58
- package/scss/components/notification-panel/notification.scss +0 -147
- package/scss/components/options-tile/options-tile.scss +0 -102
- package/scss/components/page-header/_story-assets/_storybook-styles.scss +0 -35
- package/scss/components/page-header/_story-assets/set-of-breadcrumbs.scss +0 -41
- package/scss/components/page-header/_story-assets/set-of-tags/set-of-tags.scss +0 -96
- package/scss/components/page-header/page-header.scss +0 -422
- package/scss/components/side-panel/side-panel.scss +0 -307
- package/scss/components/tearsheet/tearsheet.scss +0 -343
- package/scss/components/truncated-text/truncated-text.scss +0 -110
- package/scss/components/user-avatar/user-avatar.scss +0 -119
|
@@ -1,341 +0,0 @@
|
|
|
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 { registerSwipeEvents } from './swipeEvents.js';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Copyright IBM Corp. 2025
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Initializes a carousel with the given configuration.
|
|
18
|
-
* @param carouselContainer - The HTMLElement representing the carousel container.
|
|
19
|
-
* @param config - Optional configuration object.
|
|
20
|
-
* @returns An object containing methods to control the carousel.
|
|
21
|
-
*/
|
|
22
|
-
const initCarousel = (carouselContainer, config) => {
|
|
23
|
-
const prefix = 'carousel';
|
|
24
|
-
let viewIndexStack = [0];
|
|
25
|
-
let previousViewIndexStack = [0];
|
|
26
|
-
const refs = {};
|
|
27
|
-
const minHeight = 10; // 10 rem
|
|
28
|
-
const { onViewChangeStart, onViewChangeEnd, excludeSwipeSupport } = config || {};
|
|
29
|
-
/**
|
|
30
|
-
* Registers an HTMLElement at a specific index in the refs array.
|
|
31
|
-
*
|
|
32
|
-
* @param {number} index - The index at which to register the HTMLElement.
|
|
33
|
-
* @param {HTMLElement} ref - The HTMLElement to register.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* registerRef(0, document.getElementById('myElement'));
|
|
37
|
-
*/
|
|
38
|
-
const registerRef = (index, ref) => {
|
|
39
|
-
refs[index] = ref;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Wraps all child elements of a given container into a new div with the specified class.
|
|
43
|
-
* If an element with the specified class already exists as a child of the container, the function does nothing.
|
|
44
|
-
*
|
|
45
|
-
* @param {HTMLElement} container - The container element to wrap child elements of.
|
|
46
|
-
* @param {string} wrapperClass - The class name to apply to the new wrapper div.
|
|
47
|
-
* @returns {void}
|
|
48
|
-
*/
|
|
49
|
-
const wrapAllItems = (container, wrapperClass) => {
|
|
50
|
-
if (container.querySelector(`.${wrapperClass}`)) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const wrapper = document.createElement('div');
|
|
54
|
-
wrapper.classList.add(`${wrapperClass}`);
|
|
55
|
-
while (container.firstChild) {
|
|
56
|
-
wrapper.appendChild(container.firstChild);
|
|
57
|
-
}
|
|
58
|
-
container.appendChild(wrapper);
|
|
59
|
-
};
|
|
60
|
-
const getHistory = () => {
|
|
61
|
-
return viewIndexStack.map((id) => ({
|
|
62
|
-
id,
|
|
63
|
-
elem: refs[id],
|
|
64
|
-
}));
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Retrieves the current carousel response based on the view index stack and reference objects.
|
|
68
|
-
* @returns {CarouselResponse} - An object containing carousel response details.
|
|
69
|
-
*/
|
|
70
|
-
const getCallbackResponse = () => {
|
|
71
|
-
const totalRefs = Object.keys(refs).length;
|
|
72
|
-
const lastElementRef = refs[totalRefs - 1];
|
|
73
|
-
const historicalData = getHistory();
|
|
74
|
-
return {
|
|
75
|
-
currentIndex: viewIndexStack[0],
|
|
76
|
-
lastIndex: parseInt((lastElementRef === null || lastElementRef === void 0 ? void 0 : lastElementRef.dataset.index) || viewIndexStack[0].toString(), 10),
|
|
77
|
-
totalViews: totalRefs,
|
|
78
|
-
historyStack: historicalData,
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Handles the start of a transition in the application.
|
|
83
|
-
* This function is responsible for capturing the current state of the view index stack
|
|
84
|
-
* and invoking a callback function if it exists.
|
|
85
|
-
*
|
|
86
|
-
* @function handleTransitionStart
|
|
87
|
-
* @returns {void}
|
|
88
|
-
*/
|
|
89
|
-
const handleTransitionStart = () => {
|
|
90
|
-
previousViewIndexStack = [...viewIndexStack];
|
|
91
|
-
const callbackData = getCallbackResponse();
|
|
92
|
-
onViewChangeStart === null || onViewChangeStart === void 0 ? void 0 : onViewChangeStart(callbackData);
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Handles the 'transitionend' event for a given element.
|
|
96
|
-
* This function checks if the element has a 'data-index' attribute and if its value matches the current view index.
|
|
97
|
-
* If both conditions are met, it calls the 'onViewChangeEnd' callback with the response from 'getCallbackResponse'.
|
|
98
|
-
*
|
|
99
|
-
* @param {HTMLElement | null} el - The element to handle the 'transitionend' event for.
|
|
100
|
-
* @returns {void}
|
|
101
|
-
*/
|
|
102
|
-
const handleTransitionEnd = (el) => {
|
|
103
|
-
if (!el) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
const tmpElementIndex = el.dataset.index;
|
|
107
|
-
if (tmpElementIndex &&
|
|
108
|
-
viewIndexStack[0] === parseInt(tmpElementIndex, 10)) {
|
|
109
|
-
const callbackData = getCallbackResponse();
|
|
110
|
-
onViewChangeEnd === null || onViewChangeEnd === void 0 ? void 0 : onViewChangeEnd(callbackData);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* A utility function to sanitize an index value.
|
|
115
|
-
* This function ensures the index stays within the bounds of the refs array.
|
|
116
|
-
*
|
|
117
|
-
* @param {number} idx - The index to be sanitized.
|
|
118
|
-
* @returns {number} - The sanitized index.
|
|
119
|
-
*/
|
|
120
|
-
const sanitizeIndex = (idx) => {
|
|
121
|
-
const floorVal = 0;
|
|
122
|
-
const ceilVal = Object.keys(refs).length - 1;
|
|
123
|
-
return Math.max(floorVal, Math.min(idx, ceilVal));
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Handles the 'transitionend' event for a given element.
|
|
127
|
-
* This function checks if the element has a 'data-index' attribute and if its value matches the current view index.
|
|
128
|
-
* If both conditions are met, it calls the 'onViewChangeEnd' callback with the response from 'getCallbackResponse'.
|
|
129
|
-
* @returns {void}
|
|
130
|
-
*/
|
|
131
|
-
const transitionToViewIndex = (idx) => {
|
|
132
|
-
const sanitizedIndex = sanitizeIndex(idx);
|
|
133
|
-
if (viewIndexStack[0] !== sanitizedIndex) {
|
|
134
|
-
handleTransitionStart();
|
|
135
|
-
viewIndexStack = [sanitizedIndex, ...viewIndexStack];
|
|
136
|
-
performAnimation(false);
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
const transitionComplete = (ref) => {
|
|
140
|
-
handleTransitionEnd(ref);
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* Attaches class names to an HTMLElement based on given conditions.
|
|
144
|
-
*
|
|
145
|
-
* @param {HTMLElement} viewItem - The HTML element to which class names will be added.
|
|
146
|
-
* @param {boolean} isInViewStack - Indicates if the view item is in the view stack.
|
|
147
|
-
* @param {boolean} isActive - Indicates if the view item is active.
|
|
148
|
-
* @param {boolean} isBeingRecycledOut - Indicates if the view item is being recycled out.
|
|
149
|
-
* @param {boolean} isBeingRecycledIn - Indicates if the view item is being recycled in.
|
|
150
|
-
* @returns {void}
|
|
151
|
-
*/
|
|
152
|
-
const attachClassNames = (viewItem, isInViewStack, isActive, isBeingRecycledOut, isBeingRecycledIn) => {
|
|
153
|
-
viewItem.classList.add(`${prefix}__view`);
|
|
154
|
-
viewItem.classList.toggle(`${prefix}__view-in-stack`, isInViewStack && !isActive);
|
|
155
|
-
viewItem.classList.toggle(`${prefix}__view-active`, isInViewStack && isActive);
|
|
156
|
-
if (isBeingRecycledIn && !isBeingRecycledOut) {
|
|
157
|
-
viewItem.classList.add(`${prefix}__view-recycle-in`);
|
|
158
|
-
}
|
|
159
|
-
if (!isBeingRecycledIn && isBeingRecycledOut) {
|
|
160
|
-
viewItem.classList.add(`${prefix}__view-recycle-out`);
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
const removeReCycleClasses = (viewItem) => {
|
|
164
|
-
viewItem.classList.remove(`${prefix}__view-recycle-in`, `${prefix}__view-recycle-out`);
|
|
165
|
-
};
|
|
166
|
-
const remToPx = (rem) => {
|
|
167
|
-
return (rem * parseFloat(getComputedStyle(document.documentElement).fontSize));
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Updates the height of the items wrapper in a carousel based on the smallest item height and a threshold height.
|
|
171
|
-
* This function ensures that the items wrapper does not have a height smaller than the threshold, adjusting the item height if necessary.
|
|
172
|
-
*
|
|
173
|
-
* @param {number} itemHeightSmallest - The smallest height of an item in pixels.
|
|
174
|
-
*/
|
|
175
|
-
const updateHeightForWrapper = (itemHeightSmallest) => {
|
|
176
|
-
const thresholdHeight = remToPx(minHeight);
|
|
177
|
-
const containerHeight = carouselContainer.clientHeight;
|
|
178
|
-
if (containerHeight < thresholdHeight) {
|
|
179
|
-
if (itemHeightSmallest < thresholdHeight) {
|
|
180
|
-
itemHeightSmallest = thresholdHeight;
|
|
181
|
-
}
|
|
182
|
-
const itemsWrapper = carouselContainer.querySelector(`.${prefix}__itemsWrapper`);
|
|
183
|
-
if (itemsWrapper) {
|
|
184
|
-
itemsWrapper.style.blockSize = `${itemHeightSmallest}px`;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* Performs animation on view items based on their state in the view index stack.
|
|
190
|
-
* @param {boolean} isInitial - A flag indicating if this is the initial animation.
|
|
191
|
-
*/
|
|
192
|
-
const performAnimation = (isInitial) => {
|
|
193
|
-
let itemHeightSmallest = 0;
|
|
194
|
-
Array.from(viewItems).forEach((viewItem, index) => {
|
|
195
|
-
const stackIndex = viewIndexStack.findIndex((idx) => idx === index);
|
|
196
|
-
const stackIndexInstanceCount = previousViewIndexStack.filter((viIdx) => viIdx === index).length;
|
|
197
|
-
const isBeingRecycledOut = previousViewIndexStack.length > viewIndexStack.length &&
|
|
198
|
-
previousViewIndexStack[0] === index &&
|
|
199
|
-
stackIndexInstanceCount > 0;
|
|
200
|
-
const isBeingRecycledIn = previousViewIndexStack.length < viewIndexStack.length &&
|
|
201
|
-
viewIndexStack[0] === index &&
|
|
202
|
-
stackIndexInstanceCount > 0;
|
|
203
|
-
const isInViewStack = stackIndex > -1;
|
|
204
|
-
const isActive = index === viewIndexStack[0];
|
|
205
|
-
attachClassNames(viewItem, isInViewStack, isActive, isBeingRecycledOut, isBeingRecycledIn);
|
|
206
|
-
if (isInitial) {
|
|
207
|
-
registerRef(index, viewItem);
|
|
208
|
-
setTimeout(() => {
|
|
209
|
-
if (!itemHeightSmallest ||
|
|
210
|
-
(viewItem.offsetHeight < itemHeightSmallest &&
|
|
211
|
-
itemHeightSmallest > remToPx(minHeight))) {
|
|
212
|
-
itemHeightSmallest = viewItem.offsetHeight;
|
|
213
|
-
}
|
|
214
|
-
viewItem.style.position = 'absolute';
|
|
215
|
-
updateHeightForWrapper(itemHeightSmallest);
|
|
216
|
-
});
|
|
217
|
-
const listener = (e) => {
|
|
218
|
-
removeReCycleClasses(viewItem);
|
|
219
|
-
if (e.target === refs[viewIndexStack[0]]) {
|
|
220
|
-
//transitionend will trigger twice for pervious card and current card
|
|
221
|
-
transitionComplete(viewItem);
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
// store reference on the element for later removal
|
|
225
|
-
viewItem._carouselListener = listener;
|
|
226
|
-
viewItem.addEventListener('animationend', listener);
|
|
227
|
-
viewItem.addEventListener('transitionend', listener);
|
|
228
|
-
viewItem.setAttribute('data-index', index.toString());
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
if (isInitial) {
|
|
232
|
-
handleTransitionEnd(Array.from(viewItems)[0]);
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
/**
|
|
236
|
-
* A utility function to navigate to the next view in the stack.
|
|
237
|
-
* This function increments the current view index and transitions to the new index.
|
|
238
|
-
*
|
|
239
|
-
* @returns {void} - This function does not return any value.
|
|
240
|
-
*/
|
|
241
|
-
const navigateNext = () => {
|
|
242
|
-
const targetViewIndex = viewIndexStack[0] + 1;
|
|
243
|
-
transitionToViewIndex(targetViewIndex);
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* Navigates to the previous view in the view stack.
|
|
247
|
-
* @function navigatePrev
|
|
248
|
-
* @description This function checks if there is a previous view in the stack. If so, it triggers a transition start, removes the current view from the stack, and performs an animation to transition to the previous view.
|
|
249
|
-
* @returns {void} - This function does not return a value.
|
|
250
|
-
*/
|
|
251
|
-
const navigatePrev = () => {
|
|
252
|
-
if (viewIndexStack.length - 1 >= 1) {
|
|
253
|
-
handleTransitionStart();
|
|
254
|
-
viewIndexStack = viewIndexStack.slice(1);
|
|
255
|
-
performAnimation(false);
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* A function that transitions the view to a specified index.
|
|
260
|
-
*
|
|
261
|
-
* @param {number} index - The index to transition to.
|
|
262
|
-
* @returns {void} - This function does not return a value.
|
|
263
|
-
*/
|
|
264
|
-
const goToIndex = (index) => {
|
|
265
|
-
transitionToViewIndex(index);
|
|
266
|
-
};
|
|
267
|
-
/**
|
|
268
|
-
* Retrieves the currently active item and its index from the view index stack and references.
|
|
269
|
-
* @returns An object containing the index and the corresponding item reference.
|
|
270
|
-
*/
|
|
271
|
-
const getActiveItem = () => {
|
|
272
|
-
return {
|
|
273
|
-
index: viewIndexStack[0],
|
|
274
|
-
item: refs[viewIndexStack[0]],
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* Resets the view index stack and performs an animation.
|
|
279
|
-
*
|
|
280
|
-
* @returns {void}
|
|
281
|
-
*/
|
|
282
|
-
const reset = () => {
|
|
283
|
-
viewIndexStack = [0];
|
|
284
|
-
performAnimation(false);
|
|
285
|
-
};
|
|
286
|
-
/**
|
|
287
|
-
* Removes event listeners for 'animationend' and 'transitionend' events from all elements with references stored in the `refs` object.
|
|
288
|
-
* Also registers swipe events if `excludeSwipeSupport` is false.
|
|
289
|
-
*/
|
|
290
|
-
const destroyEvents = () => {
|
|
291
|
-
Object.values(refs).forEach((el) => {
|
|
292
|
-
if (el && el._carouselListener) {
|
|
293
|
-
el.removeEventListener('animationend', el._carouselListener);
|
|
294
|
-
el.removeEventListener('transitionend', el._carouselListener);
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
if (!excludeSwipeSupport) {
|
|
298
|
-
registerSwipeEvents(carouselContainer, navigateNext, navigatePrev, true);
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
/**
|
|
302
|
-
* Retrieves carousel items from a given container element.
|
|
303
|
-
* If the container has a 'slot' element, it fetches all elements assigned to that slot.
|
|
304
|
-
* Otherwise, it fetches all direct children of the container.
|
|
305
|
-
*
|
|
306
|
-
* @param {HTMLElement} container - The container element from which to extract carousel items.
|
|
307
|
-
* @returns {HTMLElement[]} An array of HTMLElements representing the carousel items.
|
|
308
|
-
*
|
|
309
|
-
* @example
|
|
310
|
-
* const carouselContainer = document.querySelector('.carousel-container');
|
|
311
|
-
* const carouselItems = getCarouselItems(carouselContainer);
|
|
312
|
-
* console.log(carouselItems); // Logs the carousel items as HTMLElements
|
|
313
|
-
*/
|
|
314
|
-
const getCarouselItems = (container) => {
|
|
315
|
-
const slot = container.querySelector('slot');
|
|
316
|
-
return slot
|
|
317
|
-
? slot.assignedElements({ flatten: true })
|
|
318
|
-
: Array.from(container.children);
|
|
319
|
-
};
|
|
320
|
-
// initialize
|
|
321
|
-
wrapAllItems(carouselContainer, `${prefix}__itemsWrapper`);
|
|
322
|
-
const wrapper = carouselContainer.querySelector(`.${prefix}__itemsWrapper`);
|
|
323
|
-
const viewItems = getCarouselItems(wrapper);
|
|
324
|
-
carouselContainer.classList.add(`${prefix}__view-stack`);
|
|
325
|
-
performAnimation(true);
|
|
326
|
-
if (!excludeSwipeSupport) {
|
|
327
|
-
registerSwipeEvents(carouselContainer, navigateNext, navigatePrev, false);
|
|
328
|
-
}
|
|
329
|
-
return {
|
|
330
|
-
next: navigateNext,
|
|
331
|
-
prev: navigatePrev,
|
|
332
|
-
reset,
|
|
333
|
-
goToIndex,
|
|
334
|
-
getActiveItem,
|
|
335
|
-
destroyEvents,
|
|
336
|
-
allViews: refs,
|
|
337
|
-
};
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
export { initCarousel };
|
|
341
|
-
//# sourceMappingURL=carousel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.js","sources":["../../../src/utilities/carousel/carousel.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;;;AAKG;AAUH;;;;;AAKG;MACU,YAAY,GAAG,CAC1B,iBAA8B,EAC9B,MAAe,KACC;IAChB,MAAM,MAAM,GAAG,UAAU;AACzB,IAAA,I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QACL,SAAS;QACT,aAAa;QACb,aAAa;AACb,QAAA,QAAQ,EAAE,IAAI;KACf;AACH;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
export declare const registerSwipeEvents: (carousel: HTMLElement, next: () => void, prev: () => void, destroy: boolean) => void;
|
|
@@ -1,109 +0,0 @@
|
|
|
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
|
-
/**
|
|
9
|
-
* Copyright IBM Corp. 2025
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
const registerSwipeEvents = (carousel, next, prev, destroy) => {
|
|
15
|
-
const minSwipeDistance = 50;
|
|
16
|
-
// Touch support
|
|
17
|
-
let touchStartX = null;
|
|
18
|
-
let touchEndX = null;
|
|
19
|
-
let lastScrollTime = 0;
|
|
20
|
-
const scrollCoolDown = 400;
|
|
21
|
-
let isMouseDown = false;
|
|
22
|
-
let mouseStartX = null;
|
|
23
|
-
let mouseEndX = null;
|
|
24
|
-
//handlers
|
|
25
|
-
const touchStartHandler = (e) => {
|
|
26
|
-
touchStartX = e.touches[0].clientX;
|
|
27
|
-
};
|
|
28
|
-
const touchMoveHandler = (e) => {
|
|
29
|
-
touchEndX = e.touches[0].clientX;
|
|
30
|
-
};
|
|
31
|
-
const touchEndHandler = () => {
|
|
32
|
-
if (touchStartX !== null && touchEndX !== null) {
|
|
33
|
-
const distance = touchStartX - touchEndX;
|
|
34
|
-
if (Math.abs(distance) > minSwipeDistance) {
|
|
35
|
-
if (distance > 0) {
|
|
36
|
-
next();
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
prev();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
touchStartX = null;
|
|
44
|
-
touchEndX = null;
|
|
45
|
-
};
|
|
46
|
-
const mouseDownHandler = (e) => {
|
|
47
|
-
isMouseDown = true;
|
|
48
|
-
mouseStartX = e.clientX;
|
|
49
|
-
};
|
|
50
|
-
const mouseMoveHandler = (e) => {
|
|
51
|
-
if (!isMouseDown) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
mouseEndX = e.clientX;
|
|
55
|
-
};
|
|
56
|
-
const mouseUpHandler = () => {
|
|
57
|
-
if (isMouseDown && mouseStartX !== null && mouseEndX !== null) {
|
|
58
|
-
const distance = mouseStartX - mouseEndX;
|
|
59
|
-
if (Math.abs(distance) > minSwipeDistance) {
|
|
60
|
-
if (distance > 0) {
|
|
61
|
-
next();
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
prev();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
isMouseDown = false;
|
|
69
|
-
mouseStartX = null;
|
|
70
|
-
mouseEndX = null;
|
|
71
|
-
};
|
|
72
|
-
const wheelHandler = (e) => {
|
|
73
|
-
const now = Date.now();
|
|
74
|
-
if (Math.abs(e.deltaX) > Math.abs(e.deltaY) && Math.abs(e.deltaX) > 20) {
|
|
75
|
-
e.preventDefault(); // Prevent page from scrolling
|
|
76
|
-
if (now - lastScrollTime < scrollCoolDown) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
if (e.deltaX > 0) {
|
|
80
|
-
next();
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
prev();
|
|
84
|
-
}
|
|
85
|
-
lastScrollTime = now;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
if (destroy) {
|
|
89
|
-
carousel.removeEventListener('touchstart', touchStartHandler);
|
|
90
|
-
carousel.removeEventListener('touchmove', touchMoveHandler);
|
|
91
|
-
carousel.removeEventListener('touchend', touchEndHandler);
|
|
92
|
-
carousel.removeEventListener('mousedown', mouseDownHandler);
|
|
93
|
-
carousel.removeEventListener('mousemove', mouseMoveHandler);
|
|
94
|
-
carousel.removeEventListener('mouseup', mouseUpHandler);
|
|
95
|
-
carousel.removeEventListener('wheel', wheelHandler);
|
|
96
|
-
}
|
|
97
|
-
carousel.addEventListener('touchstart', touchStartHandler);
|
|
98
|
-
carousel.addEventListener('touchmove', touchMoveHandler);
|
|
99
|
-
carousel.addEventListener('touchend', touchEndHandler);
|
|
100
|
-
// Mouse drag support
|
|
101
|
-
carousel.addEventListener('mousedown', mouseDownHandler);
|
|
102
|
-
carousel.addEventListener('mousemove', mouseMoveHandler);
|
|
103
|
-
carousel.addEventListener('mouseup', mouseUpHandler);
|
|
104
|
-
// Wheel gesture support
|
|
105
|
-
carousel.addEventListener('wheel', wheelHandler);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export { registerSwipeEvents };
|
|
109
|
-
//# sourceMappingURL=swipeEvents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"swipeEvents.js","sources":["../../../src/utilities/carousel/swipeEvents.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;AAKG;AACI,MAAM,mBAAmB,GAAG,CACjC,QAAqB,EACrB,IAAgB,EAChB,IAAgB,EAChB,OAAgB,KACd;IACF,MAAM,gBAAgB,GAAG,EAAE;;IAG3B,IAAI,WAAW,GAAkB,IAAI;IACrC,IAAI,SAAS,GAAkB,IAAI;IAEnC,IAAI,cAAc,GAAG,CAAC;IACtB,MAAM,cAAc,GAAG,GAAG;IAE1B,IAAI,W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AC,YAAY,EAAE,iBAAiB,CAAC;AAE1D,IAAA,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC;AAExD,IAAA,QAAQ,CAAC,gBAAgB,CAAC,UAAU,EAAE,eAAe,CAAC;;AAItD,IAAA,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC;AAExD,IAAA,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC;AAExD,IAAA,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC;;AAIpD,IAAA,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,YAAY,CAAC;AAClD;;;;"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
interface CarouselStackHistory {
|
|
10
|
-
id: number;
|
|
11
|
-
elem: HTMLLIElement;
|
|
12
|
-
}
|
|
13
|
-
type CarouselResponse = {
|
|
14
|
-
currentIndex: number;
|
|
15
|
-
lastIndex: number;
|
|
16
|
-
totalViews: number;
|
|
17
|
-
historyStack: CarouselStackHistory[];
|
|
18
|
-
};
|
|
19
|
-
type ActiveItem = {
|
|
20
|
-
index: number;
|
|
21
|
-
item: HTMLElement | null;
|
|
22
|
-
};
|
|
23
|
-
export type Config = {
|
|
24
|
-
onViewChangeStart?: (args: CarouselResponse) => void;
|
|
25
|
-
onViewChangeEnd?: (args: CarouselResponse) => void;
|
|
26
|
-
excludeSwipeSupport?: boolean;
|
|
27
|
-
};
|
|
28
|
-
interface InitCarousel {
|
|
29
|
-
next: () => void;
|
|
30
|
-
prev: () => void;
|
|
31
|
-
reset: () => void;
|
|
32
|
-
goToIndex: (index: number) => void;
|
|
33
|
-
getActiveItem: () => ActiveItem;
|
|
34
|
-
destroyEvents: (() => void) | null;
|
|
35
|
-
allViews: Record<number, HTMLElement | null>;
|
|
36
|
-
}
|
|
37
|
-
export type { CarouselStackHistory, CarouselResponse, InitCarousel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
export declare const registerFocusableContainers: (container: any) => void;
|
|
10
|
-
export declare const clearFocusableContainers: () => void;
|
|
11
|
-
export declare const trapFocus: (containers?: HTMLElement[]) => {
|
|
12
|
-
cleanup: () => void;
|
|
13
|
-
};
|