@cocso-ui/react 0.0.0-beta.1 → 0.0.1-beta.10
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 +23 -0
- package/lib/components/Body/Body.d.ts +14 -8
- package/lib/components/Button/Button.d.ts +20 -0
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Display/Display.d.ts +14 -8
- package/lib/components/Heading/Heading.d.ts +14 -8
- package/lib/components/Spinner/Spinner.d.ts +16 -0
- package/lib/components/Spinner/index.d.ts +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -1
- package/lib/utils/cn.d.ts +2 -0
- package/lib/utils/tokens.d.ts +15 -0
- package/package.json +8 -10
- package/lib/primitive/index.d.ts +0 -44
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## `@cocso-ui/react`
|
|
2
|
+
|
|
3
|
+
이 Package는 리액트 기반 컴포넌트를 제공해요.
|
|
4
|
+
|
|
5
|
+
`radix-ui`의 헤드리스 컴포넌트를 사용하여 접근성과 커스터마이징을 고려한 컴포넌트를 구현하고 있어요.
|
|
6
|
+
|
|
7
|
+
### Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm install @cocso-ui/react
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Usage
|
|
14
|
+
|
|
15
|
+
컴포넌트를 아래와 같은 형태로 import 할 수 있어요.
|
|
16
|
+
|
|
17
|
+
```javascript
|
|
18
|
+
import {Button} from '@cocso-ui/react';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Dependencies
|
|
22
|
+
|
|
23
|
+
- [@cocso-ui/css](../css)
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { type FontWeightToken } from '../../utils/tokens';
|
|
3
|
+
declare const tags: readonly ["p", "a", "span", "div", "label", "li", "td", "th", "figcaption", "blockquote", "cite"];
|
|
4
|
+
type Element = (typeof tags)[number];
|
|
5
|
+
type Default = (typeof tags)[0];
|
|
6
|
+
export type BodyProps<T extends Element = Default> = {
|
|
7
|
+
as?: T;
|
|
8
|
+
size?: 'lg' | 'md' | 'sm' | 'xs';
|
|
6
9
|
color?: string;
|
|
7
|
-
fontWeight?:
|
|
8
|
-
}
|
|
9
|
-
export
|
|
10
|
-
|
|
10
|
+
fontWeight?: FontWeightToken;
|
|
11
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'size' | 'color' | 'fontWeight'>;
|
|
12
|
+
export declare const Body: (<T extends Element = "p">(props: BodyProps<T> & {
|
|
13
|
+
ref?: React.ForwardedRef<React.ComponentRef<T>>;
|
|
14
|
+
}) => React.ReactElement) & {
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
11
17
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type FontWeightToken } from '../../utils/tokens';
|
|
3
|
+
declare const tags: readonly ["button"];
|
|
4
|
+
type Element = (typeof tags)[number];
|
|
5
|
+
type Default = (typeof tags)[0];
|
|
6
|
+
export type ButtonProps<T extends Element = Default> = {
|
|
7
|
+
as?: T;
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'success' | 'text';
|
|
9
|
+
size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs' | '2xs';
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
color?: string;
|
|
13
|
+
fontWeight?: FontWeightToken;
|
|
14
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'size' | 'color' | 'fontWeight'>;
|
|
15
|
+
export declare const Button: (<T extends Element = "button">(props: ButtonProps<T> & {
|
|
16
|
+
ref?: React.ForwardedRef<React.ComponentRef<T>>;
|
|
17
|
+
}) => React.ReactElement) & {
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { type FontWeightToken } from '../../utils/tokens';
|
|
3
|
+
declare const tags: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
4
|
+
type Element = (typeof tags)[number];
|
|
5
|
+
type Default = (typeof tags)[0];
|
|
6
|
+
export type DisplayProps<T extends Element = Default> = {
|
|
7
|
+
as?: T;
|
|
4
8
|
size?: 'lg' | 'md' | 'sm';
|
|
5
9
|
color?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
fontWeight?: FontWeightToken;
|
|
11
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'size' | 'color' | 'fontWeight'>;
|
|
12
|
+
export declare const Display: (<T extends Element = "h1">(props: DisplayProps<T> & {
|
|
13
|
+
ref?: React.ForwardedRef<React.ComponentRef<T>>;
|
|
14
|
+
}) => React.ReactElement) & {
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { type FontWeightToken } from '../../utils/tokens';
|
|
3
|
+
declare const tags: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
4
|
+
type Element = (typeof tags)[number];
|
|
5
|
+
type Default = (typeof tags)[1];
|
|
6
|
+
export type HeadingProps<T extends Element = Default> = {
|
|
7
|
+
as?: T;
|
|
4
8
|
size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs' | '2xs';
|
|
5
9
|
color?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
fontWeight?: FontWeightToken;
|
|
11
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'size' | 'color' | 'fontWeight'>;
|
|
12
|
+
export declare const Heading: (<T extends Element = "h2">(props: HeadingProps<T> & {
|
|
13
|
+
ref?: React.ForwardedRef<React.ComponentRef<T>>;
|
|
14
|
+
}) => React.ReactElement) & {
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const tags: readonly ["div"];
|
|
3
|
+
type Element = (typeof tags)[number];
|
|
4
|
+
type Default = (typeof tags)[0];
|
|
5
|
+
export type SpinnerProps<T extends Element = Default> = {
|
|
6
|
+
as?: T;
|
|
7
|
+
size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
8
|
+
color?: string;
|
|
9
|
+
bg?: string;
|
|
10
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'size' | 'color'>;
|
|
11
|
+
export declare const Spinner: (<T extends Element = "div">(props: SpinnerProps<T> & {
|
|
12
|
+
ref?: React.ForwardedRef<React.ComponentRef<T>>;
|
|
13
|
+
}) => React.ReactElement) & {
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spinner';
|
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var L=Object.create;var h=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty;var V=(e,t)=>{for(var n in t)h(e,n,{get:t[n],enumerable:!0})},E=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of G(t))!K.call(e,o)&&o!==n&&h(e,o,{get:()=>t[o],enumerable:!(r=A(t,o))||r.enumerable});return e};var y=(e,t,n)=>(n=e!=null?L(I(e)):{},E(t||!e||!e.__esModule?h(n,"default",{value:e,enumerable:!0}):n,e)),q=e=>E(h({},"__esModule",{value:!0}),e);var le={};V(le,{Body:()=>X,Button:()=>oe,Display:()=>re,Heading:()=>ie,Spinner:()=>x});module.exports=q(le);var D=y(require("react"),1);function l(e){if(e)return e.includes(".")?`var(--color-${e.replace(/\./g,"-")})`:e}var W={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"};function d(e){if(e)return e in W?W[e]:e}var J=(...e)=>e.filter(Boolean).join(" ").trim(),m=(e,t,n=[],...r)=>{let o=Object.entries(t).filter(([,s])=>s!==!1&&s!==null&&s!==void 0).map(([s,a])=>`${e}--${s}_${a}`).join(" "),i=n.filter(s=>Object.entries(s).every(([a,c])=>t[a]===c)).map(s=>{let a=Object.entries(s).map(([c,R])=>`${c}_${R}`).join("-");return`${e}--${a}`}).join(" ");return J(e,o,i,...r)};var F=require("react/jsx-runtime"),Q=["p","a","span","div","label","li","td","th","figcaption","blockquote","cite"],U=D.forwardRef(({as:e=Q[0],size:t="md",color:n,fontWeight:r="normal",className:o,style:i,...s},a)=>{let c=e,p=m("cocso-body",{size:t},[],o);return(0,F.jsx)(c,{ref:a,className:p,style:{"--cocso-body-color":l(n),"--cocso-body-weight":d(r),...i},...s})}),X=Object.assign(U,{displayName:"Body"});var T=y(require("react"),1);var P=y(require("react"),1);var u=require("react/jsx-runtime"),Y=["div"],Z=P.forwardRef(({as:e=Y[0],size:t="md",color:n="palette.primary-500",bg:r="palette.gray-200",className:o,style:i,...s},a)=>{let c=e,p=m("cocso-spinner",{size:t},[],o);return(0,u.jsx)(c,{ref:a,className:p,style:{"--cocso-spinner-bg":l(r),"--cocso-spinner-color":l(n),...i},...s,children:(0,u.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"9",stroke:"var(--cocso-spinner-bg, currentColor)",strokeWidth:"3"}),(0,u.jsx)("path",{className:"opacity-75",fill:"var(--cocso-spinner-color, currentColor)",d:"M12 2a10 10 0 0110 10 10 10 0 01-5 8.66l-1-1.73a8 8 0 004-6.93 8 8 0 00-8-8V2z"})]})})}),x=Object.assign(Z,{displayName:"Spinner"});var C=require("react/jsx-runtime"),ee=["button"],te=T.forwardRef(({as:e=ee[0],variant:t="primary",size:n="md",disabled:r=!1,loading:o=!1,color:i,fontWeight:s="normal",className:a,style:c,children:R,onClick:p,onKeyDown:b,...k},v)=>{let O=e,g=r||o,z={"2xs":"xs",xs:"xs",sm:"xs",md:"sm",lg:"md",xl:"md"},H=T.useCallback(f=>{if(g){f.preventDefault();return}p?.(f)},[g,p]),$=T.useCallback(f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),g||f.currentTarget.click()),b?.(f)},[g,b]),j={variant:t,size:n,loading:o,disabled:g},M=[...r?[{variant:t,disabled:r}]:[],...o?[{variant:t,loading:o}]:[]],_=m("cocso-button",j,M,a);return(0,C.jsx)(O,{ref:v,className:_,onClick:H,onKeyDown:$,role:"button",disabled:g,"aria-disabled":g,"aria-busy":o,style:{"--cocso-button-color":l(i),"--cocso-button-weight":d(s),...c},...k,children:o?(0,C.jsx)(x,{className:"cocso-button-spinner",size:z[n],color:"currentColor"}):R})}),oe=Object.assign(te,{displayName:"Button"});var N=y(require("react"),1);var w=require("react/jsx-runtime"),ne=["h1","h2","h3","h4","h5","h6"],se=N.forwardRef(({as:e=ne[0],size:t="md",color:n,fontWeight:r="bold",className:o,style:i,...s},a)=>{let c=e,p=m("cocso-display",{size:t},[],o);return(0,w.jsx)(c,{ref:a,className:p,style:{"--cocso-display-color":l(n),"--cocso-display-weight":d(r),...i},...s})}),re=Object.assign(se,{displayName:"Display"});var S=y(require("react"),1);var B=require("react/jsx-runtime"),ae=["h1","h2","h3","h4","h5","h6"],ce=S.forwardRef(({as:e=ae[1],size:t="md",color:n,fontWeight:r="bold",className:o,style:i,...s},a)=>{let c=e,p=m("cocso-heading",{size:t},[],o);return(0,B.jsx)(c,{ref:a,className:p,style:{"--cocso-heading-color":l(n),"--cocso-heading-weight":d(r),...i},...s})}),ie=Object.assign(ce,{displayName:"Heading"});
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as x from"react";function l(e){if(e)return e.includes(".")?`var(--color-${e.replace(/\./g,"-")})`:e}var h={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"};function d(e){if(e)return e in h?h[e]:e}var z=(...e)=>e.filter(Boolean).join(" ").trim(),m=(e,s,c=[],...r)=>{let o=Object.entries(s).filter(([,t])=>t!==!1&&t!==null&&t!==void 0).map(([t,n])=>`${e}--${t}_${n}`).join(" "),i=c.filter(t=>Object.entries(t).every(([n,a])=>s[n]===a)).map(t=>{let n=Object.entries(t).map(([a,R])=>`${a}_${R}`).join("-");return`${e}--${n}`}).join(" ");return z(e,o,i,...r)};import{jsx as j}from"react/jsx-runtime";var H=["p","a","span","div","label","li","td","th","figcaption","blockquote","cite"],$=x.forwardRef(({as:e=H[0],size:s="md",color:c,fontWeight:r="normal",className:o,style:i,...t},n)=>{let a=e,p=m("cocso-body",{size:s},[],o);return j(a,{ref:n,className:p,style:{"--cocso-body-color":l(c),"--cocso-body-weight":d(r),...i},...t})}),ee=Object.assign($,{displayName:"Body"});import*as u from"react";import*as C from"react";import{jsx as y,jsxs as L}from"react/jsx-runtime";var M=["div"],_=C.forwardRef(({as:e=M[0],size:s="md",color:c="palette.primary-500",bg:r="palette.gray-200",className:o,style:i,...t},n)=>{let a=e,p=m("cocso-spinner",{size:s},[],o);return y(a,{ref:n,className:p,style:{"--cocso-spinner-bg":l(r),"--cocso-spinner-color":l(c),...i},...t,children:L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y("circle",{className:"opacity-25",cx:"12",cy:"12",r:"9",stroke:"var(--cocso-spinner-bg, currentColor)",strokeWidth:"3"}),y("path",{className:"opacity-75",fill:"var(--cocso-spinner-color, currentColor)",d:"M12 2a10 10 0 0110 10 10 10 0 01-5 8.66l-1-1.73a8 8 0 004-6.93 8 8 0 00-8-8V2z"})]})})}),b=Object.assign(_,{displayName:"Spinner"});import{jsx as E}from"react/jsx-runtime";var A=["button"],G=u.forwardRef(({as:e=A[0],variant:s="primary",size:c="md",disabled:r=!1,loading:o=!1,color:i,fontWeight:t="normal",className:n,style:a,children:R,onClick:p,onKeyDown:T,...F},P)=>{let N=e,g=r||o,w={"2xs":"xs",xs:"xs",sm:"xs",md:"sm",lg:"md",xl:"md"},S=u.useCallback(f=>{if(g){f.preventDefault();return}p?.(f)},[g,p]),B=u.useCallback(f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),g||f.currentTarget.click()),T?.(f)},[g,T]),k={variant:s,size:c,loading:o,disabled:g},v=[...r?[{variant:s,disabled:r}]:[],...o?[{variant:s,loading:o}]:[]],O=m("cocso-button",k,v,n);return E(N,{ref:P,className:O,onClick:S,onKeyDown:B,role:"button",disabled:g,"aria-disabled":g,"aria-busy":o,style:{"--cocso-button-color":l(i),"--cocso-button-weight":d(t),...a},...F,children:o?E(b,{className:"cocso-button-spinner",size:w[c],color:"currentColor"}):R})}),Re=Object.assign(G,{displayName:"Button"});import*as W from"react";import{jsx as V}from"react/jsx-runtime";var I=["h1","h2","h3","h4","h5","h6"],K=W.forwardRef(({as:e=I[0],size:s="md",color:c,fontWeight:r="bold",className:o,style:i,...t},n)=>{let a=e,p=m("cocso-display",{size:s},[],o);return V(a,{ref:n,className:p,style:{"--cocso-display-color":l(c),"--cocso-display-weight":d(r),...i},...t})}),Ce=Object.assign(K,{displayName:"Display"});import*as D from"react";import{jsx as Q}from"react/jsx-runtime";var q=["h1","h2","h3","h4","h5","h6"],J=D.forwardRef(({as:e=q[1],size:s="md",color:c,fontWeight:r="bold",className:o,style:i,...t},n)=>{let a=e,p=m("cocso-heading",{size:s},[],o);return Q(a,{ref:n,className:p,style:{"--cocso-heading-color":l(c),"--cocso-heading-weight":d(r),...i},...t})}),Ne=Object.assign(J,{displayName:"Heading"});export{ee as Body,Re as Button,Ce as Display,Ne as Heading,b as Spinner};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const cn: (...classes: (string | undefined | null | false)[]) => string;
|
|
2
|
+
export declare const createClassName: (baseClass: string, variants: Record<string, any>, compoundVariants?: Record<string, any>[], ...additionalClasses: (string | undefined | null | false)[]) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare function createColor(token: string | undefined): string | undefined;
|
|
2
|
+
declare const FONT_WEIGHT_MAP: {
|
|
3
|
+
readonly thin: "100";
|
|
4
|
+
readonly extralight: "200";
|
|
5
|
+
readonly light: "300";
|
|
6
|
+
readonly normal: "400";
|
|
7
|
+
readonly medium: "500";
|
|
8
|
+
readonly semibold: "600";
|
|
9
|
+
readonly bold: "700";
|
|
10
|
+
readonly extrabold: "800";
|
|
11
|
+
readonly black: "900";
|
|
12
|
+
};
|
|
13
|
+
export type FontWeightToken = keyof typeof FONT_WEIGHT_MAP;
|
|
14
|
+
export declare function createFontWeight(token: string | undefined): string | undefined;
|
|
15
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocso-ui/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1-beta.10",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cocso/cocso-ui.git",
|
|
@@ -24,18 +24,16 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"lib"
|
|
26
26
|
],
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@radix-ui/react-slot": "^1.2.3"
|
|
29
|
-
},
|
|
27
|
+
"dependencies": {},
|
|
30
28
|
"peerDependencies": {
|
|
31
|
-
"react": "^
|
|
32
|
-
"react-dom": "^
|
|
29
|
+
"react": "^19.1.0",
|
|
30
|
+
"react-dom": "^19.1.0"
|
|
33
31
|
},
|
|
34
32
|
"devDependencies": {
|
|
35
|
-
"@types/react": "^19",
|
|
36
|
-
"@types/react-dom": "^19",
|
|
37
|
-
"esbuild": "^0.
|
|
38
|
-
"typescript": "^5.
|
|
33
|
+
"@types/react": "^19.1.8",
|
|
34
|
+
"@types/react-dom": "^19.1.6",
|
|
35
|
+
"esbuild": "^0.25.6",
|
|
36
|
+
"typescript": "^5.8.3"
|
|
39
37
|
},
|
|
40
38
|
"publishConfig": {
|
|
41
39
|
"access": "public"
|
package/lib/primitive/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface PrimitiveProps {
|
|
3
|
-
asChild?: boolean;
|
|
4
|
-
}
|
|
5
|
-
type PropsWithRef<E extends React.ElementType> = React.ComponentPropsWithRef<E> & PrimitiveProps;
|
|
6
|
-
declare function createPrimitive<E extends React.ElementType>(element: E): React.ForwardRefExoticComponent<PropsWithRef<E>>;
|
|
7
|
-
declare const Primitive: {
|
|
8
|
-
div: React.ForwardRefExoticComponent<PropsWithRef<"div">>;
|
|
9
|
-
span: React.ForwardRefExoticComponent<PropsWithRef<"span">>;
|
|
10
|
-
button: React.ForwardRefExoticComponent<PropsWithRef<"button">>;
|
|
11
|
-
input: React.ForwardRefExoticComponent<PropsWithRef<"input">>;
|
|
12
|
-
form: React.ForwardRefExoticComponent<PropsWithRef<"form">>;
|
|
13
|
-
label: React.ForwardRefExoticComponent<PropsWithRef<"label">>;
|
|
14
|
-
p: React.ForwardRefExoticComponent<PropsWithRef<"p">>;
|
|
15
|
-
h1: React.ForwardRefExoticComponent<PropsWithRef<"h1">>;
|
|
16
|
-
h2: React.ForwardRefExoticComponent<PropsWithRef<"h2">>;
|
|
17
|
-
h3: React.ForwardRefExoticComponent<PropsWithRef<"h3">>;
|
|
18
|
-
h4: React.ForwardRefExoticComponent<PropsWithRef<"h4">>;
|
|
19
|
-
h5: React.ForwardRefExoticComponent<PropsWithRef<"h5">>;
|
|
20
|
-
h6: React.ForwardRefExoticComponent<PropsWithRef<"h6">>;
|
|
21
|
-
section: React.ForwardRefExoticComponent<PropsWithRef<"section">>;
|
|
22
|
-
article: React.ForwardRefExoticComponent<PropsWithRef<"article">>;
|
|
23
|
-
header: React.ForwardRefExoticComponent<PropsWithRef<"header">>;
|
|
24
|
-
footer: React.ForwardRefExoticComponent<PropsWithRef<"footer">>;
|
|
25
|
-
main: React.ForwardRefExoticComponent<PropsWithRef<"main">>;
|
|
26
|
-
nav: React.ForwardRefExoticComponent<PropsWithRef<"nav">>;
|
|
27
|
-
aside: React.ForwardRefExoticComponent<PropsWithRef<"aside">>;
|
|
28
|
-
ul: React.ForwardRefExoticComponent<PropsWithRef<"ul">>;
|
|
29
|
-
ol: React.ForwardRefExoticComponent<PropsWithRef<"ol">>;
|
|
30
|
-
li: React.ForwardRefExoticComponent<PropsWithRef<"li">>;
|
|
31
|
-
img: React.ForwardRefExoticComponent<PropsWithRef<"img">>;
|
|
32
|
-
a: React.ForwardRefExoticComponent<PropsWithRef<"a">>;
|
|
33
|
-
strong: React.ForwardRefExoticComponent<PropsWithRef<"strong">>;
|
|
34
|
-
em: React.ForwardRefExoticComponent<PropsWithRef<"em">>;
|
|
35
|
-
small: React.ForwardRefExoticComponent<PropsWithRef<"small">>;
|
|
36
|
-
table: React.ForwardRefExoticComponent<PropsWithRef<"table">>;
|
|
37
|
-
thead: React.ForwardRefExoticComponent<PropsWithRef<"thead">>;
|
|
38
|
-
tbody: React.ForwardRefExoticComponent<PropsWithRef<"tbody">>;
|
|
39
|
-
tr: React.ForwardRefExoticComponent<PropsWithRef<"tr">>;
|
|
40
|
-
td: React.ForwardRefExoticComponent<PropsWithRef<"td">>;
|
|
41
|
-
th: React.ForwardRefExoticComponent<PropsWithRef<"th">>;
|
|
42
|
-
};
|
|
43
|
-
export { createPrimitive, Primitive };
|
|
44
|
-
export type { PropsWithRef };
|