@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,143 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// EGEN — LayoutGrid
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// Le voile de fond (.backdrop) réutilise le mixin panel.panel-overlay —
|
|
5
|
+
// exactement le même que dialogs/card-modal (cohérence visuelle entre les
|
|
6
|
+
// deux composants "carte qui s'agrandit avec voile"), plutôt qu'un
|
|
7
|
+
// bg-black + opacité manuelle. Cartes par défaut (bg-white de l'original) →
|
|
8
|
+
// --colors-surface-card, adaptatif clair/sombre (contrairement à
|
|
9
|
+
// InteractiveSelector/folder-gallery, ce composant n'a pas d'ambiance
|
|
10
|
+
// "toujours sombre" assumée — c'est juste une grille de cartes blanches
|
|
11
|
+
// qui doit s'adapter au thème de l'app hôte). Zéro couleur hex/rgb figée —
|
|
12
|
+
// voir docs/guide-composants-et-theme.md §5.
|
|
13
|
+
//
|
|
14
|
+
// Z-INDEX : valeurs volontairement LOCALES (littérales), pas l'échelle
|
|
15
|
+
// --z-index-* globale. LayoutGrid n'est pas porté via portal (pas de
|
|
16
|
+
// position:fixed plein écran, juste des frères directs dans .root) — c'est
|
|
17
|
+
// un empilement purement local entre quelques éléments. Utiliser l'échelle
|
|
18
|
+
// globale ici inverserait l'ordre relatif voulu (--z-index-overlay(300) >
|
|
19
|
+
// --z-index-raised(10) placerait le voile AU-DESSUS de lastSelected, alors
|
|
20
|
+
// que l'original veut l'inverse) : on garde donc les valeurs relatives du
|
|
21
|
+
// composant source.
|
|
22
|
+
// ============================================================================
|
|
23
|
+
|
|
24
|
+
@use '../../panel' as panel;
|
|
25
|
+
|
|
26
|
+
.root {
|
|
27
|
+
position: relative;
|
|
28
|
+
width: 100%;
|
|
29
|
+
padding: 2.5rem; // Tailwind p-10
|
|
30
|
+
display: grid;
|
|
31
|
+
// BUGFIX : l'original s'appuie sur `h-full` en cascade depuis un ancêtre
|
|
32
|
+
// de hauteur définie (page plein écran dans la démo source). Dans une
|
|
33
|
+
// page de contenu normale (.section, hauteur automatique), height:100%
|
|
34
|
+
// se propage contre un ancêtre indéfini et toute la chaîne (cartes,
|
|
35
|
+
// image en position:absolute qui ne contribue à aucune hauteur
|
|
36
|
+
// intrinsèque) s'effondre à 0px — composant invisible. grid-auto-rows
|
|
37
|
+
// donne aux cellules une hauteur concrète, autonome vis-à-vis du
|
|
38
|
+
// contexte d'accueil.
|
|
39
|
+
grid-auto-rows: 20rem;
|
|
40
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
41
|
+
gap: 1rem; // Tailwind gap-4
|
|
42
|
+
max-width: 80rem; // Tailwind max-w-7xl
|
|
43
|
+
margin: 0 auto;
|
|
44
|
+
|
|
45
|
+
@media (min-width: 768px) {
|
|
46
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// ── Carte ────────────────────────────────────────────────────────────────────
|
|
51
|
+
|
|
52
|
+
.card {
|
|
53
|
+
position: relative;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.card--default {
|
|
58
|
+
height: 100%;
|
|
59
|
+
width: 100%;
|
|
60
|
+
background: var(--colors-surface-card);
|
|
61
|
+
border-radius: var(--border-radius-xl);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.card--lastSelected {
|
|
65
|
+
z-index: 40;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.card--selected {
|
|
69
|
+
position: absolute;
|
|
70
|
+
inset: 0;
|
|
71
|
+
height: 50%; // Tailwind h-1/2
|
|
72
|
+
width: 100%;
|
|
73
|
+
margin: auto;
|
|
74
|
+
z-index: 50;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
border-radius: var(--border-radius-lg);
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
|
|
83
|
+
@media (min-width: 768px) {
|
|
84
|
+
width: 50%; // Tailwind md:w-1/2
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.image {
|
|
89
|
+
position: absolute;
|
|
90
|
+
inset: 0;
|
|
91
|
+
height: 100%;
|
|
92
|
+
width: 100%;
|
|
93
|
+
object-fit: cover;
|
|
94
|
+
object-position: top;
|
|
95
|
+
transition: all var(--animation-duration-normal) var(--animation-easing-in-out);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// ── Voile de fond ────────────────────────────────────────────────────────────
|
|
99
|
+
|
|
100
|
+
.backdrop {
|
|
101
|
+
position: absolute;
|
|
102
|
+
inset: 0;
|
|
103
|
+
z-index: 10;
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
@include panel.panel-overlay;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.backdrop--interactive {
|
|
109
|
+
pointer-events: auto;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// ── Contenu de la carte sélectionnée ─────────────────────────────────────────
|
|
113
|
+
// z-index encore plus locaux : propres au nouveau contexte d'empilement
|
|
114
|
+
// établi par .selectedCard (position: relative) — sans lien avec les
|
|
115
|
+
// valeurs 10/40/50 ci-dessus.
|
|
116
|
+
|
|
117
|
+
.selectedCard {
|
|
118
|
+
position: relative;
|
|
119
|
+
z-index: 1; // au-dessus de LayoutGridImage (frère sans z-index explicite)
|
|
120
|
+
height: 100%;
|
|
121
|
+
width: 100%;
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
justify-content: flex-end;
|
|
125
|
+
background: transparent;
|
|
126
|
+
border-radius: var(--border-radius-lg);
|
|
127
|
+
box-shadow: var(--shadows-2xl);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.scrim {
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: 0;
|
|
133
|
+
z-index: 1;
|
|
134
|
+
height: 100%;
|
|
135
|
+
width: 100%;
|
|
136
|
+
background: var(--colors-neutral-950);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.selectedContent {
|
|
140
|
+
position: relative;
|
|
141
|
+
z-index: 2;
|
|
142
|
+
padding: 0 2rem 1rem; // Tailwind px-8 pb-4
|
|
143
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @category LayoutGrid */
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
/** Une carte de la grille — contenu entièrement libre, fourni par le consommateur. */
|
|
4
|
+
export interface LayoutGridItem {
|
|
5
|
+
id: string | number;
|
|
6
|
+
/** Contenu affiché une fois la carte sélectionnée (étirée en plein cadre). */
|
|
7
|
+
content: React.ReactNode;
|
|
8
|
+
/** Classes de positionnement dans la grille (ex. `grid-column`/`grid-row` côté appelant). Passées telles quelles. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** URL de la vignette affichée dans la grille, et pendant la transition de layout partagée. */
|
|
11
|
+
thumbnail: string;
|
|
12
|
+
}
|
|
13
|
+
export interface LayoutGridProps {
|
|
14
|
+
/** Cartes de la grille. */
|
|
15
|
+
items: LayoutGridItem[];
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=layout-grid.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-grid.types.d.ts","sourceRoot":"","sources":["../../../src/containers/layout-grid/layout-grid.types.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,sFAAsF;AACtF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,8EAA8E;IAC9E,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,qHAAqH;IACrH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+FAA+F;IAC/F,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,2BAA2B;IAC3B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/** @category LayoutGrid */ export { };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** @module @category UI */
|
|
2
|
+
import React, { type ComponentProps } from 'react';
|
|
3
|
+
import { OverflowMenuItem } from '@carbon/react';
|
|
4
|
+
interface CustomOverflowMenuContextValue {
|
|
5
|
+
closeMenu: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function useCustomOverflowMenu(): CustomOverflowMenuContextValue;
|
|
8
|
+
interface CustomOverflowMenuProps {
|
|
9
|
+
/** The content to display as the menu trigger button. */
|
|
10
|
+
menuTitle: React.ReactNode;
|
|
11
|
+
/** The menu items to display when the menu is open. */
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A custom overflow menu that supports a text/icon trigger button instead of
|
|
16
|
+
* Carbon's icon-only OverflowMenu trigger. Uses CSS-based show/hide rather
|
|
17
|
+
* than Carbon's FloatingMenu portal, so keyboard behavior (Escape, arrow keys,
|
|
18
|
+
* auto-focus) is implemented here to match the WAI-ARIA menu button pattern.
|
|
19
|
+
*/
|
|
20
|
+
export declare function CustomOverflowMenu({ menuTitle, children }: CustomOverflowMenuProps): React.JSX.Element;
|
|
21
|
+
type OverflowMenuItemProps = ComponentProps<typeof OverflowMenuItem>;
|
|
22
|
+
export declare function CustomOverflowMenuItem(props: Omit<OverflowMenuItemProps, 'closeMenu'>): React.JSX.Element;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=custom-overflow-menu.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-overflow-menu.component.d.ts","sourceRoot":"","sources":["../../src/custom-overflow-menu/custom-overflow-menu.component.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAK,EAAE,EAWZ,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAIjD,UAAU,8BAA8B;IACtC,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,qBAAqB,mCAMpC;AAED,UAAU,uBAAuB;IAC/B,yDAAyD;IACzD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,uDAAuD;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,uBAAuB,qBAiHlF;AAED,KAAK,qBAAqB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAErE,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE,WAAW,CAAC,qBAGrF"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** @module @category UI */ import React, { Children, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useId, useMemo, useRef } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { OverflowMenuItem } from "@carbon/react";
|
|
5
|
+
import { useLayoutType, useOnClickOutside } from "@egen-civitas/esm-react-utils";
|
|
6
|
+
import styles from "./custom-overflow-menu.module.scss";
|
|
7
|
+
const CustomOverflowMenuContext = /*#__PURE__*/ createContext(null);
|
|
8
|
+
export function useCustomOverflowMenu() {
|
|
9
|
+
const context = useContext(CustomOverflowMenuContext);
|
|
10
|
+
if (!context) {
|
|
11
|
+
throw new Error('useCustomOverflowMenu must be used within a CustomOverflowMenu');
|
|
12
|
+
}
|
|
13
|
+
return context;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A custom overflow menu that supports a text/icon trigger button instead of
|
|
17
|
+
* Carbon's icon-only OverflowMenu trigger. Uses CSS-based show/hide rather
|
|
18
|
+
* than Carbon's FloatingMenu portal, so keyboard behavior (Escape, arrow keys,
|
|
19
|
+
* auto-focus) is implemented here to match the WAI-ARIA menu button pattern.
|
|
20
|
+
*/ export function CustomOverflowMenu({ menuTitle, children }) {
|
|
21
|
+
const [menuIsOpen, setMenuIsOpen] = React.useState(false);
|
|
22
|
+
const ref = useOnClickOutside(()=>setMenuIsOpen(false), menuIsOpen);
|
|
23
|
+
const isTablet = useLayoutType() === 'tablet';
|
|
24
|
+
const toggleShowMenu = useCallback(()=>setMenuIsOpen((state)=>!state), []);
|
|
25
|
+
const triggerRef = useRef(null);
|
|
26
|
+
const menuRef = useRef(null);
|
|
27
|
+
const uniqueId = useId();
|
|
28
|
+
const triggerId = `custom-overflow-menu-trigger-${uniqueId}`;
|
|
29
|
+
const menuId = `custom-overflow-menu-${uniqueId}`;
|
|
30
|
+
const closeMenuAndFocusTrigger = useCallback(()=>{
|
|
31
|
+
setMenuIsOpen(false);
|
|
32
|
+
triggerRef.current?.focus();
|
|
33
|
+
}, []);
|
|
34
|
+
const contextValue = useMemo(()=>({
|
|
35
|
+
closeMenu: closeMenuAndFocusTrigger
|
|
36
|
+
}), [
|
|
37
|
+
closeMenuAndFocusTrigger
|
|
38
|
+
]);
|
|
39
|
+
const handleEscapeKey = useCallback((e)=>{
|
|
40
|
+
if (e.key === 'Escape' && menuIsOpen) {
|
|
41
|
+
e.stopPropagation();
|
|
42
|
+
closeMenuAndFocusTrigger();
|
|
43
|
+
}
|
|
44
|
+
}, [
|
|
45
|
+
closeMenuAndFocusTrigger,
|
|
46
|
+
menuIsOpen
|
|
47
|
+
]);
|
|
48
|
+
const childArray = Children.toArray(children);
|
|
49
|
+
useEffect(()=>{
|
|
50
|
+
if (menuIsOpen && menuRef.current) {
|
|
51
|
+
const firstItem = menuRef.current.querySelector('[role="menuitem"]:not([disabled])');
|
|
52
|
+
firstItem?.focus();
|
|
53
|
+
}
|
|
54
|
+
}, [
|
|
55
|
+
menuIsOpen
|
|
56
|
+
]);
|
|
57
|
+
const handleOverflowMenuItemFocus = useCallback(({ currentIndex, direction })=>{
|
|
58
|
+
const enabledItems = menuRef.current?.querySelectorAll('[role="menuitem"]:not([disabled])');
|
|
59
|
+
if (!enabledItems?.length) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const activeItem = document.activeElement?.closest?.('[role="menuitem"]') ?? document.activeElement;
|
|
63
|
+
const currentPos = Array.from(enabledItems).indexOf(activeItem);
|
|
64
|
+
if (currentPos === -1) {
|
|
65
|
+
enabledItems[direction > 0 ? 0 : enabledItems.length - 1]?.focus();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const nextPos = currentPos + direction;
|
|
69
|
+
const wrappedPos = nextPos < 0 ? enabledItems.length - 1 : nextPos >= enabledItems.length ? 0 : nextPos;
|
|
70
|
+
enabledItems[wrappedPos]?.focus();
|
|
71
|
+
}, []);
|
|
72
|
+
const enrichedChildren = childArray.map((child, index)=>{
|
|
73
|
+
if (/*#__PURE__*/ isValidElement(child)) {
|
|
74
|
+
return /*#__PURE__*/ cloneElement(child, {
|
|
75
|
+
closeMenu: closeMenuAndFocusTrigger,
|
|
76
|
+
handleOverflowMenuItemFocus,
|
|
77
|
+
index
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return child;
|
|
81
|
+
});
|
|
82
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
83
|
+
"data-overflow-menu": true,
|
|
84
|
+
className: classNames('cds--overflow-menu', styles.container),
|
|
85
|
+
ref: ref,
|
|
86
|
+
children: [
|
|
87
|
+
/*#__PURE__*/ _jsx("button", {
|
|
88
|
+
className: classNames('cds--btn', 'cds--btn--ghost', 'cds--overflow-menu__trigger', {
|
|
89
|
+
'cds--overflow-menu--open': menuIsOpen
|
|
90
|
+
}, styles.overflowMenuButton),
|
|
91
|
+
"aria-controls": menuId,
|
|
92
|
+
"aria-expanded": menuIsOpen,
|
|
93
|
+
"aria-haspopup": "true",
|
|
94
|
+
id: triggerId,
|
|
95
|
+
onClick: toggleShowMenu,
|
|
96
|
+
onKeyDown: handleEscapeKey,
|
|
97
|
+
ref: triggerRef,
|
|
98
|
+
children: menuTitle
|
|
99
|
+
}),
|
|
100
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
101
|
+
className: classNames('cds--overflow-menu-options', 'cds--overflow-menu--flip', styles.menu, {
|
|
102
|
+
[styles.show]: menuIsOpen
|
|
103
|
+
}),
|
|
104
|
+
"aria-labelledby": triggerId,
|
|
105
|
+
"data-floating-menu-direction": "bottom",
|
|
106
|
+
id: menuId,
|
|
107
|
+
onKeyDown: handleEscapeKey,
|
|
108
|
+
ref: menuRef,
|
|
109
|
+
role: "menu",
|
|
110
|
+
tabIndex: -1,
|
|
111
|
+
children: [
|
|
112
|
+
/*#__PURE__*/ _jsx("ul", {
|
|
113
|
+
className: classNames('cds--overflow-menu-options__content', {
|
|
114
|
+
'cds--overflow-menu-options--lg': isTablet
|
|
115
|
+
}),
|
|
116
|
+
children: /*#__PURE__*/ _jsx(CustomOverflowMenuContext.Provider, {
|
|
117
|
+
value: contextValue,
|
|
118
|
+
children: enrichedChildren
|
|
119
|
+
})
|
|
120
|
+
}),
|
|
121
|
+
/*#__PURE__*/ _jsx("span", {})
|
|
122
|
+
]
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
export function CustomOverflowMenuItem(props) {
|
|
128
|
+
const context = useContext(CustomOverflowMenuContext);
|
|
129
|
+
return /*#__PURE__*/ _jsx(OverflowMenuItem, {
|
|
130
|
+
...props,
|
|
131
|
+
closeMenu: context?.closeMenu
|
|
132
|
+
});
|
|
133
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use '@carbon/colors';
|
|
2
|
+
@use '@carbon/layout';
|
|
3
|
+
@use '../vars' as *;
|
|
4
|
+
|
|
5
|
+
.container {
|
|
6
|
+
width: auto;
|
|
7
|
+
height: auto;
|
|
8
|
+
|
|
9
|
+
:global(.cds--overflow-menu__trigger) {
|
|
10
|
+
min-height: layout.$spacing-09;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.menu {
|
|
15
|
+
display: none;
|
|
16
|
+
top: 3.125rem;
|
|
17
|
+
min-width: initial;
|
|
18
|
+
left: auto;
|
|
19
|
+
right: 0;
|
|
20
|
+
background-color: $ui-01;
|
|
21
|
+
margin-right: 0.2rem;
|
|
22
|
+
box-shadow: 0 6px 6px rgb(0 0 0 / 30%);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.show {
|
|
26
|
+
display: block;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.overflowMenuButton {
|
|
30
|
+
width: auto;
|
|
31
|
+
height: auto;
|
|
32
|
+
padding: 0.875rem layout.$spacing-05;
|
|
33
|
+
color: colors.$blue-60;
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: colors.$gray-10-hover;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CustomOverflowMenu, CustomOverflowMenuItem } from "./custom-overflow-menu.component.js";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/CustomOverflowMenu',
|
|
6
|
+
component: CustomOverflowMenu,
|
|
7
|
+
tags: [
|
|
8
|
+
'autodocs'
|
|
9
|
+
]
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Default = {
|
|
13
|
+
args: {
|
|
14
|
+
menuTitle: 'Actions',
|
|
15
|
+
children: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
16
|
+
children: [
|
|
17
|
+
/*#__PURE__*/ _jsx(CustomOverflowMenuItem, {
|
|
18
|
+
itemText: "Edit"
|
|
19
|
+
}),
|
|
20
|
+
/*#__PURE__*/ _jsx(CustomOverflowMenuItem, {
|
|
21
|
+
itemText: "Delete"
|
|
22
|
+
})
|
|
23
|
+
]
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export const WithMultipleItems = {
|
|
28
|
+
args: {
|
|
29
|
+
menuTitle: 'Options',
|
|
30
|
+
children: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
31
|
+
children: [
|
|
32
|
+
/*#__PURE__*/ _jsx(CustomOverflowMenuItem, {
|
|
33
|
+
itemText: "View details"
|
|
34
|
+
}),
|
|
35
|
+
/*#__PURE__*/ _jsx(CustomOverflowMenuItem, {
|
|
36
|
+
itemText: "Edit"
|
|
37
|
+
}),
|
|
38
|
+
/*#__PURE__*/ _jsx(CustomOverflowMenuItem, {
|
|
39
|
+
itemText: "Print"
|
|
40
|
+
}),
|
|
41
|
+
/*#__PURE__*/ _jsx(CustomOverflowMenuItem, {
|
|
42
|
+
itemText: "Delete",
|
|
43
|
+
hasDivider: true
|
|
44
|
+
})
|
|
45
|
+
]
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export const WithDisabledItem = {
|
|
50
|
+
args: {
|
|
51
|
+
menuTitle: 'Actions',
|
|
52
|
+
children: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
53
|
+
children: [
|
|
54
|
+
/*#__PURE__*/ _jsx(CustomOverflowMenuItem, {
|
|
55
|
+
itemText: "Edit"
|
|
56
|
+
}),
|
|
57
|
+
/*#__PURE__*/ _jsx(CustomOverflowMenuItem, {
|
|
58
|
+
itemText: "Delete",
|
|
59
|
+
disabled: true
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
})
|
|
63
|
+
}
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/custom-overflow-menu/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./custom-overflow-menu.component.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type IconId } from '../icons/index.js';
|
|
3
|
+
export interface DashboardExtensionProps {
|
|
4
|
+
path: string;
|
|
5
|
+
title: string;
|
|
6
|
+
basePath?: string;
|
|
7
|
+
icon?: IconId;
|
|
8
|
+
}
|
|
9
|
+
export declare const DashboardExtension: ({ path, title, basePath, icon }: DashboardExtensionProps) => React.JSX.Element;
|
|
10
|
+
export declare function createDashboard(props: Omit<DashboardExtensionProps, 'basePath'>): ({ basePath }: {
|
|
11
|
+
basePath: string;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dashboard-extension/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGhD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,kBAAkB,GAAI,iCAAiC,uBAAuB,sBAmC1F,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,IAC7D,cAAc;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,uBAOpD"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import { BrowserRouter, useLocation } from "react-router-dom";
|
|
6
|
+
import { ConfigurableLink } from "@egen-civitas/esm-react-utils";
|
|
7
|
+
import { MaybeIcon } from "../icons/icons.js";
|
|
8
|
+
import styles from "./dashboard.module.scss";
|
|
9
|
+
export const DashboardExtension = ({ path, title, basePath, icon })=>{
|
|
10
|
+
const { t } = useTranslation();
|
|
11
|
+
const location = useLocation();
|
|
12
|
+
const isActive = useMemo(()=>{
|
|
13
|
+
if (!path) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
const p = path.startsWith('/') ? path.slice(1) : path;
|
|
17
|
+
if (p.startsWith('http')) {
|
|
18
|
+
return p === window.location.href;
|
|
19
|
+
}
|
|
20
|
+
const pathSegments = p.split('/').map((s)=>decodeURIComponent(s));
|
|
21
|
+
const localSegments = (location.pathname ?? '').split('/').slice(1).map((s)=>decodeURIComponent(s));
|
|
22
|
+
// Check if pathSegments appear as a contiguous slice anywhere in localSegments
|
|
23
|
+
return localSegments.some((_, i)=>pathSegments.every((seg, j)=>localSegments[i + j] === seg));
|
|
24
|
+
}, [
|
|
25
|
+
location.pathname,
|
|
26
|
+
path
|
|
27
|
+
]);
|
|
28
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
29
|
+
children: /*#__PURE__*/ _jsx(ConfigurableLink, {
|
|
30
|
+
className: classNames('cds--side-nav__link', {
|
|
31
|
+
'active-left-nav-link': isActive
|
|
32
|
+
}),
|
|
33
|
+
to: `${basePath}/${encodeURIComponent(path)}`,
|
|
34
|
+
children: /*#__PURE__*/ _jsxs("span", {
|
|
35
|
+
className: styles.menu,
|
|
36
|
+
children: [
|
|
37
|
+
/*#__PURE__*/ _jsx(MaybeIcon, {
|
|
38
|
+
icon: icon,
|
|
39
|
+
className: styles.icon,
|
|
40
|
+
size: 16
|
|
41
|
+
}),
|
|
42
|
+
/*#__PURE__*/ _jsx("span", {
|
|
43
|
+
children: t(title)
|
|
44
|
+
})
|
|
45
|
+
]
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
}, path);
|
|
49
|
+
};
|
|
50
|
+
export function createDashboard(props) {
|
|
51
|
+
return function({ basePath }) {
|
|
52
|
+
return /*#__PURE__*/ _jsx(BrowserRouter, {
|
|
53
|
+
children: /*#__PURE__*/ _jsx(DashboardExtension, {
|
|
54
|
+
basePath: basePath,
|
|
55
|
+
...props
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-batch-actions.component.d.ts","sourceRoot":"","sources":["../../src/data-table-batch-actions/data-table-batch-actions.component.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgD,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAgB1G,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAU9D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/** @module @category UI */ import React from "react";
|
|
3
|
+
import { TableBatchActions as CarbonTableBatchActions } from "@carbon/react";
|
|
4
|
+
import { getCoreTranslation } from "@egen-civitas/esm-translations";
|
|
5
|
+
// Maps Carbon's internal translateWithId keys to Egen core translation keys
|
|
6
|
+
const carbonToCoreTranslationMap = {
|
|
7
|
+
'carbon.table.batch.cancel': 'cancel',
|
|
8
|
+
'carbon.table.batch.items.selected': 'batchActionsItemsSelected',
|
|
9
|
+
'carbon.table.batch.item.selected': 'batchActionItemSelected',
|
|
10
|
+
'carbon.table.batch.selectAll': 'selectAll'
|
|
11
|
+
};
|
|
12
|
+
/*
|
|
13
|
+
* A wrapper around Carbon's `TableBatchActions` component that provides
|
|
14
|
+
* Egen core translations by default. The `translateWithId` prop is
|
|
15
|
+
* pre-wired so that batch action strings are automatically translated.
|
|
16
|
+
*/ export const TableBatchActions = (props)=>{
|
|
17
|
+
return /*#__PURE__*/ _jsx(CarbonTableBatchActions, {
|
|
18
|
+
translateWithId: (id, state)=>{
|
|
19
|
+
const key = carbonToCoreTranslationMap[id];
|
|
20
|
+
return key ? getCoreTranslation(key, id, state) : id;
|
|
21
|
+
},
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data-table-batch-actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./data-table-batch-actions.component.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AutoCloseDialogProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare function AutoCloseDialog({ children }: Readonly<AutoCloseDialogProps>): React.JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=auto-close-dialog.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-close-dialog.component.d.ts","sourceRoot":"","sources":["../../src/datepicker/auto-close-dialog.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,oBAAoB,CAAC,qBAa3E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { useContext } from "react";
|
|
3
|
+
import { DatePickerStateContext, DateRangePickerStateContext, Dialog } from "react-aria-components";
|
|
4
|
+
import { useOnClickOutside } from "@egen-civitas/esm-react-utils";
|
|
5
|
+
import styles from "./datepicker.module.scss";
|
|
6
|
+
export function AutoCloseDialog({ children }) {
|
|
7
|
+
const datePickerState = useContext(DatePickerStateContext);
|
|
8
|
+
const rangePickerState = useContext(DateRangePickerStateContext);
|
|
9
|
+
const state = datePickerState ?? rangePickerState;
|
|
10
|
+
const boundaryRef = useOnClickOutside(()=>state?.close());
|
|
11
|
+
return /*#__PURE__*/ _jsx(Dialog, {
|
|
12
|
+
className: styles.dialog,
|
|
13
|
+
ref: boundaryRef,
|
|
14
|
+
children: children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type CalendarDate, type DateValue } from '@internationalized/date';
|
|
3
|
+
type CalendarPopoverProps = {
|
|
4
|
+
/** The current date */
|
|
5
|
+
today_: CalendarDate;
|
|
6
|
+
} & ({
|
|
7
|
+
/** Either 'single' (for a Calendar) or 'range' (for a RangeCalendar) */
|
|
8
|
+
variant: 'single';
|
|
9
|
+
/** The minimum selectable date (only used for RangeCalendar) */
|
|
10
|
+
minDate?: never;
|
|
11
|
+
/** The maximum selectable date (only used for RangeCalendar) */
|
|
12
|
+
maxDate?: never;
|
|
13
|
+
} | {
|
|
14
|
+
/** Either 'single' (for a Calendar) or 'range' (for a range) */
|
|
15
|
+
variant: 'range';
|
|
16
|
+
/** The minimum selectable date (only used for RangeCalendar) */
|
|
17
|
+
minDate?: DateValue | null;
|
|
18
|
+
/** The maximum selectable date (only used for RangeCalendar) */
|
|
19
|
+
maxDate?: DateValue | null;
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* The calendar dropdown content shared between the single and range date pickers.
|
|
23
|
+
* Renders the popover, auto-close dialog, navigation header, and calendar grid.
|
|
24
|
+
* The `variant` prop selects between Calendar (single) and RangeCalendar (range).
|
|
25
|
+
*/
|
|
26
|
+
export declare const CalendarPopover: React.ForwardRefExoticComponent<CalendarPopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=calendar-popover.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-popover.component.d.ts","sourceRoot":"","sources":["../../src/datepicker/calendar-popover.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAM5E,KAAK,oBAAoB,GAAG;IAC1B,uBAAuB;IACvB,MAAM,EAAE,YAAY,CAAC;CACtB,GAAG,CACA;IACE,wEAAwE;IACxE,OAAO,EAAE,QAAQ,CAAC;IAClB,gEAAgE;IAChE,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACE,gEAAgE;IAChE,OAAO,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC5B,CACJ,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,6FAyC1B,CAAC"}
|