@arclux/arc-ui-react 1.9.2 → 1.10.1

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 (77) hide show
  1. package/package.json +2 -2
  2. package/src/content/Avatar.ts +1 -0
  3. package/src/content/DataTable.ts +4 -0
  4. package/src/content/Image.ts +29 -0
  5. package/src/content/List.ts +28 -0
  6. package/src/content/ListItem.ts +27 -0
  7. package/src/content/ScrollIndicator.ts +21 -0
  8. package/src/content/Separator.ts +19 -0
  9. package/src/content/VirtualList.ts +21 -0
  10. package/src/content/index.ts +15 -0
  11. package/src/data/AnimatedNumber.ts +23 -0
  12. package/src/data/Badge.ts +19 -0
  13. package/src/data/DataTable.ts +35 -0
  14. package/src/data/List.ts +28 -0
  15. package/src/data/ListItem.ts +27 -0
  16. package/src/data/Meter.ts +23 -0
  17. package/src/data/Stat.ts +20 -0
  18. package/src/data/Step.ts +17 -0
  19. package/src/data/Stepper.ts +18 -0
  20. package/src/data/Table.ts +20 -0
  21. package/src/data/Tag.ts +25 -0
  22. package/src/data/Timeline.ts +17 -0
  23. package/src/data/TimelineItem.ts +18 -0
  24. package/src/data/ValueCard.ts +19 -0
  25. package/src/feedback/Announcement.ts +18 -0
  26. package/src/feedback/Banner.ts +23 -0
  27. package/src/feedback/CommandPalette.ts +0 -1
  28. package/src/feedback/Confirm.ts +26 -0
  29. package/src/feedback/ConnectionStatus.ts +24 -0
  30. package/src/feedback/Dialog.ts +1 -3
  31. package/src/feedback/DropdownMenu.ts +0 -1
  32. package/src/feedback/GuidedTour.ts +27 -0
  33. package/src/feedback/HoverCard.ts +1 -1
  34. package/src/feedback/InlineMessage.ts +17 -0
  35. package/src/feedback/LoadingOverlay.ts +19 -0
  36. package/src/feedback/Popover.ts +1 -1
  37. package/src/feedback/ProgressToast.ts +24 -0
  38. package/src/feedback/Sheet.ts +0 -2
  39. package/src/feedback/Snackbar.ts +25 -0
  40. package/src/feedback/Spotlight.ts +23 -0
  41. package/src/feedback/index.ts +30 -0
  42. package/src/index.ts +120 -0
  43. package/src/input/ButtonGroup.ts +19 -0
  44. package/src/input/Fieldset.ts +23 -0
  45. package/src/input/Hotkey.ts +23 -0
  46. package/src/input/InputGroup.ts +19 -0
  47. package/src/input/Label.ts +22 -0
  48. package/src/input/SwitchGroup.ts +20 -0
  49. package/src/input/index.ts +18 -0
  50. package/src/layout/AspectGrid.ts +19 -0
  51. package/src/layout/Center.ts +19 -0
  52. package/src/layout/Cluster.ts +19 -0
  53. package/src/layout/Dock.ts +20 -0
  54. package/src/layout/FloatBar.ts +18 -0
  55. package/src/layout/Inset.ts +18 -0
  56. package/src/layout/Masonry.ts +18 -0
  57. package/src/layout/ResponsiveSwitcher.ts +18 -0
  58. package/src/layout/Sticky.ts +22 -0
  59. package/src/layout/index.ts +27 -0
  60. package/src/navigation/AnchorNav.ts +23 -0
  61. package/src/navigation/BottomNav.ts +22 -0
  62. package/src/navigation/BreadcrumbMenu.ts +22 -0
  63. package/src/navigation/CommandBar.ts +25 -0
  64. package/src/navigation/Drawer.ts +0 -2
  65. package/src/navigation/PageIndicator.ts +23 -0
  66. package/src/navigation/Rail.ts +23 -0
  67. package/src/navigation/SkipLink.ts +17 -0
  68. package/src/navigation/SpeedDial.ts +26 -0
  69. package/src/navigation/StepperNav.ts +25 -0
  70. package/src/navigation/Tabs.ts +0 -1
  71. package/src/navigation/index.ts +27 -0
  72. package/src/typography/CodeBlock.ts +21 -0
  73. package/src/typography/Highlight.ts +19 -0
  74. package/src/typography/Kbd.ts +16 -0
  75. package/src/typography/Markdown.ts +17 -0
  76. package/src/typography/Text.ts +18 -0
  77. package/src/typography/Truncate.ts +22 -0
