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.
- package/cjs/assets/Alert.scss +37 -0
- package/cjs/assets/Avatar.scss +82 -0
- package/cjs/assets/AvatarGroup.scss +48 -0
- package/cjs/assets/Badge.scss +83 -0
- package/cjs/assets/Card.scss +7 -0
- package/cjs/assets/Checkbox.scss +297 -0
- package/cjs/assets/Chip.scss +96 -0
- package/cjs/assets/DatePicker.scss +7 -0
- package/cjs/assets/HelperText.scss +10 -0
- package/cjs/assets/Interval.scss +35 -0
- package/cjs/assets/ListItem.scss +34 -0
- package/cjs/assets/Loader.scss +37 -0
- package/cjs/assets/Logo.scss +29 -0
- package/cjs/assets/Period.scss +10 -0
- package/cjs/assets/Rating.scss +19 -0
- package/cjs/assets/Select.scss +26 -0
- package/cjs/assets/Slider.scss +6 -0
- package/cjs/assets/Status.scss +45 -0
- package/cjs/assets/StepItem.scss +67 -0
- package/cjs/assets/StepItemIcon.scss +47 -0
- package/cjs/assets/Stepper.scss +34 -0
- package/cjs/assets/Switch.scss +69 -0
- package/cjs/assets/TextArea.scss +15 -0
- package/cjs/assets/TextField.scss +160 -0
- package/cjs/assets/Tooltip.scss +18 -0
- package/cjs/assets/styles.scss +26 -1
- package/cjs/lib/helpers/helpers.d.ts +1 -0
- package/cjs/lib/helpers/helpers.js +10 -2
- package/cjs/ui/Adornment/Adornment.js +9 -5
- package/cjs/ui/Adornment/Adornment.module.scss +2 -18
- package/cjs/ui/Alert/Alert.js +5 -1
- package/cjs/ui/Alert/Alert.module.scss +2 -38
- package/cjs/ui/Avatar/Avatar.js +5 -1
- package/cjs/ui/Avatar/Avatar.module.scss +1 -82
- package/cjs/ui/Avatar/AvatarGroup.js +5 -1
- package/cjs/ui/Avatar/AvatarGroup.module.scss +1 -48
- package/cjs/ui/Badge/Badge.js +5 -1
- package/cjs/ui/Badge/Badge.module.scss +1 -83
- package/cjs/ui/Button/Button.d.ts +1 -1
- package/cjs/ui/Button/Button.js +9 -5
- package/cjs/ui/Button/Button.module.scss +2 -298
- package/cjs/ui/Button/ButtonGroup.js +5 -1
- package/cjs/ui/Button/ButtonIcon.js +4 -0
- package/cjs/ui/Card/Card.js +5 -1
- package/cjs/ui/Card/Card.module.scss +1 -7
- package/cjs/ui/Chip/Chip.js +5 -1
- package/cjs/ui/Chip/Chip.module.scss +1 -96
- package/cjs/ui/Form/Checkbox/Checkbox.js +5 -1
- package/cjs/ui/Form/Checkbox/Checkbox.module.scss +1 -297
- package/cjs/ui/Form/Checkbox/Radio.js +6 -2
- package/cjs/ui/Form/DateField/DateField.js +0 -1
- package/cjs/ui/Form/DatePicker/DatePicker.module.scss +1 -7
- package/cjs/ui/Form/Interval/Interval.js +5 -1
- package/cjs/ui/Form/Interval/Interval.module.scss +1 -35
- package/cjs/ui/Form/Interval/IntervalSlide.js +5 -1
- package/cjs/ui/Form/Period/Period.js +5 -1
- package/cjs/ui/Form/Period/Period.module.scss +1 -9
- package/cjs/ui/Form/Rating/Rating.js +5 -1
- package/cjs/ui/Form/Rating/Rating.module.scss +1 -19
- package/cjs/ui/Form/Select/Select.js +5 -1
- package/cjs/ui/Form/Select/Select.module.scss +1 -26
- package/cjs/ui/Form/Switch/Switch.js +5 -1
- package/cjs/ui/Form/Switch/Switch.module.scss +1 -69
- package/cjs/ui/Form/TextArea/TextArea.js +4 -0
- package/cjs/ui/Form/TextArea/TextArea.module.scss +1 -15
- package/cjs/ui/Form/TextField/TextField.js +5 -1
- package/cjs/ui/Form/TextField/TextField.module.scss +1 -160
- package/cjs/ui/HelperText/HelperText.js +5 -1
- package/cjs/ui/HelperText/HelperText.module.scss +1 -10
- package/cjs/ui/List/ListItem.js +5 -1
- package/cjs/ui/List/ListItem.module.scss +1 -34
- package/cjs/ui/Loader/Loader.js +5 -1
- package/cjs/ui/Loader/Loader.module.scss +1 -37
- package/cjs/ui/Logo/Logo.js +5 -1
- package/cjs/ui/Logo/Logo.module.scss +1 -29
- package/cjs/ui/Slider/RcSlider.d.ts +0 -2
- package/cjs/ui/Slider/RcSlider.js +1 -9
- package/cjs/ui/Slider/Slider.d.ts +1 -1
- package/cjs/ui/Slider/Slider.js +4 -1
- package/cjs/ui/Slider/Slider.module.scss +1 -6
- package/cjs/ui/Status/Status.js +5 -1
- package/cjs/ui/Status/Status.module.scss +1 -45
- package/cjs/ui/Stepper/StepItem.js +5 -1
- package/cjs/ui/Stepper/StepItem.module.scss +1 -67
- package/cjs/ui/Stepper/StepItemIcon.js +5 -1
- package/cjs/ui/Stepper/StepItemIcon.module.scss +1 -47
- package/cjs/ui/Stepper/Stepper.js +5 -1
- package/cjs/ui/Stepper/Stepper.module.scss +1 -34
- package/cjs/ui/Tooltip/Tooltip.js +5 -1
- package/cjs/ui/Tooltip/Tooltip.module.scss +1 -18
- package/dist/armtek-uikit-react-main.js +60 -60
- package/dist/armtek-uikit-react-main.min.js +1 -1
- package/dist/css/main.css +19 -0
- package/esm/assets/Alert.scss +37 -0
- package/esm/assets/Avatar.scss +82 -0
- package/esm/assets/AvatarGroup.scss +48 -0
- package/esm/assets/Badge.scss +83 -0
- package/esm/assets/Card.scss +7 -0
- package/esm/assets/Checkbox.scss +297 -0
- package/esm/assets/Chip.scss +96 -0
- package/esm/assets/DatePicker.scss +7 -0
- package/esm/assets/HelperText.scss +10 -0
- package/esm/assets/Interval.scss +35 -0
- package/esm/assets/ListItem.scss +34 -0
- package/esm/assets/Loader.scss +37 -0
- package/esm/assets/Logo.scss +29 -0
- package/esm/assets/Period.scss +10 -0
- package/esm/assets/Rating.scss +19 -0
- package/esm/assets/Select.scss +26 -0
- package/esm/assets/Slider.scss +6 -0
- package/esm/assets/Status.scss +45 -0
- package/esm/assets/StepItem.scss +67 -0
- package/esm/assets/StepItemIcon.scss +47 -0
- package/esm/assets/Stepper.scss +34 -0
- package/esm/assets/Switch.scss +69 -0
- package/esm/assets/TextArea.scss +15 -0
- package/esm/assets/TextField.scss +160 -0
- package/esm/assets/Tooltip.scss +18 -0
- package/esm/assets/styles.scss +26 -1
- package/esm/index.js +15 -15
- package/esm/lib/helpers/helpers.d.ts +1 -0
- package/esm/lib/helpers/helpers.js +7 -0
- package/esm/ui/Adornment/Adornment.js +10 -5
- package/esm/ui/Adornment/Adornment.module.scss +2 -18
- package/esm/ui/Alert/Alert.js +6 -2
- package/esm/ui/Alert/Alert.module.scss +2 -38
- package/esm/ui/Avatar/Avatar.js +5 -1
- package/esm/ui/Avatar/Avatar.module.scss +1 -82
- package/esm/ui/Avatar/AvatarGroup.js +5 -1
- package/esm/ui/Avatar/AvatarGroup.module.scss +1 -48
- package/esm/ui/Badge/Badge.js +5 -1
- package/esm/ui/Badge/Badge.module.scss +1 -83
- package/esm/ui/Button/Button.d.ts +1 -1
- package/esm/ui/Button/Button.js +5 -1
- package/esm/ui/Button/Button.module.scss +2 -298
- package/esm/ui/Button/ButtonGroup.js +5 -1
- package/esm/ui/Button/ButtonIcon.js +6 -2
- package/esm/ui/Card/Card.js +5 -1
- package/esm/ui/Card/Card.module.scss +1 -7
- package/esm/ui/Chip/Chip.js +5 -1
- package/esm/ui/Chip/Chip.module.scss +1 -96
- package/esm/ui/Form/Checkbox/Checkbox.js +5 -1
- package/esm/ui/Form/Checkbox/Checkbox.module.scss +1 -297
- package/esm/ui/Form/Checkbox/Radio.js +7 -3
- package/esm/ui/Form/DateField/DateField.js +4 -5
- package/esm/ui/Form/DateField/TimeField.js +1 -1
- package/esm/ui/Form/DatePicker/DatePicker.module.scss +1 -7
- package/esm/ui/Form/DatePicker/PeriodSelect.js +1 -1
- package/esm/ui/Form/DatePicker/TimePicker.js +1 -1
- package/esm/ui/Form/Interval/Interval.js +7 -3
- package/esm/ui/Form/Interval/Interval.module.scss +1 -35
- package/esm/ui/Form/Interval/IntervalSlide.js +7 -3
- package/esm/ui/Form/Password/Password.js +2 -2
- package/esm/ui/Form/Period/Period.js +10 -6
- package/esm/ui/Form/Period/Period.module.scss +1 -9
- package/esm/ui/Form/Rating/Rating.js +5 -1
- package/esm/ui/Form/Rating/Rating.module.scss +1 -19
- package/esm/ui/Form/Select/Select.js +9 -5
- package/esm/ui/Form/Select/Select.module.scss +1 -26
- package/esm/ui/Form/Switch/Switch.js +5 -1
- package/esm/ui/Form/Switch/Switch.module.scss +1 -69
- package/esm/ui/Form/TextArea/TextArea.js +6 -2
- package/esm/ui/Form/TextArea/TextArea.module.scss +1 -15
- package/esm/ui/Form/TextField/TextField.js +6 -2
- package/esm/ui/Form/TextField/TextField.module.scss +1 -160
- package/esm/ui/HelperText/HelperText.js +5 -1
- package/esm/ui/HelperText/HelperText.module.scss +1 -10
- package/esm/ui/List/ListItem.js +7 -3
- package/esm/ui/List/ListItem.module.scss +1 -34
- package/esm/ui/Loader/Loader.js +5 -1
- package/esm/ui/Loader/Loader.module.scss +1 -37
- package/esm/ui/Logo/Logo.js +5 -1
- package/esm/ui/Logo/Logo.module.scss +1 -29
- package/esm/ui/Slider/RcSlider.d.ts +0 -2
- package/esm/ui/Slider/RcSlider.js +0 -2
- package/esm/ui/Slider/Slider.d.ts +1 -1
- package/esm/ui/Slider/Slider.js +7 -4
- package/esm/ui/Slider/Slider.module.scss +1 -6
- package/esm/ui/Status/Status.js +5 -1
- package/esm/ui/Status/Status.module.scss +1 -45
- package/esm/ui/Stepper/StepItem.js +7 -3
- package/esm/ui/Stepper/StepItem.module.scss +1 -67
- package/esm/ui/Stepper/StepItemIcon.js +5 -1
- package/esm/ui/Stepper/StepItemIcon.module.scss +1 -47
- package/esm/ui/Stepper/Stepper.js +6 -2
- package/esm/ui/Stepper/Stepper.module.scss +1 -34
- package/esm/ui/Tooltip/Tooltip.js +5 -1
- package/esm/ui/Tooltip/Tooltip.module.scss +1 -18
- package/package.json +1 -1
- package/ButtonClasses/package.json +0 -7
- package/cjs/ui/Button/Button.css +0 -3
- package/cjs/ui/Button/ButtonClasses.d.ts +0 -3
- package/cjs/ui/Button/ButtonClasses.js +0 -12
- package/cjs/ui/Form/Password/Password.module.scss +0 -2
- package/dist/css/main.e207d402.css +0 -18
- package/esm/ui/Button/Button.css +0 -3
- package/esm/ui/Button/ButtonClasses.d.ts +0 -3
- package/esm/ui/Button/ButtonClasses.js +0 -7
- package/esm/ui/Form/Password/Password.module.scss +0 -2
|
@@ -1,82 +1 @@
|
|
|
1
|
-
@import "
|
|
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 "
|
|
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";
|
package/esm/ui/Badge/Badge.js
CHANGED
|
@@ -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 "
|
|
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;
|
package/esm/ui/Button/Button.js
CHANGED
|
@@ -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 "
|
|
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
|
|
1
|
+
import Button from "./Button";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import css from
|
|
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, {
|
package/esm/ui/Card/Card.js
CHANGED
|
@@ -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", {
|
package/esm/ui/Chip/Chip.js
CHANGED
|
@@ -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,
|