@mittwald/flow-react-components 1.7.0-next.3 → 1.7.0-next.5
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/AGENTS.md +6 -7
- package/MIGRATION.md +56 -0
- package/dist/assets/component-index.json +1 -1
- package/dist/assets/doc-properties.json +1 -1
- package/dist/js/packages/components/src/components/AvatarStack/AvatarStack.mjs +5 -3
- package/dist/js/packages/components/src/components/AvatarStack/AvatarStack.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Breadcrumb/Breadcrumb.mjs +5 -3
- package/dist/js/packages/components/src/components/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.mjs +6 -3
- package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.mjs.map +1 -1
- package/dist/js/packages/components/src/components/DonutChart/DonutChart.mjs +5 -3
- package/dist/js/packages/components/src/components/DonutChart/DonutChart.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Flex/Flex.mjs.map +1 -1
- package/dist/js/packages/components/src/components/HeaderNavigation/HeaderNavigation.mjs +5 -3
- package/dist/js/packages/components/src/components/HeaderNavigation/HeaderNavigation.mjs.map +1 -1
- package/dist/js/packages/components/src/components/ImageCropper/ImageCropper.mjs +5 -3
- package/dist/js/packages/components/src/components/ImageCropper/ImageCropper.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Legend/Legend.mjs +5 -3
- package/dist/js/packages/components/src/components/Legend/Legend.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/model/item/ItemView.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Markdown/Markdown.mjs +3 -2
- package/dist/js/packages/components/src/components/Markdown/Markdown.mjs.map +1 -1
- package/dist/js/packages/components/src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.mjs +1 -4
- package/dist/js/packages/components/src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Section/context.mjs +13 -2
- package/dist/js/packages/components/src/components/Section/context.mjs.map +1 -1
- package/dist/js/packages/components/src/components/SkeletonText/SkeletonText.mjs +6 -4
- package/dist/js/packages/components/src/components/SkeletonText/SkeletonText.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/Table.mjs +5 -3
- package/dist/js/packages/components/src/components/Table/Table.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableBody/TableBody.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableCell/TableCell.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableColumn/TableColumn.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableFooterRow/TableFooterRow.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableHeader/TableHeader.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableRow/TableRow.mjs.map +1 -1
- package/dist/js/packages/components/src/components/propTypes/index.mjs +10 -0
- package/dist/js/packages/components/src/components/propTypes/index.mjs.map +1 -1
- package/dist/types/components/AvatarStack/AvatarStack.d.ts +4 -3
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +4 -3
- package/dist/types/components/CodeBlock/CodeBlock.d.ts +4 -3
- package/dist/types/components/DonutChart/DonutChart.d.ts +4 -3
- package/dist/types/components/HeaderNavigation/HeaderNavigation.d.ts +4 -3
- package/dist/types/components/ImageCropper/ImageCropper.d.ts +5 -3
- package/dist/types/components/Legend/Legend.d.ts +5 -3
- package/dist/types/components/List/model/item/ItemView.d.ts +5 -2
- package/dist/types/components/List/typedList.d.ts +17 -13
- package/dist/types/components/Markdown/Markdown.d.ts +3 -5
- package/dist/types/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.d.ts +1 -4
- package/dist/types/components/Section/context.d.ts +4 -0
- package/dist/types/components/SkeletonText/SkeletonText.d.ts +4 -3
- package/dist/types/components/Table/Table.d.ts +18 -3
- package/dist/types/components/propTypes/index.d.ts +20 -0
- package/package.json +10 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC, Ref } from 'react';
|
|
2
1
|
import { Components, Options } from 'react-markdown';
|
|
3
2
|
import { AlphaColor, PropsWithClassName } from '../../lib/types/props';
|
|
4
|
-
|
|
3
|
+
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
4
|
+
export interface MarkdownProps extends PropsWithClassName, Omit<Options, "components">, FlowComponentProps {
|
|
5
5
|
/** The color schema of the markdown component. @default "default" */
|
|
6
6
|
color?: "default" | AlphaColor;
|
|
7
7
|
/** Shifts all heading levels by the given offset. @default 0 */
|
|
@@ -10,12 +10,10 @@ export interface MarkdownProps extends PropsWithClassName, Omit<Options, "compon
|
|
|
10
10
|
disableImages?: boolean;
|
|
11
11
|
/** Allows overriding markdown element renderers from outside. */
|
|
12
12
|
components?: Components;
|
|
13
|
-
/** A ref to the elements root. */
|
|
14
|
-
ref?: Ref<HTMLDivElement>;
|
|
15
13
|
}
|
|
16
14
|
/**
|
|
17
15
|
* @flr-generate all
|
|
18
16
|
* @flr-ignore-props components
|
|
19
17
|
*/
|
|
20
|
-
export declare const Markdown:
|
|
18
|
+
export declare const Markdown: import('react').FunctionComponent<MarkdownProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
19
|
export default Markdown;
|
|
@@ -2,9 +2,6 @@ import { ComponentProps, FC } from 'react';
|
|
|
2
2
|
import { FlowComponentProps } from '../../../../lib/componentFactory/flowComponent';
|
|
3
3
|
import * as Aria from "react-aria-components";
|
|
4
4
|
export type DialogTriggerProps = ComponentProps<typeof Aria.DialogTrigger> & FlowComponentProps;
|
|
5
|
-
/**
|
|
6
|
-
* @flr-generate all
|
|
7
|
-
* @flr-provider
|
|
8
|
-
*/
|
|
5
|
+
/** @flr-generate all */
|
|
9
6
|
export declare const DialogTrigger: FC<DialogTriggerProps>;
|
|
10
7
|
export default DialogTrigger;
|
|
@@ -20,6 +20,10 @@ export declare const useRegisterSectionHeading: (id: string | undefined) => void
|
|
|
20
20
|
/**
|
|
21
21
|
* The `aria-labelledby` of a grid or table: its own label, else the heading of
|
|
22
22
|
* the surrounding `Section` once that heading renders.
|
|
23
|
+
*
|
|
24
|
+
* A heading mounting in the same commit registers only in its layout effect. So
|
|
25
|
+
* the first render assumes the heading and the layout effect below re-checks
|
|
26
|
+
* before paint — otherwise React Aria warns about a missing label.
|
|
23
27
|
*/
|
|
24
28
|
export declare const useLabelledBySectionHeading: (props: {
|
|
25
29
|
"aria-label"?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ComponentProps, CSSProperties
|
|
2
|
-
|
|
1
|
+
import { ComponentProps, CSSProperties } from 'react';
|
|
2
|
+
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
3
|
+
export interface SkeletonTextProps extends ComponentProps<"span">, FlowComponentProps<HTMLSpanElement> {
|
|
3
4
|
/** The width of the skeleton text. */
|
|
4
5
|
width?: CSSProperties["width"];
|
|
5
6
|
}
|
|
6
7
|
/** @flr-generate all */
|
|
7
|
-
export declare const SkeletonText:
|
|
8
|
+
export declare const SkeletonText: import('react').FunctionComponent<SkeletonTextProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
8
9
|
export default SkeletonText;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
2
2
|
import * as Aria from "react-aria-components";
|
|
3
3
|
export type TableProps = Omit<Aria.TableProps, "render" | "className" | "style"> & {
|
|
4
4
|
/** The vertical alignment of the table cells content. */
|
|
@@ -15,7 +15,22 @@ export type TableProps = Omit<Aria.TableProps, "render" | "className" | "style">
|
|
|
15
15
|
minWidth?: number | string;
|
|
16
16
|
/** The elements class name. */
|
|
17
17
|
className?: string;
|
|
18
|
-
};
|
|
18
|
+
} & FlowComponentProps;
|
|
19
19
|
/** @flr-generate all */
|
|
20
|
-
export declare const Table:
|
|
20
|
+
export declare const Table: import('react').FunctionComponent<Omit<Aria.TableProps, "className" | "style" | "render"> & {
|
|
21
|
+
/** The vertical alignment of the table cells content. */
|
|
22
|
+
verticalAlign?: "top" | "middle";
|
|
23
|
+
/**
|
|
24
|
+
* The column-sizing algorithm of the table. Use "fixed" together with column
|
|
25
|
+
* widths to enforce exact widths. @default "auto"
|
|
26
|
+
*/
|
|
27
|
+
layout?: "auto" | "fixed";
|
|
28
|
+
/**
|
|
29
|
+
* The minimum width of the table. Below this width the table scrolls
|
|
30
|
+
* horizontally instead of shrinking its columns.
|
|
31
|
+
*/
|
|
32
|
+
minWidth?: number | string;
|
|
33
|
+
/** The elements class name. */
|
|
34
|
+
className?: string;
|
|
35
|
+
} & FlowComponentProps<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
36
|
export default Table;
|
|
@@ -5,24 +5,30 @@ import { LabelProps } from '../Label';
|
|
|
5
5
|
import { ContentProps } from '../Content';
|
|
6
6
|
import { LayoutCardProps } from '../LayoutCard';
|
|
7
7
|
import { LinkProps } from '../Link';
|
|
8
|
+
import { LegendProps } from '../Legend';
|
|
8
9
|
import { LightBoxProps, LightBoxGalleryItemProps, LightBoxGalleryProps } from '../LightBox';
|
|
9
10
|
import { FieldErrorProps } from '../FieldError';
|
|
10
11
|
import { FieldDescriptionProps } from '../FieldDescription';
|
|
11
12
|
import { AlertProps } from '../Alert';
|
|
12
13
|
import { HeadingProps } from '../Heading';
|
|
14
|
+
import { HeaderNavigationProps } from '../HeaderNavigation';
|
|
13
15
|
import { TabNavigationProps } from '../TabNavigation';
|
|
14
16
|
import { InitialsProps } from '../Initials';
|
|
15
17
|
import { LoadingSpinnerProps } from '../LoadingSpinner';
|
|
16
18
|
import { ImageProps } from '../Image';
|
|
17
19
|
import { CopyButtonProps } from '../CopyButton';
|
|
20
|
+
import { CodeBlockProps } from '../CodeBlock';
|
|
18
21
|
import { HeaderProps } from '../Header';
|
|
19
22
|
import { SwitchProps } from '../Switch';
|
|
20
23
|
import { AlertBadgeProps } from '../AlertBadge';
|
|
21
24
|
import { AlertIconProps } from '../AlertIcon';
|
|
22
25
|
import { ActionGroupProps } from '../ActionGroup';
|
|
23
26
|
import { AvatarProps } from '../Avatar';
|
|
27
|
+
import { AvatarStackProps } from '../AvatarStack';
|
|
24
28
|
import { InlineCodeProps } from '../InlineCode';
|
|
29
|
+
import { BreadcrumbProps } from '../Breadcrumb';
|
|
25
30
|
import { BigNumberProps } from '../BigNumber';
|
|
31
|
+
import { DonutChartProps } from '../DonutChart';
|
|
26
32
|
import { ActionProps } from '../Action';
|
|
27
33
|
import { ContextMenuProps, ContextMenuTriggerProps, MenuItemProps } from '../ContextMenu';
|
|
28
34
|
import { SelectProps } from '../Select';
|
|
@@ -33,10 +39,12 @@ import { TextAreaProps } from '../TextArea';
|
|
|
33
39
|
import { CheckboxGroupProps } from '../CheckboxGroup';
|
|
34
40
|
import { CheckboxProps } from '../Checkbox';
|
|
35
41
|
import { CheckboxButtonProps } from '../CheckboxButton';
|
|
42
|
+
import { TableProps } from '../Table';
|
|
36
43
|
import { TabsProps } from '../Tabs';
|
|
37
44
|
import { ModalProps, ModalTriggerProps } from '../Modal';
|
|
38
45
|
import { SectionProps } from '../Section';
|
|
39
46
|
import { SeparatorProps } from '../Separator';
|
|
47
|
+
import { SkeletonTextProps } from '../SkeletonText';
|
|
40
48
|
import { SliderProps } from '../Slider';
|
|
41
49
|
import { CounterBadgeProps } from '../CounterBadge';
|
|
42
50
|
import { FlowComponentName } from './types';
|
|
@@ -73,9 +81,11 @@ import { NavigationProps } from '../Navigation';
|
|
|
73
81
|
import { NavigationGroupProps } from '../Navigation/components/NavigationGroup';
|
|
74
82
|
import { AutocompleteProps } from '../Autocomplete/Autocomplete';
|
|
75
83
|
import { OptionsProps } from '../Options/Options';
|
|
84
|
+
import { MarkdownProps } from '../Markdown';
|
|
76
85
|
import { MarkdownEditorProps } from '../MarkdownEditor';
|
|
77
86
|
import { AlertTextProps } from '../AlertText';
|
|
78
87
|
import { IllustratedMessageProps } from '../IllustratedMessage';
|
|
88
|
+
import { ImageCropperProps } from '../ImageCropper';
|
|
79
89
|
import { RatingProps } from '../Rating';
|
|
80
90
|
import { RatingSegmentProps } from '../Rating/components/RatingSegment';
|
|
81
91
|
import { CodeEditorProps } from '../CodeEditor';
|
|
@@ -99,10 +109,13 @@ export interface FlowComponentPropsTypes {
|
|
|
99
109
|
Align: AlignProps;
|
|
100
110
|
Combine: CombineProps;
|
|
101
111
|
Avatar: AvatarProps;
|
|
112
|
+
AvatarStack: AvatarStackProps;
|
|
102
113
|
Autocomplete: AutocompleteProps;
|
|
103
114
|
Badge: BadgeProps;
|
|
104
115
|
BigNumber: BigNumberProps;
|
|
116
|
+
Breadcrumb: BreadcrumbProps;
|
|
105
117
|
Button: ButtonProps;
|
|
118
|
+
CodeBlock: CodeBlockProps;
|
|
106
119
|
CodeEditor: CodeEditorProps;
|
|
107
120
|
Chat: ChatProps;
|
|
108
121
|
Checkbox: CheckboxProps;
|
|
@@ -123,6 +136,7 @@ export interface FlowComponentPropsTypes {
|
|
|
123
136
|
DatePicker: DatePickerProps<Aria.DateValue>;
|
|
124
137
|
DateRangePicker: DateRangePickerProps<Aria.DateValue>;
|
|
125
138
|
DialogTrigger: DialogTriggerProps;
|
|
139
|
+
DonutChart: DonutChartProps;
|
|
126
140
|
FieldDescription: FieldDescriptionProps;
|
|
127
141
|
FieldError: FieldErrorProps;
|
|
128
142
|
FileCard: FileCardProps;
|
|
@@ -131,14 +145,17 @@ export interface FlowComponentPropsTypes {
|
|
|
131
145
|
FileDropZone: FileDropZoneProps;
|
|
132
146
|
Header: HeaderProps;
|
|
133
147
|
Heading: HeadingProps;
|
|
148
|
+
HeaderNavigation: HeaderNavigationProps;
|
|
134
149
|
TabNavigation: TabNavigationProps;
|
|
135
150
|
Icon: IconProps;
|
|
136
151
|
IllustratedMessage: IllustratedMessageProps;
|
|
137
152
|
Image: ImageProps;
|
|
153
|
+
ImageCropper: ImageCropperProps;
|
|
138
154
|
Initials: InitialsProps;
|
|
139
155
|
InlineCode: InlineCodeProps;
|
|
140
156
|
Label: LabelProps;
|
|
141
157
|
LayoutCard: LayoutCardProps;
|
|
158
|
+
Legend: LegendProps;
|
|
142
159
|
LightBox: LightBoxProps;
|
|
143
160
|
LightBoxGallery: LightBoxGalleryProps;
|
|
144
161
|
LightBoxGalleryItem: LightBoxGalleryItemProps;
|
|
@@ -147,6 +164,7 @@ export interface FlowComponentPropsTypes {
|
|
|
147
164
|
ListItemView: ListItemViewProps;
|
|
148
165
|
ListSummary: ListSummaryProps;
|
|
149
166
|
LoadingSpinner: LoadingSpinnerProps;
|
|
167
|
+
Markdown: MarkdownProps;
|
|
150
168
|
MarkdownEditor: MarkdownEditorProps;
|
|
151
169
|
MenuItem: MenuItemProps;
|
|
152
170
|
MenuTrigger: MenuTriggerProps;
|
|
@@ -177,8 +195,10 @@ export interface FlowComponentPropsTypes {
|
|
|
177
195
|
Select: SelectProps;
|
|
178
196
|
Kbd: KbdProps;
|
|
179
197
|
SectionHeader: SectionHeaderProps;
|
|
198
|
+
SkeletonText: SkeletonTextProps;
|
|
180
199
|
Slider: SliderProps;
|
|
181
200
|
Switch: SwitchProps;
|
|
201
|
+
Table: TableProps;
|
|
182
202
|
Tabs: TabsProps;
|
|
183
203
|
TabTitle: TabsProps;
|
|
184
204
|
Text: TextProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "1.7.0-next.
|
|
3
|
+
"version": "1.7.0-next.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://flow.mittwald.de",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"@internationalized/string-compiler": "^3.4.1",
|
|
85
85
|
"@lezer/common": "^1.5.2",
|
|
86
86
|
"@lezer/highlight": "^1.2.3",
|
|
87
|
-
"@mittwald/flow-icons": "^1.7.0-next.
|
|
87
|
+
"@mittwald/flow-icons": "^1.7.0-next.5",
|
|
88
88
|
"@mittwald/password-tools-js": "^3.0.0",
|
|
89
|
-
"@mittwald/react-tunnel": "^1.7.0-next.
|
|
89
|
+
"@mittwald/react-tunnel": "^1.7.0-next.5",
|
|
90
90
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
91
91
|
"@react-aria/form": "^3.2.1",
|
|
92
92
|
"@react-aria/i18n": "^3.13.1",
|
|
@@ -139,13 +139,13 @@
|
|
|
139
139
|
"@internationalized/date": "^3.12.3",
|
|
140
140
|
"@lezer/generator": "^1.8.0",
|
|
141
141
|
"@lezer/lr": "^1.4.10",
|
|
142
|
-
"@mittwald/flow-components-base": "1.7.0-next.
|
|
143
|
-
"@mittwald/flow-core": "1.7.0-next.
|
|
144
|
-
"@mittwald/flow-design-tokens": "1.7.0-next.
|
|
145
|
-
"@mittwald/flow-icons-base": "1.7.0-next.
|
|
142
|
+
"@mittwald/flow-components-base": "1.7.0-next.5",
|
|
143
|
+
"@mittwald/flow-core": "1.7.0-next.5",
|
|
144
|
+
"@mittwald/flow-design-tokens": "1.7.0-next.5",
|
|
145
|
+
"@mittwald/flow-icons-base": "1.7.0-next.5",
|
|
146
146
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
147
147
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.10",
|
|
148
|
-
"@mittwald/typescript-config": "1.7.0-next.
|
|
148
|
+
"@mittwald/typescript-config": "1.7.0-next.5",
|
|
149
149
|
"@nx/storybook": "^22.7.6",
|
|
150
150
|
"@storybook/addon-a11y": "^10.5.10",
|
|
151
151
|
"@storybook/addon-actions": "^9.0.8",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
},
|
|
200
200
|
"peerDependencies": {
|
|
201
201
|
"@internationalized/date": "^3.12.2",
|
|
202
|
-
"@mittwald/flow-icons-pro": "1.7.0-next.
|
|
202
|
+
"@mittwald/flow-icons-pro": "1.7.0-next.5",
|
|
203
203
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
204
204
|
"next": "^16.2.3",
|
|
205
205
|
"react": "^19.2.0",
|
|
@@ -223,5 +223,5 @@
|
|
|
223
223
|
"browserslist": [
|
|
224
224
|
"baseline widely available"
|
|
225
225
|
],
|
|
226
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "b1b4e00603b13773528056335741f5abc3705978"
|
|
227
227
|
}
|