@mrpelz/uikit-ish 7.13.1 → 7.29.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 (393) hide show
  1. package/dist/components/accordion/style.css +0 -3
  2. package/dist/components/action-sheet/main.d.ts.map +1 -1
  3. package/dist/components/action-sheet/main.js +9 -6
  4. package/dist/components/action-sheet/main.js.map +1 -1
  5. package/dist/components/action-sheet/props.d.ts +2 -1
  6. package/dist/components/action-sheet/props.d.ts.map +1 -1
  7. package/dist/components/activity-view/style.css +17 -17
  8. package/dist/components/alert/main.d.ts.map +1 -1
  9. package/dist/components/alert/main.js +12 -4
  10. package/dist/components/alert/main.js.map +1 -1
  11. package/dist/components/alert/props.d.ts +2 -1
  12. package/dist/components/alert/props.d.ts.map +1 -1
  13. package/dist/components/alert/style.css +39 -15
  14. package/dist/components/avatar/style.css +2 -2
  15. package/dist/components/badge/style.css +1 -1
  16. package/dist/components/button/main.js +1 -1
  17. package/dist/components/button/main.js.map +1 -1
  18. package/dist/components/button/props.d.ts +3 -2
  19. package/dist/components/button/props.d.ts.map +1 -1
  20. package/dist/components/button/style.css +18 -29
  21. package/dist/components/card/buttons.d.ts +35 -0
  22. package/dist/components/card/buttons.d.ts.map +1 -0
  23. package/dist/components/card/buttons.js +60 -0
  24. package/dist/components/card/buttons.js.map +1 -0
  25. package/dist/components/card/channels.d.ts +43 -0
  26. package/dist/components/card/channels.d.ts.map +1 -0
  27. package/dist/components/card/channels.js +321 -0
  28. package/dist/components/card/channels.js.map +1 -0
  29. package/dist/components/card/color.d.ts +21 -0
  30. package/dist/components/card/color.d.ts.map +1 -0
  31. package/dist/components/card/color.js +100 -0
  32. package/dist/components/card/color.js.map +1 -0
  33. package/dist/components/card/main.d.ts +81 -0
  34. package/dist/components/card/main.d.ts.map +1 -0
  35. package/dist/components/card/main.js +91 -0
  36. package/dist/components/card/main.js.map +1 -0
  37. package/dist/components/card/parts.css +769 -0
  38. package/dist/components/card/press.d.ts +25 -0
  39. package/dist/components/card/press.d.ts.map +1 -0
  40. package/dist/components/card/press.js +111 -0
  41. package/dist/components/card/press.js.map +1 -0
  42. package/dist/components/card/progress.d.ts +43 -0
  43. package/dist/components/card/progress.d.ts.map +1 -0
  44. package/dist/components/card/progress.js +122 -0
  45. package/dist/components/card/progress.js.map +1 -0
  46. package/dist/components/card/props.d.ts +393 -0
  47. package/dist/components/card/props.d.ts.map +1 -0
  48. package/dist/components/card/props.js +2 -0
  49. package/dist/components/card/props.js.map +1 -0
  50. package/dist/components/card/root.d.ts +100 -0
  51. package/dist/components/card/root.d.ts.map +1 -0
  52. package/dist/components/card/root.js +388 -0
  53. package/dist/components/card/root.js.map +1 -0
  54. package/dist/components/card/rows.d.ts +19 -0
  55. package/dist/components/card/rows.d.ts.map +1 -0
  56. package/dist/components/card/rows.js +185 -0
  57. package/dist/components/card/rows.js.map +1 -0
  58. package/dist/components/card/segmented.d.ts +61 -0
  59. package/dist/components/card/segmented.d.ts.map +1 -0
  60. package/dist/components/card/segmented.js +289 -0
  61. package/dist/components/card/segmented.js.map +1 -0
  62. package/dist/components/card/shared.d.ts +55 -0
  63. package/dist/components/card/shared.d.ts.map +1 -0
  64. package/dist/components/card/shared.js +80 -0
  65. package/dist/components/card/shared.js.map +1 -0
  66. package/dist/components/card/slider.d.ts +16 -0
  67. package/dist/components/card/slider.d.ts.map +1 -0
  68. package/dist/components/card/slider.js +48 -0
  69. package/dist/components/card/slider.js.map +1 -0
  70. package/dist/components/card/stages.d.ts +18 -0
  71. package/dist/components/card/stages.d.ts.map +1 -0
  72. package/dist/components/card/stages.js +37 -0
  73. package/dist/components/card/stages.js.map +1 -0
  74. package/dist/components/card/style.css +959 -0
  75. package/dist/components/checkbox/style.css +10 -5
  76. package/dist/components/collapsible/style.css +0 -3
  77. package/dist/components/color-picker/color.d.ts +2 -2
  78. package/dist/components/color-picker/color.d.ts.map +1 -1
  79. package/dist/components/color-picker/color.js +7 -7
  80. package/dist/components/color-picker/color.js.map +1 -1
  81. package/dist/components/color-picker/main.d.ts +11 -5
  82. package/dist/components/color-picker/main.d.ts.map +1 -1
  83. package/dist/components/color-picker/main.js +147 -89
  84. package/dist/components/color-picker/main.js.map +1 -1
  85. package/dist/components/color-picker/props.d.ts +216 -6
  86. package/dist/components/color-picker/props.d.ts.map +1 -1
  87. package/dist/components/color-picker/style.css +12 -31
  88. package/dist/components/contextual-menu/main.d.ts +6 -2
  89. package/dist/components/contextual-menu/main.d.ts.map +1 -1
  90. package/dist/components/contextual-menu/main.js +67 -43
  91. package/dist/components/contextual-menu/main.js.map +1 -1
  92. package/dist/components/contextual-menu/props.d.ts +2 -1
  93. package/dist/components/contextual-menu/props.d.ts.map +1 -1
  94. package/dist/components/contextual-menu/style.css +64 -2
  95. package/dist/components/control-cards/main.d.ts +38 -0
  96. package/dist/components/control-cards/main.d.ts.map +1 -0
  97. package/dist/components/control-cards/main.js +196 -0
  98. package/dist/components/control-cards/main.js.map +1 -0
  99. package/dist/components/control-cards/props.d.ts +238 -0
  100. package/dist/components/control-cards/props.d.ts.map +1 -0
  101. package/dist/components/control-cards/props.js +2 -0
  102. package/dist/components/control-cards/props.js.map +1 -0
  103. package/dist/components/control-cards/style.css +2 -0
  104. package/dist/components/date-picker/main.d.ts +8 -3
  105. package/dist/components/date-picker/main.d.ts.map +1 -1
  106. package/dist/components/date-picker/main.js +73 -30
  107. package/dist/components/date-picker/main.js.map +1 -1
  108. package/dist/components/date-picker/pager.d.ts.map +1 -1
  109. package/dist/components/date-picker/pager.js +9 -2
  110. package/dist/components/date-picker/pager.js.map +1 -1
  111. package/dist/components/date-picker/props.d.ts +81 -5
  112. package/dist/components/date-picker/props.d.ts.map +1 -1
  113. package/dist/components/date-picker/style.css +25 -17
  114. package/dist/components/drawer/style.css +6 -0
  115. package/dist/components/edit-menu/main.d.ts +2 -1
  116. package/dist/components/edit-menu/main.d.ts.map +1 -1
  117. package/dist/components/edit-menu/main.js +8 -4
  118. package/dist/components/edit-menu/main.js.map +1 -1
  119. package/dist/components/edit-menu/style.css +2 -2
  120. package/dist/components/glass/backdrop.d.ts +75 -0
  121. package/dist/components/glass/backdrop.d.ts.map +1 -0
  122. package/dist/components/glass/backdrop.js +608 -0
  123. package/dist/components/glass/backdrop.js.map +1 -0
  124. package/dist/components/glass/gradient.d.ts +17 -0
  125. package/dist/components/glass/gradient.d.ts.map +1 -0
  126. package/dist/components/glass/gradient.js +233 -0
  127. package/dist/components/glass/gradient.js.map +1 -0
  128. package/dist/components/glass/main.d.ts +60 -6
  129. package/dist/components/glass/main.d.ts.map +1 -1
  130. package/dist/components/glass/main.js +100 -122
  131. package/dist/components/glass/main.js.map +1 -1
  132. package/dist/components/glass/marker.d.ts +66 -0
  133. package/dist/components/glass/marker.d.ts.map +1 -0
  134. package/dist/components/glass/marker.js +268 -0
  135. package/dist/components/glass/marker.js.map +1 -0
  136. package/dist/components/glass/props.d.ts +33 -7
  137. package/dist/components/glass/props.d.ts.map +1 -1
  138. package/dist/components/glass/style.css +172 -75
  139. package/dist/components/grid/dashes.d.ts +15 -0
  140. package/dist/components/grid/dashes.d.ts.map +1 -0
  141. package/dist/components/grid/dashes.js +37 -0
  142. package/dist/components/grid/dashes.js.map +1 -0
  143. package/dist/components/grid/edit.d.ts +11 -0
  144. package/dist/components/grid/edit.d.ts.map +1 -0
  145. package/dist/components/grid/edit.js +1066 -0
  146. package/dist/components/grid/edit.js.map +1 -0
  147. package/dist/components/grid/handle.d.ts +123 -0
  148. package/dist/components/grid/handle.d.ts.map +1 -0
  149. package/dist/components/grid/handle.js +194 -0
  150. package/dist/components/grid/handle.js.map +1 -0
  151. package/dist/components/grid/icons.d.ts +40 -0
  152. package/dist/components/grid/icons.d.ts.map +1 -0
  153. package/dist/components/grid/icons.js +140 -0
  154. package/dist/components/grid/icons.js.map +1 -0
  155. package/dist/components/grid/layout.d.ts +111 -0
  156. package/dist/components/grid/layout.d.ts.map +1 -0
  157. package/dist/components/grid/layout.js +1257 -0
  158. package/dist/components/grid/layout.js.map +1 -0
  159. package/dist/components/grid/main.d.ts +63 -0
  160. package/dist/components/grid/main.d.ts.map +1 -0
  161. package/dist/components/grid/main.js +1977 -0
  162. package/dist/components/grid/main.js.map +1 -0
  163. package/dist/components/grid/overlay.d.ts +24 -0
  164. package/dist/components/grid/overlay.d.ts.map +1 -0
  165. package/dist/components/grid/overlay.js +312 -0
  166. package/dist/components/grid/overlay.js.map +1 -0
  167. package/dist/components/grid/plan.d.ts +78 -0
  168. package/dist/components/grid/plan.d.ts.map +1 -0
  169. package/dist/components/grid/plan.js +249 -0
  170. package/dist/components/grid/plan.js.map +1 -0
  171. package/dist/components/grid/props.d.ts +579 -0
  172. package/dist/components/grid/props.d.ts.map +1 -0
  173. package/dist/components/grid/props.js +2 -0
  174. package/dist/components/grid/props.js.map +1 -0
  175. package/dist/components/grid/reshape.d.ts +60 -0
  176. package/dist/components/grid/reshape.d.ts.map +1 -0
  177. package/dist/components/grid/reshape.js +214 -0
  178. package/dist/components/grid/reshape.js.map +1 -0
  179. package/dist/components/grid/style.css +1323 -0
  180. package/dist/components/header/main.d.ts.map +1 -1
  181. package/dist/components/header/main.js +97 -10
  182. package/dist/components/header/main.js.map +1 -1
  183. package/dist/components/header/props.d.ts +2 -2
  184. package/dist/components/header/props.d.ts.map +1 -1
  185. package/dist/components/header/style.css +40 -49
  186. package/dist/components/index.d.ts +16 -10
  187. package/dist/components/index.d.ts.map +1 -1
  188. package/dist/components/index.js +11 -5
  189. package/dist/components/index.js.map +1 -1
  190. package/dist/components/island/main.d.ts +2 -2
  191. package/dist/components/island/main.d.ts.map +1 -1
  192. package/dist/components/island/main.js +193 -41
  193. package/dist/components/island/main.js.map +1 -1
  194. package/dist/components/island/props.d.ts +4 -2
  195. package/dist/components/island/props.d.ts.map +1 -1
  196. package/dist/components/island/style.css +50 -3
  197. package/dist/components/layout/main.d.ts +3 -6
  198. package/dist/components/layout/main.d.ts.map +1 -1
  199. package/dist/components/layout/main.js +225 -56
  200. package/dist/components/layout/main.js.map +1 -1
  201. package/dist/components/layout/props.d.ts +43 -2
  202. package/dist/components/layout/props.d.ts.map +1 -1
  203. package/dist/components/layout/style.css +81 -23
  204. package/dist/components/list/main.d.ts +8 -6
  205. package/dist/components/list/main.d.ts.map +1 -1
  206. package/dist/components/list/main.js +132 -24
  207. package/dist/components/list/main.js.map +1 -1
  208. package/dist/components/list/props.d.ts +25 -0
  209. package/dist/components/list/props.d.ts.map +1 -1
  210. package/dist/components/list/reorder.d.ts +50 -2
  211. package/dist/components/list/reorder.d.ts.map +1 -1
  212. package/dist/components/list/reorder.js +40 -17
  213. package/dist/components/list/reorder.js.map +1 -1
  214. package/dist/components/list/style.css +160 -75
  215. package/dist/components/menu/main.d.ts +9 -5
  216. package/dist/components/menu/main.d.ts.map +1 -1
  217. package/dist/components/menu/main.js +87 -9
  218. package/dist/components/menu/main.js.map +1 -1
  219. package/dist/components/menu/props.d.ts +14 -0
  220. package/dist/components/menu/props.d.ts.map +1 -1
  221. package/dist/components/menu/style.css +41 -31
  222. package/dist/components/navigation/main.d.ts.map +1 -1
  223. package/dist/components/navigation/main.js +35 -13
  224. package/dist/components/navigation/main.js.map +1 -1
  225. package/dist/components/navigation/style.css +7 -0
  226. package/dist/components/page/main.d.ts.map +1 -1
  227. package/dist/components/page/main.js +6 -3
  228. package/dist/components/page/main.js.map +1 -1
  229. package/dist/components/page/props.d.ts +3 -2
  230. package/dist/components/page/props.d.ts.map +1 -1
  231. package/dist/components/page/style.css +8 -4
  232. package/dist/components/page-control/main.d.ts.map +1 -1
  233. package/dist/components/page-control/main.js +32 -15
  234. package/dist/components/page-control/main.js.map +1 -1
  235. package/dist/components/page-control/props.d.ts +9 -3
  236. package/dist/components/page-control/props.d.ts.map +1 -1
  237. package/dist/components/page-control/style.css +36 -0
  238. package/dist/components/pager/main.d.ts +12 -0
  239. package/dist/components/pager/main.d.ts.map +1 -0
  240. package/dist/components/pager/main.js +368 -0
  241. package/dist/components/pager/main.js.map +1 -0
  242. package/dist/components/pager/props.d.ts +36 -0
  243. package/dist/components/pager/props.d.ts.map +1 -0
  244. package/dist/components/pager/props.js +2 -0
  245. package/dist/components/pager/props.js.map +1 -0
  246. package/dist/components/pager/style.css +42 -0
  247. package/dist/components/popover/main.d.ts +10 -4
  248. package/dist/components/popover/main.d.ts.map +1 -1
  249. package/dist/components/popover/main.js +30 -19
  250. package/dist/components/popover/main.js.map +1 -1
  251. package/dist/components/popover/props.d.ts +2 -0
  252. package/dist/components/popover/props.d.ts.map +1 -1
  253. package/dist/components/popover/style.css +6 -2
  254. package/dist/components/progress/main.d.ts.map +1 -1
  255. package/dist/components/progress/main.js +3 -2
  256. package/dist/components/progress/main.js.map +1 -1
  257. package/dist/components/progress/style.css +4 -10
  258. package/dist/components/roll/main.d.ts.map +1 -1
  259. package/dist/components/roll/main.js +5 -3
  260. package/dist/components/roll/main.js.map +1 -1
  261. package/dist/components/roll/style.css +2 -2
  262. package/dist/components/segmented/main.d.ts.map +1 -1
  263. package/dist/components/segmented/main.js +4 -4
  264. package/dist/components/segmented/main.js.map +1 -1
  265. package/dist/components/segmented/props.d.ts +5 -2
  266. package/dist/components/segmented/props.d.ts.map +1 -1
  267. package/dist/components/segmented/style.css +17 -8
  268. package/dist/components/settings/main.d.ts +48 -1
  269. package/dist/components/settings/main.d.ts.map +1 -1
  270. package/dist/components/settings/main.js +311 -66
  271. package/dist/components/settings/main.js.map +1 -1
  272. package/dist/components/settings/props.d.ts +46 -4
  273. package/dist/components/settings/props.d.ts.map +1 -1
  274. package/dist/components/settings/region.d.ts +3 -0
  275. package/dist/components/settings/region.d.ts.map +1 -0
  276. package/dist/components/settings/region.js +120 -0
  277. package/dist/components/settings/region.js.map +1 -0
  278. package/dist/components/settings/style.css +2 -2
  279. package/dist/components/sheet/main.d.ts.map +1 -1
  280. package/dist/components/sheet/main.js +156 -45
  281. package/dist/components/sheet/main.js.map +1 -1
  282. package/dist/components/sheet/props.d.ts +4 -2
  283. package/dist/components/sheet/props.d.ts.map +1 -1
  284. package/dist/components/sheet/snap.d.ts +54 -0
  285. package/dist/components/sheet/snap.d.ts.map +1 -1
  286. package/dist/components/sheet/snap.js +261 -23
  287. package/dist/components/sheet/snap.js.map +1 -1
  288. package/dist/components/sheet/style.css +171 -20
  289. package/dist/components/sidebar/main.d.ts +2 -1
  290. package/dist/components/sidebar/main.d.ts.map +1 -1
  291. package/dist/components/sidebar/main.js +18 -6
  292. package/dist/components/sidebar/main.js.map +1 -1
  293. package/dist/components/sidebar/props.d.ts +2 -1
  294. package/dist/components/sidebar/props.d.ts.map +1 -1
  295. package/dist/components/sidebar/style.css +78 -0
  296. package/dist/components/slider/main.d.ts.map +1 -1
  297. package/dist/components/slider/main.js +55 -10
  298. package/dist/components/slider/main.js.map +1 -1
  299. package/dist/components/slider/props.d.ts +1 -0
  300. package/dist/components/slider/props.d.ts.map +1 -1
  301. package/dist/components/slider/style.css +15 -6
  302. package/dist/components/stack/main.d.ts +8 -0
  303. package/dist/components/stack/main.d.ts.map +1 -0
  304. package/dist/components/stack/main.js +25 -0
  305. package/dist/components/stack/main.js.map +1 -0
  306. package/dist/components/stack/props.d.ts +42 -0
  307. package/dist/components/stack/props.d.ts.map +1 -0
  308. package/dist/components/stack/props.js +2 -0
  309. package/dist/components/stack/props.js.map +1 -0
  310. package/dist/components/stack/style.css +68 -0
  311. package/dist/components/stepper/main.d.ts +3 -1
  312. package/dist/components/stepper/main.d.ts.map +1 -1
  313. package/dist/components/stepper/main.js +4 -0
  314. package/dist/components/stepper/main.js.map +1 -1
  315. package/dist/components/stepper/style.css +2 -2
  316. package/dist/components/switch/main.d.ts.map +1 -1
  317. package/dist/components/switch/main.js +9 -3
  318. package/dist/components/switch/main.js.map +1 -1
  319. package/dist/components/switch/props.d.ts +4 -1
  320. package/dist/components/switch/props.d.ts.map +1 -1
  321. package/dist/components/symbol/main.d.ts.map +1 -1
  322. package/dist/components/symbol/main.js +5 -1
  323. package/dist/components/symbol/main.js.map +1 -1
  324. package/dist/components/symbol/props.d.ts +10 -0
  325. package/dist/components/symbol/props.d.ts.map +1 -1
  326. package/dist/components/symbol/style.css +21 -3
  327. package/dist/components/tab-bar/main.d.ts.map +1 -1
  328. package/dist/components/tab-bar/main.js +8 -5
  329. package/dist/components/tab-bar/main.js.map +1 -1
  330. package/dist/components/tab-bar/props.d.ts +16 -12
  331. package/dist/components/tab-bar/props.d.ts.map +1 -1
  332. package/dist/components/tab-bar/style.css +38 -21
  333. package/dist/components/text-field/main.d.ts.map +1 -1
  334. package/dist/components/text-field/main.js +6 -3
  335. package/dist/components/text-field/main.js.map +1 -1
  336. package/dist/components/text-field/style.css +28 -17
  337. package/dist/components/toolbar/main.d.ts +5 -2
  338. package/dist/components/toolbar/main.d.ts.map +1 -1
  339. package/dist/components/toolbar/main.js +19 -1
  340. package/dist/components/toolbar/main.js.map +1 -1
  341. package/dist/components/toolbar/props.d.ts +18 -3
  342. package/dist/components/toolbar/props.d.ts.map +1 -1
  343. package/dist/components/toolbar/style.css +127 -11
  344. package/dist/components/tooltip/main.d.ts +6 -1
  345. package/dist/components/tooltip/main.d.ts.map +1 -1
  346. package/dist/components/tooltip/main.js +13 -7
  347. package/dist/components/tooltip/main.js.map +1 -1
  348. package/dist/components/tooltip/style.css +2 -2
  349. package/dist/components/typography/main.d.ts +1 -0
  350. package/dist/components/typography/main.d.ts.map +1 -1
  351. package/dist/components/typography/main.js +1 -0
  352. package/dist/components/typography/main.js.map +1 -1
  353. package/dist/components/typography/sizes.css +456 -0
  354. package/dist/components/typography/style.css +24 -456
  355. package/dist/components/utils/main.d.ts +50 -4
  356. package/dist/components/utils/main.d.ts.map +1 -1
  357. package/dist/components/utils/main.js +113 -3
  358. package/dist/components/utils/main.js.map +1 -1
  359. package/dist/components/viewport/current.d.ts +15 -0
  360. package/dist/components/viewport/current.d.ts.map +1 -0
  361. package/dist/components/viewport/current.js +74 -0
  362. package/dist/components/viewport/current.js.map +1 -0
  363. package/dist/components/viewport/edge-effect.d.ts.map +1 -1
  364. package/dist/components/viewport/edge-effect.js +58 -26
  365. package/dist/components/viewport/edge-effect.js.map +1 -1
  366. package/dist/components/viewport/edge.d.ts +7 -4
  367. package/dist/components/viewport/edge.d.ts.map +1 -1
  368. package/dist/components/viewport/edge.js +21 -7
  369. package/dist/components/viewport/edge.js.map +1 -1
  370. package/dist/components/viewport/focus-scroll.d.ts +21 -0
  371. package/dist/components/viewport/focus-scroll.d.ts.map +1 -0
  372. package/dist/components/viewport/focus-scroll.js +273 -0
  373. package/dist/components/viewport/focus-scroll.js.map +1 -0
  374. package/dist/components/viewport/input.d.ts +39 -1
  375. package/dist/components/viewport/input.d.ts.map +1 -1
  376. package/dist/components/viewport/input.js +122 -13
  377. package/dist/components/viewport/input.js.map +1 -1
  378. package/dist/components/viewport/main.d.ts +16 -1
  379. package/dist/components/viewport/main.d.ts.map +1 -1
  380. package/dist/components/viewport/main.js +276 -50
  381. package/dist/components/viewport/main.js.map +1 -1
  382. package/dist/components/viewport/padding.d.ts +1 -1
  383. package/dist/components/viewport/padding.d.ts.map +1 -1
  384. package/dist/components/viewport/padding.js +2 -2
  385. package/dist/components/viewport/props.d.ts +12 -2
  386. package/dist/components/viewport/props.d.ts.map +1 -1
  387. package/dist/components/viewport/status-bar.d.ts +9 -0
  388. package/dist/components/viewport/status-bar.d.ts.map +1 -0
  389. package/dist/components/viewport/status-bar.js +131 -0
  390. package/dist/components/viewport/status-bar.js.map +1 -0
  391. package/dist/components/viewport/style.css +67 -16
  392. package/dist/styles.css +371 -279
  393. package/package.json +5 -4
