@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.
Files changed (288) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +1 -1
  3. package/dist/cards/card-header.component.d.ts.map +1 -1
  4. package/dist/cards/card-header.component.js +4 -6
  5. package/dist/cards/card-header.stories.js +11 -7
  6. package/dist/cards/decorated-card/card-decorations.js +1 -1
  7. package/dist/cards/decorated-card/decorated-card.component.js +1 -1
  8. package/dist/cards/decorated-card/{decorated-card.module.scss → decorated-card.module.css} +45 -70
  9. package/dist/carousel/circular-gallery/circular-gallery.component.js +1 -1
  10. package/dist/carousel/circular-gallery/circular-gallery.module.css +140 -0
  11. package/dist/carousel/circular-gallery/gallery-image.component.js +1 -1
  12. package/dist/carousel/circular-gallery/gallery-tabs.component.js +1 -1
  13. package/dist/carousel/image-swiper/image-swiper.component.js +1 -1
  14. package/dist/carousel/image-swiper/image-swiper.module.css +31 -0
  15. package/dist/carousel/slider/carousel.component.js +1 -1
  16. package/dist/carousel/slider/slider-container.component.js +1 -1
  17. package/dist/carousel/slider/slider-dot-button.component.js +1 -1
  18. package/dist/carousel/slider/slider.component.js +1 -1
  19. package/dist/carousel/slider/slider.module.css +133 -0
  20. package/dist/carousel/slider/thumbs-slider.component.js +1 -1
  21. package/dist/carousel/testimonial-card/testimonial-card-stack.component.js +1 -1
  22. package/dist/carousel/testimonial-card/testimonial-card-stack.module.css +5 -0
  23. package/dist/carousel/testimonial-card/testimonial-card.component.js +1 -1
  24. package/dist/carousel/testimonial-card/testimonial-card.module.css +51 -0
  25. package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.js +1 -1
  26. package/dist/cascading-nav-dropdown/{cascading-nav-dropdown.module.scss → cascading-nav-dropdown.module.css} +27 -52
  27. package/dist/cascading-nav-dropdown/column-with-search.component.js +1 -1
  28. package/dist/classification-tags/classification-tags.component.d.ts +0 -19
  29. package/dist/classification-tags/classification-tags.component.d.ts.map +1 -1
  30. package/dist/classification-tags/classification-tags.component.js +20 -5
  31. package/dist/config-schema.d.ts +3 -3
  32. package/dist/config-schema.d.ts.map +1 -1
  33. package/dist/config-schema.js +3 -3
  34. package/dist/containers/folder-gallery/folder-gallery.component.js +1 -1
  35. package/dist/containers/folder-gallery/{folder-gallery.module.scss → folder-gallery.module.css} +4 -32
  36. package/dist/containers/layout-grid/layout-grid.component.js +1 -1
  37. package/dist/containers/layout-grid/layout-grid.module.css +105 -0
  38. package/dist/content-section/content-section.component.js +1 -1
  39. package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts +26 -8
  40. package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts.map +1 -1
  41. package/dist/custom-overflow-menu/custom-overflow-menu.component.js +66 -29
  42. package/dist/custom-overflow-menu/custom-overflow-menu.module.css +82 -0
  43. package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts +14 -1
  44. package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts.map +1 -1
  45. package/dist/data-table-batch-actions/data-table-batch-actions.component.js +42 -20
  46. package/dist/datepicker/auto-close-dialog.component.js +1 -1
  47. package/dist/datepicker/calendar-popover.component.js +3 -3
  48. package/dist/datepicker/date-picker-input.component.d.ts +1 -1
  49. package/dist/datepicker/date-picker-input.component.js +1 -1
  50. package/dist/datepicker/datepicker.module.css +540 -0
  51. package/dist/datepicker/egen-date-picker.component.d.ts +1 -1
  52. package/dist/datepicker/egen-date-picker.component.d.ts.map +1 -1
  53. package/dist/datepicker/egen-date-picker.component.js +13 -10
  54. package/dist/datepicker/egen-date-range-picker.component.d.ts +1 -1
  55. package/dist/datepicker/egen-date-range-picker.component.d.ts.map +1 -1
  56. package/dist/datepicker/egen-date-range-picker.component.js +15 -11
  57. package/dist/datepicker/month-year.component.d.ts +1 -1
  58. package/dist/datepicker/month-year.component.js +1 -1
  59. package/dist/dialogs/card-modal/card-modal.component.js +1 -1
  60. package/dist/dialogs/card-modal/{card-modal.module.scss → card-modal.module.css} +10 -32
  61. package/dist/dialogs/card-modal/card-modal.warp-glow.js +1 -1
  62. package/dist/empty-card/empty-card.component.d.ts.map +1 -1
  63. package/dist/empty-card/empty-card.component.js +6 -7
  64. package/dist/error-state/error-state.component.d.ts.map +1 -1
  65. package/dist/error-state/error-state.component.js +5 -5
  66. package/dist/fields/dynamic-field.component.js +1 -1
  67. package/dist/fields/{dynamic-field.module.scss → dynamic-field.module.css} +60 -107
  68. package/dist/fields/dynamic-field.types.d.ts +1 -1
  69. package/dist/fields/dynamic-field.types.d.ts.map +1 -1
  70. package/dist/fields/field-icon.component.js +1 -1
  71. package/dist/fields/kinetic-label.component.js +1 -1
  72. package/dist/fields/validation-icon.component.js +1 -1
  73. package/dist/glass-card/liquid-glass-card.component.js +1 -1
  74. package/dist/glass-card/liquid-glass-card.module.css +121 -0
  75. package/dist/hero-mosaic/hero-mosaic.component.js +1 -1
  76. package/dist/hero-mosaic/{hero-mosaic.module.scss → hero-mosaic.module.css} +32 -28
  77. package/dist/hero-mosaic/hero-tile-card.component.js +1 -1
  78. package/dist/icons/error-filled.icon.d.ts +1 -2
  79. package/dist/icons/error-filled.icon.d.ts.map +1 -1
  80. package/dist/icons/error-filled.icon.js +1 -2
  81. package/dist/icons/icons.js +1 -1
  82. package/dist/icons/icons.module.css +3 -0
  83. package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.js +1 -1
  84. package/dist/master-detail/entity-detail-browser/{entity-detail-browser.module.scss → entity-detail-browser.module.css} +74 -66
  85. package/dist/master-detail/entity-detail-browser/gradient-blur.component.js +1 -1
  86. package/dist/modals/index.d.ts.map +1 -1
  87. package/dist/modals/index.js +24 -1
  88. package/dist/notifications/actionable-notification.component.d.ts.map +1 -1
  89. package/dist/notifications/actionable-notification.component.js +6 -9
  90. package/dist/notifications/notification.component.d.ts.map +1 -1
  91. package/dist/notifications/notification.component.js +5 -7
  92. package/dist/page-background/page-background.utils.d.ts +3 -5
  93. package/dist/page-background/page-background.utils.d.ts.map +1 -1
  94. package/dist/page-background/page-background.utils.js +3 -7
  95. package/dist/page-header/page-header.component.js +1 -1
  96. package/dist/page-header/page-header.module.css +28 -0
  97. package/dist/pagination/pagination.component.d.ts +6 -3
  98. package/dist/pagination/pagination.component.d.ts.map +1 -1
  99. package/dist/pagination/pagination.component.js +98 -33
  100. package/dist/pictograms/pictograms.js +1 -1
  101. package/dist/pictograms/pictograms.module.css +3 -0
  102. package/dist/public.d.ts +1 -0
  103. package/dist/public.d.ts.map +1 -1
  104. package/dist/public.js +1 -0
  105. package/dist/responsive-wrapper/responsive-wrapper.component.d.ts +1 -1
  106. package/dist/responsive-wrapper/responsive-wrapper.component.js +3 -2
  107. package/dist/responsive-wrapper/responsive-wrapper.stories.js +3 -3
  108. package/dist/selections/interactive-selector/interactive-selector.component.js +1 -1
  109. package/dist/selections/interactive-selector/{interactive-selector.module.scss → interactive-selector.module.css} +15 -49
  110. package/dist/selections/select-popover/select-avatar.component.js +1 -1
  111. package/dist/selections/select-popover/select-content.component.js +1 -1
  112. package/dist/selections/select-popover/{select-popover.module.scss → select-popover.module.css} +22 -34
  113. package/dist/selections/select-popover/select-trigger.component.js +1 -1
  114. package/dist/sheet/sheet-content.component.js +1 -1
  115. package/dist/sheet/sheet-overlay.component.js +1 -1
  116. package/dist/sheet/sheet-parts.component.js +1 -1
  117. package/dist/sheet/sheet-trigger.component.js +1 -1
  118. package/dist/sheet/{sheet.module.scss → sheet.module.css} +12 -31
  119. package/dist/snackbars/snackbar.component.d.ts.map +1 -1
  120. package/dist/snackbars/snackbar.component.js +8 -10
  121. package/dist/snackbars/{snackbar.module.scss → snackbar.module.css} +0 -2
  122. package/dist/styles.css +1364 -0
  123. package/dist/toasts/toast-progress-bar.component.js +1 -1
  124. package/dist/toasts/toast.component.js +1 -1
  125. package/dist/toasts/{toast.module.scss → toast.module.css} +27 -34
  126. package/dist/top-bar/top-bar.component.d.ts +1 -1
  127. package/dist/top-bar/top-bar.component.d.ts.map +1 -1
  128. package/dist/ui/alert.d.ts +10 -0
  129. package/dist/ui/alert.d.ts.map +1 -0
  130. package/dist/ui/alert.js +47 -0
  131. package/dist/ui/app-header.d.ts +10 -0
  132. package/dist/ui/app-header.d.ts.map +1 -0
  133. package/dist/ui/app-header.js +36 -0
  134. package/dist/ui/badge.d.ts +10 -0
  135. package/dist/ui/badge.d.ts.map +1 -0
  136. package/dist/ui/badge.js +34 -0
  137. package/dist/ui/button.d.ts +11 -0
  138. package/dist/ui/button.d.ts.map +1 -0
  139. package/dist/ui/button.js +48 -0
  140. package/dist/ui/cn.d.ts +7 -0
  141. package/dist/ui/cn.d.ts.map +1 -0
  142. package/dist/ui/cn.js +8 -0
  143. package/dist/ui/dialog.d.ts +18 -0
  144. package/dist/ui/dialog.d.ts.map +1 -0
  145. package/dist/ui/dialog.js +105 -0
  146. package/dist/ui/dropdown-menu.d.ts +26 -0
  147. package/dist/ui/dropdown-menu.d.ts.map +1 -0
  148. package/dist/ui/dropdown-menu.js +143 -0
  149. package/dist/ui/icon-button.d.ts +17 -0
  150. package/dist/ui/icon-button.d.ts.map +1 -0
  151. package/dist/ui/icon-button.js +30 -0
  152. package/dist/ui/index.d.ts +23 -0
  153. package/dist/ui/index.d.ts.map +1 -0
  154. package/dist/ui/index.js +25 -0
  155. package/dist/ui/inline-loading.d.ts +11 -0
  156. package/dist/ui/inline-loading.d.ts.map +1 -0
  157. package/dist/ui/inline-loading.js +34 -0
  158. package/dist/ui/input.d.ts +4 -0
  159. package/dist/ui/input.d.ts.map +1 -0
  160. package/dist/ui/input.js +14 -0
  161. package/dist/ui/label.d.ts +5 -0
  162. package/dist/ui/label.d.ts.map +1 -0
  163. package/dist/ui/label.js +14 -0
  164. package/dist/ui/layer.d.ts +8 -0
  165. package/dist/ui/layer.d.ts.map +1 -0
  166. package/dist/ui/layer.js +14 -0
  167. package/dist/ui/link.d.ts +11 -0
  168. package/dist/ui/link.d.ts.map +1 -0
  169. package/dist/ui/link.js +15 -0
  170. package/dist/ui/modal.d.ts +14 -0
  171. package/dist/ui/modal.d.ts.map +1 -0
  172. package/dist/ui/modal.js +48 -0
  173. package/dist/ui/notification-banner.d.ts +19 -0
  174. package/dist/ui/notification-banner.d.ts.map +1 -0
  175. package/dist/ui/notification-banner.js +75 -0
  176. package/dist/ui/separator.d.ts +5 -0
  177. package/dist/ui/separator.d.ts.map +1 -0
  178. package/dist/ui/separator.js +16 -0
  179. package/dist/ui/spinner.d.ts +4 -0
  180. package/dist/ui/spinner.d.ts.map +1 -0
  181. package/dist/ui/spinner.js +15 -0
  182. package/dist/ui/switch.d.ts +7 -0
  183. package/dist/ui/switch.d.ts.map +1 -0
  184. package/dist/ui/switch.js +19 -0
  185. package/dist/ui/table.d.ts +11 -0
  186. package/dist/ui/table.d.ts.map +1 -0
  187. package/dist/ui/table.js +66 -0
  188. package/dist/ui/tabs.d.ts +12 -0
  189. package/dist/ui/tabs.d.ts.map +1 -0
  190. package/dist/ui/tabs.js +52 -0
  191. package/dist/ui/text-input.d.ts +19 -0
  192. package/dist/ui/text-input.d.ts.map +1 -0
  193. package/dist/ui/text-input.js +35 -0
  194. package/dist/ui/tile.d.ts +10 -0
  195. package/dist/ui/tile.d.ts.map +1 -0
  196. package/dist/ui/tile.js +55 -0
  197. package/dist/ui/tooltip.d.ts +8 -0
  198. package/dist/ui/tooltip.d.ts.map +1 -0
  199. package/dist/ui/tooltip.js +42 -0
  200. package/dist/utils.d.ts +3 -4
  201. package/dist/utils.d.ts.map +1 -1
  202. package/dist/utils.js +2 -3
  203. package/dist/workbench/section-nav-panel.component.d.ts +1 -1
  204. package/dist/workbench/section-nav-panel.component.d.ts.map +1 -1
  205. package/dist/workbench/section-nav-panel.component.js +4 -19
  206. package/dist/workbench/{section-nav-panel.module.scss → section-nav-panel.module.css} +14 -20
  207. package/dist/workbench/splitter.component.js +1 -1
  208. package/dist/workbench/tool-window-rail.component.js +1 -1
  209. package/dist/workbench/tool-window-zone.component.js +1 -1
  210. package/dist/workbench/workbench.module.css +363 -0
  211. package/dist/workspaces/action-menu-button/action-menu-button.component.d.ts.map +1 -1
  212. package/dist/workspaces/action-menu-button/action-menu-button.component.js +5 -10
  213. package/dist/workspaces/action-menu-button/action-menu-button.module.css +94 -0
  214. package/dist/workspaces/container/action-menu.component.js +1 -1
  215. package/dist/workspaces/container/action-menu.module.css +68 -0
  216. package/dist/workspaces/container/workspace-container.component.d.ts.map +1 -1
  217. package/dist/workspaces/container/workspace-container.component.js +13 -14
  218. package/dist/workspaces/container/workspace-renderer.component.js +2 -2
  219. package/dist/workspaces/container/workspace.module.css +204 -0
  220. package/dist/workspaces/notification/workspace-notification.component.d.ts.map +1 -1
  221. package/dist/workspaces/notification/workspace-notification.component.js +32 -28
  222. package/dist/workspaces2/action-menu2/action-menu-button2.component.d.ts.map +1 -1
  223. package/dist/workspaces2/action-menu2/action-menu-button2.component.js +5 -10
  224. package/dist/workspaces2/action-menu2/action-menu-button2.module.css +93 -0
  225. package/dist/workspaces2/action-menu2/action-menu2.component.d.ts.map +1 -1
  226. package/dist/workspaces2/action-menu2/action-menu2.component.js +4 -5
  227. package/dist/workspaces2/action-menu2/action-menu2.module.css +70 -0
  228. package/dist/workspaces2/active-workspace-window.component.js +2 -2
  229. package/dist/workspaces2/workspace-windows-and-menu.component.js +1 -1
  230. package/dist/workspaces2/workspace-windows-and-menu.module.css +27 -0
  231. package/dist/workspaces2/workspace2-close-prompt.modal.d.ts.map +1 -1
  232. package/dist/workspaces2/workspace2-close-prompt.modal.js +7 -6
  233. package/dist/workspaces2/workspace2.component.js +11 -12
  234. package/dist/workspaces2/workspace2.module.css +163 -0
  235. package/package.json +15 -15
  236. package/dist/_all.scss +0 -31
  237. package/dist/_carbon-bridge.scss +0 -194
  238. package/dist/_glass.scss +0 -75
  239. package/dist/_overrides.scss +0 -731
  240. package/dist/_panel.scss +0 -123
  241. package/dist/_vars.scss +0 -111
  242. package/dist/animations/_animations.scss +0 -102
  243. package/dist/animations/_index.scss +0 -5
  244. package/dist/animations/_keyframes.scss +0 -135
  245. package/dist/animations/_mixins.scss +0 -16
  246. package/dist/animations/_tokens.scss +0 -16
  247. package/dist/animations/_workbench-motion.scss +0 -36
  248. package/dist/cards/card-header.module.scss +0 -45
  249. package/dist/cards/decorated-card/_decoration-bleed.scss +0 -26
  250. package/dist/carousel/circular-gallery/circular-gallery.module.scss +0 -165
  251. package/dist/carousel/image-swiper/image-swiper.module.scss +0 -43
  252. package/dist/carousel/slider/slider.module.scss +0 -176
  253. package/dist/carousel/testimonial-card/testimonial-card-stack.module.scss +0 -18
  254. package/dist/carousel/testimonial-card/testimonial-card.module.scss +0 -73
  255. package/dist/components/_breadcrumbs.scss +0 -11
  256. package/dist/components/_canvas.scss +0 -19
  257. package/dist/components/_general.scss +0 -337
  258. package/dist/components/_main-content.scss +0 -28
  259. package/dist/components/_panel-overrides.scss +0 -130
  260. package/dist/containers/layout-grid/layout-grid.module.scss +0 -143
  261. package/dist/custom-overflow-menu/custom-overflow-menu.module.scss +0 -38
  262. package/dist/datepicker/datepicker.module.scss +0 -502
  263. package/dist/empty-card/empty-card.module.scss +0 -27
  264. package/dist/error-state/error-state.module.scss +0 -21
  265. package/dist/glass-card/liquid-glass-card.module.scss +0 -154
  266. package/dist/icons/icons.module.scss +0 -5
  267. package/dist/modals/_modals.scss +0 -13
  268. package/dist/notifications/_actionable-notifications.scss +0 -23
  269. package/dist/notifications/_notifications.scss +0 -22
  270. package/dist/page-header/page-header.module.scss +0 -28
  271. package/dist/pagination/pagination.module.scss +0 -66
  272. package/dist/pictograms/pictograms.module.scss +0 -5
  273. package/dist/snackbars/_snackbars.scss +0 -31
  274. package/dist/spinner/_loader.scss +0 -94
  275. package/dist/spinner/_spinner.scss +0 -1
  276. package/dist/toasts/_toasts.scss +0 -22
  277. package/dist/workbench/workbench.module.scss +0 -439
  278. package/dist/workspaces/action-menu-button/action-menu-button.module.scss +0 -111
  279. package/dist/workspaces/container/action-menu.module.scss +0 -90
  280. package/dist/workspaces/container/workspace.module.scss +0 -276
  281. package/dist/workspaces/notification/workspace-notification.module.scss +0 -5
  282. package/dist/workspaces2/action-menu2/action-menu-button2.module.scss +0 -113
  283. package/dist/workspaces2/action-menu2/action-menu2.module.scss +0 -87
  284. package/dist/workspaces2/workspace-windows-and-menu.module.scss +0 -32
  285. package/dist/workspaces2/workspace2-close-prompt.module.scss +0 -8
  286. package/dist/workspaces2/workspace2.module.scss +0 -228
  287. package/src/_vars.scss +0 -111
  288. /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.scss";
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.scss";
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
@@ -0,0 +1,5 @@
1
+ .stack {
2
+ position: relative;
3
+ display: grid;
4
+ place-content: center;
5
+ }
@@ -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.scss";
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.scss";
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
- &:hover {
32
- background: var(--colors-surface-translucent-hover, var(--colors-surface-muted));
33
- }
34
-
35
- &:focus-visible {
36
- outline: 2px solid var(--colors-primary-500);
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
- @include panel.panel-surface('dropdown');
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
- &:last-child {
108
- border-right: none;
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
- &::placeholder {
139
- color: var(--colors-surface-muted-foreground);
140
- }
141
-
142
- &:focus {
143
- outline: none;
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
- &:hover,
172
- &[data-active] {
173
- background: var(--colors-surface-muted);
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.scss";
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;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,eAAe,EAAE,EAAE,uBAAuB,4BAwB9E"}
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
- */ export function ClassificationTags({ classifications }) {
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(Tag, {
34
- type: color,
35
- size: "sm",
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
  })
@@ -1,5 +1,5 @@
1
1
  import { type ConfigSchema } from '@egen-civitas/esm-config';
2
- import { type CarbonTagColor } from './utils.js';
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: CarbonTagColor;
22
- secondaryColor: CarbonTagColor;
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,cAAc,EAAmB,MAAM,YAAY,CAAC;AAElE,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,cAAc,CAAC;QAC7B,cAAc,EAAE,cAAc,CAAC;KAChC,CAAC;CACH;AAiBD,eAAO,MAAM,mBAAmB,EAAE,YA+DjC,CAAC"}
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"}
@@ -1,12 +1,12 @@
1
1
  import { Type, validators } from "@egen-civitas/esm-config";
2
- import { carbonTagColors } from "./utils.js";
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(carbonTagColors)
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(carbonTagColors)
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.scss";
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
@@ -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
- // ── Rabat avant (déclencheur) ────────────────────────────────────────────────
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.scss";
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