@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
package/dist/modals.js CHANGED
@@ -1 +1,130 @@
1
- export { t as CentralModal, r as CloseButton, m as FullScreenModal, i as ModalContainer, a as ModalContentContainer, h as ModalContext, n as ModalProvider, o as Overlay, s as StyledModal, c as centerZoomIn, l as centerZoomOut, u as collapseAnimation, d as expandAnimation, f as fadeIn, p as fadeOut, g as useModal } from "./CentralModal-ButM9Ggi.js";
1
+ import { createContext as e, useContext as t, useState as n } from "react";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { CentralModal as i } from "@md-code/components/central-modal";
4
+ import { FullScreenModal as a } from "@md-code/components/full-screen-modal";
5
+ import o, { css as s, keyframes as c } from "styled-components";
6
+ import { withSpaceBetween as l } from "@md-code/styles";
7
+ // shared/modals/useModal.tsx
8
+ var u = e(void 0), d = () => {
9
+ let e = t(u);
10
+ if (!e) throw Error("useModal must be used within a ModalProvider");
11
+ return e;
12
+ }, f = c`
13
+ from { opacity: 0; }
14
+ to { opacity: 1; }
15
+ `, p = c`
16
+ from { opacity: 1; }
17
+ to { opacity: 0; }
18
+ `, m = c`
19
+ from { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
20
+ to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
21
+ `, h = c`
22
+ from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
23
+ to { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
24
+ `, g = c`
25
+ 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
26
+ 80% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
27
+ 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
28
+ `, _ = c`
29
+ 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
30
+ 40% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
31
+ 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
32
+ `, v = s`
33
+ width: ${({ theme: e }) => e.elements.modal.width};
34
+ height: ${({ theme: e }) => e.elements.modal.height};
35
+ padding: ${({ theme: e }) => e.offsets.section};
36
+ `, y = s`
37
+ min-width: ${({ theme: e }) => e.elements.form.minWidth};
38
+ max-height: ${({ theme: e }) => e.elements.modal.height};
39
+ padding: ${l};
40
+ `, b = o.div`
41
+ position: fixed;
42
+ inset: 0;
43
+ background-color: ${({ theme: e }) => e.colors.overlay};
44
+ cursor: pointer;
45
+ z-index: 999;
46
+ animation: ${({ $isClosing: e }) => e ? p : f} 0.2s forwards;
47
+ `, x = o.div`
48
+ position: fixed;
49
+ top: 50%;
50
+ left: 50%;
51
+ transform: translate(-50%, -50%);
52
+ background-color: ${({ theme: e }) => e.colors.section};
53
+
54
+ /*
55
+ * effects.texture is one string per theme (README §4.1, §5.3): a noise theme
56
+ * supplies a url() for background-image, a glass theme supplies blur() for
57
+ * backdrop-filter. The modal cannot know which theme is active, so it hands
58
+ * the value to BOTH properties; each property keeps only the value it
59
+ * understands and ignores the other (blur() in background-image computes to
60
+ * none, and url() left in backdrop-filter is visually inert — verified in
61
+ * Chromium). Both themes therefore texture the surface without a name check.
62
+ */
63
+ background-image: ${({ theme: e }) => e.effects.texture};
64
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
65
+ color: ${({ theme: e }) => e.colors.sectionContent};
66
+
67
+ /* Size logic: the sheet or the centred dialog, chosen by $fullScreen. */
68
+ ${({ $fullScreen: e }) => e ? v : y}
69
+
70
+ /* Surface geometry: complete lengths and the theme silhouette (README §5.4). */
71
+ border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
72
+ border-radius: ${({ theme: e }) => e.border.radius};
73
+ clip-path: ${({ theme: e }) => e.geometry.shape};
74
+ box-shadow: ${({ theme: e }) => e.shadows.notification};
75
+ z-index: 1000;
76
+
77
+ /* Animations */
78
+ ${({ $isClosing: e, $fullScreen: t }) => t ? s`
79
+ animation: ${e ? _ : g} 0.3s ease-in-out forwards;
80
+ ` : s`
81
+ animation: ${e ? h : m} 0.2s forwards;
82
+ `}
83
+ `, S = o.div`
84
+ background: transparent;
85
+ border-radius: inherit;
86
+ width: 100%;
87
+ height: 100%;
88
+ display: flex;
89
+ flex-direction: column;
90
+ `, C = o.div`
91
+ display: flex;
92
+ flex-direction: column;
93
+ align-items: flex-start;
94
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
95
+ padding: ${({ theme: e }) => e.offsets.elementContent};
96
+ flex: 1;
97
+ overflow: auto;
98
+ `, w = o.div`
99
+ position: absolute;
100
+ top: ${({ theme: e }) => e.offsets.elementContent};
101
+ right: ${({ theme: e }) => e.offsets.elementContent};
102
+ cursor: pointer;
103
+ z-index: 1001;
104
+ display: flex;
105
+ align-items: center;
106
+ justify-content: center;
107
+ width: ${({ theme: e }) => e.elements.icons.width};
108
+ height: ${({ theme: e }) => e.elements.icons.height};
109
+ background: ${({ theme: e }) => e.colors.overlay};
110
+ border-radius: ${({ theme: e }) => e.elements.icons.radius};
111
+ transition: all ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
112
+
113
+ &:hover {
114
+ ${({ theme: e }) => e.effects.interaction.hover}
115
+ }
116
+ `, T = ({ children: e }) => {
117
+ let [t, i] = n(null), [a, o] = n(null), [s, c] = n(null), l = {
118
+ sideBarModalData: t,
119
+ setSideBarModalData: i,
120
+ modalData: a,
121
+ setModalData: o,
122
+ fullScreenData: s,
123
+ setFullScreenData: c
124
+ };
125
+ return /* @__PURE__ */ r(u.Provider, {
126
+ value: l,
127
+ children: e
128
+ });
129
+ };
130
+ export { i as CentralModal, w as CloseButton, a as FullScreenModal, x as ModalContainer, C as ModalContentContainer, u as ModalContext, T as ModalProvider, b as Overlay, S as StyledModal, m as centerZoomIn, h as centerZoomOut, _ as collapseAnimation, g as expandAnimation, f as fadeIn, p as fadeOut, d as useModal };
@@ -0,0 +1,16 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ // atoms/MonoText/styles.ts
5
+ var n = e.code`
6
+ font-family: ${({ theme: e }) => e.font.family.text};
7
+ font-size: ${({ $size: e, theme: t }) => e === "small" ? t.font.sizes.small : t.font.sizes.regular};
8
+ color: ${({ $tone: e, theme: t }) => e === "dim" ? t.colors.status?.dim?.content ?? t.colors.sectionContent : e === "faint" ? t.colors.status?.faint?.content ?? t.colors.sectionContent : t.colors.sectionContent};
9
+ overflow-wrap: anywhere;
10
+ `, r = ({ $tone: e = "default", $size: r = "regular", children: i, ...a }) => /* @__PURE__ */ t(n, {
11
+ $tone: e,
12
+ $size: r,
13
+ ...a,
14
+ children: i
15
+ });
16
+ export { r as MonoText };
@@ -0,0 +1,33 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ // molecules/NavTabs/styles.ts
5
+ var n = e.nav`
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ gap: calc(${({ theme: e }) => e.border.size} * 4);
9
+ margin-bottom: ${({ theme: e }) => e.offsets.section};
10
+ `, r = e.a`
11
+ padding: calc(${({ theme: e }) => e.border.size} * 6) calc(${({ theme: e }) => e.offsets.betweenElements});
12
+ border-radius: ${({ theme: e }) => e.border.radius};
13
+ font-size: calc(${({ theme: e }) => e.font.sizes.small} + ${({ theme: e }) => e.border.size});
14
+ font-weight: 600;
15
+ color: ${({ $active: e, theme: t }) => e ? t.colors.sectionContent : t.colors.status?.dim?.content ?? t.colors.sectionContent};
16
+ background: ${({ $active: e, theme: t }) => e ? t.colors.overlay : "transparent"};
17
+ border: ${({ theme: e }) => e.border.size} solid
18
+ ${({ $active: e, theme: t }) => e ? t.colors.highlighted : "transparent"};
19
+
20
+ &:hover {
21
+ text-decoration: none;
22
+ color: ${({ theme: e }) => e.colors.sectionContent};
23
+ }
24
+ `, i = ({ tabs: e }) => {
25
+ let i = [];
26
+ for (let n of e) i.push(/* @__PURE__ */ t(r, {
27
+ href: n.href,
28
+ $active: n.active,
29
+ children: n.label
30
+ }, n.key));
31
+ return /* @__PURE__ */ t(n, { children: i });
32
+ };
33
+ export { i as NavTabs };
@@ -0,0 +1,20 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
+ // molecules/PageHeader/styles.ts
5
+ var r = e.header`
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ align-items: baseline;
9
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
10
+ padding-bottom: ${({ theme: e }) => e.offsets.betweenElements};
11
+ border-bottom: ${({ theme: e }) => e.border.size} solid
12
+ ${({ theme: e }) => e.colors.status?.edge?.background ?? e.colors.highlighted};
13
+ margin-bottom: ${({ theme: e }) => e.offsets.section};
14
+ `, i = e.h1`
15
+ font-size: calc(${({ theme: e }) => e.font.sizes.large} + ${({ theme: e }) => e.border.size} * 3);
16
+ margin: 0;
17
+ letter-spacing: ${({ theme: e }) => e.font.spacing};
18
+ color: ${({ theme: e }) => e.colors.sectionContent};
19
+ `, a = ({ title: e, aside: a }) => /* @__PURE__ */ n(r, { children: [/* @__PURE__ */ t(i, { children: e }), a] });
20
+ export { a as PageHeader };
@@ -1,117 +1,117 @@
1
1
  import { useEffect as e, useState as t } from "react";
