@fiscozen/button
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -1,13 +0,9 @@ | ||
import { IconButtonVariant, ButtonSize } from './types'; | ||
import { IconVariant } from '@fiscozen/icons'; | ||
import { IconButtonVariant, IconButtonSize } from './types'; | ||
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{ | ||
/** | ||
* The label of the button | ||
*/ | ||
label?: string | undefined; | ||
/** | ||
* The tooltip of the button will be shown on hover | ||
*/ | ||
tooltip?: string | undefined; | ||
tooltip: string; | ||
/** | ||
@@ -20,7 +16,7 @@ * primary or secondary button | ||
*/ | ||
size?: ButtonSize | undefined; | ||
size?: IconButtonSize | undefined; | ||
/** | ||
* whether action is enabled or not | ||
*/ | ||
disabled?: boolean | undefined; | ||
disabled: boolean; | ||
/** | ||
@@ -35,6 +31,2 @@ * Icon to be displayed. Use fontawesome search here https://fontawesome.com/v6/icons | ||
iconVariant?: IconVariant | undefined; | ||
/** | ||
* Positioning of the icon | ||
*/ | ||
iconPosition?: "before" | "after" | undefined; | ||
}>, { | ||
@@ -45,14 +37,7 @@ variant: string; | ||
iconVariant: string; | ||
iconPosition: string; | ||
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { | ||
click: (...args: any[]) => void; | ||
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{ | ||
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{ | ||
/** | ||
* The label of the button | ||
*/ | ||
label?: string | undefined; | ||
/** | ||
* The tooltip of the button will be shown on hover | ||
*/ | ||
tooltip?: string | undefined; | ||
tooltip: string; | ||
/** | ||
@@ -65,7 +50,7 @@ * primary or secondary button | ||
*/ | ||
size?: ButtonSize | undefined; | ||
size?: IconButtonSize | undefined; | ||
/** | ||
* whether action is enabled or not | ||
*/ | ||
disabled?: boolean | undefined; | ||
disabled: boolean; | ||
/** | ||
@@ -80,6 +65,2 @@ * Icon to be displayed. Use fontawesome search here https://fontawesome.com/v6/icons | ||
iconVariant?: IconVariant | undefined; | ||
/** | ||
* Positioning of the icon | ||
*/ | ||
iconPosition?: "before" | "after" | undefined; | ||
}>, { | ||
@@ -90,11 +71,7 @@ variant: string; | ||
iconVariant: string; | ||
iconPosition: string; | ||
}>>> & { | ||
onClick?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
size: ButtonSize; | ||
}>>>, { | ||
size: IconButtonSize; | ||
variant: IconButtonVariant; | ||
disabled: boolean; | ||
iconVariant: IconVariant; | ||
iconPosition: 'before' | 'after'; | ||
}, {}>; | ||
@@ -101,0 +78,0 @@ export default _default; |
export { default as FzIconButton } from './FzIconButton.vue'; | ||
export { default as FzButton } from './FzButton.vue'; | ||
export { default as FzButtonGroup } from './FzButtonGroup.vue'; | ||
export * from './types'; | ||
export type { IconButtonVariant } from './types'; |
@@ -1,4 +0,2 @@ | ||
export type CommonButtonVariant = 'primary' | 'secondary' | 'invisible'; | ||
export type IconButtonVariant = CommonButtonVariant | 'notification'; | ||
export type ButtonVariant = CommonButtonVariant | 'danger' | 'success'; | ||
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg'; | ||
export type IconButtonVariant = 'primary' | 'secondary' | 'notification' | 'invisible'; | ||
export type IconButtonSize = 'sm' | 'md' | 'lg'; |
{ | ||
"name": "@fiscozen/button", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Design System Icon Button Component", | ||
@@ -12,3 +12,3 @@ "main": "src/index.ts", | ||
"vue": "^3.4.13", | ||
"@fiscozen/icons": "^0.1.13" | ||
"@fiscozen/icons": "^0.1.15" | ||
}, | ||
@@ -31,5 +31,5 @@ "devDependencies": { | ||
"vue-tsc": "^1.8.25", | ||
"@fiscozen/tsconfig": "^0.1.0", | ||
"@fiscozen/prettier-config": "^0.1.0", | ||
"@fiscozen/eslint-config": "^0.1.0", | ||
"@fiscozen/prettier-config": "^0.1.0" | ||
"@fiscozen/tsconfig": "^0.1.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "license": "ISC", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
13
249503
26
4969