@cdx-ui/icons 0.1.6 → 0.2.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/README.md +0 -2
- package/lib/commonjs/icons/circle_circle.js +1 -1
- package/lib/commonjs/icons/square_circle.js +1 -1
- package/lib/commonjs/icons/triangle_circle.js +1 -1
- package/lib/commonjs/index.js +1 -9
- package/lib/module/icons/circle_circle.js +1 -1
- package/lib/module/icons/square_circle.js +1 -1
- package/lib/module/icons/triangle_circle.js +1 -1
- 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:
|
|
@@ -14,7 +14,7 @@ const CircleCircle = (0, _createForgeIcon.default)('CircleCircle', {
|
|
|
14
14
|
"d": "M480-360q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35ZM324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM480-160q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Zm0-320Zm141.5 141.5Q680-397 680-480t-58.5-141.5Q563-680 480-680t-141.5 58.5Q280-563 280-480t58.5 141.5Q397-280 480-280t141.5-58.5Z"
|
|
15
15
|
}]],
|
|
16
16
|
filled: [["path", {
|
|
17
|
-
"d": "M324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.
|
|
17
|
+
"d": "M324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM480-360q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35Zm141.5 21.5Q680-397 680-480t-58.5-141.5Q563-680 480-680t-141.5 58.5Q280-563 280-480t58.5 141.5Q397-280 480-280t141.5-58.5Z"
|
|
18
18
|
}]]
|
|
19
19
|
});
|
|
20
20
|
var _default = exports.default = CircleCircle;
|
|
@@ -14,7 +14,7 @@ const SquareCircle = (0, _createForgeIcon.default)('SquareCircle', {
|
|
|
14
14
|
"d": "M300-300h360v-360H300v360Zm80-80v-200h200v200H380Zm-56 268.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM480-160q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Zm0-320Z"
|
|
15
15
|
}]],
|
|
16
16
|
filled: [["path", {
|
|
17
|
-
"d": "
|
|
17
|
+
"d": "M324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM300-300h360v-360H300v360Zm80-80v-200h200v200H380Z"
|
|
18
18
|
}]]
|
|
19
19
|
});
|
|
20
20
|
var _default = exports.default = SquareCircle;
|
|
@@ -14,7 +14,7 @@ const TriangleCircle = (0, _createForgeIcon.default)('TriangleCircle', {
|
|
|
14
14
|
"d": "M240-340h480L480-740 240-340Zm141-80 99-164 98 164H381Zm-57 308.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM480-160q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Zm0-320Z"
|
|
15
15
|
}]],
|
|
16
16
|
filled: [["path", {
|
|
17
|
-
"d": "
|
|
17
|
+
"d": "M324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM240-340h480L480-740 240-340Zm141-80 99-164 98 164H381Z"
|
|
18
18
|
}]]
|
|
19
19
|
});
|
|
20
20
|
var _default = exports.default = TriangleCircle;
|
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 }; }
|
|
@@ -10,7 +10,7 @@ const CircleCircle = createForgeIcon('CircleCircle', {
|
|
|
10
10
|
"d": "M480-360q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35ZM324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM480-160q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Zm0-320Zm141.5 141.5Q680-397 680-480t-58.5-141.5Q563-680 480-680t-141.5 58.5Q280-563 280-480t58.5 141.5Q397-280 480-280t141.5-58.5Z"
|
|
11
11
|
}]],
|
|
12
12
|
filled: [["path", {
|
|
13
|
-
"d": "M324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.
|
|
13
|
+
"d": "M324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM480-360q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35Zm141.5 21.5Q680-397 680-480t-58.5-141.5Q563-680 480-680t-141.5 58.5Q280-563 280-480t58.5 141.5Q397-280 480-280t141.5-58.5Z"
|
|
14
14
|
}]]
|
|
15
15
|
});
|
|
16
16
|
export default CircleCircle;
|
|
@@ -10,7 +10,7 @@ const SquareCircle = createForgeIcon('SquareCircle', {
|
|
|
10
10
|
"d": "M300-300h360v-360H300v360Zm80-80v-200h200v200H380Zm-56 268.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM480-160q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Zm0-320Z"
|
|
11
11
|
}]],
|
|
12
12
|
filled: [["path", {
|
|
13
|
-
"d": "
|
|
13
|
+
"d": "M324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM300-300h360v-360H300v360Zm80-80v-200h200v200H380Z"
|
|
14
14
|
}]]
|
|
15
15
|
});
|
|
16
16
|
export default SquareCircle;
|
|
@@ -10,7 +10,7 @@ const TriangleCircle = createForgeIcon('TriangleCircle', {
|
|
|
10
10
|
"d": "M240-340h480L480-740 240-340Zm141-80 99-164 98 164H381Zm-57 308.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM480-160q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Zm0-320Z"
|
|
11
11
|
}]],
|
|
12
12
|
filled: [["path", {
|
|
13
|
-
"d": "
|
|
13
|
+
"d": "M324-111.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM240-340h480L480-740 240-340Zm141-80 99-164 98 164H381Z"
|
|
14
14
|
}]]
|
|
15
15
|
});
|
|
16
16
|
export default TriangleCircle;
|
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
|