2
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
- import i from "styled-components";
2
+ import n from "styled-components";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  // atoms/Pagination/styles.ts
5
- var a = i.div`
6
- display: flex;
7
- justify-content: center;
8
- align-items: center;
9
- padding: ${({ theme: e }) => e.offsets.elementContent} 0;
10
- flex-wrap: wrap;
11
- gap: ${({ theme: e }) => e.offsets.elementContent};
12
- `, o = i.button`
13
- display: flex;
14
- align-items: center;
15
- justify-content: center;
16
- height: ${({ theme: e }) => e.elements.form.height};
17
- min-width: ${({ theme: e }) => e.elements.form.height};
18
- margin: 0 ${({ theme: e }) => e.offsets.elementContent};
19
- padding: ${({ theme: e }) => e.offsets.elementContent};
20
- cursor: pointer;
21
- font-family: ${({ theme: e }) => e.font.family.text};
22
- font-size: ${({ theme: e }) => e.font.sizes.regular};
23
- text-transform: ${({ theme: e }) => e.font.transform.text};
24
- font-weight: ${({ $active: e, theme: t }) => e ? "bold" : t.font.weight.text};
25
- background-color: ${({ $active: e, theme: t }) => e ? t.colors.highlighted : t.colors.overlay};
26
- color: ${({ $active: e, theme: t }) => e ? t.colors.highlightedContent : t.colors.sectionContent};
27
- border: ${({ theme: e }) => e.border.size} solid
28
- color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
29
- border-radius: ${({ theme: e }) => e.border.radius};
30
- clip-path: ${({ theme: e }) => e.geometry.shape};
31
- background-image: ${({ theme: e }) => e.effects.texture};
32
- backdrop-filter: ${({ theme: e }) => e.effects.texture};
33
- box-shadow: ${({ theme: e }) => e.shadows.section};
34
- transition:
35
- color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard},
36
- background-color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard},
37
- box-shadow ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
5
+ var a = n.div`
6
+ display: flex;
7
+ justify-content: center;
8
+ align-items: center;
9
+ padding: ${({ theme: e }) => e.offsets.elementContent} 0;
10
+ flex-wrap: wrap;
11
+ gap: ${({ theme: e }) => e.offsets.elementContent};
12
+ `, o = n.button`
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ height: ${({ theme: e }) => e.elements.form.height};
17
+ min-width: ${({ theme: e }) => e.elements.form.height};
18
+ margin: 0 ${({ theme: e }) => e.offsets.elementContent};
19
+ padding: ${({ theme: e }) => e.offsets.elementContent};
20
+ cursor: pointer;
21
+ font-family: ${({ theme: e }) => e.font.family.text};
22
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
23
+ text-transform: ${({ theme: e }) => e.font.transform.text};
24
+ font-weight: ${({ $active: e, theme: t }) => e ? "bold" : t.font.weight.text};
25
+ background-color: ${({ $active: e, theme: t }) => e ? t.colors.highlighted : t.colors.overlay};
26
+ color: ${({ $active: e, theme: t }) => e ? t.colors.highlightedContent : t.colors.sectionContent};
27
+ border: ${({ theme: e }) => e.border.size} solid
28
+ color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
29
+ border-radius: ${({ theme: e }) => e.border.radius};
30
+ clip-path: ${({ theme: e }) => e.geometry.shape};
31
+ background-image: ${({ theme: e }) => e.effects.texture};
32
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
33
+ box-shadow: ${({ theme: e }) => e.shadows.section};
34
+ transition:
35
+ color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard},
36
+ background-color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard},
37
+ box-shadow ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
38
38
 
