@arclux/arc-ui-solid 1.1.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/Tag.tsx +3 -2
- package/src/input/Button.tsx +4 -2
- package/src/input/Input.tsx +4 -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/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/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/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
|
);
|