@mittwald/flow-react-components 0.2.0-alpha.275 → 0.2.0-alpha.277
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 +10 -0
- package/dist/assets/doc-properties.json +447 -447
- package/dist/css/all.css +1 -1
- package/dist/js/components/src/components/Chat/Chat.mjs +7 -1
- package/dist/js/components/src/components/Chat/Chat.mjs.map +1 -1
- package/dist/js/components/src/components/Chat/Chat.module.scss.mjs +4 -2
- package/dist/js/components/src/components/Chat/Chat.module.scss.mjs.map +1 -1
- package/dist/types/components/Chat/Chat.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -6,6 +6,7 @@ import styles from './Chat.module.scss.mjs';
|
|
|
6
6
|
import '../../lib/propsContext/propsContext.mjs';
|
|
7
7
|
import 'react';
|
|
8
8
|
import '../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
9
|
+
import { dynamic } from '../../lib/propsContext/dynamicProps/dynamic.mjs';
|
|
9
10
|
import { PropsContextProvider } from '../../lib/propsContext/PropsContextProvider.mjs';
|
|
10
11
|
import { TunnelProvider, TunnelExit } from '@mittwald/react-tunnel';
|
|
11
12
|
|
|
@@ -16,7 +17,12 @@ const Chat = (props) => {
|
|
|
16
17
|
MessageThread: {
|
|
17
18
|
tunnelId: "messageThread"
|
|
18
19
|
},
|
|
19
|
-
FileCardList: { className: styles.fileCardList, tunnelId: "fileCardList" }
|
|
20
|
+
FileCardList: { className: styles.fileCardList, tunnelId: "fileCardList" },
|
|
21
|
+
Button: {
|
|
22
|
+
className: dynamic((props2) => {
|
|
23
|
+
return props2.color === "accent" ? styles.accentButton : void 0;
|
|
24
|
+
})
|
|
25
|
+
}
|
|
20
26
|
};
|
|
21
27
|
return /* @__PURE__ */ jsx(PropsContextProvider, { props: propsContext, mergeInParentContext: true, children: /* @__PURE__ */ jsx("div", { style: { height }, className: rootClassName, children: /* @__PURE__ */ jsxs(TunnelProvider, { children: [
|
|
22
28
|
/* @__PURE__ */ jsx("div", { className: styles.messageThreadContainer, children: /* @__PURE__ */ jsx(TunnelExit, { id: "messageThread" }) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.mjs","sources":["../../../../../../src/components/Chat/Chat.tsx"],"sourcesContent":["import type { CSSProperties, FC, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport styles from \"./Chat.module.scss\";\nimport {
|
|
1
|
+
{"version":3,"file":"Chat.mjs","sources":["../../../../../../src/components/Chat/Chat.tsx"],"sourcesContent":["import type { CSSProperties, FC, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport styles from \"./Chat.module.scss\";\nimport {\n dynamic,\n type PropsContext,\n PropsContextProvider,\n} from \"@/lib/propsContext\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\n\nexport interface ChatProps extends PropsWithChildren, PropsWithClassName {\n // Height of the chat component\n height?: CSSProperties[\"height\"];\n}\n\n/** @flr-generate all */\nexport const Chat: FC<ChatProps> = (props) => {\n const { height, className, children } = props;\n\n const rootClassName = clsx(styles.chat, className);\n\n const propsContext: PropsContext = {\n MessageThread: {\n tunnelId: \"messageThread\",\n },\n FileCardList: { className: styles.fileCardList, tunnelId: \"fileCardList\" },\n Button: {\n className: dynamic((props) => {\n return props.color === \"accent\" ? styles.accentButton : undefined;\n }),\n },\n };\n\n return (\n <PropsContextProvider props={propsContext} mergeInParentContext>\n <div style={{ height }} className={rootClassName}>\n <TunnelProvider>\n <div className={styles.messageThreadContainer}>\n <TunnelExit id=\"messageThread\" />\n </div>\n <div className={styles.controls}>{children}</div>\n <TunnelExit id=\"fileCardList\" />\n </TunnelProvider>\n </div>\n </PropsContextProvider>\n );\n};\n\nexport default Chat;\n"],"names":["props"],"mappings":";;;;;;;;;;AAiBa,MAAA,IAAA,GAAsB,CAAC,KAAU,KAAA;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,SAAW,EAAA,QAAA,EAAa,GAAA,KAAA;AAExC,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,IAAA,EAAM,SAAS,CAAA;AAEjD,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,aAAe,EAAA;AAAA,MACb,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,cAAc,EAAE,SAAA,EAAW,MAAO,CAAA,YAAA,EAAc,UAAU,cAAe,EAAA;AAAA,IACzE,MAAQ,EAAA;AAAA,MACN,SAAA,EAAW,OAAQ,CAAA,CAACA,MAAU,KAAA;AAC5B,QAAA,OAAOA,MAAM,CAAA,KAAA,KAAU,QAAW,GAAA,MAAA,CAAO,YAAe,GAAA,MAAA;AAAA,OACzD;AAAA;AACH,GACF;AAEA,EAAA,uBACG,GAAA,CAAA,oBAAA,EAAA,EAAqB,KAAO,EAAA,YAAA,EAAc,sBAAoB,IAC7D,EAAA,QAAA,kBAAA,GAAA,CAAC,KAAI,EAAA,EAAA,KAAA,EAAO,EAAE,MAAO,EAAA,EAAG,SAAW,EAAA,aAAA,EACjC,+BAAC,cACC,EAAA,EAAA,QAAA,EAAA;AAAA,oBAAC,GAAA,CAAA,KAAA,EAAA,EAAI,WAAW,MAAO,CAAA,sBAAA,EACrB,8BAAC,UAAW,EAAA,EAAA,EAAA,EAAG,iBAAgB,CACjC,EAAA,CAAA;AAAA,oBACC,GAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,MAAA,CAAO,UAAW,QAAS,EAAA,CAAA;AAAA,oBAC3C,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,cAAe,EAAA;AAAA,GAAA,EAChC,GACF,CACF,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -4,12 +4,14 @@ const chat = "flow--chat";
|
|
|
4
4
|
const messageThreadContainer = "flow--chat--message-thread-container";
|
|
5
5
|
const fileCardList = "flow--chat--file-card-list";
|
|
6
6
|
const controls = "flow--chat--controls";
|
|
7
|
+
const accentButton = "flow--chat--accent-button";
|
|
7
8
|
const styles = {
|
|
8
9
|
chat: chat,
|
|
9
10
|
messageThreadContainer: messageThreadContainer,
|
|
10
11
|
fileCardList: fileCardList,
|
|
11
|
-
controls: controls
|
|
12
|
+
controls: controls,
|
|
13
|
+
accentButton: accentButton
|
|
12
14
|
};
|
|
13
15
|
|
|
14
|
-
export { chat, controls, styles as default, fileCardList, messageThreadContainer };
|
|
16
|
+
export { accentButton, chat, controls, styles as default, fileCardList, messageThreadContainer };
|
|
15
17
|
//# sourceMappingURL=Chat.module.scss.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Chat.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAS5D,MAAM,WAAW,SAAU,SAAQ,iBAAiB,EAAE,kBAAkB;IAEtE,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;CAClC;AAED,wBAAwB;AACxB,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CA8B9B,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.277",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@chakra-ui/live-region": "^2.1.0",
|
|
59
59
|
"@internationalized/string-compiler": "^3.2.6",
|
|
60
60
|
"@mittwald/password-tools-js": "^2.1.4",
|
|
61
|
-
"@mittwald/react-tunnel": "0.2.0-alpha.
|
|
61
|
+
"@mittwald/react-tunnel": "0.2.0-alpha.277",
|
|
62
62
|
"@mittwald/react-use-promise": "^3.0.4",
|
|
63
63
|
"@react-aria/form": "^3.0.16",
|
|
64
64
|
"@react-aria/utils": "^3.29.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@faker-js/faker": "^9.8.0",
|
|
100
100
|
"@internationalized/date": "^3.8.1",
|
|
101
101
|
"@mittwald/flow-core": "",
|
|
102
|
-
"@mittwald/flow-design-tokens": "0.2.0-alpha.
|
|
102
|
+
"@mittwald/flow-design-tokens": "0.2.0-alpha.277",
|
|
103
103
|
"@mittwald/react-use-promise": "^3.0.4",
|
|
104
104
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.3",
|
|
105
105
|
"@mittwald/typescript-config": "",
|
|
@@ -181,5 +181,5 @@
|
|
|
181
181
|
"optional": true
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
|
-
"gitHead": "
|
|
184
|
+
"gitHead": "3aaf5c87963d4b3ca95d72b889efff114bae8db9"
|
|
185
185
|
}
|