@trinityui/design-system 1.0.3 → 1.0.4

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 (271) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/Legend.js +1455 -0
  3. package/dist/accessibility.d.ts +119 -0
  4. package/dist/accessibility.d.ts.map +1 -0
  5. package/dist/assets/index.d.ts +234 -0
  6. package/dist/assets/index.d.ts.map +1 -0
  7. package/dist/components/AI/AIActions.d.ts +104 -0
  8. package/dist/components/AI/AIActions.d.ts.map +1 -0
  9. package/dist/components/AI/AIAvatar.d.ts +32 -0
  10. package/dist/components/AI/AIAvatar.d.ts.map +1 -0
  11. package/dist/components/AI/AIChat.d.ts +142 -0
  12. package/dist/components/AI/AIChat.d.ts.map +1 -0
  13. package/dist/components/AI/AIContainer.d.ts +97 -0
  14. package/dist/components/AI/AIContainer.d.ts.map +1 -0
  15. package/dist/components/AI/AIExplainability.d.ts +46 -0
  16. package/dist/components/AI/AIExplainability.d.ts.map +1 -0
  17. package/dist/components/AI/AILabel.d.ts +43 -0
  18. package/dist/components/AI/AILabel.d.ts.map +1 -0
  19. package/dist/components/AI/AIMessage.d.ts +93 -0
  20. package/dist/components/AI/AIMessage.d.ts.map +1 -0
  21. package/dist/components/AI/AIRelatedQuestions.d.ts +53 -0
  22. package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -0
  23. package/dist/components/AI/AIResponseRenderer.d.ts +50 -0
  24. package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -0
  25. package/dist/components/AI/AISources.d.ts +66 -0
  26. package/dist/components/AI/AISources.d.ts.map +1 -0
  27. package/dist/components/AI/AISourcesPanel.d.ts +84 -0
  28. package/dist/components/AI/AISourcesPanel.d.ts.map +1 -0
  29. package/dist/components/AI/AITextBlock.d.ts +56 -0
  30. package/dist/components/AI/AITextBlock.d.ts.map +1 -0
  31. package/dist/components/AI/AIVisuals.d.ts +104 -0
  32. package/dist/components/AI/AIVisuals.d.ts.map +1 -0
  33. package/dist/components/AI/AIVoiceInput.d.ts +66 -0
  34. package/dist/components/AI/AIVoiceInput.d.ts.map +1 -0
  35. package/dist/components/AI/ChatHeader.d.ts +52 -0
  36. package/dist/components/AI/ChatHeader.d.ts.map +1 -0
  37. package/dist/components/AI/ChatHistoryList.d.ts +80 -0
  38. package/dist/components/AI/ChatHistoryList.d.ts.map +1 -0
  39. package/dist/components/AI/ChatThread.d.ts +74 -0
  40. package/dist/components/AI/ChatThread.d.ts.map +1 -0
  41. package/dist/components/AI/InsightEngine.d.ts +147 -0
  42. package/dist/components/AI/InsightEngine.d.ts.map +1 -0
  43. package/dist/components/AI/InsightEngineInput.d.ts +94 -0
  44. package/dist/components/AI/InsightEngineInput.d.ts.map +1 -0
  45. package/dist/components/AI/QueryInput.d.ts +114 -0
  46. package/dist/components/AI/QueryInput.d.ts.map +1 -0
  47. package/dist/components/AI/UserAvatar.d.ts +24 -0
  48. package/dist/components/AI/UserAvatar.d.ts.map +1 -0
  49. package/dist/components/AI/UserMessage.d.ts +26 -0
  50. package/dist/components/AI/UserMessage.d.ts.map +1 -0
  51. package/dist/components/AI/index.d.ts +39 -0
  52. package/dist/components/AI/index.d.ts.map +1 -0
  53. package/dist/components/AI/tokens.d.ts +132 -0
  54. package/dist/components/AI/tokens.d.ts.map +1 -0
  55. package/dist/components/AI/types/index.d.ts +6 -0
  56. package/dist/components/AI/types/index.d.ts.map +1 -0
  57. package/dist/components/AI/types/response.d.ts +312 -0
  58. package/dist/components/AI/types/response.d.ts.map +1 -0
  59. package/dist/components/AppLayout/AIFab.d.ts +50 -0
  60. package/dist/components/AppLayout/AIFab.d.ts.map +1 -0
  61. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts +32 -0
  62. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -0
  63. package/dist/components/AppLayout/AppLayout.d.ts +154 -0
  64. package/dist/components/AppLayout/AppLayout.d.ts.map +1 -0
  65. package/dist/components/AppLayout/InsightEnginePanel.d.ts +141 -0
  66. package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -0
  67. package/dist/components/AppLayout/ResizablePanel.d.ts +52 -0
  68. package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -0
  69. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +53 -0
  70. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -0
  71. package/dist/components/AppLayout/index.d.ts +27 -0
  72. package/dist/components/AppLayout/index.d.ts.map +1 -0
  73. package/dist/components/Charts/AreaChart.d.ts +38 -0
  74. package/dist/components/Charts/AreaChart.d.ts.map +1 -0
  75. package/dist/components/Charts/BarChart.d.ts +47 -0
  76. package/dist/components/Charts/BarChart.d.ts.map +1 -0
  77. package/dist/components/Charts/ChartWrapper.d.ts +48 -0
  78. package/dist/components/Charts/ChartWrapper.d.ts.map +1 -0
  79. package/dist/components/Charts/ComposedChart.d.ts +34 -0
  80. package/dist/components/Charts/ComposedChart.d.ts.map +1 -0
  81. package/dist/components/Charts/CustomLegend.d.ts +69 -0
  82. package/dist/components/Charts/CustomLegend.d.ts.map +1 -0
  83. package/dist/components/Charts/CustomTooltip.d.ts +55 -0
  84. package/dist/components/Charts/CustomTooltip.d.ts.map +1 -0
  85. package/dist/components/Charts/LineChart.d.ts +36 -0
  86. package/dist/components/Charts/LineChart.d.ts.map +1 -0
  87. package/dist/components/Charts/PieChart.d.ts +52 -0
  88. package/dist/components/Charts/PieChart.d.ts.map +1 -0
  89. package/dist/components/Charts/RadialChart.d.ts +51 -0
  90. package/dist/components/Charts/RadialChart.d.ts.map +1 -0
  91. package/dist/components/Charts/ScatterChart.d.ts +55 -0
  92. package/dist/components/Charts/ScatterChart.d.ts.map +1 -0
  93. package/dist/components/Charts/Sparkline.d.ts +44 -0
  94. package/dist/components/Charts/Sparkline.d.ts.map +1 -0
  95. package/dist/components/Charts/index.d.ts +48 -0
  96. package/dist/components/Charts/index.d.ts.map +1 -0
  97. package/dist/components/Charts/tokens.d.ts +200 -0
  98. package/dist/components/Charts/tokens.d.ts.map +1 -0
  99. package/dist/components/Charts/types.d.ts +595 -0
  100. package/dist/components/Charts/types.d.ts.map +1 -0
  101. package/dist/components/Combobox/Combobox.d.ts +99 -0
  102. package/dist/components/Combobox/Combobox.d.ts.map +1 -0
  103. package/dist/components/Combobox/index.d.ts +3 -0
  104. package/dist/components/Combobox/index.d.ts.map +1 -0
  105. package/dist/components/CommandPalette/CommandPalette.d.ts +76 -0
  106. package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -0
  107. package/dist/components/CommandPalette/index.d.ts +2 -0
  108. package/dist/components/CommandPalette/index.d.ts.map +1 -0
  109. package/dist/components/DataCard/DataCard.d.ts +60 -0
  110. package/dist/components/DataCard/DataCard.d.ts.map +1 -0
  111. package/dist/components/DataCard/index.d.ts +2 -0
  112. package/dist/components/DataCard/index.d.ts.map +1 -0
  113. package/dist/components/DataTable/CellRenderers.d.ts +78 -0
  114. package/dist/components/DataTable/CellRenderers.d.ts.map +1 -0
  115. package/dist/components/DataTable/DataTable.d.ts +36 -0
  116. package/dist/components/DataTable/DataTable.d.ts.map +1 -0
  117. package/dist/components/DataTable/InlineAddRow.d.ts +27 -0
  118. package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -0
  119. package/dist/components/DataTable/index.d.ts +6 -0
  120. package/dist/components/DataTable/index.d.ts.map +1 -0
  121. package/dist/components/DataTable/tokens.d.ts +132 -0
  122. package/dist/components/DataTable/tokens.d.ts.map +1 -0
  123. package/dist/components/DataTable/types.d.ts +334 -0
  124. package/dist/components/DataTable/types.d.ts.map +1 -0
  125. package/dist/components/DiffViewer/DiffViewer.d.ts +63 -0
  126. package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -0
  127. package/dist/components/DiffViewer/index.d.ts +3 -0
  128. package/dist/components/DiffViewer/index.d.ts.map +1 -0
  129. package/dist/components/DockLayout/DockLayout.d.ts +78 -0
  130. package/dist/components/DockLayout/DockLayout.d.ts.map +1 -0
  131. package/dist/components/DockLayout/index.d.ts +3 -0
  132. package/dist/components/DockLayout/index.d.ts.map +1 -0
  133. package/dist/components/FileUpload/FileUpload.d.ts +93 -0
  134. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -0
  135. package/dist/components/FileUpload/index.d.ts +2 -0
  136. package/dist/components/FileUpload/index.d.ts.map +1 -0
  137. package/dist/components/FilterBar/FilterBar.d.ts +76 -0
  138. package/dist/components/FilterBar/FilterBar.d.ts.map +1 -0
  139. package/dist/components/FilterBar/index.d.ts +2 -0
  140. package/dist/components/FilterBar/index.d.ts.map +1 -0
  141. package/dist/components/Footer.d.ts +30 -0
  142. package/dist/components/Footer.d.ts.map +1 -0
  143. package/dist/components/Icon.d.ts +67 -0
  144. package/dist/components/Icon.d.ts.map +1 -0
  145. package/dist/components/IllustratedMessage.d.ts +99 -0
  146. package/dist/components/IllustratedMessage.d.ts.map +1 -0
  147. package/dist/components/LandingPage/FeatureCard.d.ts +89 -0
  148. package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -0
  149. package/dist/components/LandingPage/LandingPage.d.ts +126 -0
  150. package/dist/components/LandingPage/LandingPage.d.ts.map +1 -0
  151. package/dist/components/LandingPage/index.d.ts +11 -0
  152. package/dist/components/LandingPage/index.d.ts.map +1 -0
  153. package/dist/components/Modal/Modal.d.ts +181 -0
  154. package/dist/components/Modal/Modal.d.ts.map +1 -0
  155. package/dist/components/Modal/index.d.ts +2 -0
  156. package/dist/components/Modal/index.d.ts.map +1 -0
  157. package/dist/components/PageHeader/PageHeader.d.ts +91 -0
  158. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
  159. package/dist/components/PageHeader/index.d.ts +2 -0
  160. package/dist/components/PageHeader/index.d.ts.map +1 -0
  161. package/dist/components/RichTextEditor/RichTextEditor.d.ts +52 -0
  162. package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +1 -0
  163. package/dist/components/RichTextEditor/index.d.ts +3 -0
  164. package/dist/components/RichTextEditor/index.d.ts.map +1 -0
  165. package/dist/components/SearchInput/SearchInput.d.ts +66 -0
  166. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
  167. package/dist/components/SearchInput/index.d.ts +2 -0
  168. package/dist/components/SearchInput/index.d.ts.map +1 -0
  169. package/dist/components/SimpleTable/SimpleTable.d.ts +93 -0
  170. package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -0
  171. package/dist/components/SimpleTable/index.d.ts +3 -0
  172. package/dist/components/SimpleTable/index.d.ts.map +1 -0
  173. package/dist/components/SplitPane/SplitPane.d.ts +52 -0
  174. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -0
  175. package/dist/components/SplitPane/index.d.ts +3 -0
  176. package/dist/components/SplitPane/index.d.ts.map +1 -0
  177. package/dist/components/StatusIndicator/Badge.d.ts +71 -0
  178. package/dist/components/StatusIndicator/Badge.d.ts.map +1 -0
  179. package/dist/components/StatusIndicator/Chip.d.ts +64 -0
  180. package/dist/components/StatusIndicator/Chip.d.ts.map +1 -0
  181. package/dist/components/StatusIndicator/Indicators.d.ts +81 -0
  182. package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -0
  183. package/dist/components/StatusIndicator/Legend.d.ts +42 -0
  184. package/dist/components/StatusIndicator/Legend.d.ts.map +1 -0
  185. package/dist/components/StatusIndicator/Shapes.d.ts +32 -0
  186. package/dist/components/StatusIndicator/Shapes.d.ts.map +1 -0
  187. package/dist/components/StatusIndicator/StatusIndicator.d.ts +183 -0
  188. package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -0
  189. package/dist/components/StatusIndicator/index.d.ts +55 -0
  190. package/dist/components/StatusIndicator/index.d.ts.map +1 -0
  191. package/dist/components/StatusIndicator/types.d.ts +37 -0
  192. package/dist/components/StatusIndicator/types.d.ts.map +1 -0
  193. package/dist/components/Timeline/Timeline.d.ts +89 -0
  194. package/dist/components/Timeline/Timeline.d.ts.map +1 -0
  195. package/dist/components/Timeline/index.d.ts +2 -0
  196. package/dist/components/Timeline/index.d.ts.map +1 -0
  197. package/dist/components/Toast/Toast.d.ts +124 -0
  198. package/dist/components/Toast/Toast.d.ts.map +1 -0
  199. package/dist/components/Toast/index.d.ts +2 -0
  200. package/dist/components/Toast/index.d.ts.map +1 -0
  201. package/dist/components/TopNavHeader.d.ts +55 -0
  202. package/dist/components/TopNavHeader.d.ts.map +1 -0
  203. package/dist/components/TopNavWithSidebar.d.ts +64 -0
  204. package/dist/components/TopNavWithSidebar.d.ts.map +1 -0
  205. package/dist/components/TransferList/TransferList.d.ts +62 -0
  206. package/dist/components/TransferList/TransferList.d.ts.map +1 -0
  207. package/dist/components/TransferList/index.d.ts +3 -0
  208. package/dist/components/TransferList/index.d.ts.map +1 -0
  209. package/dist/components/TreeView/TreeView.d.ts +89 -0
  210. package/dist/components/TreeView/TreeView.d.ts.map +1 -0
  211. package/dist/components/TreeView/index.d.ts +3 -0
  212. package/dist/components/TreeView/index.d.ts.map +1 -0
  213. package/dist/components/index.d.ts +119 -0
  214. package/dist/components/index.d.ts.map +1 -0
  215. package/dist/components/internal/index.d.ts +27 -0
  216. package/dist/components/internal/index.d.ts.map +1 -0
  217. package/dist/components/navigation/components.d.ts +85 -0
  218. package/dist/components/navigation/components.d.ts.map +1 -0
  219. package/dist/components/navigation/hooks.d.ts +65 -0
  220. package/dist/components/navigation/hooks.d.ts.map +1 -0
  221. package/dist/components/navigation/index.d.ts +28 -0
  222. package/dist/components/navigation/index.d.ts.map +1 -0
  223. package/dist/components/navigation/styled.d.ts +13 -0
  224. package/dist/components/navigation/styled.d.ts.map +1 -0
  225. package/dist/components/navigation/types.d.ts +58 -0
  226. package/dist/components/navigation/types.d.ts.map +1 -0
  227. package/dist/components/shared/TrinityLogoSvg.d.ts +29 -0
  228. package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -0
  229. package/dist/components/shared.d.ts +92 -0
  230. package/dist/components/shared.d.ts.map +1 -0
  231. package/dist/components/templates/Dashboard/DashboardTemplate.d.ts +66 -0
  232. package/dist/components/templates/Dashboard/DashboardTemplate.d.ts.map +1 -0
  233. package/dist/components/templates/Dashboard/index.d.ts +2 -0
  234. package/dist/components/templates/Dashboard/index.d.ts.map +1 -0
  235. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +88 -0
  236. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -0
  237. package/dist/components/templates/ListDetail/index.d.ts +2 -0
  238. package/dist/components/templates/ListDetail/index.d.ts.map +1 -0
  239. package/dist/components/templates/Settings/SettingsTemplate.d.ts +78 -0
  240. package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -0
  241. package/dist/components/templates/Settings/index.d.ts +2 -0
  242. package/dist/components/templates/Settings/index.d.ts.map +1 -0
  243. package/dist/components/templates/index.d.ts +5 -0
  244. package/dist/components/templates/index.d.ts.map +1 -0
  245. package/dist/essentials.d.ts +49 -0
  246. package/dist/essentials.d.ts.map +1 -0
  247. package/dist/essentials.js +256 -0
  248. package/dist/form.d.ts +212 -0
  249. package/dist/form.d.ts.map +1 -0
  250. package/dist/hierarchy.d.ts +371 -0
  251. package/dist/hierarchy.d.ts.map +1 -0
  252. package/dist/hooks/useTrinityPalette.d.ts +54 -0
  253. package/dist/hooks/useTrinityPalette.d.ts.map +1 -0
  254. package/dist/hooks.d.ts +217 -0
  255. package/dist/hooks.d.ts.map +1 -0
  256. package/dist/index.d.ts +111 -0
  257. package/dist/index.d.ts.map +1 -0
  258. package/dist/index.js +2293 -3731
  259. package/dist/presets/analytics.d.ts +197 -0
  260. package/dist/presets/analytics.d.ts.map +1 -0
  261. package/dist/presets/crm.d.ts +67 -0
  262. package/dist/presets/crm.d.ts.map +1 -0
  263. package/dist/presets/index.d.ts +21 -0
  264. package/dist/presets/index.d.ts.map +1 -0
  265. package/dist/presets/portal.d.ts +67 -0
  266. package/dist/presets/portal.d.ts.map +1 -0
  267. package/dist/theme.d.ts +221 -0
  268. package/dist/theme.d.ts.map +1 -0
  269. package/dist/tokens.d.ts +4760 -0
  270. package/dist/tokens.d.ts.map +1 -0
  271. package/package.json +2 -2
