Skip to content
Merged
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
7 changes: 4 additions & 3 deletions src/components/puck/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { gapSettingsField, outlineSettingsField, paddingSettingsField } from "..

export interface ContainerProps {
content?: SlotComponent;
padding?: string;
gap?: string;
outline?: string;
padding: string;
gap: string;
outline: string;
}

export const Container: React.FC<ContainerProps> = ({
Expand All @@ -27,6 +27,7 @@ export const ContainerConfig: ComponentConfig<ContainerProps> = {
defaultProps: {
padding: "p-10",
gap: "gap-6",
outline: "",
},
render: (props) => <Container {...props} />,
}
4 changes: 2 additions & 2 deletions src/components/puck/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import React from 'react';
import { paddingSettingsField, backgroundColorSettingField } from '../../lib/settings-fields';

export type ContentProps = {
backgroundColor?: string;
padding?: string;
backgroundColor: string;
padding: string;
minHeight?: string;
text?: string;
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/puck/HeaderContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { paddingSettingsField, textColorSettingField } from '../../lib/settings-

export type HeaderContentProps = {
backgroundColor?: string;
padding?: string;
padding: string;
titleText?: string;
titleSize?: string;
titleColor?: string;
titleColor: string;
logoSrc?: string;
logoAltText?: string;
logoWidth?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/puck/MasonryGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { gapSettingsField } from "../../lib/settings-fields";

export interface MasonryGridProps {
content?: SlotComponent;
gap?: string;
gap: string;
childrenBottomMargin?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/puck/MinimumColumnWidthGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { gapSettingsField } from "../../lib/settings-fields";
export interface MinimumColumnWidthGridProps {
content?: SlotComponent;
minimumColumnWidthPixels?: number;
gap?: string;
gap: string;
}

export const MinimumColumnWidthGrid: React.FC<MinimumColumnWidthGridProps> = ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/puck/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type NavItem = {

export type NavigationProps = {
backgroundColor?: string;
padding?: string;
padding: string;
nav: Array<{
label: string;
items: Array<NavItem>;
Expand Down
2 changes: 1 addition & 1 deletion src/components/puck/Paragraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { textColorSettingField } from "../../lib/settings-fields";

export interface ParagraphProps {
text: RichText,
textColor?: string;
textColor: string;
}

export const Paragraph: React.FC<ParagraphProps> = ({
Expand Down
4 changes: 2 additions & 2 deletions src/components/puck/RootContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { booleanSettingsField } from "../../lib/settings-fields";

export interface RootContainerProps {
content?: SlotComponent;
padTop?: boolean;
padBottom?: boolean;
padTop: boolean;
padBottom: boolean;
}

export const RootContainer: React.FC<RootContainerProps> = ({
Expand Down
6 changes: 3 additions & 3 deletions src/components/puck/SplitPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export interface SplitPaneProps {
paneTwoContent?: SlotComponent,
paneOneRatio?: number,
paneTwoRatio?: number,
gap?: string,
padding?: string,
backgroundColor?: string;
gap: string,
padding: string,
backgroundColor: string;
}

export interface SplitPanePropsForRender extends SplitPaneProps {
Expand Down
6 changes: 3 additions & 3 deletions src/components/puck/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const titleSizeField: Field<TitleSize> = {
export interface TitleProps {
text: string;
size: TitleSize;
center?: boolean;
uppercase?: boolean;
textColor?: string;
center: boolean;
uppercase: boolean;
textColor: string;
}


Expand Down
3 changes: 1 addition & 2 deletions src/tsconfig/nextjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"module": "esnext",
"noEmit": true,
"resolveJsonModule": true,
"strict": false,
"strictNullChecks": true,
"strict": true,
"target": "es5"
},
"include": ["src", "next-env.d.ts"],
Expand Down
Loading