@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,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,26 @@
|
|
|
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 SearchProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
_open?: string;
|
|
13
|
+
_activeIndex?: string;
|
|
14
|
+
_suggestions?: string;
|
|
15
|
+
children?: JSX.Element;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const Search: Component<SearchProps> = (props) => {
|
|
20
|
+
const [local, rest] = splitProps(props, ['value', 'placeholder', 'label', 'disabled', 'loading', '_open', '_activeIndex', '_suggestions', 'children']);
|
|
21
|
+
return (
|
|
22
|
+
<arc-search value={local.value} placeholder={local.placeholder} label={local.label} disabled={local.disabled} loading={local.loading} _open={local._open} _activeIndex={local._activeIndex} _suggestions={local._suggestions} {...rest}>
|
|
23
|
+
{local.children}
|
|
24
|
+
</arc-search>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
@@ -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 SegmentedControlProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
_options?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const SegmentedControl: Component<SegmentedControlProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['value', 'disabled', '_options', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-segmented-control value={local.value} disabled={local.disabled} _options={local._options} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-segmented-control>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -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 SelectProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
open?: boolean;
|
|
13
|
+
_options?: string;
|
|
14
|
+
children?: JSX.Element;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const Select: Component<SelectProps> = (props) => {
|
|
19
|
+
const [local, rest] = splitProps(props, ['value', 'placeholder', 'label', 'name', 'disabled', 'open', '_options', 'children']);
|
|
20
|
+
return (
|
|
21
|
+
<arc-select value={local.value} placeholder={local.placeholder} label={local.label} name={local.name} disabled={local.disabled} open={local.open} _options={local._options} {...rest}>
|
|
22
|
+
{local.children}
|
|
23
|
+
</arc-select>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -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 SliderProps {
|
|
7
|
+
value?: number;
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
step?: number;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
label?: string;
|
|
13
|
+
children?: JSX.Element;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const Slider: Component<SliderProps> = (props) => {
|
|
18
|
+
const [local, rest] = splitProps(props, ['value', 'min', 'max', 'step', 'disabled', 'label', 'children']);
|
|
19
|
+
return (
|
|
20
|
+
<arc-slider value={local.value} min={local.min} max={local.max} step={local.step} disabled={local.disabled} label={local.label} {...rest}>
|
|
21
|
+
{local.children}
|
|
22
|
+
</arc-slider>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
@@ -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 SortableListProps {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
_items?: string;
|
|
9
|
+
_dragIndex?: string;
|
|
10
|
+
_overIndex?: string;
|
|
11
|
+
_kbSelected?: string;
|
|
12
|
+
_kbMoving?: string;
|
|
13
|
+
children?: JSX.Element;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const SortableList: Component<SortableListProps> = (props) => {
|
|
18
|
+
const [local, rest] = splitProps(props, ['disabled', '_items', '_dragIndex', '_overIndex', '_kbSelected', '_kbMoving', 'children']);
|
|
19
|
+
return (
|
|
20
|
+
<arc-sortable-list disabled={local.disabled} _items={local._items} _dragIndex={local._dragIndex} _overIndex={local._overIndex} _kbSelected={local._kbSelected} _kbMoving={local._kbMoving} {...rest}>
|
|
21
|
+
{local.children}
|
|
22
|
+
</arc-sortable-list>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
@@ -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 SuggestionProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
children?: JSX.Element;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Suggestion: Component<SuggestionProps> = (props) => {
|
|
13
|
+
const [local, rest] = splitProps(props, ['value', 'children']);
|
|
14
|
+
return (
|
|
15
|
+
<arc-suggestion value={local.value} {...rest}>
|
|
16
|
+
{local.children}
|
|
17
|
+
</arc-suggestion>
|
|
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,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,27 @@
|
|
|
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 TextareaProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
rows?: number;
|
|
11
|
+
maxlength?: number;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
readonly?: boolean;
|
|
14
|
+
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
15
|
+
error?: string;
|
|
16
|
+
children?: JSX.Element;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const Textarea: Component<TextareaProps> = (props) => {
|
|
21
|
+
const [local, rest] = splitProps(props, ['value', 'placeholder', 'label', 'rows', 'maxlength', 'disabled', 'readonly', 'resize', 'error', 'children']);
|
|
22
|
+
return (
|
|
23
|
+
<arc-textarea value={local.value} placeholder={local.placeholder} label={local.label} rows={local.rows} maxlength={local.maxlength} disabled={local.disabled} readonly={local.readonly} resize={local.resize} error={local.error} {...rest}>
|
|
24
|
+
{local.children}
|
|
25
|
+
</arc-textarea>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
@@ -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 ThemeToggleProps {
|
|
7
|
+
theme?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
iconOnly?: boolean;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const ThemeToggle: Component<ThemeToggleProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['theme', 'disabled', 'iconOnly', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-theme-toggle theme={local.theme} disabled={local.disabled} iconOnly={local.iconOnly} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-theme-toggle>
|
|
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 ToastProps {
|
|
7
|
+
position?: 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
8
|
+
duration?: number;
|
|
9
|
+
_toasts?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Toast: Component<ToastProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['position', 'duration', '_toasts', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-toast position={local.position} duration={local.duration} _toasts={local._toasts} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-toast>
|
|
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 ToggleProps {
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
label?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Toggle: Component<ToggleProps> = (props) => {
|
|
16
|
+
const [local, rest] = splitProps(props, ['checked', 'disabled', 'label', 'name', 'children']);
|
|
17
|
+
return (
|
|
18
|
+
<arc-toggle checked={local.checked} disabled={local.disabled} label={local.label} name={local.name} {...rest}>
|
|
19
|
+
{local.children}
|
|
20
|
+
</arc-toggle>
|
|
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 TooltipProps {
|
|
7
|
+
content?: string;
|
|
8
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
9
|
+
delay?: number;
|
|
10
|
+
_visible?: string;
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Tooltip: Component<TooltipProps> = (props) => {
|
|
16
|
+
const [local, rest] = splitProps(props, ['content', 'position', 'delay', '_visible', 'children']);
|
|
17
|
+
return (
|
|
18
|
+
<arc-tooltip content={local.content} position={local.position} delay={local.delay} _visible={local._visible} {...rest}>
|
|
19
|
+
{local.children}
|
|
20
|
+
</arc-tooltip>
|
|
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 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 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,120 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
export { AccordionItem } from './AccordionItem.js';
|
|
3
|
+
export type { AccordionItemProps } from './AccordionItem.js';
|
|
4
|
+
export { Alert } from './Alert.js';
|
|
5
|
+
export type { AlertProps } from './Alert.js';
|
|
6
|
+
export { Button } from './Button.js';
|
|
7
|
+
export type { ButtonProps } from './Button.js';
|
|
8
|
+
export { Calendar } from './Calendar.js';
|
|
9
|
+
export type { CalendarProps } from './Calendar.js';
|
|
10
|
+
export { Checkbox } from './Checkbox.js';
|
|
11
|
+
export type { CheckboxProps } from './Checkbox.js';
|
|
12
|
+
export { Column } from './Column.js';
|
|
13
|
+
export type { ColumnProps } from './Column.js';
|
|
14
|
+
export { Combobox } from './Combobox.js';
|
|
15
|
+
export type { ComboboxProps } from './Combobox.js';
|
|
16
|
+
export { CommandItem } from './CommandItem.js';
|
|
17
|
+
export type { CommandItemProps } from './CommandItem.js';
|
|
18
|
+
export { CommandPalette } from './CommandPalette.js';
|
|
19
|
+
export type { CommandPaletteProps } from './CommandPalette.js';
|
|
20
|
+
export { ContextMenu } from './ContextMenu.js';
|
|
21
|
+
export type { ContextMenuProps } from './ContextMenu.js';
|
|
22
|
+
export { CopyButton } from './CopyButton.js';
|
|
23
|
+
export type { CopyButtonProps } from './CopyButton.js';
|
|
24
|
+
export { DataTable } from './DataTable.js';
|
|
25
|
+
export type { DataTableProps } from './DataTable.js';
|
|
26
|
+
export { DatePicker } from './DatePicker.js';
|
|
27
|
+
export type { DatePickerProps } from './DatePicker.js';
|
|
28
|
+
export { Drawer } from './Drawer.js';
|
|
29
|
+
export type { DrawerProps } from './Drawer.js';
|
|
30
|
+
export { DropdownMenu } from './DropdownMenu.js';
|
|
31
|
+
export type { DropdownMenuProps } from './DropdownMenu.js';
|
|
32
|
+
export { FileUpload } from './FileUpload.js';
|
|
33
|
+
export type { FileUploadProps } from './FileUpload.js';
|
|
34
|
+
export { Form } from './Form.js';
|
|
35
|
+
export type { FormProps } from './Form.js';
|
|
36
|
+
export { HoverCard } from './HoverCard.js';
|
|
37
|
+
export type { HoverCardProps } from './HoverCard.js';
|
|
38
|
+
export { IconButton } from './IconButton.js';
|
|
39
|
+
export type { IconButtonProps } from './IconButton.js';
|
|
40
|
+
export { Input } from './Input.js';
|
|
41
|
+
export type { InputProps } from './Input.js';
|
|
42
|
+
export { Modal } from './Modal.js';
|
|
43
|
+
export type { ModalProps } from './Modal.js';
|
|
44
|
+
export { MultiSelect } from './MultiSelect.js';
|
|
45
|
+
export type { MultiSelectProps } from './MultiSelect.js';
|
|
46
|
+
export { Pagination } from './Pagination.js';
|
|
47
|
+
export type { PaginationProps } from './Pagination.js';
|
|
48
|
+
export { Popover } from './Popover.js';
|
|
49
|
+
export type { PopoverProps } from './Popover.js';
|
|
50
|
+
export { Progress } from './Progress.js';
|
|
51
|
+
export type { ProgressProps } from './Progress.js';
|
|
52
|
+
export { RadioGroup } from './RadioGroup.js';
|
|
53
|
+
export type { RadioGroupProps } from './RadioGroup.js';
|
|
54
|
+
export { Search } from './Search.js';
|
|
55
|
+
export type { SearchProps } from './Search.js';
|
|
56
|
+
export { Slider } from './Slider.js';
|
|
57
|
+
export type { SliderProps } from './Slider.js';
|
|
58
|
+
export { Suggestion } from './Suggestion.js';
|
|
59
|
+
export type { SuggestionProps } from './Suggestion.js';
|
|
60
|
+
export { Tabs } from './Tabs.js';
|
|
61
|
+
export type { TabsProps } from './Tabs.js';
|
|
62
|
+
export { Tag } from './Tag.js';
|
|
63
|
+
export type { TagProps } from './Tag.js';
|
|
64
|
+
export { Textarea } from './Textarea.js';
|
|
65
|
+
export type { TextareaProps } from './Textarea.js';
|
|
66
|
+
export { ThemeToggle } from './ThemeToggle.js';
|
|
67
|
+
export type { ThemeToggleProps } from './ThemeToggle.js';
|
|
68
|
+
export { Toast } from './Toast.js';
|
|
69
|
+
export type { ToastProps } from './Toast.js';
|
|
70
|
+
export { Tooltip } from './Tooltip.js';
|
|
71
|
+
export type { TooltipProps } from './Tooltip.js';
|
|
72
|
+
export { TreeItem } from './TreeItem.js';
|
|
73
|
+
export type { TreeItemProps } from './TreeItem.js';
|
|
74
|
+
export { TreeView } from './TreeView.js';
|
|
75
|
+
export type { TreeViewProps } from './TreeView.js';
|
|
76
|
+
|
|
77
|
+
export { Carousel } from './Carousel.js';
|
|
78
|
+
export type { CarouselProps } from './Carousel.js';
|
|
79
|
+
|
|
80
|
+
export { Chip } from './Chip.js';
|
|
81
|
+
export type { ChipProps } from './Chip.js';
|
|
82
|
+
|
|
83
|
+
export { Collapsible } from './Collapsible.js';
|
|
84
|
+
export type { CollapsibleProps } from './Collapsible.js';
|
|
85
|
+
|
|
86
|
+
export { ColorPicker } from './ColorPicker.js';
|
|
87
|
+
export type { ColorPickerProps } from './ColorPicker.js';
|
|
88
|
+
|
|
89
|
+
export { Dialog } from './Dialog.js';
|
|
90
|
+
export type { DialogProps } from './Dialog.js';
|
|
91
|
+
|
|
92
|
+
export { InfiniteScroll } from './InfiniteScroll.js';
|
|
93
|
+
export type { InfiniteScrollProps } from './InfiniteScroll.js';
|
|
94
|
+
|
|
95
|
+
export { NumberInput } from './NumberInput.js';
|
|
96
|
+
export type { NumberInputProps } from './NumberInput.js';
|
|
97
|
+
|
|
98
|
+
export { OtpInput } from './OtpInput.js';
|
|
99
|
+
export type { OtpInputProps } from './OtpInput.js';
|
|
100
|
+
|
|
101
|
+
export { PinInput } from './PinInput.js';
|
|
102
|
+
export type { PinInputProps } from './PinInput.js';
|
|
103
|
+
|
|
104
|
+
export { Rating } from './Rating.js';
|
|
105
|
+
export type { RatingProps } from './Rating.js';
|
|
106
|
+
|
|
107
|
+
export { ScrollToTop } from './ScrollToTop.js';
|
|
108
|
+
export type { ScrollToTopProps } from './ScrollToTop.js';
|
|
109
|
+
|
|
110
|
+
export { SegmentedControl } from './SegmentedControl.js';
|
|
111
|
+
export type { SegmentedControlProps } from './SegmentedControl.js';
|
|
112
|
+
|
|
113
|
+
export { Sheet } from './Sheet.js';
|
|
114
|
+
export type { SheetProps } from './Sheet.js';
|
|
115
|
+
|
|
116
|
+
export { SortableList } from './SortableList.js';
|
|
117
|
+
export type { SortableListProps } from './SortableList.js';
|
|
118
|
+
|
|
119
|
+
export { Truncate } from './Truncate.js';
|
|
120
|
+
export type { TruncateProps } from './Truncate.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
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 MenuDividerProps {
|
|
7
|
+
children?: JSX.Element;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const MenuDivider: Component<MenuDividerProps> = (props) => {
|
|
12
|
+
const [local, rest] = splitProps(props, ['children']);
|
|
13
|
+
return (
|
|
14
|
+
<arc-menu-divider {...rest}>
|
|
15
|
+
{local.children}
|
|
16
|
+
</arc-menu-divider>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
@@ -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 MenuItemProps {
|
|
7
|
+
shortcut?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
icon?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const MenuItem: Component<MenuItemProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['shortcut', 'disabled', 'icon', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-menu-item shortcut={local.shortcut} disabled={local.disabled} icon={local.icon} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-menu-item>
|
|
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 OptionProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Option: Component<OptionProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['value', 'disabled', 'selected', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-option value={local.value} disabled={local.disabled} selected={local.selected} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-option>
|
|
20
|
+
);
|
|
21
|
+
};
|