carbon-components-svelte 0.87.3 → 0.87.5
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 +1 -1
- package/src/Button/Button.svelte +1 -1
- package/src/ComposedModal/ModalFooter.svelte +1 -1
- package/src/ContextMenu/ContextMenuOption.svelte +1 -1
- package/src/Link/Link.svelte +1 -1
- package/src/Modal/Modal.svelte +1 -1
- package/src/Notification/NotificationButton.svelte +1 -1
- package/src/OverflowMenu/OverflowMenu.svelte +1 -1
- package/src/Search/Search.svelte +1 -1
- package/src/Tag/Tag.svelte +2 -2
- package/src/Tooltip/Tooltip.svelte +1 -1
- package/src/TooltipIcon/TooltipIcon.svelte +1 -1
- package/src/TreeView/TreeView.svelte +1 -1
- package/src/TreeView/TreeViewNode.svelte +1 -1
- package/src/TreeView/TreeViewNodeList.svelte +1 -1
- package/src/UIShell/HamburgerMenu.svelte +2 -2
- package/src/UIShell/Header.svelte +2 -2
- package/src/UIShell/HeaderAction.svelte +2 -2
- package/src/UIShell/HeaderActionLink.svelte +1 -1
- package/src/UIShell/HeaderGlobalAction.svelte +1 -1
- package/src/UIShell/SideNavLink.svelte +1 -1
- package/src/UIShell/SideNavMenu.svelte +1 -1
- package/types/Button/Button.svelte.d.ts +1 -1
- package/types/ComposedModal/ModalFooter.svelte.d.ts +1 -1
- package/types/ContextMenu/ContextMenuOption.svelte.d.ts +1 -1
- package/types/Link/Link.svelte.d.ts +1 -1
- package/types/Modal/Modal.svelte.d.ts +1 -1
- package/types/Notification/NotificationButton.svelte.d.ts +1 -1
- package/types/OverflowMenu/OverflowMenu.svelte.d.ts +1 -1
- package/types/Search/Search.svelte.d.ts +1 -1
- package/types/Tag/Tag.svelte.d.ts +1 -1
- package/types/Tooltip/Tooltip.svelte.d.ts +1 -1
- package/types/TooltipIcon/TooltipIcon.svelte.d.ts +1 -1
- package/types/TreeView/TreeView.svelte.d.ts +1 -1
- package/types/UIShell/Header.svelte.d.ts +2 -2
- package/types/UIShell/HeaderAction.svelte.d.ts +2 -2
- package/types/UIShell/HeaderActionLink.svelte.d.ts +1 -1
- package/types/UIShell/HeaderGlobalAction.svelte.d.ts +1 -1
- package/types/UIShell/SideNavLink.svelte.d.ts +1 -1
- package/types/UIShell/SideNavMenu.svelte.d.ts +1 -1
package/package.json
CHANGED
package/src/Button/Button.svelte
CHANGED
package/src/Link/Link.svelte
CHANGED
package/src/Modal/Modal.svelte
CHANGED
package/src/Search/Search.svelte
CHANGED
package/src/Tag/Tag.svelte
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Specify the icon to render
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {any}
|
|
31
31
|
*/
|
|
32
32
|
export let icon = undefined;
|
|
33
33
|
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
class:bx--tag__close-icon={true}
|
|
83
83
|
{disabled}
|
|
84
84
|
{title}
|
|
85
|
-
on:click
|
|
85
|
+
on:click
|
|
86
86
|
on:click|stopPropagation={() => {
|
|
87
87
|
dispatch("close");
|
|
88
88
|
}}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<script>
|
|
30
30
|
/**
|
|
31
31
|
* @typedef {string | number} TreeNodeId
|
|
32
|
-
* @typedef {{ id: TreeNodeId; text: any; icon?:
|
|
32
|
+
* @typedef {{ id: TreeNodeId; text: any; icon?: any; disabled?: boolean; nodes?: TreeNode[]; }} TreeNode
|
|
33
33
|
* @slot {{ node: { id: TreeNodeId; text: string; expanded: boolean, leaf: boolean; disabled: boolean; selected: boolean; } }}
|
|
34
34
|
* @event {TreeNode & { expanded: boolean; leaf: boolean; }} select
|
|
35
35
|
* @event {TreeNode & { expanded: boolean; leaf: boolean; }} toggle
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
/**
|
|
12
12
|
* Specify the icon to render for the closed state.
|
|
13
13
|
* Defaults to `<Menu size={20} />`
|
|
14
|
-
* @type {
|
|
14
|
+
* @type {any}
|
|
15
15
|
*/
|
|
16
16
|
export let iconMenu = Menu;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Specify the icon to render for the opened state.
|
|
20
20
|
* Defaults to `<Close size={20} />`
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {any}
|
|
22
22
|
*/
|
|
23
23
|
export let iconClose = Close;
|
|
24
24
|
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
/**
|
|
52
52
|
* Specify the icon to render for the closed state.
|
|
53
53
|
* Defaults to `<Menu size={20} />`
|
|
54
|
-
* @type {
|
|
54
|
+
* @type {any}
|
|
55
55
|
*/
|
|
56
56
|
export let iconMenu = Menu;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Specify the icon to render for the opened state.
|
|
60
60
|
* Defaults to `<Close size={20} />`
|
|
61
|
-
* @type {
|
|
61
|
+
* @type {any}
|
|
62
62
|
*/
|
|
63
63
|
export let iconClose = Close;
|
|
64
64
|
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* Specify the icon to render when the action panel is closed.
|
|
12
12
|
* Defaults to `<Switcher size={20} />`
|
|
13
|
-
* @type {
|
|
13
|
+
* @type {any}
|
|
14
14
|
*/
|
|
15
15
|
export let icon = Switcher;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Specify the icon to render when the action panel is open.
|
|
19
19
|
* Defaults to `<Close size={20} />`
|
|
20
|
-
* @type {
|
|
20
|
+
* @type {any}
|
|
21
21
|
*/
|
|
22
22
|
export let closeIcon = Close;
|
|
23
23
|
|
|
@@ -44,7 +44,7 @@ type $Props = {
|
|
|
44
44
|
* Alternatively, use the named slot "icon" (e.g., `<Icon slot="icon" size="{20}" />`)
|
|
45
45
|
* @default undefined
|
|
46
46
|
*/
|
|
47
|
-
icon?:
|
|
47
|
+
icon?: any;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Specify the ARIA label for the button icon
|
|
@@ -86,7 +86,7 @@ type $Props = {
|
|
|
86
86
|
* Specify the primary button icon
|
|
87
87
|
* @default undefined
|
|
88
88
|
*/
|
|
89
|
-
primaryButtonIcon?:
|
|
89
|
+
primaryButtonIcon?: any;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Set to `true` for the "submit" and "click:button--primary" events
|
|
@@ -72,14 +72,14 @@ type $Props = {
|
|
|
72
72
|
* Defaults to `<Menu size={20} />`
|
|
73
73
|
* @default undefined
|
|
74
74
|
*/
|
|
75
|
-
iconMenu?:
|
|
75
|
+
iconMenu?: any;
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* Specify the icon to render for the opened state.
|
|
79
79
|
* Defaults to `<Close size={20} />`
|
|
80
80
|
* @default undefined
|
|
81
81
|
*/
|
|
82
|
-
iconClose?:
|
|
82
|
+
iconClose?: any;
|
|
83
83
|
|
|
84
84
|
[key: `data-${string}`]: any;
|
|
85
85
|
};
|
|
@@ -15,14 +15,14 @@ type $Props = {
|
|
|
15
15
|
* Defaults to `<Switcher size={20} />`
|
|
16
16
|
* @default undefined
|
|
17
17
|
*/
|
|
18
|
-
icon?:
|
|
18
|
+
icon?: any;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Specify the icon to render when the action panel is open.
|
|
22
22
|
* Defaults to `<Close size={20} />`
|
|
23
23
|
* @default undefined
|
|
24
24
|
*/
|
|
25
|
-
closeIcon?:
|
|
25
|
+
closeIcon?: any;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Specify the text.
|