@arclux/arc-ui-preact 1.10.2 → 2.0.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 +3 -3
- package/src/data/Comparison.tsx +17 -0
- package/src/data/ComparisonColumn.tsx +18 -0
- package/src/data/CountdownTimer.tsx +24 -0
- package/src/data/DescriptionItem.tsx +16 -0
- package/src/data/DescriptionList.tsx +17 -0
- package/src/data/Diff.tsx +18 -0
- package/src/data/KeyValue.tsx +17 -0
- package/src/data/KvPair.tsx +16 -0
- package/src/data/Sparkline.tsx +21 -0
- package/src/index.ts +51 -0
- package/src/input/RangeSlider.tsx +24 -0
- package/src/input/TimePicker.tsx +28 -0
- package/src/navigation/Footer.tsx +3 -2
- package/src/navigation/SidebarLink.tsx +3 -2
- package/src/navigation/SpyLink.tsx +3 -2
- package/src/navigation/Tabs.tsx +3 -2
- package/src/typography/Blockquote.tsx +17 -0
- package/src/typography/GradientText.tsx +18 -0
- package/src/typography/NumberFormat.tsx +21 -0
- package/src/typography/Prose.tsx +16 -0
- package/src/typography/TimeAgo.tsx +18 -0
- package/src/typography/Typewriter.tsx +22 -0
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arclux/arc-ui-preact",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Preact wrappers for ARC UI Web Components.",
|
|
5
|
+
"sideEffects": false,
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "src/index.ts",
|
|
7
8
|
"module": "src/index.ts",
|
|
@@ -39,12 +40,11 @@
|
|
|
39
40
|
"files": [
|
|
40
41
|
"src/"
|
|
41
42
|
],
|
|
42
|
-
"sideEffects": false,
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"preact": ">=10.19.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@arclux/arc-ui": "
|
|
47
|
+
"@arclux/arc-ui": "2.0.0"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"keywords": [
|
|
@@ -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 ComparisonProps {
|
|
7
|
+
features?: string;
|
|
8
|
+
_columns?: string;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Comparison: FunctionComponent<ComparisonProps> = ({ features, _columns, children, ...rest }) => (
|
|
14
|
+
<arc-comparison features={features} _columns={_columns} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-comparison>
|
|
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 ComparisonColumnProps {
|
|
7
|
+
heading?: string;
|
|
8
|
+
highlight?: boolean;
|
|
9
|
+
values?: string;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const ComparisonColumn: FunctionComponent<ComparisonColumnProps> = ({ heading, highlight, values, children, ...rest }) => (
|
|
15
|
+
<arc-comparison-column heading={heading} highlight={highlight} values={values} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-comparison-column>
|
|
18
|
+
);
|
|
@@ -0,0 +1,24 @@
|
|
|
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 CountdownTimerProps {
|
|
7
|
+
target?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
expired?: string;
|
|
10
|
+
hideZeroSegments?: boolean;
|
|
11
|
+
_days?: string;
|
|
12
|
+
_hours?: string;
|
|
13
|
+
_minutes?: string;
|
|
14
|
+
_seconds?: string;
|
|
15
|
+
_expired?: string;
|
|
16
|
+
children?: preact.ComponentChildren;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const CountdownTimer: FunctionComponent<CountdownTimerProps> = ({ target, label, expired, hideZeroSegments, _days, _hours, _minutes, _seconds, _expired, children, ...rest }) => (
|
|
21
|
+
<arc-countdown-timer target={target} label={label} expired={expired} hideZeroSegments={hideZeroSegments} _days={_days} _hours={_hours} _minutes={_minutes} _seconds={_seconds} _expired={_expired} {...rest}>
|
|
22
|
+
{children}
|
|
23
|
+
</arc-countdown-timer>
|
|
24
|
+
);
|
|
@@ -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 DescriptionItemProps {
|
|
7
|
+
term?: string;
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const DescriptionItem: FunctionComponent<DescriptionItemProps> = ({ term, children, ...rest }) => (
|
|
13
|
+
<arc-description-item term={term} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-description-item>
|
|
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 DescriptionListProps {
|
|
7
|
+
columns?: number;
|
|
8
|
+
dividers?: boolean;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const DescriptionList: FunctionComponent<DescriptionListProps> = ({ columns, dividers, children, ...rest }) => (
|
|
14
|
+
<arc-description-list columns={columns} dividers={dividers} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-description-list>
|
|
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 DiffProps {
|
|
7
|
+
before?: string;
|
|
8
|
+
after?: string;
|
|
9
|
+
mode?: 'side-by-side';
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Diff: FunctionComponent<DiffProps> = ({ before, after, mode, children, ...rest }) => (
|
|
15
|
+
<arc-diff before={before} after={after} mode={mode} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-diff>
|
|
18
|
+
);
|
|
@@ -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 KeyValueProps {
|
|
7
|
+
layout?: 'horizontal' | 'stacked';
|
|
8
|
+
dividers?: boolean;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const KeyValue: FunctionComponent<KeyValueProps> = ({ layout, dividers, children, ...rest }) => (
|
|
14
|
+
<arc-key-value layout={layout} dividers={dividers} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-key-value>
|
|
17
|
+
);
|
|
@@ -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 KvPairProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const KvPair: FunctionComponent<KvPairProps> = ({ label, children, ...rest }) => (
|
|
13
|
+
<arc-kv-pair label={label} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-kv-pair>
|
|
16
|
+
);
|
|
@@ -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 SparklineProps {
|
|
7
|
+
data?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
height?: number;
|
|
12
|
+
fill?: boolean;
|
|
13
|
+
children?: preact.ComponentChildren;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const Sparkline: FunctionComponent<SparklineProps> = ({ data, type, color, width, height, fill, children, ...rest }) => (
|
|
18
|
+
<arc-sparkline data={data} type={type} color={color} width={width} height={height} fill={fill} {...rest}>
|
|
19
|
+
{children}
|
|
20
|
+
</arc-sparkline>
|
|
21
|
+
);
|
package/src/index.ts
CHANGED
|
@@ -381,3 +381,54 @@ export type { SnackbarProps } from './feedback/Snackbar.js';
|
|
|
381
381
|
|
|
382
382
|
export { Spotlight } from './feedback/Spotlight.js';
|
|
383
383
|
export type { SpotlightProps } from './feedback/Spotlight.js';
|
|
384
|
+
|
|
385
|
+
export { ComparisonColumn } from './data/ComparisonColumn.js';
|
|
386
|
+
export type { ComparisonColumnProps } from './data/ComparisonColumn.js';
|
|
387
|
+
|
|
388
|
+
export { CountdownTimer } from './data/CountdownTimer.js';
|
|
389
|
+
export type { CountdownTimerProps } from './data/CountdownTimer.js';
|
|
390
|
+
|
|
391
|
+
export { DescriptionItem } from './data/DescriptionItem.js';
|
|
392
|
+
export type { DescriptionItemProps } from './data/DescriptionItem.js';
|
|
393
|
+
|
|
394
|
+
export { Diff } from './data/Diff.js';
|
|
395
|
+
export type { DiffProps } from './data/Diff.js';
|
|
396
|
+
|
|
397
|
+
export { KvPair } from './data/KvPair.js';
|
|
398
|
+
export type { KvPairProps } from './data/KvPair.js';
|
|
399
|
+
|
|
400
|
+
export { Sparkline } from './data/Sparkline.js';
|
|
401
|
+
export type { SparklineProps } from './data/Sparkline.js';
|
|
402
|
+
|
|
403
|
+
export { Blockquote } from './typography/Blockquote.js';
|
|
404
|
+
export type { BlockquoteProps } from './typography/Blockquote.js';
|
|
405
|
+
|
|
406
|
+
export { GradientText } from './typography/GradientText.js';
|
|
407
|
+
export type { GradientTextProps } from './typography/GradientText.js';
|
|
408
|
+
|
|
409
|
+
export { NumberFormat } from './typography/NumberFormat.js';
|
|
410
|
+
export type { NumberFormatProps } from './typography/NumberFormat.js';
|
|
411
|
+
|
|
412
|
+
export { Prose } from './typography/Prose.js';
|
|
413
|
+
export type { ProseProps } from './typography/Prose.js';
|
|
414
|
+
|
|
415
|
+
export { TimeAgo } from './typography/TimeAgo.js';
|
|
416
|
+
export type { TimeAgoProps } from './typography/TimeAgo.js';
|
|
417
|
+
|
|
418
|
+
export { Typewriter } from './typography/Typewriter.js';
|
|
419
|
+
export type { TypewriterProps } from './typography/Typewriter.js';
|
|
420
|
+
|
|
421
|
+
export { Comparison } from './data/Comparison.js';
|
|
422
|
+
export type { ComparisonProps } from './data/Comparison.js';
|
|
423
|
+
|
|
424
|
+
export { DescriptionList } from './data/DescriptionList.js';
|
|
425
|
+
export type { DescriptionListProps } from './data/DescriptionList.js';
|
|
426
|
+
|
|
427
|
+
export { KeyValue } from './data/KeyValue.js';
|
|
428
|
+
export type { KeyValueProps } from './data/KeyValue.js';
|
|
429
|
+
|
|
430
|
+
export { RangeSlider } from './input/RangeSlider.js';
|
|
431
|
+
export type { RangeSliderProps } from './input/RangeSlider.js';
|
|
432
|
+
|
|
433
|
+
export { TimePicker } from './input/TimePicker.js';
|
|
434
|
+
export type { TimePickerProps } from './input/TimePicker.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
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 RangeSliderProps {
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
step?: number;
|
|
10
|
+
low?: number;
|
|
11
|
+
high?: number;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
showValues?: boolean;
|
|
15
|
+
_dragging?: string;
|
|
16
|
+
children?: preact.ComponentChildren;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const RangeSlider: FunctionComponent<RangeSliderProps> = ({ min, max, step, low, high, disabled, label, showValues, _dragging, children, ...rest }) => (
|
|
21
|
+
<arc-range-slider min={min} max={max} step={step} low={low} high={high} disabled={disabled} label={label} showValues={showValues} _dragging={_dragging} {...rest}>
|
|
22
|
+
{children}
|
|
23
|
+
</arc-range-slider>
|
|
24
|
+
);
|
|
@@ -0,0 +1,28 @@
|
|
|
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 TimePickerProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
min?: string;
|
|
9
|
+
max?: string;
|
|
10
|
+
step?: number;
|
|
11
|
+
format?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
_open?: string;
|
|
16
|
+
_selectedHour?: string;
|
|
17
|
+
_selectedMinute?: string;
|
|
18
|
+
_selectedPeriod?: string;
|
|
19
|
+
_focusedColumn?: string;
|
|
20
|
+
children?: preact.ComponentChildren;
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const TimePicker: FunctionComponent<TimePickerProps> = ({ value, min, max, step, format, placeholder, disabled, label, _open, _selectedHour, _selectedMinute, _selectedPeriod, _focusedColumn, children, ...rest }) => (
|
|
25
|
+
<arc-time-picker value={value} min={min} max={max} step={step} format={format} placeholder={placeholder} disabled={disabled} label={label} _open={_open} _selectedHour={_selectedHour} _selectedMinute={_selectedMinute} _selectedPeriod={_selectedPeriod} _focusedColumn={_focusedColumn} {...rest}>
|
|
26
|
+
{children}
|
|
27
|
+
</arc-time-picker>
|
|
28
|
+
);
|
|
@@ -6,13 +6,14 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface FooterProps {
|
|
7
7
|
compact?: boolean;
|
|
8
8
|
border?: boolean;
|
|
9
|
+
contained?: string;
|
|
9
10
|
align?: 'center';
|
|
10
11
|
children?: preact.ComponentChildren;
|
|
11
12
|
[key: string]: unknown;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
export const Footer: FunctionComponent<FooterProps> = ({ compact, border, align, children, ...rest }) => (
|
|
15
|
-
<arc-footer compact={compact} border={border} align={align} {...rest}>
|
|
15
|
+
export const Footer: FunctionComponent<FooterProps> = ({ compact, border, contained, align, children, ...rest }) => (
|
|
16
|
+
<arc-footer compact={compact} border={border} contained={contained} align={align} {...rest}>
|
|
16
17
|
{children}
|
|
17
18
|
</arc-footer>
|
|
18
19
|
);
|
|
@@ -6,12 +6,13 @@ import '@arclux/arc-ui';
|
|
|
6
6
|
export interface SidebarLinkProps {
|
|
7
7
|
href?: string;
|
|
8
8
|
active?: boolean;
|
|
9
|
+
level?: number;
|
|
9
10
|
children?: preact.ComponentChildren;
|
|
10
11
|
[key: string]: unknown;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
export const SidebarLink: FunctionComponent<SidebarLinkProps> = ({ href, active, children, ...rest }) => (
|
|
14
|
-
<arc-sidebar-link href={href} active={active} {...rest}>
|
|
14
|
+
export const SidebarLink: FunctionComponent<SidebarLinkProps> = ({ href, active, level, children, ...rest }) => (
|
|
15
|
+
<arc-sidebar-link href={href} active={active} level={level} {...rest}>
|
|
15
16
|
{children}
|
|
16
17
|
</arc-sidebar-link>
|
|
17
18
|
);
|
|
@@ -5,12 +5,13 @@ import '@arclux/arc-ui';
|
|
|
5
5
|
|
|
6
6
|
export interface SpyLinkProps {
|
|
7
7
|
target?: string;
|
|
8
|
+
level?: number;
|
|
8
9
|
children?: preact.ComponentChildren;
|
|
9
10
|
[key: string]: unknown;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export const SpyLink: FunctionComponent<SpyLinkProps> = ({ target, children, ...rest }) => (
|
|
13
|
-
<arc-spy-link target={target} {...rest}>
|
|
13
|
+
export const SpyLink: FunctionComponent<SpyLinkProps> = ({ target, level, children, ...rest }) => (
|
|
14
|
+
<arc-spy-link target={target} level={level} {...rest}>
|
|
14
15
|
{children}
|
|
15
16
|
</arc-spy-link>
|
|
16
17
|
);
|
package/src/navigation/Tabs.tsx
CHANGED
|
@@ -7,13 +7,14 @@ export interface TabsProps {
|
|
|
7
7
|
selected?: number;
|
|
8
8
|
align?: 'center' | 'end';
|
|
9
9
|
variant?: 'pills';
|
|
10
|
+
orientation?: 'vertical';
|
|
10
11
|
_tabs?: string;
|
|
11
12
|
children?: preact.ComponentChildren;
|
|
12
13
|
[key: string]: unknown;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
export const Tabs: FunctionComponent<TabsProps> = ({ selected, align, variant, _tabs, children, ...rest }) => (
|
|
16
|
-
<arc-tabs selected={selected} align={align} variant={variant} _tabs={_tabs} {...rest}>
|
|
16
|
+
export const Tabs: FunctionComponent<TabsProps> = ({ selected, align, variant, orientation, _tabs, children, ...rest }) => (
|
|
17
|
+
<arc-tabs selected={selected} align={align} variant={variant} orientation={orientation} _tabs={_tabs} {...rest}>
|
|
17
18
|
{children}
|
|
18
19
|
</arc-tabs>
|
|
19
20
|
);
|
|
@@ -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 BlockquoteProps {
|
|
7
|
+
cite?: string;
|
|
8
|
+
variant?: string;
|
|
9
|
+
children?: preact.ComponentChildren;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const Blockquote: FunctionComponent<BlockquoteProps> = ({ cite, variant, children, ...rest }) => (
|
|
14
|
+
<arc-blockquote cite={cite} variant={variant} {...rest}>
|
|
15
|
+
{children}
|
|
16
|
+
</arc-blockquote>
|
|
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 GradientTextProps {
|
|
7
|
+
variant?: 'accent' | 'display' | 'sunset' | 'ocean';
|
|
8
|
+
gradient?: string;
|
|
9
|
+
animate?: boolean;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const GradientText: FunctionComponent<GradientTextProps> = ({ variant, gradient, animate, children, ...rest }) => (
|
|
15
|
+
<arc-gradient-text variant={variant} gradient={gradient} animate={animate} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-gradient-text>
|
|
18
|
+
);
|
|
@@ -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 NumberFormatProps {
|
|
7
|
+
value?: number;
|
|
8
|
+
type?: string;
|
|
9
|
+
locale?: string;
|
|
10
|
+
currency?: string;
|
|
11
|
+
decimals?: number;
|
|
12
|
+
notation?: string;
|
|
13
|
+
children?: preact.ComponentChildren;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const NumberFormat: FunctionComponent<NumberFormatProps> = ({ value, type, locale, currency, decimals, notation, children, ...rest }) => (
|
|
18
|
+
<arc-number-format value={value} type={type} locale={locale} currency={currency} decimals={decimals} notation={notation} {...rest}>
|
|
19
|
+
{children}
|
|
20
|
+
</arc-number-format>
|
|
21
|
+
);
|
|
@@ -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 ProseProps {
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
children?: preact.ComponentChildren;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Prose: FunctionComponent<ProseProps> = ({ size, children, ...rest }) => (
|
|
13
|
+
<arc-prose size={size} {...rest}>
|
|
14
|
+
{children}
|
|
15
|
+
</arc-prose>
|
|
16
|
+
);
|
|
@@ -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 TimeAgoProps {
|
|
7
|
+
datetime?: string;
|
|
8
|
+
live?: boolean;
|
|
9
|
+
locale?: string;
|
|
10
|
+
children?: preact.ComponentChildren;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const TimeAgo: FunctionComponent<TimeAgoProps> = ({ datetime, live, locale, children, ...rest }) => (
|
|
15
|
+
<arc-time-ago datetime={datetime} live={live} locale={locale} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</arc-time-ago>
|
|
18
|
+
);
|
|
@@ -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 TypewriterProps {
|
|
7
|
+
text?: string;
|
|
8
|
+
speed?: number;
|
|
9
|
+
delay?: number;
|
|
10
|
+
cursor?: boolean;
|
|
11
|
+
loop?: boolean;
|
|
12
|
+
_displayText?: string;
|
|
13
|
+
_complete?: string;
|
|
14
|
+
children?: preact.ComponentChildren;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const Typewriter: FunctionComponent<TypewriterProps> = ({ text, speed, delay, cursor, loop, _displayText, _complete, children, ...rest }) => (
|
|
19
|
+
<arc-typewriter text={text} speed={speed} delay={delay} cursor={cursor} loop={loop} _displayText={_displayText} _complete={_complete} {...rest}>
|
|
20
|
+
{children}
|
|
21
|
+
</arc-typewriter>
|
|
22
|
+
);
|