@mittwald/flow-react-components 0.2.0-alpha.448 → 0.2.0-alpha.449
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
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.2.0-alpha.449](https://github.com/mittwald/flow/compare/0.2.0-alpha.448...0.2.0-alpha.449) (2025-09-02)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **List:** flickering loading view ([#1939](https://github.com/mittwald/flow/issues/1939)) ([bd1c028](https://github.com/mittwald/flow/commit/bd1c0284ead0cd5e486193f72d796576acbd46e2))
|
|
11
|
+
|
|
6
12
|
# [0.2.0-alpha.448](https://github.com/mittwald/flow/compare/0.2.0-alpha.447...0.2.0-alpha.448) (2025-09-02)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -78623,128 +78623,6 @@
|
|
|
78623
78623
|
}
|
|
78624
78624
|
}
|
|
78625
78625
|
},
|
|
78626
|
-
{
|
|
78627
|
-
"tags": {
|
|
78628
|
-
"flr-generate": "all",
|
|
78629
|
-
"flr-clear-props-context": ""
|
|
78630
|
-
},
|
|
78631
|
-
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/MessageThread/MessageThread.tsx",
|
|
78632
|
-
"description": "",
|
|
78633
|
-
"displayName": "MessageThread",
|
|
78634
|
-
"methods": [],
|
|
78635
|
-
"props": {
|
|
78636
|
-
"children": {
|
|
78637
|
-
"defaultValue": null,
|
|
78638
|
-
"description": "",
|
|
78639
|
-
"name": "children",
|
|
78640
|
-
"declarations": [
|
|
78641
|
-
{
|
|
78642
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78643
|
-
"name": "TypeLiteral"
|
|
78644
|
-
}
|
|
78645
|
-
],
|
|
78646
|
-
"required": false,
|
|
78647
|
-
"type": {
|
|
78648
|
-
"name": "ReactNode"
|
|
78649
|
-
}
|
|
78650
|
-
},
|
|
78651
|
-
"className": {
|
|
78652
|
-
"defaultValue": null,
|
|
78653
|
-
"description": "The elements class name.",
|
|
78654
|
-
"name": "className",
|
|
78655
|
-
"parent": {
|
|
78656
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
78657
|
-
"name": "PropsWithClassName"
|
|
78658
|
-
},
|
|
78659
|
-
"declarations": [
|
|
78660
|
-
{
|
|
78661
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
78662
|
-
"name": "PropsWithClassName"
|
|
78663
|
-
}
|
|
78664
|
-
],
|
|
78665
|
-
"required": false,
|
|
78666
|
-
"type": {
|
|
78667
|
-
"name": "string"
|
|
78668
|
-
}
|
|
78669
|
-
},
|
|
78670
|
-
"wrapWith": {
|
|
78671
|
-
"defaultValue": null,
|
|
78672
|
-
"description": "",
|
|
78673
|
-
"name": "wrapWith",
|
|
78674
|
-
"parent": {
|
|
78675
|
-
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
78676
|
-
"name": "FlowComponentProps"
|
|
78677
|
-
},
|
|
78678
|
-
"declarations": [
|
|
78679
|
-
{
|
|
78680
|
-
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
78681
|
-
"name": "FlowComponentProps"
|
|
78682
|
-
}
|
|
78683
|
-
],
|
|
78684
|
-
"required": false,
|
|
78685
|
-
"type": {
|
|
78686
|
-
"name": "ReactElement<unknown, string | JSXElementConstructor<any>>"
|
|
78687
|
-
}
|
|
78688
|
-
},
|
|
78689
|
-
"tunnelId": {
|
|
78690
|
-
"defaultValue": null,
|
|
78691
|
-
"description": "@internal",
|
|
78692
|
-
"name": "tunnelId",
|
|
78693
|
-
"parent": {
|
|
78694
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
78695
|
-
"name": "PropsWithTunnel"
|
|
78696
|
-
},
|
|
78697
|
-
"declarations": [
|
|
78698
|
-
{
|
|
78699
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
78700
|
-
"name": "PropsWithTunnel"
|
|
78701
|
-
}
|
|
78702
|
-
],
|
|
78703
|
-
"required": false,
|
|
78704
|
-
"type": {
|
|
78705
|
-
"name": "string | null"
|
|
78706
|
-
}
|
|
78707
|
-
},
|
|
78708
|
-
"ref": {
|
|
78709
|
-
"defaultValue": null,
|
|
78710
|
-
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",
|
|
78711
|
-
"name": "ref",
|
|
78712
|
-
"parent": {
|
|
78713
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78714
|
-
"name": "RefAttributes"
|
|
78715
|
-
},
|
|
78716
|
-
"declarations": [
|
|
78717
|
-
{
|
|
78718
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78719
|
-
"name": "RefAttributes"
|
|
78720
|
-
}
|
|
78721
|
-
],
|
|
78722
|
-
"required": false,
|
|
78723
|
-
"type": {
|
|
78724
|
-
"name": "Ref<HTMLInputElement>"
|
|
78725
|
-
}
|
|
78726
|
-
},
|
|
78727
|
-
"key": {
|
|
78728
|
-
"defaultValue": null,
|
|
78729
|
-
"description": "",
|
|
78730
|
-
"name": "key",
|
|
78731
|
-
"parent": {
|
|
78732
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78733
|
-
"name": "Attributes"
|
|
78734
|
-
},
|
|
78735
|
-
"declarations": [
|
|
78736
|
-
{
|
|
78737
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78738
|
-
"name": "Attributes"
|
|
78739
|
-
}
|
|
78740
|
-
],
|
|
78741
|
-
"required": false,
|
|
78742
|
-
"type": {
|
|
78743
|
-
"name": "Key | null"
|
|
78744
|
-
}
|
|
78745
|
-
}
|
|
78746
|
-
}
|
|
78747
|
-
},
|
|
78748
78626
|
{
|
|
78749
78627
|
"tags": {},
|
|
78750
78628
|
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/Modal/Modal.tsx",
|
|
@@ -78982,6 +78860,128 @@
|
|
|
78982
78860
|
}
|
|
78983
78861
|
}
|
|
78984
78862
|
},
|
|
78863
|
+
{
|
|
78864
|
+
"tags": {
|
|
78865
|
+
"flr-generate": "all",
|
|
78866
|
+
"flr-clear-props-context": ""
|
|
78867
|
+
},
|
|
78868
|
+
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/MessageThread/MessageThread.tsx",
|
|
78869
|
+
"description": "",
|
|
78870
|
+
"displayName": "MessageThread",
|
|
78871
|
+
"methods": [],
|
|
78872
|
+
"props": {
|
|
78873
|
+
"children": {
|
|
78874
|
+
"defaultValue": null,
|
|
78875
|
+
"description": "",
|
|
78876
|
+
"name": "children",
|
|
78877
|
+
"declarations": [
|
|
78878
|
+
{
|
|
78879
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78880
|
+
"name": "TypeLiteral"
|
|
78881
|
+
}
|
|
78882
|
+
],
|
|
78883
|
+
"required": false,
|
|
78884
|
+
"type": {
|
|
78885
|
+
"name": "ReactNode"
|
|
78886
|
+
}
|
|
78887
|
+
},
|
|
78888
|
+
"className": {
|
|
78889
|
+
"defaultValue": null,
|
|
78890
|
+
"description": "The elements class name.",
|
|
78891
|
+
"name": "className",
|
|
78892
|
+
"parent": {
|
|
78893
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
78894
|
+
"name": "PropsWithClassName"
|
|
78895
|
+
},
|
|
78896
|
+
"declarations": [
|
|
78897
|
+
{
|
|
78898
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
78899
|
+
"name": "PropsWithClassName"
|
|
78900
|
+
}
|
|
78901
|
+
],
|
|
78902
|
+
"required": false,
|
|
78903
|
+
"type": {
|
|
78904
|
+
"name": "string"
|
|
78905
|
+
}
|
|
78906
|
+
},
|
|
78907
|
+
"wrapWith": {
|
|
78908
|
+
"defaultValue": null,
|
|
78909
|
+
"description": "",
|
|
78910
|
+
"name": "wrapWith",
|
|
78911
|
+
"parent": {
|
|
78912
|
+
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
78913
|
+
"name": "FlowComponentProps"
|
|
78914
|
+
},
|
|
78915
|
+
"declarations": [
|
|
78916
|
+
{
|
|
78917
|
+
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
78918
|
+
"name": "FlowComponentProps"
|
|
78919
|
+
}
|
|
78920
|
+
],
|
|
78921
|
+
"required": false,
|
|
78922
|
+
"type": {
|
|
78923
|
+
"name": "ReactElement<unknown, string | JSXElementConstructor<any>>"
|
|
78924
|
+
}
|
|
78925
|
+
},
|
|
78926
|
+
"tunnelId": {
|
|
78927
|
+
"defaultValue": null,
|
|
78928
|
+
"description": "@internal",
|
|
78929
|
+
"name": "tunnelId",
|
|
78930
|
+
"parent": {
|
|
78931
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
78932
|
+
"name": "PropsWithTunnel"
|
|
78933
|
+
},
|
|
78934
|
+
"declarations": [
|
|
78935
|
+
{
|
|
78936
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
78937
|
+
"name": "PropsWithTunnel"
|
|
78938
|
+
}
|
|
78939
|
+
],
|
|
78940
|
+
"required": false,
|
|
78941
|
+
"type": {
|
|
78942
|
+
"name": "string | null"
|
|
78943
|
+
}
|
|
78944
|
+
},
|
|
78945
|
+
"ref": {
|
|
78946
|
+
"defaultValue": null,
|
|
78947
|
+
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",
|
|
78948
|
+
"name": "ref",
|
|
78949
|
+
"parent": {
|
|
78950
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78951
|
+
"name": "RefAttributes"
|
|
78952
|
+
},
|
|
78953
|
+
"declarations": [
|
|
78954
|
+
{
|
|
78955
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78956
|
+
"name": "RefAttributes"
|
|
78957
|
+
}
|
|
78958
|
+
],
|
|
78959
|
+
"required": false,
|
|
78960
|
+
"type": {
|
|
78961
|
+
"name": "Ref<HTMLInputElement>"
|
|
78962
|
+
}
|
|
78963
|
+
},
|
|
78964
|
+
"key": {
|
|
78965
|
+
"defaultValue": null,
|
|
78966
|
+
"description": "",
|
|
78967
|
+
"name": "key",
|
|
78968
|
+
"parent": {
|
|
78969
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78970
|
+
"name": "Attributes"
|
|
78971
|
+
},
|
|
78972
|
+
"declarations": [
|
|
78973
|
+
{
|
|
78974
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
78975
|
+
"name": "Attributes"
|
|
78976
|
+
}
|
|
78977
|
+
],
|
|
78978
|
+
"required": false,
|
|
78979
|
+
"type": {
|
|
78980
|
+
"name": "Key | null"
|
|
78981
|
+
}
|
|
78982
|
+
}
|
|
78983
|
+
}
|
|
78984
|
+
},
|
|
78985
78985
|
{
|
|
78986
78986
|
"tags": {
|
|
78987
78987
|
"flr-generate": "all",
|
|
@@ -288586,55 +288586,6 @@
|
|
|
288586
288586
|
}
|
|
288587
288587
|
}
|
|
288588
288588
|
},
|
|
288589
|
-
{
|
|
288590
|
-
"tags": {
|
|
288591
|
-
"internal": ""
|
|
288592
|
-
},
|
|
288593
|
-
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288594
|
-
"description": "",
|
|
288595
|
-
"displayName": "ValidationResultEntry",
|
|
288596
|
-
"methods": [],
|
|
288597
|
-
"props": {
|
|
288598
|
-
"result": {
|
|
288599
|
-
"defaultValue": null,
|
|
288600
|
-
"description": "",
|
|
288601
|
-
"name": "result",
|
|
288602
|
-
"parent": {
|
|
288603
|
-
"fileName": "components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288604
|
-
"name": "Props"
|
|
288605
|
-
},
|
|
288606
|
-
"declarations": [
|
|
288607
|
-
{
|
|
288608
|
-
"fileName": "components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288609
|
-
"name": "Props"
|
|
288610
|
-
}
|
|
288611
|
-
],
|
|
288612
|
-
"required": true,
|
|
288613
|
-
"type": {
|
|
288614
|
-
"name": "Partial<RuleValidationResult>"
|
|
288615
|
-
}
|
|
288616
|
-
},
|
|
288617
|
-
"unspecifiedRules": {
|
|
288618
|
-
"defaultValue": null,
|
|
288619
|
-
"description": "",
|
|
288620
|
-
"name": "unspecifiedRules",
|
|
288621
|
-
"parent": {
|
|
288622
|
-
"fileName": "components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288623
|
-
"name": "Props"
|
|
288624
|
-
},
|
|
288625
|
-
"declarations": [
|
|
288626
|
-
{
|
|
288627
|
-
"fileName": "components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288628
|
-
"name": "Props"
|
|
288629
|
-
}
|
|
288630
|
-
],
|
|
288631
|
-
"required": false,
|
|
288632
|
-
"type": {
|
|
288633
|
-
"name": "boolean"
|
|
288634
|
-
}
|
|
288635
|
-
}
|
|
288636
|
-
}
|
|
288637
|
-
},
|
|
288638
288589
|
{
|
|
288639
288590
|
"tags": {},
|
|
288640
288591
|
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/PasswordCreationField/components/ValidationResultButton/ValidationResultButton.tsx",
|
|
@@ -288720,6 +288671,55 @@
|
|
|
288720
288671
|
}
|
|
288721
288672
|
}
|
|
288722
288673
|
},
|
|
288674
|
+
{
|
|
288675
|
+
"tags": {
|
|
288676
|
+
"internal": ""
|
|
288677
|
+
},
|
|
288678
|
+
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288679
|
+
"description": "",
|
|
288680
|
+
"displayName": "ValidationResultEntry",
|
|
288681
|
+
"methods": [],
|
|
288682
|
+
"props": {
|
|
288683
|
+
"result": {
|
|
288684
|
+
"defaultValue": null,
|
|
288685
|
+
"description": "",
|
|
288686
|
+
"name": "result",
|
|
288687
|
+
"parent": {
|
|
288688
|
+
"fileName": "components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288689
|
+
"name": "Props"
|
|
288690
|
+
},
|
|
288691
|
+
"declarations": [
|
|
288692
|
+
{
|
|
288693
|
+
"fileName": "components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288694
|
+
"name": "Props"
|
|
288695
|
+
}
|
|
288696
|
+
],
|
|
288697
|
+
"required": true,
|
|
288698
|
+
"type": {
|
|
288699
|
+
"name": "Partial<RuleValidationResult>"
|
|
288700
|
+
}
|
|
288701
|
+
},
|
|
288702
|
+
"unspecifiedRules": {
|
|
288703
|
+
"defaultValue": null,
|
|
288704
|
+
"description": "",
|
|
288705
|
+
"name": "unspecifiedRules",
|
|
288706
|
+
"parent": {
|
|
288707
|
+
"fileName": "components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288708
|
+
"name": "Props"
|
|
288709
|
+
},
|
|
288710
|
+
"declarations": [
|
|
288711
|
+
{
|
|
288712
|
+
"fileName": "components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.tsx",
|
|
288713
|
+
"name": "Props"
|
|
288714
|
+
}
|
|
288715
|
+
],
|
|
288716
|
+
"required": false,
|
|
288717
|
+
"type": {
|
|
288718
|
+
"name": "boolean"
|
|
288719
|
+
}
|
|
288720
|
+
}
|
|
288721
|
+
}
|
|
288722
|
+
},
|
|
288723
288723
|
{
|
|
288724
288724
|
"tags": {
|
|
288725
288725
|
"internal": ""
|
|
@@ -55,7 +55,7 @@ const Items = () => {
|
|
|
55
55
|
gridTemplateColumns: `repeat(auto-fill, minmax(${list.itemView.tileMaxWidth}px, 1fr))`
|
|
56
56
|
},
|
|
57
57
|
layout: list.viewMode === "tiles" ? "grid" : "stack",
|
|
58
|
-
children: isInitiallyLoading ? /* @__PURE__ */ jsx(FallbackItems, {}) : items
|
|
58
|
+
children: items.length === 0 && isInitiallyLoading ? /* @__PURE__ */ jsx(FallbackItems, {}) : items
|
|
59
59
|
}
|
|
60
60
|
) });
|
|
61
61
|
};
|
|
@@ -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 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 === \"tiles\";\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 style={{\n gridTemplateColumns: `repeat(auto-fill, minmax(${list.itemView.tileMaxWidth}px, 1fr))`,\n }}\n layout={list.viewMode === \"tiles\" ? \"grid\" : \"stack\"}\n >\n {isInitiallyLoading ? <FallbackItems /> : items}\n </ItemsGridListView>\n </DivView>\n );\n};\n\nexport default Items;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,QAAY,MAAM;AAC7B,EAAA,MAAM,OAAO,OAAQ,EAAA;AACrB,EAAM,MAAA,KAAA,GAAQ,KAAK,QAAa,KAAA,OAAA;AAChC,EAAM,MAAA,SAAA,GAAY,IAAK,CAAA,MAAA,CAAO,YAAa,EAAA;AAC3C,EAAM,MAAA,kBAAA,GAAqB,IAAK,CAAA,MAAA,CAAO,qBAAsB,EAAA;AAE7D,EAAI,IAAA,CAAC,KAAK,QAAU,EAAA;AAClB,IAAO,OAAA,IAAA;AAAA;AAGT,EAAA,MAAM,QAAQ,IAAK,CAAA,KAAA,CAAM,OAAQ,CAAA,GAAA,CAAI,CAAC,IACpC,qBAAA,GAAA,CAAC,IAAmB,EAAA,EAAA,IAAA,EAAM,KAAK,IAAM,EAAA,EAAA,EAAI,KAAK,EAAnC,EAAA,EAAA,IAAA,CAAK,EAAkC,CACnD,CAAA;AAED,EAAA,MAAM,aAAgB,GAAA,IAAA;AAAA,IACpB,MAAO,CAAA,KAAA;AAAA,IACP,aAAa,MAAO,CAAA,SAAA;AAAA,IACpB,SAAS,MAAO,CAAA;AAAA,GAClB;AAEA,EAAA,uBACG,GAAA,CAAA,OAAA,EAAA,EAAQ,aAAa,EAAA,kBAAA,EAAoB,aAAW,SACnD,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,iBAAA;AAAA,IAAA;AAAA,MACC,SAAW,EAAA,aAAA;AAAA,MACV,GAAG,IAAK,CAAA,cAAA;AAAA,MACT,gBAAA,EAAkB,sBAAM,GAAA,CAAC,SAAU,EAAA,EAAA,CAAA;AAAA,MACnC,KAAO,EAAA;AAAA,QACL,mBAAqB,EAAA,CAAA,yBAAA,EAA4B,IAAK,CAAA,QAAA,CAAS,YAAY,CAAA,SAAA;AAAA,OAC7E;AAAA,MACA,MAAQ,EAAA,IAAA,CAAK,QAAa,KAAA,OAAA,GAAU,MAAS,GAAA,OAAA;AAAA,MAE5C,
|
|
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 === \"tiles\";\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 style={{\n gridTemplateColumns: `repeat(auto-fill, minmax(${list.itemView.tileMaxWidth}px, 1fr))`,\n }}\n layout={list.viewMode === \"tiles\" ? \"grid\" : \"stack\"}\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,OAAQ,EAAA;AACrB,EAAM,MAAA,KAAA,GAAQ,KAAK,QAAa,KAAA,OAAA;AAChC,EAAM,MAAA,SAAA,GAAY,IAAK,CAAA,MAAA,CAAO,YAAa,EAAA;AAC3C,EAAM,MAAA,kBAAA,GAAqB,IAAK,CAAA,MAAA,CAAO,qBAAsB,EAAA;AAE7D,EAAI,IAAA,CAAC,KAAK,QAAU,EAAA;AAClB,IAAO,OAAA,IAAA;AAAA;AAGT,EAAA,MAAM,QAAQ,IAAK,CAAA,KAAA,CAAM,OAAQ,CAAA,GAAA,CAAI,CAAC,IACpC,qBAAA,GAAA,CAAC,IAAmB,EAAA,EAAA,IAAA,EAAM,KAAK,IAAM,EAAA,EAAA,EAAI,KAAK,EAAnC,EAAA,EAAA,IAAA,CAAK,EAAkC,CACnD,CAAA;AAED,EAAA,MAAM,aAAgB,GAAA,IAAA;AAAA,IACpB,MAAO,CAAA,KAAA;AAAA,IACP,aAAa,MAAO,CAAA,SAAA;AAAA,IACpB,SAAS,MAAO,CAAA;AAAA,GAClB;AAEA,EAAA,uBACG,GAAA,CAAA,OAAA,EAAA,EAAQ,aAAa,EAAA,kBAAA,EAAoB,aAAW,SACnD,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,iBAAA;AAAA,IAAA;AAAA,MACC,SAAW,EAAA,aAAA;AAAA,MACV,GAAG,IAAK,CAAA,cAAA;AAAA,MACT,gBAAA,EAAkB,sBAAM,GAAA,CAAC,SAAU,EAAA,EAAA,CAAA;AAAA,MACnC,KAAO,EAAA;AAAA,QACL,mBAAqB,EAAA,CAAA,yBAAA,EAA4B,IAAK,CAAA,QAAA,CAAS,YAAY,CAAA,SAAA;AAAA,OAC7E;AAAA,MACA,MAAQ,EAAA,IAAA,CAAK,QAAa,KAAA,OAAA,GAAU,MAAS,GAAA,OAAA;AAAA,MAE5C,gBAAM,MAAW,KAAA,CAAA,IAAK,kBAAqB,mBAAA,GAAA,CAAC,iBAAc,CAAK,GAAA;AAAA;AAAA,GAEpE,EAAA,CAAA;AAEJ;;;;"}
|
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.449",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@internationalized/string-compiler": "^3.2.6",
|
|
59
59
|
"@mittwald/password-tools-js": "3.0.0-alpha.18",
|
|
60
|
-
"@mittwald/react-tunnel": "0.2.0-alpha.
|
|
60
|
+
"@mittwald/react-tunnel": "0.2.0-alpha.449",
|
|
61
61
|
"@mittwald/react-use-promise": "^3.0.4",
|
|
62
62
|
"@react-aria/form": "^3.1.0",
|
|
63
63
|
"@react-aria/live-announcer": "^3.4.4",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@faker-js/faker": "^9.9.0",
|
|
100
100
|
"@internationalized/date": "^3.8.2",
|
|
101
101
|
"@mittwald/flow-core": "",
|
|
102
|
-
"@mittwald/flow-design-tokens": "0.2.0-alpha.
|
|
102
|
+
"@mittwald/flow-design-tokens": "0.2.0-alpha.449",
|
|
103
103
|
"@mittwald/react-use-promise": "^3.0.4",
|
|
104
104
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.3",
|
|
105
105
|
"@mittwald/typescript-config": "",
|
|
@@ -172,5 +172,5 @@
|
|
|
172
172
|
"optional": true
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
|
-
"gitHead": "
|
|
175
|
+
"gitHead": "416c3b7c36df3aa2fb5a1ff62aa577b48c11bf37"
|
|
176
176
|
}
|