@amsterdam/design-system-tokens 3.3.0 → 4.0.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.
Files changed (109) hide show
  1. package/CHANGELOG.md +61 -3
  2. package/README.md +131 -22
  3. package/build.js +11 -1
  4. package/dist/compact.css +9 -2
  5. package/dist/compact.d.ts +21 -6
  6. package/dist/compact.json +33 -18
  7. package/dist/compact.mjs +21 -13
  8. package/dist/compact.scss +9 -2
  9. package/dist/compact.theme.css +9 -2
  10. package/dist/index.css +177 -165
  11. package/dist/index.d.ts +250 -226
  12. package/dist/index.json +345 -321
  13. package/dist/index.mjs +285 -267
  14. package/dist/index.scss +177 -165
  15. package/dist/index.theme.css +177 -165
  16. package/package.json +2 -2
  17. package/src/brand/ams/aspect-ratio.tokens.json +24 -6
  18. package/src/brand/ams/border.compact.tokens.json +20 -0
  19. package/src/brand/ams/border.tokens.json +25 -0
  20. package/src/brand/ams/color.compact.tokens.json +15 -0
  21. package/src/brand/ams/color.tokens.json +37 -49
  22. package/src/brand/ams/cursor.tokens.json +9 -2
  23. package/src/brand/ams/focus.tokens.json +1 -0
  24. package/src/brand/ams/space.compact.tokens.json +16 -4
  25. package/src/brand/ams/space.tokens.json +31 -6
  26. package/src/brand/ams/typography.compact.tokens.json +36 -27
  27. package/src/brand/ams/typography.tokens.json +60 -32
  28. package/src/common/ams/inputs.tokens.json +41 -19
  29. package/src/common/ams/links.tokens.json +35 -10
  30. package/src/components/ams/accordion.tokens.json +18 -11
  31. package/src/components/ams/action-group.tokens.json +2 -2
  32. package/src/components/ams/alert.tokens.json +38 -20
  33. package/src/components/ams/avatar.tokens.json +79 -29
  34. package/src/components/ams/badge.tokens.json +60 -23
  35. package/src/components/ams/blockquote.tokens.json +14 -5
  36. package/src/components/ams/body.compact.tokens.json +12 -0
  37. package/src/components/ams/body.tokens.json +12 -0
  38. package/src/components/ams/breadcrumb.tokens.json +36 -15
  39. package/src/components/ams/button.tokens.json +74 -33
  40. package/src/components/ams/call-to-action-link.tokens.json +29 -16
  41. package/src/components/ams/card.tokens.json +30 -17
  42. package/src/components/ams/character-count.tokens.json +14 -5
  43. package/src/components/ams/checkbox.tokens.json +106 -39
  44. package/src/components/ams/column.tokens.json +10 -10
  45. package/src/components/ams/date-input.tokens.json +56 -23
  46. package/src/components/ams/description-list.tokens.json +101 -23
  47. package/src/components/ams/dialog.tokens.json +104 -28
  48. package/src/components/ams/error-message.tokens.json +13 -6
  49. package/src/components/ams/field-set.tokens.json +40 -17
  50. package/src/components/ams/field.tokens.json +18 -7
  51. package/src/components/ams/figure.tokens.json +16 -7
  52. package/src/components/ams/file-input.tokens.json +69 -30
  53. package/src/components/ams/file-list.tokens.json +20 -11
  54. package/src/components/ams/grid.compact.tokens.json +24 -2
  55. package/src/components/ams/grid.tokens.json +77 -24
  56. package/src/components/ams/heading.tokens.json +38 -36
  57. package/src/components/ams/hint.tokens.json +6 -2
  58. package/src/components/ams/icon-button.tokens.json +46 -16
  59. package/src/components/ams/icon.tokens.json +19 -23
  60. package/src/components/ams/image-slider.tokens.json +28 -16
  61. package/src/components/ams/image.tokens.json +4 -1
  62. package/src/components/ams/invalid-form-alert.tokens.json +2 -2
  63. package/src/components/ams/label.tokens.json +18 -6
  64. package/src/components/ams/link-list.tokens.json +50 -22
  65. package/src/components/ams/link.tokens.json +38 -25
  66. package/src/components/ams/logo.tokens.json +6 -2
  67. package/src/components/ams/mark.tokens.json +3 -1
  68. package/src/components/ams/menu.tokens.json +81 -28
  69. package/src/components/ams/ordered-list.tokens.json +39 -25
  70. package/src/components/ams/page-footer.tokens.json +70 -26
  71. package/src/components/ams/page-header.compact.tokens.json +2 -1
  72. package/src/components/ams/page-header.tokens.json +128 -59
  73. package/src/components/ams/page.compact.tokens.json +12 -0
  74. package/src/components/ams/page.tokens.json +5 -3
  75. package/src/components/ams/pagination.tokens.json +37 -17
  76. package/src/components/ams/paragraph.tokens.json +22 -8
  77. package/src/components/ams/password-input.tokens.json +47 -21
  78. package/src/components/ams/progress-list.tokens.json +194 -52
  79. package/src/components/ams/radio.tokens.json +97 -36
  80. package/src/components/ams/row.tokens.json +10 -10
  81. package/src/components/ams/search-field.tokens.json +57 -24
  82. package/src/components/ams/select.tokens.json +63 -23
  83. package/src/components/ams/skip-link.tokens.json +23 -12
  84. package/src/components/ams/spotlight.tokens.json +21 -7
  85. package/src/components/ams/standalone-link.tokens.json +44 -18
  86. package/src/components/ams/switch.tokens.json +40 -10
  87. package/src/components/ams/tab-navigation.tokens.json +205 -0
  88. package/src/components/ams/table-of-contents.tokens.json +38 -20
  89. package/src/components/ams/table.tokens.json +29 -10
  90. package/src/components/ams/tabs.tokens.json +39 -20
  91. package/src/components/ams/text-area.tokens.json +49 -23
  92. package/src/components/ams/text-input.tokens.json +47 -19
  93. package/src/components/ams/time-input.tokens.json +56 -21
  94. package/src/components/ams/unordered-list.tokens.json +37 -25
  95. package/style-dictionary/transforms/dtcg-font-family.js +32 -0
  96. package/src/brand/ams/color.deprecated.tokens.json +0 -13
  97. package/src/brand/ams/typography.deprecated.compact.tokens.json +0 -26
  98. package/src/brand/ams/typography.deprecated.tokens.json +0 -40
  99. package/src/components/ams/accordion.deprecated.tokens.json +0 -39
  100. package/src/components/ams/checkbox.deprecated.tokens.json +0 -59
  101. package/src/components/ams/date-input.deprecated.tokens.json +0 -38
  102. package/src/components/ams/field-set.deprecated.tokens.json +0 -16
  103. package/src/components/ams/field.deprecated.tokens.json +0 -14
  104. package/src/components/ams/icon.deprecated.tokens.json +0 -22
  105. package/src/components/ams/menu.deprecated.tokens.json +0 -36
  106. package/src/components/ams/page-heading.deprecated.tokens.json +0 -46
  107. package/src/components/ams/standalone-link.deprecated.tokens.json +0 -38
  108. package/src/components/ams/table-of-contents.deprecated.tokens.json +0 -24
  109. package/src/components/ams/time-input.deprecated.tokens.json +0 -38
