@arclux/arc-ui-react 1.9.2 → 1.10.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/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/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/index.ts +27 -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.0",
|
|
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.0"
|
|
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,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
|
});
|
|
@@ -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 { ArcGuidedTour } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface GuidedTourProps {
|
|
8
|
+
steps?: string;
|
|
9
|
+
active?: string;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
onArcChange?: (e: CustomEvent) => void;
|
|
14
|
+
onArcComplete?: (e: CustomEvent) => void;
|
|
15
|
+
onArcDismiss?: (e: CustomEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const GuidedTour = createComponent({
|
|
19
|
+
tagName: 'arc-guided-tour',
|
|
20
|
+
elementClass: ArcGuidedTour,
|
|
21
|
+
react: React,
|
|
22
|
+
events: {
|
|
23
|
+
onArcChange: 'arc-change' as EventName<CustomEvent>,
|
|
24
|
+
onArcComplete: 'arc-complete' as EventName<CustomEvent>,
|
|
25
|
+
onArcDismiss: 'arc-dismiss' as EventName<CustomEvent>,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
@@ -5,7 +5,7 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcHoverCard } from '@arclux/arc-ui';
|
|
6
6
|
|
|
7
7
|
export interface HoverCardProps {
|
|
8
|
-
position?:
|
|
8
|
+
position?: string;
|
|
9
9
|
openDelay?: number;
|
|
10
10
|
closeDelay?: number;
|
|
11
11
|
_visible?: string;
|
|
@@ -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 { ArcInlineMessage } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface InlineMessageProps {
|
|
8
|
+
variant?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const InlineMessage = createComponent({
|
|
14
|
+
tagName: 'arc-inline-message',
|
|
15
|
+
elementClass: ArcInlineMessage,
|
|
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 { ArcLoadingOverlay } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface LoadingOverlayProps {
|
|
8
|
+
active?: boolean;
|
|
9
|
+
message?: string;
|
|
10
|
+
global?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const LoadingOverlay = createComponent({
|
|
16
|
+
tagName: 'arc-loading-overlay',
|
|
17
|
+
elementClass: ArcLoadingOverlay,
|
|
18
|
+
react: React,
|
|
19
|
+
});
|
package/src/feedback/Popover.ts
CHANGED
|
@@ -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 { ArcProgressToast } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface ProgressToastProps {
|
|
8
|
+
position?: 'bottom-right' | 'top-right';
|
|
9
|
+
_toasts?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
onArcComplete?: (e: CustomEvent) => void;
|
|
13
|
+
onArcCancel?: (e: CustomEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const ProgressToast = createComponent({
|
|
17
|
+
tagName: 'arc-progress-toast',
|
|
18
|
+
elementClass: ArcProgressToast,
|
|
19
|
+
react: React,
|
|
20
|
+
events: {
|
|
21
|
+
onArcComplete: 'arc-complete' as EventName<CustomEvent>,
|
|
22
|
+
onArcCancel: 'arc-cancel' as EventName<CustomEvent>,
|
|
23
|
+
},
|
|
24
|
+
});
|
package/src/feedback/Sheet.ts
CHANGED
|
@@ -12,7 +12,6 @@ export interface SheetProps {
|
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
onArcClose?: (e: CustomEvent) => void;
|
|
14
14
|
onArcOpen?: (e: CustomEvent) => void;
|
|
15
|
-
onClick?: (e: Event) => void;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export const Sheet = createComponent({
|
|
@@ -22,6 +21,5 @@ export const Sheet = createComponent({
|
|
|
22
21
|
events: {
|
|
23
22
|
onArcClose: 'arc-close' as EventName<CustomEvent>,
|
|
24
23
|
onArcOpen: 'arc-open' as EventName<CustomEvent>,
|
|
25
|
-
onClick: 'click' as EventName<Event>,
|
|
26
24
|
},
|
|
27
25
|
});
|
|
@@ -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 { ArcSnackbar } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface SnackbarProps {
|
|
8
|
+
position?: 'bottom-center' | 'bottom-left' | 'bottom-right';
|
|
9
|
+
duration?: number;
|
|
10
|
+
_snackbars?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
onArcAction?: (e: CustomEvent) => void;
|
|
14
|
+
onArcDismiss?: (e: CustomEvent) => void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const Snackbar = createComponent({
|
|
18
|
+
tagName: 'arc-snackbar',
|
|
19
|
+
elementClass: ArcSnackbar,
|
|
20
|
+
react: React,
|
|
21
|
+
events: {
|
|
22
|
+
onArcAction: 'arc-action' as EventName<CustomEvent>,
|
|
23
|
+
onArcDismiss: 'arc-dismiss' as EventName<CustomEvent>,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -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 { ArcSpotlight } from '@arclux/arc-ui';
|
|
6
|
+
|
|
7
|
+
export interface SpotlightProps {
|
|
8
|
+
target?: string;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
padding?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
onArcDismiss?: (e: CustomEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Spotlight = createComponent({
|
|
17
|
+
tagName: 'arc-spotlight',
|
|
18
|
+
elementClass: ArcSpotlight,
|
|
19
|
+
react: React,
|
|
20
|
+
events: {
|
|
21
|
+
onArcDismiss: 'arc-dismiss' as EventName<CustomEvent>,
|
|
22
|
+
},
|
|
23
|
+
});
|
package/src/feedback/index.ts
CHANGED
|
@@ -42,3 +42,33 @@ export type { ToastProps } from './Toast.js';
|
|
|
42
42
|
|
|
43
43
|
export { Tooltip } from './Tooltip.js';
|
|
44
44
|
export type { TooltipProps } from './Tooltip.js';
|
|
45
|
+
|
|
46
|
+
export { Announcement } from './Announcement.js';
|
|
47
|
+
export type { AnnouncementProps } from './Announcement.js';
|
|
48
|
+
|
|
49
|
+
export { Banner } from './Banner.js';
|
|
50
|
+
export type { BannerProps } from './Banner.js';
|
|
51
|
+
|
|
52
|
+
export { Confirm } from './Confirm.js';
|
|
53
|
+
export type { ConfirmProps } from './Confirm.js';
|
|
54
|
+
|
|
55
|
+
export { ConnectionStatus } from './ConnectionStatus.js';
|
|
56
|
+
export type { ConnectionStatusProps } from './ConnectionStatus.js';
|
|
57
|
+
|
|
58
|
+
export { GuidedTour } from './GuidedTour.js';
|
|
59
|
+
export type { GuidedTourProps } from './GuidedTour.js';
|
|
60
|
+
|
|
61
|
+
export { InlineMessage } from './InlineMessage.js';
|
|
62
|
+
export type { InlineMessageProps } from './InlineMessage.js';
|
|
63
|
+
|
|
64
|
+
export { LoadingOverlay } from './LoadingOverlay.js';
|
|
65
|
+
export type { LoadingOverlayProps } from './LoadingOverlay.js';
|
|
66
|
+
|
|
67
|
+
export { ProgressToast } from './ProgressToast.js';
|
|
68
|
+
export type { ProgressToastProps } from './ProgressToast.js';
|
|
69
|
+
|
|
70
|
+
export { Snackbar } from './Snackbar.js';
|
|
71
|
+
export type { SnackbarProps } from './Snackbar.js';
|
|
72
|
+
|
|
73
|
+
export { Spotlight } from './Spotlight.js';
|
|
74
|
+
export type { SpotlightProps } from './Spotlight.js';
|