@pathscale/ui 0.0.1 → 0.0.3

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 (131) hide show
  1. package/dist/Accordion-JZGWxBMK.d.ts +27 -0
  2. package/dist/Autocomplete-gLkjMHrc.d.ts +28 -0
  3. package/dist/Checkbox-BjaweaOH.d.ts +40 -0
  4. package/dist/Field-DfUn85_1.d.ts +49 -0
  5. package/dist/{Input-BQbTzjIO.d.ts → Input-C1bm4HGf.d.ts} +1 -1
  6. package/dist/Pagination-CJtlFMHy.d.ts +43 -0
  7. package/dist/Progress-gN0xqhAF.d.ts +64 -0
  8. package/dist/Select-CWCDBvec.d.ts +44 -0
  9. package/dist/Steps-1miUeyCD.d.ts +34 -0
  10. package/dist/Switch-BiKX7HZ2.d.ts +72 -0
  11. package/dist/Table-CGa6Nop3.d.ts +39 -0
  12. package/dist/Tabs-BEnRV6GG.d.ts +42 -0
  13. package/dist/Tag-BPrhn-Ne.d.ts +42 -0
  14. package/dist/Timeline-Bd4SxHMT.d.ts +14 -0
  15. package/dist/Tooltip-BfPongoz.d.ts +53 -0
  16. package/dist/Upload-BrFuZ4JA.d.ts +39 -0
  17. package/dist/chunk/3IHANYRN.js +98 -0
  18. package/dist/chunk/3VOILEMN.js +187 -0
  19. package/dist/chunk/4TWLQ3IA.js +103 -0
  20. package/dist/chunk/6SBH3KSM.jsx +96 -0
  21. package/dist/chunk/7ROVLN3J.js +175 -0
  22. package/dist/chunk/BBDVIXAH.jsx +194 -0
  23. package/dist/chunk/{4RCWSX7S.jsx → C4745OZS.jsx} +7 -7
  24. package/dist/chunk/C4YO33NN.jsx +179 -0
  25. package/dist/chunk/CJZGTNJZ.js +115 -0
  26. package/dist/chunk/D2BEL4SM.jsx +169 -0
  27. package/dist/chunk/DBQ7IOPU.js +189 -0
  28. package/dist/chunk/DNTGSCVF.jsx +100 -0
  29. package/dist/chunk/DSTUGZW6.jsx +81 -0
  30. package/dist/chunk/ELRAUORW.jsx +179 -0
  31. package/dist/chunk/FKSQPGOD.jsx +170 -0
  32. package/dist/chunk/FPUQ25SO.js +137 -0
  33. package/dist/chunk/GLEAR2TS.jsx +160 -0
  34. package/dist/chunk/GMIXRYN3.js +138 -0
  35. package/dist/chunk/HWAGW5N4.jsx +118 -0
  36. package/dist/chunk/JWRGKHDO.js +172 -0
  37. package/dist/chunk/KV6LTJHI.jsx +175 -0
  38. package/dist/chunk/LAQPAV5I.jsx +187 -0
  39. package/dist/chunk/LI3HCFL7.jsx +132 -0
  40. package/dist/chunk/MAX47D6F.js +99 -0
  41. package/dist/chunk/{2JGZSAW5.js → MI773TMC.js} +6 -6
  42. package/dist/chunk/MMTAND25.jsx +126 -0
  43. package/dist/chunk/MXG3MBEN.jsx +148 -0
  44. package/dist/chunk/MYERRMTM.js +200 -0
  45. package/dist/chunk/NZKPDBTE.js +118 -0
  46. package/dist/chunk/OSJ3P7PI.js +189 -0
  47. package/dist/chunk/P2L6LFLS.js +144 -0
  48. package/dist/chunk/QLESLIWS.jsx +110 -0
  49. package/dist/chunk/QONDPQ2I.jsx +105 -0
  50. package/dist/chunk/QYEMOKUG.js +125 -0
  51. package/dist/chunk/S3ZDSQSV.js +98 -0
  52. package/dist/chunk/SCJSBRV2.jsx +39 -0
  53. package/dist/chunk/STKRVQR6.jsx +130 -0
  54. package/dist/chunk/{NZZRKP74.js → TFLJI242.js} +1 -25
  55. package/dist/chunk/TT2JYGLU.js +218 -0
  56. package/dist/chunk/V6Y5E7BL.js +133 -0
  57. package/dist/chunk/VN5BKHA2.jsx +97 -0
  58. package/dist/chunk/WOT36Q7O.js +166 -0
  59. package/dist/chunk/WUZETUQR.js +92 -0
  60. package/dist/chunk/XD34JKSU.jsx +201 -0
  61. package/dist/chunk/{GA2HCFRS.jsx → YAQK2KFY.jsx} +1 -35
  62. package/dist/chunk/YMO6RPS6.js +26 -0
  63. package/dist/components/Progress/index.d.ts +4 -39
  64. package/dist/components/Progress/index.js +1 -278
  65. package/dist/components/Progress/index.jsx +4 -199
  66. package/dist/components/accordion/index.d.ts +5 -24
  67. package/dist/components/accordion/index.js +1 -118
  68. package/dist/components/accordion/index.jsx +3 -100
  69. package/dist/components/autocomplete/index.d.ts +8 -0
  70. package/dist/components/autocomplete/index.js +1 -0
  71. package/dist/components/autocomplete/index.jsx +7 -0
  72. package/dist/components/avatar/index.js +1 -1
  73. package/dist/components/avatar/index.jsx +3 -3
  74. package/dist/components/breadcrumb/index.d.ts +2 -2
  75. package/dist/components/breadcrumb/index.js +1 -133
  76. package/dist/components/breadcrumb/index.jsx +4 -120
  77. package/dist/components/button/index.js +1 -1
  78. package/dist/components/button/index.jsx +2 -1
  79. package/dist/components/checkbox/index.d.ts +5 -37
  80. package/dist/components/checkbox/index.js +1 -137
  81. package/dist/components/checkbox/index.jsx +3 -143
  82. package/dist/components/dropdown/index.d.ts +43 -0
  83. package/dist/components/dropdown/index.js +1 -0
  84. package/dist/components/dropdown/index.jsx +12 -0
  85. package/dist/components/field/index.d.ts +7 -0
  86. package/dist/components/field/index.js +1 -0
  87. package/dist/components/field/index.jsx +7 -0
  88. package/dist/components/input/index.d.ts +2 -2
  89. package/dist/components/menu/index.d.ts +66 -0
  90. package/dist/components/menu/index.js +1 -0
  91. package/dist/components/menu/index.jsx +11 -0
  92. package/dist/components/navbar/index.d.ts +74 -0
  93. package/dist/components/navbar/index.js +1 -0
  94. package/dist/components/navbar/index.jsx +11 -0
  95. package/dist/components/pagination/index.d.ts +5 -40
  96. package/dist/components/pagination/index.js +1 -189
  97. package/dist/components/pagination/index.jsx +3 -174
  98. package/dist/components/select/index.d.ts +5 -41
  99. package/dist/components/select/index.js +1 -98
  100. package/dist/components/select/index.jsx +3 -91
  101. package/dist/components/steps/index.d.ts +8 -0
  102. package/dist/components/steps/index.js +1 -0
  103. package/dist/components/steps/index.jsx +7 -0
  104. package/dist/components/switch/index.d.ts +5 -69
  105. package/dist/components/switch/index.js +1 -144
  106. package/dist/components/switch/index.jsx +3 -155
  107. package/dist/components/table/index.d.ts +8 -0
  108. package/dist/components/table/index.js +1 -0
  109. package/dist/components/table/index.jsx +7 -0
  110. package/dist/components/tabs/index.d.ts +5 -39
  111. package/dist/components/tabs/index.js +1 -166
  112. package/dist/components/tabs/index.jsx +3 -170
  113. package/dist/components/tag/index.d.ts +5 -39
  114. package/dist/components/tag/index.js +1 -115
  115. package/dist/components/tag/index.jsx +3 -127
  116. package/dist/components/timeline/index.d.ts +7 -0
  117. package/dist/components/timeline/index.js +1 -0
  118. package/dist/components/timeline/index.jsx +7 -0
  119. package/dist/components/toast/index.d.ts +24 -0
  120. package/dist/components/toast/index.js +1 -0
  121. package/dist/components/toast/index.jsx +11 -0
  122. package/dist/components/tooltip/index.d.ts +5 -50
  123. package/dist/components/tooltip/index.js +1 -103
  124. package/dist/components/tooltip/index.jsx +3 -95
  125. package/dist/components/upload/index.d.ts +5 -36
  126. package/dist/components/upload/index.js +1 -98
  127. package/dist/components/upload/index.jsx +3 -105
  128. package/dist/index.d.ts +22 -2
  129. package/dist/index.js +23 -2
  130. package/dist/index.jsx +108 -8
  131. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ import {
2
+ Toaster_default,
3
+ toast,
4
+ toast_default
5
+ } from "../../chunk/FKSQPGOD.jsx";
6
+ import "../../chunk/P7WPLZNA.jsx";
7
+ export {
8
+ Toaster_default as Toaster,
9
+ toast_default as default,
10
+ toast
11
+ };
@@ -1,53 +1,8 @@
1
- import { JSX, Component } from 'solid-js';
2
- import { C as ConfigVariants, a as ClassProps, V as VariantProps } from '../../classes-B_S9K-9I.js';
1
+ import { T as Tooltip } from '../../Tooltip-BfPongoz.js';
2
+ export { a as TooltipProps } from '../../Tooltip-BfPongoz.js';
3
+ import 'solid-js';
4
+ import '../../classes-B_S9K-9I.js';
3
5
 
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: ("type" | "size" | "rounded" | "dashed" | "multilined" | "animated" | "position")[];
43
- };
44
6
 
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
7
 
