@limetech/lime-web-components 5.24.0 → 5.25.0
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/CHANGELOG.md +8 -0
- package/dist/action/action.d.ts +29 -5
- package/dist/action/action.d.ts.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [5.25.0](https://github.com/Lundalogik/lime-web-components/compare/v5.24.0...v5.25.0) (2024-02-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* **action:** use icon interface for the action ([ee9ef69](https://github.com/Lundalogik/lime-web-components/commit/ee9ef6980c5070433051b10bf201f025d866d98c))
|
|
8
|
+
|
|
1
9
|
## [5.24.0](https://github.com/Lundalogik/lime-web-components/compare/v5.23.1...v5.24.0) (2024-01-18)
|
|
2
10
|
|
|
3
11
|
|
package/dist/action/action.d.ts
CHANGED
|
@@ -17,11 +17,7 @@ export interface Action<T extends AnyCommand = AnyCommand> {
|
|
|
17
17
|
/**
|
|
18
18
|
* Icon of the action
|
|
19
19
|
*/
|
|
20
|
-
icon?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Color of the icon
|
|
23
|
-
*/
|
|
24
|
-
color?: string;
|
|
20
|
+
icon?: string | Icon;
|
|
25
21
|
/**
|
|
26
22
|
* Label to display on or next to the action.
|
|
27
23
|
* The label will be translated by the {@link Translator}
|
|
@@ -50,4 +46,32 @@ export type LimeObjectAction = Action<LimeObjectCommand>;
|
|
|
50
46
|
* @group Actions
|
|
51
47
|
*/
|
|
52
48
|
export type LimeObjectBulkAction = Action<LimeObjectBulkCommand>;
|
|
49
|
+
/**
|
|
50
|
+
* Icon of an action
|
|
51
|
+
*
|
|
52
|
+
* @alpha
|
|
53
|
+
* @group Actions
|
|
54
|
+
*/
|
|
55
|
+
export type Icon = {
|
|
56
|
+
/**
|
|
57
|
+
* Name of the icon
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Color of the icon.
|
|
62
|
+
*/
|
|
63
|
+
color?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Background color of the icon.
|
|
66
|
+
*/
|
|
67
|
+
backgroundColor?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The `title` attribute of the icon.
|
|
70
|
+
* Used primarily to improve accessibility for users who
|
|
71
|
+
* take advantage of assistive technologies; but also
|
|
72
|
+
* to clarify further what an icon tries to resemble
|
|
73
|
+
* for sighted users.
|
|
74
|
+
*/
|
|
75
|
+
title?: string;
|
|
76
|
+
};
|
|
53
77
|
//# sourceMappingURL=action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/action/action.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,qBAAqB,EACrB,iBAAiB,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAMjD;;;;GAIG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU;IACrD;;OAEG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/action/action.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,qBAAqB,EACrB,iBAAiB,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAMjD;;;;GAIG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU;IACrD;;OAEG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-web-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.25.0",
|
|
4
4
|
"description": "Lime Web Components",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,28 +35,28 @@
|
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@commitlint/config-conventional": "^
|
|
39
|
-
"@microsoft/api-extractor": "^7.39.
|
|
38
|
+
"@commitlint/config-conventional": "^18.6.0",
|
|
39
|
+
"@microsoft/api-extractor": "^7.39.5",
|
|
40
40
|
"@types/jest": "^27.5.0",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
42
|
-
"@typescript-eslint/parser": "^
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
42
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
43
43
|
"commitizen": "^4.3.0",
|
|
44
44
|
"cz-conventional-changelog": "^3.3.0",
|
|
45
45
|
"eslint": "^8.56.0",
|
|
46
|
-
"eslint-config-prettier": "^
|
|
46
|
+
"eslint-config-prettier": "^9.1.0",
|
|
47
47
|
"eslint-plugin-ban": "^1.6.0",
|
|
48
48
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
49
|
-
"eslint-plugin-prettier": "^
|
|
49
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
50
50
|
"eslint-plugin-react": "^7.33.2",
|
|
51
51
|
"eslint-plugin-sonarjs": "^0.23.0",
|
|
52
52
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
53
53
|
"jest": "^27.5.1",
|
|
54
54
|
"jest-cli": "^27.5.1",
|
|
55
|
-
"prettier": "^2.
|
|
56
|
-
"replace-in-file": "^
|
|
55
|
+
"prettier": "^3.2.5",
|
|
56
|
+
"replace-in-file": "^7.1.0",
|
|
57
57
|
"shelljs": "0.8.5",
|
|
58
58
|
"typedoc": "^0.23.24",
|
|
59
|
-
"typedoc-plugin-markdown": "~
|
|
59
|
+
"typedoc-plugin-markdown": "~3.15.0",
|
|
60
60
|
"typescript": "^4.9.5",
|
|
61
61
|
"yargs": "^17.7.2"
|
|
62
62
|
},
|