@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 DrawerProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
position?: 'left' | 'right';
|
|
9
|
+
heading?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Drawer: Component<DrawerProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['open', 'position', 'heading', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-drawer open={local.open} position={local.position} heading={local.heading} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-drawer>
|
|
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 FooterProps {
|
|
7
|
+
compact?: boolean;
|
|
8
|
+
border?: boolean;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Footer: Component<FooterProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['compact', 'border', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-footer compact={local.compact} border={local.border} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-footer>
|
|
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 LinkProps {
|
|
7
|
+
href?: string;
|
|
8
|
+
variant?: 'muted' | 'nav';
|
|
9
|
+
active?: boolean;
|
|
10
|
+
external?: boolean;
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Link: Component<LinkProps> = (props) => {
|
|
16
|
+
const [local, rest] = splitProps(props, ['href', 'variant', 'active', 'external', 'children']);
|
|
17
|
+
return (
|
|
18
|
+
<arc-link href={local.href} variant={local.variant} active={local.active} external={local.external} {...rest}>
|
|
19
|
+
{local.children}
|
|
20
|
+
</arc-link>
|
|
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 NavItemProps {
|
|
7
|
+
href?: string;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
description?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const NavItem: Component<NavItemProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['href', 'active', 'description', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-nav-item href={local.href} active={local.active} description={local.description} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-nav-item>
|
|
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 NavigationMenuProps {
|
|
7
|
+
_items?: string;
|
|
8
|
+
_openIndex?: string;
|
|
9
|
+
_mobileOpen?: string;
|
|
10
|
+
_mobileClosing?: string;
|
|
11
|
+
_mobileExpandedIndex?: string;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const NavigationMenu: Component<NavigationMenuProps> = (props) => {
|
|
17
|
+
const [local, rest] = splitProps(props, ['_items', '_openIndex', '_mobileOpen', '_mobileClosing', '_mobileExpandedIndex', 'children']);
|
|
18
|
+
return (
|
|
19
|
+
<arc-navigation-menu _items={local._items} _openIndex={local._openIndex} _mobileOpen={local._mobileOpen} _mobileClosing={local._mobileClosing} _mobileExpandedIndex={local._mobileExpandedIndex} {...rest}>
|
|
20
|
+
{local.children}
|
|
21
|
+
</arc-navigation-menu>
|
|
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 PaginationProps {
|
|
7
|
+
total?: number;
|
|
8
|
+
current?: number;
|
|
9
|
+
siblings?: number;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Pagination: Component<PaginationProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['total', 'current', 'siblings', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-pagination total={local.total} current={local.current} siblings={local.siblings} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-pagination>
|
|
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 ScrollSpyProps {
|
|
7
|
+
active?: string;
|
|
8
|
+
offset?: number;
|
|
9
|
+
_active?: string;
|
|
10
|
+
_links?: string;
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const ScrollSpy: Component<ScrollSpyProps> = (props) => {
|
|
16
|
+
const [local, rest] = splitProps(props, ['active', 'offset', '_active', '_links', 'children']);
|
|
17
|
+
return (
|
|
18
|
+
<arc-scroll-spy active={local.active} offset={local.offset} _active={local._active} _links={local._links} {...rest}>
|
|
19
|
+
{local.children}
|
|
20
|
+
</arc-scroll-spy>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -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 ScrollToTopProps {
|
|
7
|
+
threshold?: number;
|
|
8
|
+
smooth?: boolean;
|
|
9
|
+
position?: 'bottom-right' | 'bottom-left';
|
|
10
|
+
offset?: string;
|
|
11
|
+
_visible?: string;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const ScrollToTop: Component<ScrollToTopProps> = (props) => {
|
|
17
|
+
const [local, rest] = splitProps(props, ['threshold', 'smooth', 'position', 'offset', '_visible', 'children']);
|
|
18
|
+
return (
|
|
19
|
+
<arc-scroll-to-top threshold={local.threshold} smooth={local.smooth} position={local.position} offset={local.offset} _visible={local._visible} {...rest}>
|
|
20
|
+
{local.children}
|
|
21
|
+
</arc-scroll-to-top>
|
|
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 SidebarProps {
|
|
7
|
+
active?: string;
|
|
8
|
+
collapsed?: boolean;
|
|
9
|
+
width?: string;
|
|
10
|
+
glow?: boolean;
|
|
11
|
+
_sections?: string;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Sidebar: Component<SidebarProps> = (props) => {
|
|
17
|
+
const [local, rest] = splitProps(props, ['active', 'collapsed', 'width', 'glow', '_sections', 'children']);
|
|
18
|
+
return (
|
|
19
|
+
<arc-sidebar active={local.active} collapsed={local.collapsed} width={local.width} glow={local.glow} _sections={local._sections} {...rest}>
|
|
20
|
+
{local.children}
|
|
21
|
+
</arc-sidebar>
|
|
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 SidebarLinkProps {
|
|
7
|
+
href?: string;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const SidebarLink: Component<SidebarLinkProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['href', 'active', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-sidebar-link href={local.href} active={local.active} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-sidebar-link>
|
|
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 SidebarSectionProps {
|
|
7
|
+
heading?: string;
|
|
8
|
+
collapsible?: boolean;
|
|
9
|
+
open?: boolean;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const SidebarSection: Component<SidebarSectionProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['heading', 'collapsible', 'open', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-sidebar-section heading={local.heading} collapsible={local.collapsible} open={local.open} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-sidebar-section>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -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 SpyLinkProps {
|
|
7
|
+
target?: string;
|
|
8
|
+
children?: JSX.Element;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const SpyLink: Component<SpyLinkProps> = (props) => {
|
|
13
|
+
const [local, rest] = splitProps(props, ['target', 'children']);
|
|
14
|
+
return (
|
|
15
|
+
<arc-spy-link target={local.target} {...rest}>
|
|
16
|
+
{local.children}
|
|
17
|
+
</arc-spy-link>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
@@ -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 TabProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
children?: JSX.Element;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Tab: Component<TabProps> = (props) => {
|
|
13
|
+
const [local, rest] = splitProps(props, ['label', 'children']);
|
|
14
|
+
return (
|
|
15
|
+
<arc-tab label={local.label} {...rest}>
|
|
16
|
+
{local.children}
|
|
17
|
+
</arc-tab>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
@@ -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 TabsProps {
|
|
7
|
+
items?: unknown[];
|
|
8
|
+
selected?: number;
|
|
9
|
+
_tabs?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Tabs: Component<TabsProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['items', 'selected', '_tabs', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-tabs items={local.items} selected={local.selected} _tabs={local._tabs} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-tabs>
|
|
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 TopBarProps {
|
|
7
|
+
heading?: string;
|
|
8
|
+
fixed?: boolean;
|
|
9
|
+
menuOpen?: boolean;
|
|
10
|
+
mobileMenu?: string;
|
|
11
|
+
menuPosition?: string;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const TopBar: Component<TopBarProps> = (props) => {
|
|
17
|
+
const [local, rest] = splitProps(props, ['heading', 'fixed', 'menuOpen', 'mobileMenu', 'menuPosition', 'children']);
|
|
18
|
+
return (
|
|
19
|
+
<arc-top-bar heading={local.heading} fixed={local.fixed} menuOpen={local.menuOpen} mobileMenu={local.mobileMenu} menuPosition={local.menuPosition} {...rest}>
|
|
20
|
+
{local.children}
|
|
21
|
+
</arc-top-bar>
|
|
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 TreeItemProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
expanded?: boolean;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const TreeItem: Component<TreeItemProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['label', 'icon', 'expanded', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-tree-item label={local.label} icon={local.icon} expanded={local.expanded} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-tree-item>
|
|
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 TreeViewProps {
|
|
7
|
+
_items?: string;
|
|
8
|
+
_selected?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const TreeView: Component<TreeViewProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['_items', '_selected', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-tree-view _items={local._items} _selected={local._selected} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-tree-view>
|
|
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 AccordionProps {
|
|
7
|
+
_items?: string;
|
|
8
|
+
_openItems?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Accordion: Component<AccordionProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['_items', '_openItems', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-accordion _items={local._items} _openItems={local._openItems} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-accordion>
|
|
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 AccordionItemProps {
|
|
7
|
+
question?: string;
|
|
8
|
+
children?: JSX.Element;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const AccordionItem: Component<AccordionItemProps> = (props) => {
|
|
13
|
+
const [local, rest] = splitProps(props, ['question', 'children']);
|
|
14
|
+
return (
|
|
15
|
+
<arc-accordion-item question={local.question} {...rest}>
|
|
16
|
+
{local.children}
|
|
17
|
+
</arc-accordion-item>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
@@ -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,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 ButtonProps {
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
8
|
+
size?: 'sm' | 'md' | 'lg';
|
|
9
|
+
href?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
type?: string;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Button: Component<ButtonProps> = (props) => {
|
|
17
|
+
const [local, rest] = splitProps(props, ['variant', 'size', 'href', 'disabled', 'type', 'children']);
|
|
18
|
+
return (
|
|
19
|
+
<arc-button variant={local.variant} size={local.size} href={local.href} disabled={local.disabled} type={local.type} {...rest}>
|
|
20
|
+
{local.children}
|
|
21
|
+
</arc-button>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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 CalendarProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
min?: string;
|
|
9
|
+
max?: string;
|
|
10
|
+
month?: number;
|
|
11
|
+
year?: number;
|
|
12
|
+
_focusedDay?: string;
|
|
13
|
+
children?: JSX.Element;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const Calendar: Component<CalendarProps> = (props) => {
|
|
18
|
+
const [local, rest] = splitProps(props, ['value', 'min', 'max', 'month', 'year', '_focusedDay', 'children']);
|
|
19
|
+
return (
|
|
20
|
+
<arc-calendar value={local.value} min={local.min} max={local.max} month={local.month} year={local.year} _focusedDay={local._focusedDay} {...rest}>
|
|
21
|
+
{local.children}
|
|
22
|
+
</arc-calendar>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
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 CarouselProps {
|
|
7
|
+
autoPlay?: boolean;
|
|
8
|
+
interval?: number;
|
|
9
|
+
loop?: boolean;
|
|
10
|
+
showDots?: boolean;
|
|
11
|
+
showArrows?: boolean;
|
|
12
|
+
_current?: string;
|
|
13
|
+
_total?: string;
|
|
14
|
+
children?: JSX.Element;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const Carousel: Component<CarouselProps> = (props) => {
|
|
19
|
+
const [local, rest] = splitProps(props, ['autoPlay', 'interval', 'loop', 'showDots', 'showArrows', '_current', '_total', 'children']);
|
|
20
|
+
return (
|
|
21
|
+
<arc-carousel autoPlay={local.autoPlay} interval={local.interval} loop={local.loop} showDots={local.showDots} showArrows={local.showArrows} _current={local._current} _total={local._total} {...rest}>
|
|
22
|
+
{local.children}
|
|
23
|
+
</arc-carousel>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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 CheckboxProps {
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
indeterminate?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
children?: JSX.Element;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const Checkbox: Component<CheckboxProps> = (props) => {
|
|
18
|
+
const [local, rest] = splitProps(props, ['checked', 'indeterminate', 'disabled', 'label', 'name', 'value', 'children']);
|
|
19
|
+
return (
|
|
20
|
+
<arc-checkbox checked={local.checked} indeterminate={local.indeterminate} disabled={local.disabled} label={local.label} name={local.name} value={local.value} {...rest}>
|
|
21
|
+
{local.children}
|
|
22
|
+
</arc-checkbox>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
@@ -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 ChipProps {
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
value?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Chip: Component<ChipProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['selected', 'disabled', 'value', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-chip selected={local.selected} disabled={local.disabled} value={local.value} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-chip>
|
|
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 CollapsibleProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
heading?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Collapsible: Component<CollapsibleProps> = (props) => {
|
|
14
|
+
const [local, rest] = splitProps(props, ['open', 'heading', 'children']);
|
|
15
|
+
return (
|
|
16
|
+
<arc-collapsible open={local.open} heading={local.heading} {...rest}>
|
|
17
|
+
{local.children}
|
|
18
|
+
</arc-collapsible>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
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 ColorPickerProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
presets?: unknown[];
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
_hue?: string;
|
|
12
|
+
_sat?: string;
|
|
13
|
+
_lit?: string;
|
|
14
|
+
_hexInput?: string;
|
|
15
|
+
_draggingArea?: string;
|
|
16
|
+
_draggingHue?: string;
|
|
17
|
+
children?: JSX.Element;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const ColorPicker: Component<ColorPickerProps> = (props) => {
|
|
22
|
+
const [local, rest] = splitProps(props, ['value', 'presets', 'disabled', 'label', '_hue', '_sat', '_lit', '_hexInput', '_draggingArea', '_draggingHue', 'children']);
|
|
23
|
+
return (
|
|
24
|
+
<arc-color-picker value={local.value} presets={local.presets} disabled={local.disabled} label={local.label} _hue={local._hue} _sat={local._sat} _lit={local._lit} _hexInput={local._hexInput} _draggingArea={local._draggingArea} _draggingHue={local._draggingHue} {...rest}>
|
|
25
|
+
{local.children}
|
|
26
|
+
</arc-color-picker>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
@@ -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 ColumnProps {
|
|
7
|
+
key?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
sortable?: boolean;
|
|
10
|
+
width?: string;
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Column: Component<ColumnProps> = (props) => {
|
|
16
|
+
const [local, rest] = splitProps(props, ['key', 'label', 'sortable', 'width', 'children']);
|
|
17
|
+
return (
|
|
18
|
+
<arc-column key={local.key} label={local.label} sortable={local.sortable} width={local.width} {...rest}>
|
|
19
|
+
{local.children}
|
|
20
|
+
</arc-column>
|
|
21
|
+
);
|
|
22
|
+
};
|