@mittwald/flow-react-components 0.1.0-alpha.55 → 0.1.0-alpha.56
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-DBT4VBSr.js +23 -0
- package/dist/Checkbox.js +3 -19
- package/dist/CheckboxButton-CoEvnLRt.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 +19 -18
- 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/IconCheckboxIndeterminate-B6FOeb87.js +11 -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 +65 -58
- 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 +319 -249
- 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/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 +2 -1
- 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 +3 -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 +8 -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 +3 -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/ShowMoreItemsButton/ShowMoreItemsButton.d.ts +2 -1
- package/dist/types/components/List/components/ShowMoreItemsButton/index.d.ts +3 -2
- 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 +8 -7
- 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 +6 -7
- 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/Pagination.d.ts +2 -1
- 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 +5 -4
- 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 +6 -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 +8 -1
- 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/Navigation/components/NavigationItem/NavigationItem.d.ts +0 -8
- package/dist/types/components/Navigation/components/NavigationItem/index.d.ts +0 -3
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
var S = Object.defineProperty;
|
|
4
|
+
var P = (e, t, s) => t in e ? S(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
5
|
+
var i = (e, t, s) => (P(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
6
|
+
import M, { useState as k } from "react";
|
|
7
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
8
|
+
import { P as x } from "./PropsContextProvider-BsrVIv1a.js";
|
|
9
|
+
import "@react-aria/utils";
|
|
10
|
+
import "remeda";
|
|
11
|
+
import { u as A } from "./useProps-BEU8ldpP.js";
|
|
12
|
+
import { u as y } from "./useOverlayState-BnPe_CrX.js";
|
|
13
|
+
import { makeObservable as C, observable as r, action as l } from "mobx";
|
|
14
|
+
import { u as v } from "./useSelector-DpU7_HMO.js";
|
|
15
|
+
const E = () => {
|
|
16
|
+
}, O = (e) => {
|
|
17
|
+
const t = y();
|
|
18
|
+
return (e == null ? void 0 : e.type) === "function" ? e.fn : (e == null ? void 0 : e.type) === "toggleModal" ? t.toggle : (e == null ? void 0 : e.type) === "openModal" ? t.open : (e == null ? void 0 : e.type) === "closeModal" ? t.close : E;
|
|
19
|
+
}, m = (e, t) => {
|
|
20
|
+
const s = [...t];
|
|
21
|
+
let n;
|
|
22
|
+
for (; s.length > 0; )
|
|
23
|
+
if (n = s.shift(), n) {
|
|
24
|
+
const o = n(...e);
|
|
25
|
+
if (o instanceof Promise)
|
|
26
|
+
return o.then(() => m(e, s));
|
|
27
|
+
}
|
|
28
|
+
}, p = {
|
|
29
|
+
pending: 1e3,
|
|
30
|
+
succeeded: 1500,
|
|
31
|
+
failed: 2e3
|
|
32
|
+
};
|
|
33
|
+
class b {
|
|
34
|
+
constructor(t = {}) {
|
|
35
|
+
i(this, "isPending", !1);
|
|
36
|
+
i(this, "isExecuting", !1);
|
|
37
|
+
i(this, "isSucceeded", !1);
|
|
38
|
+
i(this, "isFailed", !1);
|
|
39
|
+
i(this, "feedback");
|
|
40
|
+
i(this, "executionCount", 0);
|
|
41
|
+
const { feedback: s = !1 } = t;
|
|
42
|
+
C(this, {
|
|
43
|
+
isPending: r,
|
|
44
|
+
isExecuting: r,
|
|
45
|
+
isSucceeded: r,
|
|
46
|
+
isFailed: r,
|
|
47
|
+
onStart: l.bound,
|
|
48
|
+
onSucceeded: l.bound,
|
|
49
|
+
onFailed: l.bound,
|
|
50
|
+
resetFeedback: l.bound,
|
|
51
|
+
startPending: l.bound
|
|
52
|
+
}), this.feedback = s;
|
|
53
|
+
}
|
|
54
|
+
static useNew(t) {
|
|
55
|
+
return k(new b(t))[0];
|
|
56
|
+
}
|
|
57
|
+
resetFeedback() {
|
|
58
|
+
this.isFailed = !1, this.isSucceeded = !1;
|
|
59
|
+
}
|
|
60
|
+
startFailedFeedback() {
|
|
61
|
+
this.feedback && (this.isFailed = !0, setTimeout(this.resetFeedback, p.failed));
|
|
62
|
+
}
|
|
63
|
+
startSucceededFeedback() {
|
|
64
|
+
this.feedback && (this.isSucceeded = !0, setTimeout(this.resetFeedback, p.succeeded));
|
|
65
|
+
}
|
|
66
|
+
onDone(t) {
|
|
67
|
+
this.isExecuting = !1, this.isPending = !1, t ? this.startSucceededFeedback() : this.startFailedFeedback();
|
|
68
|
+
}
|
|
69
|
+
onFailed() {
|
|
70
|
+
this.onDone(!1);
|
|
71
|
+
}
|
|
72
|
+
onSucceeded() {
|
|
73
|
+
this.onDone(!0);
|
|
74
|
+
}
|
|
75
|
+
startPending(t) {
|
|
76
|
+
this.isExecuting && t === this.executionCount && (this.isPending = !0);
|
|
77
|
+
}
|
|
78
|
+
onStart() {
|
|
79
|
+
const t = ++this.executionCount;
|
|
80
|
+
this.isExecuting = !0, setTimeout(() => this.startPending(t), p.pending);
|
|
81
|
+
}
|
|
82
|
+
useObserve() {
|
|
83
|
+
return v(
|
|
84
|
+
() => ({
|
|
85
|
+
isPending: this.isPending,
|
|
86
|
+
isFailed: this.isFailed,
|
|
87
|
+
isExecuting: this.isExecuting,
|
|
88
|
+
isSucceeded: this.isSucceeded
|
|
89
|
+
}),
|
|
90
|
+
[this]
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const w = (e, t) => {
|
|
95
|
+
const { action: s } = A("Action", {}), n = O(e), o = b.useNew(t);
|
|
96
|
+
return {
|
|
97
|
+
callAction: (...a) => {
|
|
98
|
+
try {
|
|
99
|
+
o.onStart();
|
|
100
|
+
const c = m(a, [n, s]);
|
|
101
|
+
if (c instanceof Promise)
|
|
102
|
+
return c.then(o.onSucceeded).catch(o.onFailed);
|
|
103
|
+
o.onSucceeded();
|
|
104
|
+
} catch {
|
|
105
|
+
o.onFailed();
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
state: o
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
function g(e) {
|
|
112
|
+
return typeof e == "boolean" ? void 0 : e;
|
|
113
|
+
}
|
|
114
|
+
const u = {
|
|
115
|
+
fn: (e) => ({
|
|
116
|
+
type: "function",
|
|
117
|
+
fn: e
|
|
118
|
+
}),
|
|
119
|
+
openModal: (e) => ({
|
|
120
|
+
type: "openModal",
|
|
121
|
+
controller: g(e)
|
|
122
|
+
}),
|
|
123
|
+
closeModal: (e) => ({
|
|
124
|
+
type: "closeModal",
|
|
125
|
+
controller: g(e)
|
|
126
|
+
}),
|
|
127
|
+
toggleModal: (e) => ({
|
|
128
|
+
type: "toggleModal",
|
|
129
|
+
controller: g(e)
|
|
130
|
+
})
|
|
131
|
+
}, z = (e) => {
|
|
132
|
+
const {
|
|
133
|
+
children: t,
|
|
134
|
+
feedback: s,
|
|
135
|
+
action: n,
|
|
136
|
+
toggleModal: o,
|
|
137
|
+
openModal: f,
|
|
138
|
+
closeModal: a
|
|
139
|
+
} = e, c = n ? u.fn(n) : o ? u.toggleModal(o) : f ? u.openModal(f) : a ? u.closeModal(a) : void 0, h = w(c, { feedback: s }), d = h.state.useObserve(), F = {
|
|
140
|
+
Button: {
|
|
141
|
+
onPress: h.callAction,
|
|
142
|
+
isPending: d.isPending,
|
|
143
|
+
isDisabled: d.isExecuting,
|
|
144
|
+
isSucceeded: d.isSucceeded,
|
|
145
|
+
isFailed: d.isFailed
|
|
146
|
+
},
|
|
147
|
+
Action: {
|
|
148
|
+
action: h.callAction
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
return /* @__PURE__ */ M.createElement(
|
|
152
|
+
x,
|
|
153
|
+
{
|
|
154
|
+
props: F,
|
|
155
|
+
dependencies: Object.values(d)
|
|
156
|
+
},
|
|
157
|
+
t
|
|
158
|
+
);
|
|
159
|
+
};
|
|
160
|
+
export {
|
|
161
|
+
z as A
|
|
162
|
+
};
|
package/dist/Action.js
ADDED
package/dist/Avatar.js
CHANGED
|
@@ -2,17 +2,15 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import i, { isValidElement as l } from "react";
|
|
4
4
|
import m from "clsx";
|
|
5
|
-
import { C as
|
|
6
|
-
import { P as
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
icon: z,
|
|
15
|
-
initials: d,
|
|
5
|
+
import { C as v } from "./ClearPropsContext-CD1-9TZA.js";
|
|
6
|
+
import { P as p } from "./PropsContextProvider-BsrVIv1a.js";
|
|
7
|
+
import { u as c } from "./useProps-BEU8ldpP.js";
|
|
8
|
+
import { hash as f } from "object-code";
|
|
9
|
+
import { deepForEach as w } from "react-children-utilities";
|
|
10
|
+
const z = "flow--avatar", d = "flow--avatar--icon", h = "flow--avatar--initials", r = {
|
|
11
|
+
avatar: z,
|
|
12
|
+
icon: d,
|
|
13
|
+
initials: h,
|
|
16
14
|
"size-m": "flow--avatar--size-m",
|
|
17
15
|
"size-xs": "flow--avatar--size-xs",
|
|
18
16
|
"size-s": "flow--avatar--size-s",
|
|
@@ -21,22 +19,22 @@ const w = "flow--avatar", z = "flow--avatar--icon", d = "flow--avatar--initials"
|
|
|
21
19
|
"variant-2": "flow--avatar--variant-2",
|
|
22
20
|
"variant-3": "flow--avatar--variant-3",
|
|
23
21
|
"variant-4": "flow--avatar--variant-4"
|
|
24
|
-
},
|
|
22
|
+
}, u = (s) => {
|
|
25
23
|
const a = [];
|
|
26
|
-
|
|
24
|
+
w(s, (t) => {
|
|
27
25
|
l(t) ? a.push({
|
|
28
26
|
props: t.props,
|
|
29
27
|
type: t.type
|
|
30
28
|
}) : a.push(t);
|
|
31
29
|
});
|
|
32
|
-
const
|
|
33
|
-
return Math.abs(
|
|
34
|
-
},
|
|
35
|
-
const { children: a, className:
|
|
30
|
+
const o = f(a);
|
|
31
|
+
return Math.abs(o % 4) + 1;
|
|
32
|
+
}, g = (s) => {
|
|
33
|
+
const { children: a, className: o, size: t = "m" } = c("Avatar", s), e = m(
|
|
36
34
|
r.avatar,
|
|
37
35
|
r[`size-${t}`],
|
|
38
|
-
|
|
39
|
-
r[`variant-${
|
|
36
|
+
o,
|
|
37
|
+
r[`variant-${u(a)}`]
|
|
40
38
|
), n = {
|
|
41
39
|
Initials: {
|
|
42
40
|
className: r.initials
|
|
@@ -45,9 +43,9 @@ const w = "flow--avatar", z = "flow--avatar--icon", d = "flow--avatar--initials"
|
|
|
45
43
|
className: r.icon
|
|
46
44
|
}
|
|
47
45
|
};
|
|
48
|
-
return /* @__PURE__ */ i.createElement(
|
|
46
|
+
return /* @__PURE__ */ i.createElement(v, null, /* @__PURE__ */ i.createElement("div", { className: e }, /* @__PURE__ */ i.createElement(p, { props: n }, a)));
|
|
49
47
|
};
|
|
50
48
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
g as Avatar,
|
|
50
|
+
g as default
|
|
53
51
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import r from "react";
|
|
4
|
+
import * as s from "react-aria-components";
|
|
5
|
+
import a from "clsx";
|
|
6
|
+
import "@tabler/icons-react";
|
|
7
|
+
import "html-react-parser";
|
|
8
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
9
|
+
import "@react-aria/utils";
|
|
10
|
+
import "remeda";
|
|
11
|
+
import "@mittwald/react-tunnel";
|
|
12
|
+
import { I as u } from "./IconChevronRight-T-spe-97.js";
|
|
13
|
+
import { P as d } from "./PropsContextProvider-BsrVIv1a.js";
|
|
14
|
+
const p = "flow--breadcrumb", f = "flow--breadcrumb--link", m = {
|
|
15
|
+
breadcrumb: p,
|
|
16
|
+
link: f
|
|
17
|
+
}, N = "flow--breadcrumb--breadcrumb-item", I = "flow--breadcrumb--breadcrumb-item--icon", c = {
|
|
18
|
+
breadcrumbItem: N,
|
|
19
|
+
icon: I
|
|
20
|
+
}, h = (e) => {
|
|
21
|
+
const { children: t } = e, o = a(c.breadcrumbItem);
|
|
22
|
+
return /* @__PURE__ */ r.createElement(s.Breadcrumb, { className: o }, t, /* @__PURE__ */ r.createElement(u, { size: "s", className: c.icon }));
|
|
23
|
+
}, g = (e) => {
|
|
24
|
+
const { children: t, className: o, ...n } = e, l = a(m.breadcrumb, o), b = {
|
|
25
|
+
Link: {
|
|
26
|
+
unstyled: !0,
|
|
27
|
+
className: m.link,
|
|
28
|
+
hoc: (i) => /* @__PURE__ */ r.createElement(h, null, i)
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return /* @__PURE__ */ r.createElement(s.Breadcrumbs, { ...n, className: l }, /* @__PURE__ */ r.createElement(d, { props: b }, t));
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
g as Breadcrumb,
|
|
35
|
+
g as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import n from "react";
|
|
4
|
+
import * as p from "react-aria-components";
|
|
5
|
+
import v from "clsx";
|
|
6
|
+
import { C as x } from "./ClearPropsContext-CD1-9TZA.js";
|
|
7
|
+
import { P as C } from "./PropsContextProvider-BsrVIv1a.js";
|
|
8
|
+
import "@react-aria/utils";
|
|
9
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
10
|
+
import "remeda";
|
|
11
|
+
import "@tabler/icons-react";
|
|
12
|
+
import "html-react-parser";
|
|
13
|
+
import { f as I } from "./flowComponent-Dv5hKZam.js";
|
|
14
|
+
import { I as N, a as h, b as z } from "./IconSucceeded-IhwCzdOs.js";
|
|
15
|
+
import { W as l } from "./Wrap-DGT1h1o3.js";
|
|
16
|
+
import { T as B } from "./Text-Dc6eN_n2.js";
|
|
17
|
+
import { useLocalizedStringFormatter as D } from "react-aria";
|
|
18
|
+
const L = "flow--button", T = "flow--button--icon", A = "flow--button--text", K = "flow--button--content", U = "flow--button--state-icon", W = "flow--button--is-succeeded", $ = "flow--button--is-failed", R = "flow--button--is-pending", j = "flow--button--plain", k = "flow--button--primary", q = "flow--button--solid", G = "flow--button--accent", H = "flow--button--danger", J = "flow--button--secondary", M = "flow--button--soft", e = {
|
|
19
|
+
button: L,
|
|
20
|
+
icon: T,
|
|
21
|
+
text: A,
|
|
22
|
+
content: K,
|
|
23
|
+
stateIcon: U,
|
|
24
|
+
"size-s": "flow--button--size-s",
|
|
25
|
+
isSucceeded: W,
|
|
26
|
+
isFailed: $,
|
|
27
|
+
isPending: R,
|
|
28
|
+
plain: j,
|
|
29
|
+
primary: k,
|
|
30
|
+
solid: q,
|
|
31
|
+
accent: G,
|
|
32
|
+
danger: H,
|
|
33
|
+
secondary: J,
|
|
34
|
+
soft: M
|
|
35
|
+
}, O = {
|
|
36
|
+
"de-DE": {
|
|
37
|
+
"button.isFailed": "Fehlgeschlagen",
|
|
38
|
+
"button.isPending": "Ausstehend",
|
|
39
|
+
"button.isSucceeded": "Erfolgreich"
|
|
40
|
+
},
|
|
41
|
+
"en-EN": {
|
|
42
|
+
"button.isFailed": "Failed",
|
|
43
|
+
"button.isPending": "Pending",
|
|
44
|
+
"button.isSucceeded": "Succeeded"
|
|
45
|
+
}
|
|
46
|
+
}, Q = (t) => ((t.isPending || t.isSucceeded || t.isFailed) && (t = { ...t }, t.onPress = void 0, t.onPressStart = void 0, t.onPressEnd = void 0, t.onPressChange = void 0, t.onPressUp = void 0, t.onKeyDown = void 0, t.onKeyUp = void 0), t), dt = I("Button", (t) => {
|
|
47
|
+
t = Q(t);
|
|
48
|
+
const {
|
|
49
|
+
variant: m = "primary",
|
|
50
|
+
style: u = "solid",
|
|
51
|
+
children: a,
|
|
52
|
+
className: f,
|
|
53
|
+
size: i = "m",
|
|
54
|
+
isPending: c,
|
|
55
|
+
isDisabled: b,
|
|
56
|
+
isSucceeded: o,
|
|
57
|
+
isFailed: s,
|
|
58
|
+
"aria-label": g,
|
|
59
|
+
...P
|
|
60
|
+
} = t, w = v(
|
|
61
|
+
e.button,
|
|
62
|
+
c && e.isPending,
|
|
63
|
+
o && e.isSucceeded,
|
|
64
|
+
s && e.isFailed,
|
|
65
|
+
e[`size-${i}`],
|
|
66
|
+
e[m],
|
|
67
|
+
e[u],
|
|
68
|
+
f
|
|
69
|
+
), S = {
|
|
70
|
+
Icon: {
|
|
71
|
+
className: e.icon,
|
|
72
|
+
"aria-hidden": !0,
|
|
73
|
+
size: i
|
|
74
|
+
},
|
|
75
|
+
Text: {
|
|
76
|
+
className: e.text
|
|
77
|
+
}
|
|
78
|
+
}, F = D(O), y = o || s || c ? F.format(
|
|
79
|
+
`button.${o ? "isSucceeded" : s ? "isFailed" : "isPending"}`
|
|
80
|
+
) : void 0, r = o ? N : s ? h : c ? z : void 0, d = r && /* @__PURE__ */ n.createElement(r, { size: i, className: e.stateIcon }), E = typeof a == "string";
|
|
81
|
+
return /* @__PURE__ */ n.createElement(x, null, /* @__PURE__ */ n.createElement(
|
|
82
|
+
p.Button,
|
|
83
|
+
{
|
|
84
|
+
className: w,
|
|
85
|
+
isDisabled: b,
|
|
86
|
+
"aria-label": y ?? g,
|
|
87
|
+
...P
|
|
88
|
+
},
|
|
89
|
+
/* @__PURE__ */ n.createElement(l, { if: d }, /* @__PURE__ */ n.createElement("span", { className: e.content }, /* @__PURE__ */ n.createElement(l, { if: E }, /* @__PURE__ */ n.createElement(B, null, /* @__PURE__ */ n.createElement(C, { props: S }, a))))),
|
|
90
|
+
d
|
|
91
|
+
));
|
|
92
|
+
});
|
|
93
|
+
export {
|
|
94
|
+
dt as B
|
|
95
|
+
};
|
package/dist/Button.js
CHANGED
package/dist/ButtonGroup.js
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import o from "react";
|
|
4
|
+
import { C as m } from "./ClearPropsContext-CD1-9TZA.js";
|
|
5
|
+
import { P as c } from "./PropsContextProvider-BsrVIv1a.js";
|
|
6
|
+
import { u as l } from "./useProps-BEU8ldpP.js";
|
|
7
|
+
import { d as i } from "./dynamic-ClpUSmEt.js";
|
|
8
|
+
import b from "clsx";
|
|
9
|
+
const f = "flow--button-group", d = "flow--button-group--abort", t = {
|
|
10
|
+
buttonGroup: f,
|
|
11
|
+
abort: d
|
|
12
|
+
}, g = (r) => {
|
|
13
|
+
const { children: e, className: s, ...a } = l("ButtonGroup", r), n = b(t.buttonGroup, s), p = {
|
|
14
|
+
Button: {
|
|
15
|
+
className: i(
|
|
16
|
+
(u) => u.variant === "secondary" ? t.abort : void 0
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ o.createElement(m, null, /* @__PURE__ */ o.createElement("div", { ...a, className: n, role: "group" }, /* @__PURE__ */ o.createElement(c, { props: p }, e)));
|
|
12
21
|
};
|
|
13
22
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
23
|
+
g as ButtonGroup,
|
|
24
|
+
g as default
|
|
16
25
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as l from "react-aria-components";
|
|
5
|
+
import i from "clsx";
|
|
6
|
+
import "@tabler/icons-react";
|
|
7
|
+
import "html-react-parser";
|
|
8
|
+
import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
|
|
9
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
10
|
+
import "@react-aria/utils";
|
|
11
|
+
import "remeda";
|
|
12
|
+
import "@mittwald/react-tunnel";
|
|
13
|
+
import { I as x, a as h, b } from "./IconCheckboxIndeterminate-B6FOeb87.js";
|
|
14
|
+
const k = "flow--checkbox", C = "flow--checkbox--icon", o = {
|
|
15
|
+
checkbox: k,
|
|
16
|
+
icon: C
|
|
17
|
+
}, F = (c) => {
|
|
18
|
+
const { children: t, className: r, ...m } = c, a = i(o.checkbox, r);
|
|
19
|
+
return /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement(l.Checkbox, { ...m, className: a }, ({ isSelected: n, isIndeterminate: s }) => /* @__PURE__ */ e.createElement(e.Fragment, null, n ? /* @__PURE__ */ e.createElement(x, { className: o.icon }) : s ? /* @__PURE__ */ e.createElement(h, { className: o.icon }) : /* @__PURE__ */ e.createElement(b, { className: o.icon }), t)));
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
F as C
|
|
23
|
+
};
|
package/dist/Checkbox.js
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import * as l from "react-aria-components";
|
|
5
|
-
import n from "clsx";
|
|
6
|
-
import "@tabler/icons-react";
|
|
7
|
-
import "html-react-parser";
|
|
8
|
-
import { C as i } from "./ClearPropsContext-CD1-9TZA.js";
|
|
9
|
-
import "./propsContext-Dx7WKmmM.js";
|
|
10
|
-
import "@react-aria/utils";
|
|
11
|
-
import "remeda";
|
|
12
|
-
import "@mittwald/react-tunnel";
|
|
13
|
-
import { I as p, a as k } from "./IconUnchecked-DFKAvzMH.js";
|
|
14
|
-
const h = "flow--checkbox", c = {
|
|
15
|
-
checkbox: h
|
|
16
|
-
}, w = (t) => {
|
|
17
|
-
const { children: o, className: r, ...m } = t, a = n(c.checkbox, r);
|
|
18
|
-
return /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(l.Checkbox, { ...m, className: a }, ({ isSelected: s }) => /* @__PURE__ */ e.createElement(e.Fragment, null, s ? /* @__PURE__ */ e.createElement(p, { className: c.checkmark }) : /* @__PURE__ */ e.createElement(k, { className: c.checkmark }), o)));
|
|
19
|
-
};
|
|
3
|
+
import { C as a } from "./Checkbox-DBT4VBSr.js";
|
|
20
4
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
a as Checkbox,
|
|
6
|
+
a as default
|
|
23
7
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o from "react";
|
|
4
|
+
import a from "clsx";
|
|
5
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
+
import { P as m } from "./PropsContextProvider-BsrVIv1a.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "remeda";
|
|
9
|
+
import { C as b } from "./Checkbox-DBT4VBSr.js";
|
|
10
|
+
const p = "flow--checkbox-button", x = "flow--checkbox-button--content", h = "flow--checkbox-button--label", t = {
|
|
11
|
+
checkboxButton: p,
|
|
12
|
+
content: x,
|
|
13
|
+
label: h
|
|
14
|
+
}, w = (e) => {
|
|
15
|
+
const { children: c, className: n, ...s } = e, r = a(t.checkboxButton, n), l = {
|
|
16
|
+
Text: {
|
|
17
|
+
className: t.label
|
|
18
|
+
},
|
|
19
|
+
Content: {
|
|
20
|
+
className: t.content
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ o.createElement(b, { ...s, className: r }, /* @__PURE__ */ o.createElement(m, { props: l }, c));
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
w as C
|
|
27
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as u from "react-aria-components";
|
|
5
|
+
import E from "clsx";
|
|
6
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
7
|
+
import { P as x } from "./PropsContextProvider-BsrVIv1a.js";
|
|
8
|
+
import "@react-aria/utils";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import { F as b } from "./FieldError-BDRDWTgn.js";
|
|
11
|
+
import { C as h } from "./CheckboxButton-CoEvnLRt.js";
|
|
12
|
+
import { TunnelProvider as C, TunnelExit as t } from "@mittwald/react-tunnel";
|
|
13
|
+
import { s as r } from "./FormField.module-DHK6nIcD.js";
|
|
14
|
+
import { C as k } from "./ColumnLayout-FMONjI17.js";
|
|
15
|
+
import { d as N } from "./deepFindOfType-6pG0fH7S.js";
|
|
16
|
+
const F = "flow--checkbox-group", l = {
|
|
17
|
+
checkboxGroup: F
|
|
18
|
+
}, O = (s) => {
|
|
19
|
+
const { children: o, className: c, s: m, m: a, l: i, ...n } = s, p = E(r.formField, c), d = {
|
|
20
|
+
Label: {
|
|
21
|
+
className: r.label,
|
|
22
|
+
tunnelId: "label"
|
|
23
|
+
},
|
|
24
|
+
FieldDescription: {
|
|
25
|
+
className: r.fieldDescription,
|
|
26
|
+
tunnelId: "fieldDescription"
|
|
27
|
+
},
|
|
28
|
+
FieldError: {
|
|
29
|
+
className: r.customFieldError,
|
|
30
|
+
tunnelId: "fieldError"
|
|
31
|
+
}
|
|
32
|
+
}, f = !!N(o, h);
|
|
33
|
+
return /* @__PURE__ */ e.createElement(u.CheckboxGroup, { ...n, className: p }, /* @__PURE__ */ e.createElement(x, { props: d }, /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement(t, { id: "label" }), f ? /* @__PURE__ */ e.createElement(k, { s: m, m: a, l: i, className: l.checkboxGroup }, o) : /* @__PURE__ */ e.createElement("div", { className: l.checkboxGroup }, o), /* @__PURE__ */ e.createElement(t, { id: "fieldDescription" }), /* @__PURE__ */ e.createElement(t, { id: "fieldError" }))), /* @__PURE__ */ e.createElement(b, { className: r.fieldError }));
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
O as CheckboxGroup,
|
|
37
|
+
O as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import C from "clsx";
|
|
5
|
+
const L = "flow--column-layout--column-layout-container", d = "flow--column-layout", r = {
|
|
6
|
+
columnLayoutContainer: L,
|
|
7
|
+
columnLayout: d
|
|
8
|
+
}, c = (o) => {
|
|
9
|
+
if (o.length < 1)
|
|
10
|
+
throw new Error("Column layout array is empty");
|
|
11
|
+
return o.map((t) => `${t}fr`).join(" ");
|
|
12
|
+
}, w = (o) => {
|
|
13
|
+
const { children: u, className: t, s: n, m: l, l: a } = o, s = n ? c(n) : void 0, m = l ? c(l) : n ? s : void 0, y = a ? c(a) : l || n ? m : void 0, i = {
|
|
14
|
+
"--column-layout--columns-s": s,
|
|
15
|
+
"--column-layout--columns-m": m,
|
|
16
|
+
"--column-layout--columns-l": y
|
|
17
|
+
}, f = C(r.columnLayoutContainer, t);
|
|
18
|
+
return /* @__PURE__ */ e.createElement("div", { className: f, style: i }, /* @__PURE__ */ e.createElement("div", { className: r.columnLayout }, u));
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
w as C
|
|
22
|
+
};
|
package/dist/ColumnLayout.js
CHANGED
|
@@ -1,26 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import { C as y } from "./ClearPropsContext-CD1-9TZA.js";
|
|
5
|
-
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
-
import "@react-aria/utils";
|
|
7
|
-
import "remeda";
|
|
8
|
-
const f = "flow--column-layout--column-layout-container", p = "flow--column-layout", s = {
|
|
9
|
-
columnLayoutContainer: f,
|
|
10
|
-
columnLayout: p
|
|
11
|
-
}, u = (t) => {
|
|
12
|
-
if (t.length < 1)
|
|
13
|
-
throw new Error("Column layout array is empty");
|
|
14
|
-
return t.map((o) => `${o}fr`).join(" ");
|
|
15
|
-
}, E = (t) => {
|
|
16
|
-
const { children: c, s: o, m: n, l: m } = t, a = o ? u(o) : void 0, e = n ? u(n) : o ? a : void 0, r = m ? u(m) : n || o ? e : void 0, i = {
|
|
17
|
-
"--column-layout--columns-s": a,
|
|
18
|
-
"--column-layout--columns-m": e,
|
|
19
|
-
"--column-layout--columns-l": r
|
|
20
|
-
};
|
|
21
|
-
return /* @__PURE__ */ l.createElement(y, null, /* @__PURE__ */ l.createElement("div", { className: s.columnLayoutContainer, style: i }, /* @__PURE__ */ l.createElement("div", { className: s.columnLayout }, c)));
|
|
22
|
-
};
|
|
3
|
+
import { C as a } from "./ColumnLayout-FMONjI17.js";
|
|
23
4
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
5
|
+
a as ColumnLayout,
|
|
6
|
+
a as default
|
|
26
7
|
};
|
package/dist/Content.js
CHANGED
|
@@ -5,7 +5,7 @@ import { C as l } from "./ClearPropsContext-CD1-9TZA.js";
|
|
|
5
5
|
import "./propsContext-Dx7WKmmM.js";
|
|
6
6
|
import "@react-aria/utils";
|
|
7
7
|
import "remeda";
|
|
8
|
-
import { f as p } from "./flowComponent-
|
|
8
|
+
import { f as p } from "./flowComponent-Dv5hKZam.js";
|
|
9
9
|
const d = p("Content", (e) => {
|
|
10
10
|
const { children: o, elementType: r = "div", ...n } = e, m = r;
|
|
11
11
|
return /* @__PURE__ */ t.createElement(l, null, /* @__PURE__ */ t.createElement(m, { ...n }, o));
|
package/dist/ContextMenu.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import c from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import { MenuTrigger as
|
|
6
|
-
import u from "
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import * as m from "react-aria-components";
|
|
5
|
+
import { MenuTrigger as E } from "react-aria-components";
|
|
6
|
+
import { f as u } from "./flowComponent-Dv5hKZam.js";
|
|
7
|
+
import x from "clsx";
|
|
8
|
+
const l = "flow--context-menu", i = "flow--context-menu--menu-list", s = {
|
|
9
|
+
contextMenu: l,
|
|
9
10
|
"popover-slide": "flow--context-menu--popover-slide",
|
|
10
|
-
menuList:
|
|
11
|
-
},
|
|
11
|
+
menuList: i
|
|
12
|
+
}, I = u("ContextMenu", (e) => {
|
|
12
13
|
const { children: t, onAction: n, ...o } = e;
|
|
13
|
-
return /* @__PURE__ */ c.createElement(
|
|
14
|
-
},
|
|
15
|
-
contextMenuItem:
|
|
16
|
-
icon:
|
|
14
|
+
return /* @__PURE__ */ c.createElement(m.Popover, { className: s.contextMenu, ...o }, /* @__PURE__ */ c.createElement(m.Menu, { className: s.menuList, onAction: n }, t));
|
|
15
|
+
}), a = "flow--context-menu--context-menu-item", f = "flow--context-menu--context-menu-item--icon", M = "flow--context-menu--context-menu-item--text", p = {
|
|
16
|
+
contextMenuItem: a,
|
|
17
|
+
icon: f,
|
|
17
18
|
text: M
|
|
18
|
-
},
|
|
19
|
-
const { children: t, className: n, ...o } = e, r =
|
|
20
|
-
return /* @__PURE__ */ c.createElement(
|
|
19
|
+
}, N = (e) => {
|
|
20
|
+
const { children: t, className: n, ...o } = e, r = x(p.contextMenuItem, n);
|
|
21
|
+
return /* @__PURE__ */ c.createElement(m.MenuItem, { ...o, className: r }, t);
|
|
21
22
|
};
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
I as ContextMenu,
|
|
25
|
+
N as ContextMenuItem,
|
|
26
|
+
E as ContextMenuTrigger,
|
|
27
|
+
I as default
|
|
27
28
|
};
|