@@ -0,0 +1,22 @@
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 { ArcSticky } from '@arclux/arc-ui';
6
+
7
+ export interface StickyProps {
8
+ offset?: string;
9
+ stuck?: boolean;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ onArcStuck?: (e: CustomEvent) => void;
13
+ }
14
+
15
+ export const Sticky = createComponent({
16
+ tagName: 'arc-sticky',
17
+ elementClass: ArcSticky,
18
+ react: React,
19
+ events: {
20
+ onArcStuck: 'arc-stuck' as EventName<CustomEvent>,
21
+ },
22
+ });
@@ -36,3 +36,30 @@ export type { StatusBarProps } from './StatusBar.js';
36
36
 
37
37
  export { Toolbar } from './Toolbar.js';
38
38
  export type { ToolbarProps } from './Toolbar.js';
39
+
40
+ export { AspectGrid } from './AspectGrid.js';
41
+ export type { AspectGridProps } from './AspectGrid.js';
42
+
43
+ export { Center } from './Center.js';
44
+ export type { CenterProps } from './Center.js';
45
+
46
+ export { Cluster } from './Cluster.js';
47
+ export type { ClusterProps } from './Cluster.js';
48
+
49
+ export { Dock } from './Dock.js';
50
+ export type { DockProps } from './Dock.js';
51
+
52
+ export { FloatBar } from './FloatBar.js';
53
+ export type { FloatBarProps } from './FloatBar.js';
54
+
55
+ export { Inset } from './Inset.js';
56
+ export type { InsetProps } from './Inset.js';
57
+
58
+ export { Masonry } from './Masonry.js';
59
+ export type { MasonryProps } from './Masonry.js';
60
+
61
+ export { ResponsiveSwitcher } from './ResponsiveSwitcher.js';
62
+ export type { ResponsiveSwitcherProps } from './ResponsiveSwitcher.js';
63
+
64
+ export { Sticky } from './Sticky.js';
65
+ export type { StickyProps } from './Sticky.js';
@@ -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 { ArcAnchorNav } from '@arclux/arc-ui';
6
+
7
+ export interface AnchorNavProps {
8
+ orientation?: 'vertical';
9
+ value?: string;
10
+ items?: string;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ onArcChange?: (e: CustomEvent) => void;
14
+ }
15
+
16
+ export const AnchorNav = createComponent({
17
+ tagName: 'arc-anchor-nav',
18
+ elementClass: ArcAnchorNav,
19
+ react: React,
20
+ events: {
21
+ onArcChange: 'arc-change' as EventName<CustomEvent>,
22
+ },
23
+ });
@@ -0,0 +1,22 @@
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 { ArcBottomNav } from '@arclux/arc-ui';
6
+
7
+ export interface BottomNavProps {
8
+ items?: string;
9
+ value?: string;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ onArcChange?: (e: CustomEvent) => void;
13
+ }
14
+
15
+ export const BottomNav = createComponent({
16
+ tagName: 'arc-bottom-nav',
17
+ elementClass: ArcBottomNav,
18
+ react: React,
19
+ events: {
20
+ onArcChange: 'arc-change' as EventName<CustomEvent>,
21
+ },
22
+ });
@@ -0,0 +1,22 @@
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 { ArcBreadcrumbMenu } from '@arclux/arc-ui';
6
+
7
+ export interface BreadcrumbMenuProps {
8
+ items?: string;
9
+ _openIndex?: number;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ onArcNavigate?: (e: CustomEvent) => void;
13
+ }
14
+
15
+ export const BreadcrumbMenu = createComponent({
16
+ tagName: 'arc-breadcrumb-menu',
17
+ elementClass: ArcBreadcrumbMenu,
18
+ react: React,
19
+ events: {
20
+ onArcNavigate: 'arc-navigate' as EventName<CustomEvent>,
21
+ },
22
+ });
@@ -0,0 +1,25 @@
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 { ArcCommandBar } from '@arclux/arc-ui';
6
+
7
+ export interface CommandBarProps {
8
+ placeholder?: string;
9
+ value?: string;
10
+ icon?: string;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ onArcInput?: (e: CustomEvent) => void;
14
+ onArcSubmit?: (e: CustomEvent) => void;
15
+ }
16
+
17
+ export const CommandBar = createComponent({
18
+ tagName: 'arc-command-bar',
19
+ elementClass: ArcCommandBar,
20
+ react: React,
21
+ events: {
22
+ onArcInput: 'arc-input' as EventName<CustomEvent>,
23
+ onArcSubmit: 'arc-submit' as EventName<CustomEvent>,
24
+ },
25
+ });
@@ -11,7 +11,6 @@ export interface DrawerProps {
11
11
  className?: string;
12
12
  children?: React.ReactNode;
13
13
  onArcClose?: (e: CustomEvent) => void;
14
- onClick?: (e: Event) => void;
15
14
  }
