@mittwald/flow-react-components 0.1.0-alpha.171 → 0.1.0-alpha.173

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.
Files changed (97) hide show
  1. package/dist/{Accordion-CPVq0faI.js → Accordion-O-Jl-Hbg.js} +3 -3
  2. package/dist/Accordion.js +1 -1
  3. package/dist/{Action-DYTtbQCP.js → Action-Cv3knooL.js} +13 -13
  4. package/dist/Action.js +1 -1
  5. package/dist/ActionGroup.js +1 -1
  6. package/dist/Avatar.js +1 -1
  7. package/dist/Breadcrumb.js +2 -2
  8. package/dist/{Button-Dz22EEEz.js → Button-Dh-FA0K8.js} +5 -5
  9. package/dist/Button.js +1 -1
  10. package/dist/{Checkbox-DlctxdXS.js → Checkbox-Loys48Py.js} +4 -4
  11. package/dist/Checkbox.js +1 -1
  12. package/dist/{CheckboxButton-BSy4Rd1a.js → CheckboxButton-CLN_ayxn.js} +2 -2
  13. package/dist/CheckboxButton.js +1 -1
  14. package/dist/CheckboxGroup.js +3 -3
  15. package/dist/{Content-DzPlkCt6.js → Content-D-V-g5Ba.js} +1 -1
  16. package/dist/Content.js +1 -1
  17. package/dist/ContextMenu.js +3 -3
  18. package/dist/{ContextMenuTrigger-D8BGdVFU.js → ContextMenuTrigger-B8ZhwBtd.js} +39 -36
  19. package/dist/ContextualHelp.js +4 -4
  20. package/dist/CopyButton.js +5 -5
  21. package/dist/CounterBadge.js +1 -1
  22. package/dist/{FieldDescription-Ca5OTPGv.js → FieldDescription-UlaeRaWw.js} +2 -2
  23. package/dist/FieldDescription.js +1 -1
  24. package/dist/{FieldError-C3KKqMzM.js → FieldError-CZPQzNSz.js} +3 -3
  25. package/dist/FieldError.js +1 -1
  26. package/dist/Header-CDc5qD5M.js +58 -0
  27. package/dist/Header.js +1 -1
  28. package/dist/Heading-BkHvZG9C.js +52 -0
  29. package/dist/Heading.js +1 -1
  30. package/dist/{Icon-BTTw8v9z.js → Icon-N96KD633.js} +1 -1
  31. package/dist/Icon.js +1 -1
  32. package/dist/{IconCheck-ZTVWbFCo.js → IconCheck-CNdrJb3W.js} +1 -1
  33. package/dist/{IconCheckboxEmpty-C_IETucN.js → IconCheckboxEmpty-Bnof97E6.js} +1 -1
  34. package/dist/{IconCheckboxIndeterminate-DY2Gz2df.js → IconCheckboxIndeterminate-I0e87J_L.js} +1 -1
  35. package/dist/{IconChevronDown-CPh2XLia.js → IconChevronDown-H4ANoHQh.js} +1 -1
  36. package/dist/{IconChevronRight-NKe0T7-H.js → IconChevronRight-BcvVk4gi.js} +1 -1
  37. package/dist/{IconChevronUp-ClAQYdXn.js → IconChevronUp-DGairnIU.js} +1 -1
  38. package/dist/{IconClose-D3xiRQc_.js → IconClose-B9Tmq1hI.js} +1 -1
  39. package/dist/{IconContextMenu-BeUYeVED.js → IconContextMenu-BbFVCu4A.js} +1 -1
  40. package/dist/{IconCopy-BXBdiyLX.js → IconCopy-DdwkwK5i.js} +1 -1
  41. package/dist/{IconDanger-CLKa18Ox.js → IconDanger-29U5NbR-.js} +1 -1
  42. package/dist/{IconInfo-B5-94yWE.js → IconInfo-DThm-qJW.js} +1 -1
  43. package/dist/{IconPending-Di6JG-4u.js → IconPending-DY8n9LcJ.js} +1 -1
  44. package/dist/{IconPlus-DHuWcs1-.js → IconPlus-z8tyCb_p.js} +1 -1
  45. package/dist/{IconRadioOn-CF8jhsxN.js → IconRadioOn-CnchpCt3.js} +1 -1
  46. package/dist/{IconSearch-CzWSJj1g.js → IconSearch-BdmeRdRR.js} +1 -1
  47. package/dist/{IconSucceeded-B5M2AsMJ.js → IconSucceeded-BviPRC9T.js} +1 -1
  48. package/dist/{IconWarning-B7kuINe1.js → IconWarning-DlSgqOij.js} +1 -1
  49. package/dist/Icons.js +18 -18
  50. package/dist/Image.js +1 -1
  51. package/dist/Initials.js +1 -1
  52. package/dist/InlineAlert.js +2 -2
  53. package/dist/{Label-DJKxRIAA.js → Label-DeWqZ-Tg.js} +1 -1
  54. package/dist/Label.js +1 -1
  55. package/dist/LayoutCard.js +1 -1
  56. package/dist/{Link-DrSmRSXL.js → Link-BoQ8K6ao.js} +1 -1
  57. package/dist/Link.js +1 -1
  58. package/dist/List.js +34 -36
  59. package/dist/{LoadingSpinner-DYYmNgEd.js → LoadingSpinner-BYjfjRAx.js} +2 -2
  60. package/dist/LoadingSpinner.js +1 -1
  61. package/dist/{MenuItem-u7V4XOL3.js → MenuItem-DvOltniq.js} +5 -5
  62. package/dist/MenuItem.js +1 -1
  63. package/dist/Modal.js +6 -7
  64. package/dist/Navigation.js +2 -2
  65. package/dist/Notification.js +5 -5
  66. package/dist/NumberField.js +7 -7
  67. package/dist/{Popover-B1m8lc6F.js → Popover-C2uIpso8.js} +1 -1
  68. package/dist/Popover.js +1 -1
  69. package/dist/RadioGroup.js +5 -5
  70. package/dist/Section.js +22 -32
  71. package/dist/Select.js +5 -5
  72. package/dist/Slider.js +4 -4
  73. package/dist/StatusBadge.js +3 -3
  74. package/dist/{StatusIcon-BnyGZH4s.js → StatusIcon-DiPKxCw-.js} +4 -4
  75. package/dist/StatusIcon.js +1 -1
  76. package/dist/Switch.js +5 -5
  77. package/dist/Tabs.js +7 -7
  78. package/dist/{Text-Bl9Rk0W3.js → Text-DMctOg-g.js} +1 -1
  79. package/dist/Text.js +1 -1
  80. package/dist/TextArea.js +2 -2
  81. package/dist/TextField.js +2 -2
  82. package/dist/{TextFieldBase-C5ev2SC1.js → TextFieldBase-CjN1n7TY.js} +2 -2
  83. package/dist/{flowComponent-TgbbWDzO.js → flowComponent-CuEuCXRI.js} +32 -31
  84. package/dist/react-hook-form.js +2 -2
  85. package/dist/styles.css +1 -1
  86. package/dist/types/components/Action/types.d.ts +2 -1
  87. package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts +2 -1
  88. package/dist/types/components/Section/components/SectionHeader/SectionHeader.d.ts +6 -0
  89. package/dist/types/components/Section/stories/Default.stories.d.ts +1 -2
  90. package/dist/types/components/propTypes/index.d.ts +2 -0
  91. package/dist/types/lib/controller/overlay/context.d.ts +1 -0
  92. package/dist/types/lib/propsContext/propsContext.d.ts +2 -0
  93. package/dist/types/lib/slotContext/slotContext.d.ts +1 -0
  94. package/package.json +4 -4
  95. package/dist/Header-aoK_P4c0.js +0 -11
  96. package/dist/Heading-DccQpM5H.js +0 -48
  97. package/dist/slotContext-DoCFkzCA.js +0 -8
