@mittwald/flow-react-components 0.1.0-alpha.159 → 0.1.0-alpha.160

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.
Files changed (98) hide show
  1. package/dist/{Accordion-COefjSDe.js → Accordion-CYhhaTPz.js} +3 -3
  2. package/dist/Accordion.js +1 -1
  3. package/dist/ActionGroup.js +1 -1
  4. package/dist/Avatar.js +1 -1
  5. package/dist/Breadcrumb.js +2 -2
  6. package/dist/{Button-IKdIGp7F.js → Button-Cwmw6ZOq.js} +5 -5
  7. package/dist/Button.js +1 -1
  8. package/dist/{Checkbox-BvQmrLX8.js → Checkbox-DyIk5gNQ.js} +4 -4
  9. package/dist/Checkbox.js +1 -1
  10. package/dist/{CheckboxButton-DGo6XcEz.js → CheckboxButton-BtW15qLh.js} +2 -2
  11. package/dist/CheckboxButton.js +1 -1
  12. package/dist/CheckboxGroup.js +3 -3
  13. package/dist/{Content-D0XPj3df.js → Content-DzPlkCt6.js} +1 -1
  14. package/dist/Content.js +1 -1
  15. package/dist/ContextMenu.js +3 -3
  16. package/dist/{ContextMenuTrigger-C060kgmE.js → ContextMenuTrigger-BQd2xsku.js} +2 -2
  17. package/dist/ContextualHelp.js +4 -4
  18. package/dist/CopyButton.js +4 -4
  19. package/dist/CounterBadge.js +1 -1
  20. package/dist/{FieldDescription-DEwshe3o.js → FieldDescription-OElYhleN.js} +2 -2
  21. package/dist/FieldDescription.js +1 -1
  22. package/dist/{FieldError-Dab589IV.js → FieldError-BqzJ-th_.js} +3 -3
  23. package/dist/FieldError.js +1 -1
  24. package/dist/{Header-D_2PLC-c.js → Header-aoK_P4c0.js} +1 -1
  25. package/dist/Header.js +1 -1
  26. package/dist/{Heading-Bgo7T_0B.js → Heading-DccQpM5H.js} +1 -1
  27. package/dist/Heading.js +1 -1
  28. package/dist/{Icon-BcUUAuaS.js → Icon-DZtYAxOE.js} +1 -1
  29. package/dist/Icon.js +1 -1
  30. package/dist/{IconCheck-DCcrnlQY.js → IconCheck-Cm1gvSQ8.js} +1 -1
  31. package/dist/{IconCheckboxEmpty-DIDENgdN.js → IconCheckboxEmpty-ccUrf06Z.js} +1 -1
  32. package/dist/{IconCheckboxIndeterminate-BG6Hlmel.js → IconCheckboxIndeterminate-SLhx-v9a.js} +1 -1
  33. package/dist/{IconChevronDown-BLMCfrbC.js → IconChevronDown-CGnrjHX3.js} +1 -1
  34. package/dist/{IconChevronRight-Bvq54XQN.js → IconChevronRight-Dixpcc04.js} +1 -1
  35. package/dist/{IconChevronUp-C_hv0Y2Y.js → IconChevronUp-BnxkbKEB.js} +1 -1
  36. package/dist/{IconClose-CdUWYo5g.js → IconClose-DT3oFw36.js} +1 -1
  37. package/dist/{IconContextMenu-UwZtP1Vm.js → IconContextMenu-DdPbJs2w.js} +1 -1
  38. package/dist/{IconCopy-CivNYUwi.js → IconCopy-C2go6pyT.js} +1 -1
  39. package/dist/{IconDanger-HspqG_TV.js → IconDanger-B21HKj1x.js} +1 -1
  40. package/dist/{IconInfo-DMFotbkY.js → IconInfo-Dent1rgM.js} +1 -1
  41. package/dist/{IconPending-Cx03rtHO.js → IconPending-DPp9dgT8.js} +1 -1
  42. package/dist/{IconPlus-DFd6fTT9.js → IconPlus-D_m-diZi.js} +1 -1
  43. package/dist/{IconRadioOn-D56UzZk_.js → IconRadioOn-DAWP-hCl.js} +1 -1
  44. package/dist/{IconSearch-CII3Rynb.js → IconSearch-BtJxLn18.js} +1 -1
  45. package/dist/{IconSucceeded-Bij5JZkw.js → IconSucceeded-C1muSWMu.js} +1 -1
  46. package/dist/{IconWarning-AOwtgvqO.js → IconWarning-CEw4kwPi.js} +1 -1
  47. package/dist/Icons.js +18 -18
  48. package/dist/Image.js +1 -1
  49. package/dist/Initials.js +1 -1
  50. package/dist/InlineAlert.js +2 -2
  51. package/dist/{Label-OQTaTaNO.js → Label-BlTqklNB.js} +1 -1
  52. package/dist/Label.js +1 -1
  53. package/dist/LayoutCard.js +1 -1
  54. package/dist/{Link-DLgnm7xr.js → Link-DrSmRSXL.js} +1 -1
  55. package/dist/Link.js +1 -1
  56. package/dist/List.js +11 -11
  57. package/dist/{LoadingSpinner-CmmNwPqS.js → LoadingSpinner-CmcuqQza.js} +2 -2
  58. package/dist/LoadingSpinner.js +1 -1
  59. package/dist/{MenuItem-BZ7qjsc2.js → MenuItem-C-wnf-qA.js} +5 -5
  60. package/dist/MenuItem.js +1 -1
  61. package/dist/Modal.js +79 -37
  62. package/dist/Navigation.js +2 -2
  63. package/dist/Notification.js +5 -5
  64. package/dist/NumberField.js +7 -7
  65. package/dist/{Popover-B6ltwGLO.js → Popover-B1m8lc6F.js} +1 -1
  66. package/dist/Popover.js +1 -1
  67. package/dist/RadioGroup.js +5 -5
  68. package/dist/Section.js +1 -1
  69. package/dist/Select.js +5 -5
  70. package/dist/Slider.js +4 -4
  71. package/dist/StatusBadge.js +3 -3
  72. package/dist/{StatusIcon-CBgx8H6P.js → StatusIcon-Dh4v-yid.js} +4 -4
  73. package/dist/StatusIcon.js +1 -1
  74. package/dist/Switch.js +5 -5
  75. package/dist/Tabs.js +7 -7
  76. package/dist/{Text-DyGiCNHx.js → Text-C_luMjbn.js} +1 -1
  77. package/dist/Text.js +1 -1
  78. package/dist/TextArea.js +2 -2
  79. package/dist/TextField.js +2 -2
  80. package/dist/{TextFieldBase-41pgAJ1k.js → TextFieldBase-BKF0nW47.js} +2 -2
  81. package/dist/{flowComponent-DDs2bWU2.js → flowComponent-TgbbWDzO.js} +2 -3
  82. package/dist/react-hook-form.js +1 -1
  83. package/dist/styles.css +1 -1
  84. package/dist/types/components/Modal/Modal.d.ts +2 -1
  85. package/dist/types/components/Modal/stories/EdgeCases.stories.d.ts +1 -0
  86. package/dist/types/components/propTypes/index.d.ts +0 -2
  87. package/dist/types/lib/controller/overlay/context.d.ts +0 -1
  88. package/dist/types/lib/propsContext/propsContext.d.ts +0 -2
  89. package/dist/types/lib/slotContext/slotContext.d.ts +0 -1
  90. package/package.json +4 -8
  91. package/dist/ModalOverlay-BRUQRt0W.js +0 -34
  92. package/dist/OffCanvas.js +0 -70
  93. package/dist/types/components/OffCanvas/OffCanvas.d.ts +0 -10
  94. package/dist/types/components/OffCanvas/components/OffCanvasTrigger/OffCanvasTrigger.d.ts +0 -6
  95. package/dist/types/components/OffCanvas/components/OffCanvasTrigger/index.d.ts +0 -4
  96. package/dist/types/components/OffCanvas/index.d.ts +0 -5
  97. package/dist/types/components/OffCanvas/stories/Default.stories.d.ts +0 -7
  98. package/dist/types/components/OffCanvas/stories/EdgeCases.stories.d.ts +0 -7
