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

feat: modal and toast improvements #7

Merged
merged 36 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e6b7a0d
feat: vue soner added
anwarulislam Mar 4, 2024
2fca127
feat: wrapper function added for soner
anwarulislam Mar 5, 2024
13cac11
chore: initial impl
AndrewBastin Mar 18, 2024
9bca7b6
feat: simple and input modal story added
anwarulislam Mar 19, 2024
2bdf26a
feat: legacy toast support
anwarulislam Apr 8, 2024
446211e
chore: rich colors for toast
anwarulislam Apr 15, 2024
dabdda7
feat: legacy modal story
anwarulislam Apr 18, 2024
af6c662
chore: fixes spelling mistake
anwarulislam Apr 22, 2024
e06ae02
feat: modal wrapper added
anwarulislam Apr 25, 2024
b5865b1
feat: modal examples added
anwarulislam Apr 25, 2024
eb13d3a
chore: removed bracket
anwarulislam Apr 25, 2024
7ae8907
feat: improve example
anwarulislam Apr 25, 2024
4836228
feat: nested modal with props
anwarulislam Apr 25, 2024
4c2c59e
chore: update modals export
anwarulislam Apr 25, 2024
391e318
chore: modal props warning issue updated
anwarulislam Apr 27, 2024
0519d6a
feat: legacy toast action support
anwarulislam May 2, 2024
0d16940
chore: toast types updated
anwarulislam May 2, 2024
03e4c16
chore: minor improvements across modal and toast related files
JoelJacobStephen May 3, 2024
51f8560
chore: legacy toast type
anwarulislam May 3, 2024
17475f4
chore: toast ui
anwarulislam May 4, 2024
29fb244
chore: toast type improved
anwarulislam May 4, 2024
c3e763a
chore: refactor toast module
anwarulislam May 6, 2024
4a2ff3c
chore: export naming consistency
anwarulislam May 6, 2024
2915cb9
chore: separated legacy toast
anwarulislam May 6, 2024
fd9de85
chore: bump vue-sonner to 1.1.2
AndrewBastin May 6, 2024
6ff01fd
chore: make toast dismissal work programmatically
AndrewBastin May 6, 2024
3b96ffd
chore: export improvements
anwarulislam May 7, 2024
a965ad3
fix: import legacy toast
anwarulislam May 7, 2024
4ba3cfd
chore: theme.css for default styling
anwarulislam May 8, 2024
b74aae1
chore: change histoire.scss to theme.scss
anwarulislam May 8, 2024
f6ebe3b
chore: update README
anwarulislam May 8, 2024
c8c9336
chore: legacy toast styling
anwarulislam May 8, 2024
d8ad010
chore: made legacy-toast deprecated
anwarulislam May 14, 2024
4831dd4
feat: vue-sonner replaced with @hoppscotch/vue-sonner
anwarulislam Jun 3, 2024
65f9716
fix: vue-sonner type issue fixed
anwarulislam Jun 5, 2024
063daeb
feat: new modal added as beta
anwarulislam Jun 25, 2024
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ import App from "./App.vue"
// Import the library
import { plugin as HoppUI } from "@hoppscotch/ui"

// Import theme styles for default styling (optional)
import "@hoppscotch/ui/themes.css"

// Import the styles
import "@hoppscotch/ui/style.css"

Expand Down
4 changes: 4 additions & 0 deletions histoire.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ export default defineConfig({
setupFile: "histoire.setup.ts",
plugins: [HstVue()],
viteIgnorePlugins: ["vite:dts"],
viteNodeInlineDeps: [
/vue-promise-modals/,
/@boringer-avatars\/vue3/
]
})
13 changes: 11 additions & 2 deletions histoire.setup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import "./src/assets/scss/histoire.scss"
import { defineSetupVue3 } from "@histoire/plugin-vue"
import { plugin } from "vue-promise-modals"

import GlobalWrapper from "./src/GlobalWrapper.vue"

import "./src/assets/scss/themes.scss"
import "./src/assets/scss/styles.scss"

import "@fontsource-variable/inter"
import "@fontsource-variable/material-symbols-rounded"
import "@fontsource-variable/roboto-mono"

export function setupVue3() {}
export const setupVue3 = defineSetupVue3(({ app, addWrapper }) => {
app.use(plugin, {})
addWrapper(GlobalWrapper)
})
20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hoppscotch/ui",
"version": "0.1.4",
"version": "0.2.0",
"license": "MIT",
"description": "Hoppscotch UI",
"author": "Hoppscotch (support@hoppscotch.io)",
Expand All @@ -18,9 +18,10 @@
"hoppscotch api"
],
"scripts": {
"dev": "histoire dev",
"dev": "histoire dev --port 6006",
"watch": "vite build --watch",
"build": "vite build",
"build": "vite build && npm run build:css",
"build:css": "sass src/assets/scss/themes.scss dist/themes.css --no-source-map",
"story:build": "histoire build",
"story:preview": "histoire preview",
"prepublish": "pnpm run build"
Expand All @@ -33,19 +34,22 @@
"@fontsource-variable/inter": "^5.0.5",
"@fontsource-variable/material-symbols-rounded": "^5.0.5",
"@fontsource-variable/roboto-mono": "^5.0.6",
"@hoppscotch/vue-sonner": "^1.2.2",
"@hoppscotch/vue-toasted": "^0.1.0",
"@vitejs/plugin-legacy": "^2.3.0",
"@vueuse/core": "^8.7.5",
"fp-ts": "^2.12.1",
"lodash-es": "^4.17.21",
"path": "^0.12.7",
"vite-plugin-eslint": "^1.8.1",
"vue-promise-modals": "^0.1.0",
"vue-sonner": "^1.1.2",
"vuedraggable-es": "^4.1.1"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
"@histoire/plugin-vue": "^0.12.4",
"@histoire/plugin-vue": "^0.17.14",
"@iconify-json/lucide": "^1.1.109",
"@intlify/vite-plugin-vue-i18n": "^6.0.1",
"@rushstack/eslint-patch": "^1.1.4",
Expand All @@ -62,17 +66,17 @@
"eslint": "^8.24.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.5.1",
"histoire": "^0.12.4",
"histoire": "^0.17.14",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.23",
"prettier": "^3.1.0",
"prettier-plugin-tailwindcss": "^0.5.7",
"rollup-plugin-polyfill-node": "^0.10.1",
"sass": "^1.53.0",
"sass": "^1.77.0",
"tailwindcss": "^3.3.2",
"typescript": "^4.5.4",
"unplugin-icons": "^0.16.1",
"unplugin-fonts": "^1.0.3",
"unplugin-icons": "^0.16.1",
"unplugin-vue-components": "^0.21.0",
"vite": "^3.2.3",
"vite-plugin-checker": "^0.5.1",
Expand Down Expand Up @@ -103,7 +107,7 @@
"exports": {
".": "./dist/index.js",
"./style.css": "./dist/style.css",
"./themes.scss": "./dist/themes.scss",
"./themes.css": "./dist/themes.css",
"./ui-preset": {
"import": "./dist/ui-preset.js",
"require": "./dist/ui-preset.js",
Expand Down
Loading