@@ -0,0 +1,393 @@
1
+ import type { Radio as BaseRadio } from '@base-ui/react/radio';
2
+ import type { RadioGroup as BaseRadioGroup } from '@base-ui/react/radio-group';
3
+ import type { Slider as BaseSlider } from '@base-ui/react/slider';
4
+ import type { useRender } from '@base-ui/react/use-render';
5
+ import type { ComponentProps, ReactNode, RefObject } from 'react';
6
+ import type { GlassSurfaceProps } from '../glass/main.js';
7
+ import type { GridCornerButtonProps, GridSize } from '../grid/main.js';
8
+ import type { ListItemProps, ListRootProps } from '../list/props.js';
9
+ import type { SliderRootProps } from '../slider/props.js';
10
+ import type { SwitchRootProps } from '../switch/props.js';
11
+ import type { SymbolIcon } from '../symbol/main.js';
12
+ /** How a part's number is shown (`Intl.NumberFormat`'s, as Base UI's). */
13
+ export type CardFormat = {
14
+ /** Its number's format (e.g. `{ style: 'percent' }`). */
15
+ format?: Intl.NumberFormatOptions;
16
+ /**
17
+ * Its number's locale.
18
+ * @default the document's language
19
+ */
20
+ locale?: Intl.LocalesArgument;
21
+ };
22
+ /** A card's corner button: a `Grid.CornerButton` (see `Card.CornerButton`). */
23
+ export type CardCornerButtonProps = Omit<GridCornerButtonProps, 'whileEditing'> & {
24
+ /**
25
+ * In edit mode: hidden then (`hide`), shown only then (`show`, e.g. a
26
+ * button opening the card's settings), or either way (`stay`). Shown
27
+ * while editing, it's over the card's veil, in the grid's controls'
28
+ * color (see `Grid.CornerButton`).
29
+ * @default 'hide'
30
+ */
31
+ whileEditing?: GridCornerButtonProps['whileEditing'];
32
+ };
33
+ /** A card's actions (see `CardRootProps.actionsRef`). */
34
+ export type CardActions = {
35
+ /**
36
+ * Lights it up as `active` does, for a moment, and fades it back: for
37
+ * something that happened, for example a doorbell rung, told by the app's
38
+ * server.
39
+ */
40
+ flash: () => void;
41
+ };
42
+ export type CardRootProps = useRender.ComponentProps<'div'> & GlassSurfaceProps & {
43
+ /** Its actions (`flash`), for the app to call from anywhere. */
44
+ actionsRef?: RefObject<CardActions | null>;
45
+ /**
46
+ * Whether what it switches is on (`true`, lit) or off (`false`, dark
47
+ * glass, in both color schemes), so it can be told at a glance: e.g. a
48
+ * group of lights, at least one of them on. Left out, it isn't
49
+ * switchable (e.g. a sensor's): its glass by the color scheme (or its
50
+ * `context`). A switch in it makes it switchable, by its state.
51
+ * @default not switchable (or by its switch)
52
+ */
53
+ active?: boolean;
54
+ /**
55
+ * Whether it's a momentary button: a press flashes it (see `actionsRef`),
56
+ * for a press with no state of its own, for example a chime or “all
57
+ * lights off”. Needs an `onClick`.
58
+ * @default false
59
+ */
60
+ momentary?: boolean;
61
+ };
62
+ export type CardSymbolProps = useRender.ComponentProps<'span'> & {
63
+ /**
64
+ * Whether it shows what it stands for as on, in its tint and its
65
+ * `Symbol`'s `emphasizedIcon` (e.g. filled): for a card that isn't lit
66
+ * while on, for example a dimmer's above its minimum (its fill telling how
67
+ * much). A lit card's symbol shows as on anyway; off, its `icon` (e.g.
68
+ * outlined).
69
+ * @default false
70
+ */
71
+ active?: boolean;
72
+ /**
73
+ * Its color while `active` (a CSS color).
74
+ * @default the switch's on color (`--uikit-switch-on-color`)
75
+ */
76
+ tint?: string;
77
+ };
78
+ export type CardSwitchProps = Omit<SwitchRootProps, 'children' | 'ref' | 'tint'> & {
79
+ /**
80
+ * Its color while on (a CSS color): the card's tint, as its symbol's.
81
+ * Over a slider's fill, and in a card never lit (`active` given false,
82
+ * e.g. a dimmer's) at every size, a darker shade of it (it's the fill's
83
+ * color too, see `Card.Slider`); off there, a darker shade of the fill's
84
+ * gray.
85
+ * @default the system green; over a slider's fill, the app's tint
86
+ */
87
+ tint?: string;
88
+ };
89
+ export type CardTitleProps = useRender.ComponentProps<'span'>;
90
+ export type CardValueProps = Omit<useRender.ComponentProps<'span'>, 'children'> & CardFormat & {
91
+ /**
92
+ * What it shows instead of a number (e.g. a state: “Locked”); with a
93
+ * number, after it (e.g. a `Card.Trend`).
94
+ */
95
+ children?: ReactNode;
96
+ /** A number, formatted (see `format`); else its children. */
97
+ value?: number;
98
+ };
99
+ /**
100
+ * A card's subtitle (`Card.Subtitle`): more words under its title, where
101
+ * there's room for them.
102
+ */
103
+ export type CardSubtitleProps = useRender.ComponentProps<'span'>;
104
+ /** A value's trend (`Card.Trend`): an arrow, in a `Card.Value`. */
105
+ export type CardTrendProps = Omit<useRender.ComponentProps<'span'>, 'children'> & {
106
+ /**
107
+ * How steeply its value changes: -90 (falling) to 90 (rising) degrees, 0
108
+ * steady. Its arrow points so; named rising, falling or steady.
109
+ */
110
+ angle: number;
111
+ };
112
+ /**
113
+ * A slider filling its card (`Card.Slider`): Base UI's slider (its
114
+ * `Slider.Root`'s props: `min`, `max`, `step`, `format`, `disabled`,
115
+ * `name`…), one value.
116
+ */
117
+ export type CardSliderProps = Omit<SliderRootProps, 'children' | 'defaultValue' | 'onValueChange' | 'onValueCommitted' | 'orientation' | 'ref' | 'thumbAlignment' | 'value'> & {
118
+ /**
119
+ * Its value's words, from its formatted value (see `format`) and its
120
+ * value: e.g. its card's state with it, the app's.
121
+ * @default its formatted value
122
+ */
123
+ children?: (formattedValue: string, value: number) => ReactNode;
124
+ /** Its value at first (uncontrolled). */
125
+ defaultValue?: number;
126
+ /**
127
+ * What assistive technology reads as its value (as Base UI's
128
+ * `getAriaValueText`), from its formatted value and its value.
129
+ * @default its formatted value
130
+ */
131
+ getAriaValueText?: (formattedValue: string, value: number) => string;
132
+ /** Its label, and its accessible name (e.g. the card's title). */
133
+ label: string;
134
+ /**
135
+ * A press on it (released before it moves): this, not a value (e.g. its
136
+ * card's switch toggled); a drag sets its value. None: a press sets it.
137
+ */
138
+ onPress?: () => void;
139
+ /** As its value changes, dragged (or by keyboard). */
140
+ onValueChange?: (value: number) => void;
141
+ /**
142
+ * Its fill's color: opaque, any color (what's over it drawn again in it,
143
+ * dark on a bright fill, light on a dim one).
144
+ * @default the app's tint
145
+ */
146
+ tint?: string;
147
+ /** Its value (controlled). */
148
+ value?: number;
149
+ };
150
+ /**
151
+ * A card's progress (`Card.Progress`): its value and range, as Base UI's
152
+ * `Progress.Root`, for its parts (`Card.ProgressValue`,
153
+ * `Card.ProgressBar`). Renders no element of its own.
154
+ */
155
+ export type CardProgressProps = CardFormat & {
156
+ /** Its parts (and anything else of the card's). */
157
+ children?: ReactNode;
158
+ /**
159
+ * What assistive technology reads as its value (as Base UI's), from its
160
+ * formatted value and its value.
161
+ * @default its formatted value
162
+ */
163
+ getAriaValueText?: (formattedValue: string, value: number | null) => string;
164
+ /**
165
+ * Its greatest value.
166
+ * @default 100
167
+ */
168
+ max?: number;
169
+ /**
170
+ * Its least value.
171
+ * @default 0
172
+ */
173
+ min?: number;
174
+ /** Its value (`min` to `max`); `null`, none under way (its bar empty). */
175
+ value: number | null;
176
+ };
177
+ /**
178
+ * A card's progress bar (`Card.ProgressBar`): a pill at the card's bottom,
179
+ * Base UI's progress bar.
180
+ */
181
+ export type CardProgressBarProps = useRender.ComponentProps<'div'> & {
182
+ /**
183
+ * What's on it (a `Card.ProgressLabel`, a `Card.ProgressDetail`), drawn
184
+ * on the well and again on the fill.
185
+ */
186
+ children?: ReactNode;
187
+ /**
188
+ * Its fill's color.
189
+ * @default the app's tint
190
+ */
191
+ tint?: string;
192
+ };
193
+ /** A progress bar's words at its start (`Card.ProgressLabel`). */
194
+ export type CardProgressLabelProps = useRender.ComponentProps<'span'>;
195
+ /** A progress bar's words at its end (`Card.ProgressDetail`). */
196
+ export type CardProgressDetailProps = useRender.ComponentProps<'span'>;
197
+ /** A card's progress in words (`Card.ProgressValue`). */
198
+ export type CardProgressValueProps = Omit<useRender.ComponentProps<'span'>, 'children'> & {
199
+ /**
200
+ * Its words, from its formatted value and its value (as Base UI's
201
+ * `Progress.Value`); none, its formatted value.
202
+ */
203
+ children?: (formattedValue: string, value: number) => ReactNode;
204
+ };
205
+ /** A card's stages (`Card.StageList`): an ordered list. */
206
+ export type CardStageListProps = Omit<ComponentProps<'ol'>, 'children'> & {
207
+ /** Its stages (`Card.Stage`s), in order. */
208
+ children: ReactNode;
209
+ /**
210
+ * The color of its current stage, and of those done.
211
+ * @default the app's tint
212
+ */
213
+ tint?: string;
214
+ /**
215
+ * Its current stage's value: those before it done, those after to come;
216
+ * none, all to come.
217
+ */
218
+ value?: string;
219
+ };
220
+ /** A stage (`Card.Stage`), in a `Card.StageList`. */
221
+ export type CardStageProps = Omit<ComponentProps<'li'>, 'children' | 'value'> & {
222
+ /** Its words, under its dot. */
223
+ children: ReactNode;
224
+ /** What it is (its list's `value` names the current one). */
225
+ value: string;
226
+ };
227
+ /** The light a card's channels make together (see `Card.Channels`). */
228
+ export type CardLight = {
229
+ /**
230
+ * Its brightness (0 to 1): its strongest amount channel's share; none of
231
+ * those, 1.
232
+ */
233
+ brightness: number;
234
+ /** Its color at full strength (a CSS color); giving none, none. */
235
+ color: string | undefined;
236
+ };
237
+ /** A card's channels (`Card.Channels`): its sliders, stacked. */
238
+ export type CardChannelsProps = ComponentProps<'div'> & {
239
+ /** Its channels (`Card.Channel`s), in order. */
240
+ children: ReactNode;
241
+ /** As the light its channels make changes (see `CardLight`). */
242
+ onLightChange?: (light: CardLight) => void;
243
+ };
244
+ /**
245
+ * A channel (`Card.Channel`): Base UI's slider in a well of its own (its
246
+ * `Slider.Root`'s props), one value. An amount (`tint`: e.g. a light's red,
247
+ * black to red), or a scale (`colors`: e.g. a color temperature).
248
+ */
249
+ export type CardChannelProps = Omit<BaseSlider.Root.Props, 'children' | 'defaultValue' | 'onValueChange' | 'onValueCommitted' | 'orientation' | 'ref' | 'thumbAlignment' | 'value'> & {
250
+ /**
251
+ * Its value's words, from its formatted value and its value (e.g.
252
+ * `3800 K`); none, its formatted value.
253
+ */
254
+ children?: (formattedValue: string, value: number) => ReactNode;
255
+ /**
256
+ * Its colors from its least value to its greatest (evenly spread; two or
257
+ * more): a scale, shown whole on its well, its thumb the color at its
258
+ * value (e.g. a color temperature's, warm to cold). Instead of `tint`.
259
+ */
260
+ colors?: readonly string[];
261
+ /** Its value at first (uncontrolled). */
262
+ defaultValue?: number;
263
+ /**
264
+ * What assistive technology reads as its value (as Base UI's), from its
265
+ * formatted value and its value.
266
+ * @default its formatted value
267
+ */
268
+ getAriaValueText?: (formattedValue: string, value: number) => string;
269
+ /** Its name (e.g. `Red`): on its well, and its slider's name. */
270
+ label: string;
271
+ /** As its value changes. */
272
+ onValueChange?: (value: number) => void;
273
+ /**
274
+ * An amount's color at its greatest value (e.g. a light's red): its fill,
275
+ * its thumb that color mixed on black by its share (as light adds up).
276
+ * @default the app's tint
277
+ */
278
+ tint?: string;
279
+ /** Its value (controlled). */
280
+ value?: number;
281
+ };
282
+ /** A choice's option (`Card.SegmentedItem`). */
283
+ export type CardSegmentedItemProps = Omit<BaseRadio.Root.Props, 'children' | 'ref' | 'value'> & {
284
+ /**
285
+ * Its words: its segment's (its name with its symbol only, see
286
+ * `optionContent`), and a ready-made card's value while it's chosen.
287
+ */
288
+ children: ReactNode;
289
+ /**
290
+ * Whether it can't be chosen now (as Segmented's items): dimmed, not
291
+ * pressed, dragged past, skipped by keys (see Base UI's Radio).
292
+ */
293
+ disabled?: boolean;
294
+ /** Its symbol: in its segment (a ready-made card's while it's chosen). */
295
+ icon?: SymbolIcon;
296
+ /**
297
+ * More words, under its words (in the card's value's color), where
298
+ * there's room for them: in a tile taller than a row (not across one,
299
+ * not with its symbol only, see `optionContent`); stacked, once its
300
+ * segment's tall enough.
301
+ */
302
+ subtitle?: ReactNode;
303
+ /** A ready-made card's symbol's tint while it's chosen. */
304
+ tint?: string;
305
+ /** What it stands for (unique in its choice). */
306
+ value: string;
307
+ };
308
+ /** A choice of a few (`Card.Segmented`): Base UI's radio group. */
309
+ export type CardSegmentedProps = Omit<BaseRadioGroup.Props, 'children' | 'defaultValue' | 'onValueChange' | 'ref' | 'value'> & {
310
+ /**
311
+ * Its options (`Card.SegmentedItem`s), in order: segments in a well at
312
+ * its card's bottom, side by side (across a row, a symbol beside its
313
+ * words; taller, over them), or stacked (beside them; one wide, over
314
+ * them), the chosen one's raised; dragged between (each chosen as it's
315
+ * reached).
316
+ */
317
+ children: ReactNode;
318
+ /** The option chosen at first (uncontrolled). @default its first's */
319
+ defaultValue?: string;
320
+ /** Chosen, as it's pressed (or by keys, see Base UI's RadioGroup). */
321
+ onValueChange?: (value: string) => void;
322
+ /**
323
+ * What its options' segments show: their symbols and words (`both`; an
324
+ * option without a symbol, its words), their symbols only (`icon`, its
325
+ * words its name, unseen), or their words only (`label`).
326
+ * @default 'both'
327
+ */
328
+ optionContent?: 'both' | 'icon' | 'label';
329
+ /**
330
+ * Its options side by side (`horizontal`) or stacked (`vertical`), in a
331
+ * tile taller than a row; in one row, side by side only (vertical: none,
332
+ * as 1x1). None: by its tile's size (one wide and taller, stacked; else
333
+ * side by side).
334
+ */
335
+ orientation?: 'horizontal' | 'vertical';
336
+ /** The option chosen (controlled). */
337
+ value?: string;
338
+ };
339
+ /**
340
+ * A card's rows (`Card.Rows`): a list, as many rows as fit whole (its
341
+ * `List.Root`'s props).
342
+ */
343
+ export type CardRowsProps = Omit<ListRootProps, 'children'> & {
344
+ /** Its rows (`Card.Row`s), in order. */
345
+ children: ReactNode;
346
+ /**
347
+ * Its last row while rows are left out (their count given).
348
+ * @default `${count} more`
349
+ */
350
+ getMoreLabel?: (count: number) => string;
351
+ /**
352
+ * Its last row while its tile's expanded (see `Grid.Item`'s `expanded`).
353
+ * @default 'Less'
354
+ */
355
+ lessLabel?: string;
356
+ };
357
+ /**
358
+ * A card's row (`Card.Row`): its symbol, its label, its value (its
359
+ * `List.Item`'s props).
360
+ */
361
+ export type CardRowProps = Omit<ListItemProps, 'children' | 'onClick' | 'value'> & {
362
+ /** Its label (unique in its card). */
363
+ children: ReactNode;
364
+ /** Its symbol, before its label. */
365
+ icon?: SymbolIcon;
366
+ /**
367
+ * Pressed (anywhere on it), e.g. going to a page of its own: a chevron
368
+ * after its value (List's `DrillIn`), its label a button.
369
+ */
370
+ onClick?: () => void;
371
+ /** Its value, at its end. */
372
+ value?: ReactNode;
373
+ };
374
+ /**
375
+ * A corner button expanding its card's tile and making it small again
376
+ * (`Card.ExpandButton`), by its grid item's expansion.
377
+ */
378
+ export type CardExpandButtonProps = Omit<CardCornerButtonProps, 'corner' | 'icon' | 'mirrored' | 'visible'>;
379
+ /**
380
+ * A corner button opening its card's tile above the page
381
+ * (`Card.OpenButton`), by its grid item's `open`.
382
+ */
383
+ export type CardOpenButtonProps = Omit<CardCornerButtonProps, 'corner' | 'icon' | 'visible'>;
384
+ /**
385
+ * A corner button closing its card's tile opened above the page
386
+ * (`Card.CloseButton`): its top trailing corner.
387
+ */
388
+ export type CardCloseButtonProps = Omit<CardCornerButtonProps, 'corner' | 'icon' | 'visible'>;
389
+ /** A card's orientation (see `useCardOrientation`). */
390
+ export type CardOrientation = 'horizontal' | 'vertical';
391
+ /** The sizes each kind of card supports (see `cardSizes`). */
392
+ export type CardSizes = Readonly<Record<'binaryControl' | 'binaryDisplay' | 'choiceControl' | 'numericalControl' | 'numericalDisplay' | 'progressDisplay' | 'stagesDisplay' | 'summaryDisplay', readonly GridSize[]>>;
393
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/card/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,0EAA0E;AAC1E,MAAM,MAAM,UAAU,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C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,aAAa,EACb,UAAU,GAAG,SAAS,GAAG,OAAO,CACjC,GAAG;IACF,sCAAsC;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,oCAAoC;IACpC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,qBAAqB,EACrB,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAC3C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,qBAAqB,EACrB,QAAQ,GAAG,MAAM,GAAG,SAAS,CAC9B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,qBAAqB,EACrB,QAAQ,GAAG,MAAM,GAAG,SAAS,CAC9B,CAAC;AAEF,uDAAuD;AACvD,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,UAAU,CAAC;AAExD,8DAA8D;AAC9D,MAAM,MAAM,SAAS,GAAG,QAAQ,CAC9B,MAAM,CACF,eAAe,GACf,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,eAAe,GACf,gBAAgB,EAClB,SAAS,QAAQ,EAAE,CACpB,CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.js","sourceRoot":"","sources":["../../../src/components/card/props.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,100 @@
1
+ import { type Ref } from 'react';
2
+ import type { CardCornerButtonProps, CardOrientation, CardRootProps, CardSizes, CardSubtitleProps, CardSwitchProps, CardSymbolProps, CardTitleProps, CardTrendProps, CardValueProps } from './props.js';
3
+ /** A card's copy layer and its setter (see `CardBlendScope`). */
4
+ type CardBlend = {
5
+ layer: HTMLElement | null;
6
+ setLayer: (layer: HTMLElement | null) => void;
7
+ };
8
+ /**
9
+ * A layer over the card's content where its parts draw a copy of
10
+ * themselves (`Card.Symbol`, `Card.CornerButton`): e.g. inside a slider's
11
+ * fill filling the card, in the fill's color scheme, clipped by its edge
12
+ * (see `Card.Slider`), registered by it (`setLayer`); the
13
+ * root marked `data-card-blend` while there is one (its originals under
14
+ * the fill, see style.css). None: no copies. Internal.
15
+ */
16
+ export declare const CardBlendScope: import("preact").Context<CardBlend | undefined>;
17
+ /** The tile's shape (its item's effective size): wide, horizontal. */
18
+ export declare const useCardOrientation: () => CardOrientation;
19
+ /**
20
+ * The sizes the library's kinds of cards support, for their items'
21
+ * `supportedSizes`: a binary display or control (a state, a switch), a
22
+ * numerical display (a value) or control (a slider: never square, so it
23
+ * has a direction), a choice of a few (segments: across a row, taller,
24
+ * upright, or 1x1 opening to choose), a summary (rows: never 1x1), a
25
+ * progress (a pill), a run of stages (along a line: never 1x1, too narrow
26
+ * for them).
27
+ */
28
+ export declare const cardSizes: CardSizes;
29
+ /**
30
+ * The card: its glass, its parts on it; bright while `active` (or a switch
31
+ * in it is on); pressable as a whole with an `onClick` (its feedback, see
32
+ * style.css); in a grid's tile (its item's), inert and veiled while
33
+ * editing (see the top).
34
+ */
35
+ declare const Root: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardRootProps> & {
36
+ ref?: Ref<HTMLDivElement> | undefined;
37
+ }>;
38
+ /**
39
+ * Its symbol (e.g. a `Symbol`), at its top leading corner: on (its card lit,
40
+ * or its own `active`), in its tint, its `Symbol`'s emphasized icon (e.g.
41
+ * filled) shown; else its icon (e.g. outlined). Over a slider's fill (see
42
+ * `CardBlendScope`): in its text's color, drawn again in the
43
+ * fill, its emphasis on both.
44
+ */
45
+ declare const CardSymbol: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardSymbolProps> & {
46
+ ref?: Ref<HTMLSpanElement> | undefined;
47
+ }>;
48
+ /**
49
+ * Its switch (a `Switch.Root` with its thumb): its top trailing corner, the
50
+ * card's state (on, lit), on in the card's tint (`tint`; see style.css: on
51
+ * a slider's fill, or in a card never lit, a darker shade of it). A part of
52
+ * the card's (moved with its other parts as its tile changes, see
53
+ * `useGridItemLayout`).
54
+ */
55
+ declare const CardSwitch: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardSwitchProps> & {
56
+ ref?: Ref<HTMLSpanElement> | undefined;
57
+ }>;
58
+ /**
59
+ * What it is (e.g. a device's name), above its value; what its parts are
60
+ * named by (its id, its own or one of its card's, told the card).
61
+ */
62
+ declare const Title: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardTitleProps> & {
63
+ ref?: Ref<HTMLSpanElement> | undefined;
64
+ }>;
65
+ /**
66
+ * Its value: a number formatted as the app says (`format`, `locale`:
67
+ * `Intl.NumberFormat`'s), what's given after it (e.g. a `Trend`); or,
68
+ * without a number, what's given instead (e.g. a state).
69
+ */
70
+ declare const Value: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardValueProps> & {
71
+ ref?: Ref<HTMLSpanElement> | undefined;
72
+ }>;
73
+ /**
74
+ * Its subtitle: more words under its title (e.g. a program's), small, in
75
+ * its secondary text color; where there's room for them (in a tile a row
76
+ * tall beside a bar, stages or channels, none: see the CSS).
77
+ */
78
+ declare const Subtitle: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardSubtitleProps> & {
79
+ ref?: Ref<HTMLSpanElement> | undefined;
80
+ }>;
81
+ /**
82
+ * A value's trend (in its `Value`, after its number): an arrow pointing up
83
+ * as steeply as it rises (`angle`, -90 to 90 degrees: 0 steady), named for
84
+ * assistive technology. It turns to a new angle by its own transform.
85
+ */
86
+ declare const Trend: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardTrendProps> & {
87
+ ref?: Ref<HTMLSpanElement> | undefined;
88
+ }>;
89
+ /**
90
+ * A button in its corner (see `Grid.CornerButton`): shown while its grid
91
+ * isn't editing (faded out, inert, while it is), or while it is too, or
92
+ * then only (`whileEditing`: over its veil then); and as `visible` says. A
93
+ * press on it is its own, not the card's (e.g. not toggling a switch in
94
+ * it, see `forwardClick`).
95
+ */
96
+ declare const CornerButton: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardCornerButtonProps> & {
97
+ ref?: Ref<HTMLButtonElement> | undefined;
98
+ }>;
99
+ export { CardSwitch, CardSymbol, CornerButton, Root, Subtitle, Title, Trend, Value, };
100
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/components/card/root.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,GAAG,EAWT,MAAM,OAAO,CAAC;AAgBf,OAAO,KAAK,EAEV,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,cAAc,EACd,cAAc,EACd,cAAc,EACf,MAAM,YAAY,CAAC;AAMpB,iEAAiE;AACjE,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,iDAAkD,CAAC;AAQ9E,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,QAAO,eAOrC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,EAAE,SAsBvB,CAAC;AA4HF;;;;;GAKG;AACH,QAAA,MAAM,IAAI;;EA2GT,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,UAAU;;EAqCf,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,UAAU;;EAYf,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,KAAK;;EAqBV,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,KAAK;;EA4BV,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,QAAQ;;EAYb,CAAC;AAcF;;;;GAIG;AACH,QAAA,MAAM,KAAK;;EAkBV,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,YAAY;;EA6DjB,CAAC;AAEF,OAAO,EACL,UAAU,EACV,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,KAAK,EACL,KAAK,GACN,CAAC"}