@pathscale/ui 0.0.9 → 0.0.11
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-JZGWxBMK.d.ts → Accordion-nwuRbRRw.d.ts} +1 -1
- package/dist/{Autocomplete-gLkjMHrc.d.ts → Autocomplete-BLKN_nG8.d.ts} +1 -1
- package/dist/{Input-BGHHmBBR.d.ts → Input-X4gwIB-F.d.ts} +1 -1
- package/dist/{Select-CWCDBvec.d.ts → Select-CP-TUHJv.d.ts} +1 -1
- package/dist/{Tabs-BEnRV6GG.d.ts → Tabs-BNR3p92D.d.ts} +1 -1
- package/dist/chunk/3FBDYV4P.js +143 -0
- package/dist/chunk/55B7Q4NT.jsx +258 -0
- package/dist/chunk/{6B7HOWQD.js → EE4HXMKA.js} +5 -5
- package/dist/chunk/{5R7S7TXL.jsx → GWFGP2JQ.jsx} +5 -5
- package/dist/chunk/{YAQK2KFY.jsx → LMPV5G35.jsx} +35 -1
- package/dist/chunk/OJRG4ZAB.jsx +143 -0
- package/dist/chunk/{5KABSQPM.js → OYAKKETQ.js} +1 -1
- package/dist/chunk/P653OZ5D.js +224 -0
- package/dist/chunk/{TFLJI242.js → PF47YREI.js} +25 -1
- package/dist/chunk/{YM2NLFQE.jsx → R6COBCN7.jsx} +1 -1
- package/dist/chunk/{G6RG4LR7.js → SPEY5RMB.js} +2 -5
- package/dist/chunk/{KACNXPUM.jsx → T2LDLYWV.jsx} +2 -4
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/autocomplete/index.d.ts +2 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.jsx +2 -3
- package/dist/components/dropdown/index.d.ts +17 -33
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/dropdown/index.jsx +4 -3
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/navbar/index.d.ts +18 -56
- package/dist/components/navbar/index.js +1 -1
- package/dist/components/navbar/index.jsx +1 -1
- package/dist/components/polymorphic/index.d.ts +0 -1
- package/dist/components/polymorphic/index.js +1 -1
- package/dist/components/polymorphic/index.jsx +1 -1
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +1 -1
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/index.jsx +14 -13
- package/package.json +1 -1
- package/dist/chunk/7ROVLN3J.js +0 -175
- package/dist/chunk/BBDVIXAH.jsx +0 -194
- package/dist/chunk/D2BEL4SM.jsx +0 -169
- package/dist/chunk/OSJ3P7PI.js +0 -189
- package/dist/chunk/SCJSBRV2.jsx +0 -39
- package/dist/chunk/YMO6RPS6.js +0 -26
- /package/dist/components/{progress → Progress}/index.d.ts +0 -0
- /package/dist/components/{progress → Progress}/index.js +0 -0
- /package/dist/components/{progress → Progress}/index.jsx +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
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 };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { PolymorphicButton_default } from './SPEY5RMB.js';
|
|
1
2
|
import { cva } from './HKS7ET6T.js';
|
|
3
|
+
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
4
|
+
import { mergeProps, splitProps, createMemo } from 'solid-js';
|
|
2
5
|
|
|
3
6
|
// src/components/button/Button.styles.ts
|
|
4
7
|
var buttonVariants = cva(
|
|
@@ -187,4 +190,25 @@ var buttonVariants = cva(
|
|
|
187
190
|
}
|
|
188
191
|
);
|
|
189
192
|
|
|
190
|
-
|
|
193
|
+
// src/components/button/Button.tsx
|
|
194
|
+
var Button = (props) => {
|
|
195
|
+
const defaultedProps = mergeProps({
|
|
196
|
+
color: "primary"
|
|
197
|
+
}, props);
|
|
198
|
+
const [variantProps, otherProps] = splitProps(defaultedProps, ["class", ...buttonVariants.variantKeys]);
|
|
199
|
+
const classes = createMemo(() => buttonVariants(variantProps));
|
|
200
|
+
return createComponent(PolymorphicButton_default, mergeProps$1({
|
|
201
|
+
get ["class"]() {
|
|
202
|
+
return classes();
|
|
203
|
+
},
|
|
204
|
+
get ["aria-busy"]() {
|
|
205
|
+
return variantProps.loading ? "true" : void 0;
|
|
206
|
+
}
|
|
207
|
+
}, otherProps));
|
|
208
|
+
};
|
|
209
|
+
var Button_default = Button;
|
|
210
|
+
|
|
211
|
+
// src/components/button/index.ts
|
|
212
|
+
var button_default = Button_default;
|
|
213
|
+
|
|
214
|
+
export { button_default };
|
|
@@ -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
|
}
|
|
@@ -80,17 +80,15 @@ import {
|
|
|
80
80
|
var PolymorphicButton = (props) => {
|
|
81
81
|
const [ref, setRef] = createSignal(null);
|
|
82
82
|
const [localProps, otherProps] = splitProps2(props, [
|
|
83
|
-
"ref"
|
|
84
|
-
"type"
|
|
83
|
+
"ref"
|
|
85
84
|
]);
|
|
86
85
|
const isButton2 = createIsButton({
|
|
87
86
|
element: ref,
|
|
88
|
-
type:
|
|
87
|
+
type: props.type
|
|
89
88
|
});
|
|
90
89
|
return <Polymorphic_default
|
|
91
90
|
as="button"
|
|
92
91
|
ref={mergeRefs(setRef, localProps.ref)}
|
|
93
|
-
type={isButton2() ? "button" : void 0}
|
|
94
92
|
role={!isButton2() ? "button" : void 0}
|
|
95
93
|
{...otherProps}
|
|
96
94
|
/>;
|
|
@@ -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-nwuRbRRw.js';
|
|
2
|
+
export { a as AccordionProps } from '../../Accordion-nwuRbRRw.js';
|
|
3
3
|
import 'solid-js';
|
|
4
4
|
import '../../classes-B_S9K-9I.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Autocomplete } from '../../Autocomplete-
|
|
2
|
-
export { a as AutocompleteProps } from '../../Autocomplete-
|
|
1
|
+
import { A as Autocomplete } from '../../Autocomplete-BLKN_nG8.js';
|
|
2
|
+
export { a as AutocompleteProps } from '../../Autocomplete-BLKN_nG8.js';
|
|
3
3
|
import 'solid-js';
|
|
4
4
|
import '../../classes-B_S9K-9I.js';
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { button_default as default } from '../../chunk/
|
|
1
|
+
export { button_default as default } from '../../chunk/PF47YREI.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button_default
|
|
3
|
-
} from "../../chunk/
|
|
4
|
-
import "../../chunk/
|
|
5
|
-
import "../../chunk/KACNXPUM.jsx";
|
|
3
|
+
} from "../../chunk/LMPV5G35.jsx";
|
|
4
|
+
import "../../chunk/T2LDLYWV.jsx";
|
|
6
5
|
import "../../chunk/P7WPLZNA.jsx";
|
|
7
6
|
export {
|
|
8
7
|
button_default as default
|
|
@@ -1,43 +1,27 @@
|
|
|
1
|
-
import { Component, JSX
|
|
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
|
-
};
|
|
1
|
+
import { Component, JSX } from 'solid-js';
|
|
19
2
|
|
|
20
3
|
type DropdownProps = {
|
|
21
|
-
label?: string | JSX.Element;
|
|
22
|
-
disabledLabel?: string | JSX.Element;
|
|
23
|
-
trigger?: "click" | "hover";
|
|
24
4
|
children: JSX.Element;
|
|
25
|
-
|
|
5
|
+
hoverable?: boolean;
|
|
26
6
|
disabled?: boolean;
|
|
27
|
-
|
|
28
|
-
}
|
|
7
|
+
position?: "left" | "right" | "top-left" | "top-right";
|
|
8
|
+
};
|
|
29
9
|
declare const Dropdown: Component<DropdownProps>;
|
|
30
10
|
|
|
31
|
-
|
|
32
|
-
hasLink?: boolean;
|
|
11
|
+
declare const DropdownTrigger: Component<{
|
|
33
12
|
children: JSX.Element;
|
|
34
|
-
}
|
|
35
|
-
declare const DropdownItem: Component<DropdownItemProps>;
|
|
13
|
+
}>;
|
|
36
14
|
|
|
37
|
-
|
|
38
|
-
JSX.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
declare const DropdownMenu: Component<{
|
|
39
16
|
children: JSX.Element;
|
|
40
|
-
}
|
|
41
|
-
|
|
17
|
+
}>;
|
|
18
|
+
|
|
19
|
+
type DropdownItemProps = {
|
|
20
|
+
children: JSX.Element;
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
value?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
};
|
|
25
|
+
declare const DropdownItem: Component<DropdownItemProps>;
|
|
42
26
|
|
|
43
|
-
export { Dropdown, DropdownItem, DropdownMenu };
|
|
27
|
+
export { Dropdown, DropdownItem, DropdownMenu, DropdownTrigger };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Dropdown_default as Dropdown, DropdownItem_default as DropdownItem, DropdownMenu_default as DropdownMenu } from '../../chunk/
|
|
1
|
+
export { Dropdown_default as Dropdown, DropdownItem_default as DropdownItem, DropdownMenu_default as DropdownMenu, DropdownTrigger_default as DropdownTrigger } from '../../chunk/3FBDYV4P.js';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DropdownItem_default,
|
|
3
3
|
DropdownMenu_default,
|
|
4
|
+
DropdownTrigger_default,
|
|
4
5
|
Dropdown_default
|
|
5
|
-
} from "../../chunk/
|
|
6
|
-
import "../../chunk/YAQK2KFY.jsx";
|
|
6
|
+
} from "../../chunk/OJRG4ZAB.jsx";
|
|
7
7
|
import "../../chunk/P7WPLZNA.jsx";
|
|
8
8
|
export {
|
|
9
9
|
Dropdown_default as Dropdown,
|
|
10
10
|
DropdownItem_default as DropdownItem,
|
|
11
|
-
DropdownMenu_default as DropdownMenu
|
|
11
|
+
DropdownMenu_default as DropdownMenu,
|
|
12
|
+
DropdownTrigger_default as DropdownTrigger
|
|
12
13
|
};
|
|
@@ -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-X4gwIB-F.js';
|
|
2
|
+
export { a as InputProps } from '../../Input-X4gwIB-F.js';
|
|
3
3
|
import { Component } from 'solid-js';
|
|
4
4
|
import '../../classes-B_S9K-9I.js';
|
|
5
5
|
|
|
@@ -1,74 +1,36 @@
|
|
|
1
1
|
import { Component, JSX } from 'solid-js';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare const navbarStyles: {
|
|
5
|
-
(props?: (ConfigVariants<{
|
|
6
|
-
color: {
|
|
7
|
-
info: string;
|
|
8
|
-
primary: string;
|
|
9
|
-
success: string;
|
|
10
|
-
light: string;
|
|
11
|
-
};
|
|
12
|
-
}> & ClassProps) | undefined): string;
|
|
13
|
-
variantKeys: "color"[];
|
|
14
|
-
};
|
|
15
|
-
declare const navbarItemStyles: {
|
|
16
|
-
(props?: (ConfigVariants<{
|
|
17
|
-
active: {
|
|
18
|
-
true: string;
|
|
19
|
-
false: string;
|
|
20
|
-
};
|
|
21
|
-
tag: {
|
|
22
|
-
div: string;
|
|
23
|
-
a: string;
|
|
24
|
-
};
|
|
25
|
-
}> & ClassProps) | undefined): string;
|
|
26
|
-
variantKeys: ("active" | "tag")[];
|
|
27
|
-
};
|
|
28
|
-
declare const navbarDropdownStyles: {
|
|
29
|
-
(props?: (ConfigVariants<{
|
|
30
|
-
hoverable: {
|
|
31
|
-
true: string;
|
|
32
|
-
false: string;
|
|
33
|
-
};
|
|
34
|
-
}> & ClassProps) | undefined): string;
|
|
35
|
-
variantKeys: "hoverable"[];
|
|
36
|
-
};
|
|
37
|
-
declare const dropdownMenuStyles: {
|
|
38
|
-
(props?: (ConfigVariants<{
|
|
39
|
-
align: {
|
|
40
|
-
left: string;
|
|
41
|
-
right: string;
|
|
42
|
-
};
|
|
43
|
-
}> & ClassProps) | undefined): string;
|
|
44
|
-
variantKeys: "align"[];
|
|
45
|
-
};
|
|
2
|
+
import { a as ClassProps } from '../../classes-B_S9K-9I.js';
|
|
46
3
|
|
|
47
4
|
type NavbarProps = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
5
|
+
color?: "primary" | "info" | "success" | "danger" | "warning" | "light";
|
|
6
|
+
modelValue?: string;
|
|
7
|
+
spaced?: boolean;
|
|
8
|
+
shadow?: boolean;
|
|
9
|
+
transparent?: boolean;
|
|
10
|
+
fixedTop?: boolean;
|
|
11
|
+
fixedBottom?: boolean;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
onChange?: (val: string) => void;
|
|
14
|
+
};
|
|
53
15
|
declare const Navbar: Component<NavbarProps>;
|
|
54
16
|
|
|
17
|
+
type NavbarColor = "primary" | "info" | "success" | "danger" | "warning" | "light";
|
|
55
18
|
type NavbarItemProps = {
|
|
56
|
-
|
|
57
|
-
href?: string;
|
|
19
|
+
label: string;
|
|
58
20
|
tag?: "a" | "div";
|
|
59
|
-
|
|
60
|
-
className?: string;
|
|
21
|
+
href?: string;
|
|
61
22
|
children: JSX.Element;
|
|
62
|
-
|
|
23
|
+
color?: NavbarColor;
|
|
24
|
+
} & ClassProps;
|
|
63
25
|
declare const NavbarItem: Component<NavbarItemProps>;
|
|
64
26
|
|
|
65
27
|
type NavbarDropdownProps = {
|
|
66
28
|
label: string;
|
|
67
29
|
hoverable?: boolean;
|
|
68
30
|
align?: "left" | "right";
|
|
69
|
-
|
|
31
|
+
class?: string;
|
|
70
32
|
children: JSX.Element;
|
|
71
|
-
}
|
|
33
|
+
};
|
|
72
34
|
declare const NavbarDropdown: Component<NavbarDropdownProps>;
|
|
73
35
|
|
|
74
36
|
export { Navbar, NavbarDropdown, NavbarItem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Navbar_default as Navbar, NavbarDropdown_default as NavbarDropdown, NavbarItem_default as NavbarItem } from '../../chunk/
|
|
1
|
+
export { Navbar_default as Navbar, NavbarDropdown_default as NavbarDropdown, NavbarItem_default as NavbarItem } from '../../chunk/P653OZ5D.js';
|
|
@@ -20,7 +20,6 @@ type ElementOf<T> = T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMa
|
|
|
20
20
|
|
|
21
21
|
type PolymorphicButtonSharedProps<T extends ValidComponent = "button"> = {
|
|
22
22
|
ref: Ref<ElementOf<T>>;
|
|
23
|
-
type: string | undefined;
|
|
24
23
|
};
|
|
25
24
|
type PolymorphicButtonElementProps = PolymorphicButtonSharedProps & {
|
|
26
25
|
role: "button" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Polymorphic_default as Polymorphic, PolymorphicButton_default as PolymorphicButton } from '../../chunk/
|
|
1
|
+
export { Polymorphic_default as Polymorphic, PolymorphicButton_default as PolymorphicButton } from '../../chunk/SPEY5RMB.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Select } from '../../Select-
|
|
2
|
-
export { a as SelectProps } from '../../Select-
|
|
1
|
+
import { S as Select } from '../../Select-CP-TUHJv.js';
|
|
2
|
+
export { a as SelectProps } from '../../Select-CP-TUHJv.js';
|
|
3
3
|
import 'solid-js';
|
|
4
4
|
import '../../classes-B_S9K-9I.js';
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { switch_default as default } from '../../chunk/
|
|
1
|
+
export { switch_default as default } from '../../chunk/EE4HXMKA.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Tabs } from '../../Tabs-
|
|
2
|
-
export { a as TabsProps } from '../../Tabs-
|
|
1
|
+
import { T as Tabs } from '../../Tabs-BNR3p92D.js';
|
|
2
|
+
export { a as TabsProps } from '../../Tabs-BNR3p92D.js';
|
|
3
3
|
import 'solid-js';
|
|
4
4
|
import '../../classes-B_S9K-9I.js';
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { tooltip_default as default } from '../../chunk/
|
|
1
|
+
export { tooltip_default as default } from '../../chunk/OYAKKETQ.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { A as Avatar } from './Avatar-CzIirpVq.js';
|
|
2
2
|
export { B as Button } from './Button-B50OLXuV.js';
|
|
3
|
-
export { I as Input } from './Input-
|
|
3
|
+
export { I as Input } from './Input-X4gwIB-F.js';
|
|
4
4
|
export { T as Textarea } from './Textarea-Cpdk7m6S.js';
|
|
5
5
|
export { P as Progress } from './Progress-gN0xqhAF.js';
|
|
6
6
|
export { U as Upload } from './Upload-CRljD5jf.js';
|
|
7
|
-
export { A as Accordion } from './Accordion-
|
|
7
|
+
export { A as Accordion } from './Accordion-nwuRbRRw.js';
|
|
8
8
|
export { P as Pagination } from './Pagination-CJtlFMHy.js';
|
|
9
|
-
export { T as Tabs } from './Tabs-
|
|
9
|
+
export { T as Tabs } from './Tabs-BNR3p92D.js';
|
|
10
10
|
export { T as Tooltip } from './Tooltip-BfPongoz.js';
|
|
11
11
|
export { T as Tag } from './Tag-BPrhn-Ne.js';
|
|
12
|
-
export { S as Select } from './Select-
|
|
12
|
+
export { S as Select } from './Select-CP-TUHJv.js';
|
|
13
13
|
export { S as Switch } from './Switch-CW6QtO1Y.js';
|
|
14
14
|
export { C as Checkbox } from './Checkbox-CzeDsQLA.js';
|
|
15
15
|
export { Breadcrumb, BreadcrumbItem } from './components/breadcrumb/index.js';
|
|
16
|
-
export { A as Autocomplete } from './Autocomplete-
|
|
17
|
-
export { Dropdown, DropdownItem, DropdownMenu } from './components/dropdown/index.js';
|
|
16
|
+
export { A as Autocomplete } from './Autocomplete-BLKN_nG8.js';
|
|
17
|
+
export { Dropdown, DropdownItem, DropdownMenu, DropdownTrigger } from './components/dropdown/index.js';
|
|
18
18
|
export { F as Field } from './Field-DfUn85_1.js';
|
|
19
19
|
export { Menu, MenuItem, MenuList } from './components/menu/index.js';
|
|
20
20
|
export { Navbar, NavbarDropdown, NavbarItem } from './components/navbar/index.js';
|