@vollowx/seele 0.12.5 → 0.12.7

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": "@vollowx/seele",
3
- "version": "0.12.5",
3
+ "version": "0.12.7",
4
4
  "description": "A extensible Web Components library, with Material Design 3 components pre-provided.",
5
5
  "author": "vollowx",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "files": [
16
16
  "src/**/*.js",
17
- "src/**/*.d.ts",
17
+ "src/m3/system/*.css",
18
18
  "custom-elements.json",
19
19
  "LICENSE",
20
20
  "README.md"
@@ -27,7 +27,7 @@
27
27
  "lit",
28
28
  "ui-components"
29
29
  ],
30
- "homepage": "https://seele.v9.nz",
30
+ "homepage": "https://seele.projects.v9.nz",
31
31
  "repository": {
32
32
  "type": "git",
33
33
  "url": "https://github.com/vollowx/seele.git"
@@ -38,31 +38,25 @@
38
38
  "build": "bun run build:styles && bun run build:compile",
39
39
  "build:compile": "bun scripts/build.ts",
40
40
  "build:styles": "bun scripts/build-styles.ts --minify",
41
- "cleanup": "bun run cleanup:compile && bun run cleanup:styles",
42
- "cleanup:compile": "bun scripts/cleanup.ts compile",
43
- "cleanup:styles": "bun scripts/cleanup.ts styles",
44
- "prepublishOnly": "bun cleanup && bun run build",
41
+ "clean": "./scripts/clean.sh",
42
+ "prepublishOnly": "bun clean && bun run build",
45
43
  "format": "prettier . --check",
46
- "format:fix": "prettier . --check --write",
47
- "format:sortcss": "bunx postcss \"src/**/*.css\" --replace --no-map",
48
- "cem": "bunx cem analyze --litelement --globs 'src/m3/*.ts' --exclude 'src/m3/*.css.ts'"
44
+ "format:write": "prettier . --check --write",
45
+ "cem": "cem analyze --litelement --globs './src/m3/**/*.ts' --exclude './src/**/*.css.ts'"
49
46
  },
50
47
  "devDependencies": {
51
48
  "@custom-elements-manifest/analyzer": "^0.11.0",
52
- "@swc/core": "^1.15.30",
53
- "@types/bun": "^1.3.13",
49
+ "@swc/core": "^1.15.40",
50
+ "@types/bun": "^1.3.14",
54
51
  "@web/dev-server": "^0.4.6",
55
52
  "@web/dev-server-esbuild": "^1.0.5",
56
53
  "chokidar": "^5.0.0",
57
54
  "lightningcss": "^1.32.0",
58
- "postcss": "^8.5.10",
59
- "postcss-cli": "^11.0.1",
60
- "postcss-sorting": "^9.1.0",
61
55
  "prettier": "^3.8.3"
62
56
  },
63
57
  "dependencies": {
64
58
  "@floating-ui/dom": "^1.7.6",
65
- "@swc/helpers": "^0.5.21",
66
- "lit": "^3.3.2"
59
+ "@swc/helpers": "^0.5.23",
60
+ "lit": "^3.3.3"
67
61
  }
68
62
  }
@@ -0,0 +1,3 @@
1
+ import { LitElement } from "lit";
2
+ export class TabGroup extends LitElement {
3
+ }
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
2
2
  import { html } from 'lit';
3
- import { customElement, property, query } from 'lit/decorators.js';
3
+ import { customElement, property } from 'lit/decorators.js';
4
4
  import { Checkbox } from '../../base/checkbox.js';
5
5
  import '../focus-ring/focus-ring.js';
6
6
  import { checkboxStyles } from './checkbox-styles.css.js';
