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
package/ui/Form/Rating/Rating.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
9
|
-
var _Icon = require("../../Icon");
|
|
10
|
-
var _const = require("./const");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
const Rating = props => {
|
|
13
|
-
let {
|
|
14
|
-
size = 'large',
|
|
15
|
-
onChange,
|
|
16
|
-
slots,
|
|
17
|
-
slotsProps,
|
|
18
|
-
error,
|
|
19
|
-
name,
|
|
20
|
-
className,
|
|
21
|
-
onMouseLeave,
|
|
22
|
-
...restProps
|
|
23
|
-
} = props;
|
|
24
|
-
let [value, setValue] = (0, _react.useState)(props.defaultValue || 0);
|
|
25
|
-
let [hovered, setHovered] = (0, _react.useState)(0);
|
|
26
|
-
let realValue = props.value !== undefined ? props.value === null ? 0 : props.value : value;
|
|
27
|
-
const handleClick = index => () => {
|
|
28
|
-
setValue(index);
|
|
29
|
-
if (onChange) onChange(index);
|
|
30
|
-
};
|
|
31
|
-
const handleMouseEnter = index => () => {
|
|
32
|
-
setHovered(index);
|
|
33
|
-
};
|
|
34
|
-
const handleLeaveRating = e => {
|
|
35
|
-
setHovered(realValue);
|
|
36
|
-
onMouseLeave == null || onMouseLeave(e);
|
|
37
|
-
};
|
|
38
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
39
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
40
|
-
...restProps,
|
|
41
|
-
className: (0, _clsx.default)('arm-rating', className),
|
|
42
|
-
onMouseLeave: handleLeaveRating,
|
|
43
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
44
|
-
value: realValue,
|
|
45
|
-
name: name,
|
|
46
|
-
type: "hidden"
|
|
47
|
-
}), [...Array(5)].map((_, index) => {
|
|
48
|
-
const active = index + 1 <= hovered || index + 1 <= realValue;
|
|
49
|
-
let IconComponent = active ? _Icon.Mis : _Icon.Mi;
|
|
50
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
51
|
-
className: 'arm-rating__item_container',
|
|
52
|
-
onClick: handleClick(index + 1),
|
|
53
|
-
onMouseEnter: handleMouseEnter(index + 1),
|
|
54
|
-
children: slots != null && slots.Icon ? /*#__PURE__*/(0, _react.createElement)(slots.Icon, {
|
|
55
|
-
...(slotsProps == null ? void 0 : slotsProps.Icon),
|
|
56
|
-
active: active,
|
|
57
|
-
index: index + 1,
|
|
58
|
-
key: index
|
|
59
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(IconComponent, {
|
|
60
|
-
icon: 'star',
|
|
61
|
-
className: (0, _clsx.default)({
|
|
62
|
-
'arm-rating__item_error': !!error,
|
|
63
|
-
[_const.RATING_CLASSES.active]: active,
|
|
64
|
-
'arm-rating__item_disabled': !!restProps.disabled,
|
|
65
|
-
['arm-rating__item_' + size]: !!size
|
|
66
|
-
}, _const.RATING_CLASSES.item)
|
|
67
|
-
})
|
|
68
|
-
}, index);
|
|
69
|
-
})]
|
|
70
|
-
})
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
var _default = exports.default = Rating;
|
|
74
|
-
module.exports = exports.default;
|
package/ui/Form/Rating/const.js
DELETED
package/ui/Form/Rating/index.js
DELETED
|
@@ -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 _Rating = _interopRequireDefault(require("./Rating"));
|
|
7
|
-
exports.default = _Rating.default;
|
|
8
|
-
module.exports = exports.default;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps } from '../TextField/TextField';
|
|
2
|
-
import { MouseEvent, KeyboardEvent, ReactNode } from 'react';
|
|
3
|
-
export type OptionType = {
|
|
4
|
-
text: string;
|
|
5
|
-
value: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
};
|
|
8
|
-
type SelectBaseProps = {
|
|
9
|
-
options: OptionType[];
|
|
10
|
-
inline?: boolean;
|
|
11
|
-
search?: boolean;
|
|
12
|
-
open?: boolean;
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
defaultOpen?: boolean;
|
|
15
|
-
listStyle?: SelectOptionsType<true>['listStyle'];
|
|
16
|
-
onSelectAll?: () => void;
|
|
17
|
-
clear?: boolean;
|
|
18
|
-
onSubmit?: () => void;
|
|
19
|
-
defaultQuery?: string;
|
|
20
|
-
query?: string;
|
|
21
|
-
optionControls?: boolean;
|
|
22
|
-
afterList?: string | ReactNode;
|
|
23
|
-
beforeList?: string | ReactNode;
|
|
24
|
-
optionClassName?: string;
|
|
25
|
-
};
|
|
26
|
-
type MultipleType<M extends boolean = false> = {
|
|
27
|
-
multiple?: M;
|
|
28
|
-
value?: M extends false ? string : string[];
|
|
29
|
-
defaultValue?: M extends false ? string : string[];
|
|
30
|
-
onChange?: (e: SelectChangeEvent<M extends false ? string : string[]>) => void;
|
|
31
|
-
};
|
|
32
|
-
export type SelectProps<M extends boolean = false> = SelectBaseProps & MultipleType<M> & Omit<TextFieldProps, keyof SelectBaseProps | keyof MultipleType<M>>;
|
|
33
|
-
export declare const getOptionValue: (option: OptionType) => string;
|
|
34
|
-
export type SelectChangeEvent<Value = string> = Event & {
|
|
35
|
-
target: {
|
|
36
|
-
value: Value;
|
|
37
|
-
name: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export type SelectOptionsType<T extends boolean> = {
|
|
41
|
-
options: OptionType[];
|
|
42
|
-
value?: T extends true ? string[] : string;
|
|
43
|
-
inline?: boolean;
|
|
44
|
-
multiple?: T;
|
|
45
|
-
onClick: (e: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>, option: OptionType) => void;
|
|
46
|
-
listStyle?: 'checkbox' | 'default';
|
|
47
|
-
onSelectAll?: (e: MouseEvent) => void;
|
|
48
|
-
onClear?: (e: MouseEvent) => void;
|
|
49
|
-
onSubmit?: () => void;
|
|
50
|
-
disabled?: boolean;
|
|
51
|
-
optionControls?: boolean;
|
|
52
|
-
afterList?: string | ReactNode;
|
|
53
|
-
beforeList?: string | ReactNode;
|
|
54
|
-
optionClassName?: string;
|
|
55
|
-
};
|
|
56
|
-
export declare const SelectOptions: import("react").ForwardRefExoticComponent<SelectOptionsType<boolean> & import("react").RefAttributes<unknown>>;
|
|
57
|
-
declare const _default: <M extends boolean = false>(props: SelectBaseProps & MultipleType<M> & Omit<TextFieldProps, keyof SelectBaseProps | keyof MultipleType<M_1>> & import("react").RefAttributes<HTMLInputElement>) => JSX.Element;
|
|
58
|
-
export default _default;
|
package/ui/Form/Select/Select.js
DELETED
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.getOptionValue = exports.default = exports.SelectOptions = void 0;
|
|
7
|
-
var _TextField = _interopRequireDefault(require("../TextField/TextField"));
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
10
|
-
var _useClickOutside = _interopRequireDefault(require("../../../lib/hooks/useClickOutside"));
|
|
11
|
-
var _ButtonIcon = _interopRequireDefault(require("../../ButtonIcon"));
|
|
12
|
-
var _Adornment = _interopRequireDefault(require("../../Adornment"));
|
|
13
|
-
var _SelectSummary = require("./SelectSummary");
|
|
14
|
-
var _Popover = _interopRequireDefault(require("../../Popover/Popover"));
|
|
15
|
-
var _helpers = require("../../../lib/helpers");
|
|
16
|
-
var _SelectOptionsContainer = require("./SelectOptionsContainer");
|
|
17
|
-
var _SelectOptionList = require("./SelectOptionList");
|
|
18
|
-
var _const = require("../Checkbox/const");
|
|
19
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
const getOptionValue = option => option.value || option.text;
|
|
21
|
-
|
|
22
|
-
// let selectEl!: HTMLSelectElement
|
|
23
|
-
exports.getOptionValue = getOptionValue;
|
|
24
|
-
function Select(props, ref) {
|
|
25
|
-
var _options$find;
|
|
26
|
-
let {
|
|
27
|
-
options,
|
|
28
|
-
defaultOpen,
|
|
29
|
-
endAdornment,
|
|
30
|
-
className,
|
|
31
|
-
inline,
|
|
32
|
-
multiple = false,
|
|
33
|
-
value,
|
|
34
|
-
optionControls,
|
|
35
|
-
defaultValue,
|
|
36
|
-
onChange,
|
|
37
|
-
search,
|
|
38
|
-
open,
|
|
39
|
-
listStyle,
|
|
40
|
-
onSubmit,
|
|
41
|
-
onClose,
|
|
42
|
-
clear,
|
|
43
|
-
onSelectAll,
|
|
44
|
-
defaultQuery,
|
|
45
|
-
afterList,
|
|
46
|
-
beforeList,
|
|
47
|
-
query,
|
|
48
|
-
optionClassName,
|
|
49
|
-
...inputProps
|
|
50
|
-
} = props;
|
|
51
|
-
let [active, setActive] = (0, _react.useState)(!!defaultOpen);
|
|
52
|
-
let [selected, setSelected] = (0, _react.useState)(defaultValue || (multiple ? [] : ''));
|
|
53
|
-
let [focused, setFocused] = (0, _react.useState)(false);
|
|
54
|
-
let [q, setQ] = (0, _react.useState)('');
|
|
55
|
-
const anchorEl = (0, _react.useRef)(null);
|
|
56
|
-
const inlineOptRef = (0, _useClickOutside.default)(handleClose);
|
|
57
|
-
const inputRef = (0, _react.useRef)(null);
|
|
58
|
-
(0, _react.useImperativeHandle)(ref, () => {
|
|
59
|
-
return inputRef.current;
|
|
60
|
-
}, []);
|
|
61
|
-
const handleOpen = () => {
|
|
62
|
-
if (open !== undefined) return;
|
|
63
|
-
if (!inputProps.disabled) {
|
|
64
|
-
setActive(true);
|
|
65
|
-
// if( e.target instanceof HTMLDivElement )
|
|
66
|
-
// setAnchorEl(e.currentTarget)
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
function handleClose() {
|
|
70
|
-
if (onClose) onClose();else {
|
|
71
|
-
if (open !== undefined) return;
|
|
72
|
-
setActive(false);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
const handleSelect = (e, option) => {
|
|
76
|
-
if (e.target.classList.contains(_const.CHECKBOX_LABEL_CLASSNAME)) {
|
|
77
|
-
e.stopPropagation();
|
|
78
|
-
e.preventDefault();
|
|
79
|
-
}
|
|
80
|
-
if (option.disabled || props.disabled) return;
|
|
81
|
-
let v = getOptionValue(option);
|
|
82
|
-
const realSelected = value !== undefined ? value : selected;
|
|
83
|
-
let mSelected = Array.isArray(realSelected) ? realSelected : [realSelected];
|
|
84
|
-
let newValueS = v;
|
|
85
|
-
let newValueM = mSelected.includes(v) ? mSelected.filter(item => item !== v) : mSelected.concat(v);
|
|
86
|
-
setSelected(multiple ? newValueM : newValueS);
|
|
87
|
-
if (onChange) {
|
|
88
|
-
Object.defineProperty(e, 'target', {
|
|
89
|
-
writable: false,
|
|
90
|
-
value: {
|
|
91
|
-
name: props.name,
|
|
92
|
-
value: multiple ? newValueM : newValueS
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
onChange(e);
|
|
96
|
-
}
|
|
97
|
-
if (search && !multiple) {
|
|
98
|
-
setQ(options.find(item => getOptionValue(item) === newValueS).text);
|
|
99
|
-
}
|
|
100
|
-
if (!multiple) handleClose();
|
|
101
|
-
};
|
|
102
|
-
const handleSearch = e => {
|
|
103
|
-
setQ(e.target.value);
|
|
104
|
-
};
|
|
105
|
-
const handleFocus = search ? () => {
|
|
106
|
-
setFocused(true);
|
|
107
|
-
} : undefined;
|
|
108
|
-
const handleBlur = !!search ? () => {
|
|
109
|
-
setFocused(false);
|
|
110
|
-
} : undefined;
|
|
111
|
-
const handleSelectAll = e => {
|
|
112
|
-
if (props.disabled) return;
|
|
113
|
-
let value = options.filter(item => !item.disabled).map(item => getOptionValue(item));
|
|
114
|
-
setSelected(value);
|
|
115
|
-
if (onChange) {
|
|
116
|
-
Object.defineProperty(e, 'target', {
|
|
117
|
-
writable: false,
|
|
118
|
-
value: {
|
|
119
|
-
name: props.name,
|
|
120
|
-
value
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
onChange(e);
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
const handleResetAll = clear ? e => {
|
|
127
|
-
e.preventDefault();
|
|
128
|
-
e.stopPropagation();
|
|
129
|
-
if (props.disabled) return;
|
|
130
|
-
setSelected(multiple ? [] : '');
|
|
131
|
-
if (search) {
|
|
132
|
-
setQ('');
|
|
133
|
-
setFocused(false);
|
|
134
|
-
if (inputRef.current) inputRef.current.value = '';
|
|
135
|
-
}
|
|
136
|
-
if (onChange) {
|
|
137
|
-
Object.defineProperty(e, 'target', {
|
|
138
|
-
writable: false,
|
|
139
|
-
value: {
|
|
140
|
-
name: props.name,
|
|
141
|
-
value: multiple ? [] : ''
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
onChange(e);
|
|
145
|
-
}
|
|
146
|
-
} : undefined;
|
|
147
|
-
const handleSubmit = () => {
|
|
148
|
-
if (open === undefined) setActive(false);else if (onSubmit) {
|
|
149
|
-
onSubmit();
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
let realValue = value !== undefined ? value : selected;
|
|
153
|
-
let realActive = open !== undefined ? open : active;
|
|
154
|
-
let selectedText = multiple ? options.filter(item => realValue == null ? void 0 : realValue.includes(getOptionValue(item))).map(item => item.text).join(', ') : ((_options$find = options.find(item => getOptionValue(item) === realValue)) == null ? void 0 : _options$find.text) || '';
|
|
155
|
-
if (!!search) options = options.filter(item => item.text.toLowerCase().includes(q.toLowerCase()));
|
|
156
|
-
let valueArr = realValue ? Array.isArray(realValue) ? realValue : [realValue] : [];
|
|
157
|
-
let selectedOptions = options.filter(item => valueArr.includes(getOptionValue(item)));
|
|
158
|
-
let displayClear = clear && (multiple ? realValue && realValue.length > 0 : !!realValue);
|
|
159
|
-
let selectEndAdornment = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
160
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Adornment.default, {
|
|
161
|
-
children: endAdornment
|
|
162
|
-
}), displayClear && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Adornment.default, {
|
|
163
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonIcon.default, {
|
|
164
|
-
size: 'small',
|
|
165
|
-
onClick: handleResetAll,
|
|
166
|
-
mi: 'close'
|
|
167
|
-
})
|
|
168
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonIcon.default, {
|
|
169
|
-
size: 'small',
|
|
170
|
-
color: 'neutral',
|
|
171
|
-
onClick: handleOpen,
|
|
172
|
-
variant: 'transparent',
|
|
173
|
-
mi: 'arrow_drop_down'
|
|
174
|
-
})]
|
|
175
|
-
});
|
|
176
|
-
const cachedWrapperProps = (0, _react.useMemo)(() => ({
|
|
177
|
-
onClick: handleOpen
|
|
178
|
-
}), []);
|
|
179
|
-
const cachedClasses = (0, _react.useMemo)(() => {
|
|
180
|
-
var _inputProps$classes;
|
|
181
|
-
return {
|
|
182
|
-
...inputProps.classes,
|
|
183
|
-
wrapper: (0, _clsx.default)((_inputProps$classes = inputProps.classes) == null ? void 0 : _inputProps$classes.wrapper, 'arm-select__wrapper')
|
|
184
|
-
};
|
|
185
|
-
}, []);
|
|
186
|
-
const cachedStyles = (0, _react.useMemo)(() => ({
|
|
187
|
-
pointerEvents: 'none'
|
|
188
|
-
}), []);
|
|
189
|
-
const realQuery = query !== undefined ? query : q;
|
|
190
|
-
let textInputValue = !search ? selectedText : value !== undefined && !q ? selectedText : realQuery;
|
|
191
|
-
if (search && multiple) textInputValue = realQuery;
|
|
192
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
193
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
194
|
-
className: className,
|
|
195
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
196
|
-
className: 'arm-select',
|
|
197
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
198
|
-
className: 'arm-select__input_wrapper',
|
|
199
|
-
ref: anchorEl,
|
|
200
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
|
|
201
|
-
...inputProps,
|
|
202
|
-
classes: cachedClasses,
|
|
203
|
-
onChange: handleSearch,
|
|
204
|
-
focused: focused,
|
|
205
|
-
onFocus: handleFocus,
|
|
206
|
-
onBlur: handleBlur,
|
|
207
|
-
value: textInputValue,
|
|
208
|
-
endAdornment: selectEndAdornment,
|
|
209
|
-
editable: !!search,
|
|
210
|
-
ref: inputRef,
|
|
211
|
-
style: cachedStyles,
|
|
212
|
-
WrapperProps: cachedWrapperProps
|
|
213
|
-
})
|
|
214
|
-
}), multiple && !realActive && selectedOptions.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
215
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
216
|
-
className: 'arm-selectSummary__chips',
|
|
217
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectSummary.SelectSummaryChips, {
|
|
218
|
-
options: selectedOptions,
|
|
219
|
-
disabled: inputProps.disabled,
|
|
220
|
-
onDelete: handleSelect
|
|
221
|
-
})
|
|
222
|
-
}), handleResetAll && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
223
|
-
className: 'arm-selectSummary__chips-reset',
|
|
224
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectSummary.SelectSummaryControls, {
|
|
225
|
-
countSelected: selectedOptions.length,
|
|
226
|
-
onClear: handleResetAll
|
|
227
|
-
})
|
|
228
|
-
})]
|
|
229
|
-
})]
|
|
230
|
-
}), realActive && (!inline && anchorEl.current ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Popover.default, {
|
|
231
|
-
classes: {
|
|
232
|
-
paper: 'px-0'
|
|
233
|
-
},
|
|
234
|
-
matchWidth: true,
|
|
235
|
-
anchorEl: anchorEl.current,
|
|
236
|
-
open: realActive,
|
|
237
|
-
onClose: handleClose,
|
|
238
|
-
placement: 'bottom-start',
|
|
239
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectOptions, {
|
|
240
|
-
disabled: inputProps.disabled,
|
|
241
|
-
options: options,
|
|
242
|
-
multiple: multiple,
|
|
243
|
-
value: realValue,
|
|
244
|
-
inline: inline,
|
|
245
|
-
afterList: afterList,
|
|
246
|
-
beforeList: beforeList,
|
|
247
|
-
listStyle: listStyle,
|
|
248
|
-
onClick: handleSelect,
|
|
249
|
-
onClear: handleResetAll,
|
|
250
|
-
onSelectAll: handleSelectAll,
|
|
251
|
-
onSubmit: handleSubmit,
|
|
252
|
-
optionClassName: optionClassName
|
|
253
|
-
})
|
|
254
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
255
|
-
ref: inlineOptRef,
|
|
256
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectOptions, {
|
|
257
|
-
disabled: inputProps.disabled,
|
|
258
|
-
options: options,
|
|
259
|
-
multiple: multiple,
|
|
260
|
-
value: realValue,
|
|
261
|
-
inline: inline,
|
|
262
|
-
afterList: afterList,
|
|
263
|
-
beforeList: beforeList,
|
|
264
|
-
listStyle: listStyle,
|
|
265
|
-
onClick: handleSelect,
|
|
266
|
-
onClear: handleResetAll,
|
|
267
|
-
onSelectAll: handleSelectAll,
|
|
268
|
-
onSubmit: handleSubmit,
|
|
269
|
-
optionClassName: optionClassName
|
|
270
|
-
})
|
|
271
|
-
}))]
|
|
272
|
-
})
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
const SelectOptions = exports.SelectOptions = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
276
|
-
let {
|
|
277
|
-
options,
|
|
278
|
-
value,
|
|
279
|
-
multiple,
|
|
280
|
-
inline,
|
|
281
|
-
onClick,
|
|
282
|
-
listStyle,
|
|
283
|
-
disabled,
|
|
284
|
-
optionControls,
|
|
285
|
-
beforeList,
|
|
286
|
-
afterList,
|
|
287
|
-
optionClassName,
|
|
288
|
-
...callbacks
|
|
289
|
-
} = props;
|
|
290
|
-
if (multiple && optionControls === undefined) optionControls = true;
|
|
291
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
292
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SelectOptionsContainer.SelectOptionsContainer, {
|
|
293
|
-
ref: ref,
|
|
294
|
-
inline: !!inline,
|
|
295
|
-
children: [beforeList, /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionList.SelectOptionList, {
|
|
296
|
-
options: options,
|
|
297
|
-
multiple: multiple,
|
|
298
|
-
value: value,
|
|
299
|
-
listStyle: listStyle,
|
|
300
|
-
disabled: disabled,
|
|
301
|
-
onChange: onClick,
|
|
302
|
-
className: optionClassName
|
|
303
|
-
}), afterList, !!optionControls && !!multiple && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
304
|
-
className: 'arm-selectSummary__wrapper',
|
|
305
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectSummary.SelectSummary, {
|
|
306
|
-
options: options,
|
|
307
|
-
value: value,
|
|
308
|
-
onClose: onClick,
|
|
309
|
-
disabled: disabled,
|
|
310
|
-
...callbacks
|
|
311
|
-
})
|
|
312
|
-
})]
|
|
313
|
-
})
|
|
314
|
-
});
|
|
315
|
-
});
|
|
316
|
-
|
|
317
|
-
// export const SelectTest = (props: SelectProps) => {
|
|
318
|
-
// return <Select inline={true} listStyle={'checkbox'} defaultValue={['1', '12312']} multiple={true} label={'TEST '} disabled={true} open={true} options={[{
|
|
319
|
-
// text: '1'
|
|
320
|
-
// },{
|
|
321
|
-
// text: 'aasdasdasdasd'
|
|
322
|
-
// },{
|
|
323
|
-
// text: '12312'
|
|
324
|
-
// },{
|
|
325
|
-
// text: 'gadadsasd'
|
|
326
|
-
// },{
|
|
327
|
-
// text: '123123123'
|
|
328
|
-
// },]} />
|
|
329
|
-
// }
|
|
330
|
-
var _default = exports.default = (0, _helpers.fixedForwardRef)(Select);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.SelectOptionList = void 0;
|
|
6
|
-
var _List = _interopRequireDefault(require("../../List"));
|
|
7
|
-
var _Select = require("./Select");
|
|
8
|
-
var _helpers = require("../../../lib/helpers");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function SelectOptionListBase(props, ref) {
|
|
11
|
-
const {
|
|
12
|
-
options,
|
|
13
|
-
multiple,
|
|
14
|
-
value,
|
|
15
|
-
listStyle,
|
|
16
|
-
disabled,
|
|
17
|
-
onChange,
|
|
18
|
-
className
|
|
19
|
-
} = props;
|
|
20
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21
|
-
ref: ref,
|
|
22
|
-
className: "arm-options__list",
|
|
23
|
-
children: options.map((item, index) => {
|
|
24
|
-
let optValue = (0, _Select.getOptionValue)(item);
|
|
25
|
-
let active = multiple === true && value ? value.includes(optValue) : optValue === value;
|
|
26
|
-
let checked = listStyle === 'checkbox' && !!multiple ? active : undefined;
|
|
27
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default, {
|
|
28
|
-
className: className,
|
|
29
|
-
disabled: disabled || !!item.disabled,
|
|
30
|
-
checked: checked,
|
|
31
|
-
active: active,
|
|
32
|
-
onClick: e => onChange(e, item),
|
|
33
|
-
children: item.text
|
|
34
|
-
}, index);
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
const SelectOptionList = exports.SelectOptionList = (0, _helpers.fixedForwardRef)(SelectOptionListBase);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.SelectOptionsContainer = void 0;
|
|
6
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
const SelectOptionsContainer = exports.SelectOptionsContainer = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
10
|
-
inline,
|
|
11
|
-
children
|
|
12
|
-
}, ref) => {
|
|
13
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
14
|
-
ref: ref,
|
|
15
|
-
className: (0, _clsx.default)('arm-options', {
|
|
16
|
-
'arm-options_inline': !!inline
|
|
17
|
-
}),
|
|
18
|
-
children: children
|
|
19
|
-
});
|
|
20
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, KeyboardEvent } from 'react';
|
|
2
|
-
import { OptionType } from '../../../ui/Form/Select/Select';
|
|
3
|
-
export type SelectSummaryProps = {
|
|
4
|
-
onClose: (e: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>, option: OptionType) => void;
|
|
5
|
-
options: OptionType[];
|
|
6
|
-
value: string[];
|
|
7
|
-
} & Omit<SelectSummaryControlsProps, 'countSelected' | 'countTotal'>;
|
|
8
|
-
export declare const SelectSummary: (props: SelectSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
type SelectSummaryChipsProps = {
|
|
10
|
-
options: OptionType[];
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onDelete: (e: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>, option: OptionType) => void;
|
|
13
|
-
};
|
|
14
|
-
export declare const SelectSummaryChips: (props: SelectSummaryChipsProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
type SelectSummaryControlsProps = {
|
|
16
|
-
onSelectAll?: (e: MouseEvent) => void;
|
|
17
|
-
onClear?: (e: MouseEvent) => void;
|
|
18
|
-
onSubmit?: (e: MouseEvent) => void;
|
|
19
|
-
countTotal?: number;
|
|
20
|
-
countSelected?: number;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
label_check_all?: string;
|
|
23
|
-
label_submit?: string;
|
|
24
|
-
label_uncheck_all?: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const SelectSummaryControls: (props: SelectSummaryControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export {};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.SelectSummaryControls = exports.SelectSummaryChips = exports.SelectSummary = void 0;
|
|
6
|
-
var _Badge = _interopRequireDefault(require("../../Badge"));
|
|
7
|
-
var _Button = _interopRequireDefault(require("../../Button"));
|
|
8
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
9
|
-
var _Chip = _interopRequireDefault(require("../../Chip"));
|
|
10
|
-
var _Select = require("./Select");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
const SelectSummary = props => {
|
|
13
|
-
let {
|
|
14
|
-
options,
|
|
15
|
-
value,
|
|
16
|
-
// onClose,
|
|
17
|
-
...controlProps
|
|
18
|
-
} = props;
|
|
19
|
-
let valueArr = value ? Array.isArray(value) ? value : [value] : [];
|
|
20
|
-
let selectedOptions = options.filter(item => valueArr.includes((0, _Select.getOptionValue)(item)));
|
|
21
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
22
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
23
|
-
className: 'arm-selectSummary',
|
|
24
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectSummaryControls, {
|
|
25
|
-
...controlProps,
|
|
26
|
-
countTotal: options.length,
|
|
27
|
-
countSelected: selectedOptions.length
|
|
28
|
-
})
|
|
29
|
-
})
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
exports.SelectSummary = SelectSummary;
|
|
33
|
-
const SelectSummaryChips = props => {
|
|
34
|
-
let {
|
|
35
|
-
options,
|
|
36
|
-
onDelete,
|
|
37
|
-
disabled
|
|
38
|
-
} = props;
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
40
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
|
-
className: 'arm-selectSummary__optionList',
|
|
42
|
-
children: options.map(option => {
|
|
43
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, {
|
|
44
|
-
disabled: disabled,
|
|
45
|
-
className: 'arm-selectSummary__option',
|
|
46
|
-
text: option.text,
|
|
47
|
-
onClose: e => onDelete(e, option)
|
|
48
|
-
}, (0, _Select.getOptionValue)(option));
|
|
49
|
-
})
|
|
50
|
-
})
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
exports.SelectSummaryChips = SelectSummaryChips;
|
|
54
|
-
const SelectSummaryControls = props => {
|
|
55
|
-
const {
|
|
56
|
-
onSelectAll,
|
|
57
|
-
onClear,
|
|
58
|
-
onSubmit,
|
|
59
|
-
countTotal,
|
|
60
|
-
countSelected,
|
|
61
|
-
disabled,
|
|
62
|
-
label_check_all = 'Выбрать все',
|
|
63
|
-
label_uncheck_all = 'Очистить все',
|
|
64
|
-
label_submit = 'Применить'
|
|
65
|
-
} = props;
|
|
66
|
-
const selectAllDisabled = disabled || countSelected === countTotal;
|
|
67
|
-
const resetAllDisabled = disabled || countSelected === 0;
|
|
68
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
69
|
-
className: 'arm-selectSummary__row',
|
|
70
|
-
children: [!!onSelectAll && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
|
-
className: (0, _clsx.default)('arm-selectSummary__check', {
|
|
72
|
-
'arm-selectSummary__check_disabled': selectAllDisabled
|
|
73
|
-
}),
|
|
74
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
|
|
75
|
-
badgeText: countTotal,
|
|
76
|
-
shape: 'square',
|
|
77
|
-
color: 'info',
|
|
78
|
-
position: 'center-right',
|
|
79
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
80
|
-
className: 'arm-selectSummary__checkLabel',
|
|
81
|
-
onClick: onSelectAll,
|
|
82
|
-
children: label_check_all
|
|
83
|
-
})
|
|
84
|
-
})
|
|
85
|
-
}), !!onClear && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
86
|
-
className: (0, _clsx.default)('arm-selectSummary__check', {
|
|
87
|
-
'arm-selectSummary__check_disabled': resetAllDisabled
|
|
88
|
-
}),
|
|
89
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
|
|
90
|
-
badgeText: countSelected,
|
|
91
|
-
shape: 'square',
|
|
92
|
-
color: 'info',
|
|
93
|
-
position: 'center-right',
|
|
94
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
95
|
-
className: 'arm-selectSummary__checkLabel',
|
|
96
|
-
onClick: onClear,
|
|
97
|
-
children: label_uncheck_all
|
|
98
|
-
})
|
|
99
|
-
})
|
|
100
|
-
}), !!onSubmit && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
101
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
102
|
-
className: 'arm-selectSummary__button',
|
|
103
|
-
disabled: disabled,
|
|
104
|
-
variant: 'transparent',
|
|
105
|
-
size: 'small',
|
|
106
|
-
onClick: onSubmit,
|
|
107
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
108
|
-
children: label_submit
|
|
109
|
-
})
|
|
110
|
-
})
|
|
111
|
-
})]
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
exports.SelectSummaryControls = SelectSummaryControls;
|