@dialpad/dialtone-tokens 1.36.3 → 1.36.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.
Files changed (66) hide show
  1. package/README.md +1 -1
  2. package/dist/css/tokens-base-dark.css +0 -5
  3. package/dist/css/tokens-base-light.css +0 -5
  4. package/dist/css/tokens-dp-dark.css +795 -805
  5. package/dist/css/tokens-dp-light.css +795 -805
  6. package/dist/css/tokens-expressive-dark.css +795 -805
  7. package/dist/css/tokens-expressive-light.css +795 -805
  8. package/dist/css/tokens-expressive-sm-dark.css +795 -805
  9. package/dist/css/tokens-expressive-sm-light.css +795 -805
  10. package/dist/css/tokens-tmo-dark.css +780 -790
  11. package/dist/css/tokens-tmo-light.css +780 -790
  12. package/dist/doc.json +7655 -7655
  13. package/dist/postcss/rem-to-px.cjs +1 -1
  14. package/dist/postcss/rem-to-px.js +7 -12
  15. package/dist/postcss/root-to-host.cjs +1 -0
  16. package/dist/postcss/root-to-host.js +12 -0
  17. package/dist/themes/chunks/{tokens-base-dark-D9QWQ06G.js → tokens-base-dark-DPDbA0Im.js} +1 -1
  18. package/dist/themes/chunks/{tokens-base-dark-BspLyPe6.js → tokens-base-dark-OGkvNn32.js} +1 -1
  19. package/dist/themes/chunks/{tokens-base-light-CCF-uj56.js → tokens-base-light-C0l67sjm.js} +1 -1
  20. package/dist/themes/chunks/{tokens-base-light-B2jKQq80.js → tokens-base-light-nNZ2WKLp.js} +2 -2
  21. package/dist/themes/config.cjs +1 -1
  22. package/dist/themes/config.js +9 -9
  23. package/dist/themes/dp-dark.cjs +1 -1
  24. package/dist/themes/dp-dark.js +2 -2
  25. package/dist/themes/dp-light.cjs +1 -1
  26. package/dist/themes/dp-light.js +2 -2
  27. package/dist/themes/expressive-dark.cjs +1 -1
  28. package/dist/themes/expressive-dark.js +3 -3
  29. package/dist/themes/expressive-light.cjs +1 -1
  30. package/dist/themes/expressive-light.js +3 -3
  31. package/dist/themes/expressive-sm-dark.cjs +1 -1
  32. package/dist/themes/expressive-sm-dark.js +3 -3
  33. package/dist/themes/expressive-sm-light.cjs +1 -1
  34. package/dist/themes/expressive-sm-light.js +3 -3
  35. package/dist/themes/tmo-dark.cjs +1 -1
  36. package/dist/themes/tmo-dark.js +3 -3
  37. package/dist/themes/tmo-light.cjs +1 -1
  38. package/dist/themes/tmo-light.js +3 -3
  39. package/dist/types/postcss/constants.d.cts +45 -0
  40. package/dist/types/postcss/constants.d.cts.map +1 -0
  41. package/dist/types/postcss/dialtone-tokens.d.cts +3 -0
  42. package/dist/types/postcss/dialtone-tokens.d.cts.map +1 -0
  43. package/dist/types/themes/config.d.ts +2 -0
  44. package/dist/{themes/types → types}/themes/config.d.ts.map +1 -1
  45. package/dist/{themes/types → types}/themes/dp-dark.d.ts.map +1 -1
  46. package/dist/{themes/types → types}/themes/dp-light.d.ts.map +1 -1
  47. package/dist/types/themes/expressive-dark.d.ts.map +1 -0
  48. package/dist/types/themes/expressive-light.d.ts.map +1 -0
  49. package/dist/types/themes/expressive-sm-dark.d.ts.map +1 -0
  50. package/dist/types/themes/expressive-sm-light.d.ts.map +1 -0
  51. package/dist/{themes/types → types}/themes/tmo-dark.d.ts.map +1 -1
  52. package/dist/{themes/types → types}/themes/tmo-light.d.ts.map +1 -1
  53. package/package.json +17 -7
  54. package/dist/themes/types/themes/config.d.ts +0 -2
  55. package/dist/themes/types/themes/expressive-dark.d.ts.map +0 -1
  56. package/dist/themes/types/themes/expressive-light.d.ts.map +0 -1
  57. package/dist/themes/types/themes/expressive-sm-dark.d.ts.map +0 -1
  58. package/dist/themes/types/themes/expressive-sm-light.d.ts.map +0 -1
  59. /package/dist/{themes/types → types}/themes/dp-dark.d.ts +0 -0
  60. /package/dist/{themes/types → types}/themes/dp-light.d.ts +0 -0
  61. /package/dist/{themes/types → types}/themes/expressive-dark.d.ts +0 -0
  62. /package/dist/{themes/types → types}/themes/expressive-light.d.ts +0 -0
  63. /package/dist/{themes/types → types}/themes/expressive-sm-dark.d.ts +0 -0
  64. /package/dist/{themes/types → types}/themes/expressive-sm-light.d.ts +0 -0
  65. /package/dist/{themes/types → types}/themes/tmo-dark.d.ts +0 -0
  66. /package/dist/{themes/types → types}/themes/tmo-light.d.ts +0 -0