@@ -3,7 +3,9 @@
3
3
  "pagination": {
4
4
  "font-family": {
5
5
  "$value": "{ams.typography.font-family}",
6
- "$type": "fontFamily"
6
+ "$extensions": {
7
+ "nl.amsterdam.type": "fontFamily"
8
+ }
7
9
  },
8
10
  "font-size": {
9
11
  "$value": "{ams.typography.body-text.font-size}",
@@ -13,67 +15,85 @@
13
15
  },
14
16
  "font-weight": {
15
17
  "$value": "{ams.typography.body-text.font-weight}",
16
- "$type": "fontWeight"
18
+ "$extensions": {
19
+ "nl.amsterdam.type": "fontWeight"
20
+ }
17
21
  },
18
22
  "line-height": {
19
23
  "$value": "{ams.typography.body-text.line-height}",
20
24
  "$extensions": {
21
- "nl.amsterdam.type": "lineHeight"
25
+ "nl.amsterdam.subtype": "lineHeight",
26
+ "nl.amsterdam.type": "number"
22
27
  }
23
28
  },
24
29
  "link": {
25
30
  "color": {
26
31
  "$value": "{ams.links.color}",
27
- "$type": "color"
32
+ "$extensions": {
33
+ "nl.amsterdam.type": "color"
34
+ }
28
35
  },
29
36
  "gap": {
30
37
  "$value": "{ams.space.xs}",
31
- "$type": "dimension",
32
38
  "$extensions": {
33
- "nl.amsterdam.subtype": "space"
39
+ "nl.amsterdam.subtype": "space",
40
+ "nl.amsterdam.type": "dimension"
34
41
  }
35
42
  },
36
43
  "outline-offset": {
37
44
  "$value": "{ams.focus.outline-offset}",
38
- "$type": "dimension",
39
45
  "$extensions": {
40
- "nl.amsterdam.subtype": "space"
46
+ "nl.amsterdam.subtype": "space",
47
+ "nl.amsterdam.type": "dimension"
41
48
  }
42
49
  },
43
50
  "padding-inline": {
44
51
  "$value": "{ams.space.s}",
45
- "$type": "dimension",
46
52
  "$extensions": {
47
- "nl.amsterdam.subtype": "space"
53
+ "nl.amsterdam.subtype": "space",
54
+ "nl.amsterdam.type": "dimension"
48
55
  }
49
56
  },
50
57
  "text-decoration-line": {
51
- "$value": "{ams.links.subtle.text-decoration-line}"
58
+ "$value": "{ams.links.subtle.text-decoration-line}",
59
+ "$extensions": {
60
+ "nl.amsterdam.type": "textDecorationLine"
61
+ }
52
62
  },
53
63
  "text-decoration-thickness": {
54
64
  "$value": "{ams.links.text-decoration-thickness}",
55
- "$type": "dimension"
65
+ "$extensions": {
66
+ "nl.amsterdam.subtype": "space",
67
+ "nl.amsterdam.type": "dimension"
68
+ }
56
69
  },
57
70
  "text-underline-offset": {
58
71
  "$value": "{ams.links.text-underline-offset}",
59
- "$type": "dimension",
60
72
  "$extensions": {
61
- "nl.amsterdam.subtype": "space"
73
+ "nl.amsterdam.subtype": "space",
74
+ "nl.amsterdam.type": "dimension"
62
75
  }
63
76
  },
64
77
  "current": {
65
78
  "font-weight": {
66
79
  "$value": "{ams.typography.body-text.bold.font-weight}",
67
- "$type": "fontWeight"
80
+ "$extensions": {
81
+ "nl.amsterdam.type": "fontWeight"
82
+ }
68
83
  }
69
84
  },
70
85
  "hover": {
71
86
  "color": {
72
87
  "$value": "{ams.links.hover.color}",
73
- "$type": "color"
88
+ "$extensions": {
89
+ "nl.amsterdam.type": "color"
90
+ }
74
91
  },
75
92
  "text-decoration-line": {
76
- "$value": "{ams.links.subtle.hover.text-decoration-line}"
93
+ "$value": "{ams.links.subtle.hover.text-decoration-line}",
94
+ "$extensions": {
95
+ "nl.amsterdam.type": "textDecorationLine"
96
+ }
77
97
  }
78
98
  }
79
99
  }
@@ -3,11 +3,15 @@
3
3
  "paragraph": {
4
4
  "color": {
5
5
  "$value": "{ams.color.text.default}",
6
- "$type": "color"
6
+ "$extensions": {
7
+ "nl.amsterdam.type": "color"
8
+ }
7
9
  },
8
10
  "font-family": {
9
11
  "$value": "{ams.typography.font-family}",
10
- "$type": "fontFamily"
12
+ "$extensions": {
13
+ "nl.amsterdam.type": "fontFamily"
14
+ }
11
15
  },
12
16
  "font-size": {
13
17
  "$value": "{ams.typography.body-text.font-size}",
@@ -17,18 +21,23 @@
17
21
  },
18
22
  "font-weight": {
19
23
  "$value": "{ams.typography.body-text.font-weight}",
20
- "$type": "fontWeight"
24
+ "$extensions": {
25
+ "nl.amsterdam.type": "fontWeight"
26
+ }
21
27
  },
22
28
  "line-height": {
23
29
  "$value": "{ams.typography.body-text.line-height}",
24
30
  "$extensions": {
25
- "nl.amsterdam.type": "lineHeight"
31
+ "nl.amsterdam.subtype": "lineHeight",
32
+ "nl.amsterdam.type": "number"
26
33
  }
27
34
  },
28
35
  "inverse": {
29
36
  "color": {
30
37
  "$value": "{ams.color.text.inverse}",
31
- "$type": "color"
38
+ "$extensions": {
39
+ "nl.amsterdam.type": "color"
40
+ }
32
41
  }
33
42
  },
34
43
  "small": {
@@ -41,7 +50,8 @@
41
50
  "line-height": {
42
51
  "$value": "{ams.typography.body-text.small.line-height}",
43
52
  "$extensions": {
44
- "nl.amsterdam.type": "lineHeight"
53
+ "nl.amsterdam.subtype": "lineHeight",
54
+ "nl.amsterdam.type": "number"
45
55
  }
46
56
  }
47
57
  },
@@ -55,11 +65,15 @@
55
65
  "line-height": {
56
66
  "$value": "{ams.typography.body-text.large.line-height}",
57
67
  "$extensions": {
58
- "nl.amsterdam.type": "lineHeight"
68
+ "nl.amsterdam.subtype": "lineHeight",
69
+ "nl.amsterdam.type": "number"
59
70
  }
60
71
  },
61
72
  "text-wrap": {
62
- "$value": "balance"
73
+ "$value": "balance",
74
+ "$extensions": {
75
+ "nl.amsterdam.type": "textWrap"
76
+ }
63
77
  }
64
78
  }
65
79
  }
