@mittwald/flow-react-components 0.1.0-alpha.299 → 0.1.0-alpha.300
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 +12 -0
- package/dist/css/IllustratedMessage.css +1 -1
- package/dist/js/IllustratedMessage-CeYE8bxs.js +44 -0
- package/dist/js/IllustratedMessage.js +1 -1
- package/dist/js/List.js +1 -1
- package/dist/js/all.css +1 -1
- package/dist/js/types/components/IllustratedMessage/stories/Default.stories.d.ts +1 -0
- package/package.json +4 -4
- package/dist/js/IllustratedMessage-B3MHD01M.js +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.300](https://github.com/mittwald/flow/compare/0.1.0-alpha.299...0.1.0-alpha.300) (2024-10-24)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **IllustratedMessage:** support ActionGroup in IllustratedMessage
|
|
11
|
+
([4e9675d](https://github.com/mittwald/flow/commit/4e9675d6e8d3488db9e79f07d43e043aaf7ae75b))
|
|
12
|
+
|
|
13
|
+
# Change Log
|
|
14
|
+
|
|
15
|
+
All notable changes to this project will be documented in this file. See
|
|
16
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
17
|
+
|
|
6
18
|
# [0.1.0-alpha.299](https://github.com/mittwald/flow/compare/0.1.0-alpha.298...0.1.0-alpha.299) (2024-10-23)
|
|
7
19
|
|
|
8
20
|
### Features
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.flow--illustrated-message--illustrated-message-container{container-type:inline-size}.flow--illustrated-message{display:flex;flex-direction:column;align-items:center;padding:var(--illustrated-message--padding)}@container (max-width: 550px){.flow--illustrated-message{padding:var(--illustrated-message--padding--mobile)}}.flow--illustrated-message :where(.flow--illustrated-message--icon){color:var(--illustrated-message--info-icon-color);margin-bottom:var(--illustrated-message--icon-to-heading-spacing)}.flow--illustrated-message .flow--illustrated-message--heading{margin-bottom:var(--illustrated-message--heading-to-text-spacing);text-align:center}.flow--illustrated-message .flow--illustrated-message--text{margin-bottom:var(--illustrated-message--text-to-button-spacing);text-align:center}.flow--illustrated-message.flow--illustrated-message--negative :where(.flow--illustrated-message--icon){color:var(--illustrated-message--negative-icon-color)}.flow--illustrated-message.flow--illustrated-message--negative .flow--illustrated-message--heading{color:var(--illustrated-message--negative-heading-color)}
|
|
1
|
+
.flow--illustrated-message--illustrated-message-container{container-type:inline-size}.flow--illustrated-message{display:flex;flex-direction:column;align-items:center;padding:var(--illustrated-message--padding)}@container (max-width: 550px){.flow--illustrated-message{padding:var(--illustrated-message--padding--mobile)}}.flow--illustrated-message :where(.flow--illustrated-message--icon){color:var(--illustrated-message--info-icon-color);margin-bottom:var(--illustrated-message--icon-to-heading-spacing)}.flow--illustrated-message .flow--illustrated-message--heading{margin-bottom:var(--illustrated-message--heading-to-text-spacing);text-align:center}.flow--illustrated-message .flow--illustrated-message--text{margin-bottom:var(--illustrated-message--text-to-button-spacing);text-align:center}.flow--illustrated-message .flow--illustrated-message--action-group [role=group]{justify-content:center}.flow--illustrated-message .flow--illustrated-message--action-group [role=group] button{margin:0}.flow--illustrated-message.flow--illustrated-message--negative :where(.flow--illustrated-message--icon){color:var(--illustrated-message--negative-icon-color)}.flow--illustrated-message.flow--illustrated-message--negative .flow--illustrated-message--heading{color:var(--illustrated-message--negative-heading-color)}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import o from "react";
|
|
4
|
+
import a from "clsx";
|
|
5
|
+
import "./propsContext-DzAKlmhS.js";
|
|
6
|
+
import { P as g } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "remeda";
|
|
9
|
+
const d = "flow--illustrated-message--illustrated-message-container", u = "flow--illustrated-message", p = "flow--illustrated-message--icon", f = "flow--illustrated-message--heading", x = "flow--illustrated-message--text", N = "flow--illustrated-message--action-group", h = "flow--illustrated-message--negative", e = {
|
|
10
|
+
illustratedMessageContainer: d,
|
|
11
|
+
illustratedMessage: u,
|
|
12
|
+
icon: p,
|
|
13
|
+
heading: f,
|
|
14
|
+
text: x,
|
|
15
|
+
actionGroup: N,
|
|
16
|
+
negative: h
|
|
17
|
+
}, E = (l) => {
|
|
18
|
+
const { className: r, children: i, color: t = "info", ...n } = l, c = a(e.illustratedMessageContainer, r), s = t === "dark" || t === "light" ? t : void 0, m = {
|
|
19
|
+
Icon: {
|
|
20
|
+
className: e.icon,
|
|
21
|
+
size: "l",
|
|
22
|
+
color: s
|
|
23
|
+
},
|
|
24
|
+
Heading: {
|
|
25
|
+
className: e.heading,
|
|
26
|
+
color: s
|
|
27
|
+
},
|
|
28
|
+
Text: {
|
|
29
|
+
className: e.text,
|
|
30
|
+
color: s
|
|
31
|
+
},
|
|
32
|
+
Button: {
|
|
33
|
+
color: s ?? "accent"
|
|
34
|
+
},
|
|
35
|
+
ActionGroup: {
|
|
36
|
+
ignoreBreakpoint: !0,
|
|
37
|
+
className: e.actionGroup
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /* @__PURE__ */ o.createElement("div", { ...n, className: c }, /* @__PURE__ */ o.createElement("div", { className: a(e.illustratedMessage, e[t]) }, /* @__PURE__ */ o.createElement(g, { props: m }, i)));
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
E as I
|
|
44
|
+
};
|
package/dist/js/List.js
CHANGED
|
@@ -42,7 +42,7 @@ import { u as pe } from "./useSelector-DpU7_HMO.js";
|
|
|
42
42
|
import { u as Pt } from "./SettingsProvider-D9oDS5r9.js";
|
|
43
43
|
import * as X from "react-aria-components";
|
|
44
44
|
import { S as x } from "./SkeletonText-B5ZghZhO.js";
|
|
45
|
-
import { I as Vt } from "./IllustratedMessage-
|
|
45
|
+
import { I as Vt } from "./IllustratedMessage-CeYE8bxs.js";
|
|
46
46
|
import { I as kt } from "./IconSearch-Bufq0n5e.js";
|
|
47
47
|
import { d as S, a as P } from "./deepFindOfType-6pG0fH7S.js";
|
|
48
48
|
import { ListLoaderAsyncResource as At, TypedListLoaderAsyncResource as Mt } from "./List/ListLoaderAsyncResource.js";
|