-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Text Button 레시피에 cursor 속성 추가 (#503)
* feat: Text Button 레시피에 cursor 속성 추가 * refactor: Text Button styled 레이어 작성 * docs: Text Button 스토리 conditionMap 추가, status → state
- Loading branch information
Showing
12 changed files
with
107 additions
and
56 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
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
10 changes: 10 additions & 0 deletions
10
packages/react/src/components/TextButton/TextButton.namespace.ts
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,10 @@ | ||
export { | ||
TextButtonLabel as Label, | ||
TextButtonPrefixIcon as PrefixIcon, | ||
TextButtonRoot as Root, | ||
TextButtonSuffixIcon as SuffixIcon, | ||
type TextButtonLabelProps as LabelProps, | ||
type TextButtonPrefixIconProps as PrefixIconProps, | ||
type TextButtonRootProps as RootProps, | ||
type TextButtonSuffixIconProps as SuffixIconProps, | ||
} from "./TextButton"; |
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,41 @@ | ||
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive"; | ||
import { textButton, type TextButtonVariantProps } from "@seed-design/recipe/textButton"; | ||
import { createStyleContext } from "../../utils/createStyleContext"; | ||
import { Icon, type IconProps } from "../private/Icon"; | ||
|
||
import type * as React from "react"; | ||
|
||
const { withProvider, withContext } = createStyleContext(textButton); | ||
|
||
export interface TextButtonRootProps | ||
extends TextButtonVariantProps, | ||
PrimitiveProps, | ||
React.ButtonHTMLAttributes<HTMLButtonElement> {} | ||
|
||
export const TextButtonRoot = withProvider<HTMLButtonElement, TextButtonRootProps>( | ||
Primitive.button, | ||
"root", | ||
); | ||
|
||
export interface TextButtonLabelProps | ||
extends PrimitiveProps, | ||
React.HTMLAttributes<HTMLSpanElement> {} | ||
|
||
export const TextButtonLabel = withContext<HTMLSpanElement, TextButtonLabelProps>( | ||
Primitive.span, | ||
"label", | ||
); | ||
|
||
export interface TextButtonPrefixIconProps extends IconProps {} | ||
|
||
export const TextButtonPrefixIcon = withContext<SVGSVGElement, TextButtonPrefixIconProps>( | ||
Icon, | ||
"prefixIcon", | ||
); | ||
|
||
export interface TextButtonSuffixIconProps extends IconProps {} | ||
|
||
export const TextButtonSuffixIcon = withContext<SVGSVGElement, TextButtonSuffixIconProps>( | ||
Icon, | ||
"suffixIcon", | ||
); |
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,12 @@ | ||
export { | ||
TextButtonLabel, | ||
TextButtonPrefixIcon, | ||
TextButtonRoot, | ||
TextButtonSuffixIcon, | ||
type TextButtonLabelProps, | ||
type TextButtonPrefixIconProps, | ||
type TextButtonRootProps, | ||
type TextButtonSuffixIconProps, | ||
} from "./TextButton"; | ||
|
||
export * as TextButton from "./TextButton.namespace"; |
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