@mittwald/flow-react-components 0.1.0-alpha.8 → 0.1.0-alpha.80
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-XlqKlkaB.js +153 -0
- package/dist/Action.js +7 -0
- package/dist/Avatar.js +47 -16
- package/dist/Breadcrumb.js +34 -0
- package/dist/Button-CZjBV5AM.js +113 -0
- package/dist/Button.js +1 -8
- package/dist/ButtonGroup.js +31 -0
- package/dist/Checkbox-PPWtxoYH.js +25 -0
- package/dist/Checkbox.js +3 -72
- package/dist/CheckboxButton-B5OAcIK5.js +29 -0
- package/dist/CheckboxButton.js +7 -0
- package/dist/CheckboxGroup.js +44 -0
- package/dist/ClearPropsContext-CeCMjUK9.js +11 -0
- package/dist/ColumnLayout-FMONjI17.js +22 -0
- package/dist/ColumnLayout.js +7 -0
- package/dist/Content.js +12 -15
- package/dist/ContextMenu-BeySGa4K.js +47 -0
- package/dist/ContextMenu.js +11 -0
- package/dist/CopyButton.js +35 -0
- package/dist/EmulatedBoldText-Dtox8Wd1.js +14 -0
- package/dist/FieldDescription.js +16 -14
- package/dist/FieldError-b6CAH0ya.js +23 -0
- package/dist/FieldError.js +1 -7
- package/dist/FormField.module-DHK6nIcD.js +12 -0
- package/dist/Header.js +12 -0
- package/dist/HeaderNavigation.js +39 -0
- package/dist/Heading.js +23 -21
- package/dist/Icon-DwHDa4pA.js +52 -0
- package/dist/Icon.js +3 -10
- package/dist/IconCheck-CubzEVji.js +9 -0
- package/dist/IconCheckboxEmpty-BlU9hQOh.js +10 -0
- package/dist/IconCheckboxIndeterminate-B-p8FuLS.js +9 -0
- package/dist/IconChevronDown-C205topB.js +9 -0
- package/dist/IconChevronRight-CFcrQPos.js +9 -0
- package/dist/IconClose-7gyfEXz1.js +9 -0
- package/dist/IconContextMenu-DYOFg7qU.js +9 -0
- package/dist/IconCopy-CHksIqDs.js +9 -0
- package/dist/IconDanger-MdCt1mDP.js +9 -0
- package/dist/IconPending-CyQhZCfI.js +9 -0
- package/dist/IconPlus-Bz-UoRuD.js +11 -0
- package/dist/IconRadioOn-ghpksMxd.js +10 -0
- package/dist/IconSucceeded-CHjiCCzR.js +10 -0
- package/dist/IconWarning-Dbq3oj5j.js +11 -0
- package/dist/Icons.js +89 -0
- package/dist/IllustratedMessage.js +39 -0
- package/dist/Image.js +12 -6
- package/dist/Initials.js +16 -25
- package/dist/InlineAlert.js +39 -0
- package/dist/InlineCode-BV2i5uN0.js +18 -0
- package/dist/InlineCode.js +7 -0
- package/dist/Label-DlBFElQ_.js +35 -0
- package/dist/Label.js +3 -22
- package/dist/LabeledValue.js +22 -19
- package/dist/LayoutCard.js +24 -0
- package/dist/Link-D3oOwbIe.js +48 -0
- package/dist/Link.js +3 -21
- package/dist/List/ListLoaderAsyncResource.js +8 -0
- package/dist/List.js +710 -0
- package/dist/LoadingSpinner-BOBbSYun.js +17 -0
- package/dist/LoadingSpinner.js +7 -0
- package/dist/MenuItem-Bi8sYht4.js +49 -0
- package/dist/MenuItem.js +7 -0
- package/dist/Modal.js +80 -0
- package/dist/Navigation.js +43 -45
- package/dist/NumberField.js +80 -0
- package/dist/Popover-MmxZkKu3.js +15 -0
- package/dist/Popover.js +7 -0
- package/dist/ProgressBar.js +46 -0
- package/dist/PropsContextProvider-DZvwqHLP.js +64 -0
- package/dist/RadioGroup.js +73 -77
- package/dist/Section.js +38 -0
- package/dist/Select.js +81 -0
- package/dist/StatusBadge.js +27 -0
- package/dist/StatusIcon-DYuGj4gU.js +38 -0
- package/dist/StatusIcon.js +3 -12
- package/dist/Switch.js +31 -21
- package/dist/Tabs.js +131 -0
- package/dist/Text-CKd46eHq.js +38 -0
- package/dist/Text.js +3 -8
- package/dist/TextArea.js +19 -18
- package/dist/TextField.js +22 -15
- package/dist/TextFieldBase-BGZpjGL8.js +32 -0
- package/dist/Tooltip.js +3 -6
- package/dist/TooltipTrigger-TslkLN5s.js +20 -0
- package/dist/Wrap-DGT1h1o3.js +9 -0
- package/dist/{propsContext-1HT-3SRC.js → context-BlNV7smK.js} +3 -2
- package/dist/controller.js +7 -0
- package/dist/deepFindOfType-6pG0fH7S.js +14 -0
- package/dist/dynamic-ClpUSmEt.js +8 -0
- package/dist/flowComponent-dvQga3NG.js +22 -0
- package/dist/hooks.js +8 -0
- package/dist/index-ViVxK7d1.js +47 -0
- package/dist/nextjs.js +12 -0
- package/dist/propsContext-CauylOgH.js +8 -0
- package/dist/react-hook-form.js +62 -0
- 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 +21 -0
- package/dist/types/components/Action/actionFactory.d.ts +11 -0
- package/dist/types/components/Action/ariaLive.d.ts +9 -0
- package/dist/types/components/Action/hooks/useCallAction.d.ts +13 -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 +13 -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 +10 -0
- package/dist/types/components/Avatar/index.d.ts +4 -0
- package/dist/types/components/Avatar/lib/getVariantFromChildren.d.ts +3 -0
- package/dist/types/components/Avatar/lib/getVariantFromInitials.test.d.ts +1 -0
- package/dist/types/components/Avatar/stories/Default.stories.d.ts +9 -0
- package/dist/types/components/Avatar/stories/Sizes.stories.d.ts +10 -0
- 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 +18 -0
- package/dist/types/components/Button/index.d.ts +4 -0
- package/dist/types/components/Button/stories/Default.stories.d.ts +12 -0
- package/dist/types/components/Button/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Button/stories/States.stories.d.ts +13 -0
- package/dist/types/components/Button/stories/Variants.stories.d.ts +18 -0
- package/dist/types/components/Button/stories/lib.d.ts +6 -0
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +7 -0
- package/dist/types/components/ButtonGroup/index.d.ts +4 -0
- package/dist/types/components/ButtonGroup/stories/Default.stories.d.ts +11 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +8 -0
- package/dist/types/components/Checkbox/index.d.ts +4 -0
- package/dist/types/components/Checkbox/stories/Default.stories.d.ts +10 -0
- package/dist/types/components/Checkbox/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/CheckboxButton/CheckboxButton.d.ts +8 -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 +9 -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 +10 -0
- package/dist/types/components/ColumnLayout/index.d.ts +4 -0
- package/dist/types/components/ColumnLayout/lib/getColumns.d.ts +1 -0
- package/dist/types/components/ColumnLayout/lib/getColumns.test.d.ts +1 -0
- package/dist/types/components/ColumnLayout/stories/Default.stories.d.ts +9 -0
- package/dist/types/components/Content/Content.d.ts +8 -0
- package/dist/types/components/Content/index.d.ts +4 -0
- package/dist/types/components/Content/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +11 -0
- package/dist/types/components/ContextMenu/index.d.ts +6 -0
- package/dist/types/components/ContextMenu/stories/Default.stories.d.ts +10 -0
- package/dist/types/components/ContextMenu/stories/EdgeCases.stories.d.ts +8 -0
- package/dist/types/components/CopyButton/CopyButton.d.ts +9 -0
- package/dist/types/components/CopyButton/index.d.ts +4 -0
- package/dist/types/components/CopyButton/stories/Default.stories.d.ts +8 -0
- package/dist/types/components/EmulatedBoldText/EmulatedBoldText.d.ts +6 -0
- package/dist/types/components/EmulatedBoldText/index.d.ts +4 -0
- package/dist/types/components/EmulatedBoldText/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/FieldDescription/FieldDescription.d.ts +8 -0
- package/dist/types/components/FieldDescription/index.d.ts +4 -0
- package/dist/types/components/FieldError/FieldError.d.ts +8 -0
- package/dist/types/components/FieldError/index.d.ts +4 -0
- package/dist/types/components/Header/Header.d.ts +8 -0
- package/dist/types/components/Header/index.d.ts +4 -0
- package/dist/types/components/Header/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/HeaderNavigation/HeaderNavigation.d.ts +8 -0
- package/dist/types/components/HeaderNavigation/index.d.ts +4 -0
- package/dist/types/components/HeaderNavigation/stories/Default.stories.d.ts +9 -0
- package/dist/types/components/Heading/Heading.d.ts +8 -0
- package/dist/types/components/Heading/index.d.ts +4 -0
- package/dist/types/components/Heading/stories/Default.stories.d.ts +8 -0
- package/dist/types/components/Heading/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Heading/stories/Levels.stories.d.ts +12 -0
- package/dist/types/components/Icon/Icon.d.ts +10 -0
- package/dist/types/components/Icon/components/icons/IconApp.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconBackLink.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconBackup.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconCheck.d.ts +5 -0
- 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 +5 -0
- package/dist/types/components/Icon/components/icons/IconChevronLeft.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconChevronRight.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconChevronUp.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconClose.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconCode.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconContextMenu.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconCopy.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconCronjob.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconCustomer.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconDanger.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconDashboard.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconDatabase.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconDate.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconDelete.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconDomain.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconEmail.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconExternalLink.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconFailed.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconFilter.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconHide.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconHome.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconInfo.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconListView.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconLogout.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconMember.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconMinus.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconMittwald.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconNotification.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconPending.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconPlus.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconProject.d.ts +5 -0
- 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 +5 -0
- package/dist/types/components/Icon/components/icons/IconSearch.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconSearchEngine.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconServer.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconSettings.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconShow.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconSorting.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconSshSftp.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconSubdomain.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconSucceeded.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconSuccess.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconSupport.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconTerminate.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconTileView.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconTime.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconWarning.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/index.d.ts +57 -0
- package/dist/types/components/Icon/index.d.ts +4 -0
- package/dist/types/components/Icon/lib/extractSvgFromString.d.ts +3 -0
- package/dist/types/components/Icon/lib/extractSvgFromString.test.d.ts +1 -0
- package/dist/types/components/Icon/stories/Default.stories.d.ts +10 -0
- package/dist/types/components/Icon/stories/Sizes.stories.d.ts +9 -0
- package/dist/types/components/IllustratedMessage/IllustratedMessage.d.ts +7 -0
- package/dist/types/components/IllustratedMessage/index.d.ts +4 -0
- package/dist/types/components/IllustratedMessage/stories/Default.stories.d.ts +8 -0
- package/dist/types/components/IllustratedMessage/stories/EdgeCases.stories.d.ts +8 -0
- package/dist/types/components/Image/Image.d.ts +7 -0
- package/dist/types/components/Image/index.d.ts +4 -0
- package/dist/types/components/Image/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/Initials/Initials.d.ts +8 -0
- package/dist/types/components/Initials/index.d.ts +4 -0
- package/dist/types/components/Initials/lib/getInitialsFromString.d.ts +1 -0
- package/dist/types/components/Initials/lib/getInitialsFromString.test.d.ts +1 -0
- package/dist/types/components/Initials/stories/Default.stories.d.ts +8 -0
- package/dist/types/components/InlineAlert/InlineAlert.d.ts +8 -0
- package/dist/types/components/InlineAlert/index.d.ts +4 -0
- package/dist/types/components/InlineAlert/stories/Default.stories.d.ts +8 -0
- package/dist/types/components/InlineAlert/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/InlineAlert/stories/Variants.stories.d.ts +10 -0
- package/dist/types/components/InlineCode/InlineCode.d.ts +6 -0
- package/dist/types/components/InlineCode/index.d.ts +4 -0
- package/dist/types/components/InlineCode/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/InlineCode/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Label/Label.d.ts +9 -0
- package/dist/types/components/Label/index.d.ts +4 -0
- package/dist/types/components/Label/stories/Default.stories.d.ts +8 -0
- package/dist/types/components/LabeledValue/LabeledValue.d.ts +7 -0
- package/dist/types/components/LabeledValue/index.d.ts +4 -0
- package/dist/types/components/LabeledValue/stories/Default.stories.d.ts +10 -0
- package/dist/types/components/LabeledValue/stories/EdgeCases.stories.d.ts +8 -0
- package/dist/types/components/LayoutCard/LayoutCard.d.ts +8 -0
- package/dist/types/components/LayoutCard/index.d.ts +4 -0
- package/dist/types/components/LayoutCard/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/Link/Link.d.ts +12 -0
- package/dist/types/components/Link/context.d.ts +8 -0
- package/dist/types/components/Link/index.d.ts +4 -0
- package/dist/types/components/Link/stories/Default.stories.d.ts +10 -0
- package/dist/types/components/Link/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/List/List.d.ts +7 -0
- package/dist/types/components/List/List.test.d.ts +1 -0
- package/dist/types/components/List/components/DataLoader/DataLoader.d.ts +4 -0
- package/dist/types/components/List/components/DataLoader/index.d.ts +4 -0
- package/dist/types/components/List/components/Footer/Footer/Footer.d.ts +4 -0
- package/dist/types/components/List/components/Footer/Footer/index.d.ts +4 -0
- package/dist/types/components/List/components/Footer/PaginationInfos/PaginationInfos.d.ts +5 -0
- package/dist/types/components/List/components/Footer/PaginationInfos/index.d.ts +4 -0
- package/dist/types/components/List/components/Footer/ShowNextBatchButton/ShowNextBatchButton.d.ts +5 -0
- package/dist/types/components/List/components/Footer/ShowNextBatchButton/index.d.ts +4 -0
- package/dist/types/components/List/components/Header/ActiveFilters/ActiveFilters.d.ts +4 -0
- package/dist/types/components/List/components/Header/ActiveFilters/index.d.ts +4 -0
- package/dist/types/components/List/components/Header/FilterPicker/FilterPicker.d.ts +9 -0
- package/dist/types/components/List/components/Header/FilterPicker/index.d.ts +4 -0
- package/dist/types/components/List/components/Header/Header/Header.d.ts +7 -0
- package/dist/types/components/List/components/Header/Header/index.d.ts +4 -0
- package/dist/types/components/List/components/Header/ListFilter.d.ts +6 -0
- package/dist/types/components/List/components/Header/ListSorting.d.ts +7 -0
- package/dist/types/components/List/components/Header/SortingPicker/SortingPicker.d.ts +3 -0
- package/dist/types/components/List/components/Header/SortingPicker/index.d.ts +4 -0
- package/dist/types/components/List/components/Header/SortingPickerItem/SortingPickerItem.d.ts +9 -0
- package/dist/types/components/List/components/Header/SortingPickerItem/index.d.ts +4 -0
- package/dist/types/components/List/components/Items/Item/FallbackRenderer.d.ts +8 -0
- package/dist/types/components/List/components/Items/Item/Item.d.ts +6 -0
- package/dist/types/components/List/components/Items/Item/index.d.ts +5 -0
- package/dist/types/components/List/components/Items/ItemList/ItemList.d.ts +7 -0
- package/dist/types/components/List/components/Items/ItemList/index.d.ts +4 -0
- package/dist/types/components/List/components/Items/ListItemView.d.ts +7 -0
- package/dist/types/components/List/components/Items/OptionsButton/OptionsButton.d.ts +7 -0
- package/dist/types/components/List/components/Items/OptionsButton/index.d.ts +4 -0
- package/dist/types/components/List/components/ListLoaderAsync.d.ts +7 -0
- package/dist/types/components/List/components/ListLoaderAsyncResource.d.ts +7 -0
- package/dist/types/components/List/components/ListStaticData.d.ts +5 -0
- package/dist/types/components/List/hooks/useList.d.ts +1 -0
- package/dist/types/components/List/index.d.ts +9 -0
- package/dist/types/components/List/listContext.d.ts +8 -0
- package/dist/types/components/List/model/List.d.ts +25 -0
- package/dist/types/components/List/model/ReactTable.d.ts +18 -0
- package/dist/types/components/List/model/filter/Filter.d.ts +31 -0
- package/dist/types/components/List/model/filter/types.d.ts +11 -0
- package/dist/types/components/List/model/item/Item.d.ts +15 -0
- package/dist/types/components/List/model/item/ItemCollection.d.ts +9 -0
- package/dist/types/components/List/model/item/types.d.ts +5 -0
- package/dist/types/components/List/model/loading/IncrementalLoader.d.ts +21 -0
- package/dist/types/components/List/model/loading/IncrementalLoaderState.d.ts +20 -0
- package/dist/types/components/List/model/loading/types.d.ts +44 -0
- package/dist/types/components/List/model/pagination/BatchesController.d.ts +17 -0
- package/dist/types/components/List/model/pagination/types.d.ts +3 -0
- package/dist/types/components/List/model/sorting/Sorting.d.ts +18 -0
- package/dist/types/components/List/model/sorting/types.d.ts +9 -0
- package/dist/types/components/List/model/types.d.ts +14 -0
- package/dist/types/components/List/stories/Default.stories.d.ts +8 -0
- package/dist/types/components/List/stories/ListItem.stories.d.ts +10 -0
- package/dist/types/components/List/testData/domainApi.d.ts +25 -0
- package/dist/types/components/LoadingSpinner/LoadingSpinner.d.ts +5 -0
- package/dist/types/components/LoadingSpinner/index.d.ts +4 -0
- package/dist/types/components/LoadingSpinner/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/MenuItem/MenuItem.d.ts +9 -0
- package/dist/types/components/MenuItem/MenuItemContent.d.ts +8 -0
- package/dist/types/components/MenuItem/index.d.ts +4 -0
- package/dist/types/components/Modal/Modal.d.ts +12 -0
- package/dist/types/components/Modal/hooks/useSyncTriggerState.d.ts +3 -0
- package/dist/types/components/Modal/index.d.ts +5 -0
- package/dist/types/components/Modal/stories/Default.stories.d.ts +11 -0
- package/dist/types/components/Modal/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Navigation/Navigation.d.ts +7 -0
- 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 +5 -0
- package/dist/types/components/Navigation/stories/Default.stories.d.ts +9 -0
- package/dist/types/components/NumberField/NumberField.d.ts +8 -0
- package/dist/types/components/NumberField/index.d.ts +4 -0
- package/dist/types/components/NumberField/stories/Default.stories.d.ts +13 -0
- package/dist/types/components/NumberField/stories/EdgeCases.stories.d.ts +8 -0
- package/dist/types/components/Popover/Popover.d.ts +7 -0
- package/dist/types/components/Popover/index.d.ts +4 -0
- package/dist/types/components/Popover/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +10 -0
- package/dist/types/components/ProgressBar/index.d.ts +4 -0
- package/dist/types/components/ProgressBar/stories/Default.stories.d.ts +9 -0
- package/dist/types/components/ProgressBar/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/ProgressBar/stories/Variants.stories.d.ts +10 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +10 -0
- package/dist/types/components/RadioGroup/components/Radio/Radio.d.ts +8 -0
- package/dist/types/components/RadioGroup/components/Radio/index.d.ts +4 -0
- package/dist/types/components/RadioGroup/components/RadioButton/RadioButton.d.ts +8 -0
- package/dist/types/components/RadioGroup/components/RadioButton/index.d.ts +4 -0
- package/dist/types/components/RadioGroup/index.d.ts +6 -0
- package/dist/types/components/RadioGroup/stories/Default.stories.d.ts +15 -0
- package/dist/types/components/RadioGroup/stories/EdgeCases.stories.d.ts +9 -0
- package/dist/types/components/Section/Section.d.ts +6 -0
- package/dist/types/components/Section/index.d.ts +4 -0
- package/dist/types/components/Section/stories/Default.stories.d.ts +10 -0
- package/dist/types/components/Section/stories/EdgeCases.stories.d.ts +8 -0
- package/dist/types/components/Select/Select.d.ts +12 -0
- package/dist/types/components/Select/components/Option/Option.d.ts +9 -0
- package/dist/types/components/Select/components/Option/index.d.ts +4 -0
- package/dist/types/components/Select/components/Options/Options.d.ts +8 -0
- package/dist/types/components/Select/components/Options/index.d.ts +4 -0
- package/dist/types/components/Select/index.d.ts +5 -0
- package/dist/types/components/Select/stories/Default.stories.d.ts +12 -0
- package/dist/types/components/Select/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/StatusBadge/StatusBadge.d.ts +9 -0
- package/dist/types/components/StatusBadge/index.d.ts +4 -0
- package/dist/types/components/StatusBadge/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/StatusBadge/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/StatusBadge/stories/Variants.stories.d.ts +10 -0
- package/dist/types/components/StatusIcon/StatusIcon.d.ts +8 -0
- package/dist/types/components/StatusIcon/index.d.ts +4 -0
- package/dist/types/components/StatusIcon/stories/Default.stories.d.ts +10 -0
- package/dist/types/components/Switch/Switch.d.ts +10 -0
- package/dist/types/components/Switch/index.d.ts +4 -0
- package/dist/types/components/Switch/stories/Default.stories.d.ts +9 -0
- package/dist/types/components/Switch/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Tabs/Tabs.d.ts +8 -0
- package/dist/types/components/Tabs/components/Tab/Tab.d.ts +7 -0
- package/dist/types/components/Tabs/components/Tab/context.d.ts +7 -0
- package/dist/types/components/Tabs/components/Tab/index.d.ts +4 -0
- package/dist/types/components/Tabs/components/TabList/TabList.d.ts +10 -0
- package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -0
- package/dist/types/components/Tabs/components/TabTitle/TabTitle.d.ts +7 -0
- package/dist/types/components/Tabs/components/TabTitle/TabTitleCollapsed.d.ts +8 -0
- package/dist/types/components/Tabs/components/TabTitle/index.d.ts +4 -0
- package/dist/types/components/Tabs/index.d.ts +3 -0
- package/dist/types/components/Tabs/stories/Default.stories.d.ts +8 -0
- package/dist/types/components/Text/Text.d.ts +10 -0
- package/dist/types/components/Text/index.d.ts +4 -0
- package/dist/types/components/Text/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/TextArea/TextArea.d.ts +9 -0
- package/dist/types/components/TextArea/index.d.ts +4 -0
- package/dist/types/components/TextArea/stories/Default.stories.d.ts +13 -0
- package/dist/types/components/TextField/TextField.d.ts +9 -0
- package/dist/types/components/TextField/index.d.ts +4 -0
- package/dist/types/components/TextField/stories/Default.stories.d.ts +14 -0
- package/dist/types/components/TextFieldBase/TextFieldBase.d.ts +8 -0
- package/dist/types/components/TextFieldBase/index.d.ts +4 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +6 -0
- package/dist/types/components/Tooltip/components/TooltipTrigger/TooltipTrigger.d.ts +6 -0
- package/dist/types/components/Tooltip/components/TooltipTrigger/index.d.ts +4 -0
- package/dist/types/components/Tooltip/index.d.ts +5 -0
- package/dist/types/components/Tooltip/stories/Default.stories.d.ts +7 -0
- package/dist/types/components/Tooltip/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Wrap/Wrap.d.ts +6 -0
- package/dist/types/components/Wrap/index.d.ts +4 -0
- package/dist/types/components/propTypes/index.d.ts +69 -0
- package/dist/types/components/propTypes/types.d.ts +6 -0
- package/dist/types/integrations/nextjs/components/Link/Link.d.ts +3 -0
- package/dist/types/integrations/nextjs/components/Link/index.d.ts +4 -0
- package/dist/types/integrations/nextjs/components/LinkProvider/LinkProvider.d.ts +4 -0
- package/dist/types/integrations/nextjs/components/LinkProvider/index.d.ts +4 -0
- package/dist/types/integrations/nextjs/index.d.ts +2 -0
- package/dist/types/integrations/react-hook-form/components/Controller/Controller.d.ts +8 -0
- package/dist/types/integrations/react-hook-form/components/Controller/index.d.ts +4 -0
- package/dist/types/integrations/react-hook-form/components/Controller/stories/Default.stories.d.ts +7 -0
- package/dist/types/integrations/react-hook-form/components/Form/Form.d.ts +8 -0
- package/dist/types/integrations/react-hook-form/components/Form/index.d.ts +4 -0
- package/dist/types/integrations/react-hook-form/components/context/formContext.d.ts +10 -0
- package/dist/types/integrations/react-hook-form/index.d.ts +2 -0
- package/dist/types/lib/childProps/ChildPropsContextProvider.d.ts +9 -0
- package/dist/types/lib/childProps/ChildPropsStore.d.ts +14 -0
- package/dist/types/lib/childProps/context.d.ts +5 -0
- package/dist/types/lib/childProps/index.d.ts +2 -0
- package/dist/types/lib/childProps/useSetChildProps.d.ts +3 -0
- package/dist/types/lib/componentFactory/flowComponent.d.ts +11 -0
- 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/dummyText.d.ts +6 -0
- package/dist/types/lib/dev/vitestUserEvent.d.ts +2 -0
- package/dist/types/lib/hooks/dom/useObserveOverflow.d.ts +8 -0
- package/dist/types/lib/hooks/index.d.ts +1 -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 +6 -0
- package/dist/types/lib/propsContext/ClearPropsContext.test.d.ts +1 -0
- package/dist/types/lib/propsContext/PropsContextProvider.d.ts +10 -0
- package/dist/types/lib/propsContext/dynamicProps/dynamic.d.ts +4 -0
- package/dist/types/lib/propsContext/dynamicProps/isDynamicProp.d.ts +5 -0
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.d.ts +5 -0
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.test.d.ts +1 -0
- package/dist/types/lib/propsContext/dynamicProps/types.d.ts +5 -0
- package/dist/types/lib/propsContext/index.d.ts +7 -0
- package/dist/types/lib/propsContext/isFlowComponentName.d.ts +3 -0
- package/dist/types/lib/propsContext/isFlowComponentProp.d.ts +3 -0
- package/dist/types/lib/propsContext/mergePropsContext.d.ts +4 -0
- package/dist/types/lib/propsContext/mergePropsContext.test.d.ts +1 -0
- package/dist/types/lib/propsContext/nestedPropsContext/isPropsWithChildren.d.ts +3 -0
- package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.d.ts +3 -0
- package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.test.d.ts +1 -0
- package/dist/types/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.d.ts +6 -0
- package/dist/types/lib/propsContext/propsContext.d.ts +40 -0
- package/dist/types/lib/propsContext/types.d.ts +10 -0
- package/dist/types/lib/propsContext/useProps.d.ts +4 -0
- package/dist/types/lib/propsContext/useProps.test.d.ts +1 -0
- package/dist/types/lib/react/components/Empty/Empty.d.ts +4 -0
- package/dist/types/lib/react/components/Empty/index.d.ts +4 -0
- package/dist/types/lib/react/components/Render/Render.d.ts +5 -0
- package/dist/types/lib/react/components/Render/Render.test.d.ts +1 -0
- package/dist/types/lib/react/components/Render/index.d.ts +1 -0
- package/dist/types/lib/react/components/Translate/Translate.d.ts +10 -0
- package/dist/types/lib/react/components/Translate/index.d.ts +4 -0
- package/dist/types/lib/react/deepFindOfType.d.ts +4 -0
- package/dist/types/lib/react/deepFindOfType.test.d.ts +1 -0
- package/dist/types/lib/react/deepHas.d.ts +3 -0
- package/dist/types/lib/react/getPropsMerger.d.ts +8 -0
- package/dist/types/lib/types/props.d.ts +16 -0
- package/dist/types/lib/types/props.test-types.d.ts +1 -0
- package/dist/{stylesInit.d.ts → types/styles/index.d.ts} +3 -4
- package/dist/useProps-DfMs_ElR.js +89 -0
- package/dist/useSelector-DpU7_HMO.js +13 -0
- package/package.json +302 -95
- package/dist/Avatar.d.ts +0 -14
- package/dist/Badge.d.ts +0 -18
- package/dist/Badge.js +0 -39
- package/dist/Button-e6_nSMC7.js +0 -41
- package/dist/Button.d.ts +0 -15
- package/dist/Checkbox.d.ts +0 -12
- package/dist/Content.d.ts +0 -13
- package/dist/CopyToClipboardButton.d.ts +0 -20
- package/dist/CopyToClipboardButton.js +0 -140
- package/dist/FieldDescription.d.ts +0 -12
- package/dist/FieldError-O1TRrMMj.js +0 -17
- package/dist/FieldError.d.ts +0 -12
- package/dist/Heading.d.ts +0 -13
- package/dist/Icon-ZFuEzyOR.js +0 -55
- package/dist/Icon.d.ts +0 -18
- package/dist/Image.d.ts +0 -11
- package/dist/Initials.d.ts +0 -14
- package/dist/Label.d.ts +0 -13
- package/dist/LabeledValue.d.ts +0 -12
- package/dist/Link.d.ts +0 -14
- package/dist/Navigation.d.ts +0 -22
- package/dist/Note.d.ts +0 -18
- package/dist/Note.js +0 -47
- package/dist/PropsContextProvider-1ZntTV8J.js +0 -26
- package/dist/RadioGroup.d.ts +0 -17
- package/dist/StatusIcon-R1Q9m-y9.js +0 -118
- package/dist/StatusIcon.d.ts +0 -17
- package/dist/Switch.d.ts +0 -16
- package/dist/Text-ZKs-d7Xd.js +0 -19
- package/dist/Text.d.ts +0 -12
- package/dist/TextArea.d.ts +0 -17
- package/dist/TextField.d.ts +0 -17
- package/dist/TextFieldBase-aIybTXPT.js +0 -33
- package/dist/Tooltip-tMnxO0-t.js +0 -16
- package/dist/Tooltip.d.ts +0 -17
- package/dist/TooltipTrigger-r60QhGZc.js +0 -11
- package/dist/TooltipTrigger.d.ts +0 -12
- package/dist/TooltipTrigger.js +0 -9
- package/dist/clsx-F0OAuoLf.js +0 -24
- package/dist/useProps-5ZdbXCrH.js +0 -27
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
var S = Object.defineProperty;
|
|
4
|
+
var A = (e, t, o) => t in e ? S(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
5
|
+
var d = (e, t, o) => (A(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
6
|
+
import b, { useRef as M } from "react";
|
|
7
|
+
import "./propsContext-CauylOgH.js";
|
|
8
|
+
import { P as y } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
|
+
import "@react-aria/utils";
|
|
10
|
+
import "remeda";
|
|
11
|
+
import "dot-prop";
|
|
12
|
+
import { u as P } from "./useProps-DfMs_ElR.js";
|
|
13
|
+
import { u as C } from "./index-ViVxK7d1.js";
|
|
14
|
+
import { makeObservable as F, observable as k, runInAction as x } from "mobx";
|
|
15
|
+
import { u as I } from "./useSelector-DpU7_HMO.js";
|
|
16
|
+
const v = () => {
|
|
17
|
+
}, w = (e) => {
|
|
18
|
+
const t = C();
|
|
19
|
+
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 : v;
|
|
20
|
+
}, g = (e, t) => {
|
|
21
|
+
const o = [...t];
|
|
22
|
+
let s;
|
|
23
|
+
for (; o.length > 0; )
|
|
24
|
+
if (s = o.shift(), s) {
|
|
25
|
+
const i = s(...e);
|
|
26
|
+
if (i instanceof Promise)
|
|
27
|
+
return i.then(() => g(e, o));
|
|
28
|
+
}
|
|
29
|
+
}, p = {
|
|
30
|
+
pending: 1e3,
|
|
31
|
+
succeeded: 1500,
|
|
32
|
+
failed: 2e3
|
|
33
|
+
};
|
|
34
|
+
class f {
|
|
35
|
+
constructor(t = {}) {
|
|
36
|
+
d(this, "feedback");
|
|
37
|
+
d(this, "executionCount", 0);
|
|
38
|
+
d(this, "state", "isIdle");
|
|
39
|
+
const { feedback: o = !1 } = t;
|
|
40
|
+
this.feedback = o, F(this, {
|
|
41
|
+
state: k
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
static useNew(t) {
|
|
45
|
+
return M(new f(t)).current;
|
|
46
|
+
}
|
|
47
|
+
onAsyncStart() {
|
|
48
|
+
const t = ++this.executionCount;
|
|
49
|
+
this.updateState("isExecuting"), setTimeout(() => this.startPending(t), p.pending);
|
|
50
|
+
}
|
|
51
|
+
onSucceeded() {
|
|
52
|
+
this.onDone(!0);
|
|
53
|
+
}
|
|
54
|
+
onFailed() {
|
|
55
|
+
this.onDone(!1);
|
|
56
|
+
}
|
|
57
|
+
updateState(t) {
|
|
58
|
+
x(() => {
|
|
59
|
+
this.state = t;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
startFailedFeedback() {
|
|
63
|
+
this.updateState("isFailed"), setTimeout(() => this.updateState("isIdle"), p.failed);
|
|
64
|
+
}
|
|
65
|
+
startSucceededFeedback() {
|
|
66
|
+
this.updateState("isSucceeded"), setTimeout(() => this.updateState("isIdle"), p.succeeded);
|
|
67
|
+
}
|
|
68
|
+
onDone(t) {
|
|
69
|
+
if (!this.feedback) {
|
|
70
|
+
this.updateState("isIdle");
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
t ? this.startSucceededFeedback() : this.startFailedFeedback();
|
|
74
|
+
}
|
|
75
|
+
startPending(t) {
|
|
76
|
+
this.state === "isExecuting" && t === this.executionCount && this.updateState("isPending");
|
|
77
|
+
}
|
|
78
|
+
useState() {
|
|
79
|
+
return I(() => this.state, [this]);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const W = (e, t) => {
|
|
83
|
+
const { action: o } = P("Action", {}), s = w(e), i = (...c) => g(c, [s, o]), n = f.useNew(t);
|
|
84
|
+
return {
|
|
85
|
+
callAction: i,
|
|
86
|
+
callActionWithStateHandling: (...c) => {
|
|
87
|
+
try {
|
|
88
|
+
const a = i(...c);
|
|
89
|
+
if (a instanceof Promise)
|
|
90
|
+
return n.onAsyncStart(), a.then(() => n.onSucceeded()).catch(() => n.onFailed());
|
|
91
|
+
n.onSucceeded();
|
|
92
|
+
} catch {
|
|
93
|
+
n.onFailed();
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
state: n
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
function h(e) {
|
|
100
|
+
return typeof e == "boolean" ? void 0 : e;
|
|
101
|
+
}
|
|
102
|
+
const r = {
|
|
103
|
+
fn: (e) => ({
|
|
104
|
+
type: "function",
|
|
105
|
+
fn: e
|
|
106
|
+
}),
|
|
107
|
+
openModal: (e) => ({
|
|
108
|
+
type: "openModal",
|
|
109
|
+
controller: h(e)
|
|
110
|
+
}),
|
|
111
|
+
closeModal: (e) => ({
|
|
112
|
+
type: "closeModal",
|
|
113
|
+
controller: h(e)
|
|
114
|
+
}),
|
|
115
|
+
toggleModal: (e) => ({
|
|
116
|
+
type: "toggleModal",
|
|
117
|
+
controller: h(e)
|
|
118
|
+
})
|
|
119
|
+
}, G = (e) => {
|
|
120
|
+
const {
|
|
121
|
+
children: t,
|
|
122
|
+
feedback: o,
|
|
123
|
+
action: s,
|
|
124
|
+
toggleModal: i,
|
|
125
|
+
openModal: n,
|
|
126
|
+
closeModal: u
|
|
127
|
+
} = e, c = s ? r.fn(s) : i ? r.toggleModal(i) : n ? r.openModal(n) : u ? r.closeModal(u) : void 0, a = W(c, {
|
|
128
|
+
feedback: o
|
|
129
|
+
}), l = a.state.useState(), m = {
|
|
130
|
+
Button: {
|
|
131
|
+
onPress: a.callActionWithStateHandling,
|
|
132
|
+
isPending: l === "isPending",
|
|
133
|
+
"aria-disabled": l !== "isIdle",
|
|
134
|
+
isSucceeded: l === "isSucceeded",
|
|
135
|
+
isFailed: l === "isFailed"
|
|
136
|
+
},
|
|
137
|
+
Action: {
|
|
138
|
+
action: a.callAction
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
return /* @__PURE__ */ b.createElement(
|
|
142
|
+
y,
|
|
143
|
+
{
|
|
144
|
+
mergeInParentContext: !0,
|
|
145
|
+
props: m,
|
|
146
|
+
dependencies: [l]
|
|
147
|
+
},
|
|
148
|
+
t
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
export {
|
|
152
|
+
G as A
|
|
153
|
+
};
|
package/dist/Action.js
ADDED
package/dist/Avatar.js
CHANGED
|
@@ -1,25 +1,56 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import { P as c } from "./PropsContextProvider-
|
|
7
|
-
import "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import i, { isValidElement as v } from "react";
|
|
4
|
+
import m from "clsx";
|
|
5
|
+
import { C as p } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
|
+
import { P as c } from "./PropsContextProvider-DZvwqHLP.js";
|
|
7
|
+
import { u as f } from "./useProps-DfMs_ElR.js";
|
|
8
|
+
import { hash as w } from "object-code";
|
|
9
|
+
import { deepForEach as z } from "react-children-utilities";
|
|
10
|
+
const d = "flow--avatar", h = "flow--avatar--icon", u = "flow--avatar--initials", r = {
|
|
11
|
+
avatar: d,
|
|
12
|
+
icon: h,
|
|
13
|
+
initials: u,
|
|
12
14
|
"size-m": "flow--avatar--size-m",
|
|
13
|
-
"size-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
"size-xs": "flow--avatar--size-xs",
|
|
16
|
+
"size-s": "flow--avatar--size-s",
|
|
17
|
+
"size-l": "flow--avatar--size-l",
|
|
18
|
+
"variant-1": "flow--avatar--variant-1",
|
|
19
|
+
"variant-2": "flow--avatar--variant-2",
|
|
20
|
+
"variant-3": "flow--avatar--variant-3",
|
|
21
|
+
"variant-4": "flow--avatar--variant-4"
|
|
22
|
+
}, C = (s) => {
|
|
23
|
+
const a = [];
|
|
24
|
+
z(s, (t) => {
|
|
25
|
+
v(t) ? a.push({
|
|
26
|
+
props: t.props,
|
|
27
|
+
type: t.type
|
|
28
|
+
}) : a.push(t);
|
|
29
|
+
});
|
|
30
|
+
const o = w(a);
|
|
31
|
+
return Math.abs(o % 4) + 1;
|
|
32
|
+
}, A = (s) => {
|
|
33
|
+
const {
|
|
34
|
+
children: a,
|
|
35
|
+
className: o,
|
|
36
|
+
variant: t,
|
|
37
|
+
size: e = "m"
|
|
38
|
+
} = f("Avatar", s), n = m(
|
|
39
|
+
r.avatar,
|
|
40
|
+
r[`size-${e}`],
|
|
41
|
+
o,
|
|
42
|
+
r[`variant-${t ?? C(a)}`]
|
|
43
|
+
), l = {
|
|
16
44
|
Initials: {
|
|
17
|
-
className:
|
|
45
|
+
className: r.initials
|
|
46
|
+
},
|
|
47
|
+
Icon: {
|
|
48
|
+
className: r.icon
|
|
18
49
|
}
|
|
19
50
|
};
|
|
20
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ i.createElement(p, null, /* @__PURE__ */ i.createElement("div", { className: n }, /* @__PURE__ */ i.createElement(c, { props: l }, a)));
|
|
21
52
|
};
|
|
22
53
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
54
|
+
A as Avatar,
|
|
55
|
+
A as default
|
|
25
56
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import r from "react";
|
|
4
|
+
import * as m from "react-aria-components";
|
|
5
|
+
import a from "clsx";
|
|
6
|
+
import "@tabler/icons-react";
|
|
7
|
+
import "./Icon-DwHDa4pA.js";
|
|
8
|
+
import { I as i } from "./IconChevronRight-CFcrQPos.js";
|
|
9
|
+
import "./propsContext-CauylOgH.js";
|
|
10
|
+
import { P as u } from "./PropsContextProvider-DZvwqHLP.js";
|
|
11
|
+
import "@react-aria/utils";
|
|
12
|
+
import "remeda";
|
|
13
|
+
const d = "flow--breadcrumb", p = "flow--breadcrumb--link", f = "flow--breadcrumb--breadcrumb-item", N = "flow--breadcrumb--icon", e = {
|
|
14
|
+
breadcrumb: d,
|
|
15
|
+
link: p,
|
|
16
|
+
breadcrumbItem: f,
|
|
17
|
+
icon: N
|
|
18
|
+
}, I = (t) => {
|
|
19
|
+
const { children: o } = t, c = a(e.breadcrumbItem);
|
|
20
|
+
return /* @__PURE__ */ r.createElement(m.Breadcrumb, { className: c }, o, /* @__PURE__ */ r.createElement(i, { size: "s", className: e.icon }));
|
|
21
|
+
}, y = (t) => {
|
|
22
|
+
const { children: o, className: c, ...s } = t, n = a(e.breadcrumb, c), l = {
|
|
23
|
+
Link: {
|
|
24
|
+
unstyled: !0,
|
|
25
|
+
className: e.link,
|
|
26
|
+
hoc: (b) => /* @__PURE__ */ r.createElement(I, null, b)
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ r.createElement(m.Breadcrumbs, { ...s, className: n }, /* @__PURE__ */ r.createElement(u, { props: l }, o));
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
y as Breadcrumb,
|
|
33
|
+
y as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o, { useEffect as p } from "react";
|
|
4
|
+
import * as S from "react-aria-components";
|
|
5
|
+
import x from "clsx";
|
|
6
|
+
import { C as F } from "./ClearPropsContext-CeCMjUK9.js";
|
|
7
|
+
import { P as y } from "./PropsContextProvider-DZvwqHLP.js";
|
|
8
|
+
import "@react-aria/utils";
|
|
9
|
+
import "./propsContext-CauylOgH.js";
|
|
10
|
+
import "remeda";
|
|
11
|
+
import "@tabler/icons-react";
|
|
12
|
+
import "./Icon-DwHDa4pA.js";
|
|
13
|
+
import { I as E, a as C } from "./IconSucceeded-CHjiCCzR.js";
|
|
14
|
+
import { W as I } from "./Wrap-DGT1h1o3.js";
|
|
15
|
+
import { T as N } from "./Text-CKd46eHq.js";
|
|
16
|
+
import { f as h } from "./flowComponent-dvQga3NG.js";
|
|
17
|
+
import { L as A } from "./LoadingSpinner-BOBbSYun.js";
|
|
18
|
+
import { useLocalizedStringFormatter as D } from "react-aria";
|
|
19
|
+
import { useLiveRegion as T } from "@chakra-ui/live-region";
|
|
20
|
+
const z = "flow--button", B = "flow--button--content", L = "flow--button--state-icon", k = "flow--button--avatar", R = "flow--button--icon", K = "flow--button--text", U = "flow--button--is-succeeded", W = "flow--button--is-failed", $ = "flow--button--is-pending", j = "flow--button--plain", q = "flow--button--primary", G = "flow--button--solid", H = "flow--button--aria-disabled", J = "flow--button--accent", M = "flow--button--danger", O = "flow--button--secondary", Q = "flow--button--soft", t = {
|
|
21
|
+
button: z,
|
|
22
|
+
content: B,
|
|
23
|
+
stateIcon: L,
|
|
24
|
+
avatar: k,
|
|
25
|
+
icon: R,
|
|
26
|
+
text: K,
|
|
27
|
+
isSucceeded: U,
|
|
28
|
+
isFailed: W,
|
|
29
|
+
isPending: $,
|
|
30
|
+
plain: j,
|
|
31
|
+
"size-s": "flow--button--size-s",
|
|
32
|
+
primary: q,
|
|
33
|
+
solid: G,
|
|
34
|
+
ariaDisabled: H,
|
|
35
|
+
accent: J,
|
|
36
|
+
danger: M,
|
|
37
|
+
secondary: O,
|
|
38
|
+
soft: Q
|
|
39
|
+
}, V = {
|
|
40
|
+
"de-DE": {
|
|
41
|
+
"action.isFailed": "Fehlgeschlagen",
|
|
42
|
+
"action.isPending": "Ausstehend...",
|
|
43
|
+
"action.isSucceeded": "Erfolgreich"
|
|
44
|
+
},
|
|
45
|
+
"en-EN": {
|
|
46
|
+
"action.isFailed": "Failed",
|
|
47
|
+
"action.isPending": "Pending...",
|
|
48
|
+
"action.isSucceeded": "Succeeded"
|
|
49
|
+
}
|
|
50
|
+
}, X = (e, c = {}) => {
|
|
51
|
+
const i = D(V), {
|
|
52
|
+
isPendingText: a = i.format("action.isPending"),
|
|
53
|
+
isSucceededText: d = i.format("action.isSucceeded"),
|
|
54
|
+
isFailedText: s = i.format("action.isFailed")
|
|
55
|
+
} = c, n = T({
|
|
56
|
+
"aria-live": "polite",
|
|
57
|
+
"aria-atomic": !1,
|
|
58
|
+
"aria-relevant": "text additions",
|
|
59
|
+
role: "status"
|
|
60
|
+
});
|
|
61
|
+
p(() => {
|
|
62
|
+
e === "isPending" ? n.speak(a) : e === "isSucceeded" ? n.speak(d) : e === "isFailed" && n.speak(s);
|
|
63
|
+
}, [e]);
|
|
64
|
+
}, Y = (e) => ((e.isPending || e.isSucceeded || e.isFailed || e["aria-disabled"]) && (e = { ...e }, e.onPress = void 0, e.onPressStart = void 0, e.onPressEnd = void 0, e.onPressChange = void 0, e.onPressUp = void 0, e.onKeyDown = void 0, e.onKeyUp = void 0), e), be = h("Button", (e) => {
|
|
65
|
+
e = Y(e);
|
|
66
|
+
const {
|
|
67
|
+
variant: c = "primary",
|
|
68
|
+
style: i = "solid",
|
|
69
|
+
children: a,
|
|
70
|
+
className: d,
|
|
71
|
+
size: s = "m",
|
|
72
|
+
isPending: n,
|
|
73
|
+
isSucceeded: r,
|
|
74
|
+
isFailed: l,
|
|
75
|
+
"aria-disabled": f,
|
|
76
|
+
ref: u,
|
|
77
|
+
...b
|
|
78
|
+
} = e, g = x(
|
|
79
|
+
t.button,
|
|
80
|
+
n && t.isPending,
|
|
81
|
+
r && t.isSucceeded,
|
|
82
|
+
l && t.isFailed,
|
|
83
|
+
t[`size-${s}`],
|
|
84
|
+
t[c],
|
|
85
|
+
t[i],
|
|
86
|
+
d,
|
|
87
|
+
/**
|
|
88
|
+
* Workaround warning: The Aria.Button does not support "aria-disabled" by
|
|
89
|
+
* now, so this Button will be visually disabled via CSS.
|
|
90
|
+
*/
|
|
91
|
+
f && t.ariaDisabled
|
|
92
|
+
);
|
|
93
|
+
X(
|
|
94
|
+
n ? "isPending" : r ? "isSucceeded" : l ? "isFailed" : "isIdle"
|
|
95
|
+
);
|
|
96
|
+
const P = {
|
|
97
|
+
Icon: {
|
|
98
|
+
className: t.icon,
|
|
99
|
+
"aria-hidden": !0,
|
|
100
|
+
size: s
|
|
101
|
+
},
|
|
102
|
+
Text: {
|
|
103
|
+
className: t.text
|
|
104
|
+
},
|
|
105
|
+
Avatar: {
|
|
106
|
+
className: t.avatar
|
|
107
|
+
}
|
|
108
|
+
}, m = r ? E : l ? C : n ? A : void 0, w = m && /* @__PURE__ */ o.createElement(m, { size: s, className: t.stateIcon }), v = typeof a == "string";
|
|
109
|
+
return /* @__PURE__ */ o.createElement(F, null, /* @__PURE__ */ o.createElement(S.Button, { className: g, ref: u, ...b }, /* @__PURE__ */ o.createElement(y, { props: P }, /* @__PURE__ */ o.createElement("span", { className: t.content }, /* @__PURE__ */ o.createElement(I, { if: v }, /* @__PURE__ */ o.createElement(N, null, a)))), w));
|
|
110
|
+
});
|
|
111
|
+
export {
|
|
112
|
+
be as B
|
|
113
|
+
};
|
package/dist/Button.js
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { B as o } from "./Button-
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-aria-components";
|
|
6
|
-
import "./clsx-F0OAuoLf.js";
|
|
7
|
-
import "./propsContext-1HT-3SRC.js";
|
|
8
|
-
import "./PropsContextProvider-1ZntTV8J.js";
|
|
9
|
-
import "@react-aria/utils";
|
|
10
|
-
import "./useProps-5ZdbXCrH.js";
|
|
3
|
+
import { B as o } from "./Button-CZjBV5AM.js";
|
|
11
4
|
export {
|
|
12
5
|
o as Button,
|
|
13
6
|
o as default
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o from "react";
|
|
4
|
+
import { C as m } from "./ClearPropsContext-CeCMjUK9.js";
|
|
5
|
+
import { P as l } from "./PropsContextProvider-DZvwqHLP.js";
|
|
6
|
+
import { u as i } from "./useProps-DfMs_ElR.js";
|
|
7
|
+
import { d as b } from "./dynamic-ClpUSmEt.js";
|
|
8
|
+
import r from "clsx";
|
|
9
|
+
import { f } from "./flowComponent-dvQga3NG.js";
|
|
10
|
+
const d = "flow--button-group--button-group-container", C = "flow--button-group", G = "flow--button-group--button", y = "flow--button-group--secondary", t = {
|
|
11
|
+
buttonGroupContainer: d,
|
|
12
|
+
buttonGroup: C,
|
|
13
|
+
button: G,
|
|
14
|
+
secondary: y
|
|
15
|
+
}, E = f("ButtonGroup", (n) => {
|
|
16
|
+
const { children: e, className: s, ...u } = i("ButtonGroup", n), a = r(t.buttonGroupContainer, s), p = {
|
|
17
|
+
Button: {
|
|
18
|
+
className: b(
|
|
19
|
+
(c) => r(
|
|
20
|
+
t.button,
|
|
21
|
+
c.variant === "secondary" ? t.secondary : void 0
|
|
22
|
+
)
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ o.createElement(m, null, /* @__PURE__ */ o.createElement("div", { ...u, className: a }, /* @__PURE__ */ o.createElement("div", { className: t.buttonGroup, role: "group" }, /* @__PURE__ */ o.createElement(l, { props: p }, e))));
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
E as ButtonGroup,
|
|
30
|
+
E as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as i from "react-aria-components";
|
|
5
|
+
import p from "clsx";
|
|
6
|
+
import "@tabler/icons-react";
|
|
7
|
+
import "./Icon-DwHDa4pA.js";
|
|
8
|
+
import { I as x, a as h } from "./IconCheckboxEmpty-BlU9hQOh.js";
|
|
9
|
+
import { I as C } from "./IconCheckboxIndeterminate-B-p8FuLS.js";
|
|
10
|
+
import { C as f } from "./ClearPropsContext-CeCMjUK9.js";
|
|
11
|
+
import "./propsContext-CauylOgH.js";
|
|
12
|
+
import "@react-aria/utils";
|
|
13
|
+
import "remeda";
|
|
14
|
+
import "dot-prop";
|
|
15
|
+
import { f as k } from "./flowComponent-dvQga3NG.js";
|
|
16
|
+
const b = "flow--checkbox", E = "flow--checkbox--icon", o = {
|
|
17
|
+
checkbox: b,
|
|
18
|
+
icon: E
|
|
19
|
+
}, q = k("Checkbox", (c) => {
|
|
20
|
+
const { children: t, className: r, ref: m, ...a } = c, n = p(o.checkbox, r);
|
|
21
|
+
return /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(i.Checkbox, { ...a, className: n, ref: m }, ({ isSelected: s, isIndeterminate: l }) => /* @__PURE__ */ e.createElement(e.Fragment, null, s ? /* @__PURE__ */ e.createElement(x, { className: o.icon }) : l ? /* @__PURE__ */ e.createElement(C, { className: o.icon }) : /* @__PURE__ */ e.createElement(h, { className: o.icon }), t)));
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
q as C
|
|
25
|
+
};
|
package/dist/Checkbox.js
CHANGED
|
@@ -1,76 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import * as d from "react-aria-components";
|
|
5
|
-
import { c as v } from "./clsx-F0OAuoLf.js";
|
|
6
|
-
import { I as s } from "./Icon-ZFuEzyOR.js";
|
|
7
|
-
import "@fortawesome/react-fontawesome";
|
|
8
|
-
import "html-react-parser";
|
|
9
|
-
import "./propsContext-1HT-3SRC.js";
|
|
10
|
-
import "@react-aria/utils";
|
|
11
|
-
import "./useProps-5ZdbXCrH.js";
|
|
12
|
-
const k = "flow--checkbox", g = "flow--checkbox--checkmark", u = {
|
|
13
|
-
checkbox: k,
|
|
14
|
-
checkmark: g
|
|
15
|
-
};
|
|
16
|
-
var o = {}, m = {};
|
|
17
|
-
(function(a) {
|
|
18
|
-
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
19
|
-
var e = "far", i = "square-check", n = 448, r = 512, c = [9745, 9989, 61510, "check-square"], h = "f14a", t = "M64 80c-8.8 0-16 7.2-16 16V416c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V96c0-8.8-7.2-16-16-16H64zM0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";
|
|
20
|
-
a.definition = {
|
|
21
|
-
prefix: e,
|
|
22
|
-
iconName: i,
|
|
23
|
-
icon: [
|
|
24
|
-
n,
|
|
25
|
-
r,
|
|
26
|
-
c,
|
|
27
|
-
h,
|
|
28
|
-
t
|
|
29
|
-
]
|
|
30
|
-
}, a.faSquareCheck = a.definition, a.prefix = e, a.iconName = i, a.width = n, a.height = r, a.ligatures = c, a.unicode = h, a.svgPathData = t, a.aliases = c;
|
|
31
|
-
})(m);
|
|
32
|
-
(function(a) {
|
|
33
|
-
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
34
|
-
var e = m;
|
|
35
|
-
a.definition = {
|
|
36
|
-
prefix: e.prefix,
|
|
37
|
-
iconName: e.iconName,
|
|
38
|
-
icon: [
|
|
39
|
-
e.width,
|
|
40
|
-
e.height,
|
|
41
|
-
e.aliases,
|
|
42
|
-
e.unicode,
|
|
43
|
-
e.svgPathData
|
|
44
|
-
]
|
|
45
|
-
}, a.faCheckSquare = a.definition, a.prefix = e.prefix, a.iconName = e.iconName, a.width = e.width, a.height = e.height, a.ligatures = e.aliases, a.unicode = e.unicode, a.svgPathData = e.svgPathData, a.aliases = e.aliases;
|
|
46
|
-
})(o);
|
|
47
|
-
var l = {};
|
|
48
|
-
(function(a) {
|
|
49
|
-
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
50
|
-
var e = "far", i = "square", n = 448, r = 512, c = [9632, 9723, 9724, 61590], h = "f0c8", t = "M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z";
|
|
51
|
-
a.definition = {
|
|
52
|
-
prefix: e,
|
|
53
|
-
iconName: i,
|
|
54
|
-
icon: [
|
|
55
|
-
n,
|
|
56
|
-
r,
|
|
57
|
-
c,
|
|
58
|
-
h,
|
|
59
|
-
t
|
|
60
|
-
]
|
|
61
|
-
}, a.faSquare = a.definition, a.prefix = e, a.iconName = i, a.width = n, a.height = r, a.ligatures = c, a.unicode = h, a.svgPathData = t, a.aliases = c;
|
|
62
|
-
})(l);
|
|
63
|
-
const S = (a) => {
|
|
64
|
-
const { children: e, className: i, ...n } = a, r = v(u.checkbox, i);
|
|
65
|
-
return /* @__PURE__ */ f.createElement(d.Checkbox, { ...n, className: r }, ({ isSelected: c }) => /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
66
|
-
s,
|
|
67
|
-
{
|
|
68
|
-
className: u.checkmark,
|
|
69
|
-
faIcon: c ? o.faCheckSquare : l.faSquare
|
|
70
|
-
}
|
|
71
|
-
), e));
|
|
72
|
-
};
|
|
3
|
+
import { C as a } from "./Checkbox-PPWtxoYH.js";
|
|
73
4
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
5
|
+
a as Checkbox,
|
|
6
|
+
a as default
|
|
76
7
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import t from "react";
|
|
4
|
+
import a from "clsx";
|
|
5
|
+
import { C as m } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
|
+
import { P as p } from "./PropsContextProvider-DZvwqHLP.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "./propsContext-CauylOgH.js";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import { C as b } from "./Checkbox-PPWtxoYH.js";
|
|
11
|
+
import { f as x } from "./flowComponent-dvQga3NG.js";
|
|
12
|
+
const C = "flow--checkbox-button", f = "flow--checkbox-button--label", i = "flow--checkbox-button--content", o = {
|
|
13
|
+
checkboxButton: C,
|
|
14
|
+
label: f,
|
|
15
|
+
content: i
|
|
16
|
+
}, v = x("CheckboxButton", (e) => {
|
|
17
|
+
const { children: c, className: n, ...r } = e, s = a(o.checkboxButton, n), l = {
|
|
18
|
+
Text: {
|
|
19
|
+
className: o.label
|
|
20
|
+
},
|
|
21
|
+
Content: {
|
|
22
|
+
className: o.content
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ t.createElement(m, null, /* @__PURE__ */ t.createElement(b, { ...r, className: s }, /* @__PURE__ */ t.createElement(p, { props: l }, c)));
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
v as C
|
|
29
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as u from "react-aria-components";
|
|
5
|
+
import x from "clsx";
|
|
6
|
+
import "./propsContext-CauylOgH.js";
|
|
7
|
+
import { P as b } from "./PropsContextProvider-DZvwqHLP.js";
|
|
8
|
+
import "@react-aria/utils";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import { F as h } from "./FieldError-b6CAH0ya.js";
|
|
11
|
+
import { C as E } from "./CheckboxButton-B5OAcIK5.js";
|
|
12
|
+
import { TunnelProvider as k, TunnelExit as r } from "@mittwald/react-tunnel";
|
|
13
|
+
import { s as o } from "./FormField.module-DHK6nIcD.js";
|
|
14
|
+
import { C } from "./ColumnLayout-FMONjI17.js";
|
|
15
|
+
import { d as N } from "./deepFindOfType-6pG0fH7S.js";
|
|
16
|
+
import { f as F } from "./flowComponent-dvQga3NG.js";
|
|
17
|
+
const G = "flow--checkbox-group", s = {
|
|
18
|
+
checkboxGroup: G
|
|
19
|
+
}, j = F("CheckboxGroup", (l) => {
|
|
20
|
+
const { children: t, className: m, s: n, m: i, l: a, ref: y, ...p } = l, d = x(o.formField, m), f = {
|
|
21
|
+
Label: {
|
|
22
|
+
className: o.label
|
|
23
|
+
},
|
|
24
|
+
FieldDescription: {
|
|
25
|
+
className: o.fieldDescription,
|
|
26
|
+
tunnelId: "fieldDescription"
|
|
27
|
+
},
|
|
28
|
+
FieldError: {
|
|
29
|
+
className: o.customFieldError,
|
|
30
|
+
tunnelId: "fieldError"
|
|
31
|
+
},
|
|
32
|
+
Checkbox: {
|
|
33
|
+
tunnelId: "checkboxes"
|
|
34
|
+
},
|
|
35
|
+
CheckboxButton: {
|
|
36
|
+
tunnelId: "checkboxes"
|
|
37
|
+
}
|
|
38
|
+
}, c = !!N(t, E);
|
|
39
|
+
return /* @__PURE__ */ e.createElement(u.CheckboxGroup, { ...p, className: d }, /* @__PURE__ */ e.createElement(b, { props: f }, /* @__PURE__ */ e.createElement(k, null, t, c && /* @__PURE__ */ e.createElement(C, { s: n, m: i, l: a, className: s.checkboxGroup }, /* @__PURE__ */ e.createElement(r, { id: "checkboxes" })), !c && /* @__PURE__ */ e.createElement("div", { className: s.checkboxGroup }, /* @__PURE__ */ e.createElement(r, { id: "checkboxes" })), /* @__PURE__ */ e.createElement(r, { id: "fieldDescription" }), /* @__PURE__ */ e.createElement(r, { id: "fieldError" }))), /* @__PURE__ */ e.createElement(h, { className: o.fieldError }));
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
j as CheckboxGroup,
|
|
43
|
+
j as default
|
|
44
|
+
};
|
|
@@ -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
|
+
};
|