Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 v1.0.0 #11

Merged
merged 191 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
8ea1004
chore: upgrade astro & radix dependencies
pheralb Nov 28, 2024
938e2ef
feat: update shikiConfig to support multiple themes for syntax highli…
pheralb Nov 28, 2024
aa9cc7f
feat: update global docs design + ToC improvements
pheralb Nov 28, 2024
0c669ec
chore: add ``@shikijs/transformers``
pheralb Nov 28, 2024
9ff8aaa
feat: prepare new docs UI + update homepage & codeblock styles
pheralb Nov 28, 2024
c7ae8a4
feat: prepare custom styles page
pheralb Nov 28, 2024
664404d
feat: add ``transformerMetaHighlight`` to Shiki config
pheralb Nov 28, 2024
70ee9f4
feat: improve documentation, prepare custom styles and fix Next.js in…
pheralb Nov 28, 2024
e83e86c
feat: prepare highlighted code
pheralb Nov 28, 2024
2de2545
docs: update readme
pheralb Nov 29, 2024
807bc42
docs: add ``toastIcons`` documentation + update custom docs.config
pheralb Dec 1, 2024
90962ee
fix: (playground) update tailwind.config
pheralb Dec 1, 2024
d2a8aa3
feat: enhance classNames utility function and add getSystemTheme
pheralb Dec 1, 2024
81ae683
feat: add support for custom toast icons and refactor Toast component
pheralb Dec 1, 2024
e738f01
refactor: consolidate toast styles into globals.css and remove unused…
pheralb Dec 1, 2024
e3b34dd
docs: update ``prose-inline-code`` styles for improved readability
pheralb Dec 1, 2024
8901cbb
chore: add build scripts for styles + export bundled & minified css
pheralb Dec 1, 2024
cc68fdb
feat: add custom ``targetBlank`` rehype plugin
pheralb Dec 10, 2024
d590672
refactor: remove unused classes and imports from layout files
pheralb Dec 10, 2024
fef310f
chore: add ``@astrojs/markdown-remark``, ``hast`` & ``unist-util-visit``
pheralb Dec 10, 2024
c41d959
docs: update dark-mode documentation + improve other docs
pheralb Dec 10, 2024
7f6fb58
fix: improve docs layout + remove unused component
pheralb Dec 10, 2024
e2d0854
refactor: simplify toast management logic in Toaster component
pheralb Dec 11, 2024
6be18d1
chore: update build script to separate library and styles compilation
pheralb Dec 11, 2024
ee804f9
refactor: enhance toast types with new classnames and options structure
pheralb Dec 11, 2024
c44737b
refactor: export icon components for better accessibility and usage
pheralb Dec 11, 2024
2dc063f
refactor: update Toast and Toaster components to use ``toastOptions``
pheralb Dec 11, 2024
52d0966
refactor: add ToastOptions type export in main.tsx
pheralb Dec 11, 2024
08c9ac0
feat: integrate custom theme options in ToasterPlayground and update …
pheralb Dec 11, 2024
83157a2
chore: migrate to new Astro Content Layer
pheralb Dec 11, 2024
cee8b23
chore: ✨ upgrade Astro v5
pheralb Dec 11, 2024
6850f35
feat: add UI ``tui`` configuration to turbo.json
pheralb Dec 11, 2024
f45aaf3
feat: create custom Codeblock client side using Shiki
pheralb Dec 11, 2024
4257353
feat: use new Codeblock component
pheralb Dec 11, 2024
08de465
chore: add ``shiki`` dependency
pheralb Dec 11, 2024
74f86e3
feat: add light/dark mode for Shiki (custom codeblock component)
pheralb Dec 11, 2024
0d4f659
fix: update ToasterPlayground properties
pheralb Dec 11, 2024
30f934a
fix: remove unused ToastIcons import from toaster component
pheralb Dec 11, 2024
a39cddf
fix (playground): update toast options structure in ToastClientProvider
pheralb Dec 11, 2024
6726a04
chore: update recommended extensions for VSCode
pheralb Dec 12, 2024
7c963cc
docs: prepare ToastOptions documentation
pheralb Dec 12, 2024
bc4d4a6
feat: create interactive component to modify default styles for docs
pheralb Dec 12, 2024
7e1acd7
feat: add tailwindcss icon + extend codeblock properties
pheralb Dec 12, 2024
a8bbd16
docs: add ``ToastCustomOptions`` interactive component
pheralb Dec 12, 2024
4176522
chore: update GitHub Actions workflows to use pnpm/actions v4 and Nod…
pheralb Dec 15, 2024
3ba1127
fix: replace ViewTransitions with ClientRouter in layout component
pheralb Dec 15, 2024
da07eb1
refactor: optimize Toast component with useCallback and improve actio…
pheralb Dec 15, 2024
dcef350
fix: update role attribute for Toaster component to improve accessibi…
pheralb Dec 15, 2024
7acb8b1
fix: add ``ReactNode`` support for action button + rename ``text`` to…
pheralb Dec 15, 2024
d8826ed
docs: update readme
pheralb Dec 15, 2024
19e0c9f
feat: upgrade eslint config to v9
pheralb Dec 15, 2024
fcefbf5
chore: update library dependencies + add eslint new config
pheralb Dec 15, 2024
359b87b
fix: enhance ``LoadingType`` interface for better type safety
pheralb Dec 15, 2024
b9ace47
docs: update astro, dark-mode, nextjs, options & toast docs
pheralb Dec 22, 2024
9604f91
fix: adjust padding for sparkle card
pheralb Dec 22, 2024
c2c803d
feat: add toast custom options, extend UI styles
pheralb Dec 22, 2024
509defd
feat: add toast library styles for global layout
pheralb Dec 22, 2024
0a2fa10
chore: update gitignore for astro, remix & nextjs
pheralb Dec 22, 2024
dfd28ee
chore: update ``packageManager`` version
pheralb Dec 22, 2024
96c4e4b
fix: merge branch 'next' of github.com:pheralb/toast into next
pheralb Dec 22, 2024
c8c8475
chore: update workspace dependencies
pheralb Dec 23, 2024
748cab5
feat: enhance useTimeout hook with pause, resume, and reset functiona…
pheralb Dec 25, 2024
d33a9a9
refactor: use the new ``useTimeout`` hook
pheralb Dec 25, 2024
2c47ffb
chore: add ``prettier-plugin-astro`` to workspace
pheralb Dec 25, 2024
199ec91
chore: add eslint config
pheralb Dec 25, 2024
30ef1eb
chore: configure Prettier and default formatter for Astro files
pheralb Dec 25, 2024
44013d0
feat: move /layouts to /components/layouts
pheralb Dec 25, 2024
942c115
chore: remove pnpm version specification from workflows
pheralb Dec 25, 2024
119d018
chore: remove pnpm version specification from GitHub workflow
pheralb Dec 25, 2024
d1989fc
feat: add @pheralb/toast package as a workspace dependency
pheralb Dec 25, 2024
2b074ab
fix: remove relative import from main layout
pheralb Dec 25, 2024
654c8d6
chore: prepare new website + upgrade to react 19
pheralb Dec 25, 2024
5dd399c
chore: add ``.content-collections`` to .gitignore
pheralb Dec 25, 2024
779af93
fix: change singleQuote option to false in Prettier configuration
pheralb Dec 25, 2024
b113b48
chore: add content-collections, rehype/remark with fumadocs & rehype-…
pheralb Dec 25, 2024
3b1908b
feat: initial content-collections config + integration to Nextjs
pheralb Dec 25, 2024
417c044
chore: add shadcn/ui styles
pheralb Dec 25, 2024
6a39aa0
feat: add components configuration for Shadcn UI
pheralb Dec 25, 2024
64ddad0
feat: add custom fonts
pheralb Dec 25, 2024
d32a082
chore: add radix: dialog, dropdown-menu & slot, react-symbols, cmdk, …
pheralb Dec 26, 2024
b971b06
chore: update page extensions in Next.js configuration
pheralb Dec 26, 2024
db316b9
docs: update docs with new MDX components
pheralb Dec 27, 2024
a8256ef
chore: add rehype-pretty-code plugin + custom options
pheralb Dec 27, 2024
907673f
feat: enhance Tailwind CSS configuration with typography and custom a…
pheralb Dec 27, 2024
40f6b1c
chore: update lock file
pheralb Dec 27, 2024
13b5220
feat: migrate UI components
pheralb Dec 27, 2024
3099621
feat: add theme & toaster providers
pheralb Dec 27, 2024
588febd
feat: update globals.css for light/dark mode support in Rehype-Pretty…
pheralb Dec 27, 2024
52d46b1
feat: add global and playground components to MDX renderer
pheralb Dec 27, 2024
6357cad
feat: migrate docs config
pheralb Dec 27, 2024
bb6fb29
feat: initial codeblock with Shiki, built for MDX & client
pheralb Dec 27, 2024
1f999e1
feat: migrate store with Zustand
pheralb Dec 27, 2024
efd83e4
feat: initial new layout + migrate main pages
pheralb Dec 27, 2024
ef48532
feat: migrate layout
pheralb Dec 27, 2024
e6d493c
feat: add article. hero, modeToggle, search, sparkleCard & usage UI c…
pheralb Dec 27, 2024
bd6a142
feat: migrate interactive toast & toaster playground
pheralb Dec 27, 2024
1a8c51c
fix: delete unused rehype pretty options
pheralb Dec 27, 2024
0a9f4e8
chore: add ``unist-util-visit`` dependency
pheralb Dec 28, 2024
82af1ab
feat: enhance MDX processing with rehype plugins for code blocks and …
pheralb Dec 28, 2024
7be7d7b
feat: add support for more languages + use custom ``rawstring`` property
pheralb Dec 28, 2024
ef3de1f
feat: improve ``copyToClipboard`` utility
pheralb Dec 28, 2024
106fd8b
fix: initialize timeout and start time refs to avoid undefined values
pheralb Dec 28, 2024
af02390
fix: update DocPage props to handle promise for ``slug`` parameter
pheralb Dec 28, 2024
b30aee0
feat: add static images + webmanifest
pheralb Dec 28, 2024
6c8e168
fix: add description to main library
pheralb Dec 28, 2024
9754dc7
feat: add metadata
pheralb Dec 28, 2024
a3c2626
docs: update description for main page
pheralb Dec 28, 2024
fb3a4e9
feat: add loading state to code block component
pheralb Dec 28, 2024
0466505
fix: update ``dev:docs`` script filter to point to ``@pheralb/toast-w…
pheralb Dec 28, 2024
0ce42a7
chore: add ``fast-npm-meta`` dependency
pheralb Dec 28, 2024
844be2a
feat: add padding to container in Tailwind config
pheralb Dec 28, 2024
a61e778
feat: design improvements + add footer component
pheralb Dec 28, 2024
40c5760
docs: update ``icons`` property
pheralb Dec 28, 2024
9a863cb
feat: create custom ``installLibrary`` UI component
pheralb Dec 28, 2024
a69b051
feat: design improvements
pheralb Dec 28, 2024
9521e7e
feat: create ``frameworkGuides`` UI component
pheralb Dec 28, 2024
cc815ac
feat: update CodeblockClient to support additional languages and impr…
pheralb Dec 28, 2024
cc9f574
feat: enhance CopyToClipboard button with improved styling and access…
pheralb Dec 28, 2024
fbd93e6
feat: remove unused TailwindCSS icon from ToastCustomOptions component
pheralb Dec 28, 2024
3ba0dac
fix: remove unnecessary ``!important`` from light theme
pheralb Dec 29, 2024
3f66430
chore: add ``rehype-autolink-headings`` dependency
pheralb Dec 29, 2024
2a5cfca
feat: add rehype-autolink-headings for automatic heading linking in d…
pheralb Dec 29, 2024
2b45c3c
feat: add ``ArticleHeader`` component
pheralb Dec 29, 2024
227bc19
feat: add ``HEADING_LINK_ANCHOR`` for custom heading link styling
pheralb Dec 29, 2024
17509bd
docs: improve remix documentation guide
pheralb Dec 29, 2024
9dff905
docs: update usage guides for Astro and Next.js with improved clarity
pheralb Dec 29, 2024
b2b93f8
fix: update ``HEADING_LINK_ANCHOR`` for improved dark mode hover visi…
pheralb Dec 29, 2024
2f24dff
feat: enhance Toaster component to support current theme dynamically
pheralb Dec 29, 2024
3db98e0
feat: improve search, command & dialog UI components
pheralb Jan 1, 2025
aedf2dd
docs: add TanStack Start guide
pheralb Jan 1, 2025
eed0dd8
fix: remove unused usage component
pheralb Jan 1, 2025
057bec1
docs: update options, remix & toaster docs
pheralb Jan 1, 2025
60b28ae
feat: design improvements, button & icons
pheralb Jan 1, 2025
3a9af6c
fix: reorder social links, move Twitter below GitHub
pheralb Jan 1, 2025
07af559
fix: update ``toast`` title to include parentheses for clarity
pheralb Jan 3, 2025
302ae26
chore: add ``motion`` dependency
pheralb Jan 7, 2025
f1aad97
fix: activate ``bypassInlineCode`` property
pheralb Jan 7, 2025
39d849c
feat: new layout - add responsive UI components for main sidebar & ToC
pheralb Jan 8, 2025
781f92b
feat: add sheet UI component
pheralb Jan 8, 2025
00425f9
feat: add styling for highlighted lines in code blocks
pheralb Jan 8, 2025
a15687a
feat: integrate responsive table of contents menu in article pages
pheralb Jan 8, 2025
4806fc7
docs: update docs for main site, tanstack start guide & toast
pheralb Jan 8, 2025
5fae190
feat: enhance copy to clipboard button with animation and update hero…
pheralb Jan 8, 2025
6c0b0b3
feat: allow custom class names in article component and adjust backgr…
pheralb Jan 8, 2025
d4848e0
chore: export ``ToastAnimations`` type
pheralb Jan 12, 2025
c484555
feat: introducing ``default`` & ``swipe`` animations
pheralb Jan 12, 2025
45a9a85
docs: add ``animationOnClose`` playground component
pheralb Jan 12, 2025
25ff179
chore: prepare ``v1.0.0``
pheralb Jan 12, 2025
99983c4
Merge pull request #9 from pheralb/new-website
pheralb Jan 12, 2025
ebd930e
feat: add support for custom animation options (slide or swipe) + fix…
pheralb Jan 20, 2025
c69d530
feat: finish toast custom options styles + add ``toastAnimation`` to …
pheralb Jan 20, 2025
dd15f24
docs: update index + options - ``animationOnClose``
pheralb Jan 20, 2025
4692bfc
docs: update readme
pheralb Jan 20, 2025
245435e
docs: update readme
pheralb Jan 20, 2025
2d9e3c1
fix: enable toast component with system theme + automatic detection
pheralb Jan 24, 2025
fc43717
chore: fix eslint workflow
pheralb Jan 24, 2025
9ee6f69
feat: toast & toaster playground improvements
pheralb Jan 24, 2025
b929792
fix: format utils library
pheralb Jan 24, 2025
c268d82
chore: update lock
pheralb Jan 25, 2025
5579964
fix: toast tests - variant & action
pheralb Jan 25, 2025
4b380f9
docs: highlight code in all docs
pheralb Jan 25, 2025
e9a4def
chore: initial og dynamic image
pheralb Jan 28, 2025
9b27fdc
docs: update frontmatter params for index page + add example in /options
pheralb Jan 28, 2025
a10c1bb
feat: add logo with background in SVG
pheralb Jan 28, 2025
54f5730
feat: initial og api route + update title for index page
pheralb Jan 28, 2025
91fd287
chore: upgrade Next.js & other dependencies (UI)
pheralb Jan 28, 2025
7fe0141
feat: improve button UI component
pheralb Jan 28, 2025
1eb0f5c
feat: modeToggle with animated icons (using pqoqubbw/icons)
pheralb Jan 28, 2025
0e25dec
fix: refactor Shiki code highlighting logic to use singleton pattern …
pheralb Jan 28, 2025
1d5efbb
feat: separate ``fonts`` + improve layout with metadata & opengraph
pheralb Jan 28, 2025
fdd001c
feat: add default og image
pheralb Jan 28, 2025
7143d2f
feat: create ``docsSettings`` property
pheralb Jan 28, 2025
84b9a41
feat: dynamic open graph image generation and improve + fix layout
pheralb Jan 28, 2025
fd1112b
chore: add astro + view transitions example
pheralb Jan 28, 2025
12bb082
docs: add view transitions example snippet
pheralb Jan 28, 2025
3672698
docs: update examples readme
pheralb Jan 28, 2025
a20f21e
refactor: simplify classnames utility function and rename to `cn`
pheralb Jan 28, 2025
e03b99b
docs: update ``classNames`` & ``headless`` documentation properties
pheralb Jan 28, 2025
7e5e62d
fix: support for custom classNames (with default styles) + fixed ``pr…
pheralb Jan 28, 2025
6b046ed
refactor: (playground) rename ``ToastCustomOptions`` to ``ToastHeadle…
pheralb Jan 28, 2025
30e577c
chore: update library dependencies
pheralb Jan 28, 2025
10c2cfe
fix: lint & format errors
pheralb Jan 28, 2025
1450965
feat: add loading spinner to code block client component
pheralb Jan 28, 2025
8ab8cf3
fix: fixed animation transform direction in global styles when animat…
pheralb Jan 28, 2025
05ce7c2
chore: add ``@radix-ui/react-tabs`` dependency
pheralb Jan 29, 2025
6bf02a9
feat: add tabs & improve dialog UI components
pheralb Jan 29, 2025
324ffb2
feat: create customizer + separate playground & customizer components
pheralb Jan 29, 2025
04081a3
feat: improve article + add customizer + fixed footer accessibility
pheralb Jan 29, 2025
b4f3d5c
fix: separate ``ToC`` & ``tocMenu`` UI components
pheralb Jan 29, 2025
5dce59d
chore: update release workflow
pheralb Jan 29, 2025
4c6e06e
feat: reorder tab content in customizer
pheralb Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 📦 Check
name: ⚙️ Check

