@camunda/design-system 0.68.3 → 0.70.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/README.md +2 -0
- package/dist/src/components/ui/avatar.d.ts +1 -1
- package/dist/src/components/ui/button.d.ts +1 -1
- package/dist/src/components/ui/button.d.ts.map +1 -1
- package/dist/src/components/ui/button.js +2 -2
- package/dist/src/components/ui/button.js.map +1 -1
- package/dist/src/components/ui/combobox.d.ts.map +1 -1
- package/dist/src/components/ui/combobox.js +6 -5
- package/dist/src/components/ui/combobox.js.map +1 -1
- package/dist/src/components/ui/command.d.ts +15 -2
- package/dist/src/components/ui/command.d.ts.map +1 -1
- package/dist/src/components/ui/command.js +49 -5
- package/dist/src/components/ui/command.js.map +1 -1
- package/dist/src/components/ui/file-uploader.d.ts.map +1 -1
- package/dist/src/components/ui/file-uploader.js +4 -3
- package/dist/src/components/ui/file-uploader.js.map +1 -1
- package/dist/src/components/ui/icon-button.d.ts.map +1 -1
- package/dist/src/components/ui/icon-button.js +2 -3
- package/dist/src/components/ui/icon-button.js.map +1 -1
- package/dist/src/components/ui/inline-edit.d.ts.map +1 -1
- package/dist/src/components/ui/inline-edit.js +1 -1
- package/dist/src/components/ui/inline-edit.js.map +1 -1
- package/dist/src/components/ui/multi-select.d.ts.map +1 -1
- package/dist/src/components/ui/multi-select.js +1 -1
- package/dist/src/components/ui/multi-select.js.map +1 -1
- package/dist/src/components/ui/notifications.d.ts.map +1 -1
- package/dist/src/components/ui/notifications.js +3 -2
- package/dist/src/components/ui/notifications.js.map +1 -1
- package/dist/src/components/ui/sidebar-provider.d.ts +1 -1
- package/dist/src/components/ui/spinner.d.ts +30 -0
- package/dist/src/components/ui/spinner.d.ts.map +1 -0
- package/dist/src/components/ui/spinner.js +40 -0
- package/dist/src/components/ui/spinner.js.map +1 -0
- package/dist/src/components/ui/toast.d.ts +4 -0
- package/dist/src/components/ui/toast.d.ts.map +1 -1
- package/dist/src/components/ui/toast.js +22 -7
- package/dist/src/components/ui/toast.js.map +1 -1
- package/dist/src/components/ui/toggle-group.d.ts +2 -2
- package/dist/src/components/ui/toggle.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/i18n/dictionary.d.ts +2 -0
- package/dist/src/lib/i18n/dictionary.d.ts.map +1 -1
- package/dist/src/lib/i18n/dictionary.js +2 -0
- package/dist/src/lib/i18n/dictionary.js.map +1 -1
- package/dist/styles.css +42 -0
- package/dist/theme.css +175 -0
- package/eslint-plugin/index.d.ts +1 -0
- package/eslint-plugin/index.js +15 -0
- package/eslint-rules/no-uncompiled-utility.js +254 -0
- package/package.json +6 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../src/lib/i18n/dictionary.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,4BAA4B,EAAE,MAAM,CAAC;IACrC,6BAA6B,EAAE,MAAM,CAAC;IACtC,+BAA+B,EAAE,MAAM,CAAC;IACxC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC;IAClC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,MAAM,CAAC;IAChC,8BAA8B,EAAE,MAAM,CAAC;IACvC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,uBAAuB,EAAE,MAAM,CAAC;IAChC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,MAAM,CAAC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,sBAAsB,EAAE,MAAM,CAAC;IAC/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B,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AACpE,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAC5D,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAC5D,MAAM,MAAM,2BAA2B,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;AAC5E,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AACpE,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAC1E,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AACxE,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AACpE,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;AACtE,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAClE,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AACxE,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -25,6 +25,7 @@ export const defaultDictionary = Object.freeze({
|
|
|
25
25
|
"treeView.loading": "Loading tree",
|
|
26
26
|
"treeView.selectNode": "Select {label}",
|
|
27
27
|
"treeView.noItems": "No items.",
|
|
28
|
+
"spinner.loading": "Loading",
|
|
28
29
|
"alert.dismiss": "Dismiss",
|
|
29
30
|
"appSidebar.resize": "Resize sidebar",
|
|
30
31
|
"appSidebar.closeNavigation": "Close navigation",
|
|
@@ -100,6 +101,7 @@ export const defaultDictionary = Object.freeze({
|
|
|
100
101
|
"appHeader.skipToContent": "Skip to main content",
|
|
101
102
|
"combobox.search": "Search…",
|
|
102
103
|
"combobox.selectOption": "Select an option…",
|
|
104
|
+
"combobox.suggestions": "Suggestions",
|
|
103
105
|
"multiSelect.selectOptions": "Select options…",
|
|
104
106
|
"multiSelect.search": "Search…",
|
|
105
107
|
"multiSelect.noResultsFound": "No results found",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../../../src/lib/i18n/dictionary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../../../src/lib/i18n/dictionary.ts"],"names":[],"mappings":"AAqIA,qEAAqE;AACrE,qEAAqE;AACrE,2EAA2E;AAC3E,2EAA2E;AAC3E,uDAAuD;AACvD,MAAM,CAAC,MAAM,iBAAiB,GAA2B,MAAM,CAAC,MAAM,CAAC;IACrE,4BAA4B,EAAE,kBAAkB;IAChD,6BAA6B,EAAE,eAAe;IAC9C,+BAA+B,EAAE,mBAAmB;IACpD,qBAAqB,EAAE,aAAa;IACpC,wBAAwB,EAAE,eAAe;IACzC,yBAAyB,EAAE,iBAAiB;IAC5C,sBAAsB,EAAE,aAAa;IACrC,uBAAuB,EAAE,eAAe;IACxC,8BAA8B,EAAE,QAAQ;IACxC,qBAAqB,EAAE,aAAa;IACpC,qBAAqB,EAAE,YAAY;IACnC,uBAAuB,EAAE,cAAc;IACvC,qBAAqB,EAAE,YAAY;IACnC,yBAAyB,EACvB,sDAAsD;IACxD,kBAAkB,EAAE,2BAA2B;IAC/C,wBAAwB,EAAE,UAAU;IACpC,oBAAoB,EAAE,MAAM;IAC5B,sBAAsB,EAAE,kBAAkB;IAC1C,kBAAkB,EAAE,cAAc;IAClC,qBAAqB,EAAE,gBAAgB;IACvC,kBAAkB,EAAE,WAAW;IAC/B,iBAAiB,EAAE,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;IACnC,6BAA6B,EAAE,YAAY;IAC3C,+BAA+B,EAAE,eAAe;IAChD,+BAA+B,EAAE,eAAe;IAChD,2BAA2B,EAAE,cAAc;IAC3C,wCAAwC,EAAE,SAAS;IACnD,kCAAkC,EAAE,aAAa;IACjD,kCAAkC,EAAE,QAAQ;IAC5C,sCAAsC,EAAE,cAAc;IACtD,oCAAoC,EAAE,YAAY;IAClD,8CAA8C,EAAE,kBAAkB;IAClE,uCAAuC,EAAE,QAAQ;IACjD,wCAAwC,EAAE,iBAAiB;IAC3D,oCAAoC,EAAE,YAAY;IAClD,+BAA+B,EAAE,mBAAmB;IACpD,iCAAiC,EAAE,SAAS;IAC5C,kCAAkC,EAAE,gBAAgB;IACpD,kCAAkC,EAAE,sBAAsB;IAC1D,wCAAwC,EACtC,8DAA8D;IAChE,wBAAwB,EAAE,qBAAqB;IAC/C,oBAAoB,EAAE,iBAAiB;IACvC,wBAAwB,EAAE,+BAA+B;CAC1D,CAAC,CAAC"}
|
package/dist/styles.css
CHANGED
|
@@ -129,7 +129,9 @@
|
|
|
129
129
|
--default-font-family: "Geist Sans", sans-serif;
|
|
130
130
|
--default-mono-font-family: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
|
|
131
131
|
--font-heading: var(--font-sans);
|
|
132
|
+
--color-border: var(--border);
|
|
132
133
|
--color-input: var(--input);
|
|
134
|
+
--color-danger-action-default: var(--danger-action-default);
|
|
133
135
|
}
|
|
134
136
|
.\@container\/card-header {
|
|
135
137
|
container-type: inline-size;
|
|
@@ -195,6 +197,9 @@
|
|
|
195
197
|
.top-0 {
|
|
196
198
|
top: 0px;
|
|
197
199
|
}
|
|
200
|
+
.top-0\.5 {
|
|
201
|
+
top: calc(var(--spacing) * 0.5);
|
|
202
|
+
}
|
|
198
203
|
.top-1 {
|
|
199
204
|
top: var(--spacing);
|
|
200
205
|
}
|
|
@@ -591,6 +596,10 @@
|
|
|
591
596
|
width: calc(var(--spacing) * 5);
|
|
592
597
|
height: calc(var(--spacing) * 5);
|
|
593
598
|
}
|
|
599
|
+
.size-6 {
|
|
600
|
+
width: calc(var(--spacing) * 6);
|
|
601
|
+
height: calc(var(--spacing) * 6);
|
|
602
|
+
}
|
|
594
603
|
.size-7 {
|
|
595
604
|
width: calc(var(--spacing) * 7);
|
|
596
605
|
height: calc(var(--spacing) * 7);
|
|
@@ -883,6 +892,12 @@
|
|
|
883
892
|
.w-80 {
|
|
884
893
|
width: calc(var(--spacing) * 80);
|
|
885
894
|
}
|
|
895
|
+
.w-92 {
|
|
896
|
+
width: calc(var(--spacing) * 92);
|
|
897
|
+
}
|
|
898
|
+
.w-93 {
|
|
899
|
+
width: calc(var(--spacing) * 93);
|
|
900
|
+
}
|
|
886
901
|
.w-96 {
|
|
887
902
|
width: calc(var(--spacing) * 96);
|
|
888
903
|
}
|
|
@@ -1156,6 +1171,12 @@
|
|
|
1156
1171
|
.grid-cols-\[\.\.\.\] {
|
|
1157
1172
|
grid-template-columns: ...;
|
|
1158
1173
|
}
|
|
1174
|
+
.grid-cols-\[1fr_auto\] {
|
|
1175
|
+
grid-template-columns: 1fr auto;
|
|
1176
|
+
}
|
|
1177
|
+
.grid-cols-\[3fr_1fr\] {
|
|
1178
|
+
grid-template-columns: 3fr 1fr;
|
|
1179
|
+
}
|
|
1159
1180
|
.grid-cols-\[auto_1fr_auto\] {
|
|
1160
1181
|
grid-template-columns: auto 1fr auto;
|
|
1161
1182
|
}
|
|
@@ -1258,6 +1279,9 @@
|
|
|
1258
1279
|
.gap-\[0\.3125rem\] {
|
|
1259
1280
|
gap: 0.3125rem;
|
|
1260
1281
|
}
|
|
1282
|
+
.gap-\[13px\] {
|
|
1283
|
+
gap: 13px;
|
|
1284
|
+
}
|
|
1261
1285
|
:where(.space-y-1 > :not(:last-child)) {
|
|
1262
1286
|
--tw-space-y-reverse: 0;
|
|
1263
1287
|
margin-block-start: calc(var(--spacing) * var(--tw-space-y-reverse));
|
|
@@ -1457,6 +1481,9 @@
|
|
|
1457
1481
|
.border-\(--color-border-tooltip\) {
|
|
1458
1482
|
border-color: var(--color-border-tooltip);
|
|
1459
1483
|
}
|
|
1484
|
+
.border-accent-action-default {
|
|
1485
|
+
border-color: var(--accent-action-default);
|
|
1486
|
+
}
|
|
1460
1487
|
.border-accent-border-strong {
|
|
1461
1488
|
border-color: var(--accent-border-strong);
|
|
1462
1489
|
}
|
|
@@ -2054,6 +2081,9 @@
|
|
|
2054
2081
|
.text-current {
|
|
2055
2082
|
color: currentcolor;
|
|
2056
2083
|
}
|
|
2084
|
+
.text-danger-action-default {
|
|
2085
|
+
color: var(--danger-action-default);
|
|
2086
|
+
}
|
|
2057
2087
|
.text-danger-action-foreground {
|
|
2058
2088
|
color: var(--danger-action-foreground);
|
|
2059
2089
|
}
|
|
@@ -2914,6 +2944,9 @@
|
|
|
2914
2944
|
.data-placeholder\:text-neutral-foreground-subtle[data-placeholder] {
|
|
2915
2945
|
color: var(--neutral-foreground-subtle);
|
|
2916
2946
|
}
|
|
2947
|
+
.data-\[dismissible\=false\]\:pr-4[data-dismissible="false"] {
|
|
2948
|
+
padding-right: calc(var(--spacing) * 4);
|
|
2949
|
+
}
|
|
2917
2950
|
.data-\[focus-visible-restore\]\:border-ring[data-focus-visible-restore] {
|
|
2918
2951
|
border-color: var(--ring);
|
|
2919
2952
|
}
|
|
@@ -3067,6 +3100,9 @@
|
|
|
3067
3100
|
}
|
|
3068
3101
|
}
|
|
3069
3102
|
@media (prefers-reduced-motion: no-preference) {
|
|
3103
|
+
.motion-safe\:animate-spin {
|
|
3104
|
+
animation: var(--animate-spin);
|
|
3105
|
+
}
|
|
3070
3106
|
.motion-safe\:scroll-smooth {
|
|
3071
3107
|
scroll-behavior: smooth;
|
|
3072
3108
|
}
|
|
@@ -3135,6 +3171,9 @@
|
|
|
3135
3171
|
}
|
|
3136
3172
|
}
|
|
3137
3173
|
@media (width >= 48rem) {
|
|
3174
|
+
.md\:flex {
|
|
3175
|
+
display: flex;
|
|
3176
|
+
}
|
|
3138
3177
|
.md\:grid-cols-5 {
|
|
3139
3178
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
3140
3179
|
}
|
|
@@ -3156,6 +3195,9 @@
|
|
|
3156
3195
|
}
|
|
3157
3196
|
}
|
|
3158
3197
|
@media (width >= 64rem) {
|
|
3198
|
+
.lg\:flex {
|
|
3199
|
+
display: flex;
|
|
3200
|
+
}
|
|
3159
3201
|
.lg\:inline {
|
|
3160
3202
|
display: inline;
|
|
3161
3203
|
}
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @camunda/design-system Tailwind theme — published as
|
|
3
|
+
* `@camunda/design-system/theme.css`.
|
|
4
|
+
*
|
|
5
|
+
* Maps the DS design tokens onto Tailwind's theme namespaces (colors,
|
|
6
|
+
* fonts, radius, elevation, breakpoints) plus the `dark` variant. The DS's
|
|
7
|
+
* own stylesheet imports it from `index.css`; a consumer that runs its own
|
|
8
|
+
* Tailwind build imports it too, so utilities written in the consumer's
|
|
9
|
+
* code (`bg-primary-action-default`, `rounded-md`, `shadow-sm`, …) resolve
|
|
10
|
+
* to DS tokens instead of Tailwind's stock values.
|
|
11
|
+
*
|
|
12
|
+
* Declarations only: no utilities, no preflight, no token values. The
|
|
13
|
+
* values live on `.c4-ui` in `index.css` (shipped in `styles.css`), so
|
|
14
|
+
* these utilities resolve only inside `<C4Provider>`.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
@custom-variant dark (&:is(.dark *));
|
|
18
|
+
|
|
19
|
+
@theme inline {
|
|
20
|
+
--font-heading: var(--font-sans);
|
|
21
|
+
--font-sans: "Geist Sans", sans-serif;
|
|
22
|
+
--font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
|
|
23
|
+
|
|
24
|
+
/* Surface */
|
|
25
|
+
--color-background: var(--background);
|
|
26
|
+
--color-foreground: var(--foreground);
|
|
27
|
+
--color-border: var(--border);
|
|
28
|
+
--color-ring: var(--ring);
|
|
29
|
+
|
|
30
|
+
--color-popover: var(--popover);
|
|
31
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
32
|
+
--color-input: var(--input);
|
|
33
|
+
--color-input-background: var(--input-background);
|
|
34
|
+
--color-switch-background: var(--switch-background);
|
|
35
|
+
|
|
36
|
+
/* Neutral */
|
|
37
|
+
--color-neutral-action-default: var(--neutral-action-default);
|
|
38
|
+
--color-neutral-action-hover: var(--neutral-action-hover);
|
|
39
|
+
--color-neutral-action-active: var(--neutral-action-active);
|
|
40
|
+
--color-neutral-action-disabled: var(--neutral-action-disabled);
|
|
41
|
+
--color-neutral-action-foreground: var(--neutral-action-foreground);
|
|
42
|
+
--color-neutral-background-subtle: var(--neutral-background-subtle);
|
|
43
|
+
--color-neutral-background-medium: var(--neutral-background-medium);
|
|
44
|
+
--color-neutral-background-strong: var(--neutral-background-strong);
|
|
45
|
+
--color-neutral-foreground-subtle: var(--neutral-foreground-subtle);
|
|
46
|
+
--color-neutral-foreground-strong: var(--neutral-foreground-strong);
|
|
47
|
+
--color-neutral-border-subtle: var(--neutral-border-subtle);
|
|
48
|
+
--color-neutral-border-strong: var(--neutral-border-strong);
|
|
49
|
+
|
|
50
|
+
/* Primary — full action-state scale */
|
|
51
|
+
--color-primary-action-default: var(--primary-action-default);
|
|
52
|
+
--color-primary-action-hover: var(--primary-action-hover);
|
|
53
|
+
--color-primary-action-active: var(--primary-action-active);
|
|
54
|
+
--color-primary-action-disabled: var(--primary-action-disabled);
|
|
55
|
+
--color-primary-action-foreground: var(--primary-action-foreground);
|
|
56
|
+
--color-primary-background-subtle: var(--primary-background-subtle);
|
|
57
|
+
--color-primary-background-strong: var(--primary-background-strong);
|
|
58
|
+
--color-primary-foreground-subtle: var(--primary-foreground-subtle);
|
|
59
|
+
--color-primary-foreground-strong: var(--primary-foreground-strong);
|
|
60
|
+
--color-primary-border-subtle: var(--primary-border-subtle);
|
|
61
|
+
--color-primary-border-strong: var(--primary-border-strong);
|
|
62
|
+
|
|
63
|
+
/* Accent */
|
|
64
|
+
--color-accent-action-default: var(--accent-action-default);
|
|
65
|
+
--color-accent-action-hover: var(--accent-action-hover);
|
|
66
|
+
--color-accent-action-active: var(--accent-action-active);
|
|
67
|
+
--color-accent-action-disabled: var(--accent-action-disabled);
|
|
68
|
+
--color-accent-action-foreground: var(--accent-action-foreground);
|
|
69
|
+
--color-accent-background-subtle: var(--accent-background-subtle);
|
|
70
|
+
--color-accent-background-strong: var(--accent-background-strong);
|
|
71
|
+
--color-accent-foreground-subtle: var(--accent-foreground-subtle);
|
|
72
|
+
--color-accent-foreground-strong: var(--accent-foreground-strong);
|
|
73
|
+
--color-accent-border-subtle: var(--accent-border-subtle);
|
|
74
|
+
--color-accent-border-strong: var(--accent-border-strong);
|
|
75
|
+
|
|
76
|
+
/* Warning */
|
|
77
|
+
--color-warning-action-default: var(--warning-action-default);
|
|
78
|
+
--color-warning-action-hover: var(--warning-action-hover);
|
|
79
|
+
--color-warning-action-active: var(--warning-action-active);
|
|
80
|
+
--color-warning-action-disabled: var(--warning-action-disabled);
|
|
81
|
+
--color-warning-action-foreground: var(--warning-action-foreground);
|
|
82
|
+
--color-warning-background-subtle: var(--warning-background-subtle);
|
|
83
|
+
--color-warning-background-strong: var(--warning-background-strong);
|
|
84
|
+
--color-warning-foreground-subtle: var(--warning-foreground-subtle);
|
|
85
|
+
--color-warning-foreground-strong: var(--warning-foreground-strong);
|
|
86
|
+
--color-warning-border-subtle: var(--warning-border-subtle);
|
|
87
|
+
--color-warning-border-strong: var(--warning-border-strong);
|
|
88
|
+
|
|
89
|
+
/* Danger */
|
|
90
|
+
--color-danger-action-default: var(--danger-action-default);
|
|
91
|
+
--color-danger-action-hover: var(--danger-action-hover);
|
|
92
|
+
--color-danger-action-active: var(--danger-action-active);
|
|
93
|
+
--color-danger-action-disabled: var(--danger-action-disabled);
|
|
94
|
+
--color-danger-action-foreground: var(--danger-action-foreground);
|
|
95
|
+
--color-danger-background-subtle: var(--danger-background-subtle);
|
|
96
|
+
--color-danger-background-strong: var(--danger-background-strong);
|
|
97
|
+
--color-danger-foreground-subtle: var(--danger-foreground-subtle);
|
|
98
|
+
--color-danger-foreground-strong: var(--danger-foreground-strong);
|
|
99
|
+
--color-danger-border-subtle: var(--danger-border-subtle);
|
|
100
|
+
--color-danger-border-strong: var(--danger-border-strong);
|
|
101
|
+
|
|
102
|
+
/* Success */
|
|
103
|
+
--color-success-action-default: var(--success-action-default);
|
|
104
|
+
--color-success-action-hover: var(--success-action-hover);
|
|
105
|
+
--color-success-action-active: var(--success-action-active);
|
|
106
|
+
--color-success-action-disabled: var(--success-action-disabled);
|
|
107
|
+
--color-success-action-foreground: var(--success-action-foreground);
|
|
108
|
+
--color-success-background-subtle: var(--success-background-subtle);
|
|
109
|
+
--color-success-background-strong: var(--success-background-strong);
|
|
110
|
+
--color-success-foreground-subtle: var(--success-foreground-subtle);
|
|
111
|
+
--color-success-foreground-strong: var(--success-foreground-strong);
|
|
112
|
+
--color-success-border-subtle: var(--success-border-subtle);
|
|
113
|
+
--color-success-border-strong: var(--success-border-strong);
|
|
114
|
+
|
|
115
|
+
/* Info */
|
|
116
|
+
--color-info-action-default: var(--info-action-default);
|
|
117
|
+
--color-info-action-hover: var(--info-action-hover);
|
|
118
|
+
--color-info-action-active: var(--info-action-active);
|
|
119
|
+
--color-info-action-disabled: var(--info-action-disabled);
|
|
120
|
+
--color-info-action-foreground: var(--info-action-foreground);
|
|
121
|
+
--color-info-background-subtle: var(--info-background-subtle);
|
|
122
|
+
--color-info-background-strong: var(--info-background-strong);
|
|
123
|
+
--color-info-foreground-subtle: var(--info-foreground-subtle);
|
|
124
|
+
--color-info-foreground-strong: var(--info-foreground-strong);
|
|
125
|
+
--color-info-border-subtle: var(--info-border-subtle);
|
|
126
|
+
--color-info-border-strong: var(--info-border-strong);
|
|
127
|
+
|
|
128
|
+
/* Charts */
|
|
129
|
+
--color-chart-sky: var(--chart-sky);
|
|
130
|
+
--color-chart-teal: var(--chart-teal);
|
|
131
|
+
--color-chart-orange: var(--chart-orange);
|
|
132
|
+
--color-chart-purple: var(--chart-purple);
|
|
133
|
+
--color-chart-pink: var(--chart-pink);
|
|
134
|
+
--color-chart-blue: var(--chart-blue);
|
|
135
|
+
--color-chart-cyan: var(--chart-cyan);
|
|
136
|
+
--color-chart-fuchsia: var(--chart-fuchsia);
|
|
137
|
+
--color-chart-lime: var(--chart-lime);
|
|
138
|
+
--color-chart-indigo: var(--chart-indigo);
|
|
139
|
+
|
|
140
|
+
/* Overlay */
|
|
141
|
+
--color-overlay: var(--overlay);
|
|
142
|
+
|
|
143
|
+
/* Border radius */
|
|
144
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
145
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
146
|
+
--radius-lg: var(--radius);
|
|
147
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
148
|
+
|
|
149
|
+
/* Elevation — aliased, not declared, so the `shadow-*` utilities emit
|
|
150
|
+
`var(--elevation-*)` instead of a build-time literal. Declaring
|
|
151
|
+
`--shadow-*` inside `.c4-ui` does NOT reach the utilities: Tailwind
|
|
152
|
+
resolves theme values at build time, so the class keeps its stock
|
|
153
|
+
value and only explicit `shadow-[var(--shadow-*)]` call sites see the
|
|
154
|
+
override. Going through `@theme inline` is what makes
|
|
155
|
+
`.dark .c4-ui` able to retheme elevation. */
|
|
156
|
+
/* xs is not a step of its own; it resolves to sm so the class keeps
|
|
157
|
+
returning a DS value instead of Tailwind's stock shadow. */
|
|
158
|
+
--shadow-xs: var(--elevation-sm);
|
|
159
|
+
--shadow-sm: var(--elevation-sm);
|
|
160
|
+
--shadow-md: var(--elevation-md);
|
|
161
|
+
--shadow-lg: var(--elevation-lg);
|
|
162
|
+
--shadow-xl: var(--elevation-xl);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Breakpoints — single source of truth for CSS responsive variants AND the
|
|
166
|
+
JS useMediaQuery/useIsMobile hooks. NON-inline so Tailwind emits them as
|
|
167
|
+
runtime :root CSS variables (the hook reads --breakpoint-md via
|
|
168
|
+
getComputedStyle). Values equal Tailwind's defaults — declared here so they
|
|
169
|
+
are owned and rethemable, not implicit. */
|
|
170
|
+
@theme {
|
|
171
|
+
--breakpoint-sm: 40rem;
|
|
172
|
+
--breakpoint-md: 48rem; /* 768px — mobile/desktop navigation boundary */
|
|
173
|
+
--breakpoint-lg: 64rem;
|
|
174
|
+
--breakpoint-xl: 80rem;
|
|
175
|
+
}
|
package/eslint-plugin/index.d.ts
CHANGED
package/eslint-plugin/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import { consumerNoDirectLucideImport } from "../eslint-rules/no-direct-lucide-i
|
|
|
17
17
|
import noHardcodedI18nProp from "../eslint-rules/no-hardcoded-i18n-prop.js";
|
|
18
18
|
import noPrimitiveTailwindColors from "../eslint-rules/no-primitive-tailwind-colors.js";
|
|
19
19
|
import noRawColorInClassName from "../eslint-rules/no-raw-color-in-classname.js";
|
|
20
|
+
import noUncompiledUtility from "../eslint-rules/no-uncompiled-utility.js";
|
|
20
21
|
import preferLinkProps from "../eslint-rules/prefer-link-props.js";
|
|
21
22
|
import requireBrowsableLink from "../eslint-rules/require-browsable-link.js";
|
|
22
23
|
import requireSharedSidebarProvider from "../eslint-rules/require-shared-sidebar-provider.js";
|
|
@@ -48,6 +49,7 @@ const rules = {
|
|
|
48
49
|
"Raw hex/rgb in className forbidden. Use a DS semantic token utility (see the Design tokens page in the DS Storybook).",
|
|
49
50
|
}),
|
|
50
51
|
"no-adhoc-typography": noAdhocTypography,
|
|
52
|
+
"no-uncompiled-utility": noUncompiledUtility,
|
|
51
53
|
};
|
|
52
54
|
|
|
53
55
|
const plugin = {
|
|
@@ -79,6 +81,14 @@ const tailwindRules = {
|
|
|
79
81
|
[`${PLUGIN_NAME}/no-adhoc-typography`]: "error",
|
|
80
82
|
};
|
|
81
83
|
|
|
84
|
+
// Utility classes that nothing compiles. Opt-in, and deliberately outside
|
|
85
|
+
// `all`: enabling it in an existing preset would add warnings on upgrade, and
|
|
86
|
+
// consumers linting with --max-warnings 0 would go red. The agent audit gate
|
|
87
|
+
// enables it explicitly.
|
|
88
|
+
const utilitiesRules = {
|
|
89
|
+
[`${PLUGIN_NAME}/no-uncompiled-utility`]: "warn",
|
|
90
|
+
};
|
|
91
|
+
|
|
82
92
|
Object.assign(plugin.configs, {
|
|
83
93
|
recommended: {
|
|
84
94
|
name: `${PLUGIN_NAME}/recommended`,
|
|
@@ -90,6 +100,11 @@ Object.assign(plugin.configs, {
|
|
|
90
100
|
plugins: { [PLUGIN_NAME]: plugin },
|
|
91
101
|
rules: tailwindRules,
|
|
92
102
|
},
|
|
103
|
+
utilities: {
|
|
104
|
+
name: `${PLUGIN_NAME}/utilities`,
|
|
105
|
+
plugins: { [PLUGIN_NAME]: plugin },
|
|
106
|
+
rules: utilitiesRules,
|
|
107
|
+
},
|
|
93
108
|
all: {
|
|
94
109
|
name: `${PLUGIN_NAME}/all`,
|
|
95
110
|
plugins: { [PLUGIN_NAME]: plugin },
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flags Tailwind utility classes in a consumer's className that nothing will
|
|
3
|
+
* turn into CSS. `@camunda/design-system/styles.css` is precompiled: it holds
|
|
4
|
+
* only the utilities the DS components use. In an app without its own Tailwind
|
|
5
|
+
* build, any other utility (`w-92`, `grid-cols-[3fr_1fr]`) renders unstyled,
|
|
6
|
+
* silently. An app with its own Tailwind build (stylesheet entry + plugin
|
|
7
|
+
* registered in its build config) compiles any utility except DS token ones,
|
|
8
|
+
* which need `@camunda/design-system/theme.css`; only those are checked
|
|
9
|
+
* there, and nothing once the theme is imported.
|
|
10
|
+
*
|
|
11
|
+
* Only utility-shaped tokens are checked — spacing/sizing/layout roots,
|
|
12
|
+
* color utilities naming a DS token (read from the `theme.css` next to the
|
|
13
|
+
* stylesheet), arbitrary values, variant prefixes — so the app's own class
|
|
14
|
+
* names (`card-header`, `text-wrapper`, BEM, CSS-module keys) never match.
|
|
15
|
+
* Only string-literal classNames are inspected. The class list comes from the
|
|
16
|
+
* DS installed for the linted app, falling back to this package's own build.
|
|
17
|
+
*/
|
|
18
|
+
import fs from "node:fs";
|
|
19
|
+
import { createRequire } from "node:module";
|
|
20
|
+
import path from "node:path";
|
|
21
|
+
import { fileURLToPath } from "node:url";
|
|
22
|
+
import { classLiteral } from "./class-literal.js";
|
|
23
|
+
|
|
24
|
+
// This package's own build: the fallback when the linted app's installed DS
|
|
25
|
+
// can't be resolved (e.g. the DS audit gate running on a file outside an app).
|
|
26
|
+
const OWN_STYLESHEET = fileURLToPath(
|
|
27
|
+
new URL("../dist/styles.css", import.meta.url),
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
const UTILITY_ROOT =
|
|
31
|
+
/^-?(?:p[xytrblse]?|m[xytrblse]?|gap(?:-[xy])?|space-[xy]|w|h|size|min-w|min-h|max-w|max-h|inset(?:-[xy])?|top|right|bottom|left|start|end|z|basis|grid-cols|grid-rows|col-span|col-start|col-end|row-span|order|flex|shrink|grow|leading|tracking|line-clamp|opacity|rounded(?:-[tblrse]{1,2})?|translate-[xy]|rotate|scale(?:-[xy])?)-[A-Za-z0-9./()-]+$/;
|
|
32
|
+
|
|
33
|
+
const COLOR_UTILITY =
|
|
34
|
+
/^(?:bg|text|border(?:-[trblxyse])?|ring|ring-offset|outline|fill|stroke|divide|from|via|to|decoration|placeholder|caret|accent)-(.+?)(?:\/\d+)?$/;
|
|
35
|
+
|
|
36
|
+
const TAILWIND_ENTRY = /@import\s+(?:url\()?["']tailwindcss(?:\/[a-z]+)?["']/;
|
|
37
|
+
const DS_THEME_IMPORT =
|
|
38
|
+
/@import\s+(?:url\()?["']@camunda\/design-system\/theme\.css["']/;
|
|
39
|
+
const CONFIG_EXTS = ["js", "ts", "mjs", "mts", "cjs", "cts"];
|
|
40
|
+
const VITE_CONFIGS = CONFIG_EXTS.map((ext) => `vite.config.${ext}`);
|
|
41
|
+
const POSTCSS_CONFIGS = [
|
|
42
|
+
...CONFIG_EXTS.map((ext) => `postcss.config.${ext}`),
|
|
43
|
+
...["", ".json", ".js", ".cjs", ".mjs", ".yml", ".yaml"].map(
|
|
44
|
+
(ext) => `.postcssrc${ext}`,
|
|
45
|
+
),
|
|
46
|
+
];
|
|
47
|
+
const STYLE_EXTS = new Set([".css", ".scss", ".pcss", ".less"]);
|
|
48
|
+
const SKIP_DIRS = new Set(["node_modules", "dist", "build", ".git"]);
|
|
49
|
+
|
|
50
|
+
const shippedCache = new Map();
|
|
51
|
+
const tailwindBuildCache = new Map();
|
|
52
|
+
const stylesheetCache = new Map();
|
|
53
|
+
|
|
54
|
+
// Class names in a compiled stylesheet, unescaped (`md\:flex` → `md:flex`),
|
|
55
|
+
// plus the DS color token names from the `theme.css` published beside it.
|
|
56
|
+
function shippedClasses(stylesheet) {
|
|
57
|
+
if (shippedCache.has(stylesheet)) return shippedCache.get(stylesheet);
|
|
58
|
+
let shipped = null;
|
|
59
|
+
try {
|
|
60
|
+
const css = fs.readFileSync(stylesheet, "utf8");
|
|
61
|
+
const classes = new Set();
|
|
62
|
+
for (const [, name] of css.matchAll(/\.((?:\\.|[\w-])+)/g)) {
|
|
63
|
+
classes.add(name.replace(/\\(.)/g, "$1"));
|
|
64
|
+
}
|
|
65
|
+
const colorTokens = new Set();
|
|
66
|
+
try {
|
|
67
|
+
const theme = fs.readFileSync(
|
|
68
|
+
path.join(path.dirname(stylesheet), "theme.css"),
|
|
69
|
+
"utf8",
|
|
70
|
+
);
|
|
71
|
+
for (const [, token] of theme.matchAll(/--color-([\w-]+):/g)) {
|
|
72
|
+
colorTokens.add(token);
|
|
73
|
+
}
|
|
74
|
+
} catch {
|
|
75
|
+
// Older DS builds ship no theme.css: color utilities go unchecked.
|
|
76
|
+
}
|
|
77
|
+
shipped = { classes, colorTokens };
|
|
78
|
+
} catch {
|
|
79
|
+
// No built stylesheet (e.g. linting inside the DS repo before a build):
|
|
80
|
+
// nothing to compare against, so the rule stays silent.
|
|
81
|
+
}
|
|
82
|
+
shippedCache.set(stylesheet, shipped);
|
|
83
|
+
return shipped;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function nearestPackageRoot(file) {
|
|
87
|
+
let dir = path.dirname(path.resolve(file));
|
|
88
|
+
while (true) {
|
|
89
|
+
if (fs.existsSync(path.join(dir, "package.json"))) return dir;
|
|
90
|
+
const parent = path.dirname(dir);
|
|
91
|
+
if (parent === dir) return null;
|
|
92
|
+
dir = parent;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Concatenated contents of every stylesheet under `dir`.
|
|
97
|
+
function stylesheetsText(dir) {
|
|
98
|
+
let entries;
|
|
99
|
+
try {
|
|
100
|
+
entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
101
|
+
} catch {
|
|
102
|
+
return "";
|
|
103
|
+
}
|
|
104
|
+
let text = "";
|
|
105
|
+
for (const entry of entries) {
|
|
106
|
+
const full = path.join(dir, entry.name);
|
|
107
|
+
if (entry.isDirectory()) {
|
|
108
|
+
if (!SKIP_DIRS.has(entry.name)) text += stylesheetsText(full);
|
|
109
|
+
} else if (STYLE_EXTS.has(path.extname(entry.name))) {
|
|
110
|
+
text += fs.readFileSync(full, "utf8") + "\n";
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return text;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function anyFileMentions(root, names, needle) {
|
|
117
|
+
return names.some((name) => {
|
|
118
|
+
try {
|
|
119
|
+
return fs.readFileSync(path.join(root, name), "utf8").includes(needle);
|
|
120
|
+
} catch {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Whether the Tailwind v4 plugin is registered in the app's build config:
|
|
127
|
+
// `@tailwindcss/vite` in vite.config, or `@tailwindcss/postcss` in a PostCSS
|
|
128
|
+
// config (including package.json's `postcss` key).
|
|
129
|
+
function pluginRegistered(root) {
|
|
130
|
+
if (anyFileMentions(root, VITE_CONFIGS, "@tailwindcss/vite")) return true;
|
|
131
|
+
if (anyFileMentions(root, POSTCSS_CONFIGS, "@tailwindcss/postcss")) {
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
try {
|
|
135
|
+
const pkg = JSON.parse(
|
|
136
|
+
fs.readFileSync(path.join(root, "package.json"), "utf8"),
|
|
137
|
+
);
|
|
138
|
+
return JSON.stringify(pkg.postcss ?? {}).includes("@tailwindcss/postcss");
|
|
139
|
+
} catch {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// What the app owning `file` compiles itself. `build`: a stylesheet under
|
|
145
|
+
// src/ imports Tailwind AND its plugin is registered — installed packages
|
|
146
|
+
// alone generate nothing. `dsTheme`: a stylesheet imports the DS theme, without
|
|
147
|
+
// which DS token utilities compile to nothing even in a working build.
|
|
148
|
+
function appTailwind(file) {
|
|
149
|
+
const root = nearestPackageRoot(file);
|
|
150
|
+
if (!root) return { build: false, dsTheme: false };
|
|
151
|
+
if (!tailwindBuildCache.has(root)) {
|
|
152
|
+
const styles = stylesheetsText(path.join(root, "src"));
|
|
153
|
+
tailwindBuildCache.set(root, {
|
|
154
|
+
build: TAILWIND_ENTRY.test(styles) && pluginRegistered(root),
|
|
155
|
+
dsTheme: DS_THEME_IMPORT.test(styles),
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
return tailwindBuildCache.get(root);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// The stylesheet the app actually ships: the DS installed for the app owning
|
|
162
|
+
// `file` (resolution walks up, so hoisted monorepo installs are found), else
|
|
163
|
+
// this package's own build. Comparing against a different DS version than
|
|
164
|
+
// the app's would report classes that version does or doesn't ship.
|
|
165
|
+
function appStylesheet(file) {
|
|
166
|
+
const root = nearestPackageRoot(file);
|
|
167
|
+
if (!root) return OWN_STYLESHEET;
|
|
168
|
+
if (!stylesheetCache.has(root)) {
|
|
169
|
+
let resolved = OWN_STYLESHEET;
|
|
170
|
+
try {
|
|
171
|
+
resolved = createRequire(path.join(root, "package.json")).resolve(
|
|
172
|
+
"@camunda/design-system/styles.css",
|
|
173
|
+
);
|
|
174
|
+
} catch {
|
|
175
|
+
// DS not installed for this app — keep the fallback.
|
|
176
|
+
}
|
|
177
|
+
stylesheetCache.set(root, resolved);
|
|
178
|
+
}
|
|
179
|
+
return stylesheetCache.get(root);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function isDsTokenUtility(token, colorTokens) {
|
|
183
|
+
const base = token.replace(/^!/, "").split(":").pop();
|
|
184
|
+
const color = base.match(COLOR_UTILITY);
|
|
185
|
+
return Boolean(color && colorTokens.has(color[1]));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
function isUtilityShaped(token, colorTokens) {
|
|
189
|
+
const base = token.replace(/^!/, "").split(":").pop();
|
|
190
|
+
if (token.includes("[") || token.includes(":") || UTILITY_ROOT.test(base)) {
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
193
|
+
return isDsTokenUtility(token, colorTokens);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export default {
|
|
197
|
+
meta: {
|
|
198
|
+
type: "problem",
|
|
199
|
+
docs: {
|
|
200
|
+
description:
|
|
201
|
+
"Disallow Tailwind utilities that nothing compiles: ones the precompiled DS stylesheet does not ship in apps without their own Tailwind build, and DS token utilities in Tailwind builds without the DS theme.",
|
|
202
|
+
heuristic: true,
|
|
203
|
+
},
|
|
204
|
+
messages: {
|
|
205
|
+
uncompiled:
|
|
206
|
+
"`{{name}}` is not in the DS stylesheet and this app has no Tailwind build, so it renders no CSS. Use your own CSS with DS token variables (`var(--border)`), or add a Tailwind build with `@camunda/design-system/theme.css`.",
|
|
207
|
+
noTheme:
|
|
208
|
+
"`{{name}}` names a DS token, but this app's Tailwind build does not import `@camunda/design-system/theme.css`, so it renders no CSS unless the DS stylesheet ships it. Import the theme in your Tailwind stylesheet.",
|
|
209
|
+
},
|
|
210
|
+
schema: [
|
|
211
|
+
{
|
|
212
|
+
type: "object",
|
|
213
|
+
properties: {
|
|
214
|
+
stylesheet: { type: "string" },
|
|
215
|
+
tailwindBuild: { type: "boolean" },
|
|
216
|
+
dsTheme: { type: "boolean" },
|
|
217
|
+
},
|
|
218
|
+
additionalProperties: false,
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
create(context) {
|
|
223
|
+
const options = context.options[0] ?? {};
|
|
224
|
+
const detected =
|
|
225
|
+
options.tailwindBuild === undefined || options.dsTheme === undefined
|
|
226
|
+
? appTailwind(context.filename)
|
|
227
|
+
: null;
|
|
228
|
+
const tailwindBuild = options.tailwindBuild ?? detected.build;
|
|
229
|
+
const dsTheme = options.dsTheme ?? detected.dsTheme;
|
|
230
|
+
if (tailwindBuild && dsTheme) return {};
|
|
231
|
+
const shipped = shippedClasses(
|
|
232
|
+
options.stylesheet ?? appStylesheet(context.filename),
|
|
233
|
+
);
|
|
234
|
+
if (!shipped) return {};
|
|
235
|
+
// A Tailwind build compiles any utility except DS token ones, which need
|
|
236
|
+
// the theme; without a build, only what the DS stylesheet ships exists.
|
|
237
|
+
const shouldCheck = tailwindBuild
|
|
238
|
+
? (name) => isDsTokenUtility(name, shipped.colorTokens)
|
|
239
|
+
: (name) => isUtilityShaped(name, shipped.colorTokens);
|
|
240
|
+
const messageId = tailwindBuild ? "noTheme" : "uncompiled";
|
|
241
|
+
return {
|
|
242
|
+
JSXAttribute(node) {
|
|
243
|
+
if (node.name.name !== "className") return;
|
|
244
|
+
const raw = classLiteral(node.value);
|
|
245
|
+
if (!raw) return;
|
|
246
|
+
for (const name of raw.split(/\s+/).filter(Boolean)) {
|
|
247
|
+
if (shouldCheck(name) && !shipped.classes.has(name)) {
|
|
248
|
+
context.report({ node, messageId, data: { name } });
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
};
|