tecitheme 0.11.1 → 0.11.3
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/components/FeatureTable.svelte +242 -252
- package/dist/components/PartnersList.svelte +4 -4
- package/dist/components/PartnersList.svelte.d.ts +2 -0
- package/dist/layouts/blocks.svelte +6 -0
- package/dist/partners.d.ts +8 -2
- package/dist/partners.js +4 -3
- package/dist/utils.js +4 -4
- package/package.json +1 -1
- package/dist/partners.json +0 -758
package/dist/partners.d.ts
CHANGED
|
@@ -23,12 +23,18 @@ export type Partner = {
|
|
|
23
23
|
*
|
|
24
24
|
* product (string): The product the user is looking to purchase
|
|
25
25
|
* region (string): Name of the region the user is looking to purchase in\
|
|
26
|
+
* all_partners (): JSON content of all of our partners
|
|
26
27
|
*/
|
|
27
|
-
export declare function filter_partners(product: string, region: string[]
|
|
28
|
+
export declare function filter_partners(product: string, region: string[], all_partners: {
|
|
29
|
+
partners: Partner[];
|
|
30
|
+
}): {
|
|
28
31
|
"partners": Partner[];
|
|
29
32
|
};
|
|
30
33
|
/** Gets the regions supported by resellers for a product
|
|
31
34
|
*
|
|
32
35
|
* product (string): The product the customer is interested in purchasing
|
|
36
|
+
* all_partners (): JSON content of all of our partners
|
|
33
37
|
*/
|
|
34
|
-
export declare function get_supported_regions(product: string
|
|
38
|
+
export declare function get_supported_regions(product: string, all_partners: {
|
|
39
|
+
partners: Partner[];
|
|
40
|
+
}): string[];
|
package/dist/partners.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import all_partners from "./partners.json";
|
|
2
1
|
/**Filters our list of known partners by product and region
|
|
3
2
|
*
|
|
4
3
|
* product (string): The product the user is looking to purchase
|
|
5
4
|
* region (string): Name of the region the user is looking to purchase in\
|
|
5
|
+
* all_partners (): JSON content of all of our partners
|
|
6
6
|
*/
|
|
7
|
-
export function filter_partners(product, region) {
|
|
7
|
+
export function filter_partners(product, region, all_partners) {
|
|
8
8
|
product = product.toLowerCase();
|
|
9
9
|
region = region.map(reg => reg.toLowerCase());
|
|
10
10
|
let partners = all_partners.partners.filter((partner) => {
|
|
@@ -21,8 +21,9 @@ export function filter_partners(product, region) {
|
|
|
21
21
|
/** Gets the regions supported by resellers for a product
|
|
22
22
|
*
|
|
23
23
|
* product (string): The product the customer is interested in purchasing
|
|
24
|
+
* all_partners (): JSON content of all of our partners
|
|
24
25
|
*/
|
|
25
|
-
export function get_supported_regions(product) {
|
|
26
|
+
export function get_supported_regions(product, all_partners) {
|
|
26
27
|
product = product.toLowerCase();
|
|
27
28
|
let regions = [];
|
|
28
29
|
let partners = product == "any" ?
|
package/dist/utils.js
CHANGED
|
@@ -165,16 +165,16 @@ export function getColorStyles(type, color){
|
|
|
165
165
|
case 'gradient-dark':
|
|
166
166
|
switch (color) {
|
|
167
167
|
case 'pyrosim':
|
|
168
|
-
classes = "from-pyrosim-dark to-
|
|
168
|
+
classes = "from-pyrosim-dark to-gray-800/30"
|
|
169
169
|
break;
|
|
170
170
|
case 'pathfinder':
|
|
171
|
-
classes = "from-pathfinder-dark to-
|
|
171
|
+
classes = "from-pathfinder-dark to-gray-800/30"
|
|
172
172
|
break;
|
|
173
173
|
case 'ventus':
|
|
174
|
-
classes = "from-ventus-dark to-
|
|
174
|
+
classes = "from-ventus-dark to-gray-800/30"
|
|
175
175
|
break;
|
|
176
176
|
case 'teci':
|
|
177
|
-
classes = "from-teci-blue-dark to-
|
|
177
|
+
classes = "from-teci-blue-dark to-gray-800/30"
|
|
178
178
|
break;
|
|
179
179
|
default:
|
|
180
180
|
classes = "bg-white"
|