@dss-kit/ui-kit 1.1.1 → 1.2.0

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 (34) hide show
  1. package/README.md +5 -3
  2. package/dist/components/shared/MarkdownText/MarkdownText.styles.js +28 -44
  3. package/dist/docs/styles/fonts/index.md +70 -0
  4. package/dist/docs/styles/fonts/inter.md +44 -0
  5. package/dist/docs/styles/index.md +13 -0
  6. package/dist/docs/styles/main-styles/index.md +87 -0
  7. package/dist/docs/styles/main-styles/reset.md +66 -0
  8. package/dist/docs/styles/main-styles/tokens.md +145 -0
  9. package/dist/docs/styles/style-utils/breakpoints.md +216 -0
  10. package/dist/docs/styles/style-utils/fonts.md +29 -0
  11. package/dist/docs/styles/style-utils/index.md +51 -0
  12. package/dist/docs/styles/style-utils/size.md +112 -0
  13. package/dist/docs/styles/style-utils/style-variants.md +300 -0
  14. package/dist/docs/styles/style-utils/typography.md +104 -0
  15. package/dist/docs/styles/themes/index.md +168 -0
  16. package/dist/docs/usage/ai-rules.md +70 -0
  17. package/dist/docs/usage/index.md +33 -0
  18. package/dist/docs/usage/integration.md +124 -0
  19. package/dist/docs/usage/localization.md +83 -0
  20. package/dist/docs/usage/overriding.md +118 -0
  21. package/dist/docs/usage/style-utils.md +70 -0
  22. package/dist/docs/utils/index.md +11 -0
  23. package/dist/docs/utils/styles/getFontWeightClass.md +118 -0
  24. package/dist/docs/utils/styles/getSizeClass.md +135 -0
  25. package/dist/docs/utils/styles/getStyleClass.md +109 -0
  26. package/dist/docs/utils/styles/index.md +58 -0
  27. package/dist/styles/utils/typography/_variants.scss +3 -16
  28. package/dist/styles/utils/typography.js +7 -6
  29. package/dist/styles/utils/typography.ts +5 -4
  30. package/dist/ui-kit.cjs +8 -8
  31. package/dist/utils/hooks/breakpoints/useBreakpoint/useBreakpoint.const.d.ts +2 -0
  32. package/dist/utils/hooks/breakpoints/useBreakpoint/useBreakpoint.d.ts +23 -4
  33. package/dist/utils/hooks/useControlled.d.ts +6 -0
  34. package/package.json +1 -1
@@ -4,24 +4,25 @@ const e = {
4
4
  wordBreak: "break-word"
5
5
  }, n = {
6
6
  common: e,
7
+ // От ширины экрана зависит только title-1: ниже 768px — 28/32. Остальные варианты
8
+ // одинаковы на всех ширинах. Шкала согласована с дизайнером (TM-4108):
9
+ // https://www.figma.com/design/OL4CCm8EL0IpsfoEeykNHi/?node-id=6408-661
10
+ // Значения синхронны с styles/utils/typography/_variants.scss.
7
11
  title1: {
8
12
  ...e,
9
13
  fontSize: 32,
10
14
  lineHeight: "36px",
11
- [i.md()]: { fontSize: 24 }
15
+ [i.md()]: { fontSize: 28, lineHeight: "32px" }
12
16
  },
13
17
  title2: {
14
18
  ...e,
15
19
  fontSize: 24,
16
- lineHeight: "28px",
17
- [i.md()]: { fontSize: 20 }
20
+ lineHeight: "28px"
18
21
  },
19
22
  title3: {
20
23
  ...e,
21
24
  fontSize: 20,
22
- lineHeight: "28px",
23
- [i.md()]: { fontSize: 18 },
24
- [i.xs()]: { fontSize: 16 }
25
+ lineHeight: "28px"
25
26
  },
26
27
  headline1: {
27
28
  ...e,
@@ -8,26 +8,27 @@ const common = {
8
8
  export const typography = {
9
9
  common,
10
10
 
11
+ // От ширины экрана зависит только title-1: ниже 768px — 28/32. Остальные варианты
12
+ // одинаковы на всех ширинах. Шкала согласована с дизайнером (TM-4108):
13
+ // https://www.figma.com/design/OL4CCm8EL0IpsfoEeykNHi/?node-id=6408-661
14
+ // Значения синхронны с styles/utils/typography/_variants.scss.
11
15
  title1: {
12
16
  ...common,
13
17
  fontSize: 32,
14
18
  lineHeight: "36px",
15
- [bp.md()]: { fontSize: 24 },
19
+ [bp.md()]: { fontSize: 28, lineHeight: "32px" },
16
20
  },
17
21
 
18
22
  title2: {
19
23
  ...common,
20
24
  fontSize: 24,
21
25
  lineHeight: "28px",
22
- [bp.md()]: { fontSize: 20 },
23
26
  },
24
27
 
25
28
  title3: {
26
29
  ...common,
27
30
  fontSize: 20,
28
31
  lineHeight: "28px",
29
- [bp.md()]: { fontSize: 18 },
30
- [bp.xs()]: { fontSize: 16 },
31
32
  },
32
33
 
33
34
  headline1: {