@quicktalog/common 1.14.0 → 1.16.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/dist/constants.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_EMAIL = exports.layouts = exports.themes = void 0;
4
- exports.themes = [
1
+ export const themes = [
5
2
  {
6
3
  id: 1,
7
4
  key: "theme-advent-1",
@@ -18,41 +15,48 @@ exports.themes = [
18
15
  },
19
16
  {
20
17
  id: 3,
18
+ key: "theme-monochrome",
19
+ label: "Monochrome",
20
+ description: "A high-contrast, minimalist look focused on clarity and modern professionalism. Ideal for products that value simplicity, readability, and a timeless aesthetic.",
21
+ type: "light",
22
+ },
23
+ {
24
+ id: 4,
21
25
  key: "theme-elegant",
22
26
  label: "Elegant",
23
27
  description: "A dark, refined theme with a subtle gradient background, light text, and cool blue accents. Ideal for upscale or modern venues seeking a sophisticated, minimal look. Uses serif headings and clean layouts for a premium feel.",
24
28
  type: "dark",
25
29
  },
26
30
  {
27
- id: 4,
31
+ id: 5,
28
32
  key: "theme-organic",
29
33
  label: "Organic",
30
34
  description: "A fresh, natural theme with light beige backgrounds, green and brown accents, and soft, rounded typography. Ideal for organic, vegan, or eco-friendly restaurants seeking a wholesome, earthy vibe.",
31
35
  type: "light",
32
36
  },
33
37
  {
34
- id: 5,
38
+ id: 6,
35
39
  key: "theme-modern",
36
40
  label: "Modern",
37
41
  description: "A bold, contemporary theme with deep blue backgrounds, white and pink accents, and modern sans-serif typography. Perfect for trendy or urban venues wanting a striking, energetic appearance.",
38
42
  type: "dark",
39
43
  },
40
44
  {
41
- id: 6,
45
+ id: 7,
42
46
  key: "theme-luxury",
43
47
  label: "Luxury",
44
48
  description: "A light, luxurious theme with gold and cream tones, dark elegant text, and premium accents. Designed for high-end restaurants, it features classic serif headings, gold highlights, and a soft, inviting background.",
45
49
  type: "light",
46
50
  },
47
51
  {
48
- id: 7,
52
+ id: 8,
49
53
  key: "theme-creative",
50
54
  label: "Creative",
51
55
  description: "A vibrant, artistic theme with dark backgrounds, bright accent colors (red, yellow, blue), and playful, bold typography. Great for creative spaces, cafes, or venues wanting a fun, expressive look.",
52
56
  type: "dark",
53
57
  },
54
58
  ];
55
- exports.layouts = [
59
+ export const layouts = [
56
60
  {
57
61
  key: "variant_1",
58
62
  label: "Side Image",
@@ -78,4 +82,4 @@ exports.layouts = [
78
82
  description: "Carousel layout: Catalogue items are displayed in a horizontal scrollable carousel, allowing users to swipe or scroll through items. Great for featured items or visually rich catalogues.",
79
83
  },
80
84
  ];
81
- exports.DEFAULT_EMAIL = "quicktalog@outlook.com";
85
+ export const DEFAULT_EMAIL = "quicktalog@outlook.com";
package/dist/helpers.js CHANGED
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateUniqueSlug = void 0;
4
- exports.fetchImageFromUnsplash = fetchImageFromUnsplash;
5
- async function fetchImageFromUnsplash(query) {
1
+ export async function fetchImageFromUnsplash(query) {
6
2
  try {
7
3
  const res = await fetch(`https://api.unsplash.com/search/photos?page=1&per_page=1&query=${encodeURIComponent(query)}`, {
8
4
  headers: {
@@ -19,7 +15,7 @@ async function fetchImageFromUnsplash(query) {
19
15
  }
20
16
  return "https://static1.squarespace.com/static/5898e29c725e25e7132d5a5a/58aa11bc9656ca13c4524c68/58aa11e99656ca13c45253e2/1487540713345/600x400-Image-Placeholder.jpg?format=original";
21
17
  }
22
- const generateUniqueSlug = (name) => {
18
+ export const generateUniqueSlug = (name) => {
23
19
  const slug = name
24
20
  .toLowerCase()
25
21
  .trim()
@@ -28,4 +24,3 @@ const generateUniqueSlug = (name) => {
28
24
  .replace(/^-|-$/g, "");
29
25
  return slug;
30
26
  };
31
- exports.generateUniqueSlug = generateUniqueSlug;
package/dist/index.js CHANGED
@@ -1,20 +1,4 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./constants"), exports);
18
- __exportStar(require("./helpers"), exports);
19
- __exportStar(require("./types"), exports);
20
- __exportStar(require("./pricing"), exports);
1
+ export * from "./constants";
2
+ export * from "./helpers";
3
+ export * from "./types";
4
+ export * from "./pricing";
package/dist/pricing.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tiers = void 0;
4
- exports.tiers = [
1
+ export const tiers = [
5
2
  {
6
3
  id: 0,
7
4
  name: "Starter",
package/dist/types.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktalog/common",
3
- "version": "1.14.0",
3
+ "version": "1.16.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -17,6 +17,14 @@ export const themes = [
17
17
  },
18
18
  {
19
19
  id: 3,
20
+ key: "theme-monochrome",
21
+ label: "Monochrome",
22
+ description:
23
+ "A high-contrast, minimalist look focused on clarity and modern professionalism. Ideal for products that value simplicity, readability, and a timeless aesthetic.",
24
+ type: "light",
25
+ },
26
+ {
27
+ id: 4,
20
28
  key: "theme-elegant",
21
29
  label: "Elegant",
22
30
  description:
@@ -24,7 +32,7 @@ export const themes = [
24
32
  type: "dark",
25
33
  },
26
34
  {
27
- id: 4,
35
+ id: 5,
28
36
  key: "theme-organic",
29
37
  label: "Organic",
30
38
  description:
@@ -32,7 +40,7 @@ export const themes = [
32
40
  type: "light",
33
41
  },
34
42
  {
35
- id: 5,
43
+ id: 6,
36
44
  key: "theme-modern",
37
45
  label: "Modern",
38
46
  description:
@@ -40,7 +48,7 @@ export const themes = [
40
48
  type: "dark",
41
49
  },
42
50
  {
43
- id: 6,
51
+ id: 7,
44
52
  key: "theme-luxury",
45
53
  label: "Luxury",
46
54
  description:
@@ -48,7 +56,7 @@ export const themes = [
48
56
  type: "light",
49
57
  },
50
58
  {
51
- id: 7,
59
+ id: 8,
52
60
  key: "theme-creative",
53
61
  label: "Creative",
54
62
  description:
package/tsconfig.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "module": "commonjs",
5
- "declaration": true,
6
- "outDir": "dist",
7
- "strict": true,
8
- "esModuleInterop": true,
9
- "skipLibCheck": true
10
- },
11
- "include": ["src"],
12
- "exclude": ["dist"]
2
+ "compilerOptions": {
3
+ "module": "ES2020",
4
+ "target": "ES2020",
5
+ "declaration": true,
6
+ "outDir": "dist",
7
+ "strict": true,
8
+ "esModuleInterop": true,
9
+ "skipLibCheck": true
10
+ },
11
+ "include": ["src"],
12
+ "exclude": ["dist"]
13
13
  }