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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "./../assets/variables";
|
|
1
2
|
|
|
2
3
|
.button{
|
|
3
4
|
outline: none;
|
|
@@ -185,39 +186,7 @@
|
|
|
185
186
|
font-size: 13px;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
|
-
.button_icon{
|
|
189
|
-
padding: $size-step;
|
|
190
|
-
width: $size-elarge;
|
|
191
|
-
border-radius: 50%;
|
|
192
|
-
display: flex;
|
|
193
|
-
align-items: center;
|
|
194
|
-
justify-content: center;
|
|
195
|
-
font-size: 30px;
|
|
196
|
-
&.button_large{
|
|
197
|
-
width: $size-large;
|
|
198
|
-
font-size: 24px;
|
|
199
|
-
}
|
|
200
|
-
&.button_medium{
|
|
201
|
-
width: $size-medium;
|
|
202
|
-
font-size: 20px;
|
|
203
|
-
}
|
|
204
|
-
&.button_small{
|
|
205
|
-
width: $size-small;
|
|
206
|
-
padding: calc($size-step / 2);
|
|
207
|
-
font-size: 16px;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
189
|
|
|
211
|
-
.button_group{
|
|
212
|
-
display: flex;
|
|
213
|
-
align-items: center;
|
|
214
|
-
}
|
|
215
|
-
.button_group_inline{
|
|
216
|
-
flex-direction: row;
|
|
217
|
-
}
|
|
218
|
-
.button_group_column{
|
|
219
|
-
flex-direction: column;
|
|
220
|
-
}
|
|
221
190
|
|
|
222
191
|
.button_grouped_inline{
|
|
223
192
|
border-radius: 0;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import "./../assets/variables";
|
|
2
|
+
|
|
3
|
+
.button_icon{
|
|
4
|
+
padding: $size-step;
|
|
5
|
+
width: $size-elarge;
|
|
6
|
+
border-radius: 50%;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
font-size: 30px;
|
|
11
|
+
&.button_large{
|
|
12
|
+
width: $size-large;
|
|
13
|
+
font-size: 24px;
|
|
14
|
+
}
|
|
15
|
+
&.button_medium{
|
|
16
|
+
width: $size-medium;
|
|
17
|
+
font-size: 20px;
|
|
18
|
+
}
|
|
19
|
+
&.button_small{
|
|
20
|
+
width: $size-small;
|
|
21
|
+
padding: calc($size-step / 2);
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
|
|
2
|
+
//@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
|
|
3
|
+
|
|
4
|
+
@import "variables";
|
|
5
|
+
@import "Button";
|
|
6
|
+
@import "Adornment";
|
|
7
|
+
@import "Alert";
|
|
8
|
+
@import "Badge";
|
|
9
|
+
@import "Card";
|
|
10
|
+
@import "Avatar";
|
|
11
|
+
@import "AvatarGroup";
|
|
12
|
+
@import "Chip";
|
|
13
|
+
@import "HelperText";
|
|
14
|
+
@import "ListItem";
|
|
15
|
+
@import "Loader";
|
|
16
|
+
@import "Logo";
|
|
17
|
+
@import "Slider";
|
|
18
|
+
@import "Status";
|
|
19
|
+
@import "StepItem";
|
|
20
|
+
@import "StepItemIcon";
|
|
21
|
+
@import "Stepper";
|
|
22
|
+
@import "Tooltip";
|
|
23
|
+
@import "Checkbox";
|
|
24
|
+
@import "DatePicker";
|
|
25
|
+
@import "Interval";
|
|
26
|
+
@import "Period";
|
|
27
|
+
@import "Rating";
|
|
28
|
+
@import "Select";
|
|
29
|
+
@import "Switch";
|
|
30
|
+
@import "TextArea";
|
|
31
|
+
@import "TextField";
|
package/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as Button } from "./ui/Button";
|
|
2
|
+
export { default as ButtonIcon } from "./ui/ButtonIcon";
|
|
3
|
+
export { default as Alert } from "./ui/Alert/Alert";
|
|
4
|
+
export { default as Avatar } from "./ui/Avatar/Avatar";
|
|
5
|
+
export { default as AvatarGroup } from "./ui/Avatar/AvatarGroup";
|
|
6
|
+
export { default as Badge } from "./ui/Badge/Badge";
|
|
7
|
+
export { default as Card } from "./ui/Card/Card";
|
|
8
|
+
export { default as Chip } from "./ui/Chip/Chip";
|
|
9
|
+
export { default as ListItem } from "./ui/List/ListItem";
|
|
10
|
+
export { default as Loader } from "./ui/Loader/Loader";
|
|
11
|
+
export { default as Logo } from "./ui/Logo/Logo";
|
|
12
|
+
export { default as Slider } from "./ui/Slider/Slider";
|
|
13
|
+
export { default as Status } from "./ui/Status/Status";
|
|
14
|
+
export { default as Stepper } from "./ui/Stepper/Stepper";
|
|
15
|
+
export { default as Tooltip } from "./ui/Tooltip/Tooltip";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSS_PREFIX } from "../const/styles";
|
|
1
2
|
export const getVariants = except => {
|
|
2
3
|
let variants = {
|
|
3
4
|
contained: 'Заливка',
|
|
@@ -37,4 +38,10 @@ const filter = (obj, arr) => {
|
|
|
37
38
|
prev[current[0]] = current[1];
|
|
38
39
|
return prev;
|
|
39
40
|
}, {});
|
|
41
|
+
};
|
|
42
|
+
export const getCssPrefix = classes => {
|
|
43
|
+
return classes.reduce((prev, current) => {
|
|
44
|
+
prev[current] = CSS_PREFIX + current;
|
|
45
|
+
return prev;
|
|
46
|
+
}, {});
|
|
40
47
|
};
|
package/package.json
CHANGED
|
@@ -1 +1,25 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "armtek-uikit-react",
|
|
3
|
+
"version": "1.0.15",
|
|
4
|
+
"description": "Armtek UIKit for React",
|
|
5
|
+
"types": "types/index.d.ts",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "ssh://git@gl.corp:10022/int/uikit/uikit_react.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"rc-slider": "^10.2.1",
|
|
14
|
+
"react": "*",
|
|
15
|
+
"react-datepicker": "^4.16.0",
|
|
16
|
+
"react-dom": "*"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"react": "*",
|
|
20
|
+
"react-dom": "*"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"pub": "npm version patch && npm publish"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/{esm → types}/index.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as Button } from './ui/Button
|
|
2
|
-
export { default as ButtonIcon } from './ui/
|
|
3
|
-
export type { ButtonProps } from './ui/Button
|
|
1
|
+
export { default as Button } from './ui/Button';
|
|
2
|
+
export { default as ButtonIcon } from './ui/ButtonIcon';
|
|
3
|
+
export type { ButtonProps } from './ui/Button';
|
|
4
4
|
export { default as Alert } from './ui/Alert/Alert';
|
|
5
5
|
export type { AlertProps } from './ui/Alert/Alert';
|
|
6
6
|
export { default as Avatar } from './ui/Avatar/Avatar';
|
|
@@ -3,3 +3,4 @@ export declare const getVariants: (except?: string[]) => Record<VariantType, str
|
|
|
3
3
|
export declare const getColors: () => Record<ColorType, string>;
|
|
4
4
|
export declare const getStatusColors: () => Record<ColorStatusType, string>;
|
|
5
5
|
export declare const getSizes: (except?: string[]) => Record<SizeType, string>;
|
|
6
|
+
export declare const getCssPrefix: (classes: string[]) => Record<string, string>;
|
|
@@ -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;
|
|
@@ -11,5 +11,5 @@ type OwnProps<T extends ElementType = ElementType> = {
|
|
|
11
11
|
as?: T;
|
|
12
12
|
};
|
|
13
13
|
export type ButtonProps<T extends ElementType = ElementType<HTMLAttributes<HTMLButtonElement>>> = OwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof OwnProps>;
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
14
|
+
declare const Index: <T extends ElementType>(props: ButtonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default Index;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '!style-loader!css-loader!./style.css';
|
|
2
2
|
import { SliderProps as RcSliderProps } from 'rc-slider/lib/Slider';
|
|
3
|
-
import { SizeType } from 'types/theme';
|
|
3
|
+
import { SizeType } from '../../types/theme';
|
|
4
4
|
export type SliderProps = {
|
|
5
5
|
size?: Exclude<SizeType, 'extraLarge' | 'medium'>;
|
|
6
6
|
} & Omit<RcSliderProps, 'size'>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
// import css from './Adornment.module.scss'
|
|
2
1
|
import clsx from 'clsx';
|
|
2
|
+
import css from "./Adornment.module.scss";
|
|
3
|
+
// import { getCssPrefix } from 'lib/helpers/helpers'
|
|
3
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
5
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
+
const AdornmentClasses = ['adornmentContainer', 'adornmentContainer_end', 'adornment_start', 'adornment_end'];
|
|
7
|
+
|
|
8
|
+
// const css = getCssPrefix(AdornmentClasses)
|
|
9
|
+
|
|
5
10
|
const Adornment = props => {
|
|
6
11
|
let {
|
|
7
12
|
children,
|
|
@@ -13,8 +18,8 @@ const Adornment = props => {
|
|
|
13
18
|
children: /*#__PURE__*/_jsx("div", {
|
|
14
19
|
...spanProps,
|
|
15
20
|
className: clsx(className, {
|
|
16
|
-
'adornment_start': position === 'start',
|
|
17
|
-
'adornment_end': position !== 'start'
|
|
21
|
+
[css['adornment_start']]: position === 'start',
|
|
22
|
+
[css['adornment_end']]: position !== 'start'
|
|
18
23
|
}),
|
|
19
24
|
children: children
|
|
20
25
|
})
|
|
@@ -30,8 +35,8 @@ export const AdornmentContainer = props => {
|
|
|
30
35
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
31
36
|
children: /*#__PURE__*/_jsx("div", {
|
|
32
37
|
...inputProps,
|
|
33
|
-
className: clsx(
|
|
34
|
-
['adornmentContainer_end']: position !== 'start'
|
|
38
|
+
className: clsx(css.adornmentContainer, {
|
|
39
|
+
[css['adornmentContainer_end']]: position !== 'start'
|
|
35
40
|
}, className),
|
|
36
41
|
children: children
|
|
37
42
|
})
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import css from './Alert.module.scss';
|
|
2
1
|
import clsx from 'clsx';
|
|
3
|
-
import
|
|
2
|
+
import Index from "../ButtonIcon";
|
|
3
|
+
import css from "./Alert.module.scss";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
const AlertClasses = ['alert', 'alert__title', 'alert__close', 'alert__icon', 'alert_success', 'alert_warning', 'alert_info', 'alert_error'];
|
|
8
|
+
|
|
9
|
+
// const css = getCssPrefix(AlertClasses)
|
|
10
|
+
|
|
7
11
|
const Alert = props => {
|
|
8
12
|
let {
|
|
9
13
|
title,
|
|
@@ -27,7 +31,7 @@ const Alert = props => {
|
|
|
27
31
|
children: props.title
|
|
28
32
|
}), /*#__PURE__*/_jsx("div", {
|
|
29
33
|
children: props.children
|
|
30
|
-
}), !!onClose && /*#__PURE__*/_jsx(
|
|
34
|
+
}), !!onClose && /*#__PURE__*/_jsx(Index, {
|
|
31
35
|
onClick: onClose,
|
|
32
36
|
size: 'small',
|
|
33
37
|
color: 'neutral',
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import css from './Avatar.module.scss';
|
|
2
1
|
import clsx from 'clsx';
|
|
2
|
+
import css from "./Avatar.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 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'];
|
|
7
|
+
|
|
8
|
+
// const css = getCssPrefix(AvatarClasses)
|
|
9
|
+
|
|
6
10
|
const getLetters = name => {
|
|
7
11
|
let nameParts = name.split(' ');
|
|
8
12
|
return nameParts[0].split('')[0] + (nameParts[1] ? nameParts[1].split('')[0] : '');
|
|
@@ -0,0 +1 @@
|
|
|
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);
|
|
@@ -0,0 +1 @@
|
|
|
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,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./../../assets/Badge";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./../../assets/Button";
|
|
@@ -1,9 +1,13 @@
|
|
|
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
|
|
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
|
+
|
|
10
|
+
const Index = props => {
|
|
7
11
|
let {
|
|
8
12
|
size = 'extraLarge',
|
|
9
13
|
color = 'primary',
|
|
@@ -35,4 +39,4 @@ const Button = props => {
|
|
|
35
39
|
})
|
|
36
40
|
});
|
|
37
41
|
};
|
|
38
|
-
export default
|
|
42
|
+
export default Index;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import css from './Button.module.scss';
|
|
2
1
|
import clsx from 'clsx';
|
|
2
|
+
import css from "../Button/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',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./../../assets/ButtonIcon";
|
|
@@ -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/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", {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./../../assets/Card";
|