@mittwald/flow-react-components 1.6.0-next.28 → 1.6.0-next.29

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.
@@ -7,18 +7,14 @@ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/components/List/components/ListSummary/ListSummary.tsx
8
8
  /** @flr-generate all */
9
9
  var ListSummary = flowComponent("ListSummary", (props) => {
10
- const { children, position = "top", ref } = props;
10
+ const { position = "top", className, ...rest } = props;
11
11
  if (position === "bottom") return /* @__PURE__ */ jsx("footer", {
12
- ref,
13
- className: clsx(ListSummary_module_default.listSummary, ListSummary_module_default.bottom),
14
- ...props,
15
- children
12
+ ...rest,
13
+ className: clsx(ListSummary_module_default.listSummary, ListSummary_module_default.bottom, className)
16
14
  });
17
15
  return /* @__PURE__ */ jsx("header", {
18
- ref,
19
- className: clsx(ListSummary_module_default.listSummary, ListSummary_module_default.top),
20
- ...props,
21
- children
16
+ ...rest,
17
+ className: clsx(ListSummary_module_default.listSummary, ListSummary_module_default.top, className)
22
18
  });
23
19
  });
24
20
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ListSummary.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/List/components/ListSummary/ListSummary.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport styles from \"./ListSummary.module.scss\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport clsx from \"clsx\";\n\nexport interface ListSummaryProps\n extends FlowComponentProps, PropsWithChildren {\n /** Whether the summary is placed above or underneath the list @default \"top\" */\n position?: \"top\" | \"bottom\";\n}\n\n/** @flr-generate all */\nexport const ListSummary = flowComponent(\"ListSummary\", (props) => {\n const { children, position = \"top\", ref } = props;\n\n if (position === \"bottom\") {\n return (\n <footer\n ref={ref}\n className={clsx(styles.listSummary, styles.bottom)}\n {...props}\n >\n {children}\n </footer>\n );\n }\n\n return (\n <header\n ref={ref}\n className={clsx(styles.listSummary, styles.top)}\n {...props}\n >\n {children}\n </header>\n );\n});\n\nexport default ListSummary;\n"],"mappings":";;;;;;;;AAaA,IAAa,cAAc,cAAc,gBAAgB,UAAU;CACjE,MAAM,EAAE,UAAU,WAAW,OAAO,QAAQ;CAE5C,IAAI,aAAa,UACf,OACE,oBAAC,UAAD;EACO;EACL,WAAW,KAAKA,2BAAO,aAAaA,2BAAO,MAAM;EACjD,GAAI;EAEH;CACK,CAAA;CAIZ,OACE,oBAAC,UAAD;EACO;EACL,WAAW,KAAKA,2BAAO,aAAaA,2BAAO,GAAG;EAC9C,GAAI;EAEH;CACK,CAAA;AAEZ,CAAC"}
1
+ {"version":3,"file":"ListSummary.mjs","names":["styles"],"sources":["../../../../../../../../../src/components/List/components/ListSummary/ListSummary.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport styles from \"./ListSummary.module.scss\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport clsx from \"clsx\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\n\nexport interface ListSummaryProps\n extends PropsWithClassName, FlowComponentProps, PropsWithChildren {\n /** Whether the summary is placed above or underneath the list @default \"top\" */\n position?: \"top\" | \"bottom\";\n}\n\n/** @flr-generate all */\nexport const ListSummary = flowComponent(\"ListSummary\", (props) => {\n const { position = \"top\", className, ...rest } = props;\n\n if (position === \"bottom\") {\n return (\n <footer\n {...rest}\n className={clsx(styles.listSummary, styles.bottom, className)}\n />\n );\n }\n\n return (\n <header\n {...rest}\n className={clsx(styles.listSummary, styles.top, className)}\n />\n );\n});\n\nexport default ListSummary;\n"],"mappings":";;;;;;;;AAcA,IAAa,cAAc,cAAc,gBAAgB,UAAU;CACjE,MAAM,EAAE,WAAW,OAAO,WAAW,GAAG,SAAS;CAEjD,IAAI,aAAa,UACf,OACE,oBAAC,UAAD;EACE,GAAI;EACJ,WAAW,KAAKA,2BAAO,aAAaA,2BAAO,QAAQ,SAAS;CAC7D,CAAA;CAIL,OACE,oBAAC,UAAD;EACE,GAAI;EACJ,WAAW,KAAKA,2BAAO,aAAaA,2BAAO,KAAK,SAAS;CAC1D,CAAA;AAEL,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { FlowComponentProps } from '../../../../lib/componentFactory/flowComponent';
3
- export interface ListSummaryProps extends FlowComponentProps, PropsWithChildren {
3
+ import { PropsWithClassName } from '../../../../lib/types/props';
4
+ export interface ListSummaryProps extends PropsWithClassName, FlowComponentProps, PropsWithChildren {
4
5
  /** Whether the summary is placed above or underneath the list @default "top" */
5
6
  position?: "top" | "bottom";
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "1.6.0-next.28",
3
+ "version": "1.6.0-next.29",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://flow.mittwald.de",
@@ -84,9 +84,9 @@
84
84
  "@internationalized/string-compiler": "^3.4.1",
85
85
  "@lezer/common": "^1.5.2",
86
86
  "@lezer/highlight": "^1.2.3",
87
- "@mittwald/flow-icons": "^1.6.0-next.28",
87
+ "@mittwald/flow-icons": "^1.6.0-next.29",
88
88
  "@mittwald/password-tools-js": "^3.0.0",
89
- "@mittwald/react-tunnel": "^1.6.0-next.28",
89
+ "@mittwald/react-tunnel": "^1.6.0-next.29",
90
90
  "@mittwald/react-use-promise": "^4.2.2",
91
91
  "@react-aria/form": "^3.2.1",
92
92
  "@react-aria/i18n": "^3.13.1",
@@ -139,13 +139,13 @@
139
139
  "@internationalized/date": "^3.12.3",
140
140
  "@lezer/generator": "^1.8.0",
141
141
  "@lezer/lr": "^1.4.10",
142
- "@mittwald/flow-components-base": "1.6.0-next.28",
143
- "@mittwald/flow-core": "1.6.0-next.28",
144
- "@mittwald/flow-design-tokens": "1.6.0-next.28",
145
- "@mittwald/flow-icons-base": "1.6.0-next.28",
142
+ "@mittwald/flow-components-base": "1.6.0-next.29",
143
+ "@mittwald/flow-core": "1.6.0-next.29",
144
+ "@mittwald/flow-design-tokens": "1.6.0-next.29",
145
+ "@mittwald/flow-icons-base": "1.6.0-next.29",
146
146
  "@mittwald/react-use-promise": "^4.2.2",
147
147
  "@mittwald/remote-dom-react": "1.2.2-mittwald.10",
148
- "@mittwald/typescript-config": "1.6.0-next.28",
148
+ "@mittwald/typescript-config": "1.6.0-next.29",
149
149
  "@nx/storybook": "^22.7.6",
150
150
  "@storybook/addon-a11y": "^10.5.10",
151
151
  "@storybook/addon-actions": "^9.0.8",
@@ -199,7 +199,7 @@
199
199
  },
200
200
  "peerDependencies": {
201
201
  "@internationalized/date": "^3.12.2",
202
- "@mittwald/flow-icons-pro": "1.6.0-next.28",
202
+ "@mittwald/flow-icons-pro": "1.6.0-next.29",
203
203
  "@mittwald/react-use-promise": "^4.2.2",
204
204
  "next": "^16.2.3",
205
205
  "react": "^19.2.0",
@@ -223,5 +223,5 @@
223
223
  "browserslist": [
224
224
  "baseline widely available"
225
225
  ],
226
- "gitHead": "13e8c363cefcd6ba936a52b837552f0c08dd5c02"
226
+ "gitHead": "214219ee7d7d9f6b0f375c7db20e4e60299dcd11"
227
227
  }