@arclux/arc-ui-react 1.3.0 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arclux/arc-ui-react",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "React wrappers for ARC UI Web Components.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@lit/react": "^1.0.8",
49
- "@arclux/arc-ui": "1.3.0"
49
+ "@arclux/arc-ui": "1.5.0"
50
50
  },
51
51
  "license": "MIT",
52
52
  "keywords": [
@@ -5,6 +5,7 @@ import { createComponent, type EventName } from '@lit/react';
5
5
  import { ArcAccordion } from '@arclux/arc-ui';
6
6
 
7
7
  export interface AccordionProps {
8
+ multiple?: boolean;
8
9
  _items?: string;
9
10
  _openItems?: string;
10
11
  className?: string;
@@ -8,6 +8,8 @@ export interface AvatarProps {
8
8
  src?: string;
9
9
  name?: string;
10
10
  size?: 'sm' | 'md' | 'lg';
11
+ shape?: 'square' | 'rounded';
12
+ status?: 'online' | 'offline' | 'busy' | 'away';
11
13
  className?: string;
12
14
  children?: React.ReactNode;
13
15
  }
@@ -6,6 +6,7 @@ import { ArcBadge } from '@arclux/arc-ui';
6
6
 
7
7
  export interface BadgeProps {
8
8
  variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
9
+ size?: 'sm' | 'lg';
9
10
  color?: string;
10
11
  className?: string;
11
12
  children?: React.ReactNode;
@@ -5,13 +5,19 @@ import { createComponent, type EventName } from '@lit/react';
5
5
  import { ArcCallout } from '@arclux/arc-ui';
6
6
 
7
7
  export interface CalloutProps {
8
- variant?: 'info' | 'warning' | 'tip' | 'danger';
8
+ variant?: string;
9
+ dismissible?: boolean;
10
+ _dismissed?: string;
9
11
  className?: string;
10
12
  children?: React.ReactNode;
13
+ onArcDismiss?: (e: CustomEvent) => void;
11
14
  }
12
15
 
13
16
  export const Callout = createComponent({
14
17
  tagName: 'arc-callout',
15
18
  elementClass: ArcCallout,
16
19
  react: React,
20
+ events: {
21
+ onArcDismiss: 'arc-dismiss' as EventName<CustomEvent>,
22
+ },
17
23
  });
@@ -6,6 +6,8 @@ import { ArcCard } from '@arclux/arc-ui';
6
6
 
7
7
  export interface CardProps {
8
8
  href?: string;
9
+ padding?: 'none' | 'sm' | 'lg';
10
+ interactive?: boolean;
9
11
  _hasFooter?: string;
10
12
  className?: string;
11
13
  children?: React.ReactNode;
@@ -8,6 +8,7 @@ export interface DividerProps {
8
8
  variant?: 'subtle' | 'glow' | 'line-white' | 'line-primary' | 'line-gradient';
9
9
  align?: 'left' | 'right';
10
10
  vertical?: boolean;
11
+ label?: string;
11
12
  className?: string;
12
13
  children?: React.ReactNode;
13
14
  }
@@ -8,6 +8,7 @@ export interface SkeletonProps {
8
8
  variant?: 'text' | 'circle' | 'rect';
9
9
  width?: string;
10
10
  height?: string;
11
+ count?: number;
11
12
  className?: string;
12
13
  children?: React.ReactNode;
13
14
  }
@@ -7,6 +7,8 @@ import { ArcStat } from '@arclux/arc-ui';
7
7
  export interface StatProps {
8
8
  value?: string;
9
9
  label?: string;
10
+ trend?: 'up' | 'down' | 'neutral';
11
+ change?: string;
10
12
  className?: string;
11
13
  children?: React.ReactNode;
12
14
  }
@@ -6,6 +6,7 @@ import { ArcTag } from '@arclux/arc-ui';
6
6
 
7
7
  export interface TagProps {
8
8
  variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
9
+ size?: 'sm' | 'lg';
9
10
  removable?: boolean;
10
11
  disabled?: boolean;
11
12
  color?: string;
@@ -5,7 +5,8 @@ import { createComponent, type EventName } from '@lit/react';
5
5
  import { ArcAlert } from '@arclux/arc-ui';
6
6
 
7
7
  export interface AlertProps {
8
- variant?: 'info' | 'success' | 'warning' | 'error';
8
+ variant?: string;
9
+ compact?: boolean;
9
10
  dismissible?: boolean;
10
11
  heading?: string;
11
12
  className?: string;
@@ -8,6 +8,7 @@ export interface ModalProps {
8
8
  open?: boolean;
9
9
  heading?: string;
10
10
  size?: 'sm' | 'md' | 'lg';
11
+ fullscreen?: boolean;
11
12
  closable?: boolean;
12
13
  className?: string;
13
14
  children?: React.ReactNode;
@@ -9,6 +9,7 @@ export interface ProgressProps {
9
9
  variant?: string;
10
10
  size?: 'sm' | 'md' | 'lg';
11
11
  indeterminate?: boolean;
12
+ showValue?: boolean;
12
13
  label?: string;
13
14
  className?: string;
14
15
  children?: React.ReactNode;
@@ -9,6 +9,7 @@ export interface ButtonProps {
9
9
  size?: 'sm' | 'md' | 'lg';
10
10
  href?: string;
11
11
  disabled?: boolean;
12
+ loading?: boolean;
12
13
  type?: string;
13
14
  _hasPrefix?: string;
14
15
  _hasSuffix?: string;
@@ -8,6 +8,7 @@ export interface CheckboxProps {
8
8
  checked?: boolean;
9
9
  indeterminate?: boolean;
10
10
  disabled?: boolean;
11
+ size?: 'sm' | 'lg';
11
12
  label?: string;
12
13
  name?: string;
13
14
  value?: string;
@@ -12,6 +12,8 @@ export interface InputProps {
12
12
  value?: string;
13
13
  disabled?: boolean;
14
14
  required?: boolean;
15
+ error?: string;
16
+ size?: 'sm' | 'lg';
15
17
  multiline?: boolean;
16
18
  rows?: number;
17
19
  _hasPrefix?: string;
@@ -8,6 +8,7 @@ export interface RadioGroupProps {
8
8
  value?: string;
9
9
  name?: string;
10
10
  disabled?: boolean;
11
+ size?: 'sm' | 'lg';
11
12
  orientation?: 'horizontal';
12
13
  _radios?: string;
13
14
  className?: string;
@@ -10,6 +10,8 @@ export interface SelectProps {
10
10
  label?: string;
11
11
  name?: string;
12
12
  disabled?: boolean;
13
+ size?: 'sm' | 'lg';
14
+ error?: string;
13
15
  open?: boolean;
14
16
  _options?: string;
15
17
  className?: string;
@@ -13,6 +13,8 @@ export interface TextareaProps {
13
13
  disabled?: boolean;
14
14
  readonly?: boolean;
15
15
  resize?: 'none' | 'vertical' | 'horizontal' | 'both';
16
+ size?: 'sm' | 'lg';
17
+ autoResize?: boolean;
16
18
  error?: string;
17
19
  className?: string;
18
20
  children?: React.ReactNode;
@@ -7,6 +7,7 @@ import { ArcToggle } from '@arclux/arc-ui';
7
7
  export interface ToggleProps {
8
8
  checked?: boolean;
9
9
  disabled?: boolean;
10
+ size?: 'sm' | 'lg';
10
11
  label?: string;
11
12
  name?: string;
12
13
  className?: string;
@@ -6,6 +6,8 @@ import { ArcContainer } from '@arclux/arc-ui';
6
6
 
7
7
  export interface ContainerProps {
8
8
  narrow?: boolean;
9
+ size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
10
+ padding?: 'none' | 'sm' | 'lg';
9
11
  className?: string;
10
12
  children?: React.ReactNode;
11
13
  }
@@ -5,6 +5,7 @@ import { createComponent, type EventName } from '@lit/react';
5
5
  import { ArcBreadcrumb } from '@arclux/arc-ui';
6
6
 
7
7
  export interface BreadcrumbProps {
8
+ separator?: string;
8
9
  _items?: string;
9
10
  className?: string;
10
11
  children?: React.ReactNode;
@@ -7,6 +7,7 @@ import { ArcFooter } from '@arclux/arc-ui';
7
7
  export interface FooterProps {
8
8
  compact?: boolean;
9
9
  border?: boolean;
10
+ align?: 'center';
10
11
  className?: string;
11
12
  children?: React.ReactNode;
12
13
  }
@@ -7,6 +7,7 @@ import { ArcLink } from '@arclux/arc-ui';
7
7
  export interface LinkProps {
8
8
  href?: string;
9
9
  variant?: 'muted' | 'nav';
10
+ underline?: 'always' | 'never';
10
11
  active?: boolean;
11
12
  external?: boolean;
12
13
  className?: string;
@@ -8,6 +8,7 @@ export interface PaginationProps {
8
8
  total?: number;
9
9
  current?: number;
10
10
  siblings?: number;
11
+ compact?: boolean;
11
12
  className?: string;
12
13
  children?: React.ReactNode;
13
14
  onArcChange?: (e: CustomEvent) => void;
@@ -7,6 +7,7 @@ import { ArcSidebar } from '@arclux/arc-ui';
7
7
  export interface SidebarProps {
8
8
  active?: string;
9
9
  collapsed?: boolean;
10
+ position?: 'right';
10
11
  width?: string;
11
12
  glow?: boolean;
12
13
  _sections?: string;
@@ -7,6 +7,8 @@ import { ArcTabs } from '@arclux/arc-ui';
7
7
  export interface TabsProps {
8
8
  items?: unknown[];
9
9
  selected?: number;
10
+ align?: 'center' | 'end';
11
+ variant?: 'pills';
10
12
  _tabs?: string;
11
13
  className?: string;
12
14
  children?: React.ReactNode;
@@ -10,6 +10,7 @@ export interface TopBarProps {
10
10
  menuOpen?: boolean;
11
11
  mobileMenu?: string;
12
12
  menuPosition?: string;
13
+ navAlign?: string;
13
14
  className?: string;
14
15
  children?: React.ReactNode;
15
16
  }