@elmethis/core 0.22.0 → 0.24.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/index.d.cts +44 -44
- package/dist/index.d.mts +44 -44
- package/dist/stylelint.cjs +32 -0
- package/dist/stylelint.d.cts +38 -0
- package/dist/stylelint.d.mts +39 -0
- package/dist/stylelint.mjs +32 -0
- package/dist/tokens.cjs +172 -0
- package/dist/tokens.css +3 -0
- package/dist/tokens.d.cts +170 -0
- package/dist/tokens.d.mts +170 -0
- package/dist/tokens.mjs +170 -0
- package/package.json +26 -3
package/dist/index.d.cts
CHANGED
|
@@ -106,9 +106,9 @@ declare const RichTextApi: {
|
|
|
106
106
|
args: Record<string, any>;
|
|
107
107
|
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
108
108
|
};
|
|
109
|
+
color?: string | undefined;
|
|
109
110
|
decoration?: ("code" | "bold" | "italic" | "underline" | "strikethrough" | "katex")[] | undefined;
|
|
110
111
|
ruby?: string | undefined;
|
|
111
|
-
color?: string | undefined;
|
|
112
112
|
accessibility?: {
|
|
113
113
|
description?: string | {
|
|
114
114
|
path: string;
|
|
@@ -134,9 +134,9 @@ declare const RichTextApi: {
|
|
|
134
134
|
args: Record<string, any>;
|
|
135
135
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
136
136
|
};
|
|
137
|
+
color?: string | undefined;
|
|
137
138
|
decoration?: ("code" | "bold" | "italic" | "underline" | "strikethrough" | "katex")[] | undefined;
|
|
138
139
|
ruby?: string | undefined;
|
|
139
|
-
color?: string | undefined;
|
|
140
140
|
accessibility?: {
|
|
141
141
|
description?: string | {
|
|
142
142
|
path: string;
|
|
@@ -518,10 +518,10 @@ declare const ColumnApi: {
|
|
|
518
518
|
}>>;
|
|
519
519
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
520
520
|
}, "strict", z.ZodTypeAny, {
|
|
521
|
-
children: {
|
|
521
|
+
children: string[] | {
|
|
522
522
|
componentId: string;
|
|
523
523
|
path: string;
|
|
524
|
-
}
|
|
524
|
+
};
|
|
525
525
|
accessibility?: {
|
|
526
526
|
description?: string | {
|
|
527
527
|
path: string;
|
|
@@ -543,10 +543,10 @@ declare const ColumnApi: {
|
|
|
543
543
|
align?: "start" | "end" | "center" | "stretch" | undefined;
|
|
544
544
|
widthRatio?: number | undefined;
|
|
545
545
|
}, {
|
|
546
|
-
children: {
|
|
546
|
+
children: string[] | {
|
|
547
547
|
componentId: string;
|
|
548
548
|
path: string;
|
|
549
|
-
}
|
|
549
|
+
};
|
|
550
550
|
accessibility?: {
|
|
551
551
|
description?: string | {
|
|
552
552
|
path: string;
|
|
@@ -771,10 +771,10 @@ declare const HeadingApi: {
|
|
|
771
771
|
}>>;
|
|
772
772
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
773
773
|
}, "strict", z.ZodTypeAny, {
|
|
774
|
-
children: {
|
|
774
|
+
children: string[] | {
|
|
775
775
|
componentId: string;
|
|
776
776
|
path: string;
|
|
777
|
-
}
|
|
777
|
+
};
|
|
778
778
|
level: 3 | 1 | 2 | 6 | 4 | 5;
|
|
779
779
|
accessibility?: {
|
|
780
780
|
description?: string | {
|
|
@@ -794,10 +794,10 @@ declare const HeadingApi: {
|
|
|
794
794
|
} | undefined;
|
|
795
795
|
weight?: number | undefined;
|
|
796
796
|
}, {
|
|
797
|
-
children: {
|
|
797
|
+
children: string[] | {
|
|
798
798
|
componentId: string;
|
|
799
799
|
path: string;
|
|
800
|
-
}
|
|
800
|
+
};
|
|
801
801
|
level: 3 | 1 | 2 | 6 | 4 | 5;
|
|
802
802
|
accessibility?: {
|
|
803
803
|
description?: string | {
|
|
@@ -905,10 +905,10 @@ declare const ParagraphApi: {
|
|
|
905
905
|
}>>;
|
|
906
906
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
907
907
|
}, "strict", z.ZodTypeAny, {
|
|
908
|
-
children: {
|
|
908
|
+
children: string[] | {
|
|
909
909
|
componentId: string;
|
|
910
910
|
path: string;
|
|
911
|
-
}
|
|
911
|
+
};
|
|
912
912
|
color?: string | undefined;
|
|
913
913
|
accessibility?: {
|
|
914
914
|
description?: string | {
|
|
@@ -929,10 +929,10 @@ declare const ParagraphApi: {
|
|
|
929
929
|
weight?: number | undefined;
|
|
930
930
|
backgroundColor?: string | undefined;
|
|
931
931
|
}, {
|
|
932
|
-
children: {
|
|
932
|
+
children: string[] | {
|
|
933
933
|
componentId: string;
|
|
934
934
|
path: string;
|
|
935
|
-
}
|
|
935
|
+
};
|
|
936
936
|
color?: string | undefined;
|
|
937
937
|
accessibility?: {
|
|
938
938
|
description?: string | {
|
|
@@ -1273,10 +1273,10 @@ declare const BlockQuoteApi: {
|
|
|
1273
1273
|
}>>;
|
|
1274
1274
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
1275
1275
|
}, "strict", z.ZodTypeAny, {
|
|
1276
|
-
children: {
|
|
1276
|
+
children: string[] | {
|
|
1277
1277
|
componentId: string;
|
|
1278
1278
|
path: string;
|
|
1279
|
-
}
|
|
1279
|
+
};
|
|
1280
1280
|
accessibility?: {
|
|
1281
1281
|
description?: string | {
|
|
1282
1282
|
path: string;
|
|
@@ -1296,10 +1296,10 @@ declare const BlockQuoteApi: {
|
|
|
1296
1296
|
weight?: number | undefined;
|
|
1297
1297
|
cite?: string | undefined;
|
|
1298
1298
|
}, {
|
|
1299
|
-
children: {
|
|
1299
|
+
children: string[] | {
|
|
1300
1300
|
componentId: string;
|
|
1301
1301
|
path: string;
|
|
1302
|
-
}
|
|
1302
|
+
};
|
|
1303
1303
|
accessibility?: {
|
|
1304
1304
|
description?: string | {
|
|
1305
1305
|
path: string;
|
|
@@ -1406,10 +1406,10 @@ declare const CalloutApi: {
|
|
|
1406
1406
|
}>>;
|
|
1407
1407
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
1408
1408
|
}, "strict", z.ZodTypeAny, {
|
|
1409
|
-
children: {
|
|
1409
|
+
children: string[] | {
|
|
1410
1410
|
componentId: string;
|
|
1411
1411
|
path: string;
|
|
1412
|
-
}
|
|
1412
|
+
};
|
|
1413
1413
|
type?: "note" | "tip" | "important" | "warning" | "caution" | undefined;
|
|
1414
1414
|
accessibility?: {
|
|
1415
1415
|
description?: string | {
|
|
@@ -1429,10 +1429,10 @@ declare const CalloutApi: {
|
|
|
1429
1429
|
} | undefined;
|
|
1430
1430
|
weight?: number | undefined;
|
|
1431
1431
|
}, {
|
|
1432
|
-
children: {
|
|
1432
|
+
children: string[] | {
|
|
1433
1433
|
componentId: string;
|
|
1434
1434
|
path: string;
|
|
1435
|
-
}
|
|
1435
|
+
};
|
|
1436
1436
|
type?: "note" | "tip" | "important" | "warning" | "caution" | undefined;
|
|
1437
1437
|
accessibility?: {
|
|
1438
1438
|
description?: string | {
|
|
@@ -1567,11 +1567,11 @@ declare const NotionCalloutApi: {
|
|
|
1567
1567
|
}>>;
|
|
1568
1568
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
1569
1569
|
}, "strict", z.ZodTypeAny, {
|
|
1570
|
-
children: {
|
|
1570
|
+
children: string[] | {
|
|
1571
1571
|
componentId: string;
|
|
1572
1572
|
path: string;
|
|
1573
|
-
}
|
|
1574
|
-
color?: "
|
|
1573
|
+
};
|
|
1574
|
+
color?: "red" | "orange" | "yellow" | "green" | "cyan" | "blue" | "purple" | "magenta" | "default" | "gray" | undefined;
|
|
1575
1575
|
accessibility?: {
|
|
1576
1576
|
description?: string | {
|
|
1577
1577
|
path: string;
|
|
@@ -1599,11 +1599,11 @@ declare const NotionCalloutApi: {
|
|
|
1599
1599
|
} | undefined;
|
|
1600
1600
|
variant?: "filled" | "outlined" | undefined;
|
|
1601
1601
|
}, {
|
|
1602
|
-
children: {
|
|
1602
|
+
children: string[] | {
|
|
1603
1603
|
componentId: string;
|
|
1604
1604
|
path: string;
|
|
1605
|
-
}
|
|
1606
|
-
color?: "
|
|
1605
|
+
};
|
|
1606
|
+
color?: "red" | "orange" | "yellow" | "green" | "cyan" | "blue" | "purple" | "magenta" | "default" | "gray" | undefined;
|
|
1607
1607
|
accessibility?: {
|
|
1608
1608
|
description?: string | {
|
|
1609
1609
|
path: string;
|
|
@@ -1841,14 +1841,14 @@ declare const ToggleApi: {
|
|
|
1841
1841
|
}>>;
|
|
1842
1842
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
1843
1843
|
}, "strict", z.ZodTypeAny, {
|
|
1844
|
-
children: {
|
|
1844
|
+
children: string[] | {
|
|
1845
1845
|
componentId: string;
|
|
1846
1846
|
path: string;
|
|
1847
|
-
}
|
|
1848
|
-
summary: {
|
|
1847
|
+
};
|
|
1848
|
+
summary: string[] | {
|
|
1849
1849
|
componentId: string;
|
|
1850
1850
|
path: string;
|
|
1851
|
-
}
|
|
1851
|
+
};
|
|
1852
1852
|
accessibility?: {
|
|
1853
1853
|
description?: string | {
|
|
1854
1854
|
path: string;
|
|
@@ -1867,14 +1867,14 @@ declare const ToggleApi: {
|
|
|
1867
1867
|
} | undefined;
|
|
1868
1868
|
weight?: number | undefined;
|
|
1869
1869
|
}, {
|
|
1870
|
-
children: {
|
|
1870
|
+
children: string[] | {
|
|
1871
1871
|
componentId: string;
|
|
1872
1872
|
path: string;
|
|
1873
|
-
}
|
|
1874
|
-
summary: {
|
|
1873
|
+
};
|
|
1874
|
+
summary: string[] | {
|
|
1875
1875
|
componentId: string;
|
|
1876
1876
|
path: string;
|
|
1877
|
-
}
|
|
1877
|
+
};
|
|
1878
1878
|
accessibility?: {
|
|
1879
1879
|
description?: string | {
|
|
1880
1880
|
path: string;
|
|
@@ -3144,14 +3144,14 @@ declare const ContentTabApi: {
|
|
|
3144
3144
|
}>>;
|
|
3145
3145
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
3146
3146
|
}, "strict", z.ZodTypeAny, {
|
|
3147
|
-
label: {
|
|
3147
|
+
label: string[] | {
|
|
3148
3148
|
componentId: string;
|
|
3149
3149
|
path: string;
|
|
3150
|
-
}
|
|
3151
|
-
content: {
|
|
3150
|
+
};
|
|
3151
|
+
content: string[] | {
|
|
3152
3152
|
componentId: string;
|
|
3153
3153
|
path: string;
|
|
3154
|
-
}
|
|
3154
|
+
};
|
|
3155
3155
|
accessibility?: {
|
|
3156
3156
|
description?: string | {
|
|
3157
3157
|
path: string;
|
|
@@ -3170,14 +3170,14 @@ declare const ContentTabApi: {
|
|
|
3170
3170
|
} | undefined;
|
|
3171
3171
|
weight?: number | undefined;
|
|
3172
3172
|
}, {
|
|
3173
|
-
label: {
|
|
3173
|
+
label: string[] | {
|
|
3174
3174
|
componentId: string;
|
|
3175
3175
|
path: string;
|
|
3176
|
-
}
|
|
3177
|
-
content: {
|
|
3176
|
+
};
|
|
3177
|
+
content: string[] | {
|
|
3178
3178
|
componentId: string;
|
|
3179
3179
|
path: string;
|
|
3180
|
-
}
|
|
3180
|
+
};
|
|
3181
3181
|
accessibility?: {
|
|
3182
3182
|
description?: string | {
|
|
3183
3183
|
path: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -106,9 +106,9 @@ declare const RichTextApi: {
|
|
|
106
106
|
args: Record<string, any>;
|
|
107
107
|
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
108
108
|
};
|
|
109
|
+
color?: string | undefined;
|
|
109
110
|
decoration?: ("code" | "bold" | "italic" | "underline" | "strikethrough" | "katex")[] | undefined;
|
|
110
111
|
ruby?: string | undefined;
|
|
111
|
-
color?: string | undefined;
|
|
112
112
|
accessibility?: {
|
|
113
113
|
description?: string | {
|
|
114
114
|
path: string;
|
|
@@ -134,9 +134,9 @@ declare const RichTextApi: {
|
|
|
134
134
|
args: Record<string, any>;
|
|
135
135
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
136
136
|
};
|
|
137
|
+
color?: string | undefined;
|
|
137
138
|
decoration?: ("code" | "bold" | "italic" | "underline" | "strikethrough" | "katex")[] | undefined;
|
|
138
139
|
ruby?: string | undefined;
|
|
139
|
-
color?: string | undefined;
|
|
140
140
|
accessibility?: {
|
|
141
141
|
description?: string | {
|
|
142
142
|
path: string;
|
|
@@ -518,10 +518,10 @@ declare const ColumnApi: {
|
|
|
518
518
|
}>>;
|
|
519
519
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
520
520
|
}, "strict", z.ZodTypeAny, {
|
|
521
|
-
children: {
|
|
521
|
+
children: string[] | {
|
|
522
522
|
componentId: string;
|
|
523
523
|
path: string;
|
|
524
|
-
}
|
|
524
|
+
};
|
|
525
525
|
accessibility?: {
|
|
526
526
|
description?: string | {
|
|
527
527
|
path: string;
|
|
@@ -543,10 +543,10 @@ declare const ColumnApi: {
|
|
|
543
543
|
align?: "start" | "end" | "center" | "stretch" | undefined;
|
|
544
544
|
widthRatio?: number | undefined;
|
|
545
545
|
}, {
|
|
546
|
-
children: {
|
|
546
|
+
children: string[] | {
|
|
547
547
|
componentId: string;
|
|
548
548
|
path: string;
|
|
549
|
-
}
|
|
549
|
+
};
|
|
550
550
|
accessibility?: {
|
|
551
551
|
description?: string | {
|
|
552
552
|
path: string;
|
|
@@ -771,10 +771,10 @@ declare const HeadingApi: {
|
|
|
771
771
|
}>>;
|
|
772
772
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
773
773
|
}, "strict", z.ZodTypeAny, {
|
|
774
|
-
children: {
|
|
774
|
+
children: string[] | {
|
|
775
775
|
componentId: string;
|
|
776
776
|
path: string;
|
|
777
|
-
}
|
|
777
|
+
};
|
|
778
778
|
level: 3 | 1 | 2 | 6 | 4 | 5;
|
|
779
779
|
accessibility?: {
|
|
780
780
|
description?: string | {
|
|
@@ -794,10 +794,10 @@ declare const HeadingApi: {
|
|
|
794
794
|
} | undefined;
|
|
795
795
|
weight?: number | undefined;
|
|
796
796
|
}, {
|
|
797
|
-
children: {
|
|
797
|
+
children: string[] | {
|
|
798
798
|
componentId: string;
|
|
799
799
|
path: string;
|
|
800
|
-
}
|
|
800
|
+
};
|
|
801
801
|
level: 3 | 1 | 2 | 6 | 4 | 5;
|
|
802
802
|
accessibility?: {
|
|
803
803
|
description?: string | {
|
|
@@ -905,10 +905,10 @@ declare const ParagraphApi: {
|
|
|
905
905
|
}>>;
|
|
906
906
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
907
907
|
}, "strict", z.ZodTypeAny, {
|
|
908
|
-
children: {
|
|
908
|
+
children: string[] | {
|
|
909
909
|
componentId: string;
|
|
910
910
|
path: string;
|
|
911
|
-
}
|
|
911
|
+
};
|
|
912
912
|
color?: string | undefined;
|
|
913
913
|
accessibility?: {
|
|
914
914
|
description?: string | {
|
|
@@ -929,10 +929,10 @@ declare const ParagraphApi: {
|
|
|
929
929
|
weight?: number | undefined;
|
|
930
930
|
backgroundColor?: string | undefined;
|
|
931
931
|
}, {
|
|
932
|
-
children: {
|
|
932
|
+
children: string[] | {
|
|
933
933
|
componentId: string;
|
|
934
934
|
path: string;
|
|
935
|
-
}
|
|
935
|
+
};
|
|
936
936
|
color?: string | undefined;
|
|
937
937
|
accessibility?: {
|
|
938
938
|
description?: string | {
|
|
@@ -1273,10 +1273,10 @@ declare const BlockQuoteApi: {
|
|
|
1273
1273
|
}>>;
|
|
1274
1274
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
1275
1275
|
}, "strict", z.ZodTypeAny, {
|
|
1276
|
-
children: {
|
|
1276
|
+
children: string[] | {
|
|
1277
1277
|
componentId: string;
|
|
1278
1278
|
path: string;
|
|
1279
|
-
}
|
|
1279
|
+
};
|
|
1280
1280
|
accessibility?: {
|
|
1281
1281
|
description?: string | {
|
|
1282
1282
|
path: string;
|
|
@@ -1296,10 +1296,10 @@ declare const BlockQuoteApi: {
|
|
|
1296
1296
|
weight?: number | undefined;
|
|
1297
1297
|
cite?: string | undefined;
|
|
1298
1298
|
}, {
|
|
1299
|
-
children: {
|
|
1299
|
+
children: string[] | {
|
|
1300
1300
|
componentId: string;
|
|
1301
1301
|
path: string;
|
|
1302
|
-
}
|
|
1302
|
+
};
|
|
1303
1303
|
accessibility?: {
|
|
1304
1304
|
description?: string | {
|
|
1305
1305
|
path: string;
|
|
@@ -1406,10 +1406,10 @@ declare const CalloutApi: {
|
|
|
1406
1406
|
}>>;
|
|
1407
1407
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
1408
1408
|
}, "strict", z.ZodTypeAny, {
|
|
1409
|
-
children: {
|
|
1409
|
+
children: string[] | {
|
|
1410
1410
|
componentId: string;
|
|
1411
1411
|
path: string;
|
|
1412
|
-
}
|
|
1412
|
+
};
|
|
1413
1413
|
type?: "note" | "tip" | "important" | "warning" | "caution" | undefined;
|
|
1414
1414
|
accessibility?: {
|
|
1415
1415
|
description?: string | {
|
|
@@ -1429,10 +1429,10 @@ declare const CalloutApi: {
|
|
|
1429
1429
|
} | undefined;
|
|
1430
1430
|
weight?: number | undefined;
|
|
1431
1431
|
}, {
|
|
1432
|
-
children: {
|
|
1432
|
+
children: string[] | {
|
|
1433
1433
|
componentId: string;
|
|
1434
1434
|
path: string;
|
|
1435
|
-
}
|
|
1435
|
+
};
|
|
1436
1436
|
type?: "note" | "tip" | "important" | "warning" | "caution" | undefined;
|
|
1437
1437
|
accessibility?: {
|
|
1438
1438
|
description?: string | {
|
|
@@ -1567,11 +1567,11 @@ declare const NotionCalloutApi: {
|
|
|
1567
1567
|
}>>;
|
|
1568
1568
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
1569
1569
|
}, "strict", z.ZodTypeAny, {
|
|
1570
|
-
children: {
|
|
1570
|
+
children: string[] | {
|
|
1571
1571
|
componentId: string;
|
|
1572
1572
|
path: string;
|
|
1573
|
-
}
|
|
1574
|
-
color?: "
|
|
1573
|
+
};
|
|
1574
|
+
color?: "red" | "orange" | "yellow" | "green" | "cyan" | "blue" | "purple" | "magenta" | "default" | "gray" | undefined;
|
|
1575
1575
|
accessibility?: {
|
|
1576
1576
|
description?: string | {
|
|
1577
1577
|
path: string;
|
|
@@ -1599,11 +1599,11 @@ declare const NotionCalloutApi: {
|
|
|
1599
1599
|
} | undefined;
|
|
1600
1600
|
variant?: "filled" | "outlined" | undefined;
|
|
1601
1601
|
}, {
|
|
1602
|
-
children: {
|
|
1602
|
+
children: string[] | {
|
|
1603
1603
|
componentId: string;
|
|
1604
1604
|
path: string;
|
|
1605
|
-
}
|
|
1606
|
-
color?: "
|
|
1605
|
+
};
|
|
1606
|
+
color?: "red" | "orange" | "yellow" | "green" | "cyan" | "blue" | "purple" | "magenta" | "default" | "gray" | undefined;
|
|
1607
1607
|
accessibility?: {
|
|
1608
1608
|
description?: string | {
|
|
1609
1609
|
path: string;
|
|
@@ -1841,14 +1841,14 @@ declare const ToggleApi: {
|
|
|
1841
1841
|
}>>;
|
|
1842
1842
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
1843
1843
|
}, "strict", z.ZodTypeAny, {
|
|
1844
|
-
children: {
|
|
1844
|
+
children: string[] | {
|
|
1845
1845
|
componentId: string;
|
|
1846
1846
|
path: string;
|
|
1847
|
-
}
|
|
1848
|
-
summary: {
|
|
1847
|
+
};
|
|
1848
|
+
summary: string[] | {
|
|
1849
1849
|
componentId: string;
|
|
1850
1850
|
path: string;
|
|
1851
|
-
}
|
|
1851
|
+
};
|
|
1852
1852
|
accessibility?: {
|
|
1853
1853
|
description?: string | {
|
|
1854
1854
|
path: string;
|
|
@@ -1867,14 +1867,14 @@ declare const ToggleApi: {
|
|
|
1867
1867
|
} | undefined;
|
|
1868
1868
|
weight?: number | undefined;
|
|
1869
1869
|
}, {
|
|
1870
|
-
children: {
|
|
1870
|
+
children: string[] | {
|
|
1871
1871
|
componentId: string;
|
|
1872
1872
|
path: string;
|
|
1873
|
-
}
|
|
1874
|
-
summary: {
|
|
1873
|
+
};
|
|
1874
|
+
summary: string[] | {
|
|
1875
1875
|
componentId: string;
|
|
1876
1876
|
path: string;
|
|
1877
|
-
}
|
|
1877
|
+
};
|
|
1878
1878
|
accessibility?: {
|
|
1879
1879
|
description?: string | {
|
|
1880
1880
|
path: string;
|
|
@@ -3144,14 +3144,14 @@ declare const ContentTabApi: {
|
|
|
3144
3144
|
}>>;
|
|
3145
3145
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
3146
3146
|
}, "strict", z.ZodTypeAny, {
|
|
3147
|
-
label: {
|
|
3147
|
+
label: string[] | {
|
|
3148
3148
|
componentId: string;
|
|
3149
3149
|
path: string;
|
|
3150
|
-
}
|
|
3151
|
-
content: {
|
|
3150
|
+
};
|
|
3151
|
+
content: string[] | {
|
|
3152
3152
|
componentId: string;
|
|
3153
3153
|
path: string;
|
|
3154
|
-
}
|
|
3154
|
+
};
|
|
3155
3155
|
accessibility?: {
|
|
3156
3156
|
description?: string | {
|
|
3157
3157
|
path: string;
|
|
@@ -3170,14 +3170,14 @@ declare const ContentTabApi: {
|
|
|
3170
3170
|
} | undefined;
|
|
3171
3171
|
weight?: number | undefined;
|
|
3172
3172
|
}, {
|
|
3173
|
-
label: {
|
|
3173
|
+
label: string[] | {
|
|
3174
3174
|
componentId: string;
|
|
3175
3175
|
path: string;
|
|
3176
|
-
}
|
|
3177
|
-
content: {
|
|
3176
|
+
};
|
|
3177
|
+
content: string[] | {
|
|
3178
3178
|
componentId: string;
|
|
3179
3179
|
path: string;
|
|
3180
|
-
}
|
|
3180
|
+
};
|
|
3181
3181
|
accessibility?: {
|
|
3182
3182
|
description?: string | {
|
|
3183
3183
|
path: string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/style/stylelint.ts
|
|
2
|
+
const stylelintConfig = {
|
|
3
|
+
extends: ["stylelint-config-standard", "stylelint-config-css-modules"],
|
|
4
|
+
plugins: ["stylelint-value-no-unknown-custom-properties"],
|
|
5
|
+
rules: {
|
|
6
|
+
"color-no-hex": [true, {
|
|
7
|
+
message: "Use an Elmethis color token instead of a hex color",
|
|
8
|
+
severity: "error"
|
|
9
|
+
}],
|
|
10
|
+
"color-named": ["never", {
|
|
11
|
+
message: "Use an Elmethis color token instead of a named color",
|
|
12
|
+
severity: "error"
|
|
13
|
+
}],
|
|
14
|
+
"declaration-property-value-disallowed-list": [{ "/.*/": ["/(?<![-\\w])(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)\\((?!\\s*from\\b)/i"] }, {
|
|
15
|
+
message: "Use an Elmethis color token instead of a color function",
|
|
16
|
+
severity: "error"
|
|
17
|
+
}],
|
|
18
|
+
"declaration-property-value-allowed-list": [{ "box-shadow": [
|
|
19
|
+
"var(--elmethis-box-shadow-small)",
|
|
20
|
+
"var(--elmethis-box-shadow-medium)",
|
|
21
|
+
"var(--elmethis-box-shadow-large)",
|
|
22
|
+
"none"
|
|
23
|
+
] }, {
|
|
24
|
+
message: "Use an Elmethis box-shadow token",
|
|
25
|
+
severity: "error"
|
|
26
|
+
}],
|
|
27
|
+
"selector-class-pattern": ["^[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:--[a-z0-9]+(?:-[a-z0-9]+)*)?$", { message: "Expected class selector to be kebab-case with optional BEM '__element' and/or '--modifier' suffix" }],
|
|
28
|
+
"no-descending-specificity": null
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
module.exports = stylelintConfig;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/style/stylelint.d.ts
|
|
2
|
+
declare const stylelintConfig: {
|
|
3
|
+
extends: string[];
|
|
4
|
+
plugins: string[];
|
|
5
|
+
rules: {
|
|
6
|
+
"color-no-hex": (boolean | {
|
|
7
|
+
message: string;
|
|
8
|
+
severity: string;
|
|
9
|
+
})[];
|
|
10
|
+
"color-named": (string | {
|
|
11
|
+
message: string;
|
|
12
|
+
severity: string;
|
|
13
|
+
})[];
|
|
14
|
+
"declaration-property-value-disallowed-list": ({
|
|
15
|
+
"/.*/": string[];
|
|
16
|
+
message?: undefined;
|
|
17
|
+
severity?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
message: string;
|
|
20
|
+
severity: string;
|
|
21
|
+
"/.*/"?: undefined;
|
|
22
|
+
})[];
|
|
23
|
+
"declaration-property-value-allowed-list": ({
|
|
24
|
+
"box-shadow": string[];
|
|
25
|
+
message?: undefined;
|
|
26
|
+
severity?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
message: string;
|
|
29
|
+
severity: string;
|
|
30
|
+
"box-shadow"?: undefined;
|
|
31
|
+
})[];
|
|
32
|
+
"selector-class-pattern": (string | {
|
|
33
|
+
message: string;
|
|
34
|
+
})[];
|
|
35
|
+
"no-descending-specificity": null;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export = stylelintConfig;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/style/stylelint.d.ts
|
|
2
|
+
declare const stylelintConfig: {
|
|
3
|
+
extends: string[];
|
|
4
|
+
plugins: string[];
|
|
5
|
+
rules: {
|
|
6
|
+
"color-no-hex": (boolean | {
|
|
7
|
+
message: string;
|
|
8
|
+
severity: string;
|
|
9
|
+
})[];
|
|
10
|
+
"color-named": (string | {
|
|
11
|
+
message: string;
|
|
12
|
+
severity: string;
|
|
13
|
+
})[];
|
|
14
|
+
"declaration-property-value-disallowed-list": ({
|
|
15
|
+
"/.*/": string[];
|
|
16
|
+
message?: undefined;
|
|
17
|
+
severity?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
message: string;
|
|
20
|
+
severity: string;
|
|
21
|
+
"/.*/"?: undefined;
|
|
22
|
+
})[];
|
|
23
|
+
"declaration-property-value-allowed-list": ({
|
|
24
|
+
"box-shadow": string[];
|
|
25
|
+
message?: undefined;
|
|
26
|
+
severity?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
message: string;
|
|
29
|
+
severity: string;
|
|
30
|
+
"box-shadow"?: undefined;
|
|
31
|
+
})[];
|
|
32
|
+
"selector-class-pattern": (string | {
|
|
33
|
+
message: string;
|
|
34
|
+
})[];
|
|
35
|
+
"no-descending-specificity": null;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { stylelintConfig as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/style/stylelint.ts
|
|
2
|
+
const stylelintConfig = {
|
|
3
|
+
extends: ["stylelint-config-standard", "stylelint-config-css-modules"],
|
|
4
|
+
plugins: ["stylelint-value-no-unknown-custom-properties"],
|
|
5
|
+
rules: {
|
|
6
|
+
"color-no-hex": [true, {
|
|
7
|
+
message: "Use an Elmethis color token instead of a hex color",
|
|
8
|
+
severity: "error"
|
|
9
|
+
}],
|
|
10
|
+
"color-named": ["never", {
|
|
11
|
+
message: "Use an Elmethis color token instead of a named color",
|
|
12
|
+
severity: "error"
|
|
13
|
+
}],
|
|
14
|
+
"declaration-property-value-disallowed-list": [{ "/.*/": ["/(?<![-\\w])(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)\\((?!\\s*from\\b)/i"] }, {
|
|
15
|
+
message: "Use an Elmethis color token instead of a color function",
|
|
16
|
+
severity: "error"
|
|
17
|
+
}],
|
|
18
|
+
"declaration-property-value-allowed-list": [{ "box-shadow": [
|
|
19
|
+
"var(--elmethis-box-shadow-small)",
|
|
20
|
+
"var(--elmethis-box-shadow-medium)",
|
|
21
|
+
"var(--elmethis-box-shadow-large)",
|
|
22
|
+
"none"
|
|
23
|
+
] }, {
|
|
24
|
+
message: "Use an Elmethis box-shadow token",
|
|
25
|
+
severity: "error"
|
|
26
|
+
}],
|
|
27
|
+
"selector-class-pattern": ["^[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:--[a-z0-9]+(?:-[a-z0-9]+)*)?$", { message: "Expected class selector to be kebab-case with optional BEM '__element' and/or '--modifier' suffix" }],
|
|
28
|
+
"no-descending-specificity": null
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { stylelintConfig as default };
|