@douglasneuroinformatics/libui 3.9.0 → 4.0.0

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.
Files changed (106) hide show
  1. package/README.md +7 -9
  2. package/dist/{chunk-IYOZHDZL.js → chunk-655XRTXX.js} +1 -1
  3. package/dist/{chunk-IYOZHDZL.js.map → chunk-655XRTXX.js.map} +1 -1
  4. package/dist/{chunk-VJSOLDCS.js → chunk-HCQE34RL.js} +1 -1
  5. package/dist/chunk-HCQE34RL.js.map +1 -0
  6. package/dist/{chunk-JTEI2ZYI.js → chunk-KI6BSSS6.js} +3 -4
  7. package/dist/chunk-KI6BSSS6.js.map +1 -0
  8. package/dist/components.d.ts +77 -29
  9. package/dist/components.js +67 -69
  10. package/dist/components.js.map +1 -1
  11. package/dist/hooks.d.ts +1 -1
  12. package/dist/hooks.js +3 -3
  13. package/dist/i18n.d.ts +2 -2
  14. package/dist/i18n.js +1 -1
  15. package/dist/tailwind/globals.css +181 -39
  16. package/dist/{types-CU3FS63U.d.ts → types-CMuti1SJ.d.ts} +2 -2
  17. package/dist/utils.js +1 -1
  18. package/package.json +87 -82
  19. package/src/components/ActionDropdown/ActionDropdown.tsx +1 -1
  20. package/src/components/ArrowToggle/ArrowToggle.spec.tsx +3 -1
  21. package/src/components/ArrowToggle/ArrowToggle.tsx +3 -1
  22. package/src/components/Badge/Badge.tsx +7 -5
  23. package/src/components/Button/Button.tsx +7 -6
  24. package/src/components/Card/Card.tsx +3 -3
  25. package/src/components/Chart/ChartContainer.tsx +1 -1
  26. package/src/components/Checkbox/Checkbox.tsx +1 -1
  27. package/src/components/ClientTable/ClientTable.stories.tsx +12 -9
  28. package/src/components/ClientTable/ClientTable.tsx +3 -3
  29. package/src/components/Collapsible/Collapsible.stories.tsx +3 -3
  30. package/src/components/Command/CommandInput.tsx +1 -1
  31. package/src/components/Command/CommandItem.tsx +1 -1
  32. package/src/components/ContextMenu/ContextMenuCheckboxItem.tsx +1 -1
  33. package/src/components/ContextMenu/ContextMenuItem.tsx +1 -1
  34. package/src/components/ContextMenu/ContextMenuRadioItem.tsx +1 -1
  35. package/src/components/ContextMenu/ContextMenuSubTrigger.tsx +1 -1
  36. package/src/components/CopyButton/CopyButton.tsx +3 -1
  37. package/src/components/DatePicker/DatePicker.tsx +3 -3
  38. package/src/components/Dialog/DialogContent.tsx +2 -2
  39. package/src/components/DropdownButton/DropdownButton.tsx +1 -1
  40. package/src/components/DropdownMenu/DropdownMenuCheckboxItem.tsx +1 -1
  41. package/src/components/DropdownMenu/DropdownMenuItem.tsx +1 -1
  42. package/src/components/DropdownMenu/DropdownMenuRadioItem.tsx +1 -1
  43. package/src/components/DropdownMenu/DropdownMenuSubTrigger.tsx +1 -1
  44. package/src/components/FileDropzone/FileDropzone.stories.tsx +4 -6
  45. package/src/components/FileDropzone/FileDropzone.tsx +2 -1
  46. package/src/components/Form/BooleanField/BooleanField.spec.tsx +3 -1
  47. package/src/components/Form/BooleanField/BooleanField.tsx +5 -2
  48. package/src/components/Form/DateField/DateField.tsx +2 -1
  49. package/src/components/Form/Form.stories.tsx +15 -15
  50. package/src/components/Form/NumberField/NumberField.tsx +7 -3
  51. package/src/components/Form/NumberField/NumberFieldSelect.tsx +2 -1
  52. package/src/components/Form/RecordArrayField.tsx +1 -3
  53. package/src/components/Form/ScalarField.tsx +10 -5
  54. package/src/components/Form/StaticField.tsx +2 -1
  55. package/src/components/Form/StringField/StringField.tsx +9 -4
  56. package/src/components/Form/StringField/StringFieldPassword.tsx +5 -5
  57. package/src/components/Form/StringField/StringFieldSelect.tsx +2 -1
  58. package/src/components/HoverCard/HoverCardContent.tsx +1 -1
  59. package/src/components/Input/Input.tsx +1 -1
  60. package/src/components/Label/Label.tsx +2 -1
  61. package/src/components/LanguageToggle/LanguageToggle.tsx +3 -1
  62. package/src/components/LineGraph/LineGraph.tsx +3 -2
  63. package/src/components/ListboxDropdown/ListboxDropdown.stories.tsx +4 -4
  64. package/src/components/ListboxDropdown/ListboxDropdown.tsx +2 -1
  65. package/src/components/MenuBar/MenuBarCheckboxItem.tsx +1 -1
  66. package/src/components/MenuBar/MenuBarItem.tsx +1 -1
  67. package/src/components/MenuBar/MenuBarRadioItem.tsx +1 -1
  68. package/src/components/MenuBar/MenuBarRoot.tsx +1 -1
  69. package/src/components/MenuBar/MenuBarSubTrigger.tsx +1 -1
  70. package/src/components/MenuBar/MenuBarTrigger.tsx +1 -1
  71. package/src/components/NotificationHub/NotificationHub.tsx +3 -3
  72. package/src/components/NotificationHub/NotificationIcon.tsx +1 -1
  73. package/src/components/Pagination/PaginationLink.tsx +3 -1
  74. package/src/components/Pagination/PaginationPrevious.tsx +3 -1
  75. package/src/components/Popover/PopoverContent.tsx +1 -1
  76. package/src/components/RadioGroup/RadioGroup.spec.tsx +3 -1
  77. package/src/components/RadioGroup/RadioGroupItem.tsx +1 -1
  78. package/src/components/Resizable/Resizable.tsx +7 -3
  79. package/src/components/Resizable/ResizableHandle.tsx +2 -2
  80. package/src/components/SearchBar/SearchBar.tsx +3 -1
  81. package/src/components/Select/SelectItem.tsx +1 -1
  82. package/src/components/Sheet/SheetContent.tsx +3 -2
  83. package/src/components/Slider/Slider.tsx +4 -4
  84. package/src/components/StatisticCard/StatisticCard.tsx +2 -1
  85. package/src/components/Switch/Switch.tsx +2 -2
  86. package/src/components/Tabs/TabsContent.tsx +1 -1
  87. package/src/components/Tabs/TabsTrigger.tsx +1 -1
  88. package/src/components/TextArea/TextArea.tsx +1 -1
  89. package/src/components/ThemeToggle/ThemeToggle.tsx +3 -1
  90. package/src/components/Tooltip/TooltipTrigger.tsx +3 -1
  91. package/src/hooks/useEventListener/useEventListener.ts +2 -1
  92. package/src/hooks/useOnClickOutside/useOnClickOutside.ts +1 -1
  93. package/src/hooks/useStorage/useLocalStorage.ts +3 -1
  94. package/src/hooks/useStorage/useSessionStorage.ts +3 -1
  95. package/src/hooks/useTheme/useTheme.test.ts +14 -11
  96. package/src/i18n/internal.ts +1 -1
  97. package/src/i18n/types.ts +2 -2
  98. package/src/tailwind/globals.css +181 -39
  99. package/src/utils/index.ts +2 -1
  100. package/dist/chunk-JTEI2ZYI.js.map +0 -1
  101. package/dist/chunk-VJSOLDCS.js.map +0 -1
  102. package/dist/tailwind/config.cjs +0 -178
  103. package/dist/tailwind/config.cjs.map +0 -1
  104. package/dist/tailwind/config.d.cts +0 -16
  105. package/src/tailwind/config.cts +0 -174
  106. package/tailwind.config.cjs +0 -3
