diff --git a/packages/docs/components/layout/Sidebar.vue b/packages/docs/components/layout/Sidebar.vue index c6923268e7..a46811898f 100644 --- a/packages/docs/components/layout/Sidebar.vue +++ b/packages/docs/components/layout/Sidebar.vue @@ -168,6 +168,8 @@ export default defineComponent({ @import "@/assets/smart-grid.scss"; .sidebar { + --va-sidebar-transition: none; + &__collapse-custom-header { position: relative; padding: 1rem 1.2rem; diff --git a/packages/docs/layouts/default.vue b/packages/docs/layouts/default.vue index f1cbc2b467..75a3c0b1f8 100644 --- a/packages/docs/layouts/default.vue +++ b/packages/docs/layouts/default.vue @@ -1,5 +1,5 @@ + + \ No newline at end of file diff --git a/packages/docs/page-config/ui-elements/config/examples/Components.vue b/packages/docs/page-config/ui-elements/config/examples/Components.vue new file mode 100644 index 0000000000..7596f5a5b6 --- /dev/null +++ b/packages/docs/page-config/ui-elements/config/examples/Components.vue @@ -0,0 +1,41 @@ + + + diff --git a/packages/docs/page-config/ui-elements/config/examples/Default.vue b/packages/docs/page-config/ui-elements/config/examples/Default.vue deleted file mode 100644 index dd1355a2b5..0000000000 --- a/packages/docs/page-config/ui-elements/config/examples/Default.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/packages/docs/page-config/ui-elements/config/examples/Internalization.vue b/packages/docs/page-config/ui-elements/config/examples/Internalization.vue new file mode 100644 index 0000000000..516024276b --- /dev/null +++ b/packages/docs/page-config/ui-elements/config/examples/Internalization.vue @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/packages/docs/page-config/ui-elements/config/index.ts b/packages/docs/page-config/ui-elements/config/index.ts index 7e6f582876..8e2dfbe6cf 100644 --- a/packages/docs/page-config/ui-elements/config/index.ts +++ b/packages/docs/page-config/ui-elements/config/index.ts @@ -8,7 +8,12 @@ export default definePageConfig({ block.subtitle("all.examples"), - block.example("Default"), + block.example("Components"), + block.link('config.examples.components.see', '/services/components-config'), + // block.example("Colors"), + // block.link('config.examples.colors.see', '/services/colors-config'), + block.example("Internalization"), + block.link('config.examples.internalization.see', '/services/i18n'), block.subtitle("all.api"), block.api("VaConfig", apiOptions), diff --git a/packages/docs/page-config/ui-elements/config/translation/en.json b/packages/docs/page-config/ui-elements/config/translation/en.json index bb7281844a..a128be2249 100644 --- a/packages/docs/page-config/ui-elements/config/translation/en.json +++ b/packages/docs/page-config/ui-elements/config/translation/en.json @@ -3,9 +3,20 @@ "description": "`VaConfig` is a utility component that allows you to configure components (provide specific default prop values to components) locally in a section of your application. This is useful when you have a local scope where your components have props other than global ones.", "link": "Find out more about components config", "examples": { - "default": { - "title": "Default usage", - "text": "By default, `VaConfig` does nothing. You must provide the `components` prop with the `vuestic` components configuration." + "components": { + "title": "Components", + "text": "By default, `VaConfig` does nothing. You must provide the `components` prop with the `vuestic` components configuration.", + "see": "Learn more about Components Config" + }, + "colors": { + "title": "Colors", + "text": "You can configure colors for components. For example, you can change color whole preset name.", + "see": "Learn more about Colors Config" + }, + "internalization": { + "title": "i18n", + "text": "You can configure i18n translations for components.", + "see": "Learn more about i18n Config" } } } \ No newline at end of file diff --git a/packages/ui/src/components/va-button-toggle/types.ts b/packages/ui/src/components/va-button-toggle/types.ts index d607aa85d1..03480de225 100644 --- a/packages/ui/src/components/va-button-toggle/types.ts +++ b/packages/ui/src/components/va-button-toggle/types.ts @@ -1,5 +1,7 @@ export type ButtonOption = { icon?: string, iconRight?: string - [prop: string]: string | number | boolean | undefined + label?: string, + value?: unknown, + [prop: string]: any } diff --git a/packages/ui/src/components/va-color-input/VaColorInput.vue b/packages/ui/src/components/va-color-input/VaColorInput.vue index 2e09088b5e..8ccd3687d7 100644 --- a/packages/ui/src/components/va-color-input/VaColorInput.vue +++ b/packages/ui/src/components/va-color-input/VaColorInput.vue @@ -90,7 +90,6 @@ export default defineComponent({ &__input { margin-bottom: 0; - margin-left: 0.25rem; min-width: 5.6rem; &__pointer { diff --git a/packages/ui/src/components/va-config/VaConfig.vue b/packages/ui/src/components/va-config/VaConfig.vue index f949d1543e..01e598798c 100644 --- a/packages/ui/src/components/va-config/VaConfig.vue +++ b/packages/ui/src/components/va-config/VaConfig.vue @@ -1,7 +1,8 @@