@sebgroup/green-core 1.85.1 → 1.85.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/README.md CHANGED
@@ -57,7 +57,7 @@ export class MyApp extends LitElement {
57
57
 
58
58
  Angular has support for using web components directly in the template. To enable it, you need to do the following:
59
59
 
60
- Add the `CUSTOM_ELEMENTS_SCHEMA` in the module where you plan to use the components. It is recommended to add this as locally as possible, only on the moduls/components where you need it, and not in the app module.
60
+ Add the `CUSTOM_ELEMENTS_SCHEMA` in the module where you plan to use the components. It is recommended to add this as locally as possible, only on the modules/components where you need it, and not in the app module.
61
61
 
62
62
  You also need the `NggCoreWrapperModule` from `@sebgroup/green-angular`.
63
63
 
@@ -86,7 +86,7 @@ import * as ButtonStyles from '@sebgroup/green-core/components/button/button.tra
86
86
  ButtonStyles.register()
87
87
  ```
88
88
 
89
- Use the webcomponent in your template with the `*nggCoreElement` directive.
89
+ Use the web component in your template with the `*nggCoreElement` directive.
90
90
 
91
91
  In your template:
92
92
 
@@ -94,11 +94,11 @@ In your template:
94
94
  <gds-button *nggCoreElement>Click me!</gds-button>
95
95
  ```
96
96
 
97
- The `*nggCoreElement` directive comes from the `NggCoreWrapperModule` you imported above. It has the same pupose as the custom html template tag mentioned in the Lit example above: It handles custom element scoping for you.
97
+ The `*nggCoreElement` directive comes from the `NggCoreWrapperModule` you imported above. It has the same purpose as the custom html template tag mentioned in the Lit example above: It handles custom element scoping for you.
98
98
 
99
99
  ### Using React
100
100
 
101
- In most cases, we already exort React wrappers for these components from the `@sebgroup/green-react` package. In those cases you can just use those. But you can also easily create your own wrappers using `@lit/react`.
101
+ In most cases, we already export React wrappers for these components from the `@sebgroup/green-react` package. In those cases you can just use those. But you can also easily create your own wrappers using `@lit/react`.
102
102
 
103
103
  Here is an example:
104
104
 
@@ -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
  }
@@ -37,3 +37,5 @@ export * from './select';
37
37
  export * from './spinner';
38
38
  export * from './textarea';
39
39
  export * from './radio';
40
+ export * from './alert';
41
+ export * from './rich-text';
@@ -37,3 +37,5 @@ export * from "./select/index.js";
37
37
  export * from "./spinner/index.js";
38
38
  export * from "./textarea/index.js";
39
39
  export * from "./radio/index.js";
40
+ export * from "./alert/index.js";
41
+ export * from "./rich-text/index.js";
@@ -1 +1,2 @@
1
1
  export * from './segmented-control';
2
+ export * from './segment/segment';
@@ -1 +1,2 @@
1
1
  export * from "./segmented-control.js";
2
+ export * from "./segment/segment.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';
@@ -51,11 +51,6 @@ export * from './filter-chip/index.js';
51
51
  export * from './formatted-account/index.js';
52
52
  export * from './formatted-date/index.js';
53
53
  export * from './formatted-number/index.js';
54
- export * from './radio-group/index.js';
55
- export * from './segment/index.js';
56
- export * from './sensitive-account/index.js';
57
- export * from './sensitive-date/index.js';
58
- export * from './sensitive-number/index.js';
59
54
  export * from './icons/icon-ai/index.js';
60
55
  export * from './icons/icon-airplane-up/index.js';
61
56
  export * from './icons/icon-archive/index.js';
@@ -343,3 +338,8 @@ export * from './icons/icon-youtube/index.js';
343
338
  export * from './icons/icon-zap/index.js';
344
339
  export * from './icons/icon-zoom-in/index.js';
345
340
  export * from './icons/icon-zoom-out/index.js';
341
+ export * from './radio-group/index.js';
342
+ export * from './segment/index.js';
343
+ export * from './sensitive-account/index.js';
344
+ export * from './sensitive-date/index.js';
345
+ export * from './sensitive-number/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";
@@ -51,11 +51,6 @@ export * from "./filter-chip/index.js";
51
51
  export * from "./formatted-account/index.js";
52
52
  export * from "./formatted-date/index.js";
53
53
  export * from "./formatted-number/index.js";
54
- export * from "./radio-group/index.js";
55
- export * from "./segment/index.js";
56
- export * from "./sensitive-account/index.js";
57
- export * from "./sensitive-date/index.js";
58
- export * from "./sensitive-number/index.js";
59
54
  export * from "./icons/icon-ai/index.js";
60
55
  export * from "./icons/icon-airplane-up/index.js";
61
56
  export * from "./icons/icon-archive/index.js";
@@ -343,3 +338,8 @@ export * from "./icons/icon-youtube/index.js";
343
338
  export * from "./icons/icon-zap/index.js";
344
339
  export * from "./icons/icon-zoom-in/index.js";
345
340
  export * from "./icons/icon-zoom-out/index.js";
341
+ export * from "./radio-group/index.js";
342
+ export * from "./segment/index.js";
343
+ export * from "./sensitive-account/index.js";
344
+ export * from "./sensitive-date/index.js";
345
+ export * from "./sensitive-number/index.js";
@@ -3,7 +3,7 @@ import { GdsSegmentedControl as GdsSegmentedControlClass } from "../../../compon
3
3
  export declare const GdsSegmentedControl: (props: React.ComponentProps<ReturnType<typeof getReactComponent<GdsSegmentedControlClass>>>) => import("react").ReactElement<Omit<{
4
4
  size?: "small" | "medium" | undefined;
5
5
  value?: any;
6
- readonly segments?: import("../../../components/segmented-control/segment").GdsSegment<any>[] | undefined;
6
+ readonly segments?: import("../../..").GdsSegment<any>[] | undefined;
7
7
  intersectionObserver?: IntersectionObserver | null | undefined;
8
8
  connectedCallback?: (() => void) | undefined;
9
9
  render?: (() => 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": "1.85.1",
4
+ "version": "1.85.3",
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 = "-ac25ce";
4
4
  class ScopedElementRegistry {
5
5
  static get instance() {
6
6
  if (!globalThis.__gdsElementLookupTable?.[VER_SUFFIX])