@mezzanine-ui/react 0.6.4
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/Accordion/Accordion.d.ts +24 -0
- package/Accordion/Accordion.js +32 -0
- package/Accordion/AccordionControlContext.d.ts +9 -0
- package/Accordion/AccordionControlContext.js +5 -0
- package/Accordion/AccordionDetails.d.ts +10 -0
- package/Accordion/AccordionDetails.js +25 -0
- package/Accordion/AccordionSummary.d.ts +19 -0
- package/Accordion/AccordionSummary.js +50 -0
- package/Accordion/index.d.ts +3 -0
- package/Accordion/index.js +3 -0
- package/Alert/Alert.d.ts +20 -0
- package/Alert/Alert.js +20 -0
- package/Alert/index.d.ts +2 -0
- package/Alert/index.js +1 -0
- package/AppBar/AppBar.d.ts +14 -0
- package/AppBar/AppBar.js +35 -0
- package/AppBar/AppBarBrand.d.ts +5 -0
- package/AppBar/AppBarBrand.js +11 -0
- package/AppBar/AppBarMain.d.ts +5 -0
- package/AppBar/AppBarMain.js +11 -0
- package/AppBar/AppBarSupport.d.ts +5 -0
- package/AppBar/AppBarSupport.js +11 -0
- package/AppBar/index.d.ts +4 -0
- package/AppBar/index.js +4 -0
- package/Badge/Badge.d.ts +19 -0
- package/Badge/Badge.js +27 -0
- package/Badge/BadgeContainer.d.ts +8 -0
- package/Badge/BadgeContainer.js +14 -0
- package/Badge/index.d.ts +2 -0
- package/Badge/index.js +2 -0
- package/Button/Button.d.ts +11 -0
- package/Button/Button.js +37 -0
- package/Button/ButtonGroup.d.ts +63 -0
- package/Button/ButtonGroup.js +35 -0
- package/Button/IconButton.d.ts +21 -0
- package/Button/IconButton.js +13 -0
- package/Button/index.d.ts +20 -0
- package/Button/index.js +8 -0
- package/Button/typings.d.ts +44 -0
- package/Calendar/Calendar.d.ts +69 -0
- package/Calendar/Calendar.js +53 -0
- package/Calendar/CalendarCell.d.ts +22 -0
- package/Calendar/CalendarCell.js +18 -0
- package/Calendar/CalendarContext.d.ts +22 -0
- package/Calendar/CalendarContext.js +27 -0
- package/Calendar/CalendarControls.d.ts +26 -0
- package/Calendar/CalendarControls.js +20 -0
- package/Calendar/CalendarDayOfWeek.d.ts +15 -0
- package/Calendar/CalendarDayOfWeek.js +18 -0
- package/Calendar/CalendarDays.d.ts +38 -0
- package/Calendar/CalendarDays.js +48 -0
- package/Calendar/CalendarMonths.d.ts +42 -0
- package/Calendar/CalendarMonths.js +30 -0
- package/Calendar/CalendarWeeks.d.ts +41 -0
- package/Calendar/CalendarWeeks.js +54 -0
- package/Calendar/CalendarYears.d.ts +40 -0
- package/Calendar/CalendarYears.js +34 -0
- package/Calendar/index.d.ts +12 -0
- package/Calendar/index.js +12 -0
- package/Calendar/useCalendarControlModifiers.d.ts +7 -0
- package/Calendar/useCalendarControlModifiers.js +26 -0
- package/Calendar/useCalendarControls.d.ts +13 -0
- package/Calendar/useCalendarControls.js +34 -0
- package/Calendar/useCalendarModeStack.d.ts +6 -0
- package/Calendar/useCalendarModeStack.js +15 -0
- package/Card/Card.d.ts +51 -0
- package/Card/Card.js +20 -0
- package/Card/CardActions.d.ts +34 -0
- package/Card/CardActions.js +16 -0
- package/Card/index.d.ts +2 -0
- package/Card/index.js +2 -0
- package/Checkbox/CheckAll.d.ts +13 -0
- package/Checkbox/CheckAll.js +36 -0
- package/Checkbox/Checkbox.d.ts +46 -0
- package/Checkbox/Checkbox.js +33 -0
- package/Checkbox/CheckboxGroup.d.ts +47 -0
- package/Checkbox/CheckboxGroup.js +36 -0
- package/Checkbox/CheckboxGroupContext.d.ts +9 -0
- package/Checkbox/CheckboxGroupContext.js +5 -0
- package/Checkbox/index.d.ts +4 -0
- package/Checkbox/index.js +3 -0
- package/ConfirmActions/ConfirmActions.d.ts +45 -0
- package/ConfirmActions/ConfirmActions.js +16 -0
- package/ConfirmActions/index.d.ts +1 -0
- package/ConfirmActions/index.js +1 -0
- package/DatePicker/DatePicker.d.ts +32 -0
- package/DatePicker/DatePicker.js +135 -0
- package/DatePicker/DatePickerCalendar.d.ts +32 -0
- package/DatePicker/DatePickerCalendar.js +61 -0
- package/DatePicker/index.d.ts +2 -0
- package/DatePicker/index.js +2 -0
- package/DateRangePicker/DateRangePicker.d.ts +38 -0
- package/DateRangePicker/DateRangePicker.js +187 -0
- package/DateRangePicker/DateRangePickerCalendar.d.ts +26 -0
- package/DateRangePicker/DateRangePickerCalendar.js +98 -0
- package/DateRangePicker/index.d.ts +4 -0
- package/DateRangePicker/index.js +4 -0
- package/DateRangePicker/useDateRangeCalendarControls.d.ts +15 -0
- package/DateRangePicker/useDateRangeCalendarControls.js +93 -0
- package/DateRangePicker/useDateRangePickerValue.d.ts +23 -0
- package/DateRangePicker/useDateRangePickerValue.js +87 -0
- package/DateTimePicker/DateTimePicker.d.ts +28 -0
- package/DateTimePicker/DateTimePicker.js +122 -0
- package/DateTimePicker/DateTimePickerPanel.d.ts +29 -0
- package/DateTimePicker/DateTimePickerPanel.js +51 -0
- package/DateTimePicker/index.d.ts +2 -0
- package/DateTimePicker/index.js +2 -0
- package/Drawer/Drawer.d.ts +18 -0
- package/Drawer/Drawer.js +34 -0
- package/Drawer/index.d.ts +2 -0
- package/Drawer/index.js +1 -0
- package/Dropdown/Dropdown.d.ts +25 -0
- package/Dropdown/Dropdown.js +60 -0
- package/Dropdown/index.d.ts +1 -0
- package/Dropdown/index.js +1 -0
- package/Empty/Empty.d.ts +18 -0
- package/Empty/Empty.js +16 -0
- package/Empty/index.d.ts +1 -0
- package/Empty/index.js +1 -0
- package/Form/FormControlContext.d.ts +9 -0
- package/Form/FormControlContext.js +5 -0
- package/Form/FormField.d.ts +27 -0
- package/Form/FormField.js +24 -0
- package/Form/FormLabel.d.ts +11 -0
- package/Form/FormLabel.js +17 -0
- package/Form/FormMessage.d.ts +8 -0
- package/Form/FormMessage.js +18 -0
- package/Form/index.d.ts +5 -0
- package/Form/index.js +4 -0
- package/Form/typings.d.ts +4 -0
- package/Form/useAutoCompleteValueControl.d.ts +23 -0
- package/Form/useAutoCompleteValueControl.js +58 -0
- package/Form/useCheckboxControlValue.d.ts +11 -0
- package/Form/useCheckboxControlValue.js +29 -0
- package/Form/useControlValueState.d.ts +7 -0
- package/Form/useControlValueState.js +15 -0
- package/Form/useCustomControlValue.d.ts +5 -0
- package/Form/useCustomControlValue.js +18 -0
- package/Form/useInputControlValue.d.ts +7 -0
- package/Form/useInputControlValue.js +24 -0
- package/Form/useInputWithClearControlValue.d.ts +6 -0
- package/Form/useInputWithClearControlValue.js +33 -0
- package/Form/useRadioControlValue.d.ts +11 -0
- package/Form/useRadioControlValue.js +24 -0
- package/Form/useSelectValueControl.d.ts +16 -0
- package/Form/useSelectValueControl.js +59 -0
- package/Form/useSwitchControlValue.d.ts +7 -0
- package/Form/useSwitchControlValue.js +24 -0
- package/Icon/Icon.d.ts +24 -0
- package/Icon/Icon.js +23 -0
- package/Icon/index.d.ts +3 -0
- package/Icon/index.js +1 -0
- package/Input/Input.d.ts +50 -0
- package/Input/Input.js +28 -0
- package/Input/index.d.ts +2 -0
- package/Input/index.js +1 -0
- package/LICENSE +21 -0
- package/Loading/Loading.d.ts +34 -0
- package/Loading/Loading.js +28 -0
- package/Loading/index.d.ts +1 -0
- package/Loading/index.js +1 -0
- package/Menu/Menu.d.ts +29 -0
- package/Menu/Menu.js +22 -0
- package/Menu/MenuDivider.d.ts +8 -0
- package/Menu/MenuDivider.js +14 -0
- package/Menu/MenuItem.d.ts +24 -0
- package/Menu/MenuItem.js +26 -0
- package/Menu/MenuItemGroup.d.ts +13 -0
- package/Menu/MenuItemGroup.js +15 -0
- package/Menu/index.d.ts +5 -0
- package/Menu/index.js +4 -0
- package/Message/Message.d.ts +33 -0
- package/Message/Message.js +59 -0
- package/Message/index.d.ts +2 -0
- package/Message/index.js +1 -0
- package/Modal/Modal.d.ts +42 -0
- package/Modal/Modal.js +75 -0
- package/Modal/ModalActions.d.ts +10 -0
- package/Modal/ModalActions.js +18 -0
- package/Modal/ModalBody.d.ts +8 -0
- package/Modal/ModalBody.js +14 -0
- package/Modal/ModalControl.d.ts +7 -0
- package/Modal/ModalControl.js +8 -0
- package/Modal/ModalFooter.d.ts +8 -0
- package/Modal/ModalFooter.js +14 -0
- package/Modal/ModalHeader.d.ts +20 -0
- package/Modal/ModalHeader.js +20 -0
- package/Modal/index.d.ts +6 -0
- package/Modal/index.js +5 -0
- package/Modal/useIsTopModal.d.ts +1 -0
- package/Modal/useIsTopModal.js +22 -0
- package/Navigation/Navigation.d.ts +29 -0
- package/Navigation/Navigation.js +48 -0
- package/Navigation/NavigationContext.d.ts +6 -0
- package/Navigation/NavigationContext.js +7 -0
- package/Navigation/NavigationItem.d.ts +31 -0
- package/Navigation/NavigationItem.js +22 -0
- package/Navigation/NavigationSubMenu.d.ts +17 -0
- package/Navigation/NavigationSubMenu.js +65 -0
- package/Navigation/index.d.ts +4 -0
- package/Navigation/index.js +4 -0
- package/Notification/Notification.d.ts +54 -0
- package/Notification/Notification.js +78 -0
- package/Notification/index.d.ts +2 -0
- package/Notification/index.js +1 -0
- package/Notifier/NotifierManager.d.ts +17 -0
- package/Notifier/NotifierManager.js +31 -0
- package/Notifier/createNotifier.d.ts +21 -0
- package/Notifier/createNotifier.js +67 -0
- package/Notifier/index.d.ts +2 -0
- package/Notifier/index.js +1 -0
- package/Notifier/typings.d.ts +28 -0
- package/Overlay/Overlay.d.ts +43 -0
- package/Overlay/Overlay.js +31 -0
- package/Overlay/index.d.ts +1 -0
- package/Overlay/index.js +1 -0
- package/PageFooter/PageFooter.d.ts +15 -0
- package/PageFooter/PageFooter.js +13 -0
- package/PageFooter/index.d.ts +1 -0
- package/PageFooter/index.js +1 -0
- package/Pagination/Pagination.d.ts +78 -0
- package/Pagination/Pagination.js +29 -0
- package/Pagination/PaginationItem.d.ts +27 -0
- package/Pagination/PaginationItem.js +25 -0
- package/Pagination/PaginationJumper.d.ts +38 -0
- package/Pagination/PaginationJumper.js +52 -0
- package/Pagination/index.d.ts +5 -0
- package/Pagination/index.js +4 -0
- package/Pagination/usePagination.d.ts +16 -0
- package/Pagination/usePagination.js +78 -0
- package/Picker/PickerTrigger.d.ts +40 -0
- package/Picker/PickerTrigger.js +15 -0
- package/Picker/RangePickerTrigger.d.ts +64 -0
- package/Picker/RangePickerTrigger.js +19 -0
- package/Picker/index.d.ts +7 -0
- package/Picker/index.js +7 -0
- package/Picker/usePickerDocumentEventClose.d.ts +10 -0
- package/Picker/usePickerDocumentEventClose.js +27 -0
- package/Picker/usePickerInputValue.d.ts +12 -0
- package/Picker/usePickerInputValue.js +24 -0
- package/Picker/usePickerValue.d.ts +21 -0
- package/Picker/usePickerValue.js +58 -0
- package/Picker/useRangePickerValue.d.ts +21 -0
- package/Picker/useRangePickerValue.js +94 -0
- package/Picker/useTabKeyClose.d.ts +2 -0
- package/Picker/useTabKeyClose.js +12 -0
- package/Popconfirm/Popconfirm.d.ts +16 -0
- package/Popconfirm/Popconfirm.js +15 -0
- package/Popconfirm/index.d.ts +1 -0
- package/Popconfirm/index.js +1 -0
- package/Popover/Popover.d.ts +23 -0
- package/Popover/Popover.js +45 -0
- package/Popover/index.d.ts +1 -0
- package/Popover/index.js +1 -0
- package/Popper/Popper.d.ts +32 -0
- package/Popper/Popper.js +30 -0
- package/Popper/index.d.ts +1 -0
- package/Popper/index.js +1 -0
- package/Portal/Portal.d.ts +20 -0
- package/Portal/Portal.js +22 -0
- package/Portal/index.d.ts +1 -0
- package/Portal/index.js +1 -0
- package/Progress/Progress.d.ts +59 -0
- package/Progress/Progress.js +32 -0
- package/Progress/index.d.ts +2 -0
- package/Progress/index.js +1 -0
- package/README.md +1 -0
- package/Radio/Radio.d.ts +41 -0
- package/Radio/Radio.js +31 -0
- package/Radio/RadioGroup.d.ts +47 -0
- package/Radio/RadioGroup.js +29 -0
- package/Radio/RadioGroupContext.d.ts +9 -0
- package/Radio/RadioGroupContext.js +5 -0
- package/Radio/index.d.ts +3 -0
- package/Radio/index.js +2 -0
- package/Select/AutoComplete.d.ts +75 -0
- package/Select/AutoComplete.js +108 -0
- package/Select/Option.d.ts +19 -0
- package/Select/Option.js +32 -0
- package/Select/Select.d.ts +57 -0
- package/Select/Select.js +145 -0
- package/Select/SelectControlContext.d.ts +3 -0
- package/Select/SelectControlContext.js +5 -0
- package/Select/SelectTrigger.d.ts +54 -0
- package/Select/SelectTrigger.js +27 -0
- package/Select/TreeSelect.d.ts +68 -0
- package/Select/TreeSelect.js +198 -0
- package/Select/index.d.ts +8 -0
- package/Select/index.js +7 -0
- package/Select/typings.d.ts +11 -0
- package/Skeleton/Skeleton.d.ts +22 -0
- package/Skeleton/Skeleton.js +14 -0
- package/Skeleton/index.d.ts +1 -0
- package/Skeleton/index.js +1 -0
- package/Slider/Slider.d.ts +51 -0
- package/Slider/Slider.js +172 -0
- package/Slider/index.d.ts +3 -0
- package/Slider/index.js +2 -0
- package/Slider/useSlider.d.ts +31 -0
- package/Slider/useSlider.js +104 -0
- package/Stepper/Step.d.ts +41 -0
- package/Stepper/Step.js +19 -0
- package/Stepper/Stepper.d.ts +19 -0
- package/Stepper/Stepper.js +33 -0
- package/Stepper/index.d.ts +2 -0
- package/Stepper/index.js +2 -0
- package/Switch/Switch.d.ts +43 -0
- package/Switch/Switch.js +29 -0
- package/Switch/index.d.ts +2 -0
- package/Switch/index.js +1 -0
- package/Table/Table.d.ts +79 -0
- package/Table/Table.js +111 -0
- package/Table/TableBody.d.ts +10 -0
- package/Table/TableBody.js +31 -0
- package/Table/TableBodyRow.d.ts +11 -0
- package/Table/TableBodyRow.js +63 -0
- package/Table/TableCell.d.ts +20 -0
- package/Table/TableCell.js +23 -0
- package/Table/TableContext.d.ts +46 -0
- package/Table/TableContext.js +7 -0
- package/Table/TableHeader.d.ts +3 -0
- package/Table/TableHeader.js +47 -0
- package/Table/editable/TableEditRenderWrapper.d.ts +8 -0
- package/Table/editable/TableEditRenderWrapper.js +15 -0
- package/Table/expandable/TableExpandable.d.ts +24 -0
- package/Table/expandable/TableExpandable.js +15 -0
- package/Table/index.d.ts +4 -0
- package/Table/index.js +3 -0
- package/Table/pagination/TablePagination.d.ts +10 -0
- package/Table/pagination/TablePagination.js +27 -0
- package/Table/pagination/useTablePagination.d.ts +16 -0
- package/Table/pagination/useTablePagination.js +49 -0
- package/Table/refresh/TableRefresh.d.ts +10 -0
- package/Table/refresh/TableRefresh.js +23 -0
- package/Table/rowSelection/TableRowSelection.d.ts +19 -0
- package/Table/rowSelection/TableRowSelection.js +86 -0
- package/Table/rowSelection/useTableRowSelection.d.ts +6 -0
- package/Table/rowSelection/useTableRowSelection.js +53 -0
- package/Table/sorting/TableSortingIcon.d.ts +11 -0
- package/Table/sorting/TableSortingIcon.js +28 -0
- package/Table/sorting/useTableSorting.d.ts +10 -0
- package/Table/sorting/useTableSorting.js +90 -0
- package/Table/useTableFetchMore.d.ts +10 -0
- package/Table/useTableFetchMore.js +50 -0
- package/Table/useTableLoading.d.ts +5 -0
- package/Table/useTableLoading.js +19 -0
- package/Table/useTableScroll.d.ts +272 -0
- package/Table/useTableScroll.js +170 -0
- package/Tabs/Tab.d.ts +19 -0
- package/Tabs/Tab.js +16 -0
- package/Tabs/TabPane.d.ts +14 -0
- package/Tabs/TabPane.js +18 -0
- package/Tabs/Tabs.d.ts +39 -0
- package/Tabs/Tabs.js +49 -0
- package/Tabs/index.d.ts +3 -0
- package/Tabs/index.js +3 -0
- package/Tabs/useTabsOverflow.d.ts +8 -0
- package/Tabs/useTabsOverflow.js +58 -0
- package/Tag/Tag.d.ts +29 -0
- package/Tag/Tag.js +23 -0
- package/Tag/index.d.ts +2 -0
- package/Tag/index.js +1 -0
- package/TextField/TextField.d.ts +54 -0
- package/TextField/TextField.js +39 -0
- package/TextField/index.d.ts +2 -0
- package/TextField/index.js +1 -0
- package/TextField/useTextFieldControl.d.ts +10 -0
- package/TextField/useTextFieldControl.js +15 -0
- package/Textarea/Textarea.d.ts +58 -0
- package/Textarea/Textarea.js +33 -0
- package/Textarea/index.d.ts +2 -0
- package/Textarea/index.js +1 -0
- package/TimePanel/TimePanel.d.ts +66 -0
- package/TimePanel/TimePanel.js +67 -0
- package/TimePanel/TimePanelAction.d.ts +18 -0
- package/TimePanel/TimePanelAction.js +15 -0
- package/TimePanel/TimePanelColumn.d.ts +37 -0
- package/TimePanel/TimePanelColumn.js +39 -0
- package/TimePanel/index.d.ts +3 -0
- package/TimePanel/index.js +3 -0
- package/TimePicker/TimePicker.d.ts +24 -0
- package/TimePicker/TimePicker.js +114 -0
- package/TimePicker/TimePickerPanel.d.ts +24 -0
- package/TimePicker/TimePickerPanel.js +14 -0
- package/TimePicker/index.d.ts +2 -0
- package/TimePicker/index.js +2 -0
- package/Tooltip/Tooltip.d.ts +25 -0
- package/Tooltip/Tooltip.js +37 -0
- package/Tooltip/index.d.ts +1 -0
- package/Tooltip/index.js +1 -0
- package/Tooltip/useDelayMouseEnterLeave.d.ts +12 -0
- package/Tooltip/useDelayMouseEnterLeave.js +41 -0
- package/Transition/Collapse.d.ts +15 -0
- package/Transition/Collapse.js +107 -0
- package/Transition/Fade.d.ts +8 -0
- package/Transition/Fade.js +84 -0
- package/Transition/Grow.d.ts +13 -0
- package/Transition/Grow.js +112 -0
- package/Transition/SlideFade.d.ts +15 -0
- package/Transition/SlideFade.js +93 -0
- package/Transition/Transition.d.ts +98 -0
- package/Transition/Transition.js +27 -0
- package/Transition/Zoom.d.ts +8 -0
- package/Transition/Zoom.js +84 -0
- package/Transition/getAutoSizeDuration.d.ts +1 -0
- package/Transition/getAutoSizeDuration.js +10 -0
- package/Transition/getTransitionStyleProps.d.ts +16 -0
- package/Transition/getTransitionStyleProps.js +25 -0
- package/Transition/index.d.ts +6 -0
- package/Transition/index.js +6 -0
- package/Transition/reflow.d.ts +4 -0
- package/Transition/reflow.js +9 -0
- package/Transition/useAutoTransitionDuration.d.ts +6 -0
- package/Transition/useAutoTransitionDuration.js +15 -0
- package/Transition/useSetNodeTransition.d.ts +7 -0
- package/Transition/useSetNodeTransition.js +35 -0
- package/Tree/Tree.d.ts +70 -0
- package/Tree/Tree.js +131 -0
- package/Tree/TreeNode.d.ts +41 -0
- package/Tree/TreeNode.js +41 -0
- package/Tree/TreeNodeList.d.ts +25 -0
- package/Tree/TreeNodeList.js +29 -0
- package/Tree/getTreeNodeEntities.d.ts +11 -0
- package/Tree/getTreeNodeEntities.js +86 -0
- package/Tree/index.d.ts +8 -0
- package/Tree/index.js +7 -0
- package/Tree/toggleValue.d.ts +4 -0
- package/Tree/toggleValue.js +19 -0
- package/Tree/traverseTree.d.ts +2 -0
- package/Tree/traverseTree.js +11 -0
- package/Tree/typings.d.ts +16 -0
- package/Tree/useTreeExpandedValue.d.ts +15 -0
- package/Tree/useTreeExpandedValue.js +32 -0
- package/Typography/Typography.d.ts +43 -0
- package/Typography/Typography.js +38 -0
- package/Typography/index.d.ts +11 -0
- package/Typography/index.js +2 -0
- package/Upload/UploadButton.d.ts +10 -0
- package/Upload/UploadButton.js +23 -0
- package/Upload/UploadInput.d.ts +21 -0
- package/Upload/UploadInput.js +22 -0
- package/Upload/UploadResult.d.ts +16 -0
- package/Upload/UploadResult.js +30 -0
- package/Upload/index.d.ts +3 -0
- package/Upload/index.js +2 -0
- package/_internal/InputCheck/InputCheck.d.ts +33 -0
- package/_internal/InputCheck/InputCheck.js +19 -0
- package/_internal/InputCheck/InputCheckGroup.d.ts +18 -0
- package/_internal/InputCheck/InputCheckGroup.js +14 -0
- package/_internal/InputCheck/index.d.ts +3 -0
- package/_internal/InputCheck/index.js +2 -0
- package/_internal/InputTriggerPopper/InputTriggerPopper.d.ts +18 -0
- package/_internal/InputTriggerPopper/InputTriggerPopper.js +44 -0
- package/_internal/InputTriggerPopper/index.d.ts +1 -0
- package/_internal/InputTriggerPopper/index.js +1 -0
- package/hooks/useClickAway.d.ts +5 -0
- package/hooks/useClickAway.js +23 -0
- package/hooks/useComposeRefs.d.ts +2 -0
- package/hooks/useComposeRefs.js +8 -0
- package/hooks/useDocumentEscapeKeyDown.d.ts +3 -0
- package/hooks/useDocumentEscapeKeyDown.js +20 -0
- package/hooks/useDocumentEvents.d.ts +5 -0
- package/hooks/useDocumentEvents.js +21 -0
- package/hooks/useDocumentTabKeyDown.d.ts +3 -0
- package/hooks/useDocumentTabKeyDown.js +19 -0
- package/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/hooks/useLastCallback.d.ts +1 -0
- package/hooks/useLastCallback.js +11 -0
- package/hooks/useLastValue.d.ts +3 -0
- package/hooks/useLastValue.js +9 -0
- package/hooks/usePreviousValue.d.ts +1 -0
- package/hooks/usePreviousValue.js +11 -0
- package/hooks/useWindowWidth.d.ts +1 -0
- package/hooks/useWindowWidth.js +15 -0
- package/index.d.ts +100 -0
- package/index.js +148 -0
- package/package.json +61 -0
- package/utils/composeRefs.d.ts +21 -0
- package/utils/composeRefs.js +32 -0
- package/utils/cx.d.ts +1 -0
- package/utils/getElement.d.ts +3 -0
- package/utils/getElement.js +14 -0
- package/utils/jsx-types.d.ts +11 -0
- package/utils/rename-types.d.ts +5 -0
- package/utils/scroll-lock.d.ts +2 -0
- package/utils/scroll-lock.js +18 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function usePreviousValue<T>(value: T): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useWindowWidth(): number | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
function useWindowWidth() {
|
|
4
|
+
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
|
|
5
|
+
function handleResize() {
|
|
6
|
+
setWindowWidth(window.innerWidth);
|
|
7
|
+
}
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
window.addEventListener('resize', handleResize);
|
|
10
|
+
return () => window.removeEventListener('resize', handleResize);
|
|
11
|
+
}, []);
|
|
12
|
+
return windowWidth;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { useWindowWidth };
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export * from './utils/composeRefs';
|
|
2
|
+
export * from './utils/cx';
|
|
3
|
+
export * from './utils/getElement';
|
|
4
|
+
export * from './utils/jsx-types';
|
|
5
|
+
export * from './utils/rename-types';
|
|
6
|
+
export * from './utils/scroll-lock';
|
|
7
|
+
export * from './hooks/useClickAway';
|
|
8
|
+
export * from './hooks/useComposeRefs';
|
|
9
|
+
export * from './hooks/useDocumentEscapeKeyDown';
|
|
10
|
+
export * from './hooks/useDocumentEvents';
|
|
11
|
+
export * from './hooks/useIsomorphicLayoutEffect';
|
|
12
|
+
export * from './hooks/useLastCallback';
|
|
13
|
+
export * from './hooks/useLastValue';
|
|
14
|
+
export * from './hooks/usePreviousValue';
|
|
15
|
+
export * from './hooks/useDocumentTabKeyDown';
|
|
16
|
+
export * from './hooks/useWindowWidth';
|
|
17
|
+
export * from './Tooltip/useDelayMouseEnterLeave';
|
|
18
|
+
/**
|
|
19
|
+
* Form hooks
|
|
20
|
+
*/
|
|
21
|
+
export * from './Form/useAutoCompleteValueControl';
|
|
22
|
+
export * from './Form/useCheckboxControlValue';
|
|
23
|
+
export * from './Form/useControlValueState';
|
|
24
|
+
export * from './Form/useCustomControlValue';
|
|
25
|
+
export * from './Form/useInputControlValue';
|
|
26
|
+
export * from './Form/useInputWithClearControlValue';
|
|
27
|
+
export * from './Form/useRadioControlValue';
|
|
28
|
+
export * from './Form/useSelectValueControl';
|
|
29
|
+
export * from './Form/useSwitchControlValue';
|
|
30
|
+
/**
|
|
31
|
+
* General
|
|
32
|
+
*/
|
|
33
|
+
export { ButtonColor, ButtonComponent, ButtonSize, ButtonVariant, ButtonProps, ButtonPropsBase, default as Button, IconButtonProps, IconButton, ButtonGroupChild, ButtonGroupOrientation, ButtonGroupSpacing, ButtonGroupProps, ButtonGroup, } from './Button';
|
|
34
|
+
export { IconColor, IconProps, default as Icon, } from './Icon';
|
|
35
|
+
export { TypographyAlign, TypographyColor, TypographyComponent, TypographyDisplay, TypographyVariant, TypographyProps, default as Typography, } from './Typography';
|
|
36
|
+
/**
|
|
37
|
+
* Navigation
|
|
38
|
+
*/
|
|
39
|
+
export { MenuSize, MenuDividerProps, MenuDivider, MenuItemProps, MenuItem, MenuItemGroupProps, MenuItemGroup, MenuProps, default as Menu, } from './Menu';
|
|
40
|
+
export { TabProps, Tab, TabPaneProps, TabPane, TabsChild, TabsProps, default as Tabs, } from './Tabs';
|
|
41
|
+
export { DrawerPlacement, DrawerProps, default as Drawer, } from './Drawer';
|
|
42
|
+
export { DropdownProps, default as Dropdown, } from './Dropdown';
|
|
43
|
+
export { NavigationItem, NavigationItemProps, NavigationSubMenu, NavigationSubMenuProps, NavigationSubMenuChild, NavigationSubMenuChildren, NavigationChild, NavigationChildren, NavigationProps, default as Navigation, } from './Navigation';
|
|
44
|
+
export { AppBarChild, AppBarChildren, AppBarBrand, AppBarBrandProps, AppBarMain, AppBarMainProps, AppBarSupport, AppBarSupportProps, default as AppBar, } from './AppBar';
|
|
45
|
+
export { PageFooterProps, default as PageFooter, } from './PageFooter';
|
|
46
|
+
export { StepProps, default as Step, } from './Stepper';
|
|
47
|
+
export { StepperProps, default as Stepper, } from './Stepper';
|
|
48
|
+
/**
|
|
49
|
+
* Data Display
|
|
50
|
+
*/
|
|
51
|
+
export { AccordionProps, AccordionSummaryProps, AccordionSummary, AccordionDetailsProps, AccordionDetails, default as Accordion, } from './Accordion';
|
|
52
|
+
export { BadgeContainerProps, BadgeContainer, BadgeProps, default as Badge, } from './Badge';
|
|
53
|
+
export { CardProps, CardActionsProps, CardActions, default as Card, } from './Card';
|
|
54
|
+
export { EmptyProps, default as Empty, } from './Empty';
|
|
55
|
+
export { TableProps, TableRefreshProps, TableRefresh, default as Table, } from './Table';
|
|
56
|
+
export { TagSize, TagProps, default as Tag, } from './Tag';
|
|
57
|
+
export { usePagination, PaginationItemProps, PaginationItemType, PaginationItem, PaginationJumperProps, PaginationJumper, PaginationProps, default as Pagination, } from './Pagination';
|
|
58
|
+
export { TreeNodeProp, TreeNodeData, TreeNodeEntity, TreeNodeEntities, TreeNodeRefsShape, TreeNodeRefs, TreeExpandControl, uniqueArray, toggleValue, toggleValueWithStatusControl, traverseTree, UseTreeExpandedValueProps, useTreeExpandedValue, GetTreeNodeEntitiesProps, getTreeNodeEntities, TreeNodeElementProps, TreeNodeProps, TreeNode, TreeNodeListElementProps, TreeNodeListProps, TreeNodeList, TreeProps, default as Tree, } from './Tree';
|
|
59
|
+
/**
|
|
60
|
+
* Data Entry
|
|
61
|
+
*/
|
|
62
|
+
export { CheckboxSize, CheckboxGroupOrientation, CheckboxGroupOption, CheckboxGroupProps, CheckboxGroup, CheckAllProps, CheckAll, CheckboxProps, default as Checkbox, } from './Checkbox';
|
|
63
|
+
export { FormControl, FormControlContext, FormFieldProps, FormField, FormLabelProps, FormLabel, FormMessageProps, FormMessage, } from './Form';
|
|
64
|
+
export { InputSize, InputProps, default as Input, } from './Input';
|
|
65
|
+
export { RadioSize, RadioGroupOrientation, RadioGroupOption, RadioGroupProps, RadioGroup, RadioProps, default as Radio, } from './Radio';
|
|
66
|
+
export { AutoComplete, AutoCompleteProps, SelectValue, TreeSelectOption, SelectControl, SelectControlContext, SelectTriggerInputProps, SelectTriggerProps, SelectTrigger, SelectProps, OptionProps, Option, OptionGroupProps, OptionGroup, TreeSelect, TreeSelectProps, default as Select, } from './Select';
|
|
67
|
+
export { SwitchSize, SwitchProps, default as Switch, } from './Switch';
|
|
68
|
+
export { TextareaSize, TextareaProps, default as Textarea, } from './Textarea';
|
|
69
|
+
export { TextFieldSize, TextFieldProps, default as TextField, } from './TextField';
|
|
70
|
+
export { UploadButtonProps, UploadButton, UploadResultProps, UploadResultSize, UploadResultStatus, UploadResult, } from './Upload';
|
|
71
|
+
export { useTabKeyClose, UsePickerDocumentEventCloseProps, usePickerDocumentEventClose, UsePickerValueProps, usePickerValue, UseRangePickerValueProps, useRangePickerValue, PickerTriggerProps, PickerTrigger, RangePickerTriggerProps, RangePickerTrigger, } from './Picker';
|
|
72
|
+
export { DatePickerCalendarProps, DatePickerCalendar, DatePickerProps, default as DatePicker, } from './DatePicker';
|
|
73
|
+
export { useDateRangeCalendarControls, UseDateRangePickerValueProps, useDateRangePickerValue, DateRangePickerCalendarProps, DateRangePickerCalendar, DateRangePickerProps, default as DateRangePicker, } from './DateRangePicker';
|
|
74
|
+
export { TimePickerPanelProps, TimePickerPanel, TimePickerProps, default as TimePicker, } from './TimePicker';
|
|
75
|
+
export { DateTimePickerPanelProps, DateTimePickerPanel, DateTimePickerProps, default as DateTimePicker, } from './DateTimePicker';
|
|
76
|
+
export { SingleSliderValue, RangeSliderValue, SliderValue, SliderRect, UseSliderCommonProps, UseSingleSliderProps, UseRangeSliderProps, UseSliderProps, UseSliderResult, useSlider, SliderBaseProps, SingleSliderProps, RangeSliderProps, SliderComponentProps, SliderProps, default as Slider, } from './Slider';
|
|
77
|
+
/**
|
|
78
|
+
* Feedback
|
|
79
|
+
*/
|
|
80
|
+
export { AlertSeverity, AlertProps, default as Alert, } from './Alert';
|
|
81
|
+
export { ConfirmActionsProps, default as ConfirmActions, } from './ConfirmActions';
|
|
82
|
+
export { LoadingProps, default as Loading, } from './Loading';
|
|
83
|
+
export { MessageData, MessageSeverity, default as Message, } from './Message';
|
|
84
|
+
export { ModalSeverity, ModalSize, ModalHeaderProps, ModalHeader, ModalBodyProps, ModalBody, ModalFooterProps, ModalFooter, ModalActionsProps, ModalActions, ModalProps, default as Modal, } from './Modal';
|
|
85
|
+
export { PopconfirmProps, default as Popconfirm, } from './Popconfirm';
|
|
86
|
+
export { NotificationData, NotificationSeverity, default as Notification, } from './Notification';
|
|
87
|
+
export { ProgressProps, ProgressType, ProgressStatus, ProgressTypes, ProgressStatuses, default as Progress, } from './Progress';
|
|
88
|
+
export { SkeletonProps, default as Skeleton, } from './Skeleton';
|
|
89
|
+
/**
|
|
90
|
+
* Utility
|
|
91
|
+
*/
|
|
92
|
+
export * from './Notifier';
|
|
93
|
+
export { OverlayProps, default as Overlay, } from './Overlay';
|
|
94
|
+
export { PopoverProps, default as Popover, } from './Popover';
|
|
95
|
+
export { PopperPlacement, PopperPositionStrategy, PopperController, PopperOptions, PopperProps, default as Popper, } from './Popper';
|
|
96
|
+
export { PortalProps, default as Portal, } from './Portal';
|
|
97
|
+
export { TransitionProps, default as Transition, CollapseProps, Collapse, FadeProps, Fade, GrowProps, Grow, SlideFadeDirection, SlideFadeProps, SlideFade, ZoomProps, Zoom, } from './Transition';
|
|
98
|
+
export { TooltipProps, default as Tooltip, } from './Tooltip';
|
|
99
|
+
export { CalendarControlModifier, UseCalendarControlModifiersResult, useCalendarControlModifiers, useCalendarModeStack, useCalendarControls, CalendarConfigs, CalendarConfigProviderProps, CalendarContext, useCalendarContext, CalendarConfigProvider, CalendarYearsProps, CalendarYears, CalendarWeeksProps, CalendarWeeks, CalendarMonthsProps, CalendarMonths, CalendarDaysProps, CalendarDays, CalendarDayOfWeekProps, CalendarDayOfWeek, CalendarControlsProps, CalendarControls, CalendarCellProps, CalendarCell, CalendarProps, default as Calendar, } from './Calendar';
|
|
100
|
+
export { TimePanelActionProps, TimePanelAction, TimePanelColumnProps, TimePanelColumn, TimePanelProps, default as TimePanel, } from './TimePanel';
|
package/index.js
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
export { composeRefs } from './utils/composeRefs.js';
|
|
2
|
+
export { getElement } from './utils/getElement.js';
|
|
3
|
+
export { allowBodyScroll, lockBodyScroll } from './utils/scroll-lock.js';
|
|
4
|
+
export { useClickAway } from './hooks/useClickAway.js';
|
|
5
|
+
export { useComposeRefs } from './hooks/useComposeRefs.js';
|
|
6
|
+
export { useDocumentEscapeKeyDown } from './hooks/useDocumentEscapeKeyDown.js';
|
|
7
|
+
export { useDocumentEvents } from './hooks/useDocumentEvents.js';
|
|
8
|
+
export { useIsomorphicLayoutEffect } from './hooks/useIsomorphicLayoutEffect.js';
|
|
9
|
+
export { useLastCallback } from './hooks/useLastCallback.js';
|
|
10
|
+
export { useLastValue } from './hooks/useLastValue.js';
|
|
11
|
+
export { usePreviousValue } from './hooks/usePreviousValue.js';
|
|
12
|
+
export { useDocumentTabKeyDown } from './hooks/useDocumentTabKeyDown.js';
|
|
13
|
+
export { useWindowWidth } from './hooks/useWindowWidth.js';
|
|
14
|
+
export { useDelayMouseEnterLeave } from './Tooltip/useDelayMouseEnterLeave.js';
|
|
15
|
+
export { useAutoCompleteValueControl } from './Form/useAutoCompleteValueControl.js';
|
|
16
|
+
export { useCheckboxControlValue } from './Form/useCheckboxControlValue.js';
|
|
17
|
+
export { useControlValueState } from './Form/useControlValueState.js';
|
|
18
|
+
export { useCustomControlValue } from './Form/useCustomControlValue.js';
|
|
19
|
+
export { useInputControlValue } from './Form/useInputControlValue.js';
|
|
20
|
+
export { useInputWithClearControlValue } from './Form/useInputWithClearControlValue.js';
|
|
21
|
+
export { useRadioControlValue } from './Form/useRadioControlValue.js';
|
|
22
|
+
export { useSelectValueControl } from './Form/useSelectValueControl.js';
|
|
23
|
+
export { useSwitchControlValue } from './Form/useSwitchControlValue.js';
|
|
24
|
+
export { IconButton } from './Button/index.js';
|
|
25
|
+
export { default as Typography } from './Typography/Typography.js';
|
|
26
|
+
export { default as MenuDivider } from './Menu/MenuDivider.js';
|
|
27
|
+
export { default as MenuItem } from './Menu/MenuItem.js';
|
|
28
|
+
export { default as MenuItemGroup, default as OptionGroup } from './Menu/MenuItemGroup.js';
|
|
29
|
+
export { default as Menu } from './Menu/Menu.js';
|
|
30
|
+
export { default as Tab } from './Tabs/Tab.js';
|
|
31
|
+
export { default as TabPane } from './Tabs/TabPane.js';
|
|
32
|
+
export { default as Tabs } from './Tabs/Tabs.js';
|
|
33
|
+
export { default as NavigationItem } from './Navigation/NavigationItem.js';
|
|
34
|
+
export { default as NavigationSubMenu } from './Navigation/NavigationSubMenu.js';
|
|
35
|
+
export { default as Navigation } from './Navigation/Navigation.js';
|
|
36
|
+
export { default as PageFooter } from './PageFooter/PageFooter.js';
|
|
37
|
+
export { default as Step, default as Stepper } from './Stepper/Stepper.js';
|
|
38
|
+
export { default as TableRefresh } from './Table/refresh/TableRefresh.js';
|
|
39
|
+
export { default as Table } from './Table/Table.js';
|
|
40
|
+
export { default as Tag } from './Tag/Tag.js';
|
|
41
|
+
export { default as PaginationItem } from './Pagination/PaginationItem.js';
|
|
42
|
+
export { default as PaginationJumper } from './Pagination/PaginationJumper.js';
|
|
43
|
+
export { default as Pagination } from './Pagination/Pagination.js';
|
|
44
|
+
export { default as TreeNode } from './Tree/TreeNode.js';
|
|
45
|
+
export { default as TreeNodeList } from './Tree/TreeNodeList.js';
|
|
46
|
+
export { default as Tree } from './Tree/Tree.js';
|
|
47
|
+
export { default as Input } from './Input/Input.js';
|
|
48
|
+
export { default as RadioGroup } from './Radio/RadioGroup.js';
|
|
49
|
+
export { default as Radio } from './Radio/Radio.js';
|
|
50
|
+
export { default as AutoComplete } from './Select/AutoComplete.js';
|
|
51
|
+
export { default as SelectTrigger } from './Select/SelectTrigger.js';
|
|
52
|
+
export { default as Option } from './Select/Option.js';
|
|
53
|
+
export { default as TreeSelect } from './Select/TreeSelect.js';
|
|
54
|
+
export { default as Select } from './Select/Select.js';
|
|
55
|
+
export { default as Switch } from './Switch/Switch.js';
|
|
56
|
+
export { default as Textarea } from './Textarea/Textarea.js';
|
|
57
|
+
export { default as TextField } from './TextField/TextField.js';
|
|
58
|
+
export { default as UploadButton } from './Upload/UploadButton.js';
|
|
59
|
+
export { default as UploadResult } from './Upload/UploadResult.js';
|
|
60
|
+
export { default as PickerTrigger } from './Picker/PickerTrigger.js';
|
|
61
|
+
export { default as RangePickerTrigger } from './Picker/RangePickerTrigger.js';
|
|
62
|
+
export { default as TimePickerPanel } from './TimePicker/TimePickerPanel.js';
|
|
63
|
+
export { default as TimePicker } from './TimePicker/TimePicker.js';
|
|
64
|
+
export { default as Slider } from './Slider/Slider.js';
|
|
65
|
+
export { default as Loading } from './Loading/Loading.js';
|
|
66
|
+
export { default as Message } from './Message/Message.js';
|
|
67
|
+
export { default as ModalHeader } from './Modal/ModalHeader.js';
|
|
68
|
+
export { default as ModalBody } from './Modal/ModalBody.js';
|
|
69
|
+
export { default as ModalFooter } from './Modal/ModalFooter.js';
|
|
70
|
+
export { default as ModalActions } from './Modal/ModalActions.js';
|
|
71
|
+
export { default as Modal } from './Modal/Modal.js';
|
|
72
|
+
export { default as Popconfirm } from './Popconfirm/Popconfirm.js';
|
|
73
|
+
export { default as Notification } from './Notification/Notification.js';
|
|
74
|
+
export { default as Progress } from './Progress/Progress.js';
|
|
75
|
+
export { default as Skeleton } from './Skeleton/Skeleton.js';
|
|
76
|
+
export { default as Overlay } from './Overlay/Overlay.js';
|
|
77
|
+
export { default as Popover } from './Popover/Popover.js';
|
|
78
|
+
export { default as Popper } from './Popper/Popper.js';
|
|
79
|
+
export { default as Portal } from './Portal/Portal.js';
|
|
80
|
+
export { default as Transition } from './Transition/Transition.js';
|
|
81
|
+
export { default as Collapse } from './Transition/Collapse.js';
|
|
82
|
+
export { default as Fade } from './Transition/Fade.js';
|
|
83
|
+
export { default as Grow } from './Transition/Grow.js';
|
|
84
|
+
export { default as SlideFade } from './Transition/SlideFade.js';
|
|
85
|
+
export { default as Zoom } from './Transition/Zoom.js';
|
|
86
|
+
export { default as Tooltip } from './Tooltip/Tooltip.js';
|
|
87
|
+
export { default as TimePanelAction } from './TimePanel/TimePanelAction.js';
|
|
88
|
+
export { default as TimePanelColumn } from './TimePanel/TimePanelColumn.js';
|
|
89
|
+
export { default as TimePanel } from './TimePanel/TimePanel.js';
|
|
90
|
+
export { default as Button } from './Button/Button.js';
|
|
91
|
+
export { default as ButtonGroup } from './Button/ButtonGroup.js';
|
|
92
|
+
export { default as Icon } from './Icon/Icon.js';
|
|
93
|
+
export { default as Drawer } from './Drawer/Drawer.js';
|
|
94
|
+
export { default as Dropdown } from './Dropdown/Dropdown.js';
|
|
95
|
+
export { default as AppBarBrand } from './AppBar/AppBarBrand.js';
|
|
96
|
+
export { default as AppBarMain } from './AppBar/AppBarMain.js';
|
|
97
|
+
export { default as AppBarSupport } from './AppBar/AppBarSupport.js';
|
|
98
|
+
export { default as AppBar } from './AppBar/AppBar.js';
|
|
99
|
+
export { default as AccordionSummary } from './Accordion/AccordionSummary.js';
|
|
100
|
+
export { default as AccordionDetails } from './Accordion/AccordionDetails.js';
|
|
101
|
+
export { default as Accordion } from './Accordion/Accordion.js';
|
|
102
|
+
export { default as BadgeContainer } from './Badge/BadgeContainer.js';
|
|
103
|
+
export { default as Badge } from './Badge/Badge.js';
|
|
104
|
+
export { default as CardActions } from './Card/CardActions.js';
|
|
105
|
+
export { default as Card } from './Card/Card.js';
|
|
106
|
+
export { default as Empty } from './Empty/Empty.js';
|
|
107
|
+
export { usePagination } from './Pagination/usePagination.js';
|
|
108
|
+
export { toggleValue, toggleValueWithStatusControl, uniqueArray } from './Tree/toggleValue.js';
|
|
109
|
+
export { traverseTree } from './Tree/traverseTree.js';
|
|
110
|
+
export { useTreeExpandedValue } from './Tree/useTreeExpandedValue.js';
|
|
111
|
+
export { getTreeNodeEntities } from './Tree/getTreeNodeEntities.js';
|
|
112
|
+
export { default as CheckboxGroup } from './Checkbox/CheckboxGroup.js';
|
|
113
|
+
export { default as CheckAll } from './Checkbox/CheckAll.js';
|
|
114
|
+
export { default as Checkbox } from './Checkbox/Checkbox.js';
|
|
115
|
+
export { FormControlContext } from './Form/FormControlContext.js';
|
|
116
|
+
export { default as FormField } from './Form/FormField.js';
|
|
117
|
+
export { default as FormLabel } from './Form/FormLabel.js';
|
|
118
|
+
export { default as FormMessage } from './Form/FormMessage.js';
|
|
119
|
+
export { SelectControlContext } from './Select/SelectControlContext.js';
|
|
120
|
+
export { useTabKeyClose } from './Picker/useTabKeyClose.js';
|
|
121
|
+
export { usePickerDocumentEventClose } from './Picker/usePickerDocumentEventClose.js';
|
|
122
|
+
export { usePickerValue } from './Picker/usePickerValue.js';
|
|
123
|
+
export { useRangePickerValue } from './Picker/useRangePickerValue.js';
|
|
124
|
+
export { default as DatePickerCalendar } from './DatePicker/DatePickerCalendar.js';
|
|
125
|
+
export { default as DatePicker } from './DatePicker/DatePicker.js';
|
|
126
|
+
export { useDateRangeCalendarControls } from './DateRangePicker/useDateRangeCalendarControls.js';
|
|
127
|
+
export { useDateRangePickerValue } from './DateRangePicker/useDateRangePickerValue.js';
|
|
128
|
+
export { default as DateRangePickerCalendar } from './DateRangePicker/DateRangePickerCalendar.js';
|
|
129
|
+
export { default as DateRangePicker } from './DateRangePicker/DateRangePicker.js';
|
|
130
|
+
export { default as DateTimePickerPanel } from './DateTimePicker/DateTimePickerPanel.js';
|
|
131
|
+
export { default as DateTimePicker } from './DateTimePicker/DateTimePicker.js';
|
|
132
|
+
export { useSlider } from './Slider/useSlider.js';
|
|
133
|
+
export { default as Alert } from './Alert/Alert.js';
|
|
134
|
+
export { default as ConfirmActions } from './ConfirmActions/ConfirmActions.js';
|
|
135
|
+
export { useCalendarControlModifiers } from './Calendar/useCalendarControlModifiers.js';
|
|
136
|
+
export { useCalendarModeStack } from './Calendar/useCalendarModeStack.js';
|
|
137
|
+
export { useCalendarControls } from './Calendar/useCalendarControls.js';
|
|
138
|
+
export { default as CalendarConfigProvider, CalendarContext, useCalendarContext } from './Calendar/CalendarContext.js';
|
|
139
|
+
export { default as CalendarYears } from './Calendar/CalendarYears.js';
|
|
140
|
+
export { default as CalendarWeeks } from './Calendar/CalendarWeeks.js';
|
|
141
|
+
export { default as CalendarMonths } from './Calendar/CalendarMonths.js';
|
|
142
|
+
export { default as CalendarDays } from './Calendar/CalendarDays.js';
|
|
143
|
+
export { default as CalendarDayOfWeek } from './Calendar/CalendarDayOfWeek.js';
|
|
144
|
+
export { default as CalendarControls } from './Calendar/CalendarControls.js';
|
|
145
|
+
export { default as CalendarCell } from './Calendar/CalendarCell.js';
|
|
146
|
+
export { default as Calendar } from './Calendar/Calendar.js';
|
|
147
|
+
export { default as cx } from 'clsx';
|
|
148
|
+
export { createNotifier } from './Notifier/createNotifier.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mezzanine-ui/react",
|
|
3
|
+
"version": "0.6.4",
|
|
4
|
+
"description": "React components for mezzanine-ui",
|
|
5
|
+
"author": "Mezzanine",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/Mezzanine-UI/mezzanine.git",
|
|
9
|
+
"directory": "packages/react"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"main": "index.js",
|
|
13
|
+
"module": "index.js",
|
|
14
|
+
"typings": "index.d.ts",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "jest",
|
|
21
|
+
"test:coverage": "jest --coverage",
|
|
22
|
+
"build": "node ../../scripts/build.js",
|
|
23
|
+
"build:clean": "node ../../scripts/cleanBuild.js",
|
|
24
|
+
"build-storybook": "build-storybook",
|
|
25
|
+
"storybook": "start-storybook -p 6006",
|
|
26
|
+
"deploy-storybook": "npx chromatic --project-token 894b8320410f"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"lodash": "^4.17.21",
|
|
30
|
+
"moment": "^2.29.1",
|
|
31
|
+
"react": "^17.0.1",
|
|
32
|
+
"react-dom": "^17.0.1"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@mezzanine-ui/core": "^0.6.3",
|
|
36
|
+
"@mezzanine-ui/icons": "^0.5.0",
|
|
37
|
+
"@mezzanine-ui/system": "^0.5.2",
|
|
38
|
+
"@popperjs/core": "^2.9.2",
|
|
39
|
+
"@types/react-transition-group": "4.4.1",
|
|
40
|
+
"clsx": "^1.1.1",
|
|
41
|
+
"react-popper": "^2.2.5",
|
|
42
|
+
"react-transition-group": "4.4.1",
|
|
43
|
+
"tslib": "^2.1.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@storybook/react": "^6.3.4",
|
|
47
|
+
"@testing-library/react": "^11.2.5",
|
|
48
|
+
"@testing-library/react-hooks": "^5.1.0",
|
|
49
|
+
"@types/lodash": "^4.14.168",
|
|
50
|
+
"@types/moment": "^2.13.0",
|
|
51
|
+
"@types/react": "^17.0.3",
|
|
52
|
+
"@types/react-dom": "^17.0.2",
|
|
53
|
+
"@types/react-test-renderer": "^17.0.1",
|
|
54
|
+
"chromatic": "^5.9.2",
|
|
55
|
+
"lodash": "^4.17.21",
|
|
56
|
+
"moment": "^2.29.1",
|
|
57
|
+
"react": "^17.0.1",
|
|
58
|
+
"react-dom": "^17.0.1",
|
|
59
|
+
"react-test-renderer": "^17.0.1"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
export declare type ComposableRef<T> = Ref<T> | null | undefined;
|
|
3
|
+
export declare type ComposedRef<T> = Extract<Ref<T>, (...args: any[]) => any>;
|
|
4
|
+
/**
|
|
5
|
+
* Compose all refs to single one.
|
|
6
|
+
* It's helpful if you want to use useRef in an forwardRef component.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*
|
|
10
|
+
* const Some = forwardRef((props, ref) => {
|
|
11
|
+
* const refFromHook = useRef(null);
|
|
12
|
+
* const composedRef = composeRefs([ref, refFromHook]);
|
|
13
|
+
*
|
|
14
|
+
* return (
|
|
15
|
+
* <div ref{composedRef}>
|
|
16
|
+
* ...
|
|
17
|
+
* </div>
|
|
18
|
+
* );
|
|
19
|
+
* });
|
|
20
|
+
*/
|
|
21
|
+
export declare function composeRefs<T>(refs: ComposableRef<T>[]): ComposedRef<T>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compose all refs to single one.
|
|
3
|
+
* It's helpful if you want to use useRef in an forwardRef component.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
*
|
|
7
|
+
* const Some = forwardRef((props, ref) => {
|
|
8
|
+
* const refFromHook = useRef(null);
|
|
9
|
+
* const composedRef = composeRefs([ref, refFromHook]);
|
|
10
|
+
*
|
|
11
|
+
* return (
|
|
12
|
+
* <div ref{composedRef}>
|
|
13
|
+
* ...
|
|
14
|
+
* </div>
|
|
15
|
+
* );
|
|
16
|
+
* });
|
|
17
|
+
*/
|
|
18
|
+
function composeRefs(refs) {
|
|
19
|
+
return (element) => {
|
|
20
|
+
refs.forEach((ref) => {
|
|
21
|
+
if (typeof ref === 'function') {
|
|
22
|
+
ref(element);
|
|
23
|
+
}
|
|
24
|
+
else if (ref) {
|
|
25
|
+
// eslint-disable-next-line no-param-reassign
|
|
26
|
+
ref.current = element;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { composeRefs };
|
package/utils/cx.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as cx } from 'clsx';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function getElement(elementGetter) {
|
|
2
|
+
if (elementGetter) {
|
|
3
|
+
if (elementGetter instanceof HTMLElement) {
|
|
4
|
+
return elementGetter;
|
|
5
|
+
}
|
|
6
|
+
if (typeof elementGetter === 'function') {
|
|
7
|
+
return elementGetter();
|
|
8
|
+
}
|
|
9
|
+
return elementGetter.current;
|
|
10
|
+
}
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { getElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, DetailedHTMLProps, ElementType, JSXElementConstructor, SVGProps } from 'react';
|
|
2
|
+
export declare type NativeElementTag = keyof JSX.IntrinsicElements;
|
|
3
|
+
export declare type NativeElementPropsWithoutKeyAndRef<T extends NativeElementTag> = Omit<JSX.IntrinsicElements[T], 'key' | 'ref'>;
|
|
4
|
+
export declare type NativeElement<T extends NativeElementTag> = JSX.IntrinsicElements[T] extends DetailedHTMLProps<infer _A, infer E> ? E : JSX.IntrinsicElements[T] extends SVGProps<infer E> ? E : unknown;
|
|
5
|
+
export declare type ComponentPropsWithoutKeyAndRef<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, 'key'>;
|
|
6
|
+
export declare type ComponentOverridableForwardRefComponentPropsFactory<VC extends NativeElementTag | JSXElementConstructor<any>, C extends VC, P> = Omit<Omit<ComponentPropsWithoutKeyAndRef<C>, keyof P> & P, 'component'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Override the component used to render.
|
|
9
|
+
*/
|
|
10
|
+
component?: VC;
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function lockBodyScroll() {
|
|
2
|
+
const { scrollY, } = window;
|
|
3
|
+
document.body.style.position = 'fixed';
|
|
4
|
+
document.body.style.top = `-${scrollY}px`;
|
|
5
|
+
document.body.style.overflow = 'hidden';
|
|
6
|
+
}
|
|
7
|
+
function allowBodyScroll() {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const scrollY = Number(((_b = (_a = document.body.style) === null || _a === void 0 ? void 0 : _a.top) !== null && _b !== void 0 ? _b : '0').replace(/px/gi, ''));
|
|
10
|
+
if (document.body.style.position === 'fixed') {
|
|
11
|
+
document.body.style.position = '';
|
|
12
|
+
document.body.style.top = '';
|
|
13
|
+
document.body.style.overflow = '';
|
|
14
|
+
window.scrollTo(0, (scrollY || 0) * -1);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { allowBodyScroll, lockBodyScroll };
|