@mittwald/flow-react-components 0.1.0-alpha.157 → 0.1.0-alpha.159
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/NotificationProvider.js +18 -12
- package/dist/RadioGroup.js +69 -57
- package/dist/styles.css +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/types/components/RadioGroup/stories/Default.stories.d.ts +1 -0
- package/dist/types/lib/getContainerBreakpointSizeClassName.d.ts +3 -0
- package/dist/types/lib/types/props.d.ts +4 -0
- package/package.json +4 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PropsWithChildren, default as React } from 'react';
|
|
2
2
|
import { ColumnLayoutProps } from '../ColumnLayout';
|
|
3
3
|
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
4
|
+
import { PropsWithContainerBreakpointSize } from '../../lib/types/props';
|
|
4
5
|
|
|
5
6
|
import * as Aria from "react-aria-components";
|
|
6
|
-
export interface RadioGroupProps extends PropsWithChildren<Omit<Aria.RadioGroupProps, "children">>, FlowComponentProps, Pick<ColumnLayoutProps, "s" | "m" | "l"
|
|
7
|
+
export interface RadioGroupProps extends PropsWithChildren<Omit<Aria.RadioGroupProps, "children">>, FlowComponentProps, Pick<ColumnLayoutProps, "s" | "m" | "l">, PropsWithContainerBreakpointSize {
|
|
7
8
|
variant?: "segmented" | "default";
|
|
8
9
|
}
|
|
9
10
|
export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<never>>;
|
|
@@ -12,4 +12,5 @@ export declare const RadioButtonDisabled: Story;
|
|
|
12
12
|
export declare const RadioButtonsWithContent: Story;
|
|
13
13
|
export declare const WithFieldError: Story;
|
|
14
14
|
export declare const SegmentedVariant: Story;
|
|
15
|
+
export declare const CustomContainerBreakpoint: Story;
|
|
15
16
|
export declare const SegmentedVariantWithFieldError: Story;
|
|
@@ -12,3 +12,7 @@ export interface PropsWithClassName {
|
|
|
12
12
|
export type PropsWithElementType<T extends keyof ReactHTML = never> = HTMLAttributes<HTMLElement> & {
|
|
13
13
|
elementType?: T | ExoticComponent;
|
|
14
14
|
};
|
|
15
|
+
export type ContainerBreakpointSize = "xs" | "s" | "m" | "l" | "xl";
|
|
16
|
+
export interface PropsWithContainerBreakpointSize {
|
|
17
|
+
containerBreakpointSize?: ContainerBreakpointSize;
|
|
18
|
+
}
|
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.159",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
"dependencies": {
|
|
281
281
|
"@chakra-ui/live-region": "^2.1.0",
|
|
282
282
|
"@internationalized/string-compiler": "^3.2.4",
|
|
283
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
283
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.159",
|
|
284
284
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
285
285
|
"@react-aria/utils": "^3.24.1",
|
|
286
286
|
"@react-types/shared": "^3.23.1",
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
},
|
|
308
308
|
"devDependencies": {
|
|
309
309
|
"@faker-js/faker": "^8.4.1",
|
|
310
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
310
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.159",
|
|
311
311
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
312
312
|
"@nx/storybook": "^19.3.0",
|
|
313
313
|
"@storybook/addon-a11y": "^8.1.10",
|
|
@@ -383,5 +383,5 @@
|
|
|
383
383
|
"optional": true
|
|
384
384
|
}
|
|
385
385
|
},
|
|
386
|
-
"gitHead": "
|
|
386
|
+
"gitHead": "f9caa7c56513eb7628ffa988b851f526226e6179"
|
|
387
387
|
}
|