-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
131 changed files
with
12,610 additions
and
3,662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"@marigold/docs": patch | ||
"@marigold/components": patch | ||
"@marigold/system": patch | ||
"@marigold/theme-b2b": patch | ||
--- | ||
|
||
refa(listbox): Allow sections in `<Combobox>` and `<Autocomplete>`, adjust Section API in `<Select>`, `<Combobox>` and `<Autocomplete>`. | ||
|
||
- Added the possibility to use sections with `<Combobox>` and `<Autocomplete>` | ||
- Refactored the `<Section>` (from `<Listbox>`) to fit our API, no need for the extra `<Header>` anymore. Instead you can do `<Select.Section header="My header">`, same for the other components | ||
- Renamed `<Item>` to `<Option>` in `<Combobox>` and `<Autocomplete>` to align with `<Select>` | ||
- Updated the docs for `<Select>`, `<Combobox>` and `<Autocomplete>` | ||
- Updated Storybook for `<Select>`, `<Combobox>` and `<Autocomplete>` with section stories | ||
- Renamed the part of the `<ListBox>` accordingly (from `sectionTitle` to `header`) | ||
|
||
**BREAKING CHANGE:** We changed the API of the `<Section>` component that is used in `<Select>`, `<Combobox>` and `<Autocomplete>`. It is no longer necessary to add a `Header` within the `<Section>`. | ||
|
||
Use the newly added `header` prop instead. Additionally, to unify the APIs all choices of `<Select>`, `<Combobox>` and `<Autocomplete>` are now called `<Option>` instead of `<Item>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
'@marigold/components': major | ||
'@marigold/theme-core': major | ||
'@marigold/theme-b2b': major | ||
--- | ||
|
||
**Breaking changes** | ||
|
||
- `Dialog.Headline` has been renamed to `Dialog.Title`. Please update your code accordingly. | ||
|
||
- `<Dialog.Content>`, `<Dialog.Actions>`, and `<Dialog.Footer>` have been introduced for better organization and flexibility. | ||
|
||
- The internal layout now uses grid areas, ensuring consistent ordering and layout of the dialog elements. | ||
|
||
- Existing implementations of the `<Dialog>` component will need to be updated to use these new subcomponents. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@marigold/docs": patch | ||
--- | ||
|
||
docs([DST-570]): Added "Release" pages to our documentation | ||
|
||
We now create for each changelog a page on our documentation, it is also possible to create release blog posts. | ||
With these pages we improve communication, enhance user experience, and ensure all users have easy access to the latest updates in one central location. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@marigold/components": minor | ||
"@marigold/types": minor | ||
--- | ||
|
||
feat(components): Mark layout components as regions for accessibility. | ||
|
||
Added the ability to mark layout components as regions (ARIA role). This improves accessibility by allowing assistive technologies to identify significant sections of the page, making navigation easier for users with disabilities. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@marigold/docs": patch | ||
"@marigold/components": patch | ||
--- | ||
|
||
[DST-494]: add loading states pattern | ||
|
||
[DST-494]: added prop `mode`to the `<XLoader />` to support inline and full-section loading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@marigold/components": patch | ||
"@marigold/theme-core": patch | ||
--- | ||
|
||
fix(components): Display `<Checkbox>` focus ring and adjust focus ring of `<Table>` | ||
|
||
Focus ring was not showing for the `<Checkbox>`. It does now! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@marigold/docs": patch | ||
--- | ||
|
||
docs: remove examples from checkbox page and add guidline section | ||
|
||
- removed the examples section | ||
- add a guidline about the difference between a checkbox and a switch | ||
- site clean up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@marigold/docs": patch | ||
--- | ||
|
||
docs(Combobox): add info that section headers are not included wehen filtering |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@marigold/docs": patch | ||
"@marigold/components": patch | ||
"@marigold/system": patch | ||
--- | ||
|
||
chore(deps): update react-aria to 1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,10 @@ | ||
import type { PropsWithChildren } from 'react'; | ||
import { Footer } from './_components/Footer'; | ||
import { SectionNavigation } from './_components/SectionNavigation'; | ||
import { DefaultLayout } from '@/ui/layout/DefaultLayout'; | ||
|
||
// Layout | ||
// --------------- | ||
const Layout = ({ children }: PropsWithChildren) => ( | ||
<> | ||
<aside | ||
className={[ | ||
'top-[--page-header-height]', | ||
'py-[--page-sub-nav-padding] xl:py-[--page-sub-nav-padding-xl]', | ||
'pl-[--page-padding-md] xl:pl-[--page-padding-xl]', | ||
'h-[calc(100vh-var(--page-header-height))] w-[--page-sub-nav-width] xl:w-[--page-sub-nav-width-xl]', | ||
'fixed z-10 hidden overflow-hidden hover:overflow-y-auto md:block', | ||
'scrollbar-thin scrollbar-thumb-secondary-400 scrollbar-thumb-rounded-full scrollbar-track-transparent', | ||
'border-secondary-200 border-r', | ||
].join(' ')} | ||
> | ||
<SectionNavigation /> | ||
</aside> | ||
<main | ||
className={[ | ||
'pt-[--page-main-padding] xl:pt-[--page-main-padding-xl]', | ||
'px-[--page-padding] md:px-[--page-padding-md] xl:pr-[--page-padding-xl]', | ||
'md:pl-[calc(var(--page-sub-nav-width)+var(--page-main-padding))] xl:pl-[calc(var(--page-sub-nav-width-xl)+var(--page-main-padding-xl))]', | ||
].join(' ')} | ||
> | ||
{children} | ||
<Footer /> | ||
</main> | ||
</> | ||
<DefaultLayout>{children}</DefaultLayout> | ||
); | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import { DefaultLayout } from '@/ui/layout/DefaultLayout'; | ||
|
||
// Layout | ||
// --------------- | ||
const Layout = ({ children }: PropsWithChildren) => ( | ||
<DefaultLayout>{children}</DefaultLayout> | ||
); | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import { baseUrl } from '@/lib/config'; | ||
import { DateFormat, Headline } from '@/ui'; | ||
import { allBlogs } from 'contentlayer/generated'; | ||
import { Metadata } from 'next'; | ||
import { notFound } from 'next/navigation'; | ||
import { TocContainer } from '@/ui/Toc'; | ||
import { Mdx } from '@/ui/mdx'; | ||
|
||
interface BlogPostProps { | ||
params: { | ||
slug: string[]; | ||
}; | ||
} | ||
async function getPostFromParams(params: BlogPostProps['params']) { | ||
const fullPath = `releases/blog/${params.slug}`; | ||
const currentPost = allBlogs.find(post => post.slug === fullPath); | ||
|
||
return currentPost || null; | ||
} | ||
|
||
export async function generateMetadata({ | ||
params, | ||
}: BlogPostProps): Promise<Metadata> { | ||
const post = await getPostFromParams(params); | ||
|
||
return post | ||
? { | ||
title: post.title, | ||
description: post.date, | ||
applicationName: 'Marigold Design System', | ||
appleWebApp: { | ||
title: 'Marigold Design System', | ||
}, | ||
metadataBase: new URL(baseUrl), | ||
openGraph: { | ||
siteName: 'Marigold Design System', | ||
title: post.title, | ||
description: post.date, | ||
images: `${baseUrl}/api/og.png?title=${encodeURIComponent(post.title)}`, | ||
type: 'website', | ||
}, | ||
twitter: { | ||
card: 'summary_large_image', | ||
creator: '@reservix', | ||
}, | ||
} | ||
: {}; | ||
} | ||
|
||
const BlogPost = async ({ params }: BlogPostProps) => { | ||
const currentPost = await getPostFromParams(params); | ||
|
||
if (!currentPost) { | ||
notFound(); | ||
} | ||
|
||
return ( | ||
<article | ||
key={currentPost.title} | ||
className="grid grid-cols-1 gap-x-24 gap-y-14 min-[1400px]:grid-cols-[minmax(min-content,70ch)_1fr]" | ||
> | ||
<div className="col-span-full"> | ||
<Headline level={1}>{currentPost.title}</Headline> | ||
<div className="text-secondary-400 pt-1"> | ||
<DateFormat value={new Date(currentPost.date)} dateStyle="medium" /> | ||
</div> | ||
</div> | ||
<div className="prose max-w-[70ch]"> | ||
<Mdx title={currentPost.title} code={currentPost.body.code} /> | ||
</div> | ||
<div className="col-start-2 hidden min-[1400px]:block"> | ||
<TocContainer /> | ||
</div> | ||
</article> | ||
); | ||
}; | ||
|
||
export default BlogPost; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.