@carbon/icon-helpers 10.45.0 → 10.46.0-rc.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/es/getAttributes.d.ts +6 -9
- package/es/index.js +3 -5
- package/es/toSVG.d.ts +11 -0
- package/es/toString.d.ts +12 -0
- package/es/types.d.ts +11 -0
- package/lib/getAttributes.d.ts +6 -9
- package/lib/index.js +3 -5
- package/lib/toSVG.d.ts +11 -0
- package/lib/toString.d.ts +12 -0
- package/lib/types.d.ts +11 -0
- package/package.json +2 -2
- package/umd/getAttributes.d.ts +6 -9
- package/umd/index.js +3 -5
- package/umd/toSVG.d.ts +11 -0
- package/umd/toString.d.ts +12 -0
- package/umd/types.d.ts +11 -0
package/es/getAttributes.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2018,
|
|
2
|
+
* Copyright IBM Corp. 2018, 2024
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export declare const defaultAttributes: IconAttributes;
|
|
7
|
+
export declare const defaultAttributes: {
|
|
8
|
+
focusable: string;
|
|
9
|
+
preserveAspectRatio: string;
|
|
10
|
+
};
|
|
13
11
|
/**
|
|
14
12
|
* Get supplementary HTML attributes for a given <svg> element based on existing
|
|
15
13
|
* attributes.
|
|
16
14
|
*/
|
|
17
|
-
export default function getAttributes({ width, height, viewBox, ...attributes }?:
|
|
18
|
-
export {};
|
|
15
|
+
export default function getAttributes({ width, height, viewBox, ...attributes }?: Record<string, unknown>): Record<string, unknown>;
|
package/es/index.js
CHANGED
|
@@ -78,7 +78,7 @@ function _toPropertyKey(arg) {
|
|
|
78
78
|
var _excluded = ["width", "height", "viewBox"],
|
|
79
79
|
_excluded2 = ["tabindex"];
|
|
80
80
|
/**
|
|
81
|
-
* Copyright IBM Corp. 2018,
|
|
81
|
+
* Copyright IBM Corp. 2018, 2024
|
|
82
82
|
*
|
|
83
83
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
84
84
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -130,12 +130,11 @@ function getAttributes() {
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* Copyright IBM Corp. 2018,
|
|
133
|
+
* Copyright IBM Corp. 2018, 2024
|
|
134
134
|
*
|
|
135
135
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
136
136
|
* LICENSE file in the root directory of this source tree.
|
|
137
137
|
*/
|
|
138
|
-
|
|
139
138
|
/**
|
|
140
139
|
* Convert an icon descriptor to a String
|
|
141
140
|
*/
|
|
@@ -163,12 +162,11 @@ function formatAttributes(attrs) {
|
|
|
163
162
|
}
|
|
164
163
|
|
|
165
164
|
/**
|
|
166
|
-
* Copyright IBM Corp. 2018,
|
|
165
|
+
* Copyright IBM Corp. 2018, 2024
|
|
167
166
|
*
|
|
168
167
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
169
168
|
* LICENSE file in the root directory of this source tree.
|
|
170
169
|
*/
|
|
171
|
-
|
|
172
170
|
/**
|
|
173
171
|
* Convert an icon descriptor to a DOM node.
|
|
174
172
|
*/
|
package/es/toSVG.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2018, 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import IconDescriptor from './types';
|
|
8
|
+
/**
|
|
9
|
+
* Convert an icon descriptor to a DOM node.
|
|
10
|
+
*/
|
|
11
|
+
export default function toSVG(descriptor: IconDescriptor): SVGElement;
|
package/es/toString.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2018, 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import IconDescriptor from './types';
|
|
8
|
+
/**
|
|
9
|
+
* Convert an icon descriptor to a String
|
|
10
|
+
*/
|
|
11
|
+
export default function toString(descriptor: IconDescriptor): string;
|
|
12
|
+
export declare function formatAttributes(attrs: Record<string, unknown>): string;
|
package/es/types.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
export default interface IconDescriptor {
|
|
8
|
+
elem?: string;
|
|
9
|
+
attrs?: Record<string, string>;
|
|
10
|
+
content?: Array<IconDescriptor>;
|
|
11
|
+
}
|
package/lib/getAttributes.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2018,
|
|
2
|
+
* Copyright IBM Corp. 2018, 2024
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export declare const defaultAttributes: IconAttributes;
|
|
7
|
+
export declare const defaultAttributes: {
|
|
8
|
+
focusable: string;
|
|
9
|
+
preserveAspectRatio: string;
|
|
10
|
+
};
|
|
13
11
|
/**
|
|
14
12
|
* Get supplementary HTML attributes for a given <svg> element based on existing
|
|
15
13
|
* attributes.
|
|
16
14
|
*/
|
|
17
|
-
export default function getAttributes({ width, height, viewBox, ...attributes }?:
|
|
18
|
-
export {};
|
|
15
|
+
export default function getAttributes({ width, height, viewBox, ...attributes }?: Record<string, unknown>): Record<string, unknown>;
|
package/lib/index.js
CHANGED
|
@@ -82,7 +82,7 @@ function _toPropertyKey(arg) {
|
|
|
82
82
|
var _excluded = ["width", "height", "viewBox"],
|
|
83
83
|
_excluded2 = ["tabindex"];
|
|
84
84
|
/**
|
|
85
|
-
* Copyright IBM Corp. 2018,
|
|
85
|
+
* Copyright IBM Corp. 2018, 2024
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
88
88
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -134,12 +134,11 @@ function getAttributes() {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
|
-
* Copyright IBM Corp. 2018,
|
|
137
|
+
* Copyright IBM Corp. 2018, 2024
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
140
140
|
* LICENSE file in the root directory of this source tree.
|
|
141
141
|
*/
|
|
142
|
-
|
|
143
142
|
/**
|
|
144
143
|
* Convert an icon descriptor to a String
|
|
145
144
|
*/
|
|
@@ -167,12 +166,11 @@ function formatAttributes(attrs) {
|
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
/**
|
|
170
|
-
* Copyright IBM Corp. 2018,
|
|
169
|
+
* Copyright IBM Corp. 2018, 2024
|
|
171
170
|
*
|
|
172
171
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
173
172
|
* LICENSE file in the root directory of this source tree.
|
|
174
173
|
*/
|
|
175
|
-
|
|
176
174
|
/**
|
|
177
175
|
* Convert an icon descriptor to a DOM node.
|
|
178
176
|
*/
|
package/lib/toSVG.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2018, 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import IconDescriptor from './types';
|
|
8
|
+
/**
|
|
9
|
+
* Convert an icon descriptor to a DOM node.
|
|
10
|
+
*/
|
|
11
|
+
export default function toSVG(descriptor: IconDescriptor): SVGElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2018, 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import IconDescriptor from './types';
|
|
8
|
+
/**
|
|
9
|
+
* Convert an icon descriptor to a String
|
|
10
|
+
*/
|
|
11
|
+
export default function toString(descriptor: IconDescriptor): string;
|
|
12
|
+
export declare function formatAttributes(attrs: Record<string, unknown>): string;
|
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
export default interface IconDescriptor {
|
|
8
|
+
elem?: string;
|
|
9
|
+
attrs?: Record<string, string>;
|
|
10
|
+
content?: Array<IconDescriptor>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/icon-helpers",
|
|
3
3
|
"description": "Helpers used alongside icons for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.46.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"typescript-config-carbon": "^0.2.0"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "79048666dc3d8f66c3d64b46de45b25ce13d9adf"
|
|
43
43
|
}
|
package/umd/getAttributes.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2018,
|
|
2
|
+
* Copyright IBM Corp. 2018, 2024
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export declare const defaultAttributes: IconAttributes;
|
|
7
|
+
export declare const defaultAttributes: {
|
|
8
|
+
focusable: string;
|
|
9
|
+
preserveAspectRatio: string;
|
|
10
|
+
};
|
|
13
11
|
/**
|
|
14
12
|
* Get supplementary HTML attributes for a given <svg> element based on existing
|
|
15
13
|
* attributes.
|
|
16
14
|
*/
|
|
17
|
-
export default function getAttributes({ width, height, viewBox, ...attributes }?:
|
|
18
|
-
export {};
|
|
15
|
+
export default function getAttributes({ width, height, viewBox, ...attributes }?: Record<string, unknown>): Record<string, unknown>;
|
package/umd/index.js
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
var _excluded = ["width", "height", "viewBox"],
|
|
85
85
|
_excluded2 = ["tabindex"];
|
|
86
86
|
/**
|
|
87
|
-
* Copyright IBM Corp. 2018,
|
|
87
|
+
* Copyright IBM Corp. 2018, 2024
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -136,12 +136,11 @@
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* Copyright IBM Corp. 2018,
|
|
139
|
+
* Copyright IBM Corp. 2018, 2024
|
|
140
140
|
*
|
|
141
141
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
142
142
|
* LICENSE file in the root directory of this source tree.
|
|
143
143
|
*/
|
|
144
|
-
|
|
145
144
|
/**
|
|
146
145
|
* Convert an icon descriptor to a String
|
|
147
146
|
*/
|
|
@@ -169,12 +168,11 @@
|
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
/**
|
|
172
|
-
* Copyright IBM Corp. 2018,
|
|
171
|
+
* Copyright IBM Corp. 2018, 2024
|
|
173
172
|
*
|
|
174
173
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
175
174
|
* LICENSE file in the root directory of this source tree.
|
|
176
175
|
*/
|
|
177
|
-
|
|
178
176
|
/**
|
|
179
177
|
* Convert an icon descriptor to a DOM node.
|
|
180
178
|
*/
|
package/umd/toSVG.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2018, 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import IconDescriptor from './types';
|
|
8
|
+
/**
|
|
9
|
+
* Convert an icon descriptor to a DOM node.
|
|
10
|
+
*/
|
|
11
|
+
export default function toSVG(descriptor: IconDescriptor): SVGElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2018, 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import IconDescriptor from './types';
|
|
8
|
+
/**
|
|
9
|
+
* Convert an icon descriptor to a String
|
|
10
|
+
*/
|
|
11
|
+
export default function toString(descriptor: IconDescriptor): string;
|
|
12
|
+
export declare function formatAttributes(attrs: Record<string, unknown>): string;
|
package/umd/types.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
export default interface IconDescriptor {
|
|
8
|
+
elem?: string;
|
|
9
|
+
attrs?: Record<string, string>;
|
|
10
|
+
content?: Array<IconDescriptor>;
|
|
11
|
+
}
|