@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
1 lines • 1.76 kB
Source Map (JSON)
{"version":3,"file":"container.cjs","names":["createSlotComponent","containerStyle"],"sources":["../../../../src/components/container/container.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { ContainerStyle } from \"./container.style\"\nimport { createSlotComponent } from \"../../core\"\nimport { containerStyle } from \"./container.style\"\n\nexport interface ContainerRootProps\n extends HTMLStyledProps<\"section\">,\n ThemeProps<ContainerStyle> {}\n\nconst {\n PropsContext: ContainerPropsContext,\n usePropsContext: useContainerPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<ContainerRootProps, ContainerStyle>(\n \"container\",\n containerStyle,\n)\n\nexport { ContainerPropsContext, useContainerPropsContext }\n\n/**\n * `Container` is a component used as a general division element. By default, it renders the `section` element.\n *\n * @see https://yamada-ui.com/docs/components/container\n */\nexport const ContainerRoot = withProvider(\"section\", \"root\")()\n\nexport interface ContainerHeaderProps extends HTMLStyledProps<\"header\"> {}\n\nexport const ContainerHeader = withContext(\"header\", \"header\")()\n\nexport interface ContainerBodyProps extends HTMLStyledProps {}\n\nexport const ContainerBody = withContext(\"div\", \"body\")()\n\nexport interface ContainerFooterProps extends HTMLStyledProps<\"footer\"> {}\n\nexport const ContainerFooter = withContext(\"footer\", \"footer\")()\n"],"mappings":";;;;;;;AAWA,MAAM,EACJ,cAAc,uBACd,iBAAiB,0BACjB,aACA,iBACEA,6CACF,aACAC,uCACD;;;;;;AASD,MAAa,gBAAgB,aAAa,WAAW,OAAO,EAAE;AAI9D,MAAa,kBAAkB,YAAY,UAAU,SAAS,EAAE;AAIhE,MAAa,gBAAgB,YAAY,OAAO,OAAO,EAAE;AAIzD,MAAa,kBAAkB,YAAY,UAAU,SAAS,EAAE"}