@globalbrain/sefirot 3.35.0 → 3.35.1

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.
@@ -22,7 +22,7 @@ defineProps<{
22
22
  border: 1px solid var(--c-divider);
23
23
  border-radius: 6px;
24
24
  min-width: 288px;
25
- max-height: 384px;
25
+ max-height: 364px;
26
26
  overflow-y: auto;
27
27
  white-space: normal;
28
28
 
@@ -3,6 +3,7 @@ import IconCheck from '@iconify-icons/ph/check'
3
3
  import Fuse from 'fuse.js'
4
4
  import { type MaybeRef, computed, onMounted, ref, unref } from 'vue'
5
5
  import { type DropdownSectionFilterOption, type DropdownSectionFilterSelectedValue } from '../composables/Dropdown'
6
+ import { useTrans } from '../composables/Lang'
6
7
  import { isArray } from '../support/Utils'
7
8
  import SDropdownSectionFilterItem from './SDropdownSectionFilterItem.vue'
8
9
  import SIcon from './SIcon.vue'
@@ -14,6 +15,17 @@ const props = defineProps<{
14
15
  onClick?(value: any): void
15
16
  }>()
16
17
 
18
+ const { t } = useTrans({
19
+ en: {
20
+ i_ph: 'Filter options',
21
+ not_found: 'No options found.'
22
+ },
23
+ ja: {
24
+ i_ph: 'オプションを検索',
25
+ not_found: 'オプションが見つかりません。'
26
+ }
27
+ })
28
+
17
29
  const input = ref<HTMLElement | null>(null)
18
30
  const query = ref('')
19
31
 
@@ -60,7 +72,7 @@ function handleClick(option: DropdownSectionFilterOption, value: any) {
60
72
  <template>
61
73
  <div class="SDropdownSectionFilter">
62
74
  <div v-if="search" class="search">
63
- <input class="input" placeholder="Filter options" ref="input" v-model="query">
75
+ <input class="input" :placeholder="t.i_ph" ref="input" v-model="query">
64
76
  </div>
65
77
 
66
78
  <ul v-if="filteredOptions.length" class="list">
@@ -89,7 +101,7 @@ function handleClick(option: DropdownSectionFilterOption, value: any) {
89
101
  </ul>
90
102
 
91
103
  <p v-else class="empty">
92
- No options found.
104
+ {{ t.not_found }}
93
105
  </p>
94
106
  </div>
95
107
  </template>
@@ -105,6 +117,7 @@ function handleClick(option: DropdownSectionFilterOption, value: any) {
105
117
  z-index: 10;
106
118
  border-bottom: 1px solid var(--c-gutter);
107
119
  padding: 8px;
120
+ background-color: var(--c-bg-elv-3);
108
121
  }
109
122
 
110
123
  .input {
@@ -138,8 +151,7 @@ function handleClick(option: DropdownSectionFilterOption, value: any) {
138
151
  text-align: left;
139
152
  transition: color 0.25s, background-color 0.25s;
140
153
 
141
- &:hover,
142
- &:focus {
154
+ &:hover {
143
155
  background-color: var(--c-bg-mute-1);
144
156
  }
145
157
  }
@@ -31,6 +31,7 @@ defineProps<{
31
31
  .name {
32
32
  display: inline-block;
33
33
  padding-left: 8px;
34
+ line-height: 20px;
34
35
  font-size: 14px;
35
36
  font-weight: 400;
36
37
  white-space: nowrap;
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import IconX from '@iconify-icons/ph/x'
2
+ import IconX from '@iconify-icons/ph/x-bold'
3
3
  import SIcon from './SIcon.vue'
4
4
 
5
5
  defineProps<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
- "version": "3.35.0",
3
+ "version": "3.35.1",
4
4
  "packageManager": "pnpm@8.15.4",
5
5
  "description": "Vue Components for Global Brain Design System.",
6
6
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",