@pathscale/ui 0.0.1 → 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-JZGWxBMK.d.ts +27 -0
- package/dist/Autocomplete-gLkjMHrc.d.ts +28 -0
- package/dist/Checkbox-BjaweaOH.d.ts +40 -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-CJtlFMHy.d.ts +43 -0
- package/dist/Progress-gN0xqhAF.d.ts +64 -0
- package/dist/Select-CWCDBvec.d.ts +44 -0
- package/dist/Steps-1miUeyCD.d.ts +34 -0
- package/dist/Switch-BiKX7HZ2.d.ts +72 -0
- package/dist/Table-CGa6Nop3.d.ts +39 -0
- package/dist/Tabs-BEnRV6GG.d.ts +42 -0
- package/dist/Tag-BPrhn-Ne.d.ts +42 -0
- package/dist/Timeline-Bd4SxHMT.d.ts +14 -0
- package/dist/Tooltip-BfPongoz.d.ts +53 -0
- package/dist/Upload-BrFuZ4JA.d.ts +39 -0
- package/dist/chunk/3IHANYRN.js +98 -0
- package/dist/chunk/3VOILEMN.js +187 -0
- package/dist/chunk/4TWLQ3IA.js +103 -0
- package/dist/chunk/6SBH3KSM.jsx +96 -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/CJZGTNJZ.js +115 -0
- package/dist/chunk/D2BEL4SM.jsx +169 -0
- package/dist/chunk/DBQ7IOPU.js +189 -0
- package/dist/chunk/DNTGSCVF.jsx +100 -0
- package/dist/chunk/DSTUGZW6.jsx +81 -0
- package/dist/chunk/ELRAUORW.jsx +179 -0
- package/dist/chunk/FKSQPGOD.jsx +170 -0
- package/dist/chunk/FPUQ25SO.js +137 -0
- package/dist/chunk/GLEAR2TS.jsx +160 -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/KV6LTJHI.jsx +175 -0
- package/dist/chunk/LAQPAV5I.jsx +187 -0
- package/dist/chunk/LI3HCFL7.jsx +132 -0
- package/dist/chunk/MAX47D6F.js +99 -0
- package/dist/chunk/{2JGZSAW5.js → MI773TMC.js} +6 -6
- package/dist/chunk/MMTAND25.jsx +126 -0
- package/dist/chunk/MXG3MBEN.jsx +148 -0
- package/dist/chunk/MYERRMTM.js +200 -0
- package/dist/chunk/NZKPDBTE.js +118 -0
- package/dist/chunk/OSJ3P7PI.js +189 -0
- package/dist/chunk/P2L6LFLS.js +144 -0
- package/dist/chunk/QLESLIWS.jsx +110 -0
- package/dist/chunk/QONDPQ2I.jsx +105 -0
- package/dist/chunk/QYEMOKUG.js +125 -0
- package/dist/chunk/S3ZDSQSV.js +98 -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/V6Y5E7BL.js +133 -0
- package/dist/chunk/VN5BKHA2.jsx +97 -0
- package/dist/chunk/WOT36Q7O.js +166 -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 -39
- package/dist/components/Progress/index.js +1 -278
- package/dist/components/Progress/index.jsx +4 -199
- package/dist/components/accordion/index.d.ts +5 -24
- package/dist/components/accordion/index.js +1 -118
- package/dist/components/accordion/index.jsx +3 -100
- 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/breadcrumb/index.d.ts +2 -2
- package/dist/components/breadcrumb/index.js +1 -133
- package/dist/components/breadcrumb/index.jsx +4 -120
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.jsx +2 -1
- package/dist/components/checkbox/index.d.ts +5 -37
- package/dist/components/checkbox/index.js +1 -137
- package/dist/components/checkbox/index.jsx +3 -143
- 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 +5 -40
- package/dist/components/pagination/index.js +1 -189
- package/dist/components/pagination/index.jsx +3 -174
- package/dist/components/select/index.d.ts +5 -41
- package/dist/components/select/index.js +1 -98
- package/dist/components/select/index.jsx +3 -91
- 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 +5 -69
- package/dist/components/switch/index.js +1 -144
- package/dist/components/switch/index.jsx +3 -155
- 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 +5 -39
- package/dist/components/tabs/index.js +1 -166
- package/dist/components/tabs/index.jsx +3 -170
- package/dist/components/tag/index.d.ts +5 -39
- package/dist/components/tag/index.js +1 -115
- package/dist/components/tag/index.jsx +3 -127
- 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/components/tooltip/index.d.ts +5 -50
- package/dist/components/tooltip/index.js +1 -103
- package/dist/components/tooltip/index.jsx +3 -95
- package/dist/components/upload/index.d.ts +5 -36
- package/dist/components/upload/index.js +1 -98
- package/dist/components/upload/index.jsx +3 -105
- package/dist/index.d.ts +22 -2
- package/dist/index.js +23 -2
- package/dist/index.jsx +108 -8
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
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 accordionContainerVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
expanded: {
|
|
7
|
+
true: string;
|
|
8
|
+
false: string;
|
|
9
|
+
};
|
|
10
|
+
disabled: {
|
|
11
|
+
true: string;
|
|
12
|
+
false: string;
|
|
13
|
+
};
|
|
14
|
+
}> & ClassProps) | undefined): string;
|
|
15
|
+
variantKeys: ("expanded" | "disabled")[];
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type AccordionProps = {
|
|
19
|
+
expanded?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
headerIsTrigger?: boolean;
|
|
22
|
+
header: JSX.Element;
|
|
23
|
+
content: JSX.Element;
|
|
24
|
+
} & VariantProps<typeof accordionContainerVariants> & JSX.HTMLAttributes<HTMLDivElement>;
|
|
25
|
+
declare const Accordion: Component<AccordionProps>;
|
|
26
|
+
|
|
27
|
+
export { Accordion as A, type AccordionProps as a };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component } from 'solid-js';
|
|
2
|
+
import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
|
|
3
|
+
|
|
4
|
+
declare const inputBoxClass: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
state: {
|
|
7
|
+
default: string;
|
|
8
|
+
disabled: string;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
};
|
|
15
|
+
}> & ClassProps) | undefined): string;
|
|
16
|
+
variantKeys: ("size" | "state")[];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
type AutocompleteProps = {
|
|
20
|
+
items: Array<string | number>;
|
|
21
|
+
label?: string;
|
|
22
|
+
value?: string | number;
|
|
23
|
+
onChange?: (val: string | number) => void;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
} & VariantProps<typeof inputBoxClass>;
|
|
26
|
+
declare const Autocomplete: Component<AutocompleteProps>;
|
|
27
|
+
|
|
28
|
+
export { Autocomplete as A, type AutocompleteProps as a };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Component, ComponentProps, 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 checkboxVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
size: {
|
|
7
|
+
sm: string;
|
|
8
|
+
md: string;
|
|
9
|
+
lg: string;
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
primary: string;
|
|
13
|
+
success: string;
|
|
14
|
+
warning: string;
|
|
15
|
+
danger: string;
|
|
16
|
+
};
|
|
17
|
+
checked: {
|
|
18
|
+
true: string;
|
|
19
|
+
false: string;
|
|
20
|
+
};
|
|
21
|
+
indeterminate: {
|
|
22
|
+
true: string;
|
|
23
|
+
false: string;
|
|
24
|
+
};
|
|
25
|
+
}> & ClassProps) | undefined): string;
|
|
26
|
+
variantKeys: ("size" | "color" | "checked" | "indeterminate")[];
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
type CheckboxProps = VariantProps<typeof checkboxVariants> & ClassProps & Omit<ComponentProps<"input">, "onChange" | "onFocus" | "onBlur"> & {
|
|
30
|
+
indeterminate?: boolean;
|
|
31
|
+
label?: JSX.Element;
|
|
32
|
+
onChange?: JSX.EventHandlerUnion<HTMLInputElement, Event>;
|
|
33
|
+
onFocus?: JSX.EventHandlerUnion<HTMLInputElement, FocusEvent>;
|
|
34
|
+
onBlur?: JSX.EventHandlerUnion<HTMLInputElement, FocusEvent>;
|
|
35
|
+
"aria-label"?: string;
|
|
36
|
+
"aria-describedby"?: string;
|
|
37
|
+
};
|
|
38
|
+
declare const Checkbox: Component<CheckboxProps>;
|
|
39
|
+
|
|
40
|
+
export { Checkbox as C, type CheckboxProps as a };
|
|
@@ -0,0 +1,49 @@
|
|
|
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 fieldWrapper: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
horizontal: {
|
|
7
|
+
true: string;
|
|
8
|
+
false: string;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
};
|
|
15
|
+
type: {
|
|
16
|
+
default: string;
|
|
17
|
+
danger: string;
|
|
18
|
+
};
|
|
19
|
+
grouped: {
|
|
20
|
+
true: string;
|
|
21
|
+
false: string;
|
|
22
|
+
};
|
|
23
|
+
groupMultiline: {
|
|
24
|
+
true: string;
|
|
25
|
+
false: string;
|
|
26
|
+
};
|
|
27
|
+
}> & ClassProps) | undefined): string;
|
|
28
|
+
variantKeys: ("size" | "horizontal" | "type" | "grouped" | "groupMultiline")[];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
type FieldProps = {
|
|
32
|
+
/** Label text */
|
|
33
|
+
label?: string;
|
|
34
|
+
/** Helper or error message */
|
|
35
|
+
message?: string;
|
|
36
|
+
/** Visual intent */
|
|
37
|
+
type?: "default" | "danger";
|
|
38
|
+
/** Layout direction */
|
|
39
|
+
horizontal?: boolean;
|
|
40
|
+
/** Font/control size */
|
|
41
|
+
size?: "sm" | "md" | "lg";
|
|
42
|
+
/** Extra wrapper classes */
|
|
43
|
+
className?: string;
|
|
44
|
+
} & VariantProps<typeof fieldWrapper> & ClassProps & Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
45
|
+
children: JSX.Element;
|
|
46
|
+
};
|
|
47
|
+
declare const Field: Component<FieldProps>;
|
|
48
|
+
|
|
49
|
+
export { Field as F };
|
|
@@ -21,7 +21,7 @@ declare const inputVariants: {
|
|
|
21
21
|
false: string;
|
|
22
22
|
};
|
|
23
23
|
}> & ClassProps) | undefined): string;
|
|
24
|
-
variantKeys: ("
|
|
24
|
+
variantKeys: ("expanded" | "rounded" | "loading" | "color")[];
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
type InputProps = Partial<VariantProps<typeof inputVariants> & ClassProps & ComponentProps<"input">> & {
|
|
@@ -0,0 +1,43 @@
|
|
|
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 paginationItemVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
active: {
|
|
7
|
+
true: string;
|
|
8
|
+
false: string;
|
|
9
|
+
};
|
|
10
|
+
rounded: {
|
|
11
|
+
true: string;
|
|
12
|
+
false: string;
|
|
13
|
+
};
|
|
14
|
+
simple: {
|
|
15
|
+
true: string;
|
|
16
|
+
false: string;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
sm: string;
|
|
20
|
+
md: string;
|
|
21
|
+
lg: string;
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
true: string;
|
|
25
|
+
false: string;
|
|
26
|
+
};
|
|
27
|
+
}> & ClassProps) | undefined): string;
|
|
28
|
+
variantKeys: ("disabled" | "size" | "rounded" | "active" | "simple")[];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
type PaginationProps = {
|
|
32
|
+
total: number;
|
|
33
|
+
perPage?: number;
|
|
34
|
+
current: number;
|
|
35
|
+
onChange: (page: number) => void;
|
|
36
|
+
rangeBefore?: number;
|
|
37
|
+
rangeAfter?: number;
|
|
38
|
+
simple?: boolean;
|
|
39
|
+
children?: JSX.Element;
|
|
40
|
+
} & VariantProps<typeof paginationItemVariants> & JSX.HTMLAttributes<HTMLElement>;
|
|
41
|
+
declare const Pagination: Component<PaginationProps>;
|
|
42
|
+
|
|
43
|
+
export { Pagination as P, type PaginationProps as a };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Component, ComponentProps } from 'solid-js';
|
|
2
|
+
import { C as ConfigVariants, a as ClassProps, V as VariantProps } from './classes-B_S9K-9I.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The outer flex container. We don’t apply shape or variant here any more —
|
|
6
|
+
* that all goes on the actual track (`progressWrapper`).
|
|
7
|
+
*/
|
|
8
|
+
declare const progressContainer: {
|
|
9
|
+
(props?: (ConfigVariants<{
|
|
10
|
+
size: {
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
};
|
|
15
|
+
}> & ClassProps) | undefined): string;
|
|
16
|
+
variantKeys: "size"[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The “track” itself: background, height, pill‐shape.
|
|
20
|
+
*/
|
|
21
|
+
declare const progressWrapper: {
|
|
22
|
+
(props?: (ConfigVariants<{
|
|
23
|
+
size: {
|
|
24
|
+
sm: string;
|
|
25
|
+
md: string;
|
|
26
|
+
lg: string;
|
|
27
|
+
};
|
|
28
|
+
shape: {
|
|
29
|
+
rounded: string;
|
|
30
|
+
circle: string;
|
|
31
|
+
};
|
|
32
|
+
}> & ClassProps) | undefined): string;
|
|
33
|
+
variantKeys: ("size" | "shape")[];
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The colored fill bar.
|
|
37
|
+
*/
|
|
38
|
+
declare const progressFill: {
|
|
39
|
+
(props?: (ConfigVariants<{
|
|
40
|
+
color: {
|
|
41
|
+
default: string;
|
|
42
|
+
danger: string;
|
|
43
|
+
success: string;
|
|
44
|
+
info: string;
|
|
45
|
+
warning: string;
|
|
46
|
+
};
|
|
47
|
+
variant: {
|
|
48
|
+
filled: string;
|
|
49
|
+
outlined: string;
|
|
50
|
+
ghost: string;
|
|
51
|
+
};
|
|
52
|
+
}> & ClassProps) | undefined): string;
|
|
53
|
+
variantKeys: ("variant" | "color")[];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
interface ProgressProps extends VariantProps<typeof progressContainer>, VariantProps<typeof progressWrapper>, VariantProps<typeof progressFill>, Omit<ComponentProps<"div">, "class" | "color"> {
|
|
57
|
+
value?: number | null;
|
|
58
|
+
showValue?: boolean;
|
|
59
|
+
format?: "percent" | "raw";
|
|
60
|
+
className?: string;
|
|
61
|
+
}
|
|
62
|
+
declare const Progress: Component<ProgressProps>;
|
|
63
|
+
|
|
64
|
+
export { Progress as P };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Component, ComponentProps, 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 selectVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
size: {
|
|
7
|
+
sm: string;
|
|
8
|
+
md: string;
|
|
9
|
+
lg: string;
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
primary: string;
|
|
13
|
+
info: string;
|
|
14
|
+
success: string;
|
|
15
|
+
warning: string;
|
|
16
|
+
danger: string;
|
|
17
|
+
};
|
|
18
|
+
loading: {
|
|
19
|
+
true: string;
|
|
20
|
+
false: string;
|
|
21
|
+
};
|
|
22
|
+
expanded: {
|
|
23
|
+
true: string;
|
|
24
|
+
false: string;
|
|
25
|
+
};
|
|
26
|
+
rounded: {
|
|
27
|
+
true: string;
|
|
28
|
+
false: string;
|
|
29
|
+
};
|
|
30
|
+
}> & ClassProps) | undefined): string;
|
|
31
|
+
variantKeys: ("expanded" | "size" | "rounded" | "loading" | "color")[];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type SelectProps = VariantProps<typeof selectVariants> & ClassProps & ComponentProps<"select"> & {
|
|
35
|
+
placeholder?: string;
|
|
36
|
+
nativeSize?: string | number;
|
|
37
|
+
value?: string | number | null;
|
|
38
|
+
onChange?: JSX.EventHandlerUnion<HTMLSelectElement, Event>;
|
|
39
|
+
onFocus?: JSX.EventHandlerUnion<HTMLSelectElement, FocusEvent>;
|
|
40
|
+
onBlur?: JSX.EventHandlerUnion<HTMLSelectElement, FocusEvent>;
|
|
41
|
+
};
|
|
42
|
+
declare const Select: Component<SelectProps>;
|
|
43
|
+
|
|
44
|
+
export { Select as S, type SelectProps as a };
|
|
@@ -0,0 +1,34 @@
|
|
|
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 stepsContainer: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
animated: {
|
|
7
|
+
true: string;
|
|
8
|
+
false: string;
|
|
9
|
+
};
|
|
10
|
+
}> & ClassProps) | undefined): string;
|
|
11
|
+
variantKeys: "animated"[];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
type StepItem = {
|
|
15
|
+
title: string;
|
|
16
|
+
marker?: string;
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
clickable?: boolean;
|
|
19
|
+
content: JSX.Element;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
type StepsProps = {
|
|
23
|
+
steps: StepItem[];
|
|
24
|
+
animated?: boolean;
|
|
25
|
+
initial?: number;
|
|
26
|
+
/** Controlled active index */
|
|
27
|
+
value?: number;
|
|
28
|
+
/** Fired on step change */
|
|
29
|
+
onStepChange?: (stepIndex: number) => void;
|
|
30
|
+
className?: string;
|
|
31
|
+
} & VariantProps<typeof stepsContainer>;
|
|
32
|
+
declare const Steps: Component<StepsProps>;
|
|
33
|
+
|
|
34
|
+
export { Steps as S, type StepItem as a };
|
|
@@ -0,0 +1,72 @@
|
|
|
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 switchVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
size: {
|
|
7
|
+
sm: string;
|
|
8
|
+
md: string;
|
|
9
|
+
lg: string;
|
|
10
|
+
};
|
|
11
|
+
disabled: {
|
|
12
|
+
true: string;
|
|
13
|
+
false: string;
|
|
14
|
+
};
|
|
15
|
+
rounded: {
|
|
16
|
+
true: string;
|
|
17
|
+
false: string;
|
|
18
|
+
};
|
|
19
|
+
outlined: {
|
|
20
|
+
true: string;
|
|
21
|
+
false: string;
|
|
22
|
+
};
|
|
23
|
+
}> & ClassProps) | undefined): string;
|
|
24
|
+
variantKeys: ("disabled" | "size" | "rounded" | "outlined")[];
|
|
25
|
+
};
|
|
26
|
+
declare const checkVariants: {
|
|
27
|
+
(props?: (ConfigVariants<{
|
|
28
|
+
size: {
|
|
29
|
+
sm: string;
|
|
30
|
+
md: string;
|
|
31
|
+
lg: string;
|
|
32
|
+
};
|
|
33
|
+
color: {
|
|
34
|
+
blue: string;
|
|
35
|
+
green: string;
|
|
36
|
+
red: string;
|
|
37
|
+
yellow: string;
|
|
38
|
+
gray: string;
|
|
39
|
+
};
|
|
40
|
+
passiveColor: {
|
|
41
|
+
blue: string;
|
|
42
|
+
green: string;
|
|
43
|
+
red: string;
|
|
44
|
+
yellow: string;
|
|
45
|
+
gray: string;
|
|
46
|
+
};
|
|
47
|
+
rounded: {
|
|
48
|
+
true: string;
|
|
49
|
+
false: string;
|
|
50
|
+
};
|
|
51
|
+
outlined: {
|
|
52
|
+
true: string;
|
|
53
|
+
false: string;
|
|
54
|
+
};
|
|
55
|
+
}> & ClassProps) | undefined): string;
|
|
56
|
+
variantKeys: ("size" | "rounded" | "outlined" | "color" | "passiveColor")[];
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
type SwitchProps = {
|
|
60
|
+
children?: JSX.Element;
|
|
61
|
+
checked?: boolean;
|
|
62
|
+
defaultChecked?: boolean;
|
|
63
|
+
onChange?: (checked: boolean) => void;
|
|
64
|
+
name?: string;
|
|
65
|
+
required?: boolean;
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
"aria-label"?: string;
|
|
68
|
+
"aria-describedby"?: string;
|
|
69
|
+
} & VariantProps<typeof switchVariants> & VariantProps<typeof checkVariants> & Omit<JSX.InputHTMLAttributes<HTMLInputElement>, "onChange">;
|
|
70
|
+
declare const Switch: Component<SwitchProps>;
|
|
71
|
+
|
|
72
|
+
export { Switch as S, type SwitchProps as a };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { 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 tableVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
header: {
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
row: {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
cell: {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
divider: {
|
|
16
|
+
on: string;
|
|
17
|
+
off: string;
|
|
18
|
+
};
|
|
19
|
+
}> & ClassProps) | undefined): string;
|
|
20
|
+
variantKeys: ("header" | "cell" | "row" | "divider")[];
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
type Column<Row> = {
|
|
24
|
+
key: keyof Row;
|
|
25
|
+
header: string;
|
|
26
|
+
sortable?: boolean;
|
|
27
|
+
};
|
|
28
|
+
type TableProps<Row> = {
|
|
29
|
+
columns: Column<Row>[];
|
|
30
|
+
rows: Row[];
|
|
31
|
+
className?: string;
|
|
32
|
+
rowKey: (row: Row) => string | number;
|
|
33
|
+
onSelectionChange?: (selectedKeys: Array<string | number>) => void;
|
|
34
|
+
renderDetail?: (row: Row) => JSX.Element;
|
|
35
|
+
onSort?: (key: keyof Row, direction: "asc" | "desc") => void;
|
|
36
|
+
} & VariantProps<typeof tableVariants> & ComponentProps<"table">;
|
|
37
|
+
declare const Table: <Row extends Record<string, any>>(props: TableProps<Row>) => JSX.Element;
|
|
38
|
+
|
|
39
|
+
export { type Column as C, Table as T, type TableProps as a };
|
|
@@ -0,0 +1,42 @@
|
|
|
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 tabsNavVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
type: {
|
|
7
|
+
basic: string;
|
|
8
|
+
boxed: string;
|
|
9
|
+
toggle: string;
|
|
10
|
+
"toggle-rounded": string;
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
sm: string;
|
|
14
|
+
md: string;
|
|
15
|
+
lg: string;
|
|
16
|
+
};
|
|
17
|
+
alignment: {
|
|
18
|
+
left: string;
|
|
19
|
+
center: string;
|
|
20
|
+
right: string;
|
|
21
|
+
};
|
|
22
|
+
expanded: {
|
|
23
|
+
true: string;
|
|
24
|
+
false: string;
|
|
25
|
+
};
|
|
26
|
+
}> & ClassProps) | undefined): string;
|
|
27
|
+
variantKeys: ("expanded" | "size" | "type" | "alignment")[];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type TabItem = {
|
|
31
|
+
label: string;
|
|
32
|
+
content: JSX.Element;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
};
|
|
35
|
+
type TabsProps = {
|
|
36
|
+
items: TabItem[];
|
|
37
|
+
value?: number;
|
|
38
|
+
onChange?: (index: number) => void;
|
|
39
|
+
} & VariantProps<typeof tabsNavVariants>;
|
|
40
|
+
declare const Tabs: Component<TabsProps>;
|
|
41
|
+
|
|
42
|
+
export { Tabs as T, type TabsProps as a };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Component, ComponentProps, 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 tagVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
size: {
|
|
7
|
+
normal: string;
|
|
8
|
+
medium: string;
|
|
9
|
+
large: string;
|
|
10
|
+
};
|
|
11
|
+
type: {
|
|
12
|
+
primary: string;
|
|
13
|
+
info: string;
|
|
14
|
+
success: string;
|
|
15
|
+
warning: string;
|
|
16
|
+
danger: string;
|
|
17
|
+
dark: string;
|
|
18
|
+
light: string;
|
|
19
|
+
};
|
|
20
|
+
rounded: {
|
|
21
|
+
true: string;
|
|
22
|
+
false: string;
|
|
23
|
+
};
|
|
24
|
+
closable: {
|
|
25
|
+
true: string;
|
|
26
|
+
false: string;
|
|
27
|
+
};
|
|
28
|
+
}> & ClassProps) | undefined): string;
|
|
29
|
+
variantKeys: ("size" | "rounded" | "type" | "closable")[];
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
type TagProps = VariantProps<typeof tagVariants> & ClassProps & ComponentProps<"span"> & {
|
|
33
|
+
closable?: boolean;
|
|
34
|
+
attached?: boolean;
|
|
35
|
+
ariaCloseLabel?: string;
|
|
36
|
+
onClose?: (e: MouseEvent) => void;
|
|
37
|
+
closeIcon?: JSX.Element;
|
|
38
|
+
children?: JSX.Element;
|
|
39
|
+
};
|
|
40
|
+
declare const Tag: Component<TagProps>;
|
|
41
|
+
|
|
42
|
+
export { Tag as T, type TagProps as a };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component, JSX } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
type TimelineStage = {
|
|
4
|
+
active?: boolean;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
type TimelineProps<T = TimelineStage> = {
|
|
9
|
+
stages: T[];
|
|
10
|
+
renderStage?: (stage: T, index: number) => JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
declare const Timeline: Component<TimelineProps>;
|
|
13
|
+
|
|
14
|
+
export { Timeline as T, type TimelineProps as a };
|
|
@@ -0,0 +1,53 @@
|
|
|
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 tooltipVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
type: {
|
|
7
|
+
info: string;
|
|
8
|
+
success: string;
|
|
9
|
+
warning: string;
|
|
10
|
+
danger: string;
|
|
11
|
+
primary: string;
|
|
12
|
+
gray: string;
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
sm: string;
|
|
16
|
+
md: string;
|
|
17
|
+
lg: string;
|
|
18
|
+
};
|
|
19
|
+
rounded: {
|
|
20
|
+
true: string;
|
|
21
|
+
false: string;
|
|
22
|
+
};
|
|
23
|
+
dashed: {
|
|
24
|
+
true: string;
|
|
25
|
+
false: string;
|
|
26
|
+
};
|
|
27
|
+
multilined: {
|
|
28
|
+
true: string;
|
|
29
|
+
false: string;
|
|
30
|
+
};
|
|
31
|
+
animated: {
|
|
32
|
+
true: string;
|
|
33
|
+
false: string;
|
|
34
|
+
};
|
|
35
|
+
position: {
|
|
36
|
+
top: string;
|
|
37
|
+
bottom: string;
|
|
38
|
+
left: string;
|
|
39
|
+
right: string;
|
|
40
|
+
};
|
|
41
|
+
}> & ClassProps) | undefined): string;
|
|
42
|
+
variantKeys: ("size" | "rounded" | "type" | "dashed" | "multilined" | "animated" | "position")[];
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
type TooltipProps = {
|
|
46
|
+
label: string;
|
|
47
|
+
delay?: number;
|
|
48
|
+
always?: boolean;
|
|
49
|
+
children?: JSX.Element;
|
|
50
|
+
} & VariantProps<typeof tooltipVariants> & JSX.HTMLAttributes<HTMLSpanElement>;
|
|
51
|
+
declare const Tooltip: Component<TooltipProps>;
|
|
52
|
+
|
|
53
|
+
export { Tooltip as T, type TooltipProps as a };
|
|
@@ -0,0 +1,39 @@
|
|
|
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 uploadWrapperVariants: {
|
|
5
|
+
(props?: (ConfigVariants<{
|
|
6
|
+
style: {
|
|
7
|
+
boxed: string;
|
|
8
|
+
button: string;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
primary: string;
|
|
12
|
+
success: string;
|
|
13
|
+
info: string;
|
|
14
|
+
warning: string;
|
|
15
|
+
danger: string;
|
|
16
|
+
gray: string;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
sm: string;
|
|
20
|
+
md: string;
|
|
21
|
+
lg: string;
|
|
22
|
+
};
|
|
23
|
+
}> & ClassProps) | undefined): string;
|
|
24
|
+
variantKeys: ("size" | "style" | "color")[];
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
type UploadProps = {
|
|
28
|
+
icon?: JSX.Element;
|
|
29
|
+
label?: string;
|
|
30
|
+
multiple?: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
accept?: string;
|
|
33
|
+
dragDrop?: boolean;
|
|
34
|
+
name?: string;
|
|
35
|
+
onChange?: (files: File | File[]) => void;
|
|
36
|
+
} & VariantProps<typeof uploadWrapperVariants> & JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
37
|
+
declare const Upload: Component<UploadProps>;
|
|
38
|
+
|
|
39
|
+
export { Upload as U, type UploadProps as a };
|