@arclux/arc-ui-react 1.0.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/LICENSE +21 -0
- package/README.md +57 -0
- package/package.json +73 -0
- package/src/content/Accordion.ts +22 -0
- package/src/content/AccordionItem.ts +17 -0
- package/src/content/AnimatedNumber.ts +23 -0
- package/src/content/AspectRatio.ts +17 -0
- package/src/content/Avatar.ts +19 -0
- package/src/content/AvatarGroup.ts +18 -0
- package/src/content/Badge.ts +17 -0
- package/src/content/Callout.ts +17 -0
- package/src/content/Card.ts +17 -0
- package/src/content/Carousel.ts +27 -0
- package/src/content/CodeBlock.ts +24 -0
- package/src/content/Collapsible.ts +24 -0
- package/src/content/ColorSwatch.ts +19 -0
- package/src/content/Column.ts +20 -0
- package/src/content/DataTable.ts +31 -0
- package/src/content/Divider.ts +19 -0
- package/src/content/EmptyState.ts +18 -0
- package/src/content/FeatureCard.ts +20 -0
- package/src/content/Highlight.ts +19 -0
- package/src/content/Icon.ts +19 -0
- package/src/content/InfiniteScroll.ts +24 -0
- package/src/content/Kbd.ts +16 -0
- package/src/content/Markdown.ts +17 -0
- package/src/content/Marquee.ts +20 -0
- package/src/content/Meter.ts +23 -0
- package/src/content/ScrollArea.ts +18 -0
- package/src/content/Skeleton.ts +19 -0
- package/src/content/Spinner.ts +18 -0
- package/src/content/Stack.ts +21 -0
- package/src/content/Stat.ts +18 -0
- package/src/content/Step.ts +17 -0
- package/src/content/Stepper.ts +18 -0
- package/src/content/Table.ts +20 -0
- package/src/content/Tag.ts +23 -0
- package/src/content/Text.ts +18 -0
- package/src/content/Timeline.ts +17 -0
- package/src/content/TimelineItem.ts +18 -0
- package/src/content/Truncate.ts +22 -0
- package/src/content/ValueCard.ts +19 -0
- package/src/content/index.ts +119 -0
- package/src/create-component.ts +6 -0
- package/src/feedback/Alert.ts +23 -0
- package/src/feedback/CommandItem.ts +18 -0
- package/src/feedback/CommandPalette.ts +27 -0
- package/src/feedback/ContextMenu.ts +31 -0
- package/src/feedback/Dialog.ts +28 -0
- package/src/feedback/DropdownMenu.ts +25 -0
- package/src/feedback/HoverCard.ts +26 -0
- package/src/feedback/Modal.ts +26 -0
- package/src/feedback/NotificationPanel.ts +25 -0
- package/src/feedback/Popover.ts +23 -0
- package/src/feedback/Progress.ts +21 -0
- package/src/feedback/Sheet.ts +27 -0
- package/src/feedback/Toast.ts +23 -0
- package/src/feedback/Tooltip.ts +20 -0
- package/src/feedback/index.ts +44 -0
- package/src/index.ts +354 -0
- package/src/input/Button.ts +25 -0
- package/src/input/Calendar.ts +30 -0
- package/src/input/Checkbox.ts +26 -0
- package/src/input/Chip.ts +23 -0
- package/src/input/ColorPicker.ts +30 -0
- package/src/input/Combobox.ts +28 -0
- package/src/input/CopyButton.ts +25 -0
- package/src/input/DatePicker.ts +30 -0
- package/src/input/FileUpload.ts +29 -0
- package/src/input/Form.ts +25 -0
- package/src/input/IconButton.ts +28 -0
- package/src/input/Input.ts +31 -0
- package/src/input/MultiSelect.ts +30 -0
- package/src/input/NumberInput.ts +28 -0
- package/src/input/OtpInput.ts +24 -0
- package/src/input/PinInput.ts +29 -0
- package/src/input/Radio.ts +18 -0
- package/src/input/RadioGroup.ts +25 -0
- package/src/input/Rating.ts +24 -0
- package/src/input/Search.ts +34 -0
- package/src/input/SegmentedControl.ts +25 -0
- package/src/input/Select.ts +29 -0
- package/src/input/Slider.ts +28 -0
- package/src/input/SortableList.ts +26 -0
- package/src/input/Suggestion.ts +17 -0
- package/src/input/Textarea.ts +31 -0
- package/src/input/ThemeToggle.ts +25 -0
- package/src/input/Toggle.ts +24 -0
- package/src/input/index.ts +86 -0
- package/src/layout/AppShell.ts +20 -0
- package/src/layout/AuthShell.ts +17 -0
- package/src/layout/Container.ts +17 -0
- package/src/layout/DashboardGrid.ts +19 -0
- package/src/layout/PageHeader.ts +18 -0
- package/src/layout/PageLayout.ts +19 -0
- package/src/layout/Resizable.ts +25 -0
- package/src/layout/Section.ts +17 -0
- package/src/layout/SettingsLayout.ts +17 -0
- package/src/layout/SplitPane.ts +24 -0
- package/src/layout/StatusBar.ts +17 -0
- package/src/layout/Toolbar.ts +19 -0
- package/src/layout/index.ts +38 -0
- package/src/navigation/Breadcrumb.ts +21 -0
- package/src/navigation/BreadcrumbItem.ts +17 -0
- package/src/navigation/Drawer.ts +25 -0
- package/src/navigation/Footer.ts +18 -0
- package/src/navigation/Link.ts +20 -0
- package/src/navigation/NavItem.ts +19 -0
- package/src/navigation/NavigationMenu.ts +25 -0
- package/src/navigation/Pagination.ts +25 -0
- package/src/navigation/ScrollSpy.ts +24 -0
- package/src/navigation/ScrollToTop.ts +25 -0
- package/src/navigation/Sidebar.ts +21 -0
- package/src/navigation/SidebarLink.ts +18 -0
- package/src/navigation/SidebarSection.ts +23 -0
- package/src/navigation/SpyLink.ts +17 -0
- package/src/navigation/Tab.ts +17 -0
- package/src/navigation/Tabs.ts +23 -0
- package/src/navigation/TopBar.ts +21 -0
- package/src/navigation/TreeItem.ts +19 -0
- package/src/navigation/TreeView.ts +24 -0
- package/src/navigation/index.ts +59 -0
- package/src/shared/MenuDivider.ts +16 -0
- package/src/shared/MenuItem.ts +19 -0
- package/src/shared/Option.ts +19 -0
- package/src/shared/index.ts +8 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Arclight Digital, LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# @arclux/arc-ui-react
|
|
2
|
+
|
|
3
|
+
React wrappers for [ARC UI](https://arcui.dev) web components with full TypeScript support.
|
|
4
|
+
|
|
5
|
+
> **Auto-generated** -- this package is produced by [Prism](../../prism.config.js) from the canonical source in [`@arclux/arc-ui`](../web-components/). Do not edit by hand.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @arclux/arc-ui-react @arclux/arc-ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Requires `react >= 18.0.0` and `react-dom >= 18.0.0`.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import { Button, Card, Input } from '@arclux/arc-ui-react';
|
|
19
|
+
|
|
20
|
+
function App() {
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
<Button variant="primary" onClick={() => console.log('clicked')}>
|
|
24
|
+
Get Started
|
|
25
|
+
</Button>
|
|
26
|
+
<Card>
|
|
27
|
+
<h3>Card Title</h3>
|
|
28
|
+
<p>Card content.</p>
|
|
29
|
+
</Card>
|
|
30
|
+
<Input
|
|
31
|
+
label="Email"
|
|
32
|
+
type="email"
|
|
33
|
+
placeholder="you@example.com"
|
|
34
|
+
onArcInput={(e) => console.log(e.detail.value)}
|
|
35
|
+
/>
|
|
36
|
+
</>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Components are organized by category and can be imported from subpaths:
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
import { Button } from '@arclux/arc-ui-react/input';
|
|
45
|
+
import { Card } from '@arclux/arc-ui-react/content';
|
|
46
|
+
import { AppShell } from '@arclux/arc-ui-react/layout';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
Full component docs and interactive examples: [arcui.dev](https://arcui.dev)
|
|
52
|
+
|
|
53
|
+
## Links
|
|
54
|
+
|
|
55
|
+
- [Canonical source (`@arclux/arc-ui`)](../web-components/)
|
|
56
|
+
- [Root README](../../README.md)
|
|
57
|
+
- [License](../../LICENSE)
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@arclux/arc-ui-react",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "React wrappers for ARC UI Web Components.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.ts",
|
|
7
|
+
"module": "src/index.ts",
|
|
8
|
+
"types": "src/index.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./src/index.ts",
|
|
12
|
+
"default": "./src/index.ts"
|
|
13
|
+
},
|
|
14
|
+
"./content": {
|
|
15
|
+
"types": "./src/content/index.ts",
|
|
16
|
+
"default": "./src/content/index.ts"
|
|
17
|
+
},
|
|
18
|
+
"./input": {
|
|
19
|
+
"types": "./src/input/index.ts",
|
|
20
|
+
"default": "./src/input/index.ts"
|
|
21
|
+
},
|
|
22
|
+
"./feedback": {
|
|
23
|
+
"types": "./src/feedback/index.ts",
|
|
24
|
+
"default": "./src/feedback/index.ts"
|
|
25
|
+
},
|
|
26
|
+
"./navigation": {
|
|
27
|
+
"types": "./src/navigation/index.ts",
|
|
28
|
+
"default": "./src/navigation/index.ts"
|
|
29
|
+
},
|
|
30
|
+
"./layout": {
|
|
31
|
+
"types": "./src/layout/index.ts",
|
|
32
|
+
"default": "./src/layout/index.ts"
|
|
33
|
+
},
|
|
34
|
+
"./shared": {
|
|
35
|
+
"types": "./src/shared/index.ts",
|
|
36
|
+
"default": "./src/shared/index.ts"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"src/"
|
|
41
|
+
],
|
|
42
|
+
"sideEffects": false,
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": ">=18.0.0",
|
|
45
|
+
"react-dom": ">=18.0.0"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@lit/react": "^1.0.8",
|
|
49
|
+
"@arclux/arc-ui": "1.0.0"
|
|
50
|
+
},
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"keywords": [
|
|
53
|
+
"react",
|
|
54
|
+
"web-components",
|
|
55
|
+
"design-system",
|
|
56
|
+
"arclight"
|
|
57
|
+
],
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "https://github.com/arclight-digital/arc-ui",
|
|
61
|
+
"directory": "packages/react"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://arcui.dev",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/arclight-digital/arc-ui/issues"
|
|
66
|
+
},
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "echo 'Consumed directly via workspace — no build step required'"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcAccordion } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface AccordionProps {
|
|
8
|
+
_items?: string;
|
|
9
|
+
_openItems?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
onClick?: (e: Event) => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Accordion = createComponent({
|
|
16
|
+
tagName: 'arc-accordion',
|
|
17
|
+
elementClass: ArcAccordion,
|
|
18
|
+
react: React,
|
|
19
|
+
events: {
|
|
20
|
+
onClick: 'click' as EventName<Event>,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcAccordionItem } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface AccordionItemProps {
|
|
8
|
+
question?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const AccordionItem = createComponent({
|
|
14
|
+
tagName: 'arc-accordion-item',
|
|
15
|
+
elementClass: ArcAccordionItem,
|
|
16
|
+
react: React,
|
|
17
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcAnimatedNumber } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface AnimatedNumberProps {
|
|
8
|
+
value?: number;
|
|
9
|
+
duration?: number;
|
|
10
|
+
format?: string;
|
|
11
|
+
prefix?: string;
|
|
12
|
+
suffix?: string;
|
|
13
|
+
decimals?: number;
|
|
14
|
+
locale?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const AnimatedNumber = createComponent({
|
|
20
|
+
tagName: 'arc-animated-number',
|
|
21
|
+
elementClass: ArcAnimatedNumber,
|
|
22
|
+
react: React,
|
|
23
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcAspectRatio } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface AspectRatioProps {
|
|
8
|
+
ratio?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const AspectRatio = createComponent({
|
|
14
|
+
tagName: 'arc-aspect-ratio',
|
|
15
|
+
elementClass: ArcAspectRatio,
|
|
16
|
+
react: React,
|
|
17
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcAvatar } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface AvatarProps {
|
|
8
|
+
src?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
size?: 'sm' | 'md' | 'lg';
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Avatar = createComponent({
|
|
16
|
+
tagName: 'arc-avatar',
|
|
17
|
+
elementClass: ArcAvatar,
|
|
18
|
+
react: React,
|
|
19
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcAvatarGroup } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface AvatarGroupProps {
|
|
8
|
+
max?: number;
|
|
9
|
+
overlap?: 'sm' | 'lg';
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const AvatarGroup = createComponent({
|
|
15
|
+
tagName: 'arc-avatar-group',
|
|
16
|
+
elementClass: ArcAvatarGroup,
|
|
17
|
+
react: React,
|
|
18
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcBadge } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface BadgeProps {
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Badge = createComponent({
|
|
14
|
+
tagName: 'arc-badge',
|
|
15
|
+
elementClass: ArcBadge,
|
|
16
|
+
react: React,
|
|
17
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcCallout } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface CalloutProps {
|
|
8
|
+
variant?: 'info' | 'warning' | 'tip' | 'danger';
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Callout = createComponent({
|
|
14
|
+
tagName: 'arc-callout',
|
|
15
|
+
elementClass: ArcCallout,
|
|
16
|
+
react: React,
|
|
17
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcCard } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface CardProps {
|
|
8
|
+
href?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Card = createComponent({
|
|
14
|
+
tagName: 'arc-card',
|
|
15
|
+
elementClass: ArcCard,
|
|
16
|
+
react: React,
|
|
17
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcCarousel } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface CarouselProps {
|
|
8
|
+
autoPlay?: boolean;
|
|
9
|
+
interval?: number;
|
|
10
|
+
loop?: boolean;
|
|
11
|
+
showDots?: boolean;
|
|
12
|
+
showArrows?: boolean;
|
|
13
|
+
_current?: string;
|
|
14
|
+
_total?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
onArcChange?: (e: CustomEvent) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const Carousel = createComponent({
|
|
21
|
+
tagName: 'arc-carousel',
|
|
22
|
+
elementClass: ArcCarousel,
|
|
23
|
+
react: React,
|
|
24
|
+
events: {
|
|
25
|
+
onArcChange: 'arc-change' as EventName<CustomEvent>,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcCodeBlock } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface CodeBlockProps {
|
|
8
|
+
language?: string;
|
|
9
|
+
filename?: string;
|
|
10
|
+
code?: string;
|
|
11
|
+
_copied?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
onClick?: (e: Event) => void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const CodeBlock = createComponent({
|
|
18
|
+
tagName: 'arc-code-block',
|
|
19
|
+
elementClass: ArcCodeBlock,
|
|
20
|
+
react: React,
|
|
21
|
+
events: {
|
|
22
|
+
onClick: 'click' as EventName<Event>,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcCollapsible } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface CollapsibleProps {
|
|
8
|
+
open?: boolean;
|
|
9
|
+
heading?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
onArcToggle?: (e: CustomEvent) => void;
|
|
13
|
+
onClick?: (e: Event) => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Collapsible = createComponent({
|
|
17
|
+
tagName: 'arc-collapsible',
|
|
18
|
+
elementClass: ArcCollapsible,
|
|
19
|
+
react: React,
|
|
20
|
+
events: {
|
|
21
|
+
onArcToggle: 'arc-toggle' as EventName<CustomEvent>,
|
|
22
|
+
onClick: 'click' as EventName<Event>,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcColorSwatch } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ColorSwatchProps {
|
|
8
|
+
color?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
size?: 'sm' | 'md' | 'lg';
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const ColorSwatch = createComponent({
|
|
16
|
+
tagName: 'arc-color-swatch',
|
|
17
|
+
elementClass: ArcColorSwatch,
|
|
18
|
+
react: React,
|
|
19
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcColumn } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ColumnProps {
|
|
8
|
+
key?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
sortable?: boolean;
|
|
11
|
+
width?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Column = createComponent({
|
|
17
|
+
tagName: 'arc-column',
|
|
18
|
+
elementClass: ArcColumn,
|
|
19
|
+
react: React,
|
|
20
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcDataTable } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface DataTableProps {
|
|
8
|
+
rows?: unknown[];
|
|
9
|
+
sortable?: boolean;
|
|
10
|
+
selectable?: boolean;
|
|
11
|
+
sortColumn?: string;
|
|
12
|
+
sortDirection?: string;
|
|
13
|
+
_columns?: string;
|
|
14
|
+
_selectedRows?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
onArcSort?: (e: CustomEvent) => void;
|
|
18
|
+
onArcSelectAll?: (e: CustomEvent) => void;
|
|
19
|
+
onArcRowSelect?: (e: CustomEvent) => void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const DataTable = createComponent({
|
|
23
|
+
tagName: 'arc-data-table',
|
|
24
|
+
elementClass: ArcDataTable,
|
|
25
|
+
react: React,
|
|
26
|
+
events: {
|
|
27
|
+
onArcSort: 'arc-sort' as EventName<CustomEvent>,
|
|
28
|
+
onArcSelectAll: 'arc-select-all' as EventName<CustomEvent>,
|
|
29
|
+
onArcRowSelect: 'arc-row-select' as EventName<CustomEvent>,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcDivider } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface DividerProps {
|
|
8
|
+
variant?: 'subtle' | 'glow' | 'line-white' | 'line-primary' | 'line-gradient';
|
|
9
|
+
align?: 'left' | 'right';
|
|
10
|
+
vertical?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Divider = createComponent({
|
|
16
|
+
tagName: 'arc-divider',
|
|
17
|
+
elementClass: ArcDivider,
|
|
18
|
+
react: React,
|
|
19
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcEmptyState } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface EmptyStateProps {
|
|
8
|
+
heading?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const EmptyState = createComponent({
|
|
15
|
+
tagName: 'arc-empty-state',
|
|
16
|
+
elementClass: ArcEmptyState,
|
|
17
|
+
react: React,
|
|
18
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcFeatureCard } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface FeatureCardProps {
|
|
8
|
+
icon?: string;
|
|
9
|
+
heading?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
href?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const FeatureCard = createComponent({
|
|
17
|
+
tagName: 'arc-feature-card',
|
|
18
|
+
elementClass: ArcFeatureCard,
|
|
19
|
+
react: React,
|
|
20
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcHighlight } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface HighlightProps {
|
|
8
|
+
text?: string;
|
|
9
|
+
query?: string;
|
|
10
|
+
caseSensitive?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Highlight = createComponent({
|
|
16
|
+
tagName: 'arc-highlight',
|
|
17
|
+
elementClass: ArcHighlight,
|
|
18
|
+
react: React,
|
|
19
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcIcon } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface IconProps {
|
|
8
|
+
name?: string;
|
|
9
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
label?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Icon = createComponent({
|
|
16
|
+
tagName: 'arc-icon',
|
|
17
|
+
elementClass: ArcIcon,
|
|
18
|
+
react: React,
|
|
19
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcInfiniteScroll } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface InfiniteScrollProps {
|
|
8
|
+
threshold?: number;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
finished?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
onArcLoadMore?: (e: CustomEvent) => void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const InfiniteScroll = createComponent({
|
|
18
|
+
tagName: 'arc-infinite-scroll',
|
|
19
|
+
elementClass: ArcInfiniteScroll,
|
|
20
|
+
react: React,
|
|
21
|
+
events: {
|
|
22
|
+
onArcLoadMore: 'arc-load-more' as EventName<CustomEvent>,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcKbd } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface KbdProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Kbd = createComponent({
|
|
13
|
+
tagName: 'arc-kbd',
|
|
14
|
+
elementClass: ArcKbd,
|
|
15
|
+
react: React,
|
|
16
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcMarkdown } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface MarkdownProps {
|
|
8
|
+
content?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Markdown = createComponent({
|
|
14
|
+
tagName: 'arc-markdown',
|
|
15
|
+
elementClass: ArcMarkdown,
|
|
16
|
+
react: React,
|
|
17
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
+
import { ArcMarquee } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface MarqueeProps {
|
|
8
|
+
speed?: number;
|
|
9
|
+
direction?: string;
|
|
10
|
+
gap?: string;
|
|
11
|
+
_animDuration?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Marquee = createComponent({
|
|
17
|
+
tagName: 'arc-marquee',
|
|
18
|
+
elementClass: ArcMarquee,
|
|
19
|
+
react: React,
|
|
20
|
+
});
|