@limetech/lime-elements 37.1.0-next.55 → 37.1.0-next.57
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/dist/cjs/get-icon-props-46a7e937.js +97 -0
- package/dist/cjs/get-icon-props-46a7e937.js.map +1 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-action-bar-item_2.cjs.entry.js +14 -2
- package/dist/cjs/limel-action-bar-item_2.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-breadcrumbs.cjs.entry.js +6 -4
- package/dist/cjs/limel-breadcrumbs.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +22 -5
- package/dist/cjs/limel-chip-set.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +36 -11
- package/dist/cjs/limel-file-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-file.cjs.entry.js +19 -9
- package/dist/cjs/limel-file.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-helper-line.cjs.entry.js +1 -1
- package/dist/cjs/limel-helper-line.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-list.cjs.entry.js +14 -4
- package/dist/cjs/limel-list.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-menu_2.cjs.entry.js +14 -4
- package/dist/cjs/limel-menu_2.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-picker.cjs.entry.js +5 -2
- package/dist/cjs/limel-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +3 -1
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-progress-flow.cjs.entry.js +15 -2
- package/dist/cjs/limel-progress-flow.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +21 -5
- package/dist/cjs/limel-select.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +13 -3
- package/dist/cjs/limel-tab-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/action-bar/action-bar-item/action-bar-item.js +14 -2
- package/dist/collection/components/action-bar/action-bar-item/action-bar-item.js.map +1 -1
- package/dist/collection/components/action-bar/action-bar.types.js.map +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +6 -4
- package/dist/collection/components/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.types.js.map +1 -1
- package/dist/collection/components/chip-set/chip-set.js +22 -5
- package/dist/collection/components/chip-set/chip-set.js.map +1 -1
- package/dist/collection/components/chip-set/chip.types.js.map +1 -1
- package/dist/collection/components/file/file-metadata.js +13 -8
- package/dist/collection/components/file/file-metadata.js.map +1 -1
- package/dist/collection/components/file/file.js +6 -1
- package/dist/collection/components/file/file.js.map +1 -1
- package/dist/collection/components/file/file.types.js.map +1 -1
- package/dist/collection/components/file-viewer/file-viewer.js +39 -12
- package/dist/collection/components/file-viewer/file-viewer.js.map +1 -1
- package/dist/collection/components/helper-line/helper-line.css +3 -4
- package/dist/collection/components/icon/get-icon-props.js +88 -0
- package/dist/collection/components/icon/get-icon-props.js.map +1 -0
- package/dist/collection/components/list/list-item.types.js.map +1 -1
- package/dist/collection/components/list/list-renderer.js +7 -4
- package/dist/collection/components/list/list-renderer.js.map +1 -1
- package/dist/collection/components/list/list.js +7 -0
- package/dist/collection/components/list/list.js.map +1 -1
- package/dist/collection/components/menu/menu.types.js.map +1 -1
- package/dist/collection/components/menu-list/menu-list-renderer.js +7 -4
- package/dist/collection/components/menu-list/menu-list-renderer.js.map +1 -1
- package/dist/collection/components/menu-list/menu-list.js +7 -0
- package/dist/collection/components/menu-list/menu-list.js.map +1 -1
- package/dist/collection/components/picker/picker.js +5 -2
- package/dist/collection/components/picker/picker.js.map +1 -1
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +3 -1
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js.map +1 -1
- package/dist/collection/components/progress-flow/progress-flow.js +15 -2
- package/dist/collection/components/progress-flow/progress-flow.js.map +1 -1
- package/dist/collection/components/progress-flow/progress-flow.types.js.map +1 -1
- package/dist/collection/components/select/option.types.js.map +1 -1
- package/dist/collection/components/select/select.js +2 -1
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select/select.template.js +20 -5
- package/dist/collection/components/select/select.template.js.map +1 -1
- package/dist/collection/components/tab-bar/tab-bar.js +13 -3
- package/dist/collection/components/tab-bar/tab-bar.js.map +1 -1
- package/dist/collection/components/tab-bar/tab.types.js.map +1 -1
- package/dist/esm/get-icon-props-02ab4784.js +91 -0
- package/dist/esm/get-icon-props-02ab4784.js.map +1 -0
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-action-bar-item_2.entry.js +14 -2
- package/dist/esm/limel-action-bar-item_2.entry.js.map +1 -1
- package/dist/esm/limel-breadcrumbs.entry.js +6 -4
- package/dist/esm/limel-breadcrumbs.entry.js.map +1 -1
- package/dist/esm/limel-chip-set.entry.js +22 -5
- package/dist/esm/limel-chip-set.entry.js.map +1 -1
- package/dist/esm/limel-file-viewer.entry.js +36 -11
- package/dist/esm/limel-file-viewer.entry.js.map +1 -1
- package/dist/esm/limel-file.entry.js +19 -9
- package/dist/esm/limel-file.entry.js.map +1 -1
- package/dist/esm/limel-helper-line.entry.js +1 -1
- package/dist/esm/limel-helper-line.entry.js.map +1 -1
- package/dist/esm/limel-list.entry.js +14 -4
- package/dist/esm/limel-list.entry.js.map +1 -1
- package/dist/esm/limel-menu_2.entry.js +14 -4
- package/dist/esm/limel-menu_2.entry.js.map +1 -1
- package/dist/esm/limel-picker.entry.js +5 -2
- package/dist/esm/limel-picker.entry.js.map +1 -1
- package/dist/esm/limel-progress-flow-item.entry.js +3 -1
- package/dist/esm/limel-progress-flow-item.entry.js.map +1 -1
- package/dist/esm/limel-progress-flow.entry.js +15 -2
- package/dist/esm/limel-progress-flow.entry.js.map +1 -1
- package/dist/esm/limel-select.entry.js +21 -5
- package/dist/esm/limel-select.entry.js.map +1 -1
- package/dist/esm/limel-tab-bar.entry.js +13 -3
- package/dist/esm/limel-tab-bar.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js.map +1 -1
- package/dist/lime-elements/p-0191d535.entry.js +2 -0
- package/dist/lime-elements/p-0191d535.entry.js.map +1 -0
- package/dist/lime-elements/p-5dd76e36.entry.js +82 -0
- package/dist/lime-elements/p-5dd76e36.entry.js.map +1 -0
- package/dist/lime-elements/p-93384ba2.entry.js +82 -0
- package/dist/lime-elements/p-93384ba2.entry.js.map +1 -0
- package/dist/lime-elements/p-a1c14a7c.entry.js +2 -0
- package/dist/lime-elements/p-a1c14a7c.entry.js.map +1 -0
- package/dist/lime-elements/{p-b8deba1b.entry.js → p-b4f1c135.entry.js} +2 -2
- package/dist/lime-elements/p-b4f1c135.entry.js.map +1 -0
- package/dist/lime-elements/p-bbf317b8.entry.js +16 -0
- package/dist/lime-elements/p-bbf317b8.entry.js.map +1 -0
- package/dist/lime-elements/p-cf736097.entry.js +236 -0
- package/dist/lime-elements/p-cf736097.entry.js.map +1 -0
- package/dist/lime-elements/p-dff00513.entry.js +2 -0
- package/dist/lime-elements/p-dff00513.entry.js.map +1 -0
- package/dist/lime-elements/p-e321e7e0.entry.js +2 -0
- package/dist/lime-elements/p-e321e7e0.entry.js.map +1 -0
- package/dist/lime-elements/p-eacad510.entry.js +2 -0
- package/dist/lime-elements/p-eacad510.entry.js.map +1 -0
- package/dist/lime-elements/p-edc9a703.entry.js +2 -0
- package/dist/lime-elements/p-edc9a703.entry.js.map +1 -0
- package/dist/lime-elements/p-efc550f6.js +2 -0
- package/dist/lime-elements/p-efc550f6.js.map +1 -0
- package/dist/lime-elements/p-f2691d44.entry.js +2 -0
- package/dist/lime-elements/p-f2691d44.entry.js.map +1 -0
- package/dist/lime-elements/{p-bc23beb6.entry.js → p-f76277b6.entry.js} +25 -25
- package/dist/lime-elements/p-f76277b6.entry.js.map +1 -0
- package/dist/types/components/action-bar/action-bar-item/action-bar-item.d.ts +2 -0
- package/dist/types/components/action-bar/action-bar.types.d.ts +2 -2
- package/dist/types/components/breadcrumbs/breadcrumbs.types.d.ts +1 -1
- package/dist/types/components/chip-set/chip-set.d.ts +1 -0
- package/dist/types/components/chip-set/chip.types.d.ts +29 -1
- package/dist/types/components/file/file.types.d.ts +18 -1
- package/dist/types/components/icon/get-icon-props.d.ts +48 -0
- package/dist/types/components/list/list-item.types.d.ts +11 -2
- package/dist/types/components/list/list.d.ts +1 -0
- package/dist/types/components/menu/menu.types.d.ts +11 -1
- package/dist/types/components/menu-list/menu-list.d.ts +1 -0
- package/dist/types/components/progress-flow/progress-flow.types.d.ts +9 -0
- package/dist/types/components/select/option.types.d.ts +11 -1
- package/dist/types/components/select/select.template.d.ts +1 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +1 -0
- package/dist/types/components/tab-bar/tab.types.d.ts +11 -1
- package/package.json +3 -3
- package/dist/lime-elements/p-17b91e03.entry.js +0 -236
- package/dist/lime-elements/p-17b91e03.entry.js.map +0 -1
- package/dist/lime-elements/p-1bdc524d.entry.js +0 -2
- package/dist/lime-elements/p-1bdc524d.entry.js.map +0 -1
- package/dist/lime-elements/p-1f6953d2.entry.js +0 -2
- package/dist/lime-elements/p-1f6953d2.entry.js.map +0 -1
- package/dist/lime-elements/p-4449f7af.entry.js +0 -82
- package/dist/lime-elements/p-4449f7af.entry.js.map +0 -1
- package/dist/lime-elements/p-4fc7e0df.entry.js +0 -2
- package/dist/lime-elements/p-4fc7e0df.entry.js.map +0 -1
- package/dist/lime-elements/p-685e5867.entry.js +0 -2
- package/dist/lime-elements/p-685e5867.entry.js.map +0 -1
- package/dist/lime-elements/p-6e66b78a.entry.js +0 -2
- package/dist/lime-elements/p-6e66b78a.entry.js.map +0 -1
- package/dist/lime-elements/p-71802c27.entry.js +0 -2
- package/dist/lime-elements/p-71802c27.entry.js.map +0 -1
- package/dist/lime-elements/p-7d76f0d4.entry.js +0 -2
- package/dist/lime-elements/p-7d76f0d4.entry.js.map +0 -1
- package/dist/lime-elements/p-98be972f.entry.js +0 -16
- package/dist/lime-elements/p-98be972f.entry.js.map +0 -1
- package/dist/lime-elements/p-b8deba1b.entry.js.map +0 -1
- package/dist/lime-elements/p-b9698f79.entry.js +0 -82
- package/dist/lime-elements/p-b9698f79.entry.js.map +0 -1
- package/dist/lime-elements/p-bc23beb6.entry.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Icon } from '../../interface';
|
|
1
2
|
export interface Chip<T = any> {
|
|
2
3
|
/**
|
|
3
4
|
* ID of the chip. Must be unique.
|
|
@@ -10,17 +11,44 @@ export interface Chip<T = any> {
|
|
|
10
11
|
/**
|
|
11
12
|
* Name of the icon to use. Not valid for `filter`.
|
|
12
13
|
*/
|
|
13
|
-
icon?: string;
|
|
14
|
+
icon?: string | Icon;
|
|
14
15
|
/**
|
|
15
16
|
* Color of the icon. Overrides `--icon-color`.
|
|
17
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
18
|
+
*
|
|
19
|
+
* Use the new `Icon` interface instead and write:
|
|
20
|
+
* ```
|
|
21
|
+
* icon {
|
|
22
|
+
* name: string,
|
|
23
|
+
* color: string,
|
|
24
|
+
* },
|
|
25
|
+
* ```
|
|
16
26
|
*/
|
|
17
27
|
iconFillColor?: string;
|
|
18
28
|
/**
|
|
19
29
|
* `title` attribute of the icon
|
|
30
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
31
|
+
*
|
|
32
|
+
* Use the new `Icon` interface instead and write:
|
|
33
|
+
* ```
|
|
34
|
+
* icon {
|
|
35
|
+
* name: string,
|
|
36
|
+
* title: string,
|
|
37
|
+
* },
|
|
38
|
+
* ```
|
|
20
39
|
*/
|
|
21
40
|
iconTitle?: string;
|
|
22
41
|
/**
|
|
23
42
|
* Background color of the icon. Overrides `--icon-background-color`.
|
|
43
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
44
|
+
*
|
|
45
|
+
* Use the new `Icon` interface instead and write:
|
|
46
|
+
* ```
|
|
47
|
+
* icon {
|
|
48
|
+
* name: string,
|
|
49
|
+
* backgroundColor: string,
|
|
50
|
+
* },
|
|
51
|
+
* ```
|
|
24
52
|
*/
|
|
25
53
|
iconBackgroundColor?: string;
|
|
26
54
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Icon } from '../../interface';
|
|
1
2
|
export interface FileInfo {
|
|
2
3
|
/**
|
|
3
4
|
* ID of the file. Must be unique.
|
|
@@ -30,13 +31,29 @@ export interface FileInfo {
|
|
|
30
31
|
/**
|
|
31
32
|
* Name of the icon to use.
|
|
32
33
|
*/
|
|
33
|
-
icon?: string;
|
|
34
|
+
icon?: string | Icon;
|
|
34
35
|
/**
|
|
35
36
|
* Icon color. Overrides `--icon-color`.
|
|
37
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
38
|
+
*
|
|
39
|
+
* Use the new `Icon` interface instead and write:
|
|
40
|
+
* ```
|
|
41
|
+
* icon {
|
|
42
|
+
* name: string,
|
|
43
|
+
* color: string,
|
|
44
|
+
* },
|
|
36
45
|
*/
|
|
37
46
|
iconColor?: string;
|
|
38
47
|
/**
|
|
39
48
|
* Background color of the icon. Overrides `--icon-background-color`.
|
|
49
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
50
|
+
*
|
|
51
|
+
* Use the new `Icon` interface instead and write:
|
|
52
|
+
* ```
|
|
53
|
+
* icon {
|
|
54
|
+
* name: string,
|
|
55
|
+
* backgroundColor: string,
|
|
56
|
+
* },
|
|
40
57
|
*/
|
|
41
58
|
iconBackgroundColor?: string;
|
|
42
59
|
/**
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Icon } from '../../interface';
|
|
2
|
+
/**
|
|
3
|
+
* Get the icon name.
|
|
4
|
+
* This helps in setting the right icon, both if the consumer only types `icon: string`,
|
|
5
|
+
* and if they use the `Icon` interface for writing the icon name.
|
|
6
|
+
* @param {string | Icon | undefined} icon - The icon to retrieve the name from.
|
|
7
|
+
* @returns {string | undefined} The icon name or the provided string, or `undefined` if `icon` is falsy.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getIconName(icon: string | Icon | undefined): string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Get the icon color.
|
|
12
|
+
* This is added because the old way of specifying `iconColor`
|
|
13
|
+
* deprecated in our components. So consumers should now use the new
|
|
14
|
+
* `Icon` interface instead. But our components must still support the
|
|
15
|
+
* old way of writing `iconColor: string`.
|
|
16
|
+
* @param {string | Icon | undefined} icon - The icon to retrieve the color from.
|
|
17
|
+
* @param {string | undefined} [iconColor] - The color to use when the deprecated `iconColor` is used.
|
|
18
|
+
* @returns {string | undefined} The icon color or the provided color string, or `undefined` if `iconColor` is falsy.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getIconColor(icon: string | Icon | undefined, iconColor?: string | undefined): string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Get the icon color.
|
|
23
|
+
* This is added because the old way of specifying `iconFillColor` is
|
|
24
|
+
* deprecated in our components. So consumers should now use the new
|
|
25
|
+
* `Icon` interface instead. But our components must still support the
|
|
26
|
+
* old way of writing `iconFillColor: string`.
|
|
27
|
+
* @param {string | Icon} icon - The icon to retrieve the color from.
|
|
28
|
+
* @param {string | undefined} [iconFillColor] - The color to use when `iconFillColor` is used.
|
|
29
|
+
* @returns {string | undefined} The icon color or the provided color string, or `undefined` if `iconColor` is falsy.
|
|
30
|
+
*/
|
|
31
|
+
export declare function getIconFillColor(icon: string | Icon | undefined, iconFillColor?: string | undefined): string;
|
|
32
|
+
/**
|
|
33
|
+
* Get the icon background color.
|
|
34
|
+
* This function is used to retrieve the background color associated with an icon,
|
|
35
|
+
* whether provided as a string or using the `Icon` interface.
|
|
36
|
+
* @param {string | Icon | undefined} icon - The icon to retrieve the background color from.
|
|
37
|
+
* @param {string | undefined} [iconBackgroundColor] - The background color to use when provided explicitly.
|
|
38
|
+
* @returns {string | undefined} The icon background color or the provided background color string, or `undefined` if `iconBackgroundColor` is falsy.
|
|
39
|
+
*/
|
|
40
|
+
export declare function getIconBackgroundColor(icon: string | Icon | undefined, iconBackgroundColor?: string | undefined): string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Get the icon title.
|
|
43
|
+
* This function is used to retrieve the title associated with an icon, whether provided as a string or using the `Icon` interface.
|
|
44
|
+
* @param {string | Icon | undefined} icon - The icon to retrieve the title from.
|
|
45
|
+
* @param {string | undefined} [iconTitle] - The title to use when provided explicitly.
|
|
46
|
+
* @returns {string | undefined} The icon title or the provided title string, or `undefined` if `iconTitle` is falsy.
|
|
47
|
+
*/
|
|
48
|
+
export declare function getIconTitle(icon: string | Icon | undefined, iconTitle?: string | undefined): string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuItem } from '../../interface';
|
|
1
|
+
import { MenuItem, Icon } from '../../interface';
|
|
2
2
|
export interface ListItem<T = any> {
|
|
3
3
|
/**
|
|
4
4
|
* Text to display in the list item.
|
|
@@ -15,9 +15,18 @@ export interface ListItem<T = any> {
|
|
|
15
15
|
/**
|
|
16
16
|
* Name of the icon to use.
|
|
17
17
|
*/
|
|
18
|
-
icon?: string;
|
|
18
|
+
icon?: string | Icon;
|
|
19
19
|
/**
|
|
20
20
|
* Background color of the icon. Overrides `--icon-background-color`.
|
|
21
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
22
|
+
*
|
|
23
|
+
* Use the new `Icon` interface instead and write:
|
|
24
|
+
* ```
|
|
25
|
+
* icon {
|
|
26
|
+
* name: string,
|
|
27
|
+
* color: string,
|
|
28
|
+
* },
|
|
29
|
+
* ```
|
|
21
30
|
*/
|
|
22
31
|
iconColor?: string;
|
|
23
32
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Icon } from '../../interface';
|
|
1
2
|
export type OpenDirection = 'left-start' | 'left' | 'left-end' | 'right-start' | 'right' | 'right-end' | 'top-start' | 'top' | 'top-end' | 'bottom-start' | 'bottom' | 'bottom-end';
|
|
2
3
|
/**
|
|
3
4
|
* Any element in the UI can be configured to open a menu.
|
|
@@ -33,9 +34,18 @@ export interface MenuItem<T = any> {
|
|
|
33
34
|
/**
|
|
34
35
|
* Name of the icon to use.
|
|
35
36
|
*/
|
|
36
|
-
icon?: string;
|
|
37
|
+
icon?: string | Icon;
|
|
37
38
|
/**
|
|
38
39
|
* Background color of the icon. Overrides `--icon-background-color`.
|
|
40
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
41
|
+
*
|
|
42
|
+
* Use the new `Icon` interface instead and write:
|
|
43
|
+
* ```
|
|
44
|
+
* icon {
|
|
45
|
+
* name: string,
|
|
46
|
+
* color: string,
|
|
47
|
+
* },
|
|
48
|
+
* ```
|
|
39
49
|
*/
|
|
40
50
|
iconColor?: string;
|
|
41
51
|
/**
|
|
@@ -16,6 +16,15 @@ export interface FlowItem extends ListItem {
|
|
|
16
16
|
/**
|
|
17
17
|
* Fill color of the icon on the step,
|
|
18
18
|
* when it is neither selected nor passed.
|
|
19
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
20
|
+
*
|
|
21
|
+
* Use the new `Icon` interface instead and write:
|
|
22
|
+
* ```
|
|
23
|
+
* icon {
|
|
24
|
+
* name: string,
|
|
25
|
+
* color: string,
|
|
26
|
+
* },
|
|
27
|
+
* ```
|
|
19
28
|
*/
|
|
20
29
|
iconColor?: string;
|
|
21
30
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Icon } from '../../interface';
|
|
1
2
|
/**
|
|
2
3
|
* Describes an option for limel-select.
|
|
3
4
|
*/
|
|
@@ -26,9 +27,18 @@ export interface Option<T extends string = string> {
|
|
|
26
27
|
/**
|
|
27
28
|
* Displays an icon beside the name of the option.
|
|
28
29
|
*/
|
|
29
|
-
icon?: string;
|
|
30
|
+
icon?: string | Icon;
|
|
30
31
|
/**
|
|
31
32
|
* Adds a color to the icon.
|
|
33
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
34
|
+
*
|
|
35
|
+
* Use the new `Icon` interface instead and write:
|
|
36
|
+
* ```
|
|
37
|
+
* icon {
|
|
38
|
+
* name: string,
|
|
39
|
+
* color: string,
|
|
40
|
+
* },
|
|
41
|
+
* ```
|
|
32
42
|
*/
|
|
33
43
|
iconColor?: string;
|
|
34
44
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Icon } from '../../interface';
|
|
1
2
|
export interface Tab {
|
|
2
3
|
/**
|
|
3
4
|
* Id of the tab. Must be unique.
|
|
@@ -10,13 +11,22 @@ export interface Tab {
|
|
|
10
11
|
/**
|
|
11
12
|
* Name of the icon to use.
|
|
12
13
|
*/
|
|
13
|
-
icon?: string;
|
|
14
|
+
icon?: string | Icon;
|
|
14
15
|
/**
|
|
15
16
|
* True if the tab should be selected.
|
|
16
17
|
*/
|
|
17
18
|
active?: boolean;
|
|
18
19
|
/**
|
|
19
20
|
* Color of the icon.
|
|
21
|
+
* @deprecated This property is deprecated and will be removed soon!
|
|
22
|
+
*
|
|
23
|
+
* Use the new `Icon` interface instead and write:
|
|
24
|
+
* ```
|
|
25
|
+
* icon {
|
|
26
|
+
* name: string,
|
|
27
|
+
* color: string,
|
|
28
|
+
* },
|
|
29
|
+
* ```
|
|
20
30
|
*/
|
|
21
31
|
iconColor?: string;
|
|
22
32
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "37.1.0-next.
|
|
3
|
+
"version": "37.1.0-next.57",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@types/html-escaper": "^3.0.1",
|
|
51
51
|
"@types/jest": "^27.4.0",
|
|
52
52
|
"@types/lodash-es": "^4.17.10",
|
|
53
|
-
"@types/react": "^18.2.
|
|
54
|
-
"@types/react-dom": "^18.2.
|
|
53
|
+
"@types/react": "^18.2.37",
|
|
54
|
+
"@types/react-dom": "^18.2.15",
|
|
55
55
|
"@types/tabulator-tables": "^4.9.4",
|
|
56
56
|
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
|
57
57
|
"@typescript-eslint/parser": "^5.62.0",
|