@itcase/ui 1.2.19 → 1.2.21

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 (182) hide show
  1. package/dist/cjs/components/Accordion.js +3 -2
  2. package/dist/cjs/components/Choice.js +1 -1
  3. package/dist/cjs/components/InputPassword.js +6 -6
  4. package/dist/cjs/components/Radio.js +85 -8
  5. package/dist/cjs/components/Switch.js +12 -8
  6. package/dist/cjs/components/Tile.js +3 -3
  7. package/dist/cjs/constants/componentProps/textColor.js +1 -1
  8. package/dist/cjs/constants/componentProps/textColorHover.js +1 -1
  9. package/dist/components/Accordion.js +3 -2
  10. package/dist/components/Choice.js +1 -1
  11. package/dist/components/InputPassword.js +6 -6
  12. package/dist/components/Radio.js +86 -5
  13. package/dist/components/Switch.js +12 -4
  14. package/dist/components/Tile.js +3 -3
  15. package/dist/constants/componentProps/textColor.js +1 -1
  16. package/dist/constants/componentProps/textColorHover.js +1 -1
  17. package/dist/css/components/Accordion/Accordion.css +1 -0
  18. package/dist/css/components/DatePicker/DatePicker.css +12 -12
  19. package/dist/css/components/Icon/Icon.css +4 -2
  20. package/dist/css/mixins/mixin_elevation.css +0 -2
  21. package/dist/css/mixins/mixin_typography.css +104 -84
  22. package/dist/css/mixins/mixin_utils.css +1 -1
  23. package/dist/css/styles/border-color/border-color.css +4 -2
  24. package/dist/css/styles/text-gradient/text-gradient.css +9 -4
  25. package/dist/css/tokens/colors.css +105 -0
  26. package/dist/css/tokens/elevation.css +10 -0
  27. package/dist/css/tokens/settings.css +31 -0
  28. package/dist/css/tokens/typography.css +127 -0
  29. package/dist/stories/Accordion.mdx +11 -0
  30. package/dist/stories/Accordion.stories.js +49 -32
  31. package/dist/stories/AccordionItem.mdx +15 -0
  32. package/dist/stories/AccordionItem.stories.js +69 -69
  33. package/dist/stories/AlignContent.mdx +85 -0
  34. package/dist/stories/AlignItems.mdx +74 -0
  35. package/dist/stories/AlignItems.stories.js +88 -0
  36. package/dist/stories/AlignSelf.mdx +85 -0
  37. package/dist/stories/AlignSelf.stories.js +101 -0
  38. package/dist/stories/Appearance.mdx +24 -9
  39. package/dist/stories/Appearance.stories.js +77 -23
  40. package/dist/stories/Avatar.mdx +23 -0
  41. package/dist/stories/Avatar.stories.js +69 -64
  42. package/dist/stories/Badge.mdx +20 -0
  43. package/dist/stories/Badge.stories.js +43 -44
  44. package/dist/stories/Button.mdx +48 -0
  45. package/dist/stories/Button.stories.js +26 -186
  46. package/dist/stories/Cell.mdx +23 -0
  47. package/dist/stories/Cell.stories.js +119 -119
  48. package/dist/stories/Checkbox.mdx +24 -0
  49. package/dist/stories/Checkbox.stories.js +42 -34
  50. package/dist/stories/Chips.mdx +31 -0
  51. package/dist/stories/Chips.stories.js +22 -67
  52. package/dist/stories/Choice.mdx +11 -0
  53. package/dist/stories/Choice.stories.js +59 -61
  54. package/dist/stories/Code.mdx +11 -0
  55. package/dist/stories/Code.stories.js +37 -40
  56. package/dist/stories/Columns.mdx +51 -0
  57. package/dist/stories/Columns.stories.js +80 -0
  58. package/dist/stories/DatePicker.mdx +31 -0
  59. package/dist/stories/DatePicker.stories.js +58 -59
  60. package/dist/stories/Dev.mdx +9 -0
  61. package/dist/stories/DevMode.mdx +8 -0
  62. package/dist/stories/Direction.mdx +84 -0
  63. package/dist/stories/Direction.stories.js +93 -0
  64. package/dist/stories/Divider.mdx +35 -0
  65. package/dist/stories/Divider.stories.js +28 -29
  66. package/dist/stories/Dot.mdx +19 -0
  67. package/dist/stories/Dot.stories.js +38 -39
  68. package/dist/stories/Drawer.mdx +11 -0
  69. package/dist/stories/Drawer.stories.js +75 -0
  70. package/dist/stories/Dropdown.mdx +12 -0
  71. package/dist/stories/Dropdown.stories.js +30 -29
  72. package/dist/stories/DropdownItem.mdx +19 -0
  73. package/dist/stories/DropdownItem.stories.js +76 -78
  74. package/dist/stories/Flex.stories.js +47 -0
  75. package/dist/stories/FlexAlignContent.stories.js +102 -0
  76. package/dist/stories/FlexAlignItems.stories.js +91 -0
  77. package/dist/stories/FlexAlignSelf.stories.js +97 -0
  78. package/dist/stories/FlexDirection.stories.js +112 -0
  79. package/dist/stories/FlexGrow.stories.js +69 -0
  80. package/dist/stories/FlexJustifyContent.stories.js +98 -0
  81. package/dist/stories/FlexOrder.stories.js +76 -0
  82. package/dist/stories/FlexWrap.stories.js +89 -0
  83. package/dist/stories/Grid.stories.js +202 -0
  84. package/dist/stories/Group.mdx +9 -0
  85. package/dist/stories/{Tab.group.stories.js → Group.stories.js} +60 -56
  86. package/dist/stories/Grow.mdx +40 -0
  87. package/dist/stories/Icon.mdx +15 -0
  88. package/dist/stories/Icon.stories.js +84 -82
  89. package/dist/stories/Image.mdx +15 -0
  90. package/dist/stories/Image.stories.js +134 -0
  91. package/dist/stories/Input.mdx +31 -0
  92. package/dist/stories/Input.stories.js +26 -26
  93. package/dist/stories/InputPassword.mdx +15 -0
  94. package/dist/stories/InputPassword.stories.js +32 -34
  95. package/dist/stories/JustifyContent.mdx +89 -0
  96. package/dist/stories/JustifyContent.stories.js +96 -0
  97. package/dist/stories/Label.mdx +31 -0
  98. package/dist/stories/Label.stories.js +63 -53
  99. package/dist/stories/Loader.mdx +31 -0
  100. package/dist/stories/Loader.stories.js +26 -28
  101. package/dist/stories/Logo.mdx +19 -0
  102. package/dist/stories/Logo.stories.js +28 -28
  103. package/dist/stories/MenuItem.mdx +15 -0
  104. package/dist/stories/MenuItem.stories.js +156 -91
  105. package/dist/stories/Message.mdx +12 -0
  106. package/dist/stories/Message.stories.js +34 -0
  107. package/dist/stories/ModalConfirm.stories.js +48 -47
  108. package/dist/stories/ModalDefault.stories.js +21 -20
  109. package/dist/stories/Notification.mdx +23 -0
  110. package/dist/stories/Notification.stories.js +24 -47
  111. package/dist/stories/Order.mdx +52 -0
  112. package/dist/stories/Overview.mdx +1 -2
  113. package/dist/stories/Pagination.mdx +11 -0
  114. package/dist/stories/Pagination.stories.js +24 -27
  115. package/dist/stories/Playground.mdx +1 -2
  116. package/dist/stories/Radio.mdx +29 -0
  117. package/dist/stories/Radio.stories.js +32 -33
  118. package/dist/stories/Response.mdx +18 -0
  119. package/dist/stories/Response.stories.js +66 -0
  120. package/dist/stories/SearchInput.mdx +19 -0
  121. package/dist/stories/{Search-input.stories.js → SearchInput.stories.js} +79 -62
  122. package/dist/stories/Segmented.mdx +11 -0
  123. package/dist/stories/Segmented.stories.js +49 -50
  124. package/dist/stories/Select.stories.js +155 -155
  125. package/dist/stories/Size.mdx +35 -0
  126. package/dist/stories/Size.stories.js +101 -0
  127. package/dist/stories/Skeleton.mdx +9 -0
  128. package/dist/stories/State.mdx +19 -0
  129. package/dist/stories/State.stories.js +70 -0
  130. package/dist/stories/Switch.mdx +23 -0
  131. package/dist/stories/Switch.stories.js +23 -23
  132. package/dist/stories/Text.mdx +35 -0
  133. package/dist/stories/Text.stories.js +172 -0
  134. package/dist/stories/Textarea.mdx +15 -0
  135. package/dist/stories/Textarea.stories.js +27 -27
  136. package/dist/stories/Tile.mdx +19 -0
  137. package/dist/stories/Tile.stories.js +111 -96
  138. package/dist/stories/Title.mdx +31 -0
  139. package/dist/stories/Title.stories.js +168 -0
  140. package/dist/stories/Tooltip.mdx +19 -0
  141. package/dist/stories/Tooltip.stories.js +164 -0
  142. package/dist/stories/WithTooltip.mdx +9 -0
  143. package/dist/stories/Wrap.mdx +52 -0
  144. package/dist/stories/Wrap.stories.js +74 -0
  145. package/dist/types/components/Accordion/Accordion.interface.d.ts +4 -0
  146. package/dist/types/components/Choice/Choice.interface.d.ts +0 -2
  147. package/dist/types/components/InputPassword/InputPassword.interface.d.ts +10 -8
  148. package/dist/types/components/Tile/Tile.d.ts +1 -1
  149. package/dist/types/components/Tile/Tile.interface.d.ts +3 -1
  150. package/dist/types/config/forms/datepicker.d.ts +18 -0
  151. package/dist/types/config/forms/index.d.ts +4 -0
  152. package/dist/types/config/forms/input.d.ts +14 -0
  153. package/dist/types/config/forms/select.d.ts +50 -0
  154. package/package.json +36 -42
  155. package/dist/Radio-BQo97TZL.js +0 -89
  156. package/dist/Radio-oMf0vN7T.js +0 -86
  157. package/dist/Switch-B5yVEqxz.js +0 -14
  158. package/dist/Switch-DEXsrPCo.js +0 -12
  159. package/dist/cjs/components/FormField.js +0 -122
  160. package/dist/components/FormField.js +0 -116
  161. package/dist/css/mixins/mixin.css +0 -78
  162. package/dist/stories/FormFieldCheckbox.stories.js +0 -77
  163. package/dist/stories/FormFieldChoice.stories.js +0 -75
  164. package/dist/stories/FormFieldDatepicker.stories.js +0 -51
  165. package/dist/stories/FormFieldFileInput.stories.js +0 -58
  166. package/dist/stories/FormFieldInput.stories.js +0 -66
  167. package/dist/stories/FormFieldInputPassword.stories.js +0 -66
  168. package/dist/stories/FormFieldMultiBadgeSelect.stories.js +0 -132
  169. package/dist/stories/FormFieldMultiSelect.stories.js +0 -127
  170. package/dist/stories/FormFieldSelect.stories.js +0 -99
  171. package/dist/stories/FormFieldSelectGroup.stories.js +0 -84
  172. package/dist/stories/NotFound.stories.js +0 -93
  173. package/dist/stories/Tab.appearance.stories.js +0 -260
  174. package/dist/stories/Tab.size.stories.js +0 -259
  175. package/dist/stories/Tab.state.stories.js +0 -227
  176. package/dist/types/components/FormField/ChoiceField.d.ts +0 -8
  177. package/dist/types/components/FormField/FormField.d.ts +0 -9
  178. package/dist/types/components/FormField/FormFiled.interface.d.ts +0 -77
  179. package/dist/types/components/FormField/PasswordField.d.ts +0 -9
  180. package/dist/types/components/FormField/SelectField.d.ts +0 -9
  181. package/dist/types/components/FormField/SwitchField.d.ts +0 -8
  182. package/dist/types/components/FormField/index.d.ts +0 -6
