armtek-uikit-react 1.0.266 → 1.0.268
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/README.md +110 -0
- package/lib/assets/styles.min.css +5474 -0
- package/lib/assets/styles.min.css.map +1 -0
- package/lib/cjs/.cjs +2 -0
- package/lib/cjs/assets/armtek-uikit-react.css +1188 -0
- package/lib/cjs/index.cjs +1 -0
- package/lib/cjs/lib/const/styles.cjs +4 -0
- package/lib/cjs/lib/helpers/genericForwardRef.cjs +7 -0
- package/lib/cjs/lib/helpers/getColorClasses.cjs +14 -0
- package/lib/cjs/lib/helpers/getSizeClasses.cjs +11 -0
- package/lib/cjs/lib/helpers/getVariantClasses.cjs +11 -0
- package/lib/cjs/lib/helpers/helpers.cjs +106 -0
- package/lib/cjs/lib/helpers/helpers.d.ts +21 -0
- package/lib/cjs/lib/helpers/index.cjs +4 -0
- package/lib/cjs/lib/helpers/insertChar.cjs +9 -0
- package/lib/cjs/lib/helpers.cjs +2 -0
- package/lib/cjs/lib/hooks/useClickOutside.cjs +17 -0
- package/lib/cjs/lib/hooks/useEnhancedEffect.cjs +22 -0
- package/lib/cjs/lib/hooks/useEventCallback.cjs +32 -0
- package/lib/cjs/lib/hooks/useLazyRef.cjs +12 -0
- package/lib/cjs/lib/hooks/useTimeout.cjs +38 -0
- package/lib/cjs/lib/services/DateService.cjs +62 -0
- package/lib/cjs/types/theme.cjs +1 -0
- package/lib/cjs/ui/Accordion/Accordion.cjs +88 -0
- package/lib/cjs/ui/Accordion/Accordion.classes.cjs +32 -0
- package/lib/cjs/ui/Accordion/AccordionHeading.cjs +27 -0
- package/lib/cjs/ui/Accordion/index.cjs +6 -0
- package/lib/cjs/ui/Accordion.cjs +2 -0
- package/lib/cjs/ui/Adornment/Adornment.cjs +30 -0
- package/lib/cjs/ui/Adornment/index.cjs +5 -0
- package/lib/cjs/ui/Adornment.cjs +2 -0
- package/lib/cjs/ui/Alert/Alert.cjs +33 -0
- package/lib/cjs/ui/Alert/index.cjs +4 -0
- package/lib/cjs/ui/Alert.cjs +2 -0
- package/lib/cjs/ui/Avatar/Avatar.cjs +34 -0
- package/lib/cjs/ui/Avatar/Avatar.d.ts +15 -0
- package/lib/cjs/ui/Avatar/index.cjs +4 -0
- package/lib/cjs/ui/Avatar.cjs +2 -0
- package/lib/cjs/ui/AvatarGroup/AvatarGroup.cjs +23 -0
- package/lib/cjs/ui/AvatarGroup/index.cjs +4 -0
- package/lib/cjs/ui/AvatarGroup.cjs +2 -0
- package/lib/cjs/ui/BackDrop/BackDrop.cjs +17 -0
- package/lib/cjs/ui/BackDrop/BackDropBase.cjs +27 -0
- package/lib/cjs/ui/BackDrop/index.cjs +4 -0
- package/lib/cjs/ui/BackDrop.cjs +2 -0
- package/lib/cjs/ui/Badge/Badge.cjs +21 -0
- package/lib/cjs/ui/Badge/index.cjs +4 -0
- package/lib/cjs/ui/Badge.cjs +2 -0
- package/lib/cjs/ui/Button/Button.cjs +45 -0
- package/lib/cjs/ui/Button/Button.d.ts +39 -0
- package/lib/cjs/ui/Button/index.cjs +4 -0
- package/lib/cjs/ui/Button.cjs +2 -0
- package/lib/cjs/ui/ButtonGroup/ButtonGroup.cjs +23 -0
- package/lib/cjs/ui/ButtonGroup/index.cjs +4 -0
- package/lib/cjs/ui/ButtonGroup.cjs +2 -0
- package/lib/cjs/ui/ButtonIcon/ButtonIcon.cjs +18 -0
- package/lib/cjs/ui/ButtonIcon/ButtonIcon.d.ts +25 -0
- package/lib/cjs/ui/ButtonIcon/index.cjs +4 -0
- package/lib/cjs/ui/ButtonIcon.cjs +2 -0
- package/lib/cjs/ui/Card/Card.cjs +8 -0
- package/lib/cjs/ui/Card/Card.d.ts +4 -0
- package/lib/cjs/ui/Card/index.cjs +4 -0
- package/lib/cjs/ui/Card.cjs +2 -0
- package/lib/cjs/ui/Chip/Chip.cjs +32 -0
- package/lib/cjs/ui/Chip/Chip.d.ts +16 -0
- package/lib/cjs/ui/Chip/index.cjs +4 -0
- package/lib/cjs/ui/Chip.cjs +2 -0
- package/lib/cjs/ui/Dropdown/Dropdown.cjs +33 -0
- package/lib/cjs/ui/Dropdown/index.cjs +4 -0
- package/lib/cjs/ui/Dropdown.cjs +2 -0
- package/lib/cjs/ui/Form/Checkbox/Checkbox.cjs +47 -0
- package/lib/cjs/ui/Form/Checkbox/const.cjs +4 -0
- package/lib/cjs/ui/Form/Checkbox/index.cjs +4 -0
- package/lib/cjs/ui/Form/Checkbox.cjs +2 -0
- package/lib/cjs/ui/Form/DateField/DateField.cjs +158 -0
- package/lib/cjs/ui/Form/DateField/index.cjs +4 -0
- package/lib/cjs/ui/Form/DateField.cjs +2 -0
- package/lib/cjs/ui/Form/DatePicker/DatePicker.cjs +110 -0
- package/lib/cjs/ui/Form/DatePicker/index.cjs +4 -0
- package/lib/cjs/ui/Form/DatePicker.cjs +2 -0
- package/lib/cjs/ui/Form/FormControls/FormControls.cjs +22 -0
- package/lib/cjs/ui/Form/FormControls/const.cjs +6 -0
- package/lib/cjs/ui/Form/FormControls/index.cjs +4 -0
- package/lib/cjs/ui/Form/FormControls.cjs +2 -0
- package/lib/cjs/ui/Form/Interval/Interval.cjs +76 -0
- package/lib/cjs/ui/Form/Interval/IntervalSlide.cjs +29 -0
- package/lib/cjs/ui/Form/Interval/index.cjs +6 -0
- package/lib/cjs/ui/Form/Interval.cjs +2 -0
- package/lib/cjs/ui/Form/Password/Password.cjs +25 -0
- package/lib/cjs/ui/Form/Password/Password.d.ts +20 -0
- package/lib/cjs/ui/Form/Password/index.cjs +4 -0
- package/lib/cjs/ui/Form/Password.cjs +2 -0
- package/lib/cjs/ui/Form/Period/Period.cjs +140 -0
- package/lib/cjs/ui/Form/Period/Period.d.ts +32 -0
- package/lib/cjs/ui/Form/Period/index.cjs +4 -0
- package/lib/cjs/ui/Form/Period.cjs +2 -0
- package/lib/cjs/ui/Form/PeriodSelect/PeriodSelect.cjs +15 -0
- package/lib/cjs/ui/Form/PeriodSelect/index.cjs +4 -0
- package/lib/cjs/ui/Form/PeriodSelect.cjs +2 -0
- package/lib/cjs/ui/Form/Radio/Radio.cjs +9 -0
- package/lib/cjs/ui/Form/Radio/index.cjs +4 -0
- package/lib/cjs/ui/Form/Radio.cjs +2 -0
- package/lib/cjs/ui/Form/Rating/Rating.cjs +50 -0
- package/lib/cjs/ui/Form/Rating/const.cjs +7 -0
- package/lib/cjs/ui/Form/Rating/index.cjs +4 -0
- package/lib/cjs/ui/Form/Rating.cjs +2 -0
- package/lib/cjs/ui/Form/Select/Select.cjs +213 -0
- package/lib/cjs/ui/Form/Select/Select.d.ts +58 -0
- package/lib/cjs/ui/Form/Select/SelectOptionList.cjs +25 -0
- package/lib/cjs/ui/Form/Select/SelectOptionsContainer.cjs +14 -0
- package/lib/cjs/ui/Form/Select/SelectSummary.cjs +56 -0
- package/lib/cjs/ui/Form/Select/SelectSummary.d.ts +27 -0
- package/lib/cjs/ui/Form/Select/index.cjs +8 -0
- package/lib/cjs/ui/Form/Select.cjs +2 -0
- package/lib/cjs/ui/Form/Switch/Switch.cjs +15 -0
- package/lib/cjs/ui/Form/Switch/index.cjs +4 -0
- package/lib/cjs/ui/Form/Switch.cjs +2 -0
- package/lib/cjs/ui/Form/TextArea/TextArea.cjs +29 -0
- package/lib/cjs/ui/Form/TextArea/TextArea.d.ts +22 -0
- package/lib/cjs/ui/Form/TextArea/index.cjs +4 -0
- package/lib/cjs/ui/Form/TextArea.cjs +2 -0
- package/lib/cjs/ui/Form/TextField/TextField.cjs +120 -0
- package/lib/cjs/ui/Form/TextField/TextField.d.ts +54 -0
- package/lib/cjs/ui/Form/TextField/index.cjs +6 -0
- package/lib/cjs/ui/Form/TextField.cjs +2 -0
- package/lib/cjs/ui/Form/TimeField/TimeField.cjs +9 -0
- package/lib/cjs/ui/Form/TimeField/TimeField.d.ts +28 -0
- package/lib/cjs/ui/Form/TimeField/index.cjs +4 -0
- package/lib/cjs/ui/Form/TimeField.cjs +2 -0
- package/lib/cjs/ui/Form/TimePicker/TimePicker.cjs +13 -0
- package/lib/cjs/ui/Form/TimePicker/index.cjs +4 -0
- package/lib/cjs/ui/Form/TimePicker.cjs +2 -0
- package/lib/cjs/ui/HelperText/HelperText.cjs +18 -0
- package/lib/cjs/ui/HelperText/index.cjs +4 -0
- package/lib/cjs/ui/HelperText.cjs +2 -0
- package/lib/cjs/ui/Icon/Icon.cjs +29 -0
- package/lib/cjs/ui/Icon/Mi.cjs +14 -0
- package/lib/cjs/ui/Icon/Mi.d.ts +6 -0
- package/lib/cjs/ui/Icon/Mis.cjs +8 -0
- package/lib/cjs/ui/Icon/Mis.d.ts +2 -0
- package/lib/cjs/ui/Icon/index.cjs +8 -0
- package/lib/cjs/ui/Icon.cjs +2 -0
- package/lib/cjs/ui/Link/Link.cjs +32 -0
- package/lib/cjs/ui/Link/Link.d.ts +15 -0
- package/lib/cjs/ui/Link/index.cjs +4 -0
- package/lib/cjs/ui/Link.cjs +2 -0
- package/lib/cjs/ui/List/ListItem.cjs +44 -0
- package/lib/cjs/ui/List/index.cjs +4 -0
- package/lib/cjs/ui/List.cjs +2 -0
- package/lib/cjs/ui/Loader/Loader.cjs +19 -0
- package/lib/cjs/ui/Loader/index.cjs +4 -0
- package/lib/cjs/ui/Loader.cjs +2 -0
- package/lib/cjs/ui/Logo/Logo.cjs +46 -0
- package/lib/cjs/ui/Logo/index.cjs +4 -0
- package/lib/cjs/ui/Logo.cjs +2 -0
- package/lib/cjs/ui/Modal/BaseModal.cjs +35 -0
- package/lib/cjs/ui/Modal/Modal.cjs +87 -0
- package/lib/cjs/ui/Modal/const.cjs +6 -0
- package/lib/cjs/ui/Modal/index.cjs +4 -0
- package/lib/cjs/ui/Modal.cjs +2 -0
- package/lib/cjs/ui/Pagination/Pagination.cjs +80 -0
- package/lib/cjs/ui/Pagination/index.cjs +4 -0
- package/lib/cjs/ui/Pagination.cjs +2 -0
- package/lib/cjs/ui/Paper/Paper.cjs +19 -0
- package/lib/cjs/ui/Paper/index.cjs +4 -0
- package/lib/cjs/ui/Paper.cjs +2 -0
- package/lib/cjs/ui/Popover/Popover.cjs +21 -0
- package/lib/cjs/ui/Popover/index.cjs +4 -0
- package/lib/cjs/ui/Popover.cjs +2 -0
- package/lib/cjs/ui/Popper/Popper.cjs +11 -0
- package/lib/cjs/ui/Popper/Popper.d.ts +4 -0
- package/lib/cjs/ui/Popper/PopperBase.cjs +48 -0
- package/lib/cjs/ui/Popper/PopperBase.d.ts +14 -0
- package/lib/cjs/ui/Popper/index.cjs +6 -0
- package/lib/cjs/ui/Popper.cjs +2 -0
- package/lib/cjs/ui/Skeleton/Skeleton.cjs +20 -0
- package/lib/cjs/ui/Skeleton/index.cjs +4 -0
- package/lib/cjs/ui/Skeleton.cjs +2 -0
- package/lib/cjs/ui/Slider/RcSlider.cjs +1 -0
- package/lib/cjs/ui/Slider/Slider.cjs +24 -0
- package/lib/cjs/ui/Slider/index.cjs +4 -0
- package/lib/cjs/ui/Slider.cjs +2 -0
- package/lib/cjs/ui/Stack/Stack.cjs +38 -0
- package/lib/cjs/ui/Stack/Stack.d.ts +10 -0
- package/lib/cjs/ui/Stack/index.cjs +4 -0
- package/lib/cjs/ui/Stack.cjs +2 -0
- package/lib/cjs/ui/Status/Status.cjs +24 -0
- package/lib/cjs/ui/Status/Status.d.ts +13 -0
- package/lib/cjs/ui/Status/index.cjs +4 -0
- package/lib/cjs/ui/Status.cjs +2 -0
- package/lib/cjs/ui/Stepper/StepItem.cjs +35 -0
- package/lib/cjs/ui/Stepper/StepItemIcon.cjs +18 -0
- package/lib/cjs/ui/Stepper/Stepper.cjs +29 -0
- package/lib/cjs/ui/Stepper/index.cjs +4 -0
- package/lib/cjs/ui/Stepper.cjs +2 -0
- package/lib/cjs/ui/Table/Table.cjs +38 -0
- package/lib/cjs/ui/Table/TableBase.cjs +14 -0
- package/lib/cjs/ui/Table/TableCell.cjs +23 -0
- package/lib/cjs/ui/Table/TableRow.cjs +15 -0
- package/lib/cjs/ui/Table/index.cjs +8 -0
- package/lib/cjs/ui/Table.cjs +2 -0
- package/lib/cjs/ui/Tooltip/Tooltip.cjs +65 -0
- package/lib/cjs/ui/Tooltip/index.cjs +4 -0
- package/lib/cjs/ui/Tooltip.cjs +2 -0
- package/lib/esm/.d.ts +1 -0
- package/lib/esm/.js +1 -0
- package/lib/esm/assets/armtek-uikit-react.css +1188 -0
- package/lib/esm/index.d.ts +0 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/lib/const/styles.d.ts +1 -0
- package/lib/esm/lib/const/styles.js +4 -0
- package/lib/esm/lib/helpers/genericForwardRef.d.ts +2 -0
- package/lib/esm/lib/helpers/genericForwardRef.js +7 -0
- package/lib/esm/lib/helpers/getColorClasses.d.ts +1 -0
- package/lib/esm/lib/helpers/getColorClasses.js +14 -0
- package/lib/esm/lib/helpers/getSizeClasses.d.ts +1 -0
- package/lib/esm/lib/helpers/getSizeClasses.js +11 -0
- package/lib/esm/lib/helpers/getVariantClasses.d.ts +1 -0
- package/lib/esm/lib/helpers/getVariantClasses.js +11 -0
- package/lib/esm/lib/helpers/helpers.d.ts +21 -0
- package/lib/esm/lib/helpers/helpers.js +106 -0
- package/lib/esm/lib/helpers/index.d.ts +1 -0
- package/lib/esm/lib/helpers/index.js +4 -0
- package/lib/esm/lib/helpers/insertChar.d.ts +1 -0
- package/lib/esm/lib/helpers/insertChar.js +9 -0
- package/lib/esm/lib/helpers.d.ts +1 -0
- package/lib/esm/lib/helpers.js +1 -0
- package/lib/esm/lib/hooks/useClickOutside.d.ts +3 -0
- package/lib/esm/lib/hooks/useClickOutside.js +17 -0
- package/lib/esm/lib/hooks/useEnhancedEffect.d.ts +10 -0
- package/lib/esm/lib/hooks/useEnhancedEffect.js +5 -0
- package/lib/esm/lib/hooks/useEventCallback.d.ts +3 -0
- package/lib/esm/lib/hooks/useEventCallback.js +15 -0
- package/lib/esm/lib/hooks/useLazyRef.d.ts +1 -0
- package/lib/esm/lib/hooks/useLazyRef.js +12 -0
- package/lib/esm/lib/hooks/useTimeout.d.ts +11 -0
- package/lib/esm/lib/hooks/useTimeout.js +38 -0
- package/lib/esm/lib/services/DateService.d.ts +14 -0
- package/lib/esm/lib/services/DateService.js +62 -0
- package/lib/esm/types/theme.d.ts +11 -0
- package/lib/esm/types/theme.js +1 -0
- package/lib/esm/ui/Accordion/Accordion.classes.d.ts +5 -0
- package/lib/esm/ui/Accordion/Accordion.classes.js +32 -0
- package/lib/esm/ui/Accordion/Accordion.d.ts +19 -0
- package/lib/esm/ui/Accordion/Accordion.js +88 -0
- package/lib/esm/ui/Accordion/AccordionHeading.d.ts +7 -0
- package/lib/esm/ui/Accordion/AccordionHeading.js +27 -0
- package/lib/esm/ui/Accordion/index.d.ts +3 -0
- package/lib/esm/ui/Accordion/index.js +6 -0
- package/lib/esm/ui/Accordion.d.ts +2 -0
- package/lib/esm/ui/Accordion.js +2 -0
- package/lib/esm/ui/Adornment/Adornment.d.ts +12 -0
- package/lib/esm/ui/Adornment/Adornment.js +30 -0
- package/lib/esm/ui/Adornment/index.d.ts +2 -0
- package/lib/esm/ui/Adornment/index.js +5 -0
- package/lib/esm/ui/Adornment.d.ts +2 -0
- package/lib/esm/ui/Adornment.js +2 -0
- package/lib/esm/ui/Alert/Alert.d.ts +12 -0
- package/lib/esm/ui/Alert/Alert.js +33 -0
- package/lib/esm/ui/Alert/index.d.ts +2 -0
- package/lib/esm/ui/Alert/index.js +4 -0
- package/lib/esm/ui/Alert.d.ts +2 -0
- package/lib/esm/ui/Alert.js +2 -0
- package/lib/esm/ui/Avatar/Avatar.d.ts +15 -0
- package/lib/esm/ui/Avatar/Avatar.js +34 -0
- package/lib/esm/ui/Avatar/index.d.ts +2 -0
- package/lib/esm/ui/Avatar/index.js +4 -0
- package/lib/esm/ui/Avatar.d.ts +2 -0
- package/lib/esm/ui/Avatar.js +2 -0
- package/lib/esm/ui/AvatarGroup/AvatarGroup.d.ts +8 -0
- package/lib/esm/ui/AvatarGroup/AvatarGroup.js +23 -0
- package/lib/esm/ui/AvatarGroup/index.d.ts +2 -0
- package/lib/esm/ui/AvatarGroup/index.js +4 -0
- package/lib/esm/ui/AvatarGroup.d.ts +2 -0
- package/lib/esm/ui/AvatarGroup.js +2 -0
- package/lib/esm/ui/BackDrop/BackDrop.d.ts +4 -0
- package/lib/esm/ui/BackDrop/BackDrop.js +17 -0
- package/lib/esm/ui/BackDrop/BackDropBase.d.ts +7 -0
- package/lib/esm/ui/BackDrop/BackDropBase.js +27 -0
- package/lib/esm/ui/BackDrop/index.d.ts +2 -0
- package/lib/esm/ui/BackDrop/index.js +4 -0
- package/lib/esm/ui/BackDrop.d.ts +1 -0
- package/lib/esm/ui/BackDrop.js +1 -0
- package/lib/esm/ui/Badge/Badge.d.ts +12 -0
- package/lib/esm/ui/Badge/Badge.js +21 -0
- package/lib/esm/ui/Badge/index.d.ts +1 -0
- package/lib/esm/ui/Badge/index.js +4 -0
- package/lib/esm/ui/Badge.d.ts +2 -0
- package/lib/esm/ui/Badge.js +2 -0
- package/lib/esm/ui/Button/Button.d.ts +39 -0
- package/lib/esm/ui/Button/Button.js +45 -0
- package/lib/esm/ui/Button/index.d.ts +2 -0
- package/lib/esm/ui/Button/index.js +4 -0
- package/lib/esm/ui/Button.d.ts +2 -0
- package/lib/esm/ui/Button.js +2 -0
- package/lib/esm/ui/ButtonGroup/ButtonGroup.d.ts +6 -0
- package/lib/esm/ui/ButtonGroup/ButtonGroup.js +23 -0
- package/lib/esm/ui/ButtonGroup/index.d.ts +2 -0
- package/lib/esm/ui/ButtonGroup/index.js +4 -0
- package/lib/esm/ui/ButtonGroup.d.ts +2 -0
- package/lib/esm/ui/ButtonGroup.js +2 -0
- package/lib/esm/ui/ButtonIcon/ButtonIcon.d.ts +25 -0
- package/lib/esm/ui/ButtonIcon/ButtonIcon.js +18 -0
- package/lib/esm/ui/ButtonIcon/index.d.ts +2 -0
- package/lib/esm/ui/ButtonIcon/index.js +4 -0
- package/lib/esm/ui/ButtonIcon.d.ts +2 -0
- package/lib/esm/ui/ButtonIcon.js +2 -0
- package/lib/esm/ui/Card/Card.d.ts +4 -0
- package/lib/esm/ui/Card/Card.js +8 -0
- package/lib/esm/ui/Card/index.d.ts +2 -0
- package/lib/esm/ui/Card/index.js +4 -0
- package/lib/esm/ui/Card.d.ts +2 -0
- package/lib/esm/ui/Card.js +2 -0
- package/lib/esm/ui/Chip/Chip.d.ts +16 -0
- package/lib/esm/ui/Chip/Chip.js +32 -0
- package/lib/esm/ui/Chip/index.d.ts +2 -0
- package/lib/esm/ui/Chip/index.js +4 -0
- package/lib/esm/ui/Chip.d.ts +2 -0
- package/lib/esm/ui/Chip.js +2 -0
- package/lib/esm/ui/Dropdown/Dropdown.d.ts +8 -0
- package/lib/esm/ui/Dropdown/Dropdown.js +33 -0
- package/lib/esm/ui/Dropdown/index.d.ts +2 -0
- package/lib/esm/ui/Dropdown/index.js +4 -0
- package/lib/esm/ui/Dropdown.d.ts +2 -0
- package/lib/esm/ui/Dropdown.js +2 -0
- package/lib/esm/ui/Form/Checkbox/Checkbox.d.ts +14 -0
- package/lib/esm/ui/Form/Checkbox/Checkbox.js +47 -0
- package/lib/esm/ui/Form/Checkbox/const.d.ts +1 -0
- package/lib/esm/ui/Form/Checkbox/const.js +4 -0
- package/lib/esm/ui/Form/Checkbox/index.d.ts +2 -0
- package/lib/esm/ui/Form/Checkbox/index.js +4 -0
- package/lib/esm/ui/Form/Checkbox.d.ts +2 -0
- package/lib/esm/ui/Form/Checkbox.js +2 -0
- package/lib/esm/ui/Form/DateField/DateField.d.ts +25 -0
- package/lib/esm/ui/Form/DateField/DateField.js +158 -0
- package/lib/esm/ui/Form/DateField/index.d.ts +2 -0
- package/lib/esm/ui/Form/DateField/index.js +4 -0
- package/lib/esm/ui/Form/DateField.d.ts +2 -0
- package/lib/esm/ui/Form/DateField.js +2 -0
- package/lib/esm/ui/Form/DatePicker/DatePicker.d.ts +5 -0
- package/lib/esm/ui/Form/DatePicker/DatePicker.js +110 -0
- package/lib/esm/ui/Form/DatePicker/index.d.ts +2 -0
- package/lib/esm/ui/Form/DatePicker/index.js +4 -0
- package/lib/esm/ui/Form/DatePicker.d.ts +2 -0
- package/lib/esm/ui/Form/DatePicker.js +2 -0
- package/lib/esm/ui/Form/FormControls/FormControls.d.ts +19 -0
- package/lib/esm/ui/Form/FormControls/FormControls.js +22 -0
- package/lib/esm/ui/Form/FormControls/const.d.ts +2 -0
- package/lib/esm/ui/Form/FormControls/const.js +6 -0
- package/lib/esm/ui/Form/FormControls/index.d.ts +2 -0
- package/lib/esm/ui/Form/FormControls/index.js +4 -0
- package/lib/esm/ui/Form/FormControls.d.ts +1 -0
- package/lib/esm/ui/Form/FormControls.js +1 -0
- package/lib/esm/ui/Form/Interval/Interval.d.ts +14 -0
- package/lib/esm/ui/Form/Interval/Interval.js +76 -0
- package/lib/esm/ui/Form/Interval/IntervalSlide.d.ts +5 -0
- package/lib/esm/ui/Form/Interval/IntervalSlide.js +29 -0
- package/lib/esm/ui/Form/Interval/index.d.ts +3 -0
- package/lib/esm/ui/Form/Interval/index.js +6 -0
- package/lib/esm/ui/Form/Interval.d.ts +2 -0
- package/lib/esm/ui/Form/Interval.js +2 -0
- package/lib/esm/ui/Form/Password/Password.d.ts +20 -0
- package/lib/esm/ui/Form/Password/Password.js +25 -0
- package/lib/esm/ui/Form/Password/index.d.ts +1 -0
- package/lib/esm/ui/Form/Password/index.js +4 -0
- package/lib/esm/ui/Form/Password.d.ts +2 -0
- package/lib/esm/ui/Form/Password.js +2 -0
- package/lib/esm/ui/Form/Period/Period.d.ts +32 -0
- package/lib/esm/ui/Form/Period/Period.js +140 -0
- package/lib/esm/ui/Form/Period/index.d.ts +2 -0
- package/lib/esm/ui/Form/Period/index.js +4 -0
- package/lib/esm/ui/Form/Period.d.ts +2 -0
- package/lib/esm/ui/Form/Period.js +2 -0
- package/lib/esm/ui/Form/PeriodSelect/PeriodSelect.d.ts +2 -0
- package/lib/esm/ui/Form/PeriodSelect/PeriodSelect.js +15 -0
- package/lib/esm/ui/Form/PeriodSelect/index.d.ts +1 -0
- package/lib/esm/ui/Form/PeriodSelect/index.js +4 -0
- package/lib/esm/ui/Form/PeriodSelect.d.ts +2 -0
- package/lib/esm/ui/Form/PeriodSelect.js +2 -0
- package/lib/esm/ui/Form/Radio/Radio.d.ts +3 -0
- package/lib/esm/ui/Form/Radio/Radio.js +9 -0
- package/lib/esm/ui/Form/Radio/index.d.ts +1 -0
- package/lib/esm/ui/Form/Radio/index.js +4 -0
- package/lib/esm/ui/Form/Radio.d.ts +2 -0
- package/lib/esm/ui/Form/Radio.js +2 -0
- package/lib/esm/ui/Form/Rating/Rating.d.ts +23 -0
- package/lib/esm/ui/Form/Rating/Rating.js +50 -0
- package/lib/esm/ui/Form/Rating/const.d.ts +4 -0
- package/lib/esm/ui/Form/Rating/const.js +7 -0
- package/lib/esm/ui/Form/Rating/index.d.ts +2 -0
- package/lib/esm/ui/Form/Rating/index.js +4 -0
- package/lib/esm/ui/Form/Rating.d.ts +2 -0
- package/lib/esm/ui/Form/Rating.js +2 -0
- package/lib/esm/ui/Form/Select/Select.d.ts +58 -0
- package/lib/esm/ui/Form/Select/Select.js +213 -0
- package/lib/esm/ui/Form/Select/SelectOptionList.d.ts +13 -0
- package/lib/esm/ui/Form/Select/SelectOptionList.js +25 -0
- package/lib/esm/ui/Form/Select/SelectOptionsContainer.d.ts +7 -0
- package/lib/esm/ui/Form/Select/SelectOptionsContainer.js +14 -0
- package/lib/esm/ui/Form/Select/SelectSummary.d.ts +27 -0
- package/lib/esm/ui/Form/Select/SelectSummary.js +56 -0
- package/lib/esm/ui/Form/Select/index.d.ts +3 -0
- package/lib/esm/ui/Form/Select/index.js +8 -0
- package/lib/esm/ui/Form/Select.d.ts +2 -0
- package/lib/esm/ui/Form/Select.js +2 -0
- package/lib/esm/ui/Form/Switch/Switch.d.ts +7 -0
- package/lib/esm/ui/Form/Switch/Switch.js +15 -0
- package/lib/esm/ui/Form/Switch/index.d.ts +2 -0
- package/lib/esm/ui/Form/Switch/index.js +4 -0
- package/lib/esm/ui/Form/Switch.d.ts +2 -0
- package/lib/esm/ui/Form/Switch.js +2 -0
- package/lib/esm/ui/Form/TextArea/TextArea.d.ts +22 -0
- package/lib/esm/ui/Form/TextArea/TextArea.js +29 -0
- package/lib/esm/ui/Form/TextArea/index.d.ts +2 -0
- package/lib/esm/ui/Form/TextArea/index.js +4 -0
- package/lib/esm/ui/Form/TextArea.d.ts +2 -0
- package/lib/esm/ui/Form/TextArea.js +2 -0
- package/lib/esm/ui/Form/TextField/TextField.d.ts +54 -0
- package/lib/esm/ui/Form/TextField/TextField.js +120 -0
- package/lib/esm/ui/Form/TextField/index.d.ts +2 -0
- package/lib/esm/ui/Form/TextField/index.js +6 -0
- package/lib/esm/ui/Form/TextField.d.ts +2 -0
- package/lib/esm/ui/Form/TextField.js +2 -0
- package/lib/esm/ui/Form/TimeField/TimeField.d.ts +28 -0
- package/lib/esm/ui/Form/TimeField/TimeField.js +9 -0
- package/lib/esm/ui/Form/TimeField/index.d.ts +1 -0
- package/lib/esm/ui/Form/TimeField/index.js +4 -0
- package/lib/esm/ui/Form/TimeField.d.ts +2 -0
- package/lib/esm/ui/Form/TimeField.js +2 -0
- package/lib/esm/ui/Form/TimePicker/TimePicker.d.ts +2 -0
- package/lib/esm/ui/Form/TimePicker/TimePicker.js +13 -0
- package/lib/esm/ui/Form/TimePicker/index.d.ts +1 -0
- package/lib/esm/ui/Form/TimePicker/index.js +4 -0
- package/lib/esm/ui/Form/TimePicker.d.ts +2 -0
- package/lib/esm/ui/Form/TimePicker.js +2 -0
- package/lib/esm/ui/HelperText/HelperText.d.ts +7 -0
- package/lib/esm/ui/HelperText/HelperText.js +18 -0
- package/lib/esm/ui/HelperText/index.d.ts +1 -0
- package/lib/esm/ui/HelperText/index.js +4 -0
- package/lib/esm/ui/HelperText.d.ts +2 -0
- package/lib/esm/ui/HelperText.js +2 -0
- package/lib/esm/ui/Icon/Icon.d.ts +13 -0
- package/lib/esm/ui/Icon/Icon.js +29 -0
- package/lib/esm/ui/Icon/Mi.d.ts +6 -0
- package/lib/esm/ui/Icon/Mi.js +14 -0
- package/lib/esm/ui/Icon/Mis.d.ts +2 -0
- package/lib/esm/ui/Icon/Mis.js +8 -0
- package/lib/esm/ui/Icon/index.d.ts +4 -0
- package/lib/esm/ui/Icon/index.js +8 -0
- package/lib/esm/ui/Icon.d.ts +2 -0
- package/lib/esm/ui/Icon.js +2 -0
- package/lib/esm/ui/Link/Link.d.ts +15 -0
- package/lib/esm/ui/Link/Link.js +32 -0
- package/lib/esm/ui/Link/index.d.ts +2 -0
- package/lib/esm/ui/Link/index.js +4 -0
- package/lib/esm/ui/Link.d.ts +2 -0
- package/lib/esm/ui/Link.js +2 -0
- package/lib/esm/ui/List/ListItem.d.ts +14 -0
- package/lib/esm/ui/List/ListItem.js +44 -0
- package/lib/esm/ui/List/index.d.ts +2 -0
- package/lib/esm/ui/List/index.js +4 -0
- package/lib/esm/ui/List.d.ts +2 -0
- package/lib/esm/ui/List.js +2 -0
- package/lib/esm/ui/Loader/Loader.d.ts +9 -0
- package/lib/esm/ui/Loader/Loader.js +19 -0
- package/lib/esm/ui/Loader/index.d.ts +2 -0
- package/lib/esm/ui/Loader/index.js +4 -0
- package/lib/esm/ui/Loader.d.ts +2 -0
- package/lib/esm/ui/Loader.js +2 -0
- package/lib/esm/ui/Logo/Logo.d.ts +14 -0
- package/lib/esm/ui/Logo/Logo.js +46 -0
- package/lib/esm/ui/Logo/index.d.ts +2 -0
- package/lib/esm/ui/Logo/index.js +4 -0
- package/lib/esm/ui/Logo.d.ts +2 -0
- package/lib/esm/ui/Logo.js +2 -0
- package/lib/esm/ui/Modal/BaseModal.d.ts +17 -0
- package/lib/esm/ui/Modal/BaseModal.js +35 -0
- package/lib/esm/ui/Modal/Modal.d.ts +9 -0
- package/lib/esm/ui/Modal/Modal.js +87 -0
- package/lib/esm/ui/Modal/const.d.ts +2 -0
- package/lib/esm/ui/Modal/const.js +6 -0
- package/lib/esm/ui/Modal/index.d.ts +2 -0
- package/lib/esm/ui/Modal/index.js +4 -0
- package/lib/esm/ui/Modal.d.ts +1 -0
- package/lib/esm/ui/Modal.js +1 -0
- package/lib/esm/ui/Pagination/Pagination.d.ts +15 -0
- package/lib/esm/ui/Pagination/Pagination.js +80 -0
- package/lib/esm/ui/Pagination/index.d.ts +2 -0
- package/lib/esm/ui/Pagination/index.js +4 -0
- package/lib/esm/ui/Pagination.d.ts +1 -0
- package/lib/esm/ui/Pagination.js +1 -0
- package/lib/esm/ui/Paper/Paper.d.ts +9 -0
- package/lib/esm/ui/Paper/Paper.js +19 -0
- package/lib/esm/ui/Paper/index.d.ts +2 -0
- package/lib/esm/ui/Paper/index.js +4 -0
- package/lib/esm/ui/Paper.d.ts +2 -0
- package/lib/esm/ui/Paper.js +2 -0
- package/lib/esm/ui/Popover/Popover.d.ts +12 -0
- package/lib/esm/ui/Popover/Popover.js +21 -0
- package/lib/esm/ui/Popover/index.d.ts +2 -0
- package/lib/esm/ui/Popover/index.js +4 -0
- package/lib/esm/ui/Popover.d.ts +1 -0
- package/lib/esm/ui/Popover.js +1 -0
- package/lib/esm/ui/Popper/Popper.d.ts +4 -0
- package/lib/esm/ui/Popper/Popper.js +11 -0
- package/lib/esm/ui/Popper/PopperBase.d.ts +14 -0
- package/lib/esm/ui/Popper/PopperBase.js +48 -0
- package/lib/esm/ui/Popper/index.d.ts +2 -0
- package/lib/esm/ui/Popper/index.js +6 -0
- package/lib/esm/ui/Popper.d.ts +1 -0
- package/lib/esm/ui/Popper.js +1 -0
- package/lib/esm/ui/Skeleton/Skeleton.d.ts +8 -0
- package/lib/esm/ui/Skeleton/Skeleton.js +20 -0
- package/lib/esm/ui/Skeleton/index.d.ts +1 -0
- package/lib/esm/ui/Skeleton/index.js +4 -0
- package/lib/esm/ui/Skeleton.d.ts +1 -0
- package/lib/esm/ui/Skeleton.js +1 -0
- package/lib/esm/ui/Slider/RcSlider.d.ts +0 -0
- package/lib/esm/ui/Slider/RcSlider.js +1 -0
- package/lib/esm/ui/Slider/Slider.d.ts +9 -0
- package/lib/esm/ui/Slider/Slider.js +24 -0
- package/lib/esm/ui/Slider/index.d.ts +2 -0
- package/lib/esm/ui/Slider/index.js +4 -0
- package/lib/esm/ui/Slider.d.ts +2 -0
- package/lib/esm/ui/Slider.js +2 -0
- package/lib/esm/ui/Stack/Stack.d.ts +10 -0
- package/lib/esm/ui/Stack/Stack.js +38 -0
- package/lib/esm/ui/Stack/index.d.ts +2 -0
- package/lib/esm/ui/Stack/index.js +4 -0
- package/lib/esm/ui/Stack.d.ts +2 -0
- package/lib/esm/ui/Stack.js +2 -0
- package/lib/esm/ui/Status/Status.d.ts +13 -0
- package/lib/esm/ui/Status/Status.js +24 -0
- package/lib/esm/ui/Status/index.d.ts +1 -0
- package/lib/esm/ui/Status/index.js +4 -0
- package/lib/esm/ui/Status.d.ts +2 -0
- package/lib/esm/ui/Status.js +2 -0
- package/lib/esm/ui/Stepper/StepItem.d.ts +14 -0
- package/lib/esm/ui/Stepper/StepItem.js +35 -0
- package/lib/esm/ui/Stepper/StepItemIcon.d.ts +11 -0
- package/lib/esm/ui/Stepper/StepItemIcon.js +18 -0
- package/lib/esm/ui/Stepper/Stepper.d.ts +12 -0
- package/lib/esm/ui/Stepper/Stepper.js +29 -0
- package/lib/esm/ui/Stepper/index.d.ts +2 -0
- package/lib/esm/ui/Stepper/index.js +4 -0
- package/lib/esm/ui/Stepper.d.ts +2 -0
- package/lib/esm/ui/Stepper.js +2 -0
- package/lib/esm/ui/Table/Table.d.ts +37 -0
- package/lib/esm/ui/Table/Table.js +38 -0
- package/lib/esm/ui/Table/TableBase.d.ts +3 -0
- package/lib/esm/ui/Table/TableBase.js +14 -0
- package/lib/esm/ui/Table/TableCell.d.ts +10 -0
- package/lib/esm/ui/Table/TableCell.js +23 -0
- package/lib/esm/ui/Table/TableRow.d.ts +4 -0
- package/lib/esm/ui/Table/TableRow.js +15 -0
- package/lib/esm/ui/Table/index.d.ts +3 -0
- package/lib/esm/ui/Table/index.js +8 -0
- package/lib/esm/ui/Table.d.ts +1 -0
- package/lib/esm/ui/Table.js +1 -0
- package/lib/esm/ui/Tooltip/Tooltip.d.ts +14 -0
- package/lib/esm/ui/Tooltip/Tooltip.js +65 -0
- package/lib/esm/ui/Tooltip/index.d.ts +2 -0
- package/lib/esm/ui/Tooltip/index.js +4 -0
- package/lib/esm/ui/Tooltip.d.ts +2 -0
- package/lib/esm/ui/Tooltip.js +2 -0
- package/package.json +97 -1
- package/assets/Accordion.scss +0 -123
- package/assets/Adornment.scss +0 -23
- package/assets/Alert.scss +0 -57
- package/assets/Avatar.scss +0 -111
- package/assets/AvatarGroup.scss +0 -48
- package/assets/BackDrop.scss +0 -39
- package/assets/Badge.scss +0 -97
- package/assets/Button.scss +0 -751
- package/assets/ButtonGroup.scss +0 -38
- package/assets/ButtonIcon.scss +0 -59
- package/assets/Card.scss +0 -14
- package/assets/Checkbox.scss +0 -313
- package/assets/Chip.scss +0 -327
- package/assets/DateField.scss +0 -3
- package/assets/DatePicker.scss +0 -73
- package/assets/Dropdown.scss +0 -43
- package/assets/FormControls.scss +0 -15
- package/assets/HelperText.scss +0 -12
- package/assets/Icon.scss +0 -31
- package/assets/Interval.scss +0 -35
- package/assets/Link.scss +0 -97
- package/assets/ListItem.scss +0 -77
- package/assets/Loader.scss +0 -57
- package/assets/Logo.scss +0 -29
- package/assets/Modal.scss +0 -103
- package/assets/Pagination.scss +0 -3
- package/assets/Paper.scss +0 -23
- package/assets/Period.scss +0 -9
- package/assets/Popper.scss +0 -3
- package/assets/Rating.scss +0 -27
- package/assets/Select.scss +0 -86
- package/assets/Skeleton.scss +0 -26
- package/assets/Slider.scss +0 -6
- package/assets/Stack.scss +0 -28
- package/assets/Status.scss +0 -69
- package/assets/StepItem.scss +0 -90
- package/assets/StepItemIcon.scss +0 -48
- package/assets/Stepper.scss +0 -31
- package/assets/Switch.scss +0 -68
- package/assets/Table.scss +0 -53
- package/assets/TextArea.scss +0 -23
- package/assets/TextField.scss +0 -206
- package/assets/Tooltip.scss +0 -18
- package/assets/classes.scss +0 -422
- package/assets/fonts.scss +0 -24
- package/assets/global.scss +0 -222
- package/assets/styles.min.css +0 -1
- package/assets/styles.min.css.map +0 -1
- package/assets/styles.scss +0 -47
- package/assets/variables.scss +0 -13
- package/index.js +0 -43
- package/lib/const/styles.js +0 -5
- package/lib/helpers/genericForwardRef.js +0 -8
- package/lib/helpers/getColorClasses.js +0 -15
- package/lib/helpers/getSizeClasses.js +0 -12
- package/lib/helpers/getVariantClasses.js +0 -12
- package/lib/helpers/helpers.d.ts +0 -21
- package/lib/helpers/helpers.js +0 -73
- package/lib/helpers/index.js +0 -6
- package/lib/helpers/insertChar.js +0 -11
- package/lib/hooks/useClickOutside.js +0 -21
- package/lib/hooks/useEnhancedEffect.js +0 -17
- package/lib/hooks/useEventCallback.js +0 -20
- package/lib/hooks/useLazyRef.js +0 -15
- package/lib/hooks/useTimeout.js +0 -42
- package/lib/services/DateService.js +0 -64
- package/types/theme.js +0 -3
- package/ui/Accordion/Accordion.classes.js +0 -35
- package/ui/Accordion/Accordion.js +0 -137
- package/ui/Accordion/AccordionHeading.js +0 -37
- package/ui/Accordion/index.js +0 -9
- package/ui/Adornment/Adornment.js +0 -46
- package/ui/Adornment/index.js +0 -8
- package/ui/Alert/Alert.js +0 -59
- package/ui/Alert/index.js +0 -8
- package/ui/Avatar/Avatar.d.ts +0 -24
- package/ui/Avatar/Avatar.js +0 -66
- package/ui/Avatar/index.js +0 -8
- package/ui/AvatarGroup/AvatarGroup.js +0 -32
- package/ui/AvatarGroup/index.js +0 -8
- package/ui/BackDrop/BackDrop.js +0 -27
- package/ui/BackDrop/BackDropBase.js +0 -39
- package/ui/BackDrop/index.js +0 -8
- package/ui/Badge/Badge.js +0 -33
- package/ui/Badge/index.js +0 -8
- package/ui/Button/Button.d.ts +0 -39
- package/ui/Button/Button.js +0 -62
- package/ui/Button/index.js +0 -8
- package/ui/ButtonGroup/ButtonGroup.js +0 -32
- package/ui/ButtonGroup/index.js +0 -8
- package/ui/ButtonIcon/ButtonIcon.d.ts +0 -25
- package/ui/ButtonIcon/ButtonIcon.js +0 -35
- package/ui/ButtonIcon/index.js +0 -8
- package/ui/Card/Card.d.ts +0 -4
- package/ui/Card/Card.js +0 -19
- package/ui/Card/index.js +0 -8
- package/ui/Chip/Chip.d.ts +0 -18
- package/ui/Chip/Chip.js +0 -74
- package/ui/Chip/index.js +0 -8
- package/ui/Dropdown/Dropdown.js +0 -62
- package/ui/Dropdown/index.js +0 -8
- package/ui/Form/Checkbox/Checkbox.js +0 -68
- package/ui/Form/Checkbox/const.js +0 -5
- package/ui/Form/Checkbox/index.js +0 -8
- package/ui/Form/DateField/DateField.js +0 -231
- package/ui/Form/DateField/index.js +0 -8
- package/ui/Form/DatePicker/DatePicker.js +0 -169
- package/ui/Form/DatePicker/index.js +0 -8
- package/ui/Form/DatePicker/styles.css +0 -803
- package/ui/Form/FormControls/FormControls.js +0 -50
- package/ui/Form/FormControls/const.js +0 -6
- package/ui/Form/FormControls/index.js +0 -8
- package/ui/Form/Interval/Interval.js +0 -118
- package/ui/Form/Interval/IntervalSlide.js +0 -55
- package/ui/Form/Interval/index.js +0 -9
- package/ui/Form/Password/Password.d.ts +0 -24
- package/ui/Form/Password/Password.js +0 -46
- package/ui/Form/Password/index.js +0 -8
- package/ui/Form/Period/Period.d.ts +0 -32
- package/ui/Form/Period/Period.js +0 -193
- package/ui/Form/Period/index.js +0 -8
- package/ui/Form/PeriodSelect/PeriodSelect.js +0 -28
- package/ui/Form/PeriodSelect/index.js +0 -8
- package/ui/Form/Radio/Radio.js +0 -19
- package/ui/Form/Radio/index.js +0 -8
- package/ui/Form/Rating/Rating.js +0 -74
- package/ui/Form/Rating/const.js +0 -8
- package/ui/Form/Rating/index.js +0 -8
- package/ui/Form/Select/Select.d.ts +0 -58
- package/ui/Form/Select/Select.js +0 -330
- package/ui/Form/Select/SelectOptionList.js +0 -38
- package/ui/Form/Select/SelectOptionsContainer.js +0 -20
- package/ui/Form/Select/SelectSummary.d.ts +0 -27
- package/ui/Form/Select/SelectSummary.js +0 -114
- package/ui/Form/Select/index.js +0 -11
- package/ui/Form/Switch/Switch.js +0 -27
- package/ui/Form/Switch/index.js +0 -8
- package/ui/Form/TextArea/TextArea.d.ts +0 -32
- package/ui/Form/TextArea/TextArea.js +0 -51
- package/ui/Form/TextArea/index.js +0 -8
- package/ui/Form/TextField/TextField.d.ts +0 -65
- package/ui/Form/TextField/TextField.js +0 -240
- package/ui/Form/TextField/index.js +0 -9
- package/ui/Form/TimeField/TimeField.d.ts +0 -28
- package/ui/Form/TimeField/TimeField.js +0 -20
- package/ui/Form/TimeField/index.js +0 -8
- package/ui/Form/TimePicker/TimePicker.js +0 -27
- package/ui/Form/TimePicker/index.js +0 -8
- package/ui/HelperText/HelperText.js +0 -28
- package/ui/HelperText/index.js +0 -8
- package/ui/Icon/Icon.js +0 -41
- package/ui/Icon/Mi.d.ts +0 -22
- package/ui/Icon/Mi.js +0 -31
- package/ui/Icon/Mis.d.ts +0 -2
- package/ui/Icon/Mis.js +0 -16
- package/ui/Icon/index.js +0 -11
- package/ui/Link/Link.d.ts +0 -16
- package/ui/Link/Link.js +0 -45
- package/ui/Link/index.js +0 -8
- package/ui/List/ListItem.js +0 -76
- package/ui/List/index.js +0 -8
- package/ui/Loader/Loader.js +0 -28
- package/ui/Loader/index.js +0 -8
- package/ui/Logo/Logo.js +0 -110
- package/ui/Logo/index.js +0 -8
- package/ui/Modal/BaseModal.js +0 -84
- package/ui/Modal/Modal.js +0 -110
- package/ui/Modal/const.js +0 -6
- package/ui/Modal/index.js +0 -8
- package/ui/Pagination/Pagination.js +0 -158
- package/ui/Pagination/index.js +0 -8
- package/ui/Paper/Paper.js +0 -29
- package/ui/Paper/index.js +0 -8
- package/ui/Popover/Popover.js +0 -37
- package/ui/Popover/index.js +0 -8
- package/ui/Popper/Popper.d.ts +0 -4
- package/ui/Popper/Popper.js +0 -21
- package/ui/Popper/PopperBase.d.ts +0 -14
- package/ui/Popper/PopperBase.js +0 -60
- package/ui/Popper/index.js +0 -9
- package/ui/Skeleton/Skeleton.js +0 -28
- package/ui/Skeleton/index.js +0 -8
- package/ui/Slider/RcSlider.js +0 -1
- package/ui/Slider/Slider.js +0 -40
- package/ui/Slider/index.js +0 -8
- package/ui/Slider/style.scss +0 -347
- package/ui/Stack/Stack.d.ts +0 -10
- package/ui/Stack/Stack.js +0 -62
- package/ui/Stack/index.js +0 -8
- package/ui/Status/Status.d.ts +0 -14
- package/ui/Status/Status.js +0 -39
- package/ui/Status/index.js +0 -8
- package/ui/Stepper/StepItem.js +0 -55
- package/ui/Stepper/StepItemIcon.js +0 -38
- package/ui/Stepper/Stepper.js +0 -49
- package/ui/Stepper/index.js +0 -8
- package/ui/Table/Table.js +0 -64
- package/ui/Table/TableBase.js +0 -21
- package/ui/Table/TableCell.js +0 -35
- package/ui/Table/TableRow.js +0 -24
- package/ui/Table/index.js +0 -10
- package/ui/Tooltip/Tooltip.js +0 -88
- package/ui/Tooltip/index.js +0 -8
- /package/{index.d.ts → lib/cjs/index.d.ts} +0 -0
- /package/lib/{const → cjs/lib/const}/styles.d.ts +0 -0
- /package/lib/{helpers → cjs/lib/helpers}/genericForwardRef.d.ts +0 -0
- /package/lib/{helpers → cjs/lib/helpers}/getColorClasses.d.ts +0 -0
- /package/lib/{helpers → cjs/lib/helpers}/getSizeClasses.d.ts +0 -0
- /package/lib/{helpers → cjs/lib/helpers}/getVariantClasses.d.ts +0 -0
- /package/lib/{helpers → cjs/lib/helpers}/index.d.ts +0 -0
- /package/lib/{helpers → cjs/lib/helpers}/insertChar.d.ts +0 -0
- /package/lib/{hooks → cjs/lib/hooks}/useClickOutside.d.ts +0 -0
- /package/lib/{hooks → cjs/lib/hooks}/useEnhancedEffect.d.ts +0 -0
- /package/lib/{hooks → cjs/lib/hooks}/useEventCallback.d.ts +0 -0
- /package/lib/{hooks → cjs/lib/hooks}/useLazyRef.d.ts +0 -0
- /package/lib/{hooks → cjs/lib/hooks}/useTimeout.d.ts +0 -0
- /package/lib/{services → cjs/lib/services}/DateService.d.ts +0 -0
- /package/{types → lib/cjs/types}/theme.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Accordion/Accordion.classes.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Accordion/Accordion.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Accordion/AccordionHeading.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Accordion/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Adornment/Adornment.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Adornment/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Alert/Alert.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Alert/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Avatar/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/AvatarGroup/AvatarGroup.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/AvatarGroup/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/BackDrop/BackDrop.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/BackDrop/BackDropBase.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/BackDrop/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Badge/Badge.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Badge/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Button/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/ButtonGroup/ButtonGroup.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/ButtonGroup/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/ButtonIcon/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Card/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Chip/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Dropdown/Dropdown.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Dropdown/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Checkbox/Checkbox.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Checkbox/const.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Checkbox/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/DateField/DateField.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/DateField/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/DatePicker/DatePicker.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/DatePicker/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/FormControls/FormControls.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/FormControls/const.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/FormControls/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Interval/Interval.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Interval/IntervalSlide.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Interval/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Password/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Period/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/PeriodSelect/PeriodSelect.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/PeriodSelect/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Radio/Radio.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Radio/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Rating/Rating.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Rating/const.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Rating/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Select/SelectOptionList.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Select/SelectOptionsContainer.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Select/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Switch/Switch.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/Switch/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/TextArea/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/TextField/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/TimeField/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/TimePicker/TimePicker.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Form/TimePicker/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/HelperText/HelperText.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/HelperText/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Icon/Icon.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Icon/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Link/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/List/ListItem.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/List/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Loader/Loader.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Loader/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Logo/Logo.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Logo/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Modal/BaseModal.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Modal/Modal.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Modal/const.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Modal/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Pagination/Pagination.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Pagination/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Paper/Paper.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Paper/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Popover/Popover.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Popover/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Popper/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Skeleton/Skeleton.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Skeleton/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Slider/RcSlider.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Slider/Slider.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Slider/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Stack/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Status/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Stepper/StepItem.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Stepper/StepItemIcon.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Stepper/Stepper.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Stepper/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Table/Table.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Table/TableBase.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Table/TableCell.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Table/TableRow.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Table/index.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Tooltip/Tooltip.d.ts +0 -0
- /package/{ui → lib/cjs/ui}/Tooltip/index.d.ts +0 -0
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.getDateFormat = exports.default = exports.DateField = void 0;
|
|
7
|
-
var _TextField = _interopRequireDefault(require("../TextField/TextField"));
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _Card = _interopRequireDefault(require("../../Card/Card"));
|
|
10
|
-
var _DatePicker = _interopRequireDefault(require("../DatePicker/DatePicker"));
|
|
11
|
-
var _ButtonIcon = _interopRequireDefault(require("../../ButtonIcon"));
|
|
12
|
-
var _BackDrop = _interopRequireDefault(require("../../BackDrop"));
|
|
13
|
-
var _PopperBase = require("../../Popper/PopperBase");
|
|
14
|
-
var _DateService = require("../../../lib/services/DateService");
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
// import { insertChar } from 'lib/helpers/insertChar'
|
|
17
|
-
|
|
18
|
-
const getDateFormat = format => {
|
|
19
|
-
let out = {};
|
|
20
|
-
if (!format) return out;
|
|
21
|
-
if (format.includes('dd')) out.day = '2-digit';
|
|
22
|
-
if (format.includes('MM')) out.month = '2-digit';
|
|
23
|
-
if (format.includes('yyyy')) out.year = 'numeric';
|
|
24
|
-
if (format.includes('HH')) out.hour = '2-digit';
|
|
25
|
-
if (format.includes('mm')) out.minute = '2-digit';
|
|
26
|
-
return out;
|
|
27
|
-
};
|
|
28
|
-
exports.getDateFormat = getDateFormat;
|
|
29
|
-
const dateToText = (d, format) => {
|
|
30
|
-
if (!d) return '';
|
|
31
|
-
if (typeof d === 'string') d = new Date(d);
|
|
32
|
-
return d.toLocaleString('ru-RU', getDateFormat(format));
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/*
|
|
36
|
-
TODO: Не отрабатывает ...register из react-hook-form при предзаполненном поле
|
|
37
|
-
*/
|
|
38
|
-
const DateField = exports.DateField = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
39
|
-
let {
|
|
40
|
-
onChange,
|
|
41
|
-
inputProps,
|
|
42
|
-
onInput,
|
|
43
|
-
label,
|
|
44
|
-
placeholder,
|
|
45
|
-
className,
|
|
46
|
-
showTime,
|
|
47
|
-
error,
|
|
48
|
-
helperText,
|
|
49
|
-
showTimeOnly,
|
|
50
|
-
disabled,
|
|
51
|
-
value,
|
|
52
|
-
...datepickerProps
|
|
53
|
-
} = props;
|
|
54
|
-
let format = 'dd.MM.yyyy';
|
|
55
|
-
if (showTime && !showTimeOnly) format = 'dd.MM.yyyy HH:mm';else if (showTimeOnly) format = 'HH:mm';
|
|
56
|
-
const [date, setDate] = (0, _react.useState)(null);
|
|
57
|
-
const [open, setOpen] = (0, _react.useState)(false);
|
|
58
|
-
const [text, setText] = (0, _react.useState)(dateToText(value, format));
|
|
59
|
-
(0, _react.useEffect)(() => {
|
|
60
|
-
if (value) setText(dateToText(value, format));
|
|
61
|
-
}, [value]);
|
|
62
|
-
const handleChange = d => {
|
|
63
|
-
setDate(d);
|
|
64
|
-
if (!showTime || showTime && d && d.getHours() > 0) setOpen(false);
|
|
65
|
-
if (onChange) {
|
|
66
|
-
const e = new Event('input', {
|
|
67
|
-
bubbles: true
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(e, 'target', {
|
|
70
|
-
writable: false,
|
|
71
|
-
value: {
|
|
72
|
-
name: props.name,
|
|
73
|
-
value: d
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
onChange(e);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
const handleClick = e => {
|
|
80
|
-
setOpen(prev => !prev);
|
|
81
|
-
if (props.onClick) props.onClick(e);
|
|
82
|
-
};
|
|
83
|
-
const btnRef = (0, _react.useRef)();
|
|
84
|
-
const inputIcon = showTime && showTimeOnly ? 'schedule' : 'calendar_today';
|
|
85
|
-
const handleSelectDate = date => {
|
|
86
|
-
setText(dateToText(date, format));
|
|
87
|
-
handleChange(date);
|
|
88
|
-
};
|
|
89
|
-
const processChange = value => {
|
|
90
|
-
if (disabled) return;
|
|
91
|
-
//backspace
|
|
92
|
-
const bs = (text.endsWith('.') || text.endsWith(' ') || text.endsWith(':')) && text.length > value.length;
|
|
93
|
-
let matcher = /^\d{2}\.\d{2}\.\d{4}$/;
|
|
94
|
-
|
|
95
|
-
// if( backSpace )
|
|
96
|
-
// {
|
|
97
|
-
// value = value.replace(/(\.)$/, '')
|
|
98
|
-
// .replace(/( )$/, '')
|
|
99
|
-
// .replace(/(:)$/, '')
|
|
100
|
-
// }
|
|
101
|
-
// else
|
|
102
|
-
if (!bs) {
|
|
103
|
-
value = value.replace(/[^\d ]/g, '');
|
|
104
|
-
if (showTimeOnly) {
|
|
105
|
-
matcher = /^\d{2}:\d{2}$/;
|
|
106
|
-
value = value.replace(/^(\d{2})/, '$1:').replace(/^(\d{2}):(\d{2})(\d)$/, '$1:$2');
|
|
107
|
-
} else {
|
|
108
|
-
value = value.replace(/[^\d ]/g, '').replace(/^(\d{2})/, '$1.').replace(/^(\d{2})\.(\d{2})/, '$1.$2.').replace(/^(\d{2})\.(\d{2})\.(\d{4})/, '$1.$2.$3');
|
|
109
|
-
if (showTime) {
|
|
110
|
-
value = value.replace(/^(\d{2})\.(\d{2})\.(\d{4})(\d)/, '$1.$2.$3 $4').replace(/^(\d{2})\.(\d{2})\.(\d{4}) (\d{2})/, '$1.$2.$3 $4:').replace(/^(\d{2})\.(\d{2})\.(\d{4})(\d{2})/, '$1.$2.$3 $4:').replace(/^(\d{2})\.(\d{2})\.(\d{4}) (\d{2}):(\d{2})/, '$1.$2.$3 $4:$5').replace(/^(\d{2})\.(\d{2})\.(\d{4}) (\d{2}):(\d{2})(\d)/, '$1.$2.$3 $4:$5');
|
|
111
|
-
matcher = /\d{2}\.\d{2}\.\d{4} \d{2}:\d{2}/;
|
|
112
|
-
} else value = value.replace(/^(\d{2})\.(\d{2})\.(\d{4})(\d)/, '$1.$2.$3');
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
setText(value);
|
|
116
|
-
setDate(null);
|
|
117
|
-
if (!bs && value.match(new RegExp(matcher))) {
|
|
118
|
-
const dateAndTimeParts = value.split(' ');
|
|
119
|
-
const dateParts = dateAndTimeParts[0].split('.');
|
|
120
|
-
let parseString = '';
|
|
121
|
-
let timestamp;
|
|
122
|
-
if (showTimeOnly) {
|
|
123
|
-
const today = new Date();
|
|
124
|
-
const hourParts = value.split(':').map(Number);
|
|
125
|
-
today.setHours(hourParts[0], hourParts[1], hourParts[2] || 0, 0);
|
|
126
|
-
timestamp = today.getTime();
|
|
127
|
-
} else {
|
|
128
|
-
parseString = `${dateParts[2]}-${dateParts[1]}-${dateParts[0]}`;
|
|
129
|
-
if (showTime) parseString = parseString + ` ${dateAndTimeParts[1]}`;
|
|
130
|
-
timestamp = Date.parse(parseString);
|
|
131
|
-
}
|
|
132
|
-
if (isNaN(timestamp) === false) {
|
|
133
|
-
const d = new Date(timestamp);
|
|
134
|
-
if (datepickerProps.minDate && (0, _DateService.isDateBigger)(datepickerProps.minDate, d)) {
|
|
135
|
-
setText('');
|
|
136
|
-
handleChange(null);
|
|
137
|
-
} else if (datepickerProps.maxDate && (0, _DateService.isDateBigger)(d, datepickerProps.maxDate)) {
|
|
138
|
-
setText('');
|
|
139
|
-
handleChange(null);
|
|
140
|
-
} else {
|
|
141
|
-
setText(d.toLocaleString('ru-RU', getDateFormat(format)));
|
|
142
|
-
handleChange(d);
|
|
143
|
-
}
|
|
144
|
-
} else {
|
|
145
|
-
setText('');
|
|
146
|
-
handleChange(null);
|
|
147
|
-
}
|
|
148
|
-
} else {
|
|
149
|
-
handleChange(null);
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
const handleChangeText = e => {
|
|
153
|
-
processChange(e.target.value);
|
|
154
|
-
};
|
|
155
|
-
const handlePaste = e => {
|
|
156
|
-
processChange(e.currentTarget.value);
|
|
157
|
-
};
|
|
158
|
-
let realValue = value !== undefined ? value : date;
|
|
159
|
-
let dateValue = typeof realValue === 'string' ? new Date(realValue) : realValue;
|
|
160
|
-
if (!(dateValue instanceof Date && !isNaN(dateValue.getDate()))) dateValue = null;
|
|
161
|
-
|
|
162
|
-
//TODO Подключение Popover ломает тесты, разобраться почему
|
|
163
|
-
|
|
164
|
-
const calendarBtn = /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonIcon.default, {
|
|
165
|
-
disabled: disabled,
|
|
166
|
-
size: 'medium',
|
|
167
|
-
variant: 'transparent',
|
|
168
|
-
onClick: handleClick,
|
|
169
|
-
color: 'neutral',
|
|
170
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
171
|
-
ref: btnRef,
|
|
172
|
-
className: 'material_icon',
|
|
173
|
-
children: inputIcon
|
|
174
|
-
})
|
|
175
|
-
});
|
|
176
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
177
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
|
|
178
|
-
ref: ref,
|
|
179
|
-
label: label,
|
|
180
|
-
placeholder: placeholder,
|
|
181
|
-
className: className,
|
|
182
|
-
error: error,
|
|
183
|
-
helperText: helperText,
|
|
184
|
-
...inputProps,
|
|
185
|
-
value: text || '',
|
|
186
|
-
disabled: disabled,
|
|
187
|
-
onChange: handleChangeText,
|
|
188
|
-
onPaste: handlePaste,
|
|
189
|
-
endAdornment: calendarBtn
|
|
190
|
-
}), open && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BackDrop.default, {
|
|
191
|
-
onClick: () => setOpen(false),
|
|
192
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PopperBase.PopperBase, {
|
|
193
|
-
anchorEl: btnRef.current,
|
|
194
|
-
className: 'arm-datefield-popper',
|
|
195
|
-
open: open,
|
|
196
|
-
placement: 'bottom-end',
|
|
197
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
198
|
-
style: {
|
|
199
|
-
backgroundColor: '#fff',
|
|
200
|
-
width: '100%'
|
|
201
|
-
},
|
|
202
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DatePicker.default, {
|
|
203
|
-
timeIntervals: 15,
|
|
204
|
-
calendarContainer: PickerCard,
|
|
205
|
-
popperPlacement: "top-end",
|
|
206
|
-
dateFormat: format,
|
|
207
|
-
...datepickerProps,
|
|
208
|
-
onChange: handleSelectDate,
|
|
209
|
-
selected: dateValue,
|
|
210
|
-
showTimeSelect: !!showTime,
|
|
211
|
-
showTimeSelectOnly: !!showTimeOnly && !!showTime,
|
|
212
|
-
disabled: disabled,
|
|
213
|
-
inline: true
|
|
214
|
-
})
|
|
215
|
-
})
|
|
216
|
-
})
|
|
217
|
-
})]
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
const PickerCard = props => {
|
|
221
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Card.default, {
|
|
222
|
-
style: {
|
|
223
|
-
zIndex: 6
|
|
224
|
-
},
|
|
225
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
226
|
-
className: props.className,
|
|
227
|
-
children: props.children
|
|
228
|
-
})
|
|
229
|
-
});
|
|
230
|
-
};
|
|
231
|
-
var _default = exports.default = DateField;
|
|
@@ -1,8 +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 _DateField = _interopRequireDefault(require("./DateField"));
|
|
7
|
-
exports.default = _DateField.default;
|
|
8
|
-
module.exports = exports.default;
|
|
@@ -1,169 +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 _react = require("react");
|
|
7
|
-
var _reactDatepicker = _interopRequireDefault(require("react-datepicker"));
|
|
8
|
-
require("./styles.css");
|
|
9
|
-
var _ru = require("date-fns/locale/ru");
|
|
10
|
-
var _format = require("date-fns/format");
|
|
11
|
-
var _ButtonIcon = _interopRequireDefault(require("../../ButtonIcon"));
|
|
12
|
-
var _Stack = _interopRequireDefault(require("../../Stack"));
|
|
13
|
-
var _Select = _interopRequireDefault(require("../Select"));
|
|
14
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
// import '!style-loader!css-loader!./styles.css'
|
|
17
|
-
|
|
18
|
-
// import ru from 'date-fns/locale/ru'
|
|
19
|
-
// import rus from 'date-fns/locale/ru'
|
|
20
|
-
// import ru from 'date-fns/esm/locale/ru'
|
|
21
|
-
|
|
22
|
-
// type DatePickerProps = any
|
|
23
|
-
// type ReactDatePickerCustomHeaderProps = any
|
|
24
|
-
const renderDayContents = day => {
|
|
25
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
26
|
-
className: 'customDay',
|
|
27
|
-
children: day
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
const DatePicker = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
31
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
32
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
33
|
-
className: 'ui-datepicker',
|
|
34
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDatepicker.default, {
|
|
35
|
-
ref: ref,
|
|
36
|
-
locale: _ru.ru
|
|
37
|
-
// useWeekdaysShort={false}
|
|
38
|
-
// formatWeekDay={date => {
|
|
39
|
-
// console.log(date)
|
|
40
|
-
// return '123'
|
|
41
|
-
// }}
|
|
42
|
-
,
|
|
43
|
-
|
|
44
|
-
inline: true,
|
|
45
|
-
renderDayContents: renderDayContents,
|
|
46
|
-
...props,
|
|
47
|
-
renderCustomHeader: headerProps => {
|
|
48
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PickerHeader, {
|
|
49
|
-
...headerProps,
|
|
50
|
-
...props
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
})
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
function range(end, start) {
|
|
58
|
-
const numbers = [];
|
|
59
|
-
for (let i = end; i <= start; i++) {
|
|
60
|
-
numbers.push(i);
|
|
61
|
-
}
|
|
62
|
-
numbers.reverse();
|
|
63
|
-
return numbers;
|
|
64
|
-
}
|
|
65
|
-
function getYear(date) {
|
|
66
|
-
return date.getFullYear();
|
|
67
|
-
}
|
|
68
|
-
function getMonth(date) {
|
|
69
|
-
return date.getMonth();
|
|
70
|
-
}
|
|
71
|
-
const getMonthNames = () => {
|
|
72
|
-
const months = [];
|
|
73
|
-
for (let i = 0; i < 12; i++) {
|
|
74
|
-
const date = new Date();
|
|
75
|
-
date.setMonth(i);
|
|
76
|
-
months.push((0, _format.format)(date, 'LLLL', {
|
|
77
|
-
locale: _ru.ru
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
return months;
|
|
81
|
-
};
|
|
82
|
-
const getYears = (minYear, maxYear) => {
|
|
83
|
-
return range(minYear, maxYear);
|
|
84
|
-
};
|
|
85
|
-
const months = getMonthNames();
|
|
86
|
-
const PickerHeader = props => {
|
|
87
|
-
const {
|
|
88
|
-
decreaseMonth,
|
|
89
|
-
prevMonthButtonDisabled,
|
|
90
|
-
date,
|
|
91
|
-
changeYear,
|
|
92
|
-
changeMonth,
|
|
93
|
-
increaseMonth,
|
|
94
|
-
nextMonthButtonDisabled,
|
|
95
|
-
maxDate,
|
|
96
|
-
minDate
|
|
97
|
-
} = props;
|
|
98
|
-
const years = getYears(minDate ? minDate.getFullYear() : 1920, maxDate ? maxDate.getFullYear() : new Date().getFullYear() + 5);
|
|
99
|
-
const showMonthPickerProp = props.showMonthDropdown !== false && 'showMonthDropdown' in props;
|
|
100
|
-
const showYearPickerProp = props.showYearDropdown !== false && 'showYearDropdown' in props;
|
|
101
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
102
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Stack.default, {
|
|
103
|
-
spacing: 'small',
|
|
104
|
-
center: true,
|
|
105
|
-
className: 'justify-between',
|
|
106
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonIcon.default, {
|
|
107
|
-
size: 'small',
|
|
108
|
-
mi: 'keyboard_arrow_left',
|
|
109
|
-
onClick: decreaseMonth,
|
|
110
|
-
disabled: prevMonthButtonDisabled
|
|
111
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
112
|
-
className: 'react-datepicker__current-month',
|
|
113
|
-
children: (0, _format.format)(date, 'LLLL yyyy', {
|
|
114
|
-
locale: _ru.ru
|
|
115
|
-
})
|
|
116
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonIcon.default, {
|
|
117
|
-
size: 'small',
|
|
118
|
-
mi: 'keyboard_arrow_right',
|
|
119
|
-
onClick: increaseMonth,
|
|
120
|
-
disabled: nextMonthButtonDisabled
|
|
121
|
-
})]
|
|
122
|
-
}), (showMonthPickerProp || showYearPickerProp) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Stack.default, {
|
|
123
|
-
spacing: 'small',
|
|
124
|
-
center: true,
|
|
125
|
-
className: 'justify-center',
|
|
126
|
-
children: [showYearPickerProp && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
|
|
127
|
-
className: 'arm-datepicker__select',
|
|
128
|
-
size: 'small',
|
|
129
|
-
classes: {
|
|
130
|
-
root: 'arm-datepicker__select_root',
|
|
131
|
-
wrapper: 'arm-datepicker__select-wrapper'
|
|
132
|
-
},
|
|
133
|
-
variant: 'outlined',
|
|
134
|
-
value: String(getYear(date)),
|
|
135
|
-
onChange: ({
|
|
136
|
-
target: {
|
|
137
|
-
value
|
|
138
|
-
}
|
|
139
|
-
}) => changeYear(value),
|
|
140
|
-
options: years.map(item => ({
|
|
141
|
-
value: String(item),
|
|
142
|
-
text: String(item)
|
|
143
|
-
})),
|
|
144
|
-
optionClassName: 'arm-datepicker__select-option'
|
|
145
|
-
}), showMonthPickerProp && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
|
|
146
|
-
className: (0, _clsx.default)('arm-datepicker__select', 'arm-datepicker__select_month'),
|
|
147
|
-
classes: {
|
|
148
|
-
root: 'arm-datepicker__select_root',
|
|
149
|
-
wrapper: 'arm-datepicker__select-wrapper'
|
|
150
|
-
},
|
|
151
|
-
size: 'small',
|
|
152
|
-
variant: 'outlined',
|
|
153
|
-
value: String(months[getMonth(date)]),
|
|
154
|
-
onChange: ({
|
|
155
|
-
target: {
|
|
156
|
-
value
|
|
157
|
-
}
|
|
158
|
-
}) => changeMonth(months.indexOf(value)),
|
|
159
|
-
options: months.map(item => ({
|
|
160
|
-
value: String(item),
|
|
161
|
-
text: String(item)
|
|
162
|
-
})),
|
|
163
|
-
optionClassName: 'arm-datepicker__select-option'
|
|
164
|
-
})]
|
|
165
|
-
})]
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
var _default = exports.default = DatePicker;
|
|
169
|
-
module.exports = exports.default;
|
|
@@ -1,8 +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 _DatePicker = _interopRequireDefault(require("./DatePicker"));
|
|
7
|
-
exports.default = _DatePicker.default;
|
|
8
|
-
module.exports = exports.default;
|