@isoftdata/svelte-button
Advanced tools
@@ -9,3 +9,3 @@ <script lang="ts"> | ||
| type IconProps = ComponentProps<Icon> | ||
| type IconProps = ComponentProps<typeof Icon> | ||
@@ -12,0 +12,0 @@ interface Props extends Omit<HTMLButtonAttributes & HTMLAnchorAttributes, 'class' | 'color' | 'disabled' | 'type' | keyof AriaAttributes | `bind:${string}` | `on:${string}`> { |
@@ -6,3 +6,3 @@ import type { ComponentProps, Snippet } from 'svelte'; | ||
| import type { AriaAttributes, ClassValue, HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements'; | ||
| type IconProps = ComponentProps<Icon>; | ||
| type IconProps = ComponentProps<typeof Icon>; | ||
| interface Props extends Omit<HTMLButtonAttributes & HTMLAnchorAttributes, 'class' | 'color' | 'disabled' | 'type' | keyof AriaAttributes | `bind:${string}` | `on:${string}`> { | ||
@@ -9,0 +9,0 @@ button?: HTMLButtonElement | HTMLAnchorElement | undefined; |
+61
-59
| { | ||
| "name": "@isoftdata/svelte-button", | ||
| "version": "2.1.0", | ||
| "scripts": { | ||
| "dev": "vite dev", | ||
| "build": "vite build && npm run package", | ||
| "preview": "vite preview", | ||
| "package": "svelte-kit sync && svelte-package && publint", | ||
| "prepublishOnly": "npm run package", | ||
| "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
| "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
| "lint": "prettier --plugin-search-dir . --check . && eslint .", | ||
| "format": "prettier --plugin-search-dir . --write ." | ||
| }, | ||
| "prettier": "@isoftdata/prettier-config", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./dist/index.d.ts", | ||
| "svelte": "./dist/index.js" | ||
| } | ||
| }, | ||
| "files": [ | ||
| "dist", | ||
| "!dist/**/*.test.*", | ||
| "!dist/**/*.spec.*" | ||
| ], | ||
| "peerDependencies": { | ||
| "svelte": "^5.22.5" | ||
| }, | ||
| "devDependencies": { | ||
| "@fortawesome/fontawesome-common-types": "^6.4.2", | ||
| "@isoftdata/prettier-config": "^1.0.3", | ||
| "@isoftdata/svelte-bootstrap-version-switcher": "^1.0.3", | ||
| "@sveltejs/adapter-auto": "^4.0.0", | ||
| "@sveltejs/kit": "^2.5.27", | ||
| "@sveltejs/package": "^2.3.7", | ||
| "@sveltejs/vite-plugin-svelte": "^5.0.3", | ||
| "@typescript-eslint/eslint-plugin": "^5.45.0", | ||
| "@typescript-eslint/parser": "^5.45.0", | ||
| "eslint": "^8.28.0", | ||
| "eslint-config-prettier": "^8.5.0", | ||
| "eslint-plugin-svelte": "^2.45.1", | ||
| "prettier": "^3.1.0", | ||
| "prettier-plugin-svelte": "^3.2.6", | ||
| "publint": "^0.1.9", | ||
| "svelte": "^5.22.5", | ||
| "svelte-check": "^4.0.0", | ||
| "tslib": "^2.4.1", | ||
| "type-fest": "^4.39.1", | ||
| "typescript": "^5.5.0", | ||
| "vite": "^6.2.0" | ||
| }, | ||
| "svelte": "./dist/index.js", | ||
| "types": "./dist/index.d.ts", | ||
| "type": "module", | ||
| "dependencies": { | ||
| "@isoftdata/svelte-icon": "^1.6.0", | ||
| "@isoftdata/utility-bootstrap": "^2.2.0" | ||
| } | ||
| } | ||
| "name": "@isoftdata/svelte-button", | ||
| "version": "2.1.1", | ||
| "prettier": "@isoftdata/prettier-config", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./dist/index.d.ts", | ||
| "svelte": "./dist/index.js" | ||
| } | ||
| }, | ||
| "files": [ | ||
| "dist", | ||
| "!dist/**/*.test.*", | ||
| "!dist/**/*.spec.*" | ||
| ], | ||
| "peerDependencies": { | ||
| "svelte": "^5.22.5" | ||
| }, | ||
| "devDependencies": { | ||
| "@fortawesome/fontawesome-common-types": "^6.4.2", | ||
| "@isoftdata/prettier-config": "^1.0.3", | ||
| "@isoftdata/svelte-bootstrap-version-switcher": "^1.0.3", | ||
| "@sveltejs/adapter-auto": "^4.0.0", | ||
| "@sveltejs/kit": "^2.5.27", | ||
| "@sveltejs/package": "^2.3.7", | ||
| "@sveltejs/vite-plugin-svelte": "^5.0.3", | ||
| "@typescript-eslint/eslint-plugin": "^5.45.0", | ||
| "@typescript-eslint/parser": "^5.45.0", | ||
| "eslint": "^8.28.0", | ||
| "eslint-config-prettier": "^8.5.0", | ||
| "eslint-plugin-svelte": "^2.45.1", | ||
| "prettier": "^3.1.0", | ||
| "prettier-plugin-svelte": "^3.2.6", | ||
| "publint": "^0.1.9", | ||
| "svelte": "^5.22.5", | ||
| "svelte-check": "^4.0.0", | ||
| "tslib": "^2.4.1", | ||
| "type-fest": "^4.39.1", | ||
| "typescript": "^5.5.0", | ||
| "vite": "^6.2.0" | ||
| }, | ||
| "svelte": "./dist/index.js", | ||
| "types": "./dist/index.d.ts", | ||
| "type": "module", | ||
| "dependencies": { | ||
| "@isoftdata/svelte-icon": "^2.0.2", | ||
| "@isoftdata/utility-bootstrap": "^2.2.0" | ||
| }, | ||
| "engines": { | ||
| "pnpm": "10.x" | ||
| }, | ||
| "scripts": { | ||
| "dev": "vite dev", | ||
| "build": "vite build && npm run package", | ||
| "preview": "vite preview", | ||
| "package": "svelte-kit sync && svelte-package && publint", | ||
| "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
| "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
| "lint": "prettier --plugin-search-dir . --check . && eslint .", | ||
| "format": "prettier --plugin-search-dir . --write ." | ||
| } | ||
| } |
+1
-1
@@ -29,3 +29,3 @@ # Svelte Button | ||
| | `href` | `string \| null` | The URL to link to when the button is clicked. | `null` | | ||
| | `icon` | `IconName \| ComponentProps<Icon>` | The name of a FontAwesome icon, or an object of [Icon component](https://github.com/ISoft-Data-Systems/svelte-component-icon) props. | `{ class: "", color: null, style: null, prefix: "fas", fixedWidth: true, icon: null }` | | ||
| | `icon` | `IconName \| ComponentProps<typeof Icon>` | The name of a FontAwesome icon, or an object of [Icon component](https://github.com/ISoft-Data-Systems/svelte-component-icon) props. | `{ class: "", color: null, style: null, prefix: "fas", fixedWidth: true, icon: null }` | | ||
| | `id` | `string \| null` | The ID of the button. | `null` | | ||
@@ -32,0 +32,0 @@ | `outline` | `boolean` | Whether the button is outlined. | `false` | |
9758
3.42%