@camunda/design-system 0.17.0 → 0.19.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/carbon-compat/radio-button.d.ts.map +1 -1
- package/dist/carbon-compat/radio-button.js +2 -2
- package/dist/carbon-compat/radio-button.js.map +1 -1
- package/dist/src/components/ui/bar-chart.d.ts +26 -0
- package/dist/src/components/ui/bar-chart.d.ts.map +1 -0
- package/dist/src/components/ui/bar-chart.js +76 -0
- package/dist/src/components/ui/bar-chart.js.map +1 -0
- package/dist/src/components/ui/chart.d.ts +34 -0
- package/dist/src/components/ui/chart.d.ts.map +1 -0
- package/dist/src/components/ui/chart.js +90 -0
- package/dist/src/components/ui/chart.js.map +1 -0
- package/dist/src/components/ui/line-chart.d.ts +25 -0
- package/dist/src/components/ui/line-chart.d.ts.map +1 -0
- package/dist/src/components/ui/line-chart.js +37 -0
- package/dist/src/components/ui/line-chart.js.map +1 -0
- package/dist/src/components/ui/meter.d.ts +24 -0
- package/dist/src/components/ui/meter.d.ts.map +1 -0
- package/dist/src/components/ui/meter.js +50 -0
- package/dist/src/components/ui/meter.js.map +1 -0
- package/dist/src/components/ui/page-layout.d.ts +4 -1
- package/dist/src/components/ui/page-layout.d.ts.map +1 -1
- package/dist/src/components/ui/page-layout.js +22 -8
- package/dist/src/components/ui/page-layout.js.map +1 -1
- package/dist/src/components/ui/time-range-selector.d.ts +19 -0
- package/dist/src/components/ui/time-range-selector.d.ts.map +1 -0
- package/dist/src/components/ui/time-range-selector.js +54 -0
- package/dist/src/components/ui/time-range-selector.js.map +1 -0
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.d.ts.map +1 -1
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.js +9 -8
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.js.map +1 -1
- package/dist/src/examples/cost-dashboard/CostDashboardPage.d.ts.map +1 -1
- package/dist/src/examples/cost-dashboard/CostDashboardPage.js +6 -2
- package/dist/src/examples/cost-dashboard/CostDashboardPage.js.map +1 -1
- package/dist/src/examples/cost-dashboard/TrendChart.d.ts.map +1 -1
- package/dist/src/examples/cost-dashboard/TrendChart.js +7 -9
- package/dist/src/examples/cost-dashboard/TrendChart.js.map +1 -1
- package/dist/src/examples/project-detail/ProjectDetailPage.d.ts.map +1 -1
- package/dist/src/examples/project-detail/ProjectDetailPage.js +3 -3
- package/dist/src/examples/project-detail/ProjectDetailPage.js.map +1 -1
- package/dist/src/examples/projects-list/ProjectsListPage.d.ts.map +1 -1
- package/dist/src/examples/projects-list/ProjectsListPage.js +7 -7
- package/dist/src/examples/projects-list/ProjectsListPage.js.map +1 -1
- package/dist/src/examples/shared/AppShell.d.ts +6 -1
- package/dist/src/examples/shared/AppShell.d.ts.map +1 -1
- package/dist/src/examples/shared/AppShell.js +7 -2
- package/dist/src/examples/shared/AppShell.js.map +1 -1
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -0
- package/dist/src/index.js.map +1 -1
- package/dist/styles.css +129 -0
- package/package.json +1 -1
- package/dist/src/examples/cost-dashboard/useChartColors.d.ts +0 -10
- package/dist/src/examples/cost-dashboard/useChartColors.d.ts.map +0 -1
- package/dist/src/examples/cost-dashboard/useChartColors.js +0 -20
- package/dist/src/examples/cost-dashboard/useChartColors.js.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
--container-xs: 20rem;
|
|
76
76
|
--container-sm: 24rem;
|
|
77
77
|
--container-md: 28rem;
|
|
78
|
+
--container-xl: 36rem;
|
|
78
79
|
--container-5xl: 64rem;
|
|
79
80
|
--text-xs: 0.75rem;
|
|
80
81
|
--text-xs--line-height: calc(1 / 0.75);
|
|
@@ -117,11 +118,13 @@
|
|
|
117
118
|
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
118
119
|
--blur-xs: 4px;
|
|
119
120
|
--blur-sm: 8px;
|
|
121
|
+
--aspect-video: 16 / 9;
|
|
120
122
|
--default-transition-duration: 150ms;
|
|
121
123
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
122
124
|
--default-font-family: "Geist Sans", sans-serif;
|
|
123
125
|
--default-mono-font-family: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
|
|
124
126
|
--font-heading: var(--font-sans);
|
|
127
|
+
--color-input: var(--input);
|
|
125
128
|
--color-overlay: var(--overlay);
|
|
126
129
|
}
|
|
127
130
|
.\@container\/card-header {
|
|
@@ -289,6 +292,9 @@
|
|
|
289
292
|
.mx-auto {
|
|
290
293
|
margin-inline: auto;
|
|
291
294
|
}
|
|
295
|
+
.my-0\.5 {
|
|
296
|
+
margin-block: calc(var(--spacing) * 0.5);
|
|
297
|
+
}
|
|
292
298
|
.my-1 {
|
|
293
299
|
margin-block: var(--spacing);
|
|
294
300
|
}
|
|
@@ -418,9 +424,15 @@
|
|
|
418
424
|
.field-sizing-content {
|
|
419
425
|
field-sizing: content;
|
|
420
426
|
}
|
|
427
|
+
.aspect-auto {
|
|
428
|
+
aspect-ratio: auto;
|
|
429
|
+
}
|
|
421
430
|
.aspect-square {
|
|
422
431
|
aspect-ratio: 1 / 1;
|
|
423
432
|
}
|
|
433
|
+
.aspect-video {
|
|
434
|
+
aspect-ratio: var(--aspect-video);
|
|
435
|
+
}
|
|
424
436
|
.size-2 {
|
|
425
437
|
width: calc(var(--spacing) * 2);
|
|
426
438
|
height: calc(var(--spacing) * 2);
|
|
@@ -524,6 +536,9 @@
|
|
|
524
536
|
.h-24 {
|
|
525
537
|
height: calc(var(--spacing) * 24);
|
|
526
538
|
}
|
|
539
|
+
.h-28 {
|
|
540
|
+
height: calc(var(--spacing) * 28);
|
|
541
|
+
}
|
|
527
542
|
.h-32 {
|
|
528
543
|
height: calc(var(--spacing) * 32);
|
|
529
544
|
}
|
|
@@ -617,6 +632,12 @@
|
|
|
617
632
|
.min-h-screen {
|
|
618
633
|
min-height: 100vh;
|
|
619
634
|
}
|
|
635
|
+
.w-0 {
|
|
636
|
+
width: 0;
|
|
637
|
+
}
|
|
638
|
+
.w-0\.5 {
|
|
639
|
+
width: calc(var(--spacing) * 0.5);
|
|
640
|
+
}
|
|
620
641
|
.w-1 {
|
|
621
642
|
width: var(--spacing);
|
|
622
643
|
}
|
|
@@ -767,6 +788,9 @@
|
|
|
767
788
|
.max-w-sm {
|
|
768
789
|
max-width: var(--container-sm);
|
|
769
790
|
}
|
|
791
|
+
.max-w-xl {
|
|
792
|
+
max-width: var(--container-xl);
|
|
793
|
+
}
|
|
770
794
|
.max-w-xs {
|
|
771
795
|
max-width: var(--container-xs);
|
|
772
796
|
}
|
|
@@ -974,6 +998,9 @@
|
|
|
974
998
|
.items-start {
|
|
975
999
|
align-items: flex-start;
|
|
976
1000
|
}
|
|
1001
|
+
.items-stretch {
|
|
1002
|
+
align-items: stretch;
|
|
1003
|
+
}
|
|
977
1004
|
.justify-between {
|
|
978
1005
|
justify-content: space-between;
|
|
979
1006
|
}
|
|
@@ -1217,6 +1244,10 @@
|
|
|
1217
1244
|
border-style: var(--tw-border-style);
|
|
1218
1245
|
border-width: 2px;
|
|
1219
1246
|
}
|
|
1247
|
+
.border-\[1\.5px\] {
|
|
1248
|
+
border-style: var(--tw-border-style);
|
|
1249
|
+
border-width: 1.5px;
|
|
1250
|
+
}
|
|
1220
1251
|
.border-t {
|
|
1221
1252
|
border-top-style: var(--tw-border-style);
|
|
1222
1253
|
border-top-width: 1px;
|
|
@@ -1249,6 +1280,9 @@
|
|
|
1249
1280
|
--tw-border-style: none;
|
|
1250
1281
|
border-style: none;
|
|
1251
1282
|
}
|
|
1283
|
+
.border-\(--color-border-tooltip\) {
|
|
1284
|
+
border-color: var(--color-border-tooltip);
|
|
1285
|
+
}
|
|
1252
1286
|
.border-accent-border-subtle {
|
|
1253
1287
|
border-color: var(--accent-border-subtle);
|
|
1254
1288
|
}
|
|
@@ -1294,6 +1328,12 @@
|
|
|
1294
1328
|
.border-l-transparent {
|
|
1295
1329
|
border-left-color: transparent;
|
|
1296
1330
|
}
|
|
1331
|
+
.bg-\(--color-indicator-legend\) {
|
|
1332
|
+
background-color: var(--color-indicator-legend);
|
|
1333
|
+
}
|
|
1334
|
+
.bg-\(--color-indicator-tooltip\) {
|
|
1335
|
+
background-color: var(--color-indicator-tooltip);
|
|
1336
|
+
}
|
|
1297
1337
|
.bg-\[var\(--color-blue-500\)\] {
|
|
1298
1338
|
background-color: var(--color-blue-500);
|
|
1299
1339
|
}
|
|
@@ -1411,6 +1451,9 @@
|
|
|
1411
1451
|
.bg-neutral-background-subtle {
|
|
1412
1452
|
background-color: var(--neutral-background-subtle);
|
|
1413
1453
|
}
|
|
1454
|
+
.bg-neutral-foreground-subtle {
|
|
1455
|
+
background-color: var(--neutral-foreground-subtle);
|
|
1456
|
+
}
|
|
1414
1457
|
.bg-orange-100 {
|
|
1415
1458
|
background-color: var(--color-orange-100);
|
|
1416
1459
|
}
|
|
@@ -1474,6 +1517,9 @@
|
|
|
1474
1517
|
.fill-foreground {
|
|
1475
1518
|
fill: var(--foreground);
|
|
1476
1519
|
}
|
|
1520
|
+
.fill-neutral-foreground-strong {
|
|
1521
|
+
fill: var(--neutral-foreground-strong);
|
|
1522
|
+
}
|
|
1477
1523
|
.fill-primary-action-default {
|
|
1478
1524
|
fill: var(--primary-action-default);
|
|
1479
1525
|
}
|
|
@@ -1603,6 +1649,9 @@
|
|
|
1603
1649
|
.pt-2 {
|
|
1604
1650
|
padding-top: calc(var(--spacing) * 2);
|
|
1605
1651
|
}
|
|
1652
|
+
.pt-3 {
|
|
1653
|
+
padding-top: calc(var(--spacing) * 3);
|
|
1654
|
+
}
|
|
1606
1655
|
.pt-4 {
|
|
1607
1656
|
padding-top: calc(var(--spacing) * 4);
|
|
1608
1657
|
}
|
|
@@ -1636,6 +1685,9 @@
|
|
|
1636
1685
|
.pb-1 {
|
|
1637
1686
|
padding-bottom: var(--spacing);
|
|
1638
1687
|
}
|
|
1688
|
+
.pb-3 {
|
|
1689
|
+
padding-bottom: calc(var(--spacing) * 3);
|
|
1690
|
+
}
|
|
1639
1691
|
.pb-4 {
|
|
1640
1692
|
padding-bottom: calc(var(--spacing) * 4);
|
|
1641
1693
|
}
|
|
@@ -3539,6 +3591,66 @@
|
|
|
3539
3591
|
align-self: stretch;
|
|
3540
3592
|
}
|
|
3541
3593
|
}
|
|
3594
|
+
.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-neutral-foreground-subtle {
|
|
3595
|
+
& .recharts-cartesian-axis-tick text {
|
|
3596
|
+
fill: var(--neutral-foreground-subtle);
|
|
3597
|
+
}
|
|
3598
|
+
}
|
|
3599
|
+
.\[\&_\.recharts-cartesian-grid_line\]\:stroke-border {
|
|
3600
|
+
& .recharts-cartesian-grid line {
|
|
3601
|
+
stroke: var(--border);
|
|
3602
|
+
}
|
|
3603
|
+
}
|
|
3604
|
+
.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent {
|
|
3605
|
+
& .recharts-dot[stroke='#fff'] {
|
|
3606
|
+
stroke: transparent;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
.\[\&_\.recharts-layer\]\:outline-hidden {
|
|
3610
|
+
& .recharts-layer {
|
|
3611
|
+
--tw-outline-style: none;
|
|
3612
|
+
outline-style: none;
|
|
3613
|
+
@media (forced-colors: active) {
|
|
3614
|
+
outline: 2px solid transparent;
|
|
3615
|
+
outline-offset: 2px;
|
|
3616
|
+
}
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
.\[\&_\.recharts-radial-bar-background-sector\]\:fill-neutral-background-strong {
|
|
3620
|
+
& .recharts-radial-bar-background-sector {
|
|
3621
|
+
fill: var(--neutral-background-strong);
|
|
3622
|
+
}
|
|
3623
|
+
}
|
|
3624
|
+
.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-neutral-background-strong {
|
|
3625
|
+
& .recharts-rectangle.recharts-tooltip-cursor {
|
|
3626
|
+
fill: var(--neutral-background-strong);
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
.\[\&_\.recharts-reference-line-line\]\:stroke-border {
|
|
3630
|
+
& .recharts-reference-line-line {
|
|
3631
|
+
stroke: var(--border);
|
|
3632
|
+
}
|
|
3633
|
+
}
|
|
3634
|
+
.\[\&_\.recharts-sector\]\:outline-hidden {
|
|
3635
|
+
& .recharts-sector {
|
|
3636
|
+
--tw-outline-style: none;
|
|
3637
|
+
outline-style: none;
|
|
3638
|
+
@media (forced-colors: active) {
|
|
3639
|
+
outline: 2px solid transparent;
|
|
3640
|
+
outline-offset: 2px;
|
|
3641
|
+
}
|
|
3642
|
+
}
|
|
3643
|
+
}
|
|
3644
|
+
.\[\&_\.recharts-surface\]\:outline-hidden {
|
|
3645
|
+
& .recharts-surface {
|
|
3646
|
+
--tw-outline-style: none;
|
|
3647
|
+
outline-style: none;
|
|
3648
|
+
@media (forced-colors: active) {
|
|
3649
|
+
outline: 2px solid transparent;
|
|
3650
|
+
outline-offset: 2px;
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3542
3654
|
.\[\&_\[cmdk-group-heading\]\]\:px-1\.5 {
|
|
3543
3655
|
& [cmdk-group-heading] {
|
|
3544
3656
|
padding-inline: calc(var(--spacing) * 1.5);
|
|
@@ -3858,6 +3970,18 @@
|
|
|
3858
3970
|
pointer-events: none;
|
|
3859
3971
|
}
|
|
3860
3972
|
}
|
|
3973
|
+
.\[\&\>svg\]\:size-2\.5 {
|
|
3974
|
+
&>svg {
|
|
3975
|
+
width: calc(var(--spacing) * 2.5);
|
|
3976
|
+
height: calc(var(--spacing) * 2.5);
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3979
|
+
.\[\&\>svg\]\:size-3 {
|
|
3980
|
+
&>svg {
|
|
3981
|
+
width: calc(var(--spacing) * 3);
|
|
3982
|
+
height: calc(var(--spacing) * 3);
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3861
3985
|
.\[\&\>svg\]\:size-3\! {
|
|
3862
3986
|
&>svg {
|
|
3863
3987
|
width: calc(var(--spacing) * 3) !important;
|
|
@@ -3890,6 +4014,11 @@
|
|
|
3890
4014
|
width: calc(var(--spacing) * 8);
|
|
3891
4015
|
}
|
|
3892
4016
|
}
|
|
4017
|
+
.\[\&\>svg\]\:text-neutral-foreground-subtle {
|
|
4018
|
+
&>svg {
|
|
4019
|
+
color: var(--neutral-foreground-subtle);
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
3893
4022
|
.\[\&\>tr\]\:last\:border-b-0 {
|
|
3894
4023
|
&>tr {
|
|
3895
4024
|
&:last-child {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Camunda's AI-first design system. shadcn + Tailwind components, design tokens aligned to Camunda's identity, and AI tooling for component authoring + migration.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Resolve --chart-1..5 to concrete colors from the nearest themed ancestor.
|
|
4
|
-
* recharts geometry (stroke/fill) needs literal color strings, not var(),
|
|
5
|
-
* and the tokens are scoped to .c4-ui, so we read the resolved values once.
|
|
6
|
-
* Note: read on mount only — a live light/dark toggle while mounted won't
|
|
7
|
-
* recolor the series until remount. Acceptable for a static showcase.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useChartColors(): [RefObject<HTMLDivElement | null>, string[]];
|
|
10
|
-
//# sourceMappingURL=useChartColors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useChartColors.d.ts","sourceRoot":"","sources":["../../../../src/examples/cost-dashboard/useChartColors.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAW7E"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef, useState } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Resolve --chart-1..5 to concrete colors from the nearest themed ancestor.
|
|
4
|
-
* recharts geometry (stroke/fill) needs literal color strings, not var(),
|
|
5
|
-
* and the tokens are scoped to .c4-ui, so we read the resolved values once.
|
|
6
|
-
* Note: read on mount only — a live light/dark toggle while mounted won't
|
|
7
|
-
* recolor the series until remount. Acceptable for a static showcase.
|
|
8
|
-
*/
|
|
9
|
-
export function useChartColors() {
|
|
10
|
-
const ref = useRef(null);
|
|
11
|
-
const [colors, setColors] = useState([]);
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
if (!ref.current)
|
|
14
|
-
return;
|
|
15
|
-
const cs = getComputedStyle(ref.current);
|
|
16
|
-
setColors([1, 2, 3, 4, 5].map((n) => cs.getPropertyValue(`--chart-${n}`).trim()));
|
|
17
|
-
}, []);
|
|
18
|
-
return [ref, colors];
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=useChartColors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useChartColors.js","sourceRoot":"","sources":["../../../../src/examples/cost-dashboard/useChartColors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AACpE;;;;;;GAMG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACzC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC,CAAC;IACnD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,GAAG,CAAC,OAAO;YAAE,OAAO;QACzB,MAAM,EAAE,GAAG,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzC,SAAS,CACP,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CACvE,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;AACvB,CAAC"}
|