@adobe/spectrum-tokens 13.0.0-beta.26 → 13.0.0-beta.28
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/CHANGELOG.md +26 -0
- package/dist/json/drover.json +4 -1
- package/dist/json/variables.json +123 -21
- package/index.js +52 -0
- package/package.json +3 -2
- package/src/layout-component.json +60 -54
- package/test/checkUniqueTokenNames.js +32 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @adobe/spectrum-tokens
|
|
2
2
|
|
|
3
|
+
## 13.0.0-beta.28
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1150331: Removed duplicate tokens from src files.
|
|
8
|
+
|
|
9
|
+
## 13.0.0-beta.27
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 3236495: Updated coach mark tokens for both desktop and mobile
|
|
14
|
+
|
|
15
|
+
## Token Diff
|
|
16
|
+
|
|
17
|
+
_Tokens added (6):_
|
|
18
|
+
|
|
19
|
+
- `coach-mark-body-font-size`
|
|
20
|
+
- `coach-mark-pagination-body-font-size`
|
|
21
|
+
- `coach-mark-title-font-size`
|
|
22
|
+
|
|
23
|
+
_Newly deprecated tokens (3):_
|
|
24
|
+
|
|
25
|
+
- `coach-mark-body-size`
|
|
26
|
+
- `coach-mark-pagination-body-size`
|
|
27
|
+
- `coach-mark-title-size`
|
|
28
|
+
|
|
3
29
|
## 13.0.0-beta.26
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/dist/json/drover.json
CHANGED
|
@@ -1353,14 +1353,17 @@
|
|
|
1353
1353
|
"cjk-letter-spacing": "0.05em",
|
|
1354
1354
|
"cjk-line-height-100": "1.5",
|
|
1355
1355
|
"cjk-line-height-200": "1.7",
|
|
1356
|
-
"coach-mark-body-size": "
|
|
1356
|
+
"coach-mark-body-font-size": "16px",
|
|
1357
|
+
"coach-mark-body-size": "16px",
|
|
1357
1358
|
"coach-mark-edge-to-content": "24px",
|
|
1358
1359
|
"coach-mark-maximum-width": "380px",
|
|
1359
1360
|
"coach-mark-media-height": "222px",
|
|
1360
1361
|
"coach-mark-media-minimum-height": "166px",
|
|
1361
1362
|
"coach-mark-minimum-width": "296px",
|
|
1363
|
+
"coach-mark-pagination-body-font-size": "14px",
|
|
1362
1364
|
"coach-mark-pagination-body-size": "14px",
|
|
1363
1365
|
"coach-mark-pagination-text-to-bottom-edge": "33px",
|
|
1366
|
+
"coach-mark-title-font-size": "16px",
|
|
1364
1367
|
"coach-mark-title-size": "16px",
|
|
1365
1368
|
"coach-mark-width": "296px",
|
|
1366
1369
|
"code-cjk-line-height": "1.7",
|
package/dist/json/variables.json
CHANGED
|
@@ -13573,9 +13573,10 @@
|
|
|
13573
13573
|
}
|
|
13574
13574
|
},
|
|
13575
13575
|
"coach-mark-title-size": {
|
|
13576
|
+
"ref": "{coach-mark-title-font-size}",
|
|
13576
13577
|
"sets": {
|
|
13577
13578
|
"desktop": {
|
|
13578
|
-
"ref": "{
|
|
13579
|
+
"ref": "{title-size-m}",
|
|
13579
13580
|
"sets": {
|
|
13580
13581
|
"desktop": {
|
|
13581
13582
|
"value": "16px",
|
|
@@ -13586,10 +13587,10 @@
|
|
|
13586
13587
|
"uuid": "7e51ff4e-2749-49d1-b9ed-75de92a73991"
|
|
13587
13588
|
}
|
|
13588
13589
|
},
|
|
13589
|
-
"uuid": "
|
|
13590
|
+
"uuid": "5b132698-4ee2-40e4-83c0-9ad80f36f5fd"
|
|
13590
13591
|
},
|
|
13591
13592
|
"mobile": {
|
|
13592
|
-
"ref": "{
|
|
13593
|
+
"ref": "{title-size-s}",
|
|
13593
13594
|
"sets": {
|
|
13594
13595
|
"desktop": {
|
|
13595
13596
|
"value": "14px",
|
|
@@ -13600,43 +13601,47 @@
|
|
|
13600
13601
|
"uuid": "2f9ee3cf-ccb1-4f0b-aed6-96e472fb7411"
|
|
13601
13602
|
}
|
|
13602
13603
|
},
|
|
13603
|
-
"uuid": "
|
|
13604
|
+
"uuid": "45855bc5-3b86-49a9-b443-7be9aa763c4e"
|
|
13604
13605
|
}
|
|
13605
|
-
}
|
|
13606
|
+
},
|
|
13607
|
+
"uuid": "331604db-3f28-472e-810d-9010ed2c8e33"
|
|
13606
13608
|
},
|
|
13607
13609
|
"coach-mark-body-size": {
|
|
13610
|
+
"ref": "{coach-mark-body-font-size}",
|
|
13608
13611
|
"sets": {
|
|
13609
13612
|
"desktop": {
|
|
13610
|
-
"ref": "{body-size-
|
|
13613
|
+
"ref": "{body-size-m}",
|
|
13611
13614
|
"sets": {
|
|
13612
13615
|
"desktop": {
|
|
13613
|
-
"value": "
|
|
13614
|
-
"uuid": "
|
|
13616
|
+
"value": "16px",
|
|
13617
|
+
"uuid": "b36caaa3-7047-4dfb-8a84-f990a8ac3a91"
|
|
13615
13618
|
},
|
|
13616
13619
|
"mobile": {
|
|
13617
|
-
"value": "
|
|
13618
|
-
"uuid": "
|
|
13620
|
+
"value": "19px",
|
|
13621
|
+
"uuid": "7e51ff4e-2749-49d1-b9ed-75de92a73991"
|
|
13619
13622
|
}
|
|
13620
13623
|
},
|
|
13621
|
-
"uuid": "
|
|
13624
|
+
"uuid": "4b88a0d5-2d07-4e63-afa6-cdd611f0a8c1"
|
|
13622
13625
|
},
|
|
13623
13626
|
"mobile": {
|
|
13624
|
-
"ref": "{body-size-
|
|
13627
|
+
"ref": "{body-size-s}",
|
|
13625
13628
|
"sets": {
|
|
13626
13629
|
"desktop": {
|
|
13627
|
-
"value": "
|
|
13628
|
-
"uuid": "
|
|
13630
|
+
"value": "14px",
|
|
13631
|
+
"uuid": "938e2d24-1e90-48f0-a596-595a69103707"
|
|
13629
13632
|
},
|
|
13630
13633
|
"mobile": {
|
|
13631
|
-
"value": "
|
|
13632
|
-
"uuid": "
|
|
13634
|
+
"value": "17px",
|
|
13635
|
+
"uuid": "2f9ee3cf-ccb1-4f0b-aed6-96e472fb7411"
|
|
13633
13636
|
}
|
|
13634
13637
|
},
|
|
13635
|
-
"uuid": "
|
|
13638
|
+
"uuid": "73959c3d-afc2-4f6e-bd34-0399bf3b5b73"
|
|
13636
13639
|
}
|
|
13637
|
-
}
|
|
13640
|
+
},
|
|
13641
|
+
"uuid": "eba9f466-deda-48d5-a120-14419d5a670f"
|
|
13638
13642
|
},
|
|
13639
13643
|
"coach-mark-pagination-body-size": {
|
|
13644
|
+
"ref": "{coach-mark-pagination-body-font-size}",
|
|
13640
13645
|
"sets": {
|
|
13641
13646
|
"desktop": {
|
|
13642
13647
|
"ref": "{body-size-s}",
|
|
@@ -13650,7 +13655,7 @@
|
|
|
13650
13655
|
"uuid": "2f9ee3cf-ccb1-4f0b-aed6-96e472fb7411"
|
|
13651
13656
|
}
|
|
13652
13657
|
},
|
|
13653
|
-
"uuid": "
|
|
13658
|
+
"uuid": "06ae2458-8490-4741-8a02-97f60cc01592"
|
|
13654
13659
|
},
|
|
13655
13660
|
"mobile": {
|
|
13656
13661
|
"ref": "{body-size-xs}",
|
|
@@ -13664,9 +13669,10 @@
|
|
|
13664
13669
|
"uuid": "07e1c2a8-3925-4d71-8fae-3486483ff44c"
|
|
13665
13670
|
}
|
|
13666
13671
|
},
|
|
13667
|
-
"uuid": "
|
|
13672
|
+
"uuid": "4f8c99a5-0942-41b0-ac41-923ea9ca2bf2"
|
|
13668
13673
|
}
|
|
13669
|
-
}
|
|
13674
|
+
},
|
|
13675
|
+
"uuid": "df8bc8ae-b6fa-4414-93b7-c89d8097fe11"
|
|
13670
13676
|
},
|
|
13671
13677
|
"accordion-top-to-text-compact-small": {
|
|
13672
13678
|
"value": "2px",
|
|
@@ -17130,6 +17136,102 @@
|
|
|
17130
17136
|
}
|
|
17131
17137
|
}
|
|
17132
17138
|
},
|
|
17139
|
+
"coach-mark-body-font-size": {
|
|
17140
|
+
"sets": {
|
|
17141
|
+
"desktop": {
|
|
17142
|
+
"ref": "{body-size-m}",
|
|
17143
|
+
"sets": {
|
|
17144
|
+
"desktop": {
|
|
17145
|
+
"value": "16px",
|
|
17146
|
+
"uuid": "b36caaa3-7047-4dfb-8a84-f990a8ac3a91"
|
|
17147
|
+
},
|
|
17148
|
+
"mobile": {
|
|
17149
|
+
"value": "19px",
|
|
17150
|
+
"uuid": "7e51ff4e-2749-49d1-b9ed-75de92a73991"
|
|
17151
|
+
}
|
|
17152
|
+
},
|
|
17153
|
+
"uuid": "4b88a0d5-2d07-4e63-afa6-cdd611f0a8c1"
|
|
17154
|
+
},
|
|
17155
|
+
"mobile": {
|
|
17156
|
+
"ref": "{body-size-s}",
|
|
17157
|
+
"sets": {
|
|
17158
|
+
"desktop": {
|
|
17159
|
+
"value": "14px",
|
|
17160
|
+
"uuid": "938e2d24-1e90-48f0-a596-595a69103707"
|
|
17161
|
+
},
|
|
17162
|
+
"mobile": {
|
|
17163
|
+
"value": "17px",
|
|
17164
|
+
"uuid": "2f9ee3cf-ccb1-4f0b-aed6-96e472fb7411"
|
|
17165
|
+
}
|
|
17166
|
+
},
|
|
17167
|
+
"uuid": "73959c3d-afc2-4f6e-bd34-0399bf3b5b73"
|
|
17168
|
+
}
|
|
17169
|
+
}
|
|
17170
|
+
},
|
|
17171
|
+
"coach-mark-pagination-body-font-size": {
|
|
17172
|
+
"sets": {
|
|
17173
|
+
"desktop": {
|
|
17174
|
+
"ref": "{body-size-s}",
|
|
17175
|
+
"sets": {
|
|
17176
|
+
"desktop": {
|
|
17177
|
+
"value": "14px",
|
|
17178
|
+
"uuid": "938e2d24-1e90-48f0-a596-595a69103707"
|
|
17179
|
+
},
|
|
17180
|
+
"mobile": {
|
|
17181
|
+
"value": "17px",
|
|
17182
|
+
"uuid": "2f9ee3cf-ccb1-4f0b-aed6-96e472fb7411"
|
|
17183
|
+
}
|
|
17184
|
+
},
|
|
17185
|
+
"uuid": "06ae2458-8490-4741-8a02-97f60cc01592"
|
|
17186
|
+
},
|
|
17187
|
+
"mobile": {
|
|
17188
|
+
"ref": "{body-size-xs}",
|
|
17189
|
+
"sets": {
|
|
17190
|
+
"desktop": {
|
|
17191
|
+
"value": "12px",
|
|
17192
|
+
"uuid": "55d90327-8cc9-4d4f-891f-9d42751d989a"
|
|
17193
|
+
},
|
|
17194
|
+
"mobile": {
|
|
17195
|
+
"value": "15px",
|
|
17196
|
+
"uuid": "07e1c2a8-3925-4d71-8fae-3486483ff44c"
|
|
17197
|
+
}
|
|
17198
|
+
},
|
|
17199
|
+
"uuid": "4f8c99a5-0942-41b0-ac41-923ea9ca2bf2"
|
|
17200
|
+
}
|
|
17201
|
+
}
|
|
17202
|
+
},
|
|
17203
|
+
"coach-mark-title-font-size": {
|
|
17204
|
+
"sets": {
|
|
17205
|
+
"desktop": {
|
|
17206
|
+
"ref": "{title-size-m}",
|
|
17207
|
+
"sets": {
|
|
17208
|
+
"desktop": {
|
|
17209
|
+
"value": "16px",
|
|
17210
|
+
"uuid": "b36caaa3-7047-4dfb-8a84-f990a8ac3a91"
|
|
17211
|
+
},
|
|
17212
|
+
"mobile": {
|
|
17213
|
+
"value": "19px",
|
|
17214
|
+
"uuid": "7e51ff4e-2749-49d1-b9ed-75de92a73991"
|
|
17215
|
+
}
|
|
17216
|
+
},
|
|
17217
|
+
"uuid": "5b132698-4ee2-40e4-83c0-9ad80f36f5fd"
|
|
17218
|
+
},
|
|
17219
|
+
"mobile": {
|
|
17220
|
+
"ref": "{title-size-s}",
|
|
17221
|
+
"sets": {
|
|
17222
|
+
"desktop": {
|
|
17223
|
+
"value": "14px",
|
|
17224
|
+
"uuid": "938e2d24-1e90-48f0-a596-595a69103707"
|
|
17225
|
+
},
|
|
17226
|
+
"mobile": {
|
|
17227
|
+
"value": "17px",
|
|
17228
|
+
"uuid": "2f9ee3cf-ccb1-4f0b-aed6-96e472fb7411"
|
|
17229
|
+
}
|
|
17230
|
+
},
|
|
17231
|
+
"uuid": "45855bc5-3b86-49a9-b443-7be9aa763c4e"
|
|
17232
|
+
}
|
|
17233
|
+
}
|
|
17234
|
+
},
|
|
17133
17235
|
"corner-radius-0": {
|
|
17134
17236
|
"value": "0px",
|
|
17135
17237
|
"uuid": "bb9d8350-b1fb-4496-9c22-6ec9647ff117"
|
package/index.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { glob } from "glob";
|
|
14
|
+
|
|
15
|
+
import { resolve } from "path";
|
|
16
|
+
import { readFile } from "fs/promises";
|
|
17
|
+
import * as url from "url";
|
|
18
|
+
import { writeFile } from "fs/promises";
|
|
19
|
+
import { format } from "prettier";
|
|
20
|
+
|
|
21
|
+
export const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
|
|
22
|
+
|
|
23
|
+
export const tokenFileNames = await glob(
|
|
24
|
+
`${resolve(__dirname, "./src")}/**/*.json`,
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
export const readJson = async (fileName) =>
|
|
28
|
+
JSON.parse(await readFile(fileName, "utf8"));
|
|
29
|
+
|
|
30
|
+
export const writeJson = async (fileName, jsonData) => {
|
|
31
|
+
await writeFile(
|
|
32
|
+
fileName,
|
|
33
|
+
await format(JSON.stringify(jsonData), { parser: "json-stringify" }),
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const getFileTokens = async (tokenFileName) =>
|
|
38
|
+
await readJson(resolve(__dirname, "src", tokenFileName));
|
|
39
|
+
|
|
40
|
+
export const getAllTokens = async () => {
|
|
41
|
+
return await Promise.all(tokenFileNames.map(getFileTokens)).then(
|
|
42
|
+
(tokenFileDataAr) => {
|
|
43
|
+
return tokenFileDataAr.reduce(
|
|
44
|
+
(tokenDataAcc, tokenFileData) => ({
|
|
45
|
+
...tokenDataAcc,
|
|
46
|
+
...tokenFileData,
|
|
47
|
+
}),
|
|
48
|
+
{},
|
|
49
|
+
);
|
|
50
|
+
},
|
|
51
|
+
);
|
|
52
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spectrum-tokens",
|
|
3
|
-
"version": "13.0.0-beta.
|
|
3
|
+
"version": "13.0.0-beta.28",
|
|
4
4
|
"description": "Design tokens for Spectrum, Adobe's design system",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "index.js",
|
|
7
7
|
"tokens": "dist/json/variables.json",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"ajv": "^8.12.0",
|
|
26
26
|
"ajv-formats": "^2.1.1",
|
|
27
27
|
"deep-object-diff": "^1.1.9",
|
|
28
|
+
"find-duplicated-property-keys": "^1.2.9",
|
|
28
29
|
"glob": "^10.3.10",
|
|
29
30
|
"style-dictionary": "^3.9.2",
|
|
30
31
|
"style-dictionary-sets": "^2.3.0",
|
|
@@ -3608,51 +3608,27 @@
|
|
|
3608
3608
|
},
|
|
3609
3609
|
"coach-mark-title-size": {
|
|
3610
3610
|
"component": "coach-mark",
|
|
3611
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/
|
|
3612
|
-
"
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
"uuid": "331604db-3f28-472e-810d-9010ed2c8e33"
|
|
3617
|
-
},
|
|
3618
|
-
"mobile": {
|
|
3619
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
3620
|
-
"value": "{heading-size-xxs}",
|
|
3621
|
-
"uuid": "cd4848b6-d560-475a-9d80-f7b5acebce10"
|
|
3622
|
-
}
|
|
3623
|
-
}
|
|
3611
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
3612
|
+
"value": "{coach-mark-title-font-size}",
|
|
3613
|
+
"uuid": "331604db-3f28-472e-810d-9010ed2c8e33",
|
|
3614
|
+
"deprecated": true,
|
|
3615
|
+
"deprecated_comment": "Replace with coach-mark-title-font-size"
|
|
3624
3616
|
},
|
|
3625
3617
|
"coach-mark-body-size": {
|
|
3626
3618
|
"component": "coach-mark",
|
|
3627
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/
|
|
3628
|
-
"
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
"uuid": "eba9f466-deda-48d5-a120-14419d5a670f"
|
|
3633
|
-
},
|
|
3634
|
-
"mobile": {
|
|
3635
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
3636
|
-
"value": "{body-size-xs}",
|
|
3637
|
-
"uuid": "a0abef77-dafe-4158-9faa-a4b4b2871e54"
|
|
3638
|
-
}
|
|
3639
|
-
}
|
|
3619
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
3620
|
+
"value": "{coach-mark-body-font-size}",
|
|
3621
|
+
"uuid": "eba9f466-deda-48d5-a120-14419d5a670f",
|
|
3622
|
+
"deprecated": true,
|
|
3623
|
+
"deprecated_comment": "Replace with coach-mark-body-font-size"
|
|
3640
3624
|
},
|
|
3641
3625
|
"coach-mark-pagination-body-size": {
|
|
3642
3626
|
"component": "coach-mark",
|
|
3643
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/
|
|
3644
|
-
"
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
"uuid": "df8bc8ae-b6fa-4414-93b7-c89d8097fe11"
|
|
3649
|
-
},
|
|
3650
|
-
"mobile": {
|
|
3651
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
3652
|
-
"value": "{body-size-xs}",
|
|
3653
|
-
"uuid": "350d9235-ff9e-43d7-9298-56b36d58d6de"
|
|
3654
|
-
}
|
|
3655
|
-
}
|
|
3627
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
3628
|
+
"value": "{coach-mark-pagination-body-font-size}",
|
|
3629
|
+
"uuid": "df8bc8ae-b6fa-4414-93b7-c89d8097fe11",
|
|
3630
|
+
"deprecated": true,
|
|
3631
|
+
"deprecated_comment": "Replace with coach-mark-pagination-body-font-size"
|
|
3656
3632
|
},
|
|
3657
3633
|
"accordion-top-to-text-compact-small": {
|
|
3658
3634
|
"component": "accordion",
|
|
@@ -7627,21 +7603,6 @@
|
|
|
7627
7603
|
}
|
|
7628
7604
|
}
|
|
7629
7605
|
},
|
|
7630
|
-
"combo-box-visual-to-field-button": {
|
|
7631
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/dimension.json",
|
|
7632
|
-
"value": "0px",
|
|
7633
|
-
"uuid": "6c3c7201-2f5b-455a-bcbf-5e3d783887bf"
|
|
7634
|
-
},
|
|
7635
|
-
"in-field-button-edge-to-fill-medium": {
|
|
7636
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/dimension.json",
|
|
7637
|
-
"value": "6px",
|
|
7638
|
-
"uuid": "86f41898-b794-4f7e-ae41-9eb84c2c7a5b"
|
|
7639
|
-
},
|
|
7640
|
-
"in-field-button-edge-to-fill-large": {
|
|
7641
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/dimension.json",
|
|
7642
|
-
"value": "8px",
|
|
7643
|
-
"uuid": "44e97486-53ce-4bb0-a778-0f9262dfe27e"
|
|
7644
|
-
},
|
|
7645
7606
|
"alert-dialog-description-font-size": {
|
|
7646
7607
|
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/scale-set.json",
|
|
7647
7608
|
"sets": {
|
|
@@ -7671,5 +7632,50 @@
|
|
|
7671
7632
|
"uuid": "c84328d2-578b-4a36-9065-6c6a9e1d311f"
|
|
7672
7633
|
}
|
|
7673
7634
|
}
|
|
7635
|
+
},
|
|
7636
|
+
"coach-mark-body-font-size": {
|
|
7637
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/scale-set.json",
|
|
7638
|
+
"sets": {
|
|
7639
|
+
"desktop": {
|
|
7640
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
7641
|
+
"value": "{body-size-m}",
|
|
7642
|
+
"uuid": "4b88a0d5-2d07-4e63-afa6-cdd611f0a8c1"
|
|
7643
|
+
},
|
|
7644
|
+
"mobile": {
|
|
7645
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
7646
|
+
"value": "{body-size-s}",
|
|
7647
|
+
"uuid": "73959c3d-afc2-4f6e-bd34-0399bf3b5b73"
|
|
7648
|
+
}
|
|
7649
|
+
}
|
|
7650
|
+
},
|
|
7651
|
+
"coach-mark-pagination-body-font-size": {
|
|
7652
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/scale-set.json",
|
|
7653
|
+
"sets": {
|
|
7654
|
+
"desktop": {
|
|
7655
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
7656
|
+
"value": "{body-size-s}",
|
|
7657
|
+
"uuid": "06ae2458-8490-4741-8a02-97f60cc01592"
|
|
7658
|
+
},
|
|
7659
|
+
"mobile": {
|
|
7660
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
7661
|
+
"value": "{body-size-xs}",
|
|
7662
|
+
"uuid": "4f8c99a5-0942-41b0-ac41-923ea9ca2bf2"
|
|
7663
|
+
}
|
|
7664
|
+
}
|
|
7665
|
+
},
|
|
7666
|
+
"coach-mark-title-font-size": {
|
|
7667
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/scale-set.json",
|
|
7668
|
+
"sets": {
|
|
7669
|
+
"desktop": {
|
|
7670
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
7671
|
+
"value": "{title-size-m}",
|
|
7672
|
+
"uuid": "5b132698-4ee2-40e4-83c0-9ad80f36f5fd"
|
|
7673
|
+
},
|
|
7674
|
+
"mobile": {
|
|
7675
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
|
|
7676
|
+
"value": "{title-size-s}",
|
|
7677
|
+
"uuid": "45855bc5-3b86-49a9-b443-7be9aa763c4e"
|
|
7678
|
+
}
|
|
7679
|
+
}
|
|
7674
7680
|
}
|
|
7675
7681
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import test from "ava";
|
|
14
|
+
import { readFile } from "fs/promises";
|
|
15
|
+
import { tokenFileNames } from "../index.js";
|
|
16
|
+
import findDuplicatedPropertyKeys from "find-duplicated-property-keys";
|
|
17
|
+
|
|
18
|
+
test("check for duplicate token names across all token files", async (t) => {
|
|
19
|
+
const result = await Promise.all(
|
|
20
|
+
tokenFileNames.map(async (tokenFileName) => {
|
|
21
|
+
const tokenDataString = await readFile(tokenFileName, "utf8");
|
|
22
|
+
return tokenDataString.substring(
|
|
23
|
+
tokenDataString.indexOf("{") + 1,
|
|
24
|
+
tokenDataString.lastIndexOf("}"),
|
|
25
|
+
);
|
|
26
|
+
}),
|
|
27
|
+
).then((tokenDataArray) => {
|
|
28
|
+
return findDuplicatedPropertyKeys(`{${tokenDataArray.join(",")}}`);
|
|
29
|
+
});
|
|
30
|
+
// t.pass();
|
|
31
|
+
t.deepEqual(result, []);
|
|
32
|
+
});
|