@arclux/arc-ui-solid 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 +72 -0
- package/src/application/AppShell.tsx +19 -0
- package/src/application/AuthShell.tsx +19 -0
- package/src/application/Breadcrumb.tsx +19 -0
- package/src/application/BreadcrumbItem.tsx +19 -0
- package/src/application/Container.tsx +19 -0
- package/src/application/DashboardGrid.tsx +21 -0
- package/src/application/Footer.tsx +20 -0
- package/src/application/NavItem.tsx +21 -0
- package/src/application/NavigationMenu.tsx +20 -0
- package/src/application/NotificationPanel.tsx +21 -0
- package/src/application/PageHeader.tsx +20 -0
- package/src/application/PageLayout.tsx +21 -0
- package/src/application/Resizable.tsx +23 -0
- package/src/application/ScrollSpy.tsx +22 -0
- package/src/application/Section.tsx +19 -0
- package/src/application/SettingsLayout.tsx +19 -0
- package/src/application/Sidebar.tsx +23 -0
- package/src/application/SidebarLink.tsx +20 -0
- package/src/application/SidebarSection.tsx +21 -0
- package/src/application/SplitPane.tsx +22 -0
- package/src/application/SpyLink.tsx +19 -0
- package/src/application/StatusBar.tsx +19 -0
- package/src/application/Toolbar.tsx +21 -0
- package/src/application/TopBar.tsx +21 -0
- package/src/application/index.ts +45 -0
- package/src/content/Accordion.tsx +20 -0
- package/src/content/AccordionItem.tsx +19 -0
- package/src/content/AnimatedNumber.tsx +25 -0
- package/src/content/AspectRatio.tsx +19 -0
- package/src/content/Avatar.tsx +21 -0
- package/src/content/AvatarGroup.tsx +20 -0
- package/src/content/Badge.tsx +19 -0
- package/src/content/Callout.tsx +19 -0
- package/src/content/Card.tsx +19 -0
- package/src/content/Carousel.tsx +25 -0
- package/src/content/CodeBlock.tsx +22 -0
- package/src/content/Collapsible.tsx +20 -0
- package/src/content/ColorSwatch.tsx +21 -0
- package/src/content/Column.tsx +22 -0
- package/src/content/DataTable.tsx +25 -0
- package/src/content/Divider.tsx +21 -0
- package/src/content/EmptyState.tsx +20 -0
- package/src/content/FeatureCard.tsx +22 -0
- package/src/content/Highlight.tsx +21 -0
- package/src/content/Icon.tsx +21 -0
- package/src/content/InfiniteScroll.tsx +22 -0
- package/src/content/Kbd.tsx +18 -0
- package/src/content/Link.tsx +22 -0
- package/src/content/Markdown.tsx +19 -0
- package/src/content/Marquee.tsx +22 -0
- package/src/content/Meter.tsx +25 -0
- package/src/content/ScrollArea.tsx +20 -0
- package/src/content/Skeleton.tsx +21 -0
- package/src/content/Spinner.tsx +20 -0
- package/src/content/Stack.tsx +23 -0
- package/src/content/Stat.tsx +20 -0
- package/src/content/Step.tsx +19 -0
- package/src/content/Stepper.tsx +20 -0
- package/src/content/Table.tsx +22 -0
- package/src/content/Tag.tsx +21 -0
- package/src/content/Text.tsx +20 -0
- package/src/content/Timeline.tsx +19 -0
- package/src/content/TimelineItem.tsx +20 -0
- package/src/content/Truncate.tsx +20 -0
- package/src/content/ValueCard.tsx +21 -0
- package/src/content/index.ts +89 -0
- package/src/feedback/Alert.tsx +21 -0
- package/src/feedback/CommandItem.tsx +20 -0
- package/src/feedback/CommandPalette.tsx +23 -0
- package/src/feedback/ContextMenu.tsx +23 -0
- package/src/feedback/Dialog.tsx +22 -0
- package/src/feedback/DropdownMenu.tsx +21 -0
- package/src/feedback/HoverCard.tsx +22 -0
- package/src/feedback/Modal.tsx +22 -0
- package/src/feedback/NotificationPanel.tsx +21 -0
- package/src/feedback/Popover.tsx +21 -0
- package/src/feedback/Progress.tsx +23 -0
- package/src/feedback/Sheet.tsx +21 -0
- package/src/feedback/Toast.tsx +21 -0
- package/src/feedback/Tooltip.tsx +22 -0
- package/src/index.ts +257 -0
- package/src/input/Button.tsx +23 -0
- package/src/input/Calendar.tsx +24 -0
- package/src/input/Checkbox.tsx +24 -0
- package/src/input/Chip.tsx +21 -0
- package/src/input/ColorPicker.tsx +28 -0
- package/src/input/Combobox.tsx +26 -0
- package/src/input/CopyButton.tsx +21 -0
- package/src/input/DatePicker.tsx +28 -0
- package/src/input/FileUpload.tsx +25 -0
- package/src/input/Form.tsx +21 -0
- package/src/input/IconButton.tsx +26 -0
- package/src/input/Input.tsx +27 -0
- package/src/input/MultiSelect.tsx +26 -0
- package/src/input/NumberInput.tsx +24 -0
- package/src/input/OtpInput.tsx +22 -0
- package/src/input/PinInput.tsx +25 -0
- package/src/input/Radio.tsx +20 -0
- package/src/input/RadioGroup.tsx +23 -0
- package/src/input/Rating.tsx +22 -0
- package/src/input/Search.tsx +26 -0
- package/src/input/SegmentedControl.tsx +21 -0
- package/src/input/Select.tsx +25 -0
- package/src/input/Slider.tsx +24 -0
- package/src/input/SortableList.tsx +24 -0
- package/src/input/Suggestion.tsx +19 -0
- package/src/input/Textarea.tsx +27 -0
- package/src/input/ThemeToggle.tsx +21 -0
- package/src/input/Toggle.tsx +22 -0
- package/src/layout/AppShell.tsx +22 -0
- package/src/layout/AuthShell.tsx +19 -0
- package/src/layout/Container.tsx +19 -0
- package/src/layout/DashboardGrid.tsx +21 -0
- package/src/layout/PageHeader.tsx +20 -0
- package/src/layout/PageLayout.tsx +21 -0
- package/src/layout/Resizable.tsx +23 -0
- package/src/layout/Section.tsx +19 -0
- package/src/layout/SettingsLayout.tsx +19 -0
- package/src/layout/SplitPane.tsx +22 -0
- package/src/layout/StatusBar.tsx +19 -0
- package/src/layout/Toolbar.tsx +21 -0
- package/src/navigation/Breadcrumb.tsx +19 -0
- package/src/navigation/BreadcrumbItem.tsx +19 -0
- package/src/navigation/Drawer.tsx +21 -0
- package/src/navigation/Footer.tsx +20 -0
- package/src/navigation/Link.tsx +22 -0
- package/src/navigation/NavItem.tsx +21 -0
- package/src/navigation/NavigationMenu.tsx +23 -0
- package/src/navigation/Pagination.tsx +21 -0
- package/src/navigation/ScrollSpy.tsx +22 -0
- package/src/navigation/ScrollToTop.tsx +23 -0
- package/src/navigation/Sidebar.tsx +23 -0
- package/src/navigation/SidebarLink.tsx +20 -0
- package/src/navigation/SidebarSection.tsx +21 -0
- package/src/navigation/SpyLink.tsx +19 -0
- package/src/navigation/Tab.tsx +19 -0
- package/src/navigation/Tabs.tsx +21 -0
- package/src/navigation/TopBar.tsx +23 -0
- package/src/navigation/TreeItem.tsx +21 -0
- package/src/navigation/TreeView.tsx +20 -0
- package/src/reactive/Accordion.tsx +20 -0
- package/src/reactive/AccordionItem.tsx +19 -0
- package/src/reactive/Alert.tsx +21 -0
- package/src/reactive/Button.tsx +23 -0
- package/src/reactive/Calendar.tsx +24 -0
- package/src/reactive/Carousel.tsx +25 -0
- package/src/reactive/Checkbox.tsx +24 -0
- package/src/reactive/Chip.tsx +21 -0
- package/src/reactive/Collapsible.tsx +20 -0
- package/src/reactive/ColorPicker.tsx +28 -0
- package/src/reactive/Column.tsx +22 -0
- package/src/reactive/Combobox.tsx +26 -0
- package/src/reactive/CommandItem.tsx +20 -0
- package/src/reactive/CommandPalette.tsx +23 -0
- package/src/reactive/ContextMenu.tsx +23 -0
- package/src/reactive/CopyButton.tsx +21 -0
- package/src/reactive/DataTable.tsx +25 -0
- package/src/reactive/DatePicker.tsx +28 -0
- package/src/reactive/Dialog.tsx +22 -0
- package/src/reactive/Drawer.tsx +21 -0
- package/src/reactive/DropdownMenu.tsx +21 -0
- package/src/reactive/FileUpload.tsx +25 -0
- package/src/reactive/Form.tsx +21 -0
- package/src/reactive/HoverCard.tsx +22 -0
- package/src/reactive/IconButton.tsx +26 -0
- package/src/reactive/InfiniteScroll.tsx +22 -0
- package/src/reactive/Input.tsx +27 -0
- package/src/reactive/Modal.tsx +22 -0
- package/src/reactive/MultiSelect.tsx +26 -0
- package/src/reactive/NumberInput.tsx +24 -0
- package/src/reactive/OtpInput.tsx +22 -0
- package/src/reactive/Pagination.tsx +21 -0
- package/src/reactive/PinInput.tsx +25 -0
- package/src/reactive/Popover.tsx +21 -0
- package/src/reactive/Progress.tsx +23 -0
- package/src/reactive/Radio.tsx +20 -0
- package/src/reactive/RadioGroup.tsx +23 -0
- package/src/reactive/Rating.tsx +22 -0
- package/src/reactive/ScrollToTop.tsx +23 -0
- package/src/reactive/Search.tsx +26 -0
- package/src/reactive/SegmentedControl.tsx +21 -0
- package/src/reactive/Select.tsx +25 -0
- package/src/reactive/Sheet.tsx +21 -0
- package/src/reactive/Slider.tsx +24 -0
- package/src/reactive/SortableList.tsx +24 -0
- package/src/reactive/Suggestion.tsx +19 -0
- package/src/reactive/Tab.tsx +19 -0
- package/src/reactive/Tabs.tsx +21 -0
- package/src/reactive/Tag.tsx +21 -0
- package/src/reactive/Textarea.tsx +27 -0
- package/src/reactive/ThemeToggle.tsx +21 -0
- package/src/reactive/Toast.tsx +21 -0
- package/src/reactive/Toggle.tsx +22 -0
- package/src/reactive/Tooltip.tsx +22 -0
- package/src/reactive/TreeItem.tsx +21 -0
- package/src/reactive/TreeView.tsx +20 -0
- package/src/reactive/Truncate.tsx +20 -0
- package/src/reactive/index.ts +120 -0
- package/src/shared/MenuDivider.tsx +18 -0
- package/src/shared/MenuItem.tsx +21 -0
- package/src/shared/Option.tsx +21 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface SkeletonProps {
|
|
7
|
+
variant?: 'text' | 'circle' | 'rect';
|
|
8
|
+
width?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Skeleton: Component<SkeletonProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['variant', 'width', 'height', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-skeleton variant={local.variant} width={local.width} height={local.height} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-skeleton>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface SpinnerProps {
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'white';
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Spinner: Component<SpinnerProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['size', 'variant', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-spinner size={local.size} variant={local.variant} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-spinner>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
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?: JSX.Element;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Stack: Component<StackProps> = (props) => {
|
|
17
|
+
const [local, rest] = splitProps(props, ['direction', 'gap', 'align', 'justify', 'wrap', 'children']);
|
|
18
|
+
return (
|
|
19
|
+
<arc-stack direction={local.direction} gap={local.gap} align={local.align} justify={local.justify} wrap={local.wrap} {...rest}>
|
|
20
|
+
{local.children}
|
|
21
|
+
</arc-stack>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface StatProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Stat: Component<StatProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['value', 'label', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-stat value={local.value} label={local.label} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-stat>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface StepProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
children?: JSX.Element;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Step: Component<StepProps> = (props) => {
|
|
13
|
+
const [local, rest] = splitProps(props, ['label', 'children']);
|
|
14
|
+
return (
|
|
15
|
+
<arc-step label={local.label} {...rest}>
|
|
16
|
+
{local.children}
|
|
17
|
+
</arc-step>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface StepperProps {
|
|
7
|
+
active?: number;
|
|
8
|
+
_steps?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Stepper: Component<StepperProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['active', '_steps', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-stepper active={local.active} _steps={local._steps} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-stepper>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface TableProps {
|
|
7
|
+
columns?: unknown[];
|
|
8
|
+
rows?: unknown[];
|
|
9
|
+
striped?: boolean;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Table: Component<TableProps> = (props) => {
|
|
16
|
+
const [local, rest] = splitProps(props, ['columns', 'rows', 'striped', 'compact', 'children']);
|
|
17
|
+
return (
|
|
18
|
+
<arc-table columns={local.columns} rows={local.rows} striped={local.striped} compact={local.compact} {...rest}>
|
|
19
|
+
{local.children}
|
|
20
|
+
</arc-table>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
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?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Tag: Component<TagProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['variant', 'removable', 'disabled', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-tag variant={local.variant} removable={local.removable} disabled={local.disabled} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-tag>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface TextProps {
|
|
7
|
+
variant?: 'accent' | 'code';
|
|
8
|
+
as?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Text: Component<TextProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['variant', 'as', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-text variant={local.variant} as={local.as} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-text>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface TimelineProps {
|
|
7
|
+
_items?: string;
|
|
8
|
+
children?: JSX.Element;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Timeline: Component<TimelineProps> = (props) => {
|
|
13
|
+
const [local, rest] = splitProps(props, ['_items', 'children']);
|
|
14
|
+
return (
|
|
15
|
+
<arc-timeline _items={local._items} {...rest}>
|
|
16
|
+
{local.children}
|
|
17
|
+
</arc-timeline>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface TimelineItemProps {
|
|
7
|
+
heading?: string;
|
|
8
|
+
date?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const TimelineItem: Component<TimelineItemProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['heading', 'date', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-timeline-item heading={local.heading} date={local.date} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-timeline-item>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface TruncateProps {
|
|
7
|
+
lines?: number;
|
|
8
|
+
expanded?: boolean;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Truncate: Component<TruncateProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['lines', 'expanded', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-truncate lines={local.lines} expanded={local.expanded} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-truncate>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ValueCardProps {
|
|
7
|
+
icon?: string;
|
|
8
|
+
heading?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const ValueCard: Component<ValueCardProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['icon', 'heading', 'description', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-value-card icon={local.icon} heading={local.heading} description={local.description} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-value-card>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
export { AvatarGroup } from './AvatarGroup.js';
|
|
3
|
+
export type { AvatarGroupProps } from './AvatarGroup.js';
|
|
4
|
+
export { Badge } from './Badge.js';
|
|
5
|
+
export type { BadgeProps } from './Badge.js';
|
|
6
|
+
export { Callout } from './Callout.js';
|
|
7
|
+
export type { CalloutProps } from './Callout.js';
|
|
8
|
+
export { Card } from './Card.js';
|
|
9
|
+
export type { CardProps } from './Card.js';
|
|
10
|
+
export { CodeBlock } from './CodeBlock.js';
|
|
11
|
+
export type { CodeBlockProps } from './CodeBlock.js';
|
|
12
|
+
export { ColorSwatch } from './ColorSwatch.js';
|
|
13
|
+
export type { ColorSwatchProps } from './ColorSwatch.js';
|
|
14
|
+
export { Divider } from './Divider.js';
|
|
15
|
+
export type { DividerProps } from './Divider.js';
|
|
16
|
+
export { EmptyState } from './EmptyState.js';
|
|
17
|
+
export type { EmptyStateProps } from './EmptyState.js';
|
|
18
|
+
export { FeatureCard } from './FeatureCard.js';
|
|
19
|
+
export type { FeatureCardProps } from './FeatureCard.js';
|
|
20
|
+
export { Icon } from './Icon.js';
|
|
21
|
+
export type { IconProps } from './Icon.js';
|
|
22
|
+
export { Kbd } from './Kbd.js';
|
|
23
|
+
export type { KbdProps } from './Kbd.js';
|
|
24
|
+
export { Link } from './Link.js';
|
|
25
|
+
export type { LinkProps } from './Link.js';
|
|
26
|
+
export { Skeleton } from './Skeleton.js';
|
|
27
|
+
export type { SkeletonProps } from './Skeleton.js';
|
|
28
|
+
export { Spinner } from './Spinner.js';
|
|
29
|
+
export type { SpinnerProps } from './Spinner.js';
|
|
30
|
+
export { Step } from './Step.js';
|
|
31
|
+
export type { StepProps } from './Step.js';
|
|
32
|
+
export { Stepper } from './Stepper.js';
|
|
33
|
+
export type { StepperProps } from './Stepper.js';
|
|
34
|
+
export { Table } from './Table.js';
|
|
35
|
+
export type { TableProps } from './Table.js';
|
|
36
|
+
export { Text } from './Text.js';
|
|
37
|
+
export type { TextProps } from './Text.js';
|
|
38
|
+
export { TimelineItem } from './TimelineItem.js';
|
|
39
|
+
export type { TimelineItemProps } from './TimelineItem.js';
|
|
40
|
+
export { ValueCard } from './ValueCard.js';
|
|
41
|
+
export type { ValueCardProps } from './ValueCard.js';
|
|
42
|
+
|
|
43
|
+
export { AnimatedNumber } from './AnimatedNumber.js';
|
|
44
|
+
export type { AnimatedNumberProps } from './AnimatedNumber.js';
|
|
45
|
+
|
|
46
|
+
export { AspectRatio } from './AspectRatio.js';
|
|
47
|
+
export type { AspectRatioProps } from './AspectRatio.js';
|
|
48
|
+
|
|
49
|
+
export { Highlight } from './Highlight.js';
|
|
50
|
+
export type { HighlightProps } from './Highlight.js';
|
|
51
|
+
|
|
52
|
+
export { Markdown } from './Markdown.js';
|
|
53
|
+
export type { MarkdownProps } from './Markdown.js';
|
|
54
|
+
|
|
55
|
+
export { Marquee } from './Marquee.js';
|
|
56
|
+
export type { MarqueeProps } from './Marquee.js';
|
|
57
|
+
|
|
58
|
+
export { Meter } from './Meter.js';
|
|
59
|
+
export type { MeterProps } from './Meter.js';
|
|
60
|
+
|
|
61
|
+
export { ScrollArea } from './ScrollArea.js';
|
|
62
|
+
export type { ScrollAreaProps } from './ScrollArea.js';
|
|
63
|
+
|
|
64
|
+
export { Stack } from './Stack.js';
|
|
65
|
+
export type { StackProps } from './Stack.js';
|
|
66
|
+
|
|
67
|
+
export { AccordionItem } from './AccordionItem.js';
|
|
68
|
+
export type { AccordionItemProps } from './AccordionItem.js';
|
|
69
|
+
|
|
70
|
+
export { Carousel } from './Carousel.js';
|
|
71
|
+
export type { CarouselProps } from './Carousel.js';
|
|
72
|
+
|
|
73
|
+
export { Collapsible } from './Collapsible.js';
|
|
74
|
+
export type { CollapsibleProps } from './Collapsible.js';
|
|
75
|
+
|
|
76
|
+
export { Column } from './Column.js';
|
|
77
|
+
export type { ColumnProps } from './Column.js';
|
|
78
|
+
|
|
79
|
+
export { DataTable } from './DataTable.js';
|
|
80
|
+
export type { DataTableProps } from './DataTable.js';
|
|
81
|
+
|
|
82
|
+
export { InfiniteScroll } from './InfiniteScroll.js';
|
|
83
|
+
export type { InfiniteScrollProps } from './InfiniteScroll.js';
|
|
84
|
+
|
|
85
|
+
export { Tag } from './Tag.js';
|
|
86
|
+
export type { TagProps } from './Tag.js';
|
|
87
|
+
|
|
88
|
+
export { Truncate } from './Truncate.js';
|
|
89
|
+
export type { TruncateProps } from './Truncate.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface AlertProps {
|
|
7
|
+
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
heading?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Alert: Component<AlertProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['variant', 'dismissible', 'heading', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-alert variant={local.variant} dismissible={local.dismissible} heading={local.heading} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-alert>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface CommandItemProps {
|
|
7
|
+
shortcut?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const CommandItem: Component<CommandItemProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['shortcut', 'icon', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-command-item shortcut={local.shortcut} icon={local.icon} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-command-item>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface CommandPaletteProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
_query?: string;
|
|
10
|
+
_focusedIndex?: string;
|
|
11
|
+
_items?: string;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const CommandPalette: Component<CommandPaletteProps> = (props) => {
|
|
17
|
+
const [local, rest] = splitProps(props, ['open', 'placeholder', '_query', '_focusedIndex', '_items', 'children']);
|
|
18
|
+
return (
|
|
19
|
+
<arc-command-palette open={local.open} placeholder={local.placeholder} _query={local._query} _focusedIndex={local._focusedIndex} _items={local._items} {...rest}>
|
|
20
|
+
{local.children}
|
|
21
|
+
</arc-command-palette>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ContextMenuProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
_x?: string;
|
|
9
|
+
_y?: string;
|
|
10
|
+
_activeIndex?: string;
|
|
11
|
+
_children?: string;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const ContextMenu: Component<ContextMenuProps> = (props) => {
|
|
17
|
+
const [local, rest] = splitProps(props, ['open', '_x', '_y', '_activeIndex', '_children', 'children']);
|
|
18
|
+
return (
|
|
19
|
+
<arc-context-menu open={local.open} _x={local._x} _y={local._y} _activeIndex={local._activeIndex} _children={local._children} {...rest}>
|
|
20
|
+
{local.children}
|
|
21
|
+
</arc-context-menu>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface DialogProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
heading?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
variant?: 'danger';
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Dialog: Component<DialogProps> = (props) => {
|
|
16
|
+
const [local, rest] = splitProps(props, ['open', 'heading', 'message', 'variant', 'children']);
|
|
17
|
+
return (
|
|
18
|
+
<arc-dialog open={local.open} heading={local.heading} message={local.message} variant={local.variant} {...rest}>
|
|
19
|
+
{local.children}
|
|
20
|
+
</arc-dialog>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface DropdownMenuProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
_focusedIndex?: string;
|
|
9
|
+
_children?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const DropdownMenu: Component<DropdownMenuProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['open', '_focusedIndex', '_children', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-dropdown-menu open={local.open} _focusedIndex={local._focusedIndex} _children={local._children} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-dropdown-menu>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface HoverCardProps {
|
|
7
|
+
position?: 'bottom' | 'top' | 'left' | 'right';
|
|
8
|
+
openDelay?: number;
|
|
9
|
+
closeDelay?: number;
|
|
10
|
+
_visible?: string;
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const HoverCard: Component<HoverCardProps> = (props) => {
|
|
16
|
+
const [local, rest] = splitProps(props, ['position', 'openDelay', 'closeDelay', '_visible', 'children']);
|
|
17
|
+
return (
|
|
18
|
+
<arc-hover-card position={local.position} openDelay={local.openDelay} closeDelay={local.closeDelay} _visible={local._visible} {...rest}>
|
|
19
|
+
{local.children}
|
|
20
|
+
</arc-hover-card>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ModalProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
heading?: string;
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
closable?: boolean;
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Modal: Component<ModalProps> = (props) => {
|
|
16
|
+
const [local, rest] = splitProps(props, ['open', 'heading', 'size', 'closable', 'children']);
|
|
17
|
+
return (
|
|
18
|
+
<arc-modal open={local.open} heading={local.heading} size={local.size} closable={local.closable} {...rest}>
|
|
19
|
+
{local.children}
|
|
20
|
+
</arc-modal>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface NotificationPanelProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
position?: string;
|
|
9
|
+
maxHeight?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const NotificationPanel: Component<NotificationPanelProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['open', 'position', 'maxHeight', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-notification-panel open={local.open} position={local.position} maxHeight={local.maxHeight} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-notification-panel>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface PopoverProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
position?: 'bottom' | 'top' | 'left' | 'right';
|
|
9
|
+
trigger?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Popover: Component<PopoverProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['open', 'position', 'trigger', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-popover open={local.open} position={local.position} trigger={local.trigger} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-popover>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface ProgressProps {
|
|
7
|
+
value?: number;
|
|
8
|
+
variant?: string;
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
indeterminate?: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Progress: Component<ProgressProps> = (props) => {
|
|
17
|
+
const [local, rest] = splitProps(props, ['value', 'variant', 'size', 'indeterminate', 'label', 'children']);
|
|
18
|
+
return (
|
|
19
|
+
<arc-progress value={local.value} variant={local.variant} size={local.size} indeterminate={local.indeterminate} label={local.label} {...rest}>
|
|
20
|
+
{local.children}
|
|
21
|
+
</arc-progress>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface SheetProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
side?: 'bottom' | 'right';
|
|
9
|
+
heading?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Sheet: Component<SheetProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['open', 'side', 'heading', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-sheet open={local.open} side={local.side} heading={local.heading} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-sheet>
|
|
20
|
+
);
|
|
21
|
+
};
|