armtek-uikit-react 1.0.13 → 1.0.14

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 (199) hide show
  1. package/cjs/assets/Alert.scss +37 -0
  2. package/cjs/assets/Avatar.scss +82 -0
  3. package/cjs/assets/AvatarGroup.scss +48 -0
  4. package/cjs/assets/Badge.scss +83 -0
  5. package/cjs/assets/Card.scss +7 -0
  6. package/cjs/assets/Checkbox.scss +297 -0
  7. package/cjs/assets/Chip.scss +96 -0
  8. package/cjs/assets/DatePicker.scss +7 -0
  9. package/cjs/assets/HelperText.scss +10 -0
  10. package/cjs/assets/Interval.scss +35 -0
  11. package/cjs/assets/ListItem.scss +34 -0
  12. package/cjs/assets/Loader.scss +37 -0
  13. package/cjs/assets/Logo.scss +29 -0
  14. package/cjs/assets/Period.scss +10 -0
  15. package/cjs/assets/Rating.scss +19 -0
  16. package/cjs/assets/Select.scss +26 -0
  17. package/cjs/assets/Slider.scss +6 -0
  18. package/cjs/assets/Status.scss +45 -0
  19. package/cjs/assets/StepItem.scss +67 -0
  20. package/cjs/assets/StepItemIcon.scss +47 -0
  21. package/cjs/assets/Stepper.scss +34 -0
  22. package/cjs/assets/Switch.scss +69 -0
  23. package/cjs/assets/TextArea.scss +15 -0
  24. package/cjs/assets/TextField.scss +160 -0
  25. package/cjs/assets/Tooltip.scss +18 -0
  26. package/cjs/assets/styles.scss +26 -1
  27. package/cjs/lib/helpers/helpers.d.ts +1 -0
  28. package/cjs/lib/helpers/helpers.js +10 -2
  29. package/cjs/ui/Adornment/Adornment.js +9 -5
  30. package/cjs/ui/Adornment/Adornment.module.scss +2 -18
  31. package/cjs/ui/Alert/Alert.js +5 -1
  32. package/cjs/ui/Alert/Alert.module.scss +2 -38
  33. package/cjs/ui/Avatar/Avatar.js +5 -1
  34. package/cjs/ui/Avatar/Avatar.module.scss +1 -82
  35. package/cjs/ui/Avatar/AvatarGroup.js +5 -1
  36. package/cjs/ui/Avatar/AvatarGroup.module.scss +1 -48
  37. package/cjs/ui/Badge/Badge.js +5 -1
  38. package/cjs/ui/Badge/Badge.module.scss +1 -83
  39. package/cjs/ui/Button/Button.d.ts +1 -1
  40. package/cjs/ui/Button/Button.js +9 -5
  41. package/cjs/ui/Button/Button.module.scss +2 -298
  42. package/cjs/ui/Button/ButtonGroup.js +5 -1
  43. package/cjs/ui/Button/ButtonIcon.js +4 -0
  44. package/cjs/ui/Card/Card.js +5 -1
  45. package/cjs/ui/Card/Card.module.scss +1 -7
  46. package/cjs/ui/Chip/Chip.js +5 -1
  47. package/cjs/ui/Chip/Chip.module.scss +1 -96
  48. package/cjs/ui/Form/Checkbox/Checkbox.js +5 -1
  49. package/cjs/ui/Form/Checkbox/Checkbox.module.scss +1 -297
  50. package/cjs/ui/Form/Checkbox/Radio.js +6 -2
  51. package/cjs/ui/Form/DateField/DateField.js +0 -1
  52. package/cjs/ui/Form/DatePicker/DatePicker.module.scss +1 -7
  53. package/cjs/ui/Form/Interval/Interval.js +5 -1
  54. package/cjs/ui/Form/Interval/Interval.module.scss +1 -35
  55. package/cjs/ui/Form/Interval/IntervalSlide.js +5 -1
  56. package/cjs/ui/Form/Period/Period.js +5 -1
  57. package/cjs/ui/Form/Period/Period.module.scss +1 -9
  58. package/cjs/ui/Form/Rating/Rating.js +5 -1
  59. package/cjs/ui/Form/Rating/Rating.module.scss +1 -19
  60. package/cjs/ui/Form/Select/Select.js +5 -1
  61. package/cjs/ui/Form/Select/Select.module.scss +1 -26
  62. package/cjs/ui/Form/Switch/Switch.js +5 -1
  63. package/cjs/ui/Form/Switch/Switch.module.scss +1 -69
  64. package/cjs/ui/Form/TextArea/TextArea.js +4 -0
  65. package/cjs/ui/Form/TextArea/TextArea.module.scss +1 -15
  66. package/cjs/ui/Form/TextField/TextField.js +5 -1
  67. package/cjs/ui/Form/TextField/TextField.module.scss +1 -160
  68. package/cjs/ui/HelperText/HelperText.js +5 -1
  69. package/cjs/ui/HelperText/HelperText.module.scss +1 -10
  70. package/cjs/ui/List/ListItem.js +5 -1
  71. package/cjs/ui/List/ListItem.module.scss +1 -34
  72. package/cjs/ui/Loader/Loader.js +5 -1
  73. package/cjs/ui/Loader/Loader.module.scss +1 -37
  74. package/cjs/ui/Logo/Logo.js +5 -1
  75. package/cjs/ui/Logo/Logo.module.scss +1 -29
  76. package/cjs/ui/Slider/RcSlider.d.ts +0 -2
  77. package/cjs/ui/Slider/RcSlider.js +1 -9
  78. package/cjs/ui/Slider/Slider.d.ts +1 -1
  79. package/cjs/ui/Slider/Slider.js +4 -1
  80. package/cjs/ui/Slider/Slider.module.scss +1 -6
  81. package/cjs/ui/Status/Status.js +5 -1
  82. package/cjs/ui/Status/Status.module.scss +1 -45
  83. package/cjs/ui/Stepper/StepItem.js +5 -1
  84. package/cjs/ui/Stepper/StepItem.module.scss +1 -67
  85. package/cjs/ui/Stepper/StepItemIcon.js +5 -1
  86. package/cjs/ui/Stepper/StepItemIcon.module.scss +1 -47
  87. package/cjs/ui/Stepper/Stepper.js +5 -1
  88. package/cjs/ui/Stepper/Stepper.module.scss +1 -34
  89. package/cjs/ui/Tooltip/Tooltip.js +5 -1
  90. package/cjs/ui/Tooltip/Tooltip.module.scss +1 -18
  91. package/dist/armtek-uikit-react-main.js +60 -60
  92. package/dist/armtek-uikit-react-main.min.js +1 -1
  93. package/dist/css/main.css +19 -0
  94. package/esm/assets/Alert.scss +37 -0
  95. package/esm/assets/Avatar.scss +82 -0
  96. package/esm/assets/AvatarGroup.scss +48 -0
  97. package/esm/assets/Badge.scss +83 -0
  98. package/esm/assets/Card.scss +7 -0
  99. package/esm/assets/Checkbox.scss +297 -0
  100. package/esm/assets/Chip.scss +96 -0
  101. package/esm/assets/DatePicker.scss +7 -0
  102. package/esm/assets/HelperText.scss +10 -0
  103. package/esm/assets/Interval.scss +35 -0
  104. package/esm/assets/ListItem.scss +34 -0
  105. package/esm/assets/Loader.scss +37 -0
  106. package/esm/assets/Logo.scss +29 -0
  107. package/esm/assets/Period.scss +10 -0
  108. package/esm/assets/Rating.scss +19 -0
  109. package/esm/assets/Select.scss +26 -0
  110. package/esm/assets/Slider.scss +6 -0
  111. package/esm/assets/Status.scss +45 -0
  112. package/esm/assets/StepItem.scss +67 -0
  113. package/esm/assets/StepItemIcon.scss +47 -0
  114. package/esm/assets/Stepper.scss +34 -0
  115. package/esm/assets/Switch.scss +69 -0
  116. package/esm/assets/TextArea.scss +15 -0
  117. package/esm/assets/TextField.scss +160 -0
  118. package/esm/assets/Tooltip.scss +18 -0
  119. package/esm/assets/styles.scss +26 -1
  120. package/esm/index.js +15 -15
  121. package/esm/lib/helpers/helpers.d.ts +1 -0
  122. package/esm/lib/helpers/helpers.js +7 -0
  123. package/esm/ui/Adornment/Adornment.js +10 -5
  124. package/esm/ui/Adornment/Adornment.module.scss +2 -18
  125. package/esm/ui/Alert/Alert.js +6 -2
  126. package/esm/ui/Alert/Alert.module.scss +2 -38
  127. package/esm/ui/Avatar/Avatar.js +5 -1
  128. package/esm/ui/Avatar/Avatar.module.scss +1 -82
  129. package/esm/ui/Avatar/AvatarGroup.js +5 -1
  130. package/esm/ui/Avatar/AvatarGroup.module.scss +1 -48
  131. package/esm/ui/Badge/Badge.js +5 -1
  132. package/esm/ui/Badge/Badge.module.scss +1 -83
  133. package/esm/ui/Button/Button.d.ts +1 -1
  134. package/esm/ui/Button/Button.js +5 -1
  135. package/esm/ui/Button/Button.module.scss +2 -298
  136. package/esm/ui/Button/ButtonGroup.js +5 -1
  137. package/esm/ui/Button/ButtonIcon.js +6 -2
  138. package/esm/ui/Card/Card.js +5 -1
  139. package/esm/ui/Card/Card.module.scss +1 -7
  140. package/esm/ui/Chip/Chip.js +5 -1
  141. package/esm/ui/Chip/Chip.module.scss +1 -96
  142. package/esm/ui/Form/Checkbox/Checkbox.js +5 -1
  143. package/esm/ui/Form/Checkbox/Checkbox.module.scss +1 -297
  144. package/esm/ui/Form/Checkbox/Radio.js +7 -3
  145. package/esm/ui/Form/DateField/DateField.js +4 -5
  146. package/esm/ui/Form/DateField/TimeField.js +1 -1
  147. package/esm/ui/Form/DatePicker/DatePicker.module.scss +1 -7
  148. package/esm/ui/Form/DatePicker/PeriodSelect.js +1 -1
  149. package/esm/ui/Form/DatePicker/TimePicker.js +1 -1
  150. package/esm/ui/Form/Interval/Interval.js +7 -3
  151. package/esm/ui/Form/Interval/Interval.module.scss +1 -35
  152. package/esm/ui/Form/Interval/IntervalSlide.js +7 -3
  153. package/esm/ui/Form/Password/Password.js +2 -2
  154. package/esm/ui/Form/Period/Period.js +10 -6
  155. package/esm/ui/Form/Period/Period.module.scss +1 -9
  156. package/esm/ui/Form/Rating/Rating.js +5 -1
  157. package/esm/ui/Form/Rating/Rating.module.scss +1 -19
  158. package/esm/ui/Form/Select/Select.js +9 -5
  159. package/esm/ui/Form/Select/Select.module.scss +1 -26
  160. package/esm/ui/Form/Switch/Switch.js +5 -1
  161. package/esm/ui/Form/Switch/Switch.module.scss +1 -69
  162. package/esm/ui/Form/TextArea/TextArea.js +6 -2
  163. package/esm/ui/Form/TextArea/TextArea.module.scss +1 -15
  164. package/esm/ui/Form/TextField/TextField.js +6 -2
  165. package/esm/ui/Form/TextField/TextField.module.scss +1 -160
  166. package/esm/ui/HelperText/HelperText.js +5 -1
  167. package/esm/ui/HelperText/HelperText.module.scss +1 -10
  168. package/esm/ui/List/ListItem.js +7 -3
  169. package/esm/ui/List/ListItem.module.scss +1 -34
  170. package/esm/ui/Loader/Loader.js +5 -1
  171. package/esm/ui/Loader/Loader.module.scss +1 -37
  172. package/esm/ui/Logo/Logo.js +5 -1
  173. package/esm/ui/Logo/Logo.module.scss +1 -29
  174. package/esm/ui/Slider/RcSlider.d.ts +0 -2
  175. package/esm/ui/Slider/RcSlider.js +0 -2
  176. package/esm/ui/Slider/Slider.d.ts +1 -1
  177. package/esm/ui/Slider/Slider.js +7 -4
  178. package/esm/ui/Slider/Slider.module.scss +1 -6
  179. package/esm/ui/Status/Status.js +5 -1
  180. package/esm/ui/Status/Status.module.scss +1 -45
  181. package/esm/ui/Stepper/StepItem.js +7 -3
  182. package/esm/ui/Stepper/StepItem.module.scss +1 -67
  183. package/esm/ui/Stepper/StepItemIcon.js +5 -1
  184. package/esm/ui/Stepper/StepItemIcon.module.scss +1 -47
  185. package/esm/ui/Stepper/Stepper.js +6 -2
  186. package/esm/ui/Stepper/Stepper.module.scss +1 -34
  187. package/esm/ui/Tooltip/Tooltip.js +5 -1
  188. package/esm/ui/Tooltip/Tooltip.module.scss +1 -18
  189. package/package.json +1 -1
  190. package/ButtonClasses/package.json +0 -7
  191. package/cjs/ui/Button/Button.css +0 -3
  192. package/cjs/ui/Button/ButtonClasses.d.ts +0 -3
  193. package/cjs/ui/Button/ButtonClasses.js +0 -12
  194. package/cjs/ui/Form/Password/Password.module.scss +0 -2
  195. package/dist/css/main.e207d402.css +0 -18
  196. package/esm/ui/Button/Button.css +0 -3
  197. package/esm/ui/Button/ButtonClasses.d.ts +0 -3
  198. package/esm/ui/Button/ButtonClasses.js +0 -7
  199. package/esm/ui/Form/Password/Password.module.scss +0 -2
