prime-ui-kit 0.16.0 → 0.17.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 (315) hide show
  1. package/README.md +14 -18
  2. package/dist/chunks/{chunk-4PSQ64S4.js → chunk-7WWZYGRC.js} +3697 -3738
  3. package/dist/chunks/{chunk-6TPHKCUJ.js → chunk-A4WE3UNC.js} +27340 -26893
  4. package/dist/chunks/{chunk-A7OQWH6R.js → chunk-PRP4B6OG.js} +1 -1
  5. package/dist/chunks/{chunk-HDBQICPW.js → chunk-SVFWPLNW.js} +49 -20
  6. package/dist/color-picker.d.ts +1 -1
  7. package/dist/color-picker.js +3 -3
  8. package/dist/components/breadcrumb/Breadcrumb.d.ts +1 -1
  9. package/dist/components/chart-frame/ChartFrame.d.ts +1 -1
  10. package/dist/components/chat/ChatRows.d.ts +5 -1
  11. package/dist/components/color-picker/ColorPicker.d.ts +18 -1
  12. package/dist/components/data-table/DataTable.d.ts +1 -1
  13. package/dist/components/index.d.ts +0 -4
  14. package/dist/components/pagination/Pagination.d.ts +5 -1
  15. package/dist/components/popover/Popover.d.ts +1 -1
  16. package/dist/components/slider/Slider.d.ts +1 -1
  17. package/dist/components/smart-filter/SmartFilter.d.ts +4 -5
  18. package/dist/icon-set.js +2 -2
  19. package/dist/index.css +1 -1
  20. package/dist/index.js +5 -9
  21. package/dist/internal/barPlan.d.ts +44 -0
  22. package/dist/internal/overlay/FloatingPanel.d.ts +1 -1
  23. package/dist/internal/overlay/focus.d.ts +3 -2
  24. package/dist/internal/parts.d.ts +1 -1
  25. package/dist/internal/slot.d.ts +0 -30
  26. package/dist/layout/app-shell/AppShell.d.ts +19 -38
  27. package/dist/layout/index.d.ts +3 -3
  28. package/dist/layout/page/Page.d.ts +263 -0
  29. package/dist/layout/sidebar/Sidebar.d.ts +1 -1
  30. package/dist/skill/SKILL.md +10 -10
  31. package/dist/skill/anti-slop.md +101 -5
  32. package/dist/skill/api-contract.md +1 -1
  33. package/dist/skill/cheatsheet.md +27 -22
  34. package/dist/skill/checklist.md +7 -3
  35. package/dist/skill/choosing.md +9 -8
  36. package/dist/skill/components.md +3 -5
  37. package/dist/skill/composition.md +177 -152
  38. package/dist/skill/foundations.md +9 -9
  39. package/dist/skill/layouts.md +39 -98
  40. package/dist/skill/reference/components/avatar/COMPONENT.md +2 -2
  41. package/dist/skill/reference/components/avatar/examples/team-group.tsx +1 -1
  42. package/dist/skill/reference/components/banner/COMPONENT.md +4 -4
  43. package/dist/skill/reference/components/banner/examples/examples.module.css +6 -1
  44. package/dist/skill/reference/components/banner/examples/page-strip.tsx +24 -22
  45. package/dist/skill/reference/components/breadcrumb/COMPONENT.md +9 -8
  46. package/dist/skill/reference/components/button/COMPONENT.md +1 -0
  47. package/dist/skill/reference/components/button/examples/hold-to-confirm.tsx +1 -1
  48. package/dist/skill/reference/components/button/examples/on-colored-host.tsx +8 -8
  49. package/dist/skill/reference/components/card/COMPONENT.md +7 -7
  50. package/dist/skill/reference/components/card/examples/screen.module.css +1 -1
  51. package/dist/skill/reference/components/card/examples/screen.tsx +184 -198
  52. package/dist/skill/reference/components/chart-frame/COMPONENT.md +1 -1
  53. package/dist/skill/reference/components/chart-frame/examples/fill-height.tsx +9 -9
  54. package/dist/skill/reference/components/chat/COMPONENT.md +4 -4
  55. package/dist/skill/reference/components/chat/examples/screen.module.css +1 -1
  56. package/dist/skill/reference/components/chat/examples/screen.tsx +110 -117
  57. package/dist/skill/reference/components/chat-list/COMPONENT.md +2 -2
  58. package/dist/skill/reference/components/chat-list/examples/controlled.tsx +2 -2
  59. package/dist/skill/reference/components/chat-list/examples/examples.module.css +8 -0
  60. package/dist/skill/reference/components/checkbox/examples/examples.module.css +3 -2
  61. package/dist/skill/reference/components/code-block/COMPONENT.md +1 -1
  62. package/dist/skill/reference/components/code-block/examples/color-scheme.tsx +2 -4
  63. package/dist/skill/reference/components/code-block/examples/examples.module.css +0 -11
  64. package/dist/skill/reference/components/color-picker/COMPONENT.md +18 -7
  65. package/dist/skill/reference/components/color-picker/examples/examples.module.css +2 -5
  66. package/dist/skill/reference/components/color-picker/examples/overview.tsx +5 -10
  67. package/dist/skill/reference/components/color-picker/examples/sizes.tsx +4 -8
  68. package/dist/skill/reference/components/crossfade/COMPONENT.md +2 -2
  69. package/dist/skill/reference/components/crossfade/examples/screen.tsx +107 -112
  70. package/dist/skill/reference/components/data-table/COMPONENT.md +5 -5
  71. package/dist/skill/reference/components/data-table/examples/examples.module.css +9 -0
  72. package/dist/skill/reference/components/data-table/examples/screen.tsx +42 -52
  73. package/dist/skill/reference/components/data-table/examples/server.tsx +6 -2
  74. package/dist/skill/reference/components/datepicker/examples/examples.module.css +6 -0
  75. package/dist/skill/reference/components/datepicker/examples/inline-panel.tsx +3 -1
  76. package/dist/skill/reference/components/description-list/COMPONENT.md +1 -1
  77. package/dist/skill/reference/components/description-list/examples/screen.tsx +120 -127
  78. package/dist/skill/reference/components/digit-input/examples/grouped.tsx +4 -4
  79. package/dist/skill/reference/components/digit-input/examples/validation.tsx +1 -1
  80. package/dist/skill/reference/components/divider/COMPONENT.md +2 -2
  81. package/dist/skill/reference/components/divider/examples/examples.module.css +4 -1
  82. package/dist/skill/reference/components/divider/examples/vertical.tsx +22 -9
  83. package/dist/skill/reference/components/dnd/examples/examples.module.css +3 -1
  84. package/dist/skill/reference/components/drawer/COMPONENT.md +1 -1
  85. package/dist/skill/reference/components/drawer/examples/placement.tsx +26 -31
  86. package/dist/skill/reference/components/drawer/examples/screen.tsx +137 -160
  87. package/dist/skill/reference/components/dropdown/COMPONENT.md +1 -1
  88. package/dist/skill/reference/components/example-frame/COMPONENT.md +3 -3
  89. package/dist/skill/reference/components/field-list/examples/screen.module.css +1 -1
  90. package/dist/skill/reference/components/field-list/examples/screen.tsx +19 -19
  91. package/dist/skill/reference/components/fieldset/COMPONENT.md +1 -1
  92. package/dist/skill/reference/components/fieldset/examples/states.tsx +1 -1
  93. package/dist/skill/reference/components/file-upload/COMPONENT.md +1 -1
  94. package/dist/skill/reference/components/file-upload/examples/screen.module.css +2 -2
  95. package/dist/skill/reference/components/file-upload/examples/screen.tsx +65 -81
  96. package/dist/skill/reference/components/gallery/COMPONENT.md +1 -0
  97. package/dist/skill/reference/components/gantt/COMPONENT.md +1 -1
  98. package/dist/skill/reference/components/gantt/examples/screen.module.css +1 -1
  99. package/dist/skill/reference/components/gantt/examples/screen.tsx +55 -73
  100. package/dist/skill/reference/components/hint/examples/examples.module.css +10 -1
  101. package/dist/skill/reference/components/hint/examples/overview.tsx +1 -1
  102. package/dist/skill/reference/components/kanban/COMPONENT.md +1 -1
  103. package/dist/skill/reference/components/kanban/examples/screen.module.css +1 -1
  104. package/dist/skill/reference/components/kanban/examples/screen.tsx +50 -65
  105. package/dist/skill/reference/components/kbd/COMPONENT.md +1 -1
  106. package/dist/skill/reference/components/label/examples/examples.module.css +12 -1
  107. package/dist/skill/reference/components/label/examples/overview.tsx +1 -1
  108. package/dist/skill/reference/components/list/COMPONENT.md +3 -3
  109. package/dist/skill/reference/components/media-viewer/examples/controlled.tsx +16 -16
  110. package/dist/skill/reference/components/media-viewer/examples/examples.module.css +1 -3
  111. package/dist/skill/reference/components/pagination/COMPONENT.md +11 -3
  112. package/dist/skill/reference/components/pagination/examples/controlled.tsx +2 -1
  113. package/dist/skill/reference/components/popover/COMPONENT.md +3 -2
  114. package/dist/skill/reference/components/popover/examples/width.tsx +13 -1
  115. package/dist/skill/reference/components/slider/COMPONENT.md +3 -3
  116. package/dist/skill/reference/components/slider/examples/states.tsx +14 -10
  117. package/dist/skill/reference/components/smart-filter/COMPONENT.md +13 -13
  118. package/dist/skill/reference/components/smart-filter/examples/examples.module.css +3 -0
  119. package/dist/skill/reference/components/smart-filter/examples/many-values.tsx +12 -8
  120. package/dist/skill/reference/components/smart-filter/examples/sizes.tsx +7 -3
  121. package/dist/skill/reference/components/sparkline/COMPONENT.md +1 -0
  122. package/dist/skill/reference/components/sparkline/examples/curve.tsx +16 -11
  123. package/dist/skill/reference/components/sparkline/examples/states.tsx +14 -10
  124. package/dist/skill/reference/components/switch/COMPONENT.md +1 -1
  125. package/dist/skill/reference/components/tabs/COMPONENT.md +1 -1
  126. package/dist/skill/reference/components/typography/COMPONENT.md +2 -2
  127. package/dist/skill/reference/foundation.md +15 -11
  128. package/dist/skill/reference/layout/app-shell/COMPONENT.md +25 -38
  129. package/dist/skill/reference/layout/app-shell/examples/footer.tsx +10 -10
  130. package/dist/skill/reference/layout/app-shell/examples/overview.tsx +20 -22
  131. package/dist/skill/reference/layout/app-shell/examples/screen.module.css +2 -2
  132. package/dist/skill/reference/layout/app-shell/examples/screen.tsx +25 -30
  133. package/dist/skill/reference/layout/app-shell/examples/template.tsx +13 -17
  134. package/dist/skill/reference/layout/bottom-nav/COMPONENT.md +3 -3
  135. package/dist/skill/reference/layout/bottom-nav/examples/floating-action.tsx +10 -19
  136. package/dist/skill/reference/layout/bottom-nav/examples/floating.tsx +10 -19
  137. package/dist/skill/reference/layout/bottom-nav/examples/in-app-shell.tsx +11 -19
  138. package/dist/skill/reference/layout/page/COMPONENT.md +353 -0
  139. package/dist/skill/reference/layout/page/examples/actions-collapse.tsx +45 -0
  140. package/dist/skill/reference/layout/page/examples/collapse.tsx +68 -0
  141. package/dist/skill/reference/{components/page-content → layout/page}/examples/examples.module.css +33 -4
  142. package/{src/components/page-content → dist/skill/reference/layout/page}/examples/grid.tsx +15 -15
  143. package/dist/skill/reference/{components/page-content → layout/page}/examples/list-detail.tsx +14 -14
  144. package/dist/skill/reference/layout/page/examples/narrow.tsx +75 -0
  145. package/dist/skill/reference/layout/page/examples/overview.tsx +57 -0
  146. package/dist/skill/reference/{components/page-content → layout/page}/examples/screen.module.css +1 -1
  147. package/{src/components/page-content → dist/skill/reference/layout/page}/examples/screen.tsx +29 -19
  148. package/dist/skill/reference/{components/page-content → layout/page}/examples/sections.tsx +17 -24
  149. package/dist/skill/reference/layout/page/examples/structure.tsx +41 -0
  150. package/dist/skill/reference/{components/page-toolbar/examples/narrow.tsx → layout/page/examples/tools.tsx} +38 -35
  151. package/dist/skill/reference/layout/page/examples/top-bar.tsx +85 -0
  152. package/dist/skill/reference/{components/page-content → layout/page}/examples/variants.tsx +7 -7
  153. package/dist/skill/reference/layout/sidebar/COMPONENT.md +5 -4
  154. package/dist/skill/reference/layout/sidebar/examples/dismiss.tsx +10 -7
  155. package/dist/skill/reference/layout/sidebar/examples/narrow.tsx +11 -8
  156. package/dist/skill/responsive.md +88 -74
  157. package/dist/tokens/layers.d.ts +2 -0
  158. package/dist/tokens/primitives.d.ts +12 -2
  159. package/dist/tokens/semantic.d.ts +7 -0
  160. package/dist/tokens/themes/dark.d.ts +7 -2
  161. package/package.json +2 -2
  162. package/src/components/avatar/COMPONENT.md +2 -2
  163. package/src/components/avatar/examples/team-group.tsx +1 -1
  164. package/src/components/banner/COMPONENT.md +4 -4
  165. package/src/components/banner/examples/examples.module.css +6 -1
  166. package/src/components/banner/examples/page-strip.tsx +24 -22
  167. package/src/components/breadcrumb/COMPONENT.md +9 -8
  168. package/src/components/button/COMPONENT.md +1 -0
  169. package/src/components/button/examples/hold-to-confirm.tsx +1 -1
  170. package/src/components/button/examples/on-colored-host.tsx +8 -8
  171. package/src/components/card/COMPONENT.md +7 -7
  172. package/src/components/card/examples/screen.module.css +1 -1
  173. package/src/components/card/examples/screen.tsx +184 -198
  174. package/src/components/chart-frame/COMPONENT.md +1 -1
  175. package/src/components/chart-frame/examples/fill-height.tsx +9 -9
  176. package/src/components/chat/COMPONENT.md +4 -4
  177. package/src/components/chat/examples/screen.module.css +1 -1
  178. package/src/components/chat/examples/screen.tsx +110 -117
  179. package/src/components/chat-list/COMPONENT.md +2 -2
  180. package/src/components/chat-list/examples/controlled.tsx +2 -2
  181. package/src/components/chat-list/examples/examples.module.css +8 -0
  182. package/src/components/checkbox/examples/examples.module.css +3 -2
  183. package/src/components/code-block/COMPONENT.md +1 -1
  184. package/src/components/code-block/examples/color-scheme.tsx +2 -4
  185. package/src/components/code-block/examples/examples.module.css +0 -11
  186. package/src/components/color-picker/COMPONENT.md +18 -7
  187. package/src/components/color-picker/examples/examples.module.css +2 -5
  188. package/src/components/color-picker/examples/overview.tsx +5 -10
  189. package/src/components/color-picker/examples/sizes.tsx +4 -8
  190. package/src/components/crossfade/COMPONENT.md +2 -2
  191. package/src/components/crossfade/examples/screen.tsx +107 -112
  192. package/src/components/data-table/COMPONENT.md +5 -5
  193. package/src/components/data-table/examples/examples.module.css +9 -0
  194. package/src/components/data-table/examples/screen.tsx +42 -52
  195. package/src/components/data-table/examples/server.tsx +6 -2
  196. package/src/components/datepicker/examples/examples.module.css +6 -0
  197. package/src/components/datepicker/examples/inline-panel.tsx +3 -1
  198. package/src/components/description-list/COMPONENT.md +1 -1
  199. package/src/components/description-list/examples/screen.tsx +120 -127
  200. package/src/components/digit-input/examples/grouped.tsx +4 -4
  201. package/src/components/digit-input/examples/validation.tsx +1 -1
  202. package/src/components/divider/COMPONENT.md +2 -2
  203. package/src/components/divider/examples/examples.module.css +4 -1
  204. package/src/components/divider/examples/vertical.tsx +22 -9
  205. package/src/components/dnd/examples/examples.module.css +3 -1
  206. package/src/components/drawer/COMPONENT.md +1 -1
  207. package/src/components/drawer/examples/placement.tsx +26 -31
  208. package/src/components/drawer/examples/screen.tsx +137 -160
  209. package/src/components/dropdown/COMPONENT.md +1 -1
  210. package/src/components/example-frame/COMPONENT.md +3 -3
  211. package/src/components/field-list/examples/screen.module.css +1 -1
  212. package/src/components/field-list/examples/screen.tsx +19 -19
  213. package/src/components/fieldset/COMPONENT.md +1 -1
  214. package/src/components/fieldset/examples/states.tsx +1 -1
  215. package/src/components/file-upload/COMPONENT.md +1 -1
  216. package/src/components/file-upload/examples/screen.module.css +2 -2
  217. package/src/components/file-upload/examples/screen.tsx +65 -81
  218. package/src/components/gallery/COMPONENT.md +1 -0
  219. package/src/components/gantt/COMPONENT.md +1 -1
  220. package/src/components/gantt/examples/screen.module.css +1 -1
  221. package/src/components/gantt/examples/screen.tsx +55 -73
  222. package/src/components/hint/examples/examples.module.css +10 -1
  223. package/src/components/hint/examples/overview.tsx +1 -1
  224. package/src/components/kanban/COMPONENT.md +1 -1
  225. package/src/components/kanban/examples/screen.module.css +1 -1
  226. package/src/components/kanban/examples/screen.tsx +50 -65
  227. package/src/components/kbd/COMPONENT.md +1 -1
  228. package/src/components/label/examples/examples.module.css +12 -1
  229. package/src/components/label/examples/overview.tsx +1 -1
  230. package/src/components/list/COMPONENT.md +3 -3
  231. package/src/components/media-viewer/examples/controlled.tsx +16 -16
  232. package/src/components/media-viewer/examples/examples.module.css +1 -3
  233. package/src/components/pagination/COMPONENT.md +11 -3
  234. package/src/components/pagination/examples/controlled.tsx +2 -1
  235. package/src/components/popover/COMPONENT.md +3 -2
  236. package/src/components/popover/examples/width.tsx +13 -1
  237. package/src/components/slider/COMPONENT.md +3 -3
  238. package/src/components/slider/examples/states.tsx +14 -10
  239. package/src/components/smart-filter/COMPONENT.md +13 -13
  240. package/src/components/smart-filter/examples/examples.module.css +3 -0
  241. package/src/components/smart-filter/examples/many-values.tsx +12 -8
  242. package/src/components/smart-filter/examples/sizes.tsx +7 -3
  243. package/src/components/sparkline/COMPONENT.md +1 -0
  244. package/src/components/sparkline/examples/curve.tsx +16 -11
  245. package/src/components/sparkline/examples/states.tsx +14 -10
  246. package/src/components/switch/COMPONENT.md +1 -1
  247. package/src/components/tabs/COMPONENT.md +1 -1
  248. package/src/components/typography/COMPONENT.md +2 -2
  249. package/src/layout/app-shell/COMPONENT.md +25 -38
  250. package/src/layout/app-shell/examples/footer.tsx +10 -10
  251. package/src/layout/app-shell/examples/overview.tsx +20 -22
  252. package/src/layout/app-shell/examples/screen.module.css +2 -2
  253. package/src/layout/app-shell/examples/screen.tsx +25 -30
  254. package/src/layout/app-shell/examples/template.tsx +13 -17
  255. package/src/layout/bottom-nav/COMPONENT.md +3 -3
  256. package/src/layout/bottom-nav/examples/floating-action.tsx +10 -19
  257. package/src/layout/bottom-nav/examples/floating.tsx +10 -19
  258. package/src/layout/bottom-nav/examples/in-app-shell.tsx +11 -19
  259. package/src/layout/page/COMPONENT.md +353 -0
  260. package/src/layout/page/examples/actions-collapse.tsx +45 -0
  261. package/src/layout/page/examples/collapse.tsx +68 -0
  262. package/src/{components/page-content → layout/page}/examples/examples.module.css +33 -4
  263. package/{dist/skill/reference/components/page-content → src/layout/page}/examples/grid.tsx +15 -15
  264. package/src/{components/page-content → layout/page}/examples/list-detail.tsx +14 -14
  265. package/src/layout/page/examples/narrow.tsx +75 -0
  266. package/src/layout/page/examples/overview.tsx +57 -0
  267. package/src/{components/page-content → layout/page}/examples/screen.module.css +1 -1
  268. package/{dist/skill/reference/components/page-content → src/layout/page}/examples/screen.tsx +29 -19
  269. package/src/{components/page-content → layout/page}/examples/sections.tsx +17 -24
  270. package/src/layout/page/examples/structure.tsx +41 -0
  271. package/src/{components/page-toolbar/examples/narrow.tsx → layout/page/examples/tools.tsx} +38 -35
  272. package/src/layout/page/examples/top-bar.tsx +85 -0
  273. package/src/{components/page-content → layout/page}/examples/variants.tsx +7 -7
  274. package/src/layout/sidebar/COMPONENT.md +5 -4
  275. package/src/layout/sidebar/examples/dismiss.tsx +10 -7
  276. package/src/layout/sidebar/examples/narrow.tsx +11 -8
  277. package/src/styles/theme-dark.css +12 -10
  278. package/src/styles/theme-light.css +3 -0
  279. package/src/styles/tokens.css +3 -1
  280. package/dist/components/page-content/PageContent.d.ts +0 -192
  281. package/dist/components/page-toolbar/PageToolbar.d.ts +0 -55
  282. package/dist/layout/app-header/AppHeader.d.ts +0 -118
  283. package/dist/skill/reference/components/page-content/COMPONENT.md +0 -264
  284. package/dist/skill/reference/components/page-content/examples/narrow.tsx +0 -25
  285. package/dist/skill/reference/components/page-content/examples/overview.tsx +0 -41
  286. package/dist/skill/reference/components/page-toolbar/COMPONENT.md +0 -147
  287. package/dist/skill/reference/components/page-toolbar/examples/examples.module.css +0 -16
  288. package/dist/skill/reference/components/page-toolbar/examples/overview.tsx +0 -113
  289. package/dist/skill/reference/components/page-toolbar/examples/save-changes.tsx +0 -43
  290. package/dist/skill/reference/components/page-toolbar/examples/without-search.tsx +0 -60
  291. package/dist/skill/reference/layout/app-header/COMPONENT.md +0 -187
  292. package/dist/skill/reference/layout/app-header/examples/breadcrumbs.tsx +0 -37
  293. package/dist/skill/reference/layout/app-header/examples/examples.module.css +0 -28
  294. package/dist/skill/reference/layout/app-header/examples/in-app-shell.tsx +0 -67
  295. package/dist/skill/reference/layout/app-header/examples/narrow.tsx +0 -66
  296. package/dist/skill/reference/layout/app-header/examples/overview.tsx +0 -34
  297. package/dist/skill/reference/layout/app-header/examples/page-title.tsx +0 -78
  298. package/dist/skill/reference/layout/app-shell/examples/contained.tsx +0 -30
  299. package/src/components/page-content/COMPONENT.md +0 -264
  300. package/src/components/page-content/examples/narrow.tsx +0 -25
  301. package/src/components/page-content/examples/overview.tsx +0 -41
  302. package/src/components/page-toolbar/COMPONENT.md +0 -147
  303. package/src/components/page-toolbar/examples/examples.module.css +0 -16
  304. package/src/components/page-toolbar/examples/overview.tsx +0 -113
  305. package/src/components/page-toolbar/examples/save-changes.tsx +0 -43
  306. package/src/components/page-toolbar/examples/without-search.tsx +0 -60
  307. package/src/layout/app-header/COMPONENT.md +0 -187
  308. package/src/layout/app-header/examples/breadcrumbs.tsx +0 -37
  309. package/src/layout/app-header/examples/examples.module.css +0 -28
  310. package/src/layout/app-header/examples/in-app-shell.tsx +0 -67
  311. package/src/layout/app-header/examples/narrow.tsx +0 -66
  312. package/src/layout/app-header/examples/overview.tsx +0 -34
  313. package/src/layout/app-header/examples/page-title.tsx +0 -78
  314. package/src/layout/app-shell/examples/contained.tsx +0 -30
  315. package/dist/chunks/{chunk-U3Q2I3MY.js → chunk-2ODXLPW3.js} +2 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  defineGlyph
