@mittwald/flow-react-components 0.1.0-alpha.132 → 0.1.0-alpha.134

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.
Files changed (139) hide show
  1. package/dist/{Accordion-C0i7OVyG.js → Accordion-rCpRbkUM.js} +5 -5
  2. package/dist/Accordion.js +1 -1
  3. package/dist/Action-Dp9FyJCZ.js +282 -0
  4. package/dist/Action.js +1 -1
  5. package/dist/ActionGroup.js +25 -25
  6. package/dist/Avatar.js +4 -4
  7. package/dist/Breadcrumb.js +21 -19
  8. package/dist/{Button-DmFXEX6m.js → Button-BPAhEOTg.js} +8 -8
  9. package/dist/Button.js +1 -1
  10. package/dist/{Checkbox-D4IUwOOm.js → Checkbox-CD6v6jqo.js} +6 -6
  11. package/dist/Checkbox.js +1 -1
  12. package/dist/{CheckboxButton-Cw_cTFPz.js → CheckboxButton-I0WYBLv2.js} +5 -5
  13. package/dist/CheckboxButton.js +1 -1
  14. package/dist/CheckboxGroup.js +5 -5
  15. package/dist/{ClearPropsContext-mes1t7Bj.js → ClearPropsContext-CUvsbMn8.js} +1 -1
  16. package/dist/{Content-Cq-QSozP.js → Content-DlB-BYko.js} +3 -3
  17. package/dist/Content.js +1 -1
  18. package/dist/ContextMenu.js +3 -3
  19. package/dist/{ContextMenuTrigger-ChPmQMpO.js → ContextMenuTrigger-BwhLrGm5.js} +15 -18
  20. package/dist/CopyButton.js +7 -7
  21. package/dist/CounterBadge.js +1 -1
  22. package/dist/FieldDescription-Brg52RqE.js +20 -0
  23. package/dist/FieldDescription.js +3 -17
  24. package/dist/{FieldError-hYSngYTh.js → FieldError-D_VRyiJG.js} +5 -5
  25. package/dist/FieldError.js +1 -1
  26. package/dist/{Header-BPe0FNKy.js → Header-BetbThNR.js} +1 -1
  27. package/dist/Header.js +1 -1
  28. package/dist/HeaderNavigation.js +23 -24
  29. package/dist/{Heading-0KJIjlox.js → Heading-CfQzGjxY.js} +4 -4
  30. package/dist/Heading.js +1 -1
  31. package/dist/{Icon-DeN4Y_a0.js → Icon-D4bkU_pz.js} +3 -3
  32. package/dist/Icon.js +1 -1
  33. package/dist/{IconCheck-Dt46vtrJ.js → IconCheck-CMWmQYpS.js} +1 -1
  34. package/dist/{IconCheckboxEmpty-DdLa3K6h.js → IconCheckboxEmpty-DQLeOSmS.js} +1 -1
  35. package/dist/{IconCheckboxIndeterminate-DZubWEXp.js → IconCheckboxIndeterminate-DoNQre-9.js} +1 -1
  36. package/dist/{IconChevronDown-DxftprRQ.js → IconChevronDown-HLDPe1kj.js} +1 -1
  37. package/dist/{IconChevronRight-BmNGIbWG.js → IconChevronRight-DmCZeDFh.js} +1 -1
  38. package/dist/IconChevronUp-CUKpaGeP.js +9 -0
  39. package/dist/{IconClose-CVvBI6H7.js → IconClose-FTrJdf_N.js} +1 -1
  40. package/dist/{IconContextMenu-BZ6cD-An.js → IconContextMenu-Bmk1_j_0.js} +1 -1
  41. package/dist/{IconCopy-DCChJuYP.js → IconCopy-DH_CNzXF.js} +1 -1
  42. package/dist/{IconDanger-l4_b7cTo.js → IconDanger-PwvUWqzQ.js} +1 -1
  43. package/dist/{IconPending-VHfFhE2m.js → IconPending-BV7TXz8_.js} +1 -1
  44. package/dist/IconPlus-CAQpgAH5.js +10 -0
  45. package/dist/{IconRadioOn-BQq4Iu7w.js → IconRadioOn-BIS8wd64.js} +1 -1
  46. package/dist/{IconSearch-BxE5ZQFN.js → IconSearch-DadOOeXe.js} +1 -1
  47. package/dist/{IconSucceeded-LyvLqe_3.js → IconSucceeded-KKiDIenP.js} +1 -1
  48. package/dist/{IconWarning-CbxAYuzB.js → IconWarning-DFG_1t6M.js} +1 -1
  49. package/dist/Icons.js +39 -38
  50. package/dist/{IllustratedMessage-D07W9uSy.js → IllustratedMessage-DadLfPs9.js} +2 -2
  51. package/dist/IllustratedMessage.js +1 -1
  52. package/dist/Image.js +3 -3
  53. package/dist/Initials.js +3 -3
  54. package/dist/InlineAlert.js +5 -5
  55. package/dist/{InlineCode-Sk5wfXAE.js → InlineCode-BT-PKxVv.js} +2 -2
  56. package/dist/InlineCode.js +1 -1
  57. package/dist/{Label-Cy_UxX3Y.js → Label-CJi7iMmE.js} +3 -3
  58. package/dist/Label.js +1 -1
  59. package/dist/LabeledValue.js +3 -3
  60. package/dist/LayoutCard.js +3 -3
  61. package/dist/{Link-B1BFyDl1.js → Link-TcBL3IVI.js} +4 -4
  62. package/dist/Link.js +1 -1
  63. package/dist/List.js +42 -43
  64. package/dist/{LoadingSpinner-DSpuNOHM.js → LoadingSpinner-CoSM7GIL.js} +2 -2
  65. package/dist/LoadingSpinner.js +1 -1
  66. package/dist/{MenuItem-BKaeRvx3.js → MenuItem-Dny58Rqq.js} +7 -7
  67. package/dist/MenuItem.js +1 -1
  68. package/dist/Modal.js +4 -4
  69. package/dist/Navigation.js +36 -34
  70. package/dist/NumberField.js +21 -20
  71. package/dist/OffCanvas.js +8 -8
  72. package/dist/OverlayTrigger-DbjMkqKf.js +20 -0
  73. package/dist/ProgressBar.js +2 -2
  74. package/dist/{PropsContextProvider-B7e3QrmR.js → PropsContextProvider-C6Z4XGp6.js} +17 -17
  75. package/dist/RadioGroup.js +8 -8
  76. package/dist/Section.js +3 -3
  77. package/dist/Select.js +44 -45
  78. package/dist/Slider.js +105 -0
  79. package/dist/StatusBadge.js +5 -5
  80. package/dist/{StatusIcon-DKPrtG-X.js → StatusIcon-Dj5p-iL1.js} +5 -5
  81. package/dist/StatusIcon.js +1 -1
  82. package/dist/Switch.js +7 -7
  83. package/dist/Tabs.js +9 -9
  84. package/dist/{Text-DlffGRII.js → Text-D6e-S6em.js} +4 -4
  85. package/dist/Text.js +1 -1
  86. package/dist/TextArea.js +4 -4
  87. package/dist/TextField.js +4 -4
  88. package/dist/TextFieldBase-CsQ97WH-.js +68 -0
  89. package/dist/flowComponent-CPKCCJEg.js +120 -0
  90. package/dist/getActionGroupSlot-izllH4ID.js +59 -0
  91. package/dist/propsContext-DzAKlmhS.js +10 -0
  92. package/dist/react-hook-form.js +10 -9
  93. package/dist/slotContext-DoCFkzCA.js +8 -0
  94. package/dist/styles.css +1 -1
  95. package/dist/types/components/Action/hooks/useActionButtonState.d.ts +4 -0
  96. package/dist/types/components/Action/hooks/useConfirmationModalButtonSlot.d.ts +3 -0
  97. package/dist/types/components/ActionGroup/ActionGroup.d.ts +1 -1
  98. package/dist/types/components/Avatar/Avatar.d.ts +1 -1
  99. package/dist/types/components/Button/Button.d.ts +1 -1
  100. package/dist/types/components/Content/Content.d.ts +1 -1
  101. package/dist/types/components/ContextMenu/ContextMenu.d.ts +1 -1
  102. package/dist/types/components/CopyButton/CopyButton.d.ts +1 -1
  103. package/dist/types/components/CounterBadge/CounterBadge.d.ts +1 -1
  104. package/dist/types/components/Header/Header.d.ts +1 -1
  105. package/dist/types/components/Link/Link.d.ts +1 -1
  106. package/dist/types/components/MenuItem/MenuItem.d.ts +1 -1
  107. package/dist/types/components/Modal/Modal.d.ts +1 -1
  108. package/dist/types/components/Section/Section.d.ts +1 -1
  109. package/dist/types/components/Slider/Slider.d.ts +9 -0
  110. package/dist/types/components/Slider/index.d.ts +4 -0
  111. package/dist/types/components/Slider/stories/Default.stories.d.ts +10 -0
  112. package/dist/types/components/TextArea/stories/Default.stories.d.ts +1 -0
  113. package/dist/types/components/TextField/stories/Default.stories.d.ts +1 -0
  114. package/dist/types/components/TextFieldBase/TextFieldBase.d.ts +1 -0
  115. package/dist/types/components/propTypes/index.d.ts +3 -1
  116. package/dist/types/lib/componentFactory/flowComponent.d.ts +6 -4
  117. package/dist/types/lib/propsContext/propsContext.d.ts +4 -2
  118. package/dist/types/lib/slotContext/SlotContextProvider.d.ts +9 -0
  119. package/dist/types/lib/slotContext/slotContext.d.ts +44 -0
  120. package/dist/types/lib/slotContext/types.d.ts +5 -0
  121. package/dist/types/lib/slotContext/useContextSlot.d.ts +4 -0
  122. package/dist/types/lib/types/props.d.ts +1 -4
  123. package/package.json +9 -5
  124. package/dist/Action-COYULIMl.js +0 -307
  125. package/dist/ActionStateContext-C_nPivaA.js +0 -55
  126. package/dist/ComponentRenderContextProvider-C-1_ziLI.js +0 -29
  127. package/dist/IconPlus-jiiIPCCu.js +0 -11
  128. package/dist/OverlayTrigger-Bb8cs_IA.js +0 -21
  129. package/dist/TextFieldBase-CQ8ddfp_.js +0 -32
  130. package/dist/context-D_-mRqs8.js +0 -8
  131. package/dist/flowComponent-DahHhlnC.js +0 -125
  132. package/dist/getActionGroupSlot-B4Vu4Kix.js +0 -9
  133. package/dist/types/components/Action/components/ActionButton.d.ts +0 -4
  134. package/dist/types/components/Action/components/ActionComponentsRenderContext.d.ts +0 -3
  135. package/dist/types/components/Action/components/ActionLink.d.ts +0 -4
  136. package/dist/types/components/Action/components/ActionModal.d.ts +0 -4
  137. package/dist/types/components/Action/components/ModalActionButton.d.ts +0 -4
  138. package/dist/types/lib/propsContext/render/ComponentRenderContextProvider.d.ts +0 -18
  139. package/dist/types/lib/propsContext/render/useComponentRenderFn.d.ts +0 -8
