@ancon/wildcat-utils 1.40.38 → 1.40.40

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.
@@ -0,0 +1 @@
1
+ export declare const CourseColorsMapByOrder: Record<number, string>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={1:"#a8537b",2:"#5874cb",3:"#7e6bab",4:"#939cb0",5:"#2ab5f4",6:"#23d6c4",7:"#30b479",8:"#ecb82a",9:"#f25c4e",10:"#816257",11:"#803459",12:"#183fa0",13:"#4f4082",14:"#5d6576",15:"#1588cf",16:"#128a7f",17:"#227246",18:"#e98e23",19:"#d63b2C",20:"#5c3f36"};exports.CourseColorsMapByOrder=e;
@@ -0,0 +1,25 @@
1
+ const b = {
2
+ 1: "#a8537b",
3
+ 2: "#5874cb",
4
+ 3: "#7e6bab",
5
+ 4: "#939cb0",
6
+ 5: "#2ab5f4",
7
+ 6: "#23d6c4",
8
+ 7: "#30b479",
9
+ 8: "#ecb82a",
10
+ 9: "#f25c4e",
11
+ 10: "#816257",
12
+ 11: "#803459",
13
+ 12: "#183fa0",
14
+ 13: "#4f4082",
15
+ 14: "#5d6576",
16
+ 15: "#1588cf",
17
+ 16: "#128a7f",
18
+ 17: "#227246",
19
+ 18: "#e98e23",
20
+ 19: "#d63b2C",
21
+ 20: "#5c3f36"
22
+ };
23
+ export {
24
+ b as CourseColorsMapByOrder
25
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancon/wildcat-utils",
3
- "version": "1.40.38",
3
+ "version": "1.40.40",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -241,6 +241,11 @@
241
241
  "require": "./color/lighten.js",
242
242
  "types": "./color/lighten.d.ts"
243
243
  },
244
+ "./courses/constants": {
245
+ "import": "./courses/constants.mjs",
246
+ "require": "./courses/constants.js",
247
+ "types": "./courses/constants.d.ts"
248
+ },
244
249
  "./currency/getFormattedCurrency": {
245
250
  "import": "./currency/getFormattedCurrency.mjs",
246
251
  "require": "./currency/getFormattedCurrency.js",
@@ -1,2 +1 @@
1
- import { VariantPrice } from '@ancon/wildcat-types';
2
- export default function calculateProductWeightByPrice(variantPrice: VariantPrice, price: number): number;
1
+ export default function calculateProductWeightByPrice(variantUnitPrice: number, price: number): number;
@@ -1 +1 @@
1
- "use strict";function i(t,e){const c=t.unitPrice??0;return Number((e/c).toFixed(3))}module.exports=i;
1
+ "use strict";function r(t,e){return Number((e/t).toFixed(3))}module.exports=r;
@@ -1,7 +1,6 @@
1
- function i(t, e) {
2
- const c = t.unitPrice ?? 0;
3
- return Number((e / c).toFixed(3));
1
+ function r(e, t) {
2
+ return Number((t / e).toFixed(3));
4
3
  }
5
4
  export {
6
- i as default
5
+ r as default
7
6
  };