@ignatremizov/vue-tailwind-datepicker 2.1.3 → 2.1.4
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/README.md +3 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -56,6 +56,7 @@ How it works,
|
|
|
56
56
|
<script setup>
|
|
57
57
|
import { ref } from 'vue'
|
|
58
58
|
import VueTailwindDatepicker from '@ignatremizov/vue-tailwind-datepicker'
|
|
59
|
+
import '@ignatremizov/vue-tailwind-datepicker/style.css'
|
|
59
60
|
|
|
60
61
|
const dateValue = ref([])
|
|
61
62
|
const formatter = ref({
|
|
@@ -71,6 +72,8 @@ const formatter = ref({
|
|
|
71
72
|
</template>
|
|
72
73
|
```
|
|
73
74
|
|
|
75
|
+
The published package now exposes its stylesheet explicitly. Import `@ignatremizov/vue-tailwind-datepicker/style.css` once in your app entry or alongside the first component usage.
|
|
76
|
+
|
|
74
77
|
## Time Picker Modes
|
|
75
78
|
|
|
76
79
|
Use `timePickerStyle` to control whether time is disabled, text input, or wheel UI.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ignatremizov/vue-tailwind-datepicker",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.4",
|
|
5
5
|
"description": "A Vue 3 datepicker component using Tailwind CSS and Day.js",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Ignat Remizov",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"types": "./dist/entry.d.ts",
|
|
50
50
|
"import": "./dist/vue-tailwind-datepicker.js",
|
|
51
51
|
"require": "./dist/vue-tailwind-datepicker.umd.cjs"
|
|
52
|
-
}
|
|
52
|
+
},
|
|
53
|
+
"./style.css": "./dist/vue-tailwind-datepicker.css"
|
|
53
54
|
},
|
|
54
55
|
"main": "./dist/vue-tailwind-datepicker.umd.cjs",
|
|
55
56
|
"module": "./dist/vue-tailwind-datepicker.js",
|
|
@@ -62,10 +63,12 @@
|
|
|
62
63
|
"provenance": true
|
|
63
64
|
},
|
|
64
65
|
"scripts": {
|
|
66
|
+
"prebuild": "node scripts/generate-dayjs-locale-loaders.mjs",
|
|
65
67
|
"dev": "vite",
|
|
66
|
-
"build": "vite build",
|
|
68
|
+
"build": "vite build && node scripts/build-library-css.mjs",
|
|
67
69
|
"preview": "vite preview --port 4173",
|
|
68
70
|
"test:unit": "vitest run",
|
|
71
|
+
"test:dist": "npm run build && vitest run --config vitest.dist.config.ts",
|
|
69
72
|
"test:shortcut-matrix": "vitest run --passWithNoTests tests/unit/shortcut-*.spec.ts",
|
|
70
73
|
"lint": "eslint .",
|
|
71
74
|
"lint:fix": "eslint . --fix",
|
|
@@ -199,8 +202,7 @@
|
|
|
199
202
|
"vue": "^3.3.13"
|
|
200
203
|
},
|
|
201
204
|
"dependencies": {
|
|
202
|
-
"@vueuse/core": "^10.5.0"
|
|
203
|
-
"vite-plugin-css-injected-by-js": "^3.3.1"
|
|
205
|
+
"@vueuse/core": "^10.5.0"
|
|
204
206
|
},
|
|
205
207
|
"devDependencies": {
|
|
206
208
|
"@antfu/eslint-config": "^7.7.3",
|