@naptics/vue-collection 0.2.2 → 0.2.3

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.
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { createComponent } from '../utils/component';
3
3
  import NCheckbox, { nCheckboxProps } from './NCheckbox';
4
4
  export const nCheckboxLabelProps = {
@@ -24,8 +24,10 @@ export default createComponent('NCheckboxLabel', nCheckboxLabelProps, props => {
24
24
  if (!props.disabled) props.onUpdateValue?.(!props.value);
25
25
  };
26
26
  return () => _createVNode("div", {
27
- "class": `flex items-center`
28
- }, [_createVNode(NCheckbox, props, null), _createVNode("div", {
27
+ "class": `flex ${props.description ? 'items-start' : 'items-center'}`
28
+ }, [_createVNode(NCheckbox, _mergeProps(props, {
29
+ "class": props.description ? 'mt-1' : ''
30
+ }), null), _createVNode("div", {
29
31
  "class": `${props.compact ? 'ml-2' : 'ml-3'} text-sm`
30
32
  }, [_createVNode("label", {
31
33
  "onClick": toggleValue,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@naptics/vue-collection",
3
3
  "author": "Timo Siegenthaler",
4
4
  "description": "Vue Collection is a collection of styled and fully functional Vue components which can easily be integrated into our projects.",
5
- "version": "0.2.2",
5
+ "version": "0.2.3",
6
6
  "main": "./index.js",
7
7
  "repository": {
8
8
  "type": "git",