lecom-ui 5.2.71 → 5.2.73

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 (81) hide show
  1. package/dist/components/Combobox/Combobox.js +5 -19
  2. package/dist/components/CustomDivider/CustomDivider.js +18 -36
  3. package/dist/components/DataTable/DataTable.utils.js +1 -5
  4. package/dist/components/DataTable/Table.js +40 -60
  5. package/dist/components/Sheet/Sheet.js +1 -31
  6. package/dist/components/Steps/{StepsTimeline.js → Steps.js} +1 -0
  7. package/dist/components/Switch/Switch.js +20 -5
  8. package/dist/components/TagInput/TagInput.js +55 -58
  9. package/dist/index.d.ts +67 -93
  10. package/dist/index.js +3 -4
  11. package/dist/style.min.css +1 -1
  12. package/package.json +4 -3
  13. package/dist/badge.js +0 -26
  14. package/dist/button-dropdown.js +0 -117
  15. package/dist/button.js +0 -104
  16. package/dist/calendar.js +0 -62
  17. package/dist/card.js +0 -56
  18. package/dist/checkbox.js +0 -55
  19. package/dist/collapse.js +0 -60
  20. package/dist/collapsible.js +0 -7
  21. package/dist/command.js +0 -107
  22. package/dist/components/DataTable/useOptimizedTable.js +0 -75
  23. package/dist/data-table/data-table.js +0 -490
  24. package/dist/date-picker.js +0 -92
  25. package/dist/dialog.js +0 -95
  26. package/dist/dropdown-menu.js +0 -138
  27. package/dist/fonts/Montserrat-Bold.otf +0 -0
  28. package/dist/fonts/Montserrat-Medium.otf +0 -0
  29. package/dist/fonts/Montserrat-Regular.otf +0 -0
  30. package/dist/fonts/Roboto-Bold.otf +0 -0
  31. package/dist/fonts/Roboto-Light.otf +0 -0
  32. package/dist/fonts/Roboto-Medium.otf +0 -0
  33. package/dist/fonts/Roboto-Regular.otf +0 -0
  34. package/dist/form.js +0 -102
  35. package/dist/header.js +0 -90
  36. package/dist/hook/useDebounce.js +0 -16
  37. package/dist/icon-handler.js +0 -72
  38. package/dist/icons/brandModules.js +0 -27
  39. package/dist/icons/companyLogo.js +0 -61
  40. package/dist/icons/createUseAuxiliary.js +0 -107
  41. package/dist/icons/footerInfo.js +0 -25
  42. package/dist/icons/logo_lecom.svg.js +0 -3
  43. package/dist/icons/newUpdate.js +0 -23
  44. package/dist/icons/robertyRPA.js +0 -30
  45. package/dist/ilustrations/access_denied.js +0 -252
  46. package/dist/ilustrations/page_not_found.js +0 -188
  47. package/dist/input.js +0 -42
  48. package/dist/label.js +0 -20
  49. package/dist/modal.js +0 -27
  50. package/dist/pagination.js +0 -474
  51. package/dist/plugin/extend.ts +0 -78
  52. package/dist/plugin/fontFaces.ts +0 -172
  53. package/dist/plugin/general.ts +0 -12
  54. package/dist/plugin/pluginDev.js +0 -5
  55. package/dist/plugin/pluginNext.js +0 -5
  56. package/dist/plugin/pluginVite.js +0 -5
  57. package/dist/plugin/template.ts +0 -31
  58. package/dist/plugin/typographies.ts +0 -152
  59. package/dist/plugin/varsTheme.ts +0 -79
  60. package/dist/plugin.cjs +0 -298
  61. package/dist/popover.js +0 -24
  62. package/dist/radio-group.js +0 -74
  63. package/dist/range-picker.js +0 -99
  64. package/dist/scroll-area.js +0 -37
  65. package/dist/search-bar.js +0 -151
  66. package/dist/select.js +0 -156
  67. package/dist/separator.js +0 -24
  68. package/dist/sheet.js +0 -106
  69. package/dist/sidebar.js +0 -188
  70. package/dist/skeleton.js +0 -17
  71. package/dist/slider.js +0 -23
  72. package/dist/status-screen.js +0 -71
  73. package/dist/switch.js +0 -27
  74. package/dist/table.js +0 -83
  75. package/dist/tabs.js +0 -44
  76. package/dist/tag.js +0 -33
  77. package/dist/textarea.js +0 -22
  78. package/dist/toast.js +0 -105
  79. package/dist/toaster.js +0 -23
  80. package/dist/tooltip.js +0 -133
  81. package/dist/use-toast.js +0 -121
