@egen-civitas/esm-styleguide 1.0.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/README.md +7 -0
- package/dist/_all.scss +29 -0
- package/dist/_carbon-bridge.scss +194 -0
- package/dist/_glass.scss +75 -0
- package/dist/_overrides.scss +767 -0
- package/dist/_panel.scss +123 -0
- package/dist/_vars.scss +111 -0
- package/dist/brand.d.ts +8 -0
- package/dist/brand.d.ts.map +1 -0
- package/dist/brand.js +18 -0
- package/dist/breakpoints/index.d.ts +12 -0
- package/dist/breakpoints/index.d.ts.map +1 -0
- package/dist/breakpoints/index.js +28 -0
- package/dist/cards/card-header.component.d.ts +12 -0
- package/dist/cards/card-header.component.d.ts.map +1 -0
- package/dist/cards/card-header.component.js +22 -0
- package/dist/cards/card-header.module.scss +45 -0
- package/dist/cards/card-header.stories.js +32 -0
- package/dist/cards/decorated-card/_decoration-bleed.scss +26 -0
- package/dist/cards/decorated-card/card-decorations.d.ts +9 -0
- package/dist/cards/decorated-card/card-decorations.d.ts.map +1 -0
- package/dist/cards/decorated-card/card-decorations.js +106 -0
- package/dist/cards/decorated-card/decorated-card.component.d.ts +25 -0
- package/dist/cards/decorated-card/decorated-card.component.d.ts.map +1 -0
- package/dist/cards/decorated-card/decorated-card.component.js +134 -0
- package/dist/cards/decorated-card/decorated-card.module.scss +357 -0
- package/dist/cards/decorated-card/decorated-card.types.d.ts +26 -0
- package/dist/cards/decorated-card/decorated-card.types.d.ts.map +1 -0
- package/dist/cards/decorated-card/decorated-card.types.js +1 -0
- package/dist/cards/decorated-card/index.d.ts +3 -0
- package/dist/cards/decorated-card/index.d.ts.map +1 -0
- package/dist/cards/decorated-card/index.js +2 -0
- package/dist/cards/index.d.ts +3 -0
- package/dist/cards/index.d.ts.map +1 -0
- package/dist/cards/index.js +2 -0
- package/dist/carousel/circular-gallery/circular-gallery.component.d.ts +21 -0
- package/dist/carousel/circular-gallery/circular-gallery.component.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/circular-gallery.component.js +130 -0
- package/dist/carousel/circular-gallery/circular-gallery.module.scss +165 -0
- package/dist/carousel/circular-gallery/circular-gallery.types.d.ts +17 -0
- package/dist/carousel/circular-gallery/circular-gallery.types.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/circular-gallery.types.js +1 -0
- package/dist/carousel/circular-gallery/gallery-image.component.d.ts +23 -0
- package/dist/carousel/circular-gallery/gallery-image.component.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/gallery-image.component.js +151 -0
- package/dist/carousel/circular-gallery/gallery-tabs.component.d.ts +10 -0
- package/dist/carousel/circular-gallery/gallery-tabs.component.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/gallery-tabs.component.js +54 -0
- package/dist/carousel/circular-gallery/index.d.ts +3 -0
- package/dist/carousel/circular-gallery/index.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/index.js +2 -0
- package/dist/carousel/image-swiper/image-swiper.component.d.ts +18 -0
- package/dist/carousel/image-swiper/image-swiper.component.d.ts.map +1 -0
- package/dist/carousel/image-swiper/image-swiper.component.js +200 -0
- package/dist/carousel/image-swiper/image-swiper.module.scss +43 -0
- package/dist/carousel/image-swiper/image-swiper.types.d.ts +17 -0
- package/dist/carousel/image-swiper/image-swiper.types.d.ts.map +1 -0
- package/dist/carousel/image-swiper/image-swiper.types.js +1 -0
- package/dist/carousel/image-swiper/index.d.ts +3 -0
- package/dist/carousel/image-swiper/index.d.ts.map +1 -0
- package/dist/carousel/image-swiper/index.js +2 -0
- package/dist/carousel/index.d.ts +5 -0
- package/dist/carousel/index.d.ts.map +1 -0
- package/dist/carousel/index.js +9 -0
- package/dist/carousel/slider/carousel.component.d.ts +29 -0
- package/dist/carousel/slider/carousel.component.d.ts.map +1 -0
- package/dist/carousel/slider/carousel.component.js +108 -0
- package/dist/carousel/slider/index.d.ts +9 -0
- package/dist/carousel/slider/index.d.ts.map +1 -0
- package/dist/carousel/slider/index.js +7 -0
- package/dist/carousel/slider/slider-container.component.d.ts +11 -0
- package/dist/carousel/slider/slider-container.component.d.ts.map +1 -0
- package/dist/carousel/slider/slider-container.component.js +21 -0
- package/dist/carousel/slider/slider-dot-button.component.d.ts +12 -0
- package/dist/carousel/slider/slider-dot-button.component.d.ts.map +1 -0
- package/dist/carousel/slider/slider-dot-button.component.js +29 -0
- package/dist/carousel/slider/slider.component.d.ts +11 -0
- package/dist/carousel/slider/slider.component.d.ts.map +1 -0
- package/dist/carousel/slider/slider.component.js +17 -0
- package/dist/carousel/slider/slider.context.d.ts +16 -0
- package/dist/carousel/slider/slider.context.d.ts.map +1 -0
- package/dist/carousel/slider/slider.context.js +9 -0
- package/dist/carousel/slider/slider.module.scss +176 -0
- package/dist/carousel/slider/slider.types.d.ts +40 -0
- package/dist/carousel/slider/slider.types.d.ts.map +1 -0
- package/dist/carousel/slider/slider.types.js +1 -0
- package/dist/carousel/slider/thumbs-slider.component.d.ts +16 -0
- package/dist/carousel/slider/thumbs-slider.component.d.ts.map +1 -0
- package/dist/carousel/slider/thumbs-slider.component.js +45 -0
- package/dist/carousel/testimonial-card/index.d.ts +4 -0
- package/dist/carousel/testimonial-card/index.d.ts.map +1 -0
- package/dist/carousel/testimonial-card/index.js +3 -0
- package/dist/carousel/testimonial-card/testimonial-card-stack.component.d.ts +29 -0
- package/dist/carousel/testimonial-card/testimonial-card-stack.component.d.ts.map +1 -0
- package/dist/carousel/testimonial-card/testimonial-card-stack.component.js +79 -0
- package/dist/carousel/testimonial-card/testimonial-card-stack.module.scss +18 -0
- package/dist/carousel/testimonial-card/testimonial-card.component.d.ts +36 -0
- package/dist/carousel/testimonial-card/testimonial-card.component.d.ts.map +1 -0
- package/dist/carousel/testimonial-card/testimonial-card.component.js +98 -0
- package/dist/carousel/testimonial-card/testimonial-card.module.scss +73 -0
- package/dist/carousel/testimonial-card/testimonial-card.types.d.ts +65 -0
- package/dist/carousel/testimonial-card/testimonial-card.types.d.ts.map +1 -0
- package/dist/carousel/testimonial-card/testimonial-card.types.js +1 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.d.ts +33 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.d.ts.map +1 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.js +195 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.module.scss +210 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.types.d.ts +36 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.types.d.ts.map +1 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.types.js +1 -0
- package/dist/cascading-nav-dropdown/column-with-search.component.d.ts +15 -0
- package/dist/cascading-nav-dropdown/column-with-search.component.d.ts.map +1 -0
- package/dist/cascading-nav-dropdown/column-with-search.component.js +99 -0
- package/dist/cascading-nav-dropdown/index.d.ts +4 -0
- package/dist/cascading-nav-dropdown/index.d.ts.map +1 -0
- package/dist/cascading-nav-dropdown/index.js +3 -0
- package/dist/classification-tags/classification-tags.component.d.ts +32 -0
- package/dist/classification-tags/classification-tags.component.d.ts.map +1 -0
- package/dist/classification-tags/classification-tags.component.js +40 -0
- package/dist/classification-tags/index.d.ts +2 -0
- package/dist/classification-tags/index.d.ts.map +1 -0
- package/dist/classification-tags/index.js +1 -0
- package/dist/components/_breadcrumbs.scss +11 -0
- package/dist/components/_canvas.scss +8 -0
- package/dist/components/_general.scss +121 -0
- package/dist/components/_main-content.scss +24 -0
- package/dist/components/_panel-overrides.scss +150 -0
- package/dist/config-schema.d.ts +43 -0
- package/dist/config-schema.d.ts.map +1 -0
- package/dist/config-schema.js +107 -0
- package/dist/containers/folder-gallery/folder-gallery.component.d.ts +24 -0
- package/dist/containers/folder-gallery/folder-gallery.component.d.ts.map +1 -0
- package/dist/containers/folder-gallery/folder-gallery.component.js +168 -0
- package/dist/containers/folder-gallery/folder-gallery.module.scss +201 -0
- package/dist/containers/folder-gallery/folder-gallery.types.d.ts +27 -0
- package/dist/containers/folder-gallery/folder-gallery.types.d.ts.map +1 -0
- package/dist/containers/folder-gallery/folder-gallery.types.js +1 -0
- package/dist/containers/folder-gallery/index.d.ts +3 -0
- package/dist/containers/folder-gallery/index.d.ts.map +1 -0
- package/dist/containers/folder-gallery/index.js +2 -0
- package/dist/containers/index.d.ts +3 -0
- package/dist/containers/index.d.ts.map +1 -0
- package/dist/containers/index.js +8 -0
- package/dist/containers/layout-grid/index.d.ts +3 -0
- package/dist/containers/layout-grid/index.d.ts.map +1 -0
- package/dist/containers/layout-grid/index.js +2 -0
- package/dist/containers/layout-grid/layout-grid.component.d.ts +30 -0
- package/dist/containers/layout-grid/layout-grid.component.d.ts.map +1 -0
- package/dist/containers/layout-grid/layout-grid.component.js +152 -0
- package/dist/containers/layout-grid/layout-grid.module.scss +143 -0
- package/dist/containers/layout-grid/layout-grid.types.d.ts +19 -0
- package/dist/containers/layout-grid/layout-grid.types.d.ts.map +1 -0
- package/dist/containers/layout-grid/layout-grid.types.js +1 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts +24 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts.map +1 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.component.js +133 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.module.scss +38 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.stories.js +64 -0
- package/dist/custom-overflow-menu/index.d.ts +2 -0
- package/dist/custom-overflow-menu/index.d.ts.map +1 -0
- package/dist/custom-overflow-menu/index.js +1 -0
- package/dist/dashboard-extension/dashboard.module.scss +13 -0
- package/dist/dashboard-extension/index.d.ts +13 -0
- package/dist/dashboard-extension/index.d.ts.map +1 -0
- package/dist/dashboard-extension/index.js +59 -0
- package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts +5 -0
- package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts.map +1 -0
- package/dist/data-table-batch-actions/data-table-batch-actions.component.js +24 -0
- package/dist/data-table-batch-actions/index.d.ts +2 -0
- package/dist/data-table-batch-actions/index.d.ts.map +1 -0
- package/dist/data-table-batch-actions/index.js +1 -0
- package/dist/datepicker/auto-close-dialog.component.d.ts +7 -0
- package/dist/datepicker/auto-close-dialog.component.d.ts.map +1 -0
- package/dist/datepicker/auto-close-dialog.component.js +16 -0
- package/dist/datepicker/calendar-popover.component.d.ts +28 -0
- package/dist/datepicker/calendar-popover.component.d.ts.map +1 -0
- package/dist/datepicker/calendar-popover.component.js +68 -0
- package/dist/datepicker/date-picker-icon.component.d.ts +9 -0
- package/dist/datepicker/date-picker-icon.component.d.ts.map +1 -0
- package/dist/datepicker/date-picker-icon.component.js +23 -0
- package/dist/datepicker/date-picker-input.component.d.ts +12 -0
- package/dist/datepicker/date-picker-input.component.d.ts.map +1 -0
- package/dist/datepicker/date-picker-input.component.js +70 -0
- package/dist/datepicker/date-range-picker.stories.js +44 -0
- package/dist/datepicker/date-segment.component.d.ts +11 -0
- package/dist/datepicker/date-segment.component.d.ts.map +1 -0
- package/dist/datepicker/date-segment.component.js +53 -0
- package/dist/datepicker/datepicker.module.scss +502 -0
- package/dist/datepicker/datepicker.stories.js +47 -0
- package/dist/datepicker/defaults.d.ts +10 -0
- package/dist/datepicker/defaults.d.ts.map +1 -0
- package/dist/datepicker/defaults.js +8 -0
- package/dist/datepicker/egen-date-picker.component.d.ts +27 -0
- package/dist/datepicker/egen-date-picker.component.d.ts.map +1 -0
- package/dist/datepicker/egen-date-picker.component.js +142 -0
- package/dist/datepicker/egen-date-range-picker.component.d.ts +22 -0
- package/dist/datepicker/egen-date-range-picker.component.d.ts.map +1 -0
- package/dist/datepicker/egen-date-range-picker.component.js +172 -0
- package/dist/datepicker/hooks.d.ts +911 -0
- package/dist/datepicker/hooks.d.ts.map +1 -0
- package/dist/datepicker/hooks.js +103 -0
- package/dist/datepicker/i18n-wrapper.component.d.ts +7 -0
- package/dist/datepicker/i18n-wrapper.component.d.ts.map +1 -0
- package/dist/datepicker/i18n-wrapper.component.js +8 -0
- package/dist/datepicker/index.d.ts +3 -0
- package/dist/datepicker/index.d.ts.map +1 -0
- package/dist/datepicker/index.js +2 -0
- package/dist/datepicker/month-year.component.d.ts +11 -0
- package/dist/datepicker/month-year.component.d.ts.map +1 -0
- package/dist/datepicker/month-year.component.js +80 -0
- package/dist/datepicker/types.d.ts +31 -0
- package/dist/datepicker/types.d.ts.map +1 -0
- package/dist/datepicker/types.js +3 -0
- package/dist/datepicker/utils.d.ts +16 -0
- package/dist/datepicker/utils.d.ts.map +1 -0
- package/dist/datepicker/utils.js +35 -0
- package/dist/declarations.d.js +0 -0
- package/dist/dialogs/card-modal/card-modal.animations.d.ts +5 -0
- package/dist/dialogs/card-modal/card-modal.animations.d.ts.map +1 -0
- package/dist/dialogs/card-modal/card-modal.animations.js +102 -0
- package/dist/dialogs/card-modal/card-modal.component.d.ts +40 -0
- package/dist/dialogs/card-modal/card-modal.component.d.ts.map +1 -0
- package/dist/dialogs/card-modal/card-modal.component.js +284 -0
- package/dist/dialogs/card-modal/card-modal.module.scss +103 -0
- package/dist/dialogs/card-modal/card-modal.types.d.ts +64 -0
- package/dist/dialogs/card-modal/card-modal.types.d.ts.map +1 -0
- package/dist/dialogs/card-modal/card-modal.types.js +1 -0
- package/dist/dialogs/card-modal/index.d.ts +4 -0
- package/dist/dialogs/card-modal/index.d.ts.map +1 -0
- package/dist/dialogs/card-modal/index.js +3 -0
- package/dist/dialogs/index.d.ts +2 -0
- package/dist/dialogs/index.d.ts.map +1 -0
- package/dist/dialogs/index.js +12 -0
- package/dist/empty-card/empty-card-registration.d.ts +2 -0
- package/dist/empty-card/empty-card-registration.d.ts.map +1 -0
- package/dist/empty-card/empty-card-registration.js +5 -0
- package/dist/empty-card/empty-card.component.d.ts +18 -0
- package/dist/empty-card/empty-card.component.d.ts.map +1 -0
- package/dist/empty-card/empty-card.component.js +52 -0
- package/dist/empty-card/empty-card.module.scss +27 -0
- package/dist/empty-card/empty-card.stories.js +23 -0
- package/dist/empty-card/empty-data-illustration.svg +1 -0
- package/dist/empty-card/index.d.ts +2 -0
- package/dist/empty-card/index.d.ts.map +1 -0
- package/dist/empty-card/index.js +1 -0
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts +19 -0
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts.map +1 -0
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.js +137 -0
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.module.scss +23 -0
- package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts +9 -0
- package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/entity-banner-contact-details.component.js +207 -0
- package/dist/entity-banner/contact-details/entity-banner-contact-details.module.scss +47 -0
- package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts +12 -0
- package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.js +15 -0
- package/dist/entity-banner/contact-details/types.d.ts +48 -0
- package/dist/entity-banner/contact-details/types.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/types.js +1 -0
- package/dist/entity-banner/contact-details/useEntityAttributes.d.ts +14 -0
- package/dist/entity-banner/contact-details/useEntityAttributes.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/useEntityAttributes.js +12 -0
- package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts +11 -0
- package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/useEntityGroupsForEntity.js +9 -0
- package/dist/entity-banner/contact-details/useRelationships.d.ts +35 -0
- package/dist/entity-banner/contact-details/useRelationships.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/useRelationships.js +37 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts +9 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts.map +1 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.js +77 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts +9 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts.map +1 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-info.component.js +72 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-info.module.scss +165 -0
- package/dist/entity-banner/index.d.ts +5 -0
- package/dist/entity-banner/index.d.ts.map +1 -0
- package/dist/entity-banner/index.js +4 -0
- package/dist/entity-photo/entity-photo.component.d.ts +21 -0
- package/dist/entity-photo/entity-photo.component.d.ts.map +1 -0
- package/dist/entity-photo/entity-photo.component.js +111 -0
- package/dist/entity-photo/entity-photo.module.scss +21 -0
- package/dist/entity-photo/index.d.ts +3 -0
- package/dist/entity-photo/index.d.ts.map +1 -0
- package/dist/entity-photo/index.js +2 -0
- package/dist/entity-photo/placeholder-icon.component.d.ts +9 -0
- package/dist/entity-photo/placeholder-icon.component.d.ts.map +1 -0
- package/dist/entity-photo/placeholder-icon.component.js +26 -0
- package/dist/entity-photo/useEntityPhoto.d.ts +29 -0
- package/dist/entity-photo/useEntityPhoto.d.ts.map +1 -0
- package/dist/entity-photo/useEntityPhoto.js +37 -0
- package/dist/error-state/error-state.component.d.ts +11 -0
- package/dist/error-state/error-state.component.d.ts.map +1 -0
- package/dist/error-state/error-state.component.js +32 -0
- package/dist/error-state/error-state.module.scss +21 -0
- package/dist/error-state/error-state.stories.js +32 -0
- package/dist/error-state/index.d.ts +2 -0
- package/dist/error-state/index.d.ts.map +1 -0
- package/dist/error-state/index.js +1 -0
- package/dist/fields/dynamic-field.component.d.ts +39 -0
- package/dist/fields/dynamic-field.component.d.ts.map +1 -0
- package/dist/fields/dynamic-field.component.js +169 -0
- package/dist/fields/dynamic-field.module.scss +474 -0
- package/dist/fields/dynamic-field.stories.js +103 -0
- package/dist/fields/dynamic-field.types.d.ts +70 -0
- package/dist/fields/dynamic-field.types.d.ts.map +1 -0
- package/dist/fields/dynamic-field.types.js +7 -0
- package/dist/fields/field-icon.component.d.ts +11 -0
- package/dist/fields/field-icon.component.d.ts.map +1 -0
- package/dist/fields/field-icon.component.js +16 -0
- package/dist/fields/index.d.ts +3 -0
- package/dist/fields/index.d.ts.map +1 -0
- package/dist/fields/index.js +2 -0
- package/dist/fields/kinetic-label.component.d.ts +16 -0
- package/dist/fields/kinetic-label.component.d.ts.map +1 -0
- package/dist/fields/kinetic-label.component.js +53 -0
- package/dist/fields/use-field-validation.hook.d.ts +12 -0
- package/dist/fields/use-field-validation.hook.d.ts.map +1 -0
- package/dist/fields/use-field-validation.hook.js +72 -0
- package/dist/fields/validation-icon.component.d.ts +10 -0
- package/dist/fields/validation-icon.component.d.ts.map +1 -0
- package/dist/fields/validation-icon.component.js +40 -0
- package/dist/glass-card/index.d.ts +3 -0
- package/dist/glass-card/index.d.ts.map +1 -0
- package/dist/glass-card/index.js +2 -0
- package/dist/glass-card/liquid-glass-card.component.d.ts +23 -0
- package/dist/glass-card/liquid-glass-card.component.d.ts.map +1 -0
- package/dist/glass-card/liquid-glass-card.component.js +175 -0
- package/dist/glass-card/liquid-glass-card.module.scss +154 -0
- package/dist/glass-card/liquid-glass-card.types.d.ts +27 -0
- package/dist/glass-card/liquid-glass-card.types.d.ts.map +1 -0
- package/dist/glass-card/liquid-glass-card.types.js +1 -0
- package/dist/icons/error-filled.icon.d.ts +18 -0
- package/dist/icons/error-filled.icon.d.ts.map +1 -0
- package/dist/icons/error-filled.icon.js +22 -0
- package/dist/icons/icon-registration.d.ts +2 -0
- package/dist/icons/icon-registration.d.ts.map +1 -0
- package/dist/icons/icon-registration.js +191 -0
- package/dist/icons/icons.d.ts +334 -0
- package/dist/icons/icons.d.ts.map +1 -0
- package/dist/icons/icons.js +916 -0
- package/dist/icons/icons.module.scss +5 -0
- package/dist/icons/icons.stories.js +61 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +2 -0
- package/dist/icons/svgs/activity.svg +1 -0
- package/dist/icons/svgs/add.svg +1 -0
- package/dist/icons/svgs/arrow-down.svg +1 -0
- package/dist/icons/svgs/arrow-left.svg +1 -0
- package/dist/icons/svgs/arrow-right.svg +1 -0
- package/dist/icons/svgs/arrow-up.svg +1 -0
- package/dist/icons/svgs/baby.svg +1 -0
- package/dist/icons/svgs/calendar--heat-map.svg +1 -0
- package/dist/icons/svgs/calendar.svg +1 -0
- package/dist/icons/svgs/caret-down.svg +1 -0
- package/dist/icons/svgs/caret-left.svg +1 -0
- package/dist/icons/svgs/caret-right.svg +1 -0
- package/dist/icons/svgs/caret-up.svg +1 -0
- package/dist/icons/svgs/chart-average.svg +1 -0
- package/dist/icons/svgs/chart-line.svg +1 -0
- package/dist/icons/svgs/checkmark--filled.svg +1 -0
- package/dist/icons/svgs/checkmark--outline.svg +1 -0
- package/dist/icons/svgs/chemistry.svg +1 -0
- package/dist/icons/svgs/chevron-down.svg +1 -0
- package/dist/icons/svgs/chevron-left.svg +1 -0
- package/dist/icons/svgs/chevron-right.svg +1 -0
- package/dist/icons/svgs/chevron-up.svg +1 -0
- package/dist/icons/svgs/close--filled.svg +1 -0
- package/dist/icons/svgs/close--outline.svg +1 -0
- package/dist/icons/svgs/close.svg +1 -0
- package/dist/icons/svgs/document-attachment.svg +1 -0
- package/dist/icons/svgs/document.svg +1 -0
- package/dist/icons/svgs/download.svg +1 -0
- package/dist/icons/svgs/drug-order.svg +1 -0
- package/dist/icons/svgs/edit.svg +1 -0
- package/dist/icons/svgs/event-schedule.svg +1 -0
- package/dist/icons/svgs/events.svg +1 -0
- package/dist/icons/svgs/gender-female.svg +1 -0
- package/dist/icons/svgs/gender-male.svg +1 -0
- package/dist/icons/svgs/gender-other.svg +1 -0
- package/dist/icons/svgs/gender-unknown.svg +1 -0
- package/dist/icons/svgs/generic-order-type.svg +1 -0
- package/dist/icons/svgs/group-access.svg +1 -0
- package/dist/icons/svgs/group.svg +1 -0
- package/dist/icons/svgs/hospital-bed.svg +1 -0
- package/dist/icons/svgs/image-medical.svg +1 -0
- package/dist/icons/svgs/information--filled.svg +1 -0
- package/dist/icons/svgs/information--square.svg +1 -0
- package/dist/icons/svgs/information.svg +1 -0
- package/dist/icons/svgs/inventory-management.svg +1 -0
- package/dist/icons/svgs/lab-order.svg +1 -0
- package/dist/icons/svgs/list-checked.svg +1 -0
- package/dist/icons/svgs/location.svg +1 -0
- package/dist/icons/svgs/material-order.svg +1 -0
- package/dist/icons/svgs/maximize.svg +1 -0
- package/dist/icons/svgs/medication.svg +1 -0
- package/dist/icons/svgs/message-queue.svg +1 -0
- package/dist/icons/svgs/microscope.svg +1 -0
- package/dist/icons/svgs/money.svg +1 -0
- package/dist/icons/svgs/mother.svg +1 -0
- package/dist/icons/svgs/movement.svg +1 -0
- package/dist/icons/svgs/overflow-menu--horizontal.svg +1 -0
- package/dist/icons/svgs/overflow-menu--vertical.svg +1 -0
- package/dist/icons/svgs/password.svg +1 -0
- package/dist/icons/svgs/pedestrian-family.svg +1 -0
- package/dist/icons/svgs/pen.svg +1 -0
- package/dist/icons/svgs/printer.svg +1 -0
- package/dist/icons/svgs/procedure-order.svg +1 -0
- package/dist/icons/svgs/programs.svg +1 -0
- package/dist/icons/svgs/referral-order.svg +1 -0
- package/dist/icons/svgs/renew.svg +1 -0
- package/dist/icons/svgs/report.svg +1 -0
- package/dist/icons/svgs/reset.svg +1 -0
- package/dist/icons/svgs/save.svg +1 -0
- package/dist/icons/svgs/search.svg +1 -0
- package/dist/icons/svgs/settings.svg +1 -0
- package/dist/icons/svgs/shopping-cart--arrow-down.svg +1 -0
- package/dist/icons/svgs/shopping-cart.svg +1 -0
- package/dist/icons/svgs/sticky-note-add.svg +1 -0
- package/dist/icons/svgs/switcher.svg +1 -0
- package/dist/icons/svgs/syringe.svg +1 -0
- package/dist/icons/svgs/table-of-contents.svg +1 -0
- package/dist/icons/svgs/table.svg +1 -0
- package/dist/icons/svgs/time.svg +1 -0
- package/dist/icons/svgs/tools.svg +1 -0
- package/dist/icons/svgs/translate.svg +1 -0
- package/dist/icons/svgs/trash-can.svg +1 -0
- package/dist/icons/svgs/tree-view--alt.svg +1 -0
- package/dist/icons/svgs/user-avatar.svg +1 -0
- package/dist/icons/svgs/user-follow.svg +1 -0
- package/dist/icons/svgs/user-xray.svg +1 -0
- package/dist/icons/svgs/user.svg +1 -0
- package/dist/icons/svgs/view-off.svg +1 -0
- package/dist/icons/svgs/view.svg +1 -0
- package/dist/icons/svgs/warning.svg +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/internal.d.ts +43 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +42 -0
- package/dist/left-nav/index.d.ts +24 -0
- package/dist/left-nav/index.d.ts.map +1 -0
- package/dist/left-nav/index.js +58 -0
- package/dist/left-nav/left-nav.module.scss +43 -0
- package/dist/location-picker/index.d.ts +2 -0
- package/dist/location-picker/index.d.ts.map +1 -0
- package/dist/location-picker/index.js +1 -0
- package/dist/location-picker/location-picker.component.d.ts +11 -0
- package/dist/location-picker/location-picker.component.d.ts.map +1 -0
- package/dist/location-picker/location-picker.component.js +114 -0
- package/dist/location-picker/location-picker.module.scss +71 -0
- package/dist/location-picker/location-picker.resource.d.ts +53 -0
- package/dist/location-picker/location-picker.resource.d.ts.map +1 -0
- package/dist/location-picker/location-picker.resource.js +98 -0
- package/dist/logo/_logo.scss +34 -0
- package/dist/logo/egen-logo-full.svg +1 -0
- package/dist/logo/egen-logo-icon.svg +1 -0
- package/dist/logo/egen-logo-partial.svg +1 -0
- package/dist/logo/egen-logo-white.svg +1 -0
- package/dist/logo/index.d.ts +8 -0
- package/dist/logo/index.d.ts.map +1 -0
- package/dist/logo/index.js +22 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.d.ts +30 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.d.ts.map +1 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.js +327 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.module.scss +335 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.types.d.ts +37 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.types.d.ts.map +1 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.types.js +1 -0
- package/dist/master-detail/entity-detail-browser/gradient-blur.component.d.ts +9 -0
- package/dist/master-detail/entity-detail-browser/gradient-blur.component.d.ts.map +1 -0
- package/dist/master-detail/entity-detail-browser/gradient-blur.component.js +16 -0
- package/dist/master-detail/entity-detail-browser/index.d.ts +4 -0
- package/dist/master-detail/entity-detail-browser/index.d.ts.map +1 -0
- package/dist/master-detail/entity-detail-browser/index.js +3 -0
- package/dist/master-detail/index.d.ts +2 -0
- package/dist/master-detail/index.d.ts.map +1 -0
- package/dist/master-detail/index.js +7 -0
- package/dist/modals/_modals.scss +13 -0
- package/dist/modals/index.d.ts +26 -0
- package/dist/modals/index.d.ts.map +1 -0
- package/dist/modals/index.js +173 -0
- package/dist/notifications/_actionable-notifications.scss +23 -0
- package/dist/notifications/_notifications.scss +22 -0
- package/dist/notifications/actionable-notification.component.d.ts +21 -0
- package/dist/notifications/actionable-notification.component.d.ts.map +1 -0
- package/dist/notifications/actionable-notification.component.js +26 -0
- package/dist/notifications/actionable-notification.stories.js +48 -0
- package/dist/notifications/active-actionable-notifications.component.d.ts +9 -0
- package/dist/notifications/active-actionable-notifications.component.d.ts.map +1 -0
- package/dist/notifications/active-actionable-notifications.component.js +21 -0
- package/dist/notifications/active-notifications.component.d.ts +9 -0
- package/dist/notifications/active-notifications.component.d.ts.map +1 -0
- package/dist/notifications/active-notifications.component.js +21 -0
- package/dist/notifications/index.d.ts +20 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +78 -0
- package/dist/notifications/notification.component.d.ts +20 -0
- package/dist/notifications/notification.component.d.ts.map +1 -0
- package/dist/notifications/notification.component.js +15 -0
- package/dist/notifications/notification.stories.js +54 -0
- package/dist/numeric-datapoint/index.d.ts +4 -0
- package/dist/numeric-datapoint/index.d.ts.map +1 -0
- package/dist/numeric-datapoint/index.js +3 -0
- package/dist/numeric-datapoint/interpretation-utils.d.ts +27 -0
- package/dist/numeric-datapoint/interpretation-utils.d.ts.map +1 -0
- package/dist/numeric-datapoint/interpretation-utils.js +66 -0
- package/dist/numeric-datapoint/numeric-datapoint.component.d.ts +44 -0
- package/dist/numeric-datapoint/numeric-datapoint.component.d.ts.map +1 -0
- package/dist/numeric-datapoint/numeric-datapoint.component.js +110 -0
- package/dist/numeric-datapoint/numeric-datapoint.module.scss +141 -0
- package/dist/numeric-datapoint/use-concept-reference-range.d.ts +13 -0
- package/dist/numeric-datapoint/use-concept-reference-range.d.ts.map +1 -0
- package/dist/numeric-datapoint/use-concept-reference-range.js +31 -0
- package/dist/page-header/index.d.ts +2 -0
- package/dist/page-header/index.d.ts.map +1 -0
- package/dist/page-header/index.js +1 -0
- package/dist/page-header/page-header.component.d.ts +61 -0
- package/dist/page-header/page-header.component.d.ts.map +1 -0
- package/dist/page-header/page-header.component.js +89 -0
- package/dist/page-header/page-header.module.scss +28 -0
- package/dist/page-header/page-header.stories.js +21 -0
- package/dist/pagination/index.d.ts +2 -0
- package/dist/pagination/index.d.ts.map +1 -0
- package/dist/pagination/index.js +1 -0
- package/dist/pagination/pagination.component.d.ts +23 -0
- package/dist/pagination/pagination.component.d.ts.map +1 -0
- package/dist/pagination/pagination.component.js +49 -0
- package/dist/pagination/pagination.module.scss +66 -0
- package/dist/pagination/pagination.stories.js +45 -0
- package/dist/pictograms/index.d.ts +2 -0
- package/dist/pictograms/index.d.ts.map +1 -0
- package/dist/pictograms/index.js +1 -0
- package/dist/pictograms/pictogram-registration.d.ts +2 -0
- package/dist/pictograms/pictogram-registration.d.ts.map +1 -0
- package/dist/pictograms/pictogram-registration.js +62 -0
- package/dist/pictograms/pictograms.d.ts +66 -0
- package/dist/pictograms/pictograms.d.ts.map +1 -0
- package/dist/pictograms/pictograms.js +281 -0
- package/dist/pictograms/pictograms.module.scss +5 -0
- package/dist/pictograms/pictograms.stories.js +47 -0
- package/dist/pictograms/svgs/appointments.svg +1 -0
- package/dist/pictograms/svgs/assessment-1.svg +1 -0
- package/dist/pictograms/svgs/assessment-2.svg +1 -0
- package/dist/pictograms/svgs/blood-bank.svg +1 -0
- package/dist/pictograms/svgs/cardiology.svg +1 -0
- package/dist/pictograms/svgs/ct-scan.svg +1 -0
- package/dist/pictograms/svgs/dentistry.svg +1 -0
- package/dist/pictograms/svgs/emergency-department.svg +1 -0
- package/dist/pictograms/svgs/facility.svg +1 -0
- package/dist/pictograms/svgs/geriatrics.svg +1 -0
- package/dist/pictograms/svgs/gynaecology.svg +1 -0
- package/dist/pictograms/svgs/in-patient.svg +1 -0
- package/dist/pictograms/svgs/inventory.svg +1 -0
- package/dist/pictograms/svgs/labs-2.svg +1 -0
- package/dist/pictograms/svgs/labs.svg +1 -0
- package/dist/pictograms/svgs/obstetrics.svg +1 -0
- package/dist/pictograms/svgs/patient-search.svg +1 -0
- package/dist/pictograms/svgs/patients.svg +1 -0
- package/dist/pictograms/svgs/payments-desk.svg +1 -0
- package/dist/pictograms/svgs/pharmacy-1.svg +1 -0
- package/dist/pictograms/svgs/pharmacy-2.svg +1 -0
- package/dist/pictograms/svgs/registration.svg +1 -0
- package/dist/pictograms/svgs/service-queues.svg +1 -0
- package/dist/pictograms/svgs/transfer.svg +1 -0
- package/dist/pictograms/svgs/triage.svg +1 -0
- package/dist/pictograms/svgs/x-ray.svg +1 -0
- package/dist/public.d.ts +38 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.js +34 -0
- package/dist/responsive-wrapper/index.d.ts +2 -0
- package/dist/responsive-wrapper/index.d.ts.map +1 -0
- package/dist/responsive-wrapper/index.js +1 -0
- package/dist/responsive-wrapper/responsive-wrapper.component.d.ts +12 -0
- package/dist/responsive-wrapper/responsive-wrapper.component.d.ts.map +1 -0
- package/dist/responsive-wrapper/responsive-wrapper.component.js +20 -0
- package/dist/responsive-wrapper/responsive-wrapper.stories.js +28 -0
- package/dist/selections/index.d.ts +3 -0
- package/dist/selections/index.d.ts.map +1 -0
- package/dist/selections/index.js +8 -0
- package/dist/selections/interactive-selector/index.d.ts +3 -0
- package/dist/selections/interactive-selector/index.d.ts.map +1 -0
- package/dist/selections/interactive-selector/index.js +2 -0
- package/dist/selections/interactive-selector/interactive-selector.component.d.ts +37 -0
- package/dist/selections/interactive-selector/interactive-selector.component.d.ts.map +1 -0
- package/dist/selections/interactive-selector/interactive-selector.component.js +154 -0
- package/dist/selections/interactive-selector/interactive-selector.module.scss +212 -0
- package/dist/selections/interactive-selector/interactive-selector.types.d.ts +32 -0
- package/dist/selections/interactive-selector/interactive-selector.types.d.ts.map +1 -0
- package/dist/selections/interactive-selector/interactive-selector.types.js +1 -0
- package/dist/selections/select-popover/index.d.ts +5 -0
- package/dist/selections/select-popover/index.d.ts.map +1 -0
- package/dist/selections/select-popover/index.js +4 -0
- package/dist/selections/select-popover/select-avatar.component.d.ts +9 -0
- package/dist/selections/select-popover/select-avatar.component.d.ts.map +1 -0
- package/dist/selections/select-popover/select-avatar.component.js +19 -0
- package/dist/selections/select-popover/select-content.component.d.ts +5 -0
- package/dist/selections/select-popover/select-content.component.d.ts.map +1 -0
- package/dist/selections/select-popover/select-content.component.js +198 -0
- package/dist/selections/select-popover/select-popover.module.scss +230 -0
- package/dist/selections/select-popover/select-popover.types.d.ts +56 -0
- package/dist/selections/select-popover/select-popover.types.d.ts.map +1 -0
- package/dist/selections/select-popover/select-popover.types.js +9 -0
- package/dist/selections/select-popover/select-trigger.component.d.ts +5 -0
- package/dist/selections/select-popover/select-trigger.component.d.ts.map +1 -0
- package/dist/selections/select-popover/select-trigger.component.js +46 -0
- package/dist/selections/select-popover/select.component.d.ts +19 -0
- package/dist/selections/select-popover/select.component.d.ts.map +1 -0
- package/dist/selections/select-popover/select.component.js +61 -0
- package/dist/sheet/index.d.ts +15 -0
- package/dist/sheet/index.d.ts.map +1 -0
- package/dist/sheet/index.js +13 -0
- package/dist/sheet/sheet-content.component.d.ts +21 -0
- package/dist/sheet/sheet-content.component.d.ts.map +1 -0
- package/dist/sheet/sheet-content.component.js +224 -0
- package/dist/sheet/sheet-overlay.component.d.ts +8 -0
- package/dist/sheet/sheet-overlay.component.d.ts.map +1 -0
- package/dist/sheet/sheet-overlay.component.js +36 -0
- package/dist/sheet/sheet-parts.component.d.ts +23 -0
- package/dist/sheet/sheet-parts.component.d.ts.map +1 -0
- package/dist/sheet/sheet-parts.component.js +20 -0
- package/dist/sheet/sheet-portal.component.d.ts +9 -0
- package/dist/sheet/sheet-portal.component.d.ts.map +1 -0
- package/dist/sheet/sheet-portal.component.js +17 -0
- package/dist/sheet/sheet-root.component.d.ts +25 -0
- package/dist/sheet/sheet-root.component.d.ts.map +1 -0
- package/dist/sheet/sheet-root.component.js +36 -0
- package/dist/sheet/sheet-trigger.component.d.ts +15 -0
- package/dist/sheet/sheet-trigger.component.d.ts.map +1 -0
- package/dist/sheet/sheet-trigger.component.js +45 -0
- package/dist/sheet/sheet.context.d.ts +16 -0
- package/dist/sheet/sheet.context.d.ts.map +1 -0
- package/dist/sheet/sheet.context.js +9 -0
- package/dist/sheet/sheet.module.scss +143 -0
- package/dist/snackbars/_snackbars.scss +31 -0
- package/dist/snackbars/active-snackbar.component.d.ts +10 -0
- package/dist/snackbars/active-snackbar.component.d.ts.map +1 -0
- package/dist/snackbars/active-snackbar.component.js +25 -0
- package/dist/snackbars/index.d.ts +14 -0
- package/dist/snackbars/index.d.ts.map +1 -0
- package/dist/snackbars/index.js +37 -0
- package/dist/snackbars/snackbar.component.d.ts +23 -0
- package/dist/snackbars/snackbar.component.d.ts.map +1 -0
- package/dist/snackbars/snackbar.component.js +64 -0
- package/dist/snackbars/snackbar.module.scss +30 -0
- package/dist/snackbars/snackbar.stories.js +68 -0
- package/dist/spinner/_spinner.scss +14 -0
- package/dist/spinner/index.d.ts +3 -0
- package/dist/spinner/index.d.ts.map +1 -0
- package/dist/spinner/index.js +10 -0
- package/dist/staggered-menu/index.d.ts +3 -0
- package/dist/staggered-menu/index.d.ts.map +1 -0
- package/dist/staggered-menu/index.js +2 -0
- package/dist/staggered-menu/menu-toggle-button.component.d.ts +22 -0
- package/dist/staggered-menu/menu-toggle-button.component.d.ts.map +1 -0
- package/dist/staggered-menu/menu-toggle-button.component.js +235 -0
- package/dist/staggered-menu/staggered-menu-panel.component.d.ts +57 -0
- package/dist/staggered-menu/staggered-menu-panel.component.d.ts.map +1 -0
- package/dist/staggered-menu/staggered-menu-panel.component.js +389 -0
- package/dist/svg-utils.d.ts +17 -0
- package/dist/svg-utils.d.ts.map +1 -0
- package/dist/svg-utils.js +69 -0
- package/dist/test-utils.d.ts +7 -0
- package/dist/test-utils.d.ts.map +1 -0
- package/dist/test-utils.js +17 -0
- package/dist/toasts/_toasts.scss +22 -0
- package/dist/toasts/active-toasts.component.d.ts +10 -0
- package/dist/toasts/active-toasts.component.d.ts.map +1 -0
- package/dist/toasts/active-toasts.component.js +27 -0
- package/dist/toasts/index.d.ts +14 -0
- package/dist/toasts/index.d.ts.map +1 -0
- package/dist/toasts/index.js +39 -0
- package/dist/toasts/toast-kind.config.d.ts +15 -0
- package/dist/toasts/toast-kind.config.d.ts.map +1 -0
- package/dist/toasts/toast-kind.config.js +33 -0
- package/dist/toasts/toast-progress-bar.component.d.ts +13 -0
- package/dist/toasts/toast-progress-bar.component.d.ts.map +1 -0
- package/dist/toasts/toast-progress-bar.component.js +36 -0
- package/dist/toasts/toast.component.d.ts +24 -0
- package/dist/toasts/toast.component.d.ts.map +1 -0
- package/dist/toasts/toast.component.js +175 -0
- package/dist/toasts/toast.module.scss +181 -0
- package/dist/toasts/toast.stories.js +112 -0
- package/dist/toasts/toast.types.d.ts +45 -0
- package/dist/toasts/toast.types.d.ts.map +1 -0
- package/dist/toasts/toast.types.js +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +17 -0
- package/dist/workspaces/action-menu-button/action-menu-button.component.d.ts +16 -0
- package/dist/workspaces/action-menu-button/action-menu-button.component.d.ts.map +1 -0
- package/dist/workspaces/action-menu-button/action-menu-button.component.js +79 -0
- package/dist/workspaces/action-menu-button/action-menu-button.module.scss +111 -0
- package/dist/workspaces/container/action-menu.component.d.ts +10 -0
- package/dist/workspaces/container/action-menu.component.d.ts.map +1 -0
- package/dist/workspaces/container/action-menu.component.js +40 -0
- package/dist/workspaces/container/action-menu.module.scss +89 -0
- package/dist/workspaces/container/workspace-container.component.d.ts +68 -0
- package/dist/workspaces/container/workspace-container.component.d.ts.map +1 -0
- package/dist/workspaces/container/workspace-container.component.js +227 -0
- package/dist/workspaces/container/workspace-renderer.component.d.ts +9 -0
- package/dist/workspaces/container/workspace-renderer.component.d.ts.map +1 -0
- package/dist/workspaces/container/workspace-renderer.component.js +46 -0
- package/dist/workspaces/container/workspace.module.scss +276 -0
- package/dist/workspaces/index.d.ts +6 -0
- package/dist/workspaces/index.d.ts.map +1 -0
- package/dist/workspaces/index.js +5 -0
- package/dist/workspaces/notification/workspace-notification.component.d.ts +7 -0
- package/dist/workspaces/notification/workspace-notification.component.d.ts.map +1 -0
- package/dist/workspaces/notification/workspace-notification.component.js +89 -0
- package/dist/workspaces/notification/workspace-notification.module.scss +5 -0
- package/dist/workspaces/public.d.ts +5 -0
- package/dist/workspaces/public.d.ts.map +1 -0
- package/dist/workspaces/public.js +3 -0
- package/dist/workspaces/workspace-sidebar-store/useWorkspaceGroupStore.d.ts +12 -0
- package/dist/workspaces/workspace-sidebar-store/useWorkspaceGroupStore.d.ts.map +1 -0
- package/dist/workspaces/workspace-sidebar-store/useWorkspaceGroupStore.js +38 -0
- package/dist/workspaces/workspaces.d.ts +254 -0
- package/dist/workspaces/workspaces.d.ts.map +1 -0
- package/dist/workspaces/workspaces.js +504 -0
- package/dist/workspaces2/action-menu2/action-menu-button2.component.d.ts +38 -0
- package/dist/workspaces2/action-menu2/action-menu-button2.component.d.ts.map +1 -0
- package/dist/workspaces2/action-menu2/action-menu-button2.component.js +112 -0
- package/dist/workspaces2/action-menu2/action-menu-button2.module.scss +113 -0
- package/dist/workspaces2/action-menu2/action-menu2.component.d.ts +17 -0
- package/dist/workspaces2/action-menu2/action-menu2.component.d.ts.map +1 -0
- package/dist/workspaces2/action-menu2/action-menu2.component.js +46 -0
- package/dist/workspaces2/action-menu2/action-menu2.module.scss +87 -0
- package/dist/workspaces2/active-workspace-window.component.d.ts +12 -0
- package/dist/workspaces2/active-workspace-window.component.d.ts.map +1 -0
- package/dist/workspaces2/active-workspace-window.component.js +150 -0
- package/dist/workspaces2/index.d.ts +4 -0
- package/dist/workspaces2/index.d.ts.map +1 -0
- package/dist/workspaces2/index.js +3 -0
- package/dist/workspaces2/scope-utils.d.ts +10 -0
- package/dist/workspaces2/scope-utils.d.ts.map +1 -0
- package/dist/workspaces2/scope-utils.js +30 -0
- package/dist/workspaces2/workspace-windows-and-menu.component.d.ts +2 -0
- package/dist/workspaces2/workspace-windows-and-menu.component.d.ts.map +1 -0
- package/dist/workspaces2/workspace-windows-and-menu.component.js +82 -0
- package/dist/workspaces2/workspace-windows-and-menu.module.scss +32 -0
- package/dist/workspaces2/workspace2-close-prompt.modal.d.ts +12 -0
- package/dist/workspaces2/workspace2-close-prompt.modal.d.ts.map +1 -0
- package/dist/workspaces2/workspace2-close-prompt.modal.js +45 -0
- package/dist/workspaces2/workspace2-close-prompt.module.scss +8 -0
- package/dist/workspaces2/workspace2.component.d.ts +51 -0
- package/dist/workspaces2/workspace2.component.d.ts.map +1 -0
- package/dist/workspaces2/workspace2.component.js +160 -0
- package/dist/workspaces2/workspace2.d.ts +187 -0
- package/dist/workspaces2/workspace2.d.ts.map +1 -0
- package/dist/workspaces2/workspace2.js +566 -0
- package/dist/workspaces2/workspace2.module.scss +228 -0
- package/mock-jest.tsx +220 -0
- package/mock.tsx +222 -0
- package/package.json +146 -0
- package/src/_vars.scss +111 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds an SVG to the global SVG sprite container, making it available for use
|
|
3
|
+
* throughout the application via SVG use references.
|
|
4
|
+
*
|
|
5
|
+
* @param htmlId The HTML ID to assign to the SVG element. This ID can be referenced
|
|
6
|
+
* in other parts of the application using `<svg><use href="#htmlId"></use></svg>`.
|
|
7
|
+
* @param svgString The SVG markup as a string to be added to the sprite container.
|
|
8
|
+
*
|
|
9
|
+
* @category UI
|
|
10
|
+
*/
|
|
11
|
+
export declare function addSvg(htmlId: string, svgString: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* Parses all queued SVGs in a single DOMParser call and appends them to the
|
|
14
|
+
* sprite container. Must be called once after all setup*() registration calls.
|
|
15
|
+
*/
|
|
16
|
+
export declare function flushSvgs(): void;
|
|
17
|
+
//# sourceMappingURL=svg-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svg-utils.d.ts","sourceRoot":"","sources":["../src/svg-utils.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAevD;AAED;;;GAGG;AACH,wBAAgB,SAAS,SAwBxB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* The svg container is a div that contains all the Egen svgs, with
|
|
2
|
+
* an HTML id that can be referenced with the following code:
|
|
3
|
+
* <svg role="img">
|
|
4
|
+
* <use link:href="#the-svg-id"></use>
|
|
5
|
+
* </svg>
|
|
6
|
+
*
|
|
7
|
+
* This approach is known as "svg sprites"
|
|
8
|
+
*/ const svgContainer = document.createElement('div');
|
|
9
|
+
const appendContainer = ()=>{
|
|
10
|
+
document.body.appendChild(svgContainer);
|
|
11
|
+
};
|
|
12
|
+
svgContainer.id = 'egen-svgs-container';
|
|
13
|
+
svgContainer.style.display = 'none';
|
|
14
|
+
if (document.readyState === 'complete') {
|
|
15
|
+
appendContainer();
|
|
16
|
+
} else {
|
|
17
|
+
window.addEventListener('load', appendContainer);
|
|
18
|
+
}
|
|
19
|
+
const queue = [];
|
|
20
|
+
let flushed = false;
|
|
21
|
+
/**
|
|
22
|
+
* Adds an SVG to the global SVG sprite container, making it available for use
|
|
23
|
+
* throughout the application via SVG use references.
|
|
24
|
+
*
|
|
25
|
+
* @param htmlId The HTML ID to assign to the SVG element. This ID can be referenced
|
|
26
|
+
* in other parts of the application using `<svg><use href="#htmlId"></use></svg>`.
|
|
27
|
+
* @param svgString The SVG markup as a string to be added to the sprite container.
|
|
28
|
+
*
|
|
29
|
+
* @category UI
|
|
30
|
+
*/ export function addSvg(htmlId, svgString) {
|
|
31
|
+
if (!flushed) {
|
|
32
|
+
queue.push({
|
|
33
|
+
id: htmlId,
|
|
34
|
+
svg: svgString
|
|
35
|
+
});
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
// Late additions after flush: parse individually
|
|
39
|
+
const domParser = new DOMParser();
|
|
40
|
+
const dom = domParser.parseFromString(svgString, 'image/svg+xml');
|
|
41
|
+
const svgElement = dom.querySelector('svg');
|
|
42
|
+
if (svgElement) {
|
|
43
|
+
svgElement.id = htmlId;
|
|
44
|
+
svgContainer.appendChild(svgElement);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Parses all queued SVGs in a single DOMParser call and appends them to the
|
|
49
|
+
* sprite container. Must be called once after all setup*() registration calls.
|
|
50
|
+
*/ export function flushSvgs() {
|
|
51
|
+
if (flushed) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
flushed = true;
|
|
55
|
+
if (queue.length === 0) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
// Concatenate all SVG strings and parse in a single DOMParser call
|
|
59
|
+
const html = queue.map(({ svg })=>svg).join('');
|
|
60
|
+
const domParser = new DOMParser();
|
|
61
|
+
const doc = domParser.parseFromString(`<body>${html}</body>`, 'text/html');
|
|
62
|
+
const svgs = doc.body.querySelectorAll(':scope > svg');
|
|
63
|
+
// Assign IDs by matching queue order to parsed element order
|
|
64
|
+
for(let i = 0; i < svgs.length; i++){
|
|
65
|
+
svgs[i].id = queue[i].id;
|
|
66
|
+
svgContainer.appendChild(svgContainer.ownerDocument.importNode(svgs[i], true));
|
|
67
|
+
}
|
|
68
|
+
queue.length = 0;
|
|
69
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { type ReactElement } from 'react';
|
|
2
|
+
import { type RenderOptions } from '@testing-library/react';
|
|
3
|
+
export declare const swrWrapper: ({ children }: {
|
|
4
|
+
children: any;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export declare const renderWithSwr: (ui: ReactElement, options?: Omit<RenderOptions, "queries">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
7
|
+
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../src/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,KAAK,aAAa,EAAU,MAAM,wBAAwB,CAAC;AAEpE,eAAO,MAAM,UAAU,GAAI;;CAAY,sBAWtC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,IAAI,YAAY,EAAE,UAAU,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,iIACvC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { SWRConfig } from "swr";
|
|
4
|
+
import { render } from "@testing-library/react";
|
|
5
|
+
export const swrWrapper = ({ children })=>{
|
|
6
|
+
return /*#__PURE__*/ _jsx(SWRConfig, {
|
|
7
|
+
value: {
|
|
8
|
+
dedupingInterval: 0,
|
|
9
|
+
provider: ()=>new Map()
|
|
10
|
+
},
|
|
11
|
+
children: children
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export const renderWithSwr = (ui, options)=>render(ui, {
|
|
15
|
+
wrapper: swrWrapper,
|
|
16
|
+
...options
|
|
17
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use '@carbon/layout';
|
|
2
|
+
|
|
3
|
+
.egen-toasts-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
z-index: 100000;
|
|
7
|
+
position: fixed;
|
|
8
|
+
width: 20rem;
|
|
9
|
+
top: layout.$spacing-10;
|
|
10
|
+
right: layout.$spacing-05;
|
|
11
|
+
gap: layout.$spacing-03;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.egen-toast-mounting,
|
|
15
|
+
.egen-toast-mounting > * {
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.egen-toast-closing,
|
|
20
|
+
.egen-toast-mounting {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @module @category UI */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { Subject } from 'rxjs';
|
|
4
|
+
import type { ToastNotificationMeta } from './toast.component.js';
|
|
5
|
+
interface ActiveToastsProps {
|
|
6
|
+
subject: Subject<ToastNotificationMeta>;
|
|
7
|
+
}
|
|
8
|
+
declare const ActiveToasts: React.FC<ActiveToastsProps>;
|
|
9
|
+
export default ActiveToasts;
|
|
10
|
+
//# sourceMappingURL=active-toasts.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"active-toasts.component.d.ts","sourceRoot":"","sources":["../../src/toasts/active-toasts.component.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGlE,UAAU,iBAAiB;IACzB,OAAO,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACzC;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqC7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/** @module @category UI */ import React, { useCallback, useEffect, useState } from "react";
|
|
3
|
+
import { Toast } from "./toast.component.js";
|
|
4
|
+
const ActiveToasts = ({ subject })=>{
|
|
5
|
+
const [toasts, setToasts] = useState([]);
|
|
6
|
+
const closeToast = useCallback((toast)=>{
|
|
7
|
+
setToasts((toasts)=>toasts.filter((t)=>t !== toast));
|
|
8
|
+
}, []);
|
|
9
|
+
useEffect(()=>{
|
|
10
|
+
const subscription = subject.subscribe((toast)=>setToasts((toasts)=>[
|
|
11
|
+
...toasts.filter((t)=>toast.toastKey ? // portant la même toastKey — permet des mises à jour en temps réel
|
|
12
|
+
// (ex. barre de progression) sans empiler de nouvelles instances.
|
|
13
|
+
t.toastKey !== toast.toastKey : t.description !== toast.description || t.kind !== toast.kind || t.title !== toast.title || t.actionButtonLabel !== toast.actionButtonLabel || t.onActionButtonClick !== toast.onActionButtonClick),
|
|
14
|
+
toast
|
|
15
|
+
]));
|
|
16
|
+
return ()=>subscription.unsubscribe();
|
|
17
|
+
}, [
|
|
18
|
+
subject
|
|
19
|
+
]);
|
|
20
|
+
return /*#__PURE__*/ _jsx(_Fragment, {
|
|
21
|
+
children: toasts.map((toast)=>/*#__PURE__*/ _jsx(Toast, {
|
|
22
|
+
toast: toast,
|
|
23
|
+
closeToast: ()=>closeToast(toast)
|
|
24
|
+
}, toast.toastKey ?? toast.id))
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export default ActiveToasts;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ToastDescriptor } from './toast.component.js';
|
|
2
|
+
export { type ToastAction, type ToastDescriptor, type ToastType, type ToastVariant, type ToastNotificationMeta, } from './toast.component.js';
|
|
3
|
+
/**
|
|
4
|
+
* Starts a rendering host for toast notifications. Should only be used by the app shell.
|
|
5
|
+
* Under normal conditions there is no need to use this function.
|
|
6
|
+
* @param target The container target that hosts the toast notifications.
|
|
7
|
+
*/
|
|
8
|
+
export declare function renderToasts(target: HTMLElement | null): void;
|
|
9
|
+
/**
|
|
10
|
+
* Displays a toast notification in the UI.
|
|
11
|
+
* @param toast The description of the toast to display.
|
|
12
|
+
*/
|
|
13
|
+
export declare function showToast(toast: ToastDescriptor): void;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toasts/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAyB,MAAM,sBAAsB,CAAC;AAInF,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,qBAAqB,GAC3B,MAAM,sBAAsB,CAAC;AAK9B;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,QAKtD;AAUD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,eAAe,QAc/C"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/** @module @category UI */ import React from "react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
import { Subject } from "rxjs";
|
|
5
|
+
import ActiveToasts from "./active-toasts.component.js";
|
|
6
|
+
import isEmpty from "lodash-es/isEmpty";
|
|
7
|
+
const toastsSubject = new Subject();
|
|
8
|
+
let toastId = 0;
|
|
9
|
+
/**
|
|
10
|
+
* Starts a rendering host for toast notifications. Should only be used by the app shell.
|
|
11
|
+
* Under normal conditions there is no need to use this function.
|
|
12
|
+
* @param target The container target that hosts the toast notifications.
|
|
13
|
+
*/ export function renderToasts(target) {
|
|
14
|
+
if (target) {
|
|
15
|
+
const root = createRoot(target);
|
|
16
|
+
root.render(/*#__PURE__*/ _jsx(ActiveToasts, {
|
|
17
|
+
subject: toastsSubject
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function isNotEmpty(description) {
|
|
22
|
+
return typeof description === 'string' ? description.trim().length > 0 : typeof description === 'object' ? !isEmpty(description) : false;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Displays a toast notification in the UI.
|
|
26
|
+
* @param toast The description of the toast to display.
|
|
27
|
+
*/ export function showToast(toast) {
|
|
28
|
+
if (toast && isNotEmpty(toast.description)) {
|
|
29
|
+
setTimeout(()=>{
|
|
30
|
+
// always use in subsequent cycle
|
|
31
|
+
toastsSubject.next({
|
|
32
|
+
...toast,
|
|
33
|
+
id: toastId++
|
|
34
|
+
});
|
|
35
|
+
}, 0);
|
|
36
|
+
} else {
|
|
37
|
+
console.error(`showToast must be called with an object having a 'description' property that is a non-empty string or object`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @category Toast */
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { ToastType } from './toast.types.js';
|
|
4
|
+
export interface ToastKindConfig {
|
|
5
|
+
icon: React.ComponentType<{
|
|
6
|
+
className?: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
}>;
|
|
9
|
+
/** Libellé de catégorie par défaut (utilisé si `eyebrow` n'est pas fourni). */
|
|
10
|
+
defaultEyebrow: string;
|
|
11
|
+
/** Racine des tokens de couleur du thème (`--colors-{colorToken}-*`). */
|
|
12
|
+
colorToken: 'success' | 'error' | 'warning' | 'info';
|
|
13
|
+
}
|
|
14
|
+
export declare const toastKindConfig: Record<ToastType, ToastKindConfig>;
|
|
15
|
+
//# sourceMappingURL=toast-kind.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-kind.config.d.ts","sourceRoot":"","sources":["../../src/toasts/toast-kind.config.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjE,+EAA+E;IAC/E,cAAc,EAAE,MAAM,CAAC;IACvB,yEAAyE;IACzE,UAAU,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;CACtD;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,SAAS,EAAE,eAAe,CAO9D,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @category Toast */ import { CheckmarkFilledIcon, ErrorFilledIcon, InformationFilledIcon, InformationSquareIcon, WarningIcon } from "../icons/index.js";
|
|
2
|
+
export const toastKindConfig = {
|
|
3
|
+
success: {
|
|
4
|
+
icon: CheckmarkFilledIcon,
|
|
5
|
+
defaultEyebrow: 'Succès',
|
|
6
|
+
colorToken: 'success'
|
|
7
|
+
},
|
|
8
|
+
error: {
|
|
9
|
+
icon: ErrorFilledIcon,
|
|
10
|
+
defaultEyebrow: 'Erreur',
|
|
11
|
+
colorToken: 'error'
|
|
12
|
+
},
|
|
13
|
+
warning: {
|
|
14
|
+
icon: WarningIcon,
|
|
15
|
+
defaultEyebrow: 'Avertissement',
|
|
16
|
+
colorToken: 'warning'
|
|
17
|
+
},
|
|
18
|
+
'warning-alt': {
|
|
19
|
+
icon: WarningIcon,
|
|
20
|
+
defaultEyebrow: 'Avertissement',
|
|
21
|
+
colorToken: 'warning'
|
|
22
|
+
},
|
|
23
|
+
info: {
|
|
24
|
+
icon: InformationFilledIcon,
|
|
25
|
+
defaultEyebrow: 'Information',
|
|
26
|
+
colorToken: 'info'
|
|
27
|
+
},
|
|
28
|
+
'info-square': {
|
|
29
|
+
icon: InformationSquareIcon,
|
|
30
|
+
defaultEyebrow: 'Information',
|
|
31
|
+
colorToken: 'info'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @category Toast */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ToastProgressBarProps {
|
|
4
|
+
colorVar: string;
|
|
5
|
+
mode: 'countdown' | 'progress';
|
|
6
|
+
/** ms — requis en mode 'countdown'. */
|
|
7
|
+
durationMs?: number;
|
|
8
|
+
/** 0-100 — requis en mode 'progress'. */
|
|
9
|
+
value?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const ToastProgressBar: React.FC<ToastProgressBarProps>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=toast-progress-bar.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-progress-bar.component.d.ts","sourceRoot":"","sources":["../../src/toasts/toast-progress-bar.component.tsx"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC;IAC/B,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoB5D,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/** @category Toast */ import React from "react";
|
|
3
|
+
import { motion } from "framer-motion";
|
|
4
|
+
import styles from "./toast.module.scss";
|
|
5
|
+
export const ToastProgressBar = ({ colorVar, mode, durationMs, value })=>/*#__PURE__*/ _jsx("div", {
|
|
6
|
+
className: styles.progressTrack,
|
|
7
|
+
children: mode === 'countdown' ? /*#__PURE__*/ _jsx(motion.div, {
|
|
8
|
+
className: styles.progressFill,
|
|
9
|
+
style: {
|
|
10
|
+
background: colorVar
|
|
11
|
+
},
|
|
12
|
+
initial: {
|
|
13
|
+
width: '100%'
|
|
14
|
+
},
|
|
15
|
+
animate: {
|
|
16
|
+
width: '0%'
|
|
17
|
+
},
|
|
18
|
+
transition: {
|
|
19
|
+
duration: (durationMs ?? 4000) / 1000,
|
|
20
|
+
ease: 'linear'
|
|
21
|
+
}
|
|
22
|
+
}) : /*#__PURE__*/ _jsx(motion.div, {
|
|
23
|
+
className: styles.progressFill,
|
|
24
|
+
style: {
|
|
25
|
+
background: colorVar
|
|
26
|
+
},
|
|
27
|
+
initial: false,
|
|
28
|
+
animate: {
|
|
29
|
+
width: `${Math.max(0, Math.min(100, value ?? 0))}%`
|
|
30
|
+
},
|
|
31
|
+
transition: {
|
|
32
|
+
duration: 0.3,
|
|
33
|
+
ease: 'easeOut'
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** @module @category UI */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ToastProps } from './toast.types.js';
|
|
4
|
+
export type { ToastAction, ToastVariant, ToastProps, ToastDescriptor, ToastNotificationMeta, ToastType } from './toast.types.js';
|
|
5
|
+
/**
|
|
6
|
+
* `Toast` — présentation d'une notification unique. Reçoit `{ toast, closeToast }`
|
|
7
|
+
* exactement comme avant (voir `ActiveToasts`, dont l'abonnement RxJS et la
|
|
8
|
+
* logique de dédoublonnage ne changent pas) — seul le rendu visuel change.
|
|
9
|
+
*
|
|
10
|
+
* Design "verre liquide" (`LiquidGlassCard`) avec 3 variantes, choisies via
|
|
11
|
+
* `toast.variant` :
|
|
12
|
+
* - `'default'` (implicite) : barre de progression = compte à rebours avant
|
|
13
|
+
* fermeture automatique (`duration`, 4000ms par défaut si aucune action).
|
|
14
|
+
* - `'transfer'` : barre de progression = valeur réelle (`toast.progress`,
|
|
15
|
+
* 0-100), pour un transfert/téléversement en cours. Ferme automatiquement
|
|
16
|
+
* ~1,2s après avoir atteint 100.
|
|
17
|
+
* - `'actions'` : une ou plusieurs commandes (`toast.actions`), chacune avec
|
|
18
|
+
* son propre style et son propre comportement de fermeture.
|
|
19
|
+
*
|
|
20
|
+
* Tout le contenu textuel (`title`, `description`, `eyebrow`, libellés des
|
|
21
|
+
* actions) est entièrement fourni par l'appelant, quelle que soit la variante.
|
|
22
|
+
*/
|
|
23
|
+
export declare const Toast: React.FC<ToastProps>;
|
|
24
|
+
//# sourceMappingURL=toast.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.component.d.ts","sourceRoot":"","sources":["../../src/toasts/toast.component.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGhE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEjI;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAyHtC,CAAC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** @module @category UI */ import React, { useCallback, useEffect, useMemo } from "react";
|
|
3
|
+
import { motion } from "framer-motion";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { CloseIcon } from "../icons/index.js";
|
|
6
|
+
import { LiquidGlassCard } from "../glass-card/index.js";
|
|
7
|
+
import { toastKindConfig } from "./toast-kind.config.js";
|
|
8
|
+
import { ToastProgressBar } from "./toast-progress-bar.component.js";
|
|
9
|
+
import styles from "./toast.module.scss";
|
|
10
|
+
/**
|
|
11
|
+
* `Toast` — présentation d'une notification unique. Reçoit `{ toast, closeToast }`
|
|
12
|
+
* exactement comme avant (voir `ActiveToasts`, dont l'abonnement RxJS et la
|
|
13
|
+
* logique de dédoublonnage ne changent pas) — seul le rendu visuel change.
|
|
14
|
+
*
|
|
15
|
+
* Design "verre liquide" (`LiquidGlassCard`) avec 3 variantes, choisies via
|
|
16
|
+
* `toast.variant` :
|
|
17
|
+
* - `'default'` (implicite) : barre de progression = compte à rebours avant
|
|
18
|
+
* fermeture automatique (`duration`, 4000ms par défaut si aucune action).
|
|
19
|
+
* - `'transfer'` : barre de progression = valeur réelle (`toast.progress`,
|
|
20
|
+
* 0-100), pour un transfert/téléversement en cours. Ferme automatiquement
|
|
21
|
+
* ~1,2s après avoir atteint 100.
|
|
22
|
+
* - `'actions'` : une ou plusieurs commandes (`toast.actions`), chacune avec
|
|
23
|
+
* son propre style et son propre comportement de fermeture.
|
|
24
|
+
*
|
|
25
|
+
* Tout le contenu textuel (`title`, `description`, `eyebrow`, libellés des
|
|
26
|
+
* actions) est entièrement fourni par l'appelant, quelle que soit la variante.
|
|
27
|
+
*/ export const Toast = ({ toast, closeToast })=>{
|
|
28
|
+
const { description, kind = 'info', critical, title, actionButtonLabel, onActionButtonClick, variant = 'default', eyebrow, progress, actions, duration, toastKey: _toastKey } = toast;
|
|
29
|
+
const config = toastKindConfig[kind];
|
|
30
|
+
const Icon = config.icon;
|
|
31
|
+
const colorVar = `var(--colors-${config.colorToken}-500)`;
|
|
32
|
+
// ── Actions effectives : `actions` (nouveau) prime, sinon on retombe sur le
|
|
33
|
+
// couple historique actionButtonLabel/onActionButtonClick (compatibilité totale). ──
|
|
34
|
+
const effectiveActions = useMemo(()=>{
|
|
35
|
+
if (actions?.length) {
|
|
36
|
+
return actions;
|
|
37
|
+
}
|
|
38
|
+
if (actionButtonLabel && onActionButtonClick) {
|
|
39
|
+
return [
|
|
40
|
+
{
|
|
41
|
+
label: actionButtonLabel,
|
|
42
|
+
onClick: onActionButtonClick,
|
|
43
|
+
kind: 'primary'
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
return [];
|
|
48
|
+
}, [
|
|
49
|
+
actions,
|
|
50
|
+
actionButtonLabel,
|
|
51
|
+
onActionButtonClick
|
|
52
|
+
]);
|
|
53
|
+
const handleActionClick = useCallback((action)=>{
|
|
54
|
+
action.onClick();
|
|
55
|
+
if (action.closeOnClick !== false) {
|
|
56
|
+
closeToast();
|
|
57
|
+
}
|
|
58
|
+
}, [
|
|
59
|
+
closeToast
|
|
60
|
+
]);
|
|
61
|
+
// ── Auto-fermeture ──────────────────────────────────────────────────────────
|
|
62
|
+
// 'default' sans action : 4000ms par défaut (comportement du design source).
|
|
63
|
+
// 'default' avec action(s) : pas d'auto-fermeture par défaut (laisse le temps de cliquer).
|
|
64
|
+
// 'transfer' : pas d'auto-fermeture tant que progress < 100.
|
|
65
|
+
// 'actions' : jamais d'auto-fermeture par défaut.
|
|
66
|
+
const effectiveDuration = duration ?? (variant === 'default' && effectiveActions.length === 0 ? 4000 : undefined);
|
|
67
|
+
useEffect(()=>{
|
|
68
|
+
if (variant === 'transfer') {
|
|
69
|
+
if ((progress ?? 0) >= 100) {
|
|
70
|
+
const timer = setTimeout(closeToast, 1200);
|
|
71
|
+
return ()=>clearTimeout(timer);
|
|
72
|
+
}
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (effectiveDuration) {
|
|
76
|
+
const timer = setTimeout(closeToast, effectiveDuration);
|
|
77
|
+
return ()=>clearTimeout(timer);
|
|
78
|
+
}
|
|
79
|
+
}, [
|
|
80
|
+
variant,
|
|
81
|
+
progress,
|
|
82
|
+
effectiveDuration,
|
|
83
|
+
closeToast
|
|
84
|
+
]);
|
|
85
|
+
const eyebrowText = eyebrow ?? config.defaultEyebrow;
|
|
86
|
+
// Ensure description is always renderable (convert Error objects to strings)
|
|
87
|
+
const renderableDescription = description instanceof Error ? description.message : description;
|
|
88
|
+
return /*#__PURE__*/ _jsx(motion.div, {
|
|
89
|
+
initial: {
|
|
90
|
+
opacity: 0,
|
|
91
|
+
y: 30,
|
|
92
|
+
scale: 0.9,
|
|
93
|
+
filter: 'blur(4px)'
|
|
94
|
+
},
|
|
95
|
+
animate: {
|
|
96
|
+
opacity: 1,
|
|
97
|
+
y: 0,
|
|
98
|
+
scale: 1,
|
|
99
|
+
filter: 'blur(0px)'
|
|
100
|
+
},
|
|
101
|
+
exit: {
|
|
102
|
+
opacity: 0,
|
|
103
|
+
y: -15,
|
|
104
|
+
scale: 0.95,
|
|
105
|
+
filter: 'blur(2px)',
|
|
106
|
+
transition: {
|
|
107
|
+
duration: 0.18
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
layout: true,
|
|
111
|
+
className: styles.wrapper,
|
|
112
|
+
children: /*#__PURE__*/ _jsxs(LiquidGlassCard, {
|
|
113
|
+
blurIntensity: "xl",
|
|
114
|
+
glowIntensity: critical ? 'lg' : 'sm',
|
|
115
|
+
shadowIntensity: "md",
|
|
116
|
+
borderRadius: "var(--border-radius-lg)",
|
|
117
|
+
className: classNames(styles.card, styles[`card--${config.colorToken}`]),
|
|
118
|
+
children: [
|
|
119
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
120
|
+
className: styles.body,
|
|
121
|
+
children: [
|
|
122
|
+
/*#__PURE__*/ _jsx(Icon, {
|
|
123
|
+
className: styles.icon,
|
|
124
|
+
size: 20
|
|
125
|
+
}),
|
|
126
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
127
|
+
className: styles.textArea,
|
|
128
|
+
children: [
|
|
129
|
+
/*#__PURE__*/ _jsx("span", {
|
|
130
|
+
className: styles.eyebrow,
|
|
131
|
+
children: eyebrowText
|
|
132
|
+
}),
|
|
133
|
+
title && /*#__PURE__*/ _jsx("p", {
|
|
134
|
+
className: styles.title,
|
|
135
|
+
children: title
|
|
136
|
+
}),
|
|
137
|
+
/*#__PURE__*/ _jsx("div", {
|
|
138
|
+
className: styles.description,
|
|
139
|
+
children: renderableDescription
|
|
140
|
+
})
|
|
141
|
+
]
|
|
142
|
+
}),
|
|
143
|
+
/*#__PURE__*/ _jsx("button", {
|
|
144
|
+
type: "button",
|
|
145
|
+
onClick: closeToast,
|
|
146
|
+
className: styles.closeButton,
|
|
147
|
+
"aria-label": "Fermer",
|
|
148
|
+
children: /*#__PURE__*/ _jsx(CloseIcon, {
|
|
149
|
+
size: 14
|
|
150
|
+
})
|
|
151
|
+
})
|
|
152
|
+
]
|
|
153
|
+
}),
|
|
154
|
+
effectiveActions.length > 0 && /*#__PURE__*/ _jsx("div", {
|
|
155
|
+
className: styles.actionsRow,
|
|
156
|
+
children: effectiveActions.map((action, index)=>/*#__PURE__*/ _jsx("button", {
|
|
157
|
+
type: "button",
|
|
158
|
+
className: classNames(styles.actionButton, styles[`actionButton--${action.kind ?? 'primary'}`]),
|
|
159
|
+
onClick: ()=>handleActionClick(action),
|
|
160
|
+
children: action.label
|
|
161
|
+
}, action.id ?? index))
|
|
162
|
+
}),
|
|
163
|
+
variant === 'transfer' ? /*#__PURE__*/ _jsx(ToastProgressBar, {
|
|
164
|
+
colorVar: colorVar,
|
|
165
|
+
mode: "progress",
|
|
166
|
+
value: progress
|
|
167
|
+
}) : effectiveDuration && /*#__PURE__*/ _jsx(ToastProgressBar, {
|
|
168
|
+
colorVar: colorVar,
|
|
169
|
+
mode: "countdown",
|
|
170
|
+
durationMs: effectiveDuration
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
})
|
|
174
|
+
});
|
|
175
|
+
};
|