53
- export { type TooltipProps, Tooltip as default };
8
+ export { Tooltip as default };
@@ -1,103 +1 @@
1
- import { cva } from '../../chunk/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 as default };
1
+ export { tooltip_default as default } from '../../chunk/4TWLQ3IA.js';
@@ -1,99 +1,7 @@
1
1
  import {
2
- cva
3
- } from "../../chunk/P7WPLZNA.jsx";
4
-
5
- // src/components/tooltip/Tooltip.tsx
6
- import {
7
- splitProps,
8
- Show
9
- } from "solid-js";
10
-
11
- // src/components/tooltip/Tooltip.styles.ts
12
- var tooltipVariants = cva(
13
- [
14
- "absolute z-10 px-3 py-1 text-white text-sm",
15
- "opacity-0 group-hover:opacity-100",
16
- "pointer-events-none transition-opacity duration-200",
17
- "max-w-xs break-words",
18
- "after:content-[''] after:absolute after:w-2 after:h-2 after:rotate-45 after:bg-inherit"
19
- ].join(" "),
20
- {
21
- variants: {
22
- type: {
23
- info: "bg-blue-500",
24
- success: "bg-green-500",
25
- warning: "bg-yellow-500",
26
- danger: "bg-red-500",
27
- primary: "bg-indigo-500",
28
- gray: "bg-gray-700"
29
- },
30
- size: {
31
- sm: "text-xs",
32
- md: "text-sm",
33
- lg: "text-base"
34
- },
35
- rounded: {
36
- true: "rounded",
37
- false: "rounded-none"
38
- },
39
- dashed: {
40
- true: "border border-white border-dashed",
41
- false: ""
42
- },
43
- multilined: {
44
- true: "whitespace-pre-wrap",
45
- false: "whitespace-nowrap"
46
- },
47
- animated: {
48
- true: "transition-opacity duration-300 ease-in-out",
49
- false: ""
50
- },
51
- position: {
52
- 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",
53
- 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",
54
- 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",
55
- 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"
56
- }
57
- },
58
- defaultVariants: {
59
- type: "primary",
60
- size: "md",
61
- rounded: true,
62
- dashed: false,
63
- multilined: false,
64
- animated: true,
65
- position: "top"
66
- }
67
- }
68
- );
69
-
70
- // src/components/tooltip/Tooltip.tsx
71
- var Tooltip = (props) => {
72
- const [local, variantProps, otherProps] = splitProps(
73
- props,
74
- ["label", "delay", "always", "children"],
75
- ["type", "size", "position", "rounded", "dashed", "multilined", "animated"]
76
- );
77
- return <span class="relative inline-block group" {...otherProps}>
78
- {local.children}
79
- <Show when={local.label}>
80
- <span
81
- class={tooltipVariants(variantProps)}
82
- style={{
83
- "transition-delay": `${local.delay ?? 0}ms`,
84
- opacity: local.always ? 1 : void 0,
85
- "pointer-events": "none"
86
- }}
87
- >
88
- {local.label}
89
- </span>
90
- </Show>
91
- </span>;
92
- };
93
- var Tooltip_default = Tooltip;
94
-
95
- // src/components/tooltip/index.ts
96
- var tooltip_default = Tooltip_default;
2
+ tooltip_default
3
+ } from "../../chunk/DNTGSCVF.jsx";
4
+ import "../../chunk/P7WPLZNA.jsx";
97
5
  export {
98
6
  tooltip_default as default
99
7
  };
