@zj-dynamics/components 0.1.0 → 0.2.0
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/README.md +12 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
# @zj-dynamics/components
|
|
2
2
|
|
|
3
|
-
React 19 web components for
|
|
3
|
+
React 19 web components for forms, selection, navigation, overlays, and data display. Import the package stylesheet once in your app. Button, InputText, and Dialog also have named subpath exports.
|
|
4
4
|
|
|
5
5
|
```tsx
|
|
6
6
|
import {Button, Dialog, InputText, ThemeProvider} from '@zj-dynamics/components';
|
|
7
|
-
import '@zj-dynamics/components/styles
|
|
7
|
+
import '@zj-dynamics/components/styles';
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
Use `ThemeProvider` with a brand from `@zj-dynamics/design`. `mode` controls the selected appearance and `defaultMode` initializes it. `useTheme` exposes the selected and effective modes. The provider applies the nearest brand, mode and overrides to Dialog portals.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
For a form dialog, compose Trigger, Content, Header, Title, Body, Footer, Close, and Actions. Storybook shows the complete flow, including controlled input and ordinary and alert dialogs.
|
|
13
|
+
|
|
14
|
+
## Routing
|
|
15
|
+
|
|
16
|
+
Render components with a `to` prop inside your app's React Router provider. The package shares the app's `react-router-dom` peer so both use the same router context. Use v7.18.3 or later in the v7 line to pick up the routing security fix. Existing v6 apps can still use the components and need to upgrade their router to receive the fix. [React Router advisory](https://github.com/remix-run/react-router/security/advisories/GHSA-x8j4-g9rr-8j87)
|
|
13
17
|
|
|
14
18
|
## Foundations
|
|
15
19
|
|
|
16
20
|
Import `@zj-dynamics/components/foundation.css` alongside the Rulnar theme provider for layout, typography, loading and status primitives. This stylesheet includes the matching frozen theme rules and local Inter and Poppins assets from the locked OFL font packages. Use the root entry point or the component leaf, for example `@zj-dynamics/components/Box`.
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
`@zj-dynamics/components/styles` includes the foundation styles. Use `foundation.css` when you need that layer independently.
|
|
19
23
|
|
|
20
24
|
The `@zj-dynamics/components/unstyledPrimitives` entry point provides the pinned Base UI primitives. Use it for custom compositions. The root entry point retains the styled Rulnar components.
|
|
21
25
|
|
|
26
|
+
## Security
|
|
27
|
+
|
|
28
|
+
Report suspected vulnerabilities privately to [rulnar-security@zjdynamics.com](mailto:rulnar-security@zjdynamics.com).
|
|
29
|
+
|
|
22
30
|
## License
|
|
23
31
|
|
|
24
32
|
The MIT license in `LICENSE` applies to Rulnar-owned code. Third-party materials retain their accompanying licenses and notices.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zj-dynamics/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Rulnar React web components and browser-specific behavior.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -512,7 +512,8 @@
|
|
|
512
512
|
},
|
|
513
513
|
"peerDependencies": {
|
|
514
514
|
"react": "^19.0.0",
|
|
515
|
-
"react-dom": "^19.0.0"
|
|
515
|
+
"react-dom": "^19.0.0",
|
|
516
|
+
"react-router-dom": "^6.30.6 || ^7.18.3"
|
|
516
517
|
},
|
|
517
518
|
"dependencies": {
|
|
518
519
|
"@base-ui/react": "1.9.0",
|
|
@@ -520,16 +521,15 @@
|
|
|
520
521
|
"@fontsource/inter": "5.2.8",
|
|
521
522
|
"@fontsource/poppins": "5.3.0",
|
|
522
523
|
"@tanstack/react-table": "8.21.3",
|
|
523
|
-
"@zj-dynamics/design": "0.
|
|
524
|
-
"@zj-dynamics/formatters": "0.
|
|
525
|
-
"@zj-dynamics/hooks": "0.
|
|
524
|
+
"@zj-dynamics/design": "0.2.0",
|
|
525
|
+
"@zj-dynamics/formatters": "0.2.0",
|
|
526
|
+
"@zj-dynamics/hooks": "0.2.0",
|
|
526
527
|
"axios": "1.20.0",
|
|
527
528
|
"classnames": "2.5.1",
|
|
528
529
|
"color": "3.2.1",
|
|
529
530
|
"es-toolkit": "1.52.0",
|
|
530
531
|
"filesize": "6.4.0",
|
|
531
532
|
"framer-motion": "11.18.2",
|
|
532
|
-
"react-router-dom": "6.30.6",
|
|
533
533
|
"resize-observer-polyfill": "1.5.1",
|
|
534
534
|
"ts-xor": "1.3.0"
|
|
535
535
|
},
|