@arclux/arc-ui-react 2.4.0 → 2.5.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 +24 -8
- package/package.json +2 -2
- package/src/data/EventCalendar.ts +1 -1
- package/src/feedback/NotificationPanel.ts +1 -1
- package/src/layout/PageLayout.ts +1 -1
- package/src/layout/SplitPane.ts +1 -1
- package/src/layout/StatusBar.ts +1 -1
- package/src/layout/Toolbar.ts +1 -1
- package/src/typography/Blockquote.ts +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @arclux/arc-ui-react
|
|
2
2
|
|
|
3
|
-
React wrappers for [ARC UI](https://arcui.dev) web components with full TypeScript support.
|
|
3
|
+
React wrappers for [ARC UI](https://arcui.dev) web components with full TypeScript support, built on [`@lit/react`](https://www.npmjs.com/package/@lit/react).
|
|
4
4
|
|
|
5
|
-
> **Auto-generated**
|
|
5
|
+
> **Auto-generated** — this package is produced by [Prism](https://www.npmjs.com/package/@arclux/prism) from the canonical source in [`@arclux/arc-ui`](https://www.npmjs.com/package/@arclux/arc-ui). Do not edit by hand.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -38,7 +38,7 @@ function App() {
|
|
|
38
38
|
}
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Components are organized by
|
|
41
|
+
Components are organized by tier and can be imported from subpaths:
|
|
42
42
|
|
|
43
43
|
```tsx
|
|
44
44
|
import { Button } from '@arclux/arc-ui-react/input';
|
|
@@ -46,12 +46,28 @@ import { Card } from '@arclux/arc-ui-react/content';
|
|
|
46
46
|
import { AppShell } from '@arclux/arc-ui-react/layout';
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
##
|
|
49
|
+
## Events
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Each component's `arc-*` CustomEvents are exposed as typed `onArc*` props (`arc-input` → `onArcInput`, `arc-select` → `onArcSelect`, …). The handler receives the original `CustomEvent`; payloads are on `event.detail`. Native DOM events (`onClick`, `onFocus`, …) work as usual.
|
|
52
|
+
|
|
53
|
+
## Server-side rendering
|
|
54
|
+
|
|
55
|
+
The wrappers register custom elements on import, which requires a DOM. In server-rendered React (e.g. Next.js App Router), use them from client components (`'use client'`).
|
|
56
|
+
|
|
57
|
+
## Theming
|
|
58
|
+
|
|
59
|
+
Components read design tokens from CSS custom properties. Overriding the base accent tokens re-themes every component — see the [theming guide](https://arcui.dev/docs/theming):
|
|
60
|
+
|
|
61
|
+
```css
|
|
62
|
+
:root {
|
|
63
|
+
--accent-primary: rgb(77, 126, 247);
|
|
64
|
+
--accent-primary-rgb: 77, 126, 247;
|
|
65
|
+
}
|
|
66
|
+
```
|
|
52
67
|
|
|
53
68
|
## Links
|
|
54
69
|
|
|
55
|
-
- [
|
|
56
|
-
- [
|
|
57
|
-
- [
|
|
70
|
+
- [Documentation & interactive examples](https://arcui.dev)
|
|
71
|
+
- [Canonical source (`@arclux/arc-ui`)](https://www.npmjs.com/package/@arclux/arc-ui)
|
|
72
|
+
- [Repository](https://github.com/arclight-digital/arc-ui)
|
|
73
|
+
- [License (MIT)](https://github.com/arclight-digital/arc-ui/blob/main/LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arclux/arc-ui-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "React wrappers for ARC UI Web Components.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@lit/react": "^1.0.8",
|
|
57
|
-
"@arclux/arc-ui": "2.
|
|
57
|
+
"@arclux/arc-ui": "2.5.0"
|
|
58
58
|
},
|
|
59
59
|
"license": "MIT",
|
|
60
60
|
"keywords": [
|
|
@@ -6,7 +6,7 @@ import { ArcNotificationPanel } from '@arclux/arc-ui/notification-panel';
|
|
|
6
6
|
|
|
7
7
|
export interface NotificationPanelProps {
|
|
8
8
|
open?: boolean;
|
|
9
|
-
position?:
|
|
9
|
+
position?: 'top-left' | 'top-right';
|
|
10
10
|
maxHeight?: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
children?: React.ReactNode;
|
package/src/layout/PageLayout.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { createComponent } from '@lit/react';
|
|
|
5
5
|
import { ArcPageLayout } from '@arclux/arc-ui/page-layout';
|
|
6
6
|
|
|
7
7
|
export interface PageLayoutProps {
|
|
8
|
-
layout?:
|
|
8
|
+
layout?: 'centered' | 'wide' | 'sidebar-left' | 'sidebar-right';
|
|
9
9
|
maxWidth?: string;
|
|
10
10
|
gap?: string;
|
|
11
11
|
className?: string;
|
package/src/layout/SplitPane.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcSplitPane } from '@arclux/arc-ui/split-pane';
|
|
6
6
|
|
|
7
7
|
export interface SplitPaneProps {
|
|
8
|
-
orientation?:
|
|
8
|
+
orientation?: 'vertical' | 'horizontal';
|
|
9
9
|
ratio?: number;
|
|
10
10
|
minRatio?: number;
|
|
11
11
|
maxRatio?: number;
|
package/src/layout/StatusBar.ts
CHANGED
package/src/layout/Toolbar.ts
CHANGED