vx-vue 0.0.2 → 0.3.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Gregor Kofler
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,36 @@
1
- # Vue 3 + Vite
2
-
3
- This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
-
5
- ## Recommended IDE Setup
6
-
7
- - [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
1
+ # vxVue
2
+
3
+ ## Introduction
4
+ VxVue provides a handful of reusable Vue components styled with Tailwind CSS. All components are geared towards simplicity leaving room for customizations, extensions or adaptations. At some point a more verbose documentation than this brief readme might emerge.
5
+
6
+ ## Requirements
7
+ * Vue.js 3.*
8
+ * Tailwind CSS 3.*
9
+
10
+ The official Tailwind CSS forms plugin is used to provide basic styling of the form components using the class strategy which allows the styling of non-form elements consistently.
11
+ An easy to configure color theming is applied. Since Tailwind won't observe classes in imported components tailwind.config.js should contain
12
+ ```
13
+ module.exports = {
14
+ content: [
15
+ './node_modules/vx-vue/**/*.js',
16
+ ...
17
+ ],
18
+ ...
19
+ }
20
+ ```
21
+ ## Provided components
22
+ So far the following components have been implemented:
23
+
24
+ | element | description |
25
+ |------------------|----------------------------------------------------------------------------------------------------|
26
+ | `password-input` | a simple input with toggle button which toggles between `type='button'` and `type='text'` |
27
+ | `form-select` | a select element adapted for Vue.js integration |
28
+ | `form-switch` | a fancy checkbox |
29
+ | `sortable` | a sortable table; the `columns` attribute specifies the columns and their sorting options |
30
+ | `message-toast` | displays a notification which dismisses itself after a configurable timeout |
31
+ | `confirm` | promise-based component which can either take one ("confirm") or two buttons ("confirm", "cancel") |
32
+ | `pagination` | a pagination component for arbitrary items; opinionated in its layout |
33
+ | `tabs` | a tabs component which allows both badges and icons |
34
+ | `simple-tree` | a simple tree implemented with a recursive component |
35
+ | `date-input` | input element for guided date inputs, also used by the datepicker |
36
+ | `datepicker` | a bare bones datepicker component |
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .messagetoast-fade-enter-from,.messagetoast-fade-leave-to{@apply opacity-0 transform-gpu -translate-y-10;}.messagetoast-fade-enter-to,.messagetoast-fade-leave-from{@apply opacity-100 translate-y-0;}.messagetoast-fade-enter-active,.messagetoast-fade-leave-active{@apply transition-all duration-300;}tbody tr[data-v-c18eb3d8]:nth-of-type(odd){@apply bg-slate-100 text-slate-700;}tbody tr[data-v-c18eb3d8]:nth-of-type(2n){@apply bg-slate-200 text-slate-800;}tbody tr:nth-of-type(odd) td.active[data-v-c18eb3d8]{@apply bg-amber-100 text-amber-700;}tbody tr:nth-of-type(2n) td.active[data-v-c18eb3d8]{@apply bg-amber-200 text-amber-800;}thead th.active[data-v-c18eb3d8]{@apply bg-amber-800;}
1
+ .messagetoast-fade-enter-from,.messagetoast-fade-leave-to{@apply opacity-0 transform-gpu -translate-y-10;}.messagetoast-fade-enter-to,.messagetoast-fade-leave-from{@apply opacity-100 translate-y-0;}.messagetoast-fade-enter-active,.messagetoast-fade-leave-active{@apply transition-all duration-300;}tbody tr[data-v-069dfce3]:nth-of-type(odd){@apply bg-slate-100 text-slate-700;}tbody tr[data-v-069dfce3]:nth-of-type(2n){@apply bg-slate-200 text-slate-800;}tbody tr:nth-of-type(odd) td.active[data-v-069dfce3]{@apply bg-amber-100 text-amber-700;}tbody tr:nth-of-type(2n) td.active[data-v-069dfce3]{@apply bg-amber-200 text-amber-800;}thead th.active[data-v-069dfce3]{@apply bg-amber-800;}