@adobe/spectrum-tokens 12.4.0 → 12.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @adobe/spectrum-tokens
2
2
 
3
+ ## 12.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c1eaeee: Added new tokens for slider. Deprecated old slider tokens.
8
+
3
9
  ## 12.4.0
4
10
 
5
11
  ### Minor Changes
@@ -1750,6 +1750,10 @@
1750
1750
  "slider-control-height-large": "18px",
1751
1751
  "slider-control-height-medium": "16px",
1752
1752
  "slider-control-height-small": "14px",
1753
+ "slider-control-to-field-label-extra-large": "14px",
1754
+ "slider-control-to-field-label-large": "11px",
1755
+ "slider-control-to-field-label-medium": "8px",
1756
+ "slider-control-to-field-label-small": "5px",
1753
1757
  "slider-handle-border-width-down-extra-large": "8px",
1754
1758
  "slider-handle-border-width-down-large": "7px",
1755
1759
  "slider-handle-border-width-down-medium": "6px",
@@ -11215,6 +11215,46 @@
11215
11215
  }
11216
11216
  }
11217
11217
  },
11218
+ "slider-control-to-field-label-small": {
11219
+ "sets": {
11220
+ "desktop": {
11221
+ "value": "5px"
11222
+ },
11223
+ "mobile": {
11224
+ "value": "6px"
11225
+ }
11226
+ }
11227
+ },
11228
+ "slider-control-to-field-label-medium": {
11229
+ "sets": {
11230
+ "desktop": {
11231
+ "value": "8px"
11232
+ },
11233
+ "mobile": {
11234
+ "value": "10px"
11235
+ }
11236
+ }
11237
+ },
11238
+ "slider-control-to-field-label-large": {
11239
+ "sets": {
11240
+ "desktop": {
11241
+ "value": "11px"
11242
+ },
11243
+ "mobile": {
11244
+ "value": "14px"
11245
+ }
11246
+ }
11247
+ },
11248
+ "slider-control-to-field-label-extra-large": {
11249
+ "sets": {
11250
+ "desktop": {
11251
+ "value": "14px"
11252
+ },
11253
+ "mobile": {
11254
+ "value": "17px"
11255
+ }
11256
+ }
11257
+ },
11218
11258
  "picker-minimum-width-multiplier": {
11219
11259
  "value": "2"
11220
11260
  },
package/manifest.json CHANGED
@@ -1,9 +1,5 @@
1
1
  [
2
- "src/color-aliases.json",
3
- "src/color-component.json",
4
- "src/color-palette.json",
5
- "src/layout-component.json",
6
- "src/layout.json",
7
- "src/semantic-color-palette.json",
8
- "src/typography.json"
9
- ]
2
+ "src/color-aliases.json", "src/color-component.json",
3
+ "src/color-palette.json", "src/layout-component.json", "src/layout.json",
4
+ "src/semantic-color-palette.json", "src/typography.json"
5
+ ]
package/moon.yml CHANGED
@@ -1,3 +1,13 @@
1
+ # Copyright 2023 Adobe. All rights reserved.
2
+ # This file is licensed to you under the Apache License, Version 2.0 (the "License");
3
+ # you may not use this file except in compliance with the License. You may obtain a copy
4
+ # of the License at http://www.apache.org/licenses/LICENSE-2.0
5
+
6
+ # Unless required by applicable law or agreed to in writing, software distributed under
7
+ # the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
8
+ # OF ANY KIND, either express or implied. See the License for the specific language
9
+ # governing permissions and limitations under the License.
10
+
1
11
  fileGroups:
2
12
  sources:
3
13
  - "src/**/*"
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-tokens",
3
- "version": "12.4.0",
3
+ "version": "12.5.0",
4
4
  "description": "Design tokens for Spectrum, Adobe's design system",
5
5
  "type": "module",
6
- "main": "config.js",
6
+ "main": "tasks/buildSpectrumTokens.js",
7
7
  "tokens": "dist/json/variables.json",