@@ -1,82 +1 @@
1
- @import "../../assets/styles";
2
-
3
- .avatar{
4
- width: $size-elarge;
5
- height: $size-elarge;
6
- min-width: $size-elarge;
7
- border-radius: 50%;
8
- background: $color-primary;
9
- color: #fff;
10
- position: relative;
11
- }
12
- .avatar__inner{
13
- overflow: hidden;
14
- border-radius: 50%;
15
- width: 100%;
16
- height: 100%;
17
- @include flex(center);
18
- }
19
- .avatar_medium{
20
- width: 40px;
21
- height: 40px;
22
- min-width: 40px;
23
- & .avatar__name{
24
- font-size: 16px;
25
- }
26
- & .avatar__icon{
27
- font-size: 30px;
28
- }
29
- & .avatar__status{
30
- right: -2px;
31
- bottom: -2px;
32
- }
33
- }
34
- .avatar_small{
35
- width: 24px;
36
- height: 24px;
37
- min-width: 24px;
38
- & .avatar__name{
39
- font-size: 12px;
40
- }
41
- & .avatar__icon{
42
- font-size: 20px;
43
- }
44
- & .avatar__status{
45
- right: -5px;
46
- bottom: -2px;
47
- }
48
- }
49
- .avatar__inner{
50
- font-size: 0;
51
- }
52
- .avatar__name{
53
- font-size: 24px;
54
- }
55
- .avatar__icon{
56
- font-size: 50px;
57
- }
58
- .avatar__img{
59
- display: block;
60
- width: 100%;
61
- height: 100%;
62
- object-fit: cover;
63
- }
64
-
65
- .avatar__status{
66
- position: absolute;
67
- width: 14px;
68
- height: 14px;
69
- border:1px solid #fff;
70
- border-radius: 50%;
71
- right: 0;
72
- bottom: 0;
73
- }
74
- .avatar__status_success{
75
- background: $color-success;
76
- }
77
- .avatar__status_error{
78
- background: $color-error-dark;
79
- }
80
- .avatar__status_warning{
81
- background: $color-warning;
82
- }
1
+ @import "./../../assets/Avatar";
@@ -1,9 +1,13 @@
1
1
  import { Children, cloneElement, isValidElement } from 'react';