@@ -1,474 +0,0 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { ChevronLeftIcon, ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';
4
- import { ChevronsLeftIcon, ChevronsRightIcon } from 'lucide-react';
5
- import { cn } from './lib/utils.js';
6
- import { buttonVariants } from './button.js';
7
- import { Input } from './input.js';
8
- import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './select.js';
9
-
10
- const PaginationSection = ({ className, ...props }) => /* @__PURE__ */ jsx(
11
- "nav",
12
- {
13
- role: "navigation",
14
- "aria-label": "pagination",
15
- className: cn("mx-auto flex w-full justify-center", className),
16
- ...props
17
- }
18
- );
19
- PaginationSection.displayName = "PaginationSection";
20
- const PaginationContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
21
- "ul",
22
- {
23
- ref,
24
- className: cn("flex flex-row items-center gap-1", className),
25
- ...props
26
- }
27
- ));
28
- PaginationContent.displayName = "PaginationContent";
29
- const PaginationItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("", className), ...props }));
30
- PaginationItem.displayName = "PaginationItem";
31
- const PaginationLink = ({
32
- className,
33
- isActive,
34
- size = "icon",
35
- ...props
36
- }) => /* @__PURE__ */ jsx(
37
- "a",
38
- {
39
- "aria-current": isActive ? "page" : void 0,
40
- className: cn(
41
- buttonVariants({
42
- variant: isActive ? "outline" : "ghost",
43
- size
44
- }),
45
- className
46
- ),
47
- ...props
48
- }
49
- );
50
- PaginationLink.displayName = "PaginationLink";
51
- const PaginationPrevious = ({
52
- hiddenText = false,
53
- className,
54
- children,
55
- ...props
56
- }) => /* @__PURE__ */ jsxs(
57
- PaginationLink,
58
- {
59
- "aria-label": "Go to previous page",
60
- size: "default",
61
- className: cn(!hiddenText && "gap-1 pl-2.5", className),
62
- ...props,
63
- children: [
64
- children,
65
- !children && /* @__PURE__ */ jsxs(Fragment, { children: [
66
- /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "h-4 w-4" }),
67
- !hiddenText && /* @__PURE__ */ jsx("span", { children: "Previous" })
68
- ] })
69
- ]
70
- }
71
- );
72
- PaginationPrevious.displayName = "PaginationPrevious";
73
- const PaginationNext = ({
74
- className,
75
- hiddenText = false,
76
- children,
77
- ...props
78
- }) => /* @__PURE__ */ jsxs(
79
- PaginationLink,
80
- {
81
- "aria-label": "Go to next page",
82
- size: "default",
83
- className: cn(!hiddenText && "gap-1 pl-2.5", className),
84
- ...props,
85
- children: [
86
- children,
87
- !children && /* @__PURE__ */ jsxs(Fragment, { children: [
88
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "h-4 w-4" }),
89
- !hiddenText && /* @__PURE__ */ jsx("span", { children: "Previous" })
90
- ] })
91
- ]
92
- }
93
- );
94
- PaginationNext.displayName = "PaginationNext";
95
- const PaginationEllipsis = ({
96
- className,
97
- ...props
98
- }) => /* @__PURE__ */ jsxs(
99
- "span",
100
- {
101
- "aria-hidden": true,
102
- className: cn("flex h-9 w-9 items-center justify-center", className),
103
- ...props,
104
- children: [
105
- /* @__PURE__ */ jsx(DotsHorizontalIcon, { className: "h-4 w-4" }),
106
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
107
- ]
108
- }
109
- );
110
- PaginationEllipsis.displayName = "PaginationEllipsis";
111
- const Pagination = ({
112
- align,
113
- current,
114
- defaultCurrent = 1,
115
- defaultPageSize = 10,
116
- disabled = false,
117
- hideOnSinglePage = false,
118
- itemRender,
119
- pageSize,
120
- pageSizeOptions = [5, 10, 20, 50, 100],
121
- responsive,
122
- showLessItems = false,
123
- showQuickJumper = false,
124
- showSizeChanger = false,
125
- showTotal,
126
- simple = false,
127
- size = "default",
128
- total,
129
- onChange,
130
- onShowSizeChange,
131
- textGoToPage = ""
132
- }) => {
133
- const [internalCurrent, setInternalCurrent] = React.useState(
134
- current || defaultCurrent
135
- );
136
- const [internalPageSize, setInternalPageSize] = React.useState(
137
- pageSize || defaultPageSize
138
- );
139
- const [hoveredEllipsis, setHoveredEllipsis] = React.useState(null);
140
- const totalPages = Math.ceil(total / internalPageSize);
141
- React.useEffect(() => {
142
- if (current !== void 0) {
143
- setInternalCurrent(current);
144
- }
145
- }, [current]);
146
- React.useEffect(() => {
147
- if (pageSize !== void 0) {
148
- setInternalPageSize(pageSize);
149
- }
150
- }, [pageSize]);
151
- const handlePageChange = (page, disabled2 = false) => {
152
- if (!disabled2) {
153
- if (!current) {
154
- setInternalCurrent(page);
155
- }
156
- if (onChange) {
157
- onChange(page, internalPageSize);
158
- }
159
- }
160
- };
161
- const handleSizeChange = (value) => {
162
- const newSize = parseInt(value, 10);
163
- setInternalPageSize(newSize);
164
- if (onShowSizeChange) {
165
- onShowSizeChange(internalCurrent, newSize);
166
- }
167
- if (onChange) {
168
- onChange(internalCurrent, newSize);
169
- }
170
- };
171
- const handleQuickJump = (event) => {
172
- if (event.key === "Enter") {
173
- const page = Math.min(Math.max(1, internalCurrent), totalPages);
174
- handlePageChange(page);
175
- }
176
- };
177
- if (hideOnSinglePage && totalPages <= 1) {
178
- return null;
179
- }
180
- const renderItem = (page, type) => {
181
- const originalElement = /* @__PURE__ */ jsx("span", { children: page });
182
- return itemRender ? itemRender(page, type, originalElement) : originalElement;
183
- };
184
- const renderPages = () => {
185
- if (simple) {
186
- const isReadOnly = typeof simple === "object" && simple.readOnly;
187
- return /* @__PURE__ */ jsx("div", { className: "flex items-center", children: isReadOnly ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-1", children: [
188
- /* @__PURE__ */ jsx(
189
- "span",
190
- {
191
- className: cn(
192
- "text-center w-10 h-6",
193
- size === "small" && "text-xs",
194
- disabled && "cursor-not-allowed text-gray-scale79 hover:text-gray-scale79"
195
- ),
196
- children: internalCurrent
197
- }
198
- ),
199
- /* @__PURE__ */ jsx(
200
- "span",
201
- {
202
- className: cn(
203
- disabled && "cursor-not-allowed text-gray-scale96"
204
- ),
205
- children: "/"
206
- }
207
- ),
208
- /* @__PURE__ */ jsx(
209
- "span",
210
- {
211
- className: cn(
212
- "text-center w-10 h-6",
213
- size === "small" && "text-xs",
214
- disabled && "cursor-not-allowed text-gray-scale79 hover:text-gray-scale79"
215
- ),
216
- children: totalPages
217
- }
218
- )
219
- ] }) : /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2", children: [
220
- /* @__PURE__ */ jsx(
221
- Input,
222
- {
223
- type: "text",
224
- className: cn(
225
- "text-center border rounded px-2 py-1 w-14 h-6 border-gray-scale79",
226
- size === "small" && "text-xs",
227
- disabled && "cursor-not-allowed text-gray-scale79 bg-gray-scale96 border-gray-scale79 hover:text-gray-scale79 hover:bg-gray-scale96"
228
- ),
229
- value: internalCurrent,
230
- onChange: (e) => {
231
- const value = e.target.value.replace(/[^0-9]/g, "");
232
- setInternalCurrent(value ? Number(value) : 0);
233
- },
234
- onKeyDown: (e) => {
235
- if (e.key === "Enter") {
236
- handleQuickJump(e);
237
- }
238
- },
239
- disabled
240
- }
241
- ),
242
- /* @__PURE__ */ jsx(
243
- "span",
244
- {
245
- className: cn(
246
- disabled && "cursor-not-allowed text-gray-scale96"
247
- ),
248
- children: "/"
249
- }
250
- ),
251
- /* @__PURE__ */ jsx(
252
- "span",
253
- {
254
- className: cn(
255
- "px-2 py-1",
256
- size === "small" && "px-1 h-[26px] text-xs",
257
- disabled && "cursor-not-allowed text-gray-scale79"
258
- ),
259
- children: totalPages
260
- }
261
- )
262
- ] }) });
263
- }
264
- const renderPageItem = (page) => /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
265
- PaginationLink,
266
- {
267
- className: cn(
268
- "w-8 h-8 bg-white text-black font-normal cursor-pointer",
269
- page === internalCurrent && "border border-blue-dark text-blue-dark hover:text-blue-dark hover:bg-white font-bold",
270
- disabled && "cursor-not-allowed text-gray-scale79 hover:text-gray-scale79 hover:bg-white",
271
- page === internalCurrent && disabled && "cursor-not-allowed text-gray-scale79 bg-gray-scale96 border-gray-scale96 hover:text-gray-scale79 hover:bg-gray-scale96",
272
- size === "small" && "w-6 h-[26px] text-xs"
273
- ),
274
- onClick: () => typeof page === "number" && handlePageChange(page, disabled),
275
- children: typeof page === "number" ? renderItem(page, "page") : "..."
276
- }
277
- ) }, page);
278
- const renderEllipsis = (key, direction) => /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
279
- PaginationLink,
280
- {
281
- className: cn(
282
- "w-8 h-8 cursor-pointer bg-white hover:bg-white",
283
- size === "small" && "px-1 h-[26px] text-xs",
284
- disabled && "cursor-not-allowed text-gray-scale79 hover:text-gray-scale79 hover:bg-white"
285
- ),
286
- onMouseEnter: () => setHoveredEllipsis(key),
287
- onMouseLeave: () => setHoveredEllipsis(null),
288
- onClick: () => {
289
- if (!disabled) {
290
- const quantityPages = showLessItems ? 3 : 5;
291
- if (direction === "left") {
292
- handlePageChange(
293
- Math.max(1, internalCurrent - quantityPages),
294
- disabled
295
- );
296
- } else {
297
- handlePageChange(
298
- Math.min(totalPages, internalCurrent + quantityPages),
299
- disabled
300
- );
301
- }
302
- }
303
- },
304
- children: hoveredEllipsis === key && !disabled ? direction === "left" ? /* @__PURE__ */ jsx(ChevronsLeftIcon, { className: "w-4 h-4 text-blue-dark" }) : /* @__PURE__ */ jsx(ChevronsRightIcon, { className: "w-4 h-4 text-blue-dark" }) : /* @__PURE__ */ jsx(PaginationEllipsis, {})
305
- }
306
- ) }, key);
307
- const pages = [];
308
- const pagesArray = Array.from(
309
- { length: totalPages },
310
- (_, index) => index + 1
311
- );
312
- if (showLessItems && totalPages > 5) {
313
- const startPages = [2].filter((page) => page <= totalPages);
314
- const endPages = [totalPages - 1].filter(
315
- (page) => page > 3 && page <= totalPages
316
- );
317
- const middlePage = internalCurrent;
318
- return /* @__PURE__ */ jsxs(Fragment, { children: [
319
- renderPageItem(1),
320
- internalCurrent <= 3 && startPages.map((page) => renderPageItem(page)),
321
- internalCurrent > 3 && renderEllipsis("start-ellipsis", "left"),
322
- internalCurrent > 2 && internalCurrent < totalPages - 1 && renderPageItem(middlePage),
323
- internalCurrent < totalPages - 2 && renderEllipsis("end-ellipsis", "right"),
324
- internalCurrent >= totalPages - 2 && endPages.map((page) => renderPageItem(page)),
325
- renderPageItem(totalPages)
326
- ] });
327
- }
328
- if (totalPages <= 7) {
329
- for (let i = 1; i <= totalPages; i++) {
330
- pages.push(i);
331
- }
332
- } else {
333
- const lastFourPages = pagesArray.slice(-4);
334
- const arrayEndPages = internalCurrent === lastFourPages[0] ? [totalPages - 4, totalPages - 3, totalPages - 2, totalPages - 1] : [totalPages - 3, totalPages - 2, totalPages - 1];
335
- const endPages = arrayEndPages;
336
- const firstFourPages = pagesArray.slice(0, 4);
337
- const arrayStartPages = internalCurrent === firstFourPages[firstFourPages.length - 1] ? [2, 3, 4, 5] : [2, 3, 4];
338
- const startPages = arrayStartPages.filter((page) => page <= totalPages);
339
- const middlePage = [];
340
- if (internalCurrent > totalPages - 4) {
341
- middlePage.push(1);
342
- middlePage.push("...");
343
- for (let i = totalPages - 3; i <= totalPages; i++) {
344
- middlePage.push(i);
345
- }
346
- } else {
347
- middlePage.push(internalCurrent - 1);
348
- middlePage.push(internalCurrent);
349
- middlePage.push(internalCurrent + 1);
350
- }
351
- return /* @__PURE__ */ jsxs(Fragment, { children: [
352
- renderPageItem(1),
353
- internalCurrent <= 4 && startPages.map((page) => renderPageItem(page)),
354
- internalCurrent > 4 && renderEllipsis("start-ellipsis", "left"),
355
- internalCurrent > 4 && internalCurrent < totalPages - 3 && middlePage.map(
356
- (page) => typeof page === "number" && renderPageItem(page)
357
- ),
358
- internalCurrent < totalPages - 3 && renderEllipsis("end-ellipsis", "right"),
359
- internalCurrent >= totalPages - 3 && endPages.map((page) => renderPageItem(page)),
360
- renderPageItem(totalPages)
361
- ] });
362
- }
363
- return pages.filter((page) => typeof page === "number").map((page) => renderPageItem(page));
364
- };
365
- return /* @__PURE__ */ jsxs(
366
- PaginationSection,
367
- {
368
- className: cn(
369
- "flex items-center gap-2",
370
- align && `justify-${align}`,
371
- size === "small" && "text-sm",
372
- responsive && "w-full"
373
- ),
374
- children: [
375
- showTotal && /* @__PURE__ */ jsx("div", { className: cn("mr-2", size === "small" && "text-xs"), children: showTotal(total, [
376
- (internalCurrent - 1) * internalPageSize + 1,
377
- Math.min(internalCurrent * internalPageSize, total)
378
- ]) }),
379
- /* @__PURE__ */ jsxs(PaginationContent, { className: "flex justify-center items-center", children: [
380
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
381
- PaginationPrevious,
382
- {
383
- className: cn(
384
- "px-2 h-8 bg-white text-black cursor-pointer",
385
- internalCurrent === 1 && "cursor-not-allowed opacity-50 hover:bg-transparent",
386
- disabled && "cursor-not-allowed text-gray-scale79 border-gray-scale96 hover:text-gray-scale79 hover:bg-white",
387
- size === "small" && "px-1 h-[26px] text-xs"
388
- ),
389
- onClick: () => handlePageChange(
390
- Math.max(1, internalCurrent - 1),
391
- disabled || internalCurrent === 1
392
- ),
393
- children: itemRender ? renderItem(internalCurrent - 1, "prev") : /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "w-4 h-4" })
394
- }
395
- ) }),
396
- renderPages(),
397
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
398
- PaginationNext,
399
- {
400
- className: cn(
401
- "px-2 h-8 bg-white text-black cursor-pointer",
402
- internalCurrent === totalPages && "cursor-not-allowed opacity-50 hover:bg-white",
403
- disabled && "cursor-not-allowed text-gray-scale79 border-gray-scale96 hover:text-gray-scale79 hover:bg-white",
404
- size === "small" && "px-1 h-[26px] text-xs"
405
- ),
406
- onClick: () => handlePageChange(
407
- Math.min(totalPages, internalCurrent + 1),
408
- internalCurrent === totalPages || disabled
409
- ),
410
- children: itemRender ? renderItem(internalCurrent + 1, "next") : /* @__PURE__ */ jsx(ChevronRightIcon, { className: "w-4 h-4" })
411
- }
412
- ) })
413
- ] }),
414
- showSizeChanger && totalPages >= 7 && /* @__PURE__ */ jsxs(
415
- Select,
416
- {
417
- onValueChange: handleSizeChange,
418
- value: internalPageSize.toString(),
419
- disabled,
420
- children: [
421
- /* @__PURE__ */ jsx(
422
- SelectTrigger,
423
- {
424
- className: cn(
425
- "flex gap-2 ml-2 border rounded w-fit h-8",
426
- size === "small" && "px-2 h-[26px] text-xs",
427
- disabled && "cursor-not-allowed text-gray-scale60 bg-gray-scale96 border-gray-scale79 hover:text-gray-scale60 hover:bg-gray-scale96"
428
- ),
429
- children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Selecione..." })
430
- }
431
- ),
432
- /* @__PURE__ */ jsx(SelectContent, { children: pageSizeOptions.map((size2) => /* @__PURE__ */ jsx(SelectItem, { value: size2.toString(), children: `${size2.toString()} / page` }, size2)) })
433
- ]
434
- }
435
- ),
436
- showQuickJumper && /* @__PURE__ */ jsxs(Fragment, { children: [
437
- textGoToPage && /* @__PURE__ */ jsx("div", { className: cn("mx-2", size === "small" && "text-xs"), children: textGoToPage }),
438
- /* @__PURE__ */ jsx(
439
- Input,
440
- {
441
- type: "text",
442
- className: cn(
443
- "h-8 w-12 ml-2 border rounded px-2",
444
- size === "small" && "px-2 h-[26px] text-xs",
445
- disabled && "cursor-not-allowed text-gray-scale60 bg-gray-scale96 border-gray-scale79 hover:text-gray-scale60 hover:bg-gray-scale96",
446
- textGoToPage && "ml-0"
447
- ),
448
- value: disabled ? "" : internalCurrent,
449
- onChange: (e) => {
450
- const value = e.target.value.replace(/[^0-9]/g, "");
451
- setInternalCurrent(value ? Number(value) : 0);
452
- },
453
- onBlur: (e) => {
454
- const value = e.target.value.replace(/[^0-9]/g, "");
455
- if (Number(value) === 0) {
456
- setInternalCurrent(1);
457
- }
458
- },
459
- onKeyDown: (e) => {
460
- if (e.key === "Enter") {
461
- handleQuickJump(e);
462
- }
463
- },
464
- disabled
465
- }
466
- )
467
- ] })
468
- ]
469
- }
470
- );
471
- };
472
- Pagination.displayName = "Pagination";
473
-
474
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationSection };
@@ -1,78 +0,0 @@
1
- const extend = {
2
- colors: {
3
- background: 'hsl(var(--background))',
4
- foreground: 'hsl(var(--foreground))',
5
- card: {
6
- DEFAULT: 'hsl(var(--card))',
7
- foreground: 'hsl(var(--card-foreground))',
8
- },
9
- popover: {
10
- DEFAULT: 'hsl(var(--popover))',
11
- foreground: 'hsl(var(--popover-foreground))',
12
- },
13
- primary: {
14
- DEFAULT: 'hsl(var(--primary))',
15
- foreground: 'hsl(var(--primary-foreground))',
16
- },
17
- secondary: {
18
- DEFAULT: 'hsl(var(--secondary))',
19
- foreground: 'hsl(var(--secondary-foreground))',
20
- },
21
- muted: {
22
- DEFAULT: 'hsl(var(--muted))',
23
- foreground: 'hsl(var(--muted-foreground))',
24
- },
25
- accent: {
26
- DEFAULT: 'hsl(var(--accent))',
27
- foreground: 'hsl(var(--accent-foreground))',
28
- },
29
- destructive: {
30
- DEFAULT: 'hsl(var(--destructive))',
31
- foreground: 'hsl(var(--destructive-foreground))',
32
- },
33
- border: 'hsl(var(--border))',
34
- input: 'hsl(var(--input))',
35
- ring: 'hsl(var(--ring))',
36
- chart: {
37
- 1: 'hsl(var(--chart-1))',
38
- 2: 'hsl(var(--chart-2))',
39
- 3: 'hsl(var(--chart-3))',
40
- 4: 'hsl(var(--chart-4))',
41
- 5: 'hsl(var(--chart-5))',
42
- 6: 'hsl(var(--chart-6))',
43
- 7: 'hsl(var(--chart-7))',
44
- 8: 'hsl(var(--chart-8))',
45
- },
46
- sidebar: {
47
- DEFAULT: 'hsl(var(--sidebar-background))',
48
- foreground: 'hsl(var(--sidebar-foreground))',
49
- primary: 'hsl(var(--sidebar-primary))',
50
- 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
51
- accent: 'hsl(var(--sidebar-accent))',
52
- 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
53
- border: 'hsl(var(--sidebar-border))',
54
- ring: 'hsl(var(--sidebar-ring))',
55
- },
56
- },
57
- borderRadius: {
58
- lg: 'var(--radius)',
59
- md: 'calc(var(--radius) - 2px)',
60
- sm: 'calc(var(--radius) - 4px)',
61
- },
62
- keyframes: {
63
- 'accordion-down': {
64
- from: { height: '0' },
65
- to: { height: 'var(--radix-accordion-content-height)' },
66
- },
67
- 'accordion-up': {
68
- from: { height: 'var(--radix-accordion-content-height)' },
69
- to: { height: '0' },
70
- },
71
- },
72
- animation: {
73
- 'accordion-down': 'accordion-down 0.2s ease-out',
74
- 'accordion-up': 'accordion-up 0.2s ease-out',
75
- },
76
- };
77
-
78
- export { extend };