@md-code/components 0.0.1 → 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 (290) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +67 -1
  3. package/dist/avatar.js +3 -3
  4. package/dist/badge.js +18 -18
  5. package/dist/breadcrumbs.js +47 -47
  6. package/dist/button.js +103 -88
  7. package/dist/calendar.js +63 -62
  8. package/dist/caption.js +14 -0
  9. package/dist/card.js +54 -53
  10. package/dist/carousel.js +87 -72
  11. package/dist/central-modal.js +22 -1
  12. package/dist/chip.js +42 -0
  13. package/dist/circle-image.js +12 -12
  14. package/dist/code-preview.js +28 -28
  15. package/dist/code-view-tokenizer.js +35 -0
  16. package/dist/code-view.js +53 -53
  17. package/dist/containers.js +87 -87
  18. package/dist/diff-legend.js +31 -0
  19. package/dist/div-input.js +48 -46
  20. package/dist/empty.js +12 -0
  21. package/dist/filter-bar.js +15 -0
  22. package/dist/form-label.js +11 -11
  23. package/dist/form.js +6 -6
  24. package/dist/full-screen-modal.js +27 -1
  25. package/dist/header.js +14 -14
  26. package/dist/html-editor.js +49 -42
  27. package/dist/icons.js +24 -26
  28. package/dist/input.js +40 -40
  29. package/dist/link.js +25 -25
  30. package/dist/loading.js +161 -66
  31. package/dist/modals.js +130 -1
  32. package/dist/mono-text.js +16 -0
  33. package/dist/nav-tabs.js +33 -0
  34. package/dist/page-header.js +20 -0
  35. package/dist/pagination.js +80 -80
  36. package/dist/progress-bar.js +19 -19
  37. package/dist/radio.js +58 -57
  38. package/dist/report-ui.js +150 -72
  39. package/dist/row.js +15 -0
  40. package/dist/score-panel.js +125 -0
  41. package/dist/score-pills.js +25 -0
  42. package/dist/search-input.js +62 -56
  43. package/dist/select.js +86 -83
  44. package/dist/separator.js +15 -9
  45. package/dist/slider-field.js +34 -0
  46. package/dist/stack.js +16 -0
  47. package/dist/stat-grid.js +10 -0
  48. package/dist/stat.js +24 -0
  49. package/dist/status-label.js +32 -28
  50. package/dist/status-text.js +13 -0
  51. package/dist/submit.js +41 -41
  52. package/dist/subtle-text.js +14 -0
  53. package/dist/surface.js +39 -0
  54. package/dist/switch.js +70 -69
  55. package/dist/table.js +109 -85
  56. package/dist/tabs.js +121 -120
  57. package/dist/text-checkbox.js +48 -48
  58. package/dist/text-link.js +20 -0
  59. package/dist/textarea.js +41 -41
  60. package/dist/textures.js +100 -100
  61. package/dist/toasts.js +48 -48
  62. package/dist/toggle.js +46 -46
  63. package/dist/token-input-field.js +24 -24
  64. package/dist/tooltip.js +61 -59
  65. package/dist/types/atoms/Breadcrumbs/index.d.ts.map +1 -1
  66. package/dist/types/atoms/Breadcrumbs/styles.d.ts.map +1 -1
  67. package/dist/types/atoms/Calendar/index.d.ts +1 -1
  68. package/dist/types/atoms/Calendar/index.d.ts.map +1 -1
  69. package/dist/types/atoms/Calendar/styles.d.ts.map +1 -1
  70. package/dist/types/atoms/Caption/index.d.ts +9 -0
  71. package/dist/types/atoms/Caption/index.d.ts.map +1 -0
  72. package/dist/types/atoms/Caption/styles.d.ts +9 -0
  73. package/dist/types/atoms/Caption/styles.d.ts.map +1 -0
  74. package/dist/types/atoms/CentralModal/index.d.ts.map +1 -1
  75. package/dist/types/atoms/Chip/index.d.ts +39 -0
  76. package/dist/types/atoms/Chip/index.d.ts.map +1 -0
  77. package/dist/types/atoms/Chip/styles.d.ts +19 -0
  78. package/dist/types/atoms/Chip/styles.d.ts.map +1 -0
  79. package/dist/types/atoms/CircleImage/index.d.ts +2 -2
  80. package/dist/types/atoms/CircleImage/index.d.ts.map +1 -1
  81. package/dist/types/atoms/ConditionalWrapper/index.d.ts +1 -1
  82. package/dist/types/atoms/ConditionalWrapper/index.d.ts.map +1 -1
  83. package/dist/types/atoms/Containers/index.d.ts.map +1 -1
  84. package/dist/types/atoms/Containers/styles.d.ts +4 -4
  85. package/dist/types/atoms/Containers/styles.d.ts.map +1 -1
  86. package/dist/types/atoms/DivInput/index.d.ts.map +1 -1
  87. package/dist/types/atoms/Empty/index.d.ts +10 -0
  88. package/dist/types/atoms/Empty/index.d.ts.map +1 -0
  89. package/dist/types/atoms/Empty/styles.d.ts +9 -0
  90. package/dist/types/atoms/Empty/styles.d.ts.map +1 -0
  91. package/dist/types/atoms/Form/Form.d.ts +2 -2
  92. package/dist/types/atoms/Form/Form.d.ts.map +1 -1
  93. package/dist/types/atoms/Form/index.d.ts +10 -10
  94. package/dist/types/atoms/Form/index.d.ts.map +1 -1
  95. package/dist/types/atoms/FormLabel/index.d.ts +1 -1
  96. package/dist/types/atoms/FormLabel/index.d.ts.map +1 -1
  97. package/dist/types/atoms/FullScreenModal/index.d.ts.map +1 -1
  98. package/dist/types/atoms/Header/index.d.ts.map +1 -1
  99. package/dist/types/atoms/Icons/index.d.ts +29 -8
  100. package/dist/types/atoms/Icons/index.d.ts.map +1 -1
  101. package/dist/types/atoms/Input/index.d.ts +1 -1
  102. package/dist/types/atoms/Input/index.d.ts.map +1 -1
  103. package/dist/types/atoms/Input/styles.d.ts +2 -2
  104. package/dist/types/atoms/Input/styles.d.ts.map +1 -1
  105. package/dist/types/atoms/Link/index.d.ts.map +1 -1
  106. package/dist/types/atoms/Link/styles.d.ts.map +1 -1
  107. package/dist/types/atoms/Loading/index.d.ts +10 -4
  108. package/dist/types/atoms/Loading/index.d.ts.map +1 -1
  109. package/dist/types/atoms/Loading/styles.d.ts +4 -2
  110. package/dist/types/atoms/Loading/styles.d.ts.map +1 -1
  111. package/dist/types/atoms/Logo/index.d.ts.map +1 -1
  112. package/dist/types/atoms/MonoText/index.d.ts +23 -0
  113. package/dist/types/atoms/MonoText/index.d.ts.map +1 -0
  114. package/dist/types/atoms/MonoText/styles.d.ts +13 -0
  115. package/dist/types/atoms/MonoText/styles.d.ts.map +1 -0
  116. package/dist/types/atoms/Pagination/index.d.ts.map +1 -1
  117. package/dist/types/atoms/Pagination/styles.d.ts.map +1 -1
  118. package/dist/types/atoms/ProgressBar/index.d.ts +2 -2
  119. package/dist/types/atoms/ProgressBar/index.d.ts.map +1 -1
  120. package/dist/types/atoms/Radio/index.d.ts +2 -2
  121. package/dist/types/atoms/Radio/index.d.ts.map +1 -1
  122. package/dist/types/atoms/Row/index.d.ts +8 -0
  123. package/dist/types/atoms/Row/index.d.ts.map +1 -0
  124. package/dist/types/atoms/Row/styles.d.ts +9 -0
  125. package/dist/types/atoms/Row/styles.d.ts.map +1 -0
  126. package/dist/types/atoms/Separator/index.d.ts +21 -9
  127. package/dist/types/atoms/Separator/index.d.ts.map +1 -1
  128. package/dist/types/atoms/Separator/styles.d.ts +14 -0
  129. package/dist/types/atoms/Separator/styles.d.ts.map +1 -0
  130. package/dist/types/atoms/Stack/index.d.ts +17 -0
  131. package/dist/types/atoms/Stack/index.d.ts.map +1 -0
  132. package/dist/types/atoms/Stack/styles.d.ts +12 -0
  133. package/dist/types/atoms/Stack/styles.d.ts.map +1 -0
  134. package/dist/types/atoms/Stat/index.d.ts +24 -0
  135. package/dist/types/atoms/Stat/index.d.ts.map +1 -0
  136. package/dist/types/atoms/Stat/styles.d.ts +19 -0
  137. package/dist/types/atoms/Stat/styles.d.ts.map +1 -0
  138. package/dist/types/atoms/StatusText/index.d.ts +17 -0
  139. package/dist/types/atoms/StatusText/index.d.ts.map +1 -0
  140. package/dist/types/atoms/StatusText/styles.d.ts +13 -0
  141. package/dist/types/atoms/StatusText/styles.d.ts.map +1 -0
  142. package/dist/types/atoms/Submit/index.d.ts +2 -2
  143. package/dist/types/atoms/Submit/index.d.ts.map +1 -1
  144. package/dist/types/atoms/SubtleText/index.d.ts +17 -0
  145. package/dist/types/atoms/SubtleText/index.d.ts.map +1 -0
  146. package/dist/types/atoms/SubtleText/styles.d.ts +12 -0
  147. package/dist/types/atoms/SubtleText/styles.d.ts.map +1 -0
  148. package/dist/types/atoms/Surface/index.d.ts +34 -0
  149. package/dist/types/atoms/Surface/index.d.ts.map +1 -0
  150. package/dist/types/atoms/Surface/styles.d.ts +27 -0
  151. package/dist/types/atoms/Surface/styles.d.ts.map +1 -0
  152. package/dist/types/atoms/Switch/index.d.ts.map +1 -1
  153. package/dist/types/atoms/Switch/styles.d.ts.map +1 -1
  154. package/dist/types/atoms/Tabs/index.d.ts +1 -1
  155. package/dist/types/atoms/Tabs/index.d.ts.map +1 -1
  156. package/dist/types/atoms/Tabs/styles.d.ts.map +1 -1
  157. package/dist/types/atoms/TextCheckbox/index.d.ts +1 -1
  158. package/dist/types/atoms/TextCheckbox/index.d.ts.map +1 -1
  159. package/dist/types/atoms/TextLink/index.d.ts +22 -0
  160. package/dist/types/atoms/TextLink/index.d.ts.map +1 -0
  161. package/dist/types/atoms/TextLink/styles.d.ts +15 -0
  162. package/dist/types/atoms/TextLink/styles.d.ts.map +1 -0
  163. package/dist/types/atoms/Textarea/index.d.ts +1 -1
  164. package/dist/types/atoms/Textarea/index.d.ts.map +1 -1
  165. package/dist/types/atoms/Toggle/index.d.ts +1 -1
  166. package/dist/types/atoms/Toggle/index.d.ts.map +1 -1
  167. package/dist/types/atoms/Tooltip/index.d.ts.map +1 -1
  168. package/dist/types/atoms/Tooltip/styles.d.ts.map +1 -1
  169. package/dist/types/atoms/Typography/index.d.ts +1 -1
  170. package/dist/types/atoms/Typography/index.d.ts.map +1 -1
  171. package/dist/types/atoms/Typography/styles.d.ts +8 -4
  172. package/dist/types/atoms/Typography/styles.d.ts.map +1 -1
  173. package/dist/types/atoms/Validation/index.d.ts.map +1 -1
  174. package/dist/types/atoms/Validation/styles.d.ts.map +1 -1
  175. package/dist/types/atoms/WideImage/index.d.ts +4 -4
  176. package/dist/types/atoms/WideImage/index.d.ts.map +1 -1
  177. package/dist/types/molecules/Badge/index.d.ts +1 -1
  178. package/dist/types/molecules/Badge/index.d.ts.map +1 -1
  179. package/dist/types/molecules/Button/index.d.ts +1 -1
  180. package/dist/types/molecules/Button/index.d.ts.map +1 -1
  181. package/dist/types/molecules/Button/styles.d.ts +2 -2
  182. package/dist/types/molecules/Button/styles.d.ts.map +1 -1
  183. package/dist/types/molecules/Card/index.d.ts +2 -2
  184. package/dist/types/molecules/Card/index.d.ts.map +1 -1
  185. package/dist/types/molecules/Card/styles.d.ts +1 -1
  186. package/dist/types/molecules/Card/styles.d.ts.map +1 -1
  187. package/dist/types/molecules/Carousel/index.d.ts +1 -1
  188. package/dist/types/molecules/Carousel/index.d.ts.map +1 -1
  189. package/dist/types/molecules/Carousel/styles.d.ts.map +1 -1
  190. package/dist/types/molecules/Carousel/useIsMobile.d.ts +3 -0
  191. package/dist/types/molecules/Carousel/useIsMobile.d.ts.map +1 -0
  192. package/dist/types/molecules/CodeView/highlight.d.ts.map +1 -1
  193. package/dist/types/molecules/CodeView/index.d.ts +5 -5
  194. package/dist/types/molecules/CodeView/index.d.ts.map +1 -1
  195. package/dist/types/molecules/CodeView/styles.d.ts.map +1 -1
  196. package/dist/types/molecules/CodeView/tokenizer.d.ts +21 -0
  197. package/dist/types/molecules/CodeView/tokenizer.d.ts.map +1 -0
  198. package/dist/types/molecules/DiffLegend/index.d.ts +20 -0
  199. package/dist/types/molecules/DiffLegend/index.d.ts.map +1 -0
  200. package/dist/types/molecules/DiffLegend/styles.d.ts +19 -0
  201. package/dist/types/molecules/DiffLegend/styles.d.ts.map +1 -0
  202. package/dist/types/molecules/FilterBar/index.d.ts +20 -0
  203. package/dist/types/molecules/FilterBar/index.d.ts.map +1 -0
  204. package/dist/types/molecules/FilterBar/styles.d.ts +15 -0
  205. package/dist/types/molecules/FilterBar/styles.d.ts.map +1 -0
  206. package/dist/types/molecules/HtmlEditor/index.d.ts.map +1 -1
  207. package/dist/types/molecules/HtmlEditor/styles.d.ts.map +1 -1
  208. package/dist/types/molecules/NavTabs/index.d.ts +24 -0
  209. package/dist/types/molecules/NavTabs/index.d.ts.map +1 -0
  210. package/dist/types/molecules/NavTabs/styles.d.ts +15 -0
  211. package/dist/types/molecules/NavTabs/styles.d.ts.map +1 -0
  212. package/dist/types/molecules/PageHeader/index.d.ts +15 -0
  213. package/dist/types/molecules/PageHeader/index.d.ts.map +1 -0
  214. package/dist/types/molecules/PageHeader/styles.d.ts +13 -0
  215. package/dist/types/molecules/PageHeader/styles.d.ts.map +1 -0
  216. package/dist/types/molecules/ScorePanel/index.d.ts +70 -0
  217. package/dist/types/molecules/ScorePanel/index.d.ts.map +1 -0
  218. package/dist/types/molecules/ScorePanel/styles.d.ts +63 -0
  219. package/dist/types/molecules/ScorePanel/styles.d.ts.map +1 -0
  220. package/dist/types/molecules/ScorePills/index.d.ts +25 -0
  221. package/dist/types/molecules/ScorePills/index.d.ts.map +1 -0
  222. package/dist/types/molecules/ScorePills/styles.d.ts +8 -0
  223. package/dist/types/molecules/ScorePills/styles.d.ts.map +1 -0
  224. package/dist/types/molecules/SearchInput/index.d.ts +2 -2
  225. package/dist/types/molecules/SearchInput/index.d.ts.map +1 -1
  226. package/dist/types/molecules/SearchInput/styles.d.ts +5 -5
  227. package/dist/types/molecules/SearchInput/styles.d.ts.map +1 -1
  228. package/dist/types/molecules/Select/index.d.ts.map +1 -1
  229. package/dist/types/molecules/Select/styles.d.ts.map +1 -1
  230. package/dist/types/molecules/SliderField/index.d.ts +26 -0
  231. package/dist/types/molecules/SliderField/index.d.ts.map +1 -0
  232. package/dist/types/molecules/SliderField/styles.d.ts +20 -0
  233. package/dist/types/molecules/SliderField/styles.d.ts.map +1 -0
  234. package/dist/types/molecules/StatGrid/index.d.ts +12 -0
  235. package/dist/types/molecules/StatGrid/index.d.ts.map +1 -0
  236. package/dist/types/molecules/StatGrid/styles.d.ts +9 -0
  237. package/dist/types/molecules/StatGrid/styles.d.ts.map +1 -0
  238. package/dist/types/molecules/StatusLabel/index.d.ts +1 -1
  239. package/dist/types/molecules/StatusLabel/index.d.ts.map +1 -1
  240. package/dist/types/molecules/StatusLabel/styles.d.ts.map +1 -1
  241. package/dist/types/molecules/Table/TableCels/BrandCell.d.ts +1 -1
  242. package/dist/types/molecules/Table/TableCels/BrandCell.d.ts.map +1 -1
  243. package/dist/types/molecules/Table/TableCels/ContentCell.d.ts +13 -0
  244. package/dist/types/molecules/Table/TableCels/ContentCell.d.ts.map +1 -0
  245. package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts +1 -1
  246. package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts.map +1 -1
  247. package/dist/types/molecules/Table/TableCels/StatusCell.d.ts +4 -4
  248. package/dist/types/molecules/Table/TableCels/StatusCell.d.ts.map +1 -1
  249. package/dist/types/molecules/Table/TableCels/TextCell.d.ts +3 -3
  250. package/dist/types/molecules/Table/TableCels/TextCell.d.ts.map +1 -1
  251. package/dist/types/molecules/Table/TableCels/index.d.ts +7 -6
  252. package/dist/types/molecules/Table/TableCels/index.d.ts.map +1 -1
  253. package/dist/types/molecules/Table/TableCels/styles.d.ts +25 -2
  254. package/dist/types/molecules/Table/TableCels/styles.d.ts.map +1 -1
  255. package/dist/types/molecules/Table/index.d.ts +16 -5
  256. package/dist/types/molecules/Table/index.d.ts.map +1 -1
  257. package/dist/types/molecules/Table/styles.d.ts +11 -1
  258. package/dist/types/molecules/Table/styles.d.ts.map +1 -1
  259. package/dist/types/molecules/TokenInputField/index.d.ts.map +1 -1
  260. package/dist/types/shared/modals/index.d.ts +4 -4
  261. package/dist/types/shared/modals/index.d.ts.map +1 -1
  262. package/dist/types/shared/modals/styles.d.ts.map +1 -1
  263. package/dist/types/shared/modals/useModal.d.ts.map +1 -1
  264. package/dist/types/shared/report-ui/DecisionPanel.d.ts +1 -1
  265. package/dist/types/shared/report-ui/DecisionPanel.d.ts.map +1 -1
  266. package/dist/types/shared/report-ui/DecisionPanel.styles.d.ts.map +1 -1
  267. package/dist/types/shared/report-ui/Pagination.d.ts +13 -0
  268. package/dist/types/shared/report-ui/Pagination.d.ts.map +1 -0
  269. package/dist/types/shared/report-ui/Pagination.styles.d.ts +13 -0
  270. package/dist/types/shared/report-ui/Pagination.styles.d.ts.map +1 -0
  271. package/dist/types/shared/report-ui/Shell.styles.d.ts.map +1 -1
  272. package/dist/types/shared/report-ui/index.d.ts +7 -5
  273. package/dist/types/shared/report-ui/index.d.ts.map +1 -1
  274. package/dist/types/shared/report-ui/ui.d.ts +1 -1
  275. package/dist/types/shared/report-ui/ui.d.ts.map +1 -1
  276. package/dist/types/shared/report-ui/ui.styles.d.ts.map +1 -1
  277. package/dist/types/shared/toasts/index.d.ts +2 -2
  278. package/dist/types/shared/toasts/index.d.ts.map +1 -1
  279. package/dist/types/textures/Cloud/index.d.ts +4 -4
  280. package/dist/types/textures/Cloud/index.d.ts.map +1 -1
  281. package/dist/types/textures/Paper/index.d.ts.map +1 -1
  282. package/dist/types/textures/index.d.ts +3 -3
  283. package/dist/types/textures/index.d.ts.map +1 -1
  284. package/dist/typography.js +71 -70
  285. package/dist/validation.js +15 -15
  286. package/dist/wide-image.js +39 -36
  287. package/package.json +2099 -443
  288. package/dist/CentralModal-ButM9Ggi.js +0 -159
  289. package/dist/dist-DD9Lv2Ja.js +0 -130
  290. package/dist/themes-zS3KQYdw-DIqyzjFD.js +0 -184
