@arclux/arc-ui-preact 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.tsx +3 -2
- package/src/content/DataTable.tsx +6 -2
- package/src/content/Image.tsx +22 -0
- package/src/content/List.tsx +21 -0
- package/src/content/ListItem.tsx +22 -0
- package/src/content/ScrollIndicator.tsx +20 -0
- package/src/content/Separator.tsx +18 -0
- package/src/content/VirtualList.tsx +20 -0
- package/src/content/index.ts +15 -0
- package/src/data/AnimatedNumber.tsx +22 -0
- package/src/data/Badge.tsx +18 -0
- package/src/data/DataTable.tsx +26 -0
- package/src/data/List.tsx +21 -0
- package/src/data/ListItem.tsx +22 -0
- package/src/data/Meter.tsx +22 -0
- package/src/data/Stat.tsx +19 -0
- package/src/data/Step.tsx +16 -0
- package/src/data/Stepper.tsx +17 -0
- package/src/data/Table.tsx +19 -0
- package/src/data/Tag.tsx +20 -0
- package/src/data/Timeline.tsx +16 -0
- package/src/data/TimelineItem.tsx +17 -0
- package/src/data/ValueCard.tsx +18 -0
- package/src/feedback/Announcement.tsx +17 -0
- package/src/feedback/Banner.tsx +18 -0
- package/src/feedback/CommandPalette.tsx +2 -3
- package/src/feedback/Confirm.tsx +19 -0
- package/src/feedback/ConnectionStatus.tsx +17 -0
- package/src/feedback/Dialog.tsx +1 -1
- package/src/feedback/DropdownMenu.tsx +2 -3
- package/src/feedback/GuidedTour.tsx +18 -0
- package/src/feedback/HoverCard.tsx +1 -1
- package/src/feedback/InlineMessage.tsx +16 -0
- package/src/feedback/LoadingOverlay.tsx +18 -0
- package/src/feedback/Popover.tsx +1 -1
- package/src/feedback/ProgressToast.tsx +17 -0
- package/src/feedback/Snackbar.tsx +18 -0
- package/src/feedback/Spotlight.tsx +18 -0
- package/src/index.ts +120 -0
- package/src/input/ButtonGroup.tsx +18 -0
- package/src/input/Fieldset.tsx +22 -0
- package/src/input/Hotkey.tsx +18 -0
- package/src/input/InputGroup.tsx +18 -0
- package/src/input/Label.tsx +21 -0
- package/src/input/SwitchGroup.tsx +19 -0
- package/src/layout/AspectGrid.tsx +18 -0
- package/src/layout/Center.tsx +18 -0
- package/src/layout/Cluster.tsx +18 -0
- package/src/layout/Dock.tsx +19 -0
- package/src/layout/FloatBar.tsx +17 -0
- package/src/layout/Inset.tsx +17 -0
- package/src/layout/Masonry.tsx +17 -0
- package/src/layout/ResponsiveSwitcher.tsx +17 -0
- package/src/layout/Sticky.tsx +17 -0
- package/src/navigation/AnchorNav.tsx +18 -0
- package/src/navigation/BottomNav.tsx +17 -0
- package/src/navigation/BreadcrumbMenu.tsx +17 -0
- package/src/navigation/CommandBar.tsx +18 -0
- package/src/navigation/PageIndicator.tsx +18 -0
- package/src/navigation/Rail.tsx +18 -0
- package/src/navigation/SkipLink.tsx +16 -0
- package/src/navigation/SpeedDial.tsx +19 -0
- package/src/navigation/StepperNav.tsx +18 -0
- package/src/navigation/Tabs.tsx +2 -3
- package/src/typography/CodeBlock.tsx +20 -0
- package/src/typography/Highlight.tsx +18 -0
- package/src/typography/Kbd.tsx +15 -0
- package/src/typography/Markdown.tsx +16 -0
- package/src/typography/Text.tsx +17 -0
- package/src/typography/Truncate.tsx +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arclux/arc-ui-preact",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Preact wrappers for ARC UI Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"preact": ">=10.19.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@arclux/arc-ui": "1.
|
|
47
|
+
"@arclux/arc-ui": "1.10.1"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"keywords": [
|
package/src/content/Avatar.tsx
CHANGED
|
@@ -9,12 +9,13 @@ export interface AvatarProps {
|
|
|
9
9
|
size?: 'sm' | 'md' | 'lg';
|
|
10
10
|
shape?: 'square' | 'rounded';
|
|
11
11
|
status?: 'online' | 'offline' | 'busy' | 'away';
|
|
12
|
+
_imgState?: string;
|
|
12
13
|
children?: preact.ComponentChildren;
|
|
13
14
|
[key: string]: unknown;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
export const Avatar: FunctionComponent<AvatarProps> = ({ src, name, size, shape, status, children, ...rest }) => (
|
|
17
|
-
<arc-avatar src={src} name={name} size={size} shape={shape} status={status} {...rest}>
|
|
17
|
+
export const Avatar: FunctionComponent<AvatarProps> = ({ src, name, size, shape, status, _imgState, children, ...rest }) => (
|
|
18
|
+
<arc-avatar src={src} name={name} size={size} shape={shape} status={status} _imgState={_imgState} {...rest}>
|
|
18
19
|
{children}
|
|
19
20
|
</arc-avatar>
|
|
20
21
|
);
|
|
@@ -9,14 +9,18 @@ export interface DataTableProps {
|
|
|
9
9
|
selectable?: boolean;
|
|
10
10
|
sortColumn?: string;
|
|
11
11
|
sortDirection?: string;
|
|
12
|
+
virtual?: boolean;
|
|
13
|
+
rowHeight?: number;
|
|
12
14
|
_columns?: string;
|
|
13
15
|
_selectedRows?: string;
|
|
16
|
+
_startIndex?: string;
|
|
17
|
+
_visibleCount?: string;
|
|
14
18
|
children?: preact.ComponentChildren;
|
|
15
19
|
[key: string]: unknown;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
|
-
export const DataTable: FunctionComponent<DataTableProps> = ({ rows, sortable, selectable, sortColumn, sortDirection, _columns, _selectedRows, children, ...rest }) => (
|
|
19
|
-
<arc-data-table rows={rows} sortable={sortable} selectable={selectable} sortColumn={sortColumn} sortDirection={sortDirection} _columns={_columns} _selectedRows={_selectedRows} {...rest}>
|
|
22
|
+
export const DataTable: FunctionComponent<DataTableProps> = ({ rows, sortable, selectable, sortColumn, sortDirection, virtual, rowHeight, _columns, _selectedRows, _startIndex, _visibleCount, children, ...rest }) => (
|
|
23
|
+
<arc-data-table rows={rows} sortable={sortable} selectable={selectable} sortColumn={sortColumn} sortDirection={sortDirection} virtual={virtual} rowHeight={rowHeight} _columns={_columns} _selectedRows={_selectedRows} _startIndex={_startIndex} _visibleCount={_visibleCount} {...rest}>
|
|
20
24
|
{children}
|
|
21
25
|
</arc-data-table>
|
|
22
26
|
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ImageProps {
|
|
7
|
+
src?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
aspect?: '1/1' | '4/3' | '16/9' | '21/9' | '3/4' | '9/16';
|
|
10
|
+
fit?: 'contain' | 'fill' | 'none' | 'scale-down';
|
|
11
|
+
loading?: string;
|
|
12
|
+
fallback?: string;
|
|
13
|
+
_state?: string;
|
|
14
|
+
children?: preact.ComponentChildren;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const Image: FunctionComponent<ImageProps> = ({ src, alt, aspect, fit, loading, fallback, _state, children, ...rest }) => (
|
|
19
|
+
<arc-image src={src} alt={alt} aspect={aspect} fit={fit} loading={loading} fallback={fallback} _state={_state} {...rest}>
|
|
20
|
+
{children}
|
|
21
|
+
</arc-image>
|
|
22
|
+
);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ListProps {
|
|
7
|
+
variant?: 'bordered' | 'separated';
|
|
8
|
+
size?: 'sm' | 'lg';
|
|
9
|
+
selectable?: boolean;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
value?: string;
|
|
12
|
+
_items?: string;
|
|
13
|
+
children?: preact.ComponentChildren;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const List: FunctionComponent<ListProps> = ({ variant, size, selectable, multiple, value, _items, children, ...rest }) => (
|
|
18
|
+
<arc-list variant={variant} size={size} selectable={selectable} multiple={multiple} value={value} _items={_items} {...rest}>
|
|
19
|
+
{children}
|
|
20
|
+
</arc-list>
|
|
21
|
+
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ListItemProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
href?: string;
|
|
11
|
+
_hasPrefix?: string;
|
|
12
|
+
_hasSuffix?: string;
|
|
13
|
+
_hasDescription?: string;
|
|
14
|
+
children?: preact.ComponentChildren;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const ListItem: FunctionComponent<ListItemProps> = ({ value, selected, disabled, href, _hasPrefix, _hasSuffix, _hasDescription, children, ...rest }) => (
|
|
19
|
+
<arc-list-item value={value} selected={selected} disabled={disabled} href={href} _hasPrefix={_hasPrefix} _hasSuffix={_hasSuffix} _hasDescription={_hasDescription} {...rest}>
|
|
20
|
+
{children}
|
|
21
|
+
</arc-list-item>
|
|
22
|
+
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ScrollIndicatorProps {
|
|
7
|
+
target?: string;
|
|
8
|
+
position?: 'bottom';
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
color?: 'gradient';
|
|
11
|
+
_progress?: string;
|
|
12
|
+
children?: preact.ComponentChildren;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const ScrollIndicator: FunctionComponent<ScrollIndicatorProps> = ({ target, position, size, color, _progress, children, ...rest }) => (
|
|
17
|
+
<arc-scroll-indicator target={target} position={position} size={size} color={color} _progress={_progress} {...rest}>
|
|
18
|
+
{children}
|
|
19
|
+
</arc-scroll-indicator>
|
|
20
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface SeparatorProps {
|
|
7
|
+
orientation?: 'vertical';
|
|
8
|
+
label?: string;
|
|
9
|
+
variant?: 'dashed' | 'dotted' | 'fade';
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Separator: FunctionComponent<SeparatorProps> = ({ orientation, label, variant, children, ...rest }) => (
|
|
15
|
+
<arc-separator orientation={orientation} label={label} variant={variant} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-separator>
|
|
18
|
+
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface VirtualListProps {
|
|
7
|
+
items?: unknown[];
|
|
8
|
+
itemHeight?: number;
|
|
9
|
+
overscan?: number;
|
|
10
|
+
_startIndex?: string;
|
|
11
|
+
_visibleCount?: string;
|
|
12
|
+
children?: preact.ComponentChildren;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const VirtualList: FunctionComponent<VirtualListProps> = ({ items, itemHeight, overscan, _startIndex, _visibleCount, children, ...rest }) => (
|
|
17
|
+
<arc-virtual-list items={items} itemHeight={itemHeight} overscan={overscan} _startIndex={_startIndex} _visibleCount={_visibleCount} {...rest}>
|
|
18
|
+
{children}
|
|
19
|
+
</arc-virtual-list>
|
|
20
|
+
);
|
package/src/content/index.ts
CHANGED
|
@@ -93,3 +93,18 @@ export type { CtaBannerProps } from './CtaBanner.js';
|
|
|
93
93
|
|
|
94
94
|
export { IconLibrary } from './IconLibrary.js';
|
|
95
95
|
export type { IconLibraryProps } from './IconLibrary.js';
|
|
96
|
+
|
|
97
|
+
export { Image } from './Image.js';
|
|
98
|
+
export type { ImageProps } from './Image.js';
|
|
99
|
+
|
|
100
|
+
export { ListItem } from './ListItem.js';
|
|
101
|
+
export type { ListItemProps } from './ListItem.js';
|
|
102
|
+
|
|
103
|
+
export { ScrollIndicator } from './ScrollIndicator.js';
|
|
104
|
+
export type { ScrollIndicatorProps } from './ScrollIndicator.js';
|
|
105
|
+
|
|
106
|
+
export { Separator } from './Separator.js';
|
|
107
|
+
export type { SeparatorProps } from './Separator.js';
|
|
108
|
+
|
|
109
|
+
export { VirtualList } from './VirtualList.js';
|
|
110
|
+
export type { VirtualListProps } from './VirtualList.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface AnimatedNumberProps {
|
|
7
|
+
value?: number;
|
|
8
|
+
duration?: number;
|
|
9
|
+
format?: string;
|
|
10
|
+
prefix?: string;
|
|
11
|
+
suffix?: string;
|
|
12
|
+
decimals?: number;
|
|
13
|
+
locale?: string;
|
|
14
|
+
children?: preact.ComponentChildren;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const AnimatedNumber: FunctionComponent<AnimatedNumberProps> = ({ value, duration, format, prefix, suffix, decimals, locale, children, ...rest }) => (
|
|
19
|
+
<arc-animated-number value={value} duration={duration} format={format} prefix={prefix} suffix={suffix} decimals={decimals} locale={locale} {...rest}>
|
|
20
|
+
{children}
|
|
21
|
+
</arc-animated-number>
|
|
22
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface BadgeProps {
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
8
|
+
size?: 'sm' | 'lg';
|
|
9
|
+
color?: string;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Badge: FunctionComponent<BadgeProps> = ({ variant, size, color, children, ...rest }) => (
|
|
15
|
+
<arc-badge variant={variant} size={size} color={color} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-badge>
|
|
18
|
+
);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface DataTableProps {
|
|
7
|
+
rows?: unknown[];
|
|
8
|
+
sortable?: boolean;
|
|
9
|
+
selectable?: boolean;
|
|
10
|
+
sortColumn?: string;
|
|
11
|
+
sortDirection?: string;
|
|
12
|
+
virtual?: boolean;
|
|
13
|
+
rowHeight?: number;
|
|
14
|
+
_columns?: string;
|
|
15
|
+
_selectedRows?: string;
|
|
16
|
+
_startIndex?: string;
|
|
17
|
+
_visibleCount?: string;
|
|
18
|
+
children?: preact.ComponentChildren;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const DataTable: FunctionComponent<DataTableProps> = ({ rows, sortable, selectable, sortColumn, sortDirection, virtual, rowHeight, _columns, _selectedRows, _startIndex, _visibleCount, children, ...rest }) => (
|
|
23
|
+
<arc-data-table rows={rows} sortable={sortable} selectable={selectable} sortColumn={sortColumn} sortDirection={sortDirection} virtual={virtual} rowHeight={rowHeight} _columns={_columns} _selectedRows={_selectedRows} _startIndex={_startIndex} _visibleCount={_visibleCount} {...rest}>
|
|
24
|
+
{children}
|
|
25
|
+
</arc-data-table>
|
|
26
|
+
);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ListProps {
|
|
7
|
+
variant?: 'bordered' | 'separated';
|
|
8
|
+
size?: 'sm' | 'lg';
|
|
9
|
+
selectable?: boolean;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
value?: string;
|
|
12
|
+
_items?: string;
|
|
13
|
+
children?: preact.ComponentChildren;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const List: FunctionComponent<ListProps> = ({ variant, size, selectable, multiple, value, _items, children, ...rest }) => (
|
|
18
|
+
<arc-list variant={variant} size={size} selectable={selectable} multiple={multiple} value={value} _items={_items} {...rest}>
|
|
19
|
+
{children}
|
|
20
|
+
</arc-list>
|
|
21
|
+
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ListItemProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
href?: string;
|
|
11
|
+
_hasPrefix?: string;
|
|
12
|
+
_hasSuffix?: string;
|
|
13
|
+
_hasDescription?: string;
|
|
14
|
+
children?: preact.ComponentChildren;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const ListItem: FunctionComponent<ListItemProps> = ({ value, selected, disabled, href, _hasPrefix, _hasSuffix, _hasDescription, children, ...rest }) => (
|
|
19
|
+
<arc-list-item value={value} selected={selected} disabled={disabled} href={href} _hasPrefix={_hasPrefix} _hasSuffix={_hasSuffix} _hasDescription={_hasDescription} {...rest}>
|
|
20
|
+
{children}
|
|
21
|
+
</arc-list-item>
|
|
22
|
+
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface MeterProps {
|
|
7
|
+
value?: number;
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
low?: number;
|
|
11
|
+
high?: number;
|
|
12
|
+
optimum?: number;
|
|
13
|
+
label?: string;
|
|
14
|
+
children?: preact.ComponentChildren;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const Meter: FunctionComponent<MeterProps> = ({ value, min, max, low, high, optimum, label, children, ...rest }) => (
|
|
19
|
+
<arc-meter value={value} min={min} max={max} low={low} high={high} optimum={optimum} label={label} {...rest}>
|
|
20
|
+
{children}
|
|
21
|
+
</arc-meter>
|
|
22
|
+
);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface StatProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
trend?: 'up' | 'down' | 'neutral';
|
|
10
|
+
change?: string;
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Stat: FunctionComponent<StatProps> = ({ value, label, trend, change, children, ...rest }) => (
|
|
16
|
+
<arc-stat value={value} label={label} trend={trend} change={change} {...rest}>
|
|
17
|
+
{children}
|
|
18
|
+
</arc-stat>
|
|
19
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface StepProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Step: FunctionComponent<StepProps> = ({ label, children, ...rest }) => (
|
|
13
|
+
<arc-step label={label} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-step>
|
|
16
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface StepperProps {
|
|
7
|
+
active?: number;
|
|
8
|
+
_steps?: string;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Stepper: FunctionComponent<StepperProps> = ({ active, _steps, children, ...rest }) => (
|
|
14
|
+
<arc-stepper active={active} _steps={_steps} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-stepper>
|
|
17
|
+
);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface TableProps {
|
|
7
|
+
columns?: unknown[];
|
|
8
|
+
rows?: unknown[];
|
|
9
|
+
striped?: boolean;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Table: FunctionComponent<TableProps> = ({ columns, rows, striped, compact, children, ...rest }) => (
|
|
16
|
+
<arc-table columns={columns} rows={rows} striped={striped} compact={compact} {...rest}>
|
|
17
|
+
{children}
|
|
18
|
+
</arc-table>
|
|
19
|
+
);
|
package/src/data/Tag.tsx
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface TagProps {
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
8
|
+
size?: 'sm' | 'lg';
|
|
9
|
+
removable?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
color?: string;
|
|
12
|
+
children?: preact.ComponentChildren;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Tag: FunctionComponent<TagProps> = ({ variant, size, removable, disabled, color, children, ...rest }) => (
|
|
17
|
+
<arc-tag variant={variant} size={size} removable={removable} disabled={disabled} color={color} {...rest}>
|
|
18
|
+
{children}
|
|
19
|
+
</arc-tag>
|
|
20
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface TimelineProps {
|
|
7
|
+
_items?: string;
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Timeline: FunctionComponent<TimelineProps> = ({ _items, children, ...rest }) => (
|
|
13
|
+
<arc-timeline _items={_items} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-timeline>
|
|
16
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface TimelineItemProps {
|
|
7
|
+
heading?: string;
|
|
8
|
+
date?: string;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const TimelineItem: FunctionComponent<TimelineItemProps> = ({ heading, date, children, ...rest }) => (
|
|
14
|
+
<arc-timeline-item heading={heading} date={date} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-timeline-item>
|
|
17
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ValueCardProps {
|
|
7
|
+
icon?: string;
|
|
8
|
+
heading?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const ValueCard: FunctionComponent<ValueCardProps> = ({ icon, heading, description, children, ...rest }) => (
|
|
15
|
+
<arc-value-card icon={icon} heading={heading} description={description} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-value-card>
|
|
18
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface AnnouncementProps {
|
|
7
|
+
politeness?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Announcement: FunctionComponent<AnnouncementProps> = ({ politeness, message, children, ...rest }) => (
|
|
14
|
+
<arc-announcement politeness={politeness} message={message} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-announcement>
|
|
17
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface BannerProps {
|
|
7
|
+
variant?: string;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
sticky?: boolean;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Banner: FunctionComponent<BannerProps> = ({ variant, dismissible, sticky, children, ...rest }) => (
|
|
15
|
+
<arc-banner variant={variant} dismissible={dismissible} sticky={sticky} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-banner>
|
|
18
|
+
);
|
|
@@ -7,14 +7,13 @@ export interface CommandPaletteProps {
|
|
|
7
7
|
open?: boolean;
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
_query?: string;
|
|
10
|
-
_focusedIndex?: string;
|
|
11
10
|
_items?: string;
|
|
12
11
|
children?: preact.ComponentChildren;
|
|
13
12
|
[key: string]: unknown;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
export const CommandPalette: FunctionComponent<CommandPaletteProps> = ({ open, placeholder, _query,
|
|
17
|
-
<arc-command-palette open={open} placeholder={placeholder} _query={_query}
|
|
15
|
+
export const CommandPalette: FunctionComponent<CommandPaletteProps> = ({ open, placeholder, _query, _items, children, ...rest }) => (
|
|
16
|
+
<arc-command-palette open={open} placeholder={placeholder} _query={_query} _items={_items} {...rest}>
|
|
18
17
|
{children}
|
|
19
18
|
</arc-command-palette>
|
|
20
19
|
);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ConfirmProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
heading?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
variant?: string;
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Confirm: FunctionComponent<ConfirmProps> = ({ open, heading, message, variant, children, ...rest }) => (
|
|
16
|
+
<arc-confirm open={open} heading={heading} message={message} variant={variant} {...rest}>
|
|
17
|
+
{children}
|
|
18
|
+
</arc-confirm>
|
|
19
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ConnectionStatusProps {
|
|
7
|
+
online?: string;
|
|
8
|
+
_visible?: string;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const ConnectionStatus: FunctionComponent<ConnectionStatusProps> = ({ online, _visible, children, ...rest }) => (
|
|
14
|
+
<arc-connection-status online={online} _visible={_visible} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-connection-status>
|
|
17
|
+
);
|
package/src/feedback/Dialog.tsx
CHANGED
|
@@ -5,14 +5,13 @@ import '@arclux/arc-ui';
|
|
|
5
5
|
|
|
6
6
|
export interface DropdownMenuProps {
|
|
7
7
|
open?: boolean;
|
|
8
|
-
_focusedIndex?: string;
|
|
9
8
|
_children?: string;
|
|
10
9
|
children?: preact.ComponentChildren;
|
|
11
10
|
[key: string]: unknown;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
export const DropdownMenu: FunctionComponent<DropdownMenuProps> = ({ open,
|
|
15
|
-
<arc-dropdown-menu open={open}
|
|
13
|
+
export const DropdownMenu: FunctionComponent<DropdownMenuProps> = ({ open, _children, children, ...rest }) => (
|
|
14
|
+
<arc-dropdown-menu open={open} _children={_children} {...rest}>
|
|
16
15
|
{children}
|
|
17
16
|
</arc-dropdown-menu>
|
|
18
17
|
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { type FunctionComponent } from 'preact';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface GuidedTourProps {
|
|
7
|
+
steps?: string;
|
|
8
|
+
active?: string;
|
|
9
|
+
open?: boolean;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const GuidedTour: FunctionComponent<GuidedTourProps> = ({ steps, active, open, children, ...rest }) => (
|
|
15
|
+
<arc-guided-tour steps={steps} active={active} open={open} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-guided-tour>
|
|
18
|
+
);
|