@sebgroup/green-core 2.5.1 → 2.5.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.
@@ -60,16 +60,22 @@ let GdsDialog = class extends withSizeXProps(
60
60
  this.close(returnValue || "native-close");
61
61
  });
62
62
  __privateAdd(this, _dispatchCloseEvent, (reason) => {
63
- this.dispatchCustomEvent("gds-close", {
64
- detail: reason
65
- });
66
- return __privateGet(this, _dispatchUiStateEvent).call(this, reason);
63
+ if (__privateGet(this, _dispatchUiStateEvent).call(this, reason)) {
64
+ this.dispatchCustomEvent("gds-close", {
65
+ detail: reason
66
+ });
67
+ return true;
68
+ }
69
+ return false;
67
70
  });
68
71
  __privateAdd(this, _dispatchShowEvent, (reason) => {
69
- this.dispatchCustomEvent("gds-show", {
70
- detail: reason
71
- });
72
- return __privateGet(this, _dispatchUiStateEvent).call(this, reason);
72
+ if (__privateGet(this, _dispatchUiStateEvent).call(this, reason)) {
73
+ this.dispatchCustomEvent("gds-show", {
74
+ detail: reason
75
+ });
76
+ return true;
77
+ }
78
+ return false;
73
79
  });
74
80
  __privateAdd(this, _dispatchUiStateEvent, (reason) => {
75
81
  return this.dispatchCustomEvent("gds-ui-state", {
@@ -133,6 +139,7 @@ let GdsDialog = class extends withSizeXProps(
133
139
  box-shadow="xl"
134
140
  gap="l"
135
141
  border-radius="s"
142
+ max-width="100%"
136
143
  >
137
144
  <slot name="dialog">
138
145
  <gds-flex justify-content="space-between">
@@ -158,6 +165,7 @@ let GdsDialog = class extends withSizeXProps(
158
165
  justify-content="center"
159
166
  gap="s"
160
167
  padding="s 0 0 0"
168
+ flex-wrap="wrap"
161
169
  >
162
170
  <slot name="footer">
163
171
  <gds-button
@@ -215,7 +223,7 @@ handleTriggerSlotChange_fn = function() {
215
223
  _handleTriggerClick = new WeakMap();
216
224
  _handleClickOutside = new WeakMap();
217
225
  GdsDialog.styles = [DialogStyles];
218
- GdsDialog.styleExpressionBaseSelector = ".card";
226
+ GdsDialog.styleExpressionBaseSelector = "dialog";
219
227
  __decorateClass([
220
228
  property({ type: Boolean, reflect: true })
221
229
  ], GdsDialog.prototype, "open", 2);
package/gds-element.js CHANGED
@@ -14,7 +14,7 @@ class GdsElement extends LitElement {
14
14
  /**
15
15
  * The semantic version of this element. Can be used for troubleshooting to verify the version being used.
16
16
  */
17
- this.semanticVersion = "2.5.1";
17
+ this.semanticVersion = "2.5.2";
18
18
  this._isUsingTransitionalStyles = false;
19
19
  this._dynamicStylesController = new DynamicStylesController(this);
20
20
  }
@@ -12,9 +12,9 @@ export * from './datepicker/index.js';
12
12
  export * from './details/index.js';
13
13
  export * from './dialog/index.js';
14
14
  export * from './div/index.js';
15
+ export * from './divider/index.js';
15
16
  export * from './dropdown/index.js';
16
17
  export * from './fab/index.js';
17
- export * from './divider/index.js';
18
18
  export * from './filter-chips/index.js';
19
19
  export * from './flex/index.js';
20
20
  export * from './form-summary/index.js';
@@ -22,10 +22,10 @@ export * from './grid/index.js';
22
22
  export * from './grouped-list/index.js';
23
23
  export * from './list-item/index.js';
24
24
  export * from './icons/icon/index.js';
25
+ export * from './img/index.js';
25
26
  export * from './input/index.js';
26
27
  export * from './link/index.js';
27
28
  export * from './mask/index.js';
28
- export * from './img/index.js';
29
29
  export * from './menu-button/index.js';
30
30
  export * from './backdrop/index.js';
31
31
  export * from './popover/index.js';
@@ -12,9 +12,9 @@ export * from "./datepicker/index.js";
12
12
  export * from "./details/index.js";
13
13
  export * from "./dialog/index.js";
14
14
  export * from "./div/index.js";
15
+ export * from "./divider/index.js";
15
16
  export * from "./dropdown/index.js";
16
17
  export * from "./fab/index.js";
17
- export * from "./divider/index.js";
18
18
  export * from "./filter-chips/index.js";
19
19
  export * from "./flex/index.js";
20
20
  export * from "./form-summary/index.js";
@@ -22,10 +22,10 @@ export * from "./grid/index.js";
22
22
  export * from "./grouped-list/index.js";
23
23
  export * from "./list-item/index.js";
24
24
  export * from "./icons/icon/index.js";
25
+ export * from "./img/index.js";
25
26
  export * from "./input/index.js";
26
27
  export * from "./link/index.js";
27
28
  export * from "./mask/index.js";
28
- export * from "./img/index.js";
29
29
  export * from "./menu-button/index.js";
30
30
  export * from "./backdrop/index.js";
31
31
  export * from "./popover/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.5.1",
4
+ "version": "2.5.2",
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 = "-d59541";
3
+ const VER_SUFFIX = "-733b2e";
4
4
  class ScopedElementRegistry {
5
5
  static get instance() {
6
6
  if (!globalThis.__gdsElementLookupTable?.[VER_SUFFIX])