"use client";
import { applyTypography } from "../../../styles/typography.js";
import { typographyStyles } from "../typographyStyles.js";
import { getPropDefaultsBase } from "./getPropDefaults.js";
import { select } from "../../../utils/emotion.js";
import styled from "@emotion/styled";
import { jsx } from "@emotion/react/jsx-runtime";
//#region src/components/typography/base/Display.tsx
const displayElements = [
	"h1",
	"h2",
	"h3",
	"h4",
	"h5",
	"h6"
];
function DisplayString(props) {
	const { children, ...rest } = getPropDefaults(props);
	return /* @__PURE__ */ jsx(StyledDisplay, {
		...rest,
		children
	});
}
function getPropDefaults(props) {
	return getPropDefaultsBase(props, { as: props.tag || "h1" });
}
const StyledDisplay = styled.h1`
  ${({ theme, size, colorProp }) => applyTypography(theme, "Display", size, colorProp)}
  ${typographyStyles}
`;
function displaySelector(element) {
	return `${element}${select(StyledDisplay)}`;
}
//#endregion
export { DisplayString, StyledDisplay, displayElements, displaySelector, getPropDefaults };