@@ -31,7 +31,8 @@
31
31
  @each $type in accent, primary, secondary, tertiary, surface, success, error {
32
32
  &_$(type) {
33
33
  &-item {
34
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover, invert {
34
+ @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled,
35
+ hover, inverse {
35
36
  &-$(color) {
36
37
  & svg {
37
38
  stroke: none;
@@ -40,7 +41,8 @@
40
41
  }
41
42
  }
42
43
  }
43
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover, invert {
44
+ @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled,
45
+ hover, inverse {
44
46
  &-$(color) {
45
47
  & svg {
46
48
  stroke: none;
@@ -1,5 +1,3 @@
1
- /* stylelint-disable length-zero-no-unit */
2
-
3
1
  @define-mixin elevation-1 {
4
2
  box-shadow: var(--elevation-1);
5
3
  }
@@ -1,154 +1,174 @@
1
- @define-mixin h1-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
2
- @mixin font $weight, var(--typography-h1-min, 32px), var(--typography-h1-max, 48px),
3
- $minLetterSpacing, var(--typography-h1-min-line-height, 80px),
4
- var(--typography-h1-max-line-height, 96px), $maxLetterSpacing,
1
+ @define-mixin h1 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
2
+ @mixin font $weight, var(--typography-h1-min, 32px), var(--typography-h1-max, 38px),
3
+ $minLetterSpacing, var(--typography-h1-min-line-height, 64px),
4
+ var(--typography-h1-max-line-height, 80px), $maxLetterSpacing,
5
5
  var(--typography-h1-font, system-ui);
6
6
  }
7
7
 
8
- @define-mixin h2-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
9
- @mixin font $weight, var(--typography-h2-min), var(--typography-h2-max), $minLetterSpacing,
10
- var(--typography-h2-min-line-height), var(--typography-h2-max-line-height), $maxLetterSpacing,
11
- var(--typography-h2-font);
8
+ @define-mixin h2 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
9
+ @mixin font $weight, var(--typography-h2-min, 26px), var(--typography-h2-max, 32px),
10
+ $minLetterSpacing, var(--typography-h2-min-line-height, 46px),
11
+ var(--typography-h2-max-line-height, 58px), $maxLetterSpacing,
12
+ var(--typography-h2-font, system-ui);
12
13
  }
13
14
 
14
- @define-mixin h3-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
15
- @mixin font $weight, var(--typography-h3-min), var(--typography-h3-max), $minLetterSpacing,
16
- var(--typography-h3-min-line-height), var(--typography-h3-max-line-height), $maxLetterSpacing,
17
- var(--typography-h3-font);
15
+ @define-mixin h3 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
16
+ @mixin font $weight, var(--typography-h3-min, 18px), var(--typography-h3-max, 24px),
17
+ $minLetterSpacing, var(--typography-h3-min-line-height, 32px),
18
+ var(--typography-h3-max-line-height, 40px), $maxLetterSpacing,
19
+ var(--typography-h3-font, system-ui);
18
20
  }
19
21
 
20
- @define-mixin h4-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
21
- @mixin font $weight, var(--typography-h4-min), var(--typography-h4-max), $minLetterSpacing,
22
- var(--typography-h4-min-line-height), var(--typography-h4-max-line-height), $maxLetterSpacing,
23
- var(--typography-h4-font);
22
+ @define-mixin h4 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
23
+ @mixin font $weight, var(--typography-h4-min, 16px), var(--typography-h4-max, 18px),
24
+ $minLetterSpacing, var(--typography-h4-min-line-height, 24px),
25
+ var(--typography-h4-max-line-height, 30px), $maxLetterSpacing,
26
+ var(--typography-h4-font, system-ui);
24
27
  }
25
28
 
26
- @define-mixin h5-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
27
- @mixin font $weight, var(--typography-h5-min), var(--typography-h5-max), $minLetterSpacing,
28
- var(--typography-h5-min-line-height), var(--typography-h5-max-line-height), $maxLetterSpacing,
29
- var(--typography-h5-font);
29
+ @define-mixin h5 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
30
+ @mixin font $weight, var(--typography-h5-min, 14px), var(--typography-h5-max, 16px),
31
+ $minLetterSpacing, var(--typography-h5-min-line-height, 18px),
32
+ var(--typography-h5-max-line-height, 26px), $maxLetterSpacing,
33
+ var(--typography-h5-font, system-ui);
30
34
  }
31
35
 
32
- @define-mixin h6-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
33
- @mixin font $weight, var(--typography-h6-min), var(--typography-h6-max), $minLetterSpacing,
34
- var(--typography-h6-min-line-height), var(--typography-h6-max-line-height), $maxLetterSpacing,
35
- var(--typography-h6-font);
36
+ @define-mixin h6 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
37
+ @mixin font $weight, var(--typography-h6-min, 12px), var(--typography-h6-max, 18px),
38
+ $minLetterSpacing, var(--typography-h6-min-line-height, 16px),
39
+ var(--typography-h6-max-line-height, 24px), $maxLetterSpacing,
40
+ var(--typography-h6-font, system-ui);
36
41
  }
37
42
 
38
- @define-mixin p-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
39
- @mixin font $weight, var(--typography-p-min), var(--typography-p-max), $minLetterSpacing,
40
- var(--typography-p-min-line-height), var(--typography-p-max-line-height), $maxLetterSpacing,
41
- var(--typography-p-font);
43
+ @define-mixin p $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
44
+ @mixin font $weight, var(--typography-p-min, 16px), var(--typography-p-max, 24px),
45
+ $minLetterSpacing, var(--typography-p-min-line-height, 24px),
46
+ var(--typography-p-max-line-height, 36px), $maxLetterSpacing,
47
+ var(--typography-p-font, system-ui);
42
48
  }
43
49
 
44
- @define-mixin text-xxl-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
45
- @mixin font $weight, var(--typography-text-xxl-min), var(--typography-text-xxl-max),
46
- $minLetterSpacing, var(--typography-text-xxl-min-line-height),
47
- var(--typography-text-xxl-max-line-height), $maxLetterSpacing, var(--typography-text-xxl-font);
50
+ @define-mixin text-xxl $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
51
+ @mixin font $weight, var(--typography-text-xxl-min, 24px), var(--typography-text-xxl-max, 28px),
52
+ $minLetterSpacing, var(--typography-text-xxl-min-line-height, 24px),
53
+ var(--typography-text-xxl-max-line-height, 28px), $maxLetterSpacing,
54
+ var(--typography-text-xxl-font, system-ui);
48
55
  }
