@douglasneuroinformatics/libui 4.0.0 → 4.0.2

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@douglasneuroinformatics/libui",
3
3
  "type": "module",
4
- "version": "4.0.0",
4
+ "version": "4.0.2",
5
5
  "packageManager": "pnpm@10.7.1",
6
6
  "description": "Generic UI components for DNP projects, built using React and Tailwind CSS",
7
7
  "author": "Joshua Unrau",
@@ -115,6 +115,7 @@
115
115
  "@douglasneuroinformatics/semantic-release": "^0.2.1",
116
116
  "@douglasneuroinformatics/tsconfig": "^1.0.3",
117
117
  "@faker-js/faker": "^9.6.0",
118
+ "@storybook/addon-docs": "^8.6.11",
118
119
  "@storybook/addon-essentials": "^8.6.11",
119
120
  "@storybook/addon-interactions": "^8.6.11",
120
121
  "@storybook/addon-links": "^8.6.11",
@@ -53,6 +53,14 @@ export const Icon: Story = {
53
53
  }
54
54
  };
55
55
 
56
+ export const Large: Story = {
57
+ args: {
58
+ children: 'Large Button',
59
+ size: 'lg',
60
+ variant: 'primary'
61
+ }
62
+ };
63
+
56
64
  export const AsChild: Story = {
57
65
  args: {
58
66
  asChild: true,
@@ -23,17 +23,17 @@ export const buttonVariants = cva(
23
23
  variants: {
24
24
  size: {
25
25
  icon: 'p-1.5 aspect-square',
26
- lg: 'h-10 rounded-md px-8',
26
+ lg: 'h-10 rounded-md px-8 text-base',
27
27
  md: 'h-9 px-4 py-2',
28
28
  sm: 'h-8 rounded-md px-3 text-xs'
29
29
  },
30
30
  variant: {
31
- danger: 'bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90',
31
+ danger: 'bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/70',
32
32
  ghost: 'hover:bg-accent hover:text-accent-foreground',
33
33
  link: 'text-primary underline-offset-4 hover:underline',
34
34
  outline: 'border border-input bg-inherit shadow-xs',
35
35
  primary: 'bg-primary text-primary-foreground shadow-sm hover:bg-primary/90',
36
- secondary: 'bg-secondary border text-secondary-foreground shadow-xs hover:bg-secondary/80'
36
+ secondary: 'bg-secondary border text-secondary-foreground shadow-xs hover:bg-secondary/10'
37
37
  }
38
38
  }
39
39
  }