@itwin/itwinui-react 3.17.0-dev.2 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/DEV-cjs/core/Alert/Alert.js +4 -2
- package/DEV-cjs/core/Avatar/Avatar.js +4 -2
- package/DEV-cjs/core/AvatarGroup/AvatarGroup.js +4 -2
- package/DEV-cjs/core/Backdrop/Backdrop.js +4 -2
- package/DEV-cjs/core/Badge/Badge.js +4 -2
- package/DEV-cjs/core/Breadcrumbs/Breadcrumbs.js +4 -2
- package/DEV-cjs/core/ButtonGroup/ButtonGroup.js +6 -6
- package/DEV-cjs/core/Buttons/Button.js +4 -2
- package/DEV-cjs/core/Buttons/DropdownButton.js +4 -2
- package/DEV-cjs/core/Buttons/IconButton.js +4 -2
- package/DEV-cjs/core/Buttons/IdeasButton.js +4 -2
- package/DEV-cjs/core/Buttons/SplitButton.js +4 -2
- package/DEV-cjs/core/Carousel/Carousel.js +4 -2
- package/DEV-cjs/core/Carousel/CarouselContext.js +1 -1
- package/DEV-cjs/core/Carousel/CarouselDot.js +4 -2
- package/DEV-cjs/core/Carousel/CarouselDotsList.js +4 -2
- package/DEV-cjs/core/Carousel/CarouselNavigation.js +4 -2
- package/DEV-cjs/core/Carousel/CarouselSlide.js +5 -3
- package/DEV-cjs/core/Carousel/CarouselSlider.js +5 -3
- package/DEV-cjs/core/Checkbox/Checkbox.js +7 -4
- package/DEV-cjs/core/ColorPicker/ColorBuilder.js +5 -3
- package/DEV-cjs/core/ColorPicker/ColorInputPanel.js +4 -2
- package/DEV-cjs/core/ColorPicker/ColorPalette.js +4 -2
- package/DEV-cjs/core/ColorPicker/ColorPicker.js +4 -2
- package/DEV-cjs/core/ColorPicker/ColorPickerContext.js +1 -1
- package/DEV-cjs/core/ColorPicker/ColorSwatch.js +4 -2
- package/DEV-cjs/core/ComboBox/ComboBox.js +1 -1
- package/DEV-cjs/core/ComboBox/ComboBoxEndIcon.js +4 -2
- package/DEV-cjs/core/ComboBox/ComboBoxInput.js +1 -1
- package/DEV-cjs/core/ComboBox/ComboBoxInputContainer.js +1 -1
- package/DEV-cjs/core/ComboBox/ComboBoxMenu.js +4 -2
- package/DEV-cjs/core/ComboBox/ComboBoxMenuItem.js +1 -1
- package/DEV-cjs/core/ComboBox/ComboBoxMultipleContainer.js +1 -1
- package/DEV-cjs/core/ComboBox/helpers.js +1 -1
- package/DEV-cjs/core/DatePicker/DatePicker.js +4 -2
- package/DEV-cjs/core/Dialog/Dialog.js +4 -2
- package/DEV-cjs/core/Dialog/DialogBackdrop.js +4 -2
- package/DEV-cjs/core/Dialog/DialogContext.js +1 -1
- package/DEV-cjs/core/Dialog/DialogDragContext.js +1 -1
- package/DEV-cjs/core/Dialog/DialogMain.js +5 -3
- package/DEV-cjs/core/Dialog/DialogMainContext.js +1 -1
- package/DEV-cjs/core/Dialog/DialogTitleBar.js +4 -2
- package/DEV-cjs/core/Divider/Divider.js +4 -2
- package/DEV-cjs/core/DropdownMenu/DropdownMenu.js +1 -1
- package/DEV-cjs/core/ExpandableBlock/ExpandableBlock.js +4 -2
- package/DEV-cjs/core/Fieldset/Fieldset.js +4 -2
- package/DEV-cjs/core/FileUpload/FileEmptyCard.js +4 -2
- package/DEV-cjs/core/FileUpload/FileUpload.js +4 -2
- package/DEV-cjs/core/FileUpload/FileUploadCard.js +4 -2
- package/DEV-cjs/core/FileUpload/FileUploadTemplate.js +4 -2
- package/DEV-cjs/core/Flex/Flex.js +4 -2
- package/DEV-cjs/core/Footer/Footer.js +4 -2
- package/DEV-cjs/core/Header/Header.js +4 -2
- package/DEV-cjs/core/Header/HeaderBasicButton.js +4 -2
- package/DEV-cjs/core/Header/HeaderBreadcrumbs.js +4 -2
- package/DEV-cjs/core/Header/HeaderButton.js +1 -1
- package/DEV-cjs/core/Header/HeaderDropdownButton.js +1 -1
- package/DEV-cjs/core/Header/HeaderLogo.js +4 -2
- package/DEV-cjs/core/Header/HeaderSplitButton.js +4 -2
- package/DEV-cjs/core/Icon/Icon.js +4 -2
- package/DEV-cjs/core/InformationPanel/InformationPanel.js +4 -2
- package/DEV-cjs/core/InformationPanel/InformationPanelContent.js +4 -2
- package/DEV-cjs/core/InformationPanel/InformationPanelHeader.js +4 -2
- package/DEV-cjs/core/Input/Input.js +4 -2
- package/DEV-cjs/core/InputGrid/InputGrid.js +4 -2
- package/DEV-cjs/core/InputGroup/InputGroup.js +4 -2
- package/DEV-cjs/core/InputWithDecorations/InputWithDecorations.js +1 -1
- package/DEV-cjs/core/Label/Label.js +5 -3
- package/DEV-cjs/core/LabeledInput/LabeledInput.js +4 -2
- package/DEV-cjs/core/LabeledSelect/LabeledSelect.js +1 -1
- package/DEV-cjs/core/LabeledTextarea/LabeledTextarea.js +1 -1
- package/DEV-cjs/core/LinkAction/LinkAction.js +4 -2
- package/DEV-cjs/core/List/List.js +23 -2
- package/DEV-cjs/core/List/ListItem.js +4 -2
- package/DEV-cjs/core/Menu/Menu.js +4 -2
- package/DEV-cjs/core/Menu/MenuItem.js +4 -2
- package/DEV-cjs/core/Menu/MenuItemSkeleton.js +4 -2
- package/DEV-cjs/core/Modal/Modal.js +1 -1
- package/DEV-cjs/core/NonIdealState/ErrorPage.js +10 -10
- package/DEV-cjs/core/NonIdealState/NonIdealState.js +4 -2
- package/DEV-cjs/core/NotificationMarker/NotificationMarker.js +4 -2
- package/DEV-cjs/core/Overlay/Overlay.js +2 -2
- package/DEV-cjs/core/Panels/Panels.js +8 -4
- package/DEV-cjs/core/Panels/helpers.js +1 -1
- package/DEV-cjs/core/Popover/Popover.js +5 -3
- package/DEV-cjs/core/ProgressIndicators/ProgressLinear.js +4 -2
- package/DEV-cjs/core/ProgressIndicators/ProgressRadial.js +4 -2
- package/DEV-cjs/core/Radio/Radio.js +4 -2
- package/DEV-cjs/core/RadioTiles/RadioTile.js +4 -2
- package/DEV-cjs/core/RadioTiles/RadioTileGroup.js +4 -2
- package/DEV-cjs/core/SearchBox/SearchBox.js +4 -2
- package/DEV-cjs/core/Select/Select.js +4 -2
- package/DEV-cjs/core/Select/SelectTag.js +4 -2
- package/DEV-cjs/core/Select/SelectTagContainer.js +4 -2
- package/DEV-cjs/core/SideNavigation/SideNavigation.js +44 -34
- package/DEV-cjs/core/SideNavigation/SidenavButton.js +4 -2
- package/DEV-cjs/core/SideNavigation/SidenavSubmenu.js +4 -2
- package/DEV-cjs/core/SideNavigation/SidenavSubmenuHeader.js +4 -2
- package/DEV-cjs/core/SkipToContentLink/SkipToContentLink.js +4 -2
- package/DEV-cjs/core/Slider/Slider.js +49 -39
- package/DEV-cjs/core/Slider/Thumb.js +4 -2
- package/DEV-cjs/core/Slider/Track.js +4 -2
- package/DEV-cjs/core/StatusMessage/StatusMessage.js +4 -2
- package/DEV-cjs/core/Stepper/Stepper.js +35 -25
- package/DEV-cjs/core/Stepper/StepperStep.js +4 -2
- package/DEV-cjs/core/Stepper/WorkflowDiagram.js +4 -2
- package/DEV-cjs/core/Stepper/WorkflowDiagramStep.js +4 -2
- package/DEV-cjs/core/Surface/Surface.js +4 -2
- package/DEV-cjs/core/Table/ColumnHeader.js +4 -2
- package/DEV-cjs/core/Table/SubRowExpander.js +1 -1
- package/DEV-cjs/core/Table/Table.js +9 -4
- package/DEV-cjs/core/Table/TableCell.js +4 -2
- package/DEV-cjs/core/Table/TableExpandableContentMemoized.js +4 -2
- package/DEV-cjs/core/Table/TablePaginator.js +4 -2
- package/DEV-cjs/core/Table/TableRowMemoized.js +5 -2
- package/DEV-cjs/core/Table/cells/DefaultCell.js +21 -6
- package/DEV-cjs/core/Table/cells/EditableCell.js +4 -2
- package/DEV-cjs/core/Table/columns/actionColumn.js +1 -1
- package/DEV-cjs/core/Table/columns/expanderColumn.js +1 -1
- package/DEV-cjs/core/Table/columns/selectionColumn.js +1 -1
- package/DEV-cjs/core/Table/filters/BaseFilter.js +4 -2
- package/DEV-cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +1 -1
- package/DEV-cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +1 -1
- package/DEV-cjs/core/Table/filters/FilterButtonBar.js +4 -2
- package/DEV-cjs/core/Table/filters/FilterToggle.js +4 -2
- package/DEV-cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -1
- package/DEV-cjs/core/Table/filters/TextFilter/TextFilter.js +1 -1
- package/DEV-cjs/core/Table/filters/defaultFilterFunctions.js +6 -5
- package/DEV-cjs/core/Table/filters/tableFilters.js +1 -1
- package/DEV-cjs/core/Table/hooks/useExpanderCell.js +1 -1
- package/DEV-cjs/core/Table/hooks/useResizeColumns.js +6 -4
- package/DEV-cjs/core/Table/hooks/useScrollToRow.js +1 -1
- package/DEV-cjs/core/Table/hooks/useSubRowFiltering.js +1 -1
- package/DEV-cjs/core/Table/hooks/useSubRowSelection.js +1 -1
- package/DEV-cjs/core/Table/utils.js +1 -1
- package/DEV-cjs/core/Tabs/Tabs.js +6 -4
- package/DEV-cjs/core/Tag/Tag.js +4 -2
- package/DEV-cjs/core/Tag/TagContainer.js +4 -2
- package/DEV-cjs/core/Textarea/Textarea.js +1 -1
- package/DEV-cjs/core/ThemeProvider/ThemeContext.js +1 -1
- package/DEV-cjs/core/ThemeProvider/ThemeProvider.js +11 -5
- package/DEV-cjs/core/Tile/Tile.js +4 -2
- package/DEV-cjs/core/TimePicker/TimePicker.js +4 -2
- package/DEV-cjs/core/Toast/Toast.js +4 -2
- package/DEV-cjs/core/Toast/Toaster.js +4 -2
- package/DEV-cjs/core/ToggleSwitch/ToggleSwitch.js +4 -2
- package/DEV-cjs/core/Tooltip/Tooltip.js +21 -12
- package/DEV-cjs/core/TransferList/TransferList.js +4 -2
- package/DEV-cjs/core/Tree/Tree.js +1 -1
- package/DEV-cjs/core/Tree/TreeContext.js +1 -1
- package/DEV-cjs/core/Tree/TreeNode.js +4 -2
- package/DEV-cjs/core/Tree/TreeNodeExpander.js +4 -2
- package/DEV-cjs/core/Typography/Anchor.js +4 -2
- package/DEV-cjs/core/Typography/Blockquote.js +4 -2
- package/DEV-cjs/core/Typography/Kbd.js +4 -2
- package/DEV-cjs/core/Typography/Text.js +4 -2
- package/DEV-cjs/core/VisuallyHidden/VisuallyHidden.js +5 -3
- package/DEV-cjs/react-table/react-table.types-test.js +2 -2
- package/DEV-cjs/styles.js +1 -1
- package/DEV-cjs/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/DEV-cjs/utils/components/ButtonBase.js +8 -4
- package/DEV-cjs/utils/components/FocusTrap.js +6 -6
- package/DEV-cjs/utils/components/InputContainer.js +4 -2
- package/DEV-cjs/utils/components/InputFlexContainer.js +4 -2
- package/DEV-cjs/utils/components/LineClamp.js +1 -1
- package/DEV-cjs/utils/components/MiddleTextTruncation.js +1 -1
- package/DEV-cjs/utils/components/OverflowContainer.js +1 -1
- package/DEV-cjs/utils/components/Portal.js +5 -3
- package/DEV-cjs/utils/components/Resizer.js +1 -1
- package/DEV-cjs/utils/components/ShadowRoot.js +5 -3
- package/DEV-cjs/utils/functions/focusable.js +1 -1
- package/DEV-cjs/utils/functions/polymorphic.js +4 -2
- package/DEV-cjs/utils/functions/react.js +3 -5
- package/DEV-cjs/utils/hooks/useContainerWidth.js +1 -1
- package/DEV-cjs/utils/hooks/useControlledState.js +1 -1
- package/DEV-cjs/utils/hooks/useDragAndDrop.js +3 -3
- package/DEV-cjs/utils/hooks/useEventListener.js +2 -2
- package/DEV-cjs/utils/hooks/useGlobals.js +1 -1
- package/DEV-cjs/utils/hooks/useId.js +1 -1
- package/DEV-cjs/utils/hooks/useInstance.js +1 -1
- package/DEV-cjs/utils/hooks/useIntersection.js +1 -1
- package/DEV-cjs/utils/hooks/useIsClient.js +1 -1
- package/DEV-cjs/utils/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/DEV-cjs/utils/hooks/useLatestRef.js +1 -1
- package/DEV-cjs/utils/hooks/useMediaQuery.js +1 -1
- package/DEV-cjs/utils/hooks/useMergedRefs.js +1 -1
- package/DEV-cjs/utils/hooks/useResizeObserver.js +2 -2
- package/DEV-cjs/utils/hooks/useSafeContext.js +1 -1
- package/DEV-cjs/utils/hooks/useSyncExternalStore.js +1 -1
- package/DEV-cjs/utils/hooks/useVirtualScroll.js +1 -1
- package/DEV-cjs/utils/hooks/useWarningLogger.js +1 -1
- package/DEV-cjs/utils/icons/StatusIconMap.js +1 -1
- package/DEV-cjs/utils/icons/SvgCalendar.js +1 -1
- package/DEV-cjs/utils/icons/SvgCaretDownSmall.js +1 -1
- package/DEV-cjs/utils/icons/SvgCaretRightSmall.js +1 -1
- package/DEV-cjs/utils/icons/SvgCaretUpSmall.js +1 -1
- package/DEV-cjs/utils/icons/SvgCheckmark.js +1 -1
- package/DEV-cjs/utils/icons/SvgCheckmarkSmall.js +1 -1
- package/DEV-cjs/utils/icons/SvgChevronLeft.js +1 -1
- package/DEV-cjs/utils/icons/SvgChevronLeftDouble.js +1 -1
- package/DEV-cjs/utils/icons/SvgChevronRight.js +1 -1
- package/DEV-cjs/utils/icons/SvgChevronRightDouble.js +1 -1
- package/DEV-cjs/utils/icons/SvgChevronRightSmall.js +1 -1
- package/DEV-cjs/utils/icons/SvgClose.js +1 -1
- package/DEV-cjs/utils/icons/SvgCloseSmall.js +1 -1
- package/DEV-cjs/utils/icons/SvgColumnManager.js +1 -1
- package/DEV-cjs/utils/icons/SvgDocument.js +1 -1
- package/DEV-cjs/utils/icons/SvgFilter.js +1 -1
- package/DEV-cjs/utils/icons/SvgFilterHollow.js +1 -1
- package/DEV-cjs/utils/icons/SvgImportantSmall.js +1 -1
- package/DEV-cjs/utils/icons/SvgInfoCircular.js +1 -1
- package/DEV-cjs/utils/icons/SvgMore.js +1 -1
- package/DEV-cjs/utils/icons/SvgMoreVertical.js +1 -1
- package/DEV-cjs/utils/icons/SvgNew.js +1 -1
- package/DEV-cjs/utils/icons/SvgSearch.js +1 -1
- package/DEV-cjs/utils/icons/SvgSmileyHappy.js +1 -1
- package/DEV-cjs/utils/icons/SvgSortDown.js +1 -1
- package/DEV-cjs/utils/icons/SvgSortUp.js +1 -1
- package/DEV-cjs/utils/icons/SvgStatusError.js +1 -1
- package/DEV-cjs/utils/icons/SvgStatusSuccess.js +1 -1
- package/DEV-cjs/utils/icons/SvgStatusWarning.js +1 -1
- package/DEV-cjs/utils/icons/SvgSwap.js +1 -1
- package/DEV-cjs/utils/icons/SvgUpload.js +1 -1
- package/DEV-cjs/utils/providers/HydrationProvider.js +1 -1
- package/DEV-cjs/utils/providers/ScopeProvider.js +1 -1
- package/DEV-esm/core/ButtonGroup/ButtonGroup.js +2 -4
- package/DEV-esm/core/Carousel/CarouselSlide.js +1 -1
- package/DEV-esm/core/Carousel/CarouselSlider.js +1 -1
- package/DEV-esm/core/Checkbox/Checkbox.js +3 -2
- package/DEV-esm/core/ColorPicker/ColorBuilder.js +1 -1
- package/DEV-esm/core/Dialog/DialogMain.js +1 -1
- package/DEV-esm/core/Label/Label.js +1 -1
- package/DEV-esm/core/List/List.js +20 -3
- package/DEV-esm/core/Overlay/Overlay.js +1 -1
- package/DEV-esm/core/Panels/Panels.js +1 -1
- package/DEV-esm/core/Popover/Popover.js +1 -1
- package/DEV-esm/core/SideNavigation/SideNavigation.js +35 -27
- package/DEV-esm/core/Slider/Slider.js +45 -37
- package/DEV-esm/core/Stepper/Stepper.js +31 -23
- package/DEV-esm/core/Table/Table.js +5 -2
- package/DEV-esm/core/Table/TableRowMemoized.js +1 -0
- package/DEV-esm/core/Table/cells/DefaultCell.js +17 -4
- package/DEV-esm/core/Table/filters/defaultFilterFunctions.js +6 -5
- package/DEV-esm/core/Table/hooks/useResizeColumns.js +6 -4
- package/DEV-esm/core/Tabs/Tabs.js +2 -2
- package/DEV-esm/core/ThemeProvider/ThemeProvider.js +1 -1
- package/DEV-esm/core/Tooltip/Tooltip.js +5 -7
- package/DEV-esm/core/VisuallyHidden/VisuallyHidden.js +1 -1
- package/DEV-esm/react-table/react-table.types-test.js +1 -1
- package/DEV-esm/styles.js +1 -1
- package/DEV-esm/utils/components/ButtonBase.js +4 -2
- package/DEV-esm/utils/components/FocusTrap.js +5 -5
- package/DEV-esm/utils/components/Portal.js +1 -1
- package/DEV-esm/utils/components/ShadowRoot.js +1 -1
- package/DEV-esm/utils/functions/react.js +2 -4
- package/DEV-esm/utils/hooks/useDragAndDrop.js +2 -2
- package/DEV-esm/utils/hooks/useEventListener.js +1 -1
- package/DEV-esm/utils/hooks/useResizeObserver.js +1 -1
- package/cjs/core/Alert/Alert.d.ts +1 -3
- package/cjs/core/Alert/Alert.js +4 -2
- package/cjs/core/Avatar/Avatar.d.ts +2 -1
- package/cjs/core/Avatar/Avatar.js +4 -2
- package/cjs/core/AvatarGroup/AvatarGroup.js +4 -2
- package/cjs/core/Backdrop/Backdrop.js +4 -2
- package/cjs/core/Badge/Badge.js +4 -2
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +4 -2
- package/cjs/core/ButtonGroup/ButtonGroup.js +6 -6
- package/cjs/core/Buttons/Button.d.ts +2 -2
- package/cjs/core/Buttons/Button.js +4 -2
- package/cjs/core/Buttons/DropdownButton.d.ts +2 -1
- package/cjs/core/Buttons/DropdownButton.js +4 -2
- package/cjs/core/Buttons/IconButton.js +4 -2
- package/cjs/core/Buttons/IdeasButton.js +4 -2
- package/cjs/core/Buttons/SplitButton.d.ts +1 -1
- package/cjs/core/Buttons/SplitButton.js +4 -2
- package/cjs/core/Carousel/Carousel.d.ts +2 -6
- package/cjs/core/Carousel/Carousel.js +4 -2
- package/cjs/core/Carousel/CarouselContext.js +1 -1
- package/cjs/core/Carousel/CarouselDot.js +4 -2
- package/cjs/core/Carousel/CarouselDotsList.js +4 -2
- package/cjs/core/Carousel/CarouselNavigation.d.ts +2 -6
- package/cjs/core/Carousel/CarouselNavigation.js +4 -2
- package/cjs/core/Carousel/CarouselSlide.js +5 -3
- package/cjs/core/Carousel/CarouselSlider.js +5 -3
- package/cjs/core/Checkbox/Checkbox.js +7 -4
- package/cjs/core/ColorPicker/ColorBuilder.js +5 -3
- package/cjs/core/ColorPicker/ColorInputPanel.js +4 -2
- package/cjs/core/ColorPicker/ColorPalette.js +4 -2
- package/cjs/core/ColorPicker/ColorPicker.js +4 -2
- package/cjs/core/ColorPicker/ColorPickerContext.js +1 -1
- package/cjs/core/ColorPicker/ColorSwatch.js +4 -2
- package/cjs/core/ComboBox/ComboBox.d.ts +3 -3
- package/cjs/core/ComboBox/ComboBox.js +1 -1
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +4 -2
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.js +1 -1
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +1 -1
- package/cjs/core/ComboBox/ComboBoxMenu.js +4 -2
- package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +18 -6
- package/cjs/core/ComboBox/ComboBoxMenuItem.js +1 -1
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.js +1 -1
- package/cjs/core/ComboBox/helpers.d.ts +3 -3
- package/cjs/core/ComboBox/helpers.js +1 -1
- package/cjs/core/DatePicker/DatePicker.js +4 -2
- package/cjs/core/Dialog/Dialog.js +4 -2
- package/cjs/core/Dialog/DialogBackdrop.js +4 -2
- package/cjs/core/Dialog/DialogContext.d.ts +1 -1
- package/cjs/core/Dialog/DialogContext.js +1 -1
- package/cjs/core/Dialog/DialogDragContext.js +1 -1
- package/cjs/core/Dialog/DialogMain.js +5 -3
- package/cjs/core/Dialog/DialogMainContext.js +1 -1
- package/cjs/core/Dialog/DialogTitleBar.js +4 -2
- package/cjs/core/Divider/Divider.js +4 -2
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/cjs/core/DropdownMenu/DropdownMenu.js +1 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +1 -3
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +4 -2
- package/cjs/core/Fieldset/Fieldset.js +4 -2
- package/cjs/core/FileUpload/FileEmptyCard.js +4 -2
- package/cjs/core/FileUpload/FileUpload.js +4 -2
- package/cjs/core/FileUpload/FileUploadCard.js +4 -2
- package/cjs/core/FileUpload/FileUploadTemplate.js +4 -2
- package/cjs/core/Flex/Flex.js +4 -2
- package/cjs/core/Footer/Footer.js +4 -2
- package/cjs/core/Header/Header.d.ts +1 -1
- package/cjs/core/Header/Header.js +4 -2
- package/cjs/core/Header/HeaderBasicButton.js +4 -2
- package/cjs/core/Header/HeaderBreadcrumbs.js +4 -2
- package/cjs/core/Header/HeaderButton.js +1 -1
- package/cjs/core/Header/HeaderDropdownButton.js +1 -1
- package/cjs/core/Header/HeaderLogo.d.ts +2 -1
- package/cjs/core/Header/HeaderLogo.js +4 -2
- package/cjs/core/Header/HeaderSplitButton.js +4 -2
- package/cjs/core/Icon/Icon.js +4 -2
- package/cjs/core/InformationPanel/InformationPanel.js +4 -2
- package/cjs/core/InformationPanel/InformationPanelContent.js +4 -2
- package/cjs/core/InformationPanel/InformationPanelHeader.js +4 -2
- package/cjs/core/Input/Input.js +4 -2
- package/cjs/core/InputGrid/InputGrid.js +4 -2
- package/cjs/core/InputGroup/InputGroup.js +4 -2
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +2 -6
- package/cjs/core/InputWithDecorations/InputWithDecorations.js +1 -1
- package/cjs/core/Label/Label.js +5 -3
- package/cjs/core/LabeledInput/LabeledInput.d.ts +1 -1
- package/cjs/core/LabeledInput/LabeledInput.js +4 -2
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +2 -2
- package/cjs/core/LabeledSelect/LabeledSelect.js +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +1 -1
- package/cjs/core/LinkAction/LinkAction.js +4 -2
- package/cjs/core/List/List.d.ts +2 -1
- package/cjs/core/List/List.js +23 -2
- package/cjs/core/List/ListItem.js +4 -2
- package/cjs/core/Menu/Menu.js +4 -2
- package/cjs/core/Menu/MenuItem.d.ts +5 -5
- package/cjs/core/Menu/MenuItem.js +4 -2
- package/cjs/core/Menu/MenuItemSkeleton.js +4 -2
- package/cjs/core/Modal/Modal.js +1 -1
- package/cjs/core/NonIdealState/ErrorPage.js +10 -10
- package/cjs/core/NonIdealState/NonIdealState.js +4 -2
- package/cjs/core/NotificationMarker/NotificationMarker.js +4 -2
- package/cjs/core/Overlay/Overlay.js +2 -2
- package/cjs/core/Panels/Panels.d.ts +2 -2
- package/cjs/core/Panels/Panels.js +8 -4
- package/cjs/core/Panels/helpers.js +1 -1
- package/cjs/core/Popover/Popover.d.ts +1 -1
- package/cjs/core/Popover/Popover.js +5 -3
- package/cjs/core/ProgressIndicators/ProgressLinear.js +4 -2
- package/cjs/core/ProgressIndicators/ProgressRadial.js +4 -2
- package/cjs/core/Radio/Radio.js +4 -2
- package/cjs/core/RadioTiles/RadioTile.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTile.js +4 -2
- package/cjs/core/RadioTiles/RadioTileGroup.js +4 -2
- package/cjs/core/SearchBox/SearchBox.js +4 -2
- package/cjs/core/Select/Select.d.ts +6 -6
- package/cjs/core/Select/Select.js +4 -2
- package/cjs/core/Select/SelectTag.js +4 -2
- package/cjs/core/Select/SelectTagContainer.js +4 -2
- package/cjs/core/SideNavigation/SideNavigation.d.ts +1 -1
- package/cjs/core/SideNavigation/SideNavigation.js +44 -34
- package/cjs/core/SideNavigation/SidenavButton.js +4 -2
- package/cjs/core/SideNavigation/SidenavSubmenu.js +4 -2
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +4 -2
- package/cjs/core/SkipToContentLink/SkipToContentLink.js +4 -2
- package/cjs/core/Slider/Slider.js +49 -39
- package/cjs/core/Slider/Thumb.js +4 -2
- package/cjs/core/Slider/Track.js +4 -2
- package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/cjs/core/StatusMessage/StatusMessage.js +4 -2
- package/cjs/core/Stepper/Stepper.js +35 -25
- package/cjs/core/Stepper/StepperStep.js +4 -2
- package/cjs/core/Stepper/WorkflowDiagram.js +4 -2
- package/cjs/core/Stepper/WorkflowDiagramStep.js +4 -2
- package/cjs/core/Surface/Surface.js +4 -2
- package/cjs/core/Table/ColumnHeader.js +4 -2
- package/cjs/core/Table/SubRowExpander.js +1 -1
- package/cjs/core/Table/Table.d.ts +1 -1
- package/cjs/core/Table/Table.js +9 -4
- package/cjs/core/Table/TableCell.js +4 -2
- package/cjs/core/Table/TableExpandableContentMemoized.d.ts +4 -3
- package/cjs/core/Table/TableExpandableContentMemoized.js +4 -2
- package/cjs/core/Table/TablePaginator.js +4 -2
- package/cjs/core/Table/TableRowMemoized.d.ts +1 -1
- package/cjs/core/Table/TableRowMemoized.js +5 -2
- package/cjs/core/Table/cells/DefaultCell.d.ts +2 -2
- package/cjs/core/Table/cells/DefaultCell.js +21 -6
- package/cjs/core/Table/cells/EditableCell.js +4 -2
- package/cjs/core/Table/columns/actionColumn.js +1 -1
- package/cjs/core/Table/columns/expanderColumn.js +1 -1
- package/cjs/core/Table/columns/selectionColumn.js +1 -1
- package/cjs/core/Table/filters/BaseFilter.js +4 -2
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +1 -1
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +1 -1
- package/cjs/core/Table/filters/FilterButtonBar.js +4 -2
- package/cjs/core/Table/filters/FilterToggle.js +4 -2
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -1
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +1 -1
- package/cjs/core/Table/filters/defaultFilterFunctions.js +6 -5
- package/cjs/core/Table/filters/tableFilters.js +1 -1
- package/cjs/core/Table/hooks/useExpanderCell.js +1 -1
- package/cjs/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useResizeColumns.js +6 -4
- package/cjs/core/Table/hooks/useScrollToRow.js +1 -1
- package/cjs/core/Table/hooks/useSubRowFiltering.js +1 -1
- package/cjs/core/Table/hooks/useSubRowSelection.js +1 -1
- package/cjs/core/Table/utils.js +1 -1
- package/cjs/core/Tabs/Tabs.d.ts +2 -4
- package/cjs/core/Tabs/Tabs.js +6 -4
- package/cjs/core/Tag/Tag.js +4 -2
- package/cjs/core/Tag/TagContainer.js +4 -2
- package/cjs/core/Textarea/Textarea.js +1 -1
- package/cjs/core/ThemeProvider/ThemeContext.js +1 -1
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +5 -2
- package/cjs/core/ThemeProvider/ThemeProvider.js +11 -5
- package/cjs/core/Tile/Tile.d.ts +1 -3
- package/cjs/core/Tile/Tile.js +4 -2
- package/cjs/core/TimePicker/TimePicker.js +4 -2
- package/cjs/core/Toast/Toast.js +4 -2
- package/cjs/core/Toast/Toaster.js +4 -2
- package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +4 -2
- package/cjs/core/Tooltip/Tooltip.d.ts +2 -1
- package/cjs/core/Tooltip/Tooltip.js +21 -12
- package/cjs/core/TransferList/TransferList.d.ts +1 -3
- package/cjs/core/TransferList/TransferList.js +4 -2
- package/cjs/core/Tree/Tree.d.ts +1 -1
- package/cjs/core/Tree/Tree.js +1 -1
- package/cjs/core/Tree/TreeContext.js +1 -1
- package/cjs/core/Tree/TreeNode.d.ts +1 -1
- package/cjs/core/Tree/TreeNode.js +4 -2
- package/cjs/core/Tree/TreeNodeExpander.js +4 -2
- package/cjs/core/Typography/Anchor.js +4 -2
- package/cjs/core/Typography/Blockquote.js +4 -2
- package/cjs/core/Typography/Kbd.js +4 -2
- package/cjs/core/Typography/Text.js +4 -2
- package/cjs/core/VisuallyHidden/VisuallyHidden.js +5 -3
- package/cjs/react-table/react-table.d.ts +3 -3
- package/cjs/react-table/react-table.types-test.js +2 -2
- package/cjs/styles.js +1 -1
- package/cjs/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/cjs/utils/components/ButtonBase.js +8 -4
- package/cjs/utils/components/FocusTrap.d.ts +1 -1
- package/cjs/utils/components/FocusTrap.js +6 -6
- package/cjs/utils/components/InputContainer.d.ts +1 -1
- package/cjs/utils/components/InputContainer.js +4 -2
- package/cjs/utils/components/InputFlexContainer.js +4 -2
- package/cjs/utils/components/LineClamp.js +1 -1
- package/cjs/utils/components/MiddleTextTruncation.js +1 -1
- package/cjs/utils/components/OverflowContainer.js +1 -1
- package/cjs/utils/components/Portal.d.ts +3 -3
- package/cjs/utils/components/Portal.js +5 -3
- package/cjs/utils/components/Resizer.d.ts +2 -2
- package/cjs/utils/components/Resizer.js +1 -1
- package/cjs/utils/components/ShadowRoot.js +5 -3
- package/cjs/utils/functions/focusable.d.ts +1 -1
- package/cjs/utils/functions/focusable.js +1 -1
- package/cjs/utils/functions/polymorphic.d.ts +3 -2
- package/cjs/utils/functions/polymorphic.js +4 -2
- package/cjs/utils/functions/react.d.ts +1 -1
- package/cjs/utils/functions/react.js +3 -5
- package/cjs/utils/hooks/useContainerWidth.js +1 -1
- package/cjs/utils/hooks/useControlledState.js +1 -1
- package/cjs/utils/hooks/useDragAndDrop.d.ts +1 -1
- package/cjs/utils/hooks/useDragAndDrop.js +3 -3
- package/cjs/utils/hooks/useEventListener.js +2 -2
- package/cjs/utils/hooks/useGlobals.js +1 -1
- package/cjs/utils/hooks/useId.js +1 -1
- package/cjs/utils/hooks/useInstance.js +1 -1
- package/cjs/utils/hooks/useIntersection.js +1 -1
- package/cjs/utils/hooks/useIsClient.js +1 -1
- package/cjs/utils/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/cjs/utils/hooks/useLatestRef.d.ts +1 -1
- package/cjs/utils/hooks/useLatestRef.js +1 -1
- package/cjs/utils/hooks/useMediaQuery.js +1 -1
- package/cjs/utils/hooks/useMergedRefs.d.ts +2 -2
- package/cjs/utils/hooks/useMergedRefs.js +1 -1
- package/cjs/utils/hooks/useResizeObserver.js +2 -2
- package/cjs/utils/hooks/useSafeContext.js +1 -1
- package/cjs/utils/hooks/useSyncExternalStore.js +1 -1
- package/cjs/utils/hooks/useVirtualScroll.js +1 -1
- package/cjs/utils/hooks/useWarningLogger.js +1 -1
- package/cjs/utils/icons/StatusIconMap.js +1 -1
- package/cjs/utils/icons/SvgCalendar.js +1 -1
- package/cjs/utils/icons/SvgCaretDownSmall.js +1 -1
- package/cjs/utils/icons/SvgCaretRightSmall.js +1 -1
- package/cjs/utils/icons/SvgCaretUpSmall.js +1 -1
- package/cjs/utils/icons/SvgCheckmark.js +1 -1
- package/cjs/utils/icons/SvgCheckmarkSmall.js +1 -1
- package/cjs/utils/icons/SvgChevronLeft.js +1 -1
- package/cjs/utils/icons/SvgChevronLeftDouble.js +1 -1
- package/cjs/utils/icons/SvgChevronRight.js +1 -1
- package/cjs/utils/icons/SvgChevronRightDouble.js +1 -1
- package/cjs/utils/icons/SvgChevronRightSmall.js +1 -1
- package/cjs/utils/icons/SvgClose.js +1 -1
- package/cjs/utils/icons/SvgCloseSmall.js +1 -1
- package/cjs/utils/icons/SvgColumnManager.js +1 -1
- package/cjs/utils/icons/SvgDocument.js +1 -1
- package/cjs/utils/icons/SvgFilter.js +1 -1
- package/cjs/utils/icons/SvgFilterHollow.js +1 -1
- package/cjs/utils/icons/SvgImportantSmall.js +1 -1
- package/cjs/utils/icons/SvgInfoCircular.js +1 -1
- package/cjs/utils/icons/SvgMore.js +1 -1
- package/cjs/utils/icons/SvgMoreVertical.js +1 -1
- package/cjs/utils/icons/SvgNew.js +1 -1
- package/cjs/utils/icons/SvgSearch.js +1 -1
- package/cjs/utils/icons/SvgSmileyHappy.js +1 -1
- package/cjs/utils/icons/SvgSortDown.js +1 -1
- package/cjs/utils/icons/SvgSortUp.js +1 -1
- package/cjs/utils/icons/SvgStatusError.js +1 -1
- package/cjs/utils/icons/SvgStatusSuccess.js +1 -1
- package/cjs/utils/icons/SvgStatusWarning.js +1 -1
- package/cjs/utils/icons/SvgSwap.js +1 -1
- package/cjs/utils/icons/SvgUpload.js +1 -1
- package/cjs/utils/props.d.ts +3 -3
- package/cjs/utils/providers/HydrationProvider.js +1 -1
- package/cjs/utils/providers/ScopeProvider.d.ts +2 -2
- package/cjs/utils/providers/ScopeProvider.js +1 -1
- package/esm/core/Alert/Alert.d.ts +1 -3
- package/esm/core/Avatar/Avatar.d.ts +2 -1
- package/esm/core/ButtonGroup/ButtonGroup.js +2 -4
- package/esm/core/Buttons/Button.d.ts +2 -2
- package/esm/core/Buttons/DropdownButton.d.ts +2 -1
- package/esm/core/Buttons/SplitButton.d.ts +1 -1
- package/esm/core/Carousel/Carousel.d.ts +2 -6
- package/esm/core/Carousel/CarouselNavigation.d.ts +2 -6
- package/esm/core/Carousel/CarouselSlide.js +1 -1
- package/esm/core/Carousel/CarouselSlider.js +1 -1
- package/esm/core/Checkbox/Checkbox.js +3 -2
- package/esm/core/ColorPicker/ColorBuilder.js +1 -1
- package/esm/core/ComboBox/ComboBox.d.ts +3 -3
- package/esm/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +18 -6
- package/esm/core/ComboBox/helpers.d.ts +3 -3
- package/esm/core/Dialog/DialogContext.d.ts +1 -1
- package/esm/core/Dialog/DialogMain.js +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +1 -3
- package/esm/core/Header/Header.d.ts +1 -1
- package/esm/core/Header/HeaderLogo.d.ts +2 -1
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +2 -6
- package/esm/core/Label/Label.js +1 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +1 -1
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +2 -2
- package/esm/core/List/List.d.ts +2 -1
- package/esm/core/List/List.js +20 -3
- package/esm/core/Menu/MenuItem.d.ts +5 -5
- package/esm/core/Overlay/Overlay.js +1 -1
- package/esm/core/Panels/Panels.d.ts +2 -2
- package/esm/core/Panels/Panels.js +1 -1
- package/esm/core/Popover/Popover.d.ts +1 -1
- package/esm/core/Popover/Popover.js +1 -1
- package/esm/core/RadioTiles/RadioTile.d.ts +1 -1
- package/esm/core/Select/Select.d.ts +6 -6
- package/esm/core/SideNavigation/SideNavigation.d.ts +1 -1
- package/esm/core/SideNavigation/SideNavigation.js +35 -27
- package/esm/core/Slider/Slider.js +45 -37
- package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/esm/core/Stepper/Stepper.js +31 -23
- package/esm/core/Table/Table.d.ts +1 -1
- package/esm/core/Table/Table.js +5 -2
- package/esm/core/Table/TableExpandableContentMemoized.d.ts +4 -3
- package/esm/core/Table/TableRowMemoized.d.ts +1 -1
- package/esm/core/Table/TableRowMemoized.js +1 -0
- package/esm/core/Table/cells/DefaultCell.d.ts +2 -2
- package/esm/core/Table/cells/DefaultCell.js +17 -4
- package/esm/core/Table/filters/defaultFilterFunctions.js +6 -5
- package/esm/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useResizeColumns.js +6 -4
- package/esm/core/Tabs/Tabs.d.ts +2 -4
- package/esm/core/Tabs/Tabs.js +2 -2
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +5 -2
- package/esm/core/ThemeProvider/ThemeProvider.js +1 -1
- package/esm/core/Tile/Tile.d.ts +1 -3
- package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/esm/core/Tooltip/Tooltip.d.ts +2 -1
- package/esm/core/Tooltip/Tooltip.js +5 -7
- package/esm/core/TransferList/TransferList.d.ts +1 -3
- package/esm/core/Tree/Tree.d.ts +1 -1
- package/esm/core/Tree/TreeNode.d.ts +1 -1
- package/esm/core/VisuallyHidden/VisuallyHidden.js +1 -1
- package/esm/react-table/react-table.d.ts +3 -3
- package/esm/react-table/react-table.types-test.js +1 -1
- package/esm/styles.js +1 -1
- package/esm/utils/components/ButtonBase.js +4 -2
- package/esm/utils/components/FocusTrap.d.ts +1 -1
- package/esm/utils/components/FocusTrap.js +5 -5
- package/esm/utils/components/InputContainer.d.ts +1 -1
- package/esm/utils/components/Portal.d.ts +3 -3
- package/esm/utils/components/Portal.js +1 -1
- package/esm/utils/components/Resizer.d.ts +2 -2
- package/esm/utils/components/ShadowRoot.js +1 -1
- package/esm/utils/functions/focusable.d.ts +1 -1
- package/esm/utils/functions/polymorphic.d.ts +3 -2
- package/esm/utils/functions/react.d.ts +1 -1
- package/esm/utils/functions/react.js +2 -4
- package/esm/utils/hooks/useDragAndDrop.d.ts +1 -1
- package/esm/utils/hooks/useDragAndDrop.js +2 -2
- package/esm/utils/hooks/useEventListener.js +1 -1
- package/esm/utils/hooks/useLatestRef.d.ts +1 -1
- package/esm/utils/hooks/useMergedRefs.d.ts +2 -2
- package/esm/utils/hooks/useResizeObserver.js +1 -1
- package/esm/utils/props.d.ts +3 -3
- package/esm/utils/providers/ScopeProvider.d.ts +2 -2
- package/package.json +42 -42
- package/styles.css +9 -9
|
@@ -38,9 +38,7 @@ export declare const TransferList: PolymorphicForwardRefComponent<"div", {}> & {
|
|
|
38
38
|
/**
|
|
39
39
|
* TransferList listbox subcomponent
|
|
40
40
|
*/
|
|
41
|
-
Listbox: PolymorphicForwardRefComponent<"ul", Omit<
|
|
42
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
43
|
-
}, "as"> & {
|
|
41
|
+
Listbox: PolymorphicForwardRefComponent<"ul", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "as"> & {
|
|
44
42
|
as?: "div" | undefined;
|
|
45
43
|
}>;
|
|
46
44
|
/**
|
package/esm/core/Tree/Tree.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export type TreeProps<T> = {
|
|
|
53
53
|
* />
|
|
54
54
|
* ), [onNodeExpanded])
|
|
55
55
|
*/
|
|
56
|
-
nodeRenderer: (props: NodeRenderProps<T>) => JSX.Element;
|
|
56
|
+
nodeRenderer: (props: NodeRenderProps<T>) => React.JSX.Element;
|
|
57
57
|
/**
|
|
58
58
|
* Array of custom data used for `TreeNodes` inside `Tree`.
|
|
59
59
|
*/
|
|
@@ -29,7 +29,7 @@ export const VisuallyHidden = React.forwardRef((props, ref) => {
|
|
|
29
29
|
{
|
|
30
30
|
as: asProp,
|
|
31
31
|
className: cx('iui-visually-hidden', className),
|
|
32
|
-
'data-iui-unhide-on-focus':
|
|
32
|
+
'data-iui-unhide-on-focus': unhideOnFocus ? true : void 0,
|
|
33
33
|
ref: ref,
|
|
34
34
|
...rest,
|
|
35
35
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChangeEvent, ComponentType, CSSProperties, DependencyList, EffectCallback, MouseEvent, ReactElement,
|
|
1
|
+
import type { ChangeEvent, ComponentType, CSSProperties, DependencyList, EffectCallback, MouseEvent, ReactElement, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* This allows custom strings and keeps intellisense for string unions.
|
|
4
4
|
* See https://github.com/Microsoft/TypeScript/issues/29729
|
|
@@ -732,7 +732,7 @@ export declare const defaultColumn: Partial<Column> & Record<string, any>;
|
|
|
732
732
|
export type StringKey<D> = Extract<keyof D, string>;
|
|
733
733
|
export type IdType<D> = StringKey<D> | string;
|
|
734
734
|
export type CellValue<V = any> = V;
|
|
735
|
-
export type Renderer<Props> = ComponentType<Props> | ReactElement | string | number |
|
|
735
|
+
export type Renderer<Props> = ComponentType<Props> | ReactElement<any> | string | number | Iterable<ReactNode>;
|
|
736
736
|
export interface PluginHook<D extends Record<string, unknown>> {
|
|
737
737
|
(hooks: Hooks<D>): void;
|
|
738
738
|
pluginName?: string | undefined;
|
|
@@ -749,5 +749,5 @@ export declare function useGetLatest<T>(obj: T): () => T;
|
|
|
749
749
|
export declare function safeUseLayoutEffect(effect: EffectCallback, deps?: DependencyList): void;
|
|
750
750
|
export declare function useMountedLayoutEffect(effect: EffectCallback, deps?: DependencyList): void;
|
|
751
751
|
export declare function useAsyncDebounce<F extends (...args: any[]) => any>(defaultFn: F, defaultWait?: number): F;
|
|
752
|
-
export declare function makeRenderer(instance: TableInstance, column: ColumnInstance, meta?: any): ReactElement
|
|
752
|
+
export declare function makeRenderer(instance: TableInstance, column: ColumnInstance, meta?: any): ReactElement<any>;
|
|
753
753
|
export {};
|
|
@@ -584,7 +584,7 @@ import {
|
|
|
584
584
|
[pageSizeList],
|
|
585
585
|
);
|
|
586
586
|
let [globalFilter, setGlobalFilter] = React.useState('');
|
|
587
|
-
let tableInstance = React.useRef();
|
|
587
|
+
let tableInstance = React.useRef(void 0);
|
|
588
588
|
let [hoveredRowIndex, setHoveredRowIndex] = React.useState(0);
|
|
589
589
|
let [rowRefMap, setRowRefMap] = React.useState({});
|
|
590
590
|
return React.createElement(
|
package/esm/styles.js
CHANGED
|
@@ -7,6 +7,7 @@ export const ButtonBase = React.forwardRef((props, forwardedRef) => {
|
|
|
7
7
|
as: asProp = 'button',
|
|
8
8
|
disabled: disabledProp,
|
|
9
9
|
htmlDisabled,
|
|
10
|
+
type: typeProp = 'button' === asProp ? 'button' : void 0,
|
|
10
11
|
...rest
|
|
11
12
|
} = props;
|
|
12
13
|
let isClient = useIsClient();
|
|
@@ -16,13 +17,14 @@ export const ButtonBase = React.forwardRef((props, forwardedRef) => {
|
|
|
16
17
|
if (disabledProp) return;
|
|
17
18
|
handler?.(e);
|
|
18
19
|
};
|
|
20
|
+
let type = 'button' === asProp && disabledProp ? 'button' : typeProp;
|
|
19
21
|
return React.createElement(Box, {
|
|
20
22
|
as: asProp,
|
|
21
|
-
type:
|
|
23
|
+
type: type,
|
|
22
24
|
ref: forwardedRef,
|
|
23
25
|
'aria-disabled': ariaDisabled ? 'true' : void 0,
|
|
24
26
|
'data-iui-disabled': disabledProp ? 'true' : void 0,
|
|
25
|
-
disabled:
|
|
27
|
+
disabled: htmlDisabled ?? (!isClient && disabledProp) ? true : void 0,
|
|
26
28
|
...rest,
|
|
27
29
|
className: cx('iui-button-base', props.className),
|
|
28
30
|
onClick: handleIfEnabled(props.onClick),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { getTabbableElements } from '../functions/focusable.js';
|
|
3
|
-
import {
|
|
3
|
+
import { cloneElementWithRef } from '../functions/react.js';
|
|
4
4
|
export const FocusTrap = (props) => {
|
|
5
5
|
let { children } = props;
|
|
6
|
-
let childRef = React.useRef();
|
|
6
|
+
let childRef = React.useRef(void 0);
|
|
7
7
|
let getFirstLastFocusables = () => {
|
|
8
8
|
let elements = getTabbableElements(childRef.current);
|
|
9
9
|
let firstElement = elements[0];
|
|
@@ -28,9 +28,9 @@ export const FocusTrap = (props) => {
|
|
|
28
28
|
onFocus: onFirstFocus,
|
|
29
29
|
'aria-hidden': true,
|
|
30
30
|
}),
|
|
31
|
-
|
|
32
|
-
ref:
|
|
33
|
-
}),
|
|
31
|
+
cloneElementWithRef(children, () => ({
|
|
32
|
+
ref: childRef,
|
|
33
|
+
})),
|
|
34
34
|
React.createElement('div', {
|
|
35
35
|
tabIndex: 0,
|
|
36
36
|
onFocus: onLastFocus,
|
|
@@ -6,7 +6,7 @@ export type InputContainerProps = {
|
|
|
6
6
|
required?: boolean;
|
|
7
7
|
status?: 'positive' | 'warning' | 'negative';
|
|
8
8
|
message?: React.ReactNode;
|
|
9
|
-
icon?: JSX.Element;
|
|
9
|
+
icon?: React.JSX.Element;
|
|
10
10
|
isLabelInline?: boolean;
|
|
11
11
|
statusMessage?: React.ReactNode;
|
|
12
12
|
inputId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const portalContainerAtom: import("jotai").PrimitiveAtom<HTMLElement |
|
|
3
|
-
init: HTMLElement |
|
|
2
|
+
export declare const portalContainerAtom: import("jotai").PrimitiveAtom<HTMLElement | null> & {
|
|
3
|
+
init: HTMLElement | null;
|
|
4
4
|
};
|
|
5
5
|
export type PortalProps = {
|
|
6
6
|
/**
|
|
@@ -32,4 +32,4 @@ export type PortalProps = {
|
|
|
32
32
|
* @private
|
|
33
33
|
*/
|
|
34
34
|
export declare const Portal: (props: React.PropsWithChildren<PortalProps>) => React.ReactNode;
|
|
35
|
-
export declare const usePortalTo: (portal: NonNullable<PortalProps["portal"]>) => HTMLElement | null
|
|
35
|
+
export declare const usePortalTo: (portal: NonNullable<PortalProps["portal"]>) => HTMLElement | null;
|
|
@@ -3,7 +3,7 @@ import * as ReactDOM from 'react-dom';
|
|
|
3
3
|
import { useIsClient } from '../hooks/useIsClient.js';
|
|
4
4
|
import { atom } from 'jotai';
|
|
5
5
|
import { useScopedAtom } from '../providers/ScopeProvider.js';
|
|
6
|
-
export const portalContainerAtom = atom(
|
|
6
|
+
export const portalContainerAtom = atom(null);
|
|
7
7
|
export const Portal = (props) => {
|
|
8
8
|
let { portal = true, children } = props;
|
|
9
9
|
let isClient = useIsClient();
|
|
@@ -3,12 +3,12 @@ export type ResizerProps = {
|
|
|
3
3
|
/**
|
|
4
4
|
* Ref of the element that is being resized.
|
|
5
5
|
*/
|
|
6
|
-
elementRef: React.RefObject<HTMLElement>;
|
|
6
|
+
elementRef: React.RefObject<HTMLElement | null>;
|
|
7
7
|
/**
|
|
8
8
|
* Ref of the container element in order to avoid resizing past container boundaries.
|
|
9
9
|
* If not passed, viewport will be used.
|
|
10
10
|
*/
|
|
11
|
-
containerRef?: React.RefObject<HTMLElement>;
|
|
11
|
+
containerRef?: React.RefObject<HTMLElement | null>;
|
|
12
12
|
/**
|
|
13
13
|
* Callback that is being called on resize start.
|
|
14
14
|
* Useful to set state, style, or other properties when resizing is started.
|
|
@@ -47,7 +47,7 @@ let ClientShadowRoot = ({ children, css }) => {
|
|
|
47
47
|
};
|
|
48
48
|
function useShadowRoot(templateRef, { css = '' }) {
|
|
49
49
|
let [shadowRoot, setShadowRoot] = React.useState(null);
|
|
50
|
-
let styleSheet = React.useRef();
|
|
50
|
+
let styleSheet = React.useRef(void 0);
|
|
51
51
|
let latestCss = useLatestRef(css);
|
|
52
52
|
let latestShadowRoot = useLatestRef(shadowRoot);
|
|
53
53
|
let createStyleSheet = React.useCallback(
|
|
@@ -26,6 +26,6 @@ export declare const getFocusableElements: (container: HTMLElement | undefined |
|
|
|
26
26
|
export declare function useFocusableElements(root: HTMLElement | null, extraOptions?: {
|
|
27
27
|
filter?: (elements: HTMLElement[]) => HTMLElement[];
|
|
28
28
|
}): {
|
|
29
|
-
focusableElementsRef: React.
|
|
29
|
+
focusableElementsRef: React.RefObject<HTMLElement[]>;
|
|
30
30
|
focusableElements: HTMLElement[];
|
|
31
31
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { PolymorphicForwardRefComponent } from '../props.js';
|
|
2
|
-
declare const _base: <As extends keyof JSX.IntrinsicElements = "div">(defaultElement: As) => (className: string, attrs?: JSX.IntrinsicElements[As]) => PolymorphicForwardRefComponent<As, {}>;
|
|
3
|
+
declare const _base: <As extends keyof React.JSX.IntrinsicElements = "div">(defaultElement: As) => (className: string, attrs?: React.JSX.IntrinsicElements[As]) => PolymorphicForwardRefComponent<As, {}>;
|
|
3
4
|
/**
|
|
4
5
|
* Utility to create a type-safe polymorphic component with a simple class.
|
|
5
6
|
*
|
|
@@ -17,5 +18,5 @@ declare const _base: <As extends keyof JSX.IntrinsicElements = "div">(defaultEle
|
|
|
17
18
|
*
|
|
18
19
|
* @private
|
|
19
20
|
*/
|
|
20
|
-
export declare const polymorphic: { [key in keyof JSX.IntrinsicElements]: ReturnType<typeof _base<key>>; };
|
|
21
|
+
export declare const polymorphic: { [key in keyof React.JSX.IntrinsicElements]: ReturnType<typeof _base<key>>; };
|
|
21
22
|
export {};
|
|
@@ -5,4 +5,4 @@ import * as React from 'react';
|
|
|
5
5
|
*
|
|
6
6
|
* @private
|
|
7
7
|
*/
|
|
8
|
-
export declare const cloneElementWithRef: (children: React.ReactNode, getProps: (children: JSX.Element) => Record<string, unknown>) => string | number | true | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
|
|
8
|
+
export declare const cloneElementWithRef: (children: React.ReactNode, getProps: (children: React.JSX.Element) => Record<string, unknown>) => string | number | bigint | true | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
|
|
@@ -3,12 +3,10 @@ import { mergeRefs } from '../hooks/useMergedRefs.js';
|
|
|
3
3
|
export const cloneElementWithRef = (children, getProps) => {
|
|
4
4
|
if (!children) return null;
|
|
5
5
|
if (!React.isValidElement(children)) return children;
|
|
6
|
+
let childrenRef = children.props?.ref || children?.ref;
|
|
6
7
|
let props = getProps(children);
|
|
7
8
|
let ref = mergeRefs(
|
|
8
|
-
...[
|
|
9
|
-
'ref' in children ? children.ref : null,
|
|
10
|
-
'ref' in props ? props.ref : null,
|
|
11
|
-
].filter(Boolean),
|
|
9
|
+
...[childrenRef, 'ref' in props ? props.ref : null].filter(Boolean),
|
|
12
10
|
);
|
|
13
11
|
return React.cloneElement(children, {
|
|
14
12
|
...props,
|
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
* `onPointerDown` - handler that is called when pointer is down and handles all the dragging logic.
|
|
8
8
|
* `transform` - current transform of the element, it is used to preserve drag position when element visibility is being toggled.
|
|
9
9
|
*/
|
|
10
|
-
export declare const useDragAndDrop: (elementRef: React.RefObject<HTMLElement>, containerRef?: React.RefObject<HTMLElement>, enabled?: boolean) => {
|
|
10
|
+
export declare const useDragAndDrop: (elementRef: React.RefObject<HTMLElement | null>, containerRef?: React.RefObject<HTMLElement | null>, enabled?: boolean) => {
|
|
11
11
|
onPointerDown: (e: React.PointerEvent<HTMLElement>) => void;
|
|
12
12
|
transform: string;
|
|
13
13
|
};
|
|
@@ -17,8 +17,8 @@ let getContainerRect = (containerRef) => {
|
|
|
17
17
|
export const useDragAndDrop = (elementRef, containerRef, enabled = true) => {
|
|
18
18
|
let grabOffsetX = React.useRef(0);
|
|
19
19
|
let grabOffsetY = React.useRef(0);
|
|
20
|
-
let translateX = React.useRef();
|
|
21
|
-
let translateY = React.useRef();
|
|
20
|
+
let translateX = React.useRef(void 0);
|
|
21
|
+
let translateY = React.useRef(void 0);
|
|
22
22
|
let containerRectRef = React.useRef(getContainerRect(containerRef));
|
|
23
23
|
let adjustTransform = React.useCallback(() => {
|
|
24
24
|
if (!elementRef.current || !enabled) return;
|
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Function that merges the provided refs into one.
|
|
4
4
|
*/
|
|
5
|
-
export declare const mergeRefs: <T>(...refs: Array<React.Ref<T> | React.
|
|
5
|
+
export declare const mergeRefs: <T>(...refs: Array<React.Ref<T> | React.Ref<T> | undefined | null>) => (instance: T | null) => void;
|
|
6
6
|
/**
|
|
7
7
|
* Returns a ref callback that merges the provided refs using `mergeRefs`.
|
|
8
8
|
*/
|
|
9
|
-
export declare const useMergedRefs: <T>(...refs: ReadonlyArray<React.Ref<T> | React.
|
|
9
|
+
export declare const useMergedRefs: <T>(...refs: ReadonlyArray<React.Ref<T> | React.Ref<T> | undefined | null>) => (instance: T | null) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { getWindow } from '../functions/dom.js';
|
|
3
3
|
export const useResizeObserver = (onResize) => {
|
|
4
|
-
let resizeObserver = React.useRef();
|
|
4
|
+
let resizeObserver = React.useRef(void 0);
|
|
5
5
|
let elementRef = React.useCallback(
|
|
6
6
|
(element) => {
|
|
7
7
|
if (!getWindow()?.ResizeObserver) return;
|
package/esm/utils/props.d.ts
CHANGED
|
@@ -15,14 +15,14 @@ export type CommonProps = {
|
|
|
15
15
|
* // ...
|
|
16
16
|
* }) as PolymorphicForwardRefComponent<'button', ButtonOwnProps>;
|
|
17
17
|
*/
|
|
18
|
-
export interface PolymorphicForwardRefComponent<DefaultAs, OwnProps = {}> extends React.ForwardRefExoticComponent<Merge<DefaultAs extends React.ElementType ? React.ComponentPropsWithRef<DefaultAs> : never, OwnProps & {
|
|
18
|
+
export interface PolymorphicForwardRefComponent<DefaultAs, OwnProps = {}> extends React.ForwardRefExoticComponent<Merge<DefaultAs extends React.ElementType<any> ? React.ComponentPropsWithRef<DefaultAs> : never, OwnProps & {
|
|
19
19
|
as?: DefaultAs;
|
|
20
20
|
}>> {
|
|
21
|
-
<As = DefaultAs>(props: As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
|
|
21
|
+
<As = DefaultAs>(props: As extends keyof React.JSX.IntrinsicElements ? Merge<React.JSX.IntrinsicElements[As], OwnProps & {
|
|
22
22
|
as: As;
|
|
23
23
|
}> : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
|
|
24
24
|
as: As;
|
|
25
|
-
}> : never): React.ReactElement | null;
|
|
25
|
+
}> : never): React.ReactElement<any> | null;
|
|
26
26
|
}
|
|
27
27
|
type Merge<P1, P2> = Omit<P1, keyof P2> & P2;
|
|
28
28
|
export {};
|
|
@@ -18,9 +18,9 @@ export declare const ScopeProvider: ({ children }: {
|
|
|
18
18
|
*
|
|
19
19
|
* @private
|
|
20
20
|
*/
|
|
21
|
-
export declare const useScopedAtom: <T>(atom: Atom<T>) => readonly [Awaited<T>, (...args:
|
|
21
|
+
export declare const useScopedAtom: <T>(atom: Atom<T>) => readonly [Awaited<T>, (...args: T[]) => void];
|
|
22
22
|
/**
|
|
23
23
|
* Wrapper over `useSetAtom` that uses the store from the nearest `ScopeProvider`.
|
|
24
24
|
* @private
|
|
25
25
|
*/
|
|
26
|
-
export declare const useScopedSetAtom: <T>(atom: WritableAtom<T,
|
|
26
|
+
export declare const useScopedSetAtom: <T>(atom: WritableAtom<T, T[], void>) => (...args: T[]) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/itwinui-react",
|
|
3
|
-
"version": "3.17.0
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"author": "Bentley Systems",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -78,62 +78,38 @@
|
|
|
78
78
|
"ui",
|
|
79
79
|
"ux"
|
|
80
80
|
],
|
|
81
|
-
"scripts": {
|
|
82
|
-
"build": "pnpm clean:build && pnpm build:js && pnpm build:styles && pnpm build:types && pnpm build:post",
|
|
83
|
-
"build:js": "node ./scripts/build.mjs",
|
|
84
|
-
"build:types": "tsc -p tsconfig.build.json --outDir esm && tsc -p tsconfig.build.json --outDir cjs",
|
|
85
|
-
"build:styles": "vite build src/styles.js",
|
|
86
|
-
"build:post": "node ./scripts/postBuild.mjs",
|
|
87
|
-
"clean:build": "rimraf esm && rimraf cjs && rimraf DEV-esm && rimraf DEV-cjs && rimraf styles.css",
|
|
88
|
-
"clean:coverage": "rimraf coverage",
|
|
89
|
-
"clean": "rimraf .turbo && pnpm clean:coverage && pnpm clean:build && rimraf node_modules",
|
|
90
|
-
"test": "pnpm test:types && pnpm test:unit",
|
|
91
|
-
"test:unit": "vitest run",
|
|
92
|
-
"test:unit:watch": "pnpm test:unit --watch",
|
|
93
|
-
"test:types": "tsc -p tsconfig.test.json --noEmit",
|
|
94
|
-
"format": "prettier --config .prettierrc **/*.{tsx,ts,js} --ignore-path .gitignore --write",
|
|
95
|
-
"lint": "eslint \"**/*.{js,ts,tsx}\" --max-warnings=0",
|
|
96
|
-
"lint:fix": "pnpm lint --fix && node ../../scripts/copyrightLinter.js --fix \"*/**/*.{js,ts,tsx}\"",
|
|
97
|
-
"dev": "pnpm clean:build && concurrently \"pnpm dev:esm\" \"pnpm dev:dev-esm\" \"pnpm dev:cjs\" \"pnpm dev:dev-cjs\" \"pnpm dev:styles\" \"pnpm dev:types\"",
|
|
98
|
-
"dev:esm": "swc src -d esm --env-name='production' --watch --strip-leading-paths",
|
|
99
|
-
"dev:dev-esm": "swc src -d DEV-esm --env-name='development' --watch --strip-leading-paths",
|
|
100
|
-
"dev:cjs": "swc src -d cjs --env-name='production' --watch --strip-leading-paths -C module.type=commonjs",
|
|
101
|
-
"dev:dev-cjs": "swc src -d DEV-cjs --env-name='development' --watch --strip-leading-paths -C module.type=commonjs",
|
|
102
|
-
"dev:types": "concurrently \"tsc -p tsconfig.build.json --outDir esm --watch --preserveWatchOutput\" \"tsc -p tsconfig.build.json --outDir cjs --watch --preserveWatchOutput\"",
|
|
103
|
-
"dev:styles": "pnpm build:styles --watch"
|
|
104
|
-
},
|
|
105
81
|
"dependencies": {
|
|
106
|
-
"@floating-ui/react": "^0.
|
|
82
|
+
"@floating-ui/react": "^0.27.4",
|
|
107
83
|
"@itwin/itwinui-illustrations-react": "^2.1.0",
|
|
108
|
-
"@swc/helpers": "^0.5.
|
|
109
|
-
"@tanstack/react-virtual": "^3.
|
|
110
|
-
"classnames": "^2.
|
|
84
|
+
"@swc/helpers": "^0.5.15",
|
|
85
|
+
"@tanstack/react-virtual": "^3.13.0",
|
|
86
|
+
"classnames": "^2.5.1",
|
|
111
87
|
"jotai": "^2.8.0",
|
|
112
88
|
"react-table": "^7.8.0"
|
|
113
89
|
},
|
|
114
90
|
"devDependencies": {
|
|
115
|
-
"@swc/cli": "^0.
|
|
116
|
-
"@swc/core": "^1.
|
|
117
|
-
"@testing-library/jest-dom": "^6.3
|
|
118
|
-
"@testing-library/react": "
|
|
119
|
-
"@testing-library/user-event": "^14.
|
|
91
|
+
"@swc/cli": "^0.6.0",
|
|
92
|
+
"@swc/core": "^1.10.15",
|
|
93
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
94
|
+
"@testing-library/react": "16.2.0",
|
|
95
|
+
"@testing-library/user-event": "^14.6.1",
|
|
120
96
|
"@types/node": "*",
|
|
121
97
|
"@types/react": "*",
|
|
122
98
|
"@types/react-dom": "*",
|
|
123
|
-
"@vitest/coverage-v8": "^1.
|
|
99
|
+
"@vitest/coverage-v8": "^1.6.1",
|
|
124
100
|
"eslint": "^8",
|
|
125
101
|
"eslint-config-prettier": "^8.8.0",
|
|
126
102
|
"eslint-plugin-require-extensions": "^0.1.3",
|
|
127
103
|
"jsdom": "^24.0.0",
|
|
128
|
-
"react": "^
|
|
129
|
-
"react-dom": "^
|
|
104
|
+
"react": "^19.0.0",
|
|
105
|
+
"react-dom": "^19.0.0",
|
|
130
106
|
"typescript": "5",
|
|
131
107
|
"vite": "~5.4.14",
|
|
132
|
-
"vitest": "^1.
|
|
108
|
+
"vitest": "^1.6.1"
|
|
133
109
|
},
|
|
134
110
|
"peerDependencies": {
|
|
135
|
-
"react": ">=17.0.0
|
|
136
|
-
"react-dom": ">=17.0.0
|
|
111
|
+
"react": ">=17.0.0",
|
|
112
|
+
"react-dom": ">=17.0.0"
|
|
137
113
|
},
|
|
138
114
|
"lint-staged": {
|
|
139
115
|
"*.{tsx,ts,jsx,js}": [
|
|
@@ -145,5 +121,29 @@
|
|
|
145
121
|
"prettier": "configs/prettier-config",
|
|
146
122
|
"sideEffects": [
|
|
147
123
|
"styles.css"
|
|
148
|
-
]
|
|
149
|
-
|
|
124
|
+
],
|
|
125
|
+
"scripts": {
|
|
126
|
+
"build": "pnpm clean:build && pnpm build:js && pnpm build:styles && pnpm build:types && pnpm build:post",
|
|
127
|
+
"build:js": "node ./scripts/build.mjs",
|
|
128
|
+
"build:types": "tsc -p tsconfig.build.json --outDir esm && tsc -p tsconfig.build.json --outDir cjs",
|
|
129
|
+
"build:styles": "vite build src/styles.js",
|
|
130
|
+
"build:post": "node ./scripts/postBuild.mjs",
|
|
131
|
+
"clean:build": "rimraf esm && rimraf cjs && rimraf DEV-esm && rimraf DEV-cjs && rimraf styles.css",
|
|
132
|
+
"clean:coverage": "rimraf coverage",
|
|
133
|
+
"clean": "rimraf .turbo && pnpm clean:coverage && pnpm clean:build && rimraf node_modules",
|
|
134
|
+
"test": "pnpm test:types && pnpm test:unit",
|
|
135
|
+
"test:unit": "vitest run",
|
|
136
|
+
"test:unit:watch": "pnpm test:unit --watch",
|
|
137
|
+
"test:types": "tsc -p tsconfig.test.json --noEmit",
|
|
138
|
+
"format": "prettier --config .prettierrc **/*.{tsx,ts,js} --ignore-path .gitignore --write",
|
|
139
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\" --max-warnings=0",
|
|
140
|
+
"lint:fix": "pnpm lint --fix && node ../../scripts/copyrightLinter.js --fix \"*/**/*.{js,ts,tsx}\"",
|
|
141
|
+
"dev": "pnpm clean:build && concurrently \"pnpm dev:esm\" \"pnpm dev:dev-esm\" \"pnpm dev:cjs\" \"pnpm dev:dev-cjs\" \"pnpm dev:styles\" \"pnpm dev:types\"",
|
|
142
|
+
"dev:esm": "swc src -d esm --env-name='production' --watch --strip-leading-paths",
|
|
143
|
+
"dev:dev-esm": "swc src -d DEV-esm --env-name='development' --watch --strip-leading-paths",
|
|
144
|
+
"dev:cjs": "swc src -d cjs --env-name='production' --watch --strip-leading-paths -C module.type=commonjs",
|
|
145
|
+
"dev:dev-cjs": "swc src -d DEV-cjs --env-name='development' --watch --strip-leading-paths -C module.type=commonjs",
|
|
146
|
+
"dev:types": "concurrently \"tsc -p tsconfig.build.json --outDir esm --watch --preserveWatchOutput\" \"tsc -p tsconfig.build.json --outDir cjs --watch --preserveWatchOutput\"",
|
|
147
|
+
"dev:styles": "pnpm build:styles --watch"
|
|
148
|
+
}
|
|
149
|
+
}
|