UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

1 lines 1.57 kB
{"version":3,"file":"loading.cjs","names":["initialProps: InitialProps<LoadingProps>","createComponent","loadingStyle"],"sources":["../../../../src/components/loading/loading.tsx"],"sourcesContent":["\"use client\"\n\nimport type {\n CSSProps,\n InitialProps,\n ThemeProps,\n WithoutThemeProps,\n} from \"../../core\"\nimport type { IconProps } from \"../icon\"\nimport type { LoadingStyle } from \"./loading.style\"\nimport { createComponent } from \"../../core\"\nimport { loadingStyle } from \"./loading.style\"\n\nexport const initialProps: InitialProps<LoadingProps> = {\n \"data-loading\": \"\",\n}\n\nexport const superProps = ({\n css,\n duration,\n dur = duration,\n ...rest\n}: WithoutThemeProps<LoadingProps, LoadingStyle>): WithoutThemeProps<\n LoadingProps,\n LoadingStyle\n> => ({\n css,\n dur,\n ...rest,\n})\n\nexport interface LoadingProps\n extends WithoutThemeProps<IconProps>,\n ThemeProps<LoadingStyle> {\n /**\n * The CSS `dur` property.\n */\n duration?: IconProps[\"dur\"]\n /**\n * The CSS `color` property.\n */\n secondaryColor?: CSSProps[\"color\"]\n}\n\nconst {\n PropsContext: LoadingPropsContext,\n usePropsContext: useLoadingPropsContext,\n withContext,\n} = createComponent<LoadingProps, LoadingStyle>(\"loading\", loadingStyle)\n\nexport { LoadingPropsContext, useLoadingPropsContext, withContext }\n"],"mappings":";;;;;;;AAaA,MAAaA,eAA2C,EACtD,gBAAgB,IACjB;AAED,MAAa,cAAc,EACzB,KACA,UACA,MAAM,SACN,GAAG,YAIC;CACJ;CACA;CACA,GAAG;CACJ;AAeD,MAAM,EACJ,cAAc,qBACd,iBAAiB,wBACjB,gBACEC,yCAA4C,WAAWC,mCAAa"}