@mittwald/flow-react-components 0.2.0-alpha.198 → 0.2.0-alpha.199
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 +6 -0
- package/dist/assets/doc-properties.json +565 -565
- package/dist/js/components/src/components/ContextMenu/lib.mjs +1 -1
- package/dist/js/components/src/components/ContextMenu/lib.mjs.map +1 -1
- package/dist/types/components/ContextMenu/lib.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -7,7 +7,7 @@ const getMenuItemSelectionVariant = (selectionMode) => {
|
|
|
7
7
|
return selectionMode === "single" || selectionMode === "multiple" ? "control" : selectionMode;
|
|
8
8
|
};
|
|
9
9
|
const getCloseOverlayType = (selectionMode) => {
|
|
10
|
-
return selectionMode === "multiple" ? void 0 : "ContextMenu";
|
|
10
|
+
return selectionMode === "multiple" || selectionMode === "switch" ? void 0 : "ContextMenu";
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export { getAriaSelectionMode, getCloseOverlayType, getMenuItemSelectionVariant };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.mjs","sources":["../../../../../../src/components/ContextMenu/lib.ts"],"sourcesContent":["export type ContextMenuSelectionMode =\n | \"single\"\n | \"multiple\"\n | \"navigation\"\n | \"switch\";\n\nexport const getAriaSelectionMode = (\n selectionMode?: ContextMenuSelectionMode,\n) => {\n return selectionMode === \"navigation\"\n ? \"none\"\n : selectionMode === \"switch\"\n ? \"multiple\"\n : selectionMode;\n};\n\nexport const getMenuItemSelectionVariant = (\n selectionMode?: ContextMenuSelectionMode,\n) => {\n return selectionMode === \"single\" || selectionMode === \"multiple\"\n ? \"control\"\n : selectionMode;\n};\n\nexport const getCloseOverlayType = (\n selectionMode?: ContextMenuSelectionMode,\n) => {\n return selectionMode === \"multiple\" ? undefined
|
|
1
|
+
{"version":3,"file":"lib.mjs","sources":["../../../../../../src/components/ContextMenu/lib.ts"],"sourcesContent":["export type ContextMenuSelectionMode =\n | \"single\"\n | \"multiple\"\n | \"navigation\"\n | \"switch\";\n\nexport const getAriaSelectionMode = (\n selectionMode?: ContextMenuSelectionMode,\n) => {\n return selectionMode === \"navigation\"\n ? \"none\"\n : selectionMode === \"switch\"\n ? \"multiple\"\n : selectionMode;\n};\n\nexport const getMenuItemSelectionVariant = (\n selectionMode?: ContextMenuSelectionMode,\n) => {\n return selectionMode === \"single\" || selectionMode === \"multiple\"\n ? \"control\"\n : selectionMode;\n};\n\nexport const getCloseOverlayType = (\n selectionMode?: ContextMenuSelectionMode,\n) => {\n return selectionMode === \"multiple\" || selectionMode === \"switch\"\n ? undefined\n : \"ContextMenu\";\n};\n"],"names":[],"mappings":"AAMa,MAAA,oBAAA,GAAuB,CAClC,aACG,KAAA;AACH,EAAA,OAAO,aAAkB,KAAA,YAAA,GACrB,MACA,GAAA,aAAA,KAAkB,WAChB,UACA,GAAA,aAAA;AACR;AAEa,MAAA,2BAAA,GAA8B,CACzC,aACG,KAAA;AACH,EAAA,OAAO,aAAkB,KAAA,QAAA,IAAY,aAAkB,KAAA,UAAA,GACnD,SACA,GAAA,aAAA;AACN;AAEa,MAAA,mBAAA,GAAsB,CACjC,aACG,KAAA;AACH,EAAA,OAAO,aAAkB,KAAA,UAAA,IAAc,aAAkB,KAAA,QAAA,GACrD,MACA,GAAA,aAAA;AACN;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextMenu/lib.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAChC,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,QAAQ,CAAC;AAEb,eAAO,MAAM,oBAAoB,GAC/B,gBAAgB,wBAAwB,+CAOzC,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,gBAAgB,wBAAwB,oDAKzC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,gBAAgB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextMenu/lib.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAChC,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,QAAQ,CAAC;AAEb,eAAO,MAAM,oBAAoB,GAC/B,gBAAgB,wBAAwB,+CAOzC,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,gBAAgB,wBAAwB,oDAKzC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,gBAAgB,wBAAwB,8BAKzC,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.199",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@chakra-ui/live-region": "^2.1.0",
|
|
55
55
|
"@internationalized/string-compiler": "^3.2.6",
|
|
56
|
-
"@mittwald/react-tunnel": "0.2.0-alpha.
|
|
56
|
+
"@mittwald/react-tunnel": "0.2.0-alpha.199",
|
|
57
57
|
"@mittwald/react-use-promise": "^3.0.4",
|
|
58
58
|
"@react-aria/form": "^3.0.14",
|
|
59
59
|
"@react-aria/utils": "^3.28.1",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@faker-js/faker": "^9.6.0",
|
|
94
94
|
"@internationalized/date": "^3.7.0",
|
|
95
|
-
"@mittwald/flow-design-tokens": "0.2.0-alpha.
|
|
95
|
+
"@mittwald/flow-design-tokens": "0.2.0-alpha.199",
|
|
96
96
|
"@mittwald/react-use-promise": "^2.6.0",
|
|
97
97
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.3",
|
|
98
98
|
"@mittwald/typescript-config": "",
|
|
@@ -173,5 +173,5 @@
|
|
|
173
173
|
"optional": true
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "b983de41263a74e38b6493f7b4e5828f52acb906"
|
|
177
177
|
}
|