@mittwald/flow-react-components 0.1.0-alpha.406 → 0.1.0-alpha.408

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.
@@ -1,10 +1,8 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { PropsWithClassName } from '../../lib/types/props';
3
3
  export interface MessageProps extends PropsWithChildren, PropsWithClassName {
4
- /** Determines the color of the message. @default "sender" */
4
+ /** Determines the color and orientation of the message. @default "responder" */
5
5
  type?: "responder" | "sender";
6
- /** The orientation of the chat message. */
7
- orientation?: "left" | "right";
8
6
  }
9
7
  export declare const Message: FC<MessageProps>;
10
8
  export default Message;
@@ -4,6 +4,5 @@ declare const meta: Meta<typeof Message>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Message>;
6
6
  export declare const Default: Story;
7
- export declare const Responder: Story;
7
+ export declare const Sender: Story;
8
8
  export declare const MessageOnly: Story;
9
- export declare const OrientationRight: Story;
@@ -0,0 +1,4 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { PropsWithClassName } from '../../lib/types/props';
3
+ export type MessageThreadProps = PropsWithChildren & PropsWithClassName;
4
+ export declare const MessageThread: FC<MessageThreadProps>;
@@ -0,0 +1,3 @@
1
+ import { MessageThread } from './MessageThread';
2
+ export { type MessageThreadProps, MessageThread } from './MessageThread';
3
+ export default MessageThread;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { MessageThread } from '..';
3
+ declare const meta: Meta<typeof MessageThread>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MessageThread>;
6
+ export declare const Default: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.406",
3
+ "version": "0.1.0-alpha.408",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -257,6 +257,11 @@
257
257
  "types": "./dist/js/types/components/Message/index.d.ts",
258
258
  "import": "./dist/js/Message.js"
259
259
  },
260
+ "./MessageThread/styles.css": "./dist/css/MessageThread.css",
261
+ "./MessageThread": {
262
+ "types": "./dist/js/types/components/MessageThread/index.d.ts",
263
+ "import": "./dist/js/MessageThread.js"
264
+ },
260
265
  "./Modal/styles.css": "./dist/css/Modal.css",
261
266
  "./Modal": {
262
267
  "types": "./dist/js/types/components/Modal/index.d.ts",
@@ -435,7 +440,7 @@
435
440
  "@chakra-ui/live-region": "^2.1.0",
436
441
  "@internationalized/date": "^3.6.0",
437
442
  "@internationalized/string-compiler": "^3.2.6",
438
- "@mittwald/react-tunnel": "^0.1.0-alpha.406",
443
+ "@mittwald/react-tunnel": "^0.1.0-alpha.408",
439
444
  "@mittwald/react-use-promise": "^2.6.0",
440
445
  "@react-aria/form": "^3.0.11",
441
446
  "@react-aria/utils": "^3.26.0",
@@ -466,7 +471,7 @@
466
471
  },
467
472
  "devDependencies": {
468
473
  "@faker-js/faker": "^9.2.0",
469
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.406",
474
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.408",
470
475
  "@mittwald/react-use-promise": "^2.6.0",
471
476
  "@nx/storybook": "^20.1.3",
472
477
  "@storybook/addon-a11y": "^8.4.5",
@@ -561,5 +566,5 @@
561
566
  }
562
567
  }
563
568
  },
564
- "gitHead": "e520862b9e3f2fcdc1cd760824f491840677d146"
569
+ "gitHead": "607cea40ed8c7f75bab5e6e6ed89d0956ef39a84"
565
570
  }