@@ -0,0 +1,99 @@
1
+ /**
2
+ * @fileoverview Combobox component with single and multi-select support, creatable options, and custom rendering.
3
+ * @module components/Combobox
4
+ * @example
5
+ * ```tsx
6
+ * import { Combobox } from '@trinityui/design-system';
7
+ *
8
+ * <Combobox
9
+ * options={[]}
10
+ * />
11
+ * ```
12
+ */
13
+ import * as React from 'react';
14
+ export interface ComboboxOption {
15
+ /** Unique identifier */
16
+ id: string;
17
+ /** Display label */
18
+ label: string;
19
+ /** Optional secondary text */
20
+ secondary?: string;
21
+ /** Optional group */
22
+ group?: string;
23
+ /** Optional icon */
24
+ icon?: React.ReactNode;
25
+ /** Whether option is disabled */
26
+ disabled?: boolean;
27
+ /** Custom data */
28
+ data?: Record<string, unknown>;
29
+ }
30
+ /**
31
+ * Props for Combobox component.
32
+ */
33
+ export interface ComboboxProps {
34
+ /** Available options */
35
+ options: ComboboxOption[];
36
+ /** Selected values (for controlled mode) */
37
+ value?: ComboboxOption[];
38
+ /** Default selected values (for uncontrolled mode) */
39
+ defaultValue?: ComboboxOption[];
40
+ /** Callback when selection changes */
41
+ onChange?: (selected: ComboboxOption[]) => void;
42
+ /** Allow creating new options */
43
+ creatable?: boolean;
44
+ /** Callback when new option is created */
45
+ onCreate?: (inputValue: string) => ComboboxOption | Promise<ComboboxOption>;
46
+ /** Create new option text template */
47
+ createText?: string;
48
+ /** Enable multi-select */
49
+ multiple?: boolean;
50
+ /** Placeholder text */
51
+ placeholder?: string;
52
+ /** Label text */
53
+ label?: string;
54
+ /** Helper text */
55
+ helperText?: string;
56
+ /** Error state */
57
+ error?: boolean;
58
+ /** Error message */
59
+ errorMessage?: string;
60
+ /** Disabled state */
61
+ disabled?: boolean;
62
+ /** Full width */
63
+ fullWidth?: boolean;
64
+ /** Size variant */
65
+ size?: 'small' | 'medium';
66
+ /** Limit number of visible tags */
67
+ limitTags?: number;
68
+ /** Show checkbox for multi-select */
69
+ showCheckbox?: boolean;
70
+ /** Group options by group property */
71
+ groupBy?: boolean;
72
+ /** Loading state */
73
+ loading?: boolean;
74
+ /** No options text */
75
+ noOptionsText?: string;
76
+ /** Custom filter function */
77
+ filterOptions?: (options: ComboboxOption[], state: {
78
+ inputValue: string;
79
+ }) => ComboboxOption[];
80
+ /** Custom render option */
81
+ renderOption?: (option: ComboboxOption, props: {
82
+ selected: boolean;
83
+ }) => React.ReactNode;
84
+ /** Custom render tag */
85
+ renderTag?: (option: ComboboxOption, onDelete: (event: React.SyntheticEvent) => void) => React.ReactNode;
86
+ /** Free solo mode (allow any input) */
87
+ freeSolo?: boolean;
88
+ /** Auto highlight first option */
89
+ autoHighlight?: boolean;
90
+ /** Clear on escape */
91
+ clearOnEscape?: boolean;
92
+ /** Custom class name */
93
+ className?: string;
94
+ /** Custom styles */
95
+ sx?: Record<string, unknown>;
96
+ }
97
+ export declare const Combobox: React.FC<ComboboxProps>;
98
+ export default Combobox;
99
+ //# sourceMappingURL=Combobox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ export { Combobox, type ComboboxProps, type ComboboxOption } from './Combobox';
2
+ export { default } from './Combobox';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * @fileoverview CommandPalette component - keyboard-driven command menu (⌘K pattern)
3
+ * @module components/CommandPalette
4
+ * @example
5
+ * ```tsx
6
+ * import { CommandPalette } from '@trinityui/design-system';
7
+ *
8
+ * <CommandPalette
9
+ * open={false}
10
+ * onClose={() => {}}
11
+ * commands={[]}
12
+ * />
13
+ * ```
14
+ */
15
+ import * as React from 'react';
16
+ export interface CommandItem {
17
+ /** Unique identifier */
18
+ id: string;
19
+ /** Display label */
20
+ label: string;
21
+ /** Optional description */
22
+ description?: string;
23
+ /** Icon */
24
+ icon?: React.ReactNode;
25
+ /** Keyboard shortcut */
26
+ shortcut?: string[];
27
+ /** Group this command belongs to */
28
+ group?: string;
29
+ /** Action to perform */
30
+ onSelect?: () => void;
31
+ /** Whether the command is disabled */
32
+ disabled?: boolean;
33
+ /** Keywords for search */
34
+ keywords?: string[];
35
+ /** Custom right-side content */
36
+ suffix?: React.ReactNode;
37
+ }
38
+ export interface CommandGroup {
39
+ /** Group identifier */
40
+ id: string;
41
+ /** Group label */
42
+ label: string;
43
+ /** Group icon */
44
+ icon?: React.ReactNode;
45
+ }
46
+ /**
47
+ * Props for CommandPalette component.
48
+ */
49
+ export interface CommandPaletteProps {
50
+ /** Whether the palette is open */
51
+ open: boolean;
52
+ /** Callback when palette should close */
53
+ onClose: () => void;
54
+ /** Available commands */
55
+ commands: CommandItem[];
56
+ /** Command groups for organization */
57
+ groups?: CommandGroup[];
58
+ /** Placeholder text */
59
+ placeholder?: string;
60
+ /** Empty state message */
61
+ emptyMessage?: string;
62
+ /** Loading state */
63
+ loading?: boolean;
64
+ /** Recent commands */
65
+ recentCommands?: string[];
66
+ /** Callback when a command is selected */
67
+ onCommandSelect?: (command: CommandItem) => void;
68
+ /** Max height of the command list */
69
+ maxHeight?: number;
70
+ /** Show keyboard navigation hints */
71
+ showHints?: boolean;
72
+ /** Custom filter function */
73
+ filterFn?: (command: CommandItem, query: string) => boolean;
74
+ }
75
+ export declare const CommandPalette: React.FC<CommandPaletteProps>;
76
+ //# sourceMappingURL=CommandPalette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPalette.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyB/B,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW;IACX,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,gCAAgC;IAChC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,yBAAyB;IACzB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,sCAAsC;IACtC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,0CAA0C;IAC1C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CAC7D;AA2BD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyUxD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CommandPalette, type CommandPaletteProps, type CommandItem, type CommandGroup } from './CommandPalette';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @fileoverview DataCard component for displaying metrics with trends and sparklines
3
+ * @module components/DataCard
4
+ * @example
5
+ * ```tsx
6
+ * import { DataCard } from '@trinityui/design-system';
7
+ *
8
+ * <DataCard
9
+ * title="Example"
10
+ * value={0}
11
+ * />
12
+ * ```
13
+ */
14
+ import * as React from 'react';
15
+ export type TrendDirection = 'up' | 'down' | 'flat';
16
+ /**
17
+ * Props for DataCard component.
18
+ */
19
+ export interface DataCardProps {
20
+ /** Card title */
21
+ title: string;
22
+ /** Main value to display */
23
+ value: string | number;
24
+ /** Unit or suffix for the value */
25
+ unit?: string;
26
+ /** Trend direction */
27
+ trend?: TrendDirection;
28
+ /** Trend percentage value */
29
+ trendValue?: number;
30
+ /** Trend label (e.g., "vs last month") */
31
+ trendLabel?: string;
32
+ /** Sparkline data points */
33
+ sparklineData?: number[];
34
+ /** Optional subtitle or description */
35
+ subtitle?: string;
36
+ /** Optional icon */
37
+ icon?: React.ReactNode;
38
+ /** Icon background color */
39
+ iconColor?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
40
+ /** Comparison value (e.g., "Target: 1,000") */
41
+ comparison?: string;
42
+ /** Loading state */
43
+ loading?: boolean;
44
+ /** Tooltip info text */
45
+ infoTooltip?: string;
46
+ /** Callback when more options clicked */
47
+ onMoreClick?: (event: React.MouseEvent<HTMLElement>) => void;
48
+ /** Card click handler */
49
+ onClick?: () => void;
50
+ /** Custom footer content */
51
+ footer?: React.ReactNode;
52
+ /** Size variant */
53
+ size?: 'small' | 'medium' | 'large';
54
+ /** Highlight/emphasis variant */
55
+ variant?: 'default' | 'outlined' | 'filled';
56
+ /** Full height */
57
+ fullHeight?: boolean;
58
+ }
59
+ export declare const DataCard: React.FC<DataCardProps>;
60
+ //# sourceMappingURL=DataCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataCard.d.ts","sourceRoot":"","sources":["../../../src/components/DataCard/DataCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoB/B,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAgDpD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IAC/E,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC7D,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mBAAmB;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,iCAAiC;IACjC,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC5C,kBAAkB;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AA8BD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6P5C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { DataCard, type DataCardProps, type TrendDirection } from './DataCard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DataCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @fileoverview CellRenderers component.
3
+ * @module components/DataTable/CellRenderers
4
+ * Custom Cell Renderers
5
+ * Specialized cell components for Trinity DataTable
6
+ * @example
7
+ * ```tsx
8
+ * import { CellRenderers } from '@trinityui/design-system';
9
+ *
10
+ * <CellRenderers />
11
+ * ```
12
+ */
13
+ import React from 'react';
14
+ import { GridValidRowModel } from '@mui/x-data-grid';
15
+ import { RowAction } from './types';
16
+ interface StatusCellProps {
17
+ value: string;
18
+ statusColors?: Record<string, 'success' | 'warning' | 'error' | 'info' | 'default'>;
19
+ }
20
+ export declare const StatusCell: React.FC<StatusCellProps>;
21
+ interface AvatarCellProps {
22
+ name: string;
23
+ email?: string;
24
+ src?: string;
25
+ size?: number;
26
+ fontSize?: number;
27
+ showEmail?: boolean;
28
+ }
29
+ export declare const AvatarCell: React.FC<AvatarCellProps>;
30
+ interface ProgressCellProps {
31
+ value: number;
32
+ max?: number;
33
+ showLabel?: boolean;
34
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
35
+ }
36
+ export declare const ProgressCell: React.FC<ProgressCellProps>;
37
+ interface RatingCellProps {
38
+ value: number;
39
+ max?: number;
40
+ readOnly?: boolean;
41
+ size?: 'small' | 'medium' | 'large';
42
+ }
43
+ export declare const RatingCell: React.FC<RatingCellProps>;
44
+ interface CurrencyCellProps {
45
+ value: number;
46
+ currency?: string;
47
+ locale?: string;
48
+ }
49
+ export declare const CurrencyCell: React.FC<CurrencyCellProps>;
50
+ interface ActionsCellProps<R extends GridValidRowModel> {
51
+ row: R;
52
+ actions: RowAction<R>[];
53
+ maxInline?: number;
54
+ }
55
+ export declare const ActionsCell: <R extends GridValidRowModel>({ row, actions, maxInline, }: ActionsCellProps<R>) => import("react/jsx-runtime").JSX.Element;
56
+ interface EditableCellProps {
57
+ value: string | number;
58
+ onSave: (newValue: string | number) => void;
59
+ type?: 'text' | 'number';
60
+ }
61
+ export declare const EditableCell: React.FC<EditableCellProps>;
62
+ interface HoverActionsCellProps<R extends GridValidRowModel> {
63
+ row: R;
64
+ actions: RowAction<R>[];
65
+ isHovered?: boolean;
66
+ }
67
+ export declare const HoverActionsCell: <R extends GridValidRowModel>({ row, actions, isHovered, }: HoverActionsCellProps<R>) => import("react/jsx-runtime").JSX.Element;
68
+ interface DragHandleCellProps {
69
+ isDragging?: boolean;
70
+ }
71
+ export declare const DragHandleCell: React.FC<DragHandleCellProps>;
72
+ interface TextCellProps {
73
+ primary: string;
74
+ secondary?: string;
75
+ }
76
+ export declare const TextCell: React.FC<TextCellProps>;
77
+ export default StatusCell;
78
+ //# sourceMappingURL=CellRenderers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellRenderers.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/CellRenderers.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @fileoverview DataTable component.
3
+ * @module components/DataTable/DataTable
4
+ * Trinity DataTable Component
5
+ * A comprehensive data table built on MUI X DataGrid v8
6
+ * Combines clean styling with powerful functionality
7
+ *
8
+ * Features (Free Version):
9
+ * - Density modes (compact, standard, comfortable)
10
+ * - Inline editing
11
+ * - Custom cell renderers
12
+ * - Bulk actions & row actions (menu mode)
13
+ * - Gmail-style hover actions
14
+ * - Search, filtering, sorting
15
+ * - Export (CSV, JSON, clipboard)
16
+ * - Full light/dark mode support
17
+ * - Loading skeleton states
18
+ * - Inline add row
19
+ *
20
+ * Features (Require @mui/x-data-grid-pro):
21
+ * - Tree data support
22
+ * - Column pinning
23
+ * - Row reordering / drag-drop
24
+ * - Row grouping
25
+ * @example
26
+ * ```tsx
27
+ * import { DataTable } from '@trinityui/design-system';
28
+ *
29
+ * <DataTable />
30
+ * ```
31
+ */
32
+ import { GridValidRowModel } from '@mui/x-data-grid';
33
+ import { DataTableProps } from './types';
34
+ export declare const DataTable: <R extends GridValidRowModel>({ rows, columns, loading, getRowId, density: initialDensity, allowDensityChange, selection, pagination, sorting, filtering, editing, treeData, rowGrouping: _rowGrouping, inlineAdd, columnPinning, rowReorder: _rowReorder, rowActions, rowActionsConfig, bulkActions, toolbar, title, subtitle, height, maxHeight, minHeight, stickyHeader: _stickyHeader, stripedRows, showBorders, elevation, borderRadius, onRowClick, onRowDoubleClick, onCellClick, onSelectionChange, onSortChange, onFilterChange, onPageChange, onRowUpdate, onRowAdd, onRowDelete: _onRowDelete, onRefresh, onExport, sx, className, getRowClassName, getCellClassName, slots, slotProps, }: DataTableProps<R>) => import("react/jsx-runtime").JSX.Element;
35
+ export default DataTable;
36
+ //# sourceMappingURL=DataTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAsBH,OAAO,EAaL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EAAE,cAAc,EAAyC,MAAM,SAAS,CAAC;AA0bhF,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,iBAAiB,EAAE,woBA0FpD,cAAc,CAAC,CAAC,CAAC,4CA8kBnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @fileoverview InlineAddRow component.
3
+ * @module components/DataTable/InlineAddRow
4
+ * Inline Add Row Component
5
+ * Renders a row for adding new data inline within the table
6
+ * @example
7
+ * ```tsx
8
+ * import { InlineAddRow } from '@trinityui/design-system';
9
+ *
10
+ * <InlineAddRow />
11
+ * ```
12
+ */
13
+ import { GridColDef, GridValidRowModel } from '@mui/x-data-grid';
14
+ import { InlineAddConfig, TableDensity } from './types';
15
+ interface InlineAddRowProps<R extends GridValidRowModel> {
16
+ columns: GridColDef[];
17
+ config: InlineAddConfig<R>;
18
+ density: TableDensity;
19
+ onAdd: (newRow: Partial<R>) => void;
20
+ onCancel: () => void;
21
+ isActive: boolean;
22
+ onActivate: () => void;
23
+ mode?: 'light' | 'dark';
24
+ }
25
+ export declare const InlineAddRow: <R extends GridValidRowModel>({ columns, config, density, onAdd, onCancel, isActive, onActivate, mode, }: InlineAddRowProps<R>) => import("react/jsx-runtime").JSX.Element;
26
+ export default InlineAddRow;
27
+ //# sourceMappingURL=InlineAddRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineAddRow.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/InlineAddRow.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAkBH,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGxD,UAAU,iBAAiB,CAAC,CAAC,SAAS,iBAAiB;IACrD,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,iBAAiB,EAAE,4EASvD,iBAAiB,CAAC,CAAC,CAAC,4CA+OtB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { DataTable } from './DataTable';
2
+ export { InlineAddRow } from './InlineAddRow';
3
+ export { StatusCell, AvatarCell, ProgressCell, RatingCell, CurrencyCell, ActionsCell, EditableCell, HoverActionsCell, DragHandleCell, TextCell, } from './CellRenderers';
4
+ export type { TableDensity, TreeDataRow, TrinityColumnDef, ToolbarConfig, InlineAddConfig, TreeDataConfig, RowGroupingConfig, SelectionConfig, PaginationConfig, SortingConfig, FilteringConfig, EditingConfig, ColumnPinningConfig, RowReorderConfig, RowActionsMode, RowActionsConfig, RowAction, BulkAction, DataTableProps, } from './types';
5
+ export { densityTokens, tableColors, tableTypography, tableSpacing, tableAnimation, tableBorders, tableShadows, statusBadgeTokens, tableTheme, } from './tokens';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,UAAU,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,QAAQ,GACT,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,cAAc,GACf,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,aAAa,EACb,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACX,MAAM,UAAU,CAAC"}
@@ -0,0 +1,132 @@
1
+ /**
2
+ * DataTable Design Tokens
3
+ * Consistent styling for Trinity DataTable
4
+ */
5
+ export type TableDensity = 'compact' | 'standard' | 'comfortable';
6
+ export declare const densityTokens: Record<TableDensity, {
7
+ rowHeight: number;
8
+ headerHeight: number;
9
+ fontSize: number;
10
+ padding: string;
11
+ cellPaddingY: number;
12
+ avatarSize: number;
13
+ avatarFontSize: number;
14
+ chipHeight: number;
15
+ iconSize: number;
16
+ progressWidth: number;
17
+ }>;
18
+ /**
19
+ * NOTE:
20
+ * Header background and border grays intentionally differ
21
+ * from baseTokens.gray scale.
22
+ *
23
+ * These values are tuned for dense tabular readability and
24
+ * preserve historical visual parity.
25
+ *
26
+ * Do not normalize unless approved as a visual change.
27
+ */
28
+ export declare const tableColors: {
29
+ light: {
30
+ headerBg: string;
31
+ headerText: string;
32
+ headerBorder: string;
33
+ background: string;
34
+ alternateRow: string;
35
+ hover: string;
36
+ selected: string;
37
+ borderColor: string;
38
+ text: string;
39
+ textSecondary: string;
40
+ };
41
+ dark: {
42
+ headerBg: string;
43
+ headerText: string;
44
+ headerBorder: string;
45
+ background: string;
46
+ alternateRow: string;
47
+ hover: string;
48
+ selected: string;
49
+ borderColor: string;
50
+ text: string;
51
+ textSecondary: string;
52
+ };
53
+ };
54
+ export declare const tableTypography: {
55
+ fontFamily: string;
56
+ headerWeight: number;
57
+ cellWeight: number;
58
+ header: {
59
+ fontSize: number;
60
+ fontWeight: number;
61
+ letterSpacing: string;
62
+ textTransform: "none";
63
+ };
64
+ cell: {
65
+ fontSize: number;
66
+ fontWeight: number;
67
+ lineHeight: number;
68
+ };
69
+ cellSecondary: {
70
+ fontSize: number;
71
+ fontWeight: number;
72
+ color: string;
73
+ };
74
+ footer: {
75
+ fontSize: number;
76
+ fontWeight: number;
77
+ };
78
+ };
79
+ export declare const tableSpacing: {
80
+ cellPaddingX: number;
81
+ cellPaddingY: number;
82
+ headerPaddingX: number;
83
+ headerPaddingY: number;
84
+ toolbarPadding: number;
85
+ actionGap: number;
86
+ };
87
+ export declare const tableAnimation: {
88
+ duration: number;
89
+ easing: string;
90
+ hover: string;
91
+ };
92
+ export declare const tableBorders: {
93
+ radius: number;
94
+ width: number;
95
+ style: string;
96
+ };
97
+ export declare const tableShadows: {
98
+ default: string;
99
+ hover: string;
100
+ elevated: string;
101
+ card: string;
102
+ };
103
+ export declare const statusBadgeTokens: Record<'success' | 'warning' | 'error' | 'info' | 'default', {
104
+ background: string;
105
+ text: string;
106
+ border: string;
107
+ }>;
108
+ export declare const tableTheme: {
109
+ light: {
110
+ background: string;
111
+ headerBg: string;
112
+ rowBackground: string;
113
+ rowBackgroundAlt: string;
114
+ rowHover: string;
115
+ rowSelected: string;
116
+ border: string;
117
+ text: string;
118
+ textSecondary: string;
119
+ };
120
+ dark: {
121
+ background: string;
122
+ headerBg: string;
123
+ rowBackground: string;
124
+ rowBackgroundAlt: string;
125
+ rowHover: string;
126
+ rowSelected: string;
127
+ border: string;
128
+ text: string;
129
+ textSecondary: string;
130
+ };
131
+ };
132
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC;AAMlE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB,CAqCA,CAAC;AAMF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvB,CAAC;AAMF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;CAwB3B,CAAC;AAMF,eAAO,MAAM,YAAY;;;;;;;CAOxB,CAAC;AAMF,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAMF,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAMF,eAAO,MAAM,YAAY;;;;;CAKxB,CAAC;AAMF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAAE;IAC3F,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CA0BA,CAAC;AAMF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;CAuBtB,CAAC"}