2
- import css from './AvatarGroup.module.scss';
3
2
  import clsx from 'clsx';
3
+ import css from "./AvatarGroup.module.scss";
4
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  import { Fragment as _Fragment } from "react/jsx-runtime";
7
+ const AvatarGroupClasses = ['avatarGroup', 'avatarGroup_medium', 'avatarGroup__item', 'avatarGroup__remains', 'avatarGroup__remains_medium', 'avatarGroup__remains_small'];
8
+
9
+ // const css = getCssPrefix(AvatarGroupClasses)
10
+
7
11
  const AvatarGroup = props => {
8
12
  let arrChildren = Children.toArray(props.children);
9
13
  let visiblePart = arrChildren.slice(0, props.limit || 3);
@@ -1,48 +1 @@
1
- @import "../../assets/styles";
2
-
3
- .avatarGroup{
4
- @include flex(flex-end);
5
- transform: scale(-1, 1);
6
- }
7
- .avatarGroup_medium{
8
- & .avatarGroup__item + .avatarGroup__item{
9
- margin-left: -12px;
10
- }
11
- }
12
- .avatarGroup_small{
13
- & .avatarGroup__item + .avatarGroup__item{
14
- margin-left: -8px;
15
- }
16
- }
17
- .avatarGroup__remains{
18
- width: 60px;
19
- height: 60px;
20
- min-width: 60px;
21
- position: relative;
22
- @include flex(center);
23
- background: $color-neutral-light;
24
- font-size: 24px;
25
- color: #fff;
26
- }
27
- .avatarGroup__remains_medium{
28
- width: 44px;
29
- height: 44px;
30
- min-width: 44px;
31
- font-size: 16px;
32
- }
33
- .avatarGroup__remains_small{
34
- width: 28px;
35
- height: 28px;
36
- min-width: 28px;
37
- font-size: 12px;
38
- }
39
-
40
- .avatarGroup__item{
41
- position: relative;
42
- transform: scale(-1, 1);
43
- border: 2px solid #fff;
44
- border-radius: 50%;
45
- & + .avatarGroup__item{
46
- margin-left: -15px;
47
- }
48
- }
1
+ @import "./../../assets/AvatarGroup";
@@ -1,8 +1,12 @@
1
- import css from './Badge.module.scss';
2
1
  import clsx from 'clsx';
2
+ import css from "./Badge.module.scss";
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
5
5
  import { Fragment as _Fragment } from "react/jsx-runtime";
6
+ const BadgeClasses = ['badge', 'badge__item_primary', 'badge__item_secondary', 'badge__item_neutral', 'badge__item_error', 'badge__item_info', 'badge__item_warning', 'badge__item_success', 'badge__item_content', 'badge__item_content_circle', 'badge__item_content_square', 'badge__item_content_circle', 'badge__item_top-right', 'badge__item_top-left', 'badge__item_bottom-right', 'badge__item_bottom-left'];
7
+
8
+ // const css = getCssPrefix(BadgeClasses)
9
+
6
10
  function Badge(props) {
7
11
  let {
8
12
  color,
@@ -1,83 +1 @@
1
- @import "../../assets/styles";
2
-
3
- .badge{
4
- display: inline-block;
5
- position: relative;
6
- }
7
-
8
- $vertical_offset: calc(100% - 6px);
9
- $horizontal_offset: calc(100% - 6px);
10
-
11
- .badge__item{
12
- background: $color-error;
13
- color: #fff;
14
- position: absolute;
15
- width: 8px;
16
- height: 8px;
17
- bottom: $vertical_offset;
18
- left: $horizontal_offset;
19
- border-radius: 50%;
20
- &_primary{
21
- background: $color-primary;
22
- }
23
- &_secondary{
24
- background: $color-primary;
25
- }
26
- &_neutral{
27
- background: $color-neutral;
28
- }
29
- &_error{
30
- background: $color-error;
31
- }
32
- &_info{
33
- background: $color-info;
34
- }
35
- &_warning{
36
- background: $color-warning;
37
- }
38
- &_success{
39
- background: $color-success;
40
- color: $color-gray-900;
41
- }
42
- }
43
- .badge__item_content{
44
- width: 20px;
45
- height: 20px;
46
- @include flex(center);
47
- font-size: 12px;
48
- }
49
-
50
- .badge__item_content_circle,
51
- .badge__item_content_square{
52
- width: auto;
53
- height: auto;
54
- border-radius: $radius;
55
- font-size: 12px;
56
- font-weight: 500;
57
- line-height: 20px;
58
- padding:0 6px;
59
- }
60
- .badge__item_content_circle{
61
- border-radius: 10px;
62
- }
63
-
64
- .badge__item_top-right{
65
- bottom: $vertical_offset;
66
- left: $horizontal_offset;
67
- }
68
- .badge__item_top-left{
69
- bottom: $vertical_offset;
70
- right: $horizontal_offset;
71
- left: auto;
72
- }
73
- .badge__item_bottom-right{
74
- top: $vertical_offset;
75
- left: $horizontal_offset;
76
- bottom: auto;
77
- }
78
- .badge__item_bottom-left{
79
- top: $vertical_offset;
80
- right: $horizontal_offset;
81
- left: auto;
82
- bottom: auto;
83
- }
1
+ @import "./../../assets/Badge";
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, HTMLAttributes, ReactNode } from 'react';
2
- import { ColorThemeType, ColorType, SizeType, VariantType } from 'types/theme';
2
+ import { ColorThemeType, ColorType, SizeType, VariantType } from '../../types/theme';
3
3
  type OwnProps<T extends ElementType = ElementType> = {
4
4
  children: ReactNode;
5
5
  size?: SizeType;
@@ -1,8 +1,12 @@
1
- import { ButtonClasses as css } from './ButtonClasses';
2
1
  import clsx from 'clsx';
2
+ import css from "./Button.module.scss";
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
5
5
  import { Fragment as _Fragment } from "react/jsx-runtime";
6
+ const ButtonClasses = ['button', 'button_contained', 'button_transparent', 'button_outlined', 'button_primary', 'button_secondary', 'button_neutral', 'button_black', 'button__adornment', 'button__adornment_end', 'button__adornment_start', 'button_large', 'button_medium', 'button_small', 'button_icon', 'button_group', 'button_group_inline', 'button_group_column', 'button_grouped_inline', 'button_grouped_column'];
7
+
8
+ // const css = getCssPrefix(ButtonClasses)
9
+
6
10
  const Button = props => {
7
11
  let {
8
12
  size = 'extraLarge',
@@ -1,298 +1,2 @@
1
- @import "../../assets/styles";
2
-
3
- .button{
4
- outline: none;
5
- border:1px solid transparent;
6
- border-radius: $radius;
7
- text-transform: uppercase;
8
- padding: $size-step calc(3 * $size-step);
9
- cursor: pointer;
10
- @include transition(0.3s);
11
- font-weight: 500;
12
- font-size: 16px;
13
- height: $size-elarge;
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- &:disabled{
18
- cursor: initial;
19
- }
20
- }
21
- .button_contained {
22
- &.button_primary{
23
- color: #fff;
24
- background: $color-primary;
25
- &:hover{
26
- background: $color-primary-dark;
27
- }
28
- &:active{
29
- background: $color-blue-800;
30
- }
31
- &:disabled{
32
- background: $color-primary-light;
33
- }
34
- }
35
- &.button_secondary {
36
- background: $color-secondary;
37
- color: #fff;
38
- &:hover{
39
- background: $color-secondary-dark;
40
- }
41
- &:active{
42
- background: $color-orange-800;
43
- }
44
- &:disabled{
45
- background: $color-secondary-light;
46
- }
47
- }
48
- &.button_neutral {
49
- background: $color-neutral;
50
- &:hover{
51
- background: $color-neutral-dark;
52
- }
53
- &:active{
54
- background: $color-gray-600;
55
- }
56
- &:disabled{
57
- background: $color-secondary-light;
58
- }
59
- }
60
- &.button_black {
61
- background: $color-gray-900;
62
- &:hover{
63
- background: $color-neutral-dark;
64
- }
65
- &:active{
66
- background: $color-gray-600;
67
- }
68
- &:disabled{
69
- background: $color-secondary-light;
70
- }
71
- }
72
- }
73
- .button_outlined {
74
- background: transparent;
75
- &.button_primary{
76
-
77
- color: $color-primary;
78
- border-color: $color-primary;
79
- background: transparent;
80
- &:hover{
81
- background: rgba($color-primary, 0.1);
82
- }
83
- &:active{
84
- background: $color-blue-A100;
85
- }
86
- &:disabled{
87
- color: $color-primary-light;
88
- border-color: $color-primary-light;
89
- }
90
- }
91
- &.button_secondary {
92
- border-color: $color-secondary;
93
- color: $color-secondary;
94
- &:hover{
95
- background: rgba($color-secondary, 0.1);
96
- }
97
- &:active{
98
- background: $color-orange-100;
99
- }
100
- &:disabled{
101
- color: $color-primary-light;
102
- border-color: $color-primary-light;
103
- }
104
- }
105
- &.button_neutral,
106
- &.button_black {
107
- border-color: $color-gray-900;
108
- color: $color-gray-900;
109
- &:hover{
110
- background: rgba($color-neutral, 0.1);
111
- }
112
- &:active{
113
- background: $color-gray-300;
114
- }
115
- &:disabled{
116
- color: $color-neutral-light;
117
- border-color: $color-neutral-light;
118
- }
119
- }
120
- }
121
- .button_transparent {
122
- background: transparent;
123
- &.button_primary{
124
- color: $color-primary;
125
- background: transparent;
126
- &:hover{
127
- background: rgba($color-primary, 0.1);
128
- }
129
- &:active{
130
- background: $color-blue-A100;
131
- }
132
- &:disabled{
133
- color: $color-primary-light;
134
- background: none;
135
- }
136
- }
137
- &.button_secondary {
138
- color: $color-secondary;
139
- &:hover{
140
- background: rgba($color-secondary, 0.1);
141
- }
142
- &:active{
143
- background: $color-orange-100;
144
- }
145
- &:disabled{
146
- color: $color-primary-light;
147
- background: none;
148
- }
149
- }
150
- &.button_neutral,
151
- &.button_black {
152
- color: $color-gray-900;
153
- &:hover{
154
- background: rgba($color-neutral, 0.1);
155
- }
156
- &:active{
157
- background: $color-gray-300;
158
- }
159
- &:disabled{
160
- color: $color-neutral-light;
161
- background: none;
162
- }
163
- }
164
- }
165
-
166
- .button__adornment{
167
- font-size: inherit;
168
- }
169
- .button__adornment_end{
170
- margin-left: $size-step;
171
- }
172
- .button__adornment_start{
173
- margin-right: $size-step;
174
- }
175
-
176
- .button_large{
177
- height: $size-large;
178
- font-size: 15px;
179
- }
180
- .button_medium{
181
- height: $size-medium;
182
- font-size: 14px;
183
- }
184
- .button_small{
185
- height: $size-small;
186
- font-size: 13px;
187
- }
188
-
189
- .button_icon{
190
- padding: $size-step;
191
- width: $size-elarge;
192
- border-radius: 50%;
193
- display: flex;
194
- align-items: center;
195
- justify-content: center;
196
- font-size: 30px;
197
- &.button_large{
198
- width: $size-large;
199
- font-size: 24px;
200
- }
201
- &.button_medium{
202
- width: $size-medium;
203
- font-size: 20px;
204
- }
205
- &.button_small{
206
- width: $size-small;
207
- padding: calc($size-step / 2);
208
- font-size: 16px;
209
- }
210
- }
211
-
212
- .button_group{
213
- display: flex;
214
- align-items: center;
215
- }
216
- .button_group_inline{
217
- flex-direction: row;
218
- }
219
- .button_group_column{
220
- flex-direction: column;
221
- }
222
-
223
- .button_grouped_inline{
224
- border-radius: 0;
225
- &:first-child{
226
- border-top-left-radius: $radius;
227
- border-bottom-left-radius: $radius;
228
- }
229
- &:last-child{
230
- border-top-right-radius: $radius;
231
- border-bottom-right-radius: $radius;
232
- }
233
- &.button_contained{
234
- &.button_primary + *{
235
- border-left-color: $color-info-dark;
236
- }
237
- &.button_secondary + *{
238
- border-left-color: $color-primary-dark;
239
- }
240
- &.button_neutral + *{
241
- border-left-color: $color-neutral-dark;
242
- }
243
- &.button_black + *{
244
- border-left-color: $color-neutral-dark;
245
- }
246
- }
247
- &.button_outlined{
248
- &.button_primary + *{
249
- border-left-color: $color-info-dark;
250
- }
251
- &.button_primary:not(:last-child){
252
- border-right: 0;
253
- }
254
- &.button_secondary + *{
255
- border-left-color: $color-secondary;
256
- }
257
- &.button_secondary:not(:last-child){
258
- border-right: 0;
259
- }
260
- &.button_neutral + *{
261
- border-left-color: $color-neutral;
262
- }
263
- &.button_neutral:not(:last-child){
264
- border-right: 0;
265
- }
266
- &.button_black + *{
267
- border-left-color: $color-neutral;
268
- }
269
- &.button_black:not(:last-child){
270
- border-right: 0;
271
- }
272
- }
273
- &.button_transparent{
274
- &.button_primary + *{
275
- border-left-color: $color-gray-200;
276
- }
277
- &.button_secondary + *{
278
- border-left-color: $color-gray-200;
279
- }
280
- &.button_neutral + *{
281
- border-left-color: $color-gray-200;
282
- }
283
- &.button_black + *{
284
- border-left-color: $color-gray-200;
285
- }
286
- }
287
- }
288
- .button_grouped_column{
289
- border-radius: 0;
290
- &:first-child{
291
- border-top-left-radius: $radius;
292
- border-top-right-radius: $radius;
293
- }
294
- &:last-child{
295
- border-bottom-left-radius: $radius;
296
- border-bottom-right-radius: $radius;
297
- }
298
- }
1
+ @import "./../../assets/variables";
2
+ @import "./../../assets/Button";
@@ -1,7 +1,11 @@
1
- import css from './Button.module.scss';
2
1
  import clsx from 'clsx';
2
+ import css from "./Button.module.scss";
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { Fragment as _Fragment } from "react/jsx-runtime";
5
+ const ButtonGroupClasses = ['button_group', 'button_group_inline', 'button_group_column'];
6
+
7
+ // const css = getCssPrefix(ButtonGroupClasses)
8
+
5
9
  const ButtonGroup = props => {
6
10
  let {
7
11
  orientation = 'inline',
@@ -1,8 +1,12 @@
1
- import Button from './Button';
1
+ import Button from "./Button";
2
2
  import clsx from 'clsx';
3
- import css from './Button.module.scss';
3
+ import css from "./Button.module.scss";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  import { Fragment as _Fragment } from "react/jsx-runtime";
6
+ const ButtonIconClasses = ['button_icon'];
7
+
8
+ // const css = getCssPrefix(ButtonIconClasses)
9
+
6
10
  const ButtonIcon = props => {
7
11
  return /*#__PURE__*/_jsx(_Fragment, {
8
12
  children: /*#__PURE__*/_jsx(Button, {
@@ -1,7 +1,11 @@
1
- import css from './Card.module.scss';
2
1
  import clsx from 'clsx';
2
+ import css from "./Card.module.scss";
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { Fragment as _Fragment } from "react/jsx-runtime";
5
+ const CssClasses = ['card'];
6
+
7
+ // const css = getCssPrefix(CssClasses)
8
+
5
9
  const Card = props => {
6
10
  return /*#__PURE__*/_jsx(_Fragment, {
7
11
  children: /*#__PURE__*/_jsx("div", {
@@ -1,7 +1 @@
1
- @import "../../assets/styles";
2
-
3
- .card{
4
- padding: $size-step;
5
- box-shadow: $box-shadow;
6
- border-radius: $radius;
7
- }
1
+ @import "./../../assets/Card";
@@ -1,8 +1,12 @@
1
- import css from './Chip.module.scss';
2
1
  import clsx from 'clsx';
2
+ import css from "./Chip.module.scss";
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
5
5
  import { Fragment as _Fragment } from "react/jsx-runtime";
6
+ const CssClasses = ['chip', 'chip__inner', 'chip__icon', 'chip__close', 'chip__close_primary', 'chip__close_secondary', 'chip_small', 'chip__icon_small', 'chip__close_small', 'chip_outlined', 'chip_secondary', 'chip_primary'];
7
+
8
+ // const css = getCssPrefix(CssClasses)
9
+
6
10
  function Chip(props) {
7
11
  let {
8
12
  size,