@velocity-astro/cms-ui 0.0.0-stage → 0.1.0-beta.11

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 (750) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +40 -2
  3. package/component-registry.json +543 -0
  4. package/dist/components/BarChart/BarChart.d.ts +23 -0
  5. package/dist/components/BarChart/BarChart.d.ts.map +1 -0
  6. package/dist/components/BarChart/BarChart.js +19 -0
  7. package/dist/components/BarChart/BarChart.js.map +1 -0
  8. package/dist/components/BarChart/BarChart.variants.d.ts +29 -0
  9. package/dist/components/BarChart/BarChart.variants.d.ts.map +1 -0
  10. package/dist/components/BarChart/BarChart.variants.js +81 -0
  11. package/dist/components/BarChart/BarChart.variants.js.map +1 -0
  12. package/dist/components/BarChart/index.d.ts +2 -0
  13. package/dist/components/BarChart/index.d.ts.map +1 -0
  14. package/dist/components/BarChart/index.js +2 -0
  15. package/dist/components/BarChart/index.js.map +1 -0
  16. package/dist/components/Box/Box.d.ts +12 -0
  17. package/dist/components/Box/Box.d.ts.map +1 -0
  18. package/dist/components/Box/Box.js +7 -0
  19. package/dist/components/Box/Box.js.map +1 -0
  20. package/dist/components/Box/Box.variants.d.ts +14 -0
  21. package/dist/components/Box/Box.variants.d.ts.map +1 -0
  22. package/dist/components/Box/Box.variants.js +41 -0
  23. package/dist/components/Box/Box.variants.js.map +1 -0
  24. package/dist/components/Box/index.d.ts +2 -0
  25. package/dist/components/Box/index.d.ts.map +1 -0
  26. package/dist/components/Box/index.js +2 -0
  27. package/dist/components/Box/index.js.map +1 -0
  28. package/dist/components/Button/Button.d.ts +26 -0
  29. package/dist/components/Button/Button.d.ts.map +1 -0
  30. package/dist/components/Button/Button.js +12 -0
  31. package/dist/components/Button/Button.js.map +1 -0
  32. package/dist/components/Button/Button.variants.d.ts +19 -0
  33. package/dist/components/Button/Button.variants.d.ts.map +1 -0
  34. package/dist/components/Button/Button.variants.js +41 -0
  35. package/dist/components/Button/Button.variants.js.map +1 -0
  36. package/dist/components/Button/index.d.ts +2 -0
  37. package/dist/components/Button/index.d.ts.map +1 -0
  38. package/dist/components/Button/index.js +2 -0
  39. package/dist/components/Button/index.js.map +1 -0
  40. package/dist/components/Card/Card.d.ts +17 -0
  41. package/dist/components/Card/Card.d.ts.map +1 -0
  42. package/dist/components/Card/Card.js +9 -0
  43. package/dist/components/Card/Card.js.map +1 -0
  44. package/dist/components/Card/Card.variants.d.ts +12 -0
  45. package/dist/components/Card/Card.variants.d.ts.map +1 -0
  46. package/dist/components/Card/Card.variants.js +14 -0
  47. package/dist/components/Card/Card.variants.js.map +1 -0
  48. package/dist/components/Card/index.d.ts +2 -0
  49. package/dist/components/Card/index.d.ts.map +1 -0
  50. package/dist/components/Card/index.js +2 -0
  51. package/dist/components/Card/index.js.map +1 -0
  52. package/dist/components/Checkbox/Checkbox.d.ts +15 -0
  53. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  54. package/dist/components/Checkbox/Checkbox.js +9 -0
  55. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  56. package/dist/components/Checkbox/Checkbox.variants.d.ts +5 -0
  57. package/dist/components/Checkbox/Checkbox.variants.d.ts.map +1 -0
  58. package/dist/components/Checkbox/Checkbox.variants.js +13 -0
  59. package/dist/components/Checkbox/Checkbox.variants.js.map +1 -0
  60. package/dist/components/Checkbox/index.d.ts +2 -0
  61. package/dist/components/Checkbox/index.d.ts.map +1 -0
  62. package/dist/components/Checkbox/index.js +2 -0
  63. package/dist/components/Checkbox/index.js.map +1 -0
  64. package/dist/components/ColorPicker/ColorPicker.d.ts +30 -0
  65. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -0
  66. package/dist/components/ColorPicker/ColorPicker.js +32 -0
  67. package/dist/components/ColorPicker/ColorPicker.js.map +1 -0
  68. package/dist/components/ColorPicker/ColorPicker.variants.d.ts +24 -0
  69. package/dist/components/ColorPicker/ColorPicker.variants.d.ts.map +1 -0
  70. package/dist/components/ColorPicker/ColorPicker.variants.js +42 -0
  71. package/dist/components/ColorPicker/ColorPicker.variants.js.map +1 -0
  72. package/dist/components/ColorPicker/index.d.ts +2 -0
  73. package/dist/components/ColorPicker/index.d.ts.map +1 -0
  74. package/dist/components/ColorPicker/index.js +2 -0
  75. package/dist/components/ColorPicker/index.js.map +1 -0
  76. package/dist/components/DateField/DateField.d.ts +26 -0
  77. package/dist/components/DateField/DateField.d.ts.map +1 -0
  78. package/dist/components/DateField/DateField.js +22 -0
  79. package/dist/components/DateField/DateField.js.map +1 -0
  80. package/dist/components/DateField/DateField.variants.d.ts +8 -0
  81. package/dist/components/DateField/DateField.variants.d.ts.map +1 -0
  82. package/dist/components/DateField/DateField.variants.js +19 -0
  83. package/dist/components/DateField/DateField.variants.js.map +1 -0
  84. package/dist/components/DateField/index.d.ts +2 -0
  85. package/dist/components/DateField/index.d.ts.map +1 -0
  86. package/dist/components/DateField/index.js +2 -0
  87. package/dist/components/DateField/index.js.map +1 -0
  88. package/dist/components/Dialog/Dialog.d.ts +21 -0
  89. package/dist/components/Dialog/Dialog.d.ts.map +1 -0
  90. package/dist/components/Dialog/Dialog.js +21 -0
  91. package/dist/components/Dialog/Dialog.js.map +1 -0
  92. package/dist/components/Dialog/Dialog.variants.d.ts +17 -0
  93. package/dist/components/Dialog/Dialog.variants.d.ts.map +1 -0
  94. package/dist/components/Dialog/Dialog.variants.js +39 -0
  95. package/dist/components/Dialog/Dialog.variants.js.map +1 -0
  96. package/dist/components/Dialog/index.d.ts +2 -0
  97. package/dist/components/Dialog/index.d.ts.map +1 -0
  98. package/dist/components/Dialog/index.js +2 -0
  99. package/dist/components/Dialog/index.js.map +1 -0
  100. package/dist/components/Fieldset/Fieldset.d.ts +17 -0
  101. package/dist/components/Fieldset/Fieldset.d.ts.map +1 -0
  102. package/dist/components/Fieldset/Fieldset.js +7 -0
  103. package/dist/components/Fieldset/Fieldset.js.map +1 -0
  104. package/dist/components/Fieldset/Fieldset.variants.d.ts +8 -0
  105. package/dist/components/Fieldset/Fieldset.variants.d.ts.map +1 -0
  106. package/dist/components/Fieldset/Fieldset.variants.js +23 -0
  107. package/dist/components/Fieldset/Fieldset.variants.js.map +1 -0
  108. package/dist/components/Fieldset/index.d.ts +2 -0
  109. package/dist/components/Fieldset/index.d.ts.map +1 -0
  110. package/dist/components/Fieldset/index.js +2 -0
  111. package/dist/components/Fieldset/index.js.map +1 -0
  112. package/dist/components/FileButton/FileButton.d.ts +20 -0
  113. package/dist/components/FileButton/FileButton.d.ts.map +1 -0
  114. package/dist/components/FileButton/FileButton.js +13 -0
  115. package/dist/components/FileButton/FileButton.js.map +1 -0
  116. package/dist/components/FileButton/FileButton.variants.d.ts +9 -0
  117. package/dist/components/FileButton/FileButton.variants.d.ts.map +1 -0
  118. package/dist/components/FileButton/FileButton.variants.js +8 -0
  119. package/dist/components/FileButton/FileButton.variants.js.map +1 -0
  120. package/dist/components/FileButton/index.d.ts +2 -0
  121. package/dist/components/FileButton/index.d.ts.map +1 -0
  122. package/dist/components/FileButton/index.js +2 -0
  123. package/dist/components/FileButton/index.js.map +1 -0
  124. package/dist/components/Form/Form.d.ts +12 -0
  125. package/dist/components/Form/Form.d.ts.map +1 -0
  126. package/dist/components/Form/Form.js +13 -0
  127. package/dist/components/Form/Form.js.map +1 -0
  128. package/dist/components/Form/Form.variants.d.ts +6 -0
  129. package/dist/components/Form/Form.variants.d.ts.map +1 -0
  130. package/dist/components/Form/Form.variants.js +7 -0
  131. package/dist/components/Form/Form.variants.js.map +1 -0
  132. package/dist/components/Form/index.d.ts +2 -0
  133. package/dist/components/Form/index.d.ts.map +1 -0
  134. package/dist/components/Form/index.js +2 -0
  135. package/dist/components/Form/index.js.map +1 -0
  136. package/dist/components/Grid/Grid.d.ts +10 -0
  137. package/dist/components/Grid/Grid.d.ts.map +1 -0
  138. package/dist/components/Grid/Grid.js +7 -0
  139. package/dist/components/Grid/Grid.js.map +1 -0
  140. package/dist/components/Grid/Grid.variants.d.ts +8 -0
  141. package/dist/components/Grid/Grid.variants.d.ts.map +1 -0
  142. package/dist/components/Grid/Grid.variants.js +16 -0
  143. package/dist/components/Grid/Grid.variants.js.map +1 -0
  144. package/dist/components/Grid/index.d.ts +2 -0
  145. package/dist/components/Grid/index.d.ts.map +1 -0
  146. package/dist/components/Grid/index.js +2 -0
  147. package/dist/components/Grid/index.js.map +1 -0
  148. package/dist/components/Heading/Heading.d.ts +10 -0
  149. package/dist/components/Heading/Heading.d.ts.map +1 -0
  150. package/dist/components/Heading/Heading.js +9 -0
  151. package/dist/components/Heading/Heading.js.map +1 -0
  152. package/dist/components/Heading/Heading.variants.d.ts +14 -0
  153. package/dist/components/Heading/Heading.variants.d.ts.map +1 -0
  154. package/dist/components/Heading/Heading.variants.js +18 -0
  155. package/dist/components/Heading/Heading.variants.js.map +1 -0
  156. package/dist/components/Heading/index.d.ts +2 -0
  157. package/dist/components/Heading/index.d.ts.map +1 -0
  158. package/dist/components/Heading/index.js +2 -0
  159. package/dist/components/Heading/index.js.map +1 -0
  160. package/dist/components/IconButton/IconButton.d.ts +13 -0
  161. package/dist/components/IconButton/IconButton.d.ts.map +1 -0
  162. package/dist/components/IconButton/IconButton.js +9 -0
  163. package/dist/components/IconButton/IconButton.js.map +1 -0
  164. package/dist/components/IconButton/IconButton.variants.d.ts +12 -0
  165. package/dist/components/IconButton/IconButton.variants.d.ts.map +1 -0
  166. package/dist/components/IconButton/IconButton.variants.js +22 -0
  167. package/dist/components/IconButton/IconButton.variants.js.map +1 -0
  168. package/dist/components/IconButton/index.d.ts +2 -0
  169. package/dist/components/IconButton/index.d.ts.map +1 -0
  170. package/dist/components/IconButton/index.js +2 -0
  171. package/dist/components/IconButton/index.js.map +1 -0
  172. package/dist/components/Inline/Inline.d.ts +9 -0
  173. package/dist/components/Inline/Inline.d.ts.map +1 -0
  174. package/dist/components/Inline/Inline.js +7 -0
  175. package/dist/components/Inline/Inline.js.map +1 -0
  176. package/dist/components/Inline/Inline.variants.d.ts +9 -0
  177. package/dist/components/Inline/Inline.variants.d.ts.map +1 -0
  178. package/dist/components/Inline/Inline.variants.js +25 -0
  179. package/dist/components/Inline/Inline.variants.js.map +1 -0
  180. package/dist/components/Inline/index.d.ts +2 -0
  181. package/dist/components/Inline/index.d.ts.map +1 -0
  182. package/dist/components/Inline/index.js +2 -0
  183. package/dist/components/Inline/index.js.map +1 -0
  184. package/dist/components/Link/Link.d.ts +13 -0
  185. package/dist/components/Link/Link.d.ts.map +1 -0
  186. package/dist/components/Link/Link.js +8 -0
  187. package/dist/components/Link/Link.js.map +1 -0
  188. package/dist/components/Link/Link.variants.d.ts +6 -0
  189. package/dist/components/Link/Link.variants.d.ts.map +1 -0
  190. package/dist/components/Link/Link.variants.js +15 -0
  191. package/dist/components/Link/Link.variants.js.map +1 -0
  192. package/dist/components/Link/index.d.ts +2 -0
  193. package/dist/components/Link/index.d.ts.map +1 -0
  194. package/dist/components/Link/index.js +2 -0
  195. package/dist/components/Link/index.js.map +1 -0
  196. package/dist/components/LoadingMark/LoadingMark.d.ts +11 -0
  197. package/dist/components/LoadingMark/LoadingMark.d.ts.map +1 -0
  198. package/dist/components/LoadingMark/LoadingMark.js +17 -0
  199. package/dist/components/LoadingMark/LoadingMark.js.map +1 -0
  200. package/dist/components/LoadingMark/LoadingMark.variants.d.ts +22 -0
  201. package/dist/components/LoadingMark/LoadingMark.variants.d.ts.map +1 -0
  202. package/dist/components/LoadingMark/LoadingMark.variants.js +18 -0
  203. package/dist/components/LoadingMark/LoadingMark.variants.js.map +1 -0
  204. package/dist/components/LoadingMark/index.d.ts +2 -0
  205. package/dist/components/LoadingMark/index.d.ts.map +1 -0
  206. package/dist/components/LoadingMark/index.js +2 -0
  207. package/dist/components/LoadingMark/index.js.map +1 -0
  208. package/dist/components/Logo/Logo.d.ts +16 -0
  209. package/dist/components/Logo/Logo.d.ts.map +1 -0
  210. package/dist/components/Logo/Logo.js +15 -0
  211. package/dist/components/Logo/Logo.js.map +1 -0
  212. package/dist/components/Logo/Logo.variants.d.ts +12 -0
  213. package/dist/components/Logo/Logo.variants.d.ts.map +1 -0
  214. package/dist/components/Logo/Logo.variants.js +24 -0
  215. package/dist/components/Logo/Logo.variants.js.map +1 -0
  216. package/dist/components/Logo/index.d.ts +2 -0
  217. package/dist/components/Logo/index.d.ts.map +1 -0
  218. package/dist/components/Logo/index.js +2 -0
  219. package/dist/components/Logo/index.js.map +1 -0
  220. package/dist/components/Menu/Menu.d.ts +22 -0
  221. package/dist/components/Menu/Menu.d.ts.map +1 -0
  222. package/dist/components/Menu/Menu.js +8 -0
  223. package/dist/components/Menu/Menu.js.map +1 -0
  224. package/dist/components/Menu/Menu.variants.d.ts +10 -0
  225. package/dist/components/Menu/Menu.variants.d.ts.map +1 -0
  226. package/dist/components/Menu/Menu.variants.js +16 -0
  227. package/dist/components/Menu/Menu.variants.js.map +1 -0
  228. package/dist/components/Menu/index.d.ts +2 -0
  229. package/dist/components/Menu/index.d.ts.map +1 -0
  230. package/dist/components/Menu/index.js +2 -0
  231. package/dist/components/Menu/index.js.map +1 -0
  232. package/dist/components/Meter/Meter.d.ts +13 -0
  233. package/dist/components/Meter/Meter.d.ts.map +1 -0
  234. package/dist/components/Meter/Meter.js +8 -0
  235. package/dist/components/Meter/Meter.js.map +1 -0
  236. package/dist/components/Meter/Meter.variants.d.ts +14 -0
  237. package/dist/components/Meter/Meter.variants.d.ts.map +1 -0
  238. package/dist/components/Meter/Meter.variants.js +39 -0
  239. package/dist/components/Meter/Meter.variants.js.map +1 -0
  240. package/dist/components/Meter/index.d.ts +2 -0
  241. package/dist/components/Meter/index.d.ts.map +1 -0
  242. package/dist/components/Meter/index.js +2 -0
  243. package/dist/components/Meter/index.js.map +1 -0
  244. package/dist/components/NumberField/NumberField.d.ts +30 -0
  245. package/dist/components/NumberField/NumberField.d.ts.map +1 -0
  246. package/dist/components/NumberField/NumberField.js +9 -0
  247. package/dist/components/NumberField/NumberField.js.map +1 -0
  248. package/dist/components/NumberField/NumberField.variants.d.ts +7 -0
  249. package/dist/components/NumberField/NumberField.variants.d.ts.map +1 -0
  250. package/dist/components/NumberField/NumberField.variants.js +14 -0
  251. package/dist/components/NumberField/NumberField.variants.js.map +1 -0
  252. package/dist/components/NumberField/index.d.ts +2 -0
  253. package/dist/components/NumberField/index.d.ts.map +1 -0
  254. package/dist/components/NumberField/index.js +2 -0
  255. package/dist/components/NumberField/index.js.map +1 -0
  256. package/dist/components/RichTextEditor/RichTextEditor.d.ts +42 -0
  257. package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +1 -0
  258. package/dist/components/RichTextEditor/RichTextEditor.js +135 -0
  259. package/dist/components/RichTextEditor/RichTextEditor.js.map +1 -0
  260. package/dist/components/RichTextEditor/RichTextEditor.variants.d.ts +23 -0
  261. package/dist/components/RichTextEditor/RichTextEditor.variants.d.ts.map +1 -0
  262. package/dist/components/RichTextEditor/RichTextEditor.variants.js +36 -0
  263. package/dist/components/RichTextEditor/RichTextEditor.variants.js.map +1 -0
  264. package/dist/components/RichTextEditor/index.d.ts +2 -0
  265. package/dist/components/RichTextEditor/index.d.ts.map +1 -0
  266. package/dist/components/RichTextEditor/index.js +2 -0
  267. package/dist/components/RichTextEditor/index.js.map +1 -0
  268. package/dist/components/SearchField/SearchField.d.ts +13 -0
  269. package/dist/components/SearchField/SearchField.d.ts.map +1 -0
  270. package/dist/components/SearchField/SearchField.js +9 -0
  271. package/dist/components/SearchField/SearchField.js.map +1 -0
  272. package/dist/components/SearchField/SearchField.variants.d.ts +7 -0
  273. package/dist/components/SearchField/SearchField.variants.d.ts.map +1 -0
  274. package/dist/components/SearchField/SearchField.variants.js +16 -0
  275. package/dist/components/SearchField/SearchField.variants.js.map +1 -0
  276. package/dist/components/SearchField/index.d.ts +2 -0
  277. package/dist/components/SearchField/index.d.ts.map +1 -0
  278. package/dist/components/SearchField/index.js +2 -0
  279. package/dist/components/SearchField/index.js.map +1 -0
  280. package/dist/components/Segmented/Segmented.d.ts +29 -0
  281. package/dist/components/Segmented/Segmented.d.ts.map +1 -0
  282. package/dist/components/Segmented/Segmented.js +21 -0
  283. package/dist/components/Segmented/Segmented.js.map +1 -0
  284. package/dist/components/Segmented/Segmented.variants.d.ts +16 -0
  285. package/dist/components/Segmented/Segmented.variants.d.ts.map +1 -0
  286. package/dist/components/Segmented/Segmented.variants.js +24 -0
  287. package/dist/components/Segmented/Segmented.variants.js.map +1 -0
  288. package/dist/components/Segmented/index.d.ts +2 -0
  289. package/dist/components/Segmented/index.d.ts.map +1 -0
  290. package/dist/components/Segmented/index.js +2 -0
  291. package/dist/components/Segmented/index.js.map +1 -0
  292. package/dist/components/Select/Select.d.ts +31 -0
  293. package/dist/components/Select/Select.d.ts.map +1 -0
  294. package/dist/components/Select/Select.js +10 -0
  295. package/dist/components/Select/Select.js.map +1 -0
  296. package/dist/components/Select/Select.variants.d.ts +15 -0
  297. package/dist/components/Select/Select.variants.d.ts.map +1 -0
  298. package/dist/components/Select/Select.variants.js +22 -0
  299. package/dist/components/Select/Select.variants.js.map +1 -0
  300. package/dist/components/Select/index.d.ts +2 -0
  301. package/dist/components/Select/index.d.ts.map +1 -0
  302. package/dist/components/Select/index.js +2 -0
  303. package/dist/components/Select/index.js.map +1 -0
  304. package/dist/components/Skeleton/Skeleton.d.ts +14 -0
  305. package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
  306. package/dist/components/Skeleton/Skeleton.js +11 -0
  307. package/dist/components/Skeleton/Skeleton.js.map +1 -0
  308. package/dist/components/Skeleton/Skeleton.variants.d.ts +9 -0
  309. package/dist/components/Skeleton/Skeleton.variants.d.ts.map +1 -0
  310. package/dist/components/Skeleton/Skeleton.variants.js +31 -0
  311. package/dist/components/Skeleton/Skeleton.variants.js.map +1 -0
  312. package/dist/components/Skeleton/index.d.ts +2 -0
  313. package/dist/components/Skeleton/index.d.ts.map +1 -0
  314. package/dist/components/Skeleton/index.js +2 -0
  315. package/dist/components/Skeleton/index.js.map +1 -0
  316. package/dist/components/Spinner/Spinner.d.ts +10 -0
  317. package/dist/components/Spinner/Spinner.d.ts.map +1 -0
  318. package/dist/components/Spinner/Spinner.js +8 -0
  319. package/dist/components/Spinner/Spinner.js.map +1 -0
  320. package/dist/components/Spinner/Spinner.variants.d.ts +13 -0
  321. package/dist/components/Spinner/Spinner.variants.d.ts.map +1 -0
  322. package/dist/components/Spinner/Spinner.variants.js +15 -0
  323. package/dist/components/Spinner/Spinner.variants.js.map +1 -0
  324. package/dist/components/Spinner/index.d.ts +2 -0
  325. package/dist/components/Spinner/index.d.ts.map +1 -0
  326. package/dist/components/Spinner/index.js +2 -0
  327. package/dist/components/Spinner/index.js.map +1 -0
  328. package/dist/components/Spotlight/Spotlight.d.ts +16 -0
  329. package/dist/components/Spotlight/Spotlight.d.ts.map +1 -0
  330. package/dist/components/Spotlight/Spotlight.js +28 -0
  331. package/dist/components/Spotlight/Spotlight.js.map +1 -0
  332. package/dist/components/Spotlight/Spotlight.variants.d.ts +8 -0
  333. package/dist/components/Spotlight/Spotlight.variants.d.ts.map +1 -0
  334. package/dist/components/Spotlight/Spotlight.variants.js +15 -0
  335. package/dist/components/Spotlight/Spotlight.variants.js.map +1 -0
  336. package/dist/components/Spotlight/index.d.ts +2 -0
  337. package/dist/components/Spotlight/index.d.ts.map +1 -0
  338. package/dist/components/Spotlight/index.js +2 -0
  339. package/dist/components/Spotlight/index.js.map +1 -0
  340. package/dist/components/Stack/Stack.d.ts +10 -0
  341. package/dist/components/Stack/Stack.d.ts.map +1 -0
  342. package/dist/components/Stack/Stack.js +7 -0
  343. package/dist/components/Stack/Stack.js.map +1 -0
  344. package/dist/components/Stack/Stack.variants.d.ts +8 -0
  345. package/dist/components/Stack/Stack.variants.d.ts.map +1 -0
  346. package/dist/components/Stack/Stack.variants.js +18 -0
  347. package/dist/components/Stack/Stack.variants.js.map +1 -0
  348. package/dist/components/Stack/index.d.ts +2 -0
  349. package/dist/components/Stack/index.d.ts.map +1 -0
  350. package/dist/components/Stack/index.js +2 -0
  351. package/dist/components/Stack/index.js.map +1 -0
  352. package/dist/components/Stat/Stat.d.ts +11 -0
  353. package/dist/components/Stat/Stat.d.ts.map +1 -0
  354. package/dist/components/Stat/Stat.js +7 -0
  355. package/dist/components/Stat/Stat.js.map +1 -0
  356. package/dist/components/Stat/Stat.variants.d.ts +5 -0
  357. package/dist/components/Stat/Stat.variants.d.ts.map +1 -0
  358. package/dist/components/Stat/Stat.variants.js +5 -0
  359. package/dist/components/Stat/Stat.variants.js.map +1 -0
  360. package/dist/components/Stat/index.d.ts +2 -0
  361. package/dist/components/Stat/index.d.ts.map +1 -0
  362. package/dist/components/Stat/index.js +2 -0
  363. package/dist/components/Stat/index.js.map +1 -0
  364. package/dist/components/Switch/Switch.d.ts +14 -0
  365. package/dist/components/Switch/Switch.d.ts.map +1 -0
  366. package/dist/components/Switch/Switch.js +8 -0
  367. package/dist/components/Switch/Switch.js.map +1 -0
  368. package/dist/components/Switch/Switch.variants.d.ts +5 -0
  369. package/dist/components/Switch/Switch.variants.d.ts.map +1 -0
  370. package/dist/components/Switch/Switch.variants.js +11 -0
  371. package/dist/components/Switch/Switch.variants.js.map +1 -0
  372. package/dist/components/Switch/index.d.ts +2 -0
  373. package/dist/components/Switch/index.d.ts.map +1 -0
  374. package/dist/components/Switch/index.js +2 -0
  375. package/dist/components/Switch/index.js.map +1 -0
  376. package/dist/components/Table/Table.d.ts +42 -0
  377. package/dist/components/Table/Table.d.ts.map +1 -0
  378. package/dist/components/Table/Table.js +14 -0
  379. package/dist/components/Table/Table.js.map +1 -0
  380. package/dist/components/Table/Table.variants.d.ts +21 -0
  381. package/dist/components/Table/Table.variants.d.ts.map +1 -0
  382. package/dist/components/Table/Table.variants.js +31 -0
  383. package/dist/components/Table/Table.variants.js.map +1 -0
  384. package/dist/components/Table/index.d.ts +2 -0
  385. package/dist/components/Table/index.d.ts.map +1 -0
  386. package/dist/components/Table/index.js +2 -0
  387. package/dist/components/Table/index.js.map +1 -0
  388. package/dist/components/Tabs/Tabs.d.ts +19 -0
  389. package/dist/components/Tabs/Tabs.d.ts.map +1 -0
  390. package/dist/components/Tabs/Tabs.js +8 -0
  391. package/dist/components/Tabs/Tabs.js.map +1 -0
  392. package/dist/components/Tabs/Tabs.variants.d.ts +5 -0
  393. package/dist/components/Tabs/Tabs.variants.d.ts.map +1 -0
  394. package/dist/components/Tabs/Tabs.variants.js +11 -0
  395. package/dist/components/Tabs/Tabs.variants.js.map +1 -0
  396. package/dist/components/Tabs/index.d.ts +2 -0
  397. package/dist/components/Tabs/index.d.ts.map +1 -0
  398. package/dist/components/Tabs/index.js +2 -0
  399. package/dist/components/Tabs/index.js.map +1 -0
  400. package/dist/components/Tag/Tag.d.ts +11 -0
  401. package/dist/components/Tag/Tag.d.ts.map +1 -0
  402. package/dist/components/Tag/Tag.js +7 -0
  403. package/dist/components/Tag/Tag.js.map +1 -0
  404. package/dist/components/Tag/Tag.variants.d.ts +6 -0
  405. package/dist/components/Tag/Tag.variants.d.ts.map +1 -0
  406. package/dist/components/Tag/Tag.variants.js +14 -0
  407. package/dist/components/Tag/Tag.variants.js.map +1 -0
  408. package/dist/components/Tag/index.d.ts +2 -0
  409. package/dist/components/Tag/index.d.ts.map +1 -0
  410. package/dist/components/Tag/index.js +2 -0
  411. package/dist/components/Tag/index.js.map +1 -0
  412. package/dist/components/Text/Text.d.ts +10 -0
  413. package/dist/components/Text/Text.d.ts.map +1 -0
  414. package/dist/components/Text/Text.js +7 -0
  415. package/dist/components/Text/Text.js.map +1 -0
  416. package/dist/components/Text/Text.variants.d.ts +10 -0
  417. package/dist/components/Text/Text.variants.d.ts.map +1 -0
  418. package/dist/components/Text/Text.variants.js +31 -0
  419. package/dist/components/Text/Text.variants.js.map +1 -0
  420. package/dist/components/Text/index.d.ts +2 -0
  421. package/dist/components/Text/index.d.ts.map +1 -0
  422. package/dist/components/Text/index.js +2 -0
  423. package/dist/components/Text/index.js.map +1 -0
  424. package/dist/components/TextArea/TextArea.d.ts +27 -0
  425. package/dist/components/TextArea/TextArea.d.ts.map +1 -0
  426. package/dist/components/TextArea/TextArea.js +9 -0
  427. package/dist/components/TextArea/TextArea.js.map +1 -0
  428. package/dist/components/TextArea/TextArea.variants.d.ts +9 -0
  429. package/dist/components/TextArea/TextArea.variants.d.ts.map +1 -0
  430. package/dist/components/TextArea/TextArea.variants.js +15 -0
  431. package/dist/components/TextArea/TextArea.variants.js.map +1 -0
  432. package/dist/components/TextArea/index.d.ts +2 -0
  433. package/dist/components/TextArea/index.d.ts.map +1 -0
  434. package/dist/components/TextArea/index.js +2 -0
  435. package/dist/components/TextArea/index.js.map +1 -0
  436. package/dist/components/TextField/TextField.d.ts +29 -0
  437. package/dist/components/TextField/TextField.d.ts.map +1 -0
  438. package/dist/components/TextField/TextField.js +9 -0
  439. package/dist/components/TextField/TextField.js.map +1 -0
  440. package/dist/components/TextField/TextField.variants.d.ts +7 -0
  441. package/dist/components/TextField/TextField.variants.d.ts.map +1 -0
  442. package/dist/components/TextField/TextField.variants.js +14 -0
  443. package/dist/components/TextField/TextField.variants.js.map +1 -0
  444. package/dist/components/TextField/index.d.ts +2 -0
  445. package/dist/components/TextField/index.d.ts.map +1 -0
  446. package/dist/components/TextField/index.js +2 -0
  447. package/dist/components/TextField/index.js.map +1 -0
  448. package/dist/components/Thumbnail/Thumbnail.d.ts +11 -0
  449. package/dist/components/Thumbnail/Thumbnail.d.ts.map +1 -0
  450. package/dist/components/Thumbnail/Thumbnail.js +14 -0
  451. package/dist/components/Thumbnail/Thumbnail.js.map +1 -0
  452. package/dist/components/Thumbnail/Thumbnail.variants.d.ts +12 -0
  453. package/dist/components/Thumbnail/Thumbnail.variants.d.ts.map +1 -0
  454. package/dist/components/Thumbnail/Thumbnail.variants.js +22 -0
  455. package/dist/components/Thumbnail/Thumbnail.variants.js.map +1 -0
  456. package/dist/components/Thumbnail/index.d.ts +2 -0
  457. package/dist/components/Thumbnail/index.d.ts.map +1 -0
  458. package/dist/components/Thumbnail/index.js +2 -0
  459. package/dist/components/Thumbnail/index.js.map +1 -0
  460. package/dist/components/Toast/Toast.d.ts +22 -0
  461. package/dist/components/Toast/Toast.d.ts.map +1 -0
  462. package/dist/components/Toast/Toast.js +29 -0
  463. package/dist/components/Toast/Toast.js.map +1 -0
  464. package/dist/components/Toast/Toast.variants.d.ts +19 -0
  465. package/dist/components/Toast/Toast.variants.d.ts.map +1 -0
  466. package/dist/components/Toast/Toast.variants.js +31 -0
  467. package/dist/components/Toast/Toast.variants.js.map +1 -0
  468. package/dist/components/Toast/index.d.ts +2 -0
  469. package/dist/components/Toast/index.d.ts.map +1 -0
  470. package/dist/components/Toast/index.js +2 -0
  471. package/dist/components/Toast/index.js.map +1 -0
  472. package/dist/components/Tooltip/Tooltip.d.ts +11 -0
  473. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
  474. package/dist/components/Tooltip/Tooltip.js +8 -0
  475. package/dist/components/Tooltip/Tooltip.js.map +1 -0
  476. package/dist/components/Tooltip/Tooltip.variants.d.ts +6 -0
  477. package/dist/components/Tooltip/Tooltip.variants.d.ts.map +1 -0
  478. package/dist/components/Tooltip/Tooltip.variants.js +6 -0
  479. package/dist/components/Tooltip/Tooltip.variants.js.map +1 -0
  480. package/dist/components/Tooltip/index.d.ts +2 -0
  481. package/dist/components/Tooltip/index.d.ts.map +1 -0
  482. package/dist/components/Tooltip/index.js +2 -0
  483. package/dist/components/Tooltip/index.js.map +1 -0
  484. package/dist/components/field.d.ts +19 -0
  485. package/dist/components/field.d.ts.map +1 -0
  486. package/dist/components/field.js +30 -0
  487. package/dist/components/field.js.map +1 -0
  488. package/dist/components/index.d.ts +42 -0
  489. package/dist/components/index.d.ts.map +1 -0
  490. package/dist/components/index.js +41 -0
  491. package/dist/components/index.js.map +1 -0
  492. package/dist/components/scales.d.ts +56 -0
  493. package/dist/components/scales.d.ts.map +1 -0
  494. package/dist/components/scales.js +56 -0
  495. package/dist/components/scales.js.map +1 -0
  496. package/dist/index.d.ts +4 -0
  497. package/dist/index.d.ts.map +1 -0
  498. package/dist/index.js +4 -0
  499. package/dist/index.js.map +1 -0
  500. package/dist/navigation.d.ts +12 -0
  501. package/dist/navigation.d.ts.map +1 -0
  502. package/dist/navigation.js +10 -0
  503. package/dist/navigation.js.map +1 -0
  504. package/dist/patterns/AppShell/AppShell.d.ts +72 -0
  505. package/dist/patterns/AppShell/AppShell.d.ts.map +1 -0
  506. package/dist/patterns/AppShell/AppShell.js +49 -0
  507. package/dist/patterns/AppShell/AppShell.js.map +1 -0
  508. package/dist/patterns/AppShell/AppShell.variants.d.ts +87 -0
  509. package/dist/patterns/AppShell/AppShell.variants.d.ts.map +1 -0
  510. package/dist/patterns/AppShell/AppShell.variants.js +146 -0
  511. package/dist/patterns/AppShell/AppShell.variants.js.map +1 -0
  512. package/dist/patterns/AppShell/index.d.ts +2 -0
  513. package/dist/patterns/AppShell/index.d.ts.map +1 -0
  514. package/dist/patterns/AppShell/index.js +2 -0
  515. package/dist/patterns/AppShell/index.js.map +1 -0
  516. package/dist/patterns/AuthShell/AuthShell.d.ts +16 -0
  517. package/dist/patterns/AuthShell/AuthShell.d.ts.map +1 -0
  518. package/dist/patterns/AuthShell/AuthShell.js +9 -0
  519. package/dist/patterns/AuthShell/AuthShell.js.map +1 -0
  520. package/dist/patterns/AuthShell/AuthShell.variants.d.ts +6 -0
  521. package/dist/patterns/AuthShell/AuthShell.variants.d.ts.map +1 -0
  522. package/dist/patterns/AuthShell/AuthShell.variants.js +6 -0
  523. package/dist/patterns/AuthShell/AuthShell.variants.js.map +1 -0
  524. package/dist/patterns/AuthShell/index.d.ts +2 -0
  525. package/dist/patterns/AuthShell/index.d.ts.map +1 -0
  526. package/dist/patterns/AuthShell/index.js +2 -0
  527. package/dist/patterns/AuthShell/index.js.map +1 -0
  528. package/dist/patterns/Board/Board.d.ts +42 -0
  529. package/dist/patterns/Board/Board.d.ts.map +1 -0
  530. package/dist/patterns/Board/Board.js +44 -0
  531. package/dist/patterns/Board/Board.js.map +1 -0
  532. package/dist/patterns/Board/Board.variants.d.ts +28 -0
  533. package/dist/patterns/Board/Board.variants.d.ts.map +1 -0
  534. package/dist/patterns/Board/Board.variants.js +52 -0
  535. package/dist/patterns/Board/Board.variants.js.map +1 -0
  536. package/dist/patterns/Board/index.d.ts +2 -0
  537. package/dist/patterns/Board/index.d.ts.map +1 -0
  538. package/dist/patterns/Board/index.js +2 -0
  539. package/dist/patterns/Board/index.js.map +1 -0
  540. package/dist/patterns/CommandPalette/CommandPalette.d.ts +36 -0
  541. package/dist/patterns/CommandPalette/CommandPalette.d.ts.map +1 -0
  542. package/dist/patterns/CommandPalette/CommandPalette.js +18 -0
  543. package/dist/patterns/CommandPalette/CommandPalette.js.map +1 -0
  544. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts +18 -0
  545. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts.map +1 -0
  546. package/dist/patterns/CommandPalette/CommandPalette.variants.js +21 -0
  547. package/dist/patterns/CommandPalette/CommandPalette.variants.js.map +1 -0
  548. package/dist/patterns/CommandPalette/index.d.ts +2 -0
  549. package/dist/patterns/CommandPalette/index.d.ts.map +1 -0
  550. package/dist/patterns/CommandPalette/index.js +2 -0
  551. package/dist/patterns/CommandPalette/index.js.map +1 -0
  552. package/dist/patterns/ConfirmDialog/ConfirmDialog.d.ts +20 -0
  553. package/dist/patterns/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
  554. package/dist/patterns/ConfirmDialog/ConfirmDialog.js +9 -0
  555. package/dist/patterns/ConfirmDialog/ConfirmDialog.js.map +1 -0
  556. package/dist/patterns/ConfirmDialog/ConfirmDialog.variants.d.ts +6 -0
  557. package/dist/patterns/ConfirmDialog/ConfirmDialog.variants.d.ts.map +1 -0
  558. package/dist/patterns/ConfirmDialog/ConfirmDialog.variants.js +3 -0
  559. package/dist/patterns/ConfirmDialog/ConfirmDialog.variants.js.map +1 -0
  560. package/dist/patterns/ConfirmDialog/index.d.ts +2 -0
  561. package/dist/patterns/ConfirmDialog/index.d.ts.map +1 -0
  562. package/dist/patterns/ConfirmDialog/index.js +2 -0
  563. package/dist/patterns/ConfirmDialog/index.js.map +1 -0
  564. package/dist/patterns/EmptyState/EmptyState.d.ts +16 -0
  565. package/dist/patterns/EmptyState/EmptyState.d.ts.map +1 -0
  566. package/dist/patterns/EmptyState/EmptyState.js +9 -0
  567. package/dist/patterns/EmptyState/EmptyState.js.map +1 -0
  568. package/dist/patterns/EmptyState/EmptyState.variants.d.ts +6 -0
  569. package/dist/patterns/EmptyState/EmptyState.variants.d.ts.map +1 -0
  570. package/dist/patterns/EmptyState/EmptyState.variants.js +6 -0
  571. package/dist/patterns/EmptyState/EmptyState.variants.js.map +1 -0
  572. package/dist/patterns/EmptyState/index.d.ts +2 -0
  573. package/dist/patterns/EmptyState/index.d.ts.map +1 -0
  574. package/dist/patterns/EmptyState/index.js +2 -0
  575. package/dist/patterns/EmptyState/index.js.map +1 -0
  576. package/dist/patterns/ImagePicker/ImagePicker.d.ts +55 -0
  577. package/dist/patterns/ImagePicker/ImagePicker.d.ts.map +1 -0
  578. package/dist/patterns/ImagePicker/ImagePicker.js +43 -0
  579. package/dist/patterns/ImagePicker/ImagePicker.js.map +1 -0
  580. package/dist/patterns/ImagePicker/ImagePicker.variants.d.ts +24 -0
  581. package/dist/patterns/ImagePicker/ImagePicker.variants.d.ts.map +1 -0
  582. package/dist/patterns/ImagePicker/ImagePicker.variants.js +32 -0
  583. package/dist/patterns/ImagePicker/ImagePicker.variants.js.map +1 -0
  584. package/dist/patterns/ImagePicker/index.d.ts +2 -0
  585. package/dist/patterns/ImagePicker/index.d.ts.map +1 -0
  586. package/dist/patterns/ImagePicker/index.js +2 -0
  587. package/dist/patterns/ImagePicker/index.js.map +1 -0
  588. package/dist/patterns/MediaGrid/MediaGrid.d.ts +22 -0
  589. package/dist/patterns/MediaGrid/MediaGrid.d.ts.map +1 -0
  590. package/dist/patterns/MediaGrid/MediaGrid.js +8 -0
  591. package/dist/patterns/MediaGrid/MediaGrid.js.map +1 -0
  592. package/dist/patterns/MediaGrid/MediaGrid.variants.d.ts +9 -0
  593. package/dist/patterns/MediaGrid/MediaGrid.variants.d.ts.map +1 -0
  594. package/dist/patterns/MediaGrid/MediaGrid.variants.js +13 -0
  595. package/dist/patterns/MediaGrid/MediaGrid.variants.js.map +1 -0
  596. package/dist/patterns/MediaGrid/index.d.ts +2 -0
  597. package/dist/patterns/MediaGrid/index.d.ts.map +1 -0
  598. package/dist/patterns/MediaGrid/index.js +2 -0
  599. package/dist/patterns/MediaGrid/index.js.map +1 -0
  600. package/dist/patterns/OptionPicker/OptionPicker.d.ts +33 -0
  601. package/dist/patterns/OptionPicker/OptionPicker.d.ts.map +1 -0
  602. package/dist/patterns/OptionPicker/OptionPicker.js +18 -0
  603. package/dist/patterns/OptionPicker/OptionPicker.js.map +1 -0
  604. package/dist/patterns/OptionPicker/OptionPicker.variants.d.ts +18 -0
  605. package/dist/patterns/OptionPicker/OptionPicker.variants.d.ts.map +1 -0
  606. package/dist/patterns/OptionPicker/OptionPicker.variants.js +40 -0
  607. package/dist/patterns/OptionPicker/OptionPicker.variants.js.map +1 -0
  608. package/dist/patterns/OptionPicker/index.d.ts +2 -0
  609. package/dist/patterns/OptionPicker/index.d.ts.map +1 -0
  610. package/dist/patterns/OptionPicker/index.js +2 -0
  611. package/dist/patterns/OptionPicker/index.js.map +1 -0
  612. package/dist/patterns/Outline/Outline.d.ts +26 -0
  613. package/dist/patterns/Outline/Outline.d.ts.map +1 -0
  614. package/dist/patterns/Outline/Outline.js +21 -0
  615. package/dist/patterns/Outline/Outline.js.map +1 -0
  616. package/dist/patterns/Outline/Outline.variants.d.ts +11 -0
  617. package/dist/patterns/Outline/Outline.variants.d.ts.map +1 -0
  618. package/dist/patterns/Outline/Outline.variants.js +21 -0
  619. package/dist/patterns/Outline/Outline.variants.js.map +1 -0
  620. package/dist/patterns/Outline/index.d.ts +2 -0
  621. package/dist/patterns/Outline/index.d.ts.map +1 -0
  622. package/dist/patterns/Outline/index.js +2 -0
  623. package/dist/patterns/Outline/index.js.map +1 -0
  624. package/dist/patterns/PageHeader/PageHeader.d.ts +41 -0
  625. package/dist/patterns/PageHeader/PageHeader.d.ts.map +1 -0
  626. package/dist/patterns/PageHeader/PageHeader.js +35 -0
  627. package/dist/patterns/PageHeader/PageHeader.js.map +1 -0
  628. package/dist/patterns/PageHeader/PageHeader.variants.d.ts +24 -0
  629. package/dist/patterns/PageHeader/PageHeader.variants.d.ts.map +1 -0
  630. package/dist/patterns/PageHeader/PageHeader.variants.js +34 -0
  631. package/dist/patterns/PageHeader/PageHeader.variants.js.map +1 -0
  632. package/dist/patterns/PageHeader/index.d.ts +2 -0
  633. package/dist/patterns/PageHeader/index.d.ts.map +1 -0
  634. package/dist/patterns/PageHeader/index.js +2 -0
  635. package/dist/patterns/PageHeader/index.js.map +1 -0
  636. package/dist/patterns/PagePreview/PagePreview.d.ts +163 -0
  637. package/dist/patterns/PagePreview/PagePreview.d.ts.map +1 -0
  638. package/dist/patterns/PagePreview/PagePreview.js +206 -0
  639. package/dist/patterns/PagePreview/PagePreview.js.map +1 -0
  640. package/dist/patterns/PagePreview/PagePreview.variants.d.ts +25 -0
  641. package/dist/patterns/PagePreview/PagePreview.variants.d.ts.map +1 -0
  642. package/dist/patterns/PagePreview/PagePreview.variants.js +34 -0
  643. package/dist/patterns/PagePreview/PagePreview.variants.js.map +1 -0
  644. package/dist/patterns/PagePreview/index.d.ts +2 -0
  645. package/dist/patterns/PagePreview/index.d.ts.map +1 -0
  646. package/dist/patterns/PagePreview/index.js +2 -0
  647. package/dist/patterns/PagePreview/index.js.map +1 -0
  648. package/dist/patterns/Repeater/Repeater.d.ts +34 -0
  649. package/dist/patterns/Repeater/Repeater.d.ts.map +1 -0
  650. package/dist/patterns/Repeater/Repeater.js +12 -0
  651. package/dist/patterns/Repeater/Repeater.js.map +1 -0
  652. package/dist/patterns/Repeater/Repeater.variants.d.ts +12 -0
  653. package/dist/patterns/Repeater/Repeater.variants.d.ts.map +1 -0
  654. package/dist/patterns/Repeater/Repeater.variants.js +13 -0
  655. package/dist/patterns/Repeater/Repeater.variants.js.map +1 -0
  656. package/dist/patterns/Repeater/index.d.ts +2 -0
  657. package/dist/patterns/Repeater/index.d.ts.map +1 -0
  658. package/dist/patterns/Repeater/index.js +2 -0
  659. package/dist/patterns/Repeater/index.js.map +1 -0
  660. package/dist/patterns/SaveBar/SaveBar.d.ts +37 -0
  661. package/dist/patterns/SaveBar/SaveBar.d.ts.map +1 -0
  662. package/dist/patterns/SaveBar/SaveBar.js +27 -0
  663. package/dist/patterns/SaveBar/SaveBar.js.map +1 -0
  664. package/dist/patterns/SaveBar/SaveBar.variants.d.ts +31 -0
  665. package/dist/patterns/SaveBar/SaveBar.variants.d.ts.map +1 -0
  666. package/dist/patterns/SaveBar/SaveBar.variants.js +46 -0
  667. package/dist/patterns/SaveBar/SaveBar.variants.js.map +1 -0
  668. package/dist/patterns/SaveBar/index.d.ts +2 -0
  669. package/dist/patterns/SaveBar/index.d.ts.map +1 -0
  670. package/dist/patterns/SaveBar/index.js +2 -0
  671. package/dist/patterns/SaveBar/index.js.map +1 -0
  672. package/dist/patterns/SectionList/SectionList.d.ts +53 -0
  673. package/dist/patterns/SectionList/SectionList.d.ts.map +1 -0
  674. package/dist/patterns/SectionList/SectionList.js +59 -0
  675. package/dist/patterns/SectionList/SectionList.js.map +1 -0
  676. package/dist/patterns/SectionList/SectionList.variants.d.ts +37 -0
  677. package/dist/patterns/SectionList/SectionList.variants.d.ts.map +1 -0
  678. package/dist/patterns/SectionList/SectionList.variants.js +67 -0
  679. package/dist/patterns/SectionList/SectionList.variants.js.map +1 -0
  680. package/dist/patterns/SectionList/index.d.ts +2 -0
  681. package/dist/patterns/SectionList/index.d.ts.map +1 -0
  682. package/dist/patterns/SectionList/index.js +2 -0
  683. package/dist/patterns/SectionList/index.js.map +1 -0
  684. package/dist/patterns/SiteWindow/SiteWindow.d.ts +20 -0
  685. package/dist/patterns/SiteWindow/SiteWindow.d.ts.map +1 -0
  686. package/dist/patterns/SiteWindow/SiteWindow.js +8 -0
  687. package/dist/patterns/SiteWindow/SiteWindow.js.map +1 -0
  688. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts +24 -0
  689. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts.map +1 -0
  690. package/dist/patterns/SiteWindow/SiteWindow.variants.js +25 -0
  691. package/dist/patterns/SiteWindow/SiteWindow.variants.js.map +1 -0
  692. package/dist/patterns/SiteWindow/index.d.ts +2 -0
  693. package/dist/patterns/SiteWindow/index.d.ts.map +1 -0
  694. package/dist/patterns/SiteWindow/index.js +2 -0
  695. package/dist/patterns/SiteWindow/index.js.map +1 -0
  696. package/dist/patterns/Split/Split.d.ts +12 -0
  697. package/dist/patterns/Split/Split.d.ts.map +1 -0
  698. package/dist/patterns/Split/Split.js +7 -0
  699. package/dist/patterns/Split/Split.js.map +1 -0
  700. package/dist/patterns/Split/Split.variants.d.ts +6 -0
  701. package/dist/patterns/Split/Split.variants.d.ts.map +1 -0
  702. package/dist/patterns/Split/Split.variants.js +6 -0
  703. package/dist/patterns/Split/Split.variants.js.map +1 -0
  704. package/dist/patterns/Split/index.d.ts +2 -0
  705. package/dist/patterns/Split/index.d.ts.map +1 -0
  706. package/dist/patterns/Split/index.js +2 -0
  707. package/dist/patterns/Split/index.js.map +1 -0
  708. package/dist/patterns/Welcome/Welcome.d.ts +18 -0
  709. package/dist/patterns/Welcome/Welcome.d.ts.map +1 -0
  710. package/dist/patterns/Welcome/Welcome.js +20 -0
  711. package/dist/patterns/Welcome/Welcome.js.map +1 -0
  712. package/dist/patterns/Welcome/Welcome.variants.d.ts +12 -0
  713. package/dist/patterns/Welcome/Welcome.variants.d.ts.map +1 -0
  714. package/dist/patterns/Welcome/Welcome.variants.js +12 -0
  715. package/dist/patterns/Welcome/Welcome.variants.js.map +1 -0
  716. package/dist/patterns/Welcome/index.d.ts +2 -0
  717. package/dist/patterns/Welcome/index.d.ts.map +1 -0
  718. package/dist/patterns/Welcome/index.js +2 -0
  719. package/dist/patterns/Welcome/index.js.map +1 -0
  720. package/dist/patterns/Workbench/Workbench.d.ts +43 -0
  721. package/dist/patterns/Workbench/Workbench.d.ts.map +1 -0
  722. package/dist/patterns/Workbench/Workbench.js +62 -0
  723. package/dist/patterns/Workbench/Workbench.js.map +1 -0
  724. package/dist/patterns/Workbench/Workbench.variants.d.ts +58 -0
  725. package/dist/patterns/Workbench/Workbench.variants.d.ts.map +1 -0
  726. package/dist/patterns/Workbench/Workbench.variants.js +113 -0
  727. package/dist/patterns/Workbench/Workbench.variants.js.map +1 -0
  728. package/dist/patterns/Workbench/index.d.ts +2 -0
  729. package/dist/patterns/Workbench/index.d.ts.map +1 -0
  730. package/dist/patterns/Workbench/index.js +2 -0
  731. package/dist/patterns/Workbench/index.js.map +1 -0
  732. package/dist/patterns/index.d.ts +20 -0
  733. package/dist/patterns/index.d.ts.map +1 -0
  734. package/dist/patterns/index.js +20 -0
  735. package/dist/patterns/index.js.map +1 -0
  736. package/dist/patterns/page-bar.d.ts +17 -0
  737. package/dist/patterns/page-bar.d.ts.map +1 -0
  738. package/dist/patterns/page-bar.js +22 -0
  739. package/dist/patterns/page-bar.js.map +1 -0
  740. package/dist/testing/accessible.d.ts +8 -0
  741. package/dist/testing/accessible.d.ts.map +1 -0
  742. package/dist/testing/accessible.js +17 -0
  743. package/dist/testing/accessible.js.map +1 -0
  744. package/dist/testing/setup.d.ts +2 -0
  745. package/dist/testing/setup.d.ts.map +1 -0
  746. package/dist/testing/setup.js +10 -0
  747. package/dist/testing/setup.js.map +1 -0
  748. package/package.json +82 -3
  749. package/src/styles.css +551 -0
  750. package/src/tokens/tokens.css +284 -0
