@arclux/arc-ui-preact 1.5.2 → 1.7.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arclux/arc-ui-preact",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Preact wrappers for ARC UI Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"preact": ">=10.19.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@arclux/arc-ui": "1.
|
|
47
|
+
"@arclux/arc-ui": "1.7.0"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"keywords": [
|
|
@@ -7,13 +7,14 @@ export interface CodeBlockProps {
|
|
|
7
7
|
language?: string;
|
|
8
8
|
filename?: string;
|
|
9
9
|
code?: string;
|
|
10
|
-
|
|
10
|
+
variant?: 'window' | 'basic';
|
|
11
|
+
_highlightedHtml?: string;
|
|
11
12
|
children?: preact.ComponentChildren;
|
|
12
13
|
[key: string]: unknown;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
export const CodeBlock: FunctionComponent<CodeBlockProps> = ({ language, filename, code,
|
|
16
|
-
<arc-code-block language={language} filename={filename} code={code}
|
|
16
|
+
export const CodeBlock: FunctionComponent<CodeBlockProps> = ({ language, filename, code, variant, _highlightedHtml, children, ...rest }) => (
|
|
17
|
+
<arc-code-block language={language} filename={filename} code={code} variant={variant} _highlightedHtml={_highlightedHtml} {...rest}>
|
|
17
18
|
{children}
|
|
18
19
|
</arc-code-block>
|
|
19
20
|
);
|
|
@@ -8,12 +8,13 @@ export interface FeatureCardProps {
|
|
|
8
8
|
heading?: string;
|
|
9
9
|
description?: string;
|
|
10
10
|
href?: string;
|
|
11
|
+
action?: string;
|
|
11
12
|
children?: preact.ComponentChildren;
|
|
12
13
|
[key: string]: unknown;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
export const FeatureCard: FunctionComponent<FeatureCardProps> = ({ icon, heading, description, href, children, ...rest }) => (
|
|
16
|
-
<arc-feature-card icon={icon} heading={heading} description={description} href={href} {...rest}>
|
|
16
|
+
export const FeatureCard: FunctionComponent<FeatureCardProps> = ({ icon, heading, description, href, action, children, ...rest }) => (
|
|
17
|
+
<arc-feature-card icon={icon} heading={heading} description={description} href={href} action={action} {...rest}>
|
|
17
18
|
{children}
|
|
18
19
|
</arc-feature-card>
|
|
19
20
|
);
|
|
@@ -6,14 +6,14 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface NavItemProps {
|
|
7
7
|
href?: string;
|
|
8
8
|
active?: boolean;
|
|
9
|
-
|
|
9
|
+
variant?: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
children?: preact.ComponentChildren;
|
|
12
12
|
[key: string]: unknown;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export const NavItem: FunctionComponent<NavItemProps> = ({ href, active,
|
|
16
|
-
<arc-nav-item href={href} active={active}
|
|
15
|
+
export const NavItem: FunctionComponent<NavItemProps> = ({ href, active, variant, description, children, ...rest }) => (
|
|
16
|
+
<arc-nav-item href={href} active={active} variant={variant} description={description} {...rest}>
|
|
17
17
|
{children}
|
|
18
18
|
</arc-nav-item>
|
|
19
19
|
);
|