@pathscale/ui 0.0.12 → 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 -0
- 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 -28
- 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/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/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/MZWBWFDD.js +0 -151
- 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/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/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/XQCSYRVP.jsx +0 -168
- package/dist/chunk/YWIT2MRI.jsx +0 -43
- 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 -8
- 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/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 -32
- package/dist/index.jsx +0 -138
- package/dist/types-CUG9pToa.d.ts +0 -15
package/dist/chunk/MZWBWFDD.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { clsx } from './HUHXQCKK.js';
|
|
2
|
-
import { twMerge } from './STFCLC5R.js';
|
|
3
|
-
import { createComponent, Dynamic, mergeProps, memo, template, spread } from 'solid-js/web';
|
|
4
|
-
import { splitProps, Show } from 'solid-js';
|
|
5
|
-
|
|
6
|
-
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
7
|
-
var Loading = (props) => {
|
|
8
|
-
const [local, others] = splitProps(props, ["size", "variant", "color", "dataTheme", "class", "className", "style"]);
|
|
9
|
-
const classes = () => twMerge("loading", local.class, local.className, clsx({
|
|
10
|
-
"loading-xl": local.size === "xl",
|
|
11
|
-
"loading-lg": local.size === "lg",
|
|
12
|
-
"loading-md": local.size === "md",
|
|
13
|
-
"loading-sm": local.size === "sm",
|
|
14
|
-
"loading-xs": local.size === "xs",
|
|
15
|
-
"loading-spinner": local.variant === "spinner",
|
|
16
|
-
"loading-dots": local.variant === "dots",
|
|
17
|
-
"loading-ring": local.variant === "ring",
|
|
18
|
-
"loading-ball": local.variant === "ball",
|
|
19
|
-
"loading-bars": local.variant === "bars",
|
|
20
|
-
"loading-infinity": local.variant === "infinity",
|
|
21
|
-
"text-primary": local.color === "primary",
|
|
22
|
-
"text-secondary": local.color === "secondary",
|
|
23
|
-
"text-accent": local.color === "accent",
|
|
24
|
-
"text-info": local.color === "info",
|
|
25
|
-
"text-success": local.color === "success",
|
|
26
|
-
"text-warning": local.color === "warning",
|
|
27
|
-
"text-error": local.color === "error",
|
|
28
|
-
"text-ghost": local.color === "ghost"
|
|
29
|
-
}));
|
|
30
|
-
return (() => {
|
|
31
|
-
var _el$ = _tmpl$();
|
|
32
|
-
spread(_el$, mergeProps(others, {
|
|
33
|
-
get ["data-theme"]() {
|
|
34
|
-
return local.dataTheme;
|
|
35
|
-
},
|
|
36
|
-
get ["class"]() {
|
|
37
|
-
return classes();
|
|
38
|
-
},
|
|
39
|
-
get style() {
|
|
40
|
-
return local.style;
|
|
41
|
-
}
|
|
42
|
-
}), false, false);
|
|
43
|
-
return _el$;
|
|
44
|
-
})();
|
|
45
|
-
};
|
|
46
|
-
var Loading_default = Loading;
|
|
47
|
-
|
|
48
|
-
// src/components/button/Button.tsx
|
|
49
|
-
var VoidElementList = ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "keygen", "meta", "param", "source", "track", "wbr"];
|
|
50
|
-
var Button = (props) => {
|
|
51
|
-
const [local, others] = splitProps(props, ["children", "shape", "size", "variant", "color", "glass", "startIcon", "endIcon", "wide", "fullWidth", "responsive", "animation", "loading", "active", "disabled", "dataTheme", "class", "className", "style", "as"]);
|
|
52
|
-
const classes = () => twMerge("btn", local.class, local.className, clsx((local.startIcon && !local.loading || local.endIcon) && "gap-2", {
|
|
53
|
-
"btn-xl": local.size === "xl",
|
|
54
|
-
"btn-lg": local.size === "lg",
|
|
55
|
-
"btn-md": local.size === "md",
|
|
56
|
-
"btn-sm": local.size === "sm",
|
|
57
|
-
"btn-xs": local.size === "xs",
|
|
58
|
-
"btn-circle": local.shape === "circle",
|
|
59
|
-
"btn-square": local.shape === "square",
|
|
60
|
-
"btn-soft": local.variant === "soft",
|
|
61
|
-
"btn-dash": local.variant === "dash",
|
|
62
|
-
"btn-outline": local.variant === "outline",
|
|
63
|
-
"btn-link": local.variant === "link",
|
|
64
|
-
"btn-neutral": local.color === "neutral",
|
|
65
|
-
"btn-primary": local.color === "primary",
|
|
66
|
-
"btn-secondary": local.color === "secondary",
|
|
67
|
-
"btn-accent": local.color === "accent",
|
|
68
|
-
"btn-info": local.color === "info",
|
|
69
|
-
"btn-success": local.color === "success",
|
|
70
|
-
"btn-warning": local.color === "warning",
|
|
71
|
-
"btn-error": local.color === "error",
|
|
72
|
-
"btn-ghost": local.color === "ghost",
|
|
73
|
-
glass: local.glass,
|
|
74
|
-
"btn-wide": local.wide,
|
|
75
|
-
"btn-block": local.fullWidth,
|
|
76
|
-
"btn-xs sm:btn-sm md:btn-md lg:btn-lg": local.responsive,
|
|
77
|
-
"no-animation": !local.animation,
|
|
78
|
-
"btn-active": local.active,
|
|
79
|
-
"btn-disabled": local.disabled
|
|
80
|
-
}));
|
|
81
|
-
const Tag = local.as || "button";
|
|
82
|
-
if (VoidElementList.includes(Tag)) {
|
|
83
|
-
return createComponent(Dynamic, mergeProps({
|
|
84
|
-
component: Tag
|
|
85
|
-
}, others, {
|
|
86
|
-
get ["data-theme"]() {
|
|
87
|
-
return local.dataTheme;
|
|
88
|
-
},
|
|
89
|
-
get ["class"]() {
|
|
90
|
-
return classes();
|
|
91
|
-
},
|
|
92
|
-
get style() {
|
|
93
|
-
return local.style;
|
|
94
|
-
},
|
|
95
|
-
get disabled() {
|
|
96
|
-
return local.disabled;
|
|
97
|
-
}
|
|
98
|
-
}));
|
|
99
|
-
}
|
|
100
|
-
return createComponent(Dynamic, mergeProps({
|
|
101
|
-
component: Tag
|
|
102
|
-
}, others, {
|
|
103
|
-
get ["data-theme"]() {
|
|
104
|
-
return local.dataTheme;
|
|
105
|
-
},
|
|
106
|
-
get ["class"]() {
|
|
107
|
-
return classes();
|
|
108
|
-
},
|
|
109
|
-
get style() {
|
|
110
|
-
return local.style;
|
|
111
|
-
},
|
|
112
|
-
get disabled() {
|
|
113
|
-
return local.disabled;
|
|
114
|
-
},
|
|
115
|
-
get children() {
|
|
116
|
-
return [createComponent(Show, {
|
|
117
|
-
get when() {
|
|
118
|
-
return local.loading;
|
|
119
|
-
},
|
|
120
|
-
get children() {
|
|
121
|
-
return createComponent(Loading_default, {
|
|
122
|
-
get size() {
|
|
123
|
-
return local.size;
|
|
124
|
-
},
|
|
125
|
-
get color() {
|
|
126
|
-
return local.color;
|
|
127
|
-
},
|
|
128
|
-
variant: "spinner"
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}), createComponent(Show, {
|
|
132
|
-
get when() {
|
|
133
|
-
return local.startIcon && !local.loading;
|
|
134
|
-
},
|
|
135
|
-
get children() {
|
|
136
|
-
return local.startIcon;
|
|
137
|
-
}
|
|
138
|
-
}), memo(() => local.children), createComponent(Show, {
|
|
139
|
-
get when() {
|
|
140
|
-
return local.endIcon;
|
|
141
|
-
},
|
|
142
|
-
get children() {
|
|
143
|
-
return local.endIcon;
|
|
144
|
-
}
|
|
145
|
-
})];
|
|
146
|
-
}
|
|
147
|
-
}));
|
|
148
|
-
};
|
|
149
|
-
var Button_default = Button;
|
|
150
|
-
|
|
151
|
-
export { Button_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
|
-
};
|
package/dist/chunk/OJRG4ZAB.jsx
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cva
|
|
3
|
-
} from "./P7WPLZNA.jsx";
|
|
4
|
-
|
|
5
|
-
// src/components/dropdown/Dropdown.tsx
|
|
6
|
-
import { createSignal } from "solid-js";
|
|
7
|
-
|
|
8
|
-
// src/components/dropdown/DropdownContext.ts
|
|
9
|
-
import { createContext } from "solid-js";
|
|
10
|
-
var DropdownContext = createContext();
|
|
11
|
-
|
|
12
|
-
// src/components/dropdown/Dropdown.styles.ts
|
|
13
|
-
var dropdownMenuClass = cva(
|
|
14
|
-
"absolute z-10 w-max bg-white rounded shadow border border-gray-200 flex flex-col",
|
|
15
|
-
{
|
|
16
|
-
variants: {
|
|
17
|
-
position: {
|
|
18
|
-
"top-left": "bottom-full left-0 mb-2",
|
|
19
|
-
"top-right": "bottom-full right-0 mb-2",
|
|
20
|
-
left: "right-full top-0 mr-2",
|
|
21
|
-
right: "left-full top-0 ml-2",
|
|
22
|
-
"bottom-left": "top-full left-0 mt-2",
|
|
23
|
-
"bottom-right": "top-full right-0 mt-2"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
position: "bottom-left"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
var dropdownItemClass = cva(
|
|
32
|
-
"px-4 py-2 text-sm cursor-pointer transition-colors",
|
|
33
|
-
{
|
|
34
|
-
variants: {
|
|
35
|
-
disabled: {
|
|
36
|
-
true: "text-gray-400 cursor-not-allowed",
|
|
37
|
-
false: "hover:bg-gray-100 text-gray-800"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
defaultVariants: {
|
|
41
|
-
disabled: false
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
var dropdownRootClass = cva("relative inline-block");
|
|
46
|
-
var dropdownTriggerClass = cva("cursor-pointer w-fit", {
|
|
47
|
-
variants: {
|
|
48
|
-
disabled: {
|
|
49
|
-
true: "pointer-events-none opacity-50",
|
|
50
|
-
false: ""
|
|
51
|
-
},
|
|
52
|
-
hoverable: {
|
|
53
|
-
true: "",
|
|
54
|
-
false: ""
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
defaultVariants: {
|
|
58
|
-
disabled: false,
|
|
59
|
-
hoverable: false
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
// src/components/dropdown/Dropdown.tsx
|
|
64
|
-
var Dropdown = (props) => {
|
|
65
|
-
const [open, setOpen] = createSignal(false);
|
|
66
|
-
const context = {
|
|
67
|
-
open,
|
|
68
|
-
setOpen,
|
|
69
|
-
disabled: props.disabled,
|
|
70
|
-
hoverable: props.hoverable,
|
|
71
|
-
position: props.position ?? "left"
|
|
72
|
-
};
|
|
73
|
-
return <DropdownContext.Provider value={context}>
|
|
74
|
-
<div
|
|
75
|
-
class={dropdownRootClass()}
|
|
76
|
-
onMouseEnter={props.hoverable ? () => setOpen(true) : void 0}
|
|
77
|
-
onMouseLeave={props.hoverable ? () => setOpen(false) : void 0}
|
|
78
|
-
>
|
|
79
|
-
{props.children}
|
|
80
|
-
</div>
|
|
81
|
-
</DropdownContext.Provider>;
|
|
82
|
-
};
|
|
83
|
-
var Dropdown_default = Dropdown;
|
|
84
|
-
|
|
85
|
-
// src/components/dropdown/DropdownTrigger.tsx
|
|
86
|
-
import { useContext } from "solid-js";
|
|
87
|
-
var DropdownTrigger = (props) => {
|
|
88
|
-
const context = useContext(DropdownContext);
|
|
89
|
-
const handleClick = () => {
|
|
90
|
-
if (!context?.hoverable && !context?.disabled) {
|
|
91
|
-
context?.setOpen(!context.open());
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
return <div
|
|
95
|
-
onClick={handleClick}
|
|
96
|
-
class={dropdownTriggerClass({
|
|
97
|
-
disabled: context?.disabled,
|
|
98
|
-
hoverable: context?.hoverable
|
|
99
|
-
})}
|
|
100
|
-
>
|
|
101
|
-
{props.children}
|
|
102
|
-
</div>;
|
|
103
|
-
};
|
|
104
|
-
var DropdownTrigger_default = DropdownTrigger;
|
|
105
|
-
|
|
106
|
-
// src/components/dropdown/DropdownMenu.tsx
|
|
107
|
-
import { Show, useContext as useContext2 } from "solid-js";
|
|
108
|
-
var DropdownMenu = (props) => {
|
|
109
|
-
const context = useContext2(DropdownContext);
|
|
110
|
-
return <Show when={context?.open?.()}>
|
|
111
|
-
<div class={dropdownMenuClass({ position: context?.position })}>
|
|
112
|
-
{props.children}
|
|
113
|
-
</div>
|
|
114
|
-
</Show>;
|
|
115
|
-
};
|
|
116
|
-
var DropdownMenu_default = DropdownMenu;
|
|
117
|
-
|
|
118
|
-
// src/components/dropdown/DropdownItem.tsx
|
|
119
|
-
import { useContext as useContext3 } from "solid-js";
|
|
120
|
-
var DropdownItem = (props) => {
|
|
121
|
-
const context = useContext3(DropdownContext);
|
|
122
|
-
const handleClick = () => {
|
|
123
|
-
if (!props.disabled) {
|
|
124
|
-
props.onClick?.();
|
|
125
|
-
context?.setOpen(false);
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
return <div
|
|
129
|
-
role="menuitem"
|
|
130
|
-
onClick={handleClick}
|
|
131
|
-
class={dropdownItemClass({ disabled: props.disabled })}
|
|
132
|
-
>
|
|
133
|
-
{props.children}
|
|
134
|
-
</div>;
|
|
135
|
-
};
|
|
136
|
-
var DropdownItem_default = DropdownItem;
|
|
137
|
-
|
|
138
|
-
export {
|
|
139
|
-
Dropdown_default,
|
|
140
|
-
DropdownTrigger_default,
|
|
141
|
-
DropdownMenu_default,
|
|
142
|
-
DropdownItem_default
|
|
143
|
-
};
|
package/dist/chunk/P653OZ5D.js
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { cva, classes } from './HKS7ET6T.js';
|
|
2
|
-
import { createComponent, template, insert, effect, className, Dynamic, mergeProps, spread } from 'solid-js/web';
|
|
3
|
-
import { createContext, splitProps, createSignal, createEffect, useContext, Show } from 'solid-js';
|
|
4
|
-
|
|
5
|
-
var NavbarContext = createContext();
|
|
6
|
-
|
|
7
|
-
// src/components/navbar/Navbar.styles.ts
|
|
8
|
-
var navbarClass = cva("flex items-center px-4", {
|
|
9
|
-
variants: {
|
|
10
|
-
color: {
|
|
11
|
-
primary: "bg-indigo-600 text-white",
|
|
12
|
-
info: "bg-blue-500 text-white",
|
|
13
|
-
success: "bg-green-500 text-white",
|
|
14
|
-
danger: "bg-red-600 text-white",
|
|
15
|
-
warning: "bg-yellow-500 text-white",
|
|
16
|
-
light: "bg-white text-gray-800"
|
|
17
|
-
},
|
|
18
|
-
spaced: {
|
|
19
|
-
true: "py-4",
|
|
20
|
-
false: ""
|
|
21
|
-
},
|
|
22
|
-
shadow: {
|
|
23
|
-
true: "shadow-md",
|
|
24
|
-
false: ""
|
|
25
|
-
},
|
|
26
|
-
transparent: {
|
|
27
|
-
true: "bg-transparent",
|
|
28
|
-
false: ""
|
|
29
|
-
},
|
|
30
|
-
fixedTop: {
|
|
31
|
-
true: "fixed top-0 left-0 right-0 z-50",
|
|
32
|
-
false: ""
|
|
33
|
-
},
|
|
34
|
-
fixedBottom: {
|
|
35
|
-
true: "fixed bottom-0 left-0 right-0 z-50",
|
|
36
|
-
false: ""
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
defaultVariants: {
|
|
40
|
-
color: "primary",
|
|
41
|
-
spaced: false,
|
|
42
|
-
shadow: false,
|
|
43
|
-
transparent: false,
|
|
44
|
-
fixedTop: false,
|
|
45
|
-
fixedBottom: false
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
var navbarItemClass = cva(
|
|
49
|
-
"px-4 py-2 rounded transition-colors cursor-pointer",
|
|
50
|
-
{
|
|
51
|
-
variants: {
|
|
52
|
-
active: {
|
|
53
|
-
true: "",
|
|
54
|
-
false: ""
|
|
55
|
-
},
|
|
56
|
-
color: {
|
|
57
|
-
primary: "",
|
|
58
|
-
success: "",
|
|
59
|
-
info: "",
|
|
60
|
-
danger: "",
|
|
61
|
-
warning: "",
|
|
62
|
-
light: ""
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
defaultVariants: {
|
|
66
|
-
active: false,
|
|
67
|
-
color: "primary"
|
|
68
|
-
},
|
|
69
|
-
compoundVariants: [
|
|
70
|
-
{ color: "primary", active: true, class: "bg-white/20 text-white" },
|
|
71
|
-
{
|
|
72
|
-
color: "primary",
|
|
73
|
-
active: false,
|
|
74
|
-
class: "hover:bg-white/10 text-white"
|
|
75
|
-
},
|
|
76
|
-
{ color: "success", active: true, class: "bg-white/20 text-white" },
|
|
77
|
-
{
|
|
78
|
-
color: "success",
|
|
79
|
-
active: false,
|
|
80
|
-
class: "hover:bg-white/10 text-white"
|
|
81
|
-
},
|
|
82
|
-
{ color: "info", active: true, class: "bg-white/20 text-white" },
|
|
83
|
-
{ color: "info", active: false, class: "hover:bg-white/10 text-white" },
|
|
84
|
-
{ color: "danger", active: true, class: "bg-white/20 text-white" },
|
|
85
|
-
{ color: "danger", active: false, class: "hover:bg-white/10 text-white" },
|
|
86
|
-
{ color: "warning", active: true, class: "bg-white/20 text-white" },
|
|
87
|
-
{
|
|
88
|
-
color: "warning",
|
|
89
|
-
active: false,
|
|
90
|
-
class: "hover:bg-white/10 text-white"
|
|
91
|
-
},
|
|
92
|
-
{ color: "light", active: true, class: "bg-gray-300 text-gray-900" },
|
|
93
|
-
{
|
|
94
|
-
color: "light",
|
|
95
|
-
active: false,
|
|
96
|
-
class: "hover:bg-gray-100 text-gray-800"
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
var navbarDropdownClass = cva("relative", {
|
|
102
|
-
variants: {
|
|
103
|
-
hoverable: {
|
|
104
|
-
true: "group",
|
|
105
|
-
false: ""
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
defaultVariants: {
|
|
109
|
-
hoverable: true
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
var dropdownMenuClass = cva(
|
|
113
|
-
"absolute mt-2 bg-white text-gray-800 rounded shadow-lg hidden group-hover:block",
|
|
114
|
-
{
|
|
115
|
-
variants: {
|
|
116
|
-
align: {
|
|
117
|
-
left: "left-0",
|
|
118
|
-
right: "right-0"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
defaultVariants: {
|
|
122
|
-
align: "left"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
// src/components/navbar/Navbar.tsx
|
|
128
|
-
var _tmpl$ = /* @__PURE__ */ template(`<nav>`);
|
|
129
|
-
var Navbar = (props) => {
|
|
130
|
-
const [local] = splitProps(props, ["color", "modelValue", "children", "spaced", "shadow", "transparent", "fixedTop", "fixedBottom"]);
|
|
131
|
-
const [selected, setSelected] = createSignal(props.modelValue);
|
|
132
|
-
createEffect(() => {
|
|
133
|
-
if (props.modelValue !== void 0) {
|
|
134
|
-
setSelected(props.modelValue);
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
return createComponent(NavbarContext.Provider, {
|
|
138
|
-
get value() {
|
|
139
|
-
return {
|
|
140
|
-
color: local.color ?? "primary",
|
|
141
|
-
selected,
|
|
142
|
-
setSelected: (val) => {
|
|
143
|
-
props.onChange?.(val);
|
|
144
|
-
setSelected(val);
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
},
|
|
148
|
-
get children() {
|
|
149
|
-
var _el$ = _tmpl$();
|
|
150
|
-
insert(_el$, () => local.children);
|
|
151
|
-
effect(() => className(_el$, navbarClass({
|
|
152
|
-
color: local.color,
|
|
153
|
-
spaced: local.spaced,
|
|
154
|
-
shadow: local.shadow,
|
|
155
|
-
transparent: local.transparent,
|
|
156
|
-
fixedTop: local.fixedTop,
|
|
157
|
-
fixedBottom: local.fixedBottom
|
|
158
|
-
})));
|
|
159
|
-
return _el$;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
var Navbar_default = Navbar;
|
|
164
|
-
var allowedColors = ["primary", "info", "success", "danger", "warning", "light"];
|
|
165
|
-
var NavbarItem = (props) => {
|
|
166
|
-
const context = useContext(NavbarContext);
|
|
167
|
-
const [local, rest] = splitProps(props, ["tag", "href", "label", "children", "class", "color"]);
|
|
168
|
-
const Tag = local.tag || (local.href ? "a" : "div");
|
|
169
|
-
const isActive = () => context?.selected?.() === local.label;
|
|
170
|
-
const resolveColor = (input) => {
|
|
171
|
-
return allowedColors.includes(input) ? input : void 0;
|
|
172
|
-
};
|
|
173
|
-
return createComponent(Dynamic, mergeProps({
|
|
174
|
-
component: Tag,
|
|
175
|
-
get href() {
|
|
176
|
-
return local.href;
|
|
177
|
-
},
|
|
178
|
-
onClick: () => context?.setSelected?.(local.label),
|
|
179
|
-
get ["class"]() {
|
|
180
|
-
return classes(navbarItemClass({
|
|
181
|
-
active: isActive(),
|
|
182
|
-
color: resolveColor(local.color ?? context?.color)
|
|
183
|
-
}), local.class);
|
|
184
|
-
}
|
|
185
|
-
}, rest, {
|
|
186
|
-
get children() {
|
|
187
|
-
return local.children;
|
|
188
|
-
}
|
|
189
|
-
}));
|
|
190
|
-
};
|
|
191
|
-
var NavbarItem_default = NavbarItem;
|
|
192
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
|
|
193
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<div><div class="cursor-pointer px-4 py-2 rounded hover:bg-white/10">`);
|
|
194
|
-
var NavbarDropdown = (props) => {
|
|
195
|
-
const [local, rest] = splitProps(props, ["label", "hoverable", "align", "class", "children"]);
|
|
196
|
-
return (() => {
|
|
197
|
-
var _el$ = _tmpl$22(), _el$2 = _el$.firstChild;
|
|
198
|
-
spread(_el$, mergeProps({
|
|
199
|
-
get ["class"]() {
|
|
200
|
-
return classes(navbarDropdownClass({
|
|
201
|
-
hoverable: local.hoverable
|
|
202
|
-
}), local.class);
|
|
203
|
-
}
|
|
204
|
-
}, rest), false, true);
|
|
205
|
-
insert(_el$2, () => local.label);
|
|
206
|
-
insert(_el$, createComponent(Show, {
|
|
207
|
-
get when() {
|
|
208
|
-
return local.hoverable;
|
|
209
|
-
},
|
|
210
|
-
get children() {
|
|
211
|
-
var _el$3 = _tmpl$2();
|
|
212
|
-
insert(_el$3, () => local.children);
|
|
213
|
-
effect(() => className(_el$3, dropdownMenuClass({
|
|
214
|
-
align: local.align
|
|
215
|
-
})));
|
|
216
|
-
return _el$3;
|
|
217
|
-
}
|
|
218
|
-
}), null);
|
|
219
|
-
return _el$;
|
|
220
|
-
})();
|
|
221
|
-
};
|
|
222
|
-
var NavbarDropdown_default = NavbarDropdown;
|
|
223
|
-
|
|
224
|
-
export { NavbarDropdown_default, NavbarItem_default, Navbar_default };
|
package/dist/chunk/P7WPLZNA.jsx
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// src/lib/style/classes.ts
|
|
2
|
-
function classes(...args) {
|
|
3
|
-
return args.flat().filter(Boolean).join(" ");
|
|
4
|
-
}
|
|
5
|
-
function falsyToString(value) {
|
|
6
|
-
return typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
7
|
-
}
|
|
8
|
-
function cva(base, config) {
|
|
9
|
-
const fn = (props) => {
|
|
10
|
-
if (config?.variants == null) return classes(base, props?.class);
|
|
11
|
-
const { variants, defaultVariants } = config;
|
|
12
|
-
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
13
|
-
const variantProp = props?.[variant];
|
|
14
|
-
const defaultVariantProp = defaultVariants?.[variant];
|
|
15
|
-
if (variantProp === null) return null;
|
|
16
|
-
const variantKey = falsyToString(variantProp) || falsyToString(
|
|
17
|
-
defaultVariantProp
|
|
18
|
-
);
|
|
19
|
-
return variants[variant]?.[variantKey];
|
|
20
|
-
});
|
|
21
|
-
const propsWithoutUndefined = Object.entries(props || {}).reduce(
|
|
22
|
-
(acc, [key, value]) => {
|
|
23
|
-
if (value !== void 0) {
|
|
24
|
-
acc[key] = value;
|
|
25
|
-
}
|
|
26
|
-
return acc;
|
|
27
|
-
},
|
|
28
|
-
{}
|
|
29
|
-
);
|
|
30
|
-
const getCompoundVariantClassNames = config?.compoundVariants?.reduce(
|
|
31
|
-
(acc, { class: cvClass, ...compoundVariantOptions }) => {
|
|
32
|
-
const isMatch = Object.entries(compoundVariantOptions).every(
|
|
33
|
-
([key, value]) => {
|
|
34
|
-
const currentValue = {
|
|
35
|
-
...defaultVariants,
|
|
36
|
-
...propsWithoutUndefined
|
|
37
|
-
}[key];
|
|
38
|
-
return Array.isArray(value) ? value.includes(currentValue) : currentValue === value;
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
return isMatch ? [...acc, cvClass] : acc;
|
|
42
|
-
},
|
|
43
|
-
[]
|
|
44
|
-
);
|
|
45
|
-
return classes(
|
|
46
|
-
base,
|
|
47
|
-
getVariantClassNames,
|
|
48
|
-
getCompoundVariantClassNames,
|
|
49
|
-
props?.class
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
fn.variantKeys = config?.variants ? Object.keys(config.variants) : [];
|
|
53
|
-
return fn;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
classes,
|
|
58
|
-
cva
|
|
59
|
-
};
|
package/dist/chunk/Q4442PU4.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { clsx } from './HUHXQCKK.js';
|
|
2
|
-
import { twMerge } from './STFCLC5R.js';
|
|
3
|
-
import { template, spread, mergeProps } from 'solid-js/web';
|
|
4
|
-
import { splitProps } from 'solid-js';
|
|
5
|
-
|
|
6
|
-
var _tmpl$ = /* @__PURE__ */ template(`<textarea>`);
|
|
7
|
-
var Textarea = (props) => {
|
|
8
|
-
const [local, others] = splitProps(props, ["color", "size", "dataTheme", "class", "className", "style"]);
|
|
9
|
-
const classes = () => twMerge("textarea", local.class, local.className, clsx({
|
|
10
|
-
"textarea-xl": local.size === "xl",
|
|
11
|
-
"textarea-lg": local.size === "lg",
|
|
12
|
-
"textarea-md": local.size === "md",
|
|
13
|
-
"textarea-sm": local.size === "sm",
|
|
14
|
-
"textarea-xs": local.size === "xs",
|
|
15
|
-
"textarea-primary": local.color === "primary",
|
|
16
|
-
"textarea-secondary": local.color === "secondary",
|
|
17
|
-
"textarea-accent": local.color === "accent",
|
|
18
|
-
"textarea-ghost": local.color === "ghost",
|
|
19
|
-
"textarea-info": local.color === "info",
|
|
20
|
-
"textarea-success": local.color === "success",
|
|
21
|
-
"textarea-warning": local.color === "warning",
|
|
22
|
-
"textarea-error": local.color === "error"
|
|
23
|
-
}));
|
|
24
|
-
return (() => {
|
|
25
|
-
var _el$ = _tmpl$();
|
|
26
|
-
spread(_el$, mergeProps(others, {
|
|
27
|
-
get ["data-theme"]() {
|
|
28
|
-
return local.dataTheme;
|
|
29
|
-
},
|
|
30
|
-
get ["class"]() {
|
|
31
|
-
return classes();
|
|
32
|
-
},
|
|
33
|
-
get style() {
|
|
34
|
-
return local.style;
|
|
35
|
-
}
|
|
36
|
-
}), false, false);
|
|
37
|
-
return _el$;
|
|
38
|
-
})();
|
|
39
|
-
};
|
|
40
|
-
var Textarea_default = Textarea;
|
|
41
|
-
|
|
42
|
-
export { Textarea_default };
|