@mittwald/flow-react-components 0.1.0-alpha.282 → 0.1.0-alpha.284
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/dist/ContextMenu.js +2 -2
- package/dist/{ContextMenuTrigger-DvbVYHFh.js → ContextMenuTrigger-C5qGifbA.js} +1 -1
- package/dist/ContextualHelp.js +1 -1
- package/dist/DatePicker.js +1 -1
- package/dist/DateRangePicker.js +1 -1
- package/dist/List.js +1 -1
- package/dist/Popover.js +2 -2
- package/dist/{PopoverTrigger-FxIUjWed.js → PopoverTrigger-5ZSb5Xrj.js} +27 -19
- package/dist/Select.js +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/Wrap.js +7 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +1 -0
- package/dist/types/components/ContextMenu/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/Popover/Popover.d.ts +1 -0
- package/package.json +8 -4
package/dist/ContextMenu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { C as t } from "./ContextMenuTrigger-
|
|
4
|
-
import { a } from "./ContextMenuTrigger-
|
|
3
|
+
import { C as t } from "./ContextMenuTrigger-C5qGifbA.js";
|
|
4
|
+
import { a } from "./ContextMenuTrigger-C5qGifbA.js";
|
|
5
5
|
import { M as n } from "./MenuItem-CWcJNHm3.js";
|
|
6
6
|
export {
|
|
7
7
|
t as ContextMenu,
|
|
@@ -4,7 +4,7 @@ import e from "react";
|
|
|
4
4
|
import * as i from "react-aria-components";
|
|
5
5
|
import { s } from "./ContextMenu.module-BZingr2B.js";
|
|
6
6
|
import { f as c } from "./flowComponent-uZXy7sF4.js";
|
|
7
|
-
import { P } from "./PopoverTrigger-
|
|
7
|
+
import { P } from "./PopoverTrigger-5ZSb5Xrj.js";
|
|
8
8
|
import { C as E } from "./ClearPropsContext-CUvsbMn8.js";
|
|
9
9
|
import { P as O } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
10
10
|
import "@react-aria/utils";
|
package/dist/ContextualHelp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
|
-
import { P as s } from "./PopoverTrigger-
|
|
4
|
+
import { P as s } from "./PopoverTrigger-5ZSb5Xrj.js";
|
|
5
5
|
import "./propsContext-DzAKlmhS.js";
|
|
6
6
|
import { P as l } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
7
|
import "@react-aria/utils";
|
package/dist/DatePicker.js
CHANGED
|
@@ -13,7 +13,7 @@ import "./Icon-COqUQ8Af.js";
|
|
|
13
13
|
import { a as C } from "./IconCalendar-9aQBibiV.js";
|
|
14
14
|
import { F as D } from "./FieldError-DeuLuagS.js";
|
|
15
15
|
import { f as a } from "./FormField.module-CqWpTQKP.js";
|
|
16
|
-
import { P as N } from "./PopoverTrigger-
|
|
16
|
+
import { P as N } from "./PopoverTrigger-5ZSb5Xrj.js";
|
|
17
17
|
import "mobx";
|
|
18
18
|
import { u as P } from "./useOverlayController-D8pgx8nV.js";
|
|
19
19
|
import { f as y } from "./flowComponent-uZXy7sF4.js";
|
package/dist/DateRangePicker.js
CHANGED
|
@@ -8,7 +8,7 @@ import { P as f } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import * as t from "react-aria-components";
|
|
11
|
-
import { P as g } from "./PopoverTrigger-
|
|
11
|
+
import { P as g } from "./PopoverTrigger-5ZSb5Xrj.js";
|
|
12
12
|
import { s as i, C } from "./CalendarHeader-B04CnM9J.js";
|
|
13
13
|
import { B as D } from "./Button-Da1fC2tj.js";
|
|
14
14
|
import "@tabler/icons-react";
|
package/dist/List.js
CHANGED
|
@@ -13,7 +13,7 @@ import { B as y } from "./Button-Da1fC2tj.js";
|
|
|
13
13
|
import { IconArrowBackUp as rt } from "@tabler/icons-react";
|
|
14
14
|
import { I as ue } from "./Icon-COqUQ8Af.js";
|
|
15
15
|
import { I as lt } from "./IconContextMenu-CzXLrZcd.js";
|
|
16
|
-
import { a as R, C as Y } from "./ContextMenuTrigger-
|
|
16
|
+
import { a as R, C as Y } from "./ContextMenuTrigger-C5qGifbA.js";
|
|
17
17
|
import { M as _ } from "./MenuItem-CWcJNHm3.js";
|
|
18
18
|
import { useLocalizedStringFormatter as w } from "react-aria";
|
|
19
19
|
import { TunnelProvider as ye, TunnelExit as D } from "@mittwald/react-tunnel";
|
package/dist/Popover.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { P as r } from "./PopoverTrigger-
|
|
4
|
-
import { a as p } from "./PopoverTrigger-
|
|
3
|
+
import { P as r } from "./PopoverTrigger-5ZSb5Xrj.js";
|
|
4
|
+
import { a as p } from "./PopoverTrigger-5ZSb5Xrj.js";
|
|
5
5
|
export {
|
|
6
6
|
r as Popover,
|
|
7
7
|
p as PopoverTrigger,
|
|
@@ -4,15 +4,15 @@ import e from "react";
|
|
|
4
4
|
import * as o from "react-aria-components";
|
|
5
5
|
import l from "clsx";
|
|
6
6
|
import "mobx";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as y } from "./useOverlayController-D8pgx8nV.js";
|
|
8
8
|
import { f as a } from "./flowComponent-uZXy7sF4.js";
|
|
9
|
-
import { O as
|
|
10
|
-
const
|
|
11
|
-
popover:
|
|
12
|
-
content:
|
|
13
|
-
tip:
|
|
9
|
+
import { O as E, a as x } from "./OverlayTrigger-bD8_mPel.js";
|
|
10
|
+
const N = "flow--popover", T = "flow--popover--content", D = "flow--popover--tip", s = {
|
|
11
|
+
popover: N,
|
|
12
|
+
content: T,
|
|
13
|
+
tip: D,
|
|
14
14
|
"popover-slide": "flow--popover--popover-slide"
|
|
15
|
-
},
|
|
15
|
+
}, R = a("Popover", (r) => {
|
|
16
16
|
const {
|
|
17
17
|
children: t,
|
|
18
18
|
className: n,
|
|
@@ -22,28 +22,36 @@ const x = "flow--popover", N = "flow--popover--content", T = "flow--popover--tip
|
|
|
22
22
|
withTip: v,
|
|
23
23
|
refProp: f,
|
|
24
24
|
defaultOpen: g = !1,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
width: P,
|
|
26
|
+
...d
|
|
27
|
+
} = r, C = y("Popover", {
|
|
27
28
|
reuseControllerFromContext: !0,
|
|
28
29
|
isDefaultOpen: g
|
|
29
|
-
}), p = m ?? C,
|
|
30
|
+
}), p = m ?? C, O = p.useIsOpen(), w = l(s.popover, n), h = i ? o.Dialog : "div";
|
|
30
31
|
return /* @__PURE__ */ e.createElement(
|
|
31
32
|
o.Popover,
|
|
32
33
|
{
|
|
33
|
-
...
|
|
34
|
-
className:
|
|
34
|
+
...d,
|
|
35
|
+
className: w,
|
|
35
36
|
containerPadding: 16,
|
|
36
37
|
ref: f,
|
|
37
|
-
isOpen:
|
|
38
|
-
onOpenChange: (
|
|
38
|
+
isOpen: O,
|
|
39
|
+
onOpenChange: (u) => p.setOpen(u)
|
|
39
40
|
},
|
|
40
41
|
v && /* @__PURE__ */ e.createElement(o.OverlayArrow, { className: s.tip }, /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16" }, /* @__PURE__ */ e.createElement("path", { d: "M0 0 L8 8 L16 0" }))),
|
|
41
|
-
/* @__PURE__ */ e.createElement(
|
|
42
|
+
/* @__PURE__ */ e.createElement(
|
|
43
|
+
h,
|
|
44
|
+
{
|
|
45
|
+
style: { width: P },
|
|
46
|
+
className: l(s.content, c)
|
|
47
|
+
},
|
|
48
|
+
/* @__PURE__ */ e.createElement(E, { type: "Popover", controller: p }, t)
|
|
49
|
+
)
|
|
42
50
|
);
|
|
43
|
-
}),
|
|
51
|
+
}), b = a("PopoverTrigger", (r) => {
|
|
44
52
|
const { children: t, ...n } = r;
|
|
45
53
|
return /* @__PURE__ */ e.createElement(
|
|
46
|
-
|
|
54
|
+
x,
|
|
47
55
|
{
|
|
48
56
|
overlayType: "Popover",
|
|
49
57
|
...n,
|
|
@@ -53,6 +61,6 @@ const x = "flow--popover", N = "flow--popover--content", T = "flow--popover--tip
|
|
|
53
61
|
);
|
|
54
62
|
});
|
|
55
63
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
R as P,
|
|
65
|
+
b as a
|
|
58
66
|
};
|
package/dist/Select.js
CHANGED
|
@@ -13,7 +13,7 @@ import "@tabler/icons-react";
|
|
|
13
13
|
import "./Icon-COqUQ8Af.js";
|
|
14
14
|
import { I as F } from "./IconChevronDown-Cs4gzBPk.js";
|
|
15
15
|
import { f as E } from "./flowComponent-uZXy7sF4.js";
|
|
16
|
-
import { P } from "./PopoverTrigger-
|
|
16
|
+
import { P } from "./PopoverTrigger-5ZSb5Xrj.js";
|
|
17
17
|
import "mobx";
|
|
18
18
|
import { u as C } from "./useOverlayController-D8pgx8nV.js";
|
|
19
19
|
import { TunnelProvider as y, TunnelExit as I } from "@mittwald/react-tunnel";
|
package/dist/Tabs.js
CHANGED
|
@@ -6,7 +6,7 @@ import u from "clsx";
|
|
|
6
6
|
import { TunnelExit as E, TunnelProvider as y, TunnelEntry as f } from "@mittwald/react-tunnel";
|
|
7
7
|
import { f as O } from "./flowComponent-uZXy7sF4.js";
|
|
8
8
|
import { useCallbackRef as S } from "use-callback-ref";
|
|
9
|
-
import { a as A, C as B } from "./ContextMenuTrigger-
|
|
9
|
+
import { a as A, C as B } from "./ContextMenuTrigger-C5qGifbA.js";
|
|
10
10
|
import { M as K } from "./MenuItem-CWcJNHm3.js";
|
|
11
11
|
import { B as L } from "./Button-Da1fC2tj.js";
|
|
12
12
|
import "@tabler/icons-react";
|
package/dist/Wrap.js
ADDED
|
@@ -5,6 +5,7 @@ import { MenuItemProps } from '../MenuItem';
|
|
|
5
5
|
import * as Aria from "react-aria-components";
|
|
6
6
|
export interface ContextMenuProps extends Omit<PopoverProps, "withTip">, Pick<Aria.MenuProps<MenuItemProps>, "onAction" | "selectedKeys" | "defaultSelectedKeys" | "onSelectionChange" | "disabledKeys">, FlowComponentProps {
|
|
7
7
|
selectionMode?: "single" | "multiple" | "navigation";
|
|
8
|
+
width?: string | number;
|
|
8
9
|
}
|
|
9
10
|
export declare const ContextMenu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<never>>;
|
|
10
11
|
export default ContextMenu;
|
|
@@ -6,6 +6,7 @@ export interface PopoverProps extends PropsWithChildren<Omit<Aria.PopoverProps,
|
|
|
6
6
|
isDialogContent?: boolean;
|
|
7
7
|
controller?: OverlayController;
|
|
8
8
|
contentClassName?: string;
|
|
9
|
+
width?: string | number;
|
|
9
10
|
}
|
|
10
11
|
export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<never>>;
|
|
11
12
|
export default Popover;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.284",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -278,6 +278,10 @@
|
|
|
278
278
|
"types": "./dist/types/components/Tooltip/index.d.ts",
|
|
279
279
|
"import": "./dist/Tooltip.js"
|
|
280
280
|
},
|
|
281
|
+
"./Wrap": {
|
|
282
|
+
"types": "./dist/types/components/Wrap/index.d.ts",
|
|
283
|
+
"import": "./dist/Wrap.js"
|
|
284
|
+
},
|
|
281
285
|
"./hooks": {
|
|
282
286
|
"types": "./dist/types/lib/hooks/index.d.ts",
|
|
283
287
|
"import": "./dist/hooks.js"
|
|
@@ -313,7 +317,7 @@
|
|
|
313
317
|
"@chakra-ui/live-region": "^2.1.0",
|
|
314
318
|
"@internationalized/date": "^3.5.6",
|
|
315
319
|
"@internationalized/string-compiler": "^3.2.5",
|
|
316
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
320
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.284",
|
|
317
321
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
318
322
|
"@react-aria/utils": "^3.25.3",
|
|
319
323
|
"@react-types/shared": "^3.25.0",
|
|
@@ -340,7 +344,7 @@
|
|
|
340
344
|
},
|
|
341
345
|
"devDependencies": {
|
|
342
346
|
"@faker-js/faker": "^9.0.3",
|
|
343
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
347
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.284",
|
|
344
348
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
345
349
|
"@nx/storybook": "^20.0.0",
|
|
346
350
|
"@storybook/addon-a11y": "^8.3.5",
|
|
@@ -417,5 +421,5 @@
|
|
|
417
421
|
"optional": true
|
|
418
422
|
}
|
|
419
423
|
},
|
|
420
|
-
"gitHead": "
|
|
424
|
+
"gitHead": "a86840a9f95dc24d5d7b6824b6cef9801ab56d43"
|
|
421
425
|
}
|