@arclux/arc-ui-solid 1.0.0 → 1.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 +2 -2
- package/src/content/Card.tsx +3 -2
- package/src/content/CtaBanner.tsx +21 -0
- package/src/content/Tag.tsx +3 -2
- package/src/content/index.ts +3 -0
- package/src/index.ts +3 -0
- package/src/input/Button.tsx +4 -2
- package/src/input/Form.tsx +6 -2
- package/src/input/Input.tsx +4 -2
- package/src/layout/PageHeader.tsx +3 -2
- package/src/navigation/NavItem.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.2.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.2.0"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"keywords": [
|
package/src/content/Card.tsx
CHANGED
|
@@ -5,14 +5,15 @@ import '@arclux/arc-ui';
|
|
|
5
5
|
|
|
6
6
|
export interface CardProps {
|
|
7
7
|
href?: string;
|
|
8
|
+
_hasFooter?: string;
|
|
8
9
|
children?: JSX.Element;
|
|
9
10
|
[key: string]: unknown;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export const Card: Component<CardProps> = (props) => {
|
|
13
|
-
const [local, rest] = splitProps(props, ['href', 'children']);
|
|
14
|
+
const [local, rest] = splitProps(props, ['href', '_hasFooter', 'children']);
|
|
14
15
|
return (
|
|
15
|
-
<arc-card href={local.href} {...rest}>
|
|
16
|
+
<arc-card href={local.href} _hasFooter={local._hasFooter} {...rest}>
|
|
16
17
|
{local.children}
|
|
17
18
|
</arc-card>
|
|
18
19
|
);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { splitProps, type Component, type JSX } from 'solid-js';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
export interface CtaBannerProps {
|
|
7
|
+
eyebrow?: string;
|
|
8
|
+
headline?: string;
|
|
9
|
+
nogradient?: boolean;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const CtaBanner: Component<CtaBannerProps> = (props) => {
|
|
15
|
+
const [local, rest] = splitProps(props, ['eyebrow', 'headline', 'nogradient', 'children']);
|
|
16
|
+
return (
|
|
17
|
+
<arc-cta-banner eyebrow={local.eyebrow} headline={local.headline} nogradient={local.nogradient} {...rest}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</arc-cta-banner>
|
|
20
|
+
);
|
|
21
|
+
};
|
package/src/content/Tag.tsx
CHANGED
|
@@ -7,14 +7,15 @@ export interface TagProps {
|
|
|
7
7
|
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
8
8
|
removable?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
color?: string;
|
|
10
11
|
children?: JSX.Element;
|
|
11
12
|
[key: string]: unknown;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const Tag: Component<TagProps> = (props) => {
|
|
15
|
-
const [local, rest] = splitProps(props, ['variant', 'removable', 'disabled', 'children']);
|
|
16
|
+
const [local, rest] = splitProps(props, ['variant', 'removable', 'disabled', 'color', 'children']);
|
|
16
17
|
return (
|
|
17
|
-
<arc-tag variant={local.variant} removable={local.removable} disabled={local.disabled} {...rest}>
|
|
18
|
+
<arc-tag variant={local.variant} removable={local.removable} disabled={local.disabled} color={local.color} {...rest}>
|
|
18
19
|
{local.children}
|
|
19
20
|
</arc-tag>
|
|
20
21
|
);
|
package/src/content/index.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -255,3 +255,6 @@ export type { MenuItemProps } from './shared/MenuItem.js';
|
|
|
255
255
|
|
|
256
256
|
export { Option } from './shared/Option.js';
|
|
257
257
|
export type { OptionProps } from './shared/Option.js';
|
|
258
|
+
|
|
259
|
+
export { CtaBanner } from './content/CtaBanner.js';
|
|
260
|
+
export type { CtaBannerProps } from './content/CtaBanner.js';
|
package/src/input/Button.tsx
CHANGED
|
@@ -9,14 +9,16 @@ export interface ButtonProps {
|
|
|
9
9
|
href?: string;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
type?: string;
|
|
12
|
+
_hasPrefix?: string;
|
|
13
|
+
_hasSuffix?: string;
|
|
12
14
|
children?: JSX.Element;
|
|
13
15
|
[key: string]: unknown;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export const Button: Component<ButtonProps> = (props) => {
|
|
17
|
-
const [local, rest] = splitProps(props, ['variant', 'size', 'href', 'disabled', 'type', 'children']);
|
|
19
|
+
const [local, rest] = splitProps(props, ['variant', 'size', 'href', 'disabled', 'type', '_hasPrefix', '_hasSuffix', 'children']);
|
|
18
20
|
return (
|
|
19
|
-
<arc-button variant={local.variant} size={local.size} href={local.href} disabled={local.disabled} type={local.type} {...rest}>
|
|
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}>
|
|
20
22
|
{local.children}
|
|
21
23
|
</arc-button>
|
|
22
24
|
);
|
package/src/input/Form.tsx
CHANGED
|
@@ -7,14 +7,18 @@ export interface FormProps {
|
|
|
7
7
|
action?: string;
|
|
8
8
|
method?: string;
|
|
9
9
|
novalidate?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
errorSummary?: boolean;
|
|
13
|
+
_errors?: string;
|
|
10
14
|
children?: JSX.Element;
|
|
11
15
|
[key: string]: unknown;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
export const Form: Component<FormProps> = (props) => {
|
|
15
|
-
const [local, rest] = splitProps(props, ['action', 'method', 'novalidate', 'children']);
|
|
19
|
+
const [local, rest] = splitProps(props, ['action', 'method', 'novalidate', 'loading', 'disabled', 'errorSummary', '_errors', 'children']);
|
|
16
20
|
return (
|
|
17
|
-
<arc-form action={local.action} method={local.method} novalidate={local.novalidate} {...rest}>
|
|
21
|
+
<arc-form action={local.action} method={local.method} novalidate={local.novalidate} loading={local.loading} disabled={local.disabled} errorSummary={local.errorSummary} _errors={local._errors} {...rest}>
|
|
18
22
|
{local.children}
|
|
19
23
|
</arc-form>
|
|
20
24
|
);
|
package/src/input/Input.tsx
CHANGED
|
@@ -13,14 +13,16 @@ export interface InputProps {
|
|
|
13
13
|
required?: boolean;
|
|
14
14
|
multiline?: boolean;
|
|
15
15
|
rows?: number;
|
|
16
|
+
_hasPrefix?: string;
|
|
17
|
+
_hasSuffix?: string;
|
|
16
18
|
children?: JSX.Element;
|
|
17
19
|
[key: string]: unknown;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export const Input: Component<InputProps> = (props) => {
|
|
21
|
-
const [local, rest] = splitProps(props, ['type', 'name', 'label', 'placeholder', 'value', 'disabled', 'required', 'multiline', 'rows', 'children']);
|
|
23
|
+
const [local, rest] = splitProps(props, ['type', 'name', 'label', 'placeholder', 'value', 'disabled', 'required', 'multiline', 'rows', '_hasPrefix', '_hasSuffix', 'children']);
|
|
22
24
|
return (
|
|
23
|
-
<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} {...rest}>
|
|
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}>
|
|
24
26
|
{local.children}
|
|
25
27
|
</arc-input>
|
|
26
28
|
);
|
|
@@ -6,14 +6,15 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface PageHeaderProps {
|
|
7
7
|
heading?: string;
|
|
8
8
|
description?: string;
|
|
9
|
+
border?: boolean;
|
|
9
10
|
children?: JSX.Element;
|
|
10
11
|
[key: string]: unknown;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const PageHeader: Component<PageHeaderProps> = (props) => {
|
|
14
|
-
const [local, rest] = splitProps(props, ['heading', 'description', 'children']);
|
|
15
|
+
const [local, rest] = splitProps(props, ['heading', 'description', 'border', 'children']);
|
|
15
16
|
return (
|
|
16
|
-
<arc-page-header heading={local.heading} description={local.description} {...rest}>
|
|
17
|
+
<arc-page-header heading={local.heading} description={local.description} border={local.border} {...rest}>
|
|
17
18
|
{local.children}
|
|
18
19
|
</arc-page-header>
|
|
19
20
|
);
|
|
@@ -6,15 +6,16 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface NavItemProps {
|
|
7
7
|
href?: string;
|
|
8
8
|
active?: boolean;
|
|
9
|
+
muted?: boolean;
|
|
9
10
|
description?: string;
|
|
10
11
|
children?: JSX.Element;
|
|
11
12
|
[key: string]: unknown;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const NavItem: Component<NavItemProps> = (props) => {
|
|
15
|
-
const [local, rest] = splitProps(props, ['href', 'active', 'description', 'children']);
|
|
16
|
+
const [local, rest] = splitProps(props, ['href', 'active', 'muted', 'description', 'children']);
|
|
16
17
|
return (
|
|
17
|
-
<arc-nav-item href={local.href} active={local.active} description={local.description} {...rest}>
|
|
18
|
+
<arc-nav-item href={local.href} active={local.active} muted={local.muted} description={local.description} {...rest}>
|
|
18
19
|
{local.children}
|
|
19
20
|
</arc-nav-item>
|
|
20
21
|
);
|