@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,284 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/** @category CardModal */ import React, { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
3
|
+
import { createPortal } from "react-dom";
|
|
4
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
5
|
+
import classNames from "classnames";
|
|
6
|
+
import { CloseIcon, MaximizeIcon } from "../../icons/index.js";
|
|
7
|
+
import { DecoratedCard } from "../../cards/decorated-card/index.js";
|
|
8
|
+
import { cardModalAnimationPresets } from "./card-modal.animations.js";
|
|
9
|
+
import styles from "./card-modal.module.scss";
|
|
10
|
+
const clampDockY = (y, size)=>{
|
|
11
|
+
if (typeof window === 'undefined') {
|
|
12
|
+
return y;
|
|
13
|
+
}
|
|
14
|
+
const margin = 8;
|
|
15
|
+
return Math.min(Math.max(y, margin + size / 2), window.innerHeight - margin - size / 2);
|
|
16
|
+
};
|
|
17
|
+
const isPresetConfig = (animation)=>typeof animation === 'object' && animation !== null;
|
|
18
|
+
/**
|
|
19
|
+
* `CardModal` — modal générique dont le CONTENEUR VISUEL est n'importe
|
|
20
|
+
* quelle variante de `DecoratedCard` (`cardVariant` + `cardProps`, transmis
|
|
21
|
+
* tels quels au `DecoratedCard` interne — exactement comme le ferait une app
|
|
22
|
+
* qui l'utiliserait directement). Le modal, lui, ne gère que ce qui lui est
|
|
23
|
+
* propre : ouverture/fermeture, overlay, animation d'entrée/sortie,
|
|
24
|
+
* déplacement à la souris.
|
|
25
|
+
*
|
|
26
|
+
* Zéro code de gestion d'état requis pour un usage simple (`trigger` +
|
|
27
|
+
* `children` suffisent) ; tout est surchargeable (`open`/`onOpenChange`
|
|
28
|
+
* contrôlés, `animation` déclarative ou variants framer-motion 100% custom,
|
|
29
|
+
* rendu du bouton de fermeture...).
|
|
30
|
+
*
|
|
31
|
+
* @example Usage minimal
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <CardModal trigger={<button>Ouvrir</button>} cardVariant="glass" animation="zoom">
|
|
34
|
+
* <p>Contenu du modal</p>
|
|
35
|
+
* </CardModal>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @example Combinaison libre
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <CardModal
|
|
41
|
+
* cardVariant="dots"
|
|
42
|
+
* cardProps={{ title: 'Confirmation', dotsColor: 'var(--colors-warning-500)' }}
|
|
43
|
+
* animation={{ preset: 'slide-up', duration: 0.4 }}
|
|
44
|
+
* draggable
|
|
45
|
+
* open={isOpen}
|
|
46
|
+
* onOpenChange={setIsOpen}
|
|
47
|
+
* >
|
|
48
|
+
* <p>Voulez-vous continuer ?</p>
|
|
49
|
+
* </CardModal>
|
|
50
|
+
* ```
|
|
51
|
+
*/ export const CardModal = ({ open, defaultOpen = false, onOpenChange, trigger, children, showCloseButton = true, renderCloseButton, cardVariant = 'default', cardProps, draggable = false, dockable = false, dockIcon, dockEdgeThreshold = 80, dockUndockDistance = 120, dockSize = 56, closeOnOverlayClick = true, closeOnEscape = true, showOverlay = true, lockScroll = true, animation = 'scale', overlayAnimation, className, style, overlayClassName })=>{
|
|
52
|
+
const [internalOpen, setInternalOpen] = useState(defaultOpen);
|
|
53
|
+
const [mounted, setMounted] = useState(false);
|
|
54
|
+
const [dock, setDock] = useState(null);
|
|
55
|
+
const panelRef = useRef(null);
|
|
56
|
+
const titleId = useId();
|
|
57
|
+
const isControlled = open !== undefined;
|
|
58
|
+
const isOpen = isControlled ? open : internalOpen;
|
|
59
|
+
const setOpen = useCallback((next)=>{
|
|
60
|
+
onOpenChange?.(next);
|
|
61
|
+
if (!isControlled) {
|
|
62
|
+
setInternalOpen(next);
|
|
63
|
+
}
|
|
64
|
+
}, [
|
|
65
|
+
onOpenChange,
|
|
66
|
+
isControlled
|
|
67
|
+
]);
|
|
68
|
+
const close = useCallback(()=>setOpen(false), [
|
|
69
|
+
setOpen
|
|
70
|
+
]);
|
|
71
|
+
useEffect(()=>setMounted(true), []);
|
|
72
|
+
// Chaque (ré)ouverture démarre non-ancrée — l'ancrage est un état
|
|
73
|
+
// d'interaction éphémère, pas une préférence à retenir entre deux ouvertures.
|
|
74
|
+
useEffect(()=>{
|
|
75
|
+
if (isOpen) {
|
|
76
|
+
setDock(null);
|
|
77
|
+
}
|
|
78
|
+
}, [
|
|
79
|
+
isOpen
|
|
80
|
+
]);
|
|
81
|
+
// ── Détection d'ancrage en coin (additif — ne s'exécute que si dockable) ──
|
|
82
|
+
// Utilisé à la fois par le panneau plein (pour ancrer au relâchement près
|
|
83
|
+
// d'un bord) et par la bulle ancrée (pour la repositionner verticalement,
|
|
84
|
+
// ou la déployer si on la glisse assez loin du bord vers le centre).
|
|
85
|
+
const handlePanelDragEnd = useCallback(()=>{
|
|
86
|
+
if (!dockable || !panelRef.current || typeof window === 'undefined') {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const rect = panelRef.current.getBoundingClientRect();
|
|
90
|
+
const centerX = rect.left + rect.width / 2;
|
|
91
|
+
const centerY = rect.top + rect.height / 2;
|
|
92
|
+
if (dock) {
|
|
93
|
+
const edgeX = dock.side === 'left' ? 0 : window.innerWidth;
|
|
94
|
+
if (Math.abs(centerX - edgeX) > dockUndockDistance) {
|
|
95
|
+
setDock(null);
|
|
96
|
+
} else {
|
|
97
|
+
setDock({
|
|
98
|
+
side: dock.side,
|
|
99
|
+
y: clampDockY(centerY, dockSize)
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
if (centerX <= dockEdgeThreshold) {
|
|
105
|
+
setDock({
|
|
106
|
+
side: 'left',
|
|
107
|
+
y: clampDockY(centerY, dockSize)
|
|
108
|
+
});
|
|
109
|
+
} else if (centerX >= window.innerWidth - dockEdgeThreshold) {
|
|
110
|
+
setDock({
|
|
111
|
+
side: 'right',
|
|
112
|
+
y: clampDockY(centerY, dockSize)
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}, [
|
|
116
|
+
dockable,
|
|
117
|
+
dock,
|
|
118
|
+
dockEdgeThreshold,
|
|
119
|
+
dockUndockDistance,
|
|
120
|
+
dockSize
|
|
121
|
+
]);
|
|
122
|
+
useEffect(()=>{
|
|
123
|
+
if (!isOpen || !lockScroll) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
document.body.style.overflow = 'hidden';
|
|
127
|
+
return ()=>{
|
|
128
|
+
document.body.style.overflow = '';
|
|
129
|
+
};
|
|
130
|
+
}, [
|
|
131
|
+
isOpen,
|
|
132
|
+
lockScroll
|
|
133
|
+
]);
|
|
134
|
+
useEffect(()=>{
|
|
135
|
+
if (!isOpen || !closeOnEscape) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const handleKeyDown = (e)=>{
|
|
139
|
+
if (e.key === 'Escape') {
|
|
140
|
+
close();
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
144
|
+
return ()=>document.removeEventListener('keydown', handleKeyDown);
|
|
145
|
+
}, [
|
|
146
|
+
isOpen,
|
|
147
|
+
closeOnEscape,
|
|
148
|
+
close
|
|
149
|
+
]);
|
|
150
|
+
const animationConfig = isPresetConfig(animation) ? animation : {
|
|
151
|
+
preset: animation
|
|
152
|
+
};
|
|
153
|
+
const variants = animationConfig.variants ?? cardModalAnimationPresets[animationConfig.preset ?? 'scale'];
|
|
154
|
+
const transition = {
|
|
155
|
+
duration: animationConfig.duration ?? 0.25,
|
|
156
|
+
ease: animationConfig.ease ?? [
|
|
157
|
+
0.16,
|
|
158
|
+
1,
|
|
159
|
+
0.3,
|
|
160
|
+
1
|
|
161
|
+
]
|
|
162
|
+
};
|
|
163
|
+
const overlayTransition = {
|
|
164
|
+
duration: overlayAnimation?.duration ?? 0.2,
|
|
165
|
+
ease: overlayAnimation?.ease ?? 'easeOut'
|
|
166
|
+
};
|
|
167
|
+
const modalMarkup = /*#__PURE__*/ _jsx(AnimatePresence, {
|
|
168
|
+
children: isOpen && /*#__PURE__*/ _jsxs("div", {
|
|
169
|
+
className: styles.root,
|
|
170
|
+
children: [
|
|
171
|
+
showOverlay && !dock && /*#__PURE__*/ _jsx(motion.div, {
|
|
172
|
+
className: classNames(styles.overlay, overlayClassName),
|
|
173
|
+
initial: {
|
|
174
|
+
opacity: 0
|
|
175
|
+
},
|
|
176
|
+
animate: {
|
|
177
|
+
opacity: 1
|
|
178
|
+
},
|
|
179
|
+
exit: {
|
|
180
|
+
opacity: 0
|
|
181
|
+
},
|
|
182
|
+
transition: overlayTransition,
|
|
183
|
+
onClick: closeOnOverlayClick ? close : undefined,
|
|
184
|
+
"aria-hidden": "true"
|
|
185
|
+
}),
|
|
186
|
+
dock ? // ── Bulle ancrée — moitié visible sur le bord, façon widget iOS/macOS ──
|
|
187
|
+
/*#__PURE__*/ _jsx(motion.div, {
|
|
188
|
+
ref: panelRef,
|
|
189
|
+
className: classNames(styles.dockBubble, styles[`dockBubble--${dock.side}`]),
|
|
190
|
+
style: {
|
|
191
|
+
top: dock.y,
|
|
192
|
+
width: dockSize,
|
|
193
|
+
height: dockSize,
|
|
194
|
+
[dock.side]: -(dockSize / 2)
|
|
195
|
+
},
|
|
196
|
+
drag: true,
|
|
197
|
+
dragMomentum: false,
|
|
198
|
+
dragElastic: 0.2,
|
|
199
|
+
onDragEnd: handlePanelDragEnd,
|
|
200
|
+
initial: {
|
|
201
|
+
scale: 0.3,
|
|
202
|
+
opacity: 0
|
|
203
|
+
},
|
|
204
|
+
animate: {
|
|
205
|
+
scale: 1,
|
|
206
|
+
opacity: 1
|
|
207
|
+
},
|
|
208
|
+
exit: {
|
|
209
|
+
scale: 0.3,
|
|
210
|
+
opacity: 0
|
|
211
|
+
},
|
|
212
|
+
transition: {
|
|
213
|
+
type: 'spring',
|
|
214
|
+
stiffness: 420,
|
|
215
|
+
damping: 32
|
|
216
|
+
},
|
|
217
|
+
whileDrag: {
|
|
218
|
+
cursor: 'grabbing'
|
|
219
|
+
},
|
|
220
|
+
role: "button",
|
|
221
|
+
tabIndex: 0,
|
|
222
|
+
"aria-label": "Déployer le modal",
|
|
223
|
+
onKeyDown: (e)=>{
|
|
224
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
225
|
+
setDock(null);
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
children: dockIcon ?? /*#__PURE__*/ _jsx(MaximizeIcon, {
|
|
229
|
+
size: 20
|
|
230
|
+
})
|
|
231
|
+
}) : /*#__PURE__*/ _jsx("div", {
|
|
232
|
+
className: styles.centerLayer,
|
|
233
|
+
children: /*#__PURE__*/ _jsx(motion.div, {
|
|
234
|
+
ref: panelRef,
|
|
235
|
+
role: "dialog",
|
|
236
|
+
"aria-modal": "true",
|
|
237
|
+
"aria-labelledby": cardProps?.title ? titleId : undefined,
|
|
238
|
+
className: classNames(styles.panel, className),
|
|
239
|
+
style: style,
|
|
240
|
+
variants: variants,
|
|
241
|
+
initial: "initial",
|
|
242
|
+
animate: "animate",
|
|
243
|
+
exit: "exit",
|
|
244
|
+
transition: transition,
|
|
245
|
+
drag: draggable,
|
|
246
|
+
dragMomentum: false,
|
|
247
|
+
dragElastic: 0.12,
|
|
248
|
+
onDragEnd: dockable ? handlePanelDragEnd : undefined,
|
|
249
|
+
whileDrag: draggable ? {
|
|
250
|
+
cursor: 'grabbing'
|
|
251
|
+
} : undefined,
|
|
252
|
+
children: /*#__PURE__*/ _jsxs(DecoratedCard, {
|
|
253
|
+
variant: cardVariant,
|
|
254
|
+
...cardProps,
|
|
255
|
+
children: [
|
|
256
|
+
showCloseButton && (renderCloseButton ? renderCloseButton(close) : /*#__PURE__*/ _jsx("button", {
|
|
257
|
+
type: "button",
|
|
258
|
+
className: styles.closeButton,
|
|
259
|
+
onClick: close,
|
|
260
|
+
"aria-label": "Fermer",
|
|
261
|
+
children: /*#__PURE__*/ _jsx(CloseIcon, {
|
|
262
|
+
size: 18
|
|
263
|
+
})
|
|
264
|
+
})),
|
|
265
|
+
children
|
|
266
|
+
]
|
|
267
|
+
})
|
|
268
|
+
})
|
|
269
|
+
})
|
|
270
|
+
]
|
|
271
|
+
})
|
|
272
|
+
});
|
|
273
|
+
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
274
|
+
children: [
|
|
275
|
+
trigger && /*#__PURE__*/ _jsx("span", {
|
|
276
|
+
className: styles.triggerWrap,
|
|
277
|
+
onClick: ()=>setOpen(true),
|
|
278
|
+
children: trigger
|
|
279
|
+
}),
|
|
280
|
+
mounted && /*#__PURE__*/ createPortal(modalMarkup, document.body)
|
|
281
|
+
]
|
|
282
|
+
});
|
|
283
|
+
};
|
|
284
|
+
export default CardModal;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// EGEN — CardModal
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// Le CardModal ne définit QUE ce qui lui est propre (overlay, centrage,
|
|
5
|
+
// bouton de fermeture) — le rendu visuel de la carte elle-même vient
|
|
6
|
+
// entièrement de DecoratedCard (variant/cardProps), jamais dupliqué ici.
|
|
7
|
+
// ============================================================================
|
|
8
|
+
|
|
9
|
+
@use '../../panel' as panel;
|
|
10
|
+
|
|
11
|
+
.triggerWrap {
|
|
12
|
+
display: inline-block;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.root {
|
|
17
|
+
position: fixed;
|
|
18
|
+
inset: 0;
|
|
19
|
+
z-index: var(--z-index-modal);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.overlay {
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset: 0;
|
|
25
|
+
@include panel.panel-overlay;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.centerLayer {
|
|
29
|
+
position: relative;
|
|
30
|
+
z-index: 1;
|
|
31
|
+
height: 100%;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
padding: 1.5rem;
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.panel {
|
|
40
|
+
position: relative;
|
|
41
|
+
pointer-events: auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.closeButton {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0.75rem;
|
|
47
|
+
right: 0.75rem;
|
|
48
|
+
z-index: 10;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
padding: 0.375rem;
|
|
53
|
+
background: color-mix(in srgb, var(--colors-surface-foreground) 6%, transparent);
|
|
54
|
+
border: none;
|
|
55
|
+
border-radius: var(--border-radius-full, 9999px);
|
|
56
|
+
color: var(--colors-surface-foreground);
|
|
57
|
+
opacity: 0.7;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
transition: var(--transitions-colors), var(--transitions-opacity);
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
background: color-mix(in srgb, var(--colors-surface-foreground) 12%, transparent);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (prefers-reduced-motion: reduce) {
|
|
68
|
+
.closeButton {
|
|
69
|
+
transition: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// ── Bulle ancrée (dockable) ──────────────────────────────────────────────────
|
|
74
|
+
// Position fixe sur le bord gauche/droit de l'écran, moitié visible (l'autre
|
|
75
|
+
// moitié est décalée hors-écran via le style inline left/-dockSize/2 ou
|
|
76
|
+
// right/-dockSize/2, calculé en JS car dockSize est une prop dynamique).
|
|
77
|
+
|
|
78
|
+
.dockBubble {
|
|
79
|
+
position: fixed;
|
|
80
|
+
z-index: var(--z-index-modal);
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
border-radius: var(--border-radius-full, 9999px);
|
|
85
|
+
background: var(--colors-surface-card);
|
|
86
|
+
border: 1px solid var(--colors-surface-translucent-border, rgba(255, 255, 255, 0.8));
|
|
87
|
+
box-shadow: var(--shadows-lg);
|
|
88
|
+
color: var(--colors-surface-foreground);
|
|
89
|
+
cursor: grab;
|
|
90
|
+
pointer-events: auto;
|
|
91
|
+
|
|
92
|
+
&:active {
|
|
93
|
+
cursor: grabbing;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.dockBubble--left {
|
|
98
|
+
padding-left: 15%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.dockBubble--right {
|
|
102
|
+
padding-right: 15%;
|
|
103
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/** @category CardModal */
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { Transition, Variants } from 'framer-motion';
|
|
4
|
+
import type { CardProps, CardVariant } from '../../cards/decorated-card/index.js';
|
|
5
|
+
/** Préréglages d'animation d'ouverture/fermeture prêts à l'emploi. */
|
|
6
|
+
export type CardModalAnimationPreset = 'fade' | 'scale' | 'zoom' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'none';
|
|
7
|
+
/** Configuration d'animation complète — surcharge totale possible via `variants`/`transition` (framer-motion natif). */
|
|
8
|
+
export interface CardModalAnimationConfig {
|
|
9
|
+
/** Préréglage de base. Ignoré si `variants` est fourni. Défaut : 'scale'. */
|
|
10
|
+
preset?: CardModalAnimationPreset;
|
|
11
|
+
/** Durée en secondes. Défaut : 0.25. */
|
|
12
|
+
duration?: number;
|
|
13
|
+
/** Easing framer-motion (nom ou courbe de Bézier). */
|
|
14
|
+
ease?: Transition['ease'];
|
|
15
|
+
/** Remplace entièrement le préréglage par des variants framer-motion (initial/animate/exit) personnalisés. */
|
|
16
|
+
variants?: Variants;
|
|
17
|
+
}
|
|
18
|
+
export interface CardModalProps {
|
|
19
|
+
open?: boolean;
|
|
20
|
+
defaultOpen?: boolean;
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
/** Élément déclencheur optionnel — si fourni, un clic dessus ouvre le modal (zéro code de gestion d'état nécessaire côté appelant). */
|
|
23
|
+
trigger?: React.ReactNode;
|
|
24
|
+
/** Contenu affiché à l'intérieur de la carte. */
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
/** Bouton de fermeture (×) affiché en coin. Défaut : true. */
|
|
27
|
+
showCloseButton?: boolean;
|
|
28
|
+
/** Remplace entièrement le bouton de fermeture par défaut. Reçoit la fonction de fermeture. */
|
|
29
|
+
renderCloseButton?: (close: () => void) => React.ReactNode;
|
|
30
|
+
/** Variante de DecoratedCard à utiliser comme conteneur. Défaut : 'default'. */
|
|
31
|
+
cardVariant?: CardVariant;
|
|
32
|
+
/** Reste des props DecoratedCard (size, title, description, dotsColor, contentClassName, contentStyle, className, style...), passées telles quelles au DecoratedCard interne. */
|
|
33
|
+
cardProps?: Omit<CardProps, 'variant' | 'children'>;
|
|
34
|
+
/** Autorise à attraper la carte et la déplacer à la souris. Défaut : false. */
|
|
35
|
+
draggable?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Ancrage en coin façon widget iOS/macOS — nécessite `draggable`. Glisser
|
|
38
|
+
* le modal près du bord gauche/droit de l'écran le réduit en petite bulle
|
|
39
|
+
* circulaire à moitié visible sur ce bord (contenant `dockIcon`) ;
|
|
40
|
+
* on la redéplace verticalement le long du bord, ou on la glisse vers le
|
|
41
|
+
* centre pour la déployer à nouveau en modal complet. Défaut : false.
|
|
42
|
+
*/
|
|
43
|
+
dockable?: boolean;
|
|
44
|
+
/** Icône affichée dans la bulle ancrée. Défaut : `<MaximizeIcon />`. */
|
|
45
|
+
dockIcon?: React.ReactNode;
|
|
46
|
+
/** Distance (px) au bord de l'écran en dessous de laquelle un relâchement ancre le modal. Défaut : 80. */
|
|
47
|
+
dockEdgeThreshold?: number;
|
|
48
|
+
/** Distance (px) de glissement vers le centre, une fois ancré, au-delà de laquelle le modal se déploie à nouveau. Défaut : 120. */
|
|
49
|
+
dockUndockDistance?: number;
|
|
50
|
+
/** Diamètre (px) de la bulle ancrée. Défaut : 56. */
|
|
51
|
+
dockSize?: number;
|
|
52
|
+
closeOnOverlayClick?: boolean;
|
|
53
|
+
closeOnEscape?: boolean;
|
|
54
|
+
showOverlay?: boolean;
|
|
55
|
+
/** Verrouille le défilement de la page tant que le modal est ouvert. Défaut : true. */
|
|
56
|
+
lockScroll?: boolean;
|
|
57
|
+
/** Préréglage simple (string) ou configuration complète. Défaut : 'scale'. */
|
|
58
|
+
animation?: CardModalAnimationPreset | CardModalAnimationConfig;
|
|
59
|
+
overlayAnimation?: Pick<CardModalAnimationConfig, 'duration' | 'ease'>;
|
|
60
|
+
className?: string;
|
|
61
|
+
style?: React.CSSProperties;
|
|
62
|
+
overlayClassName?: string;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=card-modal.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-modal.types.d.ts","sourceRoot":"","sources":["../../../src/dialogs/card-modal/card-modal.types.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElF,sEAAsE;AACtE,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,MAAM,CAAC;AAEX,wHAAwH;AACxH,MAAM,WAAW,wBAAwB;IACvC,6EAA6E;IAC7E,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,IAAI,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAC1B,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAE7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,uIAAuI;IACvI,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAG1B,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,+FAA+F;IAC/F,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAG3D,gFAAgF;IAChF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iLAAiL;IACjL,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;IAGpD,+EAA+E;IAC/E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0GAA0G;IAC1G,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mIAAmI;IACnI,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uFAAuF;IACvF,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,wBAAwB,GAAG,wBAAwB,CAAC;IAChE,gBAAgB,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;IAGvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/** @category CardModal */ export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dialogs/card-modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dialogs/index.ts"],"names":[],"mappings":"AAWA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Catégorie « dialogs »
|
|
3
|
+
// Fenêtres superposées auto-contenues (overlay + panneau centré), montées
|
|
4
|
+
// directement en React dans l'app appelante — gestion complète de
|
|
5
|
+
// l'ouverture/fermeture, de l'animation et du contenu.
|
|
6
|
+
//
|
|
7
|
+
// Nommée 'dialogs' (et non 'modals') pour ne pas entrer en collision avec
|
|
8
|
+
// le système de modales existant (showModal/setupModals, src/modals/),
|
|
9
|
+
// qui repose sur l'enregistrement nommé de parcels single-spa — un
|
|
10
|
+
// mécanisme différent, pour des modales inter-applications.
|
|
11
|
+
// ============================================================================
|
|
12
|
+
export * from "./card-modal/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-card-registration.d.ts","sourceRoot":"","sources":["../../src/empty-card/empty-card-registration.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,SAE7B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EmptyCardProps {
|
|
3
|
+
/** The name of the type of item that would be displayed here if not empty. This must be a pre-translated string. */
|
|
4
|
+
displayText: string;
|
|
5
|
+
/** The title to use for this empty component. This must be a pre-translated string. */
|
|
6
|
+
headerTitle: string;
|
|
7
|
+
/** A callback to invoke when the user tries to record a new item. */
|
|
8
|
+
launchForm?(): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const EmptyCardIllustration: ({ width, height }: {
|
|
11
|
+
width?: string | undefined;
|
|
12
|
+
height?: string | undefined;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* Re-usable card for displaying an empty state
|
|
16
|
+
*/
|
|
17
|
+
export declare const EmptyCard: React.FC<EmptyCardProps>;
|
|
18
|
+
//# sourceMappingURL=empty-card.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-card.component.d.ts","sourceRoot":"","sources":["../../src/empty-card/empty-card.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,cAAc;IAC7B,oHAAoH;IACpH,WAAW,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,WAAW,EAAE,MAAM,CAAC;IACpB,qEAAqE;IACrE,UAAU,CAAC,IAAI,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,GAAI;;;CAA+B,sBAMpE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA0B9C,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Button, Layer, Tile } from "@carbon/react";
|
|
4
|
+
import { useLayoutType } from "@egen-civitas/esm-react-utils";
|
|
5
|
+
import { getCoreTranslation } from "@egen-civitas/esm-translations";
|
|
6
|
+
import { CardHeader } from "../cards/index.js";
|
|
7
|
+
import styles from "./empty-card.module.scss";
|
|
8
|
+
export const EmptyCardIllustration = ({ width = '64', height = '64' })=>{
|
|
9
|
+
return /*#__PURE__*/ _jsx("svg", {
|
|
10
|
+
width: width,
|
|
11
|
+
height: height,
|
|
12
|
+
viewBox: "0 0 64 64",
|
|
13
|
+
children: /*#__PURE__*/ _jsx("use", {
|
|
14
|
+
href: `#egen-empty-data-illustration`
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Re-usable card for displaying an empty state
|
|
20
|
+
*/ export const EmptyCard = (props)=>{
|
|
21
|
+
const isTablet = useLayoutType() === 'tablet';
|
|
22
|
+
const launchForm = props.launchForm;
|
|
23
|
+
return /*#__PURE__*/ _jsx(Layer, {
|
|
24
|
+
className: styles.layer,
|
|
25
|
+
children: /*#__PURE__*/ _jsxs(Tile, {
|
|
26
|
+
className: styles.tile,
|
|
27
|
+
children: [
|
|
28
|
+
/*#__PURE__*/ _jsx(CardHeader, {
|
|
29
|
+
title: props.headerTitle
|
|
30
|
+
}),
|
|
31
|
+
/*#__PURE__*/ _jsx(EmptyCardIllustration, {}),
|
|
32
|
+
/*#__PURE__*/ _jsx("p", {
|
|
33
|
+
className: styles.content,
|
|
34
|
+
children: getCoreTranslation('emptyStateText', 'There are no {{displayText}} to display', {
|
|
35
|
+
displayText: props.displayText
|
|
36
|
+
})
|
|
37
|
+
}),
|
|
38
|
+
/*#__PURE__*/ _jsx("p", {
|
|
39
|
+
className: styles.action,
|
|
40
|
+
children: launchForm && /*#__PURE__*/ _jsx(Button, {
|
|
41
|
+
onClick: ()=>launchForm(),
|
|
42
|
+
kind: "ghost",
|
|
43
|
+
size: isTablet ? 'lg' : 'sm',
|
|
44
|
+
children: getCoreTranslation('recordNewEntry', 'Record {{ displayText }}', {
|
|
45
|
+
displayText: props.displayText
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '@carbon/layout';
|
|
2
|
+
@use '@carbon/type';
|
|
3
|
+
@use '../vars' as *;
|
|
4
|
+
|
|
5
|
+
.action {
|
|
6
|
+
margin-bottom: layout.$spacing-03;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.content {
|
|
10
|
+
@include type.type-style('heading-compact-01');
|
|
11
|
+
color: $text-02;
|
|
12
|
+
margin-top: layout.$spacing-05;
|
|
13
|
+
margin-bottom: layout.$spacing-03;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.heading:after {
|
|
17
|
+
content: '';
|
|
18
|
+
display: block;
|
|
19
|
+
width: layout.$spacing-07;
|
|
20
|
+
padding-top: 0.188rem;
|
|
21
|
+
border-bottom: 0.375rem solid var(--brand-03);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tile {
|
|
25
|
+
text-align: center;
|
|
26
|
+
border: 1px solid $ui-03;
|
|
27
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EmptyCard } from "./empty-card.component.js";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Components/EmptyCard',
|
|
5
|
+
component: EmptyCard,
|
|
6
|
+
tags: [
|
|
7
|
+
'autodocs'
|
|
8
|
+
]
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Default = {
|
|
12
|
+
args: {
|
|
13
|
+
headerTitle: 'Vitals',
|
|
14
|
+
displayText: 'vitals'
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export const WithLaunchForm = {
|
|
18
|
+
args: {
|
|
19
|
+
headerTitle: 'Medications',
|
|
20
|
+
displayText: 'medications',
|
|
21
|
+
launchForm: ()=>window.alert('Launch form clicked')
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g fill="none"><path fill="#F4F4F4" d="M38.133 13.186H21.947a1.39 1.39 0 0 0-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 0 1-.927-.493L3.664 12.751a.74.74 0 0 1 .492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.74.74 0 0 1 .926.492L38.076 13z"/><path fill="#8D8D8D" d="M41.664 13 38.026 1.117A1.576 1.576 0 0 0 36.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.58 1.58 0 0 0-1.046 1.97l12.436 40.616a1.58 1.58 0 0 0 1.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 0 1-1.737-.923L.247 12.682a1.39 1.39 0 0 1 .923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 0 1 1.737.923L41.47 13l.057.186h.193l-.057-.185z"/><path fill="#C6C6C6" d="M11.378 11.855a.84.84 0 0 1-.798-.59L9.385 7.361a.835.835 0 0 1 .554-1.042l16.318-4.996a.836.836 0 0 1 1.042.554l1.195 3.902a.836.836 0 0 1-.554 1.043l-16.318 4.995a.8.8 0 0 1-.244.037z"/><circle cx="17.636" cy="2.314" r="1.855" fill="#C6C6C6"/><circle cx="17.636" cy="2.314" r="1.175" fill="#FFF"/><path fill="#F4F4F4" d="M55.893 53.995H24.544a.79.79 0 0 1-.788-.789V15.644a.79.79 0 0 1 .788-.788h31.349a.79.79 0 0 1 .788.788v37.562a.79.79 0 0 1-.788.789"/><path fill="#8D8D8D" d="M41.47 13H21.948a1.58 1.58 0 0 0-1.576 1.577V52.4l.185-.057V14.577a1.39 1.39 0 0 1 1.391-1.39h19.581zm17.02 0H21.947a1.58 1.58 0 0 0-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.58 1.58 0 0 0 1.576-1.577V14.577a1.58 1.58 0 0 0-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947a1.39 1.39 0 0 1-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39z"/><path fill="#C6C6C6" d="M48.751 17.082H31.686a.836.836 0 0 1-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08a.836.836 0 0 1-.835.836z"/><circle cx="40.218" cy="9.755" r="1.855" fill="#C6C6C6"/><circle cx="40.218" cy="9.755" r="1.13" fill="#FFF"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/empty-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmptyCard, EmptyCardIllustration } from "./empty-card.component.js";
|