@@ -2,8 +2,8 @@
2
2
  /* */
3
3
  import t from "react";
4
4
  import s from "clsx";
5
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
6
- import { P as m } from "./PropsContextProvider-B7e3QrmR.js";
5
+ import "./propsContext-DzAKlmhS.js";
6
+ import { P as m } from "./PropsContextProvider-C6Z4XGp6.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  const d = "flow--illustrated-message--illustrated-message-container", g = "flow--illustrated-message", u = "flow--illustrated-message--icon", p = "flow--illustrated-message--heading", f = "flow--illustrated-message--text", x = "flow--illustrated-message--button", N = "flow--illustrated-message--negative", e = {
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { I as e } from "./IllustratedMessage-D07W9uSy.js";
3
+ import { I as e } from "./IllustratedMessage-DadLfPs9.js";
4
4
  export {
5
5
  e as IllustratedMessage,
6
6
  e as default
package/dist/Image.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client"
2
2
  /* */
3
3
  import r from "react";
4
- import { C as m } from "./ClearPropsContext-mes1t7Bj.js";
5
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
4
+ import { C as m } from "./ClearPropsContext-CUvsbMn8.js";
5
+ import "./propsContext-DzAKlmhS.js";
6
6
  import "@react-aria/utils";
7
7
  import "remeda";
8
8
  import "dot-prop";
9
- import { f as p } from "./flowComponent-DahHhlnC.js";
9
+ import { f as p } from "./flowComponent-CPKCCJEg.js";
10
10
  const C = p("Image", (t) => {
11
11
  const { refProp: e, ...o } = t;
12
12
  return /* @__PURE__ */ r.createElement(m, null, /* @__PURE__ */ r.createElement("img", { ...o, ref: e }));
package/dist/Initials.js CHANGED
@@ -2,13 +2,13 @@
2
2
  /* */
3
3
  import e from "react";
4
4
  import c from "clsx";
5
- import { C as f } from "./ClearPropsContext-mes1t7Bj.js";
6
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
5
+ import { C as f } from "./ClearPropsContext-CUvsbMn8.js";
6
+ import "./propsContext-DzAKlmhS.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import "dot-prop";
10
10
  import { onlyText as C } from "react-children-utilities";
11
- import { f as u } from "./flowComponent-DahHhlnC.js";
11
+ import { f as u } from "./flowComponent-CPKCCJEg.js";
12
12
  const x = (i) => i.replace(/[^\p{L}\s]/giu, "").split(" ").map((t) => t.trim()[0]).filter((t) => t !== void 0).map((t) => t.toUpperCase()).slice(0, 2), d = "flow--initials", E = {
13
13
  initials: d
14
14
  }, k = u("Initials", (i) => {
@@ -1,14 +1,14 @@
1
1
  "use client"
2
2
  /* */
3
3
  import e from "react";
4
- import { C as m } from "./ClearPropsContext-mes1t7Bj.js";
5
- import { P as f } from "./PropsContextProvider-B7e3QrmR.js";
4
+ import { C as m } from "./ClearPropsContext-CUvsbMn8.js";
5
+ import { P as f } from "./PropsContextProvider-C6Z4XGp6.js";
6
6
  import "@react-aria/utils";
7
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
7
+ import "./propsContext-DzAKlmhS.js";
8
8
  import "remeda";
9
9
  import p from "clsx";
10
- import { S as u } from "./StatusIcon-DKPrtG-X.js";
11
- import { f as d } from "./flowComponent-DahHhlnC.js";
10
+ import { S as u } from "./StatusIcon-Dj5p-iL1.js";
11
+ import { f as d } from "./flowComponent-CPKCCJEg.js";
12
12
  const w = "flow--inline-alert", g = "flow--inline-alert--status-icon", C = "flow--inline-alert--heading", I = "flow--inline-alert--content", N = "flow--inline-alert--info", h = "flow--inline-alert--warning", x = "flow--inline-alert--danger", A = "flow--inline-alert--success", n = {
13
13
  inlineAlert: w,
14
14
  statusIcon: g,
@@ -2,8 +2,8 @@
2
2
  /* */
3
3
  import e from "react";
4
4
  import i from "clsx";
5
- import { C as l } from "./ClearPropsContext-mes1t7Bj.js";
6
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
5
+ import { C as l } from "./ClearPropsContext-CUvsbMn8.js";
6
+ import "./propsContext-DzAKlmhS.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import "dot-prop";
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { I as o } from "./InlineCode-Sk5wfXAE.js";
3
+ import { I as o } from "./InlineCode-BT-PKxVv.js";
4
4
  export {
5
5
  o as InlineCode,
6
6
  o as default
@@ -3,13 +3,13 @@
3
3
  import t from "react";
4
4
  import * as c from "react-aria-components";
5
5
  import f from "clsx";
6
- import { C as b } from "./ClearPropsContext-mes1t7Bj.js";
7
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
6
+ import { C as b } from "./ClearPropsContext-CUvsbMn8.js";
7
+ import "./propsContext-DzAKlmhS.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
10
  import "dot-prop";
11
11
  import { useLocalizedStringFormatter as C } from "react-aria";
12
- import { f as L } from "./flowComponent-DahHhlnC.js";
12
+ import { f as L } from "./flowComponent-CPKCCJEg.js";
13
13
  const d = "flow--label", u = {
14
14
  label: d
15
15
  }, E = {
package/dist/Label.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { L as e } from "./Label-Cy_UxX3Y.js";
3
+ import { L as e } from "./Label-CJi7iMmE.js";
4
4
  export {
5
5
  e as Label,
6
6
  e as default
@@ -2,10 +2,10 @@
2
2
  /* */
3
3
  import l from "react";
4
4
  import r from "clsx";
5
- import { C as m } from "./ClearPropsContext-mes1t7Bj.js";
6
- import { P as c } from "./PropsContextProvider-B7e3QrmR.js";
5
+ import { C as m } from "./ClearPropsContext-CUvsbMn8.js";
6
+ import { P as c } from "./PropsContextProvider-C6Z4XGp6.js";
7
7
  import "@react-aria/utils";
8
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
8
+ import "./propsContext-DzAKlmhS.js";
9
9
  import "remeda";
10
10
  const b = "flow--labeled-value", p = "flow--labeled-value--button", u = "flow--labeled-value--label", e = {
11
11
  labeledValue: b,
@@ -2,9 +2,9 @@
2
2
  /* */
3
3
  import t from "react";
4
4
  import d from "clsx";
5
- import { f } from "./flowComponent-DahHhlnC.js";
6
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
7
- import { P as i } from "./PropsContextProvider-B7e3QrmR.js";
5
+ import { f } from "./flowComponent-CPKCCJEg.js";
6
+ import "./propsContext-DzAKlmhS.js";
7
+ import { P as i } from "./PropsContextProvider-C6Z4XGp6.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
10
  const u = "flow--layout-card", y = "flow--layout-card--tabs", o = {
@@ -2,13 +2,13 @@
2
2
  /* */
3
3
  import o, { useContext as d } from "react";
4
4
  import * as P from "react-aria-components";
5
- import { C as w } from "./ClearPropsContext-mes1t7Bj.js";
6
- import { P as L } from "./PropsContextProvider-B7e3QrmR.js";
5
+ import { C as w } from "./ClearPropsContext-CUvsbMn8.js";
6
+ import { P as L } from "./PropsContextProvider-C6Z4XGp6.js";
7
7
  import "@react-aria/utils";
8
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
8
+ import "./propsContext-DzAKlmhS.js";
9
9
  import "remeda";
10
10
  import g from "clsx";
11
- import { f as h } from "./flowComponent-DahHhlnC.js";
11
+ import { f as h } from "./flowComponent-CPKCCJEg.js";
12
12
  import { l as y } from "./context-BlNV7smK.js";
13
13
  const N = "flow--link", E = "flow--link--inline", F = "flow--link--icon", v = "flow--link--dark", z = "flow--link--light", n = {
14
14
  link: N,
package/dist/Link.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { L as o } from "./Link-B1BFyDl1.js";
3
+ import { L as o } from "./Link-TcBL3IVI.js";
4
4
  export {
5
5
  o as Link,
6
6
  o as default
package/dist/List.js CHANGED
@@ -5,42 +5,40 @@ var et = (i, t, e) => t in i ? tt(i, t, { enumerable: !0, configurable: !0, writ
5
5
  var o = (i, t, e) => (et(i, typeof t != "symbol" ? t + "" : t, e), e);
6
6
  import s, { createContext as at, useContext as st, createElement as nt, useEffect as I, useRef as it, Suspense as rt } from "react";
7
7
  import { R as ot } from "./Render-BdlTa7Qb.js";
8
- import { C as q, a as lt } from "./ContextMenuTrigger-ChPmQMpO.js";
9
- import { M as K } from "./MenuItem-BKaeRvx3.js";
8
+ import { C as q, a as lt } from "./ContextMenuTrigger-BwhLrGm5.js";
9
+ import { M as K } from "./MenuItem-Dny58Rqq.js";
10
10
  import * as j from "react-aria-components";
11
11
  import { autorun as ct, runInAction as ut, makeObservable as mt, observable as N, computed as R, action as C } from "mobx";
12
12
  import "./useOverlayController-CGKumeGL.js";
13
- import J from "invariant";
14
- import "./context-D_-mRqs8.js";
15
- import "./ActionStateContext-C_nPivaA.js";
16
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
13
+ import "./propsContext-DzAKlmhS.js";
17
14
  import "@react-aria/utils";
18
15
  import { times as dt } from "remeda";
19
16
  import { getProperty as ht } from "dot-prop";
20
- import { T as y } from "./Text-DlffGRII.js";
17
+ import { T as y } from "./Text-D6e-S6em.js";
21
18
  import "@tabler/icons-react";
22
- import "./Icon-DeN4Y_a0.js";
23
- import { I as Y } from "./IconChevronDown-DxftprRQ.js";
24
- import { B as g } from "./Button-DmFXEX6m.js";
25
- import { useMessageFormatter as G, useLocalizedStringFormatter as L } from "react-aria";
26
- import Q from "clsx";
27
- import { I as gt } from "./IconClose-CVvBI6H7.js";
19
+ import "./Icon-D4bkU_pz.js";
20
+ import { I as J } from "./IconChevronDown-HLDPe1kj.js";
21
+ import { B as g } from "./Button-BPAhEOTg.js";
22
+ import { useMessageFormatter as W, useLocalizedStringFormatter as L } from "react-aria";
23
+ import Y from "clsx";
24
+ import { I as gt } from "./IconClose-FTrJdf_N.js";
28
25
  import { useReactTable as pt, getCoreRowModel as ft, getSortedRowModel as bt, getFilteredRowModel as St, getPaginationRowModel as yt, getFacetedUniqueValues as vt } from "@tanstack/react-table";
26
+ import G from "invariant";
29
27
  import { useLocalObservable as Et } from "mobx-react-lite";
30
28
  import { getAsyncResource as V } from "@mittwald/react-use-promise";
31
29
  import { u as x } from "./useSelector-DpU7_HMO.js";
32
- import { I as Ct } from "./IllustratedMessage-D07W9uSy.js";
33
- import { I as It } from "./IconSearch-BxE5ZQFN.js";
34
- import { H as Ft } from "./Heading-0KJIjlox.js";
35
- import { S as W } from "./Skeleton-CKLaTmDR.js";
36
- import { P as Tt } from "./PropsContextProvider-B7e3QrmR.js";
30
+ import { I as Ct } from "./IllustratedMessage-DadLfPs9.js";
31
+ import { I as It } from "./IconSearch-DadOOeXe.js";
32
+ import { H as Ft } from "./Heading-CfQzGjxY.js";
33
+ import { S as Q } from "./Skeleton-CKLaTmDR.js";
34
+ import { P as Tt } from "./PropsContextProvider-C6Z4XGp6.js";
37
35
  import { d as Lt } from "./dynamic-ClpUSmEt.js";
38
- import { I as wt } from "./IconContextMenu-BZ6cD-An.js";
36
+ import { I as wt } from "./IconContextMenu-Bmk1_j_0.js";
39
37
  import { TunnelProvider as Bt, TunnelExit as z } from "@mittwald/react-tunnel";
40
- import { L as At } from "./Link-B1BFyDl1.js";
38
+ import { L as At } from "./Link-TcBL3IVI.js";
41
39
  import { d as E, a as O } from "./deepFindOfType-6pG0fH7S.js";
42
40
  import { ListLoaderAsyncResource as kt } from "./List/ListLoaderAsyncResource.js";
43
- import { I as Dt } from "./InlineCode-Sk5wfXAE.js";
41
+ import { I as Dt } from "./InlineCode-BT-PKxVv.js";
44
42
  import "react-children-utilities";
45
43
  const X = at({}), h = () => st(X).list, Mt = () => h().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ s.createElement(ot, { key: e }, () => {
46
44
  t();
@@ -72,7 +70,7 @@ const X = at({}), h = () => st(X).list, Mt = () => h().loader.getLoaderInvocatio
72
70
  }
73
71
  }, F = (i) => {
74
72
  const { children: t, locales: e, variables: a } = i;
75
- return G(e)(t, a);
73
+ return W(e)(t, a);
76
74
  }, Nt = () => {
77
75
  const i = h(), t = i.sorting.map((n) => /* @__PURE__ */ s.createElement(Pt, { sorting: n, key: n.getTableColumn().id }));
78
76
  if (i.sorting.length === 0)
@@ -87,7 +85,7 @@ const X = at({}), h = () => st(X).list, Mt = () => h().loader.getLoaderInvocatio
87
85
  },
88
86
  "list.setSorting"
89
87
  ) : /* @__PURE__ */ s.createElement(F, { locales: d }, "list.sorting"));
90
- return /* @__PURE__ */ s.createElement(j.MenuTrigger, null, /* @__PURE__ */ s.createElement(g, { variant: "soft", size: "s", color: "secondary" }, a, /* @__PURE__ */ s.createElement(Y, null)), /* @__PURE__ */ s.createElement(
88
+ return /* @__PURE__ */ s.createElement(j.MenuTrigger, null, /* @__PURE__ */ s.createElement(g, { variant: "soft", size: "s", color: "secondary" }, a, /* @__PURE__ */ s.createElement(J, null)), /* @__PURE__ */ s.createElement(
91
89
  q,
92
90
  {
93
91
  selectionMode: "single",
@@ -102,7 +100,7 @@ const X = at({}), h = () => st(X).list, Mt = () => h().loader.getLoaderInvocatio
102
100
  const { filter: t } = i, e = t.values.map((r) => /* @__PURE__ */ s.createElement(K, { key: t.getValueId(r), id: String(r) }, String(r))), a = t.values.filter((r) => t.isValueActive(r)).map((r) => String(r)), n = (r) => {
103
101
  t.toggleValue(r);
104
102
  };
105
- return /* @__PURE__ */ s.createElement(j.MenuTrigger, null, /* @__PURE__ */ s.createElement(g, { variant: "soft", size: "s", color: "secondary" }, /* @__PURE__ */ s.createElement(y, null, t.name ?? t.property), /* @__PURE__ */ s.createElement(Y, null)), /* @__PURE__ */ s.createElement(
103
+ return /* @__PURE__ */ s.createElement(j.MenuTrigger, null, /* @__PURE__ */ s.createElement(g, { variant: "soft", size: "s", color: "secondary" }, /* @__PURE__ */ s.createElement(y, null, t.name ?? t.property), /* @__PURE__ */ s.createElement(J, null)), /* @__PURE__ */ s.createElement(
106
104
  q,
107
105
  {
108
106
  onAction: n,
@@ -143,7 +141,7 @@ const X = at({}), h = () => st(X).list, Mt = () => h().loader.getLoaderInvocatio
143
141
  ));
144
142
  }, $t = (i) => {
145
143
  const { className: t } = i, a = h().filters.map((n) => /* @__PURE__ */ s.createElement(Rt, { key: n.property, filter: n }));
146
- return /* @__PURE__ */ s.createElement("div", { className: Q(t, U.header) }, /* @__PURE__ */ s.createElement("div", { className: U.pickerList }, /* @__PURE__ */ s.createElement(Nt, null), a), /* @__PURE__ */ s.createElement(Ut, null));
144
+ return /* @__PURE__ */ s.createElement("div", { className: Y(t, U.header) }, /* @__PURE__ */ s.createElement("div", { className: U.pickerList }, /* @__PURE__ */ s.createElement(Nt, null), a), /* @__PURE__ */ s.createElement(Ut, null));
147
145
  }, Ht = "flow--list", qt = {
148
146
  list: Ht
149
147
  }, S = class S {
@@ -306,7 +304,7 @@ class Jt {
306
304
  this.onFilterUpdateCallbacks.add(t);
307
305
  }
308
306
  }
309
- class Yt {
307
+ class Wt {
310
308
  constructor(t, e) {
311
309
  o(this, "list");
312
310
  o(this, "property");
@@ -331,7 +329,7 @@ class Yt {
331
329
  this.list.reactTable.getTableColumn(this.property).clearSorting();
332
330
  }
333
331
  }
334
- const Gt = (i) => I(ct(i));
332
+ const Yt = (i) => I(ct(i));
335
333
  class B {
336
334
  constructor(t, e = {}) {
337
335
  o(this, "list");
@@ -375,7 +373,7 @@ class B {
375
373
  return this.useUpdateTableState(n), n;
376
374
  }
377
375
  useUpdateTableState(t) {
378
- Gt(() => {
376
+ Yt(() => {
379
377
  const e = this.tableState.value;
380
378
  e ? t.setOptions((a) => ({
381
379
  ...a,
@@ -388,7 +386,7 @@ class B {
388
386
  }
389
387
  getTableColumn(t) {
390
388
  const e = this.table.getColumn(t);
391
- return J(!!e, `Column #${t} is not defined`), e;
389
+ return G(!!e, `Column #${t} is not defined`), e;
392
390
  }
393
391
  getTableColumnDefs() {
394
392
  const t = /* @__PURE__ */ new Map(), e = (a) => {
@@ -450,7 +448,7 @@ class A {
450
448
  return x(() => this.isLoading);
451
449
  }
452
450
  }
453
- const Qt = [];
451
+ const Gt = [];
454
452
  class k {
455
453
  constructor(t, e = {}) {
456
454
  o(this, "list");
@@ -460,7 +458,7 @@ class k {
460
458
  o(this, "manualPagination");
461
459
  o(this, "loaderState");
462
460
  const { source: a } = e;
463
- this.dataSource = a ?? { staticData: Qt };
461
+ this.dataSource = a ?? { staticData: Gt };
464
462
  const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, r = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, l = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
465
463
  this.list = t, this.loaderState = A.useNew(), this.manualPagination = n ?? !1, this.manualFiltering = r ?? this.manualPagination, this.manualSorting = l ?? this.manualPagination, this.list.filters.forEach((u) => u.onFilterUpdated(() => this.reset()));
466
464
  }
@@ -547,7 +545,7 @@ class k {
547
545
  throw new Error("Unknown data source");
548
546
  }
549
547
  }
550
- let Wt = class Z {
548
+ let Qt = class Z {
551
549
  constructor(t) {
552
550
  o(this, "filters");
553
551
  o(this, "sorting");
@@ -557,7 +555,7 @@ let Wt = class Z {
557
555
  o(this, "batches");
558
556
  o(this, "loader");
559
557
  const { render: e, filters: a = [], sorting: n = [], batchesController: r } = t;
560
- this.render = e, this.items = w.useNew(this), this.filters = a.map((l) => new Jt(this, l)), this.sorting = n.map((l) => new Yt(this, l)), this.batches = new Kt(this, r), this.loader = k.useNew(this, t.loader), this.reactTable = B.useNew(this, {
558
+ this.render = e, this.items = w.useNew(this), this.filters = a.map((l) => new Jt(this, l)), this.sorting = n.map((l) => new Wt(this, l)), this.batches = new Kt(this, r), this.loader = k.useNew(this, t.loader), this.reactTable = B.useNew(this, {
561
559
  manualFiltering: this.loader.manualFiltering,
562
560
  manualPagination: this.loader.manualPagination,
563
561
  manualSorting: this.loader.manualSorting
@@ -571,7 +569,7 @@ let Wt = class Z {
571
569
  }
572
570
  getSorting(t) {
573
571
  const e = this.sorting.find((a) => a.property === t);
574
- return J(!!e, `Could not get Sorting (property: ${t})`), e;
572
+ return G(!!e, `Could not get Sorting (property: ${t})`), e;
575
573
  }
576
574
  clearSorting() {
577
575
  return this.sorting.forEach((t) => t.clear());
@@ -610,7 +608,8 @@ const Xt = "flow--list--items--item-list", Zt = "flow--list--items--is-loading",
610
608
  }, ce = (i) => i === "top" ? c.topContent : i === "bottom" ? c.content : c.topContent, _ = (i) => {
611
609
  const { children: t, href: e, ...a } = i, n = {
612
610
  ContextMenu: {
613
- render: (l, u) => /* @__PURE__ */ s.createElement(le, { className: c.action }, /* @__PURE__ */ s.createElement(l, { ...u, placement: "bottom end" }))
611
+ wrapWith: /* @__PURE__ */ s.createElement(le, { className: c.action }),
612
+ placement: "bottom end"
614
613
  },
615
614
  Button: {
616
615
  className: c.action
@@ -641,8 +640,8 @@ const Xt = "flow--list--items--item-list", Zt = "flow--list--items--is-loading",
641
640
  }
642
641
  }, r = (l) => e ? /* @__PURE__ */ s.createElement(At, { unstyled: !0, ...a, className: c.item, href: e }, l.children) : /* @__PURE__ */ s.createElement("div", { className: c.item }, l.children);
643
642
  return /* @__PURE__ */ s.createElement(r, null, /* @__PURE__ */ s.createElement(Tt, { props: n }, /* @__PURE__ */ s.createElement(Bt, null, t, /* @__PURE__ */ s.createElement("div", { className: c.title }, /* @__PURE__ */ s.createElement(z, { id: "title" })), /* @__PURE__ */ s.createElement(z, { id: "topContent" }))));
644
- }, b = () => /* @__PURE__ */ s.createElement(_, null, /* @__PURE__ */ s.createElement(W, { height: "3rem" })), ue = (i) => {
645
- const { className: t } = i, e = h(), a = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading(), r = e.useIsEmpty(), l = L(d), u = e.items.entries.map((m) => /* @__PURE__ */ s.createElement(rt, { key: m.id }, m.render())), p = Q(
643
+ }, b = () => /* @__PURE__ */ s.createElement(_, null, /* @__PURE__ */ s.createElement(Q, { height: "3rem" })), ue = (i) => {
644
+ const { className: t } = i, e = h(), a = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading(), r = e.useIsEmpty(), l = L(d), u = e.items.entries.map((m) => /* @__PURE__ */ s.createElement(rt, { key: m.id }, m.render())), p = Y(
646
645
  H.itemList,
647
646
  t,
648
647
  a && H.isLoading
@@ -667,10 +666,10 @@ function fe(i) {
667
666
  const be = "flow--list--footer", Se = {
668
667
  footer: be
669
668
  }, ye = (i) => {
670
- const t = G(d), e = h(), a = e.batches, n = e.isFiltered() && !e.loader.manualFiltering, r = e.loader.useIsInitiallyLoading(), l = e.useIsEmpty(), u = a.getTotalItemsCount(), p = a.getFilteredItemsCount(), m = a.getVisibleItemsCount();
669
+ const t = W(d), e = h(), a = e.batches, n = e.isFiltered() && !e.loader.manualFiltering, r = e.loader.useIsInitiallyLoading(), l = e.useIsEmpty(), u = a.getTotalItemsCount(), p = a.getFilteredItemsCount(), m = a.getVisibleItemsCount();
671
670
  if (l)
672
671
  return null;
673
- const v = r ? /* @__PURE__ */ s.createElement(W, { width: "200px" }) : n ? t("list.paginationInfoFiltered", {
672
+ const v = r ? /* @__PURE__ */ s.createElement(Q, { width: "200px" }) : n ? t("list.paginationInfoFiltered", {
674
673
  visibleItemsCount: m,
675
674
  filteredItemsCount: p,
676
675
  totalItemsCount: u
@@ -694,7 +693,7 @@ const be = "flow--list--footer", Se = {
694
693
  t.format("list.showMore")
695
694
  );
696
695
  }, Ee = () => /* @__PURE__ */ s.createElement("div", { className: Se.footer }, /* @__PURE__ */ s.createElement(ye, null), /* @__PURE__ */ s.createElement(ve, null)), Ce = (i) => /* @__PURE__ */ s.createElement(_, null, /* @__PURE__ */ s.createElement(Dt, null, JSON.stringify(i.data)));
697
- function la(i) {
696
+ function ra(i) {
698
697
  var v, D, M, P;
699
698
  const { children: t, batchSize: e, ...a } = i, n = (v = E(t, de)) == null ? void 0 : v.props, r = (D = E(
700
699
  t,
@@ -709,7 +708,7 @@ function la(i) {
709
708
  } : l ? {
710
709
  staticData: l.data
711
710
  } : void 0
712
- }, p = (f) => /* @__PURE__ */ s.createElement(Ce, { data: f }), m = Wt.useNew({
711
+ }, p = (f) => /* @__PURE__ */ s.createElement(Ce, { data: f }), m = Qt.useNew({
713
712
  loader: u,
714
713
  filters: O(t, he).map((f) => f.props),
715
714
  sorting: O(t, ge).map((f) => f.props),
@@ -731,12 +730,12 @@ function la(i) {
731
730
  );
732
731
  }
733
732
  export {
734
- la as List,
733
+ ra as List,
735
734
  he as ListFilter,
736
735
  _ as ListItem,
737
736
  pe as ListItemView,
738
737
  de as ListLoaderAsync,
739
738
  ge as ListSorting,
740
739
  fe as ListStaticData,
741
- la as default
740
+ ra as default
742
741
  };
@@ -2,8 +2,8 @@
2
2
  /* */
3
3
  import r from "react";
4
4
  import "@tabler/icons-react";
5
- import "./Icon-DeN4Y_a0.js";
6
- import { I as e } from "./IconPending-VHfFhE2m.js";
5
+ import "./Icon-D4bkU_pz.js";
6
+ import { I as e } from "./IconPending-BV7TXz8_.js";
7
7
  import t from "clsx";
8
8
  const a = "flow--loading-spinner", p = "flow--loading-spinner--spin", l = {
9
9
  loadingSpinner: a,
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { L as o } from "./LoadingSpinner-DSpuNOHM.js";
3
+ import { L as o } from "./LoadingSpinner-CoSM7GIL.js";
4
4
  export {
5
5
  o as LoadingSpinner,
6
6
  o as default
@@ -3,18 +3,18 @@
3
3
  import e from "react";
4
4
  import * as I from "react-aria-components";
5
5
  import f from "clsx";
6
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
7
- import { P as i } from "./PropsContextProvider-B7e3QrmR.js";
6
+ import "./propsContext-DzAKlmhS.js";
7
+ import { P as i } from "./PropsContextProvider-C6Z4XGp6.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
10
  import "@tabler/icons-react";
11
- import "./Icon-DeN4Y_a0.js";
12
- import { I as x, a as d } from "./IconCheckboxEmpty-DdLa3K6h.js";
13
- import { I as E, a as C } from "./IconRadioOn-BQq4Iu7w.js";
14
- import { T as p } from "./Text-DlffGRII.js";
11
+ import "./Icon-D4bkU_pz.js";
12
+ import { I as x, a as d } from "./IconCheckboxEmpty-DQLeOSmS.js";
13
+ import { I as E, a as C } from "./IconRadioOn-BIS8wd64.js";
14
+ import { T as p } from "./Text-D6e-S6em.js";
15
15
  import { d as h } from "./deepFindOfType-6pG0fH7S.js";
16
16
  import { W as M } from "./Wrap-DGT1h1o3.js";
17
- import { f as N } from "./flowComponent-DahHhlnC.js";
17
+ import { f as N } from "./flowComponent-CPKCCJEg.js";
18
18
  const w = "flow--menu-item", P = "flow--menu-item--icon", T = "flow--menu-item--text", g = "flow--menu-item--control-icon", c = {
19
19
  menuItem: w,
20
20
  icon: P,
package/dist/MenuItem.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { M as t } from "./MenuItem-BKaeRvx3.js";
3
+ import { M as t } from "./MenuItem-Dny58Rqq.js";
4
4
  export {
5
5
  t as MenuItem,
6
6
  t as default
package/dist/Modal.js CHANGED
@@ -2,15 +2,15 @@
2
2
  /* */
3
3
  import o from "react";
4
4
  import d from "clsx";
5
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
6
- import { P as c } from "./PropsContextProvider-B7e3QrmR.js";
5
+ import "./propsContext-DzAKlmhS.js";
6
+ import { P as c } from "./PropsContextProvider-C6Z4XGp6.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import { TunnelProvider as f, TunnelExit as p } from "@mittwald/react-tunnel";
10
- import { f as u } from "./flowComponent-DahHhlnC.js";
10
+ import { f as u } from "./flowComponent-CPKCCJEg.js";
11
11
  import { M as g } from "./ModalOverlay-BSu4UEnW.js";
12
12
  import * as v from "react-aria-components";
13
- import { O as w } from "./OverlayTrigger-Bb8cs_IA.js";
13
+ import { O as w } from "./OverlayTrigger-DbjMkqKf.js";
14
14
  const z = "flow--modal", C = "flow--modal--action-group", E = "flow--modal--content", x = "flow--modal--off-canvas", e = {
15
15
  modal: z,
16
16
  "modal-zoom": "flow--modal--modal-zoom",
@@ -1,61 +1,63 @@
1
1
  "use client"
2
2
  /* */
3
- import e, { useId as v } from "react";
4
- import g from "clsx";
5
- import { d as E } from "./deepFindOfType-6pG0fH7S.js";
6
- import { W as x } from "./Wrap-DGT1h1o3.js";
7
- import "./ComponentRenderContextProvider-C-1_ziLI.js";
8
- import { P as i } from "./PropsContextProvider-B7e3QrmR.js";
3
+ import e, { useId as f } from "react";
4
+ import d from "clsx";
5
+ import { d as v } from "./deepFindOfType-6pG0fH7S.js";
6
+ import { W as E } from "./Wrap-DGT1h1o3.js";
7
+ import "./propsContext-DzAKlmhS.js";
8
+ import { P as l } from "./PropsContextProvider-C6Z4XGp6.js";
9
9
  import "@react-aria/utils";
10
10
  import "remeda";
11
11
  import { TunnelProvider as u, TunnelExit as p } from "@mittwald/react-tunnel";
12
- import { A as N } from "./Accordion-C0i7OVyG.js";
13
- import { C } from "./Content-Cq-QSozP.js";
14
- const b = "flow--navigation", I = "flow--navigation--item", P = "flow--navigation--icon", w = "flow--navigation--text", k = "flow--navigation--control-icon", l = {
15
- navigation: b,
12
+ import { A as x } from "./Accordion-rCpRbkUM.js";
13
+ import { C as N } from "./Content-DlB-BYko.js";
14
+ const C = "flow--navigation", I = "flow--navigation--item", b = "flow--navigation--icon", P = "flow--navigation--text", w = "flow--navigation--control-icon", r = {
15
+ navigation: C,
16
16
  item: I,
17
- icon: P,
18
- text: w,
19
- controlIcon: k
20
- }, B = (s) => {
21
- const { className: n, children: o, ...c } = s, m = g(l.navigation, n), a = !!E(o, h), r = {
17
+ icon: b,
18
+ text: P,
19
+ controlIcon: w
20
+ }, z = (i) => {
21
+ const { className: t, children: n, ...s } = i, c = d(r.navigation, t), o = !!v(n, y), a = {
22
22
  Link: {
23
- render: (t, f) => /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(t, { ...f, className: l.item, unstyled: !0 })),
23
+ wrapWith: /* @__PURE__ */ e.createElement("li", null),
24
+ className: r.item,
25
+ unstyled: !0,
24
26
  Text: {
25
- className: l.text
27
+ className: r.text
26
28
  },
27
29
  Icon: {
28
- className: l.icon
30
+ className: r.icon
29
31
  }
30
32
  }
31
33
  };
32
- return /* @__PURE__ */ e.createElement("nav", { className: m, role: "navigation", ...c }, /* @__PURE__ */ e.createElement(i, { props: r }, /* @__PURE__ */ e.createElement(x, { if: !a }, /* @__PURE__ */ e.createElement("ul", null, o))));
33
- }, y = "flow--navigation--navigation-group", G = "flow--navigation--navigation-group--label", d = {
34
- navigationGroup: y,
35
- label: G
36
- }, h = (s) => {
37
- const { children: n, className: o, collapsable: c, ...m } = s, a = g(d.navigationGroup, o), r = v(), t = {
34
+ return /* @__PURE__ */ e.createElement("nav", { className: c, role: "navigation", ...s }, /* @__PURE__ */ e.createElement(l, { props: a, mergeInParentContext: !0 }, /* @__PURE__ */ e.createElement(E, { if: !o }, /* @__PURE__ */ e.createElement("ul", null, n))));
35
+ }, h = "flow--navigation--navigation-group", k = "flow--navigation--navigation-group--label", g = {
36
+ navigationGroup: h,
37
+ label: k
38
+ }, y = (i) => {
39
+ const { children: t, className: n, collapsable: s, ...c } = i, o = d(g.navigationGroup, n), a = f(), m = {
38
40
  Label: {
39
- id: r,
40
- className: d.label,
41
+ id: a,
42
+ className: g.label,
41
43
  "aria-hidden": !0
42
44
  },
43
45
  Link: {
44
46
  tunnelId: "links"
45
47
  }
46
48
  };
47
- return c ? /* @__PURE__ */ e.createElement(i, { mergeInParentContext: !0, props: t }, /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement(N, { defaultExpanded: !0, className: a }, n, /* @__PURE__ */ e.createElement(C, { clearPropsContext: !1 }, /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement(p, { id: "links" })))))) : /* @__PURE__ */ e.createElement(i, { mergeInParentContext: !0, props: t }, /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement(
49
+ return s ? /* @__PURE__ */ e.createElement(l, { mergeInParentContext: !0, props: m }, /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement(x, { defaultExpanded: !0, className: o }, t, /* @__PURE__ */ e.createElement(N, { clearPropsContext: !1 }, /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement(p, { id: "links" })))))) : /* @__PURE__ */ e.createElement(l, { mergeInParentContext: !0, props: m }, /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement(
48
50
  "section",
49
51
  {
50
- "aria-labelledby": r,
51
- className: a,
52
- ...m
52
+ "aria-labelledby": a,
53
+ className: o,
54
+ ...c
53
55
  },
54
- /* @__PURE__ */ e.createElement(i, { mergeInParentContext: !0, props: t }, n, /* @__PURE__ */ e.createElement(p, { id: "Label" }), /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement(p, { id: "links" })))
56
+ /* @__PURE__ */ e.createElement(l, { mergeInParentContext: !0, props: m }, t, /* @__PURE__ */ e.createElement(p, { id: "Label" }), /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement(p, { id: "links" })))
55
57
  )));
56
58
  };
57
59
  export {
58
- B as Navigation,
59
- h as NavigationGroup,
60
- B as default
60
+ z as Navigation,
61
+ y as NavigationGroup,
62
+ z as default
61
63
  };