@mittwald/flow-react-components 1.6.5 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/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/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 +9 -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/typedList.d.ts +17 -13
- package/dist/types/components/Markdown/Markdown.d.ts +3 -5
- 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 +18 -0
- package/package.json +10 -10
package/dist/js/packages/components/src/components/Table/components/TableBody/TableBody.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBody.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableBody/TableBody.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 TableBodyProps = Aria.TableBodyProps<never>;\n\n/** @flr-generate all */\nexport const TableBody: FC<TableBodyProps> = (props) => {\n const { children, className, ...rest } = props;\n\n const rootClassName = clsx(styles.body, className);\n\n return (\n <Aria.TableBody className={rootClassName} {...rest}>\n {children}\n </Aria.TableBody>\n );\n};\n\nexport default TableBody;\n"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"TableBody.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableBody/TableBody.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 TableBodyProps = Aria.TableBodyProps<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 TableBody: FC<TableBodyProps> = (props) => {\n const { children, className, ...rest } = props;\n\n const rootClassName = clsx(styles.body, className);\n\n return (\n <Aria.TableBody className={rootClassName} {...rest}>\n {children}\n </Aria.TableBody>\n );\n};\n\nexport default TableBody;\n"],"mappings":";;;;;;;;AAUA,IAAa,aAAiC,UAAU;CACtD,MAAM,EAAE,UAAU,WAAW,GAAG,SAAS;CAEzC,MAAM,gBAAgB,KAAKA,qBAAO,MAAM,SAAS;CAEjD,OACE,oBAAC,KAAK,WAAN;EAAgB,WAAW;EAAe,GAAI;EAC3C;CACa,CAAA;AAEpB"}
|
package/dist/js/packages/components/src/components/Table/components/TableCell/TableCell.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableCell/TableCell.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport { Suspense } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\nimport { SkeletonText } from \"@/components/SkeletonText\";\nimport { SkeletonRawText } from \"@/components/SkeletonMode/components/SkeletonRawText\";\n\nexport interface TableCellProps\n extends\n Omit<Aria.CellProps, \"children\" | \"style\" | \"render\">,\n PropsWithChildren {\n /**\n * Styles the cell as a row header. Its semantics come from the column: the\n * first column, or the one with `isRowHeader`.\n */\n rowHeader?: boolean;\n /** Horizontal alignment of the cell content @default \"start\" */\n horizontalAlign?: \"start\" | \"center\" | \"end\";\n}\n\n/** @flr-generate all */\nexport const TableCell: FC<TableCellProps> = (props) => {\n const {\n children,\n className,\n rowHeader,\n horizontalAlign = \"start\",\n ...rest\n } = props;\n\n const rootClassName = clsx(\n styles.cell,\n rowHeader && styles.column,\n horizontalAlign !== \"start\" &&\n styles[`horizontal-align-${horizontalAlign}`],\n className,\n );\n\n return (\n <Aria.Cell className={rootClassName} {...rest}>\n <Suspense fallback={<SkeletonText width=\"100px\" />}>\n <SkeletonRawText>{children}</SkeletonRawText>\n </Suspense>\n </Aria.Cell>\n );\n};\n\nexport default TableCell;\n"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TableCell.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableCell/TableCell.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport { Suspense } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\nimport { SkeletonText } from \"@/components/SkeletonText\";\nimport { SkeletonRawText } from \"@/components/SkeletonMode/components/SkeletonRawText\";\n\nexport interface TableCellProps\n extends\n Omit<Aria.CellProps, \"children\" | \"style\" | \"render\">,\n PropsWithChildren {\n /**\n * Styles the cell as a row header. Its semantics come from the column: the\n * first column, or the one with `isRowHeader`.\n */\n rowHeader?: boolean;\n /** Horizontal alignment of the cell content @default \"start\" */\n horizontalAlign?: \"start\" | \"center\" | \"end\";\n}\n\n/* Plain FC: rendered once per cell; the factory measurably slows large tables\n * (1,800 cells: mount +8–24 %, re-render +2–10 %). */\n/** @flr-generate all */\nexport const TableCell: FC<TableCellProps> = (props) => {\n const {\n children,\n className,\n rowHeader,\n horizontalAlign = \"start\",\n ...rest\n } = props;\n\n const rootClassName = clsx(\n styles.cell,\n rowHeader && styles.column,\n horizontalAlign !== \"start\" &&\n styles[`horizontal-align-${horizontalAlign}`],\n className,\n );\n\n return (\n <Aria.Cell className={rootClassName} {...rest}>\n <Suspense fallback={<SkeletonText width=\"100px\" />}>\n <SkeletonRawText>{children}</SkeletonRawText>\n </Suspense>\n </Aria.Cell>\n );\n};\n\nexport default TableCell;\n"],"mappings":";;;;;;;;;;;AAwBA,IAAa,aAAiC,UAAU;CACtD,MAAM,EACJ,UACA,WACA,WACA,kBAAkB,SAClB,GAAG,SACD;CAEJ,MAAM,gBAAgB,KACpBA,qBAAO,MACP,aAAaA,qBAAO,QACpB,oBAAoB,WAClBA,qBAAO,oBAAoB,oBAC7B,SACF;CAEA,OACE,oBAAC,KAAK,MAAN;EAAW,WAAW;EAAe,GAAI;EACvC,UAAA,oBAAC,UAAD;GAAU,UAAU,oBAAC,cAAD,EAAc,OAAM,QAAS,CAAA;GAC/C,UAAA,oBAAC,iBAAD,EAAkB,SAA0B,CAAA;EACpC,CAAA;CACD,CAAA;AAEf"}
|
package/dist/js/packages/components/src/components/Table/components/TableColumn/TableColumn.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableColumn.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableColumn/TableColumn.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\nimport { type PropsContext, PropsContextProvider } from \"@/lib/propsContext\";\nimport { SkeletonRawText } from \"@/components/SkeletonMode/components/SkeletonRawText\";\nimport { useIsFirstColumn } from \"@/components/Table/components/TableHeader/context\";\n\nexport interface TableColumnProps\n extends\n Omit<\n Aria.ColumnProps,\n \"children\" | \"width\" | \"minWidth\" | \"maxWidth\" | \"style\"\n >,\n PropsWithChildren {\n /** Horizontal alignment of the cell content @default \"start\" */\n horizontalAlign?: \"start\" | \"center\" | \"end\";\n /** The width of the column. */\n width?: number | string;\n /** The minimum width of the column. */\n minWidth?: number | string;\n}\n\n/** @flr-generate all */\nexport const TableColumn: FC<TableColumnProps> = (props) => {\n const {\n children,\n className,\n horizontalAlign = \"start\",\n width,\n minWidth,\n isRowHeader,\n ...rest\n } = props;\n const isFirstColumn = useIsFirstColumn();\n\n const rootClassName = clsx(\n styles.column,\n horizontalAlign !== \"start\" &&\n styles[`horizontal-align-${horizontalAlign}`],\n className,\n );\n\n const propsContext: PropsContext = { Checkbox: { slot: null } };\n\n return (\n <Aria.Column\n isRowHeader={isRowHeader ?? isFirstColumn ?? true}\n className={rootClassName}\n {...rest}\n style={{ width, minWidth }}\n >\n <PropsContextProvider props={propsContext}>\n <SkeletonRawText>{children}</SkeletonRawText>\n </PropsContextProvider>\n </Aria.Column>\n );\n};\n\nexport default TableColumn;\n"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TableColumn.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/Table/components/TableColumn/TableColumn.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\nimport { type PropsContext, PropsContextProvider } from \"@/lib/propsContext\";\nimport { SkeletonRawText } from \"@/components/SkeletonMode/components/SkeletonRawText\";\nimport { useIsFirstColumn } from \"@/components/Table/components/TableHeader/context\";\n\nexport interface TableColumnProps\n extends\n Omit<\n Aria.ColumnProps,\n \"children\" | \"width\" | \"minWidth\" | \"maxWidth\" | \"style\"\n >,\n PropsWithChildren {\n /** Horizontal alignment of the cell content @default \"start\" */\n horizontalAlign?: \"start\" | \"center\" | \"end\";\n /** The width of the column. */\n width?: number | string;\n /** The minimum width of the column. */\n minWidth?: number | string;\n}\n\n/* Plain FC: rendered once per cell; the factory measurably slows large tables\n * (1,800 cells: mount +8–24 %, re-render +2–10 %). */\n/** @flr-generate all */\nexport const TableColumn: FC<TableColumnProps> = (props) => {\n const {\n children,\n className,\n horizontalAlign = \"start\",\n width,\n minWidth,\n isRowHeader,\n ...rest\n } = props;\n const isFirstColumn = useIsFirstColumn();\n\n const rootClassName = clsx(\n styles.column,\n horizontalAlign !== \"start\" &&\n styles[`horizontal-align-${horizontalAlign}`],\n className,\n );\n\n const propsContext: PropsContext = { Checkbox: { slot: null } };\n\n return (\n <Aria.Column\n isRowHeader={isRowHeader ?? isFirstColumn ?? true}\n className={rootClassName}\n {...rest}\n style={{ width, minWidth }}\n >\n <PropsContextProvider props={propsContext}>\n <SkeletonRawText>{children}</SkeletonRawText>\n </PropsContextProvider>\n </Aria.Column>\n );\n};\n\nexport default TableColumn;\n"],"mappings":";;;;;;;;;;;AA0BA,IAAa,eAAqC,UAAU;CAC1D,MAAM,EACJ,UACA,WACA,kBAAkB,SAClB,OACA,UACA,aACA,GAAG,SACD;CACJ,MAAM,gBAAgB,iBAAiB;CAEvC,MAAM,gBAAgB,KACpBA,qBAAO,QACP,oBAAoB,WAClBA,qBAAO,oBAAoB,oBAC7B,SACF;CAEA,MAAM,eAA6B,EAAE,UAAU,EAAE,MAAM,KAAK,EAAE;CAE9D,OACE,oBAAC,KAAK,QAAN;EACE,aAAa,eAAe,iBAAiB;EAC7C,WAAW;EACX,GAAI;EACJ,OAAO;GAAE;GAAO;EAAS;EAEzB,UAAA,oBAAC,sBAAD;GAAsB,OAAO;GAC3B,UAAA,oBAAC,iBAAD,EAAkB,SAA0B,CAAA;EACxB,CAAA;CACX,CAAA;AAEjB"}
|
|
@@ -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":";;;;;;
|
|
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"}
|
package/dist/js/packages/components/src/components/Table/components/TableHeader/TableHeader.mjs.map
CHANGED
|
@@ -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":";;;;;;;;;;
|
|
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"}
|
package/dist/js/packages/components/src/components/Table/components/TableRow/TableRow.mjs.map
CHANGED
|
@@ -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":";;;;;;;;
|
|
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,7 +16,9 @@ var propsContextSupportingComponents = Object.keys({
|
|
|
15
16
|
Combine: true,
|
|
16
17
|
Badge: true,
|
|
17
18
|
BigNumber: true,
|
|
19
|
+
Breadcrumb: true,
|
|
18
20
|
Button: true,
|
|
21
|
+
CodeBlock: true,
|
|
19
22
|
CodeEditor: true,
|
|
20
23
|
Chat: true,
|
|
21
24
|
Checkbox: true,
|
|
@@ -36,6 +39,7 @@ var propsContextSupportingComponents = Object.keys({
|
|
|
36
39
|
DatePicker: true,
|
|
37
40
|
DateRangePicker: true,
|
|
38
41
|
DialogTrigger: true,
|
|
42
|
+
DonutChart: true,
|
|
39
43
|
FieldDescription: true,
|
|
40
44
|
FieldError: true,
|
|
41
45
|
FileCard: true,
|
|
@@ -44,10 +48,12 @@ var propsContextSupportingComponents = Object.keys({
|
|
|
44
48
|
FileDropZone: true,
|
|
45
49
|
Header: true,
|
|
46
50
|
Heading: true,
|
|
51
|
+
HeaderNavigation: true,
|
|
47
52
|
TabNavigation: true,
|
|
48
53
|
Icon: true,
|
|
49
54
|
IllustratedMessage: true,
|
|
50
55
|
Image: true,
|
|
56
|
+
ImageCropper: true,
|
|
51
57
|
Initials: true,
|
|
52
58
|
InlineCode: true,
|
|
53
59
|
Kbd: true,
|
|
@@ -61,6 +67,7 @@ var propsContextSupportingComponents = Object.keys({
|
|
|
61
67
|
ListItemView: true,
|
|
62
68
|
ListSummary: true,
|
|
63
69
|
LoadingSpinner: true,
|
|
70
|
+
Markdown: true,
|
|
64
71
|
MarkdownEditor: true,
|
|
65
72
|
MenuItem: true,
|
|
66
73
|
MenuTrigger: true,
|
|
@@ -90,8 +97,10 @@ var propsContextSupportingComponents = Object.keys({
|
|
|
90
97
|
Segment: true,
|
|
91
98
|
SegmentedControl: true,
|
|
92
99
|
Select: true,
|
|
100
|
+
SkeletonText: true,
|
|
93
101
|
Slider: true,
|
|
94
102
|
Switch: true,
|
|
103
|
+
Table: true,
|
|
95
104
|
Tabs: true,
|
|
96
105
|
TabTitle: true,
|
|
97
106
|
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 { 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 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 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":";AA6TA,IAAa,mCAAmC,OAAO,KACrD;CAtGA,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,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 { 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 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 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":";AAwVA,IAAa,mCAAmC,OAAO,KACrD;CA/GA,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,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 {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { PropsWithClassName } from '../../lib/types/props';
|
|
3
|
-
|
|
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:
|
|
16
|
+
export declare const AvatarStack: import('react').FunctionComponent<AvatarStackProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
17
|
export default AvatarStack;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
13
|
+
export declare const Breadcrumb: import('react').FunctionComponent<BreadcrumbProps & import('react').RefAttributes<HTMLOListElement>>;
|
|
13
14
|
export default Breadcrumb;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { PropsWithClassName } from '../../lib/types/props';
|
|
3
3
|
import { CodeEditorProps } from '../CodeEditor';
|
|
4
|
-
|
|
4
|
+
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
5
|
+
export interface CodeBlockProps extends PropsWithClassName, PropsWithChildren, FlowComponentProps, Partial<Pick<CodeEditorProps, "language" | "showLineNumbers" | "copyable">> {
|
|
5
6
|
/** The code displayed in the block. */
|
|
6
7
|
code?: string;
|
|
7
8
|
/**
|
|
@@ -13,5 +14,5 @@ export interface CodeBlockProps extends PropsWithClassName, PropsWithChildren, P
|
|
|
13
14
|
truncateLines?: boolean | number;
|
|
14
15
|
}
|
|
15
16
|
/** @flr-generate all */
|
|
16
|
-
export declare const CodeBlock:
|
|
17
|
+
export declare const CodeBlock: import('react').FunctionComponent<CodeBlockProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
18
|
export default CodeBlock;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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,
|
|
1
|
+
import { ComponentProps, PropsWithChildren } from 'react';
|
|
2
2
|
import { AlphaColor, PropsWithClassName } from '../../lib/types/props';
|
|
3
|
-
|
|
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:
|
|
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,
|
|
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:
|
|
43
|
+
export declare const ImageCropper: import('react').FunctionComponent<ImageCropperProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
42
44
|
export default ImageCropper;
|
|
@@ -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
|
-
|
|
213
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -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';
|
|
@@ -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,6 +162,7 @@ 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;
|
|
@@ -177,8 +193,10 @@ export interface FlowComponentPropsTypes {
|
|
|
177
193
|
Select: SelectProps;
|
|
178
194
|
Kbd: KbdProps;
|
|
179
195
|
SectionHeader: SectionHeaderProps;
|
|
196
|
+
SkeletonText: SkeletonTextProps;
|
|
180
197
|
Slider: SliderProps;
|
|
181
198
|
Switch: SwitchProps;
|
|
199
|
+
Table: TableProps;
|
|
182
200
|
Tabs: TabsProps;
|
|
183
201
|
TabTitle: TabsProps;
|
|
184
202
|
Text: TextProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.7",
|
|
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.
|
|
87
|
+
"@mittwald/flow-icons": "^1.6.7",
|
|
88
88
|
"@mittwald/password-tools-js": "^3.0.0",
|
|
89
|
-
"@mittwald/react-tunnel": "^1.6.
|
|
89
|
+
"@mittwald/react-tunnel": "^1.6.7",
|
|
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.
|
|
143
|
-
"@mittwald/flow-core": "1.6.
|
|
144
|
-
"@mittwald/flow-design-tokens": "1.6.
|
|
145
|
-
"@mittwald/flow-icons-base": "1.6.
|
|
142
|
+
"@mittwald/flow-components-base": "1.6.7",
|
|
143
|
+
"@mittwald/flow-core": "1.6.7",
|
|
144
|
+
"@mittwald/flow-design-tokens": "1.6.7",
|
|
145
|
+
"@mittwald/flow-icons-base": "1.6.7",
|
|
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.
|
|
148
|
+
"@mittwald/typescript-config": "1.6.7",
|
|
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.
|
|
202
|
+
"@mittwald/flow-icons-pro": "1.6.7",
|
|
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": "fdd7859c261605461308d9055c8d1ec75f52df5e"
|
|
227
227
|
}
|