@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/QYEMOKUG.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { cva, classes } from './HKS7ET6T.js';
|
|
2
|
-
import { delegateEvents, template, className, spread, mergeProps, insert, memo, effect, style, setAttribute, createComponent } from 'solid-js/web';
|
|
3
|
-
import { splitProps, createSignal, createMemo, For } from 'solid-js';
|
|
4
|
-
|
|
5
|
-
// src/components/table/Table.styles.ts
|
|
6
|
-
var tableWrapper = cva(
|
|
7
|
-
"overflow-x-auto rounded-lg border border-gray-200 shadow"
|
|
8
|
-
);
|
|
9
|
-
var tableVariants = cva(
|
|
10
|
-
[
|
|
11
|
-
"min-w-full",
|
|
12
|
-
"text-sm text-left",
|
|
13
|
-
"divide-y divide-gray-100"
|
|
14
|
-
],
|
|
15
|
-
{
|
|
16
|
-
variants: {
|
|
17
|
-
header: {
|
|
18
|
-
default: "bg-gray-50 font-semibold text-gray-700"
|
|
19
|
-
},
|
|
20
|
-
row: {
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
cell: {
|
|
24
|
-
default: "px-4 py-2"
|
|
25
|
-
},
|
|
26
|
-
divider: {
|
|
27
|
-
on: "border-r border-gray-200 last:border-r-0",
|
|
28
|
-
off: ""
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
defaultVariants: {
|
|
32
|
-
header: "default",
|
|
33
|
-
row: "default",
|
|
34
|
-
cell: "default",
|
|
35
|
-
divider: "on"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
// src/components/table/Table.tsx
|
|
41
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div><table><thead><tr></tr></thead><tbody>`);
|
|
42
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<th role=columnheader>`);
|
|
43
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<tr>`);
|
|
44
|
-
var _tmpl$4 = /* @__PURE__ */ template(`<td>`);
|
|
45
|
-
var Table = (props) => {
|
|
46
|
-
const [localProps, variantProps, otherProps] = splitProps(props, ["columns", "rows", "onSort", "className", "rowKey"], Object.keys(tableVariants.variantKeys ?? {}));
|
|
47
|
-
const [sortKey, setSortKey] = createSignal(null);
|
|
48
|
-
const [sortDir, setSortDir] = createSignal("asc");
|
|
49
|
-
const data = createMemo(() => localProps.rows);
|
|
50
|
-
const baseVars = () => variantProps;
|
|
51
|
-
const wrapperClass = classes(tableWrapper(), localProps.className);
|
|
52
|
-
const tableClass = classes(tableVariants(baseVars()), localProps.className);
|
|
53
|
-
const handleHeaderClick = (colKey, isSortable) => {
|
|
54
|
-
if (!isSortable) return;
|
|
55
|
-
const newDir = sortKey() === colKey && sortDir() === "asc" ? "desc" : "asc";
|
|
56
|
-
setSortKey(() => colKey);
|
|
57
|
-
setSortDir(newDir);
|
|
58
|
-
props.onSort?.(colKey, newDir);
|
|
59
|
-
};
|
|
60
|
-
return (() => {
|
|
61
|
-
var _el$ = _tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$3.nextSibling;
|
|
62
|
-
className(_el$, wrapperClass);
|
|
63
|
-
spread(_el$2, mergeProps(otherProps, {
|
|
64
|
-
"class": tableClass
|
|
65
|
-
}), false, true);
|
|
66
|
-
insert(_el$4, () => localProps.columns.map((col) => (() => {
|
|
67
|
-
var _el$6 = _tmpl$2();
|
|
68
|
-
_el$6.$$click = () => handleHeaderClick(col.key, col.sortable);
|
|
69
|
-
insert(_el$6, () => col.header, null);
|
|
70
|
-
insert(_el$6, (() => {
|
|
71
|
-
var _c$ = memo(() => sortKey() === col.key);
|
|
72
|
-
return () => _c$() && (sortDir() === "asc" ? " \u2191" : " \u2193");
|
|
73
|
-
})(), null);
|
|
74
|
-
effect((_p$) => {
|
|
75
|
-
var _v$ = tableVariants({
|
|
76
|
-
...baseVars(),
|
|
77
|
-
cell: variantProps.cell,
|
|
78
|
-
divider: "on"
|
|
79
|
-
}), _v$2 = col.sortable ? {
|
|
80
|
-
cursor: "pointer"
|
|
81
|
-
} : void 0, _v$3 = sortKey() === col.key ? sortDir() === "asc" ? "ascending" : "descending" : void 0;
|
|
82
|
-
_v$ !== _p$.e && className(_el$6, _p$.e = _v$);
|
|
83
|
-
_p$.t = style(_el$6, _v$2, _p$.t);
|
|
84
|
-
_v$3 !== _p$.a && setAttribute(_el$6, "aria-sort", _p$.a = _v$3);
|
|
85
|
-
return _p$;
|
|
86
|
-
}, {
|
|
87
|
-
e: void 0,
|
|
88
|
-
t: void 0,
|
|
89
|
-
a: void 0
|
|
90
|
-
});
|
|
91
|
-
return _el$6;
|
|
92
|
-
})()));
|
|
93
|
-
insert(_el$5, createComponent(For, {
|
|
94
|
-
get each() {
|
|
95
|
-
return data();
|
|
96
|
-
},
|
|
97
|
-
children: (row) => (() => {
|
|
98
|
-
var _el$7 = _tmpl$3();
|
|
99
|
-
insert(_el$7, () => localProps.columns.map((col, ci) => (() => {
|
|
100
|
-
var _el$8 = _tmpl$4();
|
|
101
|
-
insert(_el$8, () => String(row[col.key] ?? ""));
|
|
102
|
-
effect(() => className(_el$8, tableVariants({
|
|
103
|
-
...baseVars(),
|
|
104
|
-
cell: variantProps.cell,
|
|
105
|
-
divider: ci === localProps.columns.length - 1 ? "off" : "on"
|
|
106
|
-
})));
|
|
107
|
-
return _el$8;
|
|
108
|
-
})()));
|
|
109
|
-
effect(() => className(_el$7, tableVariants({
|
|
110
|
-
...baseVars(),
|
|
111
|
-
row: variantProps.row
|
|
112
|
-
})));
|
|
113
|
-
return _el$7;
|
|
114
|
-
})()
|
|
115
|
-
}));
|
|
116
|
-
return _el$;
|
|
117
|
-
})();
|
|
118
|
-
};
|
|
119
|
-
var Table_default = Table;
|
|
120
|
-
delegateEvents(["click"]);
|
|
121
|
-
|
|
122
|
-
// src/components/table/index.ts
|
|
123
|
-
var table_default = Table_default;
|
|
124
|
-
|
|
125
|
-
export { table_default };
|
package/dist/chunk/R5G3PODL.jsx
DELETED
package/dist/chunk/R6ZBT7CY.jsx
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/chunk/RHEFVSMJ.jsx
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/chunk/SPEY5RMB.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { createComponent, Dynamic, mergeProps } from 'solid-js/web';
|
|
2
|
-
import { splitProps, createMemo, untrack, createSignal } from 'solid-js';
|
|
3
|
-
|
|
4
|
-
// src/components/polymorphic/Polymorphic.tsx
|
|
5
|
-
var Polymorphic = (props) => {
|
|
6
|
-
const [localProps, otherProps] = splitProps(props, ["as"]);
|
|
7
|
-
const cached = createMemo(() => localProps.as ?? "div");
|
|
8
|
-
return createMemo(() => {
|
|
9
|
-
const component = cached();
|
|
10
|
-
switch (typeof component) {
|
|
11
|
-
case "function":
|
|
12
|
-
return untrack(() => component(otherProps));
|
|
13
|
-
case "string":
|
|
14
|
-
return createComponent(Dynamic, mergeProps({
|
|
15
|
-
component
|
|
16
|
-
}, otherProps));
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
var Polymorphic_default = Polymorphic;
|
|
21
|
-
|
|
22
|
-
// src/lib/iterable.ts
|
|
23
|
-
function chain(callbacks) {
|
|
24
|
-
return (...args) => {
|
|
25
|
-
for (const callback of callbacks) callback?.(...args);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// src/lib/refs/mergeRefs.ts
|
|
30
|
-
function mergeRefs(...refs) {
|
|
31
|
-
return chain(refs);
|
|
32
|
-
}
|
|
33
|
-
function createTagName(props) {
|
|
34
|
-
return createMemo(
|
|
35
|
-
() => props.element()?.tagName.toLowerCase() ?? props.fallback
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// src/lib/tag/createIsButton.ts
|
|
40
|
-
var BUTTON_INPUT_TYPES = [
|
|
41
|
-
"button",
|
|
42
|
-
"color",
|
|
43
|
-
"file",
|
|
44
|
-
"image",
|
|
45
|
-
"reset",
|
|
46
|
-
"submit"
|
|
47
|
-
];
|
|
48
|
-
function isButton(tagName, type) {
|
|
49
|
-
if (tagName === "button") {
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
if (tagName === "input" && type !== void 0) {
|
|
53
|
-
return BUTTON_INPUT_TYPES.indexOf(type) !== -1;
|
|
54
|
-
}
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
function createIsButton(props) {
|
|
58
|
-
const tagName = createTagName({
|
|
59
|
-
element: props.element,
|
|
60
|
-
fallback: "button"
|
|
61
|
-
});
|
|
62
|
-
return createMemo(() => isButton(tagName(), props.type));
|
|
63
|
-
}
|
|
64
|
-
var PolymorphicButton = (props) => {
|
|
65
|
-
const [ref, setRef] = createSignal(null);
|
|
66
|
-
const [localProps, otherProps] = splitProps(props, ["ref"]);
|
|
67
|
-
const isButton2 = createIsButton({
|
|
68
|
-
element: ref,
|
|
69
|
-
type: props.type
|
|
70
|
-
});
|
|
71
|
-
return createComponent(Polymorphic_default, mergeProps({
|
|
72
|
-
as: "button",
|
|
73
|
-
ref(r$) {
|
|
74
|
-
var _ref$ = mergeRefs(setRef, localProps.ref);
|
|
75
|
-
typeof _ref$ === "function" && _ref$(r$);
|
|
76
|
-
},
|
|
77
|
-
get role() {
|
|
78
|
-
return !isButton2() ? "button" : void 0;
|
|
79
|
-
}
|
|
80
|
-
}, otherProps));
|
|
81
|
-
};
|
|
82
|
-
var PolymorphicButton_default = PolymorphicButton;
|
|
83
|
-
|
|
84
|
-
export { PolymorphicButton_default, Polymorphic_default };
|