-
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.
* feat : CheckBox 컴포넌트 1차 구현 * refactor : controlled checked 지원되도록 리팩토링 * feat: ref 추가, style prop 추가 * chore : gap 토큰으로 수정, style prop optional 수정 * chore: style css 삭제 * style : press 일 떄의 디자인 반영 * style : CheckIcon 색상 상태에 맞게 변경 * feat : 스토리북, param 설명 추가 * feat : style-system 업데이트 * feat : 테스트 코드 작성 * refactor : useCheckedState 로 분리 * feat : use client 추가 * style : 텍스트 색깔 분기처리 * feat : useCheckeState 수정 * feat : displayName 추가 * feat : export 경로 변경 * feat : typepath 추가 * fix : test 과정에서 build 추가 * fix : spacing 토큰 변경된 걸로 수정 * fix : radius 변경된 걸로 수정, FIXME 주석 추가 * fix : Props 네이밍 수정 * fix : test 에 변경된 prop 반영 * fix : uparrow 삭제 * refactor : pressed 도 useCheckState 에서 관리하도록 수정 * style : children 없으면 gap 없도록 수정 * fix : 접근성에 위배되지 않게 data-pressed 로 수정 * fix: useId 사용해서 고유 id 가지도록 수정
- Loading branch information
Showing
70 changed files
with
1,683 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.