@imaginario27/air-ui-ds 1.12.0 → 1.12.2

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.12.1 - 2026-04-16
9
+
10
+ Release type: patch.
11
+ Commits found in range: 1.
12
+
13
+ ### Fixed
14
+
15
+ 1. fix NavSidebar menu items gap ([4a9cee9](https://github.com/imaginario27/air-ui/commit/4a9cee9bdede4bb3bbb1f8fc9c528bf932f62976))
16
+
17
+ - Package: @imaginario27/air-ui-ds.
18
+
19
+ ## 1.12.0 - 2026-04-16
20
+
21
+ Release type: minor.
22
+ Commits found in range: 1.
23
+
24
+ ### Added
25
+
26
+ 1. add ContextMenu and Kbd components ([9d4acce](https://github.com/imaginario27/air-ui/commit/9d4acce4d33fefec3eeab657bebfe5a5e4ff41ea))
27
+
28
+ - Package: @imaginario27/air-ui-ds.
29
+
8
30
  ## 1.11.0 - 2026-04-15
9
31
 
10
32
  Release type: minor.
@@ -129,7 +129,7 @@
129
129
  'sticky',
130
130
  'top-0',
131
131
  'bg-background-container-surface',
132
- 'z-10'
132
+ 'z-10',
133
133
  ]"
134
134
  >
135
135
  <input
@@ -144,8 +144,12 @@
144
144
  'border-border-default',
145
145
  'rounded-sm',
146
146
  'text-sm',
147
- searchQuery ? 'text-text-default' : 'text-text-neutral-subtle'
147
+ 'outline-none',
148
+ searchQuery ? 'text-text-default' : 'text-text-neutral-subtle',
149
+ isSearchFieldFocused && 'ring-2 focus-within:ring-inset focus-within:ring-border-primary-brand-default',
148
150
  ]"
151
+ @focus="isSearchFieldFocused = true"
152
+ @blur="isSearchFieldFocused = false"
149
153
  >
150
154
  </div>
151
155
 
@@ -320,6 +324,7 @@ const dropdownClass = computed(() => {
320
324
  const isImageLoaded = ref(true)
321
325
  const selected = ref<SelectOption[] | SelectOption | null>(props.multiple ? [] : null)
322
326
  const searchQuery = ref('')
327
+ const isSearchFieldFocused = ref(false)
323
328
 
324
329
  // Handlers for image load and error
325
330
  const handleImageLoad = () => {
@@ -36,7 +36,7 @@
36
36
  inputSizeClass,
37
37
  type === 'color' && 'w-fit',
38
38
  hasError ? 'border-border-error text-text-error' : 'border-border-default',
39
- isFocused && 'ring-2 ring-border-primary-brand-default',
39
+ isFocused && 'ring-2 focus-within:ring-inset focus-within:ring-border-primary-brand-default',
40
40
  disabled ? 'bg-background-neutral-disabled' : 'bg-neutral-white',
41
41
  disabled && 'cursor-not-allowed',
42
42
  ]"
@@ -43,7 +43,7 @@
43
43
  hasError
44
44
  ? 'border-border-error'
45
45
  : 'border-border-default',
46
- focusedIndex === index && 'ring-2 ring-border-primary-brand-default',
46
+ focusedIndex === index && 'ring-2 focus-within:ring-inset focus-within:ring-border-primary-brand-default',
47
47
  disabled
48
48
  ? 'bg-background-neutral-disabled cursor-not-allowed'
49
49
  : 'bg-neutral-white',
@@ -32,7 +32,7 @@
32
32
  'text-text-default',
33
33
  'border-border-default',
34
34
  inputCustomClass,
35
- isFocused && 'ring-2 ring-border-primary-brand-default',
35
+ isFocused && 'ring-2 ring-inset ring-border-primary-brand-default',
36
36
  disabled ? 'bg-background-neutral-disabled cursor-not-allowed' : 'bg-neutral-white',
37
37
  ]"
38
38
  >
@@ -36,15 +36,14 @@
36
36
  icon ? 'pl-3' : 'pl-4',
37
37
  hasError ? 'pr-3' : 'pr-4',
38
38
  hasError ? 'border-border-error text-text-error' : 'border-border-default',
39
- isFocused && 'ring-2 ring-border-primary-brand-default',
39
+ isFocused && 'ring-2 focus-within:ring-inset focus-within:ring-border-primary-brand-default',
40
40
  disabled ? 'bg-background-neutral-disabled' : 'bg-neutral-white',
41
41
  disabled && 'cursor-not-allowed',
42
42
  ]"
43
43
  >
44
44
  <!-- Icon -->
45
- <span class="mt-1.75">
45
+ <span v-if="icon" class="mt-1.75">
46
46
  <Icon
47
- v-if="icon"
48
47
  :name="icon"
49
48
  iconClass="text-icon-neutral-subtler"
50
49
  />
@@ -28,7 +28,7 @@
28
28
  minHeightClass,
29
29
  autoResize && maxHeightClass,
30
30
  hasError ? 'border-border-error text-text-error' : 'border-border-default',
31
- isFocused && 'ring-2 ring-border-primary-brand-default',
31
+ isFocused && 'ring-2 focus-within:ring-inset focus-within:ring-border-primary-brand-default',
32
32
  textareaClass,
33
33
  ]"
34
34
  >
@@ -12,6 +12,7 @@
12
12
  'justify-between',
13
13
  levelTextClass,
14
14
  spacingClass,
15
+ nestedItemSpacingClass,
15
16
  !isActive && 'text-text-default',
16
17
  isActive && 'text-text-primary-brand-on-neutral-hover-bg bg-background-neutral-hover',
17
18
  disabled && 'opacity-disabled cursor-not-allowed pointer-events-none',
@@ -153,6 +154,15 @@ const spacingClass = computed(() => {
153
154
  return variant[props.styleType as SidebarNavMenuItemStyleType] || 'min-h-[40px] py-2 pl-3 pr-2'
154
155
  })
155
156
 
157
+ const nestedItemSpacingClass = computed(() => {
158
+ const variant = {
159
+ [SidebarNavMenuItemStyleType.SPACED]: 'my-1',
160
+ [SidebarNavMenuItemStyleType.COMPACT]: 'my-0.5',
161
+ }
162
+
163
+ return variant[props.styleType as SidebarNavMenuItemStyleType] || 'my-0.5'
164
+ })
165
+
156
166
  const gapClass = computed(() => {
157
167
  const variant = {
158
168
  [SidebarNavMenuItemStyleType.SPACED]: 'gap-3',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imaginario27/air-ui-ds",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "author": "imaginario27",
5
5
  "type": "module",
6
6
  "homepage": "https://air-ui.netlify.app/",