@@ -1,115 +1,115 @@
1
- import { a as e, n as t, r as n } from "./dist-DD9Lv2Ja.js";
2
- import r, { css as i } from "styled-components";
1
+ import e, { css as t } from "styled-components";
2
+ import { withFullWidth as n, withOffsetBottom as r, withOffsetsRight as i } from "@md-code/styles";
3
3
  // atoms/Containers/styles.ts
4
- var a = i`
5
- height: auto;
6
- min-height: ${({ theme: e }) => `calc(${e.screens.tablet.height}px - ${e.elements.header.height})`};
7
- max-height: unset;
8
- `, o = (e) => e && a, s = r.div`
9
- padding: ${({ theme: e }) => e.offsets.section};
10
- background-color: ${({ theme: e }) => e.colors.section};
11
- background-image: ${({ theme: e }) => e.effects.texture};
12
- backdrop-filter: ${({ theme: e }) => e.effects.texture};
13
- box-shadow: ${({ theme: e }) => e.shadows.section};
14
- border-top: ${({ theme: e }) => e.border.size} solid
15
- color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
16
- border-bottom: ${({ theme: e }) => e.border.size} solid
17
- color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
4
+ var a = t`
5
+ height: auto;
6
+ min-height: ${({ theme: e }) => `calc(${e.screens.tablet.height}px - ${e.elements.header.height})`};
7
+ max-height: unset;
8
+ `, o = (e) => e && a, s = e.div`
9
+ padding: ${({ theme: e }) => e.offsets.section};
10
+ background-color: ${({ theme: e }) => e.colors.section};
11
+ background-image: ${({ theme: e }) => e.effects.texture};
12
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
13
+ box-shadow: ${({ theme: e }) => e.shadows.section};
14
+ border-top: ${({ theme: e }) => e.border.size} solid
15
+ color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
16
+ border-bottom: ${({ theme: e }) => e.border.size} solid
17
+ color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
18
18
 
