Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@vue/compiler-sfc": "^3.2.22",
"laravel-mix": "^6.0.41",
"postcss": "^8.3.11",
"tailwindcss": "^3.1.6",
"vue-loader": "^16.8.3"
},
"dependencies": {}
Expand Down
5 changes: 5 additions & 0 deletions resources/css/field.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* Nova Card CSS */

/* Nova Field CSS */
@tailwind components;
@tailwind utilities;
2 changes: 1 addition & 1 deletion resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<DefaultField :field="currentField" :full-width-content="currentField.fullWidth" :show-help-text="false">
<DefaultField :field="currentField" :full-width-content="currentField.fullWidth" :show-help-text="false" class="nova-attach-many">
<template #field :class="{'border-danger border': hasErrors}">
<div class="attach-many-container" :class="{'border-danger border': hasErrors}">
<div v-if="currentField.showToolbar" class="flex items-center border border-b-0 border-gray-100 dark:border-gray-700">
Expand Down
12 changes: 12 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
content: [
"./resources/**/*.blade.php",
"./resources/**/*.js",
'./resources/js/**/*.vue',
],
theme: {
extend: {},
},
plugins: [],
important: '.nova-attach-many'
}
3 changes: 3 additions & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ mix
.setPublicPath('dist')
.js('resources/js/field.js', 'js')
.vue({ version: 3 })
.postCss("resources/css/field.css", "css", [
require("tailwindcss"),
])
.nova("dillingham/nova-attach-many")