@mittwald/flow-react-components 0.1.0-alpha.222 → 0.1.0-alpha.224

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 (103) hide show
  1. package/dist/{Accordion--kpK3YKE.js → Accordion-DfUoOtpv.js} +3 -3
  2. package/dist/Accordion.js +1 -1
  3. package/dist/{Action-DDxiedkP.js → Action-B6lMX6do.js} +1 -1
  4. package/dist/Action.js +1 -1
  5. package/dist/ActionGroup.js +1 -1
  6. package/dist/Avatar.js +1 -1
  7. package/dist/Breadcrumb.js +2 -2
  8. package/dist/{Button-Diz7bJSd.js → Button-DPF2xiJl.js} +5 -5
  9. package/dist/Button.js +1 -1
  10. package/dist/{CalendarHeader-B-Q6D1bE.js → CalendarHeader-DffUkgNw.js} +4 -4
  11. package/dist/{Checkbox-DzoDOfq9.js → Checkbox-RASCJfmz.js} +4 -4
  12. package/dist/Checkbox.js +1 -1
  13. package/dist/{CheckboxButton-DEUEr__-.js → CheckboxButton-CXdHPBrd.js} +2 -2
  14. package/dist/CheckboxButton.js +1 -1
  15. package/dist/CheckboxGroup.js +3 -3
  16. package/dist/{Content-DbFVi9k6.js → Content-DGmkm9cU.js} +1 -1
  17. package/dist/Content.js +1 -1
  18. package/dist/ContextMenu.js +3 -3
  19. package/dist/{ContextMenuTrigger-CF_GKYD4.js → ContextMenuTrigger-CYlZTk_W.js} +4 -4
  20. package/dist/ContextualHelp.js +5 -5
  21. package/dist/CopyButton.js +5 -5
  22. package/dist/CounterBadge.js +1 -1
  23. package/dist/DatePicker.js +26 -22
  24. package/dist/DateRangePicker.js +32 -28
  25. package/dist/{FieldDescription-DoivBm2_.js → FieldDescription-B3sXF5Jy.js} +2 -2
  26. package/dist/FieldDescription.js +1 -1
  27. package/dist/{FieldError-Cy1YgUwR.js → FieldError-CEquAsls.js} +3 -3
  28. package/dist/FieldError.js +1 -1
  29. package/dist/{Header-Cuy51cs2.js → Header-BC3V_ugP.js} +1 -1
  30. package/dist/Header.js +1 -1
  31. package/dist/{Heading-Df_N3SfU.js → Heading-CYASkLvk.js} +1 -1
  32. package/dist/Heading.js +1 -1
  33. package/dist/{Icon-xXMUxDeh.js → Icon-0QYDidQk.js} +1 -1
  34. package/dist/Icon.js +1 -1
  35. package/dist/{IconCalendar-C3wFsjhX.js → IconCalendar-BGo-M1_G.js} +1 -1
  36. package/dist/{IconCheck-CxrOx7bD.js → IconCheck-kPAdcx3h.js} +1 -1
  37. package/dist/{IconCheckboxEmpty-C9l8nvzy.js → IconCheckboxEmpty-CoGUuXtO.js} +1 -1
  38. package/dist/{IconCheckboxIndeterminate-C0wEc-cJ.js → IconCheckboxIndeterminate-Bjj70fpd.js} +1 -1
  39. package/dist/{IconChevronDown-MoPIcV7D.js → IconChevronDown-BSK1qOl0.js} +1 -1
  40. package/dist/{IconChevronRight-D75NMLPi.js → IconChevronRight-Dj3jk8WE.js} +1 -1
  41. package/dist/{IconChevronUp-DLRnduFq.js → IconChevronUp-D7lT3t1_.js} +1 -1
  42. package/dist/{IconClose-Dpg06KWE.js → IconClose-gMf32kww.js} +1 -1
  43. package/dist/{IconContextMenu-CqELGjcu.js → IconContextMenu-DQey4U_b.js} +1 -1
  44. package/dist/{IconCopy-BB-YmjG0.js → IconCopy-COLtYvRI.js} +1 -1
  45. package/dist/{IconDanger-DY4ZSIAt.js → IconDanger-1BGpTe7U.js} +1 -1
  46. package/dist/{IconInfo-_3yD7B3m.js → IconInfo-Dug3kHx4.js} +1 -1
  47. package/dist/{IconPending-uN4I60f_.js → IconPending-BtrsEror.js} +1 -1
  48. package/dist/{IconPlus-DrGr3eu6.js → IconPlus-CgQ84K31.js} +1 -1
  49. package/dist/{IconRadioOn-CEKP8PZ6.js → IconRadioOn-9d8UX_6A.js} +1 -1
  50. package/dist/{IconSearch-u0eN3CXI.js → IconSearch-BfV1RCJ-.js} +1 -1
  51. package/dist/{IconSettings-wO7yPnFp.js → IconSettings-CsKvxfZb.js} +1 -1
  52. package/dist/{IconSucceeded-BC9lig72.js → IconSucceeded-DfMfXb4k.js} +1 -1
  53. package/dist/{IconWarning-Dw66SYiR.js → IconWarning-BZpNEOZk.js} +1 -1
  54. package/dist/Icons.js +20 -20
  55. package/dist/Image.js +1 -1
  56. package/dist/Initials.js +1 -1
  57. package/dist/InlineAlert.js +2 -2
  58. package/dist/{Label-BNXkIRki.js → Label-DDi1b6gx.js} +1 -1
  59. package/dist/Label.js +1 -1
  60. package/dist/LayoutCard.js +1 -1
  61. package/dist/{Link-B_wXydOP.js → Link-C47hcAzV.js} +1 -1
  62. package/dist/Link.js +1 -1
  63. package/dist/List.js +14 -14
  64. package/dist/{LoadingSpinner-C5XU6tOf.js → LoadingSpinner-DbFj3289.js} +2 -2
  65. package/dist/LoadingSpinner.js +1 -1
  66. package/dist/{MenuItem-BU_2S9C5.js → MenuItem-Dr-3EfkY.js} +5 -5
  67. package/dist/MenuItem.js +1 -1
  68. package/dist/Modal.js +7 -7
  69. package/dist/Navigation.js +2 -2
  70. package/dist/Notification.js +5 -5
  71. package/dist/NumberField.js +7 -7
  72. package/dist/OverlayTrigger-bD8_mPel.js +38 -0
  73. package/dist/Popover.js +2 -2
  74. package/dist/{PopoverTrigger-BDroxnj4.js → PopoverTrigger-BpW0w6yf.js} +2 -2
  75. package/dist/RadioGroup.js +5 -5
  76. package/dist/{SearchField-BSlgLaxM.js → SearchField-CH1MrE_x.js} +6 -6
  77. package/dist/SearchField.js +1 -1
  78. package/dist/{Section-BkVDtcgs.js → Section-CrnRDzAf.js} +1 -1
  79. package/dist/Section.js +1 -1
  80. package/dist/Select.js +6 -6
  81. package/dist/Slider.js +4 -4
  82. package/dist/StatusBadge.js +3 -3
  83. package/dist/{StatusIcon-DbYQhDqR.js → StatusIcon-CMJEehNi.js} +4 -4
  84. package/dist/StatusIcon.js +1 -1
  85. package/dist/Switch.js +5 -5
  86. package/dist/Tabs.js +7 -7
  87. package/dist/{Text-lNxNLb4p.js → Text-pgjmZdTC.js} +1 -1
  88. package/dist/Text.js +1 -1
  89. package/dist/TextArea.js +2 -2
  90. package/dist/TextField.js +2 -2
  91. package/dist/{TextFieldBase-D-OqfoiV.js → TextFieldBase-Ch7tzfgT.js} +2 -2
  92. package/dist/{flowComponent-B-Ivvh0Y.js → flowComponent-DT1Ap-ot.js} +8 -7
  93. package/dist/react-hook-form.js +2 -2
  94. package/dist/styles.css +1 -1
  95. package/dist/types/components/DatePicker/DatePicker.d.ts +2 -2
  96. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +2 -2
  97. package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts +2 -0
  98. package/dist/types/components/propTypes/index.d.ts +1 -0
  99. package/dist/types/lib/controller/overlay/context.d.ts +1 -0
  100. package/dist/types/lib/propsContext/propsContext.d.ts +2 -0
  101. package/dist/types/lib/slotContext/slotContext.d.ts +1 -0
  102. package/package.json +4 -4
  103. package/dist/OverlayTrigger-BPwYjPfK.js +0 -37
