@mittwald/flow-react-components 0.1.0-alpha.114 → 0.1.0-alpha.115
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/{Accordion-c-zskOK4.js → Accordion-DsX7RI_p.js} +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/{Action-BoUrh0Ww.js → Action-BZHZj-BD.js} +54 -58
- package/dist/Action.js +1 -1
- package/dist/Breadcrumb.js +17 -20
- package/dist/Button-D59Yuz6-.js +116 -0
- package/dist/Button.js +1 -1
- package/dist/CopyButton.js +2 -2
- package/dist/HeaderNavigation.js +16 -19
- package/dist/Heading.js +31 -27
- package/dist/Link-TVG_Y-ZN.js +51 -0
- package/dist/Link.js +1 -1
- package/dist/List.js +2 -2
- package/dist/Navigation.js +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/OffCanvas.js +2 -2
- package/dist/OverlayTrigger.js +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Accordion/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Accordion/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Action/Action.d.ts +2 -2
- package/dist/types/components/Action/lib/execution/useActionController.d.ts +2 -2
- package/dist/types/components/Action/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Action/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +1 -1
- package/dist/types/components/Avatar/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Avatar/stories/Sizes.stories.d.ts +1 -1
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +3 -2
- package/dist/types/components/Breadcrumb/components/BreadcrumbItem/BreadcrumbItem.d.ts +1 -2
- package/dist/types/components/Breadcrumb/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Breadcrumb/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +2 -3
- package/dist/types/components/Button/stories/Default.stories.d.ts +1 -2
- package/dist/types/components/Button/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/States.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/Variants.stories.d.ts +7 -1
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/types/components/ButtonGroup/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Checkbox/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Checkbox/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/CheckboxButton/CheckboxButton.d.ts +2 -2
- package/dist/types/components/CheckboxButton/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/CheckboxButton/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +2 -2
- package/dist/types/components/CheckboxGroup/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/ColumnLayout/ColumnLayout.d.ts +1 -1
- package/dist/types/components/ColumnLayout/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Content/Content.d.ts +2 -2
- package/dist/types/components/Content/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +3 -3
- package/dist/types/components/ContextMenu/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/ContextMenu/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/CopyButton/CopyButton.d.ts +2 -2
- package/dist/types/components/CopyButton/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/EmulatedBoldText/EmulatedBoldText.d.ts +1 -2
- package/dist/types/components/EmulatedBoldText/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/FieldDescription/FieldDescription.d.ts +2 -2
- package/dist/types/components/FieldError/FieldError.d.ts +1 -1
- package/dist/types/components/Header/Header.d.ts +2 -2
- package/dist/types/components/Header/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/HeaderNavigation/HeaderNavigation.d.ts +3 -2
- package/dist/types/components/HeaderNavigation/stories/Default.stories.d.ts +3 -2
- package/dist/types/components/Heading/Heading.d.ts +3 -1
- package/dist/types/components/Heading/stories/Default.stories.d.ts +3 -1
- package/dist/types/components/Heading/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Heading/stories/Levels.stories.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconApp.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconBackLink.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconBackup.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconCheck.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconCheckboxChecked.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconCheckboxEmpty.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconCheckboxIndeterminate.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconChevronDown.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconChevronLeft.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconChevronRight.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconChevronUp.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconClose.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconCode.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconContextMenu.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconCopy.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconCronjob.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconCustomer.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconDanger.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconDashboard.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconDatabase.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconDate.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconDelete.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconDomain.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconEmail.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconExternalLink.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconFailed.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconFilter.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconHide.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconHome.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconInbox.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconInfo.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconListView.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconLogout.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconMember.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconMenu.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconMinus.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconMittwald.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconNotification.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconPending.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconPlus.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconProject.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconRadioOff.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconRadioOn.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconRandom.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSave.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSearch.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSearchEngine.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconServer.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSettings.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconShare.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconShow.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSorting.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSpamProtectionOff.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSpamProtectionOn.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSshSftp.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSubdomain.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSucceeded.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSuccess.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconSupport.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconTerminate.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconTileView.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconTime.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconWarning.d.ts +1 -1
- package/dist/types/components/Icon/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/Sizes.stories.d.ts +1 -1
- package/dist/types/components/IllustratedMessage/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/IllustratedMessage/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Image/Image.d.ts +1 -1
- package/dist/types/components/Image/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Initials/Initials.d.ts +2 -2
- package/dist/types/components/Initials/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/InlineAlert/InlineAlert.d.ts +2 -2
- package/dist/types/components/InlineAlert/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/InlineAlert/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/InlineAlert/stories/Variants.stories.d.ts +1 -1
- package/dist/types/components/InlineCode/InlineCode.d.ts +1 -2
- package/dist/types/components/InlineCode/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/InlineCode/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Label/Label.d.ts +1 -1
- package/dist/types/components/Label/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/LabeledValue/LabeledValue.d.ts +1 -1
- package/dist/types/components/LabeledValue/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/LabeledValue/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/LayoutCard/LayoutCard.d.ts +2 -2
- package/dist/types/components/LayoutCard/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Link/Link.d.ts +4 -2
- package/dist/types/components/Link/stories/Default.stories.d.ts +3 -1
- package/dist/types/components/Link/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/List/components/Footer/PaginationInfos/PaginationInfos.d.ts +1 -1
- package/dist/types/components/List/components/Footer/ShowNextBatchButton/ShowNextBatchButton.d.ts +1 -1
- package/dist/types/components/List/components/Header/FilterPicker/FilterPicker.d.ts +2 -2
- package/dist/types/components/List/components/Header/Header/Header.d.ts +2 -3
- package/dist/types/components/List/components/Header/ListFilter.d.ts +1 -2
- package/dist/types/components/List/components/Header/SortingPickerItem/SortingPickerItem.d.ts +2 -2
- package/dist/types/components/List/components/Items/Item/FallbackRenderer.d.ts +1 -1
- package/dist/types/components/List/components/Items/Item/Item.d.ts +1 -2
- package/dist/types/components/List/components/Items/ItemList/ItemList.d.ts +2 -3
- package/dist/types/components/List/components/Items/OptionsButton/OptionsButton.d.ts +1 -1
- package/dist/types/components/List/listContext.d.ts +1 -1
- package/dist/types/components/List/model/List.d.ts +9 -9
- package/dist/types/components/List/model/ReactTable.d.ts +2 -2
- package/dist/types/components/List/model/filter/Filter.d.ts +4 -4
- package/dist/types/components/List/model/item/Item.d.ts +2 -2
- package/dist/types/components/List/model/item/ItemCollection.d.ts +1 -1
- package/dist/types/components/List/model/loading/IncrementalLoader.d.ts +3 -3
- package/dist/types/components/List/model/loading/IncrementalLoaderState.d.ts +1 -1
- package/dist/types/components/List/model/loading/types.d.ts +4 -4
- package/dist/types/components/List/model/pagination/BatchesController.d.ts +1 -1
- package/dist/types/components/List/model/sorting/Sorting.d.ts +3 -3
- package/dist/types/components/List/model/sorting/types.d.ts +1 -1
- package/dist/types/components/List/model/types.d.ts +4 -4
- package/dist/types/components/List/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/List/stories/ListItem.stories.d.ts +1 -1
- package/dist/types/components/List/testData/domainApi.d.ts +2 -2
- package/dist/types/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/types/components/LoadingSpinner/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/MenuItem/MenuItem.d.ts +1 -1
- package/dist/types/components/Modal/Modal.d.ts +2 -2
- package/dist/types/components/Modal/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Modal/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Navigation/Navigation.d.ts +1 -1
- package/dist/types/components/Navigation/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/NumberField/NumberField.d.ts +1 -1
- package/dist/types/components/NumberField/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/NumberField/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/OffCanvas/OffCanvas.d.ts +1 -1
- package/dist/types/components/OffCanvas/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Overlay/Overlay.d.ts +1 -1
- package/dist/types/components/Overlay/components/OverlayTrigger/OverlayTrigger.d.ts +1 -2
- package/dist/types/components/Popover/Popover.d.ts +1 -2
- package/dist/types/components/Popover/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/types/components/ProgressBar/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/ProgressBar/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/ProgressBar/stories/Variants.stories.d.ts +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/RadioGroup/components/Radio/Radio.d.ts +1 -1
- package/dist/types/components/RadioGroup/components/RadioButton/RadioButton.d.ts +2 -2
- package/dist/types/components/RadioGroup/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/RadioGroup/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Section/Section.d.ts +1 -2
- package/dist/types/components/Section/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Section/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Select/Select.d.ts +2 -2
- package/dist/types/components/Select/components/Option/Option.d.ts +1 -1
- package/dist/types/components/Select/components/Options/Options.d.ts +2 -3
- package/dist/types/components/Select/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Select/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Skeleton/Skeleton.d.ts +1 -2
- package/dist/types/components/Skeleton/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/StatusBadge/StatusBadge.d.ts +2 -2
- package/dist/types/components/StatusBadge/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/StatusBadge/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/StatusBadge/stories/Variants.stories.d.ts +1 -1
- package/dist/types/components/StatusIcon/StatusIcon.d.ts +2 -2
- package/dist/types/components/StatusIcon/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Switch/Switch.d.ts +1 -1
- package/dist/types/components/Switch/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Switch/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +1 -1
- package/dist/types/components/Tabs/components/TabTitle/TabTitleCollapsed.d.ts +1 -1
- package/dist/types/components/Tabs/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Tabs/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Text/Text.d.ts +2 -2
- package/dist/types/components/Text/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/TextArea/TextArea.d.ts +2 -2
- package/dist/types/components/TextArea/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/TextField/TextField.d.ts +2 -2
- package/dist/types/components/TextField/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +1 -2
- package/dist/types/components/Tooltip/components/TooltipTrigger/TooltipTrigger.d.ts +1 -2
- package/dist/types/components/Tooltip/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Tooltip/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/propTypes/index.d.ts +30 -30
- package/dist/types/integrations/react-hook-form/components/Controller/Controller.d.ts +1 -1
- package/dist/types/integrations/react-hook-form/components/Controller/stories/Default.stories.d.ts +1 -1
- package/dist/types/integrations/react-hook-form/components/Form/Form.d.ts +1 -1
- package/dist/types/lib/childProps/ChildPropsContextProvider.d.ts +1 -1
- package/dist/types/lib/componentFactory/flowComponent.d.ts +2 -2
- package/dist/types/lib/dev/storyBackgrounds.d.ts +14 -0
- package/dist/types/lib/promises/callFunctionsInOrder.d.ts +1 -1
- package/dist/types/lib/propsContext/ClearPropsContext.d.ts +1 -2
- package/dist/types/lib/propsContext/PropsContextProvider.d.ts +1 -1
- package/dist/types/lib/propsContext/dynamicProps/isDynamicProp.d.ts +1 -1
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.d.ts +1 -1
- package/dist/types/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.d.ts +2 -2
- package/dist/types/lib/propsContext/types.d.ts +1 -1
- package/dist/types/lib/react/components/Translate/Translate.d.ts +1 -1
- package/dist/types/lib/react/deepFindOfType.d.ts +1 -1
- package/package.json +34 -34
- package/dist/Button-DcXbM73F.js +0 -117
- package/dist/Link-C9hXxA2A.js +0 -48
|
@@ -7,7 +7,7 @@ import { P as N } from "./PropsContextProvider-DZvwqHLP.js";
|
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { d } from "./dynamic-ClpUSmEt.js";
|
|
10
|
-
import { B as w } from "./Button-
|
|
10
|
+
import { B as w } from "./Button-D59Yuz6-.js";
|
|
11
11
|
import "@tabler/icons-react";
|
|
12
12
|
import "./Icon-CA9DycKJ.js";
|
|
13
13
|
import { I as B } from "./IconChevronDown-DvDzDLHn.js";
|
package/dist/Accordion.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
var S = Object.defineProperty;
|
|
4
|
-
var
|
|
5
|
-
var f = (t, e, n) => (
|
|
6
|
-
import a, { useRef as
|
|
4
|
+
var C = (t, e, n) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
5
|
+
var f = (t, e, n) => (C(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
6
|
+
import a, { useRef as E, useState as D, useEffect as g } from "react";
|
|
7
7
|
import "./propsContext-CauylOgH.js";
|
|
8
|
-
import { P
|
|
8
|
+
import { P } from "./PropsContextProvider-DZvwqHLP.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { TunnelProvider as
|
|
14
|
-
import { makeObservable as
|
|
15
|
-
import { u as
|
|
16
|
-
const
|
|
11
|
+
import { u as w, O as x } from "./index-0qLHBjoi.js";
|
|
12
|
+
import { u as O, A as M } from "./context-DJetA3qV.js";
|
|
13
|
+
import { TunnelProvider as R, TunnelExit as B } from "@mittwald/react-tunnel";
|
|
14
|
+
import { makeObservable as I, observable as T, action as N } from "mobx";
|
|
15
|
+
import { u as $ } from "./useSelector-DpU7_HMO.js";
|
|
16
|
+
const b = (t) => (...e) => {
|
|
17
17
|
const n = [...t], s = n.shift();
|
|
18
18
|
if (s) {
|
|
19
|
-
const o = s(...e), r = () => n.length === 0 ? o :
|
|
19
|
+
const o = s(...e), r = () => n.length === 0 ? o : b(n)(...e);
|
|
20
20
|
return o instanceof Promise ? o.then(r) : r();
|
|
21
21
|
}
|
|
22
|
-
},
|
|
23
|
-
function
|
|
24
|
-
return !!t && t instanceof Error && t.message ===
|
|
22
|
+
}, F = "flowBreakActionMarker";
|
|
23
|
+
function G(t) {
|
|
24
|
+
return !!t && t instanceof Error && t.message === F;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
throw new Error(
|
|
28
|
-
},
|
|
26
|
+
const H = () => {
|
|
27
|
+
throw new Error(F);
|
|
28
|
+
}, k = {
|
|
29
29
|
pending: 1e3,
|
|
30
30
|
succeeded: 1500,
|
|
31
31
|
failed: 2e3
|
|
32
32
|
};
|
|
33
|
-
class
|
|
33
|
+
class L {
|
|
34
34
|
constructor(e, n, s = {}) {
|
|
35
35
|
f(this, "options");
|
|
36
36
|
f(this, "state");
|
|
@@ -46,7 +46,7 @@ class H {
|
|
|
46
46
|
this.state = e, this.args = n, this.options = { resetAfterDone: o, onFeedbackDone: r, showFeedback: l };
|
|
47
47
|
}
|
|
48
48
|
onAsyncStart() {
|
|
49
|
-
this.options.showFeedback = !0, this.state.updateState("isExecuting"), setTimeout(() => this.startPending(),
|
|
49
|
+
this.options.showFeedback = !0, this.state.updateState("isExecuting"), setTimeout(() => this.startPending(), k.pending);
|
|
50
50
|
}
|
|
51
51
|
onSucceeded() {
|
|
52
52
|
this.onDone();
|
|
@@ -55,10 +55,10 @@ class H {
|
|
|
55
55
|
this.error = e ?? new Error("Unknown error"), console.error(e), this.onDone();
|
|
56
56
|
}
|
|
57
57
|
startFailedFeedback() {
|
|
58
|
-
|
|
58
|
+
G(this.error) ? this.resetAfterDone() : (this.state.updateState("isFailed"), setTimeout(() => this.resetAfterDone(), k.failed));
|
|
59
59
|
}
|
|
60
60
|
startSucceededFeedback() {
|
|
61
|
-
this.state.updateState("isSucceeded"), setTimeout(() => this.resetAfterDone(),
|
|
61
|
+
this.state.updateState("isSucceeded"), setTimeout(() => this.resetAfterDone(), k.succeeded);
|
|
62
62
|
}
|
|
63
63
|
resetAfterDone() {
|
|
64
64
|
this.options.resetAfterDone && this.state.updateState("isIdle"), this.error || this.options.onFeedbackDone(...this.args);
|
|
@@ -70,46 +70,42 @@ class H {
|
|
|
70
70
|
this.isDone || this.state.updateState("isPending");
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
class
|
|
73
|
+
class v {
|
|
74
74
|
constructor() {
|
|
75
75
|
f(this, "state", "isIdle");
|
|
76
|
-
|
|
77
|
-
state:
|
|
78
|
-
updateState:
|
|
76
|
+
I(this, {
|
|
77
|
+
state: T,
|
|
78
|
+
updateState: N
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
static useNew() {
|
|
82
|
-
return
|
|
82
|
+
return E(new v()).current;
|
|
83
83
|
}
|
|
84
84
|
updateState(e) {
|
|
85
85
|
this.state = e;
|
|
86
86
|
}
|
|
87
87
|
useState() {
|
|
88
|
-
return
|
|
88
|
+
return $(() => this.state, [this]);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
},
|
|
91
|
+
const U = () => {
|
|
92
|
+
}, j = (t) => {
|
|
93
93
|
const {
|
|
94
94
|
action: e,
|
|
95
95
|
toggleOverlay: n,
|
|
96
96
|
openOverlay: s,
|
|
97
97
|
closeOverlay: o,
|
|
98
98
|
break: r
|
|
99
|
-
} = t, l =
|
|
100
|
-
return e || (n ? i(n).toggle : s ? i(s).open : o ? i(o).close : r ?
|
|
101
|
-
},
|
|
99
|
+
} = t, l = w(), i = (h) => typeof h == "boolean" ? l : h;
|
|
100
|
+
return e || (n ? i(n).toggle : s ? i(s).open : o ? i(o).close : r ? H : U);
|
|
101
|
+
}, m = () => {
|
|
102
|
+
}, q = (t, e = {}) => {
|
|
102
103
|
const {
|
|
103
|
-
onSync: n =
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
catch: r = () => {
|
|
110
|
-
},
|
|
111
|
-
finally: l = () => {
|
|
112
|
-
}
|
|
104
|
+
onSync: n = m,
|
|
105
|
+
onAsync: s = m,
|
|
106
|
+
then: o = m,
|
|
107
|
+
catch: r = m,
|
|
108
|
+
finally: l = m
|
|
113
109
|
} = e;
|
|
114
110
|
try {
|
|
115
111
|
const i = t();
|
|
@@ -117,25 +113,25 @@ const L = () => {
|
|
|
117
113
|
} catch (i) {
|
|
118
114
|
n(), r(i), l();
|
|
119
115
|
}
|
|
120
|
-
},
|
|
121
|
-
const { isConfirmationAction: e, showFeedback: n } = t, s =
|
|
116
|
+
}, z = (t) => {
|
|
117
|
+
const { isConfirmationAction: e, showFeedback: n } = t, s = j(t), o = O(), r = v.useNew(), l = !e, i = e ? void 0 : o, h = e ? o : void 0, u = b([s, i]);
|
|
122
118
|
return {
|
|
123
119
|
callAction: (...c) => {
|
|
124
|
-
const
|
|
120
|
+
const p = new L(r, c, {
|
|
125
121
|
onFeedbackDone: h,
|
|
126
122
|
resetAfterDone: l,
|
|
127
123
|
showFeedback: n
|
|
128
124
|
});
|
|
129
|
-
return
|
|
130
|
-
onAsync: () =>
|
|
131
|
-
then: () =>
|
|
132
|
-
catch: (
|
|
125
|
+
return q(u, {
|
|
126
|
+
onAsync: () => p.onAsyncStart(),
|
|
127
|
+
then: () => p.onSucceeded(),
|
|
128
|
+
catch: (y) => p.onFailed(y)
|
|
133
129
|
});
|
|
134
130
|
},
|
|
135
131
|
state: r
|
|
136
132
|
};
|
|
137
|
-
},
|
|
138
|
-
const [e, n] =
|
|
133
|
+
}, A = (t) => {
|
|
134
|
+
const [e, n] = D(!1), s = x.useNew(), o = z(t), r = e ? s.open : o.callAction, h = {
|
|
139
135
|
Link: {
|
|
140
136
|
onPress: r
|
|
141
137
|
},
|
|
@@ -159,7 +155,7 @@ const L = () => {
|
|
|
159
155
|
tunnelId: "outsideActionProvider",
|
|
160
156
|
render: (u, d) => {
|
|
161
157
|
const c = d.slot === "actionConfirm";
|
|
162
|
-
return
|
|
158
|
+
return g(() => {
|
|
163
159
|
if (c)
|
|
164
160
|
return n(!0), () => {
|
|
165
161
|
n(!1);
|
|
@@ -170,23 +166,23 @@ const L = () => {
|
|
|
170
166
|
Button: {
|
|
171
167
|
render: (u, d) => {
|
|
172
168
|
const { color: c } = d;
|
|
173
|
-
return c === "secondary" ? /* @__PURE__ */ a.createElement(
|
|
169
|
+
return c === "secondary" ? /* @__PURE__ */ a.createElement(A, { break: !0 }, /* @__PURE__ */ a.createElement(A, { closeOverlay: !0 }, /* @__PURE__ */ a.createElement(u, { ...d }))) : /* @__PURE__ */ a.createElement(A, { closeOverlay: !0 }, /* @__PURE__ */ a.createElement(A, { ...t, isConfirmationAction: !0 }, /* @__PURE__ */ a.createElement(u, { ...d })));
|
|
174
170
|
}
|
|
175
171
|
}
|
|
176
172
|
}
|
|
177
173
|
}
|
|
178
174
|
};
|
|
179
|
-
return /* @__PURE__ */ a.createElement(
|
|
180
|
-
|
|
175
|
+
return /* @__PURE__ */ a.createElement(R, null, /* @__PURE__ */ a.createElement(
|
|
176
|
+
P,
|
|
181
177
|
{
|
|
182
178
|
props: h,
|
|
183
179
|
dependencies: [e],
|
|
184
180
|
mergeInParentContext: !0
|
|
185
181
|
},
|
|
186
|
-
/* @__PURE__ */ a.createElement(
|
|
187
|
-
/* @__PURE__ */ a.createElement(
|
|
182
|
+
/* @__PURE__ */ a.createElement(M, { value: r }, t.children),
|
|
183
|
+
/* @__PURE__ */ a.createElement(B, { id: "outsideActionProvider" })
|
|
188
184
|
));
|
|
189
185
|
};
|
|
190
186
|
export {
|
|
191
|
-
|
|
187
|
+
A
|
|
192
188
|
};
|
package/dist/Action.js
CHANGED
package/dist/Breadcrumb.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
3
|
+
import r from "react";
|
|
4
4
|
import * as m from "react-aria-components";
|
|
5
|
-
import
|
|
5
|
+
import a from "clsx";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
7
|
import "./Icon-CA9DycKJ.js";
|
|
8
8
|
import { I as u } from "./IconChevronRight-CQ4ThSCR.js";
|
|
@@ -10,28 +10,25 @@ import "./propsContext-CauylOgH.js";
|
|
|
10
10
|
import { P as p } from "./PropsContextProvider-DZvwqHLP.js";
|
|
11
11
|
import "@react-aria/utils";
|
|
12
12
|
import "remeda";
|
|
13
|
-
const f = "flow--breadcrumb",
|
|
13
|
+
const f = "flow--breadcrumb", k = "flow--breadcrumb--link", h = "flow--breadcrumb--breadcrumb-item", N = "flow--breadcrumb--icon", w = "flow--breadcrumb--dark", E = "flow--breadcrumb--light", e = {
|
|
14
14
|
breadcrumb: f,
|
|
15
|
-
link:
|
|
16
|
-
breadcrumbItem:
|
|
17
|
-
icon:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
n && r.inverse,
|
|
26
|
-
c
|
|
27
|
-
), l = {
|
|
15
|
+
link: k,
|
|
16
|
+
breadcrumbItem: h,
|
|
17
|
+
icon: N,
|
|
18
|
+
dark: w,
|
|
19
|
+
light: E
|
|
20
|
+
}, I = (t) => {
|
|
21
|
+
const { children: o } = t, c = a(e.breadcrumbItem);
|
|
22
|
+
return /* @__PURE__ */ r.createElement(m.Breadcrumb, { className: c }, o, /* @__PURE__ */ r.createElement(u, { size: "s", className: e.icon }));
|
|
23
|
+
}, A = (t) => {
|
|
24
|
+
const { children: o, className: c, color: s = "primary", ...n } = t, l = a(e.breadcrumb, e[s], c), b = {
|
|
28
25
|
Link: {
|
|
29
|
-
render: (
|
|
26
|
+
render: (i, d) => /* @__PURE__ */ r.createElement(I, null, /* @__PURE__ */ r.createElement(i, { ...d, unstyled: !0, className: e.link }))
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ r.createElement(m.Breadcrumbs, { ...n, className: l }, /* @__PURE__ */ r.createElement(p, { props: b }, o));
|
|
33
30
|
};
|
|
34
31
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
A as Breadcrumb,
|
|
33
|
+
A as default
|
|
37
34
|
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o, { useEffect as x } from "react";
|
|
4
|
+
import * as F from "react-aria-components";
|
|
5
|
+
import E from "clsx";
|
|
6
|
+
import { C as y } from "./ClearPropsContext-CeCMjUK9.js";
|
|
7
|
+
import { P as h } 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-CA9DycKJ.js";
|
|
13
|
+
import { I as C, a as I } from "./IconSucceeded-DHtj6r9L.js";
|
|
14
|
+
import { W as u } from "./Wrap-DGT1h1o3.js";
|
|
15
|
+
import { T as N } from "./Text-D94bUNze.js";
|
|
16
|
+
import { f as k } from "./flowComponent-MjC63Rjp.js";
|
|
17
|
+
import { L as A } from "./LoadingSpinner-CQKhFNdn.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", R = "flow--button--avatar", K = "flow--button--icon", U = "flow--button--text", W = "flow--button--is-succeeded", $ = "flow--button--is-failed", j = "flow--button--is-pending", q = "flow--button--plain", G = "flow--button--primary", H = "flow--button--solid", J = "flow--button--aria-disabled", M = "flow--button--accent", O = "flow--button--danger", Q = "flow--button--secondary", V = "flow--button--dark", X = "flow--button--light", Y = "flow--button--soft", t = {
|
|
21
|
+
button: z,
|
|
22
|
+
content: B,
|
|
23
|
+
stateIcon: L,
|
|
24
|
+
avatar: R,
|
|
25
|
+
icon: K,
|
|
26
|
+
text: U,
|
|
27
|
+
isSucceeded: W,
|
|
28
|
+
isFailed: $,
|
|
29
|
+
isPending: j,
|
|
30
|
+
plain: q,
|
|
31
|
+
"size-s": "flow--button--size-s",
|
|
32
|
+
primary: G,
|
|
33
|
+
solid: H,
|
|
34
|
+
ariaDisabled: J,
|
|
35
|
+
accent: M,
|
|
36
|
+
danger: O,
|
|
37
|
+
secondary: Q,
|
|
38
|
+
dark: V,
|
|
39
|
+
light: X,
|
|
40
|
+
soft: Y
|
|
41
|
+
}, Z = {
|
|
42
|
+
"de-DE": {
|
|
43
|
+
"action.isFailed": "Fehlgeschlagen",
|
|
44
|
+
"action.isPending": "Ausstehend...",
|
|
45
|
+
"action.isSucceeded": "Erfolgreich"
|
|
46
|
+
},
|
|
47
|
+
"en-EN": {
|
|
48
|
+
"action.isFailed": "Failed",
|
|
49
|
+
"action.isPending": "Pending...",
|
|
50
|
+
"action.isSucceeded": "Succeeded"
|
|
51
|
+
}
|
|
52
|
+
}, _ = (e, d = {}) => {
|
|
53
|
+
const i = D(Z), {
|
|
54
|
+
isPendingText: a = i.format("action.isPending"),
|
|
55
|
+
isSucceededText: c = i.format("action.isSucceeded"),
|
|
56
|
+
isFailedText: s = i.format("action.isFailed")
|
|
57
|
+
} = d, n = T({
|
|
58
|
+
"aria-live": "polite",
|
|
59
|
+
"aria-atomic": !1,
|
|
60
|
+
"aria-relevant": "text additions",
|
|
61
|
+
role: "status"
|
|
62
|
+
});
|
|
63
|
+
x(() => {
|
|
64
|
+
e === "isPending" ? n.speak(a) : e === "isSucceeded" ? n.speak(c) : e === "isFailed" && n.speak(s);
|
|
65
|
+
}, [e]);
|
|
66
|
+
}, ee = (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), we = k("Button", (e) => {
|
|
67
|
+
e = ee(e);
|
|
68
|
+
const {
|
|
69
|
+
color: d = "primary",
|
|
70
|
+
variant: i = "solid",
|
|
71
|
+
children: a,
|
|
72
|
+
className: c,
|
|
73
|
+
size: s = "m",
|
|
74
|
+
isPending: n,
|
|
75
|
+
isSucceeded: r,
|
|
76
|
+
isFailed: l,
|
|
77
|
+
"aria-disabled": b,
|
|
78
|
+
ref: g,
|
|
79
|
+
unstyled: m,
|
|
80
|
+
...P
|
|
81
|
+
} = e, w = m ? c : E(
|
|
82
|
+
t.button,
|
|
83
|
+
n && t.isPending,
|
|
84
|
+
r && t.isSucceeded,
|
|
85
|
+
l && t.isFailed,
|
|
86
|
+
t[`size-${s}`],
|
|
87
|
+
t[d],
|
|
88
|
+
t[i],
|
|
89
|
+
c,
|
|
90
|
+
/**
|
|
91
|
+
* Workaround warning: The Aria.Button does not support "aria-disabled"
|
|
92
|
+
* by now, so this Button will be visually disabled via CSS.
|
|
93
|
+
*/
|
|
94
|
+
b && t.ariaDisabled
|
|
95
|
+
);
|
|
96
|
+
_(
|
|
97
|
+
n ? "isPending" : r ? "isSucceeded" : l ? "isFailed" : "isIdle"
|
|
98
|
+
);
|
|
99
|
+
const v = {
|
|
100
|
+
Icon: {
|
|
101
|
+
className: t.icon,
|
|
102
|
+
"aria-hidden": !0,
|
|
103
|
+
size: s
|
|
104
|
+
},
|
|
105
|
+
Text: {
|
|
106
|
+
className: t.text
|
|
107
|
+
},
|
|
108
|
+
Avatar: {
|
|
109
|
+
className: t.avatar
|
|
110
|
+
}
|
|
111
|
+
}, f = r ? C : l ? I : n ? A : void 0, p = f && /* @__PURE__ */ o.createElement(f, { size: s, className: t.stateIcon }), S = typeof a == "string";
|
|
112
|
+
return /* @__PURE__ */ o.createElement(y, null, /* @__PURE__ */ o.createElement(F.Button, { className: w, ref: g, ...P }, /* @__PURE__ */ o.createElement(h, { props: v }, /* @__PURE__ */ o.createElement(u, { if: !m }, /* @__PURE__ */ o.createElement("span", { className: t.content }, /* @__PURE__ */ o.createElement(u, { if: S }, /* @__PURE__ */ o.createElement(N, null, a))))), p));
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
we as B
|
|
116
|
+
};
|
package/dist/Button.js
CHANGED
package/dist/CopyButton.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
4
|
import a from "copy-to-clipboard";
|
|
5
|
-
import { B as i } from "./Button-
|
|
5
|
+
import { B as i } from "./Button-D59Yuz6-.js";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
7
|
import "./Icon-CA9DycKJ.js";
|
|
8
8
|
import { I as c } from "./IconCopy-DFsbS558.js";
|
|
@@ -15,7 +15,7 @@ import "@react-aria/utils";
|
|
|
15
15
|
import "remeda";
|
|
16
16
|
import "dot-prop";
|
|
17
17
|
import { f as C } from "./flowComponent-MjC63Rjp.js";
|
|
18
|
-
import { A as E } from "./Action-
|
|
18
|
+
import { A as E } from "./Action-BZHZj-BD.js";
|
|
19
19
|
const B = {
|
|
20
20
|
"de-DE": {
|
|
21
21
|
"copyButton.copy": "Kopieren"
|
package/dist/HeaderNavigation.js
CHANGED
|
@@ -5,35 +5,32 @@ import "./propsContext-CauylOgH.js";
|
|
|
5
5
|
import { P as d } from "./PropsContextProvider-DZvwqHLP.js";
|
|
6
6
|
import "@react-aria/utils";
|
|
7
7
|
import "remeda";
|
|
8
|
-
import
|
|
9
|
-
import { E as
|
|
10
|
-
const
|
|
11
|
-
headerNavigation:
|
|
12
|
-
link:
|
|
13
|
-
button:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
r && n.inverse,
|
|
19
|
-
l
|
|
20
|
-
), m = {
|
|
8
|
+
import u from "clsx";
|
|
9
|
+
import { E as g } from "./EmulatedBoldText-Dtox8Wd1.js";
|
|
10
|
+
const h = "flow--header-navigation", p = "flow--header-navigation--link", v = "flow--header-navigation--button", f = "flow--header-navigation--light", E = "flow--header-navigation--dark", a = {
|
|
11
|
+
headerNavigation: h,
|
|
12
|
+
link: p,
|
|
13
|
+
button: v,
|
|
14
|
+
light: f,
|
|
15
|
+
dark: E
|
|
16
|
+
}, P = (r) => {
|
|
17
|
+
const { children: l, className: i, color: o = "primary", ...s } = r, c = u(a.headerNavigation, a[o], i), m = {
|
|
21
18
|
Link: {
|
|
22
|
-
render: (
|
|
19
|
+
render: (n, t) => /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(n, { ...t, className: a.link, unstyled: !0 }, /* @__PURE__ */ e.createElement(g, null, t.children)))
|
|
23
20
|
},
|
|
24
21
|
Button: {
|
|
25
|
-
render: (
|
|
26
|
-
|
|
22
|
+
render: (n, t) => /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(
|
|
23
|
+
n,
|
|
27
24
|
{
|
|
28
25
|
...t,
|
|
29
|
-
className:
|
|
26
|
+
className: a.button,
|
|
30
27
|
variant: "plain",
|
|
31
|
-
|
|
28
|
+
color: o
|
|
32
29
|
}
|
|
33
30
|
))
|
|
34
31
|
}
|
|
35
32
|
};
|
|
36
|
-
return /* @__PURE__ */ e.createElement("nav", { className: c, role: "navigation", ...s }, /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement(d, { props: m },
|
|
33
|
+
return /* @__PURE__ */ e.createElement("nav", { className: c, role: "navigation", ...s }, /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement(d, { props: m }, l)));
|
|
37
34
|
};
|
|
38
35
|
export {
|
|
39
36
|
P as HeaderNavigation,
|
package/dist/Heading.js
CHANGED
|
@@ -1,45 +1,49 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
3
|
+
import e from "react";
|
|
4
4
|
import m from "clsx";
|
|
5
|
-
import { C as
|
|
6
|
-
import { P as
|
|
5
|
+
import { C as f } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
|
+
import { P as g } from "./PropsContextProvider-DZvwqHLP.js";
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "./propsContext-CauylOgH.js";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import { f as p } from "./flowComponent-MjC63Rjp.js";
|
|
11
|
-
import * as
|
|
12
|
-
const
|
|
13
|
-
heading:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
import * as w from "react-aria-components";
|
|
12
|
+
const C = "flow--heading", u = "flow--heading--dark", x = "flow--heading--light", N = "flow--heading--icon", P = "flow--heading--h1", k = "flow--heading--h2", v = "flow--heading--h3", E = "flow--heading--h4", H = "flow--heading--h5", y = "flow--heading--h6", o = {
|
|
13
|
+
heading: C,
|
|
14
|
+
dark: u,
|
|
15
|
+
light: x,
|
|
16
|
+
icon: N,
|
|
17
|
+
h1: P,
|
|
18
|
+
h2: k,
|
|
19
|
+
h3: v,
|
|
20
|
+
h4: E,
|
|
21
|
+
h5: H,
|
|
22
|
+
h6: y
|
|
23
|
+
}, q = p("Heading", (a) => {
|
|
22
24
|
const {
|
|
23
|
-
children:
|
|
24
|
-
className:
|
|
25
|
+
children: r,
|
|
26
|
+
className: i,
|
|
25
27
|
level: n = 2,
|
|
26
28
|
levelVisual: t = n,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
color: s = "primary",
|
|
30
|
+
ref: h,
|
|
31
|
+
...l
|
|
32
|
+
} = a, c = m(
|
|
33
|
+
o.heading,
|
|
34
|
+
t && o[`h${t}`],
|
|
35
|
+
o[s],
|
|
36
|
+
i
|
|
37
|
+
), d = {
|
|
34
38
|
Icon: {
|
|
35
39
|
"aria-hidden": !0,
|
|
36
40
|
size: "s",
|
|
37
|
-
className:
|
|
41
|
+
className: o.icon
|
|
38
42
|
}
|
|
39
43
|
};
|
|
40
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(w.Heading, { level: n, className: c, ...l, ref: h }, /* @__PURE__ */ e.createElement(g, { props: d }, r)));
|
|
41
45
|
});
|
|
42
46
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
q as Heading,
|
|
48
|
+
q as default
|
|
45
49
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o, { useContext as d } from "react";
|
|
4
|
+
import * as w from "react-aria-components";
|
|
5
|
+
import { C as L } from "./ClearPropsContext-CeCMjUK9.js";
|
|
6
|
+
import { P } from "./PropsContextProvider-DZvwqHLP.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "./propsContext-CauylOgH.js";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import g from "clsx";
|
|
11
|
+
import { f as h } from "./flowComponent-MjC63Rjp.js";
|
|
12
|
+
import { l as y } from "./context-BlNV7smK.js";
|
|
13
|
+
const N = "flow--link", E = "flow--link--inline", F = "flow--link--icon", v = "flow--link--dark", z = "flow--link--light", n = {
|
|
14
|
+
link: N,
|
|
15
|
+
inline: E,
|
|
16
|
+
icon: F,
|
|
17
|
+
dark: v,
|
|
18
|
+
light: z
|
|
19
|
+
}, G = h("Link", (r) => {
|
|
20
|
+
const {
|
|
21
|
+
children: i,
|
|
22
|
+
className: t,
|
|
23
|
+
inline: e,
|
|
24
|
+
linkComponent: l,
|
|
25
|
+
color: s = "primary",
|
|
26
|
+
unstyled: m = !1,
|
|
27
|
+
"aria-current": a,
|
|
28
|
+
ref: c,
|
|
29
|
+
...p
|
|
30
|
+
} = r, { linkComponent: k } = d(y), f = l ?? k ?? w.Link, C = m ? t : g(n.link, e && n.inline, n[s], t), u = {
|
|
31
|
+
Icon: {
|
|
32
|
+
className: n.icon,
|
|
33
|
+
size: "s"
|
|
34
|
+
}
|
|
35
|
+
}, x = {
|
|
36
|
+
"aria-current": a
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ o.createElement(L, null, /* @__PURE__ */ o.createElement(
|
|
39
|
+
f,
|
|
40
|
+
{
|
|
41
|
+
...p,
|
|
42
|
+
...x,
|
|
43
|
+
className: C,
|
|
44
|
+
ref: c
|
|
45
|
+
},
|
|
46
|
+
/* @__PURE__ */ o.createElement(P, { props: u }, i)
|
|
47
|
+
));
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
G as L
|
|
51
|
+
};
|
package/dist/Link.js
CHANGED
package/dist/List.js
CHANGED
|
@@ -12,7 +12,7 @@ import { T as b } from "./Text-D94bUNze.js";
|
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
13
|
import "./Icon-CA9DycKJ.js";
|
|
14
14
|
import { I as $ } from "./IconChevronDown-DvDzDLHn.js";
|
|
15
|
-
import { B as h } from "./Button-
|
|
15
|
+
import { B as h } from "./Button-D59Yuz6-.js";
|
|
16
16
|
import { useMessageFormatter as H, useLocalizedStringFormatter as q } from "react-aria";
|
|
17
17
|
import K from "clsx";
|
|
18
18
|
import { I as rt } from "./IconClose-9_7oZ-l1.js";
|
|
@@ -28,7 +28,7 @@ import "./propsContext-CauylOgH.js";
|
|
|
28
28
|
import { P as bt } from "./PropsContextProvider-DZvwqHLP.js";
|
|
29
29
|
import "@react-aria/utils";
|
|
30
30
|
import { W as St } from "./Wrap-DGT1h1o3.js";
|
|
31
|
-
import { L as yt } from "./Link-
|
|
31
|
+
import { L as yt } from "./Link-TVG_Y-ZN.js";
|
|
32
32
|
import { I as Ct } from "./IconContextMenu-CdytNL-c.js";
|
|
33
33
|
import { d as f, a as M } from "./deepFindOfType-6pG0fH7S.js";
|
|
34
34
|
import { I as vt } from "./InlineCode-BV2i5uN0.js";
|