@fluid-topics/ftds-event-card 2.2.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.
@@ -0,0 +1,9 @@
1
+ import { FtCssVariable } from "@fluid-topics/ft-wc-utils";
2
+ import { FtdsIcons, FtdsIconVariants } from "@fluid-topics/ftds-icon";
3
+ export interface FtdsEventCardProperties {
4
+ color?: string | FtCssVariable;
5
+ icon?: FtdsIcons;
6
+ iconVariant?: FtdsIconVariants;
7
+ primary?: boolean;
8
+ secondary?: boolean;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare const FtdsEventCardCssVariables: {
2
+ borderRadius: import("@fluid-topics/design-system-variables").FtCssVariable;
3
+ borderWidth: import("@fluid-topics/design-system-variables").FtCssVariable;
4
+ backgroundColor: import("@fluid-topics/design-system-variables").FtCssVariable;
5
+ thumbnailWidth: import("@fluid-topics/design-system-variables").FtCssVariable;
6
+ thumbnailIconSize: import("@fluid-topics/design-system-variables").FtCssVariable;
7
+ slotHorizontalPadding: import("@fluid-topics/design-system-variables").FtCssVariable;
8
+ slotVerticalPadding: import("@fluid-topics/design-system-variables").FtCssVariable;
9
+ primaryThumbnailIconColor: import("@fluid-topics/design-system-variables").FtCssVariable;
10
+ secondaryThumbnailBackgroundColor: import("@fluid-topics/design-system-variables").FtCssVariable;
11
+ };
12
+ export declare const ftdsEventCardStyles: import("lit").CSSResult;
@@ -0,0 +1,40 @@
1
+ import { css } from "lit";
2
+ import { eventCard } from "@fluid-topics/ft-wc-utils";
3
+ import { FtdsIconCssVariables } from "@fluid-topics/ftds-icon";
4
+ export const FtdsEventCardCssVariables = {
5
+ ...eventCard,
6
+ };
7
+ // language=CSS
8
+ export const ftdsEventCardStyles = css `
9
+ .container {
10
+ display: grid;
11
+ grid-template-columns: ${eventCard.thumbnailWidth} 1fr;
12
+ border: ${eventCard.borderWidth} solid ${eventCard.backgroundColor};
13
+ border-radius: ${eventCard.borderRadius};
14
+ }
15
+
16
+ .icon {
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+
21
+ ftds-icon {
22
+ ${FtdsIconCssVariables.size.set(eventCard.thumbnailIconSize)};
23
+ }
24
+ }
25
+
26
+ .icon.primary {
27
+ background-color: ${eventCard.backgroundColor};
28
+ color: ${eventCard.primaryThumbnailIconColor};
29
+ }
30
+
31
+ .icon.secondary {
32
+ background-color: ${eventCard.secondaryThumbnailBackgroundColor};
33
+ color: ${eventCard.backgroundColor};
34
+ border-radius: ${eventCard.borderRadius} 0 0 ${eventCard.borderRadius};
35
+ }
36
+
37
+ .content {
38
+ padding: ${eventCard.slotVerticalPadding} ${eventCard.slotHorizontalPadding};
39
+ }
40
+ `;
@@ -0,0 +1,9 @@
1
+ export * from "./ftds-event-card.styles";
2
+ export * from "./ftds-event-card.properties";
3
+ export * from "./ftds-event-card";
4
+ export * from "./ftds-event-card-group.styles";
5
+ export * from "./ftds-event-card-group.properties";
6
+ export * from "./ftds-event-card-group";
7
+ export * from "./ftds-event-card-trace-content.styles";
8
+ export * from "./ftds-event-card-trace-content.properties";
9
+ export * from "./ftds-event-card-trace-content";
package/build/index.js ADDED
@@ -0,0 +1,9 @@
1
+ export * from "./ftds-event-card.styles";
2
+ export * from "./ftds-event-card.properties";
3
+ export * from "./ftds-event-card";
4
+ export * from "./ftds-event-card-group.styles";
5
+ export * from "./ftds-event-card-group.properties";
6
+ export * from "./ftds-event-card-group";
7
+ export * from "./ftds-event-card-trace-content.styles";
8
+ export * from "./ftds-event-card-trace-content.properties";
9
+ export * from "./ftds-event-card-trace-content";
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@fluid-topics/ftds-event-card",
3
+ "version": "2.2.2",
4
+ "description": "The DS component for displaying an event card.\n",
5
+ "keywords": [
6
+ "Lit"
7
+ ],
8
+ "author": "Fluid Topics <devtopics@antidot.net>",
9
+ "license": "ISC",
10
+ "main": "build/index.js",
11
+ "web": "build/ftds-event-card.min.js",
12
+ "typings": "build/index",
13
+ "files": [
14
+ "build/**/*.js",
15
+ "build/**/*.ts"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
+ },
21
+ "dependencies": {
22
+ "@fluid-topics/ft-wc-utils": "2.2.2",
23
+ "@fluid-topics/ftds-chip": "2.2.2",
24
+ "@fluid-topics/ftds-collapsible": "2.2.2",
25
+ "@fluid-topics/ftds-icon": "2.2.2",
26
+ "@fluid-topics/ftds-link": "2.2.2",
27
+ "@fluid-topics/ftds-typography": "2.2.2",
28
+ "lit": "3.3.3"
29
+ },
30
+ "devDependencies": {
31
+ "@fluid-topics/ft-wc-test-utils": "2.2.2"
32
+ },
33
+ "gitHead": "b4be5c398b242bdc7d902866c353cf92cc1f72c7"
34
+ }