-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from hwy-js/feat/0.2.0-beta
0.2.1
- Loading branch information
Showing
48 changed files
with
1,214 additions
and
952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
const __window = window as any | ||
const __window = window as any; | ||
|
||
import htmx from 'htmx.org' | ||
__window.htmx = htmx | ||
import htmx from "htmx.org"; | ||
__window.htmx = htmx; | ||
|
||
import NProgress from 'nprogress' | ||
__window.NProgress = NProgress | ||
import NProgress from "nprogress"; | ||
__window.NProgress = NProgress; | ||
|
||
// @ts-ignore | ||
import('htmx.org/dist/ext/head-support.js') | ||
import("htmx.org/dist/ext/head-support.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
import { cx } from '../utils/utils.js' | ||
import { cx } from "../utils/utils.js"; | ||
|
||
function InlineCode({ | ||
children, | ||
high_contrast, | ||
...rest | ||
}: { | ||
children: string | ||
high_contrast?: boolean | ||
} & JSX.IntrinsicElements['code']) { | ||
children: string; | ||
high_contrast?: boolean; | ||
} & JSX.IntrinsicElements["code"]) { | ||
return ( | ||
<code | ||
{...rest} | ||
class={cx( | ||
'py-[2px] px-1 whitespace-nowrap', | ||
"py-[2px] px-1 whitespace-nowrap", | ||
high_contrast | ||
? 'bg-black text-white dark:bg-white dark:text-black' | ||
: 'bg-[#7772] dark:bg-[#7773] rounded', | ||
? "bg-black text-white dark:bg-white dark:text-black" | ||
: "bg-[#7772] dark:bg-[#7773] rounded", | ||
rest.class | ||
)} | ||
> | ||
{children} | ||
</code> | ||
) | ||
); | ||
} | ||
|
||
export { InlineCode } | ||
export { InlineCode }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ function Nav() { | |
</a> | ||
</div> | ||
</nav> | ||
) | ||
); | ||
} | ||
|
||
export { Nav } | ||
export { Nav }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { ChildrenPermissive } from '../types.js' | ||
import { cx } from '../utils/utils.js' | ||
import { ChildrenPermissive } from "../types.js"; | ||
import { cx } from "../utils/utils.js"; | ||
|
||
function Paragraph({ | ||
children, | ||
...rest | ||
}: { children: ChildrenPermissive } & JSX.IntrinsicElements['p']) { | ||
}: { children: ChildrenPermissive } & JSX.IntrinsicElements["p"]) { | ||
return ( | ||
<p {...rest} class={cx('leading-7', rest.class)}> | ||
<p {...rest} class={cx("leading-7", rest.class)}> | ||
{children} | ||
</p> | ||
) | ||
); | ||
} | ||
|
||
export { Paragraph } | ||
export { Paragraph }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { ChildrenPermissive } from '../types.js' | ||
import { cx } from '../utils/utils.js' | ||
import { ChildrenPermissive } from "../types.js"; | ||
import { cx } from "../utils/utils.js"; | ||
|
||
function UnorderedList({ | ||
children, | ||
...rest | ||
}: { children: ChildrenPermissive } & JSX.IntrinsicElements['ul']) { | ||
}: { children: ChildrenPermissive } & JSX.IntrinsicElements["ul"]) { | ||
return ( | ||
<ul {...rest} class={cx('space-y-6', rest.class)}> | ||
<ul {...rest} class={cx("space-y-6", rest.class)}> | ||
{children} | ||
</ul> | ||
) | ||
); | ||
} | ||
|
||
function ListItem({ | ||
children, | ||
...rest | ||
}: { children: ChildrenPermissive } & JSX.IntrinsicElements['li']) { | ||
}: { children: ChildrenPermissive } & JSX.IntrinsicElements["li"]) { | ||
return ( | ||
<li {...rest} class={cx('list-disc ml-6 pl-1 leading-7', rest.class)}> | ||
<li {...rest} class={cx("list-disc ml-6 pl-1 leading-7", rest.class)}> | ||
{children} | ||
</li> | ||
) | ||
); | ||
} | ||
|
||
export { UnorderedList, ListItem } | ||
export { UnorderedList, ListItem }; |
Oops, something went wrong.