@arclux/arc-ui-react 2.9.0 → 2.11.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 +6 -2
- package/src/content/Accordion.ts +0 -1
- package/src/content/Avatar.ts +1 -2
- package/src/content/AvatarGroup.ts +1 -1
- package/src/content/Callout.ts +1 -1
- package/src/content/Card.ts +1 -1
- package/src/content/ColorSwatch.ts +0 -1
- package/src/content/Column.ts +1 -0
- package/src/content/Divider.ts +0 -1
- package/src/content/EmptyState.ts +0 -1
- package/src/content/FeatureCard.ts +0 -1
- package/src/content/Icon.ts +0 -1
- package/src/content/Image.ts +2 -3
- package/src/content/Marquee.ts +1 -1
- package/src/content/QrCode.ts +1 -2
- package/src/content/ScrollIndicator.ts +2 -3
- package/src/content/Separator.ts +2 -3
- package/src/content/Skeleton.ts +0 -1
- package/src/content/Spinner.ts +0 -1
- package/src/content/Stack.ts +1 -1
- package/src/content/VirtualList.ts +0 -1
- package/src/data/AnimatedNumber.ts +1 -2
- package/src/data/Badge.ts +2 -2
- package/src/data/Chart.ts +4 -5
- package/src/data/Comparison.ts +0 -1
- package/src/data/CountdownTimer.ts +0 -1
- package/src/data/DataGrid.ts +3 -4
- package/src/data/DataTable.ts +2 -2
- package/src/data/Diff.ts +1 -2
- package/src/data/EventCalendar.ts +2 -3
- package/src/data/Kanban.ts +1 -2
- package/src/data/List.ts +2 -2
- package/src/data/ListItem.ts +0 -1
- package/src/data/Meter.ts +0 -1
- package/src/data/Sparkline.ts +1 -2
- package/src/data/Stat.ts +0 -1
- package/src/data/Stepper.ts +0 -1
- package/src/data/Table.ts +2 -3
- package/src/data/Tag.ts +2 -2
- package/src/data/ValueCard.ts +0 -1
- package/src/feedback/Alert.ts +1 -1
- package/src/feedback/Announcement.ts +1 -2
- package/src/feedback/Banner.ts +1 -1
- package/src/feedback/Confirm.ts +1 -1
- package/src/feedback/ConnectionStatus.ts +0 -1
- package/src/feedback/ContextMenu.ts +0 -1
- package/src/feedback/Dialog.ts +1 -2
- package/src/feedback/GuidedTour.ts +0 -1
- package/src/feedback/HoverCard.ts +1 -1
- package/src/feedback/InlineMessage.ts +1 -1
- package/src/feedback/LoadingOverlay.ts +0 -1
- package/src/feedback/NotificationPanel.ts +1 -1
- package/src/feedback/Popover.ts +1 -1
- package/src/feedback/Progress.ts +1 -2
- package/src/feedback/ProgressToast.ts +1 -2
- package/src/feedback/Snackbar.ts +0 -1
- package/src/feedback/Spotlight.ts +0 -1
- package/src/feedback/Toast.ts +0 -1
- package/src/feedback/ToastManager.ts +1 -2
- package/src/input/Button.ts +1 -2
- package/src/input/ButtonGroup.ts +2 -2
- package/src/input/Calendar.ts +0 -1
- package/src/input/Checkbox.ts +1 -2
- package/src/input/ColorPicker.ts +1 -2
- package/src/input/CopyButton.ts +0 -1
- package/src/input/DatePicker.ts +0 -1
- package/src/input/DateRangePicker.ts +1 -2
- package/src/input/Fieldset.ts +1 -1
- package/src/input/FileUpload.ts +0 -1
- package/src/input/ImageCropper.ts +0 -1
- package/src/input/Input.ts +2 -3
- package/src/input/InputGroup.ts +1 -1
- package/src/input/Label.ts +1 -1
- package/src/input/MultiSelect.ts +1 -2
- package/src/input/NumberInput.ts +0 -1
- package/src/input/OtpInput.ts +1 -2
- package/src/input/PasswordInput.ts +1 -2
- package/src/input/PinInput.ts +1 -2
- package/src/input/RadioGroup.ts +2 -2
- package/src/input/RangeSlider.ts +0 -1
- package/src/input/Rating.ts +0 -1
- package/src/input/SegmentedControl.ts +0 -1
- package/src/input/Select.ts +1 -1
- package/src/input/Slider.ts +0 -1
- package/src/input/SortableList.ts +0 -1
- package/src/input/SwitchGroup.ts +2 -2
- package/src/input/TagInput.ts +2 -3
- package/src/input/Textarea.ts +1 -2
- package/src/input/ThemeToggle.ts +1 -2
- package/src/input/TimePicker.ts +0 -1
- package/src/input/Toggle.ts +1 -2
- package/src/input/TransferList.ts +2 -3
- package/src/layout/AspectGrid.ts +1 -1
- package/src/layout/AuthShell.ts +1 -1
- package/src/layout/Container.ts +1 -1
- package/src/layout/FloatBar.ts +1 -1
- package/src/layout/PageLayout.ts +1 -1
- package/src/layout/SettingsLayout.ts +1 -1
- package/src/layout/SplitPane.ts +1 -2
- package/src/layout/StatusBar.ts +1 -1
- package/src/layout/Toolbar.ts +1 -1
- package/src/navigation/AnchorNav.ts +1 -1
- package/src/navigation/BottomNav.ts +0 -1
- package/src/navigation/Breadcrumb.ts +0 -1
- package/src/navigation/BreadcrumbMenu.ts +0 -1
- package/src/navigation/CommandBar.ts +0 -1
- package/src/navigation/Footer.ts +1 -2
- package/src/navigation/Link.ts +2 -2
- package/src/navigation/Menubar.ts +1 -2
- package/src/navigation/NavItem.ts +1 -1
- package/src/navigation/NavigationMenu.ts +0 -1
- package/src/navigation/PageIndicator.ts +0 -1
- package/src/navigation/Pagination.ts +0 -1
- package/src/navigation/ScrollSpy.ts +0 -1
- package/src/navigation/ScrollToTop.ts +0 -1
- package/src/navigation/Sidebar.ts +1 -2
- package/src/navigation/SpeedDial.ts +1 -2
- package/src/navigation/StepperNav.ts +1 -1
- package/src/navigation/Tabs.ts +3 -3
- package/src/navigation/TopBar.ts +0 -1
- package/src/typography/Blockquote.ts +1 -1
- package/src/typography/CodeBlock.ts +1 -2
- package/src/typography/GradientText.ts +1 -1
- package/src/typography/Highlight.ts +0 -1
- package/src/typography/NumberFormat.ts +2 -3
- package/src/typography/Text.ts +2 -2
- package/src/typography/TimeAgo.ts +0 -1
- package/src/typography/Typewriter.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arclux/arc-ui-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "React wrappers for ARC UI Web Components.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
"./shared": {
|
|
44
44
|
"types": "./src/shared/index.ts",
|
|
45
45
|
"default": "./src/shared/index.ts"
|
|
46
|
+
},
|
|
47
|
+
"./*": {
|
|
48
|
+
"types": "./src/*.ts",
|
|
49
|
+
"default": "./src/*.ts"
|
|
46
50
|
}
|
|
47
51
|
},
|
|
48
52
|
"files": [
|
|
@@ -54,7 +58,7 @@
|
|
|
54
58
|
},
|
|
55
59
|
"dependencies": {
|
|
56
60
|
"@lit/react": "^1.0.8",
|
|
57
|
-
"@arclux/arc-ui": "2.
|
|
61
|
+
"@arclux/arc-ui": "2.11.0"
|
|
58
62
|
},
|
|
59
63
|
"license": "MIT",
|
|
60
64
|
"keywords": [
|
package/src/content/Accordion.ts
CHANGED
package/src/content/Avatar.ts
CHANGED
|
@@ -8,10 +8,9 @@ export interface AvatarProps {
|
|
|
8
8
|
src?: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
size?: 'sm' | 'md' | 'lg';
|
|
11
|
-
shape?: 'square' | 'rounded';
|
|
11
|
+
shape?: 'circle' | 'square' | 'rounded';
|
|
12
12
|
status?: 'online' | 'offline' | 'busy' | 'away';
|
|
13
13
|
className?: string;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
export const Avatar = createComponent({
|
package/src/content/Callout.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcCallout } from '@arclux/arc-ui/callout';
|
|
6
6
|
|
|
7
7
|
export interface CalloutProps {
|
|
8
|
-
variant?:
|
|
8
|
+
variant?: 'info' | 'warning' | 'tip' | 'danger';
|
|
9
9
|
dismissible?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
children?: React.ReactNode;
|
package/src/content/Card.ts
CHANGED
package/src/content/Column.ts
CHANGED
package/src/content/Divider.ts
CHANGED
package/src/content/Icon.ts
CHANGED
package/src/content/Image.ts
CHANGED
|
@@ -8,11 +8,10 @@ export interface ImageProps {
|
|
|
8
8
|
src?: string;
|
|
9
9
|
alt?: string;
|
|
10
10
|
aspect?: '1/1' | '4/3' | '16/9' | '21/9' | '3/4' | '9/16';
|
|
11
|
-
fit?: 'contain' | 'fill' | 'none' | 'scale-down';
|
|
12
|
-
loading?:
|
|
11
|
+
fit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
12
|
+
loading?: 'lazy' | 'eager';
|
|
13
13
|
fallback?: string;
|
|
14
14
|
className?: string;
|
|
15
|
-
children?: React.ReactNode;
|
|
16
15
|
onArcLoad?: (e: CustomEvent) => void;
|
|
17
16
|
onArcError?: (e: CustomEvent) => void;
|
|
18
17
|
}
|
package/src/content/Marquee.ts
CHANGED
package/src/content/QrCode.ts
CHANGED
|
@@ -7,12 +7,11 @@ import { ArcQrCode } from '@arclux/arc-ui/qr-code';
|
|
|
7
7
|
export interface QrCodeProps {
|
|
8
8
|
value?: string;
|
|
9
9
|
size?: number;
|
|
10
|
-
level?:
|
|
10
|
+
level?: 'L' | 'M' | 'Q' | 'H';
|
|
11
11
|
label?: string;
|
|
12
12
|
quietZone?: number;
|
|
13
13
|
contrast?: boolean;
|
|
14
14
|
className?: string;
|
|
15
|
-
children?: React.ReactNode;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export const QrCode = createComponent({
|
|
@@ -6,11 +6,10 @@ import { ArcScrollIndicator } from '@arclux/arc-ui/scroll-indicator';
|
|
|
6
6
|
|
|
7
7
|
export interface ScrollIndicatorProps {
|
|
8
8
|
target?: string;
|
|
9
|
-
position?: 'bottom';
|
|
9
|
+
position?: 'top' | 'bottom';
|
|
10
10
|
size?: 'sm' | 'md' | 'lg';
|
|
11
|
-
color?: 'gradient';
|
|
11
|
+
color?: 'accent' | 'gradient';
|
|
12
12
|
className?: string;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export const ScrollIndicator = createComponent({
|
package/src/content/Separator.ts
CHANGED
|
@@ -5,11 +5,10 @@ import { createComponent } from '@lit/react';
|
|
|
5
5
|
import { ArcSeparator } from '@arclux/arc-ui/separator';
|
|
6
6
|
|
|
7
7
|
export interface SeparatorProps {
|
|
8
|
-
orientation?: 'vertical';
|
|
8
|
+
orientation?: 'horizontal' | 'vertical';
|
|
9
9
|
label?: string;
|
|
10
|
-
variant?: 'dashed' | 'dotted' | 'fade';
|
|
10
|
+
variant?: 'line' | 'dashed' | 'dotted' | 'fade';
|
|
11
11
|
className?: string;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
export const Separator = createComponent({
|
package/src/content/Skeleton.ts
CHANGED
package/src/content/Spinner.ts
CHANGED
package/src/content/Stack.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { createComponent } from '@lit/react';
|
|
|
5
5
|
import { ArcStack } from '@arclux/arc-ui/stack';
|
|
6
6
|
|
|
7
7
|
export interface StackProps {
|
|
8
|
-
direction?: '
|
|
8
|
+
direction?: 'vertical' | 'horizontal';
|
|
9
9
|
gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
10
10
|
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
11
11
|
justify?: 'start' | 'center' | 'end' | 'between' | 'around';
|
|
@@ -7,13 +7,12 @@ import { ArcAnimatedNumber } from '@arclux/arc-ui/animated-number';
|
|
|
7
7
|
export interface AnimatedNumberProps {
|
|
8
8
|
value?: number;
|
|
9
9
|
duration?: number;
|
|
10
|
-
format?:
|
|
10
|
+
format?: 'number' | 'currency' | 'percent';
|
|
11
11
|
prefix?: string;
|
|
12
12
|
suffix?: string;
|
|
13
13
|
decimals?: number;
|
|
14
14
|
locale?: string;
|
|
15
15
|
className?: string;
|
|
16
|
-
children?: React.ReactNode;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export const AnimatedNumber = createComponent({
|
package/src/data/Badge.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { createComponent } from '@lit/react';
|
|
|
5
5
|
import { ArcBadge } from '@arclux/arc-ui/badge';
|
|
6
6
|
|
|
7
7
|
export interface BadgeProps {
|
|
8
|
-
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
9
|
-
size?: 'sm' | 'lg';
|
|
8
|
+
variant?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
10
|
color?: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
children?: React.ReactNode;
|
package/src/data/Chart.ts
CHANGED
|
@@ -5,17 +5,16 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcChart } from '@arclux/arc-ui/chart';
|
|
6
6
|
|
|
7
7
|
export interface ChartProps {
|
|
8
|
-
type?:
|
|
9
|
-
series?:
|
|
10
|
-
labels?:
|
|
8
|
+
type?: 'line' | 'area' | 'bar' | 'donut';
|
|
9
|
+
series?: Array<{label:string,data:number[]}>;
|
|
10
|
+
labels?: string[];
|
|
11
11
|
stacked?: boolean;
|
|
12
12
|
hideLegend?: boolean;
|
|
13
13
|
hideAxis?: boolean;
|
|
14
14
|
height?: number;
|
|
15
|
-
valueFormat?:
|
|
15
|
+
valueFormat?: 'number' | 'percent' | 'currency';
|
|
16
16
|
currency?: string;
|
|
17
17
|
className?: string;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
18
|
onArcMarkClick?: (e: CustomEvent) => void;
|
|
20
19
|
}
|
|
21
20
|
|
package/src/data/Comparison.ts
CHANGED
package/src/data/DataGrid.ts
CHANGED
|
@@ -5,15 +5,14 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcDataGrid } from '@arclux/arc-ui/data-grid';
|
|
6
6
|
|
|
7
7
|
export interface DataGridProps {
|
|
8
|
-
columns?:
|
|
9
|
-
rows?:
|
|
10
|
-
sort?:
|
|
8
|
+
columns?: Array<{key:string,label:string,sortable?:boolean,editable?:boolean,pinned?:boolean,width?:string,align?:string}>;
|
|
9
|
+
rows?: Array<Record<string, any>>;
|
|
10
|
+
sort?: Array<{key:string,direction:'asc'|'desc'}>;
|
|
11
11
|
manualSort?: boolean;
|
|
12
12
|
selectable?: boolean;
|
|
13
13
|
virtual?: boolean;
|
|
14
14
|
rowHeight?: number;
|
|
15
15
|
className?: string;
|
|
16
|
-
children?: React.ReactNode;
|
|
17
16
|
onArcSort?: (e: CustomEvent) => void;
|
|
18
17
|
onArcSelectionChange?: (e: CustomEvent) => void;
|
|
19
18
|
onArcCellChange?: (e: CustomEvent) => void;
|
package/src/data/DataTable.ts
CHANGED
|
@@ -5,11 +5,11 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcDataTable } from '@arclux/arc-ui/data-table';
|
|
6
6
|
|
|
7
7
|
export interface DataTableProps {
|
|
8
|
-
rows?:
|
|
8
|
+
rows?: Array<Record<string, any>>;
|
|
9
9
|
sortable?: boolean;
|
|
10
10
|
selectable?: boolean;
|
|
11
11
|
sortColumn?: string;
|
|
12
|
-
sortDirection?:
|
|
12
|
+
sortDirection?: 'asc' | 'desc';
|
|
13
13
|
virtual?: boolean;
|
|
14
14
|
rowHeight?: number;
|
|
15
15
|
className?: string;
|
package/src/data/Diff.ts
CHANGED
|
@@ -7,9 +7,8 @@ import { ArcDiff } from '@arclux/arc-ui/diff';
|
|
|
7
7
|
export interface DiffProps {
|
|
8
8
|
before?: string;
|
|
9
9
|
after?: string;
|
|
10
|
-
mode?: 'side-by-side';
|
|
10
|
+
mode?: 'inline' | 'side-by-side';
|
|
11
11
|
className?: string;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
export const Diff = createComponent({
|
|
@@ -5,11 +5,10 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcEventCalendar } from '@arclux/arc-ui/event-calendar';
|
|
6
6
|
|
|
7
7
|
export interface EventCalendarProps {
|
|
8
|
-
events?:
|
|
9
|
-
view?: 'week';
|
|
8
|
+
events?: Array<{date:string,end?:string,label:string,color?:number}>;
|
|
9
|
+
view?: 'month' | 'week';
|
|
10
10
|
date?: string;
|
|
11
11
|
className?: string;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
12
|
onArcPeriodChange?: (e: CustomEvent) => void;
|
|
14
13
|
onArcDateClick?: (e: CustomEvent) => void;
|
|
15
14
|
onArcEventClick?: (e: CustomEvent) => void;
|
package/src/data/Kanban.ts
CHANGED
|
@@ -5,10 +5,9 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcKanban } from '@arclux/arc-ui/kanban';
|
|
6
6
|
|
|
7
7
|
export interface KanbanProps {
|
|
8
|
-
columns?:
|
|
8
|
+
columns?: Array<{id:string,title?:string,limit?:number,items:Array<{id:string,label:string,description?:string,tag?:string,variant?:string}>}>;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
className?: string;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
11
|
onArcCardMove?: (e: CustomEvent) => void;
|
|
13
12
|
onArcCardClick?: (e: CustomEvent) => void;
|
|
14
13
|
}
|
package/src/data/List.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcList } from '@arclux/arc-ui/list';
|
|
6
6
|
|
|
7
7
|
export interface ListProps {
|
|
8
|
-
variant?: 'bordered' | 'separated';
|
|
9
|
-
size?: 'sm' | 'lg';
|
|
8
|
+
variant?: 'default' | 'bordered' | 'separated';
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
10
|
selectable?: boolean;
|
|
11
11
|
multiple?: boolean;
|
|
12
12
|
value?: string;
|
package/src/data/ListItem.ts
CHANGED
package/src/data/Meter.ts
CHANGED
package/src/data/Sparkline.ts
CHANGED
|
@@ -6,13 +6,12 @@ import { ArcSparkline } from '@arclux/arc-ui/sparkline';
|
|
|
6
6
|
|
|
7
7
|
export interface SparklineProps {
|
|
8
8
|
data?: string;
|
|
9
|
-
type?:
|
|
9
|
+
type?: 'line' | 'bar';
|
|
10
10
|
color?: string;
|
|
11
11
|
width?: number;
|
|
12
12
|
height?: number;
|
|
13
13
|
fill?: boolean;
|
|
14
14
|
className?: string;
|
|
15
|
-
children?: React.ReactNode;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export const Sparkline = createComponent({
|
package/src/data/Stat.ts
CHANGED
package/src/data/Stepper.ts
CHANGED
package/src/data/Table.ts
CHANGED
|
@@ -5,12 +5,11 @@ import { createComponent } from '@lit/react';
|
|
|
5
5
|
import { ArcTable } from '@arclux/arc-ui/table';
|
|
6
6
|
|
|
7
7
|
export interface TableProps {
|
|
8
|
-
columns?:
|
|
9
|
-
rows?:
|
|
8
|
+
columns?: string[];
|
|
9
|
+
rows?: string[][];
|
|
10
10
|
striped?: boolean;
|
|
11
11
|
compact?: boolean;
|
|
12
12
|
className?: string;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export const Table = createComponent({
|
package/src/data/Tag.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcTag } from '@arclux/arc-ui/tag';
|
|
6
6
|
|
|
7
7
|
export interface TagProps {
|
|
8
|
-
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
9
|
-
size?: 'sm' | 'lg';
|
|
8
|
+
variant?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
10
|
removable?: boolean;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
color?: string;
|
package/src/data/ValueCard.ts
CHANGED
package/src/feedback/Alert.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcAlert } from '@arclux/arc-ui/alert';
|
|
6
6
|
|
|
7
7
|
export interface AlertProps {
|
|
8
|
-
variant?:
|
|
8
|
+
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
9
9
|
compact?: boolean;
|
|
10
10
|
dismissible?: boolean;
|
|
11
11
|
heading?: string;
|
|
@@ -5,10 +5,9 @@ import { createComponent } from '@lit/react';
|
|
|
5
5
|
import { ArcAnnouncement } from '@arclux/arc-ui/announcement';
|
|
6
6
|
|
|
7
7
|
export interface AnnouncementProps {
|
|
8
|
-
politeness?:
|
|
8
|
+
politeness?: 'polite' | 'assertive';
|
|
9
9
|
message?: string;
|
|
10
10
|
className?: string;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export const Announcement = createComponent({
|
package/src/feedback/Banner.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcBanner } from '@arclux/arc-ui/banner';
|
|
6
6
|
|
|
7
7
|
export interface BannerProps {
|
|
8
|
-
variant?:
|
|
8
|
+
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
9
9
|
dismissible?: boolean;
|
|
10
10
|
sticky?: boolean;
|
|
11
11
|
className?: string;
|
package/src/feedback/Confirm.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { ArcContextMenu } from '@arclux/arc-ui/context-menu';
|
|
|
7
7
|
export interface ContextMenuProps {
|
|
8
8
|
open?: boolean;
|
|
9
9
|
className?: string;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
10
|
onArcOpen?: (e: CustomEvent) => void;
|
|
12
11
|
onArcClose?: (e: CustomEvent) => void;
|
|
13
12
|
onArcSelect?: (e: CustomEvent) => void;
|
package/src/feedback/Dialog.ts
CHANGED
|
@@ -10,9 +10,8 @@ export interface DialogProps {
|
|
|
10
10
|
message?: string;
|
|
11
11
|
confirmLabel?: string;
|
|
12
12
|
cancelLabel?: string;
|
|
13
|
-
variant?:
|
|
13
|
+
variant?: 'default' | 'danger';
|
|
14
14
|
className?: string;
|
|
15
|
-
children?: React.ReactNode;
|
|
16
15
|
onArcConfirm?: (e: CustomEvent) => void;
|
|
17
16
|
onArcCancel?: (e: CustomEvent) => void;
|
|
18
17
|
}
|
|
@@ -7,7 +7,6 @@ import { ArcGuidedTour } from '@arclux/arc-ui/guided-tour';
|
|
|
7
7
|
export interface GuidedTourProps {
|
|
8
8
|
open?: boolean;
|
|
9
9
|
className?: string;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
10
|
onArcChange?: (e: CustomEvent) => void;
|
|
12
11
|
onArcComplete?: (e: CustomEvent) => void;
|
|
13
12
|
onArcDismiss?: (e: CustomEvent) => void;
|
|
@@ -5,7 +5,7 @@ import { createComponent, type EventName } from '@lit/react';
|
|
|
5
5
|
import { ArcHoverCard } from '@arclux/arc-ui/hover-card';
|
|
6
6
|
|
|
7
7
|
export interface HoverCardProps {
|
|
8
|
-
position?:
|
|
8
|
+
position?: 'bottom' | 'top' | 'left' | 'right';
|
|
9
9
|
openDelay?: number;
|
|
10
10
|
closeDelay?: number;
|
|
11
11
|
className?: string;
|
|
@@ -5,7 +5,7 @@ import { createComponent } from '@lit/react';
|
|
|
5
5
|
import { ArcInlineMessage } from '@arclux/arc-ui/inline-message';
|
|
6
6
|
|
|
7
7
|
export interface InlineMessageProps {
|
|
8
|
-
variant?:
|
|
8
|
+
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
9
9
|
className?: string;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
@@ -6,7 +6,7 @@ import { ArcNotificationPanel } from '@arclux/arc-ui/notification-panel';
|
|
|
6
6
|
|
|
7
7
|
export interface NotificationPanelProps {
|
|
8
8
|
open?: boolean;
|
|
9
|
-
position?: 'top-
|
|
9
|
+
position?: 'top-right' | 'top-left';
|
|
10
10
|
maxHeight?: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
children?: React.ReactNode;
|
package/src/feedback/Popover.ts
CHANGED
package/src/feedback/Progress.ts
CHANGED
|
@@ -6,13 +6,12 @@ import { ArcProgress } from '@arclux/arc-ui/progress';
|
|
|
6
6
|
|
|
7
7
|
export interface ProgressProps {
|
|
8
8
|
value?: number;
|
|
9
|
-
variant?:
|
|
9
|
+
variant?: 'bar' | 'spinner';
|
|
10
10
|
size?: 'sm' | 'md' | 'lg';
|
|
11
11
|
indeterminate?: boolean;
|
|
12
12
|
showValue?: boolean;
|
|
13
13
|
label?: string;
|
|
14
14
|
className?: string;
|
|
15
|
-
children?: React.ReactNode;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export const Progress = createComponent({
|