@dnd-mapp/shared-ui 0.1.0-rc.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.
package/LICENSE ADDED
@@ -0,0 +1,38 @@
1
+ # LICENSE
2
+
3
+ Copyright © 2026 NoNamer777. All rights reserved.
4
+
5
+ This software and its associated documentation (the "Software") are proprietary to NoNamer777.
6
+
7
+ ### 1. Ownership
8
+
9
+ The Software is owned and operated by NoNamer777. All intellectual property rights, including but not limited to copyright, trademarks, and source code, are reserved.
10
+
11
+ ### 2. Restrictions
12
+
13
+ Unless expressly authorized in writing by NoNamer777, you may not:
14
+
15
+ - Copy, modify, or create derivative works of the Software.
16
+ - Distribute, sublicense, lease, or rent the Software to any third party.
17
+ - Reverse engineer, decompile, or disassemble the source code.
18
+ - Use the Software for any commercial purposes without a separate commercial agreement.
19
+
20
+ ### 3. Contributions
21
+
22
+ By contributing to this repository (as outlined in the CONTRIBUTING.md), you agree that:
23
+
24
+ - Your contributions are provided under the same proprietary terms as the Software.
25
+ - You grant NoNamer777 a perpetual, irrevocable, world-wide, royalty-free, and non-exclusive license to use, reproduce, modify, and distribute your contributions as part of the Software.
26
+ - You represent that you have the legal right to submit such contributions and that they do not infringe on the intellectual property of any third party.
27
+
28
+ ### 4. Termination
29
+
30
+ Any authorization granted to use or contribute to this Software terminates automatically if you breach any of these terms.
31
+
32
+ ### 5. Disclaimer of Warranty
33
+
34
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
+
36
+ ---
37
+
38
+ For inquiries regarding licensing or permissions, please contact the author via the GitHub repository: https://github.com/dnd-mapp/shared-ui
package/README.md ADDED
@@ -0,0 +1,112 @@
1
+ # @dnd-mapp/shared-ui
2
+
3
+ ![CI Status](https://github.com/dnd-mapp/shared-ui/actions/workflows/push-main.yaml/badge.svg)
4
+ ![NPM Version](https://img.shields.io/npm/v/@dnd-mapp/shared-ui)
5
+ ![License: Proprietary](https://img.shields.io/badge/License-Proprietary-red.svg)
6
+
7
+ The official Angular component library for the **D&D Mapp** platform. This library provides a unified design language and a collection of reusable, accessible UI components built specifically for tabletop gaming applications.
8
+
9
+ ## 🏰 Features
10
+
11
+ - **Angular 21 Native**: Built with the latest signals-based patterns and standalone components.
12
+ - **Tailwind CSS v4**: CSS-first configuration for high-performance styling.
13
+ - **Accessible**: Built with A11y best practices to ensure all players can use the tools.
14
+ - **Design Driven**: Single source of truth for the D&D Mapp brand.
15
+
16
+ ---
17
+
18
+ ## 🚀 Installation
19
+
20
+ Install the package via pnpm (recommended) or your preferred package manager:
21
+
22
+ ```bash
23
+ pnpm add @dnd-mapp/shared-ui
24
+ ```
25
+
26
+ ### 1. Global Styles Integration
27
+
28
+ The library requires the shared Tailwind-based styles to function correctly. Add the following import to your application's global CSS file (e.g., `styles.css` or `main.css`):
29
+
30
+ ```css
31
+ @import "@dnd-mapp/shared-ui/styles.css";
32
+ ```
33
+
34
+ ### 2. Configuration
35
+
36
+ Since this library uses **Tailwind CSS v4**, ensure your application is configured to process Tailwind imports. If you are using the Angular CLI with Tailwind support, no additional configuration is typically required beyond the import.
37
+
38
+ ---
39
+
40
+ ## 📖 Usage
41
+
42
+ All components are exported as **Standalone Components**. You can import them directly into your component's `imports` array.
43
+
44
+ ### Example: Using the Button Component
45
+
46
+ ```typescript
47
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
48
+ import { ButtonComponent } from '@dnd-mapp/shared-ui';
49
+
50
+ @Component({
51
+ selector: 'dma-root',
52
+ template: `
53
+ <section>
54
+ <h1>Encounter Initiative</h1>
55
+ <button dma-button (click)="onRoll()">Roll for Initiative</button>
56
+ </section>
57
+ `,
58
+ changeDetection: ChangeDetectionStrategy.OnPush,
59
+ imports: [ButtonComponent],
60
+ })
61
+ export class RootComponent {
62
+ protected onRoll() {
63
+ console.log('Natural 20!');
64
+ }
65
+ }
66
+ ```
67
+
68
+ ---
69
+
70
+ ## 🛠 Development & Storybook
71
+
72
+ If you are contributing to the library or want to explore the components in isolation:
73
+
74
+ 1. **Clone the repo**:
75
+
76
+ ```bash
77
+ git clone https://github.com/dnd-mapp/shared-ui.git
78
+ ```
79
+
80
+ 2. **Setup environment**:
81
+
82
+ This project uses [mise-en-place](https://mise.jdx.dev/) to manage Node.js and pnpm versions.
83
+
84
+ ```bash
85
+ mise install
86
+ pnpm install
87
+ ```
88
+
89
+ 3. **Launch Storybook**:
90
+
91
+ ```bash
92
+ pnpm storybook
93
+ ```
94
+
95
+ Navigate to `http://localhost:6006` to view the documentation and component playground.
96
+
97
+ ---
98
+
99
+ ## 📜 Available Scripts
100
+
101
+ - `pnpm build`: Compiles the library for production.
102
+ - `pnpm test`: Runs unit tests via Karma.
103
+ - `pnpm lint`: Validates TypeScript and Angular logic.
104
+ - `pnpm stylelint`: Validates CSS/Tailwind compliance.
105
+
106
+ ---
107
+
108
+ ## ⚖️ License
109
+
110
+ Copyright © 2026 NoNamer777. All rights reserved.
111
+
112
+ This software is **proprietary**. Unauthorized copying, modification, or distribution is strictly prohibited. Use is subject to the terms in the [LICENSE](https://github.com/dnd-mapp/shared-ui?tab=License-1-ov-file) file.
@@ -0,0 +1,27 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
3
+
4
+ class SharedUi {
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: SharedUi, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: SharedUi, isStandalone: true, selector: "dma-shared-ui", ngImport: i0, template: `<p>shared-ui works!</p>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
7
+ }
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: SharedUi, decorators: [{
9
+ type: Component,
10
+ args: [{
11
+ selector: 'dma-shared-ui',
12
+ template: `<p>shared-ui works!</p>`,
13
+ changeDetection: ChangeDetectionStrategy.OnPush,
14
+ imports: [],
15
+ }]
16
+ }] });
17
+
18
+ /**
19
+ * Public API Surface of @dnd-mapp/shared-ui
20
+ */
21
+
22
+ /**
23
+ * Generated bundle index. Do not edit.
24
+ */
25
+
26
+ export { SharedUi };
27
+ //# sourceMappingURL=dnd-mapp-shared-ui.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dnd-mapp-shared-ui.mjs","sources":["../../../projects/shared-ui/src/lib/shared-ui.ts","../../../projects/shared-ui/src/public-api.ts","../../../projects/shared-ui/src/dnd-mapp-shared-ui.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'dma-shared-ui',\n template: `<p>shared-ui works!</p>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [],\n})\nexport class SharedUi {}\n","/**\n * Public API Surface of @dnd-mapp/shared-ui\n */\nexport * from './lib';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAQa,QAAQ,CAAA;uGAAR,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAR,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAQ,yEAJP,CAAA,uBAAA,CAAyB,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAI1B,QAAQ,EAAA,UAAA,EAAA,CAAA;kBANpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,QAAQ,EAAE,CAAA,uBAAA,CAAyB;oBACnC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,EAAE;AACd,iBAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@dnd-mapp/shared-ui",
3
+ "version": "0.1.0-rc.0",
4
+ "description": "Official Angular component library for the D&D Mapp platform.",
5
+ "author": "NoNamer777",
6
+ "license": "UNLICENSED",
7
+ "keywords": [
8
+ "angular",
9
+ "component-library",
10
+ "tailwind-css",
11
+ "ui-kit"
12
+ ],
13
+ "homepage": "https://github.com/dnd-mapp/shared-ui",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/dnd-mapp/shared-ui.git",
17
+ "directory": "projects/shared-ui"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/dnd-mapp/shared-ui"
21
+ },
22
+ "sideEffects": false,
23
+ "type": "module",
24
+ "engines": {
25
+ "node": ">=24.13.1",
26
+ "pnpm": ">=10.29.3"
27
+ },
28
+ "peerDependencies": {
29
+ "@angular/common": "~21.1",
30
+ "@angular/core": "~21.1",
31
+ "tailwindcss": "~4.1"
32
+ },
33
+ "dependencies": {
34
+ "tslib": "~2.8"
35
+ },
36
+ "module": "fesm2022/dnd-mapp-shared-ui.mjs",
37
+ "typings": "types/dnd-mapp-shared-ui.d.ts",
38
+ "exports": {
39
+ "./package.json": {
40
+ "default": "./package.json"
41
+ },
42
+ ".": {
43
+ "types": "./types/dnd-mapp-shared-ui.d.ts",
44
+ "default": "./fesm2022/dnd-mapp-shared-ui.mjs"
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class SharedUi {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedUi, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SharedUi, "dma-shared-ui", never, {}, {}, never, never, true, never>;
6
+ }
7
+
8
+ export { SharedUi };