@pathscale/ui 0.0.13 → 0.0.14
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 +44 -39
- package/dist/components/accordion/index.html +7 -0
- package/dist/components/accordion/index.html.br +2 -0
- package/dist/components/accordion/index.js +7690 -1
- package/dist/components/accordion/index.js.br +0 -0
- package/dist/components/alert/index.html +7 -0
- package/dist/components/alert/index.html.br +0 -0
- package/dist/components/alert/index.js +7426 -0
- package/dist/components/alert/index.js.br +0 -0
- package/dist/components/autocomplete/index.html +7 -0
- package/dist/components/autocomplete/index.html.br +1 -0
- package/dist/components/autocomplete/index.js +5438 -1
- package/dist/components/autocomplete/index.js.br +0 -0
- package/dist/components/avatar/index.html +7 -0
- package/dist/components/avatar/index.html.br +0 -0
- package/dist/components/avatar/index.js +8795 -1
- package/dist/components/avatar/index.js.br +0 -0
- package/dist/components/badge/index.html +7 -0
- package/dist/components/badge/index.html.br +1 -0
- package/dist/components/badge/index.js +7435 -1
- package/dist/components/badge/index.js.br +0 -0
- package/dist/components/breadcrumbs/index.html +7 -0
- package/dist/components/breadcrumbs/index.html.br +0 -0
- package/dist/components/breadcrumbs/index.js +7434 -1
- package/dist/components/breadcrumbs/index.js.br +0 -0
- package/dist/components/button/index.html +7 -0
- package/dist/components/button/index.html.br +0 -0
- package/dist/components/button/index.js +8771 -1
- package/dist/components/button/index.js.br +0 -0
- package/dist/components/card/index.html +7 -0
- package/dist/components/card/index.html.br +2 -0
- package/dist/components/card/index.js +7536 -0
- package/dist/components/card/index.js.br +0 -0
- package/dist/components/chatbubble/index.html +7 -0
- package/dist/components/chatbubble/index.html.br +0 -0
- package/dist/components/chatbubble/index.js +8991 -0
- package/dist/components/chatbubble/index.js.br +0 -0
- package/dist/components/checkbox/index.html +7 -0
- package/dist/components/checkbox/index.html.br +0 -0
- package/dist/components/checkbox/index.js +7436 -1
- package/dist/components/checkbox/index.js.br +0 -0
- package/dist/components/collapse/index.html +7 -0
- package/dist/components/collapse/index.html.br +0 -0
- package/dist/components/collapse/index.js +7621 -1
- package/dist/components/collapse/index.js.br +0 -0
- package/dist/components/countdown/index.html +7 -0
- package/dist/components/countdown/index.html.br +0 -0
- package/dist/components/countdown/index.js +7378 -0
- package/dist/components/countdown/index.js.br +0 -0
- package/dist/components/diff/index.html +7 -0
- package/dist/components/diff/index.html.br +0 -0
- package/dist/components/diff/index.js +7408 -0
- package/dist/components/diff/index.js.br +0 -0
- package/dist/components/divider/index.html +7 -0
- package/dist/components/divider/index.html.br +0 -0
- package/dist/components/divider/index.js +9852 -0
- package/dist/components/divider/index.js.br +0 -0
- package/dist/components/dock/index.html +7 -0
- package/dist/components/dock/index.html.br +0 -0
- package/dist/components/dock/index.js +7503 -0
- package/dist/components/dock/index.js.br +0 -0
- package/dist/components/dropdown/index.html +7 -0
- package/dist/components/dropdown/index.html.br +0 -0
- package/dist/components/dropdown/index.js +9073 -1
- package/dist/components/dropdown/index.js.br +0 -0
- package/dist/components/field/index.html +7 -0
- package/dist/components/field/index.html.br +2 -0
- package/dist/components/field/index.js +5356 -1
- package/dist/components/field/index.js.br +0 -0
- package/dist/components/fileinput/index.html +7 -0
- package/dist/components/fileinput/index.html.br +2 -0
- package/dist/components/fileinput/index.js +7431 -1
- package/dist/components/fileinput/index.js.br +0 -0
- package/dist/components/indicator/index.html +7 -0
- package/dist/components/indicator/index.html.br +2 -0
- package/dist/components/indicator/index.js +9219 -0
- package/dist/components/indicator/index.js.br +0 -0
- package/dist/components/input/index.html +7 -0
- package/dist/components/input/index.html.br +2 -0
- package/dist/components/input/index.js +7425 -1
- package/dist/components/input/index.js.br +0 -0
- package/dist/components/join/index.html +7 -0
- package/dist/components/join/index.html.br +2 -0
- package/dist/components/join/index.js +7418 -1
- package/dist/components/join/index.js.br +0 -0
- package/dist/components/kbd/index.html +7 -0
- package/dist/components/kbd/index.html.br +2 -0
- package/dist/components/kbd/index.js +7399 -0
- package/dist/components/kbd/index.js.br +0 -0
- package/dist/components/link/index.html +7 -0
- package/dist/components/link/index.html.br +2 -0
- package/dist/components/link/index.js +7422 -0
- package/dist/components/link/index.js.br +0 -0
- package/dist/components/loading/index.html +7 -0
- package/dist/components/loading/index.html.br +0 -0
- package/dist/components/loading/index.js +7432 -1
- package/dist/components/loading/index.js.br +0 -0
- package/dist/components/mask/index.html +7 -0
- package/dist/components/mask/index.html.br +0 -0
- package/dist/components/mask/index.js +7440 -1
- package/dist/components/mask/index.js.br +0 -0
- package/dist/components/menu/index.html +7 -0
- package/dist/components/menu/index.html.br +2 -0
- package/dist/components/menu/index.js +7618 -1
- package/dist/components/menu/index.js.br +0 -0
- package/dist/components/modal/index.html +7 -0
- package/dist/components/modal/index.html.br +3 -0
- package/dist/components/modal/index.js +7599 -0
- package/dist/components/modal/index.js.br +0 -0
- package/dist/components/navbar/index.html +7 -0
- package/dist/components/navbar/index.html.br +2 -0
- package/dist/components/navbar/index.js +7475 -1
- package/dist/components/navbar/index.js.br +0 -0
- package/dist/components/pagination/index.html +7 -0
- package/dist/components/pagination/index.html.br +2 -0
- package/dist/components/pagination/index.js +7426 -1
- package/dist/components/pagination/index.js.br +0 -0
- package/dist/components/polymorphic/index.html +7 -0
- package/dist/components/polymorphic/index.html.br +0 -0
- package/dist/components/polymorphic/index.js +3031 -1
- package/dist/components/polymorphic/index.js.br +0 -0
- package/dist/components/progress/index.html +7 -0
- package/dist/components/progress/index.html.br +0 -0
- package/dist/components/progress/index.js +7413 -0
- package/dist/components/progress/index.js.br +0 -0
- package/dist/components/radialprogress/index.html +7 -0
- package/dist/components/radialprogress/index.html.br +0 -0
- package/dist/components/radialprogress/index.js +7430 -0
- package/dist/components/radialprogress/index.js.br +0 -0
- package/dist/components/radio/index.html +7 -0
- package/dist/components/radio/index.html.br +2 -0
- package/dist/components/radio/index.js +7423 -0
- package/dist/components/radio/index.js.br +0 -0
- package/dist/components/range/index.html +7 -0
- package/dist/components/range/index.html.br +0 -0
- package/dist/components/range/index.js +7462 -0
- package/dist/components/range/index.js.br +0 -0
- package/dist/components/rating/index.html +7 -0
- package/dist/components/rating/index.html.br +0 -0
- package/dist/components/rating/index.js +8858 -0
- package/dist/components/rating/index.js.br +0 -0
- package/dist/components/select/index.html +7 -0
- package/dist/components/select/index.html.br +0 -0
- package/dist/components/select/index.js +7427 -1
- package/dist/components/select/index.js.br +0 -0
- package/dist/components/skeleton/index.html +7 -0
- package/dist/components/skeleton/index.html.br +0 -0
- package/dist/components/skeleton/index.js +7381 -0
- package/dist/components/skeleton/index.js.br +0 -0
- package/dist/components/stack/index.html +7 -0
- package/dist/components/stack/index.html.br +0 -0
- package/dist/components/stack/index.js +8972 -0
- package/dist/components/stack/index.js.br +0 -0
- package/dist/components/stats/index.html +7 -0
- package/dist/components/stats/index.html.br +0 -0
- package/dist/components/stats/index.js +7508 -0
- package/dist/components/stats/index.js.br +0 -0
- package/dist/components/steps/index.html +7 -0
- package/dist/components/steps/index.html.br +0 -0
- package/dist/components/steps/index.js +8732 -1
- package/dist/components/steps/index.js.br +0 -0
- package/dist/components/swap/index.html +7 -0
- package/dist/components/swap/index.html.br +2 -0
- package/dist/components/swap/index.js +7467 -0
- package/dist/components/swap/index.js.br +0 -0
- package/dist/components/table/index.html +7 -0
- package/dist/components/table/index.html.br +2 -0
- package/dist/components/table/index.js +9493 -1
- package/dist/components/table/index.js.br +0 -0
- package/dist/components/tabs/index.html +7 -0
- package/dist/components/tabs/index.html.br +3 -0
- package/dist/components/tabs/index.js +5399 -1
- package/dist/components/tabs/index.js.br +0 -0
- package/dist/components/textarea/index.html +7 -0
- package/dist/components/textarea/index.html.br +0 -0
- package/dist/components/textarea/index.js +7425 -1
- package/dist/components/textarea/index.js.br +0 -0
- package/dist/components/timeline/index.html +7 -0
- package/dist/components/timeline/index.html.br +1 -0
- package/dist/components/timeline/index.js +7600 -1
- package/dist/components/timeline/index.js.br +0 -0
- package/dist/components/toast/index.html +7 -0
- package/dist/components/toast/index.html.br +0 -0
- package/dist/components/toast/index.js +8793 -1
- package/dist/components/toast/index.js.br +0 -0
- package/dist/components/toggle/index.html +7 -0
- package/dist/components/toggle/index.html.br +0 -0
- package/dist/components/toggle/index.js +7426 -1
- package/dist/components/toggle/index.js.br +0 -0
- package/dist/components/tooltip/index.html +7 -0
- package/dist/components/tooltip/index.html.br +0 -0
- package/dist/components/tooltip/index.js +7432 -1
- package/dist/components/tooltip/index.js.br +0 -0
- package/dist/index.css.css +176 -0
- package/dist/index.css.css.br +0 -0
- package/dist/index.css.html +7 -0
- package/dist/index.css.html.br +0 -0
- package/dist/index.css.js +126 -0
- package/dist/index.css.js.br +0 -0
- package/dist/index.html +7 -0
- package/dist/index.html.br +0 -0
- package/dist/index.js +16127 -29
- package/dist/index.js.br +0 -0
- package/package.json +38 -43
- package/dist/Autocomplete-gLkjMHrc.d.ts +0 -28
- package/dist/Avatar-Dkd_kPlV.d.ts +0 -40
- package/dist/CollapseTitle-BNxog3is.d.ts +0 -12
- package/dist/Field-DI2PA30N.d.ts +0 -49
- package/dist/Mask-CPb596Mg.d.ts +0 -16
- package/dist/Menu-DgO4SHmA.d.ts +0 -45
- package/dist/Progress-ChF4ior8.d.ts +0 -64
- package/dist/Steps-Dk-UPL6r.d.ts +0 -38
- package/dist/Table-CGa6Nop3.d.ts +0 -39
- package/dist/Tabs-WiUU0xsM.d.ts +0 -42
- package/dist/Timeline-Bd4SxHMT.d.ts +0 -14
- package/dist/chunk/2OJYONJ3.js +0 -40
- package/dist/chunk/2VQ2762Z.js +0 -80
- package/dist/chunk/2XPPNBYK.js +0 -164
- package/dist/chunk/3FBDYV4P.js +0 -143
- package/dist/chunk/3I23P4TJ.js +0 -33
- package/dist/chunk/55B7Q4NT.jsx +0 -258
- package/dist/chunk/5HG7XWVC.jsx +0 -2956
- package/dist/chunk/5IJ7WEIF.js +0 -43
- package/dist/chunk/5O6WC3OB.jsx +0 -67
- package/dist/chunk/64ESNXN4.js +0 -1
- package/dist/chunk/6P5JIKPF.jsx +0 -51
- package/dist/chunk/BHLLVOVR.js +0 -46
- package/dist/chunk/C4YO33NN.jsx +0 -179
- package/dist/chunk/DJI5XKAV.js +0 -31
- package/dist/chunk/DN3P54J2.jsx +0 -43
- package/dist/chunk/DSTUGZW6.jsx +0 -81
- package/dist/chunk/DVFQAAZR.js +0 -43
- package/dist/chunk/EDDBK4J6.js +0 -42
- package/dist/chunk/FKSQPGOD.jsx +0 -170
- package/dist/chunk/FZRQDGPD.jsx +0 -54
- package/dist/chunk/G5UEZ2VC.js +0 -49
- package/dist/chunk/GL7JG772.js +0 -114
- package/dist/chunk/GMIXRYN3.js +0 -138
- package/dist/chunk/H2Q3L5KM.js +0 -48
- package/dist/chunk/HEOKGP5U.js +0 -55
- package/dist/chunk/HKS7ET6T.js +0 -56
- package/dist/chunk/HUHXQCKK.js +0 -16
- package/dist/chunk/HWAGW5N4.jsx +0 -118
- package/dist/chunk/I36LHZUY.jsx +0 -31
- package/dist/chunk/IG323YKF.jsx +0 -50
- package/dist/chunk/JQ4HSRDP.js +0 -142
- package/dist/chunk/JSQBKK7L.jsx +0 -50
- package/dist/chunk/JWRGKHDO.js +0 -172
- package/dist/chunk/K3WO7SRD.js +0 -1
- package/dist/chunk/KQ3RAWCE.jsx +0 -57
- package/dist/chunk/KV6LTJHI.jsx +0 -175
- package/dist/chunk/KXJZKDJX.jsx +0 -0
- package/dist/chunk/L4A67X7S.js +0 -7
- package/dist/chunk/LGDDR242.jsx +0 -159
- package/dist/chunk/MAX47D6F.js +0 -99
- package/dist/chunk/MM2DZQL3.js +0 -46
- package/dist/chunk/MYERRMTM.js +0 -200
- package/dist/chunk/O7LDJCQS.jsx +0 -18
- package/dist/chunk/OJRG4ZAB.jsx +0 -143
- package/dist/chunk/P653OZ5D.js +0 -224
- package/dist/chunk/P7WPLZNA.jsx +0 -59
- package/dist/chunk/PFB27MP3.jsx +0 -0
- package/dist/chunk/Q4442PU4.js +0 -42
- package/dist/chunk/QYEMOKUG.js +0 -125
- package/dist/chunk/R5G3PODL.jsx +0 -11
- package/dist/chunk/R6ZBT7CY.jsx +0 -55
- package/dist/chunk/RHEFVSMJ.jsx +0 -52
- package/dist/chunk/SPEY5RMB.js +0 -84
- package/dist/chunk/STFCLC5R.js +0 -2954
- package/dist/chunk/STKRVQR6.jsx +0 -130
- package/dist/chunk/SVJIYMYJ.jsx +0 -156
- package/dist/chunk/SYWB4UN3.jsx +0 -64
- package/dist/chunk/T2LDLYWV.jsx +0 -101
- package/dist/chunk/T324HUIT.jsx +0 -57
- package/dist/chunk/T5LDPSFV.jsx +0 -122
- package/dist/chunk/UNKDNDT3.js +0 -62
- package/dist/chunk/VN5BKHA2.jsx +0 -97
- package/dist/chunk/WOT36Q7O.js +0 -166
- package/dist/chunk/WUZETUQR.js +0 -92
- package/dist/chunk/XM3KF5LV.jsx +0 -179
- package/dist/chunk/YWIT2MRI.jsx +0 -43
- package/dist/chunk/ZH7DKMMN.js +0 -109
- package/dist/chunk/ZYEP35R3.jsx +0 -60
- package/dist/classes-B_S9K-9I.d.ts +0 -13
- package/dist/components/Progress/index.d.ts +0 -7
- package/dist/components/Progress/index.js +0 -1
- package/dist/components/Progress/index.jsx +0 -7
- package/dist/components/accordion/index.d.ts +0 -20
- package/dist/components/accordion/index.jsx +0 -9
- package/dist/components/autocomplete/index.d.ts +0 -8
- package/dist/components/autocomplete/index.jsx +0 -7
- package/dist/components/avatar/index.d.ts +0 -8
- package/dist/components/avatar/index.jsx +0 -8
- package/dist/components/badge/index.d.ts +0 -17
- package/dist/components/badge/index.jsx +0 -8
- package/dist/components/breadcrumbs/index.d.ts +0 -9
- package/dist/components/breadcrumbs/index.jsx +0 -7
- package/dist/components/button/index.d.ts +0 -31
- package/dist/components/button/index.jsx +0 -9
- package/dist/components/checkbox/index.d.ts +0 -16
- package/dist/components/checkbox/index.jsx +0 -8
- package/dist/components/collapse/index.d.ts +0 -15
- package/dist/components/collapse/index.jsx +0 -14
- package/dist/components/dropdown/index.d.ts +0 -27
- package/dist/components/dropdown/index.jsx +0 -13
- package/dist/components/field/index.d.ts +0 -7
- package/dist/components/field/index.jsx +0 -7
- package/dist/components/fileinput/index.d.ts +0 -16
- package/dist/components/fileinput/index.jsx +0 -8
- package/dist/components/input/index.d.ts +0 -15
- package/dist/components/input/index.jsx +0 -8
- package/dist/components/join/index.d.ts +0 -11
- package/dist/components/join/index.jsx +0 -9
- package/dist/components/loading/index.d.ts +0 -11
- package/dist/components/loading/index.jsx +0 -9
- package/dist/components/mask/index.d.ts +0 -7
- package/dist/components/mask/index.jsx +0 -8
- package/dist/components/menu/index.d.ts +0 -8
- package/dist/components/menu/index.jsx +0 -8
- package/dist/components/navbar/index.d.ts +0 -36
- package/dist/components/navbar/index.jsx +0 -11
- package/dist/components/pagination/index.d.ts +0 -8
- package/dist/components/pagination/index.jsx +0 -9
- package/dist/components/polymorphic/index.d.ts +0 -34
- package/dist/components/polymorphic/index.jsx +0 -8
- package/dist/components/select/index.d.ts +0 -15
- package/dist/components/select/index.jsx +0 -8
- package/dist/components/steps/index.d.ts +0 -7
- package/dist/components/steps/index.jsx +0 -8
- package/dist/components/table/index.d.ts +0 -8
- package/dist/components/table/index.jsx +0 -7
- package/dist/components/tabs/index.d.ts +0 -8
- package/dist/components/tabs/index.jsx +0 -7
- package/dist/components/textarea/index.d.ts +0 -15
- package/dist/components/textarea/index.jsx +0 -8
- package/dist/components/timeline/index.d.ts +0 -7
- package/dist/components/timeline/index.jsx +0 -7
- package/dist/components/toast/index.d.ts +0 -24
- package/dist/components/toast/index.jsx +0 -11
- package/dist/components/toggle/index.d.ts +0 -15
- package/dist/components/toggle/index.jsx +0 -8
- package/dist/components/tooltip/index.d.ts +0 -17
- package/dist/components/tooltip/index.jsx +0 -8
- package/dist/index.css +0 -73
- package/dist/index.d.ts +0 -33
- package/dist/index.jsx +0 -143
- package/dist/types-CUG9pToa.d.ts +0 -15
package/dist/chunk/KV6LTJHI.jsx
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cva
|
|
3
|
-
} from "./P7WPLZNA.jsx";
|
|
4
|
-
|
|
5
|
-
// src/components/tabs/Tabs.tsx
|
|
6
|
-
import {
|
|
7
|
-
createSignal,
|
|
8
|
-
splitProps,
|
|
9
|
-
For,
|
|
10
|
-
Show,
|
|
11
|
-
createMemo
|
|
12
|
-
} from "solid-js";
|
|
13
|
-
|
|
14
|
-
// src/components/tabs/Tabs.styles.ts
|
|
15
|
-
var tabsNavVariants = cva(
|
|
16
|
-
"flex text-sm font-medium text-gray-600 dark:text-gray-300",
|
|
17
|
-
{
|
|
18
|
-
variants: {
|
|
19
|
-
type: {
|
|
20
|
-
basic: "",
|
|
21
|
-
boxed: "flex gap-2",
|
|
22
|
-
toggle: "inline-flex rounded-md p-1",
|
|
23
|
-
"toggle-rounded": "inline-flex rounded-full p-1"
|
|
24
|
-
},
|
|
25
|
-
size: {
|
|
26
|
-
sm: "text-xs gap-1",
|
|
27
|
-
md: "text-sm gap-2",
|
|
28
|
-
lg: "text-base gap-3"
|
|
29
|
-
},
|
|
30
|
-
alignment: {
|
|
31
|
-
left: "justify-start",
|
|
32
|
-
center: "justify-center",
|
|
33
|
-
right: "justify-end"
|
|
34
|
-
},
|
|
35
|
-
expanded: {
|
|
36
|
-
true: "w-full",
|
|
37
|
-
false: ""
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
defaultVariants: {
|
|
41
|
-
type: "basic",
|
|
42
|
-
size: "md",
|
|
43
|
-
alignment: "left",
|
|
44
|
-
expanded: false
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
var tabTriggerVariants = cva(
|
|
49
|
-
"inline-flex items-center justify-center whitespace-nowrap font-medium text-sm transition-colors",
|
|
50
|
-
{
|
|
51
|
-
variants: {
|
|
52
|
-
size: {
|
|
53
|
-
sm: "text-xs px-2 py-1",
|
|
54
|
-
md: "text-sm px-3 py-2",
|
|
55
|
-
lg: "text-base px-4 py-3"
|
|
56
|
-
},
|
|
57
|
-
type: {
|
|
58
|
-
basic: "border-b-2 transition-colors hover:text-blue-600",
|
|
59
|
-
boxed: "rounded-t px-4 py-2 hover:text-blue-600",
|
|
60
|
-
toggle: "border -ml-px px-4 py-2 transition-colors first:ml-0 first:rounded-l-md last:rounded-r-md",
|
|
61
|
-
"toggle-rounded": "border -ml-px first:ml-0 first:rounded-l-full last:rounded-r-full transition-colors"
|
|
62
|
-
},
|
|
63
|
-
active: {
|
|
64
|
-
true: "",
|
|
65
|
-
false: ""
|
|
66
|
-
},
|
|
67
|
-
disabled: {
|
|
68
|
-
true: "opacity-50 cursor-not-allowed pointer-events-none",
|
|
69
|
-
false: ""
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
compoundVariants: [
|
|
73
|
-
{
|
|
74
|
-
type: "basic",
|
|
75
|
-
active: true,
|
|
76
|
-
class: "border-blue-600 text-blue-600"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
type: "basic",
|
|
80
|
-
active: false,
|
|
81
|
-
class: "border-transparent text-gray-500 dark:text-gray-400"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
type: "boxed",
|
|
85
|
-
active: true,
|
|
86
|
-
class: "border-x border-t border-b-0 border-gray-400 dark:border-gray-600 text-blue-600"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
type: "boxed",
|
|
90
|
-
active: false,
|
|
91
|
-
class: "border-b border-transparent text-gray-500 dark:text-gray-400 hover:text-blue-600"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
type: "toggle",
|
|
95
|
-
active: true,
|
|
96
|
-
class: "bg-blue-600 text-white border-blue-600"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
type: "toggle",
|
|
100
|
-
active: false,
|
|
101
|
-
class: "bg-transparent text-gray-600 dark:text-gray-300 border-gray-300 dark:border-gray-600"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
type: "toggle-rounded",
|
|
105
|
-
active: true,
|
|
106
|
-
class: "bg-blue-600 text-white border-blue-600"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
type: "toggle-rounded",
|
|
110
|
-
active: false,
|
|
111
|
-
class: "bg-transparent text-gray-600 dark:text-gray-300 border-gray-300 dark:border-gray-600"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
defaultVariants: {
|
|
115
|
-
active: false,
|
|
116
|
-
disabled: false
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
// src/components/tabs/Tabs.tsx
|
|
122
|
-
var Tabs = (props) => {
|
|
123
|
-
const [local, variantProps, otherProps] = splitProps(
|
|
124
|
-
props,
|
|
125
|
-
["items", "value", "onChange"],
|
|
126
|
-
["size", "type", "alignment", "expanded"]
|
|
127
|
-
);
|
|
128
|
-
const [internalActive, setInternalActive] = createSignal(local.value ?? 0);
|
|
129
|
-
const isControlled = () => local.value !== void 0;
|
|
130
|
-
const active = createMemo(
|
|
131
|
-
() => isControlled() ? local.value : internalActive()
|
|
132
|
-
);
|
|
133
|
-
const handleChange = (i) => {
|
|
134
|
-
const item = local.items[i];
|
|
135
|
-
if (!item || item.disabled) return;
|
|
136
|
-
if (!isControlled()) {
|
|
137
|
-
setInternalActive(i);
|
|
138
|
-
}
|
|
139
|
-
local.onChange?.(i);
|
|
140
|
-
};
|
|
141
|
-
return <div {...otherProps}>
|
|
142
|
-
<nav class={tabsNavVariants(variantProps)}>
|
|
143
|
-
<ul class="flex gap-0">
|
|
144
|
-
<For each={local.items}>
|
|
145
|
-
{(tab, i) => <li>
|
|
146
|
-
<button
|
|
147
|
-
class={tabTriggerVariants({
|
|
148
|
-
type: variantProps.type ?? "basic",
|
|
149
|
-
size: variantProps.size ?? "md",
|
|
150
|
-
active: i() === active(),
|
|
151
|
-
disabled: tab.disabled
|
|
152
|
-
})}
|
|
153
|
-
onClick={() => handleChange(i())}
|
|
154
|
-
>
|
|
155
|
-
{tab.label}
|
|
156
|
-
</button>
|
|
157
|
-
</li>}
|
|
158
|
-
</For>
|
|
159
|
-
</ul>
|
|
160
|
-
</nav>
|
|
161
|
-
<div class="pt-4">
|
|
162
|
-
<Show when={local.items[active()]}>
|
|
163
|
-
{local.items[active()]?.content}
|
|
164
|
-
</Show>
|
|
165
|
-
</div>
|
|
166
|
-
</div>;
|
|
167
|
-
};
|
|
168
|
-
var Tabs_default = Tabs;
|
|
169
|
-
|
|
170
|
-
// src/components/tabs/index.ts
|
|
171
|
-
var tabs_default = Tabs_default;
|
|
172
|
-
|
|
173
|
-
export {
|
|
174
|
-
tabs_default
|
|
175
|
-
};
|
package/dist/chunk/KXJZKDJX.jsx
DELETED
|
File without changes
|
package/dist/chunk/L4A67X7S.js
DELETED
package/dist/chunk/LGDDR242.jsx
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clsx
|
|
3
|
-
} from "./O7LDJCQS.jsx";
|
|
4
|
-
import {
|
|
5
|
-
twMerge
|
|
6
|
-
} from "./5HG7XWVC.jsx";
|
|
7
|
-
|
|
8
|
-
// src/components/steps/Steps.tsx
|
|
9
|
-
import { splitProps as splitProps2 } from "solid-js";
|
|
10
|
-
import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
11
|
-
|
|
12
|
-
// src/components/steps/Step.tsx
|
|
13
|
-
import { splitProps } from "solid-js";
|
|
14
|
-
import { Dynamic } from "solid-js/web";
|
|
15
|
-
var VoidElementList = [
|
|
16
|
-
"area",
|
|
17
|
-
"base",
|
|
18
|
-
"br",
|
|
19
|
-
"col",
|
|
20
|
-
"embed",
|
|
21
|
-
"hr",
|
|
22
|
-
"img",
|
|
23
|
-
"input",
|
|
24
|
-
"link",
|
|
25
|
-
"keygen",
|
|
26
|
-
"meta",
|
|
27
|
-
"param",
|
|
28
|
-
"source",
|
|
29
|
-
"track",
|
|
30
|
-
"wbr"
|
|
31
|
-
];
|
|
32
|
-
var Step = (props) => {
|
|
33
|
-
const [local, others] = splitProps(
|
|
34
|
-
props,
|
|
35
|
-
[
|
|
36
|
-
"value",
|
|
37
|
-
"color",
|
|
38
|
-
"as",
|
|
39
|
-
"class",
|
|
40
|
-
"className",
|
|
41
|
-
"style",
|
|
42
|
-
"children",
|
|
43
|
-
"data-theme"
|
|
44
|
-
]
|
|
45
|
-
);
|
|
46
|
-
const Tag = local.as || "li";
|
|
47
|
-
const classes = () => twMerge(
|
|
48
|
-
"step",
|
|
49
|
-
local.class,
|
|
50
|
-
local.className,
|
|
51
|
-
clsx({
|
|
52
|
-
"step-neutral": local.color === "neutral",
|
|
53
|
-
"step-primary": local.color === "primary",
|
|
54
|
-
"step-secondary": local.color === "secondary",
|
|
55
|
-
"step-accent": local.color === "accent",
|
|
56
|
-
"step-info": local.color === "info",
|
|
57
|
-
"step-success": local.color === "success",
|
|
58
|
-
"step-warning": local.color === "warning",
|
|
59
|
-
"step-error": local.color === "error"
|
|
60
|
-
})
|
|
61
|
-
);
|
|
62
|
-
if (VoidElementList.includes(Tag)) {
|
|
63
|
-
return <Dynamic
|
|
64
|
-
component={Tag}
|
|
65
|
-
{...others}
|
|
66
|
-
aria-label="Step"
|
|
67
|
-
data-theme={local["data-theme"]}
|
|
68
|
-
data-content={local.value}
|
|
69
|
-
class={classes()}
|
|
70
|
-
style={local.style}
|
|
71
|
-
/>;
|
|
72
|
-
}
|
|
73
|
-
return <Dynamic
|
|
74
|
-
component={Tag}
|
|
75
|
-
{...others}
|
|
76
|
-
aria-label="Step"
|
|
77
|
-
data-theme={local["data-theme"]}
|
|
78
|
-
data-content={local.value}
|
|
79
|
-
class={classes()}
|
|
80
|
-
style={local.style}
|
|
81
|
-
>
|
|
82
|
-
{local.children}
|
|
83
|
-
</Dynamic>;
|
|
84
|
-
};
|
|
85
|
-
var Step_default = Step;
|
|
86
|
-
|
|
87
|
-
// src/components/steps/Steps.tsx
|
|
88
|
-
var VoidElementList2 = [
|
|
89
|
-
"area",
|
|
90
|
-
"base",
|
|
91
|
-
"br",
|
|
92
|
-
"col",
|
|
93
|
-
"embed",
|
|
94
|
-
"hr",
|
|
95
|
-
"img",
|
|
96
|
-
"input",
|
|
97
|
-
"link",
|
|
98
|
-
"keygen",
|
|
99
|
-
"meta",
|
|
100
|
-
"param",
|
|
101
|
-
"source",
|
|
102
|
-
"track",
|
|
103
|
-
"wbr"
|
|
104
|
-
];
|
|
105
|
-
var Steps = (props) => {
|
|
106
|
-
const [local, others] = splitProps2(
|
|
107
|
-
props,
|
|
108
|
-
[
|
|
109
|
-
"children",
|
|
110
|
-
"vertical",
|
|
111
|
-
"horizontal",
|
|
112
|
-
"as",
|
|
113
|
-
"class",
|
|
114
|
-
"className",
|
|
115
|
-
"style",
|
|
116
|
-
"data-theme"
|
|
117
|
-
]
|
|
118
|
-
);
|
|
119
|
-
const Tag = local.as || "ul";
|
|
120
|
-
const classes = () => twMerge(
|
|
121
|
-
"steps",
|
|
122
|
-
local.class,
|
|
123
|
-
local.className,
|
|
124
|
-
clsx({
|
|
125
|
-
"steps-vertical": local.vertical,
|
|
126
|
-
"steps-horizontal": local.horizontal
|
|
127
|
-
})
|
|
128
|
-
);
|
|
129
|
-
if (VoidElementList2.includes(Tag)) {
|
|
130
|
-
return <Dynamic2
|
|
131
|
-
component={Tag}
|
|
132
|
-
{...others}
|
|
133
|
-
role="group"
|
|
134
|
-
aria-label="Steps"
|
|
135
|
-
data-theme={local["data-theme"]}
|
|
136
|
-
class={classes()}
|
|
137
|
-
style={local.style}
|
|
138
|
-
/>;
|
|
139
|
-
}
|
|
140
|
-
return <Dynamic2
|
|
141
|
-
component={Tag}
|
|
142
|
-
{...others}
|
|
143
|
-
role="group"
|
|
144
|
-
aria-label="Steps"
|
|
145
|
-
data-theme={local["data-theme"]}
|
|
146
|
-
class={classes()}
|
|
147
|
-
style={local.style}
|
|
148
|
-
>
|
|
149
|
-
{local.children}
|
|
150
|
-
</Dynamic2>;
|
|
151
|
-
};
|
|
152
|
-
var Steps_default = Object.assign(Steps, { Step: Step_default });
|
|
153
|
-
|
|
154
|
-
// src/components/steps/index.ts
|
|
155
|
-
var steps_default = Steps_default;
|
|
156
|
-
|
|
157
|
-
export {
|
|
158
|
-
steps_default
|
|
159
|
-
};
|
package/dist/chunk/MAX47D6F.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { cva, classes } from './HKS7ET6T.js';
|
|
2
|
-
import { template, spread, mergeProps, insert, memo, effect, className } from 'solid-js/web';
|
|
3
|
-
import { splitProps } from 'solid-js';
|
|
4
|
-
|
|
5
|
-
// src/components/field/Field.styles.ts
|
|
6
|
-
var fieldWrapper = cva(
|
|
7
|
-
"flex flex-col space-y-1",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
horizontal: {
|
|
11
|
-
true: "flex-row items-center space-x-2 space-y-0",
|
|
12
|
-
false: "flex-col"
|
|
13
|
-
},
|
|
14
|
-
size: {
|
|
15
|
-
sm: "text-sm",
|
|
16
|
-
md: "text-base",
|
|
17
|
-
lg: "text-lg"
|
|
18
|
-
},
|
|
19
|
-
type: {
|
|
20
|
-
default: "",
|
|
21
|
-
danger: "text-red-600"
|
|
22
|
-
},
|
|
23
|
-
grouped: {
|
|
24
|
-
true: "flex flex-wrap gap-2",
|
|
25
|
-
false: ""
|
|
26
|
-
},
|
|
27
|
-
groupMultiline: {
|
|
28
|
-
true: "flex-col",
|
|
29
|
-
false: "flex-row"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
compoundVariants: [
|
|
33
|
-
{ horizontal: true, grouped: true, class: "items-start" }
|
|
34
|
-
],
|
|
35
|
-
defaultVariants: {
|
|
36
|
-
horizontal: false,
|
|
37
|
-
size: "md",
|
|
38
|
-
type: "default",
|
|
39
|
-
grouped: false,
|
|
40
|
-
groupMultiline: false
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
var labelStyles = cva("font-medium", {
|
|
45
|
-
variants: {
|
|
46
|
-
size: { sm: "text-sm", md: "text-base", lg: "text-lg" },
|
|
47
|
-
type: { default: "text-gray-800", danger: "text-red-600" }
|
|
48
|
-
},
|
|
49
|
-
defaultVariants: { size: "md", type: "default" }
|
|
50
|
-
});
|
|
51
|
-
var messageStyles = cva("mt-1 text-sm", {
|
|
52
|
-
variants: {
|
|
53
|
-
type: { default: "text-gray-600", danger: "text-red-600" }
|
|
54
|
-
},
|
|
55
|
-
defaultVariants: { type: "default" }
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
// src/components/field/Field.tsx
|
|
59
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div><div>`);
|
|
60
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<label>`);
|
|
61
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<span>`);
|
|
62
|
-
var Field = (props) => {
|
|
63
|
-
const [local, variantProps, rest] = splitProps(props, ["label", "message", "className", "children"], ["horizontal", "size", "type", "grouped", "groupMultiline"]);
|
|
64
|
-
return (() => {
|
|
65
|
-
var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
|
|
66
|
-
spread(_el$, mergeProps({
|
|
67
|
-
get ["class"]() {
|
|
68
|
-
return classes(fieldWrapper(variantProps), local.className);
|
|
69
|
-
}
|
|
70
|
-
}, rest), false, true);
|
|
71
|
-
insert(_el$, (() => {
|
|
72
|
-
var _c$ = memo(() => !!local.label);
|
|
73
|
-
return () => _c$() && (() => {
|
|
74
|
-
var _el$3 = _tmpl$2();
|
|
75
|
-
insert(_el$3, () => local.label);
|
|
76
|
-
effect(() => className(_el$3, labelStyles(variantProps)));
|
|
77
|
-
return _el$3;
|
|
78
|
-
})();
|
|
79
|
-
})(), _el$2);
|
|
80
|
-
insert(_el$2, () => local.children);
|
|
81
|
-
insert(_el$, (() => {
|
|
82
|
-
var _c$2 = memo(() => !!local.message);
|
|
83
|
-
return () => _c$2() && (() => {
|
|
84
|
-
var _el$4 = _tmpl$3();
|
|
85
|
-
insert(_el$4, () => local.message);
|
|
86
|
-
effect(() => className(_el$4, messageStyles(variantProps)));
|
|
87
|
-
return _el$4;
|
|
88
|
-
})();
|
|
89
|
-
})(), null);
|
|
90
|
-
effect(() => className(_el$2, classes(variantProps.horizontal ? "flex items-center gap-2" : "")));
|
|
91
|
-
return _el$;
|
|
92
|
-
})();
|
|
93
|
-
};
|
|
94
|
-
var Field_default = Field;
|
|
95
|
-
|
|
96
|
-
// src/components/field/index.ts
|
|
97
|
-
var field_default = Field_default;
|
|
98
|
-
|
|
99
|
-
export { field_default };
|
package/dist/chunk/MM2DZQL3.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { clsx } from './HUHXQCKK.js';
|
|
2
|
-
import { twMerge } from './STFCLC5R.js';
|
|
3
|
-
import { template, spread, mergeProps, insert } from 'solid-js/web';
|
|
4
|
-
import { splitProps } from 'solid-js';
|
|
5
|
-
|
|
6
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
7
|
-
var Tooltip = (props) => {
|
|
8
|
-
const [local, others] = splitProps(props, ["message", "open", "color", "position", "dataTheme", "class", "className", "style"]);
|
|
9
|
-
const classes = () => twMerge("tooltip", local.class, local.className, clsx({
|
|
10
|
-
"tooltip-open": local.open,
|
|
11
|
-
"tooltip-primary": local.color === "primary",
|
|
12
|
-
"tooltip-secondary": local.color === "secondary",
|
|
13
|
-
"tooltip-accent": local.color === "accent",
|
|
14
|
-
"tooltip-info": local.color === "info",
|
|
15
|
-
"tooltip-success": local.color === "success",
|
|
16
|
-
"tooltip-warning": local.color === "warning",
|
|
17
|
-
"tooltip-error": local.color === "error",
|
|
18
|
-
"tooltip-top": local.position === "top",
|
|
19
|
-
"tooltip-bottom": local.position === "bottom",
|
|
20
|
-
"tooltip-left": local.position === "left",
|
|
21
|
-
"tooltip-right": local.position === "right"
|
|
22
|
-
}));
|
|
23
|
-
return (() => {
|
|
24
|
-
var _el$ = _tmpl$();
|
|
25
|
-
spread(_el$, mergeProps(others, {
|
|
26
|
-
"role": "tooltip",
|
|
27
|
-
get ["data-theme"]() {
|
|
28
|
-
return local.dataTheme;
|
|
29
|
-
},
|
|
30
|
-
get ["data-tip"]() {
|
|
31
|
-
return local.message;
|
|
32
|
-
},
|
|
33
|
-
get ["class"]() {
|
|
34
|
-
return classes();
|
|
35
|
-
},
|
|
36
|
-
get style() {
|
|
37
|
-
return local.style;
|
|
38
|
-
}
|
|
39
|
-
}), false, true);
|
|
40
|
-
insert(_el$, () => props.children);
|
|
41
|
-
return _el$;
|
|
42
|
-
})();
|
|
43
|
-
};
|
|
44
|
-
var Tooltip_default = Tooltip;
|
|
45
|
-
|
|
46
|
-
export { Tooltip_default };
|
package/dist/chunk/MYERRMTM.js
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { cva } from './HKS7ET6T.js';
|
|
2
|
-
import { delegateEvents, template, className, insert, createComponent, effect, use } from 'solid-js/web';
|
|
3
|
-
import { createSignal, createEffect, onCleanup, Show, For } from 'solid-js';
|
|
4
|
-
|
|
5
|
-
// src/components/autocomplete/Autocomplete.styles.ts
|
|
6
|
-
var autocompleteWrapperClass = "relative w-full";
|
|
7
|
-
var inputBoxClass = cva(
|
|
8
|
-
"w-full rounded-md border border-gray-300 px-4 py-2 text-sm outline-none transition-colors",
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
state: {
|
|
12
|
-
default: "bg-white text-gray-800 hover:border-gray-400 focus:border-blue-500 focus:ring-1 focus:ring-blue-500",
|
|
13
|
-
disabled: "bg-gray-100 text-gray-400 cursor-not-allowed"
|
|
14
|
-
},
|
|
15
|
-
size: {
|
|
16
|
-
sm: "text-sm py-1 px-2",
|
|
17
|
-
md: "text-sm py-2 px-4",
|
|
18
|
-
lg: "text-base py-3 px-4"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
state: "default",
|
|
23
|
-
size: "md"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
var dropdownMenuClass = cva(
|
|
28
|
-
"absolute left-0 right-0 z-10 mt-1 rounded-md border border-gray-200 bg-white shadow-md max-h-60 overflow-auto text-sm",
|
|
29
|
-
{
|
|
30
|
-
variants: {
|
|
31
|
-
isOpen: {
|
|
32
|
-
true: "block",
|
|
33
|
-
false: "hidden"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
defaultVariants: {
|
|
37
|
-
isOpen: true
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
var dropdownItemClass = cva(
|
|
42
|
-
"w-full text-left px-4 py-2 cursor-pointer transition-colors",
|
|
43
|
-
{
|
|
44
|
-
variants: {
|
|
45
|
-
active: {
|
|
46
|
-
true: "bg-blue-500 text-white",
|
|
47
|
-
false: "hover:bg-gray-100 text-gray-800"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
defaultVariants: {
|
|
51
|
-
active: false
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
var dropdownEmptyClass = "px-4 py-2 text-sm text-gray-500";
|
|
56
|
-
var labelClass = "block text-sm font-medium text-gray-700 mb-1";
|
|
57
|
-
|
|
58
|
-
// src/components/autocomplete/Autocomplete.tsx
|
|
59
|
-
var _tmpl$ = /* @__PURE__ */ template(`<label>`);
|
|
60
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
|
|
61
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<div><input type=text autocomplete=off>`);
|
|
62
|
-
var _tmpl$4 = /* @__PURE__ */ template(`<div>No data available`);
|
|
63
|
-
var Autocomplete = (props) => {
|
|
64
|
-
const [search, setSearch] = createSignal(props.value?.toString() || "");
|
|
65
|
-
const [isOpen, setIsOpen] = createSignal(false);
|
|
66
|
-
const [filtered, setFiltered] = createSignal(props.items);
|
|
67
|
-
const [highlightIndex, setHighlightIndex] = createSignal(-1);
|
|
68
|
-
let wrapperRef;
|
|
69
|
-
const filterItems = (val) => {
|
|
70
|
-
const lower = val.toLowerCase();
|
|
71
|
-
setFiltered(props.items.filter((item) => item.toString().toLowerCase().includes(lower)));
|
|
72
|
-
};
|
|
73
|
-
const handleInput = (e) => {
|
|
74
|
-
const val = e.target.value;
|
|
75
|
-
setSearch(val);
|
|
76
|
-
filterItems(val);
|
|
77
|
-
setIsOpen(true);
|
|
78
|
-
setHighlightIndex(-1);
|
|
79
|
-
};
|
|
80
|
-
const handleKeyDown = (e) => {
|
|
81
|
-
if (!isOpen()) return;
|
|
82
|
-
if (e.key === "ArrowDown") {
|
|
83
|
-
setHighlightIndex((prev) => Math.min(prev + 1, filtered().length - 1));
|
|
84
|
-
e.preventDefault();
|
|
85
|
-
}
|
|
86
|
-
if (e.key === "ArrowUp") {
|
|
87
|
-
setHighlightIndex((prev) => Math.max(prev - 1, 0));
|
|
88
|
-
e.preventDefault();
|
|
89
|
-
}
|
|
90
|
-
if (e.key === "Enter" && filtered()[highlightIndex()]) {
|
|
91
|
-
const selected = filtered()[highlightIndex()];
|
|
92
|
-
setSearch(selected?.toString() ?? "");
|
|
93
|
-
props.onChange?.(selected);
|
|
94
|
-
setIsOpen(false);
|
|
95
|
-
}
|
|
96
|
-
if (e.key === "Escape") {
|
|
97
|
-
setIsOpen(false);
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
const handleSelect = (item) => {
|
|
101
|
-
setSearch(item.toString());
|
|
102
|
-
props.onChange?.(item);
|
|
103
|
-
setIsOpen(false);
|
|
104
|
-
};
|
|
105
|
-
const handleClickOutside = (e) => {
|
|
106
|
-
if (!wrapperRef?.contains(e.target)) {
|
|
107
|
-
setIsOpen(false);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
createEffect(() => {
|
|
111
|
-
if (props.value !== void 0) {
|
|
112
|
-
setSearch(props.value.toString());
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
createEffect(() => {
|
|
116
|
-
document.addEventListener("click", handleClickOutside);
|
|
117
|
-
onCleanup(() => {
|
|
118
|
-
document.removeEventListener("click", handleClickOutside);
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
return (() => {
|
|
122
|
-
var _el$ = _tmpl$3(), _el$3 = _el$.firstChild;
|
|
123
|
-
var _ref$ = wrapperRef;
|
|
124
|
-
typeof _ref$ === "function" ? use(_ref$, _el$) : wrapperRef = _el$;
|
|
125
|
-
className(_el$, autocompleteWrapperClass);
|
|
126
|
-
insert(_el$, createComponent(Show, {
|
|
127
|
-
get when() {
|
|
128
|
-
return props.label;
|
|
129
|
-
},
|
|
130
|
-
get children() {
|
|
131
|
-
var _el$2 = _tmpl$();
|
|
132
|
-
className(_el$2, labelClass);
|
|
133
|
-
insert(_el$2, () => props.label);
|
|
134
|
-
return _el$2;
|
|
135
|
-
}
|
|
136
|
-
}), _el$3);
|
|
137
|
-
_el$3.addEventListener("focus", () => setIsOpen(true));
|
|
138
|
-
_el$3.$$keydown = handleKeyDown;
|
|
139
|
-
_el$3.$$input = handleInput;
|
|
140
|
-
insert(_el$, createComponent(Show, {
|
|
141
|
-
get when() {
|
|
142
|
-
return isOpen();
|
|
143
|
-
},
|
|
144
|
-
get children() {
|
|
145
|
-
var _el$4 = _tmpl$2();
|
|
146
|
-
insert(_el$4, createComponent(Show, {
|
|
147
|
-
get when() {
|
|
148
|
-
return filtered().length > 0;
|
|
149
|
-
},
|
|
150
|
-
get fallback() {
|
|
151
|
-
return (() => {
|
|
152
|
-
var _el$5 = _tmpl$4();
|
|
153
|
-
className(_el$5, dropdownEmptyClass);
|
|
154
|
-
return _el$5;
|
|
155
|
-
})();
|
|
156
|
-
},
|
|
157
|
-
get children() {
|
|
158
|
-
return createComponent(For, {
|
|
159
|
-
get each() {
|
|
160
|
-
return filtered();
|
|
161
|
-
},
|
|
162
|
-
children: (item, i) => (() => {
|
|
163
|
-
var _el$6 = _tmpl$2();
|
|
164
|
-
_el$6.$$mousedown = () => handleSelect(item);
|
|
165
|
-
insert(_el$6, item);
|
|
166
|
-
effect(() => className(_el$6, dropdownItemClass({
|
|
167
|
-
active: i() === highlightIndex()
|
|
168
|
-
})));
|
|
169
|
-
return _el$6;
|
|
170
|
-
})()
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
}));
|
|
174
|
-
effect(() => className(_el$4, dropdownMenuClass()));
|
|
175
|
-
return _el$4;
|
|
176
|
-
}
|
|
177
|
-
}), null);
|
|
178
|
-
effect((_p$) => {
|
|
179
|
-
var _v$ = props.disabled, _v$2 = inputBoxClass({
|
|
180
|
-
size: props.size,
|
|
181
|
-
state: props.state ?? (props.disabled ? "disabled" : "default")
|
|
182
|
-
});
|
|
183
|
-
_v$ !== _p$.e && (_el$3.disabled = _p$.e = _v$);
|
|
184
|
-
_v$2 !== _p$.t && className(_el$3, _p$.t = _v$2);
|
|
185
|
-
return _p$;
|
|
186
|
-
}, {
|
|
187
|
-
e: void 0,
|
|
188
|
-
t: void 0
|
|
189
|
-
});
|
|
190
|
-
effect(() => _el$3.value = search());
|
|
191
|
-
return _el$;
|
|
192
|
-
})();
|
|
193
|
-
};
|
|
194
|
-
var Autocomplete_default = Autocomplete;
|
|
195
|
-
delegateEvents(["input", "keydown", "mousedown"]);
|
|
196
|
-
|
|
197
|
-
// src/components/autocomplete/index.ts
|
|
198
|
-
var autocomplete_default = Autocomplete_default;
|
|
199
|
-
|
|
200
|
-
export { autocomplete_default };
|
package/dist/chunk/O7LDJCQS.jsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
2
|
-
function r(e) {
|
|
3
|
-
var t, f, n = "";
|
|
4
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
-
var o = e.length;
|
|
7
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
function clsx() {
|
|
12
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
clsx
|
|
18
|
-
};
|