@sebgroup/green-core 3.12.5 → 3.13.0
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/grouped-list/grouped-list.component.d.ts +0 -2
- package/components/grouped-list/grouped-list.component.js +3 -4
- package/components/grouped-list/index.d.ts +0 -1
- package/components/grouped-list/index.js +0 -1
- package/components/grouped-list/list-item.component.d.ts +1 -11
- package/components/grouped-list/list-item.component.js +2 -17
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/list/index.d.ts +2 -0
- package/components/list/index.js +2 -0
- package/components/list/list-item/index.d.ts +1 -0
- package/components/list/list-item/index.js +1 -0
- package/components/list/list-item/list-item.component.d.ts +16 -0
- package/components/list/list-item/list-item.component.js +24 -0
- package/components/list/list-item/list-item.d.ts +2 -0
- package/components/list/list-item/list-item.js +6 -0
- package/components/list/list-item/list-item.styles.d.ts +2 -0
- package/components/list/list-item/list-item.styles.js +13 -0
- package/components/list/list.component.d.ts +16 -0
- package/components/list/list.component.js +23 -0
- package/components/list/list.d.ts +2 -0
- package/components/list/list.js +6 -0
- package/components/list/list.styles.d.ts +2 -0
- package/components/list/list.styles.js +13 -0
- package/custom-elements.json +34865 -32572
- package/gds-element.js +1 -1
- package/generated/mcp/components.json +27 -2
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/mcp/list/angular.md +17 -0
- package/generated/mcp/list/api.md +86 -0
- package/generated/mcp/list/guidelines.md +1 -0
- package/generated/mcp/list/index.json +9 -0
- package/generated/mcp/list/react.md +17 -0
- package/generated/mcp/list-item/angular.md +3 -1
- package/generated/mcp/list-item/api.md +17 -0
- package/generated/mcp/list-item/react.md +3 -1
- package/generated/mcp/list-item-pattern-01/angular.md +26 -0
- package/generated/mcp/list-item-pattern-01/api.md +55 -0
- package/generated/mcp/list-item-pattern-01/index.json +8 -0
- package/generated/mcp/list-item-pattern-01/react.md +26 -0
- package/generated/mcp/tokens.json +1 -1
- package/generated/react/index.d.ts +6 -4
- package/generated/react/index.js +6 -4
- package/generated/react/list/index.d.ts +727 -0
- package/generated/react/list/index.js +14 -0
- package/generated/react/list-item/index.d.ts +10 -1
- package/generated/react/list-item/index.js +1 -1
- package/generated/react/list-item-pattern-01/index.d.ts +690 -0
- package/generated/react/list-item-pattern-01/index.js +16 -0
- package/package.json +8 -1
- package/patterns/index.d.ts +1 -0
- package/patterns/index.js +1 -0
- package/patterns/list-item-pattern-01/index.d.ts +1 -0
- package/patterns/list-item-pattern-01/index.js +1 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.component.d.ts +74 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.component.js +278 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.d.ts +2 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.js +6 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.stories.data.d.ts +4 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.stories.data.js +8 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.styles.d.ts +2 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.styles.js +113 -0
- package/pure.d.ts +3 -0
- package/pure.js +3 -0
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import { property } from "lit/decorators.js";
|
|
5
5
|
import { when } from "lit/directives/when.js";
|
|
6
6
|
import { GdsElement } from "../../gds-element.js";
|
|
7
|
+
import { tokens } from "../../tokens.style.js";
|
|
7
8
|
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
8
9
|
import {
|
|
9
10
|
gdsCustomElement,
|
|
10
11
|
html
|
|
11
12
|
} from "../../utils/helpers/custom-element-scoping.js";
|
|
12
|
-
import { tokens } from "../../tokens.style.js";
|
|
13
|
-
import { GdsListItem } from "./list-item.component.js";
|
|
14
13
|
import GroupedListStyles from "./grouped-list.styles.js";
|
|
14
|
+
import { GdsListItem } from "./list-item.component.js";
|
|
15
15
|
let GdsGroupedList = class extends GdsElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
@@ -41,6 +41,5 @@ GdsGroupedList = __decorateClass([
|
|
|
41
41
|
gdsCustomElement("gds-grouped-list", { dependsOn: [GdsListItem] })
|
|
42
42
|
], GdsGroupedList);
|
|
43
43
|
export {
|
|
44
|
-
GdsGroupedList
|
|
45
|
-
GdsListItem
|
|
44
|
+
GdsGroupedList
|
|
46
45
|
};
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @element gds-list-item
|
|
4
|
-
* @status beta
|
|
5
|
-
*
|
|
6
|
-
* Used with `gds-grouped-list` to create a list items.
|
|
7
|
-
*/
|
|
8
|
-
export declare class GdsListItem extends GdsElement {
|
|
9
|
-
connectedCallback(): void;
|
|
10
|
-
render(): any;
|
|
11
|
-
}
|
|
1
|
+
export { GdsListItem } from '../list';
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/chunk.CAV4X6PU.js";
|
|
4
|
-
import { GdsElement } from "../../gds-element.js";
|
|
5
|
-
import { gdsCustomElement, html } from "../../scoping.js";
|
|
6
|
-
let GdsListItem = class extends GdsElement {
|
|
7
|
-
connectedCallback() {
|
|
8
|
-
super.connectedCallback();
|
|
9
|
-
this.setAttribute("role", "listitem");
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return html`<slot></slot>`;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
GdsListItem = __decorateClass([
|
|
16
|
-
gdsCustomElement("gds-list-item")
|
|
17
|
-
], GdsListItem);
|
|
1
|
+
import "../../chunks/chunk.CAV4X6PU.js";
|
|
2
|
+
import { GdsListItem } from "../list/index.js";
|
|
18
3
|
export {
|
|
19
4
|
GdsListItem
|
|
20
5
|
};
|
package/components/index.d.ts
CHANGED
package/components/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export * from "./icon/icons/index.js";
|
|
|
29
29
|
export * from "./img/index.js";
|
|
30
30
|
export * from "./input/index.js";
|
|
31
31
|
export * from "./link/index.js";
|
|
32
|
+
export * from "./list/index.js";
|
|
32
33
|
export * from "./mask/index.js";
|
|
33
34
|
export * from "./menu-button/index.js";
|
|
34
35
|
export * from "./pagination/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './list-item';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list-item.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GdsElement } from '../../../gds-element';
|
|
2
|
+
declare const GdsListItem_base: (new (...args: any[]) => import("../../../utils/mixins/declarative-layout-mixins").LayoutChildProps) & typeof GdsElement;
|
|
3
|
+
/**
|
|
4
|
+
* `gds-list-item` is used as a child of `gds-list` to represent a single item in a list.
|
|
5
|
+
*
|
|
6
|
+
* @element gds-list-item
|
|
7
|
+
* @status beta
|
|
8
|
+
*
|
|
9
|
+
* @slot - Content to be displayed as the main content.
|
|
10
|
+
*/
|
|
11
|
+
export declare class GdsListItem extends GdsListItem_base {
|
|
12
|
+
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
render(): any;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__decorateClass
|
|
3
|
+
} from "../../../chunks/chunk.CAV4X6PU.js";
|
|
4
|
+
import { GdsElement } from "../../../gds-element.js";
|
|
5
|
+
import { gdsCustomElement, html } from "../../../scoping.js";
|
|
6
|
+
import { tokens } from "../../../tokens.style.js";
|
|
7
|
+
import { withLayoutChildProps } from "../../../utils/mixins/declarative-layout-mixins.js";
|
|
8
|
+
import ListItemStyles from "./list-item.styles.js";
|
|
9
|
+
let GdsListItem = class extends withLayoutChildProps(GdsElement) {
|
|
10
|
+
connectedCallback() {
|
|
11
|
+
super.connectedCallback();
|
|
12
|
+
this.setAttribute("role", "listitem");
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return html`<slot></slot>`;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
GdsListItem.styles = [tokens, ListItemStyles];
|
|
19
|
+
GdsListItem = __decorateClass([
|
|
20
|
+
gdsCustomElement("gds-list-item")
|
|
21
|
+
], GdsListItem);
|
|
22
|
+
export {
|
|
23
|
+
GdsListItem
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GdsFlex } from '../flex/flex.component';
|
|
2
|
+
/**
|
|
3
|
+
* `gds-list` is a container for `gds-list-item` elements, expressing the semantic `list` role.
|
|
4
|
+
*
|
|
5
|
+
* It extends `gds-flex` and defaults `flex-direction` to `column`.
|
|
6
|
+
*
|
|
7
|
+
* @element gds-list
|
|
8
|
+
* @status beta
|
|
9
|
+
*
|
|
10
|
+
* @slot - Default slot for `gds-list-item` children.
|
|
11
|
+
*/
|
|
12
|
+
export declare class GdsList extends GdsFlex {
|
|
13
|
+
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
render(): any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__decorateClass
|
|
3
|
+
} from "../../chunks/chunk.CAV4X6PU.js";
|
|
4
|
+
import { gdsCustomElement, html } from "../../scoping.js";
|
|
5
|
+
import { tokens } from "../../tokens.style.js";
|
|
6
|
+
import { GdsFlex } from "../flex/flex.component.js";
|
|
7
|
+
import ListStyles from "./list.styles.js";
|
|
8
|
+
let GdsList = class extends GdsFlex {
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
super.connectedCallback();
|
|
11
|
+
this.setAttribute("role", "list");
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return html`<slot></slot>`;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
GdsList.styles = [tokens, ListStyles];
|
|
18
|
+
GdsList = __decorateClass([
|
|
19
|
+
gdsCustomElement("gds-list")
|
|
20
|
+
], GdsList);
|
|
21
|
+
export {
|
|
22
|
+
GdsList
|
|
23
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../../chunks/chunk.CAV4X6PU.js";
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
const style = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--gds-sys-space-m);
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
var list_styles_default = style;
|
|
11
|
+
export {
|
|
12
|
+
list_styles_default as default
|
|
13
|
+
};
|