@coveord/plasma-react-icons 56.5.0 → 56.8.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.
@@ -1,6 +1,4 @@
1
- /**
2
- * Transforms ArrowUpSize16Px into arrowUp
3
- */ "use strict";
1
+ "use strict";
4
2
  Object.defineProperty(exports, "__esModule", {
5
3
  value: true
6
4
  });
@@ -10,7 +8,9 @@ Object.defineProperty(exports, "MockUtils", {
10
8
  return MockUtils;
11
9
  }
12
10
  });
13
- var formatLabel = function(name) {
11
+ /**
12
+ * Transforms ArrowUpSize16Px into arrowUp
13
+ */ var formatLabel = function(name) {
14
14
  var label = name.replace(/(.+)Size\d+Px/, '$1');
15
15
  return label.charAt(0).toLowerCase() + label.slice(1);
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/mock/MockUtils.ts"],"sourcesContent":["/**\n * Transforms ArrowUpSize16Px into arrowUp\n */\nconst formatLabel = (name: string) => {\n const label = name.replace(/(.+)Size\\d+Px/, '$1');\n return label.charAt(0).toLowerCase() + label.slice(1);\n};\n\nconst transformToKebabCase = (name: string) =>\n name.charAt(0).toLowerCase() +\n name\n .slice(1)\n .replace(/([a-z])([A-Z])/g, '$1-$2') // Add hyphen between camelCase\n .replace(/([a-zA-Z])(\\d+)/g, '$1-$2') // Add hyphen before numbers\n .toLowerCase();\n\nconst formatToTablerClassName = (name: string) =>\n name.startsWith('Icon') ? `tabler-icon tabler-${transformToKebabCase(name)}` : name;\n\nexport const MockUtils = {\n formatLabel,\n formatToTablerClassName,\n};\n"],"names":["MockUtils","formatLabel","name","label","replace","charAt","toLowerCase","slice","transformToKebabCase","formatToTablerClassName","startsWith"],"mappings":"AAAA;;CAEC;;;;+BAiBYA;;;eAAAA;;;AAhBb,IAAMC,cAAc,SAACC;IACjB,IAAMC,QAAQD,KAAKE,OAAO,CAAC,iBAAiB;IAC5C,OAAOD,MAAME,MAAM,CAAC,GAAGC,WAAW,KAAKH,MAAMI,KAAK,CAAC;AACvD;AAEA,IAAMC,uBAAuB,SAACN;WAC1BA,KAAKG,MAAM,CAAC,GAAGC,WAAW,KAC1BJ,KACKK,KAAK,CAAC,GACNH,OAAO,CAAC,mBAAmB,SAAS,+BAA+B;KACnEA,OAAO,CAAC,oBAAoB,SAAS,4BAA4B;KACjEE,WAAW;;AAEpB,IAAMG,0BAA0B,SAACP;WAC7BA,KAAKQ,UAAU,CAAC,UAAU,AAAC,sBAAgD,OAA3BF,qBAAqBN,SAAUA;;AAE5E,IAAMF,YAAY;IACrBC,aAAAA;IACAQ,yBAAAA;AACJ"}
1
+ {"version":3,"sources":["../../../src/mock/MockUtils.ts"],"sourcesContent":["/**\n * Transforms ArrowUpSize16Px into arrowUp\n */\nconst formatLabel = (name: string) => {\n const label = name.replace(/(.+)Size\\d+Px/, '$1');\n return label.charAt(0).toLowerCase() + label.slice(1);\n};\n\nconst transformToKebabCase = (name: string) =>\n name.charAt(0).toLowerCase() +\n name\n .slice(1)\n .replace(/([a-z])([A-Z])/g, '$1-$2') // Add hyphen between camelCase\n .replace(/([a-zA-Z])(\\d+)/g, '$1-$2') // Add hyphen before numbers\n .toLowerCase();\n\nconst formatToTablerClassName = (name: string) =>\n name.startsWith('Icon') ? `tabler-icon tabler-${transformToKebabCase(name)}` : name;\n\nexport const MockUtils = {\n formatLabel,\n formatToTablerClassName,\n};\n"],"names":["MockUtils","formatLabel","name","label","replace","charAt","toLowerCase","slice","transformToKebabCase","formatToTablerClassName","startsWith"],"mappings":";;;;+BAmBaA;;;eAAAA;;;AAnBb;;CAEC,GACD,IAAMC,cAAc,SAACC;IACjB,IAAMC,QAAQD,KAAKE,OAAO,CAAC,iBAAiB;IAC5C,OAAOD,MAAME,MAAM,CAAC,GAAGC,WAAW,KAAKH,MAAMI,KAAK,CAAC;AACvD;AAEA,IAAMC,uBAAuB,SAACN;WAC1BA,KAAKG,MAAM,CAAC,GAAGC,WAAW,KAC1BJ,KACKK,KAAK,CAAC,GACNH,OAAO,CAAC,mBAAmB,SAAS,+BAA+B;KACnEA,OAAO,CAAC,oBAAoB,SAAS,4BAA4B;KACjEE,WAAW;;AAEpB,IAAMG,0BAA0B,SAACP;WAC7BA,KAAKQ,UAAU,CAAC,UAAU,AAAC,sBAAgD,OAA3BF,qBAAqBN,SAAUA;;AAE5E,IAAMF,YAAY;IACrBC,aAAAA;IACAQ,yBAAAA;AACJ"}