19
- @media ${({ theme: e }) => e.screens.tablet.device} {
20
- height: ${({ theme: e }) => `calc(${e.screens.tablet.height}px - ${e.elements.header.height})`};
21
- }
19
+ @media ${({ theme: e }) => e.screens.tablet.device} {
20
+ height: ${({ theme: e }) => `calc(${e.screens.tablet.height}px - ${e.elements.header.height})`};
21
+ }
22
22
 
23
- @media ${({ theme: e }) => e.screens.desktop.device} {
24
- height: ${({ theme: e }) => `calc(${e.screens.desktop.height}px - ${e.elements.header.height})`};
25
- padding: ${({ theme: e }) => e.offsets.section};
26
- }
23
+ @media ${({ theme: e }) => e.screens.desktop.device} {
24
+ height: ${({ theme: e }) => `calc(${e.screens.desktop.height}px - ${e.elements.header.height})`};
25
+ padding: ${({ theme: e }) => e.offsets.section};
26
+ }
27
27
 
28
- ${({ $noHeightLimit: e }) => o(e)}
29
- `, c = r.div`
30
- min-height: 100vh;
31
- padding: ${({ theme: e }) => e.offsets.section};
32
- padding-top: ${({ theme: e }) => e.elements.header.height};
33
- background-color: ${({ theme: e }) => e.colors.section};
34
- `, l = r.div`
35
- width: 100%;
36
- text-align: left;
37
- ${t}
38
- margin-right: ${n};
39
- margin-bottom: ${e};
40
- `, u = r.div`
41
- display: flex;
42
- flex-direction: column;
43
- `, d = r.div`
44
- display: grid;
45
- column-gap: ${({ theme: e }) => e.offsets.betweenElements};
46
- grid-template-rows: 1fr;
47
- grid-template-columns: ${({ $colsRatio: e = ["1fr", "1fr"] }) => e.map((e) => `${e}`).join(" ")};
48
- margin-right: ${n};
49
- margin-bottom: ${e};
50
- `, f = r.div`
51
- display: flex;
52
- flex-wrap: wrap;
53
- gap: ${({ theme: e }) => e.offsets.betweenElements};
54
- padding: ${({ theme: e }) => e.offsets.section} 0;
55
- `, p = r.div`
56
- position: relative;
28
+ ${({ $noHeightLimit: e }) => o(e)}
29
+ `, c = e.div`
30
+ min-height: 100vh;
31
+ padding: ${({ theme: e }) => e.offsets.section};
32
+ padding-top: ${({ theme: e }) => e.elements.header.height};
33
+ background-color: ${({ theme: e }) => e.colors.section};
34
+ `, l = e.div`
35
+ width: 100%;
36
+ text-align: left;
37
+ ${n}
38
+ margin-right: ${i};
39
+ margin-bottom: ${r};
40
+ `, u = e.div`
41
+ display: flex;
42
+ flex-direction: column;
43
+ `, d = e.div`
44
+ display: grid;
45
+ column-gap: ${({ theme: e }) => e.offsets.betweenElements};
46
+ grid-template-rows: 1fr;
47
+ grid-template-columns: ${({ $colsRatio: e = ["1fr", "1fr"] }) => e.map((e) => `${e}`).join(" ")};
48
+ margin-right: ${i};
49
+ margin-bottom: ${r};
50
+ `, f = e.div`
51
+ display: flex;
52
+ flex-wrap: wrap;
53
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
54
+ padding: ${({ theme: e }) => e.offsets.section} 0;
55
+ `, p = e.div`
56
+ position: relative;
57
57
 
