@atlaskit/tokens 0.10.20 → 0.10.22

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 (103) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/babel-plugin/package.json +8 -1
  3. package/dist/cjs/get-token.js +1 -1
  4. package/dist/cjs/version.json +1 -1
  5. package/dist/es2019/get-token.js +1 -1
  6. package/dist/es2019/version.json +1 -1
  7. package/dist/esm/get-token.js +1 -1
  8. package/dist/esm/version.json +1 -1
  9. package/dist/types-ts4.0/artifacts/palettes-raw/legacy-palette.d.ts +41 -0
  10. package/dist/types-ts4.0/artifacts/palettes-raw/palette.d.ts +41 -0
  11. package/dist/types-ts4.0/artifacts/rename-mapping.d.ts +26 -0
  12. package/dist/types-ts4.0/artifacts/token-default-values.d.ts +302 -0
  13. package/dist/types-ts4.0/artifacts/token-names.d.ts +593 -0
  14. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-dark.d.ts +222 -0
  15. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +222 -0
  16. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-light.d.ts +174 -0
  17. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-light.d.ts +174 -0
  18. package/dist/types-ts4.0/artifacts/types-internal.d.ts +6 -0
  19. package/dist/types-ts4.0/artifacts/types.d.ts +6 -0
  20. package/dist/types-ts4.0/babel-plugin/index.d.ts +1 -0
  21. package/dist/types-ts4.0/babel-plugin/plugin.d.ts +14 -0
  22. package/dist/types-ts4.0/constants.d.ts +17 -0
  23. package/dist/types-ts4.0/entry-points/babel-plugin.d.ts +1 -0
  24. package/dist/types-ts4.0/entry-points/palettes-raw.d.ts +1 -0
  25. package/dist/types-ts4.0/entry-points/rename-mapping.d.ts +1 -0
  26. package/dist/types-ts4.0/entry-points/token-ids.d.ts +1 -0
  27. package/dist/types-ts4.0/entry-points/token-names.d.ts +2 -0
  28. package/dist/types-ts4.0/figma/synchronize-figma-tokens.d.ts +24 -0
  29. package/dist/types-ts4.0/figma/types.d.ts +40 -0
  30. package/dist/types-ts4.0/get-token.d.ts +4 -0
  31. package/dist/types-ts4.0/index.d.ts +5 -0
  32. package/dist/types-ts4.0/palettes/legacy-palette.d.ts +10 -0
  33. package/dist/types-ts4.0/palettes/palette.d.ts +5 -0
  34. package/dist/types-ts4.0/set-global-theme.d.ts +3 -0
  35. package/dist/types-ts4.0/theme-change-observer.d.ts +35 -0
  36. package/dist/types-ts4.0/tokens/atlassian-dark/color/accent.d.ts +4 -0
  37. package/dist/types-ts4.0/tokens/atlassian-dark/color/background.d.ts +4 -0
  38. package/dist/types-ts4.0/tokens/atlassian-dark/color/border.d.ts +4 -0
  39. package/dist/types-ts4.0/tokens/atlassian-dark/color/icon.d.ts +4 -0
  40. package/dist/types-ts4.0/tokens/atlassian-dark/color/interaction.d.ts +4 -0
  41. package/dist/types-ts4.0/tokens/atlassian-dark/color/skeleton.d.ts +4 -0
  42. package/dist/types-ts4.0/tokens/atlassian-dark/color/text.d.ts +4 -0
  43. package/dist/types-ts4.0/tokens/atlassian-dark/deprecated/deprecated.d.ts +4 -0
  44. package/dist/types-ts4.0/tokens/atlassian-dark/elevation/shadow.d.ts +4 -0
  45. package/dist/types-ts4.0/tokens/atlassian-dark/elevation/surface.d.ts +4 -0
  46. package/dist/types-ts4.0/tokens/atlassian-dark/opacity/opacity.d.ts +3 -0
  47. package/dist/types-ts4.0/tokens/atlassian-dark/utility/utility.d.ts +5 -0
  48. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/accent.d.ts +4 -0
  49. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/background.d.ts +4 -0
  50. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/border.d.ts +4 -0
  51. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/icon.d.ts +4 -0
  52. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/interaction.d.ts +4 -0
  53. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/skeleton.d.ts +4 -0
  54. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/text.d.ts +4 -0
  55. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/deprecated/deprecated.d.ts +4 -0
  56. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/shadow.d.ts +4 -0
  57. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/surface.d.ts +4 -0
  58. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/opacity/opacity.d.ts +3 -0
  59. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/utility/utility.d.ts +5 -0
  60. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/accent.d.ts +4 -0
  61. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/background.d.ts +4 -0
  62. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/border.d.ts +4 -0
  63. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/icon.d.ts +4 -0
  64. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/interaction.d.ts +4 -0
  65. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/skeleton.d.ts +4 -0
  66. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/text.d.ts +4 -0
  67. package/dist/types-ts4.0/tokens/atlassian-legacy-light/deprecated/deprecated.d.ts +4 -0
  68. package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/shadow.d.ts +4 -0
  69. package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/surface.d.ts +4 -0
  70. package/dist/types-ts4.0/tokens/atlassian-legacy-light/opacity/opacity.d.ts +3 -0
  71. package/dist/types-ts4.0/tokens/atlassian-legacy-light/utility/utility.d.ts +5 -0
  72. package/dist/types-ts4.0/tokens/atlassian-light/color/accent.d.ts +4 -0
  73. package/dist/types-ts4.0/tokens/atlassian-light/color/background.d.ts +4 -0
  74. package/dist/types-ts4.0/tokens/atlassian-light/color/border.d.ts +4 -0
  75. package/dist/types-ts4.0/tokens/atlassian-light/color/icon.d.ts +4 -0
  76. package/dist/types-ts4.0/tokens/atlassian-light/color/interaction.d.ts +4 -0
  77. package/dist/types-ts4.0/tokens/atlassian-light/color/skeleton.d.ts +4 -0
  78. package/dist/types-ts4.0/tokens/atlassian-light/color/text.d.ts +4 -0
  79. package/dist/types-ts4.0/tokens/atlassian-light/deprecated/deprecated.d.ts +4 -0
  80. package/dist/types-ts4.0/tokens/atlassian-light/elevation/shadow.d.ts +4 -0
  81. package/dist/types-ts4.0/tokens/atlassian-light/elevation/surface.d.ts +4 -0
  82. package/dist/types-ts4.0/tokens/atlassian-light/opacity/opacity.d.ts +3 -0
  83. package/dist/types-ts4.0/tokens/atlassian-light/utility/utility.d.ts +5 -0
  84. package/dist/types-ts4.0/tokens/default/color/accent.d.ts +4 -0
  85. package/dist/types-ts4.0/tokens/default/color/background.d.ts +4 -0
  86. package/dist/types-ts4.0/tokens/default/color/border.d.ts +4 -0
  87. package/dist/types-ts4.0/tokens/default/color/icon.d.ts +4 -0
  88. package/dist/types-ts4.0/tokens/default/color/interaction.d.ts +4 -0
  89. package/dist/types-ts4.0/tokens/default/color/skeleton.d.ts +4 -0
  90. package/dist/types-ts4.0/tokens/default/color/text.d.ts +4 -0
  91. package/dist/types-ts4.0/tokens/default/deprecated/deprecated.d.ts +4 -0
  92. package/dist/types-ts4.0/tokens/default/elevation/shadow.d.ts +4 -0
  93. package/dist/types-ts4.0/tokens/default/elevation/surface.d.ts +4 -0
  94. package/dist/types-ts4.0/tokens/default/opacity/opacity.d.ts +3 -0
  95. package/dist/types-ts4.0/tokens/default/utility/utility.d.ts +5 -0
  96. package/dist/types-ts4.0/types.d.ts +656 -0
  97. package/dist/types-ts4.0/utils/color-detection.d.ts +38 -0
  98. package/dist/types-ts4.0/utils/token-ids.d.ts +41 -0
  99. package/package.json +14 -8
  100. package/palettes-raw/package.json +8 -1
  101. package/rename-mapping/package.json +8 -1
  102. package/token-ids/package.json +8 -1
  103. package/token-names/package.json +8 -1
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/legacy-palette';
2
+ import type { ShadowTokenSchema, ValueSchema } from '../../../types';
3
+ declare const shadow: ValueSchema<ShadowTokenSchema<BaseToken>>;
4
+ export default shadow;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/legacy-palette';
2
+ import type { SurfaceTokenSchema, ValueSchema } from '../../../types';
3
+ declare const elevation: ValueSchema<SurfaceTokenSchema<BaseToken>>;
4
+ export default elevation;
@@ -0,0 +1,3 @@
1
+ import type { OpacityTokenSchema, ValueSchema } from '../../../types';
2
+ declare const opacity: ValueSchema<OpacityTokenSchema>;
3
+ export default opacity;
@@ -0,0 +1,5 @@
1
+ import type { UtilTokenSchema, ValueSchema } from '../../../types';
2
+ declare const _default: {
3
+ utility: ValueSchema<UtilTokenSchema<"transparent" | "R50" | "R75" | "R100" | "R200" | "R300" | "R400" | "R500" | "Y50" | "Y75" | "Y100" | "Y200" | "Y300" | "Y400" | "Y500" | "G50" | "G75" | "G100" | "G200" | "G300" | "G400" | "G500" | "B50" | "B75" | "B100" | "B200" | "B300" | "B400" | "B500" | "P50" | "P75" | "P100" | "P200" | "P300" | "P400" | "P500" | "T50" | "T75" | "T100" | "T200" | "T300" | "T400" | "T500" | "N0" | "N10" | "N20" | "N30" | "N40" | "N50" | "N60" | "N70" | "N80" | "N90" | "N100" | "N200" | "N300" | "N400" | "N500" | "N600" | "N700" | "N800" | "N900" | "N10A" | "N20A" | "N30A" | "N40A" | "N50A" | "N60A" | "N70A" | "N80A" | "N90A" | "N100A" | "N200A" | "N300A" | "N400A" | "N500A" | "N600A" | "N700A" | "N800A" | "DN900" | "DN800" | "DN700" | "DN600" | "DN500" | "DN400" | "DN300" | "DN200" | "DN100" | "DN90" | "DN80" | "DN70" | "DN60" | "DN50" | "DN40" | "DN30" | "DN20" | "DN10" | "DN0" | "DN800A" | "DN700A" | "DN600A" | "DN500A" | "DN400A" | "DN300A" | "DN200A" | "DN100A" | "DN90A" | "DN80A" | "DN70A" | "DN60A" | "DN50A" | "DN40A" | "DN30A" | "DN20A" | "DN10A">>;
4
+ };
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AccentColorTokenSchema, ValueSchema } from '../../../types';
3
+ declare const color: ValueSchema<AccentColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { BackgroundColorTokenSchema, ValueSchema } from '../../../types';
3
+ declare const color: ValueSchema<BackgroundColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { BorderColorTokenSchema, ValueSchema } from '../../../types';
3
+ declare const color: ValueSchema<BorderColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { IconColorTokenSchema, ValueSchema } from '../../../types';
3
+ declare const color: ValueSchema<IconColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { InteractionColorTokenSchema, ValueSchema } from '../../../types';
3
+ declare const color: ValueSchema<InteractionColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { SkeletonColorTokenSchema, ValueSchema } from '../../../types';
3
+ declare const color: ValueSchema<SkeletonColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { TextColorTokenSchema, ValueSchema } from '../../../types';
3
+ declare const color: ValueSchema<TextColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { DeprecatedTokenSchema, ValueSchema } from '../../../types';
3
+ declare const color: ValueSchema<DeprecatedTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { ShadowTokenSchema, ValueSchema } from '../../../types';
3
+ declare const shadow: ValueSchema<ShadowTokenSchema<BaseToken>>;
4
+ export default shadow;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { SurfaceTokenSchema, ValueSchema } from '../../../types';
3
+ declare const elevation: ValueSchema<SurfaceTokenSchema<BaseToken>>;
4
+ export default elevation;
@@ -0,0 +1,3 @@
1
+ import type { OpacityTokenSchema, ValueSchema } from '../../../types';
2
+ declare const opacity: ValueSchema<OpacityTokenSchema>;
3
+ export default opacity;
@@ -0,0 +1,5 @@
1
+ import type { UtilTokenSchema, ValueSchema } from '../../../types';
2
+ declare const _default: {
3
+ utility: ValueSchema<UtilTokenSchema<"R100" | "R200" | "R300" | "R400" | "R500" | "Y100" | "Y200" | "Y300" | "Y400" | "Y500" | "G100" | "G200" | "G300" | "G400" | "G500" | "B100" | "B200" | "B300" | "B400" | "B500" | "P100" | "P200" | "P300" | "P400" | "P500" | "T100" | "T200" | "T300" | "T400" | "T500" | "N0" | "N100" | "N200" | "N300" | "N400" | "N500" | "N600" | "N700" | "N800" | "N900" | "N100A" | "N200A" | "N300A" | "N400A" | "N500A" | "DN900" | "DN800" | "DN700" | "DN600" | "DN500" | "DN400" | "DN300" | "DN200" | "DN100" | "DN0" | "DN500A" | "DN400A" | "DN300A" | "DN200A" | "DN100A" | "B600" | "B700" | "B800" | "B900" | "B1000" | "R600" | "R700" | "R800" | "R900" | "R1000" | "Y600" | "Y700" | "Y800" | "Y900" | "Y1000" | "G600" | "G700" | "G800" | "G900" | "G1000" | "P600" | "P700" | "P800" | "P900" | "P1000" | "T600" | "T700" | "T800" | "T900" | "T1000" | "O100" | "O200" | "O300" | "O400" | "O500" | "O600" | "O700" | "O800" | "O900" | "O1000" | "M100" | "M200" | "M300" | "M400" | "M500" | "M600" | "M700" | "M800" | "M900" | "M1000" | "DN-100" | "DN-100A" | "DN1000" | "DN1100" | "N1000" | "N1100">>;
4
+ };
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AccentColorTokenSchema, AttributeSchema } from '../../../types';
3
+ declare const color: AttributeSchema<AccentColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AttributeSchema, BackgroundColorTokenSchema } from '../../../types';
3
+ declare const color: AttributeSchema<BackgroundColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AttributeSchema, BorderColorTokenSchema } from '../../../types';
3
+ declare const color: AttributeSchema<BorderColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AttributeSchema, IconColorTokenSchema } from '../../../types';
3
+ declare const color: AttributeSchema<IconColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AttributeSchema, InteractionColorTokenSchema } from '../../../types';
3
+ declare const color: AttributeSchema<InteractionColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AttributeSchema, SkeletonColorTokenSchema } from '../../../types';
3
+ declare const color: AttributeSchema<SkeletonColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AttributeSchema, TextColorTokenSchema } from '../../../types';
3
+ declare const color: AttributeSchema<TextColorTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AttributeSchema, DeprecatedTokenSchema } from '../../../types';
3
+ declare const color: AttributeSchema<DeprecatedTokenSchema<BaseToken>>;
4
+ export default color;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AttributeSchema, ShadowTokenSchema } from '../../../types';
3
+ declare const shadow: AttributeSchema<ShadowTokenSchema<BaseToken>>;
4
+ export default shadow;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/palette';
2
+ import type { AttributeSchema, SurfaceTokenSchema } from '../../../types';
3
+ declare const shadow: AttributeSchema<SurfaceTokenSchema<BaseToken>>;
4
+ export default shadow;
@@ -0,0 +1,3 @@
1
+ import type { AttributeSchema, OpacityTokenSchema } from '../../../types';
2
+ declare const opacity: AttributeSchema<OpacityTokenSchema>;
3
+ export default opacity;
@@ -0,0 +1,5 @@
1
+ import type { AttributeSchema, UtilTokenSchema } from '../../../types';
2
+ declare const _default: {
3
+ utility: AttributeSchema<UtilTokenSchema<"R100" | "R200" | "R300" | "R400" | "R500" | "Y100" | "Y200" | "Y300" | "Y400" | "Y500" | "G100" | "G200" | "G300" | "G400" | "G500" | "B100" | "B200" | "B300" | "B400" | "B500" | "P100" | "P200" | "P300" | "P400" | "P500" | "T100" | "T200" | "T300" | "T400" | "T500" | "N0" | "N100" | "N200" | "N300" | "N400" | "N500" | "N600" | "N700" | "N800" | "N900" | "N100A" | "N200A" | "N300A" | "N400A" | "N500A" | "DN900" | "DN800" | "DN700" | "DN600" | "DN500" | "DN400" | "DN300" | "DN200" | "DN100" | "DN0" | "DN500A" | "DN400A" | "DN300A" | "DN200A" | "DN100A" | "B600" | "B700" | "B800" | "B900" | "B1000" | "R600" | "R700" | "R800" | "R900" | "R1000" | "Y600" | "Y700" | "Y800" | "Y900" | "Y1000" | "G600" | "G700" | "G800" | "G900" | "G1000" | "P600" | "P700" | "P800" | "P900" | "P1000" | "T600" | "T700" | "T800" | "T900" | "T1000" | "O100" | "O200" | "O300" | "O400" | "O500" | "O600" | "O700" | "O800" | "O900" | "O1000" | "M100" | "M200" | "M300" | "M400" | "M500" | "M600" | "M700" | "M800" | "M900" | "M1000" | "DN-100" | "DN-100A" | "DN1000" | "DN1100" | "N1000" | "N1100">>;
4
+ };
5
+ export default _default;