@dss-kit/ui-kit 0.2.28 → 0.2.29

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 (32) hide show
  1. package/README.md +21 -21
  2. package/dist/components/controls/MarkdownTextEditor/nodes/CustomLinkNode/parts/CustomLinkNodeComponent/CustomLinkNodeComponent.d.ts.map +1 -1
  3. package/dist/components/controls/MarkdownTextEditor/nodes/ImageRowNode/parts/ImageRowNodeComponent/ImageRowNodeComponent.d.ts.map +1 -1
  4. package/dist/components/shared/MarkdownText/MarkdownText.d.ts +8 -0
  5. package/dist/components/shared/MarkdownText/MarkdownText.d.ts.map +1 -0
  6. package/dist/components/shared/MarkdownText/MarkdownText.stories.d.ts +10 -0
  7. package/dist/components/shared/MarkdownText/MarkdownText.stories.d.ts.map +1 -0
  8. package/dist/components/shared/MarkdownText/MarkdownText.styles.d.ts +2 -0
  9. package/dist/components/shared/MarkdownText/MarkdownText.styles.d.ts.map +1 -0
  10. package/dist/components/shared/MarkdownText/index.d.ts +2 -0
  11. package/dist/components/shared/MarkdownText/index.d.ts.map +1 -0
  12. package/dist/components/shared/index.d.ts +1 -0
  13. package/dist/components/shared/index.d.ts.map +1 -1
  14. package/dist/styles/utils/breakpoints/base.scss +11 -11
  15. package/dist/styles/utils/breakpoints/index.scss +3 -3
  16. package/dist/styles/utils/breakpoints/screen.scss +61 -61
  17. package/dist/styles/utils/breakpoints/semantic.scss +31 -31
  18. package/dist/styles/utils/fonts/font-family.scss +3 -3
  19. package/dist/styles/utils/fonts/index.scss +1 -1
  20. package/dist/styles/utils/index.scss +5 -5
  21. package/dist/styles/utils/size/index.scss +1 -1
  22. package/dist/styles/utils/size/modifiers.scss +40 -40
  23. package/dist/styles/utils/style/index.scss +1 -1
  24. package/dist/styles/utils/style/variants.scss +34 -34
  25. package/dist/styles/utils/typography/_font-weight.scss +33 -33
  26. package/dist/styles/utils/typography/_variants.scss +85 -85
  27. package/dist/styles/utils/typography/index.scss +2 -2
  28. package/dist/ui-kit.cjs.js +46 -46
  29. package/dist/ui-kit.cjs.js.map +1 -1
  30. package/dist/ui-kit.es.js +6177 -6046
  31. package/dist/ui-kit.es.js.map +1 -1
  32. package/package.json +92 -92
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- # UI Kit
2
-
3
- Библиотека React компонентов с дизайн-системой для внутренних проектов.
4
-
5
- ## Включает:
6
-
7
- - React компоненты
8
- - CSS переменные и токены дизайна
9
- - SCSS утилиты и миксины
10
- - TypeScript типы
11
- - SVG иконки
12
- - Провайдеры тем (ThemeProviderScoped)
13
-
14
- ## Документация
15
-
16
- Ссылки на более подробную документацию по разделам
17
-
18
- - **[Сборка](./docs/build/index.md)** - команды сборки, публикация в npm, конфигурации Vite и т.д.
19
- - **[Использование](./docs/usage/index.md)** - как использовать UI Kit в проектах, подключение стилей, примеры компонентов
20
- - **[Стили](./docs/styles/index.md)** - подключение шрифтов, CSS переменных, базовые стили и миксины
21
- - **[Утилиты](./docs/utils/index.md)** - функции хелперы
1
+ # UI Kit
2
+
3
+ Библиотека React компонентов с дизайн-системой для внутренних проектов.
4
+
5
+ ## Включает:
6
+
7
+ - React компоненты
8
+ - CSS переменные и токены дизайна
9
+ - SCSS утилиты и миксины
10
+ - TypeScript типы
11
+ - SVG иконки
12
+ - Провайдеры тем (ThemeProviderScoped)
13
+
14
+ ## Документация
15
+
16
+ Ссылки на более подробную документацию по разделам
17
+
18
+ - **[Сборка](./docs/build/index.md)** - команды сборки, публикация в npm, конфигурации Vite и т.д.
19
+ - **[Использование](./docs/usage/index.md)** - как использовать UI Kit в проектах, подключение стилей, примеры компонентов
20
+ - **[Стили](./docs/styles/index.md)** - подключение шрифтов, CSS переменных, базовые стили и миксины
21
+ - **[Утилиты](./docs/utils/index.md)** - функции хелперы
@@ -1 +1 @@
1
- {"version":3,"file":"CustomLinkNodeComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/controls/MarkdownTextEditor/nodes/CustomLinkNode/parts/CustomLinkNodeComponent/CustomLinkNodeComponent.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAEpF,wBAAgB,uBAAuB,CAAC,EACtC,GAAG,EACH,IAAI,EACJ,OAAO,GACR,EAAE,4BAA4B,2CA8B9B"}
1
+ {"version":3,"file":"CustomLinkNodeComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/controls/MarkdownTextEditor/nodes/CustomLinkNode/parts/CustomLinkNodeComponent/CustomLinkNodeComponent.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAEpF,wBAAgB,uBAAuB,CAAC,EACtC,GAAG,EACH,IAAI,EACJ,OAAO,GACR,EAAE,4BAA4B,2CAiC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRowNodeComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/controls/MarkdownTextEditor/nodes/ImageRowNode/parts/ImageRowNodeComponent/ImageRowNodeComponent.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAIhF,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,OAAO,GACR,EAAE,0BAA0B,2CA+B5B"}
1
+ {"version":3,"file":"ImageRowNodeComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/controls/MarkdownTextEditor/nodes/ImageRowNode/parts/ImageRowNodeComponent/ImageRowNodeComponent.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAIhF,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,OAAO,GACR,EAAE,0BAA0B,2CAiC5B"}
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export interface MarkdownTextProps {
3
+ markdown: string;
4
+ className?: string;
5
+ emptyState?: ReactNode;
6
+ }
7
+ export declare function MarkdownText({ markdown, className, emptyState, }: MarkdownTextProps): number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null;
8
+ //# sourceMappingURL=MarkdownText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownText.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/MarkdownText/MarkdownText.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAQhD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,UAAiB,GAClB,EAAE,iBAAiB,2FAmDnB"}
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { MarkdownText } from './MarkdownText';
3
+ declare const meta: Meta<typeof MarkdownText>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MarkdownText>;
6
+ export declare const Default: Story;
7
+ export declare const EmptyState: Story;
8
+ export declare const InContainer: Story;
9
+ export declare const InModal: Story;
10
+ //# sourceMappingURL=MarkdownText.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownText.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/MarkdownText/MarkdownText.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAInC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AA4C3C,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAWzB,CAAC;AAiDF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const markdownTextStyle: string;
2
+ //# sourceMappingURL=MarkdownText.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownText.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/MarkdownText/MarkdownText.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,QAsF5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './MarkdownText';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/MarkdownText/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './Avatar';
2
2
  export * from './Badge';
