@sebgroup/green-core 3.16.0 → 3.16.1-rc.20260625115053213
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/components/list/list-item/list-item.component.d.ts +1 -1
- package/components/list/list-item/list-item.component.js +1 -2
- package/components/list/list.component.d.ts +4 -0
- package/components/list/list.component.js +8 -0
- package/components/list/list.styles.js +13 -0
- package/custom-elements.json +5536 -5520
- package/gds-element.js +1 -1
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/mcp/input/guidelines.md +16 -9
- package/generated/mcp/list/api.md +1 -0
- package/generated/mcp/list-item-pattern-01/guidelines.md +1 -5
- package/generated/mcp/tabs/guidelines.md +6 -0
- package/generated/mcp/tokens.json +1 -1
- package/generated/react/index.d.ts +6 -6
- package/generated/react/index.js +6 -6
- package/generated/react/list/index.d.ts +1 -0
- package/generated/react/list-item-pattern-01/index.d.ts +1 -0
- package/package.json +1 -1
- package/patterns/list-item-pattern-01/list-item-pattern-01.component.d.ts +4 -1
- package/patterns/list-item-pattern-01/list-item-pattern-01.component.js +16 -2
- package/patterns/list-item-pattern-01/list-item-pattern-01.styles.js +8 -7
- package/shared-styles/rbcb-toggle.style.js +1 -0
- package/utils/helpers/custom-element-scoping.js +1 -1
- package/components/list/list-item/list-item.styles.d.ts +0 -2
- package/components/list/list-item/list-item.styles.js +0 -13
|
@@ -9,7 +9,7 @@ declare const GdsListItem_base: (new (...args: any[]) => import("../../../utils/
|
|
|
9
9
|
* @slot - Content to be displayed as the main content.
|
|
10
10
|
*/
|
|
11
11
|
export declare class GdsListItem extends GdsListItem_base {
|
|
12
|
-
static styles:
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
13
|
connectedCallback(): void;
|
|
14
14
|
render(): any;
|
|
15
15
|
}
|
|
@@ -5,7 +5,6 @@ import { GdsElement } from "../../../gds-element.js";
|
|
|
5
5
|
import { gdsCustomElement, html } from "../../../scoping.js";
|
|
6
6
|
import { tokens } from "../../../tokens.style.js";
|
|
7
7
|
import { withLayoutChildProps } from "../../../utils/mixins/declarative-layout-mixins.js";
|
|
8
|
-
import ListItemStyles from "./list-item.styles.js";
|
|
9
8
|
let GdsListItem = class extends withLayoutChildProps(GdsElement) {
|
|
10
9
|
connectedCallback() {
|
|
11
10
|
super.connectedCallback();
|
|
@@ -15,7 +14,7 @@ let GdsListItem = class extends withLayoutChildProps(GdsElement) {
|
|
|
15
14
|
return html`<slot></slot>`;
|
|
16
15
|
}
|
|
17
16
|
};
|
|
18
|
-
GdsListItem.styles =
|
|
17
|
+
GdsListItem.styles = tokens;
|
|
19
18
|
GdsListItem = __decorateClass([
|
|
20
19
|
gdsCustomElement("gds-list-item")
|
|
21
20
|
], GdsListItem);
|
|
@@ -11,6 +11,10 @@ import { GdsFlex } from '../flex/flex.component';
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class GdsList extends GdsFlex {
|
|
13
13
|
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
14
|
+
/**
|
|
15
|
+
* Renders dividers (borders) between list items and removes the default gap.
|
|
16
|
+
*/
|
|
17
|
+
dividers: boolean;
|
|
14
18
|
connectedCallback(): void;
|
|
15
19
|
render(): any;
|
|
16
20
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__decorateClass
|
|
3
3
|
} from "../../chunks/chunk.CAV4X6PU.js";
|
|
4
|
+
import { property } from "lit/decorators.js";
|
|
4
5
|
import { gdsCustomElement, html } from "../../scoping.js";
|
|
5
6
|
import { tokens } from "../../tokens.style.js";
|
|
6
7
|
import { GdsFlex } from "../flex/flex.component.js";
|
|
7
8
|
import ListStyles from "./list.styles.js";
|
|
8
9
|
let GdsList = class extends GdsFlex {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.dividers = false;
|
|
13
|
+
}
|
|
9
14
|
connectedCallback() {
|
|
10
15
|
super.connectedCallback();
|
|
11
16
|
this.setAttribute("role", "list");
|
|
@@ -15,6 +20,9 @@ let GdsList = class extends GdsFlex {
|
|
|
15
20
|
}
|
|
16
21
|
};
|
|
17
22
|
GdsList.styles = [tokens, ListStyles];
|
|
23
|
+
__decorateClass([
|
|
24
|
+
property({ type: Boolean, reflect: true })
|
|
25
|
+
], GdsList.prototype, "dividers", 2);
|
|
18
26
|
GdsList = __decorateClass([
|
|
19
27
|
gdsCustomElement("gds-list")
|
|
20
28
|
], GdsList);
|
|
@@ -6,6 +6,19 @@ const style = css`
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
gap: var(--gds-sys-space-m);
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
:host([dividers]) {
|
|
11
|
+
gap: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([dividers]) ::slotted(*:not(:last-child)) {
|
|
15
|
+
border-bottom: 1px solid var(--gds-sys-color-border-neutral-03);
|
|
16
|
+
border-radius: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([dividers]) ::slotted([href]) {
|
|
20
|
+
padding: var(--gds-sys-space-s) 0;
|
|
21
|
+
}
|
|
9
22
|
`;
|
|
10
23
|
var list_styles_default = style;
|
|
11
24
|
export {
|