@wavv/ui 1.4.0 → 1.4.2
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/build/cjs/{types/assets → assets}/icons/ActivityHistory.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Add.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/AddCircle.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/AddCircleOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/AddPerson.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ArrowDown.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ArrowLeft.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ArrowRight.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ArrowUp.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Attachment.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Calendar.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Camera.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Card.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/CaretDown.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/CaretUp.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/CheckCircle.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/CheckCircleOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Checkbox.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/CheckboxOff.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/CheckboxPartial.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ChevronDown.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ChevronLeft.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ChevronRight.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ChevronUp.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Clapperboard.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ClapperboardOpen.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Close.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/CloseCircle.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/CloseCircleOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Copy.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Devices.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Dialpad.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/DoubleArrowLeft.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/DoubleArrowRight.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Download.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Edit.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Emoji.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/EyeOff.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/EyeOn.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Facebook.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Filter.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Flask.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Group.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Heart.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/HeartOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Help.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Hourglass.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Info.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Instagram.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/KebabMenu.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Link.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Linkedin.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Loading.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Maximize.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Menu.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/MergeField.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Message.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Mic.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/MicOff.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Minimize.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Mobile.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/NotAllowed.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Open.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Pause.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/PauseOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Person.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Phone.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/PhoneBlocked.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/PhoneEnd.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/PhoneHistory.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/PhoneTalk.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Play.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/PlayOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ProfileUser.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/RadioButton.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/RadioButtonOff.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Record.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Refresh.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Rocket.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Schedule.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ScheduleOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Search.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Settings.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Share.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Sort.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Spotify.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Star.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/StarOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Stop.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/StopOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Template.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ToggleOff.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/ToggleOn.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Trash.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Twitter.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Upload.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Video.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Voicemail.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/VolOn.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Warning.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/WarningCircleOutline.d.ts +0 -0
- package/build/cjs/{types/assets → assets}/icons/Youtube.d.ts +0 -0
- package/build/cjs/{types/components → components}/Audio.d.ts +2 -2
- package/build/cjs/{types/components → components}/BarChart.d.ts +2 -2
- package/build/cjs/{types/components → components}/Button/Button.d.ts +0 -0
- package/build/cjs/{types/components → components}/Button/ButtonLoader.d.ts +0 -0
- package/build/{esm/types → cjs}/components/Button/ButtonTypes.d.ts +13 -13
- package/build/cjs/{types/components → components}/Button/Group.d.ts +4 -4
- package/build/cjs/{types/components → components}/Button/index.d.ts +0 -0
- package/build/{esm/types → cjs}/components/Calendar.d.ts +1 -1
- package/build/cjs/{types/components → components}/ChartHelpers.d.ts +0 -0
- package/build/cjs/{types/components → components}/Checkbox.d.ts +1 -1
- package/build/{esm/types → cjs}/components/Code/Code.d.ts +5 -5
- package/build/cjs/{types/components → components}/Code/Copy.d.ts +0 -0
- package/build/cjs/{types/components → components}/Code/Endpoint.d.ts +0 -0
- package/build/cjs/{types/components → components}/Code/index.d.ts +0 -0
- package/build/cjs/{types/components → components}/DocTable.d.ts +0 -0
- package/build/cjs/{types/components → components}/DraftEditor.d.ts +2 -1
- package/build/cjs/{types/components → components}/Dropdown/Dropdown.d.ts +2 -2
- package/build/{esm/types → cjs}/components/Dropdown/DropdownUtils.d.ts +7 -7
- package/build/cjs/{types/components → components}/Dropdown/index.d.ts +0 -0
- package/build/cjs/{types/components → components}/Form.d.ts +6 -5
- package/build/cjs/{types/components → components}/FormControl.d.ts +1 -1
- package/build/cjs/{types/components → components}/Grid.d.ts +2 -2
- package/build/{esm/types → cjs}/components/Icon/Icon.d.ts +4 -4
- package/build/{esm/types → cjs}/components/Icon/icons.d.ts +1 -1
- package/build/cjs/{types/components → components}/Icon/index.d.ts +0 -0
- package/build/{esm/types → cjs}/components/ImageViewer.d.ts +1 -1
- package/build/cjs/{types/components → components}/InlineCode.d.ts +0 -0
- package/build/cjs/{types/components → components}/Input.d.ts +10 -10
- package/build/{esm/types → cjs}/components/InputHelpers.d.ts +1 -1
- package/build/{esm/types → cjs}/components/Label.d.ts +1 -1
- package/build/{esm/types → cjs}/components/Menu.d.ts +3 -3
- package/build/{esm/types → cjs}/components/Message.d.ts +1 -1
- package/build/cjs/{types/components → components}/MessageHr.d.ts +0 -0
- package/build/cjs/{types/components → components}/Modal.d.ts +1 -1
- package/build/{esm/types → cjs}/components/MultiSelect.d.ts +6 -4
- package/build/cjs/{types/components → components}/Notification.d.ts +0 -0
- package/build/cjs/{types/components → components}/Options.d.ts +2 -2
- package/build/cjs/{types/components → components}/Pagination.d.ts +1 -1
- package/build/{esm/types → cjs}/components/PieChart.d.ts +2 -2
- package/build/{esm/types → cjs}/components/Progress/CirclePercent.d.ts +1 -1
- package/build/cjs/{types/components → components}/Progress/Progress.d.ts +2 -2
- package/build/cjs/{types/components → components}/Progress/index.d.ts +0 -0
- package/build/cjs/{types/components → components}/Radio.d.ts +1 -1
- package/build/cjs/{types/components → components}/Slider.d.ts +1 -1
- package/build/cjs/{types/components → components}/Spacer.d.ts +0 -0
- package/build/{esm/types → cjs}/components/Spinner.d.ts +1 -1
- package/build/cjs/{types/components → components}/Table/Body.d.ts +1 -1
- package/build/{esm/types → cjs}/components/Table/Column.d.ts +1 -1
- package/build/cjs/{types/components → components}/Table/Content.d.ts +0 -0
- package/build/cjs/{types/components → components}/Table/Header.d.ts +0 -0
- package/build/cjs/{types/components → components}/Table/HeaderCell.d.ts +1 -1
- package/build/cjs/{types/components → components}/Table/Row.d.ts +0 -0
- package/build/cjs/{types/components → components}/Table/Table.d.ts +0 -0
- package/build/cjs/{types/components → components}/Table/context.d.ts +0 -0
- package/build/cjs/{types/components → components}/Table/index.d.ts +0 -0
- package/build/cjs/components/Table/types.d.ts +40 -0
- package/build/cjs/{types/components → components}/Table/utils.d.ts +0 -0
- package/build/{esm/types → cjs}/components/Toggle.d.ts +1 -1
- package/build/{esm/types → cjs}/components/Tooltip.d.ts +2 -2
- package/build/cjs/{types/components → components}/TransferList.d.ts +5 -5
- package/build/cjs/{types/components → components}/draftUtils.d.ts +0 -0
- package/build/{esm/types → cjs}/components/helpers/getIcon.d.ts +2 -2
- package/build/{esm/types → cjs}/components/types.d.ts +13 -13
- package/build/{esm/types → cjs}/global-styles/ResetStyles.d.ts +1 -1
- package/build/cjs/{types/global-styles → global-styles}/ScrollbarStyles.d.ts +0 -0
- package/build/cjs/{types/global-styles → global-styles}/ToastStyles.d.ts +0 -0
- package/build/cjs/{types/global-styles → global-styles}/index.d.ts +0 -0
- package/build/cjs/{types/hooks → hooks}/index.d.ts +0 -0
- package/build/cjs/{types/hooks → hooks}/useConfirm.d.ts +1 -1
- package/build/cjs/{types/hooks → hooks}/useEventListener.d.ts +0 -0
- package/build/cjs/{types/hooks → hooks}/useOnClickOutside.d.ts +0 -0
- package/build/cjs/{types/hooks → hooks}/useSelect.d.ts +1 -1
- package/build/{esm/types → cjs}/hooks/useSelectAll.d.ts +1 -1
- package/build/cjs/{types/hooks → hooks}/useWindowSize.d.ts +0 -0
- package/build/cjs/{types/index.d.ts → index.d.ts} +0 -0
- package/build/cjs/index.js +8 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{types/theme → theme}/ThemeTypes.d.ts +4 -4
- package/build/{esm/types → cjs}/theme/colors.d.ts +1 -1
- package/build/cjs/{types/theme → theme}/common/button.d.ts +0 -0
- package/build/cjs/{types/theme → theme}/common/common.d.ts +0 -0
- package/build/cjs/{types/theme → theme}/common/index.d.ts +0 -0
- package/build/cjs/{types/theme → theme}/dark.d.ts +0 -0
- package/build/{esm/types → cjs}/theme/index.d.ts +1 -1
- package/build/cjs/{types/theme → theme}/light.d.ts +0 -0
- package/build/cjs/{types/utils → utils}/chunk.d.ts +0 -0
- package/build/cjs/{types/utils → utils}/copyToClipboard.d.ts +0 -0
- package/build/cjs/{types/utils → utils}/formatDate.d.ts +2 -2
- package/build/cjs/{types/utils → utils}/index.d.ts +0 -0
- package/build/cjs/{types/utils → utils}/range.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ActivityHistory.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Add.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/AddCircle.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/AddCircleOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/AddPerson.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ArrowDown.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ArrowLeft.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ArrowRight.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ArrowUp.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Attachment.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Calendar.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Camera.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Card.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/CaretDown.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/CaretUp.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/CheckCircle.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/CheckCircleOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Checkbox.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/CheckboxOff.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/CheckboxPartial.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ChevronDown.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ChevronLeft.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ChevronRight.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ChevronUp.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Clapperboard.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ClapperboardOpen.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Close.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/CloseCircle.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/CloseCircleOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Copy.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Devices.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Dialpad.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/DoubleArrowLeft.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/DoubleArrowRight.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Download.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Edit.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Emoji.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/EyeOff.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/EyeOn.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Facebook.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Filter.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Flask.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Group.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Heart.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/HeartOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Help.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Hourglass.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Info.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Instagram.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/KebabMenu.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Link.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Linkedin.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Loading.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Maximize.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Menu.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/MergeField.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Message.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Mic.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/MicOff.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Minimize.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Mobile.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/NotAllowed.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Open.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Pause.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/PauseOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Person.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Phone.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/PhoneBlocked.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/PhoneEnd.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/PhoneHistory.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/PhoneTalk.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Play.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/PlayOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ProfileUser.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/RadioButton.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/RadioButtonOff.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Record.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Refresh.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Rocket.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Schedule.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ScheduleOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Search.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Settings.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Share.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Sort.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Spotify.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Star.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/StarOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Stop.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/StopOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Template.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ToggleOff.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/ToggleOn.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Trash.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Twitter.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Upload.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Video.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Voicemail.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/VolOn.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Warning.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/WarningCircleOutline.d.ts +0 -0
- package/build/esm/{types/assets → assets}/icons/Youtube.d.ts +0 -0
- package/build/esm/{types/components → components}/Audio.d.ts +2 -2
- package/build/esm/{types/components → components}/BarChart.d.ts +2 -2
- package/build/esm/{types/components → components}/Button/Button.d.ts +0 -0
- package/build/esm/{types/components → components}/Button/ButtonLoader.d.ts +0 -0
- package/build/{cjs/types → esm}/components/Button/ButtonTypes.d.ts +13 -13
- package/build/esm/{types/components → components}/Button/Group.d.ts +4 -4
- package/build/esm/{types/components → components}/Button/index.d.ts +0 -0
- package/build/{cjs/types → esm}/components/Calendar.d.ts +1 -1
- package/build/esm/{types/components → components}/ChartHelpers.d.ts +0 -0
- package/build/esm/{types/components → components}/Checkbox.d.ts +1 -1
- package/build/{cjs/types → esm}/components/Code/Code.d.ts +5 -5
- package/build/esm/{types/components → components}/Code/Copy.d.ts +0 -0
- package/build/esm/{types/components → components}/Code/Endpoint.d.ts +0 -0
- package/build/esm/{types/components → components}/Code/index.d.ts +0 -0
- package/build/esm/{types/components → components}/DocTable.d.ts +0 -0
- package/build/esm/{types/components → components}/DraftEditor.d.ts +2 -1
- package/build/esm/{types/components → components}/Dropdown/Dropdown.d.ts +2 -2
- package/build/{cjs/types → esm}/components/Dropdown/DropdownUtils.d.ts +7 -7
- package/build/esm/{types/components → components}/Dropdown/index.d.ts +0 -0
- package/build/esm/{types/components → components}/Form.d.ts +6 -5
- package/build/esm/{types/components → components}/FormControl.d.ts +1 -1
- package/build/esm/{types/components → components}/Grid.d.ts +2 -2
- package/build/{cjs/types → esm}/components/Icon/Icon.d.ts +4 -4
- package/build/{cjs/types → esm}/components/Icon/icons.d.ts +1 -1
- package/build/esm/{types/components → components}/Icon/index.d.ts +0 -0
- package/build/{cjs/types → esm}/components/ImageViewer.d.ts +1 -1
- package/build/esm/{types/components → components}/InlineCode.d.ts +0 -0
- package/build/esm/{types/components → components}/Input.d.ts +10 -10
- package/build/{cjs/types → esm}/components/InputHelpers.d.ts +1 -1
- package/build/{cjs/types → esm}/components/Label.d.ts +1 -1
- package/build/{cjs/types → esm}/components/Menu.d.ts +3 -3
- package/build/{cjs/types → esm}/components/Message.d.ts +1 -1
- package/build/esm/{types/components → components}/MessageHr.d.ts +0 -0
- package/build/esm/{types/components → components}/Modal.d.ts +1 -1
- package/build/{cjs/types → esm}/components/MultiSelect.d.ts +6 -4
- package/build/esm/{types/components → components}/Notification.d.ts +0 -0
- package/build/esm/{types/components → components}/Options.d.ts +2 -2
- package/build/esm/{types/components → components}/Pagination.d.ts +1 -1
- package/build/{cjs/types → esm}/components/PieChart.d.ts +2 -2
- package/build/{cjs/types → esm}/components/Progress/CirclePercent.d.ts +1 -1
- package/build/esm/{types/components → components}/Progress/Progress.d.ts +2 -2
- package/build/esm/{types/components → components}/Progress/index.d.ts +0 -0
- package/build/esm/{types/components → components}/Radio.d.ts +1 -1
- package/build/esm/{types/components → components}/Slider.d.ts +1 -1
- package/build/esm/{types/components → components}/Spacer.d.ts +0 -0
- package/build/{cjs/types → esm}/components/Spinner.d.ts +1 -1
- package/build/esm/{types/components → components}/Table/Body.d.ts +1 -1
- package/build/{cjs/types → esm}/components/Table/Column.d.ts +1 -1
- package/build/esm/{types/components → components}/Table/Content.d.ts +0 -0
- package/build/esm/{types/components → components}/Table/Header.d.ts +0 -0
- package/build/esm/{types/components → components}/Table/HeaderCell.d.ts +1 -1
- package/build/esm/{types/components → components}/Table/Row.d.ts +0 -0
- package/build/esm/{types/components → components}/Table/Table.d.ts +0 -0
- package/build/esm/{types/components → components}/Table/context.d.ts +0 -0
- package/build/esm/{types/components → components}/Table/index.d.ts +0 -0
- package/build/esm/components/Table/types.d.ts +40 -0
- package/build/esm/{types/components → components}/Table/utils.d.ts +0 -0
- package/build/{cjs/types → esm}/components/Toggle.d.ts +1 -1
- package/build/{cjs/types → esm}/components/Tooltip.d.ts +2 -2
- package/build/esm/{types/components → components}/TransferList.d.ts +5 -5
- package/build/esm/{types/components → components}/draftUtils.d.ts +0 -0
- package/build/{cjs/types → esm}/components/helpers/getIcon.d.ts +2 -2
- package/build/{cjs/types → esm}/components/types.d.ts +13 -13
- package/build/{cjs/types → esm}/global-styles/ResetStyles.d.ts +1 -1
- package/build/esm/{types/global-styles → global-styles}/ScrollbarStyles.d.ts +0 -0
- package/build/esm/{types/global-styles → global-styles}/ToastStyles.d.ts +0 -0
- package/build/esm/{types/global-styles → global-styles}/index.d.ts +0 -0
- package/build/esm/{types/hooks → hooks}/index.d.ts +0 -0
- package/build/esm/{types/hooks → hooks}/useConfirm.d.ts +1 -1
- package/build/esm/{types/hooks → hooks}/useEventListener.d.ts +0 -0
- package/build/esm/{types/hooks → hooks}/useOnClickOutside.d.ts +0 -0
- package/build/esm/{types/hooks → hooks}/useSelect.d.ts +1 -1
- package/build/{cjs/types → esm}/hooks/useSelectAll.d.ts +1 -1
- package/build/esm/{types/hooks → hooks}/useWindowSize.d.ts +0 -0
- package/build/esm/{types/index.d.ts → index.d.ts} +0 -0
- package/build/esm/index.js +8 -8
- package/build/esm/index.js.map +1 -1
- package/build/esm/{types/theme → theme}/ThemeTypes.d.ts +4 -4
- package/build/{cjs/types → esm}/theme/colors.d.ts +1 -1
- package/build/esm/{types/theme → theme}/common/button.d.ts +0 -0
- package/build/esm/{types/theme → theme}/common/common.d.ts +0 -0
- package/build/esm/{types/theme → theme}/common/index.d.ts +0 -0
- package/build/esm/{types/theme → theme}/dark.d.ts +0 -0
- package/build/{cjs/types → esm}/theme/index.d.ts +1 -1
- package/build/esm/{types/theme → theme}/light.d.ts +0 -0
- package/build/esm/{types/utils → utils}/chunk.d.ts +0 -0
- package/build/esm/{types/utils → utils}/copyToClipboard.d.ts +0 -0
- package/build/esm/{types/utils → utils}/formatDate.d.ts +2 -2
- package/build/esm/{types/utils → utils}/index.d.ts +0 -0
- package/build/esm/{types/utils → utils}/range.d.ts +0 -0
- package/build/index.d.ts +124 -120
- package/package.json +47 -47
- package/build/cjs/types/components/Table/types.d.ts +0 -40
- package/build/esm/types/components/Table/types.d.ts +0 -40
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent, HTMLProps } from 'react';
|
|
2
2
|
import { Margin, Width, As, AudioRef } from './types';
|
|
3
|
-
|
|
3
|
+
type AudioProps = {
|
|
4
4
|
/** The filepath of the audio source */
|
|
5
5
|
src: string;
|
|
6
6
|
/** The title of the audio source to be displayed */
|
|
@@ -25,5 +25,5 @@ declare type AudioProps = {
|
|
|
25
25
|
onPause?: (event: ChangeEvent<HTMLAudioElement>) => void;
|
|
26
26
|
onStop?: (event: ChangeEvent<HTMLAudioElement>) => void;
|
|
27
27
|
} & Margin & Width & As & HTMLProps<HTMLDivElement>;
|
|
28
|
-
declare const Audio: import("react").ForwardRefExoticComponent<Pick<AudioProps, "small" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "start" | "size" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "
|
|
28
|
+
declare const Audio: import("react").ForwardRefExoticComponent<Pick<AudioProps, "small" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "start" | "size" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | keyof Margin | "infoPosition" | "centerAlignContent" | "collapsed" | "hideSliderOnStop" | "hideTimeOnStop" | "fontSizeTitle" | "fontSizeTime" | "onStop"> & import("react").RefAttributes<AudioRef>>;
|
|
29
29
|
export default Audio;
|
|
File without changes
|
|
File without changes
|
|
@@ -2,10 +2,10 @@ import { HTMLProps, MouseEvent, ReactNode } from 'react';
|
|
|
2
2
|
import { OptionItem } from '../Dropdown/DropdownUtils';
|
|
3
3
|
import { IconNames } from '../Icon/icons';
|
|
4
4
|
import { Margin, As } from '../types';
|
|
5
|
-
|
|
5
|
+
type ButtonAttributes = Omit<HTMLProps<HTMLButtonElement>, 'as' | 'type' | 'size'> & {
|
|
6
6
|
type?: 'button' | 'reset' | 'submit';
|
|
7
7
|
} & As;
|
|
8
|
-
|
|
8
|
+
type ButtonBaseProps = {
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
joined?: 'left' | 'right' | 'middle';
|
|
11
11
|
preventPointerEvents?: boolean;
|
|
@@ -34,7 +34,7 @@ declare type ButtonBaseProps = {
|
|
|
34
34
|
/** Sets the text color of the button */
|
|
35
35
|
color?: string;
|
|
36
36
|
} & ButtonAttributes;
|
|
37
|
-
|
|
37
|
+
type ButtonStyleProps = {
|
|
38
38
|
/** Displays a button with secondary colors */
|
|
39
39
|
secondary?: boolean;
|
|
40
40
|
/** Displays a red button */
|
|
@@ -50,7 +50,7 @@ declare type ButtonStyleProps = {
|
|
|
50
50
|
/** Displays a fully rounded button with a fixed width and height */
|
|
51
51
|
circle?: boolean;
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
type Primary = {
|
|
54
54
|
/** Displays a button with secondary colors */
|
|
55
55
|
secondary?: never;
|
|
56
56
|
/** Displays a red button */
|
|
@@ -60,33 +60,33 @@ declare type Primary = {
|
|
|
60
60
|
/** Displays a yellow button */
|
|
61
61
|
caution?: never;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
type Secondary = {
|
|
64
64
|
secondary?: boolean;
|
|
65
65
|
negative?: never;
|
|
66
66
|
positive?: never;
|
|
67
67
|
caution?: never;
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
type Negative = {
|
|
70
70
|
negative?: boolean;
|
|
71
71
|
secondary?: never;
|
|
72
72
|
positive?: never;
|
|
73
73
|
caution?: never;
|
|
74
74
|
};
|
|
75
|
-
|
|
75
|
+
type Positive = {
|
|
76
76
|
positive?: boolean;
|
|
77
77
|
negative?: never;
|
|
78
78
|
caution?: never;
|
|
79
79
|
secondary?: never;
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
type Caution = {
|
|
82
82
|
caution?: boolean;
|
|
83
83
|
positive?: never;
|
|
84
84
|
negative?: never;
|
|
85
85
|
secondary?: never;
|
|
86
86
|
};
|
|
87
|
-
export
|
|
88
|
-
export
|
|
89
|
-
export
|
|
87
|
+
export type ButtonStyles = Primary | Secondary | Negative | Positive | Caution;
|
|
88
|
+
export type BasicButtonProps = ButtonBaseProps & ButtonStyleProps;
|
|
89
|
+
export type DropdownProps = {
|
|
90
90
|
dropdown?: false;
|
|
91
91
|
options?: never;
|
|
92
92
|
direction?: never;
|
|
@@ -104,13 +104,13 @@ export declare type DropdownProps = {
|
|
|
104
104
|
/** The function to be called when the options are closed */
|
|
105
105
|
afterHide?: () => void;
|
|
106
106
|
};
|
|
107
|
-
export
|
|
107
|
+
export type ButtonDropdownProps = {
|
|
108
108
|
options: OptionItem[];
|
|
109
109
|
direction?: 'top' | 'bottom';
|
|
110
110
|
afterShow?: () => void;
|
|
111
111
|
afterHide?: () => void;
|
|
112
112
|
} & BasicButtonProps;
|
|
113
|
-
export
|
|
113
|
+
export type ButtonComponentProps = {
|
|
114
114
|
/** Sets the text of the button */
|
|
115
115
|
content?: string;
|
|
116
116
|
joined?: never;
|
|
@@ -2,10 +2,10 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { BasicButtonProps, ButtonComponentProps, ButtonStyles } from './ButtonTypes';
|
|
3
3
|
import { TooltipProps } from '../Tooltip';
|
|
4
4
|
import { Margin, Width } from '../types';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
type ButtonChild = ReactElement<ButtonComponentProps | BasicButtonProps>;
|
|
6
|
+
type TooltipChild = ReactElement<TooltipProps>;
|
|
7
|
+
type GroupChild = ButtonChild | TooltipChild;
|
|
8
|
+
type GroupProps = {
|
|
9
9
|
children: GroupChild | GroupChild[];
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
size?: 'small' | 'medium' | 'large';
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CheckboxAttributes } from './FormControl';
|
|
3
3
|
import { Margin, As } from './types';
|
|
4
|
-
|
|
4
|
+
type CheckboxProps = {
|
|
5
5
|
/** Id of the input element */
|
|
6
6
|
id?: string;
|
|
7
7
|
/** Places a label element beside the checkbox. The value will set the text of the label */
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Language } from 'prism-react-renderer';
|
|
3
3
|
import { Margin } from '../types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type RestLanguage = 'rest-get' | 'rest-post' | 'rest-put' | 'rest-delete' | 'rest-options';
|
|
5
|
+
type WithChildren = {
|
|
6
6
|
/** The string to be rendered in the code snippet */
|
|
7
7
|
children: string;
|
|
8
8
|
/** The alternative to passing the code snippet in as a child */
|
|
9
9
|
code?: never;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type WithCode = {
|
|
12
12
|
code: string;
|
|
13
13
|
children?: never;
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type Children = WithChildren | WithCode;
|
|
16
|
+
type CodeProps = {
|
|
17
17
|
/** The metadata string passed in by MDX */
|
|
18
18
|
className?: string;
|
|
19
19
|
/** The syntax language to be used for the code snippet */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { KeyboardEvent, CSSProperties as CSS } from 'react';
|
|
2
|
+
import { EditorChangeType } from 'draft-js';
|
|
2
3
|
import { DraftEditorRef, InputFocusEvent, Margin, MergeField } from './types';
|
|
3
4
|
declare const DraftEditor: import("react").ForwardRefExoticComponent<{
|
|
4
5
|
/** Controlled text value of the editor */
|
|
5
6
|
value: string;
|
|
6
7
|
/** Function called after editor change with the text value and boolean indicating missing merge fields */
|
|
7
|
-
onChange?: ((text: string, hasMissing: boolean) => void) | undefined;
|
|
8
|
+
onChange?: ((text: string, hasMissing: boolean, reason: EditorChangeType | null) => void) | undefined;
|
|
8
9
|
/** Function called after the enter key is pressed */
|
|
9
10
|
onEnterKey?: ((e: KeyboardEvent) => void) | undefined;
|
|
10
11
|
/** Callback run after onFocus event */
|
|
@@ -2,8 +2,8 @@ import { ReactNode, RefObject } from 'react';
|
|
|
2
2
|
import { InputProps } from '../Input';
|
|
3
3
|
import { Margin, WidthHeight, InputFocusEvent, InputRef } from '../types';
|
|
4
4
|
import { OptionItem, DropdownItemProps } from './DropdownUtils';
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export type RestInputProps = Omit<InputProps, 'value' | 'onChange' | 'onError'>;
|
|
6
|
+
type DropdownProps<OptionType> = {
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
/** The function to be called when an option is selected */
|
|
9
9
|
onChange?: (item: OptionType | null) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ChangeEvent, MouseEvent, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { FlexPosition } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type OptionItem = {
|
|
4
4
|
id: number | string;
|
|
5
5
|
label: string;
|
|
6
6
|
header?: string;
|
|
@@ -11,7 +11,7 @@ export declare type OptionItem = {
|
|
|
11
11
|
value?: unknown;
|
|
12
12
|
[key: string]: unknown;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type DropdownItemProps<OptionType> = {
|
|
15
15
|
setValue?: (v: OptionType, event: MouseEvent) => void;
|
|
16
16
|
close?: () => void;
|
|
17
17
|
children: ReactNode;
|
|
@@ -30,16 +30,16 @@ export declare type DropdownItemProps<OptionType> = {
|
|
|
30
30
|
/** The id of the Item element */
|
|
31
31
|
id: number | string;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
export type SetEvent = MouseEvent | ChangeEvent | KeyboardEvent;
|
|
34
|
+
export type SetValueFunc = <OptionType extends OptionItem>(selection: OptionType | string | null, event?: SetEvent) => void;
|
|
35
|
+
type toggleFunc = (event?: MouseEvent) => void;
|
|
36
|
+
type StatePieces = {
|
|
37
37
|
selected: number;
|
|
38
38
|
search?: boolean;
|
|
39
39
|
filter?: boolean;
|
|
40
40
|
inputText?: string;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
type FilterState = Omit<StatePieces, 'selected'>;
|
|
43
43
|
export declare const getFilteredOptions: <OptionType extends OptionItem>(options: OptionType[], state: FilterState) => OptionType[];
|
|
44
44
|
export declare const getOptionsFromArray: <OptionType extends OptionItem>(options: OptionType[], setValue: SetValueFunc, toggle: toggleFunc, state: FilterState) => JSX.Element[];
|
|
45
45
|
export declare const getOptionsFromChildren: <OptionType extends OptionItem>(children: ReactNode, setValue: SetValueFunc, toggle: toggleFunc) => (React.ReactElement<DropdownItemProps<OptionType>, string | React.JSXElementConstructor<any>> | null)[];
|
|
File without changes
|