diff --git a/.gitignore b/.gitignore index d6397b54..60c58b5c 100644 --- a/.gitignore +++ b/.gitignore @@ -37,7 +37,6 @@ out/ # VSCode .vscode/* -!.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index ae67e59e..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "scss.lint.unknownAtRules": "ignore" -} diff --git a/packages/nuxt/playground/app.vue b/packages/nuxt/playground/app.vue index db22155b..fe4ba278 100644 --- a/packages/nuxt/playground/app.vue +++ b/packages/nuxt/playground/app.vue @@ -1,11 +1,68 @@ diff --git a/packages/nuxt/src/module.ts b/packages/nuxt/src/module.ts index cd9af370..b6a64d4a 100644 --- a/packages/nuxt/src/module.ts +++ b/packages/nuxt/src/module.ts @@ -44,7 +44,6 @@ export default defineNuxtModule({ // extend nuxt's vite config without overriding nuxt.config.js _nuxt.options.vite = { ..._nuxt.options.vite, - resolve: { ..._nuxt.options.vite.resolve, alias: { diff --git a/packages/nuxt/src/runtime/tailwind.config.js b/packages/nuxt/src/runtime/tailwind.config.js index 9008ba8a..07803552 100644 --- a/packages/nuxt/src/runtime/tailwind.config.js +++ b/packages/nuxt/src/runtime/tailwind.config.js @@ -1,6 +1,14 @@ +import path from 'path' +import { fileURLToPath } from 'node:url' import explorer1Config from '@explorer-1/common/tailwind.config' + +// mimic CommonJS variables -- not needed if using CommonJS +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) + console.log('ℹ Tailwind Config provided by @explorer-1/nuxt') + export default { ...explorer1Config, - content: ['./../node_modules/@explorer-1/vue/src/components/**/*.vue'] + content: [path.resolve(__dirname, './../../node_modules/@explorer-1/vue/src/**/*.vue')] } diff --git a/packages/vue/dist/explorer-1-vue.d.ts b/packages/vue/dist/explorer-1-vue.d.ts new file mode 100644 index 00000000..7b140b35 --- /dev/null +++ b/packages/vue/dist/explorer-1-vue.d.ts @@ -0,0 +1 @@ +export * from './lib/main' diff --git a/packages/vue/dist/explorer-1-vue.js b/packages/vue/dist/explorer-1-vue.js index c716762f..30a822c6 100644 --- a/packages/vue/dist/explorer-1-vue.js +++ b/packages/vue/dist/explorer-1-vue.js @@ -1,4498 +1,3174 @@ -import { - defineComponent as k, - openBlock as v, - createBlock as A, - resolveDynamicComponent as gt, - normalizeClass as L, - withCtx as M, - createElementVNode as w, - renderSlot as S, - createElementBlock as T, - resolveComponent as R, - createVNode as q, - createCommentVNode as mt, - createStaticVNode as bt -} from 'vue' -const Q = { - primary: '-primary', - secondary: '-secondary', - dark: '-dark', - social: '-social' - }, - yt = k({ - name: 'BaseButton', - props: { - variant: { - type: String, - required: !1, - default: 'primary', - validator: (n) => Object.keys(Q).includes(n) - }, - compact: { - type: Boolean, - default: !1, - required: !1 - }, - blockClasses: { - type: String, - required: !1, - default: 'inline-block' - }, - disabled: { - type: Boolean, - default: !1, - required: !1 - }, - ariaLabel: { - type: String, - default: '', - required: !1 - }, - to: { - type: [String, Object], - required: !1, - default: null - }, - href: { - type: String, - required: !1, - default: null - } +import { defineComponent as C, openBlock as m, createBlock as P, resolveDynamicComponent as Ct, normalizeClass as T, withCtx as _, createElementVNode as w, renderSlot as L, createElementBlock as b, createCommentVNode as k, resolveComponent as $, createVNode as O, toDisplayString as St, createTextVNode as Et, createStaticVNode as kt } from "vue"; +const li = (s) => { + let t = ""; + if (Object.keys(s).some(function(i) { + return !!i.startsWith("screen"); + })) { + const i = []; + for (const [o, n] of Object.entries(s)) + o.startsWith("screen") && n.url && n.width && i.push(`${n.url} ${n.width}w`); + t = i.join(", "); + } + return t; +}, tt = { + primary: "-primary", + secondary: "-secondary", + dark: "-dark", + social: "-social" +}, Lt = C({ + name: "BaseButton", + props: { + variant: { + type: String, + required: !1, + default: "primary", + validator: (s) => Object.keys(tt).includes(s) }, - emits: ['click'], - computed: { - tag() { - return this.disabled ? 'button' : this.to ? 'nuxt-link' : this.href ? 'a' : 'button' - }, - // necessary for valid html - // must account for , , and