@astronox/core 0.1.0

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 (259) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +66 -0
  3. package/package.json +77 -0
  4. package/src/client/clipboard.ts +7 -0
  5. package/src/client/focus.ts +17 -0
  6. package/src/client/index.ts +3 -0
  7. package/src/client/scroll.ts +15 -0
  8. package/src/components/actions/ActionListItem/ActionListItem.astro +78 -0
  9. package/src/components/actions/ActionListItem/ActionListItem.css +43 -0
  10. package/src/components/actions/Button/Button.astro +100 -0
  11. package/src/components/actions/Button/Button.css +165 -0
  12. package/src/components/actions/CardAction/CardAction.astro +97 -0
  13. package/src/components/actions/CardAction/CardAction.css +188 -0
  14. package/src/components/actions/MediaTrigger/MediaTrigger.astro +55 -0
  15. package/src/components/actions/MediaTrigger/MediaTrigger.css +175 -0
  16. package/src/components/actions/ScrollToTop/ScrollToTop.astro +36 -0
  17. package/src/components/actions/ScrollToTop/ScrollToTop.css +19 -0
  18. package/src/components/actions/ScrollToTop/scrollToTopController.ts +32 -0
  19. package/src/components/content/CardBody/CardBody.astro +31 -0
  20. package/src/components/content/CardBody/CardBody.css +74 -0
  21. package/src/components/content/CardFooter/CardFooter.astro +58 -0
  22. package/src/components/content/CardFooter/CardFooter.css +102 -0
  23. package/src/components/content/CardHeader/CardHeader.astro +96 -0
  24. package/src/components/content/CardHeader/CardHeader.css +164 -0
  25. package/src/components/content/CardLink/CardLink.astro +138 -0
  26. package/src/components/content/CardLink/CardLink.css +362 -0
  27. package/src/components/content/CodeBlock/CodeBlock.astro +102 -0
  28. package/src/components/content/CodeBlock/CodeBlock.css +85 -0
  29. package/src/components/content/CodeBlock/codeBlockController.ts +60 -0
  30. package/src/components/content/CodeBlock/contracts.ts +8 -0
  31. package/src/components/content/InlineDefinition/InlineDefinition.astro +31 -0
  32. package/src/components/content/InlineDefinition/InlineDefinition.css +9 -0
  33. package/src/components/content/MarkdownContent/MarkdownContent.astro +32 -0
  34. package/src/components/content/MarkdownContent/MarkdownContent.css +358 -0
  35. package/src/components/content/MarkdownContent/MarkdownInline.astro +44 -0
  36. package/src/components/content/MarkdownContent/MarkdownNode.astro +280 -0
  37. package/src/components/content/MarkdownContent/MarkdownSymbol.astro +47 -0
  38. package/src/components/content/MarkdownContent/contracts.ts +181 -0
  39. package/src/components/data-display/BadgeList/BadgeList.astro +54 -0
  40. package/src/components/data-display/BadgeList/BadgeList.css +29 -0
  41. package/src/components/data-display/IconList/IconList.astro +64 -0
  42. package/src/components/data-display/IconList/IconList.css +55 -0
  43. package/src/components/data-display/MetricTile/MetricTile.astro +68 -0
  44. package/src/components/data-display/MetricTile/MetricTile.css +103 -0
  45. package/src/components/data-display/MetricTile/MetricTileContent.astro +70 -0
  46. package/src/components/data-display/MetricTile/metricTileController.ts +9 -0
  47. package/src/components/data-display/Tag/Tag.astro +67 -0
  48. package/src/components/data-display/Tag/Tag.css +134 -0
  49. package/src/components/data-display/Tag/TagAffix.astro +33 -0
  50. package/src/components/data-display/TextPair/TextPair.astro +63 -0
  51. package/src/components/data-display/TextPair/TextPair.css +99 -0
  52. package/src/components/feedback/Spinner/Spinner.astro +32 -0
  53. package/src/components/feedback/Spinner/Spinner.css +37 -0
  54. package/src/components/feedback/Tooltip/Tooltip.astro +66 -0
  55. package/src/components/feedback/Tooltip/Tooltip.css +67 -0
  56. package/src/components/feedback/Tooltip/tooltipController.ts +371 -0
  57. package/src/components/forms/FieldError/FieldError.astro +31 -0
  58. package/src/components/forms/FieldError/FieldError.css +12 -0
  59. package/src/components/forms/FieldError/fieldErrorState.ts +21 -0
  60. package/src/components/forms/FieldLabel/FieldLabel.astro +32 -0
  61. package/src/components/forms/FieldLabel/FieldLabel.css +17 -0
  62. package/src/components/forms/TextInput/TextInput.astro +79 -0
  63. package/src/components/forms/TextInput/TextInput.css +121 -0
  64. package/src/components/forms/TextInput/textInputController.ts +53 -0
  65. package/src/components/icons/ArrowDownIcon.astro +26 -0
  66. package/src/components/icons/ArrowLeftIcon.astro +26 -0
  67. package/src/components/icons/ArrowRightIcon.astro +26 -0
  68. package/src/components/icons/ArrowUpDownIcon.astro +26 -0
  69. package/src/components/icons/ArrowUpIcon.astro +26 -0
  70. package/src/components/icons/BulletIcon.astro +21 -0
  71. package/src/components/icons/BurnIcon.astro +24 -0
  72. package/src/components/icons/CircleSymbolIcon.css +66 -0
  73. package/src/components/icons/ClearIcon.astro +28 -0
  74. package/src/components/icons/CloseIcon.astro +21 -0
  75. package/src/components/icons/CopyIcon.astro +30 -0
  76. package/src/components/icons/CurrencyIcon.css +9 -0
  77. package/src/components/icons/DayIcon.astro +33 -0
  78. package/src/components/icons/DollarIcon.astro +28 -0
  79. package/src/components/icons/DownloadIcon.astro +22 -0
  80. package/src/components/icons/EnterFullscreenIcon.astro +22 -0
  81. package/src/components/icons/EqualIcon.astro +25 -0
  82. package/src/components/icons/ExitFullscreenIcon.astro +22 -0
  83. package/src/components/icons/ExternalLinkIcon.astro +22 -0
  84. package/src/components/icons/FieldIcon.astro +28 -0
  85. package/src/components/icons/GrassIcon.astro +29 -0
  86. package/src/components/icons/InfoIcon.astro +24 -0
  87. package/src/components/icons/MinusIcon.astro +21 -0
  88. package/src/components/icons/MountainIcon.astro +31 -0
  89. package/src/components/icons/NightIcon.astro +32 -0
  90. package/src/components/icons/PlayIcon.astro +22 -0
  91. package/src/components/icons/PlusIcon.astro +21 -0
  92. package/src/components/icons/PoisonIcon.astro +24 -0
  93. package/src/components/icons/RibbonIcon.astro +25 -0
  94. package/src/components/icons/SlashIcon.astro +22 -0
  95. package/src/components/icons/SlowIcon.astro +25 -0
  96. package/src/components/icons/StarIcon.astro +28 -0
  97. package/src/components/icons/StunIcon.astro +22 -0
  98. package/src/components/icons/TableSortIcon.astro +34 -0
  99. package/src/components/icons/WaterIcon.astro +30 -0
  100. package/src/components/index.ts +83 -0
  101. package/src/components/media/CanvasFrame/CanvasFrame.astro +130 -0
  102. package/src/components/media/CanvasFrame/CanvasFrame.css +59 -0
  103. package/src/components/media/CanvasFrame/canvasFrameController.ts +104 -0
  104. package/src/components/media/EmbedFrame/EmbedFrame.astro +147 -0
  105. package/src/components/media/EmbedFrame/EmbedFrame.css +51 -0
  106. package/src/components/media/EmbedFrame/embedFrameController.ts +66 -0
  107. package/src/components/media/MediaFrame/MediaFrame.astro +34 -0
  108. package/src/components/media/MediaFrame/MediaFrame.css +66 -0
  109. package/src/components/navigation/Breadcrumbs/Breadcrumbs.astro +55 -0
  110. package/src/components/navigation/Breadcrumbs/Breadcrumbs.css +89 -0
  111. package/src/components/navigation/DesktopNavigation.astro +92 -0
  112. package/src/components/navigation/DesktopNavigation.css +99 -0
  113. package/src/components/navigation/Header.astro +73 -0
  114. package/src/components/navigation/Header.css +20 -0
  115. package/src/components/navigation/MobileNavigation.astro +124 -0
  116. package/src/components/navigation/MobileNavigation.css +177 -0
  117. package/src/components/navigation/NavigationBrand.astro +63 -0
  118. package/src/components/navigation/NavigationBrand.css +52 -0
  119. package/src/components/navigation/NavigationControl.css +166 -0
  120. package/src/components/navigation/NavigationItemContent.astro +24 -0
  121. package/src/components/navigation/NavigationLink.astro +121 -0
  122. package/src/components/navigation/NavigationLinks.astro +27 -0
  123. package/src/components/navigation/NavigationMenuList.astro +37 -0
  124. package/src/components/navigation/NavigationMenuList.css +6 -0
  125. package/src/components/navigation/SkipLink/SkipLink.astro +18 -0
  126. package/src/components/navigation/SkipLink/SkipLink.css +26 -0
  127. package/src/components/navigation/SubNavigation/SubNavigation.astro +124 -0
  128. package/src/components/navigation/SubNavigation/SubNavigation.css +211 -0
  129. package/src/components/navigation/mobileNavigationController.ts +122 -0
  130. package/src/components/navigation/navigationState.ts +35 -0
  131. package/src/components/navigation/navigationTypes.ts +18 -0
  132. package/src/components/seo/SeoHead.astro +194 -0
  133. package/src/components/widgetTypes.ts +3 -0
  134. package/src/composition/Grid/Grid.astro +82 -0
  135. package/src/composition/Grid/Grid.css +314 -0
  136. package/src/composition/GridItem/GridItem.astro +50 -0
  137. package/src/composition/GridItem/GridItem.css +95 -0
  138. package/src/composition/Inline/Inline.astro +48 -0
  139. package/src/composition/Inline/Inline.css +65 -0
  140. package/src/composition/Stack/Stack.astro +37 -0
  141. package/src/composition/Stack/Stack.css +31 -0
  142. package/src/composition/SurfaceGroup/SurfaceGroup.astro +44 -0
  143. package/src/composition/SurfaceGroup/SurfaceGroup.css +76 -0
  144. package/src/composition/SurfaceGroup/stickySurfaceGroupController.ts +89 -0
  145. package/src/composition/index.ts +6 -0
  146. package/src/config/index.ts +2 -0
  147. package/src/config/pageMeta.ts +55 -0
  148. package/src/config/siteConfig.ts +90 -0
  149. package/src/data/collectionValidation.ts +61 -0
  150. package/src/data/index.ts +1 -0
  151. package/src/display/contracts.ts +284 -0
  152. package/src/display/index.ts +1 -0
  153. package/src/index.ts +6 -0
  154. package/src/layouts/BaseLayout.astro +74 -0
  155. package/src/layouts/PageSurface.astro +15 -0
  156. package/src/layouts/PageSurface.css +24 -0
  157. package/src/layouts/index.ts +2 -0
  158. package/src/patterns/CircuitPuzzle/CircuitPuzzle.astro +93 -0
  159. package/src/patterns/CircuitPuzzle/CircuitPuzzle.css +118 -0
  160. package/src/patterns/CircuitPuzzle/circuitPuzzleController.ts +205 -0
  161. package/src/patterns/CircuitPuzzle/contracts.ts +42 -0
  162. package/src/patterns/Combobox/Combobox.astro +462 -0
  163. package/src/patterns/Combobox/Combobox.css +403 -0
  164. package/src/patterns/Combobox/comboboxController.ts +788 -0
  165. package/src/patterns/Combobox/contracts.ts +18 -0
  166. package/src/patterns/Dropdown/Dropdown.astro +127 -0
  167. package/src/patterns/Dropdown/Dropdown.css +100 -0
  168. package/src/patterns/Dropdown/dropdownController.ts +157 -0
  169. package/src/patterns/Fullscreen/FullscreenControl.astro +103 -0
  170. package/src/patterns/Fullscreen/FullscreenControl.css +49 -0
  171. package/src/patterns/Fullscreen/fullscreenController.ts +73 -0
  172. package/src/patterns/GlitchOverlay/GlitchOverlay.astro +50 -0
  173. package/src/patterns/GlitchOverlay/GlitchOverlay.css +234 -0
  174. package/src/patterns/GlitchOverlay/glitchOverlayController.ts +152 -0
  175. package/src/patterns/GuidedFlow/GuidedFlow.astro +60 -0
  176. package/src/patterns/GuidedFlow/GuidedFlow.css +82 -0
  177. package/src/patterns/GuidedFlow/contracts.ts +3 -0
  178. package/src/patterns/GuidedFlow/guidedFlowController.ts +49 -0
  179. package/src/patterns/MagneticFieldPuzzle/MagneticFieldPuzzle.astro +217 -0
  180. package/src/patterns/MagneticFieldPuzzle/MagneticFieldPuzzle.css +383 -0
  181. package/src/patterns/MagneticFieldPuzzle/contracts.ts +81 -0
  182. package/src/patterns/MagneticFieldPuzzle/magneticFieldPuzzleController.ts +802 -0
  183. package/src/patterns/MagneticFieldPuzzle/simulation.ts +244 -0
  184. package/src/patterns/MapViewport/MapViewport.astro +296 -0
  185. package/src/patterns/MapViewport/MapViewport.css +257 -0
  186. package/src/patterns/MapViewport/contracts.ts +79 -0
  187. package/src/patterns/MapViewport/geometry.ts +80 -0
  188. package/src/patterns/MapViewport/mapViewportController.ts +636 -0
  189. package/src/patterns/Modal/Modal.astro +64 -0
  190. package/src/patterns/Modal/Modal.css +87 -0
  191. package/src/patterns/Modal/ModalClose.astro +37 -0
  192. package/src/patterns/Modal/ModalOpen.astro +36 -0
  193. package/src/patterns/Modal/modalController.ts +118 -0
  194. package/src/patterns/PuzzleGrid/PuzzleGrid.astro +22 -0
  195. package/src/patterns/PuzzleGrid/PuzzleGrid.css +149 -0
  196. package/src/patterns/PuzzleGrid/contracts.ts +2 -0
  197. package/src/patterns/PuzzleGrid/selectionDismissal.ts +27 -0
  198. package/src/patterns/PuzzleGrid/state.ts +25 -0
  199. package/src/patterns/SpriteProjectilePreview/SpriteProjectilePreview.astro +65 -0
  200. package/src/patterns/SpriteProjectilePreview/SpriteProjectilePreview.css +35 -0
  201. package/src/patterns/SpriteProjectilePreview/contracts.ts +33 -0
  202. package/src/patterns/SpriteProjectilePreview/spriteProjectilePreviewController.ts +586 -0
  203. package/src/patterns/StageFlow/StageFlow.astro +57 -0
  204. package/src/patterns/StageFlow/StageFlow.css +54 -0
  205. package/src/patterns/StageFlow/StageFlowAlternative.astro +23 -0
  206. package/src/patterns/StageFlow/StageFlowArrow.astro +22 -0
  207. package/src/patterns/StageFlow/StageFlowConnector.astro +7 -0
  208. package/src/patterns/StageFlow/StageFlowConnector.css +4 -0
  209. package/src/patterns/StageFlow/StageFlowStage.astro +51 -0
  210. package/src/patterns/StageFlow/StageFlowStage.css +106 -0
  211. package/src/patterns/StageFlow/StageFlowStep.astro +24 -0
  212. package/src/patterns/StageFlow/StageFlowStep.css +19 -0
  213. package/src/patterns/StageFlow/StageFlowSymbol.css +28 -0
  214. package/src/patterns/Table/Table.astro +176 -0
  215. package/src/patterns/Table/Table.css +70 -0
  216. package/src/patterns/Table/TableBody.astro +185 -0
  217. package/src/patterns/Table/TableBody.css +262 -0
  218. package/src/patterns/Table/TableCell.astro +59 -0
  219. package/src/patterns/Table/TableCell.css +99 -0
  220. package/src/patterns/Table/TableCellValue.astro +86 -0
  221. package/src/patterns/Table/TableFooter.astro +32 -0
  222. package/src/patterns/Table/TableFooter.css +31 -0
  223. package/src/patterns/Table/TableHeader.astro +118 -0
  224. package/src/patterns/Table/TableHeader.css +209 -0
  225. package/src/patterns/Table/TablePagination.astro +70 -0
  226. package/src/patterns/Table/TablePagination.css +133 -0
  227. package/src/patterns/Table/TableSkeleton.astro +36 -0
  228. package/src/patterns/Table/TableSkeleton.css +81 -0
  229. package/src/patterns/Table/tableCellController.ts +11 -0
  230. package/src/patterns/Table/tableFilterController.ts +206 -0
  231. package/src/patterns/Table/tableHeaderOverflowController.ts +105 -0
  232. package/src/patterns/Table/tableLayout.ts +113 -0
  233. package/src/patterns/Table/tableProgressiveController.ts +319 -0
  234. package/src/patterns/Table/tableRowNavigationController.ts +91 -0
  235. package/src/patterns/Table/tableScrollController.ts +192 -0
  236. package/src/patterns/Table/tableSortController.ts +272 -0
  237. package/src/patterns/index.ts +46 -0
  238. package/src/primitives/index.ts +4 -0
  239. package/src/primitives/layout/Separator/Separator.astro +29 -0
  240. package/src/primitives/layout/Separator/Separator.css +20 -0
  241. package/src/primitives/media/AmbientAudio/AmbientAudio.astro +28 -0
  242. package/src/primitives/media/Media/Media.astro +122 -0
  243. package/src/primitives/media/Media/Media.css +161 -0
  244. package/src/primitives/text/TextBlock/TextBlock.astro +46 -0
  245. package/src/primitives/text/TextBlock/TextBlock.css +21 -0
  246. package/src/seo/StaticRedirect.astro +32 -0
  247. package/src/seo/index.ts +6 -0
  248. package/src/seo/pageSeo.ts +99 -0
  249. package/src/seo/robots.ts +16 -0
  250. package/src/seo/sitemap.ts +38 -0
  251. package/src/seo/structuredData.ts +133 -0
  252. package/src/seo/url.ts +64 -0
  253. package/src/styles/base.css +148 -0
  254. package/src/styles/interaction.css +108 -0
  255. package/src/styles/style.css +93 -0
  256. package/src/styles/tokens.css +256 -0
  257. package/src/theme/contracts.ts +7 -0
  258. package/src/theme/index.ts +1 -0
  259. package/tsconfig.json +20 -0
