@saasmakers/ui 0.1.40 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ const props = withDefaults(defineProps<BaseButton>(), {
15
15
  light: false,
16
16
  loading: false,
17
17
  reverse: false,
18
+ rounded: 'md',
18
19
  size: 'base',
19
20
  text: '',
20
21
  to: undefined,
@@ -62,6 +63,13 @@ function onClick(event: MouseEvent) {
62
63
  'bg-transparent shadow-none': light,
63
64
  'shadow-sm': !light,
64
65
 
66
+ 'rounded-none': rounded === 'none' && !circular,
67
+ 'rounded-sm': rounded === 'sm' && !circular,
68
+ 'rounded': rounded === 'base' && !circular,
69
+ 'rounded-md': rounded === 'md' && !circular,
70
+ 'rounded-lg': rounded === 'lg' && !circular,
71
+ 'rounded-full': rounded === 'full' || circular,
72
+
65
73
  'h-6 w-6': size === '2xs' && circular,
66
74
  'h-8 w-8': size === 'xs' && circular && !confirming,
67
75
  'h-10 w-10': size === 'sm' && circular && !confirming,
@@ -50,12 +50,15 @@ export interface BaseButton {
50
50
  light?: boolean
51
51
  loading?: boolean
52
52
  reverse?: boolean
53
+ rounded?: BaseButtonRounded
53
54
  size?: BaseButtonSize
54
55
  text?: BaseTextText
55
56
  to?: RouteLocationNamedI18n
56
57
  type?: BaseButtonType
57
58
  }
58
59
 
60
+ type BaseButtonRounded = 'base' | 'full' | 'lg' | 'md' | 'none' | 'sm' | 'xl'
61
+
59
62
  export type BaseButtonSize = '2xs' | 'base' | 'lg' | 'sm' | 'xl' | 'xs'
60
63
 
61
64
  export type BaseButtonType = 'button' | 'reset' | 'submit'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
3
  "type": "module",
4
- "version": "0.1.40",
4
+ "version": "0.1.41",
5
5
  "private": false,
6
6
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
7
7
  "license": "MIT",