@@ -3,11 +3,15 @@
3
3
  "password-input": {
4
4
  "background-color": {
5
5
  "$value": "{ams.inputs.background-color}",
6
- "$type": "color"
6
+ "$extensions": {
7
+ "nl.amsterdam.type": "color"
8
+ }
7
9
  },
8
10
  "border-color": {
9
11
  "$value": "{ams.inputs.border-color}",
10
- "$type": "color"
12
+ "$extensions": {
13
+ "nl.amsterdam.type": "color"
14
+ }
11
15
  },
12
16
  "border-style": {
13
17
  "$value": "{ams.inputs.border-style}",
@@ -23,11 +27,15 @@
23
27
  },
24
28
  "color": {
25
29
  "$value": "{ams.inputs.color}",
26
- "$type": "color"
30
+ "$extensions": {
31
+ "nl.amsterdam.type": "color"
32
+ }
27
33
  },
28
34
  "font-family": {
29
35
  "$value": "{ams.inputs.font-family}",
30
- "$type": "fontFamily"
36
+ "$extensions": {
37
+ "nl.amsterdam.type": "fontFamily"
38
+ }
31
39
  },
32
40
  "font-size": {
33
41
  "$value": "{ams.inputs.font-size}",
@@ -37,70 +45,88 @@
37
45
  },
38
46
  "font-weight": {
39
47
  "$value": "{ams.inputs.font-weight}",
40
- "$type": "fontWeight"
48
+ "$extensions": {
49
+ "nl.amsterdam.type": "fontWeight"
50
+ }
41
51
  },
42
52
  "line-height": {
43
53
  "$value": "{ams.inputs.line-height}",
44
54
  "$extensions": {
45
- "nl.amsterdam.type": "lineHeight"
55
+ "nl.amsterdam.subtype": "lineHeight",
56
+ "nl.amsterdam.type": "number"
46
57
  }
47
58
  },
48
59
  "outline-offset": {
49
60
  "$value": "{ams.inputs.outline-offset}",
50
- "$type": "dimension",
51
61
  "$extensions": {
52
- "nl.amsterdam.subtype": "space"
62
+ "nl.amsterdam.subtype": "space",
63
+ "nl.amsterdam.type": "dimension"
53
64
  }
54
65
  },
55
66
  "padding-block": {
56
67
  "$value": "{ams.inputs.padding-block}",
57
- "$type": "dimension",
58
68
  "$extensions": {
59
- "nl.amsterdam.subtype": "space"
69
+ "nl.amsterdam.subtype": "space",
70
+ "nl.amsterdam.type": "dimension"
60
71
  }
61
72
  },
62
73
  "padding-inline": {
63
74
  "$value": "{ams.inputs.padding-inline}",
64
- "$type": "dimension",
65
75
  "$extensions": {
66
- "nl.amsterdam.subtype": "space"
76
+ "nl.amsterdam.subtype": "space",
77
+ "nl.amsterdam.type": "dimension"
67
78
  }
68
79
  },
69
80
  "disabled": {
70
81
  "color": {
71
82
  "$value": "{ams.inputs.disabled.color}",
72
- "$type": "color"
83
+ "$extensions": {
84
+ "nl.amsterdam.type": "color"
85
+ }
73
86
  },
74
87
  "cursor": {
75
- "$value": "{ams.cursor.disabled}"
88
+ "$value": "{ams.cursor.disabled}",
89
+ "$extensions": {
90
+ "nl.amsterdam.type": "cursor"
91
+ }
76
92
  }
77
93
  },
78
94
  "hover": {
79
95
  "box-shadow": {
80
- "$type": "shadow",
81
- "$value": "{ams.inputs.hover.box-shadow}"
96
+ "$value": "{ams.inputs.hover.box-shadow}",
97
+ "$extensions": {
98
+ "nl.amsterdam.type": "shadow"
99
+ }
82
100
  }
83
101
  },
84
102
  "invalid": {
85
103
  "border-color": {
86
104
  "$value": "{ams.inputs.invalid.border-color}",
87
- "$type": "color"
105
+ "$extensions": {
106
+ "nl.amsterdam.type": "color"
107
+ }
88
108
  },
89
109
  "hover": {
90
110
  "border-color": {
91
111
  "$value": "{ams.inputs.invalid.hover.border-color}",
92
- "$type": "color"
112
+ "$extensions": {
113
+ "nl.amsterdam.type": "color"
114
+ }
93
115
  },
94
116
  "box-shadow": {
95
- "$type": "shadow",
96
- "$value": "{ams.inputs.invalid.hover.box-shadow}"
117
+ "$value": "{ams.inputs.invalid.hover.box-shadow}",
118
+ "$extensions": {
119
+ "nl.amsterdam.type": "shadow"
120
+ }
97
121
  }
98
122
  }
99
123
  },
100
124
  "placeholder": {
101
125
  "color": {
102
126
  "$value": "{ams.inputs.placeholder.color}",
103
- "$type": "color"
127
+ "$extensions": {
128
+ "nl.amsterdam.type": "color"
129
+ }
104
130
  }
105
131
  }
106
132
  }