@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,130 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** @category CircularGallery */ import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "../../icons/index.js";
|
|
5
|
+
import { GalleryImage } from "./gallery-image.component.js";
|
|
6
|
+
import { GalleryTabs } from "./gallery-tabs.component.js";
|
|
7
|
+
import styles from "./circular-gallery.module.scss";
|
|
8
|
+
/**
|
|
9
|
+
* `CircularGallery` — galerie où chaque image est une petite pastille
|
|
10
|
+
* circulaire (rangée d'onglets en bas) qui se déploie en plein cadre au
|
|
11
|
+
* clic, avec un rebond à la fermeture (GSAP `MotionPathPlugin`).
|
|
12
|
+
*
|
|
13
|
+
* Repris à l'identique de l'original : navigation précédent/suivant
|
|
14
|
+
* désactivée pendant la transition (`disabled`), défilement automatique
|
|
15
|
+
* (réinitialisé à chaque changement manuel), timeline GSAP en 3 temps par
|
|
16
|
+
* image. Seule différence d'infrastructure : `gsap`/`MotionPathPlugin` sont
|
|
17
|
+
* importés normalement (déjà des dépendances npm du package, ajoutées pour
|
|
18
|
+
* `StaggeredMenuPanel`) au lieu d'être chargés depuis un CDN à l'exécution
|
|
19
|
+
* via injection de `<script>` — ce hack n'a plus lieu d'être ici, et
|
|
20
|
+
* n'aurait de toute façon pas fonctionné (domaine cdnjs.cloudflare.com non
|
|
21
|
+
* autorisé par la politique réseau du projet).
|
|
22
|
+
*/ export const CircularGallery = ({ images, autoplay = true, autoplayInterval = 4500, className, style })=>{
|
|
23
|
+
const [opened, setOpened] = useState(0);
|
|
24
|
+
const [inPlace, setInPlace] = useState(0);
|
|
25
|
+
const [disabled, setDisabled] = useState(false);
|
|
26
|
+
const autoplayTimer = useRef(null);
|
|
27
|
+
const onClick = (index)=>{
|
|
28
|
+
if (!disabled) setOpened(index);
|
|
29
|
+
};
|
|
30
|
+
const onInPlace = (index)=>setInPlace(index);
|
|
31
|
+
const next = useCallback(()=>{
|
|
32
|
+
setOpened((currentOpened)=>{
|
|
33
|
+
let nextIndex = currentOpened + 1;
|
|
34
|
+
if (nextIndex >= images.length) nextIndex = 0;
|
|
35
|
+
return nextIndex;
|
|
36
|
+
});
|
|
37
|
+
}, [
|
|
38
|
+
images.length
|
|
39
|
+
]);
|
|
40
|
+
const prev = useCallback(()=>{
|
|
41
|
+
setOpened((currentOpened)=>{
|
|
42
|
+
let prevIndex = currentOpened - 1;
|
|
43
|
+
if (prevIndex < 0) prevIndex = images.length - 1;
|
|
44
|
+
return prevIndex;
|
|
45
|
+
});
|
|
46
|
+
}, [
|
|
47
|
+
images.length
|
|
48
|
+
]);
|
|
49
|
+
// Désactive les clics pendant la transition
|
|
50
|
+
useEffect(()=>setDisabled(true), [
|
|
51
|
+
opened
|
|
52
|
+
]);
|
|
53
|
+
useEffect(()=>setDisabled(false), [
|
|
54
|
+
inPlace
|
|
55
|
+
]);
|
|
56
|
+
// Défilement automatique — réinitialisé à chaque changement (manuel ou auto)
|
|
57
|
+
useEffect(()=>{
|
|
58
|
+
if (!autoplay) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (autoplayTimer.current) {
|
|
62
|
+
clearInterval(autoplayTimer.current);
|
|
63
|
+
}
|
|
64
|
+
autoplayTimer.current = window.setInterval(next, autoplayInterval);
|
|
65
|
+
return ()=>{
|
|
66
|
+
if (autoplayTimer.current) {
|
|
67
|
+
clearInterval(autoplayTimer.current);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}, [
|
|
71
|
+
opened,
|
|
72
|
+
autoplay,
|
|
73
|
+
autoplayInterval,
|
|
74
|
+
next
|
|
75
|
+
]);
|
|
76
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
77
|
+
className: classNames(styles.root, className),
|
|
78
|
+
style: style,
|
|
79
|
+
children: [
|
|
80
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
81
|
+
className: styles.frame,
|
|
82
|
+
children: [
|
|
83
|
+
images.map((image, i)=>/*#__PURE__*/ _jsx("div", {
|
|
84
|
+
className: styles.imageLayer,
|
|
85
|
+
style: {
|
|
86
|
+
zIndex: inPlace === i ? i : images.length + 1
|
|
87
|
+
},
|
|
88
|
+
children: /*#__PURE__*/ _jsx(GalleryImage, {
|
|
89
|
+
total: images.length,
|
|
90
|
+
id: i,
|
|
91
|
+
url: image.url,
|
|
92
|
+
title: image.title,
|
|
93
|
+
open: opened === i,
|
|
94
|
+
inPlace: inPlace === i,
|
|
95
|
+
onInPlace: onInPlace
|
|
96
|
+
})
|
|
97
|
+
}, image.url)),
|
|
98
|
+
/*#__PURE__*/ _jsx("div", {
|
|
99
|
+
className: styles.tabsLayer,
|
|
100
|
+
children: /*#__PURE__*/ _jsx(GalleryTabs, {
|
|
101
|
+
images: images,
|
|
102
|
+
onSelect: onClick
|
|
103
|
+
})
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
}),
|
|
107
|
+
/*#__PURE__*/ _jsx("button", {
|
|
108
|
+
type: "button",
|
|
109
|
+
className: classNames(styles.navButton, styles['navButton--prev']),
|
|
110
|
+
onClick: prev,
|
|
111
|
+
disabled: disabled,
|
|
112
|
+
"aria-label": "Image précédente",
|
|
113
|
+
children: /*#__PURE__*/ _jsx(ChevronLeftIcon, {
|
|
114
|
+
size: 28
|
|
115
|
+
})
|
|
116
|
+
}),
|
|
117
|
+
/*#__PURE__*/ _jsx("button", {
|
|
118
|
+
type: "button",
|
|
119
|
+
className: classNames(styles.navButton, styles['navButton--next']),
|
|
120
|
+
onClick: next,
|
|
121
|
+
disabled: disabled,
|
|
122
|
+
"aria-label": "Image suivante",
|
|
123
|
+
children: /*#__PURE__*/ _jsx(ChevronRightIcon, {
|
|
124
|
+
size: 28
|
|
125
|
+
})
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
export default CircularGallery;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// EGEN — CircularGallery
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// Dimensions, ombres multi-couches et positions reprises telles quelles de
|
|
5
|
+
// l'original. Le chrome des boutons de navigation (fond clair, toujours
|
|
6
|
+
// blanc) est volontairement fixe — comme FolderGallery/MediaPlayer — car il
|
|
7
|
+
// doit rester lisible par-dessus n'importe quelle photo fournie par
|
|
8
|
+
// l'appelant, quel que soit le thème actif de l'app.
|
|
9
|
+
// ============================================================================
|
|
10
|
+
|
|
11
|
+
.root {
|
|
12
|
+
position: relative;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.frame {
|
|
17
|
+
position: relative;
|
|
18
|
+
height: 80vmin;
|
|
19
|
+
width: 80vmin;
|
|
20
|
+
max-height: 600px;
|
|
21
|
+
max-width: 600px;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
border-radius: 20px;
|
|
24
|
+
box-shadow:
|
|
25
|
+
0 2.8px 2.2px color-mix(in srgb, var(--colors-surface-foreground) 2%, transparent),
|
|
26
|
+
0 6.7px 5.3px color-mix(in srgb, var(--colors-surface-foreground) 2.8%, transparent),
|
|
27
|
+
0 12.5px 10px color-mix(in srgb, var(--colors-surface-foreground) 3.5%, transparent),
|
|
28
|
+
0 22.3px 17.9px color-mix(in srgb, var(--colors-surface-foreground) 4.2%, transparent),
|
|
29
|
+
0 41.8px 33.4px color-mix(in srgb, var(--colors-surface-foreground) 5%, transparent),
|
|
30
|
+
0 100px 80px color-mix(in srgb, var(--colors-surface-foreground) 7%, transparent);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.imageLayer {
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 0;
|
|
36
|
+
top: 0;
|
|
37
|
+
height: 100%;
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.tabsLayer {
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 0;
|
|
44
|
+
top: 0;
|
|
45
|
+
z-index: 100;
|
|
46
|
+
height: 100%;
|
|
47
|
+
width: 100%;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.galleryImageSvg {
|
|
52
|
+
height: 100%;
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pointerNone {
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tabGroup {
|
|
61
|
+
pointer-events: auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.tabCircle {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
fill: transparent;
|
|
67
|
+
stroke: color-mix(in srgb, var(--colors-neutral-50) 70%, transparent);
|
|
68
|
+
transition: var(--transitions-colors);
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
stroke: var(--colors-neutral-50);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ── Boutons de navigation ────────────────────────────────────────────────────
|
|
76
|
+
|
|
77
|
+
.navButton {
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: 50%;
|
|
80
|
+
z-index: 101;
|
|
81
|
+
display: flex;
|
|
82
|
+
height: 3.5rem;
|
|
83
|
+
width: 3.5rem;
|
|
84
|
+
transform: translateY(-50%);
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
border-radius: var(--border-radius-full, 9999px);
|
|
88
|
+
border: 2px solid color-mix(in srgb, var(--colors-neutral-50) 20%, transparent);
|
|
89
|
+
background: color-mix(in srgb, var(--colors-neutral-50) 95%, transparent);
|
|
90
|
+
color: var(--colors-neutral-900);
|
|
91
|
+
box-shadow: 0 8px 32px color-mix(in srgb, var(--colors-neutral-950) 12%, transparent);
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
outline: none;
|
|
94
|
+
transition: var(--transitions-default);
|
|
95
|
+
|
|
96
|
+
&:hover:not(:disabled) {
|
|
97
|
+
transform: translateY(-50%) scale(1.1);
|
|
98
|
+
background: var(--colors-neutral-50);
|
|
99
|
+
border-color: color-mix(in srgb, var(--colors-neutral-50) 40%, transparent);
|
|
100
|
+
box-shadow: 0 12px 48px color-mix(in srgb, var(--colors-neutral-950) 18%, transparent);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:active:not(:disabled) {
|
|
104
|
+
transform: translateY(-50%) scale(0.95);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:focus-visible {
|
|
108
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--colors-neutral-50) 50%, transparent);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:disabled {
|
|
112
|
+
opacity: 0.4;
|
|
113
|
+
cursor: not-allowed;
|
|
114
|
+
|
|
115
|
+
&:hover {
|
|
116
|
+
transform: translateY(-50%) scale(1);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@media (min-width: 40rem) {
|
|
121
|
+
height: 4rem;
|
|
122
|
+
width: 4rem;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.navButton--prev {
|
|
127
|
+
left: calc(50% - 40vmin - 40px);
|
|
128
|
+
transform: translateY(-50%) translateX(-50%);
|
|
129
|
+
|
|
130
|
+
&:hover:not(:disabled) {
|
|
131
|
+
transform: translateY(-50%) translateX(-50%) scale(1.1);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&:active:not(:disabled) {
|
|
135
|
+
transform: translateY(-50%) translateX(-50%) scale(0.95);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (min-width: 40rem) {
|
|
139
|
+
left: calc(50% - 300px - 50px);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.navButton--next {
|
|
144
|
+
right: calc(50% - 40vmin - 40px);
|
|
145
|
+
transform: translateY(-50%) translateX(50%);
|
|
146
|
+
|
|
147
|
+
&:hover:not(:disabled) {
|
|
148
|
+
transform: translateY(-50%) translateX(50%) scale(1.1);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:active:not(:disabled) {
|
|
152
|
+
transform: translateY(-50%) translateX(50%) scale(0.95);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@media (min-width: 40rem) {
|
|
156
|
+
right: calc(50% - 300px - 50px);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@media (prefers-reduced-motion: reduce) {
|
|
161
|
+
.navButton,
|
|
162
|
+
.tabCircle {
|
|
163
|
+
transition: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @category CircularGallery */
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
export interface CircularGalleryImage {
|
|
4
|
+
title: string;
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CircularGalleryProps {
|
|
8
|
+
/** Images de la galerie — aucune donnée statique, tout vient d'ici (l'original avait un tableau `images` en dur dans le module). */
|
|
9
|
+
images: CircularGalleryImage[];
|
|
10
|
+
/** Démarre le défilement automatique. Défaut : true. */
|
|
11
|
+
autoplay?: boolean;
|
|
12
|
+
/** Intervalle du défilement automatique (ms). Défaut : 4500. */
|
|
13
|
+
autoplayInterval?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=circular-gallery.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circular-gallery.types.d.ts","sourceRoot":"","sources":["../../../src/carousel/circular-gallery/circular-gallery.types.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,oBAAoB;IACnC,oIAAoI;IACpI,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/** @category CircularGallery */ export { };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @category CircularGallery */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface GalleryImageProps {
|
|
4
|
+
url: string;
|
|
5
|
+
title: string;
|
|
6
|
+
open: boolean;
|
|
7
|
+
inPlace: boolean;
|
|
8
|
+
id: number;
|
|
9
|
+
onInPlace: (id: number) => void;
|
|
10
|
+
total: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Animation reprise à l'identique de l'original : un cercle miniature (dans
|
|
14
|
+
* la rangée d'onglets, en bas) se déploie en plein cadre via un timeline GSAP
|
|
15
|
+
* en 3 temps — remonte au centre, grossit jusqu'à couvrir le cadre (avec un
|
|
16
|
+
* `clipPath` qui bascule de cercle à carré une fois en place) — et, en sens
|
|
17
|
+
* inverse (fermeture), rétrécit puis REBONDIT jusqu'à sa position d'onglet
|
|
18
|
+
* via `MotionPathPlugin` (courbe passant par un point intermédiaire
|
|
19
|
+
* au-dessus de la rangée d'onglets, pour un effet de "chute avec rebond").
|
|
20
|
+
*/
|
|
21
|
+
export declare const GalleryImage: React.FC<GalleryImageProps>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=gallery-image.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gallery-image.component.d.ts","sourceRoot":"","sources":["../../../src/carousel/circular-gallery/gallery-image.component.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAsC,MAAM,OAAO,CAAC;AAO3D,UAAU,iBAAiB;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0GpD,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** @category CircularGallery */ import React, { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { gsap } from "gsap";
|
|
4
|
+
import { MotionPathPlugin } from "gsap/MotionPathPlugin";
|
|
5
|
+
import styles from "./circular-gallery.module.scss";
|
|
6
|
+
gsap.registerPlugin(MotionPathPlugin);
|
|
7
|
+
/**
|
|
8
|
+
* Animation reprise à l'identique de l'original : un cercle miniature (dans
|
|
9
|
+
* la rangée d'onglets, en bas) se déploie en plein cadre via un timeline GSAP
|
|
10
|
+
* en 3 temps — remonte au centre, grossit jusqu'à couvrir le cadre (avec un
|
|
11
|
+
* `clipPath` qui bascule de cercle à carré une fois en place) — et, en sens
|
|
12
|
+
* inverse (fermeture), rétrécit puis REBONDIT jusqu'à sa position d'onglet
|
|
13
|
+
* via `MotionPathPlugin` (courbe passant par un point intermédiaire
|
|
14
|
+
* au-dessus de la rangée d'onglets, pour un effet de "chute avec rebond").
|
|
15
|
+
*/ export const GalleryImage = ({ url, title, open, inPlace, id, onInPlace, total })=>{
|
|
16
|
+
const [firstLoad, setLoaded] = useState(true);
|
|
17
|
+
const clip = useRef(null);
|
|
18
|
+
// ── Constantes d'animation (identiques à l'original) ────────────────────────
|
|
19
|
+
const gap = 10;
|
|
20
|
+
const circleRadius = 7;
|
|
21
|
+
const defaults = {
|
|
22
|
+
transformOrigin: 'center center'
|
|
23
|
+
};
|
|
24
|
+
const duration = 0.4;
|
|
25
|
+
const width = 400;
|
|
26
|
+
const height = 400;
|
|
27
|
+
const scale = 700;
|
|
28
|
+
const bigSize = circleRadius * scale;
|
|
29
|
+
const overlap = 0;
|
|
30
|
+
// ── Calcul des positions (identique à l'original) ───────────────────────────
|
|
31
|
+
const getPosSmall = ()=>({
|
|
32
|
+
cx: width / 2 - (total * (circleRadius * 2 + gap) - gap) / 2 + id * (circleRadius * 2 + gap),
|
|
33
|
+
cy: height - 30,
|
|
34
|
+
r: circleRadius
|
|
35
|
+
});
|
|
36
|
+
const getPosSmallAbove = ()=>({
|
|
37
|
+
cx: width / 2 - (total * (circleRadius * 2 + gap) - gap) / 2 + id * (circleRadius * 2 + gap),
|
|
38
|
+
cy: height / 2,
|
|
39
|
+
r: circleRadius * 2
|
|
40
|
+
});
|
|
41
|
+
const getPosCenter = ()=>({
|
|
42
|
+
cx: width / 2,
|
|
43
|
+
cy: height / 2,
|
|
44
|
+
r: circleRadius * 7
|
|
45
|
+
});
|
|
46
|
+
const getPosEnd = ()=>({
|
|
47
|
+
cx: width / 2 - bigSize + overlap,
|
|
48
|
+
cy: height / 2,
|
|
49
|
+
r: bigSize
|
|
50
|
+
});
|
|
51
|
+
const getPosStart = ()=>({
|
|
52
|
+
cx: width / 2 + bigSize - overlap,
|
|
53
|
+
cy: height / 2,
|
|
54
|
+
r: bigSize
|
|
55
|
+
});
|
|
56
|
+
useEffect(()=>{
|
|
57
|
+
setLoaded(false);
|
|
58
|
+
if (!clip.current) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const flipDuration = firstLoad ? 0 : duration;
|
|
62
|
+
const upDuration = firstLoad ? 0 : 0.2;
|
|
63
|
+
const bounceDuration = firstLoad ? 0.01 : 1;
|
|
64
|
+
const delay = firstLoad ? 0 : flipDuration + upDuration;
|
|
65
|
+
if (open) {
|
|
66
|
+
gsap.timeline().set(clip.current, {
|
|
67
|
+
...defaults,
|
|
68
|
+
...getPosSmall()
|
|
69
|
+
}).to(clip.current, {
|
|
70
|
+
...defaults,
|
|
71
|
+
...getPosCenter(),
|
|
72
|
+
duration: upDuration,
|
|
73
|
+
ease: 'power3.inOut'
|
|
74
|
+
}).to(clip.current, {
|
|
75
|
+
...defaults,
|
|
76
|
+
...getPosEnd(),
|
|
77
|
+
duration: flipDuration,
|
|
78
|
+
ease: 'power4.in',
|
|
79
|
+
onComplete: ()=>onInPlace(id)
|
|
80
|
+
});
|
|
81
|
+
} else {
|
|
82
|
+
gsap.timeline({
|
|
83
|
+
overwrite: true
|
|
84
|
+
}).set(clip.current, {
|
|
85
|
+
...defaults,
|
|
86
|
+
...getPosStart()
|
|
87
|
+
}).to(clip.current, {
|
|
88
|
+
...defaults,
|
|
89
|
+
...getPosCenter(),
|
|
90
|
+
delay,
|
|
91
|
+
duration: flipDuration,
|
|
92
|
+
ease: 'power4.out'
|
|
93
|
+
}).to(clip.current, {
|
|
94
|
+
...defaults,
|
|
95
|
+
motionPath: {
|
|
96
|
+
path: [
|
|
97
|
+
getPosSmallAbove(),
|
|
98
|
+
getPosSmall()
|
|
99
|
+
],
|
|
100
|
+
curviness: 1
|
|
101
|
+
},
|
|
102
|
+
duration: bounceDuration,
|
|
103
|
+
ease: 'bounce.out'
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
107
|
+
}, [
|
|
108
|
+
open
|
|
109
|
+
]);
|
|
110
|
+
return /*#__PURE__*/ _jsxs("svg", {
|
|
111
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
112
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
113
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
114
|
+
preserveAspectRatio: "xMidYMid slice",
|
|
115
|
+
className: styles.galleryImageSvg,
|
|
116
|
+
children: [
|
|
117
|
+
/*#__PURE__*/ _jsxs("defs", {
|
|
118
|
+
children: [
|
|
119
|
+
/*#__PURE__*/ _jsx("clipPath", {
|
|
120
|
+
id: `${id}_circleClip`,
|
|
121
|
+
children: /*#__PURE__*/ _jsx("circle", {
|
|
122
|
+
cx: 0,
|
|
123
|
+
cy: 0,
|
|
124
|
+
r: circleRadius,
|
|
125
|
+
ref: clip
|
|
126
|
+
})
|
|
127
|
+
}),
|
|
128
|
+
/*#__PURE__*/ _jsx("clipPath", {
|
|
129
|
+
id: `${id}_squareClip`,
|
|
130
|
+
children: /*#__PURE__*/ _jsx("rect", {
|
|
131
|
+
width: width,
|
|
132
|
+
height: height
|
|
133
|
+
})
|
|
134
|
+
})
|
|
135
|
+
]
|
|
136
|
+
}),
|
|
137
|
+
/*#__PURE__*/ _jsx("g", {
|
|
138
|
+
clipPath: `url(#${id}${inPlace ? '_squareClip' : '_circleClip'})`,
|
|
139
|
+
children: /*#__PURE__*/ _jsx("image", {
|
|
140
|
+
width: width,
|
|
141
|
+
height: height,
|
|
142
|
+
href: url,
|
|
143
|
+
className: styles.pointerNone,
|
|
144
|
+
children: /*#__PURE__*/ _jsx("title", {
|
|
145
|
+
children: title
|
|
146
|
+
})
|
|
147
|
+
})
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
});
|
|
151
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @category CircularGallery */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { CircularGalleryImage } from './circular-gallery.types.js';
|
|
4
|
+
interface GalleryTabsProps {
|
|
5
|
+
images: CircularGalleryImage[];
|
|
6
|
+
onSelect: (index: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const GalleryTabs: React.FC<GalleryTabsProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=gallery-tabs.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gallery-tabs.component.d.ts","sourceRoot":"","sources":["../../../src/carousel/circular-gallery/gallery-tabs.component.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,UAAU,gBAAgB;IACxB,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAgDlD,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** @category CircularGallery */ import React from "react";
|
|
3
|
+
import styles from "./circular-gallery.module.scss";
|
|
4
|
+
export const GalleryTabs = ({ images, onSelect })=>{
|
|
5
|
+
const gap = 10;
|
|
6
|
+
const circleRadius = 7;
|
|
7
|
+
const width = 400;
|
|
8
|
+
const height = 400;
|
|
9
|
+
const getPosX = (i)=>width / 2 - (images.length * (circleRadius * 2 + gap) - gap) / 2 + i * (circleRadius * 2 + gap);
|
|
10
|
+
const getPosY = ()=>height - 30;
|
|
11
|
+
return /*#__PURE__*/ _jsx("svg", {
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
15
|
+
preserveAspectRatio: "xMidYMid slice",
|
|
16
|
+
className: styles.galleryImageSvg,
|
|
17
|
+
children: images.map((image, i)=>/*#__PURE__*/ _jsxs("g", {
|
|
18
|
+
className: styles.tabGroup,
|
|
19
|
+
children: [
|
|
20
|
+
/*#__PURE__*/ _jsx("defs", {
|
|
21
|
+
children: /*#__PURE__*/ _jsx("clipPath", {
|
|
22
|
+
id: `tab_${i}_clip`,
|
|
23
|
+
children: /*#__PURE__*/ _jsx("circle", {
|
|
24
|
+
cx: getPosX(i),
|
|
25
|
+
cy: getPosY(),
|
|
26
|
+
r: circleRadius
|
|
27
|
+
})
|
|
28
|
+
})
|
|
29
|
+
}),
|
|
30
|
+
/*#__PURE__*/ _jsx("image", {
|
|
31
|
+
x: getPosX(i) - circleRadius,
|
|
32
|
+
y: getPosY() - circleRadius,
|
|
33
|
+
width: circleRadius * 2,
|
|
34
|
+
height: circleRadius * 2,
|
|
35
|
+
href: image.url,
|
|
36
|
+
clipPath: `url(#tab_${i}_clip)`,
|
|
37
|
+
className: styles.pointerNone,
|
|
38
|
+
preserveAspectRatio: "xMidYMid slice"
|
|
39
|
+
}),
|
|
40
|
+
/*#__PURE__*/ _jsx("circle", {
|
|
41
|
+
onClick: ()=>onSelect(i),
|
|
42
|
+
className: styles.tabCircle,
|
|
43
|
+
strokeWidth: 2,
|
|
44
|
+
cx: getPosX(i),
|
|
45
|
+
cy: getPosY(),
|
|
46
|
+
r: circleRadius + 2,
|
|
47
|
+
children: /*#__PURE__*/ _jsx("title", {
|
|
48
|
+
children: image.title
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
}, image.url))
|
|
53
|
+
});
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/carousel/circular-gallery/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** @category ImageSwiper */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ImageSwiperProps } from './image-swiper.types.js';
|
|
4
|
+
/**
|
|
5
|
+
* `ImageSwiper` — pile de cartes en 3D (façon Tinder), qu'on swipe à la
|
|
6
|
+
* souris/au doigt pour faire défiler. La carte swipée repasse en dernière
|
|
7
|
+
* position de la pile (boucle infinie).
|
|
8
|
+
*
|
|
9
|
+
* Toute la physique de glissement (suivi du pointeur via
|
|
10
|
+
* `requestAnimationFrame`, seuil de swipe, rebond de rotation à mi-course,
|
|
11
|
+
* variables CSS `--i`/`--swipe-x`/`--swipe-rotate` pilotant l'empilement 3D)
|
|
12
|
+
* est reprise à l'identique du composant source — seul `images` passe d'une
|
|
13
|
+
* chaîne "a.jpg, b.jpg" à parser à un tableau typé, et les classes Tailwind
|
|
14
|
+
* sont remplacées par des tokens du thème.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ImageSwiper: React.FC<ImageSwiperProps>;
|
|
17
|
+
export default ImageSwiper;
|
|
18
|
+
//# sourceMappingURL=image-swiper.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-swiper.component.d.ts","sourceRoot":"","sources":["../../../src/carousel/image-swiper/image-swiper.component.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0MlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|