@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/README.md CHANGED
@@ -33,52 +33,9 @@
33
33
 
34
34
  A React component library built by the Douglas Neuroinformatics Platform (DNP) using [shadcn/ui](https://github.com/shadcn-ui/ui) with [React](https://react.dev/) and [TailwindCSS](https://tailwindcss.com/). Although primarily intended for internal use in our platforms, it is designed as a generic implementation.
35
35
 
36
- ## Installation
36
+ ## Documentation
37
37
 
38
- ```sh
39
- pnpm install @douglasneuroinformatics/libui
40
- ```
41
-
42
- ## Usage
43
-
44
- **globals.css**
45
-
46
- ```css
47
- @import '@douglasneuroinformatics/libui/tailwind/globals.css';
48
-
49
- // adjust as required
50
- @source "../node_modules/@douglasneuroinformatics/libui";
51
- ```
52
-
53
- **i18n.ts**
54
-
55
- ```ts
56
- import { init } from '@douglasneuroinformatics/libui/i18n';
57
-
58
- import common from './common.json';
59
-
60
- declare module '@douglasneuroinformatics/libui/i18n' {
61
- export namespace UserConfig {
62
- export interface LanguageOptions {
63
- en: true;
64
- es: true;
65
- fr: true;
66
- }
67
- export interface Translations {
68
- common: typeof common;
69
- }
70
- }
71
- }
72
-
73
- init({ translations: { common } });
74
- ```
75
-
76
- **main.tsx**
77
-
78
- ```js
79
- import './globals.css';
80
- import './i18n';
81
- ```
38
+ For detailed installation, configuration, and usage instructions, please refer to [the documentation](https://douglasneuroinformatics.github.io/libui).
82
39
 
83
40
  ## Contributing
84
41
 
@@ -336,17 +336,17 @@ var buttonVariants = cva(
336
336
  variants: {
337
337
  size: {
338
338
  icon: "p-1.5 aspect-square",
339
- lg: "h-10 rounded-md px-8",
339
+ lg: "h-10 rounded-md px-8 text-base",
340
340
  md: "h-9 px-4 py-2",
341
341
  sm: "h-8 rounded-md px-3 text-xs"
342
342
  },
343
343
  variant: {
344
- danger: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
344
+ danger: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/70",
345
345
  ghost: "hover:bg-accent hover:text-accent-foreground",
346
346
  link: "text-primary underline-offset-4 hover:underline",
347
347
  outline: "border border-input bg-inherit shadow-xs",
348
348
  primary: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
349
- secondary: "bg-secondary border text-secondary-foreground shadow-xs hover:bg-secondary/80"
349
+ secondary: "bg-secondary border text-secondary-foreground shadow-xs hover:bg-secondary/10"
350
350
  }
351
351
  }
352
352
  }