@arclux/arc-ui-react 2.0.1 → 2.2.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 +10 -2
- package/src/content/Accordion.ts +1 -3
- package/src/content/AccordionItem.ts +1 -1
- package/src/content/AspectRatio.ts +1 -1
- package/src/content/Avatar.ts +1 -2
- package/src/content/AvatarGroup.ts +1 -1
- package/src/content/Callout.ts +1 -2
- package/src/content/Card.ts +1 -2
- package/src/content/Carousel.ts +1 -3
- package/src/content/Collapsible.ts +1 -1
- package/src/content/ColorSwatch.ts +1 -1
- package/src/content/Column.ts +1 -1
- package/src/content/CtaBanner.ts +1 -1
- package/src/content/Divider.ts +1 -1
- package/src/content/EmptyState.ts +1 -1
- package/src/content/FeatureCard.ts +1 -1
- package/src/content/Icon.ts +1 -2
- package/src/content/Image.ts +1 -2
- package/src/content/InfiniteScroll.ts +1 -1
- package/src/content/Marquee.ts +1 -2
- package/src/content/{Stat.ts → QrCode.ts} +9 -7
- package/src/content/ScrollArea.ts +1 -1
- package/src/content/ScrollIndicator.ts +1 -2
- package/src/content/Separator.ts +1 -1
- package/src/content/Skeleton.ts +1 -1
- package/src/content/Spinner.ts +1 -1
- package/src/content/Stack.ts +1 -1
- package/src/content/VirtualList.ts +1 -3
- package/src/content/index.ts +18 -82
- package/src/data/AnimatedNumber.ts +1 -1
- package/src/data/Badge.ts +1 -1
- package/src/data/Chart.ts +29 -0
- package/src/data/Comparison.ts +1 -2
- package/src/data/ComparisonColumn.ts +1 -1
- package/src/data/CountdownTimer.ts +1 -6
- package/src/data/DataGrid.ts +31 -0
- package/src/data/DataTable.ts +1 -5
- package/src/data/DescriptionItem.ts +1 -1
- package/src/data/DescriptionList.ts +1 -1
- package/src/data/Diff.ts +1 -1
- package/src/data/EventCalendar.ts +29 -0
- package/src/data/Kanban.ts +24 -0
- package/src/data/KeyValue.ts +1 -1
- package/src/data/KvPair.ts +1 -1
- package/src/data/List.ts +1 -2
- package/src/data/ListItem.ts +1 -4
- package/src/data/Meter.ts +1 -1
- package/src/data/Sparkline.ts +1 -1
- package/src/data/Stat.ts +1 -1
- package/src/data/Step.ts +1 -1
- package/src/data/Stepper.ts +1 -2
- package/src/data/Table.ts +1 -1
- package/src/data/Tag.ts +1 -1
- package/src/data/Timeline.ts +1 -2
- package/src/data/TimelineItem.ts +1 -1
- package/src/data/ValueCard.ts +1 -1
- package/src/data/index.ts +70 -0
- package/src/feedback/Alert.ts +1 -1
- package/src/feedback/Announcement.ts +1 -1
- package/src/feedback/Banner.ts +1 -1
- package/src/feedback/CommandItem.ts +1 -1
- package/src/feedback/CommandPalette.ts +1 -3
- package/src/feedback/Confirm.ts +1 -1
- package/src/feedback/ConnectionStatus.ts +1 -3
- package/src/feedback/ContextMenu.ts +1 -5
- package/src/feedback/Dialog.ts +1 -1
- package/src/feedback/DropdownMenu.ts +1 -2
- package/src/feedback/GuidedTour.ts +1 -3
- package/src/feedback/HoverCard.ts +1 -2
- package/src/feedback/InlineMessage.ts +1 -1
- package/src/feedback/LoadingOverlay.ts +1 -1
- package/src/feedback/Modal.ts +1 -1
- package/src/feedback/NotificationPanel.ts +1 -1
- package/src/feedback/Popover.ts +1 -1
- package/src/feedback/Progress.ts +1 -1
- package/src/feedback/ProgressToast.ts +1 -2
- package/src/feedback/Sheet.ts +1 -1
- package/src/feedback/Snackbar.ts +1 -2
- package/src/feedback/Spotlight.ts +1 -1
- package/src/feedback/Toast.ts +1 -2
- package/src/feedback/ToastManager.ts +29 -0
- package/src/feedback/Tooltip.ts +1 -2
- package/src/feedback/index.ts +30 -34
- package/src/index.ts +242 -217
- package/src/input/Button.ts +1 -3
- package/src/input/ButtonGroup.ts +1 -1
- package/src/input/Calendar.ts +1 -2
- package/src/input/Checkbox.ts +1 -1
- package/src/input/Chip.ts +1 -1
- package/src/input/ColorPicker.ts +2 -7
- package/src/input/Combobox.ts +2 -5
- package/src/input/CopyButton.ts +1 -2
- package/src/input/DatePicker.ts +2 -5
- package/src/input/DateRangePicker.ts +31 -0
- package/src/input/Fieldset.ts +1 -3
- package/src/input/FileUpload.ts +1 -4
- package/src/input/Form.ts +1 -2
- package/src/input/Hotkey.ts +1 -1
- package/src/input/IconButton.ts +1 -1
- package/src/input/ImageCropper.ts +24 -0
- package/src/input/Input.ts +1 -3
- package/src/input/InputGroup.ts +1 -3
- package/src/input/Label.ts +1 -3
- package/src/input/MultiSelect.ts +2 -5
- package/src/input/NumberInput.ts +2 -1
- package/src/input/OtpInput.ts +2 -1
- package/src/input/PasswordInput.ts +36 -0
- package/src/input/PinInput.ts +2 -1
- package/src/input/Radio.ts +1 -1
- package/src/input/RadioGroup.ts +1 -2
- package/src/input/RangeSlider.ts +2 -2
- package/src/input/Rating.ts +2 -1
- package/src/input/Search.ts +1 -4
- package/src/input/SegmentedControl.ts +1 -2
- package/src/input/Select.ts +1 -2
- package/src/input/Slider.ts +2 -1
- package/src/input/SortableList.ts +1 -6
- package/src/input/Suggestion.ts +1 -1
- package/src/input/SwitchGroup.ts +1 -1
- package/src/input/TagInput.ts +32 -0
- package/src/input/Textarea.ts +1 -1
- package/src/input/ThemeToggle.ts +1 -1
- package/src/input/TimePicker.ts +2 -6
- package/src/input/Toggle.ts +1 -1
- package/src/input/TransferList.ts +27 -0
- package/src/input/index.ts +32 -36
- package/src/layout/AppShell.ts +1 -3
- package/src/layout/AspectGrid.ts +1 -1
- package/src/layout/AuthShell.ts +1 -1
- package/src/layout/Center.ts +1 -1
- package/src/layout/Cluster.ts +1 -1
- package/src/layout/Container.ts +1 -1
- package/src/layout/DashboardGrid.ts +1 -1
- package/src/layout/Dock.ts +1 -2
- package/src/layout/FloatBar.ts +1 -1
- package/src/layout/Inset.ts +1 -1
- package/src/layout/Masonry.ts +1 -1
- package/src/layout/PageHeader.ts +1 -1
- package/src/layout/PageLayout.ts +1 -1
- package/src/layout/Resizable.ts +1 -2
- package/src/layout/ResponsiveSwitcher.ts +1 -1
- package/src/layout/Section.ts +1 -1
- package/src/layout/SettingsLayout.ts +1 -1
- package/src/layout/SplitPane.ts +1 -1
- package/src/layout/StatusBar.ts +1 -1
- package/src/layout/Sticky.ts +1 -2
- package/src/layout/Toolbar.ts +6 -1
- package/src/layout/index.ts +28 -29
- package/src/navigation/AnchorNav.ts +1 -1
- package/src/navigation/BottomNav.ts +1 -1
- package/src/navigation/Breadcrumb.ts +1 -2
- package/src/navigation/BreadcrumbItem.ts +1 -1
- package/src/navigation/BreadcrumbMenu.ts +1 -2
- package/src/navigation/CommandBar.ts +1 -1
- package/src/navigation/Drawer.ts +1 -1
- package/src/navigation/Footer.ts +1 -1
- package/src/navigation/Link.ts +1 -1
- package/src/navigation/Menubar.ts +23 -0
- package/src/navigation/NavItem.ts +1 -1
- package/src/navigation/NavigationMenu.ts +1 -6
- package/src/navigation/PageIndicator.ts +1 -1
- package/src/navigation/Pagination.ts +1 -1
- package/src/navigation/Rail.ts +1 -1
- package/src/navigation/ScrollSpy.ts +1 -3
- package/src/navigation/ScrollToTop.ts +1 -2
- package/src/navigation/Sidebar.ts +1 -2
- package/src/navigation/SidebarLink.ts +1 -1
- package/src/navigation/SidebarSection.ts +1 -1
- package/src/navigation/SkipLink.ts +1 -1
- package/src/navigation/SpeedDial.ts +1 -1
- package/src/navigation/SpyLink.ts +1 -1
- package/src/navigation/StepperNav.ts +1 -1
- package/src/navigation/Tab.ts +1 -1
- package/src/navigation/Tabs.ts +1 -2
- package/src/navigation/TopBar.ts +1 -1
- package/src/navigation/TreeItem.ts +1 -1
- package/src/navigation/TreeView.ts +1 -3
- package/src/navigation/index.ts +31 -35
- package/src/shared/MenuDivider.ts +1 -1
- package/src/shared/MenuItem.ts +1 -1
- package/src/shared/Option.ts +1 -1
- package/src/shared/index.ts +6 -4
- 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 +1 -1
- package/src/typography/Kbd.ts +1 -1
- package/src/typography/Markdown.ts +1 -1
- package/src/typography/NumberFormat.ts +1 -1
- package/src/typography/Prose.ts +1 -1
- package/src/typography/Text.ts +1 -1
- package/src/typography/TimeAgo.ts +1 -1
- package/src/typography/Truncate.ts +1 -1
- package/src/typography/Typewriter.ts +2 -3
- package/src/typography/index.ts +34 -0
- package/src/content/AnimatedNumber.ts +0 -23
- package/src/content/Badge.ts +0 -19
- package/src/content/CodeBlock.ts +0 -21
- package/src/content/DataTable.ts +0 -35
- package/src/content/Highlight.ts +0 -19
- package/src/content/IconLibrary.ts +0 -16
- package/src/content/Kbd.ts +0 -16
- package/src/content/List.ts +0 -28
- package/src/content/ListItem.ts +0 -27
- package/src/content/Markdown.ts +0 -17
- package/src/content/Meter.ts +0 -23
- package/src/content/Step.ts +0 -17
- package/src/content/Stepper.ts +0 -18
- package/src/content/Table.ts +0 -20
- package/src/content/Tag.ts +0 -25
- package/src/content/Text.ts +0 -18
- package/src/content/Timeline.ts +0 -17
- package/src/content/TimelineItem.ts +0 -18
- package/src/content/Truncate.ts +0 -22
- package/src/content/ValueCard.ts +0 -19
package/src/input/Button.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcButton } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcButton } from '@arclux/arc-ui/button';
|
|
6
6
|
|
|
7
7
|
export interface ButtonProps {
|
|
8
8
|
variant?: 'primary' | 'secondary' | 'ghost';
|
|
@@ -11,8 +11,6 @@ export interface ButtonProps {
|
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
loading?: boolean;
|
|
13
13
|
type?: string;
|
|
14
|
-
_hasPrefix?: string;
|
|
15
|
-
_hasSuffix?: string;
|
|
16
14
|
className?: string;
|
|
17
15
|
children?: React.ReactNode;
|
|
18
16
|
onClick?: (e: Event) => void;
|
package/src/input/ButtonGroup.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcButtonGroup } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcButtonGroup } from '@arclux/arc-ui/button-group';
|
|
6
6
|
|
|
7
7
|
export interface ButtonGroupProps {
|
|
8
8
|
orientation?: 'vertical';
|
package/src/input/Calendar.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcCalendar } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcCalendar } from '@arclux/arc-ui/calendar';
|
|
6
6
|
|
|
7
7
|
export interface CalendarProps {
|
|
8
8
|
value?: string;
|
|
@@ -10,7 +10,6 @@ export interface CalendarProps {
|
|
|
10
10
|
max?: string;
|
|
11
11
|
month?: number;
|
|
12
12
|
year?: number;
|
|
13
|
-
_focusedDay?: string;
|
|
14
13
|
className?: string;
|
|
15
14
|
children?: React.ReactNode;
|
|
16
15
|
onArcNavigate?: (e: CustomEvent) => void;
|
package/src/input/Checkbox.ts
CHANGED
package/src/input/Chip.ts
CHANGED
package/src/input/ColorPicker.ts
CHANGED
|
@@ -2,19 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcColorPicker } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcColorPicker } from '@arclux/arc-ui/color-picker';
|
|
6
6
|
|
|
7
7
|
export interface ColorPickerProps {
|
|
8
8
|
value?: string;
|
|
9
|
+
name?: string;
|
|
9
10
|
presets?: unknown[];
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
label?: string;
|
|
12
|
-
_hue?: string;
|
|
13
|
-
_sat?: string;
|
|
14
|
-
_lit?: string;
|
|
15
|
-
_hexInput?: string;
|
|
16
|
-
_draggingArea?: string;
|
|
17
|
-
_draggingHue?: string;
|
|
18
13
|
className?: string;
|
|
19
14
|
children?: React.ReactNode;
|
|
20
15
|
onArcChange?: (e: CustomEvent) => void;
|
package/src/input/Combobox.ts
CHANGED
|
@@ -2,17 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcCombobox } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcCombobox } from '@arclux/arc-ui/combobox';
|
|
6
6
|
|
|
7
7
|
export interface ComboboxProps {
|
|
8
8
|
value?: string;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
label?: string;
|
|
11
|
+
name?: string;
|
|
11
12
|
disabled?: boolean;
|
|
12
|
-
_query?: string;
|
|
13
|
-
_open?: string;
|
|
14
|
-
_activeIndex?: string;
|
|
15
|
-
_options?: string;
|
|
16
13
|
className?: string;
|
|
17
14
|
children?: React.ReactNode;
|
|
18
15
|
onArcChange?: (e: CustomEvent) => void;
|
package/src/input/CopyButton.ts
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcCopyButton } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcCopyButton } from '@arclux/arc-ui/copy-button';
|
|
6
6
|
|
|
7
7
|
export interface CopyButtonProps {
|
|
8
8
|
value?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
_copied?: string;
|
|
11
10
|
className?: string;
|
|
12
11
|
children?: React.ReactNode;
|
|
13
12
|
onArcCopy?: (e: CustomEvent) => void;
|
package/src/input/DatePicker.ts
CHANGED
|
@@ -2,19 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcDatePicker } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcDatePicker } from '@arclux/arc-ui/date-picker';
|
|
6
6
|
|
|
7
7
|
export interface DatePickerProps {
|
|
8
8
|
value?: string;
|
|
9
|
+
name?: string;
|
|
9
10
|
min?: string;
|
|
10
11
|
max?: string;
|
|
11
12
|
placeholder?: string;
|
|
12
13
|
disabled?: boolean;
|
|
13
14
|
label?: string;
|
|
14
|
-
_open?: string;
|
|
15
|
-
_viewMonth?: string;
|
|
16
|
-
_viewYear?: string;
|
|
17
|
-
_mode?: string;
|
|
18
15
|
className?: string;
|
|
19
16
|
children?: React.ReactNode;
|
|
20
17
|
onArcChange?: (e: CustomEvent) => void;
|
|
@@ -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 { ArcDateRangePicker } from '@arclux/arc-ui/date-range-picker';
|
|
6
|
+
|
|
7
|
+
export interface DateRangePickerProps {
|
|
8
|
+
start?: string;
|
|
9
|
+
end?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
min?: string;
|
|
12
|
+
max?: string;
|
|
13
|
+
months?: number;
|
|
14
|
+
presets?: unknown[];
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
label?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
onArcChange?: (e: CustomEvent) => void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const DateRangePicker = createComponent({
|
|
25
|
+
tagName: 'arc-date-range-picker',
|
|
26
|
+
elementClass: ArcDateRangePicker,
|
|
27
|
+
react: React,
|
|
28
|
+
events: {
|
|
29
|
+
onArcChange: 'arc-change' as EventName<CustomEvent>,
|
|
30
|
+
},
|
|
31
|
+
});
|
package/src/input/Fieldset.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcFieldset } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcFieldset } from '@arclux/arc-ui/fieldset';
|
|
6
6
|
|
|
7
7
|
export interface FieldsetProps {
|
|
8
8
|
legend?: string;
|
|
@@ -10,8 +10,6 @@ export interface FieldsetProps {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
error?: string;
|
|
12
12
|
variant?: 'card';
|
|
13
|
-
_hasLegend?: string;
|
|
14
|
-
_hasActions?: string;
|
|
15
13
|
className?: string;
|
|
16
14
|
children?: React.ReactNode;
|
|
17
15
|
}
|
package/src/input/FileUpload.ts
CHANGED
|
@@ -2,16 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcFileUpload } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcFileUpload } from '@arclux/arc-ui/file-upload';
|
|
6
6
|
|
|
7
7
|
export interface FileUploadProps {
|
|
8
8
|
accept?: string;
|
|
9
9
|
multiple?: boolean;
|
|
10
10
|
maxSize?: number;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
_files?: string;
|
|
13
|
-
_dragOver?: string;
|
|
14
|
-
_error?: string;
|
|
15
12
|
className?: string;
|
|
16
13
|
children?: React.ReactNode;
|
|
17
14
|
onArcChange?: (e: CustomEvent) => void;
|
package/src/input/Form.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcForm } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcForm } from '@arclux/arc-ui/form';
|
|
6
6
|
|
|
7
7
|
export interface FormProps {
|
|
8
8
|
action?: string;
|
|
@@ -11,7 +11,6 @@ export interface FormProps {
|
|
|
11
11
|
loading?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
errorSummary?: boolean;
|
|
14
|
-
_errors?: string;
|
|
15
14
|
className?: string;
|
|
16
15
|
children?: React.ReactNode;
|
|
17
16
|
onArcInvalid?: (e: CustomEvent) => void;
|
package/src/input/Hotkey.ts
CHANGED
package/src/input/IconButton.ts
CHANGED
|
@@ -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 { ArcImageCropper } from '@arclux/arc-ui/image-cropper';
|
|
6
|
+
|
|
7
|
+
export interface ImageCropperProps {
|
|
8
|
+
src?: string;
|
|
9
|
+
height?: number;
|
|
10
|
+
aspect?: number;
|
|
11
|
+
zoom?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
onArcCropChange?: (e: CustomEvent) => void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const ImageCropper = createComponent({
|
|
18
|
+
tagName: 'arc-image-cropper',
|
|
19
|
+
elementClass: ArcImageCropper,
|
|
20
|
+
react: React,
|
|
21
|
+
events: {
|
|
22
|
+
onArcCropChange: 'arc-crop-change' as EventName<CustomEvent>,
|
|
23
|
+
},
|
|
24
|
+
});
|
package/src/input/Input.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcInput } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcInput } from '@arclux/arc-ui/input';
|
|
6
6
|
|
|
7
7
|
export interface InputProps {
|
|
8
8
|
type?: string;
|
|
@@ -16,8 +16,6 @@ export interface InputProps {
|
|
|
16
16
|
size?: 'sm' | 'lg';
|
|
17
17
|
multiline?: boolean;
|
|
18
18
|
rows?: number;
|
|
19
|
-
_hasPrefix?: string;
|
|
20
|
-
_hasSuffix?: string;
|
|
21
19
|
className?: string;
|
|
22
20
|
children?: React.ReactNode;
|
|
23
21
|
onArcInput?: (e: CustomEvent) => void;
|
package/src/input/InputGroup.ts
CHANGED
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcInputGroup } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcInputGroup } from '@arclux/arc-ui/input-group';
|
|
6
6
|
|
|
7
7
|
export interface InputGroupProps {
|
|
8
8
|
size?: 'sm' | 'lg';
|
|
9
|
-
_hasPrefix?: string;
|
|
10
|
-
_hasSuffix?: string;
|
|
11
9
|
className?: string;
|
|
12
10
|
children?: React.ReactNode;
|
|
13
11
|
}
|
package/src/input/Label.ts
CHANGED
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcLabel } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcLabel } from '@arclux/arc-ui/label';
|
|
6
6
|
|
|
7
7
|
export interface LabelProps {
|
|
8
8
|
for?: string;
|
|
9
9
|
required?: boolean;
|
|
10
10
|
size?: 'sm' | 'lg';
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
_hasDescription?: string;
|
|
13
|
-
_hasTooltip?: string;
|
|
14
12
|
className?: string;
|
|
15
13
|
children?: React.ReactNode;
|
|
16
14
|
}
|
package/src/input/MultiSelect.ts
CHANGED
|
@@ -2,17 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcMultiSelect } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcMultiSelect } from '@arclux/arc-ui/multi-select';
|
|
6
6
|
|
|
7
7
|
export interface MultiSelectProps {
|
|
8
8
|
value?: unknown[];
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
label?: string;
|
|
11
|
+
name?: string;
|
|
11
12
|
disabled?: boolean;
|
|
12
|
-
_query?: string;
|
|
13
|
-
_open?: string;
|
|
14
|
-
_activeIndex?: string;
|
|
15
|
-
_options?: string;
|
|
16
13
|
className?: string;
|
|
17
14
|
children?: React.ReactNode;
|
|
18
15
|
onArcChange?: (e: CustomEvent) => void;
|
package/src/input/NumberInput.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcNumberInput } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcNumberInput } from '@arclux/arc-ui/number-input';
|
|
6
6
|
|
|
7
7
|
export interface NumberInputProps {
|
|
8
8
|
value?: number;
|
|
@@ -10,6 +10,7 @@ export interface NumberInputProps {
|
|
|
10
10
|
max?: number;
|
|
11
11
|
step?: number;
|
|
12
12
|
label?: string;
|
|
13
|
+
name?: string;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
className?: string;
|
|
15
16
|
children?: React.ReactNode;
|
package/src/input/OtpInput.ts
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcOtpInput } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcOtpInput } from '@arclux/arc-ui/otp-input';
|
|
6
6
|
|
|
7
7
|
export interface OtpInputProps {
|
|
8
8
|
length?: number;
|
|
9
9
|
value?: string;
|
|
10
|
+
name?: string;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
type?: string;
|
|
12
13
|
className?: string;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { ArcPasswordInput } from '@arclux/arc-ui/password-input';
|
|
6
|
+
|
|
7
|
+
export interface PasswordInputProps {
|
|
8
|
+
name?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
error?: string;
|
|
15
|
+
size?: 'sm' | 'lg';
|
|
16
|
+
autocomplete?: string;
|
|
17
|
+
showStrength?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
onArcStrengthChange?: (e: CustomEvent) => void;
|
|
21
|
+
onArcInput?: (e: CustomEvent) => void;
|
|
22
|
+
onArcChange?: (e: CustomEvent) => void;
|
|
23
|
+
onClick?: (e: Event) => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const PasswordInput = createComponent({
|
|
27
|
+
tagName: 'arc-password-input',
|
|
28
|
+
elementClass: ArcPasswordInput,
|
|
29
|
+
react: React,
|
|
30
|
+
events: {
|
|
31
|
+
onArcStrengthChange: 'arc-strength-change' as EventName<CustomEvent>,
|
|
32
|
+
onArcInput: 'arc-input' as EventName<CustomEvent>,
|
|
33
|
+
onArcChange: 'arc-change' as EventName<CustomEvent>,
|
|
34
|
+
onClick: 'click' as EventName<Event>,
|
|
35
|
+
},
|
|
36
|
+
});
|
package/src/input/PinInput.ts
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcPinInput } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcPinInput } from '@arclux/arc-ui/pin-input';
|
|
6
6
|
|
|
7
7
|
export interface PinInputProps {
|
|
8
8
|
length?: number;
|
|
9
9
|
value?: string;
|
|
10
|
+
name?: string;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
mask?: boolean;
|
|
12
13
|
type?: string;
|
package/src/input/Radio.ts
CHANGED
package/src/input/RadioGroup.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcRadioGroup } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcRadioGroup } from '@arclux/arc-ui/radio-group';
|
|
6
6
|
|
|
7
7
|
export interface RadioGroupProps {
|
|
8
8
|
value?: string;
|
|
@@ -10,7 +10,6 @@ export interface RadioGroupProps {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
size?: 'sm' | 'lg';
|
|
12
12
|
orientation?: 'horizontal';
|
|
13
|
-
_radios?: string;
|
|
14
13
|
className?: string;
|
|
15
14
|
children?: React.ReactNode;
|
|
16
15
|
onArcChange?: (e: CustomEvent) => void;
|
package/src/input/RangeSlider.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcRangeSlider } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcRangeSlider } from '@arclux/arc-ui/range-slider';
|
|
6
6
|
|
|
7
7
|
export interface RangeSliderProps {
|
|
8
8
|
min?: number;
|
|
@@ -10,10 +10,10 @@ export interface RangeSliderProps {
|
|
|
10
10
|
step?: number;
|
|
11
11
|
low?: number;
|
|
12
12
|
high?: number;
|
|
13
|
+
name?: string;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
label?: string;
|
|
15
16
|
showValues?: boolean;
|
|
16
|
-
_dragging?: string;
|
|
17
17
|
className?: string;
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
onArcInput?: (e: CustomEvent) => void;
|
package/src/input/Rating.ts
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcRating } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcRating } from '@arclux/arc-ui/rating';
|
|
6
6
|
|
|
7
7
|
export interface RatingProps {
|
|
8
8
|
value?: number;
|
|
9
9
|
max?: number;
|
|
10
|
+
name?: string;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
readonly?: boolean;
|
|
12
13
|
className?: string;
|
package/src/input/Search.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcSearch } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcSearch } from '@arclux/arc-ui/search';
|
|
6
6
|
|
|
7
7
|
export interface SearchProps {
|
|
8
8
|
value?: string;
|
|
@@ -10,9 +10,6 @@ export interface SearchProps {
|
|
|
10
10
|
label?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
loading?: boolean;
|
|
13
|
-
_open?: string;
|
|
14
|
-
_activeIndex?: string;
|
|
15
|
-
_suggestions?: string;
|
|
16
13
|
className?: string;
|
|
17
14
|
children?: React.ReactNode;
|
|
18
15
|
onArcInput?: (e: CustomEvent) => void;
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcSegmentedControl } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcSegmentedControl } from '@arclux/arc-ui/segmented-control';
|
|
6
6
|
|
|
7
7
|
export interface SegmentedControlProps {
|
|
8
8
|
value?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
_options?: string;
|
|
11
10
|
className?: string;
|
|
12
11
|
children?: React.ReactNode;
|
|
13
12
|
onArcChange?: (e: CustomEvent) => void;
|
package/src/input/Select.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcSelect } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcSelect } from '@arclux/arc-ui/select';
|
|
6
6
|
|
|
7
7
|
export interface SelectProps {
|
|
8
8
|
value?: string;
|
|
@@ -13,7 +13,6 @@ export interface SelectProps {
|
|
|
13
13
|
size?: 'sm' | 'lg';
|
|
14
14
|
error?: string;
|
|
15
15
|
open?: boolean;
|
|
16
|
-
_options?: string;
|
|
17
16
|
className?: string;
|
|
18
17
|
children?: React.ReactNode;
|
|
19
18
|
onArcChange?: (e: CustomEvent) => void;
|
package/src/input/Slider.ts
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcSlider } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcSlider } from '@arclux/arc-ui/slider';
|
|
6
6
|
|
|
7
7
|
export interface SliderProps {
|
|
8
8
|
value?: number;
|
|
9
9
|
min?: number;
|
|
10
10
|
max?: number;
|
|
11
11
|
step?: number;
|
|
12
|
+
name?: string;
|
|
12
13
|
disabled?: boolean;
|
|
13
14
|
label?: string;
|
|
14
15
|
className?: string;
|
|
@@ -2,15 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { createComponent, type EventName } from '@lit/react';
|
|
5
|
-
import { ArcSortableList } from '@arclux/arc-ui';
|
|
5
|
+
import { ArcSortableList } from '@arclux/arc-ui/sortable-list';
|
|
6
6
|
|
|
7
7
|
export interface SortableListProps {
|
|
8
8
|
disabled?: boolean;
|
|
9
|
-
_items?: string;
|
|
10
|
-
_dragIndex?: string;
|
|
11
|
-
_overIndex?: string;
|
|
12
|
-
_kbSelected?: string;
|
|
13
|
-
_kbMoving?: string;
|
|
14
9
|
className?: string;
|
|
15
10
|
children?: React.ReactNode;
|
|
16
11
|
onArcChange?: (e: CustomEvent) => void;
|
package/src/input/Suggestion.ts
CHANGED
package/src/input/SwitchGroup.ts
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
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 { ArcTagInput } from '@arclux/arc-ui/tag-input';
|
|
6
|
+
|
|
7
|
+
export interface TagInputProps {
|
|
8
|
+
value?: unknown[];
|
|
9
|
+
suggestions?: unknown[];
|
|
10
|
+
delimiter?: string;
|
|
11
|
+
maxTags?: number;
|
|
12
|
+
allowCustom?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
error?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
onArcChange?: (e: CustomEvent) => void;
|
|
21
|
+
onArcInput?: (e: CustomEvent) => void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const TagInput = createComponent({
|
|
25
|
+
tagName: 'arc-tag-input',
|
|
26
|
+
elementClass: ArcTagInput,
|
|
27
|
+
react: React,
|
|
28
|
+
events: {
|
|
29
|
+
onArcChange: 'arc-change' as EventName<CustomEvent>,
|
|
30
|
+
onArcInput: 'arc-input' as EventName<CustomEvent>,
|
|
31
|
+
},
|
|
32
|
+
});
|
package/src/input/Textarea.ts
CHANGED
package/src/input/ThemeToggle.ts
CHANGED