@knapsack/design-token-utils 4.69.12--canary.a4ca68f.0 → 4.69.12--canary.4820.6d71796.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  import { TokenData } from '@knapsack/types';
2
- export declare const cssVarName: (name: string) => string;
2
+ import { cssVarName } from '@knapsack/utils';
3
+ export { cssVarName };
3
4
  /**
4
5
  * How to resolve the actual value of a token.
5
6
  * @param token - Processed TokenData object
@@ -1 +1 @@
1
- {"version":3,"file":"web-asset-converters.d.ts","sourceRoot":"","sources":["../../../../src/converters/asset-converters/web/web-asset-converters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA2B5C,eAAO,MAAM,UAAU,SAAU,MAAM,WAA8B,CAAC;AAYtE;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,GAC9B,MAAM,GAAG,MAAM,GAAG,OAAO,CAqB3B;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,eACpB,SAAS,EAAE,aACZ,OAAO,KACjB,MAYF,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAQhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,eAAgB,SAAS,EAAE,KAAG,MA+BnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAahE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAShE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,eAAgB,SAAS,EAAE,WAQnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,eACnB,SAAS,EAAE,KACtB;IACD,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;CAuBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,eAAgB,SAAS,EAAE,KAAG,MAQ/D,CAAC"}
1
+ {"version":3,"file":"web-asset-converters.d.ts","sourceRoot":"","sources":["../../../../src/converters/asset-converters/web/web-asset-converters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAa,UAAU,EAAgB,MAAM,iBAAiB,CAAC;AAUtE,OAAO,EAAE,UAAU,EAAE,CAAC;AAqBtB;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,GAC9B,MAAM,GAAG,MAAM,GAAG,OAAO,CAqB3B;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,eACpB,SAAS,EAAE,aACZ,OAAO,KACjB,MAYF,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAQhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,eAAgB,SAAS,EAAE,KAAG,MA+BnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAahE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAgB,SAAS,EAAE,KAAG,MAShE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,eAAgB,SAAS,EAAE,WAQnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,eACnB,SAAS,EAAE,KACtB;IACD,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;CAuBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,eAAgB,SAAS,EAAE,KAAG,MAQ/D,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import loSet from 'lodash/setWith.js';
2
- import { camelCase, kebabCase } from '@knapsack/utils';
2
+ import { camelCase, cssVarName, cssKebabCase } from '@knapsack/utils';
3
3
  import { formatBorderTokenValue, formatCubicBezierValue, formatShadowTokenValue, formatTransitionValue, sortTokenData, } from './web-asset-converter-utils.js';
4
+ export { cssVarName };
4
5
  /**
5
6
  * Replace anything between { and } characters, returns val W/O the brackets.
6
7
  * Ensure all processing uses the same logic to access { } values in strings.
@@ -9,14 +10,6 @@ import { formatBorderTokenValue, formatCubicBezierValue, formatShadowTokenValue,
9
10
  * val.replace(refRegex, (match, group) => scssVarName(group)
10
11
  */
11
12
  const refRegex = /{([^}]*)}/g;
