@mittwald/flow-react-components 0.1.0-alpha.269 → 0.1.0-alpha.270

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/List.js CHANGED
@@ -3,7 +3,7 @@
3
3
  var je = Object.defineProperty;
4
4
  var We = (a, e, t) => e in a ? je(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
5
5
  var r = (a, e, t) => We(a, typeof e != "symbol" ? e + "" : e, t);
6
- import i, { createContext as Je, useContext as Ye, createElement as Se, useState as j, useEffect as B, useRef as _e, Suspense as Qe, cloneElement as Xe } from "react";
6
+ import i, { createContext as Je, useContext as Ye, createElement as Se, useState as j, useEffect as M, useRef as _e, Suspense as Qe, cloneElement as Xe } from "react";
7
7
  import "./propsContext-DzAKlmhS.js";
8
8
  import { P as be } from "./PropsContextProvider-C6Z4XGp6.js";
9
9
  import "@react-aria/utils";
@@ -13,7 +13,7 @@ import { B as w } from "./Button-DtpO7pbw.js";
13
13
  import { IconArrowBackUp as at } from "@tabler/icons-react";
14
14
  import { I as nt } from "./Icon-9pbeBcg1.js";
15
15
  import { I as rt } from "./IconContextMenu-TKPRhsln.js";
16
- import { a as N, C as W } from "./ContextMenuTrigger-DB1rWK0_.js";
16
+ import { a as x, C as W } from "./ContextMenuTrigger-DB1rWK0_.js";
17
17
  import { M as J } from "./MenuItem-C51yH30J.js";
18
18
  import { useLocalizedStringFormatter as y } from "react-aria";
19
19
  import { TunnelProvider as ve, TunnelExit as O } from "@mittwald/react-tunnel";
@@ -34,17 +34,17 @@ import { H as Y } from "./Heading-C7-PIEig.js";
34
34
  import { S as vt } from "./Section-CbYVO00-.js";
35
35
  import { getProperty as wt } from "dot-prop";
36
36
  import { hash as we } from "object-code";
37
- import k from "zod";
37
+ import V from "zod";
38
38
  import { useReactTable as yt, getCoreRowModel as Et, getSortedRowModel as Ft, getFilteredRowModel as Tt, getPaginationRowModel as Ct, getFacetedUniqueValues as It } from "@tanstack/react-table";
39
39
  import ye from "invariant";
40
40
  import { getAsyncResource as he } from "@mittwald/react-use-promise";
41
41
  import { u as ge } from "./useSelector-DpU7_HMO.js";
42
42
  import { u as Lt } from "./SettingsProvider-Ckj9VyMJ.js";
43
43
  import * as _ from "react-aria-components";
44
- import { S as D } from "./SkeletonText-B5ZghZhO.js";
44
+ import { S as B } from "./SkeletonText-B5ZghZhO.js";
45
45
  import { I as Pt } from "./IllustratedMessage-B3MHD01M.js";
46
46
  import { I as Vt } from "./IconSearch-CSaVgGtE.js";
47
- import { d as S, a as V } from "./deepFindOfType-6pG0fH7S.js";
47
+ import { d as S, a as P } from "./deepFindOfType-6pG0fH7S.js";
48
48
  import { ListLoaderAsyncResource as kt, TypedListLoaderAsyncResource as At } from "./List/ListLoaderAsyncResource.js";
49
49
  import { S as Mt } from "./Skeleton-CKLaTmDR.js";
50
50
  import { T as Ee, d as Fe, c as Te, a as Ce, e as Ie, b as Le } from "./TableRow-BsPgWqkU.js";
@@ -91,7 +91,7 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
91
91
  "list.sorting": "Sorting"
92
92
  } }, Ot = (a) => {
93
93
  const { className: e, children: t } = a, s = y(v);
94
- return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(
94
+ return /* @__PURE__ */ i.createElement(x, null, /* @__PURE__ */ i.createElement(
95
95
  w,
96
96
  {
97
97
  variant: "plain",
@@ -152,7 +152,7 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
152
152
  if (e.length === 0)
153
153
  return null;
154
154
  const t = a.visibleSorting.find((n) => n.isSorted()), s = /* @__PURE__ */ i.createElement(E, null, t ? /* @__PURE__ */ i.createElement(i.Fragment, null, t.name ?? t.property) : /* @__PURE__ */ i.createElement(H, { locales: v }, "list.sorting"));
155
- return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, s, /* @__PURE__ */ i.createElement(dt, null)), /* @__PURE__ */ i.createElement(
155
+ return /* @__PURE__ */ i.createElement(x, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, s, /* @__PURE__ */ i.createElement(dt, null)), /* @__PURE__ */ i.createElement(
156
156
  W,
157
157
  {
158
158
  selectionMode: "single",
@@ -175,7 +175,7 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
175
175
  },
176
176
  d.render()
177
177
  )), l = t.filter((d) => d.isActive).map((d) => d.id);
178
- return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, /* @__PURE__ */ i.createElement(E, null, n ?? o), /* @__PURE__ */ i.createElement(ut, null)), /* @__PURE__ */ i.createElement(
178
+ return /* @__PURE__ */ i.createElement(x, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, /* @__PURE__ */ i.createElement(E, null, n ?? o), /* @__PURE__ */ i.createElement(ut, null)), /* @__PURE__ */ i.createElement(
179
179
  W,
180
180
  {
181
181
  selectionMode: s === "one" ? "single" : "multiple",
@@ -247,7 +247,7 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
247
247
  });
248
248
  }, rs = () => {
249
249
  const a = y(v), e = g(), t = e.viewMode, s = [];
250
- return e.itemView && s.push("list"), e.table && s.push("table"), s.length <= 1 ? null : /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(
250
+ return e.itemView && s.push("list"), e.table && s.push("table"), s.length <= 1 ? null : /* @__PURE__ */ i.createElement(x, null, /* @__PURE__ */ i.createElement(
251
251
  w,
252
252
  {
253
253
  variant: "outline",
@@ -371,7 +371,7 @@ class pe {
371
371
  }
372
372
  }
373
373
  const gs = (a, e) => a === e, ps = (a) => String(a);
374
- class A {
374
+ class k {
375
375
  constructor(e, t) {
376
376
  r(this, "_values");
377
377
  r(this, "_valuesFromTableState");
@@ -393,8 +393,8 @@ class A {
393
393
  }
394
394
  getStoredDefaultSelectedValues() {
395
395
  var t;
396
- const e = (t = this.list.getStoredFilterDefaultSettings()) == null ? void 0 : t[this.property];
397
- return e ? this.values.filter((s) => e.includes(s.value)) : void 0;
396
+ const e = (t = this.list.getStoredFilterDefaultSettings()) == null ? void 0 : t[String(this.property)];
397
+ return e ? this.values.filter((s) => e.includes(s.id)) : void 0;
398
398
  }
399
399
  updateInitialState(e) {
400
400
  const t = this.getInitialValues();
@@ -493,7 +493,7 @@ class A {
493
493
  this.onFilterUpdateCallbacks.add(e);
494
494
  }
495
495
  }
496
- r(A, "settingsStorageSchema", k.record(k.array(k.unknown())).optional());
496
+ r(k, "settingsStorageSchema", V.record(V.array(V.unknown())).optional());
497
497
  class fs {
498
498
  constructor(e, t) {
499
499
  r(this, "list");
@@ -575,7 +575,7 @@ class Q {
575
575
  globalFilterFn: "auto",
576
576
  ...t
577
577
  });
578
- return B(() => {
578
+ return M(() => {
579
579
  e && e(this.list);
580
580
  }, [this.list, e, o]), o;
581
581
  }
@@ -697,7 +697,7 @@ class Z {
697
697
  }), this.useObserveBatchData(t, e), this.useObserveBatchLoadingState(t, e);
698
698
  }
699
699
  useObserveBatchLoadingState(e, t) {
700
- B(() => (this.loaderState.setBatchLoadingState(
700
+ M(() => (this.loaderState.setBatchLoadingState(
701
701
  t,
702
702
  e.state.value
703
703
  ), e.state.observe((s) => {
@@ -709,7 +709,7 @@ class Z {
709
709
  const { data: o, itemTotalCount: c } = n;
710
710
  this.loaderState.setDataBatch(t, o), c !== void 0 && this.list.batches.updateItemTotalCount(c);
711
711
  };
712
- B(() => (e.value.value.isSet && s(e.value.value.value), e.value.observe((n) => {
712
+ M(() => (e.value.value.isSet && s(e.value.value.value), e.value.observe((n) => {
713
713
  n.isSet && s(n.value);
714
714
  })), [e, t]);
715
715
  }
@@ -788,7 +788,7 @@ class bs {
788
788
  this.onUpdateCallbacks.add(e);
789
789
  }
790
790
  }
791
- const x = class x {
791
+ const D = class D {
792
792
  constructor(e, t = {}) {
793
793
  r(this, "list");
794
794
  r(this, "textValue");
@@ -799,11 +799,11 @@ const x = class x {
799
799
  this.list = e, this.textValue = n, this.renderFn = c, this.href = o, this.fallback = s;
800
800
  }
801
801
  render(e) {
802
- return (this.renderFn ?? x.fallbackRenderItemFn)(e, this.list);
802
+ return (this.renderFn ?? D.fallbackRenderItemFn)(e, this.list);
803
803
  }
804
804
  };
805
- r(x, "fallbackRenderItemFn", (e) => Se("pre", void 0, JSON.stringify(e)));
806
- let q = x, vs = class {
805
+ r(D, "fallbackRenderItemFn", (e) => Se("pre", void 0, JSON.stringify(e)));
806
+ let q = D, vs = class {
807
807
  constructor(e, t = {}) {
808
808
  r(this, "tableHeader");
809
809
  r(this, "componentProps");
@@ -868,7 +868,7 @@ let Cs = (b = class {
868
868
  r(this, "componentProps");
869
869
  r(this, "viewMode");
870
870
  r(this, "setViewMode");
871
- r(this, "defaultSettings");
871
+ r(this, "settingsStore");
872
872
  r(this, "supportsSettingsStorage");
873
873
  r(this, "settingStorageKey");
874
874
  r(this, "viewModeStorageKey");
@@ -884,26 +884,26 @@ let Cs = (b = class {
884
884
  loader: u,
885
885
  search: h,
886
886
  onAction: C,
887
- getItemId: R,
887
+ getItemId: N,
888
888
  defaultViewMode: L,
889
- ...$
889
+ ...R
890
890
  } = e;
891
- this.defaultSettings = Lt(), this.settingStorageKey = t, this.filterSettingsStorageKey = t ? `${t}.activeFilters` : void 0, this.viewModeStorageKey = t ? `${t}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new us(this), this.filters = o.map((p) => new A(this, p)), this.sorting = c.map((p) => new fs(this, p)), this.search = h ? new bs(this, h) : void 0, this.itemView = s ? new q(this, s) : void 0, this.table = n ? new Ts(this, n) : void 0, this.batches = new ms(this, l), this.componentProps = $, this.loader = Z.useNew(this, u), this.onAction = C, this.getItemId = R, this.reactTable = Q.useNew(this, d, {
891
+ this.settingsStore = Lt(), this.settingStorageKey = t, this.filterSettingsStorageKey = t ? `${t}.activeFilters` : void 0, this.viewModeStorageKey = t ? `${t}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new us(this), this.filters = o.map((p) => new k(this, p)), this.sorting = c.map((p) => new fs(this, p)), this.search = h ? new bs(this, h) : void 0, this.itemView = s ? new q(this, s) : void 0, this.table = n ? new Ts(this, n) : void 0, this.batches = new ms(this, l), this.componentProps = R, this.loader = Z.useNew(this, u), this.onAction = C, this.getItemId = N, this.reactTable = Q.useNew(this, d, {
892
892
  manualFiltering: this.loader.manualFiltering,
893
893
  manualPagination: this.loader.manualPagination,
894
894
  manualSorting: this.loader.manualSorting
895
895
  });
896
- const [z, U] = j(
896
+ const [$, z] = j(
897
897
  L ?? this.getStoredViewModeDefaultSetting() ?? "list"
898
898
  );
899
- this.viewMode = z, this.setViewMode = (p) => {
900
- U(p), this.defaultSettings && this.viewModeStorageKey && this.defaultSettings.set(
899
+ this.viewMode = $, this.setViewMode = (p) => {
900
+ z(p), this.settingsStore && this.viewModeStorageKey && this.settingsStore.set(
901
901
  "List",
902
902
  this.viewModeStorageKey,
903
903
  b.viewModeSettingsStorageSchema,
904
904
  p
905
905
  );
906
- }, B(() => {
906
+ }, M(() => {
907
907
  this.filters.forEach((p) => p.deleteUnknownFilterValues());
908
908
  }, [this.filters]);
909
909
  }
@@ -917,32 +917,32 @@ let Cs = (b = class {
917
917
  return new b(e);
918
918
  }
919
919
  storeFilterDefaultSettings() {
920
- if (this.defaultSettings && this.filterSettingsStorageKey) {
920
+ if (this.settingsStore && this.filterSettingsStorageKey) {
921
921
  const e = Object.fromEntries(
922
922
  this.filters.map((t) => [
923
923
  t.property,
924
- t.getArrayValue().filter((s) => s.isActive).map((s) => s.value)
924
+ t.getArrayValue().filter((s) => s.isActive).map((s) => s.id)
925
925
  ])
926
926
  );
927
- this.defaultSettings.set(
927
+ this.settingsStore.set(
928
928
  "List",
929
929
  this.filterSettingsStorageKey,
930
- A.settingsStorageSchema,
930
+ k.settingsStorageSchema,
931
931
  e
932
932
  );
933
933
  }
934
934
  }
935
935
  getStoredFilterDefaultSettings() {
936
- if (this.defaultSettings && this.filterSettingsStorageKey)
937
- return this.defaultSettings.get(
936
+ if (this.settingsStore && this.filterSettingsStorageKey)
937
+ return this.settingsStore.get(
938
938
  "List",
939
939
  this.filterSettingsStorageKey,
940
- A.settingsStorageSchema
940
+ k.settingsStorageSchema
941
941
  );
942
942
  }
943
943
  getStoredViewModeDefaultSetting() {
944
- if (this.defaultSettings && this.viewModeStorageKey)
945
- return this.defaultSettings.get(
944
+ if (this.settingsStore && this.viewModeStorageKey)
945
+ return this.settingsStore.get(
946
946
  "List",
947
947
  this.viewModeStorageKey,
948
948
  b.viewModeSettingsStorageSchema
@@ -961,15 +961,15 @@ let Cs = (b = class {
961
961
  useIsEmpty() {
962
962
  return !this.loader.useIsLoading() && this.items.entries.length === 0;
963
963
  }
964
- }, r(b, "viewModeSettingsStorageSchema", k.enum(["list", "table"]).optional()), b);
964
+ }, r(b, "viewModeSettingsStorageSchema", V.enum(["list", "table"]).optional()), b);
965
965
  const Is = "flow--list--items", Ls = "flow--list--items--is-loading", fe = {
966
966
  items: Is,
967
967
  isLoading: Ls
968
- }, Ps = "flow--list--items--item", Vs = "flow--list--items--item--is-selected", ks = "flow--list--items--item--has-action", M = {
968
+ }, Ps = "flow--list--items--item", Vs = "flow--list--items--item--is-selected", ks = "flow--list--items--item--has-action", A = {
969
969
  item: Ps,
970
970
  isSelected: Vs,
971
971
  hasAction: ks
972
- }, Ae = () => /* @__PURE__ */ i.createElement(Pe, null, /* @__PURE__ */ i.createElement(Y, null, /* @__PURE__ */ i.createElement(D, { width: "200px" })), /* @__PURE__ */ i.createElement(E, null, /* @__PURE__ */ i.createElement(D, { width: "300px" }))), As = (a) => {
972
+ }, Ae = () => /* @__PURE__ */ i.createElement(Pe, null, /* @__PURE__ */ i.createElement(Y, null, /* @__PURE__ */ i.createElement(B, { width: "200px" })), /* @__PURE__ */ i.createElement(E, null, /* @__PURE__ */ i.createElement(B, { width: "300px" }))), As = (a) => {
973
973
  const { id: e, data: t, children: s } = a, o = g().itemView;
974
974
  if (!o)
975
975
  return null;
@@ -979,9 +979,9 @@ const Is = "flow--list--items", Ls = "flow--list--items--is-loading", fe = {
979
979
  {
980
980
  id: e,
981
981
  className: (h) => T(
982
- M.item,
983
- u && M.hasAction,
984
- h.isSelected && M.isSelected
982
+ A.item,
983
+ u && A.hasAction,
984
+ h.isSelected && A.isSelected
985
985
  ),
986
986
  onAction: () => c && c(t),
987
987
  textValue: l,
@@ -989,7 +989,7 @@ const Is = "flow--list--items", Ls = "flow--list--items--is-loading", fe = {
989
989
  },
990
990
  /* @__PURE__ */ i.createElement(Qe, { fallback: /* @__PURE__ */ i.createElement(Ae, null) }, s ?? o.render(t))
991
991
  );
992
- }, Ms = (a) => /* @__PURE__ */ i.createElement(_.GridListItem, { textValue: "-", className: M.item }, a.children), G = () => {
992
+ }, Ms = (a) => /* @__PURE__ */ i.createElement(_.GridListItem, { textValue: "-", className: A.item }, a.children), G = () => {
993
993
  const a = y(v);
994
994
  return /* @__PURE__ */ i.createElement(Pt, null, /* @__PURE__ */ i.createElement(Vt, null), /* @__PURE__ */ i.createElement(Y, null, a.format("list.noResult.heading")), /* @__PURE__ */ i.createElement(E, null, a.format("list.noResult.text")));
995
995
  }, Bs = () => {
@@ -1039,7 +1039,7 @@ const Is = "flow--list--items", Ls = "flow--list--items--is-loading", fe = {
1039
1039
  function Re(a) {
1040
1040
  return null;
1041
1041
  }
1042
- const Gs = () => Re, $e = (a) => null, ze = (a) => null, Ue = (a) => null, js = (a) => /* @__PURE__ */ i.createElement(Ee, { ...a }, /* @__PURE__ */ i.createElement(Fe, null, /* @__PURE__ */ i.createElement(Te, null, /* @__PURE__ */ i.createElement(D, { width: "100%" }))), /* @__PURE__ */ i.createElement(Ce, null, Array.from(Array(5)).map((e, t) => /* @__PURE__ */ i.createElement(Ie, { key: t }, /* @__PURE__ */ i.createElement(Le, null, /* @__PURE__ */ i.createElement(D, { width: "100%" })))))), Ws = "flow--list--table", Js = "flow--list--table--is-loading", Ys = "flow--list--table--row", _s = "flow--list--table--is-selected", Qs = "flow--list--table--has-action", I = {
1042
+ const Gs = () => Re, $e = (a) => null, ze = (a) => null, Ue = (a) => null, js = (a) => /* @__PURE__ */ i.createElement(Ee, { ...a }, /* @__PURE__ */ i.createElement(Fe, null, /* @__PURE__ */ i.createElement(Te, null, /* @__PURE__ */ i.createElement(B, { width: "100%" }))), /* @__PURE__ */ i.createElement(Ce, null, Array.from(Array(5)).map((e, t) => /* @__PURE__ */ i.createElement(Ie, { key: t }, /* @__PURE__ */ i.createElement(Le, null, /* @__PURE__ */ i.createElement(B, { width: "100%" })))))), Ws = "flow--list--table", Js = "flow--list--table--is-loading", Ys = "flow--list--table--row", _s = "flow--list--table--is-selected", Qs = "flow--list--table--has-action", I = {
1043
1043
  table: Ws,
1044
1044
  isLoading: Js,
1045
1045
  row: Ys,
@@ -1111,20 +1111,20 @@ const Gs = () => Re, $e = (a) => null, ze = (a) => null, Ue = (a) => null, js =
1111
1111
  } : d ? {
1112
1112
  staticData: d.data
1113
1113
  } : void 0
1114
- }, h = (ie = S(e, Re)) == null ? void 0 : ie.props, C = (ae = S(e, xe)) == null ? void 0 : ae.props, R = (ne = S(e, Ke)) == null ? void 0 : ne.props, L = V(e, $e).map(
1114
+ }, h = (ie = S(e, Re)) == null ? void 0 : ie.props, C = (ae = S(e, xe)) == null ? void 0 : ae.props, N = (ne = S(e, Ke)) == null ? void 0 : ne.props, L = P(e, $e).map(
1115
1115
  (f) => ({
1116
1116
  ...f.props,
1117
1117
  name: f.props.children
1118
1118
  })
1119
- ), $ = V(e, Ue).map(
1119
+ ), R = P(e, Ue).map(
1120
1120
  (f) => ({
1121
1121
  ...f.props,
1122
1122
  renderFn: f.props.children
1123
1123
  })
1124
- ), z = (re = S(e, ze)) == null ? void 0 : re.props, U = (oe = S(e, Oe)) == null ? void 0 : oe.props, p = (le = S(e, He)) == null ? void 0 : le.props, P = Cs.useNew({
1124
+ ), $ = (re = S(e, ze)) == null ? void 0 : re.props, z = (oe = S(e, Oe)) == null ? void 0 : oe.props, p = (le = S(e, He)) == null ? void 0 : le.props, U = Cs.useNew({
1125
1125
  onChange: s,
1126
1126
  loader: u,
1127
- filters: V(e, Be).map(
1127
+ filters: P(e, Be).map(
1128
1128
  (f) => ({
1129
1129
  ...f.props,
1130
1130
  renderItem: f.props.children
@@ -1135,24 +1135,24 @@ const Gs = () => Re, $e = (a) => null, ze = (a) => null, Ue = (a) => null, js =
1135
1135
  textFieldProps: h,
1136
1136
  defaultValue: h.defaultValue
1137
1137
  } : void 0,
1138
- sorting: V(e, De).map((f) => f.props),
1138
+ sorting: P(e, De).map((f) => f.props),
1139
1139
  itemView: C ? {
1140
1140
  ...C,
1141
1141
  renderFn: C.children
1142
1142
  } : void 0,
1143
1143
  table: L.length > 0 ? {
1144
1144
  header: {
1145
- ...U,
1145
+ ...z,
1146
1146
  columns: L
1147
1147
  },
1148
1148
  body: {
1149
1149
  ...p,
1150
1150
  row: {
1151
- ...z,
1152
- cells: $
1151
+ ...$,
1152
+ cells: R
1153
1153
  }
1154
1154
  },
1155
- ...R
1155
+ ...N
1156
1156
  } : void 0,
1157
1157
  batchesController: {
1158
1158
  batchSize: t
@@ -1165,15 +1165,15 @@ const Gs = () => Re, $e = (a) => null, ze = (a) => null, Ue = (a) => null, js =
1165
1165
  ignoreBreakpoint: !0
1166
1166
  }
1167
1167
  }, Ge = !!S(e, Bt);
1168
- return console.log(P), /* @__PURE__ */ i.createElement(be, { props: qe }, /* @__PURE__ */ i.createElement(ve, null, /* @__PURE__ */ i.createElement(
1168
+ return /* @__PURE__ */ i.createElement(be, { props: qe }, /* @__PURE__ */ i.createElement(ve, null, /* @__PURE__ */ i.createElement(
1169
1169
  Ve.Provider,
1170
1170
  {
1171
1171
  value: {
1172
- list: P
1172
+ list: U
1173
1173
  }
1174
1174
  },
1175
1175
  /* @__PURE__ */ i.createElement(qt, null),
1176
- /* @__PURE__ */ i.createElement("div", { className: cs.list, ref: n }, e, /* @__PURE__ */ i.createElement(os, { hasActionGroup: Ge }), P.viewMode === "list" && /* @__PURE__ */ i.createElement(Ds, null), P.viewMode === "table" && /* @__PURE__ */ i.createElement(Xs, null), /* @__PURE__ */ i.createElement(qs, null))
1176
+ /* @__PURE__ */ i.createElement("div", { className: cs.list, ref: n }, e, /* @__PURE__ */ i.createElement(os, { hasActionGroup: Ge }), U.viewMode === "list" && /* @__PURE__ */ i.createElement(Ds, null), U.viewMode === "table" && /* @__PURE__ */ i.createElement(Xs, null), /* @__PURE__ */ i.createElement(qs, null))
1177
1177
  )));
1178
1178
  }), ei = () => Zs, Zi = () => ({
1179
1179
  List: ei(),
@@ -24,7 +24,7 @@ export declare class List<T> {
24
24
  readonly componentProps: ListSupportedComponentProps;
25
25
  viewMode: ListViewMode;
26
26
  readonly setViewMode: (viewMode: ListViewMode) => void;
27
- private readonly defaultSettings?;
27
+ private readonly settingsStore?;
28
28
  readonly supportsSettingsStorage: boolean;
29
29
  readonly settingStorageKey?: string;
30
30
  private readonly viewModeStorageKey?;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.269",
3
+ "version": "0.1.0-alpha.270",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -313,7 +313,7 @@
313
313
  "@chakra-ui/live-region": "^2.1.0",
314
314
  "@internationalized/date": "^3.5.5",
315
315
  "@internationalized/string-compiler": "^3.2.4",
316
- "@mittwald/react-tunnel": "^0.1.0-alpha.269",
316
+ "@mittwald/react-tunnel": "^0.1.0-alpha.270",
317
317
  "@mittwald/react-use-promise": "^2.5.0",
318
318
  "@react-aria/utils": "^3.25.2",
319
319
  "@react-types/shared": "^3.24.1",
@@ -340,7 +340,7 @@
340
340
  },
341
341
  "devDependencies": {
342
342
  "@faker-js/faker": "^9.0.1",
343
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.269",
343
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.270",
344
344
  "@mittwald/react-use-promise": "^2.5.0",
345
345
  "@nx/storybook": "^19.7.4",
346
346
  "@storybook/addon-a11y": "^8.3.2",
@@ -418,5 +418,5 @@
418
418
  "optional": true
419
419
  }
420
420
  },
421
- "gitHead": "8d03e46872a3c811a5a8162aa8ab768539ee1801"
421
+ "gitHead": "9f10ff23bb728dce3cc617e7e0f6782f493eddff"
422
422
  }