@servicetitan/hammer-token 0.0.0-themeprovider-refactor.1 → 0.0.0-themeprovider-refactor.3

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
@@ -2,12 +2,23 @@
2
2
 
3
3
  #### 📝 Dependencies
4
4
 
5
+ - revert unintended change to version ([@tounsoo](https://github.com/tounsoo))
6
+ - Merge remote-tracking branch 'origin' into themeprovider-refactor ([@tounsoo](https://github.com/tounsoo))
7
+ - revert changelog changes ([@tounsoo](https://github.com/tounsoo))
8
+ - Merge branch 'themeprovider-refactor' of github.com:servicetitan/blacksmith into themeprovider-refactor ([@tounsoo](https://github.com/tounsoo))
9
+ - Publish (github-actions@github.com)
10
+ - Update CHANGELOG.md \[skip ci\] (github-actions@github.com)
5
11
  - cleanup, merging dictionary formatters for variable creation to one ([@tounsoo](https://github.com/tounsoo))
6
12
  - changing css to be module css ([@tounsoo](https://github.com/tounsoo))
7
13
 
8
- #### Authors: 1
14
+ #### 🏠 Internal
15
+
16
+ - ANV-2021: Add sr-only class to css-utils [#773](https://github.com/servicetitan/hammer/pull/773) ([@tounsoo](https://github.com/tounsoo))
17
+
18
+ #### Authors: 2
9
19
 
10
20
  - Ben Ho ([@tounsoo](https://github.com/tounsoo))
21
+ - github-actions (github-actions@github.com)
11
22
 
12
23
  ---
13
24
 
@@ -319,4 +319,5 @@
319
319
  .p-inline-start-8 {padding-inline-start: var(--size-8, 2rem)}
320
320
  .p-inline-start-9 {padding-inline-start: var(--size-9, 2.25rem)}
321
321
  .p-inline-start-half {padding-inline-start: var(--size-half, 0.125rem)}
322
- .p-inline-start-quarter {padding-inline-start: var(--size-quarter, 0.0625rem)}
322
+ .p-inline-start-quarter {padding-inline-start: var(--size-quarter, 0.0625rem)}
323
+ .sr-only {border: 0; clip: rect(0, 0, 0, 0); height: 1px; margin: -1px; overflow: hidden; padding-block: 0; padding-inline: 0; position: absolute; white-space: nowrap; width: 1px;}
package/config.js CHANGED
@@ -56,24 +56,6 @@ StyleDictionary.registerFormat({
56
56
  },
57
57
  });
58
58
 
59
- // StyleDictionary.registerFormat({
60
- // name: `custom/semantic-dark`,
61
- // formatter: function ({ dictionary }) {
62
- // const variables = dictionary.allTokens
63
- // .filter((token) => !token.name.includes("font-family"))
64
- // .map((token) => {
65
- // let value = token.value;
66
- // let name = `${token.name.replace("-default", "")}`;
67
- // if (token.attributes.appearance) {
68
- // return ` ${name}: ${token.attributes.appearance.dark.value},`;
69
- // }
70
- // return ` ${name}: ${value},`;
71
- // })
72
- // .join(`\n`);
73
- // return [`$variables: (`, variables, `);`].join(`\n`);
74
- // },
75
- // });
76
-
77
59
  StyleDictionary.registerFormat({
78
60
  name: `custom/es6`,
79
61
  formatter: function ({ dictionary }) {
@@ -133,7 +115,7 @@ StyleDictionary.registerFormat({
133
115
  StyleDictionary.registerFormat({
134
116
  name: `custom/CSSUtils/All`,
135
117
  formatter: function ({ dictionary }) {
136
- return dictionary.allTokens
118
+ const allTokens = dictionary.allTokens
137
119
  .map((token) => {
138
120
  let value = getVarValue(dictionary, token);
139
121
  let name = `${token.name.replace("Default", "")}`;
@@ -164,6 +146,13 @@ StyleDictionary.registerFormat({
164
146
  .map((t) => `${t}`)
165
147
  .sort((a, b) => a.localeCompare(b))
166
148
  .join(`\n`);
149
+
150
+ // Manually adding .sr-only
151
+ const withSr = allTokens.concat(
152
+ "\n",
153
+ ".sr-only {border: 0; clip: rect(0, 0, 0, 0); height: 1px; margin: -1px; overflow: hidden; padding-block: 0; padding-inline: 0; position: absolute; white-space: nowrap; width: 1px;}",
154
+ );
155
+ return withSr;
167
156
  },
168
157
  });
169
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/hammer-token",
3
- "version": "0.0.0-themeprovider-refactor.1",
3
+ "version": "0.0.0-themeprovider-refactor.3",
4
4
  "description": "",
5
5
  "main": "build/web/index.js",
6
6
  "types": "build/web/index.d.ts",
@@ -21,5 +21,5 @@
21
21
  "fs-extra": "^11.2.0",
22
22
  "style-dictionary": "^3"
23
23
  },
24
- "gitHead": "373bb117186c3e3a3c41e44bcabd26aaf27fc414"
24
+ "gitHead": "eae0df2e87b2d3345fa8ca60c693301ae1a0e333"
25
25
  }