@arclux/arc-ui-react 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 (126) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +57 -0
  3. package/package.json +73 -0
  4. package/src/content/Accordion.ts +22 -0
  5. package/src/content/AccordionItem.ts +17 -0
  6. package/src/content/AnimatedNumber.ts +23 -0
  7. package/src/content/AspectRatio.ts +17 -0
  8. package/src/content/Avatar.ts +19 -0
  9. package/src/content/AvatarGroup.ts +18 -0
  10. package/src/content/Badge.ts +17 -0
  11. package/src/content/Callout.ts +17 -0
  12. package/src/content/Card.ts +17 -0
  13. package/src/content/Carousel.ts +27 -0
  14. package/src/content/CodeBlock.ts +24 -0
  15. package/src/content/Collapsible.ts +24 -0
  16. package/src/content/ColorSwatch.ts +19 -0
  17. package/src/content/Column.ts +20 -0
  18. package/src/content/DataTable.ts +31 -0
  19. package/src/content/Divider.ts +19 -0
  20. package/src/content/EmptyState.ts +18 -0
  21. package/src/content/FeatureCard.ts +20 -0
  22. package/src/content/Highlight.ts +19 -0
  23. package/src/content/Icon.ts +19 -0
  24. package/src/content/InfiniteScroll.ts +24 -0
  25. package/src/content/Kbd.ts +16 -0
  26. package/src/content/Markdown.ts +17 -0
  27. package/src/content/Marquee.ts +20 -0
  28. package/src/content/Meter.ts +23 -0
  29. package/src/content/ScrollArea.ts +18 -0
  30. package/src/content/Skeleton.ts +19 -0
  31. package/src/content/Spinner.ts +18 -0
  32. package/src/content/Stack.ts +21 -0
  33. package/src/content/Stat.ts +18 -0
  34. package/src/content/Step.ts +17 -0
  35. package/src/content/Stepper.ts +18 -0
  36. package/src/content/Table.ts +20 -0
  37. package/src/content/Tag.ts +23 -0
  38. package/src/content/Text.ts +18 -0
  39. package/src/content/Timeline.ts +17 -0
  40. package/src/content/TimelineItem.ts +18 -0
  41. package/src/content/Truncate.ts +22 -0
  42. package/src/content/ValueCard.ts +19 -0
  43. package/src/content/index.ts +119 -0
  44. package/src/create-component.ts +6 -0
  45. package/src/feedback/Alert.ts +23 -0
  46. package/src/feedback/CommandItem.ts +18 -0
  47. package/src/feedback/CommandPalette.ts +27 -0
  48. package/src/feedback/ContextMenu.ts +31 -0
  49. package/src/feedback/Dialog.ts +28 -0
  50. package/src/feedback/DropdownMenu.ts +25 -0
  51. package/src/feedback/HoverCard.ts +26 -0
  52. package/src/feedback/Modal.ts +26 -0
  53. package/src/feedback/NotificationPanel.ts +25 -0
  54. package/src/feedback/Popover.ts +23 -0
  55. package/src/feedback/Progress.ts +21 -0
  56. package/src/feedback/Sheet.ts +27 -0
  57. package/src/feedback/Toast.ts +23 -0
  58. package/src/feedback/Tooltip.ts +20 -0
  59. package/src/feedback/index.ts +44 -0
  60. package/src/index.ts +354 -0
  61. package/src/input/Button.ts +25 -0
  62. package/src/input/Calendar.ts +30 -0
  63. package/src/input/Checkbox.ts +26 -0
  64. package/src/input/Chip.ts +23 -0
  65. package/src/input/ColorPicker.ts +30 -0
  66. package/src/input/Combobox.ts +28 -0
  67. package/src/input/CopyButton.ts +25 -0
  68. package/src/input/DatePicker.ts +30 -0
  69. package/src/input/FileUpload.ts +29 -0
  70. package/src/input/Form.ts +25 -0
  71. package/src/input/IconButton.ts +28 -0
  72. package/src/input/Input.ts +31 -0
  73. package/src/input/MultiSelect.ts +30 -0
  74. package/src/input/NumberInput.ts +28 -0
  75. package/src/input/OtpInput.ts +24 -0
  76. package/src/input/PinInput.ts +29 -0
  77. package/src/input/Radio.ts +18 -0
  78. package/src/input/RadioGroup.ts +25 -0
  79. package/src/input/Rating.ts +24 -0
  80. package/src/input/Search.ts +34 -0
  81. package/src/input/SegmentedControl.ts +25 -0
  82. package/src/input/Select.ts +29 -0
  83. package/src/input/Slider.ts +28 -0
  84. package/src/input/SortableList.ts +26 -0
  85. package/src/input/Suggestion.ts +17 -0
  86. package/src/input/Textarea.ts +31 -0
  87. package/src/input/ThemeToggle.ts +25 -0
  88. package/src/input/Toggle.ts +24 -0
  89. package/src/input/index.ts +86 -0
  90. package/src/layout/AppShell.ts +20 -0
  91. package/src/layout/AuthShell.ts +17 -0
  92. package/src/layout/Container.ts +17 -0
  93. package/src/layout/DashboardGrid.ts +19 -0
  94. package/src/layout/PageHeader.ts +18 -0
  95. package/src/layout/PageLayout.ts +19 -0
  96. package/src/layout/Resizable.ts +25 -0
  97. package/src/layout/Section.ts +17 -0
  98. package/src/layout/SettingsLayout.ts +17 -0
  99. package/src/layout/SplitPane.ts +24 -0
  100. package/src/layout/StatusBar.ts +17 -0
  101. package/src/layout/Toolbar.ts +19 -0
  102. package/src/layout/index.ts +38 -0
  103. package/src/navigation/Breadcrumb.ts +21 -0
  104. package/src/navigation/BreadcrumbItem.ts +17 -0
  105. package/src/navigation/Drawer.ts +25 -0
  106. package/src/navigation/Footer.ts +18 -0
  107. package/src/navigation/Link.ts +20 -0
  108. package/src/navigation/NavItem.ts +19 -0
  109. package/src/navigation/NavigationMenu.ts +25 -0
  110. package/src/navigation/Pagination.ts +25 -0
  111. package/src/navigation/ScrollSpy.ts +24 -0
  112. package/src/navigation/ScrollToTop.ts +25 -0
  113. package/src/navigation/Sidebar.ts +21 -0
  114. package/src/navigation/SidebarLink.ts +18 -0
  115. package/src/navigation/SidebarSection.ts +23 -0
  116. package/src/navigation/SpyLink.ts +17 -0
  117. package/src/navigation/Tab.ts +17 -0
  118. package/src/navigation/Tabs.ts +23 -0
  119. package/src/navigation/TopBar.ts +21 -0
  120. package/src/navigation/TreeItem.ts +19 -0
  121. package/src/navigation/TreeView.ts +24 -0
  122. package/src/navigation/index.ts +59 -0
  123. package/src/shared/MenuDivider.ts +16 -0
  124. package/src/shared/MenuItem.ts +19 -0
  125. package/src/shared/Option.ts +19 -0
  126. package/src/shared/index.ts +8 -0
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import React from 'react';
4
+ import { createComponent, type EventName } from '@lit/react';
5
+ import { ArcSpyLink } from '@arclux/arc-ui';
6
+
7
+ export interface SpyLinkProps {
8
+ target?: string;
9
+ className?: string;
10
+ children?: React.ReactNode;
11
+ }
12
+
13
+ export const SpyLink = createComponent({
14
+ tagName: 'arc-spy-link',
15
+ elementClass: ArcSpyLink,
16
+ react: React,
17
+ });
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import React from 'react';
4
+ import { createComponent, type EventName } from '@lit/react';
5
+ import { ArcTab } from '@arclux/arc-ui';
6
+
7
+ export interface TabProps {
8
+ label?: string;
9
+ className?: string;
10
+ children?: React.ReactNode;
11
+ }
12
+
13
+ export const Tab = createComponent({
14
+ tagName: 'arc-tab',
15
+ elementClass: ArcTab,
16
+ react: React,
17
+ });
@@ -0,0 +1,23 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import React from 'react';
4
+ import { createComponent, type EventName } from '@lit/react';
5
+ import { ArcTabs } from '@arclux/arc-ui';
6
+
7
+ export interface TabsProps {
8
+ items?: unknown[];
9
+ selected?: number;
10
+ _tabs?: string;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ onArcChange?: (e: CustomEvent) => void;
14
+ }
15
+
16
+ export const Tabs = createComponent({
17
+ tagName: 'arc-tabs',
18
+ elementClass: ArcTabs,
19
+ react: React,
20
+ events: {
21
+ onArcChange: 'arc-change' as EventName<CustomEvent>,
22
+ },
23
+ });
@@ -0,0 +1,21 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import React from 'react';
4
+ import { createComponent, type EventName } from '@lit/react';
5
+ import { ArcTopBar } from '@arclux/arc-ui';
6
+
7
+ export interface TopBarProps {
8
+ heading?: string;
9
+ fixed?: boolean;
10
+ menuOpen?: boolean;
11
+ mobileMenu?: string;
12
+ menuPosition?: string;
13
+ className?: string;
14
+ children?: React.ReactNode;
15
+ }
16
+
17
+ export const TopBar = createComponent({
18
+ tagName: 'arc-top-bar',
19
+ elementClass: ArcTopBar,
20
+ react: React,
21
+ });
@@ -0,0 +1,19 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import React from 'react';
4
+ import { createComponent, type EventName } from '@lit/react';
5
+ import { ArcTreeItem } from '@arclux/arc-ui';
6
+
7
+ export interface TreeItemProps {
8
+ label?: string;
9
+ icon?: string;
10
+ expanded?: boolean;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ }
14
+
15
+ export const TreeItem = createComponent({
16
+ tagName: 'arc-tree-item',
17
+ elementClass: ArcTreeItem,
18
+ react: React,
19
+ });
@@ -0,0 +1,24 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import React from 'react';
4
+ import { createComponent, type EventName } from '@lit/react';
5
+ import { ArcTreeView } from '@arclux/arc-ui';
6
+
7
+ export interface TreeViewProps {
8
+ _items?: string;
9
+ _selected?: string;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ onArcToggle?: (e: CustomEvent) => void;
13
+ onArcSelect?: (e: CustomEvent) => void;
14
+ }
15
+
16
+ export const TreeView = createComponent({
17
+ tagName: 'arc-tree-view',
18
+ elementClass: ArcTreeView,
19
+ react: React,
20
+ events: {
21
+ onArcToggle: 'arc-toggle' as EventName<CustomEvent>,
22
+ onArcSelect: 'arc-select' as EventName<CustomEvent>,
23
+ },
24
+ });
@@ -0,0 +1,59 @@
1
+ // ARC UI React — Navigation tier
2
+ // Navigation menus, sidebars, breadcrumbs, tabs, and links
3
+
4
+ export { Breadcrumb } from './Breadcrumb.js';
5
+ export type { BreadcrumbProps } from './Breadcrumb.js';
6
+
7
+ export { BreadcrumbItem } from './BreadcrumbItem.js';
8
+ export type { BreadcrumbItemProps } from './BreadcrumbItem.js';
9
+
10
+ export { Drawer } from './Drawer.js';
11
+ export type { DrawerProps } from './Drawer.js';
12
+
13
+ export { Footer } from './Footer.js';
14
+ export type { FooterProps } from './Footer.js';
15
+
16
+ export { Link } from './Link.js';
17
+ export type { LinkProps } from './Link.js';
18
+
19
+ export { NavigationMenu } from './NavigationMenu.js';
20
+ export type { NavigationMenuProps } from './NavigationMenu.js';
21
+
22
+ export { NavItem } from './NavItem.js';
23
+ export type { NavItemProps } from './NavItem.js';
24
+
25
+ export { Pagination } from './Pagination.js';
26
+ export type { PaginationProps } from './Pagination.js';
27
+
28
+ export { ScrollSpy } from './ScrollSpy.js';
29
+ export type { ScrollSpyProps } from './ScrollSpy.js';
30
+
31
+ export { ScrollToTop } from './ScrollToTop.js';
32
+ export type { ScrollToTopProps } from './ScrollToTop.js';
33
+
34
+ export { Sidebar } from './Sidebar.js';
35
+ export type { SidebarProps } from './Sidebar.js';
36
+
37
+ export { SidebarLink } from './SidebarLink.js';
38
+ export type { SidebarLinkProps } from './SidebarLink.js';
39
+
40
+ export { SidebarSection } from './SidebarSection.js';
41
+ export type { SidebarSectionProps } from './SidebarSection.js';
42
+
43
+ export { SpyLink } from './SpyLink.js';
44
+ export type { SpyLinkProps } from './SpyLink.js';
45
+
46
+ export { Tab } from './Tab.js';
47
+ export type { TabProps } from './Tab.js';
48
+
49
+ export { Tabs } from './Tabs.js';
50
+ export type { TabsProps } from './Tabs.js';
51
+
52
+ export { TopBar } from './TopBar.js';
53
+ export type { TopBarProps } from './TopBar.js';
54
+
55
+ export { TreeItem } from './TreeItem.js';
56
+ export type { TreeItemProps } from './TreeItem.js';
57
+
58
+ export { TreeView } from './TreeView.js';
59
+ export type { TreeViewProps } from './TreeView.js';
@@ -0,0 +1,16 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import React from 'react';
4
+ import { createComponent, type EventName } from '@lit/react';
5
+ import { ArcMenuDivider } from '@arclux/arc-ui';
6
+
7
+ export interface MenuDividerProps {
8
+ className?: string;
9
+ children?: React.ReactNode;
10
+ }
11
+
12
+ export const MenuDivider = createComponent({
13
+ tagName: 'arc-menu-divider',
14
+ elementClass: ArcMenuDivider,
15
+ react: React,
16
+ });
@@ -0,0 +1,19 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import React from 'react';
4
+ import { createComponent, type EventName } from '@lit/react';
5
+ import { ArcMenuItem } from '@arclux/arc-ui';
6
+
7
+ export interface MenuItemProps {
8
+ shortcut?: string;
9
+ disabled?: boolean;
10
+ icon?: string;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ }
14
+
15
+ export const MenuItem = createComponent({
16
+ tagName: 'arc-menu-item',
17
+ elementClass: ArcMenuItem,
18
+ react: React,
19
+ });
@@ -0,0 +1,19 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import React from 'react';
4
+ import { createComponent, type EventName } from '@lit/react';
5
+ import { ArcOption } from '@arclux/arc-ui';
6
+
7
+ export interface OptionProps {
8
+ value?: string;
9
+ disabled?: boolean;
10
+ selected?: boolean;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ }
14
+
15
+ export const Option = createComponent({
16
+ tagName: 'arc-option',
17
+ elementClass: ArcOption,
18
+ react: React,
19
+ });
@@ -0,0 +1,8 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ export { Option } from './Option.js';
4
+ export type { OptionProps } from './Option.js';
5
+ export { MenuItem } from './MenuItem.js';
6
+ export type { MenuItemProps } from './MenuItem.js';
7
+ export { MenuDivider } from './MenuDivider.js';
8
+ export type { MenuDividerProps } from './MenuDivider.js';