@imaginario27/air-ui-ds 1.5.0 → 1.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/CHANGELOG.md CHANGED
@@ -5,6 +5,28 @@ 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.6.0 - 2026-03-24
9
+
10
+ Release type: minor.
11
+ Commits found in range: 1.
12
+
13
+ ### Added
14
+
15
+ 1. add SlotField form component ([d1e71a9](https://github.com/imaginario27/air-ui/commit/d1e71a903c25a39eedf86c4547496ad238a9da84))
16
+
17
+ - Package: @imaginario27/air-ui-ds.
18
+
19
+ ## 1.5.0 - 2026-03-23
20
+
21
+ Release type: minor.
22
+ Commits found in range: 1.
23
+
24
+ ### Added
25
+
26
+ 1. add new standalone checkbox component and fixes style issues ([560de2b](https://github.com/imaginario27/air-ui/commit/560de2b7f700565c087790c1eb3c581c0b782ba9))
27
+
28
+ - Package: @imaginario27/air-ui-ds.
29
+
8
30
  ## 1.4.7 - 2026-03-21
9
31
 
10
32
  Release type: patch.
@@ -10,7 +10,7 @@
10
10
  />
11
11
 
12
12
  <!-- Text -->
13
- <span :class="textClass">
13
+ <span :class="['whitespace-nowrap', textClass]">
14
14
  {{ text }}
15
15
  </span>
16
16
  </div>
@@ -0,0 +1,73 @@
1
+ <template>
2
+ <Card
3
+ :hasShadow="false"
4
+ :class="[
5
+ 'bg-background-neutral-subtlest'
6
+ ]"
7
+ >
8
+ <CardBody>
9
+ <div
10
+ :class="[
11
+ 'flex',
12
+ 'gap-1',
13
+ 'w-full',
14
+ 'text-sm',
15
+ alignClass
16
+ ]"
17
+ >
18
+ <span :class="scopeClass">
19
+ {{ scope }}
20
+ </span>
21
+
22
+ <Icon
23
+ name="mdi:chevron-right"
24
+ :iconClass="['text-icon-neutral-subtler', iconClass ?? '']"
25
+ />
26
+
27
+ <span
28
+ :class="[
29
+ 'font-bold',
30
+ 'text-sm',
31
+ titleClass
32
+ ]">
33
+ {{ title }}
34
+ </span>
35
+ </div>
36
+ </CardBody>
37
+ </Card>
38
+ </template>
39
+ <script setup lang="ts">
40
+ // Props
41
+ const props = defineProps({
42
+ scope: {
43
+ type: String as PropType<string>,
44
+ default: 'Scope',
45
+ },
46
+ title: {
47
+ type: String as PropType<string>,
48
+ default: 'Title',
49
+ },
50
+ description: {
51
+ type: String as PropType<string>,
52
+ required: true,
53
+ },
54
+ alignement: {
55
+ type: String as PropType<Align>,
56
+ default: Align.LEFT,
57
+ },
58
+ scopeClass: String as PropType<string>,
59
+ iconClass: String as PropType<string>,
60
+ titleClass: String as PropType<string>,
61
+ })
62
+
63
+ // Computed classes
64
+ const alignClass = computed(() => {
65
+ const variant: Record<Align, string> = {
66
+ [Align.LEFT]: "justify-start",
67
+ [Align.CENTER]: "justify-center",
68
+ [Align.RIGHT]: "justify-end",
69
+ }
70
+
71
+ return variant[props.alignement as Align] || "justify-start"
72
+ })
73
+ </script>
@@ -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>
@@ -7,7 +7,8 @@
7
7
  'border-border-neutral-subtle',
8
8
  'text-sm',
9
9
  fitToContent ? 'w-[1%]' : 'w-auto',
10
- to ? 'hover:cursor-pointer' : undefined
10
+ to ? 'hover:cursor-pointer' : undefined,
11
+ noWrap && 'whitespace-nowrap',
11
12
  ]"
12
13
  @click="handleNavigation"
13
14
  >
@@ -23,6 +24,10 @@ const props = defineProps({
23
24
  default: false,
24
25
  },
25
26
  to: String as PropType<string>,
27
+ noWrap: {
28
+ type: Boolean as PropType<boolean>,
29
+ default: false,
30
+ },
26
31
  })
27
32
 
28
33
  // Navigation handler
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.7.0",
4
4
  "author": "imaginario27",
5
5
  "type": "module",
6
6
  "homepage": "https://air-ui.netlify.app/",