@splunk/react-ui 5.1.0 → 5.3.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/Accordion.js +60 -39
- package/Anchor.js +9 -9
- package/Animation.js +2 -2
- package/Avatar.js +63 -58
- package/Box.js +4 -3
- package/Breadcrumbs.js +13 -13
- package/Button.js +12 -12
- package/ButtonGroup.js +9 -9
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +54 -0
- package/Calendar.js +69 -65
- package/Card.js +286 -255
- package/CardLayout.js +10 -10
- package/Checkbox.d.ts +2 -0
- package/Checkbox.js +350 -0
- package/Chip.js +31 -31
- package/Clickable.js +29 -29
- package/Code.js +161 -142
- package/CollapsiblePanel.js +200 -224
- package/Color.js +14 -12
- package/ColumnLayout.js +16 -16
- package/ComboBox.js +110 -110
- package/ControlGroup.js +101 -100
- package/Date.js +144 -140
- package/DefinitionList.js +137 -94
- package/Divider.js +2 -2
- package/Dropdown.js +2 -2
- package/DualListbox.js +446 -385
- package/File.js +121 -118
- package/FormRows.js +15 -15
- package/Heading.js +15 -15
- package/Image.js +31 -31
- package/JSONTree.js +543 -513
- package/Layer.js +4 -1
- package/Layout.js +10 -10
- package/Link.js +13 -13
- package/List.js +24 -24
- package/MIGRATION.md +27 -0
- package/Markdown.js +237 -226
- package/Menu.js +63 -60
- package/Message.js +20 -20
- package/MessageBar.js +13 -13
- package/Modal.js +36 -36
- package/Monogram.js +94 -68
- package/Multiselect.js +1032 -910
- package/Number.js +18 -18
- package/Paginator.js +41 -40
- package/Paragraph.js +10 -10
- package/Popover.js +243 -208
- package/Progress.js +6 -6
- package/Prose.js +16 -16
- package/RadioBar.js +118 -118
- package/RadioList.js +137 -113
- package/Resize.js +20 -20
- package/ResultsMenu.js +50 -49
- package/ScreenReaderContent.js +13 -13
- package/Scroll.js +25 -24
- package/Search.js +143 -139
- package/Select.js +942 -838
- package/SidePanel.js +29 -29
- package/Slider.js +30 -30
- package/SlidingPanels.js +28 -28
- package/SplitButton.js +100 -72
- package/StaticContent.js +6 -6
- package/StepBar.js +8 -8
- package/Switch.js +197 -229
- package/TabBar.js +293 -270
- package/TabLayout.js +68 -68
- package/Table.js +825 -800
- package/Text.js +182 -208
- package/TextArea.js +235 -226
- package/Tooltip.js +149 -144
- package/TransitionOpen.js +11 -11
- package/Tree.js +194 -189
- package/Typography.js +15 -15
- package/WaitSpinner.js +6 -6
- package/package.json +19 -23
- package/tsconfig.check-docs.json +8 -0
- package/types/src/Accordion/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Accordion/docs/examples/Inset.d.ts +4 -0
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/Anchor/docs/examples/Basic.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +4 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +4 -0
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +4 -0
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +3 -0
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +4 -0
- package/types/src/Button/docs/examples/Basic.d.ts +3 -0
- package/types/src/Button/docs/examples/Block.d.ts +4 -0
- package/types/src/Button/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Button/docs/examples/Icons.d.ts +4 -0
- package/types/src/Button/docs/examples/Menus.d.ts +4 -0
- package/types/src/Button/docs/examples/To.d.ts +4 -0
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +3 -0
- package/types/src/Card/docs/examples/Basic.d.ts +4 -0
- package/types/src/Card/docs/examples/Clickable.d.ts +4 -0
- package/types/src/Card/docs/examples/Full.d.ts +4 -0
- package/types/src/Card/docs/examples/HeadingTitle.d.ts +4 -0
- package/types/src/Card/docs/examples/Images.d.ts +4 -0
- package/types/src/Card/docs/examples/Selectable.d.ts +4 -0
- package/types/src/CardLayout/docs/examples/Basic.d.ts +3 -0
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Checkbox/Checkbox.d.ts +90 -0
- package/types/src/Checkbox/docs/examples/Basic.d.ts +7 -0
- package/types/src/Checkbox/docs/examples/Disabled.d.ts +6 -0
- package/types/src/Checkbox/docs/examples/Error.d.ts +6 -0
- package/types/src/Checkbox/docs/examples/Uncontrolled.d.ts +7 -0
- package/types/src/Checkbox/index.d.ts +2 -0
- package/types/src/Chip/docs/examples/Appearance.d.ts +3 -0
- package/types/src/Chip/docs/examples/CustomColors.d.ts +4 -0
- package/types/src/Chip/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Chip/docs/examples/Icon.d.ts +3 -0
- package/types/src/Chip/docs/examples/Removable.d.ts +3 -0
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +4 -0
- package/types/src/Clickable/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Code/Code.d.ts +4 -1
- package/types/src/Code/LineHighlights.d.ts +1 -0
- package/types/src/Code/LineNumbers.d.ts +2 -1
- package/types/src/Code/docs/examples/CustomizeContainer.d.ts +7 -0
- package/types/src/Code/docs/examples/Default.d.ts +3 -0
- package/types/src/Code/docs/examples/HideIndent.d.ts +4 -0
- package/types/src/Code/docs/examples/Language.d.ts +4 -0
- package/types/src/Code/docs/examples/LineHighlights.d.ts +4 -0
- package/types/src/Code/docs/examples/LineNumbers.d.ts +4 -0
- package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +7 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +4 -0
- package/types/src/Color/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +4 -0
- package/types/src/Color/docs/examples/HideInput.d.ts +4 -0
- package/types/src/Color/docs/examples/Null.d.ts +4 -0
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +4 -0
- package/types/src/Color/docs/examples/Transparent.d.ts +4 -0
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Headings.d.ts +3 -0
- package/types/src/ComboBox/docs/examples/Label.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +7 -3
- package/types/src/ControlGroup/docs/examples/Error.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Required.d.ts +4 -0
- package/types/src/Date/Date.d.ts +7 -1
- package/types/src/Date/docs/examples/Basic.d.ts +3 -0
- package/types/src/Date/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Date/docs/examples/CustomDate.d.ts +4 -0
- package/types/src/Date/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Date/docs/examples/Error.d.ts +3 -0
- package/types/src/Date/docs/examples/HighlightToday.d.ts +4 -0
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +4 -0
- package/types/src/DefinitionList/DefinitionList.d.ts +27 -4
- package/types/src/DefinitionList/DefinitionListContext.d.ts +2 -0
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/CustomizedWidths.d.ts +7 -0
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +4 -0
- package/types/src/DefinitionList/docs/examples/StackedLayout.d.ts +6 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +4 -0
- package/types/src/Divider/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Divider/docs/examples/Basic.d.ts +3 -0
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +4 -0
- package/types/src/Divider/docs/examples/Decorative.d.ts +4 -0
- package/types/src/Divider/docs/examples/Vertical.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/Basic.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +4 -0
- package/types/src/DualListbox/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +7 -7
- package/types/src/DualListbox/Listbox.d.ts +2 -2
- package/types/src/DualListbox/ListboxContext.d.ts +1 -1
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +3 -0
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +3 -0
- package/types/src/DualListbox/docs/examples/Fill.d.ts +4 -0
- package/types/src/File/File.d.ts +7 -1
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +4 -0
- package/types/src/File/docs/examples/Disabled.d.ts +3 -0
- package/types/src/File/docs/examples/DropAnywhere.d.ts +4 -0
- package/types/src/File/docs/examples/Error.d.ts +4 -0
- package/types/src/File/docs/examples/FullScreen.d.ts +4 -0
- package/types/src/File/docs/examples/Multi.d.ts +4 -0
- package/types/src/File/docs/examples/Progress.d.ts +4 -0
- package/types/src/File/docs/examples/Single.d.ts +4 -0
- package/types/src/FormRows/docs/examples/Basic.d.ts +3 -0
- package/types/src/FormRows/docs/examples/Header.d.ts +4 -0
- package/types/src/FormRows/docs/examples/Menu.d.ts +4 -0
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +4 -0
- package/types/src/Heading/docs/examples/Basic.d.ts +3 -0
- package/types/src/Heading/docs/examples/Variant.d.ts +4 -0
- package/types/src/Image/docs/examples/Basic.d.ts +3 -0
- package/types/src/JSONTree/JSONTreeItem.d.ts +4 -2
- package/types/src/JSONTree/docs/examples/Basic.d.ts +3 -0
- package/types/src/JSONTree/docs/examples/Events.d.ts +4 -0
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +4 -0
- package/types/src/JSONTree/renderTreeItems.d.ts +2 -1
- package/types/src/Layer/docs/examples/Basic.d.ts +4 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Link/docs/examples/Basic.d.ts +4 -0
- package/types/src/Link/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Link/docs/examples/NewWindow.d.ts +4 -0
- package/types/src/Link/docs/examples/Standalone.d.ts +4 -0
- package/types/src/List/docs/examples/CustomizedList.d.ts +4 -0
- package/types/src/List/docs/examples/OrderedList.d.ts +4 -0
- package/types/src/List/docs/examples/UnorderedList.d.ts +3 -0
- package/types/src/Markdown/docs/examples/Basic.d.ts +4 -0
- package/types/src/Markdown/docs/examples/I18n.d.ts +4 -0
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +2 -1
- package/types/src/Menu/Item.d.ts +27 -10
- package/types/src/Menu/docs/examples/Adornments.d.ts +4 -0
- package/types/src/Menu/docs/examples/Basic.d.ts +3 -0
- package/types/src/Menu/docs/examples/Complex.d.ts +4 -0
- package/types/src/Menu/docs/examples/Descriptions.d.ts +4 -0
- package/types/src/Menu/docs/examples/Dimmed.d.ts +4 -0
- package/types/src/Menu/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Menu/docs/examples/Dividers.d.ts +3 -0
- package/types/src/Menu/docs/examples/Headings.d.ts +4 -0
- package/types/src/Menu/docs/examples/Links.d.ts +4 -0
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +4 -0
- package/types/src/Menu/docs/examples/Selectable.d.ts +4 -0
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +4 -0
- package/types/src/Menu/docs/examples/Truncate.d.ts +4 -0
- package/types/src/Message/docs/examples/Basic.d.ts +3 -0
- package/types/src/Message/docs/examples/Content.d.ts +4 -0
- package/types/src/Message/docs/examples/Fill.d.ts +3 -0
- package/types/src/Message/docs/examples/Removable.d.ts +3 -0
- package/types/src/MessageBar/docs/examples/Basic.d.ts +4 -0
- package/types/src/MessageBar/docs/examples/Types.d.ts +4 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +3 -0
- package/types/src/Modal/Modal.d.ts +10 -3
- package/types/src/Modal/docs/examples/Basic.d.ts +3 -0
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +4 -0
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +4 -0
- package/types/src/Modal/docs/examples/Undismissable.d.ts +4 -0
- package/types/src/Monogram/Monogram.d.ts +4 -0
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +4 -0
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +3 -0
- package/types/src/Monogram/docs/examples/Basic.d.ts +4 -0
- package/types/src/Monogram/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Monogram/docs/examples/Size.d.ts +4 -0
- package/types/src/Multiselect/Compact.d.ts +8 -2
- package/types/src/Multiselect/Multiselect.d.ts +8 -2
- package/types/src/Multiselect/Normal.d.ts +7 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Compact.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Error.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Headings.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Icons.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/Number/docs/examples/Basic.d.ts +4 -0
- package/types/src/Number/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Number/docs/examples/Error.d.ts +3 -0
- package/types/src/Number/docs/examples/Limits.d.ts +4 -0
- package/types/src/Number/docs/examples/Locale.d.ts +4 -0
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Paginator/docs/examples/Basic.d.ts +3 -0
- package/types/src/Paginator/docs/examples/Compact.d.ts +4 -0
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +3 -0
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +3 -0
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +4 -0
- package/types/src/Paginator/docs/examples/Labelled.d.ts +4 -0
- package/types/src/Paginator/docs/examples/PageControl.d.ts +4 -0
- package/types/src/Paragraph/docs/examples/Basic.d.ts +4 -0
- package/types/src/Popover/PopoverProvider.d.ts +9 -1
- package/types/src/Popover/docs/examples/Basic.d.ts +4 -0
- package/types/src/Progress/docs/examples/Basic.d.ts +3 -0
- package/types/src/Progress/docs/examples/Type.d.ts +3 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +5 -0
- package/types/src/RadioBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/Error.d.ts +3 -0
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Basic.d.ts +4 -0
- package/types/src/RadioList/docs/examples/Disabled.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Error.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Row.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Resize/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Resize/docs/examples/Basic.d.ts +4 -0
- package/types/src/Resize/docs/examples/Percentage.d.ts +4 -0
- package/types/src/Resize/docs/examples/SizingInner.d.ts +4 -0
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +4 -0
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +4 -0
- package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +4 -0
- package/types/src/Scroll/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +4 -0
- package/types/src/Search/Search.d.ts +5 -1
- package/types/src/Search/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Search/docs/examples/Loading.d.ts +4 -0
- package/types/src/Search/docs/examples/Options.d.ts +4 -0
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +4 -0
- package/types/src/Select/SelectAllOption.d.ts +5 -10
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Select/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Select/docs/examples/Basic.d.ts +4 -0
- package/types/src/Select/docs/examples/Children.d.ts +4 -0
- package/types/src/Select/docs/examples/Descriptions.d.ts +4 -0
- package/types/src/Select/docs/examples/Error.d.ts +3 -0
- package/types/src/Select/docs/examples/Fetching.d.ts +4 -0
- package/types/src/Select/docs/examples/Filter.d.ts +4 -0
- package/types/src/Select/docs/examples/Headings.d.ts +3 -0
- package/types/src/Select/docs/examples/Icons.d.ts +3 -0
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
- package/types/src/Select/docs/examples/Prefix.d.ts +4 -0
- package/types/src/Select/docs/examples/Truncate.d.ts +4 -0
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/SidePanel/docs/examples/Basic.d.ts +4 -0
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +3 -0
- package/types/src/SidePanel/docs/examples/Composition.d.ts +4 -0
- package/types/src/Slider/docs/examples/Basic.d.ts +3 -0
- package/types/src/Slider/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +4 -0
- package/types/src/Slider/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Slider/docs/examples/Error.d.ts +3 -0
- package/types/src/Slider/docs/examples/StepMarks.d.ts +4 -0
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +3 -0
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +3 -0
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +3 -0
- package/types/src/SplitButton/SplitButton.d.ts +6 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +3 -0
- package/types/src/SplitButton/docs/examples/Block.d.ts +4 -0
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +4 -0
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +3 -0
- package/types/src/StaticContent/docs/examples/Basic.d.ts +4 -0
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +4 -0
- package/types/src/StepBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/StepBar/docs/examples/Error.d.ts +3 -0
- package/types/src/Switch/Switch.d.ts +7 -1
- package/types/src/Switch/docs/examples/Basic.d.ts +5 -9
- package/types/src/Switch/docs/examples/Disabled.d.ts +5 -9
- package/types/src/TabBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Disabled.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Icons.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Vertical.d.ts +3 -0
- package/types/src/TabBar/docs/examples/VerticalIcons.d.ts +3 -0
- package/types/src/TabBar/docs/examples/WithCount.d.ts +3 -0
- package/types/src/TabBar/tabBarUtils.d.ts +4 -0
- package/types/src/TabBar/types.d.ts +5 -0
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +4 -0
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +4 -0
- package/types/src/TabLayout/docs/examples/Icons.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +3 -0
- package/types/src/Table/ExpandButton.d.ts +1 -1
- package/types/src/Table/docs/examples/Basic.d.ts +3 -0
- package/types/src/Table/docs/examples/Click.d.ts +4 -0
- package/types/src/Table/docs/examples/ClickRows.d.ts +4 -0
- package/types/src/Table/docs/examples/Complex.d.ts +4 -0
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +4 -0
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +4 -0
- package/types/src/Table/docs/examples/FixedHeader.d.ts +4 -0
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +4 -0
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +4 -0
- package/types/src/Table/docs/examples/ReorderRows.d.ts +4 -0
- package/types/src/Table/docs/examples/Resizable.d.ts +4 -0
- package/types/src/Table/docs/examples/ResizableFill.d.ts +4 -0
- package/types/src/Table/docs/examples/RowActions.d.ts +4 -0
- package/types/src/Table/docs/examples/Selectable.d.ts +4 -0
- package/types/src/Table/docs/examples/SortableColumns.d.ts +4 -0
- package/types/src/Table/docs/examples/StripeRows.d.ts +3 -0
- package/types/src/Text/docs/examples/Basic.d.ts +4 -0
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +4 -0
- package/types/src/Text/docs/examples/Dimmed.d.ts +4 -0
- package/types/src/Text/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Text/docs/examples/Error.d.ts +4 -0
- package/types/src/Text/docs/examples/Inline.d.ts +4 -0
- package/types/src/Text/docs/examples/Password.d.ts +4 -0
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Basic.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Disabled.d.ts +3 -0
- package/types/src/TextArea/docs/examples/Error.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Inline.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Tooltip/Tooltip.d.ts +14 -1
- package/types/src/Tooltip/docs/examples/Basic.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +3 -0
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +3 -0
- package/types/src/TransitionOpen/docs/examples/None.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +4 -0
- package/types/src/Tree/Item.d.ts +4 -4
- package/types/src/Tree/docs/examples/Basic.d.ts +5 -0
- package/types/src/Tree/docs/examples/ClickableExpansion.d.ts +2 -0
- package/types/src/Tree/docs/examples/ClickableExpansionWithSelection.d.ts +2 -0
- package/types/src/Typography/docs/examples/Basic.d.ts +4 -0
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +3 -0
- package/useResizeObserver.js +2 -2
- package/NonInteractiveCheckbox.js +0 -101
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +0 -12
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +0 -3
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +0 -22
- package/types/src/NonInteractiveCheckbox/index.d.ts +0 -1
- package/types/src/Switch/docs/examples/Error.d.ts +0 -3
- package/types/src/Text/IconOutlinedHide.d.ts +0 -3
- package/types/src/Text/IconOutlinedView.d.ts +0 -3
- /package/cypress/{tsconfig.cypress.json → tsconfig.check-cypress.json} +0 -0
package/SidePanel.js
CHANGED
|
@@ -102,16 +102,16 @@
|
|
|
102
102
|
componentId: "mtbcuz-3"
|
|
103
103
|
})([ "", ";left:0;bottom:0;width:100vw;" ], m);
|
|
104
104
|
// CONCATENATED MODULE: ./src/SidePanel/SidePanel.tsx
|
|
105
|
-
function
|
|
105
|
+
function O(e) {
|
|
106
106
|
"@babel/helpers - typeof";
|
|
107
|
-
return
|
|
107
|
+
return O = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
108
108
|
return typeof e;
|
|
109
109
|
} : function(e) {
|
|
110
110
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
111
|
-
},
|
|
111
|
+
}, O(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
return
|
|
113
|
+
function S() {
|
|
114
|
+
return S = Object.assign ? Object.assign.bind() : function(e) {
|
|
115
115
|
for (var t = 1; t < arguments.length; t++) {
|
|
116
116
|
var r = arguments[t];
|
|
117
117
|
for (var n in r) {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
return e;
|
|
122
|
-
},
|
|
122
|
+
}, S.apply(null, arguments);
|
|
123
123
|
}
|
|
124
124
|
function w(e, t) {
|
|
125
125
|
var r = Object.keys(e);
|
|
@@ -152,39 +152,39 @@
|
|
|
152
152
|
}
|
|
153
153
|
function C(e) {
|
|
154
154
|
var t = k(e, "string");
|
|
155
|
-
return "symbol" ==
|
|
155
|
+
return "symbol" == O(t) ? t : t + "";
|
|
156
156
|
}
|
|
157
157
|
function k(e, t) {
|
|
158
|
-
if ("object" !=
|
|
158
|
+
if ("object" != O(e) || !e) return e;
|
|
159
159
|
var r = e[Symbol.toPrimitive];
|
|
160
160
|
if (void 0 !== r) {
|
|
161
161
|
var n = r.call(e, t || "default");
|
|
162
|
-
if ("object" !=
|
|
162
|
+
if ("object" != O(n)) return n;
|
|
163
163
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
164
164
|
}
|
|
165
165
|
return ("string" === t ? String : Number)(e);
|
|
166
166
|
}
|
|
167
167
|
function A(e, t) {
|
|
168
|
-
return
|
|
168
|
+
return M(e) || E(e, t) || T(e, t) || N();
|
|
169
169
|
}
|
|
170
170
|
function N() {
|
|
171
171
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
172
172
|
}
|
|
173
173
|
function T(e, t) {
|
|
174
174
|
if (e) {
|
|
175
|
-
if ("string" == typeof e) return
|
|
175
|
+
if ("string" == typeof e) return x(e, t);
|
|
176
176
|
var r = {}.toString.call(e).slice(8, -1);
|
|
177
|
-
return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ?
|
|
177
|
+
return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? x(e, t) : void 0;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function x(e, t) {
|
|
181
181
|
(null == t || t > e.length) && (t = e.length);
|
|
182
182
|
for (var r = 0, n = Array(t); r < t; r++) {
|
|
183
183
|
n[r] = e[r];
|
|
184
184
|
}
|
|
185
185
|
return n;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function E(e, t) {
|
|
188
188
|
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
189
189
|
if (null != r) {
|
|
190
190
|
var n, o, i, a, l = [], u = !0, s = !1;
|
|
@@ -206,26 +206,26 @@
|
|
|
206
206
|
return l;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function M(e) {
|
|
210
210
|
if (Array.isArray(e)) return e;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function _(e, t) {
|
|
213
213
|
if (null == e) return {};
|
|
214
|
-
var r, n, o =
|
|
214
|
+
var r, n, o = q(e, t);
|
|
215
215
|
if (Object.getOwnPropertySymbols) {
|
|
216
216
|
var i = Object.getOwnPropertySymbols(e);
|
|
217
217
|
for (n = 0; n < i.length; n++) {
|
|
218
|
-
r = i[n], t.
|
|
218
|
+
r = i[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
return o;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function q(e, t) {
|
|
224
224
|
if (null == e) return {};
|
|
225
225
|
var r = {};
|
|
226
226
|
for (var n in e) {
|
|
227
227
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
228
|
-
if (t.
|
|
228
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
229
229
|
r[n] = e[n];
|
|
230
230
|
}
|
|
231
231
|
}
|
|
@@ -257,9 +257,9 @@
|
|
|
257
257
|
bottom: g
|
|
258
258
|
};
|
|
259
259
|
function z(e) {
|
|
260
|
-
var t = e.children, o = e.dockPosition, i = o === void 0 ? "right" : o, a = e.elementRef, u = e.innerClassName, c = e.innerStyle, f = e.onAnimationEnd, y = e.onRequestClose, d = e.open, p = e.outerClassName, m = e.outerStyle, b = e.useLayerForClickAway, v = b === void 0 ? true : b, h =
|
|
260
|
+
var t = e.children, o = e.dockPosition, i = o === void 0 ? "right" : o, a = e.elementRef, u = e.innerClassName, c = e.innerStyle, f = e.onAnimationEnd, y = e.onRequestClose, d = e.open, p = e.outerClassName, m = e.outerStyle, b = e.useLayerForClickAway, v = b === void 0 ? true : b, h = _(e, [ "children", "dockPosition", "elementRef", "innerClassName", "innerStyle", "onAnimationEnd", "onRequestClose", "open", "outerClassName", "outerStyle", "useLayerForClickAway" ]);
|
|
261
261
|
// @docs-props-type SidePanelPropsBase
|
|
262
|
-
var g = (0, r.useState)(false),
|
|
262
|
+
var g = (0, r.useState)(false), O = A(g, 2), w = O[0], j = O[1];
|
|
263
263
|
var C = s()(d);
|
|
264
264
|
(0, r.useEffect)((function() {
|
|
265
265
|
// prevOpen starts undefined, and we don't want to make the comparison in that situation
|
|
@@ -286,23 +286,23 @@
|
|
|
286
286
|
var T = (0, r.useMemo)((function() {
|
|
287
287
|
return P(P({}, N), c);
|
|
288
288
|
}), [ N, c ]);
|
|
289
|
-
var
|
|
289
|
+
var x = (0, r.useCallback)((function() {
|
|
290
290
|
j(false);
|
|
291
291
|
f === null || f === void 0 ? void 0 : f();
|
|
292
292
|
}), [ f ]);
|
|
293
|
-
var
|
|
293
|
+
var E = (0, r.useMemo)((function() {
|
|
294
294
|
return F[i];
|
|
295
295
|
}), [ i ]);
|
|
296
|
-
var
|
|
296
|
+
var M = (0, r.useCallback)((function() {
|
|
297
297
|
|
|
298
|
-
return n().createElement(
|
|
298
|
+
return n().createElement(E, S({
|
|
299
299
|
animateOnMount: true,
|
|
300
300
|
animation: R[i],
|
|
301
301
|
"data-test": "side-panel",
|
|
302
302
|
elementRef: a,
|
|
303
303
|
innerClassName: u,
|
|
304
304
|
innerStyle: T,
|
|
305
|
-
onAnimationEnd:
|
|
305
|
+
onAnimationEnd: x,
|
|
306
306
|
open: d,
|
|
307
307
|
outerClassName: p,
|
|
308
308
|
outerStyle: m,
|
|
@@ -311,13 +311,13 @@
|
|
|
311
311
|
tabIndex: -1,
|
|
312
312
|
takeFocus: true
|
|
313
313
|
}, h), t);
|
|
314
|
-
}), [ t, i, a, T,
|
|
314
|
+
}), [ t, i, a, T, x, u, d, p, m, E, h ]);
|
|
315
315
|
|
|
316
316
|
return n().createElement(l(), {
|
|
317
317
|
childrenInAnimation: w,
|
|
318
318
|
onRequestClose: y,
|
|
319
319
|
open: d,
|
|
320
|
-
renderModal:
|
|
320
|
+
renderModal: M,
|
|
321
321
|
scrim: k
|
|
322
322
|
});
|
|
323
323
|
}
|
package/Slider.js
CHANGED
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
* to avoid further issues with variable interpolation given the
|
|
190
190
|
* complexity of the multiple radial gradient backgrounds. This also
|
|
191
191
|
* allows us not to pass in StyledSliderTypes to StyledInput */ var A = (0, m.css)([ "", "{&::after{content:'';}}" ], /* sc-sel */ x);
|
|
192
|
-
var
|
|
192
|
+
var O = b().div.withConfig({
|
|
193
193
|
displayName: "SliderStyles__StyledInput",
|
|
194
194
|
componentId: "sc-16ooit4-5"
|
|
195
195
|
})([ "width:100%;min-width:200px;display:flex;align-items:center;flex:1 0 0;position:relative;cursor:default;height:", ";max-width:100%;", " &:hover{", "{border-color:", ";}}", "" ], p.variables.inputHeight, (function(e) {
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
}));
|
|
206
206
|
// CONCATENATED MODULE: ./src/utils/ssrDocument.ts
|
|
207
207
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
208
|
-
var
|
|
208
|
+
var T = {
|
|
209
209
|
body: {
|
|
210
210
|
appendChild: function e() {
|
|
211
211
|
return [];
|
|
@@ -259,16 +259,16 @@
|
|
|
259
259
|
search: ""
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
|
-
function
|
|
263
|
-
var e = typeof document !== "undefined" ? document :
|
|
262
|
+
function V() {
|
|
263
|
+
var e = typeof document !== "undefined" ? document : T;
|
|
264
264
|
return e;
|
|
265
265
|
}
|
|
266
|
-
var P =
|
|
266
|
+
var P = V();
|
|
267
267
|
/* harmony default export */ const B = /* unused pure expression or super */ null && P;
|
|
268
268
|
// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
|
|
269
269
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
270
270
|
var _ = {
|
|
271
|
-
document:
|
|
271
|
+
document: T,
|
|
272
272
|
navigator: {
|
|
273
273
|
userAgent: ""
|
|
274
274
|
},
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
if (Object.getOwnPropertySymbols) {
|
|
411
411
|
var i = Object.getOwnPropertySymbols(e);
|
|
412
412
|
for (n = 0; n < i.length; n++) {
|
|
413
|
-
t = i[n], r.
|
|
413
|
+
t = i[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (a[t] = e[t]);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
return a;
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
var t = {};
|
|
421
421
|
for (var n in e) {
|
|
422
422
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
423
|
-
if (r.
|
|
423
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
424
424
|
t[n] = e[n];
|
|
425
425
|
}
|
|
426
426
|
}
|
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
return (a - n) / i * 100;
|
|
522
522
|
};
|
|
523
523
|
function re(e) {
|
|
524
|
-
var r = e.defaultValue, a = e.describedBy, i = e.disabled, o = e.displayValue, l = e.elementRef, u = e.error, c = e.inline, f = e.labelledBy, m = e.max, b = m === void 0 ? 5 : m, p = e.maxLabel, h = e.min, y = h === void 0 ? 1 : h, g = e.minLabel, w = e.name, S = e.onChange, A = e.required,
|
|
524
|
+
var r = e.defaultValue, a = e.describedBy, i = e.disabled, o = e.displayValue, l = e.elementRef, u = e.error, c = e.inline, f = e.labelledBy, m = e.max, b = m === void 0 ? 5 : m, p = e.maxLabel, h = e.min, y = h === void 0 ? 1 : h, g = e.minLabel, w = e.name, S = e.onChange, A = e.required, T = e.step, V = T === void 0 ? 1 : T, P = e.stepMarks, B = P === void 0 ? "focus" : P, _ = e.thumbRef, j = e.value, q = U(e, [ "defaultValue", "describedBy", "disabled", "displayValue", "elementRef", "error", "inline", "labelledBy", "max", "maxLabel", "min", "minLabel", "name", "onChange", "required", "step", "stepMarks", "thumbRef", "value" ]);
|
|
525
525
|
// @docs-props-type SliderPropsBase
|
|
526
526
|
var D = v()({
|
|
527
527
|
componentName: "Slider",
|
|
@@ -537,9 +537,9 @@
|
|
|
537
537
|
value: (b - y) / 2,
|
|
538
538
|
min: y,
|
|
539
539
|
max: b,
|
|
540
|
-
step:
|
|
540
|
+
step: V
|
|
541
541
|
}) : r;
|
|
542
|
-
}), [ D, r, b, y,
|
|
542
|
+
}), [ D, r, b, y, V ]);
|
|
543
543
|
var fe = (0, t.useState)(D ? j : de), ve = I(fe, 2), me = ve[0], be = ve[1];
|
|
544
544
|
var pe = (0, t.useCallback)((function(e, r) {
|
|
545
545
|
var t = r.newValue;
|
|
@@ -574,13 +574,13 @@
|
|
|
574
574
|
position: r,
|
|
575
575
|
max: b,
|
|
576
576
|
min: y,
|
|
577
|
-
step:
|
|
577
|
+
step: V
|
|
578
578
|
});
|
|
579
579
|
pe(e, {
|
|
580
580
|
newValue: t
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
|
-
}), [ b, y, pe, ie,
|
|
583
|
+
}), [ b, y, pe, ie, V ]);
|
|
584
584
|
var Ce = (0, t.useCallback)((function(e) {
|
|
585
585
|
var r = me;
|
|
586
586
|
if (r !== undefined) {
|
|
@@ -589,13 +589,13 @@
|
|
|
589
589
|
var a = G({
|
|
590
590
|
direction: "forward",
|
|
591
591
|
min: y,
|
|
592
|
-
step:
|
|
592
|
+
step: V,
|
|
593
593
|
value: r
|
|
594
594
|
});
|
|
595
595
|
var i = G({
|
|
596
596
|
direction: "backward",
|
|
597
597
|
min: y,
|
|
598
|
-
step:
|
|
598
|
+
step: V,
|
|
599
599
|
value: r
|
|
600
600
|
});
|
|
601
601
|
if (t === "ArrowRight") {
|
|
@@ -619,14 +619,14 @@
|
|
|
619
619
|
r = Q({
|
|
620
620
|
max: b,
|
|
621
621
|
min: y,
|
|
622
|
-
step:
|
|
622
|
+
step: V,
|
|
623
623
|
value: r
|
|
624
624
|
});
|
|
625
625
|
pe(e, {
|
|
626
626
|
newValue: r
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
|
-
}), [ b, y, pe,
|
|
629
|
+
}), [ b, y, pe, V, me ]);
|
|
630
630
|
var xe = (0, t.useCallback)((function(e) {
|
|
631
631
|
e.preventDefault();
|
|
632
632
|
se === null || se === void 0 ? void 0 : se.focus();
|
|
@@ -649,14 +649,14 @@
|
|
|
649
649
|
position: r,
|
|
650
650
|
min: y,
|
|
651
651
|
max: b,
|
|
652
|
-
step:
|
|
652
|
+
step: V
|
|
653
653
|
});
|
|
654
654
|
pe(e, {
|
|
655
655
|
newValue: t
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
}), [ F, b, y, pe, ie,
|
|
659
|
+
}), [ F, b, y, pe, ie, V ]);
|
|
660
660
|
var Ae = (0, t.useCallback)((function() {
|
|
661
661
|
H(false);
|
|
662
662
|
te(false);
|
|
@@ -670,17 +670,17 @@
|
|
|
670
670
|
be(j);
|
|
671
671
|
}
|
|
672
672
|
}), [ D, j ]);
|
|
673
|
-
var
|
|
674
|
-
var
|
|
673
|
+
var Oe = i && "disabled" || u && "error" || "default";
|
|
674
|
+
var Te = ee({
|
|
675
675
|
value: me,
|
|
676
676
|
min: y,
|
|
677
677
|
max: b
|
|
678
678
|
});
|
|
679
|
-
var
|
|
679
|
+
var Ve = V ? Z({
|
|
680
680
|
max: b,
|
|
681
681
|
min: y,
|
|
682
682
|
sliderBar: ie,
|
|
683
|
-
step:
|
|
683
|
+
step: V
|
|
684
684
|
}) : undefined;
|
|
685
685
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
686
686
|
return n().createElement(C, N({
|
|
@@ -700,17 +700,17 @@
|
|
|
700
700
|
})), g !== null && n().createElement($, {
|
|
701
701
|
"data-test": "min-label",
|
|
702
702
|
$disabled: i
|
|
703
|
-
}, g || y), n().createElement(
|
|
703
|
+
}, g || y), n().createElement(O, {
|
|
704
704
|
onClick: i ? undefined : Se,
|
|
705
|
-
$state:
|
|
705
|
+
$state: Oe,
|
|
706
706
|
$stepAppearance: B
|
|
707
707
|
}, n().createElement(x, {
|
|
708
708
|
"aria-required": A,
|
|
709
709
|
"data-test": "bar",
|
|
710
710
|
ref: ge,
|
|
711
|
-
$thumbPosition:
|
|
712
|
-
$stepWidth:
|
|
713
|
-
$state:
|
|
711
|
+
$thumbPosition: Te,
|
|
712
|
+
$stepWidth: Ve,
|
|
713
|
+
$state: Oe
|
|
714
714
|
}), n().createElement(k, {
|
|
715
715
|
"aria-describedby": a,
|
|
716
716
|
"aria-labelledby": f,
|
|
@@ -728,8 +728,8 @@
|
|
|
728
728
|
ref: we,
|
|
729
729
|
role: "slider",
|
|
730
730
|
disabled: i,
|
|
731
|
-
$thumbPosition:
|
|
732
|
-
$state:
|
|
731
|
+
$thumbPosition: Te,
|
|
732
|
+
$state: Oe
|
|
733
733
|
}), n().createElement(d(), {
|
|
734
734
|
open: re,
|
|
735
735
|
anchor: se,
|
package/SlidingPanels.js
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
e.r(n);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(n, {
|
|
64
|
-
Panel: () => /* reexport */
|
|
64
|
+
Panel: () => /* reexport */ A,
|
|
65
65
|
default: () => /* reexport */ L
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
@@ -123,12 +123,12 @@
|
|
|
123
123
|
}, m.apply(null, arguments);
|
|
124
124
|
}
|
|
125
125
|
function b(e, n) {
|
|
126
|
-
return j(e) || S(e, n) ||
|
|
126
|
+
return j(e) || S(e, n) || g(e, n) || O();
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function O() {
|
|
129
129
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function g(e, n) {
|
|
132
132
|
if (e) {
|
|
133
133
|
if ("string" == typeof e) return h(e, n);
|
|
134
134
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
if (Object.getOwnPropertySymbols) {
|
|
174
174
|
var i = Object.getOwnPropertySymbols(e);
|
|
175
175
|
for (t = 0; t < i.length; t++) {
|
|
176
|
-
r = i[t], n.
|
|
176
|
+
r = i[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
return o;
|
|
@@ -183,13 +183,13 @@
|
|
|
183
183
|
var r = {};
|
|
184
184
|
for (var t in e) {
|
|
185
185
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
186
|
-
if (n.
|
|
186
|
+
if (-1 !== n.indexOf(t)) continue;
|
|
187
187
|
r[t] = e[t];
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
return r;
|
|
191
191
|
}
|
|
192
|
-
var
|
|
192
|
+
var x = {
|
|
193
193
|
children: a().node,
|
|
194
194
|
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
195
195
|
/** @private */
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
};
|
|
201
201
|
/**
|
|
202
202
|
* Container for arbitrary content.
|
|
203
|
-
*/ function
|
|
203
|
+
*/ function E(e) {
|
|
204
204
|
var n = e.children, o = e.elementRef, i = e.onMount, a = e.onUnmount, u = e.panelId, l = w(e, [ "children", "elementRef", "onMount", "onUnmount", "panelId" ]);
|
|
205
205
|
// @docs-props-type PanelPropsBase
|
|
206
206
|
var c = (0, r.useState)(null), f = b(c, 2), s = f[0], y = f[1];
|
|
@@ -222,16 +222,16 @@
|
|
|
222
222
|
ref: d
|
|
223
223
|
}), n);
|
|
224
224
|
}
|
|
225
|
-
|
|
226
|
-
/* harmony default export */ const
|
|
225
|
+
E.propTypes = x;
|
|
226
|
+
/* harmony default export */ const A = E;
|
|
227
227
|
// CONCATENATED MODULE: ./src/SlidingPanels/SlidingPanels.tsx
|
|
228
|
-
function
|
|
228
|
+
function I(e) {
|
|
229
229
|
"@babel/helpers - typeof";
|
|
230
|
-
return
|
|
230
|
+
return I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
231
231
|
return typeof e;
|
|
232
232
|
} : function(e) {
|
|
233
233
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
234
|
-
},
|
|
234
|
+
}, I(e);
|
|
235
235
|
}
|
|
236
236
|
function C() {
|
|
237
237
|
return C = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
if (Object.getOwnPropertySymbols) {
|
|
296
296
|
var i = Object.getOwnPropertySymbols(e);
|
|
297
297
|
for (t = 0; t < i.length; t++) {
|
|
298
|
-
r = i[t], n.
|
|
298
|
+
r = i[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
return o;
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
var r = {};
|
|
306
306
|
for (var t in e) {
|
|
307
307
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
308
|
-
if (n.
|
|
308
|
+
if (-1 !== n.indexOf(t)) continue;
|
|
309
309
|
r[t] = e[t];
|
|
310
310
|
}
|
|
311
311
|
}
|
|
@@ -342,14 +342,14 @@
|
|
|
342
342
|
}
|
|
343
343
|
function $(e) {
|
|
344
344
|
var n = W(e, "string");
|
|
345
|
-
return "symbol" ==
|
|
345
|
+
return "symbol" == I(n) ? n : n + "";
|
|
346
346
|
}
|
|
347
347
|
function W(e, n) {
|
|
348
|
-
if ("object" !=
|
|
348
|
+
if ("object" != I(e) || !e) return e;
|
|
349
349
|
var r = e[Symbol.toPrimitive];
|
|
350
350
|
if (void 0 !== r) {
|
|
351
351
|
var t = r.call(e, n || "default");
|
|
352
|
-
if ("object" !=
|
|
352
|
+
if ("object" != I(t)) return t;
|
|
353
353
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
354
354
|
}
|
|
355
355
|
return ("string" === n ? String : Number)(e);
|
|
@@ -430,9 +430,9 @@
|
|
|
430
430
|
function K(e) {
|
|
431
431
|
var n = e.activePanelId, i = e.children, a = e.elementRef, l = e.innerClassName, c = e.innerStyle, f = e.onAnimationEnd, s = e.outerClassName, y = e.outerStyle, v = e.transition, p = v === void 0 ? "forward" : v, m = U(e, [ "activePanelId", "children", "elementRef", "innerClassName", "innerStyle", "onAnimationEnd", "outerClassName", "outerStyle", "transition" ]);
|
|
432
432
|
// @docs-props-type SlidingPanelsPropsBase
|
|
433
|
-
var b = (0, r.useState)(0),
|
|
433
|
+
var b = (0, r.useState)(0), O = M(b, 2), g = O[0], h = O[1];
|
|
434
434
|
var S = (0, r.useState)([]), j = M(S, 2), w = j[0], P = j[1];
|
|
435
|
-
var
|
|
435
|
+
var x = (0, r.useState)({}), E = M(x, 2), A = E[0], I = E[1];
|
|
436
436
|
var N = (0, o.useSpringRef)();
|
|
437
437
|
var T = (0, r.useMemo)((function() {
|
|
438
438
|
return r.Children.toArray(i).filter(r.isValidElement);
|
|
@@ -443,13 +443,13 @@
|
|
|
443
443
|
* In this case, useAnimationTransition will only know to shift the leaving panel by the width of the arriving panel,
|
|
444
444
|
* which would result in seeing part of the leaving panel's content on screen at the same time as the arriving panel's content.
|
|
445
445
|
*/ var q = (0, r.useMemo)((function() {
|
|
446
|
-
return H(
|
|
447
|
-
}), [
|
|
446
|
+
return H(A);
|
|
447
|
+
}), [ A ]);
|
|
448
448
|
/* determines what our transform translateX will look like based on is it transitioning forward or backward */ var R = (0,
|
|
449
449
|
r.useMemo)((function() {
|
|
450
450
|
return G(q, p);
|
|
451
451
|
}), [ q, p ]);
|
|
452
|
-
var k = (0, u.useAnimationTransition)(
|
|
452
|
+
var k = (0, u.useAnimationTransition)(g, B(B(B({
|
|
453
453
|
ref: N
|
|
454
454
|
}, F), R), {}, {
|
|
455
455
|
onRest: function e() {
|
|
@@ -459,11 +459,11 @@
|
|
|
459
459
|
(0, r.useEffect)((function() {
|
|
460
460
|
/* if it can't find activePanelId it will set currentPanelIndex to -1 */
|
|
461
461
|
if (false) {}
|
|
462
|
-
}), [
|
|
462
|
+
}), [ g ]);
|
|
463
463
|
(0, r.useEffect)((function() {
|
|
464
464
|
/* starts animation */
|
|
465
465
|
N.start();
|
|
466
|
-
}), [ N,
|
|
466
|
+
}), [ N, g ]);
|
|
467
467
|
(0, r.useEffect)((function() {
|
|
468
468
|
/* sets the currentPanelIndex in state whenever activePanelId or children changes */
|
|
469
469
|
var e = T.findIndex((function(e) {
|
|
@@ -474,13 +474,13 @@
|
|
|
474
474
|
}), [ n, T ]);
|
|
475
475
|
var _ = (0, r.useCallback)((function(e, n) {
|
|
476
476
|
if (e != null && n != null) {
|
|
477
|
-
|
|
477
|
+
I((function(r) {
|
|
478
478
|
return B(B({}, r), {}, V({}, n, e));
|
|
479
479
|
}));
|
|
480
480
|
}
|
|
481
481
|
}), []);
|
|
482
482
|
var D = (0, r.useCallback)((function(e) {
|
|
483
|
-
|
|
483
|
+
I((function(n) {
|
|
484
484
|
var r = B({}, n);
|
|
485
485
|
delete r[e];
|
|
486
486
|
return r;
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
})));
|
|
516
516
|
}
|
|
517
517
|
K.propTypes = z;
|
|
518
|
-
K.Panel =
|
|
518
|
+
K.Panel = A;
|
|
519
519
|
/* harmony default export */ const L = K;
|
|
520
520
|
// CONCATENATED MODULE: ./src/SlidingPanels/index.ts
|
|
521
521
|
module.exports = n;
|