@md-code/components 0.0.0-stage → 0.0.2

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 (344) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +202 -0
  3. package/README.md +77 -2
  4. package/dist/assets/favicon.ico +0 -0
  5. package/dist/assets/logo.png +0 -0
  6. package/dist/atoms/Loading/ouroboros.svg +41 -0
  7. package/dist/atoms/Logo/logo.jpg +0 -0
  8. package/dist/avatar.js +8 -0
  9. package/dist/badge.js +25 -0
  10. package/dist/breadcrumbs.js +60 -0
  11. package/dist/button.js +203 -0
  12. package/dist/calendar.js +101 -0
  13. package/dist/caption.js +14 -0
  14. package/dist/card.js +82 -0
  15. package/dist/carousel.js +125 -0
  16. package/dist/central-modal.js +22 -0
  17. package/dist/chip.js +42 -0
  18. package/dist/circle-image.js +22 -0
  19. package/dist/code-preview.js +38 -0
  20. package/dist/code-view-tokenizer.js +35 -0
  21. package/dist/code-view.js +96 -0
  22. package/dist/conditional-wrapper.js +5 -0
  23. package/dist/containers.js +115 -0
  24. package/dist/diff-legend.js +31 -0
  25. package/dist/div-input.js +103 -0
  26. package/dist/empty.js +12 -0
  27. package/dist/filter-bar.js +15 -0
  28. package/dist/form-label.js +19 -0
  29. package/dist/form.js +17 -0
  30. package/dist/full-screen-modal.js +27 -0
  31. package/dist/header.js +19 -0
  32. package/dist/html-editor.js +81 -0
  33. package/dist/icons.js +42 -0
  34. package/dist/input.js +62 -0
  35. package/dist/link.js +35 -0
  36. package/dist/loading.js +182 -0
  37. package/dist/logo.js +12 -0
  38. package/dist/modals.js +130 -0
  39. package/dist/molecules/Carousel/arrow.svg +5 -0
  40. package/dist/molecules/Select/arrow_down.svg +3 -0
  41. package/dist/mono-text.js +16 -0
  42. package/dist/nav-tabs.js +33 -0
  43. package/dist/page-header.js +20 -0
  44. package/dist/pagination.js +119 -0
  45. package/dist/progress-bar.js +26 -0
  46. package/dist/radio.js +73 -0
  47. package/dist/report-ui.js +358 -0
  48. package/dist/row.js +15 -0
  49. package/dist/score-panel.js +125 -0
  50. package/dist/score-pills.js +25 -0
  51. package/dist/search-input.js +84 -0
  52. package/dist/select.js +164 -0
  53. package/dist/separator.js +16 -0
  54. package/dist/slider-field.js +34 -0
  55. package/dist/stack.js +16 -0
  56. package/dist/stat-grid.js +10 -0
  57. package/dist/stat.js +24 -0
  58. package/dist/status-label.js +63 -0
  59. package/dist/status-text.js +13 -0
  60. package/dist/submit.js +57 -0
  61. package/dist/subtle-text.js +14 -0
  62. package/dist/surface.js +39 -0
  63. package/dist/switch.js +99 -0
  64. package/dist/table.js +132 -0
  65. package/dist/tabs.js +156 -0
  66. package/dist/text-checkbox.js +64 -0
  67. package/dist/text-link.js +20 -0
  68. package/dist/textarea.js +56 -0
  69. package/dist/textures/Cloud/clouds.svg +52 -0
  70. package/dist/textures.js +170 -0
  71. package/dist/toasts.js +79 -0
  72. package/dist/toggle.js +66 -0
  73. package/dist/token-input-field.js +56 -0
  74. package/dist/tooltip.js +95 -0
  75. package/dist/types/atoms/Avatar/index.d.ts +6 -0
  76. package/dist/types/atoms/Avatar/index.d.ts.map +1 -0
  77. package/dist/types/atoms/Breadcrumbs/index.d.ts +10 -0
  78. package/dist/types/atoms/Breadcrumbs/index.d.ts.map +1 -0
  79. package/dist/types/atoms/Breadcrumbs/styles.d.ts +95 -0
  80. package/dist/types/atoms/Breadcrumbs/styles.d.ts.map +1 -0
  81. package/dist/types/atoms/Calendar/index.d.ts +4 -0
  82. package/dist/types/atoms/Calendar/index.d.ts.map +1 -0
  83. package/dist/types/atoms/Calendar/styles.d.ts +12 -0
  84. package/dist/types/atoms/Calendar/styles.d.ts.map +1 -0
  85. package/dist/types/atoms/Caption/index.d.ts +9 -0
  86. package/dist/types/atoms/Caption/index.d.ts.map +1 -0
  87. package/dist/types/atoms/Caption/styles.d.ts +9 -0
  88. package/dist/types/atoms/Caption/styles.d.ts.map +1 -0
  89. package/dist/types/atoms/CentralModal/index.d.ts +3 -0
  90. package/dist/types/atoms/CentralModal/index.d.ts.map +1 -0
  91. package/dist/types/atoms/Chip/index.d.ts +39 -0
  92. package/dist/types/atoms/Chip/index.d.ts.map +1 -0
  93. package/dist/types/atoms/Chip/styles.d.ts +19 -0
  94. package/dist/types/atoms/Chip/styles.d.ts.map +1 -0
  95. package/dist/types/atoms/CircleImage/index.d.ts +13 -0
  96. package/dist/types/atoms/CircleImage/index.d.ts.map +1 -0
  97. package/dist/types/atoms/CodePreview/index.d.ts +23 -0
  98. package/dist/types/atoms/CodePreview/index.d.ts.map +1 -0
  99. package/dist/types/atoms/ConditionalWrapper/index.d.ts +8 -0
  100. package/dist/types/atoms/ConditionalWrapper/index.d.ts.map +1 -0
  101. package/dist/types/atoms/Containers/index.d.ts +3 -0
  102. package/dist/types/atoms/Containers/index.d.ts.map +1 -0
  103. package/dist/types/atoms/Containers/styles.d.ts +87 -0
  104. package/dist/types/atoms/Containers/styles.d.ts.map +1 -0
  105. package/dist/types/atoms/DivInput/index.d.ts +18 -0
  106. package/dist/types/atoms/DivInput/index.d.ts.map +1 -0
  107. package/dist/types/atoms/Empty/index.d.ts +10 -0
  108. package/dist/types/atoms/Empty/index.d.ts.map +1 -0
  109. package/dist/types/atoms/Empty/styles.d.ts +9 -0
  110. package/dist/types/atoms/Empty/styles.d.ts.map +1 -0
  111. package/dist/types/atoms/Form/Form.d.ts +15 -0
  112. package/dist/types/atoms/Form/Form.d.ts.map +1 -0
  113. package/dist/types/atoms/Form/index.d.ts +13 -0
  114. package/dist/types/atoms/Form/index.d.ts.map +1 -0
  115. package/dist/types/atoms/FormLabel/index.d.ts +13 -0
  116. package/dist/types/atoms/FormLabel/index.d.ts.map +1 -0
  117. package/dist/types/atoms/FullScreenModal/index.d.ts +3 -0
  118. package/dist/types/atoms/FullScreenModal/index.d.ts.map +1 -0
  119. package/dist/types/atoms/Header/index.d.ts +3 -0
  120. package/dist/types/atoms/Header/index.d.ts.map +1 -0
  121. package/dist/types/atoms/Header/styles.d.ts +18 -0
  122. package/dist/types/atoms/Header/styles.d.ts.map +1 -0
  123. package/dist/types/atoms/Icons/index.d.ts +49 -0
  124. package/dist/types/atoms/Icons/index.d.ts.map +1 -0
  125. package/dist/types/atoms/Input/index.d.ts +3 -0
  126. package/dist/types/atoms/Input/index.d.ts.map +1 -0
  127. package/dist/types/atoms/Input/styles.d.ts +20 -0
  128. package/dist/types/atoms/Input/styles.d.ts.map +1 -0
  129. package/dist/types/atoms/Link/index.d.ts +3 -0
  130. package/dist/types/atoms/Link/index.d.ts.map +1 -0
  131. package/dist/types/atoms/Link/styles.d.ts +133 -0
  132. package/dist/types/atoms/Link/styles.d.ts.map +1 -0
  133. package/dist/types/atoms/Loading/index.d.ts +27 -0
  134. package/dist/types/atoms/Loading/index.d.ts.map +1 -0
  135. package/dist/types/atoms/Loading/styles.d.ts +31 -0
  136. package/dist/types/atoms/Loading/styles.d.ts.map +1 -0
  137. package/dist/types/atoms/Logo/index.d.ts +3 -0
  138. package/dist/types/atoms/Logo/index.d.ts.map +1 -0
  139. package/dist/types/atoms/MonoText/index.d.ts +23 -0
  140. package/dist/types/atoms/MonoText/index.d.ts.map +1 -0
  141. package/dist/types/atoms/MonoText/styles.d.ts +13 -0
  142. package/dist/types/atoms/MonoText/styles.d.ts.map +1 -0
  143. package/dist/types/atoms/Pagination/index.d.ts +9 -0
  144. package/dist/types/atoms/Pagination/index.d.ts.map +1 -0
  145. package/dist/types/atoms/Pagination/styles.d.ts +38 -0
  146. package/dist/types/atoms/Pagination/styles.d.ts.map +1 -0
  147. package/dist/types/atoms/ProgressBar/index.d.ts +13 -0
  148. package/dist/types/atoms/ProgressBar/index.d.ts.map +1 -0
  149. package/dist/types/atoms/Radio/index.d.ts +12 -0
  150. package/dist/types/atoms/Radio/index.d.ts.map +1 -0
  151. package/dist/types/atoms/Row/index.d.ts +8 -0
  152. package/dist/types/atoms/Row/index.d.ts.map +1 -0
  153. package/dist/types/atoms/Row/styles.d.ts +9 -0
  154. package/dist/types/atoms/Row/styles.d.ts.map +1 -0
  155. package/dist/types/atoms/Separator/index.d.ts +24 -0
  156. package/dist/types/atoms/Separator/index.d.ts.map +1 -0
  157. package/dist/types/atoms/Separator/styles.d.ts +14 -0
  158. package/dist/types/atoms/Separator/styles.d.ts.map +1 -0
  159. package/dist/types/atoms/Stack/index.d.ts +17 -0
  160. package/dist/types/atoms/Stack/index.d.ts.map +1 -0
  161. package/dist/types/atoms/Stack/styles.d.ts +12 -0
  162. package/dist/types/atoms/Stack/styles.d.ts.map +1 -0
  163. package/dist/types/atoms/Stat/index.d.ts +24 -0
  164. package/dist/types/atoms/Stat/index.d.ts.map +1 -0
  165. package/dist/types/atoms/Stat/styles.d.ts +19 -0
  166. package/dist/types/atoms/Stat/styles.d.ts.map +1 -0
  167. package/dist/types/atoms/StatusText/index.d.ts +17 -0
  168. package/dist/types/atoms/StatusText/index.d.ts.map +1 -0
  169. package/dist/types/atoms/StatusText/styles.d.ts +13 -0
  170. package/dist/types/atoms/StatusText/styles.d.ts.map +1 -0
  171. package/dist/types/atoms/Submit/index.d.ts +10 -0
  172. package/dist/types/atoms/Submit/index.d.ts.map +1 -0
  173. package/dist/types/atoms/SubtleText/index.d.ts +17 -0
  174. package/dist/types/atoms/SubtleText/index.d.ts.map +1 -0
  175. package/dist/types/atoms/SubtleText/styles.d.ts +12 -0
  176. package/dist/types/atoms/SubtleText/styles.d.ts.map +1 -0
  177. package/dist/types/atoms/Surface/index.d.ts +34 -0
  178. package/dist/types/atoms/Surface/index.d.ts.map +1 -0
  179. package/dist/types/atoms/Surface/styles.d.ts +27 -0
  180. package/dist/types/atoms/Surface/styles.d.ts.map +1 -0
  181. package/dist/types/atoms/Switch/index.d.ts +12 -0
  182. package/dist/types/atoms/Switch/index.d.ts.map +1 -0
  183. package/dist/types/atoms/Switch/styles.d.ts +31 -0
  184. package/dist/types/atoms/Switch/styles.d.ts.map +1 -0
  185. package/dist/types/atoms/Tabs/index.d.ts +18 -0
  186. package/dist/types/atoms/Tabs/index.d.ts.map +1 -0
  187. package/dist/types/atoms/Tabs/styles.d.ts +40 -0
  188. package/dist/types/atoms/Tabs/styles.d.ts.map +1 -0
  189. package/dist/types/atoms/TextCheckbox/index.d.ts +9 -0
  190. package/dist/types/atoms/TextCheckbox/index.d.ts.map +1 -0
  191. package/dist/types/atoms/TextLink/index.d.ts +22 -0
  192. package/dist/types/atoms/TextLink/index.d.ts.map +1 -0
  193. package/dist/types/atoms/TextLink/styles.d.ts +15 -0
  194. package/dist/types/atoms/TextLink/styles.d.ts.map +1 -0
  195. package/dist/types/atoms/Textarea/index.d.ts +19 -0
  196. package/dist/types/atoms/Textarea/index.d.ts.map +1 -0
  197. package/dist/types/atoms/Toggle/index.d.ts +16 -0
  198. package/dist/types/atoms/Toggle/index.d.ts.map +1 -0
  199. package/dist/types/atoms/Toggle/styles.d.ts +32 -0
  200. package/dist/types/atoms/Toggle/styles.d.ts.map +1 -0
  201. package/dist/types/atoms/Tooltip/index.d.ts +15 -0
  202. package/dist/types/atoms/Tooltip/index.d.ts.map +1 -0
  203. package/dist/types/atoms/Tooltip/styles.d.ts +24 -0
  204. package/dist/types/atoms/Tooltip/styles.d.ts.map +1 -0
  205. package/dist/types/atoms/Typography/index.d.ts +3 -0
  206. package/dist/types/atoms/Typography/index.d.ts.map +1 -0
  207. package/dist/types/atoms/Typography/styles.d.ts +72 -0
  208. package/dist/types/atoms/Typography/styles.d.ts.map +1 -0
  209. package/dist/types/atoms/Validation/index.d.ts +9 -0
  210. package/dist/types/atoms/Validation/index.d.ts.map +1 -0
  211. package/dist/types/atoms/Validation/styles.d.ts +23 -0
  212. package/dist/types/atoms/Validation/styles.d.ts.map +1 -0
  213. package/dist/types/atoms/WideImage/index.d.ts +26 -0
  214. package/dist/types/atoms/WideImage/index.d.ts.map +1 -0
  215. package/dist/types/molecules/Badge/index.d.ts +25 -0
  216. package/dist/types/molecules/Badge/index.d.ts.map +1 -0
  217. package/dist/types/molecules/Button/index.d.ts +31 -0
  218. package/dist/types/molecules/Button/index.d.ts.map +1 -0
  219. package/dist/types/molecules/Button/styles.d.ts +15 -0
  220. package/dist/types/molecules/Button/styles.d.ts.map +1 -0
  221. package/dist/types/molecules/Card/index.d.ts +16 -0
  222. package/dist/types/molecules/Card/index.d.ts.map +1 -0
  223. package/dist/types/molecules/Card/styles.d.ts +70 -0
  224. package/dist/types/molecules/Card/styles.d.ts.map +1 -0
  225. package/dist/types/molecules/Carousel/index.d.ts +13 -0
  226. package/dist/types/molecules/Carousel/index.d.ts.map +1 -0
  227. package/dist/types/molecules/Carousel/styles.d.ts +31 -0
  228. package/dist/types/molecules/Carousel/styles.d.ts.map +1 -0
  229. package/dist/types/molecules/Carousel/useIsMobile.d.ts +3 -0
  230. package/dist/types/molecules/Carousel/useIsMobile.d.ts.map +1 -0
  231. package/dist/types/molecules/CodeView/highlight.d.ts +11 -0
  232. package/dist/types/molecules/CodeView/highlight.d.ts.map +1 -0
  233. package/dist/types/molecules/CodeView/index.d.ts +58 -0
  234. package/dist/types/molecules/CodeView/index.d.ts.map +1 -0
  235. package/dist/types/molecules/CodeView/styles.d.ts +44 -0
  236. package/dist/types/molecules/CodeView/styles.d.ts.map +1 -0
  237. package/dist/types/molecules/CodeView/tokenizer.d.ts +21 -0
  238. package/dist/types/molecules/CodeView/tokenizer.d.ts.map +1 -0
  239. package/dist/types/molecules/DiffLegend/index.d.ts +20 -0
  240. package/dist/types/molecules/DiffLegend/index.d.ts.map +1 -0
  241. package/dist/types/molecules/DiffLegend/styles.d.ts +19 -0
  242. package/dist/types/molecules/DiffLegend/styles.d.ts.map +1 -0
  243. package/dist/types/molecules/FilterBar/index.d.ts +20 -0
  244. package/dist/types/molecules/FilterBar/index.d.ts.map +1 -0
  245. package/dist/types/molecules/FilterBar/styles.d.ts +15 -0
  246. package/dist/types/molecules/FilterBar/styles.d.ts.map +1 -0
  247. package/dist/types/molecules/HtmlEditor/index.d.ts +16 -0
  248. package/dist/types/molecules/HtmlEditor/index.d.ts.map +1 -0
  249. package/dist/types/molecules/HtmlEditor/styles.d.ts +12 -0
  250. package/dist/types/molecules/HtmlEditor/styles.d.ts.map +1 -0
  251. package/dist/types/molecules/NavTabs/index.d.ts +24 -0
  252. package/dist/types/molecules/NavTabs/index.d.ts.map +1 -0
  253. package/dist/types/molecules/NavTabs/styles.d.ts +15 -0
  254. package/dist/types/molecules/NavTabs/styles.d.ts.map +1 -0
  255. package/dist/types/molecules/PageHeader/index.d.ts +15 -0
  256. package/dist/types/molecules/PageHeader/index.d.ts.map +1 -0
  257. package/dist/types/molecules/PageHeader/styles.d.ts +13 -0
  258. package/dist/types/molecules/PageHeader/styles.d.ts.map +1 -0
  259. package/dist/types/molecules/ScorePanel/index.d.ts +70 -0
  260. package/dist/types/molecules/ScorePanel/index.d.ts.map +1 -0
  261. package/dist/types/molecules/ScorePanel/styles.d.ts +63 -0
  262. package/dist/types/molecules/ScorePanel/styles.d.ts.map +1 -0
  263. package/dist/types/molecules/ScorePills/index.d.ts +25 -0
  264. package/dist/types/molecules/ScorePills/index.d.ts.map +1 -0
  265. package/dist/types/molecules/ScorePills/styles.d.ts +8 -0
  266. package/dist/types/molecules/ScorePills/styles.d.ts.map +1 -0
  267. package/dist/types/molecules/SearchInput/index.d.ts +11 -0
  268. package/dist/types/molecules/SearchInput/index.d.ts.map +1 -0
  269. package/dist/types/molecules/SearchInput/styles.d.ts +24 -0
  270. package/dist/types/molecules/SearchInput/styles.d.ts.map +1 -0
  271. package/dist/types/molecules/Select/index.d.ts +18 -0
  272. package/dist/types/molecules/Select/index.d.ts.map +1 -0
  273. package/dist/types/molecules/Select/styles.d.ts +51 -0
  274. package/dist/types/molecules/Select/styles.d.ts.map +1 -0
  275. package/dist/types/molecules/SliderField/index.d.ts +26 -0
  276. package/dist/types/molecules/SliderField/index.d.ts.map +1 -0
  277. package/dist/types/molecules/SliderField/styles.d.ts +20 -0
  278. package/dist/types/molecules/SliderField/styles.d.ts.map +1 -0
  279. package/dist/types/molecules/StatGrid/index.d.ts +12 -0
  280. package/dist/types/molecules/StatGrid/index.d.ts.map +1 -0
  281. package/dist/types/molecules/StatGrid/styles.d.ts +9 -0
  282. package/dist/types/molecules/StatGrid/styles.d.ts.map +1 -0
  283. package/dist/types/molecules/StatusLabel/index.d.ts +51 -0
  284. package/dist/types/molecules/StatusLabel/index.d.ts.map +1 -0
  285. package/dist/types/molecules/StatusLabel/styles.d.ts +18 -0
  286. package/dist/types/molecules/StatusLabel/styles.d.ts.map +1 -0
  287. package/dist/types/molecules/Table/TableCels/BrandCell.d.ts +9 -0
  288. package/dist/types/molecules/Table/TableCels/BrandCell.d.ts.map +1 -0
  289. package/dist/types/molecules/Table/TableCels/ContentCell.d.ts +13 -0
  290. package/dist/types/molecules/Table/TableCels/ContentCell.d.ts.map +1 -0
  291. package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts +8 -0
  292. package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts.map +1 -0
  293. package/dist/types/molecules/Table/TableCels/StatusCell.d.ts +9 -0
  294. package/dist/types/molecules/Table/TableCels/StatusCell.d.ts.map +1 -0
  295. package/dist/types/molecules/Table/TableCels/TextCell.d.ts +9 -0
  296. package/dist/types/molecules/Table/TableCels/TextCell.d.ts.map +1 -0
  297. package/dist/types/molecules/Table/TableCels/index.d.ts +8 -0
  298. package/dist/types/molecules/Table/TableCels/index.d.ts.map +1 -0
  299. package/dist/types/molecules/Table/TableCels/styles.d.ts +52 -0
  300. package/dist/types/molecules/Table/TableCels/styles.d.ts.map +1 -0
  301. package/dist/types/molecules/Table/index.d.ts +38 -0
  302. package/dist/types/molecules/Table/index.d.ts.map +1 -0
  303. package/dist/types/molecules/Table/styles.d.ts +25 -0
  304. package/dist/types/molecules/Table/styles.d.ts.map +1 -0
  305. package/dist/types/molecules/TokenInputField/index.d.ts +15 -0
  306. package/dist/types/molecules/TokenInputField/index.d.ts.map +1 -0
  307. package/dist/types/molecules/TokenInputField/styles.d.ts +24 -0
  308. package/dist/types/molecules/TokenInputField/styles.d.ts.map +1 -0
  309. package/dist/types/shared/modals/index.d.ts +33 -0
  310. package/dist/types/shared/modals/index.d.ts.map +1 -0
  311. package/dist/types/shared/modals/styles.d.ts +52 -0
  312. package/dist/types/shared/modals/styles.d.ts.map +1 -0
  313. package/dist/types/shared/modals/useModal.d.ts +4 -0
  314. package/dist/types/shared/modals/useModal.d.ts.map +1 -0
  315. package/dist/types/shared/report-ui/DecisionPanel.d.ts +53 -0
  316. package/dist/types/shared/report-ui/DecisionPanel.d.ts.map +1 -0
  317. package/dist/types/shared/report-ui/DecisionPanel.styles.d.ts +31 -0
  318. package/dist/types/shared/report-ui/DecisionPanel.styles.d.ts.map +1 -0
  319. package/dist/types/shared/report-ui/Pagination.d.ts +13 -0
  320. package/dist/types/shared/report-ui/Pagination.d.ts.map +1 -0
  321. package/dist/types/shared/report-ui/Pagination.styles.d.ts +13 -0
  322. package/dist/types/shared/report-ui/Pagination.styles.d.ts.map +1 -0
  323. package/dist/types/shared/report-ui/Shell.styles.d.ts +26 -0
  324. package/dist/types/shared/report-ui/Shell.styles.d.ts.map +1 -0
  325. package/dist/types/shared/report-ui/index.d.ts +8 -0
  326. package/dist/types/shared/report-ui/index.d.ts.map +1 -0
  327. package/dist/types/shared/report-ui/ui.d.ts +30 -0
  328. package/dist/types/shared/report-ui/ui.d.ts.map +1 -0
  329. package/dist/types/shared/report-ui/ui.styles.d.ts +50 -0
  330. package/dist/types/shared/report-ui/ui.styles.d.ts.map +1 -0
  331. package/dist/types/shared/toasts/index.d.ts +23 -0
  332. package/dist/types/shared/toasts/index.d.ts.map +1 -0
  333. package/dist/types/shared/toasts/styles.d.ts +18 -0
  334. package/dist/types/shared/toasts/styles.d.ts.map +1 -0
  335. package/dist/types/textures/Cloud/index.d.ts +29 -0
  336. package/dist/types/textures/Cloud/index.d.ts.map +1 -0
  337. package/dist/types/textures/Paper/index.d.ts +8 -0
  338. package/dist/types/textures/Paper/index.d.ts.map +1 -0
  339. package/dist/types/textures/index.d.ts +4 -0
  340. package/dist/types/textures/index.d.ts.map +1 -0
  341. package/dist/typography.js +82 -0
  342. package/dist/validation.js +20 -0
  343. package/dist/wide-image.js +97 -0
  344. package/package.json +2100 -5
