From 55a2c002a712417e4099572d99a9c47d4916393e Mon Sep 17 00:00:00 2001 From: PelayoFelgueroso Date: Tue, 9 Dec 2025 12:35:49 +0100 Subject: [PATCH] Fix string default values in TableCode for better formatting in documentation --- .../components/data-grid/code/DataGridCodePage.tsx | 12 +++++++++--- .../components/date-input/code/DateInputCodePage.tsx | 4 +++- .../components/select/code/SelectCodePage.tsx | 4 +++- .../components/textarea/code/TextareaCodePage.tsx | 4 +++- .../typography/code/TypographyCodePage.tsx | 12 ++++++------ 5 files changed, 24 insertions(+), 12 deletions(-) diff --git a/apps/website/screens/components/data-grid/code/DataGridCodePage.tsx b/apps/website/screens/components/data-grid/code/DataGridCodePage.tsx index ecfdd9237..679b3bea2 100644 --- a/apps/website/screens/components/data-grid/code/DataGridCodePage.tsx +++ b/apps/website/screens/components/data-grid/code/DataGridCodePage.tsx @@ -146,7 +146,9 @@ const sections = [ number Number of items per page. - 5 + + 5 + itemsPerPageFunction @@ -270,7 +272,9 @@ const sections = [ boolean If true, a select component for navigation between pages will be displayed. - true + + true + showPaginator @@ -278,7 +282,9 @@ const sections = [ boolean If true, paginator will be displayed. - false + + false + summaryRow diff --git a/apps/website/screens/components/date-input/code/DateInputCodePage.tsx b/apps/website/screens/components/date-input/code/DateInputCodePage.tsx index 6dc0c0d3a..766731813 100644 --- a/apps/website/screens/components/date-input/code/DateInputCodePage.tsx +++ b/apps/website/screens/components/date-input/code/DateInputCodePage.tsx @@ -31,7 +31,9 @@ const sections = [ Specifies a string to be used as the name for the date input element when no label is provided. - 'Date input' + + 'Date input' + autocomplete diff --git a/apps/website/screens/components/select/code/SelectCodePage.tsx b/apps/website/screens/components/select/code/SelectCodePage.tsx index 82ed44dbb..177579c90 100644 --- a/apps/website/screens/components/select/code/SelectCodePage.tsx +++ b/apps/website/screens/components/select/code/SelectCodePage.tsx @@ -269,7 +269,9 @@ const sections = [ Defines the search mode when searchable is true. If true, matches options that start with the search text. If false, matches options that contain the search text anywhere in their label. - false + + false + size diff --git a/apps/website/screens/components/textarea/code/TextareaCodePage.tsx b/apps/website/screens/components/textarea/code/TextareaCodePage.tsx index d00e56ed5..af4192460 100644 --- a/apps/website/screens/components/textarea/code/TextareaCodePage.tsx +++ b/apps/website/screens/components/textarea/code/TextareaCodePage.tsx @@ -29,7 +29,9 @@ const sections = [ Specifies a string to be used as the name for the textarea element when no label is provided. - 'Text area' + + 'Text area' + autocomplete diff --git a/apps/website/screens/components/typography/code/TypographyCodePage.tsx b/apps/website/screens/components/typography/code/TypographyCodePage.tsx index 199b916c5..340ee832c 100644 --- a/apps/website/screens/components/typography/code/TypographyCodePage.tsx +++ b/apps/website/screens/components/typography/code/TypographyCodePage.tsx @@ -54,7 +54,7 @@ const sections = [ Color of the text. - var(--color-fg-neutral-dark) + 'var(--color-fg-neutral-dark)' @@ -78,7 +78,7 @@ const sections = [ Specifies the font-family CSS property of the component. - var(--typography-font-family) + 'var(--typography-font-family)' @@ -90,7 +90,7 @@ const sections = [ Specifies the font-size CSS property of the component. - var(--typography-body-m) + 'var(--typography-body-m)' @@ -114,7 +114,7 @@ const sections = [ Specifies the font-weight CSS property of the component. - var(--typography-body-regular) + 'var(--typography-body-regular)' @@ -126,7 +126,7 @@ const sections = [ Specifies the letter-spacing CSS property of the component. - var(--spacing-gap-none) + 'var(--spacing-gap-none)' @@ -138,7 +138,7 @@ const sections = [ Specifies the line-height CSS property of the component. - var(--height-s) + 'var(--height-s)'