@@ -0,0 +1,45 @@
1
+ export let HSLA_EXCLUDED_COLORS: string[];
2
+ export let IS_COLOR_REGEX: RegExp;
3
+ export let IS_THEME_COLOR_REGEX: RegExp;
4
+ export let IS_SHADOW_REGEX: RegExp;
5
+ export let IS_TYPOGRAPHY_REGEX: RegExp;
6
+ export namespace REGEX_OPTIONS {
7
+ let SHADOW_VARIABLES: string;
8
+ let TYPOGRAPHY_VARIABLES: string;
9
+ let TYPOGRAPHY_TYPE: string;
10
+ let TYPOGRAPHY_SIZES: string;
11
+ }
12
+ export let PLATFORM_FONT_SIZES: {
13
+ '100-mobile': string;
14
+ '200-mobile': string;
15
+ '300-mobile': string;
16
+ '400-mobile': string;
17
+ '500-mobile': string;
18
+ '100-tc8': string;
19
+ '200-tc8': string;
20
+ '300-tc8': string;
21
+ '400-tc8': string;
22
+ '500-tc8': string;
23
+ '100-tv': string;
24
+ '200-tv': string;
25
+ '300-tv': string;
26
+ '400-tv': string;
27
+ '500-tv': string;
28
+ };
29
+ export let Z_INDEX: {
30
+ hide: number;
31
+ base: number;
32
+ base1: number;
33
+ selected: number;
34
+ active: number;
35
+ navigation: number;
36
+ 'navigation-fixed': number;
37
+ dropdown: number;
38
+ popover: number;
39
+ tooltip: number;
40
+ drawer: number;
41
+ modal: number;
42
+ 'modal-element': number;
43
+ notification: number;
44
+ };
45
+ //# sourceMappingURL=constants.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../../postcss/constants.cjs"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _exports: import('postcss').PluginCreator<any>;
2
+ export = _exports;
3
+ //# sourceMappingURL=dialtone-tokens.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialtone-tokens.d.cts","sourceRoot":"","sources":["../../../postcss/dialtone-tokens.cjs"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export function setTheme(theme: any, rootNode?: HTMLElement): void;
2
+ //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../themes/config.js"],"names":[],"mappings":"AAIA,2CAKC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../themes/config.js"],"names":[],"mappings":"AAMA,mEAQC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dp-dark.d.ts","sourceRoot":"","sources":["../../../../themes/dp-dark.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"dp-dark.d.ts","sourceRoot":"","sources":["../../../themes/dp-dark.js"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"dp-light.d.ts","sourceRoot":"","sources":["../../../../themes/dp-light.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"dp-light.d.ts","sourceRoot":"","sources":["../../../themes/dp-light.js"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expressive-dark.d.ts","sourceRoot":"","sources":["../../../themes/expressive-dark.js"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expressive-light.d.ts","sourceRoot":"","sources":["../../../themes/expressive-light.js"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expressive-sm-dark.d.ts","sourceRoot":"","sources":["../../../themes/expressive-sm-dark.js"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expressive-sm-light.d.ts","sourceRoot":"","sources":["../../../themes/expressive-sm-light.js"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"tmo-dark.d.ts","sourceRoot":"","sources":["../../../../themes/tmo-dark.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"tmo-dark.d.ts","sourceRoot":"","sources":["../../../themes/tmo-dark.js"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"tmo-light.d.ts","sourceRoot":"","sources":["../../../../themes/tmo-light.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"tmo-light.d.ts","sourceRoot":"","sources":["../../../themes/tmo-light.js"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,11 +1,26 @@
1
1
  {
2
2
  "name": "@dialpad/dialtone-tokens",
3
- "version": "1.36.3",
3
+ "version": "1.36.5",
4
4
  "description": "Design tokens for Dialtone.",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
+ "exports": {
10
+ "./*.css": "./dist/css/*.css",
11
+ "./*.less": "./dist/less/*.less",
12
+ "./postcss/*": {
13
+ "types": "./dist/types/postcss/*.d.ts",
14
+ "import": "./dist/postcss/*.js",
15
+ "require": "./dist/postcss/*.cjs"
16
+ },
17
+ "./themes/*": {
18
+ "types": "./dist/types/themes/*.d.ts",
19
+ "import": "./dist/themes/*.js",
20
+ "require": "./dist/themes/*.cjs"
21
+ },
22
+ "./*": "./*"
23
+ },
9
24
  "license": "MIT",
10
25
  "bugs": {
11
26
  "url": "https://github.com/dialpad/dialtone-tokens/issues"
@@ -22,10 +37,7 @@
22
37
  "postcss": "8.4.39",
23
38
  "postcss-cli": "11.0.0",
24
39
  "style-dictionary": "^4.1.0",
25
- "tinycolor2": "^1.6.0",
26
- "tsx": "^4.19.0",
27
- "typescript": "^5.1.6",
28
- "vite-plugin-dts": "^4.0.3"
40
+ "tsx": "^4.19.0"
29
41
  },
30
42
  "contributors": [
31
43
  {
@@ -55,8 +67,6 @@
55
67
  }
56
68
  ],
57
69
  "scripts": {
58
- "build": "node ./build.js && vite build",
59
- "publish:external-packages": "pnpm run publish:android-package && pnpm run publish:ios-package",
60
70
  "publish:android-package": "cp ./AndroidManifest.xml dist/android && ./gradlew publishToMavenLocal -Pversion=$npm_package_version",
61
71
  "publish:ios-package": "./build-ios.js",
62
72
  "sync:tokens-to-figma": "tsx sync-scripts/sync_tokens_to_figma.ts",
@@ -1,2 +0,0 @@
1
- export function setTheme(theme: any): void;
2
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"expressive-dark.d.ts","sourceRoot":"","sources":["../../../../themes/expressive-dark.js"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"expressive-light.d.ts","sourceRoot":"","sources":["../../../../themes/expressive-light.js"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"expressive-sm-dark.d.ts","sourceRoot":"","sources":["../../../../themes/expressive-sm-dark.js"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"expressive-sm-light.d.ts","sourceRoot":"","sources":["../../../../themes/expressive-sm-light.js"],"names":[],"mappings":""}