@true-tech-team/react-components 0.0.1 → 0.0.3
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/README.md +103 -1
- package/index.css +1 -1
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/index.mjs +4781 -3409
- package/lib/components/buttons/Button/Button.d.ts +1 -1
- package/lib/components/buttons/IconButton/IconButton.d.ts +1 -1
- package/lib/components/display/Avatar/Avatar.d.ts +58 -0
- package/lib/components/display/Avatar/index.d.ts +2 -0
- package/lib/components/display/Badge/Badge.d.ts +48 -0
- package/lib/components/display/Badge/index.d.ts +3 -0
- package/lib/components/display/Chip/Chip.d.ts +61 -0
- package/lib/components/display/Chip/index.d.ts +3 -0
- package/lib/components/display/CircularProgress/CircularProgress.d.ts +65 -0
- package/lib/components/display/CircularProgress/index.d.ts +3 -0
- package/lib/components/display/Icon/Icon.d.ts +1 -1
- package/lib/components/display/Icon/icons/Account.d.ts +3 -0
- package/lib/components/display/Icon/icons/Activity.d.ts +3 -0
- package/lib/components/display/Icon/icons/AlignCenter.d.ts +3 -0
- package/lib/components/display/Icon/icons/AlignJustify.d.ts +3 -0
- package/lib/components/display/Icon/icons/AlignLeft.d.ts +3 -0
- package/lib/components/display/Icon/icons/AlignRight.d.ts +3 -0
- package/lib/components/display/Icon/icons/ArrowDown.d.ts +3 -0
- package/lib/components/display/Icon/icons/ArrowDownLeft.d.ts +3 -0
- package/lib/components/display/Icon/icons/ArrowDownRight.d.ts +3 -0
- package/lib/components/display/Icon/icons/ArrowLeft.d.ts +3 -0
- package/lib/components/display/Icon/icons/ArrowRight.d.ts +3 -0
- package/lib/components/display/Icon/icons/ArrowUp.d.ts +3 -0
- package/lib/components/display/Icon/icons/ArrowUpLeft.d.ts +3 -0
- package/lib/components/display/Icon/icons/ArrowUpRight.d.ts +3 -0
- package/lib/components/display/Icon/icons/AtSign.d.ts +3 -0
- package/lib/components/display/Icon/icons/BarChart2.d.ts +3 -0
- package/lib/components/display/Icon/icons/Battery.d.ts +3 -0
- package/lib/components/display/Icon/icons/BatteryCharging.d.ts +3 -0
- package/lib/components/display/Icon/icons/Bell.d.ts +3 -0
- package/lib/components/display/Icon/icons/BellOff.d.ts +3 -0
- package/lib/components/display/Icon/icons/Bluetooth.d.ts +3 -0
- package/lib/components/display/Icon/icons/Bold.d.ts +3 -0
- package/lib/components/display/Icon/icons/Bookmark.d.ts +3 -0
- package/lib/components/display/Icon/icons/BookmarkPlus.d.ts +3 -0
- package/lib/components/display/Icon/icons/Building.d.ts +3 -0
- package/lib/components/display/Icon/icons/Calendar.d.ts +3 -0
- package/lib/components/display/Icon/icons/Camera.d.ts +3 -0
- package/lib/components/display/Icon/icons/ChartBar.d.ts +3 -0
- package/lib/components/display/Icon/icons/ChartLine.d.ts +3 -0
- package/lib/components/display/Icon/icons/Check.d.ts +3 -0
- package/lib/components/display/Icon/icons/ChevronDown.d.ts +3 -0
- package/lib/components/display/Icon/icons/ChevronLeft.d.ts +3 -0
- package/lib/components/display/Icon/icons/ChevronRight.d.ts +3 -0
- package/lib/components/display/Icon/icons/ChevronUp.d.ts +3 -0
- package/lib/components/display/Icon/icons/Clock.d.ts +3 -0
- package/lib/components/display/Icon/icons/Close.d.ts +3 -0
- package/lib/components/display/Icon/icons/Cloud.d.ts +3 -0
- package/lib/components/display/Icon/icons/CloudDownload.d.ts +3 -0
- package/lib/components/display/Icon/icons/CloudOff.d.ts +3 -0
- package/lib/components/display/Icon/icons/CloudUpload.d.ts +3 -0
- package/lib/components/display/Icon/icons/Code.d.ts +3 -0
- package/lib/components/display/Icon/icons/Compass.d.ts +3 -0
- package/lib/components/display/Icon/icons/Copy.d.ts +3 -0
- package/lib/components/display/Icon/icons/CornerDownLeft.d.ts +3 -0
- package/lib/components/display/Icon/icons/CornerDownRight.d.ts +3 -0
- package/lib/components/display/Icon/icons/CornerUpLeft.d.ts +3 -0
- package/lib/components/display/Icon/icons/CornerUpRight.d.ts +3 -0
- package/lib/components/display/Icon/icons/Cpu.d.ts +3 -0
- package/lib/components/display/Icon/icons/CreditCard.d.ts +3 -0
- package/lib/components/display/Icon/icons/Crosshair.d.ts +3 -0
- package/lib/components/display/Icon/icons/Database.d.ts +3 -0
- package/lib/components/display/Icon/icons/Delete.d.ts +3 -0
- package/lib/components/display/Icon/icons/Dollar.d.ts +3 -0
- package/lib/components/display/Icon/icons/Download.d.ts +3 -0
- package/lib/components/display/Icon/icons/Edit.d.ts +3 -0
- package/lib/components/display/Icon/icons/Error.d.ts +3 -0
- package/lib/components/display/Icon/icons/ExternalLink.d.ts +3 -0
- package/lib/components/display/Icon/icons/Eye.d.ts +3 -0
- package/lib/components/display/Icon/icons/EyeOff.d.ts +3 -0
- package/lib/components/display/Icon/icons/File.d.ts +3 -0
- package/lib/components/display/Icon/icons/FileCheck.d.ts +3 -0
- package/lib/components/display/Icon/icons/FileMinus.d.ts +3 -0
- package/lib/components/display/Icon/icons/FilePlus.d.ts +3 -0
- package/lib/components/display/Icon/icons/FileText.d.ts +3 -0
- package/lib/components/display/Icon/icons/Filter.d.ts +3 -0
- package/lib/components/display/Icon/icons/Folder.d.ts +3 -0
- package/lib/components/display/Icon/icons/FolderMinus.d.ts +3 -0
- package/lib/components/display/Icon/icons/FolderOpen.d.ts +3 -0
- package/lib/components/display/Icon/icons/FolderPlus.d.ts +3 -0
- package/lib/components/display/Icon/icons/Gift.d.ts +3 -0
- package/lib/components/display/Icon/icons/Globe.d.ts +3 -0
- package/lib/components/display/Icon/icons/Grid.d.ts +3 -0
- package/lib/components/display/Icon/icons/HardDrive.d.ts +3 -0
- package/lib/components/display/Icon/icons/Hash.d.ts +3 -0
- package/lib/components/display/Icon/icons/Heart.d.ts +3 -0
- package/lib/components/display/Icon/icons/Help.d.ts +3 -0
- package/lib/components/display/Icon/icons/Home.d.ts +3 -0
- package/lib/components/display/Icon/icons/Hourglass.d.ts +3 -0
- package/lib/components/display/Icon/icons/Image.d.ts +3 -0
- package/lib/components/display/Icon/icons/Inbox.d.ts +3 -0
- package/lib/components/display/Icon/icons/Info.d.ts +3 -0
- package/lib/components/display/Icon/icons/Italic.d.ts +3 -0
- package/lib/components/display/Icon/icons/Key.d.ts +3 -0
- package/lib/components/display/Icon/icons/Laptop.d.ts +3 -0
- package/lib/components/display/Icon/icons/Link.d.ts +3 -0
- package/lib/components/display/Icon/icons/Link2.d.ts +3 -0
- package/lib/components/display/Icon/icons/List.d.ts +3 -0
- package/lib/components/display/Icon/icons/ListOrdered.d.ts +3 -0
- package/lib/components/display/Icon/icons/ListUnordered.d.ts +3 -0
- package/lib/components/display/Icon/icons/Lock.d.ts +3 -0
- package/lib/components/display/Icon/icons/Logout.d.ts +3 -0
- package/lib/components/display/Icon/icons/Mail.d.ts +3 -0
- package/lib/components/display/Icon/icons/MailOpen.d.ts +3 -0
- package/lib/components/display/Icon/icons/Map.d.ts +3 -0
- package/lib/components/display/Icon/icons/MapPin.d.ts +3 -0
- package/lib/components/display/Icon/icons/Maximize.d.ts +3 -0
- package/lib/components/display/Icon/icons/Menu.d.ts +3 -0
- package/lib/components/display/Icon/icons/MessageCircle.d.ts +3 -0
- package/lib/components/display/Icon/icons/MessageSquare.d.ts +3 -0
- package/lib/components/display/Icon/icons/Messages.d.ts +3 -0
- package/lib/components/display/Icon/icons/Mic.d.ts +3 -0
- package/lib/components/display/Icon/icons/MicOff.d.ts +3 -0
- package/lib/components/display/Icon/icons/Minimize.d.ts +3 -0
- package/lib/components/display/Icon/icons/Minus.d.ts +3 -0
- package/lib/components/display/Icon/icons/Monitor.d.ts +3 -0
- package/lib/components/display/Icon/icons/Music.d.ts +3 -0
- package/lib/components/display/Icon/icons/Navigation.d.ts +3 -0
- package/lib/components/display/Icon/icons/Navigation2.d.ts +3 -0
- package/lib/components/display/Icon/icons/Outbox.d.ts +3 -0
- package/lib/components/display/Icon/icons/Paperclip.d.ts +3 -0
- package/lib/components/display/Icon/icons/Pause.d.ts +3 -0
- package/lib/components/display/Icon/icons/Percent.d.ts +3 -0
- package/lib/components/display/Icon/icons/PercentCircle.d.ts +3 -0
- package/lib/components/display/Icon/icons/Phone.d.ts +3 -0
- package/lib/components/display/Icon/icons/PhoneCall.d.ts +3 -0
- package/lib/components/display/Icon/icons/PhoneIncoming.d.ts +3 -0
- package/lib/components/display/Icon/icons/PhoneMissed.d.ts +3 -0
- package/lib/components/display/Icon/icons/PhoneOutgoing.d.ts +3 -0
- package/lib/components/display/Icon/icons/PieChart.d.ts +3 -0
- package/lib/components/display/Icon/icons/Play.d.ts +3 -0
- package/lib/components/display/Icon/icons/Plus.d.ts +3 -0
- package/lib/components/display/Icon/icons/Power.d.ts +3 -0
- package/lib/components/display/Icon/icons/Preferences.d.ts +3 -0
- package/lib/components/display/Icon/icons/Printer.d.ts +3 -0
- package/lib/components/display/Icon/icons/Profile.d.ts +3 -0
- package/lib/components/display/Icon/icons/Redo.d.ts +3 -0
- package/lib/components/display/Icon/icons/Refresh.d.ts +3 -0
- package/lib/components/display/Icon/icons/Repeat.d.ts +3 -0
- package/lib/components/display/Icon/icons/RotateCcw.d.ts +3 -0
- package/lib/components/display/Icon/icons/RotateCw.d.ts +3 -0
- package/lib/components/display/Icon/icons/Route.d.ts +3 -0
- package/lib/components/display/Icon/icons/Rss.d.ts +3 -0
- package/lib/components/display/Icon/icons/Save.d.ts +3 -0
- package/lib/components/display/Icon/icons/Search.d.ts +3 -0
- package/lib/components/display/Icon/icons/Send.d.ts +3 -0
- package/lib/components/display/Icon/icons/Server.d.ts +3 -0
- package/lib/components/display/Icon/icons/Settings.d.ts +3 -0
- package/lib/components/display/Icon/icons/Share.d.ts +3 -0
- package/lib/components/display/Icon/icons/Share2.d.ts +3 -0
- package/lib/components/display/Icon/icons/Shield.d.ts +3 -0
- package/lib/components/display/Icon/icons/ShieldAlert.d.ts +3 -0
- package/lib/components/display/Icon/icons/ShieldCheck.d.ts +3 -0
- package/lib/components/display/Icon/icons/ShieldOff.d.ts +3 -0
- package/lib/components/display/Icon/icons/ShoppingBag.d.ts +3 -0
- package/lib/components/display/Icon/icons/ShoppingCart.d.ts +3 -0
- package/lib/components/display/Icon/icons/Shuffle.d.ts +3 -0
- package/lib/components/display/Icon/icons/SkipBack.d.ts +3 -0
- package/lib/components/display/Icon/icons/SkipForward.d.ts +3 -0
- package/lib/components/display/Icon/icons/Smartphone.d.ts +3 -0
- package/lib/components/display/Icon/icons/Star.d.ts +3 -0
- package/lib/components/display/Icon/icons/Stop.d.ts +3 -0
- package/lib/components/display/Icon/icons/Stopwatch.d.ts +3 -0
- package/lib/components/display/Icon/icons/Sunrise.d.ts +3 -0
- package/lib/components/display/Icon/icons/Sunset.d.ts +3 -0
- package/lib/components/display/Icon/icons/Tablet.d.ts +3 -0
- package/lib/components/display/Icon/icons/Tag.d.ts +3 -0
- package/lib/components/display/Icon/icons/Target.d.ts +3 -0
- package/lib/components/display/Icon/icons/Terminal.d.ts +3 -0
- package/lib/components/display/Icon/icons/ThumbsUp.d.ts +3 -0
- package/lib/components/display/Icon/icons/TrendingDown.d.ts +3 -0
- package/lib/components/display/Icon/icons/TrendingUp.d.ts +3 -0
- package/lib/components/display/Icon/icons/Type.d.ts +3 -0
- package/lib/components/display/Icon/icons/Underline.d.ts +3 -0
- package/lib/components/display/Icon/icons/Undo.d.ts +3 -0
- package/lib/components/display/Icon/icons/Unlink.d.ts +3 -0
- package/lib/components/display/Icon/icons/Unlock.d.ts +3 -0
- package/lib/components/display/Icon/icons/Upload.d.ts +3 -0
- package/lib/components/display/Icon/icons/User.d.ts +3 -0
- package/lib/components/display/Icon/icons/UserCheck.d.ts +3 -0
- package/lib/components/display/Icon/icons/UserMinus.d.ts +3 -0
- package/lib/components/display/Icon/icons/UserPlus.d.ts +3 -0
- package/lib/components/display/Icon/icons/UserX.d.ts +3 -0
- package/lib/components/display/Icon/icons/Users.d.ts +3 -0
- package/lib/components/display/Icon/icons/Video.d.ts +3 -0
- package/lib/components/display/Icon/icons/Volume.d.ts +3 -0
- package/lib/components/display/Icon/icons/Volume1.d.ts +3 -0
- package/lib/components/display/Icon/icons/Volume2.d.ts +3 -0
- package/lib/components/display/Icon/icons/VolumeX.d.ts +3 -0
- package/lib/components/display/Icon/icons/Warning.d.ts +3 -0
- package/lib/components/display/Icon/icons/Watch.d.ts +3 -0
- package/lib/components/display/Icon/icons/Wifi.d.ts +3 -0
- package/lib/components/display/Icon/icons/WifiOff.d.ts +3 -0
- package/lib/components/display/Icon/icons/Zap.d.ts +3 -0
- package/lib/components/display/Icon/icons/index.d.ts +379 -0
- package/lib/components/display/KPI/KPI.d.ts +85 -0
- package/lib/components/display/KPI/index.d.ts +3 -0
- package/lib/components/display/Pill/Pill.d.ts +83 -0
- package/lib/components/display/Pill/index.d.ts +2 -0
- package/lib/components/display/ProgressBar/ProgressBar.d.ts +70 -0
- package/lib/components/display/ProgressBar/index.d.ts +3 -0
- package/lib/components/display/Skeleton/Skeleton.d.ts +51 -0
- package/lib/components/display/Skeleton/index.d.ts +3 -0
- package/lib/components/display/StatusIndicator/StatusIndicator.d.ts +56 -0
- package/lib/components/display/StatusIndicator/index.d.ts +2 -0
- package/lib/components/display/Tag/Tag.d.ts +60 -0
- package/lib/components/display/Tag/index.d.ts +2 -0
- package/lib/components/display/index.d.ts +10 -0
- package/lib/components/index.d.ts +21 -1
- package/lib/components/inputs/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/components/inputs/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/inputs/DatePicker/DatePicker.d.ts +1 -1
- package/lib/components/inputs/Input/Input.d.ts +1 -1
- package/lib/components/inputs/Radio/Radio.d.ts +1 -1
- package/lib/components/inputs/Rating/Rating.d.ts +1 -1
- package/lib/components/inputs/Select/Select.d.ts +1 -1
- package/lib/components/overlays/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/overlays/Menu/MenuItem.d.ts +1 -1
- package/package.json +1 -1
- package/lib/assets/icons/index.d.ts +0 -105
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../../../types/component.types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the ProgressBar component
|
|
5
|
+
*/
|
|
6
|
+
export interface ProgressBarProps extends Omit<BaseComponentProps, 'children'> {
|
|
7
|
+
/**
|
|
8
|
+
* Visual variant of the component
|
|
9
|
+
* @default 'primary'
|
|
10
|
+
*/
|
|
11
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
12
|
+
/**
|
|
13
|
+
* Size of the component
|
|
14
|
+
* @default 'md'
|
|
15
|
+
*/
|
|
16
|
+
size?: 'sm' | 'md' | 'lg';
|
|
17
|
+
/**
|
|
18
|
+
* Current progress value (0-100)
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
value?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum value
|
|
24
|
+
* @default 100
|
|
25
|
+
*/
|
|
26
|
+
max?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to show the value label
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
showValue?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Custom label to display
|
|
34
|
+
*/
|
|
35
|
+
label?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to animate the progress
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
animated?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to show striped pattern
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
striped?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Custom format function for the value display
|
|
48
|
+
*/
|
|
49
|
+
formatValue?: (value: number, max: number) => string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* ProgressBar - Linear progress indicator for showing task completion or loading states
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```tsx
|
|
56
|
+
* <ProgressBar variant="primary" value={50} showValue />
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```tsx
|
|
61
|
+
* <ProgressBar variant="success" value={75} label="Uploading..." />
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```tsx
|
|
66
|
+
* <ProgressBar variant="warning" value={30} size="lg" striped animated />
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../../../types/component.types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Skeleton component
|
|
5
|
+
*/
|
|
6
|
+
export interface SkeletonProps extends Omit<BaseComponentProps, 'children'> {
|
|
7
|
+
/**
|
|
8
|
+
* Visual variant of the component
|
|
9
|
+
* @default 'primary'
|
|
10
|
+
*/
|
|
11
|
+
variant?: 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
12
|
+
/**
|
|
13
|
+
* Width of the skeleton
|
|
14
|
+
* @default '100%'
|
|
15
|
+
*/
|
|
16
|
+
width?: string | number;
|
|
17
|
+
/**
|
|
18
|
+
* Height of the skeleton
|
|
19
|
+
*/
|
|
20
|
+
height?: string | number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to animate the skeleton
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
animated?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Number of lines for text variant
|
|
28
|
+
* @default 1
|
|
29
|
+
*/
|
|
30
|
+
lines?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Skeleton - Loading placeholder component for content that is loading
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <Skeleton variant="text" width="200px" />
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Skeleton variant="circular" width={40} height={40} />
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <Skeleton variant="rectangular" width="100%" height="200px" />
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
export default Skeleton;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../../../types/component.types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the StatusIndicator component
|
|
5
|
+
*/
|
|
6
|
+
export interface StatusIndicatorProps extends BaseComponentProps {
|
|
7
|
+
/**
|
|
8
|
+
* Status variant of the indicator
|
|
9
|
+
* @default 'neutral'
|
|
10
|
+
*/
|
|
11
|
+
status?: 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'processing';
|
|
12
|
+
/**
|
|
13
|
+
* Size of the indicator
|
|
14
|
+
* @default 'md'
|
|
15
|
+
*/
|
|
16
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
17
|
+
/**
|
|
18
|
+
* Whether to show pulse animation
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
pulse?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to display text alongside the indicator
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
withText?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* StatusIndicator - Visual colored dot indicator for status with optional text and pulse animation
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <StatusIndicator status="success" />
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <StatusIndicator status="error" pulse size="lg" />
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <StatusIndicator status="processing" pulse withText>
|
|
44
|
+
* Processing
|
|
45
|
+
* </StatusIndicator>
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* <StatusIndicator status="warning" withText size="sm">
|
|
51
|
+
* Warning
|
|
52
|
+
* </StatusIndicator>
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare const StatusIndicator: React.ForwardRefExoticComponent<StatusIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
56
|
+
export default StatusIndicator;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../../../types/component.types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Tag component
|
|
5
|
+
*/
|
|
6
|
+
export interface TagProps extends BaseComponentProps {
|
|
7
|
+
/**
|
|
8
|
+
* Visual variant of the tag
|
|
9
|
+
* @default 'primary'
|
|
10
|
+
*/
|
|
11
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
12
|
+
/**
|
|
13
|
+
* Size of the tag
|
|
14
|
+
* @default 'md'
|
|
15
|
+
*/
|
|
16
|
+
size?: 'sm' | 'md' | 'lg';
|
|
17
|
+
/**
|
|
18
|
+
* Whether the tag is disabled
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the tag can be removed
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
removable?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Callback when remove button is clicked
|
|
29
|
+
*/
|
|
30
|
+
onRemove?: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Callback when tag is clicked (makes tag interactive)
|
|
33
|
+
*/
|
|
34
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Tag - Standalone tag element for labeling and categorization
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```tsx
|
|
41
|
+
* <Tag variant="primary" size="md">
|
|
42
|
+
* React
|
|
43
|
+
* </Tag>
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```tsx
|
|
48
|
+
* <Tag variant="secondary" size="sm" removable onRemove={() => console.log('removed')}>
|
|
49
|
+
* Removable
|
|
50
|
+
* </Tag>
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <Tag variant="tertiary" onClick={() => console.log('clicked')}>
|
|
56
|
+
* Clickable
|
|
57
|
+
* </Tag>
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1 +1,11 @@
|
|
|
1
1
|
export * from './Icon';
|
|
2
|
+
export * from './Badge';
|
|
3
|
+
export * from './Chip';
|
|
4
|
+
export * from './Pill';
|
|
5
|
+
export * from './Tag';
|
|
6
|
+
export * from './Avatar';
|
|
7
|
+
export * from './StatusIndicator';
|
|
8
|
+
export * from './ProgressBar';
|
|
9
|
+
export * from './CircularProgress';
|
|
10
|
+
export * from './KPI';
|
|
11
|
+
export * from './Skeleton';
|
|
@@ -2,6 +2,26 @@ export { Button } from './buttons/Button';
|
|
|
2
2
|
export type { ButtonProps } from './buttons/Button';
|
|
3
3
|
export { Icon } from './display/Icon';
|
|
4
4
|
export type { IconProps } from './display/Icon';
|
|
5
|
+
export { Badge } from './display/Badge';
|
|
6
|
+
export type { BadgeProps } from './display/Badge';
|
|
7
|
+
export { Chip } from './display/Chip';
|
|
8
|
+
export type { ChipProps } from './display/Chip';
|
|
9
|
+
export { Pill } from './display/Pill';
|
|
10
|
+
export type { PillProps } from './display/Pill';
|
|
11
|
+
export { Tag } from './display/Tag';
|
|
12
|
+
export type { TagProps } from './display/Tag';
|
|
13
|
+
export { Avatar } from './display/Avatar';
|
|
14
|
+
export type { AvatarProps } from './display/Avatar';
|
|
15
|
+
export { StatusIndicator } from './display/StatusIndicator';
|
|
16
|
+
export type { StatusIndicatorProps } from './display/StatusIndicator';
|
|
17
|
+
export { ProgressBar } from './display/ProgressBar';
|
|
18
|
+
export type { ProgressBarProps } from './display/ProgressBar';
|
|
19
|
+
export { CircularProgress } from './display/CircularProgress';
|
|
20
|
+
export type { CircularProgressProps } from './display/CircularProgress';
|
|
21
|
+
export { KPI } from './display/KPI';
|
|
22
|
+
export type { KPIProps } from './display/KPI';
|
|
23
|
+
export { Skeleton } from './display/Skeleton';
|
|
24
|
+
export type { SkeletonProps } from './display/Skeleton';
|
|
5
25
|
export { Portal } from './overlays/Portal';
|
|
6
26
|
export type { PortalProps } from './overlays/Portal';
|
|
7
27
|
export { Popover } from './overlays/Popover';
|
|
@@ -13,7 +33,7 @@ export type { MenuProps, MenuListProps, MenuItemProps, MenuDividerProps, MenuGro
|
|
|
13
33
|
export { Dropdown } from './overlays/Dropdown';
|
|
14
34
|
export type { DropdownProps } from './overlays/Dropdown';
|
|
15
35
|
export { Input } from './inputs/Input';
|
|
16
|
-
export type { InputProps, ValidationResult, FormatMask, ValidationTiming, InputType } from './inputs/Input';
|
|
36
|
+
export type { InputProps, ValidationResult, FormatMask, ValidationTiming, InputType, } from './inputs/Input';
|
|
17
37
|
export { Autocomplete } from './inputs/Autocomplete';
|
|
18
38
|
export type { AutocompleteProps, AutocompleteOption } from './inputs/Autocomplete';
|
|
19
39
|
export { Toggle } from './inputs/Toggle';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentSize, ComponentVariant, InputBaseProps } from '../../../types';
|
|
3
|
-
import { IconName } from '
|
|
3
|
+
import { IconName } from '../../display/Icon/icons';
|
|
4
4
|
export interface CheckboxProps extends Omit<InputBaseProps, 'value' | 'onChange' | 'placeholder'> {
|
|
5
5
|
/**
|
|
6
6
|
* Checkbox variant style
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { BaseComponentProps } from '../../../types/component.types';
|
|
3
|
-
import { IconName } from '
|
|
3
|
+
import { IconName } from '../../display/Icon/icons';
|
|
4
4
|
export interface DatePickerProps extends Omit<BaseComponentProps, 'children'> {
|
|
5
5
|
/**
|
|
6
6
|
* Controlled date value
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { IconName } from '
|
|
2
|
+
import { IconName } from '../../display/Icon/icons';
|
|
3
3
|
export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size' | 'type'> {
|
|
4
4
|
/**
|
|
5
5
|
* The value of this radio button
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentSize } from '../../../types';
|
|
3
|
-
import { IconName } from '
|
|
3
|
+
import { IconName } from '../../display/Icon/icons';
|
|
4
4
|
export interface RatingProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'> {
|
|
5
5
|
size?: ComponentSize;
|
|
6
6
|
value?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { MenuProps } from '../Menu';
|
|
3
|
-
import { IconName } from '
|
|
3
|
+
import { IconName } from '../../display/Icon/icons';
|
|
4
4
|
import { ComponentVariant, ComponentSize } from '../../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Dropdown item definition
|
package/package.json
CHANGED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { default as Calendar } from './calendar.svg?react';
|
|
2
|
-
import { default as ChevronDown } from './chevron-down.svg?react';
|
|
3
|
-
import { default as ChevronUp } from './chevron-up.svg?react';
|
|
4
|
-
import { default as ChevronLeft } from './chevron-left.svg?react';
|
|
5
|
-
import { default as ChevronRight } from './chevron-right.svg?react';
|
|
6
|
-
import { default as Close } from './close.svg?react';
|
|
7
|
-
import { default as Check } from './check.svg?react';
|
|
8
|
-
import { default as Minus } from './minus.svg?react';
|
|
9
|
-
import { default as Plus } from './plus.svg?react';
|
|
10
|
-
import { default as Info } from './info.svg?react';
|
|
11
|
-
import { default as Help } from './help.svg?react';
|
|
12
|
-
import { default as Warning } from './warning.svg?react';
|
|
13
|
-
import { default as Error } from './error.svg?react';
|
|
14
|
-
import { default as Eye } from './eye.svg?react';
|
|
15
|
-
import { default as EyeOff } from './eye-off.svg?react';
|
|
16
|
-
import { default as Edit } from './edit.svg?react';
|
|
17
|
-
import { default as Copy } from './copy.svg?react';
|
|
18
|
-
import { default as Delete } from './delete.svg?react';
|
|
19
|
-
import { default as Settings } from './settings.svg?react';
|
|
20
|
-
import { default as Profile } from './profile.svg?react';
|
|
21
|
-
import { default as Preferences } from './preferences.svg?react';
|
|
22
|
-
import { default as Account } from './account.svg?react';
|
|
23
|
-
import { default as Logout } from './logout.svg?react';
|
|
24
|
-
/**
|
|
25
|
-
* Icon registry mapping icon names to SVG components
|
|
26
|
-
*/
|
|
27
|
-
export declare const iconRegistry: {
|
|
28
|
-
readonly calendar: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
29
|
-
title?: string;
|
|
30
|
-
}>;
|
|
31
|
-
readonly 'chevron-down': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
32
|
-
title?: string;
|
|
33
|
-
}>;
|
|
34
|
-
readonly 'chevron-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
35
|
-
title?: string;
|
|
36
|
-
}>;
|
|
37
|
-
readonly 'chevron-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
38
|
-
title?: string;
|
|
39
|
-
}>;
|
|
40
|
-
readonly 'chevron-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
41
|
-
title?: string;
|
|
42
|
-
}>;
|
|
43
|
-
readonly close: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
44
|
-
title?: string;
|
|
45
|
-
}>;
|
|
46
|
-
readonly check: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
47
|
-
title?: string;
|
|
48
|
-
}>;
|
|
49
|
-
readonly minus: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
50
|
-
title?: string;
|
|
51
|
-
}>;
|
|
52
|
-
readonly plus: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
53
|
-
title?: string;
|
|
54
|
-
}>;
|
|
55
|
-
readonly info: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
56
|
-
title?: string;
|
|
57
|
-
}>;
|
|
58
|
-
readonly help: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
59
|
-
title?: string;
|
|
60
|
-
}>;
|
|
61
|
-
readonly warning: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
62
|
-
title?: string;
|
|
63
|
-
}>;
|
|
64
|
-
readonly error: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
65
|
-
title?: string;
|
|
66
|
-
}>;
|
|
67
|
-
readonly eye: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
68
|
-
title?: string;
|
|
69
|
-
}>;
|
|
70
|
-
readonly 'eye-off': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
71
|
-
title?: string;
|
|
72
|
-
}>;
|
|
73
|
-
readonly edit: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
74
|
-
title?: string;
|
|
75
|
-
}>;
|
|
76
|
-
readonly copy: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
77
|
-
title?: string;
|
|
78
|
-
}>;
|
|
79
|
-
readonly delete: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
80
|
-
title?: string;
|
|
81
|
-
}>;
|
|
82
|
-
readonly settings: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
83
|
-
title?: string;
|
|
84
|
-
}>;
|
|
85
|
-
readonly profile: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
86
|
-
title?: string;
|
|
87
|
-
}>;
|
|
88
|
-
readonly preferences: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
89
|
-
title?: string;
|
|
90
|
-
}>;
|
|
91
|
-
readonly account: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
92
|
-
title?: string;
|
|
93
|
-
}>;
|
|
94
|
-
readonly logout: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
95
|
-
title?: string;
|
|
96
|
-
}>;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Available icon names
|
|
100
|
-
*/
|
|
101
|
-
export type IconName = keyof typeof iconRegistry;
|
|
102
|
-
/**
|
|
103
|
-
* Named exports for direct import
|
|
104
|
-
*/
|
|
105
|
-
export { Calendar, ChevronDown, ChevronUp, ChevronLeft, ChevronRight, Close, Check, Minus, Plus, Info, Help, Warning, Error, Eye, EyeOff, Edit, Copy, Delete, Settings, Profile, Preferences, Account, Logout, };
|