3
3
  export * from './Hint';
4
+ export * from './MarkdownText';
4
5
  export * from './Popover';
5
6
  export * from './Skeleton';
6
7
  export * from './Tag';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -1,11 +1,11 @@
1
- @mixin breakpoint($breakpoint, $direction: max) {
2
- @if $direction == min {
3
- @media (min-width: $breakpoint) {
4
- @content;
5
- }
6
- } @else if $direction == max {
7
- @media (max-width: ($breakpoint - 1px)) {
8
- @content;
9
- }
10
- }
11
- }
1
+ @mixin breakpoint($breakpoint, $direction: max) {
2
+ @if $direction == min {
3
+ @media (min-width: $breakpoint) {
4
+ @content;
5
+ }
6
+ } @else if $direction == max {
7
+ @media (max-width: ($breakpoint - 1px)) {
8
+ @content;
9
+ }
10
+ }
11
+ }
@@ -1,3 +1,3 @@
1
- @forward "base";
2
- @forward "screen";
3
- @forward "semantic";
1
+ @forward "base";
2
+ @forward "screen";
3
+ @forward "semantic";
@@ -1,61 +1,61 @@
1
- @use "./base.scss";
2
-
3
- @mixin bp-1920($direction: max) {
4
- @include base.breakpoint(1920px, $direction) {
5
- @content;
6
- }
7
- }
8
-
9
- @mixin bp-1440($direction: max) {
10
- @include base.breakpoint(1440px, $direction) {
11
- @content;
12
- }
13
- }
14
-
15
- @mixin bp-1280($direction: max) {
16
- @include base.breakpoint(1280px, $direction) {
17
- @content;
18
- }
19
- }
20
-
21
- @mixin bp-1200($direction: max) {
22
- @include base.breakpoint(1200px, $direction) {
23
- @content;
24
- }
25
- }
26
-
27
- @mixin bp-1024($direction: max) {
28
- @include base.breakpoint(1024px, $direction) {
29
- @content;
30
- }
31
- }
32
-
33
- @mixin bp-992($direction: max) {
34
- @include base.breakpoint(992px, $direction) {
35
- @content;
36
- }
37
- }
38
-
39
- @mixin bp-768($direction: max) {
40
- @include base.breakpoint(768px, $direction) {
41
- @content;
42
- }
43
- }
44
-
45
- @mixin bp-576($direction: max) {
46
- @include base.breakpoint(576px, $direction) {
47
- @content;
48
- }
49
- }
50
-
51
- @mixin bp-480($direction: max) {
52
- @include base.breakpoint(480px, $direction) {
53
- @content;
54
- }
55
- }
56
-
57
- @mixin bp-375($direction: max) {
58
- @include base.breakpoint(375px, $direction) {
59
- @content;
60
- }
61
- }
1
+ @use "./base.scss";
2
+
3
+ @mixin bp-1920($direction: max) {
4
+ @include base.breakpoint(1920px, $direction) {
5
+ @content;
6
+ }
7
+ }
8
+
9
+ @mixin bp-1440($direction: max) {
10
+ @include base.breakpoint(1440px, $direction) {
11
+ @content;
12
+ }
13
+ }
14
+
15
+ @mixin bp-1280($direction: max) {
16
+ @include base.breakpoint(1280px, $direction) {
17
+ @content;
18
+ }
19
+ }
20
+
21
+ @mixin bp-1200($direction: max) {
22
+ @include base.breakpoint(1200px, $direction) {
23
+ @content;
24
+ }
25
+ }
26
+
27
+ @mixin bp-1024($direction: max) {
28
+ @include base.breakpoint(1024px, $direction) {
29
+ @content;
30
+ }
31
+ }
32
+
33
+ @mixin bp-992($direction: max) {
34
+ @include base.breakpoint(992px, $direction) {
35
+ @content;
36
+ }
37
+ }
38
+
39
+ @mixin bp-768($direction: max) {
40
+ @include base.breakpoint(768px, $direction) {
41
+ @content;
42
+ }
43
+ }
44
+
45
+ @mixin bp-576($direction: max) {
46
+ @include base.breakpoint(576px, $direction) {
47
+ @content;
48
+ }
49
+ }
50
+
51
+ @mixin bp-480($direction: max) {
52
+ @include base.breakpoint(480px, $direction) {
53
+ @content;
54
+ }
55
+ }
56
+
57
+ @mixin bp-375($direction: max) {
58
+ @include base.breakpoint(375px, $direction) {
59
+ @content;
60
+ }
61
+ }
@@ -1,31 +1,31 @@
1
- @use "./screen.scss";
2
-
3
- @mixin bp-xs($direction: max) {
4
- @include screen.bp-480($direction) {
5
- @content;
6
- }
7
- }
8
-
9
- @mixin bp-sm($direction: max) {
10
- @include screen.bp-576($direction) {
11
- @content;
12
- }
13
- }
14
-
15
- @mixin bp-md($direction: max) {
16
- @include screen.bp-768($direction) {
17
- @content;
18
- }
19
- }
20
-
21
- @mixin bp-lg($direction: max) {
22
- @include screen.bp-992($direction) {
23
- @content;
24
- }
25
- }
26
-
27
- @mixin bp-xl($direction: max) {
28
- @include screen.bp-1200($direction) {
29
- @content;
30
- }
31
- }
1
+ @use "./screen.scss";
2
+
3
+ @mixin bp-xs($direction: max) {
4
+ @include screen.bp-480($direction) {
5
+ @content;
6
+ }
7
+ }
8
+
9
+ @mixin bp-sm($direction: max) {
10
+ @include screen.bp-576($direction) {
11
+ @content;
12
+ }
13
+ }
14
+
15
+ @mixin bp-md($direction: max) {
16
+ @include screen.bp-768($direction) {
17
+ @content;
18
+ }
19
+ }
20
+
21
+ @mixin bp-lg($direction: max) {
22
+ @include screen.bp-992($direction) {
23
+ @content;
24
+ }
25
+ }
26
+
27
+ @mixin bp-xl($direction: max) {
28
+ @include screen.bp-1200($direction) {
29
+ @content;
30
+ }
31
+ }
@@ -1,3 +1,3 @@
1
- @mixin Inter {
2
- font-family: Inter, sans-serif;
3
- }
1
+ @mixin Inter {
2
+ font-family: Inter, sans-serif;
3
+ }
@@ -1 +1 @@
1
- @forward "font-family";
1
+ @forward "font-family";
@@ -1,5 +1,5 @@
1
- @forward "breakpoints";
2
- @forward "fonts";
3
- @forward "size";
4
- @forward "typography";
5
- @forward "style";
1
+ @forward "breakpoints";
2
+ @forward "fonts";
3
+ @forward "size";
4
+ @forward "typography";
5
+ @forward "style";
@@ -1 +1 @@
1
- @forward "modifiers";
1
+ @forward "modifiers";
@@ -1,41 +1,41 @@
1
- @mixin xxs-modifier {
2
- &_2xsSize {
3
- @content;
4
- }
5
- }
6
-
7
- @mixin xs-modifier {
8
- &_xsSize {
9
- @content;
10
- }
11
- }
12
-
13
- @mixin sm-modifier {
14
- &_smSize {
15
- @content;
16
- }
17
- }
18
-
19
- @mixin md-modifier {
20
- &_mdSize {
21
- @content;
22
- }
23
- }
24
-
25
- @mixin lg-modifier {
26
- &_lgSize {
27
- @content;
28
- }
29
- }
30
-
31
- @mixin xl-modifier {
32
- &_xlSize {
33
- @content;
34
- }
35
- }
36
-
37
- @mixin xxl-modifier {
38
- &_2xlSize {
39
- @content;
40
- }
1
+ @mixin xxs-modifier {
2
+ &_2xsSize {
3
+ @content;
4
+ }
5
+ }
6
+
7
+ @mixin xs-modifier {
8
+ &_xsSize {
9
+ @content;
10
+ }
11
+ }
12
+
13
+ @mixin sm-modifier {
14
+ &_smSize {
15
+ @content;
16
+ }
17
+ }
18
+
19
+ @mixin md-modifier {
20
+ &_mdSize {
21
+ @content;
22
+ }
23
+ }
24
+
25
+ @mixin lg-modifier {
26
+ &_lgSize {
27
+ @content;
28
+ }
29
+ }
30
+
31
+ @mixin xl-modifier {
32
+ &_xlSize {
33
+ @content;
34
+ }
35
+ }
36
+
37
+ @mixin xxl-modifier {
38
+ &_2xlSize {
39
+ @content;
40
+ }
41
41
  }
@@ -1 +1 @@
1
- @forward "variants";
1
+ @forward "variants";
@@ -1,34 +1,34 @@
1
- @mixin style-variant-text($map, $pseudo-class: null, $postfix: "") {
2
- @each $style, $color in $map {
3
- &_#{$style}#{$postfix}#{if($pseudo-class, ':' + $pseudo-class, '')} {
4
- color: $color;
5
- }
6
- }
7
- }
8
-
9
- @mixin style-variant-border($width: 1px, $map, $pseudo-class: null, $postfix: "") {
10
- border: $width solid transparent;
11
- @each $style, $color in $map {
12
- &_#{$style}#{$postfix}#{if($pseudo-class, ':' + $pseudo-class, '')} {
13
- border-color: $color;
14
- }
15
- }
16
- }
17
-
18
- @mixin style-variant-bg($map, $pseudo-class: null, $postfix: "") {
19
- @each $style, $color in $map {
20
- &_#{$style}#{$postfix}#{if($pseudo-class, ':' + $pseudo-class, '')} {
21
- background-color: $color;
22
- }
23
- }
24
- }
25
-
26
- @mixin style-variant-svg($map, $pseudo-class: null, $postfix: "") {
27
- @each $style, $color in $map {
28
- &_#{$style}#{$postfix}#{if($pseudo-class, ':' + $pseudo-class, '')} {
29
- svg {
30
- color: $color;
31
- }
32
- }
33
- }
34
- }
1
+ @mixin style-variant-text($map, $pseudo-class: null, $postfix: "") {
2
+ @each $style, $color in $map {
3
+ &_#{$style}#{$postfix}#{if($pseudo-class, ':' + $pseudo-class, '')} {
4
+ color: $color;
5
+ }
6
+ }
7
+ }
8
+
9
+ @mixin style-variant-border($width: 1px, $map, $pseudo-class: null, $postfix: "") {
10
+ border: $width solid transparent;
11
+ @each $style, $color in $map {
12
+ &_#{$style}#{$postfix}#{if($pseudo-class, ':' + $pseudo-class, '')} {
13
+ border-color: $color;
14
+ }
15
+ }
16
+ }
17
+
18
+ @mixin style-variant-bg($map, $pseudo-class: null, $postfix: "") {
19
+ @each $style, $color in $map {
20
+ &_#{$style}#{$postfix}#{if($pseudo-class, ':' + $pseudo-class, '')} {
21
+ background-color: $color;
22
+ }
23
+ }
24
+ }
25
+
26
+ @mixin style-variant-svg($map, $pseudo-class: null, $postfix: "") {
27
+ @each $style, $color in $map {
28
+ &_#{$style}#{$postfix}#{if($pseudo-class, ':' + $pseudo-class, '')} {
29
+ svg {
30
+ color: $color;
31
+ }
32
+ }
33
+ }
34
+ }
@@ -1,33 +1,33 @@
1
- @use "sass:map";
2
-
3
- $font-weight: (
4
- regular: 400,
5
- medium: 500,
6
- semibold: 600,
7
- bold: 700,
8
- ) !default;
9
-
10
- @function font-weight-token($name) {
11
- @if not map.has-key($font-weight, $name) {
12
- @error "Unknown font-weight token `#{$name}`";
13
- }
14
- @return map.get($font-weight, $name);
15
- }
16
-
17
- @mixin font-weight($name) {
18
- font-weight: font-weight-token($name);
19
- }
20
-
21
- // опциональные алиасы ради DX/совместимости
22
- @mixin font-regular {
23
- @include font-weight(regular);
24
- }
25
- @mixin font-medium {
26
- @include font-weight(medium);
27
- }
28
- @mixin font-semibold {
29
- @include font-weight(semibold);
30
- }
31
- @mixin font-bold {
32
- @include font-weight(bold);
33
- }
1
+ @use "sass:map";
2
+
3
+ $font-weight: (
4
+ regular: 400,
5
+ medium: 500,
6
+ semibold: 600,
7
+ bold: 700,
8
+ ) !default;
9
+
10
+ @function font-weight-token($name) {
11
+ @if not map.has-key($font-weight, $name) {
12
+ @error "Unknown font-weight token `#{$name}`";
13
+ }
14
+ @return map.get($font-weight, $name);
15
+ }
16
+
17
+ @mixin font-weight($name) {
18
+ font-weight: font-weight-token($name);
19
+ }
20
+
21
+ // опциональные алиасы ради DX/совместимости
22
+ @mixin font-regular {
23
+ @include font-weight(regular);
24
+ }
25
+ @mixin font-medium {
26
+ @include font-weight(medium);
27
+ }
28
+ @mixin font-semibold {
29
+ @include font-weight(semibold);
30
+ }
31
+ @mixin font-bold {
32
+ @include font-weight(bold);
33
+ }