@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,32 +1,39 @@
1
- import { a as e, r as t } from "./dist-DD9Lv2Ja.js";
2
- import { useCallback as n, useState as r } from "react";
3
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
- import o, { css as s } from "styled-components";
5
- import { Input as c } from "@md-code/components/input";
6
- import { FiSearch as l, FiX as u } from "react-icons/fi";
7
- import { Button as d } from "@md-code/components/button";
1
+ import { useCallback as e, useState as t } from "react";
2
+ import { Input as n } from "@md-code/components/input";
3
+ import { FiSearch as r, FiX as i } from "react-icons/fi";
4
+ import a, { css as o } from "styled-components";
5
+ import { Button as s } from "@md-code/components/button";
6
+ import { withOffsetBottom as c, withOffsetsRight as l } from "@md-code/styles";
7
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  // molecules/SearchInput/styles.ts
9
- var f = o(d)`
10
- border: none;
11
- `, p = o(l)`
12
- visibility: visible;
13
- opacity: 1;
14
- transition: visibility 0s, opacity ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.linear};
15
- `, m = o(u)`
16
- display: none;
17
- `, h = o.div`
18
- position: relative;
19
- display: flex;
20
- align-items: center;
21
- justify-content: center;
22
- box-sizing: border-box;
23
- ${({ $isOpen: e, theme: t }) => e ? s`width: 100%;` : s`width: ${t.elements.form.height};`}
24
- height: ${({ theme: e }) => e.elements.form.height};
25
- margin-right: ${t};
26
- margin-bottom: ${e};
27
- padding: ${({ theme: e }) => e.offsets.elementContent};
28
- background-color: ${({ theme: e }) => e.colors.section};
29
- /*
9
+ var f = a(s)`
10
+ border: none;
11
+ `, p = a(r)`
12
+ visibility: visible;
13
+ opacity: 1;
14
+ transition:
15
+ visibility 0s,
16
+ opacity ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.linear};
17
+ `, m = a(i)`
18
+ display: none;
19
+ `, h = a.div`
20
+ position: relative;
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ box-sizing: border-box;
25
+ ${({ $isOpen: e, theme: t }) => e ? o`
26
+ width: 100%;
27
+ ` : o`
28
+ width: ${t.elements.form.height};
29
+ `}
30
+ height: ${({ theme: e }) => e.elements.form.height};
31
+ margin-right: ${l};
32
+ margin-bottom: ${c};
33
+ padding: ${({ theme: e }) => e.offsets.elementContent};
34
+ background-color: ${({ theme: e }) => e.colors.section};
35
+
36
+ /*
30
37
  * effects.texture is one string per theme (README §4.1, §5.3): noise themes
31
38
  * supply a url() for background-image, glass themes supply blur() for
32
39
  * backdrop-filter. The bar cannot know which theme is active, so it hands
@@ -35,43 +42,42 @@ var f = o(d)`
35
42
  * none, and url() left in backdrop-filter is visually inert — verified in
36
43
  * Chromium). Both themes therefore texture the bar without a name check.
37
44
  */
38
- background-image: ${({ theme: e }) => e.effects.texture};
39
- backdrop-filter: ${({ theme: e }) => e.effects.texture};
40
- border-radius: ${({ theme: e }) => e.border.radius};
41
- clip-path: ${({ theme: e }) => e.geometry.shape};
42
- box-shadow: ${({ theme: e }) => e.shadows.section};
43
- transition: all ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.standard};
45
+ background-image: ${({ theme: e }) => e.effects.texture};
46
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
47
+ border-radius: ${({ theme: e }) => e.border.radius};
48
+ clip-path: ${({ theme: e }) => e.geometry.shape};
49
+ box-shadow: ${({ theme: e }) => e.shadows.section};
50
+ transition: all ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.standard};
44
51
 
