@crockery/fellowship-components 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 (98) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +126 -0
  3. package/RELEASING.md +75 -0
  4. package/THIRD_PARTY_LICENSES.md +79 -0
  5. package/dist/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  6. package/dist/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
  7. package/dist/assets/ibm-plex-sans-condensed-latin-400-normal-DKyD6XsY.woff2 +0 -0
  8. package/dist/assets/ibm-plex-sans-condensed-latin-500-normal-BqaLkUoX.woff2 +0 -0
  9. package/dist/assets/ibm-plex-sans-condensed-latin-600-normal-CRd5VyFf.woff2 +0 -0
  10. package/dist/assets/ibm-plex-sans-condensed-latin-700-normal-D8r4s4aS.woff2 +0 -0
  11. package/dist/chunks/data-source-CoIFvV72.js +10 -0
  12. package/dist/chunks/data-source-CoIFvV72.js.map +1 -0
  13. package/dist/chunks/decorate-B_ZTN9li.js +92 -0
  14. package/dist/chunks/decorate-B_ZTN9li.js.map +1 -0
  15. package/dist/chunks/dungeon-map-IPN6sEDj.js +1144 -0
  16. package/dist/chunks/dungeon-map-IPN6sEDj.js.map +1 -0
  17. package/dist/chunks/talent-calculator-Ch1Pbbba.js +1086 -0
  18. package/dist/chunks/talent-calculator-Ch1Pbbba.js.map +1 -0
  19. package/dist/chunks/tooltip-DoQVSnOn.js +412 -0
  20. package/dist/chunks/tooltip-DoQVSnOn.js.map +1 -0
  21. package/dist/data/data-source.d.ts +17 -0
  22. package/dist/data/data-source.d.ts.map +1 -0
  23. package/dist/data/package-data-source.d.ts +6 -0
  24. package/dist/data/package-data-source.d.ts.map +1 -0
  25. package/dist/data/package-talent-data-source.d.ts +6 -0
  26. package/dist/data/package-talent-data-source.d.ts.map +1 -0
  27. package/dist/data/talent-data-source.d.ts +11 -0
  28. package/dist/data/talent-data-source.d.ts.map +1 -0
  29. package/dist/dungeon-map/dungeon-map.d.ts +56 -0
  30. package/dist/dungeon-map/dungeon-map.d.ts.map +1 -0
  31. package/dist/dungeon-map/dungeon-map.styles.d.ts +2 -0
  32. package/dist/dungeon-map/dungeon-map.styles.d.ts.map +1 -0
  33. package/dist/dungeon-map/index.d.ts +5 -0
  34. package/dist/dungeon-map/index.d.ts.map +1 -0
  35. package/dist/dungeon-map/layout.d.ts +3 -0
  36. package/dist/dungeon-map/layout.d.ts.map +1 -0
  37. package/dist/dungeon-map/render-model.d.ts +7 -0
  38. package/dist/dungeon-map/render-model.d.ts.map +1 -0
  39. package/dist/dungeon-map/types.d.ts +107 -0
  40. package/dist/dungeon-map/types.d.ts.map +1 -0
  41. package/dist/dungeon-map/viewport-controller.d.ts +13 -0
  42. package/dist/dungeon-map/viewport-controller.d.ts.map +1 -0
  43. package/dist/dungeon-map.js +7 -0
  44. package/dist/dungeon-map.js.map +1 -0
  45. package/dist/index.d.ts +9 -0
  46. package/dist/index.d.ts.map +1 -0
  47. package/dist/index.js +8 -0
  48. package/dist/react/dungeon-map.d.ts +22 -0
  49. package/dist/react/dungeon-map.d.ts.map +1 -0
  50. package/dist/react/dungeon-map.js +180 -0
  51. package/dist/react/dungeon-map.js.map +1 -0
  52. package/dist/react/index.d.ts +7 -0
  53. package/dist/react/index.d.ts.map +1 -0
  54. package/dist/react/talent-calculator.d.ts +22 -0
  55. package/dist/react/talent-calculator.d.ts.map +1 -0
  56. package/dist/react/talent-calculator.js +71 -0
  57. package/dist/react/talent-calculator.js.map +1 -0
  58. package/dist/react/tooltip.d.ts +15 -0
  59. package/dist/react/tooltip.d.ts.map +1 -0
  60. package/dist/react/tooltip.js +26 -0
  61. package/dist/react/tooltip.js.map +1 -0
  62. package/dist/react.js +4 -0
  63. package/dist/styles/field-manual-fonts.d.ts +3 -0
  64. package/dist/styles/field-manual-fonts.d.ts.map +1 -0
  65. package/dist/styles/field-manual.styles.d.ts +3 -0
  66. package/dist/styles/field-manual.styles.d.ts.map +1 -0
  67. package/dist/talent-calculator/index.d.ts +5 -0
  68. package/dist/talent-calculator/index.d.ts.map +1 -0
  69. package/dist/talent-calculator/render-model.d.ts +5 -0
  70. package/dist/talent-calculator/render-model.d.ts.map +1 -0
  71. package/dist/talent-calculator/selection-state.d.ts +10 -0
  72. package/dist/talent-calculator/selection-state.d.ts.map +1 -0
  73. package/dist/talent-calculator/talent-calculator.d.ts +51 -0
  74. package/dist/talent-calculator/talent-calculator.d.ts.map +1 -0
  75. package/dist/talent-calculator/talent-calculator.styles.d.ts +2 -0
  76. package/dist/talent-calculator/talent-calculator.styles.d.ts.map +1 -0
  77. package/dist/talent-calculator/types.d.ts +92 -0
  78. package/dist/talent-calculator/types.d.ts.map +1 -0
  79. package/dist/talent-calculator.js +7 -0
  80. package/dist/talent-calculator.js.map +1 -0
  81. package/dist/tooltip/index.d.ts +6 -0
  82. package/dist/tooltip/index.d.ts.map +1 -0
  83. package/dist/tooltip/positioning.d.ts +23 -0
  84. package/dist/tooltip/positioning.d.ts.map +1 -0
  85. package/dist/tooltip/rich-text.d.ts +4 -0
  86. package/dist/tooltip/rich-text.d.ts.map +1 -0
  87. package/dist/tooltip/tooltip.d.ts +33 -0
  88. package/dist/tooltip/tooltip.d.ts.map +1 -0
  89. package/dist/tooltip/tooltip.styles.d.ts +2 -0
  90. package/dist/tooltip/tooltip.styles.d.ts.map +1 -0
  91. package/dist/tooltip/types.d.ts +19 -0
  92. package/dist/tooltip/types.d.ts.map +1 -0
  93. package/dist/tooltip.js +7 -0
  94. package/dist/tooltip.js.map +1 -0
  95. package/package.json +149 -0
  96. package/src/dungeon-map/README.md +168 -0
  97. package/src/talent-calculator/README.md +190 -0
  98. package/src/tooltip/README.md +113 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Crockery
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,126 @@
1
+ # fellowship-components
2
+
3
+ Lit web components and typed React bindings for rendering data from
4
+ [`@crockery/fellowship-data`](https://www.npmjs.com/package/@crockery/fellowship-data).
5
+
6
+ ## Install
7
+
8
+ ```sh
9
+ npm install @crockery/fellowship-components
10
+ # or
11
+ pnpm add @crockery/fellowship-components
12
+ ```
13
+
14
+ The data package is installed automatically. Components import their datasets lazily, while image
15
+ URLs use the installed data package's version-pinned CDN by default. Your application lockfile
16
+ therefore selects both the exact data and its matching assets.
17
+
18
+ ## Components
19
+
20
+ | Component | Package entry point | Documentation |
21
+ | -------------------------------- | --------------------------------------------------- | ---------------------------------------------------- |
22
+ | `<fellowship-dungeon-map>` | `@crockery/fellowship-components/dungeon-map` | [Dungeon map](src/dungeon-map/README.md) |
23
+ | `<fellowship-talent-calculator>` | `@crockery/fellowship-components/talent-calculator` | [Talent calculator](src/talent-calculator/README.md) |
24
+ | `<fellowship-tooltip>` | `@crockery/fellowship-components/tooltip` | [Tooltip](src/tooltip/README.md) |
25
+
26
+ Importing the package root registers every web component:
27
+
28
+ ```ts
29
+ import "@crockery/fellowship-components";
30
+ ```
31
+
32
+ Import an individual entry point when only one component is needed. The talent calculator entry
33
+ also registers its tooltip dependency.
34
+
35
+ Import React wrappers from component-specific entry points so applications only load the
36
+ implementations they use:
37
+
38
+ ```tsx
39
+ import { DungeonMapViewer } from "@crockery/fellowship-components/react/dungeon-map";
40
+ import { TalentCalculator } from "@crockery/fellowship-components/react/talent-calculator";
41
+ import { Tooltip } from "@crockery/fellowship-components/react/tooltip";
42
+ ```
43
+
44
+ Each component entry also provides the component as its default export for `React.lazy`:
45
+
46
+ ```tsx
47
+ import { lazy } from "react";
48
+
49
+ const DungeonMapViewer = lazy(
50
+ () => import("@crockery/fellowship-components/react/dungeon-map"),
51
+ );
52
+ ```
53
+
54
+ The `@crockery/fellowship-components/react` convenience entry still exports all three wrappers,
55
+ but importing it registers and loads every component implementation.
56
+
57
+ Each component document covers its Lit and React APIs, custom data sources, events, methods,
58
+ accessibility behavior, CSS parts, and design tokens.
59
+
60
+ ## Expedition Field Manual theme
61
+
62
+ The default dark theme uses a shared Expedition Field Manual system. Set shared tokens on any
63
+ ancestor to theme every Fellowship component together; an existing component-specific token still
64
+ wins when both are present.
65
+
66
+ ```css
67
+ .fellowship-tools {
68
+ --fellowship-field-canvas: #0b0f13;
69
+ --fellowship-field-surface: #10161c;
70
+ --fellowship-field-surface-raised: #151c23;
71
+ --fellowship-field-inset: #080c10;
72
+ --fellowship-field-ink: #f1eee5;
73
+ --fellowship-field-muted: #b7b4aa;
74
+ --fellowship-field-tertiary: #858a8e;
75
+ --fellowship-field-border: rgb(241 238 229 / 10%);
76
+ --fellowship-field-border-strong: rgb(241 238 229 / 18%);
77
+ --fellowship-field-accent: #69c4d4;
78
+ --fellowship-field-focus: #a8e6ee;
79
+ --fellowship-field-ember: #d9784c;
80
+ --fellowship-field-brass: #c1a36a;
81
+ --fellowship-field-radius: 6px;
82
+ }
83
+
84
+ /* A local component token has higher priority. */
85
+ .fellowship-tools fellowship-tooltip {
86
+ --fellowship-tooltip-void: #121820;
87
+ }
88
+ ```
89
+
90
+ `--fellowship-field-font-family` and `--fellowship-field-mono-font-family` replace the default
91
+ interface and tactical stacks. The package ships six local IBM Plex WOFF2 assets (about 110KB
92
+ total), registers them as `Fellowship Field` and `Fellowship Tactical`, and makes no remote font
93
+ request. See `THIRD_PARTY_LICENSES.md` for the SIL Open Font License notice.
94
+
95
+ ## Data and asset versions
96
+
97
+ The library accepts `@crockery/fellowship-data@^1.0.0`. Commit the consuming application's
98
+ lockfile when reproducible data and image updates matter.
99
+
100
+ Dataset JSON stays out of the component library's initial JavaScript path and published tarball.
101
+ Each data-driven component supports:
102
+
103
+ - `assetBaseUrl` for self-hosted package assets.
104
+ - A component-specific `dataSource` property for remote, filtered, experimental, or
105
+ application-owned data.
106
+
107
+ See the relevant component document for the provider contract.
108
+
109
+ ## Development
110
+
111
+ ```sh
112
+ pnpm install
113
+ pnpm ladle
114
+ pnpm test
115
+ pnpm build
116
+ pnpm pack:check
117
+ ```
118
+
119
+ Current Chromium, Firefox, and Safari/WebKit are supported. Add a Changeset with
120
+ `pnpm changeset` for every user-facing change; merging the generated release PR publishes the
121
+ package with npm provenance after trusted publishing is enabled. Maintainers should follow
122
+ [`RELEASING.md`](RELEASING.md) for the first publish and release automation.
123
+
124
+ ## License
125
+
126
+ Code is MIT licensed. Bundled font assets retain their third-party license.
package/RELEASING.md ADDED
@@ -0,0 +1,75 @@
1
+ # Releasing fellowship-components
2
+
3
+ Changesets owns package versions and changelog entries. Add a changeset for every consumer-facing
4
+ change:
5
+
6
+ ```sh
7
+ pnpm changeset
8
+ ```
9
+
10
+ The Release workflow maintains a `changeset-release/main` pull request. Merging that pull request
11
+ publishes only when the `NPM_TRUSTED_PUBLISHING_READY` repository variable is `true`.
12
+
13
+ ## First public release
14
+
15
+ Keep `NPM_TRUSTED_PUBLISHING_READY` unset or set to `false` while bootstrapping the package.
16
+
17
+ 1. Enable **Allow GitHub Actions to create and approve pull requests** under **Settings → Actions →
18
+ General → Workflow permissions**.
19
+ 2. Run the Release workflow so Changesets creates or refreshes its version pull request.
20
+ 3. Review the version, changelog, package checks, and tarball contents, then merge the version pull
21
+ request.
22
+ 4. From a clean checkout of that exact `main` commit, publish the first release:
23
+
24
+ ```sh
25
+ git pull --ff-only
26
+ pnpm install --frozen-lockfile
27
+ pnpm lint
28
+ pnpm format:check
29
+ pnpm typecheck
30
+ pnpm test
31
+ pnpm test:browser:smoke
32
+ pnpm ladle:build
33
+ pnpm pack:check
34
+ npm login
35
+ npm whoami
36
+ npm publish --access public --tag latest
37
+ ```
38
+
39
+ 5. Verify the published package before tagging it:
40
+
41
+ ```sh
42
+ npm view @crockery/fellowship-components@0.2.0
43
+ git tag -a "@crockery/fellowship-components@0.2.0" -m "@crockery/fellowship-components@0.2.0"
44
+ git push origin "@crockery/fellowship-components@0.2.0"
45
+ ```
46
+
47
+ Create a matching GitHub release from the generated changelog. The manually bootstrapped release
48
+ does not carry CI provenance.
49
+
50
+ ## Enable trusted publishing
51
+
52
+ After the package exists on npm, configure its npm trusted publisher with:
53
+
54
+ - Provider: GitHub Actions
55
+ - Organization or user: `Crockery`
56
+ - Repository: `fellowship-components`
57
+ - Workflow filename: `release.yml`
58
+ - Environment: none
59
+ - Allowed action: `npm publish`
60
+
61
+ Set the GitHub repository variable `NPM_TRUSTED_PUBLISHING_READY` to `true`. Do not add an
62
+ `NPM_TOKEN`; npm authenticates the release job through its GitHub OIDC identity and creates
63
+ provenance automatically.
64
+
65
+ ## Routine releases
66
+
67
+ 1. Merge consumer-facing changes and their changesets into `main`.
68
+ 2. Review the Changesets version pull request, including its generated changelog.
69
+ 3. Merge the version pull request after CI succeeds.
70
+ 4. Confirm the Release workflow publishes the expected npm version, tag, GitHub release, and npm
71
+ provenance statement.
72
+
73
+ Never reuse a version number. If a release is defective, publish a corrective patch. Deprecate a
74
+ bad version with `npm deprecate` when consumers need an explicit warning; unpublish only when npm's
75
+ policy permits it and the package must be removed rather than superseded.
@@ -0,0 +1,79 @@
1
+ # Third-party licenses
2
+
3
+ ## IBM Plex
4
+
5
+ The bundled IBM Plex Sans Condensed and IBM Plex Mono font files are copyright IBM Corp. and are
6
+ distributed under the SIL Open Font License, Version 1.1.
7
+
8
+ Copyright 2019 IBM Corp. All rights reserved.
9
+
10
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11
+
12
+ PREAMBLE
13
+
14
+ The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative
15
+ font projects, to support the font creation efforts of academic and linguistic communities, and to
16
+ provide a free and open framework in which fonts may be shared and improved in partnership with
17
+ others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as
20
+ they are not sold by themselves. The fonts, including any derivative works, can be bundled,
21
+ embedded, redistributed and/or sold with any software provided that any reserved names are not used
22
+ by derivative works. The fonts and derivatives, however, cannot be released under any other type of
23
+ license. The requirement for fonts to remain under this license does not apply to any document
24
+ created using the fonts or their derivatives.
25
+
26
+ DEFINITIONS
27
+
28
+ "Font Software" refers to the set of files released by the Copyright Holder(s) under this license
29
+ and clearly marked as such. This may include source files, build scripts and documentation.
30
+
31
+ "Reserved Font Name" refers to any names specified as such after the copyright statement(s).
32
+
33
+ "Original Version" refers to the collection of Font Software components as distributed by the
34
+ Copyright Holder(s).
35
+
36
+ "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in
37
+ part or in whole -- any of the components of the Original Version, by changing formats or by
38
+ porting the Font Software to a new environment.
39
+
40
+ "Author" refers to any designer, engineer, programmer, technical writer or other person who
41
+ contributed to the Font Software.
42
+
43
+ PERMISSION & CONDITIONS
44
+
45
+ Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software,
46
+ to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of
47
+ the Font Software, subject to the following conditions:
48
+
49
+ 1. Neither the Font Software nor any of its individual components, in Original or Modified
50
+ Versions, may be sold by itself.
51
+ 2. Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold
52
+ with any software, provided that each copy contains the above copyright notice and this license.
53
+ These can be included either as stand-alone text files, human-readable headers or in the
54
+ appropriate machine-readable metadata fields within text or binary files as long as those fields
55
+ can be easily viewed by the user.
56
+ 3. No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit
57
+ written permission is granted by the corresponding Copyright Holder. This restriction only
58
+ applies to the primary font name as presented to the users.
59
+ 4. The name(s) of the Copyright Holder(s) or the Author(s) shall not be used to promote, endorse or
60
+ advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright
61
+ Holder(s) and the Author(s) or with their explicit written permission.
62
+ 5. The Font Software, modified or unmodified, in part or in whole, must be distributed entirely
63
+ under this license, and must not be distributed under any other license. The requirement for
64
+ fonts to remain under this license does not apply to any document created using the Font
65
+ Software.
66
+
67
+ TERMINATION
68
+
69
+ This license becomes null and void if any of the above conditions are not met.
70
+
71
+ DISCLAIMER
72
+
73
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
74
+ BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
75
+ NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT
76
+ HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
77
+ INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR
78
+ OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
79
+ DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,10 @@
1
+ //#region src/data/data-source.ts
2
+ var e = class extends Error {
3
+ constructor(e, t, n) {
4
+ super(t), this.name = "FellowshipDataError", this.code = e, this.cause = n;
5
+ }
6
+ };
7
+ //#endregion
8
+ export { e as t };
9
+
10
+ //# sourceMappingURL=data-source-CoIFvV72.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-source-CoIFvV72.js","names":[],"sources":["../../src/data/data-source.ts"],"sourcesContent":["import type {\n Dungeon,\n Enemy,\n FellowshipDataManifest,\n ImageAssetRef,\n} from \"@crockery/fellowship-data\";\n\nexport interface DungeonMapData {\n readonly manifest: FellowshipDataManifest;\n readonly dungeon: Dungeon;\n readonly enemies: ReadonlyMap<string, Enemy>;\n}\n\nexport interface FellowshipDataSource {\n loadDungeon(dungeonId: string, signal?: AbortSignal): Promise<DungeonMapData>;\n resolveAssetUrl(asset: ImageAssetRef): string;\n}\n\nexport type FellowshipDataErrorCode =\n | \"aborted\"\n | \"dungeon-not-found\"\n | \"hero-not-found\"\n | \"unsupported-schema\"\n | \"data-load-failed\";\n\nexport class FellowshipDataError extends Error {\n readonly code: FellowshipDataErrorCode;\n override readonly cause?: unknown;\n\n constructor(code: FellowshipDataErrorCode, message: string, cause?: unknown) {\n super(message);\n this.name = \"FellowshipDataError\";\n this.code = code;\n this.cause = cause;\n }\n}\n"],"mappings":";AAyBA,IAAa,IAAb,cAAyC,MAAM;CAI7C,YAAY,GAA+B,GAAiB,GAAiB;EAI3E,AAHA,MAAM,CAAO,GACb,KAAK,OAAO,uBACZ,KAAK,OAAO,GACZ,KAAK,QAAQ;CACf;AACF"}
@@ -0,0 +1,92 @@
1
+ import { css as e } from "lit";
2
+ //#region src/styles/field-manual.styles.ts
3
+ var t = e`
4
+ :host {
5
+ --_fellowship-field-canvas: var(--fellowship-field-canvas, #0b0f13);
6
+ --_fellowship-field-surface: var(--fellowship-field-surface, #10161c);
7
+ --_fellowship-field-surface-raised: var(--fellowship-field-surface-raised, #151c23);
8
+ --_fellowship-field-inset: var(--fellowship-field-inset, #080c10);
9
+ --_fellowship-field-ink: var(--fellowship-field-ink, #f1eee5);
10
+ --_fellowship-field-muted: var(--fellowship-field-muted, #b7b4aa);
11
+ --_fellowship-field-tertiary: var(--fellowship-field-tertiary, #858a8e);
12
+ --_fellowship-field-border: var(
13
+ --fellowship-field-border,
14
+ rgb(241 238 229 / 10%)
15
+ );
16
+ --_fellowship-field-border-strong: var(
17
+ --fellowship-field-border-strong,
18
+ rgb(241 238 229 / 18%)
19
+ );
20
+ --_fellowship-field-accent: var(--fellowship-field-accent, #69c4d4);
21
+ --_fellowship-field-focus: var(--fellowship-field-focus, #a8e6ee);
22
+ --_fellowship-field-ember: var(--fellowship-field-ember, #d9784c);
23
+ --_fellowship-field-brass: var(--fellowship-field-brass, #c1a36a);
24
+ --_fellowship-field-font-family: var(
25
+ --fellowship-field-font-family,
26
+ "Fellowship Field",
27
+ "Arial Narrow",
28
+ sans-serif
29
+ );
30
+ --_fellowship-field-mono-font-family: var(
31
+ --fellowship-field-mono-font-family,
32
+ "Fellowship Tactical",
33
+ ui-monospace,
34
+ monospace
35
+ );
36
+ --_fellowship-field-radius: var(--fellowship-field-radius, 6px);
37
+ }
38
+ `, n = new URL("../assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2", import.meta.url).href, r = new URL("../assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2", import.meta.url).href, i = new URL("../assets/ibm-plex-sans-condensed-latin-400-normal-DKyD6XsY.woff2", import.meta.url).href, a = new URL("../assets/ibm-plex-sans-condensed-latin-500-normal-BqaLkUoX.woff2", import.meta.url).href, o = new URL("../assets/ibm-plex-sans-condensed-latin-600-normal-CRd5VyFf.woff2", import.meta.url).href, s = new URL("../assets/ibm-plex-sans-condensed-latin-700-normal-D8r4s4aS.woff2", import.meta.url).href, c = [
39
+ {
40
+ family: "Fellowship Field",
41
+ weight: "400",
42
+ url: i
43
+ },
44
+ {
45
+ family: "Fellowship Field",
46
+ weight: "500",
47
+ url: a
48
+ },
49
+ {
50
+ family: "Fellowship Field",
51
+ weight: "600",
52
+ url: o
53
+ },
54
+ {
55
+ family: "Fellowship Field",
56
+ weight: "700",
57
+ url: s
58
+ },
59
+ {
60
+ family: "Fellowship Tactical",
61
+ weight: "500",
62
+ url: n
63
+ },
64
+ {
65
+ family: "Fellowship Tactical",
66
+ weight: "600",
67
+ url: r
68
+ }
69
+ ], l = /* @__PURE__ */ new WeakSet(), u = (e) => {
70
+ if (l.has(e)) return;
71
+ let t = e.defaultView?.FontFace;
72
+ if (!t || !e.fonts) return;
73
+ let n = c.map(({ family: e, weight: n, url: r }) => new t(e, `url(${JSON.stringify(r)}) format("woff2")`, {
74
+ display: "swap",
75
+ style: "normal",
76
+ weight: n
77
+ }));
78
+ for (let t of n) e.fonts.add(t);
79
+ l.add(e);
80
+ };
81
+ //#endregion
82
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/decorate.js
83
+ function d(e, t, n, r) {
84
+ var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
85
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
86
+ else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
87
+ return i > 3 && a && Object.defineProperty(t, n, a), a;
88
+ }
89
+ //#endregion
90
+ export { u as n, t as r, d as t };
91
+
92
+ //# sourceMappingURL=decorate-B_ZTN9li.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorate-B_ZTN9li.js","names":[],"sources":["../../src/styles/field-manual.styles.ts","../../node_modules/.pnpm/@fontsource+ibm-plex-mono@5.2.7/node_modules/@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-500-normal.woff2?fellowship-font-url","../../node_modules/.pnpm/@fontsource+ibm-plex-mono@5.2.7/node_modules/@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff2?fellowship-font-url","../../node_modules/.pnpm/@fontsource+ibm-plex-sans-condensed@5.2.8/node_modules/@fontsource/ibm-plex-sans-condensed/files/ibm-plex-sans-condensed-latin-400-normal.woff2?fellowship-font-url","../../node_modules/.pnpm/@fontsource+ibm-plex-sans-condensed@5.2.8/node_modules/@fontsource/ibm-plex-sans-condensed/files/ibm-plex-sans-condensed-latin-500-normal.woff2?fellowship-font-url","../../node_modules/.pnpm/@fontsource+ibm-plex-sans-condensed@5.2.8/node_modules/@fontsource/ibm-plex-sans-condensed/files/ibm-plex-sans-condensed-latin-600-normal.woff2?fellowship-font-url","../../node_modules/.pnpm/@fontsource+ibm-plex-sans-condensed@5.2.8/node_modules/@fontsource/ibm-plex-sans-condensed/files/ibm-plex-sans-condensed-latin-700-normal.woff2?fellowship-font-url","../../src/styles/field-manual-fonts.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/** Shared internal aliases for the public Expedition Field Manual theme tokens. */\nexport const fieldManualStyles = css`\n :host {\n --_fellowship-field-canvas: var(--fellowship-field-canvas, #0b0f13);\n --_fellowship-field-surface: var(--fellowship-field-surface, #10161c);\n --_fellowship-field-surface-raised: var(--fellowship-field-surface-raised, #151c23);\n --_fellowship-field-inset: var(--fellowship-field-inset, #080c10);\n --_fellowship-field-ink: var(--fellowship-field-ink, #f1eee5);\n --_fellowship-field-muted: var(--fellowship-field-muted, #b7b4aa);\n --_fellowship-field-tertiary: var(--fellowship-field-tertiary, #858a8e);\n --_fellowship-field-border: var(\n --fellowship-field-border,\n rgb(241 238 229 / 10%)\n );\n --_fellowship-field-border-strong: var(\n --fellowship-field-border-strong,\n rgb(241 238 229 / 18%)\n );\n --_fellowship-field-accent: var(--fellowship-field-accent, #69c4d4);\n --_fellowship-field-focus: var(--fellowship-field-focus, #a8e6ee);\n --_fellowship-field-ember: var(--fellowship-field-ember, #d9784c);\n --_fellowship-field-brass: var(--fellowship-field-brass, #c1a36a);\n --_fellowship-field-font-family: var(\n --fellowship-field-font-family,\n \"Fellowship Field\",\n \"Arial Narrow\",\n sans-serif\n );\n --_fellowship-field-mono-font-family: var(\n --fellowship-field-mono-font-family,\n \"Fellowship Tactical\",\n ui-monospace,\n monospace\n );\n --_fellowship-field-radius: var(--fellowship-field-radius, 6px);\n }\n`;\n","export default import.meta.ROLLUP_FILE_URL_P4DPfwIRieI8P6q8r4JZRw;","export default import.meta.ROLLUP_FILE_URL_VRAku6fjghkApIISiBWPzg;","export default import.meta.ROLLUP_FILE_URL_8HSUfh7cJHNFxCkInNzNXw;","export default import.meta.ROLLUP_FILE_URL_WPGYjwIlzWVNM1bYhOc83w;","export default import.meta.ROLLUP_FILE_URL_cn7IAAGY294pWGc7MpElVg;","export default import.meta.ROLLUP_FILE_URL_FKNdLzKnlftW3t_gzo81yw;","import mono500Url from \"@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-500-normal.woff2?url\";\nimport mono600Url from \"@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff2?url\";\nimport field400Url from \"@fontsource/ibm-plex-sans-condensed/files/ibm-plex-sans-condensed-latin-400-normal.woff2?url\";\nimport field500Url from \"@fontsource/ibm-plex-sans-condensed/files/ibm-plex-sans-condensed-latin-500-normal.woff2?url\";\nimport field600Url from \"@fontsource/ibm-plex-sans-condensed/files/ibm-plex-sans-condensed-latin-600-normal.woff2?url\";\nimport field700Url from \"@fontsource/ibm-plex-sans-condensed/files/ibm-plex-sans-condensed-latin-700-normal.woff2?url\";\n\ninterface FieldManualFontAsset {\n readonly family: \"Fellowship Field\" | \"Fellowship Tactical\";\n readonly weight: \"400\" | \"500\" | \"600\" | \"700\";\n readonly url: string;\n}\n\nconst fieldManualFontAssets: readonly FieldManualFontAsset[] = [\n { family: \"Fellowship Field\", weight: \"400\", url: field400Url },\n { family: \"Fellowship Field\", weight: \"500\", url: field500Url },\n { family: \"Fellowship Field\", weight: \"600\", url: field600Url },\n { family: \"Fellowship Field\", weight: \"700\", url: field700Url },\n { family: \"Fellowship Tactical\", weight: \"500\", url: mono500Url },\n { family: \"Fellowship Tactical\", weight: \"600\", url: mono600Url },\n];\n\nconst installedDocuments = new WeakSet<Document>();\n\n/** Makes the bundled field-manual faces available to a component's owner document. */\nexport const installFieldManualFonts = (document: Document): void => {\n if (installedDocuments.has(document)) {\n return;\n }\n\n const FontFaceConstructor = document.defaultView?.FontFace;\n if (!FontFaceConstructor || !document.fonts) {\n return;\n }\n\n const faces = fieldManualFontAssets.map(\n ({ family, weight, url }) =>\n new FontFaceConstructor(family, `url(${JSON.stringify(url)}) format(\"woff2\")`, {\n display: \"swap\",\n style: \"normal\",\n weight,\n }),\n );\n for (const face of faces) {\n document.fonts.add(face);\n }\n installedDocuments.add(document);\n};\n"],"x_google_ignoreList":[1,2,3,4,5,6],"mappings":";;AAGA,IAAa,IAAoB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCHpC,IAAA,IAAA,IAAA,2DAAA,OAAA,KAAA,GAAA,CAAA,CAAA,MCAA,IAAA,IAAA,IAAA,2DAAA,OAAA,KAAA,GAAA,CAAA,CAAA,MCAA,IAAA,IAAA,IAAA,qEAAA,OAAA,KAAA,GAAA,CAAA,CAAA,MCAA,IAAA,IAAA,IAAA,qEAAA,OAAA,KAAA,GAAA,CAAA,CAAA,MCAA,IAAA,IAAA,IAAA,qEAAA,OAAA,KAAA,GAAA,CAAA,CAAA,MCAA,IAAA,IAAA,IAAA,qEAAA,OAAA,KAAA,GAAA,CAAA,CAAA,MCaM,IAAyD;CAC7D;EAAE,QAAQ;EAAoB,QAAQ;EAAO,KAAK;CAAY;CAC9D;EAAE,QAAQ;EAAoB,QAAQ;EAAO,KAAK;CAAY;CAC9D;EAAE,QAAQ;EAAoB,QAAQ;EAAO,KAAK;CAAY;CAC9D;EAAE,QAAQ;EAAoB,QAAQ;EAAO,KAAK;CAAY;CAC9D;EAAE,QAAQ;EAAuB,QAAQ;EAAO,KAAK;CAAW;CAChE;EAAE,QAAQ;EAAuB,QAAQ;EAAO,KAAK;CAAW;AAClE,GAEM,oBAAqB,IAAI,QAAkB,GAGpC,KAA2B,MAA6B;CACnE,IAAI,EAAmB,IAAI,CAAQ,GACjC;CAGF,IAAM,IAAsB,EAAS,aAAa;CAClD,IAAI,CAAC,KAAuB,CAAC,EAAS,OACpC;CAGF,IAAM,IAAQ,EAAsB,KACjC,EAAE,WAAQ,WAAQ,aACjB,IAAI,EAAoB,GAAQ,OAAO,KAAK,UAAU,CAAG,EAAE,oBAAoB;EAC7E,SAAS;EACT,OAAO;EACP;CACF,CAAC,CACL;CACA,KAAK,IAAM,KAAQ,GACjB,EAAS,MAAM,IAAI,CAAI;CAEzB,EAAmB,IAAI,CAAQ;AACjC"}