@metropolle/design-system 1.2025.0-9.6.255 → 1.2025.1-0.2.29

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 (35) hide show
  1. package/dist/css/compat/back.css +31 -23
  2. package/dist/css/components.css +517 -13
  3. package/dist/css/mermaid.css +163 -0
  4. package/dist/react/components/react/DataTable/DataTable.d.ts +4 -0
  5. package/dist/react/components/react/DataTable/DataTable.d.ts.map +1 -0
  6. package/dist/react/components/react/DataTable/TableHeader.d.ts +4 -0
  7. package/dist/react/components/react/DataTable/TableHeader.d.ts.map +1 -0
  8. package/dist/react/components/react/DataTable/TableRow.d.ts +4 -0
  9. package/dist/react/components/react/DataTable/TableRow.d.ts.map +1 -0
  10. package/dist/react/components/react/DataTable/examples.d.ts +28 -0
  11. package/dist/react/components/react/DataTable/examples.d.ts.map +1 -0
  12. package/dist/react/components/react/DataTable/index.d.ts +7 -0
  13. package/dist/react/components/react/DataTable/index.d.ts.map +1 -0
  14. package/dist/react/components/react/DataTable/migration-example.d.ts +46 -0
  15. package/dist/react/components/react/DataTable/migration-example.d.ts.map +1 -0
  16. package/dist/react/components/react/DataTable/renderers.d.ts +24 -0
  17. package/dist/react/components/react/DataTable/renderers.d.ts.map +1 -0
  18. package/dist/react/components/react/DataTable/types.d.ts +57 -0
  19. package/dist/react/components/react/DataTable/types.d.ts.map +1 -0
  20. package/dist/react/components/react/Select/Select.d.ts +20 -0
  21. package/dist/react/components/react/Select/Select.d.ts.map +1 -0
  22. package/dist/react/components/react/Select/index.d.ts +2 -0
  23. package/dist/react/components/react/Select/index.d.ts.map +1 -0
  24. package/dist/react/components/react/ThemeToggle/ThemeToggle.d.ts +28 -0
  25. package/dist/react/components/react/ThemeToggle/ThemeToggle.d.ts.map +1 -0
  26. package/dist/react/components/react/ThemeToggle/index.d.ts +3 -0
  27. package/dist/react/components/react/ThemeToggle/index.d.ts.map +1 -0
  28. package/dist/react/components/react/index.d.ts +6 -0
  29. package/dist/react/components/react/index.d.ts.map +1 -1
  30. package/dist/react/index.d.ts +6 -0
  31. package/dist/react/index.esm.js +696 -2
  32. package/dist/react/index.esm.js.map +1 -1
  33. package/dist/react/index.js +708 -0
  34. package/dist/react/index.js.map +1 -1
  35. package/package.json +6 -4
