@konoma-development/vue-components 0.1.10 → 0.1.11

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.
@@ -7,9 +7,7 @@
7
7
  <KonomaCheckbox
8
8
  v-for="(option, i) in options"
9
9
  :key="i"
10
- :name="name?.toString()"
11
- :error="error"
12
- v-bind="{ ...$attrs, ...childClasses }"
10
+ v-bind="{ ...props, ...childClasses }"
13
11
  :value="values?.includes(option.value)"
14
12
  @change=" (_, e) => $emit('change', option.value, e)"
15
13
  >
@@ -32,7 +30,7 @@ import { positionClasses } from '../../types/form';
32
30
  import { baseClasses } from '../defaults/checkboxList';
33
31
  import KonomaCheckbox from './KonomaCheckbox.vue';
34
32
 
35
- withDefaults(defineProps<FormFieldProps<DataType>>(), {
33
+ const props = withDefaults(defineProps<FormFieldProps<DataType>>(), {
36
34
  labelClasses: baseClasses.labelClasses,
37
35
  wrapperClasses: baseClasses.wrapperClasses,
38
36
  classes: baseClasses.classes,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "type": "module",
7
- "version": "0.1.10",
7
+ "version": "0.1.11",
8
8
  "packageManager": "yarn@4.14.1",
9
9
  "main": "./nuxt.config.ts",
10
10
  "scripts": {
package/types/form.ts CHANGED
@@ -1,5 +1,3 @@
1
- import type { ClassValue } from 'vue';
2
-
3
1
  type LabelPosition = 'top' | 'bottom' | 'left' | 'right';
4
2
 
5
3
  export interface FormDataType {
@@ -15,64 +13,64 @@ export interface Option {
15
13
 
16
14
  /** Classes for the form components. Not all classes have effects in all components. Properties that start with 'class-' apply to the component in general, other properties apply to specific parts of the component */
17
15
  export interface Classes {
18
- class?: ClassValue
16
+ class?: string
19
17
  /** Base classes, usually assigned to the control */
20
- classes?: ClassValue
18
+ classes?: string
21
19
  /** Base classes, assigned directly to the control. Might be needed in case of more complex nesting */
22
- controlClasses?: ClassValue
20
+ controlClasses?: string
23
21
  /** Used for components that have specific styling when in neutral state */
24
- classesNeutral?: ClassValue
22
+ classesNeutral?: string
25
23
  /** Used for components that have specific styling when empty */
26
- classesEmpty?: ClassValue
27
- classesDisabled?: ClassValue
24
+ classesEmpty?: string
25
+ classesDisabled?: string
28
26
  /** Used for components that have specific styling when in error */
29
- classesError?: ClassValue
27
+ classesError?: string
30
28
  /** Used for components that have specific styling when filled */
31
- classesFilled?: ClassValue
29
+ classesFilled?: string
32
30
  /** Used for the label in components that have specific styling when empty */
33
- labelClassesEmpty?: ClassValue
31
+ labelClassesEmpty?: string
34
32
  /** Used for the label in components that have specific styling when in error */
35
- labelClassesError?: ClassValue
33
+ labelClassesError?: string
36
34
  /** Used for the label in components that have specific styling when filled */
37
- labelClassesFilled?: ClassValue
35
+ labelClassesFilled?: string
38
36
  /** General classes for the label */
39
- labelClasses?: ClassValue
37
+ labelClasses?: string
40
38
  /** Needed in case of nested label */
41
- labelWrapperClasses?: ClassValue
39
+ labelWrapperClasses?: string
42
40
  /** Used for the icon in components that have specific styling when filled */
43
- iconClassesFilled?: ClassValue
41
+ iconClassesFilled?: string
44
42
  /** General classes for the wrapper */
45
- wrapperClasses?: ClassValue
43
+ wrapperClasses?: string
46
44
  /** General classes for the icon on the left */
47
- iconLeftClasses?: ClassValue
45
+ iconLeftClasses?: string
48
46
  /** General classes for the icon on the right */
49
- iconRightClasses?: ClassValue
47
+ iconRightClasses?: string
50
48
  /** General classes for the error message */
51
- errorClasses?: ClassValue
49
+ errorClasses?: string
52
50
  /** Additional classes for the control when an icon is present on the left */
53
- additionalClassesIconLeft?: ClassValue
51
+ additionalClassesIconLeft?: string
54
52
  /** Additional classes for the control when an icon is present on the right */
55
- additionalClassesIconRight?: ClassValue
53
+ additionalClassesIconRight?: string
56
54
  /** General classes for hints placed within the component */
57
- hintClasses?: ClassValue
55
+ hintClasses?: string
58
56
  /** General classes for the resize element */
59
- resizeClasses?: ClassValue
57
+ resizeClasses?: string
60
58
  /** General classes for the icon within the resize element */
61
- resizeIconClasses?: ClassValue
59
+ resizeIconClasses?: string
62
60
  /** Classes to be applied to all values for components with multiple possible values */
63
- optionClasses?: ClassValue
61
+ optionClasses?: string
64
62
  /** Classes to be applied to the wrapper for elements on the left side */
65
- wrapperLeftClasses?: ClassValue
63
+ wrapperLeftClasses?: string
66
64
  /** Classes to be applied to the wrapper for elements on the right side */
67
- wrapperRightClasses?: ClassValue
65
+ wrapperRightClasses?: string
68
66
  // Properties for classes specific to the select component since it is effectively an Omnibox that is more complex than the other form components
69
- focusClasses?: ClassValue
70
- optionFocusedClasses?: ClassValue
71
- optionSelectedClasses?: ClassValue
72
- valueClasses?: ClassValue
73
- placeholderClasses?: ClassValue
74
- indicatorClasses?: ClassValue
75
- valueContainerClasses?: ClassValue
67
+ focusClasses?: string
68
+ optionFocusedClasses?: string
69
+ optionSelectedClasses?: string
70
+ valueClasses?: string
71
+ placeholderClasses?: string
72
+ indicatorClasses?: string
73
+ valueContainerClasses?: string
76
74
  }
77
75
 
78
76
  export interface FormFieldEmits {