@arclux/arc-ui-react 1.9.2 → 1.10.1
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/package.json +2 -2
- package/src/content/Avatar.ts +1 -0
- package/src/content/DataTable.ts +4 -0
- package/src/content/Image.ts +29 -0
- package/src/content/List.ts +28 -0
- package/src/content/ListItem.ts +27 -0
- package/src/content/ScrollIndicator.ts +21 -0
- package/src/content/Separator.ts +19 -0
- package/src/content/VirtualList.ts +21 -0
- package/src/content/index.ts +15 -0
- package/src/data/AnimatedNumber.ts +23 -0
- package/src/data/Badge.ts +19 -0
- package/src/data/DataTable.ts +35 -0
- package/src/data/List.ts +28 -0
- package/src/data/ListItem.ts +27 -0
- package/src/data/Meter.ts +23 -0
- package/src/data/Stat.ts +20 -0
- package/src/data/Step.ts +17 -0
- package/src/data/Stepper.ts +18 -0
- package/src/data/Table.ts +20 -0
- package/src/data/Tag.ts +25 -0
- package/src/data/Timeline.ts +17 -0
- package/src/data/TimelineItem.ts +18 -0
- package/src/data/ValueCard.ts +19 -0
- package/src/feedback/Announcement.ts +18 -0
- package/src/feedback/Banner.ts +23 -0
- package/src/feedback/CommandPalette.ts +0 -1
- package/src/feedback/Confirm.ts +26 -0
- package/src/feedback/ConnectionStatus.ts +24 -0
- package/src/feedback/Dialog.ts +1 -3
- package/src/feedback/DropdownMenu.ts +0 -1
- package/src/feedback/GuidedTour.ts +27 -0
- package/src/feedback/HoverCard.ts +1 -1
- package/src/feedback/InlineMessage.ts +17 -0
- package/src/feedback/LoadingOverlay.ts +19 -0
- package/src/feedback/Popover.ts +1 -1
- package/src/feedback/ProgressToast.ts +24 -0
- package/src/feedback/Sheet.ts +0 -2
- package/src/feedback/Snackbar.ts +25 -0
- package/src/feedback/Spotlight.ts +23 -0
- package/src/feedback/index.ts +30 -0
- package/src/index.ts +120 -0
- package/src/input/ButtonGroup.ts +19 -0
- package/src/input/Fieldset.ts +23 -0
- package/src/input/Hotkey.ts +23 -0
- package/src/input/InputGroup.ts +19 -0
- package/src/input/Label.ts +22 -0
- package/src/input/SwitchGroup.ts +20 -0
- package/src/input/index.ts +18 -0
- package/src/layout/AspectGrid.ts +19 -0
- package/src/layout/Center.ts +19 -0
- package/src/layout/Cluster.ts +19 -0
- package/src/layout/Dock.ts +20 -0
- package/src/layout/FloatBar.ts +18 -0
- package/src/layout/Inset.ts +18 -0
- package/src/layout/Masonry.ts +18 -0
- package/src/layout/ResponsiveSwitcher.ts +18 -0
- package/src/layout/Sticky.ts +22 -0
- package/src/layout/index.ts +27 -0
- package/src/navigation/AnchorNav.ts +23 -0
- package/src/navigation/BottomNav.ts +22 -0
- package/src/navigation/BreadcrumbMenu.ts +22 -0
- package/src/navigation/CommandBar.ts +25 -0
- package/src/navigation/Drawer.ts +0 -2
- package/src/navigation/PageIndicator.ts +23 -0
- package/src/navigation/Rail.ts +23 -0
- package/src/navigation/SkipLink.ts +17 -0
- package/src/navigation/SpeedDial.ts +26 -0
- package/src/navigation/StepperNav.ts +25 -0
- package/src/navigation/Tabs.ts +0 -1
- package/src/navigation/index.ts +27 -0
- package/src/typography/CodeBlock.ts +21 -0
- package/src/typography/Highlight.ts +19 -0
- package/src/typography/Kbd.ts +16 -0
- package/src/typography/Markdown.ts +17 -0
- package/src/typography/Text.ts +18 -0
- package/src/typography/Truncate.ts +22 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arclux/arc-ui-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "React wrappers for ARC UI Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@lit/react": "^1.0.8",
|
|
49
|
-
"@arclux/arc-ui": "1.
|
|
49
|
+
"@arclux/arc-ui": "1.10.1"
|
|
50
50
|
},
|
|
51
51
|
"license": "MIT",
|
|
52
52
|
"keywords": [
|
package/src/content/Avatar.ts
CHANGED
package/src/content/DataTable.ts
CHANGED
|
@@ -10,8 +10,12 @@ export interface DataTableProps {
|
|
|
10
10
|
selectable?: boolean;
|
|
11
11
|
sortColumn?: string;
|
|
12
12
|
sortDirection?: string;
|
|
13
|
+
virtual?: boolean;
|
|
14
|
+
rowHeight?: number;
|
|
13
15
|
_columns?: string;
|
|
14
16
|
_selectedRows?: string;
|
|
17
|
+
_startIndex?: string;
|
|
18
|
+
_visibleCount?: string;
|
|
15
19
|
className?: string;
|
|
16
20
|
children?: React.ReactNode;
|
|
17
21
|
onArcSort?: (e: CustomEvent) => void;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { ArcImage } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ImageProps {
|
|
8
|
+
src?: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
aspect?: '1/1' | '4/3' | '16/9' | '21/9' | '3/4' | '9/16';
|
|
11
|
+
fit?: 'contain' | 'fill' | 'none' | 'scale-down';
|
|
12
|
+
loading?: string;
|
|
13
|
+
fallback?: string;
|
|
14
|
+
_state?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
onArcLoad?: (e: CustomEvent) => void;
|
|
18
|
+
onArcError?: (e: CustomEvent) => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const Image = createComponent({
|
|
22
|
+
tagName: 'arc-image',
|
|
23
|
+
elementClass: ArcImage,
|
|
24
|
+
react: React,
|
|
25
|
+
events: {
|
|
26
|
+
onArcLoad: 'arc-load' as EventName<CustomEvent>,
|
|
27
|
+
onArcError: 'arc-error' as EventName<CustomEvent>,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { ArcList } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ListProps {
|
|
8
|
+
variant?: 'bordered' | 'separated';
|
|
9
|
+
size?: 'sm' | 'lg';
|
|
10
|
+
selectable?: boolean;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
value?: string;
|
|
13
|
+
_items?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
onArcChange?: (e: CustomEvent) => void;
|
|
17
|
+
onArcItemClick?: (e: CustomEvent) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const List = createComponent({
|
|
21
|
+
tagName: 'arc-list',
|
|
22
|
+
elementClass: ArcList,
|
|
23
|
+
react: React,
|
|
24
|
+
events: {
|
|
25
|
+
onArcChange: 'arc-change' as EventName<CustomEvent>,
|
|
26
|
+
onArcItemClick: 'arc-item-click' as EventName<CustomEvent>,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -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 { ArcListItem } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ListItemProps {
|
|
8
|
+
value?: string;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
href?: string;
|
|
12
|
+
_hasPrefix?: string;
|
|
13
|
+
_hasSuffix?: string;
|
|
14
|
+
_hasDescription?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
onArcItemClick?: (e: CustomEvent) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const ListItem = createComponent({
|
|
21
|
+
tagName: 'arc-list-item',
|
|
22
|
+
elementClass: ArcListItem,
|
|
23
|
+
react: React,
|
|
24
|
+
events: {
|
|
25
|
+
onArcItemClick: 'arc-item-click' as EventName<CustomEvent>,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { ArcScrollIndicator } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ScrollIndicatorProps {
|
|
8
|
+
target?: string;
|
|
9
|
+
position?: 'bottom';
|
|
10
|
+
size?: 'sm' | 'md' | 'lg';
|
|
11
|
+
color?: 'gradient';
|
|
12
|
+
_progress?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const ScrollIndicator = createComponent({
|
|
18
|
+
tagName: 'arc-scroll-indicator',
|
|
19
|
+
elementClass: ArcScrollIndicator,
|
|
20
|
+
react: React,
|
|
21
|
+
});
|
|
@@ -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 { ArcSeparator } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface SeparatorProps {
|
|
8
|
+
orientation?: 'vertical';
|
|
9
|
+
label?: string;
|
|
10
|
+
variant?: 'dashed' | 'dotted' | 'fade';
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Separator = createComponent({
|
|
16
|
+
tagName: 'arc-separator',
|
|
17
|
+
elementClass: ArcSeparator,
|
|
18
|
+
react: React,
|
|
19
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { ArcVirtualList } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface VirtualListProps {
|
|
8
|
+
items?: unknown[];
|
|
9
|
+
itemHeight?: number;
|
|
10
|
+
overscan?: number;
|
|
11
|
+
_startIndex?: string;
|
|
12
|
+
_visibleCount?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const VirtualList = createComponent({
|
|
18
|
+
tagName: 'arc-virtual-list',
|
|
19
|
+
elementClass: ArcVirtualList,
|
|
20
|
+
react: React,
|
|
21
|
+
});
|
package/src/content/index.ts
CHANGED
|
@@ -123,3 +123,18 @@ export type { CtaBannerProps } from './CtaBanner.js';
|
|
|
123
123
|
|
|
124
124
|
export { IconLibrary } from './IconLibrary.js';
|
|
125
125
|
export type { IconLibraryProps } from './IconLibrary.js';
|
|
126
|
+
|
|
127
|
+
export { Image } from './Image.js';
|
|
128
|
+
export type { ImageProps } from './Image.js';
|
|
129
|
+
|
|
130
|
+
export { ListItem } from './ListItem.js';
|
|
131
|
+
export type { ListItemProps } from './ListItem.js';
|
|
132
|
+
|
|
133
|
+
export { ScrollIndicator } from './ScrollIndicator.js';
|
|
134
|
+
export type { ScrollIndicatorProps } from './ScrollIndicator.js';
|
|
135
|
+
|
|
136
|
+
export { Separator } from './Separator.js';
|
|
137
|
+
export type { SeparatorProps } from './Separator.js';
|
|
138
|
+
|
|
139
|
+
export { VirtualList } from './VirtualList.js';
|
|
140
|
+
export type { VirtualListProps } from './VirtualList.js';
|
|
@@ -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,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 { ArcBadge } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface BadgeProps {
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
9
|
+
size?: 'sm' | 'lg';
|
|
10
|
+
color?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Badge = createComponent({
|
|
16
|
+
tagName: 'arc-badge',
|
|
17
|
+
elementClass: ArcBadge,
|
|
18
|
+
react: React,
|
|
19
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
virtual?: boolean;
|
|
14
|
+
rowHeight?: number;
|
|
15
|
+
_columns?: string;
|
|
16
|
+
_selectedRows?: string;
|
|
17
|
+
_startIndex?: string;
|
|
18
|
+
_visibleCount?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
onArcSort?: (e: CustomEvent) => void;
|
|
22
|
+
onArcSelectAll?: (e: CustomEvent) => void;
|
|
23
|
+
onArcRowSelect?: (e: CustomEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const DataTable = createComponent({
|
|
27
|
+
tagName: 'arc-data-table',
|
|
28
|
+
elementClass: ArcDataTable,
|
|
29
|
+
react: React,
|
|
30
|
+
events: {
|
|
31
|
+
onArcSort: 'arc-sort' as EventName<CustomEvent>,
|
|
32
|
+
onArcSelectAll: 'arc-select-all' as EventName<CustomEvent>,
|
|
33
|
+
onArcRowSelect: 'arc-row-select' as EventName<CustomEvent>,
|
|
34
|
+
},
|
|
35
|
+
});
|
package/src/data/List.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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 { ArcList } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ListProps {
|
|
8
|
+
variant?: 'bordered' | 'separated';
|
|
9
|
+
size?: 'sm' | 'lg';
|
|
10
|
+
selectable?: boolean;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
value?: string;
|
|
13
|
+
_items?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
onArcChange?: (e: CustomEvent) => void;
|
|
17
|
+
onArcItemClick?: (e: CustomEvent) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const List = createComponent({
|
|
21
|
+
tagName: 'arc-list',
|
|
22
|
+
elementClass: ArcList,
|
|
23
|
+
react: React,
|
|
24
|
+
events: {
|
|
25
|
+
onArcChange: 'arc-change' as EventName<CustomEvent>,
|
|
26
|
+
onArcItemClick: 'arc-item-click' as EventName<CustomEvent>,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -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 { ArcListItem } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ListItemProps {
|
|
8
|
+
value?: string;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
href?: string;
|
|
12
|
+
_hasPrefix?: string;
|
|
13
|
+
_hasSuffix?: string;
|
|
14
|
+
_hasDescription?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
onArcItemClick?: (e: CustomEvent) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const ListItem = createComponent({
|
|
21
|
+
tagName: 'arc-list-item',
|
|
22
|
+
elementClass: ArcListItem,
|
|
23
|
+
react: React,
|
|
24
|
+
events: {
|
|
25
|
+
onArcItemClick: 'arc-item-click' as EventName<CustomEvent>,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
@@ -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 { ArcMeter } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface MeterProps {
|
|
8
|
+
value?: number;
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
low?: number;
|
|
12
|
+
high?: number;
|
|
13
|
+
optimum?: number;
|
|
14
|
+
label?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const Meter = createComponent({
|
|
20
|
+
tagName: 'arc-meter',
|
|
21
|
+
elementClass: ArcMeter,
|
|
22
|
+
react: React,
|
|
23
|
+
});
|
package/src/data/Stat.ts
ADDED
|
@@ -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 { ArcStat } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface StatProps {
|
|
8
|
+
value?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
trend?: 'up' | 'down' | 'neutral';
|
|
11
|
+
change?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Stat = createComponent({
|
|
17
|
+
tagName: 'arc-stat',
|
|
18
|
+
elementClass: ArcStat,
|
|
19
|
+
react: React,
|
|
20
|
+
});
|
package/src/data/Step.ts
ADDED
|
@@ -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 { ArcStep } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface StepProps {
|
|
8
|
+
label?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Step = createComponent({
|
|
14
|
+
tagName: 'arc-step',
|
|
15
|
+
elementClass: ArcStep,
|
|
16
|
+
react: React,
|
|
17
|
+
});
|
|
@@ -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 { ArcStepper } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface StepperProps {
|
|
8
|
+
active?: number;
|
|
9
|
+
_steps?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Stepper = createComponent({
|
|
15
|
+
tagName: 'arc-stepper',
|
|
16
|
+
elementClass: ArcStepper,
|
|
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 { ArcTable } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface TableProps {
|
|
8
|
+
columns?: unknown[];
|
|
9
|
+
rows?: unknown[];
|
|
10
|
+
striped?: boolean;
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Table = createComponent({
|
|
17
|
+
tagName: 'arc-table',
|
|
18
|
+
elementClass: ArcTable,
|
|
19
|
+
react: React,
|
|
20
|
+
});
|
package/src/data/Tag.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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 { ArcTag } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface TagProps {
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
9
|
+
size?: 'sm' | 'lg';
|
|
10
|
+
removable?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
color?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
onArcRemove?: (e: CustomEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const Tag = createComponent({
|
|
19
|
+
tagName: 'arc-tag',
|
|
20
|
+
elementClass: ArcTag,
|
|
21
|
+
react: React,
|
|
22
|
+
events: {
|
|
23
|
+
onArcRemove: 'arc-remove' as EventName<CustomEvent>,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -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 { ArcTimeline } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface TimelineProps {
|
|
8
|
+
_items?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Timeline = createComponent({
|
|
14
|
+
tagName: 'arc-timeline',
|
|
15
|
+
elementClass: ArcTimeline,
|
|
16
|
+
react: React,
|
|
17
|
+
});
|
|
@@ -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 { ArcTimelineItem } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface TimelineItemProps {
|
|
8
|
+
heading?: string;
|
|
9
|
+
date?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const TimelineItem = createComponent({
|
|
15
|
+
tagName: 'arc-timeline-item',
|
|
16
|
+
elementClass: ArcTimelineItem,
|
|
17
|
+
react: React,
|
|
18
|
+
});
|
|
@@ -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 { ArcValueCard } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ValueCardProps {
|
|
8
|
+
icon?: string;
|
|
9
|
+
heading?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const ValueCard = createComponent({
|
|
16
|
+
tagName: 'arc-value-card',
|
|
17
|
+
elementClass: ArcValueCard,
|
|
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 { ArcAnnouncement } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface AnnouncementProps {
|
|
8
|
+
politeness?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Announcement = createComponent({
|
|
15
|
+
tagName: 'arc-announcement',
|
|
16
|
+
elementClass: ArcAnnouncement,
|
|
17
|
+
react: React,
|
|
18
|
+
});
|
|
@@ -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 { ArcBanner } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface BannerProps {
|
|
8
|
+
variant?: string;
|
|
9
|
+
dismissible?: boolean;
|
|
10
|
+
sticky?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
onArcDismiss?: (e: CustomEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Banner = createComponent({
|
|
17
|
+
tagName: 'arc-banner',
|
|
18
|
+
elementClass: ArcBanner,
|
|
19
|
+
react: React,
|
|
20
|
+
events: {
|
|
21
|
+
onArcDismiss: 'arc-dismiss' as EventName<CustomEvent>,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { ArcConfirm } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ConfirmProps {
|
|
8
|
+
open?: boolean;
|
|
9
|
+
heading?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
variant?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
onArcConfirm?: (e: CustomEvent) => void;
|
|
15
|
+
onArcCancel?: (e: CustomEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const Confirm = createComponent({
|
|
19
|
+
tagName: 'arc-confirm',
|
|
20
|
+
elementClass: ArcConfirm,
|
|
21
|
+
react: React,
|
|
22
|
+
events: {
|
|
23
|
+
onArcConfirm: 'arc-confirm' as EventName<CustomEvent>,
|
|
24
|
+
onArcCancel: 'arc-cancel' as EventName<CustomEvent>,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
@@ -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 { ArcConnectionStatus } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ConnectionStatusProps {
|
|
8
|
+
online?: string;
|
|
9
|
+
_visible?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
onArcOnline?: (e: CustomEvent) => void;
|
|
13
|
+
onArcOffline?: (e: CustomEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const ConnectionStatus = createComponent({
|
|
17
|
+
tagName: 'arc-connection-status',
|
|
18
|
+
elementClass: ArcConnectionStatus,
|
|
19
|
+
react: React,
|
|
20
|
+
events: {
|
|
21
|
+
onArcOnline: 'arc-online' as EventName<CustomEvent>,
|
|
22
|
+
onArcOffline: 'arc-offline' as EventName<CustomEvent>,
|
|
23
|
+
},
|
|
24
|
+
});
|
package/src/feedback/Dialog.ts
CHANGED
|
@@ -8,12 +8,11 @@ export interface DialogProps {
|
|
|
8
8
|
open?: boolean;
|
|
9
9
|
heading?: string;
|
|
10
10
|
message?: string;
|
|
11
|
-
variant?:
|
|
11
|
+
variant?: string;
|
|
12
12
|
className?: string;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
onArcConfirm?: (e: CustomEvent) => void;
|
|
15
15
|
onArcCancel?: (e: CustomEvent) => void;
|
|
16
|
-
onClick?: (e: Event) => void;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export const Dialog = createComponent({
|
|
@@ -23,6 +22,5 @@ export const Dialog = createComponent({
|
|
|
23
22
|
events: {
|
|
24
23
|
onArcConfirm: 'arc-confirm' as EventName<CustomEvent>,
|
|
25
24
|
onArcCancel: 'arc-cancel' as EventName<CustomEvent>,
|
|
26
|
-
onClick: 'click' as EventName<Event>,
|
|
27
25
|
},
|
|
28
26
|
});
|