@egen-civitas/esm-styleguide 4.0.0 → 5.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/CHANGELOG.md +42 -0
- package/README.md +1 -1
- package/dist/cards/card-header.component.d.ts.map +1 -1
- package/dist/cards/card-header.component.js +4 -6
- package/dist/cards/card-header.stories.js +11 -7
- package/dist/cards/decorated-card/card-decorations.js +1 -1
- package/dist/cards/decorated-card/decorated-card.component.js +1 -1
- package/dist/cards/decorated-card/{decorated-card.module.scss → decorated-card.module.css} +45 -70
- package/dist/carousel/circular-gallery/circular-gallery.component.js +1 -1
- package/dist/carousel/circular-gallery/circular-gallery.module.css +140 -0
- package/dist/carousel/circular-gallery/gallery-image.component.js +1 -1
- package/dist/carousel/circular-gallery/gallery-tabs.component.js +1 -1
- package/dist/carousel/image-swiper/image-swiper.component.js +1 -1
- package/dist/carousel/image-swiper/image-swiper.module.css +31 -0
- package/dist/carousel/slider/carousel.component.js +1 -1
- package/dist/carousel/slider/slider-container.component.js +1 -1
- package/dist/carousel/slider/slider-dot-button.component.js +1 -1
- package/dist/carousel/slider/slider.component.js +1 -1
- package/dist/carousel/slider/slider.module.css +133 -0
- package/dist/carousel/slider/thumbs-slider.component.js +1 -1
- package/dist/carousel/testimonial-card/testimonial-card-stack.component.js +1 -1
- package/dist/carousel/testimonial-card/testimonial-card-stack.module.css +5 -0
- package/dist/carousel/testimonial-card/testimonial-card.component.js +1 -1
- package/dist/carousel/testimonial-card/testimonial-card.module.css +51 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.js +1 -1
- package/dist/cascading-nav-dropdown/{cascading-nav-dropdown.module.scss → cascading-nav-dropdown.module.css} +27 -52
- package/dist/cascading-nav-dropdown/column-with-search.component.js +1 -1
- package/dist/classification-tags/classification-tags.component.d.ts +0 -19
- package/dist/classification-tags/classification-tags.component.d.ts.map +1 -1
- package/dist/classification-tags/classification-tags.component.js +20 -5
- package/dist/config-schema.d.ts +3 -3
- package/dist/config-schema.d.ts.map +1 -1
- package/dist/config-schema.js +3 -3
- package/dist/containers/folder-gallery/folder-gallery.component.js +1 -1
- package/dist/containers/folder-gallery/{folder-gallery.module.scss → folder-gallery.module.css} +4 -32
- package/dist/containers/layout-grid/layout-grid.component.js +1 -1
- package/dist/containers/layout-grid/layout-grid.module.css +105 -0
- package/dist/content-section/content-section.component.js +1 -1
- package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts +26 -8
- package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts.map +1 -1
- package/dist/custom-overflow-menu/custom-overflow-menu.component.js +66 -29
- package/dist/custom-overflow-menu/custom-overflow-menu.module.css +82 -0
- package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts +14 -1
- package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts.map +1 -1
- package/dist/data-table-batch-actions/data-table-batch-actions.component.js +42 -20
- package/dist/datepicker/auto-close-dialog.component.js +1 -1
- package/dist/datepicker/calendar-popover.component.js +3 -3
- package/dist/datepicker/date-picker-input.component.d.ts +1 -1
- package/dist/datepicker/date-picker-input.component.js +1 -1
- package/dist/datepicker/datepicker.module.css +540 -0
- package/dist/datepicker/egen-date-picker.component.d.ts +1 -1
- package/dist/datepicker/egen-date-picker.component.d.ts.map +1 -1
- package/dist/datepicker/egen-date-picker.component.js +13 -10
- package/dist/datepicker/egen-date-range-picker.component.d.ts +1 -1
- package/dist/datepicker/egen-date-range-picker.component.d.ts.map +1 -1
- package/dist/datepicker/egen-date-range-picker.component.js +15 -11
- package/dist/datepicker/month-year.component.d.ts +1 -1
- package/dist/datepicker/month-year.component.js +1 -1
- package/dist/dialogs/card-modal/card-modal.component.js +1 -1
- package/dist/dialogs/card-modal/{card-modal.module.scss → card-modal.module.css} +10 -32
- package/dist/dialogs/card-modal/card-modal.warp-glow.js +1 -1
- package/dist/empty-card/empty-card.component.d.ts.map +1 -1
- package/dist/empty-card/empty-card.component.js +6 -7
- package/dist/error-state/error-state.component.d.ts.map +1 -1
- package/dist/error-state/error-state.component.js +5 -5
- package/dist/fields/dynamic-field.component.js +1 -1
- package/dist/fields/{dynamic-field.module.scss → dynamic-field.module.css} +60 -107
- package/dist/fields/dynamic-field.types.d.ts +1 -1
- package/dist/fields/dynamic-field.types.d.ts.map +1 -1
- package/dist/fields/field-icon.component.js +1 -1
- package/dist/fields/kinetic-label.component.js +1 -1
- package/dist/fields/validation-icon.component.js +1 -1
- package/dist/glass-card/liquid-glass-card.component.js +1 -1
- package/dist/glass-card/liquid-glass-card.module.css +121 -0
- package/dist/hero-mosaic/hero-mosaic.component.js +1 -1
- package/dist/hero-mosaic/{hero-mosaic.module.scss → hero-mosaic.module.css} +32 -28
- package/dist/hero-mosaic/hero-tile-card.component.js +1 -1
- package/dist/icons/error-filled.icon.d.ts +1 -2
- package/dist/icons/error-filled.icon.d.ts.map +1 -1
- package/dist/icons/error-filled.icon.js +1 -2
- package/dist/icons/icons.js +1 -1
- package/dist/icons/icons.module.css +3 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.js +1 -1
- package/dist/master-detail/entity-detail-browser/{entity-detail-browser.module.scss → entity-detail-browser.module.css} +74 -66
- package/dist/master-detail/entity-detail-browser/gradient-blur.component.js +1 -1
- package/dist/modals/index.d.ts.map +1 -1
- package/dist/modals/index.js +24 -1
- package/dist/notifications/actionable-notification.component.d.ts.map +1 -1
- package/dist/notifications/actionable-notification.component.js +6 -9
- package/dist/notifications/notification.component.d.ts.map +1 -1
- package/dist/notifications/notification.component.js +5 -7
- package/dist/page-background/page-background.utils.d.ts +3 -5
- package/dist/page-background/page-background.utils.d.ts.map +1 -1
- package/dist/page-background/page-background.utils.js +3 -7
- package/dist/page-header/page-header.component.js +1 -1
- package/dist/page-header/page-header.module.css +28 -0
- package/dist/pagination/pagination.component.d.ts +6 -3
- package/dist/pagination/pagination.component.d.ts.map +1 -1
- package/dist/pagination/pagination.component.js +98 -33
- package/dist/pictograms/pictograms.js +1 -1
- package/dist/pictograms/pictograms.module.css +3 -0
- package/dist/public.d.ts +1 -0
- package/dist/public.d.ts.map +1 -1
- package/dist/public.js +1 -0
- package/dist/responsive-wrapper/responsive-wrapper.component.d.ts +1 -1
- package/dist/responsive-wrapper/responsive-wrapper.component.js +3 -2
- package/dist/responsive-wrapper/responsive-wrapper.stories.js +3 -3
- package/dist/selections/interactive-selector/interactive-selector.component.js +1 -1
- package/dist/selections/interactive-selector/{interactive-selector.module.scss → interactive-selector.module.css} +15 -49
- package/dist/selections/select-popover/select-avatar.component.js +1 -1
- package/dist/selections/select-popover/select-content.component.js +1 -1
- package/dist/selections/select-popover/{select-popover.module.scss → select-popover.module.css} +22 -34
- package/dist/selections/select-popover/select-trigger.component.js +1 -1
- package/dist/sheet/sheet-content.component.js +1 -1
- package/dist/sheet/sheet-overlay.component.js +1 -1
- package/dist/sheet/sheet-parts.component.js +1 -1
- package/dist/sheet/sheet-trigger.component.js +1 -1
- package/dist/sheet/{sheet.module.scss → sheet.module.css} +12 -31
- package/dist/snackbars/snackbar.component.d.ts.map +1 -1
- package/dist/snackbars/snackbar.component.js +8 -10
- package/dist/snackbars/{snackbar.module.scss → snackbar.module.css} +0 -2
- package/dist/styles.css +1364 -0
- package/dist/toasts/toast-progress-bar.component.js +1 -1
- package/dist/toasts/toast.component.js +1 -1
- package/dist/toasts/{toast.module.scss → toast.module.css} +27 -34
- package/dist/top-bar/top-bar.component.d.ts +1 -1
- package/dist/top-bar/top-bar.component.d.ts.map +1 -1
- package/dist/ui/alert.d.ts +10 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/alert.js +47 -0
- package/dist/ui/app-header.d.ts +10 -0
- package/dist/ui/app-header.d.ts.map +1 -0
- package/dist/ui/app-header.js +36 -0
- package/dist/ui/badge.d.ts +10 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.js +34 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +48 -0
- package/dist/ui/cn.d.ts +7 -0
- package/dist/ui/cn.d.ts.map +1 -0
- package/dist/ui/cn.js +8 -0
- package/dist/ui/dialog.d.ts +18 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.js +105 -0
- package/dist/ui/dropdown-menu.d.ts +26 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +143 -0
- package/dist/ui/icon-button.d.ts +17 -0
- package/dist/ui/icon-button.d.ts.map +1 -0
- package/dist/ui/icon-button.js +30 -0
- package/dist/ui/index.d.ts +23 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +25 -0
- package/dist/ui/inline-loading.d.ts +11 -0
- package/dist/ui/inline-loading.d.ts.map +1 -0
- package/dist/ui/inline-loading.js +34 -0
- package/dist/ui/input.d.ts +4 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +14 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +14 -0
- package/dist/ui/layer.d.ts +8 -0
- package/dist/ui/layer.d.ts.map +1 -0
- package/dist/ui/layer.js +14 -0
- package/dist/ui/link.d.ts +11 -0
- package/dist/ui/link.d.ts.map +1 -0
- package/dist/ui/link.js +15 -0
- package/dist/ui/modal.d.ts +14 -0
- package/dist/ui/modal.d.ts.map +1 -0
- package/dist/ui/modal.js +48 -0
- package/dist/ui/notification-banner.d.ts +19 -0
- package/dist/ui/notification-banner.d.ts.map +1 -0
- package/dist/ui/notification-banner.js +75 -0
- package/dist/ui/separator.d.ts +5 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.js +16 -0
- package/dist/ui/spinner.d.ts +4 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/spinner.js +15 -0
- package/dist/ui/switch.d.ts +7 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +19 -0
- package/dist/ui/table.d.ts +11 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +66 -0
- package/dist/ui/tabs.d.ts +12 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.js +52 -0
- package/dist/ui/text-input.d.ts +19 -0
- package/dist/ui/text-input.d.ts.map +1 -0
- package/dist/ui/text-input.js +35 -0
- package/dist/ui/tile.d.ts +10 -0
- package/dist/ui/tile.d.ts.map +1 -0
- package/dist/ui/tile.js +55 -0
- package/dist/ui/tooltip.d.ts +8 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +42 -0
- package/dist/utils.d.ts +3 -4
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -3
- package/dist/workbench/section-nav-panel.component.d.ts +1 -1
- package/dist/workbench/section-nav-panel.component.d.ts.map +1 -1
- package/dist/workbench/section-nav-panel.component.js +4 -19
- package/dist/workbench/{section-nav-panel.module.scss → section-nav-panel.module.css} +14 -20
- package/dist/workbench/splitter.component.js +1 -1
- package/dist/workbench/tool-window-rail.component.js +1 -1
- package/dist/workbench/tool-window-zone.component.js +1 -1
- package/dist/workbench/workbench.module.css +363 -0
- package/dist/workspaces/action-menu-button/action-menu-button.component.d.ts.map +1 -1
- package/dist/workspaces/action-menu-button/action-menu-button.component.js +5 -10
- package/dist/workspaces/action-menu-button/action-menu-button.module.css +94 -0
- package/dist/workspaces/container/action-menu.component.js +1 -1
- package/dist/workspaces/container/action-menu.module.css +68 -0
- package/dist/workspaces/container/workspace-container.component.d.ts.map +1 -1
- package/dist/workspaces/container/workspace-container.component.js +13 -14
- package/dist/workspaces/container/workspace-renderer.component.js +2 -2
- package/dist/workspaces/container/workspace.module.css +204 -0
- package/dist/workspaces/notification/workspace-notification.component.d.ts.map +1 -1
- package/dist/workspaces/notification/workspace-notification.component.js +32 -28
- package/dist/workspaces2/action-menu2/action-menu-button2.component.d.ts.map +1 -1
- package/dist/workspaces2/action-menu2/action-menu-button2.component.js +5 -10
- package/dist/workspaces2/action-menu2/action-menu-button2.module.css +93 -0
- package/dist/workspaces2/action-menu2/action-menu2.component.d.ts.map +1 -1
- package/dist/workspaces2/action-menu2/action-menu2.component.js +4 -5
- package/dist/workspaces2/action-menu2/action-menu2.module.css +70 -0
- package/dist/workspaces2/active-workspace-window.component.js +2 -2
- package/dist/workspaces2/workspace-windows-and-menu.component.js +1 -1
- package/dist/workspaces2/workspace-windows-and-menu.module.css +27 -0
- package/dist/workspaces2/workspace2-close-prompt.modal.d.ts.map +1 -1
- package/dist/workspaces2/workspace2-close-prompt.modal.js +7 -6
- package/dist/workspaces2/workspace2.component.js +11 -12
- package/dist/workspaces2/workspace2.module.css +163 -0
- package/package.json +15 -15
- package/dist/_all.scss +0 -31
- package/dist/_carbon-bridge.scss +0 -194
- package/dist/_glass.scss +0 -75
- package/dist/_overrides.scss +0 -731
- package/dist/_panel.scss +0 -123
- package/dist/_vars.scss +0 -111
- package/dist/animations/_animations.scss +0 -102
- package/dist/animations/_index.scss +0 -5
- package/dist/animations/_keyframes.scss +0 -135
- package/dist/animations/_mixins.scss +0 -16
- package/dist/animations/_tokens.scss +0 -16
- package/dist/animations/_workbench-motion.scss +0 -36
- package/dist/cards/card-header.module.scss +0 -45
- package/dist/cards/decorated-card/_decoration-bleed.scss +0 -26
- package/dist/carousel/circular-gallery/circular-gallery.module.scss +0 -165
- package/dist/carousel/image-swiper/image-swiper.module.scss +0 -43
- package/dist/carousel/slider/slider.module.scss +0 -176
- package/dist/carousel/testimonial-card/testimonial-card-stack.module.scss +0 -18
- package/dist/carousel/testimonial-card/testimonial-card.module.scss +0 -73
- package/dist/components/_breadcrumbs.scss +0 -11
- package/dist/components/_canvas.scss +0 -19
- package/dist/components/_general.scss +0 -337
- package/dist/components/_main-content.scss +0 -28
- package/dist/components/_panel-overrides.scss +0 -130
- package/dist/containers/layout-grid/layout-grid.module.scss +0 -143
- package/dist/custom-overflow-menu/custom-overflow-menu.module.scss +0 -38
- package/dist/datepicker/datepicker.module.scss +0 -502
- package/dist/empty-card/empty-card.module.scss +0 -27
- package/dist/error-state/error-state.module.scss +0 -21
- package/dist/glass-card/liquid-glass-card.module.scss +0 -154
- package/dist/icons/icons.module.scss +0 -5
- package/dist/modals/_modals.scss +0 -13
- package/dist/notifications/_actionable-notifications.scss +0 -23
- package/dist/notifications/_notifications.scss +0 -22
- package/dist/page-header/page-header.module.scss +0 -28
- package/dist/pagination/pagination.module.scss +0 -66
- package/dist/pictograms/pictograms.module.scss +0 -5
- package/dist/snackbars/_snackbars.scss +0 -31
- package/dist/spinner/_loader.scss +0 -94
- package/dist/spinner/_spinner.scss +0 -1
- package/dist/toasts/_toasts.scss +0 -22
- package/dist/workbench/workbench.module.scss +0 -439
- package/dist/workspaces/action-menu-button/action-menu-button.module.scss +0 -111
- package/dist/workspaces/container/action-menu.module.scss +0 -90
- package/dist/workspaces/container/workspace.module.scss +0 -276
- package/dist/workspaces/notification/workspace-notification.module.scss +0 -5
- package/dist/workspaces2/action-menu2/action-menu-button2.module.scss +0 -113
- package/dist/workspaces2/action-menu2/action-menu2.module.scss +0 -87
- package/dist/workspaces2/workspace-windows-and-menu.module.scss +0 -32
- package/dist/workspaces2/workspace2-close-prompt.module.scss +0 -8
- package/dist/workspaces2/workspace2.module.scss +0 -228
- package/src/_vars.scss +0 -111
- /package/dist/content-section/{content-section.module.scss → content-section.module.css} +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.viewport {
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.viewport--x {
|
|
11
|
+
touch-action: pan-y;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.viewport--y {
|
|
15
|
+
touch-action: pan-x;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.container {
|
|
19
|
+
display: flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.container--x {
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.container--y {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.slide {
|
|
34
|
+
position: relative;
|
|
35
|
+
flex: 0 0 100%;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
min-height: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.slide--x {
|
|
41
|
+
height: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.slide--y {
|
|
45
|
+
width: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.thumbsViewport {
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.thumbsContainer {
|
|
53
|
+
display: flex;
|
|
54
|
+
gap: 0.5rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.thumbsContainer--x {
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
height: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.thumbsContainer--y {
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
height: 100%;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.thumb {
|
|
68
|
+
flex: 1 1 0;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
min-height: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
border: 2px solid transparent;
|
|
73
|
+
border-radius: var(--border-radius-md);
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
background: none;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
opacity: 0.6;
|
|
78
|
+
transition: all var(--animation-duration-normal) var(--animation-easing-in-out);
|
|
79
|
+
}
|
|
80
|
+
.thumb:hover {
|
|
81
|
+
opacity: 1;
|
|
82
|
+
}
|
|
83
|
+
.thumb:focus-visible {
|
|
84
|
+
outline: 2px solid var(--colors-primary-500);
|
|
85
|
+
outline-offset: 2px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.thumbsContainer--y .thumb {
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.thumbsContainer--x .thumb {
|
|
93
|
+
height: 100%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.thumb--active {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
border-color: var(--colors-on-primary);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.thumbImage {
|
|
102
|
+
display: block;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
object-fit: cover;
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.dots {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: 0.5rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.dot {
|
|
116
|
+
width: 0.5rem;
|
|
117
|
+
height: 0.5rem;
|
|
118
|
+
padding: 0;
|
|
119
|
+
border: none;
|
|
120
|
+
border-radius: var(--border-radius-full);
|
|
121
|
+
background: var(--colors-neutral-300);
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
transition: all var(--animation-duration-normal) var(--animation-easing-in-out);
|
|
124
|
+
}
|
|
125
|
+
.dot:focus-visible {
|
|
126
|
+
outline: 2px solid var(--colors-primary-500);
|
|
127
|
+
outline-offset: 2px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.dot--active {
|
|
131
|
+
width: 1.5rem;
|
|
132
|
+
background: var(--colors-primary-500);
|
|
133
|
+
}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
/** @category Carousel */ import React from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { useCarouselContext } from "./slider.context.js";
|
|
5
|
-
import styles from "./slider.module.
|
|
5
|
+
import styles from "./slider.module.css";
|
|
6
6
|
/**
|
|
7
7
|
* `ThumbsSlider` — rail de miniatures synchronisé avec les slides
|
|
8
8
|
* principaux (deuxième instance embla-carousel, glissable librement —
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
/** @category TestimonialCard */ import React, { useCallback, useEffect, useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { TestimonialCard } from "./testimonial-card.component.js";
|
|
5
|
-
import styles from "./testimonial-card-stack.module.
|
|
5
|
+
import styles from "./testimonial-card-stack.module.css";
|
|
6
6
|
/**
|
|
7
7
|
* `TestimonialCardStack` — orchestrateur prêt à l'emploi pour `TestimonialCard` :
|
|
8
8
|
* gère l'ordre de la pile et l'avance d'un cran (la carte de devant repasse
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/** @category TestimonialCard */ import React, { useRef } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { motion } from "framer-motion";
|
|
5
|
-
import styles from "./testimonial-card.module.
|
|
5
|
+
import styles from "./testimonial-card.module.css";
|
|
6
6
|
/**
|
|
7
7
|
* `TestimonialCard` — une carte de la pile de témoignages, glissable à la
|
|
8
8
|
* souris/au doigt. Ne gère AUCUN état de pile elle-même (ordre, rotation) :
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
display: grid;
|
|
6
|
+
place-content: center;
|
|
7
|
+
gap: 1.5rem;
|
|
8
|
+
padding: 1.5rem;
|
|
9
|
+
user-select: none;
|
|
10
|
+
border-radius: var(--border-radius-2xl);
|
|
11
|
+
background: var(--panel-card-background);
|
|
12
|
+
backdrop-filter: var(--panel-card-backdrop-filter);
|
|
13
|
+
-webkit-backdrop-filter: var(--panel-card-backdrop-filter);
|
|
14
|
+
border: var(--panel-card-border);
|
|
15
|
+
box-shadow: var(--panel-card-box-shadow);
|
|
16
|
+
transition: var(--transitions-glass);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.draggable {
|
|
20
|
+
cursor: grab;
|
|
21
|
+
}
|
|
22
|
+
.draggable:active {
|
|
23
|
+
cursor: grabbing;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.avatar {
|
|
27
|
+
width: 8rem;
|
|
28
|
+
height: 8rem;
|
|
29
|
+
margin: 0 auto;
|
|
30
|
+
border-radius: var(--border-radius-full);
|
|
31
|
+
border: 2px solid var(--colors-border-default, transparent);
|
|
32
|
+
background: var(--colors-surface-muted);
|
|
33
|
+
object-fit: cover;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.testimonial {
|
|
38
|
+
text-align: center;
|
|
39
|
+
font-size: var(--typography-font-size-lg-size);
|
|
40
|
+
line-height: var(--typography-font-size-lg-line-height);
|
|
41
|
+
font-style: italic;
|
|
42
|
+
color: var(--colors-surface-muted-foreground);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.author {
|
|
46
|
+
text-align: center;
|
|
47
|
+
font-size: var(--typography-font-size-sm-size);
|
|
48
|
+
line-height: var(--typography-font-size-sm-line-height);
|
|
49
|
+
font-weight: var(--typography-font-weight-medium);
|
|
50
|
+
color: var(--colors-surface-accent-foreground);
|
|
51
|
+
}
|
|
@@ -4,7 +4,7 @@ import { AnimatePresence, motion } from "framer-motion";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { ChevronDownIcon } from "../icons/icons.js";
|
|
6
6
|
import { ColumnWithSearch } from "./column-with-search.component.js";
|
|
7
|
-
import styles from "./cascading-nav-dropdown.module.
|
|
7
|
+
import styles from "./cascading-nav-dropdown.module.css";
|
|
8
8
|
/**
|
|
9
9
|
* `CascadingNavDropdown` — dropdown de navigation en cascade (colonnes qui
|
|
10
10
|
* s'empilent horizontalement au fur et à mesure qu'on survole un item ayant
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// EGEN — CascadingNavDropdown
|
|
3
|
-
// ============================================================================
|
|
4
|
-
// 100% tokens du thème EGEN — voir docs/guide-composants-et-theme.md.
|
|
5
|
-
// Le panneau utilise le mixin panel-surface('dropdown') (glassmorphism),
|
|
6
|
-
// équivalent exact du useGlass("dropdown") de la source d'origine.
|
|
7
|
-
// ============================================================================
|
|
8
|
-
|
|
9
|
-
@use '../panel' as panel;
|
|
10
|
-
|
|
11
1
|
.wrapper {
|
|
12
2
|
position: relative;
|
|
13
3
|
display: inline-block;
|
|
14
4
|
}
|
|
15
5
|
|
|
16
|
-
// ── Bouton déclencheur ──────────────────────────────────────────────────────
|
|
17
|
-
|
|
18
6
|
.trigger {
|
|
19
7
|
display: flex;
|
|
20
8
|
align-items: center;
|
|
@@ -27,15 +15,13 @@
|
|
|
27
15
|
border-radius: var(--border-radius-md);
|
|
28
16
|
transition: var(--transitions-glass);
|
|
29
17
|
cursor: pointer;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
outline-offset: 2px;
|
|
38
|
-
}
|
|
18
|
+
}
|
|
19
|
+
.trigger:hover {
|
|
20
|
+
background: var(--colors-surface-translucent-hover, var(--colors-surface-muted));
|
|
21
|
+
}
|
|
22
|
+
.trigger:focus-visible {
|
|
23
|
+
outline: 2px solid var(--colors-primary-500);
|
|
24
|
+
outline-offset: 2px;
|
|
39
25
|
}
|
|
40
26
|
|
|
41
27
|
.triggerIcon {
|
|
@@ -49,15 +35,10 @@
|
|
|
49
35
|
transform: rotate(0deg);
|
|
50
36
|
}
|
|
51
37
|
|
|
52
|
-
// Sens normal (déclencheur en haut, panneau vers le bas) : chevron pointe
|
|
53
|
-
// vers le bas au repos, se retourne à l'ouverture.
|
|
54
38
|
.triggerChevron--open {
|
|
55
39
|
transform: rotate(180deg);
|
|
56
40
|
}
|
|
57
41
|
|
|
58
|
-
// Sens inversé (déclencheur en bas, panneau vers le haut) : chevron pointe
|
|
59
|
-
// vers le haut au repos (cohérent avec le sens d'ouverture), se retourne à
|
|
60
|
-
// l'ouverture.
|
|
61
42
|
.triggerChevron--up {
|
|
62
43
|
transform: rotate(180deg);
|
|
63
44
|
}
|
|
@@ -66,8 +47,6 @@
|
|
|
66
47
|
transform: rotate(0deg);
|
|
67
48
|
}
|
|
68
49
|
|
|
69
|
-
// ── Overlay de fermeture (clic en dehors) ───────────────────────────────────
|
|
70
|
-
|
|
71
50
|
.overlay {
|
|
72
51
|
position: fixed;
|
|
73
52
|
inset: 0;
|
|
@@ -75,8 +54,6 @@
|
|
|
75
54
|
background: var(--colors-surface-overlay, rgba(22, 22, 22, 0.5));
|
|
76
55
|
}
|
|
77
56
|
|
|
78
|
-
// ── Panneau flottant ─────────────────────────────────────────────────────────
|
|
79
|
-
|
|
80
57
|
.panel {
|
|
81
58
|
position: fixed;
|
|
82
59
|
z-index: var(--z-index-dropdown);
|
|
@@ -84,7 +61,12 @@
|
|
|
84
61
|
max-height: 480px;
|
|
85
62
|
overflow: hidden;
|
|
86
63
|
border-radius: var(--border-radius-xl);
|
|
87
|
-
|
|
64
|
+
background: var(--panel-dropdown-background);
|
|
65
|
+
backdrop-filter: var(--panel-dropdown-backdrop-filter);
|
|
66
|
+
-webkit-backdrop-filter: var(--panel-dropdown-backdrop-filter);
|
|
67
|
+
border: var(--panel-dropdown-border);
|
|
68
|
+
box-shadow: var(--panel-dropdown-box-shadow);
|
|
69
|
+
transition: var(--transitions-glass);
|
|
88
70
|
}
|
|
89
71
|
|
|
90
72
|
.panelInner {
|
|
@@ -93,8 +75,6 @@
|
|
|
93
75
|
overflow: hidden;
|
|
94
76
|
}
|
|
95
77
|
|
|
96
|
-
// ── Colonne ──────────────────────────────────────────────────────────────────
|
|
97
|
-
|
|
98
78
|
.column {
|
|
99
79
|
display: flex;
|
|
100
80
|
flex-direction: column;
|
|
@@ -103,10 +83,9 @@
|
|
|
103
83
|
overflow-y: auto;
|
|
104
84
|
border-right: 1px solid var(--colors-border-default, transparent);
|
|
105
85
|
flex-shrink: 0;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
86
|
+
}
|
|
87
|
+
.column:last-child {
|
|
88
|
+
border-right: none;
|
|
110
89
|
}
|
|
111
90
|
|
|
112
91
|
.columnSearch {
|
|
@@ -134,15 +113,13 @@
|
|
|
134
113
|
border-radius: var(--border-radius-sm);
|
|
135
114
|
font-size: var(--typography-font-size-xs-size);
|
|
136
115
|
transition: var(--transitions-colors);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
border-color: var(--colors-primary-500);
|
|
145
|
-
}
|
|
116
|
+
}
|
|
117
|
+
.columnSearchInput::placeholder {
|
|
118
|
+
color: var(--colors-surface-muted-foreground);
|
|
119
|
+
}
|
|
120
|
+
.columnSearchInput:focus {
|
|
121
|
+
outline: none;
|
|
122
|
+
border-color: var(--colors-primary-500);
|
|
146
123
|
}
|
|
147
124
|
|
|
148
125
|
.columnList {
|
|
@@ -167,12 +144,10 @@
|
|
|
167
144
|
text-align: left;
|
|
168
145
|
cursor: pointer;
|
|
169
146
|
transition: var(--transitions-colors);
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
color: var(--colors-primary-600);
|
|
175
|
-
}
|
|
147
|
+
}
|
|
148
|
+
.columnItem:hover, .columnItem[data-active] {
|
|
149
|
+
background: var(--colors-surface-muted);
|
|
150
|
+
color: var(--colors-primary-600);
|
|
176
151
|
}
|
|
177
152
|
|
|
178
153
|
.columnItemIcon {
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/** @category CascadingNavDropdown */ import React, { useMemo, useState } from "react";
|
|
3
3
|
import { motion } from "framer-motion";
|
|
4
4
|
import { SearchIcon, ChevronRightIcon } from "../icons/icons.js";
|
|
5
|
-
import styles from "./cascading-nav-dropdown.module.
|
|
5
|
+
import styles from "./cascading-nav-dropdown.module.css";
|
|
6
6
|
export const ColumnWithSearch = ({ columnItems, columnIndex, activeItems, searchable, searchPlaceholder, onHover, onNavigate })=>{
|
|
7
7
|
const [query, setQuery] = useState('');
|
|
8
8
|
const filteredItems = useMemo(()=>{
|
|
@@ -8,25 +8,6 @@ export interface ClassificationTag {
|
|
|
8
8
|
interface ClassificationTagsProps {
|
|
9
9
|
classifications: Array<ClassificationTag>;
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Renders a list of classification tags for an entity or interaction.
|
|
13
|
-
*
|
|
14
|
-
* Colors for primary/secondary tags are configurable via the `classificationTags`
|
|
15
|
-
* key in the styleguide config schema.
|
|
16
|
-
*
|
|
17
|
-
* Works for any domain: product categories, risk labels, audit flags, etc.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* import { ClassificationTags } from '@egen-civitas/esm-framework';
|
|
22
|
-
* <ClassificationTags
|
|
23
|
-
* classifications={[
|
|
24
|
-
* { display: 'High Priority', rank: 'primary' },
|
|
25
|
-
* { display: 'Flagged', rank: 'secondary' },
|
|
26
|
-
* ]}
|
|
27
|
-
* />
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
11
|
export declare function ClassificationTags({ classifications }: ClassificationTagsProps): React.JSX.Element | null;
|
|
31
12
|
export {};
|
|
32
13
|
//# sourceMappingURL=classification-tags.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classification-tags.component.d.ts","sourceRoot":"","sources":["../../src/classification-tags/classification-tags.component.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,UAAU,uBAAuB;IAC/B,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CAC3C;
|
|
1
|
+
{"version":3,"file":"classification-tags.component.d.ts","sourceRoot":"","sources":["../../src/classification-tags/classification-tags.component.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,UAAU,uBAAuB;IAC/B,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CAC3C;AAqCD,wBAAgB,kBAAkB,CAAC,EAAE,eAAe,EAAE,EAAE,uBAAuB,4BAwB9E"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
/** @module @category UI */ import React from "react";
|
|
3
|
-
import { Tag } from "@carbon/react";
|
|
4
3
|
import { useConfig } from "@egen-civitas/esm-react-utils";
|
|
5
4
|
import { getCoreTranslation } from "@egen-civitas/esm-translations";
|
|
5
|
+
import { Badge } from "../ui/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* Renders a list of classification tags for an entity or interaction.
|
|
8
8
|
*
|
|
@@ -21,18 +21,33 @@ import { getCoreTranslation } from "@egen-civitas/esm-translations";
|
|
|
21
21
|
* ]}
|
|
22
22
|
* />
|
|
23
23
|
* ```
|
|
24
|
-
*/
|
|
24
|
+
*/ /** Couleurs de tag disponibles (noms stables : ce sont les valeurs de la config `classificationTags`). Classes écrites en entier pour Tailwind. */ const TAG_COLORS = {
|
|
25
|
+
red: 'border-transparent bg-red-100 text-red-800 dark:bg-red-950 dark:text-red-200',
|
|
26
|
+
magenta: 'border-transparent bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-950 dark:text-fuchsia-200',
|
|
27
|
+
purple: 'border-transparent bg-purple-100 text-purple-800 dark:bg-purple-950 dark:text-purple-200',
|
|
28
|
+
blue: 'border-transparent bg-blue-100 text-blue-800 dark:bg-blue-950 dark:text-blue-200',
|
|
29
|
+
cyan: 'border-transparent bg-cyan-100 text-cyan-800 dark:bg-cyan-950 dark:text-cyan-200',
|
|
30
|
+
teal: 'border-transparent bg-teal-100 text-teal-800 dark:bg-teal-950 dark:text-teal-200',
|
|
31
|
+
green: 'border-transparent bg-green-100 text-green-800 dark:bg-green-950 dark:text-green-200',
|
|
32
|
+
gray: 'border-transparent bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200',
|
|
33
|
+
'cool-gray': 'border-transparent bg-slate-100 text-slate-800 dark:bg-slate-800 dark:text-slate-200',
|
|
34
|
+
'warm-gray': 'border-transparent bg-stone-100 text-stone-800 dark:bg-stone-800 dark:text-stone-200',
|
|
35
|
+
'high-contrast': 'border-transparent bg-foreground text-background',
|
|
36
|
+
outline: 'bg-transparent text-foreground'
|
|
37
|
+
};
|
|
38
|
+
export function ClassificationTags({ classifications }) {
|
|
25
39
|
const { classificationTags } = useConfig();
|
|
26
40
|
if (!classifications?.length) return null;
|
|
27
41
|
return /*#__PURE__*/ _jsx("div", {
|
|
42
|
+
className: "flex flex-wrap gap-1",
|
|
28
43
|
"aria-label": getCoreTranslation('classificationTags', 'Classification tags'),
|
|
29
44
|
children: classifications.map((tag, i)=>{
|
|
30
45
|
const isPrimary = tag.rank === 'primary' || tag.rank === 1;
|
|
31
46
|
const isSecondary = tag.rank === 'secondary' || tag.rank === 2;
|
|
32
47
|
const color = isPrimary ? classificationTags?.primaryColor ?? 'red' : isSecondary ? classificationTags?.secondaryColor ?? 'blue' : 'gray';
|
|
33
|
-
return /*#__PURE__*/ _jsx(
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
return /*#__PURE__*/ _jsx(Badge, {
|
|
49
|
+
variant: "outline",
|
|
50
|
+
className: TAG_COLORS[color] ?? TAG_COLORS.gray,
|
|
36
51
|
children: tag.display
|
|
37
52
|
}, `${tag.display}-${i}`);
|
|
38
53
|
})
|
package/dist/config-schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ConfigSchema } from '@egen-civitas/esm-config';
|
|
2
|
-
import { type
|
|
2
|
+
import { type TagColor } from './utils.js';
|
|
3
3
|
export interface StyleguideConfigObject {
|
|
4
4
|
'Brand color #1': string;
|
|
5
5
|
'Brand color #2': string;
|
|
@@ -18,8 +18,8 @@ export interface StyleguideConfigObject {
|
|
|
18
18
|
* Colors for primary/secondary classification tags.
|
|
19
19
|
*/
|
|
20
20
|
classificationTags: {
|
|
21
|
-
primaryColor:
|
|
22
|
-
secondaryColor:
|
|
21
|
+
primaryColor: TagColor;
|
|
22
|
+
secondaryColor: TagColor;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
export declare const esmStyleGuideSchema: ConfigSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../src/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../src/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,YAAY,CAAC;AAEtD,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,mBAAmB,EAAE;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF;;OAEG;IACH,kBAAkB,EAAE;QAClB,YAAY,EAAE,QAAQ,CAAC;QACvB,cAAc,EAAE,QAAQ,CAAC;KAC1B,CAAC;CACH;AAiBD,eAAO,MAAM,mBAAmB,EAAE,YA+DjC,CAAC"}
|
package/dist/config-schema.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Type, validators } from "@egen-civitas/esm-config";
|
|
2
|
-
import {
|
|
2
|
+
import { tagColors } from "./utils.js";
|
|
3
3
|
const classificationTagConfigSchema = {
|
|
4
4
|
primaryColor: {
|
|
5
5
|
_type: Type.String,
|
|
6
6
|
_description: 'The color for displaying primary classification tags',
|
|
7
7
|
_default: 'red',
|
|
8
8
|
_validators: [
|
|
9
|
-
validators.oneOf(
|
|
9
|
+
validators.oneOf(tagColors)
|
|
10
10
|
]
|
|
11
11
|
},
|
|
12
12
|
secondaryColor: {
|
|
@@ -14,7 +14,7 @@ const classificationTagConfigSchema = {
|
|
|
14
14
|
_description: 'The color for displaying secondary classification tags',
|
|
15
15
|
_default: 'blue',
|
|
16
16
|
_validators: [
|
|
17
|
-
validators.oneOf(
|
|
17
|
+
validators.oneOf(tagColors)
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/** @category FolderGallery */ import React, { useState } from "react";
|
|
3
3
|
import { motion } from "framer-motion";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import styles from "./folder-gallery.module.
|
|
5
|
+
import styles from "./folder-gallery.module.css";
|
|
6
6
|
/**
|
|
7
7
|
* `FolderGallery` — dossier interactif : une pile de cartes repliée dans un
|
|
8
8
|
* dossier stylisé (façon macOS), qui s'ouvre en éventail au clic et se
|
package/dist/containers/folder-gallery/{folder-gallery.module.scss → folder-gallery.module.css}
RENAMED
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// EGEN — FolderGallery
|
|
3
|
-
// ============================================================================
|
|
4
|
-
// L'esthétique "dossier" est volontairement sombre en permanence (comme
|
|
5
|
-
// l'original) — c'est un choix de design, pas un oubli de theming : on
|
|
6
|
-
// mappe donc sur l'échelle NEUTRE fixe du thème (--colors-neutral-*, une
|
|
7
|
-
// seule échelle, non déclinée clair/sombre) plutôt que sur --colors-surface-*
|
|
8
|
-
// (qui, elle, s'adapte). Seul le bandeau d'indice (`hint`), pensé pour se
|
|
9
|
-
// fondre dans la page, utilise --colors-surface-translucent (adapté).
|
|
10
|
-
// Zéro couleur hex/rgb figée — voir docs/guide-composants-et-theme.md §5.
|
|
11
|
-
// ============================================================================
|
|
12
|
-
|
|
13
1
|
.root {
|
|
14
2
|
width: 100%;
|
|
15
3
|
padding: 8rem 0;
|
|
16
4
|
position: relative;
|
|
17
|
-
|
|
18
|
-
// Accent personnalisable (surcharge de thème) — défaut : ton neutre clair fixe.
|
|
19
5
|
--fg-accent-default: color-mix(in srgb, var(--colors-neutral-50) 90%, transparent);
|
|
20
6
|
}
|
|
21
7
|
|
|
@@ -39,8 +25,6 @@
|
|
|
39
25
|
z-index: 0;
|
|
40
26
|
}
|
|
41
27
|
|
|
42
|
-
// ── Rabat arrière ────────────────────────────────────────────────────────────
|
|
43
|
-
|
|
44
28
|
.backFlap {
|
|
45
29
|
position: absolute;
|
|
46
30
|
bottom: 1.5rem;
|
|
@@ -85,8 +69,6 @@
|
|
|
85
69
|
pointer-events: none;
|
|
86
70
|
}
|
|
87
71
|
|
|
88
|
-
// ── Cartes ───────────────────────────────────────────────────────────────────
|
|
89
|
-
|
|
90
72
|
.itemsLayer {
|
|
91
73
|
position: absolute;
|
|
92
74
|
bottom: 2.5rem;
|
|
@@ -109,13 +91,10 @@
|
|
|
109
91
|
.item--open {
|
|
110
92
|
cursor: grab;
|
|
111
93
|
pointer-events: auto;
|
|
112
|
-
|
|
113
|
-
&:active {
|
|
114
|
-
cursor: grabbing;
|
|
115
|
-
}
|
|
116
94
|
}
|
|
117
|
-
|
|
118
|
-
|
|
95
|
+
.item--open:active {
|
|
96
|
+
cursor: grabbing;
|
|
97
|
+
}
|
|
119
98
|
|
|
120
99
|
.frontFlap {
|
|
121
100
|
position: absolute;
|
|
@@ -150,12 +129,7 @@
|
|
|
150
129
|
left: 0;
|
|
151
130
|
right: 0;
|
|
152
131
|
height: 1px;
|
|
153
|
-
background: linear-gradient(
|
|
154
|
-
to right,
|
|
155
|
-
transparent,
|
|
156
|
-
color-mix(in srgb, var(--colors-neutral-50) 40%, transparent),
|
|
157
|
-
transparent
|
|
158
|
-
);
|
|
132
|
+
background: linear-gradient(to right, transparent, color-mix(in srgb, var(--colors-neutral-50) 40%, transparent), transparent);
|
|
159
133
|
}
|
|
160
134
|
|
|
161
135
|
.label {
|
|
@@ -178,8 +152,6 @@
|
|
|
178
152
|
letter-spacing: 0.02em;
|
|
179
153
|
}
|
|
180
154
|
|
|
181
|
-
// ── Indice (adapté au thème, contrairement au reste) ────────────────────────
|
|
182
|
-
|
|
183
155
|
.hint {
|
|
184
156
|
position: absolute;
|
|
185
157
|
bottom: 2.5rem;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/** @category LayoutGrid */ import React, { useEffect, useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { motion } from "framer-motion";
|
|
5
|
-
import styles from "./layout-grid.module.
|
|
5
|
+
import styles from "./layout-grid.module.css";
|
|
6
6
|
/**
|
|
7
7
|
* `LayoutGrid` — grille de cartes dont le CONTENU est entièrement fourni par
|
|
8
8
|
* le consommateur (aucune hypothèse sur ce qu'elles affichent — voir la
|