8
8
  "repository": {
9
9
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "bugs": {
18
18
  "url": "https://github.com/adobe/spectrum-tokens/issues"
19
19
  },
20
- "homepage": "https://github.com/adobe/spectrum-tokens#readme",
20
+ "homepage": "https://github.com/adobe/spectrum-tokens/tree/main/packages/tokens#readme",
21
21
  "devDependencies": {
22
22
  "deep-object-diff": "^1.1.7",
23
23
  "glob": "^8.1.0",
@@ -1775,6 +1775,8 @@
1775
1775
  },
1776
1776
  "slider-control-height-small": {
1777
1777
  "component": "slider",
1778
+ "deprecated": true,
1779
+ "deprecated_comment": "use `component-height-75` instead",
1778
1780
  "sets": {
1779
1781
  "spectrum": {
1780
1782
  "sets": {
@@ -1804,6 +1806,8 @@
1804
1806
  },
1805
1807
  "slider-control-height-medium": {
1806
1808
  "component": "slider",
1809
+ "deprecated": true,
1810
+ "deprecated_comment": "use `component-height-100` instead",
1807
1811
  "sets": {
1808
1812
  "spectrum": {
1809
1813
  "sets": {
@@ -1833,6 +1837,8 @@
1833
1837
  },
1834
1838
  "slider-control-height-large": {
1835
1839
  "component": "slider",
1840
+ "deprecated": true,
1841
+ "deprecated_comment": "use `component-height-200` instead",
1836
1842
  "sets": {
1837
1843
  "spectrum": {
1838
1844
  "sets": {
@@ -1862,6 +1868,8 @@
1862
1868
  },
1863
1869
  "slider-control-height-extra-large": {
1864
1870
  "component": "slider",
1871
+ "deprecated": true,
1872
+ "deprecated_comment": "use `component-height-300` instead",
1865
1873
  "sets": {
1866
1874
  "spectrum": {
1867
1875
  "sets": {
@@ -2136,6 +2144,8 @@
2136
2144
  },
2137
2145
  "slider-bottom-to-handle-small": {
2138
2146
  "component": "slider",
2147
+ "deprecated": true,
2148
+ "deprecated_comment": "no longer needed with the increased control height",
2139
2149
  "sets": {
2140
2150
  "spectrum": {
2141
2151
  "sets": {
@@ -2165,6 +2175,8 @@
2165
2175
  },
2166
2176
  "slider-bottom-to-handle-medium": {
2167
2177
  "component": "slider",
2178
+ "deprecated": true,
2179
+ "deprecated_comment": "no longer needed with the increased control height",
2168
2180
  "sets": {
2169
2181
  "spectrum": {
2170
2182
  "sets": {
@@ -2194,6 +2206,8 @@
2194
2206
  },
2195
2207
  "slider-bottom-to-handle-large": {
2196
2208
  "component": "slider",
2209
+ "deprecated": true,
2210
+ "deprecated_comment": "no longer needed with the increased control height",
2197
2211
  "sets": {
2198
2212
  "spectrum": {
2199
2213
  "sets": {
@@ -2223,6 +2237,8 @@
2223
2237
  },
2224
2238
  "slider-bottom-to-handle-extra-large": {
2225
2239
  "component": "slider",
2240
+ "deprecated": true,
2241
+ "deprecated_comment": "no longer needed with the increased control height",
2226
2242
  "sets": {
2227
2243
  "spectrum": {
2228
2244
  "sets": {
@@ -2250,6 +2266,50 @@
2250
2266
  }
2251
2267
  }
2252
2268
  },
2269
+ "slider-control-to-field-label-small": {
2270
+ "component": "slider",
2271
+ "sets": {
2272
+ "desktop": {
2273
+ "value": "5px"
2274
+ },
2275
+ "mobile": {
2276
+ "value": "6px"
2277
+ }
2278
+ }
2279
+ },
2280
+ "slider-control-to-field-label-medium": {
2281
+ "component": "slider",
2282
+ "sets": {
2283
+ "desktop": {
2284
+ "value": "8px"
2285
+ },
2286
+ "mobile": {
2287
+ "value": "10px"
2288
+ }
2289
+ }
2290
+ },
2291
+ "slider-control-to-field-label-large": {
2292
+ "component": "slider",
2293
+ "sets": {
2294
+ "desktop": {
2295
+ "value": "11px"
2296
+ },
2297
+ "mobile": {
2298
+ "value": "14px"
2299
+ }
2300
+ }
2301
+ },
2302
+ "slider-control-to-field-label-extra-large": {
2303
+ "component": "slider",
2304
+ "sets": {
2305
+ "desktop": {
2306
+ "value": "14px"
2307
+ },
2308
+ "mobile": {
2309
+ "value": "17px"
2310
+ }
2311
+ }
2312
+ },
2253
2313
  "picker-minimum-width-multiplier": {
2254
2314
  "component": "picker",
2255
2315
  "value": "2"
@@ -1,3 +1,15 @@
1
+ /*
2
+ Copyright 2023 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
+
1
13
  import glob from "glob-promise";
2
14
  import { writeFile } from "fs/promises";
3
15
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2022 Adobe. All rights reserved.
2
+ Copyright 2023 Adobe. All rights reserved.
3
3
  This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License. You may obtain a copy
5
5
  of the License at http://www.apache.org/licenses/LICENSE-2.0
@@ -1,3 +1,15 @@
1
+ /*
2
+ Copyright 2023 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
+
1
13
  import glob from "glob-promise";
2
14
  import { readFile, writeFile } from "fs/promises";
3
15
  import augmentExpressTokens from "./lib/augmentExpressTokens.js";
package/tasks/diff.js CHANGED
@@ -1,3 +1,15 @@
1
+ /*
2
+ Copyright 2023 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
+
1
13
  import { access, readFile, writeFile } from "fs/promises";
2
14
  import { join, dirname } from "path";
3
15
  import { fileURLToPath } from "url";
@@ -1,3 +1,15 @@
1
+ /*
2
+ Copyright 2023 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
+
1
13
  const deprecationObj = {
2
14
  deprecated: true,
3
15
  deprecated_comment:
@@ -1,3 +1,15 @@
1
+ /*
2
+ Copyright 2023 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
+
1
13
  import test from "ava";
2
14
  import augmentExpressTokens from "../tasks/lib/augmentExpressTokens.js";
3
15
 
@@ -1,3 +1,15 @@
1
+ /*
2
+ Copyright 2023 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
+
1
13
  import test from "ava";
2
14
  import { readFile } from "fs/promises";
3
15