@@ -1,39 +1,8 @@
1
- import { JSX, Component } from 'solid-js';
2
- import { C as ConfigVariants, a as ClassProps, V as VariantProps } from '../../classes-B_S9K-9I.js';
1
+ import { U as Upload } from '../../Upload-BrFuZ4JA.js';
2
+ export { a as UploadProps } from '../../Upload-BrFuZ4JA.js';
3
+ import 'solid-js';
4
+ import '../../classes-B_S9K-9I.js';
3
5
 
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: ("style" | "color" | "size")[];
25
- };
26
6
 
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
7
 
39
- export { type UploadProps, Upload as default };
8
+ export { Upload as default };
@@ -1,98 +1 @@
1
- import { cva, classes } from '../../chunk/HKS7ET6T.js';
2
- import { template, className, spread, mergeProps, insert, createComponent, effect } from 'solid-js/web';
3
- import { splitProps, Show } from 'solid-js';
4
-
5
- // src/components/upload/Upload.styles.ts
6
- var uploadWrapperVariants = cva("", {
7
- variants: {
8
- style: {
9
- boxed: "flex flex-col items-center justify-center border border-gray-300 rounded-md p-4 bg-white dark:bg-gray-800 text-gray-700 hover:text-gray-900 text-center",
10
- button: "px-4 py-2 rounded inline-flex items-center gap-2 text-white transition-colors"
11
- },
12
- color: {
13
- primary: "bg-blue-500 hover:bg-blue-600",
14
- success: "bg-green-500 hover:bg-green-600",
15
- info: "bg-sky-500 hover:bg-sky-600",
16
- warning: "bg-yellow-500 hover:bg-yellow-600",
17
- danger: "bg-red-500 hover:bg-red-600",
18
- gray: ""
19
- // usado solo en style="boxed"
20
- },
21
- size: {
22
- sm: "text-sm",
23
- md: "text-base",
24
- lg: "text-lg"
25
- }
26
- },
27
- defaultVariants: {
28
- style: "boxed",
29
- color: "gray",
30
- size: "md"
31
- }
32
- });
33
- var fileInputClass = "absolute inset-0 w-full h-full opacity-0 cursor-pointer";
34
- var fileIconClass = "w-6 h-6";
35
- var fileLabelClass = "font-medium";
36
-
37
- // src/components/upload/Upload.tsx
38
- var _tmpl$ = /* @__PURE__ */ template(`<span>`);
39
- var _tmpl$2 = /* @__PURE__ */ template(`<div><label class="cursor-pointer relative w-full h-full"><input type=file><div><span>`);
40
- var Upload = (props) => {
41
- const [local, variantProps, otherProps] = splitProps(props, ["icon", "label", "multiple", "disabled", "accept", "dragDrop", "name", "onChange"], ["style", "color", "size"]);
42
- const handleChange = (e) => {
43
- const files = e.target.files;
44
- if (!files || files.length === 0) return;
45
- const result = local.multiple ? Array.from(files) : files[0];
46
- if (result) {
47
- local.onChange?.(result);
48
- }
49
- };
50
- return (() => {
51
- var _el$ = _tmpl$2(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$6 = _el$4.firstChild;
52
- _el$3.addEventListener("change", handleChange);
53
- className(_el$3, fileInputClass);
54
- spread(_el$3, mergeProps({
55
- get name() {
56
- return local.name;
57
- },
58
- get multiple() {
59
- return local.multiple;
60
- },
61
- get accept() {
62
- return local.accept;
63
- },
64
- get disabled() {
65
- return local.disabled;
66
- }
67
- }, otherProps), false, false);
68
- insert(_el$4, createComponent(Show, {
69
- get when() {
70
- return local.icon;
71
- },
72
- get children() {
73
- var _el$5 = _tmpl$();
74
- className(_el$5, fileIconClass);
75
- insert(_el$5, () => local.icon);
76
- return _el$5;
77
- }
78
- }), _el$6);
79
- className(_el$6, fileLabelClass);
80
- insert(_el$6, () => local.label);
81
- effect((_p$) => {
82
- var _v$ = uploadWrapperVariants(variantProps), _v$2 = classes(variantProps.style === "boxed" ? "flex flex-col items-center justify-center gap-2" : "flex flex-row items-center justify-center gap-2");
83
- _v$ !== _p$.e && className(_el$, _p$.e = _v$);
84
- _v$2 !== _p$.t && className(_el$4, _p$.t = _v$2);
85
- return _p$;
86
- }, {
87
- e: void 0,
88
- t: void 0
89
- });
90
- return _el$;
91
- })();
92
- };
93
- var Upload_default = Upload;
94
-
95
- // src/components/upload/index.ts
96
- var upload_default = Upload_default;
97
-
98
- export { upload_default as default };
1
+ export { upload_default as default } from '../../chunk/S3ZDSQSV.js';
@@ -1,109 +1,7 @@
1
1
  import {
2
- classes,
3
- cva
4
- } from "../../chunk/P7WPLZNA.jsx";
5
-
6
- // src/components/upload/Upload.tsx
7
- import { splitProps, Show } from "solid-js";
8
-
9
- // src/components/upload/Upload.styles.ts
10
- var uploadWrapperVariants = cva("", {
11
- variants: {
12
- style: {
13
- boxed: "flex flex-col items-center justify-center border border-gray-300 rounded-md p-4 bg-white dark:bg-gray-800 text-gray-700 hover:text-gray-900 text-center",
14
- button: "px-4 py-2 rounded inline-flex items-center gap-2 text-white transition-colors"
15
- },
16
- color: {
17
- primary: "bg-blue-500 hover:bg-blue-600",
18
- success: "bg-green-500 hover:bg-green-600",
19
- info: "bg-sky-500 hover:bg-sky-600",
20
- warning: "bg-yellow-500 hover:bg-yellow-600",
21
- danger: "bg-red-500 hover:bg-red-600",
22
- gray: ""
23
- // usado solo en style="boxed"
24
- },
25
- size: {
26
- sm: "text-sm",
27
- md: "text-base",
28
- lg: "text-lg"
29
- }
30
- },
31
- defaultVariants: {
32
- style: "boxed",
33
- color: "gray",
34
- size: "md"
35
- }
36
- });
37
- var fileInputClass = "absolute inset-0 w-full h-full opacity-0 cursor-pointer";
38
- var fileIconClass = "w-6 h-6";
39
- var fileLabelClass = "font-medium";
40
-
41
- // src/components/upload/Upload.tsx
42
- var Upload = (props) => {
43
- const [local, variantProps, otherProps] = splitProps(
44
- props,
45
- [
46
- "icon",
47
- "label",
48
- "multiple",
49
- "disabled",
50
- "accept",
51
- "dragDrop",
52
- "name",
53
- "onChange"
54
- ],
55
- ["style", "color", "size"]
56
- );
57
- const handleChange = (e) => {
58
- const files = e.target.files;
59
- if (!files || files.length === 0) return;
60
- const result = local.multiple ? Array.from(files) : files[0];
61
- if (result) {
62
- local.onChange?.(result);
63
- }
64
- };
65
- const handleDrop = (e) => {
66
- if (!local.dragDrop) return;
67
- e.preventDefault();
68
- const files = e.dataTransfer?.files;
69
- if (!files || files.length === 0) return;
70
- const result = local.multiple ? Array.from(files) : files[0];
71
- if (result) {
72
- local.onChange?.(result);
73
- }
74
- };
75
- const handleDragOver = (e) => {
76
- if (local.dragDrop) e.preventDefault();
77
- };
78
- return <div class={uploadWrapperVariants(variantProps)}>
79
- <label class="cursor-pointer relative w-full h-full">
80
- <input
81
- type="file"
82
- class={fileInputClass}
83
- name={local.name}
84
- multiple={local.multiple}
85
- accept={local.accept}
86
- disabled={local.disabled}
87
- onChange={handleChange}
88
- {...otherProps}
89
- />
90
- <div
91
- class={classes(
92
- variantProps.style === "boxed" ? "flex flex-col items-center justify-center gap-2" : "flex flex-row items-center justify-center gap-2"
93
- )}
94
- >
95
- <Show when={local.icon}>
96
- <span class={fileIconClass}>{local.icon}</span>
97
- </Show>
98
- <span class={fileLabelClass}>{local.label}</span>
99
- </div>
100
- </label>
101
- </div>;
102
- };
103
- var Upload_default = Upload;
104
-
105
- // src/components/upload/index.ts
106
- var upload_default = Upload_default;
2
+ upload_default
3
+ } from "../../chunk/QLESLIWS.jsx";
4
+ import "../../chunk/P7WPLZNA.jsx";
107
5
  export {
108
6
  upload_default as default
109
7
  };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,27 @@
