@pathscale/ui 0.0.1 → 0.0.2

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 (69) hide show
  1. package/dist/Accordion-nwuRbRRw.d.ts +27 -0
  2. package/dist/Checkbox-BjaweaOH.d.ts +40 -0
  3. package/dist/Pagination-BlrjElGg.d.ts +43 -0
  4. package/dist/Progress-a616LgE0.d.ts +5 -0
  5. package/dist/Select-CP-TUHJv.d.ts +44 -0
  6. package/dist/Switch-3IXS_68H.d.ts +72 -0
  7. package/dist/Tabs-BNR3p92D.d.ts +42 -0
  8. package/dist/Tag-BPrhn-Ne.d.ts +42 -0
  9. package/dist/Tooltip-BfPongoz.d.ts +53 -0
  10. package/dist/Upload-BrFuZ4JA.d.ts +39 -0
  11. package/dist/chunk/3IHANYRN.js +98 -0
  12. package/dist/chunk/4TWLQ3IA.js +103 -0
  13. package/dist/chunk/6SBH3KSM.jsx +96 -0
  14. package/dist/chunk/CJZGTNJZ.js +115 -0
  15. package/dist/chunk/DBQ7IOPU.js +189 -0
  16. package/dist/chunk/DNTGSCVF.jsx +100 -0
  17. package/dist/chunk/ELRAUORW.jsx +179 -0
  18. package/dist/chunk/FPUQ25SO.js +137 -0
  19. package/dist/chunk/GLEAR2TS.jsx +160 -0
  20. package/dist/chunk/KV6LTJHI.jsx +175 -0
  21. package/dist/chunk/LI3HCFL7.jsx +132 -0
  22. package/dist/chunk/MMTAND25.jsx +126 -0
  23. package/dist/chunk/MXG3MBEN.jsx +148 -0
  24. package/dist/chunk/NZKPDBTE.js +118 -0
  25. package/dist/chunk/P2L6LFLS.js +144 -0
  26. package/dist/chunk/QLESLIWS.jsx +110 -0
  27. package/dist/chunk/QNOJ6PCD.js +278 -0
  28. package/dist/chunk/QONDPQ2I.jsx +105 -0
  29. package/dist/chunk/S3ZDSQSV.js +98 -0
  30. package/dist/chunk/V6Y5E7BL.js +133 -0
  31. package/dist/chunk/WCBMW2TP.jsx +203 -0
  32. package/dist/chunk/WOT36Q7O.js +166 -0
  33. package/dist/components/Progress/index.d.ts +2 -3
  34. package/dist/components/Progress/index.js +1 -278
  35. package/dist/components/Progress/index.jsx +7 -194
  36. package/dist/components/accordion/index.d.ts +5 -24
  37. package/dist/components/accordion/index.js +1 -118
  38. package/dist/components/accordion/index.jsx +3 -100
  39. package/dist/components/breadcrumb/index.d.ts +2 -2
  40. package/dist/components/breadcrumb/index.js +1 -133
  41. package/dist/components/breadcrumb/index.jsx +4 -120
  42. package/dist/components/checkbox/index.d.ts +5 -37
  43. package/dist/components/checkbox/index.js +1 -137
  44. package/dist/components/checkbox/index.jsx +3 -143
  45. package/dist/components/pagination/index.d.ts +5 -40
  46. package/dist/components/pagination/index.js +1 -189
  47. package/dist/components/pagination/index.jsx +3 -174
  48. package/dist/components/select/index.d.ts +5 -41
  49. package/dist/components/select/index.js +1 -98
  50. package/dist/components/select/index.jsx +3 -91
  51. package/dist/components/switch/index.d.ts +5 -69
  52. package/dist/components/switch/index.js +1 -144
  53. package/dist/components/switch/index.jsx +3 -155
  54. package/dist/components/tabs/index.d.ts +5 -39
  55. package/dist/components/tabs/index.js +1 -166
  56. package/dist/components/tabs/index.jsx +3 -170
  57. package/dist/components/tag/index.d.ts +5 -39
  58. package/dist/components/tag/index.js +1 -115
  59. package/dist/components/tag/index.jsx +3 -127
  60. package/dist/components/tooltip/index.d.ts +5 -50
  61. package/dist/components/tooltip/index.js +1 -103
  62. package/dist/components/tooltip/index.jsx +3 -95
  63. package/dist/components/upload/index.d.ts +5 -36
  64. package/dist/components/upload/index.js +1 -98
  65. package/dist/components/upload/index.jsx +3 -105
  66. package/dist/index.d.ts +11 -0
  67. package/dist/index.js +12 -1
  68. package/dist/index.jsx +47 -1
  69. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ import { Component, JSX } from 'solid-js';
