@richardmcquiston01/dashboard-widgets-toolkit 0.11.1 → 0.12.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/dist/react.cjs +242 -74
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +7 -1
- package/dist/react.d.ts +7 -1
- package/dist/react.js +242 -74
- package/dist/react.js.map +1 -1
- package/dist/styles.css +54 -8
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -289,16 +289,55 @@
|
|
|
289
289
|
font-weight: 600;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
:where(.dwt-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
292
|
+
:where(.dwt-edit-menu) {
|
|
293
|
+
position: relative;
|
|
294
|
+
display: inline-flex;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* A small floating panel over the card, under the arrange button. */
|
|
298
|
+
:where(.dwt-edit-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-edit-heading) {
|
|
316
|
+
margin: 0;
|
|
317
|
+
padding: 4px 8px;
|
|
318
|
+
color: var(--dwt-text-secondary);
|
|
319
|
+
font-size: 0.75rem;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
:where(.dwt-edit-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-edit-option:hover, .dwt-edit-option:focus-visible) {
|
|
335
|
+
background: var(--dwt-surface-muted, rgb(127 127 127 / 0.15));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
:where(.dwt-edit-option:disabled) {
|
|
339
|
+
opacity: 0.45;
|
|
340
|
+
cursor: default;
|
|
302
341
|
}
|
|
303
342
|
|
|
304
343
|
:where(.dwt-page-panel) {
|
|
@@ -351,12 +390,16 @@
|
|
|
351
390
|
|
|
352
391
|
:where(.dwt-card-header) {
|
|
353
392
|
display: flex;
|
|
393
|
+
flex-wrap: wrap;
|
|
354
394
|
align-items: flex-start;
|
|
355
395
|
justify-content: space-between;
|
|
356
396
|
gap: 8px;
|
|
357
397
|
}
|
|
358
398
|
|
|
399
|
+
/* The title keeps a readable width; when the edit controls don't fit beside
|
|
400
|
+
it (a narrow card with Move to page), they wrap below instead of covering it. */
|
|
359
401
|
:where(.dwt-card-heading) {
|
|
402
|
+
flex: 1 1 8rem;
|
|
360
403
|
min-width: 0;
|
|
361
404
|
}
|
|
362
405
|
|
|
@@ -375,7 +418,10 @@
|
|
|
375
418
|
|
|
376
419
|
:where(.dwt-card-actions) {
|
|
377
420
|
display: flex;
|
|
378
|
-
flex-
|
|
421
|
+
flex-wrap: wrap;
|
|
422
|
+
justify-content: flex-end;
|
|
423
|
+
max-width: 100%;
|
|
424
|
+
margin-left: auto;
|
|
379
425
|
gap: 2px;
|
|
380
426
|
}
|
|
381
427
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@richardmcquiston01/dashboard-widgets-toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
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",
|