@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.
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  /* */
3
- import { C as t } from "./ContextMenuTrigger-DvbVYHFh.js";
4
- import { a } from "./ContextMenuTrigger-DvbVYHFh.js";
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-FxIUjWed.js";
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";
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  /* */
3
3
  import t from "react";
4
- import { P as s } from "./PopoverTrigger-FxIUjWed.js";
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";
@@ -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-FxIUjWed.js";
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";
@@ -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-FxIUjWed.js";
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-DvbVYHFh.js";
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-FxIUjWed.js";
4
- import { a as p } from "./PopoverTrigger-FxIUjWed.js";
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 h } from "./useOverlayController-D8pgx8nV.js";
7
+ import { u as y } from "./useOverlayController-D8pgx8nV.js";
8
8
  import { f as a } from "./flowComponent-uZXy7sF4.js";
9
- import { O as y, a as E } from "./OverlayTrigger-bD8_mPel.js";
10
- const x = "flow--popover", N = "flow--popover--content", T = "flow--popover--tip", s = {
11
- popover: x,
12
- content: N,
13
- tip: T,
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
- }, M = a("Popover", (r) => {
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
- ...P
26
- } = r, C = h("Popover", {
25
+ width: P,
26
+ ...d
27
+ } = r, C = y("Popover", {
27
28
  reuseControllerFromContext: !0,
28
29
  isDefaultOpen: g
29
- }), p = m ?? C, d = p.useIsOpen(), O = l(s.popover, n), u = i ? o.Dialog : "div";
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
- ...P,
34
- className: O,
34
+ ...d,
35
+ className: w,
35
36
  containerPadding: 16,
36
37
  ref: f,
37
- isOpen: d,
38
- onOpenChange: (w) => p.setOpen(w)
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(u, { className: l(s.content, c) }, /* @__PURE__ */ e.createElement(y, { type: "Popover", controller: p }, t))
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
- }), R = a("PopoverTrigger", (r) => {
51
+ }), b = a("PopoverTrigger", (r) => {
44
52
  const { children: t, ...n } = r;
45
53
  return /* @__PURE__ */ e.createElement(
46
- E,
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
- M as P,
57
- R as a
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-FxIUjWed.js";
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-DvbVYHFh.js";
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
@@ -0,0 +1,7 @@
1
+ "use client"
2
+ /* */
3
+ import { W as r } from "./Wrap-DGT1h1o3.js";
4
+ export {
5
+ r as Wrap,
6
+ r as default
7
+ };
@@ -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;
@@ -9,3 +9,4 @@ export declare const MultipleSelection: Story;
9
9
  export declare const WithLinks: Story;
10
10
  export declare const WithSeparator: Story;
11
11
  export declare const WithContextMenuSection: Story;
12
+ export declare const CustomWidth: Story;
@@ -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.282",
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.282",
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.282",
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": "4b4f6e2e28e28f442776d8d938babd6d9dbc612b"
424
+ "gitHead": "a86840a9f95dc24d5d7b6824b6cef9801ab56d43"
421
425
  }