@mittwald/flow-react-components 0.1.0-alpha.55 → 0.1.0-alpha.57
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/dist/Action-SSV77Gfb.js +162 -0
- package/dist/Action.js +7 -0
- package/dist/Avatar.js +20 -22
- package/dist/Breadcrumb.js +36 -0
- package/dist/Button-h6RkBrWE.js +95 -0
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +20 -11
- package/dist/Checkbox-gCtHl4pE.js +24 -0
- package/dist/Checkbox.js +3 -19
- package/dist/CheckboxButton-CW6TfZFj.js +27 -0
- package/dist/CheckboxButton.js +7 -0
- package/dist/CheckboxGroup.js +38 -0
- package/dist/ColumnLayout-FMONjI17.js +22 -0
- package/dist/ColumnLayout.js +3 -22
- package/dist/Content.js +1 -1
- package/dist/ContextMenu.js +63 -21
- package/dist/CopyButton.js +12 -11
- package/dist/FieldDescription.js +2 -2
- package/dist/{FieldError-CQNWNYnn.js → FieldError-BDRDWTgn.js} +2 -2
- package/dist/FieldError.js +1 -1
- package/dist/Header.js +1 -1
- package/dist/Heading.js +2 -2
- package/dist/{Icon-D7MPmc4I.js → Icon-DK_xMxr-.js} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-C_3X4AJ_.js → IconCheck-DmRifITa.js} +1 -1
- package/dist/IconCheckboxEmpty-BNFRkCm2.js +10 -0
- package/dist/IconCheckboxIndeterminate-Bsk1h92j.js +9 -0
- package/dist/IconChevronRight-T-spe-97.js +9 -0
- package/dist/{IconChevronUp-CT0CRmbO.js → IconChevronUp-DJu_PD8w.js} +1 -1
- package/dist/{IconClose-Dukg2r-O.js → IconClose-DIMx1m3Z.js} +1 -1
- package/dist/IconContextMenu-BF-N2Mtz.js +9 -0
- package/dist/{IconCopy-B9yebcJo.js → IconCopy-C1rPlvpD.js} +1 -1
- package/dist/{IconDanger-Dm0XGnFW.js → IconDanger-Dz5HIiAc.js} +1 -1
- package/dist/{IconPlus-CzStbn7o.js → IconPlus-BZwxakYk.js} +1 -1
- package/dist/IconRadioOn-D9S2_D7W.js +10 -0
- package/dist/{IconSucceeded-C_S9H4Jp.js → IconSucceeded-IhwCzdOs.js} +4 -4
- package/dist/{IconWarning-D8yJVvRX.js → IconWarning-BiArksZS.js} +1 -1
- package/dist/Icons.js +68 -60
- package/dist/Image.js +1 -1
- package/dist/Initials.js +1 -1
- package/dist/InlineAlert.js +3 -3
- package/dist/{Label-BtthqZPA.js → Label-Bjdbr72t.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LabeledValue.js +1 -1
- package/dist/LayoutCard.js +1 -1
- package/dist/Link-DtSY1xrt.js +49 -0
- package/dist/Link.js +3 -31
- package/dist/List.js +348 -273
- package/dist/Modal.js +56 -30
- package/dist/Navigation.js +34 -37
- package/dist/NumberField.js +5 -5
- package/dist/PropsContextProvider-BsrVIv1a.js +25 -0
- package/dist/RadioGroup.js +45 -43
- package/dist/Section.js +1 -1
- package/dist/SegmentedControlGroup.js +51 -0
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-BFfrWshd.js → StatusIcon-Cfw9kVxt.js} +2 -2
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +4 -4
- package/dist/{Text-Dts2bzGQ.js → Text-Dc6eN_n2.js} +2 -2
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{TextFieldBase-DbCROXKW.js → TextFieldBase-DbGQjntR.js} +2 -2
- package/dist/Tooltip.js +2 -2
- package/dist/{TooltipTrigger-BrP57dnv.js → TooltipTrigger-TslkLN5s.js} +2 -2
- package/dist/Wrap-DGT1h1o3.js +9 -0
- package/dist/context-BlNV7smK.js +8 -0
- package/dist/controller.js +7 -0
- package/dist/deepFindOfType-6pG0fH7S.js +14 -0
- package/dist/deepHas-ocYuTM8M.js +7 -0
- package/dist/dynamic-ClpUSmEt.js +8 -0
- package/dist/flowComponent-Dv5hKZam.js +19 -0
- package/dist/nextjs/LinkProvider.js +8 -20
- package/dist/styles.css +1 -1
- package/dist/types/components/Action/Action.d.ts +13 -0
- package/dist/types/components/Action/Action.test.d.ts +1 -0
- package/dist/types/components/Action/ActionState.d.ts +24 -0
- package/dist/types/components/Action/actionFactory.d.ts +11 -0
- package/dist/types/components/Action/hooks/useCallAction.d.ts +12 -0
- package/dist/types/components/Action/hooks/useMakeCallableAction.d.ts +3 -0
- package/dist/types/components/Action/index.d.ts +5 -0
- package/dist/types/components/Action/lib/callActionsInOrder.d.ts +3 -0
- package/dist/types/components/Action/stories/Default.stories.d.ts +11 -0
- package/dist/types/components/Action/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Action/types.d.ts +22 -0
- package/dist/types/components/Avatar/Avatar.d.ts +2 -1
- package/dist/types/components/Avatar/index.d.ts +3 -2
- package/dist/types/components/Avatar/lib/getVariantFromChildren.d.ts +2 -1
- package/dist/types/components/Avatar/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Avatar/stories/Sizes.stories.d.ts +3 -2
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/types/components/Breadcrumb/components/BreadcrumbItem/BreadcrumbItem.d.ts +6 -0
- package/dist/types/components/Breadcrumb/components/BreadcrumbItem/index.d.ts +4 -0
- package/dist/types/components/Breadcrumb/index.d.ts +4 -0
- package/dist/types/components/Breadcrumb/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/Breadcrumb/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Button/Button.d.ts +4 -3
- package/dist/types/components/Button/index.d.ts +3 -2
- package/dist/types/components/Button/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/States.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/Variants.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/lib.d.ts +5 -0
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +2 -1
- package/dist/types/components/ButtonGroup/index.d.ts +3 -2
- package/dist/types/components/ButtonGroup/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Checkbox/Checkbox.d.ts +2 -1
- package/dist/types/components/Checkbox/index.d.ts +3 -2
- package/dist/types/components/Checkbox/stories/Default.stories.d.ts +4 -2
- package/dist/types/components/Checkbox/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/CheckboxButton/CheckboxButton.d.ts +7 -0
- package/dist/types/components/CheckboxButton/index.d.ts +4 -0
- package/dist/types/components/CheckboxButton/stories/Default.stories.d.ts +11 -0
- package/dist/types/components/CheckboxButton/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +8 -0
- package/dist/types/components/CheckboxGroup/index.d.ts +4 -0
- package/dist/types/components/CheckboxGroup/stories/Default.stories.d.ts +11 -0
- package/dist/types/components/ColumnLayout/ColumnLayout.d.ts +3 -1
- package/dist/types/components/ColumnLayout/index.d.ts +3 -2
- package/dist/types/components/ColumnLayout/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Content/Content.d.ts +4 -3
- package/dist/types/components/Content/index.d.ts +3 -2
- package/dist/types/components/Content/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +6 -4
- package/dist/types/components/ContextMenu/components/ContextMenuItem/ContextMenuItem.d.ts +3 -2
- package/dist/types/components/ContextMenu/components/ContextMenuItem/ContextMenuItemContent.d.ts +6 -0
- package/dist/types/components/ContextMenu/components/ContextMenuItem/index.d.ts +3 -2
- package/dist/types/components/ContextMenu/index.d.ts +5 -4
- package/dist/types/components/ContextMenu/stories/Default.stories.d.ts +5 -2
- package/dist/types/components/ContextMenu/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/CopyButton/CopyButton.d.ts +4 -3
- package/dist/types/components/CopyButton/index.d.ts +3 -2
- package/dist/types/components/CopyButton/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/FieldDescription/FieldDescription.d.ts +4 -3
- package/dist/types/components/FieldDescription/index.d.ts +3 -2
- package/dist/types/components/FieldError/FieldError.d.ts +4 -3
- package/dist/types/components/FieldError/index.d.ts +3 -2
- package/dist/types/components/Header/Header.d.ts +4 -3
- package/dist/types/components/Header/index.d.ts +3 -2
- package/dist/types/components/Header/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Heading/Heading.d.ts +3 -2
- package/dist/types/components/Heading/index.d.ts +3 -2
- package/dist/types/components/Heading/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Heading/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/Heading/stories/Levels.stories.d.ts +3 -2
- package/dist/types/components/Icon/Icon.d.ts +3 -2
- package/dist/types/components/Icon/components/icons/IconApp.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconBackLink.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconBackup.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconCheck.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconCheckboxChecked.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconCheckboxEmpty.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconCheckboxIndeterminate.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconChevronDown.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconChevronLeft.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconChevronRight.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconChevronUp.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconClose.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconContextMenu.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconCopy.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconCronjob.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconCustomer.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconDanger.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconDashboard.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconDatabase.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconDate.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconDelete.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconDomain.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconEmail.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconExternalLink.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconFailed.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconFilter.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconHide.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconHome.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconInfo.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconListView.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconLogout.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconMember.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconMinus.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconNotification.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconPending.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconPlus.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconProject.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconRadioOff.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconRadioOn.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconRandom.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconSearch.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconSearchEngine.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconServer.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconSettings.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconShow.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconSorting.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconSshSftp.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconSucceeded.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconSuccess.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconSupport.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconTerminate.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconTileView.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconTime.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/IconWarning.d.ts +2 -1
- package/dist/types/components/Icon/components/icons/index.d.ts +54 -50
- package/dist/types/components/Icon/index.d.ts +3 -2
- package/dist/types/components/Icon/lib/extractSvgFromString.d.ts +2 -1
- package/dist/types/components/Icon/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Icon/stories/Sizes.stories.d.ts +3 -2
- package/dist/types/components/Image/Image.d.ts +3 -2
- package/dist/types/components/Image/index.d.ts +3 -2
- package/dist/types/components/Image/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Initials/Initials.d.ts +3 -2
- package/dist/types/components/Initials/index.d.ts +3 -2
- package/dist/types/components/Initials/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/InlineAlert/InlineAlert.d.ts +4 -3
- package/dist/types/components/InlineAlert/index.d.ts +3 -2
- package/dist/types/components/InlineAlert/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/InlineAlert/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/InlineAlert/stories/Variants.stories.d.ts +3 -2
- package/dist/types/components/InlineCode/InlineCode.d.ts +2 -1
- package/dist/types/components/InlineCode/index.d.ts +3 -2
- package/dist/types/components/InlineCode/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/InlineCode/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/Label/Label.d.ts +4 -3
- package/dist/types/components/Label/index.d.ts +3 -2
- package/dist/types/components/Label/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/LabeledValue/LabeledValue.d.ts +2 -1
- package/dist/types/components/LabeledValue/index.d.ts +3 -2
- package/dist/types/components/LabeledValue/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/LabeledValue/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/LayoutCard/LayoutCard.d.ts +4 -3
- package/dist/types/components/LayoutCard/index.d.ts +3 -2
- package/dist/types/components/LayoutCard/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Link/Link.d.ts +7 -4
- package/dist/types/components/Link/context.d.ts +8 -0
- package/dist/types/components/Link/index.d.ts +3 -2
- package/dist/types/components/Link/stories/Default.stories.d.ts +4 -2
- package/dist/types/components/Link/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/List/List.d.ts +4 -2
- package/dist/types/components/List/components/DataLoader/DataLoader.d.ts +2 -1
- package/dist/types/components/List/components/DataLoader/index.d.ts +3 -2
- package/dist/types/components/List/components/FilterBar/FilterBar.d.ts +2 -1
- package/dist/types/components/List/components/FilterBar/components/FilterPicker/FilterPicker.d.ts +2 -1
- package/dist/types/components/List/components/FilterBar/components/FilterPicker/index.d.ts +3 -2
- package/dist/types/components/List/components/FilterBar/components/FilterPickerItem/FilterPickerItem.d.ts +3 -2
- package/dist/types/components/List/components/FilterBar/components/FilterPickerItem/index.d.ts +3 -2
- package/dist/types/components/List/components/FilterBar/components/SortingPicker/SortingPicker.d.ts +2 -1
- package/dist/types/components/List/components/FilterBar/components/SortingPicker/index.d.ts +3 -2
- package/dist/types/components/List/components/FilterBar/components/SortingPickerItem/SortingPickerItem.d.ts +3 -2
- package/dist/types/components/List/components/FilterBar/components/SortingPickerItem/index.d.ts +3 -2
- package/dist/types/components/List/components/FilterBar/index.d.ts +3 -2
- package/dist/types/components/List/components/Item/FallbackRenderer.d.ts +2 -1
- package/dist/types/components/List/components/Item/Item.d.ts +2 -1
- package/dist/types/components/List/components/Item/index.d.ts +3 -2
- package/dist/types/components/List/components/Items/Items.d.ts +2 -1
- package/dist/types/components/List/components/Items/index.d.ts +3 -2
- package/dist/types/components/List/components/ListFilter.d.ts +1 -0
- package/dist/types/components/List/components/ListItemView.d.ts +1 -0
- package/dist/types/components/List/components/ListLoaderAsync.d.ts +1 -0
- package/dist/types/components/List/components/ListLoaderAsyncResource.d.ts +1 -0
- package/dist/types/components/List/components/ListSorting.d.ts +1 -0
- package/dist/types/components/List/components/OptionsButton/OptionsButton.d.ts +7 -0
- package/dist/types/components/List/components/OptionsButton/index.d.ts +4 -0
- package/dist/types/components/List/components/PaginationInfos/PaginationInfos.d.ts +2 -1
- package/dist/types/components/List/components/PaginationInfos/index.d.ts +3 -2
- package/dist/types/components/List/components/ShowNextBatchButton/ShowNextBatchButton.d.ts +5 -0
- package/dist/types/components/List/components/ShowNextBatchButton/index.d.ts +4 -0
- package/dist/types/components/List/hooks/useList.d.ts +1 -1
- package/dist/types/components/List/index.d.ts +8 -7
- package/dist/types/components/List/listContext.d.ts +3 -3
- package/dist/types/components/List/model/List.d.ts +9 -8
- package/dist/types/components/List/model/ReactTable.d.ts +3 -2
- package/dist/types/components/List/model/filter/Filter.d.ts +4 -3
- package/dist/types/components/List/model/filter/types.d.ts +1 -0
- package/dist/types/components/List/model/item/Item.d.ts +3 -2
- package/dist/types/components/List/model/item/ItemCollection.d.ts +2 -1
- package/dist/types/components/List/model/loading/IncrementalLoader.d.ts +8 -10
- package/dist/types/components/List/model/loading/IncrementalLoaderState.d.ts +20 -0
- package/dist/types/components/List/model/loading/types.d.ts +3 -2
- package/dist/types/components/List/model/pagination/BatchesController.d.ts +17 -0
- package/dist/types/components/List/model/pagination/types.d.ts +2 -2
- package/dist/types/components/List/model/sorting/Sorting.d.ts +4 -3
- package/dist/types/components/List/model/sorting/types.d.ts +1 -0
- package/dist/types/components/List/model/types.d.ts +6 -5
- package/dist/types/components/List/stories/Default.stories.d.ts +4 -2
- package/dist/types/components/List/stories/ListItem.stories.d.ts +10 -0
- package/dist/types/components/Modal/Modal.d.ts +6 -3
- package/dist/types/components/Modal/hooks/useSyncTriggerState.d.ts +3 -0
- package/dist/types/components/Modal/index.d.ts +4 -3
- package/dist/types/components/Modal/stories/Default.stories.d.ts +5 -3
- package/dist/types/components/Modal/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/Navigation/Navigation.d.ts +2 -1
- package/dist/types/components/Navigation/components/NavigationGroup/NavigationGroup.d.ts +6 -0
- package/dist/types/components/Navigation/components/NavigationGroup/index.d.ts +4 -0
- package/dist/types/components/Navigation/index.d.ts +4 -3
- package/dist/types/components/Navigation/stories/Default.stories.d.ts +3 -1
- package/dist/types/components/NumberField/NumberField.d.ts +2 -1
- package/dist/types/components/NumberField/index.d.ts +3 -2
- package/dist/types/components/NumberField/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/NumberField/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +4 -2
- package/dist/types/components/RadioGroup/components/Radio/Radio.d.ts +5 -3
- package/dist/types/components/RadioGroup/components/Radio/index.d.ts +3 -2
- package/dist/types/components/RadioGroup/components/RadioButton/RadioButton.d.ts +7 -0
- package/dist/types/components/RadioGroup/components/RadioButton/index.d.ts +4 -0
- package/dist/types/components/RadioGroup/index.d.ts +5 -3
- package/dist/types/components/RadioGroup/stories/Default.stories.d.ts +6 -5
- package/dist/types/components/RadioGroup/stories/EdgeCases.stories.d.ts +4 -3
- package/dist/types/components/Section/Section.d.ts +2 -1
- package/dist/types/components/Section/index.d.ts +3 -2
- package/dist/types/components/Section/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Section/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/SegmentedControlGroup/SegmentedControlGroup.d.ts +7 -0
- package/dist/types/components/SegmentedControlGroup/index.d.ts +4 -0
- package/dist/types/components/SegmentedControlGroup/stories/Default.stories.d.ts +9 -0
- package/dist/types/components/SegmentedControlGroup/stories/EdgeCases.stories.d.ts +8 -0
- package/dist/types/components/StatusBadge/StatusBadge.d.ts +4 -3
- package/dist/types/components/StatusBadge/index.d.ts +3 -2
- package/dist/types/components/StatusBadge/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/StatusBadge/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/StatusBadge/stories/Variants.stories.d.ts +3 -2
- package/dist/types/components/StatusIcon/StatusIcon.d.ts +3 -2
- package/dist/types/components/StatusIcon/index.d.ts +3 -2
- package/dist/types/components/StatusIcon/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Switch/Switch.d.ts +4 -3
- package/dist/types/components/Switch/index.d.ts +3 -2
- package/dist/types/components/Switch/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Switch/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/Text/Text.d.ts +5 -4
- package/dist/types/components/Text/index.d.ts +3 -2
- package/dist/types/components/Text/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/TextArea/TextArea.d.ts +3 -2
- package/dist/types/components/TextArea/index.d.ts +3 -2
- package/dist/types/components/TextArea/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/TextField/TextField.d.ts +3 -2
- package/dist/types/components/TextField/index.d.ts +3 -2
- package/dist/types/components/TextField/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/types/components/TextFieldBase/index.d.ts +3 -2
- package/dist/types/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/components/Tooltip/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/dist/types/components/Tooltip/components/TooltipTrigger/index.d.ts +3 -2
- package/dist/types/components/Tooltip/index.d.ts +4 -3
- package/dist/types/components/Tooltip/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Tooltip/stories/EdgeCases.stories.d.ts +3 -2
- package/dist/types/components/Wrap/Wrap.d.ts +2 -1
- package/dist/types/components/Wrap/index.d.ts +2 -1
- package/dist/types/components/nextjs/Link/Link.d.ts +2 -1
- package/dist/types/components/nextjs/Link/index.d.ts +2 -1
- package/dist/types/components/nextjs/LinkProvider/LinkProvider.d.ts +2 -1
- package/dist/types/components/nextjs/LinkProvider/index.d.ts +3 -2
- package/dist/types/components/propTypes/index.d.ts +27 -20
- package/dist/types/components/propTypes/types.d.ts +1 -0
- package/dist/types/lib/componentFactory/flowComponent.d.ts +6 -5
- package/dist/types/lib/controller/index.d.ts +1 -0
- package/dist/types/lib/controller/overlay/OverlayState.d.ts +10 -0
- package/dist/types/lib/controller/overlay/context.d.ts +4 -0
- package/dist/types/lib/controller/overlay/index.d.ts +2 -0
- package/dist/types/lib/controller/overlay/useOverlayState.d.ts +8 -0
- package/dist/types/lib/dev/vitestUserEvent.d.ts +2 -0
- package/dist/types/lib/mobx/useAutorunEffect.d.ts +1 -0
- package/dist/types/lib/mobx/useSelector.d.ts +4 -0
- package/dist/types/lib/propsContext/ClearPropsContext.d.ts +2 -1
- package/dist/types/lib/propsContext/PropsContextProvider.d.ts +2 -1
- package/dist/types/lib/propsContext/dynamicProps/dynamic.d.ts +1 -0
- package/dist/types/lib/propsContext/dynamicProps/isDynamicProp.d.ts +2 -1
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.d.ts +2 -1
- package/dist/types/lib/propsContext/dynamicProps/types.d.ts +1 -0
- package/dist/types/lib/propsContext/index.d.ts +5 -4
- package/dist/types/lib/propsContext/isFlowComponentName.d.ts +1 -0
- package/dist/types/lib/propsContext/isFlowComponentProp.d.ts +1 -0
- package/dist/types/lib/propsContext/mergePropsContext.d.ts +1 -0
- package/dist/types/lib/propsContext/nestedPropsContext/isPropsWithChildren.d.ts +2 -1
- package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.d.ts +1 -0
- package/dist/types/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.d.ts +3 -2
- package/dist/types/lib/propsContext/propsContext.d.ts +24 -21
- package/dist/types/lib/propsContext/types.d.ts +2 -1
- package/dist/types/lib/propsContext/useProps.d.ts +1 -0
- package/dist/types/lib/react/components/Empty/Empty.d.ts +2 -1
- package/dist/types/lib/react/components/Empty/index.d.ts +3 -2
- package/dist/types/lib/react/components/Render/Render.d.ts +2 -1
- package/dist/types/lib/react/components/Render/index.d.ts +1 -1
- package/dist/types/lib/react/deepFindOfType.d.ts +2 -1
- package/dist/types/lib/react/deepHas.d.ts +2 -1
- package/dist/types/lib/react/getPropsMerger.d.ts +2 -1
- package/dist/types/lib/types/props.d.ts +7 -2
- package/dist/types/styles/index.d.ts +1 -0
- package/dist/useOverlayState-BnPe_CrX.js +47 -0
- package/dist/{useProps-U3eRrkW6.js → useProps-BEU8ldpP.js} +23 -19
- package/dist/useSelector-DpU7_HMO.js +13 -0
- package/package.json +62 -37
- package/dist/Button-O2JAPot2.js +0 -97
- package/dist/IconUnchecked-DFKAvzMH.js +0 -10
- package/dist/PropsContextProvider-B6QiUIPM.js +0 -28
- package/dist/flowComponent-92d7kP4i.js +0 -19
- package/dist/types/components/Icon/components/icons/IconChecked.d.ts +0 -4
- package/dist/types/components/Icon/components/icons/IconUnchecked.d.ts +0 -4
- package/dist/types/components/List/components/DataLoader/components/SuspenseFallback/SuspenseFallback.d.ts +0 -6
- package/dist/types/components/List/components/DataLoader/components/SuspenseFallback/index.d.ts +0 -3
- package/dist/types/components/List/components/ShowMoreItemsButton/ShowMoreItemsButton.d.ts +0 -4
- package/dist/types/components/List/components/ShowMoreItemsButton/index.d.ts +0 -3
- package/dist/types/components/List/model/pagination/Pagination.d.ts +0 -16
- package/dist/types/components/Navigation/components/NavigationItem/NavigationItem.d.ts +0 -8
- package/dist/types/components/Navigation/components/NavigationItem/index.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useList: () => import(
|
|
1
|
+
export declare const useList: () => import('../model/List').List<any>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { List } from
|
|
2
|
-
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
import { List } from './List';
|
|
2
|
+
|
|
3
|
+
export * from './List';
|
|
4
|
+
export * from './components/ListFilter';
|
|
5
|
+
export * from './components/ListSorting';
|
|
6
|
+
export * from './components/ListItemView';
|
|
7
|
+
export * from './components/ListLoaderAsync';
|
|
8
|
+
export * from './components/ListStaticData';
|
|
8
9
|
export default List;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import List from './model/List';
|
|
3
1
|
import { AnyData } from './model/item/types';
|
|
2
|
+
import { default as List } from './model/List';
|
|
3
|
+
|
|
4
4
|
interface ListContext {
|
|
5
5
|
list: List<AnyData>;
|
|
6
6
|
}
|
|
7
|
-
export declare const listContext: import(
|
|
7
|
+
export declare const listContext: import('react').Context<ListContext>;
|
|
8
8
|
export {};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { ItemCollection } from './item/ItemCollection';
|
|
2
|
-
import { Pagination } from './pagination/Pagination';
|
|
3
|
-
import { RenderItemFn } from './item/Item';
|
|
4
|
-
import { Filter } from "./filter/Filter";
|
|
5
|
-
import { Sorting } from './sorting/Sorting';
|
|
6
|
-
import ReactTable from './ReactTable';
|
|
7
|
-
import { ListShape } from './types';
|
|
8
1
|
import { IncrementalLoader } from './loading/IncrementalLoader';
|
|
2
|
+
import { ListShape } from './types';
|
|
3
|
+
import { default as ReactTable } from './ReactTable';
|
|
4
|
+
import { Sorting } from './sorting/Sorting';
|
|
5
|
+
import { Filter } from './filter/Filter';
|
|
6
|
+
import { RenderItemFn } from './item/Item';
|
|
7
|
+
import { BatchesController } from './pagination/BatchesController';
|
|
8
|
+
import { ItemCollection } from './item/ItemCollection';
|
|
9
|
+
|
|
9
10
|
export declare class List<T> {
|
|
10
11
|
readonly filters: Array<Filter<T>>;
|
|
11
12
|
readonly sorting: Array<Sorting<T>>;
|
|
12
13
|
readonly items: ItemCollection<T>;
|
|
13
14
|
readonly render?: RenderItemFn<T>;
|
|
14
15
|
readonly reactTable: ReactTable<T>;
|
|
15
|
-
readonly
|
|
16
|
+
readonly batches: BatchesController<T>;
|
|
16
17
|
readonly loader: IncrementalLoader<T>;
|
|
17
18
|
private constructor();
|
|
18
19
|
static useNew<T>(shape: ListShape<T>): List<T>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Column, Table, TableOptions } from "@tanstack/react-table";
|
|
2
|
-
import List from './List';
|
|
3
1
|
import { PropertyName } from './item/Item';
|
|
2
|
+
import { default as List } from './List';
|
|
3
|
+
import { Column, Table, TableOptions } from '@tanstack/react-table';
|
|
4
|
+
|
|
4
5
|
export declare class ReactTable<T> {
|
|
5
6
|
readonly list: List<T>;
|
|
6
7
|
readonly table: Table<T>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Column, ColumnDef, ColumnFilter } from "@tanstack/react-table";
|
|
2
|
-
import List from '../List';
|
|
3
|
-
import { PropertyName } from '../item/Item';
|
|
4
1
|
import { FilterMatcher, FilterMode, FilterShape } from './types';
|
|
2
|
+
import { PropertyName } from '../item/Item';
|
|
3
|
+
import { default as List } from '../List';
|
|
4
|
+
import { Column, ColumnDef, ColumnFilter } from '@tanstack/react-table';
|
|
5
|
+
|
|
5
6
|
export declare class Filter<T> {
|
|
6
7
|
private readonly _values?;
|
|
7
8
|
readonly list: List<T>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { DeepKeys, Row } from '@tanstack/react-table';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
1
3
|
import { ItemCollection } from './ItemCollection';
|
|
2
|
-
|
|
3
|
-
import { DeepKeys, Row } from "@tanstack/react-table";
|
|
4
|
+
|
|
4
5
|
export type PropertyName<T> = DeepKeys<T>;
|
|
5
6
|
export type RenderItemFn<T> = (data: T) => ReactNode;
|
|
6
7
|
export declare class Item<T> {
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IncrementalLoaderState } from './IncrementalLoaderState';
|
|
2
2
|
import { IncrementalLoaderShape } from './types';
|
|
3
|
+
import { default as List } from '../List';
|
|
4
|
+
|
|
3
5
|
export declare class IncrementalLoader<T> {
|
|
4
6
|
private readonly list;
|
|
5
7
|
private readonly dataSource;
|
|
6
|
-
private readonly pagesDataSignal;
|
|
7
|
-
private readonly pagesLoadingStateSignal;
|
|
8
8
|
readonly manualSorting: boolean;
|
|
9
9
|
readonly manualFiltering: boolean;
|
|
10
10
|
readonly manualPagination: boolean;
|
|
11
|
-
|
|
11
|
+
readonly loaderState: IncrementalLoaderState<T>;
|
|
12
|
+
private constructor();
|
|
13
|
+
static useNew<T>(list: List<T>, shape?: IncrementalLoaderShape<T>): IncrementalLoader<T>;
|
|
12
14
|
private reset;
|
|
13
15
|
useIsLoading(): boolean;
|
|
14
16
|
useData(): T[];
|
|
15
|
-
useSuspenseHook(pageIndex: number): void;
|
|
16
17
|
getLoaderInvocationHooks(): Array<() => void>;
|
|
17
|
-
private
|
|
18
|
+
private useLoadBatch;
|
|
18
19
|
private getDataLoaderOptions;
|
|
19
|
-
private
|
|
20
|
-
private updatePageData;
|
|
21
|
-
private updatePageLoadingState;
|
|
22
|
-
loadMore(): void;
|
|
20
|
+
private getBatchDataAsyncResource;
|
|
23
21
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AsyncResource } from '@mittwald/react-use-promise';
|
|
2
|
+
|
|
3
|
+
type AsyncResourceLoadingState = AsyncResource["state"]["value"];
|
|
4
|
+
type DataBatches<T> = Array<T[]>;
|
|
5
|
+
type BatchesLoadingState = AsyncResourceLoadingState[];
|
|
6
|
+
export declare class IncrementalLoaderState<T> {
|
|
7
|
+
dataBatches: DataBatches<T>;
|
|
8
|
+
prevDataBatches: DataBatches<T>;
|
|
9
|
+
batchLoadingStates: BatchesLoadingState;
|
|
10
|
+
private constructor();
|
|
11
|
+
static useNew<T>(): IncrementalLoaderState<T>;
|
|
12
|
+
reset(): void;
|
|
13
|
+
setDataBatch(index: number, data: T[]): void;
|
|
14
|
+
setBatchLoadingState(index: number, state: AsyncResourceLoadingState): void;
|
|
15
|
+
get mergedData(): T[];
|
|
16
|
+
useMergedData(): T[];
|
|
17
|
+
get isLoading(): boolean;
|
|
18
|
+
useIsLoading(): boolean;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AsyncResource } from '@mittwald/react-use-promise';
|
|
2
2
|
import { FilterMode } from '../filter/types';
|
|
3
|
-
import {
|
|
3
|
+
import { PropertyRecord } from '../types';
|
|
4
|
+
|
|
4
5
|
type DataLoaderSortOptions<T> = PropertyRecord<T, "asc" | "desc">;
|
|
5
6
|
type DataLoaderFilterOptions<T> = PropertyRecord<T, {
|
|
6
7
|
mode: FilterMode;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BatchesControllerShape } from './types';
|
|
2
|
+
import { default as List } from '../List';
|
|
3
|
+
|
|
4
|
+
export declare class BatchesController<T> {
|
|
5
|
+
readonly batchSize: number;
|
|
6
|
+
private readonly list;
|
|
7
|
+
constructor(list: List<T>, shape?: BatchesControllerShape);
|
|
8
|
+
private get reactTable();
|
|
9
|
+
getBatchIndex(): number;
|
|
10
|
+
hasNextBatch(): boolean;
|
|
11
|
+
getTotalItemsCount(): number | undefined;
|
|
12
|
+
getFilteredItemsCount(): number;
|
|
13
|
+
getVisibleItemsCount(): number | undefined;
|
|
14
|
+
updateItemTotalCount(value: number): void;
|
|
15
|
+
reset(): void;
|
|
16
|
+
nextBatch(): void;
|
|
17
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
|
|
1
|
+
export interface BatchesControllerShape {
|
|
2
|
+
batchSize?: number;
|
|
3
3
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Column, ColumnDef, SortDirection } from "@tanstack/react-table";
|
|
2
|
-
import List from '../List';
|
|
3
|
-
import { PropertyName } from '../item/Item';
|
|
4
1
|
import { SortingShape } from './types';
|
|
2
|
+
import { PropertyName } from '../item/Item';
|
|
3
|
+
import { default as List } from '../List';
|
|
4
|
+
import { Column, ColumnDef, SortDirection } from '@tanstack/react-table';
|
|
5
|
+
|
|
5
6
|
export declare class Sorting<T> {
|
|
6
7
|
readonly list: List<T>;
|
|
7
8
|
readonly property: PropertyName<T>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { PropertyName, RenderItemFn } from './item/Item';
|
|
2
|
-
import { SortingShape } from './sorting/types';
|
|
3
|
-
import { PaginationShape } from './pagination/types';
|
|
4
|
-
import { FilterShape } from './filter/types';
|
|
5
1
|
import { IncrementalLoaderShape } from './loading/types';
|
|
2
|
+
import { FilterShape } from './filter/types';
|
|
3
|
+
import { BatchesControllerShape } from './pagination/types';
|
|
4
|
+
import { SortingShape } from './sorting/types';
|
|
5
|
+
import { PropertyName, RenderItemFn } from './item/Item';
|
|
6
|
+
|
|
6
7
|
export interface ListShape<T> {
|
|
7
8
|
loader?: IncrementalLoaderShape<T>;
|
|
8
9
|
render?: RenderItemFn<T>;
|
|
9
10
|
filters?: FilterShape<T>[];
|
|
10
11
|
sorting?: SortingShape<T>[];
|
|
11
|
-
|
|
12
|
+
batchesController?: BatchesControllerShape;
|
|
12
13
|
enableMultiSort?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export type PropertyRecord<T, TValue> = Partial<Record<PropertyName<T>, TValue>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { default as List } from '../List';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof List>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof List>;
|
|
6
7
|
export declare const Default: Story;
|
|
8
|
+
export declare const ItemsWithLink: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as List } from '../List';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof List>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof List>;
|
|
7
|
+
export declare const WithoutAvatar: Story;
|
|
8
|
+
export declare const WithoutSubtitle: Story;
|
|
9
|
+
export declare const WithoutContent: Story;
|
|
10
|
+
export declare const WithoutContextMenu: Story;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FC } from
|
|
3
|
-
|
|
1
|
+
import { OverlayState } from '../../lib/controller/overlay';
|
|
2
|
+
import { FC, PropsWithChildren } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface ModalProps extends PropsWithChildren {
|
|
4
5
|
size?: "s" | "m" | "l";
|
|
5
6
|
panel?: boolean;
|
|
7
|
+
state?: OverlayState;
|
|
8
|
+
defaultOpen?: boolean;
|
|
6
9
|
}
|
|
7
10
|
export declare const Modal: FC<ModalProps>;
|
|
8
11
|
export default Modal;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Modal } from
|
|
2
|
-
|
|
3
|
-
export {
|
|
1
|
+
import { Modal } from './Modal';
|
|
2
|
+
|
|
3
|
+
export { type ModalProps, Modal } from './Modal';
|
|
4
|
+
export { DialogTrigger as ModalTrigger } from 'react-aria-components';
|
|
4
5
|
export default Modal;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { default as Modal } from '..';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof Modal>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof Modal>;
|
|
6
|
-
export declare const
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithController: Story;
|
|
7
9
|
export declare const WithDialogTrigger: Story;
|
|
8
10
|
export declare const Mobile: Story;
|
|
9
11
|
export declare const Panel: Story;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { default as Modal } from '../Modal';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof Modal>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof Modal>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Navigation } from
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { Navigation } from './Navigation';
|
|
2
|
+
|
|
3
|
+
export { Navigation, type NavigationProps } from './Navigation';
|
|
4
|
+
export * from './components/NavigationGroup';
|
|
4
5
|
export default Navigation;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
1
|
import { Navigation } from '..';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof Navigation>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof Navigation>;
|
|
6
7
|
export declare const Default: Story;
|
|
7
8
|
export declare const WithIcons: Story;
|
|
9
|
+
export declare const WithGroups: Story;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { NumberField } from '../index';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof NumberField>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof NumberField>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { NumberField } from '../index';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof NumberField>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof NumberField>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColumnLayoutProps } from '../ColumnLayout';
|
|
2
|
+
import { FC, PropsWithChildren } from 'react';
|
|
3
|
+
|
|
2
4
|
import * as Aria from "react-aria-components";
|
|
3
|
-
export interface RadioGroupProps extends PropsWithChildren<Omit<Aria.RadioGroupProps, "children"
|
|
5
|
+
export interface RadioGroupProps extends PropsWithChildren<Omit<Aria.RadioGroupProps, "children">>, Pick<ColumnLayoutProps, "s" | "m" | "l"> {
|
|
4
6
|
}
|
|
5
7
|
export declare const RadioGroup: FC<RadioGroupProps>;
|
|
6
8
|
export default RadioGroup;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlowComponentProps } from '../../../../lib/componentFactory/flowComponent';
|
|
2
|
+
import { PropsWithChildren, default as React } from 'react';
|
|
3
|
+
|
|
2
4
|
import * as Aria from "react-aria-components";
|
|
3
|
-
export interface RadioProps extends PropsWithChildren<Omit<Aria.RadioProps, "children"
|
|
5
|
+
export interface RadioProps extends PropsWithChildren<Omit<Aria.RadioProps, "children">>, FlowComponentProps {
|
|
4
6
|
}
|
|
5
|
-
export declare const Radio:
|
|
7
|
+
export declare const Radio: React.ComponentClass<RadioProps, any> | React.FunctionComponent<RadioProps>;
|
|
6
8
|
export default Radio;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { RadioGroup } from
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { RadioGroup } from './RadioGroup';
|
|
2
|
+
|
|
3
|
+
export { type RadioGroupProps, RadioGroup } from './RadioGroup';
|
|
4
|
+
export * from './components/Radio';
|
|
5
|
+
export * from './components/RadioButton';
|
|
4
6
|
export default RadioGroup;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { RadioGroup } from '../index';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof RadioGroup>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof RadioGroup>;
|
|
6
7
|
export declare const Default: Story;
|
|
7
8
|
export declare const RadioGroupDisabled: Story;
|
|
8
9
|
export declare const RadioDisabled: Story;
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
10
|
+
export declare const RadioButtons: Story;
|
|
11
|
+
export declare const RadioButtonDisabled: Story;
|
|
12
|
+
export declare const RadioButtonsWithContent: Story;
|
|
12
13
|
export declare const WithFieldError: Story;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { RadioGroup } from '../index';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof RadioGroup>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof RadioGroup>;
|
|
6
7
|
export declare const LongTexts: Story;
|
|
7
|
-
export declare const
|
|
8
|
+
export declare const MultipleRadioButtons: Story;
|
|
8
9
|
export declare const SmallSpace: Story;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ComponentProps, FC, PropsWithChildren } from
|
|
1
|
+
import { ComponentProps, FC, PropsWithChildren } from 'react';
|
|
2
|
+
|
|
2
3
|
export interface SectionProps extends PropsWithChildren<ComponentProps<"section">> {
|
|
3
4
|
}
|
|
4
5
|
export declare const Section: FC<SectionProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { default as Section } from '../Section';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
3
4
|
declare const meta: Meta<typeof Section>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof Section>;
|