@naptics/vue-collection 0.2.5 → 0.2.6

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.
@@ -50,6 +50,10 @@ export declare const nSelectProps: {
50
50
  * @see {@link nValInputProps.form}
51
51
  */
52
52
  readonly form: PropType<import("./ValidatedForm").ValidatedForm>;
53
+ /**
54
+ * @see {@link nValInputProps.hideLabel}
55
+ */
56
+ readonly hideLabel: BooleanConstructor;
53
57
  /**
54
58
  * @see {@link nValInputProps.inputClass}
55
59
  */
@@ -111,6 +115,10 @@ declare const Component: import("vue").DefineComponent<{
111
115
  * @see {@link nValInputProps.form}
112
116
  */
113
117
  readonly form: PropType<import("./ValidatedForm").ValidatedForm>;
118
+ /**
119
+ * @see {@link nValInputProps.hideLabel}
120
+ */
121
+ readonly hideLabel: BooleanConstructor;
114
122
  /**
115
123
  * @see {@link nValInputProps.inputClass}
116
124
  */
@@ -164,6 +172,10 @@ declare const Component: import("vue").DefineComponent<{
164
172
  * @see {@link nValInputProps.form}
165
173
  */
166
174
  readonly form: PropType<import("./ValidatedForm").ValidatedForm>;
175
+ /**
176
+ * @see {@link nValInputProps.hideLabel}
177
+ */
178
+ readonly hideLabel: BooleanConstructor;
167
179
  /**
168
180
  * @see {@link nValInputProps.inputClass}
169
181
  */
@@ -175,6 +187,7 @@ declare const Component: import("vue").DefineComponent<{
175
187
  readonly tooltipMaxWidth: import("../utils/tailwind").TWMaxWidth;
176
188
  readonly options: SelectionOption[];
177
189
  readonly disabled: boolean;
190
+ readonly hideLabel: boolean;
178
191
  readonly optional: boolean;
179
192
  }>;
180
193
  export { Component as NSelect, Component as default };
@@ -38,6 +38,10 @@ export const nSelectProps = {
38
38
  * @see {@link nValInputProps.form}
39
39
  */
40
40
  form: nValInputProps.form,
41
+ /**
42
+ * @see {@link nValInputProps.hideLabel}
43
+ */
44
+ hideLabel: nValInputProps.hideLabel,
41
45
  /**
42
46
  * @see {@link nValInputProps.inputClass}
43
47
  */
@@ -61,7 +65,7 @@ const Component = createComponent('NSelect', nSelectProps, (props, context) => {
61
65
  return () => _createVNode(NValInput, _mergeProps({
62
66
  "ref": inputRef
63
67
  }, props, {
64
- "input": slotProps => _createVNode(_Fragment, null, [_createVNode("label", {
68
+ "input": slotProps => _createVNode(_Fragment, null, [props.name && !props.hideLabel && _createVNode("label", {
65
69
  "for": props.name,
66
70
  "class": ['block text-sm font-medium mb-1', props.disabled ? 'text-default-300' : 'text-default-700']
67
71
  }, [props.name]), _createVNode(NTooltip, _mergeProps({
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.5",
5
+ "version": "0.2.6",
6
6
  "main": "./index.js",
7
7
  "repository": {
8
8
  "type": "git",