@pathscale/ui 0.0.13 → 0.0.15
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/index.js +7170 -29
- package/package.json +42 -48
- 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.js +0 -1
- package/dist/components/accordion/index.jsx +0 -9
- package/dist/components/autocomplete/index.d.ts +0 -8
- package/dist/components/autocomplete/index.js +0 -1
- package/dist/components/autocomplete/index.jsx +0 -7
- package/dist/components/avatar/index.d.ts +0 -8
- package/dist/components/avatar/index.js +0 -1
- package/dist/components/avatar/index.jsx +0 -8
- package/dist/components/badge/index.d.ts +0 -17
- package/dist/components/badge/index.js +0 -1
- package/dist/components/badge/index.jsx +0 -8
- package/dist/components/breadcrumbs/index.d.ts +0 -9
- package/dist/components/breadcrumbs/index.js +0 -1
- package/dist/components/breadcrumbs/index.jsx +0 -7
- package/dist/components/button/index.d.ts +0 -31
- package/dist/components/button/index.js +0 -1
- package/dist/components/button/index.jsx +0 -9
- package/dist/components/checkbox/index.d.ts +0 -16
- package/dist/components/checkbox/index.js +0 -1
- package/dist/components/checkbox/index.jsx +0 -8
- package/dist/components/collapse/index.d.ts +0 -15
- package/dist/components/collapse/index.js +0 -1
- package/dist/components/collapse/index.jsx +0 -14
- package/dist/components/dropdown/index.d.ts +0 -27
- package/dist/components/dropdown/index.js +0 -1
- package/dist/components/dropdown/index.jsx +0 -13
- package/dist/components/field/index.d.ts +0 -7
- package/dist/components/field/index.js +0 -1
- package/dist/components/field/index.jsx +0 -7
- package/dist/components/fileinput/index.d.ts +0 -16
- package/dist/components/fileinput/index.js +0 -1
- package/dist/components/fileinput/index.jsx +0 -8
- package/dist/components/input/index.d.ts +0 -15
- package/dist/components/input/index.js +0 -1
- package/dist/components/input/index.jsx +0 -8
- package/dist/components/join/index.d.ts +0 -11
- package/dist/components/join/index.js +0 -1
- package/dist/components/join/index.jsx +0 -9
- package/dist/components/loading/index.d.ts +0 -11
- package/dist/components/loading/index.js +0 -1
- package/dist/components/loading/index.jsx +0 -9
- package/dist/components/mask/index.d.ts +0 -7
- package/dist/components/mask/index.js +0 -1
- package/dist/components/mask/index.jsx +0 -8
- package/dist/components/menu/index.d.ts +0 -8
- package/dist/components/menu/index.js +0 -1
- package/dist/components/menu/index.jsx +0 -8
- package/dist/components/navbar/index.d.ts +0 -36
- package/dist/components/navbar/index.js +0 -1
- package/dist/components/navbar/index.jsx +0 -11
- package/dist/components/pagination/index.d.ts +0 -8
- package/dist/components/pagination/index.js +0 -1
- package/dist/components/pagination/index.jsx +0 -9
- package/dist/components/polymorphic/index.d.ts +0 -34
- package/dist/components/polymorphic/index.js +0 -1
- package/dist/components/polymorphic/index.jsx +0 -8
- package/dist/components/select/index.d.ts +0 -15
- package/dist/components/select/index.js +0 -1
- package/dist/components/select/index.jsx +0 -8
- package/dist/components/steps/index.d.ts +0 -7
- package/dist/components/steps/index.js +0 -1
- package/dist/components/steps/index.jsx +0 -8
- package/dist/components/table/index.d.ts +0 -8
- package/dist/components/table/index.js +0 -1
- package/dist/components/table/index.jsx +0 -7
- package/dist/components/tabs/index.d.ts +0 -8
- package/dist/components/tabs/index.js +0 -1
- package/dist/components/tabs/index.jsx +0 -7
- package/dist/components/textarea/index.d.ts +0 -15
- package/dist/components/textarea/index.js +0 -1
- package/dist/components/textarea/index.jsx +0 -8
- package/dist/components/timeline/index.d.ts +0 -7
- package/dist/components/timeline/index.js +0 -1
- package/dist/components/timeline/index.jsx +0 -7
- package/dist/components/toast/index.d.ts +0 -24
- package/dist/components/toast/index.js +0 -1
- package/dist/components/toast/index.jsx +0 -11
- package/dist/components/toggle/index.d.ts +0 -15
- package/dist/components/toggle/index.js +0 -1
- package/dist/components/toggle/index.jsx +0 -8
- package/dist/components/tooltip/index.d.ts +0 -17
- package/dist/components/tooltip/index.js +0 -1
- 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/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 };
|