@cypress-design/icon-registry 0.22.0 → 0.22.2
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/compileIcon.d.ts +27 -2
- package/dist/compileIcon.d.ts.map +1 -1
- package/dist/compileIcon.test.d.ts +2 -0
- package/dist/compileIcon.test.d.ts.map +1 -0
- package/dist/icons.d.ts +15 -5
- package/dist/icons.d.ts.map +1 -1
- package/dist/iconsData/cy-technology-command-line-error_x48.icon.d.ts +5 -0
- package/dist/iconsData/cy-technology-command-line-error_x48.icon.d.ts.map +1 -0
- package/dist/iconsData/icon.model.d.ts +1 -1
- package/dist/iconsData/icon.model.d.ts.map +1 -1
- package/dist/iconsData/iconSet.d.ts.map +1 -1
- package/dist/iconsList.d.ts +1 -0
- package/dist/iconsList.d.ts.map +1 -1
- package/dist/index.es.mjs +24 -6
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +24 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1291,6 +1291,13 @@
|
|
|
1291
1291
|
hasSecondaryStrokeColor: false,
|
|
1292
1292
|
hasSecondaryFillColor: false
|
|
1293
1293
|
},
|
|
1294
|
+
'technology-command-line-error': {
|
|
1295
|
+
availableSizes: ['48'],
|
|
1296
|
+
hasStrokeColor: ["48"],
|
|
1297
|
+
hasFillColor: ["48"],
|
|
1298
|
+
hasSecondaryStrokeColor: ["48"],
|
|
1299
|
+
hasSecondaryFillColor: ["48"]
|
|
1300
|
+
},
|
|
1294
1301
|
'technology-command-line': {
|
|
1295
1302
|
availableSizes: ['16'],
|
|
1296
1303
|
hasStrokeColor: ["16"],
|
|
@@ -1524,6 +1531,8 @@
|
|
|
1524
1531
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1525
1532
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1526
1533
|
***************************************************************************** */
|
|
1534
|
+
/* global Reflect, Promise */
|
|
1535
|
+
|
|
1527
1536
|
|
|
1528
1537
|
function __rest(s, e) {
|
|
1529
1538
|
var t = {};
|
|
@@ -6943,6 +6952,12 @@
|
|
|
6943
6952
|
data: `<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m3 6 3.5 3.5L3 13m6 0h4" class="icon-dark"/>`
|
|
6944
6953
|
};
|
|
6945
6954
|
|
|
6955
|
+
/* 🤖 this file was generated by svg-to-ts */
|
|
6956
|
+
const cyTechnologyCommandLineErrorX48 = {
|
|
6957
|
+
name: 'technologyCommandLineErrorX48',
|
|
6958
|
+
data: `<rect fill="currentColor"/><path fill="#E1E3ED" d="M43 37V16H5v21a3 3 0 0 0 3 3h32a3 3 0 0 0 3-3Z" class="icon-light"/><path fill="#747994" d="M13 28a1 1 0 1 0 0 2v-2Zm-2 3a1 1 0 1 0 0 2v-2Zm2-6a1 1 0 1 0 0 2v-2Zm-2-3a1 1 0 1 0 0 2v-2Zm13 2a1 1 0 1 0 0-2v2Zm-5-3a1 1 0 1 0 0-2v2ZM9 19a1 1 0 1 0 0 2v-2Zm14.01 14a1 1 0 1 0 0-2v2ZM29 27a1 1 0 1 0 0-2v2ZM9 34a1 1 0 1 0 0 2v-2Zm17-4a1 1 0 1 0 0-2v2Zm-8 6a1 1 0 1 0 0-2v2ZM8 9h32V7H8v2Zm34 2v26h2V11h-2ZM6 37V11H4v26h2Zm2 2a2 2 0 0 1-2-2H4a4 4 0 0 0 4 4v-2Zm34-2a2 2 0 0 1-2 2v2a4 4 0 0 0 4-4h-2ZM40 9a2 2 0 0 1 2 2h2a4 4 0 0 0-4-4v2ZM8 7a4 4 0 0 0-4 4h2a2 2 0 0 1 2-2V7Zm-4 4v5h2v-5H4Zm40 5v-5h-2v5h2Zm0 21V16h-2v21h2ZM4 16v21h2V16H4Zm1 1h38v-2H5v2Zm35 22H8v2h32v-2Zm-27-9h4v-2h-4v2Zm3 1h-5v2h5v-2Zm0-4h8v-2h-8v2Zm-3 0h2v-2h-2v2Zm-2-3h5v-2h-5v2Zm13-2h-6.99v2H24v-2Zm-5-3h-6v2h6v-2ZM9 21h3v-2H9v2Zm8 12h6.01v-2H17v2Zm8-6h4v-2h-4v2Zm-7 3h5v-2h-5v2Zm-4 4H9v2h5v-2Zm10-4h2v-2h-2v2Zm-9 6h3v-2h-3v2ZM10 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM16 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" class="icon-dark"/><path fill="#F8C4CD" d="M34 36.998a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" class="icon-light-secondary"/><path fill="#F8C4CD" fill-rule="evenodd" d="M31 31.498a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v1.17a.5.5 0 0 0 .75.432l1.013-.584a.5.5 0 0 1 .683.183l1.5 2.598a.5.5 0 0 1-.183.683l-1.013.585a.5.5 0 0 0 0 .866l1.013.585a.5.5 0 0 1 .183.683l-1.5 2.598a.5.5 0 0 1-.683.183l-1.013-.585a.5.5 0 0 0-.75.433v1.17a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1.17a.5.5 0 0 0-.75-.432l-1.013.584a.5.5 0 0 1-.683-.183l-1.5-2.598a.5.5 0 0 1 .183-.683l1.013-.585a.5.5 0 0 0 0-.866l-1.013-.585a.5.5 0 0 1-.183-.683l1.5-2.598a.5.5 0 0 1 .683-.183l1.013.584a.5.5 0 0 0 .75-.433v-1.169Zm2 6.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" class="icon-light-secondary" clip-rule="evenodd"/><path stroke="#C62B49" stroke-linejoin="round" stroke-width="2" d="M34 36.998a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" class="icon-dark-secondary"/><path stroke="#C62B49" stroke-linejoin="round" stroke-width="2" d="M31 31.498a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v1.17a.5.5 0 0 0 .75.432l1.013-.584a.5.5 0 0 1 .683.183l1.5 2.598a.5.5 0 0 1-.183.683l-1.013.585a.5.5 0 0 0 0 .866l1.013.585a.5.5 0 0 1 .183.683l-1.5 2.598a.5.5 0 0 1-.683.183l-1.013-.585a.5.5 0 0 0-.75.433v1.17a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1.17a.5.5 0 0 0-.75-.432l-1.013.584a.5.5 0 0 1-.683-.183l-1.5-2.598a.5.5 0 0 1 .183-.683l1.013-.585a.5.5 0 0 0 0-.866l-1.013-.585a.5.5 0 0 1-.183-.683l1.5-2.598a.5.5 0 0 1 .683-.183l1.013.584a.5.5 0 0 0 .75-.433v-1.169Zm2 6.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" class="icon-dark-secondary" clip-rule="evenodd"/>`
|
|
6959
|
+
};
|
|
6960
|
+
|
|
6946
6961
|
/* 🤖 this file was generated by svg-to-ts */
|
|
6947
6962
|
const cyTechnologyCypressX16 = {
|
|
6948
6963
|
name: 'technologyCypressX16',
|
|
@@ -7443,6 +7458,7 @@
|
|
|
7443
7458
|
cyTechnologyCodeEditorX16,
|
|
7444
7459
|
cyTechnologyCodeEditorX24,
|
|
7445
7460
|
cyTechnologyCommandLineX16,
|
|
7461
|
+
cyTechnologyCommandLineErrorX48,
|
|
7446
7462
|
cyTechnologyCypressX16,
|
|
7447
7463
|
cyTechnologyDashboardCheckmarkX48,
|
|
7448
7464
|
cyTechnologyDashboardFailX48,
|
|
@@ -7487,19 +7503,20 @@
|
|
|
7487
7503
|
];
|
|
7488
7504
|
|
|
7489
7505
|
const compileIcon = (props) => {
|
|
7490
|
-
const { name } = props;
|
|
7506
|
+
const { interactiveColorsOnGroup, name } = props, cleanProps = __rest(props, ["interactiveColorsOnGroup", "name"]);
|
|
7491
7507
|
const { availableSizes } = iconsMetadata[name];
|
|
7492
|
-
const { sizeWithDefault, compiledClasses } = getComponentAttributes(Object.assign(Object.assign({},
|
|
7508
|
+
const { sizeWithDefault, compiledClasses } = getComponentAttributes(Object.assign(Object.assign({}, cleanProps), { availableSizes,
|
|
7509
|
+
interactiveColorsOnGroup }));
|
|
7493
7510
|
const nameWithSize = camelCase$1(`${name}_x${sizeWithDefault}`);
|
|
7494
7511
|
const iconData = iconSet.find((i) => i.name === nameWithSize);
|
|
7495
7512
|
if (!iconData) {
|
|
7496
7513
|
throw new Error(`icon '${name}' at size ${sizeWithDefault} not found`);
|
|
7497
7514
|
}
|
|
7498
|
-
|
|
7515
|
+
const compiledProps = Object.assign(Object.assign({}, cleanProps), { size: sizeWithDefault, compiledClasses, body: iconData.data });
|
|
7516
|
+
return compiledProps;
|
|
7499
7517
|
};
|
|
7500
7518
|
const getComponentAttributes = (props) => {
|
|
7501
|
-
const { size, availableSizes, interactiveColorsOnGroup
|
|
7502
|
-
otherProps = __rest(props, ["size", "availableSizes", "interactiveColorsOnGroup", "name"]);
|
|
7519
|
+
const { size, availableSizes, interactiveColorsOnGroup } = props, otherProps = __rest(props, ["size", "availableSizes", "interactiveColorsOnGroup"]);
|
|
7503
7520
|
const sizeWithDefault = size !== null && size !== void 0 ? size : (availableSizes.length >= 1
|
|
7504
7521
|
? availableSizes.indexOf('16') > -1
|
|
7505
7522
|
? '16'
|
|
@@ -7508,6 +7525,7 @@
|
|
|
7508
7525
|
const protectedInteractiveColorsOnGroup = interactiveColorsOnGroup === undefined
|
|
7509
7526
|
? otherProps['interactive-colors-on-group']
|
|
7510
7527
|
: interactiveColorsOnGroup;
|
|
7528
|
+
delete otherProps['interactive-colors-on-group'];
|
|
7511
7529
|
// TODO: when all icons are converted to using the design system,
|
|
7512
7530
|
// replace dark by stroke and light by fill,
|
|
7513
7531
|
// both here and in the windi plugins configs.
|
|
@@ -7793,6 +7811,7 @@
|
|
|
7793
7811
|
exports.cyTechnologyBrowserTesting2X48 = cyTechnologyBrowserTesting2X48;
|
|
7794
7812
|
exports.cyTechnologyCodeEditorX16 = cyTechnologyCodeEditorX16;
|
|
7795
7813
|
exports.cyTechnologyCodeEditorX24 = cyTechnologyCodeEditorX24;
|
|
7814
|
+
exports.cyTechnologyCommandLineErrorX48 = cyTechnologyCommandLineErrorX48;
|
|
7796
7815
|
exports.cyTechnologyCommandLineX16 = cyTechnologyCommandLineX16;
|
|
7797
7816
|
exports.cyTechnologyCypressX16 = cyTechnologyCypressX16;
|
|
7798
7817
|
exports.cyTechnologyDashboardCheckmarkX48 = cyTechnologyDashboardCheckmarkX48;
|