@mittwald/flow-react-components 1.7.0-next.3 → 1.7.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +6 -7
- package/MIGRATION.md +56 -0
- package/dist/assets/component-index.json +1 -1
- package/dist/assets/doc-properties.json +1 -1
- package/dist/js/packages/components/src/components/AvatarStack/AvatarStack.mjs +5 -3
- package/dist/js/packages/components/src/components/AvatarStack/AvatarStack.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Breadcrumb/Breadcrumb.mjs +5 -3
- package/dist/js/packages/components/src/components/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.mjs +6 -3
- package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.mjs.map +1 -1
- package/dist/js/packages/components/src/components/DonutChart/DonutChart.mjs +5 -3
- package/dist/js/packages/components/src/components/DonutChart/DonutChart.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Flex/Flex.mjs.map +1 -1
- package/dist/js/packages/components/src/components/HeaderNavigation/HeaderNavigation.mjs +5 -3
- package/dist/js/packages/components/src/components/HeaderNavigation/HeaderNavigation.mjs.map +1 -1
- package/dist/js/packages/components/src/components/ImageCropper/ImageCropper.mjs +5 -3
- package/dist/js/packages/components/src/components/ImageCropper/ImageCropper.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Legend/Legend.mjs +5 -3
- package/dist/js/packages/components/src/components/Legend/Legend.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/model/item/ItemView.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Markdown/Markdown.mjs +3 -2
- package/dist/js/packages/components/src/components/Markdown/Markdown.mjs.map +1 -1
- package/dist/js/packages/components/src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.mjs +1 -4
- package/dist/js/packages/components/src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Section/context.mjs +13 -2
- package/dist/js/packages/components/src/components/Section/context.mjs.map +1 -1
- package/dist/js/packages/components/src/components/SkeletonText/SkeletonText.mjs +6 -4
- package/dist/js/packages/components/src/components/SkeletonText/SkeletonText.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/Table.mjs +5 -3
- package/dist/js/packages/components/src/components/Table/Table.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableBody/TableBody.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableCell/TableCell.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableColumn/TableColumn.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableFooterRow/TableFooterRow.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableHeader/TableHeader.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Table/components/TableRow/TableRow.mjs.map +1 -1
- package/dist/js/packages/components/src/components/propTypes/index.mjs +10 -0
- package/dist/js/packages/components/src/components/propTypes/index.mjs.map +1 -1
- package/dist/types/components/AvatarStack/AvatarStack.d.ts +4 -3
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +4 -3
- package/dist/types/components/CodeBlock/CodeBlock.d.ts +4 -3
- package/dist/types/components/DonutChart/DonutChart.d.ts +4 -3
- package/dist/types/components/HeaderNavigation/HeaderNavigation.d.ts +4 -3
- package/dist/types/components/ImageCropper/ImageCropper.d.ts +5 -3
- package/dist/types/components/Legend/Legend.d.ts +5 -3
- package/dist/types/components/List/model/item/ItemView.d.ts +5 -2
- package/dist/types/components/List/typedList.d.ts +17 -13
- package/dist/types/components/Markdown/Markdown.d.ts +3 -5
- package/dist/types/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.d.ts +1 -4
- package/dist/types/components/Section/context.d.ts +4 -0
- package/dist/types/components/SkeletonText/SkeletonText.d.ts +4 -3
- package/dist/types/components/Table/Table.d.ts +18 -3
- package/dist/types/components/propTypes/index.d.ts +20 -0
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTrigger.mjs","names":[],"sources":["../../../../../../../../../src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { ComponentProps, FC } from \"react\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\n\nexport type DialogTriggerProps = ComponentProps<typeof Aria.DialogTrigger> &\n FlowComponentProps;\n\n/*\n * `OverlayTrigger` pins the trigger button in the local tree, but its props\n * context does not reach the host: `ModalTrigger`, `PopoverTrigger` and\n * `LightBoxTrigger` are not `@flr-generate`, so a remote tree emits this\n * trigger's view and the host materialises a `DialogTrigger` with no\n * `OverlayTrigger` around it. Pinning the button here is what makes the\n * invariant hold on both sides — see `overlayTriggersTunneledTo`.\n */\nconst propsContext: PropsContext = {\n Button: {\n tunnel: null,\n },\n};\n\n
|
|
1
|
+
{"version":3,"file":"DialogTrigger.mjs","names":[],"sources":["../../../../../../../../../src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { ComponentProps, FC } from \"react\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\n\nexport type DialogTriggerProps = ComponentProps<typeof Aria.DialogTrigger> &\n FlowComponentProps;\n\n/*\n * `OverlayTrigger` pins the trigger button in the local tree, but its props\n * context does not reach the host: `ModalTrigger`, `PopoverTrigger` and\n * `LightBoxTrigger` are not `@flr-generate`, so a remote tree emits this\n * trigger's view and the host materialises a `DialogTrigger` with no\n * `OverlayTrigger` around it. Pinning the button here is what makes the\n * invariant hold on both sides — see `overlayTriggersTunneledTo`.\n */\nconst propsContext: PropsContext = {\n Button: {\n tunnel: null,\n },\n};\n\n/** @flr-generate all */\nexport const DialogTrigger: FC<DialogTriggerProps> = flowComponent(\n \"DialogTrigger\",\n (props) => {\n const { children, ...rest } = props;\n\n return (\n <Aria.DialogTrigger {...rest}>\n <PropsContextProvider props={propsContext}>\n {children}\n </PropsContextProvider>\n </Aria.DialogTrigger>\n );\n },\n { type: \"provider\" },\n);\n\nexport default DialogTrigger;\n"],"mappings":";;;;;;;AAoBA,IAAM,eAA6B,EACjC,QAAQ,EACN,QAAQ,KACV,EACF;;AAGA,IAAa,gBAAwC,cACnD,kBACC,UAAU;CACT,MAAM,EAAE,UAAU,GAAG,SAAS;CAE9B,OACE,oBAAC,KAAK,eAAN;EAAoB,GAAI;EACtB,UAAA,oBAAC,sBAAD;GAAsB,OAAO;GAC1B;EACmB,CAAA;CACJ,CAAA;AAExB,GACA,EAAE,MAAM,WAAW,CACrB"}
|
|
@@ -35,11 +35,22 @@ var useRegisterSectionHeading = (id) => {
|
|
|
35
35
|
/**
|
|
36
36
|
* The `aria-labelledby` of a grid or table: its own label, else the heading of
|
|
37
37
|
* the surrounding `Section` once that heading renders.
|
|
38
|
+
*
|
|
39
|
+
* A heading mounting in the same commit registers only in its layout effect. So
|
|
40
|
+
* the first render assumes the heading and the layout effect below re-checks
|
|
41
|
+
* before paint — otherwise React Aria warns about a missing label.
|
|
38
42
|
*/
|
|
39
43
|
var useLabelledBySectionHeading = (props) => {
|
|
40
44
|
const sectionHeading = useContext(sectionHeadingContext);
|
|
41
|
-
|
|
42
|
-
|
|
45
|
+
const [isMounted, setIsMounted] = useState(false);
|
|
46
|
+
const hasOwnLabel = !!(props["aria-labelledby"] || props["aria-label"]);
|
|
47
|
+
const needsMountCheck = !!sectionHeading && !hasOwnLabel;
|
|
48
|
+
useLayoutEffect(() => {
|
|
49
|
+
if (needsMountCheck) setIsMounted(true);
|
|
50
|
+
}, [needsMountCheck]);
|
|
51
|
+
if (hasOwnLabel) return props["aria-labelledby"];
|
|
52
|
+
if (!sectionHeading) return;
|
|
53
|
+
return sectionHeading.isRendered || !isMounted ? sectionHeading.id : void 0;
|
|
43
54
|
};
|
|
44
55
|
export { SectionHeadingProvider, SectionHeadingReset, useLabelledBySectionHeading, useRegisterSectionHeading, useSectionHeading };
|
|
45
56
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.mjs","names":[],"sources":["../../../../../../../src/components/Section/context.ts"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport {\n createContext,\n createElement,\n useCallback,\n useContext,\n useLayoutEffect,\n useMemo,\n useState,\n} from \"react\";\n\ninterface SectionHeading {\n /** The id the surrounding `Section` gives its heading. */\n id: string;\n /** Whether a heading currently renders with that id. */\n isRendered: boolean;\n /** Called by a heading that renders with the id; returns the cleanup. */\n register: () => () => void;\n}\n\nconst sectionHeadingContext = createContext<SectionHeading | undefined>(\n undefined,\n);\n\n/** The heading state a `Section` provides for the given heading id. */\nexport const useSectionHeading = (id: string): SectionHeading => {\n const [renderedCount, setRenderedCount] = useState(0);\n\n const register = useCallback(() => {\n setRenderedCount((count) => count + 1);\n return () => setRenderedCount((count) => count - 1);\n }, []);\n\n return useMemo(\n () => ({ id, isRendered: renderedCount > 0, register }),\n [id, renderedCount, register],\n );\n};\n\nexport const SectionHeadingProvider = sectionHeadingContext.Provider;\n\n/**\n * Ends the surrounding `Section`'s heading scope, for content that has a\n * heading of its own (`Accordion`, `Alert`, an overlay, …).\n */\nexport const SectionHeadingReset: FC<PropsWithChildren> = ({ children }) =>\n createElement(sectionHeadingContext.Provider, { value: undefined }, children);\n\n/** Marks the section heading as rendered while a heading carries its id. */\nexport const useRegisterSectionHeading = (id: string | undefined) => {\n const sectionHeading = useContext(sectionHeadingContext);\n const register =\n sectionHeading && id === sectionHeading.id\n ? sectionHeading.register\n : undefined;\n\n useLayoutEffect(() => register?.(), [register]);\n};\n\n/**\n * The `aria-labelledby` of a grid or table: its own label, else the heading of\n * the surrounding `Section` once that heading renders.\n */\nexport const useLabelledBySectionHeading = (props: {\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n}): string | undefined => {\n const sectionHeading = useContext(sectionHeadingContext);\n\n
|
|
1
|
+
{"version":3,"file":"context.mjs","names":[],"sources":["../../../../../../../src/components/Section/context.ts"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport {\n createContext,\n createElement,\n useCallback,\n useContext,\n useLayoutEffect,\n useMemo,\n useState,\n} from \"react\";\n\ninterface SectionHeading {\n /** The id the surrounding `Section` gives its heading. */\n id: string;\n /** Whether a heading currently renders with that id. */\n isRendered: boolean;\n /** Called by a heading that renders with the id; returns the cleanup. */\n register: () => () => void;\n}\n\nconst sectionHeadingContext = createContext<SectionHeading | undefined>(\n undefined,\n);\n\n/** The heading state a `Section` provides for the given heading id. */\nexport const useSectionHeading = (id: string): SectionHeading => {\n const [renderedCount, setRenderedCount] = useState(0);\n\n const register = useCallback(() => {\n setRenderedCount((count) => count + 1);\n return () => setRenderedCount((count) => count - 1);\n }, []);\n\n return useMemo(\n () => ({ id, isRendered: renderedCount > 0, register }),\n [id, renderedCount, register],\n );\n};\n\nexport const SectionHeadingProvider = sectionHeadingContext.Provider;\n\n/**\n * Ends the surrounding `Section`'s heading scope, for content that has a\n * heading of its own (`Accordion`, `Alert`, an overlay, …).\n */\nexport const SectionHeadingReset: FC<PropsWithChildren> = ({ children }) =>\n createElement(sectionHeadingContext.Provider, { value: undefined }, children);\n\n/** Marks the section heading as rendered while a heading carries its id. */\nexport const useRegisterSectionHeading = (id: string | undefined) => {\n const sectionHeading = useContext(sectionHeadingContext);\n const register =\n sectionHeading && id === sectionHeading.id\n ? sectionHeading.register\n : undefined;\n\n useLayoutEffect(() => register?.(), [register]);\n};\n\n/**\n * The `aria-labelledby` of a grid or table: its own label, else the heading of\n * the surrounding `Section` once that heading renders.\n *\n * A heading mounting in the same commit registers only in its layout effect. So\n * the first render assumes the heading and the layout effect below re-checks\n * before paint — otherwise React Aria warns about a missing label.\n */\nexport const useLabelledBySectionHeading = (props: {\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n}): string | undefined => {\n const sectionHeading = useContext(sectionHeadingContext);\n const [isMounted, setIsMounted] = useState(false);\n\n const hasOwnLabel = !!(props[\"aria-labelledby\"] || props[\"aria-label\"]);\n const needsMountCheck = !!sectionHeading && !hasOwnLabel;\n\n useLayoutEffect(() => {\n if (needsMountCheck) {\n setIsMounted(true);\n }\n }, [needsMountCheck]);\n\n if (hasOwnLabel) {\n return props[\"aria-labelledby\"];\n }\n\n if (!sectionHeading) {\n return undefined;\n }\n\n return sectionHeading.isRendered || !isMounted\n ? sectionHeading.id\n : undefined;\n};\n"],"mappings":";;;;AAoBA,IAAM,wBAAwB,cAC5B,KAAA,CACF;;AAGA,IAAa,qBAAqB,OAA+B;CAC/D,MAAM,CAAC,eAAe,oBAAoB,SAAS,CAAC;CAEpD,MAAM,WAAW,kBAAkB;EACjC,kBAAkB,UAAU,QAAQ,CAAC;EACrC,aAAa,kBAAkB,UAAU,QAAQ,CAAC;CACpD,GAAG,CAAC,CAAC;CAEL,OAAO,eACE;EAAE;EAAI,YAAY,gBAAgB;EAAG;CAAS,IACrD;EAAC;EAAI;EAAe;CAAQ,CAC9B;AACF;AAEA,IAAa,yBAAyB,sBAAsB;;;;;AAM5D,IAAa,uBAA8C,EAAE,eAC3D,cAAc,sBAAsB,UAAU,EAAE,OAAO,KAAA,EAAU,GAAG,QAAQ;;AAG9E,IAAa,6BAA6B,OAA2B;CACnE,MAAM,iBAAiB,WAAW,qBAAqB;CACvD,MAAM,WACJ,kBAAkB,OAAO,eAAe,KACpC,eAAe,WACf,KAAA;CAEN,sBAAsB,WAAW,GAAG,CAAC,QAAQ,CAAC;AAChD;;;;;;;;;AAUA,IAAa,+BAA+B,UAGlB;CACxB,MAAM,iBAAiB,WAAW,qBAAqB;CACvD,MAAM,CAAC,WAAW,gBAAgB,SAAS,KAAK;CAEhD,MAAM,cAAc,CAAC,EAAE,MAAM,sBAAsB,MAAM;CACzD,MAAM,kBAAkB,CAAC,CAAC,kBAAkB,CAAC;CAE7C,sBAAsB;EACpB,IAAI,iBACF,aAAa,IAAI;CAErB,GAAG,CAAC,eAAe,CAAC;CAEpB,IAAI,aACF,OAAO,MAAM;CAGf,IAAI,CAAC,gBACH;CAGF,OAAO,eAAe,cAAc,CAAC,YACjC,eAAe,KACf,KAAA;AACN"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
+
import { flowComponent } from "../../lib/componentFactory/flowComponent.mjs";
|
|
3
4
|
import SkeletonText_module_default from "./SkeletonText.module.mjs";
|
|
4
5
|
import clsx from "clsx";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
// src/components/SkeletonText/SkeletonText.tsx
|
|
7
8
|
/** @flr-generate all */
|
|
8
|
-
var SkeletonText = (props) => {
|
|
9
|
-
const { width, style = {}, className, ...rest } = props;
|
|
9
|
+
var SkeletonText = flowComponent("SkeletonText", (props) => {
|
|
10
|
+
const { width, style = {}, className, ref, ...rest } = props;
|
|
10
11
|
return /* @__PURE__ */ jsx("span", {
|
|
11
12
|
"aria-hidden": true,
|
|
12
13
|
style: {
|
|
@@ -14,9 +15,10 @@ var SkeletonText = (props) => {
|
|
|
14
15
|
...style
|
|
15
16
|
},
|
|
16
17
|
...rest,
|
|
17
|
-
className: clsx(SkeletonText_module_default.skeletonText, className)
|
|
18
|
+
className: clsx(SkeletonText_module_default.skeletonText, className),
|
|
19
|
+
ref
|
|
18
20
|
});
|
|
19
|
-
};
|
|
21
|
+
});
|
|
20
22
|
export { SkeletonText, SkeletonText as default };
|
|
21
23
|
|
|
22
24
|
//# sourceMappingURL=SkeletonText.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonText.mjs","names":["styles"],"sources":["../../../../../../../src/components/SkeletonText/SkeletonText.tsx"],"sourcesContent":["import type { ComponentProps, CSSProperties
|
|
1
|
+
{"version":3,"file":"SkeletonText.mjs","names":["styles"],"sources":["../../../../../../../src/components/SkeletonText/SkeletonText.tsx"],"sourcesContent":["import type { ComponentProps, CSSProperties } from \"react\";\nimport clsx from \"clsx\";\nimport styles from \"./SkeletonText.module.scss\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\n\nexport interface SkeletonTextProps\n extends ComponentProps<\"span\">, FlowComponentProps<HTMLSpanElement> {\n /** The width of the skeleton text. */\n width?: CSSProperties[\"width\"];\n}\n\n/** @flr-generate all */\nexport const SkeletonText = flowComponent(\"SkeletonText\", (props) => {\n const { width, style = {}, className, ref, ...rest } = props;\n return (\n <span\n aria-hidden\n style={{ width, ...style }}\n {...rest}\n className={clsx(styles.skeletonText, className)}\n ref={ref}\n />\n );\n});\n\nexport default SkeletonText;\n"],"mappings":";;;;;;;;AAaA,IAAa,eAAe,cAAc,iBAAiB,UAAU;CACnE,MAAM,EAAE,OAAO,QAAQ,CAAC,GAAG,WAAW,KAAK,GAAG,SAAS;CACvD,OACE,oBAAC,QAAD;EACE,eAAA;EACA,OAAO;GAAE;GAAO,GAAG;EAAM;EACzB,GAAI;EACJ,WAAW,KAAKA,4BAAO,cAAc,SAAS;EACzC;CACN,CAAA;AAEL,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
+
import { flowComponent } from "../../lib/componentFactory/flowComponent.mjs";
|
|
3
4
|
import { useLabelledBySectionHeading } from "../Section/context.mjs";
|
|
4
5
|
import Table_module_default from "./Table.module.mjs";
|
|
5
6
|
import clsx from "clsx";
|
|
@@ -7,12 +8,13 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
8
|
import * as Aria from "react-aria-components";
|
|
8
9
|
// src/components/Table/Table.tsx
|
|
9
10
|
/** @flr-generate all */
|
|
10
|
-
var Table = (props) => {
|
|
11
|
-
const { children, className, verticalAlign = "top", layout = "auto", minWidth, ...rest } = props;
|
|
11
|
+
var Table = flowComponent("Table", (props) => {
|
|
12
|
+
const { children, className, verticalAlign = "top", layout = "auto", minWidth, ref, ...rest } = props;
|
|
12
13
|
const ariaLabelledBy = useLabelledBySectionHeading(rest);
|
|
13
14
|
const rootClassName = clsx(Table_module_default.table, verticalAlign !== "top" && Table_module_default[`vertical-align-${verticalAlign}`], Table_module_default[`layout-${layout}`], className);
|
|
14
15
|
return /* @__PURE__ */ jsx("div", {
|
|
15
16
|
className: Table_module_default.tableContainer,
|
|
17
|
+
ref,
|
|
16
18
|
children: /* @__PURE__ */ jsx("div", {
|
|
17
19
|
className: Table_module_default.tableScrollArea,
|
|
18
20
|
style: { minWidth },
|
|
@@ -24,7 +26,7 @@ var Table = (props) => {
|
|
|
24
26
|
})
|
|
25
27
|
})
|
|
26
28
|
});
|
|
27
|
-
};
|
|
29
|
+
});
|
|
28
30
|
export { Table, Table as default };
|
|
29
31
|
|
|
30
32
|
//# sourceMappingURL=Table.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.mjs","names":["styles"],"sources":["../../../../../../../src/components/Table/Table.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Table.mjs","names":["styles"],"sources":["../../../../../../../src/components/Table/Table.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"./Table.module.scss\";\nimport { useLabelledBySectionHeading } from \"@/components/Section/context\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\n\nexport type TableProps = Omit<\n Aria.TableProps,\n \"render\" | \"className\" | \"style\"\n> & {\n /** The vertical alignment of the table cells content. */\n verticalAlign?: \"top\" | \"middle\";\n /**\n * The column-sizing algorithm of the table. Use \"fixed\" together with column\n * widths to enforce exact widths. @default \"auto\"\n */\n layout?: \"auto\" | \"fixed\";\n /**\n * The minimum width of the table. Below this width the table scrolls\n * horizontally instead of shrinking its columns.\n */\n minWidth?: number | string;\n /** The elements class name. */\n className?: string;\n} & FlowComponentProps;\n\n/** @flr-generate all */\nexport const Table = flowComponent(\"Table\", (props) => {\n const {\n children,\n className,\n verticalAlign = \"top\",\n layout = \"auto\",\n minWidth,\n ref,\n ...rest\n } = props;\n\n const ariaLabelledBy = useLabelledBySectionHeading(rest);\n\n const rootClassName = clsx(\n styles.table,\n verticalAlign !== \"top\" && styles[`vertical-align-${verticalAlign}`],\n styles[`layout-${layout}`],\n className,\n );\n\n return (\n <div className={styles.tableContainer} ref={ref}>\n <div className={styles.tableScrollArea} style={{ minWidth }}>\n <Aria.Table\n className={rootClassName}\n {...rest}\n aria-labelledby={ariaLabelledBy}\n >\n {children}\n </Aria.Table>\n </div>\n </div>\n );\n});\n\nexport default Table;\n"],"mappings":";;;;;;;;;;AA4BA,IAAa,QAAQ,cAAc,UAAU,UAAU;CACrD,MAAM,EACJ,UACA,WACA,gBAAgB,OAChB,SAAS,QACT,UACA,KACA,GAAG,SACD;CAEJ,MAAM,iBAAiB,4BAA4B,IAAI;CAEvD,MAAM,gBAAgB,KACpBA,qBAAO,OACP,kBAAkB,SAASA,qBAAO,kBAAkB,kBACpDA,qBAAO,UAAU,WACjB,SACF;CAEA,OACE,oBAAC,OAAD;EAAK,WAAWA,qBAAO;EAAqB;EAC1C,UAAA,oBAAC,OAAD;GAAK,WAAWA,qBAAO;GAAiB,OAAO,EAAE,SAAS;GACxD,UAAA,oBAAC,KAAK,OAAN;IACE,WAAW;IACX,GAAI;IACJ,mBAAiB;IAEhB;GACS,CAAA;EACT,CAAA;CACF,CAAA;AAET,CAAC"}
|
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,15 +48,18 @@ 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,
|
|
54
60
|
Label: true,
|
|
55
61
|
LayoutCard: true,
|
|
62
|
+
Legend: true,
|
|
56
63
|
LightBox: true,
|
|
57
64
|
LightBoxGallery: true,
|
|
58
65
|
LightBoxGalleryItem: true,
|
|
@@ -61,6 +68,7 @@ var propsContextSupportingComponents = Object.keys({
|
|
|
61
68
|
ListItemView: true,
|
|
62
69
|
ListSummary: true,
|
|
63
70
|
LoadingSpinner: true,
|
|
71
|
+
Markdown: true,
|
|
64
72
|
MarkdownEditor: true,
|
|
65
73
|
MenuItem: true,
|
|
66
74
|
MenuTrigger: true,
|
|
@@ -90,8 +98,10 @@ var propsContextSupportingComponents = Object.keys({
|
|
|
90
98
|
Segment: true,
|
|
91
99
|
SegmentedControl: true,
|
|
92
100
|
Select: true,
|
|
101
|
+
SkeletonText: true,
|
|
93
102
|
Slider: true,
|
|
94
103
|
Switch: true,
|
|
104
|
+
Table: true,
|
|
95
105
|
Tabs: true,
|
|
96
106
|
TabTitle: true,
|
|
97
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 { 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 { 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 {
|
|
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;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PropsWithClassName } from '../../lib/types/props';
|
|
2
|
-
import {
|
|
3
|
-
|
|
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:
|
|
7
|
+
export declare const Legend: import('react').FunctionComponent<LegendProps & import('react').RefAttributes<HTMLUListElement>>;
|
|
6
8
|
export default Legend;
|
|
@@ -4,15 +4,18 @@ import { default as List } from '../List';
|
|
|
4
4
|
export interface ItemViewShape<T> {
|
|
5
5
|
/**
|
|
6
6
|
* Runs on every render of the list to tell whether the item changed, so it
|
|
7
|
-
* should be cheap and pure.
|
|
7
|
+
* should be cheap and pure. It runs outside the item's render, so it must not
|
|
8
|
+
* call hooks — call them in the component rendering the list instead.
|
|
8
9
|
*/
|
|
9
10
|
textValue?: (data: T) => string;
|
|
10
11
|
/**
|
|
11
12
|
* Runs on every render of the list to tell whether the item changed, so it
|
|
12
|
-
* should be cheap and pure.
|
|
13
|
+
* should be cheap and pure. It runs outside the item's render, so it must not
|
|
14
|
+
* call hooks — call them in the component rendering the list instead.
|
|
13
15
|
*/
|
|
14
16
|
href?: (data: T) => string;
|
|
15
17
|
target?: HTMLAttributeAnchorTarget;
|
|
18
|
+
/** Read when the item mounts. Must not call hooks. */
|
|
16
19
|
defaultExpanded?: (data: T) => boolean;
|
|
17
20
|
renderFn?: RenderItemFn<T>;
|
|
18
21
|
/** @deprecated Use loadingView instead */
|
|
@@ -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[];
|