@mittwald/flow-react-components 1.6.6 → 1.6.8

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.
Files changed (41) hide show
  1. package/dist/assets/component-index.json +1 -1
  2. package/dist/assets/doc-properties.json +1 -1
  3. package/dist/js/packages/components/src/components/AvatarStack/AvatarStack.mjs +5 -3
  4. package/dist/js/packages/components/src/components/AvatarStack/AvatarStack.mjs.map +1 -1
  5. package/dist/js/packages/components/src/components/Breadcrumb/Breadcrumb.mjs +5 -3
  6. package/dist/js/packages/components/src/components/Breadcrumb/Breadcrumb.mjs.map +1 -1
  7. package/dist/js/packages/components/src/components/DonutChart/DonutChart.mjs +5 -3
  8. package/dist/js/packages/components/src/components/DonutChart/DonutChart.mjs.map +1 -1
  9. package/dist/js/packages/components/src/components/Flex/Flex.mjs.map +1 -1
  10. package/dist/js/packages/components/src/components/HeaderNavigation/HeaderNavigation.mjs +5 -3
  11. package/dist/js/packages/components/src/components/HeaderNavigation/HeaderNavigation.mjs.map +1 -1
  12. package/dist/js/packages/components/src/components/ImageCropper/ImageCropper.mjs +5 -3
  13. package/dist/js/packages/components/src/components/ImageCropper/ImageCropper.mjs.map +1 -1
  14. package/dist/js/packages/components/src/components/Legend/Legend.mjs +5 -3
  15. package/dist/js/packages/components/src/components/Legend/Legend.mjs.map +1 -1
  16. package/dist/js/packages/components/src/components/Markdown/Markdown.mjs +3 -2
  17. package/dist/js/packages/components/src/components/Markdown/Markdown.mjs.map +1 -1
  18. package/dist/js/packages/components/src/components/SkeletonText/SkeletonText.mjs +6 -4
  19. package/dist/js/packages/components/src/components/SkeletonText/SkeletonText.mjs.map +1 -1
  20. package/dist/js/packages/components/src/components/Table/Table.mjs +5 -3
  21. package/dist/js/packages/components/src/components/Table/Table.mjs.map +1 -1
  22. package/dist/js/packages/components/src/components/Table/components/TableBody/TableBody.mjs.map +1 -1
  23. package/dist/js/packages/components/src/components/Table/components/TableCell/TableCell.mjs.map +1 -1
  24. package/dist/js/packages/components/src/components/Table/components/TableColumn/TableColumn.mjs.map +1 -1
  25. package/dist/js/packages/components/src/components/Table/components/TableFooterRow/TableFooterRow.mjs.map +1 -1
  26. package/dist/js/packages/components/src/components/Table/components/TableHeader/TableHeader.mjs.map +1 -1
  27. package/dist/js/packages/components/src/components/Table/components/TableRow/TableRow.mjs.map +1 -1
  28. package/dist/js/packages/components/src/components/propTypes/index.mjs +9 -0
  29. package/dist/js/packages/components/src/components/propTypes/index.mjs.map +1 -1
  30. package/dist/types/components/AvatarStack/AvatarStack.d.ts +4 -3
  31. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +4 -3
  32. package/dist/types/components/DonutChart/DonutChart.d.ts +4 -3
  33. package/dist/types/components/HeaderNavigation/HeaderNavigation.d.ts +4 -3
  34. package/dist/types/components/ImageCropper/ImageCropper.d.ts +5 -3
  35. package/dist/types/components/Legend/Legend.d.ts +5 -3
  36. package/dist/types/components/List/typedList.d.ts +17 -13
  37. package/dist/types/components/Markdown/Markdown.d.ts +3 -5
  38. package/dist/types/components/SkeletonText/SkeletonText.d.ts +4 -3
  39. package/dist/types/components/Table/Table.d.ts +18 -3
  40. package/dist/types/components/propTypes/index.d.ts +18 -0
  41. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"TableFooterRow.mjs","names":[],"sources":["../../../../../../../../../src/components/Table/components/TableFooterRow/TableFooterRow.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport type { TableRowProps } from \"../TableRow\";\nimport { TableRow } from \"../TableRow\";\n\nexport type TableFooterRowProps = TableRowProps;\n\n/** @flr-generate all */\nexport const TableFooterRow: FC<TableRowProps> = (props) => {\n return <TableRow {...props} footer={true} />;\n};\n\nexport default TableFooterRow;\n"],"mappings":";;;;;;AAOA,IAAa,kBAAqC,UAAU;CAC1D,OAAO,oBAAC,UAAD;EAAU,GAAI;EAAO,QAAQ;CAAO,CAAA;AAC7C"}
