@pathscale/ui 0.0.11 → 0.0.12
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 +53 -0
- package/dist/{Autocomplete-BLKN_nG8.d.ts → Autocomplete-gLkjMHrc.d.ts} +1 -1
- package/dist/Avatar-Dkd_kPlV.d.ts +40 -0
- package/dist/CollapseTitle-BNxog3is.d.ts +12 -0
- package/dist/{Field-DfUn85_1.d.ts → Field-DI2PA30N.d.ts} +1 -1
- package/dist/Mask-CPb596Mg.d.ts +16 -0
- package/dist/Menu-DgO4SHmA.d.ts +45 -0
- package/dist/{Progress-gN0xqhAF.d.ts → Progress-ChF4ior8.d.ts} +2 -2
- package/dist/Steps-Dk-UPL6r.d.ts +38 -0
- package/dist/{Tabs-BNR3p92D.d.ts → Tabs-WiUU0xsM.d.ts} +1 -1
- package/dist/chunk/2OJYONJ3.js +40 -0
- package/dist/chunk/2VQ2762Z.js +80 -0
- package/dist/chunk/2XPPNBYK.js +164 -0
- package/dist/chunk/3I23P4TJ.js +33 -0
- package/dist/chunk/5HG7XWVC.jsx +2956 -0
- package/dist/chunk/5IJ7WEIF.js +43 -0
- package/dist/chunk/5O6WC3OB.jsx +67 -0
- package/dist/chunk/6P5JIKPF.jsx +51 -0
- package/dist/chunk/BHLLVOVR.js +46 -0
- package/dist/chunk/DJI5XKAV.js +31 -0
- package/dist/chunk/DN3P54J2.jsx +43 -0
- package/dist/chunk/DVFQAAZR.js +43 -0
- package/dist/chunk/EDDBK4J6.js +42 -0
- package/dist/chunk/FZRQDGPD.jsx +54 -0
- package/dist/chunk/G5UEZ2VC.js +49 -0
- package/dist/chunk/GL7JG772.js +114 -0
- package/dist/chunk/HEOKGP5U.js +55 -0
- package/dist/chunk/HUHXQCKK.js +16 -0
- package/dist/chunk/I36LHZUY.jsx +31 -0
- package/dist/chunk/IG323YKF.jsx +50 -0
- package/dist/chunk/JQ4HSRDP.js +142 -0
- package/dist/chunk/JSQBKK7L.jsx +50 -0
- package/dist/chunk/K3WO7SRD.js +1 -0
- package/dist/chunk/KQ3RAWCE.jsx +57 -0
- package/dist/chunk/KXJZKDJX.jsx +0 -0
- package/dist/chunk/L4A67X7S.js +7 -0
- package/dist/chunk/LGDDR242.jsx +159 -0
- package/dist/chunk/MM2DZQL3.js +46 -0
- package/dist/chunk/MZWBWFDD.js +151 -0
- package/dist/chunk/O7LDJCQS.jsx +18 -0
- package/dist/chunk/Q4442PU4.js +42 -0
- package/dist/chunk/R5G3PODL.jsx +11 -0
- package/dist/chunk/R6ZBT7CY.jsx +55 -0
- package/dist/chunk/RHEFVSMJ.jsx +52 -0
- package/dist/chunk/STFCLC5R.js +2954 -0
- package/dist/chunk/SVJIYMYJ.jsx +156 -0
- package/dist/chunk/SYWB4UN3.jsx +64 -0
- package/dist/chunk/UNKDNDT3.js +62 -0
- package/dist/chunk/XM3KF5LV.jsx +179 -0
- package/dist/chunk/XQCSYRVP.jsx +168 -0
- package/dist/chunk/YWIT2MRI.jsx +43 -0
- package/dist/chunk/ZYEP35R3.jsx +60 -0
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +17 -5
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +6 -4
- package/dist/components/autocomplete/index.d.ts +2 -2
- package/dist/components/avatar/index.d.ts +4 -4
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +3 -2
- package/dist/components/badge/index.d.ts +17 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/index.jsx +8 -0
- package/dist/components/breadcrumbs/index.d.ts +9 -0
- package/dist/components/breadcrumbs/index.js +1 -0
- package/dist/components/breadcrumbs/index.jsx +7 -0
- package/dist/components/button/index.d.ts +28 -6
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.jsx +5 -5
- package/dist/components/checkbox/index.d.ts +13 -5
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +5 -4
- package/dist/components/collapse/index.d.ts +15 -0
- package/dist/components/collapse/index.js +1 -0
- package/dist/components/collapse/index.jsx +14 -0
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/fileinput/index.d.ts +16 -0
- package/dist/components/fileinput/index.js +1 -0
- package/dist/components/fileinput/index.jsx +8 -0
- package/dist/components/input/index.d.ts +13 -8
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/index.jsx +5 -6
- package/dist/components/join/index.d.ts +11 -0
- package/dist/components/join/index.js +1 -0
- package/dist/components/join/index.jsx +9 -0
- package/dist/components/mask/index.d.ts +7 -0
- package/dist/components/mask/index.js +1 -0
- package/dist/components/mask/index.jsx +8 -0
- package/dist/components/menu/index.d.ts +6 -64
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +4 -7
- package/dist/components/pagination/index.d.ts +6 -6
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +6 -4
- package/dist/components/polymorphic/index.d.ts +1 -1
- package/dist/components/select/index.d.ts +12 -5
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +5 -4
- package/dist/components/steps/index.d.ts +3 -4
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +3 -2
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/textarea/index.d.ts +12 -5
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/index.jsx +5 -4
- package/dist/components/toggle/index.d.ts +15 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle/index.jsx +8 -0
- package/dist/components/tooltip/index.d.ts +14 -5
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +5 -4
- package/dist/index.d.ts +24 -19
- package/dist/index.js +23 -20
- package/dist/index.jsx +81 -66
- package/dist/types-CUG9pToa.d.ts +15 -0
- package/package.json +4 -2
- package/dist/Accordion-nwuRbRRw.d.ts +0 -27
- package/dist/Avatar-CzIirpVq.d.ts +0 -33
- package/dist/Button-B50OLXuV.d.ts +0 -63
- package/dist/Checkbox-CzeDsQLA.d.ts +0 -32
- package/dist/Input-X4gwIB-F.d.ts +0 -42
- package/dist/Pagination-CJtlFMHy.d.ts +0 -43
- package/dist/Select-CP-TUHJv.d.ts +0 -44
- package/dist/Steps-1miUeyCD.d.ts +0 -34
- package/dist/Switch-CW6QtO1Y.d.ts +0 -76
- package/dist/Tag-BPrhn-Ne.d.ts +0 -42
- package/dist/Textarea-Cpdk7m6S.d.ts +0 -37
- package/dist/Tooltip-BfPongoz.d.ts +0 -53
- package/dist/Upload-CRljD5jf.d.ts +0 -39
- package/dist/chunk/3VOILEMN.js +0 -187
- package/dist/chunk/C4745OZS.jsx +0 -101
- package/dist/chunk/CJZGTNJZ.js +0 -115
- package/dist/chunk/DBQ7IOPU.js +0 -189
- package/dist/chunk/EB7KXR65.js +0 -102
- package/dist/chunk/EE4HXMKA.js +0 -165
- package/dist/chunk/ELRAUORW.jsx +0 -179
- package/dist/chunk/F33TSIEQ.jsx +0 -181
- package/dist/chunk/GWFGP2JQ.jsx +0 -179
- package/dist/chunk/LAQPAV5I.jsx +0 -187
- package/dist/chunk/LI3HCFL7.jsx +0 -132
- package/dist/chunk/LMPV5G35.jsx +0 -228
- package/dist/chunk/MI773TMC.js +0 -107
- package/dist/chunk/MMTAND25.jsx +0 -126
- package/dist/chunk/NZKPDBTE.js +0 -118
- package/dist/chunk/O2IMHWMY.js +0 -159
- package/dist/chunk/OMRJVDZV.js +0 -173
- package/dist/chunk/OYAKKETQ.js +0 -111
- package/dist/chunk/PF47YREI.js +0 -214
- package/dist/chunk/PNPC2OI3.jsx +0 -156
- package/dist/chunk/QHJOIUYT.jsx +0 -117
- package/dist/chunk/QONDPQ2I.jsx +0 -105
- package/dist/chunk/R6COBCN7.jsx +0 -100
- package/dist/chunk/T7IZ26YC.jsx +0 -194
- package/dist/chunk/TT2JYGLU.js +0 -218
- package/dist/chunk/V6Y5E7BL.js +0 -133
- package/dist/chunk/WB6NEEQV.jsx +0 -107
- package/dist/chunk/WYHYWDOM.js +0 -164
- package/dist/chunk/XD34JKSU.jsx +0 -201
- package/dist/chunk/YDEDUOFM.js +0 -102
- package/dist/components/breadcrumb/index.d.ts +0 -47
- package/dist/components/breadcrumb/index.js +0 -1
- package/dist/components/breadcrumb/index.jsx +0 -9
- package/dist/components/switch/index.d.ts +0 -8
- package/dist/components/switch/index.js +0 -1
- package/dist/components/switch/index.jsx +0 -7
- package/dist/components/tag/index.d.ts +0 -8
- package/dist/components/tag/index.js +0 -1
- package/dist/components/tag/index.jsx +0 -7
- package/dist/components/upload/index.d.ts +0 -8
- package/dist/components/upload/index.js +0 -1
- package/dist/components/upload/index.jsx +0 -7
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
}> & ClassProps) | undefined): string;
|
|
18
|
-
variantKeys: ("size" | "color")[];
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
type CheckboxProps = VariantProps<typeof checkboxVariants> & ClassProps & Omit<ComponentProps<"input">, "onChange" | "onFocus" | "onBlur"> & {
|
|
22
|
-
indeterminate?: boolean;
|
|
23
|
-
defaultChecked?: boolean;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
label?: JSX.Element;
|
|
26
|
-
onChange?: JSX.EventHandlerUnion<HTMLInputElement, Event>;
|
|
27
|
-
onFocus?: JSX.EventHandlerUnion<HTMLInputElement, FocusEvent>;
|
|
28
|
-
onBlur?: JSX.EventHandlerUnion<HTMLInputElement, FocusEvent>;
|
|
29
|
-
};
|
|
30
|
-
declare const Checkbox: Component<CheckboxProps>;
|
|
31
|
-
|
|
32
|
-
export { Checkbox as C, type CheckboxProps as a };
|
package/dist/Input-X4gwIB-F.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { 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 inputVariants: {
|
|
5
|
-
(props?: (ConfigVariants<{
|
|
6
|
-
color: {
|
|
7
|
-
danger: string;
|
|
8
|
-
success: string;
|
|
9
|
-
warning: string;
|
|
10
|
-
};
|
|
11
|
-
rounded: {
|
|
12
|
-
true: string;
|
|
13
|
-
false: string;
|
|
14
|
-
};
|
|
15
|
-
expanded: {
|
|
16
|
-
true: string;
|
|
17
|
-
false: string;
|
|
18
|
-
};
|
|
19
|
-
loading: {
|
|
20
|
-
true: string;
|
|
21
|
-
false: string;
|
|
22
|
-
};
|
|
23
|
-
hasLeftIcon: {
|
|
24
|
-
true: string;
|
|
25
|
-
false: string;
|
|
26
|
-
};
|
|
27
|
-
hasRightIcon: {
|
|
28
|
-
true: string;
|
|
29
|
-
false: string;
|
|
30
|
-
};
|
|
31
|
-
}> & ClassProps) | undefined): string;
|
|
32
|
-
variantKeys: ("rounded" | "loading" | "color" | "expanded" | "hasLeftIcon" | "hasRightIcon")[];
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
type InputProps = Partial<VariantProps<typeof inputVariants> & ClassProps & ComponentProps<"input">> & {
|
|
36
|
-
leftIcon?: JSX.Element;
|
|
37
|
-
rightIcon?: JSX.Element;
|
|
38
|
-
passwordReveal?: boolean;
|
|
39
|
-
};
|
|
40
|
-
declare const Input: (props: InputProps) => JSX.Element;
|
|
41
|
-
|
|
42
|
-
export { Input as I, type InputProps as a };
|
|
@@ -1,43 +0,0 @@
|
|
|
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 };
|
|
@@ -1,44 +0,0 @@
|
|
|
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: ("size" | "rounded" | "loading" | "color" | "expanded")[];
|
|
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 };
|
package/dist/Steps-1miUeyCD.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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 };
|
|
@@ -1,76 +0,0 @@
|
|
|
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
|
-
primary: string;
|
|
35
|
-
success: string;
|
|
36
|
-
danger: string;
|
|
37
|
-
warning: string;
|
|
38
|
-
gray: string;
|
|
39
|
-
};
|
|
40
|
-
passiveColor: {
|
|
41
|
-
primary: string;
|
|
42
|
-
success: string;
|
|
43
|
-
danger: string;
|
|
44
|
-
warning: string;
|
|
45
|
-
gray: string;
|
|
46
|
-
};
|
|
47
|
-
rounded: {
|
|
48
|
-
true: string;
|
|
49
|
-
false: string;
|
|
50
|
-
};
|
|
51
|
-
outlined: {
|
|
52
|
-
true: string;
|
|
53
|
-
false: string;
|
|
54
|
-
};
|
|
55
|
-
disabled: {
|
|
56
|
-
true: string;
|
|
57
|
-
false: string;
|
|
58
|
-
};
|
|
59
|
-
}> & ClassProps) | undefined): string;
|
|
60
|
-
variantKeys: ("disabled" | "size" | "rounded" | "outlined" | "color" | "passiveColor")[];
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
type SwitchProps = {
|
|
64
|
-
children?: JSX.Element;
|
|
65
|
-
checked?: boolean;
|
|
66
|
-
defaultChecked?: boolean;
|
|
67
|
-
onChange?: (checked: boolean) => void;
|
|
68
|
-
name?: string;
|
|
69
|
-
required?: boolean;
|
|
70
|
-
disabled?: boolean;
|
|
71
|
-
"aria-label"?: string;
|
|
72
|
-
"aria-describedby"?: string;
|
|
73
|
-
} & VariantProps<typeof switchVariants> & VariantProps<typeof checkVariants> & Omit<JSX.InputHTMLAttributes<HTMLInputElement>, "onChange">;
|
|
74
|
-
declare const Switch: Component<SwitchProps>;
|
|
75
|
-
|
|
76
|
-
export { Switch as S, type SwitchProps as a };
|
package/dist/Tag-BPrhn-Ne.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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 };
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
declare const textareaVariants: {
|
|
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
|
-
resize: {
|
|
23
|
-
none: string;
|
|
24
|
-
both: string;
|
|
25
|
-
x: string;
|
|
26
|
-
y: string;
|
|
27
|
-
};
|
|
28
|
-
}> & ClassProps) | undefined): string;
|
|
29
|
-
variantKeys: ("size" | "loading" | "color" | "resize")[];
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
type TextareaProps = VariantProps<typeof textareaVariants> & ClassProps & ComponentProps<"textarea"> & {
|
|
33
|
-
hasCounter?: boolean;
|
|
34
|
-
};
|
|
35
|
-
declare const Textarea: Component<TextareaProps>;
|
|
36
|
-
|
|
37
|
-
export { Textarea as T, type TextareaProps as a };
|
|
@@ -1,53 +0,0 @@
|
|
|
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 };
|
|
@@ -1,39 +0,0 @@
|
|
|
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> & Omit<JSX.InputHTMLAttributes<HTMLInputElement>, "onChange" | "multiple" | "accept" | "disabled">;
|
|
37
|
-
declare const Upload: Component<UploadProps>;
|
|
38
|
-
|
|
39
|
-
export { Upload as U, type UploadProps as a };
|
package/dist/chunk/3VOILEMN.js
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { cva, classes } from './HKS7ET6T.js';
|
|
2
|
-
import { template, spread, mergeProps, insert, createComponent, Dynamic, effect, className } from 'solid-js/web';
|
|
3
|
-
import { splitProps, Show, createMemo, createSignal } from 'solid-js';
|
|
4
|
-
|
|
5
|
-
// src/components/menu/Menu.styles.ts
|
|
6
|
-
var menuWrapper = cva("bg-white border border-gray-200 rounded shadow", {
|
|
7
|
-
variants: {
|
|
8
|
-
inline: {
|
|
9
|
-
true: "flex space-x-4",
|
|
10
|
-
false: "block"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
defaultVariants: {
|
|
14
|
-
inline: false
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
var listWrapper = cva("px-4 py-2", {
|
|
18
|
-
variants: {
|
|
19
|
-
label: {
|
|
20
|
-
true: "pt-6",
|
|
21
|
-
false: ""
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
label: false
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
var itemVariants = cva(
|
|
29
|
-
"px-4 py-2 cursor-pointer select-none transition-colors",
|
|
30
|
-
{
|
|
31
|
-
variants: {
|
|
32
|
-
active: {
|
|
33
|
-
true: "bg-blue-100 font-semibold",
|
|
34
|
-
false: "hover:bg-blue-500"
|
|
35
|
-
},
|
|
36
|
-
expanded: {
|
|
37
|
-
true: "bg-gray-50 text-black",
|
|
38
|
-
false: ""
|
|
39
|
-
},
|
|
40
|
-
disabled: {
|
|
41
|
-
true: "opacity-50 cursor-not-allowed text-gray-700",
|
|
42
|
-
false: ""
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
compoundVariants: [
|
|
46
|
-
{
|
|
47
|
-
active: true,
|
|
48
|
-
expanded: true,
|
|
49
|
-
class: "bg-blue-200"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
defaultVariants: {
|
|
53
|
-
active: false,
|
|
54
|
-
expanded: false,
|
|
55
|
-
disabled: false
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
var itemDetailWrapper = cva(
|
|
60
|
-
"ml-4 border-l border-gray-200 mt-1 pl-2"
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
// src/components/menu/Menu.tsx
|
|
64
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
65
|
-
var Menu = (props) => {
|
|
66
|
-
const [local, variantProps, otherProps] = splitProps(props, ["class", "className", "children", "inline"], Object.keys(menuWrapper.variantKeys ?? {}));
|
|
67
|
-
return (() => {
|
|
68
|
-
var _el$ = _tmpl$();
|
|
69
|
-
spread(_el$, mergeProps({
|
|
70
|
-
get ["class"]() {
|
|
71
|
-
return classes(menuWrapper({
|
|
72
|
-
inline: !!variantProps.inline
|
|
73
|
-
}), local.class, local.className);
|
|
74
|
-
}
|
|
75
|
-
}, otherProps), false, true);
|
|
76
|
-
insert(_el$, () => local.children);
|
|
77
|
-
return _el$;
|
|
78
|
-
})();
|
|
79
|
-
};
|
|
80
|
-
var Menu_default = Menu;
|
|
81
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<div class="px-4 pb-2 font-medium text-gray-700">`);
|
|
82
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<div><div class="flex flex-col">`);
|
|
83
|
-
var MenuList = (props) => {
|
|
84
|
-
const [local, variantProps, otherProps] = splitProps(props, ["class", "children", "label"], Object.keys(listWrapper.variantKeys ?? {}));
|
|
85
|
-
return (() => {
|
|
86
|
-
var _el$ = _tmpl$22(), _el$3 = _el$.firstChild;
|
|
87
|
-
spread(_el$, mergeProps({
|
|
88
|
-
get ["class"]() {
|
|
89
|
-
return classes(listWrapper({
|
|
90
|
-
label: !!local.label
|
|
91
|
-
}), local.class);
|
|
92
|
-
}
|
|
93
|
-
}, otherProps), false, true);
|
|
94
|
-
insert(_el$, createComponent(Show, {
|
|
95
|
-
get when() {
|
|
96
|
-
return local.label;
|
|
97
|
-
},
|
|
98
|
-
get children() {
|
|
99
|
-
var _el$2 = _tmpl$2();
|
|
100
|
-
insert(_el$2, () => local.label);
|
|
101
|
-
return _el$2;
|
|
102
|
-
}
|
|
103
|
-
}), _el$3);
|
|
104
|
-
insert(_el$3, () => local.children);
|
|
105
|
-
return _el$;
|
|
106
|
-
})();
|
|
107
|
-
};
|
|
108
|
-
var MenuList_default = MenuList;
|
|
109
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<span class="ml-2 text-gray-500">`);
|
|
110
|
-
var _tmpl$23 = /* @__PURE__ */ template(`<div><div class="flex items-center justify-between"><span>`);
|
|
111
|
-
var _tmpl$32 = /* @__PURE__ */ template(`<div>`);
|
|
112
|
-
var MenuItem = (props) => {
|
|
113
|
-
const [local, variantProps, rest] = splitProps(props, ["class", "className", "label", "active", "expanded", "disabled", "tag", "to", "target", "children"], Object.keys(itemVariants.variantKeys ?? {}));
|
|
114
|
-
const hasChildren = createMemo(() => !!local.children);
|
|
115
|
-
const isControlled = createMemo(() => local.expanded !== void 0);
|
|
116
|
-
const [internalExpanded, setInternalExpanded] = createSignal(false);
|
|
117
|
-
const isExpanded = createMemo(() => isControlled() ? !!local.expanded : internalExpanded());
|
|
118
|
-
const toggleExpand = () => {
|
|
119
|
-
if (!isControlled() && hasChildren() && !local.disabled) {
|
|
120
|
-
setInternalExpanded((prev) => !prev);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
const onKeyDown = (e) => {
|
|
124
|
-
if (local.disabled) return;
|
|
125
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
126
|
-
e.preventDefault();
|
|
127
|
-
toggleExpand();
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
const tagName = local.to ? "a" : local.tag ?? "div";
|
|
131
|
-
const focusableProps = !local.to && !local.disabled ? {
|
|
132
|
-
tabIndex: 0
|
|
133
|
-
} : {};
|
|
134
|
-
return createComponent(Dynamic, mergeProps({
|
|
135
|
-
component: tagName,
|
|
136
|
-
get ["class"]() {
|
|
137
|
-
return classes(local.class, local.className, "w-full");
|
|
138
|
-
},
|
|
139
|
-
get href() {
|
|
140
|
-
return local.to;
|
|
141
|
-
},
|
|
142
|
-
get target() {
|
|
143
|
-
return local.target;
|
|
144
|
-
},
|
|
145
|
-
get ["aria-disabled"]() {
|
|
146
|
-
return local.disabled;
|
|
147
|
-
},
|
|
148
|
-
onClick: toggleExpand,
|
|
149
|
-
onKeyDown
|
|
150
|
-
}, focusableProps, rest, {
|
|
151
|
-
get children() {
|
|
152
|
-
return [(() => {
|
|
153
|
-
var _el$ = _tmpl$23(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
|
|
154
|
-
insert(_el$3, () => local.label);
|
|
155
|
-
insert(_el$2, createComponent(Show, {
|
|
156
|
-
get when() {
|
|
157
|
-
return hasChildren();
|
|
158
|
-
},
|
|
159
|
-
get children() {
|
|
160
|
-
var _el$4 = _tmpl$3();
|
|
161
|
-
insert(_el$4, () => isExpanded() ? "\u25BE" : "\u25B8");
|
|
162
|
-
return _el$4;
|
|
163
|
-
}
|
|
164
|
-
}), null);
|
|
165
|
-
effect(() => className(_el$, itemVariants({
|
|
166
|
-
active: !!local.active,
|
|
167
|
-
expanded: isExpanded(),
|
|
168
|
-
disabled: !!local.disabled
|
|
169
|
-
})));
|
|
170
|
-
return _el$;
|
|
171
|
-
})(), createComponent(Show, {
|
|
172
|
-
get when() {
|
|
173
|
-
return isExpanded();
|
|
174
|
-
},
|
|
175
|
-
get children() {
|
|
176
|
-
var _el$5 = _tmpl$32();
|
|
177
|
-
insert(_el$5, () => local.children);
|
|
178
|
-
effect(() => className(_el$5, itemDetailWrapper()));
|
|
179
|
-
return _el$5;
|
|
180
|
-
}
|
|
181
|
-
})];
|
|
182
|
-
}
|
|
183
|
-
}));
|
|
184
|
-
};
|
|
185
|
-
var MenuItem_default = MenuItem;
|
|
186
|
-
|
|
187
|
-
export { MenuItem_default, MenuList_default, Menu_default };
|