@@ -29,14 +29,6 @@ export class M3Checkbox extends Checkbox {
29
29
  </svg>
30
30
  `;
31
31
  }
32
- connectedCallback() {
33
- super.connectedCallback();
34
- // TODO: Since Ripple is no longer rendered server-side, this might be unnecessary
35
- // SSR'd <md-checkbox> components don't have their labels set up on time
36
- this.updateComplete.then(()=>{
37
- this.$ripple.attach(this, true);
38
- });
39
- }
40
32
  constructor(...args){
41
33
  super(...args), this.error = false;
42
34
  }
@@ -47,9 +39,6 @@ _ts_decorate([
47
39
  reflect: true
48
40
  })
49
41
  ], M3Checkbox.prototype, "error", void 0);
50
- _ts_decorate([
51
- query('md-ripple')
52
- ], M3Checkbox.prototype, "$ripple", void 0);
53
42
  M3Checkbox = _ts_decorate([
54
43
  customElement('md-checkbox')
55
44
  ], M3Checkbox);
@@ -0,0 +1,3 @@
1
+ @import './elevation.css';
2
+ @import './motion.css';
3
+ @import './typography.css';
@@ -0,0 +1,15 @@
1
+ body {
2
+ accent-color: var(--md-sys-color-primary);
3
+ background-color: var(--md-sys-color-background);
4
+ color: var(--md-sys-color-on-background);
5
+ font-family: var(--md-sys-typography-family);
6
+ }
7
+
8
+ ::selection {
9
+ background-color: var(--md-sys-color-tertiary-container);
10
+ color: var(--md-sys-color-on-tertiary-container);
11
+ }
12
+
13
+ a {
14
+ color: var(--md-sys-color-primary);
15
+ }
@@ -0,0 +1,18 @@
1
+ :root {
2
+ --md-sys-elevation-level-0: 0;
3
+ --md-sys-elevation-level-1: 1;
4
+ --md-sys-elevation-level-2: 3;
5
+ --md-sys-elevation-level-3: 6;
6
+ --md-sys-elevation-level-4: 8;
7
+ --md-sys-elevation-level-5: 12;
8
+ --md-sys-elevation-shadow-1:
9
+ 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px rgba(0, 0, 0, 0.3);
10
+ --md-sys-elevation-shadow-2:
11
+ 0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px rgba(0, 0, 0, 0.3);
12
+ --md-sys-elevation-shadow-3:
13
+ 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);
14
+ --md-sys-elevation-shadow-4:
15
+ 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3);
16
+ --md-sys-elevation-shadow-5:
17
+ 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px rgba(0, 0, 0, 0.3);
18
+ }
@@ -0,0 +1,30 @@
1
+ :root {
2
+ /* std: standard, exp: expressive, mot: motion */
3
+ --md-sys-motion-exp-spatial-fast: cubic-bezier(0.42, 1.67, 0.21, 0.9);
4
+ --md-sys-motion-exp-spatial-fast-duration: 350ms;
5
+ --md-sys-motion-exp-spatial-default: cubic-bezier(0.38, 1.21, 0.22, 1);
6
+ --md-sys-motion-exp-spatial-default-duration: 500ms;
7
+ --md-sys-motion-exp-spatial-slow: cubic-bezier(0.39, 1.29, 0.35, 0.98);
8
+ --md-sys-motion-exp-spatial-slow-duration: 650ms;
9
+
10
+ --md-sys-motion-exp-effects-fast: cubic-bezier(0.31, 0.94, 0.34, 1);
11
+ --md-sys-motion-exp-effects-fast-duration: 150ms;
12
+ --md-sys-motion-exp-effects-default: cubic-bezier(0.34, 0.8, 0.34, 1);
13
+ --md-sys-motion-exp-effects-default-duration: 200ms;
14
+ --md-sys-motion-exp-effects-slow: cubic-bezier(0.34, 0.88, 0.34, 1);
15
+ --md-sys-motion-exp-effects-slow-duration: 300ms;
16
+
17
+ --md-sys-motion-std-spatial-fast: cubic-bezier(0.27, 1.06, 0.18, 1);
18
+ --md-sys-motion-std-spatial-fast-duration: 350ms;
19
+ --md-sys-motion-std-spatial-default: cubic-bezier(0.27, 1.06, 0.18, 1);
20
+ --md-sys-motion-std-spatial-default-duration: 500ms;
21
+ --md-sys-motion-std-spatial-slow: cubic-bezier(0.27, 1.06, 0.18, 1);
22
+ --md-sys-motion-std-spatial-slow-duration: 750ms;
23
+
24
+ --md-sys-motion-std-effects-fast: cubic-bezier(0.31, 0.94, 0.34, 1);
25
+ --md-sys-motion-std-effects-fast-duration: 150ms;
26
+ --md-sys-motion-std-effects-default: cubic-bezier(0.34, 0.8, 0.34, 1);
27
+ --md-sys-motion-std-effects-default-duration: 200ms;
28
+ --md-sys-motion-std-effects-slow: cubic-bezier(0.34, 0.88, 0.34, 1);
29
+ --md-sys-motion-std-effects-slow-duration: 300ms;
30
+ }
@@ -0,0 +1,34 @@
1
+ :root {
2
+ --md-sys-typography-family: sans-serif;
3
+
4
+ --md-sys-typography-display-large: 400 3.5625rem / 4rem
5
+ var(--md-sys-typography-family);
6
+ --md-sys-typography-display-medium: 400 2.8125rem / 3.5rem
7
+ var(--md-sys-typography-family);
8
+ --md-sys-typography-display-small: 400 2.25rem / 3rem
9
+ var(--md-sys-typography-family);
10
+ --md-sys-typography-headline-large: 400 2.5rem / 3.125rem
11
+ var(--md-sys-typography-family);
12
+ --md-sys-typography-headline-medium: 400 2.25rem / 2.75rem
13
+ var(--md-sys-typography-family);
14
+ --md-sys-typography-headline-small: 400 2rem / 2.5rem
15
+ var(--md-sys-typography-family);
16
+ --md-sys-typography-title-large: 400 1.375rem / 1.75rem
17
+ var(--md-sys-typography-family);
18
+ --md-sys-typography-title-medium: 500 1rem / 1.25rem
19
+ var(--md-sys-typography-family);
20
+ --md-sys-typography-title-small: 500 0.875rem / 1.125rem
21
+ var(--md-sys-typography-family);
22
+ --md-sys-typography-label-large: 500 0.875rem / 1.25rem
23
+ var(--md-sys-typography-family);
24
+ --md-sys-typography-label-medium: 500 0.75rem / 1rem
25
+ var(--md-sys-typography-family);
26
+ --md-sys-typography-label-small: 500 0.6875rem / 0.875rem
27
+ var(--md-sys-typography-family);
28
+ --md-sys-typography-body-large: 400 1rem / 1.5rem
29
+ var(--md-sys-typography-family);
30
+ --md-sys-typography-body-medium: 400 0.875rem / 1.25rem
31
+ var(--md-sys-typography-family);
32
+ --md-sys-typography-body-small: 400 0.75rem / 1rem
33
+ var(--md-sys-typography-family);
34
+ }
@@ -1,5 +1,5 @@
1
1
  import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
2
- import { customElement } from 'lit/decorators.js';
2
+ import { customElement } from '../../core/decorators.js';
3
3
  import { Tooltip } from '../../base/tooltip.js';
4
4
  import { tooltipStyles } from './tooltip-styles.css.js';
5
5
  export class M3Tooltip extends Tooltip {
@@ -16,5 +16,5 @@ export class M3Tooltip extends Tooltip {
16
16
  }
17
17
  }
18
18
  M3Tooltip = _ts_decorate([
19
- customElement('md-tooltip')
19
+ customElement('md-tooltip', false)
20
20
  ], M3Tooltip);
@@ -1 +0,0 @@
1
- type Constructor<T> = new (...args: any[]) => T;