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
|
@@ -4,8 +4,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.default = exports.AdornmentContainer = void 0;
|
|
6
6
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
+
var _AdornmentModule = _interopRequireDefault(require("./Adornment.module.scss"));
|
|
7
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
-
// import
|
|
9
|
+
// import { getCssPrefix } from 'lib/helpers/helpers'
|
|
10
|
+
const AdornmentClasses = ['adornmentContainer', 'adornmentContainer_end', 'adornment_start', 'adornment_end'];
|
|
11
|
+
|
|
12
|
+
// const css = getCssPrefix(AdornmentClasses)
|
|
9
13
|
|
|
10
14
|
const Adornment = props => {
|
|
11
15
|
let {
|
|
@@ -18,8 +22,8 @@ const Adornment = props => {
|
|
|
18
22
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
23
|
...spanProps,
|
|
20
24
|
className: (0, _clsx.default)(className, {
|
|
21
|
-
'adornment_start': position === 'start',
|
|
22
|
-
'adornment_end': position !== 'start'
|
|
25
|
+
[_AdornmentModule.default['adornment_start']]: position === 'start',
|
|
26
|
+
[_AdornmentModule.default['adornment_end']]: position !== 'start'
|
|
23
27
|
}),
|
|
24
28
|
children: children
|
|
25
29
|
})
|
|
@@ -35,8 +39,8 @@ const AdornmentContainer = props => {
|
|
|
35
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
36
40
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
41
|
...inputProps,
|
|
38
|
-
className: (0, _clsx.default)(
|
|
39
|
-
['adornmentContainer_end']: position !== 'start'
|
|
42
|
+
className: (0, _clsx.default)(_AdornmentModule.default.adornmentContainer, {
|
|
43
|
+
[_AdornmentModule.default['adornmentContainer_end']]: position !== 'start'
|
|
40
44
|
}, className),
|
|
41
45
|
children: children
|
|
42
46
|
})
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
|
|
3
|
-
.adornmentContainer{
|
|
4
|
-
display: flex;
|
|
5
|
-
}
|
|
6
|
-
.adornmentContainer_end{
|
|
7
|
-
margin-left: auto;
|
|
8
|
-
}
|
|
9
|
-
.adornment_end{
|
|
10
|
-
& + * {
|
|
11
|
-
margin-left: $size-step;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
.adornment_start{
|
|
15
|
-
& + * {
|
|
16
|
-
margin-left: $size-step;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
@import "./../../assets/variables";
|
|
2
|
+
@import "./../../assets/Adornment";
|
package/cjs/ui/Alert/Alert.js
CHANGED
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.default = void 0;
|
|
6
|
-
var _AlertModule = _interopRequireDefault(require("./Alert.module.scss"));
|
|
7
6
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
8
7
|
var _ButtonIcon = _interopRequireDefault(require("../Button/ButtonIcon"));
|
|
8
|
+
var _AlertModule = _interopRequireDefault(require("./Alert.module.scss"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
const AlertClasses = ['alert', 'alert__title', 'alert__close', 'alert__icon', 'alert_success', 'alert_warning', 'alert_info', 'alert_error'];
|
|
11
|
+
|
|
12
|
+
// const css = getCssPrefix(AlertClasses)
|
|
13
|
+
|
|
10
14
|
const Alert = props => {
|
|
11
15
|
let {
|
|
12
16
|
title,
|
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
|
|
3
|
-
.alert{
|
|
4
|
-
padding: calc($size-step * 2) calc($size-step * 5) calc($size-step * 2) calc($size-step * 7);
|
|
5
|
-
background: $color-gray-300;
|
|
6
|
-
border-radius: $radius;
|
|
7
|
-
position: relative;
|
|
8
|
-
}
|
|
9
|
-
.alert__title{
|
|
10
|
-
font-weight: 700;
|
|
11
|
-
margin-bottom: calc($size-step / 2);
|
|
12
|
-
}
|
|
13
|
-
.alert__close{
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: calc($size-step / 2);
|
|
16
|
-
right: calc($size-step / 2);
|
|
17
|
-
}
|
|
18
|
-
.alert__icon{
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: calc($size-step * 2);
|
|
21
|
-
left: calc($size-step * 2);
|
|
22
|
-
}
|
|
23
|
-
.alert_success{
|
|
24
|
-
color: $color-success-dark;
|
|
25
|
-
background: $color-greent-50;
|
|
26
|
-
}
|
|
27
|
-
.alert_warning{
|
|
28
|
-
color: $color-secondary-dark;
|
|
29
|
-
background: $color-orange-50;
|
|
30
|
-
}
|
|
31
|
-
.alert_info{
|
|
32
|
-
color: $color-primary-dark;
|
|
33
|
-
background: $color-blue-50;
|
|
34
|
-
}
|
|
35
|
-
.alert_error{
|
|
36
|
-
color: $color-error-dark;
|
|
37
|
-
background: $color-red-50;
|
|
38
|
-
}
|
|
1
|
+
@import "./../../assets/variables";
|
|
2
|
+
@import "./../../assets/Alert";
|
package/cjs/ui/Avatar/Avatar.js
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.default = void 0;
|
|
6
|
-
var _AvatarModule = _interopRequireDefault(require("./Avatar.module.scss"));
|
|
7
6
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
+
var _AvatarModule = _interopRequireDefault(require("./Avatar.module.scss"));
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
const AvatarClasses = ['avatar', 'avatar__inner', 'avatar_small', 'avatar_medium', 'avatar__name', 'avatar__icon', 'avatar__status', 'avatar__img', 'avatar__status_success', 'avatar__status_error', 'avatar__status_warning'];
|
|
10
|
+
|
|
11
|
+
// const css = getCssPrefix(AvatarClasses)
|
|
12
|
+
|
|
9
13
|
const getLetters = name => {
|
|
10
14
|
let nameParts = name.split(' ');
|
|
11
15
|
return nameParts[0].split('')[0] + (nameParts[1] ? nameParts[1].split('')[0] : '');
|
|
@@ -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";
|
|
@@ -4,9 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.default = void 0;
|
|
6
6
|
var _react = require("react");
|
|
7
|
-
var _AvatarGroupModule = _interopRequireDefault(require("./AvatarGroup.module.scss"));
|
|
8
7
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
8
|
+
var _AvatarGroupModule = _interopRequireDefault(require("./AvatarGroup.module.scss"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
const AvatarGroupClasses = ['avatarGroup', 'avatarGroup_medium', 'avatarGroup__item', 'avatarGroup__remains', 'avatarGroup__remains_medium', 'avatarGroup__remains_small'];
|
|
11
|
+
|
|
12
|
+
// const css = getCssPrefix(AvatarGroupClasses)
|
|
13
|
+
|
|
10
14
|
const AvatarGroup = props => {
|
|
11
15
|
let arrChildren = _react.Children.toArray(props.children);
|
|
12
16
|
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/cjs/ui/Badge/Badge.js
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.default = void 0;
|
|
6
|
-
var _BadgeModule = _interopRequireDefault(require("./Badge.module.scss"));
|
|
7
6
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
+
var _BadgeModule = _interopRequireDefault(require("./Badge.module.scss"));
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
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'];
|
|
10
|
+
|
|
11
|
+
// const css = getCssPrefix(BadgeClasses)
|
|
12
|
+
|
|
9
13
|
function Badge(props) {
|
|
10
14
|
let {
|
|
11
15
|
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/cjs/ui/Button/Button.js
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.default = void 0;
|
|
6
|
-
var _ButtonClasses = require("./ButtonClasses");
|
|
7
6
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
+
var _ButtonModule = _interopRequireDefault(require("./Button.module.scss"));
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
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'];
|
|
10
|
+
|
|
11
|
+
// const css = getCssPrefix(ButtonClasses)
|
|
12
|
+
|
|
9
13
|
const Button = props => {
|
|
10
14
|
let {
|
|
11
15
|
size = 'extraLarge',
|
|
@@ -23,16 +27,16 @@ const Button = props => {
|
|
|
23
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
24
28
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
|
|
25
29
|
...restProps,
|
|
26
|
-
className: (0, _clsx.default)(
|
|
27
|
-
[
|
|
30
|
+
className: (0, _clsx.default)(_ButtonModule.default.button, _ButtonModule.default['button_' + size], _ButtonModule.default['button_' + variant], _ButtonModule.default['button_' + color], className, {
|
|
31
|
+
[_ButtonModule.default['button_grouped_' + group]]: group
|
|
28
32
|
}),
|
|
29
33
|
children: [startAdornment && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
30
|
-
className: (0, _clsx.default)(
|
|
34
|
+
className: (0, _clsx.default)(_ButtonModule.default.button__adornment, _ButtonModule.default.button__adornment_start),
|
|
31
35
|
children: startAdornment
|
|
32
36
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
33
37
|
children: children
|
|
34
38
|
}), endAdornment && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
-
className: (0, _clsx.default)(
|
|
39
|
+
className: (0, _clsx.default)(_ButtonModule.default.button__adornment, _ButtonModule.default.button__adornment_end),
|
|
36
40
|
children: endAdornment
|
|
37
41
|
})]
|
|
38
42
|
})
|