cloudcommerce 0.0.83 → 0.0.85
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/.vscode/extensions.json +1 -1
- package/.vscode/settings.json +2 -3
- package/CHANGELOG.md +27 -0
- package/package.json +6 -6
- package/packages/api/lib/api.d.ts +8 -0
- package/packages/api/lib/api.js +24 -3
- package/packages/api/lib/api.js.map +1 -1
- package/packages/api/lib/types.d.ts +2 -0
- package/packages/api/package.json +6 -1
- package/packages/api/src/api.ts +31 -3
- package/packages/api/src/types.ts +2 -0
- package/packages/api/types.ts +2 -0
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/firebase/lib/init.d.ts +1 -1
- package/packages/firebase/lib/init.js +1 -1
- package/packages/firebase/lib/init.js.map +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/firebase/src/init.ts +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +1 -1
- package/packages/storefront/content/header.json +3 -1
- package/packages/storefront/dist/client/assets/_...2fc8f657.css +1 -0
- package/packages/storefront/dist/client/assets/{_...11681504.css → _...7af61807.css} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/client/{workbox-8b24c3ff.js → workbox-361aba39.js} +1 -1
- package/packages/storefront/dist/server/entry.mjs +605 -94
- package/packages/storefront/package.json +8 -7
- package/packages/storefront/src/env.d.ts +1 -1
- package/packages/storefront/src/lib/components/TheHeader.vue +15 -0
- package/packages/storefront/src/lib/components/TopBar.vue +141 -0
- package/packages/storefront/src/lib/helpers/image.ts +36 -0
- package/packages/storefront/src/lib/layouts/Base.astro +24 -16
- package/packages/storefront/src/lib/layouts/{meta/Head.astro → BaseHead.astro} +4 -3
- package/packages/storefront/src/lib/layouts/{meta/Json.astro → BaseStateJson.astro} +1 -1
- package/packages/storefront/src/lib/layouts/Pages.astro +2 -7
- package/packages/storefront/src/lib/layouts/PagesHeader.astro +92 -0
- package/packages/storefront/src/lib/ssr-context.ts +6 -4
- package/packages/storefront/src/pages/[...slug].astro +4 -0
- package/packages/storefront/src/types/cms-code.d.ts +5 -0
- package/packages/storefront/src/types/cms-contacts.d.ts +5 -0
- package/packages/storefront/src/types/cms-header.d.ts +5 -0
- package/packages/storefront/src/types/cms-settings.d.ts +5 -0
- package/packages/storefront/src/types/cms-social.d.ts +5 -0
- package/packages/storefront/tailwind.config.cjs +78 -0
- package/packages/storefront/uno.config.ts +55 -30
- package/packages/types/index.ts +1 -1
- package/packages/types/package.json +1 -1
- package/tsconfig.json +2 -1
- package/packages/storefront/dist/client/assets/_...65ca64e2.css +0 -1
- package/packages/storefront/src/html.d.ts +0 -23
- package/packages/storefront/tailwind.config.ts +0 -30
|
@@ -3,16 +3,15 @@ import {
|
|
|
3
3
|
presetUno,
|
|
4
4
|
transformerDirectives,
|
|
5
5
|
UserConfig,
|
|
6
|
+
Rule,
|
|
6
7
|
} from 'unocss';
|
|
7
|
-
import presetAttributify from '@unocss/preset-attributify';
|
|
8
8
|
import presetIcons from '@unocss/preset-icons';
|
|
9
|
-
import { genTailwindConfig } from './tailwind.config';
|
|
9
|
+
import { genTailwindConfig } from './tailwind.config.cjs';
|
|
10
10
|
|
|
11
11
|
const genUnoCSSConfig = ({
|
|
12
12
|
colorVariants,
|
|
13
|
-
brandIcons = '
|
|
14
|
-
|
|
15
|
-
brandShortcuts = [
|
|
13
|
+
brandIcons = 'bxl',
|
|
14
|
+
brandIconsShortcuts = [
|
|
16
15
|
'facebook',
|
|
17
16
|
'twitter',
|
|
18
17
|
'instagram',
|
|
@@ -24,6 +23,9 @@ const genUnoCSSConfig = ({
|
|
|
24
23
|
'telegram',
|
|
25
24
|
'whatsapp',
|
|
26
25
|
'messenger',
|
|
26
|
+
],
|
|
27
|
+
brandLogos = 'logos',
|
|
28
|
+
brandLogosShortcuts = [
|
|
27
29
|
'visa',
|
|
28
30
|
'mastercard',
|
|
29
31
|
'paypal',
|
|
@@ -34,38 +36,61 @@ const genUnoCSSConfig = ({
|
|
|
34
36
|
'hipercard',
|
|
35
37
|
'dinersclub',
|
|
36
38
|
],
|
|
39
|
+
generalIcons = 'heroicons',
|
|
37
40
|
shoppingCartIcon = 'shopping-bag',
|
|
38
41
|
}: {
|
|
39
42
|
colorVariants?: string[],
|
|
40
43
|
brandIcons?: string,
|
|
44
|
+
brandIconsShortcuts?: Array<string | [string, string]>,
|
|
45
|
+
brandLogos?: string,
|
|
46
|
+
brandLogosShortcuts?: Array<string | [string, string]>,
|
|
41
47
|
generalIcons?: string,
|
|
42
|
-
brandShortcuts?: string[],
|
|
43
48
|
shoppingCartIcon?: string,
|
|
44
|
-
} = {}): UserConfig =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
colors: genTailwindConfig({ colorVariants }).theme.extend.colors,
|
|
54
|
-
},
|
|
55
|
-
transformers: [
|
|
56
|
-
transformerDirectives(),
|
|
57
|
-
],
|
|
58
|
-
presets: [
|
|
59
|
-
presetUno(),
|
|
60
|
-
presetAttributify(),
|
|
61
|
-
presetIcons({
|
|
62
|
-
extraProperties: {
|
|
63
|
-
display: 'inline-block',
|
|
64
|
-
'vertical-align': 'middle',
|
|
49
|
+
} = {}): UserConfig => {
|
|
50
|
+
const tailwindConfig = genTailwindConfig({ colorVariants });
|
|
51
|
+
const rules: Rule[] = [];
|
|
52
|
+
tailwindConfig.plugins?.forEach((plugin) => {
|
|
53
|
+
plugin({
|
|
54
|
+
addUtilities: (utilities: Record<string, { [k: string]: string | number }>) => {
|
|
55
|
+
Object.keys(utilities).forEach((selector) => {
|
|
56
|
+
rules.push([selector.replace('.', ''), utilities[selector]]);
|
|
57
|
+
});
|
|
65
58
|
},
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
return {
|
|
62
|
+
rules,
|
|
63
|
+
shortcuts: [
|
|
64
|
+
...brandIconsShortcuts.map((brand) => {
|
|
65
|
+
return typeof brand === 'string'
|
|
66
|
+
? { [`i-${brand}`]: `i-${brandIcons}:${brand}` }
|
|
67
|
+
: { [`i-${brand[0]}`]: `i-${brandIcons}:${brand[1]}` };
|
|
68
|
+
}),
|
|
69
|
+
...brandLogosShortcuts.map((brand) => {
|
|
70
|
+
return typeof brand === 'string'
|
|
71
|
+
? { [`i-${brand}`]: `i-${brandLogos}:${brand}` }
|
|
72
|
+
: { [`i-${brand[0]}`]: `i-${brandLogos}:${brand[1]}` };
|
|
73
|
+
}),
|
|
74
|
+
{ 'i-shopping-cart': `i-${generalIcons}:${shoppingCartIcon}` },
|
|
75
|
+
[/^i-([^:]+)$/, ([, icon]) => `i-${generalIcons}:${icon}`],
|
|
76
|
+
],
|
|
77
|
+
theme: {
|
|
78
|
+
colors: tailwindConfig.theme?.extend?.colors,
|
|
79
|
+
},
|
|
80
|
+
transformers: [
|
|
81
|
+
transformerDirectives(),
|
|
82
|
+
],
|
|
83
|
+
presets: [
|
|
84
|
+
presetUno(),
|
|
85
|
+
presetIcons({
|
|
86
|
+
extraProperties: {
|
|
87
|
+
display: 'inline-block',
|
|
88
|
+
'vertical-align': 'middle',
|
|
89
|
+
},
|
|
90
|
+
}),
|
|
91
|
+
],
|
|
92
|
+
};
|
|
93
|
+
};
|
|
69
94
|
|
|
70
95
|
const unoCSSConfig = genUnoCSSConfig();
|
|
71
96
|
|
package/packages/types/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ import type {
|
|
|
14
14
|
ResourceId,
|
|
15
15
|
ResourceListResult,
|
|
16
16
|
EventsResult,
|
|
17
|
-
} from '@cloudcommerce/api/
|
|
17
|
+
} from '@cloudcommerce/api/types';
|
|
18
18
|
import type { ApplyDiscountParams } from './modules/apply_discount:params';
|
|
19
19
|
import type { ApplyDiscountResponse } from './modules/apply_discount:response';
|
|
20
20
|
import type { CalculateShippingParams } from './modules/calculate_shipping:params';
|
package/tsconfig.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}.i-heroicons\:user{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M15.75 6a3.75 3.75 0 1 1-7.5 0a3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;display:inline-block;vertical-align:middle;width:1em;height:1em;}.i-logos\:apple{background:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 315' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em;}.i-google-pay{background:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 512 93' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%235F6368' d='M482.684 37.106L493.63 63.54h.129l10.687-26.435H512l-23.042 53.062h-7.168l8.577-18.562l-15.17-34.5h7.488ZM457.85 35.89c5.12 0 9.151 1.344 12.096 4.096c2.945 2.753 4.417 6.465 4.417 11.266v22.722h-6.594v-5.12h-.318c-2.88 4.224-6.658 6.336-11.396 6.336c-4.031 0-7.424-1.216-10.175-3.584c-2.754-2.432-4.098-5.44-4.098-9.025c0-3.777 1.409-6.849 4.354-9.09c2.88-2.24 6.72-3.392 11.52-3.392c4.096 0 7.489.769 10.178 2.24v-1.6c0-2.432-.96-4.416-2.88-6.144c-1.92-1.665-4.161-2.497-6.721-2.497c-3.84 0-6.912 1.6-9.154 4.865l-6.08-3.84c3.328-4.801 8.322-7.233 14.85-7.233ZM422.9 20.08c4.673 0 8.642 1.536 11.905 4.673c3.328 3.136 4.929 6.912 4.929 11.329c0 4.544-1.665 8.385-4.929 11.393c-3.201 3.073-7.168 4.609-11.905 4.609h-11.393V73.91h-6.914V20.08H422.9Zm35.845 35.46c-2.816 0-5.12.704-7.042 2.048c-1.856 1.408-2.816 3.073-2.816 5.057c0 1.792.768 3.328 2.304 4.48c1.536 1.217 3.328 1.793 5.376 1.793c2.881 0 5.506-1.088 7.81-3.2c2.304-2.177 3.392-4.673 3.392-7.618c-2.175-1.728-5.184-2.56-9.024-2.56ZM423.09 26.8h-11.584v18.755h11.584c2.754 0 5.058-.896 6.85-2.752c1.857-1.856 2.752-4.033 2.752-6.593c0-2.496-.895-4.673-2.752-6.529c-1.792-1.92-4.096-2.88-6.85-2.88Zm-116.174 9.154c4.672 0 8.386 2.048 10.307 4.352h.318v-3.2h8.194V72.31c0 14.466-8.512 20.419-18.625 20.419c-9.475 0-15.171-6.401-17.348-11.586l7.49-3.136c1.343 3.2 4.608 6.977 9.858 6.977c6.464 0 10.431-4.033 10.431-11.522v-2.816h-.318c-1.921 2.368-5.635 4.48-10.307 4.48c-9.793 0-18.753-8.513-18.753-19.522c0-11.073 8.96-19.65 18.753-19.65Zm56.329.064c10.178 0 15.106 8.065 16.77 12.481l.896 2.24l-26.179 10.818c1.984 3.905 5.12 5.953 9.472 5.953c4.355-.128 7.427-2.24 9.666-5.505l6.656 4.48c-2.175 3.201-7.36 8.706-16.322 8.706c-11.137 0-19.393-8.577-19.393-19.587c0-11.65 8.385-19.586 18.434-19.586ZM171.609 14.32c9.28 0 15.873 3.648 20.802 8.385l-5.889 5.888c-3.584-3.328-8.385-5.952-14.978-5.952c-12.225 0-21.826 9.857-21.826 22.083c0 12.225 9.537 22.082 21.826 22.082c7.937 0 12.482-3.2 15.362-6.08c2.369-2.369 3.905-5.761 4.545-10.434h-20.098v-8.32h28.163c.32 1.471.448 3.264.448 5.184c0 6.209-1.728 13.953-7.17 19.458c-5.376 5.569-12.16 8.513-21.185 8.513c-16.77 0-30.852-13.634-30.852-30.403c0-16.77 14.081-30.404 30.852-30.404Zm50.888 21.634c10.818 0 19.65 8.257 19.65 19.586c0 11.266-8.832 19.586-19.65 19.586c-10.817 0-19.65-8.32-19.65-19.586c0-11.33 8.833-19.586 19.65-19.586Zm42.755 0c10.817 0 19.65 8.257 19.65 19.586c0 11.266-8.833 19.586-19.65 19.586c-10.818 0-19.652-8.32-19.652-19.586c0-11.33 8.834-19.586 19.652-19.586Zm75.271-19.586v57.543h-8.577V16.368h8.577Zm-117.962 27.33c-5.888 0-11.01 4.801-11.01 11.842c0 6.977 5.122 11.842 11.01 11.842c5.889 0 11.01-4.865 11.01-11.842c0-7.04-5.121-11.841-11.01-11.841Zm42.691 0c-5.89 0-11.01 4.801-11.01 11.842c0 6.977 5.12 11.842 11.01 11.842c5.888 0 11.008-4.865 11.008-11.842c0-7.04-5.12-11.841-11.008-11.841Zm42.496-.063c-5.952 0-10.88 5.056-10.88 11.97c0 6.848 4.992 11.777 10.88 11.777c5.826 0 10.434-4.929 10.434-11.778c0-6.913-4.608-11.97-10.434-11.97Zm55.753-.128c-4.352 0-10.434 3.904-10.178 11.457l17.475-7.297c-.96-2.432-3.84-4.16-7.297-4.16Z'/%3E%3Cpath fill='%23EA4335' d='M95.363 17.296c-10.357-5.978-23.6-2.426-29.584 7.93L50.692 51.361c-4.365 7.546 1.255 10.183 7.521 13.94l14.517 8.38c4.916 2.835 11.195 1.151 14.03-3.758l15.51-26.858c5.21-9.025 2.118-20.559-6.907-25.77Z'/%3E%3Cpath fill='%23FBBC04' d='m78.292 28.113l-14.516-8.379c-8.014-4.448-12.552-4.743-15.842.487L26.524 57.3c-5.98 10.35-2.42 23.586 7.93 29.552c9.025 5.21 20.559 2.118 25.77-6.907l21.82-37.796c2.848-4.916 1.164-11.202-3.752-14.037Z'/%3E%3Cpath fill='%2334A853' d='M81.086 9.052L70.89 3.162C59.612-3.346 45.191.514 38.682 11.793l-19.414 33.62c-2.868 4.96-1.165 11.31 3.796 14.172l11.419 6.592c5.639 3.259 12.846 1.325 16.104-4.314l22.179-38.41c4.595-7.957 14.766-10.684 22.722-6.088L81.086 9.052Z'/%3E%3Cpath fill='%234285F4' d='m41.44 21.411l-11.023-6.35c-4.916-2.828-11.195-1.152-14.03 3.751L3.163 41.663C-3.347 52.91.513 67.298 11.79 73.79l8.392 4.832l10.177 5.863l4.416 2.541c-7.84-5.248-10.33-15.765-5.536-24.047l3.424-5.915l12.54-21.666c2.828-4.89 1.145-11.157-3.765-13.986Z'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em;}.i-shopping-cart{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;display:inline-block;vertical-align:middle;width:1em;height:1em;}.i-user{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M15.75 6a3.75 3.75 0 1 1-7.5 0a3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;display:inline-block;vertical-align:middle;width:1em;height:1em;}.mt-3{margin-top:0.75rem;}.inline{display:inline;}.w-32{width:8rem;}.bg-contrast{background-color:var(--contrast);}.bg-primary{background-color:var(--primary);}.bg-primary-300{background-color:var(--primary-300);}.bg-primary-700{background-color:var(--primary-700);}.bg-secondary-hover{background-color:var(--secondary-hover);}[text~="sky-400"]{--un-text-opacity:1;color:rgba(56,189,248,var(--un-text-opacity));}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
|
-
|
|
3
|
-
import type { AttributifyAttributes } from '@unocss/preset-attributify';
|
|
4
|
-
|
|
5
|
-
declare global {
|
|
6
|
-
namespace astroHTML.JSX {
|
|
7
|
-
interface HTMLAttributes extends AttributifyAttributes { }
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare module '@vue/runtime-dom' {
|
|
12
|
-
interface HTMLAttributes {
|
|
13
|
-
[key: string]: any
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare module '@vue/runtime-core' {
|
|
18
|
-
interface AllowedComponentProps {
|
|
19
|
-
[key: string]: any
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const genTailwindConfig = ({
|
|
2
|
-
colorVariants = [
|
|
3
|
-
'50',
|
|
4
|
-
...[...Array(9).keys()].map((i) => String((i + 1) * 100)),
|
|
5
|
-
],
|
|
6
|
-
} = {}) => ({
|
|
7
|
-
theme: {
|
|
8
|
-
extend: {
|
|
9
|
-
colors: ['primary', 'secondary', 'contrast'].reduce((colors, color) => {
|
|
10
|
-
const colorVariations = ['hover', 'focus', 'inverse'];
|
|
11
|
-
if (color !== 'contrast') {
|
|
12
|
-
colorVariations.push(...colorVariants);
|
|
13
|
-
}
|
|
14
|
-
colors[color] = colorVariations.reduce((colorPalette, variant) => {
|
|
15
|
-
colorPalette[variant] = `var(--${color}-${variant})`;
|
|
16
|
-
return colorPalette;
|
|
17
|
-
}, {
|
|
18
|
-
DEFAULT: `var(--${color})`,
|
|
19
|
-
});
|
|
20
|
-
return colors;
|
|
21
|
-
}, {}),
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const tailwindConfig = genTailwindConfig();
|
|
27
|
-
|
|
28
|
-
export default tailwindConfig;
|
|
29
|
-
|
|
30
|
-
export { genTailwindConfig, tailwindConfig };
|