Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,26 +119,22 @@ export const Section = () => {
items={[
{
child: <EyeOpenIcon />,
description:
"Content is fully visible and extends beyond the container if it exceeds its size.",
description: propertyDescriptions["overflowX:visible"],
value: "visible",
},
{
child: <CropIcon />,
description:
"Content that exceeds the container's size is clipped without scrollbars.",
description: propertyDescriptions["overflowX:clip"],
value: "clip",
},
{
child: <EyeClosedIcon />,
description:
"Content that exceeds the container's size is hidden without scrollbars.",
description: propertyDescriptions["overflowX:hidden"],
value: "hidden",
},
{
child: <AutoScrollIcon />,
description:
"Scrollbars are added to the container only when necessary, based on the content size.",
description: propertyDescriptions["overflowX:auto"],
value: "auto",
},
]}
Expand Down
21 changes: 12 additions & 9 deletions packages/css-data/src/__generated__/property-value-descriptions.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions packages/sdk-components-react/src/__generated__/time.props.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/sdk-components-react/src/time.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, type ElementRef } from "react";
import { forwardRef, type ComponentProps, type ElementRef } from "react";

const languages = [
"af",
Expand Down Expand Up @@ -345,8 +345,7 @@ const parseDate = (datetimeString: string) => {
}
};

type TimeProps = {
datetime?: string;
type TimeProps = Pick<ComponentProps<"time">, "dateTime"> & {
language?: Language;
country?: Country;
dateStyle?: DateStyle;
Expand All @@ -360,7 +359,8 @@ export const Time = forwardRef<ElementRef<"time">, TimeProps>(
country = DEFAULT_COUNTRY,
dateStyle = DEFAULT_DATE_STYLE,
timeStyle = DEFAULT_TIME_STYLE,
datetime = INITIAL_DATE_STRING,
// native html attribute in react style
dateTime = INITIAL_DATE_STRING,
...props
},
ref
Expand All @@ -375,7 +375,7 @@ export const Time = forwardRef<ElementRef<"time">, TimeProps>(
};

const datetimeString =
datetime === null ? INVALID_DATE_STRING : datetime.toString();
dateTime === null ? INVALID_DATE_STRING : dateTime.toString();

const date = parseDate(datetimeString);
let formattedDate = datetimeString;
Expand Down
5 changes: 4 additions & 1 deletion packages/sdk-components-react/src/vimeo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ type Props = Omit<ComponentProps<typeof defaultTag>, keyof VimeoOptions> &
* Example: "Video about web development tips".
*/
title?: string | undefined;
// temporary prop until props render is fixed
autoPlay?: boolean;
};
type Ref = ElementRef<typeof defaultTag>;

Expand All @@ -360,7 +362,8 @@ export const Vimeo = forwardRef<Ref, Props>(
{
url,
loading = "lazy",
autoplay = false,
autoPlay,
autoplay = autoPlay ?? false,
autopause = true,
showByline = false,
showControls = true,
Expand Down
5 changes: 4 additions & 1 deletion packages/sdk-components-react/src/youtube.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ type Props = Omit<
* Example: "Video about web development tips".
*/
title?: string | undefined;
// temporary prop until props render is fixed
autoPlay?: boolean;
};
type Ref = ElementRef<typeof defaultTag>;

Expand All @@ -478,7 +480,8 @@ export const YouTube = forwardRef<Ref, Props>(
{
url,
loading = "lazy",
autoplay,
autoPlay,
autoplay = autoPlay ?? false,
showPreview,
showAnnotations,
showCaptions,
Expand Down
Loading