@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.
Files changed (131) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/css/FileCard.css +1 -0
  3. package/dist/css/globals.css +1 -1
  4. package/dist/js/{Accordion-B4NzrsJJ.js → Accordion-DVuqfOqd.js} +3 -3
  5. package/dist/js/Accordion.js +1 -1
  6. package/dist/js/{Action-CVaW6nwX.js → Action-DsQVttvF.js} +1 -1
  7. package/dist/js/Action.js +1 -1
  8. package/dist/js/{ActionGroup-CYlqSCcw.js → ActionGroup-D7pgHibo.js} +1 -1
  9. package/dist/js/ActionGroup.js +1 -1
  10. package/dist/js/Alert.js +2 -2
  11. package/dist/js/AlertBadge.js +3 -3
  12. package/dist/js/{AlertIcon-BomvhKhj.js → AlertIcon-Ca6DaRUI.js} +4 -4
  13. package/dist/js/AlertIcon.js +1 -1
  14. package/dist/js/Avatar-DV-ptc3M.js +60 -0
  15. package/dist/js/Avatar.js +3 -57
  16. package/dist/js/{Badge-eFDPYpLQ.js → Badge-CT8n21Li.js} +4 -4
  17. package/dist/js/Badge.js +1 -1
  18. package/dist/js/Breadcrumb.js +2 -2
  19. package/dist/js/{Button-D36qUyQB.js → Button-DXgQ5lAy.js} +5 -5
  20. package/dist/js/Button.js +1 -1
  21. package/dist/js/{CalendarHeader-C1y9QUnp.js → CalendarHeader-BWiFjVQp.js} +4 -4
  22. package/dist/js/{Checkbox-BgFVV3Tl.js → Checkbox-DBwDLJpW.js} +4 -4
  23. package/dist/js/Checkbox.js +1 -1
  24. package/dist/js/{CheckboxButton-BjU9Jo10.js → CheckboxButton-g3LXFThl.js} +2 -2
  25. package/dist/js/CheckboxButton.js +1 -1
  26. package/dist/js/CheckboxGroup.js +4 -4
  27. package/dist/js/CodeBlock.js +1 -1
  28. package/dist/js/ColumnLayout-CLtV-itI.js +35 -0
  29. package/dist/js/ColumnLayout.js +1 -1
  30. package/dist/js/{Content-70JqGVUm.js → Content-DW8OnKPj.js} +1 -1
  31. package/dist/js/Content.js +1 -1
  32. package/dist/js/ContextMenu.js +3 -3
  33. package/dist/js/{ContextMenuTrigger-B8mjB6Ki.js → ContextMenuTrigger-BbYyy0an.js} +3 -3
  34. package/dist/js/ContextualHelp.js +4 -4
  35. package/dist/js/{CopyButton-CFR15ln1.js → CopyButton-Br-KQ5Tt.js} +5 -5
  36. package/dist/js/CopyButton.js +1 -1
  37. package/dist/js/CounterBadge.js +1 -1
  38. package/dist/js/DatePicker.js +7 -7
  39. package/dist/js/DateRangePicker.js +7 -7
  40. package/dist/js/{FieldDescription-B-Ddf78p.js → FieldDescription-CZAnUHqw.js} +2 -2
  41. package/dist/js/FieldDescription.js +1 -1
  42. package/dist/js/{FieldError-nM97A_ZI.js → FieldError-BvH18haz.js} +3 -3
  43. package/dist/js/FieldError.js +1 -1
  44. package/dist/js/FileCard.js +55 -0
  45. package/dist/js/FileCardList.js +18 -0
  46. package/dist/js/FileField.js +1 -1
  47. package/dist/js/{Header-Br1rkhJ6.js → Header-lMGDqbwd.js} +1 -1
  48. package/dist/js/Header.js +1 -1
  49. package/dist/js/HeaderNavigation.js +1 -1
  50. package/dist/js/{Heading-CqcX54zX.js → Heading-Be_nT-nd.js} +1 -1
  51. package/dist/js/Heading.js +1 -1
  52. package/dist/js/{Icon-CBb5Yu1u.js → Icon-DGqvukLZ.js} +1 -1
  53. package/dist/js/Icon.js +1 -1
  54. package/dist/js/{IconCalendar-KzWm9DDf.js → IconCalendar-BjcM88rZ.js} +1 -1
  55. package/dist/js/{IconCheck-4amW_y36.js → IconCheck-CaDmfTvA.js} +1 -1
  56. package/dist/js/{IconCheckboxEmpty-Bz98RJL2.js → IconCheckboxEmpty-Nnjs5-Pv.js} +1 -1
  57. package/dist/js/{IconCheckboxIndeterminate-CXxIYfWr.js → IconCheckboxIndeterminate-DZPPM9nl.js} +1 -1
  58. package/dist/js/{IconChevronDown-CwS8GTxT.js → IconChevronDown-BtCeHe7W.js} +1 -1
  59. package/dist/js/{IconChevronRight-qZD8x47n.js → IconChevronRight-CrBdlFnx.js} +1 -1
  60. package/dist/js/{IconChevronUp-CPPaEZWw.js → IconChevronUp-5KAeHjf3.js} +1 -1
  61. package/dist/js/{IconClose-D3eGA5SA.js → IconClose-B9jMC5hC.js} +1 -1
  62. package/dist/js/{IconContextMenu-Ceb_NtGj.js → IconContextMenu-CZgbKH5A.js} +1 -1
  63. package/dist/js/{IconCopy-C8vJzw7-.js → IconCopy-D1FOjBP7.js} +1 -1
  64. package/dist/js/{IconDanger-DiLFhqHO.js → IconDanger-nKwA_7lj.js} +1 -1
  65. package/dist/js/{IconExternalLink-Dn7yCGfS.js → IconExternalLink-D_EgCFyx.js} +1 -1
  66. package/dist/js/IconImage-CX5G6_nB.js +10 -0
  67. package/dist/js/{IconInfo-B58Nusbi.js → IconInfo-CDr485eL.js} +1 -1
  68. package/dist/js/{IconPending-LgjVl3ZR.js → IconPending-DsQR898t.js} +1 -1
  69. package/dist/js/{IconPlus-Dik3sT_d.js → IconPlus-CdffT7DS.js} +1 -1
  70. package/dist/js/{IconRadioOn-C6o-TmBn.js → IconRadioOn-CR0g7TLz.js} +1 -1
  71. package/dist/js/{IconSearch-hqOpuhlg.js → IconSearch-BIWWMdCF.js} +1 -1
  72. package/dist/js/{IconSucceeded-BuCvAZZd.js → IconSucceeded-qktd9Hxt.js} +1 -1
  73. package/dist/js/{IconView-C-bJRfad.js → IconView-Brx4jO4W.js} +1 -1
  74. package/dist/js/{IconWarning-BqxyFUTa.js → IconWarning-BKXkiE95.js} +1 -1
  75. package/dist/js/Icons.js +33 -30
  76. package/dist/js/Image.js +1 -1
  77. package/dist/js/Initials.js +1 -1
  78. package/dist/js/{Label-BNcY7JBl.js → Label-dr-fwDKa.js} +1 -1
  79. package/dist/js/Label.js +1 -1
  80. package/dist/js/LayoutCard.js +1 -1
  81. package/dist/js/{Link-CQ9RLwJK.js → Link-Dk1RuBZL.js} +3 -3
  82. package/dist/js/Link.js +1 -1
  83. package/dist/js/List.js +14 -14
  84. package/dist/js/{LoadingSpinner-BK9KyYcE.js → LoadingSpinner-BypSuKm_.js} +2 -2
  85. package/dist/js/LoadingSpinner.js +1 -1
  86. package/dist/js/{MenuItem-ims4Vdth.js → MenuItem-BHTxlZbm.js} +5 -5
  87. package/dist/js/MenuItem.js +1 -1
  88. package/dist/js/Modal.js +6 -6
  89. package/dist/js/Navigation.js +2 -2
  90. package/dist/js/Notification.js +5 -5
  91. package/dist/js/NumberField.js +7 -7
  92. package/dist/js/{Popover-DPAVgKw1.js → Popover-BoLYvpo2.js} +1 -1
  93. package/dist/js/Popover.js +2 -2
  94. package/dist/js/RadioGroup.js +5 -5
  95. package/dist/js/{SearchField-DtByTOGJ.js → SearchField-d7pa2xgi.js} +6 -6
  96. package/dist/js/SearchField.js +1 -1
  97. package/dist/js/{Section-D1KKijDG.js → Section-Cjyya2BH.js} +1 -1
  98. package/dist/js/Section.js +1 -1
  99. package/dist/js/SegmentedControl.js +4 -4
  100. package/dist/js/Select.js +5 -5
  101. package/dist/js/Slider.js +4 -4
  102. package/dist/js/Switch.js +5 -5
  103. package/dist/js/Tabs.js +7 -7
  104. package/dist/js/{Text-CPD7mr9M.js → Text-_cq3RnbD.js} +1 -1
  105. package/dist/js/Text.js +1 -1
  106. package/dist/js/TextArea.js +2 -2
  107. package/dist/js/TextField.js +2 -2
  108. package/dist/js/{TextFieldBase-g1cXK8oC.js → TextFieldBase-02d5uMe8.js} +2 -2
  109. package/dist/js/TimeField.js +2 -2
  110. package/dist/js/all.css +1 -1
  111. package/dist/js/{flowComponent-CdFTojQw.js → flowComponent-1wOIvUIq.js} +32 -31
  112. package/dist/js/react-hook-form.js +2 -2
  113. package/dist/js/types/components/ColumnLayout/ColumnLayout.d.ts +2 -2
  114. package/dist/js/types/components/FileCard/FileCard.d.ts +10 -0
  115. package/dist/js/types/components/FileCard/components/FileSizeText/FileSizeText.d.ts +6 -0
  116. package/dist/js/types/components/FileCard/components/FileSizeText/index.d.ts +1 -0
  117. package/dist/js/types/components/FileCard/index.d.ts +3 -0
  118. package/dist/js/types/components/FileCard/stories/Default.stories.d.ts +9 -0
  119. package/dist/js/types/components/FileCard/stories/EdgeCases.stories.d.ts +6 -0
  120. package/dist/js/types/components/FileCardList/FileCardList.d.ts +5 -0
  121. package/dist/js/types/components/FileCardList/index.d.ts +3 -0
  122. package/dist/js/types/components/FileCardList/stories/Default.stories.d.ts +6 -0
  123. package/dist/js/types/components/Icon/components/icons/IconFile.d.ts +4 -0
  124. package/dist/js/types/components/Icon/components/icons/IconImage.d.ts +4 -0
  125. package/dist/js/types/components/Icon/components/icons/index.d.ts +2 -0
  126. package/dist/js/types/components/propTypes/index.d.ts +2 -0
  127. package/dist/js/types/lib/controller/overlay/context.d.ts +1 -0
  128. package/dist/js/types/lib/propsContext/propsContext.d.ts +2 -0
  129. package/dist/js/types/lib/slotContext/slotContext.d.ts +1 -0
  130. package/package.json +13 -4
  131. 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 k = {
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
- k
71
+ F
71
72
  );
