@mittwald/flow-react-components 0.1.0-alpha.10
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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/Avatar.d.ts +14 -0
- package/dist/Avatar.js +25 -0
- package/dist/Badge.d.ts +18 -0
- package/dist/Badge.js +33 -0
- package/dist/Button-DibM-vns.js +41 -0
- package/dist/Button.d.ts +15 -0
- package/dist/Button.js +7 -0
- package/dist/Checkbox.d.ts +12 -0
- package/dist/Checkbox.js +71 -0
- package/dist/Content.d.ts +13 -0
- package/dist/Content.js +20 -0
- package/dist/CopyToClipboardButton.d.ts +20 -0
- package/dist/CopyToClipboardButton.js +135 -0
- package/dist/FieldDescription.d.ts +12 -0
- package/dist/FieldDescription.js +18 -0
- package/dist/FieldError-BAnloBK7.js +17 -0
- package/dist/FieldError.d.ts +12 -0
- package/dist/FieldError.js +7 -0
- package/dist/FormField.module-DHK6nIcD.js +12 -0
- package/dist/Heading.d.ts +13 -0
- package/dist/Heading.js +26 -0
- package/dist/Icon-Dp34FFi3.js +55 -0
- package/dist/Icon.d.ts +18 -0
- package/dist/Icon.js +7 -0
- package/dist/Image.d.ts +11 -0
- package/dist/Image.js +11 -0
- package/dist/Initials.d.ts +14 -0
- package/dist/Initials.js +30 -0
- package/dist/Label.d.ts +13 -0
- package/dist/Label.js +26 -0
- package/dist/LabeledValue.d.ts +12 -0
- package/dist/LabeledValue.js +32 -0
- package/dist/Link.d.ts +14 -0
- package/dist/Link.js +25 -0
- package/dist/Navigation.d.ts +22 -0
- package/dist/Navigation.js +53 -0
- package/dist/Note.d.ts +18 -0
- package/dist/Note.js +42 -0
- package/dist/NumberField.d.ts +12 -0
- package/dist/NumberField.js +121 -0
- package/dist/PropsContextProvider-CEoxD8yK.js +26 -0
- package/dist/RadioGroup.d.ts +17 -0
- package/dist/RadioGroup.js +88 -0
- package/dist/StatusIcon-B3kq3jOT.js +118 -0
- package/dist/StatusIcon.d.ts +17 -0
- package/dist/StatusIcon.js +7 -0
- package/dist/Switch.d.ts +16 -0
- package/dist/Switch.js +30 -0
- package/dist/Text-D-bYVFks.js +19 -0
- package/dist/Text.d.ts +12 -0
- package/dist/Text.js +7 -0
- package/dist/TextArea.d.ts +17 -0
- package/dist/TextArea.js +22 -0
- package/dist/TextField.d.ts +17 -0
- package/dist/TextField.js +15 -0
- package/dist/TextFieldBase-Dk6XBF7h.js +28 -0
- package/dist/Tooltip-BqyZAZgK.js +16 -0
- package/dist/Tooltip.d.ts +17 -0
- package/dist/Tooltip.js +9 -0
- package/dist/TooltipTrigger-7-ynWHZ9.js +11 -0
- package/dist/TooltipTrigger.d.ts +12 -0
- package/dist/TooltipTrigger.js +7 -0
- package/dist/clsx-DB4S2d7J.js +24 -0
- package/dist/propsContext-Dx7WKmmM.js +7 -0
- package/dist/styles.css +1 -0
- package/dist/stylesInit.d.ts +4 -0
- package/dist/stylesInit.js +6 -0
- package/dist/useProps-C7GIMcgB.js +27 -0
- package/package.json +132 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { mergeProps as p } from "@react-aria/utils";
|
|
4
|
+
import { useContext as s } from "react";
|
|
5
|
+
import { p as c } from "./propsContext-Dx7WKmmM.js";
|
|
6
|
+
function i(o) {
|
|
7
|
+
return !!o && typeof o == "object" && "__dynamicProp" in o;
|
|
8
|
+
}
|
|
9
|
+
const m = (o, n) => {
|
|
10
|
+
const r = {
|
|
11
|
+
...o
|
|
12
|
+
};
|
|
13
|
+
for (const t in r) {
|
|
14
|
+
const e = o[t];
|
|
15
|
+
i(e) && (r[t] = e.__dynamicProp(n));
|
|
16
|
+
}
|
|
17
|
+
return r;
|
|
18
|
+
}, P = (o, n) => {
|
|
19
|
+
const r = s(c)[o], t = r ? m(r, n) : void 0;
|
|
20
|
+
return p(
|
|
21
|
+
t,
|
|
22
|
+
n
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
P as u
|
|
27
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mittwald/flow-react-components",
|
|
3
|
+
"version": "0.1.0-alpha.10",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
|
+
"homepage": "https://mittwald.github.io/flow",
|
|
7
|
+
"repository": "https://github.com/mittwald/flow",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./Avatar": "./dist/Avatar.js",
|
|
10
|
+
"./Badge": "./dist/Badge.js",
|
|
11
|
+
"./Button": "./dist/Button.js",
|
|
12
|
+
"./Checkbox": "./dist/Checkbox.js",
|
|
13
|
+
"./Content": "./dist/Content.js",
|
|
14
|
+
"./CopyToClipboardButton": "./dist/CopyToClipboardButton.js",
|
|
15
|
+
"./FieldDescription": "./dist/FieldDescription.js",
|
|
16
|
+
"./FieldError": "./dist/FieldError.js",
|
|
17
|
+
"./Heading": "./dist/Heading.js",
|
|
18
|
+
"./Icon": "./dist/Icon.js",
|
|
19
|
+
"./Image": "./dist/Image.js",
|
|
20
|
+
"./Initials": "./dist/Initials.js",
|
|
21
|
+
"./Label": "./dist/Label.js",
|
|
22
|
+
"./LabeledValue": "./dist/LabeledValue.js",
|
|
23
|
+
"./Link": "./dist/Link.js",
|
|
24
|
+
"./Navigation": "./dist/Navigation.js",
|
|
25
|
+
"./Note": "./dist/Note.js",
|
|
26
|
+
"./NumberField": "./dist/NumberField.js",
|
|
27
|
+
"./RadioGroup": "./dist/RadioGroup.js",
|
|
28
|
+
"./StatusIcon": "./dist/StatusIcon.js",
|
|
29
|
+
"./Switch": "./dist/Switch.js",
|
|
30
|
+
"./Text": "./dist/Text.js",
|
|
31
|
+
"./TextArea": "./dist/TextArea.js",
|
|
32
|
+
"./TextField": "./dist/TextField.js",
|
|
33
|
+
"./Tooltip": "./dist/Tooltip.js",
|
|
34
|
+
"./styles": "./dist/styles.css"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "run vite build --config vite.build.config.ts",
|
|
41
|
+
"build:deps": "",
|
|
42
|
+
"build:deps:run": "yarn run -T lerna run build:deps --scope=@mittwald/flow-react-components",
|
|
43
|
+
"build:watch:dependents": "yarn build:deps:run && run -T lerna watch --scope=@mittwald/flow-react-components --include-dependencies -- lerna run build:deps --scope=@mittwald/flow-react-components",
|
|
44
|
+
"dev": "run storybook:start",
|
|
45
|
+
"storybook:build": "run storybook build",
|
|
46
|
+
"storybook:start": "run storybook dev -p 6006",
|
|
47
|
+
"test": "concurrently yarn:test:compile yarn:test:unit",
|
|
48
|
+
"test:compile": "tsc --noEmit",
|
|
49
|
+
"test:unit": "yarn node --experimental-vm-modules $(yarn bin jest)"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@fortawesome/fontawesome-svg-core": "^6.5.1",
|
|
53
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
54
|
+
"@react-aria/utils": "^3.23.0",
|
|
55
|
+
"@react-types/shared": "^3.22.0",
|
|
56
|
+
"clsx": "^2.1.0",
|
|
57
|
+
"copy-to-clipboard": "^3.3.3",
|
|
58
|
+
"html-react-parser": "^5.1.2",
|
|
59
|
+
"react-aria": "^3.31.1",
|
|
60
|
+
"react-aria-components": "^1.0.1",
|
|
61
|
+
"react-children-utilities": "^2.10.0",
|
|
62
|
+
"react-stately": "^3.29.1",
|
|
63
|
+
"remeda": "^1.40.1"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@fortawesome/free-regular-svg-icons": "^6.5.1",
|
|
67
|
+
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
68
|
+
"@jest/globals": "^29.7.0",
|
|
69
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.8",
|
|
70
|
+
"@nx/storybook": "^18.0.4",
|
|
71
|
+
"@storybook/addon-a11y": "^7.6.14",
|
|
72
|
+
"@storybook/addon-actions": "^7.6.14",
|
|
73
|
+
"@storybook/addon-essentials": "^7.6.14",
|
|
74
|
+
"@storybook/addon-interactions": "^7.6.14",
|
|
75
|
+
"@storybook/addon-links": "^7.6.14",
|
|
76
|
+
"@storybook/blocks": "^7.6.14",
|
|
77
|
+
"@storybook/builder-vite": "^7.6.14",
|
|
78
|
+
"@storybook/components": "^7.6.14",
|
|
79
|
+
"@storybook/core-events": "^7.6.14",
|
|
80
|
+
"@storybook/manager-api": "^7.6.14",
|
|
81
|
+
"@storybook/preview-api": "^7.6.14",
|
|
82
|
+
"@storybook/react": "^7.6.14",
|
|
83
|
+
"@storybook/react-vite": "^7.6.14",
|
|
84
|
+
"@storybook/testing-library": "^0.2.2",
|
|
85
|
+
"@storybook/theming": "^7.6.14",
|
|
86
|
+
"@testing-library/react": "^14.2.1",
|
|
87
|
+
"@types/jest": "^29.5.12",
|
|
88
|
+
"@types/prop-types": "^15.7.11",
|
|
89
|
+
"@types/react": "^18.2.55",
|
|
90
|
+
"@types/react-dom": "^18.2.19",
|
|
91
|
+
"@types/rollup": "^0.54.0",
|
|
92
|
+
"concurrently": "^8.2.2",
|
|
93
|
+
"decamelize": "^6.0.0",
|
|
94
|
+
"jest": "^29.7.0",
|
|
95
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
96
|
+
"postcss": "^8.4.35",
|
|
97
|
+
"postcss-nested-import": "^1.3.0",
|
|
98
|
+
"postcss-nesting": "^12.0.2",
|
|
99
|
+
"prop-types": "^15.8.1",
|
|
100
|
+
"react": "^18.2.0",
|
|
101
|
+
"react-dom": "^18.2.0",
|
|
102
|
+
"react-element-to-jsx-string": "^15.0.0",
|
|
103
|
+
"rollup": "^4.10.0",
|
|
104
|
+
"sass": "^1.70.0",
|
|
105
|
+
"storybook": "^7.6.14",
|
|
106
|
+
"storybook-addon-dir": "^1.0.6",
|
|
107
|
+
"storybook-addon-pseudo-states": "^2.1.2",
|
|
108
|
+
"ts-jest": "^29.1.2",
|
|
109
|
+
"typescript": "^5.3.3",
|
|
110
|
+
"typescript-plugin-css-modules": "^5.1.0",
|
|
111
|
+
"vite": "^5.1.1",
|
|
112
|
+
"vite-plugin-banner": "^0.7.1",
|
|
113
|
+
"vite-plugin-dts": "^3.7.2"
|
|
114
|
+
},
|
|
115
|
+
"peerDependencies": {
|
|
116
|
+
"react": "18.2.0",
|
|
117
|
+
"react-dom": "18.2.0"
|
|
118
|
+
},
|
|
119
|
+
"nx": {
|
|
120
|
+
"targets": {
|
|
121
|
+
"build": {
|
|
122
|
+
"inputs": [
|
|
123
|
+
"default",
|
|
124
|
+
"^default",
|
|
125
|
+
"{projectRoot}/*.ts",
|
|
126
|
+
"{projectRoot}/dev/"
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"gitHead": "ea4218443a0e582c3a42b8d3c4d4a4a0faa9824f"
|
|
132
|
+
}
|