@@ -0,0 +1,53 @@
1
+ const initializedAttribute = 'data-text-input-initialized';
2
+ const noop = (): void => undefined;
3
+
4
+ export function initTextInput(root: HTMLElement): () => void {
5
+ if (root.getAttribute(initializedAttribute) === 'true') return noop;
6
+
7
+ const input = root.querySelector<HTMLInputElement>(
8
+ '[data-text-input-control]',
9
+ );
10
+ const clear = root.querySelector<HTMLButtonElement>(
11
+ '[data-text-input-clear]',
12
+ );
13
+ if (!input) return noop;
14
+
15
+ root.setAttribute(initializedAttribute, 'true');
16
+ let autofocusFrame: number | undefined;
17
+
18
+ const syncClear = (): void => {
19
+ if (!clear) return;
20
+ clear.hidden = input.value.length === 0 || input.disabled || input.readOnly;
21
+ };
22
+
23
+ const handleClear = (): void => {
24
+ if (input.disabled || input.readOnly) return;
25
+
26
+ input.value = '';
27
+ syncClear();
28
+ input.dispatchEvent(new Event('input', { bubbles: true }));
29
+ input.focus();
30
+ };
31
+
32
+ input.addEventListener('input', syncClear);
33
+ clear?.addEventListener('click', handleClear);
34
+ syncClear();
35
+
36
+ if (
37
+ root.dataset.textInputAutofocus === 'desktop' &&
38
+ window.matchMedia('(hover: hover) and (pointer: fine)').matches
39
+ ) {
40
+ autofocusFrame = window.requestAnimationFrame(() => {
41
+ input.focus({ preventScroll: true });
42
+ });
43
+ }
44
+
45
+ return () => {
46
+ if (autofocusFrame !== undefined) {
47
+ window.cancelAnimationFrame(autofocusFrame);
48
+ }
49
+ input.removeEventListener('input', syncClear);
50
+ clear?.removeEventListener('click', handleClear);
51
+ root.removeAttribute(initializedAttribute);
52
+ };
53
+ }
@@ -0,0 +1,26 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ 'aria-hidden': ariaHidden = 'true',
8
+ focusable = 'false',
9
+ ...attrs
10
+ }: Props = Astro.props;
11
+ ---
12
+
13
+ <svg
14
+ {...attrs}
15
+ viewBox="0 0 32 32"
16
+ fill="none"
17
+ aria-hidden={ariaHidden}
18
+ focusable={focusable}
19
+ >
20
+ <path
21
+ d="m7.5 12.5 8.5 8.5 8.5-8.5"
22
+ stroke="currentColor"
23
+ stroke-linecap="round"
24
+ stroke-linejoin="round"
25
+ stroke-width="2.4"></path>
26
+ </svg>
@@ -0,0 +1,26 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ 'aria-hidden': ariaHidden = 'true',
8
+ focusable = 'false',
9
+ ...attrs
10
+ }: Props = Astro.props;
11
+ ---
12
+
13
+ <svg
14
+ {...attrs}
15
+ viewBox="0 0 32 32"
16
+ fill="none"
17
+ aria-hidden={ariaHidden}
18
+ focusable={focusable}
19
+ >
20
+ <path
21
+ d="m19.5 7.5-8.5 8.5 8.5 8.5"
22
+ stroke="currentColor"
23
+ stroke-linecap="round"
24
+ stroke-linejoin="round"
25
+ stroke-width="2.4"></path>
26
+ </svg>
@@ -0,0 +1,26 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ 'aria-hidden': ariaHidden = 'true',
8
+ focusable = 'false',
9
+ ...attrs
10
+ }: Props = Astro.props;
11
+ ---
12
+
13
+ <svg
14
+ {...attrs}
15
+ viewBox="0 0 32 32"
16
+ fill="none"
17
+ aria-hidden={ariaHidden}
18
+ focusable={focusable}
19
+ >
20
+ <path
21
+ d="m12.5 7.5 8.5 8.5-8.5 8.5"
22
+ stroke="currentColor"
23
+ stroke-linecap="round"
24
+ stroke-linejoin="round"
25
+ stroke-width="2.4"></path>
26
+ </svg>
@@ -0,0 +1,26 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ 'aria-hidden': ariaHidden = 'true',
8
+ focusable = 'false',
9
+ ...attrs
10
+ }: Props = Astro.props;
11
+ ---
12
+
13
+ <svg
14
+ {...attrs}
15
+ viewBox="0 0 32 32"
16
+ fill="none"
17
+ aria-hidden={ariaHidden}
18
+ focusable={focusable}
19
+ >
20
+ <path
21
+ d="M11 24V8m0 0-4 4m4-4 4 4m6-4v16m0 0-4-4m4 4 4-4"
22
+ stroke="currentColor"
23
+ stroke-linecap="round"
24
+ stroke-linejoin="round"
25
+ stroke-width="2.4"></path>
26
+ </svg>
@@ -0,0 +1,26 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ 'aria-hidden': ariaHidden = 'true',
8
+ focusable = 'false',
9
+ ...attrs
10
+ }: Props = Astro.props;
11
+ ---
12
+
13
+ <svg
14
+ {...attrs}
15
+ viewBox="0 0 32 32"
16
+ fill="none"
17
+ aria-hidden={ariaHidden}
18
+ focusable={focusable}
19
+ >
20
+ <path
21
+ d="m7.5 19.5 8.5-8.5 8.5 8.5"
22
+ stroke="currentColor"
23
+ stroke-linecap="round"
24
+ stroke-linejoin="round"
25
+ stroke-width="2.4"></path>
26
+ </svg>
@@ -0,0 +1,21 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ 'aria-hidden': ariaHidden = 'true',
8
+ focusable = 'false',
9
+ ...attrs
10
+ }: Props = Astro.props;
11
+ ---
12
+
13
+ <svg
14
+ {...attrs}
15
+ viewBox="0 0 32 32"
16
+ fill="none"
17
+ aria-hidden={ariaHidden}
18
+ focusable={focusable}
19
+ >
20
+ <circle cx="16" cy="16" r="4.5" fill="currentColor"></circle>
21
+ </svg>
@@ -0,0 +1,24 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+ type Props = HTMLAttributes<'svg'>;
4
+ const {
5
+ class: className,
6
+ 'aria-hidden': ariaHidden = 'true',
7
+ focusable = 'false',
8
+ ...attrs
9
+ }: Props = Astro.props;
10
+ ---
11
+
12
+ <svg
13
+ {...attrs}
14
+ class:list={['circle-symbol-icon', className]}
15
+ viewBox="0 0 32 32"
16
+ fill="none"
17
+ aria-hidden={ariaHidden}
18
+ focusable={focusable}
19
+ >
20
+ <circle class="circle-symbol-icon__surface" cx="16" cy="16" r="13"></circle>
21
+ <path
22
+ class="circle-symbol-icon__fill"
23
+ d="M17 7c1 5-3 6-3 10 0 1.5.8 2.7 2 3.4-.3-2.4 1.3-3.4 2.2-5.4 2.3 2 3.8 4.1 3.8 6.4 0 3.2-2.7 5.6-6 5.6s-6-2.4-6-5.8C10 15.7 15.7 13 17 7Z"></path>
24
+ </svg>
@@ -0,0 +1,66 @@
1
+ .circle-symbol-icon {
2
+ --circle-symbol-icon-seed: var(--nox-tone-seed);
3
+ --circle-symbol-icon-surface: color-mix(
4
+ in srgb,
5
+ var(--circle-symbol-icon-seed) 32%,
6
+ var(--nox-mix-light)
7
+ );
8
+ --circle-symbol-icon-border: color-mix(
9
+ in srgb,
10
+ var(--circle-symbol-icon-seed) 74%,
11
+ var(--nox-mix-dark)
12
+ );
13
+ --circle-symbol-icon-mark: color-mix(
14
+ in srgb,
15
+ var(--circle-symbol-icon-seed) 82%,
16
+ var(--nox-mix-dark)
17
+ );
18
+
19
+ color: var(--circle-symbol-icon-mark);
20
+ }
21
+
22
+ .circle-symbol-icon[data-terrain-icon='field'] {
23
+ --circle-symbol-icon-seed: var(--nox-source-map-field);
24
+ }
25
+
26
+ .circle-symbol-icon[data-terrain-icon='grass'] {
27
+ --circle-symbol-icon-seed: var(--nox-source-map-grass);
28
+ }
29
+
30
+ .circle-symbol-icon[data-terrain-icon='mountain'] {
31
+ --circle-symbol-icon-seed: var(--nox-source-map-mountain);
32
+ }
33
+
34
+ .circle-symbol-icon[data-terrain-icon='water'] {
35
+ --circle-symbol-icon-seed: var(--nox-source-map-water);
36
+ }
37
+
38
+ .circle-symbol-icon__surface {
39
+ fill: var(--circle-symbol-icon-surface);
40
+ stroke: var(--circle-symbol-icon-border);
41
+ stroke-width: 1.5;
42
+ }
43
+
44
+ .circle-symbol-icon__mark {
45
+ fill: none;
46
+ stroke: currentColor;
47
+ stroke-linecap: round;
48
+ stroke-linejoin: round;
49
+ stroke-width: 1.8;
50
+ }
51
+
52
+ .circle-symbol-icon__fill {
53
+ fill: currentColor;
54
+ }
55
+
56
+ .circle-symbol-icon__highlight {
57
+ fill: none;
58
+ stroke: color-mix(
59
+ in srgb,
60
+ var(--circle-symbol-icon-surface) 78%,
61
+ var(--nox-mix-light)
62
+ );
63
+ stroke-linecap: round;
64
+ stroke-linejoin: round;
65
+ stroke-width: 1.8;
66
+ }
@@ -0,0 +1,28 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const attrs: Props = Astro.props;
7
+ ---
8
+
9
+ <svg
10
+ {...attrs}
11
+ viewBox="0 0 32 32"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ focusable="false"
15
+ >
16
+ <path
17
+ d="M4 16A12 12 0 1 0 16 4C12.4 4 9.2 5.5 7 7.7L4 10.7"
18
+ stroke="currentColor"
19
+ stroke-width="2.5"
20
+ stroke-linecap="round"
21
+ stroke-linejoin="round"></path>
22
+ <path
23
+ d="M4 4V10.7H10.7"
24
+ stroke="currentColor"
25
+ stroke-width="2.5"
26
+ stroke-linecap="round"
27
+ stroke-linejoin="round"></path>
28
+ </svg>
@@ -0,0 +1,21 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const attrs: Props = Astro.props;
7
+ ---
8
+
9
+ <svg
10
+ {...attrs}
11
+ viewBox="0 0 32 32"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ focusable="false"
15
+ >
16
+ <path
17
+ d="M8 8L24 24M24 8L8 24"
18
+ stroke="currentColor"
19
+ stroke-width="2.5"
20
+ stroke-linecap="round"></path>
21
+ </svg>
@@ -0,0 +1,30 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const attrs: Props = Astro.props;
7
+ ---
8
+
9
+ <svg
10
+ {...attrs}
11
+ viewBox="0 0 32 32"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ focusable="false"
15
+ >
16
+ <rect
17
+ x="11"
18
+ y="11"
19
+ width="14"
20
+ height="14"
21
+ rx="2"
22
+ stroke="currentColor"
23
+ stroke-width="2.5"></rect>
24
+ <path
25
+ d="M21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V19C7 20.1046 7.89543 21 9 21H11"
26
+ stroke="currentColor"
27
+ stroke-width="2.5"
28
+ stroke-linecap="round"
29
+ stroke-linejoin="round"></path>
30
+ </svg>
@@ -0,0 +1,9 @@
1
+ .dollar-icon {
2
+ display: block;
3
+ color: var(--nox-source-tone-success);
4
+ }
5
+
6
+ .ribbon-icon {
7
+ display: block;
8
+ color: var(--nox-source-tone-warning);
9
+ }
@@ -0,0 +1,33 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ class: className,
8
+ width = 32,
9
+ height = 32,
10
+ 'aria-hidden': ariaHidden = 'true',
11
+ focusable = 'false',
12
+ ...attrs
13
+ }: Props = Astro.props;
14
+ ---
15
+
16
+ <svg
17
+ {...attrs}
18
+ class={className}
19
+ width={width}
20
+ height={height}
21
+ viewBox="0 0 32 32"
22
+ fill="none"
23
+ aria-hidden={ariaHidden}
24
+ focusable={focusable}
25
+ >
26
+ <circle cx="16" cy="16" r="4" stroke="currentColor" stroke-width="1.5"
27
+ ></circle>
28
+ <path
29
+ d="M16 8v2M16 22v2M8 16h2M22 16h2M10.35 10.35l1.4 1.4M20.25 20.25l1.4 1.4M21.65 10.35l-1.4 1.4M11.75 20.25l-1.4 1.4"
30
+ stroke="currentColor"
31
+ stroke-width="1.5"
32
+ stroke-linecap="round"></path>
33
+ </svg>
@@ -0,0 +1,28 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ class: className,
8
+ 'aria-hidden': ariaHidden = 'true',
9
+ focusable = 'false',
10
+ ...attrs
11
+ }: Props = Astro.props;
12
+ ---
13
+
14
+ <svg
15
+ {...attrs}
16
+ class:list={['dollar-icon', className]}
17
+ viewBox="0 0 24 24"
18
+ fill="none"
19
+ aria-hidden={ariaHidden}
20
+ focusable={focusable}
21
+ >
22
+ <path
23
+ d="M12 2.75v18.5M17 5.5H9.75a3.25 3.25 0 0 0 0 6.5h4.5a3.25 3.25 0 0 1 0 6.5H7"
24
+ stroke="currentColor"
25
+ stroke-width="1.75"
26
+ stroke-linecap="round"
27
+ stroke-linejoin="round"></path>
28
+ </svg>
@@ -0,0 +1,22 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const attrs: Props = Astro.props;
7
+ ---
8
+
9
+ <svg
10
+ {...attrs}
11
+ viewBox="0 0 32 32"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ focusable="false"
15
+ >
16
+ <path
17
+ d="M16 6V20M10.5 14.5L16 20L21.5 14.5M8 24V26H24V24"
18
+ stroke="currentColor"
19
+ stroke-width="2.5"
20
+ stroke-linecap="round"
21
+ stroke-linejoin="round"></path>
22
+ </svg>
@@ -0,0 +1,22 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const attrs: Props = Astro.props;
7
+ ---
8
+
9
+ <svg
10
+ {...attrs}
11
+ viewBox="0 0 32 32"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ focusable="false"
15
+ >
16
+ <path
17
+ d="M13 7H7V13M19 7H25V13M25 19V25H19M13 25H7V19"
18
+ stroke="currentColor"
19
+ stroke-width="2.5"
20
+ stroke-linecap="round"
21
+ stroke-linejoin="round"></path>
22
+ </svg>
@@ -0,0 +1,25 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ 'aria-hidden': ariaHidden = 'true',
8
+ focusable = 'false',
9
+ ...attrs
10
+ }: Props = Astro.props;
11
+ ---
12
+
13
+ <svg
14
+ {...attrs}
15
+ viewBox="0 0 32 32"
16
+ fill="none"
17
+ aria-hidden={ariaHidden}
18
+ focusable={focusable}
19
+ >
20
+ <path
21
+ d="M6 11.5h20M6 20.5h20"
22
+ stroke="currentColor"
23
+ stroke-linecap="round"
24
+ stroke-width="3"></path>
25
+ </svg>
@@ -0,0 +1,22 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const attrs: Props = Astro.props;
7
+ ---
8
+
9
+ <svg
10
+ {...attrs}
11
+ viewBox="0 0 32 32"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ focusable="false"
15
+ >
16
+ <path
17
+ d="M7 13H13V7M25 13H19V7M19 25V19H25M13 25V19H7"
18
+ stroke="currentColor"
19
+ stroke-width="2.5"
20
+ stroke-linecap="round"
21
+ stroke-linejoin="round"></path>
22
+ </svg>
@@ -0,0 +1,22 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const attrs: Props = Astro.props;
7
+ ---
8
+
9
+ <svg
10
+ {...attrs}
11
+ viewBox="0 0 32 32"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ focusable="false"
15
+ >
16
+ <path
17
+ d="M18 7H25V14M25 7L15 17M14 9H9C7.89543 9 7 9.89543 7 11V23C7 24.1046 7.89543 25 9 25H21C22.1046 25 23 24.1046 23 23V18"
18
+ stroke="currentColor"
19
+ stroke-width="2.5"
20
+ stroke-linecap="round"
21
+ stroke-linejoin="round"></path>
22
+ </svg>
@@ -0,0 +1,28 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ class: className,
8
+ 'aria-hidden': ariaHidden = 'true',
9
+ focusable = 'false',
10
+ ...attrs
11
+ }: Props = Astro.props;
12
+ ---
13
+
14
+ <svg
15
+ {...attrs}
16
+ class:list={['circle-symbol-icon', className]}
17
+ data-terrain-icon="field"
18
+ viewBox="0 0 32 32"
19
+ fill="none"
20
+ aria-hidden={ariaHidden}
21
+ focusable={focusable}
22
+ >
23
+ <circle class="circle-symbol-icon__surface" cx="16" cy="16" r="13"></circle>
24
+ <rect class="circle-symbol-icon__mark" x="9" y="9" width="14" height="14" rx="1"
25
+ ></rect>
26
+ <path class="circle-symbol-icon__mark" d="M13.7 9v14m4.6-14v14M9 13.7h14M9 18.3h14"
27
+ ></path>
28
+ </svg>
@@ -0,0 +1,29 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const {
7
+ class: className,
8
+ 'aria-hidden': ariaHidden = 'true',
9
+ focusable = 'false',
10
+ ...attrs
11
+ }: Props = Astro.props;
12
+ ---
13
+
14
+ <svg
15
+ {...attrs}
16
+ class:list={['circle-symbol-icon', className]}
17
+ data-terrain-icon="grass"
18
+ viewBox="0 0 32 32"
19
+ fill="none"
20
+ aria-hidden={ariaHidden}
21
+ focusable={focusable}
22
+ >
23
+ <circle class="circle-symbol-icon__surface" cx="16" cy="16" r="13"></circle>
24
+ <path
25
+ class="circle-symbol-icon__fill"
26
+ d="M23.5 8.5c.2 8.4-3.7 14-11.7 15.2-3.1-6.8.2-13.5 11.7-15.2Z"></path>
27
+ <path class="circle-symbol-icon__highlight" d="M10.4 23.5c2.2-5.3 5.4-8.7 10.2-11.6"
28
+ ></path>
29
+ </svg>
@@ -0,0 +1,24 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const attrs: Props = Astro.props;
7
+ ---
8
+
9
+ <svg
10
+ {...attrs}
11
+ viewBox="0 0 32 32"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ focusable="false"
15
+ >
16
+ <circle cx="16" cy="16" r="11" stroke="currentColor" stroke-width="2.5"
17
+ ></circle>
18
+ <path
19
+ d="M16 14V22"
20
+ stroke="currentColor"
21
+ stroke-width="2.5"
22
+ stroke-linecap="round"></path>
23
+ <circle cx="16" cy="10" r="1.5" fill="currentColor"></circle>
24
+ </svg>
@@ -0,0 +1,21 @@
1
+ ---
2
+ import type { HTMLAttributes } from 'astro/types';
3
+
4
+ type Props = HTMLAttributes<'svg'>;
5
+
6
+ const attrs: Props = Astro.props;
7
+ ---
8
+
9
+ <svg
10
+ {...attrs}
11
+ viewBox="0 0 32 32"
12
+ fill="none"
13
+ aria-hidden="true"
14
+ focusable="false"
15
+ >
16
+ <path
17
+ d="M4 16H28"
18
+ stroke="currentColor"
19
+ stroke-width="3"
20
+ stroke-linecap="round"></path>
21
+ </svg>