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/ButtonGroup/package.json
DELETED
package/ButtonIcon/package.json
DELETED
package/Card/package.json
DELETED
package/Checkbox/package.json
DELETED
package/Chip/package.json
DELETED
package/DateField/package.json
DELETED
package/DatePicker/package.json
DELETED
package/DateService/package.json
DELETED
package/HelperText/package.json
DELETED
package/Interval/package.json
DELETED
package/ListItem/package.json
DELETED
package/Loader/package.json
DELETED
package/Logo/package.json
DELETED
package/Password/package.json
DELETED
package/Period/package.json
DELETED
package/Radio/package.json
DELETED
package/Rating/package.json
DELETED
package/RcSlider/package.json
DELETED
package/Select/package.json
DELETED
package/Slider/package.json
DELETED
package/Status/package.json
DELETED
package/StepItem/package.json
DELETED
package/Stepper/package.json
DELETED
package/Switch/package.json
DELETED
package/TextArea/package.json
DELETED
package/TextField/package.json
DELETED
package/TimeField/package.json
DELETED
package/TimePicker/package.json
DELETED
package/Tooltip/package.json
DELETED
package/cjs/assets/styles.scss
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
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";
|
package/cjs/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export { default as Button } from './ui/Button/Button';
|
|
2
|
-
export { default as ButtonIcon } from './ui/Button/ButtonIcon';
|
|
3
|
-
export type { ButtonProps } from './ui/Button/Button';
|
|
4
|
-
export { default as Alert } from './ui/Alert/Alert';
|
|
5
|
-
export type { AlertProps } from './ui/Alert/Alert';
|
|
6
|
-
export { default as Avatar } from './ui/Avatar/Avatar';
|
|
7
|
-
export type { AvatarProps } from './ui/Avatar/Avatar';
|
|
8
|
-
export { default as AvatarGroup } from './ui/Avatar/AvatarGroup';
|
|
9
|
-
export type { AvatarGroupProps } from './ui/Avatar/AvatarGroup';
|
|
10
|
-
export { default as Badge } from './ui/Badge/Badge';
|
|
11
|
-
export type { BadgeProps } from './ui/Badge/Badge';
|
|
12
|
-
export { default as Card } from './ui/Card/Card';
|
|
13
|
-
export type { CardProps } from './ui/Card/Card';
|
|
14
|
-
export { default as Chip } from './ui/Chip/Chip';
|
|
15
|
-
export type { ChipProps } from './ui/Chip/Chip';
|
|
16
|
-
export { default as ListItem } from './ui/List/ListItem';
|
|
17
|
-
export type { ListItemProps } from './ui/List/ListItem';
|
|
18
|
-
export { default as Loader } from './ui/Loader/Loader';
|
|
19
|
-
export type { LoaderProps } from './ui/Loader/Loader';
|
|
20
|
-
export { default as Logo } from './ui/Logo/Logo';
|
|
21
|
-
export type { LogoProps } from './ui/Logo/Logo';
|
|
22
|
-
export { default as Slider } from './ui/Slider/Slider';
|
|
23
|
-
export type { SliderProps } from './ui/Slider/Slider';
|
|
24
|
-
export { default as Status } from './ui/Status/Status';
|
|
25
|
-
export type { StatusProps } from './ui/Status/Status';
|
|
26
|
-
export { default as Stepper } from './ui/Stepper/Stepper';
|
|
27
|
-
export type { StepperProps } from './ui/Stepper/Stepper';
|
|
28
|
-
export { default as Tooltip } from './ui/Tooltip/Tooltip';
|
|
29
|
-
export type { TooltipProps } from './ui/Tooltip/Tooltip';
|
package/cjs/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.Tooltip = exports.Stepper = exports.Status = exports.Slider = exports.Logo = exports.Loader = exports.ListItem = exports.Chip = exports.Card = exports.ButtonIcon = exports.Button = exports.Badge = exports.AvatarGroup = exports.Avatar = exports.Alert = void 0;
|
|
6
|
-
var _Button = _interopRequireDefault(require("./ui/Button/Button"));
|
|
7
|
-
exports.Button = _Button.default;
|
|
8
|
-
var _ButtonIcon = _interopRequireDefault(require("./ui/Button/ButtonIcon"));
|
|
9
|
-
exports.ButtonIcon = _ButtonIcon.default;
|
|
10
|
-
var _Alert = _interopRequireDefault(require("./ui/Alert/Alert"));
|
|
11
|
-
exports.Alert = _Alert.default;
|
|
12
|
-
var _Avatar = _interopRequireDefault(require("./ui/Avatar/Avatar"));
|
|
13
|
-
exports.Avatar = _Avatar.default;
|
|
14
|
-
var _AvatarGroup = _interopRequireDefault(require("./ui/Avatar/AvatarGroup"));
|
|
15
|
-
exports.AvatarGroup = _AvatarGroup.default;
|
|
16
|
-
var _Badge = _interopRequireDefault(require("./ui/Badge/Badge"));
|
|
17
|
-
exports.Badge = _Badge.default;
|
|
18
|
-
var _Card = _interopRequireDefault(require("./ui/Card/Card"));
|
|
19
|
-
exports.Card = _Card.default;
|
|
20
|
-
var _Chip = _interopRequireDefault(require("./ui/Chip/Chip"));
|
|
21
|
-
exports.Chip = _Chip.default;
|
|
22
|
-
var _ListItem = _interopRequireDefault(require("./ui/List/ListItem"));
|
|
23
|
-
exports.ListItem = _ListItem.default;
|
|
24
|
-
var _Loader = _interopRequireDefault(require("./ui/Loader/Loader"));
|
|
25
|
-
exports.Loader = _Loader.default;
|
|
26
|
-
var _Logo = _interopRequireDefault(require("./ui/Logo/Logo"));
|
|
27
|
-
exports.Logo = _Logo.default;
|
|
28
|
-
var _Slider = _interopRequireDefault(require("./ui/Slider/Slider"));
|
|
29
|
-
exports.Slider = _Slider.default;
|
|
30
|
-
var _Status = _interopRequireDefault(require("./ui/Status/Status"));
|
|
31
|
-
exports.Status = _Status.default;
|
|
32
|
-
var _Stepper = _interopRequireDefault(require("./ui/Stepper/Stepper"));
|
|
33
|
-
exports.Stepper = _Stepper.default;
|
|
34
|
-
var _Tooltip = _interopRequireDefault(require("./ui/Tooltip/Tooltip"));
|
|
35
|
-
exports.Tooltip = _Tooltip.default;
|
package/cjs/lib/const/styles.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ColorStatusType, ColorType, SizeType, VariantType } from '../../types/theme';
|
|
2
|
-
export declare const getVariants: (except?: string[]) => Record<VariantType, string>;
|
|
3
|
-
export declare const getColors: () => Record<ColorType, string>;
|
|
4
|
-
export declare const getStatusColors: () => Record<ColorStatusType, string>;
|
|
5
|
-
export declare const getSizes: (except?: string[]) => Record<SizeType, string>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.getVariants = exports.getStatusColors = exports.getSizes = exports.getColors = void 0;
|
|
5
|
-
const getVariants = except => {
|
|
6
|
-
let variants = {
|
|
7
|
-
contained: 'Заливка',
|
|
8
|
-
outlined: 'С границами',
|
|
9
|
-
transparent: 'Прозрачный'
|
|
10
|
-
};
|
|
11
|
-
if (except) variants = filter(variants, except);
|
|
12
|
-
return variants;
|
|
13
|
-
};
|
|
14
|
-
exports.getVariants = getVariants;
|
|
15
|
-
const getColors = () => {
|
|
16
|
-
return {
|
|
17
|
-
primary: 'Основной',
|
|
18
|
-
secondary: 'Второстепенный',
|
|
19
|
-
neutral: 'Нейтральный'
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.getColors = getColors;
|
|
23
|
-
const getStatusColors = () => {
|
|
24
|
-
return {
|
|
25
|
-
info: 'Инфо',
|
|
26
|
-
error: 'Ошибка',
|
|
27
|
-
success: 'Успех',
|
|
28
|
-
warning: 'Уведомление'
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
exports.getStatusColors = getStatusColors;
|
|
32
|
-
const getSizes = except => {
|
|
33
|
-
let sizes = {
|
|
34
|
-
small: 'Маленький',
|
|
35
|
-
medium: 'Средний',
|
|
36
|
-
large: 'Большой',
|
|
37
|
-
extraLarge: 'Огромный'
|
|
38
|
-
};
|
|
39
|
-
if (except) sizes = filter(sizes, except);
|
|
40
|
-
return sizes;
|
|
41
|
-
};
|
|
42
|
-
exports.getSizes = getSizes;
|
|
43
|
-
const filter = (obj, arr) => {
|
|
44
|
-
return Object.entries(obj).filter(item => !arr.includes(item[0])).reduce((prev, current) => {
|
|
45
|
-
prev[current[0]] = current[1];
|
|
46
|
-
return prev;
|
|
47
|
-
}, {});
|
|
48
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _react = require("react");
|
|
7
|
-
const useClickOutside = callback => {
|
|
8
|
-
const ref = (0, _react.useRef)(null);
|
|
9
|
-
(0, _react.useEffect)(() => {
|
|
10
|
-
function handleClickOutside(event) {
|
|
11
|
-
if (ref.current && !ref.current.contains(event.target)) callback();
|
|
12
|
-
}
|
|
13
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
14
|
-
return () => {
|
|
15
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
16
|
-
};
|
|
17
|
-
}, [ref]);
|
|
18
|
-
return ref;
|
|
19
|
-
};
|
|
20
|
-
var _default = useClickOutside;
|
|
21
|
-
exports.default = _default;
|
|
22
|
-
module.exports = exports.default;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.DateService = void 0;
|
|
5
|
-
class DateClass {
|
|
6
|
-
constructor(date) {
|
|
7
|
-
this.date = date;
|
|
8
|
-
}
|
|
9
|
-
format(form) {
|
|
10
|
-
let strDate = form;
|
|
11
|
-
if (strDate.includes('DD')) strDate = strDate.replace('dd', DateClass.getDisplayValue(this.date.getDate()));
|
|
12
|
-
if (strDate.includes('MM')) strDate = strDate.replace('MM', this.getStrMonth());
|
|
13
|
-
if (strDate.includes('YYYY')) strDate = strDate.replace('yyyy', String(this.date.getFullYear()));
|
|
14
|
-
if (strDate.includes('HH')) strDate = strDate.replace('HH', DateClass.getDisplayValue(this.date.getHours()));
|
|
15
|
-
if (strDate.includes('mm')) strDate = strDate.replace('mm', DateClass.getDisplayValue(this.date.getMinutes()));
|
|
16
|
-
return strDate;
|
|
17
|
-
}
|
|
18
|
-
static isValid(dateStr, format) {
|
|
19
|
-
return !!this.parseDate(dateStr, format);
|
|
20
|
-
}
|
|
21
|
-
static parseDate(dateStr, format) {
|
|
22
|
-
let match = dateStr.match(/(\d{2})[.-/](\d{2})[.-/](\d{4})/);
|
|
23
|
-
if (match && match[1] && match[2] && match[3]) {
|
|
24
|
-
if (new Date(`${match[3]}-${match[2]}-${match[1]}`).getTime() === new Date(`${match[3]}-${match[2]}-${match[1]}`).getTime()) {
|
|
25
|
-
let result = new Date(`${match[3]}-${match[2]}-${match[1]}`);
|
|
26
|
-
result.setHours(1, 0, 0, 0);
|
|
27
|
-
return result;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
static toDate(dateStr) {
|
|
33
|
-
return this.parseDate(dateStr);
|
|
34
|
-
}
|
|
35
|
-
static getDisplayValue(value) {
|
|
36
|
-
return value < 10 ? '0' + String(value) : String(value);
|
|
37
|
-
}
|
|
38
|
-
getStrMonth() {
|
|
39
|
-
let m = this.date.getMonth() + 1;
|
|
40
|
-
return DateClass.getDisplayValue(m);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
const DateService = date => {
|
|
44
|
-
return new DateClass(date);
|
|
45
|
-
};
|
|
46
|
-
exports.DateService = DateService;
|
|
47
|
-
var _default = DateClass;
|
|
48
|
-
exports.default = _default;
|
package/cjs/types/theme.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.default = exports.AdornmentContainer = void 0;
|
|
6
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
-
// import css from './Adornment.module.scss'
|
|
9
|
-
|
|
10
|
-
const Adornment = props => {
|
|
11
|
-
let {
|
|
12
|
-
children,
|
|
13
|
-
position = 'end',
|
|
14
|
-
className,
|
|
15
|
-
...spanProps
|
|
16
|
-
} = props;
|
|
17
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
18
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
|
-
...spanProps,
|
|
20
|
-
className: (0, _clsx.default)(className, {
|
|
21
|
-
'adornment_start': position === 'start',
|
|
22
|
-
'adornment_end': position !== 'start'
|
|
23
|
-
}),
|
|
24
|
-
children: children
|
|
25
|
-
})
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
const AdornmentContainer = props => {
|
|
29
|
-
let {
|
|
30
|
-
position = 'start',
|
|
31
|
-
className,
|
|
32
|
-
children,
|
|
33
|
-
...inputProps
|
|
34
|
-
} = props;
|
|
35
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
36
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
|
-
...inputProps,
|
|
38
|
-
className: (0, _clsx.default)('adornmentContainer', {
|
|
39
|
-
['adornmentContainer_end']: position !== 'start'
|
|
40
|
-
}, className),
|
|
41
|
-
children: children
|
|
42
|
-
})
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
exports.AdornmentContainer = AdornmentContainer;
|
|
46
|
-
var _default = Adornment;
|
|
47
|
-
exports.default = _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@import "../../assets/styles";
|
|
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
|
-
}
|
package/cjs/ui/Alert/Alert.js
DELETED
|
@@ -1,46 +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 _AlertModule = _interopRequireDefault(require("./Alert.module.scss"));
|
|
7
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
8
|
-
var _ButtonIcon = _interopRequireDefault(require("../Button/ButtonIcon"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
const Alert = props => {
|
|
11
|
-
let {
|
|
12
|
-
title,
|
|
13
|
-
children,
|
|
14
|
-
status = 'info',
|
|
15
|
-
onClose,
|
|
16
|
-
className,
|
|
17
|
-
...restProps
|
|
18
|
-
} = props;
|
|
19
|
-
let icon = 'info';
|
|
20
|
-
if (status === 'error') icon = 'bolt';else if (status === 'warning') icon = 'warning';else if (status === 'success') icon = 'task_alt';
|
|
21
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
22
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
23
|
-
...restProps,
|
|
24
|
-
className: (0, _clsx.default)(_AlertModule.default.alert, _AlertModule.default['alert_' + status], className),
|
|
25
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
26
|
-
className: (0, _clsx.default)(_AlertModule.default.alert__icon, 'material_icon'),
|
|
27
|
-
children: icon
|
|
28
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
29
|
-
className: _AlertModule.default.alert__title,
|
|
30
|
-
children: props.title
|
|
31
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32
|
-
children: props.children
|
|
33
|
-
}), !!onClose && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonIcon.default, {
|
|
34
|
-
onClick: onClose,
|
|
35
|
-
size: 'small',
|
|
36
|
-
color: 'neutral',
|
|
37
|
-
variant: 'transparent',
|
|
38
|
-
className: (0, _clsx.default)(_AlertModule.default.alert__close, 'material_icon'),
|
|
39
|
-
children: "close"
|
|
40
|
-
})]
|
|
41
|
-
})
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
var _default = Alert;
|
|
45
|
-
exports.default = _default;
|
|
46
|
-
module.exports = exports.default;
|