@skbkontur/colors 2.0.0-alpha.3 → 2.0.0-alpha.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 (130) hide show
  1. package/README.md +3 -3
  2. package/colors.d.ts +319 -0
  3. package/colors.js +319 -0
  4. package/colors.less +319 -0
  5. package/colors.scss +319 -0
  6. package/lib/consts/default-swatch.d.ts +108 -0
  7. package/lib/consts/default-swatch.js +108 -0
  8. package/{dist/esm/consts/default-swatch.js → lib/consts/default-swatch.ts} +11 -7
  9. package/lib/consts/params/abney-correction.js +1102 -0
  10. package/{dist/esm/consts/params/abney-correction.js → lib/consts/params/abney-correction.ts} +3 -1
  11. package/lib/consts/params/chroma-params.js +102 -0
  12. package/{dist/esm/consts/params/chroma-params.js → lib/consts/params/chroma-params.ts} +3 -1
  13. package/lib/consts/params/interactions.ts +9 -0
  14. package/lib/consts/params/logo-lightness.ts +1 -0
  15. package/{dist/esm → lib}/consts/params/promo-hue-shift.d.ts +1 -1
  16. package/lib/consts/params/promo-hue-shift.js +11 -0
  17. package/{dist/esm/consts/params/promo-hue-shift.js → lib/consts/params/promo-hue-shift.ts} +1 -1
  18. package/{dist/esm → lib}/consts/params/warning-hue-patch.d.ts +1 -1
  19. package/lib/consts/params/warning-hue-patch.js +22 -0
  20. package/{dist/esm/consts/params/warning-hue-patch.js → lib/consts/params/warning-hue-patch.ts} +1 -1
  21. package/lib/get-colors-base.d.ts +11 -0
  22. package/lib/get-colors-base.js +78 -0
  23. package/{dist/esm/get-colors-base.js → lib/get-colors-base.ts} +44 -26
  24. package/lib/get-colors-default-tokens.d.ts +645 -0
  25. package/lib/get-colors-default-tokens.js +647 -0
  26. package/lib/get-colors-default-tokens.ts +646 -0
  27. package/lib/get-colors.d.ts +39 -0
  28. package/lib/get-colors.js +24 -0
  29. package/lib/get-colors.ts +59 -0
  30. package/{dist/esm → lib}/helpers/get-interactions.d.ts +2 -2
  31. package/lib/helpers/get-interactions.js +35 -0
  32. package/lib/helpers/get-interactions.ts +64 -0
  33. package/{dist/esm → lib}/helpers/get-logo.d.ts +2 -2
  34. package/lib/helpers/get-logo.js +25 -0
  35. package/lib/helpers/get-logo.ts +40 -0
  36. package/lib/helpers/get-palette.d.ts +51 -0
  37. package/lib/helpers/get-palette.js +204 -0
  38. package/lib/helpers/get-palette.ts +261 -0
  39. package/lib/helpers/get-promo.d.ts +6 -0
  40. package/lib/helpers/get-promo.js +47 -0
  41. package/lib/helpers/get-promo.ts +55 -0
  42. package/lib/types/tokens-base-generator.d.ts +43 -0
  43. package/{dist/esm/types/tokens-base-generator.d.ts → lib/types/tokens-base-generator.ts} +10 -15
  44. package/lib/types/tokens-base.d.ts +55 -0
  45. package/{dist/esm/types/tokens-base.d.ts → lib/types/tokens-base.ts} +7 -2
  46. package/lib/types/tokens.d.ts +12 -0
  47. package/{dist/esm/types/tokens.d.ts → lib/types/tokens.ts} +6 -0
  48. package/lib/utils/convert-color.js +144 -0
  49. package/lib/utils/convert-color.ts +163 -0
  50. package/lib/utils/format-variable.js +6 -0
  51. package/lib/utils/format-variable.ts +7 -0
  52. package/package.json +66 -7
  53. package/{dist/tokens → tokens}/brand-blue-deep_accent-brand.css +2 -2
  54. package/{dist/tokens → tokens}/brand-blue-deep_accent-gray.css +2 -2
  55. package/{dist/tokens → tokens}/brand-blue_accent-brand.css +2 -2
  56. package/{dist/tokens → tokens}/brand-blue_accent-gray.css +2 -2
  57. package/{dist/tokens → tokens}/brand-green_accent-brand.css +2 -2
  58. package/{dist/tokens → tokens}/brand-green_accent-gray.css +2 -2
  59. package/{dist/tokens → tokens}/brand-mint_accent-brand.css +2 -2
  60. package/{dist/tokens → tokens}/brand-mint_accent-gray.css +2 -2
  61. package/{dist/tokens → tokens}/brand-orange_accent-gray.css +2 -2
  62. package/{dist/tokens → tokens}/brand-purple_accent-brand.css +2 -2
  63. package/{dist/tokens → tokens}/brand-purple_accent-gray.css +2 -2
  64. package/{dist/tokens → tokens}/brand-red_accent-gray.css +2 -2
  65. package/{dist/tokens → tokens}/brand-violet_accent-brand.css +2 -2
  66. package/{dist/tokens → tokens}/brand-violet_accent-gray.css +2 -2
  67. package/{dist/tokens-mobile → tokens-mobile}/brand-blue-deep_accent-brand.json +117 -117
  68. package/{dist/tokens-mobile → tokens-mobile}/brand-blue-deep_accent-gray.json +135 -135
  69. package/{dist/tokens-mobile → tokens-mobile}/brand-blue_accent-brand.json +117 -117
  70. package/{dist/tokens-mobile → tokens-mobile}/brand-blue_accent-gray.json +135 -135
  71. package/{dist/tokens-mobile → tokens-mobile}/brand-green_accent-brand.json +117 -117
  72. package/{dist/tokens-mobile → tokens-mobile}/brand-green_accent-gray.json +135 -135
  73. package/{dist/tokens-mobile → tokens-mobile}/brand-mint_accent-brand.json +117 -117
  74. package/{dist/tokens-mobile → tokens-mobile}/brand-mint_accent-gray.json +135 -135
  75. package/{dist/tokens-mobile → tokens-mobile}/brand-orange_accent-gray.json +135 -135
  76. package/{dist/tokens-mobile → tokens-mobile}/brand-purple_accent-brand.json +117 -117
  77. package/{dist/tokens-mobile → tokens-mobile}/brand-purple_accent-gray.json +135 -135
  78. package/{dist/tokens-mobile → tokens-mobile}/brand-red_accent-gray.json +135 -135
  79. package/{dist/tokens-mobile → tokens-mobile}/brand-violet_accent-brand.json +117 -117
  80. package/{dist/tokens-mobile → tokens-mobile}/brand-violet_accent-gray.json +135 -135
  81. package/CHANGELOG.md +0 -84
  82. package/dist/colors.default-dark.js +0 -332
  83. package/dist/colors.default-light.js +0 -336
  84. package/dist/colors.less +0 -319
  85. package/dist/colors.scss +0 -319
  86. package/dist/esm/consts/default-swatch.d.ts +0 -109
  87. package/dist/esm/get-colors-base.d.ts +0 -12
  88. package/dist/esm/get-colors-default-tokens.d.ts +0 -645
  89. package/dist/esm/get-colors-default-tokens.js +0 -992
  90. package/dist/esm/get-colors.d.ts +0 -13
  91. package/dist/esm/get-colors.js +0 -14
  92. package/dist/esm/get-default-tokens.d.ts +0 -645
  93. package/dist/esm/get-default-tokens.js +0 -992
  94. package/dist/esm/helpers/get-interactions.js +0 -49
  95. package/dist/esm/helpers/get-logo.js +0 -28
  96. package/dist/esm/helpers/get-palette.d.ts +0 -76
  97. package/dist/esm/helpers/get-palette.js +0 -232
  98. package/dist/esm/helpers/get-promo.d.ts +0 -12
  99. package/dist/esm/helpers/get-promo.js +0 -51
  100. package/dist/esm/utils/convert-color.js +0 -133
  101. package/dist/esm/utils/format-variable.js +0 -10
  102. package/dist/tokens-js/brand-blue-deep_accent-brand.js +0 -644
  103. package/dist/tokens-js/brand-blue-deep_accent-gray.js +0 -644
  104. package/dist/tokens-js/brand-blue_accent-brand.js +0 -644
  105. package/dist/tokens-js/brand-blue_accent-gray.js +0 -644
  106. package/dist/tokens-js/brand-green_accent-brand.js +0 -644
  107. package/dist/tokens-js/brand-green_accent-gray.js +0 -644
  108. package/dist/tokens-js/brand-mint_accent-brand.js +0 -644
  109. package/dist/tokens-js/brand-mint_accent-gray.js +0 -644
  110. package/dist/tokens-js/brand-orange_accent-gray.js +0 -644
  111. package/dist/tokens-js/brand-purple_accent-brand.js +0 -644
  112. package/dist/tokens-js/brand-purple_accent-gray.js +0 -644
  113. package/dist/tokens-js/brand-red_accent-gray.js +0 -644
  114. package/dist/tokens-js/brand-violet_accent-brand.js +0 -644
  115. package/dist/tokens-js/brand-violet_accent-gray.js +0 -644
  116. package/scripts/babel-register.js +0 -4
  117. package/scripts/tokens-base.json +0 -3499
  118. package/scripts/tokens.json +0 -710
  119. /package/{dist/colors.js → colors.ts} +0 -0
  120. /package/{dist/esm → lib}/consts/params/abney-correction.d.ts +0 -0
  121. /package/{dist/esm → lib}/consts/params/chroma-params.d.ts +0 -0
  122. /package/{dist/esm → lib}/consts/params/interactions.d.ts +0 -0
  123. /package/{dist/esm → lib}/consts/params/interactions.js +0 -0
  124. /package/{dist/esm → lib}/consts/params/logo-lightness.d.ts +0 -0
  125. /package/{dist/esm → lib}/consts/params/logo-lightness.js +0 -0
  126. /package/{dist/esm → lib}/types/tokens-base-generator.js +0 -0
  127. /package/{dist/esm → lib}/types/tokens-base.js +0 -0
  128. /package/{dist/esm → lib}/types/tokens.js +0 -0
  129. /package/{dist/esm → lib}/utils/convert-color.d.ts +0 -0
  130. /package/{dist/esm → lib}/utils/format-variable.d.ts +0 -0