72
- function a(t) {
73
- return !!t && typeof t == "object" && "__dynamicProp" in t;
73
+ function a(e) {
74
+ return !!e && typeof e == "object" && "__dynamicProp" in e;
74
75
  }
75
- function d(t) {
76
- return typeof t == "string" && l.includes(t);
76
+ function d(e) {
77
+ return typeof e == "string" && l.includes(e);
77
78
  }
78
- function F(t) {
79
- return !d(t);
79
+ function k(e) {
80
+ return !d(e);
80
81
  }
81
- const A = (t, o) => {
82
+ const A = (e, o) => {
82
83
  const r = {};
83
- for (const e in t)
84
- if (F(e)) {
85
- const n = t[e];
86
- a(n) && (r[e] = n.__dynamicProp(o));
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(t) {
91
- return !!t && typeof t == "object" && "children" in t && !!t.children;
91
+ function B(e) {
92
+ return !!e && typeof e == "object" && "children" in e && !!e.children;
92
93
  }
93
- const w = (t) => v(t, (o, r) => d(r)), I = (t, o) => {
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 e = w(t);
100
- return Object.keys(e).length === 0 ? {} : {
101
- children: /* @__PURE__ */ s.createElement(b, { props: e, mergeInParentContext: !0 }, r)
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 = (t, o) => {
104
- const e = h()[t], n = e ? A(e, o) : void 0, i = e ? I(e, o) : void 0;
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
- e && S(
107
- e,
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 = (t) => {
117
- const { slot: o, component: r, children: e } = t, i = {
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 }, e);
122
+ return /* @__PURE__ */ s.createElement(m.Provider, { value: i }, t);
122
123
  };
123
- function O(t, o) {
124
- return y((r, e) => {
124
+ function O(e, o) {
125
+ return y((r, t) => {
125
126
  const { tunnelId: n, wrapWith: i, ...c } = M(
126
- t,
127
+ e,
127
128
  r
128
129
  ), C = {
129
- refProp: e,
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: t }, u)), i && (u = g(i, void 0, u)), n && (u = /* @__PURE__ */ s.createElement(E, { id: n }, u)), u;
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-nM97A_ZI.js";
11
- import { a as P, A as y } from "./Action-CVaW6nwX.js";
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,6 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ sizeInBytes: number;
4
+ }
5
+ export declare const FileSizeText: FC<Props>;
6
+ export default FileSizeText;
@@ -0,0 +1 @@
1
+ export * from './FileSizeText';
@@ -0,0 +1,3 @@
1
+ import { FileCard } from './FileCard';
2
+ export { type FileCardProps, FileCard } from './FileCard';
3
+ export default FileCard;
@@ -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;
@@ -0,0 +1,6 @@
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 LongName: Story;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { ColumnLayoutProps } from '../ColumnLayout';
3
+ export type FileCardListProps = Omit<ColumnLayoutProps, "elementType">;
4
+ export declare const FileCardList: FC<FileCardListProps>;
5
+ export default FileCardList;
@@ -0,0 +1,3 @@
1
+ import { FileCardList } from './FileCardList';
2
+ export { type FileCardListProps, FileCardList } from './FileCardList';
3
+ export default FileCardList;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FileCardList } from '..';
3
+ declare const meta: Meta<typeof FileCardList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FileCardList>;
6
+ export declare const Default: Story;
@@ -0,0 +1,4 @@
1
+ import { ComponentProps, FC } from 'react';
2
+ import { Icon } from '../..';
3
+ export declare const IconFile: FC<Omit<ComponentProps<typeof Icon>, "children">>;
4
+ export default IconFile;
@@ -0,0 +1,4 @@
1
+ import { ComponentProps, FC } from 'react';
2
+ import { Icon } from '../..';
3
+ export declare const IconImage: FC<Omit<ComponentProps<typeof Icon>, "children">>;
4
+ export default IconImage;
@@ -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">;
@@ -23,6 +23,7 @@ export declare const slotContext: import('react').Context<Partial<{
23
23
  DateRangePicker: string;
24
24
  FieldDescription: string;
25
25
  FieldError: string;
26
+ FileCard: string;
26
27
  FileField: string;
27
28
  Header: string;
28
29
  Heading: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.318",
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.318",
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.318",
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": "b5e6a5c600397f6bdd42fb8c2e385d6ff23539ef"
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
- };