@arclux/arc-ui-solid 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 +2 -2
- package/src/content/Accordion.tsx +3 -2
- package/src/content/Avatar.tsx +4 -2
- package/src/content/Badge.tsx +3 -2
- package/src/content/Callout.tsx +5 -3
- package/src/content/Card.tsx +4 -2
- package/src/content/Divider.tsx +3 -2
- package/src/content/Skeleton.tsx +3 -2
- package/src/content/Stat.tsx +4 -2
- package/src/content/Tag.tsx +3 -2
- package/src/feedback/Alert.tsx +4 -3
- package/src/feedback/Modal.tsx +3 -2
- package/src/feedback/Progress.tsx +3 -2
- package/src/input/Button.tsx +3 -2
- package/src/input/Checkbox.tsx +3 -2
- package/src/input/Input.tsx +4 -2
- package/src/input/RadioGroup.tsx +3 -2
- package/src/input/Select.tsx +4 -2
- package/src/input/Textarea.tsx +4 -2
- package/src/input/Toggle.tsx +3 -2
- package/src/layout/Container.tsx +4 -2
- package/src/navigation/Breadcrumb.tsx +3 -2
- package/src/navigation/Footer.tsx +3 -2
- package/src/navigation/Link.tsx +3 -2
- package/src/navigation/Pagination.tsx +3 -2
- package/src/navigation/Sidebar.tsx +3 -2
- package/src/navigation/Tabs.tsx +4 -2
- package/src/navigation/TopBar.tsx +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arclux/arc-ui-solid",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Solid wrappers for ARC UI Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"solid-js": ">=1.8.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@arclux/arc-ui": "1.
|
|
47
|
+
"@arclux/arc-ui": "1.5.0"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"keywords": [
|
|
@@ -4,6 +4,7 @@ import { splitProps, type Component, type JSX } from 'solid-js';
|
|
|
4
4
|
import '@arclux/arc-ui';
|
|
5
5
|
|
|
6
6
|
export interface AccordionProps {
|
|
7
|
+
multiple?: boolean;
|
|
7
8
|
_items?: string;
|
|
8
9
|
_openItems?: string;
|
|
9
10
|
children?: JSX.Element;
|
|
@@ -11,9 +12,9 @@ export interface AccordionProps {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const Accordion: Component<AccordionProps> = (props) => {
|
|
14
|
-
const [local, rest] = splitProps(props, ['_items', '_openItems', 'children']);
|
|
15
|
+
const [local, rest] = splitProps(props, ['multiple', '_items', '_openItems', 'children']);
|
|
15
16
|
return (
|
|
16
|
-
<arc-accordion _items={local._items} _openItems={local._openItems} {...rest}>
|
|
17
|
+
<arc-accordion multiple={local.multiple} _items={local._items} _openItems={local._openItems} {...rest}>
|
|
17
18
|
{local.children}
|
|
18
19
|
</arc-accordion>
|
|
19
20
|
);
|
package/src/content/Avatar.tsx
CHANGED
|
@@ -7,14 +7,16 @@ export interface AvatarProps {
|
|
|
7
7
|
src?: string;
|
|
8
8
|
name?: string;
|
|
9
9
|
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
shape?: 'square' | 'rounded';
|
|
11
|
+
status?: 'online' | 'offline' | 'busy' | 'away';
|
|
10
12
|
children?: JSX.Element;
|
|
11
13
|
[key: string]: unknown;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export const Avatar: Component<AvatarProps> = (props) => {
|
|
15
|
-
const [local, rest] = splitProps(props, ['src', 'name', 'size', 'children']);
|
|
17
|
+
const [local, rest] = splitProps(props, ['src', 'name', 'size', 'shape', 'status', 'children']);
|
|
16
18
|
return (
|
|
17
|
-
<arc-avatar src={local.src} name={local.name} size={local.size} {...rest}>
|
|
19
|
+
<arc-avatar src={local.src} name={local.name} size={local.size} shape={local.shape} status={local.status} {...rest}>
|
|
18
20
|
{local.children}
|
|
19
21
|
</arc-avatar>
|
|
20
22
|
);
|
package/src/content/Badge.tsx
CHANGED
|
@@ -5,15 +5,16 @@ import '@arclux/arc-ui';
|
|
|
5
5
|
|
|
6
6
|
export interface BadgeProps {
|
|
7
7
|
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
8
|
+
size?: 'sm' | 'lg';
|
|
8
9
|
color?: string;
|
|
9
10
|
children?: JSX.Element;
|
|
10
11
|
[key: string]: unknown;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const Badge: Component<BadgeProps> = (props) => {
|
|
14
|
-
const [local, rest] = splitProps(props, ['variant', 'color', 'children']);
|
|
15
|
+
const [local, rest] = splitProps(props, ['variant', 'size', 'color', 'children']);
|
|
15
16
|
return (
|
|
16
|
-
<arc-badge variant={local.variant} color={local.color} {...rest}>
|
|
17
|
+
<arc-badge variant={local.variant} size={local.size} color={local.color} {...rest}>
|
|
17
18
|
{local.children}
|
|
18
19
|
</arc-badge>
|
|
19
20
|
);
|
package/src/content/Callout.tsx
CHANGED
|
@@ -4,15 +4,17 @@ import { splitProps, type Component, type JSX } from 'solid-js';
|
|
|
4
4
|
import '@arclux/arc-ui';
|
|
5
5
|
|
|
6
6
|
export interface CalloutProps {
|
|
7
|
-
variant?:
|
|
7
|
+
variant?: string;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
_dismissed?: string;
|
|
8
10
|
children?: JSX.Element;
|
|
9
11
|
[key: string]: unknown;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export const Callout: Component<CalloutProps> = (props) => {
|
|
13
|
-
const [local, rest] = splitProps(props, ['variant', 'children']);
|
|
15
|
+
const [local, rest] = splitProps(props, ['variant', 'dismissible', '_dismissed', 'children']);
|
|
14
16
|
return (
|
|
15
|
-
<arc-callout variant={local.variant} {...rest}>
|
|
17
|
+
<arc-callout variant={local.variant} dismissible={local.dismissible} _dismissed={local._dismissed} {...rest}>
|
|
16
18
|
{local.children}
|
|
17
19
|
</arc-callout>
|
|
18
20
|
);
|
package/src/content/Card.tsx
CHANGED
|
@@ -5,15 +5,17 @@ import '@arclux/arc-ui';
|
|
|
5
5
|
|
|
6
6
|
export interface CardProps {
|
|
7
7
|
href?: string;
|
|
8
|
+
padding?: 'none' | 'sm' | 'lg';
|
|
9
|
+
interactive?: boolean;
|
|
8
10
|
_hasFooter?: string;
|
|
9
11
|
children?: JSX.Element;
|
|
10
12
|
[key: string]: unknown;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
export const Card: Component<CardProps> = (props) => {
|
|
14
|
-
const [local, rest] = splitProps(props, ['href', '_hasFooter', 'children']);
|
|
16
|
+
const [local, rest] = splitProps(props, ['href', 'padding', 'interactive', '_hasFooter', 'children']);
|
|
15
17
|
return (
|
|
16
|
-
<arc-card href={local.href} _hasFooter={local._hasFooter} {...rest}>
|
|
18
|
+
<arc-card href={local.href} padding={local.padding} interactive={local.interactive} _hasFooter={local._hasFooter} {...rest}>
|
|
17
19
|
{local.children}
|
|
18
20
|
</arc-card>
|
|
19
21
|
);
|
package/src/content/Divider.tsx
CHANGED
|
@@ -7,14 +7,15 @@ export interface DividerProps {
|
|
|
7
7
|
variant?: 'subtle' | 'glow' | 'line-white' | 'line-primary' | 'line-gradient';
|
|
8
8
|
align?: 'left' | 'right';
|
|
9
9
|
vertical?: boolean;
|
|
10
|
+
label?: string;
|
|
10
11
|
children?: JSX.Element;
|
|
11
12
|
[key: string]: unknown;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const Divider: Component<DividerProps> = (props) => {
|
|
15
|
-
const [local, rest] = splitProps(props, ['variant', 'align', 'vertical', 'children']);
|
|
16
|
+
const [local, rest] = splitProps(props, ['variant', 'align', 'vertical', 'label', 'children']);
|
|
16
17
|
return (
|
|
17
|
-
<arc-divider variant={local.variant} align={local.align} vertical={local.vertical} {...rest}>
|
|
18
|
+
<arc-divider variant={local.variant} align={local.align} vertical={local.vertical} label={local.label} {...rest}>
|
|
18
19
|
{local.children}
|
|
19
20
|
</arc-divider>
|
|
20
21
|
);
|
package/src/content/Skeleton.tsx
CHANGED
|
@@ -7,14 +7,15 @@ export interface SkeletonProps {
|
|
|
7
7
|
variant?: 'text' | 'circle' | 'rect';
|
|
8
8
|
width?: string;
|
|
9
9
|
height?: string;
|
|
10
|
+
count?: number;
|
|
10
11
|
children?: JSX.Element;
|
|
11
12
|
[key: string]: unknown;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const Skeleton: Component<SkeletonProps> = (props) => {
|
|
15
|
-
const [local, rest] = splitProps(props, ['variant', 'width', 'height', 'children']);
|
|
16
|
+
const [local, rest] = splitProps(props, ['variant', 'width', 'height', 'count', 'children']);
|
|
16
17
|
return (
|
|
17
|
-
<arc-skeleton variant={local.variant} width={local.width} height={local.height} {...rest}>
|
|
18
|
+
<arc-skeleton variant={local.variant} width={local.width} height={local.height} count={local.count} {...rest}>
|
|
18
19
|
{local.children}
|
|
19
20
|
</arc-skeleton>
|
|
20
21
|
);
|
package/src/content/Stat.tsx
CHANGED
|
@@ -6,14 +6,16 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface StatProps {
|
|
7
7
|
value?: string;
|
|
8
8
|
label?: string;
|
|
9
|
+
trend?: 'up' | 'down' | 'neutral';
|
|
10
|
+
change?: string;
|
|
9
11
|
children?: JSX.Element;
|
|
10
12
|
[key: string]: unknown;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
export const Stat: Component<StatProps> = (props) => {
|
|
14
|
-
const [local, rest] = splitProps(props, ['value', 'label', 'children']);
|
|
16
|
+
const [local, rest] = splitProps(props, ['value', 'label', 'trend', 'change', 'children']);
|
|
15
17
|
return (
|
|
16
|
-
<arc-stat value={local.value} label={local.label} {...rest}>
|
|
18
|
+
<arc-stat value={local.value} label={local.label} trend={local.trend} change={local.change} {...rest}>
|
|
17
19
|
{local.children}
|
|
18
20
|
</arc-stat>
|
|
19
21
|
);
|
package/src/content/Tag.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import '@arclux/arc-ui';
|
|
|
5
5
|
|
|
6
6
|
export interface TagProps {
|
|
7
7
|
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
8
|
+
size?: 'sm' | 'lg';
|
|
8
9
|
removable?: boolean;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
color?: string;
|
|
@@ -13,9 +14,9 @@ export interface TagProps {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export const Tag: Component<TagProps> = (props) => {
|
|
16
|
-
const [local, rest] = splitProps(props, ['variant', 'removable', 'disabled', 'color', 'children']);
|
|
17
|
+
const [local, rest] = splitProps(props, ['variant', 'size', 'removable', 'disabled', 'color', 'children']);
|
|
17
18
|
return (
|
|
18
|
-
<arc-tag variant={local.variant} removable={local.removable} disabled={local.disabled} color={local.color} {...rest}>
|
|
19
|
+
<arc-tag variant={local.variant} size={local.size} removable={local.removable} disabled={local.disabled} color={local.color} {...rest}>
|
|
19
20
|
{local.children}
|
|
20
21
|
</arc-tag>
|
|
21
22
|
);
|
package/src/feedback/Alert.tsx
CHANGED
|
@@ -4,7 +4,8 @@ import { splitProps, type Component, type JSX } from 'solid-js';
|
|
|
4
4
|
import '@arclux/arc-ui';
|
|
5
5
|
|
|
6
6
|
export interface AlertProps {
|
|
7
|
-
variant?:
|
|
7
|
+
variant?: string;
|
|
8
|
+
compact?: boolean;
|
|
8
9
|
dismissible?: boolean;
|
|
9
10
|
heading?: string;
|
|
10
11
|
children?: JSX.Element;
|
|
@@ -12,9 +13,9 @@ export interface AlertProps {
|
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const Alert: Component<AlertProps> = (props) => {
|
|
15
|
-
const [local, rest] = splitProps(props, ['variant', 'dismissible', 'heading', 'children']);
|
|
16
|
+
const [local, rest] = splitProps(props, ['variant', 'compact', 'dismissible', 'heading', 'children']);
|
|
16
17
|
return (
|
|
17
|
-
<arc-alert variant={local.variant} dismissible={local.dismissible} heading={local.heading} {...rest}>
|
|
18
|
+
<arc-alert variant={local.variant} compact={local.compact} dismissible={local.dismissible} heading={local.heading} {...rest}>
|
|
18
19
|
{local.children}
|
|
19
20
|
</arc-alert>
|
|
20
21
|
);
|
package/src/feedback/Modal.tsx
CHANGED
|
@@ -7,15 +7,16 @@ export interface ModalProps {
|
|
|
7
7
|
open?: boolean;
|
|
8
8
|
heading?: string;
|
|
9
9
|
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
fullscreen?: boolean;
|
|
10
11
|
closable?: boolean;
|
|
11
12
|
children?: JSX.Element;
|
|
12
13
|
[key: string]: unknown;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export const Modal: Component<ModalProps> = (props) => {
|
|
16
|
-
const [local, rest] = splitProps(props, ['open', 'heading', 'size', 'closable', 'children']);
|
|
17
|
+
const [local, rest] = splitProps(props, ['open', 'heading', 'size', 'fullscreen', 'closable', 'children']);
|
|
17
18
|
return (
|
|
18
|
-
<arc-modal open={local.open} heading={local.heading} size={local.size} closable={local.closable} {...rest}>
|
|
19
|
+
<arc-modal open={local.open} heading={local.heading} size={local.size} fullscreen={local.fullscreen} closable={local.closable} {...rest}>
|
|
19
20
|
{local.children}
|
|
20
21
|
</arc-modal>
|
|
21
22
|
);
|
|
@@ -8,15 +8,16 @@ export interface ProgressProps {
|
|
|
8
8
|
variant?: string;
|
|
9
9
|
size?: 'sm' | 'md' | 'lg';
|
|
10
10
|
indeterminate?: boolean;
|
|
11
|
+
showValue?: boolean;
|
|
11
12
|
label?: string;
|
|
12
13
|
children?: JSX.Element;
|
|
13
14
|
[key: string]: unknown;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export const Progress: Component<ProgressProps> = (props) => {
|
|
17
|
-
const [local, rest] = splitProps(props, ['value', 'variant', 'size', 'indeterminate', 'label', 'children']);
|
|
18
|
+
const [local, rest] = splitProps(props, ['value', 'variant', 'size', 'indeterminate', 'showValue', 'label', 'children']);
|
|
18
19
|
return (
|
|
19
|
-
<arc-progress value={local.value} variant={local.variant} size={local.size} indeterminate={local.indeterminate} label={local.label} {...rest}>
|
|
20
|
+
<arc-progress value={local.value} variant={local.variant} size={local.size} indeterminate={local.indeterminate} showValue={local.showValue} label={local.label} {...rest}>
|
|
20
21
|
{local.children}
|
|
21
22
|
</arc-progress>
|
|
22
23
|
);
|
package/src/input/Button.tsx
CHANGED
|
@@ -8,6 +8,7 @@ export interface ButtonProps {
|
|
|
8
8
|
size?: 'sm' | 'md' | 'lg';
|
|
9
9
|
href?: string;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
11
12
|
type?: string;
|
|
12
13
|
_hasPrefix?: string;
|
|
13
14
|
_hasSuffix?: string;
|
|
@@ -16,9 +17,9 @@ export interface ButtonProps {
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export const Button: Component<ButtonProps> = (props) => {
|
|
19
|
-
const [local, rest] = splitProps(props, ['variant', 'size', 'href', 'disabled', 'type', '_hasPrefix', '_hasSuffix', 'children']);
|
|
20
|
+
const [local, rest] = splitProps(props, ['variant', 'size', 'href', 'disabled', 'loading', 'type', '_hasPrefix', '_hasSuffix', 'children']);
|
|
20
21
|
return (
|
|
21
|
-
<arc-button variant={local.variant} size={local.size} href={local.href} disabled={local.disabled} type={local.type} _hasPrefix={local._hasPrefix} _hasSuffix={local._hasSuffix} {...rest}>
|
|
22
|
+
<arc-button variant={local.variant} size={local.size} href={local.href} disabled={local.disabled} loading={local.loading} type={local.type} _hasPrefix={local._hasPrefix} _hasSuffix={local._hasSuffix} {...rest}>
|
|
22
23
|
{local.children}
|
|
23
24
|
</arc-button>
|
|
24
25
|
);
|
package/src/input/Checkbox.tsx
CHANGED
|
@@ -7,6 +7,7 @@ export interface CheckboxProps {
|
|
|
7
7
|
checked?: boolean;
|
|
8
8
|
indeterminate?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
size?: 'sm' | 'lg';
|
|
10
11
|
label?: string;
|
|
11
12
|
name?: string;
|
|
12
13
|
value?: string;
|
|
@@ -15,9 +16,9 @@ export interface CheckboxProps {
|
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export const Checkbox: Component<CheckboxProps> = (props) => {
|
|
18
|
-
const [local, rest] = splitProps(props, ['checked', 'indeterminate', 'disabled', 'label', 'name', 'value', 'children']);
|
|
19
|
+
const [local, rest] = splitProps(props, ['checked', 'indeterminate', 'disabled', 'size', 'label', 'name', 'value', 'children']);
|
|
19
20
|
return (
|
|
20
|
-
<arc-checkbox checked={local.checked} indeterminate={local.indeterminate} disabled={local.disabled} label={local.label} name={local.name} value={local.value} {...rest}>
|
|
21
|
+
<arc-checkbox checked={local.checked} indeterminate={local.indeterminate} disabled={local.disabled} size={local.size} label={local.label} name={local.name} value={local.value} {...rest}>
|
|
21
22
|
{local.children}
|
|
22
23
|
</arc-checkbox>
|
|
23
24
|
);
|
package/src/input/Input.tsx
CHANGED
|
@@ -11,6 +11,8 @@ export interface InputProps {
|
|
|
11
11
|
value?: string;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
required?: boolean;
|
|
14
|
+
error?: string;
|
|
15
|
+
size?: 'sm' | 'lg';
|
|
14
16
|
multiline?: boolean;
|
|
15
17
|
rows?: number;
|
|
16
18
|
_hasPrefix?: string;
|
|
@@ -20,9 +22,9 @@ export interface InputProps {
|
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export const Input: Component<InputProps> = (props) => {
|
|
23
|
-
const [local, rest] = splitProps(props, ['type', 'name', 'label', 'placeholder', 'value', 'disabled', 'required', 'multiline', 'rows', '_hasPrefix', '_hasSuffix', 'children']);
|
|
25
|
+
const [local, rest] = splitProps(props, ['type', 'name', 'label', 'placeholder', 'value', 'disabled', 'required', 'error', 'size', 'multiline', 'rows', '_hasPrefix', '_hasSuffix', 'children']);
|
|
24
26
|
return (
|
|
25
|
-
<arc-input type={local.type} name={local.name} label={local.label} placeholder={local.placeholder} value={local.value} disabled={local.disabled} required={local.required} multiline={local.multiline} rows={local.rows} _hasPrefix={local._hasPrefix} _hasSuffix={local._hasSuffix} {...rest}>
|
|
27
|
+
<arc-input type={local.type} name={local.name} label={local.label} placeholder={local.placeholder} value={local.value} disabled={local.disabled} required={local.required} error={local.error} size={local.size} multiline={local.multiline} rows={local.rows} _hasPrefix={local._hasPrefix} _hasSuffix={local._hasSuffix} {...rest}>
|
|
26
28
|
{local.children}
|
|
27
29
|
</arc-input>
|
|
28
30
|
);
|
package/src/input/RadioGroup.tsx
CHANGED
|
@@ -7,6 +7,7 @@ export interface RadioGroupProps {
|
|
|
7
7
|
value?: string;
|
|
8
8
|
name?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
size?: 'sm' | 'lg';
|
|
10
11
|
orientation?: 'horizontal';
|
|
11
12
|
_radios?: string;
|
|
12
13
|
children?: JSX.Element;
|
|
@@ -14,9 +15,9 @@ export interface RadioGroupProps {
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export const RadioGroup: Component<RadioGroupProps> = (props) => {
|
|
17
|
-
const [local, rest] = splitProps(props, ['value', 'name', 'disabled', 'orientation', '_radios', 'children']);
|
|
18
|
+
const [local, rest] = splitProps(props, ['value', 'name', 'disabled', 'size', 'orientation', '_radios', 'children']);
|
|
18
19
|
return (
|
|
19
|
-
<arc-radio-group value={local.value} name={local.name} disabled={local.disabled} orientation={local.orientation} _radios={local._radios} {...rest}>
|
|
20
|
+
<arc-radio-group value={local.value} name={local.name} disabled={local.disabled} size={local.size} orientation={local.orientation} _radios={local._radios} {...rest}>
|
|
20
21
|
{local.children}
|
|
21
22
|
</arc-radio-group>
|
|
22
23
|
);
|
package/src/input/Select.tsx
CHANGED
|
@@ -9,6 +9,8 @@ export interface SelectProps {
|
|
|
9
9
|
label?: string;
|
|
10
10
|
name?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
+
size?: 'sm' | 'lg';
|
|
13
|
+
error?: string;
|
|
12
14
|
open?: boolean;
|
|
13
15
|
_options?: string;
|
|
14
16
|
children?: JSX.Element;
|
|
@@ -16,9 +18,9 @@ export interface SelectProps {
|
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export const Select: Component<SelectProps> = (props) => {
|
|
19
|
-
const [local, rest] = splitProps(props, ['value', 'placeholder', 'label', 'name', 'disabled', 'open', '_options', 'children']);
|
|
21
|
+
const [local, rest] = splitProps(props, ['value', 'placeholder', 'label', 'name', 'disabled', 'size', 'error', 'open', '_options', 'children']);
|
|
20
22
|
return (
|
|
21
|
-
<arc-select value={local.value} placeholder={local.placeholder} label={local.label} name={local.name} disabled={local.disabled} open={local.open} _options={local._options} {...rest}>
|
|
23
|
+
<arc-select value={local.value} placeholder={local.placeholder} label={local.label} name={local.name} disabled={local.disabled} size={local.size} error={local.error} open={local.open} _options={local._options} {...rest}>
|
|
22
24
|
{local.children}
|
|
23
25
|
</arc-select>
|
|
24
26
|
);
|
package/src/input/Textarea.tsx
CHANGED
|
@@ -12,15 +12,17 @@ export interface TextareaProps {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
readonly?: boolean;
|
|
14
14
|
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
15
|
+
size?: 'sm' | 'lg';
|
|
16
|
+
autoResize?: boolean;
|
|
15
17
|
error?: string;
|
|
16
18
|
children?: JSX.Element;
|
|
17
19
|
[key: string]: unknown;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export const Textarea: Component<TextareaProps> = (props) => {
|
|
21
|
-
const [local, rest] = splitProps(props, ['value', 'placeholder', 'label', 'rows', 'maxlength', 'disabled', 'readonly', 'resize', 'error', 'children']);
|
|
23
|
+
const [local, rest] = splitProps(props, ['value', 'placeholder', 'label', 'rows', 'maxlength', 'disabled', 'readonly', 'resize', 'size', 'autoResize', 'error', 'children']);
|
|
22
24
|
return (
|
|
23
|
-
<arc-textarea value={local.value} placeholder={local.placeholder} label={local.label} rows={local.rows} maxlength={local.maxlength} disabled={local.disabled} readonly={local.readonly} resize={local.resize} error={local.error} {...rest}>
|
|
25
|
+
<arc-textarea value={local.value} placeholder={local.placeholder} label={local.label} rows={local.rows} maxlength={local.maxlength} disabled={local.disabled} readonly={local.readonly} resize={local.resize} size={local.size} autoResize={local.autoResize} error={local.error} {...rest}>
|
|
24
26
|
{local.children}
|
|
25
27
|
</arc-textarea>
|
|
26
28
|
);
|
package/src/input/Toggle.tsx
CHANGED
|
@@ -6,6 +6,7 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface ToggleProps {
|
|
7
7
|
checked?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
size?: 'sm' | 'lg';
|
|
9
10
|
label?: string;
|
|
10
11
|
name?: string;
|
|
11
12
|
children?: JSX.Element;
|
|
@@ -13,9 +14,9 @@ export interface ToggleProps {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export const Toggle: Component<ToggleProps> = (props) => {
|
|
16
|
-
const [local, rest] = splitProps(props, ['checked', 'disabled', 'label', 'name', 'children']);
|
|
17
|
+
const [local, rest] = splitProps(props, ['checked', 'disabled', 'size', 'label', 'name', 'children']);
|
|
17
18
|
return (
|
|
18
|
-
<arc-toggle checked={local.checked} disabled={local.disabled} label={local.label} name={local.name} {...rest}>
|
|
19
|
+
<arc-toggle checked={local.checked} disabled={local.disabled} size={local.size} label={local.label} name={local.name} {...rest}>
|
|
19
20
|
{local.children}
|
|
20
21
|
</arc-toggle>
|
|
21
22
|
);
|
package/src/layout/Container.tsx
CHANGED
|
@@ -5,14 +5,16 @@ import '@arclux/arc-ui';
|
|
|
5
5
|
|
|
6
6
|
export interface ContainerProps {
|
|
7
7
|
narrow?: boolean;
|
|
8
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
9
|
+
padding?: 'none' | 'sm' | 'lg';
|
|
8
10
|
children?: JSX.Element;
|
|
9
11
|
[key: string]: unknown;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export const Container: Component<ContainerProps> = (props) => {
|
|
13
|
-
const [local, rest] = splitProps(props, ['narrow', 'children']);
|
|
15
|
+
const [local, rest] = splitProps(props, ['narrow', 'size', 'padding', 'children']);
|
|
14
16
|
return (
|
|
15
|
-
<arc-container narrow={local.narrow} {...rest}>
|
|
17
|
+
<arc-container narrow={local.narrow} size={local.size} padding={local.padding} {...rest}>
|
|
16
18
|
{local.children}
|
|
17
19
|
</arc-container>
|
|
18
20
|
);
|
|
@@ -4,15 +4,16 @@ import { splitProps, type Component, type JSX } from 'solid-js';
|
|
|
4
4
|
import '@arclux/arc-ui';
|
|
5
5
|
|
|
6
6
|
export interface BreadcrumbProps {
|
|
7
|
+
separator?: string;
|
|
7
8
|
_items?: string;
|
|
8
9
|
children?: JSX.Element;
|
|
9
10
|
[key: string]: unknown;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export const Breadcrumb: Component<BreadcrumbProps> = (props) => {
|
|
13
|
-
const [local, rest] = splitProps(props, ['_items', 'children']);
|
|
14
|
+
const [local, rest] = splitProps(props, ['separator', '_items', 'children']);
|
|
14
15
|
return (
|
|
15
|
-
<arc-breadcrumb _items={local._items} {...rest}>
|
|
16
|
+
<arc-breadcrumb separator={local.separator} _items={local._items} {...rest}>
|
|
16
17
|
{local.children}
|
|
17
18
|
</arc-breadcrumb>
|
|
18
19
|
);
|
|
@@ -6,14 +6,15 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface FooterProps {
|
|
7
7
|
compact?: boolean;
|
|
8
8
|
border?: boolean;
|
|
9
|
+
align?: 'center';
|
|
9
10
|
children?: JSX.Element;
|
|
10
11
|
[key: string]: unknown;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const Footer: Component<FooterProps> = (props) => {
|
|
14
|
-
const [local, rest] = splitProps(props, ['compact', 'border', 'children']);
|
|
15
|
+
const [local, rest] = splitProps(props, ['compact', 'border', 'align', 'children']);
|
|
15
16
|
return (
|
|
16
|
-
<arc-footer compact={local.compact} border={local.border} {...rest}>
|
|
17
|
+
<arc-footer compact={local.compact} border={local.border} align={local.align} {...rest}>
|
|
17
18
|
{local.children}
|
|
18
19
|
</arc-footer>
|
|
19
20
|
);
|
package/src/navigation/Link.tsx
CHANGED
|
@@ -6,6 +6,7 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface LinkProps {
|
|
7
7
|
href?: string;
|
|
8
8
|
variant?: 'muted' | 'nav';
|
|
9
|
+
underline?: 'always' | 'never';
|
|
9
10
|
active?: boolean;
|
|
10
11
|
external?: boolean;
|
|
11
12
|
children?: JSX.Element;
|
|
@@ -13,9 +14,9 @@ export interface LinkProps {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export const Link: Component<LinkProps> = (props) => {
|
|
16
|
-
const [local, rest] = splitProps(props, ['href', 'variant', 'active', 'external', 'children']);
|
|
17
|
+
const [local, rest] = splitProps(props, ['href', 'variant', 'underline', 'active', 'external', 'children']);
|
|
17
18
|
return (
|
|
18
|
-
<arc-link href={local.href} variant={local.variant} active={local.active} external={local.external} {...rest}>
|
|
19
|
+
<arc-link href={local.href} variant={local.variant} underline={local.underline} active={local.active} external={local.external} {...rest}>
|
|
19
20
|
{local.children}
|
|
20
21
|
</arc-link>
|
|
21
22
|
);
|
|
@@ -7,14 +7,15 @@ export interface PaginationProps {
|
|
|
7
7
|
total?: number;
|
|
8
8
|
current?: number;
|
|
9
9
|
siblings?: number;
|
|
10
|
+
compact?: boolean;
|
|
10
11
|
children?: JSX.Element;
|
|
11
12
|
[key: string]: unknown;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const Pagination: Component<PaginationProps> = (props) => {
|
|
15
|
-
const [local, rest] = splitProps(props, ['total', 'current', 'siblings', 'children']);
|
|
16
|
+
const [local, rest] = splitProps(props, ['total', 'current', 'siblings', 'compact', 'children']);
|
|
16
17
|
return (
|
|
17
|
-
<arc-pagination total={local.total} current={local.current} siblings={local.siblings} {...rest}>
|
|
18
|
+
<arc-pagination total={local.total} current={local.current} siblings={local.siblings} compact={local.compact} {...rest}>
|
|
18
19
|
{local.children}
|
|
19
20
|
</arc-pagination>
|
|
20
21
|
);
|
|
@@ -6,6 +6,7 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface SidebarProps {
|
|
7
7
|
active?: string;
|
|
8
8
|
collapsed?: boolean;
|
|
9
|
+
position?: 'right';
|
|
9
10
|
width?: string;
|
|
10
11
|
glow?: boolean;
|
|
11
12
|
_sections?: string;
|
|
@@ -14,9 +15,9 @@ export interface SidebarProps {
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export const Sidebar: Component<SidebarProps> = (props) => {
|
|
17
|
-
const [local, rest] = splitProps(props, ['active', 'collapsed', 'width', 'glow', '_sections', 'children']);
|
|
18
|
+
const [local, rest] = splitProps(props, ['active', 'collapsed', 'position', 'width', 'glow', '_sections', 'children']);
|
|
18
19
|
return (
|
|
19
|
-
<arc-sidebar active={local.active} collapsed={local.collapsed} width={local.width} glow={local.glow} _sections={local._sections} {...rest}>
|
|
20
|
+
<arc-sidebar active={local.active} collapsed={local.collapsed} position={local.position} width={local.width} glow={local.glow} _sections={local._sections} {...rest}>
|
|
20
21
|
{local.children}
|
|
21
22
|
</arc-sidebar>
|
|
22
23
|
);
|
package/src/navigation/Tabs.tsx
CHANGED
|
@@ -6,15 +6,17 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface TabsProps {
|
|
7
7
|
items?: unknown[];
|
|
8
8
|
selected?: number;
|
|
9
|
+
align?: 'center' | 'end';
|
|
10
|
+
variant?: 'pills';
|
|
9
11
|
_tabs?: string;
|
|
10
12
|
children?: JSX.Element;
|
|
11
13
|
[key: string]: unknown;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export const Tabs: Component<TabsProps> = (props) => {
|
|
15
|
-
const [local, rest] = splitProps(props, ['items', 'selected', '_tabs', 'children']);
|
|
17
|
+
const [local, rest] = splitProps(props, ['items', 'selected', 'align', 'variant', '_tabs', 'children']);
|
|
16
18
|
return (
|
|
17
|
-
<arc-tabs items={local.items} selected={local.selected} _tabs={local._tabs} {...rest}>
|
|
19
|
+
<arc-tabs items={local.items} selected={local.selected} align={local.align} variant={local.variant} _tabs={local._tabs} {...rest}>
|
|
18
20
|
{local.children}
|
|
19
21
|
</arc-tabs>
|
|
20
22
|
);
|
|
@@ -9,14 +9,15 @@ export interface TopBarProps {
|
|
|
9
9
|
menuOpen?: boolean;
|
|
10
10
|
mobileMenu?: string;
|
|
11
11
|
menuPosition?: string;
|
|
12
|
+
navAlign?: string;
|
|
12
13
|
children?: JSX.Element;
|
|
13
14
|
[key: string]: unknown;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export const TopBar: Component<TopBarProps> = (props) => {
|
|
17
|
-
const [local, rest] = splitProps(props, ['heading', 'fixed', 'menuOpen', 'mobileMenu', 'menuPosition', 'children']);
|
|
18
|
+
const [local, rest] = splitProps(props, ['heading', 'fixed', 'menuOpen', 'mobileMenu', 'menuPosition', 'navAlign', 'children']);
|
|
18
19
|
return (
|
|
19
|
-
<arc-top-bar heading={local.heading} fixed={local.fixed} menuOpen={local.menuOpen} mobileMenu={local.mobileMenu} menuPosition={local.menuPosition} {...rest}>
|
|
20
|
+
<arc-top-bar heading={local.heading} fixed={local.fixed} menuOpen={local.menuOpen} mobileMenu={local.mobileMenu} menuPosition={local.menuPosition} navAlign={local.navAlign} {...rest}>
|
|
20
21
|
{local.children}
|
|
21
22
|
</arc-top-bar>
|
|
22
23
|
);
|