Skip to content

Commit

Permalink
Merge branch 'pr-373'
Browse files Browse the repository at this point in the history
  • Loading branch information
sajadevo committed Aug 24, 2023
2 parents fa30373 + a2d7657 commit a62b7ad
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
SpeedDialContent,
SpeedDialAction,
Typography,
TypographyProps,
} from "@material-tailwind/react";
import {
PlusIcon,
Expand All @@ -14,7 +15,7 @@ import {
} from "@heroicons/react/24/outline";

export function SpeedDialWithTextOutside() {
const labelProps = {
const labelProps:Pick<TypographyProps,"variant"|"color"|"className"> = {
variant: "small",
color: "blue-gray",
className:
Expand Down
6 changes: 3 additions & 3 deletions docs-content/react/timeline/default-timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function DefaultTimeline() {
</Typography>
</TimelineHeader>
<TimelineBody className="pb-8">
<Typography variant="small" color="gary" className="font-normal text-gray-600">
<Typography variant="small" color="gray" className="font-normal text-gray-600">
The key to more success is to have a lot of pillows. Put it this way, it took me
twenty five years to get these plants, twenty five years of blood sweat and tears, and
I&apos;m never giving up, I&apos;m just getting started. I&apos;m up to something. Fan
Expand All @@ -38,7 +38,7 @@ export function DefaultTimeline() {
</Typography>
</TimelineHeader>
<TimelineBody className="pb-8">
<Typography variant="small" color="gary" className="font-normal text-gray-600">
<Typography variant="small" color="gray" className="font-normal text-gray-600">
The key to more success is to have a lot of pillows. Put it this way, it took me
twenty five years to get these plants, twenty five years of blood sweat and tears, and
I&apos;m never giving up, I&apos;m just getting started. I&apos;m up to something. Fan
Expand All @@ -54,7 +54,7 @@ export function DefaultTimeline() {
</Typography>
</TimelineHeader>
<TimelineBody>
<Typography variant="small" color="gary" className="font-normal text-gray-600">
<Typography variant="small" color="gray" className="font-normal text-gray-600">
The key to more success is to have a lot of pillows. Put it this way, it took me
twenty five years to get these plants, twenty five years of blood sweat and tears, and
I&apos;m never giving up, I&apos;m just getting started. I&apos;m up to something. Fan
Expand Down
6 changes: 3 additions & 3 deletions docs-content/react/timeline/timeline-with-avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function TimelineWithAvatar() {
</Typography>
</TimelineHeader>
<TimelineBody className="pb-8">
<Typography color="gary" className="font-normal text-gray-600">
<Typography color="gray" className="font-normal text-gray-600">
The key to more success is to have a lot of pillows. Put it this way, it took me
twenty five years to get these plants, twenty five years of blood sweat and tears, and
I&apos;m never giving up, I&apos;m just getting started. I&apos;m up to something. Fan
Expand All @@ -43,7 +43,7 @@ export function TimelineWithAvatar() {
</Typography>
</TimelineHeader>
<TimelineBody className="pb-8">
<Typography color="gary" className="font-normal text-gray-600">
<Typography color="gray" className="font-normal text-gray-600">
The key to more success is to have a lot of pillows. Put it this way, it took me
twenty five years to get these plants, twenty five years of blood sweat and tears, and
I&apos;m never giving up, I&apos;m just getting started. I&apos;m up to something. Fan
Expand All @@ -61,7 +61,7 @@ export function TimelineWithAvatar() {
</Typography>
</TimelineHeader>
<TimelineBody>
<Typography color="gary" className="font-normal text-gray-600">
<Typography color="gray" className="font-normal text-gray-600">
The key to more success is to have a lot of pillows. Put it this way, it took me
twenty five years to get these plants, twenty five years of blood sweat and tears, and
I&apos;m never giving up, I&apos;m just getting started. I&apos;m up to something. Fan
Expand Down
6 changes: 3 additions & 3 deletions docs-content/react/timeline/timeline-with-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function TimelineWithIcon() {
</Typography>
</TimelineHeader>
<TimelineBody className="pb-8">
<Typography color="gary" className="font-normal text-gray-600">
<Typography color="gray" className="font-normal text-gray-600">
The key to more success is to have a lot of pillows. Put it this way, it took me
twenty five years to get these plants, twenty five years of blood sweat and tears, and
I&apos;m never giving up, I&apos;m just getting started. I&apos;m up to something. Fan
Expand All @@ -43,7 +43,7 @@ export function TimelineWithIcon() {
</Typography>
</TimelineHeader>
<TimelineBody className="pb-8">
<Typography color="gary" className="font-normal text-gray-600">
<Typography color="gray" className="font-normal text-gray-600">
The key to more success is to have a lot of pillows. Put it this way, it took me
twenty five years to get these plants, twenty five years of blood sweat and tears, and
I&apos;m never giving up, I&apos;m just getting started. I&apos;m up to something. Fan
Expand All @@ -61,7 +61,7 @@ export function TimelineWithIcon() {
</Typography>
</TimelineHeader>
<TimelineBody>
<Typography color="gary" className="font-normal text-gray-600">
<Typography color="gray" className="font-normal text-gray-600">
The key to more success is to have a lot of pillows. Put it this way, it took me
twenty five years to get these plants, twenty five years of blood sweat and tears, and
I&apos;m never giving up, I&apos;m just getting started. I&apos;m up to something. Fan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ import {
propTypesChildren,
} from "../../types/components/typography";

export interface TypographyProps extends React.ComponentProps<any> {
type Props<T extends keyof JSX.IntrinsicElements> = React.ComponentProps<T>;


type BaseTypographyProps =Props<"p"> & Props<"h1"> & Props<"h2"> & Props<"h3"> & Props<"h4"> & Props<"h5"> & Props<"h6"> & Props<"a">
export interface TypographyProps extends BaseTypographyProps {
variant?: variant;
color?: color;
textGradient?: textGradient;
Expand Down

0 comments on commit a62b7ad

Please sign in to comment.