5
- } from "./chunk-U3Q2I3MY.js";
5
+ } from "./chunk-2ODXLPW3.js";
6
6
 
7
7
  // src/icons/glyphs/a-arrow-down.tsx
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -3,6 +3,7 @@
3
3
  import {
4
4
  Button,
5
5
  ColorSwatches,
6
+ FieldActionButton,
6
7
  FieldFrame,
7
8
  Icon,
8
9
  Input,
@@ -22,11 +23,11 @@ import {
22
23
  useInheritedDisabled,
23
24
  useLabels,
24
25
  useOpenState
25
- } from "./chunk-4PSQ64S4.js";
26
+ } from "./chunk-7WWZYGRC.js";
26
27
  import {
27
28
  cx,
28
29
  useHostTier
29
- } from "./chunk-U3Q2I3MY.js";
30
+ } from "./chunk-2ODXLPW3.js";
30
31
 
31
32
  // src/components/color-field/ColorField.tsx
32
33
  import * as React3 from "react";
@@ -42,7 +43,8 @@ import {
42
43
  ColorPickerStateContext,
43
44
  ColorSliderStateContext,
44
45
  composeRenderProps,
45
- parseColor
46
+ parseColor,
47
+ useLocale
46
48
  } from "react-aria-components";
47
49
 
