@misoto22/kioku-ui 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -0
  3. package/dist/Alert/Alert.d.ts +7 -0
  4. package/dist/Alert/Alert.doc.d.ts +11 -0
  5. package/dist/Alert/Alert.doc.js +15 -0
  6. package/dist/Alert/Alert.js +149 -0
  7. package/dist/Alert/index.d.ts +1 -0
  8. package/dist/Alert/index.js +2 -0
  9. package/dist/AsyncState/AsyncState.d.ts +30 -0
  10. package/dist/AsyncState/AsyncState.doc.d.ts +16 -0
  11. package/dist/AsyncState/AsyncState.doc.js +16 -0
  12. package/dist/AsyncState/AsyncState.js +36 -0
  13. package/dist/AsyncState/index.d.ts +1 -0
  14. package/dist/AsyncState/index.js +2 -0
  15. package/dist/Badge/Badge.d.ts +10 -0
  16. package/dist/Badge/Badge.doc.d.ts +11 -0
  17. package/dist/Badge/Badge.doc.js +12 -0
  18. package/dist/Badge/Badge.js +58 -0
  19. package/dist/Badge/index.d.ts +1 -0
  20. package/dist/Badge/index.js +2 -0
  21. package/dist/Button/Button.d.ts +18 -0
  22. package/dist/Button/Button.doc.d.ts +11 -0
  23. package/dist/Button/Button.doc.js +18 -0
  24. package/dist/Button/Button.js +151 -0
  25. package/dist/Button/index.d.ts +1 -0
  26. package/dist/Button/index.js +2 -0
  27. package/dist/Card/Card.d.ts +6 -0
  28. package/dist/Card/Card.doc.d.ts +11 -0
  29. package/dist/Card/Card.doc.js +15 -0
  30. package/dist/Card/Card.js +41 -0
  31. package/dist/Card/index.d.ts +1 -0
  32. package/dist/Card/index.js +2 -0
  33. package/dist/CardFooter/CardFooter.d.ts +3 -0
  34. package/dist/CardFooter/CardFooter.doc.d.ts +11 -0
  35. package/dist/CardFooter/CardFooter.doc.js +12 -0
  36. package/dist/CardFooter/CardFooter.js +16 -0
  37. package/dist/CardFooter/index.d.ts +1 -0
  38. package/dist/CardFooter/index.js +2 -0
  39. package/dist/CardHeader/CardHeader.d.ts +3 -0
  40. package/dist/CardHeader/CardHeader.doc.d.ts +11 -0
  41. package/dist/CardHeader/CardHeader.doc.js +12 -0
  42. package/dist/CardHeader/CardHeader.js +16 -0
  43. package/dist/CardHeader/index.d.ts +1 -0
  44. package/dist/CardHeader/index.js +2 -0
  45. package/dist/Center/Center.d.ts +3 -0
  46. package/dist/Center/Center.doc.d.ts +11 -0
  47. package/dist/Center/Center.doc.js +12 -0
  48. package/dist/Center/Center.js +15 -0
  49. package/dist/Center/index.d.ts +1 -0
  50. package/dist/Center/index.js +2 -0
  51. package/dist/Divider/Divider.d.ts +3 -0
  52. package/dist/Divider/Divider.doc.d.ts +11 -0
  53. package/dist/Divider/Divider.doc.js +12 -0
  54. package/dist/Divider/Divider.js +12 -0
  55. package/dist/Divider/index.d.ts +1 -0
  56. package/dist/Divider/index.js +2 -0
  57. package/dist/EmptyState/EmptyState.d.ts +11 -0
  58. package/dist/EmptyState/EmptyState.doc.d.ts +16 -0
  59. package/dist/EmptyState/EmptyState.doc.js +25 -0
  60. package/dist/EmptyState/EmptyState.js +55 -0
  61. package/dist/EmptyState/index.d.ts +1 -0
  62. package/dist/EmptyState/index.js +2 -0
  63. package/dist/Field/Field.d.ts +21 -0
  64. package/dist/Field/Field.doc.d.ts +16 -0
  65. package/dist/Field/Field.doc.js +28 -0
  66. package/dist/Field/Field.js +117 -0
  67. package/dist/Field/index.d.ts +1 -0
  68. package/dist/Field/index.js +2 -0
  69. package/dist/Grid/Grid.d.ts +7 -0
  70. package/dist/Grid/Grid.doc.d.ts +11 -0
  71. package/dist/Grid/Grid.doc.js +15 -0
  72. package/dist/Grid/Grid.js +76 -0
  73. package/dist/Grid/index.d.ts +1 -0
  74. package/dist/Grid/index.js +2 -0
  75. package/dist/Heading/Heading.d.ts +293 -0
  76. package/dist/Heading/Heading.doc.d.ts +16 -0
  77. package/dist/Heading/Heading.doc.js +19 -0
  78. package/dist/Heading/Heading.js +47 -0
  79. package/dist/Heading/index.d.ts +1 -0
  80. package/dist/Heading/index.js +2 -0
  81. package/dist/IconButton/IconButton.d.ts +9 -0
  82. package/dist/IconButton/IconButton.doc.d.ts +16 -0
  83. package/dist/IconButton/IconButton.doc.js +22 -0
  84. package/dist/IconButton/IconButton.js +11 -0
  85. package/dist/IconButton/index.d.ts +1 -0
  86. package/dist/IconButton/index.js +2 -0
  87. package/dist/MetricGrid/MetricGrid.d.ts +10 -0
  88. package/dist/MetricGrid/MetricGrid.doc.d.ts +12 -0
  89. package/dist/MetricGrid/MetricGrid.doc.js +13 -0
  90. package/dist/MetricGrid/MetricGrid.js +37 -0
  91. package/dist/MetricGrid/index.d.ts +1 -0
  92. package/dist/MetricGrid/index.js +2 -0
  93. package/dist/Section/Section.d.ts +6 -0
  94. package/dist/Section/Section.doc.d.ts +11 -0
  95. package/dist/Section/Section.doc.js +12 -0
  96. package/dist/Section/Section.js +49 -0
  97. package/dist/Section/index.d.ts +1 -0
  98. package/dist/Section/index.js +2 -0
  99. package/dist/SegmentedControl/SegmentedControl.d.ts +31 -0
  100. package/dist/SegmentedControl/SegmentedControl.doc.d.ts +16 -0
  101. package/dist/SegmentedControl/SegmentedControl.doc.js +34 -0
  102. package/dist/SegmentedControl/SegmentedControl.js +108 -0
  103. package/dist/SegmentedControl/index.d.ts +1 -0
  104. package/dist/SegmentedControl/index.js +2 -0
  105. package/dist/Skeleton/Skeleton.d.ts +5 -0
  106. package/dist/Skeleton/Skeleton.doc.d.ts +11 -0
  107. package/dist/Skeleton/Skeleton.doc.js +12 -0
  108. package/dist/Skeleton/Skeleton.js +20 -0
  109. package/dist/Skeleton/index.d.ts +1 -0
  110. package/dist/Skeleton/index.js +2 -0
  111. package/dist/Spinner/Spinner.d.ts +6 -0
  112. package/dist/Spinner/Spinner.doc.d.ts +12 -0
  113. package/dist/Spinner/Spinner.doc.js +13 -0
  114. package/dist/Spinner/Spinner.js +25 -0
  115. package/dist/Spinner/index.d.ts +1 -0
  116. package/dist/Spinner/index.js +2 -0
  117. package/dist/Stack/Stack.d.ts +7 -0
  118. package/dist/Stack/Stack.doc.d.ts +11 -0
  119. package/dist/Stack/Stack.doc.js +15 -0
  120. package/dist/Stack/Stack.js +77 -0
  121. package/dist/Stack/index.d.ts +1 -0
  122. package/dist/Stack/index.js +2 -0
  123. package/dist/StatusDot/StatusDot.d.ts +8 -0
  124. package/dist/StatusDot/StatusDot.doc.d.ts +16 -0
  125. package/dist/StatusDot/StatusDot.doc.js +16 -0
  126. package/dist/StatusDot/StatusDot.js +46 -0
  127. package/dist/StatusDot/index.d.ts +1 -0
  128. package/dist/StatusDot/index.js +2 -0
  129. package/dist/Table/Table.d.ts +20 -0
  130. package/dist/Table/Table.doc.d.ts +92 -0
  131. package/dist/Table/Table.doc.js +94 -0
  132. package/dist/Table/Table.js +205 -0
  133. package/dist/Table/index.d.ts +1 -0
  134. package/dist/Table/index.js +2 -0
  135. package/dist/Text/Text.d.ts +7 -0
  136. package/dist/Text/Text.doc.d.ts +11 -0
  137. package/dist/Text/Text.doc.js +15 -0
  138. package/dist/Text/Text.js +50 -0
  139. package/dist/Text/index.d.ts +1 -0
  140. package/dist/Text/index.js +2 -0
  141. package/dist/TextArea/TextArea.d.ts +16 -0
  142. package/dist/TextArea/TextArea.doc.d.ts +11 -0
  143. package/dist/TextArea/TextArea.doc.js +30 -0
  144. package/dist/TextArea/TextArea.js +47 -0
  145. package/dist/TextArea/index.d.ts +1 -0
  146. package/dist/TextArea/index.js +2 -0
  147. package/dist/TextInput/TextInput.d.ts +16 -0
  148. package/dist/TextInput/TextInput.doc.d.ts +11 -0
  149. package/dist/TextInput/TextInput.doc.js +30 -0
  150. package/dist/TextInput/TextInput.js +49 -0
  151. package/dist/TextInput/index.d.ts +1 -0
  152. package/dist/TextInput/index.js +2 -0
  153. package/dist/Toggle/Toggle.d.ts +16 -0
  154. package/dist/Toggle/Toggle.doc.d.ts +11 -0
  155. package/dist/Toggle/Toggle.doc.js +21 -0
  156. package/dist/Toggle/Toggle.js +64 -0
  157. package/dist/Toggle/index.d.ts +1 -0
  158. package/dist/Toggle/index.js +2 -0
  159. package/dist/VisuallyHidden/VisuallyHidden.d.ts +3 -0
  160. package/dist/VisuallyHidden/VisuallyHidden.doc.d.ts +11 -0
  161. package/dist/VisuallyHidden/VisuallyHidden.doc.js +12 -0
  162. package/dist/VisuallyHidden/VisuallyHidden.js +15 -0
  163. package/dist/VisuallyHidden/index.d.ts +1 -0
  164. package/dist/VisuallyHidden/index.js +2 -0
  165. package/dist/authoring.stylex.d.ts +75 -0
  166. package/dist/authoring.stylex.js +77 -0
  167. package/dist/components/Alert.d.ts +7 -0
  168. package/dist/components/Alert.doc.d.ts +11 -0
  169. package/dist/components/Alert.doc.js +15 -0
  170. package/dist/components/Alert.js +149 -0
  171. package/dist/components/AsyncState.d.ts +30 -0
  172. package/dist/components/AsyncState.doc.d.ts +16 -0
  173. package/dist/components/AsyncState.doc.js +16 -0
  174. package/dist/components/AsyncState.js +36 -0
  175. package/dist/components/Badge.d.ts +10 -0
  176. package/dist/components/Badge.doc.d.ts +11 -0
  177. package/dist/components/Badge.doc.js +12 -0
  178. package/dist/components/Badge.js +58 -0
  179. package/dist/components/Button.d.ts +18 -0
  180. package/dist/components/Button.doc.d.ts +11 -0
  181. package/dist/components/Button.doc.js +18 -0
  182. package/dist/components/Button.js +151 -0
  183. package/dist/components/Card.d.ts +6 -0
  184. package/dist/components/Card.doc.d.ts +11 -0
  185. package/dist/components/Card.doc.js +15 -0
  186. package/dist/components/Card.js +41 -0
  187. package/dist/components/CardFooter.d.ts +3 -0
  188. package/dist/components/CardFooter.doc.d.ts +11 -0
  189. package/dist/components/CardFooter.doc.js +12 -0
  190. package/dist/components/CardFooter.js +16 -0
  191. package/dist/components/CardHeader.d.ts +3 -0
  192. package/dist/components/CardHeader.doc.d.ts +11 -0
  193. package/dist/components/CardHeader.doc.js +12 -0
  194. package/dist/components/CardHeader.js +16 -0
  195. package/dist/components/Center.d.ts +3 -0
  196. package/dist/components/Center.doc.d.ts +11 -0
  197. package/dist/components/Center.doc.js +12 -0
  198. package/dist/components/Center.js +15 -0
  199. package/dist/components/Divider.d.ts +3 -0
  200. package/dist/components/Divider.doc.d.ts +11 -0
  201. package/dist/components/Divider.doc.js +12 -0
  202. package/dist/components/Divider.js +12 -0
  203. package/dist/components/EmptyState.d.ts +11 -0
  204. package/dist/components/EmptyState.doc.d.ts +16 -0
  205. package/dist/components/EmptyState.doc.js +25 -0
  206. package/dist/components/EmptyState.js +55 -0
  207. package/dist/components/Field.d.ts +21 -0
  208. package/dist/components/Field.doc.d.ts +16 -0
  209. package/dist/components/Field.doc.js +28 -0
  210. package/dist/components/Field.js +117 -0
  211. package/dist/components/Grid.d.ts +7 -0
  212. package/dist/components/Grid.doc.d.ts +11 -0
  213. package/dist/components/Grid.doc.js +15 -0
  214. package/dist/components/Grid.js +76 -0
  215. package/dist/components/Heading.d.ts +293 -0
  216. package/dist/components/Heading.doc.d.ts +16 -0
  217. package/dist/components/Heading.doc.js +19 -0
  218. package/dist/components/Heading.js +46 -0
  219. package/dist/components/IconButton.d.ts +9 -0
  220. package/dist/components/IconButton.doc.d.ts +16 -0
  221. package/dist/components/IconButton.doc.js +22 -0
  222. package/dist/components/IconButton.js +11 -0
  223. package/dist/components/MetricGrid.d.ts +10 -0
  224. package/dist/components/MetricGrid.doc.d.ts +12 -0
  225. package/dist/components/MetricGrid.doc.js +13 -0
  226. package/dist/components/MetricGrid.js +37 -0
  227. package/dist/components/Section.d.ts +6 -0
  228. package/dist/components/Section.doc.d.ts +11 -0
  229. package/dist/components/Section.doc.js +12 -0
  230. package/dist/components/Section.js +49 -0
  231. package/dist/components/SegmentedControl.d.ts +31 -0
  232. package/dist/components/SegmentedControl.doc.d.ts +16 -0
  233. package/dist/components/SegmentedControl.doc.js +34 -0
  234. package/dist/components/SegmentedControl.js +108 -0
  235. package/dist/components/Skeleton.d.ts +5 -0
  236. package/dist/components/Skeleton.doc.d.ts +11 -0
  237. package/dist/components/Skeleton.doc.js +12 -0
  238. package/dist/components/Skeleton.js +20 -0
  239. package/dist/components/Spinner.d.ts +6 -0
  240. package/dist/components/Spinner.doc.d.ts +12 -0
  241. package/dist/components/Spinner.doc.js +13 -0
  242. package/dist/components/Spinner.js +25 -0
  243. package/dist/components/Stack.d.ts +7 -0
  244. package/dist/components/Stack.doc.d.ts +11 -0
  245. package/dist/components/Stack.doc.js +15 -0
  246. package/dist/components/Stack.js +77 -0
  247. package/dist/components/StatusDot.d.ts +8 -0
  248. package/dist/components/StatusDot.doc.d.ts +16 -0
  249. package/dist/components/StatusDot.doc.js +16 -0
  250. package/dist/components/StatusDot.js +46 -0
  251. package/dist/components/Table.d.ts +20 -0
  252. package/dist/components/Table.doc.d.ts +92 -0
  253. package/dist/components/Table.doc.js +94 -0
  254. package/dist/components/Table.js +205 -0
  255. package/dist/components/Text.d.ts +7 -0
  256. package/dist/components/Text.doc.d.ts +11 -0
  257. package/dist/components/Text.doc.js +15 -0
  258. package/dist/components/Text.js +50 -0
  259. package/dist/components/TextArea.d.ts +16 -0
  260. package/dist/components/TextArea.doc.d.ts +11 -0
  261. package/dist/components/TextArea.doc.js +30 -0
  262. package/dist/components/TextArea.js +47 -0
  263. package/dist/components/TextInput.d.ts +16 -0
  264. package/dist/components/TextInput.doc.d.ts +11 -0
  265. package/dist/components/TextInput.doc.js +30 -0
  266. package/dist/components/TextInput.js +49 -0
  267. package/dist/components/Toggle.d.ts +16 -0
  268. package/dist/components/Toggle.doc.d.ts +11 -0
  269. package/dist/components/Toggle.doc.js +21 -0
  270. package/dist/components/Toggle.js +64 -0
  271. package/dist/components/VisuallyHidden.d.ts +3 -0
  272. package/dist/components/VisuallyHidden.doc.d.ts +11 -0
  273. package/dist/components/VisuallyHidden.doc.js +12 -0
  274. package/dist/components/VisuallyHidden.js +15 -0
  275. package/dist/components/index.d.ts +27 -0
  276. package/dist/components/index.js +28 -0
  277. package/dist/docs/index.d.ts +33 -0
  278. package/dist/docs/index.js +33 -0
  279. package/dist/docs/types.d.ts +15 -0
  280. package/dist/docs/types.js +25 -0
  281. package/dist/index.d.ts +31 -0
  282. package/dist/index.js +32 -0
  283. package/dist/navigation/LinkProvider.d.ts +9 -0
  284. package/dist/navigation/LinkProvider.doc.d.ts +27 -0
  285. package/dist/navigation/LinkProvider.doc.js +27 -0
  286. package/dist/navigation/LinkProvider.js +22 -0
  287. package/dist/navigation/index.d.ts +1 -0
  288. package/dist/navigation/index.js +2 -0
  289. package/dist/styles/global.stylex.d.ts +20 -0
  290. package/dist/styles/global.stylex.js +22 -0
  291. package/dist/styles/index.css +14 -0
  292. package/dist/styles/reset.css +35 -0
  293. package/dist/styles/stylex.css +212 -0
  294. package/dist/theme/Theme.d.ts +24 -0
  295. package/dist/theme/Theme.doc.d.ts +16 -0
  296. package/dist/theme/Theme.doc.js +27 -0
  297. package/dist/theme/Theme.js +110 -0
  298. package/dist/theme/index.d.ts +2 -0
  299. package/dist/theme/index.js +2 -0
  300. package/dist/tokens/contracts.d.ts +140 -0
  301. package/dist/tokens/contracts.js +102 -0
  302. package/package.json +93 -0
  303. package/src/Alert/Alert.doc.ts +21 -0
  304. package/src/Alert/Alert.tsx +129 -0
  305. package/src/Alert/index.ts +1 -0
  306. package/src/AsyncState/AsyncState.doc.ts +21 -0
  307. package/src/AsyncState/AsyncState.tsx +75 -0
  308. package/src/AsyncState/index.ts +5 -0
  309. package/src/Badge/Badge.doc.ts +15 -0
  310. package/src/Badge/Badge.tsx +58 -0
  311. package/src/Badge/index.ts +6 -0
  312. package/src/Button/Button.doc.ts +17 -0
  313. package/src/Button/Button.tsx +176 -0
  314. package/src/Button/index.ts +7 -0
  315. package/src/Card/Card.doc.ts +22 -0
  316. package/src/Card/Card.tsx +44 -0
  317. package/src/Card/index.ts +1 -0
  318. package/src/CardFooter/CardFooter.doc.ts +12 -0
  319. package/src/CardFooter/CardFooter.tsx +27 -0
  320. package/src/CardFooter/index.ts +1 -0
  321. package/src/CardHeader/CardHeader.doc.ts +12 -0
  322. package/src/CardHeader/CardHeader.tsx +27 -0
  323. package/src/CardHeader/index.ts +1 -0
  324. package/src/Center/Center.doc.ts +12 -0
  325. package/src/Center/Center.tsx +20 -0
  326. package/src/Center/index.ts +1 -0
  327. package/src/Divider/Divider.doc.ts +12 -0
  328. package/src/Divider/Divider.tsx +20 -0
  329. package/src/Divider/index.ts +1 -0
  330. package/src/EmptyState/EmptyState.doc.ts +31 -0
  331. package/src/EmptyState/EmptyState.tsx +87 -0
  332. package/src/EmptyState/index.ts +6 -0
  333. package/src/Field/Field.doc.ts +34 -0
  334. package/src/Field/Field.tsx +126 -0
  335. package/src/Field/index.ts +6 -0
  336. package/src/Grid/Grid.doc.ts +16 -0
  337. package/src/Grid/Grid.tsx +54 -0
  338. package/src/Grid/index.ts +1 -0
  339. package/src/Heading/Heading.doc.ts +26 -0
  340. package/src/Heading/Heading.tsx +48 -0
  341. package/src/Heading/index.ts +1 -0
  342. package/src/IconButton/IconButton.doc.ts +24 -0
  343. package/src/IconButton/IconButton.tsx +18 -0
  344. package/src/IconButton/index.ts +1 -0
  345. package/src/MetricGrid/MetricGrid.doc.ts +19 -0
  346. package/src/MetricGrid/MetricGrid.tsx +72 -0
  347. package/src/MetricGrid/index.ts +5 -0
  348. package/src/Section/Section.doc.ts +12 -0
  349. package/src/Section/Section.tsx +38 -0
  350. package/src/Section/index.ts +1 -0
  351. package/src/SegmentedControl/SegmentedControl.doc.ts +51 -0
  352. package/src/SegmentedControl/SegmentedControl.tsx +238 -0
  353. package/src/SegmentedControl/index.ts +5 -0
  354. package/src/Skeleton/Skeleton.doc.ts +15 -0
  355. package/src/Skeleton/Skeleton.tsx +45 -0
  356. package/src/Skeleton/index.ts +1 -0
  357. package/src/Spinner/Spinner.doc.ts +19 -0
  358. package/src/Spinner/Spinner.tsx +47 -0
  359. package/src/Spinner/index.ts +1 -0
  360. package/src/Stack/Stack.doc.ts +13 -0
  361. package/src/Stack/Stack.tsx +57 -0
  362. package/src/Stack/index.ts +1 -0
  363. package/src/StatusDot/StatusDot.doc.ts +23 -0
  364. package/src/StatusDot/StatusDot.tsx +35 -0
  365. package/src/StatusDot/index.ts +1 -0
  366. package/src/Table/Table.doc.ts +104 -0
  367. package/src/Table/Table.tsx +222 -0
  368. package/src/Table/index.ts +18 -0
  369. package/src/Text/Text.doc.ts +17 -0
  370. package/src/Text/Text.tsx +43 -0
  371. package/src/Text/index.ts +1 -0
  372. package/src/TextArea/TextArea.doc.ts +43 -0
  373. package/src/TextArea/TextArea.tsx +119 -0
  374. package/src/TextArea/index.ts +1 -0
  375. package/src/TextInput/TextInput.doc.ts +43 -0
  376. package/src/TextInput/TextInput.tsx +122 -0
  377. package/src/TextInput/index.ts +1 -0
  378. package/src/Toggle/Toggle.doc.ts +30 -0
  379. package/src/Toggle/Toggle.tsx +139 -0
  380. package/src/Toggle/index.ts +1 -0
  381. package/src/VisuallyHidden/VisuallyHidden.doc.ts +18 -0
  382. package/src/VisuallyHidden/VisuallyHidden.tsx +28 -0
  383. package/src/VisuallyHidden/index.ts +1 -0
  384. package/src/authoring.stylex.ts +76 -0
  385. package/src/docs/index.ts +122 -0
  386. package/src/docs/types.ts +51 -0
  387. package/src/index.ts +102 -0
  388. package/src/navigation/LinkProvider.doc.ts +32 -0
  389. package/src/navigation/LinkProvider.tsx +32 -0
  390. package/src/navigation/index.ts +7 -0
  391. package/src/styles/global.stylex.ts +23 -0
  392. package/src/styles/index.css +14 -0
  393. package/src/styles/reset.css +35 -0
  394. package/src/theme/Theme.doc.ts +38 -0
  395. package/src/theme/Theme.tsx +195 -0
  396. package/src/theme/index.ts +9 -0
  397. package/src/tokens/contracts.ts +210 -0
