@vonage/vivid 3.0.0-next.7 → 3.0.0-test.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/accordion/index.js +61 -0
- package/accordion-item/index.js +125 -0
- package/badge/index.js +64 -0
- package/banner/index.js +212 -0
- package/breadcrumb/index.js +100 -0
- package/breadcrumb-item/index.js +55 -0
- package/button/index.js +761 -0
- package/calendar/index.js +1521 -0
- package/elevation/index.js +31 -0
- package/focus/index.js +3 -0
- package/icon/index.js +34 -0
- package/{src/index.ts → index.d.ts} +2 -2
- package/index.js +32 -0
- package/layout/index.js +53 -0
- package/lib/accordion/accordion.d.ts +9 -0
- package/lib/accordion/accordion.template.d.ts +4 -0
- package/lib/accordion/index.d.ts +2 -0
- package/lib/accordion-item/accordion-item.d.ts +13 -0
- package/lib/accordion-item/accordion-item.template.d.ts +4 -0
- package/lib/accordion-item/index.d.ts +3 -0
- package/lib/badge/badge.d.ts +17 -0
- package/lib/badge/badge.template.d.ts +4 -0
- package/lib/badge/index.d.ts +3 -0
- package/lib/banner/banner.d.ts +20 -0
- package/lib/banner/banner.template.d.ts +6 -0
- package/lib/banner/index.d.ts +2 -0
- package/lib/breadcrumb/breadcrumb.d.ts +3 -0
- package/lib/breadcrumb/index.d.ts +2 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -0
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +4 -0
- package/lib/breadcrumb-item/index.d.ts +3 -0
- package/lib/button/button.d.ts +17 -0
- package/lib/button/button.template.d.ts +4 -0
- package/lib/button/index.d.ts +21 -0
- package/lib/calendar/calendar.d.ts +11 -0
- package/lib/calendar/calendar.template.d.ts +4 -0
- package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
- package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
- package/lib/calendar/index.d.ts +3 -0
- package/{src/lib/components.ts → lib/components.d.ts} +16 -16
- package/lib/elevation/elevation.d.ts +4 -0
- package/lib/elevation/elevation.template.d.ts +4 -0
- package/lib/elevation/index.d.ts +2 -0
- package/lib/enums.d.ts +45 -0
- package/lib/focus/focus.d.ts +3 -0
- package/lib/focus/focus.template.d.ts +4 -0
- package/lib/focus/index.d.ts +2 -0
- package/lib/icon/icon.d.ts +11 -0
- package/lib/icon/icon.placeholder.d.ts +1 -0
- package/lib/icon/icon.template.d.ts +4 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/layout/index.d.ts +2 -0
- package/lib/layout/layout.d.ts +16 -0
- package/lib/layout/layout.template.d.ts +4 -0
- package/lib/popup/index.d.ts +4 -0
- package/lib/popup/popup.d.ts +17 -0
- package/lib/popup/popup.template.d.ts +4 -0
- package/lib/progress/index.d.ts +2 -0
- package/lib/progress/progress.d.ts +9 -0
- package/lib/progress/progress.template.d.ts +5 -0
- package/lib/progress-ring/index.d.ts +2 -0
- package/lib/progress-ring/progress-ring.d.ts +6 -0
- package/lib/progress-ring/progress-ring.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +2 -0
- package/lib/side-drawer/side-drawer.d.ts +8 -0
- package/lib/side-drawer/side-drawer.template.d.ts +4 -0
- package/lib/sidenav-item/index.d.ts +3 -0
- package/lib/sidenav-item/sidenav-item.d.ts +6 -0
- package/lib/sidenav-item/sidenav-item.template.d.ts +4 -0
- package/lib/text/index.d.ts +2 -0
- package/lib/text/text.d.ts +10 -0
- package/lib/text/text.template.d.ts +4 -0
- package/lib/text-anchor/index.d.ts +2 -0
- package/lib/text-anchor/text-anchor.d.ts +7 -0
- package/lib/text-anchor/text-anchor.template.d.ts +4 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/tooltip/tooltip.d.ts +8 -0
- package/lib/tooltip/tooltip.template.d.ts +4 -0
- package/package.json +13 -3
- package/popup/index.js +2065 -0
- package/progress/index.js +98 -0
- package/progress-ring/index.js +76 -0
- package/shared/_has.js +58 -0
- package/shared/affix.js +29 -0
- package/shared/anchor.js +78 -0
- package/shared/apply-mixins.js +22 -0
- package/shared/aria-global.js +156 -0
- package/shared/base-progress.js +65 -0
- package/shared/breadcrumb-item.js +25 -0
- package/shared/class-names.js +15 -0
- package/shared/design-system/index.d.ts +3 -0
- package/shared/es.object.assign.js +68 -0
- package/shared/icon.js +1393 -0
- package/shared/index.js +4998 -0
- package/shared/index2.js +21 -0
- package/shared/patterns/affix.d.ts +9 -0
- package/{src/shared/patterns/index.ts → shared/patterns/index.d.ts} +1 -1
- package/shared/slotted.js +119 -0
- package/shared/style-inject.es.js +28 -0
- package/shared/text-anchor.js +21 -0
- package/shared/text-anchor.template.js +54 -0
- package/shared/web.dom-collections.iterator.js +1479 -0
- package/shared/when.js +15 -0
- package/side-drawer/index.js +81 -0
- package/sidenav-item/index.js +38 -0
- package/styles/fonts/spezia.css +23 -0
- package/styles/themes/dark.css +205 -0
- package/styles/themes/light.css +205 -0
- package/text/index.js +45 -0
- package/text-anchor/index.js +19 -0
- package/tooltip/index.js +65 -0
- package/.babelrc +0 -3
- package/.eslintrc.json +0 -70
- package/.stylelintrc.json +0 -8
- package/CHANGELOG.json +0 -343
- package/CHANGELOG.md +0 -45
- package/jest.config.cjs +0 -20
- package/playwright.config.dev.ts +0 -21
- package/playwright.config.ts +0 -34
- package/project.json +0 -122
- package/rollup.config.prod.ts +0 -50
- package/setupJestTests.js +0 -17
- package/src/lib/accordion/README.md +0 -55
- package/src/lib/accordion/accordion.scss +0 -10
- package/src/lib/accordion/accordion.spec.ts +0 -91
- package/src/lib/accordion/accordion.template.ts +0 -23
- package/src/lib/accordion/accordion.ts +0 -49
- package/src/lib/accordion/index.ts +0 -14
- package/src/lib/accordion/ui.test.ts +0 -37
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Chrome-Stable-darwin.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Chrome-Stable-linux.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Firefox-linux.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Safari-darwin.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Safari-linux.png +0 -0
- package/src/lib/accordion-item/README.md +0 -113
- package/src/lib/accordion-item/accordion-item.scss +0 -91
- package/src/lib/accordion-item/accordion-item.spec.ts +0 -103
- package/src/lib/accordion-item/accordion-item.template.ts +0 -62
- package/src/lib/accordion-item/accordion-item.ts +0 -67
- package/src/lib/accordion-item/index.ts +0 -14
- package/src/lib/accordion-item/partials/variables.scss +0 -1
- package/src/lib/accordion-item/ui.test.ts +0 -37
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Chrome-Stable-darwin.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Chrome-Stable-linux.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Firefox-linux.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Safari-darwin.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Safari-linux.png +0 -0
- package/src/lib/badge/README.md +0 -112
- package/src/lib/badge/badge.scss +0 -64
- package/src/lib/badge/badge.spec.ts +0 -114
- package/src/lib/badge/badge.template.ts +0 -36
- package/src/lib/badge/badge.ts +0 -97
- package/src/lib/badge/index.ts +0 -23
- package/src/lib/badge/ui.test.ts +0 -28
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Chrome-Stable-darwin.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Chrome-Stable-linux.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Firefox-linux.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Safari-darwin.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Safari-linux.png +0 -0
- package/src/lib/banner/README.md +0 -117
- package/src/lib/banner/banner.scss +0 -71
- package/src/lib/banner/banner.spec.ts +0 -355
- package/src/lib/banner/banner.template.ts +0 -61
- package/src/lib/banner/banner.ts +0 -77
- package/src/lib/banner/index.ts +0 -14
- package/src/lib/banner/ui.test.ts +0 -64
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Chrome-Stable-darwin.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Chrome-Stable-linux.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Firefox-linux.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Safari-darwin.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Safari-linux.png +0 -0
- package/src/lib/breadcrumb/README.md +0 -25
- package/src/lib/breadcrumb/breadcrumb.scss +0 -3
- package/src/lib/breadcrumb/breadcrumb.spec.ts +0 -78
- package/src/lib/breadcrumb/breadcrumb.ts +0 -10
- package/src/lib/breadcrumb/index.ts +0 -13
- package/src/lib/breadcrumb/ui.test.ts +0 -36
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Chrome-Stable-darwin.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Chrome-Stable-linux.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Firefox-linux.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Safari-darwin.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Safari-linux.png +0 -0
- package/src/lib/breadcrumb-item/README.md +0 -40
- package/src/lib/breadcrumb-item/breadcrumb-item.scss +0 -28
- package/src/lib/breadcrumb-item/breadcrumb-item.spec.ts +0 -192
- package/src/lib/breadcrumb-item/breadcrumb-item.template.ts +0 -37
- package/src/lib/breadcrumb-item/breadcrumb-item.ts +0 -15
- package/src/lib/breadcrumb-item/index.ts +0 -16
- package/src/lib/breadcrumb-item/ui.test.ts +0 -38
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Chrome-Stable-darwin.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Chrome-Stable-linux.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Firefox-linux.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Safari-darwin.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Safari-linux.png +0 -0
- package/src/lib/button/README.md +0 -120
- package/src/lib/button/button.scss +0 -142
- package/src/lib/button/button.spec.ts +0 -131
- package/src/lib/button/button.template.ts +0 -89
- package/src/lib/button/button.ts +0 -95
- package/src/lib/button/index.ts +0 -25
- package/src/lib/button/partials/variables.scss +0 -2
- package/src/lib/button/ui.test.ts +0 -32
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Chrome-Stable-darwin.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Chrome-Stable-linux.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Firefox-linux.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Safari-darwin.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Safari-linux.png +0 -0
- package/src/lib/calendar/README.md +0 -70
- package/src/lib/calendar/calendar.scss +0 -176
- package/src/lib/calendar/calendar.spec.ts +0 -341
- package/src/lib/calendar/calendar.template.ts +0 -93
- package/src/lib/calendar/calendar.ts +0 -139
- package/src/lib/calendar/helpers/calendar.date-functions.ts +0 -31
- package/src/lib/calendar/helpers/calendar.event-context.ts +0 -72
- package/src/lib/calendar/helpers/calendar.keyboard-interactions.ts +0 -65
- package/src/lib/calendar/index.ts +0 -16
- package/src/lib/calendar/partials/_variables.scss +0 -15
- package/src/lib/calendar/ui.test.ts +0 -32
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Chrome-Stable-darwin.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Chrome-Stable-linux.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Firefox-linux.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Safari-darwin.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Safari-linux.png +0 -0
- package/src/lib/components.spec.ts +0 -7
- package/src/lib/elevation/README.md +0 -99
- package/src/lib/elevation/elevation.scss +0 -15
- package/src/lib/elevation/elevation.spec.ts +0 -55
- package/src/lib/elevation/elevation.template.ts +0 -26
- package/src/lib/elevation/elevation.ts +0 -17
- package/src/lib/elevation/index.ts +0 -17
- package/src/lib/elevation/partials/_elevation.mixin.scss +0 -4
- package/src/lib/elevation/ui.test.ts +0 -32
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Chrome-Stable-darwin.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Chrome-Stable-linux.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Firefox-linux.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Safari-darwin.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Safari-linux.png +0 -0
- package/src/lib/enums.ts +0 -55
- package/src/lib/focus/README.md +0 -1
- package/src/lib/focus/focus.scss +0 -17
- package/src/lib/focus/focus.template.ts +0 -16
- package/src/lib/focus/focus.ts +0 -10
- package/src/lib/focus/index.ts +0 -21
- package/src/lib/focus/partials/variables.scss +0 -2
- package/src/lib/icon/README.md +0 -70
- package/src/lib/icon/__snapshots__/icon.spec.ts.snap +0 -16
- package/src/lib/icon/icon.placeholder.ts +0 -12
- package/src/lib/icon/icon.scss +0 -52
- package/src/lib/icon/icon.spec.ts +0 -106
- package/src/lib/icon/icon.template.ts +0 -23
- package/src/lib/icon/icon.ts +0 -93
- package/src/lib/icon/index.ts +0 -14
- package/src/lib/layout/README.md +0 -154
- package/src/lib/layout/index.ts +0 -18
- package/src/lib/layout/layout.scss +0 -40
- package/src/lib/layout/layout.spec.ts +0 -73
- package/src/lib/layout/layout.template.ts +0 -29
- package/src/lib/layout/layout.ts +0 -46
- package/src/lib/layout/partials/_functions.scss +0 -15
- package/src/lib/layout/partials/_mixins.scss +0 -5
- package/src/lib/layout/partials/_variables.scss +0 -23
- package/src/lib/layout/ui.test.ts +0 -32
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Chrome-Stable-darwin.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Chrome-Stable-linux.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Firefox-linux.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Safari-darwin.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Safari-linux.png +0 -0
- package/src/lib/popup/README.md +0 -261
- package/src/lib/popup/index.ts +0 -21
- package/src/lib/popup/popup.scss +0 -43
- package/src/lib/popup/popup.spec.ts +0 -265
- package/src/lib/popup/popup.template.ts +0 -41
- package/src/lib/popup/popup.ts +0 -158
- package/src/lib/popup/ui.test.ts +0 -111
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Chrome-Stable-darwin.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Chrome-Stable-linux.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Firefox-linux.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Safari-darwin.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Safari-linux.png +0 -0
- package/src/lib/progress/README.md +0 -107
- package/src/lib/progress/index.ts +0 -14
- package/src/lib/progress/progress.scss +0 -133
- package/src/lib/progress/progress.spec.ts +0 -173
- package/src/lib/progress/progress.template.ts +0 -62
- package/src/lib/progress/progress.ts +0 -25
- package/src/lib/progress/ui.test.ts +0 -70
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Chrome-Stable-darwin.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Chrome-Stable-linux.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Firefox-linux.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Safari-darwin.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Safari-linux.png +0 -0
- package/src/lib/progress-ring/README.md +0 -90
- package/src/lib/progress-ring/index.ts +0 -15
- package/src/lib/progress-ring/progress-ring.scss +0 -75
- package/src/lib/progress-ring/progress-ring.spec.ts +0 -139
- package/src/lib/progress-ring/progress-ring.template.ts +0 -82
- package/src/lib/progress-ring/progress-ring.ts +0 -18
- package/src/lib/progress-ring/ui.test.ts +0 -35
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Chrome-Stable-darwin.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Chrome-Stable-linux.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Firefox-linux.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Safari-darwin.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Safari-linux.png +0 -0
- package/src/lib/side-drawer/README.md +0 -304
- package/src/lib/side-drawer/index.ts +0 -16
- package/src/lib/side-drawer/partials/variables.scss +0 -6
- package/src/lib/side-drawer/side-drawer.scss +0 -109
- package/src/lib/side-drawer/side-drawer.spec.ts +0 -118
- package/src/lib/side-drawer/side-drawer.template.ts +0 -51
- package/src/lib/side-drawer/side-drawer.ts +0 -58
- package/src/lib/side-drawer/ui.test.ts +0 -102
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Chrome-Stable-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Chrome-Stable-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Firefox-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Safari-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Safari-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Chrome-Stable-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Chrome-Stable-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Firefox-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Safari-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Safari-linux.png +0 -0
- package/src/lib/sidenav-item/README.md +0 -41
- package/src/lib/sidenav-item/index.ts +0 -20
- package/src/lib/sidenav-item/sidenav-item.scss +0 -51
- package/src/lib/sidenav-item/sidenav-item.spec.ts +0 -64
- package/src/lib/sidenav-item/sidenav-item.template.ts +0 -25
- package/src/lib/sidenav-item/sidenav-item.ts +0 -15
- package/src/lib/sidenav-item/ui.test.ts +0 -32
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Chrome-Stable-darwin.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Chrome-Stable-linux.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Firefox-linux.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Safari-darwin.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Safari-linux.png +0 -0
- package/src/lib/text/README.md +0 -119
- package/src/lib/text/index.ts +0 -14
- package/src/lib/text/text.scss +0 -92
- package/src/lib/text/text.spec.ts +0 -54
- package/src/lib/text/text.template.ts +0 -28
- package/src/lib/text/text.ts +0 -55
- package/src/lib/text/ui.test.ts +0 -39
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Chrome-Stable-darwin.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Chrome-Stable-linux.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Firefox-linux.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Safari-darwin.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Safari-linux.png +0 -0
- package/src/lib/text-anchor/README.md +0 -5
- package/src/lib/text-anchor/index.ts +0 -12
- package/src/lib/text-anchor/text-anchor.spec.ts +0 -153
- package/src/lib/text-anchor/text-anchor.template.ts +0 -66
- package/src/lib/text-anchor/text-anchor.ts +0 -22
- package/src/lib/tooltip/README.md +0 -132
- package/src/lib/tooltip/index.ts +0 -16
- package/src/lib/tooltip/partials/variables.scss +0 -1
- package/src/lib/tooltip/tooltip.scss +0 -18
- package/src/lib/tooltip/tooltip.spec.ts +0 -70
- package/src/lib/tooltip/tooltip.template.ts +0 -30
- package/src/lib/tooltip/tooltip.ts +0 -44
- package/src/lib/tooltip/ui.test.ts +0 -53
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Chrome-Stable-darwin.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Chrome-Stable-linux.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Firefox-linux.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Safari-darwin.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Safari-linux.png +0 -0
- package/src/shared/design-system/index.ts +0 -12
- package/src/shared/patterns/affix.ts +0 -56
- package/src/types/extract-gfm.d.ts +0 -5
- package/src/types/style.d.ts +0 -4
- package/src/visual-tests/visual-tests-utils.ts +0 -76
- package/tsconfig.json +0 -36
- package/tsconfig.lib.json +0 -11
- package/tsconfig.spec.json +0 -16
package/src/lib/badge/badge.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { applyMixins, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
import { attr } from '@microsoft/fast-element';
|
|
3
|
-
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
4
|
-
|
|
5
|
-
import type {
|
|
6
|
-
Appearance, Connotation, Shape, Size,
|
|
7
|
-
} from '../enums.js';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Types of badge connotation.
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
type BadgeConnotation = Extract<Connotation,
|
|
15
|
-
| Connotation.Primary
|
|
16
|
-
| Connotation.CTA
|
|
17
|
-
| Connotation.Success
|
|
18
|
-
| Connotation.Alert
|
|
19
|
-
| Connotation.Warning
|
|
20
|
-
| Connotation.Info>;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Types of badge appearance.
|
|
24
|
-
*
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
type BadgeAppearance = Extract<Appearance,
|
|
28
|
-
Appearance.Filled | Appearance.Outlined | Appearance.Subtle>;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Types of badge shape.
|
|
32
|
-
*
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
type BadgeShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Types of badge size.
|
|
39
|
-
*
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
|
-
type BadgeSize = Extract<Size, Size.BaseSmall | Size.Base | Size.BaseLarge>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Base class for badge
|
|
46
|
-
*
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
export class Badge extends FoundationElement {
|
|
50
|
-
/**
|
|
51
|
-
* The connotation the badge should have.
|
|
52
|
-
*
|
|
53
|
-
* @public
|
|
54
|
-
* @remarks
|
|
55
|
-
* HTML Attribute: connotation
|
|
56
|
-
*/
|
|
57
|
-
@attr connotation?: BadgeConnotation;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* The shape the badge should have.
|
|
61
|
-
*
|
|
62
|
-
* @public
|
|
63
|
-
* @remarks
|
|
64
|
-
* HTML Attribute: shape
|
|
65
|
-
*/
|
|
66
|
-
@attr shape?: BadgeShape;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* The appearance the badge should have.
|
|
70
|
-
*
|
|
71
|
-
* @public
|
|
72
|
-
* @remarks
|
|
73
|
-
* HTML Attribute: appearance
|
|
74
|
-
*/
|
|
75
|
-
@attr appearance?: BadgeAppearance;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* The size the badge should have.
|
|
79
|
-
*
|
|
80
|
-
* @public
|
|
81
|
-
* @remarks
|
|
82
|
-
* HTML Attribute: size
|
|
83
|
-
*/
|
|
84
|
-
@attr size?: BadgeSize;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Indicates the badge's text.
|
|
88
|
-
*
|
|
89
|
-
* @public
|
|
90
|
-
* @remarks
|
|
91
|
-
* HTML Attribute: text
|
|
92
|
-
*/
|
|
93
|
-
@attr({ mode: 'fromView' }) text = '';
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface Badge extends AffixIconWithTrailing {}
|
|
97
|
-
applyMixins(Badge, AffixIconWithTrailing);
|
package/src/lib/badge/index.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '../icon';
|
|
2
|
-
|
|
3
|
-
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
|
-
import { designSystem } from '../../shared/design-system';
|
|
5
|
-
import { Badge } from './badge';
|
|
6
|
-
import styles from './badge.scss';
|
|
7
|
-
import { badgeTemplate as template } from './badge.template';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Represents a badge custom element.
|
|
12
|
-
* badge is a label that holds small amounts of information.
|
|
13
|
-
* A badge can be used to display unread notifications, or to label a block of text.
|
|
14
|
-
* Badges don’t work for navigation because they can't include a hyperlink.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export const VIVIDBadge = Badge.compose<FoundationElementDefinition>({
|
|
18
|
-
baseName: 'badge',
|
|
19
|
-
template: template as any,
|
|
20
|
-
styles,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
designSystem.register(VIVIDBadge());
|
package/src/lib/badge/ui.test.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as path from 'path';
|
|
2
|
-
import { expect, test } from '@playwright/test';
|
|
3
|
-
import type { Page } from '@playwright/test';
|
|
4
|
-
import {extractHTMLBlocksFromReadme, loadComponents, loadTemplate} from '../../visual-tests/visual-tests-utils.ts';
|
|
5
|
-
|
|
6
|
-
const components = ['badge'];
|
|
7
|
-
test('should show the component', async ({ page }: { page: Page }) => {
|
|
8
|
-
const template = extractHTMLBlocksFromReadme(path.join(new URL('.', import.meta.url).pathname, 'README.md'))
|
|
9
|
-
.reduce((htmlString: string, block: string) => `${htmlString} <div style="margin: 5px;">${block}</div>`, '');
|
|
10
|
-
|
|
11
|
-
await loadComponents({
|
|
12
|
-
page,
|
|
13
|
-
components,
|
|
14
|
-
});
|
|
15
|
-
await loadTemplate({
|
|
16
|
-
page,
|
|
17
|
-
template,
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
const testWrapper = await page.$('#wrapper');
|
|
21
|
-
|
|
22
|
-
await page.waitForLoadState('networkidle');
|
|
23
|
-
|
|
24
|
-
expect(await testWrapper?.screenshot())
|
|
25
|
-
.toMatchSnapshot(
|
|
26
|
-
'./snapshots/badge.png',
|
|
27
|
-
);
|
|
28
|
-
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/lib/banner/README.md
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
# banner
|
|
2
|
-
|
|
3
|
-
Banners are meant to be used on top of pages, outside the main content.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
```js
|
|
7
|
-
<script type="module">import '@vonage/vivid/banner';</script>
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
```html preview
|
|
11
|
-
<vwc-banner text="Here's some information that you may find important!"></vwc-banner>
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Text
|
|
15
|
-
|
|
16
|
-
- Type: `string`
|
|
17
|
-
- Default: `''`
|
|
18
|
-
|
|
19
|
-
Use the `text` attribute to set the banner's text.
|
|
20
|
-
|
|
21
|
-
```html preview
|
|
22
|
-
<vwc-banner text="Here's some information that you may find important!"></vwc-banner>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Icon
|
|
26
|
-
|
|
27
|
-
- Type: `string`
|
|
28
|
-
- Default: `'info'`
|
|
29
|
-
|
|
30
|
-
The `icon` attribute will override the icon set by connotation.
|
|
31
|
-
|
|
32
|
-
```html preview
|
|
33
|
-
<vwc-banner text="Here's some information that you may find important!"
|
|
34
|
-
connotation="alert"
|
|
35
|
-
icon="home-line"></vwc-banner>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Connotation
|
|
39
|
-
|
|
40
|
-
The `connotation` attribute sets the colors according to the wanted connotation.
|
|
41
|
-
|
|
42
|
-
- Type: `'info'` | `'announcement'` | `'success'` | `'warning'` | `'alert'`
|
|
43
|
-
- Default: `'info'`
|
|
44
|
-
|
|
45
|
-
Note that icon, if not specifically set, defaults to a connotation-associated icon.
|
|
46
|
-
|
|
47
|
-
const infoMessage = "I'm here to give you advice (Like, use the controls for options)";
|
|
48
|
-
const announcementMessage = "I'm here to give you some info (Terms and Conditions changed... jk)";
|
|
49
|
-
const successMessage = "I'm here to give you good news (Thanks for giving us money!)";
|
|
50
|
-
const warningMessage = "I'm here to give you a warning (Your zip is down)";
|
|
51
|
-
const alertMessage = "I'm here to tell you something's wrong (The horror, the horror)";
|
|
52
|
-
|
|
53
|
-
```html preview
|
|
54
|
-
<style>
|
|
55
|
-
vwc-banner {
|
|
56
|
-
clear: both;
|
|
57
|
-
}
|
|
58
|
-
</style>
|
|
59
|
-
<vwc-banner text="Here's some information that you may find useful!" connotation="info"></vwc-banner>
|
|
60
|
-
<vwc-banner text="Here's some information that you may find important!" connotation="announcement"></vwc-banner>
|
|
61
|
-
<vwc-banner text="Operation Successful!" connotation="success"></vwc-banner>
|
|
62
|
-
<vwc-banner text="Heads up - this is a warning" connotation="warning"></vwc-banner>
|
|
63
|
-
<vwc-banner text="ALERT! Something went wrong!" connotation="alert"></vwc-banner>
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Removable
|
|
67
|
-
|
|
68
|
-
- Type: `boolean`
|
|
69
|
-
- Default: `false`
|
|
70
|
-
|
|
71
|
-
The `removable` attribute sets a remove button. On click it will remove the banner from the DOM.
|
|
72
|
-
|
|
73
|
-
```html preview
|
|
74
|
-
<vwc-banner text="Here's some information that you may find important!"
|
|
75
|
-
removable></vwc-banner>
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Action Items
|
|
79
|
-
|
|
80
|
-
You can add action items using slotted content in a named slot `actionItems`:
|
|
81
|
-
|
|
82
|
-
```html preview
|
|
83
|
-
<vwc-banner text="A banner with an action button">
|
|
84
|
-
<vwc-button slot="actionItems" appearance="filled" connotation="primary" label="Learn More"></vwc-button>
|
|
85
|
-
</vwc-banner>
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## Methods
|
|
89
|
-
|
|
90
|
-
### remove()
|
|
91
|
-
|
|
92
|
-
- Type: function
|
|
93
|
-
- Returns: void
|
|
94
|
-
|
|
95
|
-
Removes the banner from the DOM. Fires the `vwc-banner:removing` event and starts the remove animation. When the animation finishes, it emits the `vwc-banner:removed` event and removes the banner from the DOM completely. If you have a variable that refers to the banner element make sure to clear it otherwise it might cause a memory leak.
|
|
96
|
-
|
|
97
|
-
## Accessibility
|
|
98
|
-
|
|
99
|
-
The banner defaults its role to ‘status’ with a redundant aria-live attribute set to polite (to maximize compatibility when using this role). This indicates that the screen reader should wait until the user is idle before presenting updates to the user.
|
|
100
|
-
However, consumers can modify the above attributes (role and aria-live) to fit contextually. If the information is critical, by altering the banner's role to 'alert', assistive technologies will interrupt other processes and provide users with immediate notification.
|
|
101
|
-
|
|
102
|
-
1. The `role` attribute is set to `status` by default. This can be changed.
|
|
103
|
-
2. The `aria-live` attribute is set to `polite` by default. This can be changed.
|
|
104
|
-
3. The banner can be dismissed by hitting the `escape` key when it is in focus.
|
|
105
|
-
|
|
106
|
-
```html preview
|
|
107
|
-
<vwc-banner role="status"
|
|
108
|
-
aria-live="polite"
|
|
109
|
-
text="Here's some information that you may find important!"></vwc-banner>
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
## Events
|
|
113
|
-
|
|
114
|
-
| Event name | Description |
|
|
115
|
-
|----------------------|-----------------------------------------------------------------|
|
|
116
|
-
| `vwc-banner:removing`| Fires whenever the the banner has started its removing animation|
|
|
117
|
-
| `vwc-banner:removed` | Fires when the removing animation is done |
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
@use '../../../../shared/src/lib/sass/mixins/typography' as typography;
|
|
2
|
-
@use '../../../../../node_modules/@vonage/vivid-tokens/dist/sass/themes/consts' as theme-consts;
|
|
3
|
-
@use '../../../../shared/src/lib/sass/mixins/connotation/config' with (
|
|
4
|
-
$subset: success info alert announcement warning,
|
|
5
|
-
$shades: strong,
|
|
6
|
-
$default: info,
|
|
7
|
-
);
|
|
8
|
-
@use '../../../../shared/src/lib/sass/mixins/connotation' as connotation;
|
|
9
|
-
@use '../../../../shared/src/lib/sass/mixins/appearance/config' as appearance-config with (
|
|
10
|
-
$appearances: filled,
|
|
11
|
-
$default: filled,
|
|
12
|
-
);
|
|
13
|
-
@use '../../../../shared/src/lib/sass/mixins/appearance' as appearance;
|
|
14
|
-
|
|
15
|
-
$banner-transition-delay: --transition-delay;
|
|
16
|
-
|
|
17
|
-
.control {
|
|
18
|
-
@include connotation.connotation;
|
|
19
|
-
@include appearance.appearance;
|
|
20
|
-
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
max-height: 10rem;
|
|
23
|
-
background-color: var(#{appearance.get-variable(fill)});
|
|
24
|
-
color: var(#{appearance.get-variable(text)});
|
|
25
|
-
transition: max-height var(#{$banner-transition-delay}, 200ms);
|
|
26
|
-
|
|
27
|
-
&.removing {
|
|
28
|
-
max-height: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
> .header {
|
|
32
|
-
@include typography.typography-cat-shorthand('body-2-bold');
|
|
33
|
-
|
|
34
|
-
display: flex;
|
|
35
|
-
min-height: 60px;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: flex-start;
|
|
38
|
-
|
|
39
|
-
> .user-content {
|
|
40
|
-
display: flex;
|
|
41
|
-
flex: 1 0;
|
|
42
|
-
align-items: center;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
padding-inline: 16px;
|
|
45
|
-
|
|
46
|
-
> .icon {
|
|
47
|
-
flex: 0 0 auto;
|
|
48
|
-
font-size: 20px;
|
|
49
|
-
margin-inline-end: 15px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
> .action-items {
|
|
53
|
-
display: inline-block;
|
|
54
|
-
flex: 0 0 auto;
|
|
55
|
-
padding-inline-start: 15px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
> .message {
|
|
59
|
-
padding: 20px 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
> .dismiss-button {
|
|
64
|
-
--vvd-icon-button-color: inherit;
|
|
65
|
-
|
|
66
|
-
flex: 0 0 auto;
|
|
67
|
-
margin-inline-end: 8px;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|