@@ -1,67 +1,201 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
1
+ @import 'tailwindcss';
2
+ @import 'tw-animate-css';
3
+
4
+ @custom-variant dark (&:is([data-mode="dark"] *));
5
+
6
+ @theme {
7
+ --animate-accordion-down: accordion-down 0.2s ease-out;
8
+ --animate-accordion-up: accordion-up 0.2s ease-out;
9
+ --animate-spinner: spinner-spin 1.7s infinite ease, round 1.7s infinite ease;
10
+
11
+ --radius-lg: var(--radius);
12
+ --radius-md: calc(var(--radius) - 2px);
13
+ --radius-sm: calc(var(--radius) - 4px);
14
+
15
+ --color-accent: var(--accent);
16
+ --color-accent-foreground: var(--accent-foreground);
17
+
18
+ --color-background: var(--background);
19
+ --color-border: var(--border);
20
+
21
+ --color-card: var(--card);
22
+ --color-card-foreground: var(--card-foreground);
23
+
24
+ --color-destructive: var(--destructive);
25
+ --color-destructive-foreground: var(--destructive-foreground);
26
+
27
+ --color-foreground: var(--foreground);
28
+ --color-input: var(--input);
29
+
30
+ --color-muted: var(--muted);
31
+ --color-muted-foreground: var(--muted-foreground);
32
+
33
+ --color-popover: var(--popover);
34
+ --color-popover-foreground: var(--popover-foreground);
35
+
36
+ --color-primary: var(--primary);
37
+ --color-primary-foreground: var(--primary-foreground);
38
+
39
+ --color-ring: var(--ring);
40
+
41
+ --color-secondary: var(--secondary);
42
+ --color-secondary-foreground: var(--secondary-foreground);
43
+
44
+ --breakpoint-2xl: 1400px;
45
+
46
+ @keyframes accordion-down {
47
+ from {
48
+ height: 0;
49
+ }
50
+ to {
51
+ height: var(--radix-accordion-content-height);
52
+ }
53
+ }
54
+ @keyframes accordion-up {
55
+ from {
56
+ height: var(--radix-accordion-content-height);
57
+ }
58
+ to {
59
+ height: 0;
60
+ }
61
+ }
62
+ @keyframes round {
63
+ 0% {
64
+ transform: rotate(0deg);
65
+ }
66
+ 100% {
67
+ transform: rotate(360deg);
68
+ }
69
+ }
70
+ @keyframes spinner-spin {
71
+ 0%,
72
+ 5%,
73
+ 95%,
74
+ 100% {
75
+ box-shadow:
76
+ 0 -0.83em 0 -0.4em,
77
+ 0 -0.83em 0 -0.42em,
78
+ 0 -0.83em 0 -0.44em,
79
+ 0 -0.83em 0 -0.46em,
80
+ 0 -0.83em 0 -0.477em;
81
+ }
82
+ 10%,
83
+ 59% {
84
+ box-shadow:
85
+ 0 -0.83em 0 -0.4em,
86
+ -0.087em -0.825em 0 -0.42em,
87
+ -0.173em -0.812em 0 -0.44em,
88
+ -0.256em -0.789em 0 -0.46em,
89
+ -0.297em -0.775em 0 -0.477em;
90
+ }
91
+ 20% {
92
+ box-shadow:
93
+ 0 -0.83em 0 -0.4em,
94
+ -0.338em -0.758em 0 -0.42em,
95
+ -0.555em -0.617em 0 -0.44em,
96
+ -0.671em -0.488em 0 -0.46em,
97
+ -0.749em -0.34em 0 -0.477em;
98
+ }
99
+ 38% {
100
+ box-shadow:
101
+ 0 -0.83em 0 -0.4em,
102
+ -0.377em -0.74em 0 -0.42em,
103
+ -0.645em -0.522em 0 -0.44em,
104
+ -0.775em -0.297em 0 -0.46em,
105
+ -0.82em -0.09em 0 -0.477em;
106
+ }
107
+ }
108
+ }
109
+
110
+ @utility container {
111
+ margin-inline: auto;
112
+ padding-inline: 1rem;
113
+ @media (width >= theme(--breakpoint-md)) {
114
+ padding-inline: 2rem;
115
+ }
116
+ @media (width >= theme(--breakpoint-xl)) {
117
+ padding-inline: 3rem;
118
+ }
119
+ }
120
+
121
+ /*
122
+ The default border color has changed to `currentColor` in Tailwind CSS v4,
123
+ so we've added these compatibility styles to make sure everything still
124
+ looks the same as it did with Tailwind CSS v3.
125
+
126
+ If we ever want to remove these styles, we need to add an explicit border
127
+ color utility to any element that depends on these defaults.
128
+ */
129
+ @layer base {
130
+ *,
131
+ ::after,
132
+ ::before,
133
+ ::backdrop,
134
+ ::file-selector-button {
135
+ border-color: var(--color-gray-200, currentColor);
136
+ }
137
+ }
4
138
 
