@mittwald/flow-react-components 0.1.0-alpha.117 → 0.1.0-alpha.119
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-BzSb2drj.js → Accordion-OIqrGajq.js} +3 -3
- package/dist/Accordion.js +1 -1
- package/dist/Avatar.js +25 -27
- package/dist/Breadcrumb.js +2 -2
- package/dist/{Button-_8JcP9d1.js → Button-BCQWyOr4.js} +5 -5
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/{Checkbox-CoDeuNsM.js → Checkbox-D0OKOlbQ.js} +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/{CheckboxButton-D_i7P_qt.js → CheckboxButton-m7uqvePd.js} +2 -2
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +3 -3
- package/dist/{Content-BK2g3Yro.js → Content-Dv4LJl-8.js} +1 -1
- package/dist/Content.js +1 -1
- package/dist/{ContextMenu-kfsMEIUy.js → ContextMenu-BQ1H5T2h.js} +1 -1
- package/dist/ContextMenu.js +2 -2
- package/dist/CopyButton.js +4 -4
- package/dist/FieldDescription.js +2 -2
- package/dist/{FieldError-ef2wRBhJ.js → FieldError-DaMdHZmc.js} +3 -3
- package/dist/FieldError.js +1 -1
- package/dist/Header.js +1 -1
- package/dist/Heading-CI96mO-u.js +48 -0
- package/dist/Heading.js +3 -45
- package/dist/{Icon-DAE3MVF2.js → Icon-BI5DQvoY.js} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-B_TL6rk7.js → IconCheck-BtMaGPKR.js} +1 -1
- package/dist/{IconCheckboxEmpty-9LFcjE0j.js → IconCheckboxEmpty-DS-0Y9DS.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-CVt-Emyf.js → IconCheckboxIndeterminate-Coqmr05a.js} +1 -1
- package/dist/{IconChevronDown-4x9PZE3A.js → IconChevronDown-B47aUcVu.js} +1 -1
- package/dist/{IconChevronRight-BGr3gKMc.js → IconChevronRight-DRtwShTy.js} +1 -1
- package/dist/{IconClose-D5y8_cAW.js → IconClose-BCVIZgsO.js} +1 -1
- package/dist/{IconContextMenu-CscpZMqu.js → IconContextMenu-B6l97s-1.js} +1 -1
- package/dist/{IconCopy-J5KCFCD0.js → IconCopy-CmdUQbjo.js} +1 -1
- package/dist/{IconDanger-Be-8YO4Z.js → IconDanger-FoTA8c58.js} +1 -1
- package/dist/{IconPending-UvsvM-yo.js → IconPending-DaIqc2wH.js} +1 -1
- package/dist/{IconPlus-BZ0ojVn-.js → IconPlus-DHGdrWaP.js} +1 -1
- package/dist/{IconRadioOn-DKF0Bkmh.js → IconRadioOn-Dw-cld05.js} +1 -1
- package/dist/IconSearch-BfGdDu2q.js +9 -0
- package/dist/{IconSucceeded-C8ICBiWF.js → IconSucceeded-Dac_avN3.js} +1 -1
- package/dist/{IconWarning-D4N03eMl.js → IconWarning-DW8orO_0.js} +1 -1
- package/dist/Icons.js +81 -80
- package/dist/IllustratedMessage-D1xVzeZO.js +38 -0
- package/dist/IllustratedMessage.js +3 -35
- package/dist/Image.js +1 -1
- package/dist/Initials.js +1 -1
- package/dist/InlineAlert.js +2 -2
- package/dist/{Label-u7aknIoq.js → Label-CZL5PpdM.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LayoutCard.js +1 -1
- package/dist/{Link-DGmaq49u.js → Link-Dudjl8oZ.js} +1 -1
- package/dist/Link.js +1 -1
- package/dist/List.js +268 -250
- package/dist/{LoadingSpinner-DdxaPznB.js → LoadingSpinner-CKlvSFNo.js} +2 -2
- package/dist/LoadingSpinner.js +1 -1
- package/dist/{MenuItem-D4OlNY0-.js → MenuItem-DhbpDBP7.js} +5 -5
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Navigation.js +2 -2
- package/dist/NumberField.js +6 -6
- package/dist/OffCanvas.js +3 -3
- package/dist/RadioGroup.js +5 -5
- package/dist/Section.js +1 -1
- package/dist/Select.js +4 -4
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-bhiGnLh6.js → StatusIcon-D1TnVROF.js} +3 -3
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Tabs.js +7 -7
- package/dist/{Text-CMf42YK8.js → Text-fD3dK4JJ.js} +1 -1
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +2 -2
- package/dist/TextField.js +2 -2
- package/dist/{TextFieldBase-DFFlaU7o.js → TextFieldBase-CmWxHsqM.js} +1 -1
- package/dist/flowComponent-DZ4pwhof.js +117 -0
- package/dist/react-hook-form.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +4 -3
- package/dist/types/components/Content/Content.d.ts +1 -0
- package/dist/types/components/Header/Header.d.ts +1 -1
- package/dist/types/components/List/stories/ListItem.stories.d.ts +5 -4
- package/package.json +4 -4
- package/dist/flowComponent-D-odaa-x.js +0 -36
- package/dist/useProps-L-mDIVx4.js +0 -91
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, default as React } from 'react';
|
|
2
2
|
import { PropsWithClassName } from '../../lib/types/props';
|
|
3
|
+
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
3
4
|
|
|
4
|
-
export interface AvatarProps extends PropsWithChildren, PropsWithClassName {
|
|
5
|
+
export interface AvatarProps extends PropsWithChildren, PropsWithClassName, FlowComponentProps<"Avatar"> {
|
|
5
6
|
/** @default "m" */
|
|
6
7
|
size?: "xs" | "s" | "m" | "l";
|
|
7
8
|
variant?: 1 | 2 | 3 | 4;
|
|
8
9
|
}
|
|
9
|
-
export declare const Avatar:
|
|
10
|
+
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<never>>;
|
|
10
11
|
export default Avatar;
|
|
@@ -3,6 +3,7 @@ import { PropsWithElementType } from '../../lib/types/props';
|
|
|
3
3
|
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
4
4
|
|
|
5
5
|
export interface ContentProps extends PropsWithChildren, PropsWithElementType<"div" | "section" | "span">, FlowComponentProps<"Content"> {
|
|
6
|
+
slot?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<never>>;
|
|
8
9
|
export default Content;
|
|
@@ -2,7 +2,7 @@ import { PropsWithChildren, default as React } from 'react';
|
|
|
2
2
|
import { PropsWithElementType } from '../../lib/types/props';
|
|
3
3
|
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
4
4
|
|
|
5
|
-
export interface HeaderProps extends PropsWithChildren, PropsWithElementType<"div" | "header" | "span">, FlowComponentProps {
|
|
5
|
+
export interface HeaderProps extends PropsWithChildren, PropsWithElementType<"div" | "header" | "span">, FlowComponentProps<"Header"> {
|
|
6
6
|
}
|
|
7
7
|
export declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<never>>;
|
|
8
8
|
export default Header;
|
|
@@ -4,7 +4,8 @@ import { default as List } from '../List';
|
|
|
4
4
|
declare const meta: Meta<typeof List>;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof List>;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithTopContent: Story;
|
|
9
|
+
export declare const WithContent: Story;
|
|
10
|
+
export declare const WithButton: Story;
|
|
11
|
+
export declare const SmallSpace: Story;
|
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.119",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
},
|
|
256
256
|
"dependencies": {
|
|
257
257
|
"@chakra-ui/live-region": "^2.1.0",
|
|
258
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
258
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.119",
|
|
259
259
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
260
260
|
"@react-aria/utils": "^3.24.0",
|
|
261
261
|
"@react-types/shared": "^3.23.0",
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
},
|
|
280
280
|
"devDependencies": {
|
|
281
281
|
"@faker-js/faker": "^8.4.1",
|
|
282
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
282
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.119",
|
|
283
283
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
284
284
|
"@nx/storybook": "^19.0.3",
|
|
285
285
|
"@storybook/addon-a11y": "^8.1.0",
|
|
@@ -355,5 +355,5 @@
|
|
|
355
355
|
"optional": true
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
|
-
"gitHead": "
|
|
358
|
+
"gitHead": "2599f572b709064a2fe2c456db63fe8181aa23f7"
|
|
359
359
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import r, { forwardRef as a } from "react";
|
|
4
|
-
import { C as c } from "./ClearPropsContext-CeCMjUK9.js";
|
|
5
|
-
import "./propsContext-CauylOgH.js";
|
|
6
|
-
import "@react-aria/utils";
|
|
7
|
-
import "remeda";
|
|
8
|
-
import "dot-prop";
|
|
9
|
-
import { u } from "./useProps-L-mDIVx4.js";
|
|
10
|
-
import { TunnelEntry as C } from "@mittwald/react-tunnel";
|
|
11
|
-
function d(e, o) {
|
|
12
|
-
return a((i, s) => {
|
|
13
|
-
const { render: n, tunnelId: p, ...l } = u(
|
|
14
|
-
e,
|
|
15
|
-
i
|
|
16
|
-
), m = {
|
|
17
|
-
ref: s,
|
|
18
|
-
...l
|
|
19
|
-
};
|
|
20
|
-
let t = /* @__PURE__ */ r.createElement(o, { ...m });
|
|
21
|
-
if (n) {
|
|
22
|
-
const f = d(
|
|
23
|
-
e,
|
|
24
|
-
o
|
|
25
|
-
);
|
|
26
|
-
t = /* @__PURE__ */ r.createElement(c, null, n(
|
|
27
|
-
f,
|
|
28
|
-
m
|
|
29
|
-
));
|
|
30
|
-
}
|
|
31
|
-
return p && (t = /* @__PURE__ */ r.createElement(C, { id: p }, t)), t;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
d as f
|
|
36
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import { mergeProps as s } from "@react-aria/utils";
|
|
4
|
-
import { u as p } from "./propsContext-CauylOgH.js";
|
|
5
|
-
import c, { isValidElement as d } from "react";
|
|
6
|
-
import { pickBy as a, omit as m } from "remeda";
|
|
7
|
-
import { P as C } from "./PropsContextProvider-DZvwqHLP.js";
|
|
8
|
-
const l = {
|
|
9
|
-
Action: !0,
|
|
10
|
-
Avatar: !0,
|
|
11
|
-
Button: !0,
|
|
12
|
-
ButtonGroup: !0,
|
|
13
|
-
Checkbox: !0,
|
|
14
|
-
CheckboxButton: !0,
|
|
15
|
-
CheckboxGroup: !0,
|
|
16
|
-
Content: !0,
|
|
17
|
-
ContextMenu: !0,
|
|
18
|
-
CopyButton: !0,
|
|
19
|
-
FieldDescription: !0,
|
|
20
|
-
FieldError: !0,
|
|
21
|
-
Header: !0,
|
|
22
|
-
Heading: !0,
|
|
23
|
-
Icon: !0,
|
|
24
|
-
Image: !0,
|
|
25
|
-
Initials: !0,
|
|
26
|
-
InlineAlert: !0,
|
|
27
|
-
Label: !0,
|
|
28
|
-
LayoutCard: !0,
|
|
29
|
-
Link: !0,
|
|
30
|
-
MenuItem: !0,
|
|
31
|
-
Modal: !0,
|
|
32
|
-
NumberField: !0,
|
|
33
|
-
Radio: !0,
|
|
34
|
-
Option: !0,
|
|
35
|
-
RadioButton: !0,
|
|
36
|
-
RadioGroup: !0,
|
|
37
|
-
Section: !0,
|
|
38
|
-
Select: !0,
|
|
39
|
-
StatusBadge: !0,
|
|
40
|
-
Switch: !0,
|
|
41
|
-
Tabs: !0,
|
|
42
|
-
TestComponent: !0,
|
|
43
|
-
Text: !0,
|
|
44
|
-
TextArea: !0,
|
|
45
|
-
TextField: !0
|
|
46
|
-
}, u = Object.keys(
|
|
47
|
-
l
|
|
48
|
-
);
|
|
49
|
-
function x(t) {
|
|
50
|
-
return !!t && typeof t == "object" && "__dynamicProp" in t;
|
|
51
|
-
}
|
|
52
|
-
function i(t) {
|
|
53
|
-
return typeof t == "string" && u.includes(t);
|
|
54
|
-
}
|
|
55
|
-
function f(t) {
|
|
56
|
-
return !i(t);
|
|
57
|
-
}
|
|
58
|
-
const y = (t, r) => {
|
|
59
|
-
const e = {};
|
|
60
|
-
for (const o in t)
|
|
61
|
-
if (f(o)) {
|
|
62
|
-
const n = t[o];
|
|
63
|
-
x(n) && (e[o] = n.__dynamicProp(r));
|
|
64
|
-
}
|
|
65
|
-
return e;
|
|
66
|
-
};
|
|
67
|
-
function P(t) {
|
|
68
|
-
return !!t && typeof t == "object" && "children" in t && !!t.children;
|
|
69
|
-
}
|
|
70
|
-
const h = (t) => a(t, (r, e) => i(e)), b = (t, r) => {
|
|
71
|
-
if (!P(r))
|
|
72
|
-
return {};
|
|
73
|
-
const e = r.children;
|
|
74
|
-
if (!Array.isArray(e) && !d(e))
|
|
75
|
-
return {};
|
|
76
|
-
const o = h(t);
|
|
77
|
-
return Object.keys(o).length === 0 ? {} : {
|
|
78
|
-
children: /* @__PURE__ */ c.createElement(C, { props: o, mergeInParentContext: !0 }, r.children)
|
|
79
|
-
};
|
|
80
|
-
}, F = (t, r) => {
|
|
81
|
-
const e = p()[t], o = e ? y(e, r) : void 0, n = e ? b(e, r) : void 0;
|
|
82
|
-
return s(
|
|
83
|
-
e && m(e, u),
|
|
84
|
-
r,
|
|
85
|
-
o,
|
|
86
|
-
n
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
export {
|
|
90
|
-
F as u
|
|
91
|
-
};
|