49
56
 
50
- @define-mixin text-xl-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
51
- @mixin font $weight, var(--typography-text-xl-min), var(--typography-text-xl-max),
52
- $minLetterSpacing, var(--typography-text-xl-min-line-height),
53
- var(--typography-text-xl-max-line-height), $maxLetterSpacing, var(--typography-text-xl-font);
57
+ @define-mixin text-xl $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
58
+ @mixin font $weight, var(--typography-text-xl-min, 20px), var(--typography-text-xl-max, 24px),
59
+ $minLetterSpacing, var(--typography-text-xl-min-line-height, 20px),
60
+ var(--typography-text-xl-max-line-height, 24px), $maxLetterSpacing,
61
+ var(--typography-text-xl-font, system-ui);
54
62
  }
55
63
 
56
- @define-mixin text-l-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
57
- @mixin font $weight, var(--typography-text-l-min), var(--typography-text-l-max), $minLetterSpacing,
58
- var(--typography-text-l-min-line-height), var(--typography-text-l-max-line-height),
59
- $maxLetterSpacing, var(--typography-text-l-font);
64
+ @define-mixin text-l $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
65
+ @mixin font $weight, var(--typography-text-l-min, 18px), var(--typography-text-l-max, 24px),
66
+ $minLetterSpacing, var(--typography-text-l-min-line-height, 18px),
67
+ var(--typography-text-l-max-line-height, 24px), $maxLetterSpacing,
68
+ var(--typography-text-l-font, system-ui);
60
69
  }
