@mittwald/flow-react-components 0.1.0-alpha.46 → 0.1.0-alpha.47
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/CopyButton.js +1 -1
- package/dist/Header.js +10 -11
- package/dist/LayoutCard.js +13 -14
- package/dist/List.js +69 -70
- package/dist/Navigation.js +23 -26
- package/dist/RadioGroup.js +20 -21
- package/dist/Section.js +14 -15
- package/dist/Tooltip-Co5h9sSt.js +16 -0
- package/dist/Tooltip.js +1 -1
- package/package.json +2 -2
- package/dist/Tooltip-Dbiu1cXX.js +0 -20
package/dist/CopyButton.js
CHANGED
|
@@ -12,7 +12,7 @@ import "./propsContext-Dx7WKmmM.js";
|
|
|
12
12
|
import { u as l } from "./useProps-4x7PxhiE.js";
|
|
13
13
|
import { I as c } from "./IconCopy-Bpp37OMK.js";
|
|
14
14
|
import { useLocalizedStringFormatter as s } from "react-aria";
|
|
15
|
-
import { T as u } from "./Tooltip-
|
|
15
|
+
import { T as u } from "./Tooltip-Co5h9sSt.js";
|
|
16
16
|
import { T as y } from "./TooltipTrigger-7-ynWHZ9.js";
|
|
17
17
|
import { onlyText as f } from "react-children-utilities";
|
|
18
18
|
const B = {
|
package/dist/Header.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import { C as n } from "./ClearPropsContext-CD1-9TZA.js";
|
|
3
|
+
import m from "react";
|
|
5
4
|
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
5
|
+
import { u as n } from "./useProps-4x7PxhiE.js";
|
|
6
|
+
const d = (e) => {
|
|
8
7
|
const {
|
|
9
|
-
children:
|
|
10
|
-
elementType:
|
|
11
|
-
...
|
|
12
|
-
} =
|
|
13
|
-
return /* @__PURE__ */
|
|
8
|
+
children: r,
|
|
9
|
+
elementType: t = "header",
|
|
10
|
+
...o
|
|
11
|
+
} = n("Header", e), a = t;
|
|
12
|
+
return /* @__PURE__ */ m.createElement(a, { ...o }, r);
|
|
14
13
|
};
|
|
15
14
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
d as Header,
|
|
16
|
+
d as default
|
|
18
17
|
};
|
package/dist/LayoutCard.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
4
|
-
import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
|
|
3
|
+
import c from "react";
|
|
5
4
|
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
layoutCard:
|
|
10
|
-
},
|
|
5
|
+
import { u as m } from "./useProps-4x7PxhiE.js";
|
|
6
|
+
import n from "clsx";
|
|
7
|
+
const u = "flow--layout-card", d = {
|
|
8
|
+
layoutCard: u
|
|
9
|
+
}, f = (t) => {
|
|
11
10
|
const {
|
|
12
|
-
children:
|
|
11
|
+
children: o,
|
|
13
12
|
className: a,
|
|
14
|
-
elementType:
|
|
15
|
-
...
|
|
16
|
-
} =
|
|
17
|
-
return /* @__PURE__ */
|
|
13
|
+
elementType: e = "div",
|
|
14
|
+
...r
|
|
15
|
+
} = m("LayoutCard", t), s = n(d.layoutCard, a), l = e;
|
|
16
|
+
return /* @__PURE__ */ c.createElement(l, { className: s, ...r }, o);
|
|
18
17
|
};
|
|
19
18
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
f as LayoutCard,
|
|
20
|
+
f as default
|
|
22
21
|
};
|
package/dist/List.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
var V = Object.defineProperty;
|
|
4
|
-
var
|
|
5
|
-
var n = (i, t, e) => (
|
|
6
|
-
import r, { createContext as
|
|
4
|
+
var B = (i, t, e) => t in i ? V(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
5
|
+
var n = (i, t, e) => (B(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
6
|
+
import r, { createContext as U, useContext as $, Suspense as D, createElement as x, useMemo as O, useEffect as I, isValidElement as H } from "react";
|
|
7
7
|
import { useMessageFormatter as j, useLocalizedStringFormatter as q } from "react-aria";
|
|
8
8
|
import { T as J } from "./Text-BAkan-um.js";
|
|
9
9
|
import { B as b } from "./Button-IRdeGCc6.js";
|
|
@@ -25,11 +25,10 @@ import { getAsyncResource as T } from "@mittwald/react-use-promise";
|
|
|
25
25
|
import { deepFind as st, deepForEach as nt } from "react-children-utilities";
|
|
26
26
|
import { I as rt } from "./InlineCode-DZzyKdCm.js";
|
|
27
27
|
import { ListLoaderAsyncResource as ot } from "./List/ListLoaderAsyncResource.js";
|
|
28
|
-
|
|
29
|
-
const M = B({}), g = () => U(M).list, ct = (i) => /* @__PURE__ */ r.createElement(r.Fragment, null, i.children()), ut = (i) => {
|
|
28
|
+
const M = U({}), g = () => $(M).list, lt = (i) => /* @__PURE__ */ r.createElement(r.Fragment, null, i.children()), ct = (i) => {
|
|
30
29
|
const { pageIndex: t } = i;
|
|
31
30
|
return g().loader.useSuspenseHook(t), null;
|
|
32
|
-
},
|
|
31
|
+
}, ut = () => g().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ r.createElement(D, { key: e, fallback: /* @__PURE__ */ r.createElement(ct, { pageIndex: e }) }, /* @__PURE__ */ r.createElement(lt, null, () => {
|
|
33
32
|
t();
|
|
34
33
|
}))), A = {
|
|
35
34
|
"de-DE": {
|
|
@@ -42,7 +41,7 @@ const M = B({}), g = () => U(M).list, ct = (i) => /* @__PURE__ */ r.createElemen
|
|
|
42
41
|
paginationInfoFiltered: "Showing {visibleItemsCount} of {filteredItemsCount} (unfiltered total count {totalItemsCount})",
|
|
43
42
|
showMore: "Show more"
|
|
44
43
|
}
|
|
45
|
-
},
|
|
44
|
+
}, gt = (i) => {
|
|
46
45
|
const t = j(A), e = g(), a = e.pagination, s = e.isFiltered() && !e.loader.manualFiltering, o = a.getTotalItemsCount(), c = a.getFilteredItemsCount(), l = a.getVisibleItemsCount();
|
|
47
46
|
if (o === 0)
|
|
48
47
|
return null;
|
|
@@ -55,8 +54,8 @@ const M = B({}), g = () => U(M).list, ct = (i) => /* @__PURE__ */ r.createElemen
|
|
|
55
54
|
totalItemsCount: o
|
|
56
55
|
});
|
|
57
56
|
return /* @__PURE__ */ r.createElement(J, { ...i }, h);
|
|
58
|
-
},
|
|
59
|
-
const { sorting: t } = i, e = t.direction, a = e === "asc" ? G : e === "desc" ? Q :
|
|
57
|
+
}, mt = () => null, dt = (i) => {
|
|
58
|
+
const { sorting: t } = i, e = t.direction, a = e === "asc" ? G : e === "desc" ? Q : mt, s = e !== !1;
|
|
60
59
|
return /* @__PURE__ */ r.createElement(
|
|
61
60
|
b,
|
|
62
61
|
{
|
|
@@ -66,16 +65,16 @@ const M = B({}), g = () => U(M).list, ct = (i) => /* @__PURE__ */ r.createElemen
|
|
|
66
65
|
t.getTableColumn().id,
|
|
67
66
|
/* @__PURE__ */ r.createElement(a, { size: "s" })
|
|
68
67
|
);
|
|
69
|
-
},
|
|
70
|
-
sortingPicker:
|
|
71
|
-
items:
|
|
72
|
-
},
|
|
73
|
-
const { sorting: i } = g(), t = i.map((e) => /* @__PURE__ */ r.createElement(
|
|
68
|
+
}, pt = "flow--list--filter-bar--sorting-picker", ht = "flow--list--filter-bar--sorting-picker--items", E = {
|
|
69
|
+
sortingPicker: pt,
|
|
70
|
+
items: ht
|
|
71
|
+
}, ft = () => {
|
|
72
|
+
const { sorting: i } = g(), t = i.map((e) => /* @__PURE__ */ r.createElement(dt, { sorting: e, key: e.getTableColumn().id }));
|
|
74
73
|
return /* @__PURE__ */ r.createElement("div", { className: E.sortingPicker }, /* @__PURE__ */ r.createElement("div", { className: E.items }, t));
|
|
75
|
-
},
|
|
76
|
-
filterPickerItem:
|
|
77
|
-
items:
|
|
78
|
-
},
|
|
74
|
+
}, St = "flow--list--filter-bar--filter-picker-item", bt = "flow--list--filter-bar--filter-picker-item--items", L = {
|
|
75
|
+
filterPickerItem: St,
|
|
76
|
+
items: bt
|
|
77
|
+
}, yt = (i) => {
|
|
79
78
|
const { filter: t } = i, a = t.values.map((s) => /* @__PURE__ */ r.createElement(
|
|
80
79
|
b,
|
|
81
80
|
{
|
|
@@ -86,20 +85,20 @@ const M = B({}), g = () => U(M).list, ct = (i) => /* @__PURE__ */ r.createElemen
|
|
|
86
85
|
String(s)
|
|
87
86
|
));
|
|
88
87
|
return /* @__PURE__ */ r.createElement("div", { className: L.filterPickerItem }, /* @__PURE__ */ r.createElement(W, null, t.property), /* @__PURE__ */ r.createElement("div", { className: L.items }, a));
|
|
89
|
-
}, vt = () => g().filters.map((t) => /* @__PURE__ */ r.createElement(
|
|
88
|
+
}, vt = () => g().filters.map((t) => /* @__PURE__ */ r.createElement(yt, { key: t.property, filter: t })), wt = "flow--list--filter-bar", Pt = {
|
|
90
89
|
filterBar: wt
|
|
91
90
|
}, Ft = (i) => {
|
|
92
91
|
const { className: t } = i;
|
|
93
|
-
return /* @__PURE__ */ r.createElement("div", { className: R(t,
|
|
94
|
-
},
|
|
95
|
-
list:
|
|
96
|
-
filterBar:
|
|
97
|
-
items:
|
|
98
|
-
paginationInfos:
|
|
99
|
-
showMoreButton:
|
|
92
|
+
return /* @__PURE__ */ r.createElement("div", { className: R(t, Pt.filterBar) }, /* @__PURE__ */ r.createElement(ft, null), /* @__PURE__ */ r.createElement(vt, null));
|
|
93
|
+
}, Ct = "flow--list", It = "flow--list--filter-bar", Tt = "flow--list--items", Et = "flow--list--pagination-infos", Lt = "flow--list--show-more-button", d = {
|
|
94
|
+
list: Ct,
|
|
95
|
+
filterBar: It,
|
|
96
|
+
items: Tt,
|
|
97
|
+
paginationInfos: Et,
|
|
98
|
+
showMoreButton: Lt
|
|
100
99
|
};
|
|
101
100
|
var u;
|
|
102
|
-
let
|
|
101
|
+
let kt = (u = class {
|
|
103
102
|
constructor(t, e, a) {
|
|
104
103
|
n(this, "id");
|
|
105
104
|
n(this, "data");
|
|
@@ -112,7 +111,7 @@ let Dt = (u = class {
|
|
|
112
111
|
static fromRow(t, e) {
|
|
113
112
|
return new u(t, e.id, e.original);
|
|
114
113
|
}
|
|
115
|
-
}, n(u, "fallbackRenderItemFn", (t) =>
|
|
114
|
+
}, n(u, "fallbackRenderItemFn", (t) => x("pre", void 0, JSON.stringify(t))), u);
|
|
116
115
|
class y {
|
|
117
116
|
constructor(t) {
|
|
118
117
|
n(this, "list");
|
|
@@ -122,10 +121,10 @@ class y {
|
|
|
122
121
|
return new y(t);
|
|
123
122
|
}
|
|
124
123
|
get entries() {
|
|
125
|
-
return this.list.reactTable.table.getRowModel().rows.map((t) =>
|
|
124
|
+
return this.list.reactTable.table.getRowModel().rows.map((t) => kt.fromRow(this, t));
|
|
126
125
|
}
|
|
127
126
|
}
|
|
128
|
-
class
|
|
127
|
+
class Dt {
|
|
129
128
|
constructor(t, e = {}) {
|
|
130
129
|
n(this, "list");
|
|
131
130
|
n(this, "initialPageSize");
|
|
@@ -166,8 +165,8 @@ class Rt {
|
|
|
166
165
|
}));
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
|
-
const
|
|
170
|
-
class
|
|
168
|
+
const Rt = (i, t) => i === t;
|
|
169
|
+
class Mt {
|
|
171
170
|
constructor(t, e) {
|
|
172
171
|
n(this, "_values");
|
|
173
172
|
n(this, "list");
|
|
@@ -175,7 +174,7 @@ class At {
|
|
|
175
174
|
n(this, "mode");
|
|
176
175
|
n(this, "matcher");
|
|
177
176
|
n(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
|
|
178
|
-
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = e.values, this.matcher = e.matcher ??
|
|
177
|
+
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = e.values, this.matcher = e.matcher ?? Rt;
|
|
179
178
|
}
|
|
180
179
|
updateTableColumnDef(t) {
|
|
181
180
|
t.enableColumnFilter = !0, t.filterFn = this.getReactTableFilterFn();
|
|
@@ -234,7 +233,7 @@ class At {
|
|
|
234
233
|
this.onFilterUpdateCallbacks.add(t);
|
|
235
234
|
}
|
|
236
235
|
}
|
|
237
|
-
class
|
|
236
|
+
class At {
|
|
238
237
|
constructor(t, e) {
|
|
239
238
|
n(this, "list");
|
|
240
239
|
n(this, "property");
|
|
@@ -250,7 +249,7 @@ class Nt {
|
|
|
250
249
|
return this.list.reactTable.getTableColumn(this.property);
|
|
251
250
|
}
|
|
252
251
|
}
|
|
253
|
-
class
|
|
252
|
+
class v {
|
|
254
253
|
constructor(t, e = {}) {
|
|
255
254
|
n(this, "list");
|
|
256
255
|
n(this, "table");
|
|
@@ -265,7 +264,7 @@ class P {
|
|
|
265
264
|
this.list = t, this.tableState = f(void 0), this.table = this.useReactTable(e);
|
|
266
265
|
}
|
|
267
266
|
static useNew(t, e = {}) {
|
|
268
|
-
return new
|
|
267
|
+
return new v(t, e);
|
|
269
268
|
}
|
|
270
269
|
useReactTable(t = {}) {
|
|
271
270
|
const e = this.list.loader.useData(), a = Y({
|
|
@@ -321,8 +320,8 @@ class P {
|
|
|
321
320
|
), Array.from(t.values());
|
|
322
321
|
}
|
|
323
322
|
}
|
|
324
|
-
const
|
|
325
|
-
class
|
|
323
|
+
const Nt = [];
|
|
324
|
+
class zt {
|
|
326
325
|
constructor(t, e = {}) {
|
|
327
326
|
n(this, "list");
|
|
328
327
|
n(this, "dataSource");
|
|
@@ -332,7 +331,7 @@ class Vt {
|
|
|
332
331
|
n(this, "manualFiltering");
|
|
333
332
|
n(this, "manualPagination");
|
|
334
333
|
const { source: a } = e;
|
|
335
|
-
this.dataSource = a ?? { staticData:
|
|
334
|
+
this.dataSource = a ?? { staticData: Nt };
|
|
336
335
|
const s = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, o = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, c = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
|
|
337
336
|
this.list = t, this.pagesDataSignal = f({}), this.pagesLoadingStateSignal = f({}), this.manualPagination = s ?? !1, this.manualFiltering = o ?? this.manualPagination, this.manualSorting = c ?? this.manualPagination, this.list.filters.forEach((l) => l.onFilterUpdated(() => this.reset()));
|
|
338
337
|
}
|
|
@@ -428,7 +427,7 @@ class Vt {
|
|
|
428
427
|
);
|
|
429
428
|
}
|
|
430
429
|
}
|
|
431
|
-
let
|
|
430
|
+
let Vt = class N {
|
|
432
431
|
constructor(t) {
|
|
433
432
|
n(this, "filters");
|
|
434
433
|
n(this, "sorting");
|
|
@@ -444,7 +443,7 @@ let xt = class N {
|
|
|
444
443
|
pagination: o,
|
|
445
444
|
enableMultiSort: c = !1
|
|
446
445
|
} = t;
|
|
447
|
-
this.render = e, this.items = y.useNew(this), this.filters = a.map((l) => new
|
|
446
|
+
this.render = e, this.items = y.useNew(this), this.filters = a.map((l) => new Mt(this, l)), this.sorting = s.map((l) => new At(this, l)), this.pagination = new Dt(this, o), this.loader = new zt(this, t.loader), this.reactTable = v.useNew(this, {
|
|
448
447
|
enableMultiSort: c,
|
|
449
448
|
manualFiltering: this.loader.manualFiltering,
|
|
450
449
|
manualPagination: this.loader.manualPagination,
|
|
@@ -473,13 +472,13 @@ const Bt = (i) => {
|
|
|
473
472
|
);
|
|
474
473
|
}, Ut = "flow--list--items", $t = {
|
|
475
474
|
items: Ut
|
|
476
|
-
},
|
|
477
|
-
listItem:
|
|
478
|
-
},
|
|
475
|
+
}, xt = "flow--list--item--list-item", Ot = {
|
|
476
|
+
listItem: xt
|
|
477
|
+
}, Ht = (i) => {
|
|
479
478
|
const { children: t } = i;
|
|
480
|
-
return /* @__PURE__ */ r.createElement("div", { className:
|
|
481
|
-
},
|
|
482
|
-
const { className: t } = i, a = g().items.entries.map((s) => /* @__PURE__ */ r.createElement(
|
|
479
|
+
return /* @__PURE__ */ r.createElement("div", { className: Ot.listItem }, t);
|
|
480
|
+
}, jt = (i) => {
|
|
481
|
+
const { className: t } = i, a = g().items.entries.map((s) => /* @__PURE__ */ r.createElement(Ht, { key: s.id }, /* @__PURE__ */ r.createElement(D, null, s.render())));
|
|
483
482
|
return /* @__PURE__ */ r.createElement("div", { className: R($t.items, t) }, a);
|
|
484
483
|
}, z = (i, t) => H(i) ? typeof t == "string" ? typeof i.type == "string" ? i.type === t : !1 : i.type === t : !1, p = (i, t) => st(i, (e) => z(e, t)), k = (i, t) => {
|
|
485
484
|
const e = [];
|
|
@@ -487,6 +486,9 @@ const Bt = (i) => {
|
|
|
487
486
|
z(a, t) && e.push(a);
|
|
488
487
|
}), e;
|
|
489
488
|
};
|
|
489
|
+
function qt(i) {
|
|
490
|
+
return null;
|
|
491
|
+
}
|
|
490
492
|
function Jt(i) {
|
|
491
493
|
return null;
|
|
492
494
|
}
|
|
@@ -499,16 +501,13 @@ function Gt(i) {
|
|
|
499
501
|
function Qt(i) {
|
|
500
502
|
return null;
|
|
501
503
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
const
|
|
506
|
-
function ve(i) {
|
|
507
|
-
var v, w, C, F;
|
|
508
|
-
const { children: t, ...e } = i, a = (v = p(t, Jt)) == null ? void 0 : v.props, s = (w = p(
|
|
504
|
+
const Wt = (i) => /* @__PURE__ */ r.createElement(rt, null, JSON.stringify(i.data));
|
|
505
|
+
function ye(i) {
|
|
506
|
+
var w, P, F, C;
|
|
507
|
+
const { children: t, ...e } = i, a = (w = p(t, qt)) == null ? void 0 : w.props, s = (P = p(
|
|
509
508
|
t,
|
|
510
509
|
ot
|
|
511
|
-
)) == null ? void 0 :
|
|
510
|
+
)) == null ? void 0 : P.props, o = (F = p(t, Qt)) == null ? void 0 : F.props, c = {
|
|
512
511
|
source: a ? {
|
|
513
512
|
...a,
|
|
514
513
|
asyncLoader: a.children
|
|
@@ -518,30 +517,30 @@ function ve(i) {
|
|
|
518
517
|
} : o ? {
|
|
519
518
|
staticData: o.data
|
|
520
519
|
} : void 0
|
|
521
|
-
}, l = (m) => /* @__PURE__ */ r.createElement(
|
|
520
|
+
}, l = (m) => /* @__PURE__ */ r.createElement(Wt, { data: m }), h = Vt.useNew({
|
|
522
521
|
loader: c,
|
|
523
|
-
filters: k(t,
|
|
524
|
-
sorting: k(t,
|
|
525
|
-
render: ((
|
|
522
|
+
filters: k(t, Jt).map((m) => m.props),
|
|
523
|
+
sorting: k(t, Kt).map((m) => m.props),
|
|
524
|
+
render: ((C = p(t, Gt)) == null ? void 0 : C.props.children) ?? l,
|
|
526
525
|
...e
|
|
527
526
|
});
|
|
528
|
-
return /* @__PURE__ */ r.createElement(
|
|
527
|
+
return /* @__PURE__ */ r.createElement(
|
|
529
528
|
M.Provider,
|
|
530
529
|
{
|
|
531
530
|
value: {
|
|
532
531
|
list: h
|
|
533
532
|
}
|
|
534
533
|
},
|
|
535
|
-
/* @__PURE__ */ r.createElement(
|
|
536
|
-
/* @__PURE__ */ r.createElement("div", { className: d.list }, /* @__PURE__ */ r.createElement(Ft, { className: d.filterBar }), /* @__PURE__ */ r.createElement(
|
|
537
|
-
)
|
|
534
|
+
/* @__PURE__ */ r.createElement(ut, null),
|
|
535
|
+
/* @__PURE__ */ r.createElement("div", { className: d.list }, /* @__PURE__ */ r.createElement(Ft, { className: d.filterBar }), /* @__PURE__ */ r.createElement(jt, { className: d.rows }), /* @__PURE__ */ r.createElement(gt, { className: d.paginationInfos }), /* @__PURE__ */ r.createElement(Bt, { className: d.showMoreButton }))
|
|
536
|
+
);
|
|
538
537
|
}
|
|
539
538
|
export {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
539
|
+
ye as List,
|
|
540
|
+
Jt as ListFilter,
|
|
541
|
+
Gt as ListItemView,
|
|
542
|
+
qt as ListLoaderAsync,
|
|
543
|
+
Kt as ListSorting,
|
|
544
|
+
Qt as ListStaticData,
|
|
545
|
+
ye as default
|
|
547
546
|
};
|
package/dist/Navigation.js
CHANGED
|
@@ -1,49 +1,46 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
|
-
import
|
|
5
|
-
import { C as l } from "./ClearPropsContext-CD1-9TZA.js";
|
|
4
|
+
import c from "clsx";
|
|
6
5
|
import "./propsContext-Dx7WKmmM.js";
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import { P as c } from "./PropsContextProvider-B6QiUIPM.js";
|
|
10
|
-
import { u as p } from "./useProps-4x7PxhiE.js";
|
|
6
|
+
import { P as l } from "./PropsContextProvider-B6QiUIPM.js";
|
|
7
|
+
import { u as m } from "./useProps-4x7PxhiE.js";
|
|
11
8
|
import * as v from "react-aria-components";
|
|
12
|
-
const g = "flow--navigation",
|
|
9
|
+
const g = "flow--navigation", p = {
|
|
13
10
|
navigation: g
|
|
14
|
-
},
|
|
15
|
-
const { className:
|
|
16
|
-
return /* @__PURE__ */ t.createElement(
|
|
17
|
-
},
|
|
18
|
-
navigationItem:
|
|
19
|
-
icon:
|
|
20
|
-
text:
|
|
21
|
-
},
|
|
11
|
+
}, d = (n) => {
|
|
12
|
+
const { className: a, children: o, ...e } = n, i = c(p.navigation, a);
|
|
13
|
+
return /* @__PURE__ */ t.createElement("nav", { className: i, role: "navigation", ...e }, /* @__PURE__ */ t.createElement("ul", null, o));
|
|
14
|
+
}, f = "flow--navigation--navigation-item", u = "flow--navigation--navigation-item--icon", x = "flow--navigation--navigation-item--text", s = {
|
|
15
|
+
navigationItem: f,
|
|
16
|
+
icon: u,
|
|
17
|
+
text: x
|
|
18
|
+
}, k = (n) => {
|
|
22
19
|
const {
|
|
23
|
-
isCurrent:
|
|
24
|
-
children:
|
|
20
|
+
isCurrent: a,
|
|
21
|
+
children: o,
|
|
25
22
|
linkComponent: e = v.Link,
|
|
26
23
|
...i
|
|
27
|
-
} =
|
|
24
|
+
} = m("NavigationItem", n), r = {
|
|
28
25
|
Text: {
|
|
29
|
-
className:
|
|
26
|
+
className: s.text
|
|
30
27
|
},
|
|
31
28
|
Icon: {
|
|
32
|
-
className:
|
|
29
|
+
className: s.icon
|
|
33
30
|
}
|
|
34
31
|
};
|
|
35
32
|
return /* @__PURE__ */ t.createElement("li", null, /* @__PURE__ */ t.createElement(
|
|
36
33
|
e,
|
|
37
34
|
{
|
|
38
35
|
...i,
|
|
39
|
-
className:
|
|
40
|
-
"aria-current":
|
|
36
|
+
className: s.navigationItem,
|
|
37
|
+
"aria-current": a ? "page" : !1
|
|
41
38
|
},
|
|
42
|
-
/* @__PURE__ */ t.createElement(
|
|
39
|
+
/* @__PURE__ */ t.createElement(l, { props: r }, o)
|
|
43
40
|
));
|
|
44
41
|
};
|
|
45
42
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
d as Navigation,
|
|
44
|
+
k as NavigationItem,
|
|
45
|
+
d as default
|
|
49
46
|
};
|
package/dist/RadioGroup.js
CHANGED
|
@@ -3,24 +3,23 @@
|
|
|
3
3
|
import o from "react";
|
|
4
4
|
import * as n from "react-aria-components";
|
|
5
5
|
import m from "clsx";
|
|
6
|
-
import
|
|
6
|
+
import "./propsContext-Dx7WKmmM.js";
|
|
7
7
|
import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
|
-
import "./propsContext-Dx7WKmmM.js";
|
|
10
9
|
import "remeda";
|
|
11
|
-
import { F as
|
|
10
|
+
import { F as p } from "./FieldError-BFjashy7.js";
|
|
12
11
|
import "@tabler/icons-react";
|
|
13
12
|
import "./Icon-X0pOdlJY.js";
|
|
14
13
|
import "html-react-parser";
|
|
15
|
-
import { I as
|
|
16
|
-
const
|
|
17
|
-
radioGroup:
|
|
18
|
-
label:
|
|
19
|
-
fieldError:
|
|
20
|
-
customFieldError:
|
|
21
|
-
fieldDescription:
|
|
22
|
-
},
|
|
23
|
-
const { children: a, className: s, ...
|
|
14
|
+
import { I as f } from "./IconCheck-BD6sGh4B.js";
|
|
15
|
+
const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-group--field-error", g = "flow--radio-group--custom-field-error", w = "flow--radio-group--field-description", r = {
|
|
16
|
+
radioGroup: u,
|
|
17
|
+
label: E,
|
|
18
|
+
fieldError: N,
|
|
19
|
+
customFieldError: g,
|
|
20
|
+
fieldDescription: w
|
|
21
|
+
}, T = (t) => {
|
|
22
|
+
const { children: a, className: s, ...c } = t, i = m(r.radioGroup, s), l = {
|
|
24
23
|
Label: {
|
|
25
24
|
className: r.label
|
|
26
25
|
},
|
|
@@ -31,15 +30,15 @@ const E = "flow--radio-group", N = "flow--radio-group--label", g = "flow--radio-
|
|
|
31
30
|
className: r.customFieldError
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
|
-
return /* @__PURE__ */ o.createElement(
|
|
35
|
-
}, b = "flow--radio-group--radio", k = "flow--radio-group--radio--content", h = "flow--radio-group--radio--icon",
|
|
33
|
+
return /* @__PURE__ */ o.createElement(n.RadioGroup, { ...c, className: i }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(p, { className: r.fieldError }));
|
|
34
|
+
}, b = "flow--radio-group--radio", k = "flow--radio-group--radio--content", h = "flow--radio-group--radio--icon", C = "flow--radio-group--radio--checkmark", F = "flow--radio-group--radio--label", e = {
|
|
36
35
|
radio: b,
|
|
37
36
|
content: k,
|
|
38
37
|
icon: h,
|
|
39
|
-
checkmark:
|
|
38
|
+
checkmark: C,
|
|
40
39
|
label: F
|
|
41
|
-
},
|
|
42
|
-
const { children: a, className: s, ...
|
|
40
|
+
}, j = (t) => {
|
|
41
|
+
const { children: a, className: s, ...c } = t, i = m(e.radio, s), l = {
|
|
43
42
|
Icon: {
|
|
44
43
|
className: e.icon
|
|
45
44
|
},
|
|
@@ -50,10 +49,10 @@ const E = "flow--radio-group", N = "flow--radio-group--label", g = "flow--radio-
|
|
|
50
49
|
className: e.content
|
|
51
50
|
}
|
|
52
51
|
};
|
|
53
|
-
return /* @__PURE__ */ o.createElement(n.Radio, { ...
|
|
52
|
+
return /* @__PURE__ */ o.createElement(n.Radio, { ...c, className: i }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(f, { className: e.checkmark }));
|
|
54
53
|
};
|
|
55
54
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
j as Radio,
|
|
56
|
+
T as RadioGroup,
|
|
57
|
+
T as default
|
|
59
58
|
};
|
package/dist/Section.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import
|
|
3
|
+
import s from "react";
|
|
4
4
|
import i from "clsx";
|
|
5
|
-
import { C as l } from "./ClearPropsContext-CD1-9TZA.js";
|
|
6
|
-
import { P as m } from "./PropsContextProvider-B6QiUIPM.js";
|
|
7
|
-
import "@react-aria/utils";
|
|
8
5
|
import "./propsContext-Dx7WKmmM.js";
|
|
6
|
+
import { P as l } from "./PropsContextProvider-B6QiUIPM.js";
|
|
7
|
+
import "@react-aria/utils";
|
|
9
8
|
import "remeda";
|
|
10
|
-
const
|
|
11
|
-
section:
|
|
12
|
-
header:
|
|
9
|
+
const m = "flow--section", d = "flow--section--header", p = "flow--section--status-badge", e = {
|
|
10
|
+
section: m,
|
|
11
|
+
header: d,
|
|
13
12
|
switch: "flow--section--switch",
|
|
14
|
-
statusBadge:
|
|
15
|
-
},
|
|
16
|
-
const { children:
|
|
17
|
-
if (!
|
|
13
|
+
statusBadge: p
|
|
14
|
+
}, x = (o) => {
|
|
15
|
+
const { children: t, className: a, ...c } = o;
|
|
16
|
+
if (!t)
|
|
18
17
|
return null;
|
|
19
|
-
const
|
|
18
|
+
const r = i(e.section, a), n = {
|
|
20
19
|
Heading: {
|
|
21
20
|
level: 2
|
|
22
21
|
},
|
|
@@ -31,9 +30,9 @@ const d = "flow--section", p = "flow--section--header", f = "flow--section--stat
|
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ s.createElement("section", { ...c, className: r }, /* @__PURE__ */ s.createElement(l, { props: n }, t));
|
|
35
34
|
};
|
|
36
35
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
x as Section,
|
|
37
|
+
x as default
|
|
39
38
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import * as t from "react-aria-components";
|
|
4
|
+
import o from "react";
|
|
5
|
+
import i from "clsx";
|
|
6
|
+
const m = "flow--tooltip", n = "flow--tooltip--arrow", p = "flow--tooltip--slide", e = {
|
|
7
|
+
tooltip: m,
|
|
8
|
+
arrow: n,
|
|
9
|
+
slide: p
|
|
10
|
+
}, d = (r) => {
|
|
11
|
+
const { children: l, className: s, ...a } = r, c = i(e.tooltip, s);
|
|
12
|
+
return /* @__PURE__ */ o.createElement(t.Tooltip, { ...a, className: c }, /* @__PURE__ */ o.createElement(t.OverlayArrow, { className: e.arrow }, /* @__PURE__ */ o.createElement("svg", { viewBox: "0 0 8 8" }, /* @__PURE__ */ o.createElement("path", { d: "M0 0 L4 4 L8 0" }))), l);
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
d as T
|
|
16
|
+
};
|
package/dist/Tooltip.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.47",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -253,5 +253,5 @@
|
|
|
253
253
|
"optional": true
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
|
-
"gitHead": "
|
|
256
|
+
"gitHead": "4a7d6c1fc01d05f95a7c83cffe11df4b62e9051b"
|
|
257
257
|
}
|
package/dist/Tooltip-Dbiu1cXX.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import * as t from "react-aria-components";
|
|
4
|
-
import o from "react";
|
|
5
|
-
import m from "clsx";
|
|
6
|
-
import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
|
|
7
|
-
import "./propsContext-Dx7WKmmM.js";
|
|
8
|
-
import "@react-aria/utils";
|
|
9
|
-
import "remeda";
|
|
10
|
-
const p = "flow--tooltip", n = "flow--tooltip--arrow", w = "flow--tooltip--slide", e = {
|
|
11
|
-
tooltip: p,
|
|
12
|
-
arrow: n,
|
|
13
|
-
slide: w
|
|
14
|
-
}, v = (r) => {
|
|
15
|
-
const { children: l, className: s, ...a } = r, i = m(e.tooltip, s);
|
|
16
|
-
return /* @__PURE__ */ o.createElement(c, null, /* @__PURE__ */ o.createElement(t.Tooltip, { ...a, className: i }, /* @__PURE__ */ o.createElement(t.OverlayArrow, { className: e.arrow }, /* @__PURE__ */ o.createElement("svg", { viewBox: "0 0 8 8" }, /* @__PURE__ */ o.createElement("path", { d: "M0 0 L4 4 L8 0" }))), l));
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
v as T
|
|
20
|
-
};
|