@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,474 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// EGEN — DynamicField
|
|
3
|
+
// ============================================================================
|
|
4
|
+
//
|
|
5
|
+
// Champ de saisie unique, multi-variante (filled / standard / outlined),
|
|
6
|
+
// entièrement piloté par les tokens du thème dynamique EGEN. AUCUNE couleur
|
|
7
|
+
// hex/rgb/nommée n'est utilisée comme valeur finale ici — uniquement en
|
|
8
|
+
// fallback de `var(x, fallback)`, conformément à la RÈGLE D'OR du guide
|
|
9
|
+
// (`docs/guide-composants-et-theme.md` §5).
|
|
10
|
+
//
|
|
11
|
+
// Les trois variantes partagent la même structure DOM (voir
|
|
12
|
+
// `dynamic-field.component.tsx`) et ne se distinguent que par ce fichier —
|
|
13
|
+
// le composant React ne contient aucune classe conditionnelle liée à une
|
|
14
|
+
// couleur.
|
|
15
|
+
// ============================================================================
|
|
16
|
+
|
|
17
|
+
@use '../panel' as panel;
|
|
18
|
+
|
|
19
|
+
// ── Racine ──────────────────────────────────────────────────────────────────
|
|
20
|
+
|
|
21
|
+
.field {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
width: 100%;
|
|
25
|
+
font-family: var(--typography-font-family-sans);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.fieldControl {
|
|
29
|
+
position: relative;
|
|
30
|
+
z-index: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// ── Tailles ─────────────────────────────────────────────────────────────────
|
|
34
|
+
// Pilotent la hauteur/les paddings de l'input ; les valeurs numériques ici
|
|
35
|
+
// sont des dimensions de layout (pas des couleurs) — autorisées telles
|
|
36
|
+
// quelles par la règle d'or, qui ne concerne que les couleurs.
|
|
37
|
+
|
|
38
|
+
.field--sm .input {
|
|
39
|
+
padding-top: 1.1rem;
|
|
40
|
+
padding-bottom: 0.4rem;
|
|
41
|
+
font-size: var(--typography-font-size-xs-size);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.field--md .input {
|
|
45
|
+
padding-top: 1.35rem;
|
|
46
|
+
padding-bottom: 0.55rem;
|
|
47
|
+
font-size: var(--typography-font-size-sm-size);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.field--lg .input {
|
|
51
|
+
padding-top: 1.6rem;
|
|
52
|
+
padding-bottom: 0.7rem;
|
|
53
|
+
font-size: var(--typography-font-size-base-size);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// ── Input — base commune aux 3 variantes ───────────────────────────────────
|
|
57
|
+
|
|
58
|
+
.input {
|
|
59
|
+
display: block;
|
|
60
|
+
width: 100%;
|
|
61
|
+
appearance: none;
|
|
62
|
+
background: transparent;
|
|
63
|
+
color: var(--colors-surface-foreground);
|
|
64
|
+
font-family: inherit;
|
|
65
|
+
line-height: var(--typography-font-size-sm-line-height, 1.4);
|
|
66
|
+
transition: var(--transitions-colors), var(--transitions-shadow);
|
|
67
|
+
|
|
68
|
+
&::placeholder {
|
|
69
|
+
color: transparent;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:focus {
|
|
73
|
+
outline: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:disabled {
|
|
77
|
+
cursor: not-allowed;
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Neutralise l'autofill natif du navigateur (fond opaque imposé par le
|
|
82
|
+
// navigateur) sans jamais fixer de couleur en dur : on retarde juste
|
|
83
|
+
// indéfiniment la transition vers le fond que le navigateur veut imposer.
|
|
84
|
+
&:-webkit-autofill {
|
|
85
|
+
transition: background-color 600000s 0s, color 600000s 0s;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.field--has-left-icon .input {
|
|
90
|
+
padding-left: 2.25rem;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.field--has-validation-icon .input {
|
|
94
|
+
padding-right: 2.5rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// ── Icône à gauche du champ ─────────────────────────────────────────────────
|
|
98
|
+
|
|
99
|
+
.leftIcon {
|
|
100
|
+
position: absolute;
|
|
101
|
+
left: 0.75rem;
|
|
102
|
+
top: 50%;
|
|
103
|
+
transform: translateY(-50%);
|
|
104
|
+
z-index: 1;
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
color: var(--colors-surface-muted-foreground);
|
|
108
|
+
transition: var(--transitions-colors);
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.fieldIconGlyph {
|
|
113
|
+
color: inherit;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// ── Label flottant (pattern commun aux 3 variantes) ─────────────────────────
|
|
117
|
+
|
|
118
|
+
.label {
|
|
119
|
+
position: absolute;
|
|
120
|
+
top: 50%;
|
|
121
|
+
left: 0;
|
|
122
|
+
transform: translateY(-50%) scale(1);
|
|
123
|
+
transform-origin: 0 0;
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: 0.375rem;
|
|
127
|
+
color: var(--colors-surface-muted-foreground);
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
transition: var(--transitions-default);
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.field--has-left-icon .label {
|
|
134
|
+
left: 2.25rem;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.labelIconGlyph {
|
|
138
|
+
color: inherit;
|
|
139
|
+
flex-shrink: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.labelText {
|
|
143
|
+
display: inline-flex;
|
|
144
|
+
align-items: baseline;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.requiredMark {
|
|
148
|
+
color: var(--colors-error-500);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Le label "flotte" (rétrécit + remonte) dès que le champ a une valeur ou le
|
|
152
|
+
// focus. `:placeholder-shown` est vrai uniquement quand l'input est vide ET
|
|
153
|
+
// sans focus (le composant force `placeholder=" "` à cet effet).
|
|
154
|
+
.input:focus + .label,
|
|
155
|
+
.input:not(:placeholder-shown) + .label {
|
|
156
|
+
transform: translateY(-1.35rem) scale(0.8);
|
|
157
|
+
color: var(--colors-primary-500);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.field--has-left-icon .input:focus + .label,
|
|
161
|
+
.field--has-left-icon .input:not(:placeholder-shown) + .label {
|
|
162
|
+
left: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// ── Variante OUTLINED (par défaut) — cadre complet façon "panel" ───────────
|
|
166
|
+
|
|
167
|
+
.field--outlined .fieldControl {
|
|
168
|
+
@include panel.panel-surface('input');
|
|
169
|
+
border-radius: var(--border-radius-lg);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.field--outlined .input {
|
|
173
|
+
padding-left: 0.875rem;
|
|
174
|
+
padding-right: 0.875rem;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.field--outlined.field--has-left-icon .input {
|
|
178
|
+
padding-left: 2.25rem;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.field--outlined .label {
|
|
182
|
+
left: 0.875rem;
|
|
183
|
+
background: transparent;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.field--outlined.field--has-left-icon .label {
|
|
187
|
+
left: 2.25rem;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.field--outlined .input:focus + .label,
|
|
191
|
+
.field--outlined .input:not(:placeholder-shown) + .label {
|
|
192
|
+
top: 0;
|
|
193
|
+
left: 0.625rem;
|
|
194
|
+
transform: translateY(-50%) scale(0.8);
|
|
195
|
+
padding: 0 0.25rem;
|
|
196
|
+
background: var(--colors-surface-card);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.field--outlined.field--has-left-icon .input:focus + .label,
|
|
200
|
+
.field--outlined.field--has-left-icon .input:not(:placeholder-shown) + .label {
|
|
201
|
+
left: 2rem;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.field--outlined .fieldControl:focus-within {
|
|
205
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--colors-primary-500) 20%, transparent);
|
|
206
|
+
border-color: var(--colors-primary-500);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// ── Variante FILLED — fond plein, arrondi en haut, bordure basse épaisse ───
|
|
210
|
+
|
|
211
|
+
.field--filled .fieldControl {
|
|
212
|
+
background: var(--colors-surface-muted);
|
|
213
|
+
border: none;
|
|
214
|
+
border-bottom: 2px solid var(--colors-border-input);
|
|
215
|
+
border-top-left-radius: var(--border-radius-md);
|
|
216
|
+
border-top-right-radius: var(--border-radius-md);
|
|
217
|
+
transition: var(--transitions-colors);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.field--filled .input {
|
|
221
|
+
padding-left: 0.75rem;
|
|
222
|
+
padding-right: 0.75rem;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.field--filled.field--has-left-icon .input {
|
|
226
|
+
padding-left: 2.5rem;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.field--filled .label {
|
|
230
|
+
left: 0.75rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.field--filled.field--has-left-icon .label {
|
|
234
|
+
left: 2.5rem;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.field--filled .fieldControl:focus-within {
|
|
238
|
+
border-bottom-color: var(--colors-primary-500);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// ── Variante STANDARD — la plus discrète, simple bordure basse ────────────
|
|
242
|
+
|
|
243
|
+
.field--standard .fieldControl {
|
|
244
|
+
background: transparent;
|
|
245
|
+
border: none;
|
|
246
|
+
border-bottom: 2px solid var(--colors-border-input);
|
|
247
|
+
transition: var(--transitions-colors);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.field--standard .input {
|
|
251
|
+
padding-left: 0;
|
|
252
|
+
padding-right: 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.field--standard.field--has-left-icon .input {
|
|
256
|
+
padding-left: 1.5rem;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.field--standard .label {
|
|
260
|
+
left: 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.field--standard.field--has-left-icon .label {
|
|
264
|
+
left: 1.5rem;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.field--standard .fieldControl:focus-within {
|
|
268
|
+
border-bottom-color: var(--colors-primary-500);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// ── Variante KINETIC — label dont chaque lettre s'anime individuellement ──
|
|
272
|
+
// Même structure de bordure que STANDARD (bordure basse uniquement), mais le
|
|
273
|
+
// positionnement/l'animation du label ne passent PAS par les transitions CSS
|
|
274
|
+
// partagées (:focus/:placeholder-shown) : c'est piloté par framer-motion
|
|
275
|
+
// (voir kinetic-label.component.tsx), d'où une classe dédiée
|
|
276
|
+
// (.kineticLabelWrapper) plutôt que .label, pour ne jamais hériter des
|
|
277
|
+
// règles de flottaison CSS des 3 autres variantes.
|
|
278
|
+
|
|
279
|
+
.field--kinetic .fieldControl {
|
|
280
|
+
background: transparent;
|
|
281
|
+
border: none;
|
|
282
|
+
border-bottom: 2px solid var(--colors-border-input);
|
|
283
|
+
transition: var(--transitions-colors);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.field--kinetic .input {
|
|
287
|
+
padding-left: 0;
|
|
288
|
+
padding-right: 0;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.field--kinetic.field--has-left-icon .input {
|
|
292
|
+
padding-left: 1.5rem;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.field--kinetic .fieldControl:focus-within {
|
|
296
|
+
border-bottom-color: var(--colors-primary-500);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.kineticLabelWrapper {
|
|
300
|
+
position: absolute;
|
|
301
|
+
top: 50%;
|
|
302
|
+
left: 0;
|
|
303
|
+
transform: translateY(-50%);
|
|
304
|
+
pointer-events: none;
|
|
305
|
+
overflow: hidden;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.field--kinetic.field--has-left-icon .kineticLabelWrapper {
|
|
309
|
+
left: 1.5rem;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.kineticLabel {
|
|
313
|
+
display: inline-flex;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.kineticLetter {
|
|
317
|
+
display: inline-block;
|
|
318
|
+
font-size: var(--typography-font-size-sm-size);
|
|
319
|
+
color: var(--colors-surface-foreground);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// ── États de validation — communs aux 4 variantes ──────────────────────────
|
|
323
|
+
// Chaque état surcharge la couleur de bordure/label sur toutes les variantes
|
|
324
|
+
// à la fois, en ciblant `.fieldControl` (bordure) indépendamment de son
|
|
325
|
+
// origine (panel-surface pour outlined, border-bottom pour filled/standard/kinetic).
|
|
326
|
+
|
|
327
|
+
@each $severity in ('success', 'warning', 'error') {
|
|
328
|
+
.field--#{$severity} .fieldControl {
|
|
329
|
+
border-color: var(--colors-#{$severity}-500) !important;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.field--#{$severity} .label,
|
|
333
|
+
.field--#{$severity} .leftIcon {
|
|
334
|
+
color: var(--colors-#{$severity}-600);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.field--#{$severity} .input {
|
|
338
|
+
color: var(--colors-#{$severity}-700);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.field--outlined.field--success .fieldControl:focus-within,
|
|
343
|
+
.field--filled.field--success .fieldControl:focus-within,
|
|
344
|
+
.field--standard.field--success .fieldControl:focus-within,
|
|
345
|
+
.field--kinetic.field--success .fieldControl:focus-within {
|
|
346
|
+
border-color: var(--colors-success-500);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.field--outlined.field--warning .fieldControl:focus-within,
|
|
350
|
+
.field--filled.field--warning .fieldControl:focus-within,
|
|
351
|
+
.field--standard.field--warning .fieldControl:focus-within,
|
|
352
|
+
.field--kinetic.field--warning .fieldControl:focus-within {
|
|
353
|
+
border-color: var(--colors-warning-500);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.field--outlined.field--error .fieldControl:focus-within,
|
|
357
|
+
.field--filled.field--error .fieldControl:focus-within,
|
|
358
|
+
.field--standard.field--error .fieldControl:focus-within,
|
|
359
|
+
.field--kinetic.field--error .fieldControl:focus-within {
|
|
360
|
+
border-color: var(--colors-error-500);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// Micro-secousse lors d'un changement de sévérité (déclenchée par le hook de
|
|
364
|
+
// validation en parallèle de `navigator.vibrate()`).
|
|
365
|
+
.field--animating .fieldControl {
|
|
366
|
+
animation: egen-field-shake 0.4s var(--transitions-default, ease) both;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
@keyframes egen-field-shake {
|
|
370
|
+
0%,
|
|
371
|
+
100% {
|
|
372
|
+
transform: translateX(0);
|
|
373
|
+
}
|
|
374
|
+
25% {
|
|
375
|
+
transform: translateX(-2px);
|
|
376
|
+
}
|
|
377
|
+
75% {
|
|
378
|
+
transform: translateX(2px);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// ── Icône de validation (glisse depuis la droite) ──────────────────────────
|
|
383
|
+
|
|
384
|
+
.validationIcon {
|
|
385
|
+
position: absolute;
|
|
386
|
+
right: 0.75rem;
|
|
387
|
+
top: 50%;
|
|
388
|
+
transform: translateY(-50%) translateX(0.75rem);
|
|
389
|
+
z-index: 1;
|
|
390
|
+
display: flex;
|
|
391
|
+
align-items: center;
|
|
392
|
+
opacity: 0;
|
|
393
|
+
transition: var(--transitions-default);
|
|
394
|
+
pointer-events: none;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.validationIcon--visible {
|
|
398
|
+
opacity: 1;
|
|
399
|
+
transform: translateY(-50%) translateX(0);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.validationIcon--success .validationIconGlyph {
|
|
403
|
+
color: var(--colors-success-500);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.validationIcon--warning .validationIconGlyph {
|
|
407
|
+
color: var(--colors-warning-500);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.validationIcon--error .validationIconGlyph {
|
|
411
|
+
color: var(--colors-error-500);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// ── Message d'aide / erreur ─────────────────────────────────────────────────
|
|
415
|
+
|
|
416
|
+
.message {
|
|
417
|
+
margin: 0.5rem 0 0;
|
|
418
|
+
font-size: var(--typography-font-size-xs-size);
|
|
419
|
+
line-height: var(--typography-font-size-xs-line-height, 1.4);
|
|
420
|
+
animation: egen-field-message-in 0.35s var(--transitions-default, ease) both;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.field--success .message {
|
|
424
|
+
color: var(--colors-success-600);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.field--warning .message {
|
|
428
|
+
color: var(--colors-warning-600);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.field--error .message {
|
|
432
|
+
color: var(--colors-error-600);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.messageLead {
|
|
436
|
+
font-weight: var(--typography-font-weight-semibold);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
@keyframes egen-field-message-in {
|
|
440
|
+
from {
|
|
441
|
+
opacity: 0;
|
|
442
|
+
transform: translateY(-4px);
|
|
443
|
+
}
|
|
444
|
+
to {
|
|
445
|
+
opacity: 1;
|
|
446
|
+
transform: translateY(0);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
// ── Désactivé ────────────────────────────────────────────────────────────────
|
|
451
|
+
|
|
452
|
+
.field--disabled {
|
|
453
|
+
.fieldControl {
|
|
454
|
+
opacity: 0.6;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.label,
|
|
458
|
+
.leftIcon {
|
|
459
|
+
opacity: 0.7;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
// ── Réduction de mouvement ───────────────────────────────────────────────────
|
|
464
|
+
|
|
465
|
+
@media (prefers-reduced-motion: reduce) {
|
|
466
|
+
.input,
|
|
467
|
+
.label,
|
|
468
|
+
.fieldControl,
|
|
469
|
+
.validationIcon,
|
|
470
|
+
.message {
|
|
471
|
+
transition: none;
|
|
472
|
+
animation: none;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import { DynamicField } from "./dynamic-field.component.js";
|
|
4
|
+
import { UserIcon } from "../icons/icons.js";
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Components/Fields/DynamicField',
|
|
7
|
+
component: DynamicField,
|
|
8
|
+
tags: [
|
|
9
|
+
'autodocs'
|
|
10
|
+
],
|
|
11
|
+
argTypes: {
|
|
12
|
+
variant: {
|
|
13
|
+
control: 'select',
|
|
14
|
+
options: [
|
|
15
|
+
'outlined',
|
|
16
|
+
'filled',
|
|
17
|
+
'standard'
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
control: 'select',
|
|
22
|
+
options: [
|
|
23
|
+
'sm',
|
|
24
|
+
'md',
|
|
25
|
+
'lg'
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export default meta;
|
|
31
|
+
const ControlledField = (props)=>{
|
|
32
|
+
const [value, setValue] = useState(props.value ?? '');
|
|
33
|
+
return /*#__PURE__*/ _jsx(DynamicField, {
|
|
34
|
+
...props,
|
|
35
|
+
value: value,
|
|
36
|
+
onChange: setValue
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
export const Outlined = {
|
|
40
|
+
render: (args)=>/*#__PURE__*/ _jsx(ControlledField, {
|
|
41
|
+
...args
|
|
42
|
+
}),
|
|
43
|
+
args: {
|
|
44
|
+
variant: 'outlined',
|
|
45
|
+
label: "Nom d'utilisateur",
|
|
46
|
+
fieldIcon: {
|
|
47
|
+
icon: UserIcon,
|
|
48
|
+
position: 'left'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export const Filled = {
|
|
53
|
+
render: (args)=>/*#__PURE__*/ _jsx(ControlledField, {
|
|
54
|
+
...args
|
|
55
|
+
}),
|
|
56
|
+
args: {
|
|
57
|
+
variant: 'filled',
|
|
58
|
+
label: 'Adresse e-mail',
|
|
59
|
+
type: 'email'
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
export const Standard = {
|
|
63
|
+
render: (args)=>/*#__PURE__*/ _jsx(ControlledField, {
|
|
64
|
+
...args
|
|
65
|
+
}),
|
|
66
|
+
args: {
|
|
67
|
+
variant: 'standard',
|
|
68
|
+
label: 'Recherche',
|
|
69
|
+
type: 'search'
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
export const WithValidation = {
|
|
73
|
+
render: (args)=>/*#__PURE__*/ _jsx(ControlledField, {
|
|
74
|
+
...args
|
|
75
|
+
}),
|
|
76
|
+
args: {
|
|
77
|
+
variant: 'outlined',
|
|
78
|
+
label: 'Mot de passe',
|
|
79
|
+
type: 'password',
|
|
80
|
+
required: true,
|
|
81
|
+
validation: {
|
|
82
|
+
rules: [
|
|
83
|
+
{
|
|
84
|
+
regex: /.{8,}/,
|
|
85
|
+
message: 'Au moins 8 caractères.',
|
|
86
|
+
type: 'error'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
regex: /[A-Z]/,
|
|
90
|
+
message: 'Au moins une majuscule.',
|
|
91
|
+
type: 'warning'
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
regex: /.{8,}/,
|
|
95
|
+
message: 'Mot de passe robuste.',
|
|
96
|
+
type: 'success'
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
showIcons: true,
|
|
100
|
+
showMessages: true
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** @category Fields */
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
/** Type Carbon-safe accepté pour les icônes d'un champ (EGEN set, `@carbon/react/icons`, ou tout composant SVG custom respectant `currentColor`). */
|
|
4
|
+
export type FieldIconComponent = React.ComponentType<{
|
|
5
|
+
className?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
}>;
|
|
8
|
+
/** Niveau de sévérité d'une règle de validation. */
|
|
9
|
+
export type ValidationRuleType = 'warning' | 'error' | 'success';
|
|
10
|
+
/** Une règle de validation unitaire, évaluée sur la valeur courante du champ. */
|
|
11
|
+
export interface ValidationRule {
|
|
12
|
+
/** Expression régulière — la règle "échoue" quand `regex.test(value)` est `false`. */
|
|
13
|
+
regex: RegExp;
|
|
14
|
+
/** Message affiché sous le champ quand la règle est active. */
|
|
15
|
+
message: string;
|
|
16
|
+
/** Sévérité, qui pilote la couleur (tokens `--colors-{type}-*`) et l'icône affichée. */
|
|
17
|
+
type: ValidationRuleType;
|
|
18
|
+
}
|
|
19
|
+
/** Configuration complète de la validation d'un champ. */
|
|
20
|
+
export interface ValidationConfig {
|
|
21
|
+
/** Règles évaluées dans l'ordre ; la première qui échoue est affichée. */
|
|
22
|
+
rules: ValidationRule[];
|
|
23
|
+
/** Active la validation à chaque frappe (sinon, seule une validation manuelle via `onValidationChange` a lieu). */
|
|
24
|
+
realTimeValidation?: boolean;
|
|
25
|
+
/** Déclenche `navigator.vibrate()` (si supporté par le device) lors d'un changement de sévérité. */
|
|
26
|
+
triggerVibration?: boolean;
|
|
27
|
+
/** Affiche l'icône de sévérité à droite du champ. */
|
|
28
|
+
showIcons?: boolean;
|
|
29
|
+
/** Affiche le message texte sous le champ. */
|
|
30
|
+
showMessages?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/** Position de l'icône de champ (distincte de l'icône de validation). */
|
|
33
|
+
export type FieldIconPosition = 'left' | 'label';
|
|
34
|
+
/** Icône associée au champ (ex : une icône "email" à gauche du texte). */
|
|
35
|
+
export interface FieldIcon {
|
|
36
|
+
icon: FieldIconComponent;
|
|
37
|
+
position?: FieldIconPosition;
|
|
38
|
+
}
|
|
39
|
+
/** Variante visuelle du champ — toutes trois pilotées à 100% par les tokens du thème EGEN. */
|
|
40
|
+
export type DynamicFieldVariant = 'filled' | 'standard' | 'outlined' | 'kinetic';
|
|
41
|
+
/** Taille du champ — mappée sur les tailles `--panel-*` du thème (`panel-size`). */
|
|
42
|
+
export type DynamicFieldSize = 'sm' | 'md' | 'lg';
|
|
43
|
+
export type DynamicFieldInputType = 'text' | 'email' | 'password' | 'tel' | 'url' | 'number' | 'search';
|
|
44
|
+
export interface DynamicFieldProps {
|
|
45
|
+
/** Variante visuelle : bordure inférieure sur fond plein (`filled`), bordure inférieure sur fond transparent (`standard`), ou cadre complet façon "panel" (`outlined`). */
|
|
46
|
+
variant?: DynamicFieldVariant;
|
|
47
|
+
/** Taille du champ. */
|
|
48
|
+
size?: DynamicFieldSize;
|
|
49
|
+
label?: string;
|
|
50
|
+
placeholder?: string;
|
|
51
|
+
type?: DynamicFieldInputType;
|
|
52
|
+
value?: string;
|
|
53
|
+
onChange?: (value: string) => void;
|
|
54
|
+
className?: string;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
required?: boolean;
|
|
57
|
+
autoComplete?: string;
|
|
58
|
+
autoFocus?: boolean;
|
|
59
|
+
id?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
/** Icône de champ (différente de l'icône de validation). */
|
|
62
|
+
fieldIcon?: FieldIcon;
|
|
63
|
+
/** Configuration de validation. */
|
|
64
|
+
validation?: ValidationConfig;
|
|
65
|
+
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
66
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
67
|
+
onValidationChange?: (validation: ValidationRule | null) => void;
|
|
68
|
+
}
|
|
69
|
+
export declare const defaultValidation: ValidationConfig;
|
|
70
|
+
//# sourceMappingURL=dynamic-field.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-field.types.d.ts","sourceRoot":"","sources":["../../src/fields/dynamic-field.types.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,qJAAqJ;AACrJ,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,aAAa,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE5F,oDAAoD;AACpD,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAEjE,iFAAiF;AACjF,MAAM,WAAW,cAAc;IAC7B,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,0DAA0D;AAC1D,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,mHAAmH;IACnH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oGAAoG;IACpG,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,yEAAyE;AACzE,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEjD,0EAA0E;AAC1E,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,8FAA8F;AAC9F,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AAEjF,oFAAoF;AACpF,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAExG,MAAM,WAAW,iBAAiB;IAChC,2KAA2K;IAC3K,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,uBAAuB;IACvB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,4DAA4D;IAC5D,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,mCAAmC;IACnC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC1D,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACzD,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;CAClE;AAED,eAAO,MAAM,iBAAiB,EAAE,gBAM/B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @category Fields */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { FieldIcon } from './dynamic-field.types.js';
|
|
4
|
+
interface FieldIconComponentProps {
|
|
5
|
+
fieldIcon?: FieldIcon;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/** Rend l'icône de champ (ex. enveloppe pour un email) — jamais l'icône de validation. */
|
|
9
|
+
export declare const FieldIconComponent: React.FC<FieldIconComponentProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=field-icon.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-icon.component.d.ts","sourceRoot":"","sources":["../../src/fields/field-icon.component.tsx"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,UAAU,uBAAuB;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAQhE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/** @category Fields */ import React from "react";
|
|
3
|
+
import styles from "./dynamic-field.module.scss";
|
|
4
|
+
/** Rend l'icône de champ (ex. enveloppe pour un email) — jamais l'icône de validation. */ export const FieldIconComponent = ({ fieldIcon, className })=>{
|
|
5
|
+
if (!fieldIcon) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
const Icon = fieldIcon.icon;
|
|
9
|
+
return /*#__PURE__*/ _jsx(Icon, {
|
|
10
|
+
className: [
|
|
11
|
+
styles.fieldIconGlyph,
|
|
12
|
+
className
|
|
13
|
+
].filter(Boolean).join(' '),
|
|
14
|
+
size: 16
|
|
15
|
+
});
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC"}
|