61
70
 
62
- @define-mixin text-m-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
63
- @mixin font $weight, var(--typography-text-m-min), var(--typography-text-m-max), $minLetterSpacing,
64
- var(--typography-text-m-min-line-height), var(--typography-text-m-max-line-height),
65
- $maxLetterSpacing, var(--typography-text-m-font);
71
+ @define-mixin text-m $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
72
+ @mixin font $weight, var(--typography-text-m-min, 16px), var(--typography-text-m-max, 18px),
73
+ $minLetterSpacing, var(--typography-text-m-min-line-height, 16px),
74
+ var(--typography-text-m-max-line-height, 20px), $maxLetterSpacing,
75
+ var(--typography-text-m-font, system-ui);
66
76
  }
67
77
 
68
- @define-mixin text-s-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
69
- @mixin font $weight, var(--typography-text-s-min), var(--typography-text-s-max), $minLetterSpacing,
70
- var(--typography-text-s-min-line-height), var(--typography-text-s-max-line-height),
71
- $maxLetterSpacing, var(--typography-text-s-font);
78
+ @define-mixin text-s $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
79
+ @mixin font $weight, var(--typography-text-s-min, 14px), var(--typography-text-s-max, 18px),
80
+ $minLetterSpacing, var(--typography-text-s-min-line-height, 14px),
81
+ var(--typography-text-s-max-line-height, 18px), $maxLetterSpacing,
82
+ var(--typography-text-s-font, system-ui);
72
83
  }
73
84
 
74
- @define-mixin text-xs-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
75
- @mixin font $weight, var(--typography-text-xs-min), var(--typography-text-xs-max),
76
- $minLetterSpacing, var(--typography-text-xs-min-line-height),
77
- var(--typography-text-xs-max-line-height), $maxLetterSpacing, var(--typography-text-xs-font);
85
+ @define-mixin text-xs $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
86
+ @mixin font $weight, var(--typography-text-xs-min, 12px), var(--typography-text-xs-max, 16px),
87
+ $minLetterSpacing, var(--typography-text-xs-min-line-height, 12px),
88
+ var(--typography-text-xs-max-line-height, 16px), $maxLetterSpacing,
89
+ var(--typography-text-xs-font, system-ui);
78
90
  }
79
91
 
80
- @define-mixin text-xxs-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
81
- @mixin font $weight, var(--typography-text-xxs-min), var(--typography-text-xxs-max),
82
- $minLetterSpacing, var(--typography-text-xxs-min-line-height),
83
- var(--typography-text-xxs-max-line-height), $maxLetterSpacing, var(--typography-text-xxs-font);
92
+ @define-mixin text-xxs $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
93
+ @mixin font $weight, var(--typography-text-xxs-min, 10px), var(--typography-text-xxs-max, 14px),
94
+ $minLetterSpacing, var(--typography-text-xxs-min-line-height, 10px),
95
+ var(--typography-text-xxs-max-line-height, 14px), $maxLetterSpacing,
96
+ var(--typography-text-xxs-font, system-ui);
84
97
  }