58
- &:hover > * {
59
- color: ${({ theme: e }) => e.colors.highlightedContent};
60
- background: ${({ theme: e }) => e.colors.highlighted};
61
- border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.highlighted};
62
- }
63
- `, m = r.div`
64
- display: flex;
65
- align-items: center;
66
- gap: ${({ theme: e }) => e.offsets.elementContent};
67
- ${({ $width: e }) => {
58
+ &:hover > * {
59
+ color: ${({ theme: e }) => e.colors.highlightedContent};
60
+ background: ${({ theme: e }) => e.colors.highlighted};
61
+ border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.highlighted};
62
+ }
63
+ `, m = e.div`
64
+ display: flex;
65
+ align-items: center;
66
+ gap: ${({ theme: e }) => e.offsets.elementContent};
67
+ ${({ $width: e }) => {
68
68
  switch (e) {
69
69
  case "1/2": return "width: 50%;";
70
70
  case "1/3": return "flex: 1;";
71
71
  default: return "width: 100%;";
72
72
  }
73
73
  }}
74
- `, h = r.div`
75
- cursor: pointer;
74
+ `, h = e.div`
75
+ cursor: pointer;
76
76
 
77
- div {
78
- cursor: pointer;
79
- color: ${({ theme: e }) => e.colors.sectionContent};
80
- }
81
- `, g = r.div`
82
- display: flex;
83
- gap: ${({ theme: e }) => e.offsets.betweenElements};
84
- margin-right: ${n};
85
- margin-bottom: ${e};
77
+ div {
78
+ cursor: pointer;
79
+ color: ${({ theme: e }) => e.colors.sectionContent};
80
+ }
81
+ `, g = e.div`
82
+ display: flex;
83
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
84
+ margin-right: ${i};
85
+ margin-bottom: ${r};
86
86
  `, _ = {
87
87
  horizontal: "display: flex; align-items: center;",
88
88
  "horizontal-reversed": "display: flex; align-items: center; flex-direction: row-reverse;",
89
89
  vertical: "display: flex; flex-direction: column;",
90
90
  top: "display: flex; flex-direction: column; justify-content: flex-start;"
91
- }, v = r.section`
92
- position: relative;
93
- width: 100%;
91
+ }, v = e.section`
92
+ position: relative;
93
+ width: 100%;
94
94
 
95
- ${({ $direction: e }) => _[e]}
96
- ${({ $sectionSize: e }) => {
95
+ ${({ $direction: e }) => _[e]}
96
+ ${({ $sectionSize: e }) => {
97
97
  switch (e) {
98
98
  case "full": return "height: 100vh; z-index: 10;";
99
99
  case "medium": return "height: calc(100vh * 0.75);";
100
- case "half": return "height: 50vh;";
100
+ case "half":
101
101
  case "dot-section": return "height: 50vh;";
102
102
  case "footsteps": return "position: absolute; height: auto; overflow: initial;";
103
103
  default: return "";
104
104
  }
105
105
  }}
106
- `, y = r.div`
107
- display: flex;
108
- flex-direction: column;
109
- align-items: center;
110
- justify-content: center;
111
- height: 100%;
112
- width: 50vw;
113
- margin: 0 auto;
106
+ `, y = e.div`
107
+ display: flex;
108
+ flex-direction: column;
109
+ align-items: center;
110
+ justify-content: center;
111
+ height: 100%;
112
+ width: 50vw;
113
+ margin: 0 auto;
114
114
  `;
