@wavv/ui 1.0.0
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/dist/.DS_Store +0 -0
- package/dist/cjs/index.js +25 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/assets/icons/ActivityHistory.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Add.d.ts +3 -0
- package/dist/cjs/types/assets/icons/AddCircle.d.ts +3 -0
- package/dist/cjs/types/assets/icons/AddCircleOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/AddPerson.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ArrowDown.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ArrowLeft.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ArrowRight.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ArrowUp.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Attachment.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Calendar.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Camera.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Card.d.ts +3 -0
- package/dist/cjs/types/assets/icons/CaretDown.d.ts +3 -0
- package/dist/cjs/types/assets/icons/CaretUp.d.ts +3 -0
- package/dist/cjs/types/assets/icons/CheckCircle.d.ts +3 -0
- package/dist/cjs/types/assets/icons/CheckCircleOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Checkbox.d.ts +3 -0
- package/dist/cjs/types/assets/icons/CheckboxOff.d.ts +3 -0
- package/dist/cjs/types/assets/icons/CheckboxPartial.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ChevronDown.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ChevronLeft.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ChevronRight.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ChevronUp.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Clapperboard.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ClapperboardOpen.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Close.d.ts +3 -0
- package/dist/cjs/types/assets/icons/CloseCircle.d.ts +3 -0
- package/dist/cjs/types/assets/icons/CloseCircleOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Copy.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Devices.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Dialpad.d.ts +3 -0
- package/dist/cjs/types/assets/icons/DoubleArrowLeft.d.ts +3 -0
- package/dist/cjs/types/assets/icons/DoubleArrowRight.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Download.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Edit.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Emoji.d.ts +3 -0
- package/dist/cjs/types/assets/icons/EyeOff.d.ts +3 -0
- package/dist/cjs/types/assets/icons/EyeOn.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Facebook.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Filter.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Flask.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Group.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Heart.d.ts +3 -0
- package/dist/cjs/types/assets/icons/HeartOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Help.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Hourglass.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Info.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Instagram.d.ts +3 -0
- package/dist/cjs/types/assets/icons/KebabMenu.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Link.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Linkedin.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Loading.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Maximize.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Menu.d.ts +3 -0
- package/dist/cjs/types/assets/icons/MergeField.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Message.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Mic.d.ts +3 -0
- package/dist/cjs/types/assets/icons/MicOff.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Minimize.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Mobile.d.ts +3 -0
- package/dist/cjs/types/assets/icons/NotAllowed.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Open.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Pause.d.ts +3 -0
- package/dist/cjs/types/assets/icons/PauseOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Person.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Phone.d.ts +3 -0
- package/dist/cjs/types/assets/icons/PhoneBlocked.d.ts +3 -0
- package/dist/cjs/types/assets/icons/PhoneEnd.d.ts +3 -0
- package/dist/cjs/types/assets/icons/PhoneHistory.d.ts +3 -0
- package/dist/cjs/types/assets/icons/PhoneTalk.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Play.d.ts +3 -0
- package/dist/cjs/types/assets/icons/PlayOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ProfileUser.d.ts +3 -0
- package/dist/cjs/types/assets/icons/RadioButton.d.ts +3 -0
- package/dist/cjs/types/assets/icons/RadioButtonOff.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Record.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Refresh.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Rocket.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Schedule.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ScheduleOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Search.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Settings.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Share.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Sort.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Spotify.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Star.d.ts +3 -0
- package/dist/cjs/types/assets/icons/StarOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Stop.d.ts +3 -0
- package/dist/cjs/types/assets/icons/StopOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Template.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ToggleOff.d.ts +3 -0
- package/dist/cjs/types/assets/icons/ToggleOn.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Trash.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Twitter.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Upload.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Video.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Voicemail.d.ts +3 -0
- package/dist/cjs/types/assets/icons/VolOn.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Warning.d.ts +3 -0
- package/dist/cjs/types/assets/icons/WarningCircleOutline.d.ts +3 -0
- package/dist/cjs/types/assets/icons/Youtube.d.ts +3 -0
- package/dist/cjs/types/components/Audio.d.ts +29 -0
- package/dist/cjs/types/components/Button/Button.d.ts +17 -0
- package/dist/cjs/types/components/Button/ButtonLoader.d.ts +5 -0
- package/dist/cjs/types/components/Button/ButtonTypes.d.ts +118 -0
- package/dist/cjs/types/components/Button/Group.d.ts +18 -0
- package/dist/cjs/types/components/Button/index.d.ts +2 -0
- package/dist/cjs/types/components/Calendar.d.ts +15 -0
- package/dist/cjs/types/components/Checkbox.d.ts +21 -0
- package/dist/cjs/types/components/Code/Code.d.ts +27 -0
- package/dist/cjs/types/components/Code/Copy.d.ts +5 -0
- package/dist/cjs/types/components/Code/Endpoint.d.ts +6 -0
- package/dist/cjs/types/components/Code/index.d.ts +2 -0
- package/dist/cjs/types/components/DocTable.d.ts +7 -0
- package/dist/cjs/types/components/DraftEditor.d.ts +51 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +85 -0
- package/dist/cjs/types/components/Dropdown/DropdownUtils.d.ts +46 -0
- package/dist/cjs/types/components/Dropdown/index.d.ts +3 -0
- package/dist/cjs/types/components/Form.d.ts +556 -0
- package/dist/cjs/types/components/FormControl.d.ts +18 -0
- package/dist/cjs/types/components/Grid.d.ts +55 -0
- package/dist/cjs/types/components/Icon/Icon.d.ts +36 -0
- package/dist/cjs/types/components/Icon/icons.d.ts +208 -0
- package/dist/cjs/types/components/Icon/index.d.ts +2 -0
- package/dist/cjs/types/components/ImageViewer.d.ts +21 -0
- package/dist/cjs/types/components/InlineCode.d.ts +7 -0
- package/dist/cjs/types/components/Input.d.ts +192 -0
- package/dist/cjs/types/components/InputHelpers.d.ts +78 -0
- package/dist/cjs/types/components/Label.d.ts +16 -0
- package/dist/cjs/types/components/Menu.d.ts +53 -0
- package/dist/cjs/types/components/Message.d.ts +25 -0
- package/dist/cjs/types/components/MessageHr.d.ts +12 -0
- package/dist/cjs/types/components/Modal.d.ts +66 -0
- package/dist/cjs/types/components/MultiSelect.d.ts +33 -0
- package/dist/cjs/types/components/Notification.d.ts +15 -0
- package/dist/cjs/types/components/Options.d.ts +45 -0
- package/dist/cjs/types/components/Pagination.d.ts +14 -0
- package/dist/cjs/types/components/Progress/CirclePercent.d.ts +10 -0
- package/dist/cjs/types/components/Progress/Progress.d.ts +23 -0
- package/dist/cjs/types/components/Progress/index.d.ts +2 -0
- package/dist/cjs/types/components/Radio.d.ts +16 -0
- package/dist/cjs/types/components/Slider.d.ts +16 -0
- package/dist/cjs/types/components/Spacer.d.ts +6 -0
- package/dist/cjs/types/components/Spinner.d.ts +11 -0
- package/dist/cjs/types/components/Table.d.ts +53 -0
- package/dist/cjs/types/components/Toggle.d.ts +19 -0
- package/dist/cjs/types/components/Tooltip.d.ts +56 -0
- package/dist/cjs/types/components/TransferList.d.ts +47 -0
- package/dist/cjs/types/components/draftUtils.d.ts +49 -0
- package/dist/cjs/types/components/helpers/getIcon.d.ts +8 -0
- package/dist/cjs/types/components/types.d.ts +48 -0
- package/dist/cjs/types/global-styles/ResetStyles.d.ts +10 -0
- package/dist/cjs/types/global-styles/ScrollbarStyles.d.ts +3 -0
- package/dist/cjs/types/global-styles/index.d.ts +2 -0
- package/dist/cjs/types/hooks/index.d.ts +5 -0
- package/dist/cjs/types/hooks/useEventListener.d.ts +3 -0
- package/dist/cjs/types/hooks/useOnClickOutside.d.ts +3 -0
- package/dist/cjs/types/hooks/useSelect.d.ts +20 -0
- package/dist/cjs/types/hooks/useSelectAll.d.ts +12 -0
- package/dist/cjs/types/hooks/useWindowSize.d.ts +5 -0
- package/dist/cjs/types/index.d.ts +48 -0
- package/dist/cjs/types/theme/ThemeTypes.d.ts +277 -0
- package/dist/cjs/types/theme/colors.d.ts +201 -0
- package/dist/cjs/types/theme/common/button.d.ts +24 -0
- package/dist/cjs/types/theme/common/common.d.ts +103 -0
- package/dist/cjs/types/theme/common/index.d.ts +3 -0
- package/dist/cjs/types/theme/dark.d.ts +3 -0
- package/dist/cjs/types/theme/index.d.ts +10 -0
- package/dist/cjs/types/theme/light.d.ts +3 -0
- package/dist/cjs/types/utils/chunk.d.ts +2 -0
- package/dist/cjs/types/utils/copyToClipboard.d.ts +2 -0
- package/dist/cjs/types/utils/formatDate.d.ts +7 -0
- package/dist/cjs/types/utils/index.d.ts +4 -0
- package/dist/cjs/types/utils/range.d.ts +1 -0
- package/dist/esm/index.js +25 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/assets/icons/ActivityHistory.d.ts +3 -0
- package/dist/esm/types/assets/icons/Add.d.ts +3 -0
- package/dist/esm/types/assets/icons/AddCircle.d.ts +3 -0
- package/dist/esm/types/assets/icons/AddCircleOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/AddPerson.d.ts +3 -0
- package/dist/esm/types/assets/icons/ArrowDown.d.ts +3 -0
- package/dist/esm/types/assets/icons/ArrowLeft.d.ts +3 -0
- package/dist/esm/types/assets/icons/ArrowRight.d.ts +3 -0
- package/dist/esm/types/assets/icons/ArrowUp.d.ts +3 -0
- package/dist/esm/types/assets/icons/Attachment.d.ts +3 -0
- package/dist/esm/types/assets/icons/Calendar.d.ts +3 -0
- package/dist/esm/types/assets/icons/Camera.d.ts +3 -0
- package/dist/esm/types/assets/icons/Card.d.ts +3 -0
- package/dist/esm/types/assets/icons/CaretDown.d.ts +3 -0
- package/dist/esm/types/assets/icons/CaretUp.d.ts +3 -0
- package/dist/esm/types/assets/icons/CheckCircle.d.ts +3 -0
- package/dist/esm/types/assets/icons/CheckCircleOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/Checkbox.d.ts +3 -0
- package/dist/esm/types/assets/icons/CheckboxOff.d.ts +3 -0
- package/dist/esm/types/assets/icons/CheckboxPartial.d.ts +3 -0
- package/dist/esm/types/assets/icons/ChevronDown.d.ts +3 -0
- package/dist/esm/types/assets/icons/ChevronLeft.d.ts +3 -0
- package/dist/esm/types/assets/icons/ChevronRight.d.ts +3 -0
- package/dist/esm/types/assets/icons/ChevronUp.d.ts +3 -0
- package/dist/esm/types/assets/icons/Clapperboard.d.ts +3 -0
- package/dist/esm/types/assets/icons/ClapperboardOpen.d.ts +3 -0
- package/dist/esm/types/assets/icons/Close.d.ts +3 -0
- package/dist/esm/types/assets/icons/CloseCircle.d.ts +3 -0
- package/dist/esm/types/assets/icons/CloseCircleOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/Copy.d.ts +3 -0
- package/dist/esm/types/assets/icons/Devices.d.ts +3 -0
- package/dist/esm/types/assets/icons/Dialpad.d.ts +3 -0
- package/dist/esm/types/assets/icons/DoubleArrowLeft.d.ts +3 -0
- package/dist/esm/types/assets/icons/DoubleArrowRight.d.ts +3 -0
- package/dist/esm/types/assets/icons/Download.d.ts +3 -0
- package/dist/esm/types/assets/icons/Edit.d.ts +3 -0
- package/dist/esm/types/assets/icons/Emoji.d.ts +3 -0
- package/dist/esm/types/assets/icons/EyeOff.d.ts +3 -0
- package/dist/esm/types/assets/icons/EyeOn.d.ts +3 -0
- package/dist/esm/types/assets/icons/Facebook.d.ts +3 -0
- package/dist/esm/types/assets/icons/Filter.d.ts +3 -0
- package/dist/esm/types/assets/icons/Flask.d.ts +3 -0
- package/dist/esm/types/assets/icons/Group.d.ts +3 -0
- package/dist/esm/types/assets/icons/Heart.d.ts +3 -0
- package/dist/esm/types/assets/icons/HeartOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/Help.d.ts +3 -0
- package/dist/esm/types/assets/icons/Hourglass.d.ts +3 -0
- package/dist/esm/types/assets/icons/Info.d.ts +3 -0
- package/dist/esm/types/assets/icons/Instagram.d.ts +3 -0
- package/dist/esm/types/assets/icons/KebabMenu.d.ts +3 -0
- package/dist/esm/types/assets/icons/Link.d.ts +3 -0
- package/dist/esm/types/assets/icons/Linkedin.d.ts +3 -0
- package/dist/esm/types/assets/icons/Loading.d.ts +3 -0
- package/dist/esm/types/assets/icons/Maximize.d.ts +3 -0
- package/dist/esm/types/assets/icons/Menu.d.ts +3 -0
- package/dist/esm/types/assets/icons/MergeField.d.ts +3 -0
- package/dist/esm/types/assets/icons/Message.d.ts +3 -0
- package/dist/esm/types/assets/icons/Mic.d.ts +3 -0
- package/dist/esm/types/assets/icons/MicOff.d.ts +3 -0
- package/dist/esm/types/assets/icons/Minimize.d.ts +3 -0
- package/dist/esm/types/assets/icons/Mobile.d.ts +3 -0
- package/dist/esm/types/assets/icons/NotAllowed.d.ts +3 -0
- package/dist/esm/types/assets/icons/Open.d.ts +3 -0
- package/dist/esm/types/assets/icons/Pause.d.ts +3 -0
- package/dist/esm/types/assets/icons/PauseOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/Person.d.ts +3 -0
- package/dist/esm/types/assets/icons/Phone.d.ts +3 -0
- package/dist/esm/types/assets/icons/PhoneBlocked.d.ts +3 -0
- package/dist/esm/types/assets/icons/PhoneEnd.d.ts +3 -0
- package/dist/esm/types/assets/icons/PhoneHistory.d.ts +3 -0
- package/dist/esm/types/assets/icons/PhoneTalk.d.ts +3 -0
- package/dist/esm/types/assets/icons/Play.d.ts +3 -0
- package/dist/esm/types/assets/icons/PlayOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/ProfileUser.d.ts +3 -0
- package/dist/esm/types/assets/icons/RadioButton.d.ts +3 -0
- package/dist/esm/types/assets/icons/RadioButtonOff.d.ts +3 -0
- package/dist/esm/types/assets/icons/Record.d.ts +3 -0
- package/dist/esm/types/assets/icons/Refresh.d.ts +3 -0
- package/dist/esm/types/assets/icons/Rocket.d.ts +3 -0
- package/dist/esm/types/assets/icons/Schedule.d.ts +3 -0
- package/dist/esm/types/assets/icons/ScheduleOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/Search.d.ts +3 -0
- package/dist/esm/types/assets/icons/Settings.d.ts +3 -0
- package/dist/esm/types/assets/icons/Share.d.ts +3 -0
- package/dist/esm/types/assets/icons/Sort.d.ts +3 -0
- package/dist/esm/types/assets/icons/Spotify.d.ts +3 -0
- package/dist/esm/types/assets/icons/Star.d.ts +3 -0
- package/dist/esm/types/assets/icons/StarOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/Stop.d.ts +3 -0
- package/dist/esm/types/assets/icons/StopOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/Template.d.ts +3 -0
- package/dist/esm/types/assets/icons/ToggleOff.d.ts +3 -0
- package/dist/esm/types/assets/icons/ToggleOn.d.ts +3 -0
- package/dist/esm/types/assets/icons/Trash.d.ts +3 -0
- package/dist/esm/types/assets/icons/Twitter.d.ts +3 -0
- package/dist/esm/types/assets/icons/Upload.d.ts +3 -0
- package/dist/esm/types/assets/icons/Video.d.ts +3 -0
- package/dist/esm/types/assets/icons/Voicemail.d.ts +3 -0
- package/dist/esm/types/assets/icons/VolOn.d.ts +3 -0
- package/dist/esm/types/assets/icons/Warning.d.ts +3 -0
- package/dist/esm/types/assets/icons/WarningCircleOutline.d.ts +3 -0
- package/dist/esm/types/assets/icons/Youtube.d.ts +3 -0
- package/dist/esm/types/components/Audio.d.ts +29 -0
- package/dist/esm/types/components/Button/Button.d.ts +17 -0
- package/dist/esm/types/components/Button/ButtonLoader.d.ts +5 -0
- package/dist/esm/types/components/Button/ButtonTypes.d.ts +118 -0
- package/dist/esm/types/components/Button/Group.d.ts +18 -0
- package/dist/esm/types/components/Button/index.d.ts +2 -0
- package/dist/esm/types/components/Calendar.d.ts +15 -0
- package/dist/esm/types/components/Checkbox.d.ts +21 -0
- package/dist/esm/types/components/Code/Code.d.ts +27 -0
- package/dist/esm/types/components/Code/Copy.d.ts +5 -0
- package/dist/esm/types/components/Code/Endpoint.d.ts +6 -0
- package/dist/esm/types/components/Code/index.d.ts +2 -0
- package/dist/esm/types/components/DocTable.d.ts +7 -0
- package/dist/esm/types/components/DraftEditor.d.ts +51 -0
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +85 -0
- package/dist/esm/types/components/Dropdown/DropdownUtils.d.ts +46 -0
- package/dist/esm/types/components/Dropdown/index.d.ts +3 -0
- package/dist/esm/types/components/Form.d.ts +556 -0
- package/dist/esm/types/components/FormControl.d.ts +18 -0
- package/dist/esm/types/components/Grid.d.ts +55 -0
- package/dist/esm/types/components/Icon/Icon.d.ts +36 -0
- package/dist/esm/types/components/Icon/icons.d.ts +208 -0
- package/dist/esm/types/components/Icon/index.d.ts +2 -0
- package/dist/esm/types/components/ImageViewer.d.ts +21 -0
- package/dist/esm/types/components/InlineCode.d.ts +7 -0
- package/dist/esm/types/components/Input.d.ts +192 -0
- package/dist/esm/types/components/InputHelpers.d.ts +78 -0
- package/dist/esm/types/components/Label.d.ts +16 -0
- package/dist/esm/types/components/Menu.d.ts +53 -0
- package/dist/esm/types/components/Message.d.ts +25 -0
- package/dist/esm/types/components/MessageHr.d.ts +12 -0
- package/dist/esm/types/components/Modal.d.ts +66 -0
- package/dist/esm/types/components/MultiSelect.d.ts +33 -0
- package/dist/esm/types/components/Notification.d.ts +15 -0
- package/dist/esm/types/components/Options.d.ts +45 -0
- package/dist/esm/types/components/Pagination.d.ts +14 -0
- package/dist/esm/types/components/Progress/CirclePercent.d.ts +10 -0
- package/dist/esm/types/components/Progress/Progress.d.ts +23 -0
- package/dist/esm/types/components/Progress/index.d.ts +2 -0
- package/dist/esm/types/components/Radio.d.ts +16 -0
- package/dist/esm/types/components/Slider.d.ts +16 -0
- package/dist/esm/types/components/Spacer.d.ts +6 -0
- package/dist/esm/types/components/Spinner.d.ts +11 -0
- package/dist/esm/types/components/Table.d.ts +53 -0
- package/dist/esm/types/components/Toggle.d.ts +19 -0
- package/dist/esm/types/components/Tooltip.d.ts +56 -0
- package/dist/esm/types/components/TransferList.d.ts +47 -0
- package/dist/esm/types/components/draftUtils.d.ts +49 -0
- package/dist/esm/types/components/helpers/getIcon.d.ts +8 -0
- package/dist/esm/types/components/types.d.ts +48 -0
- package/dist/esm/types/global-styles/ResetStyles.d.ts +10 -0
- package/dist/esm/types/global-styles/ScrollbarStyles.d.ts +3 -0
- package/dist/esm/types/global-styles/index.d.ts +2 -0
- package/dist/esm/types/hooks/index.d.ts +5 -0
- package/dist/esm/types/hooks/useEventListener.d.ts +3 -0
- package/dist/esm/types/hooks/useOnClickOutside.d.ts +3 -0
- package/dist/esm/types/hooks/useSelect.d.ts +20 -0
- package/dist/esm/types/hooks/useSelectAll.d.ts +12 -0
- package/dist/esm/types/hooks/useWindowSize.d.ts +5 -0
- package/dist/esm/types/index.d.ts +48 -0
- package/dist/esm/types/theme/ThemeTypes.d.ts +277 -0
- package/dist/esm/types/theme/colors.d.ts +201 -0
- package/dist/esm/types/theme/common/button.d.ts +24 -0
- package/dist/esm/types/theme/common/common.d.ts +103 -0
- package/dist/esm/types/theme/common/index.d.ts +3 -0
- package/dist/esm/types/theme/dark.d.ts +3 -0
- package/dist/esm/types/theme/index.d.ts +10 -0
- package/dist/esm/types/theme/light.d.ts +3 -0
- package/dist/esm/types/utils/chunk.d.ts +2 -0
- package/dist/esm/types/utils/copyToClipboard.d.ts +2 -0
- package/dist/esm/types/utils/formatDate.d.ts +7 -0
- package/dist/esm/types/utils/index.d.ts +4 -0
- package/dist/esm/types/utils/range.d.ts +1 -0
- package/dist/index.d.ts +2660 -0
- package/package.json +121 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margin } from './types';
|
|
3
|
+
import { IconType } from './helpers/getIcon';
|
|
4
|
+
declare type LabelProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** The name of the icon that should appear on the left side of the input */
|
|
7
|
+
iconLeft?: IconType;
|
|
8
|
+
/** The name of the icon that should appear on the right side of the input */
|
|
9
|
+
iconRight?: IconType;
|
|
10
|
+
/** Styles the Label as a pill */
|
|
11
|
+
pill?: boolean;
|
|
12
|
+
/** Reduces the emphasis of the Pill colors */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
} & Margin;
|
|
15
|
+
declare const Label: ({ children, iconLeft, iconRight, disabled, pill, ...rest }: LabelProps) => JSX.Element;
|
|
16
|
+
export default Label;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { Padding, WidthHeight } from './types';
|
|
3
|
+
declare type MenuProps = {
|
|
4
|
+
/** Displays the menu as a vertical, stacked menu */
|
|
5
|
+
vertical?: boolean;
|
|
6
|
+
/** If true, a border will be displayed around the menu */
|
|
7
|
+
border?: boolean;
|
|
8
|
+
/** If true, a border will be displayed on top of the menu */
|
|
9
|
+
borderTop?: boolean;
|
|
10
|
+
/** If true, a border will be displayed on bottom of the menu */
|
|
11
|
+
borderBottom?: boolean;
|
|
12
|
+
/** If true, a border will be displayed to the left of the menu */
|
|
13
|
+
borderLeft?: boolean;
|
|
14
|
+
/** If true, a border will be displayed to the right of the menu */
|
|
15
|
+
borderRight?: boolean;
|
|
16
|
+
/** Sets the borderTopLeftRadius of the menu */
|
|
17
|
+
borderTopLeftRadius?: number | string;
|
|
18
|
+
/** Sets the borderTopRightRadius of the menu */
|
|
19
|
+
borderTopRightRadius?: number | string;
|
|
20
|
+
/** Sets the borderBottomLeftRadius of the menu */
|
|
21
|
+
borderBottomLeftRadius?: number | string;
|
|
22
|
+
/** Sets the borderBottomRightRadius of the menu */
|
|
23
|
+
borderBottomRightRadius?: number | string;
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
/** Sets the backgroundColor of the menu */
|
|
26
|
+
backgroundColor?: string;
|
|
27
|
+
} & WidthHeight & Padding;
|
|
28
|
+
declare const Menu: {
|
|
29
|
+
({ vertical, width, height, padding, paddingTop, paddingBottom, paddingLeft, paddingRight, border, borderTop, borderBottom, borderLeft, borderRight, borderTopLeftRadius, borderTopRightRadius, borderBottomLeftRadius, borderBottomRightRadius, backgroundColor, children, }: MenuProps): JSX.Element;
|
|
30
|
+
Item: ({ vertical, selected, disabled, contentPosition, onClick, id, children, indent }: MenuItemProps) => JSX.Element;
|
|
31
|
+
Group: ({ label, defaultOpen, vertical, selected, disabled, contentPosition, onClick, id, children, indent, backgroundColor, }: MenuGroupProps) => JSX.Element;
|
|
32
|
+
};
|
|
33
|
+
declare type MenuItemProps = {
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
vertical?: boolean;
|
|
36
|
+
/** The id of the Menu Item */
|
|
37
|
+
id?: string;
|
|
38
|
+
/** Controls whether the Menu Item appears to be active */
|
|
39
|
+
selected: boolean;
|
|
40
|
+
/** Prevents the Menu Item from being clicked */
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/** The flex positioning of the Item contents */
|
|
43
|
+
contentPosition?: 'start' | 'end';
|
|
44
|
+
/** The function to be called when the Menu Item is clicked */
|
|
45
|
+
onClick: (event: MouseEvent) => void;
|
|
46
|
+
indent?: number;
|
|
47
|
+
};
|
|
48
|
+
declare type MenuGroupProps = {
|
|
49
|
+
label: string | ReactNode;
|
|
50
|
+
defaultOpen?: boolean;
|
|
51
|
+
backgroundColor?: string;
|
|
52
|
+
} & Partial<MenuItemProps>;
|
|
53
|
+
export default Menu;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margin, ThemeProp, Width } from './types';
|
|
3
|
+
declare type MessageProps = {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
/** Sets the colors and icon of the Message */
|
|
6
|
+
type?: 'info' | 'error' | 'success' | 'warning';
|
|
7
|
+
/** Sets the text of the button */
|
|
8
|
+
content?: string;
|
|
9
|
+
/** Displays a close icon in the top right of the Message */
|
|
10
|
+
closeIcon?: boolean;
|
|
11
|
+
/** The function called when the Message is closed */
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
} & Width & Margin;
|
|
14
|
+
declare const Message: {
|
|
15
|
+
({ type, content, closeIcon, onClose, width, margin, marginTop, marginBottom, marginRight, marginLeft, children, }: MessageProps): JSX.Element;
|
|
16
|
+
Header: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
} & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
Body: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
} & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
24
|
+
};
|
|
25
|
+
export default Message;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const MessageHr: ({ text, color, style, }: {
|
|
3
|
+
/** The text to be displayed */
|
|
4
|
+
text: string | number;
|
|
5
|
+
/** The color of the text displayed */
|
|
6
|
+
color?: string | undefined;
|
|
7
|
+
/** Sets the style prop of the text */
|
|
8
|
+
style?: {
|
|
9
|
+
[key: string]: string | number;
|
|
10
|
+
} | undefined;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export default MessageHr;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ThemeProp } from '../theme';
|
|
3
|
+
import { FlexPosition, Height, Margin, Padding, WidthHeight } from './types';
|
|
4
|
+
declare type ModalProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** The selector (id or className) of the app's root element */
|
|
7
|
+
rootSelector?: string;
|
|
8
|
+
/** Controls whether or not the Modal is open */
|
|
9
|
+
visible: boolean;
|
|
10
|
+
/** The function called when the Modal is closed */
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
/** Displays a close icon in the top right of the Modal */
|
|
13
|
+
closeIcon?: boolean;
|
|
14
|
+
/** Prevents the Modal from closing if the overlay outside the modal is clicked */
|
|
15
|
+
preventOverlayClose?: boolean;
|
|
16
|
+
/** Sets the color of the modal overlay */
|
|
17
|
+
overlayColor?: string;
|
|
18
|
+
/** Overrides the backgroundColor of the modal container */
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
/** Styles the Modal as an actionable toast */
|
|
21
|
+
small?: boolean;
|
|
22
|
+
/** Removes the overlay background, and allows the modal to be positioned anywhere on the page */
|
|
23
|
+
noOverlay?: boolean;
|
|
24
|
+
/** Centers the horizontal position of the Modal. Used in conjunction with `noOverlay` */
|
|
25
|
+
centerX?: boolean;
|
|
26
|
+
/** Centers the vertical position of the Modal. Used in conjunction with `noOverlay` */
|
|
27
|
+
centerY?: boolean;
|
|
28
|
+
/** Sets the `top` position of the modal. Used in conjunction with `noOverlay` */
|
|
29
|
+
top?: number | string;
|
|
30
|
+
/** Sets the `bottom` position of the modal. Used in conjunction with `noOverlay` */
|
|
31
|
+
bottom?: number | string;
|
|
32
|
+
/** Sets the `right` position of the modal. Used in conjunction with `noOverlay` */
|
|
33
|
+
right?: number | string;
|
|
34
|
+
/** Sets the `left` position of the modal. Used in conjunction with `noOverlay` */
|
|
35
|
+
left?: number | string;
|
|
36
|
+
} & WidthHeight & Padding;
|
|
37
|
+
declare const Modal: {
|
|
38
|
+
({ children, rootSelector, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayColor, backgroundColor, small, noOverlay, centerX, centerY, top, bottom, right, left, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: ModalProps): import("react").ReactPortal | null;
|
|
39
|
+
Header: import("@emotion/styled").StyledComponent<{
|
|
40
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
41
|
+
/** Controls whether or not the Modal is open */
|
|
42
|
+
as?: import("react").ElementType<any> | undefined;
|
|
43
|
+
} & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
44
|
+
Text: import("@emotion/styled").StyledComponent<{
|
|
45
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
46
|
+
/** Controls whether or not the Modal is open */
|
|
47
|
+
as?: import("react").ElementType<any> | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
primary?: boolean | undefined;
|
|
50
|
+
fontSize?: string | number | undefined;
|
|
51
|
+
} & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
52
|
+
Body: import("@emotion/styled").StyledComponent<{
|
|
53
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
54
|
+
/** Controls whether or not the Modal is open */
|
|
55
|
+
as?: import("react").ElementType<any> | undefined;
|
|
56
|
+
} & Height & Margin, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
57
|
+
Footer: import("@emotion/styled").StyledComponent<{
|
|
58
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
59
|
+
/** Controls whether or not the Modal is open */
|
|
60
|
+
as?: import("react").ElementType<any> | undefined;
|
|
61
|
+
} & {
|
|
62
|
+
justify?: FlexPosition | undefined;
|
|
63
|
+
inline?: boolean | undefined;
|
|
64
|
+
} & Margin, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
65
|
+
};
|
|
66
|
+
export default Modal;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DropdownOption } from './Dropdown';
|
|
3
|
+
import { Width, Margin } from './types';
|
|
4
|
+
declare type MultiSelectProps = {
|
|
5
|
+
/** The list of dropdown options to display */
|
|
6
|
+
options: DropdownOption[];
|
|
7
|
+
/** The list of selected options */
|
|
8
|
+
items: DropdownOption[];
|
|
9
|
+
/** A function that gives control of the list items to the user */
|
|
10
|
+
children?: (listOpen: boolean) => ReactNode;
|
|
11
|
+
/** Text to display in front of the list of selected items */
|
|
12
|
+
listText?: string;
|
|
13
|
+
/** The name of the items list to display (1/5 items) */
|
|
14
|
+
itemsTitle?: string;
|
|
15
|
+
/** The maximum number of items allowed to be selected */
|
|
16
|
+
maxItems?: number;
|
|
17
|
+
/** Sets the input placeholder text */
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/** As the dropdown is searched, the options narrow down according to the search value */
|
|
20
|
+
filter?: boolean;
|
|
21
|
+
/** Prevents the Dropdown from accepting any input other than what matches the provided options */
|
|
22
|
+
restrictInput?: boolean | ((text: string) => boolean);
|
|
23
|
+
/** Disables the Dropdown */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Function called after an item is selected */
|
|
26
|
+
addItem: (item: DropdownOption | null) => void;
|
|
27
|
+
/** Function called after an item is removed */
|
|
28
|
+
removeItem: (item: DropdownOption | null) => void;
|
|
29
|
+
/** The function to be called when the input is updated */
|
|
30
|
+
onTextChange?: (text: string) => void;
|
|
31
|
+
} & Width & Margin;
|
|
32
|
+
declare const MultiSelect: ({ children, options, items, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
|
|
33
|
+
export default MultiSelect;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Margin, ThemeProp } from './types';
|
|
3
|
+
declare const Notification: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
color?: string | undefined;
|
|
8
|
+
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
|
9
|
+
number?: boolean | undefined;
|
|
10
|
+
top?: string | number | undefined;
|
|
11
|
+
bottom?: string | number | undefined;
|
|
12
|
+
right?: string | number | undefined;
|
|
13
|
+
left?: string | number | undefined;
|
|
14
|
+
} & ThemeProp & Margin, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
+
export default Notification;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode, MouseEvent, RefObject } from 'react';
|
|
2
|
+
import { FlexPosition, Width } from './types';
|
|
3
|
+
declare type OptionsProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** The id of the Options container */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** A ref to the Options container element */
|
|
8
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
9
|
+
/** Offsets the vertical position of the Options */
|
|
10
|
+
offsetY?: number;
|
|
11
|
+
/** Offsets the horizontal position of the Options */
|
|
12
|
+
offsetX?: number;
|
|
13
|
+
/** Centers the vertical position of the Options relative to the Options trigger */
|
|
14
|
+
centerY?: boolean;
|
|
15
|
+
/** Centers the horizontal position of the Options relative to the Options trigger */
|
|
16
|
+
centerX?: boolean;
|
|
17
|
+
/** The direction, in relation to the trigger, the options should open */
|
|
18
|
+
direction?: 'left' | 'right' | 'top' | 'bottom';
|
|
19
|
+
/** Overrides the default maxHeight of 200px */
|
|
20
|
+
maxHeight?: number;
|
|
21
|
+
/** The selector (id or className) of the element the options should open in relataion to */
|
|
22
|
+
parentSelector?: string;
|
|
23
|
+
} & Width;
|
|
24
|
+
declare const Options: {
|
|
25
|
+
({ id, children, containerRef, parentSelector, width, maxHeight, offsetY, offsetX, centerY, centerX, direction, }: OptionsProps): JSX.Element;
|
|
26
|
+
Item({ children, id, onClick, selected, noSelect, contentPosition, color, accented, ...props }: OptionsItemProps): JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
declare type OptionsItemProps = {
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
/** The id of the Option item */
|
|
31
|
+
id?: number | string;
|
|
32
|
+
/** The function to be called when the Option item is clicked */
|
|
33
|
+
onClick: (event: MouseEvent) => void;
|
|
34
|
+
/** Controls whether the Option appears to be hovered */
|
|
35
|
+
selected?: boolean;
|
|
36
|
+
/** Prevents the Option from appearing to be hovered */
|
|
37
|
+
noSelect?: boolean;
|
|
38
|
+
/** The flex positioning of the Option contents */
|
|
39
|
+
contentPosition?: FlexPosition;
|
|
40
|
+
/** The color of the Option text */
|
|
41
|
+
color?: string;
|
|
42
|
+
/** Sets the Option text color to theme.accent */
|
|
43
|
+
accented?: boolean;
|
|
44
|
+
};
|
|
45
|
+
export default Options;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Margin, Width } from './types';
|
|
3
|
+
declare type PaginationProps = {
|
|
4
|
+
/** The callback function that responds with the active page */
|
|
5
|
+
onPageNav: (page: number) => void;
|
|
6
|
+
/** The number of page items */
|
|
7
|
+
totalPages: number;
|
|
8
|
+
/** The current page the component should display */
|
|
9
|
+
page?: number;
|
|
10
|
+
/** The max number of page items to display */
|
|
11
|
+
maxVisibleNumbers?: number;
|
|
12
|
+
} & Margin & Width;
|
|
13
|
+
declare const Pagination: ({ onPageNav, page, totalPages, maxVisibleNumbers, width, ...props }: PaginationProps) => JSX.Element;
|
|
14
|
+
export default Pagination;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties as CSS } from 'react';
|
|
2
|
+
import { Margin } from '../types';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
percent: number;
|
|
5
|
+
size?: number;
|
|
6
|
+
thickness?: number;
|
|
7
|
+
color?: CSS['backgroundColor'];
|
|
8
|
+
} & Margin;
|
|
9
|
+
declare const CirclePercent: ({ percent, size, thickness, color, margin, marginTop, marginBottom, marginRight, marginLeft, }: Props) => JSX.Element;
|
|
10
|
+
export default CirclePercent;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CSSProperties as CSS } from 'react';
|
|
2
|
+
import { Margin, WidthHeight } from '../types';
|
|
3
|
+
declare type CircleProps = ({
|
|
4
|
+
circle?: false;
|
|
5
|
+
size?: never;
|
|
6
|
+
} & WidthHeight) | {
|
|
7
|
+
/** Styles the Progress component as a circle */
|
|
8
|
+
circle: true;
|
|
9
|
+
/** The width and height of the circle */
|
|
10
|
+
size?: number;
|
|
11
|
+
width?: never;
|
|
12
|
+
height?: never;
|
|
13
|
+
};
|
|
14
|
+
declare type ProgressProps = {
|
|
15
|
+
/** The percent completed (0-100) */
|
|
16
|
+
percent: number;
|
|
17
|
+
/** The color of the progress bar */
|
|
18
|
+
color?: CSS['backgroundColor'];
|
|
19
|
+
/** The thickness of the bar or circle */
|
|
20
|
+
thickness?: number;
|
|
21
|
+
} & CircleProps & Margin;
|
|
22
|
+
declare const Progress: ({ percent, color, circle, width, height, size, thickness, margin, marginTop, marginBottom, marginRight, marginLeft, }: ProgressProps) => JSX.Element;
|
|
23
|
+
export default Progress;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
import { Margin, As } from './types';
|
|
3
|
+
declare type RadioProps = {
|
|
4
|
+
/** Id of the input element */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** Places a label element beside the radio. The value will set the text of the label */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Sets the label on the left or right of the radio */
|
|
9
|
+
labelPosition?: 'left' | 'right';
|
|
10
|
+
/** Disables the radio */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Controls the checked property of the radio */
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
} & Margin & As & HTMLProps<HTMLInputElement>;
|
|
15
|
+
declare const Radio: ({ id, label, labelPosition, checked, disabled, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: RadioProps) => JSX.Element;
|
|
16
|
+
export default Radio;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Margin, WidthHeight } from './types';
|
|
3
|
+
declare type SliderProps = {
|
|
4
|
+
/** The current position of the slider knob */
|
|
5
|
+
value: number;
|
|
6
|
+
/** The max value of the slider */
|
|
7
|
+
max?: number;
|
|
8
|
+
/** The number by which the slider should increment/decrement */
|
|
9
|
+
step?: number;
|
|
10
|
+
/** Disables the slider */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** The function that is called when the slider knob is changed */
|
|
13
|
+
onChange?: (progressValue: number) => void;
|
|
14
|
+
} & WidthHeight & Margin;
|
|
15
|
+
declare const Slider: ({ value, max, step, width, height, disabled, onChange, ...props }: SliderProps) => JSX.Element;
|
|
16
|
+
export default Slider;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Spacer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & import("./types").Width & import("./types").Height, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export default Spacer;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Sizes } from './Icon/Icon';
|
|
3
|
+
import { Margin } from './types';
|
|
4
|
+
declare type SpinnerProps = {
|
|
5
|
+
/** The size of the loading icon */
|
|
6
|
+
size?: Sizes;
|
|
7
|
+
/** The color of the loading icon */
|
|
8
|
+
color?: string;
|
|
9
|
+
} & Margin;
|
|
10
|
+
declare const Spinner: ({ size, color, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: SpinnerProps) => JSX.Element;
|
|
11
|
+
export default Spinner;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { HTMLProps, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { ThemeProp, MarginPadding, Height, Width, FlexPosition, As } from './types';
|
|
3
|
+
/** Table component */
|
|
4
|
+
declare type TableBase = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** If a number, columns creates n number columns of an equal size. If a string, columns sets the gridTemplateColumns property */
|
|
7
|
+
columns?: number | string;
|
|
8
|
+
} & Width & MarginPadding;
|
|
9
|
+
declare type DefaultTableProps = Omit<HTMLProps<HTMLTableElement>, 'as'> & As;
|
|
10
|
+
declare const Table: {
|
|
11
|
+
({ children, columns, ...rest }: TableBase & DefaultTableProps): JSX.Element;
|
|
12
|
+
/** Table.Header component */
|
|
13
|
+
Header({ children, columns, parentColumns, ...rest }: TableHeaderRow): JSX.Element;
|
|
14
|
+
HeaderCell: ({ children, onClick, contentPosition, sorted }: HeaderCellProps) => JSX.Element;
|
|
15
|
+
Body({ children, parentColumns, height }: BodyProps): JSX.Element;
|
|
16
|
+
/** Table.Row component */
|
|
17
|
+
Row({ children, columns, parentColumns, ...rest }: TableHeaderRow): JSX.Element;
|
|
18
|
+
Column({ children, contentPosition, defaultValue }: TableColumn): JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
declare type TableHeaderRow = {
|
|
21
|
+
parentColumns?: number | string;
|
|
22
|
+
} & TableBase & HTMLProps<HTMLTableRowElement>;
|
|
23
|
+
/** Table.HeaderCell component */
|
|
24
|
+
declare type HeaderCellProps = {
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
/** The flex positioning of the HeaderCell contents */
|
|
27
|
+
contentPosition?: FlexPosition;
|
|
28
|
+
/** The function to be called when the HeaderCell is clicked */
|
|
29
|
+
onClick?: (event: MouseEvent) => void;
|
|
30
|
+
/** Controls the direction of the sort icon indicating the direction of the data */
|
|
31
|
+
sorted?: 'asc' | 'desc' | 'inactive';
|
|
32
|
+
};
|
|
33
|
+
/** Table.Body component */
|
|
34
|
+
declare type BodyProps = Omit<TableHeaderRow, 'columns'> & Height & HTMLProps<HTMLTableSectionElement>;
|
|
35
|
+
/** Table.Column component */
|
|
36
|
+
declare type TableColumn = {
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
/** The flex positioning of the Column contents */
|
|
39
|
+
contentPosition?: FlexPosition;
|
|
40
|
+
/** The string value to display if the child text is undefined (i.e. "N/A", "—") */
|
|
41
|
+
defaultValue?: string;
|
|
42
|
+
};
|
|
43
|
+
declare const TableColumn: import("@emotion/styled").StyledComponent<{
|
|
44
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
45
|
+
as?: import("react").ElementType<any> | undefined;
|
|
46
|
+
} & {
|
|
47
|
+
contentPosition?: FlexPosition | undefined;
|
|
48
|
+
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
49
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
showDefault?: boolean | undefined;
|
|
52
|
+
} & ThemeProp, {}, {}>;
|
|
53
|
+
export default Table;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxAttributes } from './FormControl';
|
|
3
|
+
import { As, Margin } from './types';
|
|
4
|
+
declare type ToggleProps = {
|
|
5
|
+
/** Id of the input element */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Places a label element beside the toggle. The value will set the text of the label */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Sets the label on the left or right of the toggle */
|
|
10
|
+
labelPosition?: 'left' | 'right';
|
|
11
|
+
/** Disables the toggle */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Controls the checked property of the toggle */
|
|
14
|
+
checked?: boolean;
|
|
15
|
+
/** The function called with the toggle value after the toggle is changed */
|
|
16
|
+
onChange: (val: boolean) => void;
|
|
17
|
+
} & Margin & As & CheckboxAttributes;
|
|
18
|
+
declare const Toggle: ({ id, label, labelPosition, checked, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: ToggleProps) => JSX.Element;
|
|
19
|
+
export default Toggle;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ThemeProp } from './types';
|
|
3
|
+
declare type Position = 'top' | 'bottom' | 'right' | 'left' | 'top left' | 'bottom left' | 'top right' | 'bottom right';
|
|
4
|
+
export declare type TooltipProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** The element that will trigger the opening of the Tooltip */
|
|
7
|
+
trigger: ReactNode;
|
|
8
|
+
/** Sets the instigator of the Tooltip opening */
|
|
9
|
+
on?: 'hover' | 'click';
|
|
10
|
+
/** The text content of the Tooltip */
|
|
11
|
+
content?: string;
|
|
12
|
+
/** The style prop of the Tooltip container */
|
|
13
|
+
style?: {
|
|
14
|
+
[key: string]: string | number;
|
|
15
|
+
};
|
|
16
|
+
/** The position of the Tooltip body and arrow in relation to the trigger */
|
|
17
|
+
position?: Position;
|
|
18
|
+
/** Offsets the vertical position of the Tooltip */
|
|
19
|
+
offsetY?: number;
|
|
20
|
+
/** Offsets the horizontal position of the Tooltip arrow */
|
|
21
|
+
offsetArrowX?: number;
|
|
22
|
+
/** Offsets the horizontal position of the Tooltip */
|
|
23
|
+
offsetX?: number;
|
|
24
|
+
/** The width of the Tooltip container */
|
|
25
|
+
containerWidth?: number | string;
|
|
26
|
+
/** The width of the Tooltip element */
|
|
27
|
+
width?: number | string;
|
|
28
|
+
/** The maxWidth of the Tooltip element */
|
|
29
|
+
maxWidth?: number | string;
|
|
30
|
+
/** The textAlignment of the Tooltip text */
|
|
31
|
+
textAlign?: 'left' | 'right' | 'center';
|
|
32
|
+
/** Prevents the Tooltip from opening */
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/** The id of the Tooltip element */
|
|
35
|
+
id?: string;
|
|
36
|
+
/** The function called after the Tooltip opens */
|
|
37
|
+
afterShow?: () => void;
|
|
38
|
+
/** The function called after the Tooltip closes */
|
|
39
|
+
afterHide?: () => void;
|
|
40
|
+
/** The backgroundColor of the Tooltip element */
|
|
41
|
+
bgColor?: string;
|
|
42
|
+
/** The text color of the Tooltip element */
|
|
43
|
+
color?: string;
|
|
44
|
+
};
|
|
45
|
+
declare const Tooltip: {
|
|
46
|
+
({ trigger, on, children, content, style, position, offsetY, offsetArrowX, offsetX, containerWidth, width, maxWidth, textAlign, disabled, id, afterShow, afterHide, bgColor, color, }: TooltipProps): JSX.Element;
|
|
47
|
+
Header: import("@emotion/styled").StyledComponent<{
|
|
48
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
49
|
+
as?: import("react").ElementType<any> | undefined;
|
|
50
|
+
} & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
51
|
+
Body: import("@emotion/styled").StyledComponent<{
|
|
52
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
53
|
+
as?: import("react").ElementType<any> | undefined;
|
|
54
|
+
} & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
55
|
+
};
|
|
56
|
+
export default Tooltip;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CSSProperties as CSS, ReactElement } from 'react';
|
|
2
|
+
import { ColorNames } from '../theme/colors';
|
|
3
|
+
import { Margin, Width } from './types';
|
|
4
|
+
declare type Color = ColorNames | CSS['color'];
|
|
5
|
+
export declare type Item = {
|
|
6
|
+
/** Unique ID of the item */
|
|
7
|
+
id: number | string;
|
|
8
|
+
/** The text displayed for the transfer item */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Used as the data of the item */
|
|
11
|
+
value?: unknown;
|
|
12
|
+
/** If both `header` and `body` are provided, this text will be styled as the transfer item's header */
|
|
13
|
+
header?: string;
|
|
14
|
+
/** If both `header` and `body` are provided, this text will be styled as the transfer item's body */
|
|
15
|
+
body?: string;
|
|
16
|
+
/** Any element to be displayed to the left of the item's label/header/body */
|
|
17
|
+
leftElement?: ReactElement;
|
|
18
|
+
/** Any element to be displayed to the right of the item's label/header/body */
|
|
19
|
+
rightElement?: ReactElement;
|
|
20
|
+
/** The left border color of the transfer item */
|
|
21
|
+
color?: Color;
|
|
22
|
+
/** Used to preselect an item */
|
|
23
|
+
selected?: boolean;
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
export declare type Action = 'select' | 'remove';
|
|
27
|
+
export declare type Next = (item?: Item) => void;
|
|
28
|
+
declare type TransferListProps = {
|
|
29
|
+
/** Array of objects that will be rendered as individual items in the list */
|
|
30
|
+
items: Item[];
|
|
31
|
+
/** The function called when an item is selected or removed. It passes the entire list of selected items. */
|
|
32
|
+
onChange: (list: Item[]) => void;
|
|
33
|
+
/** The function called before an item is selected or removed */
|
|
34
|
+
beforeItemChange?: (item: Item, action: Action, next: Next) => void;
|
|
35
|
+
/** The header title of the transfer list */
|
|
36
|
+
listTitle?: string;
|
|
37
|
+
/** The text to display in a readOnly state where there are no selected items */
|
|
38
|
+
noItemsMessage?: string;
|
|
39
|
+
/** Disables moving items and only displays the list of selected items */
|
|
40
|
+
readOnly?: boolean;
|
|
41
|
+
/** Hides the select all button */
|
|
42
|
+
hideSelectAll?: boolean;
|
|
43
|
+
/** Hides the remove all button */
|
|
44
|
+
hideRemoveAll?: boolean;
|
|
45
|
+
} & Width & Margin;
|
|
46
|
+
declare const TransferList: ({ items, onChange, beforeItemChange, listTitle, noItemsMessage, hideSelectAll, hideRemoveAll, readOnly, width, margin, marginTop, marginBottom, marginRight, marginLeft, }: TransferListProps) => JSX.Element;
|
|
47
|
+
export default TransferList;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EditorState, CompositeDecorator, RawDraftContentState, ContentState, RawDraftEntity } from 'draft-js';
|
|
2
|
+
import { MergeField } from './types';
|
|
3
|
+
export declare const decorator: CompositeDecorator;
|
|
4
|
+
export declare const decode: (data: RawDraftContentState) => string;
|
|
5
|
+
export declare const encode: (text: string, fields: MergeField[], displayValue: boolean) => ContentState;
|
|
6
|
+
/**
|
|
7
|
+
* Returns a new EditorState using the content passed in.
|
|
8
|
+
* @param {string} value - The string of text to go in the editor
|
|
9
|
+
* @param {array} fields - Array of field objects
|
|
10
|
+
* @param {boolean} displayValue - Flag to display the merge fields value or label
|
|
11
|
+
*/
|
|
12
|
+
export declare const createStateWithContent: (value: string, fields: MergeField[], displayValue: boolean) => EditorState;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the raw form of the Editor content.
|
|
15
|
+
* @param {EditorState} state - The current state of the editor
|
|
16
|
+
* @param {boolean} decoded - Whether or not the state is to be decoded into plain text
|
|
17
|
+
*/
|
|
18
|
+
export declare const getRawState: (state: EditorState, decoded?: boolean) => string | RawDraftContentState;
|
|
19
|
+
/**
|
|
20
|
+
* Returns an array of entities contained in the EditorState.
|
|
21
|
+
* @param {EditorState} state - The current state of the editor
|
|
22
|
+
*/
|
|
23
|
+
export declare const getEntities: (state: EditorState) => RawDraftEntity<{
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}>[];
|
|
26
|
+
/**
|
|
27
|
+
* Checks if the editor contains any merged but unknown fields. Returns a true or false
|
|
28
|
+
* @param {EditorState} state - The current state of the editor
|
|
29
|
+
*/
|
|
30
|
+
export declare const hasMissingEntities: (state: EditorState) => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Returns a new EditorState with a merge field inserted at the cursor, then places the cursor at the end of the newly inserted text.
|
|
33
|
+
* @param {object} field - The merge field object to be inserted
|
|
34
|
+
* @param {array} fields - Array of field objects
|
|
35
|
+
* @param {EditorState} state - The current state of the editor
|
|
36
|
+
* @param {boolean} displayValue - Flag to display the merge fields value or label
|
|
37
|
+
*/
|
|
38
|
+
export declare const insertFieldEntity: (field: MergeField, fields: MergeField[], state: EditorState, displayValue: boolean) => EditorState;
|
|
39
|
+
/**
|
|
40
|
+
* Returns a new EditorState with the cursor focused at the end of the text.
|
|
41
|
+
* @param {EditorState} state - The current state of the editor
|
|
42
|
+
*/
|
|
43
|
+
export declare const getFocusStateAtEnd: (state: EditorState) => EditorState;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a new EditorState with the pasted content merged in with the current state.
|
|
46
|
+
* @param {string} text - The text string being pasted
|
|
47
|
+
* @param {EditorState} state - The current state of the editor
|
|
48
|
+
*/
|
|
49
|
+
export declare const getPastedState: (text: string, state: EditorState) => EditorState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IconProps } from '../Icon/Icon';
|
|
3
|
+
import { IconNames } from '../Icon/icons';
|
|
4
|
+
import { TooltipProps } from '../Tooltip';
|
|
5
|
+
export declare type IconType = IconNames | IconProps | ReactElement<IconProps> | ReactElement<TooltipProps>;
|
|
6
|
+
declare type ReducedIconProps = Omit<IconProps, 'name' | 'svg'>;
|
|
7
|
+
declare const getIcon: (icon: IconType, props?: ReducedIconProps) => ReactElement<IconProps | TooltipProps>;
|
|
8
|
+
export default getIcon;
|