@mittwald/flow-react-components 0.1.0-alpha.170 → 0.1.0-alpha.172
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-CPVq0faI.js → Accordion-cjelr7A9.js} +3 -3
- package/dist/Accordion.js +1 -1
- package/dist/ActionGroup.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Breadcrumb.js +2 -2
- package/dist/{Button-Dz22EEEz.js → Button-BtmAZfL4.js} +5 -5
- package/dist/Button.js +1 -1
- package/dist/{Checkbox-DlctxdXS.js → Checkbox-BIsSSmoo.js} +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/{CheckboxButton-BSy4Rd1a.js → CheckboxButton-DD-AVnVH.js} +2 -2
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +3 -3
- package/dist/{Content-DzPlkCt6.js → Content-XeBdMr7a.js} +1 -1
- package/dist/Content.js +1 -1
- package/dist/ContextMenu.js +3 -3
- package/dist/{ContextMenuTrigger-D8BGdVFU.js → ContextMenuTrigger-DY9PYCzX.js} +38 -35
- package/dist/ContextualHelp.js +4 -4
- package/dist/CopyButton.js +4 -4
- package/dist/CounterBadge.js +1 -1
- package/dist/{FieldDescription-Ca5OTPGv.js → FieldDescription-HKu0GHJT.js} +2 -2
- package/dist/FieldDescription.js +1 -1
- package/dist/{FieldError-C3KKqMzM.js → FieldError-CAm6acjx.js} +3 -3
- package/dist/FieldError.js +1 -1
- package/dist/Header-d6ZhlEKS.js +52 -0
- package/dist/Header.js +1 -1
- package/dist/Heading-DLHEessD.js +52 -0
- package/dist/Heading.js +1 -1
- package/dist/{Icon-BTTw8v9z.js → Icon-B42dnki2.js} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-ZTVWbFCo.js → IconCheck-BqUU8h2W.js} +1 -1
- package/dist/{IconCheckboxEmpty-C_IETucN.js → IconCheckboxEmpty-D5S4mRpw.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-DY2Gz2df.js → IconCheckboxIndeterminate-CuF0F3a7.js} +1 -1
- package/dist/{IconChevronDown-CPh2XLia.js → IconChevronDown-CteOC8Ko.js} +1 -1
- package/dist/{IconChevronRight-NKe0T7-H.js → IconChevronRight-C6uL9Gfa.js} +1 -1
- package/dist/{IconChevronUp-ClAQYdXn.js → IconChevronUp-ypr8uADK.js} +1 -1
- package/dist/{IconClose-D3xiRQc_.js → IconClose-DYtJew1d.js} +1 -1
- package/dist/{IconContextMenu-BeUYeVED.js → IconContextMenu-qIlrT5jp.js} +1 -1
- package/dist/{IconCopy-BXBdiyLX.js → IconCopy-BWgZNjN2.js} +1 -1
- package/dist/{IconDanger-CLKa18Ox.js → IconDanger-BuBaxnFT.js} +1 -1
- package/dist/{IconInfo-B5-94yWE.js → IconInfo-DzleRASZ.js} +1 -1
- package/dist/{IconPending-Di6JG-4u.js → IconPending-D-NX0DUX.js} +1 -1
- package/dist/{IconPlus-DHuWcs1-.js → IconPlus-C-hKzpg0.js} +1 -1
- package/dist/{IconRadioOn-CF8jhsxN.js → IconRadioOn-sW1gzR1_.js} +1 -1
- package/dist/{IconSearch-CzWSJj1g.js → IconSearch-DpgGmMog.js} +1 -1
- package/dist/{IconSucceeded-B5M2AsMJ.js → IconSucceeded-CeIP1P7b.js} +1 -1
- package/dist/{IconWarning-B7kuINe1.js → IconWarning-Bw-sdbyu.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-DJKxRIAA.js → Label-C2JYZ9e7.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LayoutCard.js +1 -1
- package/dist/{Link-DrSmRSXL.js → Link-BZ5vD0Y7.js} +1 -1
- package/dist/Link.js +1 -1
- package/dist/List.js +34 -36
- package/dist/{LoadingSpinner-DYYmNgEd.js → LoadingSpinner-NW-KK-Ra.js} +2 -2
- package/dist/LoadingSpinner.js +1 -1
- package/dist/{MenuItem-u7V4XOL3.js → MenuItem-CsuKgBsO.js} +5 -5
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +5 -5
- package/dist/Navigation.js +2 -2
- package/dist/Notification.js +5 -5
- package/dist/NumberField.js +7 -7
- package/dist/{Popover-B1m8lc6F.js → Popover-Bp6dogWv.js} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/RadioGroup.js +5 -5
- package/dist/Section.js +21 -31
- package/dist/Select.js +5 -5
- package/dist/Slider.js +4 -4
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-BnyGZH4s.js → StatusIcon-BYUR8O2o.js} +4 -4
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Tabs.js +7 -7
- package/dist/{Text-Bl9Rk0W3.js → Text-ZrkoLA2a.js} +1 -1
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +2 -2
- package/dist/TextField.js +2 -2
- package/dist/{TextFieldBase-C5ev2SC1.js → TextFieldBase-B3yxI1nA.js} +2 -2
- package/dist/{flowComponent-TgbbWDzO.js → flowComponent-Cc3Qnym-.js} +16 -15
- package/dist/react-hook-form.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts +2 -1
- package/dist/types/components/Section/components/SectionHeader/SectionHeader.d.ts +6 -0
- package/dist/types/components/Section/stories/Default.stories.d.ts +1 -2
- package/dist/types/components/propTypes/index.d.ts +2 -0
- package/dist/types/lib/controller/overlay/context.d.ts +1 -0
- package/dist/types/lib/propsContext/propsContext.d.ts +2 -0
- package/dist/types/lib/slotContext/slotContext.d.ts +1 -0
- package/package.json +4 -4
- package/dist/Header-aoK_P4c0.js +0 -11
- package/dist/Heading-DccQpM5H.js +0 -48
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ComponentType, FC, ReactNode } from 'react';
|
|
2
2
|
import { FlowComponentName } from '../propTypes';
|
|
3
|
+
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
3
4
|
|
|
4
5
|
type AriaComponentType = ComponentType<{
|
|
5
6
|
isOpen?: boolean;
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
}>;
|
|
8
|
-
export interface OverlayTriggerProps {
|
|
9
|
+
export interface OverlayTriggerProps extends FlowComponentProps {
|
|
9
10
|
isDefaultOpen?: boolean;
|
|
10
11
|
children: ReactNode;
|
|
11
12
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { PropsWithClassName } from '../../../../lib/types/props';
|
|
3
|
+
|
|
4
|
+
export type SectionHeaderProps = PropsWithChildren & PropsWithClassName;
|
|
5
|
+
export declare const SectionHeader: FC<SectionHeaderProps>;
|
|
6
|
+
export default SectionHeader;
|
|
@@ -6,5 +6,4 @@ export default meta;
|
|
|
6
6
|
type Story = StoryObj<typeof Section>;
|
|
7
7
|
export declare const Default: Story;
|
|
8
8
|
export declare const MultipleSections: Story;
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const WithStatusBadge: Story;
|
|
9
|
+
export declare const WithHeaderContent: Story;
|
|
@@ -36,6 +36,7 @@ import { FlowComponentName } from './types';
|
|
|
36
36
|
import { ContextualHelpProps } from '../ContextualHelp';
|
|
37
37
|
import { PopoverProps } from '../Popover';
|
|
38
38
|
import { ContextMenuSectionProps } from '../ContextMenu/components/ContextMenuSection';
|
|
39
|
+
import { OverlayTriggerProps } from '../OverlayTrigger';
|
|
39
40
|
|
|
40
41
|
export * from './types';
|
|
41
42
|
export interface FlowComponentPropsTypes {
|
|
@@ -49,6 +50,7 @@ export interface FlowComponentPropsTypes {
|
|
|
49
50
|
Content: ContentProps;
|
|
50
51
|
ContextMenu: ContextMenuProps;
|
|
51
52
|
ContextMenuSection: ContextMenuSectionProps;
|
|
53
|
+
ContextMenuTrigger: OverlayTriggerProps;
|
|
52
54
|
ContextualHelp: ContextualHelpProps;
|
|
53
55
|
CopyButton: CopyButtonProps;
|
|
54
56
|
CounterBadge: CounterBadgeProps;
|
|
@@ -15,6 +15,7 @@ export declare const overlayContext: import('react').Context<Partial<{
|
|
|
15
15
|
Content: OverlayController | undefined;
|
|
16
16
|
ContextMenu: OverlayController | undefined;
|
|
17
17
|
ContextMenuSection: OverlayController | undefined;
|
|
18
|
+
ContextMenuTrigger: OverlayController | undefined;
|
|
18
19
|
ContextualHelp: OverlayController | undefined;
|
|
19
20
|
CopyButton: OverlayController | undefined;
|
|
20
21
|
CounterBadge: OverlayController | undefined;
|
|
@@ -11,6 +11,7 @@ export declare const propsContext: import('react').Context<Partial<{
|
|
|
11
11
|
Content: import('./types').ComponentPropsContext<"Content">;
|
|
12
12
|
ContextMenu: import('./types').ComponentPropsContext<"ContextMenu">;
|
|
13
13
|
ContextMenuSection: import('./types').ComponentPropsContext<"ContextMenuSection">;
|
|
14
|
+
ContextMenuTrigger: import('./types').ComponentPropsContext<"ContextMenuTrigger">;
|
|
14
15
|
ContextualHelp: import('./types').ComponentPropsContext<"ContextualHelp">;
|
|
15
16
|
CopyButton: import('./types').ComponentPropsContext<"CopyButton">;
|
|
16
17
|
CounterBadge: import('./types').ComponentPropsContext<"CounterBadge">;
|
|
@@ -55,6 +56,7 @@ export declare const PropsContextProvider: import('react').Provider<Partial<{
|
|
|
55
56
|
Content: import('./types').ComponentPropsContext<"Content">;
|
|
56
57
|
ContextMenu: import('./types').ComponentPropsContext<"ContextMenu">;
|
|
57
58
|
ContextMenuSection: import('./types').ComponentPropsContext<"ContextMenuSection">;
|
|
59
|
+
ContextMenuTrigger: import('./types').ComponentPropsContext<"ContextMenuTrigger">;
|
|
58
60
|
ContextualHelp: import('./types').ComponentPropsContext<"ContextualHelp">;
|
|
59
61
|
CopyButton: import('./types').ComponentPropsContext<"CopyButton">;
|
|
60
62
|
CounterBadge: import('./types').ComponentPropsContext<"CounterBadge">;
|
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.172",
|
|
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.172",
|
|
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.172",
|
|
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": "8615d26617c5b449e1c5019bc22b237e28300f44"
|
|
387
387
|
}
|
package/dist/Header-aoK_P4c0.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import a from "react";
|
|
4
|
-
import { f as c } from "./flowComponent-TgbbWDzO.js";
|
|
5
|
-
const s = c("Header", (e) => {
|
|
6
|
-
const { children: r, refProp: t, elementType: o = "header", ...n } = e, m = o;
|
|
7
|
-
return /* @__PURE__ */ a.createElement(m, { ...n, ref: t }, r);
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
s as H
|
|
11
|
-
};
|
package/dist/Heading-DccQpM5H.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import e from "react";
|
|
4
|
-
import d from "clsx";
|
|
5
|
-
import { C as f } from "./ClearPropsContext-CUvsbMn8.js";
|
|
6
|
-
import { P as g } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
|
-
import "@react-aria/utils";
|
|
8
|
-
import "./propsContext-DzAKlmhS.js";
|
|
9
|
-
import "remeda";
|
|
10
|
-
import { f as p } from "./flowComponent-TgbbWDzO.js";
|
|
11
|
-
import * as w from "react-aria-components";
|
|
12
|
-
const C = "flow--heading", x = "flow--heading--dark", P = "flow--heading--light", u = "flow--heading--icon", H = "flow--heading--h1", N = "flow--heading--h2", k = "flow--heading--h3", v = "flow--heading--h4", E = "flow--heading--h5", y = "flow--heading--h6", o = {
|
|
13
|
-
heading: C,
|
|
14
|
-
dark: x,
|
|
15
|
-
light: P,
|
|
16
|
-
icon: u,
|
|
17
|
-
h1: H,
|
|
18
|
-
h2: N,
|
|
19
|
-
h3: k,
|
|
20
|
-
h4: v,
|
|
21
|
-
h5: E,
|
|
22
|
-
h6: y
|
|
23
|
-
}, q = p("Heading", (r) => {
|
|
24
|
-
const {
|
|
25
|
-
children: a,
|
|
26
|
-
className: i,
|
|
27
|
-
level: n = 2,
|
|
28
|
-
levelVisual: t = n,
|
|
29
|
-
color: s = "primary",
|
|
30
|
-
refProp: h,
|
|
31
|
-
...l
|
|
32
|
-
} = r, c = d(
|
|
33
|
-
o.heading,
|
|
34
|
-
t && o[`h${t}`],
|
|
35
|
-
o[s],
|
|
36
|
-
i
|
|
37
|
-
), m = {
|
|
38
|
-
Icon: {
|
|
39
|
-
"aria-hidden": !0,
|
|
40
|
-
size: "s",
|
|
41
|
-
className: o.icon
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(w.Heading, { level: n, className: c, ...l, ref: h }, /* @__PURE__ */ e.createElement(g, { props: m }, a)));
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
q as H
|
|
48
|
-
};
|