48
50
  // src/hooks/useDraft.ts
@@ -75,6 +77,7 @@ var ColorPicker_default = {
75
77
  channelInput: "ColorPicker_channelInput",
76
78
  channelCellHex: "ColorPicker_channelCellHex",
77
79
  channelSuffix: "ColorPicker_channelSuffix",
80
+ swatchButton: "ColorPicker_swatchButton",
78
81
  eyeDropperSquare: "ColorPicker_eyeDropperSquare"
79
82
  };
80
83
 
@@ -84,6 +87,7 @@ var COLOR_PICKER_LABELS = {
84
87
  format: "\u0424\u043E\u0440\u043C\u0430\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439 \u0446\u0432\u0435\u0442\u0430",
85
88
  eyeDropper: "\u041F\u0438\u043F\u0435\u0442\u043A\u0430",
86
89
  hex: "Hex",
90
+ palette: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043B\u0438\u0442\u0440\u0443",
87
91
  hue: "\u041E\u0442\u0442\u0435\u043D\u043E\u043A, \u0433\u0440\u0430\u0434\u0443\u0441\u044B",
88
92
  saturation: "\u041D\u0430\u0441\u044B\u0449\u0435\u043D\u043D\u043E\u0441\u0442\u044C, \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u044B",
89
93
  lightness: "\u042F\u0440\u043A\u043E\u0441\u0442\u044C, \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u044B",
@@ -279,15 +283,21 @@ function ColorPickerRoot({
279
283
  );
280
284
  }
281
285
  ColorPickerRoot.displayName = "ColorPicker.Root";
286
+ var SliderChannelContext = React2.createContext(null);
282
287
  function Slider({ className, disabled, ...props }) {
283
- return /* @__PURE__ */ jsx(
288
+ return /* @__PURE__ */ jsx(SliderChannelContext.Provider, { value: props.channel, children: /* @__PURE__ */ jsx(
284
289
  AriaColorSlider,
285
290
  {
286
291
  className: composeRenderProps(className, (c) => cx(ColorPicker_default.slider, c)),
287
292
  isDisabled: useInheritedDisabled(disabled),
288
293
  ...props
289
294
  }
290
- );
295
+ ) });
296
+ }
297
+ function sliderValueLabel(color, channel, locale) {
298
+ const raw = color.getChannelValue(channel);
299
+ const rounded = channel === "alpha" ? Math.round(raw * 100) / 100 : Math.round(raw);
300
+ return color.withChannelValue(channel, rounded).formatChannelValue(channel, locale);
291
301
  }
292
302
  function Area({ className, disabled, ...props }) {
293
303
  return /* @__PURE__ */ jsx(
@@ -342,12 +352,14 @@ function Swatches(props) {
342
352
  Swatches.displayName = "ColorPicker.Swatches";
343
353
  function SliderMeta({ label, className, ...rest }) {
344
354
  const slider = React2.useContext(ColorSliderStateContext);
355
+ const channel = React2.useContext(SliderChannelContext);
356
+ const { locale } = useLocale();
345
357
  return /* @__PURE__ */ jsxs("div", { ...rest, className: cx(ColorPicker_default.sliderHeader, className), children: [
346
358
  /* @__PURE__ */ jsx("span", { className: ColorPicker_default.sliderLabel, children: label }),
347
- /* @__PURE__ */ jsx("output", { className: ColorPicker_default.sliderValue, "aria-live": "off", children: slider?.getThumbValueLabel(0) })
359
+ /* @__PURE__ */ jsx("output", { className: ColorPicker_default.sliderValue, "aria-live": "off", children: slider && channel ? sliderValueLabel(slider.value, channel, locale) : null })
348
360
  ] });
349
361
  }
350
- function HexInput({ label, hint, error, focusRing, ...rest }) {
362
+ function HexInput({ label, hint, error, focusRing, children, ...rest }) {
351
363
  const { labels } = useColorPickerContext();
352
364
  const { inputRef, text, setText, commit } = useColorDraft(toHexText, parseHex);
353
365
  return /* @__PURE__ */ jsx(
@@ -358,19 +370,22 @@ function HexInput({ label, hint, error, focusRing, ...rest }) {
358
370
  hint,
359
371
  error,
360
372
  focusRing,
361
- children: /* @__PURE__ */ jsx(Input.Wrapper, { children: /* @__PURE__ */ jsx(
362
- Input.Field,
363
- {
364
- ref: inputRef,
365
- autoCapitalize: "off",
366
- autoCorrect: "off",
367
- spellCheck: false,
368
- value: text,
369
- onBlur: commit,
370
- onChange: (e) => setText(e.target.value),
371
- onKeyDown: onCommitKeyDown(commit)
372
- }
373
- ) })
373
+ children: /* @__PURE__ */ jsxs(Input.Wrapper, { children: [
374
+ /* @__PURE__ */ jsx(
375
+ Input.Field,
376
+ {
377
+ ref: inputRef,
378
+ autoCapitalize: "off",
379
+ autoCorrect: "off",
380
+ spellCheck: false,
381
+ value: text,
382
+ onBlur: commit,
383
+ onChange: (e) => setText(e.target.value),
384
+ onKeyDown: onCommitKeyDown(commit)
385
+ }
386
+ ),
387
+ children
388
+ ] })
374
389
  }
375
390
  );
376
391
  }
@@ -419,10 +434,24 @@ function TriggerSwatch(props) {
419
434
  return /* @__PURE__ */ jsx(SwatchChip, { ...props, value: state.color.toString("css") });
420
435
  }
421
436
  TriggerSwatch.displayName = "ColorPicker.TriggerSwatch";
437
+ function SwatchButton({ className, ...rest }) {
438
+ const { labels } = useColorPickerContext();
439
+ return /* @__PURE__ */ jsx(
440
+ FieldActionButton,
441
+ {
442
+ ...rest,
443
+ label: labels.palette,
444
+ className: cx(ColorPicker_default.swatchButton, className),
445
+ children: /* @__PURE__ */ jsx(TriggerSwatch, {})
446
+ }
447
+ );
448
+ }
449
+ SwatchButton.displayName = "ColorPicker.SwatchButton";
422
450
  var ColorPicker = {
423
451
  Root: ColorPickerRoot,
424
452
  Panel,
425
453
  TriggerSwatch,
454
+ SwatchButton,
426
455
  FormatSelect,
427
456
  ChannelStrip,
428
457
  HexInput,
@@ -5,5 +5,5 @@
5
5
  */
6
6
  export type { ColorFieldLabels, ColorFieldProps } from "./components/color-field/ColorField";
7
7
  export { ColorField } from "./components/color-field/ColorField";
8
- export type { ColorPickerAreaProps, ColorPickerChannelStripProps, ColorPickerColorValue, ColorPickerEyeDropperButtonProps, ColorPickerFormatSelectProps, ColorPickerHexInputProps, ColorPickerLabels, ColorPickerPanelProps, ColorPickerRootProps, ColorPickerSliderMetaProps, ColorPickerSliderProps, ColorPickerSliderTrackProps, ColorPickerSwatchesProps, ColorPickerThumbProps, ColorPickerTriggerSwatchProps, ColorValueFormat, } from "./components/color-picker/ColorPicker";
8
+ export type { ColorPickerAreaProps, ColorPickerChannelStripProps, ColorPickerColorValue, ColorPickerEyeDropperButtonProps, ColorPickerFormatSelectProps, ColorPickerHexInputProps, ColorPickerLabels, ColorPickerPanelProps, ColorPickerRootProps, ColorPickerSliderMetaProps, ColorPickerSliderProps, ColorPickerSliderTrackProps, ColorPickerSwatchButtonProps, ColorPickerSwatchesProps, ColorPickerThumbProps, ColorPickerTriggerSwatchProps, ColorValueFormat, } from "./components/color-picker/ColorPicker";
9
9
  export { ColorPicker, parseColor } from "./components/color-picker/ColorPicker";
@@ -4,9 +4,9 @@ import {
4
4
  ColorField,
5
5
  ColorPicker,
6
6
  parseColor
7
- } from "./chunks/chunk-HDBQICPW.js";
8
- import "./chunks/chunk-4PSQ64S4.js";
9
- import "./chunks/chunk-U3Q2I3MY.js";
7
+ } from "./chunks/chunk-SVFWPLNW.js";
8
+ import "./chunks/chunk-7WWZYGRC.js";
9
+ import "./chunks/chunk-2ODXLPW3.js";
10
10
  export {
11
11
  ColorField,
12
12
  ColorPicker,
@@ -18,7 +18,7 @@ export type BreadcrumbRootProps = React.HTMLAttributes<HTMLElement> & {
18
18
  labels?: Partial<BreadcrumbLabels>;
19
19
  ref?: React.Ref<HTMLElement>;
20
20
  };
21
- declare function BreadcrumbRoot({ children, className, size: sizeProp, labels: labelsProp, ...rest }: BreadcrumbRootProps): import("react/jsx-runtime").JSX.Element;
21
+ declare function BreadcrumbRoot({ children, className, size: sizeProp, labels: labelsProp, ref, ...rest }: BreadcrumbRootProps): import("react/jsx-runtime").JSX.Element;
22
22
  declare namespace BreadcrumbRoot {
23
23
  var displayName: string;
24
24
  }
@@ -166,7 +166,7 @@ declare namespace ChartFrameDelta {
166
166
  }
167
167
  export type ChartFramePlotProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
168
168
  /**
169
- * Height of the plot area in px. `fill` takes the free height of a stretched panel (a `PageContent.Cell` with `rows`), the default height at least.
169
+ * Height of the plot area in px. `fill` takes the free height of a stretched panel (a `Page.Cell` with `rows`), the default height at least.
170
170
  */
171
171
  height?: number | "fill";
172
172
  /**
@@ -2,7 +2,11 @@ import type * as React from "react";
2
2
  export type ChatSeparatorProps = React.HTMLAttributes<HTMLDivElement> & {
3
3
  ref?: React.Ref<HTMLDivElement>;
4
4
  };
5
- /** A date between messages («Сегодня», «12 марта»): a small pill that sticks while its day scrolls. */
5
+ /**
6
+ * A date between messages («Сегодня», «12 марта»): a small pill that sticks while its day scrolls.
7
+ * An incoming bubble stands one step off the list's host, the pill one step above the bubble, so the
8
+ * two never share a fill while the bubbles pass under it.
9
+ */
6
10
  export declare function ChatSeparator({ className, children, ...rest }: ChatSeparatorProps): import("react/jsx-runtime").JSX.Element;
7
11
  export declare namespace ChatSeparator {
8
12
  var displayName: string;
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import { type ColorAreaProps as AriaColorAreaProps, type ColorSliderProps as AriaColorSliderProps, type ColorThumbProps as AriaColorThumbProps, type SliderTrackProps as AriaSliderTrackProps, type Color, parseColor } from "react-aria-components";
3
3
  import { Button } from "../button/Button";
4
4
  import { type ColorSwatchesColorProps } from "../color-swatches/ColorSwatches";
5
+ import { type FieldActionButtonProps } from "../../internal/FieldAction";
5
6
  import type { FieldFocusRingProps, FieldRootDomProps } from "../../internal/FieldFrame";
6
7
  import type { ControlSize } from "../../internal/states";
7
8
  export type { Color as ColorPickerColorValue } from "react-aria-components";
@@ -23,6 +24,8 @@ export type ColorPickerLabels = {
23
24
  eyeDropper: string;
24
25
  /** Hex field of `ChannelStrip` and the default `HexInput` label. */
25
26
  hex: string;
27
+ /** `ColorPicker.SwatchButton`: its name and tooltip. */
28
+ palette: string;
26
29
  hue: string;
27
30
  saturation: string;
28
31
  lightness: string;
@@ -83,6 +86,10 @@ export type ColorPickerHexInputProps = FieldRootDomProps & FieldFocusRingProps &
83
86
  * Error message in the hint slot; marks the field invalid.
84
87
  */
85
88
  error?: React.ReactNode;
89
+ /**
90
+ * End segments of the field box after the value: `ColorPicker.SwatchButton` (in a `Popover.Trigger`), so the hex and its swatch read as one field.
91
+ */
92
+ children?: React.ReactNode;
86
93
  };
87
94
  export { parseColor };
88
95
  /** Hex text of a color: `#rrggbb`, or `#rrggbbaa` when it is not opaque. */
@@ -158,7 +165,7 @@ export type ColorPickerSliderMetaProps = DivProps & {
158
165
  * React Aria's `SliderOutput` inside a color slider points `for` at an id no input carries.
159
166
  */
160
167
  declare function SliderMeta({ label, className, ...rest }: ColorPickerSliderMetaProps): import("react/jsx-runtime").JSX.Element;
161
- declare function HexInput({ label, hint, error, focusRing, ...rest }: ColorPickerHexInputProps): import("react/jsx-runtime").JSX.Element;
168
+ declare function HexInput({ label, hint, error, focusRing, children, ...rest }: ColorPickerHexInputProps): import("react/jsx-runtime").JSX.Element;
162
169
  declare namespace HexInput {
163
170
  var displayName: string;
164
171
  }
@@ -181,10 +188,20 @@ declare function TriggerSwatch(props: ColorPickerTriggerSwatchProps): import("re
181
188
  declare namespace TriggerSwatch {
182
189
  var displayName: string;
183
190
  }
191
+ export type ColorPickerSwatchButtonProps = Omit<FieldActionButtonProps, "label" | "children" | "asChild">;
192
+ /**
193
+ * The current color as a button segment at the end of `HexInput` (named `labels.palette`, with a
194
+ * tooltip): the hex and its swatch read as one field. Wrap it in `Popover.Trigger` to open a panel.
195
+ */
196
+ declare function SwatchButton({ className, ...rest }: ColorPickerSwatchButtonProps): import("react/jsx-runtime").JSX.Element;
197
+ declare namespace SwatchButton {
198
+ var displayName: string;
199
+ }
184
200
  export declare const ColorPicker: {
185
201
  Root: typeof ColorPickerRoot;
186
202
  Panel: typeof Panel;
187
203
  TriggerSwatch: typeof TriggerSwatch;
204
+ SwatchButton: typeof SwatchButton;
188
205
  FormatSelect: typeof FormatSelect;
189
206
  ChannelStrip: typeof ChannelStrip;
190
207
  HexInput: typeof HexInput;
@@ -184,7 +184,7 @@ export type DataTableProps<Row> = Omit<React.HTMLAttributes<HTMLDivElement>, "ch
184
184
  */
185
185
  scrollHeight?: number | string;
186
186
  /**
187
- * The table spans its container; `false` sizes it by its content.
187
+ * The table spans its container; `false` sizes the table and its surface by its content (up to the container's width, then it scrolls).
188
188
  */
189
189
  fullWidth?: boolean;
190
190
  /**
@@ -102,10 +102,6 @@ export type { NotificationAction, NotificationCardProps, NotificationDismissReas
102
102
  export { NotificationCard } from "./notification/Notification";
103
103
  export type { NotificationProviderProps } from "./notification/NotificationStore";
104
104
  export { NotificationProvider, useNotifications, } from "./notification/NotificationStore";
105
- export type { PageContentActionsProps, PageContentBackButtonProps, PageContentBodyProps, PageContentCellProps, PageContentCellRows, PageContentCellSpan, PageContentDescriptionMeasure, PageContentDescriptionProps, PageContentGridProps, PageContentHeaderProps, PageContentLabels, PageContentMaxWidth, PageContentPanelKind, PageContentPanelProps, PageContentRootAs, PageContentRootProps, PageContentSectionLayout, PageContentSectionProps, PageContentSplitProps, PageContentTitleProps, } from "./page-content/PageContent";
106
- export { PageContent } from "./page-content/PageContent";
107
- export type { PageToolbarActionsProps, PageToolbarChipsProps, PageToolbarRootProps, PageToolbarSectionsProps, PageToolbarToolsProps, PageToolbarViewProps, } from "./page-toolbar/PageToolbar";
108
- export { PageToolbar } from "./page-toolbar/PageToolbar";
109
105
  export type { PaginationLabels, PaginationProps } from "./pagination/Pagination";
110
106
  export { Pagination } from "./pagination/Pagination";
111
107
  export type { PopoverActionsProps, PopoverAnchorProps, PopoverCloseProps, PopoverContentProps, PopoverDescriptionProps, PopoverHeaderProps, PopoverRootProps, PopoverTitleProps, PopoverTriggerProps, } from "./popover/Popover";
@@ -42,9 +42,13 @@ export type PaginationProps = Omit<React.HTMLAttributes<HTMLElement>, "defaultVa
42
42
  * Always arrows + «current / total» instead of numbers. Without it the nav fills its parent and shows that view only below 22rem of its width.
43
43
  */
44
44
  compact?: boolean;
45
+ /**
46
+ * Where the page numbers sit in the width the nav fills: centred under a list, `end` beside a range line (the DataTable footer). The compact view keeps its arrows at the edges.
47
+ */
48
+ align?: "start" | "center" | "end";
45
49
  /**
46
50
  * Built-in strings, see Labels.
47
51
  */
48
52
  labels?: Partial<PaginationLabels>;
49
53
  };
50
- export declare function Pagination({ value, defaultValue, onValueChange, totalPages, siblingCount, size: sizeProp, compact, labels: labelsProp, className, ...rest }: PaginationProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
54
+ export declare function Pagination({ value, defaultValue, onValueChange, totalPages, siblingCount, size: sizeProp, compact, align, labels: labelsProp, className, ...rest }: PaginationProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
@@ -81,7 +81,7 @@ export type PopoverContentProps = Omit<React.HTMLAttributes<HTMLDivElement>, "ro
81
81
  */
82
82
  size?: ControlSize;
83
83
  /**
84
- * `auto`: by content, from the panel minimum to twice that. `trigger`: exactly the trigger's width, below the minimum too. `content`: what the content needs, within the viewport. A sheet is full width.
84
+ * `auto`: by content, panel minimum to twice that. `trigger`: exactly the trigger. `min-trigger`: `auto`, never narrower than the trigger. `content`: what the content needs. A sheet is full width.
85
85
  */
86
86
  width?: FloatingWidth;
87
87
  /**
@@ -43,7 +43,7 @@ export type SliderProps = FieldRootDomProps & FieldFrameProps & {
43
43
  */
44
44
  disabled?: boolean;
45
45
  /**
46
- * `aria-invalid` on the range input and a danger focus ring on the thumb. A non-empty `error` implies it.
46
+ * `aria-invalid` on the range input, a danger fill (over any `tone`) and a danger focus ring on the thumb. A non-empty `error` implies it.
47
47
  */
48
48
  invalid?: boolean;
49
49
  /**
@@ -97,7 +97,7 @@ export type SmartFilterLabels = {
97
97
  rangeTo: string;
98
98
  };
99
99
  export declare const SMART_FILTER_LABELS: SmartFilterLabels;
100
- export type SmartFilterRootProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "defaultValue" | "onChange"> & {
100
+ export type SmartFilterRootProps = {
101
101
  /**
102
102
  * Fields of this screen, in display order; empty — only the search. Pass a stable reference.
103
103
  */
@@ -139,12 +139,11 @@ export type SmartFilterRootProps = Omit<React.HTMLAttributes<HTMLDivElement>, "c
139
139
  */
140
140
  labels?: Partial<SmartFilterLabels>;
141
141
  /**
142
- * `SmartFilter.Toolbar` and `SmartFilter.Chips`, anywhere inside.
142
+ * `SmartFilter.Toolbar` and `SmartFilter.Chips`, anywhere inside — in a page bar the Root wraps `Page.Root`.
143
143
  */
144
144
  children: React.ReactNode;
145
- ref?: React.Ref<HTMLDivElement>;
146
145
  };
147
- declare function SmartFilterRoot({ fields, value, defaultValue, onValueChange, search, defaultSearch, onSearchChange, size: sizeProp, collapsedLimit, labels, className, children, ref, ...rest }: SmartFilterRootProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
146
+ declare function SmartFilterRoot({ fields, value, defaultValue, onValueChange, search, defaultSearch, onSearchChange, size: sizeProp, collapsedLimit, labels, children, }: SmartFilterRootProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
148
147
  declare namespace SmartFilterRoot {
149
148
  var displayName: string;
150
149
  }
@@ -155,7 +154,7 @@ export type SmartFilterToolbarProps = Omit<React.HTMLAttributes<HTMLDivElement>,
155
154
  searchable?: boolean;
156
155
  ref?: React.Ref<HTMLDivElement>;
157
156
  };
158
- declare function SmartFilterToolbar({ searchable, className, ...rest }: SmartFilterToolbarProps): import("react/jsx-runtime").JSX.Element;
157
+ declare function SmartFilterToolbar({ searchable, className, ref, ...rest }: SmartFilterToolbarProps): import("react/jsx-runtime").JSX.Element;
159
158
  declare namespace SmartFilterToolbar {
160
159
  var displayName: string;
161
160
  }
package/dist/icon-set.js CHANGED
@@ -410,7 +410,7 @@ import {
410
410
  Youtube,
411
411
  Zap,
412
412
  ZapOff
413
- } from "./chunks/chunk-A7OQWH6R.js";
413
+ } from "./chunks/chunk-PRP4B6OG.js";
414
414
  import {
415
415
  Activity,
416
416
  ArrowDown,
@@ -527,7 +527,7 @@ import {
527
527
  X,
528
528
  ZoomIn,
529
529
  ZoomOut
530
- } from "./chunks/chunk-U3Q2I3MY.js";
530
+ } from "./chunks/chunk-2ODXLPW3.js";
531
531
  export {
532
532
  AArrowDown as AArrowDownIcon,
533
533
  AArrowUp as AArrowUpIcon,