@mittwald/flow-react-components 1.7.0-next.2 → 1.7.0-next.4
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/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/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/MessageThread/components/MessageSeparator/MessageSeparator.mjs +5 -3
- package/dist/js/packages/components/src/components/MessageThread/components/MessageSeparator/MessageSeparator.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/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/MessageThread/components/MessageSeparator/MessageSeparator.d.ts +4 -3
- 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 -1
- package/package.json +10 -10
|
@@ -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;
|
|
@@ -10,19 +10,24 @@ import { FieldErrorProps } from '../FieldError';
|
|
|
10
10
|
import { FieldDescriptionProps } from '../FieldDescription';
|
|
11
11
|
import { AlertProps } from '../Alert';
|
|
12
12
|
import { HeadingProps } from '../Heading';
|
|
13
|
+
import { HeaderNavigationProps } from '../HeaderNavigation';
|
|
13
14
|
import { TabNavigationProps } from '../TabNavigation';
|
|
14
15
|
import { InitialsProps } from '../Initials';
|
|
15
16
|
import { LoadingSpinnerProps } from '../LoadingSpinner';
|
|
16
17
|
import { ImageProps } from '../Image';
|
|
17
18
|
import { CopyButtonProps } from '../CopyButton';
|
|
19
|
+
import { CodeBlockProps } from '../CodeBlock';
|
|
18
20
|
import { HeaderProps } from '../Header';
|
|
19
21
|
import { SwitchProps } from '../Switch';
|
|
20
22
|
import { AlertBadgeProps } from '../AlertBadge';
|
|
21
23
|
import { AlertIconProps } from '../AlertIcon';
|
|
22
24
|
import { ActionGroupProps } from '../ActionGroup';
|
|
23
25
|
import { AvatarProps } from '../Avatar';
|
|
26
|
+
import { AvatarStackProps } from '../AvatarStack';
|
|
24
27
|
import { InlineCodeProps } from '../InlineCode';
|
|
28
|
+
import { BreadcrumbProps } from '../Breadcrumb';
|
|
25
29
|
import { BigNumberProps } from '../BigNumber';
|
|
30
|
+
import { DonutChartProps } from '../DonutChart';
|
|
26
31
|
import { ActionProps } from '../Action';
|
|
27
32
|
import { ContextMenuProps, ContextMenuTriggerProps, MenuItemProps } from '../ContextMenu';
|
|
28
33
|
import { SelectProps } from '../Select';
|
|
@@ -33,10 +38,12 @@ import { TextAreaProps } from '../TextArea';
|
|
|
33
38
|
import { CheckboxGroupProps } from '../CheckboxGroup';
|
|
34
39
|
import { CheckboxProps } from '../Checkbox';
|
|
35
40
|
import { CheckboxButtonProps } from '../CheckboxButton';
|
|
41
|
+
import { TableProps } from '../Table';
|
|
36
42
|
import { TabsProps } from '../Tabs';
|
|
37
43
|
import { ModalProps, ModalTriggerProps } from '../Modal';
|
|
38
44
|
import { SectionProps } from '../Section';
|
|
39
45
|
import { SeparatorProps } from '../Separator';
|
|
46
|
+
import { SkeletonTextProps } from '../SkeletonText';
|
|
40
47
|
import { SliderProps } from '../Slider';
|
|
41
48
|
import { CounterBadgeProps } from '../CounterBadge';
|
|
42
49
|
import { FlowComponentName } from './types';
|
|
@@ -62,7 +69,7 @@ import { CountryOptionsProps } from '../CountryOptions';
|
|
|
62
69
|
import { ComboBoxProps } from '../ComboBox';
|
|
63
70
|
import { OptionProps } from '../Option';
|
|
64
71
|
import { MessageProps } from '../Message';
|
|
65
|
-
import { MessageThreadProps } from '../MessageThread';
|
|
72
|
+
import { MessageSeparatorProps, MessageThreadProps } from '../MessageThread';
|
|
66
73
|
import { FileCardListProps } from '../FileCardList';
|
|
67
74
|
import { AccentBoxProps } from '../AccentBox';
|
|
68
75
|
import { ColumnLayoutProps } from '../ColumnLayout';
|
|
@@ -73,9 +80,11 @@ import { NavigationProps } from '../Navigation';
|
|
|
73
80
|
import { NavigationGroupProps } from '../Navigation/components/NavigationGroup';
|
|
74
81
|
import { AutocompleteProps } from '../Autocomplete/Autocomplete';
|
|
75
82
|
import { OptionsProps } from '../Options/Options';
|
|
83
|
+
import { MarkdownProps } from '../Markdown';
|
|
76
84
|
import { MarkdownEditorProps } from '../MarkdownEditor';
|
|
77
85
|
import { AlertTextProps } from '../AlertText';
|
|
78
86
|
import { IllustratedMessageProps } from '../IllustratedMessage';
|
|
87
|
+
import { ImageCropperProps } from '../ImageCropper';
|
|
79
88
|
import { RatingProps } from '../Rating';
|
|
80
89
|
import { RatingSegmentProps } from '../Rating/components/RatingSegment';
|
|
81
90
|
import { CodeEditorProps } from '../CodeEditor';
|
|
@@ -99,10 +108,13 @@ export interface FlowComponentPropsTypes {
|
|
|
99
108
|
Align: AlignProps;
|
|
100
109
|
Combine: CombineProps;
|
|
101
110
|
Avatar: AvatarProps;
|
|
111
|
+
AvatarStack: AvatarStackProps;
|
|
102
112
|
Autocomplete: AutocompleteProps;
|
|
103
113
|
Badge: BadgeProps;
|
|
104
114
|
BigNumber: BigNumberProps;
|
|
115
|
+
Breadcrumb: BreadcrumbProps;
|
|
105
116
|
Button: ButtonProps;
|
|
117
|
+
CodeBlock: CodeBlockProps;
|
|
106
118
|
CodeEditor: CodeEditorProps;
|
|
107
119
|
Chat: ChatProps;
|
|
108
120
|
Checkbox: CheckboxProps;
|
|
@@ -123,6 +135,7 @@ export interface FlowComponentPropsTypes {
|
|
|
123
135
|
DatePicker: DatePickerProps<Aria.DateValue>;
|
|
124
136
|
DateRangePicker: DateRangePickerProps<Aria.DateValue>;
|
|
125
137
|
DialogTrigger: DialogTriggerProps;
|
|
138
|
+
DonutChart: DonutChartProps;
|
|
126
139
|
FieldDescription: FieldDescriptionProps;
|
|
127
140
|
FieldError: FieldErrorProps;
|
|
128
141
|
FileCard: FileCardProps;
|
|
@@ -131,10 +144,12 @@ export interface FlowComponentPropsTypes {
|
|
|
131
144
|
FileDropZone: FileDropZoneProps;
|
|
132
145
|
Header: HeaderProps;
|
|
133
146
|
Heading: HeadingProps;
|
|
147
|
+
HeaderNavigation: HeaderNavigationProps;
|
|
134
148
|
TabNavigation: TabNavigationProps;
|
|
135
149
|
Icon: IconProps;
|
|
136
150
|
IllustratedMessage: IllustratedMessageProps;
|
|
137
151
|
Image: ImageProps;
|
|
152
|
+
ImageCropper: ImageCropperProps;
|
|
138
153
|
Initials: InitialsProps;
|
|
139
154
|
InlineCode: InlineCodeProps;
|
|
140
155
|
Label: LabelProps;
|
|
@@ -147,10 +162,12 @@ export interface FlowComponentPropsTypes {
|
|
|
147
162
|
ListItemView: ListItemViewProps;
|
|
148
163
|
ListSummary: ListSummaryProps;
|
|
149
164
|
LoadingSpinner: LoadingSpinnerProps;
|
|
165
|
+
Markdown: MarkdownProps;
|
|
150
166
|
MarkdownEditor: MarkdownEditorProps;
|
|
151
167
|
MenuItem: MenuItemProps;
|
|
152
168
|
MenuTrigger: MenuTriggerProps;
|
|
153
169
|
Message: MessageProps;
|
|
170
|
+
MessageSeparator: MessageSeparatorProps;
|
|
154
171
|
MessageThread: MessageThreadProps;
|
|
155
172
|
Modal: ModalProps;
|
|
156
173
|
ModalTrigger: ModalTriggerProps;
|
|
@@ -176,8 +193,10 @@ export interface FlowComponentPropsTypes {
|
|
|
176
193
|
Select: SelectProps;
|
|
177
194
|
Kbd: KbdProps;
|
|
178
195
|
SectionHeader: SectionHeaderProps;
|
|
196
|
+
SkeletonText: SkeletonTextProps;
|
|
179
197
|
Slider: SliderProps;
|
|
180
198
|
Switch: SwitchProps;
|
|
199
|
+
Table: TableProps;
|
|
181
200
|
Tabs: TabsProps;
|
|
182
201
|
TabTitle: TabsProps;
|
|
183
202
|
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.4",
|
|
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.4",
|
|
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.4",
|
|
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.4",
|
|
143
|
+
"@mittwald/flow-core": "1.7.0-next.4",
|
|
144
|
+
"@mittwald/flow-design-tokens": "1.7.0-next.4",
|
|
145
|
+
"@mittwald/flow-icons-base": "1.7.0-next.4",
|
|
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.4",
|
|
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.4",
|
|
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": "e539bbeb8cb3e08f0a47cd2b1a2b2f7dad34cd72"
|
|
227
227
|
}
|