5
139
  @layer base {
6
140
  :root {
7
- --background: theme(colors.slate.100);
8
- --foreground: theme(colors.slate.900);
141
+ --background: var(--color-slate-100);
142
+ --foreground: var(--color-slate-900);
9
143
 
10
- --muted: theme(colors.slate.200);
11
- --muted-foreground: theme(colors.slate.700);
144
+ --muted: var(--color-slate-200);
145
+ --muted-foreground: var(--color-slate-700);
12
146
 
13
- --accent: theme(colors.slate.200);
14
- --accent-foreground: theme(colors.slate.700);
147
+ --accent: var(--color-slate-200);
148
+ --accent-foreground: var(--color-slate-700);
15
149
 
16
- --popover: theme(colors.white);
17
- --popover-foreground: theme(colors.slate.900);
150
+ --popover: var(--color-white);
151
+ --popover-foreground: var(--color-slate-900);
18
152
 
19
- --border: theme(colors.slate.300);
20
- --input: theme(colors.slate.300);
153
+ --border: var(--color-slate-300);
154
+ --input: var(--color-slate-300);
21
155
 
22
- --card: theme(colors.white);
23
- --card-foreground: theme(colors.slate.900);
156
+ --card: var(--color-white);
157
+ --card-foreground: var(--color-slate-900);
24
158
 
25
- --primary: theme(colors.slate.800);
26
- --primary-foreground: theme(colors.slate.100);
159
+ --primary: var(--color-slate-800);
160
+ --primary-foreground: var(--color-slate-100);
27
161
 
28
- --secondary: theme(colors.slate.50);
29
- --secondary-foreground: theme(colors.slate.900);
162
+ --secondary: var(--color-slate-50);
163
+ --secondary-foreground: var(--color-slate-900);
30
164
 
31
- --destructive: theme(colors.red.600);
32
- --destructive-foreground: theme(colors.white);
165
+ --destructive: var(--color-red-600);
166
+ --destructive-foreground: var(--color-white);
33
167
 
34
- --ring: theme(colors.sky.500);
168
+ --ring: var(--color-sky-500);
35
169
 
36
170
  --radius: 0.5rem;
37
171
  }
38
172
 
39
173
  [data-mode='dark'] {
40
- --background: theme(colors.slate.900);
41
- --foreground: theme(colors.slate.100);
174
+ --background: var(--color-slate-900);
175
+ --foreground: var(--color-slate-100);
42
176
 
43
- --muted: theme(colors.slate.800);
44
- --muted-foreground: theme(colors.slate.300);
177
+ --muted: var(--color-slate-800);
178
+ --muted-foreground: var(--color-slate-300);
45
179
 
46
- --accent: theme(colors.slate.800);
47
- --accent-foreground: theme(colors.slate.300);
180
+ --accent: var(--color-slate-800);
181
+ --accent-foreground: var(--color-slate-300);
48
182
 
49
- --popover: theme(colors.slate.800);
50
- --popover-foreground: theme(colors.slate.100);
183
+ --popover: var(--color-slate-800);
184
+ --popover-foreground: var(--color-slate-100);
51
185
 
52
- --border: theme(colors.slate.700);
53
- --input: theme(colors.slate.700);
186
+ --border: var(--color-slate-700);
187
+ --input: var(--color-slate-700);
54
188
 
55
- --card: theme(colors.slate.800);
56
- --card-foreground: theme(colors.slate.100);
189
+ --card: var(--color-slate-800);
190
+ --card-foreground: var(--color-slate-100);
57
191
 
58
- --primary: theme(colors.sky.700);
59
- --primary-foreground: theme(colors.slate.100);
192
+ --primary: var(--color-sky-700);
193
+ --primary-foreground: var(--color-slate-100);
60
194
 
61
- --secondary: theme(colors.slate.800);
62
- --secondary-foreground: theme(colors.slate.100);
195
+ --secondary: var(--color-slate-800);
196
+ --secondary-foreground: var(--color-slate-100);
63
197
 
64
- --ring: theme(colors.slate.800);
198
+ --ring: var(--color-slate-800);
65
199
 
66
200
  --radius: 0.5rem;
67
201
  }
@@ -80,6 +214,14 @@
80
214
  }
81
215
  }
82
216
 
