@cdx-ui/icons 0.1.7 → 0.2.1
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/README.md +0 -2
- package/lib/commonjs/index.js +1 -9
- package/lib/module/index.js +1 -2
- package/lib/typescript/index.d.ts +0 -1
- package/lib/typescript/types.d.ts +0 -4
- package/package.json +1 -1
- package/lib/commonjs/createCdxIcon.js +0 -13
- package/lib/module/createCdxIcon.js +0 -9
- package/lib/typescript/createCdxIcon.d.ts +0 -4
package/README.md
CHANGED
|
@@ -59,8 +59,6 @@ All other props are spread onto the root `<Svg>` element, including standard Rea
|
|
|
59
59
|
| `IconNode` | Type for SVG path data consumed by the factory |
|
|
60
60
|
| `IconData` | Type for outlined + filled path data pair |
|
|
61
61
|
|
|
62
|
-
> `createCdxIcon` and `CdxIconProps` / `CdxIcon` are deprecated aliases — use the `Forge` equivalents.
|
|
63
|
-
|
|
64
62
|
### Naming conventions
|
|
65
63
|
|
|
66
64
|
Every icon is available under three export patterns:
|
package/lib/commonjs/index.js
CHANGED
|
@@ -4,15 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
createForgeIcon: true
|
|
8
|
-
createCdxIcon: true
|
|
7
|
+
createForgeIcon: true
|
|
9
8
|
};
|
|
10
|
-
Object.defineProperty(exports, "createCdxIcon", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _createCdxIcon.default;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
9
|
Object.defineProperty(exports, "createForgeIcon", {
|
|
17
10
|
enumerable: true,
|
|
18
11
|
get: function () {
|
|
@@ -56,5 +49,4 @@ Object.keys(_types).forEach(function (key) {
|
|
|
56
49
|
});
|
|
57
50
|
});
|
|
58
51
|
var _createForgeIcon = _interopRequireDefault(require("./createForgeIcon"));
|
|
59
|
-
var _createCdxIcon = _interopRequireDefault(require("./createCdxIcon"));
|
|
60
52
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/lib/module/index.js
CHANGED
|
@@ -3,5 +3,4 @@
|
|
|
3
3
|
export * from './icons';
|
|
4
4
|
export * from './aliases';
|
|
5
5
|
export * from './types';
|
|
6
|
-
export { default as createForgeIcon } from './createForgeIcon';
|
|
7
|
-
export { default as createCdxIcon } from './createCdxIcon';
|
|
6
|
+
export { default as createForgeIcon } from './createForgeIcon';
|
|
@@ -18,9 +18,5 @@ export interface ForgeIconProps extends SvgProps {
|
|
|
18
18
|
'data-testid'?: string;
|
|
19
19
|
}
|
|
20
20
|
export type ForgeIcon = ForwardRefExoticComponent<ForgeIconProps>;
|
|
21
|
-
/** @deprecated Use `ForgeIconProps` instead. */
|
|
22
|
-
export type CdxIconProps = ForgeIconProps;
|
|
23
|
-
/** @deprecated Use `ForgeIcon` instead. */
|
|
24
|
-
export type CdxIcon = ForgeIcon;
|
|
25
21
|
export {};
|
|
26
22
|
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _createForgeIcon = _interopRequireDefault(require("./createForgeIcon"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
/** @deprecated Use `createForgeIcon` instead. Will be removed in a future major release. */
|
|
10
|
-
const createCdxIcon = _createForgeIcon.default;
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-deprecated -- this module exists solely to expose the deprecated alias
|
|
13
|
-
var _default = exports.default = createCdxIcon;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import createForgeIcon from './createForgeIcon';
|
|
4
|
-
|
|
5
|
-
/** @deprecated Use `createForgeIcon` instead. Will be removed in a future major release. */
|
|
6
|
-
const createCdxIcon = createForgeIcon;
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-deprecated -- this module exists solely to expose the deprecated alias
|
|
9
|
-
export default createCdxIcon;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** @deprecated Use `createForgeIcon` instead. Will be removed in a future major release. */
|
|
2
|
-
declare const createCdxIcon: (iconName: string, iconData: import("./types").IconData) => import("./types").ForgeIcon;
|
|
3
|
-
export default createCdxIcon;
|
|
4
|
-
//# sourceMappingURL=createCdxIcon.d.ts.map
|