@mittwald/flow-react-components 0.1.0-alpha.410 → 0.1.0-alpha.412
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/CHANGELOG.md +22 -0
- package/dist/js/{ActionGroup-_RcPy5Vo.js → ActionGroup-BlCWYd6L.js} +20 -17
- package/dist/js/ActionGroup.js +1 -1
- package/dist/js/FileCard.js +1 -1
- package/dist/js/{Link-7WUBHpUL.js → Link-BqoEwTXH.js} +9 -8
- package/dist/js/Link.js +1 -1
- package/dist/js/List.js +1 -1
- package/dist/js/Markdown.js +1 -1
- package/dist/js/Notification.js +1 -1
- package/dist/js/types/components/ActionGroup/stories/Default.stories.d.ts +1 -0
- package/dist/js/types/components/Link/Link.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.1.0-alpha.412](https://github.com/mittwald/flow/compare/0.1.0-alpha.411...0.1.0-alpha.412) (2025-01-31)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @mittwald/flow-react-components
|
|
9
|
+
|
|
10
|
+
# Change Log
|
|
11
|
+
|
|
12
|
+
All notable changes to this project will be documented in this file. See
|
|
13
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
14
|
+
|
|
15
|
+
# [0.1.0-alpha.411](https://github.com/mittwald/flow/compare/0.1.0-alpha.410...0.1.0-alpha.411) (2025-01-31)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- **ActionGroup:** Support link in action group
|
|
20
|
+
([#1136](https://github.com/mittwald/flow/issues/1136))
|
|
21
|
+
([49bd5ba](https://github.com/mittwald/flow/commit/49bd5ba87111579fa2e03d67ea4fe01484321e2f))
|
|
22
|
+
|
|
23
|
+
# Change Log
|
|
24
|
+
|
|
25
|
+
All notable changes to this project will be documented in this file. See
|
|
26
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
27
|
+
|
|
6
28
|
# [0.1.0-alpha.410](https://github.com/mittwald/flow/compare/0.1.0-alpha.409...0.1.0-alpha.410) (2025-01-31)
|
|
7
29
|
|
|
8
30
|
### Features
|
|
@@ -7,31 +7,31 @@ import "@react-aria/utils";
|
|
|
7
7
|
import "remeda";
|
|
8
8
|
import { d as n } from "./dynamic-ClpUSmEt.js";
|
|
9
9
|
import e from "clsx";
|
|
10
|
-
import { f as
|
|
11
|
-
import { TunnelProvider as
|
|
12
|
-
import { A as
|
|
13
|
-
const
|
|
14
|
-
actionGroup:
|
|
10
|
+
import { f as N } from "./flowComponent-B1r5sCmz.js";
|
|
11
|
+
import { TunnelProvider as C } from "@mittwald/react-tunnel";
|
|
12
|
+
import { A as G, g as a } from "./getActionGroupSlot-BHzMGEA7.js";
|
|
13
|
+
const y = "flow--action-group", P = "flow--action-group--primary", k = "flow--action-group--secondary", x = "flow--action-group--abort", A = "flow--action-group--action-group-container", b = "flow--action-group--ignore-breakpoint", v = "flow--action-group--s", B = "flow--action-group--m", t = {
|
|
14
|
+
actionGroup: y,
|
|
15
15
|
primary: P,
|
|
16
|
-
secondary:
|
|
17
|
-
abort:
|
|
18
|
-
actionGroupContainer:
|
|
19
|
-
ignoreBreakpoint:
|
|
16
|
+
secondary: k,
|
|
17
|
+
abort: x,
|
|
18
|
+
actionGroupContainer: A,
|
|
19
|
+
ignoreBreakpoint: b,
|
|
20
20
|
s: v,
|
|
21
21
|
m: B
|
|
22
|
-
},
|
|
22
|
+
}, D = N("ActionGroup", (i) => {
|
|
23
23
|
const {
|
|
24
24
|
children: c,
|
|
25
25
|
className: s,
|
|
26
|
-
refProp:
|
|
27
|
-
ignoreBreakpoint:
|
|
28
|
-
spacing:
|
|
26
|
+
refProp: l,
|
|
27
|
+
ignoreBreakpoint: m,
|
|
28
|
+
spacing: p = "s",
|
|
29
29
|
...u
|
|
30
30
|
} = i, g = e(
|
|
31
31
|
t.actionGroupContainer,
|
|
32
32
|
s,
|
|
33
|
-
|
|
34
|
-
t[
|
|
33
|
+
m && t.ignoreBreakpoint,
|
|
34
|
+
t[p]
|
|
35
35
|
), f = {
|
|
36
36
|
Button: {
|
|
37
37
|
slot: n((o) => a(o)),
|
|
@@ -43,10 +43,13 @@ const N = "flow--action-group", P = "flow--action-group--primary", x = "flow--ac
|
|
|
43
43
|
Switch: {
|
|
44
44
|
labelPosition: "leading",
|
|
45
45
|
className: n((o) => e(o.className, o.slot && t[o.slot]))
|
|
46
|
+
},
|
|
47
|
+
Link: {
|
|
48
|
+
className: n((o) => e(o.className, o.slot && t[o.slot]))
|
|
46
49
|
}
|
|
47
50
|
};
|
|
48
|
-
return /* @__PURE__ */ r.createElement(
|
|
51
|
+
return /* @__PURE__ */ r.createElement(G, null, /* @__PURE__ */ r.createElement(w, { props: f, mergeInParentContext: !0 }, /* @__PURE__ */ r.createElement(C, null, /* @__PURE__ */ r.createElement("div", { ...u, className: g, ref: l }, /* @__PURE__ */ r.createElement("div", { className: t.actionGroup, role: "group" }, c)))));
|
|
49
52
|
});
|
|
50
53
|
export {
|
|
51
|
-
|
|
54
|
+
D as A
|
|
52
55
|
};
|
package/dist/js/ActionGroup.js
CHANGED
package/dist/js/FileCard.js
CHANGED
|
@@ -9,7 +9,7 @@ import { I as N } from "./Image-zLLa5v_F.js";
|
|
|
9
9
|
import { T as i } from "./Text-C7Akf24Y.js";
|
|
10
10
|
import y from "clsx";
|
|
11
11
|
import { f as g } from "./flowComponent-B1r5sCmz.js";
|
|
12
|
-
import { L as x } from "./Link-
|
|
12
|
+
import { L as x } from "./Link-BqoEwTXH.js";
|
|
13
13
|
import { W as B } from "./Wrap-DGT1h1o3.js";
|
|
14
14
|
import { B as F } from "./Button-BHFXhYtp.js";
|
|
15
15
|
import { I as T } from "./IconClose-njz0vW4D.js";
|
|
@@ -14,22 +14,22 @@ import "@tabler/icons-react";
|
|
|
14
14
|
import "./Icon-mUEZToWz.js";
|
|
15
15
|
import { I as y, a as I } from "./IconExternalLink-BnfWUW87.js";
|
|
16
16
|
import { useLocalizedStringFormatter as N } from "react-aria";
|
|
17
|
-
const D = "flow--link", F = "flow--link--inline", b = "flow--link--icon", z = "flow--link--dark",
|
|
17
|
+
const D = "flow--link", F = "flow--link--inline", b = "flow--link--icon", z = "flow--link--dark", S = "flow--link--light", e = {
|
|
18
18
|
link: D,
|
|
19
19
|
inline: F,
|
|
20
20
|
icon: b,
|
|
21
21
|
dark: z,
|
|
22
|
-
light:
|
|
23
|
-
},
|
|
22
|
+
light: S
|
|
23
|
+
}, v = { "de-DE": {
|
|
24
24
|
"link.download": "Download",
|
|
25
25
|
"link.external": "Externer Link"
|
|
26
26
|
}, "en-EN": {
|
|
27
27
|
"link.download": "Download",
|
|
28
28
|
"link.external": "External link"
|
|
29
|
-
} },
|
|
30
|
-
const { unstyled: l, target: r, download: i } = o, t = N(
|
|
29
|
+
} }, A = (o) => {
|
|
30
|
+
const { unstyled: l, target: r, download: i } = o, t = N(v);
|
|
31
31
|
return l ? null : i ? /* @__PURE__ */ n.createElement(y, { "aria-label": t.format("link.download") }) : r === "_blank" ? /* @__PURE__ */ n.createElement(I, { "aria-label": t.format("link.external") }) : null;
|
|
32
|
-
},
|
|
32
|
+
}, V = P("Link", (o) => {
|
|
33
33
|
const {
|
|
34
34
|
children: l,
|
|
35
35
|
className: r,
|
|
@@ -39,6 +39,7 @@ const D = "flow--link", F = "flow--link--inline", b = "flow--link--icon", z = "f
|
|
|
39
39
|
unstyled: m = !1,
|
|
40
40
|
"aria-current": c,
|
|
41
41
|
refProp: k,
|
|
42
|
+
slot: R,
|
|
42
43
|
...p
|
|
43
44
|
} = o, { linkComponent: a } = x(h), f = t || (o.href && a ? a : w.Link), d = m ? r : g(e.link, i && e.inline, e[s], r), u = {
|
|
44
45
|
Icon: {
|
|
@@ -56,9 +57,9 @@ const D = "flow--link", F = "flow--link--inline", b = "flow--link--icon", z = "f
|
|
|
56
57
|
className: d,
|
|
57
58
|
ref: k
|
|
58
59
|
},
|
|
59
|
-
/* @__PURE__ */ n.createElement(L, { props: u }, l, /* @__PURE__ */ n.createElement(
|
|
60
|
+
/* @__PURE__ */ n.createElement(L, { props: u }, l, /* @__PURE__ */ n.createElement(A, { ...o }))
|
|
60
61
|
));
|
|
61
62
|
});
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
V as L
|
|
64
65
|
};
|
package/dist/js/Link.js
CHANGED
package/dist/js/List.js
CHANGED
|
@@ -51,7 +51,7 @@ import { I as $e } from "./IconSearch-DMgHpqPU.js";
|
|
|
51
51
|
import { deepFind as Ue, deepForEach as Ke } from "react-children-utilities";
|
|
52
52
|
import { ListLoaderAsyncResource as ze, TypedListLoaderAsyncResource as Oe } from "./List/ListLoaderAsyncResource.js";
|
|
53
53
|
import { a as Vt, e as At, d as Mt, b as kt, T as Bt, c as xt } from "./Table-Cgwv_qa_.js";
|
|
54
|
-
import { A as He } from "./ActionGroup-
|
|
54
|
+
import { A as He } from "./ActionGroup-BlCWYd6L.js";
|
|
55
55
|
const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view--content", We = "flow--list--items--item--view--title", je = "flow--list--items--item--view--sub-title", Je = "flow--list--items--item--view--avatar", Ye = "flow--list--items--item--view--heading", Qe = "flow--list--items--item--view--text", Xe = "flow--list--items--item--view--top-content", Ze = "flow--list--items--item--view--action", _e = "flow--list--items--item--view--bottom-content", ts = "flow--list--items--item--view--tile", es = "flow--list--items--item--view--avatar-container", ss = "flow--list--items--item--view--badge", h = {
|
|
56
56
|
view: qe,
|
|
57
57
|
content: Ge,
|
package/dist/js/Markdown.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import l, { Children as E, isValidElement as s } from "react";
|
|
4
4
|
import f from "react-markdown";
|
|
5
|
-
import { L as u } from "./Link-
|
|
5
|
+
import { L as u } from "./Link-BqoEwTXH.js";
|
|
6
6
|
import { T as m } from "./Text-C7Akf24Y.js";
|
|
7
7
|
import { I as g } from "./InlineCode-6EfCoef4.js";
|
|
8
8
|
import { H as n } from "./Heading-s0GGZftx.js";
|
package/dist/js/Notification.js
CHANGED
|
@@ -8,7 +8,7 @@ import "@react-aria/utils";
|
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { d as h } from "./dynamic-ClpUSmEt.js";
|
|
10
10
|
import { A as k } from "./AlertIcon-B2ca4caj.js";
|
|
11
|
-
import { L as x } from "./Link-
|
|
11
|
+
import { L as x } from "./Link-BqoEwTXH.js";
|
|
12
12
|
import { B as C } from "./Button-BHFXhYtp.js";
|
|
13
13
|
import "@tabler/icons-react";
|
|
14
14
|
import "./Icon-mUEZToWz.js";
|
|
@@ -10,6 +10,7 @@ export interface LinkProps extends PropsWithChildren<Omit<Aria.LinkProps, "child
|
|
|
10
10
|
/** The color of the link. @default "primary" */
|
|
11
11
|
color?: "primary" | "dark" | "light";
|
|
12
12
|
"aria-current"?: string;
|
|
13
|
+
slot?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<never>>;
|
|
15
16
|
export default Link;
|
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.412",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -440,7 +440,7 @@
|
|
|
440
440
|
"@chakra-ui/live-region": "^2.1.0",
|
|
441
441
|
"@internationalized/date": "^3.6.0",
|
|
442
442
|
"@internationalized/string-compiler": "^3.2.6",
|
|
443
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
443
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.412",
|
|
444
444
|
"@mittwald/react-use-promise": "^2.6.0",
|
|
445
445
|
"@react-aria/form": "^3.0.11",
|
|
446
446
|
"@react-aria/utils": "^3.26.0",
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
},
|
|
472
472
|
"devDependencies": {
|
|
473
473
|
"@faker-js/faker": "^9.2.0",
|
|
474
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
474
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.412",
|
|
475
475
|
"@mittwald/react-use-promise": "^2.6.0",
|
|
476
476
|
"@nx/storybook": "^20.1.3",
|
|
477
477
|
"@storybook/addon-a11y": "^8.4.5",
|
|
@@ -566,5 +566,5 @@
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
},
|
|
569
|
-
"gitHead": "
|
|
569
|
+
"gitHead": "42a102d5aa42025b578b2eed1c3a5d743b3bc79b"
|
|
570
570
|
}
|