@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.
- package/dist/{Accordion--kpK3YKE.js → Accordion-DfUoOtpv.js} +3 -3
- package/dist/Accordion.js +1 -1
- package/dist/{Action-DDxiedkP.js → Action-B6lMX6do.js} +1 -1
- package/dist/Action.js +1 -1
- package/dist/ActionGroup.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Breadcrumb.js +2 -2
- package/dist/{Button-Diz7bJSd.js → Button-DPF2xiJl.js} +5 -5
- package/dist/Button.js +1 -1
- package/dist/{CalendarHeader-B-Q6D1bE.js → CalendarHeader-DffUkgNw.js} +4 -4
- package/dist/{Checkbox-DzoDOfq9.js → Checkbox-RASCJfmz.js} +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/{CheckboxButton-DEUEr__-.js → CheckboxButton-CXdHPBrd.js} +2 -2
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +3 -3
- package/dist/{Content-DbFVi9k6.js → Content-DGmkm9cU.js} +1 -1
- package/dist/Content.js +1 -1
- package/dist/ContextMenu.js +3 -3
- package/dist/{ContextMenuTrigger-CF_GKYD4.js → ContextMenuTrigger-CYlZTk_W.js} +4 -4
- package/dist/ContextualHelp.js +5 -5
- package/dist/CopyButton.js +5 -5
- package/dist/CounterBadge.js +1 -1
- package/dist/DatePicker.js +26 -22
- package/dist/DateRangePicker.js +32 -28
- package/dist/{FieldDescription-DoivBm2_.js → FieldDescription-B3sXF5Jy.js} +2 -2
- package/dist/FieldDescription.js +1 -1
- package/dist/{FieldError-Cy1YgUwR.js → FieldError-CEquAsls.js} +3 -3
- package/dist/FieldError.js +1 -1
- package/dist/{Header-Cuy51cs2.js → Header-BC3V_ugP.js} +1 -1
- package/dist/Header.js +1 -1
- package/dist/{Heading-Df_N3SfU.js → Heading-CYASkLvk.js} +1 -1
- package/dist/Heading.js +1 -1
- package/dist/{Icon-xXMUxDeh.js → Icon-0QYDidQk.js} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{IconCalendar-C3wFsjhX.js → IconCalendar-BGo-M1_G.js} +1 -1
- package/dist/{IconCheck-CxrOx7bD.js → IconCheck-kPAdcx3h.js} +1 -1
- package/dist/{IconCheckboxEmpty-C9l8nvzy.js → IconCheckboxEmpty-CoGUuXtO.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-C0wEc-cJ.js → IconCheckboxIndeterminate-Bjj70fpd.js} +1 -1
- package/dist/{IconChevronDown-MoPIcV7D.js → IconChevronDown-BSK1qOl0.js} +1 -1
- package/dist/{IconChevronRight-D75NMLPi.js → IconChevronRight-Dj3jk8WE.js} +1 -1
- package/dist/{IconChevronUp-DLRnduFq.js → IconChevronUp-D7lT3t1_.js} +1 -1
- package/dist/{IconClose-Dpg06KWE.js → IconClose-gMf32kww.js} +1 -1
- package/dist/{IconContextMenu-CqELGjcu.js → IconContextMenu-DQey4U_b.js} +1 -1
- package/dist/{IconCopy-BB-YmjG0.js → IconCopy-COLtYvRI.js} +1 -1
- package/dist/{IconDanger-DY4ZSIAt.js → IconDanger-1BGpTe7U.js} +1 -1
- package/dist/{IconInfo-_3yD7B3m.js → IconInfo-Dug3kHx4.js} +1 -1
- package/dist/{IconPending-uN4I60f_.js → IconPending-BtrsEror.js} +1 -1
- package/dist/{IconPlus-DrGr3eu6.js → IconPlus-CgQ84K31.js} +1 -1
- package/dist/{IconRadioOn-CEKP8PZ6.js → IconRadioOn-9d8UX_6A.js} +1 -1
- package/dist/{IconSearch-u0eN3CXI.js → IconSearch-BfV1RCJ-.js} +1 -1
- package/dist/{IconSettings-wO7yPnFp.js → IconSettings-CsKvxfZb.js} +1 -1
- package/dist/{IconSucceeded-BC9lig72.js → IconSucceeded-DfMfXb4k.js} +1 -1
- package/dist/{IconWarning-Dw66SYiR.js → IconWarning-BZpNEOZk.js} +1 -1
- package/dist/Icons.js +20 -20
- package/dist/Image.js +1 -1
- package/dist/Initials.js +1 -1
- package/dist/InlineAlert.js +2 -2
- package/dist/{Label-BNXkIRki.js → Label-DDi1b6gx.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LayoutCard.js +1 -1
- package/dist/{Link-B_wXydOP.js → Link-C47hcAzV.js} +1 -1
- package/dist/Link.js +1 -1
- package/dist/List.js +14 -14
- package/dist/{LoadingSpinner-C5XU6tOf.js → LoadingSpinner-DbFj3289.js} +2 -2
- package/dist/LoadingSpinner.js +1 -1
- package/dist/{MenuItem-BU_2S9C5.js → MenuItem-Dr-3EfkY.js} +5 -5
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +7 -7
- package/dist/Navigation.js +2 -2
- package/dist/Notification.js +5 -5
- package/dist/NumberField.js +7 -7
- package/dist/OverlayTrigger-bD8_mPel.js +38 -0
- package/dist/Popover.js +2 -2
- package/dist/{PopoverTrigger-BDroxnj4.js → PopoverTrigger-BpW0w6yf.js} +2 -2
- package/dist/RadioGroup.js +5 -5
- package/dist/{SearchField-BSlgLaxM.js → SearchField-CH1MrE_x.js} +6 -6
- package/dist/SearchField.js +1 -1
- package/dist/{Section-BkVDtcgs.js → Section-CrnRDzAf.js} +1 -1
- package/dist/Section.js +1 -1
- package/dist/Select.js +6 -6
- package/dist/Slider.js +4 -4
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-DbYQhDqR.js → StatusIcon-CMJEehNi.js} +4 -4
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Tabs.js +7 -7
- package/dist/{Text-lNxNLb4p.js → Text-pgjmZdTC.js} +1 -1
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +2 -2
- package/dist/TextField.js +2 -2
- package/dist/{TextFieldBase-D-OqfoiV.js → TextFieldBase-Ch7tzfgT.js} +2 -2
- package/dist/{flowComponent-B-Ivvh0Y.js → flowComponent-DT1Ap-ot.js} +8 -7
- package/dist/react-hook-form.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts +2 -0
- package/dist/types/components/propTypes/index.d.ts +1 -0
- package/dist/types/lib/controller/overlay/context.d.ts +1 -0
- package/dist/types/lib/propsContext/propsContext.d.ts +2 -0
- package/dist/types/lib/slotContext/slotContext.d.ts +1 -0
- package/package.json +4 -4
- package/dist/OverlayTrigger-BPwYjPfK.js +0 -37
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
6
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps<Aria.DateValue> & React.RefAttributes<never>>;
|
|
7
7
|
export default DatePicker;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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;
|
|
@@ -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">;
|
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.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.
|
|
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.
|
|
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": "
|
|
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
|
-
};
|