@@ -100,11 +100,15 @@ button:not([style]):not(.mds-button):not([class*="mds-button"]):not([class*="btn
100
100
  transform: translateY(-1px) !important;
101
101
  }
102
102
 
103
- /* Modal close button must stay static */
103
+ /* Modal close button: keep static (no lift) but preserve vertical centering */
104
104
  .mds-modal-header > button[aria-label="Fechar"],
105
105
  .mds-modal-header > button[aria-label="Fechar"]:hover,
106
- .mds-modal-header > button[aria-label="Fechar"]:focus {
107
- transform: none !important;
106
+ .mds-modal-header > button[aria-label="Fechar"]:focus,
107
+ .mds-modal-header > button[aria-label="Fechar"]:focus-visible {
108
+ position: absolute !important;
109
+ right: 16px !important;
110
+ top: 50% !important;
111
+ transform: translateY(-50%) !important;
108
112
  transition: none !important;
109
113
  box-shadow: none !important;
110
114
  background-color: transparent !important;
@@ -193,19 +197,20 @@ html[data-theme="light"] button:hover {
193
197
  /* ========================================
194
198
  Selects and period filter (theme-responsive)
195
199
  ======================================== */
196
- select,
200
+ select:not(.mds-select-themed):not(.mds-period-filter__select),
197
201
  .mds-period-filter__select {
198
- background-color: rgba(255, 255, 255, 0.1) !important;
202
+ /* Match DS ghost button default state */
203
+ background-color: transparent !important;
199
204
  color: #ffffff !important;
200
- border: 1px solid rgba(255, 255, 255, 0.2) !important;
205
+ border: none !important;
201
206
  border-radius: 8px !important;
202
207
  padding: 0.5rem 1rem !important;
203
208
  font-family: inherit !important;
204
209
  font-size: 0.875rem !important;
205
210
  cursor: pointer !important;
206
- transition: all 0.2s ease !important;
207
- backdrop-filter: blur(10px) !important;
208
- -webkit-backdrop-filter: blur(10px) !important;
211
+ transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
212
+ backdrop-filter: none !important;
213
+ -webkit-backdrop-filter: none !important;
209
214
  -webkit-appearance: none !important;
210
215
  -moz-appearance: none !important;
211
216
  appearance: none !important;
@@ -216,53 +221,52 @@ select,
216
221
  padding-right: 2.5rem !important;
217
222
  }
218
223
 
219
- select:hover,
224
+ select:not(.mds-select-themed):not(.mds-period-filter__select):hover,
220
225
  .mds-period-filter__select:hover {
221
- background-color: rgba(255, 255, 255, 0.15) !important;
222
- border-color: rgba(255, 255, 255, 0.3) !important;
226
+ /* Same hover treatment as DS ghost */
227
+ background-color: var(--mds-color-background-secondary) !important;
223
228
  }
224
229
 
225
- select:focus,
230
+ select:not(.mds-select-themed):not(.mds-period-filter__select):focus,
226
231
  .mds-period-filter__select:focus {
227
232
  outline: none !important;
228
233
  border-color: #60a5fa !important;
229
234
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2) !important;
230
235
  }
231
236
 
232
- select:disabled,
237
+ select:not(.mds-select-themed):not(.mds-period-filter__select):disabled,
233
238
  .mds-period-filter__select:disabled {
234
239
  opacity: 0.5 !important;
235
240
  cursor: not-allowed !important;
236
241
  }
237
242
 
238
- select option {
243
+ select:not(.mds-select-themed):not(.mds-period-filter__select) option {
239
244
  background-color: rgba(30, 30, 30, 0.95) !important;
240
245
  color: #ffffff !important;
241
246
  padding: 0.5rem !important;
242
247
  }
243
248
 
244
249
  /* Light theme select styles */
245
- html[data-theme="light"] select,
250
+ html[data-theme="light"] select:not(.mds-select-themed):not(.mds-period-filter__select),
246
251
  html[data-theme="light"] .mds-period-filter__select {
247
- background-color: rgba(0, 0, 0, 0.05) !important;
252
+ background-color: transparent !important;
248
253
  color: #1a1a1a !important;
249
- border-color: rgba(0, 0, 0, 0.1) !important;
254
+ border: none !important;
250
255
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
251
256
  }
252
257
 
253
- html[data-theme="light"] select:hover,
258
+ html[data-theme="light"] select:not(.mds-select-themed):not(.mds-period-filter__select):hover,
254
259
  html[data-theme="light"] .mds-period-filter__select:hover {
255
- background-color: rgba(0, 0, 0, 0.08) !important;
256
- border-color: rgba(0, 0, 0, 0.15) !important;
260
+ background-color: rgba(0, 0, 0, 0.05) !important;
257
261
  }
258
262
 
259
- html[data-theme="light"] select:focus,
263
+ html[data-theme="light"] select:not(.mds-select-themed):not(.mds-period-filter__select):focus,
260
264
  html[data-theme="light"] .mds-period-filter__select:focus {
261
265
  border-color: #3b82f6 !important;
262
266
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
263
267
  }
264
268
 
265
- html[data-theme="light"] select option {
269
+ html[data-theme="light"] select:not(.mds-select-themed):not(.mds-period-filter__select) option {
266
270
  background-color: rgba(250, 250, 250, 0.95) !important;
267
271
  color: #1a1a1a !important;
268
272
  }
@@ -280,6 +284,10 @@ html[data-theme="light"] select option {
280
284
  min-width: 150px !important;
281
285
  }
282
286
 
287
+ .mds-dropdown {
288
+ position: relative !important;
289
+ }
290
+
283
291
  /* ========================================
284
292
  Inputs and selects (mds-*)
285
293
  ======================================== */