@mittwald/flow-react-components 0.1.0-alpha.358 → 0.1.0-alpha.359

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 (122) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/css/Message.css +1 -0
  3. package/dist/css/globals.css +1 -1
  4. package/dist/js/{Accordion-B6WtC3Q_.js → Accordion-C2hIJ7YE.js} +3 -3
  5. package/dist/js/Accordion.js +1 -1
  6. package/dist/js/{Action-Bcw69Ub4.js → Action-CoAr9soG.js} +1 -1
  7. package/dist/js/Action.js +1 -1
  8. package/dist/js/{ActionGroup-ySr3kkH9.js → ActionGroup-Clp0n0zU.js} +1 -1
  9. package/dist/js/ActionGroup.js +1 -1
  10. package/dist/js/Alert.js +2 -2
  11. package/dist/js/AlertBadge.js +3 -3
  12. package/dist/js/{AlertIcon-DWjUsdFG.js → AlertIcon-PAf5cYzT.js} +4 -4
  13. package/dist/js/AlertIcon.js +1 -1
  14. package/dist/js/Align.js +11 -10
  15. package/dist/js/{Avatar-DqpeX2Xr.js → Avatar-qAB7Of-8.js} +1 -1
  16. package/dist/js/Avatar.js +1 -1
  17. package/dist/js/{Badge-BsnYqSaV.js → Badge-CTJUmwtS.js} +4 -4
  18. package/dist/js/Badge.js +1 -1
  19. package/dist/js/Breadcrumb.js +2 -2
  20. package/dist/js/{Button-DCUWhBV1.js → Button-BWusarCg.js} +5 -5
  21. package/dist/js/Button.js +1 -1
  22. package/dist/js/{CalendarHeader-CvOBFUQx.js → CalendarHeader-BUz0ekXP.js} +4 -4
  23. package/dist/js/{Checkbox-CcbbG4KL.js → Checkbox-WFQQR-OW.js} +4 -4
  24. package/dist/js/Checkbox.js +1 -1
  25. package/dist/js/{CheckboxButton-zGMs-UQP.js → CheckboxButton-xdeKio9Y.js} +2 -2
  26. package/dist/js/CheckboxButton.js +1 -1
  27. package/dist/js/CheckboxGroup.js +3 -3
  28. package/dist/js/{CodeBlock-DGMKKkTn.js → CodeBlock-DSY1UJpX.js} +1 -1
  29. package/dist/js/CodeBlock.js +1 -1
  30. package/dist/js/{Content-CsSo4qQG.js → Content-DHdinfp8.js} +1 -1
  31. package/dist/js/Content.js +1 -1
  32. package/dist/js/ContextMenu.js +3 -3
  33. package/dist/js/{ContextMenuTrigger-ClyNKT8M.js → ContextMenuTrigger-DTE94lEG.js} +3 -3
  34. package/dist/js/ContextualHelp.js +4 -4
  35. package/dist/js/{CopyButton-C9aBWr7P.js → CopyButton-CpdTQjtL.js} +5 -5
  36. package/dist/js/CopyButton.js +1 -1
  37. package/dist/js/CounterBadge.js +1 -1
  38. package/dist/js/DatePicker.js +7 -7
  39. package/dist/js/DateRangePicker.js +7 -7
  40. package/dist/js/{FieldDescription-G90B2GH2.js → FieldDescription-Cd3lRw7h.js} +2 -2
  41. package/dist/js/FieldDescription.js +1 -1
  42. package/dist/js/{FieldError-CmDyIRsZ.js → FieldError-1vrCcwXu.js} +3 -3
  43. package/dist/js/FieldError.js +1 -1
  44. package/dist/js/FileCard.js +9 -9
  45. package/dist/js/FileField.js +1 -1
  46. package/dist/js/{Header-B6Nvy1Fr.js → Header-DWDC4J-e.js} +1 -1
  47. package/dist/js/Header.js +1 -1
  48. package/dist/js/HeaderNavigation.js +1 -1
  49. package/dist/js/{Heading-BOBsgBu4.js → Heading-B8EYcl-r.js} +1 -1
  50. package/dist/js/Heading.js +1 -1
  51. package/dist/js/{Icon-CxrvfV3P.js → Icon-Czc5vOtx.js} +1 -1
  52. package/dist/js/Icon.js +1 -1
  53. package/dist/js/{IconCalendar-Cz0GrsHX.js → IconCalendar-CacKT2Kt.js} +1 -1
  54. package/dist/js/{IconCheck-DslU6Fx3.js → IconCheck-B_G6dwez.js} +1 -1
  55. package/dist/js/{IconCheckboxEmpty-D_Cz2Ajc.js → IconCheckboxEmpty-DgdZkOz9.js} +1 -1
  56. package/dist/js/{IconCheckboxIndeterminate-BgDDPk_C.js → IconCheckboxIndeterminate-CSfbHQbH.js} +1 -1
  57. package/dist/js/{IconChevronDown-BoVLOFKR.js → IconChevronDown-C_jKhk_x.js} +1 -1
  58. package/dist/js/{IconChevronRight-C9fBd_0r.js → IconChevronRight-M4cC2dFn.js} +1 -1
  59. package/dist/js/{IconChevronUp-DjsyL96N.js → IconChevronUp-SK9JZwbe.js} +1 -1
  60. package/dist/js/{IconClose-RfQv2X6g.js → IconClose-Cczxm95W.js} +1 -1
  61. package/dist/js/{IconContextMenu-DTUG7bob.js → IconContextMenu-qp3vdZ_f.js} +1 -1
  62. package/dist/js/{IconCopy-BmaW1NSU.js → IconCopy-DfWYL8oQ.js} +1 -1
  63. package/dist/js/{IconDanger-BP_Nw92t.js → IconDanger-Bm53DCTg.js} +1 -1
  64. package/dist/js/{IconExternalLink-D_SfMk_v.js → IconExternalLink-DRkRQEd3.js} +1 -1
  65. package/dist/js/{IconImage-DcY6rvpM.js → IconImage-KRg2_926.js} +1 -1
  66. package/dist/js/{IconInfo-CxABiK58.js → IconInfo-HXrweZ3Z.js} +1 -1
  67. package/dist/js/{IconPending-Cqy__ykw.js → IconPending-a3qUa34r.js} +1 -1
  68. package/dist/js/{IconPlus-DMyfmQgS.js → IconPlus-CfhsvvQB.js} +1 -1
  69. package/dist/js/{IconRadioOn-DOHEIKAn.js → IconRadioOn-D24Zr8bP.js} +1 -1
  70. package/dist/js/{IconSearch-BjhLGLcD.js → IconSearch-BE56nMOe.js} +1 -1
  71. package/dist/js/{IconSucceeded-CC2Rf7wS.js → IconSucceeded-C7cQH_b1.js} +1 -1
  72. package/dist/js/{IconView-C8UvQJJk.js → IconView-DKba1B4t.js} +1 -1
  73. package/dist/js/{IconWarning-DUTMa0Yi.js → IconWarning-Bi91PP3-.js} +1 -1
  74. package/dist/js/Icons.js +22 -22
  75. package/dist/js/{Image-DnhKeFv4.js → Image-7Aa5OZPs.js} +1 -1
  76. package/dist/js/Image.js +1 -1
  77. package/dist/js/Initials.js +1 -1
  78. package/dist/js/{Label-RXacSlx3.js → Label-CUPc2dA6.js} +1 -1
  79. package/dist/js/Label.js +1 -1
  80. package/dist/js/LayoutCard.js +1 -1
  81. package/dist/js/LightBox.js +4 -4
  82. package/dist/js/{Link-BZQoxs8X.js → Link-B-ss8Inh.js} +3 -3
  83. package/dist/js/Link.js +1 -1
  84. package/dist/js/List.js +16 -16
  85. package/dist/js/{LoadingSpinner-B71ZUPtC.js → LoadingSpinner-HntiYurC.js} +2 -2
  86. package/dist/js/LoadingSpinner.js +1 -1
  87. package/dist/js/Markdown.js +4 -4
  88. package/dist/js/{MenuItem-CmXY1SHp.js → MenuItem-CEzmbX2U.js} +6 -6
  89. package/dist/js/MenuItem.js +1 -1
  90. package/dist/js/Message.js +54 -0
  91. package/dist/js/Modal.js +6 -6
  92. package/dist/js/Navigation.js +2 -2
  93. package/dist/js/Notification.js +5 -5
  94. package/dist/js/NumberField.js +7 -7
  95. package/dist/js/{Popover-BrvR8xG2.js → Popover-qBxQnZlU.js} +1 -1
  96. package/dist/js/Popover.js +2 -2
  97. package/dist/js/RadioGroup.js +4 -4
  98. package/dist/js/{SearchField-2mbujNNR.js → SearchField-DbuaeZzD.js} +6 -6
  99. package/dist/js/SearchField.js +1 -1
  100. package/dist/js/{Section-YWA6Tm3P.js → Section-itMvKe4f.js} +1 -1
  101. package/dist/js/Section.js +1 -1
  102. package/dist/js/SegmentedControl.js +4 -4
  103. package/dist/js/Select.js +5 -5
  104. package/dist/js/Slider.js +4 -4
  105. package/dist/js/Switch.js +5 -5
  106. package/dist/js/Tabs.js +7 -7
  107. package/dist/js/{Text-COZNRQB2.js → Text-B2VXg-aU.js} +1 -1
  108. package/dist/js/Text.js +1 -1
  109. package/dist/js/TextArea.js +2 -2
  110. package/dist/js/TextField.js +2 -2
  111. package/dist/js/{TextFieldBase-pdtjoZPx.js → TextFieldBase-xxRlR0ZU.js} +2 -2
  112. package/dist/js/TimeField.js +2 -2
  113. package/dist/js/all.css +1 -1
  114. package/dist/js/{flowComponent-D-FBrwbQ.js → flowComponent-Bs2i5Rrn.js} +8 -7
  115. package/dist/js/react-hook-form.js +2 -2
  116. package/dist/js/types/components/Align/Align.d.ts +4 -3
  117. package/dist/js/types/components/Message/Message.d.ts +9 -0
  118. package/dist/js/types/components/Message/index.d.ts +3 -0
  119. package/dist/js/types/components/Message/stories/Default.stories.d.ts +9 -0
  120. package/dist/js/types/components/propTypes/index.d.ts +2 -0
  121. package/dist/js/types/lib/propsContext/propsContext.d.ts +2 -0
  122. package/package.json +9 -4
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import s, { isValidElement as x, createContext as f, useContext as P, forwardRef as y, cloneElement as g } from "react";
3
+ import s, { isValidElement as x, createContext as f, useContext as P, forwardRef as g, cloneElement as y } from "react";
4
4
  import { u as h } from "./propsContext-DzAKlmhS.js";
