@arclux/arc-ui-preact 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/package.json +71 -0
  4. package/src/application/AppShell.tsx +16 -0
  5. package/src/application/AuthShell.tsx +16 -0
  6. package/src/application/Breadcrumb.tsx +16 -0
  7. package/src/application/BreadcrumbItem.tsx +16 -0
  8. package/src/application/Container.tsx +16 -0
  9. package/src/application/DashboardGrid.tsx +18 -0
  10. package/src/application/Footer.tsx +17 -0
  11. package/src/application/NavItem.tsx +18 -0
  12. package/src/application/NavigationMenu.tsx +17 -0
  13. package/src/application/NotificationPanel.tsx +18 -0
  14. package/src/application/PageHeader.tsx +17 -0
  15. package/src/application/PageLayout.tsx +18 -0
  16. package/src/application/Resizable.tsx +20 -0
  17. package/src/application/ScrollSpy.tsx +19 -0
  18. package/src/application/Section.tsx +16 -0
  19. package/src/application/SettingsLayout.tsx +16 -0
  20. package/src/application/Sidebar.tsx +20 -0
  21. package/src/application/SidebarLink.tsx +17 -0
  22. package/src/application/SidebarSection.tsx +18 -0
  23. package/src/application/SplitPane.tsx +19 -0
  24. package/src/application/SpyLink.tsx +16 -0
  25. package/src/application/StatusBar.tsx +16 -0
  26. package/src/application/Toolbar.tsx +18 -0
  27. package/src/application/TopBar.tsx +18 -0
  28. package/src/application/index.ts +45 -0
  29. package/src/content/Accordion.tsx +17 -0
  30. package/src/content/AccordionItem.tsx +16 -0
  31. package/src/content/AnimatedNumber.tsx +22 -0
  32. package/src/content/AspectRatio.tsx +16 -0
  33. package/src/content/Avatar.tsx +18 -0
  34. package/src/content/AvatarGroup.tsx +17 -0
  35. package/src/content/Badge.tsx +16 -0
  36. package/src/content/Callout.tsx +16 -0
  37. package/src/content/Card.tsx +16 -0
  38. package/src/content/Carousel.tsx +22 -0
  39. package/src/content/CodeBlock.tsx +19 -0
  40. package/src/content/Collapsible.tsx +17 -0
  41. package/src/content/ColorSwatch.tsx +18 -0
  42. package/src/content/Column.tsx +19 -0
  43. package/src/content/DataTable.tsx +22 -0
  44. package/src/content/Divider.tsx +18 -0
  45. package/src/content/EmptyState.tsx +17 -0
  46. package/src/content/FeatureCard.tsx +19 -0
  47. package/src/content/Highlight.tsx +18 -0
  48. package/src/content/Icon.tsx +18 -0
  49. package/src/content/InfiniteScroll.tsx +19 -0
  50. package/src/content/Kbd.tsx +15 -0
  51. package/src/content/Link.tsx +19 -0
  52. package/src/content/Markdown.tsx +16 -0
  53. package/src/content/Marquee.tsx +19 -0
  54. package/src/content/Meter.tsx +22 -0
  55. package/src/content/ScrollArea.tsx +17 -0
  56. package/src/content/Skeleton.tsx +18 -0
  57. package/src/content/Spinner.tsx +17 -0
  58. package/src/content/Stack.tsx +20 -0
  59. package/src/content/Stat.tsx +17 -0
  60. package/src/content/Step.tsx +16 -0
  61. package/src/content/Stepper.tsx +17 -0
  62. package/src/content/Table.tsx +19 -0
  63. package/src/content/Tag.tsx +18 -0
  64. package/src/content/Text.tsx +17 -0
  65. package/src/content/Timeline.tsx +16 -0
  66. package/src/content/TimelineItem.tsx +17 -0
  67. package/src/content/Truncate.tsx +17 -0
  68. package/src/content/ValueCard.tsx +18 -0
  69. package/src/content/index.ts +89 -0
  70. package/src/feedback/Alert.tsx +18 -0
  71. package/src/feedback/CommandItem.tsx +17 -0
  72. package/src/feedback/CommandPalette.tsx +20 -0
  73. package/src/feedback/ContextMenu.tsx +20 -0
  74. package/src/feedback/Dialog.tsx +19 -0
  75. package/src/feedback/DropdownMenu.tsx +18 -0
  76. package/src/feedback/HoverCard.tsx +19 -0
  77. package/src/feedback/Modal.tsx +19 -0
  78. package/src/feedback/NotificationPanel.tsx +18 -0
  79. package/src/feedback/Popover.tsx +18 -0
  80. package/src/feedback/Progress.tsx +20 -0
  81. package/src/feedback/Sheet.tsx +18 -0
  82. package/src/feedback/Toast.tsx +18 -0
  83. package/src/feedback/Tooltip.tsx +19 -0
  84. package/src/index.ts +257 -0
  85. package/src/input/Button.tsx +20 -0
  86. package/src/input/Calendar.tsx +21 -0
  87. package/src/input/Checkbox.tsx +21 -0
  88. package/src/input/Chip.tsx +18 -0
  89. package/src/input/ColorPicker.tsx +25 -0
  90. package/src/input/Combobox.tsx +23 -0
  91. package/src/input/CopyButton.tsx +18 -0
  92. package/src/input/DatePicker.tsx +25 -0
  93. package/src/input/FileUpload.tsx +22 -0
  94. package/src/input/Form.tsx +18 -0
  95. package/src/input/IconButton.tsx +23 -0
  96. package/src/input/Input.tsx +24 -0
  97. package/src/input/MultiSelect.tsx +23 -0
  98. package/src/input/NumberInput.tsx +21 -0
  99. package/src/input/OtpInput.tsx +19 -0
  100. package/src/input/PinInput.tsx +22 -0
  101. package/src/input/Radio.tsx +17 -0
  102. package/src/input/RadioGroup.tsx +20 -0
  103. package/src/input/Rating.tsx +19 -0
  104. package/src/input/Search.tsx +23 -0
  105. package/src/input/SegmentedControl.tsx +18 -0
  106. package/src/input/Select.tsx +22 -0
  107. package/src/input/Slider.tsx +21 -0
  108. package/src/input/SortableList.tsx +21 -0
  109. package/src/input/Suggestion.tsx +16 -0
  110. package/src/input/Textarea.tsx +24 -0
  111. package/src/input/ThemeToggle.tsx +18 -0
  112. package/src/input/Toggle.tsx +19 -0
  113. package/src/layout/AppShell.tsx +19 -0
  114. package/src/layout/AuthShell.tsx +16 -0
  115. package/src/layout/Container.tsx +16 -0
  116. package/src/layout/DashboardGrid.tsx +18 -0
  117. package/src/layout/PageHeader.tsx +17 -0
  118. package/src/layout/PageLayout.tsx +18 -0
  119. package/src/layout/Resizable.tsx +20 -0
  120. package/src/layout/Section.tsx +16 -0
  121. package/src/layout/SettingsLayout.tsx +16 -0
  122. package/src/layout/SplitPane.tsx +19 -0
  123. package/src/layout/StatusBar.tsx +16 -0
  124. package/src/layout/Toolbar.tsx +18 -0
  125. package/src/navigation/Breadcrumb.tsx +16 -0
  126. package/src/navigation/BreadcrumbItem.tsx +16 -0
  127. package/src/navigation/Drawer.tsx +18 -0
  128. package/src/navigation/Footer.tsx +17 -0
  129. package/src/navigation/Link.tsx +19 -0
  130. package/src/navigation/NavItem.tsx +18 -0
  131. package/src/navigation/NavigationMenu.tsx +20 -0
  132. package/src/navigation/Pagination.tsx +18 -0
  133. package/src/navigation/ScrollSpy.tsx +19 -0
  134. package/src/navigation/ScrollToTop.tsx +20 -0
  135. package/src/navigation/Sidebar.tsx +20 -0
  136. package/src/navigation/SidebarLink.tsx +17 -0
  137. package/src/navigation/SidebarSection.tsx +18 -0
  138. package/src/navigation/SpyLink.tsx +16 -0
  139. package/src/navigation/Tab.tsx +16 -0
  140. package/src/navigation/Tabs.tsx +18 -0
  141. package/src/navigation/TopBar.tsx +20 -0
  142. package/src/navigation/TreeItem.tsx +18 -0
  143. package/src/navigation/TreeView.tsx +17 -0
  144. package/src/reactive/Accordion.tsx +17 -0
  145. package/src/reactive/AccordionItem.tsx +16 -0
  146. package/src/reactive/Alert.tsx +18 -0
  147. package/src/reactive/Button.tsx +20 -0
  148. package/src/reactive/Calendar.tsx +21 -0
  149. package/src/reactive/Carousel.tsx +22 -0
  150. package/src/reactive/Checkbox.tsx +21 -0
  151. package/src/reactive/Chip.tsx +18 -0
  152. package/src/reactive/Collapsible.tsx +17 -0
  153. package/src/reactive/ColorPicker.tsx +25 -0
  154. package/src/reactive/Column.tsx +19 -0
  155. package/src/reactive/Combobox.tsx +23 -0
  156. package/src/reactive/CommandItem.tsx +17 -0
  157. package/src/reactive/CommandPalette.tsx +20 -0
  158. package/src/reactive/ContextMenu.tsx +20 -0
  159. package/src/reactive/CopyButton.tsx +18 -0
  160. package/src/reactive/DataTable.tsx +22 -0
  161. package/src/reactive/DatePicker.tsx +25 -0
  162. package/src/reactive/Dialog.tsx +19 -0
  163. package/src/reactive/Drawer.tsx +18 -0
  164. package/src/reactive/DropdownMenu.tsx +18 -0
  165. package/src/reactive/FileUpload.tsx +22 -0
  166. package/src/reactive/Form.tsx +18 -0
  167. package/src/reactive/HoverCard.tsx +19 -0
  168. package/src/reactive/IconButton.tsx +23 -0
  169. package/src/reactive/InfiniteScroll.tsx +19 -0
  170. package/src/reactive/Input.tsx +24 -0
  171. package/src/reactive/Modal.tsx +19 -0
  172. package/src/reactive/MultiSelect.tsx +23 -0
  173. package/src/reactive/NumberInput.tsx +21 -0
  174. package/src/reactive/OtpInput.tsx +19 -0
  175. package/src/reactive/Pagination.tsx +18 -0
  176. package/src/reactive/PinInput.tsx +22 -0
  177. package/src/reactive/Popover.tsx +18 -0
  178. package/src/reactive/Progress.tsx +20 -0
  179. package/src/reactive/Radio.tsx +17 -0
  180. package/src/reactive/RadioGroup.tsx +20 -0
  181. package/src/reactive/Rating.tsx +19 -0
  182. package/src/reactive/ScrollToTop.tsx +20 -0
  183. package/src/reactive/Search.tsx +23 -0
  184. package/src/reactive/SegmentedControl.tsx +18 -0
  185. package/src/reactive/Select.tsx +22 -0
  186. package/src/reactive/Sheet.tsx +18 -0
  187. package/src/reactive/Slider.tsx +21 -0
  188. package/src/reactive/SortableList.tsx +21 -0
  189. package/src/reactive/Suggestion.tsx +16 -0
  190. package/src/reactive/Tab.tsx +16 -0
  191. package/src/reactive/Tabs.tsx +18 -0
  192. package/src/reactive/Tag.tsx +18 -0
  193. package/src/reactive/Textarea.tsx +24 -0
  194. package/src/reactive/ThemeToggle.tsx +18 -0
  195. package/src/reactive/Toast.tsx +18 -0
  196. package/src/reactive/Toggle.tsx +19 -0
  197. package/src/reactive/Tooltip.tsx +19 -0
  198. package/src/reactive/TreeItem.tsx +18 -0
  199. package/src/reactive/TreeView.tsx +17 -0
  200. package/src/reactive/Truncate.tsx +17 -0
  201. package/src/reactive/index.ts +120 -0
  202. package/src/shared/MenuDivider.tsx +15 -0
  203. package/src/shared/MenuItem.tsx +18 -0
  204. package/src/shared/Option.tsx +18 -0
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface SidebarLinkProps {
7
+ href?: string;
8
+ active?: boolean;
9
+ children?: preact.ComponentChildren;
10
+ [key: string]: unknown;
11
+ }
12
+
13
+ export const SidebarLink: FunctionComponent<SidebarLinkProps> = ({ href, active, children, ...rest }) => (
14
+ <arc-sidebar-link href={href} active={active} {...rest}>
15
+ {children}
16
+ </arc-sidebar-link>
17
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface SidebarSectionProps {
7
+ heading?: string;
8
+ collapsible?: boolean;
9
+ open?: boolean;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const SidebarSection: FunctionComponent<SidebarSectionProps> = ({ heading, collapsible, open, children, ...rest }) => (
15
+ <arc-sidebar-section heading={heading} collapsible={collapsible} open={open} {...rest}>
16
+ {children}
17
+ </arc-sidebar-section>
18
+ );
@@ -0,0 +1,16 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface SpyLinkProps {
7
+ target?: string;
8
+ children?: preact.ComponentChildren;
9
+ [key: string]: unknown;
10
+ }
11
+
12
+ export const SpyLink: FunctionComponent<SpyLinkProps> = ({ target, children, ...rest }) => (
13
+ <arc-spy-link target={target} {...rest}>
14
+ {children}
15
+ </arc-spy-link>
16
+ );
@@ -0,0 +1,16 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TabProps {
7
+ label?: string;
8
+ children?: preact.ComponentChildren;
9
+ [key: string]: unknown;
10
+ }
11
+
12
+ export const Tab: FunctionComponent<TabProps> = ({ label, children, ...rest }) => (
13
+ <arc-tab label={label} {...rest}>
14
+ {children}
15
+ </arc-tab>
16
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TabsProps {
7
+ items?: unknown[];
8
+ selected?: number;
9
+ _tabs?: string;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const Tabs: FunctionComponent<TabsProps> = ({ items, selected, _tabs, children, ...rest }) => (
15
+ <arc-tabs items={items} selected={selected} _tabs={_tabs} {...rest}>
16
+ {children}
17
+ </arc-tabs>
18
+ );
@@ -0,0 +1,20 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TopBarProps {
7
+ heading?: string;
8
+ fixed?: boolean;
9
+ menuOpen?: boolean;
10
+ mobileMenu?: string;
11
+ menuPosition?: string;
12
+ children?: preact.ComponentChildren;
13
+ [key: string]: unknown;
14
+ }
15
+
16
+ export const TopBar: FunctionComponent<TopBarProps> = ({ heading, fixed, menuOpen, mobileMenu, menuPosition, children, ...rest }) => (
17
+ <arc-top-bar heading={heading} fixed={fixed} menuOpen={menuOpen} mobileMenu={mobileMenu} menuPosition={menuPosition} {...rest}>
18
+ {children}
19
+ </arc-top-bar>
20
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TreeItemProps {
7
+ label?: string;
8
+ icon?: string;
9
+ expanded?: boolean;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const TreeItem: FunctionComponent<TreeItemProps> = ({ label, icon, expanded, children, ...rest }) => (
15
+ <arc-tree-item label={label} icon={icon} expanded={expanded} {...rest}>
16
+ {children}
17
+ </arc-tree-item>
18
+ );
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TreeViewProps {
7
+ _items?: string;
8
+ _selected?: string;
9
+ children?: preact.ComponentChildren;
10
+ [key: string]: unknown;
11
+ }
12
+
13
+ export const TreeView: FunctionComponent<TreeViewProps> = ({ _items, _selected, children, ...rest }) => (
14
+ <arc-tree-view _items={_items} _selected={_selected} {...rest}>
15
+ {children}
16
+ </arc-tree-view>
17
+ );
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface AccordionProps {
7
+ _items?: string;
8
+ _openItems?: string;
9
+ children?: preact.ComponentChildren;
10
+ [key: string]: unknown;
11
+ }
12
+
13
+ export const Accordion: FunctionComponent<AccordionProps> = ({ _items, _openItems, children, ...rest }) => (
14
+ <arc-accordion _items={_items} _openItems={_openItems} {...rest}>
15
+ {children}
16
+ </arc-accordion>
17
+ );
@@ -0,0 +1,16 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface AccordionItemProps {
7
+ question?: string;
8
+ children?: preact.ComponentChildren;
9
+ [key: string]: unknown;
10
+ }
11
+
12
+ export const AccordionItem: FunctionComponent<AccordionItemProps> = ({ question, children, ...rest }) => (
13
+ <arc-accordion-item question={question} {...rest}>
14
+ {children}
15
+ </arc-accordion-item>
16
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface AlertProps {
7
+ variant?: 'info' | 'success' | 'warning' | 'error';
8
+ dismissible?: boolean;
9
+ heading?: string;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const Alert: FunctionComponent<AlertProps> = ({ variant, dismissible, heading, children, ...rest }) => (
15
+ <arc-alert variant={variant} dismissible={dismissible} heading={heading} {...rest}>
16
+ {children}
17
+ </arc-alert>
18
+ );
@@ -0,0 +1,20 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface ButtonProps {
7
+ variant?: 'primary' | 'secondary' | 'ghost';
8
+ size?: 'sm' | 'md' | 'lg';
9
+ href?: string;
10
+ disabled?: boolean;
11
+ type?: string;
12
+ children?: preact.ComponentChildren;
13
+ [key: string]: unknown;
14
+ }
15
+
16
+ export const Button: FunctionComponent<ButtonProps> = ({ variant, size, href, disabled, type, children, ...rest }) => (
17
+ <arc-button variant={variant} size={size} href={href} disabled={disabled} type={type} {...rest}>
18
+ {children}
19
+ </arc-button>
20
+ );
@@ -0,0 +1,21 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface CalendarProps {
7
+ value?: string;
8
+ min?: string;
9
+ max?: string;
10
+ month?: number;
11
+ year?: number;
12
+ _focusedDay?: string;
13
+ children?: preact.ComponentChildren;
14
+ [key: string]: unknown;
15
+ }
16
+
17
+ export const Calendar: FunctionComponent<CalendarProps> = ({ value, min, max, month, year, _focusedDay, children, ...rest }) => (
18
+ <arc-calendar value={value} min={min} max={max} month={month} year={year} _focusedDay={_focusedDay} {...rest}>
19
+ {children}
20
+ </arc-calendar>
21
+ );
@@ -0,0 +1,22 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface CarouselProps {
7
+ autoPlay?: boolean;
8
+ interval?: number;
9
+ loop?: boolean;
10
+ showDots?: boolean;
11
+ showArrows?: boolean;
12
+ _current?: string;
13
+ _total?: string;
14
+ children?: preact.ComponentChildren;
15
+ [key: string]: unknown;
16
+ }
17
+
18
+ export const Carousel: FunctionComponent<CarouselProps> = ({ autoPlay, interval, loop, showDots, showArrows, _current, _total, children, ...rest }) => (
19
+ <arc-carousel autoPlay={autoPlay} interval={interval} loop={loop} showDots={showDots} showArrows={showArrows} _current={_current} _total={_total} {...rest}>
20
+ {children}
21
+ </arc-carousel>
22
+ );
@@ -0,0 +1,21 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface CheckboxProps {
7
+ checked?: boolean;
8
+ indeterminate?: boolean;
9
+ disabled?: boolean;
10
+ label?: string;
11
+ name?: string;
12
+ value?: string;
13
+ children?: preact.ComponentChildren;
14
+ [key: string]: unknown;
15
+ }
16
+
17
+ export const Checkbox: FunctionComponent<CheckboxProps> = ({ checked, indeterminate, disabled, label, name, value, children, ...rest }) => (
18
+ <arc-checkbox checked={checked} indeterminate={indeterminate} disabled={disabled} label={label} name={name} value={value} {...rest}>
19
+ {children}
20
+ </arc-checkbox>
21
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface ChipProps {
7
+ selected?: boolean;
8
+ disabled?: boolean;
9
+ value?: string;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const Chip: FunctionComponent<ChipProps> = ({ selected, disabled, value, children, ...rest }) => (
15
+ <arc-chip selected={selected} disabled={disabled} value={value} {...rest}>
16
+ {children}
17
+ </arc-chip>
18
+ );
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface CollapsibleProps {
7
+ open?: boolean;
8
+ heading?: string;
9
+ children?: preact.ComponentChildren;
10
+ [key: string]: unknown;
11
+ }
12
+
13
+ export const Collapsible: FunctionComponent<CollapsibleProps> = ({ open, heading, children, ...rest }) => (
14
+ <arc-collapsible open={open} heading={heading} {...rest}>
15
+ {children}
16
+ </arc-collapsible>
17
+ );
@@ -0,0 +1,25 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface 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?: preact.ComponentChildren;
18
+ [key: string]: unknown;
19
+ }
20
+
21
+ export const ColorPicker: FunctionComponent<ColorPickerProps> = ({ value, presets, disabled, label, _hue, _sat, _lit, _hexInput, _draggingArea, _draggingHue, children, ...rest }) => (
22
+ <arc-color-picker value={value} presets={presets} disabled={disabled} label={label} _hue={_hue} _sat={_sat} _lit={_lit} _hexInput={_hexInput} _draggingArea={_draggingArea} _draggingHue={_draggingHue} {...rest}>
23
+ {children}
24
+ </arc-color-picker>
25
+ );
@@ -0,0 +1,19 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface ColumnProps {
7
+ key?: string;
8
+ label?: string;
9
+ sortable?: boolean;
10
+ width?: string;
11
+ children?: preact.ComponentChildren;
12
+ [key: string]: unknown;
13
+ }
14
+
15
+ export const Column: FunctionComponent<ColumnProps> = ({ key, label, sortable, width, children, ...rest }) => (
16
+ <arc-column key={key} label={label} sortable={sortable} width={width} {...rest}>
17
+ {children}
18
+ </arc-column>
19
+ );
@@ -0,0 +1,23 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface ComboboxProps {
7
+ value?: string;
8
+ placeholder?: string;
9
+ label?: string;
10
+ disabled?: boolean;
11
+ _query?: string;
12
+ _open?: string;
13
+ _activeIndex?: string;
14
+ _options?: string;
15
+ children?: preact.ComponentChildren;
16
+ [key: string]: unknown;
17
+ }
18
+
19
+ export const Combobox: FunctionComponent<ComboboxProps> = ({ value, placeholder, label, disabled, _query, _open, _activeIndex, _options, children, ...rest }) => (
20
+ <arc-combobox value={value} placeholder={placeholder} label={label} disabled={disabled} _query={_query} _open={_open} _activeIndex={_activeIndex} _options={_options} {...rest}>
21
+ {children}
22
+ </arc-combobox>
23
+ );
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface CommandItemProps {
7
+ shortcut?: string;
8
+ icon?: string;
9
+ children?: preact.ComponentChildren;
10
+ [key: string]: unknown;
11
+ }
12
+
13
+ export const CommandItem: FunctionComponent<CommandItemProps> = ({ shortcut, icon, children, ...rest }) => (
14
+ <arc-command-item shortcut={shortcut} icon={icon} {...rest}>
15
+ {children}
16
+ </arc-command-item>
17
+ );
@@ -0,0 +1,20 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface CommandPaletteProps {
7
+ open?: boolean;
8
+ placeholder?: string;
9
+ _query?: string;
10
+ _focusedIndex?: string;
11
+ _items?: string;
12
+ children?: preact.ComponentChildren;
13
+ [key: string]: unknown;
14
+ }
15
+
16
+ export const CommandPalette: FunctionComponent<CommandPaletteProps> = ({ open, placeholder, _query, _focusedIndex, _items, children, ...rest }) => (
17
+ <arc-command-palette open={open} placeholder={placeholder} _query={_query} _focusedIndex={_focusedIndex} _items={_items} {...rest}>
18
+ {children}
19
+ </arc-command-palette>
20
+ );
@@ -0,0 +1,20 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface ContextMenuProps {
7
+ open?: boolean;
8
+ _x?: string;
9
+ _y?: string;
10
+ _activeIndex?: string;
11
+ _children?: string;
12
+ children?: preact.ComponentChildren;
13
+ [key: string]: unknown;
14
+ }
15
+
16
+ export const ContextMenu: FunctionComponent<ContextMenuProps> = ({ open, _x, _y, _activeIndex, _children, children, ...rest }) => (
17
+ <arc-context-menu open={open} _x={_x} _y={_y} _activeIndex={_activeIndex} _children={_children} {...rest}>
18
+ {children}
19
+ </arc-context-menu>
20
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface CopyButtonProps {
7
+ value?: string;
8
+ disabled?: boolean;
9
+ _copied?: string;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const CopyButton: FunctionComponent<CopyButtonProps> = ({ value, disabled, _copied, children, ...rest }) => (
15
+ <arc-copy-button value={value} disabled={disabled} _copied={_copied} {...rest}>
16
+ {children}
17
+ </arc-copy-button>
18
+ );
@@ -0,0 +1,22 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface DataTableProps {
7
+ rows?: unknown[];
8
+ sortable?: boolean;
9
+ selectable?: boolean;
10
+ sortColumn?: string;
11
+ sortDirection?: string;
12
+ _columns?: string;
13
+ _selectedRows?: string;
14
+ children?: preact.ComponentChildren;
15
+ [key: string]: unknown;
16
+ }
17
+
18
+ export const DataTable: FunctionComponent<DataTableProps> = ({ rows, sortable, selectable, sortColumn, sortDirection, _columns, _selectedRows, children, ...rest }) => (
19
+ <arc-data-table rows={rows} sortable={sortable} selectable={selectable} sortColumn={sortColumn} sortDirection={sortDirection} _columns={_columns} _selectedRows={_selectedRows} {...rest}>
20
+ {children}
21
+ </arc-data-table>
22
+ );
@@ -0,0 +1,25 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface DatePickerProps {
7
+ value?: string;
8
+ min?: string;
9
+ max?: string;
10
+ placeholder?: string;
11
+ disabled?: boolean;
12
+ label?: string;
13
+ _open?: string;
14
+ _viewMonth?: string;
15
+ _viewYear?: string;
16
+ _mode?: string;
17
+ children?: preact.ComponentChildren;
18
+ [key: string]: unknown;
19
+ }
20
+
21
+ export const DatePicker: FunctionComponent<DatePickerProps> = ({ value, min, max, placeholder, disabled, label, _open, _viewMonth, _viewYear, _mode, children, ...rest }) => (
22
+ <arc-date-picker value={value} min={min} max={max} placeholder={placeholder} disabled={disabled} label={label} _open={_open} _viewMonth={_viewMonth} _viewYear={_viewYear} _mode={_mode} {...rest}>
23
+ {children}
24
+ </arc-date-picker>
25
+ );
@@ -0,0 +1,19 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface DialogProps {
7
+ open?: boolean;
8
+ heading?: string;
9
+ message?: string;
10
+ variant?: 'danger';
11
+ children?: preact.ComponentChildren;
12
+ [key: string]: unknown;
13
+ }
14
+
15
+ export const Dialog: FunctionComponent<DialogProps> = ({ open, heading, message, variant, children, ...rest }) => (
16
+ <arc-dialog open={open} heading={heading} message={message} variant={variant} {...rest}>
17
+ {children}
18
+ </arc-dialog>
19
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface DrawerProps {
7
+ open?: boolean;
8
+ position?: 'left' | 'right';
9
+ heading?: string;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const Drawer: FunctionComponent<DrawerProps> = ({ open, position, heading, children, ...rest }) => (
15
+ <arc-drawer open={open} position={position} heading={heading} {...rest}>
16
+ {children}
17
+ </arc-drawer>
18
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface DropdownMenuProps {
7
+ open?: boolean;
8
+ _focusedIndex?: string;
9
+ _children?: string;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const DropdownMenu: FunctionComponent<DropdownMenuProps> = ({ open, _focusedIndex, _children, children, ...rest }) => (
15
+ <arc-dropdown-menu open={open} _focusedIndex={_focusedIndex} _children={_children} {...rest}>
16
+ {children}
17
+ </arc-dropdown-menu>
18
+ );
@@ -0,0 +1,22 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface FileUploadProps {
7
+ accept?: string;
8
+ multiple?: boolean;
9
+ maxSize?: number;
10
+ disabled?: boolean;
11
+ _files?: string;
12
+ _dragOver?: string;
13
+ _error?: string;
14
+ children?: preact.ComponentChildren;
15
+ [key: string]: unknown;
16
+ }
17
+
18
+ export const FileUpload: FunctionComponent<FileUploadProps> = ({ accept, multiple, maxSize, disabled, _files, _dragOver, _error, children, ...rest }) => (
19
+ <arc-file-upload accept={accept} multiple={multiple} maxSize={maxSize} disabled={disabled} _files={_files} _dragOver={_dragOver} _error={_error} {...rest}>
20
+ {children}
21
+ </arc-file-upload>
22
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface FormProps {
7
+ action?: string;
8
+ method?: string;
9
+ novalidate?: boolean;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const Form: FunctionComponent<FormProps> = ({ action, method, novalidate, children, ...rest }) => (
15
+ <arc-form action={action} method={method} novalidate={novalidate} {...rest}>
16
+ {children}
17
+ </arc-form>
18
+ );
@@ -0,0 +1,19 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface HoverCardProps {
7
+ position?: 'bottom' | 'top' | 'left' | 'right';
8
+ openDelay?: number;
9
+ closeDelay?: number;
10
+ _visible?: string;
11
+ children?: preact.ComponentChildren;
12
+ [key: string]: unknown;
13
+ }
14
+
15
+ export const HoverCard: FunctionComponent<HoverCardProps> = ({ position, openDelay, closeDelay, _visible, children, ...rest }) => (
16
+ <arc-hover-card position={position} openDelay={openDelay} closeDelay={closeDelay} _visible={_visible} {...rest}>
17
+ {children}
18
+ </arc-hover-card>
19
+ );