on:
push:
Expand All @@ -13,7 +13,8 @@ on:
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
test:
vitest:
name: 🧪 Vitest
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand All @@ -24,11 +25,10 @@ jobs:
with:
node-version: 20

- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: Install dependencies
Expand All @@ -37,7 +37,32 @@ jobs:
- name: Vitest - Library
run: pnpm test

lint:
name: 🔎 Eslint
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
run_install: false

- name: Install dependencies
run: pnpm install

- name: Eslint
run: pnpm lint

build:
name: 🛫 Build Website & Library
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand All @@ -48,11 +73,10 @@ jobs:
with:
node-version: 20

- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: Install dependencies
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: 📦 Release
name: 🚀 Release

on:
workflow_dispatch:
release:
types: [published]
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
name: 🧑‍🚀 Publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand All @@ -23,11 +23,10 @@ jobs:
with:
node-version: 20

- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: Get pnpm store directory
Expand All @@ -36,7 +35,7 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
Expand Down
34 changes: 27 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Astro
.astro

# Dependencies
node_modules
.pnp
.pnp.js
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# Local env files
.env
Expand Down Expand Up @@ -34,6 +34,22 @@ dist
# Remix
/.cache

# Next.js
/.next/
/out/

# Content Collections
.content-collections

# Astro
.astro

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# Debug
npm-debug.log*
yarn-debug.log*
Expand All @@ -42,3 +58,7 @@ yarn-error.log*
# Misc
.DS_Store
*.pem

# typescript
*.tsbuildinfo
next-env.d.ts
7 changes: 6 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"recommendations": ["astro-build.astro-vscode"],
"recommendations": [
"astro-build.astro-vscode",
"unifiedjs.vscode-mdx",
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode"
],
"unwantedRecommendations": []
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"prettier.documentSelectors": ["**/*.astro"],
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.workingDirectories": [
Expand Down
34 changes: 0 additions & 34 deletions docs/astro.config.ts

This file was deleted.

44 changes: 0 additions & 44 deletions docs/package.json

This file was deleted.

Binary file removed docs/public/fonts/GeistMonoVF.woff2
Binary file not shown.
Binary file removed docs/public/fonts/GeistVF.woff2
Binary file not shown.
Binary file removed docs/public/images/og_image_2_white.jpg
Binary file not shown.
Binary file removed docs/public/images/og_image_white.jpg
Binary file not shown.
4 changes: 0 additions & 4 deletions docs/src/components/examples/examples.types.ts

This file was deleted.

Loading