diff --git a/.changeset/add-number-id.md b/.changeset/add-number-id.md new file mode 100644 index 00000000000..bcb9552ec13 --- /dev/null +++ b/.changeset/add-number-id.md @@ -0,0 +1,5 @@ +---- +'@keystone-6/core': patch +---- + +Use `idField` type of `{ kind: 'number', kind: 'Int' | 'BigInt' }` internally for singletons diff --git a/design-system/packages/toast/src/Toast.tsx b/design-system/packages/toast/src/Toast.tsx index eb400a8d7a1..e7a889941f0 100644 --- a/design-system/packages/toast/src/Toast.tsx +++ b/design-system/packages/toast/src/Toast.tsx @@ -15,7 +15,7 @@ import { type ToastProps, type ToastPropsExact } from './types' // Provider // ------------------------------ -export const ToastProvider = ({ children }: { children: ReactNode }) => { +export function ToastProvider ({ children }: { children: ReactNode }) { const [toastStack, setToastStack] = useState([]) const context = useMemo( diff --git a/design-system/website/pages/components/button.tsx b/design-system/website/pages/components/button.tsx index 2da124980f4..5c3a788eadc 100644 --- a/design-system/website/pages/components/button.tsx +++ b/design-system/website/pages/components/button.tsx @@ -5,16 +5,16 @@ import { jsx, Stack } from '@keystone-ui/core' import { Button, buttonToneValues, type ToneKey, buttonWeightValues } from '@keystone-ui/button' import { Page } from '../../components/Page' -import { toLabel } from '../../utils' +import { capitalise } from '../../utils' -const Variants = ({ tone }: { tone: ToneKey }) => { - const toneLabel = toLabel(tone) +function Variants ({ tone }: { tone: ToneKey }) { + const toneLabel = capitalise(tone) return (

{toneLabel} Tone

{buttonWeightValues.map(weight => { - const weightLabel = toLabel(weight) + const weightLabel = capitalise(weight) return (