1
+ {"version":3,"file":"TableFooterRow.mjs","names":[],"sources":["../../../../../../../../../src/components/Table/components/TableFooterRow/TableFooterRow.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport type { TableRowProps } from \"../TableRow\";\nimport { TableRow } from \"../TableRow\";\n\nexport type TableFooterRowProps = TableRowProps;\n\n/* Plain FC: technical constraint — react-aria allows render-function children,\n * which the props types of registered components cannot express. */\n/** @flr-generate all */\nexport const TableFooterRow: FC<TableRowProps> = (props) => {\n return <TableRow {...props} footer={true} />;\n};\n\nexport default TableFooterRow;\n"],"mappings":";;;;;;AASA,IAAa,kBAAqC,UAAU;CAC1D,OAAO,oBAAC,UAAD;EAAU,GAAI;EAAO,QAAQ;CAAO,CAAA;AAC7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeader.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableHeader/TableHeader.tsx"],"sourcesContent":["import { Children, type FC } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\nimport { IsFirstColumnContext } from \"./context\";\n\nexport type TableHeaderProps = Aria.TableHeaderProps<never>;\n\n/** @flr-generate all */\nexport const TableHeader: FC<TableHeaderProps> = (props) => {\n const { children, className, ...rest } = props;\n\n const rootClassName = clsx(styles.header, className);\n\n // Assumes the first child renders a column; a wrapper that renders nothing\n // leaves the table without row header column, and react-aria throws.\n const columns =\n typeof children === \"function\"\n ? children\n : Children.toArray(children).map((column, index) => (\n <IsFirstColumnContext key={index} value={index === 0}>\n {column}\n </IsFirstColumnContext>\n ));\n\n return (\n <Aria.TableHeader className={rootClassName} {...rest}>\n {columns}\n </Aria.TableHeader>\n );\n};\n\nexport default TableHeader;\n"],"mappings":";;;;;;;;;;AASA,IAAa,eAAqC,UAAU;CAC1D,MAAM,EAAE,UAAU,WAAW,GAAG,SAAS;CAEzC,MAAM,gBAAgB,KAAKA,qBAAO,QAAQ,SAAS;CAInD,MAAM,UACJ,OAAO,aAAa,aAChB,WACA,SAAS,QAAQ,QAAQ,CAAC,CAAC,KAAK,QAAQ,UACtC,oBAAC,sBAAD;EAAkC,OAAO,UAAU;EAChD,UAAA;CACmB,GAFK,KAEL,CACvB;CAEP,OACE,oBAAC,KAAK,aAAN;EAAkB,WAAW;EAAe,GAAI;EAC7C,UAAA;CACe,CAAA;AAEtB"}
1
+ {"version":3,"file":"TableHeader.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableHeader/TableHeader.tsx"],"sourcesContent":["import { Children, type FC } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\nimport { IsFirstColumnContext } from \"./context\";\n\nexport type TableHeaderProps = Aria.TableHeaderProps<never>;\n\n/* Plain FC: technical constraint — react-aria allows render-function children,\n * which the props types of registered components cannot express. */\n/** @flr-generate all */\nexport const TableHeader: FC<TableHeaderProps> = (props) => {\n const { children, className, ...rest } = props;\n\n const rootClassName = clsx(styles.header, className);\n\n // Assumes the first child renders a column; a wrapper that renders nothing\n // leaves the table without row header column, and react-aria throws.\n const columns =\n typeof children === \"function\"\n ? children\n : Children.toArray(children).map((column, index) => (\n <IsFirstColumnContext key={index} value={index === 0}>\n {column}\n </IsFirstColumnContext>\n ));\n\n return (\n <Aria.TableHeader className={rootClassName} {...rest}>\n {columns}\n </Aria.TableHeader>\n );\n};\n\nexport default TableHeader;\n"],"mappings":";;;;;;;;;;AAWA,IAAa,eAAqC,UAAU;CAC1D,MAAM,EAAE,UAAU,WAAW,GAAG,SAAS;CAEzC,MAAM,gBAAgB,KAAKA,qBAAO,QAAQ,SAAS;CAInD,MAAM,UACJ,OAAO,aAAa,aAChB,WACA,SAAS,QAAQ,QAAQ,CAAC,CAAC,KAAK,QAAQ,UACtC,oBAAC,sBAAD;EAAkC,OAAO,UAAU;EAChD,UAAA;CACmB,GAFK,KAEL,CACvB;CAEP,OACE,oBAAC,KAAK,aAAN;EAAkB,WAAW;EAAe,GAAI;EAC7C,UAAA;CACe,CAAA;AAEtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableRow/TableRow.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\n\nexport type TableRowProps = Aria.RowProps<never> & {\n /** @internal */\n footer?: boolean;\n};\n\n/** @flr-generate all */\nexport const TableRow: FC<TableRowProps> = (props) => {\n const { children, className, footer, ...rest } = props;\n\n return (\n <Aria.Row\n className={(props) =>\n clsx(\n styles.row,\n footer && styles.footer,\n typeof className === \"function\" ? className(props) : className,\n )\n }\n {...rest}\n >\n {children}\n </Aria.Row>\n );\n};\n\nexport default TableRow;\n"],"mappings":";;;;;;;;AAWA,IAAa,YAA+B,UAAU;CACpD,MAAM,EAAE,UAAU,WAAW,QAAQ,GAAG,SAAS;CAEjD,OACE,oBAAC,KAAK,KAAN;EACE,YAAY,UACV,KACEA,qBAAO,KACP,UAAUA,qBAAO,QACjB,OAAO,cAAc,aAAa,UAAU,KAAK,IAAI,SACvD;EAEF,GAAI;EAEH;CACO,CAAA;AAEd"}
1
+ {"version":3,"file":"TableRow.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableRow/TableRow.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\n\nexport type TableRowProps = Aria.RowProps<never> & {\n /** @internal */\n footer?: boolean;\n};\n\n/* Plain FC: technical constraint — react-aria allows render-function children,\n * which the props types of registered components cannot express. */\n/** @flr-generate all */\nexport const TableRow: FC<TableRowProps> = (props) => {\n const { children, className, footer, ...rest } = props;\n\n return (\n <Aria.Row\n className={(props) =>\n clsx(\n styles.row,\n footer && styles.footer,\n typeof className === \"function\" ? className(props) : className,\n )\n }\n {...rest}\n >\n {children}\n </Aria.Row>\n );\n};\n\nexport default TableRow;\n"],"mappings":";;;;;;;;AAaA,IAAa,YAA+B,UAAU;CACpD,MAAM,EAAE,UAAU,WAAW,QAAQ,GAAG,SAAS;CAEjD,OACE,oBAAC,KAAK,KAAN;EACE,YAAY,UACV,KACEA,qBAAO,KACP,UAAUA,qBAAO,QACjB,OAAO,cAAc,aAAa,UAAU,KAAK,IAAI,SACvD;EAEF,GAAI;EAEH;CACO,CAAA;AAEd"}
@@ -6,6 +6,7 @@ var propsContextSupportingComponents = Object.keys({
6
6
  Accordion: true,
7
7
  AccordionGroup: true,
8
8
  Avatar: true,
9
+ AvatarStack: true,
9
10
  Autocomplete: true,
10
11
  Alert: true,
11
12
  AlertBadge: true,
@@ -15,6 +16,7 @@ var propsContextSupportingComponents = Object.keys({
15
16
  Combine: true,
16
17
  Badge: true,
17
18
  BigNumber: true,
19
+ Breadcrumb: true,
18
20
  Button: true,
19
21
  CodeBlock: true,
20
22
  CodeEditor: true,
@@ -37,6 +39,7 @@ var propsContextSupportingComponents = Object.keys({
37
39
  DatePicker: true,
38
40
  DateRangePicker: true,
39
41
  DialogTrigger: true,
42
+ DonutChart: true,
40
43
  FieldDescription: true,
41
44
  FieldError: true,
42
45
  FileCard: true,
@@ -45,15 +48,18 @@ var propsContextSupportingComponents = Object.keys({
45
48
  FileDropZone: true,
46
49
  Header: true,
47
50
  Heading: true,
51
+ HeaderNavigation: true,
48
52
  TabNavigation: true,
49
53
  Icon: true,
50
54
  IllustratedMessage: true,
51
55
  Image: true,
56
+ ImageCropper: true,
52
57
  Initials: true,
53
58
  InlineCode: true,
54
59
  Kbd: true,
55
60
  Label: true,
56
61
  LayoutCard: true,
62
+ Legend: true,
57
63
  LightBox: true,
58
64
  LightBoxGallery: true,
59
65
  LightBoxGalleryItem: true,
@@ -62,6 +68,7 @@ var propsContextSupportingComponents = Object.keys({
62
68
  ListItemView: true,
63
69
  ListSummary: true,
64
70
  LoadingSpinner: true,
71
+ Markdown: true,
65
72
  MarkdownEditor: true,
66
73
  MenuItem: true,
67
74
  MenuTrigger: true,
@@ -91,8 +98,10 @@ var propsContextSupportingComponents = Object.keys({
91
98
  Segment: true,
92
99
  SegmentedControl: true,
93
100
  Select: true,
101
+ SkeletonText: true,
94
102
  Slider: true,
95
103
  Switch: true,
104
+ Table: true,
96
105
  Tabs: true,
97
106
  TabTitle: true,
98
107
  TestComponent: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../src/components/propTypes/index.ts"],"sourcesContent":["import type { TextProps } from \"@/components/Text\";\nimport type { ButtonProps } from \"@/components/Button\";\nimport type { IconProps } from \"@/components/Icon\";\nimport type { LabelProps } from \"@/components/Label\";\nimport type { ContentProps } from \"@/components/Content\";\nimport type { LayoutCardProps } from \"@/components/LayoutCard\";\nimport type { LinkProps } from \"@/components/Link\";\nimport type { LightBoxProps } from \"@/components/LightBox\";\nimport type { FieldErrorProps } from \"@/components/FieldError\";\nimport type { FieldDescriptionProps } from \"@/components/FieldDescription\";\nimport type { AlertProps } from \"@/components/Alert\";\nimport type { HeadingProps } from \"@/components/Heading\";\nimport type { TabNavigationProps } from \"@/components/TabNavigation\";\nimport type { InitialsProps } from \"@/components/Initials\";\nimport type { LoadingSpinnerProps } from \"@/components/LoadingSpinner\";\nimport type { ImageProps } from \"@/components/Image\";\nimport type { CopyButtonProps } from \"@/components/CopyButton\";\nimport type { CodeBlockProps } from \"@/components/CodeBlock\";\nimport type { HeaderProps } from \"@/components/Header/\";\nimport type { SwitchProps } from \"@/components/Switch\";\nimport type { AlertBadgeProps } from \"@/components/AlertBadge\";\nimport type { AlertIconProps } from \"@/components/AlertIcon\";\nimport type { ActionGroupProps } from \"@/components/ActionGroup\";\nimport type { AvatarProps } from \"@/components/Avatar\";\nimport type { InlineCodeProps } from \"@/components/InlineCode\";\nimport type { BigNumberProps } from \"@/components/BigNumber\";\nimport type { ActionProps } from \"@/components/Action\";\nimport type {\n ContextMenuProps,\n ContextMenuTriggerProps,\n MenuItemProps,\n} from \"@/components/ContextMenu\";\nimport type { SelectProps } from \"@/components/Select\";\nimport type {\n RadioButtonProps,\n RadioGroupProps,\n RadioProps,\n} from \"@/components/RadioGroup\";\nimport type { TextFieldProps } from \"@/components/TextField\";\nimport type { NumberFieldProps } from \"@/components/NumberField\";\nimport type { TextAreaProps } from \"@/components/TextArea\";\nimport type { CheckboxGroupProps } from \"@/components/CheckboxGroup\";\nimport type { CheckboxProps } from \"@/components/Checkbox\";\nimport type { CheckboxButtonProps } from \"@/components/CheckboxButton\";\nimport type { TabsProps } from \"@/components/Tabs\";\nimport type { ModalProps, ModalTriggerProps } from \"@/components/Modal\";\nimport type { SectionProps } from \"@/components/Section\";\nimport type { SeparatorProps } from \"@/components/Separator\";\nimport type { SliderProps } from \"@/components/Slider\";\nimport type { CounterBadgeProps } from \"@/components/CounterBadge\";\nimport type { FlowComponentName } from \"@/components/propTypes/types\";\nimport type {\n ContextualHelpProps,\n ContextualHelpTriggerProps,\n} from \"@/components/ContextualHelp\";\nimport type { CoachMarkProps } from \"@/components/CoachMark\";\nimport type { PopoverProps, PopoverTriggerProps } from \"@/components/Popover\";\nimport type { ContextMenuSectionProps } from \"@/components/ContextMenu/components/ContextMenuSection\";\nimport type { ListItemViewProps, ListProps } from \"@/components/List\";\nimport type { PasswordCreationFieldProps } from \"@/components/PasswordCreationField\";\nimport type { SearchFieldProps } from \"@/components/SearchField\";\nimport type { BadgeProps } from \"@/components/Badge\";\nimport type { DatePickerProps } from \"@/components/DatePicker\";\nimport type * as Aria from \"react-aria-components\";\nimport type { DateRangePickerProps } from \"@/components/DateRangePicker\";\nimport type { TimeFieldProps } from \"@/components/TimeField\";\nimport type { ListSummaryProps } from \"@/components/List/components/ListSummary/ListSummary\";\nimport type { SegmentedControlProps } from \"@/components/SegmentedControl\";\nimport type { SegmentProps } from \"@/components/SegmentedControl/components/Segment\";\nimport type { FileCardProps } from \"@/components/FileCard\";\nimport type { FileFieldProps } from \"@/components/FileField\";\nimport type { AlignProps } from \"@/components/Align\";\nimport type { CombineProps } from \"@/components/Combine\";\nimport type { CountryOptionsProps } from \"@/components/CountryOptions\";\nimport type { ComboBoxProps } from \"@/components/ComboBox\";\nimport type { OptionProps } from \"@/components/Option\";\nimport type { MessageProps } from \"@/components/Message\";\nimport type {\n MessageSeparatorProps,\n MessageThreadProps,\n} from \"@/components/MessageThread\";\nimport type { FileCardListProps } from \"@/components/FileCardList\";\nimport type { AccentBoxProps } from \"@/components/AccentBox\";\nimport type { ColumnLayoutProps } from \"@/components/ColumnLayout\";\nimport type {\n DialogTriggerProps,\n MenuTriggerProps,\n} from \"@/components/OverlayTrigger\";\nimport type { ProgressBarProps } from \"@/components/ProgressBar\";\nimport type { FileDropZoneProps } from \"@/components/FileDropZone\";\nimport type { NavigationProps } from \"@/components/Navigation\";\nimport type { NavigationGroupProps } from \"@/components/Navigation/components/NavigationGroup\";\nimport type { AutocompleteProps } from \"@/components/Autocomplete/Autocomplete\";\nimport type { OptionsProps } from \"@/components/Options/Options\";\nimport type { MarkdownEditorProps } from \"@/components/MarkdownEditor\";\nimport type { AlertTextProps } from \"@/components/AlertText\";\nimport type { IllustratedMessageProps } from \"@/components/IllustratedMessage\";\nimport type { RatingProps } from \"@/components/Rating\";\nimport type { RatingSegmentProps } from \"@/components/Rating/components/RatingSegment\";\nimport type { CodeEditorProps } from \"@/components/CodeEditor\";\nimport type { KbdProps } from \"@/components/Kbd/Kbd\";\nimport type { AccordionProps } from \"@/components/Accordion\";\nimport type { AccordionGroupProps } from \"@/components/AccordionGroup\";\nimport type { ChatProps } from \"@/components/Chat\";\nimport type { SectionHeaderProps } from \"@/components/Section/components/SectionHeader/SectionHeader\";\nimport type {\n LightBoxGalleryItemProps,\n LightBoxGalleryProps,\n} from \"@/components/LightBox\";\n\nexport * from \"./types\";\n\nexport interface FlowComponentPropsTypes {\n AccentBox: AccentBoxProps;\n Action: ActionProps;\n ActionGroup: ActionGroupProps;\n Accordion: AccordionProps;\n AccordionGroup: AccordionGroupProps;\n Alert: AlertProps;\n AlertBadge: AlertBadgeProps;\n AlertIcon: AlertIconProps;\n AlertText: AlertTextProps;\n Align: AlignProps;\n Combine: CombineProps;\n Avatar: AvatarProps;\n Autocomplete: AutocompleteProps;\n Badge: BadgeProps;\n BigNumber: BigNumberProps;\n Button: ButtonProps;\n CodeBlock: CodeBlockProps;\n CodeEditor: CodeEditorProps;\n Chat: ChatProps;\n Checkbox: CheckboxProps;\n CheckboxButton: CheckboxButtonProps;\n CheckboxGroup: CheckboxGroupProps;\n ColumnLayout: ColumnLayoutProps;\n ComboBox: ComboBoxProps;\n Content: ContentProps;\n ContextMenu: ContextMenuProps;\n ContextMenuSection: ContextMenuSectionProps;\n ContextMenuTrigger: ContextMenuTriggerProps;\n CoachMark: CoachMarkProps;\n ContextualHelp: ContextualHelpProps;\n ContextualHelpTrigger: ContextualHelpTriggerProps;\n CopyButton: CopyButtonProps;\n CounterBadge: CounterBadgeProps;\n CountryOptions: CountryOptionsProps;\n DatePicker: DatePickerProps<Aria.DateValue>;\n DateRangePicker: DateRangePickerProps<Aria.DateValue>;\n DialogTrigger: DialogTriggerProps;\n FieldDescription: FieldDescriptionProps;\n FieldError: FieldErrorProps;\n FileCard: FileCardProps;\n FileCardList: FileCardListProps;\n FileField: FileFieldProps;\n FileDropZone: FileDropZoneProps;\n Header: HeaderProps;\n Heading: HeadingProps;\n TabNavigation: TabNavigationProps;\n Icon: IconProps;\n IllustratedMessage: IllustratedMessageProps;\n Image: ImageProps;\n Initials: InitialsProps;\n InlineCode: InlineCodeProps;\n Label: LabelProps;\n LayoutCard: LayoutCardProps;\n LightBox: LightBoxProps;\n LightBoxGallery: LightBoxGalleryProps;\n LightBoxGalleryItem: LightBoxGalleryItemProps;\n Link: LinkProps;\n List: ListProps<never>;\n ListItemView: ListItemViewProps;\n ListSummary: ListSummaryProps;\n LoadingSpinner: LoadingSpinnerProps;\n MarkdownEditor: MarkdownEditorProps;\n MenuItem: MenuItemProps;\n MenuTrigger: MenuTriggerProps;\n Message: MessageProps;\n MessageSeparator: MessageSeparatorProps;\n MessageThread: MessageThreadProps;\n Modal: ModalProps;\n ModalTrigger: ModalTriggerProps;\n Navigation: NavigationProps;\n NavigationGroup: NavigationGroupProps;\n NumberField: NumberFieldProps;\n Option: OptionProps;\n Options: OptionsProps;\n Popover: PopoverProps;\n PopoverTrigger: PopoverTriggerProps;\n PasswordCreationField: PasswordCreationFieldProps;\n ProgressBar: ProgressBarProps;\n Radio: RadioProps;\n RadioButton: RadioButtonProps;\n RadioGroup: RadioGroupProps;\n Rating: RatingProps;\n RatingSegment: RatingSegmentProps;\n SearchField: SearchFieldProps;\n Section: SectionProps;\n Separator: SeparatorProps;\n Segment: SegmentProps;\n SegmentedControl: SegmentedControlProps;\n Select: SelectProps;\n Kbd: KbdProps;\n SectionHeader: SectionHeaderProps;\n Slider: SliderProps;\n Switch: SwitchProps;\n Tabs: TabsProps;\n TabTitle: TabsProps;\n Text: TextProps;\n TextArea: TextAreaProps;\n TextField: TextFieldProps;\n TimeField: TimeFieldProps;\n}\n\nconst propsContextSupportingComponentsMap: Record<\n keyof FlowComponentPropsTypes,\n true\n> = {\n AccentBox: true,\n Action: true,\n ActionGroup: true,\n Accordion: true,\n AccordionGroup: true,\n Avatar: true,\n Autocomplete: true,\n Alert: true,\n AlertBadge: true,\n AlertIcon: true,\n AlertText: true,\n Align: true,\n Combine: true,\n Badge: true,\n BigNumber: true,\n Button: true,\n CodeBlock: true,\n CodeEditor: true,\n Chat: true,\n Checkbox: true,\n CheckboxButton: true,\n CheckboxGroup: true,\n ColumnLayout: true,\n ComboBox: true,\n Content: true,\n ContextMenu: true,\n ContextMenuSection: true,\n ContextMenuTrigger: true,\n CoachMark: true,\n ContextualHelp: true,\n ContextualHelpTrigger: true,\n CopyButton: true,\n CounterBadge: true,\n CountryOptions: true,\n DatePicker: true,\n DateRangePicker: true,\n DialogTrigger: true,\n FieldDescription: true,\n FieldError: true,\n FileCard: true,\n FileCardList: true,\n FileField: true,\n FileDropZone: true,\n Header: true,\n Heading: true,\n TabNavigation: true,\n Icon: true,\n IllustratedMessage: true,\n Image: true,\n Initials: true,\n InlineCode: true,\n Kbd: true,\n Label: true,\n LayoutCard: true,\n LightBox: true,\n LightBoxGallery: true,\n LightBoxGalleryItem: true,\n Link: true,\n List: true,\n ListItemView: true,\n ListSummary: true,\n LoadingSpinner: true,\n MarkdownEditor: true,\n MenuItem: true,\n MenuTrigger: true,\n Message: true,\n MessageSeparator: true,\n MessageThread: true,\n Modal: true,\n ModalTrigger: true,\n Navigation: true,\n NavigationGroup: true,\n NumberField: true,\n Radio: true,\n Option: true,\n Options: true,\n Popover: true,\n PopoverTrigger: true,\n PasswordCreationField: true,\n ProgressBar: true,\n RadioButton: true,\n RadioGroup: true,\n Rating: true,\n RatingSegment: true,\n SearchField: true,\n Section: true,\n SectionHeader: true,\n Separator: true,\n Segment: true,\n SegmentedControl: true,\n Select: true,\n Slider: true,\n Switch: true,\n Tabs: true,\n TabTitle: true,\n TestComponent: true,\n Text: true,\n TextArea: true,\n TextField: true,\n TimeField: true,\n};\n\nexport const propsContextSupportingComponents = Object.keys(\n propsContextSupportingComponentsMap,\n) as FlowComponentName[];\n"],"mappings":";AAgUA,IAAa,mCAAmC,OAAO,KACrD;CAvGA,WAAW;CACX,QAAQ;CACR,aAAa;CACb,WAAW;CACX,gBAAgB;CAChB,QAAQ;CACR,cAAc;CACd,OAAO;CACP,YAAY;CACZ,WAAW;CACX,WAAW;CACX,OAAO;CACP,SAAS;CACT,OAAO;CACP,WAAW;CACX,QAAQ;CACR,WAAW;CACX,YAAY;CACZ,MAAM;CACN,UAAU;CACV,gBAAgB;CAChB,eAAe;CACf,cAAc;CACd,UAAU;CACV,SAAS;CACT,aAAa;CACb,oBAAoB;CACpB,oBAAoB;CACpB,WAAW;CACX,gBAAgB;CAChB,uBAAuB;CACvB,YAAY;CACZ,cAAc;CACd,gBAAgB;CAChB,YAAY;CACZ,iBAAiB;CACjB,eAAe;CACf,kBAAkB;CAClB,YAAY;CACZ,UAAU;CACV,cAAc;CACd,WAAW;CACX,cAAc;CACd,QAAQ;CACR,SAAS;CACT,eAAe;CACf,MAAM;CACN,oBAAoB;CACpB,OAAO;CACP,UAAU;CACV,YAAY;CACZ,KAAK;CACL,OAAO;CACP,YAAY;CACZ,UAAU;CACV,iBAAiB;CACjB,qBAAqB;CACrB,MAAM;CACN,MAAM;CACN,cAAc;CACd,aAAa;CACb,gBAAgB;CAChB,gBAAgB;CAChB,UAAU;CACV,aAAa;CACb,SAAS;CACT,kBAAkB;CAClB,eAAe;CACf,OAAO;CACP,cAAc;CACd,YAAY;CACZ,iBAAiB;CACjB,aAAa;CACb,OAAO;CACP,QAAQ;CACR,SAAS;CACT,SAAS;CACT,gBAAgB;CAChB,uBAAuB;CACvB,aAAa;CACb,aAAa;CACb,YAAY;CACZ,QAAQ;CACR,eAAe;CACf,aAAa;CACb,SAAS;CACT,eAAe;CACf,WAAW;CACX,SAAS;CACT,kBAAkB;CAClB,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,MAAM;CACN,UAAU;CACV,eAAe;CACf,MAAM;CACN,UAAU;CACV,WAAW;CACX,WAAW;AAIX,CACF"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../src/components/propTypes/index.ts"],"sourcesContent":["import type { TextProps } from \"@/components/Text\";\nimport type { ButtonProps } from \"@/components/Button\";\nimport type { IconProps } from \"@/components/Icon\";\nimport type { LabelProps } from \"@/components/Label\";\nimport type { ContentProps } from \"@/components/Content\";\nimport type { LayoutCardProps } from \"@/components/LayoutCard\";\nimport type { LinkProps } from \"@/components/Link\";\nimport type { LegendProps } from \"@/components/Legend\";\nimport type { LightBoxProps } from \"@/components/LightBox\";\nimport type { FieldErrorProps } from \"@/components/FieldError\";\nimport type { FieldDescriptionProps } from \"@/components/FieldDescription\";\nimport type { AlertProps } from \"@/components/Alert\";\nimport type { HeadingProps } from \"@/components/Heading\";\nimport type { HeaderNavigationProps } from \"@/components/HeaderNavigation\";\nimport type { TabNavigationProps } from \"@/components/TabNavigation\";\nimport type { InitialsProps } from \"@/components/Initials\";\nimport type { LoadingSpinnerProps } from \"@/components/LoadingSpinner\";\nimport type { ImageProps } from \"@/components/Image\";\nimport type { CopyButtonProps } from \"@/components/CopyButton\";\nimport type { CodeBlockProps } from \"@/components/CodeBlock\";\nimport type { HeaderProps } from \"@/components/Header/\";\nimport type { SwitchProps } from \"@/components/Switch\";\nimport type { AlertBadgeProps } from \"@/components/AlertBadge\";\nimport type { AlertIconProps } from \"@/components/AlertIcon\";\nimport type { ActionGroupProps } from \"@/components/ActionGroup\";\nimport type { AvatarProps } from \"@/components/Avatar\";\nimport type { AvatarStackProps } from \"@/components/AvatarStack\";\nimport type { InlineCodeProps } from \"@/components/InlineCode\";\nimport type { BreadcrumbProps } from \"@/components/Breadcrumb\";\nimport type { BigNumberProps } from \"@/components/BigNumber\";\nimport type { DonutChartProps } from \"@/components/DonutChart\";\nimport type { ActionProps } from \"@/components/Action\";\nimport type {\n ContextMenuProps,\n ContextMenuTriggerProps,\n MenuItemProps,\n} from \"@/components/ContextMenu\";\nimport type { SelectProps } from \"@/components/Select\";\nimport type {\n RadioButtonProps,\n RadioGroupProps,\n RadioProps,\n} from \"@/components/RadioGroup\";\nimport type { TextFieldProps } from \"@/components/TextField\";\nimport type { NumberFieldProps } from \"@/components/NumberField\";\nimport type { TextAreaProps } from \"@/components/TextArea\";\nimport type { CheckboxGroupProps } from \"@/components/CheckboxGroup\";\nimport type { CheckboxProps } from \"@/components/Checkbox\";\nimport type { CheckboxButtonProps } from \"@/components/CheckboxButton\";\nimport type { TableProps } from \"@/components/Table\";\nimport type { TabsProps } from \"@/components/Tabs\";\nimport type { ModalProps, ModalTriggerProps } from \"@/components/Modal\";\nimport type { SectionProps } from \"@/components/Section\";\nimport type { SeparatorProps } from \"@/components/Separator\";\nimport type { SkeletonTextProps } from \"@/components/SkeletonText\";\nimport type { SliderProps } from \"@/components/Slider\";\nimport type { CounterBadgeProps } from \"@/components/CounterBadge\";\nimport type { FlowComponentName } from \"@/components/propTypes/types\";\nimport type {\n ContextualHelpProps,\n ContextualHelpTriggerProps,\n} from \"@/components/ContextualHelp\";\nimport type { CoachMarkProps } from \"@/components/CoachMark\";\nimport type { PopoverProps, PopoverTriggerProps } from \"@/components/Popover\";\nimport type { ContextMenuSectionProps } from \"@/components/ContextMenu/components/ContextMenuSection\";\nimport type { ListItemViewProps, ListProps } from \"@/components/List\";\nimport type { PasswordCreationFieldProps } from \"@/components/PasswordCreationField\";\nimport type { SearchFieldProps } from \"@/components/SearchField\";\nimport type { BadgeProps } from \"@/components/Badge\";\nimport type { DatePickerProps } from \"@/components/DatePicker\";\nimport type * as Aria from \"react-aria-components\";\nimport type { DateRangePickerProps } from \"@/components/DateRangePicker\";\nimport type { TimeFieldProps } from \"@/components/TimeField\";\nimport type { ListSummaryProps } from \"@/components/List/components/ListSummary/ListSummary\";\nimport type { SegmentedControlProps } from \"@/components/SegmentedControl\";\nimport type { SegmentProps } from \"@/components/SegmentedControl/components/Segment\";\nimport type { FileCardProps } from \"@/components/FileCard\";\nimport type { FileFieldProps } from \"@/components/FileField\";\nimport type { AlignProps } from \"@/components/Align\";\nimport type { CombineProps } from \"@/components/Combine\";\nimport type { CountryOptionsProps } from \"@/components/CountryOptions\";\nimport type { ComboBoxProps } from \"@/components/ComboBox\";\nimport type { OptionProps } from \"@/components/Option\";\nimport type { MessageProps } from \"@/components/Message\";\nimport type {\n MessageSeparatorProps,\n MessageThreadProps,\n} from \"@/components/MessageThread\";\nimport type { FileCardListProps } from \"@/components/FileCardList\";\nimport type { AccentBoxProps } from \"@/components/AccentBox\";\nimport type { ColumnLayoutProps } from \"@/components/ColumnLayout\";\nimport type {\n DialogTriggerProps,\n MenuTriggerProps,\n} from \"@/components/OverlayTrigger\";\nimport type { ProgressBarProps } from \"@/components/ProgressBar\";\nimport type { FileDropZoneProps } from \"@/components/FileDropZone\";\nimport type { NavigationProps } from \"@/components/Navigation\";\nimport type { NavigationGroupProps } from \"@/components/Navigation/components/NavigationGroup\";\nimport type { AutocompleteProps } from \"@/components/Autocomplete/Autocomplete\";\nimport type { OptionsProps } from \"@/components/Options/Options\";\nimport type { MarkdownProps } from \"@/components/Markdown\";\nimport type { MarkdownEditorProps } from \"@/components/MarkdownEditor\";\nimport type { AlertTextProps } from \"@/components/AlertText\";\nimport type { IllustratedMessageProps } from \"@/components/IllustratedMessage\";\nimport type { ImageCropperProps } from \"@/components/ImageCropper\";\nimport type { RatingProps } from \"@/components/Rating\";\nimport type { RatingSegmentProps } from \"@/components/Rating/components/RatingSegment\";\nimport type { CodeEditorProps } from \"@/components/CodeEditor\";\nimport type { KbdProps } from \"@/components/Kbd/Kbd\";\nimport type { AccordionProps } from \"@/components/Accordion\";\nimport type { AccordionGroupProps } from \"@/components/AccordionGroup\";\nimport type { ChatProps } from \"@/components/Chat\";\nimport type { SectionHeaderProps } from \"@/components/Section/components/SectionHeader/SectionHeader\";\nimport type {\n LightBoxGalleryItemProps,\n LightBoxGalleryProps,\n} from \"@/components/LightBox\";\n\nexport * from \"./types\";\n\nexport interface FlowComponentPropsTypes {\n AccentBox: AccentBoxProps;\n Action: ActionProps;\n ActionGroup: ActionGroupProps;\n Accordion: AccordionProps;\n AccordionGroup: AccordionGroupProps;\n Alert: AlertProps;\n AlertBadge: AlertBadgeProps;\n AlertIcon: AlertIconProps;\n AlertText: AlertTextProps;\n Align: AlignProps;\n Combine: CombineProps;\n Avatar: AvatarProps;\n AvatarStack: AvatarStackProps;\n Autocomplete: AutocompleteProps;\n Badge: BadgeProps;\n BigNumber: BigNumberProps;\n Breadcrumb: BreadcrumbProps;\n Button: ButtonProps;\n CodeBlock: CodeBlockProps;\n CodeEditor: CodeEditorProps;\n Chat: ChatProps;\n Checkbox: CheckboxProps;\n CheckboxButton: CheckboxButtonProps;\n CheckboxGroup: CheckboxGroupProps;\n ColumnLayout: ColumnLayoutProps;\n ComboBox: ComboBoxProps;\n Content: ContentProps;\n ContextMenu: ContextMenuProps;\n ContextMenuSection: ContextMenuSectionProps;\n ContextMenuTrigger: ContextMenuTriggerProps;\n CoachMark: CoachMarkProps;\n ContextualHelp: ContextualHelpProps;\n ContextualHelpTrigger: ContextualHelpTriggerProps;\n CopyButton: CopyButtonProps;\n CounterBadge: CounterBadgeProps;\n CountryOptions: CountryOptionsProps;\n DatePicker: DatePickerProps<Aria.DateValue>;\n DateRangePicker: DateRangePickerProps<Aria.DateValue>;\n DialogTrigger: DialogTriggerProps;\n DonutChart: DonutChartProps;\n FieldDescription: FieldDescriptionProps;\n FieldError: FieldErrorProps;\n FileCard: FileCardProps;\n FileCardList: FileCardListProps;\n FileField: FileFieldProps;\n FileDropZone: FileDropZoneProps;\n Header: HeaderProps;\n Heading: HeadingProps;\n HeaderNavigation: HeaderNavigationProps;\n TabNavigation: TabNavigationProps;\n Icon: IconProps;\n IllustratedMessage: IllustratedMessageProps;\n Image: ImageProps;\n ImageCropper: ImageCropperProps;\n Initials: InitialsProps;\n InlineCode: InlineCodeProps;\n Label: LabelProps;\n LayoutCard: LayoutCardProps;\n Legend: LegendProps;\n LightBox: LightBoxProps;\n LightBoxGallery: LightBoxGalleryProps;\n LightBoxGalleryItem: LightBoxGalleryItemProps;\n Link: LinkProps;\n List: ListProps<never>;\n ListItemView: ListItemViewProps;\n ListSummary: ListSummaryProps;\n LoadingSpinner: LoadingSpinnerProps;\n Markdown: MarkdownProps;\n MarkdownEditor: MarkdownEditorProps;\n MenuItem: MenuItemProps;\n MenuTrigger: MenuTriggerProps;\n Message: MessageProps;\n MessageSeparator: MessageSeparatorProps;\n MessageThread: MessageThreadProps;\n Modal: ModalProps;\n ModalTrigger: ModalTriggerProps;\n Navigation: NavigationProps;\n NavigationGroup: NavigationGroupProps;\n NumberField: NumberFieldProps;\n Option: OptionProps;\n Options: OptionsProps;\n Popover: PopoverProps;\n PopoverTrigger: PopoverTriggerProps;\n PasswordCreationField: PasswordCreationFieldProps;\n ProgressBar: ProgressBarProps;\n Radio: RadioProps;\n RadioButton: RadioButtonProps;\n RadioGroup: RadioGroupProps;\n Rating: RatingProps;\n RatingSegment: RatingSegmentProps;\n SearchField: SearchFieldProps;\n Section: SectionProps;\n Separator: SeparatorProps;\n Segment: SegmentProps;\n SegmentedControl: SegmentedControlProps;\n Select: SelectProps;\n Kbd: KbdProps;\n SectionHeader: SectionHeaderProps;\n SkeletonText: SkeletonTextProps;\n Slider: SliderProps;\n Switch: SwitchProps;\n Table: TableProps;\n Tabs: TabsProps;\n TabTitle: TabsProps;\n Text: TextProps;\n TextArea: TextAreaProps;\n TextField: TextFieldProps;\n TimeField: TimeFieldProps;\n}\n\nconst propsContextSupportingComponentsMap: Record<\n keyof FlowComponentPropsTypes,\n true\n> = {\n AccentBox: true,\n Action: true,\n ActionGroup: true,\n Accordion: true,\n AccordionGroup: true,\n Avatar: true,\n AvatarStack: true,\n Autocomplete: true,\n Alert: true,\n AlertBadge: true,\n AlertIcon: true,\n AlertText: true,\n Align: true,\n Combine: true,\n Badge: true,\n BigNumber: true,\n Breadcrumb: true,\n Button: true,\n CodeBlock: true,\n CodeEditor: true,\n Chat: true,\n Checkbox: true,\n CheckboxButton: true,\n CheckboxGroup: true,\n ColumnLayout: true,\n ComboBox: true,\n Content: true,\n ContextMenu: true,\n ContextMenuSection: true,\n ContextMenuTrigger: true,\n CoachMark: true,\n ContextualHelp: true,\n ContextualHelpTrigger: true,\n CopyButton: true,\n CounterBadge: true,\n CountryOptions: true,\n DatePicker: true,\n DateRangePicker: true,\n DialogTrigger: true,\n DonutChart: true,\n FieldDescription: true,\n FieldError: true,\n FileCard: true,\n FileCardList: true,\n FileField: true,\n FileDropZone: true,\n Header: true,\n Heading: true,\n HeaderNavigation: true,\n TabNavigation: true,\n Icon: true,\n IllustratedMessage: true,\n Image: true,\n ImageCropper: true,\n Initials: true,\n InlineCode: true,\n Kbd: true,\n Label: true,\n LayoutCard: true,\n Legend: true,\n LightBox: true,\n LightBoxGallery: true,\n LightBoxGalleryItem: true,\n Link: true,\n List: true,\n ListItemView: true,\n ListSummary: true,\n LoadingSpinner: true,\n Markdown: true,\n MarkdownEditor: true,\n MenuItem: true,\n MenuTrigger: true,\n Message: true,\n MessageSeparator: true,\n MessageThread: true,\n Modal: true,\n ModalTrigger: true,\n Navigation: true,\n NavigationGroup: true,\n NumberField: true,\n Radio: true,\n Option: true,\n Options: true,\n Popover: true,\n PopoverTrigger: true,\n PasswordCreationField: true,\n ProgressBar: true,\n RadioButton: true,\n RadioGroup: true,\n Rating: true,\n RatingSegment: true,\n SearchField: true,\n Section: true,\n SectionHeader: true,\n Separator: true,\n Segment: true,\n SegmentedControl: true,\n Select: true,\n SkeletonText: true,\n Slider: true,\n Switch: true,\n Table: true,\n Tabs: true,\n TabTitle: true,\n TestComponent: true,\n Text: true,\n TextArea: true,\n TextField: true,\n TimeField: true,\n};\n\nexport const propsContextSupportingComponents = Object.keys(\n propsContextSupportingComponentsMap,\n) as FlowComponentName[];\n"],"mappings":";AA2VA,IAAa,mCAAmC,OAAO,KACrD;CAhHA,WAAW;CACX,QAAQ;CACR,aAAa;CACb,WAAW;CACX,gBAAgB;CAChB,QAAQ;CACR,aAAa;CACb,cAAc;CACd,OAAO;CACP,YAAY;CACZ,WAAW;CACX,WAAW;CACX,OAAO;CACP,SAAS;CACT,OAAO;CACP,WAAW;CACX,YAAY;CACZ,QAAQ;CACR,WAAW;CACX,YAAY;CACZ,MAAM;CACN,UAAU;CACV,gBAAgB;CAChB,eAAe;CACf,cAAc;CACd,UAAU;CACV,SAAS;CACT,aAAa;CACb,oBAAoB;CACpB,oBAAoB;CACpB,WAAW;CACX,gBAAgB;CAChB,uBAAuB;CACvB,YAAY;CACZ,cAAc;CACd,gBAAgB;CAChB,YAAY;CACZ,iBAAiB;CACjB,eAAe;CACf,YAAY;CACZ,kBAAkB;CAClB,YAAY;CACZ,UAAU;CACV,cAAc;CACd,WAAW;CACX,cAAc;CACd,QAAQ;CACR,SAAS;CACT,kBAAkB;CAClB,eAAe;CACf,MAAM;CACN,oBAAoB;CACpB,OAAO;CACP,cAAc;CACd,UAAU;CACV,YAAY;CACZ,KAAK;CACL,OAAO;CACP,YAAY;CACZ,QAAQ;CACR,UAAU;CACV,iBAAiB;CACjB,qBAAqB;CACrB,MAAM;CACN,MAAM;CACN,cAAc;CACd,aAAa;CACb,gBAAgB;CAChB,UAAU;CACV,gBAAgB;CAChB,UAAU;CACV,aAAa;CACb,SAAS;CACT,kBAAkB;CAClB,eAAe;CACf,OAAO;CACP,cAAc;CACd,YAAY;CACZ,iBAAiB;CACjB,aAAa;CACb,OAAO;CACP,QAAQ;CACR,SAAS;CACT,SAAS;CACT,gBAAgB;CAChB,uBAAuB;CACvB,aAAa;CACb,aAAa;CACb,YAAY;CACZ,QAAQ;CACR,eAAe;CACf,aAAa;CACb,SAAS;CACT,eAAe;CACf,WAAW;CACX,SAAS;CACT,kBAAkB;CAClB,QAAQ;CACR,cAAc;CACd,QAAQ;CACR,QAAQ;CACR,OAAO;CACP,MAAM;CACN,UAAU;CACV,eAAe;CACf,MAAM;CACN,UAAU;CACV,WAAW;CACX,WAAW;AAIX,CACF"}
@@ -1,6 +1,7 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { PropsWithClassName } from '../../lib/types/props';
3
- export interface AvatarStackProps extends PropsWithClassName, PropsWithChildren {
3
+ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
+ export interface AvatarStackProps extends PropsWithClassName, PropsWithChildren, FlowComponentProps {
4
5
  /**
5
6
  * The total count of items, as avatars should only be displayed for the first
6
7
  * view
@@ -12,5 +13,5 @@ export interface AvatarStackProps extends PropsWithClassName, PropsWithChildren
12
13
  size?: "xs" | "s" | "m" | "l";
13
14
  }
14
15
  /** @flr-generate all */
15
- export declare const AvatarStack: FC<AvatarStackProps>;
16
+ export declare const AvatarStack: import('react').FunctionComponent<AvatarStackProps & import('react').RefAttributes<HTMLDivElement>>;
16
17
  export default AvatarStack;
@@ -1,13 +1,14 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { BreadcrumbItemProps } from './components/BreadcrumbItem';
3
3
  import { AlphaColor } from '../../lib/types/props';
4
+ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
5
  import * as Aria from "react-aria-components";
5
- export interface BreadcrumbProps extends Omit<Aria.BreadcrumbsProps<BreadcrumbItemProps>, "children">, PropsWithChildren {
6
+ export interface BreadcrumbProps extends Omit<Aria.BreadcrumbsProps<BreadcrumbItemProps>, "children">, PropsWithChildren, FlowComponentProps<HTMLOListElement> {
6
7
  /** The color of the breadcrumb. @default "default" */
7
8
  color?: "default" | AlphaColor;
8
9
  /** The size of the element. @default "m" */
9
10
  size?: "s" | "m";
10
11
  }
11
12
  /** @flr-generate all */
12
- export declare const Breadcrumb: FC<BreadcrumbProps>;
13
+ export declare const Breadcrumb: import('react').FunctionComponent<BreadcrumbProps & import('react').RefAttributes<HTMLOListElement>>;
13
14
  export default Breadcrumb;
@@ -1,6 +1,7 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { CategoricalWithCustomColor } from '../../lib/tokens/CategoricalColors';
3
3
  import { Status } from '../../lib/types/props';
4
+ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
5
  import * as Aria from "react-aria-components";
5
6
  export interface DonutChartSegment {
6
7
  value: number;
@@ -8,7 +9,7 @@ export interface DonutChartSegment {
8
9
  color?: CategoricalWithCustomColor;
9
10
  valueText?: string;
10
11
  }
11
- export interface DonutChartProps extends Omit<Aria.ProgressBarProps, "children" | "valueLabel">, PropsWithChildren {
12
+ export interface DonutChartProps extends Omit<Aria.ProgressBarProps, "children" | "valueLabel">, PropsWithChildren, FlowComponentProps {
12
13
  /** The status the donut chart is colored by. */
13
14
  status?: Exclude<Status, "unavailable">;
14
15
  /** The size variant of the donut chart. @default "m" */
@@ -21,5 +22,5 @@ export interface DonutChartProps extends Omit<Aria.ProgressBarProps, "children"
21
22
  legendPosition?: "top" | "left" | "bottom" | "right";
22
23
  }
23
24
  /** @flr-generate all */
24
- export declare const DonutChart: FC<DonutChartProps>;
25
+ export declare const DonutChart: import('react').FunctionComponent<DonutChartProps & import('react').RefAttributes<HTMLDivElement>>;
25
26
  export default DonutChart;
@@ -1,9 +1,10 @@
1
- import { ComponentProps, FC, PropsWithChildren } from 'react';
1
+ import { ComponentProps, PropsWithChildren } from 'react';
2
2
  import { AlphaColor, PropsWithClassName } from '../../lib/types/props';
3
- export interface HeaderNavigationProps extends PropsWithChildren<ComponentProps<"nav">>, PropsWithClassName {
3
+ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
+ export interface HeaderNavigationProps extends PropsWithChildren<ComponentProps<"nav">>, PropsWithClassName, FlowComponentProps<HTMLElement> {
4
5
  /** The color of the header navigation. @default "default" */
5
6
  color?: "default" | AlphaColor;
6
7
  }
7
8
  /** @flr-generate all */
8
- export declare const HeaderNavigation: FC<HeaderNavigationProps>;
9
+ export declare const HeaderNavigation: import('react').FunctionComponent<HeaderNavigationProps & import('react').RefAttributes<HTMLElement>>;
9
10
  export default HeaderNavigation;
@@ -1,6 +1,7 @@
1
- import { CSSProperties, FC, ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  import { CropperProps } from 'react-easy-crop';
3
3
  import { PropsWithClassName } from '../../lib/types/props';
4
+ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
5
  /** Why an {@link ImageCropper} cannot work with the given image. */
5
6
  export interface ImageCropperError {
6
7
  /**
@@ -12,7 +13,7 @@ export interface ImageCropperError {
12
13
  /** Technical message, meant for logging — not for display. */
13
14
  message: string;
14
15
  }
15
- export interface ImageCropperProps extends PropsWithClassName, Partial<Pick<CropperProps, "cropShape">> {
16
+ export interface ImageCropperProps extends PropsWithClassName, FlowComponentProps, Partial<Pick<CropperProps, "cropShape">> {
16
17
  /** The image file to crop. */
17
18
  image?: File | string;
18
19
  /** Callback on crop complete. */
@@ -33,10 +34,11 @@ export interface ImageCropperProps extends PropsWithClassName, Partial<Pick<Crop
33
34
  height?: CSSProperties["height"];
34
35
  /** The aspect ratio of the crop shape. */
35
36
  aspectRatio?: number;
37
+ children?: never;
36
38
  }
37
39
  /**
38
40
  * @flr-generate all
39
41
  * @flowStatus new
40
42
  */
41
- export declare const ImageCropper: FC<ImageCropperProps>;
43
+ export declare const ImageCropper: import('react').FunctionComponent<ImageCropperProps & import('react').RefAttributes<HTMLDivElement>>;
42
44
  export default ImageCropper;
@@ -1,6 +1,8 @@
1
1
  import { PropsWithClassName } from '../../lib/types/props';
2
- import { FC, PropsWithChildren } from 'react';
3
- export type LegendProps = PropsWithChildren & PropsWithClassName;
2
+ import { PropsWithChildren } from 'react';
3
+ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
+ export interface LegendProps extends PropsWithChildren, PropsWithClassName, FlowComponentProps<HTMLUListElement> {
5
+ }
4
6
  /** @flr-generate all */
5
- export declare const Legend: FC<LegendProps>;
7
+ export declare const Legend: import('react').FunctionComponent<LegendProps & import('react').RefAttributes<HTMLUListElement>>;
6
8
  export default Legend;
@@ -101,6 +101,8 @@ export declare const typedList: <T, TMeta = unknown>() => {
101
101
  inert?: boolean | undefined | undefined;
102
102
  translate?: "yes" | "no" | undefined | undefined;
103
103
  rel?: string | undefined;
104
+ disabledBehavior?: import('react-stately').DisabledBehavior | undefined;
105
+ dependencies?: ReadonlyArray<any> | undefined;
104
106
  onPress?: ((e: import('react-aria-components').PressEvent) => void) | undefined;
105
107
  onPressStart?: ((e: import('react-aria-components').PressEvent) => void) | undefined;
106
108
  onPressEnd?: ((e: import('react-aria-components').PressEvent) => void) | undefined;
@@ -116,9 +118,7 @@ export declare const typedList: <T, TMeta = unknown>() => {
116
118
  ping?: string | undefined;
117
119
  referrerPolicy?: import('react').HTMLAttributeReferrerPolicy | undefined;
118
120
  routerOptions?: import('@react-types/shared').RouterOptions | undefined;
119
- dependencies?: ReadonlyArray<any> | undefined;
120
121
  columns?: Iterable<never> | undefined;
121
- disabledBehavior?: import('react-stately').DisabledBehavior | undefined;
122
122
  hasChildItems?: boolean | undefined;
123
123
  renderDependencies?: import('react').DependencyList | undefined;
124
124
  }) => null;
@@ -199,6 +199,10 @@ export declare const typedList: <T, TMeta = unknown>() => {
199
199
  onTransitionRunCapture?: import('react').TransitionEventHandler<HTMLTableElement> | undefined;
200
200
  onTransitionStart?: import('react').TransitionEventHandler<HTMLTableElement> | undefined;
201
201
  onTransitionStartCapture?: import('react').TransitionEventHandler<HTMLTableElement> | undefined;
202
+ wrapWith?: (import('react').ReactElement | null) | undefined;
203
+ tunnel?: import('../../index/internal').TunnelTarget | undefined;
204
+ ref?: import('react').Ref<HTMLDivElement> | undefined;
205
+ key?: import('react').Key | null | undefined;
202
206
  defaultSelectedKeys?: ("all" | Iterable<import('react-aria-components').Key>) | undefined;
203
207
  selectedKeys?: ("all" | Iterable<import('react-aria-components').Key>) | undefined;
204
208
  dir?: string | undefined | undefined;
@@ -206,25 +210,25 @@ export declare const typedList: <T, TMeta = unknown>() => {
206
210
  inert?: boolean | undefined | undefined;
207
211
  translate?: "yes" | "no" | undefined | undefined;
208
212
  disabledKeys?: Iterable<import('react-aria-components').Key> | undefined;
213
+ escapeKeyBehavior?: "clearSelection" | "none" | undefined;
214
+ shouldSelectOnPressUp?: boolean | undefined;
215
+ treeColumn?: import('react-aria-components').Key | undefined;
216
+ keyboardNavigationBehavior?: "arrow" | "tab" | undefined;
209
217
  selectionMode?: import('react-aria-components').SelectionMode | undefined;
210
218
  disallowEmptySelection?: boolean | undefined;
211
219
  onSelectionChange?: ((keys: import('react-aria-components').Selection) => void) | undefined;
212
- minWidth?: number | string | undefined;
213
- selectionBehavior?: import('react-stately').SelectionBehavior | undefined;
214
- shouldSelectOnPressUp?: boolean | undefined;
215
- escapeKeyBehavior?: "clearSelection" | "none" | undefined;
216
- dragAndDropHooks?: import('react-aria-components').DragAndDropHooks | undefined;
217
- layout?: "auto" | "fixed" | undefined;
220
+ sortDescriptor?: import('react-aria-components').SortDescriptor | undefined;
221
+ onSortChange?: ((descriptor: import('react-aria-components').SortDescriptor) => any) | undefined;
218
222
  expandedKeys?: Iterable<import('react-aria-components').Key> | undefined;
219
223
  defaultExpandedKeys?: Iterable<import('react-aria-components').Key> | undefined;
220
224
  onExpandedChange?: ((keys: Set<import('react-aria-components').Key>) => any) | undefined;
225
+ selectionBehavior?: import('react-stately').SelectionBehavior | undefined;
221
226
  disabledBehavior?: import('react-stately').DisabledBehavior | undefined;
222
- verticalAlign?: "top" | "middle" | undefined;
223
- keyboardNavigationBehavior?: "arrow" | "tab" | undefined;
224
- treeColumn?: import('react-aria-components').Key | undefined;
225
- sortDescriptor?: import('react-aria-components').SortDescriptor | undefined;
226
- onSortChange?: ((descriptor: import('react-aria-components').SortDescriptor) => any) | undefined;
227
227
  onRowAction?: ((key: import('react-aria-components').Key) => void) | undefined;
228
+ dragAndDropHooks?: import('react-aria-components').DragAndDropHooks | undefined;
229
+ minWidth?: number | string | undefined;
230
+ layout?: "auto" | "fixed" | undefined;
231
+ verticalAlign?: "top" | "middle" | undefined;
228
232
  }) => null;
229
233
  StaticData: ComponentType<{
230
234
  data: readonly T[];
@@ -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
- export interface MarkdownProps extends PropsWithClassName, Omit<Options, "components"> {
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: FC<MarkdownProps>;
18
+ export declare const Markdown: import('react').FunctionComponent<MarkdownProps & import('react').RefAttributes<HTMLDivElement>>;
21
19
  export default Markdown;
@@ -1,8 +1,9 @@
1
- import { ComponentProps, CSSProperties, FC } from 'react';
2
- export interface SkeletonTextProps extends ComponentProps<"span"> {
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: FC<SkeletonTextProps>;
8
+ export declare const SkeletonText: import('react').FunctionComponent<SkeletonTextProps & import('react').RefAttributes<HTMLSpanElement>>;
8
9
  export default SkeletonText;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
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: FC<TableProps>;
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,11 +5,13 @@ 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';
@@ -22,8 +24,11 @@ import { AlertBadgeProps } from '../AlertBadge';
22
24
  import { AlertIconProps } from '../AlertIcon';
23
25
  import { ActionGroupProps } from '../ActionGroup';
24
26
  import { AvatarProps } from '../Avatar';
27
+ import { AvatarStackProps } from '../AvatarStack';
25
28
  import { InlineCodeProps } from '../InlineCode';
29
+ import { BreadcrumbProps } from '../Breadcrumb';
26
30
  import { BigNumberProps } from '../BigNumber';
31
+ import { DonutChartProps } from '../DonutChart';
27
32
  import { ActionProps } from '../Action';
28
33
  import { ContextMenuProps, ContextMenuTriggerProps, MenuItemProps } from '../ContextMenu';
29
34
  import { SelectProps } from '../Select';
@@ -34,10 +39,12 @@ import { TextAreaProps } from '../TextArea';
34
39
  import { CheckboxGroupProps } from '../CheckboxGroup';
35
40
  import { CheckboxProps } from '../Checkbox';
36
41
  import { CheckboxButtonProps } from '../CheckboxButton';
42
+ import { TableProps } from '../Table';
37
43
  import { TabsProps } from '../Tabs';
38
44
  import { ModalProps, ModalTriggerProps } from '../Modal';
39
45
  import { SectionProps } from '../Section';
40
46
  import { SeparatorProps } from '../Separator';
47
+ import { SkeletonTextProps } from '../SkeletonText';
41
48
  import { SliderProps } from '../Slider';
42
49
  import { CounterBadgeProps } from '../CounterBadge';
43
50
  import { FlowComponentName } from './types';
@@ -74,9 +81,11 @@ import { NavigationProps } from '../Navigation';
74
81
  import { NavigationGroupProps } from '../Navigation/components/NavigationGroup';
75
82
  import { AutocompleteProps } from '../Autocomplete/Autocomplete';
76
83
  import { OptionsProps } from '../Options/Options';
84
+ import { MarkdownProps } from '../Markdown';
77
85
  import { MarkdownEditorProps } from '../MarkdownEditor';
78
86
  import { AlertTextProps } from '../AlertText';
79
87
  import { IllustratedMessageProps } from '../IllustratedMessage';
88
+ import { ImageCropperProps } from '../ImageCropper';
80
89
  import { RatingProps } from '../Rating';
81
90
  import { RatingSegmentProps } from '../Rating/components/RatingSegment';
82
91
  import { CodeEditorProps } from '../CodeEditor';
@@ -100,9 +109,11 @@ export interface FlowComponentPropsTypes {
100
109
  Align: AlignProps;
101
110
  Combine: CombineProps;
102
111
  Avatar: AvatarProps;
112
+ AvatarStack: AvatarStackProps;
103
113
  Autocomplete: AutocompleteProps;
104
114
  Badge: BadgeProps;
105
115
  BigNumber: BigNumberProps;
116
+ Breadcrumb: BreadcrumbProps;
106
117
  Button: ButtonProps;
107
118
  CodeBlock: CodeBlockProps;
108
119
  CodeEditor: CodeEditorProps;
@@ -125,6 +136,7 @@ export interface FlowComponentPropsTypes {
125
136
  DatePicker: DatePickerProps<Aria.DateValue>;
126
137
  DateRangePicker: DateRangePickerProps<Aria.DateValue>;
127
138
  DialogTrigger: DialogTriggerProps;
139
+ DonutChart: DonutChartProps;
128
140
  FieldDescription: FieldDescriptionProps;
129
141
  FieldError: FieldErrorProps;
130
142
  FileCard: FileCardProps;
@@ -133,14 +145,17 @@ export interface FlowComponentPropsTypes {
133
145
  FileDropZone: FileDropZoneProps;
134
146
  Header: HeaderProps;
135
147
  Heading: HeadingProps;
148
+ HeaderNavigation: HeaderNavigationProps;
136
149
  TabNavigation: TabNavigationProps;
137
150
  Icon: IconProps;
138
151
  IllustratedMessage: IllustratedMessageProps;
139
152
  Image: ImageProps;
153
+ ImageCropper: ImageCropperProps;
140
154
  Initials: InitialsProps;
141
155
  InlineCode: InlineCodeProps;
142
156
  Label: LabelProps;
143
157
  LayoutCard: LayoutCardProps;
158
+ Legend: LegendProps;
144
159
  LightBox: LightBoxProps;
145
160
  LightBoxGallery: LightBoxGalleryProps;
146
161
  LightBoxGalleryItem: LightBoxGalleryItemProps;
@@ -149,6 +164,7 @@ export interface FlowComponentPropsTypes {
149
164
  ListItemView: ListItemViewProps;
150
165
  ListSummary: ListSummaryProps;
151
166
  LoadingSpinner: LoadingSpinnerProps;
167
+ Markdown: MarkdownProps;
152
168
  MarkdownEditor: MarkdownEditorProps;
153
169
  MenuItem: MenuItemProps;
154
170
  MenuTrigger: MenuTriggerProps;
@@ -179,8 +195,10 @@ export interface FlowComponentPropsTypes {
179
195
  Select: SelectProps;
180
196
  Kbd: KbdProps;
181
197
  SectionHeader: SectionHeaderProps;
198
+ SkeletonText: SkeletonTextProps;
182
199
  Slider: SliderProps;
183
200
  Switch: SwitchProps;
201
+ Table: TableProps;
184
202
  Tabs: TabsProps;
185
203
  TabTitle: TabsProps;
186
204
  Text: TextProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
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.6.6",
87
+ "@mittwald/flow-icons": "^1.6.8",
88
88
  "@mittwald/password-tools-js": "^3.0.0",
89
- "@mittwald/react-tunnel": "^1.6.6",
89
+ "@mittwald/react-tunnel": "^1.6.8",
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.6.6",
143
- "@mittwald/flow-core": "1.6.6",
144
- "@mittwald/flow-design-tokens": "1.6.6",
145
- "@mittwald/flow-icons-base": "1.6.6",
142
+ "@mittwald/flow-components-base": "1.6.8",
143
+ "@mittwald/flow-core": "1.6.8",
144
+ "@mittwald/flow-design-tokens": "1.6.8",
145
+ "@mittwald/flow-icons-base": "1.6.8",
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.6.6",
148
+ "@mittwald/typescript-config": "1.6.8",
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.6.6",
202
+ "@mittwald/flow-icons-pro": "1.6.8",
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": "8769b99493b8092d74a19587ee660d96e9f7cdfa"
226
+ "gitHead": "c6ff415dca743e55903f6ea47bd3b54882404b8d"
227
227
  }