-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/text-field-component
- Loading branch information
Showing
70 changed files
with
1,682 additions
and
295 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
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,14 @@ | ||
/* eslint-disable */ | ||
import type { FunctionComponent } from "react"; | ||
import type { AspectRatioProperties } from "../patterns/aspect-ratio"; | ||
import type { HTMLStyledProps } from "../types/jsx"; | ||
import type { DistributiveOmit } from "../types/system-types"; | ||
|
||
export interface AspectRatioProps | ||
extends AspectRatioProperties, | ||
DistributiveOmit< | ||
HTMLStyledProps<"div">, | ||
keyof AspectRatioProperties | "aspectRatio" | ||
> {} | ||
|
||
export declare const AspectRatio: FunctionComponent<AspectRatioProps>; |
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 @@ | ||
import { createElement, forwardRef } from "react"; | ||
|
||
import { splitProps } from "../helpers.js"; | ||
import { getAspectRatioStyle } from "../patterns/aspect-ratio.js"; | ||
import { styled } from "./factory.js"; | ||
|
||
export const AspectRatio = /* @__PURE__ */ forwardRef( | ||
function AspectRatio(props, ref) { | ||
const [patternProps, restProps] = splitProps(props, ["ratio"]); | ||
|
||
const styleProps = getAspectRatioStyle(patternProps); | ||
const mergedProps = { ref, ...styleProps, ...restProps }; | ||
|
||
return createElement(styled.div, mergedProps); | ||
} | ||
); |
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,11 @@ | ||
/* eslint-disable */ | ||
import type { FunctionComponent } from "react"; | ||
import type { BleedProperties } from "../patterns/bleed"; | ||
import type { HTMLStyledProps } from "../types/jsx"; | ||
import type { DistributiveOmit } from "../types/system-types"; | ||
|
||
export interface BleedProps | ||
extends BleedProperties, | ||
DistributiveOmit<HTMLStyledProps<"div">, keyof BleedProperties> {} | ||
|
||
export declare const Bleed: FunctionComponent<BleedProps>; |
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,14 @@ | ||
import { createElement, forwardRef } from "react"; | ||
|
||
import { splitProps } from "../helpers.js"; | ||
import { getBleedStyle } from "../patterns/bleed.js"; | ||
import { styled } from "./factory.js"; | ||
|
||
export const Bleed = /* @__PURE__ */ forwardRef(function Bleed(props, ref) { | ||
const [patternProps, restProps] = splitProps(props, ["inline", "block"]); | ||
|
||
const styleProps = getBleedStyle(patternProps); | ||
const mergedProps = { ref, ...styleProps, ...restProps }; | ||
|
||
return createElement(styled.div, mergedProps); | ||
}); |
Oops, something went wrong.