@mittwald/flow-react-components 0.2.0-alpha.773 → 0.2.0-alpha.774
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/CHANGELOG.md +6 -0
- package/dist/assets/doc-properties.json +10717 -10846
- package/dist/js/default.mjs +2 -2
- package/dist/js/packages/components/src/components/List/components/Items/Items.mjs +2 -2
- package/dist/js/packages/components/src/components/List/components/Items/Items.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.mjs +7 -7
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/hooks/{useBoxItemProps.mjs → useGridItemProps.mjs} +5 -5
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/hooks/useGridItemProps.mjs.map +1 -0
- package/dist/js/packages/components/src/components/List/components/Items/views/{ListBox/ListBox.mjs → GridList/GridList.mjs} +4 -4
- package/dist/js/packages/components/src/components/List/components/Items/views/GridList/GridList.mjs.map +1 -0
- package/dist/js/packages/components/src/components/List/components/Items/views/{ListBoxItem/ListBoxItem.mjs → GridListItem/GridListItem.mjs} +4 -4
- package/dist/js/packages/components/src/components/List/components/Items/views/GridListItem/GridListItem.mjs.map +1 -0
- package/dist/js/packages/components/src/views/ItemsGridListItemView.mjs +15 -0
- package/dist/js/packages/components/src/views/ItemsGridListItemView.mjs.map +1 -0
- package/dist/js/packages/components/src/views/ItemsGridListView.mjs +15 -0
- package/dist/js/packages/components/src/views/ItemsGridListView.mjs.map +1 -0
- package/dist/types/components/List/components/Items/components/Item/Item.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/components/Item/hooks/{useBoxItemProps.d.ts → useGridItemProps.d.ts} +4 -4
- package/dist/types/components/List/components/Items/components/Item/hooks/useGridItemProps.d.ts.map +1 -0
- package/dist/types/components/List/components/Items/views/GridList/GridList.d.ts +9 -0
- package/dist/types/components/List/components/Items/views/GridList/GridList.d.ts.map +1 -0
- package/dist/types/components/List/components/Items/views/GridList/index.d.ts +2 -0
- package/dist/types/components/List/components/Items/views/{ListBox → GridList}/index.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/views/{ListBox → GridList}/view.d.ts +2 -2
- package/dist/types/components/List/components/Items/views/GridList/view.d.ts.map +1 -0
- package/dist/types/components/List/components/Items/views/GridListItem/GridListItem.d.ts +10 -0
- package/dist/types/components/List/components/Items/views/GridListItem/GridListItem.d.ts.map +1 -0
- package/dist/types/components/List/components/Items/views/GridListItem/index.d.ts +3 -0
- package/dist/types/components/List/components/Items/views/{ListBoxItem → GridListItem}/index.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/views/GridListItem/view.d.ts +8 -0
- package/dist/types/components/List/components/Items/views/GridListItem/view.d.ts.map +1 -0
- package/dist/types/components/List/index.d.ts +2 -2
- package/dist/types/components/List/index.d.ts.map +1 -1
- package/dist/types/components/List/stories/Default.stories.d.ts.map +1 -1
- package/dist/types/components/List/typedList.d.ts +1 -1
- package/dist/types/views/ItemsGridListItemView.d.ts +5 -0
- package/dist/types/views/ItemsGridListItemView.d.ts.map +1 -0
- package/dist/types/views/ItemsGridListView.d.ts +5 -0
- package/dist/types/views/ItemsGridListView.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/hooks/useBoxItemProps.mjs.map +0 -1
- package/dist/js/packages/components/src/components/List/components/Items/views/ListBox/ListBox.mjs.map +0 -1
- package/dist/js/packages/components/src/components/List/components/Items/views/ListBoxItem/ListBoxItem.mjs.map +0 -1
- package/dist/js/packages/components/src/views/ItemsListBoxItemView.mjs +0 -15
- package/dist/js/packages/components/src/views/ItemsListBoxItemView.mjs.map +0 -1
- package/dist/js/packages/components/src/views/ItemsListBoxView.mjs +0 -15
- package/dist/js/packages/components/src/views/ItemsListBoxView.mjs.map +0 -1
- package/dist/types/components/List/components/Items/components/Item/hooks/useBoxItemProps.d.ts.map +0 -1
- package/dist/types/components/List/components/Items/views/ListBox/ListBox.d.ts +0 -9
- package/dist/types/components/List/components/Items/views/ListBox/ListBox.d.ts.map +0 -1
- package/dist/types/components/List/components/Items/views/ListBox/index.d.ts +0 -2
- package/dist/types/components/List/components/Items/views/ListBox/view.d.ts.map +0 -1
- package/dist/types/components/List/components/Items/views/ListBoxItem/ListBoxItem.d.ts +0 -10
- package/dist/types/components/List/components/Items/views/ListBoxItem/ListBoxItem.d.ts.map +0 -1
- package/dist/types/components/List/components/Items/views/ListBoxItem/index.d.ts +0 -3
- package/dist/types/components/List/components/Items/views/ListBoxItem/view.d.ts +0 -8
- package/dist/types/components/List/components/Items/views/ListBoxItem/view.d.ts.map +0 -1
- package/dist/types/views/ItemsListBoxItemView.d.ts +0 -5
- package/dist/types/views/ItemsListBoxItemView.d.ts.map +0 -1
- package/dist/types/views/ItemsListBoxView.d.ts +0 -5
- package/dist/types/views/ItemsListBoxView.d.ts.map +0 -1
package/dist/js/default.mjs
CHANGED
|
@@ -216,8 +216,8 @@ export { LightBoxTrigger } from './packages/components/src/components/LightBox/c
|
|
|
216
216
|
export { LightBox } from './packages/components/src/components/LightBox/LightBox.mjs';
|
|
217
217
|
export { Link } from './packages/components/src/components/Link/Link.mjs';
|
|
218
218
|
export { SortingFunctions } from './packages/components/src/components/List/model/sorting/SortingFunctions.mjs';
|
|
219
|
-
export {
|
|
220
|
-
export {
|
|
219
|
+
export { GridList } from './packages/components/src/components/List/components/Items/views/GridList/GridList.mjs';
|
|
220
|
+
export { GridListItem } from './packages/components/src/components/List/components/Items/views/GridListItem/GridListItem.mjs';
|
|
221
221
|
export { ListItemView } from './packages/components/src/components/List/components/ListItemView/ListItemView.mjs';
|
|
222
222
|
export { ListItemViewContent } from './packages/components/src/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.mjs';
|
|
223
223
|
export { ListSummary } from './packages/components/src/components/List/components/ListSummary/ListSummary.mjs';
|
|
@@ -25,7 +25,7 @@ import 'mobx';
|
|
|
25
25
|
import '../../List.mjs';
|
|
26
26
|
import { Item } from './components/Item/Item.mjs';
|
|
27
27
|
import DivView from '../../../../views/DivView.mjs';
|
|
28
|
-
import
|
|
28
|
+
import ItemsGridListView from '../../../../views/ItemsGridListView.mjs';
|
|
29
29
|
import styles from './Items.module.scss.mjs';
|
|
30
30
|
import { FallbackItems } from './components/FallbackItems/FallbackItems.mjs';
|
|
31
31
|
|
|
@@ -44,7 +44,7 @@ const Items = () => {
|
|
|
44
44
|
tiles && styles.tiles
|
|
45
45
|
);
|
|
46
46
|
return /* @__PURE__ */ jsx(DivView, { "aria-hidden": isInitiallyLoading, "aria-busy": isLoading, children: /* @__PURE__ */ jsx(
|
|
47
|
-
|
|
47
|
+
ItemsGridListView,
|
|
48
48
|
{
|
|
49
49
|
className: rootClassName,
|
|
50
50
|
...list.componentProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Items.mjs","sources":["../../../../../../../../../src/components/List/components/Items/Items.tsx"],"sourcesContent":["import { EmptyView } from \"@/components/List\";\nimport Item from \"@/components/List/components/Items/components/Item/Item\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport DivView from \"@/views/DivView\";\nimport
|
|
1
|
+
{"version":3,"file":"Items.mjs","sources":["../../../../../../../../../src/components/List/components/Items/Items.tsx"],"sourcesContent":["import { EmptyView } from \"@/components/List\";\nimport Item from \"@/components/List/components/Items/components/Item/Item\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport DivView from \"@/views/DivView\";\nimport ItemsGridListView from \"@/views/ItemsGridListView\";\nimport clsx from \"clsx\";\nimport type { FC } from \"react\";\nimport styles from \"./Items.module.scss\";\nimport { FallbackItems } from \"./components/FallbackItems\";\n\nexport const Items: FC = () => {\n const list = useList();\n const tiles = list.viewMode.isTiles;\n const isLoading = list.loader.useIsLoading();\n const isInitiallyLoading = list.loader.useIsInitiallyLoading();\n\n if (!list.itemView) {\n return null;\n }\n\n const items = list.items.entries.map((item) => (\n <Item key={item.id} data={item.data} id={item.id} />\n ));\n\n const rootClassName = clsx(\n styles.items,\n isLoading && styles.isLoading,\n tiles && styles.tiles,\n );\n\n return (\n <DivView aria-hidden={isInitiallyLoading} aria-busy={isLoading}>\n <ItemsGridListView\n className={rootClassName}\n {...list.componentProps}\n renderEmptyState={() => <EmptyView />}\n layout={tiles ? \"grid\" : \"stack\"}\n tileMaxWidth={list.itemView.tileMaxWidth}\n >\n {items.length === 0 && isInitiallyLoading ? <FallbackItems /> : items}\n </ItemsGridListView>\n </DivView>\n );\n};\n\nexport default Items;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,QAAY,MAAM;AAC7B,EAAA,MAAM,OAAO,OAAA,EAAQ;AACrB,EAAA,MAAM,KAAA,GAAQ,KAAK,QAAA,CAAS,OAAA;AAC5B,EAAA,MAAM,SAAA,GAAY,IAAA,CAAK,MAAA,CAAO,YAAA,EAAa;AAC3C,EAAA,MAAM,kBAAA,GAAqB,IAAA,CAAK,MAAA,CAAO,qBAAA,EAAsB;AAE7D,EAAA,IAAI,CAAC,KAAK,QAAA,EAAU;AAClB,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAM,QAAQ,IAAA,CAAK,KAAA,CAAM,OAAA,CAAQ,GAAA,CAAI,CAAC,IAAA,qBACpC,GAAA,CAAC,IAAA,EAAA,EAAmB,IAAA,EAAM,KAAK,IAAA,EAAM,EAAA,EAAI,KAAK,EAAA,EAAA,EAAnC,IAAA,CAAK,EAAkC,CACnD,CAAA;AAED,EAAA,MAAM,aAAA,GAAgB,IAAA;AAAA,IACpB,MAAA,CAAO,KAAA;AAAA,IACP,aAAa,MAAA,CAAO,SAAA;AAAA,IACpB,SAAS,MAAA,CAAO;AAAA,GAClB;AAEA,EAAA,uBACE,GAAA,CAAC,OAAA,EAAA,EAAQ,aAAA,EAAa,kBAAA,EAAoB,aAAW,SAAA,EACnD,QAAA,kBAAA,GAAA;AAAA,IAAC,iBAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,aAAA;AAAA,MACV,GAAG,IAAA,CAAK,cAAA;AAAA,MACT,gBAAA,EAAkB,sBAAM,GAAA,CAAC,SAAA,EAAA,EAAU,CAAA;AAAA,MACnC,MAAA,EAAQ,QAAQ,MAAA,GAAS,OAAA;AAAA,MACzB,YAAA,EAAc,KAAK,QAAA,CAAS,YAAA;AAAA,MAE3B,gBAAM,MAAA,KAAW,CAAA,IAAK,kBAAA,mBAAqB,GAAA,CAAC,iBAAc,CAAA,GAAK;AAAA;AAAA,GAClE,EACF,CAAA;AAEJ;;;;"}
|
package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import {
|
|
4
|
+
import { useGridItemProps } from './hooks/useGridItemProps.mjs';
|
|
5
5
|
import { useList } from '../../../../hooks/useList.mjs';
|
|
6
|
-
import
|
|
6
|
+
import ItemsGridListItemView from '../../../../../../views/ItemsGridListItemView.mjs';
|
|
7
7
|
import { Suspense } from 'react';
|
|
8
8
|
import styles from './Item.module.scss.mjs';
|
|
9
9
|
import { ListItemSkeletonView } from './components/ListItemSkeletonView/ListItemSkeletonView.mjs';
|
|
@@ -12,15 +12,15 @@ const Item = (props) => {
|
|
|
12
12
|
const { id, data } = props;
|
|
13
13
|
const list = useList();
|
|
14
14
|
const itemView = list.itemView;
|
|
15
|
-
const {
|
|
15
|
+
const { gridItemProps, children } = useGridItemProps(props);
|
|
16
16
|
if (!itemView) {
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
19
|
const textValue = itemView.textValue ? itemView.textValue(data) : void 0;
|
|
20
20
|
const href = itemView.href ? itemView.href(data) : void 0;
|
|
21
|
-
const hasAction = !!
|
|
21
|
+
const hasAction = !!gridItemProps.onAction || !!href;
|
|
22
22
|
return /* @__PURE__ */ jsx(
|
|
23
|
-
|
|
23
|
+
ItemsGridListItemView,
|
|
24
24
|
{
|
|
25
25
|
id,
|
|
26
26
|
textValue,
|
|
@@ -28,7 +28,7 @@ const Item = (props) => {
|
|
|
28
28
|
target: itemView.target,
|
|
29
29
|
hasAction,
|
|
30
30
|
isTile: list.viewMode.isTiles,
|
|
31
|
-
...
|
|
31
|
+
...gridItemProps,
|
|
32
32
|
children: /* @__PURE__ */ jsx(
|
|
33
33
|
Suspense,
|
|
34
34
|
{
|
|
@@ -42,7 +42,7 @@ const Item = (props) => {
|
|
|
42
42
|
const ItemContainer = (props) => {
|
|
43
43
|
const list = useList();
|
|
44
44
|
return /* @__PURE__ */ jsx(
|
|
45
|
-
|
|
45
|
+
ItemsGridListItemView,
|
|
46
46
|
{
|
|
47
47
|
textValue: "-",
|
|
48
48
|
className: styles.item,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.mjs","sources":["../../../../../../../../../../../src/components/List/components/Items/components/Item/Item.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Item.mjs","sources":["../../../../../../../../../../../src/components/List/components/Items/components/Item/Item.tsx"],"sourcesContent":["import { useGridItemProps } from \"@/components/List/components/Items/components/Item/hooks/useGridItemProps\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport ItemsGridListItemView from \"@/views/ItemsGridListItemView\";\nimport type { FC, PropsWithChildren } from \"react\";\nimport { Suspense } from \"react\";\nimport type { Key } from \"react-aria-components\";\nimport styles from \"./Item.module.scss\";\nimport { ListItemSkeletonView } from \"./components/ListItemSkeletonView/ListItemSkeletonView\";\n\ninterface Props extends PropsWithChildren {\n id: Key;\n data: never;\n}\n\nexport const Item = (props: Props) => {\n const { id, data } = props;\n const list = useList();\n\n const itemView = list.itemView;\n\n const { gridItemProps, children } = useGridItemProps(props);\n\n if (!itemView) {\n return null;\n }\n\n const textValue = itemView.textValue ? itemView.textValue(data) : undefined;\n const href = itemView.href ? itemView.href(data) : undefined;\n const hasAction = !!gridItemProps.onAction || !!href;\n\n return (\n <ItemsGridListItemView\n id={id}\n textValue={textValue}\n href={href}\n target={itemView.target}\n hasAction={hasAction}\n isTile={list.viewMode.isTiles}\n {...gridItemProps}\n >\n <Suspense\n fallback={<ListItemSkeletonView viewMode={list.viewMode.value} />}\n >\n {children}\n </Suspense>\n </ItemsGridListItemView>\n );\n};\n\nexport const ItemContainer: FC<Props> = (props) => {\n const list = useList();\n return (\n <ItemsGridListItemView\n textValue=\"-\"\n className={styles.item}\n isTile={list.viewMode.isTiles}\n >\n {props.children}\n </ItemsGridListItemView>\n );\n};\n\nexport default Item;\n"],"names":[],"mappings":";;;;;;;;AAcO,MAAM,IAAA,GAAO,CAAC,KAAA,KAAiB;AACpC,EAAA,MAAM,EAAE,EAAA,EAAI,IAAA,EAAK,GAAI,KAAA;AACrB,EAAA,MAAM,OAAO,OAAA,EAAQ;AAErB,EAAA,MAAM,WAAW,IAAA,CAAK,QAAA;AAEtB,EAAA,MAAM,EAAE,aAAA,EAAe,QAAA,EAAS,GAAI,iBAAiB,KAAK,CAAA;AAE1D,EAAA,IAAI,CAAC,QAAA,EAAU;AACb,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAM,YAAY,QAAA,CAAS,SAAA,GAAY,QAAA,CAAS,SAAA,CAAU,IAAI,CAAA,GAAI,MAAA;AAClE,EAAA,MAAM,OAAO,QAAA,CAAS,IAAA,GAAO,QAAA,CAAS,IAAA,CAAK,IAAI,CAAA,GAAI,MAAA;AACnD,EAAA,MAAM,YAAY,CAAC,CAAC,aAAA,CAAc,QAAA,IAAY,CAAC,CAAC,IAAA;AAEhD,EAAA,uBACE,GAAA;AAAA,IAAC,qBAAA;AAAA,IAAA;AAAA,MACC,EAAA;AAAA,MACA,SAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAQ,QAAA,CAAS,MAAA;AAAA,MACjB,SAAA;AAAA,MACA,MAAA,EAAQ,KAAK,QAAA,CAAS,OAAA;AAAA,MACrB,GAAG,aAAA;AAAA,MAEJ,QAAA,kBAAA,GAAA;AAAA,QAAC,QAAA;AAAA,QAAA;AAAA,UACC,0BAAU,GAAA,CAAC,oBAAA,EAAA,EAAqB,QAAA,EAAU,IAAA,CAAK,SAAS,KAAA,EAAO,CAAA;AAAA,UAE9D;AAAA;AAAA;AACH;AAAA,GACF;AAEJ;AAEO,MAAM,aAAA,GAA2B,CAAC,KAAA,KAAU;AACjD,EAAA,MAAM,OAAO,OAAA,EAAQ;AACrB,EAAA,uBACE,GAAA;AAAA,IAAC,qBAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAU,GAAA;AAAA,MACV,WAAW,MAAA,CAAO,IAAA;AAAA,MAClB,MAAA,EAAQ,KAAK,QAAA,CAAS,OAAA;AAAA,MAErB,QAAA,EAAA,KAAA,CAAM;AAAA;AAAA,GACT;AAEJ;;;;"}
|
|
@@ -28,7 +28,7 @@ import 'mobx';
|
|
|
28
28
|
import '../../../../../List.mjs';
|
|
29
29
|
import { AccordionButton } from '../components/AccordionButton.mjs';
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const useGridItemProps = (props) => {
|
|
32
32
|
const { data, children: childrenFromProps } = props;
|
|
33
33
|
const list = useList();
|
|
34
34
|
const itemView = list.itemView;
|
|
@@ -48,7 +48,7 @@ const useBoxItemProps = (props) => {
|
|
|
48
48
|
}, [isExpanded, contentElementId, itemRef.current, accordion]);
|
|
49
49
|
if (!accordion) {
|
|
50
50
|
return {
|
|
51
|
-
|
|
51
|
+
gridItemProps: {
|
|
52
52
|
onAction: onAction ? () => {
|
|
53
53
|
onAction?.(data);
|
|
54
54
|
} : void 0
|
|
@@ -76,7 +76,7 @@ const useBoxItemProps = (props) => {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
return {
|
|
79
|
-
|
|
79
|
+
gridItemProps: {
|
|
80
80
|
ref: itemRef,
|
|
81
81
|
onAction: toggleAccordion
|
|
82
82
|
},
|
|
@@ -91,5 +91,5 @@ const useBoxItemProps = (props) => {
|
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
-
export {
|
|
95
|
-
//# sourceMappingURL=
|
|
94
|
+
export { useGridItemProps };
|
|
95
|
+
//# sourceMappingURL=useGridItemProps.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGridItemProps.mjs","sources":["../../../../../../../../../../../../src/components/List/components/Items/components/Item/hooks/useGridItemProps.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport { useEffect, useId, useRef, useState } from \"react\";\nimport { useList } from \"@/components/List\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { dynamic, PropsContextProvider } from \"@/lib/propsContext\";\nimport { AccordionButton } from \"@/components/List/components/Items/components/Item/components/AccordionButton\";\n\ninterface P extends PropsWithChildren {\n data: never;\n}\n\nexport const useGridItemProps = (props: P) => {\n const { data, children: childrenFromProps } = props;\n const list = useList();\n const itemView = list.itemView;\n const onAction = list.onAction;\n\n const [isExpanded, setIsExpanded] = useState(\n itemView?.defaultExpanded?.(data) ?? false,\n );\n const contentElementId = useId();\n const itemRef = useRef<HTMLDivElement>(null);\n\n const accordion = list.accordion;\n const children = childrenFromProps ?? itemView?.render(data);\n\n useEffect(() => {\n if (accordion) {\n itemRef.current?.setAttribute(\"aria-expanded\", String(isExpanded));\n itemRef.current?.setAttribute(\"aria-controls\", contentElementId);\n }\n }, [isExpanded, contentElementId, itemRef.current, accordion]);\n\n if (!accordion) {\n return {\n gridItemProps: {\n onAction: onAction\n ? () => {\n onAction?.(data);\n }\n : undefined,\n },\n children,\n };\n }\n\n const toggleAccordion = () => {\n setIsExpanded((current) => !current);\n onAction?.(data);\n };\n\n const propsContext: PropsContext = {\n Content: {\n id: dynamic((p) => (p.slot === \"bottom\" ? contentElementId : undefined)),\n wrapWith: dynamic((p) =>\n p.slot === \"bottom\" ? (\n <AccordionButton\n contentElementId={contentElementId}\n toggle={toggleAccordion}\n isExpanded={isExpanded}\n />\n ) : undefined,\n ),\n },\n };\n\n return {\n gridItemProps: {\n ref: itemRef,\n onAction: toggleAccordion,\n },\n children: (\n <PropsContextProvider\n props={propsContext}\n dependencies={[contentElementId, isExpanded]}\n >\n {children}\n </PropsContextProvider>\n ),\n };\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,MAAM,gBAAA,GAAmB,CAAC,KAAA,KAAa;AAC5C,EAAA,MAAM,EAAE,IAAA,EAAM,QAAA,EAAU,iBAAA,EAAkB,GAAI,KAAA;AAC9C,EAAA,MAAM,OAAO,OAAA,EAAQ;AACrB,EAAA,MAAM,WAAW,IAAA,CAAK,QAAA;AACtB,EAAA,MAAM,WAAW,IAAA,CAAK,QAAA;AAEtB,EAAA,MAAM,CAAC,UAAA,EAAY,aAAa,CAAA,GAAI,QAAA;AAAA,IAClC,QAAA,EAAU,eAAA,GAAkB,IAAI,CAAA,IAAK;AAAA,GACvC;AACA,EAAA,MAAM,mBAAmB,KAAA,EAAM;AAC/B,EAAA,MAAM,OAAA,GAAU,OAAuB,IAAI,CAAA;AAE3C,EAAA,MAAM,YAAY,IAAA,CAAK,SAAA;AACvB,EAAA,MAAM,QAAA,GAAW,iBAAA,IAAqB,QAAA,EAAU,MAAA,CAAO,IAAI,CAAA;AAE3D,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,SAAA,EAAW;AACb,MAAA,OAAA,CAAQ,OAAA,EAAS,YAAA,CAAa,eAAA,EAAiB,MAAA,CAAO,UAAU,CAAC,CAAA;AACjE,MAAA,OAAA,CAAQ,OAAA,EAAS,YAAA,CAAa,eAAA,EAAiB,gBAAgB,CAAA;AAAA,IACjE;AAAA,EACF,GAAG,CAAC,UAAA,EAAY,kBAAkB,OAAA,CAAQ,OAAA,EAAS,SAAS,CAAC,CAAA;AAE7D,EAAA,IAAI,CAAC,SAAA,EAAW;AACd,IAAA,OAAO;AAAA,MACL,aAAA,EAAe;AAAA,QACb,QAAA,EAAU,WACN,MAAM;AACJ,UAAA,QAAA,GAAW,IAAI,CAAA;AAAA,QACjB,CAAA,GACA;AAAA,OACN;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAEA,EAAA,MAAM,kBAAkB,MAAM;AAC5B,IAAA,aAAA,CAAc,CAAC,OAAA,KAAY,CAAC,OAAO,CAAA;AACnC,IAAA,QAAA,GAAW,IAAI,CAAA;AAAA,EACjB,CAAA;AAEA,EAAA,MAAM,YAAA,GAA6B;AAAA,IACjC,OAAA,EAAS;AAAA,MACP,EAAA,EAAI,QAAQ,CAAC,CAAA,KAAO,EAAE,IAAA,KAAS,QAAA,GAAW,mBAAmB,MAAU,CAAA;AAAA,MACvE,QAAA,EAAU,OAAA;AAAA,QAAQ,CAAC,CAAA,KACjB,CAAA,CAAE,IAAA,KAAS,QAAA,mBACT,GAAA;AAAA,UAAC,eAAA;AAAA,UAAA;AAAA,YACC,gBAAA;AAAA,YACA,MAAA,EAAQ,eAAA;AAAA,YACR;AAAA;AAAA,SACF,GACE;AAAA;AACN;AACF,GACF;AAEA,EAAA,OAAO;AAAA,IACL,aAAA,EAAe;AAAA,MACb,GAAA,EAAK,OAAA;AAAA,MACL,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,QAAA,kBACE,GAAA;AAAA,MAAC,oBAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO,YAAA;AAAA,QACP,YAAA,EAAc,CAAC,gBAAA,EAAkB,UAAU,CAAA;AAAA,QAE1C;AAAA;AAAA;AACH,GAEJ;AACF;;;;"}
|
|
@@ -4,10 +4,10 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
import * as Aria from 'react-aria-components';
|
|
5
5
|
import { EmptyView } from '../../../../views/EmptyView/EmptyView.mjs';
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const GridList = (props) => {
|
|
8
8
|
const { tileMaxWidth, ...rest } = props;
|
|
9
9
|
return /* @__PURE__ */ jsx(
|
|
10
|
-
Aria.
|
|
10
|
+
Aria.GridList,
|
|
11
11
|
{
|
|
12
12
|
...rest,
|
|
13
13
|
renderEmptyState: () => /* @__PURE__ */ jsx(EmptyView, {}),
|
|
@@ -18,5 +18,5 @@ const ListBox = (props) => {
|
|
|
18
18
|
);
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
export {
|
|
22
|
-
//# sourceMappingURL=
|
|
21
|
+
export { GridList };
|
|
22
|
+
//# sourceMappingURL=GridList.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridList.mjs","sources":["../../../../../../../../../../../src/components/List/components/Items/views/GridList/GridList.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { FC } from \"react\";\nimport { EmptyView } from \"@/components/List/views/EmptyView\";\n\nexport type GridListProps = Aria.GridListProps<never> & {\n tileMaxWidth: number;\n};\n\n/** @flr-generate all */\nexport const GridList: FC<GridListProps> = (props) => {\n const { tileMaxWidth, ...rest } = props;\n\n return (\n <Aria.GridList\n {...rest}\n renderEmptyState={() => <EmptyView />}\n style={{\n gridTemplateColumns: `repeat(auto-fill, minmax(${tileMaxWidth}px, 1fr))`,\n }}\n />\n );\n};\n\nexport default GridList;\n"],"names":[],"mappings":";;;;AASO,MAAM,QAAA,GAA8B,CAAC,KAAA,KAAU;AACpD,EAAA,MAAM,EAAE,YAAA,EAAc,GAAG,IAAA,EAAK,GAAI,KAAA;AAElC,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA,CAAK,QAAA;AAAA,IAAL;AAAA,MACE,GAAG,IAAA;AAAA,MACJ,gBAAA,EAAkB,sBAAM,GAAA,CAAC,SAAA,EAAA,EAAU,CAAA;AAAA,MACnC,KAAA,EAAO;AAAA,QACL,mBAAA,EAAqB,4BAA4B,YAAY,CAAA,SAAA;AAAA;AAC/D;AAAA,GACF;AAEJ;;;;"}
|
|
@@ -5,10 +5,10 @@ import * as Aria from 'react-aria-components';
|
|
|
5
5
|
import styles from '../../components/Item/Item.module.scss.mjs';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const GridListItem = (props) => {
|
|
9
9
|
const { hasAction, isTile, ...restProps } = props;
|
|
10
10
|
return /* @__PURE__ */ jsx(
|
|
11
|
-
Aria.
|
|
11
|
+
Aria.GridListItem,
|
|
12
12
|
{
|
|
13
13
|
...restProps,
|
|
14
14
|
className: (renderProps) => clsx(
|
|
@@ -21,5 +21,5 @@ const ListBoxItem = (props) => {
|
|
|
21
21
|
);
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
export {
|
|
25
|
-
//# sourceMappingURL=
|
|
24
|
+
export { GridListItem };
|
|
25
|
+
//# sourceMappingURL=GridListItem.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridListItem.mjs","sources":["../../../../../../../../../../../src/components/List/components/Items/views/GridListItem/GridListItem.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { FC } from \"react\";\nimport styles from \"@/components/List/components/Items/components/Item/Item.module.scss\";\nimport clsx from \"clsx\";\n\nexport type GridListItemProps = Aria.GridListItemProps<never> & {\n hasAction?: boolean;\n isTile?: boolean;\n};\n\n/** @flr-generate all */\nexport const GridListItem: FC<GridListItemProps> = (props) => {\n const { hasAction, isTile, ...restProps } = props;\n return (\n <Aria.GridListItem\n {...restProps}\n className={(renderProps) =>\n clsx(\n styles.item,\n hasAction && styles.hasAction,\n isTile && styles.tile,\n renderProps.isSelected && styles.isSelected,\n )\n }\n />\n );\n};\n\nexport default GridListItem;\n"],"names":[],"mappings":";;;;;AAWO,MAAM,YAAA,GAAsC,CAAC,KAAA,KAAU;AAC5D,EAAA,MAAM,EAAE,SAAA,EAAW,MAAA,EAAQ,GAAG,WAAU,GAAI,KAAA;AAC5C,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA,CAAK,YAAA;AAAA,IAAL;AAAA,MACE,GAAG,SAAA;AAAA,MACJ,SAAA,EAAW,CAAC,WAAA,KACV,IAAA;AAAA,QACE,MAAA,CAAO,IAAA;AAAA,QACP,aAAa,MAAA,CAAO,SAAA;AAAA,QACpB,UAAU,MAAA,CAAO,IAAA;AAAA,QACjB,WAAA,CAAY,cAAc,MAAA,CAAO;AAAA;AACnC;AAAA,GAEJ;AAEJ;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { memo, useContext } from 'react';
|
|
5
|
+
import { GridListItem } from '../components/List/components/Items/views/GridListItem/GridListItem.mjs';
|
|
6
|
+
import { viewComponentContext } from '../lib/viewComponentContext/viewComponentContext.mjs';
|
|
7
|
+
|
|
8
|
+
const ItemsGridListItemView = memo((props) => {
|
|
9
|
+
const View = useContext(viewComponentContext)["ItemsGridListItem"] ?? GridListItem;
|
|
10
|
+
return /* @__PURE__ */ jsx(View, { ...props });
|
|
11
|
+
});
|
|
12
|
+
ItemsGridListItemView.displayName = "ItemsGridListItemView";
|
|
13
|
+
|
|
14
|
+
export { ItemsGridListItemView as default };
|
|
15
|
+
//# sourceMappingURL=ItemsGridListItemView.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemsGridListItemView.mjs","sources":["../../../../../../src/views/ItemsGridListItemView.tsx"],"sourcesContent":["/* prettier-ignore */\n/* This file is auto-generated with the remote-components-generator */\nimport React, { memo, type FC, useContext } from \"react\";\nimport {\n GridListItem,\n type GridListItemProps,\n} from \"@/components/List/components/Items/views/GridListItem/GridListItem\";\nimport { viewComponentContext } from \"@/lib/viewComponentContext/viewComponentContext\";\n\nconst ItemsGridListItemView: FC<GridListItemProps> = memo((props) => {\n const View =\n useContext(viewComponentContext)[\"ItemsGridListItem\"] ?? GridListItem;\n return <View {...props} />;\n});\nItemsGridListItemView.displayName = \"ItemsGridListItemView\";\n\nexport default ItemsGridListItemView;\n"],"names":[],"mappings":";;;;;AASA,MAAM,qBAAA,GAA+C,IAAA,CAAK,CAAC,KAAA,KAAU;AACnE,EAAA,MAAM,IAAA,GACJ,UAAA,CAAW,oBAAoB,CAAA,CAAE,mBAAmB,CAAA,IAAK,YAAA;AAC3D,EAAA,uBAAO,GAAA,CAAC,IAAA,EAAA,EAAM,GAAG,KAAA,EAAO,CAAA;AAC1B,CAAC;AACD,qBAAA,CAAsB,WAAA,GAAc,uBAAA;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { memo, useContext } from 'react';
|
|
5
|
+
import { GridList } from '../components/List/components/Items/views/GridList/GridList.mjs';
|
|
6
|
+
import { viewComponentContext } from '../lib/viewComponentContext/viewComponentContext.mjs';
|
|
7
|
+
|
|
8
|
+
const ItemsGridListView = memo((props) => {
|
|
9
|
+
const View = useContext(viewComponentContext)["ItemsGridList"] ?? GridList;
|
|
10
|
+
return /* @__PURE__ */ jsx(View, { ...props });
|
|
11
|
+
});
|
|
12
|
+
ItemsGridListView.displayName = "ItemsGridListView";
|
|
13
|
+
|
|
14
|
+
export { ItemsGridListView as default };
|
|
15
|
+
//# sourceMappingURL=ItemsGridListView.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemsGridListView.mjs","sources":["../../../../../../src/views/ItemsGridListView.tsx"],"sourcesContent":["/* prettier-ignore */\n/* This file is auto-generated with the remote-components-generator */\nimport React, { memo, type FC, useContext } from \"react\";\nimport {\n GridList,\n type GridListProps,\n} from \"@/components/List/components/Items/views/GridList/GridList\";\nimport { viewComponentContext } from \"@/lib/viewComponentContext/viewComponentContext\";\n\nconst ItemsGridListView: FC<GridListProps> = memo((props) => {\n const View = useContext(viewComponentContext)[\"ItemsGridList\"] ?? GridList;\n return <View {...props} />;\n});\nItemsGridListView.displayName = \"ItemsGridListView\";\n\nexport default ItemsGridListView;\n"],"names":[],"mappings":";;;;;AASA,MAAM,iBAAA,GAAuC,IAAA,CAAK,CAAC,KAAA,KAAU;AAC3D,EAAA,MAAM,IAAA,GAAO,UAAA,CAAW,oBAAoB,CAAA,CAAE,eAAe,CAAA,IAAK,QAAA;AAClE,EAAA,uBAAO,GAAA,CAAC,IAAA,EAAA,EAAM,GAAG,KAAA,EAAO,CAAA;AAC1B,CAAC;AACD,iBAAA,CAAkB,WAAA,GAAc,mBAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/components/Item/Item.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAIjD,UAAU,KAAM,SAAQ,iBAAiB;IACvC,EAAE,EAAE,GAAG,CAAC;IACR,IAAI,EAAE,KAAK,CAAC;CACb;AAED,eAAO,MAAM,IAAI,GAAI,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/components/Item/Item.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAIjD,UAAU,KAAM,SAAQ,iBAAiB;IACvC,EAAE,EAAE,GAAG,CAAC;IACR,IAAI,EAAE,KAAK,CAAC;CACb;AAED,eAAO,MAAM,IAAI,GAAI,OAAO,KAAK,mDAiChC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAWnC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -2,18 +2,18 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
interface P extends PropsWithChildren {
|
|
3
3
|
data: never;
|
|
4
4
|
}
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
5
|
+
export declare const useGridItemProps: (props: P) => {
|
|
6
|
+
gridItemProps: {
|
|
7
7
|
onAction: (() => void) | undefined;
|
|
8
8
|
ref?: undefined;
|
|
9
9
|
};
|
|
10
10
|
children: import('react').ReactNode;
|
|
11
11
|
} | {
|
|
12
|
-
|
|
12
|
+
gridItemProps: {
|
|
13
13
|
ref: import('react').RefObject<HTMLDivElement | null>;
|
|
14
14
|
onAction: () => void;
|
|
15
15
|
};
|
|
16
16
|
children: import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
};
|
|
18
18
|
export {};
|
|
19
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=useGridItemProps.d.ts.map
|
package/dist/types/components/List/components/Items/components/Item/hooks/useGridItemProps.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGridItemProps.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/List/components/Items/components/Item/hooks/useGridItemProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAO/C,UAAU,CAAE,SAAQ,iBAAiB;IACnC,IAAI,EAAE,KAAK,CAAC;CACb;AAED,eAAO,MAAM,gBAAgB,GAAI,OAAO,CAAC;;;;;;;;;;;;CAqExC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import * as Aria from "react-aria-components";
|
|
3
|
+
export type GridListProps = Aria.GridListProps<never> & {
|
|
4
|
+
tileMaxWidth: number;
|
|
5
|
+
};
|
|
6
|
+
/** @flr-generate all */
|
|
7
|
+
export declare const GridList: FC<GridListProps>;
|
|
8
|
+
export default GridList;
|
|
9
|
+
//# sourceMappingURL=GridList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/GridList/GridList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG;IACtD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAYtC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/dist/types/components/List/components/Items/views/{ListBox → GridList}/index.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/GridList/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GridList } from './GridList';
|
|
2
2
|
import { ViewComponent } from '../../../../../../lib/viewComponentContext';
|
|
3
3
|
declare global {
|
|
4
4
|
interface FlowViewComponents {
|
|
5
|
-
|
|
5
|
+
ItemsGridList: ViewComponent<typeof GridList>;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/GridList/view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,kBAAkB;QAC1B,aAAa,EAAE,aAAa,CAAC,OAAO,QAAQ,CAAC,CAAC;KAC/C;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import * as Aria from "react-aria-components";
|
|
3
|
+
export type GridListItemProps = Aria.GridListItemProps<never> & {
|
|
4
|
+
hasAction?: boolean;
|
|
5
|
+
isTile?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** @flr-generate all */
|
|
8
|
+
export declare const GridListItem: FC<GridListItemProps>;
|
|
9
|
+
export default GridListItem;
|
|
10
|
+
//# sourceMappingURL=GridListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridListItem.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/GridListItem/GridListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAe9C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/GridListItem/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GridListItem } from './GridListItem';
|
|
2
|
+
import { ViewComponent } from '../../../../../../lib/viewComponentContext';
|
|
3
|
+
declare global {
|
|
4
|
+
interface FlowViewComponents {
|
|
5
|
+
ItemsGridListItem: ViewComponent<typeof GridListItem>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/GridListItem/view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,kBAAkB;QAC1B,iBAAiB,EAAE,aAAa,CAAC,OAAO,YAAY,CAAC,CAAC;KACvD;CACF"}
|
|
@@ -2,8 +2,8 @@ export type { RenderItemFn } from './model/item/types';
|
|
|
2
2
|
export type { AsyncDataLoader, AsyncResourceFactory, DataLoaderOptions, DataLoaderResult, } from './model/loading/types';
|
|
3
3
|
export type { SortingFn } from './model/sorting/types';
|
|
4
4
|
export { SortingFunctions } from './model/sorting/SortingFunctions';
|
|
5
|
-
export * from './components/Items/views/
|
|
6
|
-
export * from './components/Items/views/
|
|
5
|
+
export * from './components/Items/views/GridList';
|
|
6
|
+
export * from './components/Items/views/GridListItem';
|
|
7
7
|
export * from './components/ListItemView';
|
|
8
8
|
export * from './components/ListSummary';
|
|
9
9
|
export * from './views/EmptyView';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,uCAAuC,CAAC;AAE/C,YAAY,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,uCAAuC,CAAC;AAE/C,YAAY,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,mBAAmB,CAAC;AAElC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAE5B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Default.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/stories/Default.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,IAAI,MAAM,SAAS,CAAC;AAyD3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"Default.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/stories/Default.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,IAAI,MAAM,SAAS,CAAC;AAyD3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CA4G3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,WAAW,EAAE,KAwCzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAwC/B,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,KAyC3B,CAAC;AAMF,eAAO,MAAM,WAAW,EAAE,KA8CzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAqElC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAmCjC,CAAC"}
|
|
@@ -216,9 +216,9 @@ export declare const typedList: <T, TMeta = unknown>() => {
|
|
|
216
216
|
selectionMode?: import('react-stately').SelectionMode | undefined;
|
|
217
217
|
dragAndDropHooks?: import('react-aria-components').DragAndDropHooks | undefined;
|
|
218
218
|
verticalAlign?: "top" | "middle" | undefined;
|
|
219
|
+
disabledBehavior?: import('react-stately').DisabledBehavior | undefined;
|
|
219
220
|
sortDescriptor?: import('react-stately').SortDescriptor | undefined;
|
|
220
221
|
onSortChange?: ((descriptor: import('react-stately').SortDescriptor) => any) | undefined;
|
|
221
|
-
disabledBehavior?: import('react-stately').DisabledBehavior | undefined;
|
|
222
222
|
onRowAction?: ((key: import('react-aria').Key) => void) | undefined;
|
|
223
223
|
}) => null;
|
|
224
224
|
StaticData: ComponentType<{
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { GridListItemProps } from '../components/List/components/Items/views/GridListItem/GridListItem';
|
|
3
|
+
declare const ItemsGridListItemView: FC<GridListItemProps>;
|
|
4
|
+
export default ItemsGridListItemView;
|
|
5
|
+
//# sourceMappingURL=ItemsGridListItemView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemsGridListItemView.d.ts","sourceRoot":"","sources":["../../../src/views/ItemsGridListItemView.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAQ,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;AACzD,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oEAAoE,CAAC;AAG5E,QAAA,MAAM,qBAAqB,EAAE,EAAE,CAAC,iBAAiB,CAI/C,CAAC;AAGH,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemsGridListView.d.ts","sourceRoot":"","sources":["../../../src/views/ItemsGridListView.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAQ,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;AACzD,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,4DAA4D,CAAC;AAGpE,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,aAAa,CAGvC,CAAC;AAGH,eAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.774",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@codemirror/lint": "^6.9.5",
|
|
61
61
|
"@internationalized/string-compiler": "^3.2.6",
|
|
62
62
|
"@lezer/highlight": "^1.2.3",
|
|
63
|
-
"@mittwald/flow-icons": "0.2.0-alpha.
|
|
63
|
+
"@mittwald/flow-icons": "0.2.0-alpha.774",
|
|
64
64
|
"@mittwald/password-tools-js": "3.0.0-alpha.18",
|
|
65
|
-
"@mittwald/react-tunnel": "0.2.0-alpha.
|
|
65
|
+
"@mittwald/react-tunnel": "0.2.0-alpha.774",
|
|
66
66
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
67
67
|
"@react-aria/form": "^3.1.3",
|
|
68
68
|
"@react-aria/live-announcer": "^3.4.4",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@lezer/generator": "^1.8.0",
|
|
114
114
|
"@lezer/lr": "^1.4.8",
|
|
115
115
|
"@mittwald/flow-core": "",
|
|
116
|
-
"@mittwald/flow-design-tokens": "0.2.0-alpha.
|
|
116
|
+
"@mittwald/flow-design-tokens": "0.2.0-alpha.774",
|
|
117
117
|
"@mittwald/flow-icons-base": "",
|
|
118
118
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
119
119
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.10",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
},
|
|
167
167
|
"peerDependencies": {
|
|
168
168
|
"@internationalized/date": "^3.10.0",
|
|
169
|
-
"@mittwald/flow-icons-pro": "0.2.0-alpha.
|
|
169
|
+
"@mittwald/flow-icons-pro": "0.2.0-alpha.773",
|
|
170
170
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
171
171
|
"next": "*",
|
|
172
172
|
"react": "^19.2.0",
|
|
@@ -187,5 +187,5 @@
|
|
|
187
187
|
"optional": true
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
|
-
"gitHead": "
|
|
190
|
+
"gitHead": "86da7843da323e4120d05a7d4f2a144dd2286bf4"
|
|
191
191
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBoxItemProps.mjs","sources":["../../../../../../../../../../../../src/components/List/components/Items/components/Item/hooks/useBoxItemProps.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport { useEffect, useId, useRef, useState } from \"react\";\nimport { useList } from \"@/components/List\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { dynamic, PropsContextProvider } from \"@/lib/propsContext\";\nimport { AccordionButton } from \"@/components/List/components/Items/components/Item/components/AccordionButton\";\n\ninterface P extends PropsWithChildren {\n data: never;\n}\n\nexport const useBoxItemProps = (props: P) => {\n const { data, children: childrenFromProps } = props;\n const list = useList();\n const itemView = list.itemView;\n const onAction = list.onAction;\n\n const [isExpanded, setIsExpanded] = useState(\n itemView?.defaultExpanded?.(data) ?? false,\n );\n const contentElementId = useId();\n const itemRef = useRef<HTMLDivElement>(null);\n\n const accordion = list.accordion;\n const children = childrenFromProps ?? itemView?.render(data);\n\n useEffect(() => {\n if (accordion) {\n itemRef.current?.setAttribute(\"aria-expanded\", String(isExpanded));\n itemRef.current?.setAttribute(\"aria-controls\", contentElementId);\n }\n }, [isExpanded, contentElementId, itemRef.current, accordion]);\n\n if (!accordion) {\n return {\n boxItemProps: {\n onAction: onAction\n ? () => {\n onAction?.(data);\n }\n : undefined,\n },\n children,\n };\n }\n\n const toggleAccordion = () => {\n setIsExpanded((current) => !current);\n onAction?.(data);\n };\n\n const propsContext: PropsContext = {\n Content: {\n id: dynamic((p) => (p.slot === \"bottom\" ? contentElementId : undefined)),\n wrapWith: dynamic((p) =>\n p.slot === \"bottom\" ? (\n <AccordionButton\n contentElementId={contentElementId}\n toggle={toggleAccordion}\n isExpanded={isExpanded}\n />\n ) : undefined,\n ),\n },\n };\n\n return {\n boxItemProps: {\n ref: itemRef,\n onAction: toggleAccordion,\n },\n children: (\n <PropsContextProvider\n props={propsContext}\n dependencies={[contentElementId, isExpanded]}\n >\n {children}\n </PropsContextProvider>\n ),\n };\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,MAAM,eAAA,GAAkB,CAAC,KAAA,KAAa;AAC3C,EAAA,MAAM,EAAE,IAAA,EAAM,QAAA,EAAU,iBAAA,EAAkB,GAAI,KAAA;AAC9C,EAAA,MAAM,OAAO,OAAA,EAAQ;AACrB,EAAA,MAAM,WAAW,IAAA,CAAK,QAAA;AACtB,EAAA,MAAM,WAAW,IAAA,CAAK,QAAA;AAEtB,EAAA,MAAM,CAAC,UAAA,EAAY,aAAa,CAAA,GAAI,QAAA;AAAA,IAClC,QAAA,EAAU,eAAA,GAAkB,IAAI,CAAA,IAAK;AAAA,GACvC;AACA,EAAA,MAAM,mBAAmB,KAAA,EAAM;AAC/B,EAAA,MAAM,OAAA,GAAU,OAAuB,IAAI,CAAA;AAE3C,EAAA,MAAM,YAAY,IAAA,CAAK,SAAA;AACvB,EAAA,MAAM,QAAA,GAAW,iBAAA,IAAqB,QAAA,EAAU,MAAA,CAAO,IAAI,CAAA;AAE3D,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,SAAA,EAAW;AACb,MAAA,OAAA,CAAQ,OAAA,EAAS,YAAA,CAAa,eAAA,EAAiB,MAAA,CAAO,UAAU,CAAC,CAAA;AACjE,MAAA,OAAA,CAAQ,OAAA,EAAS,YAAA,CAAa,eAAA,EAAiB,gBAAgB,CAAA;AAAA,IACjE;AAAA,EACF,GAAG,CAAC,UAAA,EAAY,kBAAkB,OAAA,CAAQ,OAAA,EAAS,SAAS,CAAC,CAAA;AAE7D,EAAA,IAAI,CAAC,SAAA,EAAW;AACd,IAAA,OAAO;AAAA,MACL,YAAA,EAAc;AAAA,QACZ,QAAA,EAAU,WACN,MAAM;AACJ,UAAA,QAAA,GAAW,IAAI,CAAA;AAAA,QACjB,CAAA,GACA;AAAA,OACN;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAEA,EAAA,MAAM,kBAAkB,MAAM;AAC5B,IAAA,aAAA,CAAc,CAAC,OAAA,KAAY,CAAC,OAAO,CAAA;AACnC,IAAA,QAAA,GAAW,IAAI,CAAA;AAAA,EACjB,CAAA;AAEA,EAAA,MAAM,YAAA,GAA6B;AAAA,IACjC,OAAA,EAAS;AAAA,MACP,EAAA,EAAI,QAAQ,CAAC,CAAA,KAAO,EAAE,IAAA,KAAS,QAAA,GAAW,mBAAmB,MAAU,CAAA;AAAA,MACvE,QAAA,EAAU,OAAA;AAAA,QAAQ,CAAC,CAAA,KACjB,CAAA,CAAE,IAAA,KAAS,QAAA,mBACT,GAAA;AAAA,UAAC,eAAA;AAAA,UAAA;AAAA,YACC,gBAAA;AAAA,YACA,MAAA,EAAQ,eAAA;AAAA,YACR;AAAA;AAAA,SACF,GACE;AAAA;AACN;AACF,GACF;AAEA,EAAA,OAAO;AAAA,IACL,YAAA,EAAc;AAAA,MACZ,GAAA,EAAK,OAAA;AAAA,MACL,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,QAAA,kBACE,GAAA;AAAA,MAAC,oBAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO,YAAA;AAAA,QACP,YAAA,EAAc,CAAC,gBAAA,EAAkB,UAAU,CAAA;AAAA,QAE1C;AAAA;AAAA;AACH,GAEJ;AACF;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListBox.mjs","sources":["../../../../../../../../../../../src/components/List/components/Items/views/ListBox/ListBox.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { FC } from \"react\";\nimport { EmptyView } from \"@/components/List/views/EmptyView\";\n\nexport type ListBoxProps = Aria.ListBoxProps<never> & {\n tileMaxWidth: number;\n};\n\n/** @flr-generate all */\nexport const ListBox: FC<ListBoxProps> = (props) => {\n const { tileMaxWidth, ...rest } = props;\n\n return (\n <Aria.ListBox\n {...rest}\n renderEmptyState={() => <EmptyView />}\n style={{\n gridTemplateColumns: `repeat(auto-fill, minmax(${tileMaxWidth}px, 1fr))`,\n }}\n />\n );\n};\n\nexport default ListBox;\n"],"names":[],"mappings":";;;;AASO,MAAM,OAAA,GAA4B,CAAC,KAAA,KAAU;AAClD,EAAA,MAAM,EAAE,YAAA,EAAc,GAAG,IAAA,EAAK,GAAI,KAAA;AAElC,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA,CAAK,OAAA;AAAA,IAAL;AAAA,MACE,GAAG,IAAA;AAAA,MACJ,gBAAA,EAAkB,sBAAM,GAAA,CAAC,SAAA,EAAA,EAAU,CAAA;AAAA,MACnC,KAAA,EAAO;AAAA,QACL,mBAAA,EAAqB,4BAA4B,YAAY,CAAA,SAAA;AAAA;AAC/D;AAAA,GACF;AAEJ;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListBoxItem.mjs","sources":["../../../../../../../../../../../src/components/List/components/Items/views/ListBoxItem/ListBoxItem.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { FC } from \"react\";\nimport styles from \"@/components/List/components/Items/components/Item/Item.module.scss\";\nimport clsx from \"clsx\";\n\nexport type ListBoxItemProps = Aria.ListBoxItemProps<never> & {\n hasAction?: boolean;\n isTile?: boolean;\n};\n\n/** @flr-generate all */\nexport const ListBoxItem: FC<ListBoxItemProps> = (props) => {\n const { hasAction, isTile, ...restProps } = props;\n return (\n <Aria.ListBoxItem\n {...restProps}\n className={(renderProps) =>\n clsx(\n styles.item,\n hasAction && styles.hasAction,\n isTile && styles.tile,\n renderProps.isSelected && styles.isSelected,\n )\n }\n />\n );\n};\n\nexport default ListBoxItem;\n"],"names":[],"mappings":";;;;;AAWO,MAAM,WAAA,GAAoC,CAAC,KAAA,KAAU;AAC1D,EAAA,MAAM,EAAE,SAAA,EAAW,MAAA,EAAQ,GAAG,WAAU,GAAI,KAAA;AAC5C,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA,CAAK,WAAA;AAAA,IAAL;AAAA,MACE,GAAG,SAAA;AAAA,MACJ,SAAA,EAAW,CAAC,WAAA,KACV,IAAA;AAAA,QACE,MAAA,CAAO,IAAA;AAAA,QACP,aAAa,MAAA,CAAO,SAAA;AAAA,QACpB,UAAU,MAAA,CAAO,IAAA;AAAA,QACjB,WAAA,CAAY,cAAc,MAAA,CAAO;AAAA;AACnC;AAAA,GAEJ;AAEJ;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { memo, useContext } from 'react';
|
|
5
|
-
import { ListBoxItem } from '../components/List/components/Items/views/ListBoxItem/ListBoxItem.mjs';
|
|
6
|
-
import { viewComponentContext } from '../lib/viewComponentContext/viewComponentContext.mjs';
|
|
7
|
-
|
|
8
|
-
const ItemsListBoxItemView = memo((props) => {
|
|
9
|
-
const View = useContext(viewComponentContext)["ItemsListBoxItem"] ?? ListBoxItem;
|
|
10
|
-
return /* @__PURE__ */ jsx(View, { ...props });
|
|
11
|
-
});
|
|
12
|
-
ItemsListBoxItemView.displayName = "ItemsListBoxItemView";
|
|
13
|
-
|
|
14
|
-
export { ItemsListBoxItemView as default };
|
|
15
|
-
//# sourceMappingURL=ItemsListBoxItemView.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ItemsListBoxItemView.mjs","sources":["../../../../../../src/views/ItemsListBoxItemView.tsx"],"sourcesContent":["/* prettier-ignore */\n/* This file is auto-generated with the remote-components-generator */\nimport React, { memo, type FC, useContext } from \"react\";\nimport {\n ListBoxItem,\n type ListBoxItemProps,\n} from \"@/components/List/components/Items/views/ListBoxItem/ListBoxItem\";\nimport { viewComponentContext } from \"@/lib/viewComponentContext/viewComponentContext\";\n\nconst ItemsListBoxItemView: FC<ListBoxItemProps> = memo((props) => {\n const View =\n useContext(viewComponentContext)[\"ItemsListBoxItem\"] ?? ListBoxItem;\n return <View {...props} />;\n});\nItemsListBoxItemView.displayName = \"ItemsListBoxItemView\";\n\nexport default ItemsListBoxItemView;\n"],"names":[],"mappings":";;;;;AASA,MAAM,oBAAA,GAA6C,IAAA,CAAK,CAAC,KAAA,KAAU;AACjE,EAAA,MAAM,IAAA,GACJ,UAAA,CAAW,oBAAoB,CAAA,CAAE,kBAAkB,CAAA,IAAK,WAAA;AAC1D,EAAA,uBAAO,GAAA,CAAC,IAAA,EAAA,EAAM,GAAG,KAAA,EAAO,CAAA;AAC1B,CAAC;AACD,oBAAA,CAAqB,WAAA,GAAc,sBAAA;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { memo, useContext } from 'react';
|
|
5
|
-
import { ListBox } from '../components/List/components/Items/views/ListBox/ListBox.mjs';
|
|
6
|
-
import { viewComponentContext } from '../lib/viewComponentContext/viewComponentContext.mjs';
|
|
7
|
-
|
|
8
|
-
const ItemsListBoxView = memo((props) => {
|
|
9
|
-
const View = useContext(viewComponentContext)["ItemsListBox"] ?? ListBox;
|
|
10
|
-
return /* @__PURE__ */ jsx(View, { ...props });
|
|
11
|
-
});
|
|
12
|
-
ItemsListBoxView.displayName = "ItemsListBoxView";
|
|
13
|
-
|
|
14
|
-
export { ItemsListBoxView as default };
|
|
15
|
-
//# sourceMappingURL=ItemsListBoxView.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ItemsListBoxView.mjs","sources":["../../../../../../src/views/ItemsListBoxView.tsx"],"sourcesContent":["/* prettier-ignore */\n/* This file is auto-generated with the remote-components-generator */\nimport React, { memo, type FC, useContext } from \"react\";\nimport {\n ListBox,\n type ListBoxProps,\n} from \"@/components/List/components/Items/views/ListBox/ListBox\";\nimport { viewComponentContext } from \"@/lib/viewComponentContext/viewComponentContext\";\n\nconst ItemsListBoxView: FC<ListBoxProps> = memo((props) => {\n const View = useContext(viewComponentContext)[\"ItemsListBox\"] ?? ListBox;\n return <View {...props} />;\n});\nItemsListBoxView.displayName = \"ItemsListBoxView\";\n\nexport default ItemsListBoxView;\n"],"names":[],"mappings":";;;;;AASA,MAAM,gBAAA,GAAqC,IAAA,CAAK,CAAC,KAAA,KAAU;AACzD,EAAA,MAAM,IAAA,GAAO,UAAA,CAAW,oBAAoB,CAAA,CAAE,cAAc,CAAA,IAAK,OAAA;AACjE,EAAA,uBAAO,GAAA,CAAC,IAAA,EAAA,EAAM,GAAG,KAAA,EAAO,CAAA;AAC1B,CAAC;AACD,gBAAA,CAAiB,WAAA,GAAc,kBAAA;;;;"}
|
package/dist/types/components/List/components/Items/components/Item/hooks/useBoxItemProps.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBoxItemProps.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/List/components/Items/components/Item/hooks/useBoxItemProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAO/C,UAAU,CAAE,SAAQ,iBAAiB;IACnC,IAAI,EAAE,KAAK,CAAC;CACb;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,CAAC;;;;;;;;;;;;CAqEvC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import * as Aria from "react-aria-components";
|
|
3
|
-
export type ListBoxProps = Aria.ListBoxProps<never> & {
|
|
4
|
-
tileMaxWidth: number;
|
|
5
|
-
};
|
|
6
|
-
/** @flr-generate all */
|
|
7
|
-
export declare const ListBox: FC<ListBoxProps>;
|
|
8
|
-
export default ListBox;
|
|
9
|
-
//# sourceMappingURL=ListBox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListBox.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/ListBox/ListBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG;IACpD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAYpC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/List/components/Items/views/ListBox/view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,kBAAkB;QAC1B,YAAY,EAAE,aAAa,CAAC,OAAO,OAAO,CAAC,CAAC;KAC7C;CACF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import * as Aria from "react-aria-components";
|
|
3
|
-
export type ListBoxItemProps = Aria.ListBoxItemProps<never> & {
|
|
4
|
-
hasAction?: boolean;
|
|
5
|
-
isTile?: boolean;
|
|
6
|
-
};
|
|
7
|
-
/** @flr-generate all */
|
|
8
|
-
export declare const ListBoxItem: FC<ListBoxItemProps>;
|
|
9
|
-
export default ListBoxItem;
|
|
10
|
-
//# sourceMappingURL=ListBoxItem.d.ts.map
|