@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.
Files changed (225) hide show
  1. package/README.md +103 -1
  2. package/index.css +1 -1
  3. package/index.d.ts +2 -2
  4. package/index.js +1 -1
  5. package/index.mjs +4781 -3409
  6. package/lib/components/buttons/Button/Button.d.ts +1 -1
  7. package/lib/components/buttons/IconButton/IconButton.d.ts +1 -1
  8. package/lib/components/display/Avatar/Avatar.d.ts +58 -0
  9. package/lib/components/display/Avatar/index.d.ts +2 -0
  10. package/lib/components/display/Badge/Badge.d.ts +48 -0
  11. package/lib/components/display/Badge/index.d.ts +3 -0
  12. package/lib/components/display/Chip/Chip.d.ts +61 -0
  13. package/lib/components/display/Chip/index.d.ts +3 -0
  14. package/lib/components/display/CircularProgress/CircularProgress.d.ts +65 -0
  15. package/lib/components/display/CircularProgress/index.d.ts +3 -0
  16. package/lib/components/display/Icon/Icon.d.ts +1 -1
  17. package/lib/components/display/Icon/icons/Account.d.ts +3 -0
  18. package/lib/components/display/Icon/icons/Activity.d.ts +3 -0
  19. package/lib/components/display/Icon/icons/AlignCenter.d.ts +3 -0
  20. package/lib/components/display/Icon/icons/AlignJustify.d.ts +3 -0
  21. package/lib/components/display/Icon/icons/AlignLeft.d.ts +3 -0
  22. package/lib/components/display/Icon/icons/AlignRight.d.ts +3 -0
  23. package/lib/components/display/Icon/icons/ArrowDown.d.ts +3 -0
  24. package/lib/components/display/Icon/icons/ArrowDownLeft.d.ts +3 -0
  25. package/lib/components/display/Icon/icons/ArrowDownRight.d.ts +3 -0
  26. package/lib/components/display/Icon/icons/ArrowLeft.d.ts +3 -0
  27. package/lib/components/display/Icon/icons/ArrowRight.d.ts +3 -0
  28. package/lib/components/display/Icon/icons/ArrowUp.d.ts +3 -0
  29. package/lib/components/display/Icon/icons/ArrowUpLeft.d.ts +3 -0
  30. package/lib/components/display/Icon/icons/ArrowUpRight.d.ts +3 -0
  31. package/lib/components/display/Icon/icons/AtSign.d.ts +3 -0
  32. package/lib/components/display/Icon/icons/BarChart2.d.ts +3 -0
  33. package/lib/components/display/Icon/icons/Battery.d.ts +3 -0
  34. package/lib/components/display/Icon/icons/BatteryCharging.d.ts +3 -0
  35. package/lib/components/display/Icon/icons/Bell.d.ts +3 -0
  36. package/lib/components/display/Icon/icons/BellOff.d.ts +3 -0
  37. package/lib/components/display/Icon/icons/Bluetooth.d.ts +3 -0
  38. package/lib/components/display/Icon/icons/Bold.d.ts +3 -0
  39. package/lib/components/display/Icon/icons/Bookmark.d.ts +3 -0
  40. package/lib/components/display/Icon/icons/BookmarkPlus.d.ts +3 -0
  41. package/lib/components/display/Icon/icons/Building.d.ts +3 -0
  42. package/lib/components/display/Icon/icons/Calendar.d.ts +3 -0
  43. package/lib/components/display/Icon/icons/Camera.d.ts +3 -0
  44. package/lib/components/display/Icon/icons/ChartBar.d.ts +3 -0
  45. package/lib/components/display/Icon/icons/ChartLine.d.ts +3 -0
  46. package/lib/components/display/Icon/icons/Check.d.ts +3 -0
  47. package/lib/components/display/Icon/icons/ChevronDown.d.ts +3 -0
  48. package/lib/components/display/Icon/icons/ChevronLeft.d.ts +3 -0
  49. package/lib/components/display/Icon/icons/ChevronRight.d.ts +3 -0
  50. package/lib/components/display/Icon/icons/ChevronUp.d.ts +3 -0
  51. package/lib/components/display/Icon/icons/Clock.d.ts +3 -0
  52. package/lib/components/display/Icon/icons/Close.d.ts +3 -0
  53. package/lib/components/display/Icon/icons/Cloud.d.ts +3 -0
  54. package/lib/components/display/Icon/icons/CloudDownload.d.ts +3 -0
  55. package/lib/components/display/Icon/icons/CloudOff.d.ts +3 -0
  56. package/lib/components/display/Icon/icons/CloudUpload.d.ts +3 -0
  57. package/lib/components/display/Icon/icons/Code.d.ts +3 -0
  58. package/lib/components/display/Icon/icons/Compass.d.ts +3 -0
  59. package/lib/components/display/Icon/icons/Copy.d.ts +3 -0
  60. package/lib/components/display/Icon/icons/CornerDownLeft.d.ts +3 -0
  61. package/lib/components/display/Icon/icons/CornerDownRight.d.ts +3 -0
  62. package/lib/components/display/Icon/icons/CornerUpLeft.d.ts +3 -0
  63. package/lib/components/display/Icon/icons/CornerUpRight.d.ts +3 -0
  64. package/lib/components/display/Icon/icons/Cpu.d.ts +3 -0
  65. package/lib/components/display/Icon/icons/CreditCard.d.ts +3 -0
  66. package/lib/components/display/Icon/icons/Crosshair.d.ts +3 -0
  67. package/lib/components/display/Icon/icons/Database.d.ts +3 -0
  68. package/lib/components/display/Icon/icons/Delete.d.ts +3 -0
  69. package/lib/components/display/Icon/icons/Dollar.d.ts +3 -0
  70. package/lib/components/display/Icon/icons/Download.d.ts +3 -0
  71. package/lib/components/display/Icon/icons/Edit.d.ts +3 -0
  72. package/lib/components/display/Icon/icons/Error.d.ts +3 -0
  73. package/lib/components/display/Icon/icons/ExternalLink.d.ts +3 -0
  74. package/lib/components/display/Icon/icons/Eye.d.ts +3 -0
  75. package/lib/components/display/Icon/icons/EyeOff.d.ts +3 -0
  76. package/lib/components/display/Icon/icons/File.d.ts +3 -0
  77. package/lib/components/display/Icon/icons/FileCheck.d.ts +3 -0
  78. package/lib/components/display/Icon/icons/FileMinus.d.ts +3 -0
  79. package/lib/components/display/Icon/icons/FilePlus.d.ts +3 -0
  80. package/lib/components/display/Icon/icons/FileText.d.ts +3 -0
  81. package/lib/components/display/Icon/icons/Filter.d.ts +3 -0
  82. package/lib/components/display/Icon/icons/Folder.d.ts +3 -0
  83. package/lib/components/display/Icon/icons/FolderMinus.d.ts +3 -0
  84. package/lib/components/display/Icon/icons/FolderOpen.d.ts +3 -0
  85. package/lib/components/display/Icon/icons/FolderPlus.d.ts +3 -0
  86. package/lib/components/display/Icon/icons/Gift.d.ts +3 -0
  87. package/lib/components/display/Icon/icons/Globe.d.ts +3 -0
  88. package/lib/components/display/Icon/icons/Grid.d.ts +3 -0
  89. package/lib/components/display/Icon/icons/HardDrive.d.ts +3 -0
  90. package/lib/components/display/Icon/icons/Hash.d.ts +3 -0
  91. package/lib/components/display/Icon/icons/Heart.d.ts +3 -0
  92. package/lib/components/display/Icon/icons/Help.d.ts +3 -0
  93. package/lib/components/display/Icon/icons/Home.d.ts +3 -0
  94. package/lib/components/display/Icon/icons/Hourglass.d.ts +3 -0
  95. package/lib/components/display/Icon/icons/Image.d.ts +3 -0
  96. package/lib/components/display/Icon/icons/Inbox.d.ts +3 -0
  97. package/lib/components/display/Icon/icons/Info.d.ts +3 -0
  98. package/lib/components/display/Icon/icons/Italic.d.ts +3 -0
  99. package/lib/components/display/Icon/icons/Key.d.ts +3 -0
  100. package/lib/components/display/Icon/icons/Laptop.d.ts +3 -0
  101. package/lib/components/display/Icon/icons/Link.d.ts +3 -0
  102. package/lib/components/display/Icon/icons/Link2.d.ts +3 -0
  103. package/lib/components/display/Icon/icons/List.d.ts +3 -0
  104. package/lib/components/display/Icon/icons/ListOrdered.d.ts +3 -0
  105. package/lib/components/display/Icon/icons/ListUnordered.d.ts +3 -0
  106. package/lib/components/display/Icon/icons/Lock.d.ts +3 -0
  107. package/lib/components/display/Icon/icons/Logout.d.ts +3 -0
  108. package/lib/components/display/Icon/icons/Mail.d.ts +3 -0
  109. package/lib/components/display/Icon/icons/MailOpen.d.ts +3 -0
  110. package/lib/components/display/Icon/icons/Map.d.ts +3 -0
  111. package/lib/components/display/Icon/icons/MapPin.d.ts +3 -0
  112. package/lib/components/display/Icon/icons/Maximize.d.ts +3 -0
  113. package/lib/components/display/Icon/icons/Menu.d.ts +3 -0
  114. package/lib/components/display/Icon/icons/MessageCircle.d.ts +3 -0
  115. package/lib/components/display/Icon/icons/MessageSquare.d.ts +3 -0
  116. package/lib/components/display/Icon/icons/Messages.d.ts +3 -0
  117. package/lib/components/display/Icon/icons/Mic.d.ts +3 -0
  118. package/lib/components/display/Icon/icons/MicOff.d.ts +3 -0
  119. package/lib/components/display/Icon/icons/Minimize.d.ts +3 -0
  120. package/lib/components/display/Icon/icons/Minus.d.ts +3 -0
  121. package/lib/components/display/Icon/icons/Monitor.d.ts +3 -0
  122. package/lib/components/display/Icon/icons/Music.d.ts +3 -0
  123. package/lib/components/display/Icon/icons/Navigation.d.ts +3 -0
  124. package/lib/components/display/Icon/icons/Navigation2.d.ts +3 -0
  125. package/lib/components/display/Icon/icons/Outbox.d.ts +3 -0
  126. package/lib/components/display/Icon/icons/Paperclip.d.ts +3 -0
  127. package/lib/components/display/Icon/icons/Pause.d.ts +3 -0
  128. package/lib/components/display/Icon/icons/Percent.d.ts +3 -0
  129. package/lib/components/display/Icon/icons/PercentCircle.d.ts +3 -0
  130. package/lib/components/display/Icon/icons/Phone.d.ts +3 -0
  131. package/lib/components/display/Icon/icons/PhoneCall.d.ts +3 -0
  132. package/lib/components/display/Icon/icons/PhoneIncoming.d.ts +3 -0
  133. package/lib/components/display/Icon/icons/PhoneMissed.d.ts +3 -0
  134. package/lib/components/display/Icon/icons/PhoneOutgoing.d.ts +3 -0
  135. package/lib/components/display/Icon/icons/PieChart.d.ts +3 -0
  136. package/lib/components/display/Icon/icons/Play.d.ts +3 -0
  137. package/lib/components/display/Icon/icons/Plus.d.ts +3 -0
  138. package/lib/components/display/Icon/icons/Power.d.ts +3 -0
  139. package/lib/components/display/Icon/icons/Preferences.d.ts +3 -0
  140. package/lib/components/display/Icon/icons/Printer.d.ts +3 -0
  141. package/lib/components/display/Icon/icons/Profile.d.ts +3 -0
  142. package/lib/components/display/Icon/icons/Redo.d.ts +3 -0
  143. package/lib/components/display/Icon/icons/Refresh.d.ts +3 -0
  144. package/lib/components/display/Icon/icons/Repeat.d.ts +3 -0
  145. package/lib/components/display/Icon/icons/RotateCcw.d.ts +3 -0
  146. package/lib/components/display/Icon/icons/RotateCw.d.ts +3 -0
  147. package/lib/components/display/Icon/icons/Route.d.ts +3 -0
  148. package/lib/components/display/Icon/icons/Rss.d.ts +3 -0
  149. package/lib/components/display/Icon/icons/Save.d.ts +3 -0
  150. package/lib/components/display/Icon/icons/Search.d.ts +3 -0
  151. package/lib/components/display/Icon/icons/Send.d.ts +3 -0
  152. package/lib/components/display/Icon/icons/Server.d.ts +3 -0
  153. package/lib/components/display/Icon/icons/Settings.d.ts +3 -0
  154. package/lib/components/display/Icon/icons/Share.d.ts +3 -0
  155. package/lib/components/display/Icon/icons/Share2.d.ts +3 -0
  156. package/lib/components/display/Icon/icons/Shield.d.ts +3 -0
  157. package/lib/components/display/Icon/icons/ShieldAlert.d.ts +3 -0
  158. package/lib/components/display/Icon/icons/ShieldCheck.d.ts +3 -0
  159. package/lib/components/display/Icon/icons/ShieldOff.d.ts +3 -0
  160. package/lib/components/display/Icon/icons/ShoppingBag.d.ts +3 -0
  161. package/lib/components/display/Icon/icons/ShoppingCart.d.ts +3 -0
  162. package/lib/components/display/Icon/icons/Shuffle.d.ts +3 -0
  163. package/lib/components/display/Icon/icons/SkipBack.d.ts +3 -0
  164. package/lib/components/display/Icon/icons/SkipForward.d.ts +3 -0
  165. package/lib/components/display/Icon/icons/Smartphone.d.ts +3 -0
  166. package/lib/components/display/Icon/icons/Star.d.ts +3 -0
  167. package/lib/components/display/Icon/icons/Stop.d.ts +3 -0
  168. package/lib/components/display/Icon/icons/Stopwatch.d.ts +3 -0
  169. package/lib/components/display/Icon/icons/Sunrise.d.ts +3 -0
  170. package/lib/components/display/Icon/icons/Sunset.d.ts +3 -0
  171. package/lib/components/display/Icon/icons/Tablet.d.ts +3 -0
  172. package/lib/components/display/Icon/icons/Tag.d.ts +3 -0
  173. package/lib/components/display/Icon/icons/Target.d.ts +3 -0
  174. package/lib/components/display/Icon/icons/Terminal.d.ts +3 -0
  175. package/lib/components/display/Icon/icons/ThumbsUp.d.ts +3 -0
  176. package/lib/components/display/Icon/icons/TrendingDown.d.ts +3 -0
  177. package/lib/components/display/Icon/icons/TrendingUp.d.ts +3 -0
  178. package/lib/components/display/Icon/icons/Type.d.ts +3 -0
  179. package/lib/components/display/Icon/icons/Underline.d.ts +3 -0
  180. package/lib/components/display/Icon/icons/Undo.d.ts +3 -0
  181. package/lib/components/display/Icon/icons/Unlink.d.ts +3 -0
  182. package/lib/components/display/Icon/icons/Unlock.d.ts +3 -0
  183. package/lib/components/display/Icon/icons/Upload.d.ts +3 -0
  184. package/lib/components/display/Icon/icons/User.d.ts +3 -0
  185. package/lib/components/display/Icon/icons/UserCheck.d.ts +3 -0
  186. package/lib/components/display/Icon/icons/UserMinus.d.ts +3 -0
  187. package/lib/components/display/Icon/icons/UserPlus.d.ts +3 -0
  188. package/lib/components/display/Icon/icons/UserX.d.ts +3 -0
  189. package/lib/components/display/Icon/icons/Users.d.ts +3 -0
  190. package/lib/components/display/Icon/icons/Video.d.ts +3 -0
  191. package/lib/components/display/Icon/icons/Volume.d.ts +3 -0
  192. package/lib/components/display/Icon/icons/Volume1.d.ts +3 -0
  193. package/lib/components/display/Icon/icons/Volume2.d.ts +3 -0
  194. package/lib/components/display/Icon/icons/VolumeX.d.ts +3 -0
  195. package/lib/components/display/Icon/icons/Warning.d.ts +3 -0
  196. package/lib/components/display/Icon/icons/Watch.d.ts +3 -0
  197. package/lib/components/display/Icon/icons/Wifi.d.ts +3 -0
  198. package/lib/components/display/Icon/icons/WifiOff.d.ts +3 -0
  199. package/lib/components/display/Icon/icons/Zap.d.ts +3 -0
  200. package/lib/components/display/Icon/icons/index.d.ts +379 -0
  201. package/lib/components/display/KPI/KPI.d.ts +85 -0
  202. package/lib/components/display/KPI/index.d.ts +3 -0
  203. package/lib/components/display/Pill/Pill.d.ts +83 -0
  204. package/lib/components/display/Pill/index.d.ts +2 -0
  205. package/lib/components/display/ProgressBar/ProgressBar.d.ts +70 -0
  206. package/lib/components/display/ProgressBar/index.d.ts +3 -0
  207. package/lib/components/display/Skeleton/Skeleton.d.ts +51 -0
  208. package/lib/components/display/Skeleton/index.d.ts +3 -0
  209. package/lib/components/display/StatusIndicator/StatusIndicator.d.ts +56 -0
  210. package/lib/components/display/StatusIndicator/index.d.ts +2 -0
  211. package/lib/components/display/Tag/Tag.d.ts +60 -0
  212. package/lib/components/display/Tag/index.d.ts +2 -0
  213. package/lib/components/display/index.d.ts +10 -0
  214. package/lib/components/index.d.ts +21 -1
  215. package/lib/components/inputs/Autocomplete/Autocomplete.d.ts +1 -1
  216. package/lib/components/inputs/Checkbox/Checkbox.d.ts +1 -1
  217. package/lib/components/inputs/DatePicker/DatePicker.d.ts +1 -1
  218. package/lib/components/inputs/Input/Input.d.ts +1 -1
  219. package/lib/components/inputs/Radio/Radio.d.ts +1 -1
  220. package/lib/components/inputs/Rating/Rating.d.ts +1 -1
  221. package/lib/components/inputs/Select/Select.d.ts +1 -1
  222. package/lib/components/overlays/Dropdown/Dropdown.d.ts +1 -1
  223. package/lib/components/overlays/Menu/MenuItem.d.ts +1 -1
  224. package/package.json +1 -1
  225. 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,3 @@
