@sebgroup/green-core 2.5.2 → 2.5.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.
@@ -52,8 +52,9 @@ declare class Button extends GdsFormControlElement<any> {
52
52
  download?: string;
53
53
  private _mainSlot?;
54
54
  private _button?;
55
- connectedCallback(): void;
56
55
  focus(options?: FocusOptions): void;
56
+ click(): void;
57
+ connectedCallback(): void;
57
58
  render(): import("lit-html").TemplateResult;
58
59
  protected _getValidityAnchor(): HTMLElement;
59
60
  private _attributeChanged;
@@ -60,14 +60,17 @@ class Button extends GdsFormControlElement {
60
60
  }
61
61
  });
62
62
  }
63
+ focus(options) {
64
+ this._getValidityAnchor()?.focus(options);
65
+ }
66
+ click() {
67
+ this._getValidityAnchor()?.click();
68
+ }
63
69
  connectedCallback() {
64
70
  super.connectedCallback();
65
71
  this.setAttribute("role", "none");
66
72
  TransitionalStyles.instance.apply(this, "gds-button");
67
73
  }
68
- focus(options) {
69
- this._getValidityAnchor()?.focus(options);
70
- }
71
74
  render() {
72
75
  const buttonClasses = {
73
76
  button: true,
@@ -20,10 +20,6 @@ const style = css`
20
20
  width: 100%;
21
21
  padding: 1ch;
22
22
 
23
- &.indicators {
24
- border-spacing: var(--gds-sys-space-xs) var(--gds-sys-space-l);
25
- }
26
-
27
23
  &.small {
28
24
  border-spacing: var(--gds-sys-space-2xs);
29
25
 
@@ -92,8 +88,8 @@ const style = css`
92
88
  }
93
89
 
94
90
  &[aria-selected='true'] {
95
- background: var(--gds-sys-color-l3-neutral-01);
96
91
  color: var(--gds-sys-color-content-neutral-03);
92
+ background: var(--gds-sys-color-l3-neutral-01);
97
93
  }
98
94
 
99
95
  &:not(.disabled):hover {
@@ -146,7 +142,6 @@ const style = css`
146
142
  &:focus-visible {
147
143
  outline-color: var(--gds-sys-color-content-neutral-01);
148
144
  outline-width: var(--gds-sys-space-3xs);
149
- outline-offset: 3.75px;
150
145
  }
151
146
 
152
147
  &.small {
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.2";
17
+ this.semanticVersion = "2.5.3";
18
18
  this._isUsingTransitionalStyles = false;
19
19
  this._dynamicStylesController = new DynamicStylesController(this);
20
20
  }
@@ -28,8 +28,9 @@ export declare const GdsButton: (props: React.ComponentProps<ReturnType<typeof g
28
28
  target?: ("_self" | "_blank" | "_parent" | "_top") | undefined;
29
29
  rel?: string | undefined;
30
30
  download?: string | undefined;
31
- connectedCallback?: (() => void) | undefined;
32
31
  focus?: ((options?: FocusOptions) => void) | undefined;
32
+ click?: (() => void) | undefined;
33
+ connectedCallback?: (() => void) | undefined;
33
34
  render?: (() => import("lit-html").TemplateResult) | undefined;
34
35
  validator?: import("../../../components/form/form-control").GdsValidator | undefined;
35
36
  required?: boolean | undefined;
@@ -79,7 +80,6 @@ export declare const GdsButton: (props: React.ComponentProps<ReturnType<typeof g
79
80
  title?: string | undefined;
80
81
  translate?: boolean | undefined;
81
82
  attachInternals?: (() => ElementInternals) | undefined;
82
- click?: (() => void) | undefined;
83
83
  hidePopover?: (() => void) | undefined;
84
84
  showPopover?: (() => void) | undefined;
85
85
  togglePopover?: ((force?: boolean) => boolean) | undefined;
@@ -33,6 +33,7 @@ export declare const GdsFab: (props: React.ComponentProps<ReturnType<typeof getR
33
33
  rel?: string | undefined;
34
34
  download?: string | undefined;
35
35
  focus?: ((options?: FocusOptions) => void) | undefined;
36
+ click?: (() => void) | undefined;
36
37
  render?: (() => import("lit-html").TemplateResult) | undefined;
37
38
  validator?: import("../../../components/form/form-control").GdsValidator | undefined;
38
39
  required?: boolean | undefined;
@@ -82,7 +83,6 @@ export declare const GdsFab: (props: React.ComponentProps<ReturnType<typeof getR
82
83
  title?: string | undefined;
83
84
  translate?: boolean | undefined;
84
85
  attachInternals?: (() => ElementInternals) | undefined;
85
- click?: (() => void) | undefined;
86
86
  hidePopover?: (() => void) | undefined;
87
87
  showPopover?: (() => void) | undefined;
88
88
  togglePopover?: ((force?: boolean) => boolean) | undefined;
@@ -11,10 +11,10 @@ export * from './context-menu/index.js';
11
11
  export * from './datepicker/index.js';
12
12
  export * from './details/index.js';
13
13
  export * from './dialog/index.js';
14
- export * from './div/index.js';
15
14
  export * from './divider/index.js';
16
- export * from './dropdown/index.js';
17
15
  export * from './fab/index.js';
16
+ export * from './dropdown/index.js';
17
+ export * from './div/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';
@@ -11,10 +11,10 @@ export * from "./context-menu/index.js";
11
11
  export * from "./datepicker/index.js";
12
12
  export * from "./details/index.js";
13
13
  export * from "./dialog/index.js";
14
- export * from "./div/index.js";
15
14
  export * from "./divider/index.js";
16
- export * from "./dropdown/index.js";
17
15
  export * from "./fab/index.js";
16
+ export * from "./dropdown/index.js";
17
+ export * from "./div/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";
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.2",
4
+ "version": "2.5.3",
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 = "-733b2e";
3
+ const VER_SUFFIX = "-643d87";
4
4
  class ScopedElementRegistry {
5
5
  static get instance() {
6
6
  if (!globalThis.__gdsElementLookupTable?.[VER_SUFFIX])