@mittwald/flow-react-components 0.1.0-alpha.318 → 0.1.0-alpha.319
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 +12 -0
- package/dist/css/FileCard.css +1 -0
- package/dist/css/globals.css +1 -1
- package/dist/js/{Accordion-B4NzrsJJ.js → Accordion-DVuqfOqd.js} +3 -3
- package/dist/js/Accordion.js +1 -1
- package/dist/js/{Action-CVaW6nwX.js → Action-DsQVttvF.js} +1 -1
- package/dist/js/Action.js +1 -1
- package/dist/js/{ActionGroup-CYlqSCcw.js → ActionGroup-D7pgHibo.js} +1 -1
- package/dist/js/ActionGroup.js +1 -1
- package/dist/js/Alert.js +2 -2
- package/dist/js/AlertBadge.js +3 -3
- package/dist/js/{AlertIcon-BomvhKhj.js → AlertIcon-Ca6DaRUI.js} +4 -4
- package/dist/js/AlertIcon.js +1 -1
- package/dist/js/Avatar-DV-ptc3M.js +60 -0
- package/dist/js/Avatar.js +3 -57
- package/dist/js/{Badge-eFDPYpLQ.js → Badge-CT8n21Li.js} +4 -4
- package/dist/js/Badge.js +1 -1
- package/dist/js/Breadcrumb.js +2 -2
- package/dist/js/{Button-D36qUyQB.js → Button-DXgQ5lAy.js} +5 -5
- package/dist/js/Button.js +1 -1
- package/dist/js/{CalendarHeader-C1y9QUnp.js → CalendarHeader-BWiFjVQp.js} +4 -4
- package/dist/js/{Checkbox-BgFVV3Tl.js → Checkbox-DBwDLJpW.js} +4 -4
- package/dist/js/Checkbox.js +1 -1
- package/dist/js/{CheckboxButton-BjU9Jo10.js → CheckboxButton-g3LXFThl.js} +2 -2
- package/dist/js/CheckboxButton.js +1 -1
- package/dist/js/CheckboxGroup.js +4 -4
- package/dist/js/CodeBlock.js +1 -1
- package/dist/js/ColumnLayout-CLtV-itI.js +35 -0
- package/dist/js/ColumnLayout.js +1 -1
- package/dist/js/{Content-70JqGVUm.js → Content-DW8OnKPj.js} +1 -1
- package/dist/js/Content.js +1 -1
- package/dist/js/ContextMenu.js +3 -3
- package/dist/js/{ContextMenuTrigger-B8mjB6Ki.js → ContextMenuTrigger-BbYyy0an.js} +3 -3
- package/dist/js/ContextualHelp.js +4 -4
- package/dist/js/{CopyButton-CFR15ln1.js → CopyButton-Br-KQ5Tt.js} +5 -5
- package/dist/js/CopyButton.js +1 -1
- package/dist/js/CounterBadge.js +1 -1
- package/dist/js/DatePicker.js +7 -7
- package/dist/js/DateRangePicker.js +7 -7
- package/dist/js/{FieldDescription-B-Ddf78p.js → FieldDescription-CZAnUHqw.js} +2 -2
- package/dist/js/FieldDescription.js +1 -1
- package/dist/js/{FieldError-nM97A_ZI.js → FieldError-BvH18haz.js} +3 -3
- package/dist/js/FieldError.js +1 -1
- package/dist/js/FileCard.js +55 -0
- package/dist/js/FileCardList.js +18 -0
- package/dist/js/FileField.js +1 -1
- package/dist/js/{Header-Br1rkhJ6.js → Header-lMGDqbwd.js} +1 -1
- package/dist/js/Header.js +1 -1
- package/dist/js/HeaderNavigation.js +1 -1
- package/dist/js/{Heading-CqcX54zX.js → Heading-Be_nT-nd.js} +1 -1
- package/dist/js/Heading.js +1 -1
- package/dist/js/{Icon-CBb5Yu1u.js → Icon-DGqvukLZ.js} +1 -1
- package/dist/js/Icon.js +1 -1
- package/dist/js/{IconCalendar-KzWm9DDf.js → IconCalendar-BjcM88rZ.js} +1 -1
- package/dist/js/{IconCheck-4amW_y36.js → IconCheck-CaDmfTvA.js} +1 -1
- package/dist/js/{IconCheckboxEmpty-Bz98RJL2.js → IconCheckboxEmpty-Nnjs5-Pv.js} +1 -1
- package/dist/js/{IconCheckboxIndeterminate-CXxIYfWr.js → IconCheckboxIndeterminate-DZPPM9nl.js} +1 -1
- package/dist/js/{IconChevronDown-CwS8GTxT.js → IconChevronDown-BtCeHe7W.js} +1 -1
- package/dist/js/{IconChevronRight-qZD8x47n.js → IconChevronRight-CrBdlFnx.js} +1 -1
- package/dist/js/{IconChevronUp-CPPaEZWw.js → IconChevronUp-5KAeHjf3.js} +1 -1
- package/dist/js/{IconClose-D3eGA5SA.js → IconClose-B9jMC5hC.js} +1 -1
- package/dist/js/{IconContextMenu-Ceb_NtGj.js → IconContextMenu-CZgbKH5A.js} +1 -1
- package/dist/js/{IconCopy-C8vJzw7-.js → IconCopy-D1FOjBP7.js} +1 -1
- package/dist/js/{IconDanger-DiLFhqHO.js → IconDanger-nKwA_7lj.js} +1 -1
- package/dist/js/{IconExternalLink-Dn7yCGfS.js → IconExternalLink-D_EgCFyx.js} +1 -1
- package/dist/js/IconImage-CX5G6_nB.js +10 -0
- package/dist/js/{IconInfo-B58Nusbi.js → IconInfo-CDr485eL.js} +1 -1
- package/dist/js/{IconPending-LgjVl3ZR.js → IconPending-DsQR898t.js} +1 -1
- package/dist/js/{IconPlus-Dik3sT_d.js → IconPlus-CdffT7DS.js} +1 -1
- package/dist/js/{IconRadioOn-C6o-TmBn.js → IconRadioOn-CR0g7TLz.js} +1 -1
- package/dist/js/{IconSearch-hqOpuhlg.js → IconSearch-BIWWMdCF.js} +1 -1
- package/dist/js/{IconSucceeded-BuCvAZZd.js → IconSucceeded-qktd9Hxt.js} +1 -1
- package/dist/js/{IconView-C-bJRfad.js → IconView-Brx4jO4W.js} +1 -1
- package/dist/js/{IconWarning-BqxyFUTa.js → IconWarning-BKXkiE95.js} +1 -1
- package/dist/js/Icons.js +33 -30
- package/dist/js/Image.js +1 -1
- package/dist/js/Initials.js +1 -1
- package/dist/js/{Label-BNcY7JBl.js → Label-dr-fwDKa.js} +1 -1
- package/dist/js/Label.js +1 -1
- package/dist/js/LayoutCard.js +1 -1
- package/dist/js/{Link-CQ9RLwJK.js → Link-Dk1RuBZL.js} +3 -3
- package/dist/js/Link.js +1 -1
- package/dist/js/List.js +14 -14
- package/dist/js/{LoadingSpinner-BK9KyYcE.js → LoadingSpinner-BypSuKm_.js} +2 -2
- package/dist/js/LoadingSpinner.js +1 -1
- package/dist/js/{MenuItem-ims4Vdth.js → MenuItem-BHTxlZbm.js} +5 -5
- package/dist/js/MenuItem.js +1 -1
- package/dist/js/Modal.js +6 -6
- package/dist/js/Navigation.js +2 -2
- package/dist/js/Notification.js +5 -5
- package/dist/js/NumberField.js +7 -7
- package/dist/js/{Popover-DPAVgKw1.js → Popover-BoLYvpo2.js} +1 -1
- package/dist/js/Popover.js +2 -2
- package/dist/js/RadioGroup.js +5 -5
- package/dist/js/{SearchField-DtByTOGJ.js → SearchField-d7pa2xgi.js} +6 -6
- package/dist/js/SearchField.js +1 -1
- package/dist/js/{Section-D1KKijDG.js → Section-Cjyya2BH.js} +1 -1
- package/dist/js/Section.js +1 -1
- package/dist/js/SegmentedControl.js +4 -4
- package/dist/js/Select.js +5 -5
- package/dist/js/Slider.js +4 -4
- package/dist/js/Switch.js +5 -5
- package/dist/js/Tabs.js +7 -7
- package/dist/js/{Text-CPD7mr9M.js → Text-_cq3RnbD.js} +1 -1
- package/dist/js/Text.js +1 -1
- package/dist/js/TextArea.js +2 -2
- package/dist/js/TextField.js +2 -2
- package/dist/js/{TextFieldBase-g1cXK8oC.js → TextFieldBase-02d5uMe8.js} +2 -2
- package/dist/js/TimeField.js +2 -2
- package/dist/js/all.css +1 -1
- package/dist/js/{flowComponent-CdFTojQw.js → flowComponent-1wOIvUIq.js} +32 -31
- package/dist/js/react-hook-form.js +2 -2
- package/dist/js/types/components/ColumnLayout/ColumnLayout.d.ts +2 -2
- package/dist/js/types/components/FileCard/FileCard.d.ts +10 -0
- package/dist/js/types/components/FileCard/components/FileSizeText/FileSizeText.d.ts +6 -0
- package/dist/js/types/components/FileCard/components/FileSizeText/index.d.ts +1 -0
- package/dist/js/types/components/FileCard/index.d.ts +3 -0
- package/dist/js/types/components/FileCard/stories/Default.stories.d.ts +9 -0
- package/dist/js/types/components/FileCard/stories/EdgeCases.stories.d.ts +6 -0
- package/dist/js/types/components/FileCardList/FileCardList.d.ts +5 -0
- package/dist/js/types/components/FileCardList/index.d.ts +3 -0
- package/dist/js/types/components/FileCardList/stories/Default.stories.d.ts +6 -0
- package/dist/js/types/components/Icon/components/icons/IconFile.d.ts +4 -0
- package/dist/js/types/components/Icon/components/icons/IconImage.d.ts +4 -0
- package/dist/js/types/components/Icon/components/icons/index.d.ts +2 -0
- package/dist/js/types/components/propTypes/index.d.ts +2 -0
- package/dist/js/types/lib/controller/overlay/context.d.ts +1 -0
- package/dist/js/types/lib/propsContext/propsContext.d.ts +2 -0
- package/dist/js/types/lib/slotContext/slotContext.d.ts +1 -0
- package/package.json +13 -4
- package/dist/js/ColumnLayout-Bvw578tz.js +0 -33
|
@@ -7,7 +7,7 @@ import { pickBy as v, omitBy as S } from "remeda";
|
|
|
7
7
|
import "dot-prop";
|
|
8
8
|
import { PropsContextProvider as b } from "./PropsContextProvider.js";
|
|
9
9
|
import { TunnelEntry as E } from "@mittwald/react-tunnel";
|
|
10
|
-
const
|
|
10
|
+
const F = {
|
|
11
11
|
Action: !0,
|
|
12
12
|
ActionGroup: !0,
|
|
13
13
|
Avatar: !0,
|
|
@@ -31,6 +31,7 @@ const k = {
|
|
|
31
31
|
DateRangePicker: !0,
|
|
32
32
|
FieldDescription: !0,
|
|
33
33
|
FieldError: !0,
|
|
34
|
+
FileCard: !0,
|
|
34
35
|
FileField: !0,
|
|
35
36
|
Header: !0,
|
|
36
37
|
Heading: !0,
|
|
@@ -67,44 +68,44 @@ const k = {
|
|
|
67
68
|
TextField: !0,
|
|
68
69
|
TimeField: !0
|
|
69
70
|
}, l = Object.keys(
|
|
70
|
-
|
|
71
|
+
F
|
|
71
72
|
);
|
|
72
|
-
function a(
|
|
73
|
-
return !!
|
|
73
|
+
function a(e) {
|
|
74
|
+
return !!e && typeof e == "object" && "__dynamicProp" in e;
|
|
74
75
|
}
|
|
75
|
-
function d(
|
|
76
|
-
return typeof
|
|
76
|
+
function d(e) {
|
|
77
|
+
return typeof e == "string" && l.includes(e);
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
-
return !d(
|
|
79
|
+
function k(e) {
|
|
80
|
+
return !d(e);
|
|
80
81
|
}
|
|
81
|
-
const A = (
|
|
82
|
+
const A = (e, o) => {
|
|
82
83
|
const r = {};
|
|
83
|
-
for (const
|
|
84
|
-
if (
|
|
85
|
-
const n = t
|
|
86
|
-
a(n) && (r[
|
|
84
|
+
for (const t in e)
|
|
85
|
+
if (k(t)) {
|
|
86
|
+
const n = e[t];
|
|
87
|
+
a(n) && (r[t] = n.__dynamicProp(o));
|
|
87
88
|
}
|
|
88
89
|
return r;
|
|
89
90
|
};
|
|
90
|
-
function B(
|
|
91
|
-
return !!
|
|
91
|
+
function B(e) {
|
|
92
|
+
return !!e && typeof e == "object" && "children" in e && !!e.children;
|
|
92
93
|
}
|
|
93
|
-
const w = (
|
|
94
|
+
const w = (e) => v(e, (o, r) => d(r)), I = (e, o) => {
|
|
94
95
|
if (!B(o))
|
|
95
96
|
return {};
|
|
96
97
|
const r = o.children;
|
|
97
98
|
if (!Array.isArray(r) && !x(r))
|
|
98
99
|
return {};
|
|
99
|
-
const
|
|
100
|
-
return Object.keys(
|
|
101
|
-
children: /* @__PURE__ */ s.createElement(b, { props:
|
|
100
|
+
const t = w(e);
|
|
101
|
+
return Object.keys(t).length === 0 ? {} : {
|
|
102
|
+
children: /* @__PURE__ */ s.createElement(b, { props: t, mergeInParentContext: !0 }, r)
|
|
102
103
|
};
|
|
103
|
-
}, M = (
|
|
104
|
-
const
|
|
104
|
+
}, M = (e, o) => {
|
|
105
|
+
const t = h()[e], n = t ? A(t, o) : void 0, i = t ? I(t, o) : void 0;
|
|
105
106
|
return T(
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
t && S(
|
|
108
|
+
t,
|
|
108
109
|
(c, p) => l.includes(
|
|
109
110
|
p
|
|
110
111
|
) || a(c)
|
|
@@ -113,24 +114,24 @@ const w = (t) => v(t, (o, r) => d(r)), I = (t, o) => {
|
|
|
113
114
|
n,
|
|
114
115
|
i
|
|
115
116
|
);
|
|
116
|
-
}, m = f({}), R = () => P(m), D = (
|
|
117
|
-
const { slot: o, component: r, children:
|
|
117
|
+
}, m = f({}), R = () => P(m), D = (e) => {
|
|
118
|
+
const { slot: o, component: r, children: t } = e, i = {
|
|
118
119
|
...R(),
|
|
119
120
|
[r]: o
|
|
120
121
|
};
|
|
121
|
-
return /* @__PURE__ */ s.createElement(m.Provider, { value: i },
|
|
122
|
+
return /* @__PURE__ */ s.createElement(m.Provider, { value: i }, t);
|
|
122
123
|
};
|
|
123
|
-
function O(
|
|
124
|
-
return y((r,
|
|
124
|
+
function O(e, o) {
|
|
125
|
+
return y((r, t) => {
|
|
125
126
|
const { tunnelId: n, wrapWith: i, ...c } = M(
|
|
126
|
-
|
|
127
|
+
e,
|
|
127
128
|
r
|
|
128
129
|
), C = {
|
|
129
|
-
refProp:
|
|
130
|
+
refProp: t,
|
|
130
131
|
...c
|
|
131
132
|
};
|
|
132
133
|
let u = /* @__PURE__ */ s.createElement(o, { ...C });
|
|
133
|
-
return "slot" in r && r.slot && (u = /* @__PURE__ */ s.createElement(D, { slot: r.slot, component:
|
|
134
|
+
return "slot" in r && r.slot && (u = /* @__PURE__ */ s.createElement(D, { slot: r.slot, component: e }, u)), i && (u = g(i, void 0, u)), n && (u = /* @__PURE__ */ s.createElement(E, { id: n }, u)), u;
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
137
|
export {
|
|
@@ -7,8 +7,8 @@ import { PropsContextProvider as b } from "./PropsContextProvider.js";
|
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { d as F } from "./dynamic-ClpUSmEt.js";
|
|
10
|
-
import { F as A } from "./FieldError-
|
|
11
|
-
import { a as P, A as y } from "./Action-
|
|
10
|
+
import { F as A } from "./FieldError-BvH18haz.js";
|
|
11
|
+
import { a as P, A as y } from "./Action-DsQVttvF.js";
|
|
12
12
|
const C = x({}), V = C.Provider, f = () => v(C);
|
|
13
13
|
function D(t) {
|
|
14
14
|
var i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { PropsWithClassName } from '../../lib/types/props';
|
|
2
|
+
import { PropsWithClassName, PropsWithElementType } from '../../lib/types/props';
|
|
3
3
|
type GapSize = "s" | "m" | "l";
|
|
4
|
-
export interface ColumnLayoutProps extends PropsWithChildren, PropsWithClassName {
|
|
4
|
+
export interface ColumnLayoutProps extends PropsWithChildren, PropsWithElementType<"div" | "ul">, PropsWithClassName {
|
|
5
5
|
s?: number[];
|
|
6
6
|
m?: number[];
|
|
7
7
|
l?: number[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PropsWithClassName, PropsWithElementType } from '../../lib/types/props';
|
|
3
|
+
export interface FileCardProps extends PropsWithClassName, PropsWithElementType<"div" | "li"> {
|
|
4
|
+
name: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
onDelete?: () => void;
|
|
7
|
+
sizeInBytes?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const FileCard: React.ForwardRefExoticComponent<FileCardProps & React.RefAttributes<never>>;
|
|
10
|
+
export default FileCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FileSizeText';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { FileCard } from '..';
|
|
3
|
+
declare const meta: Meta<typeof FileCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof FileCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithType: Story;
|
|
8
|
+
export declare const WithSize: Story;
|
|
9
|
+
export declare const WithOnDelete: Story;
|
|
@@ -33,9 +33,11 @@ export { IconEmail } from './IconEmail';
|
|
|
33
33
|
export { IconExtension } from './IconExtension';
|
|
34
34
|
export { IconExternalLink } from './IconExternalLink';
|
|
35
35
|
export { IconFailed } from './IconFailed';
|
|
36
|
+
export { IconFile } from './IconFile';
|
|
36
37
|
export { IconFilter } from './IconFilter';
|
|
37
38
|
export { IconHide } from './IconHide';
|
|
38
39
|
export { IconHome } from './IconHome';
|
|
40
|
+
export { IconImage } from './IconImage';
|
|
39
41
|
export { IconInfo } from './IconInfo';
|
|
40
42
|
export { IconInbox } from './IconInbox';
|
|
41
43
|
export { IconInvoice } from './IconInvoice';
|
|
@@ -47,6 +47,7 @@ import { AlertIconProps } from '../AlertIcon';
|
|
|
47
47
|
import { ListSummaryProps } from '../List/components/ListSummary/ListSummary';
|
|
48
48
|
import { SegmentedControlProps } from '../SegmentedControl';
|
|
49
49
|
import { SegmentProps } from 'src/components/SegmentedControl/components/Segment';
|
|
50
|
+
import { FileCardProps } from '../FileCard';
|
|
50
51
|
import { FileFieldProps } from '../FileField';
|
|
51
52
|
import type * as Aria from "react-aria-components";
|
|
52
53
|
export * from './types';
|
|
@@ -74,6 +75,7 @@ export interface FlowComponentPropsTypes {
|
|
|
74
75
|
DateRangePicker: DateRangePickerProps<Aria.DateValue>;
|
|
75
76
|
FieldDescription: FieldDescriptionProps;
|
|
76
77
|
FieldError: FieldErrorProps;
|
|
78
|
+
FileCard: FileCardProps;
|
|
77
79
|
FileField: FileFieldProps;
|
|
78
80
|
Header: HeaderProps;
|
|
79
81
|
Heading: HeadingProps;
|
|
@@ -27,6 +27,7 @@ export declare const overlayContext: import('react').Context<Partial<{
|
|
|
27
27
|
DateRangePicker: OverlayController | undefined;
|
|
28
28
|
FieldDescription: OverlayController | undefined;
|
|
29
29
|
FieldError: OverlayController | undefined;
|
|
30
|
+
FileCard: OverlayController | undefined;
|
|
30
31
|
FileField: OverlayController | undefined;
|
|
31
32
|
Header: OverlayController | undefined;
|
|
32
33
|
Heading: OverlayController | undefined;
|
|
@@ -23,6 +23,7 @@ export declare const propsContext: import('react').Context<Partial<{
|
|
|
23
23
|
DateRangePicker: import('./types').ComponentPropsContext<"DateRangePicker">;
|
|
24
24
|
FieldDescription: import('./types').ComponentPropsContext<"FieldDescription">;
|
|
25
25
|
FieldError: import('./types').ComponentPropsContext<"FieldError">;
|
|
26
|
+
FileCard: import('./types').ComponentPropsContext<"FileCard">;
|
|
26
27
|
FileField: import('./types').ComponentPropsContext<"FileField">;
|
|
27
28
|
Header: import('./types').ComponentPropsContext<"Header">;
|
|
28
29
|
Heading: import('./types').ComponentPropsContext<"Heading">;
|
|
@@ -83,6 +84,7 @@ export declare const PropsContextProvider: import('react').Provider<Partial<{
|
|
|
83
84
|
DateRangePicker: import('./types').ComponentPropsContext<"DateRangePicker">;
|
|
84
85
|
FieldDescription: import('./types').ComponentPropsContext<"FieldDescription">;
|
|
85
86
|
FieldError: import('./types').ComponentPropsContext<"FieldError">;
|
|
87
|
+
FileCard: import('./types').ComponentPropsContext<"FileCard">;
|
|
86
88
|
FileField: import('./types').ComponentPropsContext<"FileField">;
|
|
87
89
|
Header: import('./types').ComponentPropsContext<"Header">;
|
|
88
90
|
Heading: import('./types').ComponentPropsContext<"Heading">;
|
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.319",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -131,6 +131,15 @@
|
|
|
131
131
|
"types": "./dist/js/types/components/FieldError/index.d.ts",
|
|
132
132
|
"import": "./dist/js/FieldError.js"
|
|
133
133
|
},
|
|
134
|
+
"./FileCard/styles.css": "./dist/css/FileCard.css",
|
|
135
|
+
"./FileCard": {
|
|
136
|
+
"types": "./dist/js/types/components/FileCard/index.d.ts",
|
|
137
|
+
"import": "./dist/js/FileCard.js"
|
|
138
|
+
},
|
|
139
|
+
"./FileCardList": {
|
|
140
|
+
"types": "./dist/js/types/components/FileCardList/index.d.ts",
|
|
141
|
+
"import": "./dist/js/FileCardList.js"
|
|
142
|
+
},
|
|
134
143
|
"./FileField/styles.css": "./dist/css/FileField.css",
|
|
135
144
|
"./FileField": {
|
|
136
145
|
"types": "./dist/js/types/components/FileField/index.d.ts",
|
|
@@ -396,7 +405,7 @@
|
|
|
396
405
|
"@chakra-ui/live-region": "^2.1.0",
|
|
397
406
|
"@internationalized/date": "^3.5.6",
|
|
398
407
|
"@internationalized/string-compiler": "^3.2.5",
|
|
399
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
408
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.319",
|
|
400
409
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
401
410
|
"@react-aria/form": "^3.0.10",
|
|
402
411
|
"@react-aria/utils": "^3.25.3",
|
|
@@ -426,7 +435,7 @@
|
|
|
426
435
|
},
|
|
427
436
|
"devDependencies": {
|
|
428
437
|
"@faker-js/faker": "^9.0.3",
|
|
429
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
438
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.319",
|
|
430
439
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
431
440
|
"@nx/storybook": "^20.0.0",
|
|
432
441
|
"@storybook/addon-a11y": "^8.3.5",
|
|
@@ -521,5 +530,5 @@
|
|
|
521
530
|
}
|
|
522
531
|
}
|
|
523
532
|
},
|
|
524
|
-
"gitHead": "
|
|
533
|
+
"gitHead": "a6da762f147a12affae23f0d365b32c2e7d08638"
|
|
525
534
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import e from "react";
|
|
4
|
-
import g from "clsx";
|
|
5
|
-
const d = "flow--column-layout--column-layout-container", v = "flow--column-layout", y = {
|
|
6
|
-
columnLayoutContainer: d,
|
|
7
|
-
columnLayout: v
|
|
8
|
-
}, a = (o) => {
|
|
9
|
-
if (o.length < 1)
|
|
10
|
-
throw new Error("Column layout array is empty");
|
|
11
|
-
return o.map((l) => `${l}fr`).join(" ");
|
|
12
|
-
}, h = (o) => {
|
|
13
|
-
const {
|
|
14
|
-
children: u,
|
|
15
|
-
className: l,
|
|
16
|
-
s: n,
|
|
17
|
-
m: t,
|
|
18
|
-
l: c,
|
|
19
|
-
gap: m = "m",
|
|
20
|
-
rowGap: i = m,
|
|
21
|
-
columnGap: p = m
|
|
22
|
-
} = o, s = n ? a(n) : void 0, r = t ? a(t) : n ? s : void 0, f = c ? a(c) : t || n ? r : void 0, C = {
|
|
23
|
-
"--column-layout--columns-s": s,
|
|
24
|
-
"--column-layout--columns-m": r,
|
|
25
|
-
"--column-layout--columns-l": f,
|
|
26
|
-
"--column-layout--row-gap": `var(--column-layout--gap--${i})`,
|
|
27
|
-
"--column-layout--column-gap": `var(--column-layout--gap--${p})`
|
|
28
|
-
}, L = g(y.columnLayoutContainer, l);
|
|
29
|
-
return /* @__PURE__ */ e.createElement("div", { className: L, style: C }, /* @__PURE__ */ e.createElement("div", { className: y.columnLayout }, u));
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
h as C
|
|
33
|
-
};
|