@mittwald/flow-react-components 0.1.0-alpha.172 → 0.1.0-alpha.173
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-cjelr7A9.js → Accordion-O-Jl-Hbg.js} +3 -3
- package/dist/Accordion.js +1 -1
- package/dist/{Action-DYTtbQCP.js → Action-Cv3knooL.js} +13 -13
- package/dist/Action.js +1 -1
- package/dist/ActionGroup.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Breadcrumb.js +2 -2
- package/dist/{Button-BtmAZfL4.js → Button-Dh-FA0K8.js} +5 -5
- package/dist/Button.js +1 -1
- package/dist/{Checkbox-BIsSSmoo.js → Checkbox-Loys48Py.js} +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/{CheckboxButton-DD-AVnVH.js → CheckboxButton-CLN_ayxn.js} +2 -2
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +3 -3
- package/dist/{Content-XeBdMr7a.js → Content-D-V-g5Ba.js} +1 -1
- package/dist/Content.js +1 -1
- package/dist/ContextMenu.js +3 -3
- package/dist/{ContextMenuTrigger-DY9PYCzX.js → ContextMenuTrigger-B8ZhwBtd.js} +3 -3
- package/dist/ContextualHelp.js +4 -4
- package/dist/CopyButton.js +5 -5
- package/dist/CounterBadge.js +1 -1
- package/dist/{FieldDescription-HKu0GHJT.js → FieldDescription-UlaeRaWw.js} +2 -2
- package/dist/FieldDescription.js +1 -1
- package/dist/{FieldError-CAm6acjx.js → FieldError-CZPQzNSz.js} +3 -3
- package/dist/FieldError.js +1 -1
- package/dist/{Header-d6ZhlEKS.js → Header-CDc5qD5M.js} +10 -4
- package/dist/Header.js +1 -1
- package/dist/{Heading-DLHEessD.js → Heading-BkHvZG9C.js} +1 -1
- package/dist/Heading.js +1 -1
- package/dist/{Icon-B42dnki2.js → Icon-N96KD633.js} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-BqUU8h2W.js → IconCheck-CNdrJb3W.js} +1 -1
- package/dist/{IconCheckboxEmpty-D5S4mRpw.js → IconCheckboxEmpty-Bnof97E6.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-CuF0F3a7.js → IconCheckboxIndeterminate-I0e87J_L.js} +1 -1
- package/dist/{IconChevronDown-CteOC8Ko.js → IconChevronDown-H4ANoHQh.js} +1 -1
- package/dist/{IconChevronRight-C6uL9Gfa.js → IconChevronRight-BcvVk4gi.js} +1 -1
- package/dist/{IconChevronUp-ypr8uADK.js → IconChevronUp-DGairnIU.js} +1 -1
- package/dist/{IconClose-DYtJew1d.js → IconClose-B9Tmq1hI.js} +1 -1
- package/dist/{IconContextMenu-qIlrT5jp.js → IconContextMenu-BbFVCu4A.js} +1 -1
- package/dist/{IconCopy-BWgZNjN2.js → IconCopy-DdwkwK5i.js} +1 -1
- package/dist/{IconDanger-BuBaxnFT.js → IconDanger-29U5NbR-.js} +1 -1
- package/dist/{IconInfo-DzleRASZ.js → IconInfo-DThm-qJW.js} +1 -1
- package/dist/{IconPending-D-NX0DUX.js → IconPending-DY8n9LcJ.js} +1 -1
- package/dist/{IconPlus-C-hKzpg0.js → IconPlus-z8tyCb_p.js} +1 -1
- package/dist/{IconRadioOn-sW1gzR1_.js → IconRadioOn-CnchpCt3.js} +1 -1
- package/dist/{IconSearch-DpgGmMog.js → IconSearch-BdmeRdRR.js} +1 -1
- package/dist/{IconSucceeded-CeIP1P7b.js → IconSucceeded-BviPRC9T.js} +1 -1
- package/dist/{IconWarning-Bw-sdbyu.js → IconWarning-DlSgqOij.js} +1 -1
- package/dist/Icons.js +18 -18
- package/dist/Image.js +1 -1
- package/dist/Initials.js +1 -1
- package/dist/InlineAlert.js +2 -2
- package/dist/{Label-C2JYZ9e7.js → Label-DeWqZ-Tg.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LayoutCard.js +1 -1
- package/dist/{Link-BZ5vD0Y7.js → Link-BoQ8K6ao.js} +1 -1
- package/dist/Link.js +1 -1
- package/dist/List.js +11 -11
- package/dist/{LoadingSpinner-NW-KK-Ra.js → LoadingSpinner-BYjfjRAx.js} +2 -2
- package/dist/LoadingSpinner.js +1 -1
- package/dist/{MenuItem-CsuKgBsO.js → MenuItem-DvOltniq.js} +5 -5
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +6 -7
- package/dist/Navigation.js +2 -2
- package/dist/Notification.js +5 -5
- package/dist/NumberField.js +7 -7
- package/dist/{Popover-Bp6dogWv.js → Popover-C2uIpso8.js} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/RadioGroup.js +5 -5
- package/dist/Section.js +1 -1
- package/dist/Select.js +5 -5
- package/dist/Slider.js +4 -4
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-BYUR8O2o.js → StatusIcon-DiPKxCw-.js} +4 -4
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Tabs.js +7 -7
- package/dist/{Text-ZrkoLA2a.js → Text-DMctOg-g.js} +1 -1
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +2 -2
- package/dist/TextField.js +2 -2
- package/dist/{TextFieldBase-B3yxI1nA.js → TextFieldBase-CjN1n7TY.js} +2 -2
- package/dist/{flowComponent-Cc3Qnym-.js → flowComponent-CuEuCXRI.js} +36 -36
- package/dist/react-hook-form.js +2 -2
- package/dist/types/components/Action/types.d.ts +2 -1
- package/package.json +4 -4
- package/dist/slotContext-DoCFkzCA.js +0 -8
|
@@ -9,8 +9,8 @@ import { P as B } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-DzAKlmhS.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as P } from "./FieldError-
|
|
13
|
-
import { F as R } from "./FieldDescription-
|
|
12
|
+
import { F as P } from "./FieldError-CZPQzNSz.js";
|
|
13
|
+
import { F as R } from "./FieldDescription-UlaeRaWw.js";
|
|
14
14
|
import { useLocalizedStringFormatter as g } from "react-aria";
|
|
15
15
|
const L = { "de-DE": {
|
|
16
16
|
"textFieldBase.characters": (e, r) => `${r.select({ 0: () => `${e.count}`, other: () => `${e.count}/${e.maxCount}` }, e.maxCount)} Zeichen`
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import s, { isValidElement as
|
|
4
|
-
import { u as
|
|
5
|
-
import { mergeProps as
|
|
6
|
-
import { pickBy as
|
|
3
|
+
import s, { isValidElement as x, createContext as f, useContext as P, forwardRef as y, cloneElement as h } from "react";
|
|
4
|
+
import { u as v } from "./propsContext-DzAKlmhS.js";
|
|
5
|
+
import { mergeProps as E } from "@react-aria/utils";
|
|
6
|
+
import { pickBy as b, omitBy as g } from "remeda";
|
|
7
7
|
import "dot-prop";
|
|
8
|
-
import { P as
|
|
9
|
-
import { TunnelEntry as
|
|
10
|
-
|
|
11
|
-
const T = {
|
|
8
|
+
import { P as S } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
9
|
+
import { TunnelEntry as T } from "@mittwald/react-tunnel";
|
|
10
|
+
const k = {
|
|
12
11
|
Action: !0,
|
|
13
12
|
ActionGroup: !0,
|
|
14
13
|
Avatar: !0,
|
|
@@ -53,43 +52,43 @@ const T = {
|
|
|
53
52
|
TextArea: !0,
|
|
54
53
|
TextField: !0
|
|
55
54
|
}, l = Object.keys(
|
|
56
|
-
|
|
55
|
+
k
|
|
57
56
|
);
|
|
58
57
|
function a(t) {
|
|
59
58
|
return !!t && typeof t == "object" && "__dynamicProp" in t;
|
|
60
59
|
}
|
|
61
|
-
function
|
|
60
|
+
function d(t) {
|
|
62
61
|
return typeof t == "string" && l.includes(t);
|
|
63
62
|
}
|
|
64
|
-
function
|
|
65
|
-
return !
|
|
63
|
+
function w(t) {
|
|
64
|
+
return !d(t);
|
|
66
65
|
}
|
|
67
|
-
const
|
|
66
|
+
const B = (t, o) => {
|
|
68
67
|
const r = {};
|
|
69
68
|
for (const e in t)
|
|
70
|
-
if (
|
|
69
|
+
if (w(e)) {
|
|
71
70
|
const n = t[e];
|
|
72
71
|
a(n) && (r[e] = n.__dynamicProp(o));
|
|
73
72
|
}
|
|
74
73
|
return r;
|
|
75
74
|
};
|
|
76
|
-
function
|
|
75
|
+
function A(t) {
|
|
77
76
|
return !!t && typeof t == "object" && "children" in t && !!t.children;
|
|
78
77
|
}
|
|
79
|
-
const
|
|
80
|
-
if (!
|
|
78
|
+
const I = (t) => b(t, (o, r) => d(r)), F = (t, o) => {
|
|
79
|
+
if (!A(o))
|
|
81
80
|
return {};
|
|
82
81
|
const r = o.children;
|
|
83
|
-
if (!Array.isArray(r) && !
|
|
82
|
+
if (!Array.isArray(r) && !x(r))
|
|
84
83
|
return {};
|
|
85
|
-
const e =
|
|
84
|
+
const e = I(t);
|
|
86
85
|
return Object.keys(e).length === 0 ? {} : {
|
|
87
|
-
children: /* @__PURE__ */ s.createElement(
|
|
86
|
+
children: /* @__PURE__ */ s.createElement(S, { props: e, mergeInParentContext: !0 }, r)
|
|
88
87
|
};
|
|
89
|
-
},
|
|
90
|
-
const e =
|
|
91
|
-
return
|
|
92
|
-
e &&
|
|
88
|
+
}, M = (t, o) => {
|
|
89
|
+
const e = v()[t], n = e ? B(e, o) : void 0, i = e ? F(e, o) : void 0;
|
|
90
|
+
return E(
|
|
91
|
+
e && g(
|
|
93
92
|
e,
|
|
94
93
|
(p, c) => l.includes(
|
|
95
94
|
c
|
|
@@ -97,28 +96,29 @@ const A = (t) => h(t, (o, r) => m(r)), I = (t, o) => {
|
|
|
97
96
|
),
|
|
98
97
|
o,
|
|
99
98
|
n,
|
|
100
|
-
|
|
99
|
+
i
|
|
101
100
|
);
|
|
102
|
-
},
|
|
103
|
-
const { slot: o, component: r, children: e } = t,
|
|
104
|
-
...
|
|
101
|
+
}, m = f({}), R = () => P(m), N = (t) => {
|
|
102
|
+
const { slot: o, component: r, children: e } = t, i = {
|
|
103
|
+
...R(),
|
|
105
104
|
[r]: o
|
|
106
105
|
};
|
|
107
|
-
return /* @__PURE__ */ s.createElement(
|
|
106
|
+
return /* @__PURE__ */ s.createElement(m.Provider, { value: i }, e);
|
|
108
107
|
};
|
|
109
|
-
function
|
|
110
|
-
return
|
|
111
|
-
const { tunnelId: n, wrapWith:
|
|
108
|
+
function O(t, o) {
|
|
109
|
+
return y((r, e) => {
|
|
110
|
+
const { tunnelId: n, wrapWith: i, ...p } = M(
|
|
112
111
|
t,
|
|
113
112
|
r
|
|
114
|
-
),
|
|
113
|
+
), C = {
|
|
115
114
|
refProp: e,
|
|
116
115
|
...p
|
|
117
116
|
};
|
|
118
|
-
let
|
|
119
|
-
return "slot" in r && r.slot && (
|
|
117
|
+
let u = /* @__PURE__ */ s.createElement(o, { ...C });
|
|
118
|
+
return "slot" in r && r.slot && (u = /* @__PURE__ */ s.createElement(N, { slot: r.slot, component: t }, u)), i && (u = h(i, void 0, u)), n && (u = /* @__PURE__ */ s.createElement(T, { id: n }, u)), u;
|
|
120
119
|
});
|
|
121
120
|
}
|
|
122
121
|
export {
|
|
123
|
-
|
|
122
|
+
O as f,
|
|
123
|
+
R as u
|
|
124
124
|
};
|
package/dist/react-hook-form.js
CHANGED
|
@@ -7,8 +7,8 @@ import { P as b } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { d as E } from "./dynamic-ClpUSmEt.js";
|
|
10
|
-
import { F as P } from "./FieldError-
|
|
11
|
-
import { a as g, A as y } from "./Action-
|
|
10
|
+
import { F as P } from "./FieldError-CZPQzNSz.js";
|
|
11
|
+
import { a as g, A as y } from "./Action-Cv3knooL.js";
|
|
12
12
|
const x = F({}), V = x.Provider, f = () => v(x);
|
|
13
13
|
function I(e) {
|
|
14
14
|
var n;
|
|
@@ -2,9 +2,10 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import { OverlayController } from '../../lib/controller';
|
|
3
3
|
import { ActionModel } from './models/ActionModel';
|
|
4
4
|
import { FlowComponentName } from '../propTypes';
|
|
5
|
+
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
5
6
|
|
|
6
7
|
export type ActionFn = (...args: unknown[]) => unknown;
|
|
7
|
-
export interface ActionProps extends PropsWithChildren {
|
|
8
|
+
export interface ActionProps extends PropsWithChildren, FlowComponentProps {
|
|
8
9
|
action?: ActionFn;
|
|
9
10
|
actionModel?: ActionModel;
|
|
10
11
|
closeOverlay?: FlowComponentName | OverlayController;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.173",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
"dependencies": {
|
|
281
281
|
"@chakra-ui/live-region": "^2.1.0",
|
|
282
282
|
"@internationalized/string-compiler": "^3.2.4",
|
|
283
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
283
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.173",
|
|
284
284
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
285
285
|
"@react-aria/utils": "^3.24.1",
|
|
286
286
|
"@react-types/shared": "^3.23.1",
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
},
|
|
308
308
|
"devDependencies": {
|
|
309
309
|
"@faker-js/faker": "^8.4.1",
|
|
310
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
310
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.173",
|
|
311
311
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
312
312
|
"@nx/storybook": "^19.4.0",
|
|
313
313
|
"@storybook/addon-a11y": "^8.1.11",
|
|
@@ -383,5 +383,5 @@
|
|
|
383
383
|
"optional": true
|
|
384
384
|
}
|
|
385
385
|
},
|
|
386
|
-
"gitHead": "
|
|
386
|
+
"gitHead": "382ff60cf43672d7d822a503da4d7a61b775314c"
|
|
387
387
|
}
|