16
15
 
17
16
  export const Drawer = createComponent({
@@ -20,6 +19,5 @@ export const Drawer = createComponent({
20
19
  react: React,
21
20
  events: {
22
21
  onArcClose: 'arc-close' as EventName<CustomEvent>,
23
- onClick: 'click' as EventName<Event>,
24
22
  },
25
23
  });
@@ -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 { ArcPageIndicator } from '@arclux/arc-ui';
6
+
7
+ export interface PageIndicatorProps {
8
+ count?: number;
9
+ value?: number;
10
+ clickable?: boolean;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ onArcChange?: (e: CustomEvent) => void;
14
+ }
15
+
16
+ export const PageIndicator = createComponent({
17
+ tagName: 'arc-page-indicator',
18
+ elementClass: ArcPageIndicator,
19
+ react: React,
20
+ events: {
21
+ onArcChange: 'arc-change' as EventName<CustomEvent>,
22
+ },
23
+ });
@@ -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 { ArcRail } from '@arclux/arc-ui';
6
+
7
+ export interface RailProps {
8
+ items?: string;
9
+ value?: string;
10
+ expanded?: boolean;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ onArcChange?: (e: CustomEvent) => void;
14
+ }
15
+
16
+ export const Rail = createComponent({
17
+ tagName: 'arc-rail',
18
+ elementClass: ArcRail,
19
+ react: React,
20
+ events: {
21
+ onArcChange: 'arc-change' as EventName<CustomEvent>,
22
+ },
23
+ });
@@ -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 { ArcSkipLink } from '@arclux/arc-ui';
6
+
7
+ export interface SkipLinkProps {
8
+ target?: string;
9
+ className?: string;
10
+ children?: React.ReactNode;
11
+ }
12
+
13
+ export const SkipLink = createComponent({
14
+ tagName: 'arc-skip-link',
15
+ elementClass: ArcSkipLink,
16
+ react: React,
17
+ });
@@ -0,0 +1,26 @@
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 { ArcSpeedDial } from '@arclux/arc-ui';
6
+
7
+ export interface SpeedDialProps {
8
+ open?: boolean;
9
+ direction?: 'down' | 'left' | 'right';
10
+ position?: 'bottom-right' | 'bottom-left';
11
+ items?: string;
12
+ className?: string;
13
+ children?: React.ReactNode;
14
+ onArcAction?: (e: CustomEvent) => void;
15
+ onArcClose?: (e: CustomEvent) => void;
16
+ }
17
+
18
+ export const SpeedDial = createComponent({
19
+ tagName: 'arc-speed-dial',
20
+ elementClass: ArcSpeedDial,
21
+ react: React,
22
+ events: {
23
+ onArcAction: 'arc-action' as EventName<CustomEvent>,
24
+ onArcClose: 'arc-close' as EventName<CustomEvent>,
25
+ },
26
+ });
@@ -0,0 +1,25 @@
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 { ArcStepperNav } from '@arclux/arc-ui';
6
+
7
+ export interface StepperNavProps {
8
+ steps?: string;
9
+ active?: number;
10
+ linear?: boolean;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ onArcChange?: (e: CustomEvent) => void;
14
+ onArcComplete?: (e: CustomEvent) => void;
15
+ }
16
+
17
+ export const StepperNav = createComponent({
18
+ tagName: 'arc-stepper-nav',
19
+ elementClass: ArcStepperNav,
20
+ react: React,
21
+ events: {
22
+ onArcChange: 'arc-change' as EventName<CustomEvent>,
23
+ onArcComplete: 'arc-complete' as EventName<CustomEvent>,
24
+ },
25
+ });
@@ -5,7 +5,6 @@ import { createComponent, type EventName } from '@lit/react';
5
5
  import { ArcTabs } from '@arclux/arc-ui';
6
6
 
7
7
  export interface TabsProps {
8
- items?: unknown[];
9
8
  selected?: number;
10
9
  align?: 'center' | 'end';
11
10
  variant?: 'pills';
@@ -57,3 +57,30 @@ export type { TreeItemProps } from './TreeItem.js';
57
57
 
58
58
  export { TreeView } from './TreeView.js';
59
59
  export type { TreeViewProps } from './TreeView.js';
60
+
61
+ export { AnchorNav } from './AnchorNav.js';
62
+ export type { AnchorNavProps } from './AnchorNav.js';
63
+
64
+ export { BottomNav } from './BottomNav.js';
65
+ export type { BottomNavProps } from './BottomNav.js';
66
+
67
+ export { BreadcrumbMenu } from './BreadcrumbMenu.js';
68
+ export type { BreadcrumbMenuProps } from './BreadcrumbMenu.js';
69
+
70
+ export { CommandBar } from './CommandBar.js';
71
+ export type { CommandBarProps } from './CommandBar.js';
72
+
73
+ export { PageIndicator } from './PageIndicator.js';
74
+ export type { PageIndicatorProps } from './PageIndicator.js';
75
+
76
+ export { Rail } from './Rail.js';
77
+ export type { RailProps } from './Rail.js';
78
+
79
+ export { SkipLink } from './SkipLink.js';
80
+ export type { SkipLinkProps } from './SkipLink.js';
81
+
82
+ export { SpeedDial } from './SpeedDial.js';
83
+ export type { SpeedDialProps } from './SpeedDial.js';
84
+
85
+ export { StepperNav } from './StepperNav.js';
86
+ export type { StepperNavProps } from './StepperNav.js';
@@ -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 { ArcCodeBlock } from '@arclux/arc-ui';
6
+
7
+ export interface CodeBlockProps {
8
+ language?: string;
9
+ filename?: string;
10
+ code?: string;
11
+ variant?: 'window' | 'basic';
12
+ _highlightedHtml?: string;
13
+ className?: string;
14
+ children?: React.ReactNode;
15
+ }
16
+
17
+ export const CodeBlock = createComponent({
18
+ tagName: 'arc-code-block',
19
+ elementClass: ArcCodeBlock,
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 { ArcHighlight } from '@arclux/arc-ui';
6
+
7
+ export interface HighlightProps {
8
+ text?: string;
9
+ query?: string;
10
+ caseSensitive?: boolean;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ }
14
+
15
+ export const Highlight = createComponent({
16
+ tagName: 'arc-highlight',
17
+ elementClass: ArcHighlight,
18
+ react: React,
19
+ });
@@ -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 { ArcKbd } from '@arclux/arc-ui';
6
+
7
+ export interface KbdProps {
8
+ className?: string;
9
+ children?: React.ReactNode;
10
+ }
11
+
12
+ export const Kbd = createComponent({
13
+ tagName: 'arc-kbd',
14
+ elementClass: ArcKbd,
15
+ react: React,
16
+ });
@@ -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 { ArcMarkdown } from '@arclux/arc-ui';
6
+
7
+ export interface MarkdownProps {
8
+ content?: string;
9
+ className?: string;
10
+ children?: React.ReactNode;
11
+ }
12
+
13
+ export const Markdown = createComponent({
14
+ tagName: 'arc-markdown',
15
+ elementClass: ArcMarkdown,
16
+ react: React,
17
+ });
@@ -0,0 +1,18 @@
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 { ArcText } from '@arclux/arc-ui';
6
+
7
+ export interface TextProps {
8
+ variant?: 'accent' | 'code';
9
+ as?: string;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ }
13
+
14
+ export const Text = createComponent({
15
+ tagName: 'arc-text',
16
+ elementClass: ArcText,
17
+ react: React,
18
+ });
@@ -0,0 +1,22 @@
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 { ArcTruncate } from '@arclux/arc-ui';
6
+
7
+ export interface TruncateProps {
8
+ lines?: number;
9
+ expanded?: boolean;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ onArcToggle?: (e: CustomEvent) => void;
13
+ }
14
+
15
+ export const Truncate = createComponent({
16
+ tagName: 'arc-truncate',
17
+ elementClass: ArcTruncate,
18
+ react: React,
19
+ events: {
20
+ onArcToggle: 'arc-toggle' as EventName<CustomEvent>,
21
+ },
22
+ });