217
+ @utility scrollbar-hidden {
218
+ &::-webkit-scrollbar {
219
+ display: none;
220
+ }
221
+ -ms-overflow-style: none;
222
+ scrollbar-width: none;
223
+ }
224
+
83
225
  .lucide {
84
226
  width: 16px;
85
227
  height: 16px;
@@ -1,4 +1,5 @@
1
- import { type ClassValue, clsx } from 'clsx';
1
+ import { clsx } from 'clsx';
2
+ import type { ClassValue } from 'clsx';
2
3
  import { twMerge } from 'tailwind-merge';
3
4
 
4
5
  export function cn(...inputs: ClassValue[]) {
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/hooks/useChart/useChart.ts","../src/context/ChartContext.tsx","../src/hooks/useDownload/useDownload.ts","../src/hooks/useNotificationsStore/useNotificationsStore.ts","../src/hooks/useEventCallback/useEventCallback.ts","../src/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts","../src/hooks/useEventListener/useEventListener.ts","../src/hooks/useInterval/useInterval.ts","../src/hooks/useMediaQuery/useMediaQuery.ts","../src/hooks/useOnClickOutside/useOnClickOutside.ts","../src/hooks/useStorage/useStorage.ts","../src/hooks/useStorage/useLocalStorage.ts","../src/hooks/useStorage/useSessionStorage.ts","../src/hooks/useTheme/useTheme.ts","../src/hooks/useTranslation/useTranslation.ts","../src/hooks/useWindowSize/useWindowSize.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { ChartContext } from '@/context/ChartContext';\n\nexport function useChart() {\n const context = useContext(ChartContext);\n if (!context) {\n throw new Error('useChart must be used within a <ChartContainer />');\n }\n return context;\n}\n","import { createContext } from 'react';\n\nimport type { ChartConfig } from '@/components';\n\ntype ChartContextProps = {\n config: ChartConfig;\n};\n\nexport const ChartContext = createContext<ChartContextProps | null>(null);\n","import { useEffect, useState } from 'react';\n\nimport type { Promisable } from 'type-fest';\n\nimport { useNotificationsStore } from '../useNotificationsStore';\n\ntype DownloadTextOptions = {\n blobType: 'text/csv' | 'text/plain';\n};\n\ntype DownloadBlobOptions = {\n blobType: 'application/zip' | 'image/jpeg' | 'image/png' | 'image/webp';\n};\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\ninterface DownloadFunction {\n (filename: string, data: Blob, options: DownloadBlobOptions): Promise<void>;\n (filename: string, data: () => Promisable<Blob>, options: DownloadBlobOptions): Promise<void>;\n (filename: string, data: string, options?: DownloadTextOptions): Promise<void>;\n (filename: string, data: () => Promisable<string>, options?: DownloadTextOptions): Promise<void>;\n}\n\ntype Downloadable = {\n blobType: string;\n data: Blob | string;\n filename: string;\n id: string;\n};\n\n/**\n * Used to trigger downloads of arbitrary data to the client\n * @returns A function to invoke the download\n */\nexport function useDownload(): DownloadFunction {\n const notifications = useNotificationsStore();\n const [downloads, setDownloads] = useState<Downloadable[]>([]);\n\n useEffect(() => {\n if (downloads.length) {\n const { blobType, data, filename, id } = downloads.at(-1)!;\n const anchor = document.createElement('a');\n document.body.appendChild(anchor);\n const blob = new Blob([data], { type: blobType });\n const url = URL.createObjectURL(blob);\n anchor.href = url;\n anchor.download = filename;\n anchor.click();\n URL.revokeObjectURL(url);\n anchor.remove();\n setDownloads((prevDownloads) => prevDownloads.filter((item) => item.id !== id));\n }\n }, [downloads]);\n\n return async (filename, _data, options) => {\n try {\n const data = typeof _data === 'function' ? await _data() : _data;\n if (typeof data !== 'string' && !options?.blobType) {\n throw new Error(\"argument 'blobType' must be defined when download is called with a Blob object\");\n }\n setDownloads((prevDownloads) => [\n ...prevDownloads,\n { blobType: options?.blobType ?? 'text/plain', data, filename, id: crypto.randomUUID() }\n ]);\n } catch (error) {\n const message = error instanceof Error ? error.message : 'An unknown error occurred';\n notifications.addNotification({\n message,\n title: 'Error',\n type: 'error'\n });\n }\n };\n}\n","import { create } from 'zustand';\n\nexport type NotificationInterface = {\n id: number;\n message?: string;\n title?: string;\n type: 'error' | 'info' | 'success' | 'warning';\n variant?: 'critical' | 'standard';\n};\n\nexport type NotificationsStore = {\n addNotification: (notification: Omit<NotificationInterface, 'id'>) => void;\n dismissNotification: (id: number) => void;\n notifications: NotificationInterface[];\n};\n\nexport const useNotificationsStore = create<NotificationsStore>((set) => ({\n addNotification: (notification) => {\n set((state) => ({\n notifications: [...state.notifications, { id: Date.now(), ...notification }]\n }));\n },\n dismissNotification: (id) => {\n set((state) => ({\n notifications: state.notifications.filter((notification) => notification.id !== id)\n }));\n },\n notifications: []\n}));\n","import { useCallback, useRef } from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect';\n\nexport function useEventCallback<Args extends unknown[], R>(fn: (...args: Args) => R) {\n const ref = useRef<typeof fn>(() => {\n throw new Error('Cannot call an event handler while rendering.');\n });\n\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n\n return useCallback((...args: Args) => ref.current(...args), [ref]);\n}\n","import { useEffect, useLayoutEffect } from 'react';\n\nimport { isBrowser } from '@/utils';\n\nexport const useIsomorphicLayoutEffect = isBrowser() ? useLayoutEffect : useEffect;\n","import { type RefObject, useEffect, useRef } from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect';\n\n// MediaQueryList Event based useEventListener interface\nfunction useEventListener<K extends keyof MediaQueryListEventMap>(\n eventName: K,\n handler: (event: MediaQueryListEventMap[K]) => void,\n element: RefObject<MediaQueryList>,\n options?: AddEventListenerOptions | boolean\n): void;\n\n// Window Event based useEventListener interface\nfunction useEventListener<K extends keyof WindowEventMap>(\n eventName: K,\n handler: (event: WindowEventMap[K]) => void,\n element?: undefined,\n options?: AddEventListenerOptions | boolean\n): void;\n\n// Element Event based useEventListener interface\nfunction useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = HTMLDivElement>(\n eventName: K,\n handler: (event: HTMLElementEventMap[K]) => void,\n element: RefObject<T>,\n options?: AddEventListenerOptions | boolean\n): void;\n\n// Document Event based useEventListener interface\nfunction useEventListener<K extends keyof DocumentEventMap>(\n eventName: K,\n handler: (event: DocumentEventMap[K]) => void,\n element: RefObject<Document>,\n options?: AddEventListenerOptions | boolean\n): void;\n\nfunction useEventListener<\n KW extends keyof WindowEventMap,\n KH extends keyof HTMLElementEventMap,\n KM extends keyof MediaQueryListEventMap,\n T extends HTMLElement | MediaQueryList | void = void\n>(\n eventName: KH | KM | KW,\n handler: (event: Event | HTMLElementEventMap[KH] | MediaQueryListEventMap[KM] | WindowEventMap[KW]) => void,\n element?: RefObject<T>,\n options?: AddEventListenerOptions | boolean\n) {\n // Create a ref that stores handler\n const savedHandler = useRef(handler);\n\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n\n useEffect(() => {\n // Define the listening target\n const targetElement: T | Window = element?.current ?? window;\n\n if (!(targetElement && targetElement.addEventListener)) return;\n\n // Create event listener that calls handler function stored in ref\n const listener: typeof handler = (event) => savedHandler.current(event);\n\n targetElement.addEventListener(eventName, listener, options);\n\n // Remove event listener on cleanup\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\nexport { useEventListener };\n","import { useEffect, useRef } from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect';\n\nexport function useInterval(callback: () => void, delay: null | number) {\n const savedCallback = useRef(callback);\n\n // Remember the latest callback if it changes.\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n\n // Set up the interval.\n useEffect(() => {\n // Don't schedule if no delay is specified.\n // Note: 0 is a valid value for delay.\n if (!delay && delay !== 0) {\n return;\n }\n\n const id = setInterval(() => savedCallback.current(), delay);\n\n return () => clearInterval(id);\n }, [delay]);\n}\n","import { useEffect, useState } from 'react';\n\nimport { isBrowser } from '@/utils';\n\n/**\n * Get the result of an arbitrary CSS media query\n *\n * @param query - the CSS media query\n * @returns a boolean indicating the result of the query\n * @example\n * // true if the viewport is at least 768px wide\n * const matches = useMediaQuery('(min-width: 768px)')\n */\nexport function useMediaQuery(query: string): boolean {\n const getMatches = (query: string): boolean => {\n // Prevents SSR issues\n if (isBrowser()) {\n return window.matchMedia(query).matches;\n }\n return false;\n };\n\n const [matches, setMatches] = useState<boolean>(getMatches(query));\n\n function handleChange() {\n setMatches(getMatches(query));\n }\n\n useEffect(() => {\n const matchMedia = window.matchMedia(query);\n\n // Triggered at the first client-side load and if query changes\n handleChange();\n\n matchMedia.addEventListener('change', handleChange);\n\n return () => {\n matchMedia.removeEventListener('change', handleChange);\n };\n }, [query]);\n\n return matches;\n}\n","import { type RefObject } from 'react';\n\nimport { useEventListener } from '../useEventListener';\n\ntype Handler = (event: MouseEvent) => void;\n\nexport function useOnClickOutside<T extends HTMLElement = HTMLElement>(\n ref: RefObject<T>,\n handler: Handler,\n mouseEvent: 'mousedown' | 'mouseup' = 'mousedown'\n): void {\n useEventListener(mouseEvent, (event) => {\n const el = ref.current;\n\n // Do nothing if clicking ref's element or descendent elements\n if (!el || el.contains(event.target as Node)) {\n return;\n }\n\n handler(event);\n });\n}\n","import { useCallback, useEffect, useState } from 'react';\nimport type { Dispatch, SetStateAction } from 'react';\n\nimport { isBrowser } from '@/utils';\n\nimport { useEventCallback } from '../useEventCallback';\nimport { useEventListener } from '../useEventListener';\n\ntype StorageName = 'localStorage' | 'sessionStorage';\n\ntype StorageEventMap = {\n [K in StorageName]: CustomEvent;\n};\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions, @typescript-eslint/no-empty-object-type\n interface WindowEventMap extends StorageEventMap {}\n}\n\n/**\n * Represents the options for customizing the behavior of serialization and deserialization.\n * @template T - The type of the state to be stored in storage.\n */\ntype UseStorageOptions<T> = {\n /** A function to deserialize the stored value. */\n deserializer?: (value: string) => T;\n /**\n * If `true` (default), the hook will initialize reading the storage. In SSR, you should set it to `false`, returning the initial value initially.\n * @default true\n */\n initializeWithValue?: boolean;\n /** A function to serialize the value before storing it. */\n serializer?: (value: T) => string;\n};\n\n/**\n * Custom hook that uses local or session storage to persist state across page reloads.\n * @template T - The type of the state to be stored in storage.\n * @param key - The key under which the value will be stored in storage.\n * @param initialValue - The initial value of the state or a function that returns the initial value.\n * @param options - Options for customizing the behavior of serialization and deserialization (optional).\n * @returns A tuple containing the stored value and a function to set the value.\n * @public\n * @example\n * ```tsx\n * const [count, setCount] = useStorage('count', 0);\n * // Access the `count` value and the `setCount` function to update it.\n * ```\n */\nexport function useStorage<T>(\n key: string,\n initialValue: (() => T) | T,\n storageName: StorageName,\n options: UseStorageOptions<T> = {}\n): [T, Dispatch<SetStateAction<T>>] {\n const { initializeWithValue = true } = options;\n const storage = window[storageName];\n\n const serializer = useCallback<(value: T) => string>(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n\n const deserializer = useCallback<(value: string) => T>(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n } else if (value === 'undefined') {\n return undefined as unknown as T;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed: unknown;\n try {\n parsed = JSON.parse(value);\n } catch (err) {\n console.error(`Error parsing JSON: ${(err as Error).message}`);\n return defaultValue;\n }\n return parsed as T;\n },\n [options, initialValue]\n );\n\n const readValue = useCallback((): T => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (!isBrowser()) {\n return initialValueToUse;\n }\n const raw = storage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n }, [initialValue, key, deserializer]);\n\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n\n const setValue: Dispatch<SetStateAction<T>> = useEventCallback((value) => {\n if (!isBrowser()) {\n console.warn(`Tried setting storage key “${key}” even though environment is not a client`);\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n storage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(storageName, { key }));\n } catch (error) {\n console.warn(`Error setting storage key “${key}”:`, error);\n }\n });\n\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n\n const handleStorageChange = useCallback(\n (event: CustomEvent | StorageEvent) => {\n if ((event as StorageEvent).key && (event as StorageEvent).key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n\n // this only works for other documents, not the current one\n useEventListener('storage', handleStorageChange);\n\n useEventListener(storageName, handleStorageChange);\n\n return [storedValue, setValue];\n}\n\nexport type { StorageName, UseStorageOptions };\n","import type { Dispatch, SetStateAction } from 'react';\n\nimport { useStorage, type UseStorageOptions } from './useStorage';\n\n/** Custom hook that uses local storage to persist state across page reloads */\nexport function useLocalStorage<T>(\n key: string,\n initialValue: (() => T) | T,\n options: UseStorageOptions<T> = {}\n): [T, Dispatch<SetStateAction<T>>] {\n return useStorage(key, initialValue, 'localStorage', options);\n}\n","import type { Dispatch, SetStateAction } from 'react';\n\nimport { useStorage, type UseStorageOptions } from './useStorage';\n\n/** Custom hook that uses session storage to persist state across page reloads */\nexport function useSessionStorage<T>(\n key: string,\n initialValue: (() => T) | T,\n options: UseStorageOptions<T> = {}\n): [T, Dispatch<SetStateAction<T>>] {\n return useStorage(key, initialValue, 'sessionStorage', options);\n}\n","import { useEffect, useState } from 'react';\n\n// this is required since our storybook manager plugin cannot use vite aliases\nimport { isBrowser } from '../../utils';\n\ntype Theme = 'dark' | 'light';\n\ntype UpdateTheme = (theme: Theme) => void;\n\n/** @private */\nconst DEFAULT_THEME: Theme = 'light';\n\n/** @private */\nconst THEME_ATTRIBUTE = 'data-mode';\n\n/** @private */\nconst THEME_KEY = 'theme';\n\n/** @private */\nconst SYS_DARK_MEDIA_QUERY = '(prefers-color-scheme: dark)';\n\n/**\n * Returns the current theme and a function to update the current theme\n *\n * The reason the implementation of this hook is rather convoluted is for\n * cases where the theme is updated outside this hook\n */\nfunction useTheme(): readonly [Theme, UpdateTheme] {\n // Initial theme value is based on the value saved in local storage or the system theme\n const [theme, setTheme] = useState<Theme>(() => {\n if (!isBrowser()) {\n return DEFAULT_THEME;\n }\n const savedTheme = window.localStorage.getItem(THEME_KEY);\n let initialTheme: Theme;\n if (savedTheme === 'dark' || savedTheme === 'light') {\n initialTheme = savedTheme;\n } else {\n initialTheme = window.matchMedia(SYS_DARK_MEDIA_QUERY).matches ? 'dark' : 'light';\n }\n document.documentElement.setAttribute(THEME_ATTRIBUTE, initialTheme);\n return initialTheme;\n });\n\n useEffect(() => {\n const observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.attributeName === THEME_ATTRIBUTE) {\n const updatedTheme = (mutation.target as HTMLHtmlElement).getAttribute(THEME_ATTRIBUTE);\n if (updatedTheme === 'light' || updatedTheme === 'dark') {\n window.localStorage.setItem(THEME_KEY, updatedTheme);\n setTheme(updatedTheme);\n } else {\n console.error(`Unexpected value for 'data-mode' attribute: ${updatedTheme}`);\n }\n }\n });\n });\n observer.observe(document.documentElement, {\n attributes: true\n });\n return () => observer.disconnect();\n }, []);\n\n // When the user wants to change the theme\n const updateTheme = (theme: Theme) => {\n document.documentElement.setAttribute(THEME_ATTRIBUTE, theme);\n };\n\n return [theme, updateTheme] as const;\n}\n\nexport { DEFAULT_THEME, SYS_DARK_MEDIA_QUERY, type Theme, THEME_ATTRIBUTE, THEME_KEY, useTheme };\n","import { useCallback } from 'react';\n\nimport { useStore } from 'zustand';\n\nimport { translationStore } from '@/i18n';\nimport type { TranslateFunction, TranslationNamespace } from '@/i18n';\nimport { getTranslation } from '@/i18n/internal';\n\nexport function useTranslation<TNamespace extends TranslationNamespace | undefined = undefined>(\n namespace?: TNamespace\n) {\n const changeLanguage = useStore(translationStore, (store) => store.changeLanguage);\n const fallbackLanguage = useStore(translationStore, (store) => store.fallbackLanguage);\n const resolvedLanguage = useStore(translationStore, (store) => store.resolvedLanguage);\n const translations = useStore(translationStore, (store) => {\n if (namespace) {\n return store.translations[namespace];\n }\n return store.translations;\n });\n\n const t: TranslateFunction<TNamespace> = useCallback(\n (target, ...args) => {\n return getTranslation(target, { fallbackLanguage, resolvedLanguage, translations }, ...args);\n },\n [fallbackLanguage, resolvedLanguage, translations]\n );\n\n return { changeLanguage, resolvedLanguage, t };\n}\n","import { useState } from 'react';\n\nimport { useEventListener } from '../useEventListener';\nimport { useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect';\n\nexport type WindowSize = {\n height: number;\n width: number;\n};\n\nexport function useWindowSize(): WindowSize {\n const [windowSize, setWindowSize] = useState<WindowSize>({\n height: 0,\n width: 0\n });\n\n const handleSize = () => {\n setWindowSize({\n height: window.innerHeight,\n width: window.innerWidth\n });\n };\n\n useEventListener('resize', handleSize);\n\n // Set size at the first client-side load\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n\n return windowSize;\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAS,kBAAkB;;;ACA3B,SAAS,qBAAqB;AAQvB,IAAM,eAAe,cAAwC,IAAI;;;ADJjE,SAAS,WAAW;AACzB,QAAM,UAAU,WAAW,YAAY;AACvC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,mDAAmD;AAAA,EACrE;AACA,SAAO;AACT;;;AEVA,SAAS,WAAW,gBAAgB;;;ACApC,SAAS,cAAc;AAgBhB,IAAM,wBAAwB,OAA2B,CAAC,SAAS;AAAA,EACxE,iBAAiB,CAAC,iBAAiB;AACjC,QAAI,CAAC,WAAW;AAAA,MACd,eAAe,CAAC,GAAG,MAAM,eAAe,EAAE,IAAI,KAAK,IAAI,GAAG,GAAG,aAAa,CAAC;AAAA,IAC7E,EAAE;AAAA,EACJ;AAAA,EACA,qBAAqB,CAAC,OAAO;AAC3B,QAAI,CAAC,WAAW;AAAA,MACd,eAAe,MAAM,cAAc,OAAO,CAAC,iBAAiB,aAAa,OAAO,EAAE;AAAA,IACpF,EAAE;AAAA,EACJ;AAAA,EACA,eAAe,CAAC;AAClB,EAAE;;;ADKK,SAAS,cAAgC;AAC9C,QAAM,gBAAgB,sBAAsB;AAC5C,QAAM,CAAC,WAAW,YAAY,IAAI,SAAyB,CAAC,CAAC;AAE7D,YAAU,MAAM;AACd,QAAI,UAAU,QAAQ;AACpB,YAAM,EAAE,UAAU,MAAM,UAAU,GAAG,IAAI,UAAU,GAAG,EAAE;AACxD,YAAM,SAAS,SAAS,cAAc,GAAG;AACzC,eAAS,KAAK,YAAY,MAAM;AAChC,YAAM,OAAO,IAAI,KAAK,CAAC,IAAI,GAAG,EAAE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,OAAO,WAAW;AAC5B;;;ACtEA,SAAS,eAAAC,oBAAmB;AAE5B,SAAS,gBAAgB;AAMlB,SAAS,eACd,WACA;AACA,QAAM,iBAAiB,SAAS,kBAAkB,CAAC,UAAU,MAAM,cAAc;AACjF,QAAM,mBAAmB,SAAS,kBAAkB,CAAC,UAAU,MAAM,gBAAgB;AACrF,QAAM,mBAAmB,SAAS,kBAAkB,CAAC,UAAU,MAAM,gBAAgB;AACrF,QAAM,eAAe,SAAS,kBAAkB,CAAC,UAAU;AACzD,QAAI,WAAW;AACb,aAAO,MAAM,aAAa,SAAS;AAAA,IACrC;AACA,WAAO,MAAM;AAAA,EACf,CAAC;AAED,QAAM,IAAmCC;AAAA,IACvC,CAAC,WAAW,SAAS;AACnB,aAAO,eAAe,QAAQ,EAAE,kBAAkB,kBAAkB,aAAa,GAAG,GAAG,IAAI;AAAA,IAC7F;AAAA,IACA,CAAC,kBAAkB,kBAAkB,YAAY;AAAA,EACnD;AAEA,SAAO,EAAE,gBAAgB,kBAAkB,EAAE;AAC/C;;;AC7BA,SAAS,YAAAC,iBAAgB;AAUlB,SAAS,gBAA4B;AAC1C,QAAM,CAAC,YAAY,aAAa,IAAIC,UAAqB;AAAA,IACvD,QAAQ;AAAA,IACR,OAAO;AAAA,EACT,CAAC;AAED,QAAM,aAAa,MAAM;AACvB,kBAAc;AAAA,MACZ,QAAQ,OAAO;AAAA,MACf,OAAO,OAAO;AAAA,IAChB,CAAC;AAAA,EACH;AAEA,mBAAiB,UAAU,UAAU;AAGrC,4BAA0B,MAAM;AAC9B,eAAW;AAAA,EACb,GAAG,CAAC,CAAC;AAEL,SAAO;AACT;","names":["useEffect","useEffect","useEffect","useRef","useRef","useEffect","useEffect","useRef","useRef","useEffect","useEffect","useState","query","useState","useEffect","useCallback","useEffect","useState","useCallback","useState","useEffect","useEffect","useState","useState","useEffect","theme","useCallback","useCallback","useState","useState"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utils/index.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function isBrowser() {\n return typeof window !== 'undefined';\n}\n"],"mappings":";;;AAAA,SAA0B,YAAY;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;AAEO,SAAS,YAAY;AAC1B,SAAO,OAAO,WAAW;AAC3B;","names":[]}
@@ -1,178 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
-
25
- // src/tailwind/config.cts
26
- var fs = require("fs");
27
- var path = require("path");
28
- var animate = require("tailwindcss-animate");
29
- var containerQueries = require("@tailwindcss/container-queries");
30
- var plugin = require("tailwindcss/plugin");
31
- var _ = require("lodash-es");
32
- var packageRoot = path.dirname(require.resolve("@douglasneuroinformatics/libui/package.json"));
33
- var isDev = fs.existsSync(path.resolve(packageRoot, "src"));
34
- var config = ({
35
- content = [],
36
- include = [],
37
- includeOwnContent = true,
38
- root = void 0,
39
- plugins = [],
40
- extend = {}
41
- } = {}) => {
42
- if (includeOwnContent) {
43
- if (isDev) {
44
- content.push(path.resolve(packageRoot, "src/**/*.{js,jsx,ts,tsx}"));
45
- } else {
46
- content.push(path.resolve(packageRoot, "dist/**/*.js"));
47
- }
48
- }
49
- for (const id of include) {
50
- const baseDir = path.dirname(require.resolve(`${id}/package.json`, { paths: root ? [root] : void 0 }));
51
- content.push(path.resolve(baseDir, "src/**/*.{js,ts,jsx,tsx}"));
52
- }
53
- let userTheme;
54
- if (Array.isArray(extend.theme)) {
55
- userTheme = extend.theme;
56
- } else if (_.isPlainObject(extend.theme)) {
57
- userTheme = [extend.theme];
58
- } else {
59
- userTheme = [];
60
- }
61
- return {
62
- content,
63
- darkMode: ["class", '[data-mode="dark"]'],
64
- plugins: [
65
- animate,
66
- containerQueries,
67
- plugin((api) => {
68
- api.addUtilities({
69
- ".scrollbar-none": {
70
- "&::-webkit-scrollbar": {
71
- display: "none"
72
- },
73
- "-ms-overflow-style": "none",
74
- "scrollbar-width": "none"
75
- }
76
- });
77
- }),
78
- ...plugins
79
- ],
80
- theme: {
81
- container: {
82
- center: true,
83
- padding: {
84
- DEFAULT: "1rem",
85
- md: "2rem",
86
- xl: "3rem"
87
- }
88
- },
89
- extend: _.merge(
90
- {
91
- animation: {
92
- "accordion-down": "accordion-down 0.2s ease-out",
93
- "accordion-up": "accordion-up 0.2s ease-out",
94
- spinner: "spinner-spin 1.7s infinite ease, round 1.7s infinite ease"
95
- },
96
- borderRadius: {
97
- lg: `var(--radius)`,
98
- md: `calc(var(--radius) - 2px)`,
99
- sm: "calc(var(--radius) - 4px)"
100
- },
101
- colors: {
102
- accent: {
103
- DEFAULT: "var(--accent)",
104
- foreground: "var(--accent-foreground)"
105
- },
106
- background: "var(--background)",
107
- border: "var(--border)",
108
- card: {
109
- DEFAULT: "var(--card)",
110
- foreground: "var(--card-foreground)"
111
- },
112
- destructive: {
113
- DEFAULT: "var(--destructive)",
114
- foreground: "var(--destructive-foreground)"
115
- },
116
- foreground: "var(--foreground)",
117
- input: "var(--input)",
118
- muted: {
119
- DEFAULT: "var(--muted)",
120
- foreground: "var(--muted-foreground)"
121
- },
122
- popover: {
123
- DEFAULT: "var(--popover)",
124
- foreground: "var(--popover-foreground)"
125
- },
126
- primary: {
127
- DEFAULT: "var(--primary)",
128
- foreground: "var(--primary-foreground)"
129
- },
130
- ring: "var(--ring)",
131
- secondary: {
132
- DEFAULT: "var(--secondary)",
133
- foreground: "var(--secondary-foreground)"
134
- }
135
- },
136
- keyframes: {
137
- "accordion-down": {
138
- from: { height: "0" },
139
- to: { height: "var(--radix-accordion-content-height)" }
140
- },
141
- "accordion-up": {
142
- from: { height: "var(--radix-accordion-content-height)" },
143
- to: { height: "0" }
144
- },
145
- round: {
146
- "0%": {
147
- transform: "rotate(0deg)"
148
- },
149
- "100%": {
150
- transform: "rotate(360deg)"
151
- }
152
- },
153
- "spinner-spin": {
154
- "0%, 5%, 95%, 100%": {
155
- boxShadow: `0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em`
156
- },
157
- "10%, 59%": {
158
- boxShadow: `0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em`
159
- },
160
- "20%": {
161
- boxShadow: `0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em`
162
- },
163
- "38%": {
164
- boxShadow: `0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em`
165
- }
166
- }
167
- },
168
- screens: {
169
- "2xl": "1400px"
170
- }
171
- },
172
- ...userTheme
173
- )
174
- }
175
- };
176
- };
177
- module.exports = config;
178
- //# sourceMappingURL=config.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/tailwind/config.cts"],"sourcesContent":["import type { Config } from 'tailwindcss';\nimport type { CustomThemeConfig, PluginsConfig } from 'tailwindcss/types/config';\n\nimport fs = require('node:fs');\nimport path = require('node:path');\n\nimport animate = require('tailwindcss-animate');\nimport containerQueries = require('@tailwindcss/container-queries');\nimport plugin = require('tailwindcss/plugin');\nimport _ = require('lodash-es');\n\nconst packageRoot = path.dirname(require.resolve('@douglasneuroinformatics/libui/package.json'));\n\nconst isDev = fs.existsSync(path.resolve(packageRoot, 'src'));\n\ntype ConfigOptions = {\n content?: string[];\n include?: string[];\n includeOwnContent?: boolean;\n plugins?: PluginsConfig;\n root?: string;\n extend?: {\n theme?: Partial<CustomThemeConfig> | Partial<CustomThemeConfig>[];\n };\n};\n\nconst config = ({\n content = [],\n include = [],\n includeOwnContent = true,\n root = undefined,\n plugins = [],\n extend = {}\n}: ConfigOptions = {}): Config => {\n if (includeOwnContent) {\n if (isDev) {\n content.push(path.resolve(packageRoot, 'src/**/*.{js,jsx,ts,tsx}'));\n } else {\n content.push(path.resolve(packageRoot, 'dist/**/*.js'));\n }\n }\n\n for (const id of include) {\n const baseDir = path.dirname(require.resolve(`${id}/package.json`, { paths: root ? [root] : undefined }));\n content.push(path.resolve(baseDir, 'src/**/*.{js,ts,jsx,tsx}'));\n }\n\n let userTheme: Partial<CustomThemeConfig>[];\n if (Array.isArray(extend.theme)) {\n userTheme = extend.theme;\n } else if (_.isPlainObject(extend.theme)) {\n userTheme = [extend.theme!];\n } else {\n userTheme = [];\n }\n\n return {\n content,\n darkMode: ['class', '[data-mode=\"dark\"]'],\n plugins: [\n animate,\n containerQueries,\n plugin((api) => {\n api.addUtilities({\n '.scrollbar-none': {\n '&::-webkit-scrollbar': {\n display: 'none'\n },\n '-ms-overflow-style': 'none',\n 'scrollbar-width': 'none'\n }\n });\n }),\n ...plugins\n ],\n theme: {\n container: {\n center: true,\n padding: {\n DEFAULT: '1rem',\n md: '2rem',\n xl: '3rem'\n }\n },\n extend: _.merge(\n {\n animation: {\n 'accordion-down': 'accordion-down 0.2s ease-out',\n 'accordion-up': 'accordion-up 0.2s ease-out',\n spinner: 'spinner-spin 1.7s infinite ease, round 1.7s infinite ease'\n },\n borderRadius: {\n lg: `var(--radius)`,\n md: `calc(var(--radius) - 2px)`,\n sm: 'calc(var(--radius) - 4px)'\n },\n colors: {\n accent: {\n DEFAULT: 'var(--accent)',\n foreground: 'var(--accent-foreground)'\n },\n background: 'var(--background)',\n border: 'var(--border)',\n card: {\n DEFAULT: 'var(--card)',\n foreground: 'var(--card-foreground)'\n },\n destructive: {\n DEFAULT: 'var(--destructive)',\n foreground: 'var(--destructive-foreground)'\n },\n foreground: 'var(--foreground)',\n input: 'var(--input)',\n muted: {\n DEFAULT: 'var(--muted)',\n foreground: 'var(--muted-foreground)'\n },\n popover: {\n DEFAULT: 'var(--popover)',\n foreground: 'var(--popover-foreground)'\n },\n primary: {\n DEFAULT: 'var(--primary)',\n foreground: 'var(--primary-foreground)'\n },\n ring: 'var(--ring)',\n secondary: {\n DEFAULT: 'var(--secondary)',\n foreground: 'var(--secondary-foreground)'\n }\n },\n keyframes: {\n 'accordion-down': {\n from: { height: '0' },\n to: { height: 'var(--radix-accordion-content-height)' }\n },\n 'accordion-up': {\n from: { height: 'var(--radix-accordion-content-height)' },\n to: { height: '0' }\n },\n round: {\n '0%': {\n transform: 'rotate(0deg)'\n },\n '100%': {\n transform: 'rotate(360deg)'\n }\n },\n 'spinner-spin': {\n '0%, 5%, 95%, 100%': {\n boxShadow: `0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em`\n },\n '10%, 59%': {\n boxShadow: `0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em`\n },\n '20%': {\n boxShadow: `0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em`\n },\n '38%': {\n boxShadow: `0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em`\n }\n }\n },\n screens: {\n '2xl': '1400px'\n }\n },\n ...userTheme\n ) as Partial<CustomThemeConfig>\n }\n };\n};\n\nexport = config;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAO,KAAK,QAAQ;AACpB,IAAO,OAAO,QAAQ;AAEtB,IAAO,UAAU,QAAQ;AACzB,IAAO,mBAAmB,QAAQ;AAClC,IAAO,SAAS,QAAQ;AACxB,IAAO,IAAI,QAAQ;AAEnB,IAAM,cAAc,KAAK,QAAQ,gBAAgB,6CAA6C,CAAC;AAE/F,IAAM,QAAQ,GAAG,WAAW,KAAK,QAAQ,aAAa,KAAK,CAAC;AAa5D,IAAM,SAAS,CAAC;AAAA,EACd,UAAU,CAAC;AAAA,EACX,UAAU,CAAC;AAAA,EACX,oBAAoB;AAAA,EACpB,OAAO;AAAA,EACP,UAAU,CAAC;AAAA,EACX,SAAS,CAAC;AACZ,IAAmB,CAAC,MAAc;AAChC,MAAI,mBAAmB;AACrB,QAAI,OAAO;AACT,cAAQ,KAAK,KAAK,QAAQ,aAAa,0BAA0B,CAAC;AAAA,IACpE,OAAO;AACL,cAAQ,KAAK,KAAK,QAAQ,aAAa,cAAc,CAAC;AAAA,IACxD;AAAA,EACF;AAEA,aAAW,MAAM,SAAS;AACxB,UAAM,UAAU,KAAK,QAAQ,QAAQ,QAAQ,GAAG,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,YAAY;AAAA,YACd;AAAA,YACA,YAAY;AAAA,YACZ,OAAO;AAAA,YACP,OAAO;AAAA,cACL,SAAS;AAAA,cACT,YAAY;AAAA,YACd;AAAA,YACA,SAAS;AAAA,cACP,SAAS;AAAA,cACT,YAAY;AAAA,YACd;AAAA,YACA,SAAS;AAAA,cACP,SAAS;AAAA,cACT,YAAY;AAAA,YACd;AAAA,YACA,MAAM;AAAA,YACN,WAAW;AAAA,cACT,SAAS;AAAA,cACT,YAAY;AAAA,YACd;AAAA,UACF;AAAA,UACA,WAAW;AAAA,YACT,kBAAkB;AAAA,cAChB,MAAM,EAAE,QAAQ,IAAI;AAAA,cACpB,IAAI,EAAE,QAAQ,wCAAwC;AAAA,YACxD;AAAA,YACA,gBAAgB;AAAA,cACd,MAAM,EAAE,QAAQ,wCAAwC;AAAA,cACxD,IAAI,EAAE,QAAQ,IAAI;AAAA,YACpB;AAAA,YACA,OAAO;AAAA,cACL,MAAM;AAAA,gBACJ,WAAW;AAAA,cACb;AAAA,cACA,QAAQ;AAAA,gBACN,WAAW;AAAA,cACb;AAAA,YACF;AAAA,YACA,gBAAgB;AAAA,cACd,qBAAqB;AAAA,gBACnB,WAAW;AAAA,cACb;AAAA,cACA,YAAY;AAAA,gBACV,WAAW;AAAA,cACb;AAAA,cACA,OAAO;AAAA,gBACL,WAAW;AAAA,cACb;AAAA,cACA,OAAO;AAAA,gBACL,WAAW;AAAA,cACb;AAAA,YACF;AAAA,UACF;AAAA,UACA,SAAS;AAAA,YACP,OAAO;AAAA,UACT;AAAA,QACF;AAAA,QACA,GAAG;AAAA,MACL;AAAA,IACF;AAAA,EACF;AACF;AAEA,iBAAS;","names":[]}
@@ -1,16 +0,0 @@
1
- import { Config } from 'tailwindcss';
2
- import { PluginsConfig, CustomThemeConfig } from 'tailwindcss/types/config';
3
-
4
- type ConfigOptions = {
5
- content?: string[];
6
- include?: string[];
7
- includeOwnContent?: boolean;
8
- plugins?: PluginsConfig;
9
- root?: string;
10
- extend?: {
11
- theme?: Partial<CustomThemeConfig> | Partial<CustomThemeConfig>[];
12
- };
13
- };
14
- declare const config: ({ content, include, includeOwnContent, root, plugins, extend }?: ConfigOptions) => Config;
15
-
16
- export = config;