39
- &:hover {
40
- background-color: ${({ theme: e }) => e.colors.highlighted};
41
- color: ${({ theme: e }) => e.colors.highlightedContent};
42
- }
39
+ &:hover {
40
+ background-color: ${({ theme: e }) => e.colors.highlighted};
41
+ color: ${({ theme: e }) => e.colors.highlightedContent};
42
+ }
43
43
 
44
- &:disabled {
45
- ${({ theme: e }) => e.effects.interaction.disabled}
46
- }
47
- `, s = i.button`
48
- background-color: transparent;
49
- color: ${({ theme: e }) => e.colors.sectionContent};
50
- border: none;
51
- margin: 0 ${({ theme: e }) => e.offsets.elementContent};
52
- padding: ${({ theme: e }) => e.offsets.elementContent};
53
- cursor: pointer;
54
- font-family: ${({ theme: e }) => e.font.family.text};
55
- font-size: ${({ theme: e }) => e.font.sizes.regular};
44
+ &:disabled {
45
+ ${({ theme: e }) => e.effects.interaction.disabled}
46
+ }
47
+ `, s = n.button`
48
+ background-color: transparent;
49
+ color: ${({ theme: e }) => e.colors.sectionContent};
50
+ border: none;
51
+ margin: 0 ${({ theme: e }) => e.offsets.elementContent};
52
+ padding: ${({ theme: e }) => e.offsets.elementContent};
53
+ cursor: pointer;
54
+ font-family: ${({ theme: e }) => e.font.family.text};
55
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
56
56
 
