UNPKG

@playbooks/ui

Version:

An interface library for Playbooks.

60 lines (59 loc) 2.03 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const require$$0 = require("react/jsx-runtime"); const html = require("./toast-context-kVz4KXNu.cjs"); const Header = ({ name = "Header", tailwind, className, children, ...props }) => { const { theme } = html.useInterface(); const base = theme.header(); const computed = { ...base, ...props, tailwind, className, name }; return /* @__PURE__ */ require$$0.jsx(html.Div, { ...computed, children }); }; const HeaderTitle = ({ name = "HeaderTitle", size = "h4", tailwind, className, children, ...props }) => { const { theme } = html.useInterface(); const base = theme.headerTitle(); const computed = { ...base, ...props, tailwind, className, name }; return /* @__PURE__ */ require$$0.jsx(html.Font, { size, ...computed, children }); }; const HeaderSubtitle = ({ name = "HeaderSubtitle", size = "h6", tailwind, className, children, ...props }) => { const { theme } = html.useInterface(); const base = theme.headerSubtitle(); const computed = { ...base, ...props, tailwind, className, name }; return /* @__PURE__ */ require$$0.jsx(html.Font, { size, ...computed, children }); }; const HeaderText = ({ name = "HeaderText", tailwind, className, children, ...props }) => { const { theme } = html.useInterface(); const base = theme.headerText(); const computed = { ...base, ...props, tailwind, className, name }; return /* @__PURE__ */ require$$0.jsx(html.P, { ...computed, children }); }; const HeaderActions = ({ name = "HeaderActions", tailwind, className, children, ...props }) => { const { theme } = html.useInterface(); const base = theme.headerActions(); const computed = { ...base, ...props, tailwind, className, name }; return /* @__PURE__ */ require$$0.jsx(html.Div, { ...computed, children }); }; exports.Header = Header; exports.HeaderActions = HeaderActions; exports.HeaderSubtitle = HeaderSubtitle; exports.HeaderText = HeaderText; exports.HeaderTitle = HeaderTitle;