@apcrda/ui 0.5.0 → 0.5.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/dist/components/NumberInput/NumberInput.d.ts +2 -0
- package/dist/components/NumberInput/NumberInput.types.d.ts +9 -0
- package/dist/components/NumberInput/index.d.ts +2 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +2 -0
- package/dist/components/PasswordInput/PasswordInput.types.d.ts +6 -0
- package/dist/components/PasswordInput/index.d.ts +2 -0
- package/dist/components/Tag/Tag.d.ts +5 -0
- package/dist/components/Tag/Tag.types.d.ts +10 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/Timeline/Timeline.d.ts +5 -0
- package/dist/components/Timeline/Timeline.types.d.ts +14 -0
- package/dist/components/Timeline/index.d.ts +2 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/index.js +2832 -2574
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> {
|
|
3
|
+
readonly value?: number;
|
|
4
|
+
readonly onChange?: (value: number) => void;
|
|
5
|
+
readonly min?: number;
|
|
6
|
+
readonly max?: number;
|
|
7
|
+
readonly step?: number;
|
|
8
|
+
readonly error?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type TagVariant = 'neutral' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
export type TagSize = 'sm' | 'md';
|
|
4
|
+
export interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
5
|
+
readonly variant?: TagVariant;
|
|
6
|
+
readonly size?: TagSize;
|
|
7
|
+
readonly selected?: boolean;
|
|
8
|
+
readonly disabled?: boolean;
|
|
9
|
+
readonly onRemove?: () => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type TimelineItemVariant = 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
export interface TimelineItemProps {
|
|
4
|
+
readonly id?: string | number;
|
|
5
|
+
readonly icon?: ReactNode;
|
|
6
|
+
readonly variant?: TimelineItemVariant;
|
|
7
|
+
readonly title: string;
|
|
8
|
+
readonly description?: string;
|
|
9
|
+
readonly timestamp?: string;
|
|
10
|
+
readonly children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
|
|
13
|
+
readonly items: TimelineItemProps[];
|
|
14
|
+
}
|
|
@@ -24,7 +24,9 @@ export * from './Input';
|
|
|
24
24
|
export * from './Label';
|
|
25
25
|
export * from './MultiSelect';
|
|
26
26
|
export * from './NotificationCenter';
|
|
27
|
+
export * from './NumberInput';
|
|
27
28
|
export * from './Pagination';
|
|
29
|
+
export * from './PasswordInput';
|
|
28
30
|
export * from './Popover';
|
|
29
31
|
export * from './Progress';
|
|
30
32
|
export * from './RadioGroup';
|
|
@@ -35,7 +37,9 @@ export * from './StatCard';
|
|
|
35
37
|
export * from './Stepper';
|
|
36
38
|
export * from './Switch';
|
|
37
39
|
export * from './Table';
|
|
40
|
+
export * from './Tag';
|
|
38
41
|
export * from './Tabs';
|
|
39
42
|
export * from './Textarea';
|
|
43
|
+
export * from './Timeline';
|
|
40
44
|
export * from './Toast';
|
|
41
45
|
export * from './Tooltip';
|