12
- /**
13
- * Lower and split on dots, that's it. Do NOT split standalone strings on
14
- * numbers, caps, etc. Note that we split/join specifically to process each
15
- * segment of a token name, ie if `color.primary`, we process 'color' and 'primary'
16
- * individually
17
- */
18
- const cssKebabCase = (str) => str.split('.').map(kebabCase).join('-');
19
- export const cssVarName = (name) => `--${cssKebabCase(name)}`;
20
13
  /**
21
14
  * Ensure quotes are handled correctly in JS/JSON
22
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"web-asset-converters.js","sourceRoot":"","sources":["../../../../src/converters/asset-converters/web/web-asset-converters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,aAAa,GACd,MAAM,gCAAgC,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,YAAY,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI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,IAAI,CAAC,IAAI,CAAC;QACjC,SAAS,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;KACjC,CAAC;AACJ,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,UAAuB,EAAU,EAAE;IACvE,MAAM,YAAY,GAAa,aAAa,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACrE,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACjC,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO,GAAG,IAAI,KAAK,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,oBAAoB,EAAE,GAAG,YAAY,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAClE,CAAC,CAAC"}
1
+ {"version":3,"file":"web-asset-converters.js","sourceRoot":"","sources":["../../../../src/converters/asset-converters/web/web-asset-converters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,aAAa,GACd,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,YAAY,CAAC;AAE9B;;GAEG;AACH,SAAS,UAAU,CACjB,KAAgC;IAEhC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AAClD,CAAC;AAED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AAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO,GAAG,IAAI,KAAK,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,oBAAoB,EAAE,GAAG,YAAY,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAClE,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ks-figma-vars-to-spec.d.ts","sourceRoot":"","sources":["../../../src/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAgC,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EACL,iBAAiB,EAMlB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AA2E1F;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,WAAW,EAAE,iBAAiB,CAAC;IAC/B,gBAAgB,EAAE,aAAa,CAAC;CACjC,GAAG;IACF,QAAQ,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IACzC,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,gBAAgB,CAAC;CACxB,CA6HA"}
1
+ {"version":3,"file":"ks-figma-vars-to-spec.d.ts","sourceRoot":"","sources":["../../../src/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAgC,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EACL,iBAAiB,EAMlB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AA2E1F;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,WAAW,EAAE,iBAAiB,CAAC;IAC/B,gBAAgB,EAAE,aAAa,CAAC;CACjC,GAAG;IACF,QAAQ,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IACzC,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,gBAAgB,CAAC;CACxB,CA4HA"}
@@ -171,7 +171,7 @@ export function convertKsFigmaVarsToSpec({ ksFigmaVars, currentTokensSrc, }) {
171
171
  return {
172
172
  src: tsu.src,
173
173
  data: tsu.data,
174
- warnings, // @TODO: We are not actually setting any warnings yet
174
+ warnings,
175
175
  };
176
176
  }
177
177
  //# sourceMappingURL=ks-figma-vars-to-spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ks-figma-vars-to-spec.js","sourceRoot":"","sources":["../../../src/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC,OAAO,EAKL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAE/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD,SAAS,eAAe,CAAC,IAAyB;IAChD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,WAAW,CAAC;QACrB,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC;QAClB,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,gBAAgB,GAAU,IAAI,CAAC;YACrC,OAAO,gBAAgB,CAAC;QAC1B,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,EAC/B,KAAK,EACL,OAAO,GAIR;IACC,QA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C,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;iBAC/D,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,QAAQ,EAAE,sDAAsD;KACjE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ks-figma-vars-to-spec.js","sourceRoot":"","sources":["../../../src/converters/ks-figma-vars-to-spec/ks-figma-vars-to-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC,OAAO,EAKL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAE/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD,SAAS,eAAe,CAAC,IAAyB;IAChD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,WAAW,CAAC;QACrB,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC;QAClB,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,gBAAgB,GAAU,IAAI,CAAC;YACrC,OAAO,gBAAgB,CAAC;QAC1B,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,EAC/B,KAAK,EACL,OAAO,GAIR;IACC,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,SAAS,CAAC,CAAC,CAAC;YACf,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;gBAC/B,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;YACtC,CAAC;YACD,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SA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AAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/design-token-utils",
3
3
  "description": "",
4
- "version": "4.69.12--canary.a4ca68f.0",
4
+ "version": "4.69.12--canary.4820.6d71796.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -26,23 +26,23 @@
26
26
  "test": "time npm run ava"
27
27
  },
28
28
  "dependencies": {
29
- "@knapsack/color-utils": "4.69.12--canary.a4ca68f.0",
30
- "@knapsack/file-utils": "4.69.12--canary.a4ca68f.0",
31
- "@knapsack/types": "4.69.12--canary.a4ca68f.0",
32
- "@knapsack/utils": "4.69.12--canary.a4ca68f.0",
29
+ "@knapsack/color-utils": "4.69.12--canary.4820.6d71796.0",
30
+ "@knapsack/file-utils": "4.69.12--canary.4820.6d71796.0",
31
+ "@knapsack/types": "4.69.12--canary.4820.6d71796.0",
32
+ "@knapsack/utils": "4.69.12--canary.4820.6d71796.0",
33
33
  "flat": "^5.0.2",
34
34
  "immer": "^10.1.1",
35
35
  "lodash": "^4.17.21",
36
36
  "superstruct": "^0.16.7"
37
37
  },
38
38
  "devDependencies": {
39
- "@knapsack/eslint-config-starter": "4.69.12--canary.a4ca68f.0",
40
- "@knapsack/test-ava": "4.69.12--canary.a4ca68f.0",
41
- "@knapsack/typescript-config-starter": "4.69.12--canary.a4ca68f.0",
39
+ "@knapsack/eslint-config-starter": "4.69.12--canary.4820.6d71796.0",
40
+ "@knapsack/test-ava": "4.69.12--canary.4820.6d71796.0",
41
+ "@knapsack/typescript-config-starter": "4.69.12--canary.4820.6d71796.0",
42
42
  "@types/flat": "^5.0.5",
43
43
  "@types/fs-extra": "^11.0.4",
44
44
  "@types/lodash": "^4.17.5",
45
- "@types/node": "^20.16.6",
45
+ "@types/node": "^20.16.5",
46
46
  "@types/prettier": "^2.7.3",
47
47
  "ava": "^6.1.3",
48
48
  "eslint": "^8.57.0",
@@ -61,5 +61,5 @@
61
61
  "directory": "libs/design-token-utils",
62
62
  "type": "git"
63
63
  },
64
- "gitHead": "a4ca68fa56ea750ef33eced2d2f273c295e7d705"
64
+ "gitHead": "6d71796353d923002ede27ea7ad9a18ce1959df1"
65
65
  }