package/dist/table.js ADDED
@@ -0,0 +1,132 @@
1
+ import "react";
2
+ import { Select as e } from "@md-code/components/select";
3
+ import { Pagination as t } from "@md-code/components/pagination";
4
+ import n from "styled-components";
5
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
+ // molecules/Table/TableCels/styles.ts
7
+ var a = n.div`
8
+ padding: ${({ theme: e }) => e.offsets.elementContent};
9
+ font-size: inherit;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: ${({ $align: e }) => e === "center" ? "center" : e === "right" ? "flex-end" : "flex-start"};
13
+ color: inherit;
14
+ grid-column: ${({ $spanAll: e }) => e ? "1 / -1" : "auto"};
15
+
16
+ a {
17
+ text-decoration: underline;
18
+ }
19
+
20
+ /*
21
+ * The dense row (a grid carrying the data-size attribute set to "small"): the
22
+ * cell's text takes the zone's regular step instead of the page's body size,
23
+ * which is what makes a long list dense without touching any other screen's
24
+ * cells. The attribute is the whole contract between a grid and its cells —
25
+ * the cell names no grid, so a cell outside such a grid stays as it is.
26
+ */
27
+ [data-size="small"] & {
28
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
29
+ }
30
+ `, o = n.th`
31
+ padding: ${({ theme: e }) => e.offsets.elementContent};
32
+ text-align: ${({ $align: e }) => e || "left"};
33
+ font-weight: ${({ theme: e }) => e.font.weight.text};
34
+ color: ${({ theme: e }) => e.colors.sectionContent};
35
+ border-bottom: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
36
+ `, s = n(o)`
37
+ position: sticky;
38
+ top: 0;
39
+ z-index: ${({ theme: e }) => e.zIndex.overlay};
40
+ `;
41
+ n(a)`
42
+ white-space: nowrap;
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ display: block;
46
+ `;
47
+ // molecules/Table/styles.ts
48
+ var c = n.div`
49
+ overflow-x: auto;
50
+ `, l = n.div`
51
+ display: grid;
52
+ grid-template-columns: ${({ $colsTemplate: e }) => e};
53
+ width: 100%;
54
+ background-color: ${({ theme: e }) => e.colors.section};
55
+
56
+ /*
57
+ * effects.texture is one string per theme (README §4.1, §5.3): noise themes
58
+ * supply a url() for background-image, glass themes supply blur() for
59
+ * backdrop-filter. The grid cannot know which theme is active, so it hands
60
+ * the value to BOTH properties; each property keeps only the value it
61
+ * understands and ignores the other (blur() in background-image computes to
62
+ * none, and url() left in backdrop-filter is visually inert — verified in
63
+ * Chromium). Both themes therefore texture the grid without a name check.
64
+ */
65
+ background-image: ${({ theme: e }) => e.effects.texture};
66
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
67
+ border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
68
+ border-radius: ${({ theme: e }) => e.border.radius};
69
+ box-shadow: ${({ theme: e }) => e.shadows.section};
70
+ /* clip keeps the radius a clipping shape without making the grid a scroll
71
+ container, so a sticky header still rides the page scroll. */
72
+ overflow: clip;
73
+
74
+ /* The header sits on the same section surface; a content-colour underline
75
+ separates it from the body (В1, В3). */
76
+ .header-cell {
77
+ background-color: ${({ theme: e }) => e.colors.section};
78
+ color: ${({ theme: e }) => e.colors.sectionContent};
79
+ font-family: ${({ theme: e }) => e.font.family.title};
80
+ font-weight: ${({ theme: e }) => e.font.weight.text};
81
+ text-transform: uppercase;
82
+ font-size: ${({ theme: e }) => e.font.sizes.small};
83
+ letter-spacing: ${({ theme: e }) => e.font.spacing};
84
+ border-bottom: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
85
+ padding: ${({ theme: e }) => e.offsets.elementContent};
86
+ }
87
+
88
+ /* Each body row is separated by a content-colour rule; hover dims it with
89
+ the overlay layer. */
90
+ & > div:not(.header-cell) {
91
+ border-bottom: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
92
+ transition: background ${({ theme: e }) => e.animation.speed.normal}
93
+ ${({ theme: e }) => e.animation.easing.standard};
94
+ }
95
+
96
+ & > div:not(.header-cell):hover {
97
+ background-color: ${({ theme: e }) => e.colors.overlay};
98
+ }
99
+ `, u = n.div`
100
+ display: flex;
101
+ justify-content: flex-end;
102
+ padding: ${({ theme: e }) => e.offsets.elementContent} 0;
103
+ gap: ${({ theme: e }) => e.offsets.elementContent};
104
+ align-items: center;
105
+ `, d = ({ children: e, align: t, $spanAll: n }) => /* @__PURE__ */ r(a, {
106
+ $align: t,
107
+ $spanAll: n,
108
+ children: e
109
+ }), f = ({ children: n, headerCols: a, colsTemplate: d, pagination: f, rowsPerPage: p, scroll: m = !1, stickyHeader: h = !1, size: g = "regular" }) => {
110
+ let _ = (e) => {
111
+ e && p?.changeElementsPerPage(Number(e.value));
112
+ }, v = h ? s : o, y = /* @__PURE__ */ i(l, {
113
+ $colsTemplate: d,
114
+ "data-size": g,
115
+ children: [a?.map(({ text: e, sort: t = () => {}, isSortable: n, align: r }) => /* @__PURE__ */ i(v, {
116
+ onClick: t,
117
+ $align: r,
118
+ className: "header-cell",
119
+ children: [e, n && "⟠"]
120
+ }, e)), n]
121
+ });
122
+ return /* @__PURE__ */ i("div", { children: [m ? /* @__PURE__ */ r(c, { children: y }) : y, (f || p) && /* @__PURE__ */ i(u, { children: [f && /* @__PURE__ */ r(t, {
123
+ totalPages: f.totalPages,
124
+ currentPage: f.current,
125
+ onPageChange: (e) => f.changePage(e)
126
+ }), p && /* @__PURE__ */ r(e, {
127
+ value: p.options[0],
128
+ options: p.options,
129
+ onChange: _
130
+ })] })] });
131
+ };
132
+ export { d as ContentCell, f as default };
package/dist/tabs.js ADDED
@@ -0,0 +1,156 @@
1
+ import { useState as e } from "react";
2
+ import t, { css as n } from "styled-components";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ // atoms/Tabs/styles.ts
5
+ var a = n`
6
+ height: 100vh;
7
+ padding-top: ${({ theme: e }) => e.elements.header.height};
8
+ box-sizing: border-box;
9
+ `, o = n`
10
+ display: grid;
11
+ grid-template-columns: calc(${({ theme: e }) => e.elements.form.height} * 5) 1fr;
12
+ ${({ $expanded: e }) => e && a}
13
+ min-height: 0;
14
+ border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
15
+ border-radius: ${({ theme: e }) => e.border.radius};
16
+ background: ${({ theme: e }) => e.colors.section};
17
+
18
+ /*
19
+ * effects.texture is one string per theme (README §4.1, §5.3): noise themes
20
+ * supply a url() for background-image, glass themes supply blur() for
21
+ * backdrop-filter. The shell cannot know which theme is active, so it hands
22
+ * the value to BOTH properties; each property keeps only the value it
23
+ * understands and ignores the other (blur() in background-image computes to
24
+ * none, and url() left in backdrop-filter is visually inert — verified in
25
+ * Chromium). Both themes therefore texture the shell without a name check.
26
+ */
27
+ background-image: ${({ theme: e }) => e.effects.texture};
28
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
29
+ overflow: hidden;
30
+ `, s = n`
31
+ border-right: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
32
+ background: ${({ theme: e }) => e.colors.overlay};
33
+ overflow-y: auto;
34
+ height: 100%;
35
+ min-width: calc(${({ theme: e }) => e.elements.form.height} * 5);
36
+ `, c = n`
37
+ border-bottom: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
38
+ background: ${({ theme: e }) => e.colors.overlay};
39
+ `, l = n`
40
+ min-width: ${({ theme: e }) => e.elements.form.minWidth};
41
+ `, u = n`
42
+ border-bottom: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.highlighted};
43
+ `, d = n`
44
+ background-color: ${({ theme: e }) => e.colors.overlay};
45
+ `, f = n`
46
+ ${d}
47
+ border-left: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.highlighted};
48
+ `, p = n`
49
+ height: 100%;
50
+ display: flex;
51
+ flex-direction: column;
52
+ `, m = n`
53
+ font-weight: bold;
54
+ ${({ $orientation: e }) => e === "horizontal" && u}
55
+ ${({ $orientation: e }) => e === "vertical" && f}
56
+ `, h = t.div`
57
+ width: 100%;
58
+ display: flex;
59
+ flex-direction: ${({ $orientation: e }) => e === "vertical" ? "row" : "column"};
60
+ ${({ $orientation: e }) => e === "vertical" && o}
61
+ `, g = t.div`
62
+ display: flex;
63
+ flex-direction: ${({ $orientation: e }) => e === "vertical" ? "column" : "row"};
64
+ ${({ $orientation: e }) => e === "vertical" && s}
65
+ ${({ $orientation: e }) => e === "horizontal" && c}
66
+ `, _ = t.button`
67
+ cursor: pointer;
68
+ padding: ${({ theme: e }) => e.offsets.elementContent};
69
+ background-color: transparent;
70
+ color: ${({ theme: e }) => e.colors.sectionContent};
71
+ border: none;
72
+ font-family: ${({ theme: e }) => e.font.family.text};
73
+
74
+ /* Label weight is component semantics: normal at rest, only the selected tab
75
+ * is bold (the theme's text weight would embolden every viking tab and lose
76
+ * the selected-only emphasis of the baseline, documented deviation). */
77
+ font-weight: normal;
78
+ text-transform: ${({ theme: e }) => e.font.transform.text};
79
+ border-radius: ${({ theme: e }) => e.border.radius};
80
+ text-align: left;
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: ${({ $orientation: e }) => e === "vertical" ? "flex-start" : "center"};
84
+ transition:
85
+ color ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.standard},
86
+ background-color ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.standard};
87
+ ${({ $orientation: e }) => e === "horizontal" && l}
88
+
89
+ &:hover {
90
+ ${d}
91
+ color: ${({ theme: e }) => e.colors.highlighted};
92
+ text-shadow: ${({ theme: e }) => e.shadows.content};
93
+ }
94
+
95
+ ${({ $active: e }) => e && m}
96
+ `, v = t.div`
97
+ padding: ${({ theme: e }) => e.offsets.elementContent};
98
+ flex: 1;
99
+ overflow: auto;
100
+ ${({ $orientation: e }) => e === "vertical" && p}
101
+ `, y = ({ tabs: t, orientation: n = "horizontal", defaultActiveTab: a = 0, onTabChange: o, containerStyle: s, className: c, expanded: l }) => {
102
+ let [u, d] = e(a), f = (e) => {
103
+ d(e), o && o(e);
104
+ }, p = (e, r) => {
105
+ if (e.key === "Enter" || e.key === " ") f(r);
106
+ else if (e.key === "ArrowRight" && n === "horizontal") {
107
+ let e = (r + 1) % t.length;
108
+ f(e);
109
+ } else if (e.key === "ArrowLeft" && n === "horizontal") {
110
+ let e = (r - 1 + t.length) % t.length;
111
+ f(e);
112
+ } else if (e.key === "ArrowDown" && n === "vertical") {
113
+ let e = (r + 1) % t.length;
114
+ f(e);
115
+ } else if (e.key === "ArrowUp" && n === "vertical") {
116
+ let e = (r - 1 + t.length) % t.length;
117
+ f(e);
118
+ }
119
+ };
120
+ return /* @__PURE__ */ i(h, {
121
+ className: c,
122
+ $orientation: n,
123
+ $expanded: l,
124
+ "data-orientation": n,
125
+ children: [/* @__PURE__ */ r(g, {
126
+ className: "tab-list",
127
+ $orientation: n,
128
+ role: "tablist",
129
+ "data-orientation": n,
130
+ children: t.map((e, t) => /* @__PURE__ */ r(_, {
131
+ className: "tab-button",
132
+ role: "tab",
133
+ $active: t === u,
134
+ $orientation: n,
135
+ onClick: () => f(t),
136
+ onKeyDown: (e) => p(e, t),
137
+ id: `tab-${t}`,
138
+ "aria-controls": `panel-${t}`,
139
+ "aria-selected": t === u,
140
+ tabIndex: t === u ? 0 : -1,
141
+ "data-state": t === u ? "active" : "inactive",
142
+ "data-orientation": n,
143
+ children: e.label
144
+ }, t))
145
+ }), t.map((e, t) => /* @__PURE__ */ r(v, {
146
+ role: "tabpanel",
147
+ id: `panel-${t}`,
148
+ "aria-labelledby": `tab-${t}`,
149
+ hidden: t !== u,
150
+ $orientation: n,
151
+ style: t === u ? s : { display: "none" },
152
+ children: e.content
153
+ }, t))]
154
+ });
155
+ };
156
+ export { y as Tabs };
@@ -0,0 +1,64 @@
1
+ import e from "styled-components";
2
+ import { withOffsetBottom as t, withOffsetsRight as n } from "@md-code/styles";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ // atoms/TextCheckbox/index.tsx
5
+ var a = e.div`
6
+ display: inline-block;
7
+ margin-right: ${n};
8
+ margin-bottom: ${t};
9
+ cursor: pointer;
10
+ `, o = e.input`
11
+ display: none;
12
+ ${({ $fullWidth: e }) => e ? "width: 100%;" : ""}
13
+
14
+ & + label {
15
+ display: flex;
16
+ align-items: center;
17
+ gap: ${({ theme: e }) => e.offsets.elementContent};
18
+ ${({ $fullWidth: e }) => e ? "width: 100%;" : ""}
19
+ height: ${({ theme: e }) => e.elements.form.height};
20
+ padding: ${({ theme: e }) => e.offsets.elementContent};
21
+ box-sizing: border-box;
22
+ font-family: ${({ theme: e }) => e.font.family.text};
23
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
24
+ font-weight: ${({ theme: e }) => e.font.weight.text};
25
+ color: ${({ theme: e }) => e.colors.sectionContent};
26
+ background-color: ${({ theme: e }) => e.colors.overlay};
27
+
28
+ /* One texture string for both texture properties (README §4.1, §5.3). */
29
+ background-image: ${({ theme: e }) => e.effects.texture};
30
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
31
+ border: ${({ theme: e }) => e.border.size} solid
32
+ color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
33
+ border-radius: ${({ theme: e }) => e.border.radius};
34
+ clip-path: ${({ theme: e }) => e.geometry.shape};
35
+ cursor: pointer;
36
+ transition:
37
+ background-color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard},
38
+ color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
39
+ }
40
+
41
+ &:checked + label {
42
+ color: ${({ theme: e }) => e.colors.highlightedContent};
43
+ background-color: ${({ theme: e }) => e.colors.highlighted};
44
+ border-color: ${({ theme: e }) => e.colors.highlighted};
45
+ }
46
+
47
+ & + label:hover {
48
+ ${({ theme: e }) => e.effects.interaction.hover}
49
+ }
50
+ `, s = ({ name: e, id: t, label: n, $offsetBottom: s, $offsetRight: c, $fullWidth: l, ...u }) => /* @__PURE__ */ i(a, {
51
+ $offsetBottom: s,
52
+ $offsetRight: c,
53
+ children: [/* @__PURE__ */ r(o, {
54
+ id: t,
55
+ name: e,
56
+ type: "checkbox",
57
+ $fullWidth: l,
58
+ ...u
59
+ }), /* @__PURE__ */ r("label", {
60
+ htmlFor: t,
61
+ children: n || e
62
+ })]
63
+ });
64
+ export { s as TextCheckbox };
@@ -0,0 +1,20 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ // atoms/TextLink/styles.ts
5
+ var n = e.a`
6
+ color: ${({ $status: e, theme: t }) => e ? t.colors.status?.[e]?.content ?? t.colors.sectionContent : t.colors.sectionContent};
7
+ text-decoration: ${({ $underline: e = !0 }) => e ? "underline" : "none"};
8
+ border-radius: ${({ theme: e }) => e.border.radius};
9
+ transition: color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
10
+
11
+ &:hover {
12
+ ${({ theme: e }) => e.effects.interaction.hover}
13
+ }
14
+ `, r = ({ $status: e, $underline: r = !0, children: i, ...a }) => /* @__PURE__ */ t(n, {
15
+ $status: e,
16
+ $underline: r,
17
+ ...a,
18
+ children: i
19
+ });
20
+ export { r as TextLink };
@@ -0,0 +1,56 @@
1
+ import e from "styled-components";
2
+ import { withOffsetBottom as t, withOffsetsRight as n } from "@md-code/styles";
3
+ // atoms/Textarea/index.tsx
4
+ var r = e.textarea`
5
+ display: block;
6
+ ${({ $fullWidth: e }) => e ? "width: 100%;" : ""}
7
+ min-height: ${({ theme: e }) => `calc(${e.elements.form.height} * 3)`};
8
+ margin-right: ${n};
9
+ margin-bottom: ${t};
10
+ padding: ${({ theme: e }) => e.offsets.elementContent};
11
+ resize: vertical;
12
+ color: ${({ theme: e }) => e.colors.sectionContent};
13
+ font-family: ${({ theme: e }) => e.font.family.text};
14
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
15
+ font-weight: ${({ theme: e }) => e.font.weight.text};
16
+ background-color: ${({ theme: e }) => e.colors.overlay};
17
+
18
+ /*
19
+ * One texture string per theme, handed to both texture properties (README
20
+ * §4.1, §5.3): background-image keeps a noise url(), backdrop-filter keeps a
21
+ * glass blur(), and each property ignores the value it cannot parse.
22
+ */
23
+ background-image: ${({ theme: e }) => e.effects.texture};
24
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
25
+
26
+ /*
27
+ * Like the single-line input, the textarea is a sunken field: only an
28
+ * underline, derived from sectionContent (no disabled pair, §5.1), so the
29
+ * mute stays a theme derivation rather than a stored grey.
30
+ */
31
+ border: none;
32
+ border-bottom: ${({ theme: e }) => e.border.size} solid
33
+ color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
34
+ border-radius: ${({ theme: e }) => e.border.radius};
35
+ clip-path: ${({ theme: e }) => e.geometry.shape};
36
+ box-shadow: ${({ theme: e }) => e.shadows.section};
37
+ transition:
38
+ color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard},
39
+ border-color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard},
40
+ box-shadow ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
41
+
42
+ &::placeholder {
43
+ color: ${({ theme: e }) => e.colors.sectionContent};
44
+ opacity: 0.5;
45
+ font-style: italic;
46
+ }
47
+
48
+ /* The focus accent is a state (§4.3): text, caret and underline highlight. */
49
+ &:focus-visible {
50
+ ${({ theme: e }) => e.effects.interaction.focus}
51
+ color: ${({ theme: e }) => e.colors.highlighted};
52
+ caret-color: ${({ theme: e }) => e.colors.highlighted};
53
+ border-bottom-color: ${({ theme: e }) => e.colors.highlighted};
54
+ }
55
+ `;
56
+ export { r as Textarea };
@@ -0,0 +1,52 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg">
2
+ <filter id="filter-base">
3
+ <feTurbulence type="fractalNoise" baseFrequency="0.011" numOctaves="5" seed="8517" />
4
+ <feDisplacementMap in="SourceGraphic" scale="71" class="filter-scale" >
5
+ <animate
6
+ attributeName="scale"
7
+ values="71;180;71"
8
+ dur="10s"
9
+ fill="freeze"
10
+ repeatCount="indefinite"
11
+ />
12
+ </feDisplacementMap>
13
+ </filter>
14
+
15
+ <filter id="filter-back">
16
+ <feTurbulence type="fractalNoise" baseFrequency="0.011" numOctaves="3" seed="8517" />
17
+ <feDisplacementMap in="SourceGraphic" scale="71">
18
+ <animate
19
+ attributeName="scale"
20
+ values="71;180;71"
21
+ dur="10s"
22
+ fill="freeze"
23
+ repeatCount="indefinite"
24
+ />
25
+ </feDisplacementMap>
26
+ </filter>
27
+
28
+ <filter id="filter-mid">
29
+ <feTurbulence type="fractalNoise" baseFrequency="0.011" numOctaves="3" seed="8517"/>
30
+ <feDisplacementMap in="SourceGraphic" scale="71" class="filter-scale" > <animate
31
+ attributeName="scale"
32
+ values="71;180;71"
33
+ dur="8s"
34
+ fill="freeze"
35
+ repeatCount="indefinite"
36
+ />
37
+ </feDisplacementMap>
38
+ </filter>
39
+
40
+ <filter id="filter-front">
41
+ <feTurbulence type="fractalNoise" baseFrequency="0.009" numOctaves="4" seed="8517"/>
42
+ <feDisplacementMap in="SourceGraphic" scale="71" class="filter-scale" >
43
+ <animate
44
+ attributeName="scale"
45
+ values="71;180;71"
46
+ dur="7s"
47
+ fill="freeze"
48
+ repeatCount="indefinite"
49
+ />
50
+ </feDisplacementMap>
51
+ </filter>
52
+ </svg>
@@ -0,0 +1,170 @@
1
+ import "react";
2
+ import e, { css as t, keyframes as n } from "styled-components";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ // textures/Cloud/index.tsx
5
+ var a = "data%3Aimage%2Fsvg%2Bxml%2C%253csvg%2520xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%253e%253cfilter%2520id%3D'filter-base'%253e%253cfeTurbulence%2520type%3D'fractalNoise'%2520baseFrequency%3D'0.011'%2520numOctaves%3D'5'%2520seed%3D'8517'%2520%2F%253e%253cfeDisplacementMap%2520in%3D'SourceGraphic'%2520scale%3D'71'%2520class%3D'filter-scale'%2520%253e%253canimate%2520attributeName%3D'scale'%2520values%3D'71%3B180%3B71'%2520dur%3D'10s'%2520fill%3D'freeze'%2520repeatCount%3D'indefinite'%2520%2F%253e%253c%2FfeDisplacementMap%253e%253c%2Ffilter%253e%253cfilter%2520id%3D'filter-back'%253e%253cfeTurbulence%2520type%3D'fractalNoise'%2520baseFrequency%3D'0.011'%2520numOctaves%3D'3'%2520seed%3D'8517'%2520%2F%253e%253cfeDisplacementMap%2520in%3D'SourceGraphic'%2520scale%3D'71'%253e%253canimate%2520attributeName%3D'scale'%2520values%3D'71%3B180%3B71'%2520dur%3D'10s'%2520fill%3D'freeze'%2520repeatCount%3D'indefinite'%2520%2F%253e%253c%2FfeDisplacementMap%253e%253c%2Ffilter%253e%253cfilter%2520id%3D'filter-mid'%253e%253cfeTurbulence%2520type%3D'fractalNoise'%2520baseFrequency%3D'0.011'%2520numOctaves%3D'3'%2520seed%3D'8517'%2F%253e%253cfeDisplacementMap%2520in%3D'SourceGraphic'%2520scale%3D'71'%2520class%3D'filter-scale'%2520%253e%253canimate%2520attributeName%3D'scale'%2520values%3D'71%3B180%3B71'%2520dur%3D'8s'%2520fill%3D'freeze'%2520repeatCount%3D'indefinite'%2520%2F%253e%253c%2FfeDisplacementMap%253e%253c%2Ffilter%253e%253cfilter%2520id%3D'filter-front'%253e%253cfeTurbulence%2520type%3D'fractalNoise'%2520baseFrequency%3D'0.009'%2520numOctaves%3D'4'%2520seed%3D'8517'%2F%253e%253cfeDisplacementMap%2520in%3D'SourceGraphic'%2520scale%3D'71'%2520class%3D'filter-scale'%2520%253e%253canimate%2520attributeName%3D'scale'%2520values%3D'71%3B180%3B71'%2520dur%3D'7s'%2520fill%3D'freeze'%2520repeatCount%3D'indefinite'%2520%2F%253e%253c%2FfeDisplacementMap%253e%253c%2Ffilter%253e%253c%2Fsvg%253e".replace(/'/g, "%27").replace(/"/g, "%22"), o = n`
6
+ from {
7
+ transform: translateX(0);
8
+ }
9
+ to {
10
+ transform: translateX(-100vw);
11
+ }
12
+ `, s = n`
13
+ 0% {
14
+ transform: translateX(0);
15
+ }
16
+ 99% {
17
+ transform: translateX(-100vw);
18
+ display: block;
19
+ }
20
+ 100% {
21
+ display: none;
22
+ }
23
+ `, c = n`
24
+ 0% {
25
+ transform: translateX(0);
26
+ }
27
+ 99% {
28
+ transform: translateX(100vw);
29
+ display: block;
30
+ }
31
+ 100% {
32
+ display: none;
33
+ }
34
+ `, l = t`
35
+ animation: ${o} 140s linear infinite;
36
+ `, u = t`
37
+ animation: ${o} 190s linear 15s infinite;
38
+ `, d = t`
39
+ animation: ${o} 210s linear 30s infinite;
40
+ `, f = t`
41
+ animation: ${s} 210s linear forwards;
42
+ `, p = t`
43
+ animation: ${c} 210s linear forwards;
44
+ `, m = e.div`
45
+ position: absolute;
46
+ z-index: ${({ theme: e }) => e.zIndex.animatedElements};
47
+ width: calc(${({ theme: e }) => e.elements.form.height} * ${5} * 1.5);
48
+ max-width: 50vw;
49
+ height: ${({ theme: e }) => e.elements.form.height};
50
+ transform: translateX(100vw);
51
+ ${u}
52
+ margin: calc(${({ theme: e }) => e.elements.form.height} * -3);
53
+
54
+ ${({ $size: e, theme: n }) => e === "small" && t`
55
+ width: calc(${n.elements.form.height} * 5 * 0.5);
56
+ max-width: 50vw;
57
+ ${l}
58
+ `}
59
+
60
+ ${({ $size: e, theme: n }) => e === "big" && t`
61
+ width: calc(${n.elements.form.height} * 5 * 2.5);
62
+ max-width: 50vw;
63
+ ${d}
64
+ `}
65
+
66
+ ${({ $position: e }) => e?.includes("top") && "\n top: 10vh;\n "}
67
+
68
+ ${({ $position: e }) => e?.includes("left") && "\n left: 20vw;\n "}
69
+
70
+ ${({ $position: e }) => e?.includes("bottom") && "\n bottom: 40vh;\n "}
71
+
72
+ ${({ $position: e }) => e?.includes("right") && "\n right: 20vw;\n "}
73
+
74
+ ${({ $isinitial: e }) => e ? t`
75
+ transform: translateX(0);
76
+ ${f}
77
+ ` : ""}
78
+
79
+ ${({ $manual: e, $top: n, $left: r, $direction: i, theme: a }) => e ? t`
80
+ top: calc(${a.elements.form.height} * ${n || 0} / 50);
81
+ left: calc(${a.elements.form.height} * ${r || 0} / 50);
82
+ ${i === "right" ? p : f}
83
+ transform: none;
84
+ ` : ""}
85
+ `, h = "\n position: relative;\n border-radius: 50%;\n", g = e.div`
86
+ ${h}
87
+ width: 100%;
88
+ height: 100%;
89
+ filter: url("data:image/svg+xml;utf8,${a}#filter-base");
90
+ box-shadow: ${({ theme: e }) => e.shadows.notification};
91
+ `, _ = e.div`
92
+ ${h}
93
+ margin-top: calc(${({ theme: e }) => e.elements.form.height} * -2);
94
+ height: 50%;
95
+ width: 100%;
96
+ filter: url("data:image/svg+xml;utf8,${a}#filter-back");
97
+ box-shadow: ${({ theme: e }) => e.shadows.notification};
98
+ `, v = e.div`
99
+ ${h}
100
+ margin-top: calc(${({ theme: e }) => e.elements.form.height} * -1.5);
101
+ width: 100%;
102
+ height: 50%;
103
+ filter: url("data:image/svg+xml;utf8,${a}#filter-mid");
104
+ box-shadow: ${({ theme: e }) => e.shadows.notification};
105
+ `, y = e.div`
106
+ ${h}
107
+ margin-top: calc(${({ theme: e }) => e.elements.form.height} * -1.5);
108
+ left: calc(${({ theme: e }) => e.elements.icons.width} * -1);
109
+ width: 100%;
110
+ height: 50%;
111
+ filter: url("data:image/svg+xml;utf8,${a}#filter-front");
112
+ box-shadow: ${({ theme: e }) => e.shadows.notification};
113
+ `, b = ({ $size: e, $position: t, $isinitial: n, $top: a, $left: o, $manual: s, $direction: c }) => /* @__PURE__ */ i(m, {
114
+ $size: e,
115
+ $position: t,
116
+ $isinitial: n,
117
+ $manual: s,
118
+ $direction: c,
119
+ $top: a,
120
+ $left: o,
121
+ children: [
122
+ /* @__PURE__ */ r(g, {}),
123
+ /* @__PURE__ */ r(_, {}),
124
+ /* @__PURE__ */ r(v, {}),
125
+ /* @__PURE__ */ r(y, {})
126
+ ]
127
+ });
128
+ b.displayName = "Cloud";
129
+ // textures/Paper/index.tsx
130
+ var x = e.div`
131
+ position: absolute;
132
+ width: 100%;
133
+ height: 100%;
134
+ filter: url("#paperFilter");
135
+ opacity: 0.3;
136
+ `, S = () => /* @__PURE__ */ r("svg", {
137
+ viewBox: "0 0 640 480",
138
+ width: "0",
139
+ height: "0",
140
+ style: { position: "absolute" },
141
+ children: /* @__PURE__ */ i("filter", {
142
+ id: "paperFilter",
143
+ children: [/* @__PURE__ */ r("feTurbulence", {
144
+ type: "fractalNoise",
145
+ baseFrequency: "0.04",
146
+ numOctaves: "5",
147
+ stitchTiles: "stitch",
148
+ result: "NOISE"
149
+ }), /* @__PURE__ */ r("feDiffuseLighting", {
150
+ lightingColor: "white",
151
+ surfaceScale: "4",
152
+ in: "..",
153
+ result: "..",
154
+ children: /* @__PURE__ */ r("feDistantLight", {
155
+ azimuth: "45",
156
+ elevation: "60"
157
+ })
158
+ })]
159
+ })
160
+ }), C = e.div`
161
+ background-color: ${({ theme: e }) => e.colors.section};
162
+ background-image: ${({ theme: e }) => e.effects.texture};
163
+ box-shadow: ${({ theme: e }) => e.shadows.section};
164
+ color: ${({ theme: e }) => e.colors.sectionContent};
165
+ font-family: ${({ theme: e }) => e.font.family.title};
166
+ box-sizing: border-box;
167
+ overflow: hidden;
168
+ position: relative;
169
+ `;
170
+ export { b as Cloud, _ as CloudBack, g as CloudBase, y as CloudFront, v as CloudMid, x as Paper, C as PaperContainer, S as PaperTexture };