@greypan/web-ui 1.0.0 → 1.1.1
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/.turbo/turbo-build.log +38 -20
- package/.turbo/turbo-test.log +14 -34
- package/CHANGELOG.md +28 -0
- package/dist/components/back-top/index.js +24 -18
- package/dist/components/back-top/index.js.map +1 -1
- package/dist/components/back-top/style.js.map +1 -1
- package/dist/components/button/index.js +17 -12
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/button/style.js.map +1 -1
- package/dist/components/layout/index.js +11 -7
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/style.js.map +1 -1
- package/dist/components/svg-draw-lines/index.js +17 -10
- package/dist/components/svg-draw-lines/index.js.map +1 -1
- package/dist/components/svg-draw-lines/style.js.map +1 -1
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js +32 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/base.js +6 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/base.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js +10 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js +41 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query.js +31 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js +13 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js +229 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js.map +1 -0
- package/dist/node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js +33 -0
- package/dist/node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js.map +1 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.js +233 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.js.map +1 -0
- package/dist/node_modules/.pnpm/lit@3.3.3/node_modules/lit/decorators.js +5 -0
- package/dist/node_modules/.pnpm/lit@3.3.3/node_modules/lit/index.js +5 -0
- package/package.json +9 -7
- package/src/components/back-top/style.css +4 -0
- package/src/components/button/style.css +4 -0
- package/src/components/layout/style.css +5 -2
- package/src/components/svg-draw-lines/index.ts +1 -1
- package/src/components/svg-draw-lines/style.css +2 -0
- package/vite.config.ts +1 -1
- package/dist/packages/browser-kit/dist/dom/index.js +0 -8
- package/dist/packages/browser-kit/dist/dom/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greypan/web-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"sideEffects": [
|
|
11
11
|
"./dist/index.js",
|
|
12
12
|
"./dist/components/*/index.js",
|
|
13
|
-
"
|
|
13
|
+
"./dist/**/*.css"
|
|
14
14
|
],
|
|
15
15
|
"main": "./dist/index.js",
|
|
16
16
|
"module": "./dist/index.js",
|
|
@@ -34,18 +34,20 @@
|
|
|
34
34
|
"registry": "https://registry.npmjs.org/"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"iconify-icon": "^3.0.2",
|
|
38
|
+
"lit": "^3.3.3",
|
|
39
|
+
"@greypan/browser-kit": "1.2.1",
|
|
40
|
+
"@greypan/js-kit": "1.1.1"
|
|
39
41
|
},
|
|
40
|
-
"devDependencies": {},
|
|
41
|
-
"peerDependencies": {},
|
|
42
42
|
"browserslist": [
|
|
43
43
|
"defaults"
|
|
44
44
|
],
|
|
45
45
|
"scripts": {
|
|
46
|
-
"build": "
|
|
46
|
+
"build": "run-p type-check \"build-only {@}\" --",
|
|
47
|
+
"build-only": "vp build",
|
|
47
48
|
"preview": "vp preview",
|
|
48
49
|
"test": "vp test run",
|
|
50
|
+
"type-check": "vue-tsc --build",
|
|
49
51
|
"dev": "vp build --watch"
|
|
50
52
|
}
|
|
51
53
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
pointer-events: none;
|
|
3
|
+
|
|
3
4
|
position: fixed;
|
|
4
5
|
z-index: var(--web-ui-back-top-z-index, auto);
|
|
5
6
|
top: var(--web-ui-back-top-top, auto);
|
|
@@ -7,9 +8,12 @@
|
|
|
7
8
|
bottom: var(--web-ui-back-top-bottom, 20px);
|
|
8
9
|
left: var(--web-ui-back-top-left, auto);
|
|
9
10
|
transform: scale(0);
|
|
11
|
+
|
|
10
12
|
display: inline-block;
|
|
13
|
+
|
|
11
14
|
visibility: hidden;
|
|
12
15
|
opacity: 0;
|
|
16
|
+
|
|
13
17
|
transition: all 0.3s ease-out;
|
|
14
18
|
}
|
|
15
19
|
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
button {
|
|
3
3
|
cursor: pointer;
|
|
4
|
+
|
|
4
5
|
display: inline-flex;
|
|
5
6
|
gap: var(--web-ui-button-gap, 8px);
|
|
6
7
|
align-items: center;
|
|
7
8
|
justify-content: center;
|
|
9
|
+
|
|
8
10
|
width: max-content;
|
|
9
11
|
min-height: var(--web-ui-button-h, 32px);
|
|
10
12
|
padding: var(--web-ui-button-p-y, 4px) var(--web-ui-button-p-x, 16px);
|
|
11
13
|
border: none;
|
|
12
14
|
border-radius: 999vmax;
|
|
15
|
+
|
|
13
16
|
font-size: var(--web-ui-button-font-size, 14px);
|
|
14
17
|
font-weight: var(--web-ui-button-bold, 500);
|
|
15
18
|
color: var(--web-ui-button-color, #006cf9);
|
|
19
|
+
|
|
16
20
|
background: none;
|
|
17
21
|
background-color: var(--web-ui-button-bg, #f0f0f6);
|
|
18
22
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-areas:
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
'sidebar header'
|
|
5
|
+
'sidebar content';
|
|
6
6
|
grid-template-columns: var(--web-ui-base-layout-sidebar-width, 240px) 1fr;
|
|
7
7
|
grid-template-rows: var(--web-ui-base-layout-header-height, 64px) 1fr;
|
|
8
|
+
|
|
8
9
|
box-sizing: border-box;
|
|
9
10
|
min-height: 100dvh;
|
|
10
11
|
min-height: 100vh;
|
|
@@ -29,7 +30,9 @@ aside {
|
|
|
29
30
|
position: sticky;
|
|
30
31
|
top: 0;
|
|
31
32
|
left: 0;
|
|
33
|
+
|
|
32
34
|
grid-area: sidebar;
|
|
35
|
+
|
|
33
36
|
height: 100dvh;
|
|
34
37
|
height: 100vh;
|
|
35
38
|
padding: 8px;
|
|
@@ -7,7 +7,7 @@ import style from './style.css?inline'
|
|
|
7
7
|
export class WebUiSvgDrawLines extends LitElement {
|
|
8
8
|
static styles = unsafeCSS(style)
|
|
9
9
|
|
|
10
|
-
@property({ type:
|
|
10
|
+
@property({ type: Number, reflect: true }) duration = 1000
|
|
11
11
|
@property({ type: String, reflect: true }) easing = 'linear'
|
|
12
12
|
|
|
13
13
|
@state() private isAnimating = false
|
package/vite.config.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../browser-kit/dist/dom/index.js"],"sourcesContent":["//#region src/dom/index.ts\nfunction e() {\n\treturn window.scrollY ?? window.pageYOffset ?? document.documentElement.scrollTop;\n}\nfunction t() {\n\treturn window.scrollX ?? window.pageXOffset ?? document.documentElement.scrollLeft;\n}\n//#endregion\nexport { t as getRootScrollLeft, e as getRootScrollTop };\n\n//# sourceMappingURL=index.js.map"],"mappings":";AACA,SAAS,IAAI;CACZ,OAAO,OAAO,WAAW,OAAO,eAAe,SAAS,gBAAgB;AACzE"}
|