@spark-ui/components 13.0.1 → 13.0.3-beta.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 (48) hide show
  1. package/dist/DialogTrigger-8oDlAJjU.d.mts +142 -0
  2. package/dist/DialogTrigger-8oDlAJjU.d.ts +142 -0
  3. package/dist/DialogTrigger-woU7vsJi.d.mts +142 -0
  4. package/dist/DialogTrigger-woU7vsJi.d.ts +142 -0
  5. package/dist/avatar/index.mjs +2 -2
  6. package/dist/carousel/index.mjs +2 -2
  7. package/dist/chunk-2BSBKLHG.mjs +358 -0
  8. package/dist/chunk-2BSBKLHG.mjs.map +1 -0
  9. package/dist/chunk-D7YBYT5H.mjs +308 -0
  10. package/dist/chunk-D7YBYT5H.mjs.map +1 -0
  11. package/dist/chunk-HEKSVWYW.mjs +800 -0
  12. package/dist/chunk-HEKSVWYW.mjs.map +1 -0
  13. package/dist/chunk-TKAU6SMC.mjs +197 -0
  14. package/dist/chunk-TKAU6SMC.mjs.map +1 -0
  15. package/dist/chunk-WA56YHV3.mjs +358 -0
  16. package/dist/chunk-WA56YHV3.mjs.map +1 -0
  17. package/dist/chunk-WLI4EPS6.mjs +358 -0
  18. package/dist/chunk-WLI4EPS6.mjs.map +1 -0
  19. package/dist/chunk-XYK6V3JF.mjs +53 -0
  20. package/dist/chunk-XYK6V3JF.mjs.map +1 -0
  21. package/dist/combobox/index.mjs +3 -3
  22. package/dist/dialog/index.mjs +2 -2
  23. package/dist/docgen.json +3036 -2846
  24. package/dist/drawer/index.d.mts +37 -29
  25. package/dist/drawer/index.d.ts +37 -29
  26. package/dist/drawer/index.js +125 -89
  27. package/dist/drawer/index.js.map +1 -1
  28. package/dist/drawer/index.mjs +127 -89
  29. package/dist/drawer/index.mjs.map +1 -1
  30. package/dist/dropdown/index.mjs +2 -2
  31. package/dist/file-upload/index.mjs +3 -3
  32. package/dist/index-BRKaV3lI.d.mts +93 -0
  33. package/dist/index-BRKaV3lI.d.ts +93 -0
  34. package/dist/index-Cw_DIfiq.d.mts +93 -0
  35. package/dist/index-Cw_DIfiq.d.ts +93 -0
  36. package/dist/pagination/index.mjs +3 -3
  37. package/dist/popover/index.mjs +1 -1
  38. package/dist/scrolling-list/index.mjs +3 -3
  39. package/dist/snackbar/index.mjs +3 -3
  40. package/dist/spinner/index.d.mts +1 -1
  41. package/dist/spinner/index.d.ts +1 -1
  42. package/dist/stepper/index.mjs +2 -2
  43. package/dist/tabs/index.mjs +3 -3
  44. package/dist/toast/index.js +2 -2
  45. package/dist/toast/index.js.map +1 -1
  46. package/dist/toast/index.mjs +5 -5
  47. package/dist/toast/index.mjs.map +1 -1
  48. package/package.json +5 -5
