@universal-material/web 3.6.22 → 3.6.23

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.
Files changed (37) hide show
  1. package/dist/css/universal-material.css +4109 -0
  2. package/dist/css/universal-material.min.css +4109 -0
  3. package/dist/custom-elements.json +25060 -0
  4. package/dist/package.json +139 -0
  5. package/dist/scss/_api.scss +2 -0
  6. package/dist/scss/_colors.scss +2 -0
  7. package/dist/scss/_css-vars.scss +53 -0
  8. package/dist/scss/_functions.scss +29 -0
  9. package/dist/scss/_global.scss +27 -0
  10. package/dist/scss/_layout.scss +5 -0
  11. package/dist/scss/_mixins.scss +3 -0
  12. package/dist/scss/_reboot.scss +498 -0
  13. package/dist/scss/_utilities.scss +4 -0
  14. package/dist/scss/_variables.scss +139 -0
  15. package/dist/scss/colors/_text-bg.scss +38 -0
  16. package/dist/scss/colors/_text.scss +52 -0
  17. package/dist/scss/functions/_font.scss +29 -0
  18. package/dist/scss/layout/_container.scss +14 -0
  19. package/dist/scss/layout/_grid.scss +12 -0
  20. package/dist/scss/layout/_margin-and-gutters.scss +37 -0
  21. package/dist/scss/mixins/_breakpoints.scss +71 -0
  22. package/dist/scss/mixins/_colors.scss +5 -0
  23. package/dist/scss/mixins/_text-bg.scss +34 -0
  24. package/dist/scss/mixins/_typo.scss +43 -0
  25. package/dist/scss/table/_table.scss +48 -0
  26. package/dist/scss/typo/_font.scss +5 -0
  27. package/dist/scss/typo/_typo.scss +19 -0
  28. package/dist/scss/typo/_variables.scss +19 -0
  29. package/dist/scss/universal-material.scss +16 -0
  30. package/dist/scss/utilities/_divider.scss +13 -0
  31. package/dist/scss/utilities/_scheme.scss +9 -0
  32. package/dist/scss/utilities/_spacing.scss +23 -0
  33. package/dist/scss/utilities/_text.scss +54 -0
  34. package/dist/vscode.html-custom-data.json +281 -281
  35. package/package.json +2 -2
  36. package/dist/config.js.map +0 -1
  37. package/dist/index.js.map +0 -1
