Skip to content

Commit 7db6ac8

Browse files
committed
chore: update BaseInput size prop values
1 parent 4560253 commit 7db6ac8

File tree

16 files changed

+20
-31
lines changed

16 files changed

+20
-31
lines changed

app/components/Compare/PackageSelector.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ onClickOutside(containerRef, () => {
246246
: $t('compare.selector.search_add')
247247
"
248248
no-correct
249-
size="medium"
250249
class="w-full min-w-25 ps-7"
251250
aria-autocomplete="list"
252251
ref="inputRef"

app/components/Filter/Panel.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ const hasActiveFilters = computed(() => !!filterSummary.value)
246246
:placeholder="searchPlaceholder"
247247
autocomplete="off"
248248
class="w-full min-w-25"
249-
size="medium"
250249
no-correct
251250
/>
252251
</div>

app/components/Header/AuthModal.client.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ watch(user, async newUser => {
112112
:placeholder="$t('auth.modal.handle_placeholder')"
113113
no-correct
114114
class="w-full"
115-
size="medium"
116115
/>
117116
<p v-if="errorMessage" class="text-red-500 text-xs mt-1" role="alert">
118117
{{ errorMessage }}

app/components/Header/ConnectorModal.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ const executeNpmxConnectorCommand = computed(() => {
128128
:placeholder="$t('connector.modal.token_placeholder')"
129129
no-correct
130130
class="w-full"
131-
size="medium"
132131
/>
133132
</div>
134133

@@ -151,7 +150,6 @@ const executeNpmxConnectorCommand = computed(() => {
151150
inputmode="numeric"
152151
autocomplete="off"
153152
class="w-full"
154-
size="medium"
155153
/>
156154

157155
<div class="border-t border-border my-3" />

app/components/Header/SearchBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ defineExpose({ focus })
6262
class="w-full min-w-25 ps-7 pe-8"
6363
@focus="isSearchFocused = true"
6464
@blur="isSearchFocused = false"
65-
size="small"
65+
size="sm"
6666
ariaKeyshortcuts="/"
6767
/>
6868
<button

app/components/Input/Base.stories.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const meta = {
88
disabled: { control: 'boolean' },
99
size: {
1010
control: 'select',
11-
options: ['small', 'medium', 'large'],
11+
options: ['sm', 'md', 'lg'],
1212
},
1313
noCorrect: {
1414
control: 'boolean',
@@ -29,10 +29,10 @@ export const Snapshot: Story = {
2929
render: () => ({
3030
template: `
3131
<div style="display: flex; flex-direction: column; gap: 1rem; padding: 1rem;">
32-
<Component size="small" model-value="Small input" />
33-
<Component size="medium" model-value="Medium input" />
34-
<Component size="large" model-value="Large input" />
35-
<Component size="large" model-value="disabled" disabled />
32+
<Component size="sm" model-value="Small input" />
33+
<Component size="md" model-value="Medium input" />
34+
<Component size="lg" model-value="Large input" />
35+
<Component size="lg" model-value="disabled" disabled />
3636
</div>
3737
`,
3838
components: { Component },

app/components/Input/Base.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const model = defineModel<string>({ default: '' })
66
const props = withDefaults(
77
defineProps<{
88
disabled?: boolean
9-
/** @default 'medium' */
10-
size?: 'small' | 'medium' | 'large'
9+
/** @default 'md' */
10+
size?: 'sm' | 'md' | 'lg'
1111
/**
1212
* Prevents the browser from automatically modifying user input
1313
* (e.g. autocorrect, autocomplete, autocapitalize, and spellcheck).
@@ -18,7 +18,7 @@ const props = withDefaults(
1818
ariaKeyshortcuts?: string
1919
}>(),
2020
{
21-
size: 'medium',
21+
size: 'md',
2222
noCorrect: true,
2323
},
2424
)
@@ -47,9 +47,9 @@ defineExpose({
4747
@blur="emit('blur', $event)"
4848
class="appearance-none bg-bg-subtle border border-border font-mono text-fg placeholder:text-fg-subtle transition-[border-color,outline-color] duration-300 hover:border-fg-subtle outline-2 outline-transparent outline-offset-2 focus:border-accent focus-visible:outline-accent/70 disabled:(opacity-50 cursor-not-allowed)"
4949
:class="{
50-
'text-xs leading-[1.2] px-2 py-2 rounded-md': size === 'small',
51-
'text-sm leading-none px-3 py-2.5 rounded-lg': size === 'medium',
52-
'text-base leading-[1.4] px-6 py-4 rounded-xl': size === 'large',
50+
'text-xs leading-[1.2] px-2 py-2 rounded-md': size === 'sm',
51+
'text-sm leading-none px-3 py-2.5 rounded-lg': size === 'md',
52+
'text-base leading-[1.4] px-6 py-4 rounded-xl': size === 'lg',
5353
}"
5454
:disabled="
5555
/** Catching Vue render-bug of invalid `disabled=false` attribute in the final HTML */

app/components/Org/MembersPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ watch(lastExecutionTime, () => {
339339
:placeholder="$t('org.members.filter_placeholder')"
340340
no-correct
341341
class="w-full min-w-25 ps-7"
342-
size="small"
342+
size="sm"
343343
/>
344344
</div>
345345
<div
@@ -526,7 +526,7 @@ watch(lastExecutionTime, () => {
526526
:placeholder="$t('org.members.username_placeholder')"
527527
no-correct
528528
class="w-full min-w-25"
529-
size="small"
529+
size="sm"
530530
/>
531531
<div class="flex items-center gap-2">
532532
<SelectField

app/components/Org/OperationsQueue.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ watch(isExecuting, executing => {
325325
autocomplete="one-time-code"
326326
spellcheck="false"
327327
:class="['flex-1 min-w-25', otpError ? 'border-red-500 focus:outline-red-500' : '']"
328-
size="small"
328+
size="sm"
329329
@input="otpError = ''"
330330
/>
331331
<button

app/components/Org/TeamsPanel.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ watch(lastExecutionTime, () => {
295295
:placeholder="$t('org.teams.filter_placeholder')"
296296
no-correct
297297
class="w-full min-w-25 ps-7"
298-
size="medium"
299298
/>
300299
</div>
301300
<div
@@ -452,7 +451,6 @@ watch(lastExecutionTime, () => {
452451
:placeholder="$t('org.teams.username_placeholder')"
453452
no-correct
454453
class="flex-1 min-w-25"
455-
size="medium"
456454
/>
457455
<button
458456
type="submit"
@@ -509,7 +507,6 @@ watch(lastExecutionTime, () => {
509507
:placeholder="$t('org.teams.team_name_placeholder')"
510508
no-correct
511509
class="flex-1 min-w-25 rounded-is-none"
512-
size="medium"
513510
/>
514511
</div>
515512
<button

0 commit comments

Comments
 (0)