@sebgroup/green-core 3.6.2 → 3.6.3

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
@@ -16,7 +16,7 @@ class GdsElement extends LitElement {
16
16
  /**
17
17
  * The semantic version of this element. Can be used for troubleshooting to verify the version being used.
18
18
  */
19
- this.semanticVersion = "3.6.2";
19
+ this.semanticVersion = "3.6.3";
20
20
  this.syncFirstRender = false;
21
21
  this._isUsingTransitionalStyles = false;
22
22
  this._dynamicStylesController = new DynamicStylesController(this);
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-04-28T12:37:25.805Z",
2
+ "generatedAt": "2026-04-29T15:59:02.891Z",
3
3
  "components": [
4
4
  {
5
5
  "name": "gds-alert",
@@ -54,4 +54,19 @@ use the `html` template tag or template tag factory from Green Core.
54
54
 
55
55
  At some point in the future, when the scoped custom element registry proposal has been
56
56
  implemented in all major browsers, we might remove this custom scoping mechanism and
57
- switch to using native scoped registries instead.
57
+ switch to using native scoped registries instead.
58
+
59
+ ## CSS Variables
60
+
61
+ Shadow DOM encapsulation guards against style leaks in and out of components and custom element scoping ensures
62
+ that multiple versions can coexist. This leaves out CSS variables however. CSS variables, or
63
+ "CSS custom properties" as they are really called, inherit though the DOM, including shadow DOM.
64
+ This means that conflicts *can* still occur here.
65
+
66
+ But Green provides a way to guard against this type of conflict as well: `<gds-theme>`.
67
+
68
+ `<gds-theme>` defines a copy of all the CSS variables on its `:host` selector. This means that
69
+ it will override any same-name variables defined on `:root` or inherited from outside.
70
+
71
+ So by using `<gds-theme>` at the root of your application, you can ensure that all components get
72
+ their variables from the version you expect.
@@ -6,6 +6,10 @@ If you need to update several versions at once, it is recommended to follow the
6
6
 
7
7
  Before you begin, make sure you have the latest feature/patch version of your current major version.
8
8
 
9
+ ## CSS variables
10
+
11
+ Please ensure that you have at least one instance of `gds-theme` at the root of your application. This ensures that all components have the correct variables versions, and guards against conflicts from shell or other MFEs.
12
+
9
13
  ## Automated migrations
10
14
 
11
15
  Many migrations can be automated using the `green-core-context migrate` command. This will detect and apply code changes for supported automated migrations.
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-04-28T12:37:25.805Z",
2
+ "generatedAt": "2026-04-29T15:59:02.891Z",
3
3
  "icons": [
4
4
  {
5
5
  "name": "gds-icon-ai",
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-04-28T12:37:25.805Z",
2
+ "generatedAt": "2026-04-29T15:59:02.891Z",
3
3
  "instructions": "./INSTRUCTIONS.md",
4
4
  "components": "./components.json",
5
5
  "icons": "./icons.json",
@@ -34,7 +34,7 @@
34
34
  | `maxlength` | `number` | `-` | The maximum number of characters allowed in the field. |
35
35
  | `size` | `'large' \| 'small'` | `-` | Controls the font-size of texts and height of the field. |
36
36
  | `plain` | `boolean` | `-` | Hides the header and the footer, while still keeping the accessible label Always set the `label` attribute, and if you need to hide it, add this attribute and keep `label` set. |
37
- | `type` | `\| 'date' \| 'datetime-local' \| 'email' \| 'number' \| 'password' \| 'search' \| 'tel' \| 'text' \| 'time' \| 'url'` | `-` | The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults to `text`. |
37
+ | `type` | `\| 'date' \| 'datetime-local' \| 'email' \| 'file' \| 'number' \| 'password' \| 'search' \| 'tel' \| 'text' \| 'time' \| 'url'` | `-` | The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults to `text`. |
38
38
  | `min` | `number \| string \| undefined` | `-` | The input's minimum value. Only applies to date and number input types. |
39
39
  | `max` | `number \| string \| undefined` | `-` | The input's maximum value. Only applies to date and number input types. |
40
40
  | `step` | `number \| 'any' \| undefined` | `-` | Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is implied, allowing any numeric value. Only applies to date and number input types. |
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-04-28T12:37:25.720Z",
2
+ "generatedAt": "2026-04-29T15:59:02.787Z",
3
3
  "categories": {
4
4
  "space": {
5
5
  "description": "Spacing tokens for padding, margin, gap, and other spacing",
@@ -1,7 +1,7 @@
1
1
  export * from './alert/index.js';
2
- export * from './blur/index.js';
3
2
  export * from './badge/index.js';
4
3
  export * from './breadcrumbs/index.js';
4
+ export * from './blur/index.js';
5
5
  export * from './button/index.js';
6
6
  export * from './calendar/index.js';
7
7
  export * from './card/index.js';
@@ -12,9 +12,9 @@ export * from './context-menu/index.js';
12
12
  export * from './datepicker/index.js';
13
13
  export * from './details/index.js';
14
14
  export * from './dialog/index.js';
15
- export * from './div/index.js';
16
15
  export * from './divider/index.js';
17
16
  export * from './dropdown/index.js';
17
+ export * from './div/index.js';
18
18
  export * from './fab/index.js';
19
19
  export * from './filter-chips/index.js';
20
20
  export * from './flex/index.js';
@@ -25,8 +25,8 @@ export * from './list-item/index.js';
25
25
  export * from './img/index.js';
26
26
  export * from './input/index.js';
27
27
  export * from './link/index.js';
28
- export * from './mask/index.js';
29
28
  export * from './menu-button/index.js';
29
+ export * from './mask/index.js';
30
30
  export * from './pagination/index.js';
31
31
  export * from './backdrop/index.js';
32
32
  export * from './popover/index.js';
@@ -1,7 +1,7 @@
1
1
  export * from "./alert/index.js";
2
- export * from "./blur/index.js";
3
2
  export * from "./badge/index.js";
4
3
  export * from "./breadcrumbs/index.js";
4
+ export * from "./blur/index.js";
5
5
  export * from "./button/index.js";
6
6
  export * from "./calendar/index.js";
7
7
  export * from "./card/index.js";
@@ -12,9 +12,9 @@ export * from "./context-menu/index.js";
12
12
  export * from "./datepicker/index.js";
13
13
  export * from "./details/index.js";
14
14
  export * from "./dialog/index.js";
15
- export * from "./div/index.js";
16
15
  export * from "./divider/index.js";
17
16
  export * from "./dropdown/index.js";
17
+ export * from "./div/index.js";
18
18
  export * from "./fab/index.js";
19
19
  export * from "./filter-chips/index.js";
20
20
  export * from "./flex/index.js";
@@ -25,8 +25,8 @@ export * from "./list-item/index.js";
25
25
  export * from "./img/index.js";
26
26
  export * from "./input/index.js";
27
27
  export * from "./link/index.js";
28
- export * from "./mask/index.js";
29
28
  export * from "./menu-button/index.js";
29
+ export * from "./mask/index.js";
30
30
  export * from "./pagination/index.js";
31
31
  export * from "./backdrop/index.js";
32
32
  export * from "./popover/index.js";
@@ -39,7 +39,7 @@ export declare const GdsInput: {
39
39
  maxlength?: number | undefined;
40
40
  size?: "small" | "large" | undefined;
41
41
  plain?: boolean | undefined;
42
- type?: "number" | "search" | "time" | "text" | "date" | "email" | "datetime-local" | "password" | "tel" | "url" | undefined;
42
+ type?: "number" | "search" | "time" | "text" | "date" | "email" | "datetime-local" | "file" | "password" | "tel" | "url" | undefined;
43
43
  min?: (number | string) | undefined;
44
44
  max?: (number | string) | undefined;
45
45
  step?: (number | "any") | undefined;
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": "3.6.2",
4
+ "version": "3.6.3",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  import "../../chunks/chunk.CAV4X6PU.js";
2
2
  import { html as litHtml } from "lit";
3
- const VER_SUFFIX = "-8bf991";
3
+ const VER_SUFFIX = "-adade7";
4
4
  class ScopedElementRegistry {
5
5
  static get instance() {
6
6
  if (!globalThis.__gdsElementLookupTable?.[VER_SUFFIX])