@pathscale/ui 0.0.2 → 0.0.3
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/dist/{Accordion-nwuRbRRw.d.ts → Accordion-JZGWxBMK.d.ts} +1 -1
- package/dist/Autocomplete-gLkjMHrc.d.ts +28 -0
- package/dist/Field-DfUn85_1.d.ts +49 -0
- package/dist/{Input-BQbTzjIO.d.ts → Input-C1bm4HGf.d.ts} +1 -1
- package/dist/{Pagination-BlrjElGg.d.ts → Pagination-CJtlFMHy.d.ts} +1 -1
- package/dist/Progress-gN0xqhAF.d.ts +64 -0
- package/dist/{Select-CP-TUHJv.d.ts → Select-CWCDBvec.d.ts} +1 -1
- package/dist/Steps-1miUeyCD.d.ts +34 -0
- package/dist/{Switch-3IXS_68H.d.ts → Switch-BiKX7HZ2.d.ts} +1 -1
- package/dist/Table-CGa6Nop3.d.ts +39 -0
- package/dist/{Tabs-BNR3p92D.d.ts → Tabs-BEnRV6GG.d.ts} +1 -1
- package/dist/Timeline-Bd4SxHMT.d.ts +14 -0
- package/dist/chunk/3VOILEMN.js +187 -0
- package/dist/chunk/7ROVLN3J.js +175 -0
- package/dist/chunk/BBDVIXAH.jsx +194 -0
- package/dist/chunk/{4RCWSX7S.jsx → C4745OZS.jsx} +7 -7
- package/dist/chunk/C4YO33NN.jsx +179 -0
- package/dist/chunk/D2BEL4SM.jsx +169 -0
- package/dist/chunk/DSTUGZW6.jsx +81 -0
- package/dist/chunk/FKSQPGOD.jsx +170 -0
- package/dist/chunk/GMIXRYN3.js +138 -0
- package/dist/chunk/HWAGW5N4.jsx +118 -0
- package/dist/chunk/JWRGKHDO.js +172 -0
- package/dist/chunk/LAQPAV5I.jsx +187 -0
- package/dist/chunk/MAX47D6F.js +99 -0
- package/dist/chunk/{2JGZSAW5.js → MI773TMC.js} +6 -6
- package/dist/chunk/MYERRMTM.js +200 -0
- package/dist/chunk/OSJ3P7PI.js +189 -0
- package/dist/chunk/QYEMOKUG.js +125 -0
- package/dist/chunk/SCJSBRV2.jsx +39 -0
- package/dist/chunk/STKRVQR6.jsx +130 -0
- package/dist/chunk/{NZZRKP74.js → TFLJI242.js} +1 -25
- package/dist/chunk/TT2JYGLU.js +218 -0
- package/dist/chunk/VN5BKHA2.jsx +97 -0
- package/dist/chunk/WUZETUQR.js +92 -0
- package/dist/chunk/XD34JKSU.jsx +201 -0
- package/dist/chunk/{GA2HCFRS.jsx → YAQK2KFY.jsx} +1 -35
- package/dist/chunk/YMO6RPS6.js +26 -0
- package/dist/components/Progress/index.d.ts +4 -38
- package/dist/components/Progress/index.js +1 -1
- package/dist/components/Progress/index.jsx +3 -11
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/autocomplete/index.d.ts +8 -0
- package/dist/components/autocomplete/index.js +1 -0
- package/dist/components/autocomplete/index.jsx +7 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +3 -3
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.jsx +2 -1
- package/dist/components/dropdown/index.d.ts +43 -0
- package/dist/components/dropdown/index.js +1 -0
- package/dist/components/dropdown/index.jsx +12 -0
- package/dist/components/field/index.d.ts +7 -0
- package/dist/components/field/index.js +1 -0
- package/dist/components/field/index.jsx +7 -0
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/menu/index.d.ts +66 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/menu/index.jsx +11 -0
- package/dist/components/navbar/index.d.ts +74 -0
- package/dist/components/navbar/index.js +1 -0
- package/dist/components/navbar/index.jsx +11 -0
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/steps/index.d.ts +8 -0
- package/dist/components/steps/index.js +1 -0
- package/dist/components/steps/index.jsx +7 -0
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/index.d.ts +8 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/index.jsx +7 -0
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/timeline/index.d.ts +7 -0
- package/dist/components/timeline/index.js +1 -0
- package/dist/components/timeline/index.jsx +7 -0
- package/dist/components/toast/index.d.ts +24 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toast/index.jsx +11 -0
- package/dist/index.d.ts +17 -8
- package/dist/index.js +17 -7
- package/dist/index.jsx +68 -14
- package/package.json +1 -1
- package/dist/Progress-a616LgE0.d.ts +0 -5
- package/dist/chunk/QNOJ6PCD.js +0 -278
- package/dist/chunk/WCBMW2TP.jsx +0 -203
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { cva, classes } from './HKS7ET6T.js';
|
|
2
|
+
import { template, className, insert, createComponent, memo, effect } from 'solid-js/web';
|
|
3
|
+
import { For } from 'solid-js';
|
|
4
|
+
|
|
5
|
+
// src/components/timeline/Timeline.styles.ts
|
|
6
|
+
var timelineWrapperClass = "relative";
|
|
7
|
+
var timelineItemClass = cva(
|
|
8
|
+
"relative flex items-center gap-3 min-h-[48px]",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
state: {
|
|
12
|
+
default: "text-gray-500",
|
|
13
|
+
active: "text-green-500 font-medium",
|
|
14
|
+
error: "text-red-500 font-medium"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
state: "default"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
var timelineMarkerWrapperClass = "relative w-6 min-h-[48px] flex items-center justify-center";
|
|
23
|
+
var timelineLineClass = "absolute top-0 bottom-0 left-1/2 -translate-x-1/2 w-px bg-gray-300 dark:bg-gray-600";
|
|
24
|
+
var timelineMarkerClass = "absolute w-3 h-3 rounded-full border-2 border-white bg-gray-400 z-10";
|
|
25
|
+
var timelineNumberClass = cva(
|
|
26
|
+
"absolute -left-4 top-1/2 -translate-y-1/2 text-xs font-semibold",
|
|
27
|
+
{
|
|
28
|
+
variants: {
|
|
29
|
+
state: {
|
|
30
|
+
default: "text-gray-500",
|
|
31
|
+
active: "text-green-500",
|
|
32
|
+
error: "text-red-500"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
state: "default"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
var timelineContentClass = "pt-0.5 text-sm";
|
|
41
|
+
|
|
42
|
+
// src/components/timeline/Timeline.tsx
|
|
43
|
+
var _tmpl$ = /* @__PURE__ */ template(`<ol>`);
|
|
44
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<li><div><div></div><span></span><span>.</span></div><div>`);
|
|
45
|
+
var Timeline = (props) => {
|
|
46
|
+
return (() => {
|
|
47
|
+
var _el$ = _tmpl$();
|
|
48
|
+
className(_el$, timelineWrapperClass);
|
|
49
|
+
insert(_el$, createComponent(For, {
|
|
50
|
+
get each() {
|
|
51
|
+
return props.stages;
|
|
52
|
+
},
|
|
53
|
+
children: (stage, index) => {
|
|
54
|
+
const state = stage.error === true ? "error" : stage.active === true ? "active" : "default";
|
|
55
|
+
return (() => {
|
|
56
|
+
var _el$2 = _tmpl$2(), _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$3.nextSibling;
|
|
57
|
+
className(_el$3, timelineMarkerWrapperClass);
|
|
58
|
+
className(_el$4, timelineLineClass);
|
|
59
|
+
insert(_el$6, () => index() + 1, _el$7);
|
|
60
|
+
className(_el$8, timelineContentClass);
|
|
61
|
+
insert(_el$8, (() => {
|
|
62
|
+
var _c$ = memo(() => !!props.renderStage);
|
|
63
|
+
return () => _c$() ? props.renderStage(stage, index()) : stage.title;
|
|
64
|
+
})());
|
|
65
|
+
effect((_p$) => {
|
|
66
|
+
var _v$ = timelineItemClass({
|
|
67
|
+
state
|
|
68
|
+
}), _v$2 = classes(timelineMarkerClass, state === "active" && "bg-green-500", state === "error" && "bg-red-500"), _v$3 = timelineNumberClass({
|
|
69
|
+
state
|
|
70
|
+
});
|
|
71
|
+
_v$ !== _p$.e && className(_el$2, _p$.e = _v$);
|
|
72
|
+
_v$2 !== _p$.t && className(_el$5, _p$.t = _v$2);
|
|
73
|
+
_v$3 !== _p$.a && className(_el$6, _p$.a = _v$3);
|
|
74
|
+
return _p$;
|
|
75
|
+
}, {
|
|
76
|
+
e: void 0,
|
|
77
|
+
t: void 0,
|
|
78
|
+
a: void 0
|
|
79
|
+
});
|
|
80
|
+
return _el$2;
|
|
81
|
+
})();
|
|
82
|
+
}
|
|
83
|
+
}));
|
|
84
|
+
return _el$;
|
|
85
|
+
})();
|
|
86
|
+
};
|
|
87
|
+
var Timeline_default = Timeline;
|
|
88
|
+
|
|
89
|
+
// src/components/timeline/index.ts
|
|
90
|
+
var timeline_default = Timeline_default;
|
|
91
|
+
|
|
92
|
+
export { timeline_default };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import {
|
|
2
|
+
classes,
|
|
3
|
+
cva
|
|
4
|
+
} from "./P7WPLZNA.jsx";
|
|
5
|
+
|
|
6
|
+
// src/components/menu/Menu.tsx
|
|
7
|
+
import {
|
|
8
|
+
splitProps
|
|
9
|
+
} from "solid-js";
|
|
10
|
+
|
|
11
|
+
// src/components/menu/Menu.styles.ts
|
|
12
|
+
var menuWrapper = cva("bg-white border border-gray-200 rounded shadow", {
|
|
13
|
+
variants: {
|
|
14
|
+
inline: {
|
|
15
|
+
true: "flex space-x-4",
|
|
16
|
+
false: "block"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
inline: false
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
var listWrapper = cva("px-4 py-2", {
|
|
24
|
+
variants: {
|
|
25
|
+
label: {
|
|
26
|
+
true: "pt-6",
|
|
27
|
+
false: ""
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
label: false
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
var itemVariants = cva(
|
|
35
|
+
"px-4 py-2 cursor-pointer select-none transition-colors",
|
|
36
|
+
{
|
|
37
|
+
variants: {
|
|
38
|
+
active: {
|
|
39
|
+
true: "bg-blue-100 font-semibold",
|
|
40
|
+
false: "hover:bg-blue-500"
|
|
41
|
+
},
|
|
42
|
+
expanded: {
|
|
43
|
+
true: "bg-gray-50 text-black",
|
|
44
|
+
false: ""
|
|
45
|
+
},
|
|
46
|
+
disabled: {
|
|
47
|
+
true: "opacity-50 cursor-not-allowed text-gray-700",
|
|
48
|
+
false: ""
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
compoundVariants: [
|
|
52
|
+
{
|
|
53
|
+
active: true,
|
|
54
|
+
expanded: true,
|
|
55
|
+
class: "bg-blue-200"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
active: false,
|
|
60
|
+
expanded: false,
|
|
61
|
+
disabled: false
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
var itemDetailWrapper = cva(
|
|
66
|
+
"ml-4 border-l border-gray-200 mt-1 pl-2"
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
// src/components/menu/Menu.tsx
|
|
70
|
+
var Menu = (props) => {
|
|
71
|
+
const [local, variantProps, otherProps] = splitProps(
|
|
72
|
+
props,
|
|
73
|
+
["class", "className", "children", "inline"],
|
|
74
|
+
Object.keys(menuWrapper.variantKeys ?? {})
|
|
75
|
+
);
|
|
76
|
+
return <div
|
|
77
|
+
class={classes(
|
|
78
|
+
menuWrapper({ inline: !!variantProps.inline }),
|
|
79
|
+
local.class,
|
|
80
|
+
local.className
|
|
81
|
+
)}
|
|
82
|
+
{...otherProps}
|
|
83
|
+
>
|
|
84
|
+
{local.children}
|
|
85
|
+
</div>;
|
|
86
|
+
};
|
|
87
|
+
var Menu_default = Menu;
|
|
88
|
+
|
|
89
|
+
// src/components/menu/MenuList.tsx
|
|
90
|
+
import {
|
|
91
|
+
splitProps as splitProps2,
|
|
92
|
+
Show
|
|
93
|
+
} from "solid-js";
|
|
94
|
+
var MenuList = (props) => {
|
|
95
|
+
const [local, variantProps, otherProps] = splitProps2(
|
|
96
|
+
props,
|
|
97
|
+
["class", "children", "label"],
|
|
98
|
+
Object.keys(listWrapper.variantKeys ?? {})
|
|
99
|
+
);
|
|
100
|
+
return <div
|
|
101
|
+
class={classes(
|
|
102
|
+
listWrapper({ label: !!local.label }),
|
|
103
|
+
local.class
|
|
104
|
+
)}
|
|
105
|
+
{...otherProps}
|
|
106
|
+
>
|
|
107
|
+
<Show when={local.label}>
|
|
108
|
+
<div class="px-4 pb-2 font-medium text-gray-700">{local.label}</div>
|
|
109
|
+
</Show>
|
|
110
|
+
<div class="flex flex-col">{local.children}</div>
|
|
111
|
+
</div>;
|
|
112
|
+
};
|
|
113
|
+
var MenuList_default = MenuList;
|
|
114
|
+
|
|
115
|
+
// src/components/menu/MenuItem.tsx
|
|
116
|
+
import {
|
|
117
|
+
splitProps as splitProps3,
|
|
118
|
+
Show as Show2,
|
|
119
|
+
createSignal,
|
|
120
|
+
createMemo
|
|
121
|
+
} from "solid-js";
|
|
122
|
+
import { Dynamic } from "solid-js/web";
|
|
123
|
+
var MenuItem = (props) => {
|
|
124
|
+
const [local, variantProps, rest] = splitProps3(
|
|
125
|
+
props,
|
|
126
|
+
[
|
|
127
|
+
"class",
|
|
128
|
+
"className",
|
|
129
|
+
"label",
|
|
130
|
+
"active",
|
|
131
|
+
"expanded",
|
|
132
|
+
"disabled",
|
|
133
|
+
"tag",
|
|
134
|
+
"to",
|
|
135
|
+
"target",
|
|
136
|
+
"children"
|
|
137
|
+
],
|
|
138
|
+
Object.keys(itemVariants.variantKeys ?? {})
|
|
139
|
+
);
|
|
140
|
+
const hasChildren = createMemo(() => !!local.children);
|
|
141
|
+
const isControlled = createMemo(() => local.expanded !== void 0);
|
|
142
|
+
const [internalExpanded, setInternalExpanded] = createSignal(false);
|
|
143
|
+
const isExpanded = createMemo(
|
|
144
|
+
() => isControlled() ? !!local.expanded : internalExpanded()
|
|
145
|
+
);
|
|
146
|
+
const toggleExpand = () => {
|
|
147
|
+
if (!isControlled() && hasChildren() && !local.disabled) {
|
|
148
|
+
setInternalExpanded((prev) => !prev);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const onKeyDown = (e) => {
|
|
152
|
+
if (local.disabled) return;
|
|
153
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
154
|
+
e.preventDefault();
|
|
155
|
+
toggleExpand();
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
const tagName = local.to ? "a" : local.tag ?? "div";
|
|
159
|
+
const focusableProps = !local.to && !local.disabled ? { tabIndex: 0 } : {};
|
|
160
|
+
return <Dynamic
|
|
161
|
+
component={tagName}
|
|
162
|
+
class={classes(local.class, local.className, "w-full")}
|
|
163
|
+
href={local.to}
|
|
164
|
+
target={local.target}
|
|
165
|
+
aria-disabled={local.disabled}
|
|
166
|
+
onClick={toggleExpand}
|
|
167
|
+
onKeyDown={onKeyDown}
|
|
168
|
+
{...focusableProps}
|
|
169
|
+
{...rest}
|
|
170
|
+
>
|
|
171
|
+
<div
|
|
172
|
+
class={itemVariants({
|
|
173
|
+
active: !!local.active,
|
|
174
|
+
expanded: isExpanded(),
|
|
175
|
+
disabled: !!local.disabled
|
|
176
|
+
})}
|
|
177
|
+
>
|
|
178
|
+
<div class="flex items-center justify-between">
|
|
179
|
+
<span>{local.label}</span>
|
|
180
|
+
<Show2 when={hasChildren()}>
|
|
181
|
+
<span class="ml-2 text-gray-500">
|
|
182
|
+
{isExpanded() ? "\u25BE" : "\u25B8"}
|
|
183
|
+
</span>
|
|
184
|
+
</Show2>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
<Show2 when={isExpanded()}>
|
|
189
|
+
<div class={itemDetailWrapper()}>
|
|
190
|
+
{local.children}
|
|
191
|
+
</div>
|
|
192
|
+
</Show2>
|
|
193
|
+
</Dynamic>;
|
|
194
|
+
};
|
|
195
|
+
var MenuItem_default = MenuItem;
|
|
196
|
+
|
|
197
|
+
export {
|
|
198
|
+
Menu_default,
|
|
199
|
+
MenuList_default,
|
|
200
|
+
MenuItem_default
|
|
201
|
+
};
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PolymorphicButton_default
|
|
3
|
-
} from "./KACNXPUM.jsx";
|
|
4
1
|
import {
|
|
5
2
|
cva
|
|
6
3
|
} from "./P7WPLZNA.jsx";
|
|
7
4
|
|
|
8
|
-
// src/components/button/Button.tsx
|
|
9
|
-
import {
|
|
10
|
-
mergeProps,
|
|
11
|
-
splitProps,
|
|
12
|
-
createMemo
|
|
13
|
-
} from "solid-js";
|
|
14
|
-
|
|
15
5
|
// src/components/button/Button.styles.ts
|
|
16
6
|
var buttonVariants = cva(
|
|
17
7
|
[
|
|
@@ -199,30 +189,6 @@ var buttonVariants = cva(
|
|
|
199
189
|
}
|
|
200
190
|
);
|
|
201
191
|
|
|
202
|
-
// src/components/button/Button.tsx
|
|
203
|
-
var Button = (props) => {
|
|
204
|
-
const defaultedProps = mergeProps(
|
|
205
|
-
{
|
|
206
|
-
color: "primary"
|
|
207
|
-
},
|
|
208
|
-
props
|
|
209
|
-
);
|
|
210
|
-
const [variantProps, otherProps] = splitProps(defaultedProps, [
|
|
211
|
-
"class",
|
|
212
|
-
...buttonVariants.variantKeys
|
|
213
|
-
]);
|
|
214
|
-
const classes = createMemo(() => buttonVariants(variantProps));
|
|
215
|
-
return <PolymorphicButton_default
|
|
216
|
-
class={classes()}
|
|
217
|
-
aria-busy={variantProps.loading ? "true" : void 0}
|
|
218
|
-
{...otherProps}
|
|
219
|
-
/>;
|
|
220
|
-
};
|
|
221
|
-
var Button_default = Button;
|
|
222
|
-
|
|
223
|
-
// src/components/button/index.ts
|
|
224
|
-
var button_default = Button_default;
|
|
225
|
-
|
|
226
192
|
export {
|
|
227
|
-
|
|
193
|
+
buttonVariants
|
|
228
194
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { buttonVariants } from './TFLJI242.js';
|
|
2
|
+
import { PolymorphicButton_default } from './G6RG4LR7.js';
|
|
3
|
+
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
4
|
+
import { mergeProps, splitProps, createMemo } from 'solid-js';
|
|
5
|
+
|
|
6
|
+
var Button = (props) => {
|
|
7
|
+
const defaultedProps = mergeProps({
|
|
8
|
+
color: "primary"
|
|
9
|
+
}, props);
|
|
10
|
+
const [variantProps, otherProps] = splitProps(defaultedProps, ["class", ...buttonVariants.variantKeys]);
|
|
11
|
+
const classes = createMemo(() => buttonVariants(variantProps));
|
|
12
|
+
return createComponent(PolymorphicButton_default, mergeProps$1({
|
|
13
|
+
get ["class"]() {
|
|
14
|
+
return classes();
|
|
15
|
+
},
|
|
16
|
+
get ["aria-busy"]() {
|
|
17
|
+
return variantProps.loading ? "true" : void 0;
|
|
18
|
+
}
|
|
19
|
+
}, otherProps));
|
|
20
|
+
};
|
|
21
|
+
var Button_default = Button;
|
|
22
|
+
|
|
23
|
+
// src/components/button/index.ts
|
|
24
|
+
var button_default = Button_default;
|
|
25
|
+
|
|
26
|
+
export { button_default };
|
|
@@ -1,41 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { P as Progress } from '../../Progress-gN0xqhAF.js';
|
|
2
|
+
import 'solid-js';
|
|
3
|
+
import '../../classes-B_S9K-9I.js';
|
|
3
4
|
|
|
4
|
-
interface ProgressValueProps {
|
|
5
|
-
value: number;
|
|
6
|
-
size?: "sm" | "md" | "lg";
|
|
7
|
-
shape?: "circle" | "rounded";
|
|
8
|
-
variant?: "filled" | "outlined" | "ghost";
|
|
9
|
-
}
|
|
10
|
-
declare const ProgressValue: Component<ProgressValueProps>;
|
|
11
5
|
|
|
12
|
-
interface ProgressProps$2 {
|
|
13
|
-
value: number;
|
|
14
|
-
size?: "sm" | "md" | "lg";
|
|
15
|
-
shape?: "circle" | "rounded";
|
|
16
|
-
variant?: "filled" | "outlined" | "ghost";
|
|
17
|
-
}
|
|
18
|
-
declare const Progress$2: Component<ProgressProps$2>;
|
|
19
6
|
|
|
20
|
-
|
|
21
|
-
value: number;
|
|
22
|
-
size?: "sm" | "md" | "lg";
|
|
23
|
-
shape?: "circle" | "rounded";
|
|
24
|
-
variant?: "filled" | "outlined" | "ghost";
|
|
25
|
-
showValue?: boolean;
|
|
26
|
-
format?: "percent" | "raw";
|
|
27
|
-
}
|
|
28
|
-
declare const Progress$1: Component<ProgressProps$1>;
|
|
29
|
-
|
|
30
|
-
interface ProgressProps {
|
|
31
|
-
value: number | null;
|
|
32
|
-
size?: "sm" | "md" | "lg";
|
|
33
|
-
shape?: "circle" | "rounded";
|
|
34
|
-
variant?: "filled" | "outlined" | "ghost";
|
|
35
|
-
showValue?: boolean;
|
|
36
|
-
format?: "percent" | "raw";
|
|
37
|
-
color?: "danger" | "success" | "info" | "warning" | "default";
|
|
38
|
-
}
|
|
39
|
-
declare const Progress: Component<ProgressProps>;
|
|
40
|
-
|
|
41
|
-
export { Progress as ProgressColors, type ProgressProps as ProgressColorsProps, Progress$1 as ProgressPercent, type ProgressProps$1 as ProgressPercentProps, Progress$2 as ProgressSizes, type ProgressProps$2 as ProgressSizesProps, ProgressValue, type ProgressValueProps };
|
|
7
|
+
export { Progress as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { progress_default as default } from '../../chunk/GMIXRYN3.js';
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
ProgressSizes_default,
|
|
5
|
-
ProgressValue_default,
|
|
6
|
-
Progress_default
|
|
7
|
-
} from "../../chunk/WCBMW2TP.jsx";
|
|
2
|
+
progress_default
|
|
3
|
+
} from "../../chunk/STKRVQR6.jsx";
|
|
8
4
|
import "../../chunk/P7WPLZNA.jsx";
|
|
9
5
|
export {
|
|
10
|
-
|
|
11
|
-
ProgressPercent_default as ProgressPercent,
|
|
12
|
-
ProgressSizes_default as ProgressSizes,
|
|
13
|
-
ProgressValue_default as ProgressValue,
|
|
14
|
-
Progress_default as default
|
|
6
|
+
progress_default as default
|
|
15
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Accordion } from '../../Accordion-
|
|
2
|
-
export { a as AccordionProps } from '../../Accordion-
|
|
1
|
+
import { A as Accordion } from '../../Accordion-JZGWxBMK.js';
|
|
2
|
+
export { a as AccordionProps } from '../../Accordion-JZGWxBMK.js';
|
|
3
3
|
import 'solid-js';
|
|
4
4
|
import '../../classes-B_S9K-9I.js';
|
|
5
5
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { autocomplete_default as default } from '../../chunk/MYERRMTM.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { avatar_default as default } from '../../chunk/MI773TMC.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { button_default as default } from '../../chunk/
|
|
1
|
+
export { button_default as default } from '../../chunk/YMO6RPS6.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Component, JSX, ComponentProps } from 'solid-js';
|
|
2
|
+
import { C as ConfigVariants, a as ClassProps, V as VariantProps } from '../../classes-B_S9K-9I.js';
|
|
3
|
+
|
|
4
|
+
declare const dropdownVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
position: {
|
|
7
|
+
"bottom-left": string;
|
|
8
|
+
"bottom-right": string;
|
|
9
|
+
"top-left": string;
|
|
10
|
+
"top-right": string;
|
|
11
|
+
};
|
|
12
|
+
open: {
|
|
13
|
+
true: string;
|
|
14
|
+
false: string;
|
|
15
|
+
};
|
|
16
|
+
}> & ClassProps) | undefined): string;
|
|
17
|
+
variantKeys: ("open" | "position")[];
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
type DropdownProps = {
|
|
21
|
+
label?: string | JSX.Element;
|
|
22
|
+
disabledLabel?: string | JSX.Element;
|
|
23
|
+
trigger?: "click" | "hover";
|
|
24
|
+
children: JSX.Element;
|
|
25
|
+
color?: "primary" | "secondary" | "default";
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
} & VariantProps<typeof dropdownVariants> & ClassProps & ComponentProps<"div">;
|
|
29
|
+
declare const Dropdown: Component<DropdownProps>;
|
|
30
|
+
|
|
31
|
+
interface DropdownItemProps {
|
|
32
|
+
hasLink?: boolean;
|
|
33
|
+
children: JSX.Element;
|
|
34
|
+
}
|
|
35
|
+
declare const DropdownItem: Component<DropdownItemProps>;
|
|
36
|
+
|
|
37
|
+
interface DropdownMenuProps extends VariantProps<typeof dropdownVariants>, // open + position only
|
|
38
|
+
JSX.HTMLAttributes<HTMLDivElement> {
|
|
39
|
+
children: JSX.Element;
|
|
40
|
+
}
|
|
41
|
+
declare const DropdownMenu: Component<DropdownMenuProps>;
|
|
42
|
+
|
|
43
|
+
export { Dropdown, DropdownItem, DropdownMenu };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dropdown_default as Dropdown, DropdownItem_default as DropdownItem, DropdownMenu_default as DropdownMenu } from '../../chunk/7ROVLN3J.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DropdownItem_default,
|
|
3
|
+
DropdownMenu_default,
|
|
4
|
+
Dropdown_default
|
|
5
|
+
} from "../../chunk/D2BEL4SM.jsx";
|
|
6
|
+
import "../../chunk/YAQK2KFY.jsx";
|
|
7
|
+
import "../../chunk/P7WPLZNA.jsx";
|
|
8
|
+
export {
|
|
9
|
+
Dropdown_default as Dropdown,
|
|
10
|
+
DropdownItem_default as DropdownItem,
|
|
11
|
+
DropdownMenu_default as DropdownMenu
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { field_default as default } from '../../chunk/MAX47D6F.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as Input } from '../../Input-
|
|
2
|
-
export { a as InputProps } from '../../Input-
|
|
1
|
+
import { I as Input } from '../../Input-C1bm4HGf.js';
|
|
2
|
+
export { a as InputProps } from '../../Input-C1bm4HGf.js';
|
|
3
3
|
import 'solid-js';
|
|
4
4
|
import '../../classes-B_S9K-9I.js';
|
|
5
5
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Component, JSX } from 'solid-js';
|
|
2
|
+
import { C as ConfigVariants, a as ClassProps, V as VariantProps } from '../../classes-B_S9K-9I.js';
|
|
3
|
+
|
|
4
|
+
declare const menuWrapper: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
inline: {
|
|
7
|
+
true: string;
|
|
8
|
+
false: string;
|
|
9
|
+
};
|
|
10
|
+
}> & ClassProps) | undefined): string;
|
|
11
|
+
variantKeys: "inline"[];
|
|
12
|
+
};
|
|
13
|
+
declare const listWrapper: {
|
|
14
|
+
(props?: (ConfigVariants<{
|
|
15
|
+
label: {
|
|
16
|
+
true: string;
|
|
17
|
+
false: string;
|
|
18
|
+
};
|
|
19
|
+
}> & ClassProps) | undefined): string;
|
|
20
|
+
variantKeys: "label"[];
|
|
21
|
+
};
|
|
22
|
+
declare const itemVariants: {
|
|
23
|
+
(props?: (ConfigVariants<{
|
|
24
|
+
active: {
|
|
25
|
+
true: string;
|
|
26
|
+
false: string;
|
|
27
|
+
};
|
|
28
|
+
expanded: {
|
|
29
|
+
true: string;
|
|
30
|
+
false: string;
|
|
31
|
+
};
|
|
32
|
+
disabled: {
|
|
33
|
+
true: string;
|
|
34
|
+
false: string;
|
|
35
|
+
};
|
|
36
|
+
}> & ClassProps) | undefined): string;
|
|
37
|
+
variantKeys: ("expanded" | "disabled" | "active")[];
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
type MenuProps = {
|
|
41
|
+
inline?: boolean;
|
|
42
|
+
className?: string;
|
|
43
|
+
children: JSX.Element;
|
|
44
|
+
} & VariantProps<typeof menuWrapper> & ClassProps;
|
|
45
|
+
declare const Menu: Component<MenuProps>;
|
|
46
|
+
|
|
47
|
+
type MenuListProps = {
|
|
48
|
+
label?: string;
|
|
49
|
+
children: JSX.Element;
|
|
50
|
+
} & VariantProps<typeof listWrapper> & ClassProps;
|
|
51
|
+
declare const MenuList: Component<MenuListProps>;
|
|
52
|
+
|
|
53
|
+
type MenuItemProps = {
|
|
54
|
+
label: string;
|
|
55
|
+
active?: boolean;
|
|
56
|
+
expanded?: boolean;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
className?: string;
|
|
59
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
60
|
+
to?: string;
|
|
61
|
+
target?: string;
|
|
62
|
+
children?: JSX.Element;
|
|
63
|
+
} & VariantProps<typeof itemVariants> & ClassProps & Omit<JSX.HTMLAttributes<HTMLElement>, "children">;
|
|
64
|
+
declare const MenuItem: Component<MenuItemProps>;
|
|
65
|
+
|
|
66
|
+
export { Menu, MenuItem, MenuList };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Menu_default as Menu, MenuItem_default as MenuItem, MenuList_default as MenuList } from '../../chunk/3VOILEMN.js';
|