45
- ${m} {
46
- display: ${({ $isOpen: e }) => e && "block"};
47
- }
48
- ${p} {
49
- display: ${({ $isOpen: e }) => e && "none"};
50
- }
51
- `, g = ({ id: e, name: t, value: o, onChangeValue: s, $offsetBottom: l, $offsetRight: u, $fullWidth: d, ...g }) => {
52
- let [_, v] = r(!1), y = n((e) => {
53
- let t = e.currentTarget.value;
54
- s(t);
55
- }, [s]), b = () => {
56
- v(!_), _ && s();
52
+ ${m} {
53
+ display: ${({ $isOpen: e }) => e && "block"};
54
+ }
55
+ ${p} {
56
+ display: ${({ $isOpen: e }) => e && "none"};
57
+ }
58
+ `, g = ({ id: r, name: i, value: a, onChangeValue: o, $offsetBottom: s, $offsetRight: c, $fullWidth: l, ...g }) => {
59
+ let [_, v] = t(!1), y = e((e) => {
60
+ o(e.currentTarget.value);
61
+ }, [o]), b = () => {
62
+ v(!_), _ && o();
57
63
  };
58
- return /* @__PURE__ */ a(h, {
64
+ return /* @__PURE__ */ d(h, {
59
65
  $isOpen: _,
60
- $offsetBottom: l,
61
- $offsetRight: u,
62
- children: [_ && /* @__PURE__ */ i(c, {
66
+ $offsetBottom: s,
67
+ $offsetRight: c,
68
+ children: [_ && /* @__PURE__ */ u(n, {
63
69
  placeholder: "Search for an order",
64
- id: e,
65
- name: t,
70
+ id: r,
71
+ name: i,
66
72
  autoFocus: !0,
67
- value: o,
73
+ value: a,
68
74
  onChange: y,
69
- $fullWidth: d,
75
+ $fullWidth: l,
70
76
  ...g
71
- }), /* @__PURE__ */ a(f, {
77
+ }), /* @__PURE__ */ d(f, {
72
78
  onClick: b,
73
79
  tone: "active",
74
- children: [/* @__PURE__ */ i(p, {}), /* @__PURE__ */ i(m, {})]
80
+ children: [/* @__PURE__ */ u(p, {}), /* @__PURE__ */ u(m, {})]
75
81
  })]
76
82
  });
77
83
  };
package/dist/select.js CHANGED
@@ -1,23 +1,24 @@
1
1
  import { useEffect as e, useRef as t, useState as n } from "react";
2
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { LucideIcon as r } from "@md-code/components/icons";
3
+ import { Input as i } from "@md-code/components/input";
3
4
  import a, { css as o } from "styled-components";
4
- import { Input as s } from "@md-code/components/input";
5
- import { LucideIcon as c } from "@md-code/components/icons";
5
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
6
  // molecules/Select/styles.ts
7
7
  var l = a.div`
8
- position: relative;
8
+ position: relative;
9
9
  `, u = a.div`
10
- display: flex;
11
- align-items: center;
12
- justify-content: space-between;
13
- padding: ${({ theme: e }) => e.offsets.elementContent};
14
- border-radius: ${({ theme: e }) => e.border.radius};
15
- border-style: solid;
16
- border-width: ${({ theme: e }) => e.border.size};
17
- border-color: ${({ theme: e }) => e.colors.sectionContent};
18
- color: ${({ theme: e }) => e.colors.sectionContent};
19
- background-color: ${({ theme: e }) => e.colors.section};
20
- /*
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: space-between;
13
+ padding: ${({ theme: e }) => e.offsets.elementContent};
14
+ border-radius: ${({ theme: e }) => e.border.radius};
15
+ border-style: solid;
16
+ border-width: ${({ theme: e }) => e.border.size};
17
+ border-color: ${({ theme: e }) => e.colors.sectionContent};
18
+ color: ${({ theme: e }) => e.colors.sectionContent};
19
+ background-color: ${({ theme: e }) => e.colors.section};
20
+
21
+ /*
21
22
  * effects.texture is one string per theme (README §4.1, §5.3): noise themes
22
23
  * supply a url() for background-image, glass themes supply blur() for
23
24
  * backdrop-filter. The control cannot know which theme is active, so it
@@ -26,31 +27,33 @@ var l = a.div`
26
27
  * none, and url() left in backdrop-filter is visually inert — verified in
27
28
  * Chromium). Both themes therefore texture the control without a name check.
28
29
  */
29
- background-image: ${({ theme: e }) => e.effects.texture};
30
- backdrop-filter: ${({ theme: e }) => e.effects.texture};
31
- clip-path: ${({ theme: e }) => e.geometry.shape};
32
- box-shadow: ${({ theme: e }) => e.shadows.section};
33
- cursor: ${({ $readOnly: e }) => e ? "default" : "pointer"};
34
- transition: box-shadow ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
30
+ background-image: ${({ theme: e }) => e.effects.texture};
31
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
32
+ clip-path: ${({ theme: e }) => e.geometry.shape};
33
+ box-shadow: ${({ theme: e }) => e.shadows.section};
34
+ cursor: ${({ $readOnly: e }) => e ? "default" : "pointer"};
35
+ transition: box-shadow ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
35
36
 
36
- /* The former glow collapses into one weak accent glow (wave decision В2). */
37
- &:hover {
38
- box-shadow:
39
- ${({ theme: e }) => e.shadows.section},
40
- ${({ theme: e }) => `0 0 10px color-mix(in srgb, ${e.colors.highlighted} 20%, transparent)`};
41
- }
37
+ /* The former glow collapses into one weak accent glow (wave decision В2). */
38
+ &:hover {
39
+ box-shadow: ${({ theme: e }) => e.shadows.section},
40
+ ${({ theme: e }) => `0 0 10px color-mix(in srgb, ${e.colors.highlighted} 20%, transparent)`};
41
+ }
42
42
 
43
- ${({ $readOnly: e, theme: t }) => e && o`${t.effects.interaction.disabled}`}
43
+ ${({ $readOnly: e, theme: t }) => e && o`
44
+ ${t.effects.interaction.disabled}
45
+ `}
44
46
  `, d = a.ul`
45
- position: absolute;
46
- top: 100%;
47
- left: 0;
48
- width: 100%;
49
- border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
50
- max-height: calc(${({ theme: e }) => e.elements.form.height} * 6);
51
- overflow-y: auto;
52
- background-color: ${({ theme: e }) => e.colors.section};
53
- /*
47
+ position: absolute;
48
+ top: 100%;
49
+ left: 0;
50
+ width: 100%;
51
+ border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
52
+ max-height: calc(${({ theme: e }) => e.elements.form.height} * 6);
53
+ overflow-y: auto;
54
+ background-color: ${({ theme: e }) => e.colors.section};
55
+
56
+ /*
54
57
  * effects.texture is one string per theme (README §4.1, §5.3): noise themes
55
58
  * supply a url() for background-image, glass themes supply blur() for
56
59
  * backdrop-filter. The list cannot know which theme is active, so it hands
@@ -59,49 +62,49 @@ var l = a.div`
59
62
  * none, and url() left in backdrop-filter is visually inert — verified in
60
63
  * Chromium). Both themes therefore texture the list without a name check.
61
64
  */
62
- background-image: ${({ theme: e }) => e.effects.texture};
63
- backdrop-filter: ${({ theme: e }) => e.effects.texture};
64
- list-style-type: none;
65
- padding: 0;
66
- margin: 0;
67
- margin-top: ${({ theme: e }) => e.offsets.betweenElements};
68
- border-radius: ${({ theme: e }) => e.border.radius};
69
- box-shadow: ${({ theme: e }) => e.shadows.notification};
70
- z-index: ${({ theme: e }) => e.zIndex.alert};
65
+ background-image: ${({ theme: e }) => e.effects.texture};
66
+ backdrop-filter: ${({ theme: e }) => e.effects.texture};
67
+ list-style-type: none;
68
+ padding: 0;
69
+ margin: 0;
70
+ margin-top: ${({ theme: e }) => e.offsets.betweenElements};
71
+ border-radius: ${({ theme: e }) => e.border.radius};
72
+ box-shadow: ${({ theme: e }) => e.shadows.notification};
73
+ z-index: ${({ theme: e }) => e.zIndex.alert};
71
74
  `, f = a.li`
72
- padding: ${({ theme: e }) => e.offsets.elementContent};
73
- background-color: ${({ $highlighted: e, theme: t }) => e ? t.colors.highlighted : t.colors.section};
74
- color: ${({ $highlighted: e, theme: t }) => e ? t.colors.highlightedContent : t.colors.sectionContent};
75
- font-size: ${({ theme: e }) => e.font.sizes.regular};
76
- cursor: pointer;
75
+ padding: ${({ theme: e }) => e.offsets.elementContent};
76
+ background-color: ${({ $highlighted: e, theme: t }) => e ? t.colors.highlighted : t.colors.section};
77
+ color: ${({ $highlighted: e, theme: t }) => e ? t.colors.highlightedContent : t.colors.sectionContent};
78
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
79
+ cursor: pointer;
77
80
 
78
- &:hover {
79
- background-color: ${({ theme: e }) => e.colors.highlighted};
80
- color: ${({ theme: e }) => e.colors.highlightedContent};
81
- }
81
+ &:hover {
82
+ background-color: ${({ theme: e }) => e.colors.highlighted};
83
+ color: ${({ theme: e }) => e.colors.highlightedContent};
84
+ }
82
85
  `, p = a.div`
83
- color: ${({ theme: e }) => e.colors.sectionContent};
84
- display: flex;
85
- gap: ${({ theme: e }) => e.offsets.betweenElements};
86
- padding-left: ${({ theme: e }) => e.offsets.betweenElements};
86
+ color: ${({ theme: e }) => e.colors.sectionContent};
87
+ display: flex;
88
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
89
+ padding-left: ${({ theme: e }) => e.offsets.betweenElements};
87
90
  `, m = a.li`
88
- padding: ${({ theme: e }) => e.offsets.elementContent};
89
- color: ${({ theme: e }) => e.colors.sectionContent};
91
+ padding: ${({ theme: e }) => e.offsets.elementContent};
92
+ color: ${({ theme: e }) => e.colors.sectionContent};
90
93
  `, h = a.button`
91
- background: none;
92
- border: none;
93
- cursor: ${({ $readOnly: e }) => e ? "default" : "pointer"};
94
- margin-left: ${({ theme: e }) => e.offsets.betweenElements};
95
- font-size: ${({ theme: e }) => e.font.sizes.regular};
96
- color: ${({ theme: e }) => e.colors.sectionContent};
94
+ background: none;
95
+ border: none;
96
+ cursor: ${({ $readOnly: e }) => e ? "default" : "pointer"};
97
+ margin-left: ${({ theme: e }) => e.offsets.betweenElements};
98
+ font-size: ${({ theme: e }) => e.font.sizes.regular};
99
+ color: ${({ theme: e }) => e.colors.sectionContent};
97
100
  `, g = a.div`
98
- width: 0;
99
- border-left: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
100
- margin-bottom: ${({ theme: e }) => e.offsets.betweenElements};
101
- margin-top: ${({ theme: e }) => e.offsets.betweenElements};
102
- box-sizing: border-box;
101
+ width: 0;
102
+ border-left: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
103
+ margin-bottom: ${({ theme: e }) => e.offsets.betweenElements};
104
+ margin-top: ${({ theme: e }) => e.offsets.betweenElements};
105
+ box-sizing: border-box;
103
106
  `, _ = a.span`
104
- color: ${({ theme: e }) => e.colors.sectionContent};
107
+ color: ${({ theme: e }) => e.colors.sectionContent};
105
108
  `, v = ({ options: a, value: o, onChange: v, isClearable: y = !1, readOnly: b = !1, placeholder: x = "Select an option", isSearchable: S = !1 }) => {
106
109
  let [C, w] = n(!1), [T, E] = n(0), [D, O] = n(""), k = t(null), A = () => {
107
110
  b || (w(!C), O(""));
@@ -128,34 +131,34 @@ var l = a.div`
128
131
  k.current && !k.current.contains(e.target) && w(!1);
129
132
  };
130
133
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
131
- }, []), /* @__PURE__ */ i(l, {
134
+ }, []), /* @__PURE__ */ c(l, {
132
135
  ref: k,
133
- children: [/* @__PURE__ */ i(u, {
136
+ children: [/* @__PURE__ */ c(u, {
134
137
  onClick: A,
135
138
  onKeyDown: N,
136
139
  tabIndex: 0,
137
140
  $readOnly: b,
138
- children: [o ? o.label : /* @__PURE__ */ r(_, { children: x }), /* @__PURE__ */ i(p, { children: [
139
- y && o && /* @__PURE__ */ r(h, {
141
+ children: [o ? o.label : /* @__PURE__ */ s(_, { children: x }), /* @__PURE__ */ c(p, { children: [
142
+ y && o && /* @__PURE__ */ s(h, {
140
143
  onClick: M,
141
144
  $readOnly: b,
142
- children: /* @__PURE__ */ r(c, { name: "X" })
145
+ children: /* @__PURE__ */ s(r, { name: "X" })
143
146
  }),
144
- /* @__PURE__ */ r(g, {}),
145
- /* @__PURE__ */ r("span", { children: C ? /* @__PURE__ */ r(c, { name: "ChevronUp" }) : /* @__PURE__ */ r(c, { name: "ChevronDown" }) })
147
+ /* @__PURE__ */ s(g, {}),
148
+ /* @__PURE__ */ s("span", { children: C ? /* @__PURE__ */ s(r, { name: "ChevronUp" }) : /* @__PURE__ */ s(r, { name: "ChevronDown" }) })
146
149
  ] })]
147
- }), C && !b && /* @__PURE__ */ i(d, { children: [S && /* @__PURE__ */ r(s, {
150
+ }), C && !b && /* @__PURE__ */ c(d, { children: [S && /* @__PURE__ */ s(i, {
148
151
  type: "text",
149
152
  value: D,
150
153
  onKeyDown: N,
151
154
  onChange: (e) => O(e.target.value),
152
155
  placeholder: "Search..."
153
- }), P?.length ? P.map((e, t) => /* @__PURE__ */ r(f, {
156
+ }), P?.length ? P.map((e, t) => /* @__PURE__ */ s(f, {
154
157
  $highlighted: T === t,
155
158
  onClick: () => j(e),
156
159
  onMouseEnter: () => E(t),
157
160
  children: e.label
158
- }, e.value)) : /* @__PURE__ */ r(m, { children: "No options found" })] })]
161
+ }, e.value)) : /* @__PURE__ */ s(m, { children: "No options found" })] })]
159
162
  });
160
163
  };
161
164
  export { v as Select, v as default };
package/dist/separator.js CHANGED
@@ -1,10 +1,16 @@
1
+ import "react";
1
2
  import e from "styled-components";
2
- // atoms/Separator/index.tsx
3
- var t = e.div`
4
- width: 100%;
5
- height: 0;
6
- border-top: ${({ theme: e }) => e.border.size} solid
7
- color-mix(in srgb, ${({ theme: e }) => e.colors.sectionContent} 25%, transparent);
8
- margin: ${({ theme: e }) => e.offsets.section} 0;
9
- `;
10
- export { t as Separator };
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ // atoms/Separator/styles.ts
5
+ var n = e.div`
6
+ width: 100%;
7
+ height: 0;
8
+ border-top: ${({ theme: e }) => e.border.size} ${({ $dashed: e }) => e ? "dashed" : "solid"}
9
+ ${({ $status: e, theme: t }) => e ? t.colors.status?.[e]?.content ?? t.colors.sectionContent : `color-mix(in srgb, ${t.colors.sectionContent} 25%, transparent)`};
10
+ margin: ${({ $dashed: e, theme: t }) => e ? `calc(${t.offsets.elementContent} / 2) 0` : `${t.offsets.section} 0`};
11
+ `, r = ({ $status: e, $dashed: r, ...i }) => /* @__PURE__ */ t(n, {
12
+ $status: e,
13
+ $dashed: r,
14
+ ...i
15
+ });
16
+ export { r as Separator };
@@ -0,0 +1,34 @@
1
+ import "react";
2
+ import { MonoText as e } from "@md-code/components/mono-text";
3
+ import t from "styled-components";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ // molecules/SliderField/styles.ts
6
+ var i = t.label`
7
+ display: flex;
8
+ align-items: center;
9
+ gap: ${({ theme: e }) => e.offsets.elementContent};
10
+ `, a = t.input`
11
+ flex: 1 1 auto;
12
+ min-width: 0;
13
+ accent-color: ${({ $status: e, theme: t }) => e ? t.colors.status?.[e]?.content ?? t.colors.highlighted : t.colors.highlighted};
14
+ `, o = ({ id: t, label: o, status: s, value: c, min: l, max: u, step: d, onChange: f, valueLabel: p }) => /* @__PURE__ */ r(i, {
15
+ htmlFor: t,
16
+ children: [
17
+ o,
18
+ /* @__PURE__ */ n(a, {
19
+ id: t,
20
+ type: "range",
21
+ min: l,
22
+ max: u,
23
+ step: d,
24
+ value: c,
25
+ $status: s,
26
+ onChange: (e) => f(Number(e.target.value))
27
+ }),
28
+ /* @__PURE__ */ n(e, {
29
+ $tone: c === l ? "dim" : "default",
30
+ children: p ?? c
31
+ })
32
+ ]
33
+ });
34
+ export { o as SliderField };
package/dist/stack.js ADDED
@@ -0,0 +1,16 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ // atoms/Stack/styles.ts
5
+ var n = e.div`
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
9
+ min-width: 0;
10
+ ${({ $grow: e }) => e ? "flex: 1 1 0;\n overflow-wrap: anywhere;" : ""}
11
+ `, r = ({ $grow: e, children: r, ...i }) => /* @__PURE__ */ t(n, {
12
+ $grow: e,
13
+ ...i,
14
+ children: r
15
+ });
16
+ export { r as Stack };
@@ -0,0 +1,10 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ // molecules/StatGrid/styles.ts
5
+ var n = e.div`
6
+ display: grid;
7
+ grid-template-columns: repeat(auto-fit, minmax(calc(${({ theme: e }) => e.offsets.section} * 7), 1fr));
8
+ gap: ${({ theme: e }) => e.offsets.elementContent};
9
+ `, r = ({ children: e }) => /* @__PURE__ */ t(n, { children: e });
10
+ export { r as StatGrid };
package/dist/stat.js ADDED
@@ -0,0 +1,24 @@
1
+ import { Caption as e } from "@md-code/components/caption";
2
+ import "react";
3
+ import t from "styled-components";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ // atoms/Stat/styles.ts
6
+ var i = t.div`
7
+ background: ${({ theme: e }) => e.colors.overlay};
8
+ border: ${({ theme: e }) => e.border.size} solid
9
+ ${({ theme: e }) => e.colors.status?.edge?.background ?? e.colors.highlighted};
10
+ border-radius: ${({ theme: e }) => e.border.radius};
11
+ padding: calc(${({ theme: e }) => e.offsets.elementContent} * 1.25) calc(${({ theme: e }) => e.offsets.betweenElements});
12
+ `, a = t.div`
13
+ font-size: calc(
14
+ ${({ theme: e }) => e.font.sizes.large} + ${({ theme: e }) => e.offsets.elementContent} - ${({ theme: e }) => e.border.size} * 2
15
+ );
16
+ /* The step-0 baseline's number: heavy, on a tight measure (README §6). */
17
+ font-weight: 700;
18
+ line-height: 1.2;
19
+ color: ${({ theme: e, $status: t }) => t ? e.colors.status?.[t]?.content ?? e.colors.sectionContent : e.colors.sectionContent};
20
+ `, o = ({ label: t, value: o, $status: s }) => /* @__PURE__ */ r(i, { children: [/* @__PURE__ */ n(a, {
21
+ $status: s,
22
+ children: o
23
+ }), /* @__PURE__ */ n(e, { children: t })] });
24
+ export { o as Stat };
@@ -1,33 +1,37 @@
1
1
  import "react";
2
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
- import n from "styled-components";
4
- import { Loader as r } from "@md-code/components/loading";
2
+ import { Loader as e } from "@md-code/components/loading";
3
+ import t from "styled-components";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
5
  // molecules/StatusLabel/styles.ts
6
- var i = n.div`
7
- display: inline-flex;
8
- align-items: center;
9
- gap: ${({ theme: e }) => e.offsets.elementContent};
10
- position: relative;
11
- padding: ${({ theme: e }) => e.offsets.elementContent};
12
- /* The badge is a section surface separated from its neighbours by a border
6
+ var i = t.div`
7
+ display: inline-flex;
8
+ align-items: center;
9
+ gap: ${({ theme: e }) => e.offsets.elementContent};
10
+ position: relative;
11
+ padding: ${({ theme: e }) => e.offsets.elementContent};
12
+
13
+ /* The badge is a section surface separated from its neighbours by a border
13
14
  in the section content colour (В3); the radius is the theme's. */
14
- border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
15
- border-radius: ${({ theme: e }) => e.border.radius};
16
- background-color: ${({ $status: e = "", theme: t }) => t.colors.status?.[e]?.background ?? t.colors.section};
17
- color: ${({ $status: e = "", theme: t }) => t.colors.status?.[e]?.content ?? t.colors.sectionContent};
18
- `, a = n.div`
19
- width: ${({ theme: e }) => e.elements.icons.width};
20
- height: ${({ theme: e }) => e.elements.icons.height};
21
- /* The dot's silhouette is the theme's surface radius: viking (0) is square,
15
+ border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
16
+ border-radius: ${({ theme: e }) => e.border.radius};
17
+ background-color: ${({ $status: e, theme: t }) => (e ? t.colors.status?.[e] : void 0)?.background ?? t.colors.section};
18
+ color: ${({ $status: e, theme: t }) => (e ? t.colors.status?.[e] : void 0)?.content ?? t.colors.sectionContent};
19
+ `, a = t.div`
20
+ width: ${({ theme: e }) => e.elements.icons.width};
21
+ height: ${({ theme: e }) => e.elements.icons.height};
22
+
23
+ /* The dot's silhouette is the theme's surface radius: viking (0) is square,
22
24
  glass (12px, clamped to half the 20px dot) is round. */
23
- border-radius: ${({ theme: e }) => e.border.radius};
24
- background-color: currentColor;
25
- /* The baseline viking dot carried a weak accent glow; glow is a shadow in
25
+ border-radius: ${({ theme: e }) => e.border.radius};
26
+ background-color: currentcolor;
27
+
28
+ /* The baseline viking dot carried a weak accent glow; glow is a shadow in
26
29
  the accent colour, derived — the same pattern the Button uses (README §5.3).
27
30
  The blur radius is derived from the dot size (half of it), not stored. */
28
- box-shadow: 0 0 calc(${({ theme: e }) => e.elements.icons.width} / 2) color-mix(in srgb, ${({ theme: e }) => e.colors.highlighted} 20%, transparent);
29
- position: relative;
30
- flex-shrink: 0;
31
+ box-shadow: 0 0 calc(${({ theme: e }) => e.elements.icons.width} / 2)
32
+ color-mix(in srgb, ${({ theme: e }) => e.colors.highlighted} 20%, transparent);
33
+ position: relative;
34
+ flex-shrink: 0;
31
35
  `, o = {
32
36
  not_calculated: {
33
37
  label: "Not Calculated",
@@ -49,11 +53,11 @@ var i = n.div`
49
53
  label: "Success",
50
54
  status: "success"
51
55
  }
52
- }, s = ({ label: n, $status: s, isLoading: c, state: l }) => {
53
- let u = l ? o[l] : void 0, d = n, f = s, p = c;
54
- return l && u ? (d === void 0 && (d = u.label), f === void 0 && (f = u.status), (l === "queued" || l === "processing") && (p = !0)) : l && d === void 0 && (d = l), /* @__PURE__ */ t(i, {
56
+ }, s = ({ label: t, $status: s, isLoading: c, state: l }) => {
57
+ let u = l ? o[l] : void 0, d = t, f = s, p = c;
58
+ return l && u ? (d === void 0 && (d = u.label), f === void 0 && (f = u.status), (l === "queued" || l === "processing") && (p = !0)) : l && d === void 0 && (d = l), /* @__PURE__ */ r(i, {
55
59
  $status: f,
56
- children: [p ? /* @__PURE__ */ e(r, { $size: "small" }) : /* @__PURE__ */ e(a, { className: "status-dot" }), /* @__PURE__ */ e("span", { children: d || "Unknown" })]
60
+ children: [p ? /* @__PURE__ */ n(e, { $size: "small" }) : /* @__PURE__ */ n(a, { className: "status-dot" }), /* @__PURE__ */ n("span", { children: d || "Unknown" })]
57
61
  });
58
62
  };
59
63
  export { s as StatusLabel };
@@ -0,0 +1,13 @@
1
+ import "react";
2
+ import e from "styled-components";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ // atoms/StatusText/styles.ts
5
+ var n = e.span`
6
+ color: ${({ $status: e, theme: t }) => e ? t.colors.status?.[e]?.content ?? t.colors.sectionContent : t.colors.sectionContent};
7
+ font-weight: ${({ theme: e }) => e.font.weight.title};
8
+ `, r = ({ $status: e, children: r, ...i }) => /* @__PURE__ */ t(n, {
9
+ $status: e,
10
+ ...i,
11
+ children: r
12
+ });
13
+ export { r as StatusText };