@@ -0,0 +1,12 @@
1
+ export declare const repeaterClass = "flex min-w-0 flex-col gap-2";
2
+ export declare const repeaterLabelClass = "text-sm font-medium text-foreground";
3
+ export declare const repeaterDescriptionClass = "text-sm text-foreground-muted";
4
+ export declare const repeaterErrorClass = "motion-rise text-sm text-destructive";
5
+ export declare const repeaterListClass = "flex flex-col gap-2";
6
+ export declare const repeaterItemClass = "flex items-start gap-1";
7
+ export declare const repeaterItemContentClass = "min-w-0 flex-1";
8
+ /** As tall as one line of a field, so the buttons sit beside a row's first line. */
9
+ export declare const repeaterItemActionsClass = "flex h-10 shrink-0 items-center";
10
+ export declare const repeaterEmptyClass = "rounded-md border border-dashed border-border px-3 py-4 text-sm text-foreground-muted";
11
+ export declare const repeaterAddClass = "flex";
12
+ //# sourceMappingURL=Repeater.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Repeater.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/Repeater/Repeater.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gCAAgC,CAAC;AAC3D,eAAO,MAAM,kBAAkB,wCAAkB,CAAC;AAClD,eAAO,MAAM,wBAAwB,kCAAwB,CAAC;AAC9D,eAAO,MAAM,kBAAkB,yCAAkB,CAAC;AAClD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,2BAA2B,CAAC;AAC1D,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AACzD,oFAAoF;AACpF,eAAO,MAAM,wBAAwB,oCAAoC,CAAC;AAC1E,eAAO,MAAM,kBAAkB,0FAA0F,CAAC;AAC1H,eAAO,MAAM,gBAAgB,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass } from '../../components/field.js';
2
+ export const repeaterClass = 'flex min-w-0 flex-col gap-2';
3
+ export const repeaterLabelClass = fieldLabelClass;
4
+ export const repeaterDescriptionClass = fieldDescriptionClass;
5
+ export const repeaterErrorClass = fieldErrorClass;
6
+ export const repeaterListClass = 'flex flex-col gap-2';
7
+ export const repeaterItemClass = 'flex items-start gap-1';
8
+ export const repeaterItemContentClass = 'min-w-0 flex-1';
9
+ /** As tall as one line of a field, so the buttons sit beside a row's first line. */
10
+ export const repeaterItemActionsClass = 'flex h-10 shrink-0 items-center';
11
+ export const repeaterEmptyClass = 'rounded-md border border-dashed border-border px-3 py-4 text-sm text-foreground-muted';
12
+ export const repeaterAddClass = 'flex';
13
+ //# sourceMappingURL=Repeater.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Repeater.variants.js","sourceRoot":"","sources":["../../../src/patterns/Repeater/Repeater.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEpG,MAAM,CAAC,MAAM,aAAa,GAAG,6BAA6B,CAAC;AAC3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAClD,MAAM,CAAC,MAAM,wBAAwB,GAAG,qBAAqB,CAAC;AAC9D,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AACvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,wBAAwB,CAAC;AAC1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAgB,CAAC;AACzD,oFAAoF;AACpF,MAAM,CAAC,MAAM,wBAAwB,GAAG,iCAAiC,CAAC;AAC1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,uFAAuF,CAAC;AAC1H,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Repeater, type RepeaterItem, type RepeaterProps } from './Repeater.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/Repeater/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Repeater } from './Repeater.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/Repeater/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAyC,MAAM,eAAe,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { type ReactNode } from 'react';
2
+ export interface SaveBarBack {
3
+ /** Where it goes. Left out, `onPress` says what going back does. */
4
+ readonly href?: string;
5
+ /** What going back does, where it is not another address: closing a view that took the window. */
6
+ readonly onPress?: () => void;
7
+ /** Where it goes, such as "Listings". */
8
+ readonly label: string;
9
+ }
10
+ export interface SaveBarProps {
11
+ /** Names the bar for screen readers, such as "Save and publish". */
12
+ readonly label: string;
13
+ /** The way back to the list this was opened from. */
14
+ readonly back?: SaveBarBack;
15
+ /** What is being edited. It becomes the page's level 1 heading. */
16
+ readonly title?: string;
17
+ /** Where the entry stands, such as a `Tag` saying Draft. Beside the title, on its one row. */
18
+ readonly status: ReactNode;
19
+ /**
20
+ * A few words more about it, such as "Saved 2 minutes ago", after the status. Shown from `lg` up, where the
21
+ * row has room for them; read out on every window, with the status.
22
+ */
23
+ readonly note?: ReactNode;
24
+ /** The buttons, main action last. */
25
+ readonly actions: ReactNode;
26
+ /** In the middle of the bar, from `md` up: controls for what is shown, such as the widths of a page. */
27
+ readonly center?: ReactNode;
28
+ /**
29
+ * `screen` for the bar of an editing screen, drawn in the shell's bar inside `AppShell`. `section` for a
30
+ * form inside a screen that has its own header, where it stays at the top of that part. `window` for a
31
+ * bar across a whole window.
32
+ */
33
+ readonly across?: 'screen' | 'section' | 'window';
34
+ }
35
+ /** The bar that stays at the top of an editing screen: the way back, what is being edited, its state and its save buttons. */
36
+ export declare function SaveBar({ label, back, title, status, note, actions, center, across }: SaveBarProps): import("react").JSX.Element | null;
37
+ //# sourceMappingURL=SaveBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveBar.d.ts","sourceRoot":"","sources":["../../../src/patterns/SaveBar/SaveBar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBlD,MAAM,WAAW,WAAW;IAC1B,oEAAoE;IACpE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,kGAAkG;IAClG,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,yCAAyC;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,oEAAoE;IACpE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,8FAA8F;IAC9F,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B,qCAAqC;IACrC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,wGAAwG;IACxG,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;CACnD;AAED,8HAA8H;AAC9H,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAiB,EAAE,EAAE,YAAY,sCAuC7G"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ChevronLeft } from 'lucide-react';
3
+ import { useEffect } from 'react';
4
+ import { createPortal } from 'react-dom';
5
+ import { Button, Link } from 'react-aria-components';
6
+ import { saveBarActionsClass, saveBarBackClass, saveBarBackLabelClass, saveBarBackIconSize, saveBarCenterClass, saveBarHeadingVariants, saveBarNoteClass, saveBarStatusClass, saveBarTitleClass, saveBarVariants, } from './SaveBar.variants.js';
7
+ import { usePageBar, usePageBarBack } from '../page-bar.js';
8
+ /** The bar that stays at the top of an editing screen: the way back, what is being edited, its state and its save buttons. */
9
+ export function SaveBar({ label, back, title, status, note, actions, center, across = 'screen' }) {
10
+ const shellBar = usePageBar();
11
+ const inShell = across === 'screen' && shellBar !== undefined;
12
+ // A bar that leads back has the way back where a phone shows the menu: the shell leaves its menu and search out there.
13
+ const leadsBack = usePageBarBack();
14
+ const isLeadingBack = inShell && back !== undefined;
15
+ useEffect(() => {
16
+ if (!isLeadingBack || leadsBack === undefined)
17
+ return;
18
+ leadsBack(true);
19
+ return () => leadsBack(false);
20
+ }, [isLeadingBack, leadsBack]);
21
+ // The shell is still drawing its bar: this one comes once there is a place for it.
22
+ if (inShell && shellBar === null)
23
+ return null;
24
+ const bar = (_jsxs("div", { role: "region", "aria-label": label, className: saveBarVariants({ across: inShell ? 'shell' : across }), children: [back?.href !== undefined && (_jsxs(Link, { href: back.href, className: saveBarBackClass, children: [_jsx(ChevronLeft, { "aria-hidden": true, size: saveBarBackIconSize }), _jsx("span", { className: saveBarBackLabelClass, children: back.label })] })), back !== undefined && back.href === undefined && (_jsxs(Button, { className: saveBarBackClass, ...(back.onPress && { onPress: back.onPress }), children: [_jsx(ChevronLeft, { "aria-hidden": true, size: saveBarBackIconSize }), _jsx("span", { className: saveBarBackLabelClass, children: back.label })] })), _jsxs("div", { className: saveBarHeadingVariants({ hasCenter: center !== undefined }), children: [title !== undefined && _jsx("h1", { className: saveBarTitleClass, children: title }), _jsxs("div", { className: saveBarStatusClass, "aria-live": "polite", children: [status, note !== undefined && _jsx("span", { className: saveBarNoteClass, children: note })] })] }), center !== undefined && _jsx("div", { className: saveBarCenterClass, children: center }), _jsx("div", { className: saveBarActionsClass, children: actions })] }));
25
+ return inShell && shellBar ? createPortal(bar, shellBar) : bar;
26
+ }
27
+ //# sourceMappingURL=SaveBar.js.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,GAAO,IAChD,CACP,CAAC;IACF,OAAO,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AACjE,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * On a screen the bar stays at the top of the screen. Inside `AppShell` it is drawn in the shell's own
3
+ * bar, which already stays. Across a whole window it is the window's top edge.
4
+ * In the shell's bar and across a window it is one row, as on any phone: the way back, the title cut to fit,
5
+ * and buttons few enough to fit (a screen folds the rest into its menu there). On its own in a screen the
6
+ * buttons go under the title when the window has no room for them beside it, and never off its edge.
7
+ */
8
+ export declare const saveBarVariants: (props?: ({
9
+ across?: "section" | "screen" | "shell" | "window" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ /** On a phone the way back is its arrow alone, and its words are read out. */
12
+ export declare const saveBarBackClass: string;
13
+ export declare const saveBarBackLabelClass = "sr-only md:not-sr-only";
14
+ /**
15
+ * The title and its status on one row: the title is cut to fit, the status keeps its words. With something in
16
+ * the middle of the bar, the heading keeps to its words and the middle takes the room.
17
+ */
18
+ export declare const saveBarHeadingVariants: (props?: ({
19
+ hasCenter?: boolean | null | undefined;
20
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
21
+ /** In the middle of the bar, from `md` up: the controls of what is shown, such as the widths of a page. */
22
+ export declare const saveBarCenterClass = "hidden min-w-0 flex-1 items-center justify-center md:flex";
23
+ export declare const saveBarTitleClass = "min-w-0 truncate text-lg font-semibold text-foreground";
24
+ export declare const saveBarStatusClass = "flex shrink-0 items-center gap-2 whitespace-nowrap";
25
+ /** The words after the status: from `lg` up, where the row has room. */
26
+ export declare const saveBarNoteClass = "sr-only text-sm text-foreground-muted lg:not-sr-only";
27
+ /** The buttons, the main one last. */
28
+ export declare const saveBarActionsClass = "flex max-w-full shrink-0 flex-wrap items-center justify-end gap-1 md:gap-2";
29
+ /** The size of the arrow on the way back, in pixels. */
30
+ export declare const saveBarBackIconSize = 16;
31
+ //# sourceMappingURL=SaveBar.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveBar.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/SaveBar/SaveBar.variants.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;8EAU1B,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB,QAKlB,CAAC;AAEZ,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;8EAGjC,CAAC;AACH,2GAA2G;AAC3G,eAAO,MAAM,kBAAkB,8DAA8D,CAAC;AAC9F,eAAO,MAAM,iBAAiB,2DAA2D,CAAC;AAC1F,eAAO,MAAM,kBAAkB,uDAAuD,CAAC;AACvF,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,yDAAyD,CAAC;AACvF,sCAAsC;AACtC,eAAO,MAAM,mBAAmB,+EAA+E,CAAC;AAEhH,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,KAAK,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { cva } from 'class-variance-authority';
2
+ /**
3
+ * On a screen the bar stays at the top of the screen. Inside `AppShell` it is drawn in the shell's own
4
+ * bar, which already stays. Across a whole window it is the window's top edge.
5
+ * In the shell's bar and across a window it is one row, as on any phone: the way back, the title cut to fit,
6
+ * and buttons few enough to fit (a screen folds the rest into its menu there). On its own in a screen the
7
+ * buttons go under the title when the window has no room for them beside it, and never off its edge.
8
+ */
9
+ export const saveBarVariants = cva('flex items-center', {
10
+ variants: {
11
+ across: {
12
+ screen: 'sticky top-0 layer-sticky flex-wrap gap-x-4 gap-y-2 border-b border-border bg-background px-4 py-3 md:px-6',
13
+ shell: 'min-w-0 flex-1 gap-2 py-2 md:gap-4',
14
+ section: 'sticky top-0 layer-sticky flex-wrap gap-x-4 gap-y-2 border-b border-border bg-background px-4 py-3 md:px-6',
15
+ window: 'shrink-0 gap-2 border-b border-border bg-card px-3 py-2 md:gap-4',
16
+ },
17
+ },
18
+ defaultVariants: { across: 'screen' },
19
+ });
20
+ /** On a phone the way back is its arrow alone, and its words are read out. */
21
+ export const saveBarBackClass = [
22
+ 'inline-flex h-8 shrink-0 items-center justify-center gap-1.5 rounded-md border border-border-strong bg-background text-sm font-medium text-foreground',
23
+ 'w-8 md:w-auto md:pr-3 md:pl-2',
24
+ 'transition-colors motion-fast',
25
+ 'outline-none data-hovered:bg-background-secondary data-focus-visible:ring-2 data-focus-visible:ring-ring',
26
+ ].join(' ');
27
+ export const saveBarBackLabelClass = 'sr-only md:not-sr-only';
28
+ /**
29
+ * The title and its status on one row: the title is cut to fit, the status keeps its words. With something in
30
+ * the middle of the bar, the heading keeps to its words and the middle takes the room.
31
+ */
32
+ export const saveBarHeadingVariants = cva('flex min-w-0 items-center gap-3', {
33
+ variants: { hasCenter: { true: 'flex-1 md:flex-none md:shrink', false: 'flex-1 basis-0 md:basis-48' } },
34
+ defaultVariants: { hasCenter: false },
35
+ });
36
+ /** In the middle of the bar, from `md` up: the controls of what is shown, such as the widths of a page. */
37
+ export const saveBarCenterClass = 'hidden min-w-0 flex-1 items-center justify-center md:flex';
38
+ export const saveBarTitleClass = 'min-w-0 truncate text-lg font-semibold text-foreground';
39
+ export const saveBarStatusClass = 'flex shrink-0 items-center gap-2 whitespace-nowrap';
40
+ /** The words after the status: from `lg` up, where the row has room. */
41
+ export const saveBarNoteClass = 'sr-only text-sm text-foreground-muted lg:not-sr-only';
42
+ /** The buttons, the main one last. */
43
+ export const saveBarActionsClass = 'flex max-w-full shrink-0 flex-wrap items-center justify-end gap-1 md:gap-2';
44
+ /** The size of the arrow on the way back, in pixels. */
45
+ export const saveBarBackIconSize = 16;
46
+ //# sourceMappingURL=SaveBar.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveBar.variants.js","sourceRoot":"","sources":["../../../src/patterns/SaveBar/SaveBar.variants.ts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+ export { SaveBar, type SaveBarProps } from './SaveBar.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/SaveBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { SaveBar } from './SaveBar.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/SaveBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAqB,MAAM,cAAc,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { type LucideIcon } from 'lucide-react';
2
+ import { type ReactNode } from 'react';
3
+ import { type MenuAction } from '../../components/Menu/index.js';
4
+ export interface SectionListItem {
5
+ /** Stays with the section for as long as it exists. */
6
+ readonly id: string;
7
+ /** What kind of section it is: "Call to action". */
8
+ readonly title: string;
9
+ /** A few of its own words, so two of a kind can be told apart while closed. */
10
+ readonly summary?: string;
11
+ readonly icon?: LucideIcon;
12
+ /** A word beside the title for a section in an unusual state: "Hidden". It is also shown quieter. */
13
+ readonly tag?: string;
14
+ /** What is wrong inside the section, shown while it is closed too. */
15
+ readonly problem?: string;
16
+ /** The section's own fields, shown when it is open. */
17
+ readonly content: ReactNode;
18
+ /** What else can be done with it, in a menu: duplicate, hide, remove. */
19
+ readonly actions: readonly MenuAction[];
20
+ }
21
+ export interface SectionListProps {
22
+ /** What the list holds, such as "Sections". */
23
+ readonly label: string;
24
+ readonly description?: string;
25
+ /** What is wrong with the list as a whole. */
26
+ readonly errorMessage?: string;
27
+ readonly items: readonly SectionListItem[];
28
+ /** The ids of the sections that are open. */
29
+ readonly openIds: readonly string[];
30
+ readonly onOpenChange: (id: string, isOpen: boolean) => void;
31
+ /** Shown in place of the sections when there are none. */
32
+ readonly emptyText: string;
33
+ /** The words on the button that adds a section. */
34
+ readonly addLabel: string;
35
+ readonly onAdd: () => void;
36
+ /** Set to stop more sections being added, when the list is full. */
37
+ readonly isFull?: boolean;
38
+ /** Called with where a section is and where it should go, counted from 0. */
39
+ readonly onMove: (from: number, to: number) => void;
40
+ /** Called with a section's id and the id of the action chosen from its menu. */
41
+ readonly onAction: (id: string, action: string) => void;
42
+ /** The names of a section's buttons, given its place counted from 1: "Move section 2 up". */
43
+ readonly moveUpLabel: (position: number) => string;
44
+ readonly moveDownLabel: (position: number) => string;
45
+ readonly moreLabel: (position: number) => string;
46
+ /** The name of the handle a section is dragged by: "Drag section 2". */
47
+ readonly dragLabel: (position: number) => string;
48
+ /** A section to bring into view, when it was chosen somewhere else on the screen. */
49
+ readonly revealId?: string | undefined;
50
+ }
51
+ /** Sections of different kinds in an order a person chooses. Each opens to show its own fields. */
52
+ export declare function SectionList({ label, description, errorMessage, items, openIds, onOpenChange, emptyText, addLabel, onAdd, isFull, onMove, onAction, moveUpLabel, moveDownLabel, moreLabel, dragLabel, revealId, }: SectionListProps): import("react").JSX.Element;
53
+ //# sourceMappingURL=SectionList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionList.d.ts","sourceRoot":"","sources":["../../../src/patterns/SectionList/SectionList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+E,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAC5H,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3E,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AA4BvE,MAAM,WAAW,eAAe;IAC9B,uDAAuD;IACvD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,UA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AAM,KAAK,MAAM,CAAC;IACnD,QAAQ,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD,QAAQ,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,wEAAwE;IACxE,QAAQ,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,qFAAqF;IACrF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC;AAED,mGAAmG;AACnG,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,YAAY,EACZ,KAAK,EACL,OAAO,EACP,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAc,EACd,MAAM,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,EACT,QAAQ,GACT,EAAE,gBAAgB,+BA8ClB"}
@@ -0,0 +1,59 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArrowDown, ArrowUp, ChevronDown, ChevronRight, Ellipsis, GripVertical, Plus } from 'lucide-react';
3
+ import { useEffect, useId, useRef, useState } from 'react';
4
+ import { Button as AriaButton, Disclosure, DisclosurePanel, Heading, isTextDropItem, useDrag, useDrop } from 'react-aria-components';
5
+ import { Button } from '../../components/Button/index.js';
6
+ import { IconButton } from '../../components/IconButton/index.js';
7
+ import { Menu } from '../../components/Menu/index.js';
8
+ import { Tag } from '../../components/Tag/index.js';
9
+ import { sectionActionsClass, sectionChevronClass, sectionDropLineClass, sectionGripClass, sectionHeaderClass, sectionHeadingClass, sectionIconSize, sectionIconVariants, sectionListAddClass, sectionListClass, sectionListDescriptionClass, sectionListEmptyClass, sectionListErrorClass, sectionListItemsClass, sectionListLabelClass, sectionPanelClass, sectionProblemClass, sectionDetailClass, sectionSummaryClass, sectionTextClass, sectionTitleVariants, sectionTriggerClass, sectionVariants, } from './SectionList.variants.js';
10
+ /** Sections of different kinds in an order a person chooses. Each opens to show its own fields. */
11
+ export function SectionList({ label, description, errorMessage, items, openIds, onOpenChange, emptyText, addLabel, onAdd, isFull = false, onMove, onAction, moveUpLabel, moveDownLabel, moreLabel, dragLabel, revealId, }) {
12
+ const labelId = useId();
13
+ const ids = items.map((item) => item.id);
14
+ const list = useRef(null);
15
+ useEffect(() => {
16
+ if (revealId === undefined)
17
+ return;
18
+ const section = [...(list.current?.children ?? [])].find((item) => item instanceof HTMLElement && item.dataset['section'] === revealId);
19
+ // Not every browser-like place tests run in can scroll.
20
+ if (section && typeof section.scrollIntoView === 'function')
21
+ section.scrollIntoView({ block: 'nearest' });
22
+ }, [revealId]);
23
+ return (_jsxs("div", { role: "group", "aria-labelledby": labelId, className: sectionListClass, children: [_jsx("span", { id: labelId, className: sectionListLabelClass, children: label }), description !== undefined && _jsx("p", { className: sectionListDescriptionClass, children: description }), items.length === 0 ? (_jsx("p", { className: sectionListEmptyClass, children: emptyText })) : (_jsx("ol", { ref: list, className: sectionListItemsClass, children: items.map((item, index) => (_jsx(SectionRow, { item: item, index: index, ids: ids, isOpen: openIds.includes(item.id), onOpenChange: onOpenChange, onMove: onMove, onAction: onAction, moveUpLabel: moveUpLabel, moveDownLabel: moveDownLabel, moreLabel: moreLabel, dragLabel: dragLabel }, item.id))) })), errorMessage !== undefined && _jsx("p", { className: sectionListErrorClass, children: errorMessage }), _jsx("div", { className: sectionListAddClass, children: _jsx(Button, { variant: "secondary", size: "sm", icon: Plus, isDisabled: isFull, onPress: onAdd, children: addLabel }) })] }));
24
+ }
25
+ /** What a dragged section is carried as. Only a section of a list like this one is taken. */
26
+ const SECTION = 'application/x-velocity-cms-section';
27
+ /** One section: it is dragged by its heading, and takes a section dropped on it before or after itself. */
28
+ function SectionRow({ item, index, ids, isOpen, onOpenChange, onMove, onAction, moveUpLabel, moveDownLabel, moreLabel, dragLabel }) {
29
+ const { id, title, summary, icon: Icon, tag, problem, content, actions } = item;
30
+ const row = useRef(null);
31
+ // Where a section held over this one would land. With the keyboard there is no "where": it takes this one's place.
32
+ const [landing, setLanding] = useState(null);
33
+ const { dragProps, dragButtonProps, isDragging } = useDrag({ hasDragButton: true, getItems: () => [{ [SECTION]: id }], getAllowedDropOperations: () => ['move'] });
34
+ const { dropProps } = useDrop({
35
+ ref: row,
36
+ getDropOperation: (types) => (types.has(SECTION) ? 'move' : 'cancel'),
37
+ onDropEnter: () => setLanding((current) => current ?? 'here'),
38
+ onDropMove: (event) => setLanding(event.y < (row.current?.offsetHeight ?? 0) / 2 ? 'before' : 'after'),
39
+ onDropExit: () => setLanding(null),
40
+ onDrop: (event) => {
41
+ const where = landing;
42
+ setLanding(null);
43
+ const [dropped] = event.items.filter(isTextDropItem);
44
+ void dropped?.getText(SECTION).then((moved) => {
45
+ const from = ids.indexOf(moved);
46
+ if (from === -1)
47
+ return;
48
+ const gap = where === 'before' ? index : where === 'after' ? index + 1 : from < index ? index + 1 : index;
49
+ const to = from < gap ? gap - 1 : gap;
50
+ if (to !== from)
51
+ onMove(from, to);
52
+ });
53
+ },
54
+ });
55
+ const tone = tag === undefined ? 'default' : 'quiet';
56
+ const Chevron = isOpen ? ChevronDown : ChevronRight;
57
+ return (_jsxs("li", { ref: row, "data-section": id, ...dropProps, children: [landing === 'before' && _jsx("div", { className: sectionDropLineClass }), _jsxs(Disclosure, { className: sectionVariants({ state: problem !== undefined ? 'problem' : landing === 'here' ? 'target' : isDragging ? 'dragging' : 'default' }), isExpanded: isOpen, onExpandedChange: (next) => onOpenChange(id, next), children: [_jsxs("div", { className: sectionHeaderClass, ...dragProps, children: [_jsx(AriaButton, { ...dragButtonProps, "aria-label": dragLabel(index + 1), className: sectionGripClass, children: _jsx(GripVertical, { "aria-hidden": true, size: sectionIconSize }) }), _jsx(Heading, { level: 3, className: sectionHeadingClass, children: _jsxs(AriaButton, { slot: "trigger", className: sectionTriggerClass, children: [_jsx(Chevron, { "aria-hidden": true, size: sectionIconSize, className: sectionChevronClass }), Icon && (_jsx("span", { className: sectionIconVariants({ tone }), children: _jsx(Icon, { "aria-hidden": true, size: sectionIconSize }) })), _jsxs("span", { className: sectionTextClass, children: [_jsx("span", { className: sectionTitleVariants({ tone }), children: title }), (tag !== undefined || summary !== undefined) && (_jsxs("span", { className: sectionDetailClass, children: [summary !== undefined && _jsx("span", { className: sectionSummaryClass, children: summary }), tag !== undefined && _jsx(Tag, { children: tag })] }))] })] }) }), _jsxs("div", { className: sectionActionsClass, children: [_jsx(IconButton, { size: "sm", icon: ArrowUp, label: moveUpLabel(index + 1), isDisabled: index === 0, onPress: () => onMove(index, index - 1) }), _jsx(IconButton, { size: "sm", icon: ArrowDown, label: moveDownLabel(index + 1), isDisabled: index === ids.length - 1, onPress: () => onMove(index, index + 1) }), _jsx(Menu, { trigger: _jsx(IconButton, { size: "sm", icon: Ellipsis, label: moreLabel(index + 1) }), actions: actions, onAction: (action) => onAction(id, action) })] })] }), problem !== undefined && !isOpen && _jsx("p", { className: sectionProblemClass, children: problem }), _jsx(DisclosurePanel, { children: _jsx("div", { className: sectionPanelClass, children: content }) })] }), landing === 'after' && _jsx("div", { className: sectionDropLineClass })] }));
58
+ }
59
+ //# sourceMappingURL=SectionList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionList.js","sourceRoot":"","sources":["../../../src/patterns/SectionList/SectionList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAC5H,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrI,OAAO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C,GAAI,IAClJ,IACF,EACL,OAAO,KAAK,SAAS,IAAI,CAAC,MAAM,IAAI,YAAG,SAAS,EAAE,mBAAmB,YAAG,OAAO,GAAK,EACrF,KAAC,eAAe,cACd,cAAK,SAAS,EAAE,iBAAiB,YAAG,OAAO,GAAO,GAClC,IACP,EACZ,OAAO,KAAK,OAAO,IAAI,cAAK,SAAS,EAAE,oBAAoB,GAAI,IAC7D,CACN,CAAC;AACJ,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ export declare const sectionListClass = "flex min-w-0 flex-col gap-2";
3
+ export declare const sectionListLabelClass = "text-sm font-medium text-foreground";
4
+ export declare const sectionListDescriptionClass = "text-sm text-foreground-muted";
5
+ export declare const sectionListErrorClass = "motion-rise text-sm text-destructive";
6
+ export declare const sectionListItemsClass = "flex flex-col gap-2";
7
+ export declare const sectionListEmptyClass = "rounded-md border border-dashed border-border px-3 py-6 text-center text-sm text-foreground-muted";
8
+ export declare const sectionListAddClass = "flex";
9
+ export declare const sectionVariants: (props?: ({
10
+ state?: "default" | "target" | "dragging" | "problem" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ export declare const sectionHeaderClass = "flex items-center gap-1 py-1 pr-2 pl-1";
13
+ /** The handle a section is dragged by. */
14
+ export declare const sectionGripClass: string;
15
+ /** Where a dragged section would land, between two others. */
16
+ export declare const sectionDropLineClass = "my-1 h-0.5 rounded-full bg-ring";
17
+ export declare const sectionHeadingClass = "min-w-0 flex-1";
18
+ export declare const sectionTriggerClass: string;
19
+ export declare const sectionChevronClass = "shrink-0 text-foreground-muted";
20
+ /** The block's icon, left out on a phone, where the row needs its width for the words and the buttons. */
21
+ export declare const sectionIconVariants: (props?: ({
22
+ tone?: "default" | "quiet" | null | undefined;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
24
+ export declare const sectionTextClass = "flex min-w-0 flex-1 flex-col";
25
+ export declare const sectionTitleVariants: (props?: ({
26
+ tone?: "default" | "quiet" | null | undefined;
27
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
28
+ /** Under the title: the summary, which gives way to a tag after it (such as a block no longer used). */
29
+ export declare const sectionDetailClass = "flex min-w-0 items-center gap-2";
30
+ export declare const sectionSummaryClass = "min-w-0 truncate text-sm text-foreground-muted";
31
+ export declare const sectionActionsClass = "flex shrink-0 items-center";
32
+ export declare const sectionPanelClass = "border-t border-border p-4";
33
+ export declare const sectionProblemClass = "px-4 pb-3 text-sm text-destructive";
34
+ /** The sizes of a section's icons, in pixels. */
35
+ export declare const sectionIconSize = 16;
36
+ export type SectionVariants = VariantProps<typeof sectionVariants>;
37
+ //# sourceMappingURL=SectionList.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionList.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/SectionList/SectionList.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,gBAAgB,gCAAgC,CAAC;AAC9D,eAAO,MAAM,qBAAqB,wCAAkB,CAAC;AACrD,eAAO,MAAM,2BAA2B,kCAAwB,CAAC;AACjE,eAAO,MAAM,qBAAqB,yCAAkB,CAAC;AACrD,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAC3D,eAAO,MAAM,qBAAqB,sGAAsG,CAAC;AACzI,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,eAAO,MAAM,eAAe;;8EAY1B,CAAC;AAEH,eAAO,MAAM,kBAAkB,2CAA2C,CAAC;AAC3E,0CAA0C;AAC1C,eAAO,MAAM,gBAAgB,QAIlB,CAAC;AACZ,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB,oCAAoC,CAAC;AACtE,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,mBAAmB,QAIrB,CAAC;AACZ,eAAO,MAAM,mBAAmB,mCAAmC,CAAC;AAEpE,0GAA0G;AAC1G,eAAO,MAAM,mBAAmB;;8EAQ9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,iCAAiC,CAAC;AAC/D,eAAO,MAAM,oBAAoB;;8EAQ/B,CAAC;AACH,wGAAwG;AACxG,eAAO,MAAM,kBAAkB,oCAAoC,CAAC;AACpE,eAAO,MAAM,mBAAmB,mDAAmD,CAAC;AACpF,eAAO,MAAM,mBAAmB,+BAA+B,CAAC;AAChE,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAC9D,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AAExE,iDAAiD;AACjD,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { cva } from 'class-variance-authority';
2
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass } from '../../components/field.js';
3
+ export const sectionListClass = 'flex min-w-0 flex-col gap-2';
4
+ export const sectionListLabelClass = fieldLabelClass;
5
+ export const sectionListDescriptionClass = fieldDescriptionClass;
6
+ export const sectionListErrorClass = fieldErrorClass;
7
+ export const sectionListItemsClass = 'flex flex-col gap-2';
8
+ export const sectionListEmptyClass = 'rounded-md border border-dashed border-border px-3 py-6 text-center text-sm text-foreground-muted';
9
+ export const sectionListAddClass = 'flex';
10
+ export const sectionVariants = cva('motion-rise min-w-0 rounded-lg border bg-card', {
11
+ variants: {
12
+ state: {
13
+ default: 'border-border',
14
+ problem: 'border-destructive',
15
+ /** Being dragged: it stays in its place, faded, until it is dropped. */
16
+ dragging: 'border-border opacity-50',
17
+ /** A section is held over it with the keyboard, and would take its place. */
18
+ target: 'border-ring ring-2 ring-ring',
19
+ },
20
+ },
21
+ defaultVariants: { state: 'default' },
22
+ });
23
+ export const sectionHeaderClass = 'flex items-center gap-1 py-1 pr-2 pl-1';
24
+ /** The handle a section is dragged by. */
25
+ export const sectionGripClass = [
26
+ 'grid h-8 w-6 shrink-0 cursor-grab place-items-center rounded-md text-foreground-subtle outline-none',
27
+ 'transition-colors motion-fast data-hovered:bg-secondary data-hovered:text-foreground data-pressed:cursor-grabbing',
28
+ 'data-focus-visible:ring-2 data-focus-visible:ring-input-focus',
29
+ ].join(' ');
30
+ /** Where a dragged section would land, between two others. */
31
+ export const sectionDropLineClass = 'my-1 h-0.5 rounded-full bg-ring';
32
+ export const sectionHeadingClass = 'min-w-0 flex-1';
33
+ export const sectionTriggerClass = [
34
+ 'flex w-full min-w-0 cursor-default items-center gap-3 rounded-md px-2 py-2 text-left outline-none',
35
+ 'transition-colors motion-fast data-hovered:bg-secondary',
36
+ 'data-focus-visible:ring-2 data-focus-visible:ring-input-focus',
37
+ ].join(' ');
38
+ export const sectionChevronClass = 'shrink-0 text-foreground-muted';
39
+ /** The block's icon, left out on a phone, where the row needs its width for the words and the buttons. */
40
+ export const sectionIconVariants = cva('hidden size-8 shrink-0 place-items-center rounded-md sm:grid', {
41
+ variants: {
42
+ tone: {
43
+ default: 'bg-secondary text-secondary-foreground',
44
+ quiet: 'bg-background-secondary text-foreground-subtle',
45
+ },
46
+ },
47
+ defaultVariants: { tone: 'default' },
48
+ });
49
+ export const sectionTextClass = 'flex min-w-0 flex-1 flex-col';
50
+ export const sectionTitleVariants = cva('truncate text-sm font-medium', {
51
+ variants: {
52
+ tone: {
53
+ default: 'text-foreground',
54
+ quiet: 'text-foreground-muted',
55
+ },
56
+ },
57
+ defaultVariants: { tone: 'default' },
58
+ });
59
+ /** Under the title: the summary, which gives way to a tag after it (such as a block no longer used). */
60
+ export const sectionDetailClass = 'flex min-w-0 items-center gap-2';
61
+ export const sectionSummaryClass = 'min-w-0 truncate text-sm text-foreground-muted';
62
+ export const sectionActionsClass = 'flex shrink-0 items-center';
63
+ export const sectionPanelClass = 'border-t border-border p-4';
64
+ export const sectionProblemClass = 'px-4 pb-3 text-sm text-destructive';
65
+ /** The sizes of a section's icons, in pixels. */
66
+ export const sectionIconSize = 16;
67
+ //# sourceMappingURL=SectionList.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionList.variants.js","sourceRoot":"","sources":["../../../src/patterns/SectionList/SectionList.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEpG,MAAM,CAAC,MAAM,gBAAgB,GAAG,6BAA6B,CAAC;AAC9D,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC;AACrD,MAAM,CAAC,MAAM,2BAA2B,GAAG,qBAAqB,CAAC;AACjE,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC;AACrD,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAC3D,MAAM,CAAC,MAAM,qBAAqB,GAAG,mGAAmG,CAAC;AACzI,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC,+CAA+C,EAAE;IAClF,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,oBAAoB;YAC7B,wEAAwE;YACxE,QAAQ,EAAE,0BAA0B;YACpC,6EAA6E;YAC7E,MAAM,EAAE,8BAA8B;SACvC;KACF;IACD,eAAe,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,wCAAwC,CAAC;AAC3E,0CAA0C;AAC1C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,qGAAqG;IACrG,mHAAmH;IACnH,+DAA+D;CAChE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACZ,8DAA8D;AAC9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,iCAAiC,CAAC;AACtE,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AACpD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,mGAAmG;IACnG,yDAAyD;IACzD,+DAA+D;CAChE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,mBAAmB,GAAG,gCAAgC,CAAC;AAEpE,0GAA0G;AAC1G,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC,8DAA8D,EAAE;IACrG,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,wCAAwC;YACjD,KAAK,EAAE,gDAAgD;SACxD;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,8BAA8B,CAAC;AAC/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC,8BAA8B,EAAE;IACtE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,iBAAiB;YAC1B,KAAK,EAAE,uBAAuB;SAC/B;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;CACrC,CAAC,CAAC;AACH,wGAAwG;AACxG,MAAM,CAAC,MAAM,kBAAkB,GAAG,iCAAiC,CAAC;AACpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,gDAAgD,CAAC;AACpF,MAAM,CAAC,MAAM,mBAAmB,GAAG,4BAA4B,CAAC;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG,4BAA4B,CAAC;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,oCAAoC,CAAC;AAExE,iDAAiD;AACjD,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { SectionList, type SectionListItem, type SectionListProps } from './SectionList.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/SectionList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { SectionList } from './SectionList.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/SectionList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA+C,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type SiteWindowVariants } from './SiteWindow.variants.js';
2
+ export interface SiteWindowProps extends SiteWindowVariants {
3
+ /** The site's address, shown where a browser shows it: "lakeshore.example". */
4
+ readonly address: string;
5
+ /** The page to show, as visitors see it: a path on the site, such as "/". */
6
+ readonly src: string;
7
+ /** What the page is, for screen readers: "The home page of Lakeshore Realty". */
8
+ readonly title: string;
9
+ /** What pressing the card does, at its foot: "Edit the home page". */
10
+ readonly label: string;
11
+ /** A few words at the foot before it: when the page was last published, and by whom. */
12
+ readonly meta?: string;
13
+ /** Where pressing the card leads. */
14
+ readonly href?: string;
15
+ /** What pressing the card does, when it leads nowhere by itself. */
16
+ readonly onPress?: () => void;
17
+ }
18
+ /** A page of the site in a small browser window, as visitors see it now. The whole card is one link. */
19
+ export declare function SiteWindow({ address, src, title, label, meta, href, onPress, size }: SiteWindowProps): import("react").JSX.Element;
20
+ //# sourceMappingURL=SiteWindow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SiteWindow.d.ts","sourceRoot":"","sources":["../../../src/patterns/SiteWindow/SiteWindow.tsx"],"names":[],"mappings":"AACA,OAAO,EAYL,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAElC,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,qCAAqC;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,wGAAwG;AACxG,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,eAAe,+BAuBpG"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Link } from 'react-aria-components';
3
+ import { siteWindowAddressClass, siteWindowBarClass, siteWindowClass, siteWindowDotClass, siteWindowDotsClass, siteWindowFootClass, siteWindowFrameVariants, siteWindowLinkClass, siteWindowMetaClass, siteWindowSpacerClass, siteWindowViewVariants, } from './SiteWindow.variants.js';
4
+ /** A page of the site in a small browser window, as visitors see it now. The whole card is one link. */
5
+ export function SiteWindow({ address, src, title, label, meta, href, onPress, size }) {
6
+ return (_jsxs("div", { className: siteWindowClass, children: [_jsxs("div", { "aria-hidden": true, className: siteWindowBarClass, children: [_jsxs("span", { className: siteWindowDotsClass, children: [_jsx("span", { className: siteWindowDotClass }), _jsx("span", { className: siteWindowDotClass }), _jsx("span", { className: siteWindowDotClass })] }), _jsx("span", { className: siteWindowAddressClass, children: address }), _jsx("span", { className: siteWindowSpacerClass })] }), _jsx("div", { className: siteWindowViewVariants({ size }), children: _jsx("iframe", { src: src, title: title, loading: "lazy", tabIndex: -1, "aria-hidden": true, className: siteWindowFrameVariants({ size }) }) }), _jsxs("div", { className: siteWindowFootClass, children: [meta !== undefined && _jsx("span", { className: siteWindowMetaClass, children: meta }), _jsx(Link, { className: siteWindowLinkClass, ...(href !== undefined && { href }), ...(onPress !== undefined && { onPress }), children: label })] })] }));
7
+ }
8
+ //# sourceMappingURL=SiteWindow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SiteWindow.js","sourceRoot":"","sources":["../../../src/patterns/SiteWindow/SiteWindow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GAEvB,MAAM,0BAA0B,CAAC;AAmBlC,wGAAwG;AACxG,MAAM,UAAU,UAAU,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAmB;IACnG,OAAO,CACL,eAAK,SAAS,EAAE,eAAe,aAC7B,oCAAiB,SAAS,EAAE,kBAAkB,aAC5C,gBAAM,SAAS,EAAE,mBAAmB,aAClC,eAAM,SAAS,EAAE,kBAAkB,GAAI,EACvC,eAAM,SAAS,EAAE,kBAAkB,GAAI,EACvC,eAAM,SAAS,EAAE,kBAAkB,GAAI,IAClC,EACP,eAAM,SAAS,EAAE,sBAAsB,YAAG,OAAO,GAAQ,EACzD,eAAM,SAAS,EAAE,qBAAqB,GAAI,IACtC,EACN,cAAK,SAAS,EAAE,sBAAsB,CAAC,EAAE,IAAI,EAAE,CAAC,YAC9C,iBAAQ,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAE,CAAC,CAAC,uBAAc,SAAS,EAAE,uBAAuB,CAAC,EAAE,IAAI,EAAE,CAAC,GAAI,GACrH,EACN,eAAK,SAAS,EAAE,mBAAmB,aAChC,IAAI,KAAK,SAAS,IAAI,eAAM,SAAS,EAAE,mBAAmB,YAAG,IAAI,GAAQ,EAC1E,KAAC,IAAI,IAAC,SAAS,EAAE,mBAAmB,KAAM,CAAC,IAAI,KAAK,SAAS,IAAI,EAAE,IAAI,EAAE,CAAC,KAAM,CAAC,OAAO,KAAK,SAAS,IAAI,EAAE,OAAO,EAAE,CAAC,YACnH,KAAK,GACD,IACH,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ /** `relative`, so the link at its foot can stretch over the whole card and make all of it one thing to press. */
3
+ export declare const siteWindowClass = "group relative w-full min-w-0 max-w-xl overflow-hidden rounded-xl border border-border bg-card shadow-xl transition-colors motion-base has-data-hovered:border-border-strong has-data-focus-visible:ring-2 has-data-focus-visible:ring-ring";
4
+ export declare const siteWindowBarClass = "flex items-center gap-3 border-b border-border bg-background-secondary px-3.5 py-2.5";
5
+ export declare const siteWindowDotsClass = "flex shrink-0 gap-1.5";
6
+ export declare const siteWindowDotClass = "h-2.5 w-2.5 rounded-full bg-border-strong";
7
+ export declare const siteWindowAddressClass = "min-w-0 flex-1 truncate text-center font-mono text-xs text-foreground-subtle";
8
+ export declare const siteWindowSpacerClass = "w-10 shrink-0";
9
+ /**
10
+ * The page is drawn at twice the card's width and shown at half its size, so it looks as it does on
11
+ * a desktop. It cannot be pressed or reached by the keyboard: the card is a way to edit the page, not the page.
12
+ */
13
+ export declare const siteWindowViewVariants: (props?: ({
14
+ size?: "sm" | "md" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ /** `sm` draws the page wider still and shows it at a fifth of its size, for a narrow column. */
17
+ export declare const siteWindowFrameVariants: (props?: ({
18
+ size?: "sm" | "md" | null | undefined;
19
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
20
+ export type SiteWindowVariants = VariantProps<typeof siteWindowViewVariants>;
21
+ export declare const siteWindowFootClass = "flex items-center gap-3 border-t border-border px-4 py-3 text-sm";
22
+ export declare const siteWindowMetaClass = "min-w-0 flex-1 truncate text-foreground-muted";
23
+ export declare const siteWindowLinkClass = "shrink-0 font-semibold text-foreground outline-none after:absolute after:inset-0 group-hover:underline";
24
+ //# sourceMappingURL=SiteWindow.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SiteWindow.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/SiteWindow/SiteWindow.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,iHAAiH;AACjH,eAAO,MAAM,eAAe,gPACmN,CAAC;AAChP,eAAO,MAAM,kBAAkB,yFAAyF,CAAC;AACzH,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,kBAAkB,8CAA8C,CAAC;AAC9E,eAAO,MAAM,sBAAsB,iFAAiF,CAAC;AACrH,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;8EAGjC,CAAC;AACH,gGAAgG;AAChG,eAAO,MAAM,uBAAuB;;8EAGlC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC7E,eAAO,MAAM,mBAAmB,qEAAqE,CAAC;AACtG,eAAO,MAAM,mBAAmB,kDAAkD,CAAC;AACnF,eAAO,MAAM,mBAAmB,2GAA2G,CAAC"}