@arclux/arc-ui-preact 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 +52 -0
- package/package.json +71 -0
- package/src/application/AppShell.tsx +16 -0
- package/src/application/AuthShell.tsx +16 -0
- package/src/application/Breadcrumb.tsx +16 -0
- package/src/application/BreadcrumbItem.tsx +16 -0
- package/src/application/Container.tsx +16 -0
- package/src/application/DashboardGrid.tsx +18 -0
- package/src/application/Footer.tsx +17 -0
- package/src/application/NavItem.tsx +18 -0
- package/src/application/NavigationMenu.tsx +17 -0
- package/src/application/NotificationPanel.tsx +18 -0
- package/src/application/PageHeader.tsx +17 -0
- package/src/application/PageLayout.tsx +18 -0
- package/src/application/Resizable.tsx +20 -0
- package/src/application/ScrollSpy.tsx +19 -0
- package/src/application/Section.tsx +16 -0
- package/src/application/SettingsLayout.tsx +16 -0
- package/src/application/Sidebar.tsx +20 -0
- package/src/application/SidebarLink.tsx +17 -0
- package/src/application/SidebarSection.tsx +18 -0
- package/src/application/SplitPane.tsx +19 -0
- package/src/application/SpyLink.tsx +16 -0
- package/src/application/StatusBar.tsx +16 -0
- package/src/application/Toolbar.tsx +18 -0
- package/src/application/TopBar.tsx +18 -0
- package/src/application/index.ts +45 -0
- package/src/content/Accordion.tsx +17 -0
- package/src/content/AccordionItem.tsx +16 -0
- package/src/content/AnimatedNumber.tsx +22 -0
- package/src/content/AspectRatio.tsx +16 -0
- package/src/content/Avatar.tsx +18 -0
- package/src/content/AvatarGroup.tsx +17 -0
- package/src/content/Badge.tsx +16 -0
- package/src/content/Callout.tsx +16 -0
- package/src/content/Card.tsx +16 -0
- package/src/content/Carousel.tsx +22 -0
- package/src/content/CodeBlock.tsx +19 -0
- package/src/content/Collapsible.tsx +17 -0
- package/src/content/ColorSwatch.tsx +18 -0
- package/src/content/Column.tsx +19 -0
- package/src/content/DataTable.tsx +22 -0
- package/src/content/Divider.tsx +18 -0
- package/src/content/EmptyState.tsx +17 -0
- package/src/content/FeatureCard.tsx +19 -0
- package/src/content/Highlight.tsx +18 -0
- package/src/content/Icon.tsx +18 -0
- package/src/content/InfiniteScroll.tsx +19 -0
- package/src/content/Kbd.tsx +15 -0
- package/src/content/Link.tsx +19 -0
- package/src/content/Markdown.tsx +16 -0
- package/src/content/Marquee.tsx +19 -0
- package/src/content/Meter.tsx +22 -0
- package/src/content/ScrollArea.tsx +17 -0
- package/src/content/Skeleton.tsx +18 -0
- package/src/content/Spinner.tsx +17 -0
- package/src/content/Stack.tsx +20 -0
- package/src/content/Stat.tsx +17 -0
- package/src/content/Step.tsx +16 -0
- package/src/content/Stepper.tsx +17 -0
- package/src/content/Table.tsx +19 -0
- package/src/content/Tag.tsx +18 -0
- package/src/content/Text.tsx +17 -0
- package/src/content/Timeline.tsx +16 -0
- package/src/content/TimelineItem.tsx +17 -0
- package/src/content/Truncate.tsx +17 -0
- package/src/content/ValueCard.tsx +18 -0
- package/src/content/index.ts +89 -0
- package/src/feedback/Alert.tsx +18 -0
- package/src/feedback/CommandItem.tsx +17 -0
- package/src/feedback/CommandPalette.tsx +20 -0
- package/src/feedback/ContextMenu.tsx +20 -0
- package/src/feedback/Dialog.tsx +19 -0
- package/src/feedback/DropdownMenu.tsx +18 -0
- package/src/feedback/HoverCard.tsx +19 -0
- package/src/feedback/Modal.tsx +19 -0
- package/src/feedback/NotificationPanel.tsx +18 -0
- package/src/feedback/Popover.tsx +18 -0
- package/src/feedback/Progress.tsx +20 -0
- package/src/feedback/Sheet.tsx +18 -0
- package/src/feedback/Toast.tsx +18 -0
- package/src/feedback/Tooltip.tsx +19 -0
- package/src/index.ts +257 -0
- package/src/input/Button.tsx +20 -0
- package/src/input/Calendar.tsx +21 -0
- package/src/input/Checkbox.tsx +21 -0
- package/src/input/Chip.tsx +18 -0
- package/src/input/ColorPicker.tsx +25 -0
- package/src/input/Combobox.tsx +23 -0
- package/src/input/CopyButton.tsx +18 -0
- package/src/input/DatePicker.tsx +25 -0
- package/src/input/FileUpload.tsx +22 -0
- package/src/input/Form.tsx +18 -0
- package/src/input/IconButton.tsx +23 -0
- package/src/input/Input.tsx +24 -0
- package/src/input/MultiSelect.tsx +23 -0
- package/src/input/NumberInput.tsx +21 -0
- package/src/input/OtpInput.tsx +19 -0
- package/src/input/PinInput.tsx +22 -0
- package/src/input/Radio.tsx +17 -0
- package/src/input/RadioGroup.tsx +20 -0
- package/src/input/Rating.tsx +19 -0
- package/src/input/Search.tsx +23 -0
- package/src/input/SegmentedControl.tsx +18 -0
- package/src/input/Select.tsx +22 -0
- package/src/input/Slider.tsx +21 -0
- package/src/input/SortableList.tsx +21 -0
- package/src/input/Suggestion.tsx +16 -0
- package/src/input/Textarea.tsx +24 -0
- package/src/input/ThemeToggle.tsx +18 -0
- package/src/input/Toggle.tsx +19 -0
- package/src/layout/AppShell.tsx +19 -0
- package/src/layout/AuthShell.tsx +16 -0
- package/src/layout/Container.tsx +16 -0
- package/src/layout/DashboardGrid.tsx +18 -0
- package/src/layout/PageHeader.tsx +17 -0
- package/src/layout/PageLayout.tsx +18 -0
- package/src/layout/Resizable.tsx +20 -0
- package/src/layout/Section.tsx +16 -0
- package/src/layout/SettingsLayout.tsx +16 -0
- package/src/layout/SplitPane.tsx +19 -0
- package/src/layout/StatusBar.tsx +16 -0
- package/src/layout/Toolbar.tsx +18 -0
- package/src/navigation/Breadcrumb.tsx +16 -0
- package/src/navigation/BreadcrumbItem.tsx +16 -0
- package/src/navigation/Drawer.tsx +18 -0
- package/src/navigation/Footer.tsx +17 -0
- package/src/navigation/Link.tsx +19 -0
- package/src/navigation/NavItem.tsx +18 -0
- package/src/navigation/NavigationMenu.tsx +20 -0
- package/src/navigation/Pagination.tsx +18 -0
- package/src/navigation/ScrollSpy.tsx +19 -0
- package/src/navigation/ScrollToTop.tsx +20 -0
- package/src/navigation/Sidebar.tsx +20 -0
- package/src/navigation/SidebarLink.tsx +17 -0
- package/src/navigation/SidebarSection.tsx +18 -0
- package/src/navigation/SpyLink.tsx +16 -0
- package/src/navigation/Tab.tsx +16 -0
- package/src/navigation/Tabs.tsx +18 -0
- package/src/navigation/TopBar.tsx +20 -0
- package/src/navigation/TreeItem.tsx +18 -0
- package/src/navigation/TreeView.tsx +17 -0
- package/src/reactive/Accordion.tsx +17 -0
- package/src/reactive/AccordionItem.tsx +16 -0
- package/src/reactive/Alert.tsx +18 -0
- package/src/reactive/Button.tsx +20 -0
- package/src/reactive/Calendar.tsx +21 -0
- package/src/reactive/Carousel.tsx +22 -0
- package/src/reactive/Checkbox.tsx +21 -0
- package/src/reactive/Chip.tsx +18 -0
- package/src/reactive/Collapsible.tsx +17 -0
- package/src/reactive/ColorPicker.tsx +25 -0
- package/src/reactive/Column.tsx +19 -0
- package/src/reactive/Combobox.tsx +23 -0
- package/src/reactive/CommandItem.tsx +17 -0
- package/src/reactive/CommandPalette.tsx +20 -0
- package/src/reactive/ContextMenu.tsx +20 -0
- package/src/reactive/CopyButton.tsx +18 -0
- package/src/reactive/DataTable.tsx +22 -0
- package/src/reactive/DatePicker.tsx +25 -0
- package/src/reactive/Dialog.tsx +19 -0
- package/src/reactive/Drawer.tsx +18 -0
- package/src/reactive/DropdownMenu.tsx +18 -0
- package/src/reactive/FileUpload.tsx +22 -0
- package/src/reactive/Form.tsx +18 -0
- package/src/reactive/HoverCard.tsx +19 -0
- package/src/reactive/IconButton.tsx +23 -0
- package/src/reactive/InfiniteScroll.tsx +19 -0
- package/src/reactive/Input.tsx +24 -0
- package/src/reactive/Modal.tsx +19 -0
- package/src/reactive/MultiSelect.tsx +23 -0
- package/src/reactive/NumberInput.tsx +21 -0
- package/src/reactive/OtpInput.tsx +19 -0
- package/src/reactive/Pagination.tsx +18 -0
- package/src/reactive/PinInput.tsx +22 -0
- package/src/reactive/Popover.tsx +18 -0
- package/src/reactive/Progress.tsx +20 -0
- package/src/reactive/Radio.tsx +17 -0
- package/src/reactive/RadioGroup.tsx +20 -0
- package/src/reactive/Rating.tsx +19 -0
- package/src/reactive/ScrollToTop.tsx +20 -0
- package/src/reactive/Search.tsx +23 -0
- package/src/reactive/SegmentedControl.tsx +18 -0
- package/src/reactive/Select.tsx +22 -0
- package/src/reactive/Sheet.tsx +18 -0
- package/src/reactive/Slider.tsx +21 -0
- package/src/reactive/SortableList.tsx +21 -0
- package/src/reactive/Suggestion.tsx +16 -0
- package/src/reactive/Tab.tsx +16 -0
- package/src/reactive/Tabs.tsx +18 -0
- package/src/reactive/Tag.tsx +18 -0
- package/src/reactive/Textarea.tsx +24 -0
- package/src/reactive/ThemeToggle.tsx +18 -0
- package/src/reactive/Toast.tsx +18 -0
- package/src/reactive/Toggle.tsx +19 -0
- package/src/reactive/Tooltip.tsx +19 -0
- package/src/reactive/TreeItem.tsx +18 -0
- package/src/reactive/TreeView.tsx +17 -0
- package/src/reactive/Truncate.tsx +17 -0
- package/src/reactive/index.ts +120 -0
- package/src/shared/MenuDivider.tsx +15 -0
- package/src/shared/MenuItem.tsx +18 -0
- package/src/shared/Option.tsx +18 -0
|
@@ -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 AccordionItemProps {
|
|
7
|
+
question?: string;
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const AccordionItem: FunctionComponent<AccordionItemProps> = ({ question, children, ...rest }) => (
|
|
13
|
+
<arc-accordion-item question={question} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-accordion-item>
|
|
16
|
+
);
|
|
@@ -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,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 AspectRatioProps {
|
|
7
|
+
ratio?: string;
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const AspectRatio: FunctionComponent<AspectRatioProps> = ({ ratio, children, ...rest }) => (
|
|
13
|
+
<arc-aspect-ratio ratio={ratio} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-aspect-ratio>
|
|
16
|
+
);
|
|
@@ -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 AvatarProps {
|
|
7
|
+
src?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Avatar: FunctionComponent<AvatarProps> = ({ src, name, size, children, ...rest }) => (
|
|
15
|
+
<arc-avatar src={src} name={name} size={size} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-avatar>
|
|
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 AvatarGroupProps {
|
|
7
|
+
max?: number;
|
|
8
|
+
overlap?: 'sm' | 'lg';
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const AvatarGroup: FunctionComponent<AvatarGroupProps> = ({ max, overlap, children, ...rest }) => (
|
|
14
|
+
<arc-avatar-group max={max} overlap={overlap} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-avatar-group>
|
|
17
|
+
);
|
|
@@ -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 BadgeProps {
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Badge: FunctionComponent<BadgeProps> = ({ variant, children, ...rest }) => (
|
|
13
|
+
<arc-badge variant={variant} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-badge>
|
|
16
|
+
);
|
|
@@ -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 CalloutProps {
|
|
7
|
+
variant?: 'info' | 'warning' | 'tip' | 'danger';
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Callout: FunctionComponent<CalloutProps> = ({ variant, children, ...rest }) => (
|
|
13
|
+
<arc-callout variant={variant} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-callout>
|
|
16
|
+
);
|
|
@@ -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 CardProps {
|
|
7
|
+
href?: string;
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Card: FunctionComponent<CardProps> = ({ href, children, ...rest }) => (
|
|
13
|
+
<arc-card href={href} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-card>
|
|
16
|
+
);
|
|
@@ -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 CarouselProps {
|
|
7
|
+
autoPlay?: boolean;
|
|
8
|
+
interval?: number;
|
|
9
|
+
loop?: boolean;
|
|
10
|
+
showDots?: boolean;
|
|
11
|
+
showArrows?: boolean;
|
|
12
|
+
_current?: string;
|
|
13
|
+
_total?: string;
|
|
14
|
+
children?: preact.ComponentChildren;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const Carousel: FunctionComponent<CarouselProps> = ({ autoPlay, interval, loop, showDots, showArrows, _current, _total, children, ...rest }) => (
|
|
19
|
+
<arc-carousel autoPlay={autoPlay} interval={interval} loop={loop} showDots={showDots} showArrows={showArrows} _current={_current} _total={_total} {...rest}>
|
|
20
|
+
{children}
|
|
21
|
+
</arc-carousel>
|
|
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 CodeBlockProps {
|
|
7
|
+
language?: string;
|
|
8
|
+
filename?: string;
|
|
9
|
+
code?: string;
|
|
10
|
+
_copied?: string;
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const CodeBlock: FunctionComponent<CodeBlockProps> = ({ language, filename, code, _copied, children, ...rest }) => (
|
|
16
|
+
<arc-code-block language={language} filename={filename} code={code} _copied={_copied} {...rest}>
|
|
17
|
+
{children}
|
|
18
|
+
</arc-code-block>
|
|
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 CollapsibleProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
heading?: string;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Collapsible: FunctionComponent<CollapsibleProps> = ({ open, heading, children, ...rest }) => (
|
|
14
|
+
<arc-collapsible open={open} heading={heading} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-collapsible>
|
|
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 ColorSwatchProps {
|
|
7
|
+
color?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const ColorSwatch: FunctionComponent<ColorSwatchProps> = ({ color, label, size, children, ...rest }) => (
|
|
15
|
+
<arc-color-swatch color={color} label={label} size={size} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-color-swatch>
|
|
18
|
+
);
|
|
@@ -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 ColumnProps {
|
|
7
|
+
key?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
sortable?: boolean;
|
|
10
|
+
width?: string;
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Column: FunctionComponent<ColumnProps> = ({ key, label, sortable, width, children, ...rest }) => (
|
|
16
|
+
<arc-column key={key} label={label} sortable={sortable} width={width} {...rest}>
|
|
17
|
+
{children}
|
|
18
|
+
</arc-column>
|
|
19
|
+
);
|
|
@@ -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 DataTableProps {
|
|
7
|
+
rows?: unknown[];
|
|
8
|
+
sortable?: boolean;
|
|
9
|
+
selectable?: boolean;
|
|
10
|
+
sortColumn?: string;
|
|
11
|
+
sortDirection?: string;
|
|
12
|
+
_columns?: string;
|
|
13
|
+
_selectedRows?: string;
|
|
14
|
+
children?: preact.ComponentChildren;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
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}>
|
|
20
|
+
{children}
|
|
21
|
+
</arc-data-table>
|
|
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 DividerProps {
|
|
7
|
+
variant?: 'subtle' | 'glow' | 'line-white' | 'line-primary' | 'line-gradient';
|
|
8
|
+
align?: 'left' | 'right';
|
|
9
|
+
vertical?: boolean;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Divider: FunctionComponent<DividerProps> = ({ variant, align, vertical, children, ...rest }) => (
|
|
15
|
+
<arc-divider variant={variant} align={align} vertical={vertical} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-divider>
|
|
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 EmptyStateProps {
|
|
7
|
+
heading?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const EmptyState: FunctionComponent<EmptyStateProps> = ({ heading, description, children, ...rest }) => (
|
|
14
|
+
<arc-empty-state heading={heading} description={description} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-empty-state>
|
|
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 FeatureCardProps {
|
|
7
|
+
icon?: string;
|
|
8
|
+
heading?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const FeatureCard: FunctionComponent<FeatureCardProps> = ({ icon, heading, description, href, children, ...rest }) => (
|
|
16
|
+
<arc-feature-card icon={icon} heading={heading} description={description} href={href} {...rest}>
|
|
17
|
+
{children}
|
|
18
|
+
</arc-feature-card>
|
|
19
|
+
);
|
|
@@ -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 HighlightProps {
|
|
7
|
+
text?: string;
|
|
8
|
+
query?: string;
|
|
9
|
+
caseSensitive?: boolean;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Highlight: FunctionComponent<HighlightProps> = ({ text, query, caseSensitive, children, ...rest }) => (
|
|
15
|
+
<arc-highlight text={text} query={query} caseSensitive={caseSensitive} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-highlight>
|
|
18
|
+
);
|
|
@@ -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 IconProps {
|
|
7
|
+
name?: string;
|
|
8
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
+
label?: string;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Icon: FunctionComponent<IconProps> = ({ name, size, label, children, ...rest }) => (
|
|
15
|
+
<arc-icon name={name} size={size} label={label} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-icon>
|
|
18
|
+
);
|
|
@@ -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 InfiniteScrollProps {
|
|
7
|
+
threshold?: number;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
finished?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const InfiniteScroll: FunctionComponent<InfiniteScrollProps> = ({ threshold, loading, finished, disabled, children, ...rest }) => (
|
|
16
|
+
<arc-infinite-scroll threshold={threshold} loading={loading} finished={finished} disabled={disabled} {...rest}>
|
|
17
|
+
{children}
|
|
18
|
+
</arc-infinite-scroll>
|
|
19
|
+
);
|
|
@@ -0,0 +1,15 @@
|
|
|
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 KbdProps {
|
|
7
|
+
children?: preact.ComponentChildren;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const Kbd: FunctionComponent<KbdProps> = ({ children, ...rest }) => (
|
|
12
|
+
<arc-kbd {...rest}>
|
|
13
|
+
{children}
|
|
14
|
+
</arc-kbd>
|
|
15
|
+
);
|
|
@@ -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 LinkProps {
|
|
7
|
+
href?: string;
|
|
8
|
+
variant?: 'muted' | 'nav';
|
|
9
|
+
active?: boolean;
|
|
10
|
+
external?: boolean;
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Link: FunctionComponent<LinkProps> = ({ href, variant, active, external, children, ...rest }) => (
|
|
16
|
+
<arc-link href={href} variant={variant} active={active} external={external} {...rest}>
|
|
17
|
+
{children}
|
|
18
|
+
</arc-link>
|
|
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 MarkdownProps {
|
|
7
|
+
content?: string;
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Markdown: FunctionComponent<MarkdownProps> = ({ content, children, ...rest }) => (
|
|
13
|
+
<arc-markdown content={content} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-markdown>
|
|
16
|
+
);
|
|
@@ -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 MarqueeProps {
|
|
7
|
+
speed?: number;
|
|
8
|
+
direction?: string;
|
|
9
|
+
gap?: string;
|
|
10
|
+
_animDuration?: string;
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Marquee: FunctionComponent<MarqueeProps> = ({ speed, direction, gap, _animDuration, children, ...rest }) => (
|
|
16
|
+
<arc-marquee speed={speed} direction={direction} gap={gap} _animDuration={_animDuration} {...rest}>
|
|
17
|
+
{children}
|
|
18
|
+
</arc-marquee>
|
|
19
|
+
);
|
|
@@ -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,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 ScrollAreaProps {
|
|
7
|
+
maxHeight?: string;
|
|
8
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const ScrollArea: FunctionComponent<ScrollAreaProps> = ({ maxHeight, orientation, children, ...rest }) => (
|
|
14
|
+
<arc-scroll-area maxHeight={maxHeight} orientation={orientation} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-scroll-area>
|
|
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 SkeletonProps {
|
|
7
|
+
variant?: 'text' | 'circle' | 'rect';
|
|
8
|
+
width?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Skeleton: FunctionComponent<SkeletonProps> = ({ variant, width, height, children, ...rest }) => (
|
|
15
|
+
<arc-skeleton variant={variant} width={width} height={height} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-skeleton>
|
|
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 SpinnerProps {
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'white';
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Spinner: FunctionComponent<SpinnerProps> = ({ size, variant, children, ...rest }) => (
|
|
14
|
+
<arc-spinner size={size} variant={variant} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-spinner>
|
|
17
|
+
);
|
|
@@ -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 StackProps {
|
|
7
|
+
direction?: 'horizontal' | 'vertical';
|
|
8
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
9
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
10
|
+
justify?: 'start' | 'center' | 'end' | 'between' | 'around';
|
|
11
|
+
wrap?: boolean;
|
|
12
|
+
children?: preact.ComponentChildren;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Stack: FunctionComponent<StackProps> = ({ direction, gap, align, justify, wrap, children, ...rest }) => (
|
|
17
|
+
<arc-stack direction={direction} gap={gap} align={align} justify={justify} wrap={wrap} {...rest}>
|
|
18
|
+
{children}
|
|
19
|
+
</arc-stack>
|
|
20
|
+
);
|
|
@@ -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 StatProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Stat: FunctionComponent<StatProps> = ({ value, label, children, ...rest }) => (
|
|
14
|
+
<arc-stat value={value} label={label} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-stat>
|
|
17
|
+
);
|
|
@@ -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
|
+
);
|
|
@@ -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 TagProps {
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
8
|
+
removable?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Tag: FunctionComponent<TagProps> = ({ variant, removable, disabled, children, ...rest }) => (
|
|
15
|
+
<arc-tag variant={variant} removable={removable} disabled={disabled} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-tag>
|
|
18
|
+
);
|