@adobe/spectrum-tokens 12.0.0-beta.41 → 12.0.0-beta.42

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,6 +1,6 @@
1
- # [12.0.0-beta.41](https://github.com/adobe/spectrum-tokens/compare/v12.0.0-beta.40...v12.0.0-beta.41) (2022-06-30)
1
+ # [12.0.0-beta.42](https://github.com/adobe/spectrum-tokens/compare/v12.0.0-beta.41...v12.0.0-beta.42) (2022-07-14)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * upgrade sets to get fix for drover parser ([#52](https://github.com/adobe/spectrum-tokens/issues/52)) ([01acc19](https://github.com/adobe/spectrum-tokens/commit/01acc199f0928ed32450e299b5fa80897a5d3797))
6
+ * add popover and tag tokens ([#54](https://github.com/adobe/spectrum-tokens/issues/54)) ([3cf9620](https://github.com/adobe/spectrum-tokens/commit/3cf9620613111eb1ad2796403e159bc2037dc759))
@@ -1144,6 +1144,9 @@
1144
1144
  "in-line-alert-minimum-width": "320px",
1145
1145
  "line-height-100": "1.3",
1146
1146
  "line-height-200": "1.5",
1147
+ "popover-tip-height": "8px",
1148
+ "popover-tip-width": "16px",
1149
+ "popover-top-to-content-area": "4px",
1147
1150
  "progress-bar-maximum-width": "768px",
1148
1151
  "progress-bar-minimum-width": "48px",
1149
1152
  "progress-bar-thickness-extra-large": "10px",
@@ -1197,6 +1200,12 @@
1197
1200
  "switch-top-to-control-large": "12px",
1198
1201
  "switch-top-to-control-medium": "9px",
1199
1202
  "switch-top-to-control-small": "6px",
1203
+ "tag-top-to-avatar-large": "9px",
1204
+ "tag-top-to-avatar-medium": "6px",
1205
+ "tag-top-to-avatar-small": "4px",
1206
+ "tag-top-to-cross-icon-large": "15px",
1207
+ "tag-top-to-cross-icon-medium": "12px",
1208
+ "tag-top-to-cross-icon-small": "8px",
1200
1209
  "text-to-control-100": "10px",
1201
1210
  "text-to-control-200": "11px",
1202
1211
  "text-to-control-300": "13px",
@@ -9047,6 +9047,82 @@
9047
9047
  }
9048
9048
  }
9049
9049
  },
