Skip to content

Commit

Permalink
Merge pull request #5 from wobsoriano/fixes-and-new-features
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano authored Feb 9, 2024
2 parents 082833b + adec3c0 commit 697cf05
Show file tree
Hide file tree
Showing 13 changed files with 1,501 additions and 1,001 deletions.
16 changes: 16 additions & 0 deletions dev/components/Other/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ export function Other(props: {
props.setRichColors(true)
},
},
{
name: 'Rich Colors Info',
snippet: 'toast.info(\'Info\')',
action: () => {
toast.info('Be at the area 10 minutes before the event time')
props.setRichColors(true)
},
},
{
name: 'Rich Colors Warning',
snippet: 'toast.warning(\'Warning\')',
action: () => {
toast.warning('Event start time cannot be earlier than 8am')
props.setRichColors(true)
},
},
{
name: 'Rich Colors Error',
snippet: 'toast.error(\'Event has not been created\')',
Expand Down
10 changes: 10 additions & 0 deletions dev/components/Types/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ const allTypes = [
snippet: 'toast.success(\'Event has been created\')',
action: () => toast.success('Event has been created'),
},
{
name: 'Info',
snippet: 'toast.info(\'Event will be created\')',
action: () => toast.info('Event will be created'),
},
{
name: 'Warning',
snippet: 'toast.warning(\'Event has warnings\')',
action: () => toast.warning('Event has warnings'),
},
{
name: 'Error',
snippet: 'toast.error(\'Event has not been created\')',
Expand Down
5 changes: 3 additions & 2 deletions dev/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"types": ["vite/client"],
"paths": {
"src": ["../src/*"]
}
},
"types": ["vite/client"]
// "baseUrl": "."
},
"exclude": ["node_modules", "dist"]
}
10 changes: 5 additions & 5 deletions dev/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'node:path'
import { URL, fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
import solidPlugin from 'vite-plugin-solid'

Expand All @@ -24,14 +24,14 @@ export default defineConfig({
},
],
server: {
port: 4173,
port: 3000,
},
build: {
target: 'esnext',
},
resolve: {
alias: {
src: path.resolve(__dirname, '../src'),
},
alias: [
{ find: 'src/', replacement: fileURLToPath(new URL('../src', import.meta.url)) },
],
},
})
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.2.2",
"private": false,
"packageManager": "pnpm@8.6.5",
"packageManager": "pnpm@8.15.1",
"description": "An opinionated toast component for Solid.",
"author": "Robert Soriano <sorianorobertc@gmail.com>",
"license": "MIT",
Expand Down Expand Up @@ -59,23 +59,24 @@
"solid-js": "^1.6.0"
},
"devDependencies": {
"@antfu/eslint-config-ts": "^0.39.6",
"@playwright/test": "^1.35.1",
"bumpp": "^9.1.1",
"concurrently": "^8.2.0",
"@antfu/eslint-config-ts": "^0.43.1",
"@playwright/test": "^1.41.2",
"@types/node": "^20.11.17",
"bumpp": "^9.3.0",
"concurrently": "^8.2.2",
"copy-to-clipboard": "^3.3.3",
"esbuild": "^0.19.5",
"esbuild": "^0.20.0",
"esbuild-plugin-solid": "^0.5.0",
"eslint": "^8.44.0",
"eslint-plugin-solid": "^0.12.1",
"highlight.js": "^11.8.0",
"jsdom": "^22.1.0",
"solid-js": "^1.8.7",
"eslint": "^8.56.0",
"eslint-plugin-solid": "^0.13.1",
"highlight.js": "^11.9.0",
"jsdom": "^24.0.0",
"solid-js": "^1.8.14",
"tsup": "^8.0.1",
"tsup-preset-solid": "^2.2.0",
"typescript": "^5.1.6",
"vite": "^5.0.10",
"vite-plugin-solid": "^2.8.0"
"typescript": "^5.3.3",
"vite": "^5.1.1",
"vite-plugin-solid": "^2.9.1"
},
"eslintConfig": {
"plugins": [
Expand Down
Loading

0 comments on commit 697cf05

Please sign in to comment.