@uniai-fe/uds-primitives 0.12.14 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -0
- package/dist/styles.css +330 -0
- package/package.json +1 -1
- package/src/components/fab/index.scss +1 -0
- package/src/components/fab/index.tsx +34 -0
- package/src/components/fab/markup/Base.tsx +62 -0
- package/src/components/fab/markup/Default.tsx +33 -0
- package/src/components/fab/markup/Extended.tsx +35 -0
- package/src/components/fab/markup/Label.tsx +16 -0
- package/src/components/fab/markup/Menu.tsx +114 -0
- package/src/components/fab/markup/Root.tsx +263 -0
- package/src/components/fab/markup/Template.tsx +79 -0
- package/src/components/fab/markup/Trigger.tsx +65 -0
- package/src/components/fab/markup/index.ts +7 -0
- package/src/components/fab/styles/composition.scss +80 -0
- package/src/components/fab/styles/fab.scss +140 -0
- package/src/components/fab/styles/index.scss +4 -0
- package/src/components/fab/styles/variables.scss +25 -0
- package/src/components/fab/types/composition.ts +288 -0
- package/src/components/fab/types/index.ts +3 -0
- package/src/components/fab/types/options.ts +39 -0
- package/src/components/fab/types/props.ts +124 -0
- package/src/components/tooltip/markup/Text.tsx +10 -3
- package/src/components/tooltip/types/text.ts +8 -3
- package/src/index.scss +1 -0
- package/src/index.tsx +1 -0
|
@@ -3,15 +3,22 @@ import type { TooltipTextProps } from "../types";
|
|
|
3
3
|
import { Slot } from "../../slot";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Tooltip Text; Tooltip
|
|
6
|
+
* Tooltip Text; Tooltip 문구의 고정 스타일
|
|
7
7
|
* @component
|
|
8
|
-
* @
|
|
8
|
+
* @property {ReactNode} [props.children] 문자열·숫자는 span으로 감싸고 다른 ReactNode는 그대로 반환한다.
|
|
9
|
+
* @property {"span"} [props.as="span"] 문자열·숫자 문구의 렌더 요소. 현재 공개 타입은 span 입력을 받는다.
|
|
10
|
+
* @property {string} [props.className] 문자열·숫자 문구에 slot-text·tooltip-message-text와 병합할 추가 클래스.
|
|
11
|
+
* @property {string} [props.title] 문구의 native title. 생략하면 문자열·숫자 children의 문자열 값을 사용한다.
|
|
12
|
+
* @property {string} [props.id] 문자열·숫자 문구를 감싼 span의 DOM ID.
|
|
13
|
+
* @property {CSSProperties} [props.style] 문자열·숫자 문구를 감싼 span의 inline style.
|
|
14
|
+
* @see TooltipTextProps
|
|
15
|
+
* @desc Tooltip.Text와 Fab.Menu.Label이 같은 구현을 사용한다. TooltipTextProps가 상속한 SlotTextProps는 ComponentPropsWithoutRef<"span"> 계약으로 ref를 받지 않는다. Tooltip의 스타일 문맥에서 문구를 표현하며 나머지 native span 속성은 래핑한 텍스트에 전달한다. 복합 JSX는 wrapper·클래스·속성 주입 없이 반환한다. Tooltip 표시 상태와 접근 가능한 버튼 이름을 설정하는 부품은 아니다.
|
|
9
16
|
*/
|
|
10
17
|
export default function TooltipText({
|
|
11
18
|
className,
|
|
12
19
|
...restProps
|
|
13
20
|
}: TooltipTextProps) {
|
|
14
|
-
//
|
|
21
|
+
// 문구의 전용 클래스를 유지해 Tooltip의 색상과 타이포그래피를 적용한다.
|
|
15
22
|
return (
|
|
16
23
|
<Slot.Text
|
|
17
24
|
className={clsx("tooltip-message-text", className)}
|
|
@@ -2,8 +2,13 @@ import type { SlotTextProps } from "../../slot";
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Tooltip Types; Text 마크업 props
|
|
5
|
-
* @property {
|
|
6
|
-
* @property {React.ReactNode} [children]
|
|
7
|
-
* @property {string} [className] tooltip-text와 병합할
|
|
5
|
+
* @property {"span"} [as="span"] 문자열·숫자 문구의 렌더 요소. SlotTextProps의 기본 generic span을 사용한다.
|
|
6
|
+
* @property {React.ReactNode} [children] 문자열·숫자는 span으로 감싸고 복합 JSX는 속성 주입 없이 반환한다.
|
|
7
|
+
* @property {string} [className] 문자열·숫자 문구에 slot-text·tooltip-message-text와 병합할 추가 클래스.
|
|
8
|
+
* @property {string} [title] 문자열·숫자 문구의 native title. 생략하면 children의 문자열 값을 사용한다.
|
|
9
|
+
* @property {string} [id] 문자열·숫자 문구를 감싼 span의 DOM ID.
|
|
10
|
+
* @property {React.CSSProperties} [style] 문자열·숫자 문구를 감싼 span의 inline style.
|
|
11
|
+
* @see SlotTextProps
|
|
12
|
+
* @desc Tooltip.Text와 Fab.Menu.Label이 공유하는 문구 입력이다. native span 속성을 상속하며 복합 JSX에는 wrapper·클래스·속성을 주입하지 않는다. 표시 상태와 접근 가능한 버튼 이름은 상위 조합에서 설정한다.
|
|
8
13
|
*/
|
|
9
14
|
export type TooltipTextProps = SlotTextProps;
|
package/src/index.scss
CHANGED
package/src/index.tsx
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./components/chip";
|
|
|
13
13
|
export * from "./components/divider";
|
|
14
14
|
export * from "./components/drawer";
|
|
15
15
|
export * from "./components/dropdown";
|
|
16
|
+
export * from "./components/fab";
|
|
16
17
|
export * from "./components/form";
|
|
17
18
|
export * from "./components/info-box";
|
|
18
19
|
export * from "./components/input";
|