85
98
 
86
99
  @define-mixin email-h1 $weight: normal {
87
- @mixin font-fixed $weight, $weight, var(--typography-email-h1), $letterSpacing,
88
- var(--typography-email-h1-line-height), var(--typography-email-h1-font);
100
+ @mixin font-fixed $weight, var(--typography-email-h1, 32px),
101
+ var(--typography-email-h1-line-height, 38px), var(--font-email);
89
102
  }
90
103
 
91
104
  @define-mixin email-h2 $weight: normal {
92
- @mixin font-fixed $weight, $weight, var(--typography-email-h2), $letterSpacing,
93
- var(--typography-email-h2-line-height), var(--typography-email-h2-font);
105
+ @mixin font-fixed $weight, var(--typography-email-h2, 26px),
106
+ var(--typography-email-h2-line-height, 32px), var(--font-email);
94
107
  }
95
108
 
96
109
  @define-mixin email-h3 $weight: normal {
97
- @mixin font-fixed $weight, $weight, var(--typography-email-h3), $letterSpacing,
98
- var(--typography-email-h3-line-height), var(--typography-email-h3-font);
110
+ @mixin font-fixed $weight, var(--typography-email-h3, 18px),
111
+ var(--typography-email-h3-line-height, 24px), var(--font-email);
99
112
  }
100
113
 
101
114
  @define-mixin email-h4 $weight: normal {
102
- @mixin font-fixed $weight, $weight, var(--typography-email-h4), $letterSpacing,
103
- var(--typography-email-h4-line-height), var(--typography-email-h4-font);
115
+ @mixin font-fixed $weight, var(--typography-email-h4, 24px),
116
+ var(--typography-email-h4-line-height, 30px), var(--font-email);
104
117
  }
105
118
 
106
119
  @define-mixin email-h5 $weight: normal {
107
- @mixin font-fixed $weight, $weight, var(--typography-email-h5), $letterSpacing,
108
- var(--typography-email-h5-line-height), var(--typography-email-h5-font);
120
+ @mixin font-fixed $weight, var(--typography-email-h5, 18px),
121
+ var(--typography-email-h5-line-height, 24px), var(--font-email);
109
122
  }
110
123
 
111
124
  @define-mixin email-h6 $weight: normal {
112
- @mixin font-fixed $weight, $weight, var(--typography-email-h6), $letterSpacing,
113
- var(--typography-email-h6-line-height), var(--typography-email-h6-font);
125
+ @mixin font-fixed $weight, var(--typography-email-h6, 12px),
126
+ var(--typography-email-h6-line-height, 18px), var(--font-email);
114
127
  }
115
128
 
116
129
  @define-mixin email-p $weight: normal {
117
- @mixin font-fixed $weight, $weight, var(--typography-email-p), $letterSpacing,
118
- var(--typography-email-p-line-height), var(--typography-email-p-font);
130
+ @mixin font-fixed $weight, var(--typography-email-p, 16px),
131
+ var(--typography-email-p-line-height, 24px), var(--font-email);
119
132
  }
120
133
 
121
134
  @define-mixin email-text-xxl $weight: normal {
122
- @mixin font-fixed $weight, $weight, var(--typography-email-text-xxl), $letterSpacing,
123
- var(--typography-email-text-xxl-line-height), var(--typography-email-text-xxl-font);
135
+ @mixin font-fixed $weight, var(--typography-email-text-xxl, 24px),
136
+ var(--typography-email-text-xxl-line-height, 28px), var(--font-email);
124
137
  }
125
138
 
126
139
  @define-mixin email-text-xl $weight: normal {
127
- @mixin font-fixed $weight, $weight, var(--typography-email-text-xl), $letterSpacing,
128
- var(--typography-email-text-xl-line-height), var(--typography-email-text-xl-font);
140
+ @mixin font-fixed $weight, var(--typography-email-text-xl, 20px),
141
+ var(--typography-email-text-xl-line-height, 24px), var(--font-email);
129
142
  }
130
143
 
131
144
  @define-mixin email-text-l $weight: normal {
132
- @mixin font-fixed $weight, $weight, var(--typography-email-text-l), $letterSpacing,
133
- var(--typography-email-text-l-line-height), var(--typography-email-text-l-font);
145
+ @mixin font-fixed $weight, var(--typography-email-text-l, 18px),
146
+ var(--typography-email-text-l-line-height, 24px), var(--font-email);
134
147
  }
135
148
 
136
149
  @define-mixin email-text-m $weight: normal {
137
- @mixin font-fixed $weight, $weight, var(--typography-email-text-m), $letterSpacing,
138
- var(--typography-email-text-m-line-height), var(--typography-email-text-m-font);
150
+ @mixin font-fixed $weight, var(--typography-email-text-m, 16px),
151
+ var(--typography-email-text-m-line-height, 18px), var(--font-email);
139
152
  }
140
153
 
141
154
  @define-mixin email-text-s $weight: normal {
142
- @mixin font-fixed $weight, $weight, var(--typography-email-text-s), $letterSpacing,
143
- var(--typography-email-text-s-line-height), var(--typography-email-text-s-font);
155
+ @mixin font-fixed $weight, var(--typography-email-text-s, 14px),
156
+ var(--typography-email-text-s-line-height, 18px), var(--font-email);
144
157
  }
145
158
 