115
115
  export { s as BasicSection, u as Column, d as ColumnsContainer, f as DashboardCardsContainer, p as FocusedContainer, l as HeadingContainer, h as LinksContainer, g as MenuItemContainer, m as OneLineContainer, c as PageContainer, v as Section, y as TextContainer };
@@ -0,0 +1,31 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
+ // molecules/DiffLegend/styles.ts
5
+ var r = e.div`
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
9
+ margin-top: ${({ theme: e }) => e.offsets.betweenElements};
10
+ padding-top: ${({ theme: e }) => e.offsets.betweenElements};
11
+ border-top: ${({ theme: e }) => e.border.size} dashed
12
+ ${({ theme: e }) => e.colors.status?.edge?.background ?? e.colors.highlighted};
13
+ font-size: ${({ theme: e }) => e.font.sizes.small};
14
+ color: ${({ theme: e }) => e.colors.status?.faint?.content ?? e.colors.sectionContent};
15
+ `, i = e.span`
16
+ display: inline-block;
17
+ width: calc(${({ theme: e }) => e.offsets.betweenElements} - ${({ theme: e }) => e.border.size} * 2);
18
+ height: calc(${({ theme: e }) => e.offsets.betweenElements} - ${({ theme: e }) => e.border.size} * 2);
19
+ border-radius: calc(${({ theme: e }) => e.border.radius} / 3);
20
+ background: ${({ $status: e, theme: t }) => (e ? t.colors.status?.[e] : void 0)?.content ?? t.colors.section};
21
+ margin-right: calc(${({ theme: e }) => e.offsets.betweenElements} / 2 - ${({ theme: e }) => e.border.size});
22
+ vertical-align: baseline;
23
+ `, a = ({ entries: e = [], children: a }) => {
24
+ let o = [];
25
+ for (let r of e) o.push(/* @__PURE__ */ n("span", {
26
+ title: r.title,
27
+ children: [/* @__PURE__ */ t(i, { $status: r.status }), r.label]
28
+ }, r.key));
29
+ return /* @__PURE__ */ n(r, { children: [a, o] });
30
+ };
31
+ export { a as DiffLegend };
package/dist/div-input.js CHANGED
@@ -1,31 +1,32 @@
1
1
  import { useEffect as e, useRef as t, useState as n } from "react";
