@sebgroup/green-core 2.21.0-rc.20260112150926042 → 2.21.0-rc.20260113130744922

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/gds-element.js CHANGED
@@ -12,7 +12,7 @@ class GdsElement extends LitElement {
12
12
  /**
13
13
  * The semantic version of this element. Can be used for troubleshooting to verify the version being used.
14
14
  */
15
- this.semanticVersion = "2.21.0-rc.20260112150926042";
15
+ this.semanticVersion = "2.21.0-rc.20260113130744922";
16
16
  this._isUsingTransitionalStyles = false;
17
17
  this._dynamicStylesController = new DynamicStylesController(this);
18
18
  }
@@ -0,0 +1,64 @@
1
+ # Green Design System - MCP Instructions
2
+
3
+ ## Critical Rules
4
+
5
+ ### Pre-Implementation Requirements
6
+
7
+ - **ALWAYS read the declarative layout guide before creating any layout**
8
+ - **Read component-specific instructions.md when available**
9
+ - **Verify full context understanding before writing code**
10
+ - **Ask user for clarification if ANY requirement is unclear**
11
+ - **For new apps, ALWAYS read the setup guide for the used framework (Angular or React)**
12
+
13
+ ### Component Architecture
14
+
15
+ - All components use `gds-` prefix
16
+ - Web components built with Lit (framework-agnostic)
17
+ - Angular wrappers: `@sebgroup/green-core-ng` with `Component` suffix
18
+ - React wrappers: `@sebgroup/green-core/react` as PascalCase names
19
+
20
+ ### Typography Rules
21
+
22
+ - **REQUIRED**: Use `gds-text` component for all headings and text content
23
+ - **REQUIRED**: Use `gds-rich-text` for large bodies of text with varied formatting
24
+ - **FORBIDDEN**: Direct HTML text elements (h1-h6, p, span) without gds-text wrapper
25
+
26
+ ### Layout Rules
27
+
28
+ - **REQUIRED**: Use declarative layout system for all layouts
29
+ - **REQUIRED**: Read declarative layout guide before implementing any layout
30
+ - **PREFERRED**: Declarative layout over custom CSS
31
+ - **FORBIDDEN**: Custom CSS for layout unless declarative system cannot support the requirement
32
+
33
+ ### Component Usage Protocol
34
+
35
+ 1. **Verify component capabilities**:
36
+ - Check if component accepts children (has slots)
37
+ - Review properties, events, methods in api.md
38
+ - Check subcomponents field for required relationships
39
+
40
+ 2. **Check constraints**:
41
+ - Verify component relationships (e.g., radio must be in radio-group)
42
+ - Read component instructions.md if exists
43
+ - Review guidelines.md for UX patterns
44
+
45
+ 3. **Framework patterns**:
46
+ - Angular: kebab-case events → camelCase outputs
47
+ - React: events use "on" prefix (onChange, onClick)
48
+ - Web Components: standard DOM events
49
+
50
+ ### Required Reading Order
51
+
52
+ 1. Declarative layout guide (if creating layout)
53
+ 2. Component api.md (target component)
54
+ 3. Component instructions.md (if exists)
55
+ 4. Component guidelines.md (if exists)
56
+ 5. Framework-specific guide (angular.md or react.md)
57
+
58
+ ### Resource Reference
59
+
60
+ - `api.md` - Complete technical API reference
61
+ - `guidelines.md` - UX and design guidelines
62
+ - `instructions.md` - Agent-specific constraints and notes
63
+ - `angular.md` / `react.md` - Framework-specific patterns
64
+ - `guides/` - Setup, troubleshooting, migration documentation
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "generatedAt": "2026-01-12T15:09:51.320Z",
3
+ "generatedAt": "2026-01-13T13:08:12.189Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "gds-alert",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "generatedAt": "2026-01-12T15:09:51.320Z",
3
+ "generatedAt": "2026-01-13T13:08:12.189Z",
4
4
  "icons": [
5
5
  {
6
6
  "name": "gds-icon-ai",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "generatedAt": "2026-01-12T15:09:51.320Z",
3
+ "generatedAt": "2026-01-13T13:08:12.189Z",
4
+ "instructions": "./INSTRUCTIONS.md",
4
5
  "components": "./components.json",
5
6
  "icons": "./icons.json",
6
7
  "guides": [
@@ -10,9 +10,9 @@ export * from './checkbox/index.js';
10
10
  export * from './coachmark/index.js';
11
11
  export * from './context-menu/index.js';
12
12
  export * from './datepicker/index.js';
13
+ export * from './details/index.js';
13
14
  export * from './dialog/index.js';
14
15
  export * from './div/index.js';
15
- export * from './details/index.js';
16
16
  export * from './divider/index.js';
17
17
  export * from './dropdown/index.js';
18
18
  export * from './fab/index.js';
@@ -31,13 +31,13 @@ export * from './pagination/index.js';
31
31
  export * from './backdrop/index.js';
32
32
  export * from './popover/index.js';
33
33
  export * from './radio/index.js';
34
+ export * from './rich-text/index.js';
34
35
  export * from './segmented-control/index.js';
35
36
  export * from './select/index.js';
36
- export * from './rich-text/index.js';
37
37
  export * from './signal/index.js';
38
38
  export * from './spinner/index.js';
39
- export * from './table/index.js';
40
39
  export * from './text/index.js';
40
+ export * from './table/index.js';
41
41
  export * from './textarea/index.js';
42
42
  export * from './theme/index.js';
43
43
  export * from './video/index.js';
@@ -49,11 +49,6 @@ export * from './filter-chip/index.js';
49
49
  export * from './formatted-account/index.js';
50
50
  export * from './formatted-date/index.js';
51
51
  export * from './formatted-number/index.js';
52
- export * from './radio-group/index.js';
53
- export * from './segment/index.js';
54
- export * from './sensitive-account/index.js';
55
- export * from './sensitive-number/index.js';
56
- export * from './sensitive-date/index.js';
57
52
  export * from './icons/icon-ai/index.js';
58
53
  export * from './icons/icon-airplane-up/index.js';
59
54
  export * from './icons/icon-archive/index.js';
@@ -387,6 +382,11 @@ export * from './icons/icon-youtube/index.js';
387
382
  export * from './icons/icon-zap/index.js';
388
383
  export * from './icons/icon-zoom-in/index.js';
389
384
  export * from './icons/icon-zoom-out/index.js';
385
+ export * from './radio-group/index.js';
386
+ export * from './segment/index.js';
387
+ export * from './sensitive-account/index.js';
388
+ export * from './sensitive-date/index.js';
389
+ export * from './sensitive-number/index.js';
390
390
  export * from './option/index.js';
391
391
  export * from './menu-heading/index.js';
392
392
  export * from './menu-item/index.js';
@@ -10,9 +10,9 @@ export * from "./checkbox/index.js";
10
10
  export * from "./coachmark/index.js";
11
11
  export * from "./context-menu/index.js";
12
12
  export * from "./datepicker/index.js";
13
+ export * from "./details/index.js";
13
14
  export * from "./dialog/index.js";
14
15
  export * from "./div/index.js";
15
- export * from "./details/index.js";
16
16
  export * from "./divider/index.js";
17
17
  export * from "./dropdown/index.js";
18
18
  export * from "./fab/index.js";
@@ -31,13 +31,13 @@ export * from "./pagination/index.js";
31
31
  export * from "./backdrop/index.js";
32
32
  export * from "./popover/index.js";
33
33
  export * from "./radio/index.js";
34
+ export * from "./rich-text/index.js";
34
35
  export * from "./segmented-control/index.js";
35
36
  export * from "./select/index.js";
36
- export * from "./rich-text/index.js";
37
37
  export * from "./signal/index.js";
38
38
  export * from "./spinner/index.js";
39
- export * from "./table/index.js";
40
39
  export * from "./text/index.js";
40
+ export * from "./table/index.js";
41
41
  export * from "./textarea/index.js";
42
42
  export * from "./theme/index.js";
43
43
  export * from "./video/index.js";
@@ -49,11 +49,6 @@ export * from "./filter-chip/index.js";
49
49
  export * from "./formatted-account/index.js";
50
50
  export * from "./formatted-date/index.js";
51
51
  export * from "./formatted-number/index.js";
52
- export * from "./radio-group/index.js";
53
- export * from "./segment/index.js";
54
- export * from "./sensitive-account/index.js";
55
- export * from "./sensitive-number/index.js";
56
- export * from "./sensitive-date/index.js";
57
52
  export * from "./icons/icon-ai/index.js";
58
53
  export * from "./icons/icon-airplane-up/index.js";
59
54
  export * from "./icons/icon-archive/index.js";
@@ -387,6 +382,11 @@ export * from "./icons/icon-youtube/index.js";
387
382
  export * from "./icons/icon-zap/index.js";
388
383
  export * from "./icons/icon-zoom-in/index.js";
389
384
  export * from "./icons/icon-zoom-out/index.js";
385
+ export * from "./radio-group/index.js";
386
+ export * from "./segment/index.js";
387
+ export * from "./sensitive-account/index.js";
388
+ export * from "./sensitive-date/index.js";
389
+ export * from "./sensitive-number/index.js";
390
390
  export * from "./option/index.js";
391
391
  export * from "./menu-heading/index.js";
392
392
  export * from "./menu-item/index.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sebgroup/green-core",
3
3
  "description": "A carefully crafted set of Web Components, laying the foundation of the Green Design System.",
4
- "version": "2.21.0-rc.20260112150926042",
4
+ "version": "2.21.0-rc.20260113130744922",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  import "../../chunks/chunk.QU3DSPNU.js";
2
2
  import { html as litHtml } from "lit";
3
- const VER_SUFFIX = "-e147d9";
3
+ const VER_SUFFIX = "-4a37b8";
4
4
  class ScopedElementRegistry {
5
5
  static get instance() {
6
6
  if (!globalThis.__gdsElementLookupTable?.[VER_SUFFIX])