-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(input-wrapper): refactoring and redesign (#3642)
* fix(input-wrapper): refactoring and redesign * fix(input-wrapper): text color on dark theme * fix(useTextColor): improve currentColor detection * fix(useTextColor): va-chip text color * fix(VaCounter|VaSelect): remove extra props * fix(from-elements): standartize borders * fix(from-elements): unify icons * feat(components-config): allow passing attributes in components config * fix: allow passing preset to VaInputWrapper from complex components * feat: added solid preset to checkbox and radio button * chore: remove extra css variables * fix(va-input-wrapper): correct styles apply from css v-bind * fix(va-input-wrapper): va messages list styles * fix(va-input-wrapper): colro styles * docs(va-input-wrapper): update presets * fix: validation * fix: recursive imports * docs: improve validation demo * feat(time-input): update value with arrows * docs: added change log block * fix(build): wrong types * fix(build): lost reactivity in production build * fix(va-button-toggle): remove invalid attributes * chore: stylelint fixes * fix(config-transport): correctly merge styles * fix(va-textarea): row calculation * fix(va-textarea): made as separate component * fix(va-input-wrapper): focus * fix(va-textarea): added validation * docs: update input docs * docs: update select docs * fix(time-input): changed default time-input position * fix(time-input): bottom gap size * raw: input sizes * docs(textarea): added textarea docs * fix(input-wrapper): introduce small input sizes * raw: collapse * wip: remove small sizes * fix: collapse animation * raw: collapse content slot * feat: refactor collapses * docs: pretiffy input docs * docs: update select docs * feat(select): search v-model * docs: improve inputs sizes in demos * fix(textarea): fix resize icon * fix(radio): improve docs demos * docs(textarea): prettify demos * chore(textarea): fix storybook demos * fix(textarea): scroll and resize icon * fix(collapse): stateful by default * Update packages/ui/src/components/va-input-wrapper/VaInputWrapper.demo.vue * chore: add label slot * fix(#3737): do not apply custom styles for dropdown content in select * fix(#3736): allow date input null model value * fix(#3741): input accessibility improvements * fix(select): accessibility improvement * feat(counter): accessibility improvement * feat(select): accessibility improvement * feat(date-input): accessibility improvement * fix(va-message-list): refactor and fixes * fix(types): add null check * chore(docs): update badges * fix(#3470): textarea autosize on firefox * fix(#3700): prety radio docs --------- Co-authored-by: Yauheni Prakopchyk <ontrew@gmail.com>
- Loading branch information
Showing
183 changed files
with
2,929 additions
and
2,002 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
packages/docs/modules/page-config/blocks/change-log/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { definePageConfigBlock } from '../../types' | ||
import Component from './index.vue' | ||
import { ChangeLog } from './types' | ||
|
||
export default definePageConfigBlock({ | ||
setup: (log: ChangeLog) => { | ||
return { | ||
type: 'change-log' as const, | ||
log | ||
} | ||
}, | ||
component: Component, | ||
}) | ||
|
74 changes: 74 additions & 0 deletions
74
packages/docs/modules/page-config/blocks/change-log/index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<script setup lang="ts"> | ||
import { MarkdownView } from "../shared/markdown"; | ||
import { Anchor } from "../shared/anchor"; | ||
import { ChangeLog } from "./types"; | ||
import { PropType, computed } from "vue"; | ||
const props = defineProps({ | ||
log: { type: Object as PropType<ChangeLog>, required: true }, | ||
}); | ||
const versions = computed(() => Object.keys(props.log)); | ||
</script> | ||
|
||
<template> | ||
<VaCollapse | ||
class="page-config-change-log" | ||
flat | ||
> | ||
<template #header> | ||
<div class="page-config-change-log__title"> | ||
<h2 class="va-h5"> | ||
Change log | ||
<Anchor text="Change log" /> | ||
</h2> | ||
<VaIcon name="va-arrow-down" /> | ||
</div> | ||
</template> | ||
|
||
<div | ||
v-for="version in versions" | ||
:key="version" | ||
class="page-config-change-log__block" | ||
> | ||
<h3 class="va-h6 page-config-change-log__version"> | ||
v{{ version }} | ||
</h3> | ||
<ul class="va-unordered"> | ||
<li | ||
v-for="logs in log[version]" | ||
:key="logs" | ||
> | ||
<MarkdownView :content="logs" /> | ||
</li> | ||
</ul> | ||
<VaButton | ||
:href="`https://github.com/epicmaxco/vuestic-ui/releases/tag/v${version}`" | ||
preset="plain" | ||
> | ||
View full release change log | ||
</VaButton> | ||
</div> | ||
</VaCollapse> | ||
</template> | ||
|
||
<style lang="scss"> | ||
.page-config-change-log { | ||
margin-top: 2rem; | ||
margin-bottom: 1rem; | ||
&__block { | ||
padding: 1rem 0; | ||
} | ||
&__version { | ||
margin-bottom: 1rem; | ||
} | ||
&__title { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type ChangeLog = Record<`${number}.${number}.${number}`, string[]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/docs/page-config/introduction/accessibility-guide/examples/WaiAria.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<template> | ||
<va-input | ||
v-model="text" | ||
bordered | ||
preset="bordered" | ||
label="Input Name" | ||
/> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/docs/page-config/styles/css-variables/code/overriding.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
:root { | ||
--va-checkbox-square-border-radius: 50%; | ||
--va-input-border-radius: 99999px; | ||
--va-input-wrapper-border-radius: 99999px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
packages/docs/page-config/ui-elements/accordion/examples/Flat.vue
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.