@splunk/react-ui 4.42.0 → 5.0.0-beta.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/Accordion.js +87 -109
- package/Animation.js +48 -31
- package/Avatar.d.ts +2 -0
- package/Avatar.js +478 -0
- package/Box.js +8 -8
- package/Breadcrumbs.js +45 -49
- package/Button.js +144 -399
- package/ButtonGroup.js +22 -26
- package/ButtonSimple.js +239 -605
- package/CHANGELOG.md +29 -0
- package/CHANGELOG.v5.mdx +195 -0
- package/Calendar.js +55 -68
- package/Card.js +162 -200
- package/Chip.js +108 -96
- package/Clickable.js +174 -310
- package/Code.js +528 -372
- package/CollapsiblePanel.js +439 -601
- package/Color.js +727 -967
- package/ColumnLayout.js +190 -234
- package/ComboBox.js +166 -161
- package/ControlGroup.js +502 -531
- package/Date.js +314 -420
- package/DefinitionList.js +128 -140
- package/Dropdown.js +201 -358
- package/DualListbox.js +26 -26
- package/File.js +479 -558
- package/FormRows.js +339 -569
- package/Heading.js +53 -99
- package/Image.js +254 -305
- package/JSONTree.js +135 -131
- package/Layer.js +187 -269
- package/{CloseButton.js → Layout.js} +39 -61
- package/Link.js +91 -244
- package/List.js +68 -74
- package/MIGRATION.mdx +48 -53
- package/MIGRATION.v5.mdx +428 -0
- package/Markdown.js +439 -385
- package/Menu.js +387 -741
- package/Message.js +150 -322
- package/MessageBar.js +15 -15
- package/Modal.js +444 -587
- package/Monogram.js +1 -1
- package/Multiselect.js +1207 -1256
- package/NonInteractiveCheckbox.js +189 -0
- package/Number.js +538 -621
- package/Paginator.js +354 -448
- package/Paragraph.js +12 -15
- package/Popover.js +588 -683
- package/Progress.js +141 -244
- package/Prose.d.ts +2 -0
- package/Prose.js +213 -0
- package/RadioBar.js +328 -450
- package/RadioList.js +129 -212
- package/Resize.js +351 -402
- package/ResultsMenu.d.ts +2 -0
- package/ResultsMenu.js +255 -358
- package/Scroll.js +159 -238
- package/Search.js +365 -453
- package/Select.js +1097 -1380
- package/SidePanel.js +179 -223
- package/Slider.js +440 -542
- package/SlidingPanels.js +377 -504
- package/SplitButton.js +114 -102
- package/StaticContent.js +58 -74
- package/StepBar.js +193 -258
- package/Switch.js +246 -552
- package/TabBar.js +442 -622
- package/TabLayout.js +197 -251
- package/Table.js +2373 -3691
- package/Text.js +422 -909
- package/TextArea.js +537 -959
- package/Tooltip.js +35 -41
- package/TransitionOpen.js +296 -334
- package/Tree.js +20 -14
- package/Typography.js +35 -50
- package/WaitSpinner.js +93 -124
- package/package.json +16 -17
- package/stubs-dependencies.d.ts +0 -7
- package/stubs-splunkui.d.ts +6 -1
- package/types/src/Accordion/Accordion.d.ts +5 -1
- package/types/src/Accordion/Panel.d.ts +1 -2
- package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Anchor/Anchor.d.ts +1 -1
- package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
- package/types/src/Animation/Animation.d.ts +12 -2
- package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
- package/types/src/Avatar/Avatar.d.ts +65 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
- package/types/src/Avatar/getInitials.d.ts +9 -0
- package/types/src/Avatar/index.d.ts +2 -0
- package/types/src/Box/Box.d.ts +1 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/types/src/Breadcrumbs/Item.d.ts +1 -1
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
- package/types/src/Button/Button.d.ts +20 -34
- package/types/src/Button/docs/examples/Basic.d.ts +2 -1
- package/types/src/Button/docs/examples/Block.d.ts +2 -1
- package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Button/docs/examples/Icons.d.ts +2 -1
- package/types/src/Button/docs/examples/Menus.d.ts +2 -1
- package/types/src/Button/docs/examples/To.d.ts +2 -1
- package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
- package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
- package/types/src/ButtonSimple/mixin.d.ts +6 -2
- package/types/src/Calendar/Calendar.d.ts +2 -2
- package/types/src/Calendar/DateTable.d.ts +1 -1
- package/types/src/Calendar/Day.d.ts +1 -1
- package/types/src/Calendar/MonthHeader.d.ts +1 -1
- package/types/src/Card/Body.d.ts +1 -1
- package/types/src/Card/Card.d.ts +4 -9
- package/types/src/Card/Footer.d.ts +1 -8
- package/types/src/Card/Header.d.ts +2 -2
- package/types/src/Card/docs/examples/Actions.d.ts +2 -1
- package/types/src/Card/docs/examples/Basic.d.ts +2 -1
- package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
- package/types/src/Card/docs/examples/Full.d.ts +2 -1
- package/types/src/Card/docs/examples/Images.d.ts +2 -1
- package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
- package/types/src/CardLayout/CardLayout.d.ts +1 -1
- package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
- package/types/src/Chip/Chip.d.ts +1 -1
- package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
- package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
- package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
- package/types/src/Clickable/Clickable.d.ts +13 -37
- package/types/src/Clickable/NavigationProvider.d.ts +2 -19
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
- package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
- package/types/src/Code/Code.d.ts +3 -3
- package/types/src/Code/docs/examples/Default.d.ts +2 -1
- package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
- package/types/src/Code/docs/examples/Language.d.ts +2 -1
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
- package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
- package/types/src/Color/Color.d.ts +24 -59
- package/types/src/Color/Palette.d.ts +3 -18
- package/types/src/Color/Swatch.d.ts +1 -4
- package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
- package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
- package/types/src/Color/docs/examples/Null.d.ts +2 -1
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
- package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ColumnLayout/Column.d.ts +1 -11
- package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
- package/types/src/ColumnLayout/Row.d.ts +1 -11
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
- package/types/src/ComboBox/ComboBox.d.ts +10 -14
- package/types/src/ComboBox/Option.d.ts +2 -2
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
- package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
- package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
- package/types/src/Date/Date.d.ts +30 -65
- package/types/src/Date/Icon.d.ts +2 -1
- package/types/src/Date/docs/examples/Basic.d.ts +2 -1
- package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Date/docs/examples/Error.d.ts +2 -1
- package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
- package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
- package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
- package/types/src/DefinitionList/Description.d.ts +3 -3
- package/types/src/DefinitionList/Term.d.ts +3 -3
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
- package/types/src/Divider/Divider.d.ts +1 -1
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
- package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
- package/types/src/Dropdown/Dropdown.d.ts +29 -44
- package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +3 -0
- package/types/src/DualListbox/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +1 -1
- package/types/src/DualListbox/Listbox.d.ts +1 -1
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
- package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
- package/types/src/EventListener/EventListener.d.ts +1 -1
- package/types/src/File/File.d.ts +26 -33
- package/types/src/File/Icon.d.ts +2 -1
- package/types/src/File/IconCloud.d.ts +2 -1
- package/types/src/File/Item.d.ts +1 -1
- package/types/src/File/PaperClip.d.ts +2 -1
- package/types/src/File/Retry.d.ts +2 -1
- package/types/src/File/Trash.d.ts +2 -1
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
- package/types/src/File/docs/examples/Disabled.d.ts +2 -2
- package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
- package/types/src/File/docs/examples/Error.d.ts +2 -1
- package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
- package/types/src/File/docs/examples/Multi.d.ts +2 -2
- package/types/src/File/docs/examples/Progress.d.ts +2 -1
- package/types/src/File/docs/examples/Single.d.ts +2 -2
- package/types/src/FormRows/FormRows.d.ts +20 -14
- package/types/src/FormRows/Row.d.ts +11 -7
- package/types/src/FormRows/SortableList.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
- package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
- package/types/src/Heading/Heading.d.ts +8 -20
- package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
- package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
- package/types/src/Heading/index.d.ts +1 -0
- package/types/src/Image/Image.d.ts +8 -19
- package/types/src/Image/docs/examples/Basic.d.ts +2 -1
- package/types/src/Image/icons/Cross.d.ts +2 -1
- package/types/src/JSONTree/JSONTree.d.ts +6 -10
- package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
- package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
- package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
- package/types/src/Layer/Layer.d.ts +8 -25
- package/types/src/Layer/LayerStack.d.ts +2 -3
- package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
- package/types/src/Layout/Layout.d.ts +22 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Layout/index.d.ts +2 -0
- package/types/src/Layout/test/Layout.unit.d.ts +1 -0
- package/types/src/Link/Link.d.ts +9 -22
- package/types/src/Link/docs/examples/Basic.d.ts +2 -1
- package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
- package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
- package/types/src/Link/icons/External.d.ts +2 -1
- package/types/src/List/Item.d.ts +1 -1
- package/types/src/List/List.d.ts +5 -17
- package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
- package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
- package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
- package/types/src/Markdown/Markdown.d.ts +50 -59
- package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
- package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
- package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
- package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
- package/types/src/Markdown/renderers/index.d.ts +5 -4
- package/types/src/Menu/Divider.d.ts +2 -1
- package/types/src/Menu/Heading.d.ts +3 -3
- package/types/src/Menu/Item.d.ts +14 -47
- package/types/src/Menu/Menu.d.ts +4 -19
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
- package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
- package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
- package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
- package/types/src/Menu/docs/examples/Links.d.ts +2 -1
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
- package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
- package/types/src/Menu/icons/External.d.ts +2 -1
- package/types/src/Message/Message.d.ts +4 -11
- package/types/src/Message/Title.d.ts +1 -1
- package/types/src/Message/docs/examples/Basic.d.ts +2 -1
- package/types/src/Message/docs/examples/Content.d.ts +2 -1
- package/types/src/Message/docs/examples/Fill.d.ts +2 -1
- package/types/src/Message/docs/examples/Removable.d.ts +2 -1
- package/types/src/MessageBar/MessageBar.d.ts +1 -1
- package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
- package/types/src/Modal/Body.d.ts +1 -1
- package/types/src/Modal/Footer.d.ts +9 -1
- package/types/src/Modal/Header.d.ts +7 -11
- package/types/src/Modal/Modal.d.ts +26 -32
- package/types/src/Modal/ModalContext.d.ts +2 -0
- package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
- package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Monogram/Monogram.d.ts +3 -7
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +4 -2
- package/types/src/Multiselect/Normal.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
- package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
- package/types/src/Number/Number.d.ts +46 -68
- package/types/src/Number/docs/examples/Basic.d.ts +2 -2
- package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Number/docs/examples/Error.d.ts +2 -1
- package/types/src/Number/docs/examples/Limits.d.ts +2 -2
- package/types/src/Number/docs/examples/Locale.d.ts +2 -2
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Number/utils.d.ts +28 -0
- package/types/src/Paginator/Button.d.ts +4 -8
- package/types/src/Paginator/Compact.d.ts +1 -1
- package/types/src/Paginator/PageControl.d.ts +1 -1
- package/types/src/Paginator/PageSelect.d.ts +1 -1
- package/types/src/Paginator/PageSeparator.d.ts +2 -1
- package/types/src/Paginator/Paginator.d.ts +15 -2
- package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +3 -0
- package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
- package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
- package/types/src/Paragraph/Paragraph.d.ts +3 -1
- package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paragraph/index.d.ts +1 -0
- package/types/src/Popover/Popover.d.ts +50 -72
- package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
- package/types/src/Popover/PopoverProvider.d.ts +23 -0
- package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/Popover/index.d.ts +2 -1
- package/types/src/Progress/Progress.d.ts +3 -4
- package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
- package/types/src/Progress/docs/examples/Type.d.ts +2 -1
- package/types/src/Prose/Prose.d.ts +29 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
- package/types/src/Prose/index.d.ts +2 -0
- package/types/src/Prose/test/Prose.unit.d.ts +1 -0
- package/types/src/RadioBar/Option.d.ts +2 -18
- package/types/src/RadioBar/RadioBar.d.ts +22 -39
- package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/RadioList/Option.d.ts +1 -1
- package/types/src/RadioList/RadioList.d.ts +5 -2
- package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Resize/Resize.d.ts +15 -23
- package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
- package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
- package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/Scroll.d.ts +37 -27
- package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
- package/types/src/Search/Option.d.ts +32 -32
- package/types/src/Search/Search.d.ts +4 -4
- package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Search/docs/examples/Loading.d.ts +2 -1
- package/types/src/Search/docs/examples/Options.d.ts +2 -1
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
- package/types/src/Search/docs/examples/Results.d.ts +2 -1
- package/types/src/Select/Option.d.ts +8 -21
- package/types/src/Select/OptionBase.d.ts +3 -8
- package/types/src/Select/Select.d.ts +62 -22
- package/types/src/Select/SelectAllOption.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +5 -8
- package/types/src/Select/docs/examples/Appearance.d.ts +2 -11
- package/types/src/Select/docs/examples/Basic.d.ts +2 -9
- package/types/src/Select/docs/examples/Children.d.ts +2 -9
- package/types/src/Select/docs/examples/Descriptions.d.ts +2 -9
- package/types/src/Select/docs/examples/Error.d.ts +2 -1
- package/types/src/Select/docs/examples/Fetching.d.ts +2 -22
- package/types/src/Select/docs/examples/Filter.d.ts +2 -9
- package/types/src/Select/docs/examples/Headings.d.ts +2 -9
- package/types/src/Select/docs/examples/Icons.d.ts +2 -1
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -24
- package/types/src/Select/docs/examples/Prefix.d.ts +2 -9
- package/types/src/Select/docs/examples/Truncate.d.ts +2 -9
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/SidePanel/SidePanel.d.ts +18 -16
- package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
- package/types/src/Slider/Slider.d.ts +32 -46
- package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
- package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Slider/docs/examples/Error.d.ts +2 -1
- package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
- package/types/src/SlidingPanels/Panel.d.ts +23 -20
- package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
- package/types/src/SplitButton/Item.d.ts +2 -2
- package/types/src/SplitButton/SplitButton.d.ts +1 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
- package/types/src/StaticContent/StaticContent.d.ts +1 -8
- package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
- package/types/src/StepBar/Step.d.ts +1 -1
- package/types/src/StepBar/StepBar.d.ts +2 -3
- package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
- package/types/src/StepBar/types.d.ts +2 -0
- package/types/src/Switch/Switch.d.ts +37 -23
- package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
- package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Switch/docs/examples/Error.d.ts +2 -1
- package/types/src/TabBar/Tab.d.ts +37 -44
- package/types/src/TabBar/TabBar.d.ts +21 -22
- package/types/src/TabBar/TabBarContext.d.ts +3 -5
- package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
- package/types/src/TabLayout/Panel.d.ts +6 -1
- package/types/src/TabLayout/TabLayout.d.ts +18 -31
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
- package/types/src/Table/Body.d.ts +6 -13
- package/types/src/Table/Caption.d.ts +1 -1
- package/types/src/Table/Cell.d.ts +40 -18
- package/types/src/Table/ExpandButton.d.ts +9 -3
- package/types/src/Table/Head.d.ts +40 -40
- package/types/src/Table/HeadCell.d.ts +49 -23
- package/types/src/Table/HeadDropdownCell.d.ts +58 -51
- package/types/src/Table/HeadInner.d.ts +1 -3
- package/types/src/Table/HeadTable.d.ts +23 -12
- package/types/src/Table/Row.d.ts +7 -14
- package/types/src/Table/RowDragCell.d.ts +2 -1
- package/types/src/Table/Table.d.ts +13 -19
- package/types/src/Table/Toggle.d.ts +1 -3
- package/types/src/Table/docs/examples/Basic.d.ts +2 -1
- package/types/src/Table/docs/examples/Click.d.ts +3 -16
- package/types/src/Table/docs/examples/ClickRows.d.ts +3 -16
- package/types/src/Table/docs/examples/Complex.d.ts +3 -50
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -13
- package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -17
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +3 -21
- package/types/src/Table/docs/examples/ReorderRows.d.ts +3 -21
- package/types/src/Table/docs/examples/Resizable.d.ts +3 -23
- package/types/src/Table/docs/examples/ResizableFill.d.ts +3 -23
- package/types/src/Table/docs/examples/RowActions.d.ts +3 -39
- package/types/src/Table/docs/examples/Selectable.d.ts +3 -18
- package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -11
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
- package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Text/IconOutlinedHide.d.ts +2 -1
- package/types/src/Text/IconOutlinedView.d.ts +2 -1
- package/types/src/Text/Text.d.ts +62 -112
- package/types/src/Text/docs/examples/Basic.d.ts +2 -1
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Text/docs/examples/Error.d.ts +2 -1
- package/types/src/Text/docs/examples/Inline.d.ts +2 -1
- package/types/src/Text/docs/examples/Password.d.ts +2 -1
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/TextArea.d.ts +49 -87
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
- package/types/src/Tooltip/InfoIcon.d.ts +2 -1
- package/types/src/Tooltip/Tooltip.d.ts +9 -3
- package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
- package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
- package/types/src/Tree/Tree.d.ts +1 -1
- package/types/src/Tree/TreeItem.d.ts +1 -1
- package/types/src/Typography/Typography.d.ts +10 -19
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
- package/types/src/utils/types.d.ts +1 -0
- package/useResizeObserver.js +122 -90
- package/Concertina.d.ts +0 -2
- package/Concertina.js +0 -963
- package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
- package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
- package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Button/icons/External.d.ts +0 -2
- package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/CloseButton/CloseButton.d.ts +0 -21
- package/types/src/CloseButton/index.d.ts +0 -1
- package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
- package/types/src/Concertina/Concertina.d.ts +0 -46
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
- package/types/src/Concertina/Heading.d.ts +0 -35
- package/types/src/Concertina/Panel.d.ts +0 -59
- package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
- package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
- package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
- package/types/src/Concertina/index.d.ts +0 -2
- package/types/src/Concertina/types.d.ts +0 -1
- package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
- package/types/src/Link/docs/examples/Inline.d.ts +0 -2
- package/types/src/Message/Link.d.ts +0 -37
- package/types/src/Number/IncrementIcon.d.ts +0 -2
- package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
- package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
- package/types/src/Popover/PopoverContext.d.ts +0 -6
- package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
- package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Select/icons/Search.d.ts +0 -2
- package/types/src/Switch/CheckIcon.d.ts +0 -1
- package/types/src/Table/DragHandle.d.ts +0 -12
- package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
- package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
- package/types/src/Text/docs/examples/Search.d.ts +0 -2
- package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
- package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
- package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import { TableRequestMoveColumnHandler } from './Table';
|
|
3
|
-
import
|
|
4
|
-
import { ClassComponentProps } from '../utils/types';
|
|
4
|
+
import { ComponentProps } from '../utils/types';
|
|
5
5
|
type HeadAutosizeColumnHandler = (event: React.MouseEvent<HTMLHRElement>, data: {
|
|
6
6
|
columnId: any;
|
|
7
7
|
index: number;
|
|
@@ -22,20 +22,18 @@ interface HeadPropsBase {
|
|
|
22
22
|
/** @private. */
|
|
23
23
|
actionsColumnWidth?: number;
|
|
24
24
|
/** @private. The minimum width of each column */
|
|
25
|
-
cellMinWidth
|
|
25
|
+
cellMinWidth?: number;
|
|
26
26
|
/**
|
|
27
27
|
* Must be `Table.HeadCell`s or `Table.HeadDropdownCell`s.
|
|
28
28
|
*/
|
|
29
29
|
children?: React.ReactNode;
|
|
30
|
-
/** @private. */
|
|
31
|
-
dragPosition?: number;
|
|
32
|
-
/** @private. */
|
|
33
|
-
dragIndex?: number;
|
|
34
30
|
/**
|
|
35
31
|
* A React ref which is set to the DOM element when the component mounts and null when it unmounts.
|
|
36
32
|
*/
|
|
37
33
|
elementRef?: React.Ref<HTMLTableSectionElement>;
|
|
38
34
|
/** @private. */
|
|
35
|
+
guidelineIndex?: number;
|
|
36
|
+
/** @private. */
|
|
39
37
|
hasDragColumn?: boolean;
|
|
40
38
|
/** @private. */
|
|
41
39
|
hasInfoColumn?: boolean;
|
|
@@ -51,38 +49,40 @@ interface HeadPropsBase {
|
|
|
51
49
|
onRequestToggleAllRows?: () => void;
|
|
52
50
|
/** @private. */
|
|
53
51
|
rowSelection?: 'all' | 'some' | 'none';
|
|
54
|
-
/** @private */
|
|
55
|
-
resizableFillLayout?: boolean;
|
|
56
|
-
}
|
|
57
|
-
declare const defaultProps: Required<Pick<HeadPropsBase, 'actions' | 'cellMinWidth'>>;
|
|
58
|
-
type HeadProps = ClassComponentProps<HeadPropsBase, typeof defaultProps, 'thead'>;
|
|
59
|
-
interface HeadState {
|
|
60
|
-
dragColumnId: any;
|
|
61
52
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
53
|
+
type HeadProps = ComponentProps<HeadPropsBase, 'thead'>;
|
|
54
|
+
declare const getCellWidths: (headEl: HTMLTableSectionElement | null) => number[];
|
|
55
|
+
declare function Head({ actions, actionsColumnWidth, cellMinWidth, children, elementRef, guidelineIndex, hasDragColumn, hasInfoColumn, onAutosizeColumn, onDragStart, onRequestMoveColumn, onRequestResizeColumn, onRequestToggleAllRows, rowSelection, ...otherProps }: HeadProps): React.JSX.Element;
|
|
56
|
+
declare namespace Head {
|
|
57
|
+
var propTypes: {
|
|
58
|
+
/** @private. */
|
|
59
|
+
actions: PropTypes.Requireable<PropTypes.ReactNodeLike[]>;
|
|
60
|
+
/** @private. */
|
|
61
|
+
actionsColumnWidth: PropTypes.Requireable<number>;
|
|
62
|
+
/** @private */
|
|
63
|
+
cellMinWidth: PropTypes.Requireable<number>;
|
|
64
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
65
|
+
elementRef: PropTypes.Requireable<object>;
|
|
66
|
+
/** @private. */
|
|
67
|
+
guidelineIndex: PropTypes.Requireable<number>;
|
|
68
|
+
/** @private. */
|
|
69
|
+
hasDragColumn: PropTypes.Requireable<boolean>;
|
|
70
|
+
/** @private. */
|
|
71
|
+
hasInfoColumn: PropTypes.Requireable<boolean>;
|
|
72
|
+
/** @private. */
|
|
73
|
+
onAutosizeColumn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
74
|
+
/** @private. */
|
|
75
|
+
onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
76
|
+
/** @private. */
|
|
77
|
+
onRequestMoveColumn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
78
|
+
/** @private. */
|
|
79
|
+
onRequestResizeColumn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
80
|
+
/** @private. */
|
|
81
|
+
onRequestToggleAllRows: PropTypes.Requireable<(...args: any[]) => any>;
|
|
82
|
+
/** @private. */
|
|
83
|
+
rowSelection: PropTypes.Requireable<string>;
|
|
84
|
+
};
|
|
85
|
+
var splunkUiType: string;
|
|
86
86
|
}
|
|
87
87
|
export default Head;
|
|
88
|
-
export { HeadAutosizeColumnHandler, HeadDragStartHandler, HeadRequestMoveColumnHandler, HeadRequestResizeColumnHandler, };
|
|
88
|
+
export { HeadAutosizeColumnHandler, HeadDragStartHandler, HeadRequestMoveColumnHandler, HeadRequestResizeColumnHandler, getCellWidths, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import { HeadAutosizeColumnHandler, HeadRequestMoveColumnHandler, HeadRequestResizeColumnHandler } from './Head';
|
|
3
|
-
import {
|
|
4
|
-
import TableContext from './TableContext';
|
|
4
|
+
import { ComponentProps } from '../utils/types';
|
|
5
5
|
type HeadCellAutosizeColumnHandler = HeadAutosizeColumnHandler;
|
|
6
6
|
type HeadCellDragStartHandler = (index: number | undefined, columnId: any) => void;
|
|
7
7
|
type HeadCellKeyDownHandler = (event: React.KeyboardEvent<HTMLTableCellElement>, data: {
|
|
@@ -33,8 +33,6 @@ interface HeadCellPropsBase {
|
|
|
33
33
|
* A React ref which is set to the DOM element when the component mounts and null when it unmounts.
|
|
34
34
|
*/
|
|
35
35
|
elementRef?: React.Ref<HTMLTableCellElement>;
|
|
36
|
-
/** @private Indicates the presence of actions. */
|
|
37
|
-
hasActionsHead?: boolean;
|
|
38
36
|
/** @private The index of the cell, skipping the info column. */
|
|
39
37
|
index?: number;
|
|
40
38
|
/** @private. */
|
|
@@ -94,24 +92,52 @@ interface HeadCellPropsBase {
|
|
|
94
92
|
*/
|
|
95
93
|
zIndex?: number;
|
|
96
94
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
95
|
+
type HeadCellProps = ComponentProps<HeadCellPropsBase, 'th'>;
|
|
96
|
+
declare function HeadCell({ align, appearClickable, children, columnId, elementRef, id, index, onAutosizeColumn, onClick, onDragStart, onKeyDown, onRequestMoveColumn, onRequestResize, onSort, resizable, showGuideline, sortDir, sortKey, style, truncate: truncateProp, variant, visible, width, zIndex, ...otherProps }: HeadCellProps): React.JSX.Element;
|
|
97
|
+
declare namespace HeadCell {
|
|
98
|
+
var propTypes: {
|
|
99
|
+
align: PropTypes.Requireable<string>;
|
|
100
|
+
/** @private Used to set the $clickable appearance without an onClick */
|
|
101
|
+
appearClickable: PropTypes.Requireable<boolean>;
|
|
102
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
103
|
+
columnId: PropTypes.Requireable<any>;
|
|
104
|
+
elementRef: PropTypes.Requireable<object>;
|
|
105
|
+
/** @private The index of the cell, skipping the info column. */
|
|
106
|
+
index: PropTypes.Requireable<number>;
|
|
107
|
+
/** @private. */
|
|
108
|
+
onAutosizeColumn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
109
|
+
/** @private. */
|
|
110
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
111
|
+
/** @private. */
|
|
112
|
+
onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
113
|
+
/**
|
|
114
|
+
* @private. Passed through and works as expected.
|
|
115
|
+
*/
|
|
116
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
117
|
+
/** @private. */
|
|
118
|
+
onRequestMoveColumn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
119
|
+
/** @private. */
|
|
120
|
+
onRequestResize: PropTypes.Requireable<(...args: any[]) => any>;
|
|
121
|
+
onSort: PropTypes.Requireable<(...args: any[]) => any>;
|
|
122
|
+
resizable: PropTypes.Requireable<boolean>;
|
|
123
|
+
/** @private. */
|
|
124
|
+
showGuideline: PropTypes.Requireable<string>;
|
|
125
|
+
sortDir: PropTypes.Requireable<string>;
|
|
126
|
+
sortKey: PropTypes.Requireable<string>;
|
|
127
|
+
truncate: PropTypes.Requireable<boolean>;
|
|
128
|
+
/** @private. */
|
|
129
|
+
variant: PropTypes.Requireable<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Used internally to suppress focus and id when this `HeadCell` is superseded by one in an
|
|
132
|
+
* overlaid `HeadTable` for user interactions.
|
|
133
|
+
* @private
|
|
134
|
+
*/
|
|
135
|
+
visible: PropTypes.Requireable<boolean>;
|
|
136
|
+
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
137
|
+
/** @private. */
|
|
138
|
+
zIndex: PropTypes.Requireable<number>;
|
|
139
|
+
};
|
|
140
|
+
var splunkUiType: string;
|
|
115
141
|
}
|
|
116
142
|
export default HeadCell;
|
|
117
143
|
export { HeadCellDragStartHandler, HeadCellKeyDownHandler, HeadCellRequestMoveColumnHandler, HeadCellSortDir, HeadCellSortHandler, };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import { HeadAutosizeColumnHandler, HeadRequestMoveColumnHandler, HeadRequestResizeColumnHandler } from './Head';
|
|
3
4
|
import { HeadCellDragStartHandler, HeadCellKeyDownHandler } from './HeadCell';
|
|
4
|
-
import {
|
|
5
|
-
import TableContext from './TableContext';
|
|
5
|
+
import { ComponentProps } from '../utils/types';
|
|
6
6
|
/** @public */
|
|
7
7
|
type HeadDropdownCellPossibleCloseReason = 'clickAway' | 'contentClick' | 'escapeKey' | 'offScreen' | 'tabKey' | 'toggleClick';
|
|
8
8
|
type HeadDropdownCellAutosizeColumnHandler = HeadAutosizeColumnHandler;
|
|
@@ -25,6 +25,10 @@ type HeadDropdownCellRequestResizeHandler = HeadRequestResizeColumnHandler;
|
|
|
25
25
|
interface HeadDropdownCellPropsBase {
|
|
26
26
|
/** Align the text in the label. */
|
|
27
27
|
align?: 'left' | 'center' | 'right';
|
|
28
|
+
/**
|
|
29
|
+
* A React ref which is set to the button element when the component mounts and null when it unmounts.
|
|
30
|
+
*/
|
|
31
|
+
buttonRef?: React.Ref<HTMLButtonElement>;
|
|
28
32
|
/**
|
|
29
33
|
* If there is not enough room to render the `Popover` in a direction, this option
|
|
30
34
|
* enables it to be rendered over the Head.
|
|
@@ -39,13 +43,6 @@ interface HeadDropdownCellPropsBase {
|
|
|
39
43
|
* An id that will be returned in the draggable, open, close and resize events.
|
|
40
44
|
*/
|
|
41
45
|
columnId?: any;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated This prop has been marked for deprecation and will be removed in a future major version.
|
|
44
|
-
*
|
|
45
|
-
* The default placement of the `Popover`. It might be rendered in a different direction
|
|
46
|
-
* depending upon the space available and the `repositionMode`.
|
|
47
|
-
*/
|
|
48
|
-
defaultPlacement?: 'above' | 'below' | 'left' | 'right' | 'vertical' | 'horizontal';
|
|
49
46
|
/**
|
|
50
47
|
* A React ref which is set to the DOM element when the component mounts and null when it unmounts.
|
|
51
48
|
*/
|
|
@@ -136,47 +133,57 @@ interface HeadDropdownCellPropsBase {
|
|
|
136
133
|
*/
|
|
137
134
|
zIndex?: number;
|
|
138
135
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
136
|
+
type HeadDropdownCellProps = ComponentProps<HeadDropdownCellPropsBase, 'th'>;
|
|
137
|
+
declare function HeadDropdownCell({ align, canCoverHead, children, closeReasons, columnId, elementRef, focusToggleReasons, id, index, buttonRef, label, onAutosizeColumn, onDragStart, onKeyDown, onRequestClose, onRequestMoveColumn, onRequestOpen, onRequestResize, open, repositionMode, resizable, retainFocus, showGuideline, style, takeFocus, truncate, variant, visible, width, zIndex, ...otherProps }: HeadDropdownCellProps): React.JSX.Element;
|
|
138
|
+
declare namespace HeadDropdownCell {
|
|
139
|
+
var propTypes: {
|
|
140
|
+
align: PropTypes.Requireable<string>;
|
|
141
|
+
buttonRef: PropTypes.Requireable<object>;
|
|
142
|
+
canCoverHead: PropTypes.Requireable<boolean>;
|
|
143
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
144
|
+
closeReasons: PropTypes.Requireable<(HeadDropdownCellPossibleCloseReason | null | undefined)[]>;
|
|
145
|
+
columnId: PropTypes.Requireable<any>;
|
|
146
|
+
elementRef: PropTypes.Requireable<object>;
|
|
147
|
+
focusToggleReasons: PropTypes.Requireable<(HeadDropdownCellPossibleCloseReason | null | undefined)[]>;
|
|
148
|
+
/** @private The index of the cell, skipping the info column. */
|
|
149
|
+
index: PropTypes.Requireable<number>;
|
|
150
|
+
label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
151
|
+
/** @private. */
|
|
152
|
+
onAutosizeColumn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
153
|
+
/** @private. */
|
|
154
|
+
onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
155
|
+
/**
|
|
156
|
+
* @private. This will be passed through, and will work as expected.
|
|
157
|
+
*/
|
|
158
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
159
|
+
onRequestClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
160
|
+
/** @private. */
|
|
161
|
+
onRequestMoveColumn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
162
|
+
onRequestOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
163
|
+
/** @private. */
|
|
164
|
+
onRequestResize: PropTypes.Requireable<(...args: any[]) => any>;
|
|
165
|
+
open: PropTypes.Requireable<boolean>;
|
|
166
|
+
repositionMode: PropTypes.Requireable<string>;
|
|
167
|
+
resizable: PropTypes.Requireable<boolean>;
|
|
168
|
+
retainFocus: PropTypes.Requireable<boolean>;
|
|
169
|
+
/** @private. */
|
|
170
|
+
showGuideline: PropTypes.Requireable<string>;
|
|
171
|
+
takeFocus: PropTypes.Requireable<boolean>;
|
|
172
|
+
truncate: PropTypes.Requireable<boolean>;
|
|
173
|
+
/**
|
|
174
|
+
* @private
|
|
175
|
+
* Used internally to suppress focus when this `HeadDropdownCell` is superseded by one in an
|
|
176
|
+
* overlaid `HeadTable` for user interactions.
|
|
177
|
+
*/
|
|
178
|
+
visible: PropTypes.Requireable<boolean>;
|
|
179
|
+
width: PropTypes.Requireable<number>;
|
|
180
|
+
/** @private. */
|
|
181
|
+
variant: PropTypes.Requireable<string>;
|
|
182
|
+
/** @private. */
|
|
183
|
+
zIndex: PropTypes.Requireable<number>;
|
|
184
|
+
};
|
|
185
|
+
var splunkUiType: string;
|
|
186
|
+
var possibleCloseReasons: HeadDropdownCellPossibleCloseReason[];
|
|
180
187
|
}
|
|
181
188
|
export default HeadDropdownCell;
|
|
182
189
|
export { HeadDropdownCellDragStartHandler, HeadDropdownCellPossibleCloseReason, HeadDropdownCellRequestCloseHandler, HeadDropdownCellRequestMoveColumnHandler, HeadDropdownCellRequestOpenHandler, };
|
|
@@ -11,7 +11,6 @@ interface HeadInnerPropsBase {
|
|
|
11
11
|
columnId?: any;
|
|
12
12
|
elementRef?: React.Ref<HTMLButtonElement | HTMLDivElement>;
|
|
13
13
|
focusWithin?: boolean;
|
|
14
|
-
hasActionsHead?: boolean;
|
|
15
14
|
id?: string;
|
|
16
15
|
index?: number;
|
|
17
16
|
isMenu?: boolean;
|
|
@@ -27,7 +26,7 @@ interface HeadInnerPropsBase {
|
|
|
27
26
|
variant?: 'toggleAll' | 'info' | 'actions';
|
|
28
27
|
}
|
|
29
28
|
type HeadInnerProps = ComponentProps<HeadInnerPropsBase, 'span'>;
|
|
30
|
-
declare function HeadInner({ index, clickable, columnId, elementRef, focusWithin, id, width: widthProp, onDragEnd, onAutosizeColumn, align, label,
|
|
29
|
+
declare function HeadInner({ index, clickable, columnId, elementRef, focusWithin, id, width: widthProp, onDragEnd, onAutosizeColumn, align, label, isMenu, onDragStart, onRequestResize, resizable, sortDir, truncate, variant, ...otherProps }: HeadInnerProps): React.JSX.Element;
|
|
31
30
|
declare namespace HeadInner {
|
|
32
31
|
var propTypes: {
|
|
33
32
|
align: PropTypes.Requireable<string>;
|
|
@@ -35,7 +34,6 @@ declare namespace HeadInner {
|
|
|
35
34
|
columnId: PropTypes.Requireable<any>;
|
|
36
35
|
elementRef: PropTypes.Requireable<object>;
|
|
37
36
|
focusWithin: PropTypes.Requireable<boolean>;
|
|
38
|
-
hasActionsHead: PropTypes.Requireable<boolean>;
|
|
39
37
|
id: PropTypes.Requireable<string>;
|
|
40
38
|
index: PropTypes.Requireable<number>;
|
|
41
39
|
isMenu: PropTypes.Requireable<boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { ComponentProps } from '../utils/types';
|
|
4
4
|
interface HeadTablePropsBase {
|
|
5
5
|
cellWidths: number[];
|
|
6
6
|
dragIndex?: number;
|
|
@@ -18,19 +18,30 @@ interface HeadTablePropsBase {
|
|
|
18
18
|
top: number;
|
|
19
19
|
width: number;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
type HeadTableProps = ClassComponentProps<HeadTablePropsBase, typeof defaultProps, 'table'>;
|
|
21
|
+
type HeadTableProps = ComponentProps<HeadTablePropsBase, 'table'>;
|
|
23
22
|
/**
|
|
24
23
|
* @private
|
|
25
24
|
* HeadTable is an internal component that provides a detached table head that can
|
|
26
25
|
* then be positioned in different ways outside of the main table.
|
|
27
26
|
*/
|
|
28
|
-
declare
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
declare function HeadTable({ cellWidths, elementRef, hasDragColumn, hasRowExpansion, hasRowSelection, headType, horizontalOffset, isFixedColumn, tableStyle, tableWidth, tHead, top, width, ...otherProps }: HeadTableProps): React.JSX.Element;
|
|
28
|
+
declare namespace HeadTable {
|
|
29
|
+
var propTypes: {
|
|
30
|
+
cellWidths: PropTypes.Validator<(number | null | undefined)[]>;
|
|
31
|
+
dragIndex: PropTypes.Requireable<number>;
|
|
32
|
+
elementRef: PropTypes.Requireable<object>;
|
|
33
|
+
hasDragColumn: PropTypes.Requireable<boolean>;
|
|
34
|
+
hasRowExpansion: PropTypes.Requireable<boolean>;
|
|
35
|
+
hasRowSelection: PropTypes.Requireable<boolean>;
|
|
36
|
+
headType: PropTypes.Validator<string>;
|
|
37
|
+
horizontalOffset: PropTypes.Requireable<number>;
|
|
38
|
+
isFixedColumn: PropTypes.Requireable<boolean>;
|
|
39
|
+
rowSelection: PropTypes.Requireable<string>;
|
|
40
|
+
tableStyle: PropTypes.Requireable<object>;
|
|
41
|
+
tableWidth: PropTypes.Validator<number>;
|
|
42
|
+
tHead: PropTypes.Validator<PropTypes.ReactElementLike>;
|
|
43
|
+
top: PropTypes.Validator<number>;
|
|
44
|
+
width: PropTypes.Validator<number>;
|
|
45
|
+
};
|
|
35
46
|
}
|
|
36
47
|
export default HeadTable;
|
package/types/src/Table/Row.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { TableRequestMoveRowHandler } from './Table';
|
|
4
|
-
import {
|
|
4
|
+
import { ComponentProps } from '../utils/types';
|
|
5
5
|
/** @public */
|
|
6
6
|
type RowActionPrimaryClickHandler = (event: React.MouseEvent, data?: any) => void;
|
|
7
7
|
/** @public */
|
|
@@ -93,10 +93,9 @@ interface RowPropsBase {
|
|
|
93
93
|
/** @private. */
|
|
94
94
|
stripe?: 'odd' | 'even' | 'none';
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
declare
|
|
99
|
-
declare namespace RowBase {
|
|
96
|
+
type RowProps = ComponentProps<RowPropsBase, 'tr'>;
|
|
97
|
+
declare function Row(props: RowProps): React.JSX.Element;
|
|
98
|
+
declare namespace Row {
|
|
100
99
|
var propTypes: {
|
|
101
100
|
/** @private. Generally passed by Table rather than added directly. */
|
|
102
101
|
activeElementId: PropTypes.Requireable<string>;
|
|
@@ -136,13 +135,7 @@ declare namespace RowBase {
|
|
|
136
135
|
/** @private. */
|
|
137
136
|
stripe: PropTypes.Requireable<string>;
|
|
138
137
|
};
|
|
139
|
-
|
|
140
|
-
declare class Row extends Component<RowProps, {}> {
|
|
141
|
-
static splunkUiType: string;
|
|
142
|
-
static propTypes: React.WeakValidationMap<RowProps>;
|
|
143
|
-
static defaultProps: Required<Pick<RowPropsBase, "stripe" | "primaryColumnIndex">>;
|
|
144
|
-
render(): JSX.Element;
|
|
138
|
+
var splunkUiType: string;
|
|
145
139
|
}
|
|
146
140
|
export default Row;
|
|
147
|
-
export { RowActionPrimaryClickHandler, RowActionSecondaryClickHandler,
|
|
148
|
-
RowClickHandler, RowRequestExpansionHandler, RowRequestMoveRowHandler, RowRequestToggleHandler, RowExpansionHandler, };
|
|
141
|
+
export { RowActionPrimaryClickHandler, RowActionSecondaryClickHandler, RowClickHandler, RowRequestExpansionHandler, RowRequestMoveRowHandler, RowRequestToggleHandler, RowExpansionHandler, };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
import type { DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
3
4
|
import { ComponentProps } from '../utils/types';
|
|
@@ -6,7 +7,7 @@ interface RowDragCellPropsBase {
|
|
|
6
7
|
listeners?: DraggableSyntheticListeners;
|
|
7
8
|
}
|
|
8
9
|
type RowDragCellProps = ComponentProps<RowDragCellPropsBase, 'td'>;
|
|
9
|
-
declare function RowDragCell({ listeners, setActivatorNodeRef, ...otherProps }: RowDragCellProps): JSX.Element;
|
|
10
|
+
declare function RowDragCell({ listeners, setActivatorNodeRef, ...otherProps }: RowDragCellProps): React.JSX.Element;
|
|
10
11
|
declare namespace RowDragCell {
|
|
11
12
|
var propTypes: {
|
|
12
13
|
setActivatorNodeRef: PropTypes.Validator<(...args: any[]) => any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Body from './Body';
|
|
4
4
|
import Caption from './Caption';
|
|
@@ -7,7 +7,7 @@ import Head from './Head';
|
|
|
7
7
|
import HeadCell, { HeadCellSortHandler } from './HeadCell';
|
|
8
8
|
import HeadDropdownCell, { HeadDropdownCellPossibleCloseReason, HeadDropdownCellRequestCloseHandler, HeadDropdownCellRequestOpenHandler } from './HeadDropdownCell';
|
|
9
9
|
import Row, { RowActionPrimaryClickHandler, RowActionSecondaryClickHandler, RowClickHandler, RowRequestToggleHandler } from './Row';
|
|
10
|
-
import {
|
|
10
|
+
import { ComponentProps } from '../utils/types';
|
|
11
11
|
/** @public */
|
|
12
12
|
type TableRequestMoveColumnHandler = (data: {
|
|
13
13
|
columnId: any;
|
|
@@ -131,10 +131,9 @@ interface TablePropsBase {
|
|
|
131
131
|
*/
|
|
132
132
|
resizableFillLayout?: boolean;
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
declare
|
|
137
|
-
declare namespace TableBase {
|
|
134
|
+
type TableProps = ComponentProps<TablePropsBase, 'div'>;
|
|
135
|
+
declare function Table(props: TableProps): React.JSX.Element;
|
|
136
|
+
declare namespace Table {
|
|
138
137
|
var propTypes: {
|
|
139
138
|
actions: PropTypes.Requireable<(PropTypes.ReactElementLike | null | undefined)[]>;
|
|
140
139
|
actionsColumnWidth: PropTypes.Requireable<number>;
|
|
@@ -157,19 +156,14 @@ declare namespace TableBase {
|
|
|
157
156
|
onRequestResizeColumn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
158
157
|
resizableFillLayout: PropTypes.Requireable<boolean>;
|
|
159
158
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
static HeadDropdownCell: typeof HeadDropdownCell;
|
|
168
|
-
static Body: typeof Body;
|
|
169
|
-
static Row: typeof Row;
|
|
170
|
-
static Cell: typeof Cell;
|
|
171
|
-
render(): JSX.Element;
|
|
159
|
+
var Body: typeof import("./Body").default;
|
|
160
|
+
var Caption: typeof import("./Caption").default;
|
|
161
|
+
var Cell: typeof import("./Cell").default;
|
|
162
|
+
var Head: typeof import("./Head").default;
|
|
163
|
+
var HeadCell: typeof import("./HeadCell").default;
|
|
164
|
+
var HeadDropdownCell: typeof import("./HeadDropdownCell").default;
|
|
165
|
+
var Row: typeof import("./Row").default;
|
|
172
166
|
}
|
|
173
167
|
export default Table;
|
|
174
|
-
export { Body, Caption, Cell, Head, HeadCell, HeadDropdownCell, Row
|
|
168
|
+
export { Body, Caption, Cell, Head, HeadCell, HeadDropdownCell, Row };
|
|
175
169
|
export type { CellClickHandler, HeadCellSortHandler, HeadDropdownCellPossibleCloseReason, HeadDropdownCellRequestCloseHandler, HeadDropdownCellRequestOpenHandler, RowActionPrimaryClickHandler, RowActionSecondaryClickHandler, RowClickHandler, RowRequestToggleHandler, TableRequestMoveColumnHandler, TableRequestMoveRowHandler, TableRequestResizeColumnHandler, };
|
|
@@ -2,16 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { ComponentProps } from '../utils/types';
|
|
4
4
|
interface TogglePropsBase {
|
|
5
|
-
allRows?: boolean;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
|
|
8
7
|
selected?: boolean | 'some';
|
|
9
8
|
}
|
|
10
9
|
type ToggleProps = ComponentProps<TogglePropsBase, 'button'>;
|
|
11
|
-
declare function Toggle({
|
|
10
|
+
declare function Toggle({ disabled, onClick, selected, ...otherProps }: ToggleProps): React.JSX.Element;
|
|
12
11
|
declare namespace Toggle {
|
|
13
12
|
var propTypes: {
|
|
14
|
-
allRows: PropTypes.Requireable<boolean>;
|
|
15
13
|
disabled: PropTypes.Requireable<boolean>;
|
|
16
14
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
15
|
selected: PropTypes.Requireable<string | boolean>;
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
email: string;
|
|
5
|
-
name: string;
|
|
6
|
-
}
|
|
7
|
-
interface ExampleState {
|
|
8
|
-
clickedRow?: string;
|
|
9
|
-
data: Row[];
|
|
10
|
-
}
|
|
11
|
-
export default class Click extends Component<{}, ExampleState> {
|
|
12
|
-
constructor(props: {});
|
|
13
|
-
handlerClick: CellClickHandler;
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare function Click(): React.JSX.Element;
|
|
3
|
+
export default Click;
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
email: string;
|
|
5
|
-
name: string;
|
|
6
|
-
}
|
|
7
|
-
interface ExampleState {
|
|
8
|
-
clickedRow?: string;
|
|
9
|
-
data: Row[];
|
|
10
|
-
}
|
|
11
|
-
export default class ClickRows extends Component<{}, ExampleState> {
|
|
12
|
-
constructor(props: {});
|
|
13
|
-
handleClick: RowClickHandler;
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare function ClickRows(): React.JSX.Element;
|
|
3
|
+
export default ClickRows;
|