2
- import { jsx as r } from "react/jsx-runtime";
3
- import i from "styled-components";
2
+ import r from "styled-components";
3
+ import { jsx as i } from "react/jsx-runtime";
4
4
  // atoms/DivInput/index.tsx
5
- var a = i.div`
6
- width: 100%;
7
- height: ${({ theme: e }) => e.elements.form.height};
8
- position: relative;
9
- `, o = i.div`
10
- position: absolute;
11
- overflow-x: hidden;
12
- width: 100%;
13
- padding: ${({ theme: e }) => e.offsets.elementContent};
14
- border-radius: ${({ theme: e }) => e.border.radius};
5
+ var a = r.div`
6
+ width: 100%;
7
+ height: ${({ theme: e }) => e.elements.form.height};
8
+ position: relative;
9
+ `, o = r.div`
10
+ position: absolute;
11
+ overflow-x: hidden;
12
+ width: 100%;
13
+ padding: ${({ theme: e }) => e.offsets.elementContent};
14
+ border-radius: ${({ theme: e }) => e.border.radius};
15
15
 
16
- /*
16
+ /*
17
17
  * The same sunken-field treatment as Input/Textarea: no box border, only an
18
18
  * underline derived from sectionContent (no disabled pair, README §5.1),
19
19
  * the overlay surface and the theme's silhouette/shadow.
20
20
  */
21
- border: none;
22
- border-bottom: ${({ theme: e }) => e.border.size} solid
23
- color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
24
- font-size: ${({ theme: e }) => e.font.sizes.regular};
25
- font-family: ${({ theme: e }) => e.font.family.text};
26
- box-sizing: border-box;
27
- background-color: ${({ theme: e }) => e.colors.overlay};
28
- /*
21
+ border: none;
22
+ border-bottom: ${({ theme: e }) => e.border.size} solid
23
+ color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
24
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
25
+ font-family: ${({ theme: e }) => e.font.family.text};
26
+ box-sizing: border-box;
27
+ background-color: ${({ theme: e }) => e.colors.overlay};
28
+
29
+ /*
29
30
  * effects.texture is one string per theme (README §4.1, §5.3): noise themes
30
31
  * supply a url() for background-image, glass themes supply blur() for
31
32
  * backdrop-filter. The field cannot know which theme is active, so it hands
@@ -34,48 +35,49 @@ var a = i.div`
34
35
  * none, and url() left in backdrop-filter is visually inert — verified in
35
36
  * Chromium). Both themes therefore texture the field without a name check.
36
37
  */
37
- background-image: ${({ theme: e }) => e.effects.texture};
38
- backdrop-filter: ${({ theme: e }) => e.effects.texture};
39
- clip-path: ${({ theme: e }) => e.geometry.shape};
40
- box-shadow: ${({ theme: e }) => e.shadows.section};
41
- color: ${({ theme: e }) => e.colors.sectionContent};
42
- outline: none;
43
- transition: border-color ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.standard};
44
- cursor: text;
45
- white-space: nowrap;
38
+ background-image: ${({ theme: e }) => e.effects.texture};
39
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
40
+ clip-path: ${({ theme: e }) => e.geometry.shape};
41
+ box-shadow: ${({ theme: e }) => e.shadows.section};
42
+ color: ${({ theme: e }) => e.colors.sectionContent};
43
+ outline: none;
44
+ transition: border-color ${({ theme: e }) => e.animation.speed.normal}
45
+ ${({ theme: e }) => e.animation.easing.standard};
46
+ cursor: text;
47
+ white-space: nowrap;
46
48
 
47
- /*
49
+ /*
48
50
  * Focus is a state (README §4.3): the accent may paint text, caret and the
49
51
  * underline. theme.effects.interaction.focus adds the theme's glow.
50
52
  */
