@imaginario27/air-ui-ds 1.5.0 → 1.6.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/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@ All notable changes to this package are documented in this file.
5
5
  Historical releases were reconstructed from git history (GitHub repository) and npm publish dates.
6
6
  Future releases will include detailed entries generated with Changesets.
7
7
 
8
+ ## 1.5.0 - 2026-03-23
9
+
10
+ Release type: minor.
11
+ Commits found in range: 1.
12
+
13
+ ### Added
14
+
15
+ 1. add new standalone checkbox component and fixes style issues ([560de2b](https://github.com/imaginario27/air-ui/commit/560de2b7f700565c087790c1eb3c581c0b782ba9))
16
+
17
+ - Package: @imaginario27/air-ui-ds.
18
+
8
19
  ## 1.4.7 - 2026-03-21
9
20
 
10
21
  Release type: patch.
@@ -0,0 +1,70 @@
1
+ <template>
2
+ <div :class="['flex flex-col', 'w-full', 'gap-2']">
3
+ <!-- Label -->
4
+ <label
5
+ v-if="label"
6
+ :for="id"
7
+ :class="[
8
+ 'text-sm',
9
+ 'font-semibold',
10
+ 'text-left',
11
+ hasError && 'text-text-error',
12
+ ]"
13
+ >
14
+ {{ label }}
15
+ </label>
16
+
17
+ <!-- Slot container -->
18
+ <div
19
+ :id
20
+ :class="[disabled && 'cursor-not-allowed opacity-disabled']"
21
+ >
22
+ <slot
23
+ :id
24
+ :error
25
+ :hasError
26
+ :helpText
27
+ :disabled
28
+ :required
29
+ />
30
+ </div>
31
+
32
+ <!-- Help / Error -->
33
+ <p
34
+ v-if="hasError || helpText"
35
+ :class="[
36
+ 'text-xs text-left',
37
+ hasError ? 'text-text-error' : 'text-text-neutral-subtle',
38
+ ]"
39
+ >
40
+ {{ hasError ? error : helpText }}
41
+ </p>
42
+ </div>
43
+ </template>
44
+
45
+ <script setup lang="ts">
46
+ // Props
47
+ const props = defineProps({
48
+ id: {
49
+ type: String as PropType<string>,
50
+ required: true,
51
+ },
52
+ label: String as PropType<string>,
53
+ helpText: String as PropType<string>,
54
+ error: {
55
+ type: String as PropType<string>,
56
+ default: '',
57
+ },
58
+ disabled: {
59
+ type: Boolean as PropType<boolean>,
60
+ default: false,
61
+ },
62
+ required: {
63
+ type: Boolean as PropType<boolean>,
64
+ default: false,
65
+ },
66
+ })
67
+
68
+ // Computed
69
+ const hasError = computed(() => props.error !== '')
70
+ </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imaginario27/air-ui-ds",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "author": "imaginario27",
5
5
  "type": "module",
6
6
  "homepage": "https://air-ui.netlify.app/",