9050
+ "tag-top-to-avatar-small": {
9051
+ "sets": {
9052
+ "desktop": {
9053
+ "value": "4px"
9054
+ },
9055
+ "mobile": {
9056
+ "value": "5px"
9057
+ }
9058
+ }
9059
+ },
9060
+ "tag-top-to-avatar-medium": {
9061
+ "sets": {
9062
+ "desktop": {
9063
+ "value": "6px"
9064
+ },
9065
+ "mobile": {
9066
+ "value": "9px"
9067
+ }
9068
+ }
9069
+ },
9070
+ "tag-top-to-avatar-large": {
9071
+ "sets": {
9072
+ "desktop": {
9073
+ "value": "9px"
9074
+ },
9075
+ "mobile": {
9076
+ "value": "12px"
9077
+ }
9078
+ }
9079
+ },
9080
+ "tag-top-to-cross-icon-small": {
9081
+ "sets": {
9082
+ "desktop": {
9083
+ "value": "8px"
9084
+ },
9085
+ "mobile": {
9086
+ "value": "10px"
9087
+ }
9088
+ }
9089
+ },
9090
+ "tag-top-to-cross-icon-medium": {
9091
+ "sets": {
9092
+ "desktop": {
9093
+ "value": "12px"
9094
+ },
9095
+ "mobile": {
9096
+ "value": "15px"
9097
+ }
9098
+ }
9099
+ },
9100
+ "tag-top-to-cross-icon-large": {
9101
+ "sets": {
9102
+ "desktop": {
9103
+ "value": "15px"
9104
+ },
9105
+ "mobile": {
9106
+ "value": "19px"
9107
+ }
9108
+ }
9109
+ },
9110
+ "popover-tip-width": {
9111
+ "value": "16px"
9112
+ },
9113
+ "popover-tip-height": {
9114
+ "value": "8px"
9115
+ },
9116
+ "popover-top-to-content-area": {
9117
+ "sets": {
9118
+ "desktop": {
9119
+ "value": "4px"
9120
+ },
9121
+ "mobile": {
9122
+ "value": "5px"
9123
+ }
9124
+ }
9125
+ },
9050
9126
  "corner-radius-75": {
9051
9127
  "sets": {
9052
9128
  "spectrum": {
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-tokens",
3
- "version": "12.0.0-beta.41",
3
+ "version": "12.0.0-beta.42",
4
4
  "description": "",
5
5
  "main": "config.js",
6
6
  "scripts": {
7
7
  "build": "style-dictionary build",
8
+ "diffLastRelease": ". tasks/diffOutput.sh",
8
9
  "clean": "rm -rf dist",
9
10
  "pre-commit": "lint-staged",
10
11
  "prepare": "husky install && yarn run build",
@@ -1658,5 +1658,82 @@
1658
1658
  "value": "200px"
1659
1659
  }
1660
1660
  }
1661
+ },
1662
+ "tag-top-to-avatar-small": {
1663
+ "sets": {
1664
+ "desktop": {
1665
+ "value": "4px"
1666
+ },
1667
+ "mobile": {
1668
+ "value": "5px"
1669
+ }
1670
+ }
1671
+ },
1672
+ "tag-top-to-avatar-medium": {
1673
+ "sets": {
1674
+ "desktop": {
1675
+ "value": "6px"
1676
+ },
1677
+ "mobile": {
1678
+ "value": "9px"
1679
+ }
1680
+ }
1681
+ },
1682
+ "tag-top-to-avatar-large": {
1683
+ "sets": {
1684
+ "desktop": {
1685
+ "value": "9px"
1686
+ },
1687
+ "mobile": {
1688
+ "value": "12px"
1689
+ }
1690
+ }
1691
+ },
1692
+ "tag-top-to-cross-icon-small": {
1693
+ "sets": {
1694
+ "desktop": {
1695
+ "value": "8px"
1696
+ },
1697
+ "mobile": {
1698
+ "value": "10px"
1699
+ }
1700
+ }
1701
+ },
1702
+ "tag-top-to-cross-icon-medium": {
1703
+ "sets": {
1704
+ "desktop": {
1705
+ "value": "12px"
1706
+ },
1707
+ "mobile": {
1708
+ "value": "15px"
1709
+ }
1710
+ }
1711
+ },
1712
+ "tag-top-to-cross-icon-large": {
1713
+ "sets": {
1714
+ "desktop": {
1715
+ "value": "15px"
1716
+ },
1717
+ "mobile": {
1718
+ "value": "19px"
1719
+ }
1720
+ }
1721
+ },
1722
+ "popover-tip-width": {
1723
+ "value": "16px"
1724
+ },
1725
+ "popover-tip-height": {
1726
+ "value": "8px"
1727
+ },
1728
+ "popover-top-to-content-area": {
1729
+ "sets": {
1730
+ "desktop": {
1731
+ "value": "4px"
1732
+ },
1733
+ "mobile": {
1734
+ "value": "5px"
1735
+ }
1736
+ }
1661
1737
  }
1738
+
1662
1739
  }
@@ -0,0 +1,36 @@
1
+ #!/bin/bash
2
+
3
+ # test for a target dist file to look for
4
+ if [ -z "$1" ]
5
+ then
6
+ echo "No dist file type was specified, default to variables.json"
7
+ fetchType='variables'
8
+ else
9
+ fetchType=$1
10
+ fi
11
+
12
+ # set up what we want to look for
13
+ lastRelease=`npm show @adobe/spectrum-tokens@beta version`
14
+ fetchTarget="@adobe/spectrum-tokens@$lastRelease/dist/json/$fetchType.json"
15
+
16
+ echo "Attempting to fetch and diff $fetchTarget"
17
+
18
+ # clean up the last run
19
+ rm .tmp/old-$fetchType.json
20
+
21
+ # grab the unpackage for the version we asked for
22
+ fetchURL="https://unpkg.com/$fetchTarget"
23
+ curl --silent -o .tmp/old-$fetchType.json $fetchURL
24
+
25
+ # git diff is pretty
26
+ git diff --no-index .tmp/old-$fetchType.json dist/json/$fetchType.json
27
+
28
+ # diff sends 1 if there are differences, the script thinks it had an error#
29
+ # this just catches the code and stuffs it if there's actually a diff
30
+ exit_code=$?
31
+
32
+ if [ $exit_code == 0 ]
33
+ then
34
+ echo "No difference found."
35
+ fi
36
+