diff --git a/components/PropsTable.tsx b/components/PropsTable.tsx index 348a5d5..c18f609 100644 --- a/components/PropsTable.tsx +++ b/components/PropsTable.tsx @@ -58,7 +58,7 @@ export const PropsTable: React.FC = ({ const hasAriaLabel = !!(ariaLabel || ariaLabelledBy); const tdStyles = "border-0 border-b-0 border-gray-500"; - const thStyles = `px-2 py-2 text-gray-900 ${tdStyles}`; + const thStyles = `px-2 py-2 text-gray-900 dark:text-gray-200 ${tdStyles}`; const typeStyles = "px-2 py-1"; return ( @@ -103,7 +103,7 @@ export const PropsTable: React.FC = ({ {description && } - + {themeKey ? "union" : Boolean(typeSimple) ? typeSimple : type} {!!(typeSimple || themeKey) && ( @@ -120,7 +120,9 @@ export const PropsTable: React.FC = ({ {!!defaultValue ? ( - {defaultValue} + + {defaultValue} + ) : ( "-" )} diff --git a/package.json b/package.json index 588a933..9b182c1 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "@adaptui/react-tailwind": "0.1.0-alpha.4", "@chakra-ui/hooks": "2.0.4", "@reach/skip-nav": "0.17.0", - "ariakit": "2.0.0-next.34", + "ariakit": "2.0.0-next.35", "lodash": "4.17.21", "next": "12.2.2", "nextra": "2.0.0-alpha.56", diff --git a/yarn.lock b/yarn.lock index 78b0d41..ff90c21 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3540,10 +3540,10 @@ ariakit@2.0.0-next.31: "@floating-ui/dom" "0.5.4" ariakit-utils "0.17.0-next.22" -ariakit@2.0.0-next.34: - version "2.0.0-next.34" - resolved "https://registry.yarnpkg.com/ariakit/-/ariakit-2.0.0-next.34.tgz#2e2073abfb9b3ec8c6292d0b438acd7e0ddce0d1" - integrity sha512-jZ/S6q+eNGd2561PhYBxqj7j1tzMm2gbA3FAJuvZ24xiKxIj9/n2dszgMnhyFxVnHJQ3oAn1DesHZwkNAAbl+Q== +ariakit@2.0.0-next.35: + version "2.0.0-next.35" + resolved "https://registry.yarnpkg.com/ariakit/-/ariakit-2.0.0-next.35.tgz#5fea97d4a260b6c43bc653968d731412c9b74fce" + integrity sha512-Ec5LMAp8qUxo5eZvI1zj4nQ3hQiUWr6C38SEJbIF+UMSsKqsi/sGctjvu/kTBDuSOSnO0jVO55T48qyd0WhwZQ== dependencies: "@floating-ui/dom" "0.5.4" ariakit-utils "0.17.0-next.23"