5
5
  import { mergeProps as T } from "@react-aria/utils";
6
6
  import { pickBy as v, omitBy as S } from "remeda";
@@ -14,6 +14,7 @@ const F = {
14
14
  Alert: !0,
15
15
  AlertBadge: !0,
16
16
  AlertIcon: !0,
17
+ Align: !0,
17
18
  Badge: !0,
18
19
  Button: !0,
19
20
  Checkbox: !0,
@@ -80,7 +81,7 @@ function d(t) {
80
81
  function k(t) {
81
82
  return !d(t);
82
83
  }
83
- const B = (t, o) => {
84
+ const A = (t, o) => {
84
85
  const r = {};
85
86
  for (const e in t)
86
87
  if (k(e)) {
@@ -89,11 +90,11 @@ const B = (t, o) => {
89
90
  }
90
91
  return r;
91
92
  };
92
- function A(t) {
93
+ function B(t) {
93
94
  return !!t && typeof t == "object" && "children" in t && !!t.children;
94
95
  }
95
96
  const w = (t) => v(t, (o, r) => d(r)), I = (t, o) => {
96
- if (!A(o))
97
+ if (!B(o))
97
98
  return {};
98
99
  const r = o.children;
99
100
  if (!Array.isArray(r) && !x(r))
@@ -103,7 +104,7 @@ const w = (t) => v(t, (o, r) => d(r)), I = (t, o) => {
103
104
  children: /* @__PURE__ */ s.createElement(b, { props: e, mergeInParentContext: !0 }, r)
104
105
  };
105
106
  }, M = (t, o) => {
106
- const e = h()[t], n = e ? B(e, o) : void 0, i = e ? I(e, o) : void 0;
107
+ const e = h()[t], n = e ? A(e, o) : void 0, i = e ? I(e, o) : void 0;
107
108
  return T(
108
109
  e && S(
109
110
  e,
@@ -123,7 +124,7 @@ const w = (t) => v(t, (o, r) => d(r)), I = (t, o) => {
123
124
  return /* @__PURE__ */ s.createElement(m.Provider, { value: i }, e);
124
125
  };
125
126
  function O(t, o) {
126
- return y((r, e) => {
127
+ return g((r, e) => {
127
128
  const { tunnelId: n, wrapWith: i, ...c } = M(
128
129
  t,
129
130
  r
@@ -132,7 +133,7 @@ function O(t, o) {
132
133
  ...c
133
134
  };
134
135
  let u = /* @__PURE__ */ s.createElement(o, { ...C });
135
- return "slot" in r && r.slot && (u = /* @__PURE__ */ s.createElement(D, { slot: r.slot, component: t }, u)), i && (u = g(i, void 0, u)), n && (u = /* @__PURE__ */ s.createElement(E, { id: n }, u)), u;
136
+ return "slot" in r && r.slot && (u = /* @__PURE__ */ s.createElement(D, { slot: r.slot, component: t }, u)), i && (u = y(i, void 0, u)), n && (u = /* @__PURE__ */ s.createElement(E, { id: n }, u)), u;
136
137
  });
137
138
  }
138
139
  export {
@@ -7,8 +7,8 @@ import { PropsContextProvider as b } from "./PropsContextProvider.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import { d as F } from "./dynamic-ClpUSmEt.js";
10
- import { F as A } from "./FieldError-CmDyIRsZ.js";
11
- import { a as P, A as y } from "./Action-Bcw69Ub4.js";
10
+ import { F as A } from "./FieldError-1vrCcwXu.js";
11
+ import { a as P, A as y } from "./Action-CoAr9soG.js";
12
12
  const C = x({}), V = C.Provider, f = () => v(C);
13
13
  function D(t) {
14
14
  var i;
@@ -1,6 +1,7 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren, default as React } from 'react';
2
2
  import { PropsWithClassName } from '../../lib/types/props';
3
- export interface AlignProps extends PropsWithChildren, PropsWithClassName {
3
+ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
+ export interface AlignProps extends PropsWithChildren, PropsWithClassName, FlowComponentProps {
4
5
  }
5
- export declare const Align: FC<AlignProps>;
6
+ export declare const Align: React.ForwardRefExoticComponent<AlignProps & React.RefAttributes<never>>;
6
7
  export default Align;
@@ -0,0 +1,9 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { PropsWithClassName } from '../../lib/types/props';
3
+ export interface MessageProps extends PropsWithChildren, PropsWithClassName {
4
+ /** @default "sender" */
5
+ type?: "responder" | "sender";
6
+ orientation?: "left" | "right";
7
+ }
8
+ export declare const Message: FC<MessageProps>;
9
+ export default Message;
@@ -0,0 +1,3 @@
1
+ import { Message } from './Message';
2
+ export { type MessageProps, Message } from './Message';
3
+ export default Message;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Message } from '..';
3
+ declare const meta: Meta<typeof Message>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Message>;
6
+ export declare const Default: Story;
7
+ export declare const Responder: Story;
8
+ export declare const MessageOnly: Story;
9
+ export declare const OrientationRight: Story;
@@ -50,6 +50,7 @@ import { SegmentedControlProps } from '../SegmentedControl';
50
50
  import { SegmentProps } from '../SegmentedControl/components/Segment';
51
51
  import { FileCardProps } from '../FileCard';
52
52
  import { FileFieldProps } from '../FileField';
53
+ import { AlignProps } from '../Align';
53
54
  import type * as Aria from "react-aria-components";
54
55
  export * from './types';
55
56
  export interface FlowComponentPropsTypes {
@@ -58,6 +59,7 @@ export interface FlowComponentPropsTypes {
58
59
  Alert: AlertProps;
59
60
  AlertBadge: AlertBadgeProps;
60
61
  AlertIcon: AlertIconProps;
62
+ Align: AlignProps;
61
63
  Avatar: AvatarProps;
62
64
  Badge: BadgeProps;
63
65
  Button: ButtonProps;
@@ -5,6 +5,7 @@ export declare const propsContext: import('react').Context<Partial<{
5
5
  Alert: import('./types').ComponentPropsContext<"Alert">;
6
6
  AlertBadge: import('./types').ComponentPropsContext<"AlertBadge">;
7
7
  AlertIcon: import('./types').ComponentPropsContext<"AlertIcon">;
8
+ Align: import('./types').ComponentPropsContext<"Align">;
8
9
  Avatar: import('./types').ComponentPropsContext<"Avatar">;
9
10
  Badge: import('./types').ComponentPropsContext<"Badge">;
10
11
  Button: import('./types').ComponentPropsContext<"Button">;
@@ -67,6 +68,7 @@ export declare const PropsContextProvider: import('react').Provider<Partial<{
67
68
  Alert: import('./types').ComponentPropsContext<"Alert">;
68
69
  AlertBadge: import('./types').ComponentPropsContext<"AlertBadge">;
69
70
  AlertIcon: import('./types').ComponentPropsContext<"AlertIcon">;
71
+ Align: import('./types').ComponentPropsContext<"Align">;
70
72
  Avatar: import('./types').ComponentPropsContext<"Avatar">;
71
73
  Badge: import('./types').ComponentPropsContext<"Badge">;
72
74
  Button: import('./types').ComponentPropsContext<"Button">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.358",
3
+ "version": "0.1.0-alpha.359",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -242,6 +242,11 @@
242
242
  "types": "./dist/js/types/components/MenuItem/index.d.ts",
243
243
  "import": "./dist/js/MenuItem.js"
244
244
  },
245
+ "./Message/styles.css": "./dist/css/Message.css",
246
+ "./Message": {
247
+ "types": "./dist/js/types/components/Message/index.d.ts",
248
+ "import": "./dist/js/Message.js"
249
+ },
245
250
  "./Modal/styles.css": "./dist/css/Modal.css",
246
251
  "./Modal": {
247
252
  "types": "./dist/js/types/components/Modal/index.d.ts",
@@ -420,7 +425,7 @@
420
425
  "@chakra-ui/live-region": "^2.1.0",
421
426
  "@internationalized/date": "^3.6.0",
422
427
  "@internationalized/string-compiler": "^3.2.6",
423
- "@mittwald/react-tunnel": "^0.1.0-alpha.358",
428
+ "@mittwald/react-tunnel": "^0.1.0-alpha.359",
424
429
  "@mittwald/react-use-promise": "^2.6.0",
425
430
  "@react-aria/form": "^3.0.11",
426
431
  "@react-aria/utils": "^3.26.0",
@@ -451,7 +456,7 @@
451
456
  },
452
457
  "devDependencies": {
453
458
  "@faker-js/faker": "^9.2.0",
454
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.358",
459
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.359",
455
460
  "@mittwald/react-use-promise": "^2.6.0",
456
461
  "@nx/storybook": "^20.1.3",
457
462
  "@storybook/addon-a11y": "^8.4.5",
@@ -546,5 +551,5 @@
546
551
  }
547
552
  }
548
553
  },
549
- "gitHead": "3b4d762bd7143dff9a2bb842ec0c27bdbe438e46"
554
+ "gitHead": "873ee92fed2b742deddd25f2b0f2f5ae1537af77"
550
555
  }