51
- ${({ $isFocused: e, theme: t }) => e && `
53
+ ${({ $isFocused: e, theme: t }) => e && `
52
54
  ${t.effects.interaction.focus}
53
55
  color: ${t.colors.highlighted};
54
56
  caret-color: ${t.colors.highlighted};
55
57
  border-bottom-color: ${t.colors.highlighted};
56
58
  `}
57
59
 
58
- /* Стили плейсхолдера */
60
+ /* Стили плейсхолдера */
59
61
  &:empty::before {
60
- content: attr(data-placeholder);
61
- color: ${({ theme: e }) => e.colors.sectionContent};
62
- opacity: 0.5;
63
- }
62
+ content: attr(data-placeholder);
63
+ color: ${({ theme: e }) => e.colors.sectionContent};
64
+ opacity: 0.5;
65
+ }
64
66
 
65
- /* Маскировка пароля */
66
- &.password {
67
- -webkit-text-security: disc;
68
- appearance: textfield;
69
- user-select: text;
70
- }
71
- `, s = ({ id: i, value: s = "", type: c = "text", autoFocus: l, onChange: u, onKeyDown: d, placeholder: f, style: p, readOnly: m }) => {
67
+ /* Маскировка пароля */
68
+ &.password {
69
+ -webkit-text-security: disc;
70
+ appearance: textfield;
71
+ user-select: text;
72
+ }
73
+ `, s = ({ id: r, value: s = "", type: c = "text", autoFocus: l, onChange: u, onKeyDown: d, placeholder: f, style: p, readOnly: m }) => {
72
74
  let [h, g] = n(!1), _ = t(null);
73
75
  return e(() => {
74
76
  l && _.current && _.current.focus();
75
77
  }, [l]), e(() => {
76
78
  _.current && _.current.textContent !== s && (_.current.textContent = s || "");
77
- }, [s]), /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(o, {
78
- id: i,
79
+ }, [s]), /* @__PURE__ */ i(a, { children: /* @__PURE__ */ i(o, {
80
+ id: r,
79
81
  ref: _,
80
82
  role: "textbox",
81
83
  contentEditable: !m,
package/dist/empty.js ADDED
@@ -0,0 +1,12 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ // atoms/Empty/styles.ts
5
+ var n = e.div`
6
+ padding: calc(${({ theme: e }) => e.offsets.section} + ${({ theme: e }) => e.offsets.betweenElements})
7
+ ${({ theme: e }) => e.offsets.elementContent};
8
+ text-align: center;
9
+ color: ${({ theme: e }) => e.colors.status?.faint?.content ?? e.colors.sectionContent};
10
+ font-size: calc(${({ theme: e }) => e.font.sizes.small} + ${({ theme: e }) => e.border.size});
11
+ `, r = ({ children: e }) => /* @__PURE__ */ t(n, { children: e });
12
+ export { r as Empty };
@@ -0,0 +1,15 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
+ // molecules/FilterBar/styles.ts
5
+ var r = e.div`
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
9
+ `, i = e.div`
10
+ display: flex;
11
+ flex-wrap: wrap;
12
+ align-items: center;
13
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
14
+ `, a = ({ rows: e }) => /* @__PURE__ */ t(r, { children: e.map((e, t) => /* @__PURE__ */ n(i, { children: [e.label, e.controls] }, t)) });
15
+ export { a as FilterBar };
@@ -1,19 +1,19 @@
1
- import { a as e, r as t } from "./dist-DD9Lv2Ja.js";
2
- import n from "styled-components";
1
+ import e from "styled-components";
2
+ import { withOffsetBottom as t, withOffsetsRight as n } from "@md-code/styles";
3
3
  // atoms/FormLabel/index.tsx
4
- var r = n.label`
5
- ${({ $fullWidth: e }) => e ? "width: 100%;" : ""}
6
- margin-right: ${t};
7
- margin-bottom: ${e};
8
- color: ${({ theme: e }) => e.colors.sectionContent};
4
+ var r = e.label`
5
+ ${({ $fullWidth: e }) => e ? "width: 100%;" : ""}
6
+ margin-right: ${n};
7
+ margin-bottom: ${t};
8
+ color: ${({ theme: e }) => e.colors.sectionContent};
9
9
 
10
- /*
10
+ /*
11
11
  * A label is content on the section surface, so it takes the text role
12
12
  * explicitly instead of inheriting whatever font an outer shell happens to
13
13
  * set (README §4.2).
14
14
  */
15
- font-family: ${({ theme: e }) => e.font.family.text};
16
- font-size: ${({ theme: e }) => e.font.sizes.regular};
17
- font-weight: ${({ theme: e }) => e.font.weight.text};
15
+ font-family: ${({ theme: e }) => e.font.family.text};
16
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
17
+ font-weight: ${({ theme: e }) => e.font.weight.text};
18
18
  `;
19
19
  export { r as FormLabel };
package/dist/form.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as e, r as t } from "./dist-DD9Lv2Ja.js";
2
- import n from "styled-components";
1
+ import e from "styled-components";
2
+ import { withOffsetBottom as t, withOffsetsRight as n } from "@md-code/styles";
3
3
  import { FormLabel as r } from "@md-code/components/form-label";
4
4
  import { Input as i } from "@md-code/components/input";
5
5
  import { Radio as a } from "@md-code/components/radio";
@@ -9,9 +9,9 @@ import { Submit as c } from "@md-code/components/submit";
9
9
  import { Textarea as l } from "@md-code/components/textarea";
10
10
  import { TextCheckbox as u } from "@md-code/components/text-checkbox";
11
11
  // atoms/Form/Form.tsx
12
- var d = n.form`
13
- ${({ $fullWidth: e }) => e ? "width: 100%;" : ""}
14
- margin-right: ${t};
15
- margin-bottom: ${e};
12
+ var d = e.form`
13
+ ${({ $fullWidth: e }) => e ? "width: 100%;" : ""}
14
+ margin-right: ${n};
15
+ margin-bottom: ${t};
16
16
  `, f = d;
17
17
  export { d as Form, r as FormLabel, i as Input, a as Radio, o as SearchInput, s as Select, c as Submit, u as TextCheckbox, l as Textarea, f as default };
@@ -1 +1,27 @@
1
- export { m as FullScreenModal } from "./CentralModal-ButM9Ggi.js";
1
+ import { useState as e } from "react";
2
+ import t from "react-dom";
3
+ import { LucideIcon as n } from "@md-code/components/icons";
4
+ import { CloseButton as r, ModalContainer as i, ModalContentContainer as a, Overlay as o, StyledModal as s, useModal as c } from "@md-code/components/modals";
5
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
6
+ // atoms/FullScreenModal/index.tsx
7
+ var f = () => {
8
+ let { fullScreenData: f, setFullScreenData: p } = c(), [m, h] = e(!1), g = () => {
9
+ h(!0), setTimeout(() => {
10
+ p(null), h(!1);
11
+ }, 300);
12
+ };
13
+ return f ? t.createPortal(/* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(o, {
14
+ onClick: g,
15
+ $isClosing: m
16
+ }), /* @__PURE__ */ d(i, {
17
+ $isClosing: m,
18
+ $fullScreen: !0,
19
+ "data-test-id": "fullscreen-modal-container",
20
+ children: [/* @__PURE__ */ u(r, {
21
+ onClick: g,
22
+ className: "close-button",
23
+ children: /* @__PURE__ */ u(n, { name: "Minimize2" })
24
+ }), /* @__PURE__ */ u(s, { children: /* @__PURE__ */ u(a, { children: f.content }) })]
25
+ })] }), document.body) : null;
26
+ };
27
+ export { f as FullScreenModal };
package/dist/header.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import e from "styled-components";
2
2
  // atoms/Header/styles.ts
3
3
  var t = e.header`
4
- position: fixed;
5
- top: 0;
6
- left: 0;
7
- width: 100%;
8
- height: ${({ theme: e }) => e.elements.header.height};
9
- background: ${({ theme: e }) => e.colors.section};
10
- display: flex;
11
- justify-content: center;
12
- align-items: center;
13
- border-bottom: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
14
- box-shadow: ${({ theme: e }) => e.shadows.section};
15
- background-image: ${({ theme: e }) => e.effects.texture};
16
- backdrop-filter: ${({ theme: e }) => e.effects.texture};
17
- z-index: ${({ theme: e, $zIndex: t }) => t ? e.zIndex[t] : e.zIndex.content};
4
+ position: fixed;
5
+ top: 0;
6
+ left: 0;
7
+ width: 100%;
8
+ height: ${({ theme: e }) => e.elements.header.height};
9
+ background: ${({ theme: e }) => e.colors.section};
10
+ display: flex;
11
+ justify-content: center;
12
+ align-items: center;
13
+ border-bottom: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
14
+ box-shadow: ${({ theme: e }) => e.shadows.section};
15
+ background-image: ${({ theme: e }) => e.effects.texture};
16
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
17
+ z-index: ${({ theme: e, $zIndex: t }) => t ? e.zIndex[t] : e.zIndex.content};
18
18
  `;
19
19
  export { t as Header };
@@ -1,18 +1,23 @@
1
- import { t as e } from "./themes-zS3KQYdw-DIqyzjFD.js";
2
- import { useState as t } from "react";
3
- import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
- import a, { ThemeProvider as o, css as s } from "styled-components";
5
- import { Button as c } from "@md-code/components/button";
6
- import l from "next/dynamic";
1
+ import { useState as e } from "react";
2
+ import t from "next/dynamic";
3
+ import n, { ThemeProvider as r, css as i } from "styled-components";
4
+ import { Button as a } from "@md-code/components/button";
5
+ import { codeEditor as o } from "@md-code/styles";
6
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
7
7
  // molecules/HtmlEditor/styles.ts
8
- var u = a.div`
9
- border-radius: ${({ theme: e }) => e.border.radius};
10
- margin-bottom: ${({ theme: e }) => e.offsets.elementContent};
11
- overflow: auto;
12
- ${({ $fullHeight: e, theme: t }) => e ? s`height: 100%;` : s`height: ${t.elements.form.height};`}
13
- border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
14
- background-color: ${({ theme: e }) => e.colors.section};
15
- /*
8
+ var u = n.div`
9
+ border-radius: ${({ theme: e }) => e.border.radius};
10
+ margin-bottom: ${({ theme: e }) => e.offsets.elementContent};
11
+ overflow: auto;
12
+ ${({ $fullHeight: e, theme: t }) => e ? i`
13
+ height: 100%;
14
+ ` : i`
15
+ height: ${t.elements.form.height};
16
+ `}
17
+ border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
18
+ background-color: ${({ theme: e }) => e.colors.section};
19
+
20
+ /*
16
21
  * effects.texture is one string per theme (README §4.1, §5.3): noise themes
17
22
  * supply a url() for background-image, glass themes supply blur() for
18
23
  * backdrop-filter. The frame cannot know which theme is active, so it hands
@@ -21,53 +26,55 @@ var u = a.div`
21
26
  * none, and url() left in backdrop-filter is visually inert — verified in
22
27
  * Chromium). Both themes therefore texture the frame without a name check.
23
28
  */
24
- background-image: ${({ theme: e }) => e.effects.texture};
25
- backdrop-filter: ${({ theme: e }) => e.effects.texture};
26
- box-shadow: ${({ theme: e }) => e.shadows.section};
27
- /* The editor frame lives inside the code-editor zone theme, whose text
29
+ background-image: ${({ theme: e }) => e.effects.texture};
30
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
31
+ box-shadow: ${({ theme: e }) => e.shadows.section};
32
+
33
+ /* The editor frame lives inside the code-editor zone theme, whose text
28
34
  role IS monospace (there is no code family, README §5.5). */
29
- font-family: ${({ theme: e }) => e.font.family.text};
35
+ font-family: ${({ theme: e }) => e.font.family.text};
30
36
 
31
- pre {
32
- background-color: transparent;
33
- }
37
+ pre {
38
+ background-color: transparent;
39
+ }
34
40
 
35
- /* The code is content on the section surface: section content colour plus
41
+ /* The code is content on the section surface: section content colour plus
36
42
  the theme's content (ink/glow) text-shadow. */
37
- pre, textarea {
38
- color: ${({ theme: e }) => e.colors.sectionContent};
39
- text-shadow: ${({ theme: e }) => e.shadows.content};
40
- }
43
+ pre,
44
+ textarea {
45
+ color: ${({ theme: e }) => e.colors.sectionContent};
46
+ text-shadow: ${({ theme: e }) => e.shadows.content};
47
+ }
41
48
 
42
- div {
43
- line-height: 1.5;
44
- }
45
- `, d = l(() => import("@uiw/react-textarea-code-editor"), { ssr: !1 }), f = ({ initialValue: a, onSave: s, fullHeight: l, value: f, setValue: p }) => {
46
- let [m, h] = t(a || ""), [g, _] = t(!0), v = f ?? m, y = p ?? h;
47
- return /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(o, {
48
- theme: e,
49
- children: /* @__PURE__ */ r(u, {
50
- $fullHeight: l,
51
- children: /* @__PURE__ */ r(d, {
49
+ div {
50
+ line-height: 1.5;
51
+ }
52
+ `, d = t(() => import("@uiw/react-textarea-code-editor"), { ssr: !1 }), f = ({ initialValue: t, onSave: n, fullHeight: i, value: f, setValue: p }) => {
53
+ let [m, h] = e(t || ""), [g, _] = e(!0), v = f ?? m, y = p ?? h;
54
+ return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(r, {
55
+ theme: o,
56
+ children: /* @__PURE__ */ c(u, {
57
+ $fullHeight: i,
58
+ children: /* @__PURE__ */ c(d, {
52
59
  language: "html",
53
60
  value: v,
54
61
  onChange: (e) => {
55
- y(e.target.value), p || _(e.target.value === a);
62
+ y(e.target.value), p || _(e.target.value === t);
56
63
  },
57
64
  style: {
58
- fontSize: e.font.sizes.small,
65
+ fontSize: o.font.sizes.small,
59
66
  lineHeight: "1.5",
60
67
  backgroundColor: "transparent",
61
68
  width: "max-content",
62
- fontFamily: e.font.family.text
69
+ fontFamily: o.font.family.text
63
70
  }
64
71
  })
65
72
  })
66
- }), !p && /* @__PURE__ */ r(c, {
73
+ }), !p && /* @__PURE__ */ c(a, {
67
74
  text: "Save changes",
68
75
  disabled: g,
69
76
  onClick: () => {
70
- s?.(v), p || _(!0);
77
+ n?.(v), p || _(!0);
71
78
  }
72
79
  })] });
73
80
  };