@ldmjs/ui 1.0.0-dev-5 → 1.0.0-dev-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.
@@ -0,0 +1,68 @@
1
+ body {
2
+ .v-chip {
3
+ .v-chip__close .v-icon {
4
+ font-size: 16px !important;
5
+ }
6
+ .v-chip__content {
7
+ overflow: hidden;
8
+ text-overflow: ellipsis;
9
+ display: flex;
10
+ height: 100%;
11
+
12
+ svg {
13
+ flex-shrink: 0;
14
+ }
15
+ }
16
+ }
17
+ .v-chip.v-chip--density-compact {
18
+ height: var(--chip-height);
19
+
20
+ &.text-grey {
21
+ border: 1px solid var(--grey);
22
+ color: var(--grey) !important;
23
+ .v-icon {
24
+ color: var(--grey) !important;
25
+ }
26
+ svg {
27
+ color: var(--grey) !important;
28
+ }
29
+ }
30
+ &.text-primary {
31
+ border: 1px solid var(--primary-l-2);
32
+ color: var(--primary-l-2) !important;
33
+ .v-icon {
34
+ color: var(--primary-l-2) !important;
35
+ }
36
+ svg {
37
+ color: var(--primary-l-2) !important;
38
+ }
39
+
40
+ &.--active {
41
+ background-color: var(--primary-l-2) !important;
42
+ color: var(--white) !important;
43
+ }
44
+ }
45
+
46
+ &.v-chip--badge {
47
+ border-radius: 0 !important;
48
+ }
49
+ }
50
+
51
+ .v-chip--variant-tonal {
52
+ background-color: var(--primary-l-2);
53
+ color: var(--white);
54
+ .v-chip__underlay {
55
+ display: none;
56
+ }
57
+ .v-chip__close {
58
+ opacity: 0.6;
59
+ }
60
+ }
61
+
62
+ .v-chip.small-chip {
63
+ font-size: var(--font-size);
64
+ }
65
+ .v-chip.v-chip--badge {
66
+ font-size: var(--font-size);
67
+ }
68
+ }
@@ -1,9 +1,11 @@
1
1
  $font-size: 12px !default; // основной шрифт приложения
2
2
  $input-height: 28px !default; // высота атомарного элемента ui (button, input)
3
3
  $border-radius: 4px !default; // радиус скругления атомарного элемента ui
4
+ $chip-height: 20px !default; // высота элемента chip
4
5
 
5
6
  :root {
6
7
  --font-size: #{$font-size};
7
8
  --input-height: #{$input-height};
8
9
  --border-radius: #{$border-radius};
10
+ --chip-height: #{$chip-height};
9
11
  }
@@ -1,3 +1,4 @@
1
1
  @import 'colors';
2
2
  @import 'variables';
3
3
  @import 'buttons';