1
1
  export { A as Avatar } from './Avatar-CzIirpVq.js';
2
2
  export { B as Button } from './Button-B50OLXuV.js';
3
- export { I as Input } from './Input-BQbTzjIO.js';
3
+ export { I as Input } from './Input-C1bm4HGf.js';
4
4
  export { T as Textarea } from './Textarea-Cpdk7m6S.js';
5
+ export { P as Progress } from './Progress-gN0xqhAF.js';
6
+ export { U as Upload } from './Upload-BrFuZ4JA.js';
7
+ export { A as Accordion } from './Accordion-JZGWxBMK.js';
8
+ export { P as Pagination } from './Pagination-CJtlFMHy.js';
9
+ export { T as Tabs } from './Tabs-BEnRV6GG.js';
10
+ export { T as Tooltip } from './Tooltip-BfPongoz.js';
11
+ export { T as Tag } from './Tag-BPrhn-Ne.js';
12
+ export { S as Select } from './Select-CWCDBvec.js';
13
+ export { S as Switch } from './Switch-BiKX7HZ2.js';
14
+ export { C as Checkbox } from './Checkbox-BjaweaOH.js';
15
+ export { Breadcrumb, BreadcrumbItem } from './components/breadcrumb/index.js';
16
+ export { A as Autocomplete } from './Autocomplete-gLkjMHrc.js';
17
+ export { Dropdown, DropdownItem, DropdownMenu } from './components/dropdown/index.js';
18
+ export { F as Field } from './Field-DfUn85_1.js';
19
+ export { Menu, MenuItem, MenuList } from './components/menu/index.js';
20
+ export { Navbar, NavbarDropdown, NavbarItem } from './components/navbar/index.js';
21
+ export { Polymorphic, PolymorphicButton } from './components/polymorphic/index.js';
22
+ export { S as Steps } from './Steps-1miUeyCD.js';
23
+ export { T as Table } from './Table-CGa6Nop3.js';
24
+ export { T as Timeline } from './Timeline-Bd4SxHMT.js';
25
+ export { default as Toast } from './components/toast/index.js';
5
26
  import 'solid-js';