@@ -1,109 +0,0 @@
1
- export declare const brand: {
2
- red: string;
3
- orange: string;
4
- green: string;
5
- mint: string;
6
- blue: string;
7
- blueDeep: string;
8
- violet: string;
9
- purple: string;
10
- };
11
- export declare const system: {
12
- warning: string;
13
- error: string;
14
- success: string;
15
- accent: string;
16
- };
17
- export declare const customizable: {
18
- red: string;
19
- orange: string;
20
- green: string;
21
- mint: string;
22
- blue: string;
23
- blueDeep: string;
24
- violet: string;
25
- purple: string;
26
- yellow: string;
27
- };
28
- export declare const gray: {
29
- 0: string;
30
- 16: string;
31
- 20: string;
32
- 24: string;
33
- 28: string;
34
- 32: string;
35
- 36: string;
36
- 40: string;
37
- 44: string;
38
- 48: string;
39
- 52: string;
40
- 56: string;
41
- 60: string;
42
- 64: string;
43
- 68: string;
44
- 72: string;
45
- 76: string;
46
- 80: string;
47
- 84: string;
48
- 88: string;
49
- 92: string;
50
- 96: string;
51
- 98: string;
52
- 100: string;
53
- };
54
- export declare const whiteAlpha: {
55
- 4: string;
56
- 6: string;
57
- 8: string;
58
- 12: string;
59
- 16: string;
60
- 20: string;
61
- 24: string;
62
- 28: string;
63
- 32: string;
64
- 36: string;
65
- 40: string;
66
- 44: string;
67
- 48: string;
68
- 52: string;
69
- 56: string;
70
- 60: string;
71
- 64: string;
72
- 68: string;
73
- 72: string;
74
- 76: string;
75
- 80: string;
76
- 84: string;
77
- 88: string;
78
- 92: string;
79
- 96: string;
80
- 100: string;
81
- };
82
- export declare const blackAlpha: {
83
- 4: string;
84
- 6: string;
85
- 8: string;
86
- 12: string;
87
- 16: string;
88
- 20: string;
89
- 24: string;
90
- 28: string;
91
- 32: string;
92
- 36: string;
93
- 40: string;
94
- 44: string;
95
- 48: string;
96
- 52: string;
97
- 56: string;
98
- 60: string;
99
- 64: string;
100
- 68: string;
101
- 72: string;
102
- 76: string;
103
- 80: string;
104
- 84: string;
105
- 88: string;
106
- 92: string;
107
- 96: string;
108
- 100: string;
109
- };
@@ -1,12 +0,0 @@
1
- import { type ColorFormat } from './utils/convert-color.js';
2
- import * as DEFAULT_SWATCH from './consts/default-swatch.js';
3
- import type { BaseTokens } from './types/tokens-base.js';
4
- type PresetOrCustom<T extends string> = T | (string & Record<never, never>);
5
- export interface ConfigOptions {
6
- brand: PresetOrCustom<keyof typeof DEFAULT_SWATCH.brand>;
7
- accent: PresetOrCustom<'brand' | 'gray'>;
8
- system?: typeof DEFAULT_SWATCH.system;
9
- format?: ColorFormat;
10
- }
11
- export declare function getColorsBase({ brand, accent, system, format }: ConfigOptions): BaseTokens;
12
- export {};