@pathscale/ui 0.0.11 → 0.0.12
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.
- package/README.md +53 -0
- package/dist/{Autocomplete-BLKN_nG8.d.ts → Autocomplete-gLkjMHrc.d.ts} +1 -1
- package/dist/Avatar-Dkd_kPlV.d.ts +40 -0
- package/dist/CollapseTitle-BNxog3is.d.ts +12 -0
- package/dist/{Field-DfUn85_1.d.ts → Field-DI2PA30N.d.ts} +1 -1
- package/dist/Mask-CPb596Mg.d.ts +16 -0
- package/dist/Menu-DgO4SHmA.d.ts +45 -0
- package/dist/{Progress-gN0xqhAF.d.ts → Progress-ChF4ior8.d.ts} +2 -2
- package/dist/Steps-Dk-UPL6r.d.ts +38 -0
- package/dist/{Tabs-BNR3p92D.d.ts → Tabs-WiUU0xsM.d.ts} +1 -1
- package/dist/chunk/2OJYONJ3.js +40 -0
- package/dist/chunk/2VQ2762Z.js +80 -0
- package/dist/chunk/2XPPNBYK.js +164 -0
- package/dist/chunk/3I23P4TJ.js +33 -0
- package/dist/chunk/5HG7XWVC.jsx +2956 -0
- package/dist/chunk/5IJ7WEIF.js +43 -0
- package/dist/chunk/5O6WC3OB.jsx +67 -0
- package/dist/chunk/6P5JIKPF.jsx +51 -0
- package/dist/chunk/BHLLVOVR.js +46 -0
- package/dist/chunk/DJI5XKAV.js +31 -0
- package/dist/chunk/DN3P54J2.jsx +43 -0
- package/dist/chunk/DVFQAAZR.js +43 -0
- package/dist/chunk/EDDBK4J6.js +42 -0
- package/dist/chunk/FZRQDGPD.jsx +54 -0
- package/dist/chunk/G5UEZ2VC.js +49 -0
- package/dist/chunk/GL7JG772.js +114 -0
- package/dist/chunk/HEOKGP5U.js +55 -0
- package/dist/chunk/HUHXQCKK.js +16 -0
- package/dist/chunk/I36LHZUY.jsx +31 -0
- package/dist/chunk/IG323YKF.jsx +50 -0
- package/dist/chunk/JQ4HSRDP.js +142 -0
- package/dist/chunk/JSQBKK7L.jsx +50 -0
- package/dist/chunk/K3WO7SRD.js +1 -0
- package/dist/chunk/KQ3RAWCE.jsx +57 -0
- package/dist/chunk/KXJZKDJX.jsx +0 -0
- package/dist/chunk/L4A67X7S.js +7 -0
- package/dist/chunk/LGDDR242.jsx +159 -0
- package/dist/chunk/MM2DZQL3.js +46 -0
- package/dist/chunk/MZWBWFDD.js +151 -0
- package/dist/chunk/O7LDJCQS.jsx +18 -0
- package/dist/chunk/Q4442PU4.js +42 -0
- package/dist/chunk/R5G3PODL.jsx +11 -0
- package/dist/chunk/R6ZBT7CY.jsx +55 -0
- package/dist/chunk/RHEFVSMJ.jsx +52 -0
- package/dist/chunk/STFCLC5R.js +2954 -0
- package/dist/chunk/SVJIYMYJ.jsx +156 -0
- package/dist/chunk/SYWB4UN3.jsx +64 -0
- package/dist/chunk/UNKDNDT3.js +62 -0
- package/dist/chunk/XM3KF5LV.jsx +179 -0
- package/dist/chunk/XQCSYRVP.jsx +168 -0
- package/dist/chunk/YWIT2MRI.jsx +43 -0
- package/dist/chunk/ZYEP35R3.jsx +60 -0
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +17 -5
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +6 -4
- package/dist/components/autocomplete/index.d.ts +2 -2
- package/dist/components/avatar/index.d.ts +4 -4
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +3 -2
- package/dist/components/badge/index.d.ts +17 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/index.jsx +8 -0
- package/dist/components/breadcrumbs/index.d.ts +9 -0
- package/dist/components/breadcrumbs/index.js +1 -0
- package/dist/components/breadcrumbs/index.jsx +7 -0
- package/dist/components/button/index.d.ts +28 -6
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.jsx +5 -5
- package/dist/components/checkbox/index.d.ts +13 -5
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +5 -4
- package/dist/components/collapse/index.d.ts +15 -0
- package/dist/components/collapse/index.js +1 -0
- package/dist/components/collapse/index.jsx +14 -0
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/fileinput/index.d.ts +16 -0
- package/dist/components/fileinput/index.js +1 -0
- package/dist/components/fileinput/index.jsx +8 -0
- package/dist/components/input/index.d.ts +13 -8
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/index.jsx +5 -6
- package/dist/components/join/index.d.ts +11 -0
- package/dist/components/join/index.js +1 -0
- package/dist/components/join/index.jsx +9 -0
- package/dist/components/mask/index.d.ts +7 -0
- package/dist/components/mask/index.js +1 -0
- package/dist/components/mask/index.jsx +8 -0
- package/dist/components/menu/index.d.ts +6 -64
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +4 -7
- package/dist/components/pagination/index.d.ts +6 -6
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +6 -4
- package/dist/components/polymorphic/index.d.ts +1 -1
- package/dist/components/select/index.d.ts +12 -5
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +5 -4
- package/dist/components/steps/index.d.ts +3 -4
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +3 -2
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/textarea/index.d.ts +12 -5
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/index.jsx +5 -4
- package/dist/components/toggle/index.d.ts +15 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle/index.jsx +8 -0
- package/dist/components/tooltip/index.d.ts +14 -5
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +5 -4
- package/dist/index.d.ts +24 -19
- package/dist/index.js +23 -20
- package/dist/index.jsx +81 -66
- package/dist/types-CUG9pToa.d.ts +15 -0
- package/package.json +4 -2
- package/dist/Accordion-nwuRbRRw.d.ts +0 -27
- package/dist/Avatar-CzIirpVq.d.ts +0 -33
- package/dist/Button-B50OLXuV.d.ts +0 -63
- package/dist/Checkbox-CzeDsQLA.d.ts +0 -32
- package/dist/Input-X4gwIB-F.d.ts +0 -42
- package/dist/Pagination-CJtlFMHy.d.ts +0 -43
- package/dist/Select-CP-TUHJv.d.ts +0 -44
- package/dist/Steps-1miUeyCD.d.ts +0 -34
- package/dist/Switch-CW6QtO1Y.d.ts +0 -76
- package/dist/Tag-BPrhn-Ne.d.ts +0 -42
- package/dist/Textarea-Cpdk7m6S.d.ts +0 -37
- package/dist/Tooltip-BfPongoz.d.ts +0 -53
- package/dist/Upload-CRljD5jf.d.ts +0 -39
- package/dist/chunk/3VOILEMN.js +0 -187
- package/dist/chunk/C4745OZS.jsx +0 -101
- package/dist/chunk/CJZGTNJZ.js +0 -115
- package/dist/chunk/DBQ7IOPU.js +0 -189
- package/dist/chunk/EB7KXR65.js +0 -102
- package/dist/chunk/EE4HXMKA.js +0 -165
- package/dist/chunk/ELRAUORW.jsx +0 -179
- package/dist/chunk/F33TSIEQ.jsx +0 -181
- package/dist/chunk/GWFGP2JQ.jsx +0 -179
- package/dist/chunk/LAQPAV5I.jsx +0 -187
- package/dist/chunk/LI3HCFL7.jsx +0 -132
- package/dist/chunk/LMPV5G35.jsx +0 -228
- package/dist/chunk/MI773TMC.js +0 -107
- package/dist/chunk/MMTAND25.jsx +0 -126
- package/dist/chunk/NZKPDBTE.js +0 -118
- package/dist/chunk/O2IMHWMY.js +0 -159
- package/dist/chunk/OMRJVDZV.js +0 -173
- package/dist/chunk/OYAKKETQ.js +0 -111
- package/dist/chunk/PF47YREI.js +0 -214
- package/dist/chunk/PNPC2OI3.jsx +0 -156
- package/dist/chunk/QHJOIUYT.jsx +0 -117
- package/dist/chunk/QONDPQ2I.jsx +0 -105
- package/dist/chunk/R6COBCN7.jsx +0 -100
- package/dist/chunk/T7IZ26YC.jsx +0 -194
- package/dist/chunk/TT2JYGLU.js +0 -218
- package/dist/chunk/V6Y5E7BL.js +0 -133
- package/dist/chunk/WB6NEEQV.jsx +0 -107
- package/dist/chunk/WYHYWDOM.js +0 -164
- package/dist/chunk/XD34JKSU.jsx +0 -201
- package/dist/chunk/YDEDUOFM.js +0 -102
- package/dist/components/breadcrumb/index.d.ts +0 -47
- package/dist/components/breadcrumb/index.js +0 -1
- package/dist/components/breadcrumb/index.jsx +0 -9
- package/dist/components/switch/index.d.ts +0 -8
- package/dist/components/switch/index.js +0 -1
- package/dist/components/switch/index.jsx +0 -7
- package/dist/components/tag/index.d.ts +0 -8
- package/dist/components/tag/index.js +0 -1
- package/dist/components/tag/index.jsx +0 -7
- package/dist/components/upload/index.d.ts +0 -8
- package/dist/components/upload/index.js +0 -1
- package/dist/components/upload/index.jsx +0 -7
package/dist/chunk/PF47YREI.js
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { PolymorphicButton_default } from './SPEY5RMB.js';
|
|
2
|
-
import { cva } from './HKS7ET6T.js';
|
|
3
|
-
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
4
|
-
import { mergeProps, splitProps, createMemo } from 'solid-js';
|
|
5
|
-
|
|
6
|
-
// src/components/button/Button.styles.ts
|
|
7
|
-
var buttonVariants = cva(
|
|
8
|
-
[
|
|
9
|
-
"inline-flex items-center font-medium outline-none select-none",
|
|
10
|
-
"not-disabled:cursor-pointer",
|
|
11
|
-
"disabled:cursor-not-allowed disabled:opacity-25",
|
|
12
|
-
"aria-busy:cursor-wait",
|
|
13
|
-
"transition active:transition-none"
|
|
14
|
-
],
|
|
15
|
-
{
|
|
16
|
-
variants: {
|
|
17
|
-
size: {
|
|
18
|
-
sm: "text-sm leading-tight",
|
|
19
|
-
md: "text-base leading-tight",
|
|
20
|
-
lg: "text-lg leading-tight"
|
|
21
|
-
},
|
|
22
|
-
color: {
|
|
23
|
-
inverse: "",
|
|
24
|
-
primary: "",
|
|
25
|
-
secondary: "",
|
|
26
|
-
tertiary: "",
|
|
27
|
-
accent: "",
|
|
28
|
-
positive: "",
|
|
29
|
-
destructive: ""
|
|
30
|
-
},
|
|
31
|
-
align: {
|
|
32
|
-
start: "justify-start",
|
|
33
|
-
center: "justify-center",
|
|
34
|
-
end: "justify-end"
|
|
35
|
-
},
|
|
36
|
-
shape: {
|
|
37
|
-
circle: "rounded-full",
|
|
38
|
-
rounded: "rounded-lg"
|
|
39
|
-
},
|
|
40
|
-
spacing: {
|
|
41
|
-
0: "gap-0 p-0",
|
|
42
|
-
xs: "gap-1.5 px-1.5 py-1.5",
|
|
43
|
-
sm: "gap-1.5 px-2 py-2",
|
|
44
|
-
md: "gap-1.5 px-3 py-2",
|
|
45
|
-
lg: "gap-1.5 px-3.5 py-2.5"
|
|
46
|
-
},
|
|
47
|
-
loading: {
|
|
48
|
-
true: "",
|
|
49
|
-
false: ""
|
|
50
|
-
},
|
|
51
|
-
stretched: {
|
|
52
|
-
true: "w-full",
|
|
53
|
-
false: "w-fit"
|
|
54
|
-
},
|
|
55
|
-
variant: {
|
|
56
|
-
fill: [
|
|
57
|
-
"not-disabled:hover:opacity-75 not-disabled:active:opacity-50",
|
|
58
|
-
"aria-[current]:opacity-75 data-expanded:opacity-75 data-open:opacity-75",
|
|
59
|
-
"focus-visible:opacity-75"
|
|
60
|
-
],
|
|
61
|
-
gray: [
|
|
62
|
-
"bg-bg-primary not-disabled:hover:bg-bg-secondary not-disabled:active:bg-bg-secondary not-disabled:active:opacity-75",
|
|
63
|
-
"aria-[current]:bg-bg-secondary data-expanded:bg-bg-secondary data-open:bg-bg-secondary",
|
|
64
|
-
"focus-visible:bg-bg-secondary"
|
|
65
|
-
],
|
|
66
|
-
ghost: [
|
|
67
|
-
"not-disabled:hover:bg-bg-primary not-disabled:active:bg-bg-primary not-disabled:active:opacity-75",
|
|
68
|
-
"aria-[current]:bg-bg-primary data-expanded:bg-bg-primary data-open:bg-bg-primary",
|
|
69
|
-
"focus-visible:bg-bg-primary"
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
compoundVariants: [
|
|
74
|
-
{
|
|
75
|
-
variant: "fill",
|
|
76
|
-
color: "inverse",
|
|
77
|
-
class: "bg-bg-inverse text-fg-inverse"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
variant: "fill",
|
|
81
|
-
color: "primary",
|
|
82
|
-
class: "bg-bg-primary text-fg-body"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
variant: "fill",
|
|
86
|
-
color: "secondary",
|
|
87
|
-
class: "bg-bg-secondary text-fg-body"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
variant: "fill",
|
|
91
|
-
color: "tertiary",
|
|
92
|
-
class: "bg-bg-tertiary text-fg-body"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
variant: "fill",
|
|
96
|
-
color: "accent",
|
|
97
|
-
class: "bg-bg-accent text-light"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
variant: "fill",
|
|
101
|
-
color: "positive",
|
|
102
|
-
class: "bg-bg-positive text-light"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
variant: "fill",
|
|
106
|
-
color: "destructive",
|
|
107
|
-
class: "bg-bg-destructive text-light"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
variant: "gray",
|
|
111
|
-
color: "inverse",
|
|
112
|
-
class: "text-fg-inverse"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
variant: "gray",
|
|
116
|
-
color: "primary",
|
|
117
|
-
class: "text-fg-primary"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
variant: "gray",
|
|
121
|
-
color: "secondary",
|
|
122
|
-
class: "text-fg-secondary"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
variant: "gray",
|
|
126
|
-
color: "tertiary",
|
|
127
|
-
class: "text-fg-tertiary"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
variant: "gray",
|
|
131
|
-
color: "accent",
|
|
132
|
-
class: "text-fg-accent"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
variant: "gray",
|
|
136
|
-
color: "positive",
|
|
137
|
-
class: "text-fg-positive"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
variant: "gray",
|
|
141
|
-
color: "destructive",
|
|
142
|
-
class: "text-fg-destructive"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
variant: "ghost",
|
|
146
|
-
color: "inverse",
|
|
147
|
-
class: "text-fg-inverse"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
variant: "ghost",
|
|
151
|
-
color: "primary",
|
|
152
|
-
class: "text-fg-primary"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
variant: "ghost",
|
|
156
|
-
color: "secondary",
|
|
157
|
-
class: "text-fg-secondary"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
variant: "ghost",
|
|
161
|
-
color: "tertiary",
|
|
162
|
-
class: "text-fg-tertiary"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
variant: "ghost",
|
|
166
|
-
color: "accent",
|
|
167
|
-
class: "text-fg-accent"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
variant: "ghost",
|
|
171
|
-
color: "positive",
|
|
172
|
-
class: "text-fg-positive"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
variant: "ghost",
|
|
176
|
-
color: "destructive",
|
|
177
|
-
class: "text-fg-destructive"
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
defaultVariants: {
|
|
181
|
-
size: "md",
|
|
182
|
-
color: "primary",
|
|
183
|
-
align: "center",
|
|
184
|
-
shape: "rounded",
|
|
185
|
-
spacing: "md",
|
|
186
|
-
variant: "fill",
|
|
187
|
-
loading: false,
|
|
188
|
-
stretched: false
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
|
|
193
|
-
// src/components/button/Button.tsx
|
|
194
|
-
var Button = (props) => {
|
|
195
|
-
const defaultedProps = mergeProps({
|
|
196
|
-
color: "primary"
|
|
197
|
-
}, props);
|
|
198
|
-
const [variantProps, otherProps] = splitProps(defaultedProps, ["class", ...buttonVariants.variantKeys]);
|
|
199
|
-
const classes = createMemo(() => buttonVariants(variantProps));
|
|
200
|
-
return createComponent(PolymorphicButton_default, mergeProps$1({
|
|
201
|
-
get ["class"]() {
|
|
202
|
-
return classes();
|
|
203
|
-
},
|
|
204
|
-
get ["aria-busy"]() {
|
|
205
|
-
return variantProps.loading ? "true" : void 0;
|
|
206
|
-
}
|
|
207
|
-
}, otherProps));
|
|
208
|
-
};
|
|
209
|
-
var Button_default = Button;
|
|
210
|
-
|
|
211
|
-
// src/components/button/index.ts
|
|
212
|
-
var button_default = Button_default;
|
|
213
|
-
|
|
214
|
-
export { button_default };
|
package/dist/chunk/PNPC2OI3.jsx
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cva
|
|
3
|
-
} from "./P7WPLZNA.jsx";
|
|
4
|
-
|
|
5
|
-
// src/components/input/Input.tsx
|
|
6
|
-
import {
|
|
7
|
-
createSignal,
|
|
8
|
-
mergeProps,
|
|
9
|
-
Show as Show2,
|
|
10
|
-
splitProps
|
|
11
|
-
} from "solid-js";
|
|
12
|
-
|
|
13
|
-
// src/components/input/Input.styles.ts
|
|
14
|
-
var inputWrapperClass = "relative flex items-center";
|
|
15
|
-
var inputVariants = cva(
|
|
16
|
-
[
|
|
17
|
-
"block w-full appearance-none outline-none bg-transparent",
|
|
18
|
-
"border transition-colors duration-200",
|
|
19
|
-
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
20
|
-
],
|
|
21
|
-
{
|
|
22
|
-
variants: {
|
|
23
|
-
color: {
|
|
24
|
-
danger: "border-red-500 text-red-600",
|
|
25
|
-
success: "border-green-500 text-green-600",
|
|
26
|
-
warning: "border-orange-500 text-orange-600"
|
|
27
|
-
},
|
|
28
|
-
rounded: {
|
|
29
|
-
true: "rounded-full",
|
|
30
|
-
false: "rounded-md"
|
|
31
|
-
},
|
|
32
|
-
expanded: {
|
|
33
|
-
true: "w-full",
|
|
34
|
-
false: "w-fit"
|
|
35
|
-
},
|
|
36
|
-
loading: {
|
|
37
|
-
true: "opacity-50",
|
|
38
|
-
false: ""
|
|
39
|
-
},
|
|
40
|
-
hasLeftIcon: {
|
|
41
|
-
true: "pl-10",
|
|
42
|
-
false: "pl-4"
|
|
43
|
-
},
|
|
44
|
-
hasRightIcon: {
|
|
45
|
-
true: "pr-10",
|
|
46
|
-
false: "pr-4"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
defaultVariants: {
|
|
50
|
-
color: void 0,
|
|
51
|
-
rounded: false,
|
|
52
|
-
expanded: true,
|
|
53
|
-
loading: false,
|
|
54
|
-
hasLeftIcon: false,
|
|
55
|
-
hasRightIcon: false
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
var iconLeftClass = "absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none text-gray-400";
|
|
60
|
-
var iconRightClass = "absolute right-3 top-1/2 -translate-y-1/2 text-gray-400";
|
|
61
|
-
var iconButtonClass = "absolute right-3 top-1/2 -translate-y-1/2 text-gray-500";
|
|
62
|
-
|
|
63
|
-
// src/components/input/EyeIcon.tsx
|
|
64
|
-
import { Show } from "solid-js";
|
|
65
|
-
var EyeIcon = (props) => {
|
|
66
|
-
return <Show when={props.invisible} fallback={<EyeOpen />}>
|
|
67
|
-
<EyeInvisible />
|
|
68
|
-
</Show>;
|
|
69
|
-
};
|
|
70
|
-
var EyeInvisible = () => <svg
|
|
71
|
-
viewBox="64 64 896 896"
|
|
72
|
-
tabIndex="-1"
|
|
73
|
-
width="1em"
|
|
74
|
-
height="1em"
|
|
75
|
-
fill="currentColor"
|
|
76
|
-
aria-hidden="true"
|
|
77
|
-
>
|
|
78
|
-
<path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" />
|
|
79
|
-
<path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" />
|
|
80
|
-
</svg>;
|
|
81
|
-
var EyeOpen = () => <svg
|
|
82
|
-
viewBox="64 64 896 896"
|
|
83
|
-
tabIndex="-1"
|
|
84
|
-
width="1em"
|
|
85
|
-
height="1em"
|
|
86
|
-
fill="currentColor"
|
|
87
|
-
aria-hidden="true"
|
|
88
|
-
>
|
|
89
|
-
<path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" />
|
|
90
|
-
</svg>;
|
|
91
|
-
var EyeIcon_default = EyeIcon;
|
|
92
|
-
|
|
93
|
-
// src/components/input/Input.tsx
|
|
94
|
-
var Input = (props) => {
|
|
95
|
-
const defaultedProps = mergeProps({ type: "text", placeholder: "" }, props);
|
|
96
|
-
const [localProps, variantProps, otherProps] = splitProps(
|
|
97
|
-
defaultedProps,
|
|
98
|
-
[
|
|
99
|
-
"type",
|
|
100
|
-
"passwordReveal",
|
|
101
|
-
"leftIcon",
|
|
102
|
-
"rightIcon",
|
|
103
|
-
"class",
|
|
104
|
-
"value",
|
|
105
|
-
"onInput",
|
|
106
|
-
"name"
|
|
107
|
-
],
|
|
108
|
-
["color", "rounded", "expanded", "loading", "hasLeftIcon", "hasRightIcon"]
|
|
109
|
-
);
|
|
110
|
-
const [showPassword, setShowPassword] = createSignal(false);
|
|
111
|
-
const resolvedType = () => localProps.passwordReveal && showPassword() ? "text" : localProps.type ?? "text";
|
|
112
|
-
const inputClass = inputVariants({
|
|
113
|
-
...variantProps,
|
|
114
|
-
hasLeftIcon: !!localProps.leftIcon,
|
|
115
|
-
hasRightIcon: !!(localProps.rightIcon || localProps.passwordReveal),
|
|
116
|
-
class: localProps.class
|
|
117
|
-
});
|
|
118
|
-
return <div class={inputWrapperClass}>
|
|
119
|
-
<Show2 when={localProps.leftIcon}>
|
|
120
|
-
<span class={iconLeftClass}>{localProps.leftIcon}</span>
|
|
121
|
-
</Show2>
|
|
122
|
-
|
|
123
|
-
<input
|
|
124
|
-
type={resolvedType()}
|
|
125
|
-
class={inputClass}
|
|
126
|
-
aria-invalid={variantProps.color === "danger" ? "true" : void 0}
|
|
127
|
-
value={localProps.value}
|
|
128
|
-
onInput={localProps.onInput}
|
|
129
|
-
name={localProps.name}
|
|
130
|
-
{...otherProps}
|
|
131
|
-
/>
|
|
132
|
-
|
|
133
|
-
<Show2 when={localProps.passwordReveal && !localProps.rightIcon}>
|
|
134
|
-
<button
|
|
135
|
-
type="button"
|
|
136
|
-
onClick={() => setShowPassword((p) => !p)}
|
|
137
|
-
class={iconButtonClass}
|
|
138
|
-
>
|
|
139
|
-
<EyeIcon_default invisible={showPassword()} />
|
|
140
|
-
</button>
|
|
141
|
-
</Show2>
|
|
142
|
-
|
|
143
|
-
<Show2 when={localProps.rightIcon && !localProps.passwordReveal}>
|
|
144
|
-
<span class={iconRightClass}>{localProps.rightIcon}</span>
|
|
145
|
-
</Show2>
|
|
146
|
-
</div>;
|
|
147
|
-
};
|
|
148
|
-
var Input_default = Input;
|
|
149
|
-
|
|
150
|
-
// src/components/input/index.ts
|
|
151
|
-
var input_default = Input_default;
|
|
152
|
-
|
|
153
|
-
export {
|
|
154
|
-
EyeIcon_default,
|
|
155
|
-
input_default
|
|
156
|
-
};
|
package/dist/chunk/QHJOIUYT.jsx
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
classes,
|
|
3
|
-
cva
|
|
4
|
-
} from "./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 input = e.target;
|
|
59
|
-
const files = input.files;
|
|
60
|
-
if (!files || files.length === 0) return;
|
|
61
|
-
if (local.onChange) {
|
|
62
|
-
if (local.multiple) {
|
|
63
|
-
local.onChange(Array.from(files));
|
|
64
|
-
} else if (files[0]) {
|
|
65
|
-
local.onChange(files[0]);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
const handleDrop = (e) => {
|
|
70
|
-
if (!local.dragDrop) return;
|
|
71
|
-
e.preventDefault();
|
|
72
|
-
const files = e.dataTransfer?.files;
|
|
73
|
-
if (!files || files.length === 0) return;
|
|
74
|
-
if (local.onChange) {
|
|
75
|
-
if (local.multiple) {
|
|
76
|
-
local.onChange(Array.from(files));
|
|
77
|
-
} else if (files[0]) {
|
|
78
|
-
local.onChange(files[0]);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
const handleDragOver = (e) => {
|
|
83
|
-
if (local.dragDrop) e.preventDefault();
|
|
84
|
-
};
|
|
85
|
-
return <div class={uploadWrapperVariants(variantProps)}>
|
|
86
|
-
<label class="cursor-pointer relative w-full h-full">
|
|
87
|
-
<input
|
|
88
|
-
type="file"
|
|
89
|
-
class={fileInputClass}
|
|
90
|
-
name={local.name}
|
|
91
|
-
multiple={local.multiple}
|
|
92
|
-
accept={local.accept}
|
|
93
|
-
disabled={local.disabled}
|
|
94
|
-
onChange={handleChange}
|
|
95
|
-
{...otherProps}
|
|
96
|
-
/>
|
|
97
|
-
<div
|
|
98
|
-
class={classes(
|
|
99
|
-
variantProps.style === "boxed" ? "flex flex-col items-center justify-center gap-2" : "flex flex-row items-center justify-center gap-2"
|
|
100
|
-
)}
|
|
101
|
-
>
|
|
102
|
-
<Show when={local.icon}>
|
|
103
|
-
<span class={fileIconClass}>{local.icon}</span>
|
|
104
|
-
</Show>
|
|
105
|
-
<span class={fileLabelClass}>{local.label}</span>
|
|
106
|
-
</div>
|
|
107
|
-
</label>
|
|
108
|
-
</div>;
|
|
109
|
-
};
|
|
110
|
-
var Upload_default = Upload;
|
|
111
|
-
|
|
112
|
-
// src/components/upload/index.ts
|
|
113
|
-
var upload_default = Upload_default;
|
|
114
|
-
|
|
115
|
-
export {
|
|
116
|
-
upload_default
|
|
117
|
-
};
|
package/dist/chunk/QONDPQ2I.jsx
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cva
|
|
3
|
-
} from "./P7WPLZNA.jsx";
|
|
4
|
-
|
|
5
|
-
// src/components/accordion/Accordion.tsx
|
|
6
|
-
import {
|
|
7
|
-
createSignal,
|
|
8
|
-
splitProps,
|
|
9
|
-
Show
|
|
10
|
-
} from "solid-js";
|
|
11
|
-
|
|
12
|
-
// src/components/accordion/Accordion.styles.ts
|
|
13
|
-
var accordionContainerVariants = cva(
|
|
14
|
-
["w-full border rounded transition-colors", "bg-white dark:bg-gray-800"],
|
|
15
|
-
{
|
|
16
|
-
variants: {
|
|
17
|
-
expanded: {
|
|
18
|
-
true: "border-blue-500",
|
|
19
|
-
false: "border-gray-300 dark:border-gray-600"
|
|
20
|
-
},
|
|
21
|
-
disabled: {
|
|
22
|
-
true: "opacity-50 cursor-not-allowed",
|
|
23
|
-
false: ""
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
expanded: false,
|
|
28
|
-
disabled: false
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
var accordionHeaderVariants = cva(
|
|
33
|
-
[
|
|
34
|
-
"w-full text-left px-4 py-2 flex items-center justify-between cursor-pointer",
|
|
35
|
-
"transition-colors duration-200"
|
|
36
|
-
],
|
|
37
|
-
{
|
|
38
|
-
variants: {
|
|
39
|
-
headerIsTrigger: {
|
|
40
|
-
true: "hover:bg-gray-100 dark:hover:bg-gray-700",
|
|
41
|
-
false: ""
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
defaultVariants: {
|
|
45
|
-
headerIsTrigger: true
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
var accordionContentVariants = cva(
|
|
50
|
-
"px-4 py-2 border-t border-gray-200 dark:border-gray-700"
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
// src/components/accordion/Accordion.tsx
|
|
54
|
-
var Accordion = (props) => {
|
|
55
|
-
const [local, variantProps, otherProps] = splitProps(
|
|
56
|
-
props,
|
|
57
|
-
["expanded", "disabled", "headerIsTrigger", "header", "content"],
|
|
58
|
-
["expanded", "disabled"]
|
|
59
|
-
);
|
|
60
|
-
const [isOpen, setIsOpen] = createSignal(local.expanded ?? false);
|
|
61
|
-
const handleToggle = () => {
|
|
62
|
-
if (!local.disabled) setIsOpen((prev) => !prev);
|
|
63
|
-
};
|
|
64
|
-
const handleKeyDown = local.headerIsTrigger ? (e) => {
|
|
65
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
66
|
-
e.preventDefault();
|
|
67
|
-
handleToggle();
|
|
68
|
-
}
|
|
69
|
-
} : void 0;
|
|
70
|
-
return <div
|
|
71
|
-
class={accordionContainerVariants({
|
|
72
|
-
...variantProps,
|
|
73
|
-
expanded: isOpen(),
|
|
74
|
-
disabled: local.disabled
|
|
75
|
-
})}
|
|
76
|
-
onKeyDown={handleKeyDown}
|
|
77
|
-
role={local.headerIsTrigger ? "button" : void 0}
|
|
78
|
-
tabindex={local.headerIsTrigger ? "0" : void 0}
|
|
79
|
-
aria-expanded={local.headerIsTrigger ? isOpen() : void 0}
|
|
80
|
-
aria-disabled={local.disabled}
|
|
81
|
-
{...otherProps}
|
|
82
|
-
>
|
|
83
|
-
<div
|
|
84
|
-
class={accordionHeaderVariants({
|
|
85
|
-
headerIsTrigger: local.headerIsTrigger
|
|
86
|
-
})}
|
|
87
|
-
onClick={local.headerIsTrigger ? handleToggle : void 0}
|
|
88
|
-
role={local.headerIsTrigger ? "button" : void 0}
|
|
89
|
-
>
|
|
90
|
-
{local.header}
|
|
91
|
-
</div>
|
|
92
|
-
|
|
93
|
-
<Show when={isOpen()}>
|
|
94
|
-
<div class={accordionContentVariants()}>{local.content}</div>
|
|
95
|
-
</Show>
|
|
96
|
-
</div>;
|
|
97
|
-
};
|
|
98
|
-
var Accordion_default = Accordion;
|
|
99
|
-
|
|
100
|
-
// src/components/accordion/index.ts
|
|
101
|
-
var accordion_default = Accordion_default;
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
accordion_default
|
|
105
|
-
};
|
package/dist/chunk/R6COBCN7.jsx
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cva
|
|
3
|
-
} from "./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 overflow-hidden text-ellipsis"
|
|
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
|
-
{variantProps.multilined ? local.label.split("\n").map((line, index) => <div class="block">{line}</div>) : 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;
|
|
97
|
-
|
|
98
|
-
export {
|
|
99
|
-
tooltip_default
|
|
100
|
-
};
|