novo-menu-wedding-site 0.0.11 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/custom.d.ts +2 -0
- package/dist/style.css +1 -0
- package/package.json +5 -2
- package/src/app.tsx +3 -2
- package/src/main.tsx +1 -0
- package/tailwind.config.js +1 -1
- package/tsconfig.app.json +1 -5
- package/vite.config.ts +21 -15
package/custom.d.ts
CHANGED
package/dist/style.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;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-feature-settings:normal;font-variation-settings:normal;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-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}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}[hidden]:where(:not([hidden=until-found])){display:none}.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2\.5{gap:.625rem}.p-4{padding:1rem}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 768px){.md\:hidden{display:none}.md\:h-screen{height:100vh}.md\:w-20{width:5rem}.md\:flex-col{flex-direction:column}}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "novo-menu-wedding-site",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.0
|
4
|
+
"version": "0.1.0",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/menu-section.umd.js",
|
7
7
|
"module": "dist/menu-section.es.js",
|
@@ -11,13 +11,16 @@
|
|
11
11
|
"require": "./dist/menu-section.umd.js"
|
12
12
|
}
|
13
13
|
},
|
14
|
-
"types": "./dist/app.d.ts",
|
15
14
|
"scripts": {
|
16
15
|
"dev": "vite",
|
17
16
|
"build": "tsc -b && vite build",
|
18
17
|
"preview": "vite preview"
|
19
18
|
},
|
19
|
+
"keywords": ["menu", "wedding", "preact", "web-component", "tailwindcss"],
|
20
|
+
"author": "Ana",
|
21
|
+
"license": "MIT",
|
20
22
|
"dependencies": {
|
23
|
+
"autoprefixer": "^10.4.20",
|
21
24
|
"preact": "^10.24.3",
|
22
25
|
"preact-custom-element": "^4.3.0"
|
23
26
|
},
|
package/src/app.tsx
CHANGED
@@ -3,7 +3,8 @@ import logo from "./assets/logo.svg";
|
|
3
3
|
import marca from "./assets/marca.svg";
|
4
4
|
import share from "./assets/icons/share.svg";
|
5
5
|
|
6
|
-
import register from
|
6
|
+
import register from "preact-custom-element";
|
7
|
+
import "./input.css";
|
7
8
|
|
8
9
|
export function App() {
|
9
10
|
return (
|
@@ -18,4 +19,4 @@ export function App() {
|
|
18
19
|
);
|
19
20
|
}
|
20
21
|
|
21
|
-
register(App,
|
22
|
+
register(App, "menu-section", [], { shadow: true });
|
package/src/main.tsx
CHANGED
package/tailwind.config.js
CHANGED
package/tsconfig.app.json
CHANGED
@@ -10,8 +10,6 @@
|
|
10
10
|
"react": ["./node_modules/preact/compat/"],
|
11
11
|
"react-dom": ["./node_modules/preact/compat/"]
|
12
12
|
},
|
13
|
-
|
14
|
-
/* Bundler mode */
|
15
13
|
"moduleResolution": "Bundler",
|
16
14
|
"allowImportingTsExtensions": true,
|
17
15
|
"isolatedModules": true,
|
@@ -19,13 +17,11 @@
|
|
19
17
|
"noEmit": true,
|
20
18
|
"jsx": "react-jsx",
|
21
19
|
"jsxImportSource": "preact",
|
22
|
-
|
23
|
-
/* Linting */
|
24
20
|
"strict": true,
|
25
21
|
"noUnusedLocals": true,
|
26
22
|
"noUnusedParameters": true,
|
27
23
|
"noFallthroughCasesInSwitch": true,
|
28
24
|
"noUncheckedSideEffectImports": true
|
29
25
|
},
|
30
|
-
"include": ["src", "custom.d.ts"]
|
26
|
+
"include": ["src/**/*", "custom.d.ts"]
|
31
27
|
}
|
package/vite.config.ts
CHANGED
@@ -1,27 +1,33 @@
|
|
1
|
-
import { defineConfig } from
|
2
|
-
import preact from
|
3
|
-
import { viteStaticCopy } from
|
1
|
+
import { defineConfig } from "vite";
|
2
|
+
import preact from "@preact/preset-vite";
|
3
|
+
import { viteStaticCopy } from "vite-plugin-static-copy";
|
4
|
+
import tailwindcss from "tailwindcss";
|
5
|
+
import autoprefixer from "autoprefixer";
|
4
6
|
|
5
7
|
export default defineConfig({
|
6
|
-
plugins: [
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
plugins: [
|
9
|
+
preact(),
|
10
|
+
viteStaticCopy({
|
11
|
+
targets: [
|
12
|
+
{ src: "src/assets/icons/*.svg", dest: "assets/icons" },
|
13
|
+
{ src: "src/assets/*.svg", dest: "assets" },
|
14
|
+
],
|
15
|
+
}),
|
16
|
+
],
|
17
|
+
css: { postcss: { plugins: [tailwindcss(), autoprefixer()] } },
|
12
18
|
build: {
|
13
19
|
lib: {
|
14
|
-
entry:
|
15
|
-
name:
|
20
|
+
entry: "./src/app.tsx", // Corrigido para refletir o nome correto do arquivo
|
21
|
+
name: "MenuSection",
|
16
22
|
fileName: (format) => `menu-section.${format}.js`,
|
17
|
-
formats: [
|
23
|
+
formats: ["es", "umd"],
|
18
24
|
},
|
19
25
|
rollupOptions: {
|
20
|
-
external: [
|
26
|
+
external: ["preact", "preact-custom-element"],
|
21
27
|
output: {
|
22
28
|
globals: {
|
23
|
-
preact:
|
24
|
-
|
29
|
+
preact: "Preact",
|
30
|
+
"preact-custom-element": "PreactCustomElement",
|
25
31
|
},
|
26
32
|
},
|
27
33
|
},
|