@@ -0,0 +1,139 @@
1
+ {
2
+ "name": "@universal-material/web",
3
+ "version": "3.6.23",
4
+ "description": "Material web components",
5
+ "type": "module",
6
+ "keywords": [
7
+ "material",
8
+ "material design",
9
+ "design system",
10
+ "components",
11
+ "web-components",
12
+ "lit-element",
13
+ "typescript",
14
+ "lit"
15
+ ],
16
+ "main": "dist/index.js",
17
+ "module": "dist/esm/index.js",
18
+ "types": "dist/esm/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "import": "dist/esm/index.js",
22
+ "default": "dist/index.js"
23
+ }
24
+ },
25
+ "files": ["dist"],
26
+ "scripts": {
27
+ "build": "run-s clean script:sass-to-ts build:esm build:bundle sass analyze copy",
28
+ "build:watch": "gulp -f gulpfile.js scripts:watch",
29
+ "build:esm": "esbuild src/index.ts --bundle --format=esm --minify --outfile=dist/index.js",
30
+ "build:bundle": "tsc",
31
+ "script:build": "tsc",
32
+ "script:sass-to-ts": "gulp -f gulpfile.js scripts:sass-to-ts",
33
+ "script:sass-to-ts:watch": "gulp -f gulpfile.js scripts:sass-to-ts:watch",
34
+ "sass": "gulp -f gulpfile.js sass",
35
+ "sass:watch": "gulp -f gulpfile.js sass:watch",
36
+ "clean": "rimraf ./dist/ rimraf ./src/**/*.d.ts rimraf ./src/**/*.styles.ts",
37
+ "copy": "copyfiles package.json README.md custom-elements.json vscode.html-custom-data.json dist/ && copyfiles -u 1 src/scss/**/*.scss dist/",
38
+ "lint": "npm run lint:lit-analyzer && npm run lint:eslint && npm run lint:prettier",
39
+ "lint:eslint": "eslint src/**/*.ts",
40
+ "lint:eslint:fix": "eslint src/**/*.ts --fix",
41
+ "lint:lit-analyzer": "lit-analyzer",
42
+ "lint:prettier": "prettier . --check",
43
+ "predocs": "run-p analyze docs:apis script:sass-to-ts",
44
+ "docs": "run-p build:watch docs:serve",
45
+ "docs:apis": "gulp -f gulpfile.js docs:apis",
46
+ "docs:apis:watch": "gulp -f gulpfile.js docs:apis:watch",
47
+ "docs:serve": "cd docs && ng serve",
48
+ "docs:build": "npm run predocs && cd docs && ng build",
49
+ "docs:watch": "npm run predocs && cd docs && ng build --watch --configuration development",
50
+ "analyze": "cem analyze --litelement --globs \"src/**/*.ts\" && node fix-html-custom-data-union-types.js",
51
+ "analyze:watch": "cem analyze --litelement --globs \"src/**/*.ts\" --watch",
52
+ "checksize": "rollup -c ; cat my-element.bundled.js | gzip -9 | wc -c ; rm my-element.bundled.js",
53
+ "prettier": "prettier . --write",
54
+ "publish": "npm run lint:eslint && npm publish",
55
+ "postinstall": "node -e \"const fs=require('fs');fs.existsSync('./change-compiler-to-add-custom-elements.js')&&require('./change-compiler-to-add-custom-elements.js')\""
56
+ },
57
+ "author": "https://github.com/universal-material/universal-material/graphs/contributors",
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/universal-material/universal-material-web.git"
61
+ },
62
+ "license": "MIT",
63
+ "homepage": "https://universal-material.github.io",
64
+ "dependencies": {
65
+ "@bart-krakowski/get-week-info-polyfill": "^1.0.8",
66
+ "@lit-labs/virtualizer": "^2.1.1",
67
+ "@lit/context": "^1.1.5",
68
+ "@material/material-color-utilities": "^0.3.0",
69
+ "dompurify": "^3.2.6",
70
+ "lit": "^3.2.1",
71
+ "swiper": "^11.2.4"
72
+ },
73
+ "devDependencies": {
74
+ "@angular/build": "^20.0.4",
75
+ "@angular/cli": "^20.0.4",
76
+ "@angular/common": "^20.0.0",
77
+ "@angular/compiler": "^20.0.0",
78
+ "@angular/compiler-cli": "^20.0.0",
79
+ "@angular/core": "^20.0.0",
80
+ "@angular/elements": "^20.0.0",
81
+ "@angular/forms": "^20.0.0",
82
+ "@angular/platform-browser": "^20.0.0",
83
+ "@angular/router": "^20.0.0",
84
+ "@custom-elements-manifest/analyzer": "^0.10.4",
85
+ "@eslint/compat": "^1.2.7",
86
+ "@eslint/eslintrc": "^3.3.0",
87
+ "@eslint/js": "^9.21.0",
88
+ "@interactjs/types": "^1.10.27",
89
+ "@open-wc/testing": "^3.1.5",
90
+ "@rollup/plugin-node-resolve": "^15.2.3",
91
+ "@rollup/plugin-replace": "^5.0.5",
92
+ "@stylistic/eslint-plugin": "^3.1.0",
93
+ "@types/mocha": "^10.0.6",
94
+ "@typescript-eslint/eslint-plugin": "8.35.0",
95
+ "@typescript-eslint/parser": "8.35.0",
96
+ "@wc-toolkit/type-parser": "^1.1.0",
97
+ "@webcomponents/webcomponentsjs": "^2.8.0",
98
+ "angular-eslint": "^20.0.0",
99
+ "copyfiles": "^2.4.1",
100
+ "custom-element-vs-code-integration": "^1.5.0",
101
+ "eslint": "^9.21.0",
102
+ "eslint-plugin-import": "^2.31.0",
103
+ "eslint-plugin-import-helpers": "^2.0.1",
104
+ "eslint-plugin-jsdoc": "^50.6.3",
105
+ "eslint-plugin-prefer-arrow": "^1.2.3",
106
+ "eslint-plugin-unused-imports": "^4.1.4",
107
+ "gulp": "^4.0.2",
108
+ "gulp-changed": "^5.0.2",
109
+ "gulp-newer": "^1.4.0",
110
+ "gulp-notify": "^4.0.0",
111
+ "gulp-rename": "^2.1.0",
112
+ "gulp-sass": "^6.0.1",
113
+ "gulp-sourcemaps": "^3.0.0",
114
+ "gulp-typescript": "^5.0.1",
115
+ "highlight.js": "^11.11.1",
116
+ "html-entities": "^2.5.2",
117
+ "lit-analyzer": "^1.2.1",
118
+ "ngx-highlightjs": "^14.0.0",
119
+ "ngx-markdown": "^20.0.0",
120
+ "npm-run-all": "^4.1.5",
121
+ "prettier": "^3.6.2",
122
+ "prettier-plugin-organize-attributes": "^1.0.0",
123
+ "raw-loader": "^4.0.2",
124
+ "rimraf": "^3.0.2",
125
+ "rollup": "^2.73.0",
126
+ "rollup-plugin-summary": "^2.0.0",
127
+ "rollup-plugin-terser": "^7.0.2",
128
+ "rollup-plugin-typescript2": "^0.36.0",
129
+ "rxjs": "~7.8.0",
130
+ "sass": "^1.89.2",
131
+ "through2": "^4.0.2",
132
+ "ts-morph": "^22.0.0",
133
+ "tslib": "^2.6.2",
134
+ "typescript": "~5.8.2",
135
+ "typescript-eslint": "8.35.0",
136
+ "zone.js": "~0.15.0"
137
+ },
138
+ "customElements": "custom-elements.json"
139
+ }
@@ -0,0 +1,2 @@
1
+ @forward "mixins";
2
+ @forward "functions";
@@ -0,0 +1,2 @@
1
+ @use "colors/text-bg";
2
+ @use "colors/text";
@@ -0,0 +1,53 @@
1
+ @use "sass:map";
2
+
3
+ @use "variables";
4
+ @use "functions";
5
+ @use "mixins";
6
+
7
+ :root {
8
+ --u-state-layer-color: currentColor;
9
+ --u-state-layer-hover-opacity: 8%;
10
+ --u-state-layer-focus-opacity: 12%;
11
+ --u-state-layer-pressed-opacity: 12%;
12
+ --u-state-layer-dragged-opacity: 16%;
13
+
14
+ --u-high-emphasis-opacity: 100%;
15
+ --u-low-emphasis-opacity: 75%;
16
+ --u-lower-emphasis-opacity: 50%;
17
+
18
+ --u-color-body: #{functions.get-color-var(surface)};
19
+ --u-color-on-body: #{functions.get-color-var(on-surface)};
20
+
21
+ --u-font-family: #{variables.$font-family};
22
+ --u-font-monospace: #{variables.$font-mono};
23
+ --u-text-opacity: var(--u-high-emphasis-opacity);
24
+ --u-layout-margin: var(--u-layout-margin-default);
25
+ --u-layout-gutter: var(--u-layout-gutter-default);
26
+ --u-layout-margin-default: var(--u-spacing-medium);
27
+ --u-layout-gutter-default: var(--u-spacing-medium);
28
+
29
+
30
+ --u-color-high-emphasis: #{functions.get-color-transparency-mix(currentColor, var(--u-high-emphasis-opacity))} !important;
31
+ --u-color-low-emphasis: #{functions.get-color-transparency-mix(currentColor, var(--u-low-emphasis-opacity))} !important;
32
+ --u-color-lower-emphasis: #{functions.get-color-transparency-mix(currentColor, var(--u-lower-emphasis-opacity))} !important;
33
+
34
+ @each $name, $value in variables.$font-weights {
35
+ --u-font-weight-#{$name}: #{$value};
36
+ }
37
+
38
+ @each $name, $value in variables.$spacings {
39
+ --u-spacing-#{$name}: #{$value};
40
+ }
41
+
42
+ @each $name, $value in variables.$shape-corner {
43
+ --u-shape-corner-#{$name}: #{$value};
44
+ }
45
+ }
46
+
47
+ @include mixins.media-breakpoint-up(sm) {
48
+
49
+ :root {
50
+ --u-layout-margin-default: var(--u-spacing-large);
51
+ --u-layout-gutter-default: var(--u-spacing-large);
52
+ }
53
+ }
@@ -0,0 +1,29 @@
1
+ @use "sass:map";
2
+
3
+ @use "variables";
4
+
5
+ @forward "functions/font";
6
+
7
+ @function get-color-var($name) {
8
+ @return var(--u-color-#{$name}, map.get(variables.$colors, $name));
9
+ }
10
+
11
+ @function get-color-transparency-mix($color, $opacity) {
12
+ @return color-mix(in srgb, $color $opacity, transparent)
13
+ }
14
+
15
+ @function get-shape-corner-var($name) {
16
+ @return var(--u-shape-corner-#{$name}, map.get(variables.$shape-corner, $name));
17
+ }
18
+
19
+ @function get-spacing-var($name) {
20
+ @return var(--u-spacing-#{$name}, map.get(variables.$spacings, $name));
21
+ }
22
+
23
+ @function get-state-layer-opacity-var($name) {
24
+ @return var(--u-state-#{$name}-opacity, map.get(variables.$state-layer-opacity, $name));
25
+ }
26
+
27
+ @function hexToRgbString($hexColor) {
28
+ @return "#{red($hexColor)},#{green($hexColor)},#{blue($hexColor)}";
29
+ }
@@ -0,0 +1,27 @@
1
+ @use "functions";
2
+ @use "mixins/text-bg";
3
+
4
+ @mixin global-styles() {
5
+ :root {
6
+ color-scheme: light dark;
7
+ }
8
+
9
+ body {
10
+ @include text-bg.current-color-vars(--u-color-on-body);
11
+
12
+ background-color: var(--u-color-body);
13
+ color: var(--u-color-on-body);
14
+ }
15
+
16
+ a {
17
+ color: #{functions.get-color-transparency-mix(var(--u-color-primary), var(--u-high-emphasis-opacity))};
18
+ border-radius: #{functions.get-spacing-var(extra-small)};
19
+ text-decoration: none;
20
+
21
+ @media (hover: hover) {
22
+ &:hover {
23
+ text-decoration: underline;
24
+ }
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,5 @@
1
+ @use "api";
2
+
3
+ @use "layout/container";
4
+ @use "layout/grid";
5
+ @use "layout/margin-and-gutters";
@@ -0,0 +1,3 @@
1
+ @forward "mixins/breakpoints";
2
+ @forward "mixins/colors";
3
+ @forward "mixins/typo";