@mittwald/flow-react-components 0.1.0-alpha.163 → 0.1.0-alpha.166
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/ContextMenu.module-BfwGh62L.js +10 -0
- package/dist/{ContextMenuTrigger-BQd2xsku.js → ContextMenuTrigger-D8BGdVFU.js} +28 -30
- package/dist/Label-DJKxRIAA.js +34 -0
- package/dist/Label.js +1 -1
- package/dist/List.js +132 -116
- package/dist/NumberField.js +41 -55
- package/dist/PropsContextProvider.js +9 -0
- package/dist/RadioGroup.js +42 -41
- package/dist/Section.js +19 -19
- package/dist/Switch.js +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/getContainerBreakpointSizeClassName-BrcFDcCY.js +6 -0
- package/dist/react-hook-form.js +80 -64
- package/dist/styles.css +1 -1
- package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts +1 -1
- package/dist/types/components/Label/Label.d.ts +1 -0
- package/dist/types/components/List/components/Items/ListItem/ListItem.d.ts +2 -2
- package/dist/types/components/List/stories/ListItem.stories.d.ts +1 -0
- package/dist/types/components/Tabs/components/Tab/context.d.ts +0 -1
- package/dist/types/components/propTypes/index.d.ts +2 -1
- package/dist/types/integrations/react-hook-form/components/ActionGroupWrapper/SubmitButtonStateProvider.d.ts +7 -0
- package/dist/types/integrations/react-hook-form/components/AutoFormResetEffect/AutoFormResetEffect.d.ts +7 -0
- package/dist/types/lib/propsContext/dynamicProps/dynamic.d.ts +2 -1
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.d.ts +2 -2
- package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.d.ts +2 -1
- package/dist/types/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.d.ts +2 -2
- package/dist/types/lib/propsContext/useProps.d.ts +2 -2
- package/package.json +40 -36
- package/dist/Label-BlTqklNB.js +0 -32
package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { FlowComponentProps } from '../../../../lib/componentFactory/flowCompone
|
|
|
3
3
|
|
|
4
4
|
export type ContextMenuSectionProps = PropsWithChildren & FlowComponentProps;
|
|
5
5
|
export declare const ContextMenuSection: React.ForwardRefExoticComponent<{
|
|
6
|
-
children?: React.ReactNode;
|
|
6
|
+
children?: React.ReactNode | undefined;
|
|
7
7
|
} & FlowComponentProps & React.RefAttributes<never>>;
|
|
@@ -4,6 +4,7 @@ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
|
4
4
|
import * as Aria from "react-aria-components";
|
|
5
5
|
export interface LabelProps extends PropsWithChildren<Omit<Aria.LabelProps, "children">>, FlowComponentProps {
|
|
6
6
|
optional?: boolean;
|
|
7
|
+
isDisabled?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<never>>;
|
|
9
10
|
export default Label;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren, default as React } from 'react';
|
|
2
2
|
import { LinkDOMProps } from '@react-types/shared';
|
|
3
|
-
import { PropsWithClassName } from '../../../../../lib/types/props';
|
|
3
|
+
import { PropsWithClassName, PropsWithContainerBreakpointSize } from '../../../../../lib/types/props';
|
|
4
4
|
|
|
5
|
-
type Props = PropsWithChildren & LinkDOMProps & PropsWithClassName;
|
|
5
|
+
type Props = PropsWithChildren & LinkDOMProps & PropsWithClassName & PropsWithContainerBreakpointSize;
|
|
6
6
|
export declare const ListItem: (props: Props) => React.JSX.Element;
|
|
7
7
|
export default ListItem;
|
|
@@ -32,6 +32,7 @@ import { ModalProps } from '../Modal';
|
|
|
32
32
|
import { SectionProps } from '../Section';
|
|
33
33
|
import { SliderProps } from '../Slider';
|
|
34
34
|
import { CounterBadgeProps } from '../CounterBadge';
|
|
35
|
+
import { FlowComponentName } from './types';
|
|
35
36
|
import { ContextualHelpProps } from '../ContextualHelp';
|
|
36
37
|
import { PopoverProps } from '../Popover';
|
|
37
38
|
import { ContextMenuSectionProps } from '../ContextMenu/components/ContextMenuSection';
|
|
@@ -80,4 +81,4 @@ export interface FlowComponentPropsTypes {
|
|
|
80
81
|
TextArea: TextAreaProps;
|
|
81
82
|
TextField: TextFieldProps;
|
|
82
83
|
}
|
|
83
|
-
export declare const propsContextSupportingComponents:
|
|
84
|
+
export declare const propsContextSupportingComponents: FlowComponentName[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DynamicProp } from './types';
|
|
2
|
+
import { FlowComponentName, FlowComponentPropName } from '../../../components/propTypes';
|
|
2
3
|
|
|
3
|
-
export declare const dynamic: <C extends
|
|
4
|
+
export declare const dynamic: <C extends FlowComponentName, P extends FlowComponentPropName<C>>(getDynamicProp: DynamicProp<C, P>["__dynamicProp"]) => DynamicProp<C, P>;
|
|
4
5
|
export default dynamic;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FlowComponentProps } from '../../../components/propTypes';
|
|
1
|
+
import { FlowComponentName, FlowComponentProps } from '../../../components/propTypes';
|
|
2
2
|
import { ComponentPropsContext } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare const resolveDynamicProps: <C extends
|
|
4
|
+
export declare const resolveDynamicProps: <C extends FlowComponentName>(contextProps: ComponentPropsContext<C>, localProps: Partial<FlowComponentProps<C>>) => Partial<FlowComponentProps<C>>;
|
|
5
5
|
export default resolveDynamicProps;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ComponentPropsContext, PropsContext } from '../types';
|
|
2
|
+
import { FlowComponentName } from '../../../components/propTypes';
|
|
2
3
|
|
|
3
|
-
export declare const pickPropsContext: <C extends
|
|
4
|
+
export declare const pickPropsContext: <C extends FlowComponentName>(props: ComponentPropsContext<C>) => PropsContext;
|
package/dist/types/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FlowComponentProps } from '../../../components/propTypes';
|
|
1
|
+
import { FlowComponentName, FlowComponentProps } from '../../../components/propTypes';
|
|
2
2
|
import { ComponentPropsContext } from '../types';
|
|
3
3
|
import { PropsWithChildren } from 'react';
|
|
4
4
|
|
|
5
|
-
export declare const wrapChildrenWithNestedPropsContext: <C extends
|
|
5
|
+
export declare const wrapChildrenWithNestedPropsContext: <C extends FlowComponentName>(contextProps: ComponentPropsContext<C>, localProps: Partial<FlowComponentProps<C>>) => PropsWithChildren;
|
|
6
6
|
export default wrapChildrenWithNestedPropsContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlowComponentProps } from '../../components/propTypes';
|
|
1
|
+
import { FlowComponentName, FlowComponentProps } from '../../components/propTypes';
|
|
2
2
|
|
|
3
|
-
export declare const useProps: <C extends
|
|
3
|
+
export declare const useProps: <C extends FlowComponentName>(component: C, localProps: FlowComponentProps<C>) => FlowComponentProps<C>;
|
|
4
4
|
export default useProps;
|
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.166",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -178,6 +178,10 @@
|
|
|
178
178
|
"types": "./dist/types/components/ProgressBar/index.d.ts",
|
|
179
179
|
"import": "./dist/ProgressBar.js"
|
|
180
180
|
},
|
|
181
|
+
"./PropsContextProvider": {
|
|
182
|
+
"types": "./dist/types/lib/propsContext/PropsContextProvider.d.ts",
|
|
183
|
+
"import": "./dist/PropsContextProvider.js"
|
|
184
|
+
},
|
|
181
185
|
"./RadioGroup": {
|
|
182
186
|
"types": "./dist/types/components/RadioGroup/index.d.ts",
|
|
183
187
|
"import": "./dist/RadioGroup.js"
|
|
@@ -276,55 +280,55 @@
|
|
|
276
280
|
"dependencies": {
|
|
277
281
|
"@chakra-ui/live-region": "^2.1.0",
|
|
278
282
|
"@internationalized/string-compiler": "^3.2.4",
|
|
279
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
283
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.166",
|
|
280
284
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
281
285
|
"@react-aria/utils": "^3.24.1",
|
|
282
286
|
"@react-types/shared": "^3.23.1",
|
|
283
|
-
"@storybook/test": "^8.1.
|
|
284
|
-
"@tabler/icons-react": "^3.
|
|
285
|
-
"@tanstack/react-table": "^8.
|
|
287
|
+
"@storybook/test": "^8.1.11",
|
|
288
|
+
"@tabler/icons-react": "^3.9.0",
|
|
289
|
+
"@tanstack/react-table": "^8.19.2",
|
|
286
290
|
"@types/luxon": "^3.4.2",
|
|
287
291
|
"clsx": "^2.1.1",
|
|
288
292
|
"copy-to-clipboard": "^3.3.3",
|
|
289
293
|
"dot-prop": "^9.0.0",
|
|
290
|
-
"framer-motion": "^11.2.
|
|
294
|
+
"framer-motion": "^11.2.13",
|
|
291
295
|
"html-react-parser": "^5.1.10",
|
|
292
296
|
"invariant": "^2.2.4",
|
|
293
297
|
"luxon": "^3.4.4",
|
|
294
|
-
"mobx": "^6.
|
|
298
|
+
"mobx": "^6.13.0",
|
|
295
299
|
"mobx-react-lite": "^4.0.7",
|
|
296
300
|
"object-code": "^1.3.3",
|
|
297
301
|
"react-aria": "^3.33.1",
|
|
298
302
|
"react-aria-components": "^1.2.1",
|
|
299
303
|
"react-children-utilities": "^2.10.0",
|
|
300
304
|
"react-stately": "^3.31.1",
|
|
301
|
-
"remeda": "^2.0
|
|
305
|
+
"remeda": "^2.3.0",
|
|
302
306
|
"use-callback-ref": "^1.3.2"
|
|
303
307
|
},
|
|
304
308
|
"devDependencies": {
|
|
305
309
|
"@faker-js/faker": "^8.4.1",
|
|
306
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
310
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.166",
|
|
307
311
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
308
|
-
"@nx/storybook": "^19.
|
|
309
|
-
"@storybook/addon-a11y": "^8.1.
|
|
310
|
-
"@storybook/addon-actions": "^8.1.
|
|
311
|
-
"@storybook/addon-essentials": "^8.1.
|
|
312
|
-
"@storybook/addon-interactions": "^8.1.
|
|
313
|
-
"@storybook/addon-links": "^8.1.
|
|
314
|
-
"@storybook/blocks": "^8.1.
|
|
315
|
-
"@storybook/components": "^8.1.
|
|
316
|
-
"@storybook/core-events": "^8.1.
|
|
317
|
-
"@storybook/manager-api": "^8.1.
|
|
318
|
-
"@storybook/preview-api": "^8.1.
|
|
319
|
-
"@storybook/react": "^8.1.
|
|
320
|
-
"@storybook/react-vite": "^8.1.
|
|
321
|
-
"@storybook/theming": "^8.1.
|
|
322
|
-
"@testing-library/dom": "^10.1
|
|
312
|
+
"@nx/storybook": "^19.4.0",
|
|
313
|
+
"@storybook/addon-a11y": "^8.1.11",
|
|
314
|
+
"@storybook/addon-actions": "^8.1.11",
|
|
315
|
+
"@storybook/addon-essentials": "^8.1.11",
|
|
316
|
+
"@storybook/addon-interactions": "^8.1.11",
|
|
317
|
+
"@storybook/addon-links": "^8.1.11",
|
|
318
|
+
"@storybook/blocks": "^8.1.11",
|
|
319
|
+
"@storybook/components": "^8.1.11",
|
|
320
|
+
"@storybook/core-events": "^8.1.11",
|
|
321
|
+
"@storybook/manager-api": "^8.1.11",
|
|
322
|
+
"@storybook/preview-api": "^8.1.11",
|
|
323
|
+
"@storybook/react": "^8.1.11",
|
|
324
|
+
"@storybook/react-vite": "^8.1.11",
|
|
325
|
+
"@storybook/theming": "^8.1.11",
|
|
326
|
+
"@testing-library/dom": "^10.3.1",
|
|
323
327
|
"@testing-library/jest-dom": "^6.4.6",
|
|
324
|
-
"@testing-library/react": "~
|
|
328
|
+
"@testing-library/react": "~16.0.0",
|
|
325
329
|
"@testing-library/user-event": "^14.5.2",
|
|
326
330
|
"@types/invariant": "^2.2.37",
|
|
327
|
-
"@types/node": "20.14.
|
|
331
|
+
"@types/node": "20.14.9",
|
|
328
332
|
"@types/prettier": "^3.0.0",
|
|
329
333
|
"@types/prop-types": "^15.7.12",
|
|
330
334
|
"@types/react": "^18.3.3",
|
|
@@ -334,10 +338,10 @@
|
|
|
334
338
|
"@vitest/coverage-v8": "~1.6.0",
|
|
335
339
|
"decamelize": "^6.0.0",
|
|
336
340
|
"fs-jetpack": "^5.1.0",
|
|
337
|
-
"happy-dom": "^14.12.
|
|
341
|
+
"happy-dom": "^14.12.3",
|
|
338
342
|
"next": "^14.2.4",
|
|
339
|
-
"nx": "^19.
|
|
340
|
-
"postcss": "^8.4.
|
|
343
|
+
"nx": "^19.4.0",
|
|
344
|
+
"postcss": "^8.4.39",
|
|
341
345
|
"postcss-nested-import": "^1.3.0",
|
|
342
346
|
"postcss-nesting": "^12.1.5",
|
|
343
347
|
"prettier": "^3.3.2",
|
|
@@ -345,17 +349,17 @@
|
|
|
345
349
|
"react": "^18.3.1",
|
|
346
350
|
"react-dom": "^18.3.1",
|
|
347
351
|
"react-element-to-jsx-string": "^15.0.0",
|
|
348
|
-
"react-hook-form": "^7.52.
|
|
352
|
+
"react-hook-form": "^7.52.1",
|
|
349
353
|
"rollup": "^4.18.0",
|
|
350
354
|
"sass": "^1.77.6",
|
|
351
|
-
"storybook": "^8.1.
|
|
355
|
+
"storybook": "^8.1.11",
|
|
352
356
|
"storybook-addon-rtl": "^1.0.0",
|
|
353
|
-
"tsx": "^4.
|
|
354
|
-
"typescript": "^5.
|
|
357
|
+
"tsx": "^4.16.2",
|
|
358
|
+
"typescript": "^5.5.3",
|
|
355
359
|
"typescript-plugin-css-modules": "^5.1.0",
|
|
356
|
-
"vite": "^5.3.
|
|
360
|
+
"vite": "^5.3.3",
|
|
357
361
|
"vite-plugin-banner": "^0.7.1",
|
|
358
|
-
"vite-plugin-checker": "^0.
|
|
362
|
+
"vite-plugin-checker": "^0.7.0",
|
|
359
363
|
"vite-plugin-dts": "^3.9.1",
|
|
360
364
|
"vite-plugin-externalize-deps": "^0.8.0",
|
|
361
365
|
"vitest": "~1.6.0",
|
|
@@ -379,5 +383,5 @@
|
|
|
379
383
|
"optional": true
|
|
380
384
|
}
|
|
381
385
|
},
|
|
382
|
-
"gitHead": "
|
|
386
|
+
"gitHead": "ba4ac228a4fb4936d1d2f71a8bd75af9bc9decd7"
|
|
383
387
|
}
|
package/dist/Label-BlTqklNB.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import t from "react";
|
|
4
|
-
import * as c from "react-aria-components";
|
|
5
|
-
import f from "clsx";
|
|
6
|
-
import { C as b } from "./ClearPropsContext-CUvsbMn8.js";
|
|
7
|
-
import "./propsContext-DzAKlmhS.js";
|
|
8
|
-
import "@react-aria/utils";
|
|
9
|
-
import "remeda";
|
|
10
|
-
import "dot-prop";
|
|
11
|
-
import { useLocalizedStringFormatter as C } from "react-aria";
|
|
12
|
-
import { f as L } from "./flowComponent-TgbbWDzO.js";
|
|
13
|
-
const d = "flow--label", u = {
|
|
14
|
-
label: d
|
|
15
|
-
}, E = { "de-DE": {
|
|
16
|
-
"label.optional": "(optional)"
|
|
17
|
-
}, "en-EN": {
|
|
18
|
-
"label.optional": "(optional)"
|
|
19
|
-
} }, z = L("Label", (e) => {
|
|
20
|
-
const {
|
|
21
|
-
children: l,
|
|
22
|
-
className: o,
|
|
23
|
-
optional: a,
|
|
24
|
-
refProp: r,
|
|
25
|
-
unstyled: s = !1,
|
|
26
|
-
...n
|
|
27
|
-
} = e, m = C(E), i = s ? o : f(u.label, o), p = " " + m.format("label.optional");
|
|
28
|
-
return /* @__PURE__ */ t.createElement(b, null, /* @__PURE__ */ t.createElement(c.Label, { ...n, className: i, ref: r }, l, a && p));
|
|
29
|
-
});
|
|
30
|
-
export {
|
|
31
|
-
z as L
|
|
32
|
-
};
|