armtek-uikit-react 1.0.13 → 1.0.15
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 → assets}/Adornment.scss +2 -0
- package/{esm/ui/Alert/Alert.module.scss → assets/Alert.scss} +1 -1
- package/{esm/ui/Avatar/Avatar.module.scss → assets/Avatar.scss} +1 -1
- package/{cjs/ui/Avatar/AvatarGroup.module.scss → assets/AvatarGroup.scss} +1 -1
- package/{cjs/ui/Badge/Badge.module.scss → assets/Badge.scss} +1 -1
- package/{cjs/assets → assets}/Button.scss +1 -32
- package/assets/ButtonGroup.scss +12 -0
- package/assets/ButtonIcon.scss +24 -0
- package/{cjs/ui/Card/Card.module.scss → assets/Card.scss} +1 -1
- package/{esm/ui/Form/Checkbox/Checkbox.module.scss → assets/Checkbox.scss} +1 -1
- package/{esm/ui/Chip/Chip.module.scss → assets/Chip.scss} +1 -1
- package/{cjs/ui/Form/DatePicker/DatePicker.module.scss → assets/DatePicker.scss} +1 -1
- package/{cjs/ui/HelperText/HelperText.module.scss → assets/HelperText.scss} +1 -1
- package/{esm/ui/Form/Interval/Interval.module.scss → assets/Interval.scss} +1 -1
- package/{esm/ui/List/ListItem.module.scss → assets/ListItem.scss} +1 -1
- package/{esm/ui/Loader/Loader.module.scss → assets/Loader.scss} +1 -1
- package/{esm/ui/Logo/Logo.module.scss → assets/Logo.scss} +1 -1
- package/{esm/ui/Form/Period/Period.module.scss → assets/Period.scss} +1 -1
- package/{esm/ui/Form/Rating/Rating.module.scss → assets/Rating.scss} +1 -1
- package/{cjs/ui/Form/Select/Select.module.scss → assets/Select.scss} +1 -1
- package/{esm/ui/Slider/Slider.module.scss → assets/Slider.scss} +1 -1
- package/{cjs/ui/Status/Status.module.scss → assets/Status.scss} +1 -1
- package/{esm/ui/Stepper/StepItem.module.scss → assets/StepItem.scss} +1 -1
- package/{cjs/ui/Stepper/StepItemIcon.module.scss → assets/StepItemIcon.scss} +1 -1
- package/{cjs/ui/Stepper/Stepper.module.scss → assets/Stepper.scss} +1 -1
- package/{esm/ui/Form/Switch/Switch.module.scss → assets/Switch.scss} +1 -1
- package/{cjs/ui/Form/TextArea/TextArea.module.scss → assets/TextArea.scss} +1 -1
- package/{cjs/ui/Form/TextField/TextField.module.scss → assets/TextField.scss} +1 -1
- package/{cjs/ui/Tooltip/Tooltip.module.scss → assets/Tooltip.scss} +1 -1
- package/assets/styles.scss +31 -0
- package/index.js +15 -0
- package/{esm/lib → lib}/helpers/helpers.js +7 -0
- package/package.json +25 -1
- package/{esm → types}/index.d.ts +3 -3
- package/{esm → types}/lib/helpers/helpers.d.ts +1 -0
- package/{cjs/ui/Button/Button.d.ts → types/ui/Button/index.d.ts} +3 -3
- package/{esm/ui/Button/ButtonIcon.d.ts → types/ui/ButtonIcon/index.d.ts} +1 -1
- package/types/ui/Slider/RcSlider.d.ts +0 -0
- package/{esm → types}/ui/Slider/Slider.d.ts +1 -1
- package/{esm → types}/ui/Stepper/StepItem.d.ts +1 -1
- package/{esm/ui → ui}/Adornment/Adornment.js +10 -5
- package/ui/Adornment/Adornment.module.scss +2 -0
- package/{esm/ui → ui}/Alert/Alert.js +7 -3
- package/ui/Alert/Alert.module.scss +2 -0
- package/{esm/ui → ui}/Avatar/Avatar.js +5 -1
- package/ui/Avatar/Avatar.module.scss +1 -0
- package/{esm/ui → ui}/Avatar/AvatarGroup.js +5 -1
- package/ui/Avatar/AvatarGroup.module.scss +1 -0
- package/{esm/ui → ui}/Badge/Badge.js +5 -1
- package/ui/Badge/Badge.module.scss +1 -0
- package/ui/Button/Button.module.scss +1 -0
- package/{esm/ui/Button/Button.js → ui/Button/index.js} +7 -3
- package/ui/ButtonGroup/ButtonGroup.module.scss +2 -0
- package/{esm/ui/Button/ButtonGroup.js → ui/ButtonGroup/index.js} +5 -1
- package/ui/ButtonIcon/ButtonIcon.module.scss +1 -0
- package/{esm/ui/Button/ButtonIcon.js → ui/ButtonIcon/index.js} +6 -2
- package/{esm/ui → ui}/Card/Card.js +5 -1
- package/ui/Card/Card.module.scss +1 -0
- package/{esm/ui → ui}/Chip/Chip.js +5 -1
- package/ui/Chip/Chip.module.scss +1 -0
- package/{esm/ui → ui}/Form/Checkbox/Checkbox.js +5 -1
- package/ui/Form/Checkbox/Checkbox.module.scss +1 -0
- package/{esm/ui → ui}/Form/Checkbox/Radio.js +7 -3
- package/{esm/ui → ui}/Form/DateField/DateField.js +5 -6
- package/{esm/ui → ui}/Form/DateField/TimeField.js +1 -1
- package/ui/Form/DatePicker/DatePicker.module.scss +1 -0
- package/{esm/ui → ui}/Form/DatePicker/PeriodSelect.js +1 -1
- package/{esm/ui → ui}/Form/DatePicker/TimePicker.js +1 -1
- package/{esm/ui → ui}/Form/Interval/Interval.js +7 -3
- package/ui/Form/Interval/Interval.module.scss +1 -0
- package/{esm/ui → ui}/Form/Interval/IntervalSlide.js +7 -3
- package/{esm/ui → ui}/Form/Password/Password.js +3 -3
- package/{esm/ui → ui}/Form/Period/Period.js +11 -7
- package/ui/Form/Period/Period.module.scss +2 -0
- package/{esm/ui → ui}/Form/Rating/Rating.js +5 -1
- package/ui/Form/Rating/Rating.module.scss +1 -0
- package/{esm/ui → ui}/Form/Select/Select.js +10 -6
- package/ui/Form/Select/Select.module.scss +1 -0
- package/{esm/ui → ui}/Form/Switch/Switch.js +5 -1
- package/ui/Form/Switch/Switch.module.scss +1 -0
- package/{esm/ui → ui}/Form/TextArea/TextArea.js +6 -2
- package/ui/Form/TextArea/TextArea.module.scss +1 -0
- package/{esm/ui → ui}/Form/TextField/TextField.js +6 -2
- package/ui/Form/TextField/TextField.module.scss +1 -0
- package/{esm/ui → ui}/HelperText/HelperText.js +5 -1
- package/ui/HelperText/HelperText.module.scss +1 -0
- package/{esm/ui → ui}/List/ListItem.js +7 -3
- package/ui/List/ListItem.module.scss +1 -0
- package/{esm/ui → ui}/Loader/Loader.js +5 -1
- package/ui/Loader/Loader.module.scss +1 -0
- package/{esm/ui → ui}/Logo/Logo.js +5 -1
- package/ui/Logo/Logo.module.scss +1 -0
- package/ui/Slider/RcSlider.js +0 -0
- package/{esm/ui → ui}/Slider/Slider.js +8 -5
- package/ui/Slider/Slider.module.scss +1 -0
- package/{esm/ui → ui}/Status/Status.js +5 -1
- package/ui/Status/Status.module.scss +1 -0
- package/{esm/ui → ui}/Stepper/StepItem.js +8 -4
- package/ui/Stepper/StepItem.module.scss +1 -0
- package/{esm/ui → ui}/Stepper/StepItemIcon.js +5 -1
- package/ui/Stepper/StepItemIcon.module.scss +1 -0
- package/{esm/ui → ui}/Stepper/Stepper.js +6 -2
- package/ui/Stepper/Stepper.module.scss +1 -0
- package/{esm/ui → ui}/Tooltip/Tooltip.js +5 -1
- package/ui/Tooltip/Tooltip.module.scss +1 -0
- package/Adornment/package.json +0 -7
- package/Alert/package.json +0 -7
- package/Avatar/package.json +0 -7
- package/AvatarGroup/package.json +0 -7
- package/Badge/package.json +0 -7
- package/Button/package.json +0 -7
- package/ButtonClasses/package.json +0 -7
- package/ButtonGroup/package.json +0 -7
- package/ButtonIcon/package.json +0 -7
- package/Card/package.json +0 -7
- package/Checkbox/package.json +0 -7
- package/Chip/package.json +0 -7
- package/DateField/package.json +0 -7
- package/DatePicker/package.json +0 -7
- package/DateService/package.json +0 -7
- package/HelperText/package.json +0 -7
- package/Interval/package.json +0 -7
- package/IntervalSlide/package.json +0 -7
- package/ListItem/package.json +0 -7
- package/Loader/package.json +0 -7
- package/Logo/package.json +0 -7
- package/Password/package.json +0 -7
- package/Period/package.json +0 -7
- package/PeriodSelect/package.json +0 -7
- package/Radio/package.json +0 -7
- package/Rating/package.json +0 -7
- package/RcSlider/package.json +0 -7
- package/Select/package.json +0 -7
- package/Slider/package.json +0 -7
- package/Status/package.json +0 -7
- package/StepItem/package.json +0 -7
- package/StepItemIcon/package.json +0 -7
- package/Stepper/package.json +0 -7
- package/Switch/package.json +0 -7
- package/TextArea/package.json +0 -7
- package/TextField/package.json +0 -7
- package/TimeField/package.json +0 -7
- package/TimePicker/package.json +0 -7
- package/Tooltip/package.json +0 -7
- package/cjs/assets/styles.scss +0 -6
- package/cjs/index.d.ts +0 -29
- package/cjs/index.js +0 -35
- package/cjs/lib/const/styles.js +0 -6
- package/cjs/lib/helpers/helpers.d.ts +0 -5
- package/cjs/lib/helpers/helpers.js +0 -48
- package/cjs/lib/hooks/useClickOutside.js +0 -22
- package/cjs/lib/services/DateService.js +0 -48
- package/cjs/types/theme.js +0 -3
- package/cjs/ui/Adornment/Adornment.js +0 -47
- package/cjs/ui/Adornment/Adornment.module.scss +0 -18
- package/cjs/ui/Alert/Alert.js +0 -46
- package/cjs/ui/Alert/Alert.module.scss +0 -38
- package/cjs/ui/Avatar/Avatar.js +0 -50
- package/cjs/ui/Avatar/Avatar.module.scss +0 -82
- package/cjs/ui/Avatar/AvatarGroup.js +0 -34
- package/cjs/ui/Badge/Badge.js +0 -34
- package/cjs/ui/Button/Button.css +0 -3
- package/cjs/ui/Button/Button.js +0 -43
- package/cjs/ui/Button/Button.module.scss +0 -298
- package/cjs/ui/Button/ButtonClasses.d.ts +0 -3
- package/cjs/ui/Button/ButtonClasses.js +0 -12
- package/cjs/ui/Button/ButtonGroup.js +0 -26
- package/cjs/ui/Button/ButtonIcon.d.ts +0 -3
- package/cjs/ui/Button/ButtonIcon.js +0 -21
- package/cjs/ui/Card/Card.js +0 -19
- package/cjs/ui/Chip/Chip.js +0 -41
- package/cjs/ui/Chip/Chip.module.scss +0 -96
- package/cjs/ui/Form/Checkbox/Checkbox.js +0 -53
- package/cjs/ui/Form/Checkbox/Checkbox.module.scss +0 -297
- package/cjs/ui/Form/Checkbox/Radio.js +0 -21
- package/cjs/ui/Form/DateField/DateField.js +0 -71
- package/cjs/ui/Form/DateField/TimeField.js +0 -19
- package/cjs/ui/Form/DatePicker/DatePicker.js +0 -51
- package/cjs/ui/Form/DatePicker/PeriodSelect.js +0 -29
- package/cjs/ui/Form/DatePicker/TimePicker.js +0 -28
- package/cjs/ui/Form/Interval/Interval.js +0 -98
- package/cjs/ui/Form/Interval/Interval.module.scss +0 -35
- package/cjs/ui/Form/Interval/IntervalSlide.js +0 -48
- package/cjs/ui/Form/Password/Password.js +0 -46
- package/cjs/ui/Form/Password/Password.module.scss +0 -2
- package/cjs/ui/Form/Period/Period.js +0 -69
- package/cjs/ui/Form/Period/Period.module.scss +0 -10
- package/cjs/ui/Form/Rating/Rating.js +0 -54
- package/cjs/ui/Form/Rating/Rating.module.scss +0 -19
- package/cjs/ui/Form/Select/Select.js +0 -139
- package/cjs/ui/Form/Switch/Switch.js +0 -30
- package/cjs/ui/Form/Switch/Switch.module.scss +0 -69
- package/cjs/ui/Form/TextArea/TextArea.js +0 -46
- package/cjs/ui/Form/TextField/TextField.js +0 -152
- package/cjs/ui/HelperText/HelperText.js +0 -28
- package/cjs/ui/List/ListItem.js +0 -60
- package/cjs/ui/List/ListItem.module.scss +0 -34
- package/cjs/ui/Loader/Loader.js +0 -120
- package/cjs/ui/Loader/Loader.module.scss +0 -37
- package/cjs/ui/Logo/Logo.js +0 -102
- package/cjs/ui/Logo/Logo.module.scss +0 -29
- package/cjs/ui/Slider/RcSlider.d.ts +0 -2
- package/cjs/ui/Slider/RcSlider.js +0 -9
- package/cjs/ui/Slider/Slider.d.ts +0 -8
- package/cjs/ui/Slider/Slider.js +0 -36
- package/cjs/ui/Slider/Slider.module.scss +0 -6
- package/cjs/ui/Status/Status.js +0 -31
- package/cjs/ui/Stepper/StepItem.d.ts +0 -14
- package/cjs/ui/Stepper/StepItem.js +0 -56
- package/cjs/ui/Stepper/StepItem.module.scss +0 -67
- package/cjs/ui/Stepper/StepItemIcon.js +0 -40
- package/cjs/ui/Stepper/Stepper.js +0 -45
- package/cjs/ui/Tooltip/Tooltip.js +0 -32
- package/dist/armtek-uikit-react-main.js +0 -1357
- package/dist/armtek-uikit-react-main.min.js +0 -2
- package/dist/armtek-uikit-react-main.min.js.LICENSE.txt +0 -15
- package/dist/css/main.e207d402.css +0 -18
- package/esm/assets/Adornment.scss +0 -16
- package/esm/assets/Button.scss +0 -297
- package/esm/assets/fonts.scss +0 -2
- package/esm/assets/global.css +0 -72
- package/esm/assets/styles.scss +0 -6
- package/esm/assets/variables.scss +0 -67
- package/esm/index.js +0 -15
- package/esm/lib/const/styles.d.ts +0 -1
- package/esm/lib/hooks/useClickOutside.d.ts +0 -3
- package/esm/lib/services/DateService.d.ts +0 -12
- package/esm/types/theme.d.ts +0 -10
- package/esm/ui/Adornment/Adornment.d.ts +0 -7
- package/esm/ui/Adornment/Adornment.module.scss +0 -18
- package/esm/ui/Alert/Alert.d.ts +0 -10
- package/esm/ui/Avatar/Avatar.d.ts +0 -13
- package/esm/ui/Avatar/AvatarGroup.d.ts +0 -8
- package/esm/ui/Avatar/AvatarGroup.module.scss +0 -48
- package/esm/ui/Badge/Badge.d.ts +0 -11
- package/esm/ui/Badge/Badge.module.scss +0 -83
- package/esm/ui/Button/Button.css +0 -3
- package/esm/ui/Button/Button.d.ts +0 -15
- package/esm/ui/Button/Button.module.scss +0 -298
- package/esm/ui/Button/ButtonClasses.d.ts +0 -3
- package/esm/ui/Button/ButtonClasses.js +0 -7
- package/esm/ui/Button/ButtonGroup.d.ts +0 -6
- package/esm/ui/Card/Card.d.ts +0 -4
- package/esm/ui/Card/Card.module.scss +0 -7
- package/esm/ui/Chip/Chip.d.ts +0 -13
- package/esm/ui/Form/Checkbox/Checkbox.d.ts +0 -12
- package/esm/ui/Form/Checkbox/Radio.d.ts +0 -3
- package/esm/ui/Form/DateField/DateField.d.ts +0 -26
- package/esm/ui/Form/DateField/DateField.module.scss +0 -1
- package/esm/ui/Form/DateField/TimeField.d.ts +0 -3
- package/esm/ui/Form/DatePicker/DatePicker.d.ts +0 -7
- package/esm/ui/Form/DatePicker/DatePicker.module.scss +0 -7
- package/esm/ui/Form/DatePicker/PeriodSelect.d.ts +0 -2
- package/esm/ui/Form/DatePicker/TimePicker.d.ts +0 -2
- package/esm/ui/Form/DatePicker/styles.css +0 -766
- package/esm/ui/Form/Interval/Interval.d.ts +0 -21
- package/esm/ui/Form/Interval/IntervalSlide.d.ts +0 -4
- package/esm/ui/Form/Password/Password.d.ts +0 -12
- package/esm/ui/Form/Password/Password.module.scss +0 -2
- package/esm/ui/Form/Period/Period.d.ts +0 -15
- package/esm/ui/Form/Rating/Rating.d.ts +0 -10
- package/esm/ui/Form/Select/Select.d.ts +0 -23
- package/esm/ui/Form/Select/Select.module.scss +0 -26
- package/esm/ui/Form/Switch/Switch.d.ts +0 -7
- package/esm/ui/Form/TextArea/TextArea.d.ts +0 -4
- package/esm/ui/Form/TextArea/TextArea.module.scss +0 -15
- package/esm/ui/Form/TextField/TextField.d.ts +0 -40
- package/esm/ui/Form/TextField/TextField.module.scss +0 -160
- package/esm/ui/HelperText/HelperText.d.ts +0 -6
- package/esm/ui/HelperText/HelperText.module.scss +0 -10
- package/esm/ui/List/ListItem.d.ts +0 -10
- package/esm/ui/Loader/Loader.d.ts +0 -6
- package/esm/ui/Logo/Logo.d.ts +0 -12
- package/esm/ui/Slider/RcSlider.d.ts +0 -2
- package/esm/ui/Slider/RcSlider.js +0 -2
- package/esm/ui/Slider/style.css +0 -281
- package/esm/ui/Status/Status.d.ts +0 -10
- package/esm/ui/Status/Status.module.scss +0 -45
- package/esm/ui/Stepper/StepItemIcon.d.ts +0 -11
- package/esm/ui/Stepper/StepItemIcon.module.scss +0 -47
- package/esm/ui/Stepper/Stepper.d.ts +0 -11
- package/esm/ui/Stepper/Stepper.module.scss +0 -34
- package/esm/ui/Tooltip/Tooltip.d.ts +0 -7
- package/esm/ui/Tooltip/Tooltip.module.scss +0 -18
- package/helpers/package.json +0 -7
- package/styles/package.json +0 -7
- package/theme/package.json +0 -7
- package/useClickOutside/package.json +0 -7
- /package/{cjs/assets → assets}/fonts.scss +0 -0
- /package/{cjs/assets → assets}/global.css +0 -0
- /package/{cjs/assets → assets}/variables.scss +0 -0
- /package/{esm/lib → lib}/const/styles.js +0 -0
- /package/{esm/lib → lib}/hooks/useClickOutside.js +0 -0
- /package/{esm/lib → lib}/services/DateService.js +0 -0
- /package/{cjs → types}/lib/const/styles.d.ts +0 -0
- /package/{cjs → types}/lib/hooks/useClickOutside.d.ts +0 -0
- /package/{cjs → types}/lib/services/DateService.d.ts +0 -0
- /package/{esm/types → types}/theme.js +0 -0
- /package/{cjs → types}/types/theme.d.ts +0 -0
- /package/{cjs → types}/ui/Adornment/Adornment.d.ts +0 -0
- /package/{cjs → types}/ui/Alert/Alert.d.ts +0 -0
- /package/{cjs → types}/ui/Avatar/Avatar.d.ts +0 -0
- /package/{cjs → types}/ui/Avatar/AvatarGroup.d.ts +0 -0
- /package/{cjs → types}/ui/Badge/Badge.d.ts +0 -0
- /package/{cjs/ui/Button/ButtonGroup.d.ts → types/ui/ButtonGroup/index.d.ts} +0 -0
- /package/{cjs → types}/ui/Card/Card.d.ts +0 -0
- /package/{cjs → types}/ui/Chip/Chip.d.ts +0 -0
- /package/{cjs → types}/ui/Form/Checkbox/Checkbox.d.ts +0 -0
- /package/{cjs → types}/ui/Form/Checkbox/Radio.d.ts +0 -0
- /package/{cjs → types}/ui/Form/DateField/DateField.d.ts +0 -0
- /package/{cjs → types}/ui/Form/DateField/TimeField.d.ts +0 -0
- /package/{cjs → types}/ui/Form/DatePicker/DatePicker.d.ts +0 -0
- /package/{cjs → types}/ui/Form/DatePicker/PeriodSelect.d.ts +0 -0
- /package/{cjs → types}/ui/Form/DatePicker/TimePicker.d.ts +0 -0
- /package/{cjs → types}/ui/Form/Interval/Interval.d.ts +0 -0
- /package/{cjs → types}/ui/Form/Interval/IntervalSlide.d.ts +0 -0
- /package/{cjs → types}/ui/Form/Password/Password.d.ts +0 -0
- /package/{cjs → types}/ui/Form/Period/Period.d.ts +0 -0
- /package/{cjs → types}/ui/Form/Rating/Rating.d.ts +0 -0
- /package/{cjs → types}/ui/Form/Select/Select.d.ts +0 -0
- /package/{cjs → types}/ui/Form/Switch/Switch.d.ts +0 -0
- /package/{cjs → types}/ui/Form/TextArea/TextArea.d.ts +0 -0
- /package/{cjs → types}/ui/Form/TextField/TextField.d.ts +0 -0
- /package/{cjs → types}/ui/HelperText/HelperText.d.ts +0 -0
- /package/{cjs → types}/ui/List/ListItem.d.ts +0 -0
- /package/{cjs → types}/ui/Loader/Loader.d.ts +0 -0
- /package/{cjs → types}/ui/Logo/Logo.d.ts +0 -0
- /package/{cjs → types}/ui/Status/Status.d.ts +0 -0
- /package/{cjs → types}/ui/Stepper/StepItemIcon.d.ts +0 -0
- /package/{cjs → types}/ui/Stepper/Stepper.d.ts +0 -0
- /package/{cjs → types}/ui/Tooltip/Tooltip.d.ts +0 -0
- /package/{cjs/ui → ui}/Form/DateField/DateField.module.scss +0 -0
- /package/{esm/ui → ui}/Form/DatePicker/DatePicker.js +0 -0
- /package/{cjs/ui → ui}/Form/DatePicker/styles.css +0 -0
- /package/{cjs/ui → ui}/Slider/style.css +0 -0
package/cjs/ui/Status/Status.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _StatusModule = _interopRequireDefault(require("./Status.module.scss"));
|
|
7
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
function Status(props) {
|
|
10
|
-
let {
|
|
11
|
-
color,
|
|
12
|
-
icon,
|
|
13
|
-
text,
|
|
14
|
-
children
|
|
15
|
-
} = props;
|
|
16
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
17
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
18
|
-
className: (0, _clsx.default)(_StatusModule.default.status, _StatusModule.default['status_' + color]),
|
|
19
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20
|
-
className: _StatusModule.default.status__content,
|
|
21
|
-
children: text || children
|
|
22
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
23
|
-
className: (0, _clsx.default)(_StatusModule.default.status__icon, 'material_icon'),
|
|
24
|
-
children: icon
|
|
25
|
-
})]
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
var _default = Status;
|
|
30
|
-
exports.default = _default;
|
|
31
|
-
module.exports = exports.default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StepItemIconProps } from './StepItemIcon';
|
|
3
|
-
import { ButtonProps } from '../Button/Button';
|
|
4
|
-
export type StepItemProps = {
|
|
5
|
-
title: string;
|
|
6
|
-
children?: ReactNode | string;
|
|
7
|
-
content?: ReactNode | string;
|
|
8
|
-
button?: string;
|
|
9
|
-
buttonProps?: ButtonProps;
|
|
10
|
-
last?: boolean;
|
|
11
|
-
orientation?: 'horizontal' | 'vertical';
|
|
12
|
-
} & StepItemIconProps;
|
|
13
|
-
declare const StepItem: (props: StepItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default StepItem;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _StepItemIcon = _interopRequireDefault(require("./StepItemIcon"));
|
|
7
|
-
var _StepItemModule = _interopRequireDefault(require("./StepItem.module.scss"));
|
|
8
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
9
|
-
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
const StepItem = props => {
|
|
12
|
-
let {
|
|
13
|
-
title,
|
|
14
|
-
children,
|
|
15
|
-
content,
|
|
16
|
-
button,
|
|
17
|
-
buttonProps,
|
|
18
|
-
last,
|
|
19
|
-
orientation = 'horizontal',
|
|
20
|
-
...iconProps
|
|
21
|
-
} = props;
|
|
22
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
23
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
24
|
-
className: (0, _clsx.default)(_StepItemModule.default.stepItem, _StepItemModule.default['stepItem_' + props.size], {
|
|
25
|
-
[_StepItemModule.default.stepItem_last]: last,
|
|
26
|
-
[_StepItemModule.default.stepItem_horizontal]: orientation === 'horizontal'
|
|
27
|
-
}),
|
|
28
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
29
|
-
className: _StepItemModule.default.stepItem__inner,
|
|
30
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
31
|
-
className: _StepItemModule.default.stepItem__icon,
|
|
32
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepItemIcon.default, {
|
|
33
|
-
...iconProps
|
|
34
|
-
})
|
|
35
|
-
}), !!title && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
36
|
-
className: (0, _clsx.default)(_StepItemModule.default.stepItem__title, {
|
|
37
|
-
[_StepItemModule.default.stepItem__title_error]: iconProps.error
|
|
38
|
-
}),
|
|
39
|
-
children: title
|
|
40
|
-
})]
|
|
41
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
42
|
-
className: _StepItemModule.default.stepItem__content,
|
|
43
|
-
children: [content || children, !!button && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
|
-
className: _StepItemModule.default.stepItem__button,
|
|
45
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
46
|
-
...buttonProps,
|
|
47
|
-
children: button
|
|
48
|
-
})
|
|
49
|
-
})]
|
|
50
|
-
})]
|
|
51
|
-
})
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
var _default = StepItem;
|
|
55
|
-
exports.default = _default;
|
|
56
|
-
module.exports = exports.default;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
@import "../../assets/styles";
|
|
2
|
-
|
|
3
|
-
.stepItem__inner{
|
|
4
|
-
@include flex(flex-start, flex-start)
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.stepItem__title{
|
|
8
|
-
font-weight: 700;
|
|
9
|
-
margin: 2px 0 0 $size-step;
|
|
10
|
-
position: relative;
|
|
11
|
-
background: #fff;
|
|
12
|
-
padding-right: 5px;
|
|
13
|
-
}
|
|
14
|
-
.stepItem__title_error{
|
|
15
|
-
color: $color-error-dark
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.stepItem__content{
|
|
19
|
-
padding-left: 23px;
|
|
20
|
-
border-left: 1px solid #B1BCC6;
|
|
21
|
-
margin-left: 11px;
|
|
22
|
-
margin-top:5px;
|
|
23
|
-
position: relative;
|
|
24
|
-
}
|
|
25
|
-
.stepItem__button{
|
|
26
|
-
margin-top: $size-step;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.stepItem_small{
|
|
31
|
-
& .stepItem__content,
|
|
32
|
-
& .stepItem__title{
|
|
33
|
-
font-size: 14px;
|
|
34
|
-
}
|
|
35
|
-
& .stepItem__content{
|
|
36
|
-
padding-left: 19px;
|
|
37
|
-
margin-left: 10px;
|
|
38
|
-
}
|
|
39
|
-
&.stepItem_horizontal{
|
|
40
|
-
& .stepItem__content:before{
|
|
41
|
-
top: -15px;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
.stepItem_last{
|
|
46
|
-
& .stepItem__content{
|
|
47
|
-
border-color:transparent;
|
|
48
|
-
&:before{
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
.stepItem_horizontal{
|
|
54
|
-
& .stepItem__content{
|
|
55
|
-
border-color:transparent;
|
|
56
|
-
}
|
|
57
|
-
& .stepItem__content:before{
|
|
58
|
-
content: '';
|
|
59
|
-
position: absolute;
|
|
60
|
-
top: -19px;
|
|
61
|
-
width: 100%;
|
|
62
|
-
left: 22px;
|
|
63
|
-
height: 1px;
|
|
64
|
-
background: #B1BCC6;
|
|
65
|
-
z-index: -1;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _StepItemIconModule = _interopRequireDefault(require("./StepItemIcon.module.scss"));
|
|
7
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
const StepItemIcon = props => {
|
|
10
|
-
let icon = '';
|
|
11
|
-
if (!props.number) {
|
|
12
|
-
if (props.active) icon = 'schedule';else if (props.complete) icon = 'done';
|
|
13
|
-
}
|
|
14
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
15
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
16
|
-
className: (0, _clsx.default)(_StepItemIconModule.default.stepItemIcon, _StepItemIconModule.default['stepItemIcon_' + props.size], {
|
|
17
|
-
[_StepItemIconModule.default.stepItemIcon_active]: props.active,
|
|
18
|
-
[_StepItemIconModule.default.stepItemIcon_error]: props.error,
|
|
19
|
-
[_StepItemIconModule.default.stepItemIcon_complete]: props.complete,
|
|
20
|
-
[_StepItemIconModule.default.stepItemIcon_icon]: !props.icon
|
|
21
|
-
}),
|
|
22
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
23
|
-
className: _StepItemIconModule.default.stepItemIcon__inner,
|
|
24
|
-
children: !props.error ? !props.number ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
25
|
-
className: 'material_icon_solid',
|
|
26
|
-
children: icon
|
|
27
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
28
|
-
className: _StepItemIconModule.default.stepItemIcon__number,
|
|
29
|
-
children: props.number
|
|
30
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
31
|
-
className: 'material_icon_solid',
|
|
32
|
-
children: "warning"
|
|
33
|
-
})
|
|
34
|
-
})
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
var _default = StepItemIcon;
|
|
39
|
-
exports.default = _default;
|
|
40
|
-
module.exports = exports.default;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _StepItem = _interopRequireDefault(require("./StepItem"));
|
|
7
|
-
var _StepperModule = _interopRequireDefault(require("./Stepper.module.scss"));
|
|
8
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
const Stepper = props => {
|
|
12
|
-
var _props$steps;
|
|
13
|
-
let {
|
|
14
|
-
orientation = 'horizontal'
|
|
15
|
-
} = props;
|
|
16
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
17
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
18
|
-
className: (0, _clsx.default)(_StepperModule.default.stepper, _StepperModule.default['stepper_' + props.size], {
|
|
19
|
-
[_StepperModule.default.stepper_horizontal]: orientation === 'horizontal'
|
|
20
|
-
}),
|
|
21
|
-
children: (_props$steps = props.steps) == null ? void 0 : _props$steps.map((item, index) => {
|
|
22
|
-
var _props$steps2;
|
|
23
|
-
let title = typeof item === 'string' || typeof item === 'number' ? String(item) : item.title;
|
|
24
|
-
let params = typeof item === 'string' || typeof item === 'number' ? {} : item;
|
|
25
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
26
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_StepItem.default, {
|
|
27
|
-
error: index + 1 === props.error,
|
|
28
|
-
active: index + 1 === props.active,
|
|
29
|
-
complete: index + 1 === props.complete || index + 1 < (props.active || 0),
|
|
30
|
-
...params,
|
|
31
|
-
title: title,
|
|
32
|
-
last: index + 1 === ((_props$steps2 = props.steps) == null ? void 0 : _props$steps2.length),
|
|
33
|
-
orientation: orientation,
|
|
34
|
-
size: props.size
|
|
35
|
-
}), index + 1 < props.steps.length && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
|
-
className: _StepperModule.default.stepper__connector
|
|
37
|
-
})]
|
|
38
|
-
}, index);
|
|
39
|
-
})
|
|
40
|
-
})
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
var _default = Stepper;
|
|
44
|
-
exports.default = _default;
|
|
45
|
-
module.exports = exports.default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _TooltipModule = _interopRequireDefault(require("./Tooltip.module.scss"));
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function Tooltip(props) {
|
|
11
|
-
let {
|
|
12
|
-
text,
|
|
13
|
-
children
|
|
14
|
-
} = props;
|
|
15
|
-
let [visible, setVisible] = (0, _react.useState)(false);
|
|
16
|
-
const handleEnter = () => setVisible(true);
|
|
17
|
-
const handleLeave = () => setVisible(false);
|
|
18
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
19
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
20
|
-
className: _TooltipModule.default.tooltip,
|
|
21
|
-
onMouseEnter: handleEnter,
|
|
22
|
-
onMouseLeave: handleLeave,
|
|
23
|
-
children: [children, visible && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
24
|
-
className: _TooltipModule.default.tooltip__item,
|
|
25
|
-
children: text
|
|
26
|
-
})]
|
|
27
|
-
})
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
var _default = Tooltip;
|
|
31
|
-
exports.default = _default;
|
|
32
|
-
module.exports = exports.default;
|