146
159
  @define-mixin email-text-xs $weight: normal {
147
- @mixin font-fixed $weight, $weight, var(--typographyemail-text-xs), $letterSpacing,
148
- var(--typographyemail-text-xs-line-height), var(--typographyemail-text-xs-font);
160
+ @mixin font-fixed $weight, var(--typography-email-text-xs, 12px),
161
+ var(--typographyemail-text-xs-line-height, 16px), var(--font-email);
149
162
  }
150
163
 
151
164
  @define-mixin email-text-xxs $weight: normal {
152
- @mixin font-fixed $weight, $weight, var(--typography-email-text-xxs), $letterSpacing,
153
- var(--typography-email-text-xxs-line-height), var(--typography-email-text-xxs-font);
165
+ @mixin font-fixed $weight, var(--typography-email-text-xxs, 10px),
166
+ var(--typography-email-text-xxs-line-height, 14px), var(--font-email);
167
+ }
168
+
169
+ @define-mixin text-gradient-primary {
170
+ color: transparent;
171
+ background: linear-gradient(90deg, hsla(266, 100%, 64%, 1) 0%, hsla(213, 79%, 68%, 1) 50%);
172
+ background-clip: text;
173
+ text-fill-color: transparent;
154
174
  }
@@ -1,4 +1,4 @@
1
- @define-mixin font $fontWeight, $minFontSize, $minLineHeight, $minLetterSpacing, $maxFontSize,
1
+ @define-mixin font $fontWeight, $minFontSize, $maxFontSize, $minLetterSpacing, $minLineHeight,
2
2
  $maxLineHeight, $maxLetterSpacing, $fontFamily {
3
3
  font-size: responsive $minFontSize $maxFontSize;
4
4
  font-range: var(--min-max);
@@ -1,8 +1,10 @@
1
1
  .border-color {
2
- @each $type in accent, primary, secondary, tertiary, quaternary, quinary, senary, surface, error, success, warning, info, danger, gradient {
2
+ @each $type in accent, primary, secondary, tertiary, quaternary, quinary, senary, surface, error,
3
+ success, warning, info, danger, gradient {
3
4
  &_$(type) {
4
5
  &-border {
5
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, active, disabled, hover, invert {
6
+ @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, active,
7
+ disabled, hover, inverse {
6
8
  &-$(color) {
7
9
  border-width: 1px;
8
10
  border-color: var(--color-$(type)-border-$(color));
@@ -4,14 +4,19 @@
4
4
  }
5
5
  @each $type in accent, primary, secondary, tertiary, surface, success, error {
6
6
  &_$(type) {
7
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover {
7
+ @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled,
8
+ hover {
8
9
  &-$(color) {
9
- @each $direction in left, top, right, bottom {
10
+ @each $direction in left, top, right, bottom {
10
11
  &-$(direction) {
11
- background: linear-gradient(to $(direction), var(--color-$(type)-text-gradient-$(color)-start) 0%, var(--color-$(type)-text-gradient-$(color)-end) 100%);
12
+ color: transparent;
13
+ background: linear-gradient(
14
+ to $(direction),
15
+ var(--color-$(type)-text-gradient-$(color)-start) 0%,
16
+ var(--color-$(type)-text-gradient-$(color)-end) 100%
17
+ );
12
18
  background-clip: text;
13
19
  text-fill-color: transparent;
14
- color: transparent;
15
20
  }
16
21
  }
17
22
  }
@@ -0,0 +1,105 @@
1
+ /* stylelint-disable custom-property-empty-line-before, value-keyword-case */
2
+
3
+ :root {
4
+ --color-accent-primary: hsla(216, 99%, 63%, 1);
5
+ --color-accent-primary-hover: hsla(216, 99%, 55%, 1);
6
+
7
+ --color-accent-text-primary: hsla(0, 0%, 100%, 1);
8
+ --color-accent-text-secondary: hsla(216, 99%, 63%, 1);
9
+
10
+ --color-accent-item-primary: hsla(0, 0%, 100%, 1);
11
+ --color-accent-item-secondary: hsla(216, 99%, 63%, 1);
12
+
13
+ --color-accent-border-primary: hsla(216, 99%, 63%, 1);
14
+ --color-accent-border-primary-hover: hsla(216, 99%, 73%, 1);
15
+
16
+ --color-primary: hsla(0, 94%, 66%, 1);
17
+ --color-primary-primary: hsla(0, 94%, 66%, 1);
18
+ --color-primary-secondary: hsla(360, 94%, 80%, 1);
19
+ --color-primary-hover-primary: hsla(0, 94%, 66%, 1);
20
+ --color-primary-hover-secondary: hsla(0, 94%, 95%, 1);
21
+
22
+ --color-primary-text-primary: hsla(0, 0%, 100%, 1);
23
+ --color-primary-text-secondary: hsla(0, 94%, 66%, 1);
24
+
25
+ --color-primary-item-primary: hsla(0, 0%, 100%, 1);
26
+ --color-primary-item-secondary: hsla(0, 94%, 66%, 1);
27
+
28
+ --color-primary-border-primary: hsla(0, 0%, 100%, 1);
29
+ --color-primary-border-secondary: hsla(0, 94%, 66%, 1);
30
+
31
+ --color-secondary: hsla(210, 8%, 75%, 1);
32
+ --color-secondary-primary: hsla(210, 8%, 75%, 1);
33
+ --color-secondary-primary-hover: hsla(210, 8%, 1%, 1);
34
+
35
+ --color-secondary-secondary: hsla(210, 7%, 85%, 1);
36
+ --color-secondary-secondary-hover: hsla(210, 8%, 95%, 1);
37
+
38
+ --color-secondary-text-primary: hsla(0, 0%, 100%, 1);
39
+ --color-secondary-text-secondary: hsla(0, 0%, 59%, 1);
40
+ --color-secondary-text-tertiary: hsla(0, 0%, 34%, 1);
41
+
42
+ --color-secondary-item-primary: hsla(0, 0%, 100%, 1);
43
+ --color-secondary-item-secondary: hsla(0, 0%, 59%, 1);
44
+
45
+ --color-secondary-border-primary: hsla(0, 0%, 59%, 1);
46
+
47
+ --color-tertiary-primary: hsla(50, 100%, 62%, 1);
48
+ --color-tertiary-secondary: hsla(50, 100%, 77%, 1);
49
+
50
+ --color-tertiary-text-primary: hsla(0, 0%, 34%, 1);
51
+ --color-tertiary-text-secondary: hsla(50, 100%, 62%, 1);
52
+
53
+ --color-tertiary-item-primary: hsla(0, 0%, 34%, 1);
54
+
55
+ --color-surface-primary: hsla(0, 0%, 100%, 1);
56
+ --color-surface-primary-hover: hsla(0, 0%, 98%, 1);
57
+
58
+ --color-surface-secondary: hsla(220, 14%, 96%, 1);
59
+ --color-surface-secondary-hover: hsla(0, 0%, 98%, 1);
60
+
61
+ --color-surface-tertiary: hsla(0, 0%, 85%, 1);
62
+ --color-surface-tertiary-hover: hsla(0, 0%, 95%, 1);
63
+
64
+ --color-surface-quaternary: hsla(0, 0%, 97%, 1);
65
+ --color-surface-quaternary-hover: hsla(0, 0%, 95%, 1);
66
+
67
+ --color-surface-text-primary: hsla(0, 0%, 34%, 1);
68
+ --color-surface-text-primary-hover: hsla(216, 99%, 63%, 1);
69
+ --color-surface-text-secondary: hsla(210, 9%, 56%, 1);
70
+ --color-surface-text-tertiary: hsla(210, 12%, 76%, 1);
71
+ --color-surface-text-quaternary: hsla(0, 94%, 66%, 1);
72
+
73
+ --color-surface-text-accent: hsla(216, 99%, 63%, 1);
74
+ --color-surface-text-accent-hover: hsla(216, 99%, 43%, 1);
75
+
76
+ --color-surface-item-primary: hsla(0, 0%, 34%, 1);
77
+ --color-surface-item-secondary: hsla(210, 8%, 75%, 1);
78
+ --color-surface-item-accent: hsla(216, 99%, 63%, 1);
79
+
80
+ --color-surface-border-primary: hsla(0, 0%, 34%, 1);
81
+ --color-surface-border-secondary: hsla(0, 0%, 59%, 1);
82
+ --color-surface-border-tertiary: hsla(210, 5%, 89%, 1);
83
+ --color-surface-border-accent: hsla(216, 99%, 63%, 1);
84
+
85
+ --color-gradient-primary: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
86
+
87
+ --color-success: hsla(107, 100%, 34%, 1);
88
+
89
+ --color-success-item-primary: hsla(0, 0%, 100%, 1);
90
+
91
+ --color-success-text-primary: hsla(107, 100%, 34%, 1);
92
+ --color-success-text-secondary: hsla(0, 0%, 100%, 1);
93
+
94
+ --color-success-border-primary: hsla(107, 100%, 34%, 1);
95
+
96
+ --color-error-primary: hsla(6, 99%, 57%, 1);
97
+ --color-error-text-primary: hsla(0, 0%, 100%, 1);
98
+ --color-error-text-secondary: hsla(6, 99%, 57%, 1);
99
+
100
+ --color-error-item-primary: hsla(0, 0%, 100%, 1);
101
+
102
+ --color-error-border-primary: hsla(6, 99%, 57%, 1);
103
+
104
+ --color-fader: hsla(0, 0%, 59%, 0.2);
105
+ }
@@ -0,0 +1,10 @@
1
+ :root {
2
+ --elevation-1: 0px 1px 1px rgba(0, 0, 0, 0.24);
3
+ --elevation-2: 0px 2px 4px rgba(0, 0, 0, 0.24);
4
+ --elevation-4: 0px 2px 6px rgba(0, 0, 0, 0.24);
5
+ --elevation-6: 0px 2px 6px rgba(0, 0, 0, 0.24);
6
+ --elevation-8: 0px 4px 8px rgba(0, 0, 0, 0.16);
7
+ --elevation-12: 0px 6px 12px rgba(0, 0, 0, 0.16);
8
+ --elevation-16: 0px 8px 16px rgba(0, 0, 0, 0.16);
9
+ --elevation-24: 0px 16px 24px rgba(0, 0, 0, 0.12);
10
+ }
@@ -0,0 +1,31 @@
1
+ /* stylelint-disable custom-property-empty-line-before, value-keyword-case */
2
+
3
+ :root {
4
+ --min-max: 375px 1440px;
5
+ --min: 320px;
6
+ --max: 1440px;
7
+ }
8
+
9
+ @media (--mobile) {
10
+ :root {
11
+ --wrapper-margin: 16px;
12
+ }
13
+ }
14
+
15
+ @media (--tablet), (--desktop-small), (--desktop-medium) {
16
+ :root {
17
+ --wrapper-margin: 24px;
18
+ }
19
+ }
20
+
21
+ @media (--desktop-normal) {
22
+ :root {
23
+ --wrapper-margin: 40px;
24
+ }
25
+ }
26
+
27
+ @media (--desktop) {
28
+ :root {
29
+ --wrapper-margin: 96px;
30
+ }
31
+ }
@@ -0,0 +1,127 @@
1
+ :root {
2
+ --typography-h1-min: 32px;
3
+ --typography-h1-max: 38px;
4
+ --typography-h1-min-line-height: 64px;
5
+ --typography-h1-max-line-height: 80px;
6
+ --typography-h1-font: var(--font-primary);
7
+
8
+ --typography-h2-min: 26px;
9
+ --typography-h2-max: 32px;
10
+ --typography-h2-min-line-height: 46px;
11
+ --typography-h2-max-line-height: 58px;
12
+ --typography-h2-font: var(--font-primary);
13
+
14
+ --typography-h3-min: 18px;
15
+ --typography-h3-max: 24px;
16
+ --typography-h3-min-line-height: 32px;
17
+ --typography-h3-max-line-height: 40px;
18
+ --typography-h3-font: var(--font-primary);
19
+
20
+ --typography-h4-min: 16px;
21
+ --typography-h4-max: 18px;
22
+ --typography-h4-min-line-height: 24px;
23
+ --typography-h4-max-line-height: 30px;
24
+ --typography-h4-font: var(--font-primary);
25
+
26
+ --typography-h5-min: 14px;
27
+ --typography-h5-max: 16px;
28
+ --typography-h5-min-line-height: 18px;
29
+ --typography-h5-max-line-height: 26px;
30
+ --typography-h5-font: var(--font-primary);
31
+
32
+ --typography-h6-min: 12px;
33
+ --typography-h6-max: 18px;
34
+ --typography-h6-min-line-height: 16px;
35
+ --typography-h6-max-line-height: 24px;
36
+ --typography-h6-font: var(--font-primary);
37
+
38
+ --typography-p-min: 16px;
39
+ --typography-p-max: 24px;
40
+ --typography-p-min-line-height: 24px;
41
+ --typography-p-max-line-height: 36px;
42
+ --typography-p-font: var(--font-primary);
43
+
44
+ --typography-text-xxl-min: 24px;
45
+ --typography-text-xxl-max: 28px;
46
+ --typography-text-xxl-min-line-height: 24px;
47
+ --typography-text-xxl-max-line-height: 28px;
48
+ --typography-text-xxl-font: var(--font-primary);
49
+
50
+ --typography-text-xl-min: 20px;
51
+ --typography-text-xl-max: 24px;
52
+ --typography-text-xl-min-line-height: 20px;
53
+ --typography-text-xl-max-line-height: 24px;
54
+ --typography-text-xl-font: var(--font-primary);
55
+
56
+ --typography-text-l-min: 18px;
57
+ --typography-text-l-max: 24px;
58
+ --typography-text-l-min-line-height: 18px;
59
+ --typography-text-l-max-line-height: 24px;
60
+ --typography-text-l-font: var(--font-primary);
61
+
62
+ --typography-text-m-min: 16px;
63
+ --typography-text-m-max: 18px;
64
+ --typography-text-m-min-line-height: 16px;
65
+ --typography-text-m-max-line-height: 20px;
66
+ --typography-text-m-font: var(--font-primary);
67
+
68
+ --typography-text-s-min: 14px;
69
+ --typography-text-s-max: 18px;
70
+ --typography-text-s-min-line-height: 14px;
71
+ --typography-text-s-max-line-height: 18px;
72
+ --typography-text-s-font: var(--font-primary);
73
+
74
+ --typography-text-xs-min: 12px;
75
+ --typography-text-xs-max: 16px;
76
+ --typography-text-xs-min-line-height: 12px;
77
+ --typography-text-xs-max-line-height: 16px;
78
+ --typography-text-xs-font: var(--font-primary);
79
+
80
+ --typography-text-xxs-min: 10px;
81
+ --typography-text-xxs-max: 14px;
82
+ --typography-text-xxs-min-line-height: 10px;
83
+ --typography-text-xxs-max-line-height: 14px;
84
+ --typography-text-xxs-font: var(--font-primary);
85
+
86
+ --typography-email-h1: 32px;
87
+ --typography-email-h1-line-height: 38px;
88
+
89
+ --typography-email-h2: 26px;
90
+ --typography-email-h2-line-height: 32px;
91
+
92
+ --typography-email-h3: 18px;
93
+ --typography-email-h3-line-height: 24px;
94
+
95
+ --typography-email-h4: 24px;
96
+ --typography-email-h4-line-height: 30px;
97
+
98
+ --typography-email-h5: 18px;
99
+ --typography-email-h5-line-height: 24px;
100
+
101
+ --typography-email-h6: 12px;
102
+ --typography-email-h6-line-height: 18px;
103
+
104
+ --typography-email-p: 16px;
105
+ --typography-email-p-line-height: 24px;
106
+
107
+ --typography-email-text-xxl: 24px;
108
+ --typography-email-text-xxl-line-height: 28px;
109
+
110
+ --typography-email-text-xl: 20px;
111
+ --typography-email-text-xl-line-height: 24px;
112
+
113
+ --typography-email-text-l: 18px;
114
+ --typography-email-text-l-line-height: 24px;
115
+
116
+ --typography-email-text-m: 16px;
117
+ --typography-email-text-m-line-height: 18px;
118
+
119
+ --typography-email-text-s: 14px;
120
+ --typography-email-text-s-line-height: 18px;
121
+
122
+ --typography-email-text-xs: 12px;
123
+ --typography-email-text-xs-line-height: 16px;
124
+
125
+ --typography-email-text-xxs: 10px;
126
+ --typography-email-text-xxs-line-height: 14px;
127
+ }
@@ -0,0 +1,11 @@
1
+ import { Canvas, Meta } from '@storybook/blocks'
2
+
3
+ import * as AccordionStories from './Accordion.stories.js'
4
+
5
+ <Meta of={AccordionStories} />
6
+
7
+ # Accordion
8
+
9
+ ## Default
10
+
11
+ <Canvas of={AccordionStories.Default} />