@@ -1,7 +1,7 @@
1
- import { FC, PropsWithChildren, ReactNode } from 'react';
1
+ import { PropsWithChildren, ReactNode, default as React } from 'react';
2
2
  import * as Aria from "react-aria-components";
3
3
  export interface DatePickerProps<T extends Aria.DateValue> extends PropsWithChildren<Omit<Aria.DatePickerProps<T>, "children">> {
4
4
  errorMessage?: ReactNode;
5
5
  }
6
- export declare const DatePicker: FC<DatePickerProps<Aria.DateValue>>;
6
+ export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps<Aria.DateValue> & React.RefAttributes<never>>;
7
7
  export default DatePicker;
@@ -1,7 +1,7 @@
1
- import { FC, PropsWithChildren, ReactNode } from 'react';
1
+ import { PropsWithChildren, ReactNode, default as React } from 'react';
2
2
  import * as Aria from "react-aria-components";
3
3
  export interface DateRangePickerProps<T extends Aria.DateValue> extends PropsWithChildren<Omit<Aria.DateRangePickerProps<T>, "children">> {
4
4
  errorMessage?: ReactNode;
5
5
  }
6
- export declare const DateRangePicker: FC<DateRangePickerProps<Aria.DateValue>>;
6
+ export declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps<Aria.DateValue> & React.RefAttributes<never>>;
7
7
  export default DateRangePicker;
