Yanghai.Lin
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
8 additions and
4 deletions
-
lefthook.yml
-
packages/@core/ui-kit/shadcn-ui/src/ui/input/Input.vue
-
packages/@core/ui-kit/shadcn-ui/src/ui/select/SelectTrigger.vue
|
|
@ -50,10 +50,10 @@ pre-commit: |
|
|
run: pnpm oxfmt {staged_files} |
|
|
run: pnpm oxfmt {staged_files} |
|
|
glob: '*.md' |
|
|
glob: '*.md' |
|
|
lint-vue: |
|
|
lint-vue: |
|
|
run: pnpm oxfmt {staged_files} && pnpm oxlint --fix {staged_files} && pnpm eslint --cache --fix {staged_files} && pnpm stylelint --fix --allow-empty-input {staged_files} |
|
|
run: pnpm oxfmt {staged_files} && pnpm oxlint --fix --no-error-on-unmatched-pattern {staged_files} && pnpm eslint --cache --fix {staged_files} && pnpm stylelint --fix --allow-empty-input {staged_files} |
|
|
glob: '*.vue' |
|
|
glob: '*.vue' |
|
|
lint-js: |
|
|
lint-js: |
|
|
run: pnpm oxfmt {staged_files} && pnpm oxlint --fix {staged_files} && pnpm eslint --cache --fix {staged_files} |
|
|
run: pnpm oxfmt {staged_files} && pnpm oxlint --fix --no-error-on-unmatched-pattern {staged_files} && pnpm eslint --cache --fix {staged_files} |
|
|
glob: '*.{js,jsx,ts,tsx}' |
|
|
glob: '*.{js,jsx,ts,tsx}' |
|
|
lint-style: |
|
|
lint-style: |
|
|
run: pnpm oxfmt {staged_files} && pnpm stylelint --fix --allow-empty-input {staged_files} |
|
|
run: pnpm oxfmt {staged_files} && pnpm stylelint --fix --allow-empty-input {staged_files} |
|
|
|
|
|
@ -24,7 +24,7 @@ const modelValue = useVModel(props, 'modelValue', emits, { |
|
|
v-model="modelValue" |
|
|
v-model="modelValue" |
|
|
:class=" |
|
|
:class=" |
|
|
cn( |
|
|
cn( |
|
|
'border-input bg-background ring-offset-background placeholder:text-muted-foreground/50 focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50', |
|
|
'border-input bg-background ring-offset-background placeholder:text-muted-foreground/50 focus-visible:outline-none flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-not-allowed disabled:opacity-50', |
|
|
props.class, |
|
|
props.class, |
|
|
) |
|
|
) |
|
|
" |
|
|
" |
|
|
@ -34,6 +34,10 @@ const modelValue = useVModel(props, 'modelValue', emits, { |
|
|
input { |
|
|
input { |
|
|
--ring: var(--primary); |
|
|
--ring: var(--primary); |
|
|
|
|
|
|
|
|
|
|
|
&:focus-visible { |
|
|
|
|
|
box-shadow: inset 0 0 0 1px hsl(var(--ring)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
&::-ms-reveal, |
|
|
&::-ms-reveal, |
|
|
&::-ms-clear { |
|
|
&::-ms-clear { |
|
|
display: none; |
|
|
display: none; |
|
|
|
|
|
@ -24,7 +24,7 @@ const forwardedProps = useForwardProps(delegatedProps); |
|
|
v-bind="forwardedProps" |
|
|
v-bind="forwardedProps" |
|
|
:class=" |
|
|
:class=" |
|
|
cn( |
|
|
cn( |
|
|
'border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs focus:ring-1 focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', |
|
|
'border-input ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:shadow-[inset_0_0_0_1px_hsl(var(--primary))] flex h-10 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', |
|
|
props.class, |
|
|
props.class, |
|
|
) |
|
|
) |
|
|
" |
|
|
" |
|
|
|