@arclux/arc-ui-react 1.11.0 → 2.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/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@arclux/arc-ui-react",
3
- "version": "1.11.0",
3
+ "version": "2.0.0",
4
4
  "description": "React wrappers for ARC UI Web Components.",
5
+ "sideEffects": false,
5
6
  "type": "module",
6
7
  "main": "src/index.ts",
7
8
  "module": "src/index.ts",
@@ -39,14 +40,13 @@
39
40
  "files": [
40
41
  "src/"
41
42
  ],
42
- "sideEffects": false,
43
43
  "peerDependencies": {
44
44
  "react": ">=18.0.0",
45
45
  "react-dom": ">=18.0.0"
46
46
  },
47
47
  "dependencies": {
48
48
  "@lit/react": "^1.0.8",
49
- "@arclux/arc-ui": "1.11.0"
49
+ "@arclux/arc-ui": "2.0.0"
50
50
  },
51
51
  "license": "MIT",
52
52
  "keywords": [
@@ -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 { ArcComparison } from '@arclux/arc-ui';
6
+
7
+ export interface ComparisonProps {
8
+ features?: string;
9
+ _columns?: string;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ }
13
+
14
+ export const Comparison = createComponent({
15
+ tagName: 'arc-comparison',
16
+ elementClass: ArcComparison,
17
+ react: React,
18
+ });
@@ -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 { ArcComparisonColumn } from '@arclux/arc-ui';
6
+
7
+ export interface ComparisonColumnProps {
8
+ heading?: string;
9
+ highlight?: boolean;
10
+ values?: string;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ }
14
+
15
+ export const ComparisonColumn = createComponent({
16
+ tagName: 'arc-comparison-column',
17
+ elementClass: ArcComparisonColumn,
18
+ react: React,
19
+ });
@@ -0,0 +1,29 @@
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 { ArcCountdownTimer } from '@arclux/arc-ui';
6
+
7
+ export interface CountdownTimerProps {
8
+ target?: string;
9
+ label?: string;
10
+ expired?: string;
11
+ hideZeroSegments?: boolean;
12
+ _days?: string;
13
+ _hours?: string;
14
+ _minutes?: string;
15
+ _seconds?: string;
16
+ _expired?: string;
17
+ className?: string;
18
+ children?: React.ReactNode;
19
+ onArcExpired?: (e: CustomEvent) => void;
20
+ }
21
+
22
+ export const CountdownTimer = createComponent({
23
+ tagName: 'arc-countdown-timer',
24
+ elementClass: ArcCountdownTimer,
25
+ react: React,
26
+ events: {
27
+ onArcExpired: 'arc-expired' as EventName<CustomEvent>,
28
+ },
29
+ });
@@ -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 { ArcDescriptionItem } from '@arclux/arc-ui';
6
+
7
+ export interface DescriptionItemProps {
8
+ term?: string;
9
+ className?: string;
10
+ children?: React.ReactNode;
11
+ }
12
+
13
+ export const DescriptionItem = createComponent({
14
+ tagName: 'arc-description-item',
15
+ elementClass: ArcDescriptionItem,
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 { ArcDescriptionList } from '@arclux/arc-ui';
6
+
7
+ export interface DescriptionListProps {
8
+ columns?: number;
9
+ dividers?: boolean;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ }
13
+
14
+ export const DescriptionList = createComponent({
15
+ tagName: 'arc-description-list',
16
+ elementClass: ArcDescriptionList,
17
+ react: React,
18
+ });
@@ -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 { ArcDiff } from '@arclux/arc-ui';
6
+
7
+ export interface DiffProps {
8
+ before?: string;
9
+ after?: string;
10
+ mode?: 'side-by-side';
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ }
14
+
15
+ export const Diff = createComponent({
16
+ tagName: 'arc-diff',
17
+ elementClass: ArcDiff,
18
+ react: React,
19
+ });
@@ -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 { ArcKeyValue } from '@arclux/arc-ui';
6
+
7
+ export interface KeyValueProps {
8
+ layout?: 'horizontal' | 'stacked';
9
+ dividers?: boolean;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ }
13
+
14
+ export const KeyValue = createComponent({
15
+ tagName: 'arc-key-value',
16
+ elementClass: ArcKeyValue,
17
+ react: React,
18
+ });
@@ -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 { ArcKvPair } from '@arclux/arc-ui';
6
+
7
+ export interface KvPairProps {
8
+ label?: string;
9
+ className?: string;
10
+ children?: React.ReactNode;
11
+ }
12
+
13
+ export const KvPair = createComponent({
14
+ tagName: 'arc-kv-pair',
15
+ elementClass: ArcKvPair,
16
+ react: React,
17
+ });
package/src/data/List.ts CHANGED
@@ -14,7 +14,7 @@ export interface ListProps {
14
14
  className?: string;
15
15
  children?: React.ReactNode;
16
16
  onArcChange?: (e: CustomEvent) => void;
17
- onArcItemClick?: (e: CustomEvent) => void;
17
+ onArcItemSelect?: (e: CustomEvent) => void;
18
18
  }
19
19
 
20
20
  export const List = createComponent({
@@ -23,6 +23,6 @@ export const List = createComponent({
23
23
  react: React,
24
24
  events: {
25
25
  onArcChange: 'arc-change' as EventName<CustomEvent>,
26
- onArcItemClick: 'arc-item-click' as EventName<CustomEvent>,
26
+ onArcItemSelect: 'arc-item-select' as EventName<CustomEvent>,
27
27
  },
28
28
  });
@@ -14,7 +14,7 @@ export interface ListItemProps {
14
14
  _hasDescription?: string;
15
15
  className?: string;
16
16
  children?: React.ReactNode;
17
- onArcItemClick?: (e: CustomEvent) => void;
17
+ onArcItemSelect?: (e: CustomEvent) => void;
18
18
  }
19
19
 
20
20
  export const ListItem = createComponent({
@@ -22,6 +22,6 @@ export const ListItem = createComponent({
22
22
  elementClass: ArcListItem,
23
23
  react: React,
24
24
  events: {
25
- onArcItemClick: 'arc-item-click' as EventName<CustomEvent>,
25
+ onArcItemSelect: 'arc-item-select' as EventName<CustomEvent>,
26
26
  },
27
27
  });
@@ -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 { ArcSparkline } from '@arclux/arc-ui';
6
+
7
+ export interface SparklineProps {
8
+ data?: string;
9
+ type?: string;
10
+ color?: string;
11
+ width?: number;
12
+ height?: number;
13
+ fill?: boolean;
14
+ className?: string;
15
+ children?: React.ReactNode;
16
+ }
17
+
18
+ export const Sparkline = createComponent({
19
+ tagName: 'arc-sparkline',
20
+ elementClass: ArcSparkline,
21
+ react: React,
22
+ });
package/src/index.ts CHANGED
@@ -478,3 +478,54 @@ export type { SnackbarProps } from './feedback/Snackbar.js';
478
478
 
479
479
  export { Spotlight } from './feedback/Spotlight.js';
480
480
  export type { SpotlightProps } from './feedback/Spotlight.js';
481
+
482
+ export { ComparisonColumn } from './data/ComparisonColumn.js';
483
+ export type { ComparisonColumnProps } from './data/ComparisonColumn.js';
484
+
485
+ export { CountdownTimer } from './data/CountdownTimer.js';
486
+ export type { CountdownTimerProps } from './data/CountdownTimer.js';
487
+
488
+ export { DescriptionItem } from './data/DescriptionItem.js';
489
+ export type { DescriptionItemProps } from './data/DescriptionItem.js';
490
+
491
+ export { Diff } from './data/Diff.js';
492
+ export type { DiffProps } from './data/Diff.js';
493
+
494
+ export { KvPair } from './data/KvPair.js';
495
+ export type { KvPairProps } from './data/KvPair.js';
496
+
497
+ export { Sparkline } from './data/Sparkline.js';
498
+ export type { SparklineProps } from './data/Sparkline.js';
499
+
500
+ export { Blockquote } from './typography/Blockquote.js';
501
+ export type { BlockquoteProps } from './typography/Blockquote.js';
502
+
503
+ export { GradientText } from './typography/GradientText.js';
504
+ export type { GradientTextProps } from './typography/GradientText.js';
505
+
506
+ export { NumberFormat } from './typography/NumberFormat.js';
507
+ export type { NumberFormatProps } from './typography/NumberFormat.js';
508
+
509
+ export { Prose } from './typography/Prose.js';
510
+ export type { ProseProps } from './typography/Prose.js';
511
+
512
+ export { TimeAgo } from './typography/TimeAgo.js';
513
+ export type { TimeAgoProps } from './typography/TimeAgo.js';
514
+
515
+ export { Typewriter } from './typography/Typewriter.js';
516
+ export type { TypewriterProps } from './typography/Typewriter.js';
517
+
518
+ export { Comparison } from './data/Comparison.js';
519
+ export type { ComparisonProps } from './data/Comparison.js';
520
+
521
+ export { DescriptionList } from './data/DescriptionList.js';
522
+ export type { DescriptionListProps } from './data/DescriptionList.js';
523
+
524
+ export { KeyValue } from './data/KeyValue.js';
525
+ export type { KeyValueProps } from './data/KeyValue.js';
526
+
527
+ export { RangeSlider } from './input/RangeSlider.js';
528
+ export type { RangeSliderProps } from './input/RangeSlider.js';
529
+
530
+ export { TimePicker } from './input/TimePicker.js';
531
+ export type { TimePickerProps } from './input/TimePicker.js';
@@ -10,7 +10,7 @@ export interface HotkeyProps {
10
10
  global?: boolean;
11
11
  className?: string;
12
12
  children?: React.ReactNode;
13
- onArcTrigger?: (e: CustomEvent) => void;
13
+ onArcHotkeyTrigger?: (e: CustomEvent) => void;
14
14
  }
15
15
 
16
16
  export const Hotkey = createComponent({
@@ -18,6 +18,6 @@ export const Hotkey = createComponent({
18
18
  elementClass: ArcHotkey,
19
19
  react: React,
20
20
  events: {
21
- onArcTrigger: 'arc-trigger' as EventName<CustomEvent>,
21
+ onArcHotkeyTrigger: 'arc-hotkey-trigger' as EventName<CustomEvent>,
22
22
  },
23
23
  });
@@ -0,0 +1,31 @@
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 { ArcRangeSlider } from '@arclux/arc-ui';
6
+
7
+ export interface RangeSliderProps {
8
+ min?: number;
9
+ max?: number;
10
+ step?: number;
11
+ low?: number;
12
+ high?: number;
13
+ disabled?: boolean;
14
+ label?: string;
15
+ showValues?: boolean;
16
+ _dragging?: string;
17
+ className?: string;
18
+ children?: React.ReactNode;
19
+ onArcInput?: (e: CustomEvent) => void;
20
+ onArcChange?: (e: CustomEvent) => void;
21
+ }
22
+
23
+ export const RangeSlider = createComponent({
24
+ tagName: 'arc-range-slider',
25
+ elementClass: ArcRangeSlider,
26
+ react: React,
27
+ events: {
28
+ onArcInput: 'arc-input' as EventName<CustomEvent>,
29
+ onArcChange: 'arc-change' as EventName<CustomEvent>,
30
+ },
31
+ });
@@ -0,0 +1,35 @@
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 { ArcTimePicker } from '@arclux/arc-ui';
6
+
7
+ export interface TimePickerProps {
8
+ value?: string;
9
+ min?: string;
10
+ max?: string;
11
+ step?: number;
12
+ format?: string;
13
+ placeholder?: string;
14
+ disabled?: boolean;
15
+ label?: string;
16
+ _open?: string;
17
+ _selectedHour?: string;
18
+ _selectedMinute?: string;
19
+ _selectedPeriod?: string;
20
+ _focusedColumn?: string;
21
+ className?: string;
22
+ children?: React.ReactNode;
23
+ onArcChange?: (e: CustomEvent) => void;
24
+ onClick?: (e: Event) => void;
25
+ }
26
+
27
+ export const TimePicker = createComponent({
28
+ tagName: 'arc-time-picker',
29
+ elementClass: ArcTimePicker,
30
+ react: React,
31
+ events: {
32
+ onArcChange: 'arc-change' as EventName<CustomEvent>,
33
+ onClick: 'click' as EventName<Event>,
34
+ },
35
+ });
@@ -102,3 +102,9 @@ export type { SwitchGroupProps } from './SwitchGroup.js';
102
102
 
103
103
  export { Hotkey } from './Hotkey.js';
104
104
  export type { HotkeyProps } from './Hotkey.js';
105
+
106
+ export { RangeSlider } from './RangeSlider.js';
107
+ export type { RangeSliderProps } from './RangeSlider.js';
108
+
109
+ export { TimePicker } from './TimePicker.js';
110
+ export type { TimePickerProps } from './TimePicker.js';
@@ -7,6 +7,7 @@ import { ArcSidebarLink } from '@arclux/arc-ui';
7
7
  export interface SidebarLinkProps {
8
8
  href?: string;
9
9
  active?: boolean;
10
+ level?: number;
10
11
  className?: string;
11
12
  children?: React.ReactNode;
12
13
  }
@@ -6,6 +6,7 @@ import { ArcSpyLink } from '@arclux/arc-ui';
6
6
 
7
7
  export interface SpyLinkProps {
8
8
  target?: string;
9
+ level?: number;
9
10
  className?: string;
10
11
  children?: React.ReactNode;
11
12
  }
@@ -8,6 +8,7 @@ export interface TabsProps {
8
8
  selected?: number;
9
9
  align?: 'center' | 'end';
10
10
  variant?: 'pills';
11
+ orientation?: 'vertical';
11
12
  _tabs?: string;
12
13
  className?: string;
13
14
  children?: React.ReactNode;
@@ -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 { ArcBlockquote } from '@arclux/arc-ui';
6
+
7
+ export interface BlockquoteProps {
8
+ cite?: string;
9
+ variant?: string;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ }
13
+
14
+ export const Blockquote = createComponent({
15
+ tagName: 'arc-blockquote',
16
+ elementClass: ArcBlockquote,
17
+ react: React,
18
+ });
@@ -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 { ArcGradientText } from '@arclux/arc-ui';
6
+
7
+ export interface GradientTextProps {
8
+ variant?: 'accent' | 'display' | 'sunset' | 'ocean';
9
+ gradient?: string;
10
+ animate?: boolean;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ }
14
+
15
+ export const GradientText = createComponent({
16
+ tagName: 'arc-gradient-text',
17
+ elementClass: ArcGradientText,
18
+ react: React,
19
+ });
@@ -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 { ArcNumberFormat } from '@arclux/arc-ui';
6
+
7
+ export interface NumberFormatProps {
8
+ value?: number;
9
+ type?: string;
10
+ locale?: string;
11
+ currency?: string;
12
+ decimals?: number;
13
+ notation?: string;
14
+ className?: string;
15
+ children?: React.ReactNode;
16
+ }
17
+
18
+ export const NumberFormat = createComponent({
19
+ tagName: 'arc-number-format',
20
+ elementClass: ArcNumberFormat,
21
+ react: React,
22
+ });
@@ -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 { ArcProse } from '@arclux/arc-ui';
6
+
7
+ export interface ProseProps {
8
+ size?: 'sm' | 'md' | 'lg';
9
+ className?: string;
10
+ children?: React.ReactNode;
11
+ }
12
+
13
+ export const Prose = createComponent({
14
+ tagName: 'arc-prose',
15
+ elementClass: ArcProse,
16
+ react: React,
17
+ });
@@ -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 { ArcTimeAgo } from '@arclux/arc-ui';
6
+
7
+ export interface TimeAgoProps {
8
+ datetime?: string;
9
+ live?: boolean;
10
+ locale?: string;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ }
14
+
15
+ export const TimeAgo = createComponent({
16
+ tagName: 'arc-time-ago',
17
+ elementClass: ArcTimeAgo,
18
+ react: React,
19
+ });
@@ -0,0 +1,27 @@
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 { ArcTypewriter } from '@arclux/arc-ui';
6
+
7
+ export interface TypewriterProps {
8
+ text?: string;
9
+ speed?: number;
10
+ delay?: number;
11
+ cursor?: boolean;
12
+ loop?: boolean;
13
+ _displayText?: string;
14
+ _complete?: string;
15
+ className?: string;
16
+ children?: React.ReactNode;
17
+ onArcComplete?: (e: CustomEvent) => void;
18
+ }
19
+
20
+ export const Typewriter = createComponent({
21
+ tagName: 'arc-typewriter',
22
+ elementClass: ArcTypewriter,
23
+ react: React,
24
+ events: {
25
+ onArcComplete: 'arc-complete' as EventName<CustomEvent>,
26
+ },
27
+ });