@mittwald/flow-react-components 0.1.0-alpha.305 → 0.1.0-alpha.306
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 +17 -0
- package/dist/css/Heading.css +1 -1
- package/dist/js/Heading-gFkXcomc.js +66 -0
- package/dist/js/Heading.js +1 -1
- package/dist/js/List.js +1 -1
- package/dist/js/all.css +1 -1
- package/dist/js/types/components/Heading/stories/EdgeCases.stories.d.ts +2 -0
- package/package.json +4 -4
- package/dist/js/Heading-CB3ASpaU.js +0 -51
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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.306](https://github.com/mittwald/flow/compare/0.1.0-alpha.305...0.1.0-alpha.306) (2024-10-28)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **Heading:** fix heading content margin
|
|
11
|
+
([46da4bb](https://github.com/mittwald/flow/commit/46da4bb900a6f9b07f10299c4fc3cde0a8b9cef0))
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- **Heading:** support contextual help
|
|
16
|
+
([6a21e4a](https://github.com/mittwald/flow/commit/6a21e4a0f94410703a033acebd1ce9c95f154dab))
|
|
17
|
+
|
|
18
|
+
# Change Log
|
|
19
|
+
|
|
20
|
+
All notable changes to this project will be documented in this file. See
|
|
21
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
22
|
+
|
|
6
23
|
# [0.1.0-alpha.305](https://github.com/mittwald/flow/compare/0.1.0-alpha.304...0.1.0-alpha.305) (2024-10-28)
|
|
7
24
|
|
|
8
25
|
### Bug Fixes
|
package/dist/css/Heading.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.flow--heading{color:var(--heading--color);
|
|
1
|
+
.flow--heading{color:var(--heading--color);font-size:var(--font-size);font-weight:var(--heading--font-weight);--heading-line-height: calc(var(--font-size) * var(--line-height--default))}.flow--heading.flow--heading--dark{color:var(--heading--color-dark)}.flow--heading.flow--heading--light{color:var(--heading--color-light)}.flow--heading .flow--heading--icon,.flow--heading>.flow--alert-icon{height:var(--heading-line-height);width:var(--heading-line-height);vertical-align:bottom;display:inline-block;margin-inline-end:var(--heading--icon-to-text-spacing)}.flow--heading .flow--heading--heading-text:not(:last-child){margin-inline-end:var(--heading--icon-to-text-spacing)}.flow--heading .flow--heading--heading-content{vertical-align:bottom;display:inline-flex;height:var(--heading-line-height);align-items:center}.flow--heading:where(h1){--font-size: var(--heading-font-size--xl)}.flow--heading:where(h2){--font-size: var(--heading-font-size--m)}.flow--heading:where(h3){--font-size: var(--heading-font-size--s)}.flow--heading:where(h4),.flow--heading:where(h5),.flow--heading:where(h6){--font-size: var(--heading-font-size--xs)}.flow--heading.flow--heading--xs{--font-size: var(--heading-font-size--xs)}.flow--heading.flow--heading--s{--font-size: var(--heading-font-size--s)}.flow--heading.flow--heading--m{--font-size: var(--heading-font-size--m)}.flow--heading.flow--heading--l{--font-size: var(--heading-font-size--l)}.flow--heading.flow--heading--xl{--font-size: var(--heading-font-size--xl)}.flow--heading.flow--heading--xxl{--font-size: var(--heading-font-size--xxl)}@media (max-width: 550px){.flow--heading:where(h1){--font-size: var(--heading-font-size--l)}}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import g from "clsx";
|
|
5
|
+
import { C as h } from "./ClearPropsContext-CUvsbMn8.js";
|
|
6
|
+
import { P as f } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
8
|
+
import "./propsContext-DzAKlmhS.js";
|
|
9
|
+
import "remeda";
|
|
10
|
+
import { f as p } from "./flowComponent-uZXy7sF4.js";
|
|
11
|
+
import * as x from "react-aria-components";
|
|
12
|
+
import { TunnelProvider as w, TunnelExit as C } from "@mittwald/react-tunnel";
|
|
13
|
+
const u = "flow--heading", E = "flow--heading--dark", N = "flow--heading--light", P = "flow--heading--icon", T = "flow--heading--heading-text", H = "flow--heading--heading-content", k = "flow--heading--xs", v = "flow--heading--s", I = "flow--heading--m", y = "flow--heading--l", A = "flow--heading--xl", B = "flow--heading--xxl", n = {
|
|
14
|
+
heading: u,
|
|
15
|
+
dark: E,
|
|
16
|
+
light: N,
|
|
17
|
+
icon: P,
|
|
18
|
+
headingText: T,
|
|
19
|
+
headingContent: H,
|
|
20
|
+
xs: k,
|
|
21
|
+
s: v,
|
|
22
|
+
m: I,
|
|
23
|
+
l: y,
|
|
24
|
+
xl: A,
|
|
25
|
+
xxl: B
|
|
26
|
+
}, K = p("Heading", (o) => {
|
|
27
|
+
const {
|
|
28
|
+
children: a,
|
|
29
|
+
className: i,
|
|
30
|
+
level: l = 2,
|
|
31
|
+
color: r = "primary",
|
|
32
|
+
size: t,
|
|
33
|
+
refProp: s,
|
|
34
|
+
...d
|
|
35
|
+
} = o, c = g(
|
|
36
|
+
n.heading,
|
|
37
|
+
t && n[t],
|
|
38
|
+
n[r],
|
|
39
|
+
i
|
|
40
|
+
), m = {
|
|
41
|
+
Icon: {
|
|
42
|
+
"aria-hidden": !0,
|
|
43
|
+
className: n.icon
|
|
44
|
+
},
|
|
45
|
+
AlertBadge: {
|
|
46
|
+
tunnelId: "headingContent"
|
|
47
|
+
},
|
|
48
|
+
Button: {
|
|
49
|
+
tunnelId: "headingContent"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(w, null, /* @__PURE__ */ e.createElement(
|
|
53
|
+
x.Heading,
|
|
54
|
+
{
|
|
55
|
+
level: l,
|
|
56
|
+
className: c,
|
|
57
|
+
...d,
|
|
58
|
+
ref: s
|
|
59
|
+
},
|
|
60
|
+
/* @__PURE__ */ e.createElement("span", { className: n.headingText }, /* @__PURE__ */ e.createElement(f, { props: m }, a)),
|
|
61
|
+
/* @__PURE__ */ e.createElement("span", { className: n.headingContent }, /* @__PURE__ */ e.createElement(C, { id: "headingContent" }))
|
|
62
|
+
)));
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
K as H
|
|
66
|
+
};
|
package/dist/js/Heading.js
CHANGED
package/dist/js/List.js
CHANGED
|
@@ -30,7 +30,7 @@ import { makeObservable as St, observable as me, computed as he, action as G } f
|
|
|
30
30
|
import "./context-Cf7tqFtF.js";
|
|
31
31
|
import { u as bt } from "./useOnChange-C1Quwyuz.js";
|
|
32
32
|
import { S as vt } from "./SearchField-D_McGKsS.js";
|
|
33
|
-
import { H as Q } from "./Heading-
|
|
33
|
+
import { H as Q } from "./Heading-gFkXcomc.js";
|
|
34
34
|
import { S as yt } from "./Section-DszRJOuI.js";
|
|
35
35
|
import { getProperty as wt } from "dot-prop";
|
|
36
36
|
import { hash as Ee } from "object-code";
|