1
+ export { ProgressBar } from './ProgressBar';
2
+ export type { ProgressBarProps } from './ProgressBar';
3
+ export { default } from './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,3 @@
1
+ export { Skeleton } from './Skeleton';
2
+ export type { SkeletonProps } from './Skeleton';
3
+ export { default } from './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,2 @@
1
+ export { StatusIndicator } from './StatusIndicator';
2
+ export type { StatusIndicatorProps } from './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>>;
@@ -0,0 +1,2 @@
1
+ export { Tag } from './Tag';
2
+ export type { TagProps } from './Tag';
@@ -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,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { IconName } from '../../../assets/icons';
2
+ import { IconName } from '../../display/Icon/icons';
3
3
  import { ComponentVariant, ComponentSize, BaseComponentProps } from '../../../types';
4
4
  /**
5
5
  * Autocomplete option
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentSize, ComponentVariant, InputBaseProps } from '../../../types';
3
- import { IconName } from '../../../assets/icons';
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 '../../../assets/icons';
3
+ import { IconName } from '../../display/Icon/icons';
4
4
  export interface DatePickerProps extends Omit<BaseComponentProps, 'children'> {
5
5
  /**
6
6
  * Controlled date value
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { InputBaseProps } from '../../../types';
3
- import { IconName } from '../../../assets/icons';
3
+ import { IconName } from '../../display/Icon/icons';
4
4
  /**
5
5
  * Validation timing options
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { IconName } from '../../../assets/icons';
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 '../../../assets/icons';
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,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { IconName } from '../../../assets/icons';
2
+ import { IconName } from '../../display/Icon/icons';
3
3
  export interface SelectOption {
4
4
  /**
5
5
  * Option value
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { MenuProps } from '../Menu';
3
- import { IconName } from '../../../assets/icons';
3
+ import { IconName } from '../../display/Icon/icons';
4
4
  import { ComponentVariant, ComponentSize } from '../../../types';
5
5
  /**
6
6
  * Dropdown item definition
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { BaseComponentProps } from '../../../types';
3
- import { IconName } from '../../../assets/icons';
3
+ import { IconName } from '../../display/Icon/icons';
4
4
  /**
5
5
  * MenuItem component props
6
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@true-tech-team/react-components",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "React TypeScript component library",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -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, };