@@ -0,0 +1,93 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Popover as Popover$2 } from 'radix-ui';
3
+ import { Ref, ReactNode, ReactElement } from 'react';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ type PopoverIntent = 'surface' | 'main' | 'support' | 'accent' | 'basic' | 'success' | 'alert' | 'danger' | 'info' | 'neutral';
8
+
9
+ type PopoverProps = Popover$2.PopoverProps & {
10
+ intent?: PopoverIntent;
11
+ };
12
+ declare const Popover$1: {
13
+ ({ children, intent, modal, ...rest }: PopoverProps): react_jsx_runtime.JSX.Element;
14
+ displayName: string;
15
+ };
16
+
17
+ type AnchorProps = Popover$2.PopoverAnchorProps & {
18
+ ref?: Ref<HTMLDivElement>;
19
+ };
20
+ declare const Anchor: {
21
+ ({ asChild, children, ref, ...rest }: AnchorProps): react_jsx_runtime.JSX.Element;
22
+ displayName: string;
23
+ };
24
+
25
+ type ArrowProps = Popover$2.PopoverArrowProps & {
26
+ ref?: Ref<SVGSVGElement>;
27
+ };
28
+ declare const Arrow: {
29
+ ({ asChild, width, height, className, ref, ...rest }: ArrowProps): react_jsx_runtime.JSX.Element;
30
+ displayName: string;
31
+ };
32
+
33
+ type CloseButtonProps = Popover$2.PopoverCloseProps & {
34
+ 'aria-label': string;
35
+ ref?: Ref<HTMLButtonElement>;
36
+ };
37
+ declare const CloseButton: {
38
+ ({ "aria-label": ariaLabel, className, ref, ...rest }: CloseButtonProps): react_jsx_runtime.JSX.Element;
39
+ displayName: string;
40
+ };
41
+
42
+ declare const styles: (props?: ({
43
+ intent?: "main" | "surface" | "support" | "accent" | "basic" | "success" | "alert" | "danger" | "info" | "neutral" | null | undefined;
44
+ matchTriggerWidth?: boolean | null | undefined;
45
+ enforceBoundaries?: boolean | null | undefined;
46
+ inset?: boolean | null | undefined;
47
+ elevation?: "popover" | "dropdown" | null | undefined;
48
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
49
+ type StylesProps = VariantProps<typeof styles>;
50
+
51
+ type ContentProps = Popover$2.PopoverContentProps & StylesProps & {
52
+ ref?: Ref<HTMLDivElement>;
53
+ };
54
+ declare const Content: {
55
+ ({ className, children, matchTriggerWidth, align, arrowPadding, asChild, avoidCollisions, "aria-labelledby": ariaLabelledBy, collisionBoundary, collisionPadding, hideWhenDetached, side, sideOffset, sticky, inset, elevation, ref, ...rest }: ContentProps): react_jsx_runtime.JSX.Element;
56
+ displayName: string;
57
+ };
58
+
59
+ interface HeaderProps {
60
+ children: ReactNode;
61
+ className?: string;
62
+ ref?: Ref<HTMLDivElement>;
63
+ }
64
+ declare const Header: {
65
+ ({ children, className, ref, ...rest }: HeaderProps): react_jsx_runtime.JSX.Element;
66
+ displayName: string;
67
+ };
68
+
69
+ type PortalProps = Popover$2.PopoverPortalProps;
70
+ declare const Portal: {
71
+ ({ children, ...rest }: PortalProps): ReactElement;
72
+ displayName: string;
73
+ };
74
+
75
+ type TriggerProps = Popover$2.PopoverTriggerProps & {
76
+ ref?: Ref<HTMLButtonElement>;
77
+ };
78
+ declare const Trigger: {
79
+ ({ asChild, children, ref, ...rest }: TriggerProps): react_jsx_runtime.JSX.Element;
80
+ displayName: string;
81
+ };
82
+
83
+ declare const Popover: typeof Popover$1 & {
84
+ Anchor: typeof Anchor;
85
+ Arrow: typeof Arrow;
86
+ CloseButton: typeof CloseButton;
87
+ Content: typeof Content;
88
+ Header: typeof Header;
89
+ Portal: typeof Portal;
90
+ Trigger: typeof Trigger;
91
+ };
92
+
93
+ export { type ContentProps as C, Popover as P };
@@ -0,0 +1,93 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Popover as Popover$2 } from 'radix-ui';
3
+ import { Ref, ReactNode, ReactElement } from 'react';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ type PopoverIntent = 'surface' | 'main' | 'support' | 'accent' | 'basic' | 'success' | 'alert' | 'danger' | 'info' | 'neutral';
8
+
9
+ type PopoverProps = Popover$2.PopoverProps & {
10
+ intent?: PopoverIntent;
11
+ };
12
+ declare const Popover$1: {
13
+ ({ children, intent, modal, ...rest }: PopoverProps): react_jsx_runtime.JSX.Element;
14
+ displayName: string;
15
+ };
16
+
17
+ type AnchorProps = Popover$2.PopoverAnchorProps & {
18
+ ref?: Ref<HTMLDivElement>;
19
+ };
20
+ declare const Anchor: {
21
+ ({ asChild, children, ref, ...rest }: AnchorProps): react_jsx_runtime.JSX.Element;
22
+ displayName: string;
23
+ };
24
+
25
+ type ArrowProps = Popover$2.PopoverArrowProps & {
26
+ ref?: Ref<SVGSVGElement>;
27
+ };
28
+ declare const Arrow: {
29
+ ({ asChild, width, height, className, ref, ...rest }: ArrowProps): react_jsx_runtime.JSX.Element;
30
+ displayName: string;
31
+ };
32
+
33
+ type CloseButtonProps = Popover$2.PopoverCloseProps & {
34
+ 'aria-label': string;
35
+ ref?: Ref<HTMLButtonElement>;
36
+ };
37
+ declare const CloseButton: {
38
+ ({ "aria-label": ariaLabel, className, ref, ...rest }: CloseButtonProps): react_jsx_runtime.JSX.Element;
39
+ displayName: string;
40
+ };
41
+
42
+ declare const styles: (props?: ({
43
+ intent?: "surface" | "main" | "support" | "accent" | "basic" | "success" | "alert" | "danger" | "info" | "neutral" | null | undefined;
44
+ matchTriggerWidth?: boolean | null | undefined;
45
+ enforceBoundaries?: boolean | null | undefined;
46
+ inset?: boolean | null | undefined;
47
+ elevation?: "popover" | "dropdown" | null | undefined;
48
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
49
+ type StylesProps = VariantProps<typeof styles>;
50
+
51
+ type ContentProps = Popover$2.PopoverContentProps & StylesProps & {
52
+ ref?: Ref<HTMLDivElement>;
53
+ };
54
+ declare const Content: {
55
+ ({ className, children, matchTriggerWidth, align, arrowPadding, asChild, avoidCollisions, "aria-labelledby": ariaLabelledBy, collisionBoundary, collisionPadding, hideWhenDetached, side, sideOffset, sticky, inset, elevation, ref, ...rest }: ContentProps): react_jsx_runtime.JSX.Element;
56
+ displayName: string;
57
+ };
58
+
59
+ interface HeaderProps {
60
+ children: ReactNode;
61
+ className?: string;
62
+ ref?: Ref<HTMLDivElement>;
63
+ }
64
+ declare const Header: {
65
+ ({ children, className, ref, ...rest }: HeaderProps): react_jsx_runtime.JSX.Element;
66
+ displayName: string;
67
+ };
68
+
69
+ type PortalProps = Popover$2.PopoverPortalProps;
70
+ declare const Portal: {
71
+ ({ children, ...rest }: PortalProps): ReactElement;
72
+ displayName: string;
73
+ };
74
+
75
+ type TriggerProps = Popover$2.PopoverTriggerProps & {
76
+ ref?: Ref<HTMLButtonElement>;
77
+ };
78
+ declare const Trigger: {
79
+ ({ asChild, children, ref, ...rest }: TriggerProps): react_jsx_runtime.JSX.Element;
80
+ displayName: string;
81
+ };
82
+
83
+ declare const Popover: typeof Popover$1 & {
84
+ Anchor: typeof Anchor;
85
+ Arrow: typeof Arrow;
86
+ CloseButton: typeof CloseButton;
87
+ Content: typeof Content;
88
+ Header: typeof Header;
89
+ Portal: typeof Portal;
90
+ Trigger: typeof Trigger;
91
+ };
92
+
93
+ export { type ContentProps as C, type PopoverProps as P, type TriggerProps as T, Popover as a };
@@ -0,0 +1,93 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Popover as Popover$2 } from 'radix-ui';
3
+ import { Ref, ReactNode, ReactElement } from 'react';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ type PopoverIntent = 'surface' | 'main' | 'support' | 'accent' | 'basic' | 'success' | 'alert' | 'danger' | 'info' | 'neutral';
8
+
9
+ type PopoverProps = Popover$2.PopoverProps & {
10
+ intent?: PopoverIntent;
11
+ };
12
+ declare const Popover$1: {
13
+ ({ children, intent, modal, ...rest }: PopoverProps): react_jsx_runtime.JSX.Element;
14
+ displayName: string;
15
+ };
16
+
17
+ type AnchorProps = Popover$2.PopoverAnchorProps & {
18
+ ref?: Ref<HTMLDivElement>;
19
+ };
20
+ declare const Anchor: {
21
+ ({ asChild, children, ref, ...rest }: AnchorProps): react_jsx_runtime.JSX.Element;
22
+ displayName: string;
23
+ };
24
+
25
+ type ArrowProps = Popover$2.PopoverArrowProps & {
26
+ ref?: Ref<SVGSVGElement>;
27
+ };
28
+ declare const Arrow: {
29
+ ({ asChild, width, height, className, ref, ...rest }: ArrowProps): react_jsx_runtime.JSX.Element;
30
+ displayName: string;
31
+ };
32
+
33
+ type CloseButtonProps = Popover$2.PopoverCloseProps & {
34
+ 'aria-label': string;
35
+ ref?: Ref<HTMLButtonElement>;
36
+ };
37
+ declare const CloseButton: {
38
+ ({ "aria-label": ariaLabel, className, ref, ...rest }: CloseButtonProps): react_jsx_runtime.JSX.Element;
39
+ displayName: string;
40
+ };
41
+
42
+ declare const styles: (props?: ({
43
+ intent?: "surface" | "main" | "support" | "accent" | "basic" | "success" | "alert" | "danger" | "info" | "neutral" | null | undefined;
44
+ matchTriggerWidth?: boolean | null | undefined;
45
+ enforceBoundaries?: boolean | null | undefined;
46
+ inset?: boolean | null | undefined;
47
+ elevation?: "popover" | "dropdown" | null | undefined;
48
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
49
+ type StylesProps = VariantProps<typeof styles>;
50
+
51
+ type ContentProps = Popover$2.PopoverContentProps & StylesProps & {
52
+ ref?: Ref<HTMLDivElement>;
53
+ };
54
+ declare const Content: {
55
+ ({ className, children, matchTriggerWidth, align, arrowPadding, asChild, avoidCollisions, "aria-labelledby": ariaLabelledBy, collisionBoundary, collisionPadding, hideWhenDetached, side, sideOffset, sticky, inset, elevation, ref, ...rest }: ContentProps): react_jsx_runtime.JSX.Element;
56
+ displayName: string;
57
+ };
58
+
59
+ interface HeaderProps {
60
+ children: ReactNode;
61
+ className?: string;
62
+ ref?: Ref<HTMLDivElement>;
63
+ }
64
+ declare const Header: {
65
+ ({ children, className, ref, ...rest }: HeaderProps): react_jsx_runtime.JSX.Element;
66
+ displayName: string;
67
+ };
68
+
69
+ type PortalProps = Popover$2.PopoverPortalProps;
70
+ declare const Portal: {
71
+ ({ children, ...rest }: PortalProps): ReactElement;
72
+ displayName: string;
73
+ };
74
+
75
+ type TriggerProps = Popover$2.PopoverTriggerProps & {
76
+ ref?: Ref<HTMLButtonElement>;
77
+ };
78
+ declare const Trigger: {
79
+ ({ asChild, children, ref, ...rest }: TriggerProps): react_jsx_runtime.JSX.Element;
80
+ displayName: string;
81
+ };
82
+
83
+ declare const Popover: typeof Popover$1 & {
84
+ Anchor: typeof Anchor;
85
+ Arrow: typeof Arrow;
86
+ CloseButton: typeof CloseButton;
87
+ Content: typeof Content;
88
+ Header: typeof Header;
89
+ Portal: typeof Portal;
90
+ Trigger: typeof Trigger;
91
+ };
92
+
93
+ export { type ContentProps as C, type PopoverProps as P, type TriggerProps as T, Popover as a };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  IconButton
3
3
  } from "../chunk-DCXWGQVZ.mjs";
4
- import {
5
- Icon
6
- } from "../chunk-UMUMFMFB.mjs";
7
4
  import {
8
5
  Button
9
6
  } from "../chunk-2YM6GKWW.mjs";
10
7
  import "../chunk-GAK4SC2F.mjs";
8
+ import {
9
+ Icon
10
+ } from "../chunk-UMUMFMFB.mjs";
11
11
  import "../chunk-KEGAAGJW.mjs";
12
12
  import "../chunk-6QCEPQ3U.mjs";
13
13
 
@@ -2,9 +2,9 @@ import {
2
2
  Popover
3
3
  } from "../chunk-GPJMLIHC.mjs";
4
4
  import "../chunk-DCXWGQVZ.mjs";
5
- import "../chunk-UMUMFMFB.mjs";
6
5
  import "../chunk-2YM6GKWW.mjs";
7
6
  import "../chunk-GAK4SC2F.mjs";
7
+ import "../chunk-UMUMFMFB.mjs";
8
8
  import "../chunk-KEGAAGJW.mjs";
9
9
  import "../chunk-6QCEPQ3U.mjs";
10
10
  export {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  IconButton
3
3
  } from "../chunk-DCXWGQVZ.mjs";
4
- import {
5
- Icon
6
- } from "../chunk-UMUMFMFB.mjs";
7
4
  import {
8
5
  Button
9
6
  } from "../chunk-2YM6GKWW.mjs";
10
7
  import "../chunk-GAK4SC2F.mjs";
8
+ import {
9
+ Icon
10
+ } from "../chunk-UMUMFMFB.mjs";
11
11
  import "../chunk-KEGAAGJW.mjs";
12
12
  import {
13
13
  Slot
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  IconButton
3
3
  } from "../chunk-DCXWGQVZ.mjs";
4
- import {
5
- Icon
6
- } from "../chunk-UMUMFMFB.mjs";
7
4
  import {
8
5
  Button
9
6
  } from "../chunk-2YM6GKWW.mjs";
10
7
  import "../chunk-GAK4SC2F.mjs";
8
+ import {
9
+ Icon
10
+ } from "../chunk-UMUMFMFB.mjs";
11
11
  import "../chunk-KEGAAGJW.mjs";
12
12
  import "../chunk-6QCEPQ3U.mjs";
13
13
 
@@ -4,7 +4,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const spinnerStyles: (props?: ({
7
- size?: "current" | "sm" | "md" | "full" | null | undefined;
7
+ size?: "sm" | "md" | "current" | "full" | null | undefined;
8
8
  intent?: "main" | "current" | "alert" | "error" | "support" | "accent" | "basic" | "success" | "info" | "neutral" | null | undefined;
9
9
  isBackgroundVisible?: boolean | null | undefined;
10
10
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -4,7 +4,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const spinnerStyles: (props?: ({
7
- size?: "current" | "sm" | "md" | "full" | null | undefined;
7
+ size?: "sm" | "md" | "current" | "full" | null | undefined;
8
8
  intent?: "main" | "current" | "alert" | "error" | "support" | "accent" | "basic" | "success" | "info" | "neutral" | null | undefined;
9
9
  isBackgroundVisible?: boolean | null | undefined;
10
10
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  IconButton
7
7
  } from "../chunk-DCXWGQVZ.mjs";
8
+ import "../chunk-2YM6GKWW.mjs";
9
+ import "../chunk-GAK4SC2F.mjs";
8
10
  import {
9
11
  Icon
10
12
  } from "../chunk-UMUMFMFB.mjs";
11
- import "../chunk-2YM6GKWW.mjs";
12
- import "../chunk-GAK4SC2F.mjs";
13
13
  import "../chunk-KEGAAGJW.mjs";
14
14
  import "../chunk-6QCEPQ3U.mjs";
15
15
 
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  IconButton
6
6
  } from "../chunk-DCXWGQVZ.mjs";
7
- import {
8
- Icon
9
- } from "../chunk-UMUMFMFB.mjs";
10
7
  import {
11
8
  Button
12
9
  } from "../chunk-2YM6GKWW.mjs";
13
10
  import "../chunk-GAK4SC2F.mjs";
11
+ import {
12
+ Icon
13
+ } from "../chunk-UMUMFMFB.mjs";
14
14
  import "../chunk-KEGAAGJW.mjs";
15
15
  import "../chunk-6QCEPQ3U.mjs";
16
16
 
@@ -1343,9 +1343,9 @@ function Toast({ toast }) {
1343
1343
  const description = toast.data?.description ?? toast.description;
1344
1344
  if (!description) return null;
1345
1345
  if (typeof description !== "string") {
1346
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_toast.Toast.Description, { className: "text-body-1 break-all", render: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", {}), children: description });
1346
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_toast.Toast.Description, { className: "text-body-1", render: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", {}), children: description });
1347
1347
  }
1348
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_toast.Toast.Description, { className: "text-body-1 break-all" });
1348
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_toast.Toast.Description, { className: "text-body-1" });
1349
1349
  };
1350
1350
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_toast.Toast.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_class_variance_authority7.cx)("flex", compact ? "gap-lg items-center" : "gap-md flex-col"), children: [
1351
1351
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "gap-lg p-md flex grow items-center", children: [