@lumx/react 3.10.1-alpha.0 → 3.10.1-alpha.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/_internal/17c3ea1d.js +137 -0
- package/_internal/17c3ea1d.js.map +1 -0
- package/_internal/1da25128.js +411 -0
- package/_internal/1da25128.js.map +1 -0
- package/_internal/230173a8.js +13 -0
- package/_internal/230173a8.js.map +1 -0
- package/_internal/23bdba2d.js +71 -0
- package/_internal/23bdba2d.js.map +1 -0
- package/_internal/26926e5c.d.ts +36 -0
- package/_internal/2a3d237c.js +12 -0
- package/_internal/2a3d237c.js.map +1 -0
- package/_internal/2c5dbb03.js +26 -0
- package/_internal/2c5dbb03.js.map +1 -0
- package/_internal/2e2abe51.js +2154 -0
- package/_internal/2e2abe51.js.map +1 -0
- package/_internal/31490c59.d.ts +167 -0
- package/_internal/3181f000.js +14 -0
- package/_internal/3181f000.js.map +1 -0
- package/_internal/35f100be.d.ts +104 -0
- package/_internal/36bd7352.js +219 -0
- package/_internal/36bd7352.js.map +1 -0
- package/_internal/3a1facc0.js +18 -0
- package/_internal/3a1facc0.js.map +1 -0
- package/_internal/4c20d932.js +89 -0
- package/_internal/4c20d932.js.map +1 -0
- package/_internal/4c28d012.js +305 -0
- package/_internal/4c28d012.js.map +1 -0
- package/_internal/4cd0bf32.js +160 -0
- package/_internal/4cd0bf32.js.map +1 -0
- package/_internal/4daccdd5.js +25 -0
- package/_internal/4daccdd5.js.map +1 -0
- package/_internal/524b1d04.js +64 -0
- package/_internal/524b1d04.js.map +1 -0
- package/_internal/53c94227.js +123 -0
- package/_internal/53c94227.js.map +1 -0
- package/_internal/54d9ded5.js +418 -0
- package/_internal/54d9ded5.js.map +1 -0
- package/_internal/56aec41b.js +652 -0
- package/_internal/56aec41b.js.map +1 -0
- package/_internal/5720caf5.js +124 -0
- package/_internal/5720caf5.js.map +1 -0
- package/_internal/646f0db6.js +113 -0
- package/_internal/646f0db6.js.map +1 -0
- package/_internal/6cc8dca8.d.ts +22 -0
- package/_internal/7f022f8c.d.ts +34 -0
- package/_internal/{index.d.ts → 8d67e1e3.d.ts} +1 -1
- package/_internal/b8f2948d.js +691 -0
- package/_internal/b8f2948d.js.map +1 -0
- package/_internal/bc28d510.js +784 -0
- package/_internal/bc28d510.js.map +1 -0
- package/_internal/c68d24e4.js +145 -0
- package/_internal/c68d24e4.js.map +1 -0
- package/_internal/c6c99f76.js +105 -0
- package/_internal/c6c99f76.js.map +1 -0
- package/_internal/cae46566.js +65 -0
- package/_internal/cae46566.js.map +1 -0
- package/_internal/components/alert-dialog/index.ts-623b1ed3.d.ts +37 -0
- package/_internal/components/alert-dialog/index.ts-f83bd6ef.js +148 -0
- package/_internal/components/alert-dialog/index.ts-f83bd6ef.js.map +1 -0
- package/_internal/components/autocomplete/index.ts-3f8f125c.js +264 -0
- package/_internal/components/autocomplete/index.ts-3f8f125c.js.map +1 -0
- package/_internal/components/autocomplete/index.ts-8d6b123f.d.ts +201 -0
- package/_internal/components/avatar/index.ts-93ee0ea9.js +89 -0
- package/_internal/components/avatar/index.ts-93ee0ea9.js.map +1 -0
- package/_internal/components/avatar/index.ts-f92852b4.d.ts +43 -0
- package/_internal/components/badge/index.ts-2d7700ef.d.ts +30 -0
- package/_internal/components/badge/index.ts-6753d67f.js +88 -0
- package/_internal/components/badge/index.ts-6753d67f.js.map +1 -0
- package/_internal/components/button/index.ts-031307ce.js +51 -0
- package/_internal/components/button/index.ts-031307ce.js.map +1 -0
- package/_internal/components/button/index.ts-b29e26a4.d.ts +22 -0
- package/_internal/components/checkbox/index.ts-a33166d7.js +127 -0
- package/_internal/components/checkbox/index.ts-a33166d7.js.map +1 -0
- package/_internal/components/checkbox/index.ts-f82358ff.d.ts +38 -0
- package/_internal/components/chip/index.ts-4a91f1a7.d.ts +68 -0
- package/_internal/components/chip/index.ts-a2b5b771.js +110 -0
- package/_internal/components/chip/index.ts-a2b5b771.js.map +1 -0
- package/_internal/components/comment-block/index.ts-58fa051a.js +121 -0
- package/_internal/components/comment-block/index.ts-58fa051a.js.map +1 -0
- package/_internal/components/comment-block/index.ts-8cfa5af0.d.ts +67 -0
- package/_internal/components/date-picker/index.ts-145262d5.js +2 -0
- package/_internal/components/date-picker/index.ts-145262d5.js.map +1 -0
- package/_internal/components/date-picker/index.ts-70a34fa7.d.ts +95 -0
- package/_internal/components/dialog/index.ts-ea044db2.js +224 -0
- package/_internal/components/dialog/index.ts-ea044db2.js.map +1 -0
- package/_internal/components/dialog/index.ts-eca28654.d.ts +55 -0
- package/_internal/components/divider/index.ts-4a56db75.js +55 -0
- package/_internal/components/divider/index.ts-4a56db75.js.map +1 -0
- package/_internal/components/divider/index.ts-b011d8ca.d.ts +18 -0
- package/_internal/components/drag-handle/index.ts-0aebf92f.js +54 -0
- package/_internal/components/drag-handle/index.ts-0aebf92f.js.map +1 -0
- package/_internal/components/drag-handle/index.ts-3ab31dd1.d.ts +18 -0
- package/_internal/components/dropdown/index.ts-2a17db51.js +154 -0
- package/_internal/components/dropdown/index.ts-2a17db51.js.map +1 -0
- package/_internal/components/dropdown/index.ts-b648a15c.d.ts +87 -0
- package/_internal/components/expansion-panel/index.ts-69f09f5b.d.ts +38 -0
- package/_internal/components/expansion-panel/index.ts-fae3762e.js +143 -0
- package/_internal/components/expansion-panel/index.ts-fae3762e.js.map +1 -0
- package/_internal/components/flag/index.ts-8dcd685b.js +56 -0
- package/_internal/components/flag/index.ts-8dcd685b.js.map +1 -0
- package/_internal/components/flag/index.ts-fda89adb.d.ts +23 -0
- package/_internal/components/flex-box/index.ts-87f2b58d.d.ts +43 -0
- package/_internal/components/flex-box/index.ts-c216e957.js +60 -0
- package/_internal/components/flex-box/index.ts-c216e957.js.map +1 -0
- package/_internal/components/generic-block/index.ts-999a62a4.js +115 -0
- package/_internal/components/generic-block/index.ts-999a62a4.js.map +1 -0
- package/_internal/components/generic-block/index.ts-cd3b0e21.d.ts +106 -0
- package/_internal/components/grid/index.ts-67e0694f.d.ts +50 -0
- package/_internal/components/grid/index.ts-fdf1b306.js +113 -0
- package/_internal/components/grid/index.ts-fdf1b306.js.map +1 -0
- package/_internal/components/grid-column/index.ts-97c61cbe.js +64 -0
- package/_internal/components/grid-column/index.ts-97c61cbe.js.map +1 -0
- package/_internal/components/grid-column/index.ts-c89e1c18.d.ts +31 -0
- package/_internal/components/heading/index.ts-0179e9a9.js +112 -0
- package/_internal/components/heading/index.ts-0179e9a9.js.map +1 -0
- package/_internal/components/heading/index.ts-587579e8.d.ts +37 -0
- package/_internal/components/icon/index.ts-740ca1de.js +2 -0
- package/_internal/components/icon/index.ts-740ca1de.js.map +1 -0
- package/_internal/components/icon/index.ts-b3fa5e15.d.ts +34 -0
- package/_internal/components/image-block/index.ts-36b3828f.d.ts +49 -0
- package/_internal/components/image-block/index.ts-ef5e2e7d.js +111 -0
- package/_internal/components/image-block/index.ts-ef5e2e7d.js.map +1 -0
- package/_internal/components/image-lightbox/index.ts-137f85a8.js +765 -0
- package/_internal/components/image-lightbox/index.ts-137f85a8.js.map +1 -0
- package/_internal/components/image-lightbox/index.ts-2cb92d18.d.ts +75 -0
- package/_internal/components/inline-list/index.ts-033dd358.js +76 -0
- package/_internal/components/inline-list/index.ts-033dd358.js.map +1 -0
- package/_internal/components/inline-list/index.ts-e1c8a3ff.d.ts +34 -0
- package/_internal/components/input-helper/index.ts-32a9ca90.d.ts +22 -0
- package/_internal/components/input-helper/index.ts-ab3a1ef5.js +75 -0
- package/_internal/components/input-helper/index.ts-ab3a1ef5.js.map +1 -0
- package/_internal/components/input-label/index.ts-86f2ea41.d.ts +24 -0
- package/_internal/components/input-label/index.ts-d6ca5569.js +60 -0
- package/_internal/components/input-label/index.ts-d6ca5569.js.map +1 -0
- package/_internal/components/lightbox/index.ts-5370e8e6.d.ts +36 -0
- package/_internal/components/lightbox/index.ts-7a16cdc7.js +149 -0
- package/_internal/components/lightbox/index.ts-7a16cdc7.js.map +1 -0
- package/_internal/components/link/index.ts-26435006.d.ts +37 -0
- package/_internal/components/link/index.ts-d04f4e53.js +120 -0
- package/_internal/components/link/index.ts-d04f4e53.js.map +1 -0
- package/_internal/components/link-preview/index.ts-e560a274.d.ts +36 -0
- package/_internal/components/link-preview/index.ts-fee89f66.js +109 -0
- package/_internal/components/link-preview/index.ts-fee89f66.js.map +1 -0
- package/_internal/components/list/index.ts-ab57902e.d.ts +118 -0
- package/_internal/components/list/index.ts-f3101625.js +86 -0
- package/_internal/components/list/index.ts-f3101625.js.map +1 -0
- package/_internal/components/message/index.ts-041cf0cb.js +97 -0
- package/_internal/components/message/index.ts-041cf0cb.js.map +1 -0
- package/_internal/components/message/index.ts-2d38e0ea.d.ts +37 -0
- package/_internal/components/mosaic/index.ts-232d5aed.d.ts +23 -0
- package/_internal/components/mosaic/index.ts-d2128cd3.js +94 -0
- package/_internal/components/mosaic/index.ts-d2128cd3.js.map +1 -0
- package/_internal/components/navigation/index.ts-6d8bea53.d.ts +58 -0
- package/_internal/components/navigation/index.ts-e8dc0a7f.js +222 -0
- package/_internal/components/navigation/index.ts-e8dc0a7f.js.map +1 -0
- package/_internal/components/notification/index.ts-235fd340.js +140 -0
- package/_internal/components/notification/index.ts-235fd340.js.map +1 -0
- package/_internal/components/notification/index.ts-bb3f03f6.d.ts +34 -0
- package/_internal/components/popover/index.ts-2f17a9b6.js +3 -0
- package/_internal/components/popover/index.ts-2f17a9b6.js.map +1 -0
- package/_internal/components/popover/index.ts-e3b4ff19.d.ts +66 -0
- package/_internal/components/post-block/index.ts-0acb9bb4.js +101 -0
- package/_internal/components/post-block/index.ts-0acb9bb4.js.map +1 -0
- package/_internal/components/post-block/index.ts-9b8ff90b.d.ts +41 -0
- package/_internal/components/progress/index.ts-2a713859.js +189 -0
- package/_internal/components/progress/index.ts-2a713859.js.map +1 -0
- package/_internal/components/progress/index.ts-dfdfa5fb.d.ts +60 -0
- package/_internal/components/progress-tracker/index.ts-2649f756.js +312 -0
- package/_internal/components/progress-tracker/index.ts-2649f756.js.map +1 -0
- package/_internal/components/progress-tracker/index.ts-95320f32.d.ts +101 -0
- package/_internal/components/radio-button/index.ts-5eaab4cf.d.ts +54 -0
- package/_internal/components/radio-button/index.ts-b4dfb2a0.js +150 -0
- package/_internal/components/radio-button/index.ts-b4dfb2a0.js.map +1 -0
- package/_internal/components/select/index.ts-a65e3507.d.ts +91 -0
- package/_internal/components/select/index.ts-e8fad28b.js +257 -0
- package/_internal/components/select/index.ts-e8fad28b.js.map +1 -0
- package/_internal/components/side-navigation/index.ts-3f5f3785.d.ts +60 -0
- package/_internal/components/side-navigation/index.ts-c9a5fc3e.js +184 -0
- package/_internal/components/side-navigation/index.ts-c9a5fc3e.js.map +1 -0
- package/_internal/components/skeleton/index.ts-a7daefac.d.ts +75 -0
- package/_internal/components/skeleton/index.ts-ffc995af.js +179 -0
- package/_internal/components/skeleton/index.ts-ffc995af.js.map +1 -0
- package/_internal/components/slider/index.ts-24a0d598.d.ts +52 -0
- package/_internal/components/slider/index.ts-72aadf4c.js +308 -0
- package/_internal/components/slider/index.ts-72aadf4c.js.map +1 -0
- package/_internal/components/slideshow/index.ts-c99f2892.js +151 -0
- package/_internal/components/slideshow/index.ts-c99f2892.js.map +1 -0
- package/_internal/components/slideshow/index.ts-e49462c6.d.ts +25 -0
- package/_internal/components/switch/index.ts-207ba52b.d.ts +34 -0
- package/_internal/components/switch/index.ts-542e6eaf.js +115 -0
- package/_internal/components/switch/index.ts-542e6eaf.js.map +1 -0
- package/_internal/components/table/index.ts-905ce390.js +310 -0
- package/_internal/components/table/index.ts-905ce390.js.map +1 -0
- package/_internal/components/table/index.ts-c4f39b2d.d.ts +108 -0
- package/_internal/components/tabs/index.ts-713119f4.js +289 -0
- package/_internal/components/tabs/index.ts-713119f4.js.map +1 -0
- package/_internal/components/tabs/index.ts-dbfc48d9.d.ts +106 -0
- package/_internal/components/text/index.ts-6afbe8cd.js +2 -0
- package/_internal/components/text/index.ts-6afbe8cd.js.map +1 -0
- package/_internal/components/text/index.ts-8a812048.d.ts +53 -0
- package/_internal/components/text-field/index.ts-92e6b3b3.d.ts +77 -0
- package/_internal/components/text-field/index.ts-c3be8563.js +341 -0
- package/_internal/components/text-field/index.ts-c3be8563.js.map +1 -0
- package/_internal/components/thumbnail/index.ts-16d7b403.js +40 -0
- package/_internal/components/thumbnail/index.ts-16d7b403.js.map +1 -0
- package/_internal/components/thumbnail/index.ts-1b6c0b48.d.ts +8 -0
- package/_internal/components/toolbar/index.ts-813b902e.js +63 -0
- package/_internal/components/toolbar/index.ts-813b902e.js.map +1 -0
- package/_internal/components/toolbar/index.ts-9f5129d1.d.ts +24 -0
- package/_internal/components/tooltip/index.ts-905c847c.js +322 -0
- package/_internal/components/tooltip/index.ts-905c847c.js.map +1 -0
- package/_internal/components/tooltip/index.ts-c6931e9e.d.ts +35 -0
- package/_internal/components/uploader/index.ts-31f21c2a.js +132 -0
- package/_internal/components/uploader/index.ts-31f21c2a.js.map +1 -0
- package/_internal/components/uploader/index.ts-c3ccba98.d.ts +51 -0
- package/_internal/components/user-block/index.ts-18c58e19.d.ts +50 -0
- package/_internal/components/user-block/index.ts-d43e5f3c.js +136 -0
- package/_internal/components/user-block/index.ts-d43e5f3c.js.map +1 -0
- package/_internal/dc3e28c8.d.ts +38 -0
- package/_internal/f39a1ba4.js +73 -0
- package/_internal/f39a1ba4.js.map +1 -0
- package/_internal/f3e77e3e.js +22 -0
- package/_internal/f3e77e3e.js.map +1 -0
- package/_internal/f502ab30.js +78 -0
- package/_internal/f502ab30.js.map +1 -0
- package/_internal/f52adbae.js +36 -0
- package/_internal/f52adbae.js.map +1 -0
- package/_internal/f57e1239.js +205 -0
- package/_internal/f57e1239.js.map +1 -0
- package/_internal/f5ff1aa4.d.ts +47 -0
- package/_internal/fb975afe.js +52 -0
- package/_internal/fb975afe.js.map +1 -0
- package/index.d.ts +66 -3023
- package/index.js +64 -14531
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/alert-dialog/AlertDialog.tsx +3 -4
- package/src/components/autocomplete/Autocomplete.tsx +4 -3
- package/src/components/autocomplete/AutocompleteMultiple.tsx +7 -6
- package/src/components/avatar/Avatar.tsx +4 -3
- package/src/components/badge/Badge.tsx +7 -4
- package/src/components/badge/BadgeWrapper.tsx +7 -4
- package/src/components/button/Button.tsx +5 -3
- package/src/components/button/ButtonGroup.tsx +4 -3
- package/src/components/button/ButtonRoot.tsx +4 -3
- package/src/components/button/IconButton.tsx +3 -3
- package/src/components/checkbox/Checkbox.tsx +4 -3
- package/src/components/chip/Chip.tsx +8 -9
- package/src/components/chip/ChipGroup.tsx +5 -4
- package/src/components/comment-block/CommentBlock.tsx +4 -4
- package/src/components/date-picker/DatePicker.tsx +5 -3
- package/src/components/date-picker/DatePickerControlled.tsx +6 -3
- package/src/components/date-picker/DatePickerField.tsx +4 -3
- package/src/components/dialog/Dialog.tsx +4 -3
- package/src/components/divider/Divider.tsx +4 -3
- package/src/components/drag-handle/DragHandle.test.tsx +1 -1
- package/src/components/drag-handle/DragHandle.tsx +4 -3
- package/src/components/dropdown/Dropdown.tsx +4 -3
- package/src/components/expansion-panel/ExpansionPanel.tsx +4 -3
- package/src/components/flag/Flag.tsx +5 -3
- package/src/components/flex-box/FlexBox.tsx +8 -5
- package/src/components/generic-block/GenericBlock.tsx +4 -1
- package/src/components/grid/Grid.tsx +4 -3
- package/src/components/grid/GridItem.tsx +4 -3
- package/src/components/grid-column/GridColumn.tsx +5 -5
- package/src/components/heading/Heading.tsx +8 -4
- package/src/components/icon/Icon.tsx +5 -4
- package/src/components/image-block/ImageBlock.tsx +4 -3
- package/src/components/image-lightbox/ImageLightbox.tsx +4 -3
- package/src/components/inline-list/InlineList.tsx +4 -3
- package/src/components/input-helper/InputHelper.tsx +7 -4
- package/src/components/input-label/InputLabel.tsx +7 -4
- package/src/components/lightbox/Lightbox.tsx +4 -3
- package/src/components/link/Link.tsx +4 -3
- package/src/components/link-preview/LinkPreview.tsx +4 -3
- package/src/components/list/List.tsx +7 -5
- package/src/components/list/ListDivider.tsx +4 -3
- package/src/components/list/ListItem.tsx +4 -3
- package/src/components/list/ListSubheader.tsx +4 -3
- package/src/components/message/Message.tsx +7 -4
- package/src/components/mosaic/Mosaic.tsx +7 -5
- package/src/components/navigation/NavigationItem.tsx +1 -1
- package/src/components/navigation/NavigationSection.test.tsx +19 -6
- package/src/components/notification/Notification.tsx +4 -6
- package/src/components/popover/Popover.tsx +3 -2
- package/src/components/popover-dialog/PopoverDialog.tsx +5 -3
- package/src/components/post-block/PostBlock.tsx +4 -6
- package/src/components/progress/Progress.tsx +5 -4
- package/src/components/progress/ProgressCircular.tsx +4 -4
- package/src/components/progress/ProgressLinear.tsx +4 -4
- package/src/components/progress-tracker/ProgressTracker.tsx +5 -3
- package/src/components/progress-tracker/ProgressTrackerStep.tsx +5 -5
- package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +24 -24
- package/src/components/radio-button/RadioButton.tsx +4 -4
- package/src/components/radio-button/RadioGroup.tsx +4 -3
- package/src/components/select/Select.tsx +3 -5
- package/src/components/select/SelectMultiple.tsx +3 -5
- package/src/components/side-navigation/SideNavigation.tsx +4 -4
- package/src/components/side-navigation/SideNavigationItem.tsx +4 -5
- package/src/components/skeleton/SkeletonCircle.tsx +5 -3
- package/src/components/skeleton/SkeletonRectangle.tsx +5 -3
- package/src/components/skeleton/SkeletonTypography.tsx +5 -3
- package/src/components/slider/Slider.tsx +4 -5
- package/src/components/slideshow/Slides.tsx +6 -4
- package/src/components/slideshow/Slideshow.tsx +5 -3
- package/src/components/slideshow/SlideshowControls.tsx +4 -3
- package/src/components/slideshow/SlideshowItem.tsx +4 -3
- package/src/components/slideshow/SlideshowItemGroup.tsx +5 -4
- package/src/components/switch/Switch.tsx +4 -5
- package/src/components/table/Table.tsx +4 -4
- package/src/components/table/TableBody.tsx +4 -3
- package/src/components/table/TableCell.tsx +5 -5
- package/src/components/table/TableHeader.tsx +4 -3
- package/src/components/table/TableRow.tsx +4 -3
- package/src/components/tabs/Tab.tsx +4 -3
- package/src/components/tabs/TabList.tsx +8 -5
- package/src/components/tabs/TabPanel.tsx +7 -5
- package/src/components/text/Text.tsx +6 -4
- package/src/components/text-field/TextField.tsx +4 -3
- package/src/components/thumbnail/Thumbnail.tsx +5 -5
- package/src/components/toolbar/Toolbar.tsx +4 -3
- package/src/components/tooltip/Tooltip.tsx +4 -3
- package/src/components/uploader/Uploader.tsx +5 -3
- package/src/components/user-block/UserBlock.tsx +6 -4
- package/src/testing/utils/commonTestsSuiteRTL.tsx +2 -1
- package/src/utils/react/forwardRef.ts +10 -0
- package/src/utils/react/forwardRefPolymorphic.ts +10 -0
- package/utils/index.d.ts +1 -1
- package/src/utils/forwardRefPolymorphic.ts +0 -9
package/package.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"url": "https://github.com/lumapps/design-system/issues"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@lumx/core": "^3.10.1-alpha.
|
|
10
|
-
"@lumx/icons": "^3.10.1-alpha.
|
|
9
|
+
"@lumx/core": "^3.10.1-alpha.2",
|
|
10
|
+
"@lumx/icons": "^3.10.1-alpha.2",
|
|
11
11
|
"@popperjs/core": "^2.5.4",
|
|
12
12
|
"body-scroll-lock": "^3.1.5",
|
|
13
13
|
"classnames": "^2.3.2",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"build:storybook": "storybook build"
|
|
111
111
|
},
|
|
112
112
|
"sideEffects": false,
|
|
113
|
-
"version": "3.10.1-alpha.
|
|
113
|
+
"version": "3.10.1-alpha.2"
|
|
114
114
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
@@ -14,11 +14,10 @@ import {
|
|
|
14
14
|
Toolbar,
|
|
15
15
|
ButtonProps,
|
|
16
16
|
} from '@lumx/react';
|
|
17
|
-
|
|
18
17
|
import { mdiAlert, mdiAlertCircle, mdiCheckCircle, mdiInformation } from '@lumx/icons';
|
|
19
|
-
import { Comp } from '@lumx/react/utils/type';
|
|
20
18
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
21
19
|
import { useId } from '@lumx/react/hooks/useId';
|
|
20
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
22
21
|
|
|
23
22
|
export interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
24
23
|
/** Message variant. */
|
|
@@ -77,7 +76,7 @@ const DEFAULT_PROPS: Partial<DialogProps> = {
|
|
|
77
76
|
* It should not have a complex content.
|
|
78
77
|
* Children of this component should only be strings, paragraphs or links.
|
|
79
78
|
*/
|
|
80
|
-
export const AlertDialog
|
|
79
|
+
export const AlertDialog = forwardRef<AlertDialogProps, HTMLDivElement>((props, ref) => {
|
|
81
80
|
const { id, title, className, cancelProps, confirmProps, kind, size, dialogProps, children, ...forwardedProps } =
|
|
82
81
|
props;
|
|
83
82
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { ReactNode, SyntheticEvent, useRef } from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
5
|
import { Dropdown, DropdownProps, IconButtonProps, Offset, Placement, TextField, TextFieldProps } from '@lumx/react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { GenericProps, HasTheme } from '@lumx/react/utils/type';
|
|
8
8
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
9
9
|
import { useFocus } from '@lumx/react/hooks/useFocus';
|
|
10
10
|
import { mergeRefs } from '@lumx/react/utils/mergeRefs';
|
|
11
11
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
12
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Defines the props of the component.
|
|
@@ -200,7 +201,7 @@ const DEFAULT_PROPS: Partial<AutocompleteProps> = {
|
|
|
200
201
|
* @param ref Component ref.
|
|
201
202
|
* @return React element.
|
|
202
203
|
*/
|
|
203
|
-
export const Autocomplete
|
|
204
|
+
export const Autocomplete = forwardRef<AutocompleteProps, HTMLDivElement>((props, ref) => {
|
|
204
205
|
const defaultTheme = useTheme();
|
|
205
206
|
const {
|
|
206
207
|
anchorToInput,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
|
|
1
5
|
import { mdiClose } from '@lumx/icons';
|
|
2
|
-
import { Autocomplete, AutocompleteProps, Chip, HorizontalAlignment, Icon, Size } from '@lumx/react';
|
|
3
6
|
|
|
4
|
-
import {
|
|
7
|
+
import { Autocomplete, AutocompleteProps, Chip, HorizontalAlignment, Icon, Size } from '@lumx/react';
|
|
5
8
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
6
|
-
|
|
7
|
-
import classNames from 'classnames';
|
|
8
|
-
import React, { forwardRef, ReactNode } from 'react';
|
|
9
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
9
10
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -66,7 +67,7 @@ const DEFAULT_PROPS: Partial<AutocompleteMultipleProps> = {
|
|
|
66
67
|
* @param ref Component ref.
|
|
67
68
|
* @return React element.
|
|
68
69
|
*/
|
|
69
|
-
export const AutocompleteMultiple
|
|
70
|
+
export const AutocompleteMultiple = forwardRef<AutocompleteMultipleProps, HTMLDivElement>((props, ref) => {
|
|
70
71
|
const defaultTheme = useTheme();
|
|
71
72
|
const {
|
|
72
73
|
anchorToInput,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { KeyboardEventHandler, MouseEventHandler, ReactElement, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
5
|
import { AspectRatio, Size, Theme, Thumbnail, ThumbnailProps } from '@lumx/react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { GenericProps, HasTheme } from '@lumx/react/utils/type';
|
|
8
8
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
9
9
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
10
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Avatar sizes.
|
|
@@ -66,7 +67,7 @@ const DEFAULT_PROPS: Partial<AvatarProps> = {
|
|
|
66
67
|
* @param ref Component ref.
|
|
67
68
|
* @return React element.
|
|
68
69
|
*/
|
|
69
|
-
export const Avatar
|
|
70
|
+
export const Avatar = forwardRef<AvatarProps, HTMLDivElement>((props, ref) => {
|
|
70
71
|
const defaultTheme = useTheme() || Theme.light;
|
|
71
72
|
const {
|
|
72
73
|
actions,
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
|
|
1
5
|
import { ColorPalette } from '@lumx/react';
|
|
2
|
-
import {
|
|
6
|
+
import { GenericProps } from '@lumx/react/utils/type';
|
|
3
7
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
4
|
-
import
|
|
5
|
-
import React, { forwardRef, ReactNode } from 'react';
|
|
8
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* Defines the props of the component.
|
|
@@ -38,7 +41,7 @@ const DEFAULT_PROPS: Partial<BadgeProps> = {
|
|
|
38
41
|
* @param ref Component ref.
|
|
39
42
|
* @return React element.
|
|
40
43
|
*/
|
|
41
|
-
export const Badge
|
|
44
|
+
export const Badge = forwardRef<BadgeProps, HTMLDivElement>((props, ref) => {
|
|
42
45
|
const { children, className, color, ...forwardedProps } = props;
|
|
43
46
|
return (
|
|
44
47
|
<div
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
|
|
1
5
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
2
6
|
import { DEFAULT_PROPS } from '@lumx/react/components/select/WithSelectContext';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import React, { forwardRef, ReactElement, ReactNode } from 'react';
|
|
7
|
+
import { GenericProps } from '@lumx/react/utils/type';
|
|
8
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
6
9
|
|
|
7
10
|
export interface BadgeWrapperProps extends GenericProps {
|
|
8
11
|
/** Badge. */
|
|
@@ -21,7 +24,7 @@ const COMPONENT_NAME = 'BadgeWrapper';
|
|
|
21
24
|
*/
|
|
22
25
|
const CLASSNAME = getRootClassName(COMPONENT_NAME);
|
|
23
26
|
|
|
24
|
-
export const BadgeWrapper
|
|
27
|
+
export const BadgeWrapper = forwardRef<BadgeWrapperProps, HTMLDivElement>((props, ref) => {
|
|
25
28
|
const { badge, children, className, ...forwardedProps } = props;
|
|
26
29
|
|
|
27
30
|
return (
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import isEmpty from 'lodash/isEmpty';
|
|
5
5
|
|
|
6
6
|
import { Emphasis, Icon, Size, Theme, Text } from '@lumx/react';
|
|
7
|
-
import {
|
|
7
|
+
import { isComponent } from '@lumx/react/utils/type';
|
|
8
8
|
import { getBasicClass, getRootClassName } from '@lumx/react/utils/className';
|
|
9
9
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
10
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
11
|
+
|
|
10
12
|
import { BaseButtonProps, ButtonRoot } from './ButtonRoot';
|
|
11
13
|
|
|
12
14
|
/**
|
|
@@ -54,7 +56,7 @@ const DEFAULT_PROPS: Partial<ButtonProps> = {
|
|
|
54
56
|
* @param ref Component ref.
|
|
55
57
|
* @return React element.
|
|
56
58
|
*/
|
|
57
|
-
export const Button
|
|
59
|
+
export const Button = forwardRef<ButtonProps, HTMLButtonElement | HTMLAnchorElement>((props, ref) => {
|
|
58
60
|
const defaultTheme = useTheme() || Theme.light;
|
|
59
61
|
const { children, className, emphasis, leftIcon, rightIcon, size, theme = defaultTheme, ...forwardedProps } = props;
|
|
60
62
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { GenericProps } from '@lumx/react/utils/type';
|
|
6
6
|
import { getRootClassName } from '@lumx/react/utils/className';
|
|
7
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Defines the props of the component
|
|
@@ -32,7 +33,7 @@ const DEFAULT_PROPS: Partial<ButtonGroupProps> = {};
|
|
|
32
33
|
* @param ref Component ref.
|
|
33
34
|
* @return React element.
|
|
34
35
|
*/
|
|
35
|
-
export const ButtonGroup
|
|
36
|
+
export const ButtonGroup = forwardRef<ButtonGroupProps, HTMLDivElement>((props, ref) => {
|
|
36
37
|
const { children, className, ...forwardedProps } = props;
|
|
37
38
|
|
|
38
39
|
return (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { AriaAttributes, ButtonHTMLAttributes, DetailedHTMLProps,
|
|
1
|
+
import React, { AriaAttributes, ButtonHTMLAttributes, DetailedHTMLProps, RefObject } from 'react';
|
|
2
2
|
|
|
3
3
|
import isEmpty from 'lodash/isEmpty';
|
|
4
4
|
|
|
@@ -6,9 +6,10 @@ import classNames from 'classnames';
|
|
|
6
6
|
|
|
7
7
|
import { ColorPalette, Emphasis, Size, Theme } from '@lumx/react';
|
|
8
8
|
import { CSS_PREFIX } from '@lumx/react/constants';
|
|
9
|
-
import {
|
|
9
|
+
import { GenericProps, HasTheme } from '@lumx/react/utils/type';
|
|
10
10
|
import { handleBasicClasses } from '@lumx/react/utils/className';
|
|
11
11
|
import { renderLink } from '@lumx/react/utils/renderLink';
|
|
12
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
12
13
|
|
|
13
14
|
type HTMLButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
14
15
|
|
|
@@ -94,7 +95,7 @@ const renderButtonWrapper: React.FC<ButtonRootProps> = (props) => {
|
|
|
94
95
|
* @param ref Component ref.
|
|
95
96
|
* @return React element.
|
|
96
97
|
*/
|
|
97
|
-
export const ButtonRoot
|
|
98
|
+
export const ButtonRoot = forwardRef<ButtonRootProps, HTMLButtonElement | HTMLAnchorElement>((props, ref) => {
|
|
98
99
|
const {
|
|
99
100
|
'aria-label': ariaLabel,
|
|
100
101
|
children,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { Emphasis, Icon, Size, Theme, Tooltip, TooltipProps } from '@lumx/react';
|
|
4
4
|
import { BaseButtonProps, ButtonRoot } from '@lumx/react/components/button/ButtonRoot';
|
|
5
|
-
import { Comp } from '@lumx/react/utils/type';
|
|
6
5
|
import { getRootClassName } from '@lumx/react/utils/className';
|
|
7
6
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
7
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
8
8
|
|
|
9
9
|
export interface IconButtonProps extends BaseButtonProps {
|
|
10
10
|
/**
|
|
@@ -56,7 +56,7 @@ const DEFAULT_PROPS: Partial<IconButtonProps> = {
|
|
|
56
56
|
* @param ref Component ref.
|
|
57
57
|
* @return React element.
|
|
58
58
|
*/
|
|
59
|
-
export const IconButton
|
|
59
|
+
export const IconButton = forwardRef<IconButtonProps, HTMLButtonElement>((props, ref) => {
|
|
60
60
|
const defaultTheme = useTheme() || Theme.light;
|
|
61
61
|
const {
|
|
62
62
|
emphasis,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { InputHTMLAttributes, ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
5
|
import { mdiCheck, mdiMinus } from '@lumx/icons';
|
|
6
6
|
|
|
7
7
|
import { Icon, InputHelper, InputLabel, Theme } from '@lumx/react';
|
|
8
|
-
import {
|
|
8
|
+
import { GenericProps, HasTheme } from '@lumx/react/utils/type';
|
|
9
9
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
10
10
|
import { useId } from '@lumx/react/hooks/useId';
|
|
11
11
|
import { useMergeRefs } from '@lumx/react/utils/mergeRefs';
|
|
12
12
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
13
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* Intermediate state of checkbox.
|
|
@@ -64,7 +65,7 @@ const DEFAULT_PROPS: Partial<CheckboxProps> = {};
|
|
|
64
65
|
* @param ref Component ref.
|
|
65
66
|
* @return React element.
|
|
66
67
|
*/
|
|
67
|
-
export const Checkbox
|
|
68
|
+
export const Checkbox = forwardRef<CheckboxProps, HTMLDivElement>((props, ref) => {
|
|
68
69
|
const defaultTheme = useTheme() || Theme.light;
|
|
69
70
|
const {
|
|
70
71
|
checked,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import React, { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import isFunction from 'lodash/isFunction';
|
|
5
|
+
|
|
1
6
|
import { ColorPalette, Size, Theme } from '@lumx/react';
|
|
2
7
|
import { useStopPropagation } from '@lumx/react/hooks/useStopPropagation';
|
|
3
8
|
|
|
4
|
-
import {
|
|
9
|
+
import { GenericProps, HasTheme } from '@lumx/react/utils/type';
|
|
5
10
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
6
11
|
import { onEnterPressed } from '@lumx/react/utils/event';
|
|
7
|
-
|
|
8
|
-
import classNames from 'classnames';
|
|
9
|
-
|
|
10
|
-
import isFunction from 'lodash/isFunction';
|
|
11
|
-
import React, { forwardRef, MouseEventHandler, ReactNode } from 'react';
|
|
12
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
12
13
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -66,7 +67,7 @@ const DEFAULT_PROPS: Partial<ChipProps> = {
|
|
|
66
67
|
* @param ref Component ref.
|
|
67
68
|
* @return React element.
|
|
68
69
|
*/
|
|
69
|
-
export const Chip
|
|
70
|
+
export const Chip = forwardRef<ChipProps, HTMLAnchorElement>((props, ref) => {
|
|
70
71
|
const defaultTheme = useTheme() || Theme.light;
|
|
71
72
|
const {
|
|
72
73
|
after,
|
|
@@ -144,9 +145,7 @@ export const Chip: Comp<ChipProps, HTMLAnchorElement> = forwardRef((props, ref)
|
|
|
144
145
|
{before}
|
|
145
146
|
</div>
|
|
146
147
|
)}
|
|
147
|
-
|
|
148
148
|
<div className={`${CLASSNAME}__label`}>{children}</div>
|
|
149
|
-
|
|
150
149
|
{after && (
|
|
151
150
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
152
151
|
<div
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React, { forwardRef, ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
3
2
|
|
|
4
3
|
import classNames from 'classnames';
|
|
5
4
|
|
|
6
|
-
import {
|
|
5
|
+
import { HorizontalAlignment } from '@lumx/react/components';
|
|
6
|
+
import { GenericProps } from '@lumx/react/utils/type';
|
|
7
7
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
8
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
8
9
|
|
|
9
10
|
import { useChipGroupNavigation } from '@lumx/react/hooks/useChipGroupNavigation';
|
|
10
11
|
|
|
@@ -43,7 +44,7 @@ const CLASSNAME = getRootClassName(COMPONENT_NAME);
|
|
|
43
44
|
* @param ref Component ref.
|
|
44
45
|
* @return React element.
|
|
45
46
|
*/
|
|
46
|
-
const InternalChipGroup
|
|
47
|
+
const InternalChipGroup = forwardRef<ChipGroupProps, HTMLDivElement>((props, ref) => {
|
|
47
48
|
const { align, children, className, ...forwardedProps } = props;
|
|
48
49
|
const chipGroupClassName = handleBasicClasses({
|
|
49
50
|
prefix: CLASSNAME,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { Children,
|
|
1
|
+
import React, { Children, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
5
|
import { Avatar, Size, Theme, Tooltip } from '@lumx/react';
|
|
6
|
-
import {
|
|
6
|
+
import { GenericProps, HasTheme, ValueOf } from '@lumx/react/utils/type';
|
|
7
7
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
8
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
8
9
|
|
|
9
10
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
10
11
|
import { AvatarProps } from '../avatar/Avatar';
|
|
@@ -87,7 +88,7 @@ const DEFAULT_PROPS: Partial<CommentBlockProps> = {
|
|
|
87
88
|
* @param ref Component ref.
|
|
88
89
|
* @return React element.
|
|
89
90
|
*/
|
|
90
|
-
export const CommentBlock
|
|
91
|
+
export const CommentBlock = forwardRef<CommentBlockProps, HTMLDivElement>((props, ref) => {
|
|
91
92
|
const defaultTheme = useTheme() || Theme.light;
|
|
92
93
|
const {
|
|
93
94
|
actions,
|
|
@@ -162,7 +163,6 @@ export const CommentBlock: Comp<CommentBlockProps, HTMLDivElement> = forwardRef(
|
|
|
162
163
|
{hasActions && <div className={`${CLASSNAME}__actions`}>{actions}</div>}
|
|
163
164
|
</div>
|
|
164
165
|
</div>
|
|
165
|
-
|
|
166
166
|
{hasChildren && isOpen && <div className={`${CLASSNAME}__children`}>{children}</div>}
|
|
167
167
|
</div>
|
|
168
168
|
);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
|
|
3
3
|
import { addMonthResetDay } from '@lumx/react/utils/date/addMonthResetDay';
|
|
4
4
|
import { isDateValid } from '@lumx/react/utils/date/isDateValid';
|
|
5
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
6
|
+
|
|
5
7
|
import { CLASSNAME, COMPONENT_NAME } from './constants';
|
|
6
8
|
import { DatePickerControlled } from './DatePickerControlled';
|
|
7
9
|
import { DatePickerProps } from './types';
|
|
@@ -13,7 +15,7 @@ import { DatePickerProps } from './types';
|
|
|
13
15
|
* @param ref Component ref.
|
|
14
16
|
* @return React element.
|
|
15
17
|
*/
|
|
16
|
-
export const DatePicker
|
|
18
|
+
export const DatePicker = forwardRef<DatePickerProps, HTMLDivElement>((props, ref) => {
|
|
17
19
|
const { defaultMonth, locale, value, onChange, ...forwardedProps } = props;
|
|
18
20
|
|
|
19
21
|
let referenceDate = value || defaultMonth || new Date();
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import React, { KeyboardEventHandler
|
|
1
|
+
import React, { KeyboardEventHandler } from 'react';
|
|
2
|
+
|
|
2
3
|
import classNames from 'classnames';
|
|
4
|
+
|
|
3
5
|
import {
|
|
4
6
|
Button,
|
|
5
7
|
DatePickerProps,
|
|
@@ -12,7 +14,6 @@ import {
|
|
|
12
14
|
Toolbar,
|
|
13
15
|
} from '@lumx/react';
|
|
14
16
|
import { mdiChevronLeft, mdiChevronRight } from '@lumx/icons';
|
|
15
|
-
import { Comp } from '@lumx/react/utils/type';
|
|
16
17
|
import { getMonthCalendar } from '@lumx/react/utils/date/getMonthCalendar';
|
|
17
18
|
import { isSameDay } from '@lumx/react/utils/date/isSameDay';
|
|
18
19
|
import { getCurrentLocale } from '@lumx/react/utils/locale/getCurrentLocale';
|
|
@@ -24,6 +25,8 @@ import { onEnterPressed } from '@lumx/react/utils/event';
|
|
|
24
25
|
import { addMonthResetDay } from '@lumx/react/utils/date/addMonthResetDay';
|
|
25
26
|
import { formatDayNumber } from '@lumx/react/utils/date/formatDayNumber';
|
|
26
27
|
import { VISUALLY_HIDDEN } from '@lumx/react/constants';
|
|
28
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
29
|
+
|
|
27
30
|
import { CLASSNAME } from './constants';
|
|
28
31
|
|
|
29
32
|
/**
|
|
@@ -52,7 +55,7 @@ const COMPONENT_NAME = 'DatePickerControlled';
|
|
|
52
55
|
* @param ref Component ref.
|
|
53
56
|
* @return React element.
|
|
54
57
|
*/
|
|
55
|
-
export const DatePickerControlled
|
|
58
|
+
export const DatePickerControlled = forwardRef<DatePickerControlledProps, HTMLDivElement>((props, ref) => {
|
|
56
59
|
const {
|
|
57
60
|
locale = getCurrentLocale(),
|
|
58
61
|
maxDate,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { SyntheticEvent, useCallback, useRef } from 'react';
|
|
2
2
|
|
|
3
3
|
import { DatePicker, IconButtonProps, Placement, PopoverDialog, TextField, TextFieldProps } from '@lumx/react';
|
|
4
|
-
import {
|
|
4
|
+
import { GenericProps } from '@lumx/react/utils/type';
|
|
5
5
|
import { getCurrentLocale } from '@lumx/react/utils/locale/getCurrentLocale';
|
|
6
6
|
import { useBooleanState } from '@lumx/react/hooks/useBooleanState';
|
|
7
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Defines the props of the component.
|
|
@@ -40,7 +41,7 @@ const COMPONENT_NAME = 'DatePickerField';
|
|
|
40
41
|
* @param ref Component ref.
|
|
41
42
|
* @return React element.
|
|
42
43
|
*/
|
|
43
|
-
export const DatePickerField
|
|
44
|
+
export const DatePickerField = forwardRef<DatePickerFieldProps, HTMLDivElement>((props, ref) => {
|
|
44
45
|
const {
|
|
45
46
|
defaultMonth,
|
|
46
47
|
disabled,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { Children,
|
|
1
|
+
import React, { Children, ReactElement, ReactNode, Ref, RefObject, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
3
|
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -10,11 +10,12 @@ import { useCallbackOnEscape } from '@lumx/react/hooks/useCallbackOnEscape';
|
|
|
10
10
|
import { useFocusTrap } from '@lumx/react/hooks/useFocusTrap';
|
|
11
11
|
import { useIntersectionObserver } from '@lumx/react/hooks/useIntersectionObserver';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { GenericProps, isComponent } from '@lumx/react/utils/type';
|
|
14
14
|
import { partitionMulti } from '@lumx/react/utils/partitionMulti';
|
|
15
15
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
16
16
|
import { ClickAwayProvider } from '@lumx/react/utils/ClickAwayProvider';
|
|
17
17
|
import { mergeRefs } from '@lumx/react/utils/mergeRefs';
|
|
18
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
18
19
|
|
|
19
20
|
import { useDisableBodyScroll } from '@lumx/react/hooks/useDisableBodyScroll';
|
|
20
21
|
import { useTransitionVisibility } from '@lumx/react/hooks/useTransitionVisibility';
|
|
@@ -92,7 +93,7 @@ const DEFAULT_PROPS: Partial<DialogProps> = {
|
|
|
92
93
|
* @param ref Component ref.
|
|
93
94
|
* @return React element.
|
|
94
95
|
*/
|
|
95
|
-
export const Dialog
|
|
96
|
+
export const Dialog = forwardRef<DialogProps, HTMLDivElement>((props, ref) => {
|
|
96
97
|
if (!DOCUMENT) {
|
|
97
98
|
// Can't render in SSR.
|
|
98
99
|
return null;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
5
|
import { Theme } from '@lumx/react';
|
|
6
|
-
import {
|
|
6
|
+
import { GenericProps, HasTheme } from '@lumx/react/utils/type';
|
|
7
7
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
8
8
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
9
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Defines the props of the component.
|
|
@@ -34,7 +35,7 @@ const DEFAULT_PROPS: Partial<DividerProps> = {};
|
|
|
34
35
|
* @param ref Component ref.
|
|
35
36
|
* @return React element.
|
|
36
37
|
*/
|
|
37
|
-
export const Divider
|
|
38
|
+
export const Divider = forwardRef<DividerProps, HTMLHRElement>((props, ref) => {
|
|
38
39
|
const defaultTheme = useTheme() || Theme.light;
|
|
39
40
|
const { className, theme = defaultTheme, ...forwardedProps } = props;
|
|
40
41
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
5
|
import { mdiDragVertical } from '@lumx/icons';
|
|
6
6
|
import { ColorPalette, Icon, Size, Theme } from '@lumx/react';
|
|
7
|
-
import {
|
|
7
|
+
import { GenericProps, HasTheme } from '@lumx/react/utils/type';
|
|
8
8
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
9
9
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
10
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Defines the props of the component.
|
|
@@ -30,7 +31,7 @@ const CLASSNAME = getRootClassName(COMPONENT_NAME);
|
|
|
30
31
|
* @param ref Component ref.
|
|
31
32
|
* @return React element.
|
|
32
33
|
*/
|
|
33
|
-
export const DragHandle
|
|
34
|
+
export const DragHandle = forwardRef<DragHandleProps, HTMLDivElement>((props, ref) => {
|
|
34
35
|
const defaultTheme = useTheme();
|
|
35
36
|
const { className, theme = defaultTheme, ...forwardedProps } = props;
|
|
36
37
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import React, { cloneElement,
|
|
1
|
+
import React, { cloneElement, useMemo, useRef } from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
5
|
import { List, ListProps } from '@lumx/react/components/list/List';
|
|
6
6
|
import { Popover, PopoverProps } from '@lumx/react/components/popover/Popover';
|
|
7
7
|
import { useInfiniteScroll } from '@lumx/react/hooks/useInfiniteScroll';
|
|
8
|
-
import {
|
|
8
|
+
import { GenericProps, isComponent } from '@lumx/react/utils/type';
|
|
9
9
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
10
10
|
import { Offset, Placement } from '@lumx/react/components/popover/constants';
|
|
11
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Defines the props of the component.
|
|
@@ -113,7 +114,7 @@ const DEFAULT_PROPS: Partial<DropdownProps> = {
|
|
|
113
114
|
* @param ref Component ref.
|
|
114
115
|
* @return React element.
|
|
115
116
|
*/
|
|
116
|
-
export const Dropdown
|
|
117
|
+
export const Dropdown = forwardRef<DropdownProps, HTMLDivElement>((props, ref) => {
|
|
117
118
|
const {
|
|
118
119
|
anchorRef,
|
|
119
120
|
children,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { Children,
|
|
1
|
+
import React, { Children, PropsWithChildren, ReactNode, useEffect, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
@@ -9,12 +9,13 @@ import isEmpty from 'lodash/isEmpty';
|
|
|
9
9
|
import isFunction from 'lodash/isFunction';
|
|
10
10
|
|
|
11
11
|
import { ColorPalette, DragHandle, Emphasis, IconButton, IconButtonProps, Theme } from '@lumx/react';
|
|
12
|
-
import {
|
|
12
|
+
import { GenericProps, HasTheme, isComponent } from '@lumx/react/utils/type';
|
|
13
13
|
import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
|
|
14
14
|
import { partitionMulti } from '@lumx/react/utils/partitionMulti';
|
|
15
15
|
import { useTransitionVisibility } from '@lumx/react/hooks/useTransitionVisibility';
|
|
16
16
|
import { EXPANSION_PANEL_TRANSITION_DURATION } from '@lumx/core/js/constants';
|
|
17
17
|
import { useTheme } from '@lumx/react/utils/theme/ThemeContext';
|
|
18
|
+
import { forwardRef } from '@lumx/react/utils/react/forwardRef';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Defines the props of the component.
|
|
@@ -65,7 +66,7 @@ const isFooter = isComponent('footer');
|
|
|
65
66
|
* @param ref Component ref.
|
|
66
67
|
* @return React element.
|
|
67
68
|
*/
|
|
68
|
-
export const ExpansionPanel
|
|
69
|
+
export const ExpansionPanel = forwardRef<ExpansionPanelProps, HTMLDivElement>((props, ref) => {
|
|
69
70
|
const defaultTheme = useTheme() || Theme.light;
|
|
70
71
|
const {
|
|
71
72
|
className,
|