@sebgroup/green-core 1.85.1 → 1.85.2

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.
@@ -13,7 +13,7 @@ import { classMap } from "lit/directives/class-map.js";
13
13
  import { createRef, ref } from "lit/directives/ref.js";
14
14
  import { html as staticHtml, unsafeStatic } from "lit/static-html.js";
15
15
  import { GdsElement } from "../../gds-element.js";
16
- import { gdsCustomElement, html } from "../../scoping.js";
16
+ import { gdsCustomElement, getScopedTagName, html } from "../../scoping.js";
17
17
  import { tokens } from "../../tokens.style.js";
18
18
  import { GdsButton } from "../button/button.component.js";
19
19
  import { GdsCard } from "../card/card.component.js";
@@ -172,7 +172,7 @@ config_get = function() {
172
172
  _renderIcon = new WeakSet();
173
173
  renderIcon_fn = function() {
174
174
  const icon = `gds-icon-${__privateGet(this, _config, config_get).icon}`;
175
- return html`${staticHtml`<${unsafeStatic(icon)} class="icon" solid aria-hidden="true" size="24px"></${unsafeStatic(icon)}>`}`;
175
+ return html`${staticHtml`<${unsafeStatic(getScopedTagName(icon))} class="icon" solid aria-hidden="true" size="24px"></${unsafeStatic(getScopedTagName(icon))}>`}`;
176
176
  };
177
177
  _renderMessage = new WeakSet();
178
178
  renderMessage_fn = function() {
@@ -2,9 +2,10 @@ import "../../chunks/chunk.QTSIPXV3.js";
2
2
  import { css } from "lit";
3
3
  const alertStyles = css`
4
4
  :host {
5
+ box-sizing: border-box;
5
6
  display: block;
7
+ max-width: 100%;
6
8
  container-type: inline-size;
7
- margin: 0.3rem;
8
9
  }
9
10
 
10
11
  #alert-message {
@@ -12,7 +13,7 @@ const alertStyles = css`
12
13
  display: grid;
13
14
  grid-template-columns: auto 1fr auto;
14
15
  grid-template-areas: var(--grid-areas);
15
- width: 100%;
16
+ min-width: fit-content;
16
17
  position: relative;
17
18
  transition:
18
19
  opacity 0.3s ease-out,
@@ -47,7 +48,7 @@ const alertStyles = css`
47
48
  }
48
49
 
49
50
  /* Focus styles */
50
- #alert-message:focus-within {
51
+ #alert-message:focus {
51
52
  outline: 2px solid var(--gds-focus-color, #000);
52
53
  outline-offset: 2px;
53
54
  }
@@ -1,7 +1,7 @@
1
1
  export * from './alert/index.js';
2
+ export * from './badge/index.js';
2
3
  export * from './blur/index.js';
3
4
  export * from './breadcrumbs/index.js';
4
- export * from './badge/index.js';
5
5
  export * from './button/index.js';
6
6
  export * from './calendar/index.js';
7
7
  export * from './card/index.js';
@@ -54,8 +54,8 @@ export * from './formatted-number/index.js';
54
54
  export * from './radio-group/index.js';
55
55
  export * from './segment/index.js';
56
56
  export * from './sensitive-account/index.js';
57
- export * from './sensitive-date/index.js';
58
57
  export * from './sensitive-number/index.js';
58
+ export * from './sensitive-date/index.js';
59
59
  export * from './icons/icon-ai/index.js';
60
60
  export * from './icons/icon-airplane-up/index.js';
61
61
  export * from './icons/icon-archive/index.js';
@@ -1,7 +1,7 @@
1
1
  export * from "./alert/index.js";
2
+ export * from "./badge/index.js";
2
3
  export * from "./blur/index.js";
3
4
  export * from "./breadcrumbs/index.js";
4
- export * from "./badge/index.js";
5
5
  export * from "./button/index.js";
6
6
  export * from "./calendar/index.js";
7
7
  export * from "./card/index.js";
@@ -54,8 +54,8 @@ export * from "./formatted-number/index.js";
54
54
  export * from "./radio-group/index.js";
55
55
  export * from "./segment/index.js";
56
56
  export * from "./sensitive-account/index.js";
57
- export * from "./sensitive-date/index.js";
58
57
  export * from "./sensitive-number/index.js";
58
+ export * from "./sensitive-date/index.js";
59
59
  export * from "./icons/icon-ai/index.js";
60
60
  export * from "./icons/icon-airplane-up/index.js";
61
61
  export * from "./icons/icon-archive/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": "1.85.1",
4
+ "version": "1.85.2",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  import "../../chunks/chunk.QTSIPXV3.js";
2
2
  import { html as litHtml } from "lit";
3
- const VER_SUFFIX = "-d3e6fd";
3
+ const VER_SUFFIX = "-0fd725";
4
4
  class ScopedElementRegistry {
5
5
  static get instance() {
6
6
  if (!globalThis.__gdsElementLookupTable?.[VER_SUFFIX])