@@ -1,4 +1,5 @@
1
1
  import { ComponentType, FC, ReactNode } from 'react';
2
+ import { OverlayController } from '../../lib/controller';
2
3
  import { FlowComponentName } from '../propTypes';
3
4
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
5
  type AriaComponentType = ComponentType<{
@@ -8,6 +9,7 @@ type AriaComponentType = ComponentType<{
8
9
  export interface OverlayTriggerProps extends FlowComponentProps {
9
10
  isDefaultOpen?: boolean;
10
11
  children: ReactNode;
12
+ controller?: OverlayController;
11
13
  }
12
14
  interface Props extends OverlayTriggerProps {
13
15
  overlayType: FlowComponentName;
@@ -89,6 +89,7 @@ export interface FlowComponentPropsTypes {
89
89
  StatusBadge: StatusBadgeProps;
90
90
  Switch: SwitchProps;
91
91
  Tabs: TabsProps;
92
+ TabTitle: TabsProps;
92
93
  Text: TextProps;
93
94
  TextArea: TextAreaProps;
94
95
  TextField: TextFieldProps;
@@ -49,6 +49,7 @@ export declare const overlayContext: import('react').Context<Partial<{
49
49
  StatusBadge: OverlayController | undefined;
50
50
  Switch: OverlayController | undefined;
51
51
  Tabs: OverlayController | undefined;
52
+ TabTitle: OverlayController | undefined;
52
53
  Text: OverlayController | undefined;
53
54
  TextArea: OverlayController | undefined;
54
55
  TextField: OverlayController | undefined;
@@ -45,6 +45,7 @@ export declare const propsContext: import('react').Context<Partial<{
45
45
  StatusBadge: import('./types').ComponentPropsContext<"StatusBadge">;
46
46
  Switch: import('./types').ComponentPropsContext<"Switch">;
47
47
  Tabs: import('./types').ComponentPropsContext<"Tabs">;
48
+ TabTitle: import('./types').ComponentPropsContext<"TabTitle">;
48
49
  Text: import('./types').ComponentPropsContext<"Text">;
49
50
  TextArea: import('./types').ComponentPropsContext<"TextArea">;
50
51
  TextField: import('./types').ComponentPropsContext<"TextField">;
@@ -96,6 +97,7 @@ export declare const PropsContextProvider: import('react').Provider<Partial<{
96
97
  StatusBadge: import('./types').ComponentPropsContext<"StatusBadge">;
97
98
  Switch: import('./types').ComponentPropsContext<"Switch">;
98
99
  Tabs: import('./types').ComponentPropsContext<"Tabs">;
100
+ TabTitle: import('./types').ComponentPropsContext<"TabTitle">;
99
101
  Text: import('./types').ComponentPropsContext<"Text">;
100
102
  TextArea: import('./types').ComponentPropsContext<"TextArea">;
101
103
  TextField: import('./types').ComponentPropsContext<"TextField">;
@@ -45,6 +45,7 @@ export declare const slotContext: import('react').Context<Partial<{
45
45
  StatusBadge: string;
46
46
  Switch: string;
47
47
  Tabs: string;
48
+ TabTitle: string;
48
49
  Text: string;
49
50
  TextArea: string;
50
51
  TextField: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.222",
3
+ "version": "0.1.0-alpha.224",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -301,7 +301,7 @@
301
301
  "@chakra-ui/live-region": "^2.1.0",
302
302
  "@internationalized/date": "^3.5.5",
303
303
  "@internationalized/string-compiler": "^3.2.4",
304
- "@mittwald/react-tunnel": "^0.1.0-alpha.222",
304
+ "@mittwald/react-tunnel": "^0.1.0-alpha.224",
305
305
  "@mittwald/react-use-promise": "^2.4.0",
306
306
  "@react-aria/utils": "^3.25.2",
307
307
  "@react-types/shared": "^3.24.1",
@@ -327,7 +327,7 @@
327
327
  },
328
328
  "devDependencies": {
329
329
  "@faker-js/faker": "^8.4.1",
330
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.222",
330
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.224",
331
331
  "@mittwald/react-use-promise": "^2.4.0",
332
332
  "@nx/storybook": "^19.6.4",
333
333
  "@storybook/addon-a11y": "^8.2.9",
@@ -405,5 +405,5 @@
405
405
  "optional": true
406
406
  }
407
407
  },
408
- "gitHead": "652a5cbf3dfff4bc6e32ca614c651f77f17012bf"
408
+ "gitHead": "93bcb5e4927432c1e9cac5bc7333a04d764a8dd6"
409
409
  }
@@ -1,37 +0,0 @@
1
- "use client"
2
- /* */
3
- import e from "react";
4
- import { u as c, o as i, O as m } from "./context-Cf7tqFtF.js";
5
- import "./propsContext-DzAKlmhS.js";
6
- import { P as v } from "./PropsContextProvider-C6Z4XGp6.js";
7
- import "@react-aria/utils";
8
- import "remeda";
9
- const y = (r) => {
10
- const { type: t, controller: o, children: n } = r, a = c();
11
- return /* @__PURE__ */ e.createElement(
12
- i.Provider,
13
- {
14
- value: {
15
- ...a,
16
- [t]: o
17
- }
18
- },
19
- n
20
- );
21
- }, f = (r) => {
22
- const {
23
- overlayType: t,
24
- isDefaultOpen: o = !1,
25
- component: n,
26
- children: a
27
- } = r, s = m.useNew({ isDefaultOpen: o }), l = s.useIsOpen(), p = {
28
- Button: {
29
- onPress: s.open
30
- }
31
- };
32
- return /* @__PURE__ */ e.createElement(y, { type: t, controller: s }, /* @__PURE__ */ e.createElement(v, { props: p, mergeInParentContext: !0 }, /* @__PURE__ */ e.createElement(n, { isOpen: l }, a)));
33
- };
34
- export {
35
- y as O,
36
- f as a
37
- };