armtek-uikit-react 1.0.267 → 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 -209
- 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 -66
- package/ui/Form/TextField/TextField.js +0 -292
- 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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
const Card = (props) => {
|
|
4
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { "data-testid": "card", ...props, className: clsx("arm-card", props.className) }) });
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
Card as default
|
|
8
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ElementType, MouseEvent, HTMLAttributes } from 'react';
|
|
2
|
+
import { ColorStatusType, ColorThemeType, ColorType, SizeType, VariantType, ShapeType } from '../../types/theme';
|
|
3
|
+
type OwnProps<T extends ElementType = ElementType<HTMLAttributes<HTMLSpanElement>>> = Omit<ComponentPropsWithoutRef<T>, 'color'> & {
|
|
4
|
+
size?: Exclude<SizeType, 'large' | 'extraLarge'>;
|
|
5
|
+
color?: ColorType | ColorThemeType | ColorStatusType;
|
|
6
|
+
text?: string;
|
|
7
|
+
onClose?: (e: MouseEvent) => void;
|
|
8
|
+
icon?: string;
|
|
9
|
+
variant?: Exclude<VariantType, 'transparent'>;
|
|
10
|
+
shape?: ShapeType;
|
|
11
|
+
as?: T;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ChipProps<T extends ElementType = 'span'> = OwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof OwnProps<T>>;
|
|
15
|
+
declare function Chip<T extends ElementType = 'span'>(props: ChipProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default Chip;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
function Chip(props) {
|
|
4
|
+
let {
|
|
5
|
+
size,
|
|
6
|
+
text,
|
|
7
|
+
icon,
|
|
8
|
+
onClose,
|
|
9
|
+
shape = "circle",
|
|
10
|
+
as,
|
|
11
|
+
variant = "contained",
|
|
12
|
+
color = "neutral",
|
|
13
|
+
className,
|
|
14
|
+
children,
|
|
15
|
+
disabled,
|
|
16
|
+
...restProps
|
|
17
|
+
} = props;
|
|
18
|
+
let Component = as || "span";
|
|
19
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Component, { "data-testid": "chip", ...restProps, className: clsx("arm-chip", className, {
|
|
20
|
+
"arm-chip_disabled": !!disabled,
|
|
21
|
+
["arm-chip_" + size]: !!size
|
|
22
|
+
}, ["arm-chip_" + variant], ["arm-chip_" + color], ["arm-chip_" + shape]), children: /* @__PURE__ */ jsxs("span", { className: "arm-chip__inner", children: [
|
|
23
|
+
icon && /* @__PURE__ */ jsx("span", { className: clsx("material_icon", "arm-chip__icon", ["arm-chip__icon_" + size]), children: icon }),
|
|
24
|
+
/* @__PURE__ */ jsx("span", { className: "arm-chip__text", children: text || children }),
|
|
25
|
+
onClose && /* @__PURE__ */ jsx("span", { "data-testid": "chip-close", className: clsx("material_icon_solid", {
|
|
26
|
+
"arm-chip__close_disabled": !!disabled
|
|
27
|
+
}, ["arm-chip__close_" + size], ["arm-chip__close_" + color], "arm-chip__close"), onClick: onClose, children: /* @__PURE__ */ jsx("span", { className: "mis", children: "cancel" }) })
|
|
28
|
+
] }) }) });
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
Chip as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { CSSTransitionProps } from 'react-transition-group/CSSTransition';
|
|
3
|
+
export type DropDownProps = {
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
transitionProps?: Partial<CSSTransitionProps<HTMLElement>>;
|
|
6
|
+
} & ComponentPropsWithoutRef<'div'>;
|
|
7
|
+
declare function Dropdown(props: DropDownProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Dropdown;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useEffect } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { CSSTransition } from "react-transition-group";
|
|
5
|
+
function Dropdown(props) {
|
|
6
|
+
var _a;
|
|
7
|
+
const {
|
|
8
|
+
children,
|
|
9
|
+
className,
|
|
10
|
+
expanded,
|
|
11
|
+
transitionProps,
|
|
12
|
+
...divProps
|
|
13
|
+
} = props;
|
|
14
|
+
const nodeRef = useRef(null);
|
|
15
|
+
const contentHeight = (_a = nodeRef.current) == null ? void 0 : _a.scrollHeight;
|
|
16
|
+
const duration = 500;
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (nodeRef.current && contentHeight) nodeRef.current.style.setProperty("--content-height", String(contentHeight) + "px");
|
|
19
|
+
}, [contentHeight]);
|
|
20
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { "data-testid": "dropdown", ...divProps, className: clsx("arm-dropdown", className), children: /* @__PURE__ */ jsx("div", { className: clsx({
|
|
21
|
+
// [css.Dropdown__ContentWrapper_hidden]: !expanded
|
|
22
|
+
}), children: /* @__PURE__ */ jsx(CSSTransition, { classNames: {
|
|
23
|
+
"enter": "arm-dropdown__ContentWrapperEnter",
|
|
24
|
+
"enterActive": "arm-dropdown__ContentWrapperEnterActive",
|
|
25
|
+
"exit": "arm-dropdown__ContentWrapperExit",
|
|
26
|
+
"exitActive": "arm-dropdown__ContentWrapperExitActive",
|
|
27
|
+
exitDone: "arm-dropdown__ContentWrapperExitDone",
|
|
28
|
+
enterDone: "arm-dropdown__ContentWrapperEnterDone"
|
|
29
|
+
}, in: expanded, timeout: duration, nodeRef, mountOnEnter: true, unmountOnExit: true, ...transitionProps, children: /* @__PURE__ */ jsx("div", { ref: nodeRef, children: /* @__PURE__ */ jsx("div", { className: "arm-dropdown__Content", "data-testid": "dropdown-content", children }) }) }) }) }) });
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
Dropdown as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ColorType, SizeType, ThemeType, VariantType } from '../../../types/theme';
|
|
3
|
+
type BaseCheckboxProps = {
|
|
4
|
+
label?: string | ReactNode;
|
|
5
|
+
size?: Exclude<SizeType, 'extraLarge'>;
|
|
6
|
+
color?: ColorType;
|
|
7
|
+
theme?: ThemeType;
|
|
8
|
+
variant?: Exclude<VariantType, 'transparent'>;
|
|
9
|
+
intermediate?: boolean;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type CheckboxProps = BaseCheckboxProps & Omit<InputHTMLAttributes<any>, 'size'>;
|
|
13
|
+
declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default Checkbox;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, isValidElement } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { CHECKBOX_LABEL_CLASSNAME } from "./const.js";
|
|
5
|
+
const Checkbox = (props) => {
|
|
6
|
+
let {
|
|
7
|
+
label,
|
|
8
|
+
intermediate,
|
|
9
|
+
color = "primary",
|
|
10
|
+
size = "large",
|
|
11
|
+
variant = "outlined",
|
|
12
|
+
onChange,
|
|
13
|
+
className,
|
|
14
|
+
error,
|
|
15
|
+
...inputProps
|
|
16
|
+
} = props;
|
|
17
|
+
const [checked, setChecked] = useState(!!props.defaultChecked);
|
|
18
|
+
const labelRef = useRef(null);
|
|
19
|
+
const handleChange = (e) => {
|
|
20
|
+
if (inputProps.checked === void 0) setChecked((prev) => !prev);
|
|
21
|
+
if (onChange) onChange(e);
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: clsx("arm-checkbox", className, {
|
|
24
|
+
"arm-checkbox_text": !isValidElement(label)
|
|
25
|
+
}), "data-testid": "checkbox", children: [
|
|
26
|
+
/* @__PURE__ */ jsx("label", { ref: labelRef, "data-testid": "checkbox_label", className: clsx(CHECKBOX_LABEL_CLASSNAME, ["arm-checkbox_" + size], ["arm-checkbox_" + variant], ["arm-checkbox_" + color], {
|
|
27
|
+
"arm-checkbox__label_checked": inputProps.checked !== void 0 ? inputProps.checked : checked,
|
|
28
|
+
"arm-checkbox__label_intermediate": !!intermediate,
|
|
29
|
+
"arm-checkbox__label_disabled": !!inputProps.disabled,
|
|
30
|
+
"arm-checkbox_error": !!error,
|
|
31
|
+
"arm-radio__label": props.type === "radio"
|
|
32
|
+
}), children: /* @__PURE__ */ jsx("input", { ...inputProps, className: clsx("arm-checkbox__input", {
|
|
33
|
+
"arm-checkbox__input_checked": !!inputProps.checked
|
|
34
|
+
}), onChange: handleChange, "data-testid": "checkbox_input", type: props.type || "checkbox" }) }),
|
|
35
|
+
label && /* @__PURE__ */ jsx("span", { onClick: () => {
|
|
36
|
+
var _a;
|
|
37
|
+
return (_a = labelRef.current) == null ? void 0 : _a.click();
|
|
38
|
+
}, className: clsx("arm-checkbox__text", {
|
|
39
|
+
"arm-checkbox__text_raw": !isValidElement(label),
|
|
40
|
+
"arm-checkbox__text_error": !!error,
|
|
41
|
+
["arm-checkbox_text_size_" + size]: size
|
|
42
|
+
}), children: label })
|
|
43
|
+
] }) });
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
Checkbox as default
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CHECKBOX_LABEL_CLASSNAME = "arm-checkbox__label";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TextFieldProps } from '../TextField/TextField';
|
|
2
|
+
import { ChangeEvent, MouseEvent } from 'react';
|
|
3
|
+
import { DatePickerProps } from 'react-datepicker';
|
|
4
|
+
import { DataAttributes } from '../../../types/theme';
|
|
5
|
+
type BaseInputProps = Pick<TextFieldProps, 'label' | 'className' | 'placeholder' | 'error' | 'helperText'>;
|
|
6
|
+
export type DateFieldChangeEvent = Omit<ChangeEvent<HTMLInputElement>, 'target'> & {
|
|
7
|
+
target: {
|
|
8
|
+
value: Date | null;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
type OwnProps = {
|
|
12
|
+
onClick?: (e: MouseEvent) => void;
|
|
13
|
+
onInput?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
onChange?: (e: DateFieldChangeEvent) => void;
|
|
15
|
+
value?: Date | string | null;
|
|
16
|
+
showTime?: boolean;
|
|
17
|
+
showTimeOnly?: boolean;
|
|
18
|
+
inputProps?: Omit<TextFieldProps, 'onChange' | 'value'> & DataAttributes;
|
|
19
|
+
showMonthYearPicker?: boolean;
|
|
20
|
+
showYearPicker?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type DateFieldProps = OwnProps & BaseInputProps & Omit<DatePickerProps, keyof OwnProps>;
|
|
23
|
+
export declare const getDateFormat: (format?: string) => Record<string, any>;
|
|
24
|
+
export declare const DateField: import("react").ForwardRefExoticComponent<OwnProps & BaseInputProps & Omit<DatePickerProps, keyof OwnProps> & import("react").RefAttributes<any>>;
|
|
25
|
+
export default DateField;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { TextField } from "../TextField/TextField.js";
|
|
3
|
+
import { forwardRef, useState, useEffect, useRef } from "react";
|
|
4
|
+
import Card from "../../Card/Card.js";
|
|
5
|
+
import DatePicker from "../DatePicker/DatePicker.js";
|
|
6
|
+
import ButtonIcon from "../../ButtonIcon/ButtonIcon.js";
|
|
7
|
+
import BackDrop from "../../BackDrop/BackDrop.js";
|
|
8
|
+
import { PopperBase } from "../../Popper/PopperBase.js";
|
|
9
|
+
import { isDateBigger } from "../../../lib/services/DateService.js";
|
|
10
|
+
const getDateFormat = (format) => {
|
|
11
|
+
let out = {};
|
|
12
|
+
if (!format) return out;
|
|
13
|
+
if (format.includes("dd")) out.day = "2-digit";
|
|
14
|
+
if (format.includes("MM")) out.month = "2-digit";
|
|
15
|
+
if (format.includes("yyyy")) out.year = "numeric";
|
|
16
|
+
if (format.includes("HH")) out.hour = "2-digit";
|
|
17
|
+
if (format.includes("mm")) out.minute = "2-digit";
|
|
18
|
+
return out;
|
|
19
|
+
};
|
|
20
|
+
const dateToText = (d, format) => {
|
|
21
|
+
if (!d) return "";
|
|
22
|
+
if (typeof d === "string") d = new Date(d);
|
|
23
|
+
return d.toLocaleString("ru-RU", getDateFormat(format));
|
|
24
|
+
};
|
|
25
|
+
const DateField = forwardRef((props, ref) => {
|
|
26
|
+
let {
|
|
27
|
+
onChange,
|
|
28
|
+
inputProps,
|
|
29
|
+
onInput,
|
|
30
|
+
label,
|
|
31
|
+
placeholder,
|
|
32
|
+
className,
|
|
33
|
+
showTime,
|
|
34
|
+
error,
|
|
35
|
+
helperText,
|
|
36
|
+
showTimeOnly,
|
|
37
|
+
disabled,
|
|
38
|
+
value,
|
|
39
|
+
...datepickerProps
|
|
40
|
+
} = props;
|
|
41
|
+
let format = "dd.MM.yyyy";
|
|
42
|
+
if (showTime && !showTimeOnly) format = "dd.MM.yyyy HH:mm";
|
|
43
|
+
else if (showTimeOnly) format = "HH:mm";
|
|
44
|
+
const [date, setDate] = useState(null);
|
|
45
|
+
const [open, setOpen] = useState(false);
|
|
46
|
+
const [text, setText] = useState(dateToText(value, format));
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (value) setText(dateToText(value, format));
|
|
49
|
+
}, [value]);
|
|
50
|
+
const handleChange = (d) => {
|
|
51
|
+
setDate(d);
|
|
52
|
+
if (!showTime || showTime && d && d.getHours() > 0) setOpen(false);
|
|
53
|
+
if (onChange) {
|
|
54
|
+
const e = new Event("input", {
|
|
55
|
+
bubbles: true
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(e, "target", {
|
|
58
|
+
writable: false,
|
|
59
|
+
value: {
|
|
60
|
+
name: props.name,
|
|
61
|
+
value: d
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
onChange(e);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const handleClick = (e) => {
|
|
68
|
+
setOpen((prev) => !prev);
|
|
69
|
+
if (props.onClick) props.onClick(e);
|
|
70
|
+
};
|
|
71
|
+
const btnRef = useRef();
|
|
72
|
+
const inputIcon = showTime && showTimeOnly ? "schedule" : "calendar_today";
|
|
73
|
+
const handleSelectDate = (date2) => {
|
|
74
|
+
setText(dateToText(date2, format));
|
|
75
|
+
handleChange(date2);
|
|
76
|
+
};
|
|
77
|
+
const processChange = (value2) => {
|
|
78
|
+
if (disabled) return;
|
|
79
|
+
const bs = (text.endsWith(".") || text.endsWith(" ") || text.endsWith(":")) && text.length > value2.length;
|
|
80
|
+
let matcher = /^\d{2}\.\d{2}\.\d{4}$/;
|
|
81
|
+
if (!bs) {
|
|
82
|
+
value2 = value2.replace(/[^\d ]/g, "");
|
|
83
|
+
if (showTimeOnly) {
|
|
84
|
+
matcher = /^\d{2}:\d{2}$/;
|
|
85
|
+
value2 = value2.replace(/^(\d{2})/, "$1:").replace(/^(\d{2}):(\d{2})(\d)$/, "$1:$2");
|
|
86
|
+
} else {
|
|
87
|
+
value2 = value2.replace(/[^\d ]/g, "").replace(/^(\d{2})/, "$1.").replace(/^(\d{2})\.(\d{2})/, "$1.$2.").replace(/^(\d{2})\.(\d{2})\.(\d{4})/, "$1.$2.$3");
|
|
88
|
+
if (showTime) {
|
|
89
|
+
value2 = value2.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");
|
|
90
|
+
matcher = /\d{2}\.\d{2}\.\d{4} \d{2}:\d{2}/;
|
|
91
|
+
} else value2 = value2.replace(/^(\d{2})\.(\d{2})\.(\d{4})(\d)/, "$1.$2.$3");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
setText(value2);
|
|
95
|
+
setDate(null);
|
|
96
|
+
if (!bs && value2.match(new RegExp(matcher))) {
|
|
97
|
+
const dateAndTimeParts = value2.split(" ");
|
|
98
|
+
const dateParts = dateAndTimeParts[0].split(".");
|
|
99
|
+
let parseString = "";
|
|
100
|
+
let timestamp;
|
|
101
|
+
if (showTimeOnly) {
|
|
102
|
+
const today = /* @__PURE__ */ new Date();
|
|
103
|
+
const hourParts = value2.split(":").map(Number);
|
|
104
|
+
today.setHours(hourParts[0], hourParts[1], hourParts[2] || 0, 0);
|
|
105
|
+
timestamp = today.getTime();
|
|
106
|
+
} else {
|
|
107
|
+
parseString = `${dateParts[2]}-${dateParts[1]}-${dateParts[0]}`;
|
|
108
|
+
if (showTime) parseString = parseString + ` ${dateAndTimeParts[1]}`;
|
|
109
|
+
timestamp = Date.parse(parseString);
|
|
110
|
+
}
|
|
111
|
+
if (isNaN(timestamp) === false) {
|
|
112
|
+
const d = new Date(timestamp);
|
|
113
|
+
if (datepickerProps.minDate && isDateBigger(datepickerProps.minDate, d)) {
|
|
114
|
+
setText("");
|
|
115
|
+
handleChange(null);
|
|
116
|
+
} else if (datepickerProps.maxDate && isDateBigger(d, datepickerProps.maxDate)) {
|
|
117
|
+
setText("");
|
|
118
|
+
handleChange(null);
|
|
119
|
+
} else {
|
|
120
|
+
setText(d.toLocaleString("ru-RU", getDateFormat(format)));
|
|
121
|
+
handleChange(d);
|
|
122
|
+
}
|
|
123
|
+
} else {
|
|
124
|
+
setText("");
|
|
125
|
+
handleChange(null);
|
|
126
|
+
}
|
|
127
|
+
} else {
|
|
128
|
+
handleChange(null);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
const handleChangeText = (e) => {
|
|
132
|
+
processChange(e.target.value);
|
|
133
|
+
};
|
|
134
|
+
const handlePaste = (e) => {
|
|
135
|
+
processChange(e.currentTarget.value);
|
|
136
|
+
};
|
|
137
|
+
let realValue = value !== void 0 ? value : date;
|
|
138
|
+
let dateValue = typeof realValue === "string" ? new Date(realValue) : realValue;
|
|
139
|
+
if (!(dateValue instanceof Date && !isNaN(dateValue.getDate()))) dateValue = null;
|
|
140
|
+
const calendarBtn = /* @__PURE__ */ jsx(ButtonIcon, { disabled, size: "medium", variant: "transparent", onClick: handleClick, color: "neutral", "data-testid": "datefield-btn", children: /* @__PURE__ */ jsx("span", { ref: btnRef, className: "material_icon", children: inputIcon }) });
|
|
141
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
142
|
+
/* @__PURE__ */ jsx(TextField, { ref, label, placeholder, className, error, helperText, ...inputProps, value: text || "", disabled, onChange: handleChangeText, onPaste: handlePaste, endAdornment: calendarBtn }),
|
|
143
|
+
open && /* @__PURE__ */ jsx(BackDrop, { onClick: () => setOpen(false), children: /* @__PURE__ */ jsx(PopperBase, { anchorEl: btnRef.current, className: "arm-datefield-popper", open, placement: "bottom-end", children: /* @__PURE__ */ jsx("div", { style: {
|
|
144
|
+
backgroundColor: "#fff",
|
|
145
|
+
width: "100%"
|
|
146
|
+
}, children: /* @__PURE__ */ jsx(DatePicker, { timeIntervals: 15, calendarContainer: PickerCard, popperPlacement: "top-end", dateFormat: format, ...datepickerProps, onChange: handleSelectDate, selected: dateValue, showTimeSelect: !!showTime, showTimeSelectOnly: !!showTimeOnly && !!showTime, disabled, inline: true }) }) }) })
|
|
147
|
+
] });
|
|
148
|
+
});
|
|
149
|
+
const PickerCard = (props) => {
|
|
150
|
+
return /* @__PURE__ */ jsx(Card, { style: {
|
|
151
|
+
zIndex: 6
|
|
152
|
+
}, children: /* @__PURE__ */ jsx("div", { className: props.className, children: props.children }) });
|
|
153
|
+
};
|
|
154
|
+
export {
|
|
155
|
+
DateField,
|
|
156
|
+
DateField as default,
|
|
157
|
+
getDateFormat
|
|
158
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DatePickerProps as DatePickerPropsType } from 'react-datepicker';
|
|
2
|
+
import './styles.css';
|
|
3
|
+
export type DatePickerProps = DatePickerPropsType;
|
|
4
|
+
declare const DatePicker: import("react").ForwardRefExoticComponent<DatePickerPropsType & import("react").RefAttributes<unknown>>;
|
|
5
|
+
export default DatePicker;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import ReactDatePicker from "react-datepicker";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { ru } from "date-fns/locale/ru";
|
|
6
|
+
import { format } from "date-fns/format";
|
|
7
|
+
import ButtonIcon from "../../ButtonIcon/ButtonIcon.js";
|
|
8
|
+
import Stack from "../../Stack/Stack.js";
|
|
9
|
+
import Select from "../Select/Select.js";
|
|
10
|
+
import clsx from "clsx";
|
|
11
|
+
import "../../Button/Button.js";
|
|
12
|
+
const renderDayContents = (day) => {
|
|
13
|
+
return /* @__PURE__ */ jsx("div", { className: "customDay", children: day });
|
|
14
|
+
};
|
|
15
|
+
const DatePicker = forwardRef((props, ref) => {
|
|
16
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "ui-datepicker", children: /* @__PURE__ */ jsx(
|
|
17
|
+
ReactDatePicker,
|
|
18
|
+
{
|
|
19
|
+
ref,
|
|
20
|
+
locale: ru,
|
|
21
|
+
inline: true,
|
|
22
|
+
renderDayContents,
|
|
23
|
+
...props,
|
|
24
|
+
renderCustomHeader: (headerProps) => {
|
|
25
|
+
return /* @__PURE__ */ jsx(PickerHeader, { ...headerProps, ...props });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
) }) });
|
|
29
|
+
});
|
|
30
|
+
function range(end, start) {
|
|
31
|
+
const numbers = [];
|
|
32
|
+
for (let i = end; i <= start; i++) {
|
|
33
|
+
numbers.push(i);
|
|
34
|
+
}
|
|
35
|
+
numbers.reverse();
|
|
36
|
+
return numbers;
|
|
37
|
+
}
|
|
38
|
+
function getYear(date) {
|
|
39
|
+
return date.getFullYear();
|
|
40
|
+
}
|
|
41
|
+
function getMonth(date) {
|
|
42
|
+
return date.getMonth();
|
|
43
|
+
}
|
|
44
|
+
const getMonthNames = () => {
|
|
45
|
+
const months2 = [];
|
|
46
|
+
for (let i = 0; i < 12; i++) {
|
|
47
|
+
const date = /* @__PURE__ */ new Date();
|
|
48
|
+
date.setMonth(i);
|
|
49
|
+
months2.push(format(date, "LLLL", {
|
|
50
|
+
locale: ru
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
return months2;
|
|
54
|
+
};
|
|
55
|
+
const getYears = (minYear, maxYear) => {
|
|
56
|
+
return range(minYear, maxYear);
|
|
57
|
+
};
|
|
58
|
+
const months = getMonthNames();
|
|
59
|
+
const PickerHeader = (props) => {
|
|
60
|
+
const {
|
|
61
|
+
decreaseMonth,
|
|
62
|
+
prevMonthButtonDisabled,
|
|
63
|
+
date,
|
|
64
|
+
changeYear,
|
|
65
|
+
changeMonth,
|
|
66
|
+
increaseMonth,
|
|
67
|
+
nextMonthButtonDisabled,
|
|
68
|
+
maxDate,
|
|
69
|
+
minDate
|
|
70
|
+
} = props;
|
|
71
|
+
const years = getYears(minDate ? minDate.getFullYear() : 1920, maxDate ? maxDate.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear() + 5);
|
|
72
|
+
const showMonthPickerProp = props.showMonthDropdown !== false && "showMonthDropdown" in props;
|
|
73
|
+
const showYearPickerProp = props.showYearDropdown !== false && "showYearDropdown" in props;
|
|
74
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
75
|
+
/* @__PURE__ */ jsxs(Stack, { spacing: "small", center: true, className: "justify-between", children: [
|
|
76
|
+
/* @__PURE__ */ jsx(ButtonIcon, { size: "small", mi: "keyboard_arrow_left", onClick: decreaseMonth, disabled: prevMonthButtonDisabled }),
|
|
77
|
+
/* @__PURE__ */ jsx("div", { className: "react-datepicker__current-month", children: format(date, "LLLL yyyy", {
|
|
78
|
+
locale: ru
|
|
79
|
+
}) }),
|
|
80
|
+
/* @__PURE__ */ jsx(ButtonIcon, { size: "small", mi: "keyboard_arrow_right", onClick: increaseMonth, disabled: nextMonthButtonDisabled })
|
|
81
|
+
] }),
|
|
82
|
+
(showMonthPickerProp || showYearPickerProp) && /* @__PURE__ */ jsxs(Stack, { spacing: "small", center: true, className: "justify-center", children: [
|
|
83
|
+
showYearPickerProp && /* @__PURE__ */ jsx(Select, { className: "arm-datepicker__select", size: "small", classes: {
|
|
84
|
+
root: "arm-datepicker__select_root",
|
|
85
|
+
wrapper: "arm-datepicker__select-wrapper"
|
|
86
|
+
}, variant: "outlined", value: String(getYear(date)), onChange: ({
|
|
87
|
+
target: {
|
|
88
|
+
value
|
|
89
|
+
}
|
|
90
|
+
}) => changeYear(value), options: years.map((item) => ({
|
|
91
|
+
value: String(item),
|
|
92
|
+
text: String(item)
|
|
93
|
+
})), optionClassName: "arm-datepicker__select-option" }),
|
|
94
|
+
showMonthPickerProp && /* @__PURE__ */ jsx(Select, { className: clsx("arm-datepicker__select", "arm-datepicker__select_month"), classes: {
|
|
95
|
+
root: "arm-datepicker__select_root",
|
|
96
|
+
wrapper: "arm-datepicker__select-wrapper"
|
|
97
|
+
}, size: "small", variant: "outlined", value: String(months[getMonth(date)]), onChange: ({
|
|
98
|
+
target: {
|
|
99
|
+
value
|
|
100
|
+
}
|
|
101
|
+
}) => changeMonth(months.indexOf(value)), options: months.map((item) => ({
|
|
102
|
+
value: String(item),
|
|
103
|
+
text: String(item)
|
|
104
|
+
})), optionClassName: "arm-datepicker__select-option" })
|
|
105
|
+
] })
|
|
106
|
+
] });
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
DatePicker as default
|
|
110
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ButtonProps } from '../../../ui/Button';
|
|
2
|
+
import { ComponentPropsWithoutRef, MouseEvent } from 'react';
|
|
3
|
+
type OwnProps = {
|
|
4
|
+
onSubmit?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
onCancel?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
submitProps?: Omit<ButtonProps<'button'>, 'children'> & {
|
|
7
|
+
text: string;
|
|
8
|
+
};
|
|
9
|
+
cancelProps?: Omit<ButtonProps<'button'>, 'children'> & {
|
|
10
|
+
text: string;
|
|
11
|
+
};
|
|
12
|
+
classes?: {
|
|
13
|
+
submitBtn?: string;
|
|
14
|
+
cancelBtn?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type FormControlsProps = OwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof OwnProps>;
|
|
18
|
+
declare const FormControls: (props: FormControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default FormControls;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import Button from "../../Button/Button.js";
|
|
4
|
+
import { FORM_CONTROLS_CLASSNAME } from "./const.js";
|
|
5
|
+
const FormControls = (props) => {
|
|
6
|
+
const {
|
|
7
|
+
onSubmit,
|
|
8
|
+
onCancel,
|
|
9
|
+
submitProps,
|
|
10
|
+
cancelProps,
|
|
11
|
+
className,
|
|
12
|
+
classes,
|
|
13
|
+
...divProps
|
|
14
|
+
} = props;
|
|
15
|
+
return /* @__PURE__ */ jsx("div", { className: clsx(FORM_CONTROLS_CLASSNAME), children: /* @__PURE__ */ jsxs("div", { "data-testid": "form-controls", ...divProps, className: clsx(className, "arm-form-controls__stack"), children: [
|
|
16
|
+
(onSubmit || (submitProps == null ? void 0 : submitProps.type) === "submit") && /* @__PURE__ */ jsx("div", { className: "arm-form-controls__button", children: /* @__PURE__ */ jsx(Button, { "data-testid": "form-controls-submit", variant: "contained", color: "primary", onClick: onSubmit, ...submitProps, className: clsx("arm-form-controls__btn", classes == null ? void 0 : classes.submitBtn), children: submitProps == null ? void 0 : submitProps.text }) }),
|
|
17
|
+
onCancel && /* @__PURE__ */ jsx("div", { className: "arm-form-controls__button", children: /* @__PURE__ */ jsx(Button, { "data-testid": "form-controls-cancel", variant: "outlined", color: "primary", onClick: onCancel, ...cancelProps, className: clsx("arm-form-controls__btn", classes == null ? void 0 : classes.cancelBtn), children: cancelProps == null ? void 0 : cancelProps.text }) })
|
|
18
|
+
] }) });
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
FormControls as default
|
|
22
|
+
};
|