@mittwald/flow-react-components 0.1.0-alpha.189 → 0.1.0-alpha.190
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/{Accordion-44t1KJbp.js → Accordion-C3Df-FUx.js} +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Avatar.js +12 -11
- package/dist/Button-CVDWL-od.js +129 -0
- package/dist/Button.js +1 -1
- package/dist/CopyButton.js +22 -13
- package/dist/Icons.js +101 -100
- package/dist/List.js +276 -241
- package/dist/Modal.js +1 -1
- package/dist/Navigation.js +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NumberField.js +17 -17
- package/dist/{SearchField-BxKrfsvy.js → SearchField-Dbr_5Zy4.js} +1 -1
- package/dist/SearchField.js +1 -1
- package/dist/Slider.js +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +1 -1
- package/dist/types/components/Icon/components/icons/IconContractPartner.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconGrid.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconList.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconPayment.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/IconRefresh.d.ts +5 -0
- package/dist/types/components/Icon/components/icons/index.d.ts +6 -5
- package/dist/types/components/Label/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/List/model/filter/Filter.d.ts +10 -10
- package/dist/types/components/List/model/filter/FilterValue.d.ts +13 -0
- package/dist/types/components/List/model/filter/types.d.ts +2 -1
- package/dist/types/components/List/model/types.d.ts +7 -2
- package/dist/types/components/List/setupComponents/ListFilter.d.ts +4 -2
- package/dist/types/components/List/typedList.d.ts +3 -249
- package/dist/types/components/Text/stories/Default.stories.d.ts +3 -0
- package/package.json +46 -46
- package/dist/Button-Bewd_wSa.js +0 -117
|
@@ -6,5 +6,8 @@ export default meta;
|
|
|
6
6
|
type Story = StoryObj<typeof Text>;
|
|
7
7
|
export declare const Default: Story;
|
|
8
8
|
export declare const RawText: Story;
|
|
9
|
+
export declare const UnorderedList: Story;
|
|
10
|
+
export declare const OrderedList: Story;
|
|
11
|
+
export declare const SmallText: Story;
|
|
9
12
|
export declare const Dark: Story;
|
|
10
13
|
export declare const Light: Story;
|
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.190",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -284,91 +284,91 @@
|
|
|
284
284
|
"dependencies": {
|
|
285
285
|
"@chakra-ui/live-region": "^2.1.0",
|
|
286
286
|
"@internationalized/string-compiler": "^3.2.4",
|
|
287
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
287
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.190",
|
|
288
288
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
289
|
-
"@react-aria/utils": "^3.
|
|
290
|
-
"@react-types/shared": "^3.
|
|
291
|
-
"@storybook/test": "^8.2.4",
|
|
289
|
+
"@react-aria/utils": "^3.25.1",
|
|
290
|
+
"@react-types/shared": "^3.24.1",
|
|
292
291
|
"@tabler/icons-react": "^3.11.0",
|
|
293
|
-
"@tanstack/react-table": "^8.
|
|
292
|
+
"@tanstack/react-table": "^8.20.1",
|
|
294
293
|
"@types/luxon": "^3.4.2",
|
|
295
294
|
"clsx": "^2.1.1",
|
|
296
295
|
"copy-to-clipboard": "^3.3.3",
|
|
297
296
|
"dot-prop": "^9.0.0",
|
|
298
|
-
"framer-motion": "^11.3.
|
|
299
|
-
"html-react-parser": "^5.1.
|
|
297
|
+
"framer-motion": "^11.3.21",
|
|
298
|
+
"html-react-parser": "^5.1.12",
|
|
300
299
|
"invariant": "^2.2.4",
|
|
301
|
-
"luxon": "^3.
|
|
300
|
+
"luxon": "^3.5.0",
|
|
302
301
|
"mobx": "^6.13.1",
|
|
303
302
|
"mobx-react-lite": "^4.0.7",
|
|
304
303
|
"object-code": "^1.3.3",
|
|
305
|
-
"react-aria": "^3.
|
|
306
|
-
"react-aria-components": "^1.
|
|
304
|
+
"react-aria": "^3.34.1",
|
|
305
|
+
"react-aria-components": "^1.3.1",
|
|
307
306
|
"react-children-utilities": "^2.10.0",
|
|
308
|
-
"react-stately": "^3.
|
|
309
|
-
"remeda": "^2.
|
|
307
|
+
"react-stately": "^3.32.1",
|
|
308
|
+
"remeda": "^2.7.0",
|
|
310
309
|
"use-callback-ref": "^1.3.2"
|
|
311
310
|
},
|
|
312
311
|
"devDependencies": {
|
|
313
312
|
"@faker-js/faker": "^8.4.1",
|
|
314
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
313
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.190",
|
|
315
314
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
316
|
-
"@nx/storybook": "^19.5.
|
|
317
|
-
"@storybook/addon-a11y": "^8.2.
|
|
318
|
-
"@storybook/addon-actions": "^8.2.
|
|
319
|
-
"@storybook/addon-essentials": "^8.2.
|
|
320
|
-
"@storybook/addon-interactions": "^8.2.
|
|
321
|
-
"@storybook/addon-links": "^8.2.
|
|
322
|
-
"@storybook/blocks": "^8.2.
|
|
323
|
-
"@storybook/components": "^8.2.
|
|
324
|
-
"@storybook/core-events": "^8.2.
|
|
325
|
-
"@storybook/manager-api": "^8.2.
|
|
326
|
-
"@storybook/preview-api": "^8.2.
|
|
327
|
-
"@storybook/react": "^8.2.
|
|
328
|
-
"@storybook/react-vite": "^8.2.
|
|
329
|
-
"@storybook/
|
|
330
|
-
"@
|
|
331
|
-
"@testing-library/
|
|
315
|
+
"@nx/storybook": "^19.5.6",
|
|
316
|
+
"@storybook/addon-a11y": "^8.2.7",
|
|
317
|
+
"@storybook/addon-actions": "^8.2.7",
|
|
318
|
+
"@storybook/addon-essentials": "^8.2.7",
|
|
319
|
+
"@storybook/addon-interactions": "^8.2.7",
|
|
320
|
+
"@storybook/addon-links": "^8.2.7",
|
|
321
|
+
"@storybook/blocks": "^8.2.7",
|
|
322
|
+
"@storybook/components": "^8.2.7",
|
|
323
|
+
"@storybook/core-events": "^8.2.7",
|
|
324
|
+
"@storybook/manager-api": "^8.2.7",
|
|
325
|
+
"@storybook/preview-api": "^8.2.7",
|
|
326
|
+
"@storybook/react": "^8.2.7",
|
|
327
|
+
"@storybook/react-vite": "^8.2.7",
|
|
328
|
+
"@storybook/test": "^8.2.7",
|
|
329
|
+
"@storybook/theming": "^8.2.7",
|
|
330
|
+
"@testing-library/dom": "^10.4.0",
|
|
331
|
+
"@testing-library/jest-dom": "6.4.7",
|
|
332
332
|
"@testing-library/react": "~16.0.0",
|
|
333
333
|
"@testing-library/user-event": "^14.5.2",
|
|
334
334
|
"@types/invariant": "^2.2.37",
|
|
335
|
-
"@types/node": "20.14.
|
|
335
|
+
"@types/node": "20.14.14",
|
|
336
336
|
"@types/prettier": "^3.0.0",
|
|
337
337
|
"@types/prop-types": "^15.7.12",
|
|
338
338
|
"@types/react": "^18.3.3",
|
|
339
339
|
"@types/react-dom": "^18.3.0",
|
|
340
340
|
"@types/rollup": "^0.54.0",
|
|
341
341
|
"@vitejs/plugin-react": "^4.3.1",
|
|
342
|
-
"@vitest/coverage-v8": "~2.0.
|
|
342
|
+
"@vitest/coverage-v8": "~2.0.5",
|
|
343
343
|
"decamelize": "^6.0.0",
|
|
344
344
|
"expect-type": "^0.19.0",
|
|
345
345
|
"fs-jetpack": "^5.1.0",
|
|
346
346
|
"happy-dom": "^14.12.3",
|
|
347
347
|
"next": "^14.2.5",
|
|
348
|
-
"nx": "^19.5.
|
|
349
|
-
"postcss": "^8.4.
|
|
348
|
+
"nx": "^19.5.6",
|
|
349
|
+
"postcss": "^8.4.40",
|
|
350
350
|
"postcss-nested-import": "^1.3.0",
|
|
351
|
-
"postcss-nesting": "^
|
|
351
|
+
"postcss-nesting": "^13.0.0",
|
|
352
352
|
"prettier": "^3.3.3",
|
|
353
353
|
"prop-types": "^15.8.1",
|
|
354
354
|
"react": "^18.3.1",
|
|
355
355
|
"react-dom": "^18.3.1",
|
|
356
356
|
"react-element-to-jsx-string": "^15.0.0",
|
|
357
|
-
"react-hook-form": "^7.52.
|
|
358
|
-
"rollup": "^4.
|
|
357
|
+
"react-hook-form": "^7.52.2",
|
|
358
|
+
"rollup": "^4.20.0",
|
|
359
359
|
"sass": "^1.77.8",
|
|
360
|
-
"storybook": "^8.2.
|
|
361
|
-
"storybook-addon-rtl": "^1.0.
|
|
362
|
-
"tsx": "^4.16.
|
|
363
|
-
"typescript": "^5.5.
|
|
360
|
+
"storybook": "^8.2.7",
|
|
361
|
+
"storybook-addon-rtl": "^1.0.1",
|
|
362
|
+
"tsx": "^4.16.5",
|
|
363
|
+
"typescript": "^5.5.4",
|
|
364
364
|
"typescript-plugin-css-modules": "^5.1.0",
|
|
365
|
-
"vite": "^5.3.
|
|
365
|
+
"vite": "^5.3.5",
|
|
366
366
|
"vite-plugin-banner": "^0.7.1",
|
|
367
367
|
"vite-plugin-checker": "^0.7.2",
|
|
368
|
-
"vite-plugin-dts": "^4.0.0-beta.
|
|
368
|
+
"vite-plugin-dts": "^4.0.0-beta.2",
|
|
369
369
|
"vite-plugin-externalize-deps": "^0.8.0",
|
|
370
|
-
"vitest": "~2.0.
|
|
371
|
-
"yaml": "^2.
|
|
370
|
+
"vitest": "~2.0.5",
|
|
371
|
+
"yaml": "^2.5.0"
|
|
372
372
|
},
|
|
373
373
|
"peerDependencies": {
|
|
374
374
|
"@mittwald/react-use-promise": "^2.3.12",
|
|
@@ -388,5 +388,5 @@
|
|
|
388
388
|
"optional": true
|
|
389
389
|
}
|
|
390
390
|
},
|
|
391
|
-
"gitHead": "
|
|
391
|
+
"gitHead": "f7d2dd8a0feae45eb9db273cee4c5a895839f8aa"
|
|
392
392
|
}
|
package/dist/Button-Bewd_wSa.js
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import o, { useEffect as x } from "react";
|
|
4
|
-
import * as F from "react-aria-components";
|
|
5
|
-
import E from "clsx";
|
|
6
|
-
import { C as y } from "./ClearPropsContext-CUvsbMn8.js";
|
|
7
|
-
import { P as C } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
8
|
-
import "@react-aria/utils";
|
|
9
|
-
import "./propsContext-DzAKlmhS.js";
|
|
10
|
-
import "remeda";
|
|
11
|
-
import "@tabler/icons-react";
|
|
12
|
-
import "./Icon-CUhvR1IT.js";
|
|
13
|
-
import { I as h, a as I } from "./IconSucceeded-DLE96uUC.js";
|
|
14
|
-
import { W as f } from "./Wrap-DGT1h1o3.js";
|
|
15
|
-
import { T as N } from "./Text-DQmfbsPC.js";
|
|
16
|
-
import { f as B } from "./flowComponent-COVzhVCB.js";
|
|
17
|
-
import { L as k } from "./LoadingSpinner-BwRfUBmo.js";
|
|
18
|
-
import { useLocalizedStringFormatter as A } from "react-aria";
|
|
19
|
-
import { useLiveRegion as D } from "@chakra-ui/live-region";
|
|
20
|
-
const T = "flow--button", z = "flow--button--content", L = "flow--button--state-icon", R = "flow--button--avatar", K = "flow--button--icon", U = "flow--button--text", W = "flow--button--counter-badge", $ = "flow--button--is-succeeded", j = "flow--button--is-failed", q = "flow--button--is-pending", G = "flow--button--plain", H = "flow--button--primary", J = "flow--button--solid", M = "flow--button--aria-disabled", O = "flow--button--accent", Q = "flow--button--danger", V = "flow--button--secondary", X = "flow--button--dark", Y = "flow--button--light", Z = "flow--button--soft", t = {
|
|
21
|
-
button: T,
|
|
22
|
-
content: z,
|
|
23
|
-
stateIcon: L,
|
|
24
|
-
avatar: R,
|
|
25
|
-
icon: K,
|
|
26
|
-
text: U,
|
|
27
|
-
counterBadge: W,
|
|
28
|
-
isSucceeded: $,
|
|
29
|
-
isFailed: j,
|
|
30
|
-
isPending: q,
|
|
31
|
-
plain: G,
|
|
32
|
-
"size-s": "flow--button--size-s",
|
|
33
|
-
primary: H,
|
|
34
|
-
solid: J,
|
|
35
|
-
ariaDisabled: M,
|
|
36
|
-
accent: O,
|
|
37
|
-
danger: Q,
|
|
38
|
-
secondary: V,
|
|
39
|
-
dark: X,
|
|
40
|
-
light: Y,
|
|
41
|
-
soft: Z
|
|
42
|
-
}, _ = { "de-DE": {
|
|
43
|
-
"action.isFailed": "Fehlgeschlagen",
|
|
44
|
-
"action.isPending": "Ausstehend...",
|
|
45
|
-
"action.isSucceeded": "Erfolgreich"
|
|
46
|
-
}, "en-EN": {
|
|
47
|
-
"action.isFailed": "Failed",
|
|
48
|
-
"action.isPending": "Pending...",
|
|
49
|
-
"action.isSucceeded": "Succeeded"
|
|
50
|
-
} }, ee = (e, r = {}) => {
|
|
51
|
-
const i = A(_), {
|
|
52
|
-
isPendingText: s = i.format("action.isPending"),
|
|
53
|
-
isSucceededText: c = i.format("action.isSucceeded"),
|
|
54
|
-
isFailedText: a = i.format("action.isFailed")
|
|
55
|
-
} = r, n = D({
|
|
56
|
-
"aria-live": "polite",
|
|
57
|
-
"aria-atomic": !1,
|
|
58
|
-
"aria-relevant": "text additions",
|
|
59
|
-
role: "status"
|
|
60
|
-
});
|
|
61
|
-
x(() => {
|
|
62
|
-
e === "isPending" ? n.speak(s) : e === "isSucceeded" ? n.speak(c) : e === "isFailed" && n.speak(a);
|
|
63
|
-
}, [e]);
|
|
64
|
-
}, te = (e) => ((e.isPending || e.isSucceeded || e.isFailed || e["aria-disabled"]) && (e = { ...e }, e.onPress = void 0, e.onPressStart = void 0, e.onPressEnd = void 0, e.onPressChange = void 0, e.onPressUp = void 0, e.onKeyDown = void 0, e.onKeyUp = void 0), e), ve = B("Button", (e) => {
|
|
65
|
-
e = te(e);
|
|
66
|
-
const {
|
|
67
|
-
color: r = "primary",
|
|
68
|
-
variant: i = "solid",
|
|
69
|
-
children: s,
|
|
70
|
-
className: c,
|
|
71
|
-
size: a = "m",
|
|
72
|
-
isPending: n,
|
|
73
|
-
isSucceeded: d,
|
|
74
|
-
isFailed: l,
|
|
75
|
-
"aria-disabled": g,
|
|
76
|
-
refProp: b,
|
|
77
|
-
unstyled: m,
|
|
78
|
-
...P
|
|
79
|
-
} = e, w = m ? c : E(
|
|
80
|
-
t.button,
|
|
81
|
-
n && t.isPending,
|
|
82
|
-
d && t.isSucceeded,
|
|
83
|
-
l && t.isFailed,
|
|
84
|
-
t[`size-${a}`],
|
|
85
|
-
t[r],
|
|
86
|
-
t[i],
|
|
87
|
-
c,
|
|
88
|
-
/**
|
|
89
|
-
* Workaround warning: The Aria.Button does not support "aria-disabled"
|
|
90
|
-
* by now, so this Button will be visually disabled via CSS.
|
|
91
|
-
*/
|
|
92
|
-
g && t.ariaDisabled
|
|
93
|
-
);
|
|
94
|
-
ee(
|
|
95
|
-
n ? "isPending" : d ? "isSucceeded" : l ? "isFailed" : "isIdle"
|
|
96
|
-
);
|
|
97
|
-
const v = {
|
|
98
|
-
Icon: {
|
|
99
|
-
className: t.icon,
|
|
100
|
-
"aria-hidden": !0,
|
|
101
|
-
size: a
|
|
102
|
-
},
|
|
103
|
-
Text: {
|
|
104
|
-
className: t.text
|
|
105
|
-
},
|
|
106
|
-
Avatar: {
|
|
107
|
-
className: t.avatar
|
|
108
|
-
},
|
|
109
|
-
CounterBadge: {
|
|
110
|
-
className: t.counterBadge
|
|
111
|
-
}
|
|
112
|
-
}, u = d ? h : l ? I : n ? k : void 0, p = u && /* @__PURE__ */ o.createElement(u, { size: a, className: t.stateIcon }), S = typeof s == "string";
|
|
113
|
-
return /* @__PURE__ */ o.createElement(y, null, /* @__PURE__ */ o.createElement(F.Button, { className: w, ref: b, ...P }, /* @__PURE__ */ o.createElement(C, { props: v }, /* @__PURE__ */ o.createElement(f, { if: !m }, /* @__PURE__ */ o.createElement("span", { className: t.content }, /* @__PURE__ */ o.createElement(f, { if: S }, /* @__PURE__ */ o.createElement(N, null, s))))), p));
|
|
114
|
-
});
|
|
115
|
-
export {
|
|
116
|
-
ve as B
|
|
117
|
-
};
|