@litelens/design-system 1.2.2 → 1.2.5
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.
|
@@ -61,7 +61,7 @@ var ResourceLink = ({
|
|
|
61
61
|
) : /* @__PURE__ */ jsx("span", { className: cn("text-info cursor-default", className), children: truncate ? /* @__PURE__ */ jsx("span", { ref, className: cn("max-w-65 inline-block truncate", truncateTextClassName), children }) : children });
|
|
62
62
|
if (!truncate || !isOverflowing) return inner;
|
|
63
63
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
64
|
-
/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
64
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { render: inner }),
|
|
65
65
|
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("span", { className: "break-all font-mono", children }) })
|
|
66
66
|
] });
|
|
67
67
|
};
|
|
@@ -239,21 +239,26 @@ var ResourceBulkDeletionButton = ({
|
|
|
239
239
|
tooltip,
|
|
240
240
|
onClick
|
|
241
241
|
}) => /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
242
|
-
/* @__PURE__ */ jsx(
|
|
243
|
-
|
|
242
|
+
/* @__PURE__ */ jsx(
|
|
243
|
+
TooltipTrigger,
|
|
244
244
|
{
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
245
|
+
render: /* @__PURE__ */ jsxs(
|
|
246
|
+
Button,
|
|
247
|
+
{
|
|
248
|
+
size: "icon-sm",
|
|
249
|
+
variant: "destructive",
|
|
250
|
+
className: "relative rounded-full",
|
|
251
|
+
disabled: count === 0,
|
|
252
|
+
"aria-label": ariaLabel,
|
|
253
|
+
onClick,
|
|
254
|
+
children: [
|
|
255
|
+
/* @__PURE__ */ jsx(MinusIcon, { className: "size-3.5" }),
|
|
256
|
+
count > 0 && /* @__PURE__ */ jsx("span", { className: "bg-destructive absolute -right-2.5 -top-2.5 flex size-5 items-center justify-center rounded-full text-[10px] font-bold text-white", children: count })
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
)
|
|
255
260
|
}
|
|
256
|
-
)
|
|
261
|
+
),
|
|
257
262
|
/* @__PURE__ */ jsx(TooltipContent, { children: tooltip })
|
|
258
263
|
] });
|
|
259
264
|
var ResourceCreationButton = ({
|
|
@@ -261,7 +266,12 @@ var ResourceCreationButton = ({
|
|
|
261
266
|
tooltip,
|
|
262
267
|
onClick
|
|
263
268
|
}) => /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
264
|
-
/* @__PURE__ */ jsx(
|
|
269
|
+
/* @__PURE__ */ jsx(
|
|
270
|
+
TooltipTrigger,
|
|
271
|
+
{
|
|
272
|
+
render: /* @__PURE__ */ jsx(Button, { size: "icon-sm", className: "rounded-full", "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ jsx(PlusIcon, { className: "size-3.5" }) })
|
|
273
|
+
}
|
|
274
|
+
),
|
|
265
275
|
/* @__PURE__ */ jsx(TooltipContent, { children: tooltip })
|
|
266
276
|
] });
|
|
267
277
|
var ResourceDeletionButton = ({
|
|
@@ -341,17 +351,22 @@ var ResourceRestartButton = ({
|
|
|
341
351
|
}) => {
|
|
342
352
|
if (mode === "icon-button") {
|
|
343
353
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
344
|
-
/* @__PURE__ */ jsx(
|
|
345
|
-
|
|
354
|
+
/* @__PURE__ */ jsx(
|
|
355
|
+
TooltipTrigger,
|
|
346
356
|
{
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
357
|
+
render: /* @__PURE__ */ jsx(
|
|
358
|
+
Button,
|
|
359
|
+
{
|
|
360
|
+
"aria-label": ariaLabel,
|
|
361
|
+
variant: "ghost",
|
|
362
|
+
size: "icon-sm",
|
|
363
|
+
disabled,
|
|
364
|
+
onClick,
|
|
365
|
+
children: /* @__PURE__ */ jsx(RefreshCwIcon, {})
|
|
366
|
+
}
|
|
367
|
+
)
|
|
353
368
|
}
|
|
354
|
-
)
|
|
369
|
+
),
|
|
355
370
|
/* @__PURE__ */ jsx(TooltipContent, { side: "bottom", children: "Restart" })
|
|
356
371
|
] });
|
|
357
372
|
}
|
|
@@ -381,17 +396,22 @@ var ResourceScaleButton = ({
|
|
|
381
396
|
] });
|
|
382
397
|
}
|
|
383
398
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
384
|
-
/* @__PURE__ */ jsx(
|
|
385
|
-
|
|
399
|
+
/* @__PURE__ */ jsx(
|
|
400
|
+
TooltipTrigger,
|
|
386
401
|
{
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
402
|
+
render: /* @__PURE__ */ jsx(
|
|
403
|
+
Button,
|
|
404
|
+
{
|
|
405
|
+
"aria-label": ariaLabel,
|
|
406
|
+
variant: "ghost",
|
|
407
|
+
size: "icon-sm",
|
|
408
|
+
disabled,
|
|
409
|
+
onClick,
|
|
410
|
+
children: /* @__PURE__ */ jsx(ScalingIcon, {})
|
|
411
|
+
}
|
|
412
|
+
)
|
|
393
413
|
}
|
|
394
|
-
)
|
|
414
|
+
),
|
|
395
415
|
/* @__PURE__ */ jsx(TooltipContent, { side: "bottom", children: "Scale" })
|
|
396
416
|
] });
|
|
397
417
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AnnotationBadge, ButtonGroup, ConfirmationModal, Divider, DonutChart, EmptyState, ErrorBoundary, ErrorToast, FormModal, LineIcon, LoadingSpinner, Markdown, ResourceBulkDeletionButton, ResourceCell, ResourceCreationButton, ResourceDeletionButton, ResourceDetailDrawer, ResourceDetailDrawerBody, ResourceDetailDrawerHeader, ResourceDetailEmptyBody, ResourceLink, ResourceModificationButton, ResourceRestartButton, ResourceScaleButton, SearchInput, SuccessToast, TOAST_STYLE, TableSkeletonLoader, TableSkeletonRow, TimezoneSelect, TruncatedText, renderErrorToast, renderSuccessToast } from '../chunk-
|
|
1
|
+
export { AnnotationBadge, ButtonGroup, ConfirmationModal, Divider, DonutChart, EmptyState, ErrorBoundary, ErrorToast, FormModal, LineIcon, LoadingSpinner, Markdown, ResourceBulkDeletionButton, ResourceCell, ResourceCreationButton, ResourceDeletionButton, ResourceDetailDrawer, ResourceDetailDrawerBody, ResourceDetailDrawerHeader, ResourceDetailEmptyBody, ResourceLink, ResourceModificationButton, ResourceRestartButton, ResourceScaleButton, SearchInput, SuccessToast, TOAST_STYLE, TableSkeletonLoader, TableSkeletonRow, TimezoneSelect, TruncatedText, renderErrorToast, renderSuccessToast } from '../chunk-JGKXK7R7.js';
|
|
2
2
|
import '../chunk-HQE2HUCM.js';
|
|
3
3
|
import '../chunk-E6ABB3KB.js';
|
|
4
4
|
import '../chunk-QUNCRUSO.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Checkbox, Collapsible, CollapsiblePanel, CollapsibleTrigger, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuPortal, ContextMenuSeparator, ContextMenuTrigger, Drawer, DrawerContent, DrawerPopup, DrawerPortal, DrawerViewport, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, Switch, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Textarea, Toaster, textareaVariants } from './chunk-NIPTKY6U.js';
|
|
2
|
-
export { AnnotationBadge, ButtonGroup, ConfirmationModal, Divider, DonutChart, EmptyState, ErrorBoundary, ErrorToast, FormModal, LineIcon, LoadingSpinner, Markdown, ResourceBulkDeletionButton, ResourceCell, ResourceCreationButton, ResourceDeletionButton, ResourceDetailDrawer, ResourceDetailDrawerBody, ResourceDetailDrawerHeader, ResourceDetailEmptyBody, ResourceLink, ResourceModificationButton, ResourceRestartButton, ResourceScaleButton, SearchInput, SuccessToast, TOAST_STYLE, TableSkeletonLoader, TableSkeletonRow, TimezoneSelect, TruncatedText, renderErrorToast, renderSuccessToast } from './chunk-
|
|
2
|
+
export { AnnotationBadge, ButtonGroup, ConfirmationModal, Divider, DonutChart, EmptyState, ErrorBoundary, ErrorToast, FormModal, LineIcon, LoadingSpinner, Markdown, ResourceBulkDeletionButton, ResourceCell, ResourceCreationButton, ResourceDeletionButton, ResourceDetailDrawer, ResourceDetailDrawerBody, ResourceDetailDrawerHeader, ResourceDetailEmptyBody, ResourceLink, ResourceModificationButton, ResourceRestartButton, ResourceScaleButton, SearchInput, SuccessToast, TOAST_STYLE, TableSkeletonLoader, TableSkeletonRow, TimezoneSelect, TruncatedText, renderErrorToast, renderSuccessToast } from './chunk-JGKXK7R7.js';
|
|
3
3
|
export { Badge, Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ScrollArea, ScrollBar, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, toast } from './chunk-HQE2HUCM.js';
|
|
4
4
|
import './chunk-7M2VOCYN.js';
|
|
5
5
|
export { useCopyToClipboard } from './chunk-3ZL7QROP.js';
|