6
27
  import './classes-B_S9K-9I.js';
7
- import './components/polymorphic/index.js';
package/dist/index.js CHANGED
@@ -1,4 +1,25 @@
1
- export { button_default as Button } from './chunk/NZZRKP74.js';
1
+ export { toast_default as Toast } from './chunk/JWRGKHDO.js';
2
+ export { tooltip_default as Tooltip } from './chunk/4TWLQ3IA.js';
3
+ export { upload_default as Upload } from './chunk/S3ZDSQSV.js';
4
+ export { select_default as Select } from './chunk/3IHANYRN.js';
5
+ export { steps_default as Steps } from './chunk/TT2JYGLU.js';
6
+ export { switch_default as Switch } from './chunk/P2L6LFLS.js';
7
+ export { table_default as Table } from './chunk/QYEMOKUG.js';
8
+ export { tabs_default as Tabs } from './chunk/WOT36Q7O.js';
9
+ export { tag_default as Tag } from './chunk/CJZGTNJZ.js';
2
10
  export { textarea_default as Textarea } from './chunk/EB7KXR65.js';
3
- export { Avatar_default as Avatar } from './chunk/2JGZSAW5.js';
11
+ export { timeline_default as Timeline } from './chunk/WUZETUQR.js';
12
+ export { Dropdown_default as Dropdown, DropdownItem_default as DropdownItem, DropdownMenu_default as DropdownMenu } from './chunk/7ROVLN3J.js';
13
+ export { field_default as Field } from './chunk/MAX47D6F.js';
4
14
  export { input_default as Input } from './chunk/T2DPPLBQ.js';
15
+ export { Navbar_default as Navbar, NavbarDropdown_default as NavbarDropdown, NavbarItem_default as NavbarItem } from './chunk/OSJ3P7PI.js';
16
+ export { pagination_default as Pagination } from './chunk/DBQ7IOPU.js';
17
+ export { Menu_default as Menu, MenuItem_default as MenuItem, MenuList_default as MenuList } from './chunk/3VOILEMN.js';
18
+ export { progress_default as Progress } from './chunk/GMIXRYN3.js';
19
+ export { accordion_default as Accordion } from './chunk/NZKPDBTE.js';
20
+ export { autocomplete_default as Autocomplete } from './chunk/MYERRMTM.js';
21
+ export { avatar_default as Avatar } from './chunk/MI773TMC.js';
22
+ export { Breadcrumb_default as Breadcrumb, BreadcrumbItem_default as BreadcrumbItem } from './chunk/V6Y5E7BL.js';
23
+ export { button_default as Button } from './chunk/YMO6RPS6.js';
24
+ export { Polymorphic_default as Polymorphic, PolymorphicButton_default as PolymorphicButton } from './chunk/G6RG4LR7.js';
25
+ export { checkbox_default as Checkbox } from './chunk/FPUQ25SO.js';