2
+ import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
3
+
4
+ declare const accordionContainerVariants: {
5
+ (props?: (ConfigVariants<{
6
+ expanded: {
7
+ true: string;
8
+ false: string;
9
+ };
10
+ disabled: {
11
+ true: string;
12
+ false: string;
13
+ };
14
+ }> & ClassProps) | undefined): string;
15
+ variantKeys: ("disabled" | "expanded")[];
16
+ };
17
+
18
+ type AccordionProps = {
19
+ expanded?: boolean;
20
+ disabled?: boolean;
21
+ headerIsTrigger?: boolean;
22
+ header: JSX.Element;
23
+ content: JSX.Element;
24
+ } & VariantProps<typeof accordionContainerVariants> & JSX.HTMLAttributes<HTMLDivElement>;
25
+ declare const Accordion: Component<AccordionProps>;
26
+
27
+ export { Accordion as A, type AccordionProps as a };
@@ -0,0 +1,40 @@
1
+ import { Component, ComponentProps, JSX } from 'solid-js';
2
+ import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
3
+
4
+ declare const checkboxVariants: {
5
+ (props?: (ConfigVariants<{
6
+ size: {
7
+ sm: string;
8
+ md: string;
9
+ lg: string;
10
+ };
11
+ color: {
12
+ primary: string;
13
+ success: string;
14
+ warning: string;
15
+ danger: string;
16
+ };
17
+ checked: {
18
+ true: string;
19
+ false: string;
20
+ };
21
+ indeterminate: {
22
+ true: string;
23
+ false: string;
24
+ };
25
+ }> & ClassProps) | undefined): string;
26
+ variantKeys: ("size" | "color" | "checked" | "indeterminate")[];
27
+ };
28
+
29
+ type CheckboxProps = VariantProps<typeof checkboxVariants> & ClassProps & Omit<ComponentProps<"input">, "onChange" | "onFocus" | "onBlur"> & {
30
+ indeterminate?: boolean;
31
+ label?: JSX.Element;
32
+ onChange?: JSX.EventHandlerUnion<HTMLInputElement, Event>;
33
+ onFocus?: JSX.EventHandlerUnion<HTMLInputElement, FocusEvent>;
34
+ onBlur?: JSX.EventHandlerUnion<HTMLInputElement, FocusEvent>;
35
+ "aria-label"?: string;
36
+ "aria-describedby"?: string;
37
+ };
38
+ declare const Checkbox: Component<CheckboxProps>;
39
+
40
+ export { Checkbox as C, type CheckboxProps as a };
@@ -0,0 +1,43 @@
1
+ import { Component, JSX } from 'solid-js';
2
+ import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
3
+
4
+ declare const paginationItemVariants: {
5
+ (props?: (ConfigVariants<{
6
+ active: {
7
+ true: string;
8
+ false: string;
9
+ };
10
+ rounded: {
11
+ true: string;
12
+ false: string;
13
+ };
14
+ simple: {
15
+ true: string;
16
+ false: string;
17
+ };
18
+ size: {
19
+ sm: string;
20
+ md: string;
21
+ lg: string;
22
+ };
23
+ disabled: {
24
+ true: string;
25
+ false: string;
26
+ };
27
+ }> & ClassProps) | undefined): string;
28
+ variantKeys: ("size" | "rounded" | "disabled" | "active" | "simple")[];
29
+ };
30
+
31
+ type PaginationProps = {
32
+ total: number;
33
+ perPage?: number;
34
+ current: number;
35
+ onChange: (page: number) => void;
36
+ rangeBefore?: number;
37
+ rangeAfter?: number;
38
+ simple?: boolean;
39
+ children?: JSX.Element;
40
+ } & VariantProps<typeof paginationItemVariants> & JSX.HTMLAttributes<HTMLElement>;
41
+ declare const Pagination: Component<PaginationProps>;
42
+
43
+ export { Pagination as P, type PaginationProps as a };
@@ -0,0 +1,5 @@
1
+ import { Component } from 'solid-js';
2
+
3
+ declare const Progress: Component;
4
+
5
+ export { Progress as P };
@@ -0,0 +1,44 @@
1
+ import { Component, ComponentProps, JSX } from 'solid-js';
2
+ import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
3
+
4
+ declare const selectVariants: {
5
+ (props?: (ConfigVariants<{
6
+ size: {
7
+ sm: string;
8
+ md: string;
9
+ lg: string;
10
+ };
11
+ color: {
12
+ primary: string;
13
+ info: string;
14
+ success: string;
15
+ warning: string;
16
+ danger: string;
17
+ };
18
+ loading: {
19
+ true: string;
20
+ false: string;
21
+ };
22
+ expanded: {
23
+ true: string;
24
+ false: string;
25
+ };
26
+ rounded: {
27
+ true: string;
28
+ false: string;
29
+ };
30
+ }> & ClassProps) | undefined): string;
31
+ variantKeys: ("size" | "rounded" | "loading" | "color" | "expanded")[];
32
+ };
33
+
34
+ type SelectProps = VariantProps<typeof selectVariants> & ClassProps & ComponentProps<"select"> & {
35
+ placeholder?: string;
36
+ nativeSize?: string | number;
37
+ value?: string | number | null;
38
+ onChange?: JSX.EventHandlerUnion<HTMLSelectElement, Event>;
39
+ onFocus?: JSX.EventHandlerUnion<HTMLSelectElement, FocusEvent>;
40
+ onBlur?: JSX.EventHandlerUnion<HTMLSelectElement, FocusEvent>;
41
+ };
42
+ declare const Select: Component<SelectProps>;
43
+
44
+ export { Select as S, type SelectProps as a };
@@ -0,0 +1,72 @@
1
+ import { Component, JSX } from 'solid-js';
2
+ import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
3
+
4
+ declare const switchVariants: {
5
+ (props?: (ConfigVariants<{
6
+ size: {
7
+ sm: string;
8
+ md: string;
9
+ lg: string;
10
+ };
11
+ disabled: {
12
+ true: string;
13
+ false: string;
14
+ };
15
+ rounded: {
16
+ true: string;
17
+ false: string;
18
+ };
19
+ outlined: {
20
+ true: string;
21
+ false: string;
22
+ };
23
+ }> & ClassProps) | undefined): string;
24
+ variantKeys: ("size" | "rounded" | "outlined" | "disabled")[];
25
+ };
26
+ declare const checkVariants: {
27
+ (props?: (ConfigVariants<{
28
+ size: {
29
+ sm: string;
30
+ md: string;
31
+ lg: string;
32
+ };
33
+ color: {
34
+ blue: string;
35
+ green: string;
36
+ red: string;
37
+ yellow: string;
38
+ gray: string;
39
+ };
40
+ passiveColor: {
41
+ blue: string;
42
+ green: string;
43
+ red: string;
44
+ yellow: string;
45
+ gray: string;
46
+ };
47
+ rounded: {
48
+ true: string;
49
+ false: string;
50
+ };
51
+ outlined: {
52
+ true: string;
53
+ false: string;
54
+ };
55
+ }> & ClassProps) | undefined): string;
56
+ variantKeys: ("size" | "rounded" | "outlined" | "color" | "passiveColor")[];
57
+ };
58
+
59
+ type SwitchProps = {
60
+ children?: JSX.Element;
61
+ checked?: boolean;
62
+ defaultChecked?: boolean;
63
+ onChange?: (checked: boolean) => void;
64
+ name?: string;
65
+ required?: boolean;
66
+ disabled?: boolean;
67
+ "aria-label"?: string;
68
+ "aria-describedby"?: string;
69
+ } & VariantProps<typeof switchVariants> & VariantProps<typeof checkVariants> & Omit<JSX.InputHTMLAttributes<HTMLInputElement>, "onChange">;
70
+ declare const Switch: Component<SwitchProps>;
71
+
72
+ export { Switch as S, type SwitchProps as a };
@@ -0,0 +1,42 @@
1
+ import { Component, JSX } from 'solid-js';
2
+ import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
3
+
4
+ declare const tabsNavVariants: {
5
+ (props?: (ConfigVariants<{
6
+ type: {
7
+ basic: string;
8
+ boxed: string;
9
+ toggle: string;
10
+ "toggle-rounded": string;
11
+ };
12
+ size: {
13
+ sm: string;
14
+ md: string;
15
+ lg: string;
16
+ };
17
+ alignment: {
18
+ left: string;
19
+ center: string;
20
+ right: string;
21
+ };
22
+ expanded: {
23
+ true: string;
24
+ false: string;
25
+ };
26
+ }> & ClassProps) | undefined): string;
27
+ variantKeys: ("size" | "type" | "expanded" | "alignment")[];
28
+ };
29
+
30
+ type TabItem = {
31
+ label: string;
32
+ content: JSX.Element;
33
+ disabled?: boolean;
34
+ };
35
+ type TabsProps = {
36
+ items: TabItem[];
37
+ value?: number;
38
+ onChange?: (index: number) => void;
39
+ } & VariantProps<typeof tabsNavVariants>;
40
+ declare const Tabs: Component<TabsProps>;
41
+
42
+ export { Tabs as T, type TabsProps as a };
@@ -0,0 +1,42 @@
1
+ import { Component, ComponentProps, JSX } from 'solid-js';
2
+ import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
3
+
4
+ declare const tagVariants: {
5
+ (props?: (ConfigVariants<{
6
+ size: {
7
+ normal: string;
8
+ medium: string;
9
+ large: string;
10
+ };
11
+ type: {
12
+ primary: string;
13
+ info: string;
14
+ success: string;
15
+ warning: string;
16
+ danger: string;
17
+ dark: string;
18
+ light: string;
19
+ };
20
+ rounded: {
21
+ true: string;
22
+ false: string;
23
+ };
24
+ closable: {
25
+ true: string;
26
+ false: string;
27
+ };
28
+ }> & ClassProps) | undefined): string;
29
+ variantKeys: ("size" | "rounded" | "type" | "closable")[];
30
+ };
31
+
32
+ type TagProps = VariantProps<typeof tagVariants> & ClassProps & ComponentProps<"span"> & {
33
+ closable?: boolean;
34
+ attached?: boolean;
35
+ ariaCloseLabel?: string;
36
+ onClose?: (e: MouseEvent) => void;
37
+ closeIcon?: JSX.Element;
38
+ children?: JSX.Element;
39
+ };
40
+ declare const Tag: Component<TagProps>;
41
+
42
+ export { Tag as T, type TagProps as a };
@@ -0,0 +1,53 @@
1
+ import { Component, JSX } from 'solid-js';
2
+ import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
3
+
4
+ declare const tooltipVariants: {
5
+ (props?: (ConfigVariants<{
6
+ type: {
7
+ info: string;
8
+ success: string;
9
+ warning: string;
10
+ danger: string;
11
+ primary: string;
12
+ gray: string;
13
+ };
14
+ size: {
15
+ sm: string;
16
+ md: string;
17
+ lg: string;
18
+ };
19
+ rounded: {
20
+ true: string;
21
+ false: string;
22
+ };
23
+ dashed: {
24
+ true: string;
25
+ false: string;
26
+ };
27
+ multilined: {
28
+ true: string;
29
+ false: string;
30
+ };
31
+ animated: {
32
+ true: string;
33
+ false: string;
34
+ };
35
+ position: {
36
+ top: string;
37
+ bottom: string;
38
+ left: string;
39
+ right: string;
40
+ };
41
+ }> & ClassProps) | undefined): string;
42
+ variantKeys: ("size" | "rounded" | "type" | "dashed" | "multilined" | "animated" | "position")[];
43
+ };
44
+
45
+ type TooltipProps = {
46
+ label: string;
47
+ delay?: number;
48
+ always?: boolean;
49
+ children?: JSX.Element;
50
+ } & VariantProps<typeof tooltipVariants> & JSX.HTMLAttributes<HTMLSpanElement>;
51
+ declare const Tooltip: Component<TooltipProps>;
52
+
53
+ export { Tooltip as T, type TooltipProps as a };
@@ -0,0 +1,39 @@
1
+ import { Component, JSX } from 'solid-js';
2
+ import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
3
+
4
+ declare const uploadWrapperVariants: {
5
+ (props?: (ConfigVariants<{
6
+ style: {
7
+ boxed: string;
8
+ button: string;
9
+ };
10
+ color: {
11
+ primary: string;
12
+ success: string;
13
+ info: string;
14
+ warning: string;
15
+ danger: string;
16
+ gray: string;
17
+ };
18
+ size: {
19
+ sm: string;
20
+ md: string;
21
+ lg: string;
22
+ };
23
+ }> & ClassProps) | undefined): string;
24
+ variantKeys: ("size" | "style" | "color")[];
25
+ };
26
+
27
+ type UploadProps = {
28
+ icon?: JSX.Element;
29
+ label?: string;
30
+ multiple?: boolean;
31
+ disabled?: boolean;
32
+ accept?: string;
33
+ dragDrop?: boolean;
34
+ name?: string;
35
+ onChange?: (files: File | File[]) => void;
36
+ } & VariantProps<typeof uploadWrapperVariants> & JSX.InputHTMLAttributes<HTMLInputElement>;
37
+ declare const Upload: Component<UploadProps>;
38
+
39
+ export { Upload as U, type UploadProps as a };
@@ -0,0 +1,98 @@
1
+ import { cva, classes } from './HKS7ET6T.js';
2
+ import { template, spread, mergeProps, insert, createComponent, memo } from 'solid-js/web';
3
+ import { splitProps, createMemo, untrack, Show } from 'solid-js';
4
+
5
+ // src/components/select/Select.styles.ts
6
+ var selectVariants = cva(
7
+ [
8
+ "relative inline-flex items-center appearance-none",
9
+ "border outline-none",
10
+ "transition bg-white text-black",
11
+ "disabled:opacity-50 disabled:cursor-not-allowed"
12
+ ],
13
+ {
14
+ variants: {
15
+ size: {
16
+ sm: "text-sm px-2 py-1",
17
+ md: "text-base px-3 py-2",
18
+ lg: "text-lg px-4 py-2"
19
+ },
20
+ color: {
21
+ primary: "border-gray-300 focus:border-primary",
22
+ info: "border-blue-300 focus:border-blue-500",
23
+ success: "border-green-300 focus:border-green-500",
24
+ warning: "border-yellow-300 focus:border-yellow-500",
25
+ danger: "border-red-300 focus:border-red-500"
26
+ },
27
+ loading: {
28
+ true: "cursor-wait opacity-75",
29
+ false: ""
30
+ },
31
+ expanded: {
32
+ true: "w-full",
33
+ false: "w-fit"
34
+ },
35
+ rounded: {
36
+ true: "rounded",
37
+ false: "rounded-none"
38
+ }
39
+ },
40
+ defaultVariants: {
41
+ size: "md",
42
+ color: "primary",
43
+ loading: false,
44
+ expanded: false,
45
+ rounded: false
46
+ }
47
+ }
48
+ );
49
+
50
+ // src/components/select/Select.tsx
51
+ var _tmpl$ = /* @__PURE__ */ template(`<option value disabled hidden>`);
52
+ var _tmpl$2 = /* @__PURE__ */ template(`<select>`);
53
+ var Select = (props) => {
54
+ const [localProps, variantProps, otherProps] = splitProps(props, ["placeholder", "value", "nativeSize", "onChange", "onBlur", "onFocus"], ["class", ...selectVariants.variantKeys]);
55
+ const empty = createMemo(() => untrack(() => localProps.value === null || localProps.value === void 0));
56
+ const selectClasses = createMemo(() => classes(selectVariants(variantProps), variantProps.class));
57
+ return (() => {
58
+ var _el$ = _tmpl$2();
59
+ spread(_el$, mergeProps({
60
+ get ["class"]() {
61
+ return selectClasses();
62
+ },
63
+ get size() {
64
+ return localProps.nativeSize;
65
+ },
66
+ get value() {
67
+ return localProps.value;
68
+ },
69
+ get onChange() {
70
+ return localProps.onChange;
71
+ },
72
+ get onFocus() {
73
+ return localProps.onFocus;
74
+ },
75
+ get onBlur() {
76
+ return localProps.onBlur;
77
+ }
78
+ }, otherProps), false, true);
79
+ insert(_el$, createComponent(Show, {
80
+ get when() {
81
+ return memo(() => !!localProps.placeholder)() && empty();
82
+ },
83
+ get children() {
84
+ var _el$2 = _tmpl$();
85
+ insert(_el$2, () => localProps.placeholder);
86
+ return _el$2;
87
+ }
88
+ }), null);
89
+ insert(_el$, () => props.children, null);
90
+ return _el$;
91
+ })();
92
+ };
93
+ var Select_default = Select;
94
+
95
+ // src/components/select/index.ts
96
+ var select_default = Select_default;
97
+
98
+ export { select_default };
@@ -0,0 +1,103 @@
1
+ import { cva } from './HKS7ET6T.js';
2
+ import { template, spread, insert, createComponent, effect, className } from 'solid-js/web';
3
+ import { splitProps, Show } from 'solid-js';
4
+
5
+ // src/components/tooltip/Tooltip.styles.ts
6
+ var tooltipVariants = cva(
7
+ [
8
+ "absolute z-10 px-3 py-1 text-white text-sm",
9
+ "opacity-0 group-hover:opacity-100",
10
+ "pointer-events-none transition-opacity duration-200",
11
+ "max-w-xs break-words",
12
+ "after:content-[''] after:absolute after:w-2 after:h-2 after:rotate-45 after:bg-inherit"
13
+ ].join(" "),
14
+ {
15
+ variants: {
16
+ type: {
17
+ info: "bg-blue-500",
18
+ success: "bg-green-500",
19
+ warning: "bg-yellow-500",
20
+ danger: "bg-red-500",
21
+ primary: "bg-indigo-500",
22
+ gray: "bg-gray-700"
23
+ },
24
+ size: {
25
+ sm: "text-xs",
26
+ md: "text-sm",
27
+ lg: "text-base"
28
+ },
29
+ rounded: {
30
+ true: "rounded",
31
+ false: "rounded-none"
32
+ },
33
+ dashed: {
34
+ true: "border border-white border-dashed",
35
+ false: ""
36
+ },
37
+ multilined: {
38
+ true: "whitespace-pre-wrap",
39
+ false: "whitespace-nowrap"
40
+ },
41
+ animated: {
42
+ true: "transition-opacity duration-300 ease-in-out",
43
+ false: ""
44
+ },
45
+ position: {
46
+ top: "bottom-full left-1/2 -translate-x-1/2 mb-1 after:top-full after:left-1/2 after:-translate-x-1/2 after:-mt-1",
47
+ bottom: "top-full left-1/2 -translate-x-1/2 mt-1 after:bottom-full after:left-1/2 after:-translate-x-1/2 after:-mb-1",
48
+ left: "right-full top-1/2 -translate-y-1/2 mr-1 after:left-full after:top-1/2 after:-translate-y-1/2 after:-ml-1",
49
+ right: "left-full top-1/2 -translate-y-1/2 ml-1 after:right-full after:top-1/2 after:-translate-y-1/2 after:-mr-1"
50
+ }
51
+ },
52
+ defaultVariants: {
53
+ type: "primary",
54
+ size: "md",
55
+ rounded: true,
56
+ dashed: false,
57
+ multilined: false,
58
+ animated: true,
59
+ position: "top"
60
+ }
61
+ }
62
+ );
63
+
64
+ // src/components/tooltip/Tooltip.tsx
65
+ var _tmpl$ = /* @__PURE__ */ template(`<span>`);
66
+ var _tmpl$2 = /* @__PURE__ */ template(`<span class="relative inline-block group">`);
67
+ var Tooltip = (props) => {
68
+ const [local, variantProps, otherProps] = splitProps(props, ["label", "delay", "always", "children"], ["type", "size", "position", "rounded", "dashed", "multilined", "animated"]);
69
+ return (() => {
70
+ var _el$ = _tmpl$2();
71
+ spread(_el$, otherProps, false, true);
72
+ insert(_el$, () => local.children, null);
73
+ insert(_el$, createComponent(Show, {
74
+ get when() {
75
+ return local.label;
76
+ },
77
+ get children() {
78
+ var _el$2 = _tmpl$();
79
+ _el$2.style.setProperty("pointer-events", "none");
80
+ insert(_el$2, () => local.label);
81
+ effect((_p$) => {
82
+ var _v$ = tooltipVariants(variantProps), _v$2 = `${local.delay ?? 0}ms`, _v$3 = local.always ? 1 : void 0;
83
+ _v$ !== _p$.e && className(_el$2, _p$.e = _v$);
84
+ _v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$2.style.setProperty("transition-delay", _v$2) : _el$2.style.removeProperty("transition-delay"));
85
+ _v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$2.style.setProperty("opacity", _v$3) : _el$2.style.removeProperty("opacity"));
86
+ return _p$;
87
+ }, {
88
+ e: void 0,
89
+ t: void 0,
90
+ a: void 0
91
+ });
92
+ return _el$2;
93
+ }
94
+ }), null);
95
+ return _el$;
96
+ })();
97
+ };
98
+ var Tooltip_default = Tooltip;
99
+
100
+ // src/components/tooltip/index.ts
101
+ var tooltip_default = Tooltip_default;
102
+
103
+ export { tooltip_default };