@@ -0,0 +1,11 @@
1
+ export declare const sectionDoc: {
2
+ name: string;
3
+ description: string;
4
+ props: {
5
+ name: string;
6
+ description: string;
7
+ }[];
8
+ inheritedProps: string[];
9
+ example: string;
10
+ storyId: string;
11
+ };
@@ -0,0 +1,12 @@
1
+ import "../styles/stylex.css";
2
+ export const sectionDoc = {
3
+ name: 'Section',
4
+ description: 'Groups related content in a native section landmark.',
5
+ props: [{
6
+ name: 'padding',
7
+ description: 'Optional semantic block-padding token.'
8
+ }],
9
+ inheritedProps: ['HTMLAttributes<HTMLElement> except className'],
10
+ example: '<Section aria-label="Preferences"><Text>Content</Text></Section>',
11
+ storyId: 'core-section--default'
12
+ };
@@ -0,0 +1,49 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ import { semanticTokens } from '../authoring.stylex.js';
3
+ import "../styles/stylex.css";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const styles = {
6
+ paddingXs: {
7
+ k8WAf4: "x10y07nz",
8
+ $$css: true
9
+ },
10
+ paddingSm: {
11
+ k8WAf4: "xoeao9w",
12
+ $$css: true
13
+ },
14
+ paddingMd: {
15
+ k8WAf4: "x1lr58ck",
16
+ $$css: true
17
+ },
18
+ paddingLg: {
19
+ k8WAf4: "x17uk85o",
20
+ $$css: true
21
+ },
22
+ paddingXl: {
23
+ k8WAf4: "x18wayz0",
24
+ $$css: true
25
+ },
26
+ padding2xl: {
27
+ k8WAf4: "x3x1fh3",
28
+ $$css: true
29
+ }
30
+ };
31
+ const paddings = {
32
+ xs: styles.paddingXs,
33
+ sm: styles.paddingSm,
34
+ md: styles.paddingMd,
35
+ lg: styles.paddingLg,
36
+ xl: styles.paddingXl,
37
+ '2xl': styles.padding2xl
38
+ };
39
+ export function Section({
40
+ children,
41
+ padding = 'xl',
42
+ ...props
43
+ }) {
44
+ return /*#__PURE__*/_jsx("section", {
45
+ ...props,
46
+ ...stylex.props(paddings[padding]),
47
+ children: children
48
+ });
49
+ }
@@ -0,0 +1 @@
1
+ export { Section, type SectionProps } from './Section.js';
@@ -0,0 +1,2 @@
1
+ import "../styles/stylex.css";
2
+ export { Section } from './Section.js';
@@ -0,0 +1,31 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export interface SegmentedControlOption<Value extends string = string> {
3
+ readonly disabled?: boolean;
4
+ readonly label: ReactNode;
5
+ readonly value: Value;
6
+ }
7
+ type SharedSegmentedControlProps<Value extends string> = Omit<HTMLAttributes<HTMLDivElement>, 'aria-label' | 'aria-labelledby' | 'className' | 'defaultValue' | 'onChange'> & {
8
+ readonly disabled?: boolean;
9
+ readonly onValueChange?: (value: Value) => void;
10
+ readonly options: readonly SegmentedControlOption<Value>[];
11
+ readonly orientation?: 'horizontal' | 'vertical';
12
+ };
13
+ type SegmentedControlAccessibleName = {
14
+ readonly 'aria-label': string;
15
+ readonly 'aria-labelledby'?: string;
16
+ } | {
17
+ readonly 'aria-label'?: string;
18
+ readonly 'aria-labelledby': string;
19
+ };
20
+ type ControlledSegmentedControlProps<Value extends string> = SharedSegmentedControlProps<Value> & {
21
+ readonly defaultValue?: never;
22
+ readonly onValueChange: (value: Value) => void;
23
+ readonly value: Value;
24
+ };
25
+ type UncontrolledSegmentedControlProps<Value extends string> = SharedSegmentedControlProps<Value> & {
26
+ readonly defaultValue?: Value;
27
+ readonly value?: never;
28
+ };
29
+ export type SegmentedControlProps<Value extends string = string> = (ControlledSegmentedControlProps<Value> | UncontrolledSegmentedControlProps<Value>) & SegmentedControlAccessibleName;
30
+ export declare function SegmentedControl<Value extends string = string>({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, defaultValue, disabled, onValueChange, options, orientation, value, ...props }: SegmentedControlProps<Value>): import("react").JSX.Element;
31
+ export {};
@@ -0,0 +1,16 @@
1
+ export declare const segmentedControlDoc: {
2
+ name: string;
3
+ description: string;
4
+ props: ({
5
+ name: string;
6
+ description: string;
7
+ required?: undefined;
8
+ } | {
9
+ name: string;
10
+ description: string;
11
+ required: true;
12
+ })[];
13
+ inheritedProps: string[];
14
+ example: string;
15
+ storyId: string;
16
+ };
@@ -0,0 +1,34 @@
1
+ import "../styles/stylex.css";
2
+ export const segmentedControlDoc = {
3
+ name: 'SegmentedControl',
4
+ description: 'Chooses one supplied option with roving radio-group keyboard behavior.',
5
+ props: [{
6
+ name: 'aria-label',
7
+ description: 'Directly names the radiogroup when no external label is used.'
8
+ }, {
9
+ name: 'aria-labelledby',
10
+ description: 'References the element that names the radiogroup.'
11
+ }, {
12
+ name: 'defaultValue',
13
+ description: 'Sets the initial value for uncontrolled selection while preserving roving focus.'
14
+ }, {
15
+ name: 'disabled',
16
+ description: 'Disables every option and removes the group from tab order.'
17
+ }, {
18
+ name: 'onValueChange',
19
+ description: 'Receives the next value selected by pointer or keyboard.'
20
+ }, {
21
+ name: 'options',
22
+ description: 'Supplies labels, values, and disabled states.',
23
+ required: true
24
+ }, {
25
+ name: 'orientation',
26
+ description: 'Selects horizontal or vertical arrow-key behavior.'
27
+ }, {
28
+ name: 'value',
29
+ description: 'Controls the current selected value; pointer and keyboard intent is reported through onValueChange.'
30
+ }],
31
+ inheritedProps: ['HTMLAttributes<HTMLDivElement> except aria-label, aria-labelledby, className, defaultValue, and onChange'],
32
+ example: '<SegmentedControl aria-label="Alignment" options={options} />',
33
+ storyId: 'core-segmented-control--default'
34
+ };
@@ -0,0 +1,108 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ import { useRef, useState } from 'react';
3
+ import { semanticTokens } from '../authoring.stylex.js';
4
+ import "../styles/stylex.css";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export function SegmentedControl({
7
+ 'aria-label': ariaLabel,
8
+ 'aria-labelledby': ariaLabelledBy,
9
+ defaultValue,
10
+ disabled = false,
11
+ onValueChange,
12
+ options,
13
+ orientation = 'horizontal',
14
+ value,
15
+ ...props
16
+ }) {
17
+ if (!ariaLabel?.trim() && !ariaLabelledBy?.trim()) {
18
+ throw new Error('SegmentedControl requires an accessible name');
19
+ }
20
+ const firstEnabledValue = options.find(option => !option.disabled)?.value;
21
+ const [internalValue, setInternalValue] = useState(defaultValue ?? firstEnabledValue);
22
+ const requestedValue = value ?? internalValue;
23
+ const selectedValue = options.some(option => option.value === requestedValue && !option.disabled) ? requestedValue : firstEnabledValue;
24
+ const optionRefs = useRef(new Map());
25
+ const enabledOptions = options.filter(option => !disabled && !option.disabled);
26
+ function select(nextValue) {
27
+ if (value === undefined) {
28
+ setInternalValue(nextValue);
29
+ }
30
+ onValueChange?.(nextValue);
31
+ }
32
+ function moveSelection(currentValue, direction) {
33
+ if (enabledOptions.length === 0) {
34
+ return;
35
+ }
36
+ const currentIndex = enabledOptions.findIndex(option => option.value === currentValue);
37
+ let nextIndex;
38
+ if (direction === 'first') {
39
+ nextIndex = 0;
40
+ } else if (direction === 'last') {
41
+ nextIndex = enabledOptions.length - 1;
42
+ } else if (direction === 'next') {
43
+ nextIndex = (currentIndex + 1 + enabledOptions.length) % enabledOptions.length;
44
+ } else {
45
+ nextIndex = (currentIndex - 1 + enabledOptions.length) % enabledOptions.length;
46
+ }
47
+ const nextOption = enabledOptions[nextIndex];
48
+ if (!nextOption) {
49
+ return;
50
+ }
51
+ select(nextOption.value);
52
+ optionRefs.current.get(nextOption.value)?.focus();
53
+ }
54
+ function handleKeyDown(event, currentValue) {
55
+ const nextKey = orientation === 'horizontal' ? 'ArrowRight' : 'ArrowDown';
56
+ const previousKey = orientation === 'horizontal' ? 'ArrowLeft' : 'ArrowUp';
57
+ const direction = event.key === nextKey ? 'next' : event.key === previousKey ? 'previous' : event.key === 'Home' ? 'first' : event.key === 'End' ? 'last' : undefined;
58
+ if (direction) {
59
+ event.preventDefault();
60
+ moveSelection(currentValue, direction);
61
+ }
62
+ }
63
+ return /*#__PURE__*/_jsx("div", {
64
+ ...props,
65
+ "aria-label": ariaLabel,
66
+ "aria-labelledby": ariaLabelledBy,
67
+ "aria-disabled": disabled || undefined,
68
+ "aria-orientation": orientation,
69
+ role: "radiogroup",
70
+ ...{
71
+ 0: {
72
+ className: "xavu78a x8kq9my x3nfvp2 x1iwn5ga x1tkv3ku"
73
+ },
74
+ 1: {
75
+ className: "xavu78a x8kq9my x3nfvp2 x1iwn5ga x1tkv3ku xdt5ytf"
76
+ }
77
+ }[!!(orientation === 'vertical') << 0],
78
+ children: options.map(option => {
79
+ const isDisabled = disabled || Boolean(option.disabled);
80
+ const isSelected = option.value === selectedValue;
81
+ return /*#__PURE__*/_jsx("button", {
82
+ "aria-checked": isSelected,
83
+ disabled: isDisabled,
84
+ onClick: () => select(option.value),
85
+ onKeyDown: event => handleKeyDown(event, option.value),
86
+ ref: element => {
87
+ if (element) {
88
+ optionRefs.current.set(option.value, element);
89
+ } else {
90
+ optionRefs.current.delete(option.value);
91
+ }
92
+ },
93
+ role: "radio",
94
+ tabIndex: isSelected && !isDisabled ? 0 : -1,
95
+ ...{
96
+ 0: {
97
+ className: "xjbqb8w x1l6hjkl xng3xce x9f619 x1y4yzzg xj0sio9 x1ti3rys xmm8wyw x10y07nz x1qtbwip x609gy3 x15meki4 xz32tfx x1p22nma x17lds6u xbo0ryh x1ipqx2d"
98
+ },
99
+ 1: {
100
+ className: "x1l6hjkl xng3xce x9f619 xj0sio9 x1ti3rys xmm8wyw x10y07nz x1qtbwip x609gy3 x15meki4 xz32tfx x1p22nma x17lds6u x40o0ze x1elh21b x1y4yzzg"
101
+ }
102
+ }[!!isSelected << 0],
103
+ type: "button",
104
+ children: option.label
105
+ }, option.value);
106
+ })
107
+ });
108
+ }
@@ -0,0 +1 @@
1
+ export { SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, } from './SegmentedControl.js';
@@ -0,0 +1,2 @@
1
+ import "../styles/stylex.css";
2
+ export { SegmentedControl } from './SegmentedControl.js';
@@ -0,0 +1,5 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ export interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'aria-label' | 'children' | 'className' | 'role'> {
3
+ readonly label?: string;
4
+ }
5
+ export declare function Skeleton({ label, ...props }: SkeletonProps): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export declare const skeletonDoc: {
2
+ name: string;
3
+ description: string;
4
+ props: {
5
+ name: string;
6
+ description: string;
7
+ }[];
8
+ inheritedProps: string[];
9
+ example: string;
10
+ storyId: string;
11
+ };
@@ -0,0 +1,12 @@
1
+ import "../styles/stylex.css";
2
+ export const skeletonDoc = {
3
+ name: 'Skeleton',
4
+ description: 'Displays a decorative or explicitly labelled loading placeholder with a static reduced-motion fallback.',
5
+ props: [{
6
+ name: 'label',
7
+ description: 'Optionally announces what is loading.'
8
+ }],
9
+ inheritedProps: ['HTMLAttributes<HTMLDivElement> except aria-label, children, className, and role'],
10
+ example: '<Skeleton label="Loading summary" />',
11
+ storyId: 'core-skeleton--default'
12
+ };
@@ -0,0 +1,20 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ import { semanticTokens } from '../authoring.stylex.js';
3
+ import "../styles/stylex.css";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const pulse = "x1vfr86i-B";
6
+ export function Skeleton({
7
+ label,
8
+ ...props
9
+ }) {
10
+ return /*#__PURE__*/_jsx("div", {
11
+ ...props,
12
+ "aria-busy": label ? 'true' : undefined,
13
+ "aria-hidden": label ? undefined : 'true',
14
+ "aria-label": label,
15
+ role: label ? 'status' : undefined,
16
+ ...{
17
+ className: "xpz12be xslpo9u xa4qsjk x125lowv x1aquc0h xsus3lq xavu78a x8kq9my xmm8wyw xh8yej3"
18
+ }
19
+ });
20
+ }
@@ -0,0 +1 @@
1
+ export { Skeleton, type SkeletonProps } from './Skeleton.js';
@@ -0,0 +1,2 @@
1
+ import "../styles/stylex.css";
2
+ export { Skeleton } from './Skeleton.js';
@@ -0,0 +1,6 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ export interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'aria-label' | 'children' | 'className' | 'role'> {
3
+ readonly label: string;
4
+ }
5
+ export declare function Spinner({ label, ...props }: SpinnerProps): import("react").JSX.Element;
6
+ export declare function SpinnerVisual(): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ export declare const spinnerDoc: {
2
+ name: string;
3
+ description: string;
4
+ props: {
5
+ name: string;
6
+ description: string;
7
+ required: true;
8
+ }[];
9
+ inheritedProps: string[];
10
+ example: string;
11
+ storyId: string;
12
+ };
@@ -0,0 +1,13 @@
1
+ import "../styles/stylex.css";
2
+ export const spinnerDoc = {
3
+ name: 'Spinner',
4
+ description: 'Announces indeterminate progress with a required accessible label and a static reduced-motion fallback.',
5
+ props: [{
6
+ name: 'label',
7
+ description: 'Names the operation in progress.',
8
+ required: true
9
+ }],
10
+ inheritedProps: ['HTMLAttributes<HTMLSpanElement> except aria-label, children, className, and role'],
11
+ example: '<Spinner label="Loading items" />',
12
+ storyId: 'core-spinner--default'
13
+ };
@@ -0,0 +1,25 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ import { semanticTokens } from '../authoring.stylex.js';
3
+ import "../styles/stylex.css";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const spin = "x1fy8ia8-B";
6
+ export function Spinner({
7
+ label,
8
+ ...props
9
+ }) {
10
+ return /*#__PURE__*/_jsx("span", {
11
+ ...props,
12
+ "aria-busy": "true",
13
+ "aria-label": label,
14
+ role: "status",
15
+ children: /*#__PURE__*/_jsx(SpinnerVisual, {})
16
+ });
17
+ }
18
+ export function SpinnerVisual() {
19
+ return /*#__PURE__*/_jsx("span", {
20
+ "aria-hidden": "true",
21
+ ...{
22
+ className: "xslpo9u xa4qsjk xpedhrg x1aquc0h xsus3lq x11a5md6 x2nywlj xnpwncj x1jnjmdy xpxnlqs x1rg5ohu x7s8d8b x1psh5v9"
23
+ }
24
+ });
25
+ }
@@ -0,0 +1 @@
1
+ export { Spinner, SpinnerVisual, type SpinnerProps } from './Spinner.js';
@@ -0,0 +1,2 @@
1
+ import "../styles/stylex.css";
2
+ export { Spinner, SpinnerVisual } from './Spinner.js';
@@ -0,0 +1,7 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ export type Space = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
3
+ export interface StackProps extends Omit<HTMLAttributes<HTMLDivElement>, 'className'> {
4
+ readonly gap?: Space;
5
+ readonly align?: 'stretch' | 'start' | 'center' | 'end';
6
+ }
7
+ export declare function Stack({ gap, align, children, ...props }: StackProps): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export declare const stackDoc: {
2
+ name: string;
3
+ description: string;
4
+ props: {
5
+ name: string;
6
+ description: string;
7
+ }[];
8
+ inheritedProps: string[];
9
+ example: string;
10
+ storyId: string;
11
+ };
@@ -0,0 +1,15 @@
1
+ import "../styles/stylex.css";
2
+ export const stackDoc = {
3
+ name: 'Stack',
4
+ description: 'Arranges children vertically with semantic spacing.',
5
+ props: [{
6
+ name: 'gap',
7
+ description: 'Optional semantic gap token.'
8
+ }, {
9
+ name: 'align',
10
+ description: 'Optional cross-axis alignment.'
11
+ }],
12
+ inheritedProps: ['HTMLAttributes<HTMLDivElement> except className'],
13
+ example: '<Stack gap="md"><Text>First</Text><Text>Second</Text></Stack>',
14
+ storyId: 'core-stack--default'
15
+ };
@@ -0,0 +1,77 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ import { semanticTokens } from '../authoring.stylex.js';
3
+ import "../styles/stylex.css";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const styles = {
6
+ base: {
7
+ k1xSpc: "x78zum5",
8
+ kXwgrk: "xdt5ytf",
9
+ $$css: true
10
+ },
11
+ gapXs: {
12
+ kOIVth: "x1iwn5ga",
13
+ $$css: true
14
+ },
15
+ gapSm: {
16
+ kOIVth: "x1ap6kct",
17
+ $$css: true
18
+ },
19
+ gapMd: {
20
+ kOIVth: "xtl099x",
21
+ $$css: true
22
+ },
23
+ gapLg: {
24
+ kOIVth: "x4nws80",
25
+ $$css: true
26
+ },
27
+ gapXl: {
28
+ kOIVth: "x1ws3dqe",
29
+ $$css: true
30
+ },
31
+ gap2xl: {
32
+ kOIVth: "xl3vxp",
33
+ $$css: true
34
+ },
35
+ alignStretch: {
36
+ kGNEyG: "x1qjc9v5",
37
+ $$css: true
38
+ },
39
+ alignStart: {
40
+ kGNEyG: "x1cy8zhl",
41
+ $$css: true
42
+ },
43
+ alignCenter: {
44
+ kGNEyG: "x6s0dn4",
45
+ $$css: true
46
+ },
47
+ alignEnd: {
48
+ kGNEyG: "xuk3077",
49
+ $$css: true
50
+ }
51
+ };
52
+ const gaps = {
53
+ xs: styles.gapXs,
54
+ sm: styles.gapSm,
55
+ md: styles.gapMd,
56
+ lg: styles.gapLg,
57
+ xl: styles.gapXl,
58
+ '2xl': styles.gap2xl
59
+ };
60
+ const aligns = {
61
+ stretch: styles.alignStretch,
62
+ start: styles.alignStart,
63
+ center: styles.alignCenter,
64
+ end: styles.alignEnd
65
+ };
66
+ export function Stack({
67
+ gap = 'md',
68
+ align = 'stretch',
69
+ children,
70
+ ...props
71
+ }) {
72
+ return /*#__PURE__*/_jsx("div", {
73
+ ...props,
74
+ ...stylex.props(styles.base, gaps[gap], aligns[align]),
75
+ children: children
76
+ });
77
+ }
@@ -0,0 +1 @@
1
+ export { Stack, type Space, type StackProps } from './Stack.js';
@@ -0,0 +1,2 @@
1
+ import "../styles/stylex.css";
2
+ export { Stack } from './Stack.js';
@@ -0,0 +1,8 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import type { StatusTone } from '../Badge/index.js';
3
+ /** Props for a labelled live-status indicator using semantic status tones. */
4
+ export interface StatusDotProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'aria-label' | 'children' | 'className' | 'role'> {
5
+ readonly 'aria-label': string;
6
+ readonly tone?: StatusTone;
7
+ }
8
+ export declare function StatusDot({ tone, ...props }: StatusDotProps): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ export declare const statusDotDoc: {
2
+ name: string;
3
+ description: string;
4
+ props: ({
5
+ name: string;
6
+ description: string;
7
+ required: true;
8
+ } | {
9
+ name: string;
10
+ description: string;
11
+ required?: undefined;
12
+ })[];
13
+ inheritedProps: string[];
14
+ example: string;
15
+ storyId: string;
16
+ };
@@ -0,0 +1,16 @@
1
+ import "../styles/stylex.css";
2
+ export const statusDotDoc = {
3
+ name: 'StatusDot',
4
+ description: 'Announces a compact live status indicator by its supplied label.',
5
+ props: [{
6
+ name: 'aria-label',
7
+ description: 'Names the represented status.',
8
+ required: true
9
+ }, {
10
+ name: 'tone',
11
+ description: 'Selects one of the four semantic status tones.'
12
+ }],
13
+ inheritedProps: ['HTMLAttributes<HTMLSpanElement> except aria-label, children, className, and role'],
14
+ example: '<StatusDot aria-label="Service available" tone="success" />',
15
+ storyId: 'core-status-dot--default'
16
+ };
@@ -0,0 +1,46 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ import { semanticTokens } from '../authoring.stylex.js';
3
+ import "../styles/stylex.css";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const styles = {
6
+ base: {
7
+ kaIpWk: "xnpwncj",
8
+ k1xSpc: "x1rg5ohu",
9
+ kZKoxP: "x1ieyhmn",
10
+ kzqmXN: "x1rcf1qu",
11
+ $$css: true
12
+ },
13
+ info: {
14
+ kWkggS: "x18i8t7",
15
+ $$css: true
16
+ },
17
+ success: {
18
+ kWkggS: "x1sm82us",
19
+ $$css: true
20
+ },
21
+ warning: {
22
+ kWkggS: "xe2mao8",
23
+ $$css: true
24
+ },
25
+ danger: {
26
+ kWkggS: "xpqgouk",
27
+ $$css: true
28
+ }
29
+ };
30
+
31
+ /** Props for a labelled live-status indicator using semantic status tones. */
32
+
33
+ export function StatusDot({
34
+ tone = 'info',
35
+ ...props
36
+ }) {
37
+ return /*#__PURE__*/_jsx("span", {
38
+ ...props,
39
+ "aria-live": "polite",
40
+ role: "status",
41
+ children: /*#__PURE__*/_jsx("span", {
42
+ "aria-hidden": "true",
43
+ ...stylex.props(styles.base, styles[tone])
44
+ })
45
+ });
46
+ }
@@ -0,0 +1 @@
1
+ export { StatusDot, type StatusDotProps } from './StatusDot.js';
@@ -0,0 +1,2 @@
1
+ import "../styles/stylex.css";
2
+ export { StatusDot } from './StatusDot.js';
@@ -0,0 +1,20 @@
1
+ import type { HTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
+ export type TableDensity = 'compact' | 'default' | 'spacious';
3
+ export type TableDividers = 'rows' | 'columns' | 'grid' | 'none';
4
+ export interface TableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'className'> {
5
+ readonly density?: TableDensity;
6
+ readonly dividers?: TableDividers;
7
+ }
8
+ export type TableCaptionProps = Omit<HTMLAttributes<HTMLTableCaptionElement>, 'className'>;
9
+ export type TableHeadProps = Omit<HTMLAttributes<HTMLTableSectionElement>, 'className'>;
10
+ export type TableBodyProps = TableHeadProps;
11
+ export type TableRowProps = Omit<HTMLAttributes<HTMLTableRowElement>, 'className'>;
12
+ export type TableHeaderCellProps = Omit<ThHTMLAttributes<HTMLTableCellElement>, 'className'>;
13
+ export type TableCellProps = Omit<TdHTMLAttributes<HTMLTableCellElement>, 'className'>;
14
+ export declare function Table({ children, density, dividers, ...props }: TableProps): import("react").JSX.Element;
15
+ export declare function TableCaption({ children, ...props }: TableCaptionProps): import("react").JSX.Element;
16
+ export declare function TableHead({ children, ...props }: TableHeadProps): import("react").JSX.Element;
17
+ export declare function TableBody({ children, ...props }: TableBodyProps): import("react").JSX.Element;
18
+ export declare function TableRow({ children, ...props }: TableRowProps): import("react").JSX.Element;
19
+ export declare function TableHeaderCell({ children, scope, ...props }: TableHeaderCellProps): import("react").JSX.Element;
20
+ export declare function TableCell({ children, ...props }: TableCellProps): import("react").JSX.Element;