4
+ @import 'chip';
@@ -0,0 +1,20 @@
1
+ export interface ldmuiOptions {
2
+ aliases?: {
3
+ 'ld-button'?: string;
4
+ 'ld-icon'?: string;
5
+ 'ld-splitter'?: string;
6
+ 'ld-loader'?: string;
7
+ 'ld-toggle-buttons'?: string;
8
+ },
9
+ LdIcon?: {
10
+ path: string;
11
+ map: {
12
+ icons: Array<[string, string]>;
13
+ }
14
+ },
15
+ LdBtn?: {
16
+ isMobile: string;
17
+ isTablet: string;
18
+ isDesktop: string;
19
+ }
20
+ }
package/package.json CHANGED
@@ -1,60 +1,65 @@
1
- {
2
- "name": "@ldmjs/ui",
3
- "version": "1.0.0-dev-5",
4
- "description": "ldm ui",
5
- "main": "dist/index.js",
6
- "engines": {
7
- "node": ">=16",
8
- "npm": ">=8"
9
- },
10
- "scripts": {
11
- "dev": "webpack serve --config config/webpack.config.dev.js --progress --profile",
12
- "build": "webpack --config config/webpack.config.build.js --stats-error-details"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/ldmjs/ui.git"
17
- },
18
- "keywords": [
19
- "ldm",
20
- "ui"
21
- ],
22
- "author": "ldmjs <nevezhin@lanit.ru>",
23
- "license": "MIT",
24
- "bugs": {
25
- "url": "https://github.com/ldmjs/ui/issues"
26
- },
27
- "homepage": "https://github.com/ldmjs/ui#readme",
28
- "files": [
29
- "dist/"
30
- ],
31
- "devDependencies": {
32
- "@types/eslint": "^8",
33
- "@typescript-eslint/eslint-plugin": "5.41.0",
34
- "@typescript-eslint/parser": "5.41.0",
35
- "copy-webpack-plugin": "^12.0.2",
36
- "css-loader": "6.8.1",
37
- "eslint": "8.56.0",
38
- "html-webpack-plugin": "5.6.0",
39
- "node-sass": "9.0.0",
40
- "postcss-loader": "7.3.3",
41
- "sass": "1.69.5",
42
- "sass-loader": "13.3.2",
43
- "style-loader": "3.3.3",
44
- "terser-webpack-plugin": "5.3.10",
45
- "ts-loader": "9.5.1",
46
- "typescript": "4.9.5",
47
- "vue": "3.4.21",
48
- "vue-class-component": "8.0.0-rc.1",
49
- "vue-loader": "17.3.1",
50
- "vue-property-decorator": "10.0.0-rc.3",
51
- "vuetify": "3.5.9",
52
- "webpack": "5.90.2",
53
- "webpack-cli": "5.1.4",
54
- "webpack-dev-server": "4.15.1",
55
- "webpack-plugin-vuetify": "2.0.1"
56
- },
57
- "volta": {
58
- "node": "16.20.0"
59
- }
60
- }
1
+ {
2
+ "name": "@ldmjs/ui",
3
+ "version": "1.0.0-dev-7",
4
+ "description": "ldm ui",
5
+ "main": "dist/index.js",
6
+ "engines": {
7
+ "node": ">=16",
8
+ "npm": ">=8"
9
+ },
10
+ "scripts": {
11
+ "dev": "webpack serve --config config/webpack.config.dev.js --progress --profile",
12
+ "build": "webpack --config config/webpack.config.build.js --stats-error-details",
13
+ "test": "webpack serve --config config/webpack.config.test.js --progress --profile"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/ldmjs/ui.git"
18
+ },
19
+ "keywords": [
20
+ "ldm",
21
+ "ui"
22
+ ],
23
+ "author": "ldmjs <nevezhin@lanit.ru>",
24
+ "license": "MIT",
25
+ "bugs": {
26
+ "url": "https://github.com/ldmjs/ui/issues"
27
+ },
28
+ "homepage": "https://github.com/ldmjs/ui#readme",
29
+ "files": [
30
+ "dist/"
31
+ ],
32
+ "devDependencies": {
33
+ "@types/eslint": "^8",
34
+ "@types/lodash-es": "^4",
35
+ "@typescript-eslint/eslint-plugin": "5.41.0",
36
+ "@typescript-eslint/parser": "5.41.0",
37
+ "copy-webpack-plugin": "^12.0.2",
38
+ "css-loader": "6.8.1",
39
+ "eslint": "8.56.0",
40
+ "html-webpack-plugin": "5.6.0",
41
+ "lodash-es": "4.17.21",
42
+ "material-design-icons-iconfont": "^6.7.0",
43
+ "node-sass": "9.0.0",
44
+ "postcss-loader": "7.3.3",
45
+ "sass": "1.69.5",
46
+ "sass-loader": "13.3.2",
47
+ "style-loader": "3.3.3",
48
+ "terser-webpack-plugin": "5.3.10",
49
+ "ts-loader": "9.5.1",
50
+ "typescript": "4.9.5",
51
+ "vue": "3.4.21",
52
+ "vue-class-component": "8.0.0-rc.1",
53
+ "vue-eslint-parser": "9.4.2",
54
+ "vue-loader": "17.3.1",
55
+ "vue-property-decorator": "10.0.0-rc.3",
56
+ "vuetify": "3.5.9",
57
+ "webpack": "5.90.2",
58
+ "webpack-cli": "5.1.4",
59
+ "webpack-dev-server": "4.15.1",
60
+ "webpack-plugin-vuetify": "2.0.1"
61
+ },
62
+ "volta": {
63
+ "node": "16.20.0"
64
+ }
65
+ }