@@ -1,8 +1,9 @@
1
1
  import { PropsWithChildren, default as React } from 'react';
2
2
  import { OverlayController } from '../../lib/controller/overlay';
3
3
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
+ import { PropsWithClassName } from '../../lib/types/props';
4
5
 
5
- export interface ModalProps extends PropsWithChildren, FlowComponentProps {
6
+ export interface ModalProps extends PropsWithChildren, FlowComponentProps, PropsWithClassName {
6
7
  /** @default "s" */
7
8
  size?: "s" | "m" | "l";
8
9
  offCanvas?: boolean;
@@ -5,3 +5,4 @@ declare const meta: Meta<typeof Modal>;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof Modal>;
7
7
  export declare const LongContent: Story;
8
+ export declare const LongContentOffCanvas: Story;
@@ -32,7 +32,6 @@ import { ModalProps } from '../Modal';
32
32
  import { SectionProps } from '../Section';
33
33
  import { SliderProps } from '../Slider';
34
34
  import { CounterBadgeProps } from '../CounterBadge';
35
- import { OffCanvasProps } from '../OffCanvas';
36
35
  import { ContextualHelpProps } from '../ContextualHelp';
37
36
  import { PopoverProps } from '../Popover';
38
37
  import { ContextMenuSectionProps } from '../ContextMenu/components/ContextMenuSection';
@@ -67,7 +66,6 @@ export interface FlowComponentPropsTypes {
67
66
  Modal: ModalProps;
68
67
  NumberField: NumberFieldProps;
69
68
  Option: OptionProps;
70
- OffCanvas: OffCanvasProps;
71
69
  Popover: PopoverProps;
72
70
  Radio: RadioProps;
73
71
  RadioButton: RadioButtonProps;
@@ -33,7 +33,6 @@ export declare const overlayContext: import('react').Context<Partial<{
33
33
  Modal: OverlayController | undefined;
34
34
  NumberField: OverlayController | undefined;
35
35
  Option: OverlayController | undefined;
36
- OffCanvas: OverlayController | undefined;
37
36
  Popover: OverlayController | undefined;
38
37
  Radio: OverlayController | undefined;
39
38
  RadioButton: OverlayController | undefined;
@@ -29,7 +29,6 @@ export declare const propsContext: import('react').Context<Partial<{
29
29
  Modal: import('./types').ComponentPropsContext<"Modal">;
30
30
  NumberField: import('./types').ComponentPropsContext<"NumberField">;
31
31
  Option: import('./types').ComponentPropsContext<"Option">;
32
- OffCanvas: import('./types').ComponentPropsContext<"OffCanvas">;
33
32
  Popover: import('./types').ComponentPropsContext<"Popover">;
34
33
  Radio: import('./types').ComponentPropsContext<"Radio">;
35
34
  RadioButton: import('./types').ComponentPropsContext<"RadioButton">;
@@ -74,7 +73,6 @@ export declare const PropsContextProvider: import('react').Provider<Partial<{
74
73
  Modal: import('./types').ComponentPropsContext<"Modal">;
75
74
  NumberField: import('./types').ComponentPropsContext<"NumberField">;
76
75
  Option: import('./types').ComponentPropsContext<"Option">;
77
- OffCanvas: import('./types').ComponentPropsContext<"OffCanvas">;
78
76
  Popover: import('./types').ComponentPropsContext<"Popover">;
79
77
  Radio: import('./types').ComponentPropsContext<"Radio">;
80
78
  RadioButton: import('./types').ComponentPropsContext<"RadioButton">;
@@ -29,7 +29,6 @@ export declare const slotContext: import('react').Context<Partial<{
29
29
  Modal: string;
30
30
  NumberField: string;
31
31
  Option: string;
32
- OffCanvas: string;
33
32
  Popover: string;
34
33
  Radio: string;
35
34
  RadioButton: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.159",
3
+ "version": "0.1.0-alpha.160",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -170,10 +170,6 @@
170
170
  "types": "./dist/types/components/NumberField/index.d.ts",
171
171
  "import": "./dist/NumberField.js"
172
172
  },
173
- "./OffCanvas": {
174
- "types": "./dist/types/components/OffCanvas/index.d.ts",
175
- "import": "./dist/OffCanvas.js"
176
- },
177
173
  "./Popover": {
178
174
  "types": "./dist/types/components/Popover/index.d.ts",
179
175
  "import": "./dist/Popover.js"
@@ -280,7 +276,7 @@
280
276
  "dependencies": {
281
277
  "@chakra-ui/live-region": "^2.1.0",
282
278
  "@internationalized/string-compiler": "^3.2.4",
283
- "@mittwald/react-tunnel": "^0.1.0-alpha.159",
279
+ "@mittwald/react-tunnel": "^0.1.0-alpha.160",
284
280
  "@mittwald/react-use-promise": "^2.3.13",
285
281
  "@react-aria/utils": "^3.24.1",
286
282
  "@react-types/shared": "^3.23.1",
@@ -307,7 +303,7 @@
307
303
  },
308
304
  "devDependencies": {
309
305
  "@faker-js/faker": "^8.4.1",
310
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.159",
306
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.160",
311
307
  "@mittwald/react-use-promise": "^2.3.13",
312
308
  "@nx/storybook": "^19.3.0",
313
309
  "@storybook/addon-a11y": "^8.1.10",
@@ -383,5 +379,5 @@
383
379
  "optional": true
384
380
  }
385
381
  },
386
- "gitHead": "f9caa7c56513eb7628ffa988b851f526226e6179"
382
+ "gitHead": "920b0b1640ab2745bc8ee0b07f026fc1a236c399"
387
383
  }
@@ -1,34 +0,0 @@
1
- "use client"
2
- /* */
3
- import * as r from "react-aria-components";
4
- import e from "react";
5
- import p from "clsx";
6
- import "mobx";
7
- import { u as v } from "./useOverlayController-D8N4X2rc.js";
8
- import { O as d } from "./OverlayContextProvider-DJzKzUwy.js";
9
- const f = "flow--modal-overlay--overlay", u = {
10
- overlay: f,
11
- "overlay-fade": "flow--modal-overlay--overlay-fade"
12
- }, F = (l) => {
13
- const {
14
- controller: t,
15
- children: a,
16
- isDismissable: s = !0,
17
- className: n
18
- } = l, m = v("Modal", {
19
- reuseControllerFromContext: !0
20
- }), o = t ?? m, c = o.useIsOpen(), i = p(u.overlay, n);
21
- return /* @__PURE__ */ e.createElement(
22
- r.ModalOverlay,
23
- {
24
- className: i,
25
- isDismissable: s,
26
- isOpen: c,
27
- onOpenChange: (y) => o.setOpen(y)
28
- },
29
- /* @__PURE__ */ e.createElement(r.Modal, null, /* @__PURE__ */ e.createElement(r.Dialog, null, /* @__PURE__ */ e.createElement(d, { type: "Modal", controller: o }, a)))
30
- );
31
- };
32
- export {
33
- F as M
34
- };
package/dist/OffCanvas.js DELETED
@@ -1,70 +0,0 @@
1
- "use client"
2
- /* */
3
- import o from "react";
4
- import i from "clsx";
5
- import "mobx";
6
- import { u as p } from "./useOverlayController-D8N4X2rc.js";
7
- import { B as v } from "./Button-IKdIGp7F.js";
8
- import "@tabler/icons-react";
9
- import "./Icon-BcUUAuaS.js";
10
- import { I as d } from "./IconClose-CdUWYo5g.js";
11
- import { A as C } from "./Action-DYTtbQCP.js";
12
- import { M as u } from "./ModalOverlay-BRUQRt0W.js";
13
- import "./propsContext-DzAKlmhS.js";
14
- import { P as O } from "./PropsContextProvider-C6Z4XGp6.js";
15
- import "@react-aria/utils";
16
- import "remeda";
17
- import { TunnelProvider as g, TunnelExit as y } from "@mittwald/react-tunnel";
18
- import { H as E } from "./Header-D_2PLC-c.js";
19
- import { f as h } from "./flowComponent-DDs2bWU2.js";
20
- import { O as x } from "./OverlayContextProvider-DJzKzUwy.js";
21
- import * as P from "react-aria-components";
22
- import { O as w } from "./OverlayTrigger-Bdb65OEJ.js";
23
- const T = "flow--off-canvas", B = "flow--off-canvas--header", N = "flow--off-canvas--close-button", t = {
24
- offCanvas: T,
25
- "off-canvas-slide-in": "flow--off-canvas--off-canvas-slide-in",
26
- "off-canvas-slide-out": "flow--off-canvas--off-canvas-slide-out",
27
- header: B,
28
- closeButton: N
29
- }, U = h("OffCanvas", (e) => {
30
- const {
31
- controller: r,
32
- refProp: a,
33
- children: l,
34
- className: s
35
- } = e, f = i(t.offCanvas, s), m = p("OffCanvas", {
36
- reuseControllerFromContext: !0
37
- }), n = r ?? m, c = {
38
- Heading: {
39
- slot: "title",
40
- tunnelId: "heading",
41
- levelVisual: 4,
42
- level: 2
43
- }
44
- };
45
- return /* @__PURE__ */ o.createElement(u, { controller: n, className: f }, /* @__PURE__ */ o.createElement(x, { type: "OffCanvas", controller: n }, /* @__PURE__ */ o.createElement(O, { props: c }, /* @__PURE__ */ o.createElement(g, null, /* @__PURE__ */ o.createElement(E, { className: t.header }, /* @__PURE__ */ o.createElement(y, { id: "heading" }), /* @__PURE__ */ o.createElement(C, { closeOverlay: "OffCanvas" }, /* @__PURE__ */ o.createElement(
46
- v,
47
- {
48
- variant: "plain",
49
- color: "secondary",
50
- className: t.closeButton
51
- },
52
- /* @__PURE__ */ o.createElement(d, null)
53
- ))), l))));
54
- }), W = (e) => {
55
- const { children: r, ...a } = e;
56
- return /* @__PURE__ */ o.createElement(
57
- w,
58
- {
59
- overlayType: "OffCanvas",
60
- ...a,
61
- component: P.DialogTrigger
62
- },
63
- r
64
- );
65
- };
66
- export {
67
- U as OffCanvas,
68
- W as OffCanvasTrigger,
69
- U as default
70
- };
@@ -1,10 +0,0 @@
1
- import { PropsWithChildren, default as React } from 'react';
2
- import { OverlayController } from '../../lib/controller/overlay';
3
- import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
-
5
- export interface OffCanvasProps extends PropsWithChildren, FlowComponentProps {
6
- controller?: OverlayController;
7
- className?: string;
8
- }
9
- export declare const OffCanvas: React.ForwardRefExoticComponent<OffCanvasProps & React.RefAttributes<never>>;
10
- export default OffCanvas;
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- import { OverlayTriggerProps } from '../../../OverlayTrigger';
3
-
4
- type Props = Omit<OverlayTriggerProps, "overlayType">;
5
- export declare const OffCanvasTrigger: FC<Props>;
6
- export {};
@@ -1,4 +0,0 @@
1
- import { OffCanvasTrigger } from './OffCanvasTrigger';
2
-
3
- export * from './OffCanvasTrigger';
4
- export default OffCanvasTrigger;
@@ -1,5 +0,0 @@
1
- import { OffCanvas } from './OffCanvas';
2
-
3
- export * from './components/OffCanvasTrigger';
4
- export { type OffCanvasProps, OffCanvas } from './OffCanvas';
5
- export default OffCanvas;
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { OffCanvas } from '..';
3
-
4
- declare const meta: Meta<typeof OffCanvas>;
5
- export default meta;
6
- type Story = StoryObj<typeof OffCanvas>;
7
- export declare const Default: Story;
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { OffCanvas } from '..';
3
-
4
- declare const meta: Meta<typeof OffCanvas>;
5
- export default meta;
6
- type Story = StoryObj<typeof OffCanvas>;
7
- export declare const LongTexts: Story;