laif-ds 0.2.33 → 0.2.35

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.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as r, jsxs as s } from "react/jsx-runtime";
3
- import { Root as l, Trigger as p, Portal as m, Content as c, Arrow as f, Provider as u } from "../../node_modules/@radix-ui/react-tooltip/dist/index.js";
3
+ import { Root as l, Portal as p, Content as m, Arrow as c, Provider as f, Trigger as u } from "../../node_modules/@radix-ui/react-tooltip/dist/index.js";
4
4
  import { cva as e } from "../../node_modules/class-variance-authority/dist/index.js";
5
5
  import { cn as i } from "../../lib/utils.js";
6
6
  const g = e(
@@ -35,7 +35,7 @@ function b({
35
35
  ...o
36
36
  }) {
37
37
  return /* @__PURE__ */ r(
38
- u,
38
+ f,
39
39
  {
40
40
  "data-slot": "tooltip-provider",
41
41
  delayDuration: t,
@@ -51,7 +51,7 @@ function w({
51
51
  function z({
52
52
  ...t
53
53
  }) {
54
- return /* @__PURE__ */ r(p, { "data-slot": "tooltip-trigger", ...t });
54
+ return /* @__PURE__ */ r(u, { "data-slot": "tooltip-trigger", ...t });
55
55
  }
56
56
  function V({
57
57
  className: t,
@@ -60,8 +60,8 @@ function V({
60
60
  children: d,
61
61
  ...n
62
62
  }) {
63
- return /* @__PURE__ */ r(m, { children: /* @__PURE__ */ s(
64
- c,
63
+ return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ s(
64
+ m,
65
65
  {
66
66
  "data-slot": "tooltip-content",
67
67
  sideOffset: o,
@@ -70,7 +70,7 @@ function V({
70
70
  children: [
71
71
  d,
72
72
  /* @__PURE__ */ r(
73
- f,
73
+ c,
74
74
  {
75
75
  className: i(x({ variant: a }))
76
76
  }
package/dist/index.d.ts CHANGED
@@ -312,9 +312,12 @@ export declare interface AvatarItem {
312
312
  alt?: string;
313
313
  }
314
314
 
315
- export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
315
+ export declare function Badge({ className, variant, asChild, ...props }: BadgeProps & React_2.ComponentProps<"span">): JSX.Element;
316
+
317
+ export declare interface BadgeProps extends React_2.ComponentPropsWithoutRef<"span"> {
318
+ variant?: "default" | "secondary" | "ghost" | "destructive" | "outline" | "outline-primary";
316
319
  asChild?: boolean;
317
- }): JSX.Element;
320
+ }
318
321
 
319
322
  export declare const badgeVariants: (props?: ({
320
323
  variant?: "default" | "secondary" | "ghost" | "destructive" | "outline" | "outline-primary" | null | undefined;
@@ -362,15 +365,21 @@ export declare function BreadcrumbSeparator({ children, className, ...props }: R
362
365
 
363
366
  export declare function Button({ className, variant, size, asChild, iconLeft, iconRight, isLoading, ...props }: ButtonProps): JSX.Element;
364
367
 
365
- export declare interface ButtonProps extends React_2.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
368
+ export declare interface ButtonProps extends React_2.ComponentProps<"button"> {
369
+ variant?: ButtonVariant;
370
+ size?: ButtonSize;
366
371
  asChild?: boolean;
367
372
  iconLeft?: IconName;
368
373
  iconRight?: IconName;
369
374
  isLoading?: boolean;
370
375
  }
371
376
 
377
+ export declare type ButtonSize = "default" | "sm" | "lg" | "icon";
378
+
379
+ export declare type ButtonVariant = "default" | "destructive" | "outline" | "outline-primary" | "outline-destructive" | "secondary" | "ghost" | "ghost-destructive" | "ghost-accent" | "link";
380
+
372
381
  export declare const buttonVariants: (props?: ({
373
- variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | "outline-primary" | "ghost-destructive" | "ghost-accent" | null | undefined;
382
+ variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | "outline-primary" | "outline-destructive" | "ghost-destructive" | "ghost-accent" | null | undefined;
374
383
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
375
384
  } & ClassProp) | undefined) => string;
376
385
 
@@ -1318,11 +1327,14 @@ export declare function InputOTPSlot({ index, className, ...props }: React_2.Com
1318
1327
  index: number;
1319
1328
  }): JSX.Element;
1320
1329
 
1321
- declare interface InputProps extends Omit<React_2.ComponentProps<"input">, "label" | "size">, VariantProps<typeof inputVariants> {
1330
+ export declare interface InputProps extends Omit<React_2.ComponentProps<"input">, "label" | "size">, VariantProps<typeof inputVariants> {
1322
1331
  label?: string | React_2.ReactNode;
1323
1332
  labelClassName?: string;
1324
1333
  iconLeft?: IconName;
1325
1334
  iconRight?: IconName;
1335
+ startContent?: React_2.ReactNode;
1336
+ endContent?: React_2.ReactNode;
1337
+ errorMessage?: string;
1326
1338
  }
1327
1339
 
1328
1340
  export declare function InputSelector({ value, onChange, min, max, className, buttonClassName, counterClassName, }: InputSelectorProps): JSX.Element;
package/dist/index.js CHANGED
@@ -17,10 +17,10 @@ import { Separator as z } from "./components/ui/separator.js";
17
17
  import { Skeleton as O } from "./components/ui/skeleton.js";
18
18
  import { Switch as W } from "./components/ui/switch.js";
19
19
  import { Textarea as q } from "./components/ui/textarea.js";
20
- import { Toggle as K, toggleVariants as Q } from "./components/ui/toggle.js";
21
- import { Tooltip as Y, TooltipContent as Z, TooltipProvider as _, TooltipTrigger as $ } from "./components/ui/tooltip.js";
22
- import { TypingIndicator as re } from "./components/ui/typing-indicator.js";
23
- import { Toaster as te } from "./components/ui/toaster.js";
20
+ import { Toaster as K } from "./components/ui/toaster.js";
21
+ import { Toggle as X, toggleVariants as Y } from "./components/ui/toggle.js";
22
+ import { Tooltip as _, TooltipContent as $, TooltipProvider as ee, TooltipTrigger as re } from "./components/ui/tooltip.js";
23
+ import { TypingIndicator as te } from "./components/ui/typing-indicator.js";
24
24
  import { Accordion as ne, AccordionContent as ie, AccordionItem as pe, AccordionTrigger as me } from "./components/ui/accordion.js";
25
25
  import { Alert as ue, AlertDescription as xe, AlertTitle as de } from "./components/ui/alert.js";
26
26
  import { AlertDialog as ge, AlertDialogAction as Ce, AlertDialogCancel as be, AlertDialogContent as se, AlertDialogDescription as Se, AlertDialogFooter as Me, AlertDialogHeader as ce, AlertDialogTitle as Te, AlertDialogTrigger as De } from "./components/ui/alert-dialog.js";
@@ -341,15 +341,15 @@ export {
341
341
  at as TabsTrigger,
342
342
  q as Textarea,
343
343
  Tt as ThemeSwitcher,
344
- te as Toaster,
345
- K as Toggle,
344
+ K as Toaster,
345
+ X as Toggle,
346
346
  it as ToggleGroup,
347
347
  pt as ToggleGroupItem,
348
- Y as Tooltip,
349
- Z as TooltipContent,
350
- _ as TooltipProvider,
351
- $ as TooltipTrigger,
352
- re as TypingIndicator,
348
+ _ as Tooltip,
349
+ $ as TooltipContent,
350
+ ee as TooltipProvider,
351
+ re as TooltipTrigger,
352
+ te as TypingIndicator,
353
353
  ke as Typo,
354
354
  Gn as WeeklyCalendar,
355
355
  x as badgeVariants,
@@ -363,7 +363,7 @@ export {
363
363
  Sa as previewFileModal,
364
364
  Ma as safePreviewFileModal,
365
365
  Nn as stringToHexColor,
366
- Q as toggleVariants,
366
+ Y as toggleVariants,
367
367
  On as useAudioRecording,
368
368
  Wn as useAutoScroll,
369
369
  qn as useAutosizeTextArea,
@@ -5,7 +5,7 @@ import { useComposedRefs as N } from "../../react-compose-refs/dist/index.js";
5
5
  import { createContextScope as W } from "../../react-context/dist/index.js";
6
6
  import { DismissableLayer as $ } from "../../react-dismissable-layer/dist/index.js";
7
7
  import { useId as z } from "../../react-id/dist/index.js";
8
- import { createPopperScope as S, Root as J, Anchor as Q, Arrow as Z, Content as ee } from "../../react-popper/dist/index.js";
8
+ import { createPopperScope as S, Root as J, Arrow as Q, Anchor as Z, Content as ee } from "../../react-popper/dist/index.js";
9
9
  import { Portal as te } from "../../react-portal/dist/index.js";
10
10
  import { Presence as G } from "../../react-presence/dist/index.js";
11
11
  import { Primitive as oe } from "../../react-primitive/dist/index.js";
@@ -104,7 +104,7 @@ B.displayName = R;
104
104
  var L = "TooltipTrigger", U = s.forwardRef(
105
105
  (t, o) => {
106
106
  const { __scopeTooltip: e, ...r } = t, n = _(L, e), c = k(L, e), i = A(e), v = s.useRef(null), a = N(o, v, n.onTriggerChange), p = s.useRef(!1), l = s.useRef(!1), d = s.useCallback(() => p.current = !1, []);
107
- return s.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ f(Q, { asChild: !0, ...i, children: /* @__PURE__ */ f(
107
+ return s.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ f(Z, { asChild: !0, ...i, children: /* @__PURE__ */ f(
108
108
  oe.button,
109
109
  {
110
110
  "aria-describedby": n.open ? n.contentId : void 0,
@@ -226,7 +226,7 @@ var X = "TooltipArrow", K = s.forwardRef(
226
226
  return ve(
227
227
  X,
228
228
  e
229
- ).isInside ? null : /* @__PURE__ */ f(Z, { ...n, ...r, ref: o });
229
+ ).isInside ? null : /* @__PURE__ */ f(Q, { ...n, ...r, ref: o });
230
230
  }
231
231
  );
232
232
  K.displayName = X;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import e from "../../_virtual/index5.js";
2
+ import e from "../../_virtual/index3.js";
3
3
  export {
4
4
  e as EventEmitter,
5
5
  e as default
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __module as x } from "../../_virtual/index7.js";
2
+ import { __module as x } from "../../_virtual/index6.js";
3
3
  var w;
4
4
  function O() {
5
5
  return w ? x.exports : (w = 1, (function(d) {
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
3
3
  import { ok as u } from "../../devlop/lib/default.js";
4
4
  import { svg as m, html as C } from "../../property-information/index.js";
5
5
  import { stringify as N } from "../../space-separated-tokens/index.js";
6
- import S from "../../../_virtual/index3.js";
6
+ import S from "../../../_virtual/index4.js";
7
7
  import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
8
8
  import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
9
9
  import { VFileMessage as h } from "../../vfile-message/lib/index.js";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import e from "../../../../_virtual/index5.js";
2
+ import e from "../../../../_virtual/index3.js";
3
3
  var r = new e(), n = "recharts.syncEvent.tooltip";
4
4
  export {
5
5
  n as TOOLTIP_SYNC_EVENT,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __exports as r } from "../../../_virtual/index6.js";
2
+ import { __exports as r } from "../../../_virtual/index7.js";
3
3
  import { __require as c } from "../../inline-style-parser/index.js";
4
4
  var f;
5
5
  function j() {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { bail as P } from "../../bail/index.js";
3
- import y from "../../../_virtual/index4.js";
3
+ import y from "../../../_virtual/index5.js";
4
4
  import z from "../../is-plain-obj/index.js";
5
5
  import { CallableInstance as C } from "./callable-instance.js";
6
6
  import { trough as A } from "../../trough/lib/index.js";