@richardmcquiston01/dashboard-widgets-toolkit 0.11.0 → 0.11.2
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/dist/react.cjs +195 -24
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +195 -24
- package/dist/react.js.map +1 -1
- package/dist/styles.css +49 -8
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -289,16 +289,50 @@
|
|
|
289
289
|
font-weight: 600;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
:where(.dwt-move-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
292
|
+
:where(.dwt-move-menu) {
|
|
293
|
+
position: relative;
|
|
294
|
+
display: inline-flex;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* A small floating panel over the card, under the Move button. */
|
|
298
|
+
:where(.dwt-move-popover) {
|
|
299
|
+
position: absolute;
|
|
300
|
+
top: calc(100% + 4px);
|
|
301
|
+
right: 0;
|
|
302
|
+
z-index: 20;
|
|
303
|
+
display: flex;
|
|
304
|
+
flex-direction: column;
|
|
305
|
+
min-width: 11rem;
|
|
306
|
+
max-width: 16rem;
|
|
307
|
+
padding: 4px;
|
|
308
|
+
background: var(--dwt-surface, #fff);
|
|
298
309
|
color: var(--dwt-text);
|
|
299
|
-
background: var(--dwt-surface, transparent);
|
|
300
310
|
border: 1px solid var(--dwt-border);
|
|
311
|
+
border-radius: 8px;
|
|
312
|
+
box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
:where(.dwt-move-heading) {
|
|
316
|
+
margin: 0;
|
|
317
|
+
padding: 4px 8px;
|
|
318
|
+
color: var(--dwt-text-secondary);
|
|
319
|
+
font-size: 0.75rem;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
:where(.dwt-move-option) {
|
|
323
|
+
padding: 6px 8px;
|
|
324
|
+
font: inherit;
|
|
325
|
+
font-size: 0.8125rem;
|
|
326
|
+
text-align: left;
|
|
327
|
+
color: inherit;
|
|
328
|
+
background: transparent;
|
|
329
|
+
border: 0;
|
|
301
330
|
border-radius: 6px;
|
|
331
|
+
cursor: pointer;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
:where(.dwt-move-option:hover, .dwt-move-option:focus-visible) {
|
|
335
|
+
background: var(--dwt-surface-muted, rgb(127 127 127 / 0.15));
|
|
302
336
|
}
|
|
303
337
|
|
|
304
338
|
:where(.dwt-page-panel) {
|
|
@@ -351,12 +385,16 @@
|
|
|
351
385
|
|
|
352
386
|
:where(.dwt-card-header) {
|
|
353
387
|
display: flex;
|
|
388
|
+
flex-wrap: wrap;
|
|
354
389
|
align-items: flex-start;
|
|
355
390
|
justify-content: space-between;
|
|
356
391
|
gap: 8px;
|
|
357
392
|
}
|
|
358
393
|
|
|
394
|
+
/* The title keeps a readable width; when the edit controls don't fit beside
|
|
395
|
+
it (a narrow card with Move to page), they wrap below instead of covering it. */
|
|
359
396
|
:where(.dwt-card-heading) {
|
|
397
|
+
flex: 1 1 8rem;
|
|
360
398
|
min-width: 0;
|
|
361
399
|
}
|
|
362
400
|
|
|
@@ -375,7 +413,10 @@
|
|
|
375
413
|
|
|
376
414
|
:where(.dwt-card-actions) {
|
|
377
415
|
display: flex;
|
|
378
|
-
flex-
|
|
416
|
+
flex-wrap: wrap;
|
|
417
|
+
justify-content: flex-end;
|
|
418
|
+
max-width: 100%;
|
|
419
|
+
margin-left: auto;
|
|
379
420
|
gap: 2px;
|
|
380
421
|
}
|
|
381
422
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@richardmcquiston01/dashboard-widgets-toolkit",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Framework-agnostic dashboard widget toolkit: typed widget definitions and data payloads (KPI, gauge, table, bar list, alert list, chart), user layout (order, hide, minimise), and React renderers. Bring your own data providers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dashboard",
|