@pathscale/ui 0.0.10 → 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/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-BEnRV6GG.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/{G6RG4LR7.js → SPEY5RMB.js} +2 -5
- package/dist/chunk/STFCLC5R.js +2954 -0
- package/dist/chunk/SVJIYMYJ.jsx +156 -0
- package/dist/chunk/SYWB4UN3.jsx +64 -0
- package/dist/chunk/{KACNXPUM.jsx → T2LDLYWV.jsx} +2 -4
- 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 → 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/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 -2
- package/dist/components/polymorphic/index.js +1 -1
- package/dist/components/polymorphic/index.jsx +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 +23 -18
- package/dist/index.js +23 -20
- package/dist/index.jsx +80 -65
- package/dist/types-CUG9pToa.d.ts +15 -0
- package/package.json +4 -2
- package/dist/Accordion-JZGWxBMK.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-BGHHmBBR.d.ts +0 -42
- package/dist/Pagination-CJtlFMHy.d.ts +0 -43
- package/dist/Select-CWCDBvec.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/GA2HCFRS.jsx +0 -228
- package/dist/chunk/GWFGP2JQ.jsx +0 -179
- package/dist/chunk/LAQPAV5I.jsx +0 -187
- package/dist/chunk/LI3HCFL7.jsx +0 -132
- package/dist/chunk/MI773TMC.js +0 -107
- package/dist/chunk/MMTAND25.jsx +0 -126
- package/dist/chunk/NZKPDBTE.js +0 -118
- package/dist/chunk/NZZRKP74.js +0 -214
- package/dist/chunk/O2IMHWMY.js +0 -159
- package/dist/chunk/OMRJVDZV.js +0 -173
- package/dist/chunk/OYAKKETQ.js +0 -111
- 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/components/{progress → Progress}/index.js +0 -0
- /package/dist/components/{progress → Progress}/index.jsx +0 -0
|
@@ -0,0 +1,151 @@
|
|
|
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 };
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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 };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clsx
|
|
3
|
+
} from "./O7LDJCQS.jsx";
|
|
4
|
+
import {
|
|
5
|
+
twMerge
|
|
6
|
+
} from "./5HG7XWVC.jsx";
|
|
7
|
+
|
|
8
|
+
// src/components/tooltip/Tooltip.tsx
|
|
9
|
+
import { splitProps } from "solid-js";
|
|
10
|
+
var Tooltip = (props) => {
|
|
11
|
+
const [local, others] = splitProps(props, [
|
|
12
|
+
"message",
|
|
13
|
+
"open",
|
|
14
|
+
"color",
|
|
15
|
+
"position",
|
|
16
|
+
"dataTheme",
|
|
17
|
+
"class",
|
|
18
|
+
"className",
|
|
19
|
+
"style"
|
|
20
|
+
]);
|
|
21
|
+
const classes = () => twMerge(
|
|
22
|
+
"tooltip",
|
|
23
|
+
local.class,
|
|
24
|
+
local.className,
|
|
25
|
+
clsx({
|
|
26
|
+
"tooltip-open": local.open,
|
|
27
|
+
"tooltip-primary": local.color === "primary",
|
|
28
|
+
"tooltip-secondary": local.color === "secondary",
|
|
29
|
+
"tooltip-accent": local.color === "accent",
|
|
30
|
+
"tooltip-info": local.color === "info",
|
|
31
|
+
"tooltip-success": local.color === "success",
|
|
32
|
+
"tooltip-warning": local.color === "warning",
|
|
33
|
+
"tooltip-error": local.color === "error",
|
|
34
|
+
"tooltip-top": local.position === "top",
|
|
35
|
+
"tooltip-bottom": local.position === "bottom",
|
|
36
|
+
"tooltip-left": local.position === "left",
|
|
37
|
+
"tooltip-right": local.position === "right"
|
|
38
|
+
})
|
|
39
|
+
);
|
|
40
|
+
return <div
|
|
41
|
+
{...others}
|
|
42
|
+
role="tooltip"
|
|
43
|
+
data-theme={local.dataTheme}
|
|
44
|
+
data-tip={local.message}
|
|
45
|
+
class={classes()}
|
|
46
|
+
style={local.style}
|
|
47
|
+
>
|
|
48
|
+
{props.children}
|
|
49
|
+
</div>;
|
|
50
|
+
};
|
|
51
|
+
var Tooltip_default = Tooltip;
|
|
52
|
+
|
|
53
|
+
export {
|
|
54
|
+
Tooltip_default
|
|
55
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clsx
|
|
3
|
+
} from "./O7LDJCQS.jsx";
|
|
4
|
+
import {
|
|
5
|
+
twMerge
|
|
6
|
+
} from "./5HG7XWVC.jsx";
|
|
7
|
+
|
|
8
|
+
// src/components/select/Select.tsx
|
|
9
|
+
import { splitProps } from "solid-js";
|
|
10
|
+
var Select = (props) => {
|
|
11
|
+
const [local, others] = splitProps(props, [
|
|
12
|
+
"color",
|
|
13
|
+
"size",
|
|
14
|
+
"dataTheme",
|
|
15
|
+
"class",
|
|
16
|
+
"className",
|
|
17
|
+
"style"
|
|
18
|
+
]);
|
|
19
|
+
const classes = () => twMerge(
|
|
20
|
+
"select",
|
|
21
|
+
local.class,
|
|
22
|
+
local.className,
|
|
23
|
+
clsx({
|
|
24
|
+
"select-xl": local.size === "xl",
|
|
25
|
+
"select-lg": local.size === "lg",
|
|
26
|
+
"select-md": local.size === "md",
|
|
27
|
+
"select-sm": local.size === "sm",
|
|
28
|
+
"select-xs": local.size === "xs",
|
|
29
|
+
"select-primary": local.color === "primary",
|
|
30
|
+
"select-secondary": local.color === "secondary",
|
|
31
|
+
"select-accent": local.color === "accent",
|
|
32
|
+
"select-ghost": local.color === "ghost",
|
|
33
|
+
"select-info": local.color === "info",
|
|
34
|
+
"select-success": local.color === "success",
|
|
35
|
+
"select-warning": local.color === "warning",
|
|
36
|
+
"select-error": local.color === "error"
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
return <select
|
|
40
|
+
{...others}
|
|
41
|
+
data-theme={local.dataTheme}
|
|
42
|
+
class={classes()}
|
|
43
|
+
style={local.style}
|
|
44
|
+
>
|
|
45
|
+
{props.children}
|
|
46
|
+
</select>;
|
|
47
|
+
};
|
|
48
|
+
var Select_default = Select;
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
Select_default
|
|
52
|
+
};
|
|
@@ -63,10 +63,10 @@ function createIsButton(props) {
|
|
|
63
63
|
}
|
|
64
64
|
var PolymorphicButton = (props) => {
|
|
65
65
|
const [ref, setRef] = createSignal(null);
|
|
66
|
-
const [localProps, otherProps] = splitProps(props, ["ref"
|
|
66
|
+
const [localProps, otherProps] = splitProps(props, ["ref"]);
|
|
67
67
|
const isButton2 = createIsButton({
|
|
68
68
|
element: ref,
|
|
69
|
-
type:
|
|
69
|
+
type: props.type
|
|
70
70
|
});
|
|
71
71
|
return createComponent(Polymorphic_default, mergeProps({
|
|
72
72
|
as: "button",
|
|
@@ -74,9 +74,6 @@ var PolymorphicButton = (props) => {
|
|
|
74
74
|
var _ref$ = mergeRefs(setRef, localProps.ref);
|
|
75
75
|
typeof _ref$ === "function" && _ref$(r$);
|
|
76
76
|
},
|
|
77
|
-
get type() {
|
|
78
|
-
return isButton2() ? "button" : void 0;
|
|
79
|
-
},
|
|
80
77
|
get role() {
|
|
81
78
|
return !isButton2() ? "button" : void 0;
|
|
82
79
|
}
|