novo-menu-wedding-site 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
package/custom.d.ts CHANGED
@@ -4,3 +4,5 @@ declare module "*.svg" {
4
4
  }
5
5
 
6
6
  declare module 'preact-custom-element';
7
+
8
+ declare module '*.css';
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.11",
4
+ "version": "0.0.12",
5
5
  "type": "module",
6
6
  "main": "dist/menu-section.umd.js",
7
7
  "module": "dist/menu-section.es.js",
@@ -18,6 +18,7 @@
18
18
  "preview": "vite preview"
19
19
  },
20
20
  "dependencies": {
21
+ "autoprefixer": "^10.4.20",
21
22
  "preact": "^10.24.3",
22
23
  "preact-custom-element": "^4.3.0"
23
24
  },
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 'preact-custom-element';
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, 'menu-section', [], { shadow: true });
22
+ register(App, "menu-section", [], { shadow: true });
package/src/main.tsx CHANGED
@@ -1,4 +1,5 @@
1
1
  import { render } from 'preact'
2
2
  import { App } from './app.tsx'
3
+ import './input.css'
3
4
 
4
5
  render(<App />, document.getElementById('app')!)
package/vite.config.ts CHANGED
@@ -1,27 +1,33 @@
1
- import { defineConfig } from 'vite';
2
- import preact from '@preact/preset-vite';
3
- import { viteStaticCopy } from 'vite-plugin-static-copy';
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: [preact(), viteStaticCopy({
7
- targets: [
8
- { src: 'src/assets/icons/*.svg', dest: 'assets/icons' },
9
- { src: 'src/assets/*.svg', dest: 'assets' },
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: './src/app.tsx', // Caminho do seu componente principal
15
- name: 'MenuSection',
20
+ entry: "./src/app.tsx",
21
+ name: "MenuSection",
16
22
  fileName: (format) => `menu-section.${format}.js`,
17
- formats: ['es', 'umd'],
23
+ formats: ["es", "umd"],
18
24
  },
19
25
  rollupOptions: {
20
- external: ['preact', 'preact-custom-element'], // Evitar incluir dependências desnecessárias
26
+ external: ["preact", "preact-custom-element"],
21
27
  output: {
22
28
  globals: {
23
- preact: 'Preact',
24
- 'preact-custom-element': 'PreactCustomElement',
29
+ preact: "Preact",
30
+ "preact-custom-element": "PreactCustomElement",
25
31
  },
26
32
  },
27
33
  },