vx-vue 0.6.4 → 0.7.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/README.md CHANGED
@@ -8,14 +8,28 @@ VxVue provides a handful of reusable Vue components styled with Tailwind CSS. Al
8
8
  * Tailwind CSS 3.*
9
9
 
10
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
11
+ An easy to configure color theming is applied. `vxvue` and `vxvue-alt` are used as the two colors scales. Since Tailwind won't observe classes in imported components tailwind.config.js should also list the node package in the content array.
12
12
  ```javascript
13
13
  module.exports = {
14
14
  content: [
15
15
  './node_modules/vx-vue/**/*.js',
16
16
  ...
17
17
  ],
18
- ...
18
+ theme: {
19
+ extend: {
20
+ colors: {
21
+ 'vxvue': {
22
+ DEFAULT: ...,
23
+ '50': ...,
24
+ ...
25
+ '900': ...
26
+ },
27
+ 'vxvue-alt': {
28
+ ...
29
+ }
30
+ }
31
+ }
32
+ }
19
33
  }
20
34
  ```
21
35
  To use the few scoped styles along with your CSS add
@@ -25,21 +39,25 @@ import 'vx-vue/vx-vue.css'
25
39
  ```
26
40
  to your main.js or index.js file.
27
41
 
42
+ The components use an extra color palette.
43
+
44
+
28
45
  ## Provided components
29
46
  So far the following components have been implemented:
30
47
 
31
- | element | description | props | events | slots |
32
- |--------------------|----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|----------------------------------------------|
33
- | `confirm` | promise-based component which can either take one ("confirm") or two buttons ("confirm", "cancel") | | | `title` `icon` `message` |
34
- | `date-input` | input element for guided date inputs, also used by the datepicker | `outputFormat` `inputFormat` `showButton` `locale` `modelValue` | `update:modelValue` `toggle-datepicker` | `default` |
35
- | `datepicker` | a bare bones datepicker component | `modelValue` `validFrom` `validUntil` `dayNames` `locale` `startOfWeekIndex` `hasInput` | `update:modelValue` `month-change` | |
36
- | `form-file-button` | a thinly wrapped type-file input to allow proper styling and integration | `modelValue` `accept` `multiple` `name` `id` | `update:modelValue` `form-data` | |
37
- | `form-select` | a select element adapted for Vue.js integration | `options` `modelValue` `disabledLabel` | `update:modelValue` | |
38
- | `form-switch` | a fancy checkbox | `modelValue` | `update:modelValue` | `default` |
39
- | `message-toast` | displays a notification which dismisses itself after a configurable timeout | `title` `message`, `timeout` `active` | `timeout`, `close` | `icon` `title` `default` |
40
- | `modal` | modal overlay | `show` `containerClass` `headerClass` `contentClass` | `clicked-outside` | `title` `default` |
41
- | `pagination` | a pagination component for arbitrary items; opinionated in its layout | `page` `total` `perPage` `showNavButtons` `prevText` `nextText` `showAllPages` `markerPosition` | `update:page` | |
42
- | `password-input` | a simple input with toggle button which toggles between `type='button'` and `type='text'` | `modelValue` | `update:modelValue` | `default` |
43
- | `simple-tree` | a simple tree implemented with a recursive component | `branch` | `branch-selected` `expand` | |
44
- | `sortable` | a sortable table; the `columns` prop specifies the columns and their sorting options | `before-sort` `after-sort` | `columns` `rows` `offset` `count` `sortProp` `sortDirection` `keyProperty` | `{ column: prop }-header` `{ column: prop }` |
45
- | `tabs` | a tabs component which allows both badges and icons | `items` `activeIndex` | `update:active-index` | `icon` `default` |
48
+ | element | description | props | events | slots |
49
+ |--------------------|------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|-----------------------------------------|----------------------------------------------|
50
+ | `confirm` | promise-based component which can either take one ("confirm") or two buttons ("confirm", "cancel") | | | `title` `icon` `message` |
51
+ | `date-input` | input element for guided date inputs, also used by the datepicker | `outputFormat` `inputFormat` `showButton` `locale` `modelValue` | `update:modelValue` `toggle-datepicker` | `default` |
52
+ | `datepicker` | a bare bones datepicker component | `modelValue` `validFrom` `validUntil` `dayNames` `locale` `startOfWeekIndex` `hasInput` | `update:modelValue` `month-change` | |
53
+ | `form-file-button` | a thinly wrapped type-file input to allow proper styling and integration | `modelValue` `accept` `multiple` `name` `id` | `update:modelValue` `form-data` | |
54
+ | `form-select` | a select element adapted for Vue.js integration | `options` `modelValue` `disabledLabel` | `update:modelValue` | |
55
+ | `form-switch` | a fancy checkbox | `modelValue` | `update:modelValue` | `default` |
56
+ | `message-toast` | displays a notification which dismisses itself after a configurable timeout | `title` `message`, `timeout` `active` | `timeout`, `close` | `icon` `title` `default` |
57
+ | `modal` | modal overlay | `show` `containerClass` `headerClass` `contentClass` | `clicked-outside` | `title` `default` |
58
+ | `pagination` | a pagination component for arbitrary items; opinionated in its layout | `page` `total` `perPage` `showNavButtons` `prevText` `nextText` `showAllPages` `markerPosition` | `update:page` | |
59
+ | `password-input` | a simple input with toggle button which toggles between `type='button'` and `type='text'` | `modelValue` | `update:modelValue` | `default` |
60
+ | `simple-tree` | a simple tree implemented with a recursive component | `branch` | `branch-selected` `expand` | |
61
+ | `slider` | a slider with one or more thumbs; `modelValue` can be a number or an array of numbers; the length of the array determines the number of thumbs | `modelValue` `min` `max` | `update:modelValue` | |
62
+ | `sortable` | a sortable table; the `columns` prop specifies the columns and their sorting options | `columns` `rows` `offset` `count` `sortProp` `sortDirection` `keyProperty` | `before-sort` `after-sort` | `{ column: prop }-header` `{ column: prop }` |
63
+ | `tabs` | a tabs component which allows both badges and icons | `items` `activeIndex` | `update:active-index` | `icon` `default` |
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .messagetoast-fade-enter-from[data-v-1be10676],.messagetoast-fade-leave-to[data-v-1be10676]{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0}.messagetoast-fade-enter-to[data-v-1be10676],.messagetoast-fade-leave-from[data-v-1be10676]{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:1}.messagetoast-fade-enter-active[data-v-1be10676],.messagetoast-fade-leave-active[data-v-1be10676]{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}tbody tr[data-v-f0e4e642]:nth-of-type(odd){--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}tbody tr[data-v-f0e4e642]:nth-of-type(2n){--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}tbody tr:nth-of-type(odd) td.active[data-v-f0e4e642]{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity))}tbody tr:nth-of-type(2n) td.active[data-v-f0e4e642]{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity))}thead th.active[data-v-f0e4e642]{--tw-bg-opacity: 1;background-color:rgb(146 64 14 / var(--tw-bg-opacity))}
1
+ .messagetoast-fade-enter-from[data-v-1be10676],.messagetoast-fade-leave-to[data-v-1be10676]{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0}.messagetoast-fade-enter-to[data-v-1be10676],.messagetoast-fade-leave-from[data-v-1be10676]{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:1}.messagetoast-fade-enter-active[data-v-1be10676],.messagetoast-fade-leave-active[data-v-1be10676]{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}tbody tr[data-v-1c751c5a]:nth-of-type(odd){--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}tbody tr[data-v-1c751c5a]:nth-of-type(2n){--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}tbody tr:nth-of-type(odd) td.active[data-v-1c751c5a]{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity))}tbody tr:nth-of-type(2n) td.active[data-v-1c751c5a]{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity))}thead th.active[data-v-1c751c5a]{--tw-bg-opacity: 1;background-color:rgb(146 64 14 / var(--tw-bg-opacity))}