@triptease/tt-accordion 0.0.2 → 0.0.4
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/dist/cjs/src/styles.js
CHANGED
|
@@ -5,7 +5,7 @@ const lit_1 = require("lit");
|
|
|
5
5
|
exports.styles = (0, lit_1.css) `
|
|
6
6
|
:host {
|
|
7
7
|
display: block;
|
|
8
|
-
background-color: var(--color-surface-
|
|
8
|
+
background-color: var(--color-surface-200);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
button {
|
|
@@ -23,6 +23,10 @@ exports.styles = (0, lit_1.css) `
|
|
|
23
23
|
border-bottom: 1px solid var(--color-border-200);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
button:hover {
|
|
27
|
+
background-color: var(--color-surface-300);
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
button:focus-visible {
|
|
27
31
|
outline: 4px solid rgba(1, 150, 237, 0.24);
|
|
28
32
|
outline-offset: -2px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/styles.ts"],"names":[],"mappings":";;;AAAA,6BAA0B;AAEb,QAAA,MAAM,GAAG,IAAA,SAAG,EAAA
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/styles.ts"],"names":[],"mappings":";;;AAAA,6BAA0B;AAEb,QAAA,MAAM,GAAG,IAAA,SAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDxB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n background-color: var(--color-surface-200);\n }\n\n button {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n cursor: pointer;\n padding: var(--space-scale-2) var(--space-scale-3);\n font-size: var(--font-size-200);\n font-weight: var(--font-weight-semibold);\n color: var(--color-text-500);\n box-sizing: border-box;\n border-bottom: 1px solid var(--color-border-200);\n }\n\n button:hover {\n background-color: var(--color-surface-300);\n }\n\n button:focus-visible {\n outline: 4px solid rgba(1, 150, 237, 0.24);\n outline-offset: -2px;\n }\n\n .icon {\n transition: transform 200ms ease;\n flex-shrink: 0;\n color: var(--color-text-300);\n }\n\n :host([open]) .icon {\n transform: rotate(180deg);\n }\n\n .content {\n display: none;\n padding: var(--space-scale-2) var(--space-scale-3);\n font-size: var(--font-size-200);\n color: var(--color-text-400);\n }\n\n :host([open]) .content {\n display: block;\n }\n`;\n"]}
|
package/dist/esm/src/styles.js
CHANGED
|
@@ -2,7 +2,7 @@ import { css } from 'lit';
|
|
|
2
2
|
export const styles = css `
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
5
|
-
background-color: var(--color-surface-
|
|
5
|
+
background-color: var(--color-surface-200);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
button {
|
|
@@ -20,6 +20,10 @@ export const styles = css `
|
|
|
20
20
|
border-bottom: 1px solid var(--color-border-200);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
button:hover {
|
|
24
|
+
background-color: var(--color-surface-300);
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
button:focus-visible {
|
|
24
28
|
outline: 4px solid rgba(1, 150, 237, 0.24);
|
|
25
29
|
outline-offset: -2px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDxB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n background-color: var(--color-surface-200);\n }\n\n button {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n cursor: pointer;\n padding: var(--space-scale-2) var(--space-scale-3);\n font-size: var(--font-size-200);\n font-weight: var(--font-weight-semibold);\n color: var(--color-text-500);\n box-sizing: border-box;\n border-bottom: 1px solid var(--color-border-200);\n }\n\n button:hover {\n background-color: var(--color-surface-300);\n }\n\n button:focus-visible {\n outline: 4px solid rgba(1, 150, 237, 0.24);\n outline-offset: -2px;\n }\n\n .icon {\n transition: transform 200ms ease;\n flex-shrink: 0;\n color: var(--color-text-300);\n }\n\n :host([open]) .icon {\n transform: rotate(180deg);\n }\n\n .content {\n display: none;\n padding: var(--space-scale-2) var(--space-scale-3);\n font-size: var(--font-size-200);\n color: var(--color-text-400);\n }\n\n :host([open]) .content {\n display: block;\n }\n`;\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent tt-accordion following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "@triptease",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.4",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/esm/src/index.js",
|
|
9
9
|
"module": "dist/esm/src/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"test:watch": "vitest --config=./vitest.browser.config.mjs"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@triptease/icons": "1.
|
|
41
|
+
"@triptease/icons": "1.7.0",
|
|
42
42
|
"lit": "^3.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|