@@ -2,9 +2,10 @@ import { PropsWithChildren } from 'react';
2
2
  import { OverlayController } from '../../lib/controller';
3
3
  import { ActionModel } from './models/ActionModel';
4
4
  import { FlowComponentName } from '../propTypes';
5
+ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
5
6
 
6
7
  export type ActionFn = (...args: unknown[]) => unknown;
7
- export interface ActionProps extends PropsWithChildren {
8
+ export interface ActionProps extends PropsWithChildren, FlowComponentProps {
8
9
  action?: ActionFn;
9
10
  actionModel?: ActionModel;
10
11
  closeOverlay?: FlowComponentName | OverlayController;
@@ -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 WithSwitch: Story;
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">;
@@ -11,6 +11,7 @@ export declare const slotContext: import('react').Context<Partial<{
11
11
  Content: string;
12
12
  ContextMenu: string;
13
13
  ContextMenuSection: string;
14
+ ContextMenuTrigger: string;
14
15
  ContextualHelp: string;
15
16
  CopyButton: string;
16
17
  CounterBadge: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.171",
3
+ "version": "0.1.0-alpha.173",
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.171",
283
+ "@mittwald/react-tunnel": "^0.1.0-alpha.173",
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.171",
310
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.173",
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": "ed04d61cfdbd51117dd5301104cd7806915685b7"
386
+ "gitHead": "382ff60cf43672d7d822a503da4d7a61b775314c"
387
387
  }
@@ -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
- };
@@ -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
- };
@@ -1,8 +0,0 @@
1
- "use client"
2
- /* */
3
- import { createContext as t, useContext as o } from "react";
4
- const e = t({}), n = () => o(e);
5
- export {
6
- e as s,
7
- n as u
8
- };