@dss-kit/ui-kit 0.2.21 → 0.2.23

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 (31) hide show
  1. package/README.md +21 -21
  2. package/dist/components/builders/Text/index.d.ts +1 -1
  3. package/dist/components/builders/Text/index.d.ts.map +1 -1
  4. package/dist/components/controls/Input/Input.d.ts +9 -1
  5. package/dist/components/controls/Input/Input.d.ts.map +1 -1
  6. package/dist/components/controls/MarkdownTextEditor/index.d.ts +1 -1
  7. package/dist/components/controls/MarkdownTextEditor/index.d.ts.map +1 -1
  8. package/dist/components/controls/index.d.ts +1 -0
  9. package/dist/components/controls/index.d.ts.map +1 -1
  10. package/dist/locale/UiKitLocaleProvider/UiKitLocaleProvider.types.d.ts +1 -1
  11. package/dist/locale/UiKitLocaleProvider/UiKitLocaleProvider.types.d.ts.map +1 -1
  12. package/dist/styles/utils/breakpoints/base.scss +11 -11
  13. package/dist/styles/utils/breakpoints/index.scss +3 -3
  14. package/dist/styles/utils/breakpoints/screen.scss +61 -61
  15. package/dist/styles/utils/breakpoints/semantic.scss +31 -31
  16. package/dist/styles/utils/fonts/font-family.scss +3 -3
  17. package/dist/styles/utils/fonts/index.scss +1 -1
  18. package/dist/styles/utils/index.scss +5 -5
  19. package/dist/styles/utils/size/index.scss +1 -1
  20. package/dist/styles/utils/size/modifiers.scss +40 -40
  21. package/dist/styles/utils/style/index.scss +1 -1
  22. package/dist/styles/utils/style/variants.scss +34 -34
  23. package/dist/styles/utils/typography/_font-weight.scss +33 -33
  24. package/dist/styles/utils/typography/_variants.scss +85 -85
  25. package/dist/styles/utils/typography/index.scss +2 -2
  26. package/dist/ui-kit.cjs.js +53 -21
  27. package/dist/ui-kit.cjs.js.map +1 -1
  28. package/dist/ui-kit.css +1 -1
  29. package/dist/ui-kit.es.js +20445 -5624
  30. package/dist/ui-kit.es.js.map +1 -1
  31. 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,2 +1,2 @@
1
- export * from './Text.tsx';
1
+ export * from './Text';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/builders/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/builders/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -11,6 +11,14 @@ export interface InputRef {
11
11
  /** Текущее значение поля */
12
12
  value: string | undefined;
13
13
  }
14
+ /** Допустимые варианты фона */
15
+ type InputBackground = PrimaryType | SecondaryType;
16
+ /**
17
+ * Устаревшие варианты фона.
18
+ * Используй InputBackground.
19
+ * @deprecated Используй PrimaryType или SecondaryType
20
+ */
21
+ type DeprecatedBackground = "white" | "gray";
14
22
  /**
15
23
  * Общие пропсы для Input и Textarea.
16
24
  */
@@ -30,7 +38,7 @@ type CommonProps = {
30
38
  /** Суффикс (элемент после поля) */
31
39
  suffix?: React.ReactNode;
32
40
  /** Цвет фона */
33
- background?: PrimaryType | SecondaryType;
41
+ background?: InputBackground | DeprecatedBackground;
34
42
  /** Кнопка очистки значения */
35
43
  showClearButton?: boolean;
36
44
  /** Заблокированное состояние */
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA2B1D;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,oBAAoB;IACpB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,oBAAoB;IACpB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,4BAA4B;IAC5B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAClC,qBAAqB;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mBAAmB;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB;IACl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ACd,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CAChE,CAAC;AAEJ,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AAElE;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK,6EAkQhB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export { MarkdownToolbarAction } from './hooks';
2
2
  export * from './MarkdownTextEditor';
3
- export * from './MarkdownTextEditor.locale';
3
+ export { MARKDOWN_TEXT_EDITOR_LOCALE_KEY } from './MarkdownTextEditor.locale';
4
4
  export type * from './MarkdownTextEditor.types';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/MarkdownTextEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,mBAAmB,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/MarkdownTextEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,mBAAmB,4BAA4B,CAAC"}
@@ -2,6 +2,7 @@ export * from './Button';
2
2
  export * from './Checkbox';
3
3
  export * from './IconButton';
4
4
  export * from './Input';
5
+ export * from './MarkdownTextEditor';
5
6
  export * from './OtpInput';
6
7
  export * from './RadioGroup';
7
8
  export * from './SegmentControl';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { MARKDOWN_TEXT_EDITOR_LOCALE_KEY, MarkdownTextEditorLocale } from '../../components/controls/MarkdownTextEditor';
2
+ import { MARKDOWN_TEXT_EDITOR_LOCALE_KEY, MarkdownTextEditorLocale } from '../../components/controls/MarkdownTextEditor/MarkdownTextEditor.locale';
3
3
  import { DeepPartial } from '../../types';
4
4
  export interface UiKitLocaleFull {
5
5
  [MARKDOWN_TEXT_EDITOR_LOCALE_KEY]: MarkdownTextEditorLocale;
@@ -1 +1 @@
1
- {"version":3,"file":"UiKitLocaleProvider.types.d.ts","sourceRoot":"","sources":["../../../src/locale/UiKitLocaleProvider/UiKitLocaleProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,CAAC,+BAA+B,CAAC,EAAE,wBAAwB,CAAC;CAC7D;AACD,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;AAE9D,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B"}
1
+ {"version":3,"file":"UiKitLocaleProvider.types.d.ts","sourceRoot":"","sources":["../../../src/locale/UiKitLocaleProvider/UiKitLocaleProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,oEAAoE,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,CAAC,+BAA+B,CAAC,EAAE,wBAAwB,CAAC;CAC7D;AACD,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;AAE9D,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B"}
@@ -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
+ }