@blockquote-web-components/blockquote-tabs 1.5.7 → 1.5.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote-web-components/blockquote-tabs",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
4
4
|
"description": "Webcomponent blockquote-tabs following open-wc recommendations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit",
|
|
@@ -62,29 +62,26 @@
|
|
|
62
62
|
"dev:vite": "vite build",
|
|
63
63
|
"format": "npm run format:eslint && npm run format:prettier && npm run format:stylelint",
|
|
64
64
|
"format:eslint": "eslint . --fix",
|
|
65
|
-
"format:prettier": "prettier \"**/*.{js,ts,
|
|
66
|
-
"format:stylelint": "stylelint \"
|
|
65
|
+
"format:prettier": "prettier \"**/*.{js,ts,css,scss,html,json}\" --write --ignore-path .prettierignore",
|
|
66
|
+
"format:stylelint": "stylelint \"{demo,src}/**/*.{js,ts,css,scss,html}\" --fix --ignore-path .prettierignore",
|
|
67
67
|
"postinstall": "npm run sort:package",
|
|
68
|
-
"lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:stylelint",
|
|
69
|
-
"lint:eslint": "eslint .",
|
|
70
|
-
"lint:prettier": "prettier \"**/*.{js,ts,json,html}\" --check --ignore-path .prettierignore",
|
|
71
|
-
"lint:stylelint": "stylelint \"**/*.{scss,css}\" --allow-empty-input --ignore-path .prettierignore",
|
|
72
68
|
"preview:vite": "vite preview",
|
|
73
69
|
"sass:watch": "sass-style-template",
|
|
74
70
|
"sort:package": "npx sort-package-json",
|
|
75
|
-
"start": "concurrently -k -r \"npm:
|
|
71
|
+
"start": "concurrently -k -r \"npm:vite\" \"npm:sass:watch\"",
|
|
76
72
|
"test": "vitest --run --browser.headless",
|
|
77
73
|
"test:watch": "vitest",
|
|
78
74
|
"vite": "vite"
|
|
79
75
|
},
|
|
80
76
|
"lint-staged": {
|
|
81
77
|
"**/*.{js,ts,html}": [
|
|
82
|
-
"npm run format
|
|
78
|
+
"npm run format"
|
|
83
79
|
],
|
|
84
|
-
"**/*.
|
|
80
|
+
"**/*.json": [
|
|
85
81
|
"npm run format:prettier"
|
|
86
82
|
],
|
|
87
83
|
"**/*.{scss,css}": [
|
|
84
|
+
"npm run format:prettier",
|
|
88
85
|
"npm run format:stylelint"
|
|
89
86
|
]
|
|
90
87
|
},
|
|
@@ -99,35 +96,61 @@
|
|
|
99
96
|
{
|
|
100
97
|
"files": "*.{scss,css}",
|
|
101
98
|
"options": {
|
|
102
|
-
"printWidth": 280,
|
|
103
99
|
"singleQuote": false
|
|
104
100
|
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"files": "*.json",
|
|
104
|
+
"options": {
|
|
105
|
+
"parser": "json-stringify"
|
|
106
|
+
}
|
|
105
107
|
}
|
|
106
108
|
]
|
|
107
109
|
},
|
|
108
110
|
"stylelint": {
|
|
109
111
|
"extends": "stylelint-config-standard-scss",
|
|
112
|
+
"allowEmptyInput": true,
|
|
110
113
|
"rules": {
|
|
111
114
|
"custom-property-pattern": null,
|
|
112
115
|
"no-duplicate-selectors": null,
|
|
113
116
|
"color-function-notation": null,
|
|
114
|
-
"alpha-value-notation": null
|
|
115
|
-
|
|
117
|
+
"alpha-value-notation": null,
|
|
118
|
+
"media-feature-name-no-unknown": null,
|
|
119
|
+
"comment-empty-line-before": null,
|
|
120
|
+
"declaration-empty-line-before": null,
|
|
121
|
+
"property-no-vendor-prefix": null,
|
|
122
|
+
"selector-attribute-quotes": null,
|
|
123
|
+
"value-no-vendor-prefix": null
|
|
124
|
+
},
|
|
125
|
+
"overrides": [
|
|
126
|
+
{
|
|
127
|
+
"files": [
|
|
128
|
+
"**/*.html"
|
|
129
|
+
],
|
|
130
|
+
"customSyntax": "postcss-html"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"files": [
|
|
134
|
+
"**/*.{ts,js}"
|
|
135
|
+
],
|
|
136
|
+
"customSyntax": "postcss-lit"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
116
139
|
},
|
|
117
140
|
"dependencies": {
|
|
118
|
-
"@blockquote-web-components/blockquote-mixin-slot-content": "^1.8.
|
|
141
|
+
"@blockquote-web-components/blockquote-mixin-slot-content": "^1.8.8",
|
|
119
142
|
"@juggle/resize-observer": "^3.4.0",
|
|
120
143
|
"@lit-labs/observers": "^2.0.4",
|
|
121
144
|
"lit": "^3.2.1"
|
|
122
145
|
},
|
|
123
146
|
"devDependencies": {
|
|
124
|
-
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.11.
|
|
125
|
-
"@blockquote-web-components/blockquote-base-embedded-webview": "^1.12.
|
|
126
|
-
"@blockquote-web-components/blockquote-foundations-sass": "^1.1.
|
|
147
|
+
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.11.1",
|
|
148
|
+
"@blockquote-web-components/blockquote-base-embedded-webview": "^1.12.8",
|
|
149
|
+
"@blockquote-web-components/blockquote-foundations-sass": "^1.1.6"
|
|
127
150
|
},
|
|
128
151
|
"publishConfig": {
|
|
129
152
|
"access": "public"
|
|
130
153
|
},
|
|
131
154
|
"customElements": "custom-elements.json",
|
|
132
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "6be5182ac44e3e4c3b924f6b5ef5533e7b80790c"
|
|
133
156
|
}
|
|
@@ -1,80 +1,97 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {css} from 'lit';
|
|
2
2
|
|
|
3
|
-
export const styles = css
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
export const styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
--_unselected-color: var(--blockquote-tabs-unselected-color, rgb(234 234 234));
|
|
6
|
+
--_scroll-gradient-start-color: var(
|
|
7
|
+
--blockquote-tabs-scroll-gradient-start-color,
|
|
8
|
+
rgba(255, 255, 255, 0)
|
|
9
|
+
);
|
|
10
|
+
--_scroll-gradient-end-color: var(
|
|
11
|
+
--blockquote-tabs-scroll-gradient-end-color,
|
|
12
|
+
rgba(252, 252, 252, 1)
|
|
13
|
+
);
|
|
14
|
+
--_scroll-arrow-color: var(--blockquote-tabs-scroll-arrow-color, rgb(94, 94, 94));
|
|
15
|
+
contain: content;
|
|
16
|
+
display: block;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
color: #202020;
|
|
19
|
+
}
|
|
13
20
|
|
|
14
|
-
:host([hidden]),
|
|
15
|
-
[hidden] {
|
|
16
|
-
|
|
17
|
-
}
|
|
21
|
+
:host([hidden]),
|
|
22
|
+
[hidden] {
|
|
23
|
+
display: none !important;
|
|
24
|
+
}
|
|
18
25
|
|
|
19
|
-
*,
|
|
20
|
-
*::before,
|
|
21
|
-
*::after {
|
|
22
|
-
|
|
23
|
-
}
|
|
26
|
+
*,
|
|
27
|
+
*::before,
|
|
28
|
+
*::after {
|
|
29
|
+
box-sizing: inherit;
|
|
30
|
+
}
|
|
24
31
|
|
|
25
|
-
.hold {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
.hold .separator {
|
|
30
|
-
position: absolute;
|
|
31
|
-
z-index: -1;
|
|
32
|
-
bottom: 0;
|
|
33
|
-
height: 1px;
|
|
34
|
-
left: 0;
|
|
35
|
-
right: 0;
|
|
36
|
-
background-color: var(--_unselected-color);
|
|
37
|
-
}
|
|
38
|
-
.hold .indicator {
|
|
39
|
-
position: absolute;
|
|
40
|
-
width: 1rem;
|
|
41
|
-
pointer-events: none;
|
|
42
|
-
top: 0;
|
|
43
|
-
bottom: 1px;
|
|
44
|
-
left: 0;
|
|
45
|
-
box-shadow: rgb(255, 255, 255) 4px 0 12px 4px inset, rgb(210, 210, 210) 4px 0 4px -4px;
|
|
46
|
-
background-color: rgba(234, 234, 234, 0.5);
|
|
47
|
-
transition: opacity 92ms ease-in-out;
|
|
48
|
-
opacity: 0;
|
|
49
|
-
background-clip: padding-box;
|
|
50
|
-
}
|
|
51
|
-
.hold .indicator.show-indicator {
|
|
52
|
-
opacity: 1;
|
|
53
|
-
}
|
|
54
|
-
.hold .indicator + .indicator {
|
|
55
|
-
left: auto;
|
|
56
|
-
right: 0;
|
|
57
|
-
transform: scale(-1);
|
|
58
|
-
}
|
|
32
|
+
.hold {
|
|
33
|
+
position: relative;
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
59
36
|
|
|
60
|
-
.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
.scroll-content:focus-visible {
|
|
71
|
-
outline: #9e9e9e dashed 0.0625rem;
|
|
72
|
-
outline-offset: -2px;
|
|
73
|
-
}
|
|
74
|
-
.scroll-content:focus:not(:focus-visible) {
|
|
75
|
-
outline: none;
|
|
76
|
-
}
|
|
37
|
+
.hold .separator {
|
|
38
|
+
position: absolute;
|
|
39
|
+
z-index: -1;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
height: 1px;
|
|
42
|
+
left: 0;
|
|
43
|
+
right: 0;
|
|
44
|
+
background-color: var(--_unselected-color);
|
|
45
|
+
}
|
|
77
46
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
47
|
+
.hold .indicator {
|
|
48
|
+
position: absolute;
|
|
49
|
+
width: 1rem;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
top: 0;
|
|
52
|
+
bottom: 1px;
|
|
53
|
+
left: 0;
|
|
54
|
+
box-shadow:
|
|
55
|
+
rgb(255, 255, 255) 4px 0 12px 4px inset,
|
|
56
|
+
rgb(210, 210, 210) 4px 0 4px -4px;
|
|
57
|
+
background-color: rgba(234, 234, 234, 0.5);
|
|
58
|
+
transition: opacity 92ms ease-in-out;
|
|
59
|
+
opacity: 0;
|
|
60
|
+
background-clip: padding-box;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.hold .indicator.show-indicator {
|
|
64
|
+
opacity: 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.hold .indicator + .indicator {
|
|
68
|
+
left: auto;
|
|
69
|
+
right: 0;
|
|
70
|
+
transform: scale(-1);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.scroll-content {
|
|
74
|
+
width: 100%;
|
|
75
|
+
overflow: auto hidden;
|
|
76
|
+
-webkit-overflow-scrolling: touch;
|
|
77
|
+
scrollbar-width: none;
|
|
78
|
+
overscroll-behavior: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.scroll-content::-webkit-scrollbar {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.scroll-content:focus-visible {
|
|
86
|
+
outline: #9e9e9e dashed 0.0625rem;
|
|
87
|
+
outline-offset: -2px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.scroll-content:focus:not(:focus-visible) {
|
|
91
|
+
outline: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[role='tablist'] {
|
|
95
|
+
display: flex;
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
@@ -1,54 +1,71 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {css} from 'lit';
|
|
2
2
|
|
|
3
|
-
export const styles = css
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
export const styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
--__color: var(
|
|
6
|
+
--blockquote-tab-color-dark-mode,
|
|
7
|
+
var(--blockquote-tab-color-ambient, var(--theme-colors-secondary500, rgb(32, 32, 32)))
|
|
8
|
+
);
|
|
9
|
+
--_color: var(--blockquote-tab-color, var(--__color));
|
|
10
|
+
--_selected-border-color: var(
|
|
11
|
+
--blockquote-tab-selected-border-color,
|
|
12
|
+
var(
|
|
13
|
+
--blockquote-tab-selected-border-color-ambient,
|
|
14
|
+
var(--theme-colors-secondary500, rgb(184, 184, 184))
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
--_focus-outline-color: var(
|
|
18
|
+
--blockquote-tab-focus-outline-color,
|
|
19
|
+
var(
|
|
20
|
+
--blockquote-tab-focus-outline-color-ambient,
|
|
21
|
+
var(--theme-colors-secondary500, rgb(184, 184, 184))
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
color: var(--_color);
|
|
29
|
+
padding: 1em 0.5em;
|
|
30
|
+
min-width: 6.25rem;
|
|
31
|
+
border-bottom: 0.0625rem solid transparent;
|
|
32
|
+
transition: border-bottom-color 192ms ease-in-out;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
19
35
|
|
|
20
|
-
:host([hidden]),
|
|
21
|
-
[hidden] {
|
|
22
|
-
|
|
23
|
-
}
|
|
36
|
+
:host([hidden]),
|
|
37
|
+
[hidden] {
|
|
38
|
+
display: none !important;
|
|
39
|
+
}
|
|
24
40
|
|
|
25
|
-
*,
|
|
26
|
-
*::before,
|
|
27
|
-
*::after {
|
|
28
|
-
|
|
29
|
-
}
|
|
41
|
+
*,
|
|
42
|
+
*::before,
|
|
43
|
+
*::after {
|
|
44
|
+
box-sizing: inherit;
|
|
45
|
+
}
|
|
30
46
|
|
|
31
|
-
:host([aria-selected=true]) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
47
|
+
:host([aria-selected='true']) {
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
border-bottom-color: var(--_selected-border-color);
|
|
50
|
+
}
|
|
35
51
|
|
|
36
|
-
:host(:focus:not(:focus-visible)) {
|
|
37
|
-
|
|
38
|
-
}
|
|
52
|
+
:host(:focus:not(:focus-visible)) {
|
|
53
|
+
outline: none;
|
|
54
|
+
}
|
|
39
55
|
|
|
40
|
-
:host(:focus-visible) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
56
|
+
:host(:focus-visible) {
|
|
57
|
+
outline: 0.0625rem dashed var(--_focus-outline-color);
|
|
58
|
+
outline-offset: -0.125rem;
|
|
59
|
+
}
|
|
44
60
|
|
|
45
|
-
slot::before {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
61
|
+
slot::before {
|
|
62
|
+
content: attr(data-text);
|
|
63
|
+
display: block;
|
|
64
|
+
font: inherit;
|
|
65
|
+
font-weight: 700;
|
|
66
|
+
width: inherit;
|
|
67
|
+
height: 0;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
visibility: hidden;
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {css} from 'lit';
|
|
2
2
|
|
|
3
|
-
export const styles = css
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export const styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
padding: 1rem;
|
|
8
|
+
color: var(--tabpanel, inherit);
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
:host([hidden]),
|
|
11
|
-
[hidden] {
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
:host([hidden]),
|
|
12
|
+
[hidden] {
|
|
13
|
+
display: none !important;
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
*,
|
|
16
|
-
*::before,
|
|
17
|
-
*::after {
|
|
18
|
-
|
|
19
|
-
}
|
|
16
|
+
*,
|
|
17
|
+
*::before,
|
|
18
|
+
*::after {
|
|
19
|
+
box-sizing: inherit;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
:host([aria-hidden=true]) {
|
|
22
|
-
|
|
23
|
-
}
|
|
22
|
+
:host([aria-hidden='true']) {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
:host(:focus:not(:focus-visible)) {
|
|
26
|
-
|
|
27
|
-
}
|
|
26
|
+
:host(:focus:not(:focus-visible)) {
|
|
27
|
+
outline: none;
|
|
28
|
+
}
|
|
28
29
|
|
|
29
|
-
:host(:focus-visible) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
30
|
+
:host(:focus-visible) {
|
|
31
|
+
outline: #9e9e9e dashed 0.0625rem;
|
|
32
|
+
outline-offset: -2px;
|
|
33
|
+
}
|
|
34
|
+
`;
|