Skip to content

Commit

Permalink
feat(theme): ✨ update nextra theme & docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Dec 30, 2021
1 parent ded81d3 commit 207c409
Show file tree
Hide file tree
Showing 23 changed files with 3,586 additions and 222 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ yarn.lock
# Library files
dist
CHANGELOG.md
.yalc
6 changes: 6 additions & 0 deletions .yalc/nextra-renderlesskit-theme-docs/dist/bleed.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from "react";
interface BleedProps {
full: boolean;
}
declare const Bleed: React.FC<BleedProps>;
export default Bleed;
12 changes: 12 additions & 0 deletions .yalc/nextra-renderlesskit-theme-docs/dist/bleed.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// src/bleed.tsx
import React from "react";
import cn from "classnames";
var Bleed = ({ full, children }) => {
return /* @__PURE__ */ React.createElement("div", {
className: cn("bleed relative mt-6 -mx-6 md:-mx-8 2xl:-mx-24", { full })
}, children);
};
var bleed_default = Bleed;
export {
bleed_default as default
};
14 changes: 14 additions & 0 deletions .yalc/nextra-renderlesskit-theme-docs/dist/callout.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
declare const themes: {
default: string;
error: string;
warning: string;
};
interface CalloutProps {
/** Callout Theme default to 'default' */
type?: keyof typeof themes;
/** default emoji 💡*/
emoji: string;
}
declare const Callout: React.FC<CalloutProps>;
export default Callout;
27 changes: 27 additions & 0 deletions .yalc/nextra-renderlesskit-theme-docs/dist/callout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// src/callout.tsx
import React from "react";
var themes = {
default: "bg-orange-100 text-orange-800 dark:text-orange-300 dark:bg-orange-200 dark:bg-opacity-10",
error: "bg-red-200 text-red-900 dark:text-red-200 dark:bg-red-600 dark:bg-opacity-30",
warning: "bg-yellow-200 text-yellow-900 dark:text-yellow-200 dark:bg-yellow-700 dark:bg-opacity-30"
};
var Callout = ({
children,
type = "default",
emoji = "\u{1F4A1}"
}) => {
return /* @__PURE__ */ React.createElement("div", {
className: `${themes[type]} flex rounded-lg callout mt-6`
}, /* @__PURE__ */ React.createElement("div", {
className: "pl-3 pr-2 py-2 select-none text-xl",
style: {
fontFamily: '"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
}
}, emoji), /* @__PURE__ */ React.createElement("div", {
className: "pr-4 py-2"
}, children));
};
var callout_default = Callout;
export {
callout_default as default
};
Loading

1 comment on commit 207c409

@vercel
Copy link

@vercel vercel bot commented on 207c409 Dec 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.