@mittwald/flow-react-components 0.1.0-alpha.395 → 0.1.0-alpha.396
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 +28 -0
- package/dist/css/CheckboxButton.css +1 -1
- package/dist/css/Table.css +1 -1
- package/dist/css/Text.css +1 -1
- package/dist/css/globals.css +1 -1
- package/dist/js/Icons.js +121 -116
- package/dist/js/List.js +9 -8
- package/dist/js/Markdown.js +17 -16
- package/dist/js/all.css +1 -1
- package/dist/js/types/components/Icon/components/icons/IconCertificate.d.ts +4 -0
- package/dist/js/types/components/Icon/components/icons/IconDirectory.d.ts +4 -0
- package/dist/js/types/components/Icon/components/icons/IconMove.d.ts +4 -0
- package/dist/js/types/components/Icon/components/icons/IconSparkles.d.ts +4 -0
- package/dist/js/types/components/Icon/components/icons/IconVhost.d.ts +4 -0
- package/dist/js/types/components/Icon/components/icons/index.d.ts +5 -0
- package/dist/js/types/components/List/model/ReactTable.d.ts +2 -2
- package/package.json +4 -4
package/dist/js/Icons.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import n from "react";
|
|
4
|
-
import { IconAppWindow as o, IconArrowBackUpDouble as l, IconArrowLeft as r, IconHistory as a, IconCamera as I, IconClipboardList as m,
|
|
4
|
+
import { IconAppWindow as o, IconArrowBackUpDouble as l, IconArrowLeft as r, IconHistory as a, IconCamera as I, IconClipboardList as m, IconFileCertificate as s, IconClock as E, IconCode as i, IconDotsVertical as u, IconFileDescription as p, IconFileInfo as d, IconCalendarCheck as f, IconBuilding as h, IconBorderAll as C, IconDatabase as S, IconFolder as x, IconMailShare as k, IconWorld as g, IconEdit as w, IconMail as v, IconPuzzle as $, IconArrowRight as b, IconEyeOff as M, IconHome as D, IconInbox as F, IconFileEuro as L, IconLock as t, IconLockOpen as y, IconPower as P, IconMaximize as z, IconUsersGroup as A, IconMenu2 as B, IconMinimize as O, IconTruckDelivery as R, IconBell as U, IconHash as H, IconShoppingCart as V, IconCreditCard as W, IconChartHistogram as T, IconArchive as j, IconArrowForwardUp as K, IconRefresh as N, IconListSearch as G, IconShieldLock as X, IconServer as q, IconSettings as J, IconShare3 as Q, IconEye as Y, IconShield as Z, IconShieldCheckFilled as _, IconSparkles as ee, IconKey as ne, IconDoor as ce, IconStar as te, IconStarFilled as oe, IconWorldWww as le, IconHeadset as re, IconFileX as ae, IconTicket as Ie, IconArrowBackUp as me, IconUser as se, IconWorldShare as Ee } from "@tabler/icons-react";
|
|
5
5
|
import { I as c } from "./Icon--OEo4TjW.js";
|
|
6
|
-
import { I as
|
|
7
|
-
import { I as
|
|
8
|
-
import { I as
|
|
9
|
-
import { I as
|
|
10
|
-
import { a as
|
|
11
|
-
import { I as
|
|
12
|
-
import { I as
|
|
13
|
-
import { I as
|
|
14
|
-
import { I as
|
|
15
|
-
import { I as
|
|
16
|
-
import { I as
|
|
17
|
-
import { I as
|
|
18
|
-
import { I as
|
|
19
|
-
import { a as
|
|
20
|
-
import { a as
|
|
21
|
-
import { I as
|
|
22
|
-
import { I as
|
|
23
|
-
import { I as
|
|
24
|
-
import { a as
|
|
25
|
-
import { I as
|
|
26
|
-
import { I as
|
|
27
|
-
const
|
|
6
|
+
import { I as Fn } from "./IconCheck-s8wGBc30.js";
|
|
7
|
+
import { I as yn, a as Pn } from "./IconCheckboxEmpty-CZrD3f3O.js";
|
|
8
|
+
import { I as An } from "./IconCheckboxIndeterminate-CmpwByDj.js";
|
|
9
|
+
import { I as On } from "./IconChevronDown-wKRgAuyR.js";
|
|
10
|
+
import { a as Un, I as Hn } from "./IconCalendar-C5CRRRyg.js";
|
|
11
|
+
import { I as Wn } from "./IconChevronRight-DkfNRCtw.js";
|
|
12
|
+
import { I as jn } from "./IconChevronUp-C2rq4v--.js";
|
|
13
|
+
import { I as Nn } from "./IconClose-Bf4k99aq.js";
|
|
14
|
+
import { I as Xn } from "./IconContextMenu-x1p9NcUF.js";
|
|
15
|
+
import { I as Jn } from "./IconCopy-Ig2YhkQv.js";
|
|
16
|
+
import { I as Yn } from "./IconDanger-BwFfgysk.js";
|
|
17
|
+
import { I as _n, a as ec, b as nc, c as cc, d as tc } from "./IconView-CSIFhlza.js";
|
|
18
|
+
import { I as lc, a as rc } from "./IconExternalLink-CN5WgFKj.js";
|
|
19
|
+
import { a as Ic, I as mc } from "./IconSucceeded-SyLL7w9B.js";
|
|
20
|
+
import { a as Ec, I as ic } from "./IconImage-CaXFaBpx.js";
|
|
21
|
+
import { I as pc } from "./IconInfo-BQ-pXsUh.js";
|
|
22
|
+
import { I as fc, a as hc } from "./IconPlus-CccQXOjh.js";
|
|
23
|
+
import { I as Sc } from "./IconPending-DVqDmv2n.js";
|
|
24
|
+
import { a as kc, I as gc } from "./IconRadioOn-D7w6KLWm.js";
|
|
25
|
+
import { I as vc } from "./IconSearch-9xESFc33.js";
|
|
26
|
+
import { I as bc, a as Mc } from "./IconWarning-BQcw4Db0.js";
|
|
27
|
+
const de = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(o, null)), fe = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(l, null)), he = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(r, null)), Ce = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(a, null)), Se = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(I, null)), xe = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(m, null)), ke = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(s, null)), ge = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(E, null)), we = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(i, null)), ve = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(u, null)), $e = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(p, null)), be = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(d, null)), Me = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(f, null)), De = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(h, null)), Fe = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(C, null)), Le = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(S, null)), ye = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(x, null)), Pe = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(k, null)), ze = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(g, null)), Ae = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(w, null)), Be = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(v, null)), Oe = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement($, null)), Re = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(b, null)), Ue = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(M, null)), He = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(D, null)), Ve = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(F, null)), We = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(L, null)), Te = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(t, null)), je = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(y, null)), Ke = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(P, null)), Ne = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(z, null)), Ge = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(A, null)), Xe = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(B, null)), qe = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(O, null)), Je = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(R, null)), Qe = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(U, null)), Ye = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(H, null)), Ze = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(V, null)), _e = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(t, null)), en = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(W, null)), nn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(T, null)), cn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(j, null)), tn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(K, null)), on = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(N, null)), ln = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(G, null)), rn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(X, null)), an = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(q, null)), In = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(J, null)), mn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(Q, null)), sn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(Y, null)), En = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(Z, null)), un = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(_, null)), pn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(ee, null)), dn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(ne, null)), fn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(ce, null)), hn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(te, null)), Cn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(oe, null)), Sn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(le, null)), xn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(re, null)), kn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(ae, null)), gn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(Ie, null)), wn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(me, null)), vn = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(se, null)), $n = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n.createElement(Ee, null)), bn = (e) => /* @__PURE__ */ n.createElement(
|
|
28
28
|
c,
|
|
29
29
|
{
|
|
30
30
|
...e
|
|
@@ -36,97 +36,102 @@ const se = (e) => /* @__PURE__ */ n.createElement(c, { ...e }, /* @__PURE__ */ n
|
|
|
36
36
|
`
|
|
37
37
|
);
|
|
38
38
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
39
|
+
de as IconApp,
|
|
40
|
+
fe as IconAutoresponder,
|
|
41
|
+
he as IconBackLink,
|
|
42
|
+
Ce as IconBackup,
|
|
43
|
+
Un as IconCalendar,
|
|
44
|
+
Se as IconCamera,
|
|
45
|
+
ke as IconCertificate,
|
|
46
|
+
xe as IconChangelog,
|
|
47
|
+
Fn as IconCheck,
|
|
48
|
+
yn as IconCheckboxChecked,
|
|
49
|
+
Pn as IconCheckboxEmpty,
|
|
50
|
+
An as IconCheckboxIndeterminate,
|
|
51
|
+
On as IconChevronDown,
|
|
52
|
+
Hn as IconChevronLeft,
|
|
53
|
+
Wn as IconChevronRight,
|
|
54
|
+
jn as IconChevronUp,
|
|
55
|
+
ge as IconClock,
|
|
56
|
+
Nn as IconClose,
|
|
57
|
+
we as IconCode,
|
|
58
|
+
Xn as IconContextMenu,
|
|
59
|
+
ve as IconContextMenuVertical,
|
|
60
|
+
be as IconContract,
|
|
61
|
+
$e as IconContractPartner,
|
|
62
|
+
Jn as IconCopy,
|
|
63
|
+
Me as IconCronjob,
|
|
64
|
+
De as IconCustomer,
|
|
65
|
+
Yn as IconDanger,
|
|
66
|
+
Fe as IconDashboard,
|
|
67
|
+
Le as IconDatabase,
|
|
68
|
+
_n as IconDelete,
|
|
69
|
+
Pe as IconDeliveryBox,
|
|
70
|
+
ye as IconDirectory,
|
|
71
|
+
ze as IconDomain,
|
|
72
|
+
lc as IconDownload,
|
|
73
|
+
Ae as IconEdit,
|
|
74
|
+
Be as IconEmail,
|
|
75
|
+
Oe as IconExtension,
|
|
76
|
+
rc as IconExternalLink,
|
|
77
|
+
Ic as IconFailed,
|
|
78
|
+
Ec as IconFile,
|
|
79
|
+
ec as IconFilter,
|
|
80
|
+
Re as IconForward,
|
|
81
|
+
Ue as IconHide,
|
|
82
|
+
He as IconHome,
|
|
83
|
+
ic as IconImage,
|
|
84
|
+
Ve as IconInbox,
|
|
85
|
+
pc as IconInfo,
|
|
86
|
+
We as IconInvoice,
|
|
87
|
+
Te as IconLock,
|
|
88
|
+
je as IconLockOpen,
|
|
89
|
+
Ke as IconLogout,
|
|
90
|
+
Ne as IconMaximize,
|
|
91
|
+
Ge as IconMember,
|
|
92
|
+
Xe as IconMenu,
|
|
93
|
+
qe as IconMinimize,
|
|
94
|
+
fc as IconMinus,
|
|
95
|
+
bn as IconMittwald,
|
|
96
|
+
Je as IconMove,
|
|
97
|
+
Qe as IconNotification,
|
|
98
|
+
Ye as IconNumber,
|
|
99
|
+
Ze as IconOrder,
|
|
100
|
+
_e as IconPassword,
|
|
101
|
+
en as IconPayment,
|
|
102
|
+
Sc as IconPending,
|
|
103
|
+
nn as IconPerformance,
|
|
104
|
+
hc as IconPlus,
|
|
105
|
+
cn as IconProject,
|
|
106
|
+
kc as IconRadioOff,
|
|
107
|
+
gc as IconRadioOn,
|
|
108
|
+
tn as IconRedo,
|
|
109
|
+
on as IconRefresh,
|
|
110
|
+
nc as IconSave,
|
|
111
|
+
vc as IconSearch,
|
|
112
|
+
ln as IconSearchEngine,
|
|
113
|
+
rn as IconSecurity,
|
|
114
|
+
an as IconServer,
|
|
115
|
+
In as IconSettings,
|
|
116
|
+
mn as IconShare,
|
|
117
|
+
sn as IconShow,
|
|
118
|
+
cc as IconSorting,
|
|
119
|
+
En as IconSpamProtectionOff,
|
|
120
|
+
un as IconSpamProtectionOn,
|
|
121
|
+
pn as IconSparkles,
|
|
122
|
+
dn as IconSshKey,
|
|
123
|
+
fn as IconSshSftp,
|
|
124
|
+
hn as IconStar,
|
|
125
|
+
Cn as IconStarFilled,
|
|
126
|
+
Sn as IconSubdomain,
|
|
127
|
+
mc as IconSucceeded,
|
|
128
|
+
bc as IconSuccess,
|
|
129
|
+
xn as IconSupport,
|
|
130
|
+
kn as IconTerminate,
|
|
131
|
+
gn as IconTicket,
|
|
132
|
+
wn as IconUndo,
|
|
133
|
+
vn as IconUser,
|
|
134
|
+
$n as IconVhost,
|
|
135
|
+
tc as IconView,
|
|
136
|
+
Mc as IconWarning
|
|
132
137
|
};
|
package/dist/js/List.js
CHANGED
|
@@ -575,9 +575,16 @@ class at {
|
|
|
575
575
|
);
|
|
576
576
|
this.sortingState = o, this.updateSortingState = c, this.table = this.useReactTable(e, s);
|
|
577
577
|
}
|
|
578
|
+
get searchString() {
|
|
579
|
+
return this.table.getState().globalFilter;
|
|
580
|
+
}
|
|
578
581
|
static useNew(t, e, s = {}) {
|
|
579
582
|
return new at(t, e, s);
|
|
580
583
|
}
|
|
584
|
+
getTableColumn(t) {
|
|
585
|
+
const e = this.table.getColumn(t);
|
|
586
|
+
return Ct(!!e, `Column #${t} is not defined`), e;
|
|
587
|
+
}
|
|
581
588
|
useReactTable(t, e = {}) {
|
|
582
589
|
var c;
|
|
583
590
|
const s = this.list.loader.useData(), i = {
|
|
@@ -618,13 +625,6 @@ class at {
|
|
|
618
625
|
).map((i) => i.getReactTableColumnSort());
|
|
619
626
|
this.updateSortingState([...s, ...e]);
|
|
620
627
|
}
|
|
621
|
-
get searchString() {
|
|
622
|
-
return this.table.getState().globalFilter;
|
|
623
|
-
}
|
|
624
|
-
getTableColumn(t) {
|
|
625
|
-
const e = this.table.getColumn(t);
|
|
626
|
-
return Ct(!!e, `Column #${t} is not defined`), e;
|
|
627
|
-
}
|
|
628
628
|
getTableColumnDefs() {
|
|
629
629
|
const t = /* @__PURE__ */ new Map(), e = (s) => {
|
|
630
630
|
const i = t.get(s);
|
|
@@ -634,7 +634,8 @@ class at {
|
|
|
634
634
|
id: s,
|
|
635
635
|
accessorKey: s,
|
|
636
636
|
enableSorting: !1,
|
|
637
|
-
enableColumnFilter: !1
|
|
637
|
+
enableColumnFilter: !1,
|
|
638
|
+
sortingFn: "alphanumeric"
|
|
638
639
|
};
|
|
639
640
|
return t.set(s, o), o;
|
|
640
641
|
};
|
package/dist/js/Markdown.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import l, { Children as E, isValidElement as s } from "react";
|
|
4
4
|
import f from "react-markdown";
|
|
5
|
-
import { L as
|
|
5
|
+
import { L as u } from "./Link-CN3Wa-yA.js";
|
|
6
6
|
import { T as m } from "./Text-Dh4iy9qD.js";
|
|
7
|
-
import { I as
|
|
7
|
+
import { I as g } from "./InlineCode-6EfCoef4.js";
|
|
8
8
|
import { H as n } from "./Heading-C61IpDy1.js";
|
|
9
9
|
import { S as k } from "./Separator-BCaor8Yd.js";
|
|
10
10
|
import { C as N } from "./CodeBlock-BU4F_VQW.js";
|
|
11
11
|
const v = "flow--markdown", r = {
|
|
12
12
|
markdown: v
|
|
13
|
-
},
|
|
14
|
-
const { children: i, color:
|
|
15
|
-
a: (e) => /* @__PURE__ */ l.createElement(
|
|
13
|
+
}, A = (d) => {
|
|
14
|
+
const { children: i, color: a = "default", ...h } = d, o = a === "default" ? "primary" : a, c = a === "default" ? void 0 : a, p = {
|
|
15
|
+
a: (e) => /* @__PURE__ */ l.createElement(u, { target: "_blank", color: o, href: e.href }, e.children),
|
|
16
16
|
p: (e) => /* @__PURE__ */ l.createElement(m, { elementType: "p", className: r.text, color: c }, e.children),
|
|
17
|
-
code: (e) => /* @__PURE__ */ l.createElement(
|
|
18
|
-
h1: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 1, color:
|
|
19
|
-
h2: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 2, color:
|
|
20
|
-
h3: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 3, color:
|
|
21
|
-
h4: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 4, color:
|
|
22
|
-
h5: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 5, color:
|
|
23
|
-
h6: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 6, color:
|
|
17
|
+
code: (e) => /* @__PURE__ */ l.createElement(g, { color: a }, e.children),
|
|
18
|
+
h1: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 1, color: o }, e.children),
|
|
19
|
+
h2: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 2, color: o }, e.children),
|
|
20
|
+
h3: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 3, color: o }, e.children),
|
|
21
|
+
h4: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 4, color: o }, e.children),
|
|
22
|
+
h5: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 5, color: o }, e.children),
|
|
23
|
+
h6: (e) => /* @__PURE__ */ l.createElement(n, { className: r.heading, level: 6, color: o }, e.children),
|
|
24
24
|
hr: () => /* @__PURE__ */ l.createElement(k, null),
|
|
25
25
|
pre: (e) => {
|
|
26
26
|
const t = E.toArray(e.children)[0];
|
|
@@ -28,14 +28,15 @@ const v = "flow--markdown", r = {
|
|
|
28
28
|
N,
|
|
29
29
|
{
|
|
30
30
|
copyable: !1,
|
|
31
|
-
color:
|
|
31
|
+
color: a,
|
|
32
32
|
language: s(t) && t.props.className ? t.props.className.replace("language-", "") : void 0,
|
|
33
33
|
code: s(t) ? t.props.children : t
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
},
|
|
37
37
|
ul: (e) => /* @__PURE__ */ l.createElement(m, { color: c }, /* @__PURE__ */ l.createElement("ul", null, e.children)),
|
|
38
|
-
ol: (e) => /* @__PURE__ */ l.createElement(m, { color: c }, /* @__PURE__ */ l.createElement("ol", null, e.children))
|
|
38
|
+
ol: (e) => /* @__PURE__ */ l.createElement(m, { color: c }, /* @__PURE__ */ l.createElement("ol", null, e.children)),
|
|
39
|
+
blockquote: (e) => /* @__PURE__ */ l.createElement(m, { color: c }, /* @__PURE__ */ l.createElement("blockquote", null, e.children))
|
|
39
40
|
};
|
|
40
41
|
return /* @__PURE__ */ l.createElement(
|
|
41
42
|
f,
|
|
@@ -48,6 +49,6 @@ const v = "flow--markdown", r = {
|
|
|
48
49
|
);
|
|
49
50
|
};
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
A as Markdown,
|
|
53
|
+
A as default
|
|
53
54
|
};
|