@mittwald/flow-react-components 1.6.8 → 1.6.9
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/AGENTS.md +6 -7
- package/dist/assets/component-index.json +1 -1
- package/dist/assets/doc-properties.json +1 -1
- package/dist/js/packages/components/src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.mjs +1 -4
- package/dist/js/packages/components/src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.mjs.map +1 -1
- package/dist/types/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.d.ts +1 -4
- package/package.json +10 -10
|
@@ -6,10 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
import * as Aria from "react-aria-components";
|
|
7
7
|
// src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.tsx
|
|
8
8
|
var propsContext = { Button: { tunnel: null } };
|
|
9
|
-
/**
|
|
10
|
-
* @flr-generate all
|
|
11
|
-
* @flr-provider
|
|
12
|
-
*/
|
|
9
|
+
/** @flr-generate all */
|
|
13
10
|
var DialogTrigger = flowComponent("DialogTrigger", (props) => {
|
|
14
11
|
const { children, ...rest } = props;
|
|
15
12
|
return /* @__PURE__ */ jsx(Aria.DialogTrigger, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTrigger.mjs","names":[],"sources":["../../../../../../../../../src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { ComponentProps, FC } from \"react\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\n\nexport type DialogTriggerProps = ComponentProps<typeof Aria.DialogTrigger> &\n FlowComponentProps;\n\n/*\n * `OverlayTrigger` pins the trigger button in the local tree, but its props\n * context does not reach the host: `ModalTrigger`, `PopoverTrigger` and\n * `LightBoxTrigger` are not `@flr-generate`, so a remote tree emits this\n * trigger's view and the host materialises a `DialogTrigger` with no\n * `OverlayTrigger` around it. Pinning the button here is what makes the\n * invariant hold on both sides — see `overlayTriggersTunneledTo`.\n */\nconst propsContext: PropsContext = {\n Button: {\n tunnel: null,\n },\n};\n\n
|
|
1
|
+
{"version":3,"file":"DialogTrigger.mjs","names":[],"sources":["../../../../../../../../../src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { ComponentProps, FC } from \"react\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\n\nexport type DialogTriggerProps = ComponentProps<typeof Aria.DialogTrigger> &\n FlowComponentProps;\n\n/*\n * `OverlayTrigger` pins the trigger button in the local tree, but its props\n * context does not reach the host: `ModalTrigger`, `PopoverTrigger` and\n * `LightBoxTrigger` are not `@flr-generate`, so a remote tree emits this\n * trigger's view and the host materialises a `DialogTrigger` with no\n * `OverlayTrigger` around it. Pinning the button here is what makes the\n * invariant hold on both sides — see `overlayTriggersTunneledTo`.\n */\nconst propsContext: PropsContext = {\n Button: {\n tunnel: null,\n },\n};\n\n/** @flr-generate all */\nexport const DialogTrigger: FC<DialogTriggerProps> = flowComponent(\n \"DialogTrigger\",\n (props) => {\n const { children, ...rest } = props;\n\n return (\n <Aria.DialogTrigger {...rest}>\n <PropsContextProvider props={propsContext}>\n {children}\n </PropsContextProvider>\n </Aria.DialogTrigger>\n );\n },\n { type: \"provider\" },\n);\n\nexport default DialogTrigger;\n"],"mappings":";;;;;;;AAoBA,IAAM,eAA6B,EACjC,QAAQ,EACN,QAAQ,KACV,EACF;;AAGA,IAAa,gBAAwC,cACnD,kBACC,UAAU;CACT,MAAM,EAAE,UAAU,GAAG,SAAS;CAE9B,OACE,oBAAC,KAAK,eAAN;EAAoB,GAAI;EACtB,UAAA,oBAAC,sBAAD;GAAsB,OAAO;GAC1B;EACmB,CAAA;CACJ,CAAA;AAExB,GACA,EAAE,MAAM,WAAW,CACrB"}
|
|
@@ -2,9 +2,6 @@ import { ComponentProps, FC } from 'react';
|
|
|
2
2
|
import { FlowComponentProps } from '../../../../lib/componentFactory/flowComponent';
|
|
3
3
|
import * as Aria from "react-aria-components";
|
|
4
4
|
export type DialogTriggerProps = ComponentProps<typeof Aria.DialogTrigger> & FlowComponentProps;
|
|
5
|
-
/**
|
|
6
|
-
* @flr-generate all
|
|
7
|
-
* @flr-provider
|
|
8
|
-
*/
|
|
5
|
+
/** @flr-generate all */
|
|
9
6
|
export declare const DialogTrigger: FC<DialogTriggerProps>;
|
|
10
7
|
export default DialogTrigger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://flow.mittwald.de",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"@internationalized/string-compiler": "^3.4.1",
|
|
85
85
|
"@lezer/common": "^1.5.2",
|
|
86
86
|
"@lezer/highlight": "^1.2.3",
|
|
87
|
-
"@mittwald/flow-icons": "^1.6.
|
|
87
|
+
"@mittwald/flow-icons": "^1.6.9",
|
|
88
88
|
"@mittwald/password-tools-js": "^3.0.0",
|
|
89
|
-
"@mittwald/react-tunnel": "^1.6.
|
|
89
|
+
"@mittwald/react-tunnel": "^1.6.9",
|
|
90
90
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
91
91
|
"@react-aria/form": "^3.2.1",
|
|
92
92
|
"@react-aria/i18n": "^3.13.1",
|
|
@@ -139,13 +139,13 @@
|
|
|
139
139
|
"@internationalized/date": "^3.12.3",
|
|
140
140
|
"@lezer/generator": "^1.8.0",
|
|
141
141
|
"@lezer/lr": "^1.4.10",
|
|
142
|
-
"@mittwald/flow-components-base": "1.6.
|
|
143
|
-
"@mittwald/flow-core": "1.6.
|
|
144
|
-
"@mittwald/flow-design-tokens": "1.6.
|
|
145
|
-
"@mittwald/flow-icons-base": "1.6.
|
|
142
|
+
"@mittwald/flow-components-base": "1.6.9",
|
|
143
|
+
"@mittwald/flow-core": "1.6.9",
|
|
144
|
+
"@mittwald/flow-design-tokens": "1.6.9",
|
|
145
|
+
"@mittwald/flow-icons-base": "1.6.9",
|
|
146
146
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
147
147
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.10",
|
|
148
|
-
"@mittwald/typescript-config": "1.6.
|
|
148
|
+
"@mittwald/typescript-config": "1.6.9",
|
|
149
149
|
"@nx/storybook": "^22.7.6",
|
|
150
150
|
"@storybook/addon-a11y": "^10.5.10",
|
|
151
151
|
"@storybook/addon-actions": "^9.0.8",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
},
|
|
200
200
|
"peerDependencies": {
|
|
201
201
|
"@internationalized/date": "^3.12.2",
|
|
202
|
-
"@mittwald/flow-icons-pro": "1.6.
|
|
202
|
+
"@mittwald/flow-icons-pro": "1.6.9",
|
|
203
203
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
204
204
|
"next": "^16.2.3",
|
|
205
205
|
"react": "^19.2.0",
|
|
@@ -223,5 +223,5 @@
|
|
|
223
223
|
"browserslist": [
|
|
224
224
|
"baseline widely available"
|
|
225
225
|
],
|
|
226
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "0f2b39b1f7728820f5dd6f8cad03f79fd6b67823"
|
|
227
227
|
}
|