57
- /* Arrow weight is component semantics: the baseline paints both arrows bold
57
+ /* Arrow weight is component semantics: the baseline paints both arrows bold
58
58
  * under every theme, so the label weight stays bold (documented deviation). */
59
- font-weight: bold;
60
- text-transform: ${({ theme: e }) => e.font.transform.text};
61
- letter-spacing: ${({ theme: e }) => e.font.spacing};
59
+ font-weight: bold;
60
+ text-transform: ${({ theme: e }) => e.font.transform.text};
61
+ letter-spacing: ${({ theme: e }) => e.font.spacing};
62
62
 
63
- &:hover {
64
- color: ${({ theme: e }) => e.colors.highlighted};
65
- text-shadow: ${({ theme: e }) => e.shadows.content};
66
- }
63
+ &:hover {
64
+ color: ${({ theme: e }) => e.colors.highlighted};
65
+ text-shadow: ${({ theme: e }) => e.shadows.content};
66
+ }
67
67
 
68
- &:disabled {
69
- ${({ theme: e }) => e.effects.interaction.disabled}
70
- }
71
- `, c = i.span`
72
- margin: 0 ${({ theme: e }) => e.offsets.elementContent};
73
- font-weight: bold;
74
- `, l = ({ totalPages: i, currentPage: l, onPageChange: u }) => {
68
+ &:disabled {
69
+ ${({ theme: e }) => e.effects.interaction.disabled}
70
+ }
71
+ `, c = n.span`
72
+ margin: 0 ${({ theme: e }) => e.offsets.elementContent};
73
+ font-weight: bold;
74
+ `, l = ({ totalPages: n, currentPage: l, onPageChange: u }) => {
75
75
  let [d, f] = t(!1);
76
76
  return e(() => {
77
77
  let e = () => f(window.innerWidth <= 768);
78
78
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
79
- }, []), /* @__PURE__ */ r(a, { children: [
80
- /* @__PURE__ */ n(s, {
79
+ }, []), /* @__PURE__ */ i(a, { children: [
80
+ /* @__PURE__ */ r(s, {
81
81
  onClick: () => u(l - 1),
82
82
  disabled: l === 1,
83
83
  children: "Prev"
84
84
  }),
85
85
  (() => {
86
86
  let e = [], t = d ? 3 : 8;
87
- if (i <= t) for (let t = 1; t <= i; t++) e.push(/* @__PURE__ */ n(o, {
87
+ if (n <= t) for (let t = 1; t <= n; t++) e.push(/* @__PURE__ */ r(o, {
88
88
  $active: t === l,
89
89
  onClick: () => u(t),
90
90
  children: t
91
91
  }, t));
92
92
  else {
93
- let r = 1, a = t;
94
- l > 5 && (r = l - 4, a = l + 5), a > i && (r = i - t + 1, a = i), r > 1 && (e.push(/* @__PURE__ */ n(o, {
93
+ let i = 1, a = t;
94
+ l > 5 && (i = l - 4, a = l + 5), a > n && (i = n - t + 1, a = n), i > 1 && (e.push(/* @__PURE__ */ r(o, {
95
95
  $active: l === 1,
96
96
  onClick: () => u(1),
97
97
  children: "1"
98
- }, 1)), e.push(/* @__PURE__ */ n(c, { children: "..." }, "start-dots")));
99
- for (let t = r; t <= a; t++) e.push(/* @__PURE__ */ n(o, {
98
+ }, 1)), e.push(/* @__PURE__ */ r(c, { children: "..." }, "start-dots")));
99
+ for (let t = i; t <= a; t++) e.push(/* @__PURE__ */ r(o, {
100
100
  $active: t === l,
101
101
  onClick: () => u(t),
102
102
  children: t
103
103
  }, t));
104
- a < i && (e.push(/* @__PURE__ */ n(c, { children: "..." }, "end-dots")), e.push(/* @__PURE__ */ n(o, {
105
- $active: i === l,
106
- onClick: () => u(i),
107
- children: i
108
- }, i)));
104
+ a < n && (e.push(/* @__PURE__ */ r(c, { children: "..." }, "end-dots")), e.push(/* @__PURE__ */ r(o, {
105
+ $active: n === l,
106
+ onClick: () => u(n),
107
+ children: n
108
+ }, n)));
109
109
  }
110
110
  return e;
111
111
  })(),
112
- /* @__PURE__ */ n(s, {
112
+ /* @__PURE__ */ r(s, {
113
113
  onClick: () => u(l + 1),
114
- disabled: l === i,
114
+ disabled: l === n,
115
115
  children: "Next"
116
116
  })
117
117
  ] });
@@ -1,26 +1,26 @@
1
- import { a as e, r as t } from "./dist-DD9Lv2Ja.js";
2
1
  import "react";
3
- import { jsx as n } from "react/jsx-runtime";
4
- import r from "styled-components";
2
+ import e from "styled-components";
3
+ import { withOffsetBottom as t, withOffsetsRight as n } from "@md-code/styles";
4
+ import { jsx as r } from "react/jsx-runtime";
5
5
  // atoms/ProgressBar/index.tsx
6
- var i = r.div`
7
- background-color: ${({ theme: e }) => e.colors.overlay};
8
- border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
9
- height: ${({ theme: e }) => `calc(${e.border.size} * 8)`};
10
- display: flex;
11
- align-items: center;
12
- border-radius: ${({ theme: e }) => e.border.radius};
13
- margin-right: ${t};
14
- margin-bottom: ${e};
15
- `, a = r.div`
16
- background-color: ${({ theme: e }) => e.colors.highlighted};
17
- width: ${({ $percentage: e }) => e}%;
18
- height: 100%;
19
- `, o = ({ percentage: e, $offsetBottom: t, $offsetRight: r, $fullWidth: o, ...s }) => /* @__PURE__ */ n(i, {
6
+ var i = e.div`
7
+ background-color: ${({ theme: e }) => e.colors.overlay};
8
+ border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
9
+ height: ${({ theme: e }) => `calc(${e.border.size} * 8)`};
10
+ display: flex;
11
+ align-items: center;
12
+ border-radius: ${({ theme: e }) => e.border.radius};
13
+ margin-right: ${n};
14
+ margin-bottom: ${t};
15
+ `, a = e.div`
16
+ background-color: ${({ theme: e }) => e.colors.highlighted};
17
+ width: ${({ $percentage: e }) => e}%;
18
+ height: 100%;
19
+ `, o = ({ percentage: e, $offsetBottom: t, $offsetRight: n, $fullWidth: o, ...s }) => /* @__PURE__ */ r(i, {
20
20
  $offsetBottom: t,
21
- $offsetRight: r,
21
+ $offsetRight: n,
22
22
  $fullWidth: o,
23
23
  ...s,
24
- children: /* @__PURE__ */ n(a, { $percentage: e })
24
+ children: /* @__PURE__ */ r(a, { $percentage: e })
25
25
  });
26
26
  export { o as ProgressBar };
package/dist/radio.js CHANGED
@@ -1,72 +1,73 @@
1
- import { a as e, r as t } from "./dist-DD9Lv2Ja.js";
2
1
  import "react";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- import i from "styled-components";
2
+ import e from "styled-components";
3
+ import { withOffsetBottom as t, withOffsetsRight as n } from "@md-code/styles";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  // atoms/Radio/index.tsx
6
- var a = i.label`
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- width: ${({ theme: e }) => `calc(${e.elements.form.height} / 1.5)`};
11
- height: ${({ theme: e }) => `calc(${e.elements.form.height} / 1.5)`};
12
- margin-right: ${t};
13
- margin-bottom: ${e};
14
- cursor: pointer;
15
- position: relative;
16
- user-select: none;
17
- `, o = i.input.attrs({ type: "radio" })`
18
- position: absolute;
19
- opacity: 0;
20
- cursor: pointer;
21
- height: 0;
22
- width: 0;
23
- `, s = i.div`
24
- width: 100%;
25
- height: 100%;
26
- display: grid;
27
- place-items: center;
28
- background-color: ${({ theme: e }) => e.colors.overlay};
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
- box-shadow: ${({ theme: e }) => e.shadows.section};
36
- transition: background-color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
6
+ var a = e.label`
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ width: ${({ theme: e }) => `calc(${e.elements.form.height} / 1.5)`};
11
+ height: ${({ theme: e }) => `calc(${e.elements.form.height} / 1.5)`};
12
+ margin-right: ${n};
13
+ margin-bottom: ${t};
14
+ cursor: pointer;
15
+ position: relative;
16
+ user-select: none;
17
+ `, o = e.input.attrs({ type: "radio" })`
18
+ position: absolute;
19
+ opacity: 0;
20
+ cursor: pointer;
21
+ height: 0;
22
+ width: 0;
23
+ `, s = e.div`
24
+ width: 100%;
25
+ height: 100%;
26
+ display: grid;
27
+ place-items: center;
28
+ background-color: ${({ theme: e }) => e.colors.overlay};
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
+ box-shadow: ${({ theme: e }) => e.shadows.section};
36
+ transition: background-color ${({ theme: e }) => e.animation.speed.fast}
37
+ ${({ theme: e }) => e.animation.easing.standard};
37
38
 
38
- &::before {
39
- content: '';
40
- width: 50%;
41
- height: 50%;
42
- border-radius: 50%;
43
- background-color: currentcolor;
44
- opacity: 0;
45
- transform: scale(0);
46
- transition: transform ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.spring};
47
- }
39
+ &::before {
40
+ content: "";
41
+ width: 50%;
42
+ height: 50%;
43
+ border-radius: 50%;
44
+ background-color: currentcolor;
45
+ opacity: 0;
46
+ transform: scale(0);
47
+ transition: transform ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.spring};
48
+ }
48
49
 
49
- ${o}:checked + & {
50
- background-color: ${({ theme: e }) => e.colors.highlighted};
51
- border-color: ${({ theme: e }) => e.colors.highlighted};
52
- color: ${({ theme: e }) => e.colors.highlightedContent};
50
+ ${o}:checked + & {
51
+ background-color: ${({ theme: e }) => e.colors.highlighted};
52
+ border-color: ${({ theme: e }) => e.colors.highlighted};
53
+ color: ${({ theme: e }) => e.colors.highlightedContent};
53
54
 
54
- &::before {
55
- opacity: 1;
56
- transform: scale(1);
57
- }
58
- }
59
- `, c = ({ name: e, id: t, value: i, checked: c, onChange: l, $offsetBottom: u, $offsetRight: d, $fullWidth: f, ...p }) => /* @__PURE__ */ r(a, {
55
+ &::before {
56
+ opacity: 1;
57
+ transform: scale(1);
58
+ }
59
+ }
60
+ `, c = ({ name: e, id: t, value: n, checked: c, onChange: l, $offsetBottom: u, $offsetRight: d, $fullWidth: f, ...p }) => /* @__PURE__ */ i(a, {
60
61
  $offsetBottom: u,
61
62
  $offsetRight: d,
62
63
  $fullWidth: f,
63
- children: [/* @__PURE__ */ n(o, {
64
+ children: [/* @__PURE__ */ r(o, {
64
65
  id: t,
65
66
  name: e,
66
- value: i,
67
+ value: n,
67
68
  checked: c,
68
69
  onChange: l,
69
70
  ...p
70
- }), /* @__PURE__ */ n(s, {})]
71
+ }), /* @__PURE__ */ r(s, {})]
71
72
  });
72
73
  export { c as Radio };