From 8047bb7c0cbc184c69963ca909e1bca29eb103c7 Mon Sep 17 00:00:00 2001 From: NicolasMerget Date: Wed, 10 Apr 2024 15:49:00 +0200 Subject: [PATCH 01/10] fix: links with foundation readme --- packages/foundations/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/foundations/README.md b/packages/foundations/README.md index 37292718732..17eb0560ff2 100644 --- a/packages/foundations/README.md +++ b/packages/foundations/README.md @@ -9,9 +9,9 @@ A library containing all tokens (colors, icons, variables) of [DB UX Design Syst We currently support: -- [CSS](#css) -- [SCSS](#scss) -- [Tailwind](#tailwind) +- [CSS](https://db-ui.github.io/mono/review/main/foundations/readme?current=css) +- [SCSS](https://db-ui.github.io/mono/review/main/foundations/readme?current=scss) +- [Tailwind](https://db-ui.github.io/mono/review/main/foundations/readme?current=tailwind) ## Install From f16f8ab2c4cead49388cedee9ffc7746be4afdb7 Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:10:36 +0200 Subject: [PATCH 02/10] fix: issue with properties page for patternhub (#2486) --- showcases/patternhub/components/default-page.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/showcases/patternhub/components/default-page.tsx b/showcases/patternhub/components/default-page.tsx index c51710896ed..341d474359b 100644 --- a/showcases/patternhub/components/default-page.tsx +++ b/showcases/patternhub/components/default-page.tsx @@ -21,6 +21,18 @@ const DefaultPage = ({ children }: any) => { const router = useRouter(); useEffect(() => { + hljs.configure({ + languages: [ + 'js', + 'ts', + 'jsx', + 'tsx', + 'css', + 'scss', + 'html', + 'shell' + ] + }); hljs.highlightAll(); }, []); From 99961e1fd4fa6e18866ea97e640f3c5d5c80d636 Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Wed, 10 Apr 2024 18:39:38 +0200 Subject: [PATCH 03/10] fix: issue with wrong tooltip distance (#2485) --- packages/components/src/styles/_popover-component.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/styles/_popover-component.scss b/packages/components/src/styles/_popover-component.scss index 02337180fc9..1601f5a4f9c 100644 --- a/packages/components/src/styles/_popover-component.scss +++ b/packages/components/src/styles/_popover-component.scss @@ -50,7 +50,7 @@ $popover-gap-inset: calc(-1 * #{$popover-gap-size}); } &:is(.db-tooltip) { - --db-popover-distance: #{variables.$db-spacing-fixed-xs}; + --db-popover-distance: #{variables.$db-spacing-fixed-sm}; } &[data-placement^="bottom"]:not([data-outside-vy]), From 0e3b18c80b67687300fcd50ffa6930029cb757b9 Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Wed, 10 Apr 2024 19:11:13 +0200 Subject: [PATCH 04/10] Docs merge accordion and accordion item docs (#2482) * docs: removes accordion item route from pattern hub * feat: adds merged variants to default component * docs: try to merge docs * docs: merge accordion and accordion item overview * chore: moved properties for accordion-item into accordion fix: typescript issues with react --------- Co-authored-by: brunoschadeck --- .../src/components/accordion/docs/Angular.md | 4 +- .../src/components/accordion/docs/React.md | 2 +- .../src/components/accordion/docs/Vue.md | 2 +- showcases/patternhub/components/index.tsx | 103 +++++++++++++----- showcases/patternhub/data/routes.ts | 15 ++- .../patternhub/scripts/get-code-files.js | 3 +- .../src/components/accordion-item/index.tsx | 6 +- .../src/components/accordion/index.tsx | 17 ++- showcases/shared/default-component-data.ts | 6 + 9 files changed, 112 insertions(+), 46 deletions(-) diff --git a/packages/components/src/components/accordion/docs/Angular.md b/packages/components/src/components/accordion/docs/Angular.md index 80fab4c8a58..c06e029be22 100644 --- a/packages/components/src/components/accordion/docs/Angular.md +++ b/packages/components/src/components/accordion/docs/Angular.md @@ -6,12 +6,12 @@ For general installation and configuration look at the [ngx-components](https:// ```ts app.component.ts // app.component.ts -import { DBAccordion } from '@db-ui/ngx-components'; +import { DBAccordion, DBAccordionItem } from '@db-ui/ngx-components'; @Component({ // ... standalone: true, - imports: [..., DBAccordion], + imports: [..., DBAccordion, DBAccordionItem], // ... }) ``` diff --git a/packages/components/src/components/accordion/docs/React.md b/packages/components/src/components/accordion/docs/React.md index 270eb705e06..081317a348c 100644 --- a/packages/components/src/components/accordion/docs/React.md +++ b/packages/components/src/components/accordion/docs/React.md @@ -6,7 +6,7 @@ For general installation and configuration look at the [react-components](https: ```tsx App.tsx // App.tsx -import { DBAccordion } from "@db-ui/react-components"; +import { DBAccordion, DBAccordionItem } from "@db-ui/react-components"; const App = () => ( diff --git a/packages/components/src/components/accordion/docs/Vue.md b/packages/components/src/components/accordion/docs/Vue.md index b0419cd22fb..64149be8e82 100644 --- a/packages/components/src/components/accordion/docs/Vue.md +++ b/packages/components/src/components/accordion/docs/Vue.md @@ -7,7 +7,7 @@ For general installation and configuration look at the [v-components](https://ww ```vue App.vue