@arclux/arc-ui-preact 1.10.0 → 1.10.2

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.10.0",
3
+ "version": "1.10.2",
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.10.0"
47
+ "@arclux/arc-ui": "1.10.2"
48
48
  },
49
49
  "license": "MIT",
50
50
  "keywords": [
@@ -0,0 +1,22 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface AnimatedNumberProps {
7
+ value?: number;
8
+ duration?: number;
9
+ format?: string;
10
+ prefix?: string;
11
+ suffix?: string;
12
+ decimals?: number;
13
+ locale?: string;
14
+ children?: preact.ComponentChildren;
15
+ [key: string]: unknown;
16
+ }
17
+
18
+ export const AnimatedNumber: FunctionComponent<AnimatedNumberProps> = ({ value, duration, format, prefix, suffix, decimals, locale, children, ...rest }) => (
19
+ <arc-animated-number value={value} duration={duration} format={format} prefix={prefix} suffix={suffix} decimals={decimals} locale={locale} {...rest}>
20
+ {children}
21
+ </arc-animated-number>
22
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface BadgeProps {
7
+ variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
8
+ size?: 'sm' | 'lg';
9
+ color?: string;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const Badge: FunctionComponent<BadgeProps> = ({ variant, size, color, children, ...rest }) => (
15
+ <arc-badge variant={variant} size={size} color={color} {...rest}>
16
+ {children}
17
+ </arc-badge>
18
+ );
@@ -0,0 +1,26 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface DataTableProps {
7
+ rows?: unknown[];
8
+ sortable?: boolean;
9
+ selectable?: boolean;
10
+ sortColumn?: string;
11
+ sortDirection?: string;
12
+ virtual?: boolean;
13
+ rowHeight?: number;
14
+ _columns?: string;
15
+ _selectedRows?: string;
16
+ _startIndex?: string;
17
+ _visibleCount?: string;
18
+ children?: preact.ComponentChildren;
19
+ [key: string]: unknown;
20
+ }
21
+
22
+ export const DataTable: FunctionComponent<DataTableProps> = ({ rows, sortable, selectable, sortColumn, sortDirection, virtual, rowHeight, _columns, _selectedRows, _startIndex, _visibleCount, children, ...rest }) => (
23
+ <arc-data-table rows={rows} sortable={sortable} selectable={selectable} sortColumn={sortColumn} sortDirection={sortDirection} virtual={virtual} rowHeight={rowHeight} _columns={_columns} _selectedRows={_selectedRows} _startIndex={_startIndex} _visibleCount={_visibleCount} {...rest}>
24
+ {children}
25
+ </arc-data-table>
26
+ );
@@ -0,0 +1,21 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface ListProps {
7
+ variant?: 'bordered' | 'separated';
8
+ size?: 'sm' | 'lg';
9
+ selectable?: boolean;
10
+ multiple?: boolean;
11
+ value?: string;
12
+ _items?: string;
13
+ children?: preact.ComponentChildren;
14
+ [key: string]: unknown;
15
+ }
16
+
17
+ export const List: FunctionComponent<ListProps> = ({ variant, size, selectable, multiple, value, _items, children, ...rest }) => (
18
+ <arc-list variant={variant} size={size} selectable={selectable} multiple={multiple} value={value} _items={_items} {...rest}>
19
+ {children}
20
+ </arc-list>
21
+ );
@@ -0,0 +1,22 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface ListItemProps {
7
+ value?: string;
8
+ selected?: boolean;
9
+ disabled?: boolean;
10
+ href?: string;
11
+ _hasPrefix?: string;
12
+ _hasSuffix?: string;
13
+ _hasDescription?: string;
14
+ children?: preact.ComponentChildren;
15
+ [key: string]: unknown;
16
+ }
17
+
18
+ export const ListItem: FunctionComponent<ListItemProps> = ({ value, selected, disabled, href, _hasPrefix, _hasSuffix, _hasDescription, children, ...rest }) => (
19
+ <arc-list-item value={value} selected={selected} disabled={disabled} href={href} _hasPrefix={_hasPrefix} _hasSuffix={_hasSuffix} _hasDescription={_hasDescription} {...rest}>
20
+ {children}
21
+ </arc-list-item>
22
+ );
@@ -0,0 +1,22 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface MeterProps {
7
+ value?: number;
8
+ min?: number;
9
+ max?: number;
10
+ low?: number;
11
+ high?: number;
12
+ optimum?: number;
13
+ label?: string;
14
+ children?: preact.ComponentChildren;
15
+ [key: string]: unknown;
16
+ }
17
+
18
+ export const Meter: FunctionComponent<MeterProps> = ({ value, min, max, low, high, optimum, label, children, ...rest }) => (
19
+ <arc-meter value={value} min={min} max={max} low={low} high={high} optimum={optimum} label={label} {...rest}>
20
+ {children}
21
+ </arc-meter>
22
+ );
@@ -0,0 +1,19 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface StatProps {
7
+ value?: string;
8
+ label?: string;
9
+ trend?: 'up' | 'down' | 'neutral';
10
+ change?: string;
11
+ children?: preact.ComponentChildren;
12
+ [key: string]: unknown;
13
+ }
14
+
15
+ export const Stat: FunctionComponent<StatProps> = ({ value, label, trend, change, children, ...rest }) => (
16
+ <arc-stat value={value} label={label} trend={trend} change={change} {...rest}>
17
+ {children}
18
+ </arc-stat>
19
+ );
@@ -0,0 +1,16 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface StepProps {
7
+ label?: string;
8
+ children?: preact.ComponentChildren;
9
+ [key: string]: unknown;
10
+ }
11
+
12
+ export const Step: FunctionComponent<StepProps> = ({ label, children, ...rest }) => (
13
+ <arc-step label={label} {...rest}>
14
+ {children}
15
+ </arc-step>
16
+ );
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface StepperProps {
7
+ active?: number;
8
+ _steps?: string;
9
+ children?: preact.ComponentChildren;
10
+ [key: string]: unknown;
11
+ }
12
+
13
+ export const Stepper: FunctionComponent<StepperProps> = ({ active, _steps, children, ...rest }) => (
14
+ <arc-stepper active={active} _steps={_steps} {...rest}>
15
+ {children}
16
+ </arc-stepper>
17
+ );
@@ -0,0 +1,19 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TableProps {
7
+ columns?: unknown[];
8
+ rows?: unknown[];
9
+ striped?: boolean;
10
+ compact?: boolean;
11
+ children?: preact.ComponentChildren;
12
+ [key: string]: unknown;
13
+ }
14
+
15
+ export const Table: FunctionComponent<TableProps> = ({ columns, rows, striped, compact, children, ...rest }) => (
16
+ <arc-table columns={columns} rows={rows} striped={striped} compact={compact} {...rest}>
17
+ {children}
18
+ </arc-table>
19
+ );
@@ -0,0 +1,20 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TagProps {
7
+ variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
8
+ size?: 'sm' | 'lg';
9
+ removable?: boolean;
10
+ disabled?: boolean;
11
+ color?: string;
12
+ children?: preact.ComponentChildren;
13
+ [key: string]: unknown;
14
+ }
15
+
16
+ export const Tag: FunctionComponent<TagProps> = ({ variant, size, removable, disabled, color, children, ...rest }) => (
17
+ <arc-tag variant={variant} size={size} removable={removable} disabled={disabled} color={color} {...rest}>
18
+ {children}
19
+ </arc-tag>
20
+ );
@@ -0,0 +1,16 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TimelineProps {
7
+ _items?: string;
8
+ children?: preact.ComponentChildren;
9
+ [key: string]: unknown;
10
+ }
11
+
12
+ export const Timeline: FunctionComponent<TimelineProps> = ({ _items, children, ...rest }) => (
13
+ <arc-timeline _items={_items} {...rest}>
14
+ {children}
15
+ </arc-timeline>
16
+ );
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TimelineItemProps {
7
+ heading?: string;
8
+ date?: string;
9
+ children?: preact.ComponentChildren;
10
+ [key: string]: unknown;
11
+ }
12
+
13
+ export const TimelineItem: FunctionComponent<TimelineItemProps> = ({ heading, date, children, ...rest }) => (
14
+ <arc-timeline-item heading={heading} date={date} {...rest}>
15
+ {children}
16
+ </arc-timeline-item>
17
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface ValueCardProps {
7
+ icon?: string;
8
+ heading?: string;
9
+ description?: string;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const ValueCard: FunctionComponent<ValueCardProps> = ({ icon, heading, description, children, ...rest }) => (
15
+ <arc-value-card icon={icon} heading={heading} description={description} {...rest}>
16
+ {children}
17
+ </arc-value-card>
18
+ );
@@ -4,7 +4,6 @@ import { type FunctionComponent } from 'preact';
4
4
  import '@arclux/arc-ui';
5
5
 
6
6
  export interface TabsProps {
7
- items?: unknown[];
8
7
  selected?: number;
9
8
  align?: 'center' | 'end';
10
9
  variant?: 'pills';
@@ -13,8 +12,8 @@ export interface TabsProps {
13
12
  [key: string]: unknown;
14
13
  }
15
14
 
16
- export const Tabs: FunctionComponent<TabsProps> = ({ items, selected, align, variant, _tabs, children, ...rest }) => (
17
- <arc-tabs items={items} selected={selected} align={align} variant={variant} _tabs={_tabs} {...rest}>
15
+ export const Tabs: FunctionComponent<TabsProps> = ({ selected, align, variant, _tabs, children, ...rest }) => (
16
+ <arc-tabs selected={selected} align={align} variant={variant} _tabs={_tabs} {...rest}>
18
17
  {children}
19
18
  </arc-tabs>
20
19
  );
@@ -6,6 +6,7 @@ import '@arclux/arc-ui';
6
6
  export interface TopBarProps {
7
7
  heading?: string;
8
8
  fixed?: boolean;
9
+ contained?: string;
9
10
  menuOpen?: boolean;
10
11
  mobileMenu?: string;
11
12
  menuPosition?: string;
@@ -14,8 +15,8 @@ export interface TopBarProps {
14
15
  [key: string]: unknown;
15
16
  }
16
17
 
17
- export const TopBar: FunctionComponent<TopBarProps> = ({ heading, fixed, menuOpen, mobileMenu, menuPosition, navAlign, children, ...rest }) => (
18
- <arc-top-bar heading={heading} fixed={fixed} menuOpen={menuOpen} mobileMenu={mobileMenu} menuPosition={menuPosition} navAlign={navAlign} {...rest}>
18
+ export const TopBar: FunctionComponent<TopBarProps> = ({ heading, fixed, contained, menuOpen, mobileMenu, menuPosition, navAlign, children, ...rest }) => (
19
+ <arc-top-bar heading={heading} fixed={fixed} contained={contained} menuOpen={menuOpen} mobileMenu={mobileMenu} menuPosition={menuPosition} navAlign={navAlign} {...rest}>
19
20
  {children}
20
21
  </arc-top-bar>
21
22
  );
@@ -0,0 +1,20 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface CodeBlockProps {
7
+ language?: string;
8
+ filename?: string;
9
+ code?: string;
10
+ variant?: 'window' | 'basic';
11
+ _highlightedHtml?: string;
12
+ children?: preact.ComponentChildren;
13
+ [key: string]: unknown;
14
+ }
15
+
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}>
18
+ {children}
19
+ </arc-code-block>
20
+ );
@@ -0,0 +1,18 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface HighlightProps {
7
+ text?: string;
8
+ query?: string;
9
+ caseSensitive?: boolean;
10
+ children?: preact.ComponentChildren;
11
+ [key: string]: unknown;
12
+ }
13
+
14
+ export const Highlight: FunctionComponent<HighlightProps> = ({ text, query, caseSensitive, children, ...rest }) => (
15
+ <arc-highlight text={text} query={query} caseSensitive={caseSensitive} {...rest}>
16
+ {children}
17
+ </arc-highlight>
18
+ );
@@ -0,0 +1,15 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface KbdProps {
7
+ children?: preact.ComponentChildren;
8
+ [key: string]: unknown;
9
+ }
10
+
11
+ export const Kbd: FunctionComponent<KbdProps> = ({ children, ...rest }) => (
12
+ <arc-kbd {...rest}>
13
+ {children}
14
+ </arc-kbd>
15
+ );
@@ -0,0 +1,16 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface MarkdownProps {
7
+ content?: string;
8
+ children?: preact.ComponentChildren;
9
+ [key: string]: unknown;
10
+ }
11
+
12
+ export const Markdown: FunctionComponent<MarkdownProps> = ({ content, children, ...rest }) => (
13
+ <arc-markdown content={content} {...rest}>
14
+ {children}
15
+ </arc-markdown>
16
+ );
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TextProps {
7
+ variant?: 'accent' | 'code';
8
+ as?: string;
9
+ children?: preact.ComponentChildren;
10
+ [key: string]: unknown;
11
+ }
12
+
13
+ export const Text: FunctionComponent<TextProps> = ({ variant, as, children, ...rest }) => (
14
+ <arc-text variant={variant} as={as} {...rest}>
15
+ {children}
16
+ </arc-text>
17
+ );
@@ -0,0 +1,17 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { type FunctionComponent } from 'preact';
4
+ import '@arclux/arc-ui';
5
+
6
+ export interface TruncateProps {
7
+ lines?: number;
8
+ expanded?: boolean;
9
+ children?: preact.ComponentChildren;
10
+ [key: string]: unknown;
11
+ }
12
+
13
+ export const Truncate: FunctionComponent<TruncateProps> = ({ lines, expanded, children, ...rest }) => (
14
+ <arc-truncate lines={lines} expanded={expanded} {...rest}>
15
+ {children}
16
+ </arc-truncate>
17
+ );