@servicetitan/hammer-token 1.3.3 → 1.3.5
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +41 -19
- package/build/web/core/semantic-variables.scss +14 -42
- package/config.js +56 -3
- package/package.json +9 -10
- package/.turbo/turbo-lint.log +0 -4
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @servicetitan/hammer-token
|
|
2
|
+
|
|
3
|
+
## 1.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#889](https://github.com/servicetitan/hammer/pull/889) [`56f1e97`](https://github.com/servicetitan/hammer/commit/56f1e97b15cb203e0a004fed2eb6bdb91a9917cf) Thanks [@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n)! - Updating CHANGELOG headings to match Changesets
|
|
8
|
+
|
|
9
|
+
## v1.3.4 (Sat Nov 02 2024)
|
|
10
|
+
|
|
11
|
+
#### 🐛 Bug Fix
|
|
12
|
+
|
|
13
|
+
- ANV-1953: Add monolith CSS to storybook, create CSS file to temp fix `71.1orion` [#796](https://github.com/servicetitan/hammer/pull/796) ([@rgdelato](https://github.com/rgdelato) [@tounsoo](https://github.com/tounsoo) [@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n))
|
|
14
|
+
|
|
15
|
+
#### Authors: 3
|
|
16
|
+
|
|
17
|
+
- Ben Ho ([@tounsoo](https://github.com/tounsoo))
|
|
18
|
+
- Derek Watson ([@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n))
|
|
19
|
+
- Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## v1.3.3 (Tue Oct 29 2024)
|
|
2
24
|
|
|
3
25
|
#### 🐛 Bug Fix
|
|
4
26
|
|
|
@@ -10,7 +32,7 @@
|
|
|
10
32
|
|
|
11
33
|
---
|
|
12
34
|
|
|
13
|
-
|
|
35
|
+
## v1.3.2 (Mon Oct 28 2024)
|
|
14
36
|
|
|
15
37
|
#### 🐛 Bug Fix
|
|
16
38
|
|
|
@@ -22,7 +44,7 @@
|
|
|
22
44
|
|
|
23
45
|
---
|
|
24
46
|
|
|
25
|
-
|
|
47
|
+
## v1.3.1 (Mon Oct 28 2024)
|
|
26
48
|
|
|
27
49
|
#### 📝 Documentation
|
|
28
50
|
|
|
@@ -34,7 +56,7 @@
|
|
|
34
56
|
|
|
35
57
|
---
|
|
36
58
|
|
|
37
|
-
|
|
59
|
+
## v1.3.0 (Fri Oct 25 2024)
|
|
38
60
|
|
|
39
61
|
#### ✨ New Feature
|
|
40
62
|
|
|
@@ -46,7 +68,7 @@
|
|
|
46
68
|
|
|
47
69
|
---
|
|
48
70
|
|
|
49
|
-
|
|
71
|
+
## v1.2.0 (Wed Aug 14 2024)
|
|
50
72
|
|
|
51
73
|
#### 🏠 Internal
|
|
52
74
|
|
|
@@ -58,7 +80,7 @@
|
|
|
58
80
|
|
|
59
81
|
---
|
|
60
82
|
|
|
61
|
-
|
|
83
|
+
## v1.1.2 (Mon Jul 15 2024)
|
|
62
84
|
|
|
63
85
|
#### 🏠 Internal
|
|
64
86
|
|
|
@@ -70,7 +92,7 @@
|
|
|
70
92
|
|
|
71
93
|
---
|
|
72
94
|
|
|
73
|
-
|
|
95
|
+
## v1.1.1 (Thu Jul 11 2024)
|
|
74
96
|
|
|
75
97
|
#### 📝 Dependencies
|
|
76
98
|
|
|
@@ -83,7 +105,7 @@
|
|
|
83
105
|
|
|
84
106
|
---
|
|
85
107
|
|
|
86
|
-
|
|
108
|
+
## v1.1.0 (Wed Jul 10 2024)
|
|
87
109
|
|
|
88
110
|
#### 🚀 Enhancement
|
|
89
111
|
|
|
@@ -95,7 +117,7 @@
|
|
|
95
117
|
|
|
96
118
|
---
|
|
97
119
|
|
|
98
|
-
|
|
120
|
+
## v1.0.0 (Mon Jun 03 2024)
|
|
99
121
|
|
|
100
122
|
#### 🏠 Internal
|
|
101
123
|
|
|
@@ -107,7 +129,7 @@
|
|
|
107
129
|
|
|
108
130
|
---
|
|
109
131
|
|
|
110
|
-
|
|
132
|
+
## v0.7.0 (Mon Jun 03 2024)
|
|
111
133
|
|
|
112
134
|
#### 🐛 Bug Fix
|
|
113
135
|
|
|
@@ -119,7 +141,7 @@
|
|
|
119
141
|
|
|
120
142
|
---
|
|
121
143
|
|
|
122
|
-
|
|
144
|
+
## v0.6.0 (Fri May 31 2024)
|
|
123
145
|
|
|
124
146
|
#### ✨ New Feature
|
|
125
147
|
|
|
@@ -131,7 +153,7 @@
|
|
|
131
153
|
|
|
132
154
|
---
|
|
133
155
|
|
|
134
|
-
|
|
156
|
+
## v0.5.2 (Fri May 03 2024)
|
|
135
157
|
|
|
136
158
|
#### 🏠 Internal
|
|
137
159
|
|
|
@@ -143,7 +165,7 @@
|
|
|
143
165
|
|
|
144
166
|
---
|
|
145
167
|
|
|
146
|
-
|
|
168
|
+
## v0.5.1 (Thu Apr 18 2024)
|
|
147
169
|
|
|
148
170
|
#### 🐛 Bug Fix
|
|
149
171
|
|
|
@@ -155,7 +177,7 @@
|
|
|
155
177
|
|
|
156
178
|
---
|
|
157
179
|
|
|
158
|
-
|
|
180
|
+
## v0.5.0 (Fri Apr 12 2024)
|
|
159
181
|
|
|
160
182
|
#### ✨ New Feature
|
|
161
183
|
|
|
@@ -167,7 +189,7 @@
|
|
|
167
189
|
|
|
168
190
|
---
|
|
169
191
|
|
|
170
|
-
|
|
192
|
+
## v0.4.0 (Fri Mar 29 2024)
|
|
171
193
|
|
|
172
194
|
#### 🏠 Internal
|
|
173
195
|
|
|
@@ -179,7 +201,7 @@
|
|
|
179
201
|
|
|
180
202
|
---
|
|
181
203
|
|
|
182
|
-
|
|
204
|
+
## v0.3.0 (Mon Mar 18 2024)
|
|
183
205
|
|
|
184
206
|
:tada: This release contains work from a new contributor! :tada:
|
|
185
207
|
|
|
@@ -202,7 +224,7 @@ Thank you, Derek Watson ([@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n)), for al
|
|
|
202
224
|
|
|
203
225
|
---
|
|
204
226
|
|
|
205
|
-
|
|
227
|
+
## v0.2.0 (Fri Jan 26 2024)
|
|
206
228
|
|
|
207
229
|
#### 🐛 Bug Fix
|
|
208
230
|
|
|
@@ -223,7 +245,7 @@ Thank you, Derek Watson ([@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n)), for al
|
|
|
223
245
|
|
|
224
246
|
---
|
|
225
247
|
|
|
226
|
-
|
|
248
|
+
## v0.1.0 (Sat Dec 16 2023)
|
|
227
249
|
|
|
228
250
|
:tada: This release contains work from new contributors! :tada:
|
|
229
251
|
|
|
@@ -268,7 +290,7 @@ Thanks for all your work!
|
|
|
268
290
|
|
|
269
291
|
---
|
|
270
292
|
|
|
271
|
-
|
|
293
|
+
## v0.1.0 (Thu Sep 14 2023)
|
|
272
294
|
|
|
273
295
|
:tada: This release contains work from new contributors! :tada:
|
|
274
296
|
|
|
@@ -10,14 +10,6 @@ $light: (
|
|
|
10
10
|
background-color-disabled: #606162,
|
|
11
11
|
background-color-inverted: #2d2e31,
|
|
12
12
|
background-color-inverted-strong: #141414,
|
|
13
|
-
border-radius-none: 0rem,
|
|
14
|
-
border-radius-rounded: 0.375rem,
|
|
15
|
-
border-radius-rounded-strong: 1rem,
|
|
16
|
-
border-radius-pill: 500px,
|
|
17
|
-
border-radius-circular: 100%,
|
|
18
|
-
border-width-none: 0rem,
|
|
19
|
-
border-width: 0.0625rem,
|
|
20
|
-
border-width-strong: 0.125rem,
|
|
21
13
|
border-color: #949596,
|
|
22
14
|
border-color-subdued: #dfe0e1,
|
|
23
15
|
border-color-strong: #444445,
|
|
@@ -25,7 +17,6 @@ $light: (
|
|
|
25
17
|
border-color-danger: #e13212,
|
|
26
18
|
focus-ring-color: #0265dc,
|
|
27
19
|
focus-ring-color-danger: #e13212,
|
|
28
|
-
focus-ring-width: 0.25rem,
|
|
29
20
|
foreground-color: #141414,
|
|
30
21
|
foreground-color-subdued: #737475,
|
|
31
22
|
foreground-color-primary: #0265dc,
|
|
@@ -47,31 +38,10 @@ $light: (
|
|
|
47
38
|
overlay-color-hover-on-primary: #ffffff29,
|
|
48
39
|
overlay-color-hover-on-danger: #ffffff29,
|
|
49
40
|
shadow-color: #14141414,
|
|
50
|
-
shadow-size-flat: 0rem 0rem 0rem,
|
|
51
|
-
shadow-size-float: 0rem 0.125rem 0.5rem,
|
|
52
|
-
shadow-size-overlay: 0rem 0.5rem 1.5rem,
|
|
53
41
|
status-color-info: #0265dc,
|
|
54
42
|
status-color-danger: #e13212,
|
|
55
43
|
status-color-success: #007a4d,
|
|
56
44
|
status-color-warning: #ffbe00,
|
|
57
|
-
typography-paragraph-size-xsmall: 0.75rem,
|
|
58
|
-
typography-paragraph-size-small: 0.875rem,
|
|
59
|
-
typography-paragraph-size: 1rem,
|
|
60
|
-
typography-paragraph-size-large: 1.25rem,
|
|
61
|
-
typography-paragraph-size-xlarge: 1.5rem,
|
|
62
|
-
typography-paragraph-font-weight: 400,
|
|
63
|
-
typography-heading-size-xsmall: 0.875rem,
|
|
64
|
-
typography-heading-size-small: 1rem,
|
|
65
|
-
typography-heading-size: 1.25rem,
|
|
66
|
-
typography-heading-size-large: 1.5rem,
|
|
67
|
-
typography-heading-size-xlarge: 2rem,
|
|
68
|
-
typography-heading-font-weight: 700,
|
|
69
|
-
typography-label-size-xsmall: 0.625rem,
|
|
70
|
-
typography-label-size-small: 0.75rem,
|
|
71
|
-
typography-label-size: 0.875rem,
|
|
72
|
-
typography-label-size-large: 1rem,
|
|
73
|
-
typography-label-size-xlarge: 1.25rem,
|
|
74
|
-
typography-label-font-weight: 600,
|
|
75
45
|
);
|
|
76
46
|
$dark: (
|
|
77
47
|
background-color: #141414,
|
|
@@ -85,14 +55,6 @@ $dark: (
|
|
|
85
55
|
background-color-disabled: #606162,
|
|
86
56
|
background-color-inverted: #fafafa,
|
|
87
57
|
background-color-inverted-strong: #ffffff,
|
|
88
|
-
border-radius-none: 0rem,
|
|
89
|
-
border-radius-rounded: 0.375rem,
|
|
90
|
-
border-radius-rounded-strong: 1rem,
|
|
91
|
-
border-radius-pill: 500px,
|
|
92
|
-
border-radius-circular: 100%,
|
|
93
|
-
border-width-none: 0rem,
|
|
94
|
-
border-width: 0.0625rem,
|
|
95
|
-
border-width-strong: 0.125rem,
|
|
96
58
|
border-color: #606162,
|
|
97
59
|
border-color-subdued: #444445,
|
|
98
60
|
border-color-strong: #dfe0e1,
|
|
@@ -100,7 +62,6 @@ $dark: (
|
|
|
100
62
|
border-color-danger: #ff745f,
|
|
101
63
|
focus-ring-color: #78bbfa,
|
|
102
64
|
focus-ring-color-danger: #ff745f,
|
|
103
|
-
focus-ring-width: 0.25rem,
|
|
104
65
|
foreground-color: #ffffff,
|
|
105
66
|
foreground-color-subdued: #bcbcbd,
|
|
106
67
|
foreground-color-primary: #78bbfa,
|
|
@@ -122,13 +83,24 @@ $dark: (
|
|
|
122
83
|
overlay-color-hover-on-primary: #ffffff29,
|
|
123
84
|
overlay-color-hover-on-danger: #ffffff29,
|
|
124
85
|
shadow-color: #ffffff14,
|
|
125
|
-
shadow-size-flat: 0rem 0rem 0rem,
|
|
126
|
-
shadow-size-float: 0rem 0.125rem 0.5rem,
|
|
127
|
-
shadow-size-overlay: 0rem 0.5rem 1.5rem,
|
|
128
86
|
status-color-info: #78bbfa,
|
|
129
87
|
status-color-danger: #ff745f,
|
|
130
88
|
status-color-success: #49cc93,
|
|
131
89
|
status-color-warning: #ffe278,
|
|
90
|
+
);
|
|
91
|
+
$nonColor: (
|
|
92
|
+
border-radius-none: 0rem,
|
|
93
|
+
border-radius-rounded: 0.375rem,
|
|
94
|
+
border-radius-rounded-strong: 1rem,
|
|
95
|
+
border-radius-pill: 500px,
|
|
96
|
+
border-radius-circular: 100%,
|
|
97
|
+
border-width-none: 0rem,
|
|
98
|
+
border-width: 0.0625rem,
|
|
99
|
+
border-width-strong: 0.125rem,
|
|
100
|
+
focus-ring-width: 0.25rem,
|
|
101
|
+
shadow-size-flat: 0rem 0rem 0rem,
|
|
102
|
+
shadow-size-float: 0rem 0.125rem 0.5rem,
|
|
103
|
+
shadow-size-overlay: 0rem 0.5rem 1.5rem,
|
|
132
104
|
typography-paragraph-size-xsmall: 0.75rem,
|
|
133
105
|
typography-paragraph-size-small: 0.875rem,
|
|
134
106
|
typography-paragraph-size: 1rem,
|
package/config.js
CHANGED
|
@@ -26,19 +26,44 @@ StyleDictionary.registerFormat({
|
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
+
const nonColorTokens = [
|
|
30
|
+
"border-radius",
|
|
31
|
+
"font-family",
|
|
32
|
+
"font-weight",
|
|
33
|
+
"size",
|
|
34
|
+
"width",
|
|
35
|
+
];
|
|
36
|
+
|
|
29
37
|
StyleDictionary.registerFormat({
|
|
30
38
|
name: `custom/semantic-variables`,
|
|
31
39
|
formatter: function ({ dictionary }) {
|
|
32
40
|
const light = dictionary.allTokens
|
|
33
|
-
.filter((token) =>
|
|
41
|
+
.filter((token) => {
|
|
42
|
+
let isColor = true;
|
|
43
|
+
nonColorTokens.forEach((t) => {
|
|
44
|
+
if (token.name.includes(t)) {
|
|
45
|
+
isColor = false;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return isColor;
|
|
49
|
+
})
|
|
34
50
|
.map((token) => {
|
|
35
51
|
let value = token.value;
|
|
36
52
|
let name = `${token.name.replace("-default", "")}`;
|
|
37
53
|
return ` ${name}: ${value},`;
|
|
38
54
|
})
|
|
39
55
|
.join(`\n`);
|
|
56
|
+
|
|
40
57
|
const dark = dictionary.allTokens
|
|
41
|
-
.filter((token) =>
|
|
58
|
+
.filter((token) => {
|
|
59
|
+
let isColor = true;
|
|
60
|
+
nonColorTokens.forEach((t) => {
|
|
61
|
+
if (token.name.includes(t)) {
|
|
62
|
+
isColor = false;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
return isColor;
|
|
66
|
+
})
|
|
42
67
|
.map((token) => {
|
|
43
68
|
let value = token.value;
|
|
44
69
|
let name = `${token.name.replace("-default", "")}`;
|
|
@@ -49,7 +74,35 @@ StyleDictionary.registerFormat({
|
|
|
49
74
|
})
|
|
50
75
|
.join(`\n`);
|
|
51
76
|
|
|
52
|
-
|
|
77
|
+
const nonColor = dictionary.allTokens
|
|
78
|
+
.filter((token) => {
|
|
79
|
+
let isColor = true;
|
|
80
|
+
nonColorTokens.forEach((t) => {
|
|
81
|
+
if (token.name.includes(t)) {
|
|
82
|
+
isColor = false;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
if (token.name.includes("font-family")) return false;
|
|
86
|
+
return !isColor;
|
|
87
|
+
})
|
|
88
|
+
.map((token) => {
|
|
89
|
+
let value = token.value;
|
|
90
|
+
let name = `${token.name.replace("-default", "")}`;
|
|
91
|
+
return ` ${name}: ${value},`;
|
|
92
|
+
})
|
|
93
|
+
.join(`\n`);
|
|
94
|
+
|
|
95
|
+
return [
|
|
96
|
+
`$light: (`,
|
|
97
|
+
light,
|
|
98
|
+
`);`,
|
|
99
|
+
`$dark: (`,
|
|
100
|
+
dark,
|
|
101
|
+
`);`,
|
|
102
|
+
`$nonColor: (`,
|
|
103
|
+
nonColor,
|
|
104
|
+
`);`,
|
|
105
|
+
].join(`\n`);
|
|
53
106
|
},
|
|
54
107
|
});
|
|
55
108
|
|
package/package.json
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/hammer-token",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/web/index.js",
|
|
6
6
|
"types": "build/web/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
8
|
"hammer-token": "./src/utils/copy-css-utils-cli.js"
|
|
9
9
|
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "node ./config.js",
|
|
12
|
-
"dev": "pnpm build && chokidar \"./src\" -c \"pnpm build\"",
|
|
13
|
-
"clean": "rimraf build .turbo",
|
|
14
|
-
"lint": "eslint",
|
|
15
|
-
"nuke": "pnpm clean && rimraf node_modules"
|
|
16
|
-
},
|
|
17
10
|
"optionalDependencies": {
|
|
18
11
|
"commander": "^12.1.0"
|
|
19
12
|
},
|
|
@@ -21,5 +14,11 @@
|
|
|
21
14
|
"fs-extra": "^11.2.0",
|
|
22
15
|
"style-dictionary": "^3"
|
|
23
16
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "node ./config.js",
|
|
19
|
+
"dev": "pnpm build && chokidar \"./src\" -c \"pnpm build\"",
|
|
20
|
+
"clean": "rimraf build .turbo",
|
|
21
|
+
"lint": "eslint",
|
|
22
|
+
"nuke": "pnpm clean && rimraf node_